@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
@@ -1,18 +1,23 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { ProductBlockInner } from './ProductBlockInner';
2
3
  import type { UniBlockProps } from '../../types';
3
4
  import type { ProductBlockContent } from './ProductBlockContent';
4
- import { ProductBlockInner } from './ProductBlockInner';
5
+ import type { BlockVersion } from '../../model/BlockVersion';
6
+
7
+ const productBlockStyleMap: Record<BlockVersion, string> = {
8
+ primary: 'bg-white text-primary-text',
9
+ secondary: 'bg-primary-main text-white',
10
+ };
5
11
 
6
12
  export interface ProductBlockProps extends ProductBlockContent, UniBlockProps {}
7
13
 
8
- export const ProductBlock = JSX<ProductBlockProps>(
9
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
- (props /* Get rid of image and benefits */) => {
11
- const { className } = props;
12
- return (
13
- <section className={`font-sans bg-white px-4 py-6 ${className || ''}`}>
14
- <ProductBlockInner {...props} />
15
- </section>
16
- );
17
- },
18
- );
14
+ export const ProductBlock = JSX<ProductBlockProps>((props /* Get rid of image and benefits */) => {
15
+ const { className = '', version = 'primary' } = props;
16
+ return (
17
+ <section
18
+ className={`font-sans bg-white px-4 py-6 ${productBlockStyleMap[version]} ${className}`}
19
+ >
20
+ <ProductBlockInner {...props} />
21
+ </section>
22
+ );
23
+ });
@@ -20,6 +20,10 @@ export type ProductBlockInnerContent = HeadingContent &
20
20
  */
21
21
  benefits?: Benefit[];
22
22
  version?: BlockVersion;
23
+ /** @title Буллиты */
24
+ isDotted?: boolean;
25
+ /** @title Лейбл (моб.) */
26
+ label?: string;
23
27
  /**
24
28
  * @title Стиль для текстовой части
25
29
  * @hidden
@@ -7,6 +7,7 @@ import { Img } from '../../ui-kit/Img/Img';
7
7
  import { List } from '../../ui-kit/List/List';
8
8
  import { BaseTile } from '../BaseTile/BaseTile';
9
9
  import type { ProductBlockInnerContent } from './ProductBlockContent';
10
+ import type { BlockVersion } from '../../model/BlockVersion';
10
11
  import { renderBenefit } from './renderBenefit';
11
12
 
12
13
  export type ProductBlockInnerProps = ProductBlockInnerContent & UniBlockProps;
@@ -23,10 +24,13 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
23
24
  image,
24
25
  items,
25
26
  version = 'primary',
27
+ isDotted = true,
28
+ label,
26
29
  }) => {
27
30
  return (
28
- <div className={`w-full text-primary-text ${className}`}>
31
+ <div className={`w-full ${className}`}>
29
32
  <div>
33
+ {label ? renderLabel(label, version) : null}
30
34
  <BaseTile
31
35
  context={context}
32
36
  title={
@@ -54,7 +58,14 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
54
58
  {benefits?.filter((items) => items.label)?.length ? (
55
59
  <div className="mt-3">{benefits.map((_, i) => renderBenefit(_, i, version))}</div>
56
60
  ) : null}
57
- {items?.length ? <List className="mt-3" items={items} /> : null}
61
+ {items?.length ? (
62
+ <List
63
+ className="mt-3 text-m-md"
64
+ items={items}
65
+ version={version}
66
+ isDotted={isDotted}
67
+ />
68
+ ) : null}
58
69
  </BaseTile>
59
70
  </div>
60
71
  {renderImage(image)}
@@ -65,8 +76,17 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
65
76
 
66
77
  function renderImage(image) {
67
78
  return image?.src ? (
68
- <div className="mt-5">
69
- <Img image={{ className: 'block', ...image }} />
70
- </div>
79
+ <Img imageClassName="mt-5 mx-auto block" image={{ className: 'block', ...image }} />
71
80
  ) : null;
72
81
  }
82
+
83
+ const labelStyleMap: Record<BlockVersion, string> = {
84
+ primary: 'text-primary-main border-secondary-hover',
85
+ secondary: 'text-white/80',
86
+ };
87
+
88
+ const renderLabel = (label: string, version: BlockVersion) => (
89
+ <div className={`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 w-fit ${labelStyleMap[version]}`}>
90
+ {label}
91
+ </div>
92
+ );
@@ -23,6 +23,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
23
23
  image,
24
24
  items,
25
25
  version = 'primary',
26
+ isDotted = true,
26
27
  textBlockClassName = '',
27
28
  }) => {
28
29
  const textColor = version === 'secondary' ? 'text-white' : '';
@@ -43,7 +44,13 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
43
44
  </div>
44
45
  ) : null}
45
46
  {items?.length ? (
46
- <List className="mt-5" items={items} itemClassName="mb-[10px]" version={version} />
47
+ <List
48
+ className="mt-5"
49
+ items={items}
50
+ itemClassName="mb-[10px]"
51
+ version={version}
52
+ isDotted={isDotted}
53
+ />
47
54
  ) : null}
48
55
  </BaseTile>
49
56
  </div>
@@ -11,7 +11,7 @@ const benefitDescStyleMap: Record<BlockVersion, string> = {
11
11
  secondary: 'text-white',
12
12
  };
13
13
 
14
- export function renderBenefit(benefit: Benefit, i: number, version: string) {
14
+ export function renderBenefit(benefit: Benefit, i: number, version: BlockVersion) {
15
15
  return (
16
16
  <div key={String(i)} className="flex gap-3 items-center mb-2.5 last:mb-0">
17
17
  {benefit.icon && (
@@ -21,6 +21,7 @@ export function renderBenefit(benefit: Benefit, i: number, version: string) {
21
21
  width="24"
22
22
  height="24"
23
23
  asSVG
24
+ color={version}
24
25
  />
25
26
  )}
26
27
  <div className={`font-medium text-m-title-xs m-0 ${benefitTitleStyleMap[version]}`}>
@@ -27,6 +27,9 @@ export interface ProductGalleryContent {
27
27
  * @hidden //! temporary not used
28
28
  */
