@redneckz/wildless-cms-uni-blocks 0.2.92 → 0.2.96

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 (295) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +165 -112
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/api/LikeAPI.js +1 -0
  5. package/dist/api/LikeAPI.js.map +1 -1
  6. package/dist/components/Accordion/AccordionBlocks.d.ts +1 -2
  7. package/dist/components/Accordion/AccordionBlocks.js +2 -2
  8. package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  9. package/dist/components/Accordion/AccordionContent.d.ts +38 -14
  10. package/dist/components/Accordion/AccordionItem.js +9 -10
  11. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  12. package/dist/components/BaseTile/BaseTile.js +7 -2
  13. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  14. package/dist/components/Blocks.js +1 -1
  15. package/dist/components/Blocks.js.map +1 -1
  16. package/dist/components/ComparisonTable/ComparisonTable.js +11 -6
  17. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  18. package/dist/components/ComparisonTable/HeaderCell.js +1 -1
  19. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  20. package/dist/components/ContentPage/ContentPage.d.ts +9 -1
  21. package/dist/components/ContentPage/ContentPage.js +20 -17
  22. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  23. package/dist/components/ContentPage/ContentPageHead.d.ts +1 -1
  24. package/dist/components/ContentPage/toMobilePage.js +13 -2
  25. package/dist/components/ContentPage/toMobilePage.js.map +1 -1
  26. package/dist/components/CreditCalculator/CreditCalculator.js +3 -3
  27. package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
  28. package/dist/components/Footer/Contacts.js +1 -1
  29. package/dist/components/Footer/Contacts.js.map +1 -1
  30. package/dist/components/Footer/Footer.js +1 -1
  31. package/dist/components/Footer/Footer.js.map +1 -1
  32. package/dist/components/Footer/FooterContent.d.ts +1 -2
  33. package/dist/components/Footer/HorizontalNavigation.js +1 -1
  34. package/dist/components/Footer/Sitemap.js +1 -1
  35. package/dist/components/Footer/Sitemap.js.map +1 -1
  36. package/dist/components/Footer/SocialMedia.js +1 -2
  37. package/dist/components/Footer/SocialMedia.js.map +1 -1
  38. package/dist/components/Gallery/Gallery.mobile.js +1 -1
  39. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  40. package/dist/components/Gallery/GalleryCardInner.d.ts +2 -0
  41. package/dist/components/Gallery/GalleryCardInner.js +19 -0
  42. package/dist/components/Gallery/GalleryCardInner.js.map +1 -0
  43. package/dist/components/Gallery/GalleryContainer.d.ts +13 -0
  44. package/dist/components/Gallery/GalleryContainer.js +16 -0
  45. package/dist/components/Gallery/GalleryContainer.js.map +1 -0
  46. package/dist/components/Gallery/GalleryContent.d.ts +8 -2
  47. package/dist/components/Gallery/GalleryInner.d.ts +1 -1
  48. package/dist/components/Gallery/GalleryInner.js +8 -36
  49. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  50. package/dist/components/Gallery/constants.d.ts +6 -0
  51. package/dist/components/Gallery/constants.js +19 -0
  52. package/dist/components/Gallery/constants.js.map +1 -0
  53. package/dist/components/Header/Header.js +3 -3
  54. package/dist/components/Header/Header.js.map +1 -1
  55. package/dist/components/LinkDocs/LinkDocs.js +5 -5
  56. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  57. package/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -2
  58. package/dist/components/MobileBlocks.js +0 -3
  59. package/dist/components/MobileBlocks.js.map +1 -1
  60. package/dist/components/PictureText/PictureTextContent.d.ts +1 -3
  61. package/dist/components/Placeholder/Placeholder.js.map +1 -1
  62. package/dist/components/ProductBlock/ProductBlock.js +1 -1
  63. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  64. package/dist/components/ProductBlock/ProductBlock.mobile.js +3 -1
  65. package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  66. package/dist/components/ProductBlock/ProductBlockInner.js +2 -5
  67. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  68. package/dist/components/ProductGallery/ProductGallery.js +2 -2
  69. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  70. package/dist/components/PromoTile/PromoTile.d.ts +1 -1
  71. package/dist/components/PromoTile/PromoTile.js +1 -1
  72. package/dist/components/PromoTile/PromoTile.js.map +1 -1
  73. package/dist/components/TariffsTable/TariffsTable.js +8 -3
  74. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  75. package/dist/components/TariffsTable/TariffsTableCell.js +3 -3
  76. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  77. package/dist/components/TariffsTable/TariffsTableContent.d.ts +5 -1
  78. package/dist/components/TextBlock/TextBlockContent.d.ts +1 -2
  79. package/dist/components/Tile/Tile.d.ts +1 -1
  80. package/dist/components/Tile/Tile.js +14 -2
  81. package/dist/components/Tile/Tile.js.map +1 -1
  82. package/dist/content-page-repository/ContentPageRepository.js +1 -0
  83. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  84. package/dist/hooks/useComparisonTableScroll.d.ts +6 -1
  85. package/dist/hooks/useComparisonTableScroll.js +1 -1
  86. package/dist/hooks/useComparisonTableScroll.js.map +1 -1
  87. package/dist/hooks/useLink.js +1 -1
  88. package/dist/hooks/useLink.js.map +1 -1
  89. package/dist/types.d.ts +8 -0
  90. package/dist/ui-kit/BlockItem/BlockItem.js +4 -4
  91. package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  92. package/dist/ui-kit/Checkbox/Checkbox.js +2 -2
  93. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  94. package/dist/ui-kit/InputRange/InputRange.js +2 -1
  95. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  96. package/dist/ui-kit/SearchBar.js +2 -1
  97. package/dist/ui-kit/SearchBar.js.map +1 -1
  98. package/lib/api/LikeAPI.js +1 -0
  99. package/lib/api/LikeAPI.js.map +1 -1
  100. package/lib/common.css +1 -1
  101. package/lib/components/Accordion/Accordion.fixture.d.ts +1 -4
  102. package/lib/components/Accordion/AccordionBlocks.d.ts +1 -2
  103. package/lib/components/Accordion/AccordionBlocks.js +1 -2
  104. package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  105. package/lib/components/Accordion/AccordionContent.d.ts +38 -14
  106. package/lib/components/Accordion/AccordionItem.js +9 -7
  107. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  108. package/lib/components/BaseTile/BaseTile.js +7 -2
  109. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  110. package/lib/components/Blocks.js +1 -1
  111. package/lib/components/Blocks.js.map +1 -1
  112. package/lib/components/ComparisonTable/ComparisonTable.js +11 -6
  113. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  114. package/lib/components/ComparisonTable/HeaderCell.js +1 -1
  115. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  116. package/lib/components/ContentPage/ContentPage.d.ts +9 -1
  117. package/lib/components/ContentPage/ContentPage.js +20 -17
  118. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  119. package/lib/components/ContentPage/ContentPageHead.d.ts +1 -1
  120. package/lib/components/ContentPage/toMobilePage.js +13 -2
  121. package/lib/components/ContentPage/toMobilePage.js.map +1 -1
  122. package/lib/components/CreditCalculator/CreditCalculator.js +3 -3
  123. package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
  124. package/lib/components/Footer/Contacts.js +1 -1
  125. package/lib/components/Footer/Contacts.js.map +1 -1
  126. package/lib/components/Footer/Footer.js +1 -1
  127. package/lib/components/Footer/Footer.js.map +1 -1
  128. package/lib/components/Footer/FooterContent.d.ts +1 -2
  129. package/lib/components/Footer/HorizontalNavigation.js +1 -1
  130. package/lib/components/Footer/Sitemap.js +1 -1
  131. package/lib/components/Footer/Sitemap.js.map +1 -1
  132. package/lib/components/Footer/SocialMedia.js +1 -2
  133. package/lib/components/Footer/SocialMedia.js.map +1 -1
  134. package/lib/components/Gallery/Gallery.mobile.js +1 -1
  135. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  136. package/lib/components/Gallery/GalleryCardInner.d.ts +2 -0
  137. package/lib/components/Gallery/GalleryCardInner.js +17 -0
  138. package/lib/components/Gallery/GalleryCardInner.js.map +1 -0
  139. package/lib/components/Gallery/GalleryContainer.d.ts +13 -0
  140. package/lib/components/Gallery/GalleryContainer.js +14 -0
  141. package/lib/components/Gallery/GalleryContainer.js.map +1 -0
  142. package/lib/components/Gallery/GalleryContent.d.ts +8 -2
  143. package/lib/components/Gallery/GalleryInner.d.ts +1 -1
  144. package/lib/components/Gallery/GalleryInner.js +6 -34
  145. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  146. package/lib/components/Gallery/constants.d.ts +6 -0
  147. package/lib/components/Gallery/constants.js +17 -0
  148. package/lib/components/Gallery/constants.js.map +1 -0
  149. package/lib/components/Header/Header.js +3 -3
  150. package/lib/components/Header/Header.js.map +1 -1
  151. package/lib/components/Headline/Headline.fixture.d.ts +3 -2
  152. package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +7 -7
  153. package/lib/components/LinkDocs/LinkDocs.js +5 -5
  154. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  155. package/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -2
  156. package/lib/components/MobileBlocks.js +0 -3
  157. package/lib/components/MobileBlocks.js.map +1 -1
  158. package/lib/components/PictureText/PictureText.fixture.d.ts +2 -0
  159. package/lib/components/PictureText/PictureTextContent.d.ts +1 -3
  160. package/lib/components/Placeholder/Placeholder.js.map +1 -1
  161. package/lib/components/ProductBlock/ProductBlock.js +1 -1
  162. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  163. package/lib/components/ProductBlock/ProductBlock.mobile.js +3 -1
  164. package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  165. package/lib/components/ProductBlock/ProductBlockInner.js +2 -5
  166. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  167. package/lib/components/ProductGallery/ProductGallery.js +2 -2
  168. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  169. package/lib/components/PromoTile/PromoTile.d.ts +1 -1
  170. package/lib/components/PromoTile/PromoTile.js +1 -1
  171. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  172. package/lib/components/TariffsTable/TariffsTable.js +8 -3
  173. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  174. package/lib/components/TariffsTable/TariffsTableCell.js +3 -3
  175. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  176. package/lib/components/TariffsTable/TariffsTableContent.d.ts +5 -1
  177. package/lib/components/TextBlock/TextBlock.fixture.d.ts +2 -0
  178. package/lib/components/TextBlock/TextBlockContent.d.ts +1 -2
  179. package/lib/components/Tile/Tile.d.ts +1 -1
  180. package/lib/components/Tile/Tile.js +14 -2
  181. package/lib/components/Tile/Tile.js.map +1 -1
  182. package/lib/content-page-repository/ContentPageRepository.js +1 -0
  183. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  184. package/lib/hooks/useComparisonTableScroll.d.ts +6 -1
  185. package/lib/hooks/useComparisonTableScroll.js +1 -1
  186. package/lib/hooks/useComparisonTableScroll.js.map +1 -1
  187. package/lib/hooks/useLink.js +1 -1
  188. package/lib/hooks/useLink.js.map +1 -1
  189. package/lib/types.d.ts +8 -0
  190. package/lib/ui-kit/BlockItem/BlockItem.js +4 -4
  191. package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  192. package/lib/ui-kit/Checkbox/Checkbox.js +2 -2
  193. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  194. package/lib/ui-kit/InputRange/InputRange.js +2 -1
  195. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  196. package/lib/ui-kit/SearchBar.js +2 -1
  197. package/lib/ui-kit/SearchBar.js.map +1 -1
  198. package/package.json +19 -8
  199. package/src/api/LikeAPI.ts +1 -0
  200. package/src/components/Accordion/Accordion.example.json +18 -42
  201. package/src/components/Accordion/Accordion.fixture.tsx +33 -119
  202. package/src/components/Accordion/AccordionBlocks.tsx +1 -3
  203. package/src/components/Accordion/AccordionContent.ts +47 -18
  204. package/src/components/Accordion/AccordionItem.tsx +14 -10
  205. package/src/components/BaseTile/BaseTile.tsx +13 -5
  206. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +31 -28
  207. package/src/components/Blocks.ts +1 -1
  208. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +43 -53
  209. package/src/components/ComparisonTable/ComparisonTable.tsx +8 -8
  210. package/src/components/ComparisonTable/HeaderCell.tsx +3 -3
  211. package/src/components/ContentPage/ContentPage.fixture.tsx +3 -3
  212. package/src/components/ContentPage/ContentPage.page.json +45 -56
  213. package/src/components/ContentPage/ContentPage.tsx +71 -36
  214. package/src/components/ContentPage/ContentPageHead.tsx +1 -1
  215. package/src/components/ContentPage/toMobilePage.ts +19 -2
  216. package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +9 -1
  217. package/src/components/CreditCalculator/CreditCalculator.tsx +12 -9
  218. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
  219. package/src/components/Footer/Contacts.tsx +1 -1
  220. package/src/components/Footer/Footer.fixture.tsx +265 -258
  221. package/src/components/Footer/Footer.tsx +3 -3
  222. package/src/components/Footer/FooterContent.ts +1 -1
  223. package/src/components/Footer/HorizontalNavigation.tsx +1 -1
  224. package/src/components/Footer/Sitemap.tsx +1 -1
  225. package/src/components/Footer/SocialMedia.tsx +5 -6
  226. package/src/components/Gallery/Gallery.fixture.tsx +52 -48
  227. package/src/components/Gallery/Gallery.mobile.tsx +1 -3
  228. package/src/components/Gallery/GalleryCardInner.tsx +53 -0
  229. package/src/components/Gallery/GalleryContainer.tsx +58 -0
  230. package/src/components/Gallery/GalleryContent.ts +8 -2
  231. package/src/components/Gallery/GalleryInner.tsx +15 -93
  232. package/src/components/Gallery/constants.ts +22 -0
  233. package/src/components/Header/Header.tsx +14 -12
  234. package/src/components/Headline/Headline.fixture.tsx +30 -31
  235. package/src/components/LikeControl/LikeControl.fixture.tsx +5 -1
  236. package/src/components/LinkDocs/LinkDocs.example.json +26 -0
  237. package/src/components/LinkDocs/LinkDocs.fixture.tsx +30 -13
  238. package/src/components/LinkDocs/LinkDocs.tsx +9 -8
  239. package/src/components/MiniGallery/MiniGallery.fixture.tsx +12 -22
  240. package/src/components/MiniGallery/MiniGalleryContent.ts +1 -1
  241. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
  242. package/src/components/MobileBlocks.ts +0 -3
  243. package/src/components/PictureText/PictureText.fixture.tsx +22 -18
  244. package/src/components/PictureText/PictureTextContent.ts +1 -3
  245. package/src/components/Placeholder/Placeholder.fixture.tsx +5 -1
  246. package/src/components/Placeholder/Placeholder.tsx +2 -2
  247. package/src/components/ProductBlock/ProductBlock.fixture.tsx +83 -76
  248. package/src/components/ProductBlock/ProductBlock.mobile.tsx +1 -0
  249. package/src/components/ProductBlock/ProductBlock.tsx +3 -1
  250. package/src/components/ProductBlock/ProductBlockInner.tsx +9 -12
  251. package/src/components/ProductGallery/ProductGallery.example.json +1 -1
  252. package/src/components/ProductGallery/ProductGallery.fixture.tsx +103 -106
  253. package/src/components/ProductGallery/ProductGallery.tsx +7 -5
  254. package/src/components/ProductTile/ProductTile.fixture.tsx +4 -4
  255. package/src/components/PromoTile/PromoTile.fixture.tsx +1 -1
  256. package/src/components/PromoTile/PromoTile.tsx +3 -3
  257. package/src/components/StepsBlock/StepsBlock.fixture.tsx +21 -18
  258. package/src/components/TariffsTable/TariffsTable.example.json +3 -1
  259. package/src/components/TariffsTable/TariffsTable.fixture.tsx +8 -16
  260. package/src/components/TariffsTable/TariffsTable.tsx +39 -37
  261. package/src/components/TariffsTable/TariffsTableCell.tsx +4 -4
  262. package/src/components/TariffsTable/TariffsTableContent.ts +5 -1
  263. package/src/components/TextBlock/TextBlock.example.json +9 -2
  264. package/src/components/TextBlock/TextBlock.fixture.tsx +70 -97
  265. package/src/components/TextBlock/TextBlockContent.ts +1 -2
  266. package/src/components/Tile/Tile.example.json +5 -2
  267. package/src/components/Tile/Tile.fixture.tsx +11 -8
  268. package/src/components/Tile/Tile.tsx +16 -5
  269. package/src/content-page-repository/ContentPageRepository.ts +1 -0
  270. package/src/hooks/useComparisonTableScroll.ts +11 -6
  271. package/src/hooks/useLink.ts +1 -1
  272. package/src/setup-fixture.ts +1 -2
  273. package/src/types.ts +11 -1
  274. package/src/ui-kit/BlockItem/BlockItem.tsx +4 -4
  275. package/src/ui-kit/Checkbox/Checkbox.tsx +7 -3
  276. package/src/ui-kit/InputRange/InputRange.tsx +9 -8
  277. package/src/ui-kit/SearchBar.tsx +15 -6
  278. package/src/Icons/CalendarCircleIcon.svg +0 -14
  279. package/src/Icons/CardIcon.svg +0 -11
  280. package/src/Icons/CardPosIcon.svg +0 -12
  281. package/src/Icons/CardTickIcon.svg +0 -13
  282. package/src/Icons/EmptyWalletChangeIcon.svg +0 -21
  283. package/src/Icons/JCBIcon.svg +0 -42
  284. package/src/Icons/MastercardIcon.svg +0 -6
  285. package/src/Icons/MinusIcon.svg +0 -1
  286. package/src/Icons/MirIcon.svg +0 -13
  287. package/src/Icons/MoneyIcon.svg +0 -13
  288. package/src/Icons/MonitorMobileIcon.svg +0 -14
  289. package/src/Icons/PlusIcon.svg +0 -1
  290. package/src/Icons/Profile2UserIcon.svg +0 -14
  291. package/src/Icons/ShieldTickIcon.svg +0 -7
  292. package/src/Icons/UnionPayIcon.svg +0 -7
  293. package/src/Icons/UserIcon.svg +0 -11
  294. package/src/Icons/VisaIcon.svg +0 -7
  295. package/src/Icons/WalletIcon.svg +0 -19
