@redneckz/wildless-cms-uni-blocks 0.14.21 → 0.14.23

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 (220) hide show
  1. package/bin/migration-scripts/0.14.20.js +30 -0
  2. package/bin/migration-scripts/0.14.21.js +1 -1
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +13 -16
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  7. package/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  8. package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  9. package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
  10. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  11. package/bundle/icons/IconName.d.ts +2 -20
  12. package/cosmos-static/icons/FaxIcon.svg +1 -1
  13. package/cosmos-static/icons/GeolocationIcon.svg +1 -1
  14. package/cosmos-static/icons/MapOpenedIcon.svg +1 -1
  15. package/cosmos-static/icons/PlusCircleIcon.svg +1 -1
  16. package/dist/api/CorporateLeadAPI.js +3 -0
  17. package/dist/api/CorporateLeadAPI.js.map +1 -1
  18. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  19. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  20. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  21. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  22. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
  23. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  24. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  25. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -2
  26. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
  27. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
  28. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
  29. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
  30. package/dist/components/ProductBlock/ProductBlock.js +5 -2
  31. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  32. package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  33. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
  34. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  35. package/dist/icons/IconName.d.ts +2 -20
  36. package/dist/icons/IconName.js +1 -19
  37. package/dist/icons/IconName.js.map +1 -1
  38. package/dist/ui-kit/DatePicker/DatePicker.js +1 -1
  39. package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  40. package/lib/api/CorporateLeadAPI.js +3 -0
  41. package/lib/api/CorporateLeadAPI.js.map +1 -1
  42. package/lib/common.css +1 -1
  43. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  44. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  45. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  46. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  47. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
  48. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  49. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  50. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -2
  51. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
  52. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
  53. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
  54. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
  55. package/lib/components/ProductBlock/ProductBlock.js +5 -2
  56. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  57. package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  58. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
  59. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  60. package/lib/icons/IconName.d.ts +2 -20
  61. package/lib/icons/IconName.js +1 -19
  62. package/lib/icons/IconName.js.map +1 -1
  63. package/lib/ui-kit/DatePicker/DatePicker.js +1 -1
  64. package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  65. package/mobile/bundle/bundle.umd.js +14 -8
  66. package/mobile/bundle/bundle.umd.min.js +1 -1
  67. package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  68. package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  69. package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  70. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  71. package/mobile/bundle/icons/IconName.d.ts +2 -20
  72. package/mobile/dist/api/CorporateLeadAPI.js +3 -0
  73. package/mobile/dist/api/CorporateLeadAPI.js.map +1 -1
  74. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  75. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  76. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  77. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  78. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
  79. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  80. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  81. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
  82. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
  83. package/mobile/dist/components/ProductBlock/ProductBlock.js +5 -2
  84. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  85. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  86. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
  87. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  88. package/mobile/dist/icons/IconName.d.ts +2 -20
  89. package/mobile/dist/icons/IconName.js +1 -19
  90. package/mobile/dist/icons/IconName.js.map +1 -1
  91. package/mobile/dist/ui-kit/DatePicker/DatePicker.js +1 -1
  92. package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  93. package/mobile/lib/api/CorporateLeadAPI.js +3 -0
  94. package/mobile/lib/api/CorporateLeadAPI.js.map +1 -1
  95. package/mobile/lib/common.css +1 -1
  96. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  97. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  98. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
  99. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
  100. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
  101. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  102. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
  103. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
  104. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
  105. package/mobile/lib/components/ProductBlock/ProductBlock.js +5 -2
  106. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  107. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
  108. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
  109. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  110. package/mobile/lib/icons/IconName.d.ts +2 -20
  111. package/mobile/lib/icons/IconName.js +1 -19
  112. package/mobile/lib/icons/IconName.js.map +1 -1
  113. package/mobile/lib/ui-kit/DatePicker/DatePicker.js +1 -1
  114. package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  115. package/mobile/src/api/CorporateLeadAPI.ts +4 -0
  116. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
  117. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  118. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +2 -2
  119. package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +26 -23
  120. package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +3 -8
  121. package/mobile/src/components/BusinessBlock/BusinessBlock.example.json +2 -2
  122. package/mobile/src/components/ProductBlock/ProductBlock.tsx +9 -2
  123. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -0
  124. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +0 -1
  125. package/mobile/src/icons/FaxIcon.svg +1 -1
  126. package/mobile/src/icons/GeolocationIcon.svg +1 -1
  127. package/mobile/src/icons/IconName.ts +5 -5
  128. package/mobile/src/icons/MapMarkerSingleIcon.svg +1 -1
  129. package/mobile/src/icons/MapOpenedIcon.svg +1 -5
  130. package/mobile/src/icons/PlusCircleIcon.svg +1 -1
  131. package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +1 -1
  132. package/mobile/tailwind.config.cjs +127 -0
  133. package/package.json +2 -1
  134. package/src/api/CorporateLeadAPI.ts +4 -0
  135. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
  136. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  137. package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +2 -2
  138. package/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +26 -23
  139. package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +3 -8
  140. package/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +4 -5
  141. package/src/components/BusinessBlock/BusinessBlock.example.json +2 -2
  142. package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +1 -1
  143. package/src/components/Calculator/Calculator.fixture.mobile.tsx +1 -1
  144. package/src/components/Calculator/Calculator.fixture.tsx +2 -2
  145. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.tsx +2 -3
  146. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +2 -3
  147. package/src/components/PictureText/PictureText.fixture.mobile.tsx +2 -2
  148. package/src/components/PictureText/PictureText.fixture.tsx +3 -4
  149. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
  150. package/src/components/ProductBlock/ProductBlock.fixture.tsx +2 -3
  151. package/src/components/ProductBlock/ProductBlock.tsx +9 -2
  152. package/src/components/ProductBlock/ProductBlockContent.ts +2 -0
  153. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +2 -2
  154. package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +0 -1
  155. package/src/icons/FaxIcon.svg +1 -1
  156. package/src/icons/GeolocationIcon.svg +1 -1
  157. package/src/icons/IconName.ts +1 -29
  158. package/src/icons/MapMarkerSingleIcon.svg +1 -1
  159. package/src/icons/MapOpenedIcon.svg +1 -5
  160. package/src/icons/PlusCircleIcon.svg +1 -1
  161. package/src/ui-kit/DatePicker/DatePicker.tsx +1 -1
  162. package/bundle/model/AlignText.d.ts +0 -6
  163. package/bundle/model/AlignType.d.ts +0 -21
  164. package/cosmos-static/icons/BagIcon.svg +0 -1
  165. package/cosmos-static/icons/Calendar2Icon.svg +0 -1
  166. package/cosmos-static/icons/DocIconMonoColor.svg +0 -1
  167. package/cosmos-static/icons/DocumentText2Icon.svg +0 -1
  168. package/cosmos-static/icons/DocumentTextIcon.svg +0 -1
  169. package/cosmos-static/icons/MoneysIcon.svg +0 -1
  170. package/cosmos-static/icons/PercentageSquareIcon.svg +0 -1
  171. package/cosmos-static/icons/StrongBoxIcon.svg +0 -1
  172. package/cosmos-static/icons/WalletAdd2Icon.svg +0 -1
  173. package/dist/model/AlignText.d.ts +0 -6
  174. package/dist/model/AlignText.js +0 -11
  175. package/dist/model/AlignText.js.map +0 -1
  176. package/dist/model/AlignType.d.ts +0 -21
  177. package/dist/model/AlignType.js +0 -2
  178. package/dist/model/AlignType.js.map +0 -1
  179. package/lib/model/AlignText.d.ts +0 -6
  180. package/lib/model/AlignText.js +0 -9
  181. package/lib/model/AlignText.js.map +0 -1
  182. package/lib/model/AlignType.d.ts +0 -21
  183. package/lib/model/AlignType.js +0 -2
  184. package/lib/model/AlignType.js.map +0 -1
  185. package/mobile/bundle/model/AlignText.d.ts +0 -6
  186. package/mobile/bundle/model/AlignType.d.ts +0 -21
  187. package/mobile/dist/model/AlignText.d.ts +0 -6
  188. package/mobile/dist/model/AlignText.js +0 -11
  189. package/mobile/dist/model/AlignText.js.map +0 -1
  190. package/mobile/dist/model/AlignType.d.ts +0 -21
  191. package/mobile/dist/model/AlignType.js +0 -2
  192. package/mobile/dist/model/AlignType.js.map +0 -1
  193. package/mobile/lib/model/AlignText.d.ts +0 -6
  194. package/mobile/lib/model/AlignText.js +0 -9
  195. package/mobile/lib/model/AlignText.js.map +0 -1
  196. package/mobile/lib/model/AlignType.d.ts +0 -21
  197. package/mobile/lib/model/AlignType.js +0 -2
  198. package/mobile/lib/model/AlignType.js.map +0 -1
  199. package/mobile/src/icons/BagIcon.svg +0 -1
  200. package/mobile/src/icons/Calendar2Icon.svg +0 -6
  201. package/mobile/src/icons/DocIconMonoColor.svg +0 -5
  202. package/mobile/src/icons/DocumentText2Icon.svg +0 -8
  203. package/mobile/src/icons/DocumentTextIcon.svg +0 -6
  204. package/mobile/src/icons/MoneysIcon.svg +0 -7
  205. package/mobile/src/icons/PercentageSquareIcon.svg +0 -16
  206. package/mobile/src/icons/StrongBoxIcon.svg +0 -5
  207. package/mobile/src/icons/WalletAdd2Icon.svg +0 -1
  208. package/mobile/src/model/AlignText.ts +0 -11
  209. package/mobile/src/model/AlignType.ts +0 -22
  210. package/src/icons/BagIcon.svg +0 -1
  211. package/src/icons/Calendar2Icon.svg +0 -6
  212. package/src/icons/DocIconMonoColor.svg +0 -5
  213. package/src/icons/DocumentText2Icon.svg +0 -8
  214. package/src/icons/DocumentTextIcon.svg +0 -6
  215. package/src/icons/MoneysIcon.svg +0 -7
  216. package/src/icons/PercentageSquareIcon.svg +0 -16
  217. package/src/icons/StrongBoxIcon.svg +0 -5
  218. package/src/icons/WalletAdd2Icon.svg +0 -1
  219. package/src/model/AlignText.ts +0 -11
  220. package/src/model/AlignType.ts +0 -22