29
29
  duration?: number;
30
- /** @title Слайды */
30
+ /**
31
+ * @title Слайды
32
+ * @minItems 2
33
+ */
31
34
  slides?: ProductSlide[];
32
35
  }
@@ -1,9 +1,10 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { BlockItem } from '../../ui-kit/BlockItem/BlockItem';
3
2
  import { Button } from '../../ui-kit/Button/Button';
4
3
  import { Icon } from '../../ui-kit/Icon/Icon';
5
4
  import { Img } from '../../ui-kit/Img/Img';
6
- import type { TariffsTableCellData } from './TariffsTableContent';
5
+ import { List } from '../../ui-kit/List/List';
6
+ import type { TariffsTableCellData, TariffsTableList } from './TariffsTableContent';
7
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
7
8
 
8
9
  export interface TariffsTableCellProps {
9
10
  cell: TariffsTableCellData[];
@@ -32,31 +33,31 @@ const renderCellInner = (
32
33
  )}
33
34
  {label ? <div className="text-xl font-medium m-0">{label}</div> : null}
34
35
  {description ? <div className="text-sm text-secondary-text">{description}</div> : null}
35
- {list?.items?.length ? (
36
- <div className="flex flex-col justify-between items-start">
37
- <div role="list">
38
- {list.items.map((text, idx) => (
39
- <BlockItem
40
- className="text-sm"
41
- key={String(idx)}
42
- text={text}
43
- version="gray"
44
- isDotted={list.isDotted ?? true}
45
- />
46
- ))}
47
- </div>
48
- </div>
49
- ) : null}
36
+ {list?.items?.length ? renderList(list) : null}
50
37
  {image && <Img image={image} />}
