@redneckz/wildless-cms-uni-blocks 0.14.49 → 0.14.51

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 (281) hide show
  1. package/bin/migration-scripts/0.14.31.js +66 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +47 -58
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  6. package/bundle/components/Bonus/BonusContent.d.ts +7 -3
  7. package/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
  8. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  9. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  10. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  11. package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  12. package/bundle/model/EmptyOptionType.d.ts +1 -3
  13. package/bundle/model/JSXBlock.d.ts +2 -2
  14. package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
  15. package/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  16. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  17. package/dist/components/Blocks.js +0 -4
  18. package/dist/components/Blocks.js.map +1 -1
  19. package/dist/components/Blocks.mobile.js +0 -4
  20. package/dist/components/Blocks.mobile.js.map +1 -1
  21. package/dist/components/Bonus/Bonus.js +1 -1
  22. package/dist/components/Bonus/Bonus.js.map +1 -1
  23. package/dist/components/Bonus/BonusContent.d.ts +7 -3
  24. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  25. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  26. package/dist/components/Calculator/CalculatorContent.d.ts +14 -5
  27. package/dist/components/LinkDocs/LinkDocs.js +3 -0
  28. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  29. package/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  30. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  31. package/dist/components/ProductBlock/ProductBlock.js +1 -13
  32. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  33. package/dist/components/TariffsTable/TariffsTableCell.js +1 -8
  34. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  35. package/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  36. package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  37. package/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
  38. package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  39. package/dist/model/EmptyOptionType.d.ts +1 -3
  40. package/dist/model/JSXBlock.d.ts +2 -2
  41. package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
  42. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  43. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  44. package/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  45. package/dist/ui-kit/BaseTile/BaseTile.js +16 -5
  46. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  47. package/lib/common.css +1 -1
  48. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  49. package/lib/components/Blocks.js +0 -4
  50. package/lib/components/Blocks.js.map +1 -1
  51. package/lib/components/Blocks.mobile.js +0 -4
  52. package/lib/components/Blocks.mobile.js.map +1 -1
  53. package/lib/components/Bonus/Bonus.js +1 -1
  54. package/lib/components/Bonus/Bonus.js.map +1 -1
  55. package/lib/components/Bonus/BonusContent.d.ts +7 -3
  56. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  57. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  58. package/lib/components/Calculator/CalculatorContent.d.ts +14 -5
  59. package/lib/components/LinkDocs/LinkDocs.js +3 -0
  60. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  61. package/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  62. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  63. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
  64. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +2 -0
  65. package/lib/components/ProductBlock/ProductBlock.js +2 -14
  66. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  67. package/lib/components/TariffsTable/TariffsTableCell.js +2 -9
  68. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  69. package/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  70. package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -1
  71. package/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
  72. package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  73. package/lib/model/EmptyOptionType.d.ts +1 -3
  74. package/lib/model/JSXBlock.d.ts +2 -2
  75. package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
  76. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  77. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  78. package/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  79. package/lib/ui-kit/BaseTile/BaseTile.js +16 -5
  80. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  81. package/mobile/bundle/bundle.umd.js +47 -58
  82. package/mobile/bundle/bundle.umd.min.js +1 -1
  83. package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  84. package/mobile/bundle/components/Bonus/BonusContent.d.ts +7 -3
  85. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +14 -5
  86. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  87. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  88. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  89. package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  90. package/mobile/bundle/model/EmptyOptionType.d.ts +1 -3
  91. package/mobile/bundle/model/JSXBlock.d.ts +2 -2
  92. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
  93. package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  94. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  95. package/mobile/dist/components/Blocks.js +0 -4
  96. package/mobile/dist/components/Blocks.js.map +1 -1
  97. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  98. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  99. package/mobile/dist/components/Bonus/BonusContent.d.ts +7 -3
  100. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  101. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  102. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -5
  103. package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -0
  104. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  105. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  106. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  107. package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -13
  108. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  109. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -8
  110. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  111. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  112. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  113. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +14 -14
  114. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  115. package/mobile/dist/model/EmptyOptionType.d.ts +1 -3
  116. package/mobile/dist/model/JSXBlock.d.ts +2 -2
  117. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
  118. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  119. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  120. package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  121. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +16 -5
  122. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  123. package/mobile/lib/common.css +1 -1
  124. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +7 -3
  125. package/mobile/lib/components/Blocks.js +0 -4
  126. package/mobile/lib/components/Blocks.js.map +1 -1
  127. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  128. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  129. package/mobile/lib/components/Bonus/BonusContent.d.ts +7 -3
  130. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  131. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  132. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -5
  133. package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -0
  134. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  135. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +9 -5
  136. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +7 -3
  137. package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -14
  138. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  139. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -9
  140. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  141. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -3
  142. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +5 -2
  143. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +13 -12
  144. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  145. package/mobile/lib/model/EmptyOptionType.d.ts +1 -3
  146. package/mobile/lib/model/JSXBlock.d.ts +2 -2
  147. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -0
  148. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  149. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  150. package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  151. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +16 -5
  152. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  153. package/mobile/src/common.css +4 -0
  154. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
  155. package/mobile/src/components/Blocks.ts +0 -4
  156. package/mobile/src/components/Bonus/Bonus.tsx +1 -1
  157. package/mobile/src/components/Bonus/BonusContent.ts +8 -3
  158. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
  159. package/mobile/src/components/Calculator/CalculatorContent.ts +16 -5
  160. package/mobile/src/components/LinkDocs/LinkDocs.tsx +3 -0
  161. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +10 -5
  162. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
  163. package/mobile/src/components/ProductBlock/ProductBlock.tsx +13 -32
  164. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
  165. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +8 -3
  166. package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
  167. package/mobile/src/model/EmptyOptionType.ts +1 -3
  168. package/mobile/src/model/JSXBlock.ts +2 -2
  169. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +5 -1
  170. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +48 -35
  171. package/package.json +1 -1
  172. package/src/common.css +4 -0
  173. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -3
  174. package/src/components/Blocks.mobile.ts +0 -4
  175. package/src/components/Blocks.ts +0 -4
  176. package/src/components/Bonus/Bonus.tsx +1 -1
  177. package/src/components/Bonus/BonusContent.ts +8 -3
  178. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +1 -1
  179. package/src/components/Calculator/CalculatorContent.ts +16 -5
  180. package/src/components/DepositFiltration/DepositFiltration.fixture.mobile.tsx +5 -5
  181. package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +5 -5
  182. package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +15 -15
  183. package/src/components/LinkDocs/LinkDocs.tsx +3 -0
  184. package/src/components/LinkDocs/LinkDocsContent.ts +10 -5
  185. package/src/components/MortgageFiltration/MortgageFiltration.fixture.mobile.tsx +8 -8
  186. package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +8 -8
  187. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +8 -3
  188. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +41 -0
  189. package/src/components/ProductBlock/ProductBlock.fixture.tsx +40 -0
  190. package/src/components/ProductBlock/ProductBlock.tsx +13 -32
  191. package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.mobile.tsx +9 -9
  192. package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +11 -11
  193. package/src/components/TariffsTable/TariffsTableCell.tsx +14 -11
  194. package/src/components/TariffsTable/TariffsTableContent.ts +8 -3
  195. package/src/components/TariffsTable/TariffsTableRenderCell.tsx +22 -18
  196. package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +3 -3
  197. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +9 -10
  198. package/src/model/EmptyOptionType.ts +1 -3
  199. package/src/model/JSXBlock.ts +2 -2
  200. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +5 -1
  201. package/src/ui-kit/BaseTile/BaseTile.tsx +48 -35
  202. package/bundle/components/ProductTile/ProductTile.d.ts +0 -5
  203. package/bundle/components/ProductTile/ProductTileContent.d.ts +0 -7
  204. package/bundle/components/Tile/Tile.d.ts +0 -5
  205. package/bundle/components/Tile/TileContent.d.ts +0 -6
  206. package/dist/components/ProductTile/ProductTile.d.ts +0 -5
  207. package/dist/components/ProductTile/ProductTile.js +0 -9
  208. package/dist/components/ProductTile/ProductTile.js.map +0 -1
  209. package/dist/components/ProductTile/ProductTileContent.d.ts +0 -7
  210. package/dist/components/ProductTile/ProductTileContent.js +0 -2
  211. package/dist/components/ProductTile/ProductTileContent.js.map +0 -1
  212. package/dist/components/Tile/Tile.d.ts +0 -5
  213. package/dist/components/Tile/Tile.js +0 -8
  214. package/dist/components/Tile/Tile.js.map +0 -1
  215. package/dist/components/Tile/TileContent.d.ts +0 -6
  216. package/dist/components/Tile/TileContent.js +0 -2
  217. package/dist/components/Tile/TileContent.js.map +0 -1
  218. package/lib/components/ProductTile/ProductTile.d.ts +0 -5
  219. package/lib/components/ProductTile/ProductTile.fixture.d.ts +0 -17
  220. package/lib/components/ProductTile/ProductTile.fixture.mobile.d.ts +0 -16
  221. package/lib/components/ProductTile/ProductTile.js +0 -7
  222. package/lib/components/ProductTile/ProductTile.js.map +0 -1
  223. package/lib/components/ProductTile/ProductTileContent.d.ts +0 -7
  224. package/lib/components/ProductTile/ProductTileContent.js +0 -2
  225. package/lib/components/ProductTile/ProductTileContent.js.map +0 -1
  226. package/lib/components/Tile/Tile.d.ts +0 -5
  227. package/lib/components/Tile/Tile.fixture.d.ts +0 -15
  228. package/lib/components/Tile/Tile.fixture.mobile.d.ts +0 -9
  229. package/lib/components/Tile/Tile.js +0 -6
  230. package/lib/components/Tile/Tile.js.map +0 -1
  231. package/lib/components/Tile/TileContent.d.ts +0 -6
  232. package/lib/components/Tile/TileContent.js +0 -2
  233. package/lib/components/Tile/TileContent.js.map +0 -1
  234. package/mobile/bundle/components/ProductTile/ProductTile.d.ts +0 -5
  235. package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +0 -7
  236. package/mobile/bundle/components/Tile/Tile.d.ts +0 -5
  237. package/mobile/bundle/components/Tile/TileContent.d.ts +0 -6
  238. package/mobile/dist/components/ProductTile/ProductTile.d.ts +0 -5
  239. package/mobile/dist/components/ProductTile/ProductTile.js +0 -9
  240. package/mobile/dist/components/ProductTile/ProductTile.js.map +0 -1
  241. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +0 -7
  242. package/mobile/dist/components/ProductTile/ProductTileContent.js +0 -2
  243. package/mobile/dist/components/ProductTile/ProductTileContent.js.map +0 -1
  244. package/mobile/dist/components/Tile/Tile.d.ts +0 -5
  245. package/mobile/dist/components/Tile/Tile.js +0 -8
  246. package/mobile/dist/components/Tile/Tile.js.map +0 -1
  247. package/mobile/dist/components/Tile/TileContent.d.ts +0 -6
  248. package/mobile/dist/components/Tile/TileContent.js +0 -2
  249. package/mobile/dist/components/Tile/TileContent.js.map +0 -1
  250. package/mobile/lib/components/ProductTile/ProductTile.d.ts +0 -5
  251. package/mobile/lib/components/ProductTile/ProductTile.js +0 -7
  252. package/mobile/lib/components/ProductTile/ProductTile.js.map +0 -1
  253. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +0 -7
  254. package/mobile/lib/components/ProductTile/ProductTileContent.js +0 -2
  255. package/mobile/lib/components/ProductTile/ProductTileContent.js.map +0 -1
  256. package/mobile/lib/components/Tile/Tile.d.ts +0 -5
  257. package/mobile/lib/components/Tile/Tile.js +0 -6
  258. package/mobile/lib/components/Tile/Tile.js.map +0 -1
  259. package/mobile/lib/components/Tile/TileContent.d.ts +0 -6
  260. package/mobile/lib/components/Tile/TileContent.js +0 -2
  261. package/mobile/lib/components/Tile/TileContent.js.map +0 -1
  262. package/mobile/src/components/ProductTile/ProductTile.example.json +0 -44
  263. package/mobile/src/components/ProductTile/ProductTile.tsx +0 -40
  264. package/mobile/src/components/ProductTile/ProductTile.ui.json +0 -17
  265. package/mobile/src/components/ProductTile/ProductTileContent.ts +0 -10
  266. package/mobile/src/components/Tile/Tile.example.json +0 -28
  267. package/mobile/src/components/Tile/Tile.tsx +0 -23
  268. package/mobile/src/components/Tile/Tile.ui.json +0 -17
  269. package/mobile/src/components/Tile/TileContent.ts +0 -7
  270. package/src/components/ProductTile/ProductTile.example.json +0 -44
  271. package/src/components/ProductTile/ProductTile.fixture.mobile.tsx +0 -217
  272. package/src/components/ProductTile/ProductTile.fixture.tsx +0 -227
  273. package/src/components/ProductTile/ProductTile.tsx +0 -40
  274. package/src/components/ProductTile/ProductTile.ui.json +0 -17
  275. package/src/components/ProductTile/ProductTileContent.ts +0 -10
  276. package/src/components/Tile/Tile.example.json +0 -28
  277. package/src/components/Tile/Tile.fixture.mobile.tsx +0 -48
  278. package/src/components/Tile/Tile.fixture.tsx +0 -146
  279. package/src/components/Tile/Tile.tsx +0 -23
  280. package/src/components/Tile/Tile.ui.json +0 -17
  281. package/src/components/Tile/TileContent.ts +0 -7
