@redneckz/wildless-cms-uni-blocks 0.5.15 → 0.6.16

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 (253) hide show
  1. package/bin/migration-scripts/0.5.14.js +27 -0
  2. package/bin/migration-scripts/0.6.16.js +90 -0
  3. package/bin/utils.js +2 -0
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +57 -44
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/Blocks.d.ts +1 -0
  8. package/bundle/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  9. package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  10. package/bundle/components/ContentPage/renderContentPageHead.d.ts +3 -0
  11. package/bundle/components/Gallery/GalleryContent.d.ts +3 -1
  12. package/bundle/components/Headline/constants.d.ts +0 -2
  13. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  14. package/bundle/model/AlignText.d.ts +2 -0
  15. package/bundle/model/HeadlineType.d.ts +2 -2
  16. package/dist/components/Accordion/Accordion.js +2 -6
  17. package/dist/components/Accordion/Accordion.js.map +1 -1
  18. package/dist/components/Blocks.d.ts +1 -0
  19. package/dist/components/Blocks.js +2 -0
  20. package/dist/components/Blocks.js.map +1 -1
  21. package/dist/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  22. package/dist/components/ContactsBlock/ContactsBlock.js +19 -0
  23. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -0
  24. package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  25. package/dist/components/ContactsBlock/ContactsBlockContent.js +2 -0
  26. package/dist/components/ContactsBlock/ContactsBlockContent.js.map +1 -0
  27. package/dist/components/ContentPage/renderContentPageHead.d.ts +3 -0
  28. package/dist/components/ContentPage/renderContentPageHead.js +30 -0
  29. package/dist/components/ContentPage/renderContentPageHead.js.map +1 -0
  30. package/dist/components/Gallery/Gallery.mobile.js +2 -1
  31. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  32. package/dist/components/Gallery/GalleryCardInner.js +6 -11
  33. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  34. package/dist/components/Gallery/GalleryContainer.js +2 -2
  35. package/dist/components/Gallery/GalleryContainer.js.map +1 -1
  36. package/dist/components/Gallery/GalleryContent.d.ts +3 -1
  37. package/dist/components/Gallery/GalleryInner.js +4 -3
  38. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  39. package/dist/components/Headline/Headline.js +2 -1
  40. package/dist/components/Headline/Headline.js.map +1 -1
  41. package/dist/components/Headline/Headline.mobile.js +2 -1
  42. package/dist/components/Headline/Headline.mobile.js.map +1 -1
  43. package/dist/components/Headline/constants.d.ts +0 -2
  44. package/dist/components/Headline/constants.js +2 -6
  45. package/dist/components/Headline/constants.js.map +1 -1
  46. package/dist/components/MobileAppTile/MobileAppTile.js +5 -3
  47. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  48. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  49. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  50. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  51. package/dist/components/Tile/Tile.js +1 -1
  52. package/dist/components/Tile/Tile.js.map +1 -1
  53. package/dist/model/AlignText.d.ts +2 -0
  54. package/dist/model/AlignText.js +8 -0
  55. package/dist/model/AlignText.js.map +1 -0
  56. package/dist/model/HeadlineType.d.ts +2 -2
  57. package/dist/ui-kit/Foldable/DefaultFoldButton.js +13 -4
  58. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  59. package/dist/ui-kit/List/ListItem.js +4 -4
  60. package/dist/ui-kit/List/ListItem.js.map +1 -1
  61. package/lib/common.css +1 -1
  62. package/lib/components/Accordion/Accordion.js +2 -6
  63. package/lib/components/Accordion/Accordion.js.map +1 -1
  64. package/lib/components/Blocks.d.ts +1 -0
  65. package/lib/components/Blocks.js +2 -0
  66. package/lib/components/Blocks.js.map +1 -1
  67. package/lib/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  68. package/lib/components/ContactsBlock/ContactsBlock.fixture.d.ts +5 -0
  69. package/lib/components/ContactsBlock/ContactsBlock.js +17 -0
  70. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -0
  71. package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  72. package/lib/components/ContactsBlock/ContactsBlockContent.js +2 -0
  73. package/lib/components/ContactsBlock/ContactsBlockContent.js.map +1 -0
  74. package/lib/components/ContentPage/renderContentPageHead.d.ts +3 -0
  75. package/lib/components/ContentPage/renderContentPageHead.js +27 -0
  76. package/lib/components/ContentPage/renderContentPageHead.js.map +1 -0
  77. package/lib/components/Gallery/Gallery.mobile.js +2 -1
  78. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  79. package/lib/components/Gallery/GalleryCardInner.js +6 -11
  80. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  81. package/lib/components/Gallery/GalleryContainer.js +2 -2
  82. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  83. package/lib/components/Gallery/GalleryContent.d.ts +3 -1
  84. package/lib/components/Gallery/GalleryInner.js +4 -3
  85. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  86. package/lib/components/Headline/Headline.js +3 -2
  87. package/lib/components/Headline/Headline.js.map +1 -1
  88. package/lib/components/Headline/Headline.mobile.js +3 -2
  89. package/lib/components/Headline/Headline.mobile.js.map +1 -1
  90. package/lib/components/Headline/constants.d.ts +0 -2
  91. package/lib/components/Headline/constants.js +1 -5
  92. package/lib/components/Headline/constants.js.map +1 -1
  93. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +2 -1
  94. package/lib/components/MobileAppTile/MobileAppTile.js +5 -3
  95. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  96. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  97. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  98. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  99. package/lib/components/Tile/Tile.js +1 -1
  100. package/lib/components/Tile/Tile.js.map +1 -1
  101. package/lib/model/AlignText.d.ts +2 -0
  102. package/lib/model/AlignText.js +6 -0
  103. package/lib/model/AlignText.js.map +1 -0
  104. package/lib/model/HeadlineType.d.ts +2 -2
  105. package/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -4
  106. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  107. package/lib/ui-kit/List/ListItem.js +4 -4
  108. package/lib/ui-kit/List/ListItem.js.map +1 -1
  109. package/mobile/bundle/bundle.umd.js +10 -8
  110. package/mobile/bundle/bundle.umd.min.js +1 -1
  111. package/mobile/bundle/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  112. package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  113. package/mobile/bundle/components/ContentPage/renderContentPageHead.d.ts +3 -0
  114. package/mobile/bundle/components/Gallery/GalleryContent.d.ts +3 -1
  115. package/mobile/bundle/components/Headline/constants.d.ts +0 -2
  116. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  117. package/mobile/bundle/model/AlignText.d.ts +2 -0
  118. package/mobile/bundle/model/HeadlineType.d.ts +2 -2
  119. package/mobile/dist/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  120. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +19 -0
  121. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -0
  122. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  123. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.js +2 -0
  124. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.js.map +1 -0
  125. package/mobile/dist/components/ContentPage/renderContentPageHead.d.ts +3 -0
  126. package/mobile/dist/components/ContentPage/renderContentPageHead.js +30 -0
  127. package/mobile/dist/components/ContentPage/renderContentPageHead.js.map +1 -0
  128. package/mobile/dist/components/Gallery/Gallery.js +2 -1
  129. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  130. package/mobile/dist/components/Gallery/GalleryCardInner.js +6 -11
  131. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  132. package/mobile/dist/components/Gallery/GalleryContainer.js +2 -2
  133. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  134. package/mobile/dist/components/Gallery/GalleryContent.d.ts +3 -1
  135. package/mobile/dist/components/Gallery/GalleryInner.js +4 -3
  136. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  137. package/mobile/dist/components/Headline/Headline.js +2 -1
  138. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  139. package/mobile/dist/components/Headline/constants.d.ts +0 -2
  140. package/mobile/dist/components/Headline/constants.js +2 -6
  141. package/mobile/dist/components/Headline/constants.js.map +1 -1
  142. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  143. package/mobile/dist/components/Tile/Tile.js +1 -1
  144. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  145. package/mobile/dist/model/AlignText.d.ts +2 -0
  146. package/mobile/dist/model/AlignText.js +8 -0
  147. package/mobile/dist/model/AlignText.js.map +1 -0
  148. package/mobile/dist/model/HeadlineType.d.ts +2 -2
  149. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +13 -4
  150. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  151. package/mobile/dist/ui-kit/List/ListItem.js +4 -4
  152. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  153. package/mobile/lib/components/ContactsBlock/ContactsBlock.d.ts +5 -0
  154. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +17 -0
  155. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -0
  156. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +36 -0
  157. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.js +2 -0
  158. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.js.map +1 -0
  159. package/mobile/lib/components/ContentPage/renderContentPageHead.d.ts +3 -0
  160. package/mobile/lib/components/ContentPage/renderContentPageHead.js +27 -0
  161. package/mobile/lib/components/ContentPage/renderContentPageHead.js.map +1 -0
  162. package/mobile/lib/components/Gallery/Gallery.js +2 -1
  163. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  164. package/mobile/lib/components/Gallery/GalleryCardInner.js +6 -11
  165. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  166. package/mobile/lib/components/Gallery/GalleryContainer.js +2 -2
  167. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  168. package/mobile/lib/components/Gallery/GalleryContent.d.ts +3 -1
  169. package/mobile/lib/components/Gallery/GalleryInner.js +4 -3
  170. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  171. package/mobile/lib/components/Headline/Headline.js +3 -2
  172. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  173. package/mobile/lib/components/Headline/constants.d.ts +0 -2
  174. package/mobile/lib/components/Headline/constants.js +1 -5
  175. package/mobile/lib/components/Headline/constants.js.map +1 -1
  176. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +6 -0
  177. package/mobile/lib/components/Tile/Tile.js +1 -1
  178. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  179. package/mobile/lib/model/AlignText.d.ts +2 -0
  180. package/mobile/lib/model/AlignText.js +6 -0
  181. package/mobile/lib/model/AlignText.js.map +1 -0
  182. package/mobile/lib/model/HeadlineType.d.ts +2 -2
  183. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +13 -4
  184. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  185. package/mobile/lib/ui-kit/List/ListItem.js +4 -4
  186. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  187. package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +51 -0
  188. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +70 -0
  189. package/mobile/src/components/ContactsBlock/ContactsBlock.ui.json +8 -0
  190. package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +39 -0
  191. package/mobile/src/components/ContentPage/renderContentPageHead.tsx +38 -0
  192. package/mobile/src/components/Gallery/Gallery.example.json +2 -2
  193. package/mobile/src/components/Gallery/Gallery.tsx +9 -5
  194. package/mobile/src/components/Gallery/Gallery.ui.json +11 -1
  195. package/mobile/src/components/Gallery/GalleryCardInner.tsx +17 -26
  196. package/mobile/src/components/Gallery/GalleryContainer.tsx +1 -2
  197. package/mobile/src/components/Gallery/GalleryContent.ts +3 -1
  198. package/mobile/src/components/Gallery/GalleryInner.tsx +11 -4
  199. package/mobile/src/components/Headline/Headline.tsx +4 -3
  200. package/mobile/src/components/Headline/constants.ts +1 -7
  201. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +6 -0
  202. package/mobile/src/components/Tile/Tile.tsx +1 -1
  203. package/mobile/src/model/AlignText.ts +7 -0
  204. package/mobile/src/model/HeadlineType.ts +2 -2
  205. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +32 -23
  206. package/mobile/src/ui-kit/List/ListItem.tsx +10 -7
  207. package/package.json +1 -1
  208. package/src/components/Accordion/Accordion.tsx +2 -8
  209. package/src/components/Blocks.ts +2 -0
  210. package/src/components/ContactsBlock/ContactsBlock.example.json +51 -0
  211. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +57 -0
  212. package/src/components/ContactsBlock/ContactsBlock.tsx +70 -0
  213. package/src/components/ContactsBlock/ContactsBlock.ui.json +8 -0
  214. package/src/components/ContactsBlock/ContactsBlockContent.ts +39 -0
  215. package/src/components/ContentPage/renderContentPageHead.tsx +38 -0
  216. package/src/components/Gallery/Gallery.example.json +2 -2
  217. package/src/components/Gallery/Gallery.fixture.mobile.tsx +3 -3
  218. package/src/components/Gallery/Gallery.fixture.tsx +20 -24
  219. package/src/components/Gallery/Gallery.mobile.tsx +9 -5
  220. package/src/components/Gallery/Gallery.ui.json +11 -1
  221. package/src/components/Gallery/GalleryCardInner.tsx +17 -26
  222. package/src/components/Gallery/GalleryContainer.tsx +1 -2
  223. package/src/components/Gallery/GalleryContent.ts +3 -1
  224. package/src/components/Gallery/GalleryInner.tsx +11 -4
  225. package/src/components/Headline/Headline.mobile.tsx +4 -3
  226. package/src/components/Headline/Headline.tsx +4 -3
  227. package/src/components/Headline/constants.ts +1 -7
  228. package/src/components/MiniGallery/MiniGallery.fixture.tsx +72 -44
  229. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -0
  230. package/src/components/MobileAppTile/MobileAppTile.tsx +8 -1
  231. package/src/components/MobileAppTile/MobileAppTileContent.ts +6 -0
  232. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  233. package/src/components/Tile/Tile.tsx +1 -1
  234. package/src/model/AlignText.ts +7 -0
  235. package/src/model/HeadlineType.ts +2 -2
  236. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +32 -23
  237. package/src/ui-kit/List/ListItem.tsx +10 -7
  238. package/bundle/components/ContentPage/ContentPageHead.d.ts +0 -7
  239. package/dist/components/ContentPage/ContentPageHead.d.ts +0 -7
  240. package/dist/components/ContentPage/ContentPageHead.js +0 -20
  241. package/dist/components/ContentPage/ContentPageHead.js.map +0 -1
  242. package/lib/components/ContentPage/ContentPageHead.d.ts +0 -7
  243. package/lib/components/ContentPage/ContentPageHead.js +0 -18
  244. package/lib/components/ContentPage/ContentPageHead.js.map +0 -1
  245. package/mobile/bundle/components/ContentPage/ContentPageHead.d.ts +0 -7
  246. package/mobile/dist/components/ContentPage/ContentPageHead.d.ts +0 -7
  247. package/mobile/dist/components/ContentPage/ContentPageHead.js +0 -20
  248. package/mobile/dist/components/ContentPage/ContentPageHead.js.map +0 -1
  249. package/mobile/lib/components/ContentPage/ContentPageHead.d.ts +0 -7
  250. package/mobile/lib/components/ContentPage/ContentPageHead.js +0 -18
  251. package/mobile/lib/components/ContentPage/ContentPageHead.js.map +0 -1
  252. package/mobile/src/components/ContentPage/ContentPageHead.tsx +0 -43
  253. package/src/components/ContentPage/ContentPageHead.tsx +0 -43
