@redneckz/wildless-cms-uni-blocks 0.2.111 → 0.2.112
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/mobile/bundle/bundle.umd.js +846 -0
- package/mobile/bundle/bundle.umd.min.js +1 -0
- package/mobile/dist/ProjectSettings.d.ts +21 -0
- package/mobile/dist/ProjectSettings.js +33 -0
- package/mobile/dist/ProjectSettings.js.map +1 -0
- package/mobile/dist/api/DaDataAPI.d.ts +3 -0
- package/mobile/dist/api/DaDataAPI.js +33 -0
- package/mobile/dist/api/DaDataAPI.js.map +1 -0
- package/mobile/dist/api/LikeAPI.d.ts +9 -0
- package/mobile/dist/api/LikeAPI.js +120 -0
- package/mobile/dist/api/LikeAPI.js.map +1 -0
- package/mobile/dist/components/Accordion/Accordion.d.ts +5 -0
- package/mobile/dist/components/Accordion/Accordion.js +10 -0
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +6 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js +13 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -0
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +65 -0
- package/mobile/dist/components/Accordion/AccordionContent.js +2 -0
- package/mobile/dist/components/Accordion/AccordionContent.js.map +1 -0
- package/mobile/dist/components/Accordion/AccordionItem.d.ts +5 -0
- package/mobile/dist/components/Accordion/AccordionItem.js +33 -0
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -0
- package/mobile/dist/components/BaseTile/BaseTile.d.ts +5 -0
- package/mobile/dist/components/BaseTile/BaseTile.js +41 -0
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -0
- package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +41 -0
- package/mobile/dist/components/BaseTile/BaseTileProps.js +2 -0
- package/mobile/dist/components/BaseTile/BaseTileProps.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +13 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +23 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.js +2 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.js.map +1 -0
- package/mobile/dist/components/BlockContent.d.ts +23 -0
- package/mobile/dist/components/BlockContent.js +2 -0
- package/mobile/dist/components/BlockContent.js.map +1 -0
- package/mobile/dist/components/Blocks.d.ts +16 -0
- package/mobile/dist/components/Blocks.js +33 -0
- package/mobile/dist/components/Blocks.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +36 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +59 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.js +2 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +10 -0
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +11 -0
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.d.ts +7 -0
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js +10 -0
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/TableCell.d.ts +8 -0
- package/mobile/dist/components/ComparisonTable/TableCell.js +12 -0
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/TableRow.d.ts +10 -0
- package/mobile/dist/components/ComparisonTable/TableRow.js +10 -0
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/TableRowContainer.d.ts +4 -0
- package/mobile/dist/components/ComparisonTable/TableRowContainer.js +6 -0
- package/mobile/dist/components/ComparisonTable/TableRowContainer.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/constants.d.ts +6 -0
- package/mobile/dist/components/ComparisonTable/constants.js +9 -0
- package/mobile/dist/components/ComparisonTable/constants.js.map +1 -0
- package/mobile/dist/components/ContentPage/ContentPage.d.ts +28 -0
- package/mobile/dist/components/ContentPage/ContentPage.js +32 -0
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -0
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +31 -0
- package/mobile/dist/components/ContentPage/ContentPageContext.js +2 -0
- package/mobile/dist/components/ContentPage/ContentPageContext.js.map +1 -0
- package/mobile/dist/components/ContentPage/ContentPageHead.d.ts +6 -0
- package/mobile/dist/components/ContentPage/ContentPageHead.js +11 -0
- package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -0
- package/mobile/dist/components/ContentPage/toMobilePage.d.ts +2 -0
- package/mobile/dist/components/ContentPage/toMobilePage.js +34 -0
- package/mobile/dist/components/ContentPage/toMobilePage.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculator.d.ts +5 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js +57 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +19 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.js +2 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/constants.d.ts +7 -0
- package/mobile/dist/components/CreditCalculator/constants.js +10 -0
- package/mobile/dist/components/CreditCalculator/constants.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.d.ts +7 -0
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.js +11 -0
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getCreditRate.d.ts +7 -0
- package/mobile/dist/components/CreditCalculator/getCreditRate.js +13 -0
- package/mobile/dist/components/CreditCalculator/getCreditRate.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.d.ts +1 -0
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.js +15 -0
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.d.ts +11 -0
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js +19 -0
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +35 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +7 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +2 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +1 -0
- package/mobile/dist/components/Footer/Contacts.d.ts +7 -0
- package/mobile/dist/components/Footer/Contacts.js +31 -0
- package/mobile/dist/components/Footer/Contacts.js.map +1 -0
- package/mobile/dist/components/Footer/Footer.d.ts +5 -0
- package/mobile/dist/components/Footer/Footer.js +7 -0
- package/mobile/dist/components/Footer/Footer.js.map +1 -0
- package/mobile/dist/components/Footer/FooterContent.d.ts +38 -0
- package/mobile/dist/components/Footer/FooterContent.js +2 -0
- package/mobile/dist/components/Footer/FooterContent.js.map +1 -0
- package/mobile/dist/components/Footer/FooterLink.d.ts +5 -0
- package/mobile/dist/components/Footer/FooterLink.js +2 -0
- package/mobile/dist/components/Footer/FooterLink.js.map +1 -0
- package/mobile/dist/components/Footer/HorizontalNavigation.d.ts +2 -0
- package/mobile/dist/components/Footer/HorizontalNavigation.js +12 -0
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -0
- package/mobile/dist/components/Footer/Sitemap.d.ts +6 -0
- package/mobile/dist/components/Footer/Sitemap.js +22 -0
- package/mobile/dist/components/Footer/Sitemap.js.map +1 -0
- package/mobile/dist/components/Footer/SocialMedia.d.ts +6 -0
- package/mobile/dist/components/Footer/SocialMedia.js +29 -0
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -0
- package/mobile/dist/components/Footer/TextInformation.d.ts +2 -0
- package/mobile/dist/components/Footer/TextInformation.js +12 -0
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -0
- package/mobile/dist/components/Gallery/Gallery.d.ts +2 -0
- package/mobile/dist/components/Gallery/Gallery.js +18 -0
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -0
- package/mobile/dist/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/mobile/dist/components/Gallery/GalleryCardInner.js +19 -0
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -0
- package/mobile/dist/components/Gallery/GalleryContainer.d.ts +13 -0
- package/mobile/dist/components/Gallery/GalleryContainer.js +16 -0
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -0
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +32 -0
- package/mobile/dist/components/Gallery/GalleryContent.js +2 -0
- package/mobile/dist/components/Gallery/GalleryContent.js.map +1 -0
- package/mobile/dist/components/Gallery/GalleryInner.d.ts +7 -0
- package/mobile/dist/components/Gallery/GalleryInner.js +18 -0
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -0
- package/mobile/dist/components/Gallery/GalleryProps.d.ts +4 -0
- package/mobile/dist/components/Gallery/GalleryProps.js +2 -0
- package/mobile/dist/components/Gallery/GalleryProps.js.map +1 -0
- package/mobile/dist/components/Gallery/constants.d.ts +6 -0
- package/mobile/dist/components/Gallery/constants.js +19 -0
- package/mobile/dist/components/Gallery/constants.js.map +1 -0
- package/mobile/dist/components/Header/Header.d.ts +5 -0
- package/mobile/dist/components/Header/Header.js +30 -0
- package/mobile/dist/components/Header/Header.js.map +1 -0
- package/mobile/dist/components/Header/HeaderContent.d.ts +19 -0
- package/mobile/dist/components/Header/HeaderContent.js +2 -0
- package/mobile/dist/components/Header/HeaderContent.js.map +1 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +10 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +24 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.d.ts +6 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +6 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -0
- package/mobile/dist/components/Headline/Headline.d.ts +5 -0
- package/mobile/dist/components/Headline/Headline.js +15 -0
- package/mobile/dist/components/Headline/Headline.js.map +1 -0
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +8 -0
- package/mobile/dist/components/Headline/HeadlineContent.js +2 -0
- package/mobile/dist/components/Headline/HeadlineContent.js.map +1 -0
- package/mobile/dist/components/LikeControl/LikeControl.d.ts +2 -0
- package/mobile/dist/components/LikeControl/LikeControl.js +10 -0
- package/mobile/dist/components/LikeControl/LikeControl.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocs.d.ts +5 -0
- package/mobile/dist/components/LinkDocs/LinkDocs.js +42 -0
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +23 -0
- package/mobile/dist/components/LinkDocs/LinkDocsContent.js +2 -0
- package/mobile/dist/components/LinkDocs/LinkDocsContent.js.map +1 -0
- package/mobile/dist/components/MiniGallery/MiniGallery.d.ts +5 -0
- package/mobile/dist/components/MiniGallery/MiniGallery.js +7 -0
- package/mobile/dist/components/MiniGallery/MiniGallery.js.map +1 -0
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +5 -0
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.js +2 -0
- package/mobile/dist/components/MiniGallery/MiniGalleryContent.js.map +1 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTile.d.ts +5 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +9 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +16 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.js +2 -0
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.js.map +1 -0
- package/mobile/dist/components/Navigation/Navigation.d.ts +5 -0
- package/mobile/dist/components/Navigation/Navigation.js +16 -0
- package/mobile/dist/components/Navigation/Navigation.js.map +1 -0
- package/mobile/dist/components/Navigation/NavigationContent.d.ts +10 -0
- package/mobile/dist/components/Navigation/NavigationContent.js +2 -0
- package/mobile/dist/components/Navigation/NavigationContent.js.map +1 -0
- package/mobile/dist/components/Navigation/NavigationItem.d.ts +4 -0
- package/mobile/dist/components/Navigation/NavigationItem.js +6 -0
- package/mobile/dist/components/Navigation/NavigationItem.js.map +1 -0
- package/mobile/dist/components/PictureText/PictureText.d.ts +5 -0
- package/mobile/dist/components/PictureText/PictureText.js +14 -0
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -0
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +9 -0
- package/mobile/dist/components/PictureText/PictureTextContent.js +2 -0
- package/mobile/dist/components/PictureText/PictureTextContent.js.map +1 -0
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +6 -0
- package/mobile/dist/components/Placeholder/Placeholder.js +15 -0
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -0
- package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +6 -0
- package/mobile/dist/components/Placeholder/PlaceholderContent.js +2 -0
- package/mobile/dist/components/Placeholder/PlaceholderContent.js.map +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +5 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.js +12 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +25 -0
- package/mobile/dist/components/ProductBlock/ProductBlockContent.js +2 -0
- package/mobile/dist/components/ProductBlock/ProductBlockContent.js.map +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlockInner.d.ts +5 -0
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +26 -0
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -0
- package/mobile/dist/components/ProductGallery/ProductGallery.d.ts +5 -0
- package/mobile/dist/components/ProductGallery/ProductGallery.js +27 -0
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -0
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +29 -0
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.js +2 -0
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.js.map +1 -0
- package/mobile/dist/components/ProductTile/ProductTile.d.ts +5 -0
- package/mobile/dist/components/ProductTile/ProductTile.js +20 -0
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -0
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +12 -0
- package/mobile/dist/components/ProductTile/ProductTileContent.js +2 -0
- package/mobile/dist/components/ProductTile/ProductTileContent.js.map +1 -0
- package/mobile/dist/components/PromoTile/PromoTile.d.ts +5 -0
- package/mobile/dist/components/PromoTile/PromoTile.js +18 -0
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -0
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +8 -0
- package/mobile/dist/components/PromoTile/PromoTileContent.js +2 -0
- package/mobile/dist/components/PromoTile/PromoTileContent.js.map +1 -0
- package/mobile/dist/components/StepsBlock/StepsBlock.d.ts +5 -0
- package/mobile/dist/components/StepsBlock/StepsBlock.js +20 -0
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -0
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +29 -0
- package/mobile/dist/components/StepsBlock/StepsBlockContent.js +2 -0
- package/mobile/dist/components/StepsBlock/StepsBlockContent.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTable.d.ts +5 -0
- package/mobile/dist/components/TariffsTable/TariffsTable.js +25 -0
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +6 -0
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +16 -0
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +59 -0
- package/mobile/dist/components/TariffsTable/TariffsTableContent.js +2 -0
- package/mobile/dist/components/TariffsTable/TariffsTableContent.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +8 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +13 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -0
- package/mobile/dist/components/TariffsTable/constants.d.ts +4 -0
- package/mobile/dist/components/TariffsTable/constants.js +7 -0
- package/mobile/dist/components/TariffsTable/constants.js.map +1 -0
- package/mobile/dist/components/TextBlock/TextBlock.d.ts +5 -0
- package/mobile/dist/components/TextBlock/TextBlock.js +36 -0
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -0
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +23 -0
- package/mobile/dist/components/TextBlock/TextBlockContent.js +2 -0
- package/mobile/dist/components/TextBlock/TextBlockContent.js.map +1 -0
- package/mobile/dist/components/Tile/Tile.d.ts +6 -0
- package/mobile/dist/components/Tile/Tile.js +39 -0
- package/mobile/dist/components/Tile/Tile.js.map +1 -0
- package/mobile/dist/components/Tile/TileContent.d.ts +5 -0
- package/mobile/dist/components/Tile/TileContent.js +2 -0
- package/mobile/dist/components/Tile/TileContent.js.map +1 -0
- package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +10 -0
- package/mobile/dist/content-page-repository/ContentPageRepository.js +56 -0
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -0
- package/mobile/dist/content-page-repository/TransformationOptions.d.ts +4 -0
- package/mobile/dist/content-page-repository/TransformationOptions.js +2 -0
- package/mobile/dist/content-page-repository/TransformationOptions.js.map +1 -0
- package/mobile/dist/content-page-repository/index.d.ts +2 -0
- package/mobile/dist/content-page-repository/index.js +7 -0
- package/mobile/dist/content-page-repository/index.js.map +1 -0
- package/mobile/dist/content-page-repository/mapJSON.d.ts +1 -0
- package/mobile/dist/content-page-repository/mapJSON.js +24 -0
- package/mobile/dist/content-page-repository/mapJSON.js.map +1 -0
- package/mobile/dist/content-page-repository/transformContentPage.d.ts +3 -0
- package/mobile/dist/content-page-repository/transformContentPage.js +30 -0
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -0
- package/mobile/dist/content-page-repository/transformMarkdown.d.ts +1 -0
- package/mobile/dist/content-page-repository/transformMarkdown.js +16 -0
- package/mobile/dist/content-page-repository/transformMarkdown.js.map +1 -0
- package/mobile/dist/content-page-repository/transformPicture.d.ts +3 -0
- package/mobile/dist/content-page-repository/transformPicture.js +45 -0
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -0
- package/mobile/dist/hooks/useComparisonTableScroll.d.ts +12 -0
- package/mobile/dist/hooks/useComparisonTableScroll.js +12 -0
- package/mobile/dist/hooks/useComparisonTableScroll.js.map +1 -0
- package/mobile/dist/hooks/useCreditCalculatorData.d.ts +3 -0
- package/mobile/dist/hooks/useCreditCalculatorData.js +15 -0
- package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -0
- package/mobile/dist/hooks/useLink.d.ts +15 -0
- package/mobile/dist/hooks/useLink.js +23 -0
- package/mobile/dist/hooks/useLink.js.map +1 -0
- package/mobile/dist/index.d.ts +19 -0
- package/mobile/dist/index.js +49 -0
- package/mobile/dist/index.js.map +1 -0
- package/mobile/dist/model/BgColorVersion.d.ts +8 -0
- package/mobile/dist/model/BgColorVersion.js +2 -0
- package/mobile/dist/model/BgColorVersion.js.map +1 -0
- package/mobile/dist/model/BlockVersion.d.ts +5 -0
- package/mobile/dist/model/BlockVersion.js +2 -0
- package/mobile/dist/model/BlockVersion.js.map +1 -0
- package/mobile/dist/model/ButtonVersion.d.ts +6 -0
- package/mobile/dist/model/ButtonVersion.js +2 -0
- package/mobile/dist/model/ButtonVersion.js.map +1 -0
- package/mobile/dist/model/GalleryVersion.d.ts +1 -0
- package/mobile/dist/model/GalleryVersion.js +2 -0
- package/mobile/dist/model/GalleryVersion.js.map +1 -0
- package/mobile/dist/model/LinkProps.d.ts +22 -0
- package/mobile/dist/model/LinkProps.js +2 -0
- package/mobile/dist/model/LinkProps.js.map +1 -0
- package/mobile/dist/model/Picture.d.ts +28 -0
- package/mobile/dist/model/Picture.js +2 -0
- package/mobile/dist/model/Picture.js.map +1 -0
- package/mobile/dist/model/SitemapProps.d.ts +13 -0
- package/mobile/dist/model/SitemapProps.js +2 -0
- package/mobile/dist/model/SitemapProps.js.map +1 -0
- package/mobile/dist/model/SizeVersion.d.ts +8 -0
- package/mobile/dist/model/SizeVersion.js +2 -0
- package/mobile/dist/model/SizeVersion.js.map +1 -0
- package/mobile/dist/model/TableVersion.d.ts +1 -0
- package/mobile/dist/model/TableVersion.js +2 -0
- package/mobile/dist/model/TableVersion.js.map +1 -0
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +13 -0
- package/mobile/dist/services/sitemap/SitemapProps.js +2 -0
- package/mobile/dist/services/sitemap/SitemapProps.js.map +1 -0
- package/mobile/dist/services/sitemap/findActiveSubItem.d.ts +3 -0
- package/mobile/dist/services/sitemap/findActiveSubItem.js +13 -0
- package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -0
- package/mobile/dist/services/sitemap/isHrefActive.d.ts +4 -0
- package/mobile/dist/services/sitemap/isHrefActive.js +9 -0
- package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -0
- package/mobile/dist/services/sitemap/isSubItemActive.d.ts +3 -0
- package/mobile/dist/services/sitemap/isSubItemActive.js +6 -0
- package/mobile/dist/services/sitemap/isSubItemActive.js.map +1 -0
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -0
- package/mobile/dist/services/sitemap/isTopItemActive.js +7 -0
- package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -0
- package/mobile/dist/services/sitemap/mergeTopItems.d.ts +2 -0
- package/mobile/dist/services/sitemap/mergeTopItems.js +8 -0
- package/mobile/dist/services/sitemap/mergeTopItems.js.map +1 -0
- package/mobile/dist/services/sitemap/useSitemap.d.ts +3 -0
- package/mobile/dist/services/sitemap/useSitemap.js +16 -0
- package/mobile/dist/services/sitemap/useSitemap.js.map +1 -0
- package/mobile/dist/types.d.ts +51 -0
- package/mobile/dist/types.js +2 -0
- package/mobile/dist/types.js.map +1 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItem.d.ts +2 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js +24 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItemProps.d.ts +21 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js +2 -0
- package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js.map +1 -0
- package/mobile/dist/ui-kit/Breadcrumb.d.ts +6 -0
- package/mobile/dist/ui-kit/Breadcrumb.js +13 -0
- package/mobile/dist/ui-kit/Breadcrumb.js.map +1 -0
- package/mobile/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/mobile/dist/ui-kit/Button/ArrowButton.js +22 -0
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -0
- package/mobile/dist/ui-kit/Button/Button.d.ts +6 -0
- package/mobile/dist/ui-kit/Button/Button.js +26 -0
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -0
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +30 -0
- package/mobile/dist/ui-kit/Button/ButtonProps.js +2 -0
- package/mobile/dist/ui-kit/Button/ButtonProps.js.map +1 -0
- package/mobile/dist/ui-kit/Button/LikeButton.d.ts +6 -0
- package/mobile/dist/ui-kit/Button/LikeButton.js +15 -0
- package/mobile/dist/ui-kit/Button/LikeButton.js.map +1 -0
- package/mobile/dist/ui-kit/Checkbox/Checkbox.d.ts +2 -0
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +17 -0
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -0
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +6 -0
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.js +2 -0
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.js.map +1 -0
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.d.ts +3 -0
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +21 -0
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -0
- package/mobile/dist/ui-kit/Icon/Icon.d.ts +2 -0
- package/mobile/dist/ui-kit/Icon/Icon.js +13 -0
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -0
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +147 -0
- package/mobile/dist/ui-kit/Icon/IconProps.js +72 -0
- package/mobile/dist/ui-kit/Icon/IconProps.js.map +1 -0
- package/mobile/dist/ui-kit/Img.d.ts +7 -0
- package/mobile/dist/ui-kit/Img.js +18 -0
- package/mobile/dist/ui-kit/Img.js.map +1 -0
- package/mobile/dist/ui-kit/InputRange/InputRange.d.ts +2 -0
- package/mobile/dist/ui-kit/InputRange/InputRange.js +27 -0
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -0
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +10 -0
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.js +2 -0
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.js.map +1 -0
- package/mobile/dist/ui-kit/Logo/Logo.d.ts +7 -0
- package/mobile/dist/ui-kit/Logo/Logo.js +24 -0
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -0
- package/mobile/dist/ui-kit/SVG.d.ts +20 -0
- package/mobile/dist/ui-kit/SVG.js +8 -0
- package/mobile/dist/ui-kit/SVG.js.map +1 -0
- package/mobile/dist/ui-kit/SearchBar.d.ts +2 -0
- package/mobile/dist/ui-kit/SearchBar.js +14 -0
- package/mobile/dist/ui-kit/SearchBar.js.map +1 -0
- package/mobile/dist/ui-kit/Title/Title.d.ts +3 -0
- package/mobile/dist/ui-kit/Title/Title.js +18 -0
- package/mobile/dist/ui-kit/Title/Title.js.map +1 -0
- package/mobile/dist/ui-kit/Title/TitleProps.d.ts +4 -0
- package/mobile/dist/ui-kit/Title/TitleProps.js +2 -0
- package/mobile/dist/ui-kit/Title/TitleProps.js.map +1 -0
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +13 -0
- package/mobile/dist/ui-kit/TopItem/TopItem.js +24 -0
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -0
- package/mobile/dist/utils/addSpacesBetweenNumbers.d.ts +1 -0
- package/mobile/dist/utils/addSpacesBetweenNumbers.js +5 -0
- package/mobile/dist/utils/addSpacesBetweenNumbers.js.map +1 -0
- package/mobile/dist/utils/adjustHref.d.ts +4 -0
- package/mobile/dist/utils/adjustHref.js +21 -0
- package/mobile/dist/utils/adjustHref.js.map +1 -0
- package/mobile/dist/utils/clamp.d.ts +1 -0
- package/mobile/dist/utils/clamp.js +5 -0
- package/mobile/dist/utils/clamp.js.map +1 -0
- package/mobile/dist/utils/getColSpan.d.ts +1 -0
- package/mobile/dist/utils/getColSpan.js +9 -0
- package/mobile/dist/utils/getColSpan.js.map +1 -0
- package/mobile/dist/utils/getGeolocation.d.ts +1 -0
- package/mobile/dist/utils/getGeolocation.js +5 -0
- package/mobile/dist/utils/getGeolocation.js.map +1 -0
- package/mobile/dist/utils/joinList.d.ts +1 -0
- package/mobile/dist/utils/joinList.js +7 -0
- package/mobile/dist/utils/joinList.js.map +1 -0
- package/mobile/dist/utils/maxBy.d.ts +2 -0
- package/mobile/dist/utils/maxBy.js +7 -0
- package/mobile/dist/utils/maxBy.js.map +1 -0
- package/mobile/dist/utils/url.d.ts +3 -0
- package/mobile/dist/utils/url.js +18 -0
- package/mobile/dist/utils/url.js.map +1 -0
- package/mobile/dist/utils/withoutMobilePath.d.ts +2 -0
- package/mobile/dist/utils/withoutMobilePath.js +6 -0
- package/mobile/dist/utils/withoutMobilePath.js.map +1 -0
- package/mobile/lib/ProjectSettings.d.ts +21 -0
- package/mobile/lib/ProjectSettings.js +31 -0
- package/mobile/lib/ProjectSettings.js.map +1 -0
- package/mobile/lib/api/DaDataAPI.d.ts +3 -0
- package/mobile/lib/api/DaDataAPI.js +30 -0
- package/mobile/lib/api/DaDataAPI.js.map +1 -0
- package/mobile/lib/api/LikeAPI.d.ts +9 -0
- package/mobile/lib/api/LikeAPI.js +117 -0
- package/mobile/lib/api/LikeAPI.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.d.ts +5 -0
- package/mobile/lib/components/Accordion/Accordion.js +8 -0
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +6 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js +11 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +65 -0
- package/mobile/lib/components/Accordion/AccordionContent.js +2 -0
- package/mobile/lib/components/Accordion/AccordionContent.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionItem.d.ts +5 -0
- package/mobile/lib/components/Accordion/AccordionItem.js +31 -0
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -0
- package/mobile/lib/components/BaseTile/BaseTile.d.ts +5 -0
- package/mobile/lib/components/BaseTile/BaseTile.js +39 -0
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -0
- package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +41 -0
- package/mobile/lib/components/BaseTile/BaseTileProps.js +2 -0
- package/mobile/lib/components/BaseTile/BaseTileProps.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +11 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +23 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.js +2 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.js.map +1 -0
- package/mobile/lib/components/BlockContent.d.ts +23 -0
- package/mobile/lib/components/BlockContent.js +2 -0
- package/mobile/lib/components/BlockContent.js.map +1 -0
- package/mobile/lib/components/Blocks.d.ts +16 -0
- package/mobile/lib/components/Blocks.js +31 -0
- package/mobile/lib/components/Blocks.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +34 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +59 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.js +2 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +10 -0
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +9 -0
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.d.ts +7 -0
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js +8 -0
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/TableCell.d.ts +8 -0
- package/mobile/lib/components/ComparisonTable/TableCell.js +10 -0
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/TableRow.d.ts +10 -0
- package/mobile/lib/components/ComparisonTable/TableRow.js +8 -0
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/TableRowContainer.d.ts +4 -0
- package/mobile/lib/components/ComparisonTable/TableRowContainer.js +4 -0
- package/mobile/lib/components/ComparisonTable/TableRowContainer.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/constants.d.ts +6 -0
- package/mobile/lib/components/ComparisonTable/constants.js +7 -0
- package/mobile/lib/components/ComparisonTable/constants.js.map +1 -0
- package/mobile/lib/components/ContentPage/ContentPage.d.ts +28 -0
- package/mobile/lib/components/ContentPage/ContentPage.js +30 -0
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -0
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +31 -0
- package/mobile/lib/components/ContentPage/ContentPageContext.js +2 -0
- package/mobile/lib/components/ContentPage/ContentPageContext.js.map +1 -0
- package/mobile/lib/components/ContentPage/ContentPageHead.d.ts +6 -0
- package/mobile/lib/components/ContentPage/ContentPageHead.js +9 -0
- package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -0
- package/mobile/lib/components/ContentPage/toMobilePage.d.ts +2 -0
- package/mobile/lib/components/ContentPage/toMobilePage.js +31 -0
- package/mobile/lib/components/ContentPage/toMobilePage.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculator.d.ts +5 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js +55 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +19 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js +2 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/constants.d.ts +7 -0
- package/mobile/lib/components/CreditCalculator/constants.js +8 -0
- package/mobile/lib/components/CreditCalculator/constants.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.d.ts +7 -0
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.js +8 -0
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getCreditRate.d.ts +7 -0
- package/mobile/lib/components/CreditCalculator/getCreditRate.js +10 -0
- package/mobile/lib/components/CreditCalculator/getCreditRate.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.d.ts +1 -0
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.js +12 -0
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.d.ts +11 -0
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js +16 -0
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +33 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +7 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +2 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +1 -0
- package/mobile/lib/components/Footer/Contacts.d.ts +7 -0
- package/mobile/lib/components/Footer/Contacts.js +29 -0
- package/mobile/lib/components/Footer/Contacts.js.map +1 -0
- package/mobile/lib/components/Footer/Footer.d.ts +5 -0
- package/mobile/lib/components/Footer/Footer.js +5 -0
- package/mobile/lib/components/Footer/Footer.js.map +1 -0
- package/mobile/lib/components/Footer/FooterContent.d.ts +38 -0
- package/mobile/lib/components/Footer/FooterContent.js +2 -0
- package/mobile/lib/components/Footer/FooterContent.js.map +1 -0
- package/mobile/lib/components/Footer/FooterLink.d.ts +5 -0
- package/mobile/lib/components/Footer/FooterLink.js +2 -0
- package/mobile/lib/components/Footer/FooterLink.js.map +1 -0
- package/mobile/lib/components/Footer/HorizontalNavigation.d.ts +2 -0
- package/mobile/lib/components/Footer/HorizontalNavigation.js +10 -0
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -0
- package/mobile/lib/components/Footer/Sitemap.d.ts +6 -0
- package/mobile/lib/components/Footer/Sitemap.js +20 -0
- package/mobile/lib/components/Footer/Sitemap.js.map +1 -0
- package/mobile/lib/components/Footer/SocialMedia.d.ts +6 -0
- package/mobile/lib/components/Footer/SocialMedia.js +27 -0
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -0
- package/mobile/lib/components/Footer/TextInformation.d.ts +2 -0
- package/mobile/lib/components/Footer/TextInformation.js +10 -0
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -0
- package/mobile/lib/components/Gallery/Gallery.d.ts +2 -0
- package/mobile/lib/components/Gallery/Gallery.js +16 -0
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -0
- package/mobile/lib/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/mobile/lib/components/Gallery/GalleryCardInner.js +17 -0
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -0
- package/mobile/lib/components/Gallery/GalleryContainer.d.ts +13 -0
- package/mobile/lib/components/Gallery/GalleryContainer.js +14 -0
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -0
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +32 -0
- package/mobile/lib/components/Gallery/GalleryContent.js +2 -0
- package/mobile/lib/components/Gallery/GalleryContent.js.map +1 -0
- package/mobile/lib/components/Gallery/GalleryInner.d.ts +7 -0
- package/mobile/lib/components/Gallery/GalleryInner.js +16 -0
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -0
- package/mobile/lib/components/Gallery/GalleryProps.d.ts +4 -0
- package/mobile/lib/components/Gallery/GalleryProps.js +2 -0
- package/mobile/lib/components/Gallery/GalleryProps.js.map +1 -0
- package/mobile/lib/components/Gallery/constants.d.ts +6 -0
- package/mobile/lib/components/Gallery/constants.js +17 -0
- package/mobile/lib/components/Gallery/constants.js.map +1 -0
- package/mobile/lib/components/Header/Header.d.ts +5 -0
- package/mobile/lib/components/Header/Header.js +28 -0
- package/mobile/lib/components/Header/Header.js.map +1 -0
- package/mobile/lib/components/Header/HeaderContent.d.ts +19 -0
- package/mobile/lib/components/Header/HeaderContent.js +2 -0
- package/mobile/lib/components/Header/HeaderContent.js.map +1 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +10 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +22 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.d.ts +6 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +4 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -0
- package/mobile/lib/components/Headline/Headline.d.ts +5 -0
- package/mobile/lib/components/Headline/Headline.js +13 -0
- package/mobile/lib/components/Headline/Headline.js.map +1 -0
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +8 -0
- package/mobile/lib/components/Headline/HeadlineContent.js +2 -0
- package/mobile/lib/components/Headline/HeadlineContent.js.map +1 -0
- package/mobile/lib/components/LikeControl/LikeControl.d.ts +2 -0
- package/mobile/lib/components/LikeControl/LikeControl.js +8 -0
- package/mobile/lib/components/LikeControl/LikeControl.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocs.d.ts +5 -0
- package/mobile/lib/components/LinkDocs/LinkDocs.js +40 -0
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +23 -0
- package/mobile/lib/components/LinkDocs/LinkDocsContent.js +2 -0
- package/mobile/lib/components/LinkDocs/LinkDocsContent.js.map +1 -0
- package/mobile/lib/components/MiniGallery/MiniGallery.d.ts +5 -0
- package/mobile/lib/components/MiniGallery/MiniGallery.js +5 -0
- package/mobile/lib/components/MiniGallery/MiniGallery.js.map +1 -0
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +5 -0
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.js +2 -0
- package/mobile/lib/components/MiniGallery/MiniGalleryContent.js.map +1 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTile.d.ts +5 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +7 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +16 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.js +2 -0
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.js.map +1 -0
- package/mobile/lib/components/Navigation/Navigation.d.ts +5 -0
- package/mobile/lib/components/Navigation/Navigation.js +14 -0
- package/mobile/lib/components/Navigation/Navigation.js.map +1 -0
- package/mobile/lib/components/Navigation/NavigationContent.d.ts +10 -0
- package/mobile/lib/components/Navigation/NavigationContent.js +2 -0
- package/mobile/lib/components/Navigation/NavigationContent.js.map +1 -0
- package/mobile/lib/components/Navigation/NavigationItem.d.ts +4 -0
- package/mobile/lib/components/Navigation/NavigationItem.js +4 -0
- package/mobile/lib/components/Navigation/NavigationItem.js.map +1 -0
- package/mobile/lib/components/PictureText/PictureText.d.ts +5 -0
- package/mobile/lib/components/PictureText/PictureText.js +12 -0
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -0
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +9 -0
- package/mobile/lib/components/PictureText/PictureTextContent.js +2 -0
- package/mobile/lib/components/PictureText/PictureTextContent.js.map +1 -0
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +6 -0
- package/mobile/lib/components/Placeholder/Placeholder.js +13 -0
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -0
- package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +6 -0
- package/mobile/lib/components/Placeholder/PlaceholderContent.js +2 -0
- package/mobile/lib/components/Placeholder/PlaceholderContent.js.map +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +5 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.js +10 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +25 -0
- package/mobile/lib/components/ProductBlock/ProductBlockContent.js +2 -0
- package/mobile/lib/components/ProductBlock/ProductBlockContent.js.map +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlockInner.d.ts +5 -0
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +24 -0
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -0
- package/mobile/lib/components/ProductGallery/ProductGallery.d.ts +5 -0
- package/mobile/lib/components/ProductGallery/ProductGallery.js +25 -0
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -0
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +29 -0
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.js +2 -0
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.js.map +1 -0
- package/mobile/lib/components/ProductTile/ProductTile.d.ts +5 -0
- package/mobile/lib/components/ProductTile/ProductTile.js +18 -0
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -0
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +12 -0
- package/mobile/lib/components/ProductTile/ProductTileContent.js +2 -0
- package/mobile/lib/components/ProductTile/ProductTileContent.js.map +1 -0
- package/mobile/lib/components/PromoTile/PromoTile.d.ts +5 -0
- package/mobile/lib/components/PromoTile/PromoTile.js +16 -0
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -0
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +8 -0
- package/mobile/lib/components/PromoTile/PromoTileContent.js +2 -0
- package/mobile/lib/components/PromoTile/PromoTileContent.js.map +1 -0
- package/mobile/lib/components/StepsBlock/StepsBlock.d.ts +5 -0
- package/mobile/lib/components/StepsBlock/StepsBlock.js +18 -0
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -0
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +29 -0
- package/mobile/lib/components/StepsBlock/StepsBlockContent.js +2 -0
- package/mobile/lib/components/StepsBlock/StepsBlockContent.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTable.d.ts +5 -0
- package/mobile/lib/components/TariffsTable/TariffsTable.js +23 -0
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +6 -0
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +14 -0
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +59 -0
- package/mobile/lib/components/TariffsTable/TariffsTableContent.js +2 -0
- package/mobile/lib/components/TariffsTable/TariffsTableContent.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +8 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +11 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -0
- package/mobile/lib/components/TariffsTable/constants.d.ts +4 -0
- package/mobile/lib/components/TariffsTable/constants.js +5 -0
- package/mobile/lib/components/TariffsTable/constants.js.map +1 -0
- package/mobile/lib/components/TextBlock/TextBlock.d.ts +5 -0
- package/mobile/lib/components/TextBlock/TextBlock.js +34 -0
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -0
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +23 -0
- package/mobile/lib/components/TextBlock/TextBlockContent.js +2 -0
- package/mobile/lib/components/TextBlock/TextBlockContent.js.map +1 -0
- package/mobile/lib/components/Tile/Tile.d.ts +6 -0
- package/mobile/lib/components/Tile/Tile.js +37 -0
- package/mobile/lib/components/Tile/Tile.js.map +1 -0
- package/mobile/lib/components/Tile/TileContent.d.ts +5 -0
- package/mobile/lib/components/Tile/TileContent.js +2 -0
- package/mobile/lib/components/Tile/TileContent.js.map +1 -0
- package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +10 -0
- package/mobile/lib/content-page-repository/ContentPageRepository.js +50 -0
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -0
- package/mobile/lib/content-page-repository/TransformationOptions.d.ts +4 -0
- package/mobile/lib/content-page-repository/TransformationOptions.js +2 -0
- package/mobile/lib/content-page-repository/TransformationOptions.js.map +1 -0
- package/mobile/lib/content-page-repository/index.d.ts +2 -0
- package/mobile/lib/content-page-repository/index.js +3 -0
- package/mobile/lib/content-page-repository/index.js.map +1 -0
- package/mobile/lib/content-page-repository/mapJSON.d.ts +1 -0
- package/mobile/lib/content-page-repository/mapJSON.js +21 -0
- package/mobile/lib/content-page-repository/mapJSON.js.map +1 -0
- package/mobile/lib/content-page-repository/transformContentPage.d.ts +3 -0
- package/mobile/lib/content-page-repository/transformContentPage.js +24 -0
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -0
- package/mobile/lib/content-page-repository/transformMarkdown.d.ts +1 -0
- package/mobile/lib/content-page-repository/transformMarkdown.js +10 -0
- package/mobile/lib/content-page-repository/transformMarkdown.js.map +1 -0
- package/mobile/lib/content-page-repository/transformPicture.d.ts +3 -0
- package/mobile/lib/content-page-repository/transformPicture.js +39 -0
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -0
- package/mobile/lib/hooks/useComparisonTableScroll.d.ts +12 -0
- package/mobile/lib/hooks/useComparisonTableScroll.js +9 -0
- package/mobile/lib/hooks/useComparisonTableScroll.js.map +1 -0
- package/mobile/lib/hooks/useCreditCalculatorData.d.ts +3 -0
- package/mobile/lib/hooks/useCreditCalculatorData.js +12 -0
- package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -0
- package/mobile/lib/hooks/useLink.d.ts +15 -0
- package/mobile/lib/hooks/useLink.js +20 -0
- package/mobile/lib/hooks/useLink.js.map +1 -0
- package/mobile/lib/index.d.ts +19 -0
- package/mobile/lib/index.js +13 -0
- package/mobile/lib/index.js.map +1 -0
- package/mobile/lib/model/BgColorVersion.d.ts +8 -0
- package/mobile/lib/model/BgColorVersion.js +2 -0
- package/mobile/lib/model/BgColorVersion.js.map +1 -0
- package/mobile/lib/model/BlockVersion.d.ts +5 -0
- package/mobile/lib/model/BlockVersion.js +2 -0
- package/mobile/lib/model/BlockVersion.js.map +1 -0
- package/mobile/lib/model/ButtonVersion.d.ts +6 -0
- package/mobile/lib/model/ButtonVersion.js +2 -0
- package/mobile/lib/model/ButtonVersion.js.map +1 -0
- package/mobile/lib/model/GalleryVersion.d.ts +1 -0
- package/mobile/lib/model/GalleryVersion.js +2 -0
- package/mobile/lib/model/GalleryVersion.js.map +1 -0
- package/mobile/lib/model/LinkProps.d.ts +22 -0
- package/mobile/lib/model/LinkProps.js +2 -0
- package/mobile/lib/model/LinkProps.js.map +1 -0
- package/mobile/lib/model/Picture.d.ts +28 -0
- package/mobile/lib/model/Picture.js +2 -0
- package/mobile/lib/model/Picture.js.map +1 -0
- package/mobile/lib/model/SitemapProps.d.ts +13 -0
- package/mobile/lib/model/SitemapProps.js +2 -0
- package/mobile/lib/model/SitemapProps.js.map +1 -0
- package/mobile/lib/model/SizeVersion.d.ts +8 -0
- package/mobile/lib/model/SizeVersion.js +2 -0
- package/mobile/lib/model/SizeVersion.js.map +1 -0
- package/mobile/lib/model/TableVersion.d.ts +1 -0
- package/mobile/lib/model/TableVersion.js +2 -0
- package/mobile/lib/model/TableVersion.js.map +1 -0
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +13 -0
- package/mobile/lib/services/sitemap/SitemapProps.js +2 -0
- package/mobile/lib/services/sitemap/SitemapProps.js.map +1 -0
- package/mobile/lib/services/sitemap/findActiveSubItem.d.ts +3 -0
- package/mobile/lib/services/sitemap/findActiveSubItem.js +10 -0
- package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -0
- package/mobile/lib/services/sitemap/isHrefActive.d.ts +4 -0
- package/mobile/lib/services/sitemap/isHrefActive.js +6 -0
- package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -0
- package/mobile/lib/services/sitemap/isSubItemActive.d.ts +3 -0
- package/mobile/lib/services/sitemap/isSubItemActive.js +3 -0
- package/mobile/lib/services/sitemap/isSubItemActive.js.map +1 -0
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -0
- package/mobile/lib/services/sitemap/isTopItemActive.js +4 -0
- package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -0
- package/mobile/lib/services/sitemap/mergeTopItems.d.ts +2 -0
- package/mobile/lib/services/sitemap/mergeTopItems.js +5 -0
- package/mobile/lib/services/sitemap/mergeTopItems.js.map +1 -0
- package/mobile/lib/services/sitemap/useSitemap.d.ts +3 -0
- package/mobile/lib/services/sitemap/useSitemap.js +13 -0
- package/mobile/lib/services/sitemap/useSitemap.js.map +1 -0
- package/mobile/lib/types.d.ts +51 -0
- package/mobile/lib/types.js +2 -0
- package/mobile/lib/types.js.map +1 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItem.d.ts +2 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js +22 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItemProps.d.ts +21 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js +2 -0
- package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js.map +1 -0
- package/mobile/lib/ui-kit/Breadcrumb.d.ts +6 -0
- package/mobile/lib/ui-kit/Breadcrumb.js +11 -0
- package/mobile/lib/ui-kit/Breadcrumb.js.map +1 -0
- package/mobile/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/mobile/lib/ui-kit/Button/ArrowButton.js +20 -0
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -0
- package/mobile/lib/ui-kit/Button/Button.d.ts +6 -0
- package/mobile/lib/ui-kit/Button/Button.js +24 -0
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -0
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +30 -0
- package/mobile/lib/ui-kit/Button/ButtonProps.js +2 -0
- package/mobile/lib/ui-kit/Button/ButtonProps.js.map +1 -0
- package/mobile/lib/ui-kit/Button/LikeButton.d.ts +6 -0
- package/mobile/lib/ui-kit/Button/LikeButton.js +13 -0
- package/mobile/lib/ui-kit/Button/LikeButton.js.map +1 -0
- package/mobile/lib/ui-kit/Checkbox/Checkbox.d.ts +2 -0
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +15 -0
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -0
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +6 -0
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.js +2 -0
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.js.map +1 -0
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.d.ts +3 -0
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +19 -0
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -0
- package/mobile/lib/ui-kit/Icon/Icon.d.ts +2 -0
- package/mobile/lib/ui-kit/Icon/Icon.js +11 -0
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -0
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +147 -0
- package/mobile/lib/ui-kit/Icon/IconProps.js +70 -0
- package/mobile/lib/ui-kit/Icon/IconProps.js.map +1 -0
- package/mobile/lib/ui-kit/Img.d.ts +7 -0
- package/mobile/lib/ui-kit/Img.js +15 -0
- package/mobile/lib/ui-kit/Img.js.map +1 -0
- package/mobile/lib/ui-kit/InputRange/InputRange.d.ts +2 -0
- package/mobile/lib/ui-kit/InputRange/InputRange.js +25 -0
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -0
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +10 -0
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.js +2 -0
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.js.map +1 -0
- package/mobile/lib/ui-kit/Logo/Logo.d.ts +7 -0
- package/mobile/lib/ui-kit/Logo/Logo.js +22 -0
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -0
- package/mobile/lib/ui-kit/SVG.d.ts +20 -0
- package/mobile/lib/ui-kit/SVG.js +6 -0
- package/mobile/lib/ui-kit/SVG.js.map +1 -0
- package/mobile/lib/ui-kit/SearchBar.d.ts +2 -0
- package/mobile/lib/ui-kit/SearchBar.js +12 -0
- package/mobile/lib/ui-kit/SearchBar.js.map +1 -0
- package/mobile/lib/ui-kit/Title/Title.d.ts +3 -0
- package/mobile/lib/ui-kit/Title/Title.js +16 -0
- package/mobile/lib/ui-kit/Title/Title.js.map +1 -0
- package/mobile/lib/ui-kit/Title/TitleProps.d.ts +4 -0
- package/mobile/lib/ui-kit/Title/TitleProps.js +2 -0
- package/mobile/lib/ui-kit/Title/TitleProps.js.map +1 -0
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +13 -0
- package/mobile/lib/ui-kit/TopItem/TopItem.js +22 -0
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -0
- package/mobile/lib/utils/addSpacesBetweenNumbers.d.ts +1 -0
- package/mobile/lib/utils/addSpacesBetweenNumbers.js +2 -0
- package/mobile/lib/utils/addSpacesBetweenNumbers.js.map +1 -0
- package/mobile/lib/utils/adjustHref.d.ts +4 -0
- package/mobile/lib/utils/adjustHref.js +18 -0
- package/mobile/lib/utils/adjustHref.js.map +1 -0
- package/mobile/lib/utils/clamp.d.ts +1 -0
- package/mobile/lib/utils/clamp.js +2 -0
- package/mobile/lib/utils/clamp.js.map +1 -0
- package/mobile/lib/utils/getColSpan.d.ts +1 -0
- package/mobile/lib/utils/getColSpan.js +6 -0
- package/mobile/lib/utils/getColSpan.js.map +1 -0
- package/mobile/lib/utils/getGeolocation.d.ts +1 -0
- package/mobile/lib/utils/getGeolocation.js +2 -0
- package/mobile/lib/utils/getGeolocation.js.map +1 -0
- package/mobile/lib/utils/joinList.d.ts +1 -0
- package/mobile/lib/utils/joinList.js +4 -0
- package/mobile/lib/utils/joinList.js.map +1 -0
- package/mobile/lib/utils/maxBy.d.ts +2 -0
- package/mobile/lib/utils/maxBy.js +3 -0
- package/mobile/lib/utils/maxBy.js.map +1 -0
- package/mobile/lib/utils/url.d.ts +3 -0
- package/mobile/lib/utils/url.js +13 -0
- package/mobile/lib/utils/url.js.map +1 -0
- package/mobile/lib/utils/withoutMobilePath.d.ts +2 -0
- package/mobile/lib/utils/withoutMobilePath.js +3 -0
- package/mobile/lib/utils/withoutMobilePath.js.map +1 -0
- package/mobile/src/ProjectSettings.ts +43 -0
- package/mobile/src/api/DaDataAPI.ts +34 -0
- package/mobile/src/api/LikeAPI.ts +145 -0
- package/mobile/src/common.css +141 -0
- package/mobile/src/components/Accordion/Accordion.example.json +50 -0
- package/mobile/src/components/Accordion/Accordion.tsx +22 -0
- package/mobile/src/components/Accordion/AccordionBlocks.tsx +11 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +79 -0
- package/mobile/src/components/Accordion/AccordionItem.tsx +72 -0
- package/mobile/src/components/BaseTile/BaseTile.tsx +108 -0
- package/mobile/src/components/BaseTile/BaseTileProps.ts +44 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +13 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +43 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +25 -0
- package/mobile/src/components/BlockContent.ts +43 -0
- package/mobile/src/components/Blocks.ts +31 -0
- package/mobile/src/components/ComparisonTable/ComparisonTable.example.json +84 -0
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +129 -0
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +64 -0
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +50 -0
- package/mobile/src/components/ComparisonTable/TableCarouselContainer.tsx +26 -0
- package/mobile/src/components/ComparisonTable/TableCell.tsx +43 -0
- package/mobile/src/components/ComparisonTable/TableRow.tsx +44 -0
- package/mobile/src/components/ComparisonTable/TableRowContainer.tsx +7 -0
- package/mobile/src/components/ComparisonTable/constants.ts +6 -0
- package/mobile/src/components/ContentPage/ContentPage.page.json +2061 -0
- package/mobile/src/components/ContentPage/ContentPage.tsx +125 -0
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +37 -0
- package/mobile/src/components/ContentPage/ContentPageHead.tsx +26 -0
- package/mobile/src/components/ContentPage/toMobilePage.ts +38 -0
- package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +154 -0
- package/mobile/src/components/CreditCalculator/CreditCalculatorContent.ts +21 -0
- package/mobile/src/components/CreditCalculator/constants.ts +8 -0
- package/mobile/src/components/CreditCalculator/getCalculatorParams.ts +16 -0
- package/mobile/src/components/CreditCalculator/getCreditRate.ts +18 -0
- package/mobile/src/components/CreditCalculator/getCreditTermYears.spec.ts +10 -0
- package/mobile/src/components/CreditCalculator/getCreditTermYears.ts +15 -0
- package/mobile/src/components/CreditCalculator/getMonthlyPayment.ts +32 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +80 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +7 -0
- package/mobile/src/components/Footer/Contacts.tsx +73 -0
- package/mobile/src/components/Footer/Footer.tsx +12 -0
- package/mobile/src/components/Footer/FooterContent.ts +42 -0
- package/mobile/src/components/Footer/FooterLink.ts +6 -0
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +46 -0
- package/mobile/src/components/Footer/Sitemap.tsx +59 -0
- package/mobile/src/components/Footer/SocialMedia.tsx +63 -0
- package/mobile/src/components/Footer/TextInformation.tsx +50 -0
- package/mobile/src/components/Gallery/Gallery.example.json +58 -0
- package/mobile/src/components/Gallery/Gallery.tsx +69 -0
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +53 -0
- package/mobile/src/components/Gallery/GalleryContainer.tsx +59 -0
- package/mobile/src/components/Gallery/GalleryContent.ts +34 -0
- package/mobile/src/components/Gallery/GalleryInner.tsx +57 -0
- package/mobile/src/components/Gallery/GalleryProps.ts +4 -0
- package/mobile/src/components/Gallery/constants.ts +22 -0
- package/mobile/src/components/Header/Header.tsx +72 -0
- package/mobile/src/components/Header/HeaderContent.ts +20 -0
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +69 -0
- package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +19 -0
- package/mobile/src/components/Headline/Headline.example.json +6 -0
- package/mobile/src/components/Headline/Headline.tsx +32 -0
- package/mobile/src/components/Headline/HeadlineContent.ts +10 -0
- package/mobile/src/components/LikeControl/LikeControl.tsx +23 -0
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +26 -0
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +82 -0
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +26 -0
- package/mobile/src/components/MiniGallery/MiniGallery.example.json +50 -0
- package/mobile/src/components/MiniGallery/MiniGallery.tsx +10 -0
- package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +6 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +20 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +32 -0
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +18 -0
- package/mobile/src/components/Navigation/Navigation.tsx +39 -0
- package/mobile/src/components/Navigation/NavigationContent.ts +11 -0
- package/mobile/src/components/Navigation/NavigationItem.tsx +17 -0
- package/mobile/src/components/PictureText/PictureText.example.json +20 -0
- package/mobile/src/components/PictureText/PictureText.tsx +47 -0
- package/mobile/src/components/PictureText/PictureTextContent.ts +10 -0
- package/mobile/src/components/Placeholder/Placeholder.tsx +30 -0
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +6 -0
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +17 -0
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +20 -0
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +28 -0
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +86 -0
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +21 -0
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +80 -0
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +31 -0
- package/mobile/src/components/ProductTile/ProductTile.example.json +30 -0
- package/mobile/src/components/ProductTile/ProductTile.tsx +44 -0
- package/mobile/src/components/ProductTile/ProductTileContent.ts +13 -0
- package/mobile/src/components/PromoTile/PromoTile.example.json +13 -0
- package/mobile/src/components/PromoTile/PromoTile.tsx +43 -0
- package/mobile/src/components/PromoTile/PromoTileContent.ts +9 -0
- package/mobile/src/components/StepsBlock/StepsBlock.example.json +19 -0
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +72 -0
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +32 -0
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +83 -0
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +74 -0
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +61 -0
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +65 -0
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +51 -0
- package/mobile/src/components/TariffsTable/constants.ts +4 -0
- package/mobile/src/components/TextBlock/TextBlock.example.json +13 -0
- package/mobile/src/components/TextBlock/TextBlock.tsx +65 -0
- package/mobile/src/components/TextBlock/TextBlockContent.ts +26 -0
- package/mobile/src/components/Tile/Tile.example.json +21 -0
- package/mobile/src/components/Tile/Tile.tsx +52 -0
- package/mobile/src/components/Tile/TileContent.ts +6 -0
- package/mobile/src/content-page-repository/ContentPageRepository.ts +63 -0
- package/mobile/src/content-page-repository/TransformationOptions.ts +4 -0
- package/mobile/src/content-page-repository/index.ts +2 -0
- package/mobile/src/content-page-repository/mapJSON.spec.ts +28 -0
- package/mobile/src/content-page-repository/mapJSON.ts +23 -0
- package/mobile/src/content-page-repository/transformContentPage.ts +33 -0
- package/mobile/src/content-page-repository/transformMarkdown.ts +10 -0
- package/mobile/src/content-page-repository/transformPicture.ts +61 -0
- package/mobile/src/hooks/useComparisonTableScroll.ts +21 -0
- package/mobile/src/hooks/useCreditCalculatorData.ts +23 -0
- package/mobile/src/hooks/useLink.ts +29 -0
- package/mobile/src/icons/ActualBalanceIcon.svg +187 -0
- package/mobile/src/icons/AppleIcon.svg +1 -0
- package/mobile/src/icons/Calendar2Icon.svg +1 -0
- package/mobile/src/icons/CalendarCircleIcon.svg +1 -0
- package/mobile/src/icons/CalendarIcon.svg +17 -0
- package/mobile/src/icons/CalendarTickIcon.svg +1 -0
- package/mobile/src/icons/CalendarWhiteIcon.svg +17 -0
- package/mobile/src/icons/CardIcon.svg +1 -0
- package/mobile/src/icons/CardPosIcon.svg +1 -0
- package/mobile/src/icons/CardTickIcon.svg +1 -0
- package/mobile/src/icons/CardWithGemIcon.svg +1 -0
- package/mobile/src/icons/ChartSquareIcon.svg +1 -0
- package/mobile/src/icons/ClockIcon.svg +209 -0
- package/mobile/src/icons/ComfortableCompIcon.svg +374 -0
- package/mobile/src/icons/CreditCardsIcon.svg +1 -0
- package/mobile/src/icons/DiscountShapeIcon.svg +1 -0
- package/mobile/src/icons/DocIcon.svg +5 -0
- package/mobile/src/icons/DocumentTextIcon.svg +6 -0
- package/mobile/src/icons/DollarIcon.svg +10 -0
- package/mobile/src/icons/EarthIcon.svg +1 -0
- package/mobile/src/icons/EmptyWalletChangeIcon.svg +1 -0
- package/mobile/src/icons/EmptyWalletIcon.svg +17 -0
- package/mobile/src/icons/EmptyWalletWhiteIcon.svg +16 -0
- package/mobile/src/icons/EuroIcon.svg +10 -0
- package/mobile/src/icons/GlassIcon.svg +1 -0
- package/mobile/src/icons/GlobalIcon.svg +1 -0
- package/mobile/src/icons/GridIcon.svg +4 -0
- package/mobile/src/icons/GridIconWhite.svg +4 -0
- package/mobile/src/icons/InterestGrowthIcon.svg +1 -0
- package/mobile/src/icons/InterestIcon.svg +1 -0
- package/mobile/src/icons/JCBIcon.svg +1 -0
- package/mobile/src/icons/LoupeIcon.svg +9 -0
- package/mobile/src/icons/MasterCardIcon.svg +1 -0
- package/mobile/src/icons/MinusIcon.svg +1 -0
- package/mobile/src/icons/MirIcon.svg +1 -0
- package/mobile/src/icons/MoneyIcon.svg +1 -0
- package/mobile/src/icons/MoneyInsuranceIcon.svg +1 -0
- package/mobile/src/icons/MonitorMobileIcon.svg +1 -0
- package/mobile/src/icons/NewDocIcon.svg +251 -0
- package/mobile/src/icons/OfficeIcon.svg +1 -0
- package/mobile/src/icons/OkIcon.svg +5 -0
- package/mobile/src/icons/PassSendIcon.svg +238 -0
- package/mobile/src/icons/PercentageRoundIcon.svg +1 -0
- package/mobile/src/icons/PercentageSquareIcon.svg +16 -0
- package/mobile/src/icons/PercentageSquareWhiteIcon.svg +16 -0
- package/mobile/src/icons/PersonalCardIcon.svg +1 -0
- package/mobile/src/icons/PlayMarketIcon.svg +1 -0
- package/mobile/src/icons/PlusIcon.svg +1 -0
- package/mobile/src/icons/Profile2UserIcon.svg +1 -0
- package/mobile/src/icons/ProfileIcon.svg +16 -0
- package/mobile/src/icons/RoundRubleIcon.svg +1 -0
- package/mobile/src/icons/SafeIcon.svg +1 -0
- package/mobile/src/icons/ShieldTickIcon.svg +1 -0
- package/mobile/src/icons/SignDocsIcon.svg +288 -0
- package/mobile/src/icons/SmallClockIcon.svg +1 -0
- package/mobile/src/icons/TelegramIcon.svg +5 -0
- package/mobile/src/icons/UnionPayIcon.svg +1 -0
- package/mobile/src/icons/UserTickIcon.svg +1 -0
- package/mobile/src/icons/VKIcon.svg +7 -0
- package/mobile/src/icons/VisaIcon.svg +1 -0
- package/mobile/src/icons/WalletAdd2Icon.svg +1 -0
- package/mobile/src/icons/WalletAddIcon.svg +1 -0
- package/mobile/src/icons/WalletIcon.svg +1 -0
- package/mobile/src/icons/WalletWithMoneyIcon.svg +1 -0
- package/mobile/src/index.ts +34 -0
- package/mobile/src/model/BgColorVersion.ts +8 -0
- package/mobile/src/model/BlockVersion.ts +5 -0
- package/mobile/src/model/ButtonVersion.ts +6 -0
- package/mobile/src/model/GalleryVersion.ts +1 -0
- package/mobile/src/model/LinkProps.ts +23 -0
- package/mobile/src/model/Picture.ts +30 -0
- package/mobile/src/model/SitemapProps.ts +15 -0
- package/mobile/src/model/SizeVersion.ts +8 -0
- package/mobile/src/model/TableVersion.ts +1 -0
- package/mobile/src/services/sitemap/SitemapProps.ts +15 -0
- package/mobile/src/services/sitemap/findActiveSubItem.ts +14 -0
- package/mobile/src/services/sitemap/isHrefActive.ts +13 -0
- package/mobile/src/services/sitemap/isSubItemActive.ts +8 -0
- package/mobile/src/services/sitemap/isTopItemActive.ts +9 -0
- package/mobile/src/services/sitemap/mergeTopItems.spec.ts +20 -0
- package/mobile/src/services/sitemap/mergeTopItems.ts +12 -0
- package/mobile/src/services/sitemap/useSitemap.ts +17 -0
- package/mobile/src/setup-fixture.ts +83 -0
- package/mobile/src/types.ts +61 -0
- package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +36 -0
- package/mobile/src/ui-kit/BlockItem/BlockItemProps.ts +23 -0
- package/mobile/src/ui-kit/Breadcrumb.tsx +26 -0
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +32 -0
- package/mobile/src/ui-kit/Button/Button.tsx +94 -0
- package/mobile/src/ui-kit/Button/ButtonProps.ts +33 -0
- package/mobile/src/ui-kit/Button/LikeButton.tsx +41 -0
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +40 -0
- package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +6 -0
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +39 -0
- package/mobile/src/ui-kit/Icon/Icon.tsx +30 -0
- package/mobile/src/ui-kit/Icon/IconProps.ts +149 -0
- package/mobile/src/ui-kit/Img.tsx +35 -0
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +65 -0
- package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +10 -0
- package/mobile/src/ui-kit/Logo/Logo.tsx +47 -0
- package/mobile/src/ui-kit/SVG.tsx +41 -0
- package/mobile/src/ui-kit/SearchBar.tsx +46 -0
- package/mobile/src/ui-kit/Title/Title.tsx +22 -0
- package/mobile/src/ui-kit/Title/TitleProps.ts +5 -0
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +64 -0
- package/mobile/src/utils/addSpacesBetweenNumbers.ts +2 -0
- package/mobile/src/utils/adjustHref.spec.ts +25 -0
- package/mobile/src/utils/adjustHref.ts +24 -0
- package/mobile/src/utils/clamp.ts +2 -0
- package/mobile/src/utils/getColSpan.ts +5 -0
- package/mobile/src/utils/getGeolocation.ts +4 -0
- package/mobile/src/utils/joinList.ts +7 -0
- package/mobile/src/utils/maxBy.spec.ts +11 -0
- package/mobile/src/utils/maxBy.ts +7 -0
- package/mobile/src/utils/url.spec.ts +17 -0
- package/mobile/src/utils/url.ts +15 -0
- package/mobile/src/utils/withoutMobilePath.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg id="icon" width="24" height="12" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
fill-rule="evenodd"
|
|
4
|
+
clip-rule="evenodd"
|
|
5
|
+
d="M23.45.813c.166-.468 0-.813-.796-.813H20.03c-.668 0-.976.297-1.143.626 0 0-1.335 2.74-3.226 4.519-.612.516-.89.68-1.224.68-.167 0-.418-.164-.418-.633V.812c0-.562-.184-.812-.74-.812H9.15c-.417 0-.668.26-.668.508 0 .533.946.656 1.043 2.154v3.256c0 .714-.153.843-.487.843-.89 0-3.055-2.752-4.34-5.901C4.449.247 4.198 0 3.527 0H.9C.15 0 0 .297 0 .626c0 .584.89 3.488 4.145 7.33C6.315 10.577 9.37 12 12.153 12c1.669 0 1.875-.315 1.875-.86V9.158c0-.632.158-.758.687-.758.39 0 1.057.165 2.615 1.429C19.11 11.328 19.403 12 20.405 12h2.624c.75 0 1.127-.315.91-.94-.238-.62-1.087-1.52-2.215-2.59-.611-.608-1.53-1.264-1.808-1.592-.39-.421-.278-.609 0-.983 0 0 3.2-3.794 3.532-5.082h.002Z"
|
|
6
|
+
/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="icon" width="52" height="17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.37 16.407 21 .729h4.206l-2.632 15.678h-4.205ZM37.77 1.067C36.939.75 35.633.41 34 .41c-4.156 0-7.084 2.126-7.109 5.173-.023 2.253 2.09 3.51 3.686 4.26 1.638.768 2.188 1.258 2.18 1.944-.01 1.051-1.307 1.531-2.516 1.531-1.684 0-2.579-.238-3.96-.823l-.542-.249-.59 3.51c.982.437 2.799.816 4.685.836 4.422 0 7.293-2.102 7.325-5.356.016-1.784-1.105-3.14-3.532-4.26-1.47-.725-2.37-1.209-2.36-1.943 0-.652.762-1.349 2.408-1.349a7.655 7.655 0 0 1 3.149.601l.377.18.57-3.397ZM48.595.729h-3.25c-1.007 0-1.761.28-2.203 1.3l-6.248 14.367h4.418s.722-1.932.885-2.356l5.388.007c.126.549.511 2.35.511 2.35H52L48.595.728Zm-5.157 10.123c.348-.903 1.676-4.382 1.676-4.382-.025.041.345-.908.558-1.497l.284 1.352.974 4.527h-3.492ZM.054.73 0 1.055c1.663.409 3.148 1 4.448 1.737l3.733 13.589 4.45-.005L19.255.729h-4.456L10.68 11.42l-.439-2.172a7.126 7.126 0 0 0-.066-.202L8.744 2.053C8.489 1.06 7.75.764 6.837.729H.054Z" fill="#0E4595"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="icon" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.19 7.06C6.45 7.02 6.72 7 7 7h10c.26 0 .51.01.75.05C20.33 7.35 22 9.26 22 12v5c0 3-2 5-5 5H7.63c.31-.26.58-.58.79-.94.37-.6.58-1.31.58-2.06 0-2.21-1.79-4-4-4-1.2 0-2.27.53-3 1.36V12c0-.87.17-1.66.48-2.33" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M17.75 7.05C17.51 7.01 17.26 7 17 7H7c-.28 0-.55.02-.81.06.14-.28.34-.54.58-.78l3.25-3.26a3.525 3.525 0 0 1 4.96 0l1.75 1.77c.64.63.98 1.43 1.02 2.26Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 19c0 .75-.21 1.46-.58 2.06A3.97 3.97 0 0 1 5 23a3.97 3.97 0 0 1-3.42-1.94A3.92 3.92 0 0 1 1 19c0-2.21 1.79-4 4-4s4 1.79 4 4ZM6.49 18.98H3.51M5 17.52v2.99" stroke="#42AB44" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 12.5h-3c-1.1 0-2 .9-2 2s.9 2 2 2h3" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="icon" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 15.44h-5M12 13v5" stroke="#42AB44" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22H8.1c-.24 0-.48-.02-.71-.05-3.18-.21-4.88-1.91-5.09-5.09-.03-.23-.05-.47-.05-.71V14.2c0-2.01 1.22-3.74 2.96-4.49.6-.25 1.24-.39 1.92-.39h9.76c.49 0 .97.07 1.41.2 2 .6 3.46 2.47 3.46 4.67v1.95c0 .2-.01.4-.02.6-.19 3.5-2.14 5.26-5.84 5.26" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="m12.9 2.52-.03.07-2.9 6.73H7.12c-.68 0-1.33.14-1.92.39l1.75-4.18.04-.1.07-.16c.02-.06.04-.12.07-.17 1.31-3.03 2.79-3.72 5.77-2.58Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M18.29 9.52c-.45-.14-.93-.2-1.41-.2H9.97l2.9-6.73.03-.07c.15.05.29.12.44.18l2.21.93c1.23.51 2.09 1.04 2.61 1.68.1.12.18.23.25.36.09.14.16.28.2.43.04.09.07.18.09.26.27.84.11 1.87-.41 3.16ZM6.95 5.53 5.2 9.71a4.894 4.894 0 0 0-2.96 4.49v-2.93c0-2.84 2.02-5.21 4.71-5.74Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M21.76 11.27v2.93c0-2.2-1.46-4.07-3.46-4.67.52-1.3.67-2.32.42-3.17-.02-.09-.05-.18-.09-.26 1.86.96 3.13 2.93 3.13 5.17Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="icon" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.75 16.86v2.03c0 1.72-1.6 3.11-3.57 3.11-1.97 0-3.58-1.39-3.58-3.11v-2.03c0 1.72 1.6 2.94 3.58 2.94 1.97 0 3.57-1.23 3.57-2.94Z" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.75 14.11c0 .5-.14.96-.38 1.36-.59.97-1.8 1.58-3.2 1.58-1.4 0-2.61-.62-3.2-1.58-.24-.4-.38-.86-.38-1.36 0-.86.4-1.63 1.04-2.19.65-.57 1.54-.91 2.53-.91.99 0 1.88.35 2.53.91.66.55 1.06 1.33 1.06 2.19Z" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.75 14.11v2.75c0 1.72-1.6 2.94-3.57 2.94-1.97 0-3.58-1.23-3.58-2.94v-2.75C3.6 12.39 5.2 11 7.18 11c.99 0 1.88.35 2.53.91.64.56 1.04 1.34 1.04 2.2Z" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 10.97v2.06c0 .55-.44 1-1 1.02h-1.96c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6H21c.56.02 1 .47 1 1.02Z" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 3.5c.26 0 .51.01.75.05C19.33 3.85 21 5.76 21 8.5v1.45h-2.08c-.56 0-1.07.22-1.44.6-.42.41-.66 1-.6 1.63.09 1.08 1.08 1.87 2.16 1.87H21v1.45c0 3-2 5-5 5h-2.5M2 10.5v-2c0-2.72 1.64-4.62 4.19-4.94.26-.04.53-.06.81-.06h5" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="icon" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 12.063V11a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-1.063" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="m5 7 8.571-5L15 4.308M10 7l8-4 2 2.91" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.56 18H21a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-7a1 1 0 0 0-1 1v3" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round"/></svg>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { setup } from '@redneckz/uni-jsx';
|
|
2
|
+
export { DaDataAPI } from './api/DaDataAPI';
|
|
3
|
+
export { LikeAPI } from './api/LikeAPI';
|
|
4
|
+
export type { BlockContent } from './components/BlockContent';
|
|
5
|
+
export { Blocks } from './components/Blocks';
|
|
6
|
+
export { ContentPage } from './components/ContentPage/ContentPage';
|
|
7
|
+
export type { BlockDecorator } from './components/ContentPage/ContentPage';
|
|
8
|
+
export type {
|
|
9
|
+
AsyncDataHook,
|
|
10
|
+
ContentPageContext,
|
|
11
|
+
GeolocationHook,
|
|
12
|
+
HandlerDecorator,
|
|
13
|
+
LikeService,
|
|
14
|
+
Router,
|
|
15
|
+
Search,
|
|
16
|
+
} from './components/ContentPage/ContentPageContext';
|
|
17
|
+
export { ContentPageHead } from './components/ContentPage/ContentPageHead';
|
|
18
|
+
export { toMobilePage } from './components/ContentPage/toMobilePage';
|
|
19
|
+
export { Header } from './components/Header/Header';
|
|
20
|
+
export type { Img, ImgSource, Picture } from './model/Picture';
|
|
21
|
+
export { projectSettings } from './ProjectSettings';
|
|
22
|
+
export type { ProjectSettings } from './ProjectSettings';
|
|
23
|
+
export type { SitemapProps as SitemapContent } from './services/sitemap/SitemapProps';
|
|
24
|
+
export type {
|
|
25
|
+
BlockDef,
|
|
26
|
+
ContentPageDef,
|
|
27
|
+
ContentPageMeta,
|
|
28
|
+
Slot,
|
|
29
|
+
SlotsMap,
|
|
30
|
+
UniBlockProps,
|
|
31
|
+
} from './types';
|
|
32
|
+
export { Icon } from './ui-kit/Icon/Icon';
|
|
33
|
+
export { joinList } from './utils/joinList';
|
|
34
|
+
export * as url from './utils/url';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GalleryVersion = 'normal' | 'mini';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title Таргет (target)
|
|
3
|
+
* @enumNames [
|
|
4
|
+
* "",
|
|
5
|
+
* "self (текущее окно или фрейм)",
|
|
6
|
+
* "blank (новое окно)",
|
|
7
|
+
* "parent (фрейм-родитель)",
|
|
8
|
+
* "top (текущее окно)"
|
|
9
|
+
* ]
|
|
10
|
+
*/
|
|
11
|
+
export type Target = '' | '_self' | '_blank' | '_parent' | '_top';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @title Ссылка
|
|
15
|
+
* @required ["text", "href"]
|
|
16
|
+
*/
|
|
17
|
+
export interface LinkProps {
|
|
18
|
+
/** @title Текст */
|
|
19
|
+
text?: string;
|
|
20
|
+
/** @title URL (href) */
|
|
21
|
+
href?: string;
|
|
22
|
+
target?: Target;
|
|
23
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface Img {
|
|
2
|
+
/** @title Картинка */
|
|
3
|
+
src: string;
|
|
4
|
+
/** @title Альтернативный текст (alt) */
|
|
5
|
+
alt?: string;
|
|
6
|
+
/** @title Текст подсказки (title) */
|
|
7
|
+
title?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface ImgSource {
|
|
11
|
+
/** @title Картинка */
|
|
12
|
+
src: string;
|
|
13
|
+
/** @title Формат */
|
|
14
|
+
format?: 'jpeg' | 'jpg' | 'png' | 'gif' | 'webp' | 'heif' | 'avif';
|
|
15
|
+
/** @hidden */
|
|
16
|
+
options?: Record<string, any>;
|
|
17
|
+
/** @title Размер изображения */
|
|
18
|
+
size?: {
|
|
19
|
+
/** @title Ширина */
|
|
20
|
+
width?: number;
|
|
21
|
+
/** @title Высота */
|
|
22
|
+
height?: number;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** @title Изображение */
|
|
27
|
+
export interface Picture extends Img, ImgSource {
|
|
28
|
+
/** @title Другие форматы */
|
|
29
|
+
sources?: ImgSource[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LinkProps } from './LinkProps';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @title Меню
|
|
5
|
+
* @required ["text", "href"]
|
|
6
|
+
*/
|
|
7
|
+
export interface TopMenuItem extends LinkProps {
|
|
8
|
+
/** @title Ссылки */
|
|
9
|
+
items?: LinkProps[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface SitemapProps {
|
|
13
|
+
/** @title Дополнительное меню */
|
|
14
|
+
topItems?: TopMenuItem[];
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TableVersion = 'comparison' | 'tariff';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @title Ссылка
|
|
5
|
+
* @required ["text", "href"]
|
|
6
|
+
*/
|
|
7
|
+
export interface TopMenuItem extends LinkProps {
|
|
8
|
+
/** @hidden */
|
|
9
|
+
items?: LinkProps[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface SitemapProps {
|
|
13
|
+
/** @title Дополнительное меню */
|
|
14
|
+
topItems?: TopMenuItem[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Router } from '../../components/ContentPage/ContentPageContext';
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
3
|
+
import { maxBy } from '../../utils/maxBy';
|
|
4
|
+
import { isSubItemActive } from './isSubItemActive';
|
|
5
|
+
|
|
6
|
+
export const findActiveSubItem =
|
|
7
|
+
(router: Router) =>
|
|
8
|
+
<T extends LinkProps>(items: T[] = []): T | null => {
|
|
9
|
+
const possibleActiveSubItems = items?.filter(isSubItemActive(router));
|
|
10
|
+
const activeSubItem = possibleActiveSubItems?.length
|
|
11
|
+
? maxBy((_: T) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
12
|
+
: null;
|
|
13
|
+
return activeSubItem;
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isURL, withoutQuery } from '../../utils/url';
|
|
2
|
+
import { withoutMobilePath } from '../../utils/withoutMobilePath';
|
|
3
|
+
|
|
4
|
+
export const isHrefActive = (
|
|
5
|
+
href: string | undefined,
|
|
6
|
+
router: { pathname?: string; href?: string },
|
|
7
|
+
cmp: (href: string, baseHref: string) => boolean = (href, baseHref) => baseHref.startsWith(href),
|
|
8
|
+
) => {
|
|
9
|
+
return cmp(
|
|
10
|
+
withoutQuery(href),
|
|
11
|
+
withoutMobilePath(withoutQuery(isURL(href) ? router.href : router.pathname)),
|
|
12
|
+
);
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Router } from '../../components/ContentPage/ContentPageContext';
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
3
|
+
import { isHrefActive } from './isHrefActive';
|
|
4
|
+
|
|
5
|
+
export const isSubItemActive =
|
|
6
|
+
(router: Router) =>
|
|
7
|
+
(subItem: LinkProps): boolean =>
|
|
8
|
+
isHrefActive(subItem.href, router);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Router } from '../../components/ContentPage/ContentPageContext';
|
|
2
|
+
import { isHrefActive } from './isHrefActive';
|
|
3
|
+
import { isSubItemActive } from './isSubItemActive';
|
|
4
|
+
import { TopMenuItem } from './SitemapProps';
|
|
5
|
+
|
|
6
|
+
export const isTopItemActive =
|
|
7
|
+
(router: Router) =>
|
|
8
|
+
(topItem: TopMenuItem): boolean =>
|
|
9
|
+
topItem.items?.some(isSubItemActive(router)) || isHrefActive(topItem.href, router);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { mergeTopItems } from './mergeTopItems';
|
|
2
|
+
|
|
3
|
+
describe('mergeTopItems', () => {
|
|
4
|
+
it('should return original items if no extra items provided', () => {
|
|
5
|
+
const items = [{ href: '/' }];
|
|
6
|
+
expect(mergeTopItems(items)).toEqual(items);
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
it('should append extra items to original ones', () => {
|
|
10
|
+
const items = [{ href: '/' }];
|
|
11
|
+
const extraItems = [{ href: '/foo' }, { href: '/bar' }];
|
|
12
|
+
expect(mergeTopItems(items, extraItems)).toEqual(items.concat(extraItems));
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it('should replace original items with duplicating extra items (by href)', () => {
|
|
16
|
+
const items = [{ href: '/foo' }];
|
|
17
|
+
const extraItems = [{ href: '/foo', text: 'foo' }, { href: '/bar' }];
|
|
18
|
+
expect(mergeTopItems(items, extraItems)).toEqual(extraItems);
|
|
19
|
+
});
|
|
20
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
|
|
3
|
+
const cmp = (a?: LinkProps) => (b?: LinkProps) => a?.href === b?.href;
|
|
4
|
+
|
|
5
|
+
const substitute = <L extends LinkProps>(items?: L[], substitution?: L[]): L[] =>
|
|
6
|
+
(items || []).map((_) => substitution?.find(cmp(_)) || _);
|
|
7
|
+
|
|
8
|
+
const subtract = <L extends LinkProps>(minuend?: L[], subtrahend?: L[]): L[] =>
|
|
9
|
+
(minuend || []).filter((_) => !subtrahend?.find(cmp(_)));
|
|
10
|
+
|
|
11
|
+
export const mergeTopItems = <L extends LinkProps>(left?: L[], right?: L[]): L[] =>
|
|
12
|
+
substitute(left, right).concat(subtract(right, left));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AsyncDataHook } from '../../components/ContentPage/ContentPageContext';
|
|
2
|
+
import type { HeaderContent } from '../../components/Header/HeaderContent';
|
|
3
|
+
import { projectSettings } from '../../ProjectSettings';
|
|
4
|
+
|
|
5
|
+
export function useSitemap(useAsyncData: AsyncDataHook): HeaderContent {
|
|
6
|
+
const { data } = useAsyncData(sitemapURL(), fetchSitemap);
|
|
7
|
+
return data || {};
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async function fetchSitemap(): Promise<HeaderContent> {
|
|
11
|
+
const response = await fetch(sitemapURL());
|
|
12
|
+
return await response.json();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function sitemapURL() {
|
|
16
|
+
return `/wcms-resources/${projectSettings.SITEMAP || 'sitemap'}.json`;
|
|
17
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { setup } from '@redneckz/uni-jsx';
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
import { DaDataAPI } from './api/DaDataAPI';
|
|
6
|
+
import type { ContentPageContext } from './components/ContentPage/ContentPageContext';
|
|
7
|
+
|
|
8
|
+
setup(jsx, jsxs);
|
|
9
|
+
|
|
10
|
+
const TEST_ORIGIN = 'http://localhost:5001';
|
|
11
|
+
|
|
12
|
+
const DaData = DaDataAPI('https://10.80.4.9');
|
|
13
|
+
|
|
14
|
+
export const context: ContentPageContext = {
|
|
15
|
+
useState,
|
|
16
|
+
useRouter: () => ({
|
|
17
|
+
href: `${TEST_ORIGIN}/credits`,
|
|
18
|
+
pathname: '/credits',
|
|
19
|
+
query: {},
|
|
20
|
+
push: (url: string) => {
|
|
21
|
+
console.log(url);
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
useAsyncData: (key, fetcher) => {
|
|
25
|
+
const [data, setData] = useState();
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
fetcher().then((_) => {
|
|
28
|
+
setData(_);
|
|
29
|
+
});
|
|
30
|
+
}, [key, fetcher]);
|
|
31
|
+
return { data };
|
|
32
|
+
},
|
|
33
|
+
useGeolocation: (defaultLocation) => {
|
|
34
|
+
const [city, setCity] = useState(
|
|
35
|
+
globalThis.localStorage.getItem('location') || defaultLocation,
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
const getCity = () => {
|
|
39
|
+
DaData.getFetcherAddress().then((_) => {
|
|
40
|
+
const location = _ || defaultLocation;
|
|
41
|
+
globalThis.localStorage.setItem('location', location);
|
|
42
|
+
setCity(location);
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
return [city, getCity];
|
|
47
|
+
},
|
|
48
|
+
useLikeService: () => ({
|
|
49
|
+
likeCount: 0,
|
|
50
|
+
like: () => {
|
|
51
|
+
console.log('like');
|
|
52
|
+
},
|
|
53
|
+
dislike: () => {
|
|
54
|
+
console.log('dislike');
|
|
55
|
+
},
|
|
56
|
+
}),
|
|
57
|
+
handlerDecorator:
|
|
58
|
+
(handler, targetContent): any =>
|
|
59
|
+
(ev) => {
|
|
60
|
+
ev.preventDefault();
|
|
61
|
+
console.log(ev.target, ev, targetContent);
|
|
62
|
+
},
|
|
63
|
+
useSearch: () => {
|
|
64
|
+
const [term, setTerm] = useState('');
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
term,
|
|
68
|
+
setTerm: (text: string) => setTerm(text),
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export const mobileContext: ContentPageContext = {
|
|
74
|
+
...context,
|
|
75
|
+
useRouter: () => ({
|
|
76
|
+
href: `${TEST_ORIGIN}/mobile/credits`,
|
|
77
|
+
pathname: '/mobile/credits',
|
|
78
|
+
query: {},
|
|
79
|
+
push: (url: string) => {
|
|
80
|
+
console.log(url);
|
|
81
|
+
},
|
|
82
|
+
}),
|
|
83
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { BlockContent } from './components/BlockContent';
|
|
2
|
+
import type { ContentPageContext } from './components/ContentPage/ContentPageContext';
|
|
3
|
+
import type { BlockVersion } from './model/BlockVersion';
|
|
4
|
+
|
|
5
|
+
export type ColorPalette = 'pc' | 'bc' | 'eo' | 'eo2' | 'eo3' | 'eo4';
|
|
6
|
+
|
|
7
|
+
export interface BlockDef {
|
|
8
|
+
type: string;
|
|
9
|
+
style?: string[];
|
|
10
|
+
content?: BlockContent;
|
|
11
|
+
version?: BlockVersion;
|
|
12
|
+
blocks?: BlockDef[];
|
|
13
|
+
mobile?: Pick<BlockDef, 'content' | 'style'> & {
|
|
14
|
+
hidden?: boolean;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface Slot {
|
|
19
|
+
style?: string[];
|
|
20
|
+
blocks?: BlockDef[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface SlotsMap {
|
|
24
|
+
header?: Slot;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ContentPageMeta {
|
|
28
|
+
title: string;
|
|
29
|
+
slug: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
keywords?: string[];
|
|
32
|
+
robots?: string[];
|
|
33
|
+
og?: Record<string, string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface ContentPageDef extends ContentPageMeta {
|
|
37
|
+
style?: string[];
|
|
38
|
+
blocks?: BlockDef[]; //! for compatibility
|
|
39
|
+
slots?: SlotsMap;
|
|
40
|
+
likeControl?: boolean;
|
|
41
|
+
colorPalette?: ColorPalette;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface UniBlockProps {
|
|
45
|
+
className?: string;
|
|
46
|
+
context: ContentPageContext;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface DaDataResult {
|
|
50
|
+
suggestions?: DaDataSuggestion<DaDataAddress>[];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface DaDataSuggestion<T> {
|
|
54
|
+
value?: string;
|
|
55
|
+
unrestricted_value?: string;
|
|
56
|
+
data?: T;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface DaDataAddress {
|
|
60
|
+
city?: string | null;
|
|
61
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import { BlockItemProps, BlockItemVersion } from './BlockItemProps';
|
|
4
|
+
|
|
5
|
+
const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3';
|
|
6
|
+
|
|
7
|
+
const TEXT_STYLE_MAP: Record<BlockItemVersion, string> = {
|
|
8
|
+
primary: 'text-primary-text',
|
|
9
|
+
secondary: 'text-secondary-text',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const LIST_STYLE_MAP: Record<BlockItemVersion, string> = {
|
|
13
|
+
primary: 'bg-primary-main',
|
|
14
|
+
secondary: 'bg-secondary-text',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const BlockItem = JSX<BlockItemProps>(
|
|
18
|
+
({ className = '', isDotted = true, text, children, version = 'primary', white }) => {
|
|
19
|
+
return (
|
|
20
|
+
<div className={`font-sans inline-block flex items-baseline ${className}`} role="listitem">
|
|
21
|
+
{isDotted && <div className={getListStyle(version, white)} />}
|
|
22
|
+
<span className={white ? 'text-white' : TEXT_STYLE_MAP[version]}>{text || children}</span>
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
|
+
},
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
const getListStyle = (version: BlockVersion, white?: boolean) => {
|
|
29
|
+
const color = white ? 'bg-white' : LIST_STYLE_MAP[version];
|
|
30
|
+
const size =
|
|
31
|
+
version === 'primary'
|
|
32
|
+
? 'w-[8px] h-[8px] min-w-[8px] min-h-[8px] mt-2'
|
|
33
|
+
: 'w-[6px] h-[6px] min-w-[6px] min-h-[6px] mt-2.5';
|
|
34
|
+
|
|
35
|
+
return `${LIST_STYLE_CLASSES} ${color} ${size}`;
|
|
36
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title Версия списка
|
|
3
|
+
*/
|
|
4
|
+
export type BlockItemVersion = 'primary' | 'secondary';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @title Содержимое элемента блока
|
|
8
|
+
*/
|
|
9
|
+
export interface BlockItemContent {
|
|
10
|
+
/** @title Текст */
|
|
11
|
+
text?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @title Параметры элемента блока
|
|
16
|
+
*/
|
|
17
|
+
export interface BlockItemProps extends BlockItemContent {
|
|
18
|
+
className?: string;
|
|
19
|
+
version?: BlockItemVersion;
|
|
20
|
+
white?: boolean;
|
|
21
|
+
/** @title Маркер */
|
|
22
|
+
isDotted?: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { LinkProps } from '../model/LinkProps';
|
|
3
|
+
|
|
4
|
+
export interface BreadcrumbProps extends LinkProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
onClick?: (ev: MouseEvent) => any;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const Breadcrumb = JSX<BreadcrumbProps>(
|
|
10
|
+
({ text, href, target, onClick, className, children }) => {
|
|
11
|
+
if (href) {
|
|
12
|
+
return (
|
|
13
|
+
<a
|
|
14
|
+
className={`no-underline ${className || ''}`}
|
|
15
|
+
href={href}
|
|
16
|
+
target={target}
|
|
17
|
+
onClick={onClick}
|
|
18
|
+
>
|
|
19
|
+
<span className={`${className || ''}`}>{text || children}</span>
|
|
20
|
+
</a>
|
|
21
|
+
);
|
|
22
|
+
} else {
|
|
23
|
+
return <span className={`${className || ''}`}>{text || children}</span>;
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { Button } from './Button';
|
|
3
|
+
import { ButtonProps } from './ButtonProps';
|
|
4
|
+
import { SVG } from '../SVG';
|
|
5
|
+
|
|
6
|
+
const ARROW_PATHS = [
|
|
7
|
+
{
|
|
8
|
+
d: 'm9 12 4-4-4-4',
|
|
9
|
+
stroke: 'currentColor',
|
|
10
|
+
strokeWidth: '2',
|
|
11
|
+
strokeLinecap: 'round',
|
|
12
|
+
fill: 'none',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
d: 'M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z',
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
export const ArrowButton = JSX<ButtonProps>(({ className, disabled, ...rest }) => (
|
|
20
|
+
<Button
|
|
21
|
+
rounded
|
|
22
|
+
className={`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${
|
|
23
|
+
disabled
|
|
24
|
+
? 'bg-secondary-light text-secondary-text'
|
|
25
|
+
: 'bg-white text-primary-text hover:text-primary-main'
|
|
26
|
+
} ${className || ''}`}
|
|
27
|
+
disabled={disabled}
|
|
28
|
+
{...rest}
|
|
29
|
+
>
|
|
30
|
+
<SVG paths={ARROW_PATHS} viewBox="0 0 16 16" fill="none" width="16" height="16" />
|
|
31
|
+
</Button>
|
|
32
|
+
));
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
3
|
+
import type { ButtonProps, ButtonWithIconProps } from './ButtonProps';
|
|
4
|
+
|
|
5
|
+
const buttonStyleMap: Record<ButtonVersion, string> = {
|
|
6
|
+
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
7
|
+
secondary:
|
|
8
|
+
'text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active',
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const buttonDisabledStyleMap: Record<ButtonVersion, string> = {
|
|
12
|
+
primary: 'bg-secondary-dark text-secondary-text',
|
|
13
|
+
secondary: 'bg-secondary-light text-secondary-text',
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const styleButton = 'inline-block text-center font-sans select-none';
|
|
17
|
+
|
|
18
|
+
export interface ButtonCommonProps extends ButtonProps, ButtonWithIconProps {}
|
|
19
|
+
|
|
20
|
+
export type ButtonInner = Pick<ButtonCommonProps, 'text' | 'aboveText' | 'appendLeft' | 'rounded'>;
|
|
21
|
+
|
|
22
|
+
export const Button = JSX<ButtonCommonProps>(
|
|
23
|
+
({
|
|
24
|
+
className,
|
|
25
|
+
text,
|
|
26
|
+
aboveText,
|
|
27
|
+
appendLeft,
|
|
28
|
+
href,
|
|
29
|
+
target,
|
|
30
|
+
onClick,
|
|
31
|
+
children,
|
|
32
|
+
disabled,
|
|
33
|
+
rounded,
|
|
34
|
+
version = 'none',
|
|
35
|
+
ariaLabel,
|
|
36
|
+
...rest
|
|
37
|
+
}) => {
|
|
38
|
+
const buttonInner = children ?? (
|
|
39
|
+
<ButtonInner text={text} aboveText={aboveText} appendLeft={appendLeft} rounded={rounded} />
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
if (disabled) {
|
|
43
|
+
return (
|
|
44
|
+
<div
|
|
45
|
+
role="button"
|
|
46
|
+
aria-disabled="true"
|
|
47
|
+
aria-label={ariaLabel}
|
|
48
|
+
tabIndex="-1"
|
|
49
|
+
className={`${styleButton} ${buttonDisabledStyleMap[version] || ''} ${
|
|
50
|
+
rounded ? 'rounded-full' : 'rounded-md'
|
|
51
|
+
} ${className || ''}`}
|
|
52
|
+
>
|
|
53
|
+
{buttonInner}
|
|
54
|
+
</div>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return (
|
|
59
|
+
<a
|
|
60
|
+
className={`${styleButton} cursor-pointer no-underline ${buttonStyleMap[version] || ''} ${
|
|
61
|
+
rounded ? 'rounded-full' : 'rounded-md'
|
|
62
|
+
} ${className || ''}`}
|
|
63
|
+
href={href}
|
|
64
|
+
target={target}
|
|
65
|
+
onClick={onClick}
|
|
66
|
+
aria-label={ariaLabel}
|
|
67
|
+
role={!href ? 'button' : 'link'}
|
|
68
|
+
{...rest}
|
|
69
|
+
>
|
|
70
|
+
{buttonInner}
|
|
71
|
+
</a>
|
|
72
|
+
);
|
|
73
|
+
},
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
export const ButtonInner = JSX<ButtonInner>(({ text, aboveText, appendLeft, rounded }) => {
|
|
77
|
+
const withoutText = !text && !aboveText && Boolean(appendLeft);
|
|
78
|
+
|
|
79
|
+
const buttonInnerClasses = `flex items-center justify-center ${
|
|
80
|
+
withoutText ? 'h-12 w-12 min-h-12 min-w-12' : `px-8 gap-2 ${aboveText ? 'py-2' : 'py-[13px]'}`
|
|
81
|
+
} ${rounded ? 'rounded-full' : ''}`;
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<div className={buttonInnerClasses}>
|
|
85
|
+
{appendLeft ? appendLeft : null}
|
|
86
|
+
{!withoutText ? (
|
|
87
|
+
<div>
|
|
88
|
+
<div className="text-2xs text-left">{aboveText}</div>
|
|
89
|
+
<div className="text-sm font-medium text-left">{text}</div>
|
|
90
|
+
</div>
|
|
91
|
+
) : null}
|
|
92
|
+
</div>
|
|
93
|
+
);
|
|
94
|
+
});
|