@redneckz/wildless-cms-uni-blocks 0.2.71 → 0.2.74
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 +1022 -0
- package/bundle/bundle.umd.js +152 -71
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/BaseTile.d.ts +2 -12
- package/dist/BaseTile.js +9 -4
- package/dist/BaseTile.js.map +1 -1
- package/dist/BaseTileContent.d.ts +13 -0
- package/dist/BaseTileContent.js +2 -0
- package/dist/BaseTileContent.js.map +1 -0
- package/dist/BenefitsBlock.d.ts +1 -10
- package/dist/BenefitsBlock.js.map +1 -1
- package/dist/BenefitsBlockContent.d.ts +10 -0
- package/dist/BenefitsBlockContent.js +2 -0
- package/dist/BenefitsBlockContent.js.map +1 -0
- package/dist/BlockContent.d.ts +16 -0
- package/dist/BlockContent.js +2 -0
- package/dist/BlockContent.js.map +1 -0
- package/dist/Blocks.d.ts +2 -15
- package/dist/Blocks.js +11 -7
- package/dist/Blocks.js.map +1 -1
- package/dist/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/dist/ComparisonTable/ComparisonTable.js +34 -0
- package/dist/ComparisonTable/ComparisonTable.js.map +1 -0
- package/dist/ComparisonTable/ComparisonTableContent.d.ts +37 -0
- package/dist/ComparisonTable/ComparisonTableContent.js +2 -0
- package/dist/ComparisonTable/ComparisonTableContent.js.map +1 -0
- package/dist/ComparisonTable/HeaderCell.d.ts +10 -0
- package/dist/ComparisonTable/HeaderCell.js +11 -0
- package/dist/ComparisonTable/HeaderCell.js.map +1 -0
- package/dist/ComparisonTable/TableCarouselContainer.d.ts +4 -0
- package/dist/ComparisonTable/TableCarouselContainer.js +7 -0
- package/dist/ComparisonTable/TableCarouselContainer.js.map +1 -0
- package/dist/ComparisonTable/TableCell.d.ts +8 -0
- package/dist/ComparisonTable/TableCell.js +12 -0
- package/dist/ComparisonTable/TableCell.js.map +1 -0
- package/dist/ComparisonTable/TableRow.d.ts +10 -0
- package/dist/ComparisonTable/TableRow.js +10 -0
- package/dist/ComparisonTable/TableRow.js.map +1 -0
- package/dist/ComparisonTable/TableRowContainer.d.ts +4 -0
- package/dist/ComparisonTable/TableRowContainer.js +6 -0
- package/dist/ComparisonTable/TableRowContainer.js.map +1 -0
- package/dist/ComparisonTable/constants.d.ts +6 -0
- package/dist/ComparisonTable/constants.js +9 -0
- package/dist/ComparisonTable/constants.js.map +1 -0
- package/dist/ComparisonTable/index.d.ts +3 -0
- package/dist/ComparisonTable/index.js +5 -0
- package/dist/ComparisonTable/index.js.map +1 -0
- package/dist/ContentPage.d.ts +1 -1
- package/dist/ExchangeRateTile.d.ts +1 -3
- package/dist/ExchangeRateTile.js +1 -0
- package/dist/ExchangeRateTile.js.map +1 -1
- package/dist/ExchangeRateTileContent.d.ts +3 -0
- package/dist/ExchangeRateTileContent.js +2 -0
- package/dist/ExchangeRateTileContent.js.map +1 -0
- package/dist/Footer/Contacts.d.ts +2 -1
- package/dist/Footer/Contacts.js +1 -1
- package/dist/Footer/Contacts.js.map +1 -1
- package/dist/Footer/Footer.d.ts +2 -8
- package/dist/Footer/Footer.js +1 -1
- package/dist/Footer/Footer.js.map +1 -1
- package/dist/Footer/Footer.mobile.d.ts +1 -1
- package/dist/Footer/FooterContent.d.ts +13 -0
- package/dist/Footer/FooterContent.js +2 -0
- package/dist/Footer/FooterContent.js.map +1 -0
- package/dist/Footer/FooterLink.d.ts +1 -1
- package/dist/Footer/Sitemap.d.ts +2 -1
- package/dist/Footer/Sitemap.js.map +1 -1
- package/dist/Footer/SocialMedia.d.ts +2 -1
- package/dist/Footer/SocialMedia.js +4 -1
- package/dist/Footer/SocialMedia.js.map +1 -1
- package/dist/Gallery.d.ts +2 -13
- package/dist/Gallery.js +2 -32
- package/dist/Gallery.js.map +1 -1
- package/dist/Gallery.mobile.d.ts +1 -1
- package/dist/Gallery.mobile.js +1 -1
- package/dist/Gallery.mobile.js.map +1 -1
- package/dist/GalleryContent.d.ts +13 -0
- package/dist/GalleryContent.js +2 -0
- package/dist/GalleryContent.js.map +1 -0
- package/dist/GalleryInner.d.ts +7 -0
- package/dist/GalleryInner.js +46 -0
- package/dist/GalleryInner.js.map +1 -0
- package/dist/Header/HeaderContent.d.ts +2 -3
- package/dist/Header/isSubItemActive.d.ts +1 -1
- package/dist/Header/isTopItemActive.d.ts +1 -1
- package/dist/MiniGallery.d.ts +5 -0
- package/dist/MiniGallery.js +7 -0
- package/dist/MiniGallery.js.map +1 -0
- package/dist/MobileAppTile.d.ts +1 -9
- package/dist/MobileAppTile.js.map +1 -1
- package/dist/MobileAppTileContent.d.ts +9 -0
- package/dist/MobileAppTileContent.js +2 -0
- package/dist/MobileAppTileContent.js.map +1 -0
- package/dist/MobileBlocks.js +2 -2
- package/dist/MobileBlocks.js.map +1 -1
- package/dist/Placeholder.d.ts +1 -3
- package/dist/Placeholder.js.map +1 -1
- package/dist/PlaceholderContent.d.ts +3 -0
- package/dist/PlaceholderContent.js +2 -0
- package/dist/PlaceholderContent.js.map +1 -0
- package/dist/ProductBlock.d.ts +2 -4
- package/dist/ProductBlock.js.map +1 -1
- package/dist/ProductBlock.mobile.d.ts +1 -1
- package/dist/ProductBlock.mobile.js.map +1 -1
- package/dist/ProductBlockContent.d.ts +5 -0
- package/dist/ProductBlockContent.js +2 -0
- package/dist/ProductBlockContent.js.map +1 -0
- package/dist/ProductBlockInner.d.ts +1 -5
- package/dist/ProductBlockInner.js +3 -3
- package/dist/ProductBlockInner.js.map +1 -1
- package/dist/ProductBlockInnerContent.d.ts +5 -0
- package/dist/ProductBlockInnerContent.js +2 -0
- package/dist/ProductBlockInnerContent.js.map +1 -0
- package/dist/ProductGallery.d.ts +1 -14
- package/dist/ProductGallery.js.map +1 -1
- package/dist/ProductGalleryContent.d.ts +14 -0
- package/dist/ProductGalleryContent.js +2 -0
- package/dist/ProductGalleryContent.js.map +1 -0
- package/dist/ProductTile.d.ts +1 -5
- package/dist/ProductTile.js.map +1 -1
- package/dist/ProductTileContent.d.ts +5 -0
- package/dist/ProductTileContent.js +2 -0
- package/dist/ProductTileContent.js.map +1 -0
- package/dist/PromoTile.d.ts +1 -4
- package/dist/PromoTile.js.map +1 -1
- package/dist/PromoTileContent.d.ts +4 -0
- package/dist/PromoTileContent.js +2 -0
- package/dist/PromoTileContent.js.map +1 -0
- package/dist/StepsBlock.d.ts +1 -10
- package/dist/StepsBlock.js.map +1 -1
- package/dist/StepsBlockContent.d.ts +10 -0
- package/dist/StepsBlockContent.js +2 -0
- package/dist/StepsBlockContent.js.map +1 -0
- package/dist/TextBlock.d.ts +2 -11
- package/dist/TextBlock.js +4 -4
- package/dist/TextBlock.js.map +1 -1
- package/dist/TextBlockContent.d.ts +10 -0
- package/dist/TextBlockContent.js +2 -0
- package/dist/TextBlockContent.js.map +1 -0
- package/dist/Tile.d.ts +2 -2
- package/dist/Tile.js.map +1 -1
- package/dist/TileContent.d.ts +2 -0
- package/dist/TileContent.js +2 -0
- package/dist/TileContent.js.map +1 -0
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/content-page-repository/transformPicture.d.ts +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js.map +1 -1
- package/dist/mergeTopItems.d.ts +2 -2
- package/dist/mergeTopItems.js.map +1 -1
- package/dist/model/BlockVersion.d.ts +1 -0
- package/dist/model/BlockVersion.js +2 -0
- package/dist/model/BlockVersion.js.map +1 -0
- package/dist/model/ButtonVersion.d.ts +1 -0
- package/dist/model/ButtonVersion.js +2 -0
- package/dist/model/ButtonVersion.js.map +1 -0
- package/dist/model/GalleryVersion.d.ts +1 -0
- package/dist/model/GalleryVersion.js +2 -0
- package/dist/model/GalleryVersion.js.map +1 -0
- package/dist/model/LinkContent.d.ts +5 -0
- package/dist/model/LinkContent.js +2 -0
- package/dist/model/LinkContent.js.map +1 -0
- package/dist/model/Picture.d.ts +17 -0
- package/dist/model/Picture.js +2 -0
- package/dist/model/Picture.js.map +1 -0
- package/dist/model/SitemapContent.d.ts +7 -0
- package/dist/model/SitemapContent.js +2 -0
- package/dist/model/SitemapContent.js.map +1 -0
- package/dist/types.d.ts +2 -32
- package/dist/ui-kit/ArrowButton.d.ts +2 -6
- package/dist/ui-kit/ArrowButton.js +17 -3
- package/dist/ui-kit/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Breadcrumb.d.ts +1 -1
- package/dist/ui-kit/Button.d.ts +2 -8
- package/dist/ui-kit/Button.js +11 -5
- package/dist/ui-kit/Button.js.map +1 -1
- package/dist/ui-kit/ButtonProps.d.ts +21 -0
- package/dist/ui-kit/ButtonProps.js +2 -0
- package/dist/ui-kit/ButtonProps.js.map +1 -0
- package/dist/ui-kit/Icon.d.ts +1 -10
- package/dist/ui-kit/Icon.js.map +1 -1
- package/dist/ui-kit/IconProps.d.ts +32 -0
- package/dist/ui-kit/IconProps.js +26 -0
- package/dist/ui-kit/IconProps.js.map +1 -0
- package/dist/{Img.d.ts → ui-kit/Img.d.ts} +1 -1
- package/dist/{Img.js → ui-kit/Img.js} +0 -0
- package/dist/ui-kit/Img.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/Title.d.ts +1 -10
- package/dist/ui-kit/Title.js +3 -9
- package/dist/ui-kit/Title.js.map +1 -1
- package/dist/ui-kit/TitleProps.d.ts +10 -0
- package/dist/ui-kit/TitleProps.js +10 -0
- package/dist/ui-kit/TitleProps.js.map +1 -0
- package/dist/ui-kit/TopItem.d.ts +1 -1
- package/dist/useLink.d.ts +5 -2
- package/dist/useLink.js.map +1 -1
- package/dist/useSitemap.d.ts +1 -1
- package/lib/BaseTile.d.ts +2 -12
- package/lib/BaseTile.js +9 -4
- package/lib/BaseTile.js.map +1 -1
- package/lib/BaseTileContent.d.ts +13 -0
- package/lib/BaseTileContent.js +2 -0
- package/lib/BaseTileContent.js.map +1 -0
- package/lib/BenefitsBlock.d.ts +1 -10
- package/lib/BenefitsBlock.js.map +1 -1
- package/lib/BenefitsBlockContent.d.ts +10 -0
- package/lib/BenefitsBlockContent.js +2 -0
- package/lib/BenefitsBlockContent.js.map +1 -0
- package/lib/BlockContent.d.ts +16 -0
- package/lib/BlockContent.js +2 -0
- package/lib/BlockContent.js.map +1 -0
- package/lib/Blocks.d.ts +2 -15
- package/lib/Blocks.js +9 -5
- package/lib/Blocks.js.map +1 -1
- package/lib/ComparisonTable/ComparisonTable.d.ts +5 -0
- package/lib/ComparisonTable/ComparisonTable.js +32 -0
- package/lib/ComparisonTable/ComparisonTable.js.map +1 -0
- package/lib/ComparisonTable/ComparisonTableContent.d.ts +37 -0
- package/lib/ComparisonTable/ComparisonTableContent.js +2 -0
- package/lib/ComparisonTable/ComparisonTableContent.js.map +1 -0
- package/lib/ComparisonTable/HeaderCell.d.ts +10 -0
- package/lib/ComparisonTable/HeaderCell.js +9 -0
- package/lib/ComparisonTable/HeaderCell.js.map +1 -0
- package/lib/ComparisonTable/TableCarouselContainer.d.ts +4 -0
- package/lib/ComparisonTable/TableCarouselContainer.js +5 -0
- package/lib/ComparisonTable/TableCarouselContainer.js.map +1 -0
- package/lib/ComparisonTable/TableCell.d.ts +8 -0
- package/lib/ComparisonTable/TableCell.js +10 -0
- package/lib/ComparisonTable/TableCell.js.map +1 -0
- package/lib/ComparisonTable/TableRow.d.ts +10 -0
- package/lib/ComparisonTable/TableRow.js +8 -0
- package/lib/ComparisonTable/TableRow.js.map +1 -0
- package/lib/ComparisonTable/TableRowContainer.d.ts +4 -0
- package/lib/ComparisonTable/TableRowContainer.js +4 -0
- package/lib/ComparisonTable/TableRowContainer.js.map +1 -0
- package/lib/ComparisonTable/constants.d.ts +6 -0
- package/lib/ComparisonTable/constants.js +7 -0
- package/lib/ComparisonTable/constants.js.map +1 -0
- package/lib/ComparisonTable/index.d.ts +3 -0
- package/lib/ComparisonTable/index.js +2 -0
- package/lib/ComparisonTable/index.js.map +1 -0
- package/lib/ContentPage.d.ts +1 -1
- package/lib/ExchangeRateTile.d.ts +1 -3
- package/lib/ExchangeRateTile.js +1 -0
- package/lib/ExchangeRateTile.js.map +1 -1
- package/lib/ExchangeRateTileContent.d.ts +3 -0
- package/lib/ExchangeRateTileContent.js +2 -0
- package/lib/ExchangeRateTileContent.js.map +1 -0
- package/lib/Footer/Contacts.d.ts +2 -1
- package/lib/Footer/Contacts.js +1 -1
- package/lib/Footer/Contacts.js.map +1 -1
- package/lib/Footer/Footer.d.ts +2 -8
- package/lib/Footer/Footer.js +1 -1
- package/lib/Footer/Footer.js.map +1 -1
- package/lib/Footer/Footer.mobile.d.ts +1 -1
- package/lib/Footer/FooterContent.d.ts +13 -0
- package/lib/Footer/FooterContent.js +2 -0
- package/lib/Footer/FooterContent.js.map +1 -0
- package/lib/Footer/FooterLink.d.ts +1 -1
- package/lib/Footer/Sitemap.d.ts +2 -1
- package/lib/Footer/Sitemap.js.map +1 -1
- package/lib/Footer/SocialMedia.d.ts +2 -1
- package/lib/Footer/SocialMedia.js +4 -1
- package/lib/Footer/SocialMedia.js.map +1 -1
- package/lib/Gallery.d.ts +2 -13
- package/lib/Gallery.js +3 -33
- package/lib/Gallery.js.map +1 -1
- package/lib/Gallery.mobile.d.ts +1 -1
- package/lib/Gallery.mobile.js +1 -1
- package/lib/Gallery.mobile.js.map +1 -1
- package/lib/GalleryContent.d.ts +13 -0
- package/lib/GalleryContent.js +2 -0
- package/lib/GalleryContent.js.map +1 -0
- package/lib/GalleryInner.d.ts +7 -0
- package/lib/GalleryInner.js +44 -0
- package/lib/GalleryInner.js.map +1 -0
- package/lib/Header/HeaderContent.d.ts +2 -3
- package/lib/Header/isSubItemActive.d.ts +1 -1
- package/lib/Header/isTopItemActive.d.ts +1 -1
- package/lib/MiniGallery.d.ts +5 -0
- package/lib/MiniGallery.js +5 -0
- package/lib/MiniGallery.js.map +1 -0
- package/lib/MobileAppTile.d.ts +1 -9
- package/lib/MobileAppTile.js.map +1 -1
- package/lib/MobileAppTileContent.d.ts +9 -0
- package/lib/MobileAppTileContent.js +2 -0
- package/lib/MobileAppTileContent.js.map +1 -0
- package/lib/MobileBlocks.js +1 -1
- package/lib/MobileBlocks.js.map +1 -1
- package/lib/Placeholder.d.ts +1 -3
- package/lib/Placeholder.js.map +1 -1
- package/lib/PlaceholderContent.d.ts +3 -0
- package/lib/PlaceholderContent.js +2 -0
- package/lib/PlaceholderContent.js.map +1 -0
- package/lib/ProductBlock.d.ts +2 -4
- package/lib/ProductBlock.js.map +1 -1
- package/lib/ProductBlock.mobile.d.ts +1 -1
- package/lib/ProductBlock.mobile.js.map +1 -1
- package/lib/ProductBlockContent.d.ts +5 -0
- package/lib/ProductBlockContent.js +2 -0
- package/lib/ProductBlockContent.js.map +1 -0
- package/lib/ProductBlockInner.d.ts +1 -5
- package/lib/ProductBlockInner.js +3 -3
- package/lib/ProductBlockInner.js.map +1 -1
- package/lib/ProductBlockInnerContent.d.ts +5 -0
- package/lib/ProductBlockInnerContent.js +2 -0
- package/lib/ProductBlockInnerContent.js.map +1 -0
- package/lib/ProductGallery.d.ts +1 -14
- package/lib/ProductGallery.js.map +1 -1
- package/lib/ProductGalleryContent.d.ts +14 -0
- package/lib/ProductGalleryContent.js +2 -0
- package/lib/ProductGalleryContent.js.map +1 -0
- package/lib/ProductTile.d.ts +1 -5
- package/lib/ProductTile.js.map +1 -1
- package/lib/ProductTileContent.d.ts +5 -0
- package/lib/ProductTileContent.js +2 -0
- package/lib/ProductTileContent.js.map +1 -0
- package/lib/PromoTile.d.ts +1 -4
- package/lib/PromoTile.js.map +1 -1
- package/lib/PromoTileContent.d.ts +4 -0
- package/lib/PromoTileContent.js +2 -0
- package/lib/PromoTileContent.js.map +1 -0
- package/lib/StepsBlock.d.ts +1 -10
- package/lib/StepsBlock.js.map +1 -1
- package/lib/StepsBlockContent.d.ts +10 -0
- package/lib/StepsBlockContent.js +2 -0
- package/lib/StepsBlockContent.js.map +1 -0
- package/lib/TextBlock.d.ts +2 -11
- package/lib/TextBlock.js +4 -4
- package/lib/TextBlock.js.map +1 -1
- package/lib/TextBlockContent.d.ts +10 -0
- package/lib/TextBlockContent.js +2 -0
- package/lib/TextBlockContent.js.map +1 -0
- package/lib/Tile.d.ts +2 -2
- package/lib/Tile.js.map +1 -1
- package/lib/TileContent.d.ts +2 -0
- package/lib/TileContent.js +2 -0
- package/lib/TileContent.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/content-page-repository/transformPicture.d.ts +1 -1
- package/lib/index.d.ts +4 -3
- package/lib/index.js.map +1 -1
- package/lib/mergeTopItems.d.ts +2 -2
- package/lib/mergeTopItems.js.map +1 -1
- package/lib/model/BlockVersion.d.ts +1 -0
- package/lib/model/BlockVersion.js +2 -0
- package/lib/model/BlockVersion.js.map +1 -0
- package/lib/model/ButtonVersion.d.ts +1 -0
- package/lib/model/ButtonVersion.js +2 -0
- package/lib/model/ButtonVersion.js.map +1 -0
- package/lib/model/GalleryVersion.d.ts +1 -0
- package/lib/model/GalleryVersion.js +2 -0
- package/lib/model/GalleryVersion.js.map +1 -0
- package/lib/model/LinkContent.d.ts +5 -0
- package/lib/model/LinkContent.js +2 -0
- package/lib/model/LinkContent.js.map +1 -0
- package/lib/model/Picture.d.ts +17 -0
- package/lib/model/Picture.js +2 -0
- package/lib/model/Picture.js.map +1 -0
- package/lib/model/SitemapContent.d.ts +7 -0
- package/lib/model/SitemapContent.js +2 -0
- package/lib/model/SitemapContent.js.map +1 -0
- package/lib/types.d.ts +2 -32
- package/lib/ui-kit/ArrowButton.d.ts +2 -6
- package/lib/ui-kit/ArrowButton.js +18 -4
- package/lib/ui-kit/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Breadcrumb.d.ts +1 -1
- package/lib/ui-kit/Button.d.ts +2 -8
- package/lib/ui-kit/Button.js +11 -5
- package/lib/ui-kit/Button.js.map +1 -1
- package/lib/ui-kit/ButtonProps.d.ts +21 -0
- package/lib/ui-kit/ButtonProps.js +2 -0
- package/lib/ui-kit/ButtonProps.js.map +1 -0
- package/lib/ui-kit/Icon.d.ts +1 -10
- package/lib/ui-kit/Icon.js.map +1 -1
- package/lib/ui-kit/IconProps.d.ts +32 -0
- package/lib/ui-kit/IconProps.js +24 -0
- package/lib/ui-kit/IconProps.js.map +1 -0
- package/lib/{Img.d.ts → ui-kit/Img.d.ts} +1 -1
- package/lib/{Img.js → ui-kit/Img.js} +0 -0
- package/lib/ui-kit/Img.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/Title.d.ts +1 -10
- package/lib/ui-kit/Title.js +1 -7
- package/lib/ui-kit/Title.js.map +1 -1
- package/lib/ui-kit/TitleProps.d.ts +10 -0
- package/lib/ui-kit/TitleProps.js +8 -0
- package/lib/ui-kit/TitleProps.js.map +1 -0
- package/lib/ui-kit/TopItem.d.ts +1 -1
- package/lib/useLink.d.ts +5 -2
- package/lib/useLink.js.map +1 -1
- package/lib/useSitemap.d.ts +1 -1
- package/package.json +5 -2
- package/src/BaseTile.tsx +21 -17
- package/src/BaseTileContent.ts +14 -0
- package/src/BenefitsBlock.tsx +2 -12
- package/src/BenefitsBlockContent.ts +12 -0
- package/src/BlockContent.ts +32 -0
- package/src/Blocks.ts +16 -30
- package/src/ComparisonTable/ComparisonTable.fixture.tsx +265 -0
- package/src/ComparisonTable/ComparisonTable.tsx +126 -0
- package/src/ComparisonTable/ComparisonTableContent.ts +43 -0
- package/src/ComparisonTable/HeaderCell.tsx +50 -0
- package/src/ComparisonTable/TableCarouselContainer.tsx +19 -0
- package/src/ComparisonTable/TableCell.tsx +43 -0
- package/src/ComparisonTable/TableRow.tsx +44 -0
- package/src/ComparisonTable/TableRowContainer.tsx +7 -0
- package/src/ComparisonTable/constants.ts +6 -0
- package/src/ComparisonTable/index.ts +3 -0
- package/src/ContentPage.page.json +463 -1
- package/src/ContentPage.tsx +1 -1
- package/src/ExchangeRateTile.tsx +3 -5
- package/src/ExchangeRateTileContent.ts +3 -0
- package/src/Footer/Contacts.tsx +3 -1
- package/src/Footer/Footer.mobile.tsx +1 -1
- package/src/Footer/Footer.tsx +3 -10
- package/src/Footer/FooterContent.ts +15 -0
- package/src/Footer/FooterLink.ts +1 -1
- package/src/Footer/HorizontalNavigation.tsx +2 -2
- package/src/Footer/Sitemap.tsx +3 -2
- package/src/Footer/SocialMedia.tsx +13 -7
- package/src/Footer/TextInformation.tsx +1 -1
- package/src/Gallery.fixture.tsx +1 -1
- package/src/Gallery.mobile.tsx +3 -2
- package/src/Gallery.tsx +4 -133
- package/src/GalleryContent.ts +15 -0
- package/src/GalleryInner.tsx +135 -0
- package/src/Header/HeaderContent.ts +2 -3
- package/src/Header/isSubItemActive.ts +1 -1
- package/src/Header/isTopItemActive.ts +1 -1
- package/src/MiniGallery.fixture.tsx +90 -0
- package/src/MiniGallery.tsx +10 -0
- package/src/MobileAppTile.tsx +1 -11
- package/src/MobileAppTileContent.ts +11 -0
- package/src/MobileBlocks.ts +1 -1
- package/src/Placeholder.tsx +1 -4
- package/src/PlaceholderContent.ts +3 -0
- package/src/ProductBlock.fixture.tsx +1 -1
- package/src/ProductBlock.mobile.tsx +1 -1
- package/src/ProductBlock.tsx +3 -5
- package/src/ProductBlockContent.ts +6 -0
- package/src/ProductBlockInner.tsx +5 -9
- package/src/ProductBlockInnerContent.ts +6 -0
- package/src/ProductGallery.fixture.tsx +1 -1
- package/src/ProductGallery.tsx +2 -16
- package/src/ProductGalleryContent.ts +16 -0
- package/src/ProductTile.fixture.tsx +1 -1
- package/src/ProductTile.tsx +3 -7
- package/src/ProductTileContent.ts +6 -0
- package/src/PromoTile.tsx +1 -5
- package/src/PromoTileContent.ts +5 -0
- package/src/StepsBlock.tsx +2 -12
- package/src/StepsBlockContent.ts +12 -0
- package/src/TextBlock.fixture.tsx +1 -1
- package/src/TextBlock.tsx +9 -16
- package/src/TextBlockContent.ts +12 -0
- package/src/Tile.fixture.tsx +1 -1
- package/src/Tile.tsx +4 -3
- package/src/TileContent.ts +3 -0
- package/src/common.css +6 -0
- package/src/content-page-repository/transformContentPage.ts +2 -1
- package/src/content-page-repository/transformPicture.ts +1 -1
- 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 +4 -11
- package/src/mergeTopItems.ts +5 -5
- package/src/model/BlockVersion.ts +1 -0
- package/src/model/ButtonVersion.ts +1 -0
- package/src/model/GalleryVersion.ts +1 -0
- package/src/model/LinkContent.ts +5 -0
- package/src/model/Picture.ts +19 -0
- package/src/model/SitemapContent.ts +9 -0
- package/src/types.ts +2 -56
- package/src/ui-kit/ArrowButton.tsx +29 -30
- package/src/ui-kit/Breadcrumb.tsx +1 -1
- package/src/ui-kit/Button.fixture.tsx +33 -5
- package/src/ui-kit/Button.tsx +42 -25
- package/src/ui-kit/ButtonProps.ts +24 -0
- package/src/ui-kit/Icon.fixture.tsx +22 -0
- package/src/ui-kit/Icon.tsx +1 -32
- package/src/ui-kit/IconProps.ts +34 -0
- package/src/{Img.tsx → ui-kit/Img.tsx} +1 -1
- package/src/ui-kit/SVG.tsx +11 -2
- package/src/ui-kit/Title.tsx +1 -13
- package/src/ui-kit/TitleProps.ts +12 -0
- package/src/ui-kit/TopItem.tsx +1 -1
- package/src/useLink.ts +2 -2
- package/src/useSitemap.ts +1 -1
- package/dist/Footer/index.d.ts +0 -2
- package/dist/Footer/index.js +0 -5
- package/dist/Footer/index.js.map +0 -1
- package/dist/Header/index.d.ts +0 -3
- package/dist/Header/index.js +0 -5
- package/dist/Header/index.js.map +0 -1
- package/dist/Img.js.map +0 -1
- package/dist/ui-kit/IconButton.d.ts +0 -7
- package/dist/ui-kit/IconButton.js +0 -10
- package/dist/ui-kit/IconButton.js.map +0 -1
- package/lib/Footer/index.d.ts +0 -2
- package/lib/Footer/index.js +0 -2
- package/lib/Footer/index.js.map +0 -1
- package/lib/Header/index.d.ts +0 -3
- package/lib/Header/index.js +0 -2
- package/lib/Header/index.js.map +0 -1
- package/lib/Img.js.map +0 -1
- package/lib/ui-kit/IconButton.d.ts +0 -7
- package/lib/ui-kit/IconButton.js +0 -8
- package/lib/ui-kit/IconButton.js.map +0 -1
- package/src/Footer/index.ts +0 -2
- package/src/Header/index.ts +0 -3
- package/src/ui-kit/IconButton.tsx +0 -27
|
@@ -819,7 +819,469 @@
|
|
|
819
819
|
]
|
|
820
820
|
}
|
|
821
821
|
},
|
|
822
|
-
|
|
822
|
+
{
|
|
823
|
+
"type": "MiniGallery",
|
|
824
|
+
"style": ["col-span-12"],
|
|
825
|
+
"content": {
|
|
826
|
+
"title": "Вы можете оплатить бонусными баллами",
|
|
827
|
+
"description": "Удобный каталог с большим ассортиментом товаров и сервисов",
|
|
828
|
+
"cards": [
|
|
829
|
+
{
|
|
830
|
+
"image": {
|
|
831
|
+
"src": "domovoj-kupon.png",
|
|
832
|
+
"title": "Деньги",
|
|
833
|
+
"format": "webp",
|
|
834
|
+
"size": {
|
|
835
|
+
"width": 120,
|
|
836
|
+
"height": 70
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
"title": "Более 5000 товаров",
|
|
840
|
+
"description": "Время копить: ставка растет в зависимости от срока нахождения средств на Счете!"
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"image": {
|
|
844
|
+
"src": "domovoj-kupon.png",
|
|
845
|
+
"title": "Деньги",
|
|
846
|
+
"format": "webp",
|
|
847
|
+
"size": {
|
|
848
|
+
"width": 120,
|
|
849
|
+
"height": 70
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"title": "Более 1000 развлечений",
|
|
853
|
+
"description": "Порядок и условия предоставления в соответствии с 106 ФЗ"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"image": {
|
|
857
|
+
"src": "domovoj-kupon.png",
|
|
858
|
+
"title": "Деньги",
|
|
859
|
+
"format": "webp",
|
|
860
|
+
"size": {
|
|
861
|
+
"width": 120,
|
|
862
|
+
"height": 70
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"title": "Фермерские продукты",
|
|
866
|
+
"description": "Высокий процент даже при небольшой сумме денежных средств"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"image": {
|
|
870
|
+
"src": "domovoj-kupon.png",
|
|
871
|
+
"title": "Деньги",
|
|
872
|
+
"format": "webp",
|
|
873
|
+
"size": {
|
|
874
|
+
"width": 120,
|
|
875
|
+
"height": 70
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
"title": "«Моя выгода»",
|
|
879
|
+
"description": "Время копить: ставка растет в зависимости от срока нахождения средств на Счете!"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"image": {
|
|
883
|
+
"src": "domovoj-kupon.png",
|
|
884
|
+
"title": "Деньги",
|
|
885
|
+
"format": "webp",
|
|
886
|
+
"size": {
|
|
887
|
+
"width": 120,
|
|
888
|
+
"height": 70
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"title": "Фермерские продукты",
|
|
892
|
+
"description": "Высокий процент даже при небольшой сумме денежных средств"
|
|
893
|
+
}
|
|
894
|
+
]
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"type": "ComparisonTable",
|
|
899
|
+
"style": ["col-span-12"],
|
|
900
|
+
"content": {
|
|
901
|
+
"title": "Другие вклады и сбережения",
|
|
902
|
+
"rowHeaders": [
|
|
903
|
+
{
|
|
904
|
+
"title": "Начисление процентов на остаток по счету"
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"title": "Снятие наличных"
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
"title": "Оформление онлайн"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"title": "Кэшбэк баллами"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"title": "Стоимость обслуживания"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"title": "Стоимость SMS-сервиса"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"title": "Дополнительная информация"
|
|
923
|
+
}
|
|
924
|
+
],
|
|
925
|
+
"columns": [
|
|
926
|
+
{
|
|
927
|
+
"header": {
|
|
928
|
+
"title": "Россельхоз-Росснефть",
|
|
929
|
+
"image": {
|
|
930
|
+
"alt": "card-1",
|
|
931
|
+
"src": "card-1.png",
|
|
932
|
+
"format": "webp",
|
|
933
|
+
"size": {
|
|
934
|
+
"width": 100,
|
|
935
|
+
"height": 63
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
"link": {
|
|
939
|
+
"text": "Подробнее",
|
|
940
|
+
"href": "/credits"
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
"data": [
|
|
944
|
+
[
|
|
945
|
+
{
|
|
946
|
+
"label": "Нет"
|
|
947
|
+
}
|
|
948
|
+
],
|
|
949
|
+
[
|
|
950
|
+
{
|
|
951
|
+
"label": "Бесплатно",
|
|
952
|
+
"description": "В банкоматах и кассах Россельхозбанка и банков-партнеров"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"label": "Бесплатно",
|
|
956
|
+
"description": "В сторонних банкоматах - 1 раз в месяц, далее 1% минимум 150 руб"
|
|
957
|
+
}
|
|
958
|
+
],
|
|
959
|
+
[
|
|
960
|
+
{
|
|
961
|
+
"label": "Нет"
|
|
962
|
+
}
|
|
963
|
+
],
|
|
964
|
+
[
|
|
965
|
+
{
|
|
966
|
+
"label": "До 7%"
|
|
967
|
+
}
|
|
968
|
+
],
|
|
969
|
+
[
|
|
970
|
+
{
|
|
971
|
+
"label": "Бесплатно",
|
|
972
|
+
"description": "При обороте по карте от 10000 ₽ в месяц"
|
|
973
|
+
}
|
|
974
|
+
],
|
|
975
|
+
[
|
|
976
|
+
{
|
|
977
|
+
"label": "69 рублей в месяц"
|
|
978
|
+
}
|
|
979
|
+
],
|
|
980
|
+
[
|
|
981
|
+
{
|
|
982
|
+
"description": "Оплачивайте покупки картой и заправляйтесь за баллы в сети АЗС Роснефть"
|
|
983
|
+
}
|
|
984
|
+
]
|
|
985
|
+
]
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"header": {
|
|
989
|
+
"title": "Panasonic",
|
|
990
|
+
"image": {
|
|
991
|
+
"alt": "card-2",
|
|
992
|
+
"src": "card-2.png",
|
|
993
|
+
"format": "webp",
|
|
994
|
+
"size": {
|
|
995
|
+
"width": 100,
|
|
996
|
+
"height": 63
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"link": {
|
|
1000
|
+
"text": "Подробнее",
|
|
1001
|
+
"href": "/credits"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"data": [
|
|
1005
|
+
[
|
|
1006
|
+
{
|
|
1007
|
+
"label": "Нет"
|
|
1008
|
+
}
|
|
1009
|
+
],
|
|
1010
|
+
[
|
|
1011
|
+
{
|
|
1012
|
+
"label": "Бесплатно",
|
|
1013
|
+
"description": "В банкоматах и кассах Россельхозбанка и банков-партнеров"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"label": "1%",
|
|
1017
|
+
"description": "В сторонних банкоматах, минимум 150 руб"
|
|
1018
|
+
}
|
|
1019
|
+
],
|
|
1020
|
+
[
|
|
1021
|
+
{
|
|
1022
|
+
"label": "Нет"
|
|
1023
|
+
}
|
|
1024
|
+
],
|
|
1025
|
+
[
|
|
1026
|
+
{
|
|
1027
|
+
"label": "До 20%"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
[
|
|
1031
|
+
{
|
|
1032
|
+
"label": "Бесплатно",
|
|
1033
|
+
"description": "При обороте по карте от 10000 ₽ в месяц"
|
|
1034
|
+
}
|
|
1035
|
+
],
|
|
1036
|
+
[
|
|
1037
|
+
{
|
|
1038
|
+
"label": "69 рублей в месяц"
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
[
|
|
1042
|
+
{
|
|
1043
|
+
"description": "Копите баллы каждый день и обменивайте их на скидки на электронику и бытовую технику Panasonic"
|
|
1044
|
+
}
|
|
1045
|
+
]
|
|
1046
|
+
]
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"header": {
|
|
1050
|
+
"title": "Профсоюзная",
|
|
1051
|
+
"image": {
|
|
1052
|
+
"alt": "card-3",
|
|
1053
|
+
"src": "card-3.png",
|
|
1054
|
+
"format": "webp",
|
|
1055
|
+
"size": {
|
|
1056
|
+
"width": 100,
|
|
1057
|
+
"height": 63
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"link": {
|
|
1061
|
+
"text": "Подробнее",
|
|
1062
|
+
"href": "/credits"
|
|
1063
|
+
}
|
|
1064
|
+
},
|
|
1065
|
+
"data": [
|
|
1066
|
+
[
|
|
1067
|
+
{
|
|
1068
|
+
"label": "Нет"
|
|
1069
|
+
}
|
|
1070
|
+
],
|
|
1071
|
+
[
|
|
1072
|
+
{
|
|
1073
|
+
"label": "Бесплатно"
|
|
1074
|
+
}
|
|
1075
|
+
],
|
|
1076
|
+
[
|
|
1077
|
+
{
|
|
1078
|
+
"label": "Есть"
|
|
1079
|
+
}
|
|
1080
|
+
],
|
|
1081
|
+
[
|
|
1082
|
+
{
|
|
1083
|
+
"label": "До 20%"
|
|
1084
|
+
}
|
|
1085
|
+
],
|
|
1086
|
+
[
|
|
1087
|
+
{
|
|
1088
|
+
"label": "Бесплатно",
|
|
1089
|
+
"description": "При обороте по карте от 10000 ₽ в месяц"
|
|
1090
|
+
}
|
|
1091
|
+
],
|
|
1092
|
+
[
|
|
1093
|
+
{
|
|
1094
|
+
"label": "69 рублей в месяц"
|
|
1095
|
+
}
|
|
1096
|
+
],
|
|
1097
|
+
[
|
|
1098
|
+
{
|
|
1099
|
+
"description": "Для членов профсоюзных организаций"
|
|
1100
|
+
}
|
|
1101
|
+
]
|
|
1102
|
+
]
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"header": {
|
|
1106
|
+
"title": "Россельхоз-Росснефть",
|
|
1107
|
+
"image": {
|
|
1108
|
+
"alt": "card-1",
|
|
1109
|
+
"src": "card-1.png",
|
|
1110
|
+
"format": "webp",
|
|
1111
|
+
"size": {
|
|
1112
|
+
"width": 100,
|
|
1113
|
+
"height": 63
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
"link": {
|
|
1117
|
+
"text": "Подробнее",
|
|
1118
|
+
"href": "/credits"
|
|
1119
|
+
}
|
|
1120
|
+
},
|
|
1121
|
+
"data": [
|
|
1122
|
+
[
|
|
1123
|
+
{
|
|
1124
|
+
"label": "Нет"
|
|
1125
|
+
}
|
|
1126
|
+
],
|
|
1127
|
+
[
|
|
1128
|
+
{
|
|
1129
|
+
"label": "Бесплатно",
|
|
1130
|
+
"description": "В банкоматах и кассах Россельхозбанка и банков-партнеров"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"label": "Бесплатно",
|
|
1134
|
+
"description": "В сторонних банкоматах - 1 раз в месяц, далее 1% минимум 150 руб"
|
|
1135
|
+
}
|
|
1136
|
+
],
|
|
1137
|
+
[
|
|
1138
|
+
{
|
|
1139
|
+
"label": "Нет"
|
|
1140
|
+
}
|
|
1141
|
+
],
|
|
1142
|
+
[
|
|
1143
|
+
{
|
|
1144
|
+
"label": "До 7%"
|
|
1145
|
+
}
|
|
1146
|
+
],
|
|
1147
|
+
[
|
|
1148
|
+
{
|
|
1149
|
+
"label": "Бесплатно",
|
|
1150
|
+
"description": "При обороте по карте от 10000 ₽ в месяц"
|
|
1151
|
+
}
|
|
1152
|
+
],
|
|
1153
|
+
[
|
|
1154
|
+
{
|
|
1155
|
+
"label": "69 рублей в месяц"
|
|
1156
|
+
}
|
|
1157
|
+
],
|
|
1158
|
+
[
|
|
1159
|
+
{
|
|
1160
|
+
"description": "Оплачивайте покупки картой и заправляйтесь за баллы в сети АЗС Роснефть"
|
|
1161
|
+
}
|
|
1162
|
+
]
|
|
1163
|
+
]
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"header": {
|
|
1167
|
+
"title": "Panasonic",
|
|
1168
|
+
"image": {
|
|
1169
|
+
"alt": "card-2",
|
|
1170
|
+
"src": "card-2.png",
|
|
1171
|
+
"format": "webp",
|
|
1172
|
+
"size": {
|
|
1173
|
+
"width": 100,
|
|
1174
|
+
"height": 63
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
"link": {
|
|
1178
|
+
"text": "Подробнее",
|
|
1179
|
+
"href": "/credits"
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
"data": [
|
|
1183
|
+
[
|
|
1184
|
+
{
|
|
1185
|
+
"label": "Нет"
|
|
1186
|
+
}
|
|
1187
|
+
],
|
|
1188
|
+
[
|
|
1189
|
+
{
|
|
1190
|
+
"label": "Бесплатно",
|
|
1191
|
+
"description": "В банкоматах и кассах Россельхозбанка и банков-партнеров"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"label": "1%",
|
|
1195
|
+
"description": "В сторонних банкоматах, минимум 150 руб"
|
|
1196
|
+
}
|
|
1197
|
+
],
|
|
1198
|
+
[
|
|
1199
|
+
{
|
|
1200
|
+
"label": "Нет"
|
|
1201
|
+
}
|
|
1202
|
+
],
|
|
1203
|
+
[
|
|
1204
|
+
{
|
|
1205
|
+
"label": "До 20%"
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
[
|
|
1209
|
+
{
|
|
1210
|
+
"label": "Бесплатно",
|
|
1211
|
+
"description": "При обороте по карте от 10000 ₽ в месяц"
|
|
1212
|
+
}
|
|
1213
|
+
],
|
|
1214
|
+
[
|
|
1215
|
+
{
|
|
1216
|
+
"label": "69 рублей в месяц"
|
|
1217
|
+
}
|
|
1218
|
+
],
|
|
1219
|
+
[
|
|
1220
|
+
{
|
|
1221
|
+
"description": "Копите баллы каждый день и обменивайте их на скидки на электронику и бытовую технику Panasonic"
|
|
1222
|
+
}
|
|
1223
|
+
]
|
|
1224
|
+
]
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"header": {
|
|
1228
|
+
"title": "Профсоюзная",
|
|
1229
|
+
"image": {
|
|
1230
|
+
"alt": "card-3",
|
|
1231
|
+
"src": "card-3.png",
|
|
1232
|
+
"format": "webp",
|
|
1233
|
+
"size": {
|
|
1234
|
+
"width": 100,
|
|
1235
|
+
"height": 63
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
"link": {
|
|
1239
|
+
"text": "Подробнее",
|
|
1240
|
+
"href": "/credits"
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
"data": [
|
|
1244
|
+
[
|
|
1245
|
+
{
|
|
1246
|
+
"label": "Нет"
|
|
1247
|
+
}
|
|
1248
|
+
],
|
|
1249
|
+
[
|
|
1250
|
+
{
|
|
1251
|
+
"label": "Бесплатно"
|
|
1252
|
+
}
|
|
1253
|
+
],
|
|
1254
|
+
[
|
|
1255
|
+
{
|
|
1256
|
+
"label": "Есть"
|
|
1257
|
+
}
|
|
1258
|
+
],
|
|
1259
|
+
[
|
|
1260
|
+
{
|
|
1261
|
+
"label": "До 20%"
|
|
1262
|
+
}
|
|
1263
|
+
],
|
|
1264
|
+
[
|
|
1265
|
+
{
|
|
1266
|
+
"label": "Бесплатно",
|
|
1267
|
+
"description": "При обороте по карте от 10000 ₽ в месяц"
|
|
1268
|
+
}
|
|
1269
|
+
],
|
|
1270
|
+
[
|
|
1271
|
+
{
|
|
1272
|
+
"label": "69 рублей в месяц"
|
|
1273
|
+
}
|
|
1274
|
+
],
|
|
1275
|
+
[
|
|
1276
|
+
{
|
|
1277
|
+
"description": "Для членов профсоюзных организаций"
|
|
1278
|
+
}
|
|
1279
|
+
]
|
|
1280
|
+
]
|
|
1281
|
+
}
|
|
1282
|
+
]
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
823
1285
|
{
|
|
824
1286
|
"type": "Footer",
|
|
825
1287
|
"style": ["col-span-12"],
|
package/src/ContentPage.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, PropsWithChildren } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { BlockContent } from './
|
|
2
|
+
import type { BlockContent } from './BlockContent';
|
|
3
3
|
import { LikeControl } from './LikeControl';
|
|
4
4
|
import { Placeholder } from './Placeholder';
|
|
5
5
|
import type { BlockDef, ContentPageDef, UniBlockProps } from './types';
|
package/src/ExchangeRateTile.tsx
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { ExchangeRateTileContent } from './ExchangeRateTileContent';
|
|
2
3
|
import { Tile } from './Tile';
|
|
3
4
|
import type { UniBlockProps } from './types';
|
|
4
|
-
import { ButtonProps } from './ui-kit/
|
|
5
|
+
import type { ButtonProps } from './ui-kit/ButtonProps';
|
|
5
6
|
import { Icon } from './ui-kit/Icon';
|
|
6
7
|
|
|
7
|
-
export interface ExchangeRateTileContent {
|
|
8
|
-
title?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
8
|
export interface ExchangeRateTileProps extends ExchangeRateTileContent, UniBlockProps {}
|
|
12
9
|
|
|
13
10
|
const CBR_EXCHANGE_RATE_URL = 'https://www.cbr-xml-daily.ru/daily_json.js';
|
|
@@ -22,6 +19,7 @@ const buttons: ButtonProps[] = [
|
|
|
22
19
|
{
|
|
23
20
|
text: 'Все показатели',
|
|
24
21
|
href: 'https://cbr.ru/currency_base/daily/',
|
|
22
|
+
version: 'secondary',
|
|
25
23
|
},
|
|
26
24
|
];
|
|
27
25
|
|
package/src/Footer/Contacts.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { UniBlockProps
|
|
2
|
+
import type { UniBlockProps } from '../types';
|
|
3
3
|
import { Button } from '../ui-kit/Button';
|
|
4
4
|
import { useLink } from '../useLink';
|
|
5
|
+
import type { ContactInfo } from './FooterContent';
|
|
5
6
|
|
|
6
7
|
export interface ContactsProps extends UniBlockProps {
|
|
7
8
|
items?: ContactInfo[];
|
|
@@ -17,6 +18,7 @@ export const Contacts = JSX<ContactsProps>(({ className, items, hasButton, conte
|
|
|
17
18
|
{items?.length ? items.map(renderContact) : null}
|
|
18
19
|
{hasButton ? (
|
|
19
20
|
<Button
|
|
21
|
+
version="primary"
|
|
20
22
|
className="my-4"
|
|
21
23
|
{...useLink(
|
|
22
24
|
{ router, handlerDecorator },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../types';
|
|
3
|
-
import type { FooterContent } from './
|
|
3
|
+
import type { FooterContent } from './FooterContent';
|
|
4
4
|
import { TextInformation } from './TextInformation';
|
|
5
5
|
|
|
6
6
|
export interface FooterProps extends FooterContent, UniBlockProps {}
|
package/src/Footer/Footer.tsx
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../types';
|
|
2
3
|
import { Logo } from '../ui-kit/Logo';
|
|
3
4
|
import { SearchBar } from '../ui-kit/SearchBar';
|
|
4
5
|
import { Contacts } from './Contacts';
|
|
6
|
+
import type { FooterContent } from './FooterContent';
|
|
7
|
+
import { HorizontalNavigation } from './HorizontalNavigation';
|
|
5
8
|
import { Sitemap } from './Sitemap';
|
|
6
9
|
import { SocialMedia } from './SocialMedia';
|
|
7
|
-
import { HorizontalNavigation } from './HorizontalNavigation';
|
|
8
10
|
import { TextInformation } from './TextInformation';
|
|
9
|
-
import type { LinkContent, UniBlockProps, ContactInfo, TopMenuItem } from '../types';
|
|
10
11
|
|
|
11
12
|
const LEFT_COL_WIDTH_FULL_HD = 'w-[280px]';
|
|
12
13
|
const LEFT_COL_WIDTH_SMALL_DESKTOP = 'xl:w-[220px]';
|
|
13
14
|
|
|
14
|
-
export interface FooterContent {
|
|
15
|
-
documents?: LinkContent[];
|
|
16
|
-
relatedEnterprises?: LinkContent[];
|
|
17
|
-
contacts?: ContactInfo[];
|
|
18
|
-
socialMedia?: Omit<LinkContent, 'text'>[];
|
|
19
|
-
topItems?: TopMenuItem[];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
15
|
export interface FooterProps extends FooterContent, UniBlockProps {}
|
|
23
16
|
|
|
24
17
|
export const Footer = JSX<FooterProps>(
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LinkContent } from '../model/LinkContent';
|
|
2
|
+
import type { SitemapContent } from '../model/SitemapContent';
|
|
3
|
+
|
|
4
|
+
export interface ContactInfo {
|
|
5
|
+
text: string;
|
|
6
|
+
type: 'tel' | 'email';
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface FooterContent extends SitemapContent {
|
|
11
|
+
documents?: LinkContent[];
|
|
12
|
+
relatedEnterprises?: LinkContent[];
|
|
13
|
+
contacts?: ContactInfo[];
|
|
14
|
+
socialMedia?: Omit<LinkContent, 'text'>[];
|
|
15
|
+
}
|
package/src/Footer/FooterLink.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import
|
|
2
|
+
import { LinkContent } from '../model/LinkContent';
|
|
3
3
|
import { useLink } from '../useLink';
|
|
4
|
-
import {
|
|
4
|
+
import type { FooterLink } from './FooterLink';
|
|
5
5
|
|
|
6
6
|
export const HorizontalNavigation = JSX<FooterLink>(({ className, links, context }) => {
|
|
7
7
|
const router = context.useRouter();
|
package/src/Footer/Sitemap.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { Router, HandlerDecorator } from '../ContentPageContext';
|
|
3
2
|
import { mergeTopItems } from '../mergeTopItems';
|
|
4
|
-
import type { LinkContent
|
|
3
|
+
import type { LinkContent } from '../model/LinkContent';
|
|
4
|
+
import type { TopMenuItem } from '../model/SitemapContent';
|
|
5
|
+
import type { UniBlockProps } from '../types';
|
|
5
6
|
import { useLink } from '../useLink';
|
|
6
7
|
import { useSitemap } from '../useSitemap';
|
|
7
8
|
export interface SitemapProps extends UniBlockProps {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { LinkContent
|
|
3
|
-
import {
|
|
2
|
+
import type { LinkContent } from '../model/LinkContent';
|
|
3
|
+
import type { UniBlockProps } from '../types';
|
|
4
|
+
import { Icon } from '../ui-kit/Icon';
|
|
5
|
+
import type { IconName } from '../ui-kit/IconProps';
|
|
4
6
|
import { useLink } from '../useLink';
|
|
7
|
+
import { Button } from '../ui-kit/Button';
|
|
5
8
|
|
|
6
9
|
const ICONS_MAP: Array<{ origins: string[]; icon: IconName; label: string }> = [
|
|
7
10
|
{ origins: ['t.me', 'telegram.org'], icon: 'TelegramIcon', label: 'Телеграм' },
|
|
@@ -32,15 +35,18 @@ interface MediaButtonProps {
|
|
|
32
35
|
const MediaButton = JSX<MediaButtonProps>(({ href }) => {
|
|
33
36
|
const { icon, label } =
|
|
34
37
|
ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
38
|
+
|
|
39
|
+
if (!icon) return null;
|
|
40
|
+
|
|
35
41
|
return (
|
|
36
|
-
<
|
|
37
|
-
|
|
42
|
+
<Button
|
|
43
|
+
rounded
|
|
38
44
|
href={href}
|
|
39
45
|
target="_blank"
|
|
40
46
|
rel="noopener noreferrer"
|
|
41
47
|
aria-label={label}
|
|
42
|
-
|
|
43
|
-
{
|
|
44
|
-
|
|
48
|
+
className="border-solid border border-main-divider w-9 h-9 flex items-center justify-center hover:text-primary-main"
|
|
49
|
+
appendLeft={<Icon name={icon} />}
|
|
50
|
+
/>
|
|
45
51
|
);
|
|
46
52
|
});
|
package/src/Gallery.fixture.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { context } from './setup-fixture';
|
|
|
2
2
|
|
|
3
3
|
import { Gallery, GalleryProps } from './Gallery';
|
|
4
4
|
import { Gallery as MobileGallery } from './Gallery.mobile';
|
|
5
|
-
import { Picture } from './
|
|
5
|
+
import type { Picture } from './model/Picture';
|
|
6
6
|
|
|
7
7
|
const image: Picture = {
|
|
8
8
|
src: 'money-1.png',
|
package/src/Gallery.mobile.tsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { GalleryProps } from './Gallery';
|
|
3
|
+
import type { GalleryCard } from './GalleryContent';
|
|
4
4
|
import { BlockItem } from './ui-kit/BlockItem';
|
|
5
5
|
import { Button } from './ui-kit/Button';
|
|
6
|
+
import { Img } from './ui-kit/Img';
|
|
6
7
|
import { Title } from './ui-kit/Title';
|
|
7
8
|
|
|
8
9
|
export const Gallery = JSX<GalleryProps>(({ title, description, cards = [], className }) => {
|