@redneckz/wildless-cms-uni-blocks 0.3.28 → 0.3.31
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 +132 -107
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +2 -6
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +3 -3
- package/dist/components/Accordion/AccordionItem.js +4 -11
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js +6 -3
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.js +2 -2
- package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.js +2 -3
- package/dist/components/Accordion/AccordionItemInner.mobile.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/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/Footer/MediaButton.js +1 -1
- package/dist/components/Footer/MediaButton.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/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/OtherProducts/OtherProductsContent.d.ts +3 -12
- 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/TextBlock/TextBlockContent.d.ts +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/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +8 -0
- package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.js +17 -0
- package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.js.map +1 -0
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
- package/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
- package/dist/ui-kit/Tabs/Tabs.js +1 -1
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- 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 -6
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +3 -3
- package/lib/components/Accordion/AccordionItem.js +4 -11
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js +6 -3
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.js +2 -2
- package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.js +2 -3
- package/lib/components/Accordion/AccordionItemInner.mobile.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/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/Footer/MediaButton.js +1 -1
- package/lib/components/Footer/MediaButton.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/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/OtherProducts/OtherProductsContent.d.ts +3 -12
- 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/TextBlock/TextBlockContent.d.ts +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/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +8 -0
- package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.js +15 -0
- package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.js.map +1 -0
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
- package/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +3 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +4 -1
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
- package/lib/ui-kit/Tabs/Tabs.js +1 -1
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/lib/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 +104 -204
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +3 -3
- package/mobile/dist/components/Accordion/AccordionItem.js +6 -3
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.js +2 -3
- package/mobile/dist/components/Accordion/AccordionItemInner.js.map +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/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/Footer/MediaButton.js +1 -1
- package/mobile/dist/components/Footer/MediaButton.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/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/OtherProducts/OtherProductsContent.d.ts +3 -12
- 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/TextBlock/TextBlockContent.d.ts +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/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -4
- package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js +0 -8
- package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.js +1 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/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/Accordion/AccordionContent.d.ts +3 -3
- package/mobile/lib/components/Accordion/AccordionItem.js +6 -3
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.js +2 -3
- package/mobile/lib/components/Accordion/AccordionItemInner.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/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/Footer/MediaButton.js +1 -1
- package/mobile/lib/components/Footer/MediaButton.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/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/OtherProducts/OtherProductsContent.d.ts +3 -12
- 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/TextBlock/TextBlockContent.d.ts +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/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -4
- package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js +0 -8
- package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js +1 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/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/Accordion/Accordion.example.json +3 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +4 -5
- package/mobile/src/components/Accordion/AccordionItem.tsx +32 -27
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +8 -11
- 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/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/Footer/MediaButton.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryInner.tsx +2 -1
- package/mobile/src/components/Header/Header.example.json +3 -0
- package/mobile/src/components/LikeControl/LikeControl.tsx +3 -2
- 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/OtherProducts/OtherProductsContent.ts +3 -12
- 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/TextBlock/TextBlockContent.ts +1 -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/ui-kit/BlocksList/EmbeddableBlocks.tsx +0 -8
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +4 -12
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +18 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +10 -2
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +1 -1
- package/mobile/src/utils/url.ts +9 -0
- package/package.json +1 -1
- package/src/common.css +4 -0
- package/src/components/Accordion/Accordion.example.json +3 -0
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +1 -0
- package/src/components/Accordion/Accordion.fixture.tsx +2 -0
- package/src/components/Accordion/Accordion.tsx +4 -14
- package/src/components/Accordion/AccordionContent.ts +4 -5
- package/src/components/Accordion/AccordionItem.mobile.tsx +32 -27
- package/src/components/Accordion/AccordionItem.tsx +23 -49
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +8 -11
- package/src/components/Accordion/AccordionItemInner.tsx +8 -10
- 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.tsx +4 -2
- 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/Footer/MediaButton.tsx +1 -1
- package/src/components/Gallery/GalleryInner.tsx +2 -1
- package/src/components/Header/Header.example.json +3 -0
- package/src/components/Header/Header.tsx +9 -2
- package/src/components/Headline/Headline.tsx +9 -2
- package/src/components/LikeControl/LikeControl.tsx +3 -2
- package/src/components/LinkDocs/LinkDocs.tsx +2 -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/OtherProducts/OtherProducts.fixture.tsx +61 -6
- package/src/components/OtherProducts/OtherProductsContent.ts +3 -12
- package/src/components/PictureText/PictureText.tsx +18 -13
- package/src/components/Placeholder/Placeholder.tsx +2 -1
- package/src/components/ProductBlock/ProductBlock.tsx +10 -1
- 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/TextBlock/TextBlockContent.ts +1 -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/ui-kit/BlocksList/EmbeddableBlocks.mobile.tsx +15 -0
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +4 -12
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +24 -6
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +18 -0
- package/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +10 -2
- package/src/ui-kit/Tabs/Tabs.tsx +1 -1
- package/src/utils/url.ts +9 -0
|
@@ -19,7 +19,7 @@ const renderTab =
|
|
|
19
19
|
return (
|
|
20
20
|
<div
|
|
21
21
|
key={String(index)}
|
|
22
|
-
className={`flex h-full flex-1 cursor-pointer mr-2 last:mr-0 ${
|
|
22
|
+
className={`flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content ${
|
|
23
23
|
isActive ? ACTIVE_TAB_STYLE : TAB_STYLE
|
|
24
24
|
}`}
|
|
25
25
|
role="tab"
|
package/mobile/src/utils/url.ts
CHANGED
|
@@ -13,3 +13,12 @@ export const getOrigin = (href?: string) => {
|
|
|
13
13
|
const endOfOrigin = url.indexOf('/', endOfProto + protoSeparator.length);
|
|
14
14
|
return endOfOrigin !== -1 ? url.substring(0, endOfOrigin) : url;
|
|
15
15
|
};
|
|
16
|
+
|
|
17
|
+
export const getHash = (href?: string) => {
|
|
18
|
+
if (!href || !isURL(href)) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const hashIndex = href.indexOf('#');
|
|
23
|
+
return hashIndex !== -1 ? href.substring(hashIndex, href.length) : undefined;
|
|
24
|
+
};
|
package/package.json
CHANGED
package/src/common.css
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"accordionItems": [
|
|
4
4
|
{
|
|
5
5
|
"label": "Аккордеон 1",
|
|
6
|
+
"labelIcon": "CardIcon",
|
|
6
7
|
"blocks": [
|
|
7
8
|
{
|
|
8
9
|
"blockListType": "TextBlock",
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
},
|
|
19
20
|
{
|
|
20
21
|
"label": "Аккордеон 2",
|
|
22
|
+
"labelIcon": "CardIcon",
|
|
21
23
|
"blocks": [
|
|
22
24
|
{
|
|
23
25
|
"blockListType": "TextBlock",
|
|
@@ -33,6 +35,7 @@
|
|
|
33
35
|
},
|
|
34
36
|
{
|
|
35
37
|
"label": "Аккордеон 3",
|
|
38
|
+
"labelIcon": "CardIcon",
|
|
36
39
|
"blocks": [
|
|
37
40
|
{
|
|
38
41
|
"blockListType": "TextBlock",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { BlockVersion } from '../../model/BlockVersion';
|
|
3
2
|
import type { UniBlockProps } from '../../types';
|
|
4
3
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
4
|
import type { AccordionContent } from './AccordionContent';
|
|
@@ -7,25 +6,16 @@ import { AccordionItem } from './AccordionItem';
|
|
|
7
6
|
|
|
8
7
|
export interface AccordionProps extends AccordionContent, UniBlockProps {}
|
|
9
8
|
|
|
10
|
-
const accordionStyleMap: Record<BlockVersion, string> = {
|
|
11
|
-
primary: 'bg-white text-primary-text',
|
|
12
|
-
secondary: 'bg-primary-main text-white',
|
|
13
|
-
};
|
|
14
|
-
|
|
15
9
|
export const Accordion = JSX<AccordionProps>(
|
|
16
|
-
({ title, accordionItems, context, className = '',
|
|
10
|
+
({ title, description, accordionItems, context, className = '', anchor = null }) => {
|
|
17
11
|
return (
|
|
18
|
-
<section className={`p-[50px] font-sans ${className}
|
|
12
|
+
<section className={`p-[50px] font-sans bg-white text-primary-text ${className}`} id={anchor}>
|
|
19
13
|
{title ? <Heading headingType="h4" className="mb-2.5" title={title} /> : null}
|
|
14
|
+
{description ? <div className="mb-2.5 text-base">{description}</div> : null}
|
|
20
15
|
{accordionItems?.length ? (
|
|
21
16
|
<ul className="list-none m-0 p-0">
|
|
22
17
|
{accordionItems.map((item, i) => (
|
|
23
|
-
<AccordionItem
|
|
24
|
-
key={`AccordionItem${i}`}
|
|
25
|
-
{...item}
|
|
26
|
-
version={version}
|
|
27
|
-
context={context}
|
|
28
|
-
/>
|
|
18
|
+
<AccordionItem key={`AccordionItem${i}`} {...item} context={context} />
|
|
29
19
|
))}
|
|
30
20
|
</ul>
|
|
31
21
|
) : null}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { BlockDef
|
|
1
|
+
import type { BlockDef } from '../../ui-kit/BlocksList/BlocksListProps';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import type { IconName } from '../../icons/IconName';
|
|
3
4
|
/**
|
|
4
5
|
* @title Элемент списка
|
|
5
6
|
*/
|
|
@@ -20,9 +21,7 @@ export interface AccordionItemCommonProps {
|
|
|
20
21
|
* @default false
|
|
21
22
|
*/
|
|
22
23
|
bordered?: boolean; // TODO: только для мобильной версии
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
columns?: ColumnsCount;
|
|
24
|
+
labelIcon?: IconName; // TODO: только для мобильной версии
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
/**
|
|
@@ -35,7 +34,7 @@ export interface AccordionContent {
|
|
|
35
34
|
/** @title Список */
|
|
36
35
|
accordionItems?: AccordionItemCommonProps[];
|
|
37
36
|
/** @title Описание */
|
|
38
|
-
description?: string;
|
|
37
|
+
description?: string;
|
|
39
38
|
/**
|
|
40
39
|
* @title Отображать/скрывать обводку у элемента списка
|
|
41
40
|
* @default false
|
|
@@ -7,34 +7,39 @@ import { useActiveHandler } from './useActiveHandler';
|
|
|
7
7
|
|
|
8
8
|
export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {}
|
|
9
9
|
|
|
10
|
-
export const AccordionItem = JSX<AccordionItemProps>(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
export const AccordionItem = JSX<AccordionItemProps>(
|
|
11
|
+
({ label, labelIcon, blocks, bordered, context }) => {
|
|
12
|
+
const { hasContent, icon, handleToggle } = useActiveHandler({
|
|
13
|
+
context,
|
|
14
|
+
blocks,
|
|
15
|
+
});
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} border-solid border-main-divider`}
|
|
21
|
-
>
|
|
22
|
-
<button
|
|
23
|
-
className={`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
17
|
+
return (
|
|
18
|
+
<li className={`${borderedLiClass(bordered)} border-solid border-main-divider`}>
|
|
19
|
+
<button
|
|
20
|
+
className={`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
|
|
24
21
|
${bordered ? '' : 'py-[14px] px-0'}
|
|
25
22
|
${hasContent ? 'group cursor-pointer' : ''}`}
|
|
26
|
-
|
|
27
|
-
>
|
|
28
|
-
<span
|
|
29
|
-
className={`text-m-title-xs pr-2.5 font-medium ${
|
|
30
|
-
hasContent ? 'group-hover:text-primary-main' : ''
|
|
31
|
-
}`}
|
|
23
|
+
onClick={handleToggle}
|
|
32
24
|
>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
25
|
+
<span
|
|
26
|
+
className={`text-m-title-xs pr-2.5 font-medium flex ${
|
|
27
|
+
hasContent ? 'group-hover:text-primary-main' : ''
|
|
28
|
+
}`}
|
|
29
|
+
>
|
|
30
|
+
{labelIcon ? (
|
|
31
|
+
<Icon name={labelIcon} width="24" height="24" asSVG className="mr-3" />
|
|
32
|
+
) : null}
|
|
33
|
+
{label}
|
|
34
|
+
</span>
|
|
35
|
+
{hasContent ? <Icon name={icon} width="24" height="24" asSVG /> : null}
|
|
36
|
+
</button>
|
|
37
|
+
{hasContent ? <AccordionItemInner blocks={blocks} context={context} /> : null}
|
|
38
|
+
</li>
|
|
39
|
+
);
|
|
40
|
+
},
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
function borderedLiClass(bordered) {
|
|
44
|
+
return bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0';
|
|
45
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { BlockVersion } from '../../model/BlockVersion';
|
|
3
2
|
import type { UniBlockProps } from '../../types';
|
|
4
3
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
5
4
|
import type { AccordionItemCommonProps } from './AccordionContent';
|
|
@@ -8,52 +7,27 @@ import { useActiveHandler } from './useActiveHandler';
|
|
|
8
7
|
|
|
9
8
|
export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {}
|
|
10
9
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
export const AccordionItem = JSX<AccordionItemProps>(({ label, isExpanded, blocks, context }) => {
|
|
11
|
+
const { isActive, hasContent, icon, handleToggle } = useActiveHandler({
|
|
12
|
+
context,
|
|
13
|
+
blocks,
|
|
14
|
+
initialState: isExpanded,
|
|
15
|
+
});
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
buttonStyleMap[version]
|
|
34
|
-
}
|
|
35
|
-
${hasContent ? 'group cursor-pointer' : ''}`}
|
|
36
|
-
onClick={handleToggle}
|
|
37
|
-
>
|
|
38
|
-
<span
|
|
39
|
-
className={`text-xl pr-2.5 font-medium ${
|
|
40
|
-
hasContent ? buttonHoverStyleMap[version] : ''
|
|
41
|
-
}`}
|
|
42
|
-
>
|
|
43
|
-
{label}
|
|
44
|
-
</span>
|
|
45
|
-
{hasContent ? <Icon name={icon} width="24" height="24" asSVG /> : null}
|
|
46
|
-
</button>
|
|
47
|
-
{hasContent ? (
|
|
48
|
-
<AccordionItemInner
|
|
49
|
-
isExpanded={isActive}
|
|
50
|
-
columns={columns}
|
|
51
|
-
blocks={blocks}
|
|
52
|
-
version={version}
|
|
53
|
-
context={context}
|
|
54
|
-
/>
|
|
55
|
-
) : null}
|
|
56
|
-
</li>
|
|
57
|
-
);
|
|
58
|
-
},
|
|
59
|
-
);
|
|
17
|
+
return (
|
|
18
|
+
<li className="border-0 border-b border-solid border-main-divider last:border-b-0">
|
|
19
|
+
<button
|
|
20
|
+
className={`border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans
|
|
21
|
+
${hasContent ? 'group cursor-pointer' : ''}
|
|
22
|
+
`}
|
|
23
|
+
onClick={handleToggle}
|
|
24
|
+
>
|
|
25
|
+
<span className={`text-xl pr-2.5 font-medium`}>{label}</span>
|
|
26
|
+
{hasContent ? <Icon name={icon} width="24" height="24" asSVG /> : null}
|
|
27
|
+
</button>
|
|
28
|
+
{hasContent ? (
|
|
29
|
+
<AccordionItemInner isExpanded={isActive} blocks={blocks} context={context} />
|
|
30
|
+
) : null}
|
|
31
|
+
</li>
|
|
32
|
+
);
|
|
33
|
+
});
|
|
@@ -2,14 +2,11 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import type { AccordionItemProps } from './AccordionItem';
|
|
3
3
|
import { renderBlocksList } from '../../ui-kit/BlocksList/renderBlocksList';
|
|
4
4
|
|
|
5
|
-
export const AccordionItemInner = JSX<AccordionItemProps>(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
);
|
|
14
|
-
},
|
|
15
|
-
);
|
|
5
|
+
export const AccordionItemInner = JSX<AccordionItemProps>(({ blocks, context }) => {
|
|
6
|
+
const className = 'mb-5 last:mb-0 first:mt-2';
|
|
7
|
+
return (
|
|
8
|
+
<div className="transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0">
|
|
9
|
+
{renderBlocksList({ context, className, blocks })}
|
|
10
|
+
</div>
|
|
11
|
+
);
|
|
12
|
+
});
|
|
@@ -2,13 +2,11 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import type { AccordionItemProps } from './AccordionItem';
|
|
3
3
|
import { renderBlocksList } from '../../ui-kit/BlocksList/renderBlocksList';
|
|
4
4
|
|
|
5
|
-
export const AccordionItemInner = JSX<AccordionItemProps>(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
);
|
|
5
|
+
export const AccordionItemInner = JSX<AccordionItemProps>(({ blocks, context }) => {
|
|
6
|
+
const className = 'mb-5 last:mb-0 pb-5';
|
|
7
|
+
return (
|
|
8
|
+
<div className="transition-all duration-300 max-h-0 overflow-hidden">
|
|
9
|
+
{renderBlocksList({ context, className, blocks })}
|
|
10
|
+
</div>
|
|
11
|
+
);
|
|
12
|
+
});
|
|
@@ -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,
|
|
@@ -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"
|
|
@@ -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}
|