@redneckz/wildless-cms-uni-blocks 0.3.30 → 0.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +184 -129
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +2 -6
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +3 -3
- package/dist/components/Accordion/AccordionItem.js +5 -12
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js +7 -4
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.js +2 -2
- package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.js +2 -3
- package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
- package/dist/components/ComparisonTable/HeaderCell.d.ts +1 -2
- package/dist/components/ComparisonTable/HeaderCell.js +1 -2
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.mobile.d.ts +1 -2
- package/dist/components/ComparisonTable/HeaderCell.mobile.js +2 -3
- package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/dist/components/CreditCalculator/defaultTabs.js +3 -3
- package/dist/components/CreditCalculator/defaultTabs.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js +2 -2
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +2 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +2 -2
- package/dist/components/Footer/MediaButton.js +17 -5
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +1 -2
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +1 -2
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderBurger.js +3 -3
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +3 -3
- package/dist/components/Header/HeaderSecondaryMenu.js +2 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +2 -2
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/dist/components/LinkDocs/LinkDocsList.d.ts +2 -2
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
- package/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -2
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -12
- package/dist/components/PictureText/PictureText.js +8 -5
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +7 -0
- package/dist/components/ProductBlock/ProductBlock.js +2 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -3
- package/dist/components/ProductBlock/ProductBlockInner.js +4 -4
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js +2 -2
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js +2 -2
- package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -5
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js +7 -2
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +7 -2
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/dist/components/Recommendation/Recommendation.js +2 -2
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/dist/components/Recommendation/RecommendationCard.js +3 -3
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/Recommendation/RecommendationContent.d.ts +4 -2
- package/dist/components/StepsBlock/StepsBlock.js +10 -4
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +13 -6
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/dist/components/TariffsTable/TableTileHeader.js +2 -2
- package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -2
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -2
- package/dist/components/TariffsTable/TariffsTableRow.js +4 -4
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js +3 -4
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/dist/content-page-repository/transformContentPage.js +1 -1
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/model/Picture.d.ts +3 -0
- package/dist/model/SitemapProps.d.ts +2 -2
- package/dist/services/sitemap/SitemapProps.d.ts +2 -2
- package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +8 -0
- package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.js +17 -0
- package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.js.map +1 -0
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
- package/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +2 -2
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/dist/ui-kit/Button/ButtonSection.js +2 -2
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.js +1 -1
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +1 -1
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +11 -3
- package/dist/ui-kit/Img/Img.d.ts +4 -7
- package/dist/ui-kit/Img/Img.js +27 -9
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/dist/ui-kit/Img/Img.mobile.d.ts +4 -7
- package/dist/ui-kit/Img/Img.mobile.js +12 -3
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/Img/ImgProps.d.ts +6 -3
- package/dist/ui-kit/List/ListItem.js +2 -2
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.js +2 -2
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -3
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/dist/ui-kit/SearchBar.mobile.js +2 -2
- package/dist/ui-kit/SearchBar.mobile.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
- package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
- package/dist/ui-kit/Tabs/Tabs.js +2 -2
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/dist/ui-kit/Tabs/TabsProps.d.ts +2 -2
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +2 -6
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +3 -3
- package/lib/components/Accordion/AccordionItem.js +5 -12
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js +7 -4
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.js +2 -2
- package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.js +2 -3
- package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
- package/lib/components/ComparisonTable/HeaderCell.d.ts +1 -2
- package/lib/components/ComparisonTable/HeaderCell.js +1 -2
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.mobile.d.ts +1 -2
- package/lib/components/ComparisonTable/HeaderCell.mobile.js +2 -3
- package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/lib/components/CreditCalculator/defaultTabs.js +3 -3
- package/lib/components/CreditCalculator/defaultTabs.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js +2 -2
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +2 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +2 -2
- package/lib/components/Footer/MediaButton.js +17 -5
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +1 -2
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +1 -2
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderBurger.js +3 -3
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +3 -3
- package/lib/components/Header/HeaderSecondaryMenu.js +2 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +2 -2
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/lib/components/LinkDocs/LinkDocsList.d.ts +2 -2
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
- package/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -2
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -12
- package/lib/components/PictureText/PictureText.js +8 -5
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +7 -0
- package/lib/components/ProductBlock/ProductBlock.js +2 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -3
- package/lib/components/ProductBlock/ProductBlockInner.js +4 -4
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js +2 -2
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js +2 -2
- package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +2 -5
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js +7 -2
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +7 -2
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.fixture.d.ts +1 -0
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/lib/components/Recommendation/Recommendation.js +2 -2
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/lib/components/Recommendation/RecommendationCard.js +3 -3
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/Recommendation/RecommendationContent.d.ts +4 -2
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -0
- package/lib/components/StepsBlock/StepsBlock.js +10 -4
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +13 -6
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/lib/components/TariffsTable/TableTileHeader.js +2 -2
- package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +1 -2
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -2
- package/lib/components/TariffsTable/TariffsTableRow.js +4 -4
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js +3 -4
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/lib/content-page-repository/transformContentPage.js +1 -1
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/model/Picture.d.ts +3 -0
- package/lib/model/SitemapProps.d.ts +2 -2
- package/lib/services/sitemap/SitemapProps.d.ts +2 -2
- package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +8 -0
- package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.js +15 -0
- package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.js.map +1 -0
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
- package/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +2 -2
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/lib/ui-kit/Button/ButtonSection.js +2 -2
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.js +1 -1
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +1 -1
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +11 -3
- package/lib/ui-kit/Img/Img.d.ts +4 -7
- package/lib/ui-kit/Img/Img.js +26 -8
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/lib/ui-kit/Img/Img.mobile.d.ts +4 -7
- package/lib/ui-kit/Img/Img.mobile.js +11 -2
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/Img/ImgProps.d.ts +6 -3
- package/lib/ui-kit/List/ListItem.js +2 -2
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.js +2 -2
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js +3 -3
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/lib/ui-kit/SearchBar.mobile.js +2 -2
- package/lib/ui-kit/SearchBar.mobile.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +3 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +4 -1
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
- package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
- package/lib/ui-kit/Tabs/Tabs.js +2 -2
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/lib/ui-kit/Tabs/TabsProps.d.ts +2 -2
- package/mobile/bundle/bundle.umd.js +141 -217
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +3 -3
- package/mobile/dist/components/Accordion/AccordionItem.js +7 -4
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.js +2 -3
- package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
- package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +1 -2
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +2 -3
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/CreditCalculator/defaultTabs.js +3 -3
- package/mobile/dist/components/CreditCalculator/defaultTabs.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +2 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +2 -2
- package/mobile/dist/components/Footer/MediaButton.js +17 -5
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +1 -2
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +1 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js +3 -3
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +3 -3
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +2 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +2 -2
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -12
- package/mobile/dist/components/PictureText/PictureText.js +8 -5
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +7 -0
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -3
- package/mobile/dist/components/ProductBlock/renderBenefit.js +2 -2
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +7 -2
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/mobile/dist/components/Recommendation/Recommendation.js +2 -2
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/mobile/dist/components/Recommendation/RecommendationCard.js +3 -3
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +4 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js +13 -6
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/mobile/dist/components/TariffsTable/TableTileHeader.js +2 -2
- package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -2
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +4 -4
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +3 -4
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/mobile/dist/content-page-repository/transformContentPage.js +1 -1
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/model/Picture.d.ts +3 -0
- package/mobile/dist/model/SitemapProps.d.ts +2 -2
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +2 -2
- package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -4
- package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js +0 -8
- package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -2
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -2
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +11 -3
- package/mobile/dist/ui-kit/Img/Img.d.ts +4 -7
- package/mobile/dist/ui-kit/Img/Img.js +12 -3
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgProps.d.ts +6 -3
- package/mobile/dist/ui-kit/List/ListItem.js +2 -2
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -3
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
- package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.js +2 -2
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +2 -2
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +3 -3
- package/mobile/lib/components/Accordion/AccordionItem.js +7 -4
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.js +2 -3
- package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +2 -3
- package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +1 -2
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +2 -3
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/CreditCalculator/defaultTabs.js +3 -3
- package/mobile/lib/components/CreditCalculator/defaultTabs.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +2 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +2 -2
- package/mobile/lib/components/Footer/MediaButton.js +17 -5
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +1 -2
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js +3 -3
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +3 -3
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +2 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +2 -2
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +2 -2
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -12
- package/mobile/lib/components/PictureText/PictureText.js +8 -5
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +7 -0
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -3
- package/mobile/lib/components/ProductBlock/renderBenefit.js +2 -2
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +7 -2
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +33 -14
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +2 -0
- package/mobile/lib/components/Recommendation/Recommendation.js +2 -2
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +2 -4
- package/mobile/lib/components/Recommendation/RecommendationCard.js +3 -3
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +4 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js +13 -6
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -3
- package/mobile/lib/components/TariffsTable/TableTileHeader.js +2 -2
- package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -2
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +4 -4
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +3 -4
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/mobile/lib/content-page-repository/transformContentPage.js +1 -1
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/model/Picture.d.ts +3 -0
- package/mobile/lib/model/SitemapProps.d.ts +2 -2
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +2 -2
- package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -4
- package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js +0 -8
- package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -2
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +2 -2
- package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -2
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +11 -3
- package/mobile/lib/ui-kit/Img/Img.d.ts +4 -7
- package/mobile/lib/ui-kit/Img/Img.js +11 -2
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgProps.d.ts +6 -3
- package/mobile/lib/ui-kit/List/ListItem.js +2 -2
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +3 -3
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
- package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js +2 -2
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +2 -2
- package/mobile/src/components/Accordion/Accordion.example.json +9 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +4 -5
- package/mobile/src/components/Accordion/AccordionItem.tsx +33 -28
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +8 -11
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +6 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -5
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +2 -3
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +6 -8
- package/mobile/src/components/ContentPage/ContentPage.page.json +267 -82
- package/mobile/src/components/CreditCalculator/CreditCalculator.example.json +9 -3
- package/mobile/src/components/CreditCalculator/defaultTabs.ts +3 -3
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +2 -2
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
- package/mobile/src/components/Footer/Footer.tsx +2 -2
- package/mobile/src/components/Footer/FooterContent.ts +2 -2
- package/mobile/src/components/Footer/MediaButton.tsx +22 -10
- package/mobile/src/components/Gallery/Gallery.tsx +2 -3
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -3
- package/mobile/src/components/Header/Header.example.json +3 -0
- package/mobile/src/components/Header/HeaderBurger.tsx +5 -5
- package/mobile/src/components/Header/HeaderContent.ts +3 -3
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +5 -5
- package/mobile/src/components/Header/HeaderTop.tsx +3 -3
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +3 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +2 -2
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +2 -2
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +4 -4
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +2 -2
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +6 -2
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +3 -12
- package/mobile/src/components/PictureText/PictureText.example.json +8 -2
- package/mobile/src/components/PictureText/PictureText.tsx +37 -12
- package/mobile/src/components/PictureText/PictureTextContent.ts +7 -0
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +11 -3
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +4 -3
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +5 -5
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +22 -1
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +14 -4
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +2 -1
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +51 -28
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +2 -0
- package/mobile/src/components/Recommendation/Recommendation.example.json +18 -3
- package/mobile/src/components/Recommendation/Recommendation.tsx +6 -6
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +21 -12
- package/mobile/src/components/Recommendation/RecommendationContent.ts +6 -4
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +9 -3
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +19 -9
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +4 -3
- package/mobile/src/components/TariffsTable/TableTileHeader.tsx +2 -2
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +12 -4
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +2 -3
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +2 -2
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +7 -7
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +4 -5
- package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -1
- package/mobile/src/content-page-repository/transformContentPage.ts +1 -1
- package/mobile/src/model/Picture.ts +4 -0
- package/mobile/src/model/SitemapProps.ts +2 -2
- package/mobile/src/services/sitemap/SitemapProps.ts +2 -2
- package/mobile/src/ui-kit/BlocksList/EmbeddableBlocks.tsx +0 -8
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +4 -12
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +3 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +2 -2
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +2 -2
- package/mobile/src/ui-kit/Icon/Icon.tsx +1 -1
- package/mobile/src/ui-kit/Icon/IconProps.ts +12 -3
- package/mobile/src/ui-kit/Img/Img.tsx +38 -22
- package/mobile/src/ui-kit/Img/ImgProps.ts +7 -4
- package/mobile/src/ui-kit/List/ListItem.tsx +2 -2
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -3
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +18 -0
- package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +10 -2
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +2 -2
- package/mobile/src/ui-kit/Tabs/TabsProps.ts +2 -2
- package/package.json +2 -3
- package/src/components/Accordion/Accordion.example.json +9 -0
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +3 -0
- package/src/components/Accordion/Accordion.fixture.tsx +2 -0
- package/src/components/Accordion/Accordion.tsx +4 -17
- package/src/components/Accordion/AccordionContent.ts +4 -5
- package/src/components/Accordion/AccordionItem.mobile.tsx +33 -28
- package/src/components/Accordion/AccordionItem.tsx +24 -50
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +8 -11
- package/src/components/Accordion/AccordionItemInner.tsx +8 -10
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +6 -2
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +4 -4
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -5
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +3 -3
- package/src/components/ComparisonTable/ComparisonTableContent.ts +2 -3
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +6 -8
- package/src/components/ComparisonTable/HeaderCell.tsx +3 -5
- package/src/components/ContentPage/ContentPage.page.json +267 -82
- package/src/components/CreditCalculator/CreditCalculator.example.json +9 -3
- package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +3 -3
- package/src/components/CreditCalculator/defaultTabs.ts +3 -3
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +2 -2
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
- package/src/components/Footer/Footer.mobile.tsx +2 -2
- package/src/components/Footer/FooterContent.ts +2 -2
- package/src/components/Footer/MediaButton.tsx +22 -10
- package/src/components/Footer/SocialMedia.tsx +1 -1
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
- package/src/components/Gallery/Gallery.fixture.tsx +1 -1
- package/src/components/Gallery/Gallery.mobile.tsx +2 -3
- package/src/components/Gallery/GalleryCardInner.tsx +2 -3
- package/src/components/Header/Header.example.json +3 -0
- package/src/components/Header/Header.tsx +8 -1
- package/src/components/Header/HeaderBurger.tsx +5 -5
- package/src/components/Header/HeaderContent.ts +3 -3
- package/src/components/Header/HeaderSecondaryMenu.tsx +5 -5
- package/src/components/Header/HeaderTop.tsx +3 -3
- package/src/components/LinkDocs/LinkDocs.example.json +3 -1
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +7 -2
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsContent.ts +2 -2
- package/src/components/LinkDocs/LinkDocsList.tsx +2 -2
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +4 -4
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.example.json +6 -2
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.tsx +3 -3
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +61 -6
- package/src/components/OtherProducts/OtherProductsContent.ts +3 -12
- package/src/components/PictureText/PictureText.example.json +8 -2
- package/src/components/PictureText/PictureText.fixture.tsx +2 -2
- package/src/components/PictureText/PictureText.tsx +37 -12
- package/src/components/PictureText/PictureTextContent.ts +7 -0
- package/src/components/ProductBlock/ProductBlock.example.json +11 -3
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +3 -3
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +7 -7
- package/src/components/ProductBlock/ProductBlock.tsx +2 -4
- package/src/components/ProductBlock/ProductBlockContent.ts +4 -3
- package/src/components/ProductBlock/ProductBlockInner.tsx +8 -11
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +5 -5
- package/src/components/ProductBlock/renderBenefit.tsx +5 -5
- package/src/components/ProductGallery/ProductGallery.example.json +22 -1
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +106 -104
- package/src/components/ProductGallery/ProductGallery.tsx +4 -17
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +14 -4
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +15 -4
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +2 -1
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.fixture.tsx +74 -2
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +51 -28
- package/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +2 -0
- package/src/components/Recommendation/Recommendation.example.json +18 -3
- package/src/components/Recommendation/Recommendation.fixture.tsx +15 -5
- package/src/components/Recommendation/Recommendation.tsx +6 -6
- package/src/components/Recommendation/RecommendationCard.tsx +21 -12
- package/src/components/Recommendation/RecommendationContent.ts +6 -4
- package/src/components/StepsBlock/StepsBlock.example.json +9 -3
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +14 -14
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +14 -0
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +19 -9
- package/src/components/StepsBlock/StepsBlock.tsx +15 -8
- package/src/components/StepsBlock/StepsBlockContent.ts +4 -3
- package/src/components/TariffsTable/TableTileHeader.tsx +2 -2
- package/src/components/TariffsTable/TariffsTable.example.json +12 -4
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +6 -9
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +5 -5
- package/src/components/TariffsTable/TariffsTableCell.tsx +2 -3
- package/src/components/TariffsTable/TariffsTableContent.ts +2 -2
- package/src/components/TariffsTable/TariffsTableRow.tsx +7 -7
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +4 -5
- package/src/components/TextBlock/TextBlockContent.ts +1 -1
- package/src/content-page-repository/transformContentPage.ts +1 -1
- package/src/model/Picture.ts +4 -0
- package/src/model/SitemapProps.ts +2 -2
- package/src/services/sitemap/SitemapProps.ts +2 -2
- package/src/ui-kit/BlocksList/EmbeddableBlocks.mobile.tsx +15 -0
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +4 -12
- package/src/ui-kit/Button/Button.fixture.tsx +5 -5
- package/src/ui-kit/Button/ButtonInner.tsx +3 -3
- package/src/ui-kit/Button/ButtonProps.ts +2 -2
- package/src/ui-kit/Button/ButtonSection.tsx +2 -2
- package/src/ui-kit/Heading/Heading.tsx +1 -3
- package/src/ui-kit/Icon/Icon.tsx +1 -1
- package/src/ui-kit/Icon/IconProps.ts +12 -3
- package/src/ui-kit/Img/Img.mobile.tsx +38 -22
- package/src/ui-kit/Img/Img.tsx +50 -23
- package/src/ui-kit/Img/ImgProps.ts +7 -4
- package/src/ui-kit/List/ListItem.tsx +2 -2
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +3 -3
- package/src/ui-kit/SearchBar/SearchBar.tsx +2 -2
- package/src/ui-kit/SearchBar.mobile.tsx +2 -2
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +24 -6
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +18 -0
- package/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +10 -2
- package/src/ui-kit/Tabs/Tabs.tsx +2 -2
- package/src/ui-kit/Tabs/TabsProps.ts +2 -2
|
@@ -2,35 +2,54 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.ProductGalleryGreen = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
6
5
|
const ProductBlockInner_1 = require("../ProductBlock/ProductBlockInner");
|
|
7
|
-
|
|
6
|
+
const productGalleryGreenStyleMap = {
|
|
7
|
+
primary: 'bg-white text-primary-text',
|
|
8
|
+
secondary: 'bg-primary-main text-white',
|
|
9
|
+
};
|
|
10
|
+
const productBlockStyleMap = {
|
|
11
|
+
primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
|
|
12
|
+
secondary: { title: 'text-white', text: 'text-white/80' },
|
|
13
|
+
};
|
|
14
|
+
const productSlideStyleMap = {
|
|
15
|
+
primary: 'bg-white text-primary-text',
|
|
16
|
+
secondary: 'bg-primary-main text-white',
|
|
17
|
+
};
|
|
18
|
+
exports.ProductGalleryGreen = (0, uni_jsx_1.JSX)(({ className = '', context, slides = [], version = 'primary', duration = 0, anchor = null }) => {
|
|
8
19
|
const galleryNav = slides.map((s) => s.nav);
|
|
9
20
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
10
21
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `box-border pt-[
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)("section", { id: anchor, className: `box-border pt-[50px] overflow-hidden relative font-sans w-100 ${className}
|
|
23
|
+
${productGalleryGreenStyleMap[version]}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context)) }), (0, jsx_runtime_1.jsx)("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border", children: galleryNav.map((slide, i) => renderNavButton({
|
|
12
24
|
slide,
|
|
13
25
|
i,
|
|
14
26
|
activeSlideIndex,
|
|
15
27
|
onClick: () => setActiveSlideIndex(i),
|
|
28
|
+
version,
|
|
29
|
+
duration,
|
|
16
30
|
})) })] }));
|
|
17
31
|
});
|
|
18
32
|
function renderProductBlock(block, i, context) {
|
|
19
|
-
|
|
33
|
+
const { version } = block;
|
|
34
|
+
const additionalClass = version ? productBlockStyleMap[version].title : '';
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { className: `pl-[50px] pr-2 z-[1] ${additionalClass}`, context: context, textBlockClassName: "mb-[154px]", ...block }) }) }, String(i)));
|
|
20
36
|
}
|
|
21
|
-
function renderNavButton({ slide, i, activeSlideIndex, onClick }) {
|
|
37
|
+
function renderNavButton({ slide, i, activeSlideIndex, onClick, version, duration }) {
|
|
22
38
|
const isActiveBtn = i === activeSlideIndex;
|
|
23
39
|
const btnClassName = isActiveBtn
|
|
24
|
-
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] max-w-[354px] p-0'
|
|
25
|
-
:
|
|
40
|
+
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] max-w-[354px] p-0 border-none'
|
|
41
|
+
: `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300
|
|
42
|
+
${productSlideStyleMap[version]}`;
|
|
26
43
|
const btnTitleClassName = isActiveBtn
|
|
27
|
-
? 'text-
|
|
28
|
-
:
|
|
44
|
+
? 'text-primary-text text-title-2xs'
|
|
45
|
+
: `text-base ${productBlockStyleMap[version].title}`;
|
|
29
46
|
const btnDescClassName = isActiveBtn
|
|
30
|
-
? 'text-
|
|
31
|
-
:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
47
|
+
? 'text-secondary-text text-m-title-xs mt-2.5'
|
|
48
|
+
: `text-m-md mt-1.5 ${productBlockStyleMap[version].text}`;
|
|
49
|
+
const additionalBorder = version === 'secondary' ? 'border-white/50' : '';
|
|
50
|
+
const progressBarClassName = isActiveBtn ? 'animate-slide' : '';
|
|
51
|
+
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border font-sans group relative overflow-hidden border-[1px] cursor-pointer text-left mx-1 grow basis-0 backdrop-blur-sm
|
|
52
|
+
${btnClassName} ${additionalBorder}
|
|
53
|
+
`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "border-0 px-6", children: [(0, jsx_runtime_1.jsx)("div", { className: `font-medium ${btnTitleClassName}`, children: slide?.title }), (0, jsx_runtime_1.jsx)("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide.description })] }), (0, jsx_runtime_1.jsx)("div", { className: `absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${progressBarClassName}`, style: { animationDuration: `${duration}s`, animationFillMode: 'forwards' } })] }, String(i)));
|
|
35
54
|
}
|
|
36
55
|
//# sourceMappingURL=ProductGalleryGreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGalleryGreen.js","sourceRoot":"","sources":["../../../src/components/ProductGalleryGreen/ProductGalleryGreen.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"ProductGalleryGreen.js","sourceRoot":"","sources":["../../../src/components/ProductGalleryGreen/ProductGalleryGreen.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,yEAAsE;AAU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CAAC,aAAa,oBAAoB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC;IACvD,MAAM,gBAAgB,GAAG,WAAW;QAClC,CAAC,CAAC,4CAA4C;QAC9C,CAAC,CAAC,oBAAoB,oBAAoB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAE7D,MAAM,gBAAgB,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1E,MAAM,oBAAoB,GAAG,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhE,OAAO,CACL,oCACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,OAAO,gBACJ,KAAK,EAAE,KAAK,EACxB,SAAS,EAAE;QACT,YAAY,IAAI,gBAAgB;OACjC,aAED,iCAAK,SAAS,EAAC,eAAe,aAC5B,gCAAK,SAAS,EAAE,eAAe,iBAAiB,EAAE,YAAG,KAAK,EAAE,KAAK,GAAO,EACxE,gCAAK,SAAS,EAAE,uBAAuB,gBAAgB,EAAE,YAAG,KAAK,CAAC,WAAW,GAAO,IAChF,EACN,gCACE,SAAS,EAAE,6EAA6E,oBAAoB,EAAE,EAC9G,KAAK,EAAE,EAAE,iBAAiB,EAAE,GAAG,QAAQ,GAAG,EAAE,iBAAiB,EAAE,UAAU,EAAE,GACtE,KAdF,MAAM,CAAC,CAAC,CAAC,CAeP,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
3
|
/** @title Кнопка под слайдом */
|
|
3
4
|
interface ProductGalleryNav {
|
|
4
5
|
/** @title Заголовок */
|
|
@@ -26,5 +27,6 @@ export interface ProductGalleryGreenContent {
|
|
|
26
27
|
duration?: number;
|
|
27
28
|
/** @title Слайды */
|
|
28
29
|
slides?: ProductSlide[];
|
|
30
|
+
version?: BlockVersion;
|
|
29
31
|
}
|
|
30
32
|
export {};
|
|
@@ -11,8 +11,8 @@ const CARD_SHIFT = 525;
|
|
|
11
11
|
exports.Recommendation = (0, uni_jsx_1.JSX)(({ context, recommendations = [], className = '', title, version, anchor = null }) => {
|
|
12
12
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
13
13
|
const blockClassName = version === 'secondary' ? 'bg-primary-main text-white' : 'bg-white text-primary-text';
|
|
14
|
-
const cardClassName = version === 'secondary' ? 'border-
|
|
15
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans p-
|
|
14
|
+
const cardClassName = version === 'secondary' ? 'border-white/50' : 'border-main-stroke';
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans p-9 overflow-hidden text-center ${blockClassName} ${className}`, id: anchor, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: "mb-6", title: title }) : null, (0, jsx_runtime_1.jsx)("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }, role: "list", children: recommendations?.length
|
|
16
16
|
? recommendations.map(renderRecommendationCard({ context, version, className: cardClassName }))
|
|
17
17
|
: null }), renderNavButtons({
|
|
18
18
|
cardsCount: recommendations.length,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Recommendation.js","sourceRoot":"","sources":["../../../src/components/Recommendation/Recommendation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iEAA8D;AAC9D,0DAAuD;AACvD,6DAA0D;AAG1D,MAAM,kBAAkB,GAAG,kCAAkC,CAAC;AAC9D,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAC/B,MAAM,UAAU,GAAG,GAAG,CAAC;AAIV,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAAE,OAAO,EAAE,eAAe,GAAG,EAAE,EAAE,SAA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,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IACtE,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IACtE,MAAM,WAAW,GAAG,UAAU,GAAG,oBAAoB,CAAC;IACtD,MAAM,cAAc,GAAG,WAAW,IAAI,UAAU,GAAG,eAAe,GAAG,oBAAoB,CAAC;IAC1F,MAAM,cAAc,GAAG,WAAW,IAAI,eAAe,GAAG,CAAC,CAAC;IAE1D,OAAO,CACL,4CACG,cAAc,IAAI,CACjB,uBAAC,yBAAW,IACV,SAAS,EAAC,8CAA8C,EACxD,OAAO,EAAE,eAAe,EACxB,SAAS,EAAC,6FAAkB,GAC5B,CACH,EACA,cAAc,IAAI,CACjB,uBAAC,yBAAW,IACV,SAAS,EAAC,oCAAoC,EAC9C,OAAO,EAAE,eAAe,EACxB,SAAS,EAAC,mGAAmB,GAC7B,CACH,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
1
|
import type { UniBlockProps } from '../../types';
|
|
3
|
-
import type {
|
|
4
|
-
export interface RecommendationCardProps extends
|
|
5
|
-
version?: BlockVersion;
|
|
2
|
+
import type { RecommendationCardTypes } from './RecommendationContent';
|
|
3
|
+
export interface RecommendationCardProps extends RecommendationCardTypes, UniBlockProps {
|
|
6
4
|
}
|
|
7
5
|
export declare const RecommendationCard: (props: import("@redneckz/uni-jsx").PropsWithChildren<RecommendationCardProps, any>, context?: any) => any;
|
|
@@ -3,11 +3,11 @@ exports.RecommendationCard = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Description_1 = require("../../ui-kit/Description/Description");
|
|
6
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
7
|
const List_1 = require("../../ui-kit/List/List");
|
|
9
8
|
const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const SocialMedia_1 = require("../Footer/SocialMedia");
|
|
10
|
+
exports.RecommendationCard = (0, uni_jsx_1.JSX)(({ context, className = '', title, description, items, image, version, socialMedia }) => {
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: `border border-solid box-border py-[30px] px-9 min-w-[515px] max-w-[515px] ${className}`, role: "listitem", children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, className: "flex justify-between", title: title ? ((0, jsx_runtime_1.jsx)("h4", { className: `font-sans text-title-xs font-normal m-0 mb-3.5`, children: title })) : null, image: image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }), children: [description ? (0, jsx_runtime_1.jsx)(Description_1.Description, { className: "text-left", description: description }) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "text-md font-light flex flex-col gap-2", items: items, version: version })) : null, (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "pt-[42px] pb-0", media: socialMedia, context: context })] }) }));
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=RecommendationCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecommendationCard.js","sourceRoot":"","sources":["../../../src/components/Recommendation/RecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"RecommendationCard.js","sourceRoot":"","sources":["../../../src/components/Recommendation/RecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,sEAAmE;AACnE,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAChD,uDAAoD;AAMvC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;IACtF,OAAO,CACL,oCACE,SAAS,EAAE,6EAA6E,SAAS,EAAE,EACnG,IAAI,EAAC,UAAU,YAEf,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,sBAAsB,EAChC,KAAK,EACH,KAAK,CAAC,CAAC,CAAC,CACN,+BAAI,SAAS,EAAE,gDAAgD,YAAG,KAAK,GAAM,CAC9E,CAAC,CAAC,CAAC,IAAI,EAEV,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,uBAAC,SAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,aAElE,WAAW,CAAC,CAAC,CAAC,uBAAC,yBAAW,IAAC,SAAS,EAAC,WAAW,EAAC,WAAW,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,EACpF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,wCAAwC,EAClD,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,yBAAW,IAAC,SAAS,EAAC,gBAAgB,EAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,IACvE,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
2
3
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
4
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
5
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
6
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
6
|
-
export declare type
|
|
7
|
+
export declare type RecommendationCardTypes = HeadingContent & DescriptionContent & ListContent & ImageContent & RecommendationContent;
|
|
7
8
|
/**
|
|
8
9
|
* @title Рекомендации
|
|
9
10
|
*/
|
|
10
11
|
export interface RecommendationContent extends HeadingContent {
|
|
11
12
|
/** @title Карточки */
|
|
12
|
-
recommendations?:
|
|
13
|
+
recommendations?: RecommendationCardTypes[];
|
|
13
14
|
version?: BlockVersion;
|
|
15
|
+
socialMedia?: LinkProps[];
|
|
14
16
|
}
|
|
@@ -3,7 +3,15 @@ exports.StepsBlock = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
|
-
const
|
|
6
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
|
+
const STEPS_SIZE_MAP = {
|
|
8
|
+
normal: 'h-[70px] w-[70px] min-w-[70px] min-h-[70px]',
|
|
9
|
+
small: 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]',
|
|
10
|
+
};
|
|
11
|
+
const STEPS_TILE_DESCRIPTION_HEIGHT_MAP = {
|
|
12
|
+
normal: 'min-h-[70px]',
|
|
13
|
+
small: 'min-h-[50px]',
|
|
14
|
+
};
|
|
7
15
|
const STEPS_BLOCK_STYLE_MAPS = {
|
|
8
16
|
primary: {
|
|
9
17
|
background: 'bg-white',
|
|
@@ -31,16 +39,15 @@ const renderStepTitle = (params) => {
|
|
|
31
39
|
const isLastStep = length - 1 === i;
|
|
32
40
|
const margin = size === 'normal' ? 'ml-[34px]' : 'ml-[24px]';
|
|
33
41
|
const style = styleMaps(version);
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row text-center relative", children: [(0, jsx_runtime_1.jsxs)("div", { className: "overflow-hidden", children: [renderIconArea(params), !isLastStep && ((0, jsx_runtime_1.jsx)("div", { className: `min-h-8 h-full w-[2px] ${style.iconConnector} ${margin}` }))] }), (0, jsx_runtime_1.jsxs)("div", { className:
|
|
42
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row text-center relative", children: [(0, jsx_runtime_1.jsxs)("div", { className: "overflow-hidden", children: [renderIconArea(params), !isLastStep && ((0, jsx_runtime_1.jsx)("div", { className: `min-h-8 h-full w-[2px] ${style.iconConnector} ${margin}` }))] }), (0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col justify-center h-fit ${STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]}`, children: [step.label && ((0, jsx_runtime_1.jsx)("div", { className: "font-medium text-m-title-xs m-0 text-left", children: step.label })), step.description && ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm ${style.description} text-left ${step.label ? 'mt-1' : ''}`, children: step.description }))] })] }, String(i)) }, String(i)));
|
|
35
43
|
};
|
|
36
44
|
const renderIconArea = (params) => {
|
|
37
45
|
const { step, size, i, version } = params;
|
|
38
46
|
const style = styleMaps(version);
|
|
39
|
-
const iconAreaSize = size
|
|
40
|
-
? 'h-[70px] w-[70px] min-w-[70px] min-h-[70px]'
|
|
41
|
-
: 'h-[50px] w-[50px] min-w-[50px] min-h-[50px]';
|
|
47
|
+
const iconAreaSize = STEPS_SIZE_MAP[size];
|
|
42
48
|
const iconSize = size === 'normal' ? '38' : '27';
|
|
43
49
|
const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: `${iconAreaSize} ${style.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`, children: (0, jsx_runtime_1.jsx)("span", { className: `font-medium flex self-center ${style.title} ${iconTextSize}`, children: (step.icon && (0, jsx_runtime_1.jsx)(
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `${iconAreaSize} ${style.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`, children: (0, jsx_runtime_1.jsx)("span", { className: `font-medium flex self-center ${style.title} ${iconTextSize}`, children: (step.icon?.icon && (0, jsx_runtime_1.jsx)(Img_1.Img, { image: step.icon, width: iconSize, height: iconSize, asSVG: true })) ||
|
|
51
|
+
i + 1 }) }));
|
|
45
52
|
};
|
|
46
53
|
//# sourceMappingURL=StepsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,0DAAuD;AACvD,8CAA2C;AAa3C,MAAM,cAAc,GAAgC;IAClD,MAAM,EAAE,6CAA6C;IACrD,KAAK,EAAE,6CAA6C;CACrD,CAAC;AAEF,MAAM,iCAAiC,GAAgC;IACrE,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,cAAc;CACtB,CAAC;AAEF,MAAM,sBAAsB,GAAoC;IAC9D,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,qBAAqB;QAClC,cAAc,EAAE,oBAAoB;QACpC,aAAa,EAAE,oBAAoB;KACpC;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,eAAe;QAC5B,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,UAAU;KAC1B;CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,OAAqB,EAAa,EAAE,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAE3E,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAA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iCAAM,SAAS,EAAE,gCAAgC,KAAK,CAAC,KAAK,IAAI,YAAY,EAAE,YAC3E,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,IAAI,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,SAAG,CAAC;gBACtF,CAAC,GAAG,CAAC,GACF,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
2
1
|
import type { SizeVersion } from '../../model/SizeVersion';
|
|
3
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
4
4
|
/**
|
|
5
5
|
* @title Шаг
|
|
6
6
|
*/
|
|
@@ -9,7 +9,7 @@ export interface Step {
|
|
|
9
9
|
label?: string;
|
|
10
10
|
/** @title Описание */
|
|
11
11
|
description?: string;
|
|
12
|
-
icon?:
|
|
12
|
+
icon?: Picture;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* @title Блок шаги
|
|
@@ -24,9 +24,10 @@ export interface StepsBlockContent {
|
|
|
24
24
|
/**
|
|
25
25
|
* @title Шаги
|
|
26
26
|
* @minItems 2
|
|
27
|
-
* @maxItems
|
|
27
|
+
* @maxItems 4
|
|
28
28
|
*/
|
|
29
29
|
steps?: Step[];
|
|
30
|
+
/** @title Размер шагов (моб.) */
|
|
30
31
|
size?: SizeVersion;
|
|
31
32
|
version?: BlockVersion;
|
|
32
33
|
}
|
|
@@ -3,8 +3,8 @@ exports.TableTileHeader = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
|
-
const
|
|
6
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
7
|
exports.TableTileHeader = (0, uni_jsx_1.JSX)(({ title, icon }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-2.5 mb-2", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "font-medium", title: title }) : null, icon ? ((0, jsx_runtime_1.jsx)(
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-2.5 mb-2", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "font-medium", title: title }) : null, icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "ml-auto max-w-6 max-h-6", image: icon, width: "24px", height: "24px" })) : null] }));
|
|
9
9
|
});
|
|
10
10
|
//# sourceMappingURL=TableTileHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableTileHeader.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TableTileHeader.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,0DAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"TableTileHeader.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TableTileHeader.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,0DAAuD;AACvD,8CAA2C;AAG9B,QAAA,eAAe,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IAC5E,OAAO,CACL,iCAAK,SAAS,EAAC,mBAAmB,aAC/B,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACjF,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IAAC,SAAS,EAAC,yBAAyB,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,GAAG,CACpF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -3,7 +3,6 @@ exports.TariffsTableCell = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Button_1 = require("../../ui-kit/Button/Button");
|
|
6
|
-
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
7
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
7
|
const List_1 = require("../../ui-kit/List/List");
|
|
9
8
|
exports.TariffsTableCell = (0, uni_jsx_1.JSX)(({ cell, isLastRow }) => {
|
|
@@ -12,5 +11,5 @@ exports.TariffsTableCell = (0, uni_jsx_1.JSX)(({ cell, isLastRow }) => {
|
|
|
12
11
|
});
|
|
13
12
|
const renderCellInner = ({ label, description, list, image, buttons }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "first:pt-5 last:pb-5", children: [i > 0 && ((0, jsx_runtime_1.jsx)("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-4" })), label ? (0, jsx_runtime_1.jsx)("div", { className: "text-xl font-medium m-0", children: label }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "text-sm text-secondary-text", children: description }) : null, list?.items?.length ? renderList(list) : null, image && (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }), buttons?.length ? renderButtons(buttons) : null] }, String(i)));
|
|
14
13
|
const renderList = (list) => ((0, jsx_runtime_1.jsx)(List_1.List, { className: "flex flex-col justify-between items-start text-sm", version: "gray", items: list.items, isDotted: list.isDotted ?? true }));
|
|
15
|
-
const renderButtons = (buttons) => ((0, jsx_runtime_1.jsx)("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: `${idx > 0 && rounded ? 'ml-3' : ''} w-12 h-12`, rounded: rounded, appendLeft: icon
|
|
14
|
+
const renderButtons = (buttons) => ((0, jsx_runtime_1.jsx)("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: `${idx > 0 && rounded ? 'ml-3' : ''} w-12 h-12`, rounded: rounded, appendLeft: icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, width: "24px", height: "24px", asSVG: true }) : null, ...buttonProps }, String(idx)))) }));
|
|
16
15
|
//# sourceMappingURL=TariffsTableCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;
|
|
1
|
+
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AAEpD,8CAA2C;AAC3C,iDAA8C;AAQjC,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE;IACjF,MAAM,kBAAkB,GAAG,+GACzB,SAAS,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,EAC1C,EAAE,CAAC;IAEH,OAAO,CACL,gCAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC7C,0CAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,GAAO,GAClC,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CACtB,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAwB,EAClE,CAAS,EACT,EAAE,CAAC,CACH,iCAAqB,SAAS,EAAC,sBAAsB,aAClD,CAAC,GAAG,CAAC,IAAI,CACR,gCAAK,SA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,CAAC,CAAC,CAAC,IAAI,KAC3E,WAAW,IAHV,MAAM,CAAC,GAAG,CAAC,CAIhB,CACH,CAAC,GACE,CACP,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { IconName } from '../../icons/IconName';
|
|
2
1
|
import type { CellData } from '../ComparisonTable/ComparisonTableContent';
|
|
3
2
|
import type { ListOrientation } from '../../model/ListOrientation';
|
|
4
3
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
@@ -6,6 +5,7 @@ import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
|
6
5
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
6
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
8
7
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
8
|
+
import { Picture } from '../../model/Picture';
|
|
9
9
|
/**
|
|
10
10
|
* @title Ряд
|
|
11
11
|
*/
|
|
@@ -37,7 +37,7 @@ export declare type TariffsTableCellData = CellData & ImageContent & ButtonConte
|
|
|
37
37
|
* @title Параметр
|
|
38
38
|
*/
|
|
39
39
|
export declare type TariffsTableRowHeader = HeadingContent & {
|
|
40
|
-
icon?:
|
|
40
|
+
icon?: Picture;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* @title Таблица тарифов
|
|
@@ -2,12 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.TariffsTableRow = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
|
+
const TableCarouselContainer_1 = require("../ComparisonTable/TableCarouselContainer");
|
|
7
|
+
const TableRowContainer_1 = require("../ComparisonTable/TableRowContainer");
|
|
5
8
|
const constants_1 = require("./constants");
|
|
6
|
-
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
7
9
|
const TariffsTableCell_1 = require("./TariffsTableCell");
|
|
8
|
-
const TableRowContainer_1 = require("../ComparisonTable/TableRowContainer");
|
|
9
|
-
const TableCarouselContainer_1 = require("../ComparisonTable/TableCarouselContainer");
|
|
10
10
|
exports.TariffsTableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeCardIndex, isLastRow }) => {
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)(TableRowContainer_1.TableRowContainer, { children: [(0, jsx_runtime_1.jsx)("div", { className: `text-sm py-5 ${constants_1.FIRST_CELL_CLASSES} ${constants_1.DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-primary-text", children: [header?.icon
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(TableRowContainer_1.TableRowContainer, { children: [(0, jsx_runtime_1.jsx)("div", { className: `text-sm py-5 ${constants_1.FIRST_CELL_CLASSES} ${constants_1.DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-primary-text", children: [header?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-[14px] max-w-6 max-h-6", image: header.icon, width: "24px", height: "24px", asSVG: true })) : null, header?.title] }) }), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: constants_1.COLUMN_WIDTH, version: "tariff", children: data.map((cell, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cell: cell, isLastRow: isLastRow }, String(i)))) })) : null] }));
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=TariffsTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8CAA2C;AAC3C,sFAAmF;AACnF,4EAAyE;AACzE,2CAAgF;AAChF,yDAAsD;AAUzC,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,EAAE;IACxD,OAAO,CACL,wBAAC,qCAAiB,eAChB,gCACE,SAAS,EAAE,gBAAgB,8BAAkB,IAAI,2BAAe,IAC9D,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAChC,EAAE,YAEF,iCAAK,SAAS,EAAC,qCAAqC,aACjD,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CACd,uBAAC,SAAG,IACF,SAAS,EAAC,2BAA2B,EACrC,KAAK,EAAE,MAAM,CAAC,IAAI,EAClB,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,EAAE,KAAK,IACV,GACF,EACL,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,+CAAsB,IACrB,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,wBAAY,EACzB,OAAO,EAAC,QAAQ,YAEf,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,uBAAC,mCAAgB,IAAiB,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,IAA3C,MAAM,CAAC,CAAC,CAAC,CAAsC,CACvE,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACU,CACrB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,15 +2,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.TariffsTableTileCell = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const TableTileHeader_1 = require("./TableTileHeader");
|
|
6
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
5
|
const Button_1 = require("../../ui-kit/Button/Button");
|
|
8
|
-
const
|
|
6
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
9
7
|
const List_1 = require("../../ui-kit/List/List");
|
|
8
|
+
const TableTileHeader_1 = require("./TableTileHeader");
|
|
10
9
|
exports.TariffsTableTileCell = (0, uni_jsx_1.JSX)(({ header, data }) => {
|
|
11
10
|
return ((0, jsx_runtime_1.jsxs)("div", { className: "rounded-md border-main-stroke h-full box-border border p-4", children: [(0, jsx_runtime_1.jsx)(TableTileHeader_1.TableTileHeader, { ...header }), data?.length ? data.map(renderCellInner) : null] }));
|
|
12
11
|
});
|
|
13
12
|
const renderCellInner = ({ label, description, list, image, buttons }, i) => ((0, jsx_runtime_1.jsxs)("div", { children: [i > 0 && ((0, jsx_runtime_1.jsx)("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-2" })), label ? (0, jsx_runtime_1.jsx)("div", { className: "text-m-sm m-0", children: label }) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "text-m-sm text-secondary-text mt-[3px]", children: description })) : null, list?.items?.length ? renderList(list) : null, image && (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { ...image, className: 'm-0' } }), buttons?.length ? renderButtons(buttons) : null] }, String(i)));
|
|
14
13
|
const renderList = (list) => ((0, jsx_runtime_1.jsx)(List_1.List, { className: "flex flex-col justify-between items-start text-m-sm", version: "gray", items: list.items, isDotted: list.isDotted ?? true }));
|
|
15
|
-
const renderButtons = (buttons) => ((0, jsx_runtime_1.jsx)("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: `mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`, rounded: rounded, appendLeft: icon
|
|
14
|
+
const renderButtons = (buttons) => ((0, jsx_runtime_1.jsx)("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: `mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`, rounded: rounded, appendLeft: icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, width: "24px", height: "24px", asSVG: true }) : null, ...buttonProps, "aria-label": icon }, String(idx)))) }));
|
|
16
15
|
//# sourceMappingURL=TariffsTableTileCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableTileCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableTileCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;
|
|
1
|
+
{"version":3,"file":"TariffsTableTileCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableTileCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AAEpD,8CAA2C;AAC3C,iDAA8C;AAC9C,uDAAoD;AAOvC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAA4B,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;IACtF,OAAO,CACL,iCAAK,SAAS,EAAC,4DAA4D,aACzE,uBAAC,iCAAe,OAAK,MAAM,GAAI,EAC9B,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,IAC5C,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CACtB,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EA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AAC,CAAC,CAAC,EAAE,EAAE,EAElF,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,KAC3E,WAAW,gBACH,IAAI,IAJX,MAAM,CAAC,GAAG,CAAC,CAKhB,CACH,CAAC,GACE,CACP,CAAC"}
|
|
@@ -20,6 +20,6 @@ export interface TextBlockContent {
|
|
|
20
20
|
iconVersion?: TextBlockIconVersion;
|
|
21
21
|
image?: Picture;
|
|
22
22
|
blockVersion?: TextBlockVersion;
|
|
23
|
-
/** @title
|
|
23
|
+
/** @title Буллиты */ isDotted?: boolean;
|
|
24
24
|
/** @title Список (моб.) */ items?: string[];
|
|
25
25
|
}
|
|
@@ -13,7 +13,7 @@ async function transformContentPage(pagePath, options) {
|
|
|
13
13
|
const content = await readFile(pagePath, 'utf8');
|
|
14
14
|
return (0, mapJSON_1.mapJSON)(JSON.parse(content), async (value, [key]) => {
|
|
15
15
|
const isMarkdown = typeof value === 'string' && key?.endsWith('__md');
|
|
16
|
-
const isPicture = value && isLocalPath(value
|
|
16
|
+
const isPicture = value && isLocalPath(value?.src);
|
|
17
17
|
if (isMarkdown) {
|
|
18
18
|
return await (0, transformMarkdown_1.transformMarkdown)(value);
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformContentPage.js","sourceRoot":"","sources":["../../src/content-page-repository/transformContentPage.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AAGxB,uCAAoC;AAEpC,2DAAwD;AACxD,yDAAsD;AAEtD,MAAM,QAAQ,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,QAAQ,CAAC,CAAC;AAEtC,KAAK,UAAU,oBAAoB,CACxC,QAAgB,EAChB,OAA8B;IAE9B,M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SACpE;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AAfD,oDAeC;AAED,MAAM,WAAW,GAAG,CAAC,CAAM,EAAW,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAEpF,MAAM,QAAQ,GAAG,CAAC,CAAM,EAAe,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC;AAE9E,MAAM,KAAK,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IconName } from '../icons/IconName';
|
|
1
2
|
export interface Img {
|
|
2
3
|
/** @title Картинка */
|
|
3
4
|
src?: string;
|
|
@@ -7,6 +8,8 @@ export interface Img {
|
|
|
7
8
|
title?: string;
|
|
8
9
|
}
|
|
9
10
|
export interface ImgSource {
|
|
11
|
+
/** @title Иконка */
|
|
12
|
+
icon?: IconName;
|
|
10
13
|
/** @title Картинка */
|
|
11
14
|
src?: string;
|
|
12
15
|
/** @title Формат */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from './LinkProps';
|
|
2
|
-
import {
|
|
2
|
+
import type { Picture } from './Picture';
|
|
3
3
|
/**
|
|
4
4
|
* @title Меню
|
|
5
5
|
* @required ["text", "href"]
|
|
@@ -14,7 +14,7 @@ export interface TopMenuItem extends LinkProps {
|
|
|
14
14
|
*/
|
|
15
15
|
export interface DispositionItem extends LinkProps {
|
|
16
16
|
/** @hidden */
|
|
17
|
-
icon?:
|
|
17
|
+
icon?: Picture;
|
|
18
18
|
}
|
|
19
19
|
export interface SitemapProps {
|
|
20
20
|
/** @title Дополнительное меню */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
-
import {
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
3
|
/**
|
|
4
4
|
* @title Ссылка
|
|
5
5
|
* @required ["text", "href"]
|
|
@@ -14,7 +14,7 @@ export interface TopMenuItem extends LinkProps {
|
|
|
14
14
|
*/
|
|
15
15
|
export interface DispositionItem extends LinkProps {
|
|
16
16
|
/** @hidden */
|
|
17
|
-
icon?:
|
|
17
|
+
icon?: Picture;
|
|
18
18
|
}
|
|
19
19
|
export interface SitemapProps {
|
|
20
20
|
/** @title Основное меню */
|
|
@@ -2,11 +2,7 @@ export declare const EmbeddableBlocks: {
|
|
|
2
2
|
Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../../components/Headline/Headline").HeadlineProps, any>, context?: any) => any;
|
|
3
3
|
LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../../components/LinkDocs/LinkDocs").LinkDocsProps, any>, context?: any) => any;
|
|
4
4
|
TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../../components/TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
|
|
5
|
-
PictureText: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../../components/PictureText/PictureText").PictureTextProps, any>, context?: any) => any;
|
|
6
5
|
ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../../components/ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
|
|
7
|
-
Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../../components/Tile/Tile").TileProps, any>, context?: any) => any;
|
|
8
|
-
ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../../components/ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
|
|
9
6
|
Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../../components/Gallery/GalleryProps").GalleryProps, any>, context?: any) => any;
|
|
10
|
-
MiniGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../../components/MiniGallery/MiniGallery").MiniGalleryProps, any>, context?: any) => any;
|
|
11
7
|
LinkList: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../../components/LinkList/LinkList").LinkListProps, any>, context?: any) => any;
|
|
12
8
|
};
|
|
@@ -2,24 +2,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.EmbeddableBlocks = void 0;
|
|
3
3
|
const Headline_1 = require("../../components/Headline/Headline");
|
|
4
4
|
const LinkDocs_1 = require("../../components/LinkDocs/LinkDocs");
|
|
5
|
-
const PictureText_1 = require("../../components/PictureText/PictureText");
|
|
6
5
|
const ProductBlock_1 = require("../../components/ProductBlock/ProductBlock");
|
|
7
6
|
const TextBlock_1 = require("../../components/TextBlock/TextBlock");
|
|
8
|
-
const Tile_1 = require("../../components/Tile/Tile");
|
|
9
|
-
const ProductTile_1 = require("../../components/ProductTile/ProductTile");
|
|
10
7
|
const Gallery_1 = require("../../components/Gallery/Gallery");
|
|
11
|
-
const MiniGallery_1 = require("../../components/MiniGallery/MiniGallery");
|
|
12
8
|
const LinkList_1 = require("../../components/LinkList/LinkList");
|
|
13
9
|
exports.EmbeddableBlocks = {
|
|
14
10
|
Headline: Headline_1.Headline,
|
|
15
11
|
LinkDocs: LinkDocs_1.LinkDocs,
|
|
16
12
|
TextBlock: TextBlock_1.TextBlock,
|
|
17
|
-
PictureText: PictureText_1.PictureText,
|
|
18
13
|
ProductBlock: ProductBlock_1.ProductBlock,
|
|
19
|
-
Tile: Tile_1.Tile,
|
|
20
|
-
ProductTile: ProductTile_1.ProductTile,
|
|
21
14
|
Gallery: Gallery_1.Gallery,
|
|
22
|
-
MiniGallery: MiniGallery_1.MiniGallery,
|
|
23
15
|
LinkList: LinkList_1.LinkList,
|
|
24
16
|
};
|
|
25
17
|
//# sourceMappingURL=EmbeddableBlocks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddableBlocks.js","sourceRoot":"","sources":["../../../src/ui-kit/BlocksList/EmbeddableBlocks.tsx"],"names":[],"mappings":";;AAAA,iEAA8D;AAC9D,iEAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"EmbeddableBlocks.js","sourceRoot":"","sources":["../../../src/ui-kit/BlocksList/EmbeddableBlocks.tsx"],"names":[],"mappings":";;AAAA,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,oEAAiE;AACjE,8DAA2D;AAC3D,iEAA8D;AAEjD,QAAA,gBAAgB,GAAG;IAC9B,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,SAAS,EAAT,qBAAS;IACT,YAAY,EAAZ,2BAAY;IACZ,OAAO,EAAP,iBAAO;IACP,QAAQ,EAAR,mBAAQ;CACT,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
|
|
2
2
|
import type { BlockDef, ColumnsCount } from './BlocksListProps';
|
|
3
|
-
import { BlockVersion } from '../../model/BlockVersion';
|
|
4
3
|
declare type EmbeddableBlocksProps = {
|
|
5
4
|
blocks?: BlockDef[];
|
|
6
5
|
context: ContentPageContext;
|
|
7
6
|
columns?: ColumnsCount;
|
|
8
7
|
className?: string;
|
|
9
|
-
version?: BlockVersion;
|
|
10
8
|
};
|
|
11
|
-
export declare const renderBlocksList: ({ blocks, context, className, columns
|
|
12
|
-
export declare const renderBlock: ({ context, columns, className
|
|
9
|
+
export declare const renderBlocksList: ({ blocks, context, className, columns }: EmbeddableBlocksProps) => any[] | null;
|
|
10
|
+
export declare const renderBlock: ({ context, columns, className }: EmbeddableBlocksProps) => (block: BlockDef, i: number) => any;
|
|
13
11
|
export {};
|
|
@@ -2,16 +2,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.renderBlock = exports.renderBlocksList = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const EmbeddableBlocks_1 = require("./EmbeddableBlocks");
|
|
5
|
-
const renderBlocksList = ({ blocks, context, className, columns
|
|
5
|
+
const renderBlocksList = ({ blocks, context, className, columns }) => blocks?.length ? blocks.map((0, exports.renderBlock)({ context, className, columns })) : null;
|
|
6
6
|
exports.renderBlocksList = renderBlocksList;
|
|
7
|
-
const renderBlock = ({ context, columns, className
|
|
7
|
+
const renderBlock = ({ context, columns, className }) => (block, i) => {
|
|
8
8
|
const type = block?.blockListType;
|
|
9
9
|
if (!type || !(type in EmbeddableBlocks_1.EmbeddableBlocks)) {
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
12
|
const columnsCountClass = columns === 2 ? 'w-1/2' : '';
|
|
13
13
|
const EmbeddedBlock = EmbeddableBlocks_1.EmbeddableBlocks[type];
|
|
14
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: `${className} ${columnsCountClass}`, children: (0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...block,
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `${className} ${columnsCountClass}`, children: (0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
|
|
15
15
|
};
|
|
16
16
|
exports.renderBlock = renderBlock;
|
|
17
17
|
//# sourceMappingURL=renderBlocksList.js.map
|