@@ -0,0 +1,127 @@
1
+ const config = require('../tailwind.config.cjs');
2
+
3
+ const quadXL = '1.5rem 1.25rem'; // 24px 20px
4
+
5
+ module.exports = {
6
+ ...config,
7
+ theme: {
8
+ ...config.theme,
9
+ extend: {
10
+ ...config.theme.extend,
11
+ borderRadius: {
12
+ icon: '0.375rem',
13
+ },
14
+ spacing: {
15
+ '6xl': '1.5rem', // 24px
16
+ '5xl': '1.5rem', // 24px
17
+ '4xl': '1.5rem', // 24px
18
+ '3xl': '1rem', // 16px
19
+ '2xl': '1rem', // 16px
20
+ xl: '1rem', // 16px
21
+ lg: '1rem', // 16px
22
+ m: '0.5rem', // 8px
23
+ s: '0.5rem', // 8px
24
+ xs: '0.5rem', // 8px
25
+ '2xs': '0.25rem', // 4px
26
+ '3xs': '0', // 0
27
+ },
28
+ padding: {
29
+ '6xl': quadXL,
30
+ '5xl': quadXL,
31
+ '4xl': quadXL,
32
+ },
33
+ fontSize: {
34
+ ...config.theme.extend.fontSize,
35
+ 'title-extra': ['9.375rem', '13rem'], // 150px 208px
36
+ h0: [
37
+ '1.5rem',
38
+ {
39
+ // 24px 34px
40
+ lineHeight: '2.125rem',
41
+ fontWeight: '400',
42
+ },
43
+ ],
44
+ h1: [
45
+ '1.5rem',
46
+ {
47
+ // 24px 34px
48
+ lineHeight: '2.125rem',
49
+ fontWeight: '400',
50
+ },
51
+ ],
52
+ h2: [
53
+ '1.5rem',
54
+ {
55
+ // 24px 34px
56
+ lineHeight: '2.125rem',
57
+ fontWeight: '400',
58
+ },
59
+ ],
60
+ h3: [
61
+ '1.25rem',
62
+ {
63
+ // 20px 28px
64
+ lineHeight: '1.75rem',
65
+ fontWeight: '400',
66
+ },
67
+ ],
68
+ h4: [
69
+ '1.25rem',
70
+ {
71
+ // 20px 28px
72
+ lineHeight: '1.75rem',
73
+ fontWeight: '400',
74
+ },
75
+ ],
76
+ h5: [
77
+ '1rem',
78
+ {
79
+ // 16px 24px
80
+ lineHeight: '1.5rem',
81
+ fontWeight: '400',
82
+ },
83
+ ],
84
+ h6: [
85
+ '1rem',
86
+ {
87
+ // 16px 24px
88
+ lineHeight: '1.5rem',
89
+ fontWeight: '400',
90
+ },
91
+ ],
92
+ xl: [
93
+ '1rem',
94
+ {
95
+ // 16px 24px
96
+ lineHeight: '1.5rem',
97
+ fontWeight: '400',
98
+ },
99
+ ],
100
+ l: [
101
+ '1rem',
102
+ {
103
+ // 16px 24px
104
+ lineHeight: '1.5rem',
105
+ fontWeight: '400',
106
+ },
107
+ ],
108
+ s: [
109
+ '0.875rem',
110
+ {
111
+ // 14px 20px
112
+ lineHeight: '1.25rem',
113
+ fontWeight: '400',
114
+ },
115
+ ],
116
+ xs: [
117
+ '0.75rem',
118
+ {
119
+ // 12px 18px
120
+ lineHeight: '1.125rem',
121
+ fontWeight: '400',
122
+ },
123
+ ],
124
+ },
125
+ },
126
+ },
127
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.21",
3
+ "version": "0.14.23",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -69,6 +69,7 @@
69
69
  "mobile/src",
70
70
  "cosmos-static/icons",
71
71
  "tailwind.config.cjs",
72
+ "mobile/tailwind.config.cjs",
72
73
  "!**/*.spec.*"
73
74
  ],
