@redneckz/wildless-cms-uni-blocks 0.3.10 → 0.3.11
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/bundle.umd.js +1 -1
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +2 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +2 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/src/components/Header/Header.tsx +1 -1
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +11 -1
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +5 -5
- package/package.json +1 -1
- package/src/components/Header/Header.mobile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.example.json +11 -1
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +57 -32
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +57 -104
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +5 -5
- package/src/components/ProductBlock/ProductBlockInner.tsx +4 -4
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
2
|
import { context } from '../../setup-fixture';
|
|
3
3
|
import { ProductBlock } from './ProductBlock';
|
|
4
|
+
import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
|
|
5
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
6
|
|
|
5
7
|
const image: Picture = {
|
|
6
8
|
src: 'money-1.png',
|
|
@@ -12,6 +14,53 @@ const image: Picture = {
|
|
|
12
14
|
},
|
|
13
15
|
};
|
|
14
16
|
|
|
17
|
+
const breadcrumbs = [
|
|
18
|
+
{
|
|
19
|
+
text: 'Главная',
|
|
20
|
+
href: '/',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
text: 'Кредитные карты',
|
|
24
|
+
href: '/credit',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
text: 'Кредитная карта Своя Union Pay',
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
const benefits = [
|
|
32
|
+
{
|
|
33
|
+
label: 'До 5 млн ₽',
|
|
34
|
+
description: 'Кредитный лимит',
|
|
35
|
+
icon: 'EmptyWalletIcon',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: 'От 16,9%',
|
|
39
|
+
description: 'Ставка по кредиту',
|
|
40
|
+
icon: 'PercentageSquareIcon',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: 'До 5 лет',
|
|
44
|
+
description: 'Срок кредитования',
|
|
45
|
+
icon: 'CalendarIcon',
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
const buttons = [
|
|
50
|
+
{
|
|
51
|
+
href: 'https://rshb.ru',
|
|
52
|
+
text: 'Оформить карту',
|
|
53
|
+
target: '_blank',
|
|
54
|
+
version: 'primary',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
href: 'https://rshb.ru',
|
|
58
|
+
text: 'Подробнее',
|
|
59
|
+
target: '_blank',
|
|
60
|
+
version: 'secondary',
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
|
|
15
64
|
export default {
|
|
16
65
|
default: (
|
|
17
66
|
<div className="container grid grid-cols-12">
|
|
@@ -21,50 +70,9 @@ export default {
|
|
|
21
70
|
title={'Потребительский кредит наличными'}
|
|
22
71
|
headingType="h2"
|
|
23
72
|
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
24
|
-
breadcrumbs={
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
]}
|
|
73
|
+
breadcrumbs={breadcrumbs}
|
|
74
|
+
benefits={benefits as Benefit[]}
|
|
75
|
+
buttons={buttons as ButtonWithIconProps[]}
|
|
68
76
|
image={image}
|
|
69
77
|
/>
|
|
70
78
|
</div>
|
|
@@ -78,51 +86,9 @@ export default {
|
|
|
78
86
|
headingType="h2"
|
|
79
87
|
version={'secondary'}
|
|
80
88
|
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
81
|
-
breadcrumbs={
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
href: '/',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
text: 'Кредитные карты',
|
|
88
|
-
href: '/credit',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
text: 'Кредитная карта Своя Union Pay',
|
|
92
|
-
href: '#',
|
|
93
|
-
},
|
|
94
|
-
]}
|
|
95
|
-
benefits={[
|
|
96
|
-
{
|
|
97
|
-
label: 'До 5 млн ₽',
|
|
98
|
-
description: 'Кредитный лимит',
|
|
99
|
-
icon: 'EmptyWalletWhiteIcon',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
label: 'От 16,9%',
|
|
103
|
-
description: 'Ставка по кредиту',
|
|
104
|
-
icon: 'PercentageSquareWhiteIcon',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: 'До 5 лет',
|
|
108
|
-
description: 'Срок кредитования',
|
|
109
|
-
icon: 'CalendarWhiteIcon',
|
|
110
|
-
},
|
|
111
|
-
]}
|
|
112
|
-
buttons={[
|
|
113
|
-
{
|
|
114
|
-
href: 'https://rshb.ru',
|
|
115
|
-
text: 'Оформить карту',
|
|
116
|
-
target: '_blank',
|
|
117
|
-
version: 'secondary',
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
href: 'https://rshb.ru',
|
|
121
|
-
text: 'Подробнее',
|
|
122
|
-
target: '_blank',
|
|
123
|
-
version: 'primary',
|
|
124
|
-
},
|
|
125
|
-
]}
|
|
89
|
+
breadcrumbs={breadcrumbs}
|
|
90
|
+
benefits={benefits as Benefit[]}
|
|
91
|
+
buttons={buttons as ButtonWithIconProps[]}
|
|
126
92
|
image={image}
|
|
127
93
|
/>
|
|
128
94
|
</div>
|
|
@@ -134,27 +100,14 @@ export default {
|
|
|
134
100
|
context={context}
|
|
135
101
|
title={'Оплата проходит \nв 180 странах мира'}
|
|
136
102
|
headingType="h2"
|
|
137
|
-
breadcrumbs={
|
|
103
|
+
breadcrumbs={breadcrumbs}
|
|
138
104
|
description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
|
|
139
105
|
items={[
|
|
140
106
|
'Совершайте любые личные покупки',
|
|
141
107
|
'Используйте корпоративную карту как обычную дебетовую, если вы ИП',
|
|
142
108
|
'Расходы для бизнеса на УСН 15% позволят снизить налоговую базу',
|
|
143
109
|
]}
|
|
144
|
-
buttons={[
|
|
145
|
-
{
|
|
146
|
-
href: 'https://rshb.ru',
|
|
147
|
-
text: 'Оформить карту',
|
|
148
|
-
target: '_blank',
|
|
149
|
-
version: 'primary',
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
href: 'https://rshb.ru',
|
|
153
|
-
text: 'Подробнее',
|
|
154
|
-
target: '_blank',
|
|
155
|
-
version: 'secondary',
|
|
156
|
-
},
|
|
157
|
-
]}
|
|
110
|
+
buttons={buttons as ButtonWithIconProps[]}
|
|
158
111
|
image={image}
|
|
159
112
|
/>
|
|
160
113
|
</div>
|
|
@@ -34,7 +34,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
34
34
|
<Heading
|
|
35
35
|
headingType={headingType}
|
|
36
36
|
title={title}
|
|
37
|
-
className=
|
|
37
|
+
className="whitespace-pre-wrap max-w-[600px]"
|
|
38
38
|
/>
|
|
39
39
|
)
|
|
40
40
|
}
|
|
@@ -48,11 +48,11 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
48
48
|
) : null
|
|
49
49
|
}
|
|
50
50
|
>
|
|
51
|
-
{description ? <Description className="
|
|
52
|
-
{benefits?.length ? (
|
|
53
|
-
<div className="mt-
|
|
51
|
+
{description ? <Description className="mt-3" description={description} /> : null}
|
|
52
|
+
{benefits?.filter((items) => items.label)?.length ? (
|
|
53
|
+
<div className="mt-3">{benefits.map((_, i) => renderBenefit(_, i, version))}</div>
|
|
54
54
|
) : null}
|
|
55
|
-
{items?.length ? <List items={items} /> : null}
|
|
55
|
+
{items?.length ? <List className="mt-3" items={items} /> : null}
|
|
56
56
|
</BaseTile>
|
|
57
57
|
</div>
|
|
58
58
|
{renderImage(image)}
|
|
@@ -34,7 +34,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
34
34
|
<Heading
|
|
35
35
|
headingType={headingType}
|
|
36
36
|
title={title}
|
|
37
|
-
className=
|
|
37
|
+
className="whitespace-pre-wrap max-w-[600px]"
|
|
38
38
|
/>
|
|
39
39
|
)
|
|
40
40
|
}
|
|
@@ -45,10 +45,10 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
|
|
|
45
45
|
}
|
|
46
46
|
>
|
|
47
47
|
{description && (
|
|
48
|
-
<Description className="text-m-base max-w-[600px]" description={description} />
|
|
48
|
+
<Description className="text-m-base mt-4 max-w-[600px]" description={description} />
|
|
49
49
|
)}
|
|
50
|
-
{benefits?.length ? (
|
|
51
|
-
<div className="flex gap-6 mt-6
|
|
50
|
+
{benefits?.filter((items) => items.label)?.length ? (
|
|
51
|
+
<div className="flex gap-6 mt-6">
|
|
52
52
|
{benefits.map((_, i) => renderBenefit(_, i, version))}
|
|
53
53
|
</div>
|
|
54
54
|
) : null}
|