@redneckz/wildless-cms-uni-blocks 0.14.70 → 0.14.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.14.62.js +3 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +18 -22
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +2 -2
- package/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/bundle/ui-kit/List/ListContent.d.ts +2 -0
- package/bundle/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/dist/components/ApplicationForm/Footnote.js +1 -1
- package/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableColumn.js +1 -1
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -3
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +2 -2
- package/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/dist/components/StickyBottomMenu/RenderItem.js +3 -3
- package/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +5 -5
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/dist/ui-kit/List/List.js +2 -2
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListContent.d.ts +2 -0
- package/dist/ui-kit/List/ListItem.js +1 -1
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
- package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/Footnote.js +1 -1
- package/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableColumn.js +1 -1
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -3
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +2 -2
- package/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/lib/components/StickyBottomMenu/RenderItem.js +3 -3
- package/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +5 -5
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/ui-kit/List/List.js +2 -2
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListContent.d.ts +2 -0
- package/lib/ui-kit/List/ListItem.js +1 -1
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
- package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +18 -20
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +2 -2
- package/mobile/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +2 -0
- package/mobile/bundle/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -3
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +2 -2
- package/mobile/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/mobile/dist/components/StickyBottomMenu/RenderItem.js +3 -3
- package/mobile/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +5 -5
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/dist/ui-kit/List/List.js +2 -2
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListContent.d.ts +2 -0
- package/mobile/dist/ui-kit/List/ListItem.js +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
- package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -3
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +2 -2
- package/mobile/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -1
- package/mobile/lib/components/StickyBottomMenu/RenderItem.js +3 -3
- package/mobile/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +5 -5
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/lib/ui-kit/List/List.js +2 -2
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListContent.d.ts +2 -0
- package/mobile/lib/ui-kit/List/ListItem.js +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.d.ts +2 -2
- package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +1 -1
- package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
- package/mobile/src/components/ApplicationForm/Footnote.tsx +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +37 -39
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -1
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -7
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +3 -6
- package/mobile/src/components/StickyBottomMenu/RenderItem.tsx +4 -4
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +8 -8
- package/mobile/src/ui-kit/List/List.tsx +6 -2
- package/mobile/src/ui-kit/List/ListContent.ts +2 -0
- package/mobile/src/ui-kit/List/ListItem.tsx +1 -1
- package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +5 -3
- package/mobile/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +3 -3
- package/package.json +1 -1
- package/src/components/ApplicationForm/Footnote.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +37 -39
- package/src/components/ComparisonTable/HeaderCell.tsx +1 -1
- package/src/components/ComparisonTable/TableColumn.tsx +1 -1
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -7
- package/src/components/StepsBlock/StepsBlock.tsx +1 -2
- package/src/components/StepsBlock/StepsBlockContent.ts +3 -6
- package/src/components/StickyBottomMenu/RenderItem.tsx +4 -4
- package/src/ui-kit/Img/ImgAsPicture.tsx +8 -8
- package/src/ui-kit/List/List.tsx +6 -2
- package/src/ui-kit/List/ListContent.ts +2 -0
- package/src/ui-kit/List/ListItem.tsx +1 -1
- package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +5 -3
- package/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +3 -3
|
@@ -40,45 +40,43 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
40
40
|
isImageSecondary = false,
|
|
41
41
|
} = {},
|
|
42
42
|
...rest
|
|
43
|
-
}) =>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
>
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
socialMedia
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
);
|
|
81
|
-
},
|
|
43
|
+
}) => (
|
|
44
|
+
<BlockWrapper
|
|
45
|
+
className={style('relative min-h-28 group-data-gray:bg-main-divider/50', className)}
|
|
46
|
+
defaultPadding="p-0"
|
|
47
|
+
{...rest}
|
|
48
|
+
>
|
|
49
|
+
<LinkWrapper href={href} target={target} className="h-full">
|
|
50
|
+
<BaseTile
|
|
51
|
+
className="h-full"
|
|
52
|
+
defaultPadding="p-2xl"
|
|
53
|
+
padding={padding}
|
|
54
|
+
insetTitle={
|
|
55
|
+
<Headline
|
|
56
|
+
title={title}
|
|
57
|
+
description={description}
|
|
58
|
+
headlineVersion="XS"
|
|
59
|
+
isEmbedded={true}
|
|
60
|
+
align={align}
|
|
61
|
+
/>
|
|
62
|
+
}
|
|
63
|
+
{...leftOrRightImage(isIcon(icon) ? <Img image={icon} /> : null, directionRight)}
|
|
64
|
+
buttons={
|
|
65
|
+
socialMedia.length ? (
|
|
66
|
+
<SocialMedia media={socialMedia} showButtonText={true} version={rest?.version} />
|
|
67
|
+
) : null
|
|
68
|
+
}
|
|
69
|
+
isImageAlwaysOnRight={isImageAlwaysOnRight}
|
|
70
|
+
isImageSecondary={isImageSecondary}
|
|
71
|
+
imageAlign="center"
|
|
72
|
+
>
|
|
73
|
+
<BenefitsList benefits={benefits} />
|
|
74
|
+
<List items={items} isDotted={isDotted} listItemSize="S" />
|
|
75
|
+
{renderAdditionalDescription(additionalDescription, align)}
|
|
76
|
+
</BaseTile>
|
|
77
|
+
</LinkWrapper>
|
|
78
|
+
</BlockWrapper>
|
|
79
|
+
),
|
|
82
80
|
);
|
|
83
81
|
|
|
84
82
|
const renderAdditionalDescription = (additionalDescription?: string, align?: TextAlign) =>
|
|
@@ -48,7 +48,7 @@ export const TableColumn = JSX<TableColumnProps>(
|
|
|
48
48
|
{showRow && header?.link ? (
|
|
49
49
|
<LinkButton
|
|
50
50
|
href={header.link.href}
|
|
51
|
-
target={header.link
|
|
51
|
+
target={header.link?.target}
|
|
52
52
|
version={buttonVersion}
|
|
53
53
|
className="text-s font-medium mt-m py-s"
|
|
54
54
|
>
|
|
@@ -121,13 +121,9 @@ const renderInvestmentCell = (cell: InvestmentCell, i: number) => {
|
|
|
121
121
|
) : null;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
const renderInvestmentColumnTitle = (
|
|
125
|
-
column
|
|
126
|
-
i: number,
|
|
127
|
-
) => {
|
|
128
|
-
return (
|
|
124
|
+
const renderInvestmentColumnTitle = (column: InvestmentColumn | InvestmentZeroColumn, i: number) =>
|
|
125
|
+
column?.title ? (
|
|
129
126
|
<div key={`title_${i}`} className={`flex-1 max-w-[180px] text-center px-xs last:pr-3xl`}>
|
|
130
127
|
{column.title}
|
|
131
128
|
</div>
|
|
132
|
-
);
|
|
133
|
-
};
|
|
129
|
+
) : null;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { type BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import { type BulletsProps } from '../../model/Bullets';
|
|
3
3
|
import { type DefaultListItemType } from '../../model/DefaultListItemType';
|
|
4
|
-
import {
|
|
5
|
-
type DescriptionProps,
|
|
6
|
-
type HeadlineCommonProps,
|
|
7
|
-
type LabelProps,
|
|
8
|
-
} from '../../model/HeadlineType';
|
|
4
|
+
import { type DescriptionProps, type LabelProps, type TitleProps } from '../../model/HeadlineType';
|
|
9
5
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
10
6
|
import { type IconProps } from '../../model/Picture';
|
|
11
7
|
import { type RichTextItem } from '../../model/RichTextItem';
|
|
@@ -42,7 +38,8 @@ export type Step = DefaultStep | RichTextStep;
|
|
|
42
38
|
* @title Блок шаги
|
|
43
39
|
*/
|
|
44
40
|
export type StepsBlockContent = UniBlockContent &
|
|
45
|
-
|
|
41
|
+
TitleProps &
|
|
42
|
+
DescriptionProps &
|
|
46
43
|
ButtonsSectionContent & {
|
|
47
44
|
/** @title Линии */
|
|
48
45
|
showLines?: boolean;
|
|
@@ -7,13 +7,13 @@ import { type MenuItemProps } from './StickyBottomMenuProps';
|
|
|
7
7
|
|
|
8
8
|
interface RenderItemProps {
|
|
9
9
|
isActive?: boolean;
|
|
10
|
-
item
|
|
10
|
+
item?: MenuItemProps;
|
|
11
11
|
onClick?: () => void;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) => {
|
|
15
15
|
const isAnotherPortal = projectSettings?.BASE_PATH
|
|
16
|
-
? !item
|
|
16
|
+
? !item?.href?.startsWith(projectSettings?.BASE_PATH)
|
|
17
17
|
: true;
|
|
18
18
|
|
|
19
19
|
const link = useLink({ isRemote: isAnotherPortal });
|
|
@@ -22,7 +22,7 @@ export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) =>
|
|
|
22
22
|
target,
|
|
23
23
|
onClick: handleClick,
|
|
24
24
|
} = link({
|
|
25
|
-
href: item
|
|
25
|
+
href: item?.href || '',
|
|
26
26
|
target: '_self',
|
|
27
27
|
});
|
|
28
28
|
const isActiveItem = item?.icon?.icon === 'BurgerIcon' ? item.isActive : isActive;
|
|
@@ -45,7 +45,7 @@ export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) =>
|
|
|
45
45
|
iconVersion: iconVersion,
|
|
46
46
|
}}
|
|
47
47
|
/>
|
|
48
|
-
{item
|
|
48
|
+
{item?.title || ''}
|
|
49
49
|
</a>
|
|
50
50
|
);
|
|
51
51
|
});
|
|
@@ -25,8 +25,8 @@ export const ImgAsPicture = JSX<ImageProps>(
|
|
|
25
25
|
srcSet={adjustSrc(router, pathPrefix)(src)}
|
|
26
26
|
type={formatToMimeType(format)}
|
|
27
27
|
media={media ? `(max-width: ${media}px)` : ''}
|
|
28
|
-
width={image
|
|
29
|
-
height={image
|
|
28
|
+
width={image?.size?.width}
|
|
29
|
+
height={image?.size?.height}
|
|
30
30
|
/>
|
|
31
31
|
))
|
|
32
32
|
: null}
|
|
@@ -42,14 +42,14 @@ const renderImg = (image: Picture, imageClassName = '') => (
|
|
|
42
42
|
<img
|
|
43
43
|
src={image.src}
|
|
44
44
|
className={style('object-contain', imageClassName)}
|
|
45
|
-
alt={image
|
|
46
|
-
title={image
|
|
45
|
+
alt={image?.alt || image?.title || ''}
|
|
46
|
+
title={image?.title || ''}
|
|
47
47
|
style={{
|
|
48
|
-
width: image
|
|
49
|
-
height: image
|
|
48
|
+
width: image?.size?.width ? `${image.size?.width}px` : '100%',
|
|
49
|
+
height: image?.size?.height ? `${image.size?.height}px` : 'auto',
|
|
50
50
|
}}
|
|
51
|
-
width={image
|
|
52
|
-
height={image
|
|
51
|
+
width={image?.size?.width}
|
|
52
|
+
height={image?.size?.height}
|
|
53
53
|
/>
|
|
54
54
|
);
|
|
55
55
|
|
|
@@ -29,7 +29,7 @@ export const LIST_VERSION_STYLE: Record<
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export const List = JSX<ListProps>(
|
|
32
|
-
({ className, isDotted = true, items = [], listItemSize = 'M' }) => {
|
|
32
|
+
({ className, isDotted = true, items = [], listItemSize = 'M', dotClassName = '' }) => {
|
|
33
33
|
const versionStyle = LIST_VERSION_STYLE[listItemSize];
|
|
34
34
|
|
|
35
35
|
return items?.length ? (
|
|
@@ -42,7 +42,11 @@ export const List = JSX<ListProps>(
|
|
|
42
42
|
role="list"
|
|
43
43
|
>
|
|
44
44
|
{items.map((item, i) => (
|
|
45
|
-
<ListItem
|
|
45
|
+
<ListItem
|
|
46
|
+
key={String(i)}
|
|
47
|
+
isDotted={isDotted}
|
|
48
|
+
dotClassName={style(dotClassName || 'bg-primary-text', versionStyle.dotStyle)}
|
|
49
|
+
>
|
|
46
50
|
{item}
|
|
47
51
|
</ListItem>
|
|
48
52
|
))}
|
|
@@ -17,7 +17,7 @@ export const ListItem = JSX<ListItemProps>(({ className, isDotted, dotClassName,
|
|
|
17
17
|
<div className="shrink-0">
|
|
18
18
|
<div
|
|
19
19
|
className={style(
|
|
20
|
-
'align-middle inline-block rounded-full
|
|
20
|
+
'align-middle inline-block rounded-full group-data-secondary:bg-white',
|
|
21
21
|
dotClassName,
|
|
22
22
|
)}
|
|
23
23
|
/>
|
|
@@ -29,9 +29,11 @@ export const SlideCheckbox = JSX<SlideCheckboxProps>(
|
|
|
29
29
|
)}
|
|
30
30
|
/>
|
|
31
31
|
</div>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
{text ? (
|
|
33
|
+
<Text size="text-l" font="font-light" color="text-primary-text">
|
|
34
|
+
{text}
|
|
35
|
+
</Text>
|
|
36
|
+
) : null}
|
|
35
37
|
</div>
|
|
36
38
|
),
|
|
37
39
|
);
|
|
@@ -9,12 +9,12 @@ type SlideCheckboxGroupItem = {
|
|
|
9
9
|
|
|
10
10
|
interface SlideCheckboxGroupProps extends ControlProps<string> {
|
|
11
11
|
multiple: false;
|
|
12
|
-
items
|
|
12
|
+
items?: SlideCheckboxGroupItem[];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
interface MultipleSlideCheckboxGroupProps extends ControlProps<string[]> {
|
|
16
16
|
multiple: true;
|
|
17
|
-
items
|
|
17
|
+
items?: SlideCheckboxGroupItem[];
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export const SlideCheckboxGroup = JSX<SlideCheckboxGroupProps | MultipleSlideCheckboxGroupProps>(
|
|
@@ -38,7 +38,7 @@ export const SlideCheckboxGroup = JSX<SlideCheckboxGroupProps | MultipleSlideChe
|
|
|
38
38
|
return items.map((item) => (
|
|
39
39
|
<SlideCheckbox
|
|
40
40
|
key={item.value}
|
|
41
|
-
text={item
|
|
41
|
+
text={item?.title}
|
|
42
42
|
value={[value].flatMap((_) => _).includes(item.value)}
|
|
43
43
|
onChange={() => handleChange(item.value)}
|
|
44
44
|
type={multiple ? 'checkbox' : 'radio'}
|
package/package.json
CHANGED
|
@@ -56,7 +56,7 @@ const renderBenefit = (
|
|
|
56
56
|
>
|
|
57
57
|
{description}
|
|
58
58
|
</Text>
|
|
59
|
-
<List
|
|
59
|
+
<List dotClassName="bg-secondary-text" listItemSize="S" items={items} isDotted={isDotted} />
|
|
60
60
|
</div>
|
|
61
61
|
) : null}
|
|
62
62
|
</div>
|
|
@@ -40,45 +40,43 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
40
40
|
isImageSecondary = false,
|
|
41
41
|
} = {},
|
|
42
42
|
...rest
|
|
43
|
-
}) =>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
>
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
socialMedia
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
);
|
|
81
|
-
},
|
|
43
|
+
}) => (
|
|
44
|
+
<BlockWrapper
|
|
45
|
+
className={style('relative min-h-28 group-data-gray:bg-main-divider/50', className)}
|
|
46
|
+
defaultPadding="p-0"
|
|
47
|
+
{...rest}
|
|
48
|
+
>
|
|
49
|
+
<LinkWrapper href={href} target={target} className="h-full">
|
|
50
|
+
<BaseTile
|
|
51
|
+
className="h-full"
|
|
52
|
+
defaultPadding="p-2xl"
|
|
53
|
+
padding={padding}
|
|
54
|
+
insetTitle={
|
|
55
|
+
<Headline
|
|
56
|
+
title={title}
|
|
57
|
+
description={description}
|
|
58
|
+
headlineVersion="XS"
|
|
59
|
+
isEmbedded={true}
|
|
60
|
+
align={align}
|
|
61
|
+
/>
|
|
62
|
+
}
|
|
63
|
+
{...leftOrRightImage(isIcon(icon) ? <Img image={icon} /> : null, directionRight)}
|
|
64
|
+
buttons={
|
|
65
|
+
socialMedia.length ? (
|
|
66
|
+
<SocialMedia media={socialMedia} showButtonText={true} version={rest?.version} />
|
|
67
|
+
) : null
|
|
68
|
+
}
|
|
69
|
+
isImageAlwaysOnRight={isImageAlwaysOnRight}
|
|
70
|
+
isImageSecondary={isImageSecondary}
|
|
71
|
+
imageAlign="center"
|
|
72
|
+
>
|
|
73
|
+
<BenefitsList benefits={benefits} />
|
|
74
|
+
<List items={items} isDotted={isDotted} listItemSize="S" />
|
|
75
|
+
{renderAdditionalDescription(additionalDescription, align)}
|
|
76
|
+
</BaseTile>
|
|
77
|
+
</LinkWrapper>
|
|
78
|
+
</BlockWrapper>
|
|
79
|
+
),
|
|
82
80
|
);
|
|
83
81
|
|
|
84
82
|
const renderAdditionalDescription = (additionalDescription?: string, align?: TextAlign) =>
|
|
@@ -35,7 +35,7 @@ export const HeaderCell = JSX<HeaderCellProps>(({ icon, image, title, link }) =>
|
|
|
35
35
|
<div className="mt-auto w-full">
|
|
36
36
|
<LinkButton
|
|
37
37
|
href={link.href}
|
|
38
|
-
target={link.target}
|
|
38
|
+
target={link.target || ''}
|
|
39
39
|
className="w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active"
|
|
40
40
|
>
|
|
41
41
|
<div className="text-xs font-light font-medium py-s">{link.text}</div>
|
|
@@ -48,7 +48,7 @@ export const TableColumn = JSX<TableColumnProps>(
|
|
|
48
48
|
{showRow && header?.link ? (
|
|
49
49
|
<LinkButton
|
|
50
50
|
href={header.link.href}
|
|
51
|
-
target={header.link
|
|
51
|
+
target={header.link?.target}
|
|
52
52
|
version={buttonVersion}
|
|
53
53
|
className="text-s font-medium mt-m py-s"
|
|
54
54
|
>
|
|
@@ -121,13 +121,9 @@ const renderInvestmentCell = (cell: InvestmentCell, i: number) => {
|
|
|
121
121
|
) : null;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
const renderInvestmentColumnTitle = (
|
|
125
|
-
column
|
|
126
|
-
i: number,
|
|
127
|
-
) => {
|
|
128
|
-
return (
|
|
124
|
+
const renderInvestmentColumnTitle = (column: InvestmentColumn | InvestmentZeroColumn, i: number) =>
|
|
125
|
+
column?.title ? (
|
|
129
126
|
<div key={`title_${i}`} className={`flex-1 max-w-[180px] text-center px-xs last:pr-3xl`}>
|
|
130
127
|
{column.title}
|
|
131
128
|
</div>
|
|
132
|
-
);
|
|
133
|
-
};
|
|
129
|
+
) : null;
|
|
@@ -21,7 +21,6 @@ const getPaddingX = (steps: number) => (steps < 5 ? 'px-24' : 'px-16');
|
|
|
21
21
|
|
|
22
22
|
export const StepsBlock = JSX<StepsBlockProps>(
|
|
23
23
|
({
|
|
24
|
-
align = AlignStyles,
|
|
25
24
|
buttons,
|
|
26
25
|
className = '',
|
|
27
26
|
description,
|
|
@@ -58,7 +57,7 @@ export const StepsBlock = JSX<StepsBlockProps>(
|
|
|
58
57
|
description={description}
|
|
59
58
|
isEmbedded={true}
|
|
60
59
|
className="w-full"
|
|
61
|
-
align={
|
|
60
|
+
align={AlignStyles}
|
|
62
61
|
/>
|
|
63
62
|
{steps?.length ? (
|
|
64
63
|
<div className="box-border space-y-lg">
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { type BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import { type BulletsProps } from '../../model/Bullets';
|
|
3
3
|
import { type DefaultListItemType } from '../../model/DefaultListItemType';
|
|
4
|
-
import {
|
|
5
|
-
type DescriptionProps,
|
|
6
|
-
type HeadlineCommonProps,
|
|
7
|
-
type LabelProps,
|
|
8
|
-
} from '../../model/HeadlineType';
|
|
4
|
+
import { type DescriptionProps, type LabelProps, type TitleProps } from '../../model/HeadlineType';
|
|
9
5
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
10
6
|
import { type IconProps } from '../../model/Picture';
|
|
11
7
|
import { type RichTextItem } from '../../model/RichTextItem';
|
|
@@ -42,7 +38,8 @@ export type Step = DefaultStep | RichTextStep;
|
|
|
42
38
|
* @title Блок шаги
|
|
43
39
|
*/
|
|
44
40
|
export type StepsBlockContent = UniBlockContent &
|
|
45
|
-
|
|
41
|
+
TitleProps &
|
|
42
|
+
DescriptionProps &
|
|
46
43
|
ButtonsSectionContent & {
|
|
47
44
|
/** @title Линии */
|
|
48
45
|
showLines?: boolean;
|
|
@@ -7,13 +7,13 @@ import { type MenuItemProps } from './StickyBottomMenuProps';
|
|
|
7
7
|
|
|
8
8
|
interface RenderItemProps {
|
|
9
9
|
isActive?: boolean;
|
|
10
|
-
item
|
|
10
|
+
item?: MenuItemProps;
|
|
11
11
|
onClick?: () => void;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) => {
|
|
15
15
|
const isAnotherPortal = projectSettings?.BASE_PATH
|
|
16
|
-
? !item
|
|
16
|
+
? !item?.href?.startsWith(projectSettings?.BASE_PATH)
|
|
17
17
|
: true;
|
|
18
18
|
|
|
19
19
|
const link = useLink({ isRemote: isAnotherPortal });
|
|
@@ -22,7 +22,7 @@ export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) =>
|
|
|
22
22
|
target,
|
|
23
23
|
onClick: handleClick,
|
|
24
24
|
} = link({
|
|
25
|
-
href: item
|
|
25
|
+
href: item?.href || '',
|
|
26
26
|
target: '_self',
|
|
27
27
|
});
|
|
28
28
|
const isActiveItem = item?.icon?.icon === 'BurgerIcon' ? item.isActive : isActive;
|
|
@@ -45,7 +45,7 @@ export const RenderItem = JSX<RenderItemProps>(({ isActive, item, onClick }) =>
|
|
|
45
45
|
iconVersion: iconVersion,
|
|
46
46
|
}}
|
|
47
47
|
/>
|
|
48
|
-
{item
|
|
48
|
+
{item?.title || ''}
|
|
49
49
|
</a>
|
|
50
50
|
);
|
|
51
51
|
});
|
|
@@ -25,8 +25,8 @@ export const ImgAsPicture = JSX<ImageProps>(
|
|
|
25
25
|
srcSet={adjustSrc(router, pathPrefix)(src)}
|
|
26
26
|
type={formatToMimeType(format)}
|
|
27
27
|
media={media ? `(max-width: ${media}px)` : ''}
|
|
28
|
-
width={image
|
|
29
|
-
height={image
|
|
28
|
+
width={image?.size?.width}
|
|
29
|
+
height={image?.size?.height}
|
|
30
30
|
/>
|
|
31
31
|
))
|
|
32
32
|
: null}
|
|
@@ -42,14 +42,14 @@ const renderImg = (image: Picture, imageClassName = '') => (
|
|
|
42
42
|
<img
|
|
43
43
|
src={image.src}
|
|
44
44
|
className={style('object-contain', imageClassName)}
|
|
45
|
-
alt={image
|
|
46
|
-
title={image
|
|
45
|
+
alt={image?.alt || image?.title || ''}
|
|
46
|
+
title={image?.title || ''}
|
|
47
47
|
style={{
|
|
48
|
-
width: image
|
|
49
|
-
height: image
|
|
48
|
+
width: image?.size?.width ? `${image.size?.width}px` : '100%',
|
|
49
|
+
height: image?.size?.height ? `${image.size?.height}px` : 'auto',
|
|
50
50
|
}}
|
|
51
|
-
width={image
|
|
52
|
-
height={image
|
|
51
|
+
width={image?.size?.width}
|
|
52
|
+
height={image?.size?.height}
|
|
53
53
|
/>
|
|
54
54
|
);
|
|
55
55
|
|
package/src/ui-kit/List/List.tsx
CHANGED
|
@@ -29,7 +29,7 @@ export const LIST_VERSION_STYLE: Record<
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export const List = JSX<ListProps>(
|
|
32
|
-
({ className, isDotted = true, items = [], listItemSize = 'M' }) => {
|
|
32
|
+
({ className, isDotted = true, items = [], listItemSize = 'M', dotClassName = '' }) => {
|
|
33
33
|
const versionStyle = LIST_VERSION_STYLE[listItemSize];
|
|
34
34
|
|
|
35
35
|
return items?.length ? (
|
|
@@ -42,7 +42,11 @@ export const List = JSX<ListProps>(
|
|
|
42
42
|
role="list"
|
|
43
43
|
>
|
|
44
44
|
{items.map((item, i) => (
|
|
45
|
-
<ListItem
|
|
45
|
+
<ListItem
|
|
46
|
+
key={String(i)}
|
|
47
|
+
isDotted={isDotted}
|
|
48
|
+
dotClassName={style(dotClassName || 'bg-primary-text', versionStyle.dotStyle)}
|
|
49
|
+
>
|
|
46
50
|
{item}
|
|
47
51
|
</ListItem>
|
|
48
52
|
))}
|
|
@@ -17,7 +17,7 @@ export const ListItem = JSX<ListItemProps>(({ className, isDotted, dotClassName,
|
|
|
17
17
|
<div className="shrink-0">
|
|
18
18
|
<div
|
|
19
19
|
className={style(
|
|
20
|
-
'align-middle inline-block rounded-full
|
|
20
|
+
'align-middle inline-block rounded-full group-data-secondary:bg-white',
|
|
21
21
|
dotClassName,
|
|
22
22
|
)}
|
|
23
23
|
/>
|
|
@@ -29,9 +29,11 @@ export const SlideCheckbox = JSX<SlideCheckboxProps>(
|
|
|
29
29
|
)}
|
|
30
30
|
/>
|
|
31
31
|
</div>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
{text ? (
|
|
33
|
+
<Text size="text-l" font="font-light" color="text-primary-text">
|
|
34
|
+
{text}
|
|
35
|
+
</Text>
|
|
36
|
+
) : null}
|
|
35
37
|
</div>
|
|
36
38
|
),
|
|
37
39
|
);
|
|
@@ -9,12 +9,12 @@ type SlideCheckboxGroupItem = {
|
|
|
9
9
|
|
|
10
10
|
interface SlideCheckboxGroupProps extends ControlProps<string> {
|
|
11
11
|
multiple: false;
|
|
12
|
-
items
|
|
12
|
+
items?: SlideCheckboxGroupItem[];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
interface MultipleSlideCheckboxGroupProps extends ControlProps<string[]> {
|
|
16
16
|
multiple: true;
|
|
17
|
-
items
|
|
17
|
+
items?: SlideCheckboxGroupItem[];
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export const SlideCheckboxGroup = JSX<SlideCheckboxGroupProps | MultipleSlideCheckboxGroupProps>(
|
|
@@ -38,7 +38,7 @@ export const SlideCheckboxGroup = JSX<SlideCheckboxGroupProps | MultipleSlideChe
|
|
|
38
38
|
return items.map((item) => (
|
|
39
39
|
<SlideCheckbox
|
|
40
40
|
key={item.value}
|
|
41
|
-
text={item
|
|
41
|
+
text={item?.title}
|
|
42
42
|
value={[value].flatMap((_) => _).includes(item.value)}
|
|
43
43
|
onChange={() => handleChange(item.value)}
|
|
44
44
|
type={multiple ? 'checkbox' : 'radio'}
|