@redneckz/wildless-cms-uni-blocks 0.14.11 → 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 +19 -17
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
- package/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/bundle/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
- package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
- package/dist/components/Carousel/renderCardHighlight.js +1 -1
- package/dist/components/Carousel/renderCardHighlight.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
- package/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- 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/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
- package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/ArrowButton.js +3 -2
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +3 -1
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/dist/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
- package/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
- package/dist/ui-kit/Select/SelectPopup.js +1 -1
- package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Carousel/renderCardHighlight.js +1 -1
- package/lib/components/Carousel/renderCardHighlight.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
- package/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- 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/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
- package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/ArrowButton.js +3 -2
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +3 -1
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/lib/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
- package/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
- package/lib/ui-kit/Select/SelectPopup.js +1 -1
- package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +16 -14
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
- package/mobile/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
- package/mobile/dist/components/Carousel/renderCardHighlight.js +1 -1
- package/mobile/dist/components/Carousel/renderCardHighlight.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
- package/mobile/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- 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/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
- 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/BaseProductTile/BaseProductTileContent.d.ts +2 -4
- 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/ArrowButton.js +3 -2
- package/mobile/dist/ui-kit/Button/ArrowButton.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/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.js +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Carousel/renderCardHighlight.js +1 -1
- package/mobile/lib/components/Carousel/renderCardHighlight.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
- package/mobile/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- 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/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
- 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/BaseProductTile/BaseProductTileContent.d.ts +2 -4
- 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/ArrowButton.js +3 -2
- package/mobile/lib/ui-kit/Button/ArrowButton.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/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.js +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/src/components/Carousel/renderCardHighlight.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
- package/mobile/src/components/DepositFiltration/DepositFiltration.example.json +0 -14
- package/mobile/src/components/DepositFiltration/DepositFiltrationContent.ts +0 -4
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/mobile/src/components/PictureText/PictureText.tsx +1 -1
- package/mobile/src/components/Tile/Tile.tsx +1 -0
- package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationContent.ts +3 -5
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -4
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +6 -3
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +3 -1
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +5 -3
- package/mobile/src/ui-kit/Select/SelectPopup.tsx +2 -2
- package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +1 -1
- package/package.json +1 -1
- package/src/components/Carousel/renderCardHighlight.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
- 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/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/src/components/PictureText/PictureText.tsx +1 -1
- package/src/components/Tile/Tile.tsx +1 -0
- package/src/ui-kit/BaseFiltration/BaseFiltrationContent.ts +3 -5
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -4
- package/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
- package/src/ui-kit/Button/ArrowButton.tsx +6 -3
- package/src/ui-kit/Button/renderButtonsSection.tsx +3 -1
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +1 -1
- package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +5 -3
- package/src/ui-kit/Select/SelectPopup.tsx +2 -2
- package/src/ui-kit/YandexMap/renderSearchField.tsx +1 -1
- package/tailwind.config.cjs +1 -0
|
@@ -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
|
}
|
|
@@ -44,7 +44,7 @@ export const InvestmentInfo = JSX<InvestmentInfoProps>((props) => {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
return (
|
|
47
|
-
<BlockWrapper className={className} {...rest}>
|
|
47
|
+
<BlockWrapper className={className} defaultPadding="p-4xl" {...rest}>
|
|
48
48
|
<div className="container text-m font-light space-y-4xl">
|
|
49
49
|
{columns?.length ? (
|
|
50
50
|
<div>
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
|
-
import type { DescriptionProps, TitleProps } from '../../model/HeadlineType';
|
|
2
|
+
import type { DescriptionProps, LabelProps, TitleProps } from '../../model/HeadlineType';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @title Заголовок
|
|
@@ -99,9 +99,7 @@ export type ResetButton = {
|
|
|
99
99
|
*/
|
|
100
100
|
export type NotFound = TitleProps & DescriptionProps;
|
|
101
101
|
|
|
102
|
-
export
|
|
103
|
-
/** @title Название сворачивающейся кнопки */
|
|
104
|
-
label?: string;
|
|
102
|
+
export type BaseFiltrationInnerContent = LabelProps & {
|
|
105
103
|
/**
|
|
106
104
|
* @title Количество отображаемых предметов
|
|
107
105
|
* @minimum 1
|
|
@@ -109,4 +107,4 @@ export interface BaseFiltrationInnerContent {
|
|
|
109
107
|
topItemsCount?: number;
|
|
110
108
|
resetButton?: ResetButton;
|
|
111
109
|
notFound?: NotFound;
|
|
112
|
-
}
|
|
110
|
+
};
|
|
@@ -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}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Align } from '../../model/Align';
|
|
2
2
|
import type { BulletsProps } from '../../model/Bullets';
|
|
3
|
-
import type { HeadlineProps } from '../../model/HeadlineType';
|
|
3
|
+
import type { HeadlineProps, LabelProps } from '../../model/HeadlineType';
|
|
4
4
|
import type { BenefitsListContent } from '../BenefitsList/BenefitsListContent';
|
|
5
5
|
import type { ButtonsSectionContent } from '../Button/ButtonsSectionContent';
|
|
6
6
|
import type { ImageContent } from '../Img/ImgProps';
|
|
@@ -27,9 +27,8 @@ export type BaseProductTileContent = HeadlineProps &
|
|
|
27
27
|
BulletsProps &
|
|
28
28
|
TagsContent &
|
|
29
29
|
ButtonsSectionContent &
|
|
30
|
-
ImageContent &
|
|
31
|
-
|
|
32
|
-
label?: string;
|
|
30
|
+
ImageContent &
|
|
31
|
+
LabelProps & {
|
|
33
32
|
imageOptions?: TileImageOptions;
|
|
34
33
|
/** @title Заголовок во всю ширину */
|
|
35
34
|
isFullWidthTitle?: boolean;
|
|
@@ -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
|
),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { style } from '../../utils/style';
|
|
2
3
|
import { Img } from '../Img/Img';
|
|
3
4
|
import { Button } from './Button';
|
|
4
5
|
import type { ButtonProps } from './ButtonProps';
|
|
@@ -6,11 +7,13 @@ import type { ButtonProps } from './ButtonProps';
|
|
|
6
7
|
export const ArrowButton = JSX<ButtonProps>(({ className, disabled, ...rest }) => (
|
|
7
8
|
<Button
|
|
8
9
|
rounded
|
|
9
|
-
className={
|
|
10
|
+
className={style(
|
|
11
|
+
'group/btn w-12 h-12 min-h-12 max-h-12 flex items-center justify-center shadow-main-black',
|
|
10
12
|
disabled
|
|
11
13
|
? 'bg-secondary-light text-secondary-text'
|
|
12
|
-
: 'bg-white text-primary-text hover:text-primary-main'
|
|
13
|
-
|
|
14
|
+
: 'bg-white text-primary-text hover:text-primary-main',
|
|
15
|
+
className || '',
|
|
16
|
+
)}
|
|
14
17
|
disabled={disabled}
|
|
15
18
|
{...rest}
|
|
16
19
|
>
|
|
@@ -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
|
>
|
|
@@ -36,7 +36,7 @@ export const CookiePopup = JSX<CookiePopupProps>(({ termLink, personalDataPolicy
|
|
|
36
36
|
|
|
37
37
|
return opened ? (
|
|
38
38
|
<div className="container fixed left-0 right-0 bottom-0 z-50">
|
|
39
|
-
<div className="bg-white m-xl p-xl rounded-md flex sm:items-center shadow-
|
|
39
|
+
<div className="bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black">
|
|
40
40
|
<div className="sm:flex-1">
|
|
41
41
|
<Paragraph size="text-s" font="font-light" color="text-primary-text">
|
|
42
42
|
АО «Россельхозбанк» использует
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { style } from '../../utils/style';
|
|
1
2
|
import { parseDecimal } from './parseDecimal';
|
|
2
3
|
|
|
3
4
|
interface RangeWithTicksProps {
|
|
@@ -32,9 +33,10 @@ export function renderRangeWithTicks({
|
|
|
32
33
|
{list.map((_, i) => (
|
|
33
34
|
<div
|
|
34
35
|
key={String(i)}
|
|
35
|
-
className={
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
className={style(
|
|
37
|
+
'w-2 h-2 rounded-full',
|
|
38
|
+
rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main',
|
|
39
|
+
)}
|
|
38
40
|
/>
|
|
39
41
|
))}
|
|
40
42
|
</div>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { style } from '../../utils/style';
|
|
3
3
|
import { Icon } from '../Icon/Icon';
|
|
4
|
-
import type { Option } from './Option';
|
|
5
4
|
import { filterOptions } from './filterOptions';
|
|
6
5
|
import { formatOption } from './formatOption';
|
|
6
|
+
import type { Option } from './Option';
|
|
7
7
|
|
|
8
8
|
export interface SelectPopupProps {
|
|
9
9
|
popupRef?: { current: HTMLDivElement | null };
|
|
@@ -16,7 +16,7 @@ export interface SelectPopupProps {
|
|
|
16
16
|
export const SelectPopup = JSX<SelectPopupProps>(({ popupRef, options, value, query, onChange }) =>
|
|
17
17
|
options?.length ? (
|
|
18
18
|
<div
|
|
19
|
-
className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md
|
|
19
|
+
className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md s1hadow-black"
|
|
20
20
|
role="listbox"
|
|
21
21
|
ref={popupRef}
|
|
22
22
|
>
|
|
@@ -7,7 +7,7 @@ const styles = {
|
|
|
7
7
|
border: 'border border-transparent rounded-md',
|
|
8
8
|
position: 'relative flex items-center',
|
|
9
9
|
font: 'text-center font-sans',
|
|
10
|
-
shadow: 'shadow-
|
|
10
|
+
shadow: 'shadow-main-black',
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const renderSearchField = (
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ interface CardHighlightProps {
|
|
|
10
10
|
export const renderCardHighlight = ({ className, text = 'ХИТ' }: CardHighlightProps = {}) => (
|
|
11
11
|
<div
|
|
12
12
|
className={style(
|
|
13
|
-
'w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-
|
|
13
|
+
'w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black',
|
|
14
14
|
className,
|
|
15
15
|
)}
|
|
16
16
|
>
|
|
@@ -26,6 +26,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
26
26
|
target,
|
|
27
27
|
title,
|
|
28
28
|
align = 'text-left',
|
|
29
|
+
isImageAlwaysOnRight = true,
|
|
29
30
|
...rest
|
|
30
31
|
}) => {
|
|
31
32
|
return (
|
|
@@ -39,7 +40,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
39
40
|
className="h-full"
|
|
40
41
|
defaultPadding="p-m"
|
|
41
42
|
padding={padding}
|
|
42
|
-
|
|
43
|
+
insetTitle={
|
|
43
44
|
title ? (
|
|
44
45
|
<Headline
|
|
45
46
|
title={title}
|
|
@@ -54,6 +55,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
54
55
|
buttons={
|
|
55
56
|
socialMedia.length ? <SocialMedia media={socialMedia} showButtonText={true} /> : null
|
|
56
57
|
}
|
|
58
|
+
isImageAlwaysOnRight={isImageAlwaysOnRight}
|
|
57
59
|
>
|
|
58
60
|
{items.length ? <List items={items} listItemSize={listItemSize} /> : null}
|
|
59
61
|
</BaseTile>
|
|
@@ -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
|
}
|
|
@@ -44,7 +44,7 @@ export const InvestmentInfo = JSX<InvestmentInfoProps>((props) => {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
return (
|
|
47
|
-
<BlockWrapper className={className} {...rest}>
|
|
47
|
+
<BlockWrapper className={className} defaultPadding="p-4xl" {...rest}>
|
|
48
48
|
<div className="container text-m font-light space-y-4xl">
|
|
49
49
|
{columns?.length ? (
|
|
50
50
|
<div>
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
|
-
import type { DescriptionProps, TitleProps } from '../../model/HeadlineType';
|
|
2
|
+
import type { DescriptionProps, LabelProps, TitleProps } from '../../model/HeadlineType';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @title Заголовок
|
|
@@ -99,9 +99,7 @@ export type ResetButton = {
|
|
|
99
99
|
*/
|
|
100
100
|
export type NotFound = TitleProps & DescriptionProps;
|
|
101
101
|
|
|
102
|
-
export
|
|
103
|
-
/** @title Название сворачивающейся кнопки */
|
|
104
|
-
label?: string;
|
|
102
|
+
export type BaseFiltrationInnerContent = LabelProps & {
|
|
105
103
|
/**
|
|
106
104
|
* @title Количество отображаемых предметов
|
|
107
105
|
* @minimum 1
|
|
@@ -109,4 +107,4 @@ export interface BaseFiltrationInnerContent {
|
|
|
109
107
|
topItemsCount?: number;
|
|
110
108
|
resetButton?: ResetButton;
|
|
111
109
|
notFound?: NotFound;
|
|
112
|
-
}
|
|
110
|
+
};
|
|
@@ -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}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Align } from '../../model/Align';
|
|
2
2
|
import type { BulletsProps } from '../../model/Bullets';
|
|
3
|
-
import type { HeadlineProps } from '../../model/HeadlineType';
|
|
3
|
+
import type { HeadlineProps, LabelProps } from '../../model/HeadlineType';
|
|
4
4
|
import type { BenefitsListContent } from '../BenefitsList/BenefitsListContent';
|
|
5
5
|
import type { ButtonsSectionContent } from '../Button/ButtonsSectionContent';
|
|
6
6
|
import type { ImageContent } from '../Img/ImgProps';
|
|
@@ -27,9 +27,8 @@ export type BaseProductTileContent = HeadlineProps &
|
|
|
27
27
|
BulletsProps &
|
|
28
28
|
TagsContent &
|
|
29
29
|
ButtonsSectionContent &
|
|
30
|
-
ImageContent &
|
|
31
|
-
|
|
32
|
-
label?: string;
|
|
30
|
+
ImageContent &
|
|
31
|
+
LabelProps & {
|
|
33
32
|
imageOptions?: TileImageOptions;
|
|
34
33
|
/** @title Заголовок во всю ширину */
|
|
35
34
|
isFullWidthTitle?: boolean;
|
|
@@ -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
|
),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { style } from '../../utils/style';
|
|
2
3
|
import { Img } from '../Img/Img';
|
|
3
4
|
import { Button } from './Button';
|
|
4
5
|
import type { ButtonProps } from './ButtonProps';
|
|
@@ -6,11 +7,13 @@ import type { ButtonProps } from './ButtonProps';
|
|
|
6
7
|
export const ArrowButton = JSX<ButtonProps>(({ className, disabled, ...rest }) => (
|
|
7
8
|
<Button
|
|
8
9
|
rounded
|
|
9
|
-
className={
|
|
10
|
+
className={style(
|
|
11
|
+
'group/btn w-12 h-12 min-h-12 max-h-12 flex items-center justify-center shadow-main-black',
|
|
10
12
|
disabled
|
|
11
13
|
? 'bg-secondary-light text-secondary-text'
|
|
12
|
-
: 'bg-white text-primary-text hover:text-primary-main'
|
|
13
|
-
|
|
14
|
+
: 'bg-white text-primary-text hover:text-primary-main',
|
|
15
|
+
className || '',
|
|
16
|
+
)}
|
|
14
17
|
disabled={disabled}
|
|
15
18
|
{...rest}
|
|
16
19
|
>
|
|
@@ -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
|
>
|
|
@@ -36,7 +36,7 @@ export const CookiePopup = JSX<CookiePopupProps>(({ termLink, personalDataPolicy
|
|
|
36
36
|
|
|
37
37
|
return opened ? (
|
|
38
38
|
<div className="container fixed left-0 right-0 bottom-0 z-50">
|
|
39
|
-
<div className="bg-white m-xl p-xl rounded-md flex sm:items-center shadow-
|
|
39
|
+
<div className="bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black">
|
|
40
40
|
<div className="sm:flex-1">
|
|
41
41
|
<Paragraph size="text-s" font="font-light" color="text-primary-text">
|
|
42
42
|
АО «Россельхозбанк» использует
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { style } from '../../utils/style';
|
|
1
2
|
import { parseDecimal } from './parseDecimal';
|
|
2
3
|
|
|
3
4
|
interface RangeWithTicksProps {
|
|
@@ -32,9 +33,10 @@ export function renderRangeWithTicks({
|
|
|
32
33
|
{list.map((_, i) => (
|
|
33
34
|
<div
|
|
34
35
|
key={String(i)}
|
|
35
|
-
className={
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
className={style(
|
|
37
|
+
'w-2 h-2 rounded-full',
|
|
38
|
+
rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main',
|
|
39
|
+
)}
|
|
38
40
|
/>
|
|
39
41
|
))}
|
|
40
42
|
</div>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { style } from '../../utils/style';
|
|
3
3
|
import { Icon } from '../Icon/Icon';
|
|
4
|
-
import type { Option } from './Option';
|
|
5
4
|
import { filterOptions } from './filterOptions';
|
|
6
5
|
import { formatOption } from './formatOption';
|
|
6
|
+
import type { Option } from './Option';
|
|
7
7
|
|
|
8
8
|
export interface SelectPopupProps {
|
|
9
9
|
popupRef?: { current: HTMLDivElement | null };
|
|
@@ -16,7 +16,7 @@ export interface SelectPopupProps {
|
|
|
16
16
|
export const SelectPopup = JSX<SelectPopupProps>(({ popupRef, options, value, query, onChange }) =>
|
|
17
17
|
options?.length ? (
|
|
18
18
|
<div
|
|
19
|
-
className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md
|
|
19
|
+
className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md s1hadow-black"
|
|
20
20
|
role="listbox"
|
|
21
21
|
ref={popupRef}
|
|
22
22
|
>
|
|
@@ -7,7 +7,7 @@ const styles = {
|
|
|
7
7
|
border: 'border border-transparent rounded-md',
|
|
8
8
|
position: 'relative flex items-center',
|
|
9
9
|
font: 'text-center font-sans',
|
|
10
|
-
shadow: 'shadow-
|
|
10
|
+
shadow: 'shadow-main-black',
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const renderSearchField = (
|
package/tailwind.config.cjs
CHANGED