@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.
Files changed (173) hide show
  1. package/bin/migration-scripts/0.14.12.js +34 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +19 -17
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  6. package/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  7. package/bundle/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  8. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  9. package/dist/components/Carousel/renderCardHighlight.js +1 -1
  10. package/dist/components/Carousel/renderCardHighlight.js.map +1 -1
  11. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  12. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  13. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  14. package/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  15. package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  16. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  17. package/dist/components/PictureText/PictureText.js +1 -1
  18. package/dist/components/PictureText/PictureText.js.map +1 -1
  19. package/dist/components/Tile/Tile.js +1 -1
  20. package/dist/components/Tile/Tile.js.map +1 -1
  21. package/dist/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  22. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  23. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  24. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  25. package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  26. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  27. package/dist/ui-kit/Button/ArrowButton.js +3 -2
  28. package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  29. package/dist/ui-kit/Button/renderButtonsSection.js +3 -1
  30. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  31. package/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
  32. package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  33. package/dist/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  34. package/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  35. package/dist/ui-kit/Select/SelectPopup.js +1 -1
  36. package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  37. package/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
  38. package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  39. package/lib/common.css +1 -1
  40. package/lib/components/Carousel/renderCardHighlight.js +1 -1
  41. package/lib/components/Carousel/renderCardHighlight.js.map +1 -1
  42. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  43. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  44. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  45. package/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  46. package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  47. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  48. package/lib/components/PictureText/PictureText.js +1 -1
  49. package/lib/components/PictureText/PictureText.js.map +1 -1
  50. package/lib/components/Tile/Tile.js +1 -1
  51. package/lib/components/Tile/Tile.js.map +1 -1
  52. package/lib/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  53. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  54. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  55. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  56. package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  57. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  58. package/lib/ui-kit/Button/ArrowButton.js +3 -2
  59. package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  60. package/lib/ui-kit/Button/renderButtonsSection.js +3 -1
  61. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  62. package/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
  63. package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  64. package/lib/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  65. package/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  66. package/lib/ui-kit/Select/SelectPopup.js +1 -1
  67. package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  68. package/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
  69. package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  70. package/mobile/bundle/bundle.umd.js +16 -14
  71. package/mobile/bundle/bundle.umd.min.js +1 -1
  72. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  73. package/mobile/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  74. package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  75. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  76. package/mobile/dist/components/Carousel/renderCardHighlight.js +1 -1
  77. package/mobile/dist/components/Carousel/renderCardHighlight.js.map +1 -1
  78. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  79. package/mobile/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  80. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  81. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  82. package/mobile/dist/components/PictureText/PictureText.js +1 -1
  83. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  84. package/mobile/dist/components/Tile/Tile.js +1 -1
  85. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  86. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  87. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  88. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  89. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  90. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  91. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  92. package/mobile/dist/ui-kit/Button/ArrowButton.js +3 -2
  93. package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  94. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +3 -1
  95. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  96. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
  97. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  98. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  99. package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  100. package/mobile/dist/ui-kit/Select/SelectPopup.js +1 -1
  101. package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
  102. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
  103. package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  104. package/mobile/lib/common.css +1 -1
  105. package/mobile/lib/components/Carousel/renderCardHighlight.js +1 -1
  106. package/mobile/lib/components/Carousel/renderCardHighlight.js.map +1 -1
  107. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -0
  108. package/mobile/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  109. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  110. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  111. package/mobile/lib/components/PictureText/PictureText.js +1 -1
  112. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  113. package/mobile/lib/components/Tile/Tile.js +1 -1
  114. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  115. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +3 -5
  116. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  117. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  118. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -4
  119. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  120. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  121. package/mobile/lib/ui-kit/Button/ArrowButton.js +3 -2
  122. package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  123. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +3 -1
  124. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  125. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
  126. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  127. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +2 -1
  128. package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -1
  129. package/mobile/lib/ui-kit/Select/SelectPopup.js +1 -1
  130. package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
  131. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
  132. package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
  133. package/mobile/src/components/Carousel/renderCardHighlight.tsx +1 -1
  134. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
  135. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
  136. package/mobile/src/components/DepositFiltration/DepositFiltration.example.json +0 -14
  137. package/mobile/src/components/DepositFiltration/DepositFiltrationContent.ts +0 -4
  138. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  139. package/mobile/src/components/PictureText/PictureText.tsx +1 -1
  140. package/mobile/src/components/Tile/Tile.tsx +1 -0
  141. package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationContent.ts +3 -5
  142. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  143. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -4
  144. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
  145. package/mobile/src/ui-kit/Button/ArrowButton.tsx +6 -3
  146. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +3 -1
  147. package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +1 -1
  148. package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +5 -3
  149. package/mobile/src/ui-kit/Select/SelectPopup.tsx +2 -2
  150. package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +1 -1
  151. package/package.json +1 -1
  152. package/src/components/Carousel/renderCardHighlight.tsx +1 -1
  153. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
  154. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
  155. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -0
  156. package/src/components/DepositFiltration/DepositFiltration.example.json +0 -14
  157. package/src/components/DepositFiltration/DepositFiltration.fixture.mobile.tsx +1 -15
  158. package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +0 -14
  159. package/src/components/DepositFiltration/DepositFiltrationContent.ts +0 -4
  160. package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  161. package/src/components/PictureText/PictureText.tsx +1 -1
  162. package/src/components/Tile/Tile.tsx +1 -0
  163. package/src/ui-kit/BaseFiltration/BaseFiltrationContent.ts +3 -5
  164. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  165. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -4
  166. package/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
  167. package/src/ui-kit/Button/ArrowButton.tsx +6 -3
  168. package/src/ui-kit/Button/renderButtonsSection.tsx +3 -1
  169. package/src/ui-kit/CookiePopup/CookiePopup.tsx +1 -1
  170. package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +5 -3
  171. package/src/ui-kit/Select/SelectPopup.tsx +2 -2
  172. package/src/ui-kit/YandexMap/renderSearchField.tsx +1 -1
  173. package/tailwind.config.cjs +1 -0