51
- {buttons?.length
52
- ? buttons.map(({ icon, ...buttonProps }, idx) => (
53
- <Button
54
- className={`${idx > 0 ? 'ml-3' : ''} w-12 h-12`}
55
- key={String(idx)}
56
- appendLeft={icon && <Icon name={icon} width="24px" height="24px" asSVG />}
57
- {...buttonProps}
58
- />
59
- ))
60
- : null}
38
+ {buttons?.length ? renderButtons(buttons) : null}
39
+ </div>
40
+ );
41
+
42
+ const renderList = (list: TariffsTableList) => (
43
+ <List
44
+ className="flex flex-col justify-between items-start text-sm"
45
+ version="gray"
46
+ items={list.items}
47
+ isDotted={list.isDotted ?? true}
48
+ />
49
+ );
50
+
51
+ const renderButtons = (buttons: ButtonWithIconProps[]) => (
52
+ <div>
53
+ {buttons.map(({ icon, rounded, ...buttonProps }, idx) => (
54
+ <Button
55
+ className={`${idx > 0 && rounded ? 'ml-3' : ''} w-12 h-12`}
56
+ key={String(idx)}
57
+ rounded={rounded}
58
+ appendLeft={icon && <Icon name={icon} width="24px" height="24px" asSVG />}
59
+ {...buttonProps}
60
+ />
61
+ ))}
61
62
  </div>
62
63
  );
@@ -56,7 +56,7 @@ export type TariffsTableContent = HeadingContent &
56
56
  columns?: TariffsTableColumn[];
57
57
  /** @title Параметры */
58
58
  rowHeaders?: TariffsTableRowHeader[];
59
- /** @title Направление таблицы (моб.) */
59
+ /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
60
60
  orientation?: ListOrientation;
61
61
  };
62
62
 
@@ -1,10 +1,15 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { TableTileHeader } from './TableTileHeader';
3
- import { BlockItem } from '../../ui-kit/BlockItem/BlockItem';
4
3
  import { Img } from '../../ui-kit/Img/Img';
5
4
  import { Button } from '../../ui-kit/Button/Button';
6
5
  import { Icon } from '../../ui-kit/Icon/Icon';
7
- import type { TariffsTableCellData, TariffsTableTileCellProps } from './TariffsTableContent';
6
+ import { List } from '../../ui-kit/List/List';
7
+ import type {
8
+ TariffsTableCellData,
9
+ TariffsTableList,
10
+ TariffsTableTileCellProps,
11
+ } from './TariffsTableContent';
12
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
8
13
 
9
14
  export const TariffsTableTileCell = JSX<TariffsTableTileCellProps>(({ header, data }) => {
10
15
  return (
@@ -27,35 +32,32 @@ const renderCellInner = (
27
32
  {description ? (
28
33
  <div className="text-m-sm text-secondary-text mt-[3px]">{description}</div>
29
34
  ) : null}
30
- {list?.items?.length ? (
31
- <div className="flex flex-col justify-between items-start">
32
- <div role="list">
33
- {list.items.map((text, idx) => (
34
- <BlockItem
35
- className="text-m-sm"
36
- key={String(idx)}
37
- text={text}
38
- version="gray"
39
- isDotted={list.isDotted ?? true}
40
- />
41
- ))}
42
- </div>
43
- </div>
44
- ) : null}
35
+ {list?.items?.length ? renderList(list) : null}
45
36
  {image && <Img image={{ ...image, className: 'm-0' }} />}
46
- {buttons?.length ? (
47
- <div>
48
- {buttons.map(({ icon, rounded, ...buttonProps }, idx) => (
49
- <Button
50
- className={`mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`}
51
- key={String(idx)}
52
- rounded={rounded}
53
- appendLeft={icon && <Icon name={icon} width="24px" height="24px" asSVG />}
54
- {...buttonProps}
55
- aria-label={icon}
56
- />
57
- ))}
58
- </div>
59
- ) : null}
37
+ {buttons?.length ? renderButtons(buttons) : null}
38
+ </div>
39
+ );
40
+
41
+ const renderList = (list: TariffsTableList) => (
42
+ <List
43
+ className="flex flex-col justify-between items-start text-m-sm"
44
+ version="gray"
45
+ items={list.items}
46
+ isDotted={list.isDotted ?? true}
47
+ />
48
+ );
49
+
50
+ const renderButtons = (buttons: ButtonWithIconProps[]) => (
51
+ <div>
52
+ {buttons.map(({ icon, rounded, ...buttonProps }, idx) => (
53
+ <Button
54
+ className={`mt-3 ${idx > 0 && rounded ? 'ml-2.5' : ''} ${icon ? 'w-12 h-12' : ''}`}
55
+ key={String(idx)}
56
+ rounded={rounded}
57
+ appendLeft={icon && <Icon name={icon} width="24px" height="24px" asSVG />}
58
+ {...buttonProps}
59
+ aria-label={icon}
60
+ />
61
+ ))}
60
62
  </div>
61
63
  );
@@ -9,5 +9,6 @@
9
9
  "width": 43,
10
10
  "height": 43
11
11
  }
12
- }
12
+ },
13
+ "isDotted": true
13
14
  }
