@redneckz/wildless-cms-uni-blocks 0.2.85 → 0.2.88
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/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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Акции и спецпредложения",
|
|
3
|
+
"date": "2022-04-16",
|
|
4
|
+
"description": "Пенсионный кредит по специальной процентной ставке",
|
|
5
|
+
"buttons": [
|
|
6
|
+
{
|
|
7
|
+
"text": "Все акции",
|
|
8
|
+
"href": "/credits",
|
|
9
|
+
"version": "secondary"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"version": "secondary"
|
|
13
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BaseTileCommonProps } from '../BaseTile/BaseTileProps';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @title Акции
|
|
5
|
+
*/
|
|
6
|
+
export interface PromoTileContent extends BaseTileCommonProps {
|
|
7
|
+
/** @title Дата публикации */
|
|
4
8
|
date?: string;
|
|
5
9
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @title Шаг
|
|
5
|
+
*/
|
|
3
6
|
export interface Step {
|
|
7
|
+
/** @title Название */
|
|
4
8
|
label: string;
|
|
9
|
+
/** @title Описание */
|
|
5
10
|
description?: string;
|
|
6
11
|
icon?: IconName;
|
|
7
12
|
}
|
|
8
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @title Блок шаги
|
|
16
|
+
*/
|
|
9
17
|
export interface StepsBlockContent {
|
|
18
|
+
/** @title Заголовок */
|
|
10
19
|
title?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @title Шаги
|
|
22
|
+
* @maxItems 6
|
|
23
|
+
*/
|
|
11
24
|
steps?: Step[];
|
|
12
25
|
}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @title Цвет плитки
|
|
5
|
+
* @enumNames ["Основная", "Второстепенная", "Второстепенная прозрачная"]
|
|
6
|
+
*/
|
|
3
7
|
export type TextBlockVersion = 'primary' | 'secondary' | 'secondary-light';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @title Размер иконки
|
|
11
|
+
* @enumNames ["Нет", "Маленькая", "Большая"]
|
|
12
|
+
*/
|
|
4
13
|
export type TextBlockIconVersion = 'none' | 'small' | 'big';
|
|
5
14
|
|
|
15
|
+
/**
|
|
16
|
+
* @title Текстовый блок
|
|
17
|
+
*/
|
|
6
18
|
export interface TextBlockContent {
|
|
19
|
+
/** @title Заголовок */
|
|
7
20
|
title?: string;
|
|
21
|
+
/** @title Описание */
|
|
8
22
|
description?: string;
|
|
9
23
|
blockVersion?: TextBlockVersion;
|
|
10
24
|
iconVersion?: TextBlockIconVersion;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Плитка",
|
|
3
|
+
"titleSize": "M",
|
|
4
|
+
"description": "Описание",
|
|
5
|
+
"image": {
|
|
6
|
+
"format": "webp",
|
|
7
|
+
"size": {
|
|
8
|
+
"width": 300
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"items": ["Пункт 1", "Пункт 2", "Пункт 3"],
|
|
12
|
+
"buttons": [
|
|
13
|
+
{
|
|
14
|
+
"text": "Подробнее",
|
|
15
|
+
"version": "primary"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
package/src/hooks/useLink.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HandlerDecorator, Router } from '../components/ContentPage/ContentPageContext';
|
|
2
|
-
import type {
|
|
2
|
+
import type { LinkProps } from '../model/LinkProps';
|
|
3
3
|
import { adjustHref, isURL } from '../utils/url';
|
|
4
4
|
|
|
5
5
|
const defaultHandlerDecorator: HandlerDecorator = (handler, targetContent) => handler;
|
|
@@ -9,7 +9,7 @@ export function useLink(
|
|
|
9
9
|
router,
|
|
10
10
|
handlerDecorator = defaultHandlerDecorator,
|
|
11
11
|
}: { router: Router; handlerDecorator?: HandlerDecorator },
|
|
12
|
-
link: Partial<
|
|
12
|
+
link: Partial<LinkProps & { className: string }>,
|
|
13
13
|
) {
|
|
14
14
|
const href = adjustHref(link.href, router);
|
|
15
15
|
return {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg id="icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14.6599 20.01L13.1399 21.53C12.5199 22.15 11.4999 22.15 10.8799 21.53L9.3599 20.01C9.0999 19.75 8.58992 19.54 8.22992 19.54H6.0799C5.1999 19.54 4.47992 18.8199 4.47992 17.9399V15.79C4.47992 15.43 4.26992 14.92 4.00992 14.66L2.4899 13.14C1.8699 12.52 1.8699 11.5 2.4899 10.88L4.00992 9.35999C4.26992 9.09999 4.47992 8.58998 4.47992 8.22998V6.07996C4.47992 5.19996 5.1999 4.47998 6.0799 4.47998" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M9.33984 3.9899L10.8598 2.46988C11.4798 1.84988 12.4998 1.84988 13.1198 2.46988L14.6399 3.9899C14.8999 4.2499 15.4098 4.45987 15.7698 4.45987H17.9199C18.7999 4.45987 19.5198 5.17997 19.5198 6.05997V8.20987C19.5198 8.56987 19.7298 9.07988 19.9898 9.33988L21.5099 10.8599C22.1299 11.4799 22.1299 12.4999 21.5099 13.1199L19.9898 14.6399C19.7298 14.8999 19.5198 15.4099 19.5198 15.7699V17.92C19.5198 18.8 18.7999 19.5199 17.9199 19.5199" stroke="#1C1C1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M9 15L15 9" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M14.4945 14.5H14.5035" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<path d="M9.49451 9.5H9.50349" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
+
</svg>
|
package/src/icons/DocIcon.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1
|
+
<svg id="icon" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.809 2.759A2.813 2.813 0 0 1 11.742 2h5.524C18.776 2 20 3.16 20 4.59v13.82c0 1.43-1.224 2.59-2.734 2.59H6.734C5.224 21 4 19.84 4 18.41v-5.95c0-.477.408-.864.911-.864.504 0 .912.387.912.864v5.95c0 .476.408.863.911.863h10.532c.503 0 .911-.387.911-.864V4.591c0-.477-.408-.864-.911-.864h-5.367v4.03c0 .955-.816 1.728-1.823 1.728H4.911c-.368 0-.7-.21-.842-.533a.83.83 0 0 1 .198-.941l5.542-5.252Zm.267 2.19L7.112 7.758h2.964v-2.81Z" fill="#1C1C1C" />
|
|
3
3
|
<rect x="8" y="12" width="8" height="2" rx="1" fill="#42AB44" />
|
|
4
4
|
<rect x="8" y="15" width="5" height="2" rx="1" fill="#42AB44" />
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg id="icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3 7C3 4 4.5 2 8 2H16C19.5 2 21 4 21 7V17C21 20 19.5 22 16 22H8C4.5 22 3 20 3 17V11.02" stroke="#1C1C1C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M14.5 4.5V6.5C14.5 7.6 15.4 8.5 16.5 8.5H18.5" stroke="#1C1C1C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M8 13H12" stroke="#42AB44" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M8 17H16" stroke="#42AB44" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
</svg>
|
package/src/index.ts
CHANGED
|
@@ -1,33 +1,26 @@
|
|
|
1
1
|
export { setup } from '@redneckz/uni-jsx';
|
|
2
|
-
|
|
3
|
-
export type { ProjectSettings } from './ProjectSettings';
|
|
4
|
-
export { projectSettings } from './ProjectSettings';
|
|
5
|
-
|
|
6
|
-
export { LikeAPI } from './api/LikeAPI';
|
|
7
2
|
export { DaDataAPI } from './api/DaDataAPI';
|
|
8
|
-
|
|
9
|
-
export type {
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
export type {
|
|
3
|
+
export { LikeAPI } from './api/LikeAPI';
|
|
4
|
+
export type { BlockContent } from './components/BlockContent';
|
|
5
|
+
export { Blocks } from './components/Blocks';
|
|
6
|
+
export { ContentPage } from './components/ContentPage/ContentPage';
|
|
7
|
+
export type { BlockDecorator } from './components/ContentPage/ContentPage';
|
|
13
8
|
export type {
|
|
14
|
-
ContentPageContext,
|
|
15
|
-
Router,
|
|
16
9
|
AsyncDataHook,
|
|
10
|
+
ContentPageContext,
|
|
17
11
|
GeolocationHook,
|
|
18
|
-
LikeService,
|
|
19
12
|
HandlerDecorator,
|
|
13
|
+
LikeService,
|
|
14
|
+
Router,
|
|
20
15
|
Search,
|
|
21
16
|
} from './components/ContentPage/ContentPageContext';
|
|
22
|
-
|
|
23
17
|
export { ContentPageHead } from './components/ContentPage/ContentPageHead';
|
|
24
|
-
export type { BlockDecorator } from './components/ContentPage/ContentPage';
|
|
25
|
-
export { ContentPage } from './components/ContentPage/ContentPage';
|
|
26
18
|
export { toMobilePage } from './components/ContentPage/toMobilePage';
|
|
27
|
-
|
|
28
|
-
export { Blocks } from './components/Blocks';
|
|
29
|
-
export type { BlockContent } from './components/BlockContent';
|
|
30
19
|
export { MobileBlocks } from './components/MobileBlocks';
|
|
31
|
-
|
|
32
|
-
export
|
|
20
|
+
export type { Img, ImgSource, Picture } from './model/Picture';
|
|
21
|
+
export type { SitemapProps as SitemapContent } from './model/SitemapProps';
|
|
22
|
+
export { projectSettings } from './ProjectSettings';
|
|
23
|
+
export type { ProjectSettings } from './ProjectSettings';
|
|
24
|
+
export type { BlockDef, ContentPageDef, ContentPageMeta, UniBlockProps } from './types';
|
|
33
25
|
export { joinList } from './utils/joinList';
|
|
26
|
+
export * as url from './utils/url';
|
package/src/mergeTopItems.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LinkProps } from './model/LinkProps';
|
|
2
2
|
|
|
3
|
-
const cmp = (a?:
|
|
3
|
+
const cmp = (a?: LinkProps) => (b?: LinkProps) => a?.href === b?.href;
|
|
4
4
|
|
|
5
|
-
const substitute = <L extends
|
|
5
|
+
const substitute = <L extends LinkProps>(items?: L[], substitution?: L[]): L[] =>
|
|
6
6
|
(items || []).map((_) => substitution?.find(cmp(_)) || _);
|
|
7
7
|
|
|
8
|
-
const subtract = <L extends
|
|
8
|
+
const subtract = <L extends LinkProps>(minuend?: L[], subtrahend?: L[]): L[] =>
|
|
9
9
|
(minuend || []).filter((_) => !subtrahend?.find(cmp(_)));
|
|
10
10
|
|
|
11
|
-
export function mergeTopItems<L extends
|
|
11
|
+
export function mergeTopItems<L extends LinkProps>(left?: L[], right?: L[]): L[] {
|
|
12
12
|
return substitute(left, right).concat(subtract(right, left));
|
|
13
13
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title Таргет (target)
|
|
3
|
+
* @enumNames [
|
|
4
|
+
* "self (текущее окно или фрейм)",
|
|
5
|
+
* "blank (новое окно)",
|
|
6
|
+
* "parent (фрейм-родитель)",
|
|
7
|
+
* "top (текущее окно)"
|
|
8
|
+
* ]
|
|
9
|
+
*/
|
|
10
|
+
export type Target = '_blank' | '_self' | '_parent' | '_top';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @title Ссылка
|
|
14
|
+
* @required ["text", "href"]
|
|
15
|
+
*/
|
|
16
|
+
export interface LinkProps {
|
|
17
|
+
/** @title Текст */
|
|
18
|
+
text?: string;
|
|
19
|
+
/** @title URL (href) */
|
|
20
|
+
href?: string;
|
|
21
|
+
target?: Target;
|
|
22
|
+
}
|
package/src/model/Picture.ts
CHANGED
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
export interface Img {
|
|
2
|
+
/** @title Картинка */
|
|
2
3
|
src: string;
|
|
4
|
+
/** @title Альтернативный текст (alt) */
|
|
3
5
|
alt?: string;
|
|
6
|
+
/** @title Текст подсказки (title) */
|
|
4
7
|
title?: string;
|
|
5
8
|
}
|
|
6
9
|
|
|
7
10
|
export interface ImgSource {
|
|
11
|
+
/** @title Картинка */
|
|
8
12
|
src: string;
|
|
13
|
+
/** @title Формат */
|
|
9
14
|
format?: 'jpeg' | 'jpg' | 'png' | 'gif' | 'webp' | 'heif' | 'avif';
|
|
15
|
+
/** @hidden */
|
|
10
16
|
options?: Record<string, any>;
|
|
17
|
+
/** @title Размер изображения */
|
|
11
18
|
size?: {
|
|
19
|
+
/** @title Ширина */
|
|
12
20
|
width?: number;
|
|
21
|
+
/** @title Высота */
|
|
13
22
|
height?: number;
|
|
14
23
|
};
|
|
15
24
|
}
|
|
16
25
|
|
|
26
|
+
/** @title Изображение */
|
|
17
27
|
export interface Picture extends Img, ImgSource {
|
|
28
|
+
/** @title Другие форматы */
|
|
18
29
|
sources?: ImgSource[];
|
|
19
30
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LinkProps } from './LinkProps';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @title Ссылка
|
|
5
|
+
* @required ["text", "href"]
|
|
6
|
+
*/
|
|
7
|
+
export interface TopMenuItem extends LinkProps {
|
|
8
|
+
/** @hidden */
|
|
9
|
+
items?: LinkProps[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface SitemapProps {
|
|
13
|
+
/** @title Дополнительное меню */
|
|
14
|
+
topItems?: TopMenuItem[];
|
|
15
|
+
}
|
package/src/types.ts
CHANGED
|
@@ -2,13 +2,13 @@ import type { BlockContent } from './components/BlockContent';
|
|
|
2
2
|
import type { ContentPageContext } from './components/ContentPage/ContentPageContext';
|
|
3
3
|
import type { BlockVersion } from './model/BlockVersion';
|
|
4
4
|
|
|
5
|
-
export type ColorPalette = 'pc' | 'bc' | 'eo';
|
|
5
|
+
export type ColorPalette = 'pc' | 'bc' | 'eo' | 'eo2' | 'eo3' | 'eo4';
|
|
6
6
|
|
|
7
7
|
export interface BlockDef {
|
|
8
8
|
type: string;
|
|
9
9
|
style?: string[];
|
|
10
|
-
version?: BlockVersion;
|
|
11
10
|
content?: BlockContent;
|
|
11
|
+
version?: BlockVersion;
|
|
12
12
|
blocks?: BlockDef[];
|
|
13
13
|
mobile?: Pick<BlockDef, 'content' | 'style'> & {
|
|
14
14
|
hidden?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
2
|
+
import type { LinkProps } from '../model/LinkProps';
|
|
3
3
|
|
|
4
|
-
export interface BreadcrumbProps extends
|
|
4
|
+
export interface BreadcrumbProps extends LinkProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
onClick?: (ev: MouseEvent) => any;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ButtonProps, ButtonWithIconProps } from './ButtonProps';
|
|
4
4
|
|
|
5
5
|
const buttonStyleMap: Record<ButtonVersion, string> = {
|
|
6
6
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
@@ -15,7 +15,11 @@ const buttonDisabledStyleMap: Record<ButtonVersion, string> = {
|
|
|
15
15
|
|
|
16
16
|
const styleButton = 'inline-block text-center font-sans select-none';
|
|
17
17
|
|
|
18
|
-
export
|
|
18
|
+
export interface ButtonCommonProps extends ButtonProps, ButtonWithIconProps {}
|
|
19
|
+
|
|
20
|
+
export type ButtonInner = Pick<ButtonCommonProps, 'text' | 'aboveText' | 'appendLeft' | 'rounded'>;
|
|
21
|
+
|
|
22
|
+
export const Button = JSX<ButtonCommonProps>(
|
|
19
23
|
({
|
|
20
24
|
className,
|
|
21
25
|
text,
|
|
@@ -69,7 +73,7 @@ export const Button = JSX<ButtonProps>(
|
|
|
69
73
|
},
|
|
70
74
|
);
|
|
71
75
|
|
|
72
|
-
export const ButtonInner = JSX<
|
|
76
|
+
export const ButtonInner = JSX<ButtonInner>(({ text, aboveText, appendLeft, rounded }) => {
|
|
73
77
|
const withoutText = !text && !aboveText && Boolean(appendLeft);
|
|
74
78
|
|
|
75
79
|
const buttonInnerClasses = `flex items-center justify-center ${
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
|
-
import type {
|
|
3
|
-
import { IconName } from '../Icon/IconProps';
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
rounded?: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface ButtonProps extends LinkContent, ButtonInnerProps {
|
|
4
|
+
/**
|
|
5
|
+
* @hidden
|
|
6
|
+
*/
|
|
7
|
+
export interface ButtonAdditionalProps {
|
|
13
8
|
className?: string;
|
|
14
|
-
version?: ButtonVersion;
|
|
15
9
|
disabled?: boolean;
|
|
16
10
|
rel?: string;
|
|
17
11
|
ariaLabel?: string;
|
|
18
|
-
/** @hidden */
|
|
19
12
|
onClick?: (ev: MouseEvent) => any;
|
|
20
13
|
}
|
|
21
14
|
|
|
15
|
+
export interface ButtonProps extends ButtonAdditionalProps, LinkProps {
|
|
16
|
+
text?: string;
|
|
17
|
+
version?: ButtonVersion;
|
|
18
|
+
}
|
|
19
|
+
|
|
22
20
|
export interface ButtonWithIconProps extends ButtonProps {
|
|
23
|
-
|
|
21
|
+
/** @hidden */
|
|
22
|
+
aboveText?: string;
|
|
23
|
+
/** @hidden */
|
|
24
|
+
appendLeft?: any;
|
|
25
|
+
/** @hidden */
|
|
26
|
+
rounded?: boolean;
|
|
24
27
|
}
|
|
@@ -1,29 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icons sorted by name
|
|
3
|
+
*/
|
|
1
4
|
export enum IconMap {
|
|
2
5
|
'ActualBalanceIcon',
|
|
3
6
|
'AppleIcon',
|
|
4
7
|
'CalendarIcon',
|
|
5
8
|
'ClockIcon',
|
|
6
9
|
'ComfortableCompIcon',
|
|
10
|
+
'DiscountShape',
|
|
11
|
+
'DocIcon',
|
|
12
|
+
'DocumentText',
|
|
7
13
|
'DollarIcon',
|
|
8
14
|
'EmptyWalletIcon',
|
|
9
15
|
'EuroIcon',
|
|
16
|
+
'GlassIcon',
|
|
10
17
|
'GridIcon',
|
|
11
18
|
'LoupeIcon',
|
|
19
|
+
'MinusIcon',
|
|
12
20
|
'NewDocIcon',
|
|
13
21
|
'OkIcon',
|
|
14
22
|
'PassSendIcon',
|
|
15
23
|
'PercentageSquareIcon',
|
|
16
24
|
'PlayMarketIcon',
|
|
25
|
+
'PlusIcon',
|
|
17
26
|
'ProfileIcon',
|
|
18
27
|
'SignDocsIcon',
|
|
19
28
|
'TelegramIcon',
|
|
20
29
|
'VKIcon',
|
|
21
|
-
'GlassIcon',
|
|
22
|
-
'DocIcon',
|
|
23
|
-
'PlusIcon',
|
|
24
|
-
'MinusIcon',
|
|
25
30
|
}
|
|
26
31
|
|
|
32
|
+
/**
|
|
33
|
+
* @title Иконка
|
|
34
|
+
* @enumNames [
|
|
35
|
+
* "Деньги",
|
|
36
|
+
* "Лого «Apple»",
|
|
37
|
+
* "Календарь",
|
|
38
|
+
* "Часы",
|
|
39
|
+
* "Кресло",
|
|
40
|
+
* "Скидка",
|
|
41
|
+
* "Документ",
|
|
42
|
+
* "Документ с текстом"
|
|
43
|
+
* "Доллар",
|
|
44
|
+
* "Кошелек",
|
|
45
|
+
* "Евро",
|
|
46
|
+
* "Зеркало",
|
|
47
|
+
* "Сетка",
|
|
48
|
+
* "Лупа",
|
|
49
|
+
* "Минус",
|
|
50
|
+
* "Новый документ",
|
|
51
|
+
* "Лого «Одноклассники»",
|
|
52
|
+
* "Бизнес",
|
|
53
|
+
* "Проценты",
|
|
54
|
+
* "Лого «PlayMarket»",
|
|
55
|
+
* "Плюс",
|
|
56
|
+
* "Профиль",
|
|
57
|
+
* "Подписанные документы",
|
|
58
|
+
* "Лого «Telegram»",
|
|
59
|
+
* "Лого «VK»"
|
|
60
|
+
* ]
|
|
61
|
+
*/
|
|
27
62
|
export type IconName = keyof typeof IconMap;
|
|
28
63
|
|
|
29
64
|
export interface IconProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type {
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
3
3
|
|
|
4
|
-
export interface TopItemContent extends
|
|
4
|
+
export interface TopItemContent extends LinkProps {
|
|
5
5
|
active?: boolean;
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
-
import type { Picture } from '../../model/Picture';
|
|
3
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
-
import type { TitleSize } from '../../ui-kit/Title/TitleProps';
|
|
5
|
-
export interface BaseTileContent {
|
|
6
|
-
title?: string;
|
|
7
|
-
titleSize?: TitleSize;
|
|
8
|
-
description?: string;
|
|
9
|
-
image?: Picture;
|
|
10
|
-
items?: string[];
|
|
11
|
-
buttons?: ButtonWithIconProps[];
|
|
12
|
-
version?: BlockVersion;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTileContent.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTileContent.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkContent.js","sourceRoot":"","sources":["../../src/model/LinkContent.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SitemapContent.js","sourceRoot":"","sources":["../../src/model/SitemapContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
-
import type { Picture } from '../../model/Picture';
|
|
3
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
-
import type { TitleSize } from '../../ui-kit/Title/TitleProps';
|
|
5
|
-
export interface BaseTileContent {
|
|
6
|
-
title?: string;
|
|
7
|
-
titleSize?: TitleSize;
|
|
8
|
-
description?: string;
|
|
9
|
-
image?: Picture;
|
|
10
|
-
items?: string[];
|
|
11
|
-
buttons?: ButtonWithIconProps[];
|
|
12
|
-
version?: BlockVersion;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTileContent.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTileContent.ts"],"names":[],"mappings":""}
|
package/lib/model/LinkContent.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkContent.js","sourceRoot":"","sources":["../../src/model/LinkContent.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SitemapContent.js","sourceRoot":"","sources":["../../src/model/SitemapContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
-
import type { Picture } from '../../model/Picture';
|
|
3
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
-
import type { TitleSize } from '../../ui-kit/Title/TitleProps';
|
|
5
|
-
|
|
6
|
-
export interface BaseTileContent {
|
|
7
|
-
title?: string;
|
|
8
|
-
titleSize?: TitleSize;
|
|
9
|
-
description?: string;
|
|
10
|
-
image?: Picture;
|
|
11
|
-
items?: string[];
|
|
12
|
-
buttons?: ButtonWithIconProps[];
|
|
13
|
-
version?: BlockVersion;
|
|
14
|
-
}
|
package/src/icons/MinusIcon.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 12h5M4 12h7" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
package/src/icons/PlusIcon.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 18V6M15 12h5M4 12h7M12 20V4" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|