@redneckz/wildless-cms-uni-blocks 0.3.23 → 0.3.26

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 (294) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +30 -51
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Blocks.mobile.d.ts +1 -0
  5. package/dist/components/Blocks.mobile.js +2 -0
  6. package/dist/components/Blocks.mobile.js.map +1 -1
  7. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +18 -6
  8. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  9. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  10. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  11. package/dist/components/Gallery/Gallery.mobile.js +4 -4
  12. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  13. package/dist/components/Gallery/GalleryCardInner.js +4 -9
  14. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  15. package/dist/components/Gallery/GalleryContent.d.ts +3 -2
  16. package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  17. package/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -1
  18. package/dist/components/OtherProducts/OtherProductsItem.js +1 -1
  19. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  20. package/dist/components/ProductBlock/ProductBlock.mobile.js +7 -5
  21. package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  22. package/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  23. package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
  24. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  25. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +8 -3
  26. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  27. package/dist/components/ProductBlock/renderBenefit.mobile.d.ts +2 -1
  28. package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
  29. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  30. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  31. package/dist/components/TariffsTable/TariffsTableCell.js +4 -4
  32. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  33. package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  34. package/dist/components/TariffsTable/TariffsTableTileCell.js +4 -2
  35. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  36. package/dist/components/TextBlock/TextBlock.mobile.js +1 -1
  37. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  38. package/dist/components/Tile/Tile.js +1 -1
  39. package/dist/components/Tile/Tile.js.map +1 -1
  40. package/dist/icons/IconName.d.ts +1 -1
  41. package/dist/icons/IconName.js.map +1 -1
  42. package/dist/ui-kit/Icon/Icon.js +2 -1
  43. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  44. package/dist/ui-kit/Icon/IconProps.d.ts +2 -2
  45. package/dist/ui-kit/Img/Img.js +3 -1
  46. package/dist/ui-kit/Img/Img.js.map +1 -1
  47. package/dist/ui-kit/List/List.d.ts +1 -1
  48. package/dist/ui-kit/List/List.js +7 -2
  49. package/dist/ui-kit/List/List.js.map +1 -1
  50. package/dist/ui-kit/List/ListItem.d.ts +1 -1
  51. package/dist/ui-kit/List/ListItem.js +4 -9
  52. package/dist/ui-kit/List/ListItem.js.map +1 -1
  53. package/dist/ui-kit/List/ListProps.d.ts +2 -0
  54. package/lib/common.css +1 -1
  55. package/lib/components/Blocks.mobile.d.ts +1 -0
  56. package/lib/components/Blocks.mobile.js +2 -0
  57. package/lib/components/Blocks.mobile.js.map +1 -1
  58. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +18 -6
  59. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  60. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  61. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  62. package/lib/components/Gallery/Gallery.mobile.js +4 -4
  63. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  64. package/lib/components/Gallery/GalleryCardInner.js +4 -9
  65. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  66. package/lib/components/Gallery/GalleryContent.d.ts +3 -2
  67. package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  68. package/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -1
  69. package/lib/components/OtherProducts/OtherProductsItem.js +1 -1
  70. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  71. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +4 -0
  72. package/lib/components/ProductBlock/ProductBlock.mobile.js +7 -5
  73. package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  74. package/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  75. package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
  76. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  77. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +8 -3
  78. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  79. package/lib/components/ProductBlock/renderBenefit.mobile.d.ts +2 -1
  80. package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
  81. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  82. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  83. package/lib/components/TariffsTable/TariffsTableCell.js +4 -4
  84. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  85. package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  86. package/lib/components/TariffsTable/TariffsTableTileCell.js +4 -2
  87. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  88. package/lib/components/TextBlock/TextBlock.mobile.js +1 -1
  89. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  90. package/lib/components/Tile/Tile.js +1 -1
  91. package/lib/components/Tile/Tile.js.map +1 -1
  92. package/lib/icons/IconName.js.map +1 -1
  93. package/lib/ui-kit/Icon/Icon.js +2 -1
  94. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  95. package/lib/ui-kit/Icon/IconProps.d.ts +2 -2
  96. package/lib/ui-kit/Img/Img.js +3 -1
  97. package/lib/ui-kit/Img/Img.js.map +1 -1
  98. package/lib/ui-kit/List/List.d.ts +1 -1
  99. package/lib/ui-kit/List/List.fixture.d.ts +10 -0
  100. package/lib/ui-kit/List/List.js +7 -2
  101. package/lib/ui-kit/List/List.js.map +1 -1
  102. package/lib/ui-kit/List/ListItem.d.ts +1 -1
  103. package/lib/ui-kit/List/ListItem.js +4 -9
  104. package/lib/ui-kit/List/ListItem.js.map +1 -1
  105. package/lib/ui-kit/List/ListProps.d.ts +2 -0
  106. package/mobile/bundle/bundle.umd.js +74 -75
  107. package/mobile/bundle/bundle.umd.min.js +1 -1
  108. package/mobile/dist/components/Blocks.d.ts +1 -0
  109. package/mobile/dist/components/Blocks.js +2 -0
  110. package/mobile/dist/components/Blocks.js.map +1 -1
  111. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +18 -6
  112. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  113. package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  114. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  115. package/mobile/dist/components/Gallery/Gallery.js +4 -4
  116. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  117. package/mobile/dist/components/Gallery/GalleryCardInner.js +4 -9
  118. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  119. package/mobile/dist/components/Gallery/GalleryContent.d.ts +3 -2
  120. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  121. package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -1
  122. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +1 -1
  123. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  124. package/mobile/dist/components/ProductBlock/ProductBlock.js +7 -5
  125. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  126. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  127. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +8 -3
  128. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  129. package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +2 -1
  130. package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
  131. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  132. package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  133. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +4 -4
  134. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  135. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  136. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +4 -2
  137. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  138. package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
  139. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  140. package/mobile/dist/components/Tile/Tile.js +1 -1
  141. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  142. package/mobile/dist/ui-kit/Icon/Icon.js +2 -1
  143. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  144. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +2 -2
  145. package/mobile/dist/ui-kit/List/List.d.ts +1 -1
  146. package/mobile/dist/ui-kit/List/List.js +7 -2
  147. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  148. package/mobile/dist/ui-kit/List/ListItem.d.ts +1 -1
  149. package/mobile/dist/ui-kit/List/ListItem.js +4 -9
  150. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  151. package/mobile/dist/ui-kit/List/ListProps.d.ts +2 -0
  152. package/mobile/lib/components/Blocks.d.ts +1 -0
  153. package/mobile/lib/components/Blocks.js +2 -0
  154. package/mobile/lib/components/Blocks.js.map +1 -1
  155. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +18 -6
  156. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  157. package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  158. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  159. package/mobile/lib/components/Gallery/Gallery.js +4 -4
  160. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  161. package/mobile/lib/components/Gallery/GalleryCardInner.js +4 -9
  162. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  163. package/mobile/lib/components/Gallery/GalleryContent.d.ts +3 -2
  164. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  165. package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -1
  166. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +1 -1
  167. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  168. package/mobile/lib/components/ProductBlock/ProductBlock.js +7 -5
  169. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  170. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  171. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +8 -3
  172. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  173. package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +2 -1
  174. package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
  175. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  176. package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  177. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +4 -4
  178. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  179. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  180. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +4 -2
  181. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  182. package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
  183. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  184. package/mobile/lib/components/Tile/Tile.js +1 -1
  185. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  186. package/mobile/lib/ui-kit/Icon/Icon.js +2 -1
  187. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  188. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +2 -2
  189. package/mobile/lib/ui-kit/List/List.d.ts +1 -1
  190. package/mobile/lib/ui-kit/List/List.js +7 -2
  191. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  192. package/mobile/lib/ui-kit/List/ListItem.d.ts +1 -1
  193. package/mobile/lib/ui-kit/List/ListItem.js +4 -9
  194. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  195. package/mobile/lib/ui-kit/List/ListProps.d.ts +2 -0
  196. package/mobile/src/components/Blocks.ts +2 -0
  197. package/mobile/src/components/ComparisonTable/ComparisonTable.example.json +1 -0
  198. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +52 -31
  199. package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +3 -2
  200. package/mobile/src/components/ContentPage/ContentPage.tsx +0 -1
  201. package/mobile/src/components/CreditCalculator/CreditCalculator.example.json +19 -0
  202. package/mobile/src/components/Gallery/Gallery.example.json +1 -0
  203. package/mobile/src/components/Gallery/Gallery.tsx +5 -4
  204. package/mobile/src/components/Gallery/GalleryCardInner.tsx +13 -18
  205. package/mobile/src/components/Gallery/GalleryContent.ts +3 -2
  206. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +3 -10
  207. package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +1 -1
  208. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +1 -1
  209. package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -0
  210. package/mobile/src/components/ProductBlock/ProductBlock.tsx +17 -12
  211. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +4 -0
  212. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +25 -5
  213. package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -1
  214. package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +4 -1
  215. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +28 -27
  216. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -1
  217. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +33 -31
  218. package/mobile/src/components/TextBlock/TextBlock.example.json +2 -1
  219. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -2
  220. package/mobile/src/components/Tile/Tile.tsx +3 -1
  221. package/mobile/src/ui-kit/Icon/Icon.tsx +7 -1
  222. package/mobile/src/ui-kit/Icon/IconProps.ts +2 -2
  223. package/mobile/src/ui-kit/List/List.tsx +9 -3
  224. package/mobile/src/ui-kit/List/ListItem.tsx +5 -12
  225. package/mobile/src/ui-kit/List/ListProps.ts +2 -0
  226. package/package.json +1 -1
  227. package/src/components/Blocks.mobile.ts +2 -0
  228. package/src/components/ComparisonTable/ComparisonTable.example.json +1 -0
  229. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +1 -1
  230. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +52 -31
  231. package/src/components/ComparisonTable/ComparisonTableContent.ts +3 -2
  232. package/src/components/ContentPage/ContentPage.tsx +0 -1
  233. package/src/components/CreditCalculator/CreditCalculator.example.json +19 -0
  234. package/src/components/Gallery/Gallery.example.json +1 -0
  235. package/src/components/Gallery/Gallery.fixture.mobile.tsx +3 -2
  236. package/src/components/Gallery/Gallery.mobile.tsx +5 -4
  237. package/src/components/Gallery/GalleryCardInner.tsx +13 -18
  238. package/src/components/Gallery/GalleryContent.ts +3 -2
  239. package/src/components/LinkDocs/LinkDocsContent.ts +3 -10
  240. package/src/components/MiniGallery/MiniGalleryContent.ts +1 -1
  241. package/src/components/OtherProducts/OtherProductsItem.tsx +1 -1
  242. package/src/components/ProductBlock/ProductBlock.example.json +1 -0
  243. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +49 -13
  244. package/src/components/ProductBlock/ProductBlock.mobile.tsx +17 -12
  245. package/src/components/ProductBlock/ProductBlockContent.ts +4 -0
  246. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +25 -5
  247. package/src/components/ProductBlock/ProductBlockInner.tsx +8 -1
  248. package/src/components/ProductBlock/renderBenefit.mobile.tsx +2 -1
  249. package/src/components/ProductGallery/ProductGalleryContent.ts +4 -1
  250. package/src/components/TariffsTable/TariffsTableCell.tsx +28 -27
  251. package/src/components/TariffsTable/TariffsTableContent.ts +1 -1
  252. package/src/components/TariffsTable/TariffsTableTileCell.tsx +33 -31
  253. package/src/components/TextBlock/TextBlock.example.json +2 -1
  254. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +8 -0
  255. package/src/components/TextBlock/TextBlock.mobile.tsx +2 -2
  256. package/src/components/Tile/Tile.tsx +3 -1
  257. package/src/icons/IconName.ts +152 -3
  258. package/src/ui-kit/Icon/Icon.tsx +7 -1
  259. package/src/ui-kit/Icon/IconProps.ts +2 -2
  260. package/src/ui-kit/Img/Img.tsx +5 -2
  261. package/src/ui-kit/List/List.fixture.tsx +37 -0
  262. package/src/ui-kit/List/List.tsx +9 -3
  263. package/src/ui-kit/List/ListItem.tsx +5 -12
  264. package/src/ui-kit/List/ListProps.ts +2 -0
  265. package/dist/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  266. package/dist/ui-kit/BlockItem/BlockItem.js +0 -23
  267. package/dist/ui-kit/BlockItem/BlockItem.js.map +0 -1
  268. package/dist/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  269. package/dist/ui-kit/BlockItem/BlockItemProps.js +0 -2
  270. package/dist/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  271. package/lib/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  272. package/lib/ui-kit/BlockItem/BlockItem.fixture.d.ts +0 -8
  273. package/lib/ui-kit/BlockItem/BlockItem.js +0 -21
  274. package/lib/ui-kit/BlockItem/BlockItem.js.map +0 -1
  275. package/lib/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  276. package/lib/ui-kit/BlockItem/BlockItemProps.js +0 -2
  277. package/lib/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  278. package/mobile/dist/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  279. package/mobile/dist/ui-kit/BlockItem/BlockItem.js +0 -23
  280. package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +0 -1
  281. package/mobile/dist/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  282. package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js +0 -2
  283. package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  284. package/mobile/lib/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  285. package/mobile/lib/ui-kit/BlockItem/BlockItem.js +0 -21
  286. package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +0 -1
  287. package/mobile/lib/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  288. package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js +0 -2
  289. package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  290. package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +0 -33
  291. package/mobile/src/ui-kit/BlockItem/BlockItemProps.ts +0 -23
  292. package/src/ui-kit/BlockItem/BlockItem.fixture.tsx +0 -12
  293. package/src/ui-kit/BlockItem/BlockItem.tsx +0 -33
  294. package/src/ui-kit/BlockItem/BlockItemProps.ts +0 -23
@@ -70,5 +70,7 @@ export const Tile = JSX<TileProps>((props) => {
70
70
  });
71
71
 
72
72
  function renderList(items, version) {
73
- return items?.length ? <List items={items} version={version} /> : null;
73
+ return items?.length ? (
74
+ <List items={items} itemClassName="mt-2.5 first:mt-0" version={version} />
75
+ ) : null;
74
76
  }
@@ -6,6 +6,7 @@ import { IconTitleMap } from '../../icons/IconName';
6
6
  const svgColorsMap: Record<IconColor, string> = {
7
7
  none: '',
8
8
  primary: 'text-primary-main',
9
+ secondary: 'text-primary-text',
9
10
  };
10
11
 
11
12
  export const Icon = JSX<IconProps>(
@@ -22,7 +23,12 @@ export const Icon = JSX<IconProps>(
22
23
 
23
24
  if (asSVG) {
24
25
  return (
25
- <svg className={`${svgColorsMap[color]} ${className}`} {...imgProps} aria-hidden="true">
26
+ <svg
27
+ className={`${svgColorsMap[color]} ${className}`}
28
+ {...imgProps}
29
+ aria-hidden="true"
30
+ style={color === 'secondary' ? { filter: 'invert(1)' } : null}
31
+ >
26
32
  {title ? <title>{title}</title> : null}
27
33
  {alt ? <desc>{alt}</desc> : null}
28
34
  <use href={`${href}#icon`} xlinkHref={`${href}#icon`} />
@@ -4,9 +4,9 @@ export type { IconName };
4
4
 
5
5
  /**
6
6
  * @title Цвет иконки (svg)
7
- * @enumNames ["Нет", "Основной"]
7
+ * @enumNames ["Нет", "Основной", "Второстепенный"]
8
8
  */
9
- export type IconColor = 'none' | 'primary';
9
+ export type IconColor = 'none' | 'primary' | 'secondary';
10
10
 
11
11
  export interface IconProps {
12
12
  className?: string;
@@ -1,12 +1,18 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { ListItem } from './ListItem';
3
- import { ListProps } from './ListProps';
3
+ import type { ListProps, ListItemVersion } from './ListProps';
4
+
5
+ const TEXT_STYLE_MAP: Record<ListItemVersion, string> = {
6
+ primary: 'text-primary-text',
7
+ secondary: 'text-white',
8
+ gray: 'text-secondary-text',
9
+ };
4
10
 
5
11
  export const List = JSX<ListProps>((props) => {
6
- const { className = '', itemClassName, isDotted, items, version } = props;
12
+ const { className = '', itemClassName, isDotted, items, version = 'primary' } = props;
7
13
 
8
14
  return (
9
- <section className={`${className}`} role="list">
15
+ <section className={`${TEXT_STYLE_MAP[version]} ${className}`} role="list">
10
16
  {items?.length
11
17
  ? items.map((_, i) => (
12
18
  <ListItem
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { ListItemVersion } from './ListProps';
2
+ import type { ListItemVersion } from './ListProps';
3
3
 
4
4
  /**
5
5
  * @title Параметры элемента списка
@@ -13,13 +13,7 @@ export interface ListItemProps {
13
13
 
14
14
  const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
15
15
 
16
- const TEXT_STYLE_MAP: Record<ListItemVersion, string> = {
17
- primary: 'text-primary-text',
18
- secondary: 'text-white',
19
- gray: 'text-secondary-text',
20
- };
21
-
22
- const LIST_STYLE_MAP: Record<ListItemVersion, string> = {
16
+ const LIST_DOT_STYLE_MAP: Record<ListItemVersion, string> = {
23
17
  primary: 'bg-primary-main',
24
18
  secondary: 'bg-white',
25
19
  gray: 'bg-secondary-text',
@@ -30,14 +24,13 @@ export const ListItem = JSX<ListItemProps>(
30
24
  return (
31
25
  <div className={`font-sans flex items-start ${className}`} role="listitem">
32
26
  {isDotted && <div className={getListStyle(version)} />}
33
- <span className={`text-m-md ${TEXT_STYLE_MAP[version]}`}>{children}</span>
27
+ <span>{children}</span>
34
28
  </div>
35
29
  );
36
30
  },
37
31
  );
38
32
 
39
33
  const getListStyle = (version: ListItemVersion) => {
40
- const size =
41
- version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
42
- return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
34
+ const size = version === 'gray' ? 'w-1.5 h-1.5 min-w-1.5 min-h-1.5' : 'w-2 h-2 min-w-2 min-h-2';
35
+ return `${LIST_STYLE_CLASSES} ${LIST_DOT_STYLE_MAP[version]} ${size}`;
43
36
  };
@@ -2,6 +2,7 @@ import type { ListContent } from './ListContent';
2
2
 
3
3
  /**
4
4
  * @title Версия списка
5
+ * @enumNames ["Основной", "Второстепенный", "Серый"]
5
6
  */
6
7
  export type ListItemVersion = 'primary' | 'secondary' | 'gray';
7
8
 
@@ -10,6 +11,7 @@ export type ListItemVersion = 'primary' | 'secondary' | 'gray';
10
11
  */
11
12
  export interface ListProps extends ListContent {
12
13
  className?: string;
14
+ /** @title Буллиты */
13
15
  isDotted?: boolean;
14
16
  version?: ListItemVersion;
15
17
  itemClassName?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.3.23",
3
+ "version": "0.3.26",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -8,6 +8,7 @@ import { Headline } from './Headline/Headline';
8
8
  import { LinkDocs } from './LinkDocs/LinkDocs';
9
9
  import { LinkList } from './LinkList/LinkList';
10
10
  import { MobileAppTile } from './MobileAppTile/MobileAppTile';
11
+ import { Placeholder } from './Placeholder/Placeholder';
11
12
  import { ProductBlock } from './ProductBlock/ProductBlock';
12
13
  import { ProductGallery } from './ProductGallery/ProductGallery';
13
14
  import { StepsBlock } from './StepsBlock/StepsBlock';
@@ -30,4 +31,5 @@ export const Blocks = {
30
31
  StepsBlock,
31
32
  TariffsTable,
32
33
  TextBlock,
34
+ Placeholder,
33
35
  };
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "title": "Сравнительная таблица",
3
+ "orientation": "horizontal",
3
4
  "rowHeaders": [
4
5
  {
5
6
  "title": "Параметр 1"
@@ -143,7 +143,7 @@ export default {
143
143
  isColoredFirstColumn={true}
144
144
  context={context}
145
145
  rowHeaders={rowHeaders}
146
- useSwiper={true}
146
+ orientation={'horizontal'}
147
147
  columns={Array(2).fill(columns).flat()}
148
148
  visibleRowLength={2}
149
149
  />
@@ -16,7 +16,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
16
16
  columns,
17
17
  visibleRowLength = 0,
18
18
  isColoredFirstColumn = false,
19
- useSwiper = false,
19
+ orientation = 'horizontal',
20
20
  }) => {
21
21
  const tableData =
22
22
  columns?.map(({ data, header }) => ({
@@ -50,7 +50,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
50
50
  isColoredFirstColumn,
51
51
  columnsViewState,
52
52
  handleToggleColumn,
53
- useSwiper,
53
+ orientation,
54
54
  setColumnsViewState,
55
55
  })}
56
56
  </section>
@@ -65,41 +65,62 @@ const renderColumns = ({
65
65
  isColoredFirstColumn,
66
66
  columnsViewState,
67
67
  handleToggleColumn,
68
- useSwiper,
68
+ orientation = 'horizontal',
69
69
  setColumnsViewState,
70
70
  }) => (
71
71
  <div role="table">
72
- {tableData?.length ? (
73
- useSwiper ? (
74
- <SwipeListControl
75
- context={context}
76
- onSlideChange={onSlideChange(columnsViewState, setColumnsViewState)}
77
- >
78
- {tableData.map(
79
- renderColumn({
80
- context,
81
- visibleRowLength,
82
- isColoredFirstColumn,
83
- columnsViewState,
84
- handleToggleColumn,
85
- }),
86
- )}
87
- </SwipeListControl>
88
- ) : (
89
- tableData.map(
90
- renderColumn({
91
- context,
92
- visibleRowLength,
93
- isColoredFirstColumn,
94
- columnsViewState,
95
- handleToggleColumn,
96
- }),
97
- )
98
- )
99
- ) : null}
72
+ {tableData?.length
73
+ ? renderInnerTable({
74
+ orientation,
75
+ context,
76
+ columnsViewState,
77
+ setColumnsViewState,
78
+ tableData,
79
+ visibleRowLength,
80
+ isColoredFirstColumn,
81
+ handleToggleColumn,
82
+ })
83
+ : null}
100
84
  </div>
101
85
  );
102
86
 
87
+ const renderInnerTable = ({
88
+ orientation,
89
+ context,
90
+ columnsViewState,
91
+ setColumnsViewState,
92
+ tableData,
93
+ visibleRowLength,
94
+ isColoredFirstColumn,
95
+ handleToggleColumn,
96
+ }) =>
97
+ orientation === 'horizontal' ? (
98
+ tableData.map(
99
+ renderColumn({
100
+ context,
101
+ visibleRowLength,
102
+ isColoredFirstColumn,
103
+ columnsViewState,
104
+ handleToggleColumn,
105
+ }),
106
+ )
107
+ ) : (
108
+ <SwipeListControl
109
+ context={context}
110
+ onSlideChange={onSlideChange(columnsViewState, setColumnsViewState)}
111
+ >
112
+ {tableData.map(
113
+ renderColumn({
114
+ context,
115
+ visibleRowLength,
116
+ isColoredFirstColumn,
117
+ columnsViewState,
118
+ handleToggleColumn,
119
+ }),
120
+ )}
121
+ </SwipeListControl>
122
+ );
123
+
103
124
  const renderColumn =
104
125
  ({ context, visibleRowLength, isColoredFirstColumn, columnsViewState, handleToggleColumn }) =>
105
126
  (columnData, i) =>
@@ -1,6 +1,7 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
2
  import type { Picture } from '../../model/Picture';
3
3
  import type { IconName } from '../../ui-kit/Icon/IconProps';
4
+ import type { ListOrientation } from '../../model/ListOrientation';
4
5
 
5
6
  /**
6
7
  * @hidden
@@ -81,6 +82,6 @@ export interface ComparisonTableContent {
81
82
  isColoredFirstColumn?: boolean;
82
83
  /** @title Отображать заданное количество строк */
83
84
  visibleRowLength?: number;
84
- /** @title Использовать свайпер (моб.) */
85
- useSwiper?: boolean;
85
+ /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
86
+ orientation?: ListOrientation;
86
87
  }
@@ -91,7 +91,6 @@ function renderBlock(
91
91
  if (!(type && type in blocksRegistry)) {
92
92
  console.warn(`No block with "${type}" is registered`);
93
93
  }
94
-
95
94
  const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder;
96
95
  return blockDecorator(
97
96
  {
@@ -0,0 +1,19 @@
1
+ {
2
+ "tabs": [
3
+ {
4
+ "title": "Вкладка 1",
5
+ "description": "Описание",
6
+ "icon": "CardIcon"
7
+ },
8
+ {
9
+ "title": "Вкладка 2",
10
+ "description": "Описание",
11
+ "icon": "ChartSquareIcon"
12
+ },
13
+ {
14
+ "title": "Вкладка 3",
15
+ "description": "Описание",
16
+ "icon": "DiscountShapeIcon"
17
+ }
18
+ ]
19
+ }
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "title": "Галерея",
3
3
  "description": "Описание",
4
+ "orientation": "horizontal",
4
5
  "cards": [
5
6
  {
6
7
  "image": {
@@ -3,6 +3,7 @@ import { context } from '../../setup-fixture';
3
3
  import type { ButtonCommonProps } from '../../ui-kit/Button/Button';
4
4
  import { Gallery } from './Gallery';
5
5
  import { GalleryCard } from './GalleryContent';
6
+ import { ListOrientation } from '../../model/ListOrientation';
6
7
 
7
8
  const image: Picture = {
8
9
  src: 'money-1.png',
@@ -82,7 +83,7 @@ const cards: GalleryCard[] = [
82
83
  const defaultProps = {
83
84
  title: 'Вы можете оплатить бонусными баллами',
84
85
  description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
85
- isScroll: false,
86
+ orientation: 'horizontal' as ListOrientation,
86
87
  context,
87
88
  cards: cards,
88
89
  };
@@ -90,7 +91,7 @@ const defaultProps = {
90
91
  const scrollProps = {
91
92
  title: 'Вы можете оплатить бонусными баллами',
92
93
  description: 'Удобный каталог с большим ассортиментом товаров и сервисов',
93
- isScroll: true,
94
+ orientation: 'horizontal' as ListOrientation,
94
95
  context,
95
96
  cards: cards,
96
97
  };
@@ -8,6 +8,7 @@ import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl
8
8
  import type { GalleryCard } from './GalleryContent';
9
9
  import { GalleryItem } from './GalleryContent';
10
10
  import type { GalleryProps } from './GalleryProps';
11
+ import type { ListOrientation } from '../../model/ListOrientation';
11
12
 
12
13
  const blockStyle: Record<BlockVersion, string> = {
13
14
  primary: 'bg-white',
@@ -15,7 +16,7 @@ const blockStyle: Record<BlockVersion, string> = {
15
16
  };
16
17
 
17
18
  export const Gallery = JSX<GalleryProps>(
18
- ({ context, title, description, cards = [], className, isScroll = true }) => {
19
+ ({ context, title, description, cards = [], className, orientation = 'horizontal' }) => {
19
20
  return (
20
21
  <section
21
22
  className={`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`}
@@ -34,14 +35,14 @@ export const Gallery = JSX<GalleryProps>(
34
35
  </div>
35
36
  ) : null}
36
37
  </div>
37
- {renderCardsLayout(isScroll, cards, context)}
38
+ {renderCardsLayout(orientation, cards, context)}
38
39
  </section>
39
40
  );
40
41
  },
41
42
  );
42
43
 
43
- function renderCardsLayout(isScroll: boolean, cards: GalleryCard[], context) {
44
- return isScroll ? (
44
+ function renderCardsLayout(orientation: ListOrientation, cards: GalleryCard[], context) {
45
+ return orientation === 'horizontal' ? (
45
46
  <SwipeListControl context={context}>{cards?.map(renderCard)}</SwipeListControl>
46
47
  ) : (
47
48
  <div className="grid gap-[14px]">{cards?.map(renderCard)}</div>
@@ -1,16 +1,16 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { BlockVersion } from '../../model/BlockVersion';
3
- import { BlockItem } from '../../ui-kit/BlockItem/BlockItem';
4
2
  import { Button } from '../../ui-kit/Button/Button';
5
3
  import { Icon } from '../../ui-kit/Icon/Icon';
6
4
  import { Img } from '../../ui-kit/Img/Img';
7
- import type { GalleryCard } from './GalleryContent';
5
+ import { List } from '../../ui-kit/List/List';
6
+ import type { GalleryCard, GalleryItem } from './GalleryContent';
7
+ import type { BlockVersion } from '../../model/BlockVersion';
8
8
 
9
9
  export const GalleryCardInner = JSX<GalleryCard>(
10
10
  ({ title, description, image, items, button, version }) => {
11
11
  const titleStyleClasses = getTitleStyle(version, description, items);
12
12
  return (
13
- <div>
13
+ <div className="h-full flex flex-col justify-between">
14
14
  <div>
15
15
  {image?.src ? (
16
16
  <div className="flex justify-center">
@@ -43,21 +43,16 @@ function renderCardTitle(title: string, className: string) {
43
43
  return <div className={`font-medium text-xl m-0 ${className}`}>{title}</div>;
44
44
  }
45
45
 
46
- function renderItems(items, version) {
46
+ function renderItems(items: GalleryItem[], version: BlockVersion = 'primary') {
47
47
  return (
48
- <section className={`max-w-[308px] mt-2`} role="list">
49
- {items
50
- .filter((item) => item?.text)
51
- .map((item, i) => renderItem(item.text as string, i, version))}
52
- </section>
53
- );
54
- }
55
-
56
- function renderItem(item: string, i: number, version?: BlockVersion) {
57
- return (
58
- <BlockItem key={String(i)} version={version ?? 'primary'}>
59
- <span className="text-sm">{item}</span>
60
- </BlockItem>
48
+ <List
49
+ className={`max-w-[308px] mt-2 text-sm ${
50
+ version === 'primary' ? '!text-secondary-text' : ''
51
+ }`}
52
+ itemClassName="mt-1 first:mt-0"
53
+ items={items.filter((item) => item?.text).map((item) => item.text as string)}
54
+ version={version}
55
+ />
61
56
  );
62
57
  }
63
58
 
@@ -1,6 +1,7 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { Picture } from '../../model/Picture';
3
3
  import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
+ import type { ListOrientation } from '../../model/ListOrientation';
4
5
 
5
6
  /**
6
7
  * @title Элемент списка
@@ -41,6 +42,6 @@ export interface GalleryContent {
41
42
  * @minItems 3
42
43
  */
43
44
  cards?: GalleryCard[];
44
- /** @title Горизонтальная прокрутка (для мобильных прокрутка shift+mouseScroll) */
45
- isScroll?: boolean; //TODO: for mobile
45
+ /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
46
+ orientation?: ListOrientation; //TODO: for mobile
46
47
  }
@@ -1,6 +1,7 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
2
  import type { IconName } from '../../ui-kit/Icon/IconProps';
3
3
  import type { AlignType } from '../BaseTile/BaseTileProps';
4
+ import type { ListOrientation } from '../../model/ListOrientation';
4
5
 
5
6
  /**
6
7
  * @title Отображение списка
@@ -11,15 +12,6 @@ import type { AlignType } from '../BaseTile/BaseTileProps';
11
12
  */
12
13
  export type LinkColumnsMode = 'single' | 'double';
13
14
 
14
- /**
15
- * @title Отображение списка (моб.)
16
- * @enumNames [
17
- * "Вертикально",
18
- * "Горизонтально",
19
- * ]
20
- */
21
- export type LinkListMode = 'vertical' | 'horizontal';
22
-
23
15
  /**
24
16
  * @title Элемент списка
25
17
  */
@@ -41,7 +33,8 @@ export interface LinkDocsContent {
41
33
  /** @title Список */
42
34
  documents?: LinkDocsItem[];
43
35
  columnsMode?: LinkColumnsMode;
44
- listMode?: LinkListMode; // TODO: мобильный проп
36
+ /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
37
+ listMode?: ListOrientation; // TODO: мобильный проп
45
38
  /** @title Рамка элементов (моб.) */ // TODO: мобильный проп
46
39
  hasBorder?: boolean;
47
40
  align?: AlignType;
@@ -2,6 +2,6 @@ import type { GalleryContent } from '../Gallery/GalleryContent';
2
2
 
3
3
  /**
4
4
  * @title Мини-галерея
5
- * @minItems 3
5
+ * @minItems 4
6
6
  */
7
7
  export type MiniGalleryContent = GalleryContent;
@@ -26,7 +26,7 @@ export const OtherProductsItem = JSX<BlockItemProps>(
26
26
  />
27
27
  ) : null}
28
28
  <button
29
- className="border-none bg-primary-main px-0 py-[25px] w-full font-sans text-white text-base flex justify-center cursor-pointer"
29
+ className="border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer"
30
30
  onClick={handleToggle}
31
31
  >
32
32
  <span className="pr-3">{isActive ? 'Скрыть' : label}</span>
@@ -9,6 +9,7 @@
9
9
  }
10
10
  },
11
11
  "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
12
+ "isDotted": true,
12
13
  "buttons": [
13
14
  {
14
15
  "text": "Кнопка",
@@ -4,6 +4,11 @@ import { ProductBlock } from './ProductBlock';
4
4
  import { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
5
5
  import { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
6
6
 
7
+ const title = 'Кредит до 5 000 000 Р\nбез залога и поручителей';
8
+ const description =
9
+ 'Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт.';
10
+ const label = 'Самое лучшее предложение';
11
+
7
12
  const image: Picture = {
8
13
  src: 'money-1.png',
9
14
  format: 'webp',
@@ -20,7 +25,7 @@ const image: Picture = {
20
25
  ],
21
26
  };
22
27
 
23
- const benefits = [
28
+ const benefits: Benefit[] = [
24
29
  {
25
30
  label: 'До 5 млн ₽',
26
31
  description: 'Кредитный лимит',
@@ -38,7 +43,7 @@ const benefits = [
38
43
  },
39
44
  ];
40
45
 
41
- const buttons = [
46
+ const buttons: ButtonWithIconProps[] = [
42
47
  {
43
48
  href: 'https://rshb.ru',
44
49
  text: 'Оформить карту',
@@ -51,7 +56,7 @@ const buttons = [
51
56
  target: '_blank',
52
57
  version: 'secondary',
53
58
  },
54
- ] as ButtonWithIconProps;
59
+ ];
55
60
 
56
61
  const items = [
57
62
  'Совершайте любые личные покупки',
@@ -59,30 +64,61 @@ const items = [
59
64
  'Расходы для бизнеса на УСН 15% позволят снизить налоговую базу',
60
65
  ];
61
66
 
67
+ const props = { title, description, image, buttons };
68
+
62
69
  export default {
63
70
  default: (
71
+ <div className="container grid grid-cols-12">
72
+ <ProductBlock className="col-span-12" context={context} {...props} benefits={benefits} />
73
+ </div>
74
+ ),
75
+ items: (
76
+ <div className="container grid grid-cols-12">
77
+ <ProductBlock className="col-span-12" context={context} {...props} items={items} />
78
+ </div>
79
+ ),
80
+ 'primary with label': (
64
81
  <div className="container grid grid-cols-12">
65
82
  <ProductBlock
66
83
  className="col-span-12"
67
84
  context={context}
68
- title={'Кредит до 5 000 000 Р\nбез залога и поручителей'}
69
- description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
70
- benefits={benefits as Benefit[]}
71
- buttons={buttons as ButtonWithIconProps[]}
72
- image={image}
85
+ {...props}
86
+ benefits={benefits}
87
+ label={label}
73
88
  />
74
89
  </div>
75
90
  ),
76
- items: (
91
+ secondary: (
77
92
  <div className="container grid grid-cols-12">
78
93
  <ProductBlock
79
94
  className="col-span-12"
80
95
  context={context}
81
- title={'Кредит до 5 000 000 Р\nбез залога и поручителей'}
82
- description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
96
+ {...props}
97
+ benefits={benefits}
98
+ version="secondary"
99
+ />
100
+ </div>
101
+ ),
102
+ 'secondary with items': (
103
+ <div className="container grid grid-cols-12">
104
+ <ProductBlock
105
+ className="col-span-12"
106
+ context={context}
107
+ {...props}
83
108
  items={items}
84
- buttons={buttons as ButtonWithIconProps[]}
85
- image={image}
109
+ version="secondary"
110
+ />
111
+ </div>
112
+ ),
113
+ 'secondary with label': (
114
+ <div className="container grid grid-cols-12">
115
+ <ProductBlock
116
+ className="col-span-12"
117
+ context={context}
118
+ {...props}
119
+ benefits={benefits}
120
+ label={label}
121
+ version="secondary"
86
122
  />
87
123
  </div>
88
124
  ),