@@ -46,7 +46,7 @@ export const defaultProps: GalleryProps = {
46
46
  title: 'Более 5000 товаров',
47
47
  description:
48
48
  'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
49
- image,
49
+ icon: image,
50
50
  button: buttonPrimary,
51
51
  isDotted,
52
52
  items: defaultItems,
@@ -55,7 +55,7 @@ export const defaultProps: GalleryProps = {
55
55
  {
56
56
  title: 'Более 1000 развлечений',
57
57
  description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
58
- image,
58
+ icon: image,
59
59
  button: buttonPrimaryIcon,
60
60
  isDotted,
61
61
  items: defaultItems,
@@ -63,7 +63,7 @@ export const defaultProps: GalleryProps = {
63
63
  {
64
64
  title: 'Фермерские продукты',
65
65
  description: 'Высокий процент даже при небольшой сумме денежных средств',
66
- image,
66
+ icon: image,
67
67
  button: buttonPrimary,
68
68
  isDotted,
69
69
  items: defaultItems,
@@ -72,7 +72,7 @@ export const defaultProps: GalleryProps = {
72
72
  title: '«Моя выгода»',
73
73
  description:
74
74
  'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
75
- image,
75
+ icon: image,
76
76
  button: buttonPrimary,
77
77
  isDotted,
78
78
  items: defaultItems,
@@ -89,26 +89,26 @@ const textAndButtonProps: GalleryProps = {
89
89
  title: 'Более 5000 товаров',
90
90
  description:
91
91
  'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
92
- image,
92
+ icon: image,
93
93
  button: buttonPrimary,
94
94
  },
95
95
  {
96
96
  title: 'Более 1000 развлечений',
97
97
  description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
98
- image,
98
+ icon: image,
99
99
  button: buttonPrimary,
100
100
  },
101
101
  {
102
102
  title: 'Фермерские продукты',
103
103
  description: 'Высокий процент даже при небольшой сумме денежных средств',
104
- image,
104
+ icon: image,
105
105
  button: buttonPrimary,
106
106
  },
107
107
  {
108
108
  title: '«Моя выгода»',
109
109
  description:
110
110
  'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
111
- image,
111
+ icon: image,
112
112
  button: buttonPrimary,
113
113
  },
114
114
  ],
@@ -121,28 +121,28 @@ const listAndButtonProps: GalleryProps = {
121
121
  cards: [
122
122
  {
123
123
  title: 'Более 5000 товаров',
124
- image,
124
+ icon: image,
125
125
  button: buttonPrimary,
126
126
  isDotted,
127
127
  items: defaultItems,
128
128
  },
129
129
  {
130
130
  title: 'Более 1000 развлечений',
131
- image,
131
+ icon: image,
132
132
  button: buttonPrimary,
133
133
  isDotted,
134
134
  items: defaultItems,
135
135
  },
136
136
  {
137
137
  title: 'Фермерские продукты',
138
- image,
138
+ icon: image,
139
139
  button: buttonPrimary,
140
140
  isDotted,
141
141
  items: defaultItems,
142
142
  },
143
143
  {
144
144
  title: '«Моя выгода»',
145
- image,
145
+ icon: image,
146
146
  button: buttonPrimary,
147
147
  isDotted,
148
148
  items: defaultItems,
@@ -159,49 +159,45 @@ const textAndNoButtonProps: GalleryProps = {
159
159
  title: 'Более 5000 товаров',
160
160
  description:
161
161
  'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
162
- image,
162
+ icon: image,
163
163
  },
164
164
  {
165
165
  title: 'Более 1000 развлечений',
166
166
  description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
167
- image,
167
+ icon: image,
168
168
  },
169
169
  {
170
170
  title: 'Фермерские продукты',
171
171
  description: 'Высокий процент даже при небольшой сумме денежных средств',
172
- image,
172
+ icon: image,
173
173
  },
174
174
  {
175
175
  title: '«Моя выгода»',
176
176
  description:
177
177
  'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
178
- image,
178
+ icon: image,
179
179
  },
180
180
  ],
181
181
  };
182
182
 
183
183
  const onlyTitleProps: GalleryProps = {
184
184
  title: 'Вы можете оплатить бонусными баллами',
185
- description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
186
185
  context,
187
186
  cards: [
188
187
  {
189
188
  title: 'Более 5000 товаров',
190
- image,
189
+ icon: { icon: 'PercentageRoundIcon' },
191
190
  },
192
191
  {
193
192
  title: 'Более 1000 развлечений',
194
- image,
193
+ icon: { icon: 'InterestIcon' },
195
194
  },
196
195
  {
197
196
  title: 'Фермерские продукты',
198
- image,
199
- },
200
- {
201
- title: '«Моя выгода»',
202
- image,
197
+ icon: { icon: 'WalletIcon' },
203
198
  },
204
199
  ],
200
+ button: buttonPrimary,
205
201
  };
206
202
 
207
203
  export default {
@@ -11,6 +11,7 @@ import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl
11
11
  import type { ContentPageContext } from '../ContentPage/ContentPageContext';
12
12
  import type { GalleryCardProps, GalleryItemProps } from './GalleryContent';
13
13
  import type { GalleryProps } from './GalleryProps';
14
+ import { Picture } from '../../model/Picture';
14
15
 
15
16
  export const Gallery = JSX<GalleryProps>(
16
17
  ({ context, title, description, cards = [], className, orientation = 'horizontal' }) => {
@@ -54,11 +55,7 @@ function renderCard(card: GalleryCardProps, key: number) {
54
55
  key={key}
55
56
  >
56
57
  <div>
57
- {card.image?.src ? (
58
- <div className="flex justify-center">
59
- <Img className="mb-3.5" image={card.image} />
60
- </div>
61
- ) : null}
58
+ {renderImage(card.icon)}
62
59
  {card.title ? <h3 className={`text-m-title-xs font-medium m-0`}>{card.title}</h3> : null}
63
60
  {card.description ? renderDescription(card) : null}
64
61
  {card.items?.length ? renderItems(card.items, card.isDotted, card.version) : null}
@@ -68,6 +65,13 @@ function renderCard(card: GalleryCardProps, key: number) {
68
65
  );
69
66
  }
70
67
 
68
+ const renderImage = (image?: Picture) =>
69
+ image?.src || image?.icon ? (
70
+ <div className="flex justify-center">
71
+ <Img className="mb-3.5" image={image} />
72
+ </div>
73
+ ) : null;
74
+
71
75
  function renderButton(button?: ButtonWithIconProps) {
72
76
  return <Button className="mt-3" {...button} />;
73
77
  }
@@ -1 +1,11 @@
1
- {}
1
+ {
2
+ "content": {
3
+ "cards": {
4
+ "items": {
5
+ "additionalDescription": {
6
+ "ui:field": "hidden"
7
+ }
8
+ }
9
+ }
10
+ }
11
+ }
@@ -1,27 +1,20 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { AlignType } from '../../model/AlignType';
2
+ import { AlignText } from '../../model/AlignText';
3
3
  import type { BlockVersion } from '../../model/BlockVersion';
4
4
  import type { Picture } from '../../model/Picture';
5
5
  import { Button } from '../../ui-kit/Button/Button';
6
- import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
7
6
  import { Img } from '../../ui-kit/Img/Img';
8
7
  import { List } from '../../ui-kit/List/List';
9
8
  import { HEADLINE_SMALL_VERSION } from '../Headline/constants';
10
9
  import type { GalleryCardProps, GalleryItemProps } from './GalleryContent';
11
10
 
12
- const ALIGN_TITLE: Record<AlignType, string> = {
13
- left: 'text-left',
14
- center: 'text-center',
15
- right: 'text-right',
16
- };
17
-
18
11
  export const GalleryCardInner = JSX<GalleryCardProps>(
19
12
  ({
20
13
  title,
21
- headlineSmallVersion = 'XL_L',
14
+ headlineSmallVersion = 'H6',
22
15
  description,
23
16
  additionalDescription,
24
- image,
17
+ icon,
25
18
  items,
26
19
  button,
27
20
  version,
@@ -29,42 +22,40 @@ export const GalleryCardInner = JSX<GalleryCardProps>(
29
22
  align = 'center',
30
23
  }) => {
31
24
  return (
32
- <div className={`h-full flex flex-col justify-between ${ALIGN_TITLE[align]}`}>
25
+ <div className={`h-full flex flex-col justify-between ${AlignText[align]}`}>
33
26
  <div className="flex flex-col h-full">
34
- {renderImage(image)}
27
+ {renderImage(icon)}
35
28
  {renderCardTitle(headlineSmallVersion, title)}
36
29
  {renderDescription(description, title)}
37
- {renderAdditionalDescription(additionalDescription)}
38
30
  {items?.length ? renderItems(items, isDotted, version) : null}
31
+ {renderAdditionalDescription(additionalDescription)}
39
32
  </div>
40
- {button ? renderButton(button) : null}
33
+ {button?.text ? <Button className="mt-6" {...button} /> : null}
41
34
  </div>
42
35
  );
43
36
  },
44
37
  );
45
38
 
46
- const renderImage = (image?: Picture) =>
47
- image?.src ? (
48
- <div className="flex justify-center">
49
- <Img className="mb-6" image={image} />
50
- </div>
51
- ) : null;
39
+ const renderImage = (image?: Picture) => (
40
+ <div className="flex justify-center">
41
+ {image?.src ? <Img className="mb-5" image={image} /> : null}
42
+ {image?.icon ? (
43
+ <Img className={`w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`} image={image} asSVG />
44
+ ) : null}
45
+ </div>
46
+ );
52
47
 
53
48
  const renderCardTitle = (headlineSmallVersion: string, title?: string) =>
54
49
  title ? <div className={HEADLINE_SMALL_VERSION[headlineSmallVersion]}>{title}</div> : null;
55
50
 
56
51
  const renderDescription = (description?: string, title?: string) =>
57
- description ? <div className={`text-base ${title ? 'mt-2' : ''}`}>{description}</div> : null;
52
+ description ? <div className={`text-l ${title ? 'mt-2' : ''}`}>{description}</div> : null;
58
53
 
59
54
  const renderAdditionalDescription = (additionalDescription?: string) =>
60
55
  additionalDescription ? (
61
56
  <div className="text-m-light text-secondary-text mt-auto">{additionalDescription}</div>
62
57
  ) : null;
63
58
 
64
- const renderButton = (button: ButtonWithIconProps) => (
65
- <Button className="mt-6 w-full" {...button} />
66
- );
67
-
68
59
  const renderItems = (
69
60
  items: GalleryItemProps[],
70
61
  isDotted: boolean,
@@ -72,7 +63,7 @@ const renderItems = (
72
63
  ) => (
73
64
  <List
74
65
  className={`max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`}
75
- itemClassName="mt-1 text-left first:mt-0"
66
+ itemClassName="text-left"
76
67
  items={items.filter((item) => item?.text).map((item) => item.text as string)}
77
68
  isDotted={isDotted}
78
69
  version={version}
@@ -22,7 +22,7 @@ export const GalleryContainer = JSX<GalleryContainerProps>(
22
22
  ({
23
23
  context,
24
24
  title,
25
- headlineVersion = 'L',
25
+ headlineVersion = 'M',
26
26
  description,
27
27
  cards = [],
28
28
  version = 'normal',
@@ -30,7 +30,6 @@ export const GalleryContainer = JSX<GalleryContainerProps>(
30
30
  }) => {
31
31
  return (
32
32
  <div>
33
- <div className="absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" />
34
33
  <Headline
35
34
  context={context}
36
35
  className="!p-0"
@@ -20,6 +20,7 @@ export interface GalleryItemProps {
20
20
  * @default {"headlineSmallVersion": "XL_L"}
21
21
  */
22
22
  export type GalleryCardProps = HeadlineSmallProps & {
23
+ /** @title Дополнительное описание */
23
24
  additionalDescription?: string;
24
25
  /**
25
26
  * @default {
@@ -35,7 +36,7 @@ export type GalleryCardProps = HeadlineSmallProps & {
35
36
  * }]
36
37
  * }
37
38
  */
38
- image?: Picture;
39
+ icon?: Picture;
39
40
  /** @title Кнопка */
40
41
  button?: ButtonWithIconProps;
41
42
  /**
@@ -64,4 +65,5 @@ export type GalleryContent = HeadlineProps & {
64
65
  cards?: GalleryCardProps[];
65
66
  /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
66
67
  orientation?: ListOrientation; //TODO: for mobile
68
+ button?: ButtonWithIconProps;
67
69
  };
@@ -7,13 +7,14 @@ import { renderArrows } from '../../ui-kit/Button/renderArrows';
7
7
  import { galleryLengthForScrollMap } from './constants';
8
8
  import { GalleryContainer } from './GalleryContainer';
9
9
  import type { GalleryContent } from './GalleryContent';
10
+ import { Button } from '../../ui-kit/Button/Button';
10
11
 
11
12
  export interface GalleryInnerProps extends GalleryContent, UniBlockProps {
12
13
  version?: GalleryVersion;
13
14
  }
14
15
 
15
16
  export const GalleryInner = JSX<GalleryInnerProps>(
16
- ({ context, cards = [], className = '', version = 'normal', ...rest }) => {
17
+ ({ context, cards = [], className = '', version = 'normal', button, ...rest }) => {
17
18
  const [activeCardIndex, setActiveCardIndex] = useState(0);
18
19
 
19
20
  const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
@@ -30,7 +31,7 @@ export const GalleryInner = JSX<GalleryInnerProps>(
30
31
  return (
31
32
  <BlockWrapper
32
33
  context={context}
33
- className={`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${className}`}
34
+ className={`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden flex flex-col ${className}`}
34
35
  {...rest}
35
36
  >
36
37
  <GalleryContainer
@@ -46,8 +47,14 @@ export const GalleryInner = JSX<GalleryInnerProps>(
46
47
  btnClass: ['left-8', 'right-8'],
47
48
  className: 'top-1/2',
48
49
  })}
49
- <div className="absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white" />
50
- <div className="absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white" />
50
+ {isGalleryScrollAvailable ? (
51
+ <div>
52
+ <div className="absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white" />
53
+ <div className="absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white" />
54
+ </div>
55
+ ) : null}
56
+
57
+ {button ? <Button className="mt-8 mx-auto" {...button} /> : null}
51
58
  </BlockWrapper>
52
59
  );
53
60
  },
@@ -1,9 +1,10 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { AlignText } from '../../model/AlignText';
2
3
 
3
4
  import type { UniBlockProps } from '../../model/JSXBlock';
4
5
  import { Heading } from '../../ui-kit/Heading/Heading';
5
6
  import { Img } from '../../ui-kit/Img/Img';
6
- import { ALIGN_TEXT, HEADLINE_BLOCK_STYLE_MAPS } from './constants';
7
+ import { HEADLINE_BLOCK_STYLE_MAPS } from './constants';
7
8
  import type { HeadlineContent } from './HeadlineContent';
8
9
 
9
10
  export interface HeadlineProps extends UniBlockProps, HeadlineContent {}
@@ -24,12 +25,12 @@ export const Headline = JSX<HeadlineProps>(
24
25
  {title ? (
25
26
  <Heading
26
27
  headingType="h2"
27
- className={`${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`}
28
+ className={`${STYLE_MAPS.text} ${AlignText[align]}`}
28
29
  title={title}
29
30
  />
30
31
  ) : null}
31
32
  {description ? (
32
- <p className={`text-m ${STYLE_MAPS.description} ${ALIGN_TEXT[align]}`}>{description}</p>
33
+ <p className={`text-m ${STYLE_MAPS.description} ${AlignText[align]}`}>{description}</p>
33
34
  ) : null}
34
35
  {image?.src && (
35
36
  <div className="mt-2.5 mx-auto flex justify-center">
@@ -1,10 +1,11 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { AlignText } from '../../model/AlignText';
2
3
 
3
4
  import type { UniBlockProps } from '../../model/JSXBlock';
4
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
6
  import { Description } from '../../ui-kit/Description/Description';
6
7
  import { Heading } from '../../ui-kit/Heading/Heading';
7
- import { ALIGN_TEXT, HEADLINE_BLOCK_STYLE_MAPS, HEADLINE_VERSION } from './constants';
8
+ import { HEADLINE_BLOCK_STYLE_MAPS, HEADLINE_VERSION } from './constants';
8
9
  import type { HeadlineContent } from './HeadlineContent';
9
10
 
10
11
  export interface HeadlineProps extends UniBlockProps, HeadlineContent {}
@@ -32,13 +33,13 @@ export const Headline = JSX<HeadlineProps>(
32
33
  <Heading
33
34
  headingType={SIZE_MAPS?.headingType}
34
35
  as={as || SIZE_MAPS?.as}
35
- className={`whitespace-pre-wrap ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`}
36
+ className={`whitespace-pre-wrap ${STYLE_MAPS.text} ${AlignText[align]}`}
36
37
  title={title}
37
38
  />
38
39
  ) : null}
39
40
  {description ? (
40
41
  <Description
41
- className={`${SIZE_MAPS.descriptionFont} ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`}
42
+ className={`${SIZE_MAPS.descriptionFont} ${STYLE_MAPS.text} ${AlignText[align]}`}
42
43
  description={description}
43
44
  />
44
45
  ) : null}
@@ -1,14 +1,7 @@
1
- import type { AlignType } from '../../model/AlignType';
2
1
  import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
3
2
  import type { HeadlineSmallVersion, HeadlineVersion } from '../../model/HeadlineType';
4
3
  import type { HeadingTagType, HeadingType } from '../../ui-kit/Heading/HeadingProps';
5
4
 
6
- export const ALIGN_TEXT: Record<AlignType, string> = {
7
- left: 'text-left',
8
- center: 'text-center',
9
- right: 'text-right',
10
- };
11
-
12
5
  type StyleType = {
13
6
  background: string;
14
7
  text: string;
@@ -74,6 +67,7 @@ export const HEADLINE_VERSION: Record<HeadlineVersion, VersionStyleType> = {
74
67
  };
75
68
 
76
69
  export const HEADLINE_SMALL_VERSION: Record<HeadlineSmallVersion, string> = {
70
+ H6: 'text-h6',
77
71
  XL_L: 'text-xl-light',
78
72
  XL_R: 'text-xl',
79
73
  L_L: 'text-l-light',
@@ -1,6 +1,9 @@
1
1
  import type { Picture } from '../../model/Picture';
2
2
  import { context } from '../../react/setup-fixture';
3
- import { MiniGallery, MiniGalleryProps } from './MiniGallery';
3
+ import { MiniGallery } from './MiniGallery';
4
+ import type { MiniGalleryProps } from './MiniGallery';
5
+ import type { GalleryCardProps } from '../Gallery/GalleryContent';
6
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
7
 
5
8
  const image: Picture = {
6
9
  src: 'domovoj-kupon.png',
@@ -21,28 +24,28 @@ export const defaultProps: MiniGalleryProps = {
21
24
  title: 'Более 5000 товаров',
22
25
  description:
23
26
  'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
24
- image,
27
+ icon: image,
25
28
  },
26
29
  {
27
30
  title: 'Более 1000 развлечений',
28
31
  description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
29
- image,
32
+ icon: image,
30
33
  },
31
34
  {
32
35
  title: 'Фермерские продукты',
33
36
  description: 'Высокий процент даже при небольшой сумме денежных средств',
34
- image,
37
+ icon: image,
35
38
  },
36
39
  {
37
40
  title: '«Моя выгода»',
38
41
  description:
39
42
  'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
40
- image,
43
+ icon: image,
41
44
  },
42
45
  {
43
46
  title: 'Более 8888 развлечений',
44
47
  description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
45
- image,
48
+ icon: image,
46
49
  },
47
50
  ],
48
51
  };
@@ -54,61 +57,81 @@ const onlyTitleProps: MiniGalleryProps = {
54
57
  cards: [
55
58
  {
56
59
  title: 'Более 5000 товаров',
57
- image,
60
+ icon: image,
58
61
  },
59
62
  {
60
63
  title: 'Более 1000 развлечений',
61
- image,
64
+ icon: image,
62
65
  },
63
66
  {
64
67
  title: 'Фермерские продукты',
65
- image,
68
+ icon: image,
66
69
  },
67
70
  {
68
71
  title: '«Моя выгода»',
69
- image,
72
+ icon: image,
70
73
  },
71
74
  ],
72
75
  };
73
76
 
77
+ const additionalDescriptionCards: GalleryCardProps[] = [
78
+ {
79
+ title: 'Более 5000 товаров',
80
+ description: 'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
81
+ additionalDescription: '01 января 2022',
82
+ icon: image,
83
+ },
84
+ {
85
+ title: 'Более 1000 развлечений',
86
+ description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
87
+ additionalDescription: '02 февраля 2022',
88
+ icon: image,
89
+ },
90
+ {
91
+ title: 'Фермерские продукты',
92
+ description: 'Высокий процент даже при небольшой сумме денежных средств',
93
+ additionalDescription: '03 марта 2022',
94
+ icon: image,
95
+ },
96
+ {
97
+ title: '«Моя выгода»',
98
+ description: 'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
99
+ additionalDescription: '04 апреля 2022',
100
+ icon: image,
101
+ },
102
+ {
103
+ title: 'Более 8888 развлечений',
104
+ description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
105
+ additionalDescription: '05 мая 2022',
106
+ icon: image,
107
+ },
108
+ ];
109
+
74
110
  const additionalDescriptionProps: MiniGalleryProps = {
75
111
  title: 'Вы можете оплатить бонусными баллами',
76
112
  description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
77
113
  context,
78
- cards: [
79
- {
80
- title: 'Более 5000 товаров',
81
- description:
82
- 'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
83
- additionalDescription: '01 января 2022',
84
- image,
85
- },
86
- {
87
- title: 'Более 1000 развлечений',
88
- description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
89
- additionalDescription: '02 февраля 2022',
90
- image,
91
- },
92
- {
93
- title: 'Фермерские продукты',
94
- description: 'Высокий процент даже при небольшой сумме денежных средств',
95
- additionalDescription: '03 марта 2022',
96
- image,
97
- },
98
- {
99
- title: '«Моя выгода»',
100
- description:
101
- 'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
102
- additionalDescription: '04 апреля 2022',
103
- image,
104
- },
105
- {
106
- title: 'Более 8888 развлечений',
107
- description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
108
- additionalDescription: '05 мая 2022',
109
- image,
110
- },
111
- ],
114
+ cards: additionalDescriptionCards,
115
+ };
116
+
117
+ const button: ButtonWithIconProps = {
118
+ href: '/credit-cards',
119
+ text: 'Подробнее',
120
+ target: '_blank',
121
+ version: 'secondary',
122
+ };
123
+
124
+ const list = [{ text: 'Item 1' }, { text: 'Item 2' }, { text: 'Item 3' }];
125
+
126
+ const combinedProps: MiniGalleryProps = {
127
+ title: 'Вы можете оплатить бонусными баллами',
128
+ description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
129
+ context,
130
+ cards: additionalDescriptionCards.map((card, i) => ({
131
+ ...card,
132
+ button: button,
133
+ items: i % 2 ? list : undefined,
134
+ })),
112
135
  };
113
136
 
114
137
  export default {
@@ -127,4 +150,9 @@ export default {
127
150
  <MiniGallery className="col-span-12" {...additionalDescriptionProps} />
128
151
  </div>
129
152
  ),
153
+ 'button, list, additional description': (
154
+ <div className="container grid grid-cols-12">
155
+ <MiniGallery className="col-span-12" {...combinedProps} />
156
+ </div>
157
+ ),
130
158
  };
@@ -64,6 +64,7 @@ export default {
64
64
  className="col-span-12"
65
65
  version="secondary"
66
66
  title="Обновлённое мобильное приложение «Урожай»"
67
+ description="Описание"
67
68
  image={image}
68
69
  qr={qr}
69
70
  headingType="h3"