@redneckz/wildless-cms-uni-blocks 0.2.84 → 0.2.87
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 +1 -945
- package/bundle/bundle.umd.js +551 -487
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/AccordionBlocks.d.ts +3 -0
- package/dist/components/Accordion/AccordionBlocks.js +6 -0
- package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +37 -10
- package/dist/components/Accordion/AccordionItem.d.ts +2 -2
- package/dist/components/Accordion/AccordionItem.js +5 -6
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.d.ts +2 -2
- package/dist/components/BaseTile/BaseTile.js +14 -4
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BaseTile/BaseTileProps.d.ts +41 -0
- package/dist/{model/SitemapContent.js → components/BaseTile/BaseTileProps.js} +1 -1
- package/dist/components/BaseTile/BaseTileProps.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +14 -1
- package/dist/components/BlockContent.d.ts +7 -2
- package/dist/components/Blocks.d.ts +17 -14
- package/dist/components/Blocks.js +23 -17
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +45 -2
- package/dist/components/ComparisonTable/HeaderCell.d.ts +2 -2
- package/dist/components/ContentPage/ContentPage.d.ts +3 -2
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +4 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +4 -0
- package/dist/components/Footer/Contacts.js +2 -2
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +35 -9
- package/dist/components/Footer/FooterLink.d.ts +2 -2
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/Sitemap.d.ts +1 -1
- package/dist/components/Footer/Sitemap.js +1 -1
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Footer/SocialMedia.d.ts +2 -2
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +13 -0
- package/dist/components/Header/HeaderContent.d.ts +10 -2
- package/dist/components/Header/isSubItemActive.d.ts +2 -2
- package/dist/components/Header/isSubItemActive.js.map +1 -1
- package/dist/components/Header/isTopItemActive.d.ts +2 -2
- package/dist/components/Header/isTopItemActive.js.map +1 -1
- package/dist/components/Headline/Headline.d.ts +5 -0
- package/dist/components/Headline/Headline.js +9 -0
- package/dist/components/Headline/Headline.js.map +1 -0
- package/dist/components/Headline/HeadlineContent.d.ts +15 -0
- package/dist/components/{BaseTile/BaseTileContent.js → Headline/HeadlineContent.js} +1 -1
- package/dist/components/Headline/HeadlineContent.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocs.d.ts +5 -0
- package/dist/components/LinkDocs/LinkDocs.js +42 -0
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +23 -0
- package/dist/components/LinkDocs/LinkDocsContent.js +2 -0
- package/dist/components/LinkDocs/LinkDocsContent.js.map +1 -0
- package/dist/components/MiniGallery/MiniGallery.d.ts +3 -3
- package/dist/components/MiniGallery/MiniGalleryContent.d.ts +6 -0
- package/dist/components/MiniGallery/MiniGalleryContent.js +2 -0
- package/dist/components/MiniGallery/MiniGalleryContent.js.map +1 -0
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +11 -2
- package/dist/components/MobileBlocks.d.ts +8 -6
- package/dist/components/MobileBlocks.js +10 -6
- package/dist/components/MobileBlocks.js.map +1 -1
- package/dist/components/PictureText/PictureText.d.ts +5 -0
- package/dist/components/PictureText/PictureText.js +14 -0
- package/dist/components/PictureText/PictureText.js.map +1 -0
- package/dist/components/PictureText/PictureTextContent.d.ts +11 -0
- package/dist/components/PictureText/PictureTextContent.js +2 -0
- package/dist/components/PictureText/PictureTextContent.js.map +1 -0
- package/dist/components/Placeholder/PlaceholderContent.d.ts +3 -0
- package/dist/components/ProductBlock/ProductBlock.mobile.d.ts +2 -2
- package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +10 -5
- package/dist/components/ProductBlock/ProductBlockInner.d.ts +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +19 -4
- package/dist/components/ProductTile/ProductTileContent.d.ts +6 -2
- package/dist/components/PromoTile/PromoTileContent.d.ts +6 -2
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +13 -0
- package/dist/components/TextBlock/TextBlockContent.d.ts +13 -0
- package/dist/components/Tile/TileContent.d.ts +5 -2
- package/dist/hooks/useLink.d.ts +3 -3
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.js +10 -10
- 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 +4 -0
- package/dist/model/ButtonVersion.d.ts +4 -0
- package/dist/model/LinkProps.d.ts +21 -0
- package/dist/model/{LinkContent.js → LinkProps.js} +1 -1
- package/dist/model/LinkProps.js.map +1 -0
- package/dist/model/Picture.d.ts +11 -0
- package/dist/model/SitemapProps.d.ts +13 -0
- package/dist/model/SitemapProps.js +2 -0
- package/dist/model/SitemapProps.js.map +1 -0
- package/dist/types.d.ts +2 -2
- package/dist/ui-kit/Breadcrumb.d.ts +2 -2
- package/dist/ui-kit/Button/Button.d.ts +6 -3
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +15 -12
- package/dist/ui-kit/Icon/IconProps.d.ts +53 -18
- package/dist/ui-kit/Icon/IconProps.js +23 -18
- package/dist/ui-kit/Icon/IconProps.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.d.ts +2 -2
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.fixture.d.ts +1 -0
- package/lib/components/Accordion/Accordion.js +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/AccordionBlocks.d.ts +3 -0
- package/lib/components/Accordion/AccordionBlocks.js +6 -0
- package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +37 -10
- package/lib/components/Accordion/AccordionItem.d.ts +2 -2
- package/lib/components/Accordion/AccordionItem.js +5 -6
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.d.ts +2 -2
- package/lib/components/BaseTile/BaseTile.js +14 -4
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BaseTile/BaseTileProps.d.ts +41 -0
- package/lib/components/BaseTile/BaseTileProps.js +2 -0
- package/lib/components/BaseTile/BaseTileProps.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +14 -1
- package/lib/components/BlockContent.d.ts +7 -2
- package/lib/components/Blocks.d.ts +17 -14
- package/lib/components/Blocks.js +23 -17
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +45 -2
- package/lib/components/ComparisonTable/HeaderCell.d.ts +2 -2
- package/lib/components/ContentPage/ContentPage.d.ts +3 -2
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +4 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +4 -0
- package/lib/components/Footer/Contacts.js +2 -2
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +35 -9
- package/lib/components/Footer/FooterLink.d.ts +2 -2
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/Sitemap.d.ts +1 -1
- package/lib/components/Footer/Sitemap.js +1 -1
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Footer/SocialMedia.d.ts +2 -2
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +13 -0
- package/lib/components/Header/HeaderContent.d.ts +10 -2
- package/lib/components/Header/isSubItemActive.d.ts +2 -2
- package/lib/components/Header/isSubItemActive.js.map +1 -1
- package/lib/components/Header/isTopItemActive.d.ts +2 -2
- package/lib/components/Header/isTopItemActive.js.map +1 -1
- package/lib/components/Headline/Headline.d.ts +5 -0
- package/lib/components/Headline/Headline.fixture.d.ts +7 -0
- package/lib/components/Headline/Headline.js +7 -0
- package/lib/components/Headline/Headline.js.map +1 -0
- package/lib/components/Headline/HeadlineContent.d.ts +15 -0
- package/lib/components/Headline/HeadlineContent.js +2 -0
- package/lib/components/Headline/HeadlineContent.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocs.d.ts +5 -0
- package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +12 -0
- package/lib/components/LinkDocs/LinkDocs.js +40 -0
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +23 -0
- package/lib/components/LinkDocs/LinkDocsContent.js +2 -0
- package/lib/components/LinkDocs/LinkDocsContent.js.map +1 -0
- package/lib/components/MiniGallery/MiniGallery.d.ts +3 -3
- package/lib/components/MiniGallery/MiniGalleryContent.d.ts +6 -0
- package/lib/components/MiniGallery/MiniGalleryContent.js +2 -0
- package/lib/components/MiniGallery/MiniGalleryContent.js.map +1 -0
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +11 -2
- package/lib/components/MobileBlocks.d.ts +8 -6
- package/lib/components/MobileBlocks.js +10 -6
- package/lib/components/MobileBlocks.js.map +1 -1
- package/lib/components/PictureText/PictureText.d.ts +5 -0
- package/lib/components/PictureText/PictureText.fixture.d.ts +4 -0
- package/lib/components/PictureText/PictureText.js +12 -0
- package/lib/components/PictureText/PictureText.js.map +1 -0
- package/lib/components/PictureText/PictureTextContent.d.ts +11 -0
- package/lib/components/PictureText/PictureTextContent.js +2 -0
- package/lib/components/PictureText/PictureTextContent.js.map +1 -0
- package/lib/components/Placeholder/PlaceholderContent.d.ts +3 -0
- package/lib/components/ProductBlock/ProductBlock.mobile.d.ts +2 -2
- package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +10 -5
- package/lib/components/ProductBlock/ProductBlockInner.d.ts +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +19 -4
- package/lib/components/ProductTile/ProductTileContent.d.ts +6 -2
- package/lib/components/PromoTile/PromoTileContent.d.ts +6 -2
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +13 -0
- package/lib/components/TextBlock/TextBlockContent.d.ts +13 -0
- package/lib/components/Tile/TileContent.d.ts +5 -2
- package/lib/hooks/useLink.d.ts +3 -3
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/index.d.ts +12 -12
- package/lib/index.js +5 -5
- 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 +4 -0
- package/lib/model/ButtonVersion.d.ts +4 -0
- package/lib/model/LinkProps.d.ts +21 -0
- package/lib/model/LinkProps.js +2 -0
- package/lib/model/LinkProps.js.map +1 -0
- package/lib/model/Picture.d.ts +11 -0
- package/lib/model/SitemapProps.d.ts +13 -0
- package/lib/model/SitemapProps.js +2 -0
- package/lib/model/SitemapProps.js.map +1 -0
- package/lib/types.d.ts +2 -2
- package/lib/ui-kit/Breadcrumb.d.ts +2 -2
- package/lib/ui-kit/Button/Button.d.ts +6 -3
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +15 -12
- package/lib/ui-kit/Icon/IconProps.d.ts +53 -18
- package/lib/ui-kit/Icon/IconProps.js +23 -18
- package/lib/ui-kit/Icon/IconProps.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.d.ts +2 -2
- package/package.json +2 -22
- package/src/components/Accordion/Accordion.example.json +74 -0
- package/src/components/Accordion/Accordion.fixture.tsx +93 -7
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/Accordion/AccordionBlocks.tsx +6 -0
- package/src/components/Accordion/AccordionContent.ts +43 -11
- package/src/components/Accordion/AccordionItem.tsx +10 -10
- package/src/components/BaseTile/BaseTile.tsx +22 -9
- package/src/components/BaseTile/BaseTileProps.ts +44 -0
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +13 -0
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -2
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +14 -1
- package/src/components/BlockContent.ts +19 -12
- package/src/components/Blocks.ts +23 -17
- package/src/components/ComparisonTable/ComparisonTable.example.json +84 -0
- package/src/components/ComparisonTable/ComparisonTableContent.ts +46 -3
- package/src/components/ComparisonTable/HeaderCell.tsx +2 -2
- package/src/components/ContentPage/ContentPage.page.json +88 -2
- package/src/components/ContentPage/ContentPage.tsx +7 -5
- package/src/components/CreditCalculator/CreditCalculatorContent.ts +4 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +2 -2
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +4 -0
- package/src/components/Footer/Contacts.tsx +2 -2
- package/src/components/Footer/FooterContent.ts +36 -9
- package/src/components/Footer/FooterLink.ts +2 -2
- package/src/components/Footer/HorizontalNavigation.tsx +2 -2
- package/src/components/Footer/Sitemap.tsx +5 -5
- package/src/components/Footer/SocialMedia.tsx +2 -2
- package/src/components/Footer/TextInformation.tsx +2 -2
- package/src/components/Gallery/Gallery.example.json +71 -0
- package/src/components/Gallery/GalleryContent.ts +13 -0
- package/src/components/Header/HeaderContent.ts +10 -2
- package/src/components/Header/isSubItemActive.ts +3 -3
- package/src/components/Header/isTopItemActive.ts +3 -3
- package/src/components/Headline/Headline.example.json +6 -0
- package/src/components/Headline/Headline.fixture.tsx +42 -0
- package/src/components/Headline/Headline.tsx +15 -0
- package/src/components/Headline/HeadlineContent.ts +18 -0
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +51 -0
- package/src/components/LinkDocs/LinkDocs.tsx +81 -0
- package/src/components/LinkDocs/LinkDocsContent.ts +26 -0
- package/src/components/MiniGallery/MiniGallery.example.json +61 -0
- package/src/components/MiniGallery/MiniGallery.tsx +3 -3
- package/src/components/MiniGallery/MiniGalleryContent.ts +6 -0
- package/src/components/MobileAppTile/MobileAppTile.example.json +20 -0
- package/src/components/MobileAppTile/MobileAppTileContent.ts +11 -2
- package/src/components/MobileBlocks.ts +10 -6
- package/src/components/PictureText/PictureText.example.json +20 -0
- package/src/components/PictureText/PictureText.fixture.tsx +36 -0
- package/src/components/PictureText/PictureText.tsx +45 -0
- package/src/components/PictureText/PictureTextContent.ts +13 -0
- package/src/components/Placeholder/PlaceholderContent.ts +3 -0
- package/src/components/ProductBlock/ProductBlock.example.json +17 -0
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +3 -3
- package/src/components/ProductBlock/ProductBlockContent.ts +10 -5
- package/src/components/ProductBlock/ProductBlockInner.tsx +4 -4
- package/src/components/ProductGallery/ProductGallery.example.json +21 -0
- package/src/components/ProductGallery/ProductGallery.tsx +3 -3
- package/src/components/ProductGallery/ProductGalleryContent.ts +19 -4
- package/src/components/ProductTile/ProductTile.example.json +30 -0
- package/src/components/ProductTile/ProductTileContent.ts +6 -2
- package/src/components/PromoTile/PromoTile.example.json +13 -0
- package/src/components/PromoTile/PromoTileContent.ts +6 -2
- package/src/components/StepsBlock/StepsBlock.example.json +17 -0
- package/src/components/StepsBlock/StepsBlockContent.ts +13 -0
- package/src/components/TextBlock/TextBlock.example.json +6 -0
- package/src/components/TextBlock/TextBlockContent.ts +14 -0
- package/src/components/Tile/Tile.example.json +18 -0
- package/src/components/Tile/TileContent.ts +5 -2
- package/src/hooks/useLink.ts +2 -2
- package/src/icons/DiscountShape.svg +7 -0
- package/src/icons/DocIcon.svg +1 -1
- package/src/icons/DocumentText.svg +6 -0
- package/src/icons/GridIcon.svg +4 -7
- package/src/index.ts +14 -21
- package/src/mergeTopItems.ts +5 -5
- package/src/model/BlockVersion.ts +4 -0
- package/src/model/ButtonVersion.ts +4 -0
- package/src/model/LinkProps.ts +22 -0
- package/src/model/Picture.ts +11 -0
- package/src/model/SitemapProps.ts +15 -0
- package/src/types.ts +2 -2
- package/src/ui-kit/Breadcrumb.tsx +2 -2
- package/src/ui-kit/Button/Button.tsx +7 -3
- package/src/ui-kit/Button/ButtonProps.ts +16 -13
- package/src/ui-kit/Icon/IconProps.ts +39 -4
- package/src/ui-kit/TopItem/TopItem.tsx +2 -2
- package/dist/components/BaseTile/BaseTileContent.d.ts +0 -13
- package/dist/components/BaseTile/BaseTileContent.js.map +0 -1
- package/dist/model/LinkContent.d.ts +0 -5
- package/dist/model/LinkContent.js.map +0 -1
- package/dist/model/SitemapContent.d.ts +0 -7
- package/dist/model/SitemapContent.js.map +0 -1
- package/lib/components/BaseTile/BaseTileContent.d.ts +0 -13
- package/lib/components/BaseTile/BaseTileContent.js +0 -2
- package/lib/components/BaseTile/BaseTileContent.js.map +0 -1
- package/lib/model/LinkContent.d.ts +0 -5
- package/lib/model/LinkContent.js +0 -2
- package/lib/model/LinkContent.js.map +0 -1
- package/lib/model/SitemapContent.d.ts +0 -7
- package/lib/model/SitemapContent.js +0 -2
- package/lib/model/SitemapContent.js.map +0 -1
- package/src/components/BaseTile/BaseTileContent.ts +0 -14
- package/src/icons/MinusIcon.svg +0 -1
- package/src/icons/PlusIcon.svg +0 -1
- package/src/model/LinkContent.ts +0 -5
- package/src/model/SitemapContent.ts +0 -9
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { SitemapProps } from '../../model/SitemapProps';
|
|
2
|
+
/**
|
|
3
|
+
* @title Шапка
|
|
4
|
+
* @required ["defaultLocation", "topItems"]
|
|
5
|
+
*/
|
|
6
|
+
export interface HeaderContent extends SitemapProps {
|
|
7
|
+
/**
|
|
8
|
+
* @title Город по-умолчанию
|
|
9
|
+
* @default Москва
|
|
10
|
+
*/
|
|
3
11
|
defaultLocation?: string;
|
|
4
12
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
1
2
|
import type { Router } from '../ContentPage/ContentPageContext';
|
|
2
|
-
|
|
3
|
-
export declare function isSubItemActive(router: Router): (subItem: LinkContent) => boolean;
|
|
3
|
+
export declare function isSubItemActive(router: Router): (subItem: LinkProps) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isSubItemActive.js","sourceRoot":"","sources":["../../../src/components/Header/isSubItemActive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isSubItemActive.js","sourceRoot":"","sources":["../../../src/components/Header/isSubItemActive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,OAAO,CAAC,OAAkB,EAAW,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC7E,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
1
2
|
import type { Router } from '../ContentPage/ContentPageContext';
|
|
2
|
-
|
|
3
|
-
export declare function isTopItemActive(router: Router): (topItem: LinkContent) => boolean;
|
|
3
|
+
export declare function isTopItemActive(router: Router): (topItem: LinkProps) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isTopItemActive.js","sourceRoot":"","sources":["../../../src/components/Header/isTopItemActive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isTopItemActive.js","sourceRoot":"","sources":["../../../src/components/Header/isTopItemActive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,OAAO,CAAC,OAAkB,EAAW,EAAE,CACrC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;AACpG,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { HeadlineContent } from './HeadlineContent';
|
|
3
|
+
export interface HeadlineProps extends UniBlockProps, HeadlineContent {
|
|
4
|
+
}
|
|
5
|
+
export declare const Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<HeadlineProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
4
|
+
export const Headline = JSX(({ bgColor = 'bg-white', className, ...props }) => {
|
|
5
|
+
return (_jsx("section", { className: `p-10 ${bgColor} ${className || ''} `, children: _jsx(BaseTile, { ...props }) }));
|
|
6
|
+
});
|
|
7
|
+
//# sourceMappingURL=Headline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAKhD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3F,OAAO,CACL,kBAAS,SAAS,EAAE,QAAQ,OAAO,IAAI,SAAS,IAAI,EAAE,GAAG,YACvD,KAAC,QAAQ,OAAK,KAAK,GAAa,GACxB,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
2
|
+
/**
|
|
3
|
+
* @title Цвет фона
|
|
4
|
+
* @enumNames [
|
|
5
|
+
* "Прозрачный",
|
|
6
|
+
* "Белый"
|
|
7
|
+
* ]
|
|
8
|
+
*/
|
|
9
|
+
export declare type HeadlineBgColor = 'transparent' | 'bg-white';
|
|
10
|
+
/**
|
|
11
|
+
* @title Заголовок
|
|
12
|
+
*/
|
|
13
|
+
export interface HeadlineContent extends Pick<BaseTileCommonProps, 'title' | 'titleSize' | 'description' | 'align'> {
|
|
14
|
+
bgColor?: HeadlineBgColor;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeadlineContent.js","sourceRoot":"","sources":["../../../src/components/Headline/HeadlineContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { LinkDocsContent } from './LinkDocsContent';
|
|
3
|
+
export interface LinkDocsProps extends LinkDocsContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<LinkDocsProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LinkDocsContent } from './LinkDocsContent';
|
|
2
|
+
export declare const LinkDocsFixtureSetOne: LinkDocsContent;
|
|
3
|
+
export declare const LinkDocsFixtureSetTwo: LinkDocsContent;
|
|
4
|
+
export declare const LinkDocsFixtureSetThree: LinkDocsContent;
|
|
5
|
+
export declare const LinkDocsFixtureSetFour: LinkDocsContent;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
'default, 2 columns': any;
|
|
8
|
+
'one column': any;
|
|
9
|
+
'another icon, no extensions': any;
|
|
10
|
+
'no icon': any;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
4
|
+
import { Title } from '../../ui-kit/Title/Title.js';
|
|
5
|
+
const titleAlignStyleMap = {
|
|
6
|
+
left: 'text-left',
|
|
7
|
+
center: 'text-center',
|
|
8
|
+
right: 'text-right',
|
|
9
|
+
};
|
|
10
|
+
const titleMarginsStyleMap = {
|
|
11
|
+
double: 'mb-8',
|
|
12
|
+
single: '',
|
|
13
|
+
};
|
|
14
|
+
const linkColumnsModeStyleMap = {
|
|
15
|
+
double: 'gap-x-5 gap-y-[26px] flex-wrap',
|
|
16
|
+
single: 'gap-3.5 flex-col',
|
|
17
|
+
};
|
|
18
|
+
export const LinkDocs = JSX(({ className, title, align, documents, icon, columnsMode = 'double' }) => {
|
|
19
|
+
const containerClasses = linkColumnsModeStyleMap[columnsMode];
|
|
20
|
+
return (_jsxs("section", { className: `font-sans p-[50px] bg-white ${className}`, children: [title && (_jsx(Title, { className: `font-medium m-0 ${titleMarginsStyleMap[columnsMode]} ${titleAlignStyleMap[align ?? 'center']}`, children: title })), _jsx("div", { className: `flex ${containerClasses}`, role: "list", children: documents?.length
|
|
21
|
+
? documents.map(({ text, fileSize, ...linkProps }) => (_jsxs("a", { className: `group flex items-center text-sm
|
|
22
|
+
text-sm font-sans align-middle items-center text-primary-text no-underline group hover:text-primary-main
|
|
23
|
+
${columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : ''}`, role: "listitem", ...linkProps, children: [icon && _jsx(Icon, { className: "mr-3.5", name: icon, width: "24px", height: "24px" }), _jsxs("span", { children: [text, _jsx("span", { className: "text-secondary-text group-hover:text-primary-main", children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })] })))
|
|
24
|
+
: null })] }));
|
|
25
|
+
});
|
|
26
|
+
const getExtFromHref = (href) => {
|
|
27
|
+
if (!href)
|
|
28
|
+
return '';
|
|
29
|
+
const lastChunk = href.split('.').pop();
|
|
30
|
+
if (!lastChunk || lastChunk.includes('/'))
|
|
31
|
+
return '';
|
|
32
|
+
return lastChunk;
|
|
33
|
+
};
|
|
34
|
+
const formatSuffix = (ext, fileSize) => {
|
|
35
|
+
const prefix = ext || fileSize ? ',' : '';
|
|
36
|
+
const extension = ext ? ` ${ext}` : '';
|
|
37
|
+
const size = fileSize ? ` (${fileSize})` : '';
|
|
38
|
+
return prefix + extension + size;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=LinkDocs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAIjD,MAAM,kBAAkB,GAA8B;IACpD,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEF,MAAM,oBAAoB,GAAoC;IAC5D,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,EAAE;CACX,CAAC;AAEF,MAAM,uBAAuB,GAAoC;IAC/D,MAAM,EAAE,gCAAgC;IACxC,MAAM,EAAE,kBAAkB;CAC3B,CAAC;AAIF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,QAAQ,EAAE,EAAE,EAAE;IACvE,MAAM,gBAAgB,GAAG,uBAAuB,CAAC,WAAW,CAAC,CAAC;IAE9D,OAAO,CACL,mBAAS,SAAS,EAAE,+BAA+B,SAAS,EAAE,aAC3D,KAAK,IAAI,CACR,KAAC,KAAK,IACJ,SAAS,EAAE,mBAAmB,oBAAoB,CAAC,WAAW,CAAC,IAC7D,kBAAkB,CAAC,KAAK,IAAI,QAAQ,CACtC,EAAE,YAED,KAAK,GACA,CACT,EACD,cAAK,SAAS,EAAE,QA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,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9C,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AACnC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
3
|
+
import { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
4
|
+
/** @title Режим отображения списка */
|
|
5
|
+
export declare type LinkColumnsMode = 'single' | 'double';
|
|
6
|
+
/**
|
|
7
|
+
* @title Элемент списка
|
|
8
|
+
*/
|
|
9
|
+
export interface LinkDocsItem extends LinkProps {
|
|
10
|
+
/** @title размер файла */
|
|
11
|
+
fileSize?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @title Список документов
|
|
15
|
+
*/
|
|
16
|
+
export interface LinkDocsContent extends Pick<BaseTileCommonProps, 'align' | 'title'> {
|
|
17
|
+
/** @title Название иконки */
|
|
18
|
+
icon?: IconName;
|
|
19
|
+
/** @title Список */
|
|
20
|
+
documents?: LinkDocsItem[];
|
|
21
|
+
/** @title Отображение списка */
|
|
22
|
+
columnsMode?: LinkColumnsMode;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkDocsContent.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export interface MiniGalleryProps extends
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { MiniGalleryContent } from './MiniGalleryContent';
|
|
3
|
+
export interface MiniGalleryProps extends MiniGalleryContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const MiniGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<MiniGalleryProps, any>, context?: any) => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MiniGalleryContent.js","sourceRoot":"","sources":["../../../src/components/MiniGallery/MiniGalleryContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
2
|
+
/**
|
|
3
|
+
* @title QR код
|
|
4
|
+
*/
|
|
2
5
|
export interface QRCode {
|
|
6
|
+
/** @title QR код */
|
|
3
7
|
src?: string;
|
|
8
|
+
/** @title Ссылка */
|
|
4
9
|
href?: string;
|
|
5
10
|
}
|
|
6
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @title Мобильное приложение
|
|
13
|
+
*/
|
|
14
|
+
export interface MobileAppTileContent extends BaseTileCommonProps {
|
|
15
|
+
/** @title Заголовок */
|
|
7
16
|
title?: string;
|
|
8
17
|
qr?: QRCode;
|
|
9
18
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export declare const MobileBlocks: {
|
|
2
|
-
|
|
2
|
+
ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
|
|
3
3
|
Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer.mobile").FooterProps, any>, context?: any) => any;
|
|
4
|
+
Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Gallery/Gallery").GalleryProps, any>, context?: any) => any;
|
|
5
|
+
Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
|
|
6
|
+
Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Headline/Headline").HeadlineProps, any>, context?: any) => any;
|
|
7
|
+
MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
|
|
8
|
+
PictureText: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./PictureText/PictureText").PictureTextProps, any>, context?: any) => any;
|
|
4
9
|
Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder/Placeholder").PlaceholderProps, any>, context?: any) => any;
|
|
5
|
-
Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Tile/Tile").TileProps, any>, context?: any) => any;
|
|
6
|
-
ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
|
|
7
10
|
ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductBlock/ProductBlock.mobile").ProductBlockProps, any>, context?: any) => any;
|
|
11
|
+
ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
|
|
8
12
|
TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
|
|
9
|
-
|
|
10
|
-
MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
|
|
11
|
-
Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Gallery/Gallery").GalleryProps, any>, context?: any) => any;
|
|
13
|
+
Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Tile/Tile").TileProps, any>, context?: any) => any;
|
|
12
14
|
};
|
|
@@ -2,23 +2,27 @@ import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile.js';
|
|
|
2
2
|
import { Footer } from './Footer/Footer.mobile.js';
|
|
3
3
|
import { Gallery } from './Gallery/Gallery.mobile.js';
|
|
4
4
|
import { Header } from './Header/Header.js';
|
|
5
|
+
import { Headline } from './Headline/Headline.js';
|
|
5
6
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile.js';
|
|
7
|
+
import { PictureText } from './PictureText/PictureText.js';
|
|
6
8
|
import { Placeholder } from './Placeholder/Placeholder.js';
|
|
7
9
|
import { ProductBlock } from './ProductBlock/ProductBlock.mobile.js';
|
|
8
10
|
import { ProductTile } from './ProductTile/ProductTile.js';
|
|
9
11
|
import { TextBlock } from './TextBlock/TextBlock.js';
|
|
10
12
|
import { Tile } from './Tile/Tile.js';
|
|
11
13
|
export const MobileBlocks = {
|
|
12
|
-
|
|
14
|
+
ExchangeRateTile,
|
|
13
15
|
Footer,
|
|
16
|
+
Gallery,
|
|
17
|
+
Header,
|
|
18
|
+
Headline,
|
|
19
|
+
MobileAppTile,
|
|
20
|
+
PictureText,
|
|
14
21
|
Placeholder,
|
|
15
|
-
Tile,
|
|
16
|
-
ProductTile,
|
|
17
22
|
ProductBlock,
|
|
23
|
+
ProductTile,
|
|
18
24
|
TextBlock,
|
|
19
|
-
|
|
20
|
-
MobileAppTile,
|
|
21
|
-
Gallery,
|
|
25
|
+
Tile,
|
|
22
26
|
// TODO StepsBlock,
|
|
23
27
|
// TODO BenefitsBlock,
|
|
24
28
|
// TODO ProductGallery
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileBlocks.js","sourceRoot":"","sources":["../../src/components/MobileBlocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM;IACN,MAAM;IACN,
|
|
1
|
+
{"version":3,"file":"MobileBlocks.js","sourceRoot":"","sources":["../../src/components/MobileBlocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,gBAAgB;IAChB,MAAM;IACN,OAAO;IACP,MAAM;IACN,QAAQ;IACR,aAAa;IACb,WAAW;IACX,WAAW;IACX,YAAY;IACZ,WAAW;IACX,SAAS;IACT,IAAI;IACJ,mBAAmB;IACnB,sBAAsB;IACtB,sBAAsB;CACvB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { PictureTextContent } from './PictureTextContent';
|
|
3
|
+
export interface PictureTextProps extends PictureTextContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const PictureText: (props: import("@redneckz/uni-jsx").PropsWithChildren<PictureTextProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
4
|
+
import { Img } from '../../ui-kit/Img.js';
|
|
5
|
+
import { Title } from '../../ui-kit/Title/Title.js';
|
|
6
|
+
export const PictureText = JSX(({ className, title, image, benefits }) => {
|
|
7
|
+
return (_jsxs("section", { className: `relative font-sans text-primary-text bg-white p-14 ${className}`, children: [_jsx(Title, { className: "font-medium m-0 text-center", children: title }), _jsxs("div", { className: 'flex justify-center mt-9', children: [image?.src && _jsx(Img, { className: "mr-6", image: image }), benefits?.length ? (_jsx("div", { className: "flex flex-col", children: benefits.map(renderBenefit) })) : null] })] }));
|
|
8
|
+
});
|
|
9
|
+
function renderBenefit(benefit, i) {
|
|
10
|
+
return (_jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon && (_jsx(Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48" })), _jsxs("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [_jsx("div", { className: "font-medium text-primary-text text-xl m-0", children: benefit.label }), benefit.description && (_jsx("div", { className: "font-normal text-sm text-secondary-text", children: benefit.description }))] })] }, String(i)));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=PictureText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictureText.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureText.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBA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AC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
2
|
+
import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
3
|
+
/**
|
|
4
|
+
* @title Картинка с текстом
|
|
5
|
+
*/
|
|
6
|
+
export interface PictureTextContent extends Pick<BaseTileCommonProps, 'title' | 'description' | 'image'> {
|
|
7
|
+
/**
|
|
8
|
+
* @title Список преимуществ
|
|
9
|
+
*/
|
|
10
|
+
benefits?: Benefit[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictureTextContent.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureTextContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ProductBlockInnerContent } from './ProductBlockContent';
|
|
2
1
|
import type { UniBlockProps } from '../../types';
|
|
3
|
-
|
|
2
|
+
import type { ProductBlockInnerCommonProps } from './ProductBlockContent';
|
|
3
|
+
export interface ProductBlockProps extends ProductBlockInnerCommonProps, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductBlockProps, any>, context?: any) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlock.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC,mCAAmC,EAAE,EAAE;IAC/E,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAC5B,OAAO,CACL,kBACE,SAAS,EAAE,4DAA4D,SAAS,IAAI,EAAE,EAAE,YAExF,KAAC,iBAAiB,OAAK,KAAK,EAAE,SAAS,EAAC,GAAG,GAAG,GACtC,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
3
3
|
import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
4
|
-
export interface
|
|
4
|
+
export interface ProductBlockInnerCommonProps extends BaseTileCommonProps {
|
|
5
|
+
/** @title Преимущества */
|
|
5
6
|
benefits?: Benefit[];
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* @title Продуктовый блок
|
|
10
|
+
*/
|
|
11
|
+
export interface ProductBlockContent extends ProductBlockInnerCommonProps {
|
|
12
|
+
/** @title Хлебные крошки */
|
|
13
|
+
breadcrumbs?: LinkProps[];
|
|
9
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ProductBlockInnerContent } from './ProductBlockContent';
|
|
2
1
|
import type { UniBlockProps } from '../../types';
|
|
3
|
-
|
|
2
|
+
import type { ProductBlockInnerCommonProps } from './ProductBlockContent';
|
|
3
|
+
export interface ProductBlockInnerProps extends ProductBlockInnerCommonProps, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const ProductBlockInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductBlockInnerProps, any>, context?: any) => any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
4
3
|
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
5
4
|
import { Img } from '../../ui-kit/Img.js';
|
|
6
5
|
import { Title } from '../../ui-kit/Title/Title.js';
|
|
6
|
+
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
7
7
|
export const ProductBlockInner = JSX(({ className, context, title, titleSize, description, benefits, buttons, image, items }) => {
|
|
8
8
|
return (_jsxs("div", { className: `flex grow justify-between items-stretch ${className || ''}`, children: [_jsxs("div", { className: 'flex flex-col', children: [title && (
|
|
9
9
|
/* TODO Why <Title> is duplicated here? */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAMhD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IACzF,OAAO,CACL,eAAK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BlockProps } from '../../types';
|
|
2
|
+
import type { ProductGalleryContent } from './ProductGalleryContent';
|
|
3
3
|
export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const ProductGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<ProductGalleryProps, any>, context?: any) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAKtE,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAC/B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,GAAG,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,EAAE;IACpD,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACxD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpE,OAAO,CACL,mBAAS,SAAS,EAAE,4CAA4C,SAAS,IAAI,EAAE,EAAE,aAC/E,cACE,SAAS,EAAE,oBAAoB,EAC/B,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,gBAAgB,MAAM,EAAE,EAC3D,IAAI,EAAC,MAAM,Y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B,EAAE,YACrF,KAAK,EAAE,KAAK,GACT,EACN,cAAK,SAAS,EAAC,6BAA6B,YAAE,KAAK,CAAC,IAAI,GAAO,IAC3D,EACN,cACE,SAAS,EAAE,6EAA6E,oBAAoB,EAAE,EAC9G,KAAK,EAAE,EAAE,iBAAiB,EAAE,GAAG,QAAQ,GAAG,EAAE,GACvC,KAbF,MAAM,CAAC,CAAC,CAAC,CAcP,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ProductBlockInnerCommonProps } from '../ProductBlock/ProductBlockContent';
|
|
2
|
+
/** @title Кнопка под слайдом */
|
|
2
3
|
interface ProductGalleryNav {
|
|
4
|
+
/** @title Заголовок */
|
|
3
5
|
title: string;
|
|
6
|
+
/** @title Описание */
|
|
4
7
|
desc: string;
|
|
5
8
|
}
|
|
6
|
-
|
|
9
|
+
/**
|
|
10
|
+
* @title Слайд
|
|
11
|
+
*/
|
|
12
|
+
export interface ProductSlide {
|
|
7
13
|
nav: ProductGalleryNav;
|
|
8
|
-
|
|
14
|
+
/** @title Содержимое слайда */
|
|
15
|
+
productBlock: ProductBlockInnerCommonProps;
|
|
9
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @title Продуктовая галерея
|
|
19
|
+
*/
|
|
10
20
|
export interface ProductGalleryContent {
|
|
21
|
+
/**
|
|
22
|
+
* @title Задержка
|
|
23
|
+
* @hidden //! temporary not used
|
|
24
|
+
*/
|
|
11
25
|
duration?: number;
|
|
12
|
-
|
|
26
|
+
/** @title Слайды */
|
|
27
|
+
slides?: ProductSlide[];
|
|
13
28
|
}
|
|
14
29
|
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
2
2
|
import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @title Продуктовая плитка
|
|
5
|
+
*/
|
|
6
|
+
export interface ProductTileContent extends BaseTileCommonProps {
|
|
7
|
+
/** @title Преимущества */
|
|
4
8
|
benefits?: Benefit[];
|
|
5
9
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
2
|
+
/**
|
|
3
|
+
* @title Акции
|
|
4
|
+
*/
|
|
5
|
+
export interface PromoTileContent extends BaseTileCommonProps {
|
|
6
|
+
/** @title Дата публикации */
|
|
3
7
|
date?: string;
|
|
4
8
|
}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
2
|
+
/**
|
|
3
|
+
* @title Шаг
|
|
4
|
+
*/
|
|
2
5
|
export interface Step {
|
|
6
|
+
/** @title Название */
|
|
3
7
|
label: string;
|
|
8
|
+
/** @title Описание */
|
|
4
9
|
description?: string;
|
|
5
10
|
icon?: IconName;
|
|
6
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @title Блок шаги
|
|
14
|
+
*/
|
|
7
15
|
export interface StepsBlockContent {
|
|
16
|
+
/** @title Заголовок */
|
|
8
17
|
title?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @title Шаги
|
|
20
|
+
* @maxItems 6
|
|
21
|
+
*/
|
|
9
22
|
steps?: Step[];
|
|
10
23
|
}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
|
+
/**
|
|
3
|
+
* @title Цвет плитки
|
|
4
|
+
* @enumNames ["Основная", "Второстепенная", "Второстепенная прозрачная"]
|
|
5
|
+
*/
|
|
2
6
|
export declare type TextBlockVersion = 'primary' | 'secondary' | 'secondary-light';
|
|
7
|
+
/**
|
|
8
|
+
* @title Размер иконки
|
|
9
|
+
* @enumNames ["Нет", "Маленькая", "Большая"]
|
|
10
|
+
*/
|
|
3
11
|
export declare type TextBlockIconVersion = 'none' | 'small' | 'big';
|
|
12
|
+
/**
|
|
13
|
+
* @title Текстовый блок
|
|
14
|
+
*/
|
|
4
15
|
export interface TextBlockContent {
|
|
16
|
+
/** @title Заголовок */
|
|
5
17
|
title?: string;
|
|
18
|
+
/** @title Описание */
|
|
6
19
|
description?: string;
|
|
7
20
|
blockVersion?: TextBlockVersion;
|
|
8
21
|
iconVersion?: TextBlockIconVersion;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
2
|
+
/**
|
|
3
|
+
* @title Плитка
|
|
4
|
+
*/
|
|
5
|
+
export declare type TileContent = BaseTileCommonProps;
|
package/lib/hooks/useLink.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { HandlerDecorator, Router } from '../components/ContentPage/ContentPageContext';
|
|
2
|
-
import type {
|
|
2
|
+
import type { LinkProps } from '../model/LinkProps';
|
|
3
3
|
export declare function useLink({ router, handlerDecorator, }: {
|
|
4
4
|
router: Router;
|
|
5
5
|
handlerDecorator?: HandlerDecorator;
|
|
6
|
-
}, link: Partial<
|
|
6
|
+
}, link: Partial<LinkProps & {
|
|
7
7
|
className: string;
|
|
8
8
|
}>): {
|
|
9
9
|
href: string | undefined;
|
|
10
10
|
ariaLabel: string | undefined;
|
|
11
11
|
onClick: (ev: MouseEvent) => void;
|
|
12
12
|
text?: string | undefined;
|
|
13
|
-
target?:
|
|
13
|
+
target?: import("../model/LinkProps").Target | undefined;
|
|
14
14
|
className?: string | undefined;
|
|
15
15
|
};
|
package/lib/hooks/useLink.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLink.js","sourceRoot":"","sources":["../../src/hooks/useLink.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEjD,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/hooks/useLink.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEjD,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,IAAgD;IAEhD,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"}
|