@redneckz/wildless-cms-uni-blocks 0.6.31 → 0.6.33
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.6.32.js +26 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +152 -110
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselLinks/CarouselLinks.d.ts +5 -0
- package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
- package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
- package/bundle/components/StepsBlock/renderStepContent.d.ts +1 -1
- package/bundle/icons/IconName.d.ts +6 -4
- package/bundle/model/HeadlineType.d.ts +2 -2
- package/bundle/ui-kit/LinkButton/LinkButton.d.ts +5 -0
- package/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/bundle/ui-kit/Text/Text.d.ts +34 -0
- package/bundle/utils/sliceArray.d.ts +1 -0
- package/cosmos-static/icons/ArrowRightIcon.svg +1 -0
- package/dist/components/Accordion/Accordion.js +2 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +2 -1
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.js +2 -1
- package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/dist/components/AccordionItem/AccordionItem.mobile.js +2 -1
- package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.d.ts +5 -0
- package/dist/components/CarouselLinks/CarouselLinks.js +20 -0
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -0
- package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
- package/dist/components/CarouselLinks/CarouselLinksContent.js +2 -0
- package/dist/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
- package/dist/components/ContactsBlock/ContactsBlock.js +6 -10
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
- package/dist/components/Headline/Headline.js +1 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/constants.js +6 -0
- package/dist/components/Headline/constants.js.map +1 -1
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.js +1 -2
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/StepsBlock/renderStepContent.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/Tile/Tile.js +2 -2
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/icons/IconName.d.ts +6 -4
- package/dist/icons/IconName.js +4 -2
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/HeadlineType.d.ts +2 -2
- package/dist/ui-kit/LinkButton/LinkButton.d.ts +5 -0
- package/dist/ui-kit/LinkButton/LinkButton.js +16 -0
- package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -0
- package/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/dist/ui-kit/Paragraph/Paragraph.js +10 -0
- package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/dist/ui-kit/Text/Text.d.ts +34 -0
- package/dist/ui-kit/Text/Text.js +10 -0
- package/dist/ui-kit/Text/Text.js.map +1 -0
- package/dist/utils/sliceArray.d.ts +1 -0
- package/dist/utils/sliceArray.js +15 -0
- package/dist/utils/sliceArray.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.js +2 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +2 -1
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItem.js +2 -1
- package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.js +2 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.d.ts +5 -0
- package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +5 -0
- package/lib/components/CarouselLinks/CarouselLinks.js +18 -0
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -0
- package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
- package/lib/components/CarouselLinks/CarouselLinksContent.js +2 -0
- package/lib/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
- package/lib/components/ContactsBlock/ContactsBlock.js +6 -10
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
- package/lib/components/Headline/Headline.js +1 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/constants.js +6 -0
- package/lib/components/Headline/constants.js.map +1 -1
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.js +1 -2
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/StepsBlock/renderStepContent.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.js +2 -2
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/icons/IconName.d.ts +6 -4
- package/lib/icons/IconName.js +4 -2
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/HeadlineType.d.ts +2 -2
- package/lib/ui-kit/LinkButton/LinkButton.d.ts +5 -0
- package/lib/ui-kit/LinkButton/LinkButton.fixture.d.ts +5 -0
- package/lib/ui-kit/LinkButton/LinkButton.js +14 -0
- package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -0
- package/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/lib/ui-kit/Paragraph/Paragraph.js +8 -0
- package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/lib/ui-kit/Text/Text.d.ts +34 -0
- package/lib/ui-kit/Text/Text.js +8 -0
- package/lib/ui-kit/Text/Text.js.map +1 -0
- package/lib/utils/sliceArray.d.ts +1 -0
- package/lib/utils/sliceArray.js +12 -0
- package/lib/utils/sliceArray.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +16 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +5 -0
- package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
- package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
- package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +1 -1
- package/mobile/bundle/icons/IconName.d.ts +6 -4
- package/mobile/bundle/model/HeadlineType.d.ts +2 -2
- package/mobile/bundle/ui-kit/LinkButton/LinkButton.d.ts +5 -0
- package/mobile/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/mobile/bundle/ui-kit/Text/Text.d.ts +34 -0
- package/mobile/bundle/utils/sliceArray.d.ts +1 -0
- package/mobile/dist/components/Accordion/Accordion.js +2 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/AccordionItem/AccordionItem.js +2 -1
- package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +5 -0
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +20 -0
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -0
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js +2 -0
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +6 -10
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
- package/mobile/dist/components/Headline/constants.js +6 -0
- package/mobile/dist/components/Headline/constants.js.map +1 -1
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -2
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +2 -2
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +6 -4
- package/mobile/dist/icons/IconName.js +4 -2
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/HeadlineType.d.ts +2 -2
- package/mobile/dist/ui-kit/LinkButton/LinkButton.d.ts +5 -0
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js +16 -0
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -0
- package/mobile/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js +10 -0
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/mobile/dist/ui-kit/Text/Text.d.ts +34 -0
- package/mobile/dist/ui-kit/Text/Text.js +10 -0
- package/mobile/dist/ui-kit/Text/Text.js.map +1 -0
- package/mobile/dist/utils/sliceArray.d.ts +1 -0
- package/mobile/dist/utils/sliceArray.js +15 -0
- package/mobile/dist/utils/sliceArray.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js +2 -1
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/AccordionItem/AccordionItem.js +2 -1
- package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +5 -0
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +18 -0
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -0
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js +2 -0
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +6 -10
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
- package/mobile/lib/components/Headline/constants.js +6 -0
- package/mobile/lib/components/Headline/constants.js.map +1 -1
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -2
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +2 -2
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +6 -4
- package/mobile/lib/icons/IconName.js +4 -2
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/HeadlineType.d.ts +2 -2
- package/mobile/lib/ui-kit/LinkButton/LinkButton.d.ts +5 -0
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js +14 -0
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -0
- package/mobile/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js +8 -0
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
- package/mobile/lib/ui-kit/Text/Text.d.ts +34 -0
- package/mobile/lib/ui-kit/Text/Text.js +8 -0
- package/mobile/lib/ui-kit/Text/Text.js.map +1 -0
- package/mobile/lib/utils/sliceArray.d.ts +1 -0
- package/mobile/lib/utils/sliceArray.js +12 -0
- package/mobile/lib/utils/sliceArray.js.map +1 -0
- package/mobile/src/components/Accordion/Accordion.tsx +9 -5
- package/mobile/src/components/AccordionItem/AccordionItem.tsx +7 -4
- package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +55 -0
- package/mobile/src/components/CarouselLinks/CarouselLinks.json +8 -0
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +67 -0
- package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +10 -0
- package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +22 -18
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +29 -40
- package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +12 -22
- package/mobile/src/components/Headline/constants.ts +6 -0
- package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -2
- package/mobile/src/components/StepsBlock/renderStepContent.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/mobile/src/components/Tile/Tile.tsx +4 -2
- package/mobile/src/icons/ArrowLeftIcon.svg +1 -1
- package/mobile/src/icons/ArrowRightIcon.svg +1 -0
- package/mobile/src/icons/ArrowUpIcon.svg +1 -1
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/model/HeadlineType.ts +2 -2
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +42 -0
- package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
- package/mobile/src/ui-kit/Text/Text.tsx +79 -0
- package/mobile/src/utils/sliceArray.ts +15 -0
- package/package.json +2 -2
- package/src/components/Accordion/Accordion.mobile.tsx +9 -5
- package/src/components/Accordion/Accordion.tsx +7 -2
- package/src/components/AccordionItem/AccordionItem.mobile.tsx +7 -4
- package/src/components/AccordionItem/AccordionItem.tsx +4 -1
- package/src/components/Blocks.ts +2 -0
- package/src/components/CarouselLinks/CarouselLinks.example.json +55 -0
- package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +28 -0
- package/src/components/CarouselLinks/CarouselLinks.json +8 -0
- package/src/components/CarouselLinks/CarouselLinks.tsx +67 -0
- package/src/components/CarouselLinks/CarouselLinksContent.ts +10 -0
- package/src/components/ContactsBlock/ContactsBlock.example.json +22 -18
- package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +21 -15
- package/src/components/ContactsBlock/ContactsBlock.tsx +29 -40
- package/src/components/ContactsBlock/ContactsBlockContent.ts +12 -22
- package/src/components/Headline/Headline.tsx +3 -5
- package/src/components/Headline/constants.ts +6 -0
- package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
- package/src/components/Recommendation/RecommendationCard.tsx +1 -2
- package/src/components/StepsBlock/renderStepContent.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +1 -1
- package/src/components/Tile/Tile.tsx +4 -2
- package/src/icons/ArrowLeftIcon.svg +1 -1
- package/src/icons/ArrowRightIcon.svg +1 -0
- package/src/icons/ArrowUpIcon.svg +1 -1
- package/src/icons/IconName.ts +6 -327
- package/src/model/HeadlineType.ts +2 -2
- package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +9 -0
- package/src/ui-kit/LinkButton/LinkButton.tsx +42 -0
- package/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
- package/src/ui-kit/Text/Text.tsx +79 -0
- package/src/utils/sliceArray.ts +15 -0
- package/bundle/ui-kit/Description/Description.d.ts +0 -5
- package/dist/ui-kit/Description/Description.d.ts +0 -5
- package/dist/ui-kit/Description/Description.js +0 -9
- package/dist/ui-kit/Description/Description.js.map +0 -1
- package/lib/ui-kit/Description/Description.d.ts +0 -5
- package/lib/ui-kit/Description/Description.js +0 -7
- package/lib/ui-kit/Description/Description.js.map +0 -1
- package/mobile/bundle/ui-kit/Description/Description.d.ts +0 -5
- package/mobile/dist/ui-kit/Description/Description.d.ts +0 -5
- package/mobile/dist/ui-kit/Description/Description.js +0 -9
- package/mobile/dist/ui-kit/Description/Description.js.map +0 -1
- package/mobile/lib/ui-kit/Description/Description.d.ts +0 -5
- package/mobile/lib/ui-kit/Description/Description.js +0 -7
- package/mobile/lib/ui-kit/Description/Description.js.map +0 -1
- package/mobile/src/ui-kit/Description/Description.tsx +0 -12
- package/src/ui-kit/Description/Description.tsx +0 -12
|
@@ -9,20 +9,22 @@ const button: ButtonProps = {
|
|
|
9
9
|
version: 'secondary',
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
const info = [
|
|
13
|
-
{
|
|
14
|
-
title: 'Телеграм-канал РСХБ Инвестиции',
|
|
15
|
-
description:
|
|
16
|
-
'Всегда вовремя: главные новости, инвестиционные идеи, анонсы размещения облигаций',
|
|
17
|
-
button,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
title: 'Подписка на аналитику',
|
|
21
|
-
description: 'E-mail рассылка: главное за неделю',
|
|
22
|
-
button,
|
|
23
|
-
},
|
|
24
|
-
];
|
|
25
12
|
const contacts = [
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
title: 'Телеграм-канал РСХБ Инвестиции',
|
|
16
|
+
description:
|
|
17
|
+
'Всегда вовремя: главные новости, инвестиционные идеи, анонсы размещения облигаций',
|
|
18
|
+
button,
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
{
|
|
23
|
+
title: 'Подписка на аналитику',
|
|
24
|
+
description: 'E-mail рассылка: главное за неделю',
|
|
25
|
+
button,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
26
28
|
[
|
|
27
29
|
{
|
|
28
30
|
title: '8 (800) 100-40-40',
|
|
@@ -49,8 +51,12 @@ const contacts = [
|
|
|
49
51
|
];
|
|
50
52
|
|
|
51
53
|
export default {
|
|
52
|
-
secondary: <ContactsBlock className="col-span-12"
|
|
54
|
+
secondary: <ContactsBlock className="col-span-12" contacts={contacts} />,
|
|
53
55
|
primary: (
|
|
54
|
-
<ContactsBlock
|
|
56
|
+
<ContactsBlock
|
|
57
|
+
className="col-span-12"
|
|
58
|
+
version="primary"
|
|
59
|
+
contacts={contacts}
|
|
60
|
+
/>
|
|
55
61
|
),
|
|
56
62
|
};
|
|
@@ -1,68 +1,57 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
+
import { VersionStyleMap } from '../../model/BlockVersion';
|
|
2
4
|
import { UniBlockProps } from '../../model/JSXBlock';
|
|
3
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
6
|
import { Button } from '../../ui-kit/Button/Button';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import type {
|
|
7
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
8
|
+
import { Headline } from '../Headline/Headline';
|
|
9
|
+
import type { ContactBlockProps, ContactsBlockContent } from './ContactsBlockContent';
|
|
8
10
|
|
|
9
11
|
export interface ContactsBlockProps extends ContactsBlockContent, UniBlockProps {}
|
|
10
12
|
|
|
11
13
|
interface RenderContactsColumnProps {
|
|
12
|
-
|
|
14
|
+
version?: BlockVersion;
|
|
15
|
+
column?: ContactBlockProps[];
|
|
13
16
|
index?: number;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
|
-
const contactsBlockStyleMap = {
|
|
17
|
-
primary: 'bg-white',
|
|
18
|
-
secondary: 'bg-primary-main text-white',
|
|
19
|
-
};
|
|
20
|
-
|
|
21
19
|
export const ContactsBlock = JSX<ContactsBlockProps>(
|
|
22
20
|
({ className = '', contacts, info, version = 'secondary', ...rest }) => {
|
|
23
21
|
return (
|
|
24
|
-
<BlockWrapper
|
|
25
|
-
|
|
26
|
-
{
|
|
27
|
-
>
|
|
28
|
-
{info ? renderInfo(info) : null}
|
|
29
|
-
{contacts ? renderContacts(contacts) : null}
|
|
22
|
+
<BlockWrapper className={`${VersionStyleMap[version]} flex p-[50px] ${className}`} {...rest}>
|
|
23
|
+
{info?.length ? renderBlocks(info, version) : null}
|
|
24
|
+
{contacts?.length ? renderBlocks(contacts, version) : null}
|
|
30
25
|
</BlockWrapper>
|
|
31
26
|
);
|
|
32
27
|
},
|
|
33
28
|
);
|
|
34
29
|
|
|
35
|
-
const
|
|
36
|
-
<div className="flex grow basis-0 pr-11">
|
|
37
|
-
{info.map(({ title, description, button }, index) => (
|
|
38
|
-
<div className="grow basis-0 pr-11 last:pr-0" key={String(index)}>
|
|
39
|
-
<Heading as="h5" headingType="h5" title={title} className="pb-2.5" />
|
|
40
|
-
<Description className="text-l-light pb-6" description={description} />
|
|
41
|
-
{button ? <Button {...button} /> : null}
|
|
42
|
-
</div>
|
|
43
|
-
))}
|
|
44
|
-
</div>
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
const renderContacts = (contacts: ContactItemProps[][]) => (
|
|
30
|
+
const renderBlocks = (info: ContactBlockProps[][], version?: BlockVersion) => (
|
|
48
31
|
<div className="flex grow basis-0">
|
|
49
|
-
{
|
|
32
|
+
{info.map((column, index) => renderBlocksColumn({ column, index, version }))}
|
|
50
33
|
</div>
|
|
51
34
|
);
|
|
52
35
|
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
<div className="flex flex-col grow basis-0 pr-11" key={String(index)}>
|
|
56
|
-
{
|
|
57
|
-
<div className="
|
|
58
|
-
<
|
|
59
|
-
|
|
36
|
+
const renderBlocksColumn = ({ column, index, version }: RenderContactsColumnProps) =>
|
|
37
|
+
column ? (
|
|
38
|
+
<div className="flex flex-col grow basis-0 pr-11 last:pr-0" key={`col-${String(index)}`}>
|
|
39
|
+
{column.map(({ title = '', description, additionalDescription, button }, key) => (
|
|
40
|
+
<div className="mt-6 first:mt-0" key={String(key)}>
|
|
41
|
+
<Headline
|
|
42
|
+
className="!p-0"
|
|
43
|
+
title={title}
|
|
44
|
+
description={description}
|
|
45
|
+
headlineVersion="XS"
|
|
46
|
+
align="left"
|
|
47
|
+
bgColorHeadline={version}
|
|
48
|
+
/>
|
|
60
49
|
{additionalDescription ? (
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/>
|
|
50
|
+
<div className="mt-1.5 opacity-80">
|
|
51
|
+
<Paragraph size="text-m-light">{additionalDescription}</Paragraph>
|
|
52
|
+
</div>
|
|
65
53
|
) : null}
|
|
54
|
+
{button ? <Button className="mt-6" {...button} /> : null}
|
|
66
55
|
</div>
|
|
67
56
|
))}
|
|
68
57
|
</div>
|
|
@@ -2,6 +2,16 @@ import type { BlockVersion } from '../../model/BlockVersion';
|
|
|
2
2
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
3
|
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @title Элемент плитки
|
|
7
|
+
*/
|
|
8
|
+
export interface ContactBlockProps extends HeadlineCommonProps {
|
|
9
|
+
/** @title Дополнительное описание */
|
|
10
|
+
additionalDescription?: string;
|
|
11
|
+
/** @title Кнопка */
|
|
12
|
+
button?: ButtonProps;
|
|
13
|
+
}
|
|
14
|
+
|
|
5
15
|
/**
|
|
6
16
|
* @title Контакты
|
|
7
17
|
*/
|
|
@@ -10,31 +20,11 @@ export interface ContactsBlockContent {
|
|
|
10
20
|
* @title Данные
|
|
11
21
|
* @maxItems 2
|
|
12
22
|
* */
|
|
13
|
-
info?:
|
|
23
|
+
info?: ContactBlockProps[][];
|
|
14
24
|
/**
|
|
15
25
|
* @title Контакты
|
|
16
26
|
* @maxItems 2
|
|
17
27
|
* */
|
|
18
|
-
contacts?:
|
|
28
|
+
contacts?: ContactBlockProps[][];
|
|
19
29
|
version?: BlockVersion;
|
|
20
30
|
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @title Элемент плитки
|
|
24
|
-
*/
|
|
25
|
-
export interface ContactItemProps {
|
|
26
|
-
/** @title Дополнительное описание */
|
|
27
|
-
additionalDescription?: string;
|
|
28
|
-
/** @title Описание */
|
|
29
|
-
description?: string;
|
|
30
|
-
/** @title Заголовок */
|
|
31
|
-
title?: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @title Элемент плитки
|
|
36
|
-
*/
|
|
37
|
-
export interface InfoItemProps extends HeadlineCommonProps {
|
|
38
|
-
/** @title Кнопка */
|
|
39
|
-
button?: ButtonProps;
|
|
40
|
-
}
|
|
@@ -2,7 +2,6 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { AlignText } from '../../model/AlignText';
|
|
3
3
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import { Description } from '../../ui-kit/Description/Description';
|
|
6
5
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
7
6
|
import { HEADLINE_BLOCK_STYLE_MAPS, HEADLINE_VERSION } from './constants';
|
|
8
7
|
import type { HeadlineContent } from './HeadlineContent';
|
|
@@ -37,10 +36,9 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
37
36
|
/>
|
|
38
37
|
) : null}
|
|
39
38
|
{description ? (
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/>
|
|
39
|
+
<p className={`${SIZE_MAPS.descriptionFont} ${STYLE_MAPS.text} ${AlignText[align]}`}>
|
|
40
|
+
{description}
|
|
41
|
+
</p>
|
|
44
42
|
) : null}
|
|
45
43
|
</BlockWrapper>
|
|
46
44
|
);
|
|
@@ -64,6 +64,12 @@ export const HEADLINE_VERSION: Record<HeadlineVersion, VersionStyleType> = {
|
|
|
64
64
|
headingType: 'h4',
|
|
65
65
|
as: 'h4',
|
|
66
66
|
},
|
|
67
|
+
XS: {
|
|
68
|
+
descriptionFont: 'text-l-light',
|
|
69
|
+
gap: 'gap-2',
|
|
70
|
+
headingType: 'h5',
|
|
71
|
+
as: 'h5',
|
|
72
|
+
},
|
|
67
73
|
};
|
|
68
74
|
|
|
69
75
|
export const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string> = {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
3
|
import { BorderVersionStyleMap } from '../../model/BorderVersion';
|
|
4
|
-
import { Description } from '../../ui-kit/Description/Description';
|
|
5
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
6
|
import { BaseTile } from '../BaseTile/BaseTile';
|
|
@@ -51,9 +50,9 @@ export const InvestmentGalleryCard = JSX<RecommendationCardProps>(
|
|
|
51
50
|
<BaseTile className="flex justify-between" title={tileTitle} image={tileImage}>
|
|
52
51
|
<div className="flex flex-col justify-between">
|
|
53
52
|
<div className="flex itens-center justify-between mb-4">
|
|
54
|
-
{description ? <
|
|
53
|
+
{description ? <span className="text-h6">{description}</span> : null}
|
|
55
54
|
{additionalDescription ? (
|
|
56
|
-
<
|
|
55
|
+
<span className="text-m-light text-secondary-text"> {additionalDescription} </span>
|
|
57
56
|
) : null}
|
|
58
57
|
</div>
|
|
59
58
|
{cardList?.length ? (
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
3
|
import { renderButton } from '../../ui-kit/Button/ButtonSection';
|
|
4
|
-
import { Description } from '../../ui-kit/Description/Description';
|
|
5
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
6
|
import { List } from '../../ui-kit/List/List';
|
|
@@ -30,7 +29,7 @@ export const RecommendationCard = JSX<RecommendationCardProps>(
|
|
|
30
29
|
>
|
|
31
30
|
<BaseTile className="flex justify-between" title={tileTitle} image={tileImage}>
|
|
32
31
|
<div className="h-full flex flex-col justify-between">
|
|
33
|
-
{description ? <
|
|
32
|
+
{description ? <span className="mb-2">{description}</span> : null}
|
|
34
33
|
{items?.length ? (
|
|
35
34
|
<List
|
|
36
35
|
className="text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]"
|
|
@@ -13,7 +13,7 @@ export const renderStepContent =
|
|
|
13
13
|
}: {
|
|
14
14
|
styleMap: StyleType;
|
|
15
15
|
isMainButton: boolean;
|
|
16
|
-
version
|
|
16
|
+
version?: BlockVersion;
|
|
17
17
|
}) =>
|
|
18
18
|
(step: Step, i: number, { length }: { length: number }): VNode => {
|
|
19
19
|
const { label, description, button, items, isDotted } = step;
|
|
@@ -45,7 +45,7 @@ export const TariffsTable = JSX<TariffsTableProps>(
|
|
|
45
45
|
);
|
|
46
46
|
|
|
47
47
|
const getColData = (columns: TariffsTableColumn[] | undefined) =>
|
|
48
|
-
columns?.[0]
|
|
48
|
+
columns?.[0]?.data ? columns[0].data : [];
|
|
49
49
|
|
|
50
50
|
const getTiles = (rowHeaders: TariffsTableRowHeader[] | undefined, colData: CellDef[][]) =>
|
|
51
51
|
rowHeaders?.map((header, i) => ({
|
|
@@ -3,11 +3,11 @@ import { VersionStyleMap } from '../../model/BlockVersion';
|
|
|
3
3
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
5
|
import { ButtonSection } from '../../ui-kit/Button/ButtonSection';
|
|
6
|
-
import { Description } from '../../ui-kit/Description/Description';
|
|
7
6
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
8
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
9
8
|
import { List } from '../../ui-kit/List/List';
|
|
10
9
|
import type { ListProps } from '../../ui-kit/List/ListProps';
|
|
10
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
11
11
|
import { Tags } from '../../ui-kit/Tags/Tags';
|
|
12
12
|
import { BaseTile } from '../BaseTile/BaseTile';
|
|
13
13
|
import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
|
|
@@ -66,7 +66,9 @@ export const Tile = JSX<TileProps>((props) => {
|
|
|
66
66
|
image={image?.src ? <Img className="mt-auto ml-7" image={image} /> : null}
|
|
67
67
|
>
|
|
68
68
|
{description ? (
|
|
69
|
-
<
|
|
69
|
+
<div className="max-w-[600px] mt-2.5">
|
|
70
|
+
<Paragraph size="text-xl-light">{description}</Paragraph>
|
|
71
|
+
</div>
|
|
70
72
|
) : null}
|
|
71
73
|
{children}
|
|
72
74
|
{renderList({ version, isDotted, listItemSize }, items)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg title="Стрелка" isInverse="true" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1
|
+
<svg title="Стрелка 'Влево'" isInverse="true" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path d="M7 11.834L3 8.00065L7 4.16732" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
|
3
3
|
<path d="M14 9.00195C14.5523 9.00195 15 8.55424 15 8.00195C15 7.44967 14.5523 7.00195 14 7.00195L14 9.00195ZM8 7.00195C7.44772 7.00195 7 7.44967 7 8.00195C7 8.55424 7.44772 9.00195 8 9.00195L8 7.00195ZM14 7.00195L8 7.00195L8 9.00195L14 9.00195L14 7.00195Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg title="Стрелка 'Вправо'" isInverse="true" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.43 5.93 20.5 12l-6.07 6.07M11.01 12h9.32M3.5 12h3.47" stroke="#42AB44" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg title="Стрелка
|
|
1
|
+
<svg title="Стрелка 'Вверх'" isInverse="true" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path d="M13.3416 9.29163L11.1582 7.10829C10.5166 6.46662 9.46657 6.46662 8.8249 7.10829L3.3999 12.5416" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
3
|
<path d="M16.6001 12.5416L15.7334 11.675" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
4
|
</svg>
|