@redneckz/wildless-cms-uni-blocks 0.14.12 → 0.14.13
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.12.js +34 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +11 -9
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/Tile/Tile.js +1 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- 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 +3 -1
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/Tile/Tile.js +1 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- 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 +3 -1
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +9 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/mobile/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/mobile/dist/components/PictureText/PictureText.js +1 -1
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +1 -1
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- 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 +3 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/mobile/lib/components/PictureText/PictureText.js +1 -1
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +1 -1
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- 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 +3 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
- package/mobile/src/components/DepositFiltration/DepositFiltration.example.json +0 -14
- package/mobile/src/components/DepositFiltration/DepositFiltrationContent.ts +0 -4
- package/mobile/src/components/PictureText/PictureText.tsx +1 -1
- package/mobile/src/components/Tile/Tile.tsx +1 -0
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +3 -1
- package/package.json +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -2
- package/src/components/DepositFiltration/DepositFiltration.example.json +0 -14
- package/src/components/DepositFiltration/DepositFiltration.fixture.mobile.tsx +1 -15
- package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +0 -14
- package/src/components/DepositFiltration/DepositFiltrationContent.ts +0 -4
- package/src/components/PictureText/PictureText.tsx +1 -1
- package/src/components/Tile/Tile.tsx +1 -0
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
- package/src/ui-kit/Button/renderButtonsSection.tsx +3 -1
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
26
26
|
target,
|
|
27
27
|
title,
|
|
28
28
|
align = 'text-left',
|
|
29
|
-
isImageAlwaysOnRight,
|
|
29
|
+
isImageAlwaysOnRight = true,
|
|
30
30
|
...rest
|
|
31
31
|
}) => {
|
|
32
32
|
return (
|
|
@@ -40,7 +40,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
40
40
|
className="h-full"
|
|
41
41
|
defaultPadding="p-m"
|
|
42
42
|
padding={padding}
|
|
43
|
-
|
|
43
|
+
insetTitle={
|
|
44
44
|
title ? (
|
|
45
45
|
<Headline
|
|
46
46
|
title={title}
|
|
@@ -41,20 +41,6 @@
|
|
|
41
41
|
"type": "number"
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
},
|
|
45
|
-
"period": {
|
|
46
|
-
"title": "Срок",
|
|
47
|
-
"type": "object",
|
|
48
|
-
"properties": {
|
|
49
|
-
"min": {
|
|
50
|
-
"title": "Минимум",
|
|
51
|
-
"type": "number"
|
|
52
|
-
},
|
|
53
|
-
"max": {
|
|
54
|
-
"title": "Максимум",
|
|
55
|
-
"type": "number"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
44
|
}
|
|
59
45
|
},
|
|
60
46
|
"sumInput": {
|
|
@@ -90,20 +90,6 @@ const SCHEMA: DepositFiltrationContent['filtrationSchema'] = {
|
|
|
90
90
|
},
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
|
-
period: {
|
|
94
|
-
title: 'Срок',
|
|
95
|
-
type: 'object',
|
|
96
|
-
properties: {
|
|
97
|
-
min: {
|
|
98
|
-
title: 'Минимум',
|
|
99
|
-
type: 'number',
|
|
100
|
-
},
|
|
101
|
-
max: {
|
|
102
|
-
title: 'Максимум',
|
|
103
|
-
type: 'number',
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
93
|
};
|
|
108
94
|
|
|
109
95
|
const options = {
|
|
@@ -119,7 +105,7 @@ export default {
|
|
|
119
105
|
filtrationSchema={SCHEMA}
|
|
120
106
|
topItemsCount={2}
|
|
121
107
|
sumInput={{ title: 'Сумма' }}
|
|
122
|
-
periodInput={{ title: 'Срок, месяцев'
|
|
108
|
+
periodInput={{ title: 'Срок, месяцев' }}
|
|
123
109
|
resetButton={{ text: 'Очистить фильтры', version: 'secondary' }}
|
|
124
110
|
notFound={{
|
|
125
111
|
title: 'Нет подходящей программы',
|
|
@@ -90,20 +90,6 @@ const SCHEMA: DepositFiltrationContent['filtrationSchema'] = {
|
|
|
90
90
|
},
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
|
-
period: {
|
|
94
|
-
title: 'Срок',
|
|
95
|
-
type: 'object',
|
|
96
|
-
properties: {
|
|
97
|
-
min: {
|
|
98
|
-
title: 'Минимум',
|
|
99
|
-
type: 'number',
|
|
100
|
-
},
|
|
101
|
-
max: {
|
|
102
|
-
title: 'Максимум',
|
|
103
|
-
type: 'number',
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
93
|
};
|
|
108
94
|
|
|
109
95
|
const options = {
|
|
@@ -13,8 +13,6 @@ export type DepositFiltrationSchema = {
|
|
|
13
13
|
percents?: StringArray;
|
|
14
14
|
/** @hidden */
|
|
15
15
|
sum?: NumberRange;
|
|
16
|
-
/** @hidden */
|
|
17
|
-
period?: NumberRange;
|
|
18
16
|
};
|
|
19
17
|
|
|
20
18
|
/**
|
|
@@ -32,7 +30,5 @@ export interface DepositFiltrationContent extends BaseFiltrationInnerContent {
|
|
|
32
30
|
periodInput?: {
|
|
33
31
|
/** @title Лейбл */
|
|
34
32
|
title?: string;
|
|
35
|
-
min?: number;
|
|
36
|
-
max?: number;
|
|
37
33
|
};
|
|
38
34
|
}
|
|
@@ -25,7 +25,7 @@ export const PictureText = JSX<PictureTextProps>(
|
|
|
25
25
|
padding={padding}
|
|
26
26
|
headlineVersion={headlineVersion}
|
|
27
27
|
align={align}
|
|
28
|
-
isFullWidthTitle={
|
|
28
|
+
isFullWidthTitle={true}
|
|
29
29
|
imageOptions={{ directionRight: false, imageAlign: 'center', ...imageOptions }}
|
|
30
30
|
{...rest}
|
|
31
31
|
>
|
|
@@ -54,7 +54,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
54
54
|
className={className}
|
|
55
55
|
padding={padding}
|
|
56
56
|
defaultPadding={defaultPadding}
|
|
57
|
-
{...(isFullWidthTitle ? {
|
|
57
|
+
{...(isFullWidthTitle ? { title: headline } : { insetTitle: headline })}
|
|
58
58
|
{...leftOrRightImage(img, directionRight)}
|
|
59
59
|
isImageSecondary={isImageSecondary}
|
|
60
60
|
imageAlign={imageAlign}
|
|
@@ -33,7 +33,7 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
33
33
|
rightImage,
|
|
34
34
|
imageAlign,
|
|
35
35
|
isImageAlwaysOnRight = false,
|
|
36
|
-
isImageSecondary,
|
|
36
|
+
isImageSecondary = false,
|
|
37
37
|
children,
|
|
38
38
|
}) => (
|
|
39
39
|
<div
|
|
@@ -63,7 +63,7 @@ export const BaseTile = JSX<BaseTileProps>(
|
|
|
63
63
|
</div>
|
|
64
64
|
{renderImageContainer(rightImage, {
|
|
65
65
|
className: style(
|
|
66
|
-
'@xl:justify-self-end row-start-1 @xl:row-end-3 @xl:col-start-2',
|
|
66
|
+
'@xl:justify-self-end @xl:row-start-1 @xl:row-end-3 @xl:col-start-2 ',
|
|
67
67
|
positionStyle(isImageAlwaysOnRight),
|
|
68
68
|
isImageSecondary ? 'hidden @xl:block' : '',
|
|
69
69
|
),
|
|
@@ -18,7 +18,9 @@ export const renderButtonsSection = (
|
|
|
18
18
|
<div
|
|
19
19
|
className={style(
|
|
20
20
|
'flex',
|
|
21
|
-
isVertical
|
|
21
|
+
isVertical
|
|
22
|
+
? 'flex-col gap-xs justify-items-stretch'
|
|
23
|
+
: 'flex-wrap @xl:flex-nowrap gap-lg sm:gap-m',
|
|
22
24
|
className,
|
|
23
25
|
)}
|
|
24
26
|
>
|