@@ -0,0 +1,26 @@
1
+ {
2
+ "title": "Дополнительные документы",
3
+ "icon": "DocIcon",
4
+ "documents": [
5
+ {
6
+ "text": "Документ №1",
7
+ "href": "/documents/document1.doc",
8
+ "fileSize": "123КБ"
9
+ },
10
+ {
11
+ "text": "Документ №2",
12
+ "href": "/documents/document2.rtf",
13
+ "target": "_blank"
14
+ },
15
+ {
16
+ "text": "Документ №3",
17
+ "href": "/abc3/map.jpeg",
18
+ "fileSize": "2МБ"
19
+ },
20
+ {
21
+ "text": "Документ №4",
22
+ "href": "/abc/map.rar"
23
+ }
24
+ ],
25
+ "columnsMode": "double"
26
+ }
@@ -1,8 +1,9 @@
1
- import { LinkDocs } from './LinkDocs';
2
1
  import { context } from '../../setup-fixture';
2
+ import { LinkDocs } from './LinkDocs';
3
3
  import type { LinkDocsContent } from './LinkDocsContent';
4
+ import { Accordion } from '../Accordion/Accordion';
4
5
 
5
- export const LinkDocsFixtureSetOne: LinkDocsContent = {
6
+ export const LINK_DOCS: LinkDocsContent = {
6
7
  title: 'Дополнительные документы',
7
8
  icon: 'DocIcon',
8
9
  documents: [
@@ -14,7 +15,7 @@ export const LinkDocsFixtureSetOne: LinkDocsContent = {
14
15
  { text: 'документ 6', href: '/abc6/abc.pdf' },
15
16
  { text: 'Text text text', href: '/abc7/yolo.png' },
16
17
  {
17
- text: 'Some more generic text, and even more, more text',
18
+ text: 'Some more generic text to stretch item, and even more, more text, and more generic text, and even more, more text, and even more',
18
19
  href: '/abc8/archive.zip',
19
20
  fileSize: '2.3МБ',
20
21
  },
@@ -27,25 +28,41 @@ export const LinkDocsFixtureSetOne: LinkDocsContent = {
27
28
  ],
28
29
  };
29
30
 
30
- export const LinkDocsFixtureSetTwo: LinkDocsContent = {
31
- ...LinkDocsFixtureSetOne,
31
+ export const LINK_DOCS_ONE_COLUMN: LinkDocsContent = {
32
+ ...LINK_DOCS,
32
33
  columnsMode: 'single',
33
34
  };
34
35
 
35
- export const LinkDocsFixtureSetThree: LinkDocsContent = {
36
- ...LinkDocsFixtureSetOne,
36
+ export const LINK_DOCS_ANOTHER_ICON: LinkDocsContent = {
37
+ ...LINK_DOCS,
37
38
  icon: 'GlassIcon',
38
39
  title: '',
39
40
  };
40
41
 
41
- export const LinkDocsFixtureSetFour: LinkDocsContent = {
42
- ...LinkDocsFixtureSetOne,
42
+ export const LINK_DOCS_NO_ICON: LinkDocsContent = {
43
+ ...LINK_DOCS,
43
44
  icon: undefined,
44
45
  };
45
46
 
46
47
  export default {
47
- 'default, 2 columns': <LinkDocs context={context} {...LinkDocsFixtureSetOne} />,
48
- 'one column': <LinkDocs context={context} {...LinkDocsFixtureSetTwo} />,
49
- 'another icon, no extensions': <LinkDocs context={context} {...LinkDocsFixtureSetThree} />,
50
- 'no icon': <LinkDocs context={context} {...LinkDocsFixtureSetFour} />,
48
+ 'two columns (default)': (
49
+ <div className="container grid grid-cols-12">
50
+ <LinkDocs className="col-span-12" context={context} {...LINK_DOCS} />
51
+ </div>
52
+ ),
53
+ 'one column': (
54
+ <div className="container grid grid-cols-12">
55
+ <LinkDocs className="col-span-12" context={context} {...LINK_DOCS_ONE_COLUMN} />
56
+ </div>
57
+ ),
58
+ 'another icon': (
59
+ <div className="container grid grid-cols-12">
60
+ <LinkDocs className="col-span-12" context={context} {...LINK_DOCS_ANOTHER_ICON} />
61
+ </div>
62
+ ),
63
+ 'no icon and title': (
64
+ <div className="container grid grid-cols-12">
65
+ <LinkDocs className="col-span-12" context={context} {...LINK_DOCS_NO_ICON} />
66
+ </div>
67
+ ),
51
68
  };
@@ -13,7 +13,7 @@ const titleAlignStyleMap: Record<AlignType, string> = {
13
13
 
14
14
  const titleMarginsStyleMap: Record<LinkColumnsMode, string> = {
15
15
  double: 'mb-8',
16
- single: '',
16
+ single: 'mb-[26px]',
17
17
  };
18
18
 
19
19
  const linkColumnsModeStyleMap: Record<LinkColumnsMode, string> = {
@@ -31,7 +31,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
31
31
  <section className={`font-sans p-[50px] bg-white ${className}`}>
32
32
  {title && (
33
33
  <Title
34
- className={`font-medium m-0 ${titleMarginsStyleMap[columnsMode]} ${
34
+ className={`font-medium mt-0 ${titleMarginsStyleMap[columnsMode]} ${
35
35
  titleAlignStyleMap[align ?? 'center']
36
36
  }`}
37
37
  >
@@ -40,16 +40,17 @@ export const LinkDocs = JSX<LinkDocsProps>(
40
40
  )}
41
41
  <div className={`flex ${containerClasses}`} role="list">
42
42
  {documents?.length
43
- ? documents.map(({ text, fileSize, ...linkProps }) => (
43
+ ? documents.map(({ text, fileSize, ...linkProps }, i) => (
44
44
  <a
45
- className={`group flex items-center text-sm
46
- text-sm font-sans align-middle items-center text-primary-text no-underline group hover:text-primary-main
47
- ${columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : ''}`}
45
+ key={String(i)}
46
+ className={`group flex text-sm align-middle h-fit
47
+ text-primary-text no-underline hover:text-primary-main
48
+ ${columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : ''}`}
48
49
  role="listitem"
49
50
  {...linkProps}
50
51
  >
51
- {icon && <Icon className="mr-3.5" name={icon} width="24px" height="24px" />}
52
- <span>
52
+ {icon && <Icon className="mr-2.5" name={icon} width="24px" height="24px" />}
53
+ <span className="self-center">
53
54
  {text}
54
55
  <span className="text-secondary-text group-hover:text-primary-main">
55
56
  {linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize)}
@@ -1,7 +1,6 @@
1
+ import type { Picture } from '../../model/Picture';
1
2
  import { context } from '../../setup-fixture';
2
-
3
3
  import { MiniGallery, MiniGalleryProps } from './MiniGallery';
4
- import { Picture } from '../../model/Picture';
5
4
 
6
5
  const image: Picture = {
7
6
  src: 'domovoj-kupon.png',
@@ -10,6 +9,7 @@ const image: Picture = {
10
9
  width: 120,
11
10
  height: 70,
12
11
  },
12
+ title: 'domovoj-kupon',
13
13
  };
14
14
 
15
15
  const defaultProps: MiniGalleryProps = {
@@ -39,16 +39,6 @@ const defaultProps: MiniGalleryProps = {
39
39
  'Время копить: ставка растет в зависимости от срока нахождения средств на Счете!',
40
40
  image,
41
41
  },
42
- {
43
- title: 'Фермерские продукты',
44
- description: 'Высокий процент даже при небольшой сумме денежных средств',
45
- image,
46
- },
47
- {
48
- title: 'Фермерские продукты',
49
- description: 'Высокий процент даже при небольшой сумме денежных средств',
50
- image,
51
- },
52
42
  ],
53
43
  };
54
44
 
@@ -73,18 +63,18 @@ const onlyTitleProps: MiniGalleryProps = {
73
63
  title: '«Моя выгода»',
74
64
  image,
75
65
  },
76
- {
77
- title: 'Фермерские продукты',
78
- image,
79
- },
80
- {
81
- title: 'Фермерские продукты',
82
- image,
83
- },
84
66
  ],
85
67
  };
86
68
 
87
69
  export default {
88
- default: <MiniGallery {...defaultProps} />,
89
- 'only title': <MiniGallery {...onlyTitleProps} />,
70
+ default: (
71
+ <div className="container grid grid-cols-12">
72
+ <MiniGallery className="col-span-12" {...defaultProps} />
73
+ </div>
74
+ ),
75
+ 'only title': (
76
+ <div className="container grid grid-cols-12">
77
+ <MiniGallery className="col-span-12" {...onlyTitleProps} />
78
+ </div>
79
+ ),
90
80
  };
@@ -3,4 +3,4 @@ import type { GalleryContent } from '../Gallery/GalleryContent';
3
3
  /**
4
4
  * @title Мини-галерея
5
5
  */
6
- export interface MiniGalleryContent extends GalleryContent {}
6
+ export type MiniGalleryContent = GalleryContent;
@@ -4,7 +4,7 @@ import { MobileAppTile } from './MobileAppTile';
4
4
 
5
5
  export default {
6
6
  default: (
7
- <div className="grid grid-cols-12">
7
+ <div className="container grid grid-cols-12">
8
8
  <MobileAppTile
9
9
  context={context}
10
10
  className="col-span-4"
@@ -24,7 +24,4 @@ export const MobileBlocks = {
24
24
  ProductTile,
25
25
  TextBlock,
26
26
  Tile,
27
- // TODO StepsBlock,
28
- // TODO BenefitsBlock,
29
- // TODO ProductGallery
30
27
  };
@@ -1,7 +1,8 @@
1
1
  import { context } from '../../setup-fixture';
2
2
 
3
- import { PictureText } from './PictureText';
4
3
  import type { Picture } from '../../model/Picture';
4
+ import { PictureText } from './PictureText';
5
+ import type { PictureTextContent } from './PictureTextContent';
5
6
 
6
7
  const image: Picture = {
7
8
  src: 'legal-support-business.png',
@@ -13,24 +14,27 @@ const image: Picture = {
13
14
  alt: 'Варианты потребительского кредита',
14
15
  };
15
16
 
17
+ export const PICTURE_TEXT: PictureTextContent = {
18
+ title: 'Варианты потребительского кредита',
19
+ benefits: [
20
+ {
21
+ label: 'Кредит по одному документу',
22
+ description: 'До 300 тыс ₽ по упрощённой процедуре получения кредита',
23
+ icon: 'DocumentText',
24
+ },
25
+ {
26
+ label: 'Кредит на общих условиях',
27
+ description: 'До 5 млн ₽ на общих условиях получения кредита',
28
+ icon: 'DiscountShape',
29
+ },
30
+ ],
31
+ image,
32
+ };
33
+
16
34
  export default {
17
35
  default: (
18
- <PictureText
19
- context={context}
20
- title={'Варианты потребительского кредита'}
21
- benefits={[
22
- {
23
- label: 'Кредит по одному документу',
24
- description: 'До 300 тыс ₽ по упрощённой процедуре получения кредита',
25
- icon: 'DocumentText',
26
- },
27
- {
28
- label: 'Кредит на общих условиях',
29
- description: 'До 5 млн ₽ на общих условиях получения кредита',
30
- icon: 'DiscountShape',
31
- },
32
- ]}
33
- image={image}
34
- />
36
+ <div className="container grid grid-cols-12">
37
+ <PictureText className="col-span-12" context={context} {...PICTURE_TEXT} />
38
+ </div>
35
39
  ),
36
40
  };
@@ -5,8 +5,6 @@ import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
5
5
  * @title Картинка с текстом
6
6
  */
7
7
  export interface PictureTextContent extends Pick<BaseTileCommonProps, 'title' | 'image'> {
8
- /**
9
- * @title Список преимуществ
10
- */
8
+ /** @title Список преимуществ */
11
9
  benefits?: Benefit[];
12
10
  }
@@ -2,4 +2,8 @@ import { context } from '../../setup-fixture';
2
2
 
3
3
  import { Placeholder } from './Placeholder';
4
4
 
5
- export default <Placeholder context={context} title="Неизвестный блок" />;
5
+ export default (
6
+ <div className="container grid grid-cols-12">
7
+ <Placeholder className="col-span-12" context={context} title="Неизвестный блок" />
8
+ </div>
9
+ );
@@ -17,12 +17,12 @@ export const Placeholder = JSX<PlaceholderProps>(({ className, context, title })
17
17
  );
18
18
  });
19
19
 
20
- const renderShimmer = (size: number = 3) =>
20
+ const renderShimmer = (size = 3) =>
21
21
  goldenSequence(100, size)
22
22
  .map((_) => Math.floor(_))
23
23
  .map(renderShimmerItem);
24
24
 
25
- const renderShimmerItem = (width: number = 100, index: number) => (
25
+ const renderShimmerItem = (width = 100, index: number) => (
26
26
  <div key={String(index)} style={{ width: `${width}%` }} className="h-4 mt-2 bg-secondary-light" />
27
27
  );
28
28
 
@@ -6,6 +6,7 @@ import type { Picture } from '../../model/Picture';
6
6
  const image: Picture = {
7
7
  src: 'money-1.png',
8
8
  format: 'webp',
9
+ alt: 'Потребительский кредит наличными',
9
10
  size: {
10
11
  width: 280,
11
12
  height: 280,
@@ -14,83 +15,89 @@ const image: Picture = {
14
15
 
15
16
  export default {
16
17
  default: (
17
- <ProductBlock
18
- context={context}
19
- title={'Потребительский кредит наличными'}
20
- description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
21
- breadcrumbs={[
22
- {
23
- text: 'Главная',
24
- href: '/',
25
- },
26
- {
27
- text: 'Кредитные карты',
28
- href: '/credit',
29
- },
30
- {
31
- text: 'Кредитная карта Своя Union Pay',
32
- },
33
- ]}
34
- benefits={[
35
- {
36
- label: 'До 5 млн ₽',
37
- description: 'Кредитный лимит',
38
- icon: 'EmptyWalletIcon',
39
- },
40
- {
41
- label: 'От 16,9%',
42
- description: 'Ставка по кредиту',
43
- icon: 'PercentageSquareIcon',
44
- },
45
- {
46
- label: 'До 5 лет',
47
- description: 'Срок кредитования',
48
- icon: 'CalendarIcon',
49
- },
50
- ]}
51
- buttons={[
52
- {
53
- href: 'https://rshb.ru',
54
- text: 'Оформить карту',
55
- target: '_blank',
56
- version: 'primary',
57
- },
58
- {
59
- href: 'https://rshb.ru',
60
- text: 'Подробнее',
61
- target: '_blank',
62
- version: 'secondary',
63
- },
64
- ]}
65
- image={image}
66
- />
18
+ <div className="container grid grid-cols-12">
19
+ <ProductBlock
20
+ className="col-span-12"
21
+ context={context}
22
+ title={'Потребительский кредит наличными'}
23
+ description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
24
+ breadcrumbs={[
25
+ {
26
+ text: 'Главная',
27
+ href: '/',
28
+ },
29
+ {
30
+ text: 'Кредитные карты',
31
+ href: '/credit',
32
+ },
33
+ {
34
+ text: 'Кредитная карта Своя Union Pay',
35
+ },
36
+ ]}
37
+ benefits={[
38
+ {
39
+ label: 'До 5 млн ₽',
40
+ description: 'Кредитный лимит',
41
+ icon: 'EmptyWalletIcon',
42
+ },
43
+ {
44
+ label: 'От 16,9%',
45
+ description: 'Ставка по кредиту',
46
+ icon: 'PercentageSquareIcon',
47
+ },
48
+ {
49
+ label: 'До 5 лет',
50
+ description: 'Срок кредитования',
51
+ icon: 'CalendarIcon',
52
+ },
53
+ ]}
54
+ buttons={[
55
+ {
56
+ href: 'https://rshb.ru',
57
+ text: 'Оформить карту',
58
+ target: '_blank',
59
+ version: 'primary',
60
+ },
61
+ {
62
+ href: 'https://rshb.ru',
63
+ text: 'Подробнее',
64
+ target: '_blank',
65
+ version: 'secondary',
66
+ },
67
+ ]}
68
+ image={image}
69
+ />
70
+ </div>
67
71
  ),
68
72
  'with items': (
69
- <ProductBlock
70
- context={context}
71
- title={'Оплата проходит \nв 180 странах мира'}
72
- breadcrumbs={[]}
73
- description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
74
- items={[
75
- 'Совершайте любые личные покупки',
76
- 'Используйте корпоративную карту как обычную дебетовую, если вы ИП',
77
- 'Расходы для бизнеса на УСН 15% позволят снизить налоговую базу',
78
- ]}
79
- buttons={[
80
- {
81
- href: 'https://rshb.ru',
82
- text: 'Оформить карту',
83
- target: '_blank',
84
- version: 'primary',
85
- },
86
- {
87
- href: 'https://rshb.ru',
88
- text: 'Подробнее',
89
- target: '_blank',
90
- version: 'secondary',
91
- },
92
- ]}
93
- image={image}
94
- />
73
+ <div className="container grid grid-cols-12">
74
+ <ProductBlock
75
+ className="col-span-12"
76
+ context={context}
77
+ title={'Оплата проходит \nв 180 странах мира'}
78
+ breadcrumbs={[]}
79
+ description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
80
+ items={[
81
+ 'Совершайте любые личные покупки',
82
+ 'Используйте корпоративную карту как обычную дебетовую, если вы ИП',
83
+ 'Расходы для бизнеса на УСН 15% позволят снизить налоговую базу',
84
+ ]}
85
+ buttons={[
86
+ {
87
+ href: 'https://rshb.ru',
88
+ text: 'Оформить карту',
89
+ target: '_blank',
90
+ version: 'primary',
91
+ },
92
+ {
93
+ href: 'https://rshb.ru',
94
+ text: 'Подробнее',
95
+ target: '_blank',
96
+ version: 'secondary',
97
+ },
98
+ ]}
99
+ image={image}
100
+ />
101
+ </div>
95
102
  ),
96
103
  };
@@ -6,6 +6,7 @@ import { ProductBlockInner } from './ProductBlockInner';
6
6
  export interface ProductBlockProps extends ProductBlockInnerCommonProps, UniBlockProps {}
7
7
 
8
8
  export const ProductBlock = JSX<ProductBlockProps>(
9
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
9
10
  ({ titleSize, image, benefits, ...props } /* Get rid of image and benefits */) => {
10
11
  const { className } = props;
11
12
  return (
@@ -14,7 +14,9 @@ export const ProductBlock = JSX<ProductBlockProps>((props) => {
14
14
  const { handlerDecorator } = context;
15
15
  return (
16
16
  <section
17
- className={`font-sans bg-white pt-10 pl-[50px] pb-[50px] pr-[7.5rem] ${className || ''}`}
17
+ className={`font-sans bg-white pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${
18
+ className || ''
19
+ }`}
18
20
  >
19
21
  {breadcrumbs?.length ? (
20
22
  <div className="text-xs mb-6">
@@ -2,7 +2,6 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../types';
3
3
  import { Icon } from '../../ui-kit/Icon/Icon';
4
4
  import { Img } from '../../ui-kit/Img';
5
- import { Title } from '../../ui-kit/Title/Title';
6
5
  import { BaseTile } from '../BaseTile/BaseTile';
7
6
  import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
8
7
  import type { ProductBlockInnerCommonProps } from './ProductBlockContent';
@@ -14,16 +13,14 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
14
13
  return (
15
14
  <div className={`flex grow justify-between items-stretch ${className || ''}`}>
16
15
  <div className={'flex flex-col'}>
17
- {title && (
18
- /* TODO Why <Title> is duplicated here? */
19
- <Title
20
- size={titleSize || 'XL'}
21
- className="font-medium m-0 mb-4 whitespace-pre-wrap max-w-[600px] text-primary-text"
22
- >
23
- {title}
24
- </Title>
25
- )}
26
- <BaseTile context={context} description={description} items={items} buttons={buttons}>
16
+ <BaseTile
17
+ context={context}
18
+ title={title}
19
+ titleSize={titleSize || 'XL'}
20
+ description={description}
21
+ items={items}
22
+ buttons={buttons}
23
+ >
27
24
  {benefits?.length ? (
28
25
  <div className="flex gap-6 mt-6 mb-3.5">{benefits.map(renderBenefit)}</div>
29
26
  ) : null}
@@ -46,7 +43,7 @@ function renderBenefit(benefit: Benefit, i: number) {
46
43
  height="24"
47
44
  />
48
45
  )}
49
- <div className="flex gap-1 flex-col h-full">
46
+ <div className="flex gap-1 flex-col h-full max-w-[149px]">
50
47
  <h4 className="font-medium text-primary-text text-xl m-0">{benefit.label}</h4>
51
48
  {benefit.description && (
52
49
  <div className="font-normal text-sm text-secondary-text">{benefit.description}</div>
@@ -10,7 +10,7 @@
10
10
  "image": {
11
11
  "format": "webp",
12
12
  "size": {
13
- "width": 300
13
+ "width": 280
14
14
  }
15
15
  },
16
16
  "description": "Описание",