@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,17 +1,18 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { GalleryVersion } from '../../model/GalleryVersion';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
4
|
import type { UniBlockProps } from '../../types';
|
|
4
|
-
import
|
|
5
|
+
import { renderArrows } from '../../ui-kit/Button/renderArrows';
|
|
5
6
|
import { galleryLengthForScrollMap } from './constants';
|
|
6
7
|
import { GalleryContainer } from './GalleryContainer';
|
|
7
|
-
import {
|
|
8
|
+
import type { GalleryContent } from './GalleryContent';
|
|
8
9
|
|
|
9
10
|
export interface GalleryInnerProps extends GalleryContent, UniBlockProps {
|
|
10
11
|
version?: GalleryVersion;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const GalleryInner = JSX<GalleryInnerProps>(
|
|
14
|
-
({ context, cards = [], className = '', version = 'normal',
|
|
15
|
+
({ context, cards = [], className = '', version = 'normal', ...rest }) => {
|
|
15
16
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
16
17
|
|
|
17
18
|
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
@@ -26,9 +27,10 @@ export const GalleryInner = JSX<GalleryInnerProps>(
|
|
|
26
27
|
const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
|
|
27
28
|
|
|
28
29
|
return (
|
|
29
|
-
<
|
|
30
|
+
<BlockWrapper
|
|
31
|
+
context={context}
|
|
30
32
|
className={`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${className}`}
|
|
31
|
-
|
|
33
|
+
{...rest}
|
|
32
34
|
>
|
|
33
35
|
<GalleryContainer
|
|
34
36
|
context={context}
|
|
@@ -45,7 +47,7 @@ export const GalleryInner = JSX<GalleryInnerProps>(
|
|
|
45
47
|
})}
|
|
46
48
|
<div className="absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white" />
|
|
47
49
|
<div className="absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white" />
|
|
48
|
-
</
|
|
50
|
+
</BlockWrapper>
|
|
49
51
|
);
|
|
50
52
|
},
|
|
51
53
|
);
|
|
@@ -2,19 +2,20 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
3
|
import type { GracePeriodContent } from './GracePeriodContent';
|
|
4
4
|
|
|
5
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
8
|
|
|
8
9
|
export interface GracePeriodProps extends GracePeriodContent, UniBlockProps {}
|
|
9
10
|
|
|
10
11
|
export const GracePeriod = JSX<GracePeriodProps>(
|
|
11
|
-
({ className = '', title, description, calendar,
|
|
12
|
+
({ className = '', title, description, calendar, ...rest }) => {
|
|
12
13
|
return (
|
|
13
|
-
<
|
|
14
|
+
<BlockWrapper className={`font-sans bg-white p-[50px] ${className}`} {...rest}>
|
|
14
15
|
<Heading headingType="h3" className="text-center" title={title} />
|
|
15
16
|
<div className="font-light text-base-md text-center mt-3">{description}</div>
|
|
16
17
|
{calendar ? renderCalendar(calendar) : null}
|
|
17
|
-
</
|
|
18
|
+
</BlockWrapper>
|
|
18
19
|
);
|
|
19
20
|
},
|
|
20
21
|
);
|
|
@@ -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 { filterBlocksByTag } from './filterBlocksByTag';
|
|
3
5
|
import type { GroupBlockContent, GroupBlockTab } from './GroupBlockContent';
|
|
4
|
-
import { GroupBlockTabs } from './GroupBlockTabs';
|
|
5
6
|
import { GroupBlocksItem } from './GroupBlocksItem';
|
|
6
|
-
import {
|
|
7
|
+
import { GroupBlockTabs } from './GroupBlockTabs';
|
|
7
8
|
|
|
8
9
|
export interface TabsItemProps extends GroupBlockTab {
|
|
9
10
|
count?: number;
|
|
@@ -14,7 +15,7 @@ export interface GroupBlockProps extends GroupBlockContent, UniBlockProps {
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export const GroupBlock = JSX<GroupBlockProps>(
|
|
17
|
-
({ className = '', tabs, context,
|
|
18
|
+
({ className = '', tabs, context, groupBlocks = [], isShowCounter, ...rest }) => {
|
|
18
19
|
const [currentTag, setCurrentTag] = context.useState(tabs?.[0]?.tag);
|
|
19
20
|
|
|
20
21
|
const filteredBlocks = filterBlocksByTag(groupBlocks, currentTag);
|
|
@@ -28,7 +29,7 @@ export const GroupBlock = JSX<GroupBlockProps>(
|
|
|
28
29
|
});
|
|
29
30
|
|
|
30
31
|
return (
|
|
31
|
-
<
|
|
32
|
+
<BlockWrapper context={context} className={`box-border gap-1 ${className}`} {...rest}>
|
|
32
33
|
{tabsNewMap?.length ? (
|
|
33
34
|
<GroupBlockTabs
|
|
34
35
|
currentTag={currentTag}
|
|
@@ -40,7 +41,7 @@ export const GroupBlock = JSX<GroupBlockProps>(
|
|
|
40
41
|
{groupBlocks.length ? (
|
|
41
42
|
<GroupBlocksItem context={context} groupBlocks={filteredBlocks} />
|
|
42
43
|
) : null}
|
|
43
|
-
</
|
|
44
|
+
</BlockWrapper>
|
|
44
45
|
);
|
|
45
46
|
},
|
|
46
47
|
);
|
|
@@ -5,6 +5,7 @@ import { isTopItemActive } from '../../services/sitemap/isTopItemActive';
|
|
|
5
5
|
import { mergeTopItems } from '../../services/sitemap/mergeTopItems';
|
|
6
6
|
import { useSitemap } from '../../services/sitemap/useSitemap';
|
|
7
7
|
import type { UniBlockProps } from '../../types';
|
|
8
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
8
9
|
import { Logo } from '../../ui-kit/Logo/Logo';
|
|
9
10
|
import { TopItem } from '../../ui-kit/TopItem/TopItem';
|
|
10
11
|
import type { HeaderContent } from './HeaderContent';
|
|
@@ -26,8 +27,8 @@ export const Header = JSX<HeaderProps>(
|
|
|
26
27
|
bgColor = 'bg-white',
|
|
27
28
|
context,
|
|
28
29
|
topItems,
|
|
29
|
-
anchor = null,
|
|
30
30
|
logo,
|
|
31
|
+
...rest
|
|
31
32
|
}) => {
|
|
32
33
|
const router = context.useRouter();
|
|
33
34
|
const sitemap = useSitemap(context.useAsyncData);
|
|
@@ -47,7 +48,12 @@ export const Header = JSX<HeaderProps>(
|
|
|
47
48
|
));
|
|
48
49
|
|
|
49
50
|
return (
|
|
50
|
-
<
|
|
51
|
+
<BlockWrapper
|
|
52
|
+
Tag="header"
|
|
53
|
+
context={context}
|
|
54
|
+
className={`pt-6 pb-8 px-20 ${bgColor} ${className}`}
|
|
55
|
+
{...rest}
|
|
56
|
+
>
|
|
51
57
|
<div className="container">
|
|
52
58
|
<div className="flex items-center">
|
|
53
59
|
<Logo className="mr-8" bgColor={bgColor} logo={logo} />
|
|
@@ -64,7 +70,7 @@ export const Header = JSX<HeaderProps>(
|
|
|
64
70
|
<HeaderSubMenu context={context} subItems={activeTopItem.items} bgColor={bgColor} />
|
|
65
71
|
) : null}
|
|
66
72
|
</div>
|
|
67
|
-
</
|
|
73
|
+
</BlockWrapper>
|
|
68
74
|
);
|
|
69
75
|
},
|
|
70
76
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
|
|
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 { ALIGN_TEXT, HEADLINE_BLOCK_STYLE_MAPS } from './constants';
|
|
@@ -14,15 +15,15 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
14
15
|
className = '',
|
|
15
16
|
title,
|
|
16
17
|
description,
|
|
17
|
-
anchor = null,
|
|
18
18
|
headingType = 'h2',
|
|
19
|
+
...rest
|
|
19
20
|
}) => {
|
|
20
21
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
21
22
|
|
|
22
23
|
return (
|
|
23
|
-
<
|
|
24
|
+
<BlockWrapper
|
|
24
25
|
className={`p-[50px] flex flex-col gap-4 ${STYLE_MAPS.background} ${className}`}
|
|
25
|
-
|
|
26
|
+
{...rest}
|
|
26
27
|
>
|
|
27
28
|
{title ? (
|
|
28
29
|
<Heading
|
|
@@ -34,7 +35,7 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
34
35
|
{description ? (
|
|
35
36
|
<p className={`text-base ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`}>{description}</p>
|
|
36
37
|
) : null}
|
|
37
|
-
</
|
|
38
|
+
</BlockWrapper>
|
|
38
39
|
);
|
|
39
40
|
},
|
|
40
41
|
);
|
|
@@ -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,9 +9,12 @@ import type { InsuranceBenefit, InsuranceContent } from './InsuranceContent';
|
|
|
8
9
|
export interface InsuranceProps extends InsuranceContent, UniBlockProps {}
|
|
9
10
|
|
|
10
11
|
export const Insurance = JSX<InsuranceProps>(
|
|
11
|
-
({ className = '', title, description, image, benefits, sum, monthLimit }) => {
|
|
12
|
+
({ className = '', title, description, image, benefits, sum, monthLimit, ...rest }) => {
|
|
12
13
|
return (
|
|
13
|
-
<
|
|
14
|
+
<BlockWrapper
|
|
15
|
+
className={`px-[100px] py-[50px] bg-white text-primary-text font-sans ${className}`}
|
|
16
|
+
{...rest}
|
|
17
|
+
>
|
|
14
18
|
{title ? <Heading headingType="h3" title={title} className="text-center" /> : null}
|
|
15
19
|
{description ? <div className="text-center text-md mt-3">{description}</div> : null}
|
|
16
20
|
<div>
|
|
@@ -24,7 +28,7 @@ export const Insurance = JSX<InsuranceProps>(
|
|
|
24
28
|
</div>
|
|
25
29
|
</div>
|
|
26
30
|
</div>
|
|
27
|
-
</
|
|
31
|
+
</BlockWrapper>
|
|
28
32
|
);
|
|
29
33
|
},
|
|
30
34
|
);
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
+
import { Button } from '../../ui-kit/Button/Button';
|
|
5
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
3
6
|
import type { InsuranceAmountBlockContent } from './InsuranceAmountBlockContent';
|
|
4
7
|
import { InsuranceAmountBlockInner } from './InsuranceAmountBlockInner';
|
|
5
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
|
-
import { Button } from '../../ui-kit/Button/Button';
|
|
7
8
|
|
|
8
9
|
export interface InsuranceAmountBlockProps extends InsuranceAmountBlockContent, UniBlockProps {}
|
|
9
10
|
|
|
10
11
|
export const InsuranceAmountBlock = JSX<InsuranceAmountBlockProps>(
|
|
11
|
-
({ className = '', context, title, insuranceTabs = [], button,
|
|
12
|
+
({ className = '', context, title, insuranceTabs = [], button, ...rest }) => {
|
|
12
13
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
13
14
|
|
|
14
15
|
return (
|
|
15
|
-
<
|
|
16
|
-
|
|
16
|
+
<BlockWrapper
|
|
17
|
+
context={context}
|
|
17
18
|
className={`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${className}`}
|
|
19
|
+
{...rest}
|
|
18
20
|
>
|
|
19
21
|
{title ? <Heading className="text-center" title={title} headingType="h3" /> : null}
|
|
20
22
|
<div className="p-1.5 bg-secondary-light w-fit m-auto rounded-md mt-[34px]">
|
|
@@ -49,7 +51,7 @@ export const InsuranceAmountBlock = JSX<InsuranceAmountBlockProps>(
|
|
|
49
51
|
</Button>
|
|
50
52
|
</div>
|
|
51
53
|
) : null}
|
|
52
|
-
</
|
|
54
|
+
</BlockWrapper>
|
|
53
55
|
);
|
|
54
56
|
},
|
|
55
57
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
3
|
-
import
|
|
2
|
+
import type { FuncReturnVoid, UniBlockProps } from '../../types';
|
|
3
|
+
import { renderArrows } from '../../ui-kit/Button/renderArrows';
|
|
4
4
|
import { Img } from '../../ui-kit/Img/Img';
|
|
5
5
|
import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
|
|
6
|
-
import {
|
|
6
|
+
import type { CardItem, InsuranceAmountBlockTabs } from './InsuranceAmountBlockContent';
|
|
7
7
|
|
|
8
8
|
export interface InsuranceAmountBlockInnerProps extends InsuranceAmountBlockTabs, UniBlockProps {}
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ type InsuranceSlideProps = {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export const InsuranceAmountBlockInner = JSX<InsuranceAmountBlockInnerProps>(
|
|
26
|
-
({ className = '', context, cards = []
|
|
26
|
+
({ className = '', context, cards = [] }) => {
|
|
27
27
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
28
28
|
const [tabsShift, setTabsShift] = context.useState(0);
|
|
29
29
|
|
|
@@ -38,7 +38,7 @@ export const InsuranceAmountBlockInner = JSX<InsuranceAmountBlockInnerProps>(
|
|
|
38
38
|
const showPrevButton = tabsShift > 0;
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
|
-
<section
|
|
41
|
+
<section className={`min-w-full ${className}`}>
|
|
42
42
|
<div className="relative mt-7 overflow-hidden">
|
|
43
43
|
{galleryLength
|
|
44
44
|
? renderGallery({
|
|
@@ -1,16 +1,19 @@
|
|
|
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 { LikeButton } from '../../ui-kit/Button/LikeButton';
|
|
4
5
|
|
|
5
|
-
export const LikeControl = JSX<UniBlockProps>(({ className, context,
|
|
6
|
+
export const LikeControl = JSX<UniBlockProps>(({ className, context, ...rest }) => {
|
|
6
7
|
const likeService = context.useLikeService();
|
|
7
8
|
|
|
8
9
|
return (
|
|
9
|
-
<
|
|
10
|
+
<BlockWrapper
|
|
11
|
+
Tag="div"
|
|
12
|
+
context={context}
|
|
10
13
|
className={`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${
|
|
11
14
|
className || ''
|
|
12
15
|
}`}
|
|
13
|
-
|
|
16
|
+
{...rest}
|
|
14
17
|
>
|
|
15
18
|
<LikeButton onClick={likeService.like} ariaLabel="Поставить отметку «лайк»" />
|
|
16
19
|
<LikeButton
|
|
@@ -19,6 +22,6 @@ export const LikeControl = JSX<UniBlockProps>(({ className, context, anchor = nu
|
|
|
19
22
|
ariaLabel="Поставить отметку «дизлайк»"
|
|
20
23
|
/>
|
|
21
24
|
<span className="select-none">{likeService.likeCount}</span>
|
|
22
|
-
</
|
|
25
|
+
</BlockWrapper>
|
|
23
26
|
);
|
|
24
27
|
});
|
|
@@ -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 { Headline } from '../Headline/Headline';
|
|
4
5
|
import type { LinkColumnsMode, LinkDocsContent } from './LinkDocsContent';
|
|
@@ -21,10 +22,14 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
21
22
|
documents,
|
|
22
23
|
icon = { icon: 'DocIcon' },
|
|
23
24
|
columnsMode = 'double',
|
|
24
|
-
|
|
25
|
+
...rest
|
|
25
26
|
}) => {
|
|
26
27
|
return (
|
|
27
|
-
<
|
|
28
|
+
<BlockWrapper
|
|
29
|
+
context={context}
|
|
30
|
+
className={`font-sans text-primary-text p-[50px] bg-white ${className}`}
|
|
31
|
+
{...rest}
|
|
32
|
+
>
|
|
28
33
|
<Headline
|
|
29
34
|
className="!p-0"
|
|
30
35
|
title={title}
|
|
@@ -39,7 +44,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
39
44
|
documents={documents}
|
|
40
45
|
icon={icon}
|
|
41
46
|
/>
|
|
42
|
-
</
|
|
47
|
+
</BlockWrapper>
|
|
43
48
|
);
|
|
44
49
|
},
|
|
45
50
|
);
|
|
@@ -1,16 +1,17 @@
|
|
|
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 type { LinkListContent } from './LinkListContent';
|
|
4
5
|
|
|
5
6
|
export interface LinkListProps extends LinkListContent, UniBlockProps {}
|
|
6
7
|
|
|
7
|
-
export const LinkList = JSX<LinkListProps>(({ className = '', documents,
|
|
8
|
+
export const LinkList = JSX<LinkListProps>(({ className = '', documents, ...rest }) => {
|
|
8
9
|
return (
|
|
9
|
-
<
|
|
10
|
+
<BlockWrapper className={`font-sans bg-white mt-[10px] ${className}`} {...rest}>
|
|
10
11
|
<ul className="flex flex-col text-sm text-secondary-text p-0">
|
|
11
12
|
{documents?.length ? renderLinkListItem(documents) : null}
|
|
12
13
|
</ul>
|
|
13
|
-
</
|
|
14
|
+
</BlockWrapper>
|
|
14
15
|
);
|
|
15
16
|
});
|
|
16
17
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
3
|
import type { UniBlockProps } from '../../types';
|
|
4
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
5
|
import { ButtonSection } from '../../ui-kit/Button/ButtonSection';
|
|
5
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
@@ -24,20 +25,21 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
24
25
|
title = 'Мобильное приложение',
|
|
25
26
|
qr,
|
|
26
27
|
buttons,
|
|
27
|
-
anchor = null,
|
|
28
28
|
version = 'primary',
|
|
29
29
|
items,
|
|
30
30
|
image,
|
|
31
|
+
...rest
|
|
31
32
|
}) => {
|
|
32
33
|
const textColorClass = version === 'primary' ? 'text-primary-text' : '';
|
|
33
34
|
|
|
34
35
|
return (
|
|
35
|
-
<
|
|
36
|
+
<BlockWrapper
|
|
37
|
+
context={context}
|
|
36
38
|
className={`flex justify-between font-sans p-9 box-border relative
|
|
37
39
|
${getTileRightPadding(className)} ${getTileMinHeight(className)}
|
|
38
40
|
${mobileAppStyleMap[version]}
|
|
39
41
|
${className}`}
|
|
40
|
-
|
|
42
|
+
{...rest}
|
|
41
43
|
>
|
|
42
44
|
<BaseTile
|
|
43
45
|
context={context}
|
|
@@ -78,7 +80,7 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
78
80
|
<Img image={image} />
|
|
79
81
|
</div>
|
|
80
82
|
) : null}
|
|
81
|
-
</
|
|
83
|
+
</BlockWrapper>
|
|
82
84
|
);
|
|
83
85
|
},
|
|
84
86
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
4
|
import { findActiveSubItem } from '../../services/sitemap/findActiveSubItem';
|
|
4
5
|
import type { UniBlockProps } from '../../types';
|
|
5
6
|
import { NavigationContent } from './NavigationContent';
|
|
@@ -8,20 +9,21 @@ import { NavigationItem } from './NavigationItem';
|
|
|
8
9
|
export interface NavigationProps extends NavigationContent, UniBlockProps {}
|
|
9
10
|
|
|
10
11
|
export const Navigation = JSX<NavigationProps>(
|
|
11
|
-
({ className, context, title, buttons,
|
|
12
|
+
({ className, context, title, buttons, ...rest }) => {
|
|
12
13
|
const router = context.useRouter();
|
|
13
14
|
const { handlerDecorator } = context;
|
|
14
15
|
|
|
15
16
|
const activeButton = findActiveSubItem(router)(buttons);
|
|
16
17
|
|
|
17
18
|
return (
|
|
18
|
-
<
|
|
19
|
+
<BlockWrapper
|
|
20
|
+
context={context}
|
|
19
21
|
className={`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${
|
|
20
22
|
className || ''
|
|
21
23
|
}`}
|
|
22
|
-
|
|
24
|
+
{...rest}
|
|
23
25
|
>
|
|
24
|
-
<h2 className="font-medium text-xl m-0">{title}</h2>
|
|
26
|
+
<h2 className="font-medium text-xl-light m-0">{title}</h2>
|
|
25
27
|
{buttons?.length ? (
|
|
26
28
|
<div className="flex rounded-md overflow-hidden bg-white">
|
|
27
29
|
{buttons
|
|
@@ -36,7 +38,7 @@ export const Navigation = JSX<NavigationProps>(
|
|
|
36
38
|
))}
|
|
37
39
|
</div>
|
|
38
40
|
) : null}
|
|
39
|
-
</
|
|
41
|
+
</BlockWrapper>
|
|
40
42
|
);
|
|
41
43
|
},
|
|
42
44
|
);
|
|
@@ -11,7 +11,7 @@ const TEXT_CLASSES = 'font-sans font-normal text-m-md';
|
|
|
11
11
|
const LINK_CLASSES = 'flex-1 flex items-center justify-center cursor-pointer';
|
|
12
12
|
|
|
13
13
|
export const NavigatorTabItem = JSX<NavigatorTabItemProps>(
|
|
14
|
-
({ className = '', text, active,
|
|
14
|
+
({ className = '', text, active, onClick, href, target = '_self', children }) => (
|
|
15
15
|
<a className={getLinkClasses(className, active)} target={target} href={href} onClick={onClick}>
|
|
16
16
|
<span className={getTextClasses(active)}>{text || children}</span>
|
|
17
17
|
</a>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
|
-
import { LinkProps } from '../../model/LinkProps';
|
|
3
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
4
4
|
import type { UniBlockProps } from '../../types';
|
|
5
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
6
|
import { getHash } from '../../utils/url';
|
|
6
7
|
import type { ContentPageContext } from '../ContentPage/ContentPageContext';
|
|
7
8
|
import { NavigatorTabItem } from './NavigatorTabItem';
|
|
@@ -10,30 +11,29 @@ import type { NavigatorTabsContent } from './NavigatorTabsContent';
|
|
|
10
11
|
export interface TabsBlockProps extends UniBlockProps, NavigatorTabsContent {}
|
|
11
12
|
|
|
12
13
|
export const NavigatorTabs = JSX<TabsBlockProps>(
|
|
13
|
-
({ className = '', navigatorTabs, context,
|
|
14
|
-
const href = globalThis.location?.href; // TODO: remove globalThis, use href from router
|
|
15
|
-
|
|
14
|
+
({ className = '', navigatorTabs, context, ...rest }) => {
|
|
16
15
|
return (
|
|
17
|
-
<
|
|
16
|
+
<BlockWrapper
|
|
17
|
+
context={context}
|
|
18
18
|
className={`sticky top-0 z-20 box-border flex gap-x-1 h-14 ${className}`}
|
|
19
|
-
|
|
19
|
+
{...rest}
|
|
20
20
|
>
|
|
21
|
-
{navigatorTabs ? navigatorTabs.map(renderTab(context
|
|
22
|
-
</
|
|
21
|
+
{navigatorTabs ? navigatorTabs.map(renderTab(context)) : null}
|
|
22
|
+
</BlockWrapper>
|
|
23
23
|
);
|
|
24
24
|
},
|
|
25
25
|
);
|
|
26
26
|
|
|
27
|
-
const renderTab = (context: ContentPageContext
|
|
28
|
-
const {
|
|
29
|
-
const router = useRouter();
|
|
27
|
+
const renderTab = (context: ContentPageContext) => (tab: LinkProps, i: number) => {
|
|
28
|
+
const { handlerDecorator, useRouter } = context;
|
|
30
29
|
|
|
31
|
-
const
|
|
30
|
+
const router = useRouter();
|
|
31
|
+
const hash = getHash(router.href);
|
|
32
32
|
const active = hash ? tab.href === hash : i === 0;
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
35
|
<NavigatorTabItem
|
|
36
|
-
key={tab.
|
|
36
|
+
key={tab.text}
|
|
37
37
|
active={active}
|
|
38
38
|
{...useLink({ router, handlerDecorator }, tab)}
|
|
39
39
|
/>
|
|
@@ -1,14 +1,19 @@
|
|
|
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 type { OtherProductsContent } from './OtherProductsContent';
|
|
4
5
|
import { OtherProductsItem } from './OtherProductsItem';
|
|
5
6
|
|
|
6
7
|
export interface OtherProductsProps extends OtherProductsContent, UniBlockProps {}
|
|
7
8
|
|
|
8
9
|
export const OtherProducts = JSX<OtherProductsProps>(
|
|
9
|
-
({ blockItems, colorPalette, context, className = '' }) => {
|
|
10
|
+
({ blockItems, colorPalette, context, className = '', ...rest }) => {
|
|
10
11
|
return (
|
|
11
|
-
<
|
|
12
|
+
<BlockWrapper
|
|
13
|
+
context={context}
|
|
14
|
+
className={`font-sans text-primary-text ${className}`}
|
|
15
|
+
{...rest}
|
|
16
|
+
>
|
|
12
17
|
{blockItems?.length ? (
|
|
13
18
|
<div className="box-border1">
|
|
14
19
|
{blockItems.map((item, i) => (
|
|
@@ -21,7 +26,7 @@ export const OtherProducts = JSX<OtherProductsProps>(
|
|
|
21
26
|
))}
|
|
22
27
|
</div>
|
|
23
28
|
) : null}
|
|
24
|
-
</
|
|
29
|
+
</BlockWrapper>
|
|
25
30
|
);
|
|
26
31
|
},
|
|
27
32
|
);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PictureTextBenefit, PictureTextContent } from './PictureTextContent';
|
|
4
4
|
|
|
5
5
|
import { BlockVersion } from '../../model/BlockVersion';
|
|
6
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
7
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
7
8
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
9
|
|
|
@@ -21,12 +22,12 @@ export const PictureText = JSX<PictureTextProps>(
|
|
|
21
22
|
benefits,
|
|
22
23
|
version = 'primary',
|
|
23
24
|
directionRight = false,
|
|
24
|
-
|
|
25
|
+
...rest
|
|
25
26
|
}) => {
|
|
26
27
|
return (
|
|
27
|
-
<
|
|
28
|
+
<BlockWrapper
|
|
28
29
|
className={`relative font-sans p-14 ${pictureTextStyleMap[version]} ${className}`}
|
|
29
|
-
|
|
30
|
+
{...rest}
|
|
30
31
|
>
|
|
31
32
|
<Heading headingType="h2" className="text-center" title={title} />
|
|
32
33
|
<div className={'flex justify-center mt-9'}>
|
|
@@ -37,7 +38,7 @@ export const PictureText = JSX<PictureTextProps>(
|
|
|
37
38
|
</div>
|
|
38
39
|
) : null}
|
|
39
40
|
</div>
|
|
40
|
-
</
|
|
41
|
+
</BlockWrapper>
|
|
41
42
|
);
|
|
42
43
|
},
|
|
43
44
|
);
|
|
@@ -57,7 +58,7 @@ function renderBenefit(benefit: PictureTextBenefit, i: number, version: string)
|
|
|
57
58
|
<div className="flex gap-1 flex-col h-full ml-5 max-w-[490px]">
|
|
58
59
|
{benefit?.label ? (
|
|
59
60
|
<div
|
|
60
|
-
className={`font-medium text-xl m-0 ${
|
|
61
|
+
className={`font-medium text-xl-light m-0 ${
|
|
61
62
|
version === 'primary' ? 'text-primary-text' : ''
|
|
62
63
|
}`}
|
|
63
64
|
>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
|
|
3
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
4
|
import type { UniBlockProps } from '../../types';
|
|
4
5
|
import { Description } from '../../ui-kit/Description/Description';
|
|
5
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
@@ -15,13 +16,14 @@ export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
|
15
16
|
const GOLDEN_RATIO = 1.618;
|
|
16
17
|
|
|
17
18
|
export const Placeholder = JSX<PlaceholderProps>(
|
|
18
|
-
({ className, context, title, description = 'Блок в разработке...',
|
|
19
|
+
({ className, context, title, description = 'Блок в разработке...', ...rest }) => {
|
|
19
20
|
return (
|
|
20
|
-
<
|
|
21
|
+
<BlockWrapper
|
|
22
|
+
context={context}
|
|
21
23
|
className={`bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(
|
|
22
24
|
className,
|
|
23
25
|
)} ${getTileMinHeight(className)} `}
|
|
24
|
-
|
|
26
|
+
{...rest}
|
|
25
27
|
>
|
|
26
28
|
<BaseTile
|
|
27
29
|
context={context}
|
|
@@ -40,7 +42,7 @@ export const Placeholder = JSX<PlaceholderProps>(
|
|
|
40
42
|
) : null}
|
|
41
43
|
<figure className="m-0 min-w-[600px]">{renderShimmer()}</figure>
|
|
42
44
|
</BaseTile>
|
|
43
|
-
</
|
|
45
|
+
</BlockWrapper>
|
|
44
46
|
);
|
|
45
47
|
},
|
|
46
48
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
2
|
import { context } from '../../react/setup-fixture';
|
|
3
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
+
import type { BackwardButtonProps, ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
4
|
import { ProductBlock } from './ProductBlock';
|
|
5
5
|
import type { ProductBlockBenefit, ProductBlockContent } from './ProductBlockContent';
|
|
6
6
|
|
|
@@ -62,7 +62,7 @@ const items = [
|
|
|
62
62
|
'Расходы для бизнеса на УСН 15% позволят снизить налоговую базу',
|
|
63
63
|
];
|
|
64
64
|
|
|
65
|
-
const backwardButton:
|
|
65
|
+
const backwardButton: BackwardButtonProps = {
|
|
66
66
|
href: 'https://rshb.ru',
|
|
67
67
|
text: 'Все кредитные карты',
|
|
68
68
|
icon: { icon: 'ArrowLeftIcon' },
|