@redneckz/wildless-cms-uni-blocks 0.2.85 → 0.2.86
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 +194 -195
- 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/AccordionContent.d.ts +29 -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 +1 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BaseTile/BaseTileProps.d.ts +31 -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 +4 -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/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/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 +17 -2
- 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/{components/BaseTile/BaseTileContent.js → model/SitemapProps.js} +1 -1
- 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 +49 -18
- package/dist/ui-kit/Icon/IconProps.js +21 -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.js +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +29 -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 +1 -1
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BaseTile/BaseTileProps.d.ts +31 -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 +4 -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/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/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 +17 -2
- 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 +49 -18
- package/lib/ui-kit/Icon/IconProps.js +21 -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 +1 -16
- package/src/components/Accordion/Accordion.tsx +1 -1
- package/src/components/Accordion/AccordionContent.ts +31 -11
- package/src/components/Accordion/AccordionItem.tsx +10 -10
- package/src/components/BaseTile/BaseTile.tsx +4 -5
- package/src/components/BaseTile/BaseTileProps.ts +33 -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 +4 -1
- 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.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/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/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 +17 -2
- 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/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 +35 -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/model/LinkContent.ts +0 -5
- package/src/model/SitemapContent.ts +0 -9
|
@@ -1,28 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icons sorted by name
|
|
3
|
+
*/
|
|
1
4
|
export declare enum IconMap {
|
|
2
5
|
'ActualBalanceIcon' = 0,
|
|
3
6
|
'AppleIcon' = 1,
|
|
4
7
|
'CalendarIcon' = 2,
|
|
5
8
|
'ClockIcon' = 3,
|
|
6
9
|
'ComfortableCompIcon' = 4,
|
|
7
|
-
'
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
'
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
10
|
+
'DocIcon' = 5,
|
|
11
|
+
'DollarIcon' = 6,
|
|
12
|
+
'EmptyWalletIcon' = 7,
|
|
13
|
+
'EuroIcon' = 8,
|
|
14
|
+
'GlassIcon' = 9,
|
|
15
|
+
'GridIcon' = 10,
|
|
16
|
+
'LoupeIcon' = 11,
|
|
17
|
+
'MinusIcon' = 12,
|
|
18
|
+
'NewDocIcon' = 13,
|
|
19
|
+
'OkIcon' = 14,
|
|
20
|
+
'PassSendIcon' = 15,
|
|
21
|
+
'PercentageSquareIcon' = 16,
|
|
22
|
+
'PlayMarketIcon' = 17,
|
|
23
|
+
'PlusIcon' = 18,
|
|
24
|
+
'ProfileIcon' = 19,
|
|
25
|
+
'SignDocsIcon' = 20,
|
|
26
|
+
'TelegramIcon' = 21,
|
|
27
|
+
'VKIcon' = 22
|
|
25
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @title Иконка
|
|
31
|
+
* @enumNames [
|
|
32
|
+
* "Деньги",
|
|
33
|
+
* "Лого «Apple»",
|
|
34
|
+
* "Календарь",
|
|
35
|
+
* "Часы",
|
|
36
|
+
* "Кресло",
|
|
37
|
+
* "Документ",
|
|
38
|
+
* "Доллар",
|
|
39
|
+
* "Кошелек",
|
|
40
|
+
* "Евро",
|
|
41
|
+
* "Зеркало",
|
|
42
|
+
* "Сетка",
|
|
43
|
+
* "Лупа",
|
|
44
|
+
* "Минус",
|
|
45
|
+
* "Новый документ",
|
|
46
|
+
* "Лого «Одноклассники»",
|
|
47
|
+
* "Бизнес",
|
|
48
|
+
* "Проценты",
|
|
49
|
+
* "Лого «PlayMarket»",
|
|
50
|
+
* "Плюс",
|
|
51
|
+
* "Профиль",
|
|
52
|
+
* "Подписанные документы",
|
|
53
|
+
* "Лого «Telegram»",
|
|
54
|
+
* "Лого «VK»"
|
|
55
|
+
* ]
|
|
56
|
+
*/
|
|
26
57
|
export declare type IconName = keyof typeof IconMap;
|
|
27
58
|
export interface IconProps {
|
|
28
59
|
className?: string;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icons sorted by name
|
|
3
|
+
*/
|
|
1
4
|
export var IconMap;
|
|
2
5
|
(function (IconMap) {
|
|
3
6
|
IconMap[IconMap["ActualBalanceIcon"] = 0] = "ActualBalanceIcon";
|
|
@@ -5,23 +8,23 @@ export var IconMap;
|
|
|
5
8
|
IconMap[IconMap["CalendarIcon"] = 2] = "CalendarIcon";
|
|
6
9
|
IconMap[IconMap["ClockIcon"] = 3] = "ClockIcon";
|
|
7
10
|
IconMap[IconMap["ComfortableCompIcon"] = 4] = "ComfortableCompIcon";
|
|
8
|
-
IconMap[IconMap["
|
|
9
|
-
IconMap[IconMap["
|
|
10
|
-
IconMap[IconMap["
|
|
11
|
-
IconMap[IconMap["
|
|
12
|
-
IconMap[IconMap["
|
|
13
|
-
IconMap[IconMap["
|
|
14
|
-
IconMap[IconMap["
|
|
15
|
-
IconMap[IconMap["
|
|
16
|
-
IconMap[IconMap["
|
|
17
|
-
IconMap[IconMap["
|
|
18
|
-
IconMap[IconMap["
|
|
19
|
-
IconMap[IconMap["
|
|
20
|
-
IconMap[IconMap["
|
|
21
|
-
IconMap[IconMap["
|
|
22
|
-
IconMap[IconMap["
|
|
23
|
-
IconMap[IconMap["
|
|
24
|
-
IconMap[IconMap["
|
|
25
|
-
IconMap[IconMap["
|
|
11
|
+
IconMap[IconMap["DocIcon"] = 5] = "DocIcon";
|
|
12
|
+
IconMap[IconMap["DollarIcon"] = 6] = "DollarIcon";
|
|
13
|
+
IconMap[IconMap["EmptyWalletIcon"] = 7] = "EmptyWalletIcon";
|
|
14
|
+
IconMap[IconMap["EuroIcon"] = 8] = "EuroIcon";
|
|
15
|
+
IconMap[IconMap["GlassIcon"] = 9] = "GlassIcon";
|
|
16
|
+
IconMap[IconMap["GridIcon"] = 10] = "GridIcon";
|
|
17
|
+
IconMap[IconMap["LoupeIcon"] = 11] = "LoupeIcon";
|
|
18
|
+
IconMap[IconMap["MinusIcon"] = 12] = "MinusIcon";
|
|
19
|
+
IconMap[IconMap["NewDocIcon"] = 13] = "NewDocIcon";
|
|
20
|
+
IconMap[IconMap["OkIcon"] = 14] = "OkIcon";
|
|
21
|
+
IconMap[IconMap["PassSendIcon"] = 15] = "PassSendIcon";
|
|
22
|
+
IconMap[IconMap["PercentageSquareIcon"] = 16] = "PercentageSquareIcon";
|
|
23
|
+
IconMap[IconMap["PlayMarketIcon"] = 17] = "PlayMarketIcon";
|
|
24
|
+
IconMap[IconMap["PlusIcon"] = 18] = "PlusIcon";
|
|
25
|
+
IconMap[IconMap["ProfileIcon"] = 19] = "ProfileIcon";
|
|
26
|
+
IconMap[IconMap["SignDocsIcon"] = 20] = "SignDocsIcon";
|
|
27
|
+
IconMap[IconMap["TelegramIcon"] = 21] = "TelegramIcon";
|
|
28
|
+
IconMap[IconMap["VKIcon"] = 22] = "VKIcon";
|
|
26
29
|
})(IconMap || (IconMap = {}));
|
|
27
30
|
//# sourceMappingURL=IconProps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/IconProps.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,OAwBX;AAxBD,WAAY,OAAO;IACjB,+DAAmB,CAAA;IACnB,+CAAW,CAAA;IACX,qDAAc,CAAA;IACd,+CAAW,CAAA;IACX,mEAAqB,CAAA;IACrB,iDAAY,CAAA;IACZ,2DAAiB,CAAA;IACjB,6CAAU,CAAA;IACV,
|
|
1
|
+
{"version":3,"file":"IconProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/IconProps.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,OAwBX;AAxBD,WAAY,OAAO;IACjB,+DAAmB,CAAA;IACnB,+CAAW,CAAA;IACX,qDAAc,CAAA;IACd,+CAAW,CAAA;IACX,mEAAqB,CAAA;IACrB,2CAAS,CAAA;IACT,iDAAY,CAAA;IACZ,2DAAiB,CAAA;IACjB,6CAAU,CAAA;IACV,+CAAW,CAAA;IACX,8CAAU,CAAA;IACV,gDAAW,CAAA;IACX,gDAAW,CAAA;IACX,kDAAY,CAAA;IACZ,0CAAQ,CAAA;IACR,sDAAc,CAAA;IACd,sEAAsB,CAAA;IACtB,0DAAgB,CAAA;IAChB,8CAAU,CAAA;IACV,oDAAa,CAAA;IACb,sDAAc,CAAA;IACd,sDAAc,CAAA;IACd,0CAAQ,CAAA;AACV,CAAC,EAxBW,OAAO,KAAP,OAAO,QAwBlB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface TopItemContent extends
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
export interface TopItemContent extends LinkProps {
|
|
3
3
|
active?: boolean;
|
|
4
4
|
}
|
|
5
5
|
export interface TopItemProps extends TopItemContent {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.86",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -19,26 +19,6 @@
|
|
|
19
19
|
"require": "./dist/*.js",
|
|
20
20
|
"types": "./lib/*.d.ts"
|
|
21
21
|
},
|
|
22
|
-
"./lib/Header": {
|
|
23
|
-
"import": "./lib/Header/index.js",
|
|
24
|
-
"require": "./dist/Header/index.js",
|
|
25
|
-
"types": "./lib/Header/index.d.ts"
|
|
26
|
-
},
|
|
27
|
-
"./lib/Header/*.js": {
|
|
28
|
-
"import": "./lib/Header/*.js",
|
|
29
|
-
"require": "./dist/Header/*.js",
|
|
30
|
-
"types": "./lib/Header/*.d.ts"
|
|
31
|
-
},
|
|
32
|
-
"./lib/Footer": {
|
|
33
|
-
"import": "./lib/Footer/index.js",
|
|
34
|
-
"require": "./dist/Footer/index.js",
|
|
35
|
-
"types": "./lib/Footer/index.d.ts"
|
|
36
|
-
},
|
|
37
|
-
"./lib/Footer/*.js": {
|
|
38
|
-
"import": "./lib/Footer/*.js",
|
|
39
|
-
"require": "./dist/Footer/*.js",
|
|
40
|
-
"types": "./lib/Footer/*.d.ts"
|
|
41
|
-
},
|
|
42
22
|
"./lib/common.css": "./lib/common.css",
|
|
43
23
|
"./fonts/ubuntu/*": "./fonts/ubuntu/*",
|
|
44
24
|
"./lib/content-page-repository": {
|
|
@@ -85,7 +65,7 @@
|
|
|
85
65
|
"postbuild:lib": "replace-in-file --configFile=replace-config.lib.cjs --verbose",
|
|
86
66
|
"build:commonjs": "rimraf ./dist && tsc --module commonjs --noImplicitUseStrict --outDir dist",
|
|
87
67
|
"bundle": "rimraf ./bundle && rollup -c && npm run build:schema",
|
|
88
|
-
"build:schema": "ts-json-schema-generator --path ./src/**/*Content.ts --no-type-check -o ./bundle/blocks.schema.json",
|
|
68
|
+
"build:schema": "ts-json-schema-generator --path './src/**/*Content.ts' --additional-properties --validation-keywords enumNames --validation-keywords required --minify --no-type-check -o ./bundle/blocks.schema.json",
|
|
89
69
|
"build:style": "postcss ./src/**/*.css --env production --dir ./lib",
|
|
90
70
|
"build:icons": "svgo -f ./src/icons -o ./cosmos-static/icons",
|
|
91
71
|
"size": "size-limit",
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Accordion title",
|
|
3
|
+
"accordionItems": [
|
|
4
|
+
{
|
|
5
|
+
"label": "Accordion label 1",
|
|
6
|
+
"blocks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "TextBlock",
|
|
9
|
+
"data": {
|
|
10
|
+
"title": "Title",
|
|
11
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
12
|
+
"blockVersion": "secondary-light",
|
|
13
|
+
"iconVersion": "small"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "TextBlock",
|
|
18
|
+
"data": {
|
|
19
|
+
"title": "Title",
|
|
20
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
21
|
+
"blockVersion": "secondary-light",
|
|
22
|
+
"iconVersion": "small"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"label": "Accordion label 2",
|
|
29
|
+
"blocks": [
|
|
30
|
+
{
|
|
31
|
+
"type": "TextBlock",
|
|
32
|
+
"data": {
|
|
33
|
+
"title": "Title",
|
|
34
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
35
|
+
"blockVersion": "secondary-light",
|
|
36
|
+
"iconVersion": "small"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "TextBlock",
|
|
41
|
+
"data": {
|
|
42
|
+
"title": "Title",
|
|
43
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
44
|
+
"blockVersion": "secondary-light",
|
|
45
|
+
"iconVersion": "small"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"label": "Accordion label 3",
|
|
52
|
+
"blocks": [
|
|
53
|
+
{
|
|
54
|
+
"type": "TextBlock",
|
|
55
|
+
"data": {
|
|
56
|
+
"title": "Title",
|
|
57
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
58
|
+
"blockVersion": "secondary-light",
|
|
59
|
+
"iconVersion": "small"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "TextBlock",
|
|
64
|
+
"data": {
|
|
65
|
+
"title": "Title",
|
|
66
|
+
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?",
|
|
67
|
+
"blockVersion": "secondary-light",
|
|
68
|
+
"iconVersion": "small"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { context } from '../../setup-fixture';
|
|
2
|
-
import type { AccordionProps } from './Accordion';
|
|
3
2
|
import type { TextBlockContent } from '../TextBlock/TextBlockContent';
|
|
3
|
+
import type { AccordionProps } from './Accordion';
|
|
4
4
|
import { Accordion } from './Accordion';
|
|
5
5
|
|
|
6
6
|
const TEXT_BLOCK: TextBlockContent = {
|
|
7
|
-
title: 'Title',
|
|
8
7
|
description:
|
|
9
8
|
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque minima odio soluta cupiditate pariatur, labore molestias quas necessitatibus nesciunt in praesentium accusamus provident sequi maiores autem. Voluptas quam neque iste?',
|
|
10
|
-
blockVersion: 'secondary-light',
|
|
11
|
-
iconVersion: 'small',
|
|
12
9
|
};
|
|
13
10
|
|
|
14
11
|
const propsTextBlock: AccordionProps = {
|
|
@@ -22,10 +19,6 @@ const propsTextBlock: AccordionProps = {
|
|
|
22
19
|
type: 'TextBlock',
|
|
23
20
|
data: TEXT_BLOCK,
|
|
24
21
|
},
|
|
25
|
-
{
|
|
26
|
-
type: 'TextBlock',
|
|
27
|
-
data: TEXT_BLOCK,
|
|
28
|
-
},
|
|
29
22
|
],
|
|
30
23
|
},
|
|
31
24
|
{
|
|
@@ -35,10 +28,6 @@ const propsTextBlock: AccordionProps = {
|
|
|
35
28
|
type: 'TextBlock',
|
|
36
29
|
data: TEXT_BLOCK,
|
|
37
30
|
},
|
|
38
|
-
{
|
|
39
|
-
type: 'TextBlock',
|
|
40
|
-
data: TEXT_BLOCK,
|
|
41
|
-
},
|
|
42
31
|
],
|
|
43
32
|
},
|
|
44
33
|
{
|
|
@@ -48,10 +37,6 @@ const propsTextBlock: AccordionProps = {
|
|
|
48
37
|
type: 'TextBlock',
|
|
49
38
|
data: TEXT_BLOCK,
|
|
50
39
|
},
|
|
51
|
-
{
|
|
52
|
-
type: 'TextBlock',
|
|
53
|
-
data: TEXT_BLOCK,
|
|
54
|
-
},
|
|
55
40
|
],
|
|
56
41
|
},
|
|
57
42
|
],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import { Title } from '../../ui-kit/Title/Title';
|
|
3
4
|
import type { AccordionContent } from './AccordionContent';
|
|
4
5
|
import { AccordionItem } from './AccordionItem';
|
|
5
|
-
import { Title } from '../../ui-kit/Title/Title';
|
|
6
6
|
|
|
7
7
|
export interface AccordionProps extends AccordionContent, UniBlockProps {}
|
|
8
8
|
|
|
@@ -1,18 +1,38 @@
|
|
|
1
1
|
import type { TextBlockContent } from '../TextBlock/TextBlockContent';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/** @title Содержимое блока */
|
|
4
|
+
export type AccordionDataContent = TextBlockContent;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @title Тип блока
|
|
8
|
+
* @enumNames ["Текстовый блок"]
|
|
9
|
+
*/
|
|
10
|
+
export type AccordionDataBlocks = 'TextBlock';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Блок
|
|
14
|
+
*/
|
|
15
|
+
export interface AccordionBlock {
|
|
16
|
+
type?: AccordionDataBlocks;
|
|
17
|
+
data?: AccordionDataContent;
|
|
6
18
|
}
|
|
7
19
|
|
|
8
|
-
|
|
20
|
+
/**
|
|
21
|
+
* @title Элемент списка
|
|
22
|
+
*/
|
|
23
|
+
export interface AccordionItemCommonProps {
|
|
24
|
+
/** @title Название */
|
|
9
25
|
label?: string;
|
|
10
|
-
|
|
26
|
+
/** @title Блоки */
|
|
27
|
+
blocks?: AccordionBlock[];
|
|
11
28
|
}
|
|
12
29
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
30
|
+
/**
|
|
31
|
+
* @title Аккордеон
|
|
32
|
+
*/
|
|
33
|
+
export interface AccordionContent {
|
|
34
|
+
/** @title Заголовок */
|
|
35
|
+
title?: string;
|
|
36
|
+
/** @title Список */
|
|
37
|
+
accordionItems?: AccordionItemCommonProps[];
|
|
38
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
|
-
import type { AccordionItemContent, AccordionBlockContent } from './AccordionContent';
|
|
4
3
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
4
|
+
import type { JSXBlock } from '../ContentPage/ContentPage';
|
|
5
|
+
import { ContentPageContext } from '../ContentPage/ContentPageContext';
|
|
5
6
|
import AccordionBlocks from './AccordionBlocks';
|
|
7
|
+
import type { AccordionBlock, AccordionItemCommonProps } from './AccordionContent';
|
|
6
8
|
|
|
7
|
-
export interface AccordionItemProps extends
|
|
9
|
+
export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {}
|
|
8
10
|
|
|
9
11
|
export const AccordionItem = JSX<AccordionItemProps>(({ label, blocks, context }) => {
|
|
10
12
|
const [isActive, setIsActive] = context.useState(false);
|
|
@@ -42,24 +44,22 @@ export const AccordionItem = JSX<AccordionItemProps>(({ label, blocks, context }
|
|
|
42
44
|
isActive ? 'pb-5' : ''
|
|
43
45
|
} text-sm transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 `}
|
|
44
46
|
>
|
|
45
|
-
{blocks?.length ? blocks.map(
|
|
47
|
+
{blocks?.length ? blocks.map((block, i) => renderBlock(block, i, context)) : null}
|
|
46
48
|
</div>
|
|
47
49
|
) : null}
|
|
48
50
|
</li>
|
|
49
51
|
);
|
|
50
52
|
});
|
|
51
53
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const renderComponent = (block: AccordionBlockContent, i: number) => {
|
|
55
|
-
if (block.type && block.data && !AccordionBlocks.hasOwnProperty(block.type)) {
|
|
54
|
+
const renderBlock = (block: AccordionBlock, i: number, context: ContentPageContext) => {
|
|
55
|
+
if (!block.type || !block.data || !AccordionBlocks.hasOwnProperty(block.type)) {
|
|
56
56
|
return null;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
const AccordionBlock =
|
|
59
|
+
const AccordionBlock: JSXBlock = AccordionBlocks[block.type];
|
|
60
60
|
return (
|
|
61
|
-
<div className="mb-5 last:mb-0" key={`
|
|
62
|
-
<AccordionBlock {...block.data} />
|
|
61
|
+
<div className="mb-5 last:mb-0" key={`block_${i}`}>
|
|
62
|
+
<AccordionBlock context={context} {...block.data} />
|
|
63
63
|
</div>
|
|
64
64
|
);
|
|
65
65
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import
|
|
2
|
+
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
4
|
import type { UniBlockProps } from '../../types';
|
|
5
5
|
import { BlockItem } from '../../ui-kit/BlockItem/BlockItem';
|
|
6
6
|
import { Button } from '../../ui-kit/Button/Button';
|
|
7
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
8
7
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
9
8
|
import { Img } from '../../ui-kit/Img';
|
|
10
9
|
import { Title } from '../../ui-kit/Title/Title';
|
|
11
|
-
import { useLink } from '../../hooks/useLink';
|
|
12
10
|
import { getColSpan } from '../../utils/getColSpan';
|
|
11
|
+
import type { BaseTileCommonProps, BaseTileIconButton } from './BaseTileProps';
|
|
13
12
|
|
|
14
|
-
export interface BaseTileProps extends
|
|
13
|
+
export interface BaseTileProps extends BaseTileCommonProps, UniBlockProps {}
|
|
15
14
|
|
|
16
15
|
const TITLE_CLASSES = 'font-medium m-0 mb-4 whitespace-pre-wrap max-w-[600px]';
|
|
17
16
|
|
|
@@ -82,7 +81,7 @@ function renderItems(items: string[] = [], version?: BlockVersion) {
|
|
|
82
81
|
);
|
|
83
82
|
}
|
|
84
83
|
|
|
85
|
-
function renderButton({ icon, ...button }:
|
|
84
|
+
function renderButton({ icon, ...button }: BaseTileIconButton, i: number) {
|
|
86
85
|
if (!button?.text) return;
|
|
87
86
|
|
|
88
87
|
if (icon)
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { IconName } from '../../ui-kit/Icon/IconProps';
|
|
5
|
+
import type { TitleSize } from '../../ui-kit/Title/TitleProps';
|
|
6
|
+
|
|
7
|
+
export interface BaseTileIconButton extends ButtonWithIconProps {
|
|
8
|
+
icon?: IconName;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @title Плитка
|
|
13
|
+
*/
|
|
14
|
+
export interface BaseTileCommonProps {
|
|
15
|
+
/** @title Заголовок */
|
|
16
|
+
title?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @title Размер заголовка
|
|
19
|
+
* @default M
|
|
20
|
+
*/
|
|
21
|
+
titleSize?: TitleSize;
|
|
22
|
+
/** @title Описание */
|
|
23
|
+
description?: string;
|
|
24
|
+
image?: Picture;
|
|
25
|
+
/** @title Список */
|
|
26
|
+
items?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* @title Кнопки
|
|
29
|
+
* @maxItems 4
|
|
30
|
+
*/
|
|
31
|
+
buttons?: BaseTileIconButton[];
|
|
32
|
+
version?: BlockVersion;
|
|
33
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { Benefit, BenefitsBlockContent } from './BenefitsBlockContent';
|
|
3
2
|
import type { UniBlockProps } from '../../types';
|
|
4
3
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
4
|
+
import { Title } from '../../ui-kit/Title/Title';
|
|
5
|
+
import type { Benefit, BenefitsBlockContent } from './BenefitsBlockContent';
|
|
5
6
|
|
|
6
7
|
export interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {}
|
|
7
8
|
|
|
@@ -12,7 +13,7 @@ export const BenefitsBlock = JSX<BenefitsBlockProps>(({ className, title, benefi
|
|
|
12
13
|
className || ''
|
|
13
14
|
}`}
|
|
14
15
|
>
|
|
15
|
-
<
|
|
16
|
+
{title ? <Title className="font-medium m-0 max-w-[47rem] text-center">{title}</Title> : null}
|
|
16
17
|
{benefits?.length ? (
|
|
17
18
|
<div className="grid grid-cols-2 gap-5 mt-9">{benefits.map(renderStep)}</div>
|
|
18
19
|
) : null}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @title Преимущество
|
|
5
|
+
*/
|
|
3
6
|
export interface Benefit {
|
|
4
|
-
|
|
7
|
+
/** @title Название */
|
|
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 BenefitsBlockContent {
|
|
18
|
+
/** @title Заголовок */
|
|
10
19
|
title?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @title Список преимущества
|
|
22
|
+
* @maxItems 6
|
|
23
|
+
*/
|
|
11
24
|
benefits?: Benefit[];
|
|
12
25
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BenefitsBlockContent } from './BenefitsBlock/BenefitsBlockContent';
|
|
2
|
+
import type { ComparisonTableContent } from './ComparisonTable/ComparisonTableContent';
|
|
2
3
|
import type { ExchangeRateTileContent } from './ExchangeRateTile/ExchangeRateTileContent';
|
|
3
4
|
import type { FooterContent } from './Footer/FooterContent';
|
|
4
5
|
import type { GalleryContent } from './Gallery/GalleryContent';
|
|
@@ -12,8 +13,10 @@ import type { PromoTileContent } from './PromoTile/PromoTileContent';
|
|
|
12
13
|
import type { StepsBlockContent } from './StepsBlock/StepsBlockContent';
|
|
13
14
|
import type { TextBlockContent } from './TextBlock/TextBlockContent';
|
|
14
15
|
import type { TileContent } from './Tile/TileContent';
|
|
15
|
-
import type { ComparisonTableContent } from './ComparisonTable/ComparisonTableContent';
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
17
20
|
export type BlockContent =
|
|
18
21
|
| HeaderContent
|
|
19
22
|
| FooterContent
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Заголовок",
|
|
3
|
+
"rowHeaders": [
|
|
4
|
+
{
|
|
5
|
+
"title": "Параметр 1"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"title": "Параметр 2"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"title": "Параметр 3"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"columns": [
|
|
15
|
+
{
|
|
16
|
+
"header": {
|
|
17
|
+
"title": "Продукт 1",
|
|
18
|
+
"image": {
|
|
19
|
+
"format": "webp",
|
|
20
|
+
"size": {
|
|
21
|
+
"width": 100,
|
|
22
|
+
"height": 63
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"data": [
|
|
27
|
+
[
|
|
28
|
+
{
|
|
29
|
+
"label": "Ячейка 1"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
{
|
|
34
|
+
"label": "Ячейка 2-1",
|
|
35
|
+
"description": "Описание для ячейки 2-1"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"label": "Ячейка 2-2",
|
|
39
|
+
"description": "Описание для ячейки 2-2"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
{
|
|
44
|
+
"label": "Ячейка 3"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"header": {
|
|
51
|
+
"title": "Продукт 2",
|
|
52
|
+
"image": {
|
|
53
|
+
"format": "webp",
|
|
54
|
+
"size": {
|
|
55
|
+
"width": 100,
|
|
56
|
+
"height": 63
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"data": [
|
|
61
|
+
[
|
|
62
|
+
{
|
|
63
|
+
"label": "Ячейка 1"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
[
|
|
67
|
+
{
|
|
68
|
+
"label": "Ячейка 2-1",
|
|
69
|
+
"description": "Описание для ячейки 2-1"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"label": "Ячейка 2-2",
|
|
73
|
+
"description": "Описание для ячейки 2-2"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
[
|
|
77
|
+
{
|
|
78
|
+
"label": "Ячейка 3"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|