@@ -75,6 +75,14 @@ export default {
75
75
  iconVersion="small"
76
76
  items={items}
77
77
  />
78
+ <TextBlock
79
+ context={mobileContext}
80
+ title="Все карты Россельхозбанка работают"
81
+ description="Если не планируете поездку за границу, продолжайте пользоваться картой Своя. Для поездок за границу"
82
+ blockVersion="secondary-light"
83
+ iconVersion="small"
84
+ items={items}
85
+ />
78
86
  </div>
79
87
  </div>
80
88
  <div>
@@ -55,10 +55,10 @@ export const TextBlock = JSX<TextBlockProps>(
55
55
  ) : null}
56
56
  {items?.length ? (
57
57
  <List
58
- className="mt-1"
58
+ className="mt-1 text-m-md"
59
59
  items={items}
60
60
  isDotted={isDotted}
61
- version={blockVersion.indexOf('secondary') !== -1 ? 'secondary' : 'gray'}
61
+ version={blockVersion === 'secondary' ? 'secondary' : 'gray'}
62
62
  />
63
63
  ) : null}
64
64
  </div>
@@ -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
  }
@@ -1,9 +1,82 @@
1
-
2
1
  // Generated. Do not touch
3
2
  /* eslint-disable max-lines */
4
3
 
