@redneckz/wildless-cms-uni-blocks 0.14.49 → 0.14.51
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.31.js +66 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +47 -58
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/bundle/components/Bonus/BonusContent.d.ts +7 -3
- package/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/bundle/model/EmptyOptionType.d.ts +1 -3
- package/bundle/model/JSXBlock.d.ts +2 -2
- package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Bonus/BonusContent.d.ts +7 -3
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +14 -5
- package/dist/components/LinkDocs/LinkDocs.js +3 -0
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/dist/components/ProductBlock/ProductBlock.js +1 -13
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -8
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
- package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/dist/model/EmptyOptionType.d.ts +1 -3
- package/dist/model/JSXBlock.d.ts +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/dist/ui-kit/BaseTile/BaseTile.js +16 -5
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/lib/components/Blocks.js +0 -4
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +1 -1
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Bonus/BonusContent.d.ts +7 -3
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +14 -5
- package/lib/components/LinkDocs/LinkDocs.js +3 -0
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +2 -0
- package/lib/components/ProductBlock/ProductBlock.js +2 -14
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +2 -9
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -1
- package/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
- package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/lib/model/EmptyOptionType.d.ts +1 -3
- package/lib/model/JSXBlock.d.ts +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/lib/ui-kit/BaseTile/BaseTile.js +16 -5
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +47 -58
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +7 -3
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/mobile/bundle/model/EmptyOptionType.d.ts +1 -3
- package/mobile/bundle/model/JSXBlock.d.ts +2 -2
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Bonus/BonusContent.d.ts +7 -3
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -5
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -0
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -13
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -8
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/dist/model/EmptyOptionType.d.ts +1 -3
- package/mobile/dist/model/JSXBlock.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +16 -5
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +1 -1
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Bonus/BonusContent.d.ts +7 -3
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -5
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -0
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
- package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -14
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -9
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/lib/model/EmptyOptionType.d.ts +1 -3
- package/mobile/lib/model/JSXBlock.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +16 -5
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/src/common.css +4 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
- package/mobile/src/components/Blocks.ts +0 -4
- package/mobile/src/components/Bonus/Bonus.tsx +1 -1
- package/mobile/src/components/Bonus/BonusContent.ts +8 -3
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
- package/mobile/src/components/Calculator/CalculatorContent.ts +16 -5
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +3 -0
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +10 -5
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +13 -32
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +8 -3
- package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
- package/mobile/src/model/EmptyOptionType.ts +1 -3
- package/mobile/src/model/JSXBlock.ts +2 -2
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +5 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +48 -35
- package/package.json +1 -1
- package/src/common.css +4 -0
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -4
- package/src/components/Bonus/Bonus.tsx +1 -1
- package/src/components/Bonus/BonusContent.ts +8 -3
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
- package/src/components/Calculator/CalculatorContent.ts +16 -5
- package/src/components/DepositFiltration/DepositFiltration.fixture.mobile.tsx +5 -5
- package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +5 -5
- package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +15 -15
- package/src/components/LinkDocs/LinkDocs.tsx +3 -0
- package/src/components/LinkDocs/LinkDocsContent.ts +10 -5
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.mobile.tsx +8 -8
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +8 -8
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +41 -0
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +40 -0
- package/src/components/ProductBlock/ProductBlock.tsx +13 -32
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.tsx +9 -9
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +11 -11
- package/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
- package/src/components/TariffsTable/TariffsTableContent.ts +8 -3
- package/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
- package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +3 -3
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +9 -10
- package/src/model/EmptyOptionType.ts +1 -3
- package/src/model/JSXBlock.ts +2 -2
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +5 -1
- package/src/ui-kit/BaseTile/BaseTile.tsx +48 -35
- package/bundle/components/ProductTile/ProductTile.d.ts +0 -5
- package/bundle/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/bundle/components/Tile/Tile.d.ts +0 -5
- package/bundle/components/Tile/TileContent.d.ts +0 -6
- package/dist/components/ProductTile/ProductTile.d.ts +0 -5
- package/dist/components/ProductTile/ProductTile.js +0 -9
- package/dist/components/ProductTile/ProductTile.js.map +0 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/dist/components/ProductTile/ProductTileContent.js +0 -2
- package/dist/components/ProductTile/ProductTileContent.js.map +0 -1
- package/dist/components/Tile/Tile.d.ts +0 -5
- package/dist/components/Tile/Tile.js +0 -8
- package/dist/components/Tile/Tile.js.map +0 -1
- package/dist/components/Tile/TileContent.d.ts +0 -6
- package/dist/components/Tile/TileContent.js +0 -2
- package/dist/components/Tile/TileContent.js.map +0 -1
- package/lib/components/ProductTile/ProductTile.d.ts +0 -5
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +0 -17
- package/lib/components/ProductTile/ProductTile.fixture.mobile.d.ts +0 -16
- package/lib/components/ProductTile/ProductTile.js +0 -7
- package/lib/components/ProductTile/ProductTile.js.map +0 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/lib/components/ProductTile/ProductTileContent.js +0 -2
- package/lib/components/ProductTile/ProductTileContent.js.map +0 -1
- package/lib/components/Tile/Tile.d.ts +0 -5
- package/lib/components/Tile/Tile.fixture.d.ts +0 -15
- package/lib/components/Tile/Tile.fixture.mobile.d.ts +0 -9
- package/lib/components/Tile/Tile.js +0 -6
- package/lib/components/Tile/Tile.js.map +0 -1
- package/lib/components/Tile/TileContent.d.ts +0 -6
- package/lib/components/Tile/TileContent.js +0 -2
- package/lib/components/Tile/TileContent.js.map +0 -1
- package/mobile/bundle/components/ProductTile/ProductTile.d.ts +0 -5
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/mobile/bundle/components/Tile/Tile.d.ts +0 -5
- package/mobile/bundle/components/Tile/TileContent.d.ts +0 -6
- package/mobile/dist/components/ProductTile/ProductTile.d.ts +0 -5
- package/mobile/dist/components/ProductTile/ProductTile.js +0 -9
- package/mobile/dist/components/ProductTile/ProductTile.js.map +0 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/mobile/dist/components/ProductTile/ProductTileContent.js +0 -2
- package/mobile/dist/components/ProductTile/ProductTileContent.js.map +0 -1
- package/mobile/dist/components/Tile/Tile.d.ts +0 -5
- package/mobile/dist/components/Tile/Tile.js +0 -8
- package/mobile/dist/components/Tile/Tile.js.map +0 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +0 -6
- package/mobile/dist/components/Tile/TileContent.js +0 -2
- package/mobile/dist/components/Tile/TileContent.js.map +0 -1
- package/mobile/lib/components/ProductTile/ProductTile.d.ts +0 -5
- package/mobile/lib/components/ProductTile/ProductTile.js +0 -7
- package/mobile/lib/components/ProductTile/ProductTile.js.map +0 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +0 -7
- package/mobile/lib/components/ProductTile/ProductTileContent.js +0 -2
- package/mobile/lib/components/ProductTile/ProductTileContent.js.map +0 -1
- package/mobile/lib/components/Tile/Tile.d.ts +0 -5
- package/mobile/lib/components/Tile/Tile.js +0 -6
- package/mobile/lib/components/Tile/Tile.js.map +0 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +0 -6
- package/mobile/lib/components/Tile/TileContent.js +0 -2
- package/mobile/lib/components/Tile/TileContent.js.map +0 -1
- package/mobile/src/components/ProductTile/ProductTile.example.json +0 -44
- package/mobile/src/components/ProductTile/ProductTile.tsx +0 -40
- package/mobile/src/components/ProductTile/ProductTile.ui.json +0 -17
- package/mobile/src/components/ProductTile/ProductTileContent.ts +0 -10
- package/mobile/src/components/Tile/Tile.example.json +0 -28
- package/mobile/src/components/Tile/Tile.tsx +0 -23
- package/mobile/src/components/Tile/Tile.ui.json +0 -17
- package/mobile/src/components/Tile/TileContent.ts +0 -7
- package/src/components/ProductTile/ProductTile.example.json +0 -44
- package/src/components/ProductTile/ProductTile.fixture.mobile.tsx +0 -217
- package/src/components/ProductTile/ProductTile.fixture.tsx +0 -227
- package/src/components/ProductTile/ProductTile.tsx +0 -40
- package/src/components/ProductTile/ProductTile.ui.json +0 -17
- package/src/components/ProductTile/ProductTileContent.ts +0 -10
- package/src/components/Tile/Tile.example.json +0 -28
- package/src/components/Tile/Tile.fixture.mobile.tsx +0 -48
- package/src/components/Tile/Tile.fixture.tsx +0 -146
- package/src/components/Tile/Tile.tsx +0 -23
- package/src/components/Tile/Tile.ui.json +0 -17
- package/src/components/Tile/TileContent.ts +0 -7
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
|
-
import { type Picture } from '../../model/Picture';
|
|
4
|
-
import { type ComplexBenefitContent } from '../../ui-kit/BenefitItem/BenefitItemContent';
|
|
5
|
-
import { type ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
6
|
-
import { ProductTile } from './ProductTile';
|
|
7
|
-
import { type ProductTileContent } from './ProductTileContent';
|
|
8
|
-
|
|
9
|
-
const imageSize = {
|
|
10
|
-
height: 242,
|
|
11
|
-
width: 242,
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const cardWithMoney: Picture = {
|
|
15
|
-
src: 'card-with-diamond.png',
|
|
16
|
-
alt: 'Кредиты в РСХБ',
|
|
17
|
-
format: 'webp',
|
|
18
|
-
size: imageSize,
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const letterWithMoney: Picture = {
|
|
22
|
-
src: 'letter-with-money.png',
|
|
23
|
-
alt: 'Пенсионный кредит в РСХБ',
|
|
24
|
-
format: 'webp',
|
|
25
|
-
size: imageSize,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const letterWithPhone: Picture = {
|
|
29
|
-
src: 'letter-with-phone.png',
|
|
30
|
-
alt: 'Пенсионный кредит в РСХБ',
|
|
31
|
-
format: 'webp',
|
|
32
|
-
size: imageSize,
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const building: Picture = {
|
|
36
|
-
src: 'building.png',
|
|
37
|
-
alt: 'Кредит под залог недвижимости в РСХБ',
|
|
38
|
-
format: 'webp',
|
|
39
|
-
size: imageSize,
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
const benefits: ComplexBenefitContent[] = [
|
|
43
|
-
{
|
|
44
|
-
type: 'default',
|
|
45
|
-
label: 'до 5 млн Р',
|
|
46
|
-
description: 'Кредитный лимит',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
type: 'default',
|
|
50
|
-
label: 'от 12,5%',
|
|
51
|
-
description: 'Процентная ставка',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
type: 'default',
|
|
55
|
-
label: 'до 5 лет',
|
|
56
|
-
description: 'Срок кредитования',
|
|
57
|
-
},
|
|
58
|
-
];
|
|
59
|
-
|
|
60
|
-
const benefits2: ComplexBenefitContent[] = [
|
|
61
|
-
{
|
|
62
|
-
type: 'default',
|
|
63
|
-
label: '1 год',
|
|
64
|
-
description: 'срок программы',
|
|
65
|
-
},
|
|
66
|
-
];
|
|
67
|
-
|
|
68
|
-
const multilineBenefits: ComplexBenefitContent[] = [
|
|
69
|
-
{
|
|
70
|
-
type: 'default',
|
|
71
|
-
label: 'Широкий',
|
|
72
|
-
description: 'выбор платёжных систем',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
type: 'default',
|
|
76
|
-
label: 'Специальные',
|
|
77
|
-
description: 'условия по снятию наличных условия по снятию наличных',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
type: 'default',
|
|
81
|
-
label: '0,5 балла',
|
|
82
|
-
description: '«Урожай» за 100 рублей «Урожай» за 100 рублей',
|
|
83
|
-
},
|
|
84
|
-
];
|
|
85
|
-
|
|
86
|
-
const buttons: ButtonProps[] = [
|
|
87
|
-
{
|
|
88
|
-
text: 'Подробнее',
|
|
89
|
-
href: '/credit-cards',
|
|
90
|
-
version: 'secondary',
|
|
91
|
-
},
|
|
92
|
-
];
|
|
93
|
-
|
|
94
|
-
const buttons2: ButtonProps[] = [
|
|
95
|
-
{
|
|
96
|
-
href: 'https://rshb.ru',
|
|
97
|
-
text: 'Подробнее',
|
|
98
|
-
target: '_blank',
|
|
99
|
-
version: 'secondary',
|
|
100
|
-
},
|
|
101
|
-
];
|
|
102
|
-
|
|
103
|
-
const buttons3: ButtonProps[] = [
|
|
104
|
-
{
|
|
105
|
-
href: 'https://rshb.ru',
|
|
106
|
-
text: 'Оформить',
|
|
107
|
-
target: '_blank',
|
|
108
|
-
version: 'primary',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
href: 'https://rshb.ru',
|
|
112
|
-
text: 'Подробнее',
|
|
113
|
-
target: '_blank',
|
|
114
|
-
version: 'secondary',
|
|
115
|
-
},
|
|
116
|
-
];
|
|
117
|
-
|
|
118
|
-
export const PRODUCT_TILE: ProductTileContent = {
|
|
119
|
-
title: 'Акция! “Кредит На все, что хочется!”',
|
|
120
|
-
headlineVersion: 'S',
|
|
121
|
-
description: 'Потребительский кредит на любые цели, без залога и поручительства',
|
|
122
|
-
benefits,
|
|
123
|
-
buttons: buttons,
|
|
124
|
-
image: cardWithMoney,
|
|
125
|
-
};
|
|
126
|
-
export const PRODUCT_PENSION_TILE: ProductTileContent = {
|
|
127
|
-
title: 'Кредит пенсионный',
|
|
128
|
-
headlineVersion: 'S',
|
|
129
|
-
description: 'Для людей в возрасте до 75 лет',
|
|
130
|
-
benefits,
|
|
131
|
-
buttons: buttons2,
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export default {
|
|
135
|
-
default: (
|
|
136
|
-
<div className="container grid grid-cols-12">
|
|
137
|
-
<ProductTile className="col-span-6" {...PRODUCT_TILE} />
|
|
138
|
-
</div>
|
|
139
|
-
),
|
|
140
|
-
secondary: (
|
|
141
|
-
<div className="container grid grid-cols-12">
|
|
142
|
-
<ProductTile className="col-span-6" {...PRODUCT_TILE} version="secondary" />
|
|
143
|
-
</div>
|
|
144
|
-
),
|
|
145
|
-
pension: (
|
|
146
|
-
<div className="container grid grid-cols-12">
|
|
147
|
-
<ProductTile
|
|
148
|
-
className="col-span-6"
|
|
149
|
-
title="Акция! “Пенсионный кредит”"
|
|
150
|
-
description="Потребительский кредит на любые цели, без залога и поручительства"
|
|
151
|
-
benefits={benefits}
|
|
152
|
-
buttons={buttons2}
|
|
153
|
-
image={letterWithMoney}
|
|
154
|
-
/>
|
|
155
|
-
</div>
|
|
156
|
-
),
|
|
157
|
-
'long-title-benefits-without-image': (
|
|
158
|
-
<div className="container grid grid-cols-12">
|
|
159
|
-
<ProductTile
|
|
160
|
-
className="col-span-6"
|
|
161
|
-
title="Кредит пенсионный"
|
|
162
|
-
description="Для людей в возрасте до 75 лет"
|
|
163
|
-
benefits={multilineBenefits}
|
|
164
|
-
buttons={buttons2}
|
|
165
|
-
/>
|
|
166
|
-
</div>
|
|
167
|
-
),
|
|
168
|
-
'credit-card': (
|
|
169
|
-
<div className="container grid grid-cols-12">
|
|
170
|
-
<ProductTile
|
|
171
|
-
className="col-span-8"
|
|
172
|
-
title="Кредит под залог недвижимости"
|
|
173
|
-
description="Без переоформления залогой недвижимости на банк"
|
|
174
|
-
benefits={benefits}
|
|
175
|
-
buttons={buttons2}
|
|
176
|
-
image={building}
|
|
177
|
-
/>
|
|
178
|
-
</div>
|
|
179
|
-
),
|
|
180
|
-
'pension-credit': (
|
|
181
|
-
<div className="container grid grid-cols-12">
|
|
182
|
-
<ProductTile
|
|
183
|
-
className="col-span-4"
|
|
184
|
-
title="Кредит пенсионный"
|
|
185
|
-
description="Для людей в возрасте до 75 лет"
|
|
186
|
-
benefits={benefits}
|
|
187
|
-
buttons={buttons2}
|
|
188
|
-
/>
|
|
189
|
-
</div>
|
|
190
|
-
),
|
|
191
|
-
'with-add-desc': (
|
|
192
|
-
<div className="container grid grid-cols-12">
|
|
193
|
-
<ProductTile
|
|
194
|
-
className="col-span-6"
|
|
195
|
-
title="Ипотечное страхование"
|
|
196
|
-
description="Финансовая защита заемщиков в случае непредвиденных обстоятельств"
|
|
197
|
-
additionalDescription="Страховая сумма и страховой взнос зависит от остатка задолженности по ипотеке"
|
|
198
|
-
benefits={benefits2}
|
|
199
|
-
buttons={buttons3}
|
|
200
|
-
image={letterWithPhone}
|
|
201
|
-
/>
|
|
202
|
-
</div>
|
|
203
|
-
),
|
|
204
|
-
'stretching with long description': (
|
|
205
|
-
<div className="container grid grid-cols-12">
|
|
206
|
-
<ProductTile
|
|
207
|
-
className="col-span-6"
|
|
208
|
-
{...PRODUCT_TILE}
|
|
209
|
-
benefits={multilineBenefits}
|
|
210
|
-
title="Многострочные преимущества"
|
|
211
|
-
/>
|
|
212
|
-
</div>
|
|
213
|
-
),
|
|
214
|
-
'credit-card-reverse': (
|
|
215
|
-
<div className="container grid grid-cols-12">
|
|
216
|
-
<ProductTile
|
|
217
|
-
className="col-span-8"
|
|
218
|
-
title="Кредит под залог недвижимости"
|
|
219
|
-
description="Без переоформления залогой недвижимости на банк"
|
|
220
|
-
benefits={benefits}
|
|
221
|
-
buttons={buttons2}
|
|
222
|
-
image={building}
|
|
223
|
-
imageOptions={{ directionRight: false }}
|
|
224
|
-
/>
|
|
225
|
-
</div>
|
|
226
|
-
),
|
|
227
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
6
|
-
import { type ProductTileContent } from './ProductTileContent';
|
|
7
|
-
|
|
8
|
-
export interface ProductTileProps extends ProductTileContent, UniBlockProps {}
|
|
9
|
-
|
|
10
|
-
export const ProductTile = JSX<ProductTileProps>(
|
|
11
|
-
({
|
|
12
|
-
className,
|
|
13
|
-
padding,
|
|
14
|
-
headlineVersion = 'S',
|
|
15
|
-
isTabularBenefits = true,
|
|
16
|
-
additionalDescription,
|
|
17
|
-
imageOptions,
|
|
18
|
-
isFullWidthTitle = true,
|
|
19
|
-
...rest
|
|
20
|
-
}) => (
|
|
21
|
-
<BlockWrapper className={className} padding="p-0" {...rest}>
|
|
22
|
-
<BaseProductTile
|
|
23
|
-
className="h-full"
|
|
24
|
-
defaultPadding="p-4xl sm:p-xl"
|
|
25
|
-
padding={padding}
|
|
26
|
-
headlineVersion={headlineVersion}
|
|
27
|
-
isTabularBenefits={isTabularBenefits}
|
|
28
|
-
imageOptions={{ isImageSecondary: true, ...imageOptions }}
|
|
29
|
-
isFullWidthTitle={isFullWidthTitle}
|
|
30
|
-
{...rest}
|
|
31
|
-
>
|
|
32
|
-
{additionalDescription ? (
|
|
33
|
-
<Paragraph size="text-m" font="font-light" color="group-data-primary:text-secondary-text">
|
|
34
|
-
{additionalDescription}
|
|
35
|
-
</Paragraph>
|
|
36
|
-
) : null}
|
|
37
|
-
</BaseProductTile>
|
|
38
|
-
</BlockWrapper>
|
|
39
|
-
),
|
|
40
|
-
);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type AdditionalDescriptionProps } from '../../model/HeadlineType';
|
|
2
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import { type BaseProductTileContent } from '../../ui-kit/BaseProductTile/BaseProductTileContent';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @title Продуктовая плитка
|
|
7
|
-
*/
|
|
8
|
-
export type ProductTileContent = UniBlockContent &
|
|
9
|
-
BaseProductTileContent &
|
|
10
|
-
AdditionalDescriptionProps;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"content": {
|
|
3
|
-
"title": "Плитка",
|
|
4
|
-
"headlineVersion": "S",
|
|
5
|
-
"__html": "<p>Описание</p>",
|
|
6
|
-
"image": {
|
|
7
|
-
"format": "webp",
|
|
8
|
-
"size": {
|
|
9
|
-
"format": "webp",
|
|
10
|
-
"width": 445
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"isDotted": true,
|
|
14
|
-
"listItemSize": "M",
|
|
15
|
-
"items": ["Пункт 1", "Пункт 2", "Пункт 3"],
|
|
16
|
-
"buttons": [
|
|
17
|
-
{
|
|
18
|
-
"text": "Кнопка",
|
|
19
|
-
"version": "primary"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"version": "primary",
|
|
23
|
-
"imageOptions": {
|
|
24
|
-
"directionRight": true,
|
|
25
|
-
"imageAlign": "end"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
|
-
import { type Picture } from '../../model/Picture';
|
|
4
|
-
import { Tile } from './Tile';
|
|
5
|
-
import { type TileContent } from './TileContent';
|
|
6
|
-
|
|
7
|
-
const image: Picture = {
|
|
8
|
-
src: 'from-5-5-percent.svg',
|
|
9
|
-
format: 'webp',
|
|
10
|
-
size: {
|
|
11
|
-
width: 145,
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const TILE: TileContent = {
|
|
16
|
-
title: 'Кредиты',
|
|
17
|
-
isDotted: true,
|
|
18
|
-
listItemSize: 'L',
|
|
19
|
-
items: ['До 3 млн ₽', 'до 5 лет'],
|
|
20
|
-
__html: undefined,
|
|
21
|
-
buttons: [
|
|
22
|
-
{
|
|
23
|
-
text: 'Подробнее',
|
|
24
|
-
href: '/credit-cards',
|
|
25
|
-
version: 'secondary',
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
image,
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default {
|
|
32
|
-
default: (
|
|
33
|
-
<div className="container grid grid-cols-12">
|
|
34
|
-
<Tile className="col-span-12" {...TILE} />
|
|
35
|
-
</div>
|
|
36
|
-
),
|
|
37
|
-
rightImage: (
|
|
38
|
-
<div className="container grid grid-cols-12">
|
|
39
|
-
<Tile
|
|
40
|
-
className="col-span-12"
|
|
41
|
-
{...TILE}
|
|
42
|
-
imageOptions={{
|
|
43
|
-
isImageAlwaysOnRight: true,
|
|
44
|
-
}}
|
|
45
|
-
/>
|
|
46
|
-
</div>
|
|
47
|
-
),
|
|
48
|
-
};
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { type Picture } from '../../model/Picture';
|
|
2
|
-
import '../../setup-fixture';
|
|
3
|
-
import { Tile } from './Tile';
|
|
4
|
-
import { type TileContent } from './TileContent';
|
|
5
|
-
|
|
6
|
-
const image: Picture = {
|
|
7
|
-
src: 'from-5-5-percent.svg',
|
|
8
|
-
format: 'webp',
|
|
9
|
-
size: {
|
|
10
|
-
width: 445,
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const image2: Picture = {
|
|
15
|
-
src: 'credit-card-1.png',
|
|
16
|
-
format: 'webp',
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const image3: Picture = {
|
|
20
|
-
src: 'column-1.png',
|
|
21
|
-
format: 'webp',
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const image4: Picture = {
|
|
25
|
-
src: 'globe-1.png',
|
|
26
|
-
format: 'webp',
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const TILE: TileContent = {
|
|
30
|
-
title: 'Кредиты',
|
|
31
|
-
isDotted: true,
|
|
32
|
-
listItemSize: 'L',
|
|
33
|
-
items: ['До 3 млн ₽', 'до 5 лет'],
|
|
34
|
-
buttons: [
|
|
35
|
-
{
|
|
36
|
-
text: 'Подробнее',
|
|
37
|
-
href: '/credit-cards',
|
|
38
|
-
version: 'secondary',
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
image,
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export const TILE_PREMIUM: TileContent = {
|
|
45
|
-
title: 'Премиальные продукты',
|
|
46
|
-
__html:
|
|
47
|
-
'<p>Выделенные зоны обслуживания и персональный финансовый консультант. <strong>Полный спектр</strong> премиальных продуктов, <u>подчеркивающих</u> ваш статус</p>',
|
|
48
|
-
buttons: [
|
|
49
|
-
{
|
|
50
|
-
href: 'https://rshb.ru',
|
|
51
|
-
text: 'Подробнее',
|
|
52
|
-
target: '_blank',
|
|
53
|
-
version: 'secondary',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
image: image3,
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const tags = ['Tag #1', 'Tag #2', 'Tag #3'];
|
|
60
|
-
|
|
61
|
-
export default {
|
|
62
|
-
default: (
|
|
63
|
-
<div className="container grid grid-cols-12">
|
|
64
|
-
<Tile className="col-span-8" {...TILE} />
|
|
65
|
-
</div>
|
|
66
|
-
),
|
|
67
|
-
mortgage: (
|
|
68
|
-
<div className="container grid grid-cols-12">
|
|
69
|
-
<Tile
|
|
70
|
-
version="secondary"
|
|
71
|
-
className="col-span-4"
|
|
72
|
-
title="Ипотека"
|
|
73
|
-
items={[
|
|
74
|
-
'Качественные фермерские продукты напрямую от производителей',
|
|
75
|
-
'Самая большая база сельских туров по России',
|
|
76
|
-
'Площадки для создания комфортной жизни за городом',
|
|
77
|
-
'Подробная база вакансий для жителей сельской местности',
|
|
78
|
-
]}
|
|
79
|
-
buttons={[
|
|
80
|
-
{
|
|
81
|
-
href: 'https://rshb.ru',
|
|
82
|
-
text: 'Подробнее',
|
|
83
|
-
target: '_blank',
|
|
84
|
-
version: 'secondary',
|
|
85
|
-
},
|
|
86
|
-
]}
|
|
87
|
-
/>
|
|
88
|
-
</div>
|
|
89
|
-
),
|
|
90
|
-
'credit-card': (
|
|
91
|
-
<div className="container grid grid-cols-12">
|
|
92
|
-
<Tile
|
|
93
|
-
className="col-span-6"
|
|
94
|
-
title="Банковские пластиковые карты"
|
|
95
|
-
items={['Счета в разных валютах', 'Бесплатное обслуживание', 'Кэшбэк до 15% от покупок']}
|
|
96
|
-
buttons={[
|
|
97
|
-
{
|
|
98
|
-
href: 'https://rshb.ru',
|
|
99
|
-
text: 'Подробнее',
|
|
100
|
-
target: '_blank',
|
|
101
|
-
version: 'secondary',
|
|
102
|
-
},
|
|
103
|
-
]}
|
|
104
|
-
image={image2}
|
|
105
|
-
/>
|
|
106
|
-
</div>
|
|
107
|
-
),
|
|
108
|
-
premium: (
|
|
109
|
-
<div className="container grid grid-cols-12">
|
|
110
|
-
<Tile className="col-span-6" {...TILE_PREMIUM} />
|
|
111
|
-
</div>
|
|
112
|
-
),
|
|
113
|
-
ecosystem: (
|
|
114
|
-
<div className="container grid grid-cols-12">
|
|
115
|
-
<Tile
|
|
116
|
-
className="col-span-12"
|
|
117
|
-
title="Экосистема «СВОЕ», созданная для людей"
|
|
118
|
-
items={[
|
|
119
|
-
'Качественные фермерские продукты напрямую от производителей',
|
|
120
|
-
'Самая большая база сельских туров по России',
|
|
121
|
-
'Площадки для создания комфортной жизни за городом',
|
|
122
|
-
'Подробная база вакансий для жителей сельской местности',
|
|
123
|
-
]}
|
|
124
|
-
buttons={[
|
|
125
|
-
{
|
|
126
|
-
href: 'https://rshb.ru',
|
|
127
|
-
text: 'Подробнее',
|
|
128
|
-
target: '_blank',
|
|
129
|
-
version: 'secondary',
|
|
130
|
-
},
|
|
131
|
-
]}
|
|
132
|
-
image={image4}
|
|
133
|
-
/>
|
|
134
|
-
</div>
|
|
135
|
-
),
|
|
136
|
-
tags: (
|
|
137
|
-
<div className="container grid grid-cols-12">
|
|
138
|
-
<Tile className="col-span-8" {...TILE} tags={tags} />
|
|
139
|
-
</div>
|
|
140
|
-
),
|
|
141
|
-
'direction left': (
|
|
142
|
-
<div className="container grid grid-cols-12">
|
|
143
|
-
<Tile className="col-span-8" imageOptions={{ directionRight: false }} {...TILE} />
|
|
144
|
-
</div>
|
|
145
|
-
),
|
|
146
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
|
|
4
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import { type TileContent } from './TileContent';
|
|
6
|
-
|
|
7
|
-
export interface TileProps extends TileContent, UniBlockProps {}
|
|
8
|
-
|
|
9
|
-
export const Tile = JSX<TileProps>(
|
|
10
|
-
({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (
|
|
11
|
-
<BlockWrapper className={className} padding="p-0" {...rest}>
|
|
12
|
-
<BaseProductTile
|
|
13
|
-
className="h-full"
|
|
14
|
-
defaultPadding="p-xl"
|
|
15
|
-
padding={padding}
|
|
16
|
-
headlineVersion={headlineVersion}
|
|
17
|
-
listItemSize={listItemSize}
|
|
18
|
-
isFullWidthTitle={false}
|
|
19
|
-
{...rest}
|
|
20
|
-
/>
|
|
21
|
-
</BlockWrapper>
|
|
22
|
-
),
|
|
23
|
-
);
|