@redneckz/wildless-cms-uni-blocks 0.2.92 → 0.2.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +165 -112
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/api/LikeAPI.js +1 -0
- package/dist/api/LikeAPI.js.map +1 -1
- package/dist/components/Accordion/AccordionBlocks.d.ts +1 -2
- package/dist/components/Accordion/AccordionBlocks.js +2 -2
- package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +38 -14
- package/dist/components/Accordion/AccordionItem.js +9 -10
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.js +7 -2
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/Blocks.js +1 -1
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +11 -6
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.d.ts +9 -1
- package/dist/components/ContentPage/ContentPage.js +20 -17
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/ContentPageHead.d.ts +1 -1
- package/dist/components/ContentPage/toMobilePage.js +13 -2
- package/dist/components/ContentPage/toMobilePage.js.map +1 -1
- package/dist/components/CreditCalculator/CreditCalculator.js +3 -3
- package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/dist/components/Footer/Contacts.js +1 -1
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +1 -2
- package/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/dist/components/Footer/Sitemap.js +1 -1
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -2
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +1 -1
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/dist/components/Gallery/GalleryCardInner.js +19 -0
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -0
- package/dist/components/Gallery/GalleryContainer.d.ts +13 -0
- package/dist/components/Gallery/GalleryContainer.js +16 -0
- package/dist/components/Gallery/GalleryContainer.js.map +1 -0
- package/dist/components/Gallery/GalleryContent.d.ts +8 -2
- package/dist/components/Gallery/GalleryInner.d.ts +1 -1
- package/dist/components/Gallery/GalleryInner.js +8 -36
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Gallery/constants.d.ts +6 -0
- package/dist/components/Gallery/constants.js +19 -0
- package/dist/components/Gallery/constants.js.map +1 -0
- package/dist/components/Header/Header.js +3 -3
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +5 -5
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -2
- package/dist/components/MobileBlocks.js +0 -3
- package/dist/components/MobileBlocks.js.map +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +1 -3
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.mobile.js +3 -1
- package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -5
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.d.ts +1 -1
- package/dist/components/PromoTile/PromoTile.js +1 -1
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +8 -3
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +3 -3
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -1
- package/dist/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/dist/components/Tile/Tile.d.ts +1 -1
- package/dist/components/Tile/Tile.js +14 -2
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/content-page-repository/ContentPageRepository.js +1 -0
- package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/dist/hooks/useComparisonTableScroll.d.ts +6 -1
- package/dist/hooks/useComparisonTableScroll.js +1 -1
- package/dist/hooks/useComparisonTableScroll.js.map +1 -1
- package/dist/hooks/useLink.js +1 -1
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/types.d.ts +8 -0
- package/dist/ui-kit/BlockItem/BlockItem.js +4 -4
- package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +2 -2
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +2 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/SearchBar.js +2 -1
- package/dist/ui-kit/SearchBar.js.map +1 -1
- package/lib/api/LikeAPI.js +1 -0
- package/lib/api/LikeAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.fixture.d.ts +1 -4
- package/lib/components/Accordion/AccordionBlocks.d.ts +1 -2
- package/lib/components/Accordion/AccordionBlocks.js +1 -2
- package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +38 -14
- package/lib/components/Accordion/AccordionItem.js +9 -7
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.js +7 -2
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/Blocks.js +1 -1
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +11 -6
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.d.ts +9 -1
- package/lib/components/ContentPage/ContentPage.js +20 -17
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPageHead.d.ts +1 -1
- package/lib/components/ContentPage/toMobilePage.js +13 -2
- package/lib/components/ContentPage/toMobilePage.js.map +1 -1
- package/lib/components/CreditCalculator/CreditCalculator.js +3 -3
- package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/lib/components/Footer/Contacts.js +1 -1
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +1 -2
- package/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/lib/components/Footer/Sitemap.js +1 -1
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -2
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +1 -1
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.d.ts +2 -0
- package/lib/components/Gallery/GalleryCardInner.js +17 -0
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -0
- package/lib/components/Gallery/GalleryContainer.d.ts +13 -0
- package/lib/components/Gallery/GalleryContainer.js +14 -0
- package/lib/components/Gallery/GalleryContainer.js.map +1 -0
- package/lib/components/Gallery/GalleryContent.d.ts +8 -2
- package/lib/components/Gallery/GalleryInner.d.ts +1 -1
- package/lib/components/Gallery/GalleryInner.js +6 -34
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Gallery/constants.d.ts +6 -0
- package/lib/components/Gallery/constants.js +17 -0
- package/lib/components/Gallery/constants.js.map +1 -0
- package/lib/components/Header/Header.js +3 -3
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +3 -2
- package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +7 -7
- package/lib/components/LinkDocs/LinkDocs.js +5 -5
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -2
- package/lib/components/MobileBlocks.js +0 -3
- package/lib/components/MobileBlocks.js.map +1 -1
- package/lib/components/PictureText/PictureText.fixture.d.ts +2 -0
- package/lib/components/PictureText/PictureTextContent.d.ts +1 -3
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.mobile.js +3 -1
- package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -5
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.d.ts +1 -1
- package/lib/components/PromoTile/PromoTile.js +1 -1
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +8 -3
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +3 -3
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -1
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +2 -0
- package/lib/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/lib/components/Tile/Tile.d.ts +1 -1
- package/lib/components/Tile/Tile.js +14 -2
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/content-page-repository/ContentPageRepository.js +1 -0
- package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/lib/hooks/useComparisonTableScroll.d.ts +6 -1
- package/lib/hooks/useComparisonTableScroll.js +1 -1
- package/lib/hooks/useComparisonTableScroll.js.map +1 -1
- package/lib/hooks/useLink.js +1 -1
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/types.d.ts +8 -0
- package/lib/ui-kit/BlockItem/BlockItem.js +4 -4
- package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +2 -2
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +2 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/SearchBar.js +2 -1
- package/lib/ui-kit/SearchBar.js.map +1 -1
- package/package.json +19 -8
- package/src/api/LikeAPI.ts +1 -0
- package/src/components/Accordion/Accordion.example.json +18 -42
- package/src/components/Accordion/Accordion.fixture.tsx +33 -119
- package/src/components/Accordion/AccordionBlocks.tsx +1 -3
- package/src/components/Accordion/AccordionContent.ts +47 -18
- package/src/components/Accordion/AccordionItem.tsx +14 -10
- package/src/components/BaseTile/BaseTile.tsx +13 -5
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +31 -28
- package/src/components/Blocks.ts +1 -1
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +43 -53
- package/src/components/ComparisonTable/ComparisonTable.tsx +8 -8
- package/src/components/ComparisonTable/HeaderCell.tsx +3 -3
- package/src/components/ContentPage/ContentPage.fixture.tsx +3 -3
- package/src/components/ContentPage/ContentPage.page.json +45 -56
- package/src/components/ContentPage/ContentPage.tsx +71 -36
- package/src/components/ContentPage/ContentPageHead.tsx +1 -1
- package/src/components/ContentPage/toMobilePage.ts +19 -2
- package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +9 -1
- package/src/components/CreditCalculator/CreditCalculator.tsx +12 -9
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
- package/src/components/Footer/Contacts.tsx +1 -1
- package/src/components/Footer/Footer.fixture.tsx +265 -258
- package/src/components/Footer/Footer.tsx +3 -3
- package/src/components/Footer/FooterContent.ts +1 -1
- package/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/src/components/Footer/Sitemap.tsx +1 -1
- package/src/components/Footer/SocialMedia.tsx +5 -6
- package/src/components/Gallery/Gallery.fixture.tsx +52 -48
- package/src/components/Gallery/Gallery.mobile.tsx +1 -3
- package/src/components/Gallery/GalleryCardInner.tsx +53 -0
- package/src/components/Gallery/GalleryContainer.tsx +58 -0
- package/src/components/Gallery/GalleryContent.ts +8 -2
- package/src/components/Gallery/GalleryInner.tsx +15 -93
- package/src/components/Gallery/constants.ts +22 -0
- package/src/components/Header/Header.tsx +14 -12
- package/src/components/Headline/Headline.fixture.tsx +30 -31
- package/src/components/LikeControl/LikeControl.fixture.tsx +5 -1
- package/src/components/LinkDocs/LinkDocs.example.json +26 -0
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +30 -13
- package/src/components/LinkDocs/LinkDocs.tsx +9 -8
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +12 -22
- package/src/components/MiniGallery/MiniGalleryContent.ts +1 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
- package/src/components/MobileBlocks.ts +0 -3
- package/src/components/PictureText/PictureText.fixture.tsx +22 -18
- package/src/components/PictureText/PictureTextContent.ts +1 -3
- package/src/components/Placeholder/Placeholder.fixture.tsx +5 -1
- package/src/components/Placeholder/Placeholder.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +83 -76
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +1 -0
- package/src/components/ProductBlock/ProductBlock.tsx +3 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +9 -12
- package/src/components/ProductGallery/ProductGallery.example.json +1 -1
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +103 -106
- package/src/components/ProductGallery/ProductGallery.tsx +7 -5
- package/src/components/ProductTile/ProductTile.fixture.tsx +4 -4
- package/src/components/PromoTile/PromoTile.fixture.tsx +1 -1
- package/src/components/PromoTile/PromoTile.tsx +3 -3
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +21 -18
- package/src/components/TariffsTable/TariffsTable.example.json +3 -1
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +8 -16
- package/src/components/TariffsTable/TariffsTable.tsx +39 -37
- package/src/components/TariffsTable/TariffsTableCell.tsx +4 -4
- package/src/components/TariffsTable/TariffsTableContent.ts +5 -1
- package/src/components/TextBlock/TextBlock.example.json +9 -2
- package/src/components/TextBlock/TextBlock.fixture.tsx +70 -97
- package/src/components/TextBlock/TextBlockContent.ts +1 -2
- package/src/components/Tile/Tile.example.json +5 -2
- package/src/components/Tile/Tile.fixture.tsx +11 -8
- package/src/components/Tile/Tile.tsx +16 -5
- package/src/content-page-repository/ContentPageRepository.ts +1 -0
- package/src/hooks/useComparisonTableScroll.ts +11 -6
- package/src/hooks/useLink.ts +1 -1
- package/src/setup-fixture.ts +1 -2
- package/src/types.ts +11 -1
- package/src/ui-kit/BlockItem/BlockItem.tsx +4 -4
- package/src/ui-kit/Checkbox/Checkbox.tsx +7 -3
- package/src/ui-kit/InputRange/InputRange.tsx +9 -8
- package/src/ui-kit/SearchBar.tsx +15 -6
- package/src/Icons/CalendarCircleIcon.svg +0 -14
- package/src/Icons/CardIcon.svg +0 -11
- package/src/Icons/CardPosIcon.svg +0 -12
- package/src/Icons/CardTickIcon.svg +0 -13
- package/src/Icons/EmptyWalletChangeIcon.svg +0 -21
- package/src/Icons/JCBIcon.svg +0 -42
- package/src/Icons/MastercardIcon.svg +0 -6
- package/src/Icons/MinusIcon.svg +0 -1
- package/src/Icons/MirIcon.svg +0 -13
- package/src/Icons/MoneyIcon.svg +0 -13
- package/src/Icons/MonitorMobileIcon.svg +0 -14
- package/src/Icons/PlusIcon.svg +0 -1
- package/src/Icons/Profile2UserIcon.svg +0 -14
- package/src/Icons/ShieldTickIcon.svg +0 -7
- package/src/Icons/UnionPayIcon.svg +0 -7
- package/src/Icons/UserIcon.svg +0 -11
- package/src/Icons/VisaIcon.svg +0 -7
- package/src/Icons/WalletIcon.svg +0 -19
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Дополнительные документы",
|
|
3
|
+
"icon": "DocIcon",
|
|
4
|
+
"documents": [
|
|
5
|
+
{
|
|
6
|
+
"text": "Документ №1",
|
|
7
|
+
"href": "/documents/document1.doc",
|
|
8
|
+
"fileSize": "123КБ"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"text": "Документ №2",
|
|
12
|
+
"href": "/documents/document2.rtf",
|
|
13
|
+
"target": "_blank"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"text": "Документ №3",
|
|
17
|
+
"href": "/abc3/map.jpeg",
|
|
18
|
+
"fileSize": "2МБ"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"text": "Документ №4",
|
|
22
|
+
"href": "/abc/map.rar"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"columnsMode": "double"
|
|
26
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { LinkDocs } from './LinkDocs';
|
|
2
1
|
import { context } from '../../setup-fixture';
|
|
2
|
+
import { LinkDocs } from './LinkDocs';
|
|
3
3
|
import type { LinkDocsContent } from './LinkDocsContent';
|
|
4
|
+
import { Accordion } from '../Accordion/Accordion';
|
|
4
5
|
|
|
5
|
-
export const
|
|
6
|
+
export const LINK_DOCS: LinkDocsContent = {
|
|
6
7
|
title: 'Дополнительные документы',
|
|
7
8
|
icon: 'DocIcon',
|
|
8
9
|
documents: [
|
|
@@ -14,7 +15,7 @@ export const LinkDocsFixtureSetOne: LinkDocsContent = {
|
|
|
14
15
|
{ text: 'документ 6', href: '/abc6/abc.pdf' },
|
|
15
16
|
{ text: 'Text text text', href: '/abc7/yolo.png' },
|
|
16
17
|
{
|
|
17
|
-
text: 'Some more generic text, and even more, more text',
|
|
18
|
+
text: 'Some more generic text to stretch item, and even more, more text, and more generic text, and even more, more text, and even more',
|
|
18
19
|
href: '/abc8/archive.zip',
|
|
19
20
|
fileSize: '2.3МБ',
|
|
20
21
|
},
|
|
@@ -27,25 +28,41 @@ export const LinkDocsFixtureSetOne: LinkDocsContent = {
|
|
|
27
28
|
],
|
|
28
29
|
};
|
|
29
30
|
|
|
30
|
-
export const
|
|
31
|
-
...
|
|
31
|
+
export const LINK_DOCS_ONE_COLUMN: LinkDocsContent = {
|
|
32
|
+
...LINK_DOCS,
|
|
32
33
|
columnsMode: 'single',
|
|
33
34
|
};
|
|
34
35
|
|
|
35
|
-
export const
|
|
36
|
-
...
|
|
36
|
+
export const LINK_DOCS_ANOTHER_ICON: LinkDocsContent = {
|
|
37
|
+
...LINK_DOCS,
|
|
37
38
|
icon: 'GlassIcon',
|
|
38
39
|
title: '',
|
|
39
40
|
};
|
|
40
41
|
|
|
41
|
-
export const
|
|
42
|
-
...
|
|
42
|
+
export const LINK_DOCS_NO_ICON: LinkDocsContent = {
|
|
43
|
+
...LINK_DOCS,
|
|
43
44
|
icon: undefined,
|
|
44
45
|
};
|
|
45
46
|
|
|
46
47
|
export default {
|
|
47
|
-
'
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
'two columns (default)': (
|
|
49
|
+
<div className="container grid grid-cols-12">
|
|
50
|
+
<LinkDocs className="col-span-12" context={context} {...LINK_DOCS} />
|
|
51
|
+
</div>
|
|
52
|
+
),
|
|
53
|
+
'one column': (
|
|
54
|
+
<div className="container grid grid-cols-12">
|
|
55
|
+
<LinkDocs className="col-span-12" context={context} {...LINK_DOCS_ONE_COLUMN} />
|
|
56
|
+
</div>
|
|
57
|
+
),
|
|
58
|
+
'another icon': (
|
|
59
|
+
<div className="container grid grid-cols-12">
|
|
60
|
+
<LinkDocs className="col-span-12" context={context} {...LINK_DOCS_ANOTHER_ICON} />
|
|
61
|
+
</div>
|
|
62
|
+
),
|
|
63
|
+
'no icon and title': (
|
|
64
|
+
<div className="container grid grid-cols-12">
|
|
65
|
+
<LinkDocs className="col-span-12" context={context} {...LINK_DOCS_NO_ICON} />
|
|
66
|
+
</div>
|
|
67
|
+
),
|
|
51
68
|
};
|
|
@@ -13,7 +13,7 @@ const titleAlignStyleMap: Record<AlignType, string> = {
|
|
|
13
13
|
|
|
14
14
|
const titleMarginsStyleMap: Record<LinkColumnsMode, string> = {
|
|
15
15
|
double: 'mb-8',
|
|
16
|
-
single: '',
|
|
16
|
+
single: 'mb-[26px]',
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
const linkColumnsModeStyleMap: Record<LinkColumnsMode, string> = {
|
|
@@ -31,7 +31,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
31
31
|
<section className={`font-sans p-[50px] bg-white ${className}`}>
|
|
32
32
|
{title && (
|
|
33
33
|
<Title
|
|
34
|
-
className={`font-medium
|
|
34
|
+
className={`font-medium mt-0 ${titleMarginsStyleMap[columnsMode]} ${
|
|
35
35
|
titleAlignStyleMap[align ?? 'center']
|
|
36
36
|
}`}
|
|
37
37
|
>
|
|
@@ -40,16 +40,17 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
40
40
|
)}
|
|
41
41
|
<div className={`flex ${containerClasses}`} role="list">
|
|
42
42
|
{documents?.length
|
|
43
|
-
? documents.map(({ text, fileSize, ...linkProps }) => (
|
|
43
|
+
? documents.map(({ text, fileSize, ...linkProps }, i) => (
|
|
44
44
|
<a
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
key={String(i)}
|
|
46
|
+
className={`group flex text-sm align-middle h-fit
|
|
47
|
+
text-primary-text no-underline hover:text-primary-main
|
|
48
|
+
${columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : ''}`}
|
|
48
49
|
role="listitem"
|
|
49
50
|
{...linkProps}
|
|
50
51
|
>
|
|
51
|
-
{icon && <Icon className="mr-
|
|
52
|
-
<span>
|
|
52
|
+
{icon && <Icon className="mr-2.5" name={icon} width="24px" height="24px" />}
|
|
53
|
+
<span className="self-center">
|
|
53
54
|
{text}
|
|
54
55
|
<span className="text-secondary-text group-hover:text-primary-main">
|
|
55
56
|
{linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize)}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
1
2
|
import { context } from '../../setup-fixture';
|
|
2
|
-
|
|
3
3
|
import { MiniGallery, MiniGalleryProps } from './MiniGallery';
|
|
4
|
-
import { Picture } from '../../model/Picture';
|
|
5
4
|
|
|
6
5
|
const image: Picture = {
|
|
7
6
|
src: 'domovoj-kupon.png',
|
|
@@ -10,6 +9,7 @@ const image: Picture = {
|
|
|
10
9
|
width: 120,
|
|
11
10
|
height: 70,
|
|
12
11
|
},
|
|
12
|
+
title: 'domovoj-kupon',
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
const defaultProps: MiniGalleryProps = {
|
|
@@ -39,16 +39,6 @@ const defaultProps: MiniGalleryProps = {
|
|
|
39
39
|
'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
|
|
40
40
|
image,
|
|
41
41
|
},
|
|
42
|
-
{
|
|
43
|
-
title: 'Фермерские продукты',
|
|
44
|
-
description: 'Высокий процент даже при небольшой сумме денежных средств',
|
|
45
|
-
image,
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
title: 'Фермерские продукты',
|
|
49
|
-
description: 'Высокий процент даже при небольшой сумме денежных средств',
|
|
50
|
-
image,
|
|
51
|
-
},
|
|
52
42
|
],
|
|
53
43
|
};
|
|
54
44
|
|
|
@@ -73,18 +63,18 @@ const onlyTitleProps: MiniGalleryProps = {
|
|
|
73
63
|
title: '«Моя выгода»',
|
|
74
64
|
image,
|
|
75
65
|
},
|
|
76
|
-
{
|
|
77
|
-
title: 'Фермерские продукты',
|
|
78
|
-
image,
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
title: 'Фермерские продукты',
|
|
82
|
-
image,
|
|
83
|
-
},
|
|
84
66
|
],
|
|
85
67
|
};
|
|
86
68
|
|
|
87
69
|
export default {
|
|
88
|
-
default:
|
|
89
|
-
|
|
70
|
+
default: (
|
|
71
|
+
<div className="container grid grid-cols-12">
|
|
72
|
+
<MiniGallery className="col-span-12" {...defaultProps} />
|
|
73
|
+
</div>
|
|
74
|
+
),
|
|
75
|
+
'only title': (
|
|
76
|
+
<div className="container grid grid-cols-12">
|
|
77
|
+
<MiniGallery className="col-span-12" {...onlyTitleProps} />
|
|
78
|
+
</div>
|
|
79
|
+
),
|
|
90
80
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { context } from '../../setup-fixture';
|
|
2
2
|
|
|
3
|
-
import { PictureText } from './PictureText';
|
|
4
3
|
import type { Picture } from '../../model/Picture';
|
|
4
|
+
import { PictureText } from './PictureText';
|
|
5
|
+
import type { PictureTextContent } from './PictureTextContent';
|
|
5
6
|
|
|
6
7
|
const image: Picture = {
|
|
7
8
|
src: 'legal-support-business.png',
|
|
@@ -13,24 +14,27 @@ const image: Picture = {
|
|
|
13
14
|
alt: 'Варианты потребительского кредита',
|
|
14
15
|
};
|
|
15
16
|
|
|
17
|
+
export const PICTURE_TEXT: PictureTextContent = {
|
|
18
|
+
title: 'Варианты потребительского кредита',
|
|
19
|
+
benefits: [
|
|
20
|
+
{
|
|
21
|
+
label: 'Кредит по одному документу',
|
|
22
|
+
description: 'До 300 тыс ₽ по упрощённой процедуре получения кредита',
|
|
23
|
+
icon: 'DocumentText',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: 'Кредит на общих условиях',
|
|
27
|
+
description: 'До 5 млн ₽ на общих условиях получения кредита',
|
|
28
|
+
icon: 'DiscountShape',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
image,
|
|
32
|
+
};
|
|
33
|
+
|
|
16
34
|
export default {
|
|
17
35
|
default: (
|
|
18
|
-
<
|
|
19
|
-
context={context}
|
|
20
|
-
|
|
21
|
-
benefits={[
|
|
22
|
-
{
|
|
23
|
-
label: 'Кредит по одному документу',
|
|
24
|
-
description: 'До 300 тыс ₽ по упрощённой процедуре получения кредита',
|
|
25
|
-
icon: 'DocumentText',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
label: 'Кредит на общих условиях',
|
|
29
|
-
description: 'До 5 млн ₽ на общих условиях получения кредита',
|
|
30
|
-
icon: 'DiscountShape',
|
|
31
|
-
},
|
|
32
|
-
]}
|
|
33
|
-
image={image}
|
|
34
|
-
/>
|
|
36
|
+
<div className="container grid grid-cols-12">
|
|
37
|
+
<PictureText className="col-span-12" context={context} {...PICTURE_TEXT} />
|
|
38
|
+
</div>
|
|
35
39
|
),
|
|
36
40
|
};
|
|
@@ -5,8 +5,6 @@ import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
|
5
5
|
* @title Картинка с текстом
|
|
6
6
|
*/
|
|
7
7
|
export interface PictureTextContent extends Pick<BaseTileCommonProps, 'title' | 'image'> {
|
|
8
|
-
/**
|
|
9
|
-
* @title Список преимуществ
|
|
10
|
-
*/
|
|
8
|
+
/** @title Список преимуществ */
|
|
11
9
|
benefits?: Benefit[];
|
|
12
10
|
}
|
|
@@ -2,4 +2,8 @@ import { context } from '../../setup-fixture';
|
|
|
2
2
|
|
|
3
3
|
import { Placeholder } from './Placeholder';
|
|
4
4
|
|
|
5
|
-
export default
|
|
5
|
+
export default (
|
|
6
|
+
<div className="container grid grid-cols-12">
|
|
7
|
+
<Placeholder className="col-span-12" context={context} title="Неизвестный блок" />
|
|
8
|
+
</div>
|
|
9
|
+
);
|
|
@@ -17,12 +17,12 @@ export const Placeholder = JSX<PlaceholderProps>(({ className, context, title })
|
|
|
17
17
|
);
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
const renderShimmer = (size
|
|
20
|
+
const renderShimmer = (size = 3) =>
|
|
21
21
|
goldenSequence(100, size)
|
|
22
22
|
.map((_) => Math.floor(_))
|
|
23
23
|
.map(renderShimmerItem);
|
|
24
24
|
|
|
25
|
-
const renderShimmerItem = (width
|
|
25
|
+
const renderShimmerItem = (width = 100, index: number) => (
|
|
26
26
|
<div key={String(index)} style={{ width: `${width}%` }} className="h-4 mt-2 bg-secondary-light" />
|
|
27
27
|
);
|
|
28
28
|
|
|
@@ -6,6 +6,7 @@ import type { Picture } from '../../model/Picture';
|
|
|
6
6
|
const image: Picture = {
|
|
7
7
|
src: 'money-1.png',
|
|
8
8
|
format: 'webp',
|
|
9
|
+
alt: 'Потребительский кредит наличными',
|
|
9
10
|
size: {
|
|
10
11
|
width: 280,
|
|
11
12
|
height: 280,
|
|
@@ -14,83 +15,89 @@ const image: Picture = {
|
|
|
14
15
|
|
|
15
16
|
export default {
|
|
16
17
|
default: (
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
18
|
+
<div className="container grid grid-cols-12">
|
|
19
|
+
<ProductBlock
|
|
20
|
+
className="col-span-12"
|
|
21
|
+
context={context}
|
|
22
|
+
title={'Потребительский кредит наличными'}
|
|
23
|
+
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
24
|
+
breadcrumbs={[
|
|
25
|
+
{
|
|
26
|
+
text: 'Главная',
|
|
27
|
+
href: '/',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
text: 'Кредитные карты',
|
|
31
|
+
href: '/credit',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
text: 'Кредитная карта Своя Union Pay',
|
|
35
|
+
},
|
|
36
|
+
]}
|
|
37
|
+
benefits={[
|
|
38
|
+
{
|
|
39
|
+
label: 'До 5 млн ₽',
|
|
40
|
+
description: 'Кредитный лимит',
|
|
41
|
+
icon: 'EmptyWalletIcon',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: 'От 16,9%',
|
|
45
|
+
description: 'Ставка по кредиту',
|
|
46
|
+
icon: 'PercentageSquareIcon',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: 'До 5 лет',
|
|
50
|
+
description: 'Срок кредитования',
|
|
51
|
+
icon: 'CalendarIcon',
|
|
52
|
+
},
|
|
53
|
+
]}
|
|
54
|
+
buttons={[
|
|
55
|
+
{
|
|
56
|
+
href: 'https://rshb.ru',
|
|
57
|
+
text: 'Оформить карту',
|
|
58
|
+
target: '_blank',
|
|
59
|
+
version: 'primary',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
href: 'https://rshb.ru',
|
|
63
|
+
text: 'Подробнее',
|
|
64
|
+
target: '_blank',
|
|
65
|
+
version: 'secondary',
|
|
66
|
+
},
|
|
67
|
+
]}
|
|
68
|
+
image={image}
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
67
71
|
),
|
|
68
72
|
'with items': (
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
73
|
+
<div className="container grid grid-cols-12">
|
|
74
|
+
<ProductBlock
|
|
75
|
+
className="col-span-12"
|
|
76
|
+
context={context}
|
|
77
|
+
title={'Оплата проходит \nв 180 странах мира'}
|
|
78
|
+
breadcrumbs={[]}
|
|
79
|
+
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
80
|
+
items={[
|
|
81
|
+
'Совершайте любые личные покупки',
|
|
82
|
+
'Используйте корпоративную карту как обычную дебетовую, если вы ИП',
|
|
83
|
+
'Расходы для бизнеса на УСН 15% позволят снизить налоговую базу',
|
|
84
|
+
]}
|
|
85
|
+
buttons={[
|
|
86
|
+
{
|
|
87
|
+
href: 'https://rshb.ru',
|
|
88
|
+
text: 'Оформить карту',
|
|
89
|
+
target: '_blank',
|
|
90
|
+
version: 'primary',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
href: 'https://rshb.ru',
|
|
94
|
+
text: 'Подробнее',
|
|
95
|
+
target: '_blank',
|
|
96
|
+
version: 'secondary',
|
|
97
|
+
},
|
|
98
|
+
]}
|
|
99
|
+
image={image}
|
|
100
|
+
/>
|
|
101
|
+
</div>
|
|
95
102
|
),
|
|
96
103
|
};
|
|
@@ -6,6 +6,7 @@ import { ProductBlockInner } from './ProductBlockInner';
|
|
|
6
6
|
export interface ProductBlockProps extends ProductBlockInnerCommonProps, UniBlockProps {}
|
|
7
7
|
|
|
8
8
|
export const ProductBlock = JSX<ProductBlockProps>(
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9
10
|
({ titleSize, image, benefits, ...props } /* Get rid of image and benefits */) => {
|
|
10
11
|
const { className } = props;
|
|
11
12
|
return (
|
|
@@ -14,7 +14,9 @@ export const ProductBlock = JSX<ProductBlockProps>((props) => {
|
|
|
14
14
|
const { handlerDecorator } = context;
|
|
15
15
|
return (
|
|
16
16
|
<section
|
|
17
|
-
className={`font-sans bg-white pt-10 pl-[50px] pb-[50px] pr-[7.5rem] ${
|
|
17
|
+
className={`font-sans bg-white pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${
|
|
18
|
+
className || ''
|
|
19
|
+
}`}
|
|
18
20
|
>
|
|
19
21
|
{breadcrumbs?.length ? (
|
|
20
22
|
<div className="text-xs mb-6">
|
|
@@ -2,7 +2,6 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
3
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
4
4
|
import { Img } from '../../ui-kit/Img';
|
|
5
|
-
import { Title } from '../../ui-kit/Title/Title';
|
|
6
5
|
import { BaseTile } from '../BaseTile/BaseTile';
|
|
7
6
|
import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
8
7
|
import type { ProductBlockInnerCommonProps } from './ProductBlockContent';
|
|
@@ -14,16 +13,14 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
14
13
|
return (
|
|
15
14
|
<div className={`flex grow justify-between items-stretch ${className || ''}`}>
|
|
16
15
|
<div className={'flex flex-col'}>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
)}
|
|
26
|
-
<BaseTile context={context} description={description} items={items} buttons={buttons}>
|
|
16
|
+
<BaseTile
|
|
17
|
+
context={context}
|
|
18
|
+
title={title}
|
|
19
|
+
titleSize={titleSize || 'XL'}
|
|
20
|
+
description={description}
|
|
21
|
+
items={items}
|
|
22
|
+
buttons={buttons}
|
|
23
|
+
>
|
|
27
24
|
{benefits?.length ? (
|
|
28
25
|
<div className="flex gap-6 mt-6 mb-3.5">{benefits.map(renderBenefit)}</div>
|
|
29
26
|
) : null}
|
|
@@ -46,7 +43,7 @@ function renderBenefit(benefit: Benefit, i: number) {
|
|
|
46
43
|
height="24"
|
|
47
44
|
/>
|
|
48
45
|
)}
|
|
49
|
-
<div className="flex gap-1 flex-col h-full">
|
|
46
|
+
<div className="flex gap-1 flex-col h-full max-w-[149px]">
|
|
50
47
|
<h4 className="font-medium text-primary-text text-xl m-0">{benefit.label}</h4>
|
|
51
48
|
{benefit.description && (
|
|
52
49
|
<div className="font-normal text-sm text-secondary-text">{benefit.description}</div>
|