@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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { Button } from '../../ui-kit/Button/Button.js';
|
|
4
|
-
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
5
4
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
6
5
|
import { List } from '../../ui-kit/List/List.js';
|
|
7
6
|
export const TariffsTableCell = JSX(({ cell, isLastRow }) => {
|
|
@@ -10,5 +9,5 @@ export const TariffsTableCell = JSX(({ cell, isLastRow }) => {
|
|
|
10
9
|
});
|
|
11
10
|
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)));
|
|
12
11
|
const renderList = (list) => (_jsx(List, { className: "flex flex-col justify-between items-start text-sm", version: "gray", items: list.items, isDotted: list.isDotted ?? true }));
|
|
13
|
-
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
|
|
12
|
+
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)))) }));
|
|
14
13
|
//# sourceMappingURL=TariffsTableCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"TariffsTableCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAQ9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAwB,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,cAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC7C,wBAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,GAAO,GAClC,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CACtB,EAAE,K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O,EAAE,OAAO,EAChB,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,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 Таблица тарифов
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { Img } from '../../ui-kit/Img/Img.js';
|
|
4
|
+
import { TableCarouselContainer } from '../ComparisonTable/TableCarouselContainer.js';
|
|
5
|
+
import { TableRowContainer } from '../ComparisonTable/TableRowContainer.js';
|
|
3
6
|
import { COLUMN_WIDTH, DIVIDER_CLASSES, FIRST_CELL_CLASSES } from './constants.js';
|
|
4
|
-
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
5
7
|
import { TariffsTableCell } from './TariffsTableCell.js';
|
|
6
|
-
import { TableRowContainer } from '../ComparisonTable/TableRowContainer.js';
|
|
7
|
-
import { TableCarouselContainer } from '../ComparisonTable/TableCarouselContainer.js';
|
|
8
8
|
export const TariffsTableRow = JSX(({ row: { header, data }, activeCardIndex, isLastRow }) => {
|
|
9
|
-
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
|
|
9
|
+
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] }));
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=TariffsTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TariffsTableRow.js","sourceRoot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S,EAAE,SAAS,IAA3C,MAAM,CAAC,CAAC,CAAC,CAAsC,CACvE,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACU,CACrB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { TableTileHeader } from './TableTileHeader.js';
|
|
4
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
5
3
|
import { Button } from '../../ui-kit/Button/Button.js';
|
|
6
|
-
import {
|
|
4
|
+
import { Img } from '../../ui-kit/Img/Img.js';
|
|
7
5
|
import { List } from '../../ui-kit/List/List.js';
|
|
6
|
+
import { TableTileHeader } from './TableTileHeader.js';
|
|
8
7
|
export const TariffsTableTileCell = JSX(({ header, data }) => {
|
|
9
8
|
return (_jsxs("div", { className: "rounded-md border-main-stroke h-full box-border border p-4", children: [_jsx(TableTileHeader, { ...header }), data?.length ? data.map(renderCellInner) : null] }));
|
|
10
9
|
});
|
|
11
10
|
const renderCellInner = ({ label, description, list, image, buttons }, i) => (_jsxs("div", { children: [i > 0 && (_jsx("div", { className: "border-main-divider border border-solid border-t-0 border-x-0 my-2" })), label ? _jsx("div", { className: "text-m-sm m-0", children: label }) : null, description ? (_jsx("div", { className: "text-m-sm text-secondary-text mt-[3px]", children: description })) : null, list?.items?.length ? renderList(list) : null, image && _jsx(Img, { image: { ...image, className: 'm-0' } }), buttons?.length ? renderButtons(buttons) : null] }, String(i)));
|
|
12
11
|
const renderList = (list) => (_jsx(List, { className: "flex flex-col justify-between items-start text-m-sm", version: "gray", items: list.items, isDotted: list.isDotted ?? true }));
|
|
13
|
-
const renderButtons = (buttons) => (_jsx("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => (_jsx(Button, { className: `mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`, rounded: rounded, appendLeft: icon
|
|
12
|
+
const renderButtons = (buttons) => (_jsx("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => (_jsx(Button, { className: `mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`, rounded: rounded, appendLeft: icon ? _jsx(Img, { image: icon, width: "24px", height: "24px", asSVG: true }) : null, ...buttonProps, "aria-label": icon }, String(idx)))) }));
|
|
14
13
|
//# sourceMappingURL=TariffsTableTileCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableTileCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableTileCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TariffsTableTileCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableTileCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAA4B,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;IACtF,OAAO,CACL,eAAK,SAAS,EAAC,4DAA4D,aACzE,KAAC,eAAe,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,MA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C,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,EAElF,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,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"}
|
|
@@ -8,7 +8,7 @@ export async function transformContentPage(pagePath, options) {
|
|
|
8
8
|
const content = await readFile(pagePath, 'utf8');
|
|
9
9
|
return mapJSON(JSON.parse(content), async (value, [key]) => {
|
|
10
10
|
const isMarkdown = typeof value === 'string' && key?.endsWith('__md');
|
|
11
|
-
const isPicture = value && isLocalPath(value
|
|
11
|
+
const isPicture = value && isLocalPath(value?.src);
|
|
12
12
|
if (isMarkdown) {
|
|
13
13
|
return await transformMarkdown(value);
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformContentPage.js","sourceRoot":"","sources":["../../src/content-page-repository/transformContentPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;AAE7C,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,QAAgB,EAChB,OAA8B;IAE9B,MAAM,OAAO,GAAG,MAAM,QAAQ,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vC;aAAM,IAAI,SAAS,EAAE;YACpB,OAAO,MAAM,gBAAgB,CAAC,QAAQ,EAAE,KAAgB,EAAE,OAAO,CAAC,CAAC;SACpE;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;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"}
|
package/lib/model/Picture.d.ts
CHANGED
|
@@ -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 Основное меню */
|
package/lib/setup-fixture.js
CHANGED
|
@@ -12,14 +12,10 @@ const Router = () => {
|
|
|
12
12
|
pathname: '/credits',
|
|
13
13
|
query: {},
|
|
14
14
|
push: (url) => {
|
|
15
|
-
if (!url)
|
|
16
|
-
return;
|
|
17
15
|
globalThis.history.pushState(null, '', url);
|
|
18
16
|
setHref(globalThis.location.href);
|
|
19
17
|
},
|
|
20
18
|
replace: (url) => {
|
|
21
|
-
if (!url)
|
|
22
|
-
return;
|
|
23
19
|
globalThis.history.replaceState(null, '', url);
|
|
24
20
|
setHref(globalThis.location.href);
|
|
25
21
|
},
|
package/lib/setup-fixture.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-fixture.js","sourceRoot":"","sources":["../src/setup-fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,mBA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ACH,CAAC"}
|
|
@@ -2,14 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
export const ButtonInner = JSX((props) => {
|
|
4
4
|
const { text, aboveText, appendLeft } = props;
|
|
5
|
-
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-
|
|
5
|
+
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] }));
|
|
6
6
|
});
|
|
7
7
|
const getButtonStyle = (props) => {
|
|
8
8
|
const { version, aboveText, rounded } = props;
|
|
9
9
|
if (version === 'link') {
|
|
10
10
|
return '';
|
|
11
11
|
}
|
|
12
|
-
const withTextStyle = `px-8 gap-2 ${aboveText ? 'py-2' : 'py-
|
|
12
|
+
const withTextStyle = `px-8 gap-2 ${aboveText ? 'py-2' : 'py-4'}`;
|
|
13
13
|
return [
|
|
14
14
|
'flex items-center justify-center',
|
|
15
15
|
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC9C,OAAO,CACL,eAAK,SAAS,EAAE,cAAc,CAAC,KAAK,CAAC,aAClC,UAAU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AAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAoB,EAAE,EAAE,CACvE,OAAO,CAAC,IAAI,IAAI,SAAS,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
2
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
4
4
|
/**
|
|
5
5
|
* @hidden
|
|
6
6
|
*/
|
|
@@ -21,7 +21,7 @@ export interface ButtonProps extends ButtonAdditionalProps, LinkProps {
|
|
|
21
21
|
}
|
|
22
22
|
export interface ButtonWithIconProps extends ButtonProps {
|
|
23
23
|
/** @title Иконка */
|
|
24
|
-
icon?:
|
|
24
|
+
icon?: Picture;
|
|
25
25
|
/** @title Верхний текст */
|
|
26
26
|
aboveText?: string;
|
|
27
27
|
/** @hidden */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { useLink } from '../../hooks/useLink.js';
|
|
4
|
-
import {
|
|
4
|
+
import { Img } from '../Img/Img.js';
|
|
5
5
|
import { Button } from './Button.js';
|
|
6
6
|
export const ButtonSection = JSX(({ context, className = '', buttons }) => {
|
|
7
7
|
const { handlerDecorator } = context;
|
|
@@ -11,6 +11,6 @@ export const ButtonSection = JSX(({ context, className = '', buttons }) => {
|
|
|
11
11
|
function renderButton({ icon, ...button }, i) {
|
|
12
12
|
if (!button?.text)
|
|
13
13
|
return;
|
|
14
|
-
return icon ? (_jsx(Button, { appendLeft: _jsx(
|
|
14
|
+
return icon ? (_jsx(Button, { appendLeft: _jsx(Img, { image: icon, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : (_jsx(Button, { ...button }, String(i)));
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=ButtonSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAqB,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACrC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,cAAK,SAAS,EAAE,GAAG,SAAS,EAAE,YAC3B,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAC7B,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CACnE,GACG,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC;AAEH,SAAS,YAAY,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,EAAuB,EAAE,CAAS;IACvE,IAAI,CAAC,MAAM,EAAE,IAAI;QAAE,OAAO;IAE1B,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,KAAC,MAAM,IAEL,UAAU,EAAE,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,KACzD,MAAM,IAFL,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,OAAqB,MAAM,IAArB,MAAM,CAAC,CAAC,CAAC,CAAgB,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -14,6 +14,6 @@ export const Heading = JSX((props) => {
|
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
const Tag = headingType;
|
|
17
|
-
return (_jsx(Tag, { className: `font-sans
|
|
17
|
+
return (_jsx(Tag, { className: `font-sans m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`, children: title }));
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=Heading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAOxC,MAAM,iBAAiB,GAAgC;IACrD,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,iCAAiC;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACrD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;KACR;IACD,MAAM,GAAG,GAAG,WAAW,CAAC;IAExB,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAOxC,MAAM,iBAAiB,GAAgC;IACrD,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,iCAAiC;IACrC,EAAE,EAAE,iCAAiC;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACrD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;KACR;IACD,MAAM,GAAG,GAAG,WAAW,CAAC;IAExB,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,iBAAiB,iBAAiB,CAAC,WAAW,CAAC,IAAI,SAAS,EAAE,YAAG,KAAK,GAAO,CAC9F,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/lib/ui-kit/Icon/Icon.js
CHANGED
|
@@ -7,7 +7,7 @@ const svgColorsMap = {
|
|
|
7
7
|
primary: 'text-primary-main',
|
|
8
8
|
secondary: 'text-primary-text',
|
|
9
9
|
};
|
|
10
|
-
export const Icon = JSX(({ className = '', name, alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, asSVG, color = 'primary', ...imgProps }) => {
|
|
10
|
+
export const Icon = JSX(({ className = '', name = '', alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, asSVG, color = 'primary', ...imgProps }) => {
|
|
11
11
|
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
12
12
|
if (asSVG) {
|
|
13
13
|
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` })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,YAAY,GAA8B;IAC9C,IAAI,EAAE,EAAE;IACR,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,mBAAmB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,IAAI,
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,YAAY,GAA8B;IAC9C,IAAI,EAAE,EAAE;IACR,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,mBAAmB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,IAAI,GAAG,EAAE,EACT,GAAG,GAAG,UAAU,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,EAC5C,KAAK,GAAG,GAAG,EACX,KAAK,EACL,KAAK,GAAG,SAAS,EACjB,GAAG,QAAQ,EACZ,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,GAAG,eAAe,CAAC,GAAG,IAAI,EAAE,SAAS,IAAI,MAAM,CAAC;IAE7D,IAAI,KAAK,EAAE;QACT,OAAO,CACL,eACE,SAAS,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,IAAI,SAAS,EAAE,KAC5C,QAAQ,iBACA,MAAM,EAClB,KAAK,EAAE,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,aAE5D,KAAK,CAAC,CAAC,CAAC,0BAAQ,KAAK,GAAS,CAAC,CAAC,CAAC,IAAI,EACrC,GAAG,CAAC,CAAC,CAAC,yBAAO,GAAG,GAAQ,CAAC,CAAC,CAAC,IAAI,EAChC,cAAK,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,OAAO,GAAI,IACpD,CACP,CAAC;KACH;IAED,OAAO,CACL,cACE,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,KACR,QAAQ,iBACA,MAAM,GAClB,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -5,13 +5,21 @@ export type { IconName };
|
|
|
5
5
|
* @enumNames ["Нет", "Основной", "Второстепенный"]
|
|
6
6
|
*/
|
|
7
7
|
export declare type IconColor = 'none' | 'primary' | 'secondary';
|
|
8
|
-
export interface
|
|
9
|
-
|
|
10
|
-
name: IconName;
|
|
8
|
+
export interface IconCompatibilityFields {
|
|
9
|
+
/** @title Альтернативный текст (alt) */
|
|
11
10
|
alt?: string;
|
|
11
|
+
/** @title Текст подсказки (title) */
|
|
12
12
|
title?: string;
|
|
13
|
+
/** @title Ширина */
|
|
13
14
|
width?: string;
|
|
15
|
+
/** @title Высота */
|
|
14
16
|
height?: string;
|
|
17
|
+
/** @hidden */
|
|
15
18
|
asSVG?: boolean;
|
|
19
|
+
/** @hidden */
|
|
16
20
|
color?: IconColor;
|
|
17
21
|
}
|
|
22
|
+
export declare type IconProps = IconCompatibilityFields & {
|
|
23
|
+
className?: string;
|
|
24
|
+
name?: IconName;
|
|
25
|
+
};
|
package/lib/ui-kit/Img/Img.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
image: Picture;
|
|
6
|
-
}
|
|
7
|
-
export declare const Img: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps, any>, context?: any) => any;
|
|
1
|
+
import type { ImgSource, Picture } from '../../model/Picture';
|
|
2
|
+
import type { Image, ImageProps } from './ImgProps';
|
|
3
|
+
export declare const Img: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Image>, any>, context?: any) => any;
|
|
4
|
+
export declare const ImgAsPicture: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Picture>, any>, context?: any) => any;
|
|
8
5
|
export declare function formatToMimeType(format: ImgSource['format']): string | undefined;
|
package/lib/ui-kit/Img/Img.js
CHANGED
|
@@ -1,16 +1,34 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
|
|
3
|
+
import { Icon } from '../Icon/Icon.js';
|
|
4
|
+
export const Img = JSX(({ className = '', image, imageClassName = '', ...iconProps }) => {
|
|
5
|
+
if (!image) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
// backwards compatibility with existing icons in usage
|
|
9
|
+
const icon = typeof image === 'string' ? image : image.icon;
|
|
10
|
+
if (icon || icon === '') {
|
|
11
|
+
return icon.length ? _jsx(Icon, { className: className, name: icon, ...iconProps }) : null;
|
|
12
|
+
}
|
|
13
|
+
return (_jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image }));
|
|
14
|
+
});
|
|
15
|
+
export const ImgAsPicture = JSX(({ className = '', image, imageClassName = '' }) => {
|
|
16
|
+
if (!image) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
return (_jsxs("picture", { className: `flex-none ${className}`, children: [image?.sources?.length
|
|
20
|
+
? image.sources.map(({ src, format }, index) => (_jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
|
|
21
|
+
: null, renderImg(image, imageClassName)] }));
|
|
22
|
+
});
|
|
23
|
+
const renderImg = (image, imageClassName = '') => {
|
|
4
24
|
const style = {
|
|
5
|
-
width: size?.width ? `${size?.width}px` : '100%',
|
|
6
|
-
height: size?.height ? `${size?.height}px` : '100%',
|
|
25
|
+
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
26
|
+
height: image.size?.height ? `${image.size?.height}px` : '100%',
|
|
7
27
|
};
|
|
8
28
|
const title = image.title || '';
|
|
9
|
-
const alt = image.alt || title;
|
|
10
|
-
return (
|
|
11
|
-
|
|
12
|
-
: null, _jsx("img", { className: imageClassName, src: image.src, alt: alt, title: title, style: style, ...size })] }));
|
|
13
|
-
});
|
|
29
|
+
const alt = image.alt || image.title;
|
|
30
|
+
return (_jsx("img", { src: image.src, className: imageClassName, alt: alt, title: title, style: style, ...image.size }));
|
|
31
|
+
};
|
|
14
32
|
export function formatToMimeType(format) {
|
|
15
33
|
return format ? `image/${String(format)}` : undefined;
|
|
16
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI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E,CAAiD,CAChF,CAAC;gBACJ,CAAC,CAAC,IAAI,EACP,SAAS,CAAC,KAAK,EAAE,cAAc,CAAC,IACzB,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAAc,EAAE,cAAc,GAAG,EAAE,EAAE,EAAE;IACxD,MAAM,KAAK,GAAG;QACZ,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM;QAC5D,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;KAChE,CAAC;IACF,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;IAChC,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;IAErC,OAAO,CACL,cACE,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,SAAS,EAAE,cAAc,EACzB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,KACR,KAAK,CAAC,IAAI,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,MAA2B;IAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
image: Picture;
|
|
6
|
-
}
|
|
7
|
-
export declare const Img: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps, any>, context?: any) => any;
|
|
1
|
+
import type { ImgSource, Picture } from '../../model/Picture';
|
|
2
|
+
import type { Image, ImageProps } from './ImgProps';
|
|
3
|
+
export declare const Img: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Image>, any>, context?: any) => any;
|
|
4
|
+
export declare const ImgAsPicture: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Picture>, any>, context?: any) => any;
|
|
8
5
|
export declare function formatToMimeType(format: ImgSource['format']): string | undefined;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
|
|
3
|
+
import { Icon } from '../Icon/Icon.js';
|
|
4
|
+
export const Img = JSX(({ className = '', image, imageClassName = '', ...iconProps }) => {
|
|
5
|
+
// backwards compatibility with existing icons in usage
|
|
6
|
+
const icon = typeof image === 'string' ? image : image?.icon;
|
|
7
|
+
if (icon || icon === '') {
|
|
8
|
+
return _jsx(Icon, { className: className, name: icon, ...iconProps });
|
|
9
|
+
}
|
|
10
|
+
return (_jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image }));
|
|
11
|
+
});
|
|
12
|
+
export const ImgAsPicture = JSX(({ className = '', image, imageClassName = '' }) => {
|
|
4
13
|
if (!image) {
|
|
5
14
|
return null;
|
|
6
15
|
}
|
|
7
|
-
return (_jsxs("picture", { className: className, children: [image
|
|
16
|
+
return (_jsxs("picture", { className: className, children: [image?.sources?.length
|
|
8
17
|
? image.sources.map(({ src, format }, index) => (_jsx("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
|
|
9
18
|
: null, renderImg(image, imageClassName)] }));
|
|
10
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Img.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Img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AAI,GAAG,EAAE,CAAiD,CAChF,CAAC;gBACJ,CAAC,CAAC,IAAI,EACP,SAAS,CAAC,KAAK,EAAE,cAAc,CAAC,IACzB,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAAc,EAAE,cAAc,GAAG,EAAE,EAAE,EAAE;IACxD,MAAM,KAAK,GAAG;QACZ,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM;QAC5D,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;KAChE,CAAC;IACF,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;IAChC,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;IAErC,OAAO,CACL,cACE,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,SAAS,EAAE,UAAU,cAAc,EAAE,EACrC,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,KACR,KAAK,CAAC,IAAI,GACd,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,MAA2B;IAC1D,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import type { IconCompatibilityFields, IconName } from '../Icon/IconProps';
|
|
3
|
+
export declare type Image = Picture | IconName;
|
|
4
|
+
export interface ImageContent<T = Picture> {
|
|
5
|
+
image?: T;
|
|
4
6
|
}
|
|
5
|
-
export interface ImageProps extends ImageContent {
|
|
7
|
+
export interface ImageProps<T> extends ImageContent<T>, IconCompatibilityFields {
|
|
6
8
|
className?: string;
|
|
9
|
+
imageClassName?: string;
|
|
7
10
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3
|
|
3
|
+
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
|
|
4
4
|
const LIST_DOT_STYLE_MAP = {
|
|
5
5
|
primary: 'bg-primary-main',
|
|
6
6
|
secondary: 'bg-white',
|
|
7
7
|
gray: 'bg-secondary-text',
|
|
8
8
|
};
|
|
9
9
|
export const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
|
|
10
|
-
return (_jsxs("div", { className: `font-sans flex items-
|
|
10
|
+
return (_jsxs("div", { className: `font-sans flex items-center ${className}`, role: "listitem", children: [isDotted && _jsx("div", { className: getListStyle(version) }), _jsx("span", { children: children })] }));
|
|
11
11
|
});
|
|
12
12
|
const getListStyle = (version) => {
|
|
13
13
|
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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAaxC,MAAM,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAaxC,MAAM,kBAAkB,GAAG,gCAAgC,CAAC;AAE5D,MAAM,kBAAkB,GAAoC;IAC1D,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACrE,OAAO,CACL,eAAK,SAAS,EAAE,+BAA+B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACxE,QAAQ,IAAI,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,yBAAO,QAAQ,GAAQ,IACnB,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAwB,EAAE,EAAE;IAChD,MAAM,IAAI,GAAG,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAChG,OAAO,GAAG,kBAAkB,IAAI,kBAAkB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;AACxE,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { Button } from '../Button/Button.js';
|
|
4
|
-
import {
|
|
4
|
+
import { Img } from '../Img/Img.js';
|
|
5
5
|
export const SearchBar = JSX(({ className, context }) => {
|
|
6
6
|
const { term, setTerm } = context.useSearch();
|
|
7
|
-
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(
|
|
7
|
+
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) => {
|
|
8
8
|
e.preventDefault();
|
|
9
9
|
console.log('click');
|
|
10
10
|
}, children: _jsx("div", { className: "font-normal text-sm px-9 py-[9px]", children: "\u041D\u0430\u0439\u0442\u0438" }) })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAgB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACrE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAC9C,OAAO,CACL,gBAAM,SAAS,EAAE,YAAY,SAAS,IAAI,EAAE,EAAE,aAC5C,eAAK,SAAS,EAAC,yGAAyG,aACtH,cAAK,SAAS,EAAC,mBAAmB,YAChC,KAAC,GAAG,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC5C,EACL,CAAC,IAAI,IAAI,CACR,gBACE,OAAO,EAAC,kBAAkB,EAC1B,SAAS,EAAC,qDAAqD,2FAGzD,CACT,IACG,EACN,gBACE,EAAE,EAAC,kBAAkB,EACrB,SAAS,EACP,oLAAoL,EAEtL,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACxC,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,kBAAkB,GACvB,EACF,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,gCAAO,EACZ,SAAS,EAAC,qDAAqD,EAC/D,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC,YAED,cAAK,SAAS,EAAC,mCAAmC,+CAAY,GACvD,IACJ,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import {
|
|
3
|
+
import { Img } from '../Img/Img.js';
|
|
4
4
|
export const SearchBar = JSX(({ className, context }) => {
|
|
5
5
|
const { term, setTerm } = context.useSearch();
|
|
6
|
-
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-[20px] h-[20px]", children: _jsx(
|
|
6
|
+
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-[20px] h-[20px]", children: _jsx(Img, { image: "LoupeIcon", width: "24", height: "24" }) }), !term && (_jsx("label", { htmlFor: "search-bar-input", className: "font-sans font-normal text-sm 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 placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded 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", placeholder: "some search" }), _jsx("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none", onClick: (e) => {
|
|
7
7
|
e.preventDefault();
|
|
8
8
|
setTerm('');
|
|
9
|
-
}, children: _jsx(
|
|
9
|
+
}, children: _jsx(Img, { image: "CloseIcon", width: "24", height: "24" }) })] }));
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=SearchBar.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchBar.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SearchBar.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.mobile.tsx"],"names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