@redneckz/wildless-cms-uni-blocks 0.14.28 → 0.14.29
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.28.js +28 -0
- package/bin/migration-scripts/0.14.29.js +105 -0
- package/bin/migration-scripts/0.14.4.js +4 -4
- package/bin/utils.js +20 -9
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +41 -67
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/bundle/model/HeadlineType.d.ts +0 -8
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/dist/components/Footer/SocialMedia.js +2 -2
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/dist/components/Headline/headlineVersionStyles.js +1 -12
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/dist/model/HeadlineType.d.ts +0 -8
- package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/dist/ui-kit/List/List.js +1 -1
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListItem.js +1 -1
- package/dist/ui-kit/List/ListItem.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 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +0 -2
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +0 -2
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +2 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/lib/components/Footer/SocialMedia.js +2 -2
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/lib/components/Headline/headlineVersionStyles.js +0 -11
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +1 -0
- package/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/lib/model/HeadlineType.d.ts +0 -8
- package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/lib/ui-kit/List/List.js +1 -1
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListItem.js +1 -1
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +41 -64
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/bundle/model/HeadlineType.d.ts +0 -8
- package/mobile/dist/components/Blocks.js +0 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/dist/components/Footer/SocialMedia.js +2 -2
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/dist/components/Headline/headlineVersionStyles.js +1 -12
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/dist/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/dist/model/HeadlineType.d.ts +0 -8
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/dist/ui-kit/List/List.js +1 -1
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +0 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +3 -2
- package/mobile/lib/components/Footer/SocialMedia.js +2 -2
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -2
- package/mobile/lib/components/Headline/headlineVersionStyles.js +0 -11
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/lib/components/RichTextBlock/RichTextBlockContent.d.ts +2 -1
- package/mobile/lib/model/HeadlineType.d.ts +0 -8
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/lib/ui-kit/List/List.js +1 -1
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/src/components/Blocks.ts +0 -2
- package/mobile/src/components/Carousel/Carousel.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
- package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
- package/mobile/src/components/Headline/headlineVersionStyles.ts +1 -13
- package/mobile/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
- package/mobile/src/model/HeadlineType.ts +0 -10
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
- package/mobile/src/ui-kit/List/List.tsx +1 -1
- package/mobile/src/ui-kit/List/ListItem.tsx +15 -17
- package/package.json +1 -1
- package/src/components/Blocks.mobile.ts +0 -2
- package/src/components/Blocks.ts +0 -4
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +0 -34
- package/src/components/Carousel/Carousel.fixture.tsx +2 -52
- package/src/components/Carousel/Carousel.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +44 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +20 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +8 -1
- package/src/components/Footer/SocialMedia.tsx +2 -2
- package/src/components/Headline/headlineVersionStyles.ts +1 -13
- package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +15 -0
- package/src/components/RichTextBlock/RichTextBlockContent.ts +2 -1
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +4 -12
- package/src/model/HeadlineType.ts +0 -10
- package/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
- package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
- package/src/ui-kit/List/List.tsx +1 -1
- package/src/ui-kit/List/ListItem.tsx +15 -17
- package/bin/migration-scripts/0.14.12.js +0 -34
- package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +0 -13
- package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +0 -13
- package/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.fixture.d.ts +0 -8
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +0 -26
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -8
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +0 -5
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +0 -24
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +0 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +0 -27
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +0 -2
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +0 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +0 -5
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +0 -6
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +0 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +0 -6
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +0 -2
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +0 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -20
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +0 -92
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +0 -96
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +0 -115
- package/src/components/CarouselProductCard/CarouselProductCard.ui.json +0 -21
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +0 -39
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +0 -6
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.fixture.tsx +0 -26
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +0 -15
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +0 -7
- package/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +0 -7
|
@@ -6,17 +6,13 @@ import { BANK_HISTORY_CARD } from '../CarouselBankHistoryCard/CarouselBankHistor
|
|
|
6
6
|
import { CARD, CARD_MINI, CARD_NEW } from '../CarouselCard/CarouselCard.fixture';
|
|
7
7
|
import { CATALOG_CARD, CATALOG_CARD_NEW } from '../CarouselCatalogCard/CarouselCatalogCard.fixture';
|
|
8
8
|
import { INVESTMENT_CARD_WITH_SINGLE_COLUMN } from '../CarouselInvestmentCard/CarouselInvestmentCard.fixture';
|
|
9
|
-
import {
|
|
10
|
-
PRODUCT_CARD,
|
|
11
|
-
PRODUCT_CARD_SMALL,
|
|
12
|
-
} from '../CarouselProductCard/CarouselProductCard.fixture';
|
|
13
9
|
import {
|
|
14
10
|
CAROUSEL_RECOMMENDATION_CARD_BENEFITS,
|
|
15
11
|
CAROUSEL_RECOMMENDATION_CARD_SECONDARY,
|
|
16
12
|
CAROUSEL_RECOMMENDATION_CARD_WITHOUT_LIST,
|
|
17
13
|
} from '../CarouselRecommendationCard/CarouselRecommendationCard.fixture';
|
|
18
|
-
import { RICH_CARD } from '../CarouselRichTextCard/CarouselRichTextCard.fixture';
|
|
19
14
|
import { TARIFFS_CARD, TARIFFS_CARD_HIT } from '../CarouselTariffsCard/CarouselTariffsCard.fixture';
|
|
15
|
+
import { RICH_CARD } from '../RichTextBlock/RichTextBlock.fixture';
|
|
20
16
|
import { Carousel } from './Carousel';
|
|
21
17
|
|
|
22
18
|
const catalogImage: Picture = {
|
|
@@ -114,52 +110,6 @@ export default {
|
|
|
114
110
|
/>
|
|
115
111
|
</div>
|
|
116
112
|
),
|
|
117
|
-
product: (
|
|
118
|
-
<div className="container grid grid-cols-12">
|
|
119
|
-
<Carousel
|
|
120
|
-
className="col-span-12"
|
|
121
|
-
visibleItemCount={1}
|
|
122
|
-
block={{
|
|
123
|
-
type: 'Carousel',
|
|
124
|
-
blocks: new Array(6).fill({
|
|
125
|
-
type: 'CarouselProductCard',
|
|
126
|
-
content: PRODUCT_CARD,
|
|
127
|
-
}),
|
|
128
|
-
}}
|
|
129
|
-
options={options}
|
|
130
|
-
/>
|
|
131
|
-
</div>
|
|
132
|
-
),
|
|
133
|
-
'mini-product': (
|
|
134
|
-
<div className="container grid grid-cols-12">
|
|
135
|
-
<Carousel
|
|
136
|
-
className="col-span-12"
|
|
137
|
-
visibleItemCount={3}
|
|
138
|
-
block={{
|
|
139
|
-
type: 'Carousel',
|
|
140
|
-
blocks: [
|
|
141
|
-
{
|
|
142
|
-
type: 'CarouselProductCard',
|
|
143
|
-
content: PRODUCT_CARD,
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
type: 'CarouselProductCard',
|
|
147
|
-
content: PRODUCT_CARD_SMALL,
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
type: 'CarouselProductCard',
|
|
151
|
-
content: PRODUCT_CARD_SMALL,
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
type: 'CarouselProductCard',
|
|
155
|
-
content: PRODUCT_CARD_SMALL,
|
|
156
|
-
},
|
|
157
|
-
],
|
|
158
|
-
}}
|
|
159
|
-
options={options}
|
|
160
|
-
/>
|
|
161
|
-
</div>
|
|
162
|
-
),
|
|
163
113
|
investment: (
|
|
164
114
|
<div className="container grid grid-cols-12">
|
|
165
115
|
<Carousel
|
|
@@ -254,7 +204,7 @@ export default {
|
|
|
254
204
|
block={{
|
|
255
205
|
type: 'Carousel',
|
|
256
206
|
blocks: new Array(6).fill({
|
|
257
|
-
type: '
|
|
207
|
+
type: 'RichTextBlock',
|
|
258
208
|
content: RICH_CARD,
|
|
259
209
|
}),
|
|
260
210
|
}}
|
|
@@ -178,4 +178,48 @@ export default {
|
|
|
178
178
|
/>
|
|
179
179
|
</div>
|
|
180
180
|
),
|
|
181
|
+
additionalDescription: (
|
|
182
|
+
<div className="container grid grid-cols-12">
|
|
183
|
+
<CarouselRecommendationCard
|
|
184
|
+
className="col-span-6"
|
|
185
|
+
align="text-center"
|
|
186
|
+
title="Более 5000 товаров"
|
|
187
|
+
description="Время копить: ставка растет в зависимости от срока нахождения средств на Счете!"
|
|
188
|
+
items={items}
|
|
189
|
+
isDotted={false}
|
|
190
|
+
icon={iconCoin}
|
|
191
|
+
imageOptions={{ isImageAlwaysOnRight: false }}
|
|
192
|
+
additionalDescription="Дополнительное описание"
|
|
193
|
+
socialMedia={[
|
|
194
|
+
{
|
|
195
|
+
href: 'https://rshb.ru',
|
|
196
|
+
text: 'Подробнее',
|
|
197
|
+
version: 'gray',
|
|
198
|
+
},
|
|
199
|
+
]}
|
|
200
|
+
/>
|
|
201
|
+
</div>
|
|
202
|
+
),
|
|
203
|
+
leftImage: (
|
|
204
|
+
<div className="container grid grid-cols-12">
|
|
205
|
+
<CarouselRecommendationCard
|
|
206
|
+
className="col-span-6"
|
|
207
|
+
align="text-center"
|
|
208
|
+
title="Более 5000 товаров"
|
|
209
|
+
description="Время копить: ставка растет в зависимости от срока нахождения средств на Счете!"
|
|
210
|
+
items={items}
|
|
211
|
+
isDotted={false}
|
|
212
|
+
icon={iconCoin}
|
|
213
|
+
imageOptions={{ isImageAlwaysOnRight: false, directionRight: false }}
|
|
214
|
+
additionalDescription="Дополнительное описание"
|
|
215
|
+
socialMedia={[
|
|
216
|
+
{
|
|
217
|
+
href: 'https://rshb.ru',
|
|
218
|
+
text: 'Подробнее',
|
|
219
|
+
version: 'gray',
|
|
220
|
+
},
|
|
221
|
+
]}
|
|
222
|
+
/>
|
|
223
|
+
</div>
|
|
224
|
+
),
|
|
181
225
|
};
|
|
@@ -7,6 +7,8 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
7
7
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
8
|
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
|
|
9
9
|
import { List } from '../../ui-kit/List/List';
|
|
10
|
+
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
11
|
+
import { type TextAlign } from '../../ui-kit/Text/TextProps';
|
|
10
12
|
import { isIcon } from '../../utils/isIcon';
|
|
11
13
|
import { style } from '../../utils/style';
|
|
12
14
|
import { SocialMedia } from '../Footer/SocialMedia';
|
|
@@ -22,9 +24,11 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
22
24
|
className,
|
|
23
25
|
padding,
|
|
24
26
|
description,
|
|
27
|
+
additionalDescription,
|
|
25
28
|
href,
|
|
26
29
|
icon,
|
|
27
30
|
items = [],
|
|
31
|
+
isDotted,
|
|
28
32
|
listItemSize = 'S',
|
|
29
33
|
socialMedia = [],
|
|
30
34
|
target,
|
|
@@ -54,7 +58,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
54
58
|
<Headline
|
|
55
59
|
title={title}
|
|
56
60
|
description={description}
|
|
57
|
-
headlineVersion="
|
|
61
|
+
headlineVersion="XS"
|
|
58
62
|
isEmbedded={true}
|
|
59
63
|
align={align}
|
|
60
64
|
/>
|
|
@@ -68,12 +72,26 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
68
72
|
}
|
|
69
73
|
isImageAlwaysOnRight={isImageAlwaysOnRight}
|
|
70
74
|
isImageSecondary={isImageSecondary}
|
|
75
|
+
imageAlign="center"
|
|
71
76
|
>
|
|
72
77
|
<BenefitsList benefits={benefits} />
|
|
73
|
-
<List items={items} listItemSize={listItemSize} />
|
|
78
|
+
<List items={items} listItemSize={listItemSize} isDotted={isDotted} />
|
|
79
|
+
{renderAdditionalDescription(additionalDescription, align)}
|
|
74
80
|
</BaseTile>
|
|
75
81
|
</LinkWrapper>
|
|
76
82
|
</BlockWrapper>
|
|
77
83
|
);
|
|
78
84
|
},
|
|
79
85
|
);
|
|
86
|
+
|
|
87
|
+
const renderAdditionalDescription = (additionalDescription?: string, align?: TextAlign) =>
|
|
88
|
+
additionalDescription ? (
|
|
89
|
+
<Paragraph
|
|
90
|
+
size="text-m"
|
|
91
|
+
font="font-light"
|
|
92
|
+
color="text-secondary-text group-data-secondary:text-white/80"
|
|
93
|
+
align={align}
|
|
94
|
+
>
|
|
95
|
+
{additionalDescription}
|
|
96
|
+
</Paragraph>
|
|
97
|
+
) : null;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type BulletsProps } from '../../model/Bullets';
|
|
2
|
+
import {
|
|
3
|
+
type AdditionalDescriptionProps,
|
|
4
|
+
type AlignProps,
|
|
5
|
+
type HeadlineCommonProps,
|
|
6
|
+
} from '../../model/HeadlineType';
|
|
2
7
|
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
3
8
|
import { type LinkCommonProps } from '../../model/LinkProps';
|
|
4
9
|
import { type IconProps } from '../../model/Picture';
|
|
@@ -12,9 +17,11 @@ import { type ListContent } from '../../ui-kit/List/ListContent';
|
|
|
12
17
|
*/
|
|
13
18
|
export type CarouselRecommendationCardContent = UniBlockContent &
|
|
14
19
|
HeadlineCommonProps &
|
|
20
|
+
AdditionalDescriptionProps &
|
|
15
21
|
ListContent &
|
|
16
22
|
IconProps &
|
|
17
23
|
LinkCommonProps &
|
|
24
|
+
BulletsProps &
|
|
18
25
|
AlignProps &
|
|
19
26
|
BenefitsListContent & {
|
|
20
27
|
/** @title Соц сети */
|
|
@@ -33,7 +33,7 @@ export const SocialMedia = JSX<SocialMediaProps>(
|
|
|
33
33
|
..._,
|
|
34
34
|
...buttonText,
|
|
35
35
|
icon: { ...iconCustom, iconVersion: 'color' },
|
|
36
|
-
version,
|
|
36
|
+
version: _?.version ?? version,
|
|
37
37
|
};
|
|
38
38
|
});
|
|
39
39
|
|
|
@@ -47,7 +47,7 @@ export const SocialMedia = JSX<SocialMediaProps>(
|
|
|
47
47
|
<div className={style('flex flex-col gap-xs', className)}>
|
|
48
48
|
<div className="flex gap-xs">
|
|
49
49
|
{renderButtonsSection(buttons, {
|
|
50
|
-
className: stretched ? '
|
|
50
|
+
className: style(stretched || hasText ? 'basis-full' : ''),
|
|
51
51
|
buttonClassName,
|
|
52
52
|
})}
|
|
53
53
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type HeadlineVersion } from '../../model/HeadlineType';
|
|
2
2
|
import { type HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
|
|
3
3
|
import { type FontWeight, type TextSize, type TitleSize } from '../../ui-kit/Text/TextProps';
|
|
4
4
|
|
|
@@ -48,15 +48,3 @@ export const headlineVersionStyles: Record<
|
|
|
48
48
|
descriptionStyle: 'mt-xs',
|
|
49
49
|
},
|
|
50
50
|
};
|
|
51
|
-
|
|
52
|
-
// TODO: Move to Gallery and rename
|
|
53
|
-
export const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string> = {
|
|
54
|
-
H6: 'text-h6',
|
|
55
|
-
XL_L: 'text-xl-light',
|
|
56
|
-
XL_R: 'text-xl',
|
|
57
|
-
L_L: 'text-l-light',
|
|
58
|
-
L_R: 'text-l',
|
|
59
|
-
M: 'text-m-light',
|
|
60
|
-
S: 'text-s-light',
|
|
61
|
-
XS: 'text-xs-light',
|
|
62
|
-
};
|
|
@@ -37,6 +37,21 @@ export const RICH_TEXT_SEPARATOR: RichTextBlockContent = {
|
|
|
37
37
|
'</table>',
|
|
38
38
|
richVersion: 'horizontal-separator',
|
|
39
39
|
};
|
|
40
|
+
export const RICH_CARD: RichTextBlockContent = {
|
|
41
|
+
padding: 'p-xl',
|
|
42
|
+
__html:
|
|
43
|
+
'<h4>Заголовок 4</h4><p><br></p>' +
|
|
44
|
+
'<table>' +
|
|
45
|
+
'<thead><tr><th><p>Эмитент</p></th><th><p>Код</p></th></tr></thead>' +
|
|
46
|
+
'<tbody>' +
|
|
47
|
+
'<tr><td><p>ПАО «Полюс»</p></td><td><p>PLZL</p></td></tr>' +
|
|
48
|
+
'<tr><td><p>Полиметалл Интернэшнл плс</p></td><td><p>POLY</p></td></tr>' +
|
|
49
|
+
'<tr><td><p>ПАО «ГМК «Норильский никель»<br></p></td><td><p>GMKN<br></p></td></tr>' +
|
|
50
|
+
'<tr><td><p>ПАО «Лензолото»<br></p></td><td><p>LNZL<br></p></td></tr>' +
|
|
51
|
+
'</tbody>' +
|
|
52
|
+
'</table>',
|
|
53
|
+
richVersion: 'striped',
|
|
54
|
+
};
|
|
40
55
|
|
|
41
56
|
export default {
|
|
42
57
|
default: (
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
1
2
|
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @title Форматированный текст
|
|
5
6
|
*/
|
|
6
|
-
export type RichTextBlockContent = RichTextProps;
|
|
7
|
+
export type RichTextBlockContent = UniBlockContent & RichTextProps;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import '../../setup-fixture';
|
|
2
|
-
|
|
3
1
|
import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
2
|
+
import '../../setup-fixture';
|
|
4
3
|
import { Blocks } from '../Blocks';
|
|
5
4
|
import { type LinkDocsContent } from '../LinkDocs/LinkDocsContent';
|
|
6
5
|
import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
@@ -21,22 +20,15 @@ const options = {
|
|
|
21
20
|
blocksRegistry: Blocks,
|
|
22
21
|
} as BlockRendererOptions;
|
|
23
22
|
|
|
24
|
-
const
|
|
23
|
+
const carouselRecommendationCard = {
|
|
25
24
|
content: {
|
|
26
|
-
headlineSmallVersion: 'L_R',
|
|
27
25
|
isDotted: true,
|
|
28
26
|
title: 'Новость 1',
|
|
29
27
|
version: 'primary',
|
|
30
28
|
additionalDescription: '12 сентября 2022',
|
|
31
|
-
icon: {
|
|
32
|
-
size: {
|
|
33
|
-
width: 150,
|
|
34
|
-
height: 150,
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
29
|
},
|
|
38
30
|
style: ['col-span-12'],
|
|
39
|
-
type: '
|
|
31
|
+
type: 'CarouselRecommendationCard',
|
|
40
32
|
};
|
|
41
33
|
|
|
42
34
|
export default {
|
|
@@ -223,7 +215,7 @@ export default {
|
|
|
223
215
|
},
|
|
224
216
|
style: ['col-span-12'],
|
|
225
217
|
type: 'Carousel',
|
|
226
|
-
blocks: new Array(6).fill(
|
|
218
|
+
blocks: new Array(6).fill(carouselRecommendationCard),
|
|
227
219
|
},
|
|
228
220
|
],
|
|
229
221
|
}}
|
|
@@ -10,12 +10,6 @@ import { type TextAlign } from '../ui-kit/Text/TextProps';
|
|
|
10
10
|
*/
|
|
11
11
|
export type HeadlineVersion = 'XXL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* @title Размер заголовка
|
|
15
|
-
* @enumNames ["Заголовок", "Самый большой тонкий", "Самый большой", "Очень большой тонкий", "Очень большой", "Большой", "Средний", "Маленький"]
|
|
16
|
-
*/
|
|
17
|
-
export type HeadlineSmallVersion = 'H6' | 'XL_L' | 'XL_R' | 'L_L' | 'L_R' | 'M' | 'S' | 'XS';
|
|
18
|
-
|
|
19
13
|
export type TitleProps = {
|
|
20
14
|
/** @title Заголовок */
|
|
21
15
|
title?: string;
|
|
@@ -51,7 +45,3 @@ export type HeadlineCommonProps = TitleProps & DescriptionProps & AlignProps;
|
|
|
51
45
|
export type HeadlineProps = HeadlineCommonProps & {
|
|
52
46
|
headlineVersion?: HeadlineVersion;
|
|
53
47
|
};
|
|
54
|
-
|
|
55
|
-
export type HeadlineSmallProps = HeadlineCommonProps & {
|
|
56
|
-
headlineSmallVersion?: HeadlineSmallVersion;
|
|
57
|
-
};
|
|
@@ -46,11 +46,11 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
46
46
|
{title ? <div className="relative">{title}</div> : null}
|
|
47
47
|
<div
|
|
48
48
|
className={style(
|
|
49
|
-
'grow relative flex flex-col @
|
|
49
|
+
'grow relative flex flex-col @xl:flex-row gap-3xl',
|
|
50
50
|
leftImage ? 'self-start' : '',
|
|
51
51
|
)}
|
|
52
52
|
>
|
|
53
|
-
{renderImageContainer(leftImage, { imageAlign, className: '
|
|
53
|
+
{renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' })}
|
|
54
54
|
<div
|
|
55
55
|
className={style(
|
|
56
56
|
'grid gap-3xl',
|
|
@@ -104,4 +104,4 @@ const renderImageContainer = (
|
|
|
104
104
|
) : null;
|
|
105
105
|
|
|
106
106
|
const imageSecondaryStyle = (isImageSecondary: boolean) =>
|
|
107
|
-
isImageSecondary ? 'hidden @
|
|
107
|
+
isImageSecondary ? 'hidden @xl:block' : '';
|
|
@@ -39,7 +39,7 @@ const renderButton =
|
|
|
39
39
|
return text || icon?.icon ? (
|
|
40
40
|
<Button
|
|
41
41
|
key={index ? String(index) : ''}
|
|
42
|
-
className={style('basis-full
|
|
42
|
+
className={style('basis-full lg:basis-auto', buttonClassName)}
|
|
43
43
|
appendLeft={renderButtonIcon({ ...icon, iconVersion })}
|
|
44
44
|
appendRight={renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion })}
|
|
45
45
|
version={version}
|
package/src/ui-kit/List/List.tsx
CHANGED
|
@@ -19,7 +19,7 @@ const ITEM_INDENT_MAP: Record<ListItemSize, string> = {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export const List = JSX<ListProps>(
|
|
22
|
-
({ className, hasIndent, isDotted, items, listItemSize = 'M' }) =>
|
|
22
|
+
({ className, hasIndent, isDotted = true, items = [], listItemSize = 'M' }) =>
|
|
23
23
|
items?.length ? (
|
|
24
24
|
<section
|
|
25
25
|
className={style(
|
|
@@ -19,20 +19,18 @@ const DOT_SIZE_MAP = {
|
|
|
19
19
|
XS: 'w-1 h-1 mr-xs',
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export const ListItem = JSX<ListItemProps>(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<div
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
),
|
|
38
|
-
);
|
|
22
|
+
export const ListItem = JSX<ListItemProps>(({ className, isDotted, children, size = 'M' }) => (
|
|
23
|
+
<div className={style('font-sans flex', className)} role="listitem">
|
|
24
|
+
{isDotted ? (
|
|
25
|
+
<div className="shrink-0">
|
|
26
|
+
<div
|
|
27
|
+
className={style(
|
|
28
|
+
'align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white',
|
|
29
|
+
DOT_SIZE_MAP[size],
|
|
30
|
+
)}
|
|
31
|
+
/>
|
|
32
|
+
</div>
|
|
33
|
+
) : null}
|
|
34
|
+
<span>{children}</span>
|
|
35
|
+
</div>
|
|
36
|
+
));
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export const description = 'v0.14.12';
|
|
2
|
-
|
|
3
|
-
export default (uniPath, content) => {
|
|
4
|
-
if (!content?.blocks) {
|
|
5
|
-
return content;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
for (const block of content.blocks) {
|
|
9
|
-
adjustRecommendation(block);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return { ...content };
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
function adjustRecommendation(block) {
|
|
16
|
-
if (block.blocks) {
|
|
17
|
-
for (const childBlock of block.blocks) {
|
|
18
|
-
adjustRecommendation(childBlock);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (!block?.content) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const imageOptions = block.content?.imageOptions;
|
|
27
|
-
|
|
28
|
-
if (block?.type === 'ProductTile' && imageOptions && !('isImageSecondary' in imageOptions)) {
|
|
29
|
-
block.content.imageOptions.isImageSecondary = true;
|
|
30
|
-
}
|
|
31
|
-
if (block?.type === 'CarouselRecommendationCard' && !('isImageAlwaysOnRight' in block.content)) {
|
|
32
|
-
block.content.isImageAlwaysOnRight = true;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type CarouselProductCardContent } from './CarouselProductCardContent';
|
|
3
|
-
export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type BulletsProps } from '../../model/Bullets';
|
|
2
|
-
import { type AdditionalDescriptionProps, type AlignProps, type HeadlineSmallProps } from '../../model/HeadlineType';
|
|
3
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
4
|
-
import { type LinkCommonProps } from '../../model/LinkProps';
|
|
5
|
-
import { type IconProps } from '../../model/Picture';
|
|
6
|
-
import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
7
|
-
/**
|
|
8
|
-
* @title Элемент списка
|
|
9
|
-
*/
|
|
10
|
-
export interface ListProps {
|
|
11
|
-
/** @title Текст */
|
|
12
|
-
text?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @title Карточка продуктовой карусели
|
|
16
|
-
*/
|
|
17
|
-
export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & BulletsProps & LinkCommonProps & AlignProps & {
|
|
18
|
-
/** @title Список */
|
|
19
|
-
items?: ListProps[];
|
|
20
|
-
/** @title Изображение на всю ширину */
|
|
21
|
-
isImageFullWidth?: boolean;
|
|
22
|
-
/** @title Картинка сверху над текстом */
|
|
23
|
-
isTopPosition?: boolean;
|
|
24
|
-
/** @title Кнопка по всей ширине */
|
|
25
|
-
isButtonFullWidth?: boolean;
|
|
26
|
-
button?: ButtonContent;
|
|
27
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type CarouselRichTextCardContent } from './CarouselRichTextCardContent';
|
|
3
|
-
export interface CarouselRichTextCardProps extends CarouselRichTextCardContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const CarouselRichTextCard: import("@redneckz/uni-jsx").UNIComponent<CarouselRichTextCardProps, any, any>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
2
|
-
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
3
|
-
/**
|
|
4
|
-
* @title Карточка c форматированным вводом
|
|
5
|
-
*/
|
|
6
|
-
export declare type CarouselRichTextCardContent = UniBlockContent & RichTextProps;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type CarouselProductCardContent } from './CarouselProductCardContent';
|
|
3
|
-
export interface CarouselProductCardProps extends CarouselProductCardContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const CarouselProductCard: import("@redneckz/uni-jsx").UNIComponent<CarouselProductCardProps, any, any>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.CarouselProductCard = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const AlignStyles_1 = require("../../model/AlignStyles");
|
|
6
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
7
|
-
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
8
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
9
|
-
const LinkWrapper_1 = require("../../ui-kit/LinkWrapper/LinkWrapper");
|
|
10
|
-
const List_1 = require("../../ui-kit/List/List");
|
|
11
|
-
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
12
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
13
|
-
const style_1 = require("../../utils/style");
|
|
14
|
-
const headlineVersionStyles_1 = require("../Headline/headlineVersionStyles");
|
|
15
|
-
exports.CarouselProductCard = (0, uni_jsx_1.JSX)(({ additionalDescription, align = AlignStyles_1.AlignStyles, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col justify-between', className), defaultPadding: "p-0", version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)(LinkWrapper_1.LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title, align), renderDescription(description, align), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, align), renderImage(icon, isImageFullWidth, isTopPosition)] }), (0, renderButtonsSection_1.renderButtonsSection)([button], {
|
|
17
|
-
className: (0, style_1.style)('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
|
|
18
|
-
isVertical: isButtonFullWidth,
|
|
19
|
-
})] }));
|
|
20
|
-
});
|
|
21
|
-
const renderImage = (image, isImageFullWidth, isTopPosition) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex gap-y-lg justify-center', isImageFullWidth ? 'min-w-full h-full' : '', isTopPosition ? 'order-first' : 'order-last'), children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null, image?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)(!isImageFullWidth ? 'w-8 h-8 min-w-8' : 'w-full h-full'), image: image })) : null] }));
|
|
22
|
-
const renderCardTitle = (headlineSmallVersion, title, align) => title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { align: align, size: headlineVersionStyles_1.HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
|
|
23
|
-
const renderDescription = (description, align) => description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { align: align, size: "text-l", children: description })) : null;
|
|
24
|
-
const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
|
|
25
|
-
const renderItems = (items, isDotted, version = 'primary') => items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: (0, style_1.style)('text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, listItemSize: "S" })) : null;
|
|
26
|
-
//# sourceMappingURL=CarouselProductCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProductCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCard.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type BulletsProps } from '../../model/Bullets';
|
|
2
|
-
import { type AdditionalDescriptionProps, type AlignProps, type HeadlineSmallProps } from '../../model/HeadlineType';
|
|
3
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
4
|
-
import { type LinkCommonProps } from '../../model/LinkProps';
|
|
5
|
-
import { type IconProps } from '../../model/Picture';
|
|
6
|
-
import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
7
|
-
/**
|
|
8
|
-
* @title Элемент списка
|
|
9
|
-
*/
|
|
10
|
-
export interface ListProps {
|
|
11
|
-
/** @title Текст */
|
|
12
|
-
text?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @title Карточка продуктовой карусели
|
|
16
|
-
*/
|
|
17
|
-
export declare type CarouselProductCardContent = UniBlockContent & HeadlineSmallProps & AdditionalDescriptionProps & IconProps & BulletsProps & LinkCommonProps & AlignProps & {
|
|
18
|
-
/** @title Список */
|
|
19
|
-
items?: ListProps[];
|
|
20
|
-
/** @title Изображение на всю ширину */
|
|
21
|
-
isImageFullWidth?: boolean;
|
|
22
|
-
/** @title Картинка сверху над текстом */
|
|
23
|
-
isTopPosition?: boolean;
|
|
24
|
-
/** @title Кнопка по всей ширине */
|
|
25
|
-
isButtonFullWidth?: boolean;
|
|
26
|
-
button?: ButtonContent;
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProductCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselProductCard/CarouselProductCardContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
-
import { type CarouselRichTextCardContent } from './CarouselRichTextCardContent';
|
|
3
|
-
export interface CarouselRichTextCardProps extends CarouselRichTextCardContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const CarouselRichTextCard: import("@redneckz/uni-jsx").UNIComponent<CarouselRichTextCardProps, any, any>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.CarouselRichTextCard = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
-
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
7
|
-
exports.CarouselRichTextCard = (0, uni_jsx_1.JSX)(({ className = '', __html, richVersion = 'striped', ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, ...rest, children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html, richVersion: richVersion }) })));
|
|
8
|
-
//# sourceMappingURL=CarouselRichTextCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRichTextCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRichTextCard/CarouselRichTextCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6DAA0D;AAK7C,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,WAAW,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAChE,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,KAAM,IAAI,YAC1C,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAI,GACzC,CAChB,CACF,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type UniBlockContent } from '../../model/JSXBlock';
|
|
2
|
-
import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
3
|
-
/**
|
|
4
|
-
* @title Карточка c форматированным вводом
|
|
5
|
-
*/
|
|
6
|
-
export declare type CarouselRichTextCardContent = UniBlockContent & RichTextProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselRichTextCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts"],"names":[],"mappings":""}
|