@redneckz/wildless-cms-uni-blocks 0.14.63 → 0.14.64
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/bin/migration-scripts/0.14.62.js +66 -0
- package/bin/utils.js +14 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +38 -43
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/bundle/ui-kit/List/List.d.ts +6 -3
- package/bundle/ui-kit/List/ListContent.d.ts +11 -2
- package/bundle/ui-kit/List/ListItem.d.ts +1 -2
- package/bundle/ui-kit/RichText/RichTextProps.d.ts +3 -3
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -13
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +3 -3
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/dist/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +10 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/List/List.d.ts +6 -3
- package/dist/ui-kit/List/List.js +21 -13
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListContent.d.ts +11 -2
- package/dist/ui-kit/List/ListItem.d.ts +1 -2
- package/dist/ui-kit/List/ListItem.js +1 -7
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/RichText/RichTextProps.d.ts +3 -3
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -14
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +3 -3
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +3 -2
- package/lib/components/RichTextBlock/RichTextBlock.fixture.mobile.d.ts +4 -2
- package/lib/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +10 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/List/List.d.ts +6 -3
- package/lib/ui-kit/List/List.js +20 -12
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListContent.d.ts +11 -2
- package/lib/ui-kit/List/ListItem.d.ts +1 -2
- package/lib/ui-kit/List/ListItem.js +1 -7
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/RichText/RichTextProps.d.ts +3 -3
- package/mobile/bundle/bundle.umd.js +38 -43
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/mobile/bundle/ui-kit/List/List.d.ts +6 -3
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +11 -2
- package/mobile/bundle/ui-kit/List/ListItem.d.ts +1 -2
- package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +3 -3
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -13
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +3 -3
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +10 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/List/List.d.ts +6 -3
- package/mobile/dist/ui-kit/List/List.js +21 -13
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListContent.d.ts +11 -2
- package/mobile/dist/ui-kit/List/ListItem.d.ts +1 -2
- package/mobile/dist/ui-kit/List/ListItem.js +1 -7
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +3 -3
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -14
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +4 -32
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +3 -3
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +10 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/List/List.d.ts +6 -3
- package/mobile/lib/ui-kit/List/List.js +20 -12
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListContent.d.ts +11 -2
- package/mobile/lib/ui-kit/List/ListItem.d.ts +1 -2
- package/mobile/lib/ui-kit/List/ListItem.js +1 -7
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +3 -3
- package/mobile/src/common.css +15 -11
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -8
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +21 -62
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +6 -36
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +10 -12
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +4 -2
- package/mobile/src/components/RichTextBlock/RichTextBlock.example.json +2 -1
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -1
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +12 -2
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
- package/mobile/src/ui-kit/List/List.tsx +32 -20
- package/mobile/src/ui-kit/List/ListContent.ts +14 -2
- package/mobile/src/ui-kit/List/ListItem.tsx +3 -11
- package/mobile/src/ui-kit/RichText/RichTextProps.ts +3 -3
- package/package.json +1 -1
- package/src/common.css +15 -11
- package/src/components/BenefitsBlock/BenefitsBlock.example.json +3 -8
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.mobile.tsx +1 -4
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +33 -66
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +21 -62
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +6 -36
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +0 -3
- package/src/components/MobileAppTile/MobileAppTile.tsx +10 -12
- package/src/components/MobileAppTile/MobileAppTileContent.ts +4 -2
- package/src/components/RichTextBlock/RichTextBlock.example.json +2 -1
- package/src/components/RichTextBlock/RichTextBlock.fixture.mobile.tsx +44 -18
- package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +41 -30
- package/src/components/TariffsTable/EmbeddableCellData.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableContent.ts +1 -1
- package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +18 -2
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +2 -2
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +12 -2
- package/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
- package/src/ui-kit/List/List.fixture.tsx +1 -1
- package/src/ui-kit/List/List.tsx +32 -20
- package/src/ui-kit/List/ListContent.ts +14 -2
- package/src/ui-kit/List/ListItem.tsx +3 -11
- package/src/ui-kit/RichText/RichTextProps.ts +3 -3
- package/bundle/components/MobileAppTile/renderList.d.ts +0 -3
- package/bundle/ui-kit/List/ListProps.d.ts +0 -11
- package/dist/components/MobileAppTile/renderList.d.ts +0 -3
- package/dist/components/MobileAppTile/renderList.js +0 -10
- package/dist/components/MobileAppTile/renderList.js.map +0 -1
- package/dist/ui-kit/List/ListProps.d.ts +0 -11
- package/dist/ui-kit/List/ListProps.js +0 -2
- package/dist/ui-kit/List/ListProps.js.map +0 -1
- package/lib/components/MobileAppTile/renderList.d.ts +0 -2
- package/lib/components/MobileAppTile/renderList.js +0 -7
- package/lib/components/MobileAppTile/renderList.js.map +0 -1
- package/lib/ui-kit/List/ListProps.d.ts +0 -11
- package/lib/ui-kit/List/ListProps.js +0 -2
- package/lib/ui-kit/List/ListProps.js.map +0 -1
- package/mobile/bundle/components/MobileAppTile/renderList.d.ts +0 -3
- package/mobile/bundle/ui-kit/List/ListProps.d.ts +0 -11
- package/mobile/dist/components/MobileAppTile/renderList.d.ts +0 -3
- package/mobile/dist/components/MobileAppTile/renderList.js +0 -10
- package/mobile/dist/components/MobileAppTile/renderList.js.map +0 -1
- package/mobile/dist/ui-kit/List/ListProps.d.ts +0 -11
- package/mobile/dist/ui-kit/List/ListProps.js +0 -2
- package/mobile/dist/ui-kit/List/ListProps.js.map +0 -1
- package/mobile/lib/components/MobileAppTile/renderList.d.ts +0 -3
- package/mobile/lib/components/MobileAppTile/renderList.js +0 -7
- package/mobile/lib/components/MobileAppTile/renderList.js.map +0 -1
- package/mobile/lib/ui-kit/List/ListProps.d.ts +0 -11
- package/mobile/lib/ui-kit/List/ListProps.js +0 -2
- package/mobile/lib/ui-kit/List/ListProps.js.map +0 -1
- package/mobile/src/components/MobileAppTile/renderList.tsx +0 -17
- package/mobile/src/ui-kit/List/ListProps.ts +0 -13
- package/src/components/MobileAppTile/renderList.tsx +0 -17
- package/src/ui-kit/List/ListProps.ts +0 -13
|
@@ -1,42 +1,14 @@
|
|
|
1
|
-
import { type LabelProps, type TitleProps } from '../../model/HeadlineType';
|
|
1
|
+
import { type DescriptionProps, type LabelProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import { type IconProps } from '../../model/Picture';
|
|
4
4
|
import { type IconBgVersion } from '../../ui-kit/Icon/IconProps';
|
|
5
|
-
import { type
|
|
6
|
-
/**
|
|
7
|
-
* @title Пункты описания
|
|
8
|
-
*/
|
|
9
|
-
export declare type TextBenefitDef = {
|
|
10
|
-
/** @title Описание */
|
|
11
|
-
name?: string;
|
|
12
|
-
/** @default text */
|
|
13
|
-
benefitType?: 'text';
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @title Список
|
|
17
|
-
*/
|
|
18
|
-
export declare type ListBenefitDef = ListContent & {
|
|
19
|
-
/** @title Буллиты */
|
|
20
|
-
bullets?: boolean;
|
|
21
|
-
/** @default list */
|
|
22
|
-
benefitType?: 'list';
|
|
23
|
-
};
|
|
24
|
-
/** @title Не выбрано * */
|
|
25
|
-
export declare type EmptyDescription = {
|
|
26
|
-
/** @default "" */
|
|
27
|
-
benefitType: '';
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @title Вид контента
|
|
31
|
-
* @default { "benefitType": "" }
|
|
32
|
-
*/
|
|
33
|
-
export declare type DescriptionDef = EmptyDescription | TextBenefitDef | ListBenefitDef;
|
|
5
|
+
import { type ListProps } from '../../ui-kit/List/ListContent';
|
|
34
6
|
/**
|
|
35
7
|
* @title Преимущество
|
|
36
8
|
*/
|
|
37
|
-
export declare type BenefitBlockItemProps = LabelProps & IconProps & {
|
|
9
|
+
export declare type BenefitBlockItemProps = LabelProps & IconProps & DescriptionProps & ListProps & {
|
|
38
10
|
/** @title Описание */
|
|
39
|
-
description?:
|
|
11
|
+
description?: string;
|
|
40
12
|
iconBgVersion?: IconBgVersion;
|
|
41
13
|
};
|
|
42
14
|
/**
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { type AdditionalDescriptionProps, type HeadlineCommonProps } from '../../model/HeadlineType';
|
|
1
|
+
import { type AdditionalDescriptionProps, type DescriptionProps, type HeadlineCommonProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import { type Picture } from '../../model/Picture';
|
|
4
4
|
import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
|
|
5
|
-
import { type HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
|
|
6
5
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
7
6
|
import { type ListContent } from '../../ui-kit/List/ListContent';
|
|
8
7
|
/**
|
|
9
8
|
* @title Мобильное приложение
|
|
10
9
|
*/
|
|
11
|
-
export declare type MobileAppTileContent = UniBlockContent & AdditionalDescriptionProps & HeadlineCommonProps &
|
|
10
|
+
export declare type MobileAppTileContent = UniBlockContent & AdditionalDescriptionProps & HeadlineCommonProps & TitleProps & DescriptionProps & ButtonsSectionContent & ListContent & ImageContent & {
|
|
12
11
|
/** @title QR-код */
|
|
13
12
|
qr?: Picture;
|
|
14
13
|
};
|
|
@@ -4,7 +4,7 @@ import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionCo
|
|
|
4
4
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
5
|
import { type InnerTableButtonProps } from '../../ui-kit/InnerTable/InnerTableButton';
|
|
6
6
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
7
|
-
import { type ListProps } from '../../ui-kit/List/
|
|
7
|
+
import { type ListProps } from '../../ui-kit/List/ListContent';
|
|
8
8
|
import { type LabelDescriptionCell } from './TariffsTableContent';
|
|
9
9
|
export declare type EmbeddableCellDataType = LabelDescriptionCell | ButtonContent | ImageContent | ListProps | InnerTableButtonProps;
|
|
10
10
|
interface TableCellDataProps extends InnerTableButtonProps {
|
|
@@ -4,7 +4,7 @@ import { type IconProps } from '../../model/Picture';
|
|
|
4
4
|
import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
|
|
5
5
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
6
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
7
|
-
import { type ListProps } from '../../ui-kit/List/
|
|
7
|
+
import { type ListProps } from '../../ui-kit/List/ListContent';
|
|
8
8
|
/**
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { type ListItemSize } from './ListContent';
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { type ListItemSize, type ListProps } from './ListContent';
|
|
2
|
+
export declare const LIST_VERSION_STYLE: Record<ListItemSize, {
|
|
3
|
+
textSize: string;
|
|
4
|
+
indentStyle: string;
|
|
5
|
+
dotStyle: string;
|
|
6
|
+
}>;
|
|
4
7
|
export declare const List: import("@redneckz/uni-jsx").UNIComponent<ListProps, any, any>;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import { type BulletsProps } from '../../model/Bullets';
|
|
1
2
|
/**
|
|
2
3
|
* @title Размер пунктов списка
|
|
3
|
-
* @enumNames ["
|
|
4
|
+
* @enumNames ["Маленький", "Средний", "Большой"]
|
|
4
5
|
*/
|
|
5
|
-
export declare type ListItemSize = '
|
|
6
|
+
export declare type ListItemSize = 'S' | 'M' | 'L';
|
|
6
7
|
export interface ListContent {
|
|
7
8
|
/** @title Список */
|
|
8
9
|
items?: string[];
|
|
10
|
+
/** @hidden */
|
|
9
11
|
listItemSize?: ListItemSize;
|
|
10
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* @title Содержимое списка
|
|
15
|
+
*/
|
|
16
|
+
export declare type ListProps = ListContent & BulletsProps & {
|
|
17
|
+
/** @hidden */
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { type ListItemSize } from './ListContent';
|
|
2
1
|
/**
|
|
3
2
|
* @title Параметры элемента списка
|
|
4
3
|
*/
|
|
5
4
|
export interface ListItemProps {
|
|
6
5
|
className?: string;
|
|
6
|
+
dotClassName?: string;
|
|
7
7
|
text?: string;
|
|
8
8
|
isDotted?: boolean;
|
|
9
|
-
size?: ListItemSize;
|
|
10
9
|
}
|
|
11
10
|
export declare const ListItem: import("@redneckz/uni-jsx").UNIComponent<ListItemProps, any, any>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare type HTML = string;
|
|
2
2
|
/**
|
|
3
3
|
* @title Стиль форматированного текста
|
|
4
|
-
* @default ""
|
|
5
|
-
* @enumNames ["
|
|
4
|
+
* @default "primary"
|
|
5
|
+
* @enumNames ["Основсной", "Второстепенный"]
|
|
6
6
|
*/
|
|
7
|
-
export declare type RichVersion = '' | '
|
|
7
|
+
export declare type RichVersion = '' | 'secondary';
|
|
8
8
|
export interface RichTextProps {
|
|
9
9
|
/** @title Форматированный текст */
|
|
10
10
|
__html?: HTML;
|
|
@@ -9,19 +9,7 @@ const RoundedIcon_1 = require("../../ui-kit/Icon/RoundedIcon");
|
|
|
9
9
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
10
10
|
const List_1 = require("../../ui-kit/List/List");
|
|
11
11
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
12
|
-
const style_1 = require("../../utils/style");
|
|
13
12
|
const defaultIconSize_1 = require("./defaultIconSize");
|
|
14
13
|
exports.BenefitsBlock = (0, uni_jsx_1.JSX)(({ className = '', title, benefitList, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", as: "h2", className: AlignStyles_1.AlignStyles, title: title }) : null, benefitList?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
|
|
15
|
-
const renderBenefit = (
|
|
16
|
-
const renderDescription = (description) => {
|
|
17
|
-
const benefitType = description?.benefitType || null;
|
|
18
|
-
return description && benefitType ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
|
|
19
|
-
? renderListBenefit(description)
|
|
20
|
-
: renderTextBenefit(description) })) : null;
|
|
21
|
-
};
|
|
22
|
-
const renderTextBenefit = (description) => description?.name ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description.name })) : null;
|
|
23
|
-
const renderListBenefit = (description) => {
|
|
24
|
-
const listStyleType = description?.bullets ? 'list-disc pl-3xl' : '';
|
|
25
|
-
return description?.items && description.items.length > 0 ? ((0, jsx_runtime_1.jsx)("ul", { className: (0, style_1.style)(listStyleType, description.listItemSize ? List_1.TEXT_SIZE_MAP[description.listItemSize] : ''), children: description.items.map((_, i) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: _ }) }, `benefitListItem-${i}`))) })) : null;
|
|
26
|
-
};
|
|
14
|
+
const renderBenefit = ({ label, description, items, icon, iconBgVersion, isDotted = false }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [icon?.icon ? ((0, jsx_runtime_1.jsx)(RoundedIcon_1.RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize_1.defaultIconSize, iconBgVersion: iconBgVersion || '', ...icon })) : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "shrink-0", image: icon }) : null, label ? ((0, jsx_runtime_1.jsxs)("div", { className: "@sm:h-full space-y-xs", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", children: label }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description }), (0, jsx_runtime_1.jsx)(List_1.List, { className: "text-secondary-text", listItemSize: "S", items: items, isDotted: isDotted })] })) : null] }, String(i)));
|
|
27
15
|
//# sourceMappingURL=BenefitsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/BenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yDAAsD;AAEtD,4DAAyD;AACzD,0DAAuD;AACvD,+DAA4D;AAC5D,8CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"BenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/BenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yDAAsD;AAEtD,4DAAyD;AACzD,0DAAuD;AACvD,+DAA4D;AAC5D,8CAA2C;AAC3C,iDAA8C;AAC9C,iDAA8C;AAE9C,uDAAoD;AAIvC,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACnD,wBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,OAAO,KAAK,IAAI,aAChE,KAAK,CAAC,C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EAAE,QAAQ,GAAI,IACvF,CACP,CAAC,CAAC,CAAC,IAAI,KAzBH,MAAM,CAAC,CAAC,CAAC,CA0BV,CACP,CAAC"}
|
|
@@ -1,42 +1,14 @@
|
|
|
1
|
-
import { type LabelProps, type TitleProps } from '../../model/HeadlineType';
|
|
1
|
+
import { type DescriptionProps, type LabelProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import { type IconProps } from '../../model/Picture';
|
|
4
4
|
import { type IconBgVersion } from '../../ui-kit/Icon/IconProps';
|
|
5
|
-
import { type
|
|
6
|
-
/**
|
|
7
|
-
* @title Пункты описания
|
|
8
|
-
*/
|
|
9
|
-
export declare type TextBenefitDef = {
|
|
10
|
-
/** @title Описание */
|
|
11
|
-
name?: string;
|
|
12
|
-
/** @default text */
|
|
13
|
-
benefitType?: 'text';
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @title Список
|
|
17
|
-
*/
|
|
18
|
-
export declare type ListBenefitDef = ListContent & {
|
|
19
|
-
/** @title Буллиты */
|
|
20
|
-
bullets?: boolean;
|
|
21
|
-
/** @default list */
|
|
22
|
-
benefitType?: 'list';
|
|
23
|
-
};
|
|
24
|
-
/** @title Не выбрано * */
|
|
25
|
-
export declare type EmptyDescription = {
|
|
26
|
-
/** @default "" */
|
|
27
|
-
benefitType: '';
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @title Вид контента
|
|
31
|
-
* @default { "benefitType": "" }
|
|
32
|
-
*/
|
|
33
|
-
export declare type DescriptionDef = EmptyDescription | TextBenefitDef | ListBenefitDef;
|
|
5
|
+
import { type ListProps } from '../../ui-kit/List/ListContent';
|
|
34
6
|
/**
|
|
35
7
|
* @title Преимущество
|
|
36
8
|
*/
|
|
37
|
-
export declare type BenefitBlockItemProps = LabelProps & IconProps & {
|
|
9
|
+
export declare type BenefitBlockItemProps = LabelProps & IconProps & DescriptionProps & ListProps & {
|
|
38
10
|
/** @title Описание */
|
|
39
|
-
description?:
|
|
11
|
+
description?: string;
|
|
40
12
|
iconBgVersion?: IconBgVersion;
|
|
41
13
|
};
|
|
42
14
|
/**
|
|
@@ -16,8 +16,8 @@ const SocialMedia_1 = require("../Footer/SocialMedia");
|
|
|
16
16
|
const Headline_1 = require("../Headline/Headline");
|
|
17
17
|
const ImageAlwaysOnRight_1 = require("./ImageAlwaysOnRight");
|
|
18
18
|
//TODO: replace SocialMedia with renderButtonSection
|
|
19
|
-
exports.CarouselRecommendationCard = (0, uni_jsx_1.JSX)(({ className, padding, description, additionalDescription, href, icon, items = [], isDotted,
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { href: href, target: target, className: "h-full", children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: (0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), ...(0, BaseProductTile_1.leftOrRightImage)((0, isIcon_1.isIcon)(icon) ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, directionRight), buttons: socialMedia.length ? ((0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: socialMedia, showButtonText: true, version: rest?.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, isImageSecondary: isImageSecondary, imageAlign: "center", children: [(0, jsx_runtime_1.jsx)(BenefitsList_1.BenefitsList, { benefits: benefits }), (0, jsx_runtime_1.jsx)(List_1.List, { items: items,
|
|
19
|
+
exports.CarouselRecommendationCard = (0, uni_jsx_1.JSX)(({ className, padding, description, additionalDescription, href, icon, items = [], isDotted, socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight_1.ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => {
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { href: href, target: target, className: "h-full", children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: (0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), ...(0, BaseProductTile_1.leftOrRightImage)((0, isIcon_1.isIcon)(icon) ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, directionRight), buttons: socialMedia.length ? ((0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: socialMedia, showButtonText: true, version: rest?.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, isImageSecondary: isImageSecondary, imageAlign: "center", children: [(0, jsx_runtime_1.jsx)(BenefitsList_1.BenefitsList, { benefits: benefits }), (0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, listItemSize: "S" }), renderAdditionalDescription(additionalDescription, align)] }) }) }));
|
|
21
21
|
});
|
|
22
22
|
const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
|
|
23
23
|
//# sourceMappingURL=CarouselRecommendationCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAAgF;AAChF,6DAA0D;AAC1D,yEAAsE;AACtE,4DAAyD;AACzD,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,gEAA6D;AAE7D,+CAA4C;AAC5C,6CAA0C;AAC1C,uDAAoD;AACpD,mDAAgD;AAEhD,6DAA0D;AAI1D,oDAAoD;AACvC,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EACC,SAAS,EACT,OAAO,EACP,WAAW,EACX,qBAAqB,EACrB,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"CarouselRecommendationCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAAgF;AAChF,6DAA0D;AAC1D,yEAAsE;AACtE,4DAAyD;AACzD,8CAA2C;AAC3C,sEAAmE;AACnE,iDAA8C;AAC9C,gEAA6D;AAE7D,+CAA4C;AAC5C,6CAA0C;AAC1C,uDAAoD;AACpD,mDAAgD;AAEhD,6DAA0D;AAI1D,oDAAoD;AACvC,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EACC,SAAS,EACT,OAAO,EACP,WAAW,EACX,qBAAqB,EACrB,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,QAAQ,EACR,WAAW,GAAG,EAAE,EAChB,MAAM,EACN,KAAK,EACL,KAAK,GAAG,WAAW,EACnB,QAAQ,EACR,YAAY,EAAE,EACZ,cAAc,GAAG,IAAI,EACrB,oBAAoB,GAAG,uCAAkB,EACzC,gBAAgB,GAAG,KAAK,GACzB,GAAG,EAAE,EACN,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,sDAAsD,EAAE,SAAS,CAAC,EACnF,cAAc,EAAC,KAAK,KAChB,IAAI,YAER,uBAAC,yBAAW,IAAC,IAAI,EAAE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ACZ,CACb,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -7,12 +7,12 @@ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
|
7
7
|
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
8
8
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
9
9
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
10
|
+
const List_1 = require("../../ui-kit/List/List");
|
|
10
11
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
11
12
|
const style_1 = require("../../utils/style");
|
|
12
|
-
|
|
13
|
-
exports.MobileAppTile = (0, uni_jsx_1.JSX)(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, additionalDescription = '', title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
13
|
+
exports.MobileAppTile = (0, uni_jsx_1.JSX)(({ className, padding, align = 'text-left', buttons = [], description, image, items, qr, additionalDescription = '', title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
14
14
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
15
15
|
const img = image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "hidden lg:block", image: image }) : null;
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('min-h-80', className), padding: "p-0", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title:
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('min-h-80', className), padding: "p-0", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", title: title, className: (0, style_1.style)('whitespace-pre-wrap', align) }), rightImage: img, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'flex-wrap' }), children: [description ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [(0, jsx_runtime_1.jsx)(List_1.List, { items: items, listItemSize: "M" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", "font-weight": "font-light", color: "text-secondary-text", children: additionalDescription }), qr?.src ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-fit", image: qr }) })) : null, image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=MobileAppTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,iDAA8C;AAC9C,6CAA0C;AAI7B,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,GAAG,WAAW,EACnB,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,K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,YAAY,EAAC,KAAK,EAAC,qBAAqB,YACrE,qBAAqB,GACjB,EACN,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CACT,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,sDAAsD,EACtD,cAAc,CACf,YAED,uBAAC,SAAG,IAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,GAAI,GAChC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IAC5D,IACG,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { type AdditionalDescriptionProps, type HeadlineCommonProps } from '../../model/HeadlineType';
|
|
1
|
+
import { type AdditionalDescriptionProps, type DescriptionProps, type HeadlineCommonProps, type TitleProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import { type Picture } from '../../model/Picture';
|
|
4
4
|
import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
|
|
5
|
-
import { type HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
|
|
6
5
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
7
6
|
import { type ListContent } from '../../ui-kit/List/ListContent';
|
|
8
7
|
/**
|
|
9
8
|
* @title Мобильное приложение
|
|
10
9
|
*/
|
|
11
|
-
export declare type MobileAppTileContent = UniBlockContent & AdditionalDescriptionProps & HeadlineCommonProps &
|
|
10
|
+
export declare type MobileAppTileContent = UniBlockContent & AdditionalDescriptionProps & HeadlineCommonProps & TitleProps & DescriptionProps & ButtonsSectionContent & ListContent & ImageContent & {
|
|
12
11
|
/** @title QR-код */
|
|
13
12
|
qr?: Picture;
|
|
14
13
|
};
|
|
@@ -4,7 +4,7 @@ import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionCo
|
|
|
4
4
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
5
|
import { type InnerTableButtonProps } from '../../ui-kit/InnerTable/InnerTableButton';
|
|
6
6
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
7
|
-
import { type ListProps } from '../../ui-kit/List/
|
|
7
|
+
import { type ListProps } from '../../ui-kit/List/ListContent';
|
|
8
8
|
import { type LabelDescriptionCell } from './TariffsTableContent';
|
|
9
9
|
export declare type EmbeddableCellDataType = LabelDescriptionCell | ButtonContent | ImageContent | ListProps | InnerTableButtonProps;
|
|
10
10
|
interface TableCellDataProps extends InnerTableButtonProps {
|
|
@@ -4,7 +4,7 @@ import { type IconProps } from '../../model/Picture';
|
|
|
4
4
|
import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
|
|
5
5
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
6
|
import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
7
|
-
import { type ListProps } from '../../ui-kit/List/
|
|
7
|
+
import { type ListProps } from '../../ui-kit/List/ListContent';
|
|
8
8
|
/**
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
@@ -11,13 +11,21 @@ const List_1 = require("../List/List");
|
|
|
11
11
|
const PriceList_1 = require("../PriceList/PriceList");
|
|
12
12
|
const RichText_1 = require("../RichText/RichText");
|
|
13
13
|
const Tags_1 = require("../Tags/Tags");
|
|
14
|
+
const LIST_SIZE = {
|
|
15
|
+
XXL: 'L',
|
|
16
|
+
XL: 'L',
|
|
17
|
+
L: 'M',
|
|
18
|
+
M: 'M',
|
|
19
|
+
S: 'S',
|
|
20
|
+
XS: 'S',
|
|
21
|
+
};
|
|
14
22
|
exports.BaseProductTile = (0, uni_jsx_1.JSX)(
|
|
15
23
|
// eslint-disable-next-line max-lines-per-function
|
|
16
|
-
({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, priceList = [],
|
|
24
|
+
({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, priceList = [], tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, backwardButton, children, ...rest }) => {
|
|
17
25
|
const img = image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null;
|
|
18
26
|
const headline = ((0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
|
|
19
27
|
const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...(0, exports.leftOrRightImage)(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), backwardButton: backwardButton, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? ((0, jsx_runtime_1.jsx)(BenefitsList_1.BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, listItemSize:
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...(0, exports.leftOrRightImage)(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), backwardButton: backwardButton, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? ((0, jsx_runtime_1.jsx)(BenefitsList_1.BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, listItemSize: LIST_SIZE[headlineVersion] })) : null, children, priceList?.length ? (0, jsx_runtime_1.jsx)(PriceList_1.PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
|
|
21
29
|
});
|
|
22
30
|
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
23
31
|
exports.leftOrRightImage = leftOrRightImage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;
|
|
1
|
+
{"version":3,"file":"BaseProductTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseProductTile/BaseProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;AAI9D,mDAAgD;AAChD,+DAA4D;AAC5D,yEAAsE;AACtE,oCAAiC;AACjC,uCAAoC;AAEpC,sDAAmD;AACnD,mDAAgD;AAChD,uCAAoC;AAOpC,MAAM,SAAS,GAA0C;IACvD,GAAG,EAAE,GAAG;IACR,EAAE,EAAE,GAAG;IACP,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,EAAE,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C,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ const imageAlignmentMap = {
|
|
|
11
11
|
center: '@xl:self-center',
|
|
12
12
|
end: '@xl:self-end',
|
|
13
13
|
};
|
|
14
|
-
exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, version = 'primary', defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, backwardButton, children, }) => {
|
|
14
|
+
exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, version = 'primary', defaultPadding, padding = '', title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, backwardButton, children, }) => {
|
|
15
15
|
const router = (0, useRouter_1.useRouter)();
|
|
16
16
|
const handleClick = (0, hooks_1.useCallback)((ev) => {
|
|
17
17
|
ev?.preventDefault();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,6FAA0F;AAC1F,qDAAkD;AAIlD,6CAA0C;AAe1C,MAAM,iBAAiB,GAA0B;IAC/C,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,iBAAiB;IACzB,GAAG,EAAE,cAAc;CACpB,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,cAAc,EACd,OAAO,
|
|
1
|
+
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/ui-kit/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,6FAA0F;AAC1F,qDAAkD;AAIlD,6CAA0C;AAe1C,MAAM,iB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,CAAC,UAAU,CAAC,EAC3C,SAAS,CACV,YAEA,KAAK,GACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,mBAAmB,GAAG,CAAC,gBAAyB,EAAE,EAAE,CACxD,gBAAgB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { type ListItemSize } from './ListContent';
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { type ListItemSize, type ListProps } from './ListContent';
|
|
2
|
+
export declare const LIST_VERSION_STYLE: Record<ListItemSize, {
|
|
3
|
+
textSize: string;
|
|
4
|
+
indentStyle: string;
|
|
5
|
+
dotStyle: string;
|
|
6
|
+
}>;
|
|
4
7
|
export declare const List: import("@redneckz/uni-jsx").UNIComponent<ListProps, any, any>;
|
package/dist/ui-kit/List/List.js
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.List = exports.
|
|
2
|
+
exports.List = exports.LIST_VERSION_STYLE = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const style_1 = require("../../utils/style");
|
|
6
6
|
const ListItem_1 = require("./ListItem");
|
|
7
|
-
exports.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
exports.LIST_VERSION_STYLE = {
|
|
8
|
+
S: {
|
|
9
|
+
textSize: 'text-l font-light',
|
|
10
|
+
indentStyle: 'ml-xs',
|
|
11
|
+
dotStyle: 'w-1 h-1 mr-xs',
|
|
12
|
+
},
|
|
13
|
+
M: {
|
|
14
|
+
textSize: 'text-h6',
|
|
15
|
+
indentStyle: 'ml-s',
|
|
16
|
+
dotStyle: 'w-1.5 h-1.5 mr-s',
|
|
17
|
+
},
|
|
18
|
+
L: {
|
|
19
|
+
textSize: 'text-h5',
|
|
20
|
+
indentStyle: 'ml-m',
|
|
21
|
+
dotStyle: 'w-1.5 h-1.5 mr-m',
|
|
22
|
+
},
|
|
12
23
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
L: 'ml-m',
|
|
18
|
-
};
|
|
19
|
-
exports.List = (0, uni_jsx_1.JSX)(({ className, hasIndent, isDotted = true, items = [], listItemSize = 'M' }) => items?.length ? ((0, jsx_runtime_1.jsx)("section", { className: (0, style_1.style)('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', exports.TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => ((0, jsx_runtime_1.jsx)(ListItem_1.ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
|
|
24
|
+
exports.List = (0, uni_jsx_1.JSX)(({ className, isDotted = true, items = [], listItemSize = 'M' }) => {
|
|
25
|
+
const versionStyle = exports.LIST_VERSION_STYLE[listItemSize];
|
|
26
|
+
return items?.length ? ((0, jsx_runtime_1.jsx)("section", { className: (0, style_1.style)('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', versionStyle.textSize, className), role: "list", children: items.map((item, i) => ((0, jsx_runtime_1.jsx)(ListItem_1.ListItem, { isDotted: isDotted, dotClassName: versionStyle.dotStyle, children: item }, String(i)))) })) : null;
|
|
27
|
+
});
|
|
20
28
|
//# sourceMappingURL=List.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/ui-kit/List/List.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAE1C,yCAAsC;
|
|
1
|
+
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/ui-kit/List/List.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAE1C,yCAAsC;AAEzB,QAAA,kBAAkB,GAO3B;IACF,CAAC,EAAE;QACD,QAAQ,EAAE,mBAAmB;QAC7B,WAAW,EAAE,OAAO;QACpB,QAAQ,EAAE,eAAe;KAC1B;IACD,CAAC,EAAE;QACD,QAAQ,EAAE,SAAS;QACnB,WAAW,EAAE,MAAM;QACnB,QAAQ,EAAE,kBAAkB;KAC7B;IACD,CAAC,EAAE;QACD,QAAQ,EAAE,SAAS;QACnB,WAAW,EAAE,MAAM;QACnB,QAAQ,EAAE,kBAAkB;KAC7B;CACF,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,SAAS,EAAE,QAAQ,GAAG,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,YAAY,GAAG,GAAG,EAAE,EAAE,EAAE;IACjE,MAAM,YAAY,GAAG,0BAAkB,CAAC,YAAY,CAAC,CAAC;IAEtD,OAAO,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,oCACE,SAAS,EAAE,IAAA,aAAK,EACd,sHAAsH,EACtH,YAAY,CAAC,QAAQ,EACrB,SAAS,CACV,EACD,IAAI,EAAC,MAAM,YAEV,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,mBAAQ,IAAiB,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,CAAC,QAAQ,YAC9E,IAAI,IADQ,MAAM,CAAC,CAAC,CAAC,CAEb,CACZ,CAAC,GACM,CACX,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import { type BulletsProps } from '../../model/Bullets';
|
|
1
2
|
/**
|
|
2
3
|
* @title Размер пунктов списка
|
|
3
|
-
* @enumNames ["
|
|
4
|
+
* @enumNames ["Маленький", "Средний", "Большой"]
|
|
4
5
|
*/
|
|
5
|
-
export declare type ListItemSize = '
|
|
6
|
+
export declare type ListItemSize = 'S' | 'M' | 'L';
|
|
6
7
|
export interface ListContent {
|
|
7
8
|
/** @title Список */
|
|
8
9
|
items?: string[];
|
|
10
|
+
/** @hidden */
|
|
9
11
|
listItemSize?: ListItemSize;
|
|
10
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* @title Содержимое списка
|
|
15
|
+
*/
|
|
16
|
+
export declare type ListProps = ListContent & BulletsProps & {
|
|
17
|
+
/** @hidden */
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { type ListItemSize } from './ListContent';
|
|
2
1
|
/**
|
|
3
2
|
* @title Параметры элемента списка
|
|
4
3
|
*/
|
|
5
4
|
export interface ListItemProps {
|
|
6
5
|
className?: string;
|
|
6
|
+
dotClassName?: string;
|
|
7
7
|
text?: string;
|
|
8
8
|
isDotted?: boolean;
|
|
9
|
-
size?: ListItemSize;
|
|
10
9
|
}
|
|
11
10
|
export declare const ListItem: import("@redneckz/uni-jsx").UNIComponent<ListItemProps, any, any>;
|
|
@@ -3,11 +3,5 @@ exports.ListItem = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const style_1 = require("../../utils/style");
|
|
6
|
-
|
|
7
|
-
L: 'w-1.5 h-1.5 mr-m',
|
|
8
|
-
M: 'w-1.5 h-1.5 mr-s',
|
|
9
|
-
S: 'w-1 h-1 mr-xs',
|
|
10
|
-
XS: 'w-1 h-1 mr-xs',
|
|
11
|
-
};
|
|
12
|
-
exports.ListItem = (0, uni_jsx_1.JSX)(({ className, isDotted, children, size = 'M' }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('font-sans flex', className), role: "listitem", children: [isDotted ? ((0, jsx_runtime_1.jsx)("div", { className: "shrink-0", children: (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', DOT_SIZE_MAP[size]) }) })) : null, (0, jsx_runtime_1.jsx)("span", { children: children })] })));
|
|
6
|
+
exports.ListItem = (0, uni_jsx_1.JSX)(({ className, isDotted, dotClassName, children }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('font-sans flex', className), role: "listitem", children: [isDotted ? ((0, jsx_runtime_1.jsx)("div", { className: "shrink-0", children: (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', dotClassName) }) })) : null, (0, jsx_runtime_1.jsx)("span", { children: children })] })));
|
|
13
7
|
//# sourceMappingURL=ListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;
|
|
1
|
+
{"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAY7B,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9F,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,IAAI,EAAC,UAAU,aAChE,QAAQ,CAAC,CAAC,CAAC,CACV,gCAAK,SAAS,EAAC,UAAU,YACvB,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,sFAAsF,EACtF,YAAY,CACb,GACD,GACE,CACP,CAAC,CAAC,CAAC,IAAI,EACR,2CAAO,QAAQ,GAAQ,IACnB,CACP,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare type HTML = string;
|
|
2
2
|
/**
|
|
3
3
|
* @title Стиль форматированного текста
|
|
4
|
-
* @default ""
|
|
5
|
-
* @enumNames ["
|
|
4
|
+
* @default "primary"
|
|
5
|
+
* @enumNames ["Основсной", "Второстепенный"]
|
|
6
6
|
*/
|
|
7
|
-
export declare type RichVersion = '' | '
|
|
7
|
+
export declare type RichVersion = '' | 'secondary';
|
|
8
8
|
export interface RichTextProps {
|
|
9
9
|
/** @title Форматированный текст */
|
|
10
10
|
__html?: HTML;
|