@@ -3,7 +3,7 @@ import '../../setup-fixture';
3
3
  import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
4
4
  import { Blocks } from '../Blocks';
5
5
  import { type LinkDocsContent } from '../LinkDocs/LinkDocsContent';
6
- import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
6
+ import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
7
7
  import { HorizontalLayout } from './HorizontalLayout';
8
8
 
9
9
  export const linkDocsExample: LinkDocsContent = {
@@ -27,8 +27,8 @@ export default {
27
27
  block={{
28
28
  type: 'HorizontalLayout',
29
29
  blocks: [
30
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
31
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
30
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
31
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
32
32
  ],
33
33
  }}
34
34
  options={options}
@@ -43,8 +43,8 @@ export default {
43
43
  block={{
44
44
  type: 'HorizontalLayout',
45
45
  blocks: [
46
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
47
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
46
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
47
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
48
48
  ],
49
49
  }}
50
50
  options={options}
@@ -58,7 +58,7 @@ export default {
58
58
  className="col-span-12"
59
59
  block={{
60
60
  type: 'HorizontalLayout',
61
- blocks: [{ type: 'ProductTile', content: PRODUCT_TILE }],
61
+ blocks: [{ type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE }],
62
62
  }}
63
63
  options={options}
64
64
  />
@@ -71,9 +71,9 @@ export default {
71
71
  block={{
72
72
  type: 'HorizontalLayout',
73
73
  blocks: [
74
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-4'] },
75
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-4'] },
76
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-4'] },
74
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-4'] },
75
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-4'] },
76
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-4'] },
77
77
  ],
78
78
  }}
79
79
  options={options}
@@ -90,12 +90,12 @@ export default {
90
90
  block={{
91
91
  type: 'HorizontalLayout',
92
92
  blocks: [
93
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
94
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
95
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
96
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
97
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
98
- { type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
93
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
94
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
95
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
96
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
97
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
98
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE, style: ['col-span-6'] },
99
99
  ],
100
100
  }}
101
101
  options={options}
@@ -61,6 +61,9 @@ export const LinkDocs = JSX<LinkDocsProps>(
61
61
 
62
62
  const renderLinkDocItem =
63
63
  (router: Router, icon: Picture) => (docBlockDef: DocBlockDef, i: number) => {
64
+ if (docBlockDef?.docType === '') {
65
+ return null;
66
+ }
64
67
  const href =
65
68
  docBlockDef?.docType === 'Attachment'
66
69
  ? adjustHref(router)(docBlockDef?.attachment?.src)
@@ -1,5 +1,4 @@
1
1
  import { type Attachment } from '../../model/Attachment';
2
- import { type EmptyOption } from '../../model/EmptyOptionType';
3
2
  import { type AlignProps, type HeadlineCommonProps } from '../../model/HeadlineType';
4
3
  import { type UniBlockContent } from '../../model/JSXBlock';
5
4
  import { type LinkProps, type Target } from '../../model/LinkProps';
@@ -32,25 +31,31 @@ export interface AttachmentDoc {
32
31
 
33
32
  /**
34
33
  * @title Ссылка на документ
35
- * @default {"docType": "Link"}
36
34
  */
37
35
  export type LinkDocDef = LinkDoc & {
36
+ /** @default "Link" */
38
37
  docType: 'Link';
39
38
  };
40
39
 
41
40
  /**
42
41
  * @title Файл
43
- * @default {"docType": "Attachment"}
44
42
  */
45
43
  export type AttachmentDocDef = AttachmentDoc & {
44
+ /** @default "Attachment" */
46
45
  docType: 'Attachment';
47
46
  };
48
47
 
48
+ /** @title Не выбрано * */
49
+ export type EmptyDocType = {
50
+ /** @default "" */
51
+ docType: '';
52
+ };
53
+
49
54
  /**
50
55
  * @title Документ
51
- * @default null
56
+ * @default {"docType": ""}
52
57
  */
53
- export type DocBlockDef = EmptyOption | LinkDocDef | AttachmentDocDef;
58
+ export type DocBlockDef = EmptyDocType | LinkDocDef | AttachmentDocDef;
54
59
 
55
60
  /**
56
61
  * @title Список документов
@@ -2,7 +2,7 @@ import '../../setup-fixture';
2
2
 
3
3
  import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
4
4
  import { Blocks } from '../Blocks';
5
- import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
5
+ import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
6
6
  import { MortgageFiltration } from './MortgageFiltration';
7
7
  import {
8
8
  type MortgageFiltrationContent,
@@ -46,7 +46,7 @@ const CATEGORY_SALARY = {
46
46
  };
47
47
 
48
48
  const generateBlock = (...presets: any[]) => ({
49
- type: 'ProductTile',
49
+ type: 'ProductBlock',
50
50
  style: ['col-span-6'],
51
51
  content: { ...presets.reduce((acc, p) => ({ ...acc, ...p })) },
52
52
  });
@@ -155,42 +155,42 @@ export default {
155
155
  type: 'MortgageFiltration',
156
156
  blocks: [
157
157
  generateBlock(
158
- PRODUCT_TILE,
158
+ PRODUCT_BLOCK_WITH_IMAGE,
159
159
  PROPERTY_APARTMENT,
160
160
  STAGE_IN_PROGRESS,
161
161
  EXTRA_MORTGAGE,
162
162
  CATEGORY_IT,
163
163
  ),
164
164
  generateBlock(
165
- PRODUCT_TILE,
165
+ PRODUCT_BLOCK_WITH_IMAGE,
166
166
  PROPERTY_APARTMENT,
167
167
  STAGE_BUILT,
168
168
  EXTRA_CHILDREN,
169
169
  CATEGORY_SALARY,
170
170
  ),
171
171
  generateBlock(
172
- PRODUCT_TILE,
172
+ PRODUCT_BLOCK_WITH_IMAGE,
173
173
  PROPERTY_FLAT,
174
174
  STAGE_IN_PROGRESS,
175
175
  EXTRA_MORTGAGE,
176
176
  CATEGORY_SALARY,
177
177
  ),
178
178
  generateBlock(
179
- PRODUCT_TILE,
179
+ PRODUCT_BLOCK_WITH_IMAGE,
180
180
  PROPERTY_FLAT,
181
181
  STAGE_BUILT,
182
182
  EXTRA_MORTGAGE,
183
183
  CATEGORY_SALARY,
184
184
  ),
185
185
  generateBlock(
186
- PRODUCT_TILE,
186
+ PRODUCT_BLOCK_WITH_IMAGE,
187
187
  PROPERTY_APARTMENT,
188
188
  STAGE_BUILT,
189
189
  EXTRA_CHILDREN,
190
190
  CATEGORY_IT,
191
191
  ),
192
192
  generateBlock(
193
- PRODUCT_TILE,
193
+ PRODUCT_BLOCK_WITH_IMAGE,
194
194
  PROPERTY_HOUSE,
195
195
  STAGE_BUILT,
196
196
  EXTRA_MORTGAGE,
@@ -2,7 +2,7 @@ import '../../setup-fixture';
2
2
 
3
3
  import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
4
4
  import { Blocks } from '../Blocks';
5
- import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
5
+ import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
6
6
  import { MortgageFiltration } from './MortgageFiltration';
7
7
  import {
8
8
  type MortgageFiltrationContent,
@@ -46,7 +46,7 @@ const CATEGORY_SALARY = {
46
46
  };
47
47
 
48
48
  const generateBlock = (...presets: any[]) => ({
49
- type: 'ProductTile',
49
+ type: 'ProductBlock',
50
50
  style: ['col-span-6'],
51
51
  content: { ...presets.reduce((acc, p) => ({ ...acc, ...p })) },
52
52
  });
@@ -155,42 +155,42 @@ export default {
155
155
  type: 'MortgageFiltration',
156
156
  blocks: [
157
157
  generateBlock(
158
- PRODUCT_TILE,
158
+ PRODUCT_BLOCK_WITH_IMAGE,
159
159
  PROPERTY_APARTMENT,
160
160
  STAGE_IN_PROGRESS,
161
161
  EXTRA_MORTGAGE,
162
162
  CATEGORY_IT,
163
163
  ),
164
164
  generateBlock(
165
- PRODUCT_TILE,
165
+ PRODUCT_BLOCK_WITH_IMAGE,
166
166
  PROPERTY_APARTMENT,
167
167
  STAGE_BUILT,
168
168
  EXTRA_CHILDREN,
169
169
  CATEGORY_SALARY,
170
170
  ),
171
171
  generateBlock(
172
- PRODUCT_TILE,
172
+ PRODUCT_BLOCK_WITH_IMAGE,
173
173
  PROPERTY_FLAT,
174
174
  STAGE_IN_PROGRESS,
175
175
  EXTRA_MORTGAGE,
176
176
  CATEGORY_SALARY,
177
177
  ),
178
178
  generateBlock(
179
- PRODUCT_TILE,
179
+ PRODUCT_BLOCK_WITH_IMAGE,
180
180
  PROPERTY_FLAT,
181
181
  STAGE_BUILT,
182
182
  EXTRA_MORTGAGE,
183
183
  CATEGORY_SALARY,
184
184
  ),
185
185
  generateBlock(
186
- PRODUCT_TILE,
186
+ PRODUCT_BLOCK_WITH_IMAGE,
187
187
  PROPERTY_APARTMENT,
188
188
  STAGE_BUILT,
189
189
  EXTRA_CHILDREN,
190
190
  CATEGORY_IT,
191
191
  ),
192
192
  generateBlock(
193
- PRODUCT_TILE,
193
+ PRODUCT_BLOCK_WITH_IMAGE,
194
194
  PROPERTY_HOUSE,
195
195
  STAGE_BUILT,
196
196
  EXTRA_MORTGAGE,
@@ -1,4 +1,3 @@
1
- import { type EmptyOption } from '../../model/EmptyOptionType';
2
1
  import { type UniBlockContent } from '../../model/JSXBlock';
3
2
  import { type Picture } from '../../model/Picture';
4
3
 
@@ -31,11 +30,17 @@ export type AtmsDef = {
31
30
  list?: ItemList[];
32
31
  };
33
32
 
33
+ /** @title Не выбрано * */
34
+ export type EmptyOfficesAtmsBlock = {
35
+ /** @default "" */
36
+ dataType: '';
37
+ };
38
+
34
39
  /**
35
40
  * @title Данные
36
- * @default null
41
+ * @default { "dataType": "" }
37
42
  */
38
- export type OfficesAtmsBlockDef = EmptyOption | OfficesDef | AtmsDef;
43
+ export type OfficesAtmsBlockDef = EmptyOfficesAtmsBlock | OfficesDef | AtmsDef;
39
44
 
40
45
  /**
41
46
  * @title Блок офисов и банкоматов
@@ -3,6 +3,7 @@ import '../../setup-fixture';
3
3
  import { type ComplexBenefitContent } from '../../ui-kit/BenefitItem/BenefitItemContent';
4
4
  import { type ButtonContent } from '../../ui-kit/Button/ButtonContent';
5
5
  import { ProductBlock } from './ProductBlock';
6
+ import { type ProductBlockContent } from './ProductBlockContent';
6
7
 
7
8
  const title = 'Кредит до 5 000 000 Р\nбез залога и поручителей';
8
9
  const description =
@@ -50,6 +51,12 @@ const benefits: ComplexBenefitContent[] = [
50
51
  },
51
52
  ];
52
53
 
54
+ const benefit: ComplexBenefitContent = {
55
+ type: 'default',
56
+ label: 'до 5 млн Р',
57
+ description: 'Кредитный лимит',
58
+ };
59
+
53
60
  const buttons: ButtonContent[] = [
54
61
  {
55
62
  href: 'https://rshb.ru',
@@ -73,6 +80,40 @@ const items = [
73
80
 
74
81
  const props = { title, description, image, buttons };
75
82
 
83
+ export const PRODUCT_BLOCK_WITH_IMAGE: ProductBlockContent = {
84
+ title: 'Акция! “Кредит На все, что хочется!”',
85
+ headlineVersion: 'S',
86
+ description: 'Потребительский кредит на любые цели, без залога и поручительства',
87
+ benefits: [
88
+ benefit,
89
+ { ...benefit, label: 'от 12,5%', description: 'Процентная ставка' },
90
+ {
91
+ ...benefit,
92
+ label: 'до 5 лет',
93
+ description: 'Срок кредитования',
94
+ },
95
+ ],
96
+ buttons: [
97
+ {
98
+ text: 'Подробнее',
99
+ href: '/credit-cards',
100
+ version: 'secondary',
101
+ },
102
+ ],
103
+ image: {
104
+ src: 'card-with-diamond.png',
105
+ alt: 'Кредиты в РСХБ',
106
+ format: 'webp',
107
+ size: {
108
+ height: 200,
109
+ width: 200,
110
+ },
111
+ },
112
+ isTabularBenefits: true,
113
+ isFullWidthTitle: true,
114
+ imageOptions: { isImageSecondary: true },
115
+ };
116
+
76
117
  export default {
77
118
  default: (
78
119
  <div className="container grid grid-cols-12">
@@ -36,6 +36,12 @@ const benefits: ComplexBenefitContent[] = [
36
36
  },
37
37
  ];
38
38
 
39
+ const benefit: ComplexBenefitContent = {
40
+ type: 'default',
41
+ label: 'до 5 млн Р',
42
+ description: 'Кредитный лимит',
43
+ };
44
+
39
45
  const buttons: ButtonContent[] = [
40
46
  {
41
47
  href: 'https://rshb.ru',
@@ -66,6 +72,40 @@ const items = [
66
72
  'Расходы для бизнеса на УСН 15% позволят снизить налоговую базу',
67
73
  ];
68
74
 
75
+ export const PRODUCT_BLOCK_WITH_IMAGE: ProductBlockContent = {
76
+ title: 'Акция! “Кредит На все, что хочется!”',
77
+ headlineVersion: 'S',
78
+ description: 'Потребительский кредит на любые цели, без залога и поручительства',
79
+ benefits: [
80
+ benefit,
81
+ { ...benefit, label: 'от 12,5%', description: 'Процентная ставка' },
82
+ {
83
+ ...benefit,
84
+ label: 'до 5 лет',
85
+ description: 'Срок кредитования',
86
+ },
87
+ ],
88
+ buttons: [
89
+ {
90
+ text: 'Подробнее',
91
+ href: '/credit-cards',
92
+ version: 'secondary',
93
+ },
94
+ ],
95
+ image: {
96
+ src: 'card-with-diamond.png',
97
+ alt: 'Кредиты в РСХБ',
98
+ format: 'webp',
99
+ size: {
100
+ height: 242,
101
+ width: 242,
102
+ },
103
+ },
104
+ isTabularBenefits: true,
105
+ isFullWidthTitle: true,
106
+ imageOptions: { isImageSecondary: true },
107
+ };
108
+
69
109
  export const PRODUCT_BLOCK: ProductBlockContent = {
70
110
  title: 'Оплата проходит в 180 странах мира',
71
111
  headlineVersion: 'L',
@@ -1,44 +1,25 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
- import { useRouter } from '../../hooks/useRouter';
4
2
  import { type UniBlockProps } from '../../model/JSXBlock';
5
3
  import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
6
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
- import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
8
5
  import { getBorderStyle } from '../../utils/getBorderStyle';
9
6
  import { style } from '../../utils/style';
10
7
  import { type ProductBlockContent } from './ProductBlockContent';
11
- import { renderBackwardButton } from './renderBackwardButton';
12
8
 
13
9
  export interface ProductBlockProps extends UniBlockProps, ProductBlockContent {}
14
10
 
15
11
  export const ProductBlock = JSX<ProductBlockProps>(
16
- ({ className, padding, backwardButton, showBorder, ...rest }) => {
17
- const router = useRouter();
18
- const handleClick = useCallback((ev?: PreventableEvent) => {
19
- ev?.preventDefault();
20
- router.back();
21
- }, []);
22
-
23
- return (
24
- <BlockWrapper
25
- className={style(
26
- 'overflow-hidden flex flex-col gap-3xl box-border',
27
- getBorderStyle(showBorder),
28
- className,
29
- )}
30
- defaultPadding="p-6xl"
31
- padding={padding}
32
- {...rest}
33
- >
34
- {backwardButton
35
- ? renderBackwardButton(
36
- !rest.version || rest.version === 'primary' ? 'primary' : 'white',
37
- handleClick,
38
- )
39
- : null}
40
- <BaseProductTile className="grow h-full" {...rest} />
41
- </BlockWrapper>
42
- );
43
- },
12
+ ({ className, padding, showBorder, ...rest }) => (
13
+ <BlockWrapper
14
+ className={style(
15
+ 'overflow-hidden flex flex-col gap-3xl box-border',
16
+ getBorderStyle(showBorder),
17
+ className,
18
+ )}
19
+ padding="p-0"
20
+ {...rest}
21
+ >
22
+ <BaseProductTile defaultPadding="p-6xl" padding={padding} className="grow h-full" {...rest} />
23
+ </BlockWrapper>
24
+ ),
44
25
  );
@@ -2,7 +2,7 @@ import '../../setup-fixture';
2
2
 
3
3
  import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
4
4
  import { Blocks } from '../Blocks';
5
- import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
5
+ import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
6
6
  import { SwipeListControlBlock } from './SwipeListControlBlock';
7
7
 
8
8
  const options = {
@@ -17,10 +17,10 @@ export default {
17
17
  block={{
18
18
  type: 'SwipeListControlBlock',
19
19
  blocks: [
20
- { type: 'ProductTile', content: PRODUCT_TILE },
21
- { type: 'ProductTile', content: PRODUCT_TILE },
22
- { type: 'ProductTile', content: PRODUCT_TILE },
23
- { type: 'ProductTile', content: PRODUCT_TILE },
20
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
21
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
22
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
23
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
24
24
  ],
25
25
  }}
26
26
  showDots={true}
@@ -36,8 +36,8 @@ export default {
36
36
  block={{
37
37
  type: 'SwipeListControlBlock',
38
38
  blocks: [
39
- { type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
40
- { type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
39
+ { type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
40
+ { type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
41
41
  ],
42
42
  }}
43
43
  listType="vertical-list"
@@ -53,8 +53,8 @@ export default {
53
53
  block={{
54
54
  type: 'SwipeListControlBlock',
55
55
  blocks: [
56
- { type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
57
- { type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
56
+ { type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
57
+ { type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
58
58
  ],
59
59
  }}
60
60
  listType="vertical-list"
@@ -2,7 +2,7 @@ import '../../setup-fixture';
2
2
 
3
3
  import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
4
4
  import { Blocks } from '../Blocks';
5
- import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
5
+ import { PRODUCT_BLOCK_WITH_IMAGE } from '../ProductBlock/ProductBlock.fixture';
6
6
  import { SwipeListControlBlock } from './SwipeListControlBlock';
7
7
 
8
8
  const options = {
@@ -17,8 +17,8 @@ export default {
17
17
  block={{
18
18
  type: 'SwipeListControlBlock',
19
19
  blocks: [
20
- { type: 'ProductTile', content: PRODUCT_TILE },
21
- { type: 'ProductTile', content: PRODUCT_TILE },
20
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
21
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
22
22
  ],
23
23
  }}
24
24
  listType="vertical-list"
@@ -33,8 +33,8 @@ export default {
33
33
  block={{
34
34
  type: 'SwipeListControlBlock',
35
35
  blocks: [
36
- { type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
37
- { type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
36
+ { type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
37
+ { type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
38
38
  ],
39
39
  }}
40
40
  listType="vertical-list"
@@ -50,8 +50,8 @@ export default {
50
50
  block={{
51
51
  type: 'SwipeListControlBlock',
52
52
  blocks: [
53
- { type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
54
- { type: 'ProductTile', content: { ...PRODUCT_TILE, version: '' } },
53
+ { type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
54
+ { type: 'ProductBlock', content: { ...PRODUCT_BLOCK_WITH_IMAGE, version: '' } },
55
55
  ],
56
56
  }}
57
57
  listType="vertical-list"
@@ -68,10 +68,10 @@ export default {
68
68
  block={{
69
69
  type: 'SwipeListControlBlock',
70
70
  blocks: [
71
- { type: 'ProductTile', content: PRODUCT_TILE },
72
- { type: 'ProductTile', content: PRODUCT_TILE },
73
- { type: 'ProductTile', content: PRODUCT_TILE },
74
- { type: 'ProductTile', content: PRODUCT_TILE },
71
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
72
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
73
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
74
+ { type: 'ProductBlock', content: PRODUCT_BLOCK_WITH_IMAGE },
75
75
  ],
76
76
  }}
77
77
  listType="vertical-list"
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type UniBlockProps } from '../../model/JSXBlock';
3
3
  import { type TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
4
4
  import { type CellDef } from './TariffsTableContent';
5
- import { renderCellInner } from './TariffsTableRenderCell';
5
+ import { RenderCellInner } from './TariffsTableRenderCell';
6
6
 
7
7
  export interface TariffTableContentProps {
8
8
  openTableInnerIdx?: number;
@@ -30,16 +30,19 @@ export const TariffsTableCell = JSX<TariffsTableCellProps>(
30
30
  return (
31
31
  <div className="w-80 flex-grow flex flex-col gap-m @4xl:gap-lg" role="cell">
32
32
  {cells?.length
33
- ? cells.map(
34
- renderCellInner({
35
- rowIdx,
36
- cellIdx,
37
- setTableInner,
38
- tableInner,
39
- openTableInnerIdx,
40
- setOpenTableInnerIdx,
41
- }),
42
- )
33
+ ? cells.map((_, i) => (
34
+ <RenderCellInner
35
+ key={String(i)}
36
+ cell={_}
37
+ fieldIdx={i}
38
+ rowIdx={rowIdx}
39
+ cellIdx={cellIdx}
40
+ setTableInner={setTableInner}
41
+ tableInner={tableInner}
42
+ openTableInnerIdx={openTableInnerIdx}
43
+ setOpenTableInnerIdx={setOpenTableInnerIdx}
44
+ />
45
+ ))
43
46
  : null}
44
47
  </div>
45
48
  );
@@ -1,4 +1,3 @@
1
- import { type EmptyOption } from '../../model/EmptyOptionType';
2
1
  import { type DescriptionProps, type LabelProps, type TitleProps } from '../../model/HeadlineType';
3
2
  import { type UniBlockContent, type UniBlockProps } from '../../model/JSXBlock';
4
3
  import { type IconProps } from '../../model/Picture';
@@ -89,12 +88,18 @@ export type InnerTableBlockDef = TariffsTableInnerContent & {
89
88
  tableCellType: 'Table';
90
89
  };
91
90
 
91
+ /** @title Не выбрано * */
92
+ export type EmptyCellType = {
93
+ /** @default "" */
94
+ tableCellType: '';
95
+ };
96
+
92
97
  /**
93
98
  * @title Содержимое ячейки
94
- * @default null
99
+ * @default { "tableCellType": "" }
95
100
  */
96
101
  export type CellDef =
97
- | EmptyOption
102
+ | EmptyCellType
98
103
  | ImageCellDef
99
104
  | ButtonsCellDef
100
105
  | LabelDescriptionCellDef