@@ -19,6 +19,7 @@
19
19
  }
20
20
  ],
21
21
  "version": "primary",
22
- "listItemSize": "S"
22
+ "listItemSize": "S",
23
+ "isImageAlwaysOnRight": true
23
24
  }
24
25
  }
@@ -16,4 +16,6 @@ export type CarouselRecommendationCardContent = UniBlockContent &
16
16
  AlignProps & {
17
17
  /** @title Соц сети */
18
18
  socialMedia?: ButtonContent[];
19
+ /** @title Изображение всегда справа */
20
+ isImageAlwaysOnRight?: boolean;
19
21
  };
@@ -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={false}
28
+ isFullWidthTitle={true}
29
29
  imageOptions={{ directionRight: false, imageAlign: 'center', ...imageOptions }}
30
30
  {...rest}
31
31
  >
@@ -15,6 +15,7 @@ export const Tile = JSX<TileProps>(
15
15
  padding={padding}
16
16
  headlineVersion={headlineVersion}
17
17
  listItemSize={listItemSize}
18
+ isFullWidthTitle={false}
18
19
  {...rest}
19
20
  />
20
21
  </BlockWrapper>
@@ -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 interface BaseFiltrationInnerContent {
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 ? { insetTitle: headline } : { title: headline })}
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
- /** @title Лейбл (моб.) */
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={`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${
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
- } ${className || ''}`}
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 ? 'flex-col gap-xs justify-items-stretch' : 'flex-wrap gap-lg sm:gap-m',
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-[0_4px_25px_rgba(0,0,0,0.07)]">
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={`w-2 h-2 rounded-full ${
36
- rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main'
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 shadow-[0_4px_25px_rgba(0,0,0,0.07)]"
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-[0_4px_25px_rgba(0,0,0,0.07)]',
10
+ shadow: 'shadow-main-black',
11
11
  };
12
12
 
13
13
  export const renderSearchField = (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.11",
3
+ "version": "0.14.13",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -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-[0_4px_25px_rgba(0,0,0,0.07)]',
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
  >
@@ -19,6 +19,7 @@
19
19
  }
20
20
  ],
21
21
  "version": "primary",
22
- "listItemSize": "S"
22
+ "listItemSize": "S",
23
+ "isImageAlwaysOnRight": true
23
24
  }
24
25
  }
@@ -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
- title={
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>
@@ -16,4 +16,6 @@ export type CarouselRecommendationCardContent = UniBlockContent &
16
16
  AlignProps & {
17
17
  /** @title Соц сети */
18
18
  socialMedia?: ButtonContent[];
19
+ /** @title Изображение всегда справа */
20
+ isImageAlwaysOnRight?: boolean;
19
21
  };
@@ -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: 'Срок, месяцев', min: 3, max: 60 }}
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={false}
28
+ isFullWidthTitle={true}
29
29
  imageOptions={{ directionRight: false, imageAlign: 'center', ...imageOptions }}
30
30
  {...rest}
31
31
  >
@@ -15,6 +15,7 @@ export const Tile = JSX<TileProps>(
15
15
  padding={padding}
16
16
  headlineVersion={headlineVersion}
17
17
  listItemSize={listItemSize}
18
+ isFullWidthTitle={false}
18
19
  {...rest}
19
20
  />
20
21
  </BlockWrapper>
@@ -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 interface BaseFiltrationInnerContent {
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 ? { insetTitle: headline } : { title: headline })}
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
- /** @title Лейбл (моб.) */
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={`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${
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
- } ${className || ''}`}
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 ? 'flex-col gap-xs justify-items-stretch' : 'flex-wrap gap-lg sm:gap-m',
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-[0_4px_25px_rgba(0,0,0,0.07)]">
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={`w-2 h-2 rounded-full ${
36
- rangeValue <= i || disabled ? 'bg-gray' : 'bg-primary-main'
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 shadow-[0_4px_25px_rgba(0,0,0,0.07)]"
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-[0_4px_25px_rgba(0,0,0,0.07)]',
10
+ shadow: 'shadow-main-black',
11
11
  };
12
12
 
13
13
  export const renderSearchField = (
@@ -254,6 +254,7 @@ module.exports = {
254
254
  },
255
255
  },
256
256
  boxShadow: {
257
+ 'main-black': '0 4px 25px rgba(0, 0, 0, 0.07)',
257
258
  'dark-blue': '0 18px 36px -4px rgba(24, 39, 75, 0.42);',
258
259
  'blue-gray': '0 14px 36px -4px rgba(21, 40, 90, 0.24);',
259
260
  },