@redneckz/wildless-cms-uni-blocks 0.2.73 → 0.2.76
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/bundle/blocks.schema.json +240 -151
- package/bundle/bundle.umd.js +95 -31
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/BaseTile/BaseTile.d.ts +5 -0
- package/dist/components/BaseTile/BaseTile.js +40 -0
- package/dist/components/BaseTile/BaseTile.js.map +1 -0
- package/dist/components/BaseTile/BaseTileContent.d.ts +13 -0
- package/dist/{BaseTileContent.js → components/BaseTile/BaseTileContent.js} +0 -0
- package/dist/components/BaseTile/BaseTileContent.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.js +12 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +10 -0
- package/dist/{BenefitsBlockContent.js → components/BenefitsBlock/BenefitsBlockContent.js} +0 -0
- package/dist/components/BenefitsBlock/BenefitsBlockContent.js.map +1 -0
- package/dist/components/BlockContent.d.ts +16 -0
- package/dist/{BlockContent.js → components/BlockContent.js} +0 -0
- package/dist/components/BlockContent.js.map +1 -0
- package/dist/components/Blocks.d.ts +18 -0
- package/dist/components/Blocks.js +37 -0
- package/dist/components/Blocks.js.map +1 -0
- package/dist/components/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/dist/components/ComparisonTable/ComparisonTable.js +34 -0
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -0
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +37 -0
- package/dist/components/ComparisonTable/ComparisonTableContent.js +2 -0
- package/dist/components/ComparisonTable/ComparisonTableContent.js.map +1 -0
- package/dist/components/ComparisonTable/HeaderCell.d.ts +10 -0
- package/dist/components/ComparisonTable/HeaderCell.js +11 -0
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -0
- package/dist/components/ComparisonTable/TableCarouselContainer.d.ts +4 -0
- package/dist/components/ComparisonTable/TableCarouselContainer.js +7 -0
- package/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -0
- package/dist/components/ComparisonTable/TableCell.d.ts +8 -0
- package/dist/components/ComparisonTable/TableCell.js +12 -0
- package/dist/components/ComparisonTable/TableCell.js.map +1 -0
- package/dist/components/ComparisonTable/TableRow.d.ts +10 -0
- package/dist/components/ComparisonTable/TableRow.js +10 -0
- package/dist/components/ComparisonTable/TableRow.js.map +1 -0
- package/dist/components/ComparisonTable/TableRowContainer.d.ts +4 -0
- package/dist/components/ComparisonTable/TableRowContainer.js +6 -0
- package/dist/components/ComparisonTable/TableRowContainer.js.map +1 -0
- package/dist/components/ComparisonTable/constants.d.ts +6 -0
- package/dist/components/ComparisonTable/constants.js +9 -0
- package/dist/components/ComparisonTable/constants.js.map +1 -0
- package/dist/components/ContentPage/ContentPage.d.ts +19 -0
- package/dist/components/ContentPage/ContentPage.js +29 -0
- package/dist/components/ContentPage/ContentPage.js.map +1 -0
- package/dist/{ContentPageContext.d.ts → components/ContentPage/ContentPageContext.d.ts} +0 -0
- package/dist/{ContentPageContext.js → components/ContentPage/ContentPageContext.js} +0 -0
- package/dist/components/ContentPage/ContentPageContext.js.map +1 -0
- package/dist/components/ContentPage/ContentPageHead.d.ts +6 -0
- package/dist/{ContentPageHead.js → components/ContentPage/ContentPageHead.js} +0 -0
- package/dist/components/ContentPage/ContentPageHead.js.map +1 -0
- package/dist/components/ContentPage/toMobilePage.d.ts +2 -0
- package/dist/{toMobilePage.js → components/ContentPage/toMobilePage.js} +0 -0
- package/dist/components/ContentPage/toMobilePage.js.map +1 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +35 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -0
- package/dist/{ExchangeRateTileContent.d.ts → components/ExchangeRateTile/ExchangeRateTileContent.d.ts} +0 -0
- package/dist/{ExchangeRateTileContent.js → components/ExchangeRateTile/ExchangeRateTileContent.js} +0 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +1 -0
- package/dist/components/Footer/Contacts.d.ts +7 -0
- package/dist/components/Footer/Contacts.js +31 -0
- package/dist/components/Footer/Contacts.js.map +1 -0
- package/dist/components/Footer/Footer.d.ts +5 -0
- package/dist/components/Footer/Footer.js +17 -0
- package/dist/components/Footer/Footer.js.map +1 -0
- package/dist/components/Footer/Footer.mobile.d.ts +5 -0
- package/dist/{Footer → components/Footer}/Footer.mobile.js +0 -0
- package/dist/components/Footer/Footer.mobile.js.map +1 -0
- package/dist/components/Footer/FooterContent.d.ts +13 -0
- package/dist/{Footer → components/Footer}/FooterContent.js +0 -0
- package/dist/components/Footer/FooterContent.js.map +1 -0
- package/dist/components/Footer/FooterLink.d.ts +5 -0
- package/dist/{Footer → components/Footer}/FooterLink.js +0 -0
- package/dist/components/Footer/FooterLink.js.map +1 -0
- package/dist/{Footer → components/Footer}/HorizontalNavigation.d.ts +0 -0
- package/dist/components/Footer/HorizontalNavigation.js +12 -0
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -0
- package/dist/components/Footer/Sitemap.d.ts +6 -0
- package/dist/components/Footer/Sitemap.js +22 -0
- package/dist/components/Footer/Sitemap.js.map +1 -0
- package/dist/components/Footer/SocialMedia.d.ts +6 -0
- package/dist/components/Footer/SocialMedia.js +24 -0
- package/dist/components/Footer/SocialMedia.js.map +1 -0
- package/dist/{Footer → components/Footer}/TextInformation.d.ts +0 -0
- package/dist/components/Footer/TextInformation.js +12 -0
- package/dist/components/Footer/TextInformation.js.map +1 -0
- package/dist/components/Gallery/Gallery.d.ts +5 -0
- package/dist/{Gallery.js → components/Gallery/Gallery.js} +0 -0
- package/dist/components/Gallery/Gallery.js.map +1 -0
- package/dist/{Gallery.mobile.d.ts → components/Gallery/Gallery.mobile.d.ts} +0 -0
- package/dist/components/Gallery/Gallery.mobile.js +18 -0
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -0
- package/dist/components/Gallery/GalleryContent.d.ts +13 -0
- package/dist/{GalleryContent.js → components/Gallery/GalleryContent.js} +0 -0
- package/dist/components/Gallery/GalleryContent.js.map +1 -0
- package/dist/components/Gallery/GalleryInner.d.ts +7 -0
- package/dist/components/Gallery/GalleryInner.js +46 -0
- package/dist/components/Gallery/GalleryInner.js.map +1 -0
- package/dist/components/Header/Header.d.ts +5 -0
- package/dist/components/Header/Header.js +26 -0
- package/dist/components/Header/Header.js.map +1 -0
- package/dist/components/Header/HeaderContent.d.ts +4 -0
- package/dist/{Header → components/Header}/HeaderContent.js +0 -0
- package/dist/components/Header/HeaderContent.js.map +1 -0
- package/dist/components/Header/HeaderSecondaryMenu.d.ts +9 -0
- package/dist/components/Header/HeaderSecondaryMenu.js +12 -0
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -0
- package/dist/{Header → components/Header}/HeaderSecondaryMenuButton.d.ts +0 -0
- package/dist/{Header → components/Header}/HeaderSecondaryMenuButton.js +0 -0
- package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -0
- package/dist/components/Header/isSubItemActive.d.ts +3 -0
- package/dist/components/Header/isSubItemActive.js +8 -0
- package/dist/components/Header/isSubItemActive.js.map +1 -0
- package/dist/components/Header/isTopItemActive.d.ts +3 -0
- package/dist/components/Header/isTopItemActive.js +8 -0
- package/dist/components/Header/isTopItemActive.js.map +1 -0
- package/dist/components/LikeControl/LikeControl.d.ts +2 -0
- package/dist/components/LikeControl/LikeControl.js +10 -0
- package/dist/components/LikeControl/LikeControl.js.map +1 -0
- package/dist/components/MiniGallery/MiniGallery.d.ts +5 -0
- package/dist/components/MiniGallery/MiniGallery.js +7 -0
- package/dist/components/MiniGallery/MiniGallery.js.map +1 -0
- package/dist/components/MobileAppTile/MobileAppTile.d.ts +5 -0
- package/dist/components/MobileAppTile/MobileAppTile.js +9 -0
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -0
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +9 -0
- package/dist/{MobileAppTileContent.js → components/MobileAppTile/MobileAppTileContent.js} +0 -0
- package/dist/components/MobileAppTile/MobileAppTileContent.js.map +1 -0
- package/dist/components/MobileBlocks.d.ts +12 -0
- package/dist/components/MobileBlocks.js +28 -0
- package/dist/components/MobileBlocks.js.map +1 -0
- package/dist/components/Placeholder/Placeholder.d.ts +6 -0
- package/dist/components/Placeholder/Placeholder.js +15 -0
- package/dist/components/Placeholder/Placeholder.js.map +1 -0
- package/dist/{PlaceholderContent.d.ts → components/Placeholder/PlaceholderContent.d.ts} +0 -0
- package/dist/{PlaceholderContent.js → components/Placeholder/PlaceholderContent.js} +0 -0
- package/dist/components/Placeholder/PlaceholderContent.js.map +1 -0
- package/dist/components/ProductBlock/ProductBlock.d.ts +5 -0
- package/dist/components/ProductBlock/ProductBlock.js +15 -0
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -0
- package/dist/components/ProductBlock/ProductBlock.mobile.d.ts +5 -0
- package/dist/{ProductBlock.mobile.js → components/ProductBlock/ProductBlock.mobile.js} +0 -0
- package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -0
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +9 -0
- package/dist/{ProductBlockContent.js → components/ProductBlock/ProductBlockContent.js} +0 -0
- package/dist/components/ProductBlock/ProductBlockContent.js.map +1 -0
- package/dist/components/ProductBlock/ProductBlockInner.d.ts +5 -0
- package/dist/components/ProductBlock/ProductBlockInner.js +17 -0
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -0
- package/dist/components/ProductGallery/ProductGallery.d.ts +5 -0
- package/dist/components/ProductGallery/ProductGallery.js +27 -0
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -0
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +14 -0
- package/dist/{ProductGalleryContent.js → components/ProductGallery/ProductGalleryContent.js} +0 -0
- package/dist/components/ProductGallery/ProductGalleryContent.js.map +1 -0
- package/dist/components/ProductTile/ProductTile.d.ts +5 -0
- package/dist/components/ProductTile/ProductTile.js +20 -0
- package/dist/components/ProductTile/ProductTile.js.map +1 -0
- package/dist/components/ProductTile/ProductTileContent.d.ts +5 -0
- package/dist/{ProductTileContent.js → components/ProductTile/ProductTileContent.js} +0 -0
- package/dist/components/ProductTile/ProductTileContent.js.map +1 -0
- package/dist/components/PromoTile/PromoTile.d.ts +5 -0
- package/dist/components/PromoTile/PromoTile.js +18 -0
- package/dist/components/PromoTile/PromoTile.js.map +1 -0
- package/dist/components/PromoTile/PromoTileContent.d.ts +4 -0
- package/dist/{PromoTileContent.js → components/PromoTile/PromoTileContent.js} +0 -0
- package/dist/components/PromoTile/PromoTileContent.js.map +1 -0
- package/dist/components/StepsBlock/StepsBlock.d.ts +5 -0
- package/dist/components/StepsBlock/StepsBlock.js +17 -0
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -0
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +10 -0
- package/dist/{StepsBlockContent.js → components/StepsBlock/StepsBlockContent.js} +0 -0
- package/dist/components/StepsBlock/StepsBlockContent.js.map +1 -0
- package/dist/components/TextBlock/TextBlock.d.ts +5 -0
- package/dist/components/TextBlock/TextBlock.js +36 -0
- package/dist/components/TextBlock/TextBlock.js.map +1 -0
- package/dist/components/TextBlock/TextBlockContent.d.ts +10 -0
- package/dist/{TextBlockContent.js → components/TextBlock/TextBlockContent.js} +0 -0
- package/dist/components/TextBlock/TextBlockContent.js.map +1 -0
- package/dist/components/Tile/Tile.d.ts +5 -0
- package/dist/components/Tile/Tile.js +27 -0
- package/dist/components/Tile/Tile.js.map +1 -0
- package/dist/components/Tile/TileContent.d.ts +2 -0
- package/dist/{TileContent.js → components/Tile/TileContent.js} +0 -0
- package/dist/components/Tile/TileContent.js.map +1 -0
- package/dist/content-page-repository/ContentPageRepository.js +1 -1
- package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/dist/hooks/useLink.d.ts +15 -0
- package/dist/hooks/useLink.js +22 -0
- package/dist/hooks/useLink.js.map +1 -0
- package/dist/hooks/useSitemap.d.ts +3 -0
- package/dist/hooks/useSitemap.js +16 -0
- package/dist/hooks/useSitemap.js.map +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/ui-kit/{BlockItem.d.ts → BlockItem/BlockItem.d.ts} +0 -0
- package/dist/ui-kit/{BlockItem.js → BlockItem/BlockItem.js} +0 -0
- package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -0
- package/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/dist/ui-kit/Button/ArrowButton.js +22 -0
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -0
- package/dist/ui-kit/Button/Button.d.ts +3 -0
- package/dist/ui-kit/Button/Button.js +26 -0
- package/dist/ui-kit/Button/Button.js.map +1 -0
- package/dist/ui-kit/Button/ButtonProps.d.ts +21 -0
- package/dist/ui-kit/{ButtonProps.js → Button/ButtonProps.js} +0 -0
- package/dist/ui-kit/Button/ButtonProps.js.map +1 -0
- package/dist/ui-kit/{LikeButton.d.ts → Button/LikeButton.d.ts} +0 -0
- package/dist/ui-kit/{LikeButton.js → Button/LikeButton.js} +0 -0
- package/dist/ui-kit/Button/LikeButton.js.map +1 -0
- package/dist/ui-kit/HeaderItem/HeaderItem.d.ts +3 -0
- package/dist/ui-kit/{HeaderItem.js → HeaderItem/HeaderItem.js} +0 -0
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -0
- package/dist/ui-kit/{Icon.d.ts → Icon/Icon.d.ts} +0 -0
- package/dist/ui-kit/Icon/Icon.js +7 -0
- package/dist/ui-kit/Icon/Icon.js.map +1 -0
- package/dist/ui-kit/Icon/IconProps.d.ts +32 -0
- package/dist/ui-kit/Icon/IconProps.js +26 -0
- package/dist/ui-kit/Icon/IconProps.js.map +1 -0
- package/dist/ui-kit/Img.d.ts +7 -0
- package/dist/{Img.js → ui-kit/Img.js} +0 -0
- package/dist/ui-kit/Img.js.map +1 -0
- package/dist/ui-kit/{Logo.d.ts → Logo/Logo.d.ts} +0 -0
- package/dist/ui-kit/Logo/Logo.js +16 -0
- package/dist/ui-kit/Logo/Logo.js.map +1 -0
- package/dist/ui-kit/SVG.d.ts +2 -0
- package/dist/ui-kit/SVG.js +2 -2
- package/dist/ui-kit/SVG.js.map +1 -1
- package/dist/ui-kit/SearchBar.js +1 -1
- package/dist/ui-kit/SearchBar.js.map +1 -1
- package/dist/ui-kit/{Title.d.ts → Title/Title.d.ts} +0 -0
- package/dist/ui-kit/{Title.js → Title/Title.js} +0 -0
- package/dist/ui-kit/Title/Title.js.map +1 -0
- package/dist/ui-kit/{TitleProps.d.ts → Title/TitleProps.d.ts} +0 -0
- package/dist/ui-kit/{TitleProps.js → Title/TitleProps.js} +0 -0
- package/dist/ui-kit/Title/TitleProps.js.map +1 -0
- package/dist/ui-kit/TopItem/TopItem.d.ts +11 -0
- package/dist/ui-kit/{TopItem.js → TopItem/TopItem.js} +0 -0
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/BaseTile/BaseTile.d.ts +5 -0
- package/lib/components/BaseTile/BaseTile.js +38 -0
- package/lib/components/BaseTile/BaseTile.js.map +1 -0
- package/lib/components/BaseTile/BaseTileContent.d.ts +13 -0
- package/lib/{BaseTileContent.js → components/BaseTile/BaseTileContent.js} +0 -0
- package/lib/components/BaseTile/BaseTileContent.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +10 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +10 -0
- package/lib/{BenefitsBlockContent.js → components/BenefitsBlock/BenefitsBlockContent.js} +0 -0
- package/lib/components/BenefitsBlock/BenefitsBlockContent.js.map +1 -0
- package/lib/components/BlockContent.d.ts +16 -0
- package/lib/{BlockContent.js → components/BlockContent.js} +0 -0
- package/lib/components/BlockContent.js.map +1 -0
- package/lib/components/Blocks.d.ts +18 -0
- package/lib/components/Blocks.js +35 -0
- package/lib/components/Blocks.js.map +1 -0
- package/lib/components/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/lib/components/ComparisonTable/ComparisonTable.js +32 -0
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -0
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +37 -0
- package/lib/components/ComparisonTable/ComparisonTableContent.js +2 -0
- package/lib/components/ComparisonTable/ComparisonTableContent.js.map +1 -0
- package/lib/components/ComparisonTable/HeaderCell.d.ts +10 -0
- package/lib/components/ComparisonTable/HeaderCell.js +9 -0
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -0
- package/lib/components/ComparisonTable/TableCarouselContainer.d.ts +4 -0
- package/lib/components/ComparisonTable/TableCarouselContainer.js +5 -0
- package/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -0
- package/lib/components/ComparisonTable/TableCell.d.ts +8 -0
- package/lib/components/ComparisonTable/TableCell.js +10 -0
- package/lib/components/ComparisonTable/TableCell.js.map +1 -0
- package/lib/components/ComparisonTable/TableRow.d.ts +10 -0
- package/lib/components/ComparisonTable/TableRow.js +8 -0
- package/lib/components/ComparisonTable/TableRow.js.map +1 -0
- package/lib/components/ComparisonTable/TableRowContainer.d.ts +4 -0
- package/lib/components/ComparisonTable/TableRowContainer.js +4 -0
- package/lib/components/ComparisonTable/TableRowContainer.js.map +1 -0
- package/lib/components/ComparisonTable/constants.d.ts +6 -0
- package/lib/components/ComparisonTable/constants.js +7 -0
- package/lib/components/ComparisonTable/constants.js.map +1 -0
- package/lib/components/ContentPage/ContentPage.d.ts +19 -0
- package/lib/components/ContentPage/ContentPage.js +27 -0
- package/lib/components/ContentPage/ContentPage.js.map +1 -0
- package/lib/{ContentPageContext.d.ts → components/ContentPage/ContentPageContext.d.ts} +0 -0
- package/lib/{ContentPageContext.js → components/ContentPage/ContentPageContext.js} +0 -0
- package/lib/components/ContentPage/ContentPageContext.js.map +1 -0
- package/lib/components/ContentPage/ContentPageHead.d.ts +6 -0
- package/lib/{ContentPageHead.js → components/ContentPage/ContentPageHead.js} +0 -0
- package/lib/components/ContentPage/ContentPageHead.js.map +1 -0
- package/lib/components/ContentPage/toMobilePage.d.ts +2 -0
- package/lib/{toMobilePage.js → components/ContentPage/toMobilePage.js} +0 -0
- package/lib/components/ContentPage/toMobilePage.js.map +1 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +33 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -0
- package/lib/{ExchangeRateTileContent.d.ts → components/ExchangeRateTile/ExchangeRateTileContent.d.ts} +0 -0
- package/lib/{ExchangeRateTileContent.js → components/ExchangeRateTile/ExchangeRateTileContent.js} +0 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +1 -0
- package/lib/components/Footer/Contacts.d.ts +7 -0
- package/lib/components/Footer/Contacts.js +29 -0
- package/lib/components/Footer/Contacts.js.map +1 -0
- package/lib/components/Footer/Footer.d.ts +5 -0
- package/lib/components/Footer/Footer.js +15 -0
- package/lib/components/Footer/Footer.js.map +1 -0
- package/lib/components/Footer/Footer.mobile.d.ts +5 -0
- package/lib/{Footer → components/Footer}/Footer.mobile.js +0 -0
- package/lib/components/Footer/Footer.mobile.js.map +1 -0
- package/lib/components/Footer/FooterContent.d.ts +13 -0
- package/lib/{Footer → components/Footer}/FooterContent.js +0 -0
- package/lib/components/Footer/FooterContent.js.map +1 -0
- package/lib/components/Footer/FooterLink.d.ts +5 -0
- package/lib/{Footer → components/Footer}/FooterLink.js +0 -0
- package/lib/components/Footer/FooterLink.js.map +1 -0
- package/lib/{Footer → components/Footer}/HorizontalNavigation.d.ts +0 -0
- package/lib/components/Footer/HorizontalNavigation.js +10 -0
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -0
- package/lib/components/Footer/Sitemap.d.ts +6 -0
- package/lib/components/Footer/Sitemap.js +20 -0
- package/lib/components/Footer/Sitemap.js.map +1 -0
- package/lib/components/Footer/SocialMedia.d.ts +6 -0
- package/lib/components/Footer/SocialMedia.js +22 -0
- package/lib/components/Footer/SocialMedia.js.map +1 -0
- package/lib/{Footer → components/Footer}/TextInformation.d.ts +0 -0
- package/lib/components/Footer/TextInformation.js +10 -0
- package/lib/components/Footer/TextInformation.js.map +1 -0
- package/lib/components/Gallery/Gallery.d.ts +5 -0
- package/lib/{Gallery.js → components/Gallery/Gallery.js} +0 -0
- package/lib/components/Gallery/Gallery.js.map +1 -0
- package/lib/{Gallery.mobile.d.ts → components/Gallery/Gallery.mobile.d.ts} +0 -0
- package/lib/components/Gallery/Gallery.mobile.js +16 -0
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -0
- package/lib/components/Gallery/GalleryContent.d.ts +13 -0
- package/lib/{GalleryContent.js → components/Gallery/GalleryContent.js} +0 -0
- package/lib/components/Gallery/GalleryContent.js.map +1 -0
- package/lib/components/Gallery/GalleryInner.d.ts +7 -0
- package/lib/components/Gallery/GalleryInner.js +44 -0
- package/lib/components/Gallery/GalleryInner.js.map +1 -0
- package/lib/components/Header/Header.d.ts +5 -0
- package/lib/components/Header/Header.js +24 -0
- package/lib/components/Header/Header.js.map +1 -0
- package/lib/components/Header/HeaderContent.d.ts +4 -0
- package/lib/{Header → components/Header}/HeaderContent.js +0 -0
- package/lib/components/Header/HeaderContent.js.map +1 -0
- package/lib/components/Header/HeaderSecondaryMenu.d.ts +9 -0
- package/lib/components/Header/HeaderSecondaryMenu.js +10 -0
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -0
- package/lib/{Header → components/Header}/HeaderSecondaryMenuButton.d.ts +0 -0
- package/lib/{Header → components/Header}/HeaderSecondaryMenuButton.js +0 -0
- package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -0
- package/lib/components/Header/isSubItemActive.d.ts +3 -0
- package/lib/components/Header/isSubItemActive.js +5 -0
- package/lib/components/Header/isSubItemActive.js.map +1 -0
- package/lib/components/Header/isTopItemActive.d.ts +3 -0
- package/lib/components/Header/isTopItemActive.js +5 -0
- package/lib/components/Header/isTopItemActive.js.map +1 -0
- package/lib/components/LikeControl/LikeControl.d.ts +2 -0
- package/lib/components/LikeControl/LikeControl.js +8 -0
- package/lib/components/LikeControl/LikeControl.js.map +1 -0
- package/lib/components/MiniGallery/MiniGallery.d.ts +5 -0
- package/lib/components/MiniGallery/MiniGallery.js +5 -0
- package/lib/components/MiniGallery/MiniGallery.js.map +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.d.ts +5 -0
- package/lib/components/MobileAppTile/MobileAppTile.js +7 -0
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -0
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +9 -0
- package/lib/{MobileAppTileContent.js → components/MobileAppTile/MobileAppTileContent.js} +0 -0
- package/lib/components/MobileAppTile/MobileAppTileContent.js.map +1 -0
- package/lib/components/MobileBlocks.d.ts +12 -0
- package/lib/components/MobileBlocks.js +26 -0
- package/lib/components/MobileBlocks.js.map +1 -0
- package/lib/components/Placeholder/Placeholder.d.ts +6 -0
- package/lib/components/Placeholder/Placeholder.js +13 -0
- package/lib/components/Placeholder/Placeholder.js.map +1 -0
- package/lib/{PlaceholderContent.d.ts → components/Placeholder/PlaceholderContent.d.ts} +0 -0
- package/lib/{PlaceholderContent.js → components/Placeholder/PlaceholderContent.js} +0 -0
- package/lib/components/Placeholder/PlaceholderContent.js.map +1 -0
- package/lib/components/ProductBlock/ProductBlock.d.ts +5 -0
- package/lib/components/ProductBlock/ProductBlock.js +13 -0
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -0
- package/lib/components/ProductBlock/ProductBlock.mobile.d.ts +5 -0
- package/lib/{ProductBlock.mobile.js → components/ProductBlock/ProductBlock.mobile.js} +0 -0
- package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -0
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +9 -0
- package/lib/{ProductBlockContent.js → components/ProductBlock/ProductBlockContent.js} +0 -0
- package/lib/components/ProductBlock/ProductBlockContent.js.map +1 -0
- package/lib/components/ProductBlock/ProductBlockInner.d.ts +5 -0
- package/lib/components/ProductBlock/ProductBlockInner.js +15 -0
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -0
- package/lib/components/ProductGallery/ProductGallery.d.ts +5 -0
- package/lib/components/ProductGallery/ProductGallery.js +25 -0
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -0
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +14 -0
- package/lib/{ProductGalleryContent.js → components/ProductGallery/ProductGalleryContent.js} +0 -0
- package/lib/components/ProductGallery/ProductGalleryContent.js.map +1 -0
- package/lib/components/ProductTile/ProductTile.d.ts +5 -0
- package/lib/components/ProductTile/ProductTile.js +18 -0
- package/lib/components/ProductTile/ProductTile.js.map +1 -0
- package/lib/components/ProductTile/ProductTileContent.d.ts +5 -0
- package/lib/{ProductTileContent.js → components/ProductTile/ProductTileContent.js} +0 -0
- package/lib/components/ProductTile/ProductTileContent.js.map +1 -0
- package/lib/components/PromoTile/PromoTile.d.ts +5 -0
- package/lib/components/PromoTile/PromoTile.js +16 -0
- package/lib/components/PromoTile/PromoTile.js.map +1 -0
- package/lib/components/PromoTile/PromoTileContent.d.ts +4 -0
- package/lib/{PromoTileContent.js → components/PromoTile/PromoTileContent.js} +0 -0
- package/lib/components/PromoTile/PromoTileContent.js.map +1 -0
- package/lib/components/StepsBlock/StepsBlock.d.ts +5 -0
- package/lib/components/StepsBlock/StepsBlock.js +15 -0
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -0
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +10 -0
- package/lib/{StepsBlockContent.js → components/StepsBlock/StepsBlockContent.js} +0 -0
- package/lib/components/StepsBlock/StepsBlockContent.js.map +1 -0
- package/lib/components/TextBlock/TextBlock.d.ts +5 -0
- package/lib/components/TextBlock/TextBlock.js +34 -0
- package/lib/components/TextBlock/TextBlock.js.map +1 -0
- package/lib/components/TextBlock/TextBlockContent.d.ts +10 -0
- package/lib/{TextBlockContent.js → components/TextBlock/TextBlockContent.js} +0 -0
- package/lib/components/TextBlock/TextBlockContent.js.map +1 -0
- package/lib/components/Tile/Tile.d.ts +5 -0
- package/lib/components/Tile/Tile.js +25 -0
- package/lib/components/Tile/Tile.js.map +1 -0
- package/lib/components/Tile/TileContent.d.ts +2 -0
- package/lib/{TileContent.js → components/Tile/TileContent.js} +0 -0
- package/lib/components/Tile/TileContent.js.map +1 -0
- package/lib/content-page-repository/ContentPageRepository.js +1 -1
- package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/lib/hooks/useLink.d.ts +15 -0
- package/lib/hooks/useLink.js +19 -0
- package/lib/hooks/useLink.js.map +1 -0
- package/lib/hooks/useSitemap.d.ts +3 -0
- package/lib/hooks/useSitemap.js +13 -0
- package/lib/hooks/useSitemap.js.map +1 -0
- package/lib/index.d.ts +8 -8
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +2 -2
- package/lib/ui-kit/{BlockItem.d.ts → BlockItem/BlockItem.d.ts} +0 -0
- package/lib/ui-kit/{BlockItem.js → BlockItem/BlockItem.js} +0 -0
- package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -0
- package/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
- package/lib/ui-kit/Button/ArrowButton.js +20 -0
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -0
- package/lib/ui-kit/Button/Button.d.ts +3 -0
- package/lib/ui-kit/Button/Button.js +24 -0
- package/lib/ui-kit/Button/Button.js.map +1 -0
- package/lib/ui-kit/Button/ButtonProps.d.ts +21 -0
- package/lib/ui-kit/{ButtonProps.js → Button/ButtonProps.js} +0 -0
- package/lib/ui-kit/Button/ButtonProps.js.map +1 -0
- package/lib/ui-kit/{LikeButton.d.ts → Button/LikeButton.d.ts} +0 -0
- package/lib/ui-kit/{LikeButton.js → Button/LikeButton.js} +0 -0
- package/lib/ui-kit/Button/LikeButton.js.map +1 -0
- package/lib/ui-kit/HeaderItem/HeaderItem.d.ts +3 -0
- package/lib/ui-kit/{HeaderItem.js → HeaderItem/HeaderItem.js} +0 -0
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -0
- package/lib/ui-kit/{Icon.d.ts → Icon/Icon.d.ts} +0 -0
- package/lib/ui-kit/Icon/Icon.js +5 -0
- package/lib/ui-kit/Icon/Icon.js.map +1 -0
- package/lib/ui-kit/Icon/IconProps.d.ts +32 -0
- package/lib/ui-kit/Icon/IconProps.js +24 -0
- package/lib/ui-kit/Icon/IconProps.js.map +1 -0
- package/lib/ui-kit/Img.d.ts +7 -0
- package/lib/{Img.js → ui-kit/Img.js} +0 -0
- package/lib/ui-kit/Img.js.map +1 -0
- package/lib/ui-kit/{Logo.d.ts → Logo/Logo.d.ts} +0 -0
- package/lib/ui-kit/Logo/Logo.js +14 -0
- package/lib/ui-kit/Logo/Logo.js.map +1 -0
- package/lib/ui-kit/SVG.d.ts +2 -0
- package/lib/ui-kit/SVG.js +2 -2
- package/lib/ui-kit/SVG.js.map +1 -1
- package/lib/ui-kit/SearchBar.js +1 -1
- package/lib/ui-kit/SearchBar.js.map +1 -1
- package/lib/ui-kit/{Title.d.ts → Title/Title.d.ts} +0 -0
- package/lib/ui-kit/{Title.js → Title/Title.js} +0 -0
- package/lib/ui-kit/Title/Title.js.map +1 -0
- package/lib/ui-kit/{TitleProps.d.ts → Title/TitleProps.d.ts} +0 -0
- package/lib/ui-kit/{TitleProps.js → Title/TitleProps.js} +0 -0
- package/lib/ui-kit/Title/TitleProps.js.map +1 -0
- package/lib/ui-kit/TopItem/TopItem.d.ts +11 -0
- package/lib/ui-kit/{TopItem.js → TopItem/TopItem.js} +0 -0
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -0
- package/package.json +1 -1
- package/src/common.css +36 -0
- package/src/components/BaseTile/BaseTile.tsx +98 -0
- package/src/components/BaseTile/BaseTileContent.ts +14 -0
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +34 -0
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +42 -0
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +12 -0
- package/src/components/BlockContent.ts +32 -0
- package/src/components/Blocks.ts +35 -0
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +265 -0
- package/src/components/ComparisonTable/ComparisonTable.tsx +126 -0
- package/src/components/ComparisonTable/ComparisonTableContent.ts +43 -0
- package/src/components/ComparisonTable/HeaderCell.tsx +50 -0
- package/src/components/ComparisonTable/TableCarouselContainer.tsx +19 -0
- package/src/components/ComparisonTable/TableCell.tsx +43 -0
- package/src/components/ComparisonTable/TableRow.tsx +44 -0
- package/src/components/ComparisonTable/TableRowContainer.tsx +7 -0
- package/src/components/ComparisonTable/constants.ts +6 -0
- package/src/components/ContentPage/ContentPage.fixture.tsx +58 -0
- package/src/components/ContentPage/ContentPage.page.json +1469 -0
- package/src/components/ContentPage/ContentPage.tsx +88 -0
- package/src/{ContentPageContext.tsx → components/ContentPage/ContentPageContext.tsx} +0 -0
- package/src/components/ContentPage/ContentPageHead.tsx +26 -0
- package/src/components/ContentPage/toMobilePage.ts +21 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +11 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +80 -0
- package/src/{ExchangeRateTileContent.ts → components/ExchangeRateTile/ExchangeRateTileContent.ts} +0 -0
- package/src/components/Footer/Contacts.tsx +73 -0
- package/src/components/Footer/Footer.fixture.tsx +265 -0
- package/src/components/Footer/Footer.mobile.tsx +12 -0
- package/src/components/Footer/Footer.tsx +40 -0
- package/src/components/Footer/FooterContent.ts +15 -0
- package/src/components/Footer/FooterLink.ts +6 -0
- package/src/components/Footer/HorizontalNavigation.tsx +46 -0
- package/src/components/Footer/Sitemap.tsx +58 -0
- package/src/components/Footer/SocialMedia.tsx +52 -0
- package/src/components/Footer/TextInformation.tsx +50 -0
- package/src/components/Gallery/Gallery.fixture.tsx +215 -0
- package/src/components/Gallery/Gallery.mobile.tsx +71 -0
- package/src/components/Gallery/Gallery.tsx +8 -0
- package/src/components/Gallery/GalleryContent.ts +15 -0
- package/src/components/Gallery/GalleryInner.tsx +135 -0
- package/src/components/Header/Header.fixture.tsx +21 -0
- package/src/components/Header/Header.tsx +59 -0
- package/src/components/Header/HeaderContent.ts +5 -0
- package/src/components/Header/HeaderSecondaryMenu.tsx +56 -0
- package/src/{Header → components/Header}/HeaderSecondaryMenuButton.tsx +0 -0
- package/src/components/Header/isSubItemActive.ts +7 -0
- package/src/components/Header/isTopItemActive.ts +8 -0
- package/src/components/LikeControl/LikeControl.fixture.tsx +5 -0
- package/src/components/LikeControl/LikeControl.tsx +23 -0
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +90 -0
- package/src/components/MiniGallery/MiniGallery.tsx +10 -0
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +34 -0
- package/src/components/MobileAppTile/MobileAppTile.tsx +32 -0
- package/src/components/MobileAppTile/MobileAppTileContent.ts +11 -0
- package/src/components/MobileBlocks.ts +26 -0
- package/src/components/Placeholder/Placeholder.fixture.tsx +5 -0
- package/src/components/Placeholder/Placeholder.tsx +30 -0
- package/src/{PlaceholderContent.ts → components/Placeholder/PlaceholderContent.ts} +0 -0
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +96 -0
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +19 -0
- package/src/components/ProductBlock/ProductBlock.tsx +37 -0
- package/src/components/ProductBlock/ProductBlockContent.ts +11 -0
- package/src/components/ProductBlock/ProductBlockInner.tsx +57 -0
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +138 -0
- package/src/components/ProductGallery/ProductGallery.tsx +78 -0
- package/src/components/ProductGallery/ProductGalleryContent.ts +16 -0
- package/src/components/ProductTile/ProductTile.fixture.tsx +155 -0
- package/src/components/ProductTile/ProductTile.tsx +43 -0
- package/src/components/ProductTile/ProductTileContent.ts +6 -0
- package/src/components/PromoTile/PromoTile.fixture.tsx +25 -0
- package/src/components/PromoTile/PromoTile.tsx +43 -0
- package/src/components/PromoTile/PromoTileContent.ts +5 -0
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +23 -0
- package/src/components/StepsBlock/StepsBlock.tsx +55 -0
- package/src/components/StepsBlock/StepsBlockContent.ts +12 -0
- package/src/components/TextBlock/TextBlock.fixture.tsx +116 -0
- package/src/components/TextBlock/TextBlock.tsx +65 -0
- package/src/components/TextBlock/TextBlockContent.ts +12 -0
- package/src/components/Tile/Tile.fixture.tsx +134 -0
- package/src/components/Tile/Tile.tsx +38 -0
- package/src/components/Tile/TileContent.ts +3 -0
- package/src/content-page-repository/ContentPageRepository.ts +1 -1
- package/src/cosmos.decorator.tsx +6 -0
- package/src/hooks/useLink.ts +28 -0
- package/src/hooks/useSitemap.ts +17 -0
- package/src/icons/AppleIcon.svg +1 -13
- package/src/icons/GlassIcon.svg +1 -0
- package/src/icons/PlayMarketIcon.svg +1 -6
- package/src/index.ts +8 -8
- package/src/setup-fixture.ts +1 -1
- package/src/types.ts +2 -2
- package/src/ui-kit/BlockItem/BlockItem.fixture.tsx +5 -0
- package/src/ui-kit/{BlockItem.tsx → BlockItem/BlockItem.tsx} +0 -0
- package/src/ui-kit/Button/ArrowButton.tsx +32 -0
- package/src/ui-kit/Button/Button.fixture.tsx +163 -0
- package/src/ui-kit/Button/Button.tsx +90 -0
- package/src/ui-kit/Button/ButtonProps.ts +24 -0
- package/src/ui-kit/{LikeButton.fixture.tsx → Button/LikeButton.fixture.tsx} +0 -0
- package/src/ui-kit/{LikeButton.tsx → Button/LikeButton.tsx} +0 -0
- package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +8 -0
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +25 -0
- package/src/ui-kit/Icon/Icon.fixture.tsx +22 -0
- package/src/ui-kit/Icon/Icon.tsx +15 -0
- package/src/ui-kit/Icon/IconProps.ts +34 -0
- package/src/ui-kit/Img.tsx +22 -0
- package/src/ui-kit/Logo/Logo.fixture.tsx +5 -0
- package/src/ui-kit/Logo/Logo.tsx +35 -0
- package/src/ui-kit/SVG.tsx +11 -2
- package/src/ui-kit/SearchBar.tsx +1 -1
- package/src/ui-kit/{Title.tsx → Title/Title.tsx} +0 -0
- package/src/ui-kit/{TitleProps.ts → Title/TitleProps.ts} +0 -0
- package/src/ui-kit/TopItem/TopItem.fixture.tsx +8 -0
- package/src/ui-kit/TopItem/TopItem.tsx +37 -0
- package/dist/BaseTile.d.ts +0 -5
- package/dist/BaseTile.js +0 -35
- package/dist/BaseTile.js.map +0 -1
- package/dist/BaseTileContent.d.ts +0 -13
- package/dist/BaseTileContent.js.map +0 -1
- package/dist/BenefitsBlock.d.ts +0 -5
- package/dist/BenefitsBlock.js +0 -12
- package/dist/BenefitsBlock.js.map +0 -1
- package/dist/BenefitsBlockContent.d.ts +0 -10
- package/dist/BenefitsBlockContent.js.map +0 -1
- package/dist/BlockContent.d.ts +0 -15
- package/dist/BlockContent.js.map +0 -1
- package/dist/Blocks.d.ts +0 -17
- package/dist/Blocks.js +0 -35
- package/dist/Blocks.js.map +0 -1
- package/dist/ContentPage.d.ts +0 -19
- package/dist/ContentPage.js +0 -29
- package/dist/ContentPage.js.map +0 -1
- package/dist/ContentPageContext.js.map +0 -1
- package/dist/ContentPageHead.d.ts +0 -6
- package/dist/ContentPageHead.js.map +0 -1
- package/dist/ExchangeRateTile.d.ts +0 -5
- package/dist/ExchangeRateTile.js +0 -34
- package/dist/ExchangeRateTile.js.map +0 -1
- package/dist/ExchangeRateTileContent.js.map +0 -1
- package/dist/Footer/Contacts.d.ts +0 -7
- package/dist/Footer/Contacts.js +0 -31
- package/dist/Footer/Contacts.js.map +0 -1
- package/dist/Footer/Footer.d.ts +0 -5
- package/dist/Footer/Footer.js +0 -17
- package/dist/Footer/Footer.js.map +0 -1
- package/dist/Footer/Footer.mobile.d.ts +0 -5
- package/dist/Footer/Footer.mobile.js.map +0 -1
- package/dist/Footer/FooterContent.d.ts +0 -13
- package/dist/Footer/FooterContent.js.map +0 -1
- package/dist/Footer/FooterLink.d.ts +0 -5
- package/dist/Footer/FooterLink.js.map +0 -1
- package/dist/Footer/HorizontalNavigation.js +0 -12
- package/dist/Footer/HorizontalNavigation.js.map +0 -1
- package/dist/Footer/Sitemap.d.ts +0 -6
- package/dist/Footer/Sitemap.js +0 -22
- package/dist/Footer/Sitemap.js.map +0 -1
- package/dist/Footer/SocialMedia.d.ts +0 -6
- package/dist/Footer/SocialMedia.js +0 -21
- package/dist/Footer/SocialMedia.js.map +0 -1
- package/dist/Footer/TextInformation.js +0 -12
- package/dist/Footer/TextInformation.js.map +0 -1
- package/dist/Gallery.d.ts +0 -5
- package/dist/Gallery.js.map +0 -1
- package/dist/Gallery.mobile.js +0 -18
- package/dist/Gallery.mobile.js.map +0 -1
- package/dist/GalleryContent.d.ts +0 -13
- package/dist/GalleryContent.js.map +0 -1
- package/dist/GalleryInner.d.ts +0 -7
- package/dist/GalleryInner.js +0 -48
- package/dist/GalleryInner.js.map +0 -1
- package/dist/Header/Header.d.ts +0 -5
- package/dist/Header/Header.js +0 -26
- package/dist/Header/Header.js.map +0 -1
- package/dist/Header/HeaderContent.d.ts +0 -4
- package/dist/Header/HeaderContent.js.map +0 -1
- package/dist/Header/HeaderSecondaryMenu.d.ts +0 -9
- package/dist/Header/HeaderSecondaryMenu.js +0 -12
- package/dist/Header/HeaderSecondaryMenu.js.map +0 -1
- package/dist/Header/HeaderSecondaryMenuButton.js.map +0 -1
- package/dist/Header/isSubItemActive.d.ts +0 -3
- package/dist/Header/isSubItemActive.js +0 -8
- package/dist/Header/isSubItemActive.js.map +0 -1
- package/dist/Header/isTopItemActive.d.ts +0 -3
- package/dist/Header/isTopItemActive.js +0 -8
- package/dist/Header/isTopItemActive.js.map +0 -1
- package/dist/Img.d.ts +0 -7
- package/dist/Img.js.map +0 -1
- package/dist/LikeControl.d.ts +0 -2
- package/dist/LikeControl.js +0 -10
- package/dist/LikeControl.js.map +0 -1
- package/dist/MiniGallery.d.ts +0 -5
- package/dist/MiniGallery.js +0 -7
- package/dist/MiniGallery.js.map +0 -1
- package/dist/MobileAppTile.d.ts +0 -5
- package/dist/MobileAppTile.js +0 -9
- package/dist/MobileAppTile.js.map +0 -1
- package/dist/MobileAppTileContent.d.ts +0 -9
- package/dist/MobileAppTileContent.js.map +0 -1
- package/dist/MobileBlocks.d.ts +0 -12
- package/dist/MobileBlocks.js +0 -28
- package/dist/MobileBlocks.js.map +0 -1
- package/dist/Placeholder.d.ts +0 -6
- package/dist/Placeholder.js +0 -15
- package/dist/Placeholder.js.map +0 -1
- package/dist/PlaceholderContent.js.map +0 -1
- package/dist/ProductBlock.d.ts +0 -5
- package/dist/ProductBlock.js +0 -15
- package/dist/ProductBlock.js.map +0 -1
- package/dist/ProductBlock.mobile.d.ts +0 -5
- package/dist/ProductBlock.mobile.js.map +0 -1
- package/dist/ProductBlockContent.d.ts +0 -5
- package/dist/ProductBlockContent.js.map +0 -1
- package/dist/ProductBlockInner.d.ts +0 -5
- package/dist/ProductBlockInner.js +0 -17
- package/dist/ProductBlockInner.js.map +0 -1
- package/dist/ProductBlockInnerContent.d.ts +0 -5
- package/dist/ProductBlockInnerContent.js +0 -2
- package/dist/ProductBlockInnerContent.js.map +0 -1
- package/dist/ProductGallery.d.ts +0 -5
- package/dist/ProductGallery.js +0 -27
- package/dist/ProductGallery.js.map +0 -1
- package/dist/ProductGalleryContent.d.ts +0 -14
- package/dist/ProductGalleryContent.js.map +0 -1
- package/dist/ProductTile.d.ts +0 -5
- package/dist/ProductTile.js +0 -20
- package/dist/ProductTile.js.map +0 -1
- package/dist/ProductTileContent.d.ts +0 -5
- package/dist/ProductTileContent.js.map +0 -1
- package/dist/PromoTile.d.ts +0 -5
- package/dist/PromoTile.js +0 -18
- package/dist/PromoTile.js.map +0 -1
- package/dist/PromoTileContent.d.ts +0 -4
- package/dist/PromoTileContent.js.map +0 -1
- package/dist/StepsBlock.d.ts +0 -5
- package/dist/StepsBlock.js +0 -17
- package/dist/StepsBlock.js.map +0 -1
- package/dist/StepsBlockContent.d.ts +0 -10
- package/dist/StepsBlockContent.js.map +0 -1
- package/dist/TextBlock.d.ts +0 -5
- package/dist/TextBlock.js +0 -36
- package/dist/TextBlock.js.map +0 -1
- package/dist/TextBlockContent.d.ts +0 -10
- package/dist/TextBlockContent.js.map +0 -1
- package/dist/Tile.d.ts +0 -5
- package/dist/Tile.js +0 -27
- package/dist/Tile.js.map +0 -1
- package/dist/TileContent.d.ts +0 -2
- package/dist/TileContent.js.map +0 -1
- package/dist/toMobilePage.d.ts +0 -2
- package/dist/toMobilePage.js.map +0 -1
- package/dist/ui-kit/ArrowButton.d.ts +0 -6
- package/dist/ui-kit/ArrowButton.js +0 -8
- package/dist/ui-kit/ArrowButton.js.map +0 -1
- package/dist/ui-kit/BlockItem.js.map +0 -1
- package/dist/ui-kit/Button.d.ts +0 -2
- package/dist/ui-kit/Button.js +0 -20
- package/dist/ui-kit/Button.js.map +0 -1
- package/dist/ui-kit/ButtonProps.d.ts +0 -9
- package/dist/ui-kit/ButtonProps.js.map +0 -1
- package/dist/ui-kit/HeaderItem.d.ts +0 -3
- package/dist/ui-kit/HeaderItem.js.map +0 -1
- package/dist/ui-kit/Icon.js +0 -7
- package/dist/ui-kit/Icon.js.map +0 -1
- package/dist/ui-kit/IconButton.d.ts +0 -2
- package/dist/ui-kit/IconButton.js +0 -10
- package/dist/ui-kit/IconButton.js.map +0 -1
- package/dist/ui-kit/IconButtonProps.d.ts +0 -6
- package/dist/ui-kit/IconButtonProps.js +0 -2
- package/dist/ui-kit/IconButtonProps.js.map +0 -1
- package/dist/ui-kit/IconProps.d.ts +0 -10
- package/dist/ui-kit/IconProps.js +0 -2
- package/dist/ui-kit/IconProps.js.map +0 -1
- package/dist/ui-kit/LikeButton.js.map +0 -1
- package/dist/ui-kit/Logo.js +0 -16
- package/dist/ui-kit/Logo.js.map +0 -1
- package/dist/ui-kit/Title.js.map +0 -1
- package/dist/ui-kit/TitleProps.js.map +0 -1
- package/dist/ui-kit/TopItem.d.ts +0 -11
- package/dist/ui-kit/TopItem.js.map +0 -1
- package/dist/useLink.d.ts +0 -15
- package/dist/useLink.js +0 -22
- package/dist/useLink.js.map +0 -1
- package/dist/useSitemap.d.ts +0 -3
- package/dist/useSitemap.js +0 -16
- package/dist/useSitemap.js.map +0 -1
- package/lib/BaseTile.d.ts +0 -5
- package/lib/BaseTile.js +0 -33
- package/lib/BaseTile.js.map +0 -1
- package/lib/BaseTileContent.d.ts +0 -13
- package/lib/BaseTileContent.js.map +0 -1
- package/lib/BenefitsBlock.d.ts +0 -5
- package/lib/BenefitsBlock.js +0 -10
- package/lib/BenefitsBlock.js.map +0 -1
- package/lib/BenefitsBlockContent.d.ts +0 -10
- package/lib/BenefitsBlockContent.js.map +0 -1
- package/lib/BlockContent.d.ts +0 -15
- package/lib/BlockContent.js.map +0 -1
- package/lib/Blocks.d.ts +0 -17
- package/lib/Blocks.js +0 -33
- package/lib/Blocks.js.map +0 -1
- package/lib/ContentPage.d.ts +0 -19
- package/lib/ContentPage.js +0 -27
- package/lib/ContentPage.js.map +0 -1
- package/lib/ContentPageContext.js.map +0 -1
- package/lib/ContentPageHead.d.ts +0 -6
- package/lib/ContentPageHead.js.map +0 -1
- package/lib/ExchangeRateTile.d.ts +0 -5
- package/lib/ExchangeRateTile.js +0 -32
- package/lib/ExchangeRateTile.js.map +0 -1
- package/lib/ExchangeRateTileContent.js.map +0 -1
- package/lib/Footer/Contacts.d.ts +0 -7
- package/lib/Footer/Contacts.js +0 -29
- package/lib/Footer/Contacts.js.map +0 -1
- package/lib/Footer/Footer.d.ts +0 -5
- package/lib/Footer/Footer.js +0 -15
- package/lib/Footer/Footer.js.map +0 -1
- package/lib/Footer/Footer.mobile.d.ts +0 -5
- package/lib/Footer/Footer.mobile.js.map +0 -1
- package/lib/Footer/FooterContent.d.ts +0 -13
- package/lib/Footer/FooterContent.js.map +0 -1
- package/lib/Footer/FooterLink.d.ts +0 -5
- package/lib/Footer/FooterLink.js.map +0 -1
- package/lib/Footer/HorizontalNavigation.js +0 -10
- package/lib/Footer/HorizontalNavigation.js.map +0 -1
- package/lib/Footer/Sitemap.d.ts +0 -6
- package/lib/Footer/Sitemap.js +0 -20
- package/lib/Footer/Sitemap.js.map +0 -1
- package/lib/Footer/SocialMedia.d.ts +0 -6
- package/lib/Footer/SocialMedia.js +0 -19
- package/lib/Footer/SocialMedia.js.map +0 -1
- package/lib/Footer/TextInformation.js +0 -10
- package/lib/Footer/TextInformation.js.map +0 -1
- package/lib/Gallery.d.ts +0 -5
- package/lib/Gallery.js.map +0 -1
- package/lib/Gallery.mobile.js +0 -16
- package/lib/Gallery.mobile.js.map +0 -1
- package/lib/GalleryContent.d.ts +0 -13
- package/lib/GalleryContent.js.map +0 -1
- package/lib/GalleryInner.d.ts +0 -7
- package/lib/GalleryInner.js +0 -46
- package/lib/GalleryInner.js.map +0 -1
- package/lib/Header/Header.d.ts +0 -5
- package/lib/Header/Header.js +0 -24
- package/lib/Header/Header.js.map +0 -1
- package/lib/Header/HeaderContent.d.ts +0 -4
- package/lib/Header/HeaderContent.js.map +0 -1
- package/lib/Header/HeaderSecondaryMenu.d.ts +0 -9
- package/lib/Header/HeaderSecondaryMenu.js +0 -10
- package/lib/Header/HeaderSecondaryMenu.js.map +0 -1
- package/lib/Header/HeaderSecondaryMenuButton.js.map +0 -1
- package/lib/Header/isSubItemActive.d.ts +0 -3
- package/lib/Header/isSubItemActive.js +0 -5
- package/lib/Header/isSubItemActive.js.map +0 -1
- package/lib/Header/isTopItemActive.d.ts +0 -3
- package/lib/Header/isTopItemActive.js +0 -5
- package/lib/Header/isTopItemActive.js.map +0 -1
- package/lib/Img.d.ts +0 -7
- package/lib/Img.js.map +0 -1
- package/lib/LikeControl.d.ts +0 -2
- package/lib/LikeControl.js +0 -8
- package/lib/LikeControl.js.map +0 -1
- package/lib/MiniGallery.d.ts +0 -5
- package/lib/MiniGallery.js +0 -5
- package/lib/MiniGallery.js.map +0 -1
- package/lib/MobileAppTile.d.ts +0 -5
- package/lib/MobileAppTile.js +0 -7
- package/lib/MobileAppTile.js.map +0 -1
- package/lib/MobileAppTileContent.d.ts +0 -9
- package/lib/MobileAppTileContent.js.map +0 -1
- package/lib/MobileBlocks.d.ts +0 -12
- package/lib/MobileBlocks.js +0 -26
- package/lib/MobileBlocks.js.map +0 -1
- package/lib/Placeholder.d.ts +0 -6
- package/lib/Placeholder.js +0 -13
- package/lib/Placeholder.js.map +0 -1
- package/lib/PlaceholderContent.js.map +0 -1
- package/lib/ProductBlock.d.ts +0 -5
- package/lib/ProductBlock.js +0 -13
- package/lib/ProductBlock.js.map +0 -1
- package/lib/ProductBlock.mobile.d.ts +0 -5
- package/lib/ProductBlock.mobile.js.map +0 -1
- package/lib/ProductBlockContent.d.ts +0 -5
- package/lib/ProductBlockContent.js.map +0 -1
- package/lib/ProductBlockInner.d.ts +0 -5
- package/lib/ProductBlockInner.js +0 -15
- package/lib/ProductBlockInner.js.map +0 -1
- package/lib/ProductBlockInnerContent.d.ts +0 -5
- package/lib/ProductBlockInnerContent.js +0 -2
- package/lib/ProductBlockInnerContent.js.map +0 -1
- package/lib/ProductGallery.d.ts +0 -5
- package/lib/ProductGallery.js +0 -25
- package/lib/ProductGallery.js.map +0 -1
- package/lib/ProductGalleryContent.d.ts +0 -14
- package/lib/ProductGalleryContent.js.map +0 -1
- package/lib/ProductTile.d.ts +0 -5
- package/lib/ProductTile.js +0 -18
- package/lib/ProductTile.js.map +0 -1
- package/lib/ProductTileContent.d.ts +0 -5
- package/lib/ProductTileContent.js.map +0 -1
- package/lib/PromoTile.d.ts +0 -5
- package/lib/PromoTile.js +0 -16
- package/lib/PromoTile.js.map +0 -1
- package/lib/PromoTileContent.d.ts +0 -4
- package/lib/PromoTileContent.js.map +0 -1
- package/lib/StepsBlock.d.ts +0 -5
- package/lib/StepsBlock.js +0 -15
- package/lib/StepsBlock.js.map +0 -1
- package/lib/StepsBlockContent.d.ts +0 -10
- package/lib/StepsBlockContent.js.map +0 -1
- package/lib/TextBlock.d.ts +0 -5
- package/lib/TextBlock.js +0 -34
- package/lib/TextBlock.js.map +0 -1
- package/lib/TextBlockContent.d.ts +0 -10
- package/lib/TextBlockContent.js.map +0 -1
- package/lib/Tile.d.ts +0 -5
- package/lib/Tile.js +0 -25
- package/lib/Tile.js.map +0 -1
- package/lib/TileContent.d.ts +0 -2
- package/lib/TileContent.js.map +0 -1
- package/lib/toMobilePage.d.ts +0 -2
- package/lib/toMobilePage.js.map +0 -1
- package/lib/ui-kit/ArrowButton.d.ts +0 -6
- package/lib/ui-kit/ArrowButton.js +0 -6
- package/lib/ui-kit/ArrowButton.js.map +0 -1
- package/lib/ui-kit/BlockItem.js.map +0 -1
- package/lib/ui-kit/Button.d.ts +0 -2
- package/lib/ui-kit/Button.js +0 -18
- package/lib/ui-kit/Button.js.map +0 -1
- package/lib/ui-kit/ButtonProps.d.ts +0 -9
- package/lib/ui-kit/ButtonProps.js.map +0 -1
- package/lib/ui-kit/HeaderItem.d.ts +0 -3
- package/lib/ui-kit/HeaderItem.js.map +0 -1
- package/lib/ui-kit/Icon.js +0 -5
- package/lib/ui-kit/Icon.js.map +0 -1
- package/lib/ui-kit/IconButton.d.ts +0 -2
- package/lib/ui-kit/IconButton.js +0 -8
- package/lib/ui-kit/IconButton.js.map +0 -1
- package/lib/ui-kit/IconButtonProps.d.ts +0 -6
- package/lib/ui-kit/IconButtonProps.js +0 -2
- package/lib/ui-kit/IconButtonProps.js.map +0 -1
- package/lib/ui-kit/IconProps.d.ts +0 -10
- package/lib/ui-kit/IconProps.js +0 -2
- package/lib/ui-kit/IconProps.js.map +0 -1
- package/lib/ui-kit/LikeButton.js.map +0 -1
- package/lib/ui-kit/Logo.js +0 -14
- package/lib/ui-kit/Logo.js.map +0 -1
- package/lib/ui-kit/Title.js.map +0 -1
- package/lib/ui-kit/TitleProps.js.map +0 -1
- package/lib/ui-kit/TopItem.d.ts +0 -11
- package/lib/ui-kit/TopItem.js.map +0 -1
- package/lib/useLink.d.ts +0 -15
- package/lib/useLink.js +0 -19
- package/lib/useLink.js.map +0 -1
- package/lib/useSitemap.d.ts +0 -3
- package/lib/useSitemap.js +0 -13
- package/lib/useSitemap.js.map +0 -1
- package/src/BaseTile.tsx +0 -86
- package/src/BaseTileContent.ts +0 -14
- package/src/BenefitsBlock.fixture.tsx +0 -34
- package/src/BenefitsBlock.tsx +0 -42
- package/src/BenefitsBlockContent.ts +0 -12
- package/src/BlockContent.ts +0 -30
- package/src/Blocks.ts +0 -33
- package/src/ContentPage.fixture.tsx +0 -58
- package/src/ContentPage.page.json +0 -1082
- package/src/ContentPage.tsx +0 -88
- package/src/ContentPageHead.tsx +0 -26
- package/src/ExchangeRateTile.fixture.tsx +0 -11
- package/src/ExchangeRateTile.tsx +0 -79
- package/src/Footer/Contacts.tsx +0 -72
- package/src/Footer/Footer.fixture.tsx +0 -265
- package/src/Footer/Footer.mobile.tsx +0 -12
- package/src/Footer/Footer.tsx +0 -40
- package/src/Footer/FooterContent.ts +0 -15
- package/src/Footer/FooterLink.ts +0 -6
- package/src/Footer/HorizontalNavigation.tsx +0 -46
- package/src/Footer/Sitemap.tsx +0 -58
- package/src/Footer/SocialMedia.tsx +0 -48
- package/src/Footer/TextInformation.tsx +0 -50
- package/src/Gallery.fixture.tsx +0 -215
- package/src/Gallery.mobile.tsx +0 -71
- package/src/Gallery.tsx +0 -8
- package/src/GalleryContent.ts +0 -15
- package/src/GalleryInner.tsx +0 -140
- package/src/Header/Header.fixture.tsx +0 -21
- package/src/Header/Header.tsx +0 -59
- package/src/Header/HeaderContent.ts +0 -5
- package/src/Header/HeaderSecondaryMenu.tsx +0 -56
- package/src/Header/isSubItemActive.ts +0 -7
- package/src/Header/isTopItemActive.ts +0 -8
- package/src/Img.tsx +0 -22
- package/src/LikeControl.fixture.tsx +0 -5
- package/src/LikeControl.tsx +0 -23
- package/src/MiniGallery.fixture.tsx +0 -90
- package/src/MiniGallery.tsx +0 -10
- package/src/MobileAppTile.fixture.tsx +0 -34
- package/src/MobileAppTile.tsx +0 -32
- package/src/MobileAppTileContent.ts +0 -11
- package/src/MobileBlocks.ts +0 -26
- package/src/Placeholder.fixture.tsx +0 -5
- package/src/Placeholder.tsx +0 -30
- package/src/ProductBlock.fixture.tsx +0 -96
- package/src/ProductBlock.mobile.tsx +0 -19
- package/src/ProductBlock.tsx +0 -37
- package/src/ProductBlockContent.ts +0 -6
- package/src/ProductBlockInner.tsx +0 -57
- package/src/ProductBlockInnerContent.ts +0 -6
- package/src/ProductGallery.fixture.tsx +0 -138
- package/src/ProductGallery.tsx +0 -78
- package/src/ProductGalleryContent.ts +0 -16
- package/src/ProductTile.fixture.tsx +0 -155
- package/src/ProductTile.tsx +0 -43
- package/src/ProductTileContent.ts +0 -6
- package/src/PromoTile.fixture.tsx +0 -25
- package/src/PromoTile.tsx +0 -43
- package/src/PromoTileContent.ts +0 -5
- package/src/StepsBlock.fixture.tsx +0 -23
- package/src/StepsBlock.tsx +0 -55
- package/src/StepsBlockContent.ts +0 -12
- package/src/TextBlock.fixture.tsx +0 -116
- package/src/TextBlock.tsx +0 -63
- package/src/TextBlockContent.ts +0 -12
- package/src/Tile.fixture.tsx +0 -134
- package/src/Tile.tsx +0 -38
- package/src/TileContent.ts +0 -3
- package/src/toMobilePage.ts +0 -21
- package/src/ui-kit/ArrowButton.tsx +0 -33
- package/src/ui-kit/BlockItem.fixture.tsx +0 -5
- package/src/ui-kit/Button.fixture.tsx +0 -135
- package/src/ui-kit/Button.tsx +0 -66
- package/src/ui-kit/ButtonProps.ts +0 -10
- package/src/ui-kit/HeaderItem.fixture.tsx +0 -8
- package/src/ui-kit/HeaderItem.tsx +0 -25
- package/src/ui-kit/Icon.tsx +0 -15
- package/src/ui-kit/IconButton.tsx +0 -22
- package/src/ui-kit/IconButtonProps.ts +0 -7
- package/src/ui-kit/IconProps.ts +0 -31
- package/src/ui-kit/Logo.fixture.tsx +0 -5
- package/src/ui-kit/Logo.tsx +0 -35
- package/src/ui-kit/TopItem.fixture.tsx +0 -8
- package/src/ui-kit/TopItem.tsx +0 -37
- package/src/useLink.ts +0 -28
- package/src/useSitemap.ts +0 -17
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LinkContent } from '../../model/LinkContent';
|
|
2
|
+
import type { SitemapContent } from '../../model/SitemapContent';
|
|
3
|
+
export interface ContactInfo {
|
|
4
|
+
text: string;
|
|
5
|
+
type: 'tel' | 'email';
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FooterContent extends SitemapContent {
|
|
9
|
+
documents?: LinkContent[];
|
|
10
|
+
relatedEnterprises?: LinkContent[];
|
|
11
|
+
contacts?: ContactInfo[];
|
|
12
|
+
socialMedia?: Omit<LinkContent, 'text'>[];
|
|
13
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterContent.js","sourceRoot":"","sources":["../../../src/components/Footer/FooterContent.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterLink.js","sourceRoot":"","sources":["../../../src/components/Footer/FooterLink.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.HorizontalNavigation = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const useLink_1 = require("../../hooks/useLink");
|
|
6
|
+
exports.HorizontalNavigation = (0, uni_jsx_1.JSX)(({ className, links, context }) => {
|
|
7
|
+
const router = context.useRouter();
|
|
8
|
+
const { handlerDecorator } = context;
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `${className || ''}`, children: links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider", children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(HorizontalNavigationLink, { index: i, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null }));
|
|
10
|
+
});
|
|
11
|
+
const HorizontalNavigationLink = (0, uni_jsx_1.JSX)(({ className, index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans font-normal text-sm text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${className || ''}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
|
|
12
|
+
//# sourceMappingURL=HorizontalNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalNavigation.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAGjC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IACpF,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,gCAAK,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,YACjC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAC,qGAAqG,YACjH,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,wBAAwB,IAEvB,KAAK,EAAE,CAAC,KACJ,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAFvC,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAQH,MAAM,wBAAwB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACrD,8BACE,SAAS,EAAE,qHACT,SAAS,IAAI,EACf,EAAE,EACF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TopMenuItem } from '../../model/SitemapContent';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
export interface SitemapProps extends UniBlockProps {
|
|
4
|
+
items?: TopMenuItem[];
|
|
5
|
+
}
|
|
6
|
+
export declare const Sitemap: (props: import("@redneckz/uni-jsx").PropsWithChildren<SitemapProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.Sitemap = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const mergeTopItems_1 = require("../../mergeTopItems");
|
|
6
|
+
const useLink_1 = require("../../hooks/useLink");
|
|
7
|
+
const useSitemap_1 = require("../../hooks/useSitemap");
|
|
8
|
+
exports.Sitemap = (0, uni_jsx_1.JSX)(({ className, items, context }) => {
|
|
9
|
+
const sitemap = (0, useSitemap_1.useSitemap)(context.useAsyncData);
|
|
10
|
+
const mergedItems = (0, mergeTopItems_1.mergeTopItems)(sitemap.topItems, items);
|
|
11
|
+
const linkParams = {
|
|
12
|
+
router: context.useRouter(),
|
|
13
|
+
handlerDecorator: context.handlerDecorator,
|
|
14
|
+
};
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `flex items-start justify-start gap-11 xl:gap-5 ${className || ''}`, children: mergedItems?.map((_, i) => renderColumn(_, i, linkParams)) }));
|
|
16
|
+
});
|
|
17
|
+
const renderColumn = (c, index, { router, handlerDecorator }) => {
|
|
18
|
+
const { text, href, items, target } = c;
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col w-[235px] gap-[14px]", children: [(0, jsx_runtime_1.jsx)("a", { className: "block font-sans font-medium text-base text-primary-text no-underline", href: href, target: target || '_self', children: text || `Раздел ${index}` }), items?.map((_, i) => ((0, jsx_runtime_1.jsx)(ColumnItem, { ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i))))] }, String(index)));
|
|
20
|
+
};
|
|
21
|
+
const ColumnItem = (0, uni_jsx_1.JSX)(({ text, href, target, index }) => ((0, jsx_runtime_1.jsx)("a", { className: "block font-sans font-normal text-base text-secondary-text hover:text-primary-main no-underline", href: href, target: target || '_self', children: text || `Раздел ${index}` })));
|
|
22
|
+
//# sourceMappingURL=Sitemap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sitemap.js","sourceRoot":"","sources":["../../../src/components/Footer/Sitemap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AAIpD,iDAA8C;AAC9C,uDAAoD;AAKvC,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IACzE,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,IAAA,6BAAa,EAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC3D,MAAM,UAAU,GAAG;QACjB,MAAM,EAAE,OAAO,CAAC,SAAS,EAAE;QAC3B,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;KAC3C,CAAC;IAEF,OAAO,CACL,gCAAK,SAAS,EAAE,kDAAkD,SAAS,IAAI,EAAE,EAAE,YAChF,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,GACvD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,CAAc,EAAE,KAAa,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,EAAE;IACnF,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;IAExC,OAAO,CACL,iCAAyB,SAAS,EAAC,oCAAoC,aACrE,8BACE,SAAS,EAAC,sEAAsE,EAChF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,YAExB,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,EACH,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,uBAAC,UAAU,OAAqB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAAvD,MAAM,CAAC,CAAC,CAAC,CAAkD,CAC7E,CAAC,KAVM,MAAM,CAAC,KAAK,CAAC,CAWjB,CACP,CAAC;AACJ,CAAC,CAAC;AAMF,MAAM,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACzE,8BACE,SAAS,EAAC,gGAAgG,EAC1G,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,IAAI,OAAO,YAExB,IAAI,IAAI,UAAU,KAAK,EAAE,GACxB,CACL,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LinkContent } from '../../model/LinkContent';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
export interface SocialMediaProps extends UniBlockProps {
|
|
4
|
+
media?: Omit<LinkContent, 'text'>[];
|
|
5
|
+
}
|
|
6
|
+
export declare const SocialMedia: (props: import("@redneckz/uni-jsx").PropsWithChildren<SocialMediaProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.SocialMedia = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
6
|
+
const useLink_1 = require("../../hooks/useLink");
|
|
7
|
+
const Button_1 = require("../../ui-kit/Button/Button");
|
|
8
|
+
const ICONS_MAP = [
|
|
9
|
+
{ origins: ['t.me', 'telegram.org'], icon: 'TelegramIcon', label: 'Телеграм' },
|
|
10
|
+
{ origins: ['vk.com'], icon: 'VKIcon', label: 'ВКонтакте' },
|
|
11
|
+
{ origins: ['ok.ru'], icon: 'OkIcon', label: 'Одноклассники' },
|
|
12
|
+
];
|
|
13
|
+
exports.SocialMedia = (0, uni_jsx_1.JSX)(({ className, media, context }) => {
|
|
14
|
+
const router = context.useRouter();
|
|
15
|
+
const { handlerDecorator } = context;
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `flex items-end justify-end gap-2 pt-[30px] pb-7 ${className || ''}`, children: media?.map((_, index) => ((0, jsx_runtime_1.jsx)(MediaButton, { ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(index)))) }));
|
|
17
|
+
});
|
|
18
|
+
const MediaButton = (0, uni_jsx_1.JSX)(({ href }) => {
|
|
19
|
+
const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
20
|
+
if (!icon)
|
|
21
|
+
return null;
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { rounded: true, href: href, target: "_blank", rel: "noopener noreferrer", "aria-label": label, className: "border-solid border border-main-divider w-9 h-9 flex items-center justify-center hover:text-primary-main", appendLeft: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon }) }));
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=SocialMedia.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialMedia.js","sourceRoot":"","sources":["../../../src/components/Footer/SocialMedia.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,iDAA8C;AAE9C,iDAA8C;AAC9C,uDAAoD;AAEpD,MAAM,SAAS,GAAgE;IAC7E,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE;IAC9E,EAAE,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE;IAC3D,EAAE,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE;CAC/D,CAAC;AAMW,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IACjF,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACrC,OAAO,CACL,gCAAK,SAAS,EAAE,mDAAmD,SAAS,IAAI,EAAE,EAAE,YACjF,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,uBAAC,WAAW,OAAyB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAA3D,MAAM,CAAC,KAAK,CAAC,CAAkD,CAClF,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAMH,MAAM,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACrD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GACnB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhF,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IAEvB,OAAO,CACL,uBAAC,eAAM,IACL,OAAO,QACP,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,gBACb,KAAK,EACjB,SAAS,EAAC,0GAA0G,EACpH,UAAU,EAAE,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,GAAI,GAChC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.TextInformation = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const useLink_1 = require("../../hooks/useLink");
|
|
6
|
+
exports.TextInformation = (0, uni_jsx_1.JSX)(({ className, links, context }) => {
|
|
7
|
+
const router = context.useRouter();
|
|
8
|
+
const { handlerDecorator } = context;
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `${className || ''}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "pt-5 pb-[5px]", children: (0, jsx_runtime_1.jsx)("span", { className: "font-sans font-normal text-xs text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-start items-start gap-5 pt-[5px]", children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(TextInformationLink, { index: i, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
|
|
10
|
+
});
|
|
11
|
+
const TextInformationLink = (0, uni_jsx_1.JSX)(({ className, index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${className || ''}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
|
|
12
|
+
//# sourceMappingURL=TextInformation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInformation.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAGjC,QAAA,eAAe,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACrC,OAAO,CACL,iCAAK,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aAClC,gCAAK,SAAS,EAAC,eAAe,YAC5B,iCAAM,SAAS,EAAC,mDAAmD,YAChE,oBAAoB,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,mHAAmH,GAC3J,GACH,EACL,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAC,+CAA+C,YAC3D,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,mBAAmB,IAElB,KAAK,EAAE,CAAC,KACJ,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAFvC,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAQH,MAAM,mBAAmB,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACrD,8BACE,SAAS,EAAE,iJACT,SAAS,IAAI,EACf,EAAE,EACF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GalleryContent } from './GalleryContent';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
export interface GalleryProps extends GalleryContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<GalleryProps, any>, context?: any) => any;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAKjC,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE,CAAC,uBAAC,2BAAY,OAAK,KAAK,EAAE,OAAO,EAAC,QAAQ,GAAG,CAAC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.Gallery = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const BlockItem_1 = require("../../ui-kit/BlockItem/BlockItem");
|
|
6
|
+
const Button_1 = require("../../ui-kit/Button/Button");
|
|
7
|
+
const Img_1 = require("../../ui-kit/Img");
|
|
8
|
+
const Title_1 = require("../../ui-kit/Title/Title");
|
|
9
|
+
exports.Gallery = (0, uni_jsx_1.JSX)(({ title, description, cards = [], className }) => {
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white p-4 overflow-hidden ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-8", children: [(0, jsx_runtime_1.jsx)(Title_1.Title, { className: "font-medium m-0 text-centers", children: title }), description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-base max-w-[600px] mt-3", children: description })) : null] }), (0, jsx_runtime_1.jsx)("div", { className: "horizontal-list no-scrollbar", role: "list", children: cards?.map(renderCard) })] }));
|
|
11
|
+
});
|
|
12
|
+
function renderCard(card, key) {
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "box-border horizontal-list-item border-solid border rounded-md border-main-divider p-4 mx-1 flex flex-col justify-between items-stretch", role: "listitem", children: [(0, jsx_runtime_1.jsxs)("div", { children: [card.image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-6", image: card.image }) })) : null, card.title ? ((0, jsx_runtime_1.jsx)("h4", { className: `font-medium text-xl m-0 ${!card.description && !card.items?.length ? 'text-center' : ''}`, children: card.title })) : null, card.description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-sm text-secondary-text mt-2", children: card.description })) : null, card.items?.length ? renderItems(card.items) : null] }), card.href ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-6", text: "\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435", version: "secondary", href: card.href })) : null] }, key));
|
|
14
|
+
}
|
|
15
|
+
function renderItems(items = []) {
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: "max-w-[308px] mt-2", role: "list", children: items.map((item, i) => ((0, jsx_runtime_1.jsx)(BlockItem_1.BlockItem, { children: (0, jsx_runtime_1.jsx)("span", { className: "text-sm text-secondary-text", children: item }) }, String(i)))) }));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=Gallery.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gallery.mobile.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,gEAA6D;AAC7D,uDAAoD;AACpD,0CAAuC;AACvC,oDAAiD;AAEpC,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACzF,OAAO,CACL,qCACE,SAAS,EAAE,qEAAqE,SAAS,EAAE,aAE3F,iCAAK,SAAS,EAAC,iCAAiC,aAC9C,uBAAC,aAAK,IAAC,SAAS,EAAC,8BAA8B,YAAE,KAAK,GAAS,EAC9D,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,0CAA0C,YAAE,WAAW,GAAO,CAC9E,CAAC,CAAC,CAAC,IAAI,IACJ,EACN,gCAAK,SAAS,EAAC,8BAA8B,EAAC,IAAI,EAAC,MAAM,YACtD,KAAK,EAAE,GAAG,CAAC,UAAU,CAAC,GACnB,IACE,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,IAAiB,EAAE,GAAW;IAChD,OAAO,CACL,iCACE,SAAS,EAAC,yIAAyI,EACnJ,IAAI,EAAC,UAAU,aAGf,4CACG,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CACjB,gCAAK,SAAS,EAAC,qBAAqB,YAClC,uBAAC,SAAG,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,GACvC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACZ,+BACE,SAAS,EAAE,2BACT,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAC7D,EAAE,YAED,IAAI,CAAC,KAAK,GACR,CACN,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAClB,gCAAK,SAAS,EAAC,8CAA8C,YAAE,IAAI,CAAC,WAAW,GAAO,CACvF,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAChD,EACL,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CACX,uBAAC,eAAM,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,wDAAW,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,CAClF,CAAC,CAAC,CAAC,IAAI,KAxBH,GAAG,CAyBJ,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,QAAkB,EAAE;IACvC,OAAO,CACL,oCAAS,SAAS,EAAC,oBAAoB,EAAC,IAAI,EAAC,MAAM,YAChD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,qBAAS,cACR,iCAAM,SAAS,EAAC,6BAA6B,YAAE,IAAI,GAAQ,IAD7C,MAAM,CAAC,CAAC,CAAC,CAEb,CACb,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
2
|
+
export interface GalleryCard {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
image?: Picture;
|
|
6
|
+
href?: string;
|
|
7
|
+
items?: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface GalleryContent {
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
cards?: GalleryCard[];
|
|
13
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GalleryContent.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GalleryContent } from './GalleryContent';
|
|
2
|
+
import type { GalleryVersion } from '../../model/GalleryVersion';
|
|
3
|
+
import type { UniBlockProps } from '../../types';
|
|
4
|
+
export interface GalleryInnerProps extends GalleryContent, UniBlockProps {
|
|
5
|
+
version?: GalleryVersion;
|
|
6
|
+
}
|
|
7
|
+
export declare const GalleryInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<GalleryInnerProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.GalleryInner = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const ArrowButton_1 = require("../../ui-kit/Button/ArrowButton");
|
|
6
|
+
const BlockItem_1 = require("../../ui-kit/BlockItem/BlockItem");
|
|
7
|
+
const Button_1 = require("../../ui-kit/Button/Button");
|
|
8
|
+
const Img_1 = require("../../ui-kit/Img");
|
|
9
|
+
const Title_1 = require("../../ui-kit/Title/Title");
|
|
10
|
+
const cardStyleMap = {
|
|
11
|
+
normal: 'min-w-[364px] w-[364px]',
|
|
12
|
+
mini: 'min-w-[260px] w-[260px]',
|
|
13
|
+
};
|
|
14
|
+
const cardWidthMap = {
|
|
15
|
+
normal: 380,
|
|
16
|
+
mini: 276,
|
|
17
|
+
};
|
|
18
|
+
const galleryLengthForScrollMap = {
|
|
19
|
+
normal: 3,
|
|
20
|
+
mini: 4,
|
|
21
|
+
};
|
|
22
|
+
exports.GalleryInner = (0, uni_jsx_1.JSX)(({ title, description, context, cards = [], className, version = 'normal' }) => {
|
|
23
|
+
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
24
|
+
function handleNextClick() {
|
|
25
|
+
setActiveCardIndex(activeCardIndex + 1);
|
|
26
|
+
}
|
|
27
|
+
function handlePrevClick() {
|
|
28
|
+
setActiveCardIndex(activeCardIndex - 1);
|
|
29
|
+
}
|
|
30
|
+
const isGalleryScrollAvailable = cards?.length > galleryLengthForScrollMap[version];
|
|
31
|
+
const showNextButton = isGalleryScrollAvailable &&
|
|
32
|
+
cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
|
|
33
|
+
const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white p-12 overflow-hidden ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-8", children: [title ? (0, jsx_runtime_1.jsx)(Title_1.Title, { className: "font-medium m-0 text-center", children: title }) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-base max-w-[600px] mt-3", children: description })) : null] }), (0, jsx_runtime_1.jsx)("div", {
|
|
35
|
+
// Need to place all cards at the center if count of cards less than 4
|
|
36
|
+
className: `flex ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`,
|
|
37
|
+
// All cards has same width
|
|
38
|
+
style: { transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard(card, i, version)) }), showPrevButton && ((0, jsx_runtime_1.jsx)(ArrowButton_1.ArrowButton, { className: "absolute top-1/2 left-8 rotate-180", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && ((0, jsx_runtime_1.jsx)(ArrowButton_1.ArrowButton, { className: "absolute top-1/2 right-1 z-10", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" })), (0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })] }));
|
|
39
|
+
});
|
|
40
|
+
function renderCard(card, i, version) {
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between items-stretch ${cardStyleMap[version]} w-full`, role: "listitem", children: [(0, jsx_runtime_1.jsxs)("div", { children: [card.image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-6", image: card.image }) })) : null, card.title ? ((0, jsx_runtime_1.jsx)("h4", { className: `font-medium text-xl m-0 ${!card.description && !card.items?.length ? 'text-center' : ''}`, children: card.title })) : null, card.description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-sm text-secondary-text mt-2", children: card.description })) : null, card.items?.length ? ((0, jsx_runtime_1.jsx)("section", { className: "max-w-[308px] mt-2", role: "list", children: card.items.map(renderItem) })) : null] }), card.href ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-6", text: "\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435", version: "secondary", href: card.href })) : null] }, String(i)));
|
|
42
|
+
}
|
|
43
|
+
function renderItem(item, i) {
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(BlockItem_1.BlockItem, { children: (0, jsx_runtime_1.jsx)("span", { className: "text-sm text-secondary-text", children: item }) }, String(i)));
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=GalleryInner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GalleryInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,iEAA8D;AAC9D,gEAA6D;AAC7D,uDAAoD;AACpD,0CAAuC;AACvC,oDAAiD;AAMjD,MAAM,YAAY,GAAmC;IACnD,MAAM,EAAE,yBAAyB;IACjC,IAAI,EAAE,yBAAyB;CAChC,CAAC;AAEF,MAAM,YAAY,GAAmC;IACnD,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,GAAG;CACV,CAAC;AAEF,MAAM,yBAAyB,GAAmC;IAChE,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,CAAC;CACR,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,OAAO,GAAG,QAAQ,EAAE,EAAE,EAAE;IAC7E,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElE,SAAS,eAAe;QACtB,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAC1C,CAAC;IAED,SAAS,eAAe;QACtB,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,wBAAwB,GAAG,KAAK,EAAE,MAAM,GAAG,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAEpF,MAAM,cAAc,GAClB,wBAAwB;QACxB,KAAK,EAAE,MAAM,GAAG,eAAe,GAAG,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAEvE,MAAM,cAAc,GAAG,wBAAwB,IAAI,eAAe,GAAG,CAAC,CAAC;IAEvE,OAAO,CACL,qCACE,SAAS,EAAE,sEAAsE,SAAS,EAAE,aAE5F,iCAAK,SAAS,EAAC,iCAAiC,aAC7C,KAAK,CAAC,CAAC,CAAC,uBAAC,aAAK,IAAC,SAAS,EAAC,6BAA6B,YAAE,KAAK,GAAS,CAAC,CAAC,CAAC,IAAI,EAC7E,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,0CAA0C,YAAE,WAAW,GAAO,CAC9E,CAAC,CAAC,CAAC,IAAI,IACJ,EACN;gBACE,sEAAsE;gBACtE,SAAS,EAAE,QACT,KAAK,EAAE,MAAM,IAAI,yBAAyB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAC3E,gBAAgB;gBAChB,2BAA2B;gBAC3B,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,eAAe,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,EACjF,IAAI,EAAC,MAAM,YAEV,KAAK,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GAClD,EACL,cAAc,IAAI,CACjB,uBAAC,yBAAW,IACV,SAAS,EAAC,oCAAoC,EAC9C,OAAO,EAAE,eAAe,EACxB,SAAS,EAAC,6FAAkB,GAC5B,CACH,EACA,cAAc,IAAI,CACjB,uBAAC,yBAAW,IACV,SAAS,EAAC,+BAA+B,EACzC,OAAO,EAAE,eAAe,EACxB,SAAS,EAAC,mGAAmB,GAC7B,CACH,EACD,gCAAK,SAAS,EAAC,8DAA8D,GAAO,IAC5E,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,UAAU,CAAC,IAAiB,EAAE,CAAS,EAAE,OAAuB;IACvE,OAAO,CACL,iCACE,SAAS,EAAE,sHAAsH,YAAY,CAAC,OAAO,CAAC,SAAS,EAC/J,IAAI,EAAC,UAAU,aAGf,4CACG,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CACjB,gCAAK,SAAS,EAAC,qBAAqB,YAClC,uBAAC,SAAG,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,GACvC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACZ,+BACE,SAAS,EAAE,2BACT,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAC7D,EAAE,YAED,IAAI,CAAC,KAAK,GACR,CACN,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAClB,gCAAK,SAAS,EAAC,8CAA8C,YAAE,IAAI,CAAC,WAAW,GAAO,CACvF,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACpB,oCAAS,SAAS,EAAC,oBAAoB,EAAC,IAAI,EAAC,MAAM,YAChD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,GACnB,CACX,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CACX,uBAAC,eAAM,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,wDAAW,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,CAClF,CAAC,CAAC,CAAC,IAAI,KA5BH,MAAM,CAAC,CAAC,CAAC,CA6BV,CACP,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,IAAY,EAAE,CAAS;IACzC,OAAO,CACL,uBAAC,qBAAS,cACR,iCAAM,SAAS,EAAC,6BAA6B,YAAE,IAAI,GAAQ,IAD7C,MAAM,CAAC,CAAC,CAAC,CAEb,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { HeaderContent } from './HeaderContent';
|
|
3
|
+
export interface HeaderProps extends HeaderContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<HeaderProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.Header = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const mergeTopItems_1 = require("../../mergeTopItems");
|
|
6
|
+
const HeaderItem_1 = require("../../ui-kit/HeaderItem/HeaderItem");
|
|
7
|
+
const Logo_1 = require("../../ui-kit/Logo/Logo");
|
|
8
|
+
const TopItem_1 = require("../../ui-kit/TopItem/TopItem");
|
|
9
|
+
const useLink_1 = require("../../hooks/useLink");
|
|
10
|
+
const useSitemap_1 = require("../../hooks/useSitemap");
|
|
11
|
+
const HeaderSecondaryMenu_1 = require("./HeaderSecondaryMenu");
|
|
12
|
+
const isSubItemActive_1 = require("./isSubItemActive");
|
|
13
|
+
const isTopItemActive_1 = require("./isTopItemActive");
|
|
14
|
+
exports.Header = (0, uni_jsx_1.JSX)(({ className, defaultLocation, context, topItems }) => {
|
|
15
|
+
const router = context.useRouter();
|
|
16
|
+
const sitemap = (0, useSitemap_1.useSitemap)(context.useAsyncData);
|
|
17
|
+
const { handlerDecorator } = context;
|
|
18
|
+
const mergedItems = (0, mergeTopItems_1.mergeTopItems)(sitemap.topItems, topItems);
|
|
19
|
+
const activeTopItem = mergedItems.find((0, isTopItemActive_1.isTopItemActive)(router));
|
|
20
|
+
const subItems = activeTopItem?.items;
|
|
21
|
+
const activeSubItem = subItems?.find((0, isSubItemActive_1.isSubItemActive)(router));
|
|
22
|
+
const topMenu = mergedItems.map((_, i) => ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { active: _ === activeTopItem, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _), ariaLabel: _.text }, String(i))));
|
|
23
|
+
const subMenu = subItems?.map((_) => ((0, jsx_runtime_1.jsx)(HeaderItem_1.HeaderItem, { className: "mr-8", active: _ === activeSubItem, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, _.href)));
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)("header", { className: `pt-5 pb-8 px-20 bg-white ${className || ''}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: "mr-8" }), topMenu, (0, jsx_runtime_1.jsx)(HeaderSecondaryMenu_1.HeaderSecondaryMenu, { context: context, className: "ml-auto", defaultLocation: defaultLocation })] }), (0, jsx_runtime_1.jsx)("div", { className: "mt-5 h-[1px] bg-main-divider" }), (0, jsx_runtime_1.jsx)("nav", { className: "mt-5", children: subMenu })] }));
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=Header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AAEpD,mEAAgE;AAChE,iDAA8C;AAC9C,0DAAuD;AACvD,iDAA8C;AAC9C,uDAAoD;AAEpD,+DAA4D;AAC5D,uDAAoD;AACpD,uDAAoD;AAIvC,QAAA,MAAM,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3F,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,MAAM,WAAW,GAAG,IAAA,6BAAa,EAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC9D,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC,IAAA,iCAAe,EAAC,MAAM,CAAC,CAAC,CAAC;IAChE,MAAM,QAAQ,GAAG,aAAa,EAAE,KAAK,CAAC;IACtC,MAAM,aAAa,GAAG,QAAQ,EAAE,IAAI,CAAC,IAAA,iCAAe,EAAC,MAAM,CAAC,CAAC,CAAC;IAE9D,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACxC,uBAAC,iBAAO,IAEN,MAAM,EAAE,CAAC,KAAK,aAAa,KACvB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,EAC5C,SAAS,EAAE,CAAC,CAAC,IAAI,IAHZ,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACnC,uBAAC,uBAAU,IAET,SAAS,EAAC,MAAM,EAChB,MAAM,EAAE,CAAC,KAAK,aAAa,KACvB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAHvC,CAAC,CAAC,IAAI,CAIX,CACH,CAAC,CAAC;IAEH,OAAO,CACL,oCAAQ,SAAS,EAAE,4BAA4B,SAAS,IAAI,EAAE,EAAE,aAC9D,iCAAK,SAAS,EAAC,mBAAmB,aAChC,uBAAC,WAAI,IAAC,SAAS,EAAC,MAAM,GAAG,EACxB,OAAO,EACR,uBAAC,yCAAmB,IAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,SAAS,EACnB,eAAe,EAAE,eAAe,GAChC,IACE,EACN,gCAAK,SAAS,EAAC,8BAA8B,GAAG,EAChD,gCAAK,SAAS,EAAC,MAAM,YAAE,OAAO,GAAO,IAC9B,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderContent.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
interface HeaderSecondaryMenuContent {
|
|
3
|
+
defaultLocation?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface HeaderSecondaryMenuProps extends HeaderSecondaryMenuContent, UniBlockProps {
|
|
7
|
+
}
|
|
8
|
+
export declare const HeaderSecondaryMenu: (props: import("@redneckz/uni-jsx").PropsWithChildren<HeaderSecondaryMenuProps, any>, context?: any) => any;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.HeaderSecondaryMenu = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
6
|
+
const TopItem_1 = require("../../ui-kit/TopItem/TopItem");
|
|
7
|
+
const HeaderSecondaryMenuButton_1 = require("./HeaderSecondaryMenuButton");
|
|
8
|
+
exports.HeaderSecondaryMenu = (0, uni_jsx_1.JSX)(({ context, className, defaultLocation = '' }) => {
|
|
9
|
+
const [city, getCity] = context.useGeolocation(defaultLocation);
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex items-center ${className || ''}`, children: [(0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "mr-5", flat: true, href: "#", text: city, ariaLabel: "\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", onClick: getCity }), (0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { className: "mr-7", flat: true, href: "#", text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", ariaLabel: "\u0421\u043F\u0438\u0441\u043E\u043A \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043E\u0444\u0438\u0441\u043E\u0432 \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u043E\u0432" }), (0, jsx_runtime_1.jsx)(HeaderSecondaryMenuButton_1.HeaderSecondaryMenuButton, { className: "mr-5 text-primary-text hover:text-primary-main", ariaLabel: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "LoupeIcon", "aria-hidden": "true" }) }), (0, jsx_runtime_1.jsx)(HeaderSecondaryMenuButton_1.HeaderSecondaryMenuButton, { className: "mr-5 text-primary-text hover:text-primary-main", ariaLabel: "\u041F\u0440\u043E\u0444\u0438\u043B\u044C", children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "ProfileIcon", "aria-hidden": "true" }) }), (0, jsx_runtime_1.jsx)(HeaderSecondaryMenuButton_1.HeaderSecondaryMenuButton, { className: "mr-5 text-secondary-light hover:text-secondary-active min-w-[32px] min-h-[32px]", ariaLabel: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438", children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "GridIcon", "aria-hidden": "true" }) })] }));
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=HeaderSecondaryMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderSecondaryMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSecondaryMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAC9C,0DAAuD;AACvD,2EAAwE;AAS3D,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,GAAG,EAAE,EAAE,EAAE,EAAE;IAC/C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;IAEhE,OAAO,CACL,iCAAK,SAAS,EAAE,qBAAqB,SAAS,IAAI,EAAE,EAAE,aACpD,uBAAC,iBAAO,IACN,SAAS,EAAC,MAAM,EAChB,IAAI,EAAE,IAAI,EACV,IAAI,EAAC,GAAG,EACR,IAAI,EAAE,IAAI,EACV,SAAS,EAAC,sFAAgB,EAC1B,OAAO,EAAE,OAAO,GAChB,EACF,uBAAC,iBAAO,IACN,SAAS,EAAC,MAAM,EAChB,IAAI,EAAE,IAAI,EACV,IAAI,EAAC,GAAG,EACR,IAAI,EAAC,8FAAmB,EACxB,SAAS,EAAC,+NAA2C,GACrD,EACF,uBAAC,qDAAyB,IACxB,SAAS,EAAC,gDAAgD,EAC1D,SAAS,EAAC,4EAAgB,YAE1B,uBAAC,WAAI,IAAC,IAAI,EAAC,WAAW,iBAAa,MAAM,GAAG,GAClB,EAC5B,uBAAC,qDAAyB,IACxB,SAAS,EAAC,gDAAgD,EAC1D,SAAS,EAAC,4CAAS,YAEnB,uBAAC,WAAI,IAAC,IAAI,EAAC,aAAa,iBAAa,MAAM,GAAG,GACpB,EAC5B,uBAAC,qDAAyB,IACxB,SAAS,EAAC,iFAAiF,EAC3F,SAAS,EAAC,2HAAuB,YAEjC,uBAAC,WAAI,IAAC,IAAI,EAAC,UAAU,iBAAa,MAAM,GAAG,GACjB,IACxB,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderSecondaryMenuButton.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSecondaryMenuButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAO3B,QAAA,yBAAyB,GAAG,IAAA,aAAG,EAC1C,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CACtC,mCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,qEACT,SAAS,IAAI,EACf,EAAE,EACF,QAAQ,EAAE,IAAI,gBACF,SAAS,YAEpB,QAAQ,GACF,CACV,CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.isSubItemActive = void 0;
|
|
3
|
+
const url_1 = require("../../utils/url");
|
|
4
|
+
function isSubItemActive(router) {
|
|
5
|
+
return (subItem) => (0, url_1.isHrefActive)(subItem.href, router);
|
|
6
|
+
}
|
|
7
|
+
exports.isSubItemActive = isSubItemActive;
|
|
8
|
+
//# sourceMappingURL=isSubItemActive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isSubItemActive.js","sourceRoot":"","sources":["../../../src/components/Header/isSubItemActive.ts"],"names":[],"mappings":";;AAEA,yCAA+C;AAE/C,SAAgB,eAAe,CAAC,MAAc;IAC5C,OAAO,CAAC,OAAoB,EAAW,EAAE,CAAC,IAAA,kBAAY,EAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC/E,CAAC;AAFD,0CAEC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.isTopItemActive = void 0;
|
|
3
|
+
const url_1 = require("../../utils/url");
|
|
4
|
+
function isTopItemActive(router) {
|
|
5
|
+
return (topItem) => (0, url_1.isHrefActive)(topItem.href, router, (topItemHref, baseHref) => baseHref.startsWith(topItemHref));
|
|
6
|
+
}
|
|
7
|
+
exports.isTopItemActive = isTopItemActive;
|
|
8
|
+
//# sourceMappingURL=isTopItemActive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isTopItemActive.js","sourceRoot":"","sources":["../../../src/components/Header/isTopItemActive.ts"],"names":[],"mappings":";;AAEA,yCAA+C;AAE/C,SAAgB,eAAe,CAAC,MAAc;IAC5C,OAAO,CAAC,OAAoB,EAAW,EAAE,CACvC,IAAA,kBAAY,EAAC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;AACpG,CAAC;AAHD,0CAGC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.LikeControl = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const LikeButton_1 = require("../../ui-kit/Button/LikeButton");
|
|
6
|
+
exports.LikeControl = (0, uni_jsx_1.JSX)(({ className, context }) => {
|
|
7
|
+
const likeService = context.useLikeService();
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${className || ''}`, children: [(0, jsx_runtime_1.jsx)(LikeButton_1.LikeButton, { onClick: likeService.like, ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u043B\u0430\u0439\u043A\u00BB" }), (0, jsx_runtime_1.jsx)(LikeButton_1.LikeButton, { onClick: likeService.dislike, className: "rotate-180", ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u0434\u0438\u0437\u043B\u0430\u0439\u043A\u00BB" }), (0, jsx_runtime_1.jsx)("span", { className: "select-none", children: likeService.likeCount })] }));
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=LikeControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LikeControl.js","sourceRoot":"","sources":["../../../src/components/LikeControl/LikeControl.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,+DAA4D;AAG/C,QAAA,WAAW,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAE7C,OAAO,CACL,iCACE,SAAS,EAAE,6GACT,SAAS,IAAI,EACf,EAAE,aAEF,uBAAC,uBAAU,IAAC,OAAO,EAAE,WAAW,CAAC,IAAI,EAAE,SAAS,EAAC,wIAA0B,GAAG,EAC9E,uBAAC,uBAAU,IACT,OAAO,EAAE,WAAW,CAAC,OAAO,EAC5B,SAAS,EAAC,YAAY,EACtB,SAAS,EAAC,0JAA6B,GACvC,EACF,iCAAM,SAAS,EAAC,aAAa,YAAE,WAAW,CAAC,SAAS,GAAQ,IACxD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GalleryContent } from '../Gallery/GalleryContent';
|
|
2
|
+
import { UniBlockProps } from '../../types';
|
|
3
|
+
export interface MiniGalleryProps extends GalleryContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const MiniGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<MiniGalleryProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.MiniGallery = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const GalleryInner_1 = require("../Gallery/GalleryInner");
|
|
6
|
+
exports.MiniGallery = (0, uni_jsx_1.JSX)((props) => ((0, jsx_runtime_1.jsx)(GalleryInner_1.GalleryInner, { ...props, version: "mini" })));
|
|
7
|
+
//# sourceMappingURL=MiniGallery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MiniGallery.js","sourceRoot":"","sources":["../../../src/components/MiniGallery/MiniGallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAK1C,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,KAAK,EAAE,EAAE,CAAC,CAC1D,uBAAC,2BAAY,OAAK,KAAK,EAAE,OAAO,EAAC,MAAM,GAAG,CAC3C,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { MobileAppTileContent } from './MobileAppTileContent';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<MobileAppTileProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.MobileAppTile = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Tile_1 = require("../Tile/Tile");
|
|
6
|
+
exports.MobileAppTile = (0, uni_jsx_1.JSX)(({ className, context, title = 'Мобильное приложение', qr, buttons = [] }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { className: className, context: context, title: title, buttons: buttons, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [qr?.src && qr?.href && ((0, jsx_runtime_1.jsx)("a", { href: qr.href, target: "_blank", children: (0, jsx_runtime_1.jsx)("img", { src: qr.src, alt: title, title: title, width: "164", height: "164", className: "w-[90px] h-[90px] min-w-[90px] min-h-[90px] bg-secondary-light" }) })), (0, jsx_runtime_1.jsx)("span", { className: "font-normal text-sm text-secondary-text ml-4", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }) }));
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=MobileAppTile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uCAAoC;AAKvB,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,GAAG,sBAAsB,EAAE,EAAE,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE,EAAE;IAC3E,OAAO,CACL,uBAAC,WAAI,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,YAC1E,iCAAK,SAAS,EAAC,mBAAmB,aAC/B,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,IAAI,IAAI,CACtB,8BAAG,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,MAAM,EAAC,QAAQ,YAC/B,gCACE,GAAG,EAAE,EAAE,CAAC,GAAG,EACX,GAAG,EAAE,KAAK,EACV,KAAK,EAAE,KAAK,EACZ,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,SAAS,EAAC,gEAAgE,GAC1E,GACA,CACL,EACD,iCAAM,SAAS,EAAC,8CAA8C,+SAEvD,IACH,GACD,CACR,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileAppTileContent.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTileContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const MobileBlocks: {
|
|
2
|
+
Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
|
|
3
|
+
Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer.mobile").FooterProps, any>, context?: any) => any;
|
|
4
|
+
Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder/Placeholder").PlaceholderProps, any>, context?: any) => any;
|
|
5
|
+
Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Tile/Tile").TileProps, any>, context?: any) => any;
|
|
6
|
+
ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
|
|
7
|
+
ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock/ProductBlock.mobile").ProductBlockProps, any>, context?: any) => any;
|
|
8
|
+
TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
|
|
9
|
+
ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
|
|
10
|
+
MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
|
|
11
|
+
Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Gallery/Gallery").GalleryProps, any>, context?: any) => any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.MobileBlocks = void 0;
|
|
3
|
+
const ExchangeRateTile_1 = require("./ExchangeRateTile/ExchangeRateTile");
|
|
4
|
+
const Footer_mobile_1 = require("./Footer/Footer.mobile");
|
|
5
|
+
const Gallery_mobile_1 = require("./Gallery/Gallery.mobile");
|
|
6
|
+
const Header_1 = require("./Header/Header");
|
|
7
|
+
const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
|
|
8
|
+
const Placeholder_1 = require("./Placeholder/Placeholder");
|
|
9
|
+
const ProductBlock_mobile_1 = require("./ProductBlock/ProductBlock.mobile");
|
|
10
|
+
const ProductTile_1 = require("./ProductTile/ProductTile");
|
|
11
|
+
const TextBlock_1 = require("./TextBlock/TextBlock");
|
|
12
|
+
const Tile_1 = require("./Tile/Tile");
|
|
13
|
+
exports.MobileBlocks = {
|
|
14
|
+
Header: Header_1.Header,
|
|
15
|
+
Footer: Footer_mobile_1.Footer,
|
|
16
|
+
Placeholder: Placeholder_1.Placeholder,
|
|
17
|
+
Tile: Tile_1.Tile,
|
|
18
|
+
ProductTile: ProductTile_1.ProductTile,
|
|
19
|
+
ProductBlock: ProductBlock_mobile_1.ProductBlock,
|
|
20
|
+
TextBlock: TextBlock_1.TextBlock,
|
|
21
|
+
ExchangeRateTile: ExchangeRateTile_1.ExchangeRateTile,
|
|
22
|
+
MobileAppTile: MobileAppTile_1.MobileAppTile,
|
|
23
|
+
Gallery: Gallery_mobile_1.Gallery,
|
|
24
|
+
// TODO StepsBlock,
|
|
25
|
+
// TODO BenefitsBlock,
|
|
26
|
+
// TODO ProductGallery
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=MobileBlocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileBlocks.js","sourceRoot":"","sources":["../../src/components/MobileBlocks.ts"],"names":[],"mappings":";;AAAA,0EAAuE;AACvE,0DAAgD;AAChD,6DAAmD;AACnD,4CAAyC;AACzC,iEAA8D;AAC9D,2DAAwD;AACxD,4EAAkE;AAClE,2DAAwD;AACxD,qDAAkD;AAClD,sCAAmC;AAEtB,QAAA,YAAY,GAAG;IAC1B,MAAM,EAAN,eAAM;IACN,MAAM,EAAN,sBAAM;IACN,WAAW,EAAX,yBAAW;IACX,IAAI,EAAJ,WAAI;IACJ,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,kCAAY;IACZ,SAAS,EAAT,qBAAS;IACT,gBAAgB,EAAhB,mCAAgB;IAChB,aAAa,EAAb,6BAAa;IACb,OAAO,EAAP,wBAAO;IACP,mBAAmB;IACnB,sBAAsB;IACtB,sBAAsB;CACvB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PlaceholderContent } from '../../components/Placeholder/PlaceholderContent';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<PlaceholderProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.Placeholder = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Tile_1 = require("../Tile/Tile");
|
|
6
|
+
const GOLDEN_RATIO = 1.618;
|
|
7
|
+
exports.Placeholder = (0, uni_jsx_1.JSX)(({ className, context, title }) => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(Tile_1.Tile, { className: className, context: context, title: title, description: "\u0411\u043B\u043E\u043A \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u043A\u0435...", children: (0, jsx_runtime_1.jsx)("figure", { className: "m-0 min-w-[600px]", children: renderShimmer() }) }));
|
|
9
|
+
});
|
|
10
|
+
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
11
|
+
.map((_) => Math.floor(_))
|
|
12
|
+
.map(renderShimmerItem);
|
|
13
|
+
const renderShimmerItem = (width = 100, index) => ((0, jsx_runtime_1.jsx)("div", { style: { width: `${width}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
|
|
14
|
+
const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|
|
15
|
+
//# sourceMappingURL=Placeholder.js.map
|