@redneckz/wildless-cms-uni-blocks 0.3.30 → 0.3.33
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/README.md +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +184 -129
- 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 +5 -12
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js +7 -4
- 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/BenefitsBlock/BenefitsBlock.js +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
- package/dist/components/ComparisonTable/HeaderCell.d.ts +1 -2
- package/dist/components/ComparisonTable/HeaderCell.js +1 -2
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.mobile.d.ts +1 -2
- package/dist/components/ComparisonTable/HeaderCell.mobile.js +2 -3
- package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/dist/components/CreditCalculator/defaultTabs.js +3 -3
- package/dist/components/CreditCalculator/defaultTabs.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 +2 -2
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +2 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +2 -2
- package/dist/components/Footer/MediaButton.js +17 -5
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +1 -2
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +1 -2
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderBurger.js +3 -3
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +3 -3
- package/dist/components/Header/HeaderSecondaryMenu.js +2 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +2 -2
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/dist/components/LinkDocs/LinkDocsList.d.ts +2 -2
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
- package/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -2
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -12
- package/dist/components/PictureText/PictureText.js +8 -5
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +7 -0
- package/dist/components/ProductBlock/ProductBlock.js +2 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -3
- package/dist/components/ProductBlock/ProductBlockInner.js +4 -4
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js +2 -2
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js +2 -2
- package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -5
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js +7 -2
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +7 -2
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/dist/components/Recommendation/Recommendation.js +2 -2
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/dist/components/Recommendation/RecommendationCard.js +3 -3
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/Recommendation/RecommendationContent.d.ts +4 -2
- package/dist/components/StepsBlock/StepsBlock.js +10 -4
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +13 -6
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/dist/components/TariffsTable/TableTileHeader.js +2 -2
- package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -2
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -2
- package/dist/components/TariffsTable/TariffsTableRow.js +4 -4
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js +3 -4
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/dist/content-page-repository/transformContentPage.js +1 -1
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/model/Picture.d.ts +3 -0
- package/dist/model/SitemapProps.d.ts +2 -2
- package/dist/services/sitemap/SitemapProps.d.ts +2 -2
- 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/Button/ButtonInner.js +2 -2
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/dist/ui-kit/Button/ButtonSection.js +2 -2
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.js +1 -1
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +1 -1
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +11 -3
- package/dist/ui-kit/Img/Img.d.ts +4 -7
- package/dist/ui-kit/Img/Img.js +27 -9
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/dist/ui-kit/Img/Img.mobile.d.ts +4 -7
- package/dist/ui-kit/Img/Img.mobile.js +12 -3
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/Img/ImgProps.d.ts +6 -3
- package/dist/ui-kit/List/ListItem.js +2 -2
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.js +2 -2
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -3
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/dist/ui-kit/SearchBar.mobile.js +2 -2
- package/dist/ui-kit/SearchBar.mobile.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 +2 -2
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/dist/ui-kit/Tabs/TabsProps.d.ts +2 -2
- 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 +5 -12
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js +7 -4
- 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/BenefitsBlock/BenefitsBlock.js +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
- package/lib/components/ComparisonTable/HeaderCell.d.ts +1 -2
- package/lib/components/ComparisonTable/HeaderCell.js +1 -2
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.mobile.d.ts +1 -2
- package/lib/components/ComparisonTable/HeaderCell.mobile.js +2 -3
- package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/lib/components/CreditCalculator/defaultTabs.js +3 -3
- package/lib/components/CreditCalculator/defaultTabs.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 +2 -2
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +2 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +2 -2
- package/lib/components/Footer/MediaButton.js +17 -5
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +1 -2
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +1 -2
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderBurger.js +3 -3
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +3 -3
- package/lib/components/Header/HeaderSecondaryMenu.js +2 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +2 -2
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/lib/components/LinkDocs/LinkDocsList.d.ts +2 -2
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
- package/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -2
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -12
- package/lib/components/PictureText/PictureText.js +8 -5
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +7 -0
- package/lib/components/ProductBlock/ProductBlock.js +2 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -3
- package/lib/components/ProductBlock/ProductBlockInner.js +4 -4
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js +2 -2
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js +2 -2
- package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +2 -5
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js +7 -2
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +7 -2
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.fixture.d.ts +1 -0
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/lib/components/Recommendation/Recommendation.js +2 -2
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/lib/components/Recommendation/RecommendationCard.js +3 -3
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/Recommendation/RecommendationContent.d.ts +4 -2
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -0
- package/lib/components/StepsBlock/StepsBlock.js +10 -4
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +13 -6
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/lib/components/TariffsTable/TableTileHeader.js +2 -2
- package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +1 -2
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -2
- package/lib/components/TariffsTable/TariffsTableRow.js +4 -4
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js +3 -4
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/lib/content-page-repository/transformContentPage.js +1 -1
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/model/Picture.d.ts +3 -0
- package/lib/model/SitemapProps.d.ts +2 -2
- package/lib/services/sitemap/SitemapProps.d.ts +2 -2
- 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/Button/ButtonInner.js +2 -2
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/lib/ui-kit/Button/ButtonSection.js +2 -2
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.js +1 -1
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +1 -1
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +11 -3
- package/lib/ui-kit/Img/Img.d.ts +4 -7
- package/lib/ui-kit/Img/Img.js +26 -8
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/lib/ui-kit/Img/Img.mobile.d.ts +4 -7
- package/lib/ui-kit/Img/Img.mobile.js +11 -2
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/Img/ImgProps.d.ts +6 -3
- package/lib/ui-kit/List/ListItem.js +2 -2
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.js +2 -2
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js +3 -3
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/lib/ui-kit/SearchBar.mobile.js +2 -2
- package/lib/ui-kit/SearchBar.mobile.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 +2 -2
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/lib/ui-kit/Tabs/TabsProps.d.ts +2 -2
- package/mobile/bundle/bundle.umd.js +141 -217
- 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 +7 -4
- 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/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
- package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +1 -2
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +2 -3
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/CreditCalculator/defaultTabs.js +3 -3
- package/mobile/dist/components/CreditCalculator/defaultTabs.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 +2 -2
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +2 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +2 -2
- package/mobile/dist/components/Footer/MediaButton.js +17 -5
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +1 -2
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +1 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js +3 -3
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +3 -3
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +2 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +2 -2
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -12
- package/mobile/dist/components/PictureText/PictureText.js +8 -5
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +7 -0
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -3
- package/mobile/dist/components/ProductBlock/renderBenefit.js +2 -2
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +7 -2
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/mobile/dist/components/Recommendation/Recommendation.js +2 -2
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/mobile/dist/components/Recommendation/RecommendationCard.js +3 -3
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +4 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js +13 -6
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/mobile/dist/components/TariffsTable/TableTileHeader.js +2 -2
- package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -2
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +4 -4
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +3 -4
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/mobile/dist/content-page-repository/transformContentPage.js +1 -1
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/model/Picture.d.ts +3 -0
- package/mobile/dist/model/SitemapProps.d.ts +2 -2
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +2 -2
- 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/Button/ButtonInner.js +2 -2
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -2
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +11 -3
- package/mobile/dist/ui-kit/Img/Img.d.ts +4 -7
- package/mobile/dist/ui-kit/Img/Img.js +12 -3
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgProps.d.ts +6 -3
- package/mobile/dist/ui-kit/List/ListItem.js +2 -2
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -3
- package/mobile/dist/ui-kit/SearchBar/SearchBar.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 +2 -2
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +2 -2
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +3 -3
- package/mobile/lib/components/Accordion/AccordionItem.js +7 -4
- 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/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
- package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +1 -2
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +2 -3
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/CreditCalculator/defaultTabs.js +3 -3
- package/mobile/lib/components/CreditCalculator/defaultTabs.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 +2 -2
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +2 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +2 -2
- package/mobile/lib/components/Footer/MediaButton.js +17 -5
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +1 -2
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js +3 -3
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +3 -3
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +2 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +2 -2
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -12
- package/mobile/lib/components/PictureText/PictureText.js +8 -5
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +7 -0
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -3
- package/mobile/lib/components/ProductBlock/renderBenefit.js +2 -2
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +7 -2
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/mobile/lib/components/Recommendation/Recommendation.js +2 -2
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/mobile/lib/components/Recommendation/RecommendationCard.js +3 -3
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +4 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js +13 -6
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/mobile/lib/components/TariffsTable/TableTileHeader.js +2 -2
- package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -2
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +4 -4
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +3 -4
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/mobile/lib/content-page-repository/transformContentPage.js +1 -1
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/model/Picture.d.ts +3 -0
- package/mobile/lib/model/SitemapProps.d.ts +2 -2
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +2 -2
- 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/Button/ButtonInner.js +2 -2
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -2
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +11 -3
- package/mobile/lib/ui-kit/Img/Img.d.ts +4 -7
- package/mobile/lib/ui-kit/Img/Img.js +11 -2
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgProps.d.ts +6 -3
- package/mobile/lib/ui-kit/List/ListItem.js +2 -2
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +3 -3
- package/mobile/lib/ui-kit/SearchBar/SearchBar.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 +2 -2
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +2 -2
- package/mobile/src/components/Accordion/Accordion.example.json +9 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +4 -5
- package/mobile/src/components/Accordion/AccordionItem.tsx +33 -28
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +8 -11
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +6 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -5
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +2 -3
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +6 -8
- package/mobile/src/components/ContentPage/ContentPage.page.json +267 -82
- package/mobile/src/components/CreditCalculator/CreditCalculator.example.json +9 -3
- package/mobile/src/components/CreditCalculator/defaultTabs.ts +3 -3
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +2 -2
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
- package/mobile/src/components/Footer/Footer.tsx +2 -2
- package/mobile/src/components/Footer/FooterContent.ts +2 -2
- package/mobile/src/components/Footer/MediaButton.tsx +22 -10
- package/mobile/src/components/Gallery/Gallery.tsx +2 -3
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -3
- package/mobile/src/components/Header/Header.example.json +3 -0
- package/mobile/src/components/Header/HeaderBurger.tsx +5 -5
- package/mobile/src/components/Header/HeaderContent.ts +3 -3
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +5 -5
- package/mobile/src/components/Header/HeaderTop.tsx +3 -3
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +3 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +2 -2
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +2 -2
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +4 -4
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +2 -2
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +6 -2
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +3 -12
- package/mobile/src/components/PictureText/PictureText.example.json +8 -2
- package/mobile/src/components/PictureText/PictureText.tsx +37 -12
- package/mobile/src/components/PictureText/PictureTextContent.ts +7 -0
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +11 -3
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +4 -3
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +5 -5
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +22 -1
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +14 -4
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +2 -1
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +51 -28
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +2 -0
- package/mobile/src/components/Recommendation/Recommendation.example.json +18 -3
- package/mobile/src/components/Recommendation/Recommendation.tsx +6 -6
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +21 -12
- package/mobile/src/components/Recommendation/RecommendationContent.ts +6 -4
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +9 -3
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +19 -9
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +4 -3
- package/mobile/src/components/TariffsTable/TableTileHeader.tsx +2 -2
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +12 -4
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +2 -3
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +2 -2
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +7 -7
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +4 -5
- package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -1
- package/mobile/src/content-page-repository/transformContentPage.ts +1 -1
- package/mobile/src/model/Picture.ts +4 -0
- package/mobile/src/model/SitemapProps.ts +2 -2
- package/mobile/src/services/sitemap/SitemapProps.ts +2 -2
- 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/Button/ButtonInner.tsx +3 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +2 -2
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +2 -2
- package/mobile/src/ui-kit/Icon/Icon.tsx +1 -1
- package/mobile/src/ui-kit/Icon/IconProps.ts +12 -3
- package/mobile/src/ui-kit/Img/Img.tsx +38 -22
- package/mobile/src/ui-kit/Img/ImgProps.ts +7 -4
- package/mobile/src/ui-kit/List/ListItem.tsx +2 -2
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -3
- 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 +2 -2
- package/mobile/src/ui-kit/Tabs/TabsProps.ts +2 -2
- package/package.json +2 -3
- package/src/components/Accordion/Accordion.example.json +9 -0
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +3 -0
- package/src/components/Accordion/Accordion.fixture.tsx +2 -0
- package/src/components/Accordion/Accordion.tsx +4 -17
- package/src/components/Accordion/AccordionContent.ts +4 -5
- package/src/components/Accordion/AccordionItem.mobile.tsx +33 -28
- package/src/components/Accordion/AccordionItem.tsx +24 -50
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +8 -11
- package/src/components/Accordion/AccordionItemInner.tsx +8 -10
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +6 -2
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +4 -4
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -5
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +3 -3
- package/src/components/ComparisonTable/ComparisonTableContent.ts +2 -3
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +6 -8
- package/src/components/ComparisonTable/HeaderCell.tsx +3 -5
- package/src/components/ContentPage/ContentPage.page.json +267 -82
- package/src/components/CreditCalculator/CreditCalculator.example.json +9 -3
- package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +3 -3
- package/src/components/CreditCalculator/defaultTabs.ts +3 -3
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +2 -2
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
- package/src/components/Footer/Footer.mobile.tsx +2 -2
- package/src/components/Footer/FooterContent.ts +2 -2
- package/src/components/Footer/MediaButton.tsx +22 -10
- package/src/components/Footer/SocialMedia.tsx +1 -1
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
- package/src/components/Gallery/Gallery.fixture.tsx +1 -1
- package/src/components/Gallery/Gallery.mobile.tsx +2 -3
- package/src/components/Gallery/GalleryCardInner.tsx +2 -3
- package/src/components/Header/Header.example.json +3 -0
- package/src/components/Header/Header.tsx +8 -1
- package/src/components/Header/HeaderBurger.tsx +5 -5
- package/src/components/Header/HeaderContent.ts +3 -3
- package/src/components/Header/HeaderSecondaryMenu.tsx +5 -5
- package/src/components/Header/HeaderTop.tsx +3 -3
- package/src/components/LinkDocs/LinkDocs.example.json +3 -1
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +7 -2
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsContent.ts +2 -2
- package/src/components/LinkDocs/LinkDocsList.tsx +2 -2
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +4 -4
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.example.json +6 -2
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.tsx +3 -3
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +61 -6
- package/src/components/OtherProducts/OtherProductsContent.ts +3 -12
- package/src/components/PictureText/PictureText.example.json +8 -2
- package/src/components/PictureText/PictureText.fixture.tsx +2 -2
- package/src/components/PictureText/PictureText.tsx +37 -12
- package/src/components/PictureText/PictureTextContent.ts +7 -0
- package/src/components/ProductBlock/ProductBlock.example.json +11 -3
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +3 -3
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +7 -7
- package/src/components/ProductBlock/ProductBlock.tsx +2 -4
- package/src/components/ProductBlock/ProductBlockContent.ts +4 -3
- package/src/components/ProductBlock/ProductBlockInner.tsx +8 -11
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +5 -5
- package/src/components/ProductBlock/renderBenefit.tsx +5 -5
- package/src/components/ProductGallery/ProductGallery.example.json +22 -1
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +106 -104
- package/src/components/ProductGallery/ProductGallery.tsx +4 -17
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +14 -4
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +15 -4
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +2 -1
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.fixture.tsx +74 -2
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +51 -28
- package/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +2 -0
- package/src/components/Recommendation/Recommendation.example.json +18 -3
- package/src/components/Recommendation/Recommendation.fixture.tsx +15 -5
- package/src/components/Recommendation/Recommendation.tsx +6 -6
- package/src/components/Recommendation/RecommendationCard.tsx +21 -12
- package/src/components/Recommendation/RecommendationContent.ts +6 -4
- package/src/components/StepsBlock/StepsBlock.example.json +9 -3
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +14 -14
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +14 -0
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +19 -9
- package/src/components/StepsBlock/StepsBlock.tsx +15 -8
- package/src/components/StepsBlock/StepsBlockContent.ts +4 -3
- package/src/components/TariffsTable/TableTileHeader.tsx +2 -2
- package/src/components/TariffsTable/TariffsTable.example.json +12 -4
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +6 -9
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +5 -5
- package/src/components/TariffsTable/TariffsTableCell.tsx +2 -3
- package/src/components/TariffsTable/TariffsTableContent.ts +2 -2
- package/src/components/TariffsTable/TariffsTableRow.tsx +7 -7
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +4 -5
- package/src/components/TextBlock/TextBlockContent.ts +1 -1
- package/src/content-page-repository/transformContentPage.ts +1 -1
- package/src/model/Picture.ts +4 -0
- package/src/model/SitemapProps.ts +2 -2
- package/src/services/sitemap/SitemapProps.ts +2 -2
- package/src/ui-kit/BlocksList/EmbeddableBlocks.mobile.tsx +15 -0
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +4 -12
- package/src/ui-kit/Button/Button.fixture.tsx +5 -5
- package/src/ui-kit/Button/ButtonInner.tsx +3 -3
- package/src/ui-kit/Button/ButtonProps.ts +2 -2
- package/src/ui-kit/Button/ButtonSection.tsx +2 -2
- package/src/ui-kit/Heading/Heading.tsx +1 -3
- package/src/ui-kit/Icon/Icon.tsx +1 -1
- package/src/ui-kit/Icon/IconProps.ts +12 -3
- package/src/ui-kit/Img/Img.mobile.tsx +38 -22
- package/src/ui-kit/Img/Img.tsx +50 -23
- package/src/ui-kit/Img/ImgProps.ts +7 -4
- package/src/ui-kit/List/ListItem.tsx +2 -2
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +3 -3
- package/src/ui-kit/SearchBar/SearchBar.tsx +2 -2
- package/src/ui-kit/SearchBar.mobile.tsx +2 -2
- 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 +2 -2
- package/src/ui-kit/Tabs/TabsProps.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAGvD,iDAA8C;AAE9C,MAAM,kBAAkB,GAA8B;IACpD,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEF,MAAM,oBAAoB,GAAoC;IAC5D,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,WAAW;CACpB,CAAC;AAEF,MAAM,uBAAuB,GAAoC;IAC/D,MAAM,EAAE,qCAAqC;IAC7C,MAAM,EAAE,uBAAuB;CAChC,CAAC;AAIW,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,QAAQ,EACR,KAAK,EACL,SAAS,EACT,IAAI,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAGvD,iDAA8C;AAE9C,MAAM,kBAAkB,GAA8B;IACpD,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEF,MAAM,oBAAoB,GAAoC;IAC5D,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,WAAW;CACpB,CAAC;AAEF,MAAM,uBAAuB,GAAoC;IAC/D,MAAM,EAAE,qCAAqC;IAC7C,MAAM,EAAE,uBAAuB;CAChC,CAAC;AAIW,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,QAAQ,EACR,KAAK,EACL,SAAS,EACT,IAAI,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,EAC1B,WAAW,GAAG,QAAQ,EACtB,MAAM,GAAG,IAAI,GACd,EAAE,EAAE;IACH,OAAO,CACL,qCAAS,SAAS,EAAE,6CAA6C,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,aACrF,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,oBAAoB,CAAC,WAAW,CAAC,IACnE,kBAAkB,CAAC,KAAK,IAAI,QAAQ,CACtC,EAAE,EACF,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,CAAC,CAAC,CAAC,CACV,+BACE,SAAS,EAAE,8BAA8B,oBAAoB,CAAC,WAAW,CAAC,IACxE,kBAAkB,CAAC,KAAK,IAAI,QAAQ,CACtC,EAAE,YAED,QAAQ,GACN,CACN,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,2BAAY,IACX,SAAS,EAAE,uBAAuB,CAAC,WAAW,CAAC,EAC/C,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,GACV,IACM,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -5,7 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
6
|
const LinkDocsHorizontalList_1 = require("./LinkDocsHorizontalList");
|
|
7
7
|
const LinkDocsVerticalList_1 = require("./LinkDocsVerticalList");
|
|
8
|
-
exports.LinkDocs = (0, uni_jsx_1.JSX)(({ className = '', context, title, subtitle, icon = 'DocIconMonoColor', documents, orientation = 'vertical', hasBorder = true, }) => {
|
|
8
|
+
exports.LinkDocs = (0, uni_jsx_1.JSX)(({ className = '', context, title, subtitle, icon = { icon: 'DocIconMonoColor' }, documents, orientation = 'vertical', hasBorder = true, }) => {
|
|
9
9
|
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${className}`, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: `text-center ${subtitle ? 'mb-2' : 'mb-5'}`, title: title })) : null, subtitle ? ((0, jsx_runtime_1.jsx)("h3", { className: "mt-0 font-normal mb-5 text-center text-m-md", children: subtitle })) : null, orientation === 'vertical' ? ((0, jsx_runtime_1.jsx)(LinkDocsVerticalList_1.LinkDocsVerticalList, { hasBorder: hasBorder, documents: documents, icon: icon })) : ((0, jsx_runtime_1.jsx)(LinkDocsHorizontalList_1.LinkDocsHorizontalList, { context: context, hasBorder: hasBorder, documents: documents, icon: icon }))] }));
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=LinkDocs.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocs.mobile.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAEvD,qEAAkE;AAClE,iEAA8D;AAIjD,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,kBAAkB,
|
|
1
|
+
{"version":3,"file":"LinkDocs.mobile.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAEvD,qEAAkE;AAClE,iEAA8D;AAIjD,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,EAAE,IAAI,EAAE,kBAAkB,EAAE,EACnC,SAAS,EACT,WAAW,GAAG,UAAU,EACxB,SAAS,GAAG,IAAI,GACjB,EAAE,EAAE;IACH,OAAO,CACL,qCACE,SAAS,EAAE,oEAAoE,SAAS,EAAE,aAEzF,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,eAAe,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EACtD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,CAAC,CAAC,CAAC,CACV,+BAAI,SAAS,EAAC,6CAA6C,YAAE,QAAQ,GAAM,CAC5E,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,CAC5B,uBAAC,2CAAoB,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,GAAI,CACjF,CAAC,CAAC,CAAC,CACF,uBAAC,+CAAsB,IACrB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,GACV,CACH,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
-
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
3
2
|
import type { AlignType } from '../BaseTile/BaseTileProps';
|
|
4
3
|
import type { ListOrientation } from '../../model/ListOrientation';
|
|
4
|
+
import type { Picture } from '../../model/Picture';
|
|
5
5
|
/**
|
|
6
6
|
* @title Отображение списка
|
|
7
7
|
* @enumNames [
|
|
@@ -26,7 +26,7 @@ export interface LinkDocsContent {
|
|
|
26
26
|
/** @title Описание */
|
|
27
27
|
subtitle?: string;
|
|
28
28
|
/** @title Название иконки */
|
|
29
|
-
icon?:
|
|
29
|
+
icon?: Picture;
|
|
30
30
|
/** @title Список */
|
|
31
31
|
documents?: LinkDocsItem[];
|
|
32
32
|
columnsMode?: LinkColumnsMode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
2
1
|
import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
3
|
export interface LinkDocsListProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
documents?: LinkDocsItem[];
|
|
6
6
|
columnsMode?: LinkColumnsMode;
|
|
7
|
-
icon?:
|
|
7
|
+
icon?: Picture;
|
|
8
8
|
}
|
|
9
9
|
export declare const LinkDocsList: (props: import("@redneckz/uni-jsx").PropsWithChildren<LinkDocsListProps, any>, context?: any) => any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
2
1
|
import type { LinkDocsItem } from './LinkDocsContent';
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
3
|
export interface LinkDocsListItemProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
doc: LinkDocsItem;
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: Picture;
|
|
7
7
|
}
|
|
8
8
|
export interface LinkDocsListItemBaseProps extends LinkDocsListItemProps {
|
|
9
9
|
iconClassName?: string;
|
|
@@ -2,10 +2,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.LinkDocsListItemBase = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const
|
|
5
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
6
|
exports.LinkDocsListItemBase = (0, uni_jsx_1.JSX)(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
7
7
|
const { text, fileSize, ...linkProps } = doc;
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("a", { className: className, role: "link", ...linkProps, children: [icon ? ((0, jsx_runtime_1.jsx)(
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("a", { className: className, role: "link", ...linkProps, children: [icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: iconClassName, image: icon, width: "24px", height: "24px", asSVG: true })) : null, text ? ((0, jsx_runtime_1.jsxs)("span", { className: textClassName, children: [text, (0, jsx_runtime_1.jsx)("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
9
9
|
});
|
|
10
10
|
const formatSuffix = (ext, fileSize) => {
|
|
11
11
|
const prefix = ext || fileSize ? ',' : '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsListItemBase.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItemBase.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"LinkDocsListItemBase.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItemBase.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8CAA2C;AAgB9B,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC;IAC7C,OAAO,CACL,+BAAG,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,KAAK,SAAS,aAC/C,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IAAC,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,CAChF,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,CACN,kCAAM,SAAS,EAAE,aAAa,aAC3B,IAAI,EACL,iCAAM,SAAS,EAAE,eAAe,YAC7B,SAAS,EAAE,IAAI,IAAI,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GACrE,IACF,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,GAAY,EAAE,QAAiB,EAAE,EAAE;IACvD,MAAM,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9C,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAErB,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IconName } from '../../icons/IconName';
|
|
2
1
|
import type { LinkDocsItem } from './LinkDocsContent';
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
3
|
export interface LinkDocsVerticalListProps {
|
|
4
4
|
hasBorder?: boolean;
|
|
5
5
|
documents?: LinkDocsItem[];
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: Picture;
|
|
7
7
|
}
|
|
8
8
|
export declare const LinkDocsVerticalList: (props: import("@redneckz/uni-jsx").PropsWithChildren<LinkDocsVerticalListProps, any>, context?: any) => any;
|
|
@@ -9,6 +9,6 @@ const getTileHeadingType_1 = require("../BaseTile/getTileHeadingType");
|
|
|
9
9
|
const getTileMinHeight_1 = require("../BaseTile/getTileMinHeight");
|
|
10
10
|
const getTileRightPadding_1 = require("../BaseTile/getTileRightPadding");
|
|
11
11
|
exports.MobileAppTile = (0, uni_jsx_1.JSX)(({ className = '', context, title = 'Мобильное приложение', qr, buttons = [], anchor = null, }) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, id: anchor, children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { context: context, title: title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: (0, getTileHeadingType_1.getTileHeadingType)(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex mt-
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, id: anchor, children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { context: context, title: title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: (0, getTileHeadingType_1.getTileHeadingType)(className), title: title, className: `whitespace-pre-wrap max-w-[600px] mb-7` })), buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex mt-7 gap-4" })) : null, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [qr?.src && qr?.href && ((0, jsx_runtime_1.jsx)("a", { href: qr.href, target: "_blank", "aria-label": title, children: (0, jsx_runtime_1.jsx)("img", { src: qr.src, alt: title, title: title, width: "164", height: "164", className: "w-[90px] h-[90px] min-w-[90px] min-h-[90px] bg-secondary-light" }) })), (0, jsx_runtime_1.jsx)("span", { className: "font-light text-secondary-text ml-4", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }) }) }));
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=MobileAppTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,0DAAuD;AACvD,mDAAgD;AAChD,uEAAoE;AACpE,mEAAgE;AAChE,yEAAsE;AAKzD,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,GAAG,sBAAsB,EAC9B,EAAE,EACF,OAAO,GAAG,EAAE,EACZ,MAAM,GAAG,IAAI,GACd,EAAE,EAAE;IACH,OAAO,CACL,oCACE,SAAS,EAAE,uDAAuD,SAAS,KAAK,IAAA,yCAAmB,EACjG,SAAS,CACV,IAAI,IAAA,mCAAgB,EAAC,SAAS,CAAC,GAAG,EACnC,EAAE,EAAE,MAAM,YAEV,uBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,uBAAC,iBAAO,IACN,WAAW,EAAE,IAAA,uCAAkB,EAAC,SAAS,CAAC,EAC1C,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,0DAAuD;AACvD,mDAAgD;AAChD,uEAAoE;AACpE,mEAAgE;AAChE,yEAAsE;AAKzD,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,GAAG,sBAAsB,EAC9B,EAAE,EACF,OAAO,GAAG,EAAE,EACZ,MAAM,GAAG,IAAI,GACd,EAAE,EAAE;IACH,OAAO,CACL,oCACE,SAAS,EAAE,uDAAuD,SAAS,KAAK,IAAA,yCAAmB,EACjG,SAAS,CACV,IAAI,IAAA,mCAAgB,EAAC,SAAS,CAAC,GAAG,EACnC,EAAE,EAAE,MAAM,YAEV,uBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,uBAAC,iBAAO,IACN,WAAW,EAAE,IAAA,uCAAkB,EAAC,SAAS,CAAC,EAC1C,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,wCAAwC,GACnD,CACH,EAEH,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,uBAAC,6BAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,YAGV,iCAAK,SAAS,EAAC,mBAAmB,aAC/B,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,IAAI,IAAI,CACtB,8BAAG,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,MAAM,EAAC,QAAQ,gBAAa,KAAK,YACjD,gCACE,GAAG,EAAE,EAAE,CAAC,GAAG,EACX,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,SAAS,EAAC,gEAAgE,GAC1E,GACA,CACL,EACD,iCAAM,SAAS,EAAC,qCAAqC,+SAE9C,IACH,GACG,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -14,11 +14,6 @@ export interface blockItemCommonProps {
|
|
|
14
14
|
isExpanded?: boolean;
|
|
15
15
|
/** @title Блоки */
|
|
16
16
|
blocks?: BlockDef[];
|
|
17
|
-
/**
|
|
18
|
-
* @title Отображать/скрывать обводку элемента
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
bordered?: boolean;
|
|
22
17
|
columns?: ColumnsCount;
|
|
23
18
|
}
|
|
24
19
|
/**
|
|
@@ -27,13 +22,9 @@ export interface blockItemCommonProps {
|
|
|
27
22
|
export interface OtherProductsContent {
|
|
28
23
|
/** @title Заголовок */
|
|
29
24
|
title?: string;
|
|
30
|
-
/** @title Список */
|
|
31
|
-
blockItems?: blockItemCommonProps[];
|
|
32
|
-
/** @title Подзаголовок */
|
|
33
|
-
description?: string;
|
|
34
25
|
/**
|
|
35
|
-
* @title
|
|
36
|
-
* @
|
|
26
|
+
* @title Список
|
|
27
|
+
* @maxItems 10
|
|
37
28
|
*/
|
|
38
|
-
|
|
29
|
+
blockItems?: blockItemCommonProps[];
|
|
39
30
|
}
|
|
@@ -3,12 +3,15 @@ exports.PictureText = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
|
-
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
7
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const pictureTextStyleMap = {
|
|
8
|
+
primary: 'bg-white text-primary-text',
|
|
9
|
+
secondary: 'bg-primary-main text-white',
|
|
10
|
+
};
|
|
11
|
+
exports.PictureText = (0, uni_jsx_1.JSX)(({ className = '', title, image, benefits, version = 'primary', directionRight = false, anchor = null, }) => {
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans p-14 ${pictureTextStyleMap[version]} ${className}`, id: anchor, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: "text-center", title: title }), (0, jsx_runtime_1.jsxs)("div", { className: 'flex justify-center mt-9', children: [image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: directionRight ? 'order-2 ml-6' : 'mr-6', image: image }), benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null] })] }));
|
|
10
13
|
});
|
|
11
|
-
function renderBenefit(benefit, i) {
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row mb-8", children: [benefit.icon
|
|
14
|
+
function renderBenefit(benefit, i, version) {
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row mb-8", children: [benefit.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", image: benefit.icon, width: "48", height: "48", asSVG: true })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && ((0, jsx_runtime_1.jsx)("div", { className: `font-medium text-xl m-0 ${version === 'primary' ? 'text-primary-text' : ''}`, children: benefit.label })), benefit.description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm ${version === 'primary' ? 'text-secondary-text' : ''}`, children: benefit.description }))] })] }, String(i)));
|
|
13
16
|
}
|
|
14
17
|
//# sourceMappingURL=PictureText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PictureText.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureText.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"PictureText.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureText.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAKxC,0DAAuD;AACvD,8CAA2C;AAK3C,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAO,GAAG,SAAS,EACnB,cAAc,GAAG,KAAK,EACtB,MAAM,GAAG,IAAI,GACd,EAAE,EAAE;IACH,OAAO,CACL,qCACE,SAAS,EAAE,2BAA2B,mBAAmB,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EACjF,EAAE,EAAE,MAAM,aAEV,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,EAClE,iCAAK,SAAS,EAAE,0BAA0B,aACvC,KAAK,EAAE,GAAG,IAAI,uBAAC,SAAG,IAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,GAAI,EACxF,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,CAClB,gCAAK,SAAS,EAAC,eAAe,YAC3B,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GACjD,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,aAAa,CAAC,OAAgB,EAAE,CAAS,EAAE,OAAe;IACjE,OAAO,CACL,iCAAqB,SAAS,EAAC,oBAAoB,aAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CACd,uBAAC,SAAG,IACF,SAAS,EAAC,4DAA4D,EACtE,KAAK,EAAE,OAAO,CAAC,IAAI,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACR,iCAAK,SAAS,EAAC,+CAA+C,aAC3D,OAAO,CAAC,KAAK,IAAI,CAChB,gCACE,SAAS,EAAE,2BACT,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAChD,EAAE,YAED,OAAO,CAAC,KAAK,GACV,CACP,EACA,OAAO,CAAC,WAAW,IAAI,CACtB,gCACE,SAAS,EAAE,uBAAuB,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,YAErF,OAAO,CAAC,WAAW,GAChB,CACP,IACG,KA3BE,MAAM,CAAC,CAAC,CAAC,CA4Bb,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BlockVersion } from '../../model/BlockVersion';
|
|
1
2
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
2
3
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
3
4
|
import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
@@ -6,6 +7,12 @@ export declare type TitleWithImageContent = HeadingContent & ImageContent;
|
|
|
6
7
|
* @title Картинка с текстом
|
|
7
8
|
*/
|
|
8
9
|
export interface PictureTextContent extends TitleWithImageContent {
|
|
10
|
+
version?: BlockVersion;
|
|
9
11
|
/** @title Список преимуществ */
|
|
10
12
|
benefits?: Benefit[];
|
|
13
|
+
/**
|
|
14
|
+
* @title Картинка справа/текст слева
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
directionRight?: boolean;
|
|
11
18
|
}
|
|
@@ -15,9 +15,9 @@ const breadcrumbsStyleMap = {
|
|
|
15
15
|
secondary: 'text-white/80',
|
|
16
16
|
};
|
|
17
17
|
exports.ProductBlock = (0, uni_jsx_1.JSX)((props) => {
|
|
18
|
-
const { context, className, breadcrumbs, version = 'primary', anchor = null, ...otherProps } = props;
|
|
18
|
+
const { context, className = '', breadcrumbs, version = 'primary', anchor = null, ...otherProps } = props;
|
|
19
19
|
const router = context.useRouter();
|
|
20
20
|
const { handlerDecorator } = context;
|
|
21
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${
|
|
21
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${productBlockStyleMap[version]} ${className}`, id: anchor, children: [breadcrumbs?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "text-xs mb-6", children: (0, joinList_1.joinList)((0, jsx_runtime_1.jsx)("span", { className: `mx-2 ${breadcrumbsStyleMap[version]}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => ((0, jsx_runtime_1.jsx)(Breadcrumb_1.Breadcrumb, { ...(0, useLink_1.useLink)({ router, handlerDecorator }, { className: breadcrumbsStyleMap[version], ...breadcrumb }) }, String(i))))) })) : null, (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { context: context, version: version, ...otherProps })] }));
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=ProductBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,wDAAqD;AACrD,mDAAgD;AAEhD,2DAAwD;AAIxD,MAAM,oBAAoB,GAAiC;IACzD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,eAAe;CAC3B,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,aAAG,EAAoB,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,EACJ,OAAO,EACP,SAAS,
|
|
1
|
+
{"version":3,"file":"ProductBlock.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,wDAAqD;AACrD,mDAAgD;AAEhD,2DAAwD;AAIxD,MAAM,oBAAoB,GAAiC;IACzD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,eAAe;CAC3B,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,aAAG,EAAoB,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,EACJ,OAAO,EACP,SAAS,GAAG,EAAE,EACd,WAAW,EACX,OAAO,GAAG,SAAS,EACnB,MAAM,GAAG,IAAI,EACb,GAAG,UAAU,EACd,GAAG,KAAK,CAAC;IACV,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,qCACE,SAAS,EAAE,4EAA4E,oBAAoB,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EACnI,EAAE,EAAE,MAAM,aAET,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,gCAAK,SAAS,EAAC,cAAc,YAC1B,IAAA,mBAAQ,EAAC,iCAAM,SAAS,EAAE,QAAQ,mBAAmB,CAAC,OAAO,CAAC,EAAE,kBAAU,CAAC,CAC1E,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CACjC,uBAAC,uBAAU,OAEL,IAAA,iBAAO,EACT,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAC5B,EAAE,SAAS,EAAE,mBAAmB,CAAC,OAAO,CAAC,EAAE,GAAG,UAAU,EAAE,CAC3D,IAJI,MAAM,CAAC,CAAC,CAAC,CAKd,CACH,CAAC,CACH,GACG,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,qCAAiB,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,KAAM,UAAU,GAAI,IACjE,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -14,7 +14,10 @@ export declare type ProductBlockInnerContent = HeadingContent & HeadingTypeConte
|
|
|
14
14
|
*/
|
|
15
15
|
benefits?: Benefit[];
|
|
16
16
|
version?: BlockVersion;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* @title Буллиты
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
18
21
|
isDotted?: boolean;
|
|
19
22
|
/** @title Лейбл (моб.) */
|
|
20
23
|
label?: string;
|
|
@@ -23,8 +26,6 @@ export declare type ProductBlockInnerContent = HeadingContent & HeadingTypeConte
|
|
|
23
26
|
* @hidden
|
|
24
27
|
*/
|
|
25
28
|
textBlockClassName?: string;
|
|
26
|
-
/** @title Фоновый текст под иллюстрацией */
|
|
27
|
-
backgroundText?: string;
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
31
|
* @title Продуктовый блок
|
|
@@ -4,17 +4,17 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
|
|
6
6
|
const Description_1 = require("../../ui-kit/Description/Description");
|
|
7
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
8
7
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
9
8
|
const List_1 = require("../../ui-kit/List/List");
|
|
10
9
|
const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
11
10
|
const renderBenefit_1 = require("./renderBenefit");
|
|
12
11
|
exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
13
|
-
const textColor = version === 'secondary' ? 'text-white' : '';
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex grow justify-between items-stretch ${className}`, children: [(0, jsx_runtime_1.jsx)("div", { className: `flex flex-col ${textBlockClassName}`, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: getTitle(title, headingType, textColor), buttons: getButtons(context, buttons), children: [description && ((0, jsx_runtime_1.jsx)(Description_1.Description, { className:
|
|
12
|
+
const textColor = version === 'secondary' ? 'text-white' : 'text-primary-text';
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex grow justify-between items-stretch ${className}`, children: [(0, jsx_runtime_1.jsx)("div", { className: `flex flex-col ${textBlockClassName}`, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: getTitle(title, headingType, textColor), buttons: getButtons(context, buttons), children: [description && ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: `mt-[18px] max-w-[600px] text-title-new-sm font-light ${textColor}`, description: description })), benefits?.filter((items) => items.label)?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-6 mt-6", children: benefits.map((_, i) => (0, renderBenefit_1.renderBenefit)(_, i, version)) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-5 text-title-new-sm font-light", items: items, itemClassName: "mb-[10px]", version: version, isDotted: isDotted })) : null] }) }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto", image: image })] }));
|
|
15
14
|
});
|
|
16
15
|
const getTitle = (title, headingType, textColor) => {
|
|
17
|
-
|
|
16
|
+
const Tag = headingType;
|
|
17
|
+
return (title && (0, jsx_runtime_1.jsx)(Tag, { className: `font-sans font-medium m-0 text-title-xl ${textColor}`, children: title }));
|
|
18
18
|
};
|
|
19
19
|
const getButtons = (context, buttons) => {
|
|
20
20
|
return buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,sEAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,sEAAmE;AACnE,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,kBAAkB,GAAG,EAAE,GACxB,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAC/E,OAAO,CACL,iCAAK,SAAS,EAAE,2CAA2C,SAAS,EAAE,aACpE,gCAAK,SAAS,EAAE,iBAAiB,kBAAkB,EAAE,YACnD,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC,EAC9C,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,aAEpC,WAAW,IAAI,CACd,uBAAC,yBAAW,IACV,SAAS,EAAE,wDAAwD,SAAS,EAAE,EAC9E,WAAW,EAAE,WAAW,GACxB,CACH,EACA,QAAQ,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAClD,gCAAK,SAAS,EAAC,iBAAiB,YAC7B,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAA,6BAAa,EAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GACjD,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,mCAAmC,EAC7C,KAAK,EAAE,KAAK,EACZ,aAAa,EAAC,WAAW,EACzB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,IACC,GACP,EACL,KAAK,EAAE,GAAG,IAAI,uBAAC,SAAG,IAAC,SAAS,EAAC,SAAS,EAAC,KAAK,EAAE,KAAK,GAAI,IACpD,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE;IACjD,MAAM,GAAG,GAAG,WAAW,CAAC;IACxB,OAAO,CACL,KAAK,IAAI,uBAAC,GAAG,IAAC,SAAS,EAAE,2CAA2C,SAAS,EAAE,YAAG,KAAK,GAAO,CAC/F,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;IACtC,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,uBAAC,6BAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderBenefit = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const
|
|
4
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
5
5
|
const benefitIconBgStyleMap = {
|
|
6
6
|
primary: 'bg-main',
|
|
7
7
|
secondary: 'bg-white/30',
|
|
@@ -15,7 +15,7 @@ const benefitDescStyleMap = {
|
|
|
15
15
|
secondary: 'text-white',
|
|
16
16
|
};
|
|
17
17
|
function renderBenefit(benefit, i, version) {
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-4 items-center", children: [benefit.icon
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-4 items-center", children: [benefit.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${benefitIconBgStyleMap[version]}`, image: benefit.icon, width: "24", height: "24", asSVG: true })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-1 flex-col h-full max-w-[149px]", children: [(0, jsx_runtime_1.jsx)("div", { className: `font-medium text-xl m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm ${benefitDescStyleMap[version]}`, children: benefit.description }))] })] }, String(i)));
|
|
19
19
|
}
|
|
20
20
|
exports.renderBenefit = renderBenefit;
|
|
21
21
|
//# sourceMappingURL=renderBenefit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBenefit.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBenefit.tsx"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"renderBenefit.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBenefit.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;AAG3C,MAAM,qBAAqB,GAAiC;IAC1D,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,aAAa;CACzB,CAAC;AACF,MAAM,oBAAoB,GAAiC;IACzD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;CACxB,CAAC;AACF,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;CACxB,CAAC;AAEF,SAAgB,aAAa,CAAC,OAAgB,EAAE,CAAS,EAAE,OAAe;IACxE,OAAO,CACL,iCAAqB,SAAS,EAAC,yBAAyB,aACrD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CACd,uBAAC,SAAG,IACF,SAAS,EAAE,gFAAgF,qBAAqB,CAAC,OAAO,CAAC,EAAE,EAC3H,KAAK,EAAE,OAAO,CAAC,IAAI,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACR,iCAAK,SAAS,EAAC,0CAA0C,aACvD,gCAAK,SAAS,EAAE,2BAA2B,oBAAoB,CAAC,OAAO,CAAC,EAAE,YACvE,OAAO,CAAC,KAAK,GACV,EACL,OAAO,CAAC,WAAW,IAAI,CACtB,gCAAK,SAAS,EAAE,uBAAuB,mBAAmB,CAAC,OAAO,CAAC,EAAE,YAClE,OAAO,CAAC,WAAW,GAChB,CACP,IACG,KAnBE,MAAM,CAAC,CAAC,CAAC,CAoBb,CACP,CAAC;AACJ,CAAC;AAxBD,sCAwBC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderBenefit = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const
|
|
4
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
5
5
|
const benefitTitleStyleMap = {
|
|
6
6
|
primary: 'text-primary-text',
|
|
7
7
|
secondary: 'text-white',
|
|
@@ -11,7 +11,7 @@ const benefitDescStyleMap = {
|
|
|
11
11
|
secondary: 'text-white',
|
|
12
12
|
};
|
|
13
13
|
function renderBenefit(benefit, i, version) {
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-3 items-center mb-2.5 last:mb-0", children: [benefit.icon
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-3 items-center mb-2.5 last:mb-0", children: [benefit.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-6 h-6 rounded-full box-border", image: benefit.icon, width: "24", height: "24", asSVG: true, color: version })) : null, (0, jsx_runtime_1.jsx)("div", { className: `font-medium text-m-title-xs m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-m-sm ${benefitDescStyleMap[version]}`, children: benefit.description }))] }, String(i)));
|
|
15
15
|
}
|
|
16
16
|
exports.renderBenefit = renderBenefit;
|
|
17
17
|
//# sourceMappingURL=renderBenefit.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBenefit.mobile.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBenefit.mobile.tsx"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"renderBenefit.mobile.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBenefit.mobile.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;AAG3C,MAAM,oBAAoB,GAAiC;IACzD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;CACxB,CAAC;AACF,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;CACxB,CAAC;AAEF,SAAgB,aAAa,CAAC,OAAgB,EAAE,CAAS,EAAE,OAAqB;IAC9E,OAAO,CACL,iCAAqB,SAAS,EAAC,0CAA0C,aACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CACd,uBAAC,SAAG,IACF,SAAS,EAAC,iCAAiC,EAC3C,KAAK,EAAE,OAAO,CAAC,IAAI,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,QACL,KAAK,EAAE,OAAO,GACd,CACH,CAAC,CAAC,CAAC,IAAI,EACR,gCAAK,SAAS,EAAE,mCAAmC,oBAAoB,CAAC,OAAO,CAAC,EAAE,YAC/E,OAAO,CAAC,KAAK,GACV,EACL,OAAO,CAAC,WAAW,IAAI,CACtB,gCAAK,SAAS,EAAE,yBAAyB,mBAAmB,CAAC,OAAO,CAAC,EAAE,YACpE,OAAO,CAAC,WAAW,GAChB,CACP,KAlBO,MAAM,CAAC,CAAC,CAAC,CAmBb,CACP,CAAC;AACJ,CAAC;AAvBD,sCAuBC"}
|
|
@@ -2,12 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.ProductGallery = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const
|
|
5
|
+
const ProductGalleryBlock_1 = require("./ProductGalleryBlock");
|
|
6
6
|
exports.ProductGallery = (0, uni_jsx_1.JSX)(({ className, context, duration = 0, slides = [], anchor = null }) => {
|
|
7
7
|
const galleryNav = slides.map((s) => s.nav);
|
|
8
8
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
9
9
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans bg-white overflow-hidden w-100 ${className || ''}`, id: anchor, children: [(0, jsx_runtime_1.jsx)("div", { className: `flex duration-1000`, style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) =>
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans bg-white overflow-hidden w-100 ${className || ''}`, id: anchor, children: [(0, jsx_runtime_1.jsx)("div", { className: `flex duration-1000`, style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => ((0, jsx_runtime_1.jsx)(ProductGalleryBlock_1.ProductGalleryBlock, { context: context, block: _ }, String(i)))) }), (0, jsx_runtime_1.jsx)("div", { className: "flex", children: galleryNav.map((slide, i) => renderNavButton({
|
|
11
11
|
slide,
|
|
12
12
|
i,
|
|
13
13
|
activeSlideIndex,
|
|
@@ -15,9 +15,6 @@ exports.ProductGallery = (0, uni_jsx_1.JSX)(({ className, context, duration = 0,
|
|
|
15
15
|
duration,
|
|
16
16
|
})) })] }));
|
|
17
17
|
});
|
|
18
|
-
function renderProductBlock(block, i, context) {
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: "flex grow-0 shrink-0 basis-full", role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "p-10 flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { className: "pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]", context: context, ...block }) }) }, String(i)));
|
|
20
|
-
}
|
|
21
18
|
function renderNavButton({ slide, i, activeSlideIndex, onClick, duration }) {
|
|
22
19
|
const isActiveBtn = i === activeSlideIndex;
|
|
23
20
|
const progressBarClassName = isActiveBtn ? 'animate-slide' : '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,+DAA4D;AAM/C,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,GAAG,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IACnE,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACxD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpE,OAAO,CACL,qCACE,SAAS,EAAE,4CAA4C,SAAS,IAAI,EAAE,EAAE,EACxE,EAAE,EAAE,MAAM,aAEV,gCACE,SAAS,EAAE,oBAAoB,EAC/B,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,gBAAgB,MAAM,EAAE,EAC3D,IAAI,EAAC,MAAM,YAEV,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAC3B,uBAAC,yCAAmB,IAAiB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,IAArC,MAAM,CAAC,CAAC,CAAC,CAAgC,CACpE,CAAC,GACE,EAEN,gCAAK,SAAS,EAAC,MAAM,YAClB,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAC3B,eAAe,CAAC;oBACd,KAAK;oBACL,CAAC;oBACD,gBAAgB;oBAChB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;oBACrC,QAAQ;iBACT,CAAC,CACH,GACG,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE;IACxE,MAAM,WAAW,GAAG,CAAC,KAAK,gBAAgB,CAAC;IAC3C,MAAM,oBAAoB,GAAG,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,MAAM,iBAAiB,GAAG,WAAW,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,qBAAqB,CAAC;IACpF,OAAO,CACL,oCACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,OAAO,gBACJ,KAAK,EAAE,KAAK,EACxB,SAAS,EAAE,wHAAwH,aAEnI,iCAAK,SAAS,EAAC,yDAAyD,aACtE,gCACE,SAAS,EAAE,8DAA8D,iBAAiB,EAAE,YAE3F,KAAK,EAAE,KAAK,GACT,EACN,gCAAK,SAAS,EAAC,6BAA6B,YAAE,KAAK,CAAC,IAAI,GAAO,IAC3D,EACN,gCACE,SAAS,EAAE,6EAA6E,oBAAoB,EAAE,EAC9G,KAAK,EAAE,EAAE,iBAAiB,EAAE,GAAG,QAAQ,GAAG,EAAE,iBAAiB,EAAE,UAAU,EAAE,GACtE,KAhBF,MAAM,CAAC,CAAC,CAAC,CAiBP,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../types';
|
|
2
1
|
import { HeadingType } from '../../ui-kit/Heading/HeadingContent';
|
|
3
2
|
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
3
|
+
import type { UniBlockProps } from '../../types';
|
|
4
4
|
export interface ProductGalleryBlockProps extends UniBlockProps {
|
|
5
5
|
headingType?: HeadingType;
|
|
6
6
|
block?: ProductBlockInnerContent;
|
|
@@ -3,7 +3,12 @@ exports.ProductGalleryBlock = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const ProductBlockInner_1 = require("../ProductBlock/ProductBlockInner");
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const productGalleryStyleMap = {
|
|
7
|
+
primary: 'bg-white text-primary-text',
|
|
8
|
+
secondary: 'bg-primary-main text-white',
|
|
9
|
+
};
|
|
10
|
+
exports.ProductGalleryBlock = (0, uni_jsx_1.JSX)(({ block, headingType, context, className = '' }) => {
|
|
11
|
+
const version = block?.version ?? 'primary';
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: `flex grow-0 shrink-0 basis-full ${productGalleryStyleMap[version]} ${className}`, role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "p-10 flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { className: "pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]", context: context, headingType: headingType || 'h2', ...block }) }) }));
|
|
8
13
|
});
|
|
9
14
|
//# sourceMappingURL=ProductGalleryBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGalleryBlock.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGalleryBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"ProductGalleryBlock.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGalleryBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,yEAAsE;AAKtE,MAAM,sBAAsB,GAAiC;IAC3D,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAOW,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE;IAClD,MAAM,OAAO,GAAG,KAAK,EAAE,OAAO,IAAI,SAAS,CAAC;IAE5C,OAAO,CACL,oCACE,SAAS,EAAE,mCAAmC,sBAAsB,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EAC5F,IAAI,EAAC,UAAU,YAEf,gCAAK,SAAS,EAAC,gBAAgB,YAC7B,uBAAC,qCAAiB,IAChB,SAAS,EAAC,mCAAmC,EAC7C,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,IAAI,IAAI,KAC5B,KAAK,GACT,GACE,GACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../types';
|
|
2
1
|
import { HeadingType } from '../../ui-kit/Heading/HeadingContent';
|
|
3
2
|
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
3
|
+
import type { UniBlockProps } from '../../types';
|
|
4
4
|
export interface ProductGalleryBlockProps extends UniBlockProps {
|
|
5
5
|
headingType?: HeadingType;
|
|
6
6
|
block?: ProductBlockInnerContent;
|
|
@@ -3,7 +3,12 @@ exports.ProductGalleryBlock = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const ProductBlockInner_1 = require("../ProductBlock/ProductBlockInner");
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const productGalleryStyleMap = {
|
|
7
|
+
primary: 'bg-white text-primary-text',
|
|
8
|
+
secondary: 'bg-primary-main text-white',
|
|
9
|
+
};
|
|
10
|
+
exports.ProductGalleryBlock = (0, uni_jsx_1.JSX)(({ block, headingType, context, className = '' }) => {
|
|
11
|
+
const version = block?.version ?? 'primary';
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: `flex grow-0 shrink-0 basis-full px-4 pt-6 ${productGalleryStyleMap[version]} ${className}`, children: (0, jsx_runtime_1.jsx)("div", { className: "flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { context: context, headingType: headingType || 'h2', ...block }) }) }));
|
|
8
13
|
});
|
|
9
14
|
//# sourceMappingURL=ProductGalleryBlock.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGalleryBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGalleryBlock.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"ProductGalleryBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGalleryBlock.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,yEAAsE;AAKtE,MAAM,sBAAsB,GAAiC;IAC3D,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAOW,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE;IAClD,MAAM,OAAO,GAAG,KAAK,EAAE,OAAO,IAAI,SAAS,CAAC;IAE5C,OAAO,CACL,oCACE,SAAS,EAAE,6CAA6C,sBAAsB,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,YAEtG,gCAAK,SAAS,EAAC,WAAW,YACxB,uBAAC,qCAAiB,IAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,IAAI,IAAI,KAAM,KAAK,GAAI,GAChF,GACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,35 +2,54 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.ProductGalleryGreen = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
6
5
|
const ProductBlockInner_1 = require("../ProductBlock/ProductBlockInner");
|
|
7
|
-
|
|
6
|
+
const productGalleryGreenStyleMap = {
|
|
7
|
+
primary: 'bg-white text-primary-text',
|
|
8
|
+
secondary: 'bg-primary-main text-white',
|
|
9
|
+
};
|
|
10
|
+
const productBlockStyleMap = {
|
|
11
|
+
primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
|
|
12
|
+
secondary: { title: 'text-white', text: 'text-white/80' },
|
|
13
|
+
};
|
|
14
|
+
const productSlideStyleMap = {
|
|
15
|
+
primary: 'bg-white text-primary-text',
|
|
16
|
+
secondary: 'bg-primary-main text-white',
|
|
17
|
+
};
|
|
18
|
+
exports.ProductGalleryGreen = (0, uni_jsx_1.JSX)(({ className = '', context, slides = [], version = 'primary', duration = 0, anchor = null }) => {
|
|
8
19
|
const galleryNav = slides.map((s) => s.nav);
|
|
9
20
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
10
21
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `box-border pt-[
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)("section", { id: anchor, className: `box-border pt-[50px] overflow-hidden relative font-sans w-100 ${className}
|
|
23
|
+
${productGalleryGreenStyleMap[version]}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context)) }), (0, jsx_runtime_1.jsx)("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border", children: galleryNav.map((slide, i) => renderNavButton({
|
|
12
24
|
slide,
|
|
13
25
|
i,
|
|
14
26
|
activeSlideIndex,
|
|
15
27
|
onClick: () => setActiveSlideIndex(i),
|
|
28
|
+
version,
|
|
29
|
+
duration,
|
|
16
30
|
})) })] }));
|
|
17
31
|
});
|
|
18
32
|
function renderProductBlock(block, i, context) {
|
|
19
|
-
|
|
33
|
+
const { version } = block;
|
|
34
|
+
const additionalClass = version ? productBlockStyleMap[version].title : '';
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { className: `pl-[50px] pr-2 z-[1] ${additionalClass}`, context: context, textBlockClassName: "mb-[154px]", ...block }) }) }, String(i)));
|
|
20
36
|
}
|
|
21
|
-
function renderNavButton({ slide, i, activeSlideIndex, onClick }) {
|
|
37
|
+
function renderNavButton({ slide, i, activeSlideIndex, onClick, version, duration }) {
|
|
22
38
|
const isActiveBtn = i === activeSlideIndex;
|
|
23
39
|
const btnClassName = isActiveBtn
|
|
24
|
-
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] max-w-[354px] p-0'
|
|
25
|
-
:
|
|
40
|
+
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] max-w-[354px] p-0 border-none'
|
|
41
|
+
: `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300
|
|
42
|
+
${productSlideStyleMap[version]}`;
|
|
26
43
|
const btnTitleClassName = isActiveBtn
|
|
27
|
-
? 'text-
|
|
28
|
-
:
|
|
44
|
+
? 'text-primary-text text-title-2xs'
|
|
45
|
+
: `text-base ${productBlockStyleMap[version].title}`;
|
|
29
46
|
const btnDescClassName = isActiveBtn
|
|
30
|
-
? 'text-
|
|
31
|
-
:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
47
|
+
? 'text-secondary-text text-m-title-xs mt-2.5'
|
|
48
|
+
: `text-m-md mt-1.5 ${productBlockStyleMap[version].text}`;
|
|
49
|
+
const additionalBorder = version === 'secondary' ? 'border-white/50' : '';
|
|
50
|
+
const progressBarClassName = isActiveBtn ? 'animate-slide' : '';
|
|
51
|
+
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border font-sans group relative overflow-hidden border-[1px] cursor-pointer text-left mx-1 grow basis-0 backdrop-blur-sm
|
|
52
|
+
${btnClassName} ${additionalBorder}
|
|
53
|
+
`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "border-0 px-6", children: [(0, jsx_runtime_1.jsx)("div", { className: `font-medium ${btnTitleClassName}`, children: slide?.title }), (0, jsx_runtime_1.jsx)("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide.description })] }), (0, jsx_runtime_1.jsx)("div", { className: `absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${progressBarClassName}`, style: { animationDuration: `${duration}s`, animationFillMode: 'forwards' } })] }, String(i)));
|
|
35
54
|
}
|
|
36
55
|
//# sourceMappingURL=ProductGalleryGreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGalleryGreen.js","sourceRoot":"","sources":["../../../src/components/ProductGalleryGreen/ProductGalleryGreen.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"ProductGalleryGreen.js","sourceRoot":"","sources":["../../../src/components/ProductGalleryGreen/ProductGalleryGreen.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,yEAAsE;AAUtE,MAAM,2BAA2B,GAAiC;IAChE,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,oBAAoB,GAAoC;IAC5D,OAAO,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,qBAAqB,EAAE;IACtE,SAAS,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE;CAC1D,CAAC;AAEF,MAAM,oBAAoB,GAAiC;IACzD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,EAAE,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7F,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACxD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpE,OAAO,CACL,qCACE,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,iEAAiE,SAAS;UACnF,2BAA2B,CAAC,OAAO,CAAC,EAAE,aAExC,gCACE,SAAS,EAAC,0BAA0B,EACpC,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,gBAAgB,MAAM,EAAE,EAC3D,IAAI,EAAC,MAAM,YAEV,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GAC3E,EAEN,gCAAK,SAAS,EAAC,yEAAyE,YACrF,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAC3B,eAAe,CAAC;oBACd,KAAK;oBACL,CAAC;oBACD,gBAAgB;oBAChB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;oBACrC,OAAO;oBACP,QAAQ;iBACT,CAAC,CACH,GACG,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,kBAAkB,CAAC,KAA+B,EAAE,CAAS,EAAE,OAAO;IAC7E,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC1B,MAAM,eAAe,GAAG,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAE3E,OAAO,CACL,oCAEE,SAAS,EAAC,qDAAqD,EAC/D,IAAI,EAAC,UAAU,YAEf,gCAAK,SAAS,EAAC,WAAW,YACxB,uBAAC,qCAAiB,IAChB,SAAS,EAAE,wBAAwB,eAAe,EAAE,EACpD,OAAO,EAAE,OAAO,EAChB,kBAAkB,EAAC,YAAY,KAC3B,KAAK,GACT,GACE,IAXD,MAAM,CAAC,CAAC,CAAC,CAYN,CACX,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE;IACjF,MAAM,WAAW,GAAG,CAAC,KAAK,gBAAgB,CAAC;IAE3C,MAAM,YAAY,GAAG,WAAW;QAC9B,CAAC,CAAC,8FAA8F;QAChG,CAAC,CAAC;QACE,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC;IACtC,MAAM,iBAAiB,GAAG,WAAW;QACnC,CAAC,CAAC,kCAAkC;QACpC,CAAC,CAAC,aAAa,oBAAoB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC;IACvD,MAAM,gBAAgB,GAAG,WAAW;QAClC,CAAC,CAAC,4CAA4C;QAC9C,CAAC,CAAC,oBAAoB,oBAAoB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAE7D,MAAM,gBAAgB,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1E,MAAM,oBAAoB,GAAG,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhE,OAAO,CACL,oCACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,OAAO,gBACJ,KAAK,EAAE,KAAK,EACxB,SAAS,EAAE;QACT,YAAY,IAAI,gBAAgB;OACjC,aAED,iCAAK,SAAS,EAAC,eAAe,aAC5B,gCAAK,SAAS,EAAE,eAAe,iBAAiB,EAAE,YAAG,KAAK,EAAE,KAAK,GAAO,EACxE,gCAAK,SAAS,EAAE,uBAAuB,gBAAgB,EAAE,YAAG,KAAK,CAAC,WAAW,GAAO,IAChF,EACN,gCACE,SAAS,EAAE,6EAA6E,oBAAoB,EAAE,EAC9G,KAAK,EAAE,EAAE,iBAAiB,EAAE,GAAG,QAAQ,GAAG,EAAE,iBAAiB,EAAE,UAAU,EAAE,GACtE,KAdF,MAAM,CAAC,CAAC,CAAC,CAeP,CACV,CAAC;AACJ,CAAC"}
|