@redneckz/wildless-cms-uni-blocks 0.2.70 → 0.2.73
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 +933 -0
- package/bundle/bundle.umd.js +880 -862
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/BaseTile.d.ts +2 -12
- 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 +15 -0
- package/dist/BlockContent.js +2 -0
- package/dist/BlockContent.js.map +1 -0
- package/dist/Blocks.d.ts +1 -15
- package/dist/Blocks.js +9 -7
- package/dist/Blocks.js.map +1 -1
- package/dist/ContentPage.d.ts +1 -1
- package/dist/ExchangeRateTile.d.ts +1 -3
- 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.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.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.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 +48 -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/Img.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.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.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 +5 -3
- package/dist/index.js +3 -1
- 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/Breadcrumb.d.ts +1 -1
- package/dist/ui-kit/Button.d.ts +1 -8
- package/dist/ui-kit/Button.js.map +1 -1
- package/dist/ui-kit/ButtonProps.d.ts +9 -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/IconButton.d.ts +1 -6
- package/dist/ui-kit/IconButton.js.map +1 -1
- package/dist/ui-kit/IconButtonProps.d.ts +6 -0
- package/dist/ui-kit/IconButtonProps.js +2 -0
- package/dist/ui-kit/IconButtonProps.js.map +1 -0
- package/dist/ui-kit/IconProps.d.ts +10 -0
- package/dist/ui-kit/IconProps.js +2 -0
- package/dist/ui-kit/IconProps.js.map +1 -0
- 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.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 +15 -0
- package/lib/BlockContent.js +2 -0
- package/lib/BlockContent.js.map +1 -0
- package/lib/Blocks.d.ts +1 -15
- package/lib/Blocks.js +7 -5
- package/lib/Blocks.js.map +1 -1
- package/lib/ContentPage.d.ts +1 -1
- package/lib/ExchangeRateTile.d.ts +1 -3
- 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.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.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.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 +46 -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/Img.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.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.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 +5 -3
- package/lib/index.js +1 -0
- 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/Breadcrumb.d.ts +1 -1
- package/lib/ui-kit/Button.d.ts +1 -8
- package/lib/ui-kit/Button.js.map +1 -1
- package/lib/ui-kit/ButtonProps.d.ts +9 -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/IconButton.d.ts +1 -6
- package/lib/ui-kit/IconButton.js.map +1 -1
- package/lib/ui-kit/IconButtonProps.d.ts +6 -0
- package/lib/ui-kit/IconButtonProps.js +2 -0
- package/lib/ui-kit/IconButtonProps.js.map +1 -0
- package/lib/ui-kit/IconProps.d.ts +10 -0
- package/lib/ui-kit/IconProps.js +2 -0
- package/lib/ui-kit/IconProps.js.map +1 -0
- 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 +5 -13
- package/src/BaseTileContent.ts +14 -0
- package/src/BenefitsBlock.tsx +2 -12
- package/src/BenefitsBlockContent.ts +12 -0
- package/src/BlockContent.ts +30 -0
- package/src/Blocks.ts +14 -30
- package/src/ContentPage.page.json +75 -0
- package/src/ContentPage.tsx +1 -1
- package/src/ExchangeRateTile.tsx +2 -5
- package/src/ExchangeRateTileContent.ts +3 -0
- package/src/Footer/Contacts.tsx +2 -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 +4 -2
- package/src/Footer/TextInformation.tsx +1 -1
- package/src/Gallery.fixture.tsx +1 -1
- package/src/Gallery.mobile.tsx +2 -1
- package/src/Gallery.tsx +4 -133
- package/src/GalleryContent.ts +15 -0
- package/src/GalleryInner.tsx +140 -0
- package/src/Header/HeaderContent.ts +2 -3
- package/src/Header/isSubItemActive.ts +1 -1
- package/src/Header/isTopItemActive.ts +1 -1
- package/src/Img.tsx +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 +2 -6
- 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 +3 -12
- 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/content-page-repository/transformContentPage.ts +2 -1
- package/src/content-page-repository/transformPicture.ts +1 -1
- package/src/index.ts +6 -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/Breadcrumb.tsx +1 -1
- package/src/ui-kit/Button.tsx +2 -9
- package/src/ui-kit/ButtonProps.ts +10 -0
- package/src/ui-kit/Icon.tsx +1 -32
- package/src/ui-kit/IconButton.tsx +2 -7
- package/src/ui-kit/IconButtonProps.ts +7 -0
- package/src/ui-kit/IconProps.ts +31 -0
- 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/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/src/Footer/index.ts +0 -2
- package/src/Header/index.ts +0 -3
package/src/ProductGallery.tsx
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { ProductBlockInnerContent } from './ProductBlockInner';
|
|
3
2
|
import { ProductBlockInner } from './ProductBlockInner';
|
|
3
|
+
import type { ProductBlockInnerContent } from './ProductBlockInnerContent';
|
|
4
|
+
import type { ProductGalleryContent } from './ProductGalleryContent';
|
|
4
5
|
import type { UniBlockProps } from './types';
|
|
5
6
|
|
|
6
|
-
interface ProductGalleryNav {
|
|
7
|
-
title: string;
|
|
8
|
-
desc: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface ProductSlideContent {
|
|
12
|
-
nav: ProductGalleryNav;
|
|
13
|
-
productBlock: ProductBlockInnerContent;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ProductGalleryContent {
|
|
17
|
-
duration?: number;
|
|
18
|
-
slides?: ProductSlideContent[];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
7
|
export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {}
|
|
22
8
|
|
|
23
9
|
export const ProductGallery = JSX<ProductGalleryProps>(
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ProductBlockInnerContent } from './ProductBlockInnerContent';
|
|
2
|
+
|
|
3
|
+
interface ProductGalleryNav {
|
|
4
|
+
title: string;
|
|
5
|
+
desc: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ProductSlideContent {
|
|
9
|
+
nav: ProductGalleryNav;
|
|
10
|
+
productBlock: ProductBlockInnerContent;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ProductGalleryContent {
|
|
14
|
+
duration?: number;
|
|
15
|
+
slides?: ProductSlideContent[];
|
|
16
|
+
}
|
package/src/ProductTile.tsx
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { Benefit } from './BenefitsBlockContent';
|
|
3
|
+
import type { BlockVersion } from './model/BlockVersion';
|
|
4
|
+
import type { ProductTileContent } from './ProductTileContent';
|
|
4
5
|
import { Tile } from './Tile';
|
|
5
6
|
import type { UniBlockProps } from './types';
|
|
6
|
-
import { BlockVersion } from './types';
|
|
7
|
-
|
|
8
|
-
export interface ProductTileContent extends BaseTileContent {
|
|
9
|
-
benefits?: Benefit[];
|
|
10
|
-
}
|
|
11
7
|
|
|
12
8
|
export interface ProductTileProps extends ProductTileContent, UniBlockProps {}
|
|
13
9
|
|
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 { UniBlockProps, Picture } from './types';
|
|
3
2
|
import { Img } from './Img';
|
|
4
|
-
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
export interface TextBlockContent {
|
|
9
|
-
title?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
blockVersion?: TextBlockVersion;
|
|
12
|
-
iconVersion?: TextBlockIconVersion;
|
|
13
|
-
image?: Picture;
|
|
14
|
-
}
|
|
3
|
+
import type { Picture } from './model/Picture';
|
|
4
|
+
import type { TextBlockContent, TextBlockVersion } from './TextBlockContent';
|
|
5
|
+
import type { UniBlockProps } from './types';
|
|
15
6
|
|
|
16
7
|
export interface TextBlockProps extends TextBlockContent, UniBlockProps {}
|
|
17
8
|
|
|
@@ -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',
|
|
@@ -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/index.ts
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
|
+
export { setup } from '@redneckz/uni-jsx';
|
|
2
|
+
|
|
1
3
|
export type { ProjectSettings } from './ProjectSettings';
|
|
2
4
|
export { projectSettings } from './ProjectSettings';
|
|
3
5
|
|
|
4
6
|
export { LikeAPI } from './api/LikeAPI';
|
|
5
7
|
export { DaDataAPI } from './api/DaDataAPI';
|
|
6
8
|
|
|
7
|
-
export type {
|
|
9
|
+
export type { SitemapContent } from './model/SitemapContent';
|
|
8
10
|
|
|
9
|
-
export type {
|
|
10
|
-
|
|
11
|
-
UniBlockProps,
|
|
12
|
-
ContentPageMeta,
|
|
13
|
-
ContentPageDef,
|
|
14
|
-
Img,
|
|
15
|
-
ImgSource,
|
|
16
|
-
Picture,
|
|
17
|
-
} from './types';
|
|
11
|
+
export type { Img, ImgSource, Picture } from './model/Picture';
|
|
12
|
+
export type { BlockDef, UniBlockProps, ContentPageMeta, ContentPageDef } from './types';
|
|
18
13
|
export type {
|
|
19
14
|
ContentPageContext,
|
|
20
15
|
Router,
|
|
@@ -31,7 +26,7 @@ export { ContentPage } from './ContentPage';
|
|
|
31
26
|
export { toMobilePage } from './toMobilePage';
|
|
32
27
|
|
|
33
28
|
export { Blocks } from './Blocks';
|
|
34
|
-
export type { BlockContent } from './
|
|
29
|
+
export type { BlockContent } from './BlockContent';
|
|
35
30
|
export { MobileBlocks } from './MobileBlocks';
|
|
36
31
|
|
|
37
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
|
}
|
package/src/ui-kit/Button.tsx
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { ButtonVersion
|
|
3
|
-
|
|
4
|
-
export interface ButtonProps extends LinkContent {
|
|
5
|
-
className?: string;
|
|
6
|
-
onClick?: (ev: MouseEvent) => any;
|
|
7
|
-
version?: ButtonVersion;
|
|
8
|
-
ariaLabel?: string;
|
|
9
|
-
disabled?: Boolean;
|
|
10
|
-
}
|
|
2
|
+
import type { ButtonVersion } from '../model/ButtonVersion';
|
|
3
|
+
import type { ButtonProps } from './ButtonProps';
|
|
11
4
|
|
|
12
5
|
const buttonStyleMap: Record<ButtonVersion, string> = {
|
|
13
6
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ButtonVersion } from '../model/ButtonVersion';
|
|
2
|
+
import type { LinkContent } from '../model/LinkContent';
|
|
3
|
+
|
|
4
|
+
export interface ButtonProps extends LinkContent {
|
|
5
|
+
className?: string;
|
|
6
|
+
onClick?: (ev: MouseEvent) => any;
|
|
7
|
+
version?: ButtonVersion;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
package/src/ui-kit/Icon.tsx
CHANGED
|
@@ -1,37 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { projectSettings } from '../ProjectSettings';
|
|
3
|
-
|
|
4
|
-
export type IconName =
|
|
5
|
-
| 'ActualBalanceIcon'
|
|
6
|
-
| 'AppleIcon'
|
|
7
|
-
| 'CalendarIcon'
|
|
8
|
-
| 'ClockIcon'
|
|
9
|
-
| 'ComfortableCompIcon'
|
|
10
|
-
| 'DollarIcon'
|
|
11
|
-
| 'EmptyWalletIcon'
|
|
12
|
-
| 'EuroIcon'
|
|
13
|
-
| 'GridIcon'
|
|
14
|
-
| 'LoupeIcon'
|
|
15
|
-
| 'NewDocIcon'
|
|
16
|
-
| 'OkIcon'
|
|
17
|
-
| 'PassSendIcon'
|
|
18
|
-
| 'PercentageSquareIcon'
|
|
19
|
-
| 'PlayMarketIcon'
|
|
20
|
-
| 'ProfileIcon'
|
|
21
|
-
| 'SignDocsIcon'
|
|
22
|
-
| 'TelegramIcon'
|
|
23
|
-
| 'VKIcon'
|
|
24
|
-
| 'ArrowLeftIcon';
|
|
25
|
-
|
|
26
|
-
export interface IconProps {
|
|
27
|
-
className?: string;
|
|
28
|
-
name: IconName;
|
|
29
|
-
alt?: string;
|
|
30
|
-
title?: string;
|
|
31
|
-
width?: string;
|
|
32
|
-
height?: string;
|
|
33
|
-
'aria-hidden'?: 'true';
|
|
34
|
-
}
|
|
3
|
+
import type { IconProps } from './IconProps';
|
|
35
4
|
|
|
36
5
|
export const Icon = JSX<IconProps>(
|
|
37
6
|
({ className, name, alt = `Icon ${name}`, title = alt, ...imgProps }) => (
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { ButtonProps } from './Button';
|
|
3
2
|
import { Button } from './Button';
|
|
4
|
-
import { Icon
|
|
5
|
-
|
|
6
|
-
export interface IconButtonProps extends ButtonProps {
|
|
7
|
-
icon?: IconName;
|
|
8
|
-
aboveText?: string;
|
|
9
|
-
}
|
|
3
|
+
import { Icon } from './Icon';
|
|
4
|
+
import type { IconButtonProps } from './IconButtonProps';
|
|
10
5
|
|
|
11
6
|
export const IconButton = JSX<IconButtonProps>((props) => {
|
|
12
7
|
return (
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type IconName =
|
|
2
|
+
| 'ActualBalanceIcon'
|
|
3
|
+
| 'AppleIcon'
|
|
4
|
+
| 'CalendarIcon'
|
|
5
|
+
| 'ClockIcon'
|
|
6
|
+
| 'ComfortableCompIcon'
|
|
7
|
+
| 'DollarIcon'
|
|
8
|
+
| 'EmptyWalletIcon'
|
|
9
|
+
| 'EuroIcon'
|
|
10
|
+
| 'GridIcon'
|
|
11
|
+
| 'LoupeIcon'
|
|
12
|
+
| 'NewDocIcon'
|
|
13
|
+
| 'OkIcon'
|
|
14
|
+
| 'PassSendIcon'
|
|
15
|
+
| 'PercentageSquareIcon'
|
|
16
|
+
| 'PlayMarketIcon'
|
|
17
|
+
| 'ProfileIcon'
|
|
18
|
+
| 'SignDocsIcon'
|
|
19
|
+
| 'TelegramIcon'
|
|
20
|
+
| 'VKIcon'
|
|
21
|
+
| 'ArrowLeftIcon';
|
|
22
|
+
|
|
23
|
+
export interface IconProps {
|
|
24
|
+
className?: string;
|
|
25
|
+
name: IconName;
|
|
26
|
+
alt?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
width?: string;
|
|
29
|
+
height?: string;
|
|
30
|
+
'aria-hidden'?: 'true';
|
|
31
|
+
}
|
package/src/ui-kit/Title.tsx
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
|
|
3
|
-
export enum SizeTableClass {
|
|
4
|
-
'XL' = 'text-title-lg',
|
|
5
|
-
'L' = 'text-title',
|
|
6
|
-
'M' = 'text-title-sm',
|
|
7
|
-
'S' = 'text-title-xs',
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type TitleSize = keyof typeof SizeTableClass;
|
|
11
|
-
|
|
12
|
-
export interface TitleProps extends Partial<HTMLHeadingElement> {
|
|
13
|
-
size?: TitleSize;
|
|
14
|
-
}
|
|
2
|
+
import { SizeTableClass, TitleProps } from './TitleProps';
|
|
15
3
|
|
|
16
4
|
export const Title = JSX<TitleProps>(({ size = 'L', className, children, ...rest }) => {
|
|
17
5
|
const Tag = size === 'XL' ? 'h1' : 'h2';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export enum SizeTableClass {
|
|
2
|
+
'XL' = 'text-title-lg',
|
|
3
|
+
'L' = 'text-title',
|
|
4
|
+
'M' = 'text-title-sm',
|
|
5
|
+
'S' = 'text-title-xs',
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type TitleSize = keyof typeof SizeTableClass;
|
|
9
|
+
|
|
10
|
+
export interface TitleProps extends Partial<HTMLHeadingElement> {
|
|
11
|
+
size?: TitleSize;
|
|
12
|
+
}
|
package/src/ui-kit/TopItem.tsx
CHANGED
package/src/useLink.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HandlerDecorator, Router } from './ContentPageContext';
|
|
2
|
-
import type { LinkContent } from './
|
|
2
|
+
import type { LinkContent } from './model/LinkContent';
|
|
3
3
|
import { adjustHref, isURL } from './utils/url';
|
|
4
4
|
|
|
5
5
|
const defaultHandlerDecorator: HandlerDecorator = (handler, targetContent) => handler;
|
|
@@ -9,7 +9,7 @@ export function useLink(
|
|
|
9
9
|
router,
|
|
10
10
|
handlerDecorator = defaultHandlerDecorator,
|
|
11
11
|
}: { router: Router; handlerDecorator?: HandlerDecorator },
|
|
12
|
-
link: Partial<LinkContent>,
|
|
12
|
+
link: Partial<LinkContent & { className: string }>,
|
|
13
13
|
) {
|
|
14
14
|
const href = adjustHref(link.href, router);
|
|
15
15
|
return {
|
package/src/useSitemap.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AsyncDataHook } from './ContentPageContext';
|
|
2
|
-
import type { HeaderContent } from './Header/
|
|
2
|
+
import type { HeaderContent } from './Header/HeaderContent';
|
|
3
3
|
import { projectSettings } from './ProjectSettings';
|
|
4
4
|
|
|
5
5
|
export function useSitemap(useAsyncData: AsyncDataHook): HeaderContent {
|
package/dist/Footer/index.d.ts
DELETED
package/dist/Footer/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.Footer = void 0;
|
|
3
|
-
var Footer_1 = require("./Footer");
|
|
4
|
-
Object.defineProperty(exports, "Footer", { enumerable: true, get: function () { return Footer_1.Footer; } });
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
package/dist/Footer/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Footer/index.ts"],"names":[],"mappings":";;AAAA,mCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
package/dist/Header/index.d.ts
DELETED
package/dist/Header/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.Header = void 0;
|
|
3
|
-
var Header_1 = require("./Header");
|
|
4
|
-
Object.defineProperty(exports, "Header", { enumerable: true, get: function () { return Header_1.Header; } });
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
package/dist/Header/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Header/index.ts"],"names":[],"mappings":";;AAAA,mCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
package/lib/Footer/index.d.ts
DELETED