@redneckz/wildless-cms-uni-blocks 0.3.26 → 0.3.29
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 +119 -83
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +2 -2
- package/dist/components/Accordion/Accordion.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 +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BlockContent.d.ts +3 -2
- package/dist/components/Blocks.d.ts +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +3 -3
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js +9 -9
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +3 -3
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/dist/components/ContentPage/normalizeBlock.d.ts +1 -0
- package/dist/components/CreditCalculator/CreditCalculator.js +2 -2
- package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/Footer/Footer.js +2 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Gallery/GalleryInner.js +2 -2
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Headline/Headline.js +2 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/LikeControl/LikeControl.js +2 -2
- package/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +2 -2
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +2 -2
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/dist/components/LinkList/LinkList.js +2 -2
- package/dist/components/LinkList/LinkList.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/Navigation/Navigation.js +2 -2
- package/dist/components/Navigation/Navigation.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +7 -0
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +16 -0
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -0
- package/dist/components/NavigatorTabs/NavigatorTabs.d.ts +5 -0
- package/dist/components/NavigatorTabs/NavigatorTabs.js +17 -0
- package/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -0
- package/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +19 -0
- package/dist/components/NavigatorTabs/NavigatorTabsContent.js +2 -0
- package/dist/components/NavigatorTabs/NavigatorTabsContent.js.map +1 -0
- package/dist/components/PictureText/PictureText.js +2 -2
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.js +2 -2
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +2 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +10 -6
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +2 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +2 -2
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +2 -2
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +2 -2
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +2 -2
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/Tile/Tile.js +2 -2
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/setup-fixture.js +22 -6
- package/dist/setup-fixture.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/utils/url.d.ts +1 -0
- package/dist/utils/url.js +9 -1
- package/dist/utils/url.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +2 -2
- package/lib/components/Accordion/Accordion.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 +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BlockContent.d.ts +3 -2
- package/lib/components/Blocks.d.ts +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +3 -3
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js +9 -9
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +3 -3
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/lib/components/ContentPage/normalizeBlock.d.ts +1 -0
- package/lib/components/CreditCalculator/CreditCalculator.js +2 -2
- package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Gallery/GalleryInner.js +2 -2
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/LikeControl/LikeControl.js +2 -2
- package/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +2 -2
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +2 -2
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/lib/components/LinkList/LinkList.js +2 -2
- package/lib/components/LinkList/LinkList.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/Navigation/Navigation.js +2 -2
- package/lib/components/Navigation/Navigation.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +7 -0
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +14 -0
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -0
- package/lib/components/NavigatorTabs/NavigatorTabs.d.ts +5 -0
- package/lib/components/NavigatorTabs/NavigatorTabs.fixture.d.ts +4 -0
- package/lib/components/NavigatorTabs/NavigatorTabs.js +15 -0
- package/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -0
- package/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +19 -0
- package/lib/components/NavigatorTabs/NavigatorTabsContent.js +2 -0
- package/lib/components/NavigatorTabs/NavigatorTabsContent.js.map +1 -0
- package/lib/components/PictureText/PictureText.js +2 -2
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.js +2 -2
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +2 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +10 -6
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +2 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +2 -2
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.js +2 -2
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +2 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +2 -2
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/Tile/Tile.js +2 -2
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/setup-fixture.js +22 -6
- package/lib/setup-fixture.js.map +1 -1
- package/lib/types.d.ts +2 -0
- package/lib/utils/url.d.ts +1 -0
- package/lib/utils/url.js +7 -0
- package/lib/utils/url.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +47 -39
- 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 +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BlockContent.d.ts +3 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +9 -9
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +3 -3
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js +2 -2
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +2 -2
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/LikeControl/LikeControl.js +2 -2
- package/mobile/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/dist/components/LinkList/LinkList.js +2 -2
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
- package/mobile/dist/components/Navigation/Navigation.js +2 -2
- package/mobile/dist/components/Navigation/Navigation.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +7 -0
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +16 -0
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -0
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.d.ts +5 -0
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js +17 -0
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -0
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +19 -0
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.js +2 -0
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.js.map +1 -0
- package/mobile/dist/components/PictureText/PictureText.js +2 -2
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +2 -2
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +10 -6
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +2 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +2 -2
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +2 -2
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +2 -2
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/setup-fixture.js +22 -6
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/dist/types.d.ts +2 -0
- package/mobile/dist/utils/url.d.ts +1 -0
- package/mobile/dist/utils/url.js +9 -1
- package/mobile/dist/utils/url.js.map +1 -1
- 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 +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BlockContent.d.ts +3 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +9 -9
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +3 -3
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +2 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js +2 -2
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +2 -2
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/LikeControl/LikeControl.js +2 -2
- package/mobile/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/lib/components/LinkList/LinkList.js +2 -2
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/components/Navigation/Navigation.js +2 -2
- package/mobile/lib/components/Navigation/Navigation.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +7 -0
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +14 -0
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -0
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.d.ts +5 -0
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js +15 -0
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -0
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +19 -0
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.js +2 -0
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.js.map +1 -0
- package/mobile/lib/components/PictureText/PictureText.js +2 -2
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +2 -2
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +10 -6
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +2 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +2 -2
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +2 -2
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +2 -2
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/setup-fixture.js +22 -6
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/lib/types.d.ts +2 -0
- package/mobile/lib/utils/url.d.ts +1 -0
- package/mobile/lib/utils/url.js +7 -0
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/src/common.css +4 -0
- package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +19 -16
- package/mobile/src/components/BlockContent.ts +3 -1
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +11 -11
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
- package/mobile/src/components/ContentPage/ContentPage.page.json +30 -0
- package/mobile/src/components/ContentPage/ContentPage.tsx +3 -3
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +2 -1
- package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +2 -2
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +9 -5
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +4 -4
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +11 -5
- package/mobile/src/components/Gallery/GalleryInner.tsx +2 -1
- package/mobile/src/components/LikeControl/LikeControl.tsx +3 -2
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +2 -2
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/mobile/src/components/LinkList/LinkList.tsx +2 -2
- package/mobile/src/components/Navigation/Navigation.tsx +31 -28
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +29 -0
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.example.json +7 -0
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.tsx +36 -0
- package/mobile/src/components/NavigatorTabs/NavigatorTabsContent.ts +20 -0
- package/mobile/src/components/PictureText/PictureText.tsx +18 -13
- package/mobile/src/components/Placeholder/Placeholder.tsx +2 -1
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +3 -1
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +11 -6
- package/mobile/src/components/ProductTile/ProductTile.tsx +2 -0
- package/mobile/src/components/PromoTile/PromoTile.tsx +2 -0
- package/mobile/src/components/Recommendation/Recommendation.tsx +2 -1
- package/mobile/src/components/Tile/Tile.tsx +2 -0
- package/mobile/src/services/sitemap/isTopItemActive.spec.ts +1 -0
- package/mobile/src/setup-fixture.ts +23 -8
- package/mobile/src/types.ts +2 -0
- package/mobile/src/utils/url.ts +9 -0
- package/package.json +1 -1
- package/src/common.css +4 -0
- package/src/components/Accordion/Accordion.tsx +5 -2
- package/src/components/BaseTile/BaseTile.tsx +2 -2
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +19 -16
- package/src/components/BlockContent.ts +3 -1
- package/src/components/Blocks.ts +2 -0
- package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +2 -1
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +11 -11
- package/src/components/ComparisonTable/ComparisonTable.tsx +4 -2
- package/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
- package/src/components/ContentPage/ContentPage.page.json +30 -0
- package/src/components/ContentPage/ContentPage.tsx +3 -3
- package/src/components/ContentPage/ContentPageContext.tsx +2 -1
- package/src/components/CreditCalculator/CreditCalculator.tsx +2 -2
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +9 -5
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +4 -4
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +11 -5
- package/src/components/Footer/Footer.tsx +11 -2
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
- package/src/components/Gallery/GalleryInner.tsx +2 -1
- package/src/components/Header/Header.tsx +2 -2
- package/src/components/Headline/Headline.tsx +9 -2
- package/src/components/LikeControl/LikeControl.tsx +3 -2
- package/src/components/LinkDocs/LinkDocs.example.json +1 -1
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +2 -2
- package/src/components/LinkDocs/LinkDocs.tsx +2 -1
- package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/src/components/LinkList/LinkList.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.tsx +9 -1
- package/src/components/Navigation/Navigation.tsx +31 -28
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +29 -0
- package/src/components/NavigatorTabs/NavigatorTabs.example.json +7 -0
- package/src/components/NavigatorTabs/NavigatorTabs.fixture.tsx +11 -0
- package/src/components/NavigatorTabs/NavigatorTabs.tsx +36 -0
- package/src/components/NavigatorTabs/NavigatorTabsContent.ts +20 -0
- package/src/components/PictureText/PictureText.tsx +18 -13
- package/src/components/Placeholder/Placeholder.tsx +2 -1
- package/src/components/ProductBlock/ProductBlock.tsx +11 -2
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +3 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.tsx +5 -2
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +11 -6
- package/src/components/ProductTile/ProductTile.tsx +2 -0
- package/src/components/PromoTile/PromoTile.tsx +2 -0
- package/src/components/Recommendation/Recommendation.tsx +2 -1
- package/src/components/StepsBlock/StepsBlock.tsx +25 -22
- package/src/components/TariffsTable/TariffsTable.tsx +2 -1
- package/src/components/TextBlock/TextBlock.tsx +10 -1
- package/src/components/Tile/Tile.tsx +2 -0
- package/src/services/sitemap/isTopItemActive.spec.ts +1 -0
- package/src/setup-fixture.ts +23 -8
- package/src/types.ts +2 -0
- package/src/utils/url.ts +9 -0
package/src/common.css
CHANGED
|
@@ -13,9 +13,12 @@ const accordionStyleMap: Record<BlockVersion, string> = {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export const Accordion = JSX<AccordionProps>(
|
|
16
|
-
({ title, accordionItems, context, className = '', version = 'primary' }) => {
|
|
16
|
+
({ title, accordionItems, context, className = '', version = 'primary', anchor = null }) => {
|
|
17
17
|
return (
|
|
18
|
-
<section
|
|
18
|
+
<section
|
|
19
|
+
className={`p-[50px] font-sans ${className} ${accordionStyleMap[version]}`}
|
|
20
|
+
id={anchor}
|
|
21
|
+
>
|
|
19
22
|
{title ? <Heading headingType="h4" className="mb-2.5" title={title} /> : null}
|
|
20
23
|
{accordionItems?.length ? (
|
|
21
24
|
<ul className="list-none m-0 p-0">
|
|
@@ -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, anchor = null }) => {
|
|
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}`} id={anchor}>
|
|
11
11
|
{title}
|
|
12
12
|
<div className="flex grow w-full justify-between">
|
|
13
13
|
<div className="flex flex-col justify-between w-full">
|
|
@@ -6,22 +6,25 @@ import type { Benefit, BenefitsBlockContent } from './BenefitsBlockContent';
|
|
|
6
6
|
|
|
7
7
|
export interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {}
|
|
8
8
|
|
|
9
|
-
export const BenefitsBlock = JSX<BenefitsBlockProps>(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
className
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
export const BenefitsBlock = JSX<BenefitsBlockProps>(
|
|
10
|
+
({ className, title, benefits, anchor = null }) => {
|
|
11
|
+
return (
|
|
12
|
+
<section
|
|
13
|
+
className={`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${
|
|
14
|
+
className || ''
|
|
15
|
+
}`}
|
|
16
|
+
id={anchor}
|
|
17
|
+
>
|
|
18
|
+
{title ? (
|
|
19
|
+
<Heading headingType="h2" className="max-w-[47rem] text-center" title={title} />
|
|
20
|
+
) : null}
|
|
21
|
+
{benefits?.length ? (
|
|
22
|
+
<div className="grid grid-cols-2 gap-8 mt-9">{benefits.map(renderStep)}</div>
|
|
23
|
+
) : null}
|
|
24
|
+
</section>
|
|
25
|
+
);
|
|
26
|
+
},
|
|
27
|
+
);
|
|
25
28
|
|
|
26
29
|
const renderStep = (benefit: Benefit, i: number) => {
|
|
27
30
|
return (
|
|
@@ -5,8 +5,10 @@ import type { FooterContent } from './Footer/FooterContent';
|
|
|
5
5
|
import type { GalleryContent } from './Gallery/GalleryContent';
|
|
6
6
|
import type { HeaderContent } from './Header/HeaderContent';
|
|
7
7
|
import type { LinkDocsContent } from './LinkDocs/LinkDocsContent';
|
|
8
|
+
import type { LinkListContent } from './LinkList/LinkListContent';
|
|
8
9
|
import type { MobileAppTileContent } from './MobileAppTile/MobileAppTileContent';
|
|
9
10
|
import type { NavigationContent } from './Navigation/NavigationContent';
|
|
11
|
+
import type { NavigatorTabsContent } from './NavigatorTabs/NavigatorTabsContent';
|
|
10
12
|
import type { PictureTextContent } from './PictureText/PictureTextContent';
|
|
11
13
|
import type { PlaceholderContent } from './Placeholder/PlaceholderContent';
|
|
12
14
|
import type { ProductBlockContent } from './ProductBlock/ProductBlockContent';
|
|
@@ -17,7 +19,6 @@ import type { StepsBlockContent } from './StepsBlock/StepsBlockContent';
|
|
|
17
19
|
import type { TariffsTableContent } from './TariffsTable/TariffsTableContent';
|
|
18
20
|
import type { TextBlockContent } from './TextBlock/TextBlockContent';
|
|
19
21
|
import type { TileContent } from './Tile/TileContent';
|
|
20
|
-
import type { LinkListContent } from './LinkList/LinkListContent';
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
24
|
* @hidden
|
|
@@ -31,6 +32,7 @@ export type BlockContent =
|
|
|
31
32
|
| HeaderContent
|
|
32
33
|
| LinkDocsContent
|
|
33
34
|
| MobileAppTileContent
|
|
35
|
+
| NavigatorTabsContent
|
|
34
36
|
| PictureTextContent
|
|
35
37
|
| PlaceholderContent
|
|
36
38
|
| ProductBlockContent
|
package/src/components/Blocks.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
|
11
11
|
import { MiniGallery } from './MiniGallery/MiniGallery';
|
|
12
12
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
13
13
|
import { Navigation } from './Navigation/Navigation';
|
|
14
|
+
import { NavigatorTabs } from './NavigatorTabs/NavigatorTabs';
|
|
14
15
|
import { PictureText } from './PictureText/PictureText';
|
|
15
16
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
16
17
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
@@ -38,6 +39,7 @@ export const Blocks = {
|
|
|
38
39
|
LinkDocs,
|
|
39
40
|
MiniGallery,
|
|
40
41
|
MobileAppTile,
|
|
42
|
+
NavigatorTabs,
|
|
41
43
|
PictureText,
|
|
42
44
|
ProductBlock,
|
|
43
45
|
ProductGallery,
|
|
@@ -130,6 +130,7 @@ export default {
|
|
|
130
130
|
isColoredFirstColumn={true}
|
|
131
131
|
context={context}
|
|
132
132
|
rowHeaders={rowHeaders}
|
|
133
|
+
orientation="vertical"
|
|
133
134
|
columns={Array(2).fill(columns).flat()}
|
|
134
135
|
visibleRowLength={2}
|
|
135
136
|
/>
|
|
@@ -143,7 +144,7 @@ export default {
|
|
|
143
144
|
isColoredFirstColumn={true}
|
|
144
145
|
context={context}
|
|
145
146
|
rowHeaders={rowHeaders}
|
|
146
|
-
orientation=
|
|
147
|
+
orientation="horizontal"
|
|
147
148
|
columns={Array(2).fill(columns).flat()}
|
|
148
149
|
visibleRowLength={2}
|
|
149
150
|
/>
|
|
@@ -16,7 +16,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
|
|
|
16
16
|
columns,
|
|
17
17
|
visibleRowLength = 0,
|
|
18
18
|
isColoredFirstColumn = false,
|
|
19
|
-
orientation = '
|
|
19
|
+
orientation = 'vertical',
|
|
20
20
|
}) => {
|
|
21
21
|
const tableData =
|
|
22
22
|
columns?.map(({ data, header }) => ({
|
|
@@ -95,16 +95,6 @@ const renderInnerTable = ({
|
|
|
95
95
|
handleToggleColumn,
|
|
96
96
|
}) =>
|
|
97
97
|
orientation === 'horizontal' ? (
|
|
98
|
-
tableData.map(
|
|
99
|
-
renderColumn({
|
|
100
|
-
context,
|
|
101
|
-
visibleRowLength,
|
|
102
|
-
isColoredFirstColumn,
|
|
103
|
-
columnsViewState,
|
|
104
|
-
handleToggleColumn,
|
|
105
|
-
}),
|
|
106
|
-
)
|
|
107
|
-
) : (
|
|
108
98
|
<SwipeListControl
|
|
109
99
|
context={context}
|
|
110
100
|
onSlideChange={onSlideChange(columnsViewState, setColumnsViewState)}
|
|
@@ -119,6 +109,16 @@ const renderInnerTable = ({
|
|
|
119
109
|
}),
|
|
120
110
|
)}
|
|
121
111
|
</SwipeListControl>
|
|
112
|
+
) : (
|
|
113
|
+
tableData.map(
|
|
114
|
+
renderColumn({
|
|
115
|
+
context,
|
|
116
|
+
visibleRowLength,
|
|
117
|
+
isColoredFirstColumn,
|
|
118
|
+
columnsViewState,
|
|
119
|
+
handleToggleColumn,
|
|
120
|
+
}),
|
|
121
|
+
)
|
|
122
122
|
);
|
|
123
123
|
|
|
124
124
|
const renderColumn =
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
2
3
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
3
|
-
import { FIRST_CELL_CLASSES } from './constants';
|
|
4
4
|
import { ComparisonTableBody } from './ComparisonTableBody';
|
|
5
|
-
import type { UniBlockProps } from '../../types';
|
|
6
5
|
import type { ComparisonTableContent } from './ComparisonTableContent';
|
|
6
|
+
import { FIRST_CELL_CLASSES } from './constants';
|
|
7
7
|
|
|
8
8
|
export interface ComparisonTableProps extends ComparisonTableContent, UniBlockProps {}
|
|
9
9
|
|
|
@@ -16,6 +16,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
|
|
|
16
16
|
columns,
|
|
17
17
|
visibleRowLength = 0,
|
|
18
18
|
isColoredFirstColumn = false,
|
|
19
|
+
anchor = null,
|
|
19
20
|
}) => {
|
|
20
21
|
const [isShowAllRow, setIsShowAllRow] = context.useState(!visibleRowLength);
|
|
21
22
|
const showToggle = () => setIsShowAllRow(!isShowAllRow);
|
|
@@ -25,6 +26,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
|
|
|
25
26
|
className={`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${
|
|
26
27
|
className || ''
|
|
27
28
|
}`}
|
|
29
|
+
id={anchor}
|
|
28
30
|
>
|
|
29
31
|
<Heading
|
|
30
32
|
headingType="h2"
|
|
@@ -83,5 +83,5 @@ export interface ComparisonTableContent {
|
|
|
83
83
|
/** @title Отображать заданное количество строк */
|
|
84
84
|
visibleRowLength?: number;
|
|
85
85
|
/** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
|
|
86
|
-
orientation?: ListOrientation;
|
|
86
|
+
orientation?: ListOrientation; // TODO: мобильный проп
|
|
87
87
|
}
|
|
@@ -57,6 +57,34 @@
|
|
|
57
57
|
]
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
+
{
|
|
61
|
+
"type": "NavigatorTabs",
|
|
62
|
+
"style": ["col-span-12"],
|
|
63
|
+
"content": {
|
|
64
|
+
"navigatorTabs": [
|
|
65
|
+
{
|
|
66
|
+
"label": "Калькулятор",
|
|
67
|
+
"anchor": "calculator"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"label": "Преимущества",
|
|
71
|
+
"anchor": "advantages"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"label": "Как оформить",
|
|
75
|
+
"anchor": "howToApply"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"label": "Тарифы",
|
|
79
|
+
"anchor": "tariffs"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"label": "Документы",
|
|
83
|
+
"anchor": "documents"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
},
|
|
60
88
|
{
|
|
61
89
|
"type": "ProductGallery",
|
|
62
90
|
"style": ["col-span-12"],
|
|
@@ -1400,6 +1428,7 @@
|
|
|
1400
1428
|
{
|
|
1401
1429
|
"type": "LinkDocs",
|
|
1402
1430
|
"style": ["col-span-12"],
|
|
1431
|
+
"anchor": "documents",
|
|
1403
1432
|
"content": {
|
|
1404
1433
|
"title": "Дополнительные документы",
|
|
1405
1434
|
"subtitle": "Ответы на часто задаваемые вопросы",
|
|
@@ -1880,6 +1909,7 @@
|
|
|
1880
1909
|
},
|
|
1881
1910
|
{
|
|
1882
1911
|
"type": "CreditCalculator",
|
|
1912
|
+
"anchor": "calculator",
|
|
1883
1913
|
"style": ["col-span-12"]
|
|
1884
1914
|
},
|
|
1885
1915
|
{
|
|
@@ -94,16 +94,16 @@ function renderBlock(
|
|
|
94
94
|
const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder;
|
|
95
95
|
return blockDecorator(
|
|
96
96
|
{
|
|
97
|
-
blockClassName: style2className(block.style)
|
|
97
|
+
blockClassName: `scroll-mt-12 ${style2className(block.style)}`,
|
|
98
98
|
block,
|
|
99
99
|
render: (props) => {
|
|
100
|
-
const { version, content } = props.block;
|
|
100
|
+
const { version, content, anchor } = props.block;
|
|
101
101
|
return (
|
|
102
102
|
<BlockComponent
|
|
103
|
-
key={`${type}-${i}`}
|
|
104
103
|
className={props.blockClassName}
|
|
105
104
|
version={version}
|
|
106
105
|
context={context}
|
|
106
|
+
anchor={anchor}
|
|
107
107
|
{...content}
|
|
108
108
|
/>
|
|
109
109
|
);
|
|
@@ -10,11 +10,11 @@ import { DEFAULT_TABS } from './defaultTabs';
|
|
|
10
10
|
export interface CreditCalculatorProps extends CreditCalculatorContent, UniBlockProps {}
|
|
11
11
|
|
|
12
12
|
export const CreditCalculator = JSX<CreditCalculatorProps>(
|
|
13
|
-
({ className = '', context, tabs = DEFAULT_TABS }) => {
|
|
13
|
+
({ className = '', context, tabs = DEFAULT_TABS, anchor = null }) => {
|
|
14
14
|
const [currentTabIndex, setCurrentTabIndex] = context.useState(0);
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
|
-
<section className={`font-sans text-primary-text py-10 bg-white ${className}`}>
|
|
17
|
+
<section className={`font-sans text-primary-text py-10 bg-white ${className}`} id={anchor}>
|
|
18
18
|
<Heading
|
|
19
19
|
className="w-full text-center mb-8"
|
|
20
20
|
headingType={getTileHeadingType(className)}
|
|
@@ -3,7 +3,7 @@ import { Icon } from '../../ui-kit/Icon/Icon';
|
|
|
3
3
|
import type { ExchangeCurrencyItem } from './ExchangeRateTileContent';
|
|
4
4
|
import { formatCurrency } from './formatCurrency';
|
|
5
5
|
|
|
6
|
-
const TABLE_HEAD_STYLE = 'text-left font-normal text-sm text-secondary-text';
|
|
6
|
+
const TABLE_HEAD_STYLE = 'font-light text-left font-normal text-sm text-secondary-text';
|
|
7
7
|
|
|
8
8
|
const CURRENCY_ICONS_MAP = {
|
|
9
9
|
USD: 'DollarIcon',
|
|
@@ -33,15 +33,19 @@ export const CurrencyTable = JSX<CurrencyTableProps>(({ className, exchangeCurre
|
|
|
33
33
|
const renderCurrencyRow = (exchangeCurrencyItem: ExchangeCurrencyItem) => {
|
|
34
34
|
const code = exchangeCurrencyItem?.currency?.currency;
|
|
35
35
|
return (
|
|
36
|
-
<tr key={code}>
|
|
36
|
+
<tr key={code} className="pb-1">
|
|
37
37
|
<td className="pt-4">
|
|
38
38
|
<div className="flex items-center">
|
|
39
39
|
{code ? <Icon name={CURRENCY_ICONS_MAP[code]} width="24" height="24" /> : null}
|
|
40
|
-
<span className="ml-2">{code}</span>
|
|
40
|
+
<span className="text-m-title-md ml-2">{code}</span>
|
|
41
41
|
</div>
|
|
42
42
|
</td>
|
|
43
|
-
<td className="pt-4 pl-11">
|
|
44
|
-
|
|
43
|
+
<td className="pt-4 pl-11 m-title-md font-light">
|
|
44
|
+
{formatCurrency(exchangeCurrencyItem.buyExchangeRate)}
|
|
45
|
+
</td>
|
|
46
|
+
<td className="pt-4 pl-11 m-title-md font-light">
|
|
47
|
+
{formatCurrency(exchangeCurrencyItem.saleExchangeRate)}
|
|
48
|
+
</td>
|
|
45
49
|
</tr>
|
|
46
50
|
);
|
|
47
51
|
};
|
|
@@ -11,8 +11,8 @@ export const CurrentLocation = JSX<CurrentLocationProps>(
|
|
|
11
11
|
({ className = '', address, distance }) => (
|
|
12
12
|
<div className={`flex text-sm ${className}`}>
|
|
13
13
|
<Icon className="min-w-fit" name="GpsIcon" width="24" height="24" asSVG />
|
|
14
|
-
<div className="ml-
|
|
15
|
-
{address ? <p className="m-0">{address}</p> : null}
|
|
14
|
+
<div className="ml-3 font-light">
|
|
15
|
+
{address ? <p className="m-0 mb-[3px]">{address}</p> : null}
|
|
16
16
|
{distance ? (
|
|
17
17
|
<p className="text-secondary-text m-0">Курс указан для ближайшего офиса - {distance}</p>
|
|
18
18
|
) : null}
|
|
@@ -17,7 +17,7 @@ export const ExchangeCurrencyCalculator = JSX<ExchangeCurrencyCalculatorProps>(
|
|
|
17
17
|
<div className={`grid gap-3.5 ${className}`}>
|
|
18
18
|
{renderInput('Хочу продать', codes)}
|
|
19
19
|
{renderInput('Получу', codes)}
|
|
20
|
-
<Button className="box-border mt-3.5 py-3 h-12 w-
|
|
20
|
+
<Button className="box-border mt-3.5 py-3 h-12 w-full" version="primary" href="#">
|
|
21
21
|
Купить валюту
|
|
22
22
|
</Button>
|
|
23
23
|
</div>
|
|
@@ -27,14 +27,14 @@ export const ExchangeCurrencyCalculator = JSX<ExchangeCurrencyCalculatorProps>(
|
|
|
27
27
|
|
|
28
28
|
function renderInput(placeholder: string, codes: string[]) {
|
|
29
29
|
return (
|
|
30
|
-
<div className="flex items-center">
|
|
30
|
+
<div className="relative flex items-center">
|
|
31
31
|
<Input
|
|
32
|
-
className="h-10 border pl-
|
|
32
|
+
className="h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12"
|
|
33
33
|
type="number"
|
|
34
34
|
placeholder={`${placeholder}`}
|
|
35
35
|
/>
|
|
36
36
|
{codes.length ? (
|
|
37
|
-
<Select className="h-9 -translate-x-
|
|
37
|
+
<Select className="h-9 -translate-x-4">
|
|
38
38
|
{codes.map((code, i) => (
|
|
39
39
|
<SelectOption key={String(i)} value={code}>
|
|
40
40
|
{code}
|
|
@@ -5,7 +5,7 @@ import { ExchangeRateTile } from './ExchangeRateTile';
|
|
|
5
5
|
export default {
|
|
6
6
|
default: (
|
|
7
7
|
<div className="container grid grid-cols-12">
|
|
8
|
-
<ExchangeRateTile context={context} className="col-span-
|
|
8
|
+
<ExchangeRateTile context={context} className="col-span-8" />
|
|
9
9
|
</div>
|
|
10
10
|
),
|
|
11
11
|
};
|
|
@@ -32,7 +32,7 @@ const DEFAULT_LOCATION = {
|
|
|
32
32
|
export interface ExchangeRateTileProps extends ExchangeRateTileContent, UniBlockProps {}
|
|
33
33
|
|
|
34
34
|
export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
|
|
35
|
-
({ className = '', context, title = 'Курсы обмена валют' }) => {
|
|
35
|
+
({ className = '', context, title = 'Курсы обмена валют', anchor = null }) => {
|
|
36
36
|
const data = useExchangeRates(context.useAsyncData);
|
|
37
37
|
const exchangeCurrencyItems =
|
|
38
38
|
data?.exchangeRate?.currencies?.filter((item) => {
|
|
@@ -40,21 +40,27 @@ export const ExchangeRateTile = JSX<ExchangeRateTileProps>(
|
|
|
40
40
|
}) || DEFAULT_CURRENCY_ITEMS;
|
|
41
41
|
|
|
42
42
|
return (
|
|
43
|
-
<section
|
|
43
|
+
<section
|
|
44
|
+
className={`bg-white text-primary-text font-sans p-9 box-border ${className}`}
|
|
45
|
+
id={anchor}
|
|
46
|
+
>
|
|
44
47
|
<BaseTile
|
|
45
48
|
context={context}
|
|
46
49
|
title={
|
|
47
50
|
<Heading
|
|
48
51
|
headingType={getTileHeadingType(className)}
|
|
49
52
|
title={title}
|
|
50
|
-
className="whitespace-pre-wrap
|
|
53
|
+
className="whitespace-pre-wrap"
|
|
51
54
|
/>
|
|
52
55
|
}
|
|
53
56
|
>
|
|
54
57
|
<div className="flex">
|
|
55
|
-
<div className="mr-
|
|
58
|
+
<div className="mr-[43px] pt-4">
|
|
56
59
|
{exchangeCurrencyItems ? (
|
|
57
|
-
<CurrencyTable
|
|
60
|
+
<CurrencyTable
|
|
61
|
+
className="mb-[31px]"
|
|
62
|
+
exchangeCurrencyItems={exchangeCurrencyItems}
|
|
63
|
+
/>
|
|
58
64
|
) : null}
|
|
59
65
|
<CurrentLocation {...DEFAULT_LOCATION} />
|
|
60
66
|
</div>
|
|
@@ -15,9 +15,18 @@ const LEFT_COL_WIDTH_SMALL_DESKTOP = 'xl:w-[220px]';
|
|
|
15
15
|
export interface FooterProps extends FooterContent, UniBlockProps {}
|
|
16
16
|
|
|
17
17
|
export const Footer = JSX<FooterProps>(
|
|
18
|
-
({
|
|
18
|
+
({
|
|
19
|
+
className,
|
|
20
|
+
documents,
|
|
21
|
+
relatedEnterprises,
|
|
22
|
+
contacts,
|
|
23
|
+
socialMedia,
|
|
24
|
+
topItems,
|
|
25
|
+
context,
|
|
26
|
+
anchor = null,
|
|
27
|
+
}) => {
|
|
19
28
|
return (
|
|
20
|
-
<footer className={`px-9 py-10 bg-white ${className || ''}`}>
|
|
29
|
+
<footer className={`px-9 py-10 bg-white ${className || ''}`} id={anchor}>
|
|
21
30
|
<div className="flex items-stretch gap-[54px] pb-8 xl:gap-8">
|
|
22
31
|
<Logo className={`${LEFT_COL_WIDTH_FULL_HD} ${LEFT_COL_WIDTH_SMALL_DESKTOP}`} />
|
|
23
32
|
<SearchBar context={context} className="grow" />
|
|
@@ -83,7 +83,7 @@ const cards: GalleryCard[] = [
|
|
|
83
83
|
const defaultProps = {
|
|
84
84
|
title: 'Вы можете оплатить бонусными баллами',
|
|
85
85
|
description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
|
|
86
|
-
orientation: '
|
|
86
|
+
orientation: 'vertical' as ListOrientation,
|
|
87
87
|
context,
|
|
88
88
|
cards: cards,
|
|
89
89
|
};
|
|
@@ -11,7 +11,7 @@ export interface GalleryInnerProps extends GalleryContent, UniBlockProps {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export const GalleryInner = JSX<GalleryInnerProps>(
|
|
14
|
-
({ context, cards = [], className = '', version = 'normal', ...rest }) => {
|
|
14
|
+
({ context, cards = [], className = '', version = 'normal', anchor = null, ...rest }) => {
|
|
15
15
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
16
16
|
|
|
17
17
|
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
@@ -28,6 +28,7 @@ export const GalleryInner = JSX<GalleryInnerProps>(
|
|
|
28
28
|
return (
|
|
29
29
|
<section
|
|
30
30
|
className={`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`}
|
|
31
|
+
id={anchor}
|
|
31
32
|
>
|
|
32
33
|
<GalleryContainer
|
|
33
34
|
context={context}
|
|
@@ -20,7 +20,7 @@ const BORDER_COLORS: Record<BgColorVersion, string> = {
|
|
|
20
20
|
export interface HeaderProps extends HeaderContent, UniBlockProps {}
|
|
21
21
|
|
|
22
22
|
export const Header = JSX<HeaderProps>(
|
|
23
|
-
({ className, defaultLocation, bgColor = 'bg-white', context, topItems }) => {
|
|
23
|
+
({ className, defaultLocation, bgColor = 'bg-white', context, topItems, anchor = null }) => {
|
|
24
24
|
const router = context.useRouter();
|
|
25
25
|
const sitemap = useSitemap(context.useAsyncData);
|
|
26
26
|
const { handlerDecorator } = context;
|
|
@@ -51,7 +51,7 @@ export const Header = JSX<HeaderProps>(
|
|
|
51
51
|
));
|
|
52
52
|
|
|
53
53
|
return (
|
|
54
|
-
<header className={`pt-5 pb-8 px-20 ${bgColor} ${className || ''}`}>
|
|
54
|
+
<header className={`pt-5 pb-8 px-20 ${bgColor} ${className || ''}`} id={anchor}>
|
|
55
55
|
<div className="container">
|
|
56
56
|
<div className="flex items-center">
|
|
57
57
|
<Logo className="mr-8" bgColor={bgColor} />
|
|
@@ -8,10 +8,17 @@ import type { HeadlineContent } from './HeadlineContent';
|
|
|
8
8
|
export interface HeadlineProps extends UniBlockProps, HeadlineContent {}
|
|
9
9
|
|
|
10
10
|
export const Headline = JSX<HeadlineProps>(
|
|
11
|
-
({
|
|
11
|
+
({
|
|
12
|
+
bgColorHeadline = 'transparent',
|
|
13
|
+
align = 'left',
|
|
14
|
+
className = '',
|
|
15
|
+
title,
|
|
16
|
+
description,
|
|
17
|
+
anchor = null,
|
|
18
|
+
}) => {
|
|
12
19
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
13
20
|
return (
|
|
14
|
-
<section className={`p-[50px] ${STYLE_MAPS.background} ${className}`}>
|
|
21
|
+
<section className={`p-[50px] ${STYLE_MAPS.background} ${className}`} id={anchor}>
|
|
15
22
|
{title && (
|
|
16
23
|
<Heading
|
|
17
24
|
headingType="h2"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { LikeButton } from '../../ui-kit/Button/LikeButton';
|
|
3
2
|
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import { LikeButton } from '../../ui-kit/Button/LikeButton';
|
|
4
4
|
|
|
5
|
-
export const LikeControl = JSX<UniBlockProps>(({ className, context }) => {
|
|
5
|
+
export const LikeControl = JSX<UniBlockProps>(({ className, context, anchor = null }) => {
|
|
6
6
|
const likeService = context.useLikeService();
|
|
7
7
|
|
|
8
8
|
return (
|
|
@@ -10,6 +10,7 @@ export const LikeControl = JSX<UniBlockProps>(({ className, context }) => {
|
|
|
10
10
|
className={`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${
|
|
11
11
|
className || ''
|
|
12
12
|
}`}
|
|
13
|
+
id={anchor}
|
|
13
14
|
>
|
|
14
15
|
<LikeButton onClick={likeService.like} ariaLabel="Поставить отметку «лайк»" />
|
|
15
16
|
<LikeButton
|
|
@@ -15,7 +15,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
15
15
|
subtitle,
|
|
16
16
|
icon = 'DocIconMonoColor',
|
|
17
17
|
documents,
|
|
18
|
-
|
|
18
|
+
orientation = 'vertical',
|
|
19
19
|
hasBorder = true,
|
|
20
20
|
}) => {
|
|
21
21
|
return (
|
|
@@ -32,7 +32,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
32
32
|
{subtitle ? (
|
|
33
33
|
<h3 className="mt-0 font-normal mb-5 text-center text-m-md">{subtitle}</h3>
|
|
34
34
|
) : null}
|
|
35
|
-
{
|
|
35
|
+
{orientation === 'vertical' ? (
|
|
36
36
|
<LinkDocsVerticalList hasBorder={hasBorder} documents={documents} icon={icon} />
|
|
37
37
|
) : (
|
|
38
38
|
<LinkDocsHorizontalList
|
|
@@ -32,9 +32,10 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
32
32
|
documents,
|
|
33
33
|
icon = 'DocIcon',
|
|
34
34
|
columnsMode = 'double',
|
|
35
|
+
anchor = null,
|
|
35
36
|
}) => {
|
|
36
37
|
return (
|
|
37
|
-
<section className={`font-sans text-primary-text p-12 bg-white ${className}`}>
|
|
38
|
+
<section className={`font-sans text-primary-text p-12 bg-white ${className}`} id={anchor}>
|
|
38
39
|
{title ? (
|
|
39
40
|
<Heading
|
|
40
41
|
headingType="h2"
|
|
@@ -34,7 +34,7 @@ export interface LinkDocsContent {
|
|
|
34
34
|
documents?: LinkDocsItem[];
|
|
35
35
|
columnsMode?: LinkColumnsMode;
|
|
36
36
|
/** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
|
|
37
|
-
|
|
37
|
+
orientation?: ListOrientation; // TODO: мобильный проп
|
|
38
38
|
/** @title Рамка элементов (моб.) */ // TODO: мобильный проп
|
|
39
39
|
hasBorder?: boolean;
|
|
40
40
|
align?: AlignType;
|
|
@@ -4,9 +4,9 @@ import type { LinkListContent } from './LinkListContent';
|
|
|
4
4
|
|
|
5
5
|
export interface LinkListProps extends LinkListContent, UniBlockProps {}
|
|
6
6
|
|
|
7
|
-
export const LinkList = JSX<LinkListProps>(({ className = '', documents }) => {
|
|
7
|
+
export const LinkList = JSX<LinkListProps>(({ className = '', documents, anchor = null }) => {
|
|
8
8
|
return (
|
|
9
|
-
<section className={`font-sans bg-white mt-[10px] ${className}`}>
|
|
9
|
+
<section className={`font-sans bg-white mt-[10px] ${className}`} id={anchor}>
|
|
10
10
|
<ul className="flex flex-col text-sm text-secondary-text p-0">
|
|
11
11
|
{documents?.length ? renderLinkListItem(documents) : null}
|
|
12
12
|
</ul>
|