@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
package/src/PromoTile.tsx
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PromoTileContent } from './PromoTileContent';
|
|
3
3
|
import { Tile } from './Tile';
|
|
4
4
|
import type { UniBlockProps } from './types';
|
|
5
5
|
|
|
6
|
-
export interface PromoTileContent extends BaseTileContent {
|
|
7
|
-
date?: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
6
|
export interface PromoTileProps extends PromoTileContent, UniBlockProps {}
|
|
11
7
|
|
|
12
8
|
export const PromoTile = JSX<PromoTileProps>(
|
package/src/StepsBlock.tsx
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { Step, StepsBlockContent } from './StepsBlockContent';
|
|
2
3
|
import type { UniBlockProps } from './types';
|
|
3
|
-
import { Icon
|
|
4
|
+
import { Icon } from './ui-kit/Icon';
|
|
4
5
|
import { Title } from './ui-kit/Title';
|
|
5
6
|
import { joinList } from './utils/joinList';
|
|
6
7
|
|
|
7
|
-
export interface Step {
|
|
8
|
-
label: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
icon?: IconName;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface StepsBlockContent {
|
|
14
|
-
title?: string;
|
|
15
|
-
steps?: Step[];
|
|
16
|
-
}
|
|
17
|
-
|
|
18
8
|
export interface StepsBlockProps extends StepsBlockContent, UniBlockProps {}
|
|
19
9
|
|
|
20
10
|
export const StepsBlock = JSX<StepsBlockProps>(({ className, title, steps }) => {
|
package/src/TextBlock.tsx
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type TextBlockIconVersion = 'none' | 'small' | 'big';
|
|
7
|
-
|
|
8
|
-
export interface TextBlockContent {
|
|
9
|
-
title?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
blockVersion?: TextBlockVersion;
|
|
12
|
-
iconVersion?: TextBlockIconVersion;
|
|
13
|
-
image?: Picture;
|
|
14
|
-
}
|
|
2
|
+
import type { Picture } from './model/Picture';
|
|
3
|
+
import type { TextBlockContent, TextBlockVersion } from './TextBlockContent';
|
|
4
|
+
import type { UniBlockProps } from './types';
|
|
5
|
+
import { Img } from './ui-kit/Img';
|
|
15
6
|
|
|
16
7
|
export interface TextBlockProps extends TextBlockContent, UniBlockProps {}
|
|
17
8
|
|
|
@@ -22,7 +13,7 @@ const textBlockStyleMaps: Record<
|
|
|
22
13
|
primary: {
|
|
23
14
|
background: 'bg-white',
|
|
24
15
|
icon: 'bg-primary-main text-white',
|
|
25
|
-
title: 'text-
|
|
16
|
+
title: 'text-primary-text',
|
|
26
17
|
description: 'text-secondary-text',
|
|
27
18
|
},
|
|
28
19
|
secondary: {
|
|
@@ -34,7 +25,7 @@ const textBlockStyleMaps: Record<
|
|
|
34
25
|
'secondary-light': {
|
|
35
26
|
background: 'bg-primary-main/10',
|
|
36
27
|
icon: 'bg-primary-main text-white',
|
|
37
|
-
title: 'text-
|
|
28
|
+
title: 'text-primary-text',
|
|
38
29
|
description: 'text-secondary-text',
|
|
39
30
|
},
|
|
40
31
|
};
|
|
@@ -49,7 +40,9 @@ export const TextBlock = JSX<TextBlockProps>(
|
|
|
49
40
|
{iconVersion && iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null}
|
|
50
41
|
{iconVersion && iconVersion === 'big' ? renderImage(image) : null}
|
|
51
42
|
<div className="py-0.5">
|
|
52
|
-
{title &&
|
|
43
|
+
{title && (
|
|
44
|
+
<div className={`font-medium text-base mb-1 ${textBlockStyleMap.title}`}>{title}</div>
|
|
45
|
+
)}
|
|
53
46
|
{description && (
|
|
54
47
|
<div className={`text-sm ${textBlockStyleMap.description}`}>{description}</div>
|
|
55
48
|
)}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Picture } from './model/Picture';
|
|
2
|
+
|
|
3
|
+
export type TextBlockVersion = 'primary' | 'secondary' | 'secondary-light';
|
|
4
|
+
export type TextBlockIconVersion = 'none' | 'small' | 'big';
|
|
5
|
+
|
|
6
|
+
export interface TextBlockContent {
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
blockVersion?: TextBlockVersion;
|
|
10
|
+
iconVersion?: TextBlockIconVersion;
|
|
11
|
+
image?: Picture;
|
|
12
|
+
}
|
package/src/Tile.fixture.tsx
CHANGED
package/src/Tile.tsx
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { BlockVersion, UniBlockProps } from './types';
|
|
3
2
|
import { BaseTile } from './BaseTile';
|
|
4
|
-
import type {
|
|
3
|
+
import type { BlockVersion } from './model/BlockVersion';
|
|
4
|
+
import type { TileContent } from './TileContent';
|
|
5
|
+
import type { UniBlockProps } from './types';
|
|
5
6
|
import { getColSpan } from './utils/getColSpan';
|
|
6
7
|
|
|
7
|
-
export interface TileProps extends
|
|
8
|
+
export interface TileProps extends TileContent, UniBlockProps {}
|
|
8
9
|
|
|
9
10
|
const tileStyleMap: Record<BlockVersion, string> = {
|
|
10
11
|
primary: 'bg-white text-primary-text',
|
package/src/common.css
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
--color-primary-active: 36, 95, 52;
|
|
8
8
|
--color-secondary-hover: 216, 242, 217;
|
|
9
9
|
--color-secondary-active: 197, 226, 198;
|
|
10
|
+
--color-gradient-from: 141, 189, 76;
|
|
11
|
+
--color-gradient-to: 69, 172, 69;
|
|
10
12
|
}
|
|
11
13
|
/* Business clients | Light-Green */
|
|
12
14
|
[data-theme='bc'] {
|
|
@@ -15,6 +17,8 @@
|
|
|
15
17
|
--color-primary-active: 60, 94, 16;
|
|
16
18
|
--color-secondary-hover: 232, 244, 217;
|
|
17
19
|
--color-secondary-active: 216, 227, 202;
|
|
20
|
+
--color-gradient-from: 141, 189, 76; /* TODO: change color to theme bc */
|
|
21
|
+
--color-gradient-to: 69, 172, 69; /* TODO: change color to theme bc */
|
|
18
22
|
}
|
|
19
23
|
/* Ecosystem own | Yellow */
|
|
20
24
|
[data-theme='eo'] {
|
|
@@ -23,6 +27,8 @@
|
|
|
23
27
|
--color-primary-active: 126, 99, 12;
|
|
24
28
|
--color-secondary-hover: 241, 236, 221;
|
|
25
29
|
--color-secondary-active: 229, 222, 199;
|
|
30
|
+
--color-gradient-from: 141, 189, 76; /* TODO: change color to theme eo */
|
|
31
|
+
--color-gradient-to: 69, 172, 69; /* TODO: change color to theme eo */
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
@tailwind components;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import util from 'util';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Picture } from '../model/Picture';
|
|
4
|
+
import type { ContentPageDef } from '../types';
|
|
4
5
|
import { mapJSON } from './mapJSON';
|
|
5
6
|
import type { TransformationOptions } from './TransformationOptions';
|
|
6
7
|
import { transformMarkdown } from './transformMarkdown';
|
|
@@ -2,7 +2,7 @@ import fs from 'fs';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import sharp from 'sharp';
|
|
4
4
|
import util from 'util';
|
|
5
|
-
import type { ImgSource, Picture } from '../
|
|
5
|
+
import type { ImgSource, Picture } from '../model/Picture';
|
|
6
6
|
import type { TransformationOptions } from './TransformationOptions';
|
|
7
7
|
|
|
8
8
|
const mkdir = util.promisify(fs.mkdir);
|
package/src/icons/AppleIcon.svg
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
<g clip-path="url(#a)">
|
|
3
|
-
<path
|
|
4
|
-
d="M19.406 12.761c-.023-3.028 2.793-4.511 2.93-4.572-1.603-2.073-4.075-2.357-4.968-2.377-2.083-.204-4.098 1.117-5.174 1.117-1.076 0-2.725-1.097-4.488-1.056-2.266.04-4.395 1.198-5.563 3.007-2.404 3.698-.618 9.124 1.694 12.09 1.145 1.464 2.496 3.09 4.259 3.028 1.717-.06 2.358-.975 4.441-.975 2.06 0 2.656.975 4.465.935 1.854-.02 3.022-1.463 4.12-2.947 1.329-1.666 1.855-3.332 1.878-3.413 0 0-3.549-1.2-3.594-4.837Zm-3.389-8.92c.916-1.037 1.557-2.419 1.374-3.841-1.35.061-3.022.833-3.984 1.829-.847.894-1.625 2.337-1.42 3.698 1.512.102 3.069-.67 4.03-1.686Z"
|
|
5
|
-
fill="#42AB44"
|
|
6
|
-
/>
|
|
7
|
-
</g>
|
|
8
|
-
<defs>
|
|
9
|
-
<clipPath id="a">
|
|
10
|
-
<rect width="24" height="24" rx="6" fill="#fff" />
|
|
11
|
-
</clipPath>
|
|
12
|
-
</defs>
|
|
13
|
-
</svg>
|
|
1
|
+
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 24"><path d="M18.406 12.761c-.023-3.028 2.793-4.511 2.93-4.572-1.603-2.073-4.075-2.357-4.968-2.377-2.083-.204-4.098 1.117-5.174 1.117-1.076 0-2.725-1.097-4.488-1.056-2.266.04-4.395 1.198-5.563 3.007-2.404 3.698-.618 9.124 1.694 12.09 1.145 1.464 2.496 3.09 4.259 3.028 1.717-.06 2.358-.975 4.441-.975 2.06 0 2.656.975 4.465.935 1.854-.02 3.022-1.463 4.12-2.947 1.329-1.666 1.855-3.332 1.878-3.413 0 0-3.549-1.2-3.594-4.837Zm-3.389-8.92c.916-1.037 1.557-2.419 1.374-3.841-1.35.061-3.022.833-3.984 1.829-.847.894-1.625 2.337-1.42 3.698 1.512.102 3.069-.67 4.03-1.686Z" fill="#42AB44"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 63 63"><g clip-path="url(#a)"><path d="M63 60.987c0-.13-.172-.259-.505-.382-3.072-.812-12.836-1.398-24.405-1.398-14.04 0-25.427.873-25.427 1.944 0 .13.172.26.505.382 3.083.812 12.837 1.399 24.406 1.399 14.04 0 25.426-.873 25.426-1.945Z" fill="#050304"/><path d="M63 60.987c0-.13-.172-.259-.505-.382-3.072-.812-12.836-1.398-24.405-1.398-14.04 0-25.427.873-25.427 1.944 0 .13.172.26.505.382 3.083.812 12.837 1.399 24.406 1.399 14.04 0 25.426-.873 25.426-1.945Z" fill="url(#b)"/><path d="M63 60.987c0-.13-.172-.259-.505-.382-3.072-.812-12.836-1.398-24.405-1.398-14.04 0-25.427.873-25.427 1.944 0 .13.172.26.505.382 3.083.812 12.837 1.399 24.406 1.399 14.04 0 25.426-.873 25.426-1.945Z" fill="#050304"/><path d="M63 60.987c0-.13-.172-.259-.505-.382-3.072-.812-12.836-1.398-24.405-1.398-14.04 0-25.427.873-25.427 1.944 0 .13.172.26.505.382 3.083.812 12.837 1.399 24.406 1.399 14.04 0 25.426-.873 25.426-1.945Z" fill="url(#c)"/><path d="M53.554 40.447a.31.31 0 0 0-.609 0l-.269 1.279a1.153 1.153 0 0 1-.89.89l-1.28.27a.31.31 0 0 0 0 .608l1.28.27c.447.093.796.443.89.89l.27 1.28a.31.31 0 0 0 .608 0l.269-1.28c.094-.447.443-.797.89-.89l1.28-.27a.31.31 0 0 0 0-.608l-1.28-.27a1.153 1.153 0 0 1-.89-.89l-.27-1.279Z" fill="#FFCA42"/><path d="M48.658 53.298H15.076a.827.827 0 0 1-.824-.824v-2.213c0-.454.37-.825.824-.825h33.582c.453 0 .824.371.824.825v2.213c0 .453-.371.824-.824.824Z" fill="#FA552D"/><path d="M48.658 53.298H15.076a.827.827 0 0 1-.824-.824v-2.213c0-.454.37-.825.824-.825h33.582c.453 0 .824.371.824.825v2.213c0 .453-.371.824-.824.824Z" fill="#42AB44"/><path d="M26.19 52.168h-.597v.552h.597v-.552Zm1.196-.42h-.598v.972h.598v-.972Zm1.195-.643h-.598v1.615h.598v-1.615Zm1.195.26h-.598v1.355h.598v-1.356Zm1.191-1.357h-.598v2.436h.598v-2.436Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.597v2.712h.597v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v1.904h.598v-1.904Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.191 0H44.7v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.597v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Z" fill="#5F1A58"/><path d="M26.19 52.168h-.597v.552h.597v-.552Zm1.196-.42h-.598v.972h.598v-.972Zm1.195-.643h-.598v1.615h.598v-1.615Zm1.195.26h-.598v1.355h.598v-1.356Zm1.191-1.357h-.598v2.436h.598v-2.436Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.597v2.712h.597v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v1.904h.598v-1.904Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.191 0H44.7v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.597v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Z" fill="#050304"/><path d="M26.19 52.168h-.597v.552h.597v-.552Zm1.196-.42h-.598v.972h.598v-.972Zm1.195-.643h-.598v1.615h.598v-1.615Zm1.195.26h-.598v1.355h.598v-1.356Zm1.191-1.357h-.598v2.436h.598v-2.436Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.597v2.712h.597v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.196 0h-.598v1.904h.598v-1.904Zm1.19 0h-.597v2.712h.598v-2.712Zm1.196 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.597v2.712h.597v-2.712Zm1.191 0H44.7v2.712h.597v-2.712Zm1.196 0h-.598v2.712h.597v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Zm1.195 0h-.598v2.712h.598v-2.712Z" fill="url(#d)"/><path d="M48.657 53.298H40.11v-3.862h8.544c.453 0 .824.371.824.824v2.214a.82.82 0 0 1-.82.824Z" fill="#050304"/><path d="M48.657 53.298H40.11v-3.862h8.544c.453 0 .824.371.824.824v2.214a.82.82 0 0 1-.82.824Z" fill="url(#e)"/><path d="M48.657 53.298H40.11v-3.862h8.544c.453 0 .824.371.824.824v2.214a.82.82 0 0 1-.82.824Z" fill="#050304"/><path d="M48.657 53.298H40.11v-3.862h8.544c.453 0 .824.371.824.824v2.214a.82.82 0 0 1-.82.824Z" fill="url(#f)"/><path d="M54.117 57.162H20.54a.827.827 0 0 1-.824-.824v-2.213c0-.454.37-.825.824-.825h33.582c.453 0 .824.371.824.825v2.213a.83.83 0 0 1-.829.824Z" fill="#42AB44"/><path d="M54.117 57.162H40.43l-20.714-2.176v-.861c0-.454.37-.825.824-.825h33.582c.453 0 .824.371.824.825v2.213a.83.83 0 0 1-.829.824Z" fill="#050304"/><path d="M54.117 57.162H40.43l-20.714-2.176v-.861c0-.454.37-.825.824-.825h33.582c.453 0 .824.371.824.825v2.213a.83.83 0 0 1-.829.824Z" fill="url(#g)"/><path d="M51.198 61.021H17.616a.827.827 0 0 1-.824-.824v-2.214c0-.453.37-.824.824-.824h33.582c.453 0 .824.371.824.825v2.213a.824.824 0 0 1-.824.824Z" fill="#050304"/><path d="M51.198 61.021H17.616a.827.827 0 0 1-.824-.824v-2.214c0-.453.37-.824.824-.824h33.582c.453 0 .824.371.824.825v2.213a.824.824 0 0 1-.824.824Z" fill="url(#h)"/><path d="M51.198 61.021H17.616a.827.827 0 0 1-.824-.824v-2.214c0-.453.37-.824.824-.824h33.582c.453 0 .824.371.824.825v2.213a.824.824 0 0 1-.824.824Z" fill="#050304"/><path d="M51.198 61.021H17.616a.827.827 0 0 1-.824-.824v-2.214c0-.453.37-.824.824-.824h33.582c.453 0 .824.371.824.825v2.213a.824.824 0 0 1-.824.824Z" fill="url(#i)"/><path d="M51.198 61.021h-8.544v-3.862h8.544c.453 0 .824.371.824.825v2.213c0 .457-.37.824-.824.824Z" fill="#050304"/><path d="M51.198 61.021h-8.544v-3.862h8.544c.453 0 .824.371.824.825v2.213c0 .457-.37.824-.824.824Z" fill="url(#j)"/><path d="M51.198 61.021h-8.544v-3.862h8.544c.453 0 .824.371.824.825v2.213c0 .457-.37.824-.824.824Z" fill="#050304"/><path d="M51.198 61.021h-8.544v-3.862h8.544c.453 0 .824.371.824.825v2.213c0 .457-.37.824-.824.824Z" fill="url(#k)"/><path d="M24.704 57.763h-.598v2.658h.598v-2.658Zm1.195.334h-.597v1.99h.597v-1.99Zm1.191.614h-.597v.762h.597v-.762Zm1.196.56h-.598v1.15h.598v-1.15Zm1.195-1.137h-.598v.956h.598v-.956Zm2.386.383h-.598v1.15h.598v-1.15Z" fill="#5F1A58"/><path d="M24.704 57.763h-.598v2.658h.598v-2.658Zm1.195.334h-.597v1.99h.597v-1.99Zm1.191.614h-.597v.762h.597v-.762Zm1.196.56h-.598v1.15h.598v-1.15Zm1.195-1.137h-.598v.956h.598v-.956Zm2.386.383h-.598v1.15h.598v-1.15Z" fill="#050304"/><path d="M24.704 57.763h-.598v2.658h.598v-2.658Zm1.195.334h-.597v1.99h.597v-1.99Zm1.191.614h-.597v.762h.597v-.762Zm1.196.56h-.598v1.15h.598v-1.15Zm1.195-1.137h-.598v.956h.598v-.956Zm2.386.383h-.598v1.15h.598v-1.15Z" fill="url(#l)"/><path d="M32.922 49.437c9.144 0 16.556-7.412 16.556-16.556 0-9.143-7.413-16.556-16.556-16.556s-16.556 7.413-16.556 16.556c0 9.144 7.413 16.556 16.556 16.556Z" fill="#050304"/><path d="M32.922 49.437c9.144 0 16.556-7.412 16.556-16.556 0-9.143-7.413-16.556-16.556-16.556s-16.556 7.413-16.556 16.556c0 9.144 7.413 16.556 16.556 16.556Z" fill="url(#m)"/><mask id="n" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="14" y="16" width="34" height="34"><path d="M30.804 49.436c9.143 0 16.556-7.412 16.556-16.556 0-9.143-7.413-16.555-16.556-16.555-9.144 0-16.556 7.412-16.556 16.555 0 9.144 7.412 16.556 16.556 16.556Z" fill="#91BD65"/></mask><g mask="url(#n)"><path d="M30.804 49.436c9.143 0 16.556-7.412 16.556-16.556 0-9.143-7.413-16.555-16.556-16.555-9.144 0-16.556 7.412-16.556 16.555 0 9.144 7.412 16.556 16.556 16.556Z" fill="url(#o)"/><path d="m24.416 27.667-7.386-8.172-2.827 1.636 6.256 6.714 3.957-.178Z" fill="#FFCA42"/><path d="m24.416 27.667-7.386-8.172-2.827 1.636 6.256 6.714 3.957-.178Z" fill="url(#p)"/><mask id="q" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="17" y="19" width="28" height="28"><path d="M30.803 46.495c7.519 0 13.614-6.095 13.614-13.613S38.322 19.27 30.803 19.27c-7.518 0-13.613 6.095-13.613 13.613s6.095 13.613 13.613 13.613Z" fill="#91BD65"/></mask><g mask="url(#q)"><path d="M30.803 46.495c7.519 0 13.614-6.095 13.614-13.613S38.322 19.27 30.803 19.27c-7.518 0-13.613 6.095-13.613 13.613s6.095 13.613 13.613 13.613Z" fill="#FA552D"/><path d="M30.803 46.495c7.519 0 13.614-6.095 13.614-13.613S38.322 19.27 30.803 19.27c-7.518 0-13.613 6.095-13.613 13.613s6.095 13.613 13.613 13.613Z" fill="url(#r)"/><path d="M30.803 46.495c7.519 0 13.614-6.095 13.614-13.613S38.322 19.27 30.803 19.27c-7.518 0-13.613 6.095-13.613 13.613s6.095 13.613 13.613 13.613Z" fill="url(#s)"/><path d="M15.888 49.14h29.369l-2.3-11.803a3.147 3.147 0 0 0-3.087-2.543H21.274a3.147 3.147 0 0 0-3.087 2.543l-2.3 11.804Z" fill="#FFCA42"/><path d="M15.888 49.14h29.369l-2.3-11.803a3.147 3.147 0 0 0-3.087-2.543H21.274a3.147 3.147 0 0 0-3.087 2.543l-2.3 11.804Z" fill="url(#t)"/></g><path d="M27.029 27.451c2.39-1.986.944-5.06-2.477-2.72-3.825 2.622-.532 5.222 2.477 2.72Z" fill="#FFCA42"/><path d="M27.029 27.451c2.39-1.986.944-5.06-2.477-2.72-3.825 2.622-.532 5.222 2.477 2.72Z" fill="url(#u)"/><path d="M31.34 20.876c-7.517 0-13.613 6.096-13.613 13.613 0 1.204.157 2.37.45 3.483a13.57 13.57 0 0 1-.986-5.09c0-7.517 6.096-13.613 13.614-13.613 6.313 0 11.622 4.303 13.163 10.135-2.02-5-6.911-8.528-12.628-8.528Z" fill="#FA552D"/><path d="M31.34 20.876c-7.517 0-13.613 6.096-13.613 13.613 0 1.204.157 2.37.45 3.483a13.57 13.57 0 0 1-.986-5.09c0-7.517 6.096-13.613 13.614-13.613 6.313 0 11.622 4.303 13.163 10.135-2.02-5-6.911-8.528-12.628-8.528Z" fill="url(#v)"/><path d="M31.34 20.876c-7.517 0-13.613 6.096-13.613 13.613 0 1.204.157 2.37.45 3.483a13.57 13.57 0 0 1-.986-5.09c0-7.517 6.096-13.613 13.614-13.613 6.313 0 11.622 4.303 13.163 10.135-2.02-5-6.911-8.528-12.628-8.528Z" fill="#050304"/><path d="M31.34 20.876c-7.517 0-13.613 6.096-13.613 13.613 0 1.204.157 2.37.45 3.483a13.57 13.57 0 0 1-.986-5.09c0-7.517 6.096-13.613 13.614-13.613 6.313 0 11.622 4.303 13.163 10.135-2.02-5-6.911-8.528-12.628-8.528Z" fill="url(#w)"/></g><path d="M21.614 6.16a.425.425 0 0 0-.833 0l-.368 1.75a1.578 1.578 0 0 1-1.22 1.22l-1.75.368a.425.425 0 0 0 0 .832l1.75.368c.613.13 1.091.607 1.22 1.22l.368 1.75a.425.425 0 0 0 .833 0l.368-1.75a1.578 1.578 0 0 1 1.219-1.22l1.75-.368a.425.425 0 0 0 0-.832l-1.75-.368a1.578 1.578 0 0 1-1.22-1.22l-.367-1.75ZM8.279 39.569a.64.64 0 0 0-1.252 0l-.553 2.632a2.372 2.372 0 0 1-1.833 1.833l-2.632.553a.64.64 0 0 0 0 1.252l2.632.553c.92.194 1.64.913 1.833 1.833l.553 2.633a.64.64 0 0 0 1.252 0l.553-2.633c.194-.92.913-1.64 1.833-1.833l2.632-.553a.64.64 0 0 0 0-1.252l-2.632-.553A2.372 2.372 0 0 1 8.832 42.2l-.553-2.632Z" fill="#FFCA42"/></g><defs><linearGradient id="b" x1="12.663" y1="61.069" x2="63" y2="61.069" gradientUnits="userSpaceOnUse"><stop stop-color="#FA552D"/><stop offset=".104" stop-color="#FA552D" stop-opacity="0"/><stop offset=".81" stop-color="#5F1A58" stop-opacity="0"/><stop offset="1" stop-color="#5F1A58"/></linearGradient><linearGradient id="c" x1="63" y1="62.932" x2="12.717" y2="62.932" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".297" stop-color="#00D63C" stop-opacity="0"/><stop offset=".833" stop-color="#FA552D" stop-opacity="0"/><stop offset="1" stop-color="#FA552D"/></linearGradient><linearGradient id="d" x1="62.165" y1="54.392" x2="15.354" y2="51.029" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="e" x1="46.244" y1="51.847" x2="40.039" y2="51.847" gradientUnits="userSpaceOnUse"><stop stop-color="#5F1A58"/><stop offset="1" stop-color="#5F1A58" stop-opacity="0"/></linearGradient><linearGradient id="f" x1="54.82" y1="55.679" x2="35.901" y2="55.295" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="g" x1="75.037" y1="59.543" x2="4.274" y2="54.143" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="h" x1="16.792" y1="59.265" x2="21.944" y2="59.265" gradientUnits="userSpaceOnUse"><stop stop-color="#FA552D"/><stop offset="1" stop-color="#FA552D" stop-opacity="0"/></linearGradient><linearGradient id="i" x1="72.113" y1="63.402" x2="1.35" y2="58.002" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="j" x1="42.757" y1="59.059" x2="48.94" y2="59.059" gradientUnits="userSpaceOnUse"><stop stop-color="#5F1A58"/><stop offset="1" stop-color="#5F1A58" stop-opacity="0"/></linearGradient><linearGradient id="k" x1="57.365" y1="63.402" x2="38.447" y2="63.018" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="l" x1="36.293" y1="62.06" x2="20.623" y2="61.677" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><linearGradient id="m" x1="55.687" y1="41.093" x2="29.024" y2="16.325" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".297" stop-color="#00D63C" stop-opacity="0"/><stop offset=".833" stop-color="#FA552D" stop-opacity="0"/><stop offset="1" stop-color="#FA552D"/></linearGradient><linearGradient id="o" x1="23.849" y1="45.931" x2="26.662" y2="14.768" gradientUnits="userSpaceOnUse"><stop stop-color="#7DC15D"/><stop offset="1" stop-color="#FEE54F"/></linearGradient><linearGradient id="p" x1="18.119" y1="22.174" x2="19.561" y2="25.265" gradientUnits="userSpaceOnUse"><stop stop-color="#FEFFCF"/><stop offset="1" stop-color="#FEFFCF" stop-opacity="0"/></linearGradient><linearGradient id="r" x1="28.215" y1="46.697" x2="28.215" y2="21.144" gradientUnits="userSpaceOnUse"><stop stop-color="#FFCA42"/><stop offset="1" stop-color="#FFCA42" stop-opacity="0"/></linearGradient><linearGradient id="s" x1="24.794" y1="25.705" x2="30.803" y2="46.495" gradientUnits="userSpaceOnUse"><stop stop-color="#7DC15D"/><stop offset="1" stop-color="#FEE54F"/></linearGradient><linearGradient id="t" x1="30.572" y1="34.794" x2="30.572" y2="40.927" gradientUnits="userSpaceOnUse"><stop stop-color="#FEFFCF"/><stop offset="1" stop-color="#FEFFCF" stop-opacity="0"/></linearGradient><linearGradient id="u" x1="24.301" y1="28.354" x2="24.919" y2="25.469" gradientUnits="userSpaceOnUse"><stop stop-color="#FEFFCF"/><stop offset="1" stop-color="#FEFFCF" stop-opacity="0"/></linearGradient><linearGradient id="v" x1="24.301" y1="20.32" x2="26.98" y2="30.005" gradientUnits="userSpaceOnUse"><stop stop-color="#5F1A58"/><stop offset="1" stop-color="#5F1A58" stop-opacity="0"/></linearGradient><linearGradient id="w" x1="59.239" y1="49.504" x2="5.149" y2="48.856" gradientUnits="userSpaceOnUse"><stop stop-color="#04D600"/><stop offset=".7" stop-color="#00D63C" stop-opacity="0"/></linearGradient><clipPath id="a"><path fill="#fff" d="M0 0h63v63H0z"/></clipPath></defs></svg>
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
<path
|
|
3
|
-
d="M1 22.427V2.576C1 1.883 1.447 1.284 2.094 1L14.85 12.498 2.089 24a1.89 1.89 0 0 1-.795-.646A1.625 1.625 0 0 1 1 22.427Zm17.899-6.282-13.95 7.259 11.002-9.915 2.948 2.656Zm4.335-5.035c.237.162.428.37.561.61.133.239.203.502.205.77.002.267-.064.53-.193.771s-.317.452-.551.617l-2.964 1.542-3.241-2.922 3.24-2.92 2.944 1.532ZM4.959 1.598l13.938 7.253-2.945 2.654L4.958 1.598Z"
|
|
4
|
-
fill="#42AB44"
|
|
5
|
-
/>
|
|
6
|
-
</svg>
|
|
1
|
+
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23"><path d="M0 21.427V1.576C0 .883.447.284 1.094 0L13.85 11.498 1.089 23a1.89 1.89 0 0 1-.795-.646A1.625 1.625 0 0 1 0 21.427Zm17.899-6.282-13.95 7.259 11.002-9.915 2.948 2.656Zm4.335-5.035c.237.162.428.37.561.61.133.239.203.502.205.77.002.267-.064.53-.193.771s-.317.452-.551.617l-2.964 1.542-3.241-2.922 3.24-2.92 2.944 1.532ZM3.959.598l13.938 7.253-2.945 2.654L3.958.598Z" fill="#42AB44"/></svg>
|
package/src/index.ts
CHANGED
|
@@ -6,17 +6,10 @@ export { projectSettings } from './ProjectSettings';
|
|
|
6
6
|
export { LikeAPI } from './api/LikeAPI';
|
|
7
7
|
export { DaDataAPI } from './api/DaDataAPI';
|
|
8
8
|
|
|
9
|
-
export type {
|
|
9
|
+
export type { SitemapContent } from './model/SitemapContent';
|
|
10
10
|
|
|
11
|
-
export type {
|
|
12
|
-
|
|
13
|
-
UniBlockProps,
|
|
14
|
-
ContentPageMeta,
|
|
15
|
-
ContentPageDef,
|
|
16
|
-
Img,
|
|
17
|
-
ImgSource,
|
|
18
|
-
Picture,
|
|
19
|
-
} from './types';
|
|
11
|
+
export type { Img, ImgSource, Picture } from './model/Picture';
|
|
12
|
+
export type { BlockDef, UniBlockProps, ContentPageMeta, ContentPageDef } from './types';
|
|
20
13
|
export type {
|
|
21
14
|
ContentPageContext,
|
|
22
15
|
Router,
|
|
@@ -33,7 +26,7 @@ export { ContentPage } from './ContentPage';
|
|
|
33
26
|
export { toMobilePage } from './toMobilePage';
|
|
34
27
|
|
|
35
28
|
export { Blocks } from './Blocks';
|
|
36
|
-
export type { BlockContent } from './
|
|
29
|
+
export type { BlockContent } from './BlockContent';
|
|
37
30
|
export { MobileBlocks } from './MobileBlocks';
|
|
38
31
|
|
|
39
32
|
export * as url from './utils/url';
|
package/src/mergeTopItems.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LinkContent } from './model/LinkContent';
|
|
2
2
|
|
|
3
|
-
const cmp = (a?:
|
|
3
|
+
const cmp = (a?: LinkContent) => (b?: LinkContent) => a?.href === b?.href;
|
|
4
4
|
|
|
5
|
-
const substitute = (items?:
|
|
5
|
+
const substitute = <L extends LinkContent>(items?: L[], substitution?: L[]): L[] =>
|
|
6
6
|
(items || []).map((_) => substitution?.find(cmp(_)) || _);
|
|
7
7
|
|
|
8
|
-
const subtract = (minuend?:
|
|
8
|
+
const subtract = <L extends LinkContent>(minuend?: L[], subtrahend?: L[]): L[] =>
|
|
9
9
|
(minuend || []).filter((_) => !subtrahend?.find(cmp(_)));
|
|
10
10
|
|
|
11
|
-
export function mergeTopItems(left?:
|
|
11
|
+
export function mergeTopItems<L extends LinkContent>(left?: L[], right?: L[]): L[] {
|
|
12
12
|
return substitute(left, right).concat(subtract(right, left));
|
|
13
13
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type BlockVersion = 'primary' | 'secondary';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ButtonVersion = 'primary' | 'secondary';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GalleryVersion = 'normal' | 'mini';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface Img {
|
|
2
|
+
src: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface ImgSource {
|
|
8
|
+
src: string;
|
|
9
|
+
format?: 'jpeg' | 'jpg' | 'png' | 'gif' | 'webp' | 'heif' | 'avif';
|
|
10
|
+
options?: Record<string, any>;
|
|
11
|
+
size?: {
|
|
12
|
+
width?: number;
|
|
13
|
+
height?: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface Picture extends Img, ImgSource {
|
|
18
|
+
sources?: ImgSource[];
|
|
19
|
+
}
|
package/src/types.ts
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
AvifOptions,
|
|
3
|
-
FormatEnum,
|
|
4
|
-
GifOptions,
|
|
5
|
-
HeifOptions,
|
|
6
|
-
JpegOptions,
|
|
7
|
-
PngOptions,
|
|
8
|
-
ResizeOptions,
|
|
9
|
-
TiffOptions,
|
|
10
|
-
WebpOptions,
|
|
11
|
-
} from 'sharp';
|
|
12
|
-
import type { BlockContent } from './Blocks';
|
|
1
|
+
import type { BlockContent } from './BlockContent';
|
|
13
2
|
import type { ContentPageContext } from './ContentPageContext';
|
|
3
|
+
import type { BlockVersion } from './model/BlockVersion';
|
|
14
4
|
|
|
15
5
|
export type ColorPalette = 'pc' | 'bc' | 'eo';
|
|
16
6
|
|
|
17
|
-
export type BlockVersion = 'primary' | 'secondary';
|
|
18
|
-
export type ButtonVersion = 'primary' | 'secondary';
|
|
19
7
|
export interface BlockDef {
|
|
20
8
|
type: string;
|
|
21
9
|
style?: string[];
|
|
@@ -43,53 +31,11 @@ export interface ContentPageDef extends ContentPageMeta {
|
|
|
43
31
|
colorPalette?: ColorPalette;
|
|
44
32
|
}
|
|
45
33
|
|
|
46
|
-
export interface Img {
|
|
47
|
-
src: string;
|
|
48
|
-
alt?: string;
|
|
49
|
-
title?: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface ImgSource {
|
|
53
|
-
src: string;
|
|
54
|
-
format?: keyof FormatEnum;
|
|
55
|
-
options?:
|
|
56
|
-
| JpegOptions
|
|
57
|
-
| PngOptions
|
|
58
|
-
| WebpOptions
|
|
59
|
-
| AvifOptions
|
|
60
|
-
| HeifOptions
|
|
61
|
-
| GifOptions
|
|
62
|
-
| TiffOptions;
|
|
63
|
-
size?: ResizeOptions;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface Picture extends Img, ImgSource {
|
|
67
|
-
sources?: ImgSource[];
|
|
68
|
-
}
|
|
69
|
-
|
|
70
34
|
export interface UniBlockProps {
|
|
71
35
|
className?: string;
|
|
72
36
|
context: ContentPageContext;
|
|
73
37
|
}
|
|
74
38
|
|
|
75
|
-
export interface ContactInfo {
|
|
76
|
-
text: string;
|
|
77
|
-
type: 'tel' | 'email';
|
|
78
|
-
description: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface LinkContent {
|
|
82
|
-
text?: string;
|
|
83
|
-
href?: string;
|
|
84
|
-
target?: '_blank' | '_self' | '_parent' | '_top' | string;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export type NavMenuItem = LinkContent;
|
|
88
|
-
|
|
89
|
-
export interface TopMenuItem extends NavMenuItem {
|
|
90
|
-
items?: NavMenuItem[];
|
|
91
|
-
}
|
|
92
|
-
|
|
93
39
|
export interface DaDataResult {
|
|
94
40
|
suggestions?: DaDataSuggestion<DaDataAddress>[];
|
|
95
41
|
}
|
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { Button } from './Button';
|
|
3
|
+
import { ButtonProps } from './ButtonProps';
|
|
4
|
+
import { SVG } from './SVG';
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const ARROW_PATHS = [
|
|
7
|
+
{
|
|
8
|
+
d: 'm9 12 4-4-4-4',
|
|
9
|
+
stroke: 'currentColor',
|
|
10
|
+
strokeWidth: '2',
|
|
11
|
+
strokeLinecap: 'round',
|
|
12
|
+
fill: 'none',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
d: 'M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z',
|
|
16
|
+
},
|
|
17
|
+
];
|
|
8
18
|
|
|
9
|
-
export const ArrowButton = JSX<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
-
>
|
|
25
|
-
<path d="M7 12L3 8L7 4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" />
|
|
26
|
-
<path
|
|
27
|
-
d="M14 9C14.5523 9 15 8.55228 15 8C15 7.44772 14.5523 7 14 7L14 9ZM8 7C7.44772 7 7 7.44772 7 8C7 8.55229 7.44772 9 8 9L8 7ZM14 7L8 7L8 9L14 9L14 7Z"
|
|
28
|
-
fill="currentColor"
|
|
29
|
-
/>
|
|
30
|
-
</svg>
|
|
31
|
-
</button>
|
|
32
|
-
);
|
|
33
|
-
});
|
|
19
|
+
export const ArrowButton = JSX<ButtonProps>(({ className, disabled, ...rest }) => (
|
|
20
|
+
<Button
|
|
21
|
+
rounded
|
|
22
|
+
className={`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${
|
|
23
|
+
disabled
|
|
24
|
+
? 'bg-secondary-light text-secondary-text'
|
|
25
|
+
: 'bg-white text-primary-text hover:text-primary-main'
|
|
26
|
+
} ${className || ''}`}
|
|
27
|
+
disabled={disabled}
|
|
28
|
+
{...rest}
|
|
29
|
+
>
|
|
30
|
+
<SVG paths={ARROW_PATHS} viewBox="0 0 16 16" fill="none" width="16" height="16" />
|
|
31
|
+
</Button>
|
|
32
|
+
));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../setup-fixture';
|
|
2
2
|
|
|
3
3
|
import { Button } from './Button';
|
|
4
|
-
import {
|
|
4
|
+
import { Icon } from './Icon';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
all: (
|
|
@@ -64,21 +64,49 @@ export default {
|
|
|
64
64
|
<div>
|
|
65
65
|
<p>With Icon</p>
|
|
66
66
|
<div className="flex gap-6" data-theme="pc">
|
|
67
|
-
<
|
|
67
|
+
<Button
|
|
68
68
|
href="https://www.rshb.ru/"
|
|
69
69
|
target="_blank"
|
|
70
70
|
aboveText="Доступно в"
|
|
71
|
+
appendLeft={
|
|
72
|
+
/** Div need for perfect pixel */
|
|
73
|
+
<div>
|
|
74
|
+
<Icon name="PlayMarketIcon" width="24" height="24" />
|
|
75
|
+
</div>
|
|
76
|
+
}
|
|
71
77
|
text="Google Play"
|
|
72
78
|
version="secondary"
|
|
73
|
-
icon="PlayMarketIcon"
|
|
74
79
|
/>
|
|
75
|
-
<
|
|
80
|
+
<Button
|
|
76
81
|
href="https://www.rshb.ru/"
|
|
77
82
|
target="_blank"
|
|
78
83
|
aboveText="Загрузите в"
|
|
84
|
+
appendLeft={
|
|
85
|
+
<div>
|
|
86
|
+
<Icon name="AppleIcon" width="24" height="24" />
|
|
87
|
+
</div>
|
|
88
|
+
}
|
|
79
89
|
text="App Store"
|
|
80
90
|
version="secondary"
|
|
81
|
-
|
|
91
|
+
/>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
<div>
|
|
95
|
+
<p>Rounded with only Icon</p>
|
|
96
|
+
<div className="flex gap-6" data-theme="pc">
|
|
97
|
+
<Button
|
|
98
|
+
rounded
|
|
99
|
+
href="https://www.rshb.ru/"
|
|
100
|
+
target="_blank"
|
|
101
|
+
version="secondary"
|
|
102
|
+
appendLeft={<Icon name="PlayMarketIcon" width="20" height="21" />}
|
|
103
|
+
/>
|
|
104
|
+
<Button
|
|
105
|
+
rounded
|
|
106
|
+
href="https://www.rshb.ru/"
|
|
107
|
+
target="_blank"
|
|
108
|
+
version="secondary"
|
|
109
|
+
appendLeft={<Icon name="AppleIcon" width="18" height="20" />}
|
|
82
110
|
/>
|
|
83
111
|
</div>
|
|
84
112
|
</div>
|