@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.
Files changed (78) 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 +11 -9
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  6. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  7. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  8. package/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  9. package/dist/components/PictureText/PictureText.js +1 -1
  10. package/dist/components/PictureText/PictureText.js.map +1 -1
  11. package/dist/components/Tile/Tile.js +1 -1
  12. package/dist/components/Tile/Tile.js.map +1 -1
  13. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  14. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  15. package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  16. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  17. package/dist/ui-kit/Button/renderButtonsSection.js +3 -1
  18. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  19. package/lib/common.css +1 -1
  20. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
  21. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  22. package/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  23. package/lib/components/PictureText/PictureText.js +1 -1
  24. package/lib/components/PictureText/PictureText.js.map +1 -1
  25. package/lib/components/Tile/Tile.js +1 -1
  26. package/lib/components/Tile/Tile.js.map +1 -1
  27. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  28. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  29. package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  30. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  31. package/lib/ui-kit/Button/renderButtonsSection.js +3 -1
  32. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  33. package/mobile/bundle/bundle.umd.js +9 -7
  34. package/mobile/bundle/bundle.umd.min.js +1 -1
  35. package/mobile/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  36. package/mobile/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  37. package/mobile/dist/components/PictureText/PictureText.js +1 -1
  38. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  39. package/mobile/dist/components/Tile/Tile.js +1 -1
  40. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  41. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  42. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  43. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  44. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  45. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +3 -1
  46. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  47. package/mobile/lib/common.css +1 -1
  48. package/mobile/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +0 -4
  49. package/mobile/lib/components/PictureText/PictureText.js +1 -1
  50. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  51. package/mobile/lib/components/Tile/Tile.js +1 -1
  52. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  53. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  54. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  55. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  56. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  57. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +3 -1
  58. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  59. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
  60. package/mobile/src/components/DepositFiltration/DepositFiltration.example.json +0 -14
  61. package/mobile/src/components/DepositFiltration/DepositFiltrationContent.ts +0 -4
  62. package/mobile/src/components/PictureText/PictureText.tsx +1 -1
  63. package/mobile/src/components/Tile/Tile.tsx +1 -0
  64. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  65. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
  66. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +3 -1
  67. package/package.json +1 -1
  68. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
  69. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -2
  70. package/src/components/DepositFiltration/DepositFiltration.example.json +0 -14
  71. package/src/components/DepositFiltration/DepositFiltration.fixture.mobile.tsx +1 -15
  72. package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +0 -14
  73. package/src/components/DepositFiltration/DepositFiltrationContent.ts +0 -4
  74. package/src/components/PictureText/PictureText.tsx +1 -1
  75. package/src/components/Tile/Tile.tsx +1 -0
  76. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  77. package/src/ui-kit/BaseTile/BaseTile.tsx +2 -2
  78. package/src/ui-kit/Button/renderButtonsSection.tsx +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.12",
3
+ "version": "0.14.13",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -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,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
- title={
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: 'Срок, месяцев', 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
  }
@@ -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>
@@ -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}
@@ -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 ? '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
  >