@redneckz/wildless-cms-uni-blocks 0.3.31 → 0.3.34
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 +171 -105
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +2 -2
- package/dist/components/Accordion/AccordionItem.js +2 -2
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js +2 -2
- package/dist/components/Accordion/AccordionItem.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/ContentPage/ContentPageContext.d.ts +2 -2
- 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/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/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/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/setup-fixture.js +0 -4
- package/dist/setup-fixture.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/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/AccordionContent.d.ts +2 -2
- package/lib/components/Accordion/AccordionItem.js +2 -2
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js +2 -2
- package/lib/components/Accordion/AccordionItem.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/ContentPage/ContentPageContext.d.ts +2 -2
- 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/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/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/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/setup-fixture.js +0 -4
- package/lib/setup-fixture.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/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 +67 -35
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +2 -2
- package/mobile/dist/components/Accordion/AccordionItem.js +2 -2
- package/mobile/dist/components/Accordion/AccordionItem.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/ContentPage/ContentPageContext.d.ts +2 -2
- 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/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/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/setup-fixture.js +0 -4
- package/mobile/dist/setup-fixture.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/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 +2 -2
- package/mobile/lib/components/Accordion/AccordionItem.js +2 -2
- package/mobile/lib/components/Accordion/AccordionItem.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/ContentPage/ContentPageContext.d.ts +2 -2
- 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/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/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/setup-fixture.js +0 -4
- package/mobile/lib/setup-fixture.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/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 -3
- package/mobile/src/components/Accordion/AccordionContent.ts +2 -2
- package/mobile/src/components/Accordion/AccordionItem.tsx +3 -3
- 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/ContentPage/ContentPageContext.tsx +2 -2
- 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 +21 -9
- package/mobile/src/components/Gallery/Gallery.tsx +2 -3
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -3
- 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/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/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/setup-fixture.ts +4 -6
- 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/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 -3
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +3 -1
- package/src/components/Accordion/AccordionContent.ts +2 -2
- package/src/components/Accordion/AccordionItem.mobile.tsx +3 -3
- package/src/components/Accordion/AccordionItem.tsx +2 -2
- 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/ContentPage/ContentPageContext.tsx +2 -2
- 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 +21 -9
- 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/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/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/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/setup-fixture.ts +4 -6
- 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/Tabs/Tabs.tsx +2 -2
- package/src/ui-kit/Tabs/TabsProps.ts +2 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -200,7 +200,35 @@
|
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
202
|
const Tag = headingType;
|
|
203
|
-
return (jsx(Tag, { className: `font-sans
|
|
203
|
+
return (jsx(Tag, { className: `font-sans m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`, children: title }));
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
const ALIGN_TEXT = {
|
|
207
|
+
left: 'text-left',
|
|
208
|
+
center: 'text-center',
|
|
209
|
+
right: 'text-right',
|
|
210
|
+
};
|
|
211
|
+
const HEADLINE_BLOCK_STYLE_MAPS = {
|
|
212
|
+
transparent: {
|
|
213
|
+
background: 'bg-transparent',
|
|
214
|
+
text: 'text-primary-text',
|
|
215
|
+
description: 'text-primary-text',
|
|
216
|
+
},
|
|
217
|
+
primary: {
|
|
218
|
+
background: 'bg-white',
|
|
219
|
+
text: 'text-primary-text',
|
|
220
|
+
description: 'text-primary-text',
|
|
221
|
+
},
|
|
222
|
+
secondary: {
|
|
223
|
+
background: 'bg-primary-main',
|
|
224
|
+
text: 'text-white',
|
|
225
|
+
description: 'text-white/80',
|
|
226
|
+
},
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'left', className = '', title, description, anchor = null, }) => {
|
|
230
|
+
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
231
|
+
return (jsxs("section", { className: `p-[50px] ${STYLE_MAPS.background} ${className}`, id: anchor, children: [title && (jsx(Heading, { headingType: "h2", className: `text-primary-text ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })), description && (jsx("p", { className: `font-normal text-base mt-4 ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, children: description }))] }));
|
|
204
232
|
});
|
|
205
233
|
|
|
206
234
|
const projectSettings = new (class {
|
|
@@ -398,7 +426,7 @@
|
|
|
398
426
|
primary: 'text-primary-main',
|
|
399
427
|
secondary: 'text-primary-text',
|
|
400
428
|
};
|
|
401
|
-
const Icon = JSX(({ className = '', name, alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, asSVG, color = 'primary', ...imgProps }) => {
|
|
429
|
+
const Icon = JSX(({ className = '', name = '', alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, asSVG, color = 'primary', ...imgProps }) => {
|
|
402
430
|
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
403
431
|
if (asSVG) {
|
|
404
432
|
return (jsxs("svg", { className: `${svgColorsMap[color]} ${className}`, ...imgProps, "aria-hidden": "true", style: color === 'secondary' ? { filter: 'invert(1)' } : null, children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
|
|
@@ -406,37 +434,41 @@
|
|
|
406
434
|
return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
|
|
407
435
|
});
|
|
408
436
|
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
},
|
|
420
|
-
primary: {
|
|
421
|
-
background: 'bg-white',
|
|
422
|
-
text: 'text-primary-text',
|
|
423
|
-
description: 'text-primary-text',
|
|
424
|
-
},
|
|
425
|
-
secondary: {
|
|
426
|
-
background: 'bg-primary-main',
|
|
427
|
-
text: 'text-white',
|
|
428
|
-
description: 'text-white/80',
|
|
429
|
-
},
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'left', className = '', title, description, anchor = null, }) => {
|
|
433
|
-
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
434
|
-
return (jsxs("section", { className: `p-[50px] ${STYLE_MAPS.background} ${className}`, id: anchor, children: [title && (jsx(Heading, { headingType: "h2", className: `text-primary-text ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })), description && (jsx("p", { className: `font-normal text-base mt-4 ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, children: description }))] }));
|
|
437
|
+
const Img = JSX(({ className = '', image, imageClassName = '', ...iconProps }) => {
|
|
438
|
+
if (!image) {
|
|
439
|
+
return null;
|
|
440
|
+
}
|
|
441
|
+
// backwards compatibility with existing icons in usage
|
|
442
|
+
const icon = typeof image === 'string' ? image : image.icon;
|
|
443
|
+
if (icon || icon === '') {
|
|
444
|
+
return icon.length ? jsx(Icon, { className: className, name: icon, ...iconProps }) : null;
|
|
445
|
+
}
|
|
446
|
+
return (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image }));
|
|
435
447
|
});
|
|
448
|
+
const ImgAsPicture = JSX(({ className = '', image, imageClassName = '' }) => {
|
|
449
|
+
if (!image) {
|
|
450
|
+
return null;
|
|
451
|
+
}
|
|
452
|
+
return (jsxs("picture", { className: `flex-none ${className}`, children: [image?.sources?.length
|
|
453
|
+
? image.sources.map(({ src, format }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
|
|
454
|
+
: null, renderImg(image, imageClassName)] }));
|
|
455
|
+
});
|
|
456
|
+
const renderImg = (image, imageClassName = '') => {
|
|
457
|
+
const style = {
|
|
458
|
+
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
459
|
+
height: image.size?.height ? `${image.size?.height}px` : '100%',
|
|
460
|
+
};
|
|
461
|
+
const title = image.title || '';
|
|
462
|
+
const alt = image.alt || image.title;
|
|
463
|
+
return (jsx("img", { src: image.src, className: imageClassName, alt: alt, title: title, style: style, ...image.size }));
|
|
464
|
+
};
|
|
465
|
+
function formatToMimeType(format) {
|
|
466
|
+
return format ? `image/${String(format)}` : undefined;
|
|
467
|
+
}
|
|
436
468
|
|
|
437
469
|
const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
|
|
438
470
|
const { text, fileSize, ...linkProps } = doc;
|
|
439
|
-
return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(
|
|
471
|
+
return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(Img, { className: iconClassName, image: icon, width: "24px", height: "24px", asSVG: true })) : null, text ? (jsxs("span", { className: textClassName, children: [text, jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
440
472
|
});
|
|
441
473
|
const formatSuffix = (ext, fileSize) => {
|
|
442
474
|
const prefix = ext || fileSize ? ',' : '';
|
|
@@ -470,30 +502,19 @@
|
|
|
470
502
|
double: 'flex gap-x-5 gap-y-[26px] flex-wrap',
|
|
471
503
|
single: 'flex gap-3.5 flex-col',
|
|
472
504
|
};
|
|
473
|
-
const LinkDocs = JSX(({ className = '', title, subtitle, align, documents, icon = 'DocIcon', columnsMode = 'double', anchor = null, }) => {
|
|
505
|
+
const LinkDocs = JSX(({ className = '', title, subtitle, align, documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', anchor = null, }) => {
|
|
474
506
|
return (jsxs("section", { className: `font-sans text-primary-text p-12 bg-white ${className}`, id: anchor, children: [title ? (jsx(Heading, { headingType: "h2", className: `${subtitle ? 'mb-2.5' : titleMarginsStyleMap[columnsMode]} ${titleAlignStyleMap[align ?? 'center']}`, title: title })) : null, subtitle ? (jsx("h3", { className: `text-base mt-0 font-normal ${titleMarginsStyleMap[columnsMode]} ${titleAlignStyleMap[align ?? 'center']}`, children: subtitle })) : null, jsx(LinkDocsList, { className: linkColumnsModeStyleMap[columnsMode], columnsMode: columnsMode, documents: documents, icon: icon })] }));
|
|
475
507
|
});
|
|
476
508
|
|
|
477
|
-
const
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
const alt = image.alt || title;
|
|
484
|
-
return (jsxs("picture", { className: `flex-none ${className}`, children: [image.sources?.length
|
|
485
|
-
? image.sources.map(({ src, format }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
|
|
486
|
-
: null, jsx("img", { className: imageClassName, src: image.src, alt: alt, title: title, style: style, ...size })] }));
|
|
487
|
-
});
|
|
488
|
-
function formatToMimeType(format) {
|
|
489
|
-
return format ? `image/${String(format)}` : undefined;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
const PictureText = JSX(({ className = '', title, image, benefits, anchor = null }) => {
|
|
493
|
-
return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-14 ${className}`, id: anchor, children: [jsx(Heading, { headingType: "h2", className: "text-center", title: title }), jsxs("div", { className: 'flex justify-center mt-9', children: [image?.src && jsx(Img, { className: "mr-6", image: image }), benefits?.length ? (jsx("div", { className: "flex flex-col", children: benefits.map(renderBenefit$1) })) : null] })] }));
|
|
509
|
+
const pictureTextStyleMap = {
|
|
510
|
+
primary: 'bg-white text-primary-text',
|
|
511
|
+
secondary: 'bg-primary-main text-white',
|
|
512
|
+
};
|
|
513
|
+
const PictureText = JSX(({ className = '', title, image, benefits, version = 'primary', directionRight = false, anchor = null, }) => {
|
|
514
|
+
return (jsxs("section", { className: `relative font-sans p-14 ${pictureTextStyleMap[version]} ${className}`, id: anchor, children: [jsx(Heading, { headingType: "h2", className: "text-center", title: title }), jsxs("div", { className: 'flex justify-center mt-9', children: [image?.src && jsx(Img, { className: directionRight ? 'order-2 ml-6' : 'mr-6', image: image }), benefits?.length ? (jsx("div", { className: "flex flex-col", children: benefits.map((_, i) => renderBenefit$1(_, i, version)) })) : null] })] }));
|
|
494
515
|
});
|
|
495
|
-
function renderBenefit$1(benefit, i) {
|
|
496
|
-
return (jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon
|
|
516
|
+
function renderBenefit$1(benefit, i, version) {
|
|
517
|
+
return (jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon ? (jsx(Img, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", image: benefit.icon, width: "48", height: "48", asSVG: true })) : null, jsxs("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && (jsx("div", { className: `font-medium text-xl m-0 ${version === 'primary' ? 'text-primary-text' : ''}`, children: benefit.label })), benefit.description && (jsx("div", { className: `font-normal text-sm ${version === 'primary' ? 'text-secondary-text' : ''}`, children: benefit.description }))] })] }, String(i)));
|
|
497
518
|
}
|
|
498
519
|
|
|
499
520
|
const isURL = (href) => href?.includes('//');
|
|
@@ -576,14 +597,14 @@
|
|
|
576
597
|
|
|
577
598
|
const ButtonInner = JSX((props) => {
|
|
578
599
|
const { text, aboveText, appendLeft } = props;
|
|
579
|
-
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs text-left", children: aboveText }), jsx("div", { className: "text-
|
|
600
|
+
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-m-2xs font-light text-left", children: aboveText }), jsx("div", { className: "text-base text-left", children: text })] })) : null] }));
|
|
580
601
|
});
|
|
581
602
|
const getButtonStyle = (props) => {
|
|
582
603
|
const { version, aboveText, rounded } = props;
|
|
583
604
|
if (version === 'link') {
|
|
584
605
|
return '';
|
|
585
606
|
}
|
|
586
|
-
const withTextStyle = `px-8 gap-2 ${aboveText ? 'py-2' : 'py-
|
|
607
|
+
const withTextStyle = `px-8 gap-2 ${aboveText ? 'py-2' : 'py-4'}`;
|
|
587
608
|
return [
|
|
588
609
|
'flex items-center justify-center',
|
|
589
610
|
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
@@ -619,7 +640,7 @@
|
|
|
619
640
|
function renderButton$2({ icon, ...button }, i) {
|
|
620
641
|
if (!button?.text)
|
|
621
642
|
return;
|
|
622
|
-
return icon ? (jsx(Button, { appendLeft: jsx(
|
|
643
|
+
return icon ? (jsx(Button, { appendLeft: jsx(Img, { image: icon, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : (jsx(Button, { ...button }, String(i)));
|
|
623
644
|
}
|
|
624
645
|
|
|
625
646
|
const Description = JSX((props) => {
|
|
@@ -627,14 +648,14 @@
|
|
|
627
648
|
return jsx("div", { className: `font-normal text-base ${className}`, children: description });
|
|
628
649
|
});
|
|
629
650
|
|
|
630
|
-
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3
|
|
651
|
+
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
|
|
631
652
|
const LIST_DOT_STYLE_MAP = {
|
|
632
653
|
primary: 'bg-primary-main',
|
|
633
654
|
secondary: 'bg-white',
|
|
634
655
|
gray: 'bg-secondary-text',
|
|
635
656
|
};
|
|
636
657
|
const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
|
|
637
|
-
return (jsxs("div", { className: `font-sans flex items-
|
|
658
|
+
return (jsxs("div", { className: `font-sans flex items-center ${className}`, role: "listitem", children: [isDotted && jsx("div", { className: getListStyle(version) }), jsx("span", { children: children })] }));
|
|
638
659
|
});
|
|
639
660
|
const getListStyle = (version) => {
|
|
640
661
|
const size = version === 'gray' ? 'w-1.5 h-1.5 min-w-1.5 min-h-1.5' : 'w-2 h-2 min-w-2 min-h-2';
|
|
@@ -670,21 +691,22 @@
|
|
|
670
691
|
secondary: 'text-white',
|
|
671
692
|
};
|
|
672
693
|
function renderBenefit(benefit, i, version) {
|
|
673
|
-
return (jsxs("div", { className: "flex gap-4 items-center", children: [benefit.icon
|
|
694
|
+
return (jsxs("div", { className: "flex gap-4 items-center", children: [benefit.icon ? (jsx(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, jsxs("div", { className: "flex gap-1 flex-col h-full max-w-[149px]", children: [jsx("div", { className: `font-medium text-xl m-0 ${benefitTitleStyleMap[version]}`, children: benefit.label }), benefit.description && (jsx("div", { className: `font-normal text-sm ${benefitDescStyleMap[version]}`, children: benefit.description }))] })] }, String(i)));
|
|
674
695
|
}
|
|
675
696
|
|
|
676
697
|
const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
677
|
-
const textColor = version === 'secondary' ? 'text-white' : '';
|
|
678
|
-
return (jsxs("div", { className: `flex grow justify-between items-stretch ${className}`, children: [jsx("div", { className: `flex flex-col ${textBlockClassName}`, children: jsxs(BaseTile, { context: context, title: getTitle(title, headingType, textColor), buttons: getButtons(context, buttons), children: [description && (jsx(Description, { className:
|
|
698
|
+
const textColor = version === 'secondary' ? 'text-white' : 'text-primary-text';
|
|
699
|
+
return (jsxs("div", { className: `flex grow justify-between items-stretch ${className}`, children: [jsx("div", { className: `flex flex-col ${textBlockClassName}`, children: jsxs(BaseTile, { context: context, title: getTitle(title, headingType, textColor), buttons: getButtons(context, buttons), children: [description && (jsx(Description, { className: `mt-[18px] max-w-[600px] text-title-new-sm font-light ${textColor}`, description: description })), benefits?.filter((items) => items.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-title-new-sm font-light", items: items, itemClassName: "mb-[10px]", version: version, isDotted: isDotted })) : null] }) }), image?.src && jsx(Img, { className: "mt-auto", image: image })] }));
|
|
679
700
|
});
|
|
680
701
|
const getTitle = (title, headingType, textColor) => {
|
|
681
|
-
|
|
702
|
+
const Tag = headingType;
|
|
703
|
+
return (title && jsx(Tag, { className: `font-sans font-medium m-0 text-title-xl ${textColor}`, children: title }));
|
|
682
704
|
};
|
|
683
705
|
const getButtons = (context, buttons) => {
|
|
684
706
|
return buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null;
|
|
685
707
|
};
|
|
686
708
|
|
|
687
|
-
const productBlockStyleMap = {
|
|
709
|
+
const productBlockStyleMap$1 = {
|
|
688
710
|
primary: 'bg-white text-primary-text',
|
|
689
711
|
secondary: 'bg-primary-main text-white',
|
|
690
712
|
};
|
|
@@ -693,10 +715,10 @@
|
|
|
693
715
|
secondary: 'text-white/80',
|
|
694
716
|
};
|
|
695
717
|
const ProductBlock = JSX((props) => {
|
|
696
|
-
const { context, className, breadcrumbs, version = 'primary', anchor = null, ...otherProps } = props;
|
|
718
|
+
const { context, className = '', breadcrumbs, version = 'primary', anchor = null, ...otherProps } = props;
|
|
697
719
|
const router = context.useRouter();
|
|
698
720
|
const { handlerDecorator } = context;
|
|
699
|
-
return (jsxs("section", { className: `font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${
|
|
721
|
+
return (jsxs("section", { className: `font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${productBlockStyleMap$1[version]} ${className}`, id: anchor, children: [breadcrumbs?.length ? (jsx("div", { className: "text-xs mb-6", children: joinList(jsx("span", { className: `mx-2 ${breadcrumbsStyleMap[version]}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => (jsx(Breadcrumb, { ...useLink({ router, handlerDecorator }, { className: breadcrumbsStyleMap[version], ...breadcrumb }) }, String(i))))) })) : null, jsx(ProductBlockInner, { context: context, version: version, ...otherProps })] }));
|
|
700
722
|
});
|
|
701
723
|
|
|
702
724
|
const textBlockStyleMaps = {
|
|
@@ -848,7 +870,7 @@
|
|
|
848
870
|
return (jsxs("div", { className: "h-full flex flex-col justify-between", children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? (jsx("div", { className: `font-normal text-sm ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version) : null] }), button?.text ? renderButton$1(button) : null] }));
|
|
849
871
|
});
|
|
850
872
|
function renderButton$1(button) {
|
|
851
|
-
return (jsx(Button, { className: "mt-6 w-full", appendLeft: button.icon && jsx(
|
|
873
|
+
return (jsx(Button, { className: "mt-6 w-full", appendLeft: button.icon && jsx(Img, { image: button.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
|
|
852
874
|
}
|
|
853
875
|
function renderCardTitle(title, className) {
|
|
854
876
|
return jsx("div", { className: `font-medium text-xl m-0 ${className}`, children: title });
|
|
@@ -951,7 +973,7 @@
|
|
|
951
973
|
});
|
|
952
974
|
return (jsxs("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: [jsxs("button", { className: `border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans
|
|
953
975
|
${hasContent ? 'group cursor-pointer' : ''}
|
|
954
|
-
`, onClick: handleToggle, children: [jsx("span", { className: `text-xl pr-2.5 font-medium`, children: label }), hasContent ? jsx(
|
|
976
|
+
`, onClick: handleToggle, children: [jsx("span", { className: `text-xl pr-2.5 font-medium`, children: label }), hasContent ? jsx(Img, { image: icon, width: "24", height: "24", asSVG: true }) : null] }), hasContent ? (jsx(AccordionItemInner, { isExpanded: isActive, blocks: blocks, context: context })) : null] }));
|
|
955
977
|
});
|
|
956
978
|
|
|
957
979
|
const Accordion = JSX(({ title, description, accordionItems, context, className = '', anchor = null }) => {
|
|
@@ -962,7 +984,7 @@
|
|
|
962
984
|
return (jsxs("section", { className: `font-sans text-primary-text bg-white p-12 flex flex-col items-center ${className || ''}`, id: anchor, children: [title ? (jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center", title: title })) : null, benefits?.length ? (jsx("div", { className: "grid grid-cols-2 gap-8 mt-9", children: benefits.map(renderStep) })) : null] }));
|
|
963
985
|
});
|
|
964
986
|
const renderStep = (benefit, i) => {
|
|
965
|
-
return (jsxs("div", { className: "flex items-center gap-5 max-w-[500px]", children: [benefit.icon
|
|
987
|
+
return (jsxs("div", { className: "flex items-center gap-5 max-w-[500px]", children: [benefit.icon ? (jsx(Img, { className: "h-[70px] w-[70px] min-w-[70px] min-h-[70px]", image: benefit.icon, width: "70", height: "70" })) : null, jsxs("div", { children: [jsx("h3", { className: "font-medium text-xl m-0", children: benefit.label }), benefit.description && (jsx("div", { className: "font-normal text-sm mt-2", children: benefit.description }))] })] }, String(i)));
|
|
966
988
|
};
|
|
967
989
|
|
|
968
990
|
const TableRowContainer = JSX(({ children }) => (jsx("div", { className: "self-start flex flex-col", role: "row", children: jsx("div", { className: "flex", children: children }) })));
|
|
@@ -980,7 +1002,7 @@
|
|
|
980
1002
|
};
|
|
981
1003
|
const TableCarouselContainer = JSX(({ children, activeCardIndex, columnWidth, version = 'comparison' }) => (jsx("div", { className: "flex flex-1 overflow-hidden", children: jsx("div", { className: carouselContainerClassesMap[version], style: { transform: `translateX(-${activeCardIndex * columnWidth}px)` }, children: children }) })));
|
|
982
1004
|
|
|
983
|
-
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES$1} ${GRADIENT}`, role: "columnheader", scope: "col", children: [icon && !image?.src && (jsx(
|
|
1005
|
+
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES$1} ${GRADIENT}`, role: "columnheader", scope: "col", children: [icon && !image?.src && (jsx(Img, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })), image?.src && jsx(Img, { className: "mb-[18px]", image: image }), title && jsx(Heading, { headingType: "h4", className: "text-center text-white", title: title }), link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "font-medium text-xs py-[11px]", children: link.text }) }) }))] })));
|
|
984
1006
|
|
|
985
1007
|
const ComparisonTableColumnHeaders = JSX(({ colHeaders, activeCardIndex, router, handlerDecorator }) => {
|
|
986
1008
|
return (jsxs(TableRowContainer, { children: [jsx("div", { className: FIRST_CELL_CLASSES$1, role: "columnheader", scope: "col" }), jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$1, children: colHeaders.map((header, i) => (jsx(HeaderCell, { ...header, link: header.link && useLink({ router, handlerDecorator }, header.link) }, String(i)))) })] }));
|
|
@@ -1054,7 +1076,7 @@
|
|
|
1054
1076
|
const isActive = currentTabIndex === index;
|
|
1055
1077
|
return (jsxs("div", { className: `flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content ${isActive ? ACTIVE_TAB_STYLE : TAB_STYLE}`, role: "tab", onClick: () => onTabClick(index), "aria-selected": String(isActive), children: [tab?.icon ? renderIcon(tab, isActive) : null, jsxs("div", { children: [tab?.title ? jsx("h3", { className: "font-medium m-0 text-base", children: tab?.title }) : null, tab?.description ? (jsx("span", { className: `font-light text-xs ${isActive ? '' : 'text-secondary-text'}`, children: tab?.description })) : null] })] }, String(index)));
|
|
1056
1078
|
};
|
|
1057
|
-
const renderIcon = (tab, isActive) => (jsx("div", { className: "h-full mt-1", style: isActive ? { filter: 'invert(1)' } : null, children: jsx(
|
|
1079
|
+
const renderIcon = (tab, isActive) => (jsx("div", { className: "h-full mt-1", style: isActive ? { filter: 'invert(1)' } : null, children: jsx(Img, { className: "w-5 h-5 mr-3", image: tab?.icon || 'CardIcon', asSVG: !isActive }) }));
|
|
1058
1080
|
|
|
1059
1081
|
function useCreditCalculatorData(useAsyncData, directoryName) {
|
|
1060
1082
|
const { data } = useAsyncData(creditCalculatorUrl(directoryName), fetchCreditCalculatorData);
|
|
@@ -1233,19 +1255,19 @@
|
|
|
1233
1255
|
title: 'Кредит',
|
|
1234
1256
|
description: 'Ставка от 6% до 7 лет',
|
|
1235
1257
|
directoryName: 'credit-calculator-data',
|
|
1236
|
-
icon: 'CardIcon',
|
|
1258
|
+
icon: { icon: 'CardIcon' },
|
|
1237
1259
|
},
|
|
1238
1260
|
{
|
|
1239
1261
|
title: 'Кредит',
|
|
1240
1262
|
description: 'Ставка от 4% до 7 лет',
|
|
1241
1263
|
directoryName: 'credit-calculator-data1',
|
|
1242
|
-
icon: 'ChartSquareIcon',
|
|
1264
|
+
icon: { icon: 'ChartSquareIcon' },
|
|
1243
1265
|
},
|
|
1244
1266
|
{
|
|
1245
1267
|
title: 'Кредит',
|
|
1246
1268
|
description: 'Ставка от 3% до 6 лет',
|
|
1247
1269
|
directoryName: 'credit-calculator-data2',
|
|
1248
|
-
icon: 'DiscountShapeIcon',
|
|
1270
|
+
icon: { icon: 'DiscountShapeIcon' },
|
|
1249
1271
|
},
|
|
1250
1272
|
];
|
|
1251
1273
|
|
|
@@ -1282,10 +1304,10 @@
|
|
|
1282
1304
|
});
|
|
1283
1305
|
const renderCurrencyRow = (exchangeCurrencyItem) => {
|
|
1284
1306
|
const code = exchangeCurrencyItem?.currency?.currency;
|
|
1285
|
-
return (jsxs("tr", { className: "pb-1", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [code ? jsx(
|
|
1307
|
+
return (jsxs("tr", { className: "pb-1", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [code ? jsx(Img, { image: { icon: CURRENCY_ICONS_MAP[code] }, width: "24", height: "24" }) : null, jsx("span", { className: "text-m-title-md ml-2", children: code })] }) }), jsx("td", { className: "pt-4 pl-11 m-title-md font-light", children: formatCurrency(exchangeCurrencyItem.buyExchangeRate) }), jsx("td", { className: "pt-4 pl-11 m-title-md font-light", children: formatCurrency(exchangeCurrencyItem.saleExchangeRate) })] }, code));
|
|
1286
1308
|
};
|
|
1287
1309
|
|
|
1288
|
-
const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex text-sm ${className}`, children: [jsx(
|
|
1310
|
+
const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex text-sm ${className}`, children: [jsx(Img, { className: "min-w-fit", image: { icon: 'GpsIcon' }, width: "24", height: "24", asSVG: true }), jsxs("div", { className: "ml-3 font-light", children: [address ? jsx("p", { className: "m-0 mb-[3px]", children: address }) : null, distance ? (jsxs("p", { className: "text-secondary-text m-0", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
|
|
1289
1311
|
|
|
1290
1312
|
const Input = JSX(({ className = '', id, name, type = 'text', placeholder }) => {
|
|
1291
1313
|
return (jsx("input", { className: className, id: id, name: name || id, type: type, placeholder: placeholder }));
|
|
@@ -1353,7 +1375,7 @@
|
|
|
1353
1375
|
|
|
1354
1376
|
const SearchBar = JSX(({ className, context }) => {
|
|
1355
1377
|
const { term, setTerm } = context.useSearch();
|
|
1356
|
-
return (jsxs("form", { className: `relative ${className || ''}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: "w-[24px] h-[24px]", children: jsx(
|
|
1378
|
+
return (jsxs("form", { className: `relative ${className || ''}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: "w-[24px] h-[24px]", children: jsx(Img, { image: "LoupeIcon", width: "24", height: "24" }) }), !term && (jsx("label", { htmlFor: "search-bar-input", className: "font-sans font-normal text-base text-secondary-text", children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), jsx("input", { id: "search-bar-input", className: 'h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text', value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input" }), jsx(Button, { version: "primary", text: "\u041D\u0430\u0439\u0442\u0438", className: "invisible peer-focus:visible absolute top-1 right-1", onClick: (e) => {
|
|
1357
1379
|
e.preventDefault();
|
|
1358
1380
|
console.log('click');
|
|
1359
1381
|
}, children: jsx("div", { className: "font-normal text-sm px-9 py-[9px]", children: "\u041D\u0430\u0439\u0442\u0438" }) })] }));
|
|
@@ -1426,25 +1448,37 @@
|
|
|
1426
1448
|
const ICONS_MAP = [
|
|
1427
1449
|
{
|
|
1428
1450
|
origins: ['t.me', 'telegram.org'],
|
|
1429
|
-
icon: 'TelegramIcon',
|
|
1451
|
+
icon: { icon: 'TelegramIcon' },
|
|
1430
1452
|
label: 'Телеграм',
|
|
1431
1453
|
width: '20px',
|
|
1432
1454
|
height: '16px',
|
|
1433
1455
|
},
|
|
1434
|
-
{
|
|
1435
|
-
|
|
1456
|
+
{
|
|
1457
|
+
origins: ['vk.com'],
|
|
1458
|
+
icon: { icon: 'VKIcon' },
|
|
1459
|
+
label: 'ВКонтакте',
|
|
1460
|
+
width: '24px',
|
|
1461
|
+
height: '12px',
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
origins: ['ok.ru'],
|
|
1465
|
+
icon: { icon: 'OkIcon' },
|
|
1466
|
+
label: 'Одноклассники',
|
|
1467
|
+
width: '12px',
|
|
1468
|
+
height: '20px',
|
|
1469
|
+
},
|
|
1436
1470
|
];
|
|
1437
1471
|
const MediaButton = JSX(({ href }) => {
|
|
1438
1472
|
const { icon, width, height, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
1439
1473
|
if (!icon)
|
|
1440
1474
|
return null;
|
|
1441
|
-
return (jsx("a", { className: "flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[40px] h-[40px] box-border hover:text-primary-main", href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children:
|
|
1475
|
+
return (jsx("a", { className: "flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[40px] h-[40px] box-border hover:text-primary-main", href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? (jsx(Img, { image: icon, width: width, height: height, asSVG: true, className: "block", color: "none" })) : null }));
|
|
1442
1476
|
});
|
|
1443
1477
|
|
|
1444
1478
|
const SocialMedia = JSX(({ className, media, context }) => {
|
|
1445
1479
|
const router = context.useRouter();
|
|
1446
1480
|
const { handlerDecorator } = context;
|
|
1447
|
-
return (jsx("div", { className: `flex items-end
|
|
1481
|
+
return (jsx("div", { className: `flex items-end gap-2 pt-[30px] pb-7 ${className || ''}`, children: media?.map((_, index) => (jsx(MediaButton, { ...useLink({ router, handlerDecorator }, _) }, String(index)))) }));
|
|
1448
1482
|
});
|
|
1449
1483
|
|
|
1450
1484
|
const TextInformation = JSX(({ className, links, context }) => {
|
|
@@ -1535,7 +1569,7 @@
|
|
|
1535
1569
|
};
|
|
1536
1570
|
const HeaderSecondaryMenu = JSX(({ context, className, defaultLocation = '', bgColor = 'bg-white' }) => {
|
|
1537
1571
|
const [city, getCity] = context.useGeolocation(defaultLocation);
|
|
1538
|
-
return (jsxs("div", { className: `flex items-center ${className || ''}`, children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: city, ariaLabel: "\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", onClick: getCity, bgColor: bgColor }), jsx(TopItem, { className: "mr-7", flat: true, href: "#", text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", ariaLabel: "\u0421\u043F\u0438\u0441\u043E\u043A \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043E\u0444\u0438\u0441\u043E\u0432 \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u043E\u0432", bgColor: bgColor }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", children: jsx(
|
|
1572
|
+
return (jsxs("div", { className: `flex items-center ${className || ''}`, children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: city, ariaLabel: "\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", onClick: getCity, bgColor: bgColor }), jsx(TopItem, { className: "mr-7", flat: true, href: "#", text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", ariaLabel: "\u0421\u043F\u0438\u0441\u043E\u043A \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043E\u0444\u0438\u0441\u043E\u0432 \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u043E\u0432", bgColor: bgColor }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", children: jsx(Img, { image: "LoupeIcon", className: "h-full", asSVG: true, color: "none" }) }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u0440\u043E\u0444\u0438\u043B\u044C", children: jsx(Img, { image: "ProfileIcon", className: "h-full", asSVG: true, color: "none" }) }), jsx(HeaderSecondaryMenuButton, { className: `${DOP_LINKS_COLORS_MAP[bgColor]} min-w-[32px] min-h-[32px]`, ariaLabel: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438", children: jsx(Img, { image: DOP_LINKS_ICON_NAME_MAP[bgColor], className: "h-full", asSVG: true, color: "none" }) })] }));
|
|
1539
1573
|
});
|
|
1540
1574
|
|
|
1541
1575
|
const BORDER_COLORS = {
|
|
@@ -1556,7 +1590,7 @@
|
|
|
1556
1590
|
});
|
|
1557
1591
|
|
|
1558
1592
|
const MobileAppTile = JSX(({ className = '', context, title = 'Мобильное приложение', qr, buttons = [], anchor = null, }) => {
|
|
1559
|
-
return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: jsx(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-
|
|
1593
|
+
return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: jsx(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px] mb-7` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-7 gap-4" })) : null, children: jsxs("div", { className: "flex items-center", children: [qr?.src && qr?.href && (jsx("a", { href: qr.href, target: "_blank", "aria-label": title, children: 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" }) })), 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" })] }) }) }));
|
|
1560
1594
|
});
|
|
1561
1595
|
|
|
1562
1596
|
const NavigationItem = JSX(({ className, text, onClick, href, target, isActive }) => (jsx("a", { className: `bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${className || ''} ${isActive ? 'border-primary-main text-primary-main' : 'border-white text-secondary-text'}`, onClick: onClick, href: href, target: target, children: text })));
|
|
@@ -1603,11 +1637,20 @@
|
|
|
1603
1637
|
const renderShimmerItem = (width = 100, index) => (jsx("div", { style: { width: `${width}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
|
|
1604
1638
|
const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|
|
1605
1639
|
|
|
1640
|
+
const productGalleryStyleMap = {
|
|
1641
|
+
primary: 'bg-white text-primary-text',
|
|
1642
|
+
secondary: 'bg-primary-main text-white',
|
|
1643
|
+
};
|
|
1644
|
+
const ProductGalleryBlock = JSX(({ block, headingType, context, className = '' }) => {
|
|
1645
|
+
const version = block?.version ?? 'primary';
|
|
1646
|
+
return (jsx("section", { className: `flex grow-0 shrink-0 basis-full ${productGalleryStyleMap[version]} ${className}`, role: "listitem", children: jsx("div", { className: "p-10 flex grow", children: jsx(ProductBlockInner, { className: "pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]", context: context, headingType: headingType || 'h2', ...block }) }) }));
|
|
1647
|
+
});
|
|
1648
|
+
|
|
1606
1649
|
const ProductGallery = JSX(({ className, context, duration = 0, slides = [], anchor = null }) => {
|
|
1607
1650
|
const galleryNav = slides.map((s) => s.nav);
|
|
1608
1651
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
1609
1652
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
1610
|
-
return (jsxs("section", { className: `font-sans bg-white overflow-hidden w-100 ${className || ''}`, id: anchor, children: [jsx("div", { className: `flex duration-1000`, style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) =>
|
|
1653
|
+
return (jsxs("section", { className: `font-sans bg-white overflow-hidden w-100 ${className || ''}`, id: anchor, children: [jsx("div", { className: `flex duration-1000`, style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => (jsx(ProductGalleryBlock, { context: context, block: _ }, String(i)))) }), jsx("div", { className: "flex", children: galleryNav.map((slide, i) => renderNavButton$1({
|
|
1611
1654
|
slide,
|
|
1612
1655
|
i,
|
|
1613
1656
|
activeSlideIndex,
|
|
@@ -1615,9 +1658,6 @@
|
|
|
1615
1658
|
duration,
|
|
1616
1659
|
})) })] }));
|
|
1617
1660
|
});
|
|
1618
|
-
function renderProductBlock$1(block, i, context) {
|
|
1619
|
-
return (jsx("section", { className: "flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "p-10 flex grow", children: jsx(ProductBlockInner, { className: "pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]", context: context, ...block }) }) }, String(i)));
|
|
1620
|
-
}
|
|
1621
1661
|
function renderNavButton$1({ slide, i, activeSlideIndex, onClick, duration }) {
|
|
1622
1662
|
const isActiveBtn = i === activeSlideIndex;
|
|
1623
1663
|
const progressBarClassName = isActiveBtn ? 'animate-slide' : '';
|
|
@@ -1625,34 +1665,54 @@
|
|
|
1625
1665
|
return (jsxs("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `font-sans group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 pt-4 pb-[23px] grow basis-0`, children: [jsxs("div", { className: "border-0 border-r border-solid border-main-divider px-6", children: [jsx("div", { className: `text-sm font-medium pb-[3px] group-hover:text-primary-text ${btnTitleClassName}`, children: slide?.title }), jsx("div", { className: "text-xs text-secondary-text", children: slide.desc })] }), 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)));
|
|
1626
1666
|
}
|
|
1627
1667
|
|
|
1628
|
-
const
|
|
1668
|
+
const productGalleryGreenStyleMap = {
|
|
1669
|
+
primary: 'bg-white text-primary-text',
|
|
1670
|
+
secondary: 'bg-primary-main text-white',
|
|
1671
|
+
};
|
|
1672
|
+
const productBlockStyleMap = {
|
|
1673
|
+
primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
|
|
1674
|
+
secondary: { title: 'text-white', text: 'text-white/80' },
|
|
1675
|
+
};
|
|
1676
|
+
const productSlideStyleMap = {
|
|
1677
|
+
primary: 'bg-white text-primary-text',
|
|
1678
|
+
secondary: 'bg-primary-main text-white',
|
|
1679
|
+
};
|
|
1680
|
+
const ProductGalleryGreen = JSX(({ className = '', context, slides = [], version = 'primary', duration = 0, anchor = null }) => {
|
|
1629
1681
|
const galleryNav = slides.map((s) => s.nav);
|
|
1630
1682
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
1631
1683
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
1632
|
-
return (jsxs("section", { className: `box-border pt-[
|
|
1684
|
+
return (jsxs("section", { id: anchor, className: `box-border pt-[50px] overflow-hidden relative font-sans w-100 ${className}
|
|
1685
|
+
${productGalleryGreenStyleMap[version]}`, children: [jsx("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context)) }), jsx("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border", children: galleryNav.map((slide, i) => renderNavButton({
|
|
1633
1686
|
slide,
|
|
1634
1687
|
i,
|
|
1635
1688
|
activeSlideIndex,
|
|
1636
1689
|
onClick: () => setActiveSlideIndex(i),
|
|
1690
|
+
version,
|
|
1691
|
+
duration,
|
|
1637
1692
|
})) })] }));
|
|
1638
1693
|
});
|
|
1639
1694
|
function renderProductBlock(block, i, context) {
|
|
1640
|
-
|
|
1695
|
+
const { version } = block;
|
|
1696
|
+
const additionalClass = version ? productBlockStyleMap[version].title : '';
|
|
1697
|
+
return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: `pl-[50px] pr-2 z-[1] ${additionalClass}`, context: context, textBlockClassName: "mb-[154px]", ...block }) }) }, String(i)));
|
|
1641
1698
|
}
|
|
1642
|
-
function renderNavButton({ slide, i, activeSlideIndex, onClick }) {
|
|
1699
|
+
function renderNavButton({ slide, i, activeSlideIndex, onClick, version, duration }) {
|
|
1643
1700
|
const isActiveBtn = i === activeSlideIndex;
|
|
1644
1701
|
const btnClassName = isActiveBtn
|
|
1645
|
-
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] max-w-[354px] p-0'
|
|
1646
|
-
:
|
|
1702
|
+
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] max-w-[354px] p-0 border-none'
|
|
1703
|
+
: `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300
|
|
1704
|
+
${productSlideStyleMap[version]}`;
|
|
1647
1705
|
const btnTitleClassName = isActiveBtn
|
|
1648
|
-
? 'text-
|
|
1649
|
-
:
|
|
1706
|
+
? 'text-primary-text text-title-2xs'
|
|
1707
|
+
: `text-base ${productBlockStyleMap[version].title}`;
|
|
1650
1708
|
const btnDescClassName = isActiveBtn
|
|
1651
|
-
? 'text-
|
|
1652
|
-
:
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1709
|
+
? 'text-secondary-text text-m-title-xs mt-2.5'
|
|
1710
|
+
: `text-m-md mt-1.5 ${productBlockStyleMap[version].text}`;
|
|
1711
|
+
const additionalBorder = version === 'secondary' ? 'border-white/50' : '';
|
|
1712
|
+
const progressBarClassName = isActiveBtn ? 'animate-slide' : '';
|
|
1713
|
+
return (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
|
|
1714
|
+
${btnClassName} ${additionalBorder}
|
|
1715
|
+
`, children: [jsxs("div", { className: "border-0 px-6", children: [jsx("div", { className: `font-medium ${btnTitleClassName}`, children: slide?.title }), jsx("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide.description })] }), 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)));
|
|
1656
1716
|
}
|
|
1657
1717
|
|
|
1658
1718
|
const promoTileStyleMap = {
|
|
@@ -1708,8 +1768,8 @@
|
|
|
1708
1768
|
return (jsx("section", { className: `font-sans bg-white text-primary-text ${className || ''}`, children: blockItems?.length ? (jsx("div", { className: "list-none m-0 p-0", children: blockItems.map((item, i) => (jsx(OtherProductsItem, { ...item, context: context }, `BlockItem${i}`))) })) : null }));
|
|
1709
1769
|
});
|
|
1710
1770
|
|
|
1711
|
-
const RecommendationCard = JSX(({ context, className = '', title, description, items, image, version }) => {
|
|
1712
|
-
return (jsx("section", { className: `border border-solid box-border
|
|
1771
|
+
const RecommendationCard = JSX(({ context, className = '', title, description, items, image, version, socialMedia }) => {
|
|
1772
|
+
return (jsx("section", { className: `border border-solid box-border py-[30px] px-9 min-w-[515px] max-w-[515px] ${className}`, role: "listitem", children: jsxs(BaseTile, { context: context, className: "flex justify-between", title: title ? (jsx("h4", { className: `font-sans text-title-xs font-normal m-0 mb-3.5`, children: title })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description ? jsx(Description, { className: "text-left", description: description }) : null, items?.length ? (jsx(List, { className: "text-md font-light flex flex-col gap-2", items: items, version: version })) : null, jsx(SocialMedia, { className: "pt-[42px] pb-0", media: socialMedia, context: context })] }) }));
|
|
1713
1773
|
});
|
|
1714
1774
|
|
|
1715
1775
|
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
@@ -1718,8 +1778,8 @@
|
|
|
1718
1778
|
const Recommendation = JSX(({ context, recommendations = [], className = '', title, version, anchor = null }) => {
|
|
1719
1779
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
1720
1780
|
const blockClassName = version === 'secondary' ? 'bg-primary-main text-white' : 'bg-white text-primary-text';
|
|
1721
|
-
const cardClassName = version === 'secondary' ? 'border-
|
|
1722
|
-
return (jsxs("section", { className: `relative font-sans p-
|
|
1781
|
+
const cardClassName = version === 'secondary' ? 'border-white/50' : 'border-main-stroke';
|
|
1782
|
+
return (jsxs("section", { className: `relative font-sans p-9 overflow-hidden text-center ${blockClassName} ${className}`, id: anchor, children: [title ? jsx(Heading, { headingType: "h2", className: "mb-6", title: title }) : null, jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }, role: "list", children: recommendations?.length
|
|
1723
1783
|
? recommendations.map(renderRecommendationCard({ context, version, className: cardClassName }))
|
|
1724
1784
|
: null }), renderNavButtons({
|
|
1725
1785
|
cardsCount: recommendations.length,
|
|
@@ -1739,11 +1799,17 @@
|
|
|
1739
1799
|
return (jsxs("div", { children: [showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180 z-10 mt-6", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-6", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" }))] }));
|
|
1740
1800
|
};
|
|
1741
1801
|
|
|
1742
|
-
const StepsBlock = JSX(({ className, title, showLines = true, steps, anchor = null }) => {
|
|
1743
|
-
|
|
1802
|
+
const StepsBlock = JSX(({ className = '', title, showLines = true, steps = [], anchor = null }) => {
|
|
1803
|
+
const shortGaps = steps.length > 3;
|
|
1804
|
+
return (jsxs("section", { className: [
|
|
1805
|
+
'box-border font-sans text-primary-text bg-white',
|
|
1806
|
+
shortGaps ? 'px-20' : 'px-[70px]',
|
|
1807
|
+
'py-[50px] flex flex-col items-center',
|
|
1808
|
+
className,
|
|
1809
|
+
].join(' '), id: anchor, children: [jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center", title: title }), steps?.length ? (jsxs("div", { className: `box-border py-0.5 mb-0.5 ${title ? 'mt-9' : ''}`, children: [jsx("div", { className: "flex items-center px-[88px]", children: joinList(jsx("div", { className: `h-0.5 w-full bg-secondary-light ${!showLines ? 'opacity-0' : ''}` }))(steps.map(renderStepIcon)) }), jsx("div", { className: `flex justify-between ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`, children: steps.map(renderStepTitle) })] })) : null] }));
|
|
1744
1810
|
});
|
|
1745
1811
|
const renderStepIcon = (step, i) => {
|
|
1746
|
-
return (jsx("div", { className: "flex flex-col items-center text-center relative", children: jsx("div", { className: "h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10", children: (step.icon && jsx(
|
|
1812
|
+
return (jsx("div", { className: "flex flex-col items-center text-center relative", children: jsx("div", { className: "h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10", children: (step.icon?.icon && jsx(Img, { image: step.icon, width: "48", height: "48" })) || (jsx("span", { className: "font-medium text-title-sm text-secondary-text", children: i + 1 })) }) }, String(i)));
|
|
1747
1813
|
};
|
|
1748
1814
|
const renderStepTitle = (step, i) => {
|
|
1749
1815
|
return (jsxs("div", { className: "flex flex-col items-center text-center relative w-[276px] whitespace-pre-line overflow-hidden", children: [step.label && jsx("div", { className: "font-medium text-xl m-0 mt-4", children: step.label }), step.description && (jsx("div", { className: `font-normal text-sm text-secondary-text ${step.label ? 'mt-2' : 'mt-4'}`, children: step.description }))] }, String(i)));
|
|
@@ -1760,10 +1826,10 @@
|
|
|
1760
1826
|
});
|
|
1761
1827
|
const renderCellInner = ({ label, description, list, image, buttons }, i) => (jsxs("div", { className: "first:pt-5 last:pb-5", children: [i > 0 && (jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-4" })), label ? jsx("div", { className: "text-xl font-medium m-0", children: label }) : null, description ? jsx("div", { className: "text-sm text-secondary-text", children: description }) : null, list?.items?.length ? renderList(list) : null, image && jsx(Img, { image: image }), buttons?.length ? renderButtons(buttons) : null] }, String(i)));
|
|
1762
1828
|
const renderList = (list) => (jsx(List, { className: "flex flex-col justify-between items-start text-sm", version: "gray", items: list.items, isDotted: list.isDotted ?? true }));
|
|
1763
|
-
const renderButtons = (buttons) => (jsx("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => (jsx(Button, { className: `${idx > 0 && rounded ? 'ml-3' : ''} w-12 h-12`, rounded: rounded, appendLeft: icon
|
|
1829
|
+
const renderButtons = (buttons) => (jsx("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => (jsx(Button, { className: `${idx > 0 && rounded ? 'ml-3' : ''} w-12 h-12`, rounded: rounded, appendLeft: icon ? jsx(Img, { image: icon, width: "24px", height: "24px", asSVG: true }) : null, ...buttonProps }, String(idx)))) }));
|
|
1764
1830
|
|
|
1765
1831
|
const TariffsTableRow = JSX(({ row: { header, data }, activeCardIndex, isLastRow }) => {
|
|
1766
|
-
return (jsxs(TableRowContainer, { children: [jsx("div", { className: `text-sm py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: jsxs("div", { className: "flex items-center text-primary-text", children: [header?.icon
|
|
1832
|
+
return (jsxs(TableRowContainer, { children: [jsx("div", { className: `text-sm py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: jsxs("div", { className: "flex items-center text-primary-text", children: [header?.icon ? (jsx(Img, { className: "mr-[14px] max-w-6 max-h-6", image: header.icon, width: "24px", height: "24px", asSVG: true })) : null, header?.title] }) }), data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH, version: "tariff", children: data.map((cell, i) => (jsx(TariffsTableCell, { cell: cell, isLastRow: isLastRow }, String(i)))) })) : null] }));
|
|
1767
1833
|
});
|
|
1768
1834
|
|
|
1769
1835
|
const TariffsTable = JSX(({ className, context, title, description, rowHeaders, columns, anchor = null }) => {
|