@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/lib/types.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { BlockContent } from './Blocks';
|
|
1
|
+
import type { BlockContent } from './BlockContent';
|
|
3
2
|
import type { ContentPageContext } from './ContentPageContext';
|
|
3
|
+
import type { BlockVersion } from './model/BlockVersion';
|
|
4
4
|
export declare type ColorPalette = 'pc' | 'bc' | 'eo';
|
|
5
|
-
export declare type BlockVersion = 'primary' | 'secondary';
|
|
6
|
-
export declare type ButtonVersion = 'primary' | 'secondary';
|
|
7
5
|
export interface BlockDef {
|
|
8
6
|
type: string;
|
|
9
7
|
style?: string[];
|
|
@@ -28,38 +26,10 @@ export interface ContentPageDef extends ContentPageMeta {
|
|
|
28
26
|
likeControl?: boolean;
|
|
29
27
|
colorPalette?: ColorPalette;
|
|
30
28
|
}
|
|
31
|
-
export interface Img {
|
|
32
|
-
src: string;
|
|
33
|
-
alt?: string;
|
|
34
|
-
title?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface ImgSource {
|
|
37
|
-
src: string;
|
|
38
|
-
format?: keyof FormatEnum;
|
|
39
|
-
options?: JpegOptions | PngOptions | WebpOptions | AvifOptions | HeifOptions | GifOptions | TiffOptions;
|
|
40
|
-
size?: ResizeOptions;
|
|
41
|
-
}
|
|
42
|
-
export interface Picture extends Img, ImgSource {
|
|
43
|
-
sources?: ImgSource[];
|
|
44
|
-
}
|
|
45
29
|
export interface UniBlockProps {
|
|
46
30
|
className?: string;
|
|
47
31
|
context: ContentPageContext;
|
|
48
32
|
}
|
|
49
|
-
export interface ContactInfo {
|
|
50
|
-
text: string;
|
|
51
|
-
type: 'tel' | 'email';
|
|
52
|
-
description: string;
|
|
53
|
-
}
|
|
54
|
-
export interface LinkContent {
|
|
55
|
-
text?: string;
|
|
56
|
-
href?: string;
|
|
57
|
-
target?: '_blank' | '_self' | '_parent' | '_top' | string;
|
|
58
|
-
}
|
|
59
|
-
export declare type NavMenuItem = LinkContent;
|
|
60
|
-
export interface TopMenuItem extends NavMenuItem {
|
|
61
|
-
items?: NavMenuItem[];
|
|
62
|
-
}
|
|
63
33
|
export interface DaDataResult {
|
|
64
34
|
suggestions?: DaDataSuggestion<DaDataAddress>[];
|
|
65
35
|
}
|
package/lib/ui-kit/Button.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface ButtonProps extends LinkContent {
|
|
3
|
-
className?: string;
|
|
4
|
-
onClick?: (ev: MouseEvent) => any;
|
|
5
|
-
version?: ButtonVersion;
|
|
6
|
-
ariaLabel?: string;
|
|
7
|
-
disabled?: Boolean;
|
|
8
|
-
}
|
|
1
|
+
import type { ButtonProps } from './ButtonProps';
|
|
9
2
|
export declare const Button: (props: import("@redneckz/uni-jsx").PropsWithChildren<ButtonProps, any>, context?: any) => any;
|
package/lib/ui-kit/Button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/ui-kit/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/ui-kit/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,MAAM,cAAc,GAAkC;IACpD,OAAO,EAAE,4EAA4E;IACrF,SAAS,EACP,0FAA0F;CAC7F,CAAC;AAEF,MAAM,sBAAsB,GAAkC;IAC5D,OAAO,EAAE,uCAAuC;IAChD,SAAS,EAAE,wCAAwC;CACpD,CAAC;AAEF,MAAM,WAAW,GAAG,yDAAyD,CAAC;AAE9E,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EACC,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,GAAG,SAAS,EACnB,SAAS,GACV,EAAE,EAAE;IACH,IAAI,QAAQ,EAAE;QACZ,OAAO,CACL,cACE,IAAI,EAAC,QAAQ,mBACC,MAAM,gBACR,SAAS,EACrB,QAAQ,EAAC,IAAI,EACb,SAAS,EAAE,GAAG,WAAW,gBAAgB,sBAAsB,CAAC,OAAO,CAAC,IACtE,SAAS,IAAI,EACf,EAAE,YAED,QAAQ,CAAC,CAAC,CAAC,CACV,wBAAM,QAAQ,GAAO,CACtB,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,4BAA4B,YAAE,IAAI,GAAO,CACzD,GACG,CACP,CAAC;KACH;IAED,OAAO,CACL,YACE,SAAS,EAAE,GAAG,WAAW,iBAAiB,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,EACtF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,gBACJ,SAAS,YAEpB,QAAQ,CAAC,CAAC,CAAC,CACV,wBAAM,QAAQ,GAAO,CACtB,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,4BAA4B,YAAE,IAAI,GAAO,CACzD,GACC,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ButtonVersion } from '../model/ButtonVersion';
|
|
2
|
+
import type { LinkContent } from '../model/LinkContent';
|
|
3
|
+
export interface ButtonProps extends LinkContent {
|
|
4
|
+
className?: string;
|
|
5
|
+
onClick?: (ev: MouseEvent) => any;
|
|
6
|
+
version?: ButtonVersion;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonProps.js","sourceRoot":"","sources":["../../src/ui-kit/ButtonProps.ts"],"names":[],"mappings":""}
|
package/lib/ui-kit/Icon.d.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export interface IconProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
name: IconName;
|
|
5
|
-
alt?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
width?: string;
|
|
8
|
-
height?: string;
|
|
9
|
-
'aria-hidden'?: 'true';
|
|
10
|
-
}
|
|
1
|
+
import type { IconProps } from './IconProps';
|
|
11
2
|
export declare const Icon: (props: import("@redneckz/uni-jsx").PropsWithChildren<IconProps, any>, context?: any) => any;
|
package/lib/ui-kit/Icon.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../src/ui-kit/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../src/ui-kit/Icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAAG,QAAQ,IAAI,EAAE,EAAE,KAAK,GAAG,GAAG,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,CAAC,CACvE,cACE,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,GAAG,eAAe,CAAC,GAAG,IAAI,EAAE,SAAS,IAAI,MAAM,EACpD,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,KACR,QAAQ,GACZ,CACH,CACF,CAAC"}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { IconName } from './Icon';
|
|
3
|
-
export interface IconButtonProps extends ButtonProps {
|
|
4
|
-
icon?: IconName;
|
|
5
|
-
aboveText?: string;
|
|
6
|
-
}
|
|
1
|
+
import type { IconButtonProps } from './IconButtonProps';
|
|
7
2
|
export declare const IconButton: (props: import("@redneckz/uni-jsx").PropsWithChildren<IconButtonProps, any>, context?: any) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../src/ui-kit/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../src/ui-kit/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAkB,CAAC,KAAK,EAAE,EAAE;IACvD,OAAO,CACL,KAAC,MAAM,OAAK,KAAK,YACd,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CACZ,eAAK,SAAS,EAAC,mBAAmB,aAChC,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC7C,EACN,0BACE,cAAK,SAAS,EAAC,oBAAoB,YAAE,KAAK,CAAC,SAAS,GAAO,EAC3D,cAAK,SAAS,EAAC,+BAA+B,YAAE,KAAK,CAAC,IAAI,GAAO,IAC7D,IACF,CACP,CAAC,CAAC,CAAC,IAAI,GACD,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButtonProps.js","sourceRoot":"","sources":["../../src/ui-kit/IconButtonProps.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type IconName = 'ActualBalanceIcon' | 'AppleIcon' | 'CalendarIcon' | 'ClockIcon' | 'ComfortableCompIcon' | 'DollarIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'GridIcon' | 'LoupeIcon' | 'NewDocIcon' | 'OkIcon' | 'PassSendIcon' | 'PercentageSquareIcon' | 'PlayMarketIcon' | 'ProfileIcon' | 'SignDocsIcon' | 'TelegramIcon' | 'VKIcon' | 'ArrowLeftIcon';
|
|
2
|
+
export interface IconProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
name: IconName;
|
|
5
|
+
alt?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
width?: string;
|
|
8
|
+
height?: string;
|
|
9
|
+
'aria-hidden'?: 'true';
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconProps.js","sourceRoot":"","sources":["../../src/ui-kit/IconProps.ts"],"names":[],"mappings":""}
|
package/lib/ui-kit/Title.d.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
'XL' = "text-title-lg",
|
|
3
|
-
'L' = "text-title",
|
|
4
|
-
'M' = "text-title-sm",
|
|
5
|
-
'S' = "text-title-xs"
|
|
6
|
-
}
|
|
7
|
-
export declare type TitleSize = keyof typeof SizeTableClass;
|
|
8
|
-
export interface TitleProps extends Partial<HTMLHeadingElement> {
|
|
9
|
-
size?: TitleSize;
|
|
10
|
-
}
|
|
1
|
+
import { TitleProps } from './TitleProps';
|
|
11
2
|
export declare const Title: (props: import("@redneckz/uni-jsx").PropsWithChildren<TitleProps, any>, context?: any) => any;
|
package/lib/ui-kit/Title.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
|
|
4
|
-
(function (SizeTableClass) {
|
|
5
|
-
SizeTableClass["XL"] = "text-title-lg";
|
|
6
|
-
SizeTableClass["L"] = "text-title";
|
|
7
|
-
SizeTableClass["M"] = "text-title-sm";
|
|
8
|
-
SizeTableClass["S"] = "text-title-xs";
|
|
9
|
-
})(SizeTableClass || (SizeTableClass = {}));
|
|
3
|
+
import { SizeTableClass } from './TitleProps.js';
|
|
10
4
|
export const Title = JSX(({ size = 'L', className, children, ...rest }) => {
|
|
11
5
|
const Tag = size === 'XL' ? 'h1' : 'h2';
|
|
12
6
|
return (_jsx(Tag, { className: getClasses(SizeTableClass[size], className), ...rest, children: children }));
|
package/lib/ui-kit/Title.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.js","sourceRoot":"","sources":["../../src/ui-kit/Title.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Title.js","sourceRoot":"","sources":["../../src/ui-kit/Title.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAc,MAAM,cAAc,CAAC;AAE1D,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAa,CAAC,EAAE,IAAI,GAAG,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpF,MAAM,GAAG,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACxC,OAAO,CACL,KAAC,GAAG,IAAC,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,KAAM,IAAI,YAClE,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,GAAG,OAA+B,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum SizeTableClass {
|
|
2
|
+
'XL' = "text-title-lg",
|
|
3
|
+
'L' = "text-title",
|
|
4
|
+
'M' = "text-title-sm",
|
|
5
|
+
'S' = "text-title-xs"
|
|
6
|
+
}
|
|
7
|
+
export declare type TitleSize = keyof typeof SizeTableClass;
|
|
8
|
+
export interface TitleProps extends Partial<HTMLHeadingElement> {
|
|
9
|
+
size?: TitleSize;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var SizeTableClass;
|
|
2
|
+
(function (SizeTableClass) {
|
|
3
|
+
SizeTableClass["XL"] = "text-title-lg";
|
|
4
|
+
SizeTableClass["L"] = "text-title";
|
|
5
|
+
SizeTableClass["M"] = "text-title-sm";
|
|
6
|
+
SizeTableClass["S"] = "text-title-xs";
|
|
7
|
+
})(SizeTableClass || (SizeTableClass = {}));
|
|
8
|
+
//# sourceMappingURL=TitleProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TitleProps.js","sourceRoot":"","sources":["../../src/ui-kit/TitleProps.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,sCAAsB,CAAA;IACtB,kCAAkB,CAAA;IAClB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;AACvB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB"}
|
package/lib/ui-kit/TopItem.d.ts
CHANGED
package/lib/useLink.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { HandlerDecorator, Router } from './ContentPageContext';
|
|
2
|
-
import type { LinkContent } from './
|
|
2
|
+
import type { LinkContent } from './model/LinkContent';
|
|
3
3
|
export declare function useLink({ router, handlerDecorator, }: {
|
|
4
4
|
router: Router;
|
|
5
5
|
handlerDecorator?: HandlerDecorator;
|
|
6
|
-
}, link: Partial<LinkContent
|
|
6
|
+
}, link: Partial<LinkContent & {
|
|
7
|
+
className: string;
|
|
8
|
+
}>): {
|
|
7
9
|
href: string | undefined;
|
|
8
10
|
ariaLabel: string | undefined;
|
|
9
11
|
onClick: (ev: MouseEvent) => void;
|
|
10
12
|
text?: string | undefined;
|
|
11
13
|
target?: string | undefined;
|
|
14
|
+
className?: string | undefined;
|
|
12
15
|
};
|
package/lib/useLink.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../src/useLink.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,uBAAuB,GAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,CAAC,OAAO,CAAC;AAEtF,MAAM,UAAU,OAAO,CACrB,EACE,MAAM,EACN,gBAAgB,GAAG,uBAAuB,GACc,EAC1D,
|
|
1
|
+
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../src/useLink.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,uBAAuB,GAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,CAAC,OAAO,CAAC;AAEtF,MAAM,UAAU,OAAO,CACrB,EACE,MAAM,EACN,gBAAgB,GAAG,uBAAuB,GACc,EAC1D,IAAkD;IAElD,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3C,OAAO;QACL,GAAG,IAAI;QACP,IAAI;QACJ,SAAS,EAAE,IAAI,CAAC,IAAI;QACpB,OAAO,EAAE,gBAAgB,CAAC,CAAC,EAAc,EAAE,EAAE;YAC3C,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACzC,MAAM,aAAa,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,CAAC;YAC9D,IAAI,WAAW,IAAI,aAAa,EAAE;gBAChC,EAAE,CAAC,cAAc,EAAE,CAAC;gBACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACnB;QACH,CAAC,EAAE,IAAI,CAAC;KACT,CAAC;AACJ,CAAC"}
|
package/lib/useSitemap.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.73",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"types": "./lib/utils/*.d.ts"
|
|
55
55
|
},
|
|
56
56
|
"./bundle/*.js": "./bundle/*.js",
|
|
57
|
+
"./bundle/*.json": "./bundle/*.json",
|
|
57
58
|
"./*.json": "./*.json",
|
|
58
59
|
"./*.js": "./*.js",
|
|
59
60
|
"./*.cjs": "./*.cjs"
|
|
@@ -82,7 +83,8 @@
|
|
|
82
83
|
"build:lib": "rimraf ./lib && tsc --build --verbose",
|
|
83
84
|
"postbuild:lib": "replace-in-file --configFile=replace-config.lib.cjs --verbose",
|
|
84
85
|
"build:commonjs": "rimraf ./dist && tsc --module commonjs --noImplicitUseStrict --outDir dist",
|
|
85
|
-
"bundle": "rimraf ./bundle && rollup -c",
|
|
86
|
+
"bundle": "rimraf ./bundle && rollup -c && npm run build:schema",
|
|
87
|
+
"build:schema": "ts-json-schema-generator --path './src/**/*Content.ts' --no-type-check --type '*' -o ./bundle/blocks.schema.json",
|
|
86
88
|
"build:style": "postcss './src/**/*.css' --env production --dir ./lib",
|
|
87
89
|
"build:icons": "svgo -f ./src/icons -o ./cosmos-static/icons",
|
|
88
90
|
"size": "size-limit",
|
|
@@ -139,6 +141,7 @@
|
|
|
139
141
|
"svgo": "^2.8.0",
|
|
140
142
|
"tailwindcss": "^3.1.1",
|
|
141
143
|
"ts-jest": "^28.0.4",
|
|
144
|
+
"ts-json-schema-generator": "^1.0.0",
|
|
142
145
|
"ts-loader": "^9.3.0",
|
|
143
146
|
"typescript": "^4.7.3",
|
|
144
147
|
"webpack": "^5.73.0",
|
package/src/BaseTile.tsx
CHANGED
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { BaseTileContent } from './BaseTileContent';
|
|
2
3
|
import { Img } from './Img';
|
|
3
|
-
import type { BlockVersion
|
|
4
|
+
import type { BlockVersion } from './model/BlockVersion';
|
|
5
|
+
import type { UniBlockProps } from './types';
|
|
4
6
|
import { BlockItem } from './ui-kit/BlockItem';
|
|
5
|
-
import type { IconButtonProps } from './ui-kit/IconButton';
|
|
6
7
|
import { IconButton } from './ui-kit/IconButton';
|
|
8
|
+
import type { IconButtonProps } from './ui-kit/IconButtonProps';
|
|
7
9
|
import { Title } from './ui-kit/Title';
|
|
8
|
-
import type { TitleSize } from './ui-kit/Title';
|
|
9
10
|
import { useLink } from './useLink';
|
|
10
11
|
import { getColSpan } from './utils/getColSpan';
|
|
11
12
|
|
|
12
|
-
export interface BaseTileContent {
|
|
13
|
-
title?: string;
|
|
14
|
-
titleSize?: TitleSize;
|
|
15
|
-
description?: string;
|
|
16
|
-
image?: Picture;
|
|
17
|
-
items?: string[];
|
|
18
|
-
buttons?: IconButtonProps[];
|
|
19
|
-
version?: BlockVersion;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
13
|
export interface BaseTileProps extends BaseTileContent, UniBlockProps {}
|
|
14
|
+
|
|
23
15
|
const TITLE_CLASSES = 'font-medium m-0 mb-4 whitespace-pre-wrap max-w-[600px]';
|
|
24
16
|
|
|
25
17
|
export const BaseTile = JSX<BaseTileProps>(
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BlockVersion } from './model/BlockVersion';
|
|
2
|
+
import type { Picture } from './model/Picture';
|
|
3
|
+
import type { IconButtonProps } from './ui-kit/IconButtonProps';
|
|
4
|
+
import type { TitleSize } from './ui-kit/TitleProps';
|
|
5
|
+
|
|
6
|
+
export interface BaseTileContent {
|
|
7
|
+
title?: string;
|
|
8
|
+
titleSize?: TitleSize;
|
|
9
|
+
description?: string;
|
|
10
|
+
image?: Picture;
|
|
11
|
+
items?: string[];
|
|
12
|
+
buttons?: Omit<IconButtonProps, 'className' | 'onClick' | 'ariaLabel'>[];
|
|
13
|
+
version?: BlockVersion;
|
|
14
|
+
}
|
package/src/BenefitsBlock.tsx
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { Benefit, BenefitsBlockContent } from './BenefitsBlockContent';
|
|
2
3
|
import type { UniBlockProps } from './types';
|
|
3
|
-
import { Icon
|
|
4
|
-
|
|
5
|
-
export interface Benefit {
|
|
6
|
-
label: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
icon?: IconName;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface BenefitsBlockContent {
|
|
12
|
-
title?: string;
|
|
13
|
-
benefits?: Benefit[];
|
|
14
|
-
}
|
|
4
|
+
import { Icon } from './ui-kit/Icon';
|
|
15
5
|
|
|
16
6
|
export interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {}
|
|
17
7
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BenefitsBlockContent } from './BenefitsBlockContent';
|
|
2
|
+
import type { ExchangeRateTileContent } from './ExchangeRateTileContent';
|
|
3
|
+
import type { FooterContent } from './Footer/FooterContent';
|
|
4
|
+
import type { GalleryContent } from './GalleryContent';
|
|
5
|
+
import type { HeaderContent } from './Header/HeaderContent';
|
|
6
|
+
import type { MobileAppTileContent } from './MobileAppTileContent';
|
|
7
|
+
import type { PlaceholderContent } from './PlaceholderContent';
|
|
8
|
+
import type { ProductBlockContent } from './ProductBlockContent';
|
|
9
|
+
import type { ProductGalleryContent } from './ProductGalleryContent';
|
|
10
|
+
import type { ProductTileContent } from './ProductTileContent';
|
|
11
|
+
import type { PromoTileContent } from './PromoTileContent';
|
|
12
|
+
import type { StepsBlockContent } from './StepsBlockContent';
|
|
13
|
+
import type { TextBlockContent } from './TextBlockContent';
|
|
14
|
+
import type { TileContent } from './TileContent';
|
|
15
|
+
|
|
16
|
+
export type BlockContent =
|
|
17
|
+
| HeaderContent
|
|
18
|
+
| FooterContent
|
|
19
|
+
| PlaceholderContent
|
|
20
|
+
| TileContent
|
|
21
|
+
| PromoTileContent
|
|
22
|
+
| TextBlockContent
|
|
23
|
+
| ProductTileContent
|
|
24
|
+
| ProductBlockContent
|
|
25
|
+
| StepsBlockContent
|
|
26
|
+
| BenefitsBlockContent
|
|
27
|
+
| ProductGalleryContent
|
|
28
|
+
| ExchangeRateTileContent
|
|
29
|
+
| MobileAppTileContent
|
|
30
|
+
| GalleryContent;
|
package/src/Blocks.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { BenefitsBlock
|
|
2
|
-
import { ExchangeRateTile
|
|
3
|
-
import { Footer
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { BenefitsBlock } from './BenefitsBlock';
|
|
2
|
+
import { ExchangeRateTile } from './ExchangeRateTile';
|
|
3
|
+
import { Footer } from './Footer/Footer';
|
|
4
|
+
import { Gallery } from './Gallery';
|
|
5
|
+
import { Header } from './Header/Header';
|
|
6
|
+
import { MiniGallery } from './MiniGallery';
|
|
7
|
+
import { MobileAppTile } from './MobileAppTile';
|
|
8
|
+
import { Placeholder } from './Placeholder';
|
|
7
9
|
import { ProductBlock } from './ProductBlock';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { PromoTile, PromoTileContent } from './PromoTile';
|
|
10
|
+
import { ProductGallery } from './ProductGallery';
|
|
11
|
+
import { ProductTile } from './ProductTile';
|
|
12
|
+
import { PromoTile } from './PromoTile';
|
|
13
|
+
import { StepsBlock } from './StepsBlock';
|
|
14
|
+
import { TextBlock } from './TextBlock';
|
|
14
15
|
import { Tile } from './Tile';
|
|
15
|
-
import { TextBlock, TextBlockContent } from './TextBlock';
|
|
16
|
-
import { Gallery, GalleryContent } from './Gallery';
|
|
17
16
|
|
|
18
17
|
export const Blocks = {
|
|
19
18
|
Header,
|
|
@@ -30,20 +29,5 @@ export const Blocks = {
|
|
|
30
29
|
ExchangeRateTile,
|
|
31
30
|
MobileAppTile,
|
|
32
31
|
Gallery,
|
|
32
|
+
MiniGallery,
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
export type BlockContent =
|
|
36
|
-
| HeaderContent
|
|
37
|
-
| FooterContent
|
|
38
|
-
| PlaceholderContent
|
|
39
|
-
| BaseTileContent
|
|
40
|
-
| TextBlockContent
|
|
41
|
-
| ProductTileContent
|
|
42
|
-
| PromoTileContent
|
|
43
|
-
| ProductBlockInnerContent
|
|
44
|
-
| StepsBlockContent
|
|
45
|
-
| BenefitsBlockContent
|
|
46
|
-
| ProductGalleryContent
|
|
47
|
-
| ExchangeRateTileContent
|
|
48
|
-
| MobileAppTileContent
|
|
49
|
-
| GalleryContent;
|
|
@@ -819,6 +819,81 @@
|
|
|
819
819
|
]
|
|
820
820
|
}
|
|
821
821
|
},
|
|
822
|
+
{
|
|
823
|
+
"type": "MiniGallery",
|
|
824
|
+
"style": ["col-span-12"],
|
|
825
|
+
"content": {
|
|
826
|
+
"title": "Вы можете оплатить бонусными баллами",
|
|
827
|
+
"description": "Удобный каталог с большим ассортиментом товаров и сервисов",
|
|
828
|
+
"cards": [
|
|
829
|
+
{
|
|
830
|
+
"image": {
|
|
831
|
+
"src": "domovoj-kupon.png",
|
|
832
|
+
"title": "Деньги",
|
|
833
|
+
"format": "webp",
|
|
834
|
+
"size": {
|
|
835
|
+
"width": 120,
|
|
836
|
+
"height": 70
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
"title": "Более 5000 товаров",
|
|
840
|
+
"description": "Время копить: ставка растет в зависимости от срока нахождения средств на Счете!"
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"image": {
|
|
844
|
+
"src": "domovoj-kupon.png",
|
|
845
|
+
"title": "Деньги",
|
|
846
|
+
"format": "webp",
|
|
847
|
+
"size": {
|
|
848
|
+
"width": 120,
|
|
849
|
+
"height": 70
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"title": "Более 1000 развлечений",
|
|
853
|
+
"description": "Порядок и условия предоставления в соответствии с 106 ФЗ"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"image": {
|
|
857
|
+
"src": "domovoj-kupon.png",
|
|
858
|
+
"title": "Деньги",
|
|
859
|
+
"format": "webp",
|
|
860
|
+
"size": {
|
|
861
|
+
"width": 120,
|
|
862
|
+
"height": 70
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"title": "Фермерские продукты",
|
|
866
|
+
"description": "Высокий процент даже при небольшой сумме денежных средств"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"image": {
|
|
870
|
+
"src": "domovoj-kupon.png",
|
|
871
|
+
"title": "Деньги",
|
|
872
|
+
"format": "webp",
|
|
873
|
+
"size": {
|
|
874
|
+
"width": 120,
|
|
875
|
+
"height": 70
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
"title": "«Моя выгода»",
|
|
879
|
+
"description": "Время копить: ставка растет в зависимости от срока нахождения средств на Счете!"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"image": {
|
|
883
|
+
"src": "domovoj-kupon.png",
|
|
884
|
+
"title": "Деньги",
|
|
885
|
+
"format": "webp",
|
|
886
|
+
"size": {
|
|
887
|
+
"width": 120,
|
|
888
|
+
"height": 70
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"title": "Фермерские продукты",
|
|
892
|
+
"description": "Высокий процент даже при небольшой сумме денежных средств"
|
|
893
|
+
}
|
|
894
|
+
]
|
|
895
|
+
}
|
|
896
|
+
},
|
|
822
897
|
|
|
823
898
|
{
|
|
824
899
|
"type": "Footer",
|
package/src/ContentPage.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, PropsWithChildren } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { BlockContent } from './
|
|
2
|
+
import type { BlockContent } from './BlockContent';
|
|
3
3
|
import { LikeControl } from './LikeControl';
|
|
4
4
|
import { Placeholder } from './Placeholder';
|
|
5
5
|
import type { BlockDef, ContentPageDef, UniBlockProps } from './types';
|
package/src/ExchangeRateTile.tsx
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { ExchangeRateTileContent } from './ExchangeRateTileContent';
|
|
2
3
|
import { Tile } from './Tile';
|
|
3
4
|
import type { UniBlockProps } from './types';
|
|
4
|
-
import { ButtonProps } from './ui-kit/
|
|
5
|
+
import { ButtonProps } from './ui-kit/ButtonProps';
|
|
5
6
|
import { Icon } from './ui-kit/Icon';
|
|
6
7
|
|
|
7
|
-
export interface ExchangeRateTileContent {
|
|
8
|
-
title?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
8
|
export interface ExchangeRateTileProps extends ExchangeRateTileContent, UniBlockProps {}
|
|
12
9
|
|
|
13
10
|
const CBR_EXCHANGE_RATE_URL = 'https://www.cbr-xml-daily.ru/daily_json.js';
|
package/src/Footer/Contacts.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { UniBlockProps
|
|
2
|
+
import type { UniBlockProps } from '../types';
|
|
3
3
|
import { Button } from '../ui-kit/Button';
|
|
4
4
|
import { useLink } from '../useLink';
|
|
5
|
+
import type { ContactInfo } from './FooterContent';
|
|
5
6
|
|
|
6
7
|
export interface ContactsProps extends UniBlockProps {
|
|
7
8
|
items?: ContactInfo[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../types';
|
|
3
|
-
import type { FooterContent } from './
|
|
3
|
+
import type { FooterContent } from './FooterContent';
|
|
4
4
|
import { TextInformation } from './TextInformation';
|
|
5
5
|
|
|
6
6
|
export interface FooterProps extends FooterContent, UniBlockProps {}
|
package/src/Footer/Footer.tsx
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../types';
|
|
2
3
|
import { Logo } from '../ui-kit/Logo';
|
|
3
4
|
import { SearchBar } from '../ui-kit/SearchBar';
|
|
4
5
|
import { Contacts } from './Contacts';
|
|
6
|
+
import type { FooterContent } from './FooterContent';
|
|
7
|
+
import { HorizontalNavigation } from './HorizontalNavigation';
|
|
5
8
|
import { Sitemap } from './Sitemap';
|
|
6
9
|
import { SocialMedia } from './SocialMedia';
|
|
7
|
-
import { HorizontalNavigation } from './HorizontalNavigation';
|
|
8
10
|
import { TextInformation } from './TextInformation';
|
|
9
|
-
import type { LinkContent, UniBlockProps, ContactInfo, TopMenuItem } from '../types';
|
|
10
11
|
|
|
11
12
|
const LEFT_COL_WIDTH_FULL_HD = 'w-[280px]';
|
|
12
13
|
const LEFT_COL_WIDTH_SMALL_DESKTOP = 'xl:w-[220px]';
|
|
13
14
|
|
|
14
|
-
export interface FooterContent {
|
|
15
|
-
documents?: LinkContent[];
|
|
16
|
-
relatedEnterprises?: LinkContent[];
|
|
17
|
-
contacts?: ContactInfo[];
|
|
18
|
-
socialMedia?: Omit<LinkContent, 'text'>[];
|
|
19
|
-
topItems?: TopMenuItem[];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
15
|
export interface FooterProps extends FooterContent, UniBlockProps {}
|
|
23
16
|
|
|
24
17
|
export const Footer = JSX<FooterProps>(
|