@redneckz/wildless-cms-uni-blocks 0.14.49 → 0.14.50
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 +27 -34
- package/bundle/bundle.umd.min.js +1 -1
- 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/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/ProductBlock/ProductBlock.js +1 -13
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- 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/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/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/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 +27 -34
- package/mobile/bundle/bundle.umd.min.js +1 -1
- 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/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -13
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- 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/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -14
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- 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/Blocks.ts +0 -4
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +13 -32
- 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/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -4
- 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/MortgageFiltration/MortgageFiltration.fixture.mobile.tsx +8 -8
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +8 -8
- 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/VerticalLayout/VerticalLayout.fixture.mobile.tsx +3 -3
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +9 -10
- 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,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
|
-
);
|