@redneckz/wildless-cms-uni-blocks 0.14.63 → 0.14.65
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/migration-scripts/0.14.65.js +17 -0
- package/bin/utils.js +14 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +51 -56
- 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/ProductBlock/ProductBlockContent.d.ts +0 -2
- package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
- 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/InvestmentInfo/InvestmentInfo.js +2 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.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/ProductBlock/ProductBlock.js +1 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +0 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- 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/BaseProductTile/BaseProductTileContent.d.ts +2 -2
- 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/InvestmentInfo/InvestmentInfo.js +2 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.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/ProductBlock/ProductBlock.fixture.mobile.d.ts +0 -2
- package/lib/components/ProductBlock/ProductBlock.js +1 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +0 -2
- package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +3 -2
- package/lib/components/RichTextBlock/RichTextBlock.fixture.mobile.d.ts +4 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- 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/BaseProductTile/BaseProductTileContent.d.ts +2 -2
- 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 +49 -54
- 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/ProductBlock/ProductBlockContent.d.ts +0 -2
- 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/BaseProductTile/BaseProductTileContent.d.ts +2 -2
- 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/InvestmentInfo/InvestmentInfo.js +2 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.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/ProductBlock/ProductBlock.js +1 -2
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +0 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- 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/BaseProductTile/BaseProductTileContent.d.ts +2 -2
- 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/InvestmentInfo/InvestmentInfo.js +2 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.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/ProductBlock/ProductBlock.js +1 -2
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +0 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- 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/BaseProductTile/BaseProductTileContent.d.ts +2 -2
- 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/InvestmentInfo/InvestmentInfo.tsx +2 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +10 -12
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +4 -2
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +9 -16
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +0 -2
- package/mobile/src/components/RichTextBlock/RichTextBlock.example.json +2 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +15 -7
- 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/BaseProductTile/BaseProductTileContent.ts +1 -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/InvestmentInfo/InvestmentInfo.tsx +2 -1
- 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/ProductBlock/ProductBlock.fixture.mobile.tsx +0 -17
- package/src/components/ProductBlock/ProductBlock.tsx +9 -16
- package/src/components/ProductBlock/ProductBlockContent.ts +0 -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/SafeDepositRental/SafeDepositRentalTotal.tsx +15 -7
- 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/BaseProductTile/BaseProductTileContent.ts +1 -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
|
@@ -5,16 +5,9 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
5
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
6
|
import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon';
|
|
7
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
|
-
import {
|
|
8
|
+
import { List } from '../../ui-kit/List/List';
|
|
9
9
|
import { Text } from '../../ui-kit/Text/Text';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
type BenefitBlockItemProps,
|
|
13
|
-
type BenefitsBlockContent,
|
|
14
|
-
type DescriptionDef,
|
|
15
|
-
type ListBenefitDef,
|
|
16
|
-
type TextBenefitDef,
|
|
17
|
-
} from './BenefitsBlockContent';
|
|
10
|
+
import { type BenefitBlockItemProps, type BenefitsBlockContent } from './BenefitsBlockContent';
|
|
18
11
|
import { defaultIconSize } from './defaultIconSize';
|
|
19
12
|
|
|
20
13
|
interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {}
|
|
@@ -35,70 +28,36 @@ export const BenefitsBlock = JSX<BenefitsBlockProps>(
|
|
|
35
28
|
),
|
|
36
29
|
);
|
|
37
30
|
|
|
38
|
-
const renderBenefit = (
|
|
31
|
+
const renderBenefit = (
|
|
32
|
+
{ label, description, items, icon, iconBgVersion, isDotted = false }: BenefitBlockItemProps,
|
|
33
|
+
i: number,
|
|
34
|
+
) => (
|
|
39
35
|
<div
|
|
40
36
|
key={String(i)}
|
|
41
37
|
className="flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]"
|
|
42
38
|
role="listitem"
|
|
43
39
|
>
|
|
44
|
-
{
|
|
40
|
+
{icon?.icon ? (
|
|
45
41
|
<RoundedIcon
|
|
46
42
|
className="shrink-0"
|
|
47
43
|
defaultIconSize={defaultIconSize}
|
|
48
|
-
iconBgVersion={
|
|
49
|
-
{...
|
|
44
|
+
iconBgVersion={iconBgVersion || ''}
|
|
45
|
+
{...icon}
|
|
50
46
|
/>
|
|
51
47
|
) : null}
|
|
52
|
-
{
|
|
53
|
-
{
|
|
54
|
-
<div className="@sm:h-full">
|
|
55
|
-
<Heading headingType="h6">{
|
|
56
|
-
|
|
48
|
+
{icon?.src ? <Img className="shrink-0" image={icon} /> : null}
|
|
49
|
+
{label ? (
|
|
50
|
+
<div className="@sm:h-full space-y-xs">
|
|
51
|
+
<Heading headingType="h6">{label}</Heading>
|
|
52
|
+
<Text
|
|
53
|
+
size="text-l"
|
|
54
|
+
color="text-secondary-text group-data-secondary:text-white/80"
|
|
55
|
+
font="font-light"
|
|
56
|
+
>
|
|
57
|
+
{description}
|
|
58
|
+
</Text>
|
|
59
|
+
<List className="text-secondary-text" listItemSize="S" items={items} isDotted={isDotted} />
|
|
57
60
|
</div>
|
|
58
61
|
) : null}
|
|
59
62
|
</div>
|
|
60
63
|
);
|
|
61
|
-
|
|
62
|
-
const renderDescription = (description: DescriptionDef | undefined) => {
|
|
63
|
-
const benefitType = description?.benefitType || null;
|
|
64
|
-
|
|
65
|
-
return description && benefitType ? (
|
|
66
|
-
<div className="mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80">
|
|
67
|
-
{benefitType === 'list'
|
|
68
|
-
? renderListBenefit(description as ListBenefitDef)
|
|
69
|
-
: renderTextBenefit(description as TextBenefitDef)}
|
|
70
|
-
</div>
|
|
71
|
-
) : null;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const renderTextBenefit = (description?: TextBenefitDef) =>
|
|
75
|
-
description?.name ? (
|
|
76
|
-
<Text
|
|
77
|
-
size="text-l"
|
|
78
|
-
color="text-secondary-text group-data-secondary:text-white/80"
|
|
79
|
-
font="font-light"
|
|
80
|
-
>
|
|
81
|
-
{description.name}
|
|
82
|
-
</Text>
|
|
83
|
-
) : null;
|
|
84
|
-
|
|
85
|
-
const renderListBenefit = (description?: ListBenefitDef) => {
|
|
86
|
-
const listStyleType = description?.bullets ? 'list-disc pl-3xl' : '';
|
|
87
|
-
|
|
88
|
-
return description?.items && description.items.length > 0 ? (
|
|
89
|
-
<ul
|
|
90
|
-
className={style(
|
|
91
|
-
listStyleType,
|
|
92
|
-
description.listItemSize ? TEXT_SIZE_MAP[description.listItemSize] : '',
|
|
93
|
-
)}
|
|
94
|
-
>
|
|
95
|
-
{description.items.map((_, i) => (
|
|
96
|
-
<li key={`benefitListItem-${i}`}>
|
|
97
|
-
<Text color="text-secondary-text group-data-secondary:text-white/80" font="font-light">
|
|
98
|
-
{_}
|
|
99
|
-
</Text>
|
|
100
|
-
</li>
|
|
101
|
-
))}
|
|
102
|
-
</ul>
|
|
103
|
-
) : null;
|
|
104
|
-
};
|
|
@@ -1,48 +1,18 @@
|
|
|
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
|
-
/**
|
|
8
|
-
* @title Пункты описания
|
|
9
|
-
*/
|
|
10
|
-
export type TextBenefitDef = {
|
|
11
|
-
/** @title Описание */
|
|
12
|
-
name?: string;
|
|
13
|
-
/** @default text */
|
|
14
|
-
benefitType?: 'text';
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @title Список
|
|
19
|
-
*/
|
|
20
|
-
export type ListBenefitDef = ListContent & {
|
|
21
|
-
/** @title Буллиты */
|
|
22
|
-
bullets?: boolean;
|
|
23
|
-
/** @default list */
|
|
24
|
-
benefitType?: 'list';
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** @title Не выбрано * */
|
|
28
|
-
export type EmptyDescription = {
|
|
29
|
-
/** @default "" */
|
|
30
|
-
benefitType: '';
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @title Вид контента
|
|
35
|
-
* @default { "benefitType": "" }
|
|
36
|
-
*/
|
|
37
|
-
export type DescriptionDef = EmptyDescription | TextBenefitDef | ListBenefitDef;
|
|
5
|
+
import { type ListProps } from '../../ui-kit/List/ListContent';
|
|
38
6
|
|
|
39
7
|
/**
|
|
40
8
|
* @title Преимущество
|
|
41
9
|
*/
|
|
42
10
|
export type BenefitBlockItemProps = LabelProps &
|
|
43
|
-
IconProps &
|
|
11
|
+
IconProps &
|
|
12
|
+
DescriptionProps &
|
|
13
|
+
ListProps & {
|
|
44
14
|
/** @title Описание */
|
|
45
|
-
description?:
|
|
15
|
+
description?: string;
|
|
46
16
|
iconBgVersion?: IconBgVersion;
|
|
47
17
|
};
|
|
48
18
|
|
|
@@ -29,7 +29,6 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
29
29
|
icon,
|
|
30
30
|
items = [],
|
|
31
31
|
isDotted,
|
|
32
|
-
listItemSize = 'S',
|
|
33
32
|
socialMedia = [],
|
|
34
33
|
target,
|
|
35
34
|
title,
|
|
@@ -73,7 +72,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
73
72
|
imageAlign="center"
|
|
74
73
|
>
|
|
75
74
|
<BenefitsList benefits={benefits} />
|
|
76
|
-
<List items={items}
|
|
75
|
+
<List items={items} isDotted={isDotted} listItemSize="S" />
|
|
77
76
|
{renderAdditionalDescription(additionalDescription, align)}
|
|
78
77
|
</BaseTile>
|
|
79
78
|
</LinkWrapper>
|
|
@@ -2,6 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
4
|
import { List } from '../../ui-kit/List/List';
|
|
5
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
5
6
|
import { joinList } from '../../utils/joinList';
|
|
6
7
|
import {
|
|
7
8
|
type InvestmentCell,
|
|
@@ -115,7 +116,7 @@ const renderInvestmentCell = (cell: InvestmentCell, i: number) => {
|
|
|
115
116
|
investmentCellSizeMap[cellSize]
|
|
116
117
|
} ${investmentCellColorMap[cellColor]} ${cellSize === 'XS' ? 'px-s' : 'px-5xl'}`}
|
|
117
118
|
>
|
|
118
|
-
<
|
|
119
|
+
<Text align="text-center">{cell.text}</Text>
|
|
119
120
|
</div>
|
|
120
121
|
) : null;
|
|
121
122
|
};
|
|
@@ -56,7 +56,6 @@ export default {
|
|
|
56
56
|
description="Описание"
|
|
57
57
|
image={image}
|
|
58
58
|
qr={qr}
|
|
59
|
-
headingType="h3"
|
|
60
59
|
items={listItems}
|
|
61
60
|
buttons={[
|
|
62
61
|
{
|
|
@@ -76,7 +75,6 @@ export default {
|
|
|
76
75
|
className="col-span-12"
|
|
77
76
|
title="Обновлённое мобильное приложение «Урожай»"
|
|
78
77
|
qr={qr}
|
|
79
|
-
headingType="h3"
|
|
80
78
|
items={listItems}
|
|
81
79
|
buttons={[buttonStore, buttonPlay]}
|
|
82
80
|
/>
|
|
@@ -88,7 +86,6 @@ export default {
|
|
|
88
86
|
className="col-span-12"
|
|
89
87
|
title="Обновлённое мобильное приложение «Урожай»"
|
|
90
88
|
qr={qr}
|
|
91
|
-
headingType="h3"
|
|
92
89
|
items={listItems}
|
|
93
90
|
buttons={[buttonStore, buttonPlay]}
|
|
94
91
|
/>
|
|
@@ -5,11 +5,10 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
5
5
|
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
6
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
7
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
|
+
import { List } from '../../ui-kit/List/List';
|
|
8
9
|
import { Text } from '../../ui-kit/Text/Text';
|
|
9
10
|
import { style } from '../../utils/style';
|
|
10
11
|
import { type MobileAppTileContent } from './MobileAppTileContent';
|
|
11
|
-
import { renderList } from './renderList';
|
|
12
|
-
|
|
13
12
|
export interface MobileAppTileProps extends MobileAppTileContent, UniBlockProps {}
|
|
14
13
|
|
|
15
14
|
export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
@@ -19,10 +18,8 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
19
18
|
align = 'text-left',
|
|
20
19
|
buttons = [],
|
|
21
20
|
description,
|
|
22
|
-
headingType = 'h4',
|
|
23
21
|
image,
|
|
24
22
|
items,
|
|
25
|
-
listItemSize,
|
|
26
23
|
qr,
|
|
27
24
|
additionalDescription = '',
|
|
28
25
|
title = 'Мобильное приложение',
|
|
@@ -45,13 +42,11 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
45
42
|
padding={padding}
|
|
46
43
|
defaultPadding="p-6xl"
|
|
47
44
|
title={
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/>
|
|
54
|
-
) : null
|
|
45
|
+
<Heading
|
|
46
|
+
headingType="h3"
|
|
47
|
+
title={title}
|
|
48
|
+
className={style('whitespace-pre-wrap', align)}
|
|
49
|
+
/>
|
|
55
50
|
}
|
|
56
51
|
rightImage={img}
|
|
57
52
|
buttons={renderButtonsSection(buttons, { className: 'flex-wrap' })}
|
|
@@ -68,7 +63,10 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
|
|
|
68
63
|
'flex-col items-start @xl:flex-row @xl:items-center',
|
|
69
64
|
)}
|
|
70
65
|
>
|
|
71
|
-
{
|
|
66
|
+
<List items={items} listItemSize="M" />
|
|
67
|
+
<Text size="text-m" font-weight="font-light" color="text-secondary-text">
|
|
68
|
+
{additionalDescription}
|
|
69
|
+
</Text>
|
|
72
70
|
{qr?.src ? (
|
|
73
71
|
<div
|
|
74
72
|
className={style(
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
type AdditionalDescriptionProps,
|
|
3
|
+
type DescriptionProps,
|
|
3
4
|
type HeadlineCommonProps,
|
|
5
|
+
type TitleProps,
|
|
4
6
|
} from '../../model/HeadlineType';
|
|
5
7
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
6
8
|
import { type Picture } from '../../model/Picture';
|
|
7
9
|
import { type ButtonsSectionContent } from '../../ui-kit/Button/ButtonsSectionContent';
|
|
8
|
-
import { type HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
|
|
9
10
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
10
11
|
import { type ListContent } from '../../ui-kit/List/ListContent';
|
|
11
12
|
|
|
@@ -15,7 +16,8 @@ import { type ListContent } from '../../ui-kit/List/ListContent';
|
|
|
15
16
|
export type MobileAppTileContent = UniBlockContent &
|
|
16
17
|
AdditionalDescriptionProps &
|
|
17
18
|
HeadlineCommonProps &
|
|
18
|
-
|
|
19
|
+
TitleProps &
|
|
20
|
+
DescriptionProps &
|
|
19
21
|
ButtonsSectionContent &
|
|
20
22
|
ListContent &
|
|
21
23
|
ImageContent & {
|
|
@@ -8,7 +8,6 @@ import { type ProductBlockContent } from './ProductBlockContent';
|
|
|
8
8
|
const title = 'Кредит до 5 000 000 Р\nбез залога и поручителей';
|
|
9
9
|
const description =
|
|
10
10
|
'Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт.';
|
|
11
|
-
const label = 'Самое лучшее предложение';
|
|
12
11
|
|
|
13
12
|
const image: Picture = {
|
|
14
13
|
src: 'money-1.png',
|
|
@@ -125,11 +124,6 @@ export default {
|
|
|
125
124
|
<ProductBlock className="col-span-12" {...props} items={items} />
|
|
126
125
|
</div>
|
|
127
126
|
),
|
|
128
|
-
'primary with label': (
|
|
129
|
-
<div className="container grid grid-cols-12">
|
|
130
|
-
<ProductBlock className="col-span-12" {...props} benefits={benefits} label={label} />
|
|
131
|
-
</div>
|
|
132
|
-
),
|
|
133
127
|
'primary with insurance': (
|
|
134
128
|
<div className="container grid grid-cols-12">
|
|
135
129
|
<ProductBlock
|
|
@@ -182,17 +176,6 @@ export default {
|
|
|
182
176
|
<ProductBlock className="col-span-12" {...props} items={items} version="secondary" />
|
|
183
177
|
</div>
|
|
184
178
|
),
|
|
185
|
-
'secondary with label': (
|
|
186
|
-
<div className="container grid grid-cols-12">
|
|
187
|
-
<ProductBlock
|
|
188
|
-
className="col-span-12"
|
|
189
|
-
{...props}
|
|
190
|
-
benefits={benefits}
|
|
191
|
-
label={label}
|
|
192
|
-
version="secondary"
|
|
193
|
-
/>
|
|
194
|
-
</div>
|
|
195
|
-
),
|
|
196
179
|
'image bottom': (
|
|
197
180
|
<div className="container grid grid-cols-12">
|
|
198
181
|
<ProductBlock
|
|
@@ -2,24 +2,17 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
|
|
4
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import { getBorderStyle } from '../../utils/getBorderStyle';
|
|
6
5
|
import { style } from '../../utils/style';
|
|
7
6
|
import { type ProductBlockContent } from './ProductBlockContent';
|
|
8
7
|
|
|
9
8
|
export interface ProductBlockProps extends UniBlockProps, ProductBlockContent {}
|
|
10
9
|
|
|
11
|
-
export const ProductBlock = JSX<ProductBlockProps>(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{...rest}
|
|
21
|
-
>
|
|
22
|
-
<BaseProductTile defaultPadding="p-6xl" padding={padding} className="grow h-full" {...rest} />
|
|
23
|
-
</BlockWrapper>
|
|
24
|
-
),
|
|
25
|
-
);
|
|
10
|
+
export const ProductBlock = JSX<ProductBlockProps>(({ className, padding, ...rest }) => (
|
|
11
|
+
<BlockWrapper
|
|
12
|
+
className={style('overflow-hidden flex flex-col gap-3xl box-border', className)}
|
|
13
|
+
padding="p-0"
|
|
14
|
+
{...rest}
|
|
15
|
+
>
|
|
16
|
+
<BaseProductTile defaultPadding="p-6xl" padding={padding} className="grow h-full" {...rest} />
|
|
17
|
+
</BlockWrapper>
|
|
18
|
+
));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"content": {
|
|
3
|
-
"__html": "<h1>Заголовок 1</h1>\n<h2>Заголовок 2</h2>\n<h3>Заголовок 3</h3>\n<h4>Заголовок 4</h4>\n<h5>Заголовок 5</h5>\n<h6>Заголовок 6</h6>\n<p>Параграф, в котором много текста и даже <a href=\"#\">ссылка</a></p>\n<p><strong>Жирный текст</strong>, <em>Наклонный текст</em></p>\n<ul>\n <li>Список с точками</li>\n <li>Список с точками</li>\n</ul>\n<ol>\n <li>Нумерованный список</li>\n <li>Нумерованный список</li>\n</ol>\n"
|
|
3
|
+
"__html": "<h1>Заголовок 1</h1>\n<h2>Заголовок 2</h2>\n<h3>Заголовок 3</h3>\n<h4>Заголовок 4</h4>\n<h5>Заголовок 5</h5>\n<h6>Заголовок 6</h6>\n<p>Параграф, в котором много текста и даже <a href=\"#\">ссылка</a></p>\n<p><strong>Жирный текст</strong>, <em>Наклонный текст</em></p>\n<ul>\n <li>Список с точками</li>\n <li>Список с точками</li>\n</ul>\n<ol>\n <li>Нумерованный список</li>\n <li>Нумерованный список</li>\n</ol>\n",
|
|
4
|
+
"richVersion": ""
|
|
4
5
|
}
|
|
5
6
|
}
|
|
@@ -3,6 +3,32 @@ import '../../setup-fixture';
|
|
|
3
3
|
import { RichTextBlock } from './RichTextBlock';
|
|
4
4
|
import { type RichTextBlockContent } from './RichTextBlockContent';
|
|
5
5
|
|
|
6
|
+
const RICH_TEXT_TABLE = `
|
|
7
|
+
<table>
|
|
8
|
+
<thead>
|
|
9
|
+
<tr><th><p>Полное наименование организации</p></th><th><p>Адрес (место нахождения)</p></th><th><p>Доля участия</p></th></tr>
|
|
10
|
+
</thead>
|
|
11
|
+
<tbody>
|
|
12
|
+
<tr>
|
|
13
|
+
<td><p><a href="rshb.ru">Акционерное общество «Национальное бюро кредитных историй»</p></a></td>
|
|
14
|
+
<td><p>Россия, г. Москва, Скатертный пер., д. 20, стр.1</p></td><td><p>0,5%</p></td>
|
|
15
|
+
</tr>
|
|
16
|
+
<tr>
|
|
17
|
+
<td><p><a href="rshb.ru">Акционерное общество\\n
|
|
18
|
+
«Негосударственный пенсионный фонд\\n
|
|
19
|
+
«Первый национальный пенсионный фонд»</p></td>
|
|
20
|
+
<td><p>Россия, г. Москва, ул. Большая Дмитровка,\\n
|
|
21
|
+
д. 23, стр.1</a></p></td>
|
|
22
|
+
<td><p>2,2%</p></td>
|
|
23
|
+
</tr>
|
|
24
|
+
<tr><td><p>ПАО «Полюс»</p></td><td><p>PLZL</p></td><td><p>0,5%</p></td></tr>
|
|
25
|
+
<tr><td><p>Полиметалл Интернэшнл плс</p></td><td><p>POLY</p></td><td><p>0,5%</p></td></tr>
|
|
26
|
+
<tr><td><p>ПАО «ГМК «Норильский никель»<br></p></td><td><p>GMKN<br></p></td><td><p>0,5%</p></td></tr>
|
|
27
|
+
<tr><td><p>ПАО «Лензолото»<br></p></td><td><p>LNZL<br></p></td><td><p>0,5%</p></td></tr>
|
|
28
|
+
</tbody>
|
|
29
|
+
</table>
|
|
30
|
+
`;
|
|
31
|
+
|
|
6
32
|
const HTML = `
|
|
7
33
|
<p class="h1">Заголовок 1</p>
|
|
8
34
|
<p class="h2">Заголовок 2</p>
|
|
@@ -13,29 +39,24 @@ const HTML = `
|
|
|
13
39
|
<p>Параграф, в котором много текста и даже <a href="#">ссылка</a></p>
|
|
14
40
|
<p><strong>Жирный текст</strong>, <em>Наклонный текст</em></p>
|
|
15
41
|
<ul>
|
|
16
|
-
<li
|
|
17
|
-
<li
|
|
42
|
+
<li>Приобретение горюче-смазочных материалов</li>
|
|
43
|
+
<li>Приобретение минеральных удобрений, средств защиты растений</li>
|
|
44
|
+
<li>Приобретение молодняка сельскохозяйственных животных</li>
|
|
18
45
|
</ul>
|
|
19
46
|
<ol>
|
|
20
47
|
<li>Нумерованный список</li>
|
|
21
48
|
<li>Нумерованный список</li>
|
|
22
49
|
</ol>
|
|
50
|
+
${RICH_TEXT_TABLE}
|
|
23
51
|
`;
|
|
24
52
|
|
|
25
|
-
export const
|
|
26
|
-
__html:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
'<tr><td><p><a href="rshb.ru">Акционерное общество\n' +
|
|
33
|
-
'«Негосударственный пенсионный фонд\n' +
|
|
34
|
-
'«Первый национальный пенсионный фонд»</p></td><td><p>Россия, г. Москва, ул. Большая Дмитровка,\n' +
|
|
35
|
-
'д. 23, стр.1</a></p></td><td><p>2,2%</p></td></tr>' +
|
|
36
|
-
'</tbody>' +
|
|
37
|
-
'</table>',
|
|
38
|
-
richVersion: 'horizontal-separator',
|
|
53
|
+
export const RICH_TEXT_SECONDARY: RichTextBlockContent = {
|
|
54
|
+
__html: HTML,
|
|
55
|
+
richVersion: 'secondary',
|
|
56
|
+
};
|
|
57
|
+
export const RICH_CARD: RichTextBlockContent = {
|
|
58
|
+
padding: 'p-xl',
|
|
59
|
+
__html: HTML,
|
|
39
60
|
};
|
|
40
61
|
|
|
41
62
|
export default {
|
|
@@ -44,9 +65,14 @@ export default {
|
|
|
44
65
|
<RichTextBlock className="col-span-12" __html={HTML} />
|
|
45
66
|
</div>
|
|
46
67
|
),
|
|
47
|
-
|
|
68
|
+
padding: (
|
|
69
|
+
<div className="container grid grid-cols-12">
|
|
70
|
+
<RichTextBlock className="col-span-12" __html={HTML} padding="p-xl" />
|
|
71
|
+
</div>
|
|
72
|
+
),
|
|
73
|
+
secondary: (
|
|
48
74
|
<div className="container grid grid-cols-12">
|
|
49
|
-
<RichTextBlock className="col-span-12" {
|
|
75
|
+
<RichTextBlock className="col-span-12" __html={HTML} richVersion="secondary" />
|
|
50
76
|
</div>
|
|
51
77
|
),
|
|
52
78
|
};
|
|
@@ -3,6 +3,32 @@ import '../../setup-fixture';
|
|
|
3
3
|
import { RichTextBlock } from './RichTextBlock';
|
|
4
4
|
import { type RichTextBlockContent } from './RichTextBlockContent';
|
|
5
5
|
|
|
6
|
+
const RICH_TEXT_TABLE = `
|
|
7
|
+
<table>
|
|
8
|
+
<thead>
|
|
9
|
+
<tr><th><p>Полное наименование организации</p></th><th><p>Адрес (место нахождения)</p></th><th><p>Доля участия</p></th></tr>
|
|
10
|
+
</thead>
|
|
11
|
+
<tbody>
|
|
12
|
+
<tr>
|
|
13
|
+
<td><p><a href="rshb.ru">Акционерное общество «Национальное бюро кредитных историй»</p></a></td>
|
|
14
|
+
<td><p>Россия, г. Москва, Скатертный пер., д. 20, стр.1</p></td><td><p>0,5%</p></td>
|
|
15
|
+
</tr>
|
|
16
|
+
<tr>
|
|
17
|
+
<td><p><a href="rshb.ru">Акционерное общество\\n
|
|
18
|
+
«Негосударственный пенсионный фонд\\n
|
|
19
|
+
«Первый национальный пенсионный фонд»</p></td>
|
|
20
|
+
<td><p>Россия, г. Москва, ул. Большая Дмитровка,\\n
|
|
21
|
+
д. 23, стр.1</a></p></td>
|
|
22
|
+
<td><p>2,2%</p></td>
|
|
23
|
+
</tr>
|
|
24
|
+
<tr><td><p>ПАО «Полюс»</p></td><td><p>PLZL</p></td><td><p>0,5%</p></td></tr>
|
|
25
|
+
<tr><td><p>Полиметалл Интернэшнл плс</p></td><td><p>POLY</p></td><td><p>0,5%</p></td></tr>
|
|
26
|
+
<tr><td><p>ПАО «ГМК «Норильский никель»<br></p></td><td><p>GMKN<br></p></td><td><p>0,5%</p></td></tr>
|
|
27
|
+
<tr><td><p>ПАО «Лензолото»<br></p></td><td><p>LNZL<br></p></td><td><p>0,5%</p></td></tr>
|
|
28
|
+
</tbody>
|
|
29
|
+
</table>
|
|
30
|
+
`;
|
|
31
|
+
|
|
6
32
|
const HTML = `
|
|
7
33
|
<p class="h1">Заголовок 1</p>
|
|
8
34
|
<p class="h2">Заголовок 2</p>
|
|
@@ -13,44 +39,24 @@ const HTML = `
|
|
|
13
39
|
<p>Параграф, в котором много текста и даже <a href="#">ссылка</a></p>
|
|
14
40
|
<p><strong>Жирный текст</strong>, <em>Наклонный текст</em></p>
|
|
15
41
|
<ul>
|
|
16
|
-
<li
|
|
17
|
-
<li
|
|
42
|
+
<li>Приобретение горюче-смазочных материалов</li>
|
|
43
|
+
<li>Приобретение минеральных удобрений, средств защиты растений</li>
|
|
44
|
+
<li>Приобретение молодняка сельскохозяйственных животных</li>
|
|
18
45
|
</ul>
|
|
19
46
|
<ol>
|
|
20
47
|
<li>Нумерованный список</li>
|
|
21
48
|
<li>Нумерованный список</li>
|
|
22
49
|
</ol>
|
|
50
|
+
${RICH_TEXT_TABLE}
|
|
23
51
|
`;
|
|
24
52
|
|
|
25
|
-
export const
|
|
26
|
-
__html:
|
|
27
|
-
|
|
28
|
-
'<thead><tr><th><p>Полное наименование организации</p></th><th><p>Адрес (место нахождения)</p></th><th><p>Доля участия</p></th></tr></thead>' +
|
|
29
|
-
'<tbody>' +
|
|
30
|
-
'<tr><td><p><a href="rshb.ru">Акционерное общество «Национальное бюро кредитных историй»</p></a></td>' +
|
|
31
|
-
'<td><p>Россия, г. Москва, Скатертный пер., д. 20, стр.1</p></td><td><p>0,5%</p></td></tr>' +
|
|
32
|
-
'<tr><td><p><a href="rshb.ru">Акционерное общество\n' +
|
|
33
|
-
'«Негосударственный пенсионный фонд\n' +
|
|
34
|
-
'«Первый национальный пенсионный фонд»</p></td><td><p>Россия, г. Москва, ул. Большая Дмитровка,\n' +
|
|
35
|
-
'д. 23, стр.1</a></p></td><td><p>2,2%</p></td></tr>' +
|
|
36
|
-
'</tbody>' +
|
|
37
|
-
'</table>',
|
|
38
|
-
richVersion: 'horizontal-separator',
|
|
53
|
+
export const RICH_TEXT_SECONDARY: RichTextBlockContent = {
|
|
54
|
+
__html: HTML,
|
|
55
|
+
richVersion: 'secondary',
|
|
39
56
|
};
|
|
40
57
|
export const RICH_CARD: RichTextBlockContent = {
|
|
41
58
|
padding: 'p-xl',
|
|
42
|
-
__html:
|
|
43
|
-
'<h4>Заголовок 4</h4><p><br></p>' +
|
|
44
|
-
'<table>' +
|
|
45
|
-
'<thead><tr><th><p>Эмитент</p></th><th><p>Код</p></th></tr></thead>' +
|
|
46
|
-
'<tbody>' +
|
|
47
|
-
'<tr><td><p>ПАО «Полюс»</p></td><td><p>PLZL</p></td></tr>' +
|
|
48
|
-
'<tr><td><p>Полиметалл Интернэшнл плс</p></td><td><p>POLY</p></td></tr>' +
|
|
49
|
-
'<tr><td><p>ПАО «ГМК «Норильский никель»<br></p></td><td><p>GMKN<br></p></td></tr>' +
|
|
50
|
-
'<tr><td><p>ПАО «Лензолото»<br></p></td><td><p>LNZL<br></p></td></tr>' +
|
|
51
|
-
'</tbody>' +
|
|
52
|
-
'</table>',
|
|
53
|
-
richVersion: 'striped',
|
|
59
|
+
__html: HTML,
|
|
54
60
|
};
|
|
55
61
|
|
|
56
62
|
export default {
|
|
@@ -59,9 +65,14 @@ export default {
|
|
|
59
65
|
<RichTextBlock className="col-span-12" __html={HTML} />
|
|
60
66
|
</div>
|
|
61
67
|
),
|
|
62
|
-
|
|
68
|
+
padding: (
|
|
69
|
+
<div className="container grid grid-cols-12">
|
|
70
|
+
<RichTextBlock className="col-span-12" __html={HTML} padding="p-xl" />
|
|
71
|
+
</div>
|
|
72
|
+
),
|
|
73
|
+
secondary: (
|
|
63
74
|
<div className="container grid grid-cols-12">
|
|
64
|
-
<RichTextBlock className="col-span-12" {
|
|
75
|
+
<RichTextBlock className="col-span-12" __html={HTML} richVersion="secondary" />
|
|
65
76
|
</div>
|
|
66
77
|
),
|
|
67
78
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { Img } from '../../ui-kit/Img/Img';
|
|
3
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
4
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
3
5
|
import { type Tariff } from './useSafeBoxes';
|
|
4
6
|
|
|
5
7
|
export interface SafeDepositRentalTotalProps {
|
|
@@ -17,14 +19,18 @@ export const SafeDepositRentalTotal = JSX<SafeDepositRentalTotalProps>(({ days,
|
|
|
17
19
|
{renderTotal('Аренда за', days)}
|
|
18
20
|
{renderTotal('Цена', price + ' ₽')}
|
|
19
21
|
</div>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
<div className="@xl:hidden order-3 mb-xs">
|
|
23
|
+
<Paragraph size="text-s" font="font-light" color="text-secondary-text">
|
|
24
|
+
{imageDescription}
|
|
25
|
+
</Paragraph>
|
|
26
|
+
</div>
|
|
23
27
|
<div className="flex flex-col items-center gap-s order-3 @xl:order-none mb-xl @xl:mb-0 bg-primary-main py-s @xl:p-3xl text-center">
|
|
24
28
|
<Img image={{ icon: 'PackA4Icon' }} className="@xl:h-60" />
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
<div className="hidden @xl:inline opacity-80 whitespace-pre-line">
|
|
30
|
+
<Paragraph size="text-s" font="font-light" color="text-white">
|
|
31
|
+
{imageDescription}
|
|
32
|
+
</Paragraph>
|
|
33
|
+
</div>
|
|
28
34
|
</div>
|
|
29
35
|
</div>
|
|
30
36
|
);
|
|
@@ -33,7 +39,9 @@ export const SafeDepositRentalTotal = JSX<SafeDepositRentalTotalProps>(({ days,
|
|
|
33
39
|
const renderTotal = (label: string, total: string | number) => {
|
|
34
40
|
return (
|
|
35
41
|
<div className="flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start">
|
|
36
|
-
<
|
|
42
|
+
<Text size="text-l" font="font-light" color="text-secondary-text">
|
|
43
|
+
{label}
|
|
44
|
+
</Text>
|
|
37
45
|
<span className="text-l @xl:text-h3 text-primary-text">{total}</span>
|
|
38
46
|
</div>
|
|
39
47
|
);
|