@redneckz/wildless-cms-uni-blocks 0.2.69 → 0.2.72
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 +878 -0
- package/bundle/bundle.umd.min.js +1 -0
- 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 +0 -15
- package/dist/Blocks.js +7 -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.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/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/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/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 +0 -15
- package/lib/Blocks.js +5 -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.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/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/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/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 +6 -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 +12 -30
- 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 +2 -15
- package/src/GalleryContent.ts +15 -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/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/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
|
@@ -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,17 @@
|
|
|
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 { MobileAppTile } from './MobileAppTile';
|
|
7
|
+
import { Placeholder } from './Placeholder';
|
|
7
8
|
import { ProductBlock } from './ProductBlock';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { PromoTile, PromoTileContent } from './PromoTile';
|
|
9
|
+
import { ProductGallery } from './ProductGallery';
|
|
10
|
+
import { ProductTile } from './ProductTile';
|
|
11
|
+
import { PromoTile } from './PromoTile';
|
|
12
|
+
import { StepsBlock } from './StepsBlock';
|
|
13
|
+
import { TextBlock } from './TextBlock';
|
|
14
14
|
import { Tile } from './Tile';
|
|
15
|
-
import { TextBlock, TextBlockContent } from './TextBlock';
|
|
16
|
-
import { Gallery, GalleryContent } from './Gallery';
|
|
17
15
|
|
|
18
16
|
export const Blocks = {
|
|
19
17
|
Header,
|
|
@@ -31,19 +29,3 @@ export const Blocks = {
|
|
|
31
29
|
MobileAppTile,
|
|
32
30
|
Gallery,
|
|
33
31
|
};
|
|
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;
|
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>(
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LinkContent } from '../model/LinkContent';
|
|
2
|
+
import type { SitemapContent } from '../model/SitemapContent';
|
|
3
|
+
|
|
4
|
+
export interface ContactInfo {
|
|
5
|
+
text: string;
|
|
6
|
+
type: 'tel' | 'email';
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface FooterContent extends SitemapContent {
|
|
11
|
+
documents?: LinkContent[];
|
|
12
|
+
relatedEnterprises?: LinkContent[];
|
|
13
|
+
contacts?: ContactInfo[];
|
|
14
|
+
socialMedia?: Omit<LinkContent, 'text'>[];
|
|
15
|
+
}
|
package/src/Footer/FooterLink.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import
|
|
2
|
+
import { LinkContent } from '../model/LinkContent';
|
|
3
3
|
import { useLink } from '../useLink';
|
|
4
|
-
import {
|
|
4
|
+
import type { FooterLink } from './FooterLink';
|
|
5
5
|
|
|
6
6
|
export const HorizontalNavigation = JSX<FooterLink>(({ className, links, context }) => {
|
|
7
7
|
const router = context.useRouter();
|
package/src/Footer/Sitemap.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { Router, HandlerDecorator } from '../ContentPageContext';
|
|
3
2
|
import { mergeTopItems } from '../mergeTopItems';
|
|
4
|
-
import type { LinkContent
|
|
3
|
+
import type { LinkContent } from '../model/LinkContent';
|
|
4
|
+
import type { TopMenuItem } from '../model/SitemapContent';
|
|
5
|
+
import type { UniBlockProps } from '../types';
|
|
5
6
|
import { useLink } from '../useLink';
|
|
6
7
|
import { useSitemap } from '../useSitemap';
|
|
7
8
|
export interface SitemapProps extends UniBlockProps {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { LinkContent
|
|
3
|
-
import {
|
|
2
|
+
import type { LinkContent } from '../model/LinkContent';
|
|
3
|
+
import type { UniBlockProps } from '../types';
|
|
4
|
+
import { Icon } from '../ui-kit/Icon';
|
|
5
|
+
import type { IconName } from '../ui-kit/IconProps';
|
|
4
6
|
import { useLink } from '../useLink';
|
|
5
7
|
|
|
6
8
|
const ICONS_MAP: Array<{ origins: string[]; icon: IconName; label: string }> = [
|
package/src/Gallery.fixture.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { context } from './setup-fixture';
|
|
|
2
2
|
|
|
3
3
|
import { Gallery, GalleryProps } from './Gallery';
|
|
4
4
|
import { Gallery as MobileGallery } from './Gallery.mobile';
|
|
5
|
-
import { Picture } from './
|
|
5
|
+
import { Picture } from './model/Picture';
|
|
6
6
|
|
|
7
7
|
const image: Picture = {
|
|
8
8
|
src: 'money-1.png',
|
package/src/Gallery.mobile.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import type { GalleryProps } from './Gallery';
|
|
3
|
+
import type { GalleryCard } from './GalleryContent';
|
|
3
4
|
import { Img } from './Img';
|
|
4
5
|
import { BlockItem } from './ui-kit/BlockItem';
|
|
5
6
|
import { Button } from './ui-kit/Button';
|
package/src/Gallery.tsx
CHANGED
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { GalleryCard, GalleryContent } from './GalleryContent';
|
|
2
3
|
import { Img } from './Img';
|
|
3
|
-
import {
|
|
4
|
+
import { UniBlockProps } from './types';
|
|
4
5
|
import { ArrowButton } from './ui-kit/ArrowButton';
|
|
5
6
|
import { BlockItem } from './ui-kit/BlockItem';
|
|
6
7
|
import { Button } from './ui-kit/Button';
|
|
7
8
|
import { Title } from './ui-kit/Title';
|
|
8
9
|
|
|
9
|
-
export interface GalleryCard {
|
|
10
|
-
title?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
image?: Picture;
|
|
13
|
-
href?: string;
|
|
14
|
-
items?: string[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface GalleryContent {
|
|
18
|
-
title?: string;
|
|
19
|
-
description?: string;
|
|
20
|
-
cards?: GalleryCard[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
10
|
export interface GalleryProps extends GalleryContent, UniBlockProps {}
|
|
24
11
|
|
|
25
12
|
const CARD_WIDTH = 384;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Picture } from './model/Picture';
|
|
2
|
+
|
|
3
|
+
export interface GalleryCard {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
image?: Picture;
|
|
7
|
+
href?: string;
|
|
8
|
+
items?: string[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface GalleryContent {
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
cards?: GalleryCard[];
|
|
15
|
+
}
|
package/src/Img.tsx
CHANGED
package/src/MobileAppTile.tsx
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { MobileAppTileContent } from './MobileAppTileContent';
|
|
2
3
|
import { Tile } from './Tile';
|
|
3
|
-
import type { BaseTileContent } from './BaseTile';
|
|
4
4
|
import type { UniBlockProps } from './types';
|
|
5
5
|
|
|
6
|
-
export interface QRCode {
|
|
7
|
-
src?: string;
|
|
8
|
-
href?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface MobileAppTileContent extends BaseTileContent {
|
|
12
|
-
title?: string;
|
|
13
|
-
qr?: QRCode;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
6
|
export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {}
|
|
17
7
|
|
|
18
8
|
export const MobileAppTile = JSX<MobileAppTileProps>(
|
package/src/MobileBlocks.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExchangeRateTile } from './ExchangeRateTile';
|
|
2
2
|
import { Footer } from './Footer/Footer.mobile';
|
|
3
3
|
import { Gallery } from './Gallery.mobile';
|
|
4
|
-
import { Header } from './Header/
|
|
4
|
+
import { Header } from './Header/Header';
|
|
5
5
|
import { MobileAppTile } from './MobileAppTile';
|
|
6
6
|
import { Placeholder } from './Placeholder';
|
|
7
7
|
import { ProductBlock } from './ProductBlock.mobile';
|
package/src/Placeholder.tsx
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { PlaceholderContent } from './PlaceholderContent';
|
|
2
3
|
import { Tile } from './Tile';
|
|
3
4
|
import type { UniBlockProps } from './types';
|
|
4
5
|
|
|
5
|
-
export interface PlaceholderContent {
|
|
6
|
-
title?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
6
|
export interface PlaceholderProps extends PlaceholderContent, UniBlockProps {
|
|
10
7
|
className?: string;
|
|
11
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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
4
|
import type { UniBlockProps } from './types';
|
|
5
5
|
|
|
6
6
|
export interface ProductBlockProps extends ProductBlockInnerContent, UniBlockProps {}
|
package/src/ProductBlock.tsx
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { ProductBlockContent } from './ProductBlockContent';
|
|
2
3
|
import { ProductBlockInner } from './ProductBlockInner';
|
|
3
|
-
import type { ProductBlockInnerContent } from './ProductBlockInner';
|
|
4
4
|
import type { UniBlockProps } from './types';
|
|
5
|
-
import { Breadcrumb
|
|
5
|
+
import { Breadcrumb } from './ui-kit/Breadcrumb';
|
|
6
6
|
import { useLink } from './useLink';
|
|
7
7
|
import { joinList } from './utils/joinList';
|
|
8
8
|
|
|
9
|
-
export interface ProductBlockProps extends
|
|
10
|
-
breadcrumbs?: BreadcrumbProps[];
|
|
11
|
-
}
|
|
9
|
+
export interface ProductBlockProps extends ProductBlockContent, UniBlockProps {}
|
|
12
10
|
|
|
13
11
|
export const ProductBlock = JSX<ProductBlockProps>((props) => {
|
|
14
12
|
const { context, className, breadcrumbs } = props;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { BaseTileContent } from './BaseTile';
|
|
3
2
|
import { BaseTile } from './BaseTile';
|
|
4
|
-
import type { Benefit } from './
|
|
3
|
+
import type { Benefit } from './BenefitsBlockContent';
|
|
5
4
|
import { Img } from './Img';
|
|
5
|
+
import type { ProductBlockInnerContent } from './ProductBlockInnerContent';
|
|
6
6
|
import type { UniBlockProps } from './types';
|
|
7
7
|
import { Icon } from './ui-kit/Icon';
|
|
8
8
|
import { Title } from './ui-kit/Title';
|
|
9
9
|
|
|
10
|
-
export interface ProductBlockInnerContent extends BaseTileContent {
|
|
11
|
-
benefits?: Benefit[];
|
|
12
|
-
}
|
|
13
|
-
|
|
14
10
|
export interface ProductBlockInnerProps extends ProductBlockInnerContent, UniBlockProps {}
|
|
15
11
|
|
|
16
12
|
export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
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 }) => {
|