74
75
  "repository": {
@@ -22,6 +22,10 @@ export function CorporateLeadAPI() {
22
22
  body: JSON.stringify(body),
23
23
  });
24
24
 
25
+ if (!response?.ok) {
26
+ return null;
27
+ }
28
+
25
29
  const data = await response.json();
26
30
 
27
31
  return data;
@@ -3,7 +3,7 @@
3
3
  "title": "Вы можете оплатить бонусными баллами",
4
4
  "subtitle": "Удобный каталог с большим ассортиментом товаров и сервисов",
5
5
  "columnsCount": "4",
6
- "cardTextAlign": "center",
6
+ "cardTextAlign": "text-center",
7
7
  "bonusBenefits": [
8
8
  {
9
9
  "title": "Верхний заголовок",
@@ -10,7 +10,7 @@ export interface BenefitsBlockProps extends BonusBenefitsBlockContent, UniBlockP
10
10
  export const BonusBenefitsBlock = JSX<BenefitsBlockProps>(
11
11
  ({
12
12
  bonusBenefits,
13
- cardTextAlign = 'center',
13
+ cardTextAlign = 'text-center',
14
14
  className = '',
15
15
  columnsCount = '4',
16
16
  subtitle,
@@ -1,4 +1,3 @@
1
- import { type AlignType } from '../../model/AlignType';
2
1
  import {
3
2
  type DescriptionProps,
4
3
  type SubtitleProps,
@@ -6,6 +5,7 @@ import {
6
5
  } from '../../model/HeadlineType';
7
6
  import { type UniBlockContent } from '../../model/JSXBlock';
8
7
  import { type IconProps } from '../../model/Picture';
8
+ import { type TextAlign } from '../../ui-kit/Text/TextProps';
9
9
 
10
10
  /**
11
11
  * @title Количество элементов в строке
@@ -31,5 +31,5 @@ export type BonusBenefitsBlockContent = UniBlockContent &
31
31
  /** @title Список бонусов */
32
32
  bonusBenefits?: BonusBenefit[];
33
33
  columnsCount?: ColumnsCount;
34
- cardTextAlign?: AlignType;
34
+ cardTextAlign?: TextAlign;
35
35
  };
@@ -1,29 +1,32 @@
1
- import { AlignStyles } from '../../model/AlignStyles';
2
1
  import { Img } from '../../ui-kit/Img/Img';
3
2
  import { Text } from '../../ui-kit/Text/Text';
3
+ import { type TextAlign } from '../../ui-kit/Text/TextProps';
4
4
  import { style } from '../../utils/style';
5
5
  import { type BonusBenefit } from './BonusBenefitsBlockContent';
6
6
  import { bonusBenefitStyles } from './bonusBenefitStyles';
7
7
 
8
- export const renderBonusBenefit = ({ icon, title, description }: BonusBenefit, i: number) => (
9
- <div
10
- key={String(i)}
11
- className={style(
12
- 'flex flex-col',
13
- bonusBenefitStyles,
14
- !description && !title ? 'justify-center' : '',
15
- )}
16
- >
17
- {title ? (
18
- <Text size="text-h6" font="font-normal" align={AlignStyles}>
19
- {title}
20
- </Text>
21
- ) : null}
22
- {icon ? <Img image={icon} height="180" className="w-auto" /> : null}
23
- {description ? (
24
- <Text size="text-h6" font="font-normal" align={AlignStyles}>
25
- {description}
26
- </Text>
27
- ) : null}
28
- </div>
29
- );
8
+ export const renderBonusBenefit =
9
+ (cardTextAlign: TextAlign) =>
10
+ ({ icon, title, description }: BonusBenefit, i: number) =>
11
+ (
12
+ <div
13
+ key={String(i)}
14
+ className={style(
15
+ 'flex flex-col gap-1',
16
+ bonusBenefitStyles,
17
+ !description && !title ? 'justify-center' : '',
18
+ )}
19
+ >
20
+ {title ? (
21
+ <Text size="text-h6" font="font-normal" align={cardTextAlign}>
22
+ {title}
23
+ </Text>
24
+ ) : null}
25
+ {icon ? <Img image={icon} height="180" className="w-auto" /> : null}
26
+ {description ? (
27
+ <Text size="text-h6" font="font-normal" align={cardTextAlign}>
28
+ {description}
29
+ </Text>
30
+ ) : null}
31
+ </div>
32
+ );
@@ -1,15 +1,10 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
- import { type AlignType } from '../../model/AlignType';
3
1
  import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
2
+ import { type TextAlign } from '../../ui-kit/Text/TextProps';
4
3
  import { type BonusBenefit, type ColumnsCount } from './BonusBenefitsBlockContent';
5
4
  import { renderBonusBenefit } from './renderBonusBenefit';
6
5
 
7
6
  export const renderBonusBenefits = (
8
7
  bonusBenefits: BonusBenefit[],
9
8
  _columnsCount: ColumnsCount,
10
- _cardTextAlign: AlignType,
11
- ) => (
12
- <SwipeListControl>
13
- {bonusBenefits.map((_, i) => renderBonusBenefit({ ..._ }, i))}
14
- </SwipeListControl>
15
- );
9
+ _cardTextAlign: TextAlign,
10
+ ) => <SwipeListControl>{bonusBenefits.map(renderBonusBenefit(_cardTextAlign))}</SwipeListControl>;
@@ -1,15 +1,14 @@
1
- import { AlignText } from '../../model/AlignText';
2
- import { type AlignType } from '../../model/AlignType';
1
+ import { type TextAlign } from '../../ui-kit/Text/TextProps';
3
2
  import { type BonusBenefit, type ColumnsCount } from './BonusBenefitsBlockContent';
4
3
  import { renderBonusBenefit } from './renderBonusBenefit';
5
4
 
6
5
  export const renderBonusBenefits = (
7
6
  bonusBenefits: BonusBenefit[],
8
7
  columnsCount: ColumnsCount,
9
- cardTextAlign: AlignType,
8
+ cardTextAlign: TextAlign,
10
9
  ) => (
11
- <div className={`grid gap-2xs ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`}>
12
- {bonusBenefits.map(renderBonusBenefit)}
10
+ <div className={`grid gap-2xs ${getElementsColsValue(columnsCount)}`}>
11
+ {bonusBenefits.map(renderBonusBenefit(cardTextAlign))}
13
12
  </div>
14
13
  );
15
14
 
@@ -31,7 +31,7 @@
31
31
  },
32
32
  {
33
33
  "icon": {
34
- "icon": "PercentageSquareIcon",
34
+ "icon": "PercentageRoundIcon",
35
35
  "format": "webp",
36
36
  "size": { "width": 24, "height": 24 },
37
37
  "iconVersion": "color"
@@ -77,7 +77,7 @@
77
77
  },
78
78
  {
79
79
  "icon": {
80
- "icon": "PercentageSquareIcon",
80
+ "icon": "PercentageRoundIcon",
81
81
  "format": "webp",
82
82
  "size": { "width": 24, "height": 24 },
83
83
  "iconVersion": "color"
@@ -25,7 +25,7 @@ const items: BusinessCardItemProps[] = [
25
25
  text: 'Пункт 2',
26
26
  },
27
27
  {
28
- icon: { icon: 'PercentageSquareIcon' },
28
+ icon: { icon: 'PercentageRoundIcon' },
29
29
  text: 'Пункт 3',
30
30
  },
31
31
  ];
@@ -77,7 +77,7 @@ export default {
77
77
  {
78
78
  nav: {
79
79
  title: 'Обменивайте баллы на путешествия',
80
- icon: { icon: 'PercentageSquareIcon' },
80
+ icon: { icon: 'PercentageRoundIcon' },
81
81
  },
82
82
  calculatorBlock: {
83
83
  title: 'Обменивайте баллы на путешествия',
@@ -109,7 +109,7 @@ export default {
109
109
  {
110
110
  nav: {
111
111
  title: 'Обменивайте баллы на путешествия',
112
- icon: { icon: 'PercentageSquareIcon' },
112
+ icon: { icon: 'PercentageRoundIcon' },
113
113
  },
114
114
  calculatorBlock: BONUS_CALCULATOR_BLOCK,
115
115
  },
@@ -180,7 +180,7 @@ export default {
180
180
  {
181
181
  nav: {
182
182
  title: 'Обменивайте баллы на путешествия',
183
- icon: { icon: 'PercentageSquareIcon' },
183
+ icon: { icon: 'PercentageRoundIcon' },
184
184
  },
185
185
  calculatorBlock: BONUS_CALCULATOR_BLOCK,
186
186
  },
@@ -1,6 +1,5 @@
1
- import '../../setup-fixture';
2
-
3
1
  import { type Picture } from '../../model/Picture';
2
+ import '../../setup-fixture';
4
3
  import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
5
4
  import { type ButtonProps } from '../../ui-kit/Button/ButtonProps';
6
5
  import { CarouselTariffsCard } from './CarouselTariffsCard';
@@ -32,7 +31,7 @@ const buttonSecondary: ButtonProps = {
32
31
 
33
32
  const buttonIcon: ButtonContent = {
34
33
  text: 'App Store',
35
- icon: { icon: 'DocIconMonoColor', iconVersion: 'color' },
34
+ icon: { icon: 'DocIcon', iconVersion: 'color' },
36
35
  href: 'rshb.ru',
37
36
  version: 'link',
38
37
  };
@@ -1,6 +1,5 @@
1
- import '../../setup-fixture';
2
-
3
1
  import { type Picture } from '../../model/Picture';
2
+ import '../../setup-fixture';
4
3
  import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
5
4
  import { CarouselTariffsCard } from './CarouselTariffsCard';
6
5
  import { type CarouselTariffsCardContent } from './CarouselTariffsCardContent';
@@ -31,7 +30,7 @@ const buttonSecondary: ButtonContent = {
31
30
 
32
31
  const buttonIcon: ButtonContent = {
33
32
  text: 'App Store',
34
- icon: { icon: 'DocIconMonoColor', iconVersion: 'color' },
33
+ icon: { icon: 'DocIcon' },
35
34
  href: 'rshb.ru',
36
35
  version: 'link',
37
36
  };
@@ -28,13 +28,13 @@ export const PICTURE_TEXT: PictureTextContent = {
28
28
  type: 'default',
29
29
  label: 'Кредит по одному документу',
30
30
  description: 'До 300 тыс ₽ по упрощённой процедуре получения кредита',
31
- icon: { icon: 'DocumentTextIcon' },
31
+ icon: { icon: 'DocIcon' },
32
32
  },
33
33
  {
34
34
  type: 'default',
35
35
  label: 'Кредит на общих условиях',
36
36
  description: 'До 5 млн ₽ на общих условиях получения кредита',
37
- icon: { icon: 'DocumentTextIcon', iconVersion: 'white' },
37
+ icon: { icon: 'DocIcon', iconVersion: 'white' },
38
38
  },
39
39
  ],
40
40
  };
@@ -1,6 +1,5 @@
1
- import '../../setup-fixture';
2
-
3
1
  import { type Picture } from '../../model/Picture';
2
+ import '../../setup-fixture';
4
3
  import { PictureText } from './PictureText';
5
4
  import { type PictureTextContent } from './PictureTextContent';
6
5
 
@@ -42,13 +41,13 @@ export const PICTURE_TEXT: PictureTextContent = {
42
41
  type: 'default',
43
42
  label: 'Кредит по одному документу',
44
43
  description: 'До 300 тыс ₽ по упрощённой процедуре получения кредита',
45
- icon: { icon: 'DocumentTextIcon' },
44
+ icon: { icon: 'DocIcon' },
46
45
  },
47
46
  {
48
47
  type: 'default',
49
48
  label: 'Кредит на общих условиях',
50
49
  description: 'До 5 млн ₽ на общих условиях получения кредита',
51
- icon: { icon: 'DocumentTextIcon' },
50
+ icon: { icon: 'DocIcon' },
52
51
  },
53
52
  ],
54
53
  image,
@@ -40,7 +40,7 @@ const benefits: ComplexBenefitContent[] = [
40
40
  type: 'default',
41
41
  label: 'От 16,9%',
42
42
  description: 'Ставка по кредиту',
43
- icon: { icon: 'PercentageSquareIcon' },
43
+ icon: { icon: 'PercentageRoundIcon' },
44
44
  },
45
45
  {
46
46
  type: 'default',
@@ -1,6 +1,5 @@
1
- import '../../setup-fixture';
2
-
3
1
  import { type Picture } from '../../model/Picture';
2
+ import '../../setup-fixture';
4
3
  import { type ComplexBenefitContent } from '../../ui-kit/BenefitItem/BenefitItemContent';
5
4
  import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
6
5
  import { ProductBlock } from './ProductBlock';
@@ -27,7 +26,7 @@ const benefits: ComplexBenefitContent[] = [
27
26
  type: 'default',
28
27
  label: 'От 16,9%',
29
28
  description: 'Ставка по кредиту',
30
- icon: { icon: 'PercentageSquareIcon' },
29
+ icon: { icon: 'PercentageRoundIcon' },
31
30
  },
32
31
  {
33
32
  type: 'default',
@@ -12,16 +12,23 @@ import { renderBackwardButton } from './renderBackwardButton';
12
12
  export interface ProductBlockProps extends UniBlockProps, ProductBlockContent {}
13
13
 
14
14
  export const ProductBlock = JSX<ProductBlockProps>(
15
- ({ className, padding, backwardButton, ...rest }) => {
15
+ ({ className, padding, backwardButton, showBorder, ...rest }) => {
16
16
  const router = useRouter();
17
17
  const handleClick = useCallback((ev?: PreventableEvent) => {
18
18
  ev?.preventDefault();
19
19
  router.back();
20
20
  }, []);
21
+ const borderStyle = showBorder
22
+ ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
23
+ : '';
21
24
 
22
25
  return (
23
26
  <BlockWrapper
24
- className={style('overflow-hidden flex flex-col gap-3xl box-border', className)}
27
+ className={style(
28
+ 'overflow-hidden flex flex-col gap-3xl box-border',
29
+ borderStyle,
30
+ className,
31
+ )}
25
32
  defaultPadding="p-6xl"
26
33
  padding={padding}
27
34
  {...rest}
@@ -8,4 +8,6 @@ export type ProductBlockContent = UniBlockContent &
8
8
  BaseProductTileContent & {
9
9
  /** @title Отображать кнопку возврата (только для десктопной версии) */
10
10
  backwardButton?: boolean;
11
+ /** @title Показывать рамку вокруг блока */
12
+ showBorder?: boolean;
11
13
  };
@@ -102,7 +102,7 @@ export default {
102
102
  {
103
103
  type: 'default',
104
104
  label: 'В случае одобрения',
105
- icon: { icon: 'PercentageSquareIcon' },
105
+ icon: { icon: 'PercentageRoundIcon' },
106
106
  },
107
107
  {
108
108
  type: 'default',
@@ -189,7 +189,7 @@ export default {
189
189
  {
190
190
  type: 'default',
191
191
  label: 'В случае одобрения',
192
- icon: { icon: 'PercentageSquareIcon' },
192
+ icon: { icon: 'PercentageRoundIcon' },
193
193
  },
194
194
  {
195
195
  type: 'default',
@@ -40,7 +40,6 @@ export const StickyBottomMenu = JSX<StickyBottomMenuProps>(({ ...rest }) => {
40
40
  <BlockWrapper
41
41
  className="@container-normal fixed w-full h-[74px] bottom-0 left-0 my-0 mx-auto bg-transparent z-[100]"
42
42
  padding="p-0"
43
- data-component="sticky-bottom-menu"
44
43
  >
45
44
  <RenderMenuItems menuItems={menuItemsWithButton} onClick={toggle} />
46
45
  </BlockWrapper>
@@ -1 +1 @@
1
- <svg title="Факс" isInverse="true" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 12c-4 0-4 1.79-4 4v1c0 2.76 0 5 5 5h8c4 0 5-2.24 5-5v-1c0-2.21 0-4-4-4-1 0-1.28.21-1.8.6l-1.02 1.08a2.999 2.999 0 0 1-4.37 0L8.8 12.6C8.28 12.21 8 12 7 12ZM5 9.96V12M19 12V6c0-2.21 0-4-4-4H9C5 2 5 3.79 5 6" stroke="#1C1C1C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.328 9.2h3.33M13.66 6.2h.84M9.5 6.2h1.58" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
1
+ <svg title="Факс" isInverse="true" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 12c-4 0-4 1.79-4 4v1c0 2.76 0 5 5 5h8c4 0 5-2.24 5-5v-1c0-2.21 0-4-4-4-1 0-1.28.21-1.8.6l-1.02 1.08a2.999 2.999 0 0 1-4.37 0L8.8 12.6C8.28 12.21 8 12 7 12ZM5 9.96V12M19 12V6c0-2.21 0-4-4-4H9C5 2 5 3.79 5 6" stroke="#1C1C1C" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path d="M10.328 9.2h3.33M13.66 6.2h.84M9.5 6.2h1.58" stroke="#42AB44" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -1,4 +1,4 @@
1
1
  <svg title="Геолокация" isInverse="true" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path d="M12.5999 8.59219C12.5999 10.0255 11.4416 11.1922 9.9999 11.1922C8.55824 11.1922 7.3999 10.0339 7.3999 8.59219C7.3999 7.15052 8.56657 5.99219 9.9999 5.99219C10.2832 5.99219 10.5582 6.03385 10.8082 6.11719" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M4.98314 3.58338C8.62481 0.158384 15.6831 1.33338 16.9831 7.09172C17.9415 11.3251 15.3081 14.9084 12.9998 17.1251C11.3248 18.7417 8.67481 18.7417 6.99147 17.1251C4.69147 14.9001 2.04981 11.3167 3.01647 7.08338" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M4.98314 3.58338C8.62481 0.158384 15.6831 1.33338 16.9831 7.09172C17.9415 11.3251 15.3081 14.9084 12.9998 17.1251C11.3248 18.7417 8.67481 18.7417 6.99147 17.1251C4.69147 14.9001 2.04981 11.3167 3.01647 7.08338" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
4
  </svg>