5
4
  export enum IconMap {
6
- ActualBalanceIcon = "ActualBalanceIcon", AppleIcon = "AppleIcon", ArrowDownIcon = "ArrowDownIcon", ArrowsRewindRight = "ArrowsRewindRight", ArrowUpIcon = "ArrowUpIcon", AtmIcon = "AtmIcon", BankIcon = "BankIcon", BurgerIcon = "BurgerIcon", BurgerIconWhite = "BurgerIconWhite", Calendar2Icon = "Calendar2Icon", CalendarCircleIcon = "CalendarCircleIcon", CalendarIcon = "CalendarIcon", CalendarTickIcon = "CalendarTickIcon", CalendarWhiteIcon = "CalendarWhiteIcon", CardIcon = "CardIcon", CardPosIcon = "CardPosIcon", CardTickIcon = "CardTickIcon", CardWithGemIcon = "CardWithGemIcon", ChartSquareIcon = "ChartSquareIcon", ClockIcon = "ClockIcon", CloseIcon = "CloseIcon", ComfortableCompIcon = "ComfortableCompIcon", CreditCardsIcon = "CreditCardsIcon", DiscountShapeIcon = "DiscountShapeIcon", DocIcon = "DocIcon", DocIconMonoColor = "DocIconMonoColor", DocumentTextIcon = "DocumentTextIcon", DollarIcon = "DollarIcon", EarthIcon = "EarthIcon", EmptyWalletChangeIcon = "EmptyWalletChangeIcon", EmptyWalletIcon = "EmptyWalletIcon", EmptyWalletWhiteIcon = "EmptyWalletWhiteIcon", EuroIcon = "EuroIcon", GeolocationIcon = "GeolocationIcon", GlassIcon = "GlassIcon", GlobalIcon = "GlobalIcon", GpsIcon = "GpsIcon", GridIcon = "GridIcon", GridIconWhite = "GridIconWhite", InterestGrowthIcon = "InterestGrowthIcon", InterestIcon = "InterestIcon", JCBIcon = "JCBIcon", LoupeIcon = "LoupeIcon", MasterCardIcon = "MasterCardIcon", MinusIcon = "MinusIcon", MirIcon = "MirIcon", MoneyIcon = "MoneyIcon", MoneyInsuranceIcon = "MoneyInsuranceIcon", MonitorMobileIcon = "MonitorMobileIcon", NewDocIcon = "NewDocIcon", OfficeIcon = "OfficeIcon", OkIcon = "OkIcon", PassSendIcon = "PassSendIcon", PercentageRoundIcon = "PercentageRoundIcon", PercentageSquareIcon = "PercentageSquareIcon", PercentageSquareWhiteIcon = "PercentageSquareWhiteIcon", PersonalCardIcon = "PersonalCardIcon", PlayMarketIcon = "PlayMarketIcon", PlusIcon = "PlusIcon", Profile2UserIcon = "Profile2UserIcon", ProfileIcon = "ProfileIcon", RoundRubleIcon = "RoundRubleIcon", SafeIcon = "SafeIcon", ShieldTickIcon = "ShieldTickIcon", SignDocsIcon = "SignDocsIcon", SmallClockIcon = "SmallClockIcon", TelegramIcon = "TelegramIcon", UnionPayIcon = "UnionPayIcon", UserTickIcon = "UserTickIcon", VisaIcon = "VisaIcon", VKIcon = "VKIcon", WalletAdd2Icon = "WalletAdd2Icon", WalletAddIcon = "WalletAddIcon", WalletIcon = "WalletIcon", WalletWithMoneyIcon = "WalletWithMoneyIcon"
5
+ ActualBalanceIcon = 'ActualBalanceIcon',
6
+ AppleIcon = 'AppleIcon',
7
+ ArrowDownIcon = 'ArrowDownIcon',
8
+ ArrowsRewindRight = 'ArrowsRewindRight',
9
+ ArrowUpIcon = 'ArrowUpIcon',
10
+ AtmIcon = 'AtmIcon',
11
+ BankIcon = 'BankIcon',
12
+ BurgerIcon = 'BurgerIcon',
13
+ BurgerIconWhite = 'BurgerIconWhite',
14
+ Calendar2Icon = 'Calendar2Icon',
15
+ CalendarCircleIcon = 'CalendarCircleIcon',
16
+ CalendarIcon = 'CalendarIcon',
17
+ CalendarTickIcon = 'CalendarTickIcon',
18
+ CalendarWhiteIcon = 'CalendarWhiteIcon',
19
+ CardIcon = 'CardIcon',
20
+ CardPosIcon = 'CardPosIcon',
21
+ CardTickIcon = 'CardTickIcon',
22
+ CardWithGemIcon = 'CardWithGemIcon',
23
+ ChartSquareIcon = 'ChartSquareIcon',
24
+ ClockIcon = 'ClockIcon',
25
+ CloseIcon = 'CloseIcon',
26
+ ComfortableCompIcon = 'ComfortableCompIcon',
27
+ CreditCardsIcon = 'CreditCardsIcon',
28
+ DiscountShapeIcon = 'DiscountShapeIcon',
29
+ DocIcon = 'DocIcon',
30
+ DocIconMonoColor = 'DocIconMonoColor',
31
+ DocumentTextIcon = 'DocumentTextIcon',
32
+ DollarIcon = 'DollarIcon',
33
+ EarthIcon = 'EarthIcon',
34
+ EmptyWalletChangeIcon = 'EmptyWalletChangeIcon',
35
+ EmptyWalletIcon = 'EmptyWalletIcon',
36
+ EmptyWalletWhiteIcon = 'EmptyWalletWhiteIcon',
37
+ EuroIcon = 'EuroIcon',
38
+ GeolocationIcon = 'GeolocationIcon',
39
+ GlassIcon = 'GlassIcon',
40
+ GlobalIcon = 'GlobalIcon',
41
+ GpsIcon = 'GpsIcon',
42
+ GridIcon = 'GridIcon',
43
+ GridIconWhite = 'GridIconWhite',
44
+ InterestGrowthIcon = 'InterestGrowthIcon',
45
+ InterestIcon = 'InterestIcon',
46
+ JCBIcon = 'JCBIcon',
47
+ LoupeIcon = 'LoupeIcon',
48
+ MasterCardIcon = 'MasterCardIcon',
49
+ MinusIcon = 'MinusIcon',
50
+ MirIcon = 'MirIcon',
51
+ MoneyIcon = 'MoneyIcon',
52
+ MoneyInsuranceIcon = 'MoneyInsuranceIcon',
53
+ MonitorMobileIcon = 'MonitorMobileIcon',
54
+ NewDocIcon = 'NewDocIcon',
55
+ OfficeIcon = 'OfficeIcon',
56
+ OkIcon = 'OkIcon',
57
+ PassSendIcon = 'PassSendIcon',
58
+ PercentageRoundIcon = 'PercentageRoundIcon',
59
+ PercentageSquareIcon = 'PercentageSquareIcon',
60
+ PercentageSquareWhiteIcon = 'PercentageSquareWhiteIcon',
61
+ PersonalCardIcon = 'PersonalCardIcon',
62
+ PlayMarketIcon = 'PlayMarketIcon',
63
+ PlusIcon = 'PlusIcon',
64
+ Profile2UserIcon = 'Profile2UserIcon',
65
+ ProfileIcon = 'ProfileIcon',
66
+ RoundRubleIcon = 'RoundRubleIcon',
67
+ SafeIcon = 'SafeIcon',
68
+ ShieldTickIcon = 'ShieldTickIcon',
69
+ SignDocsIcon = 'SignDocsIcon',
70
+ SmallClockIcon = 'SmallClockIcon',
71
+ TelegramIcon = 'TelegramIcon',
72
+ UnionPayIcon = 'UnionPayIcon',
73
+ UserTickIcon = 'UserTickIcon',
74
+ VisaIcon = 'VisaIcon',
75
+ VKIcon = 'VKIcon',
76
+ WalletAdd2Icon = 'WalletAdd2Icon',
77
+ WalletAddIcon = 'WalletAddIcon',
78
+ WalletIcon = 'WalletIcon',
79
+ WalletWithMoneyIcon = 'WalletWithMoneyIcon',
7
80
  }
8
81
 
9
82
  export enum IconTitleMap {
@@ -92,4 +165,80 @@ export enum IconTitleMap {
92
165
  * "Деньги", "Лого «Apple»", "ArrowDownIcon", "ArrowsRewindRight", "ArrowUpIcon", "Банкомат", "Банк", "Бургер", "Бургер (белый)", "Календарь 2", "Скруглённый календарь", "Календарь", "Календарь с галочкой", "Календарь белый", "Кред. карта", "Кред. карта под наклоном", "Кред. карта с галочкой", "Карта с драгоценностями", "Деньги внутри кошелька", "Часы", "Крестик", "Кресло", "Кредитные карты", "Скидка", "Документ", "Документ (одноцветный)", "Документ с текстом", "Доллар", "Земля", "Пустой кошелёк с возвратом", "Пустой кошелёк", "Пустой кошелёк (белый)", "Евро", "Геолокация", "Зеркало", "Глобус", "Gps", "Сетка", "Сетка (белая)", "Диаграмма роста", "Скидка", "JCB", "Лупа", "MasterCard", "Минус", "МИР", "Деньги", "Денежное страхование", "Монитор и мобильный", "Новый документ", "Офис", "Лого «Одноклассники»", "Бизнес", "Проценты (круг.)", "Проценты", "Проценты белые", "Персональная карта", "Лого «PlayMarket»", "Плюс", "Профиль, 2 персоны", "Профиль", "Рубль (круг.)", "Сейф", "Безопасность", "Подписанные документы", "Маленькие часы", "Лого «Telegram»", "UnionPay", "Пользователь", "Visa", "Лого «VK»", "Пополнение карты", "Кошелёк с плюсом", "Кошелёк", "Кошелёк с деньгами"
93
166
  * ]
94
167
  */
95
- export type IconName = "" | "ActualBalanceIcon" | "AppleIcon" | "ArrowDownIcon" | "ArrowsRewindRight" | "ArrowUpIcon" | "AtmIcon" | "BankIcon" | "BurgerIcon" | "BurgerIconWhite" | "Calendar2Icon" | "CalendarCircleIcon" | "CalendarIcon" | "CalendarTickIcon" | "CalendarWhiteIcon" | "CardIcon" | "CardPosIcon" | "CardTickIcon" | "CardWithGemIcon" | "ChartSquareIcon" | "ClockIcon" | "CloseIcon" | "ComfortableCompIcon" | "CreditCardsIcon" | "DiscountShapeIcon" | "DocIcon" | "DocIconMonoColor" | "DocumentTextIcon" | "DollarIcon" | "EarthIcon" | "EmptyWalletChangeIcon" | "EmptyWalletIcon" | "EmptyWalletWhiteIcon" | "EuroIcon" | "GeolocationIcon" | "GlassIcon" | "GlobalIcon" | "GpsIcon" | "GridIcon" | "GridIconWhite" | "InterestGrowthIcon" | "InterestIcon" | "JCBIcon" | "LoupeIcon" | "MasterCardIcon" | "MinusIcon" | "MirIcon" | "MoneyIcon" | "MoneyInsuranceIcon" | "MonitorMobileIcon" | "NewDocIcon" | "OfficeIcon" | "OkIcon" | "PassSendIcon" | "PercentageRoundIcon" | "PercentageSquareIcon" | "PercentageSquareWhiteIcon" | "PersonalCardIcon" | "PlayMarketIcon" | "PlusIcon" | "Profile2UserIcon" | "ProfileIcon" | "RoundRubleIcon" | "SafeIcon" | "ShieldTickIcon" | "SignDocsIcon" | "SmallClockIcon" | "TelegramIcon" | "UnionPayIcon" | "UserTickIcon" | "VisaIcon" | "VKIcon" | "WalletAdd2Icon" | "WalletAddIcon" | "WalletIcon" | "WalletWithMoneyIcon";
168
+ export type IconName =
169
+ | ''
170
+ | 'ActualBalanceIcon'
171
+ | 'AppleIcon'
172
+ | 'ArrowDownIcon'
173
+ | 'ArrowsRewindRight'
174
+ | 'ArrowUpIcon'
175
+ | 'AtmIcon'
176
+ | 'BankIcon'
177
+ | 'BurgerIcon'
178
+ | 'BurgerIconWhite'
179
+ | 'Calendar2Icon'
180
+ | 'CalendarCircleIcon'
181
+ | 'CalendarIcon'
182
+ | 'CalendarTickIcon'
183
+ | 'CalendarWhiteIcon'
184
+ | 'CardIcon'
185
+ | 'CardPosIcon'
186
+ | 'CardTickIcon'
187
+ | 'CardWithGemIcon'
188
+ | 'ChartSquareIcon'
189
+ | 'ClockIcon'
190
+ | 'CloseIcon'
191
+ | 'ComfortableCompIcon'
192
+ | 'CreditCardsIcon'
193
+ | 'DiscountShapeIcon'
194
+ | 'DocIcon'
195
+ | 'DocIconMonoColor'
196
+ | 'DocumentTextIcon'
197
+ | 'DollarIcon'
198
+ | 'EarthIcon'
199
+ | 'EmptyWalletChangeIcon'
200
+ | 'EmptyWalletIcon'
201
+ | 'EmptyWalletWhiteIcon'
202
+ | 'EuroIcon'
203
+ | 'GeolocationIcon'
204
+ | 'GlassIcon'
205
+ | 'GlobalIcon'
206
+ | 'GpsIcon'
207
+ | 'GridIcon'
208
+ | 'GridIconWhite'
209
+ | 'InterestGrowthIcon'
210
+ | 'InterestIcon'
211
+ | 'JCBIcon'
212
+ | 'LoupeIcon'
213
+ | 'MasterCardIcon'
214
+ | 'MinusIcon'
215
+ | 'MirIcon'
216
+ | 'MoneyIcon'
217
+ | 'MoneyInsuranceIcon'
218
+ | 'MonitorMobileIcon'
219
+ | 'NewDocIcon'
220
+ | 'OfficeIcon'
221
+ | 'OkIcon'
222
+ | 'PassSendIcon'
223
+ | 'PercentageRoundIcon'
224
+ | 'PercentageSquareIcon'
225
+ | 'PercentageSquareWhiteIcon'
226
+ | 'PersonalCardIcon'
227
+ | 'PlayMarketIcon'
228
+ | 'PlusIcon'
229
+ | 'Profile2UserIcon'
230
+ | 'ProfileIcon'
231
+ | 'RoundRubleIcon'
232
+ | 'SafeIcon'
233
+ | 'ShieldTickIcon'
234
+ | 'SignDocsIcon'
235
+ | 'SmallClockIcon'
236
+ | 'TelegramIcon'
237
+ | 'UnionPayIcon'
238
+ | 'UserTickIcon'
239
+ | 'VisaIcon'
240
+ | 'VKIcon'
241
+ | 'WalletAdd2Icon'
242
+ | 'WalletAddIcon'
243
+ | 'WalletIcon'
244
+ | 'WalletWithMoneyIcon';
@@ -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;
@@ -14,6 +14,9 @@ export const Img = JSX<ImageProps>(
14
14
  height: size?.height ? `${size?.height}px` : '100%',
15
15
  };
16
16
 
17
+ const title = image.title || '';
18
+ const alt = image.alt || title;
19
+
17
20
  return (
18
21
  <picture className={`flex-none ${className}`}>
19
22
  {image.sources?.length
@@ -24,8 +27,8 @@ export const Img = JSX<ImageProps>(
24
27
  <img
25
28
  className={imageClassName}
26
29
  src={image.src}
27
- alt={image.alt || image.title}
28
- title={image.title}
30
+ alt={alt}
31
+ title={title}
29
32
  style={style}
30
33
  {...size}
31
34
  />
@@ -0,0 +1,37 @@
1
+ import '../../setup-fixture';
2
+ import { List } from './List';
3
+
4
+ const items = ['List Item #1', 'List Item #2', 'List Item #3', 'List Item #4'];
5
+
6
+ export default {
7
+ 'primary dotted (default)': (
8
+ <div className="bg-white p-12">
9
+ <List items={items} />
10
+ </div>
11
+ ),
12
+ 'primary w/o dots': (
13
+ <div className="bg-white p-12">
14
+ <List items={items} isDotted={false} />
15
+ </div>
16
+ ),
17
+ 'secondary dotted': (
18
+ <div className="bg-primary-main p-12">
19
+ <List items={items} version="secondary" />
20
+ </div>
21
+ ),
22
+ 'secondary w/o dots': (
23
+ <div className="bg-primary-main p-12">
24
+ <List items={items} version="secondary" isDotted={false} />
25
+ </div>
26
+ ),
27
+ 'gray dotted': (
28
+ <div className="bg-white p-12">
29
+ <List items={items} version="gray" />
30
+ </div>
31
+ ),
32
+ 'gray w/o dots': (
33
+ <div className="bg-white p-12">
34
+ <List items={items} version="gray" isDotted={false} />
35
+ </div>
36
+ ),
37
+ };