@redneckz/wildless-cms-uni-blocks 0.14.12 → 0.14.14
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 +14 -12
- 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/ProductBlock/ProductBlock.js +2 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +1 -1
- package/dist/components/ProductTile/ProductTile.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 +2 -2
- 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/ProductBlock/ProductBlock.js +2 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +1 -1
- package/lib/components/ProductTile/ProductTile.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 +2 -2
- 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 +11 -9
- 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/ProductBlock/ProductBlock.js +2 -2
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.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 +2 -2
- 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/ProductBlock/ProductBlock.js +2 -2
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.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 +2 -2
- 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/ProductBlock/ProductBlock.tsx +3 -3
- package/mobile/src/components/ProductTile/ProductTile.example.json +1 -0
- package/mobile/src/components/ProductTile/ProductTile.tsx +2 -0
- package/mobile/src/components/Tile/Tile.tsx +1 -0
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +2 -2
- 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/ProductBlock/ProductBlock.tsx +3 -3
- package/src/components/ProductGallery/ProductGallery.tsx +1 -0
- package/src/components/ProductTile/ProductTile.example.json +1 -0
- package/src/components/ProductTile/ProductTile.tsx +2 -0
- package/src/components/Tile/Tile.tsx +1 -0
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +2 -2
- package/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
- package/src/ui-kit/Button/renderButtonsSection.tsx +3 -1
- package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.js +0 -4
- package/dist/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +0 -4
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.js +0 -2
- package/lib/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +0 -2
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +0 -1
- package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +0 -4
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +0 -2
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
- package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +0 -1
- package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +0 -1
- package/src/components/BenefitsBlock/benefitImageStyles.tsx +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderButtonsSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/renderButtonsSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,OAAuC,EACvC,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,KAA4B,EAAE,EACtE,EAAE,CACF,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CACjE,cACE,SAAS,EAAE,KAAK,CACd,MAAM,EACN,UAAU,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"renderButtonsSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/renderButtonsSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,OAAuC,EACvC,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,KAA4B,EAAE,EACtE,EAAE,CACF,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CACjE,cACE,SAAS,EAAE,KAAK,CACd,MAAM,EACN,UAAU;QACR,CAAC,CAAC,uCAAuC;QACzC,CAAC,CAAC,2CAA2C,EAC/C,SAAS,CACV,YAEA,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,GACvC,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,YAAY,GAChB,CAAC,eAAe,GAAG,EAAE,EAAE,EAAE,CACzB,CAAC,MAAsB,EAAE,KAAc,EAAE,EAAE;IACzC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;IACjE,MAAM,WAAW,GAAG,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClD,MAAM,gBAAgB,GAAG,cAAc,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAE5D,OAAO,IAAI,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAC1B,KAAC,MAAM,IAEL,SAAS,EAAE,KAAK,CAAC,0BAA0B,EAAE,eAAe,CAAC,EAC7D,UAAU,EAAE,gBAAgB,CAAC,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,CAAC,EACtD,WAAW,EAAE,gBAAgB,CAAC,EAAE,GAAG,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC,EAC9E,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,KACN,IAAI,IANH,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAO/B,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,cAAc,GAAG,CAAC,IAAyB,EAAE,OAAO,GAAG,WAAW,EAAE,EAAE;IAC1E,MAAM,kBAAkB,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAEvE,OAAO,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC;AACpE,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE,CACzC,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CACxB,KAAC,GAAG,IACF,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,cAAc,CAAC,EAClD,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -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": {
|
|
@@ -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
|
>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useRouter } from '../../hooks/useRouter';
|
|
2
4
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
5
|
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
|
|
4
6
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
|
+
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
5
8
|
import { style } from '../../utils/style';
|
|
6
9
|
import type { ProductBlockContent } from './ProductBlockContent';
|
|
7
10
|
import { renderBackwardButton } from './renderBackwardButton';
|
|
8
|
-
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
9
|
-
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
10
|
-
import { useRouter } from '../../hooks/useRouter';
|
|
11
11
|
|
|
12
12
|
export interface ProductBlockProps extends UniBlockProps, ProductBlockContent {}
|
|
13
13
|
|
|
@@ -15,6 +15,7 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
15
15
|
isTabularBenefits = true,
|
|
16
16
|
additionalDescription,
|
|
17
17
|
imageOptions,
|
|
18
|
+
isFullWidthTitle = true,
|
|
18
19
|
...rest
|
|
19
20
|
}) => (
|
|
20
21
|
<BlockWrapper className={className} padding="p-0" {...rest}>
|
|
@@ -25,6 +26,7 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
25
26
|
headlineVersion={headlineVersion}
|
|
26
27
|
isTabularBenefits={isTabularBenefits}
|
|
27
28
|
imageOptions={{ isImageSecondary: true, ...imageOptions }}
|
|
29
|
+
isFullWidthTitle={isFullWidthTitle}
|
|
28
30
|
{...rest}
|
|
29
31
|
>
|
|
30
32
|
{additionalDescription ? (
|
|
@@ -28,7 +28,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
28
28
|
isTabularBenefits,
|
|
29
29
|
benefits,
|
|
30
30
|
__html,
|
|
31
|
-
isFullWidthTitle
|
|
31
|
+
isFullWidthTitle,
|
|
32
32
|
items,
|
|
33
33
|
isDotted = true,
|
|
34
34
|
listItemSize,
|
|
@@ -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
|
>
|
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
|
>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useRouter } from '../../hooks/useRouter';
|
|
2
4
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
5
|
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
|
|
4
6
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
7
|
+
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
5
8
|
import { style } from '../../utils/style';
|
|
6
9
|
import type { ProductBlockContent } from './ProductBlockContent';
|
|
7
10
|
import { renderBackwardButton } from './renderBackwardButton';
|
|
8
|
-
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
9
|
-
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
10
|
-
import { useRouter } from '../../hooks/useRouter';
|
|
11
11
|
|
|
12
12
|
export interface ProductBlockProps extends UniBlockProps, ProductBlockContent {}
|
|
13
13
|
|
|
@@ -15,6 +15,7 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
15
15
|
isTabularBenefits = true,
|
|
16
16
|
additionalDescription,
|
|
17
17
|
imageOptions,
|
|
18
|
+
isFullWidthTitle = true,
|
|
18
19
|
...rest
|
|
19
20
|
}) => (
|
|
20
21
|
<BlockWrapper className={className} padding="p-0" {...rest}>
|
|
@@ -25,6 +26,7 @@ export const ProductTile = JSX<ProductTileProps>(
|
|
|
25
26
|
headlineVersion={headlineVersion}
|
|
26
27
|
isTabularBenefits={isTabularBenefits}
|
|
27
28
|
imageOptions={{ isImageSecondary: true, ...imageOptions }}
|
|
29
|
+
isFullWidthTitle={isFullWidthTitle}
|
|
28
30
|
{...rest}
|
|
29
31
|
>
|
|
30
32
|
{additionalDescription ? (
|
|
@@ -28,7 +28,7 @@ export const BaseProductTile = JSX<BaseProductTileProps>(
|
|
|
28
28
|
isTabularBenefits,
|
|
29
29
|
benefits,
|
|
30
30
|
__html,
|
|
31
|
-
isFullWidthTitle
|
|
31
|
+
isFullWidthTitle,
|
|
32
32
|
items,
|
|
33
33
|
isDotted = true,
|
|
34
34
|
listItemSize,
|
|
@@ -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
|
>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const benefitImageStyles = "w-12 h-12 min-w-12 rounded-full";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const benefitImageStyles = "w-56 h-56 min-w-56";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const benefitImageStyles = "w-12 h-12 min-w-12 rounded-full";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitImageStyles.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/benefitImageStyles.tsx"],"names":[],"mappings":";;AAAa,QAAA,kBAAkB,GAAG,iCAAiC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const benefitImageStyles = "w-56 h-56 min-w-56";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitImageStyles.mobile.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/benefitImageStyles.mobile.tsx"],"names":[],"mappings":";;AAAa,QAAA,kBAAkB,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const benefitImageStyles = "w-12 h-12 min-w-12 rounded-full";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitImageStyles.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/benefitImageStyles.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,iCAAiC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const benefitImageStyles = "w-56 h-56 min-w-56";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitImageStyles.mobile.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/benefitImageStyles.mobile.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const benefitImageStyles = "w-56 h-56 min-w-56";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const benefitImageStyles = "w-56 h-56 min-w-56";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitImageStyles.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/benefitImageStyles.tsx"],"names":[],"mappings":";;AAAa,QAAA,kBAAkB,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const benefitImageStyles = "w-56 h-56 min-w-56";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benefitImageStyles.js","sourceRoot":"","sources":["../../../src/components/BenefitsBlock/benefitImageStyles.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const benefitImageStyles = 'w-56 h-56 min-w-56';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const benefitImageStyles = 'w-56 h-56 min-w-56';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const benefitImageStyles = 'w-12 h-12 min-w-12 rounded-full';
|