@redneckz/wildless-cms-uni-blocks 0.3.8 → 0.3.9

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 (390) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +35 -21
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/OkIcon.svg +1 -1
  5. package/dist/components/Accordion/Accordion.mobile.js +1 -1
  6. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  7. package/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
  8. package/dist/components/Accordion/AccordionBlocks.js +2 -0
  9. package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  10. package/dist/components/Accordion/AccordionContent.d.ts +7 -2
  11. package/dist/components/Accordion/AccordionItem.mobile.js +3 -2
  12. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  13. package/dist/components/Accordion/AccordionItemInner.mobile.js +2 -2
  14. package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  15. package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
  16. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  17. package/dist/components/BlockContent.d.ts +2 -1
  18. package/dist/components/Blocks.mobile.d.ts +1 -0
  19. package/dist/components/Blocks.mobile.js +2 -0
  20. package/dist/components/Blocks.mobile.js.map +1 -1
  21. package/dist/components/ComparisonTable/TableCell.js +1 -1
  22. package/dist/components/ComparisonTable/TableCell.js.map +1 -1
  23. package/dist/components/ComparisonTable/TableRow.js +1 -1
  24. package/dist/components/ComparisonTable/TableRow.js.map +1 -1
  25. package/dist/components/Footer/Contacts.js +2 -2
  26. package/dist/components/Footer/Contacts.js.map +1 -1
  27. package/dist/components/Footer/Footer.mobile.js +2 -2
  28. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  29. package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
  30. package/dist/components/Footer/MediaButton.js +1 -1
  31. package/dist/components/Footer/MediaButton.js.map +1 -1
  32. package/dist/components/Footer/TextInformation.mobile.js +1 -1
  33. package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
  34. package/dist/components/Gallery/Gallery.mobile.js +6 -2
  35. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  36. package/dist/components/Gallery/GalleryCardInner.js +5 -1
  37. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  38. package/dist/components/Gallery/GalleryInner.js +1 -1
  39. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  40. package/dist/components/Header/HeaderBurger.js +2 -3
  41. package/dist/components/Header/HeaderBurger.js.map +1 -1
  42. package/dist/components/Header/HeaderTop.js +1 -1
  43. package/dist/components/Header/HeaderTop.js.map +1 -1
  44. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  45. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  46. package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
  47. package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  48. package/dist/components/LinkList/LinkList.d.ts +5 -0
  49. package/dist/components/LinkList/LinkList.js +14 -0
  50. package/dist/components/LinkList/LinkList.js.map +1 -0
  51. package/dist/components/LinkList/LinkListContent.d.ts +8 -0
  52. package/dist/components/LinkList/LinkListContent.js +2 -0
  53. package/dist/components/LinkList/LinkListContent.js.map +1 -0
  54. package/dist/components/LinkList/linkListContentExample.d.ts +2 -0
  55. package/dist/components/LinkList/linkListContentExample.js +23 -0
  56. package/dist/components/LinkList/linkListContentExample.js.map +1 -0
  57. package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  58. package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  59. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  60. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  61. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  62. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  63. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  64. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  65. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  66. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
  67. package/dist/components/Tile/Tile.d.ts +1 -1
  68. package/dist/components/Tile/Tile.js +1 -1
  69. package/dist/components/Tile/Tile.js.map +1 -1
  70. package/dist/ui-kit/BlockItem/BlockItem.js +1 -1
  71. package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  72. package/dist/ui-kit/Description/Description.js +2 -2
  73. package/dist/ui-kit/Description/Description.js.map +1 -1
  74. package/dist/ui-kit/InputRange/InputRange.js +1 -1
  75. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  76. package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -4
  77. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  78. package/dist/utils/getAccordionItems.js +1 -1
  79. package/dist/utils/getCurrentDate.d.ts +1 -0
  80. package/dist/utils/getCurrentDate.js +7 -0
  81. package/dist/utils/getCurrentDate.js.map +1 -0
  82. package/lib/common.css +1 -1
  83. package/lib/components/Accordion/Accordion.mobile.js +1 -1
  84. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  85. package/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
  86. package/lib/components/Accordion/AccordionBlocks.js +2 -0
  87. package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  88. package/lib/components/Accordion/AccordionContent.d.ts +7 -2
  89. package/lib/components/Accordion/AccordionItem.mobile.js +3 -2
  90. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  91. package/lib/components/Accordion/AccordionItemInner.mobile.js +2 -2
  92. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  93. package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
  94. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  95. package/lib/components/BlockContent.d.ts +2 -1
  96. package/lib/components/Blocks.mobile.d.ts +1 -0
  97. package/lib/components/Blocks.mobile.js +2 -0
  98. package/lib/components/Blocks.mobile.js.map +1 -1
  99. package/lib/components/ComparisonTable/TableCell.js +1 -1
  100. package/lib/components/ComparisonTable/TableCell.js.map +1 -1
  101. package/lib/components/ComparisonTable/TableRow.js +1 -1
  102. package/lib/components/ComparisonTable/TableRow.js.map +1 -1
  103. package/lib/components/Footer/Contacts.js +2 -2
  104. package/lib/components/Footer/Contacts.js.map +1 -1
  105. package/lib/components/Footer/Footer.mobile.js +2 -2
  106. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  107. package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
  108. package/lib/components/Footer/MediaButton.js +1 -1
  109. package/lib/components/Footer/MediaButton.js.map +1 -1
  110. package/lib/components/Footer/TextInformation.mobile.js +1 -1
  111. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  112. package/lib/components/Gallery/Gallery.mobile.js +6 -2
  113. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  114. package/lib/components/Gallery/GalleryCardInner.js +5 -1
  115. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  116. package/lib/components/Gallery/GalleryInner.js +1 -1
  117. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  118. package/lib/components/Header/HeaderBurger.js +2 -3
  119. package/lib/components/Header/HeaderBurger.js.map +1 -1
  120. package/lib/components/Header/HeaderTop.js +1 -1
  121. package/lib/components/Header/HeaderTop.js.map +1 -1
  122. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  123. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  124. package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
  125. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  126. package/lib/components/LinkList/LinkList.d.ts +5 -0
  127. package/lib/components/LinkList/LinkList.fixture.d.ts +2 -0
  128. package/lib/components/LinkList/LinkList.js +12 -0
  129. package/lib/components/LinkList/LinkList.js.map +1 -0
  130. package/lib/components/LinkList/LinkListContent.d.ts +8 -0
  131. package/lib/components/LinkList/LinkListContent.js +2 -0
  132. package/lib/components/LinkList/LinkListContent.js.map +1 -0
  133. package/lib/components/LinkList/linkListContentExample.d.ts +2 -0
  134. package/lib/components/LinkList/linkListContentExample.js +21 -0
  135. package/lib/components/LinkList/linkListContentExample.js.map +1 -0
  136. package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  137. package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  138. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  139. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  140. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  141. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  142. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  143. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  144. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  145. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
  146. package/lib/components/Tile/Tile.d.ts +1 -1
  147. package/lib/components/Tile/Tile.js +1 -1
  148. package/lib/components/Tile/Tile.js.map +1 -1
  149. package/lib/ui-kit/BlockItem/BlockItem.js +1 -1
  150. package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  151. package/lib/ui-kit/Description/Description.js +2 -2
  152. package/lib/ui-kit/Description/Description.js.map +1 -1
  153. package/lib/ui-kit/InputRange/InputRange.js +1 -1
  154. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  155. package/lib/ui-kit/SearchBar/SearchBar.mobile.js +3 -4
  156. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  157. package/lib/utils/getAccordionItems.js +1 -1
  158. package/lib/utils/getCurrentDate.d.ts +1 -0
  159. package/lib/utils/getCurrentDate.js +4 -0
  160. package/lib/utils/getCurrentDate.js.map +1 -0
  161. package/mobile/bundle/bundle.umd.js +52 -33
  162. package/mobile/bundle/bundle.umd.min.js +1 -1
  163. package/mobile/dist/components/Accordion/Accordion.js +1 -1
  164. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  165. package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
  166. package/mobile/dist/components/Accordion/AccordionBlocks.js +2 -0
  167. package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  168. package/mobile/dist/components/Accordion/AccordionContent.d.ts +7 -2
  169. package/mobile/dist/components/Accordion/AccordionItem.js +3 -2
  170. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  171. package/mobile/dist/components/Accordion/AccordionItemInner.js +2 -2
  172. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  173. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
  174. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  175. package/mobile/dist/components/BlockContent.d.ts +2 -1
  176. package/mobile/dist/components/Blocks.d.ts +1 -0
  177. package/mobile/dist/components/Blocks.js +2 -0
  178. package/mobile/dist/components/Blocks.js.map +1 -1
  179. package/mobile/dist/components/ComparisonTable/TableCell.js +1 -1
  180. package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
  181. package/mobile/dist/components/ComparisonTable/TableRow.js +1 -1
  182. package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
  183. package/mobile/dist/components/Footer/Contacts.js +2 -2
  184. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  185. package/mobile/dist/components/Footer/Footer.js +2 -2
  186. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  187. package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
  188. package/mobile/dist/components/Footer/MediaButton.js +1 -1
  189. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  190. package/mobile/dist/components/Footer/TextInformation.js +1 -1
  191. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  192. package/mobile/dist/components/Gallery/Gallery.js +6 -2
  193. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  194. package/mobile/dist/components/Gallery/GalleryCardInner.js +5 -1
  195. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  196. package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
  197. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  198. package/mobile/dist/components/Header/HeaderBurger.js +2 -3
  199. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  200. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  201. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  202. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  203. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  204. package/mobile/dist/components/LinkList/LinkList.d.ts +5 -0
  205. package/mobile/dist/components/LinkList/LinkList.js +14 -0
  206. package/mobile/dist/components/LinkList/LinkList.js.map +1 -0
  207. package/mobile/dist/components/LinkList/LinkListContent.d.ts +8 -0
  208. package/mobile/dist/components/LinkList/LinkListContent.js +2 -0
  209. package/mobile/dist/components/LinkList/LinkListContent.js.map +1 -0
  210. package/mobile/dist/components/LinkList/linkListContentExample.d.ts +2 -0
  211. package/mobile/dist/components/LinkList/linkListContentExample.js +23 -0
  212. package/mobile/dist/components/LinkList/linkListContentExample.js.map +1 -0
  213. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  214. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  215. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  216. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  217. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  218. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  219. package/mobile/dist/components/Tile/Tile.d.ts +1 -1
  220. package/mobile/dist/components/Tile/Tile.js +1 -1
  221. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  222. package/mobile/dist/ui-kit/BlockItem/BlockItem.js +1 -1
  223. package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  224. package/mobile/dist/ui-kit/Description/Description.js +2 -2
  225. package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
  226. package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
  227. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  228. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -4
  229. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  230. package/mobile/dist/utils/getAccordionItems.js +1 -1
  231. package/mobile/dist/utils/getCurrentDate.d.ts +1 -0
  232. package/mobile/dist/utils/getCurrentDate.js +7 -0
  233. package/mobile/dist/utils/getCurrentDate.js.map +1 -0
  234. package/mobile/lib/components/Accordion/Accordion.js +1 -1
  235. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  236. package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
  237. package/mobile/lib/components/Accordion/AccordionBlocks.js +2 -0
  238. package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  239. package/mobile/lib/components/Accordion/AccordionContent.d.ts +7 -2
  240. package/mobile/lib/components/Accordion/AccordionItem.js +3 -2
  241. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  242. package/mobile/lib/components/Accordion/AccordionItemInner.js +2 -2
  243. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  244. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
  245. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  246. package/mobile/lib/components/BlockContent.d.ts +2 -1
  247. package/mobile/lib/components/Blocks.d.ts +1 -0
  248. package/mobile/lib/components/Blocks.js +2 -0
  249. package/mobile/lib/components/Blocks.js.map +1 -1
  250. package/mobile/lib/components/ComparisonTable/TableCell.js +1 -1
  251. package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
  252. package/mobile/lib/components/ComparisonTable/TableRow.js +1 -1
  253. package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
  254. package/mobile/lib/components/Footer/Contacts.js +2 -2
  255. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  256. package/mobile/lib/components/Footer/Footer.js +2 -2
  257. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  258. package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
  259. package/mobile/lib/components/Footer/MediaButton.js +1 -1
  260. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  261. package/mobile/lib/components/Footer/TextInformation.js +1 -1
  262. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  263. package/mobile/lib/components/Gallery/Gallery.js +6 -2
  264. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  265. package/mobile/lib/components/Gallery/GalleryCardInner.js +5 -1
  266. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  267. package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
  268. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  269. package/mobile/lib/components/Header/HeaderBurger.js +2 -3
  270. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  271. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  272. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  273. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  274. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  275. package/mobile/lib/components/LinkList/LinkList.d.ts +5 -0
  276. package/mobile/lib/components/LinkList/LinkList.js +12 -0
  277. package/mobile/lib/components/LinkList/LinkList.js.map +1 -0
  278. package/mobile/lib/components/LinkList/LinkListContent.d.ts +8 -0
  279. package/mobile/lib/components/LinkList/LinkListContent.js +2 -0
  280. package/mobile/lib/components/LinkList/LinkListContent.js.map +1 -0
  281. package/mobile/lib/components/LinkList/linkListContentExample.d.ts +2 -0
  282. package/mobile/lib/components/LinkList/linkListContentExample.js +21 -0
  283. package/mobile/lib/components/LinkList/linkListContentExample.js.map +1 -0
  284. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  285. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  286. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  287. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  288. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  289. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  290. package/mobile/lib/components/Tile/Tile.d.ts +1 -1
  291. package/mobile/lib/components/Tile/Tile.js +1 -1
  292. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  293. package/mobile/lib/ui-kit/BlockItem/BlockItem.js +1 -1
  294. package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  295. package/mobile/lib/ui-kit/Description/Description.js +2 -2
  296. package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
  297. package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
  298. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  299. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +3 -4
  300. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  301. package/mobile/lib/utils/getAccordionItems.js +1 -1
  302. package/mobile/lib/utils/getCurrentDate.d.ts +1 -0
  303. package/mobile/lib/utils/getCurrentDate.js +4 -0
  304. package/mobile/lib/utils/getCurrentDate.js.map +1 -0
  305. package/mobile/src/components/Accordion/Accordion.tsx +1 -3
  306. package/mobile/src/components/Accordion/AccordionBlocks.tsx +2 -0
  307. package/mobile/src/components/Accordion/AccordionContent.ts +10 -2
  308. package/mobile/src/components/Accordion/AccordionItem.tsx +5 -4
  309. package/mobile/src/components/Accordion/AccordionItemInner.tsx +2 -2
  310. package/mobile/src/components/Accordion/utils/isActiveHandler.ts +1 -1
  311. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
  312. package/mobile/src/components/BlockContent.ts +3 -1
  313. package/mobile/src/components/Blocks.ts +2 -0
  314. package/mobile/src/components/ComparisonTable/TableCell.tsx +1 -1
  315. package/mobile/src/components/ComparisonTable/TableRow.tsx +1 -1
  316. package/mobile/src/components/Footer/Contacts.tsx +2 -2
  317. package/mobile/src/components/Footer/Footer.tsx +3 -3
  318. package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
  319. package/mobile/src/components/Footer/MediaButton.tsx +4 -2
  320. package/mobile/src/components/Footer/TextInformation.tsx +2 -2
  321. package/mobile/src/components/Gallery/Gallery.example.json +20 -4
  322. package/mobile/src/components/Gallery/Gallery.tsx +14 -4
  323. package/mobile/src/components/Gallery/GalleryCardInner.tsx +12 -1
  324. package/mobile/src/components/Gallery/GalleryInner.tsx +4 -3
  325. package/mobile/src/components/Header/HeaderBurger.tsx +15 -8
  326. package/mobile/src/components/Header/HeaderTop.tsx +2 -2
  327. package/mobile/src/components/LinkDocs/LinkDocs.tsx +4 -2
  328. package/mobile/src/components/LinkList/LinkList.example.json +21 -0
  329. package/mobile/src/components/LinkList/LinkList.tsx +28 -0
  330. package/mobile/src/components/LinkList/LinkListContent.ts +9 -0
  331. package/mobile/src/components/LinkList/linkListContentExample.ts +22 -0
  332. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -2
  333. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  334. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +1 -1
  335. package/mobile/src/components/Tile/Tile.tsx +2 -2
  336. package/mobile/src/icons/OkIcon.svg +1 -0
  337. package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +1 -1
  338. package/mobile/src/ui-kit/Description/Description.tsx +2 -2
  339. package/mobile/src/ui-kit/InputRange/InputRange.tsx +3 -12
  340. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +7 -9
  341. package/mobile/src/utils/getAccordionItems.ts +1 -1
  342. package/mobile/src/utils/getCurrentDate.ts +3 -0
  343. package/package.json +1 -1
  344. package/src/components/Accordion/Accordion.mobile.tsx +1 -3
  345. package/src/components/Accordion/AccordionBlocks.tsx +2 -0
  346. package/src/components/Accordion/AccordionContent.ts +10 -2
  347. package/src/components/Accordion/AccordionItem.mobile.tsx +5 -4
  348. package/src/components/Accordion/AccordionItemInner.mobile.tsx +2 -2
  349. package/src/components/Accordion/utils/isActiveHandler.ts +1 -1
  350. package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
  351. package/src/components/BlockContent.ts +3 -1
  352. package/src/components/Blocks.mobile.ts +2 -0
  353. package/src/components/ComparisonTable/TableCell.tsx +1 -1
  354. package/src/components/ComparisonTable/TableRow.tsx +1 -1
  355. package/src/components/Footer/Contacts.tsx +2 -2
  356. package/src/components/Footer/Footer.mobile.tsx +3 -3
  357. package/src/components/Footer/HorizontalNavigation.mobile.tsx +1 -1
  358. package/src/components/Footer/MediaButton.tsx +4 -2
  359. package/src/components/Footer/TextInformation.mobile.tsx +2 -2
  360. package/src/components/Gallery/Gallery.example.json +20 -4
  361. package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -0
  362. package/src/components/Gallery/Gallery.fixture.tsx +9 -1
  363. package/src/components/Gallery/Gallery.mobile.tsx +14 -4
  364. package/src/components/Gallery/GalleryCardInner.tsx +12 -1
  365. package/src/components/Gallery/GalleryInner.tsx +4 -3
  366. package/src/components/Header/HeaderBurger.tsx +15 -8
  367. package/src/components/Header/HeaderTop.tsx +2 -2
  368. package/src/components/LinkDocs/LinkDocs.mobile.tsx +4 -2
  369. package/src/components/LinkDocs/LinkDocs.tsx +2 -2
  370. package/src/components/LinkList/LinkList.example.json +21 -0
  371. package/src/components/LinkList/LinkList.fixture.tsx +13 -0
  372. package/src/components/LinkList/LinkList.tsx +28 -0
  373. package/src/components/LinkList/LinkListContent.ts +9 -0
  374. package/src/components/LinkList/linkListContentExample.ts +22 -0
  375. package/src/components/MiniGallery/MiniGallery.fixture.tsx +5 -0
  376. package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +2 -2
  377. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +1 -1
  378. package/src/components/ProductBlock/ProductBlockInner.tsx +6 -4
  379. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +2 -0
  380. package/src/components/ProductGallery/ProductGallery.tsx +3 -3
  381. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +1 -1
  382. package/src/components/PromoTile/PromoTile.fixture.tsx +2 -1
  383. package/src/components/Tile/Tile.tsx +2 -2
  384. package/src/icons/OkIcon.svg +1 -0
  385. package/src/ui-kit/BlockItem/BlockItem.tsx +1 -1
  386. package/src/ui-kit/Description/Description.tsx +2 -2
  387. package/src/ui-kit/InputRange/InputRange.tsx +3 -12
  388. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +7 -9
  389. package/src/utils/getAccordionItems.ts +1 -1
  390. package/src/utils/getCurrentDate.ts +3 -0
@@ -6,22 +6,17 @@ export const InputRange = JSX<InputRangeProps>(
6
6
  ({ className, title, items = [], min = 1, max = 100, step = 1, value = min, onChange }) => {
7
7
  const handleChange = (value: string) => {
8
8
  if (!onChange) return;
9
-
10
9
  const sanitizedValue = Number(value.replace(/\D/g, ''));
11
10
  onChange(sanitizedValue);
12
11
  };
13
-
14
12
  const inputStyle = {
15
13
  backgroundSize: `${(((value - min) * 100) / (max - min)).toFixed(2)}% 100%`,
16
14
  };
17
-
18
15
  const handleBlur = () => {
19
16
  if (!onChange) return;
20
-
21
17
  if (value < min) onChange(min);
22
18
  if (value > max) onChange(max);
23
19
  };
24
-
25
20
  return (
26
21
  <div className={className}>
27
22
  <label className="block relative">
@@ -32,14 +27,12 @@ export const InputRange = JSX<InputRangeProps>(
32
27
  ) : null}
33
28
  <input
34
29
  className={`m-0 font-sans text-sm w-full h-12 border border-solid border-main-stroke rounded-md
35
- outline-none p-0 pl-4 m-0 box-border text-primary-text ${
36
- title ? 'pt-4' : ''
37
- }`}
30
+ outline-none p-0 pl-4 m-0 box-border text-primary-text ${ title ? 'pt-4' : '' }`}
38
31
  value={addSpacesBetweenNumbers(value)}
39
32
  onChange={(e) => handleChange(e.target.value)}
40
33
  onBlur={handleBlur}
41
34
  />
42
- <div className="absolute inset-x-0 top-8 px-4">
35
+ <div className="absolute inset-x-0 top-[35px] px-4 leading-[18px]">
43
36
  <input
44
37
  className="box-border w-full m-0 cursor-pointer slider"
45
38
  type="range"
@@ -54,9 +47,7 @@ export const InputRange = JSX<InputRangeProps>(
54
47
  </label>
55
48
  <div className="flex justify-between my-3">
56
49
  {items.map((item, i) => (
57
- <span key={String(i)} className="text-xs leading-[14px] text-secondary-text pl-4">
58
- {item}
59
- </span>
50
+ <span key={String(i)} className="text-xs leading-[14px] text-secondary-text pl-4"> {item} </span>
60
51
  ))}
61
52
  </div>
62
53
  </div>
@@ -1,6 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../types';
3
- import { Button } from '../Button/Button';
4
3
  import { Icon } from '../Icon/Icon';
5
4
 
6
5
  export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
@@ -23,24 +22,23 @@ export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
23
22
  <input
24
23
  id="search-bar-input"
25
24
  className={
26
- 'h-12 pl-12 w-full peer font-sans font-normal text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text'
25
+ 'h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text'
27
26
  }
28
27
  value={term}
29
28
  onChange={(e) => setTerm(e.target.value)}
30
29
  type="text"
31
30
  name="search-bar-input"
31
+ placeholder="some search"
32
32
  />
33
- <Button
34
- version="primary"
35
- text="Найти"
36
- className="w-auto invisible peer-focus:visible absolute top-1 right-1"
33
+ <button
34
+ className="visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer"
37
35
  onClick={(e) => {
38
36
  e.preventDefault();
39
- console.log('click');
37
+ setTerm('');
40
38
  }}
41
39
  >
42
- <div className="font-normal text-sm px-9 py-[9px]">Найти</div>
43
- </Button>
40
+ <Icon name="CloseIcon" width="24" height="24" />
41
+ </button>
44
42
  </form>
45
43
  );
46
44
  });
@@ -3,7 +3,7 @@ export const getAccordionItems = (items) =>
3
3
  label: item.text || '',
4
4
  blocks: [
5
5
  {
6
- accordionBlockType: 'LinkDocs',
6
+ accordionBlockType: 'LinkList',
7
7
  documents: item.items || [],
8
8
  },
9
9
  ],
@@ -0,0 +1,3 @@
1
+ export const getCurrentDate = () => {
2
+ return new Date().toJSON().slice(0, "YYYY-MM-DD".length);
3
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -10,9 +10,7 @@ export const Accordion = JSX<AccordionProps>(
10
10
  ({ title, description, accordionItems, context, className = '', bordered }) => {
11
11
  return (
12
12
  <section
13
- className={`py-6 font-sans bg-white text-primary-text ${
14
- bordered ? 'px-4' : ''
15
- } ${className}`}
13
+ className={`py-6 px-4 font-sans bg-white text-primary-text ${className}`}
16
14
  >
17
15
  {title ? <Heading headingType="h3" className="mb-2 text-center" title={title} /> : null}
18
16
  {description ? <div className="mb-5 text-m-md text-center">{description}</div> : null}
@@ -6,6 +6,7 @@ import { Tile } from '../Tile/Tile';
6
6
  import { ProductTile } from '../ProductTile/ProductTile';
7
7
  import { Gallery } from '../Gallery/Gallery';
8
8
  import { MiniGallery } from '../MiniGallery/MiniGallery';
9
+ import { LinkList } from '../LinkList/LinkList';
9
10
 
10
11
  export const AccordionBlocks = {
11
12
  Headline,
@@ -16,4 +17,5 @@ export const AccordionBlocks = {
16
17
  ProductTile,
17
18
  Gallery,
18
19
  MiniGallery,
20
+ LinkList,
19
21
  };
@@ -6,6 +6,7 @@ import type { PictureTextContent } from '../PictureText/PictureTextContent';
6
6
  import type { ProductTileContent } from '../ProductTile/ProductTileContent';
7
7
  import type { TextBlockContent } from '../TextBlock/TextBlockContent';
8
8
  import type { TileContent } from '../Tile/TileContent';
9
+ import type { LinkListContent } from '../LinkList/LinkListContent';
9
10
 
10
11
  /**
11
12
  * @title Тип блока
@@ -18,7 +19,8 @@ export type AccordionBlockType =
18
19
  | 'Tile'
19
20
  | 'ProductTile'
20
21
  | 'Gallery'
21
- | 'MiniGallery';
22
+ | 'MiniGallery'
23
+ | 'LinkList';
22
24
 
23
25
  interface AccordionBlockDef {
24
26
  accordionBlockType: AccordionBlockType;
@@ -64,6 +66,11 @@ export type GalleryAccordionBlockDef = GalleryContent & AccordionBlockDef;
64
66
  */
65
67
  export type MiniGalleryAccordionBlockDef = MiniGalleryContent & AccordionBlockDef;
66
68
 
69
+ /**
70
+ * @title Список ссылок
71
+ */
72
+ export type LinkListAccordionBlockDef = LinkListContent & AccordionBlockDef;
73
+
67
74
  /**
68
75
  * @title Выберите блок
69
76
  */
@@ -81,7 +88,8 @@ export type AccordionBlockProps =
81
88
  | TileAccordionBlockDef
82
89
  | ProductTileAccordionBlockDef
83
90
  | GalleryAccordionBlockDef
84
- | MiniGalleryAccordionBlockDef;
91
+ | MiniGalleryAccordionBlockDef
92
+ | LinkListAccordionBlockDef;
85
93
 
86
94
  /**
87
95
  * @title Элемент списка
@@ -16,22 +16,23 @@ export const AccordionItem = JSX<AccordionItemProps>(({ label, blocks, bordered,
16
16
  return (
17
17
  <li
18
18
  className={`${
19
- bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0 py-[14px]'
19
+ bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'
20
20
  } border-solid border-main-divider`}
21
21
  >
22
22
  <button
23
23
  className={`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
24
- ${hasContent ? 'group cursor-pointer' : ''}`}
24
+ ${bordered ? '' : 'py-[14px] px-0'}
25
+ ${hasContent ? 'group cursor-pointer' : ''}`}
25
26
  onClick={handleToggle}
26
27
  >
27
28
  <span
28
- className={`text-m-title-xs pr-2.5 font-medium ${
29
+ className={`text-sm pr-2.5 font-medium ${
29
30
  hasContent ? 'group-hover:text-primary-main' : ''
30
31
  }`}
31
32
  >
32
33
  {label}
33
34
  </span>
34
- {hasContent ? <Icon name={icon} width="24" height="24" asSVG /> : null}
35
+ {hasContent ? <Icon name={icon} width="20" height="20" asSVG /> : null}
35
36
  </button>
36
37
  {hasContent ? <AccordionItemInner blocks={blocks} context={context} /> : null}
37
38
  </li>
@@ -7,7 +7,7 @@ import type { AccordionItemProps } from './AccordionItem';
7
7
 
8
8
  export const AccordionItemInner = JSX<AccordionItemProps>(({ blocks, context }) => {
9
9
  return (
10
- <div className={`transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0 `}>
10
+ <div className="transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0">
11
11
  {blocks?.length ? blocks.map(renderBlock(context)) : null}
12
12
  </div>
13
13
  );
@@ -21,7 +21,7 @@ const renderBlock = (context: ContentPageContext) => (block: AccordionBlockProps
21
21
 
22
22
  const AccordionBlock: JSXBlock = AccordionBlocks[type];
23
23
  return (
24
- <div className="mb-5 last:mb-0 py-2.5" key={`block_${i}`}>
24
+ <div className="mb-5 last:mb-0" key={`block_${i}`}>
25
25
  <AccordionBlock context={context} {...block} className="!p-0" />
26
26
  </div>
27
27
  );
@@ -1,4 +1,4 @@
1
- import type { IconName } from '../../../ui-kit/Icon/IconProps';
1
+ import type { IconName } from '../../../icons/IconName';
2
2
 
3
3
  export const isActiveHandler = ({ context, blocks }) => {
4
4
  const [isActive, setIsActive] = context.useState(false);
@@ -9,7 +9,7 @@ export interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps
9
9
  export const BenefitsBlock = JSX<BenefitsBlockProps>(({ className, title, benefits }) => {
10
10
  return (
11
11
  <section
12
- className={`font-sans text-primary-text bg-white p-12 pb-2 flex flex-col items-center ${
12
+ className={`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${
13
13
  className || ''
14
14
  }`}
15
15
  >
@@ -17,7 +17,7 @@ export const BenefitsBlock = JSX<BenefitsBlockProps>(({ className, title, benefi
17
17
  <Heading headingType="h2" className="max-w-[47rem] text-center" title={title} />
18
18
  ) : null}
19
19
  {benefits?.length ? (
20
- <div className="grid grid-cols-2 gap-5 mt-9">{benefits.map(renderStep)}</div>
20
+ <div className="grid grid-cols-2 gap-8 mt-9">{benefits.map(renderStep)}</div>
21
21
  ) : null}
22
22
  </section>
23
23
  );
@@ -25,7 +25,7 @@ export const BenefitsBlock = JSX<BenefitsBlockProps>(({ className, title, benefi
25
25
 
26
26
  const renderStep = (benefit: Benefit, i: number) => {
27
27
  return (
28
- <div key={String(i)} className="flex items-center p-10 gap-5 max-w-[580px]">
28
+ <div key={String(i)} className="flex items-center gap-5 max-w-[500px]">
29
29
  {benefit.icon && (
30
30
  <Icon
31
31
  className="h-[70px] w-[70px] min-w-[70px] min-h-[70px]"
@@ -17,6 +17,7 @@ import type { StepsBlockContent } from './StepsBlock/StepsBlockContent';
17
17
  import type { TariffsTableContent } from './TariffsTable/TariffsTableContent';
18
18
  import type { TextBlockContent } from './TextBlock/TextBlockContent';
19
19
  import type { TileContent } from './Tile/TileContent';
20
+ import type { LinkListContent } from './LinkList/LinkListContent';
20
21
 
21
22
  /**
22
23
  * @hidden
@@ -40,4 +41,5 @@ export type BlockContent =
40
41
  | TariffsTableContent
41
42
  | TextBlockContent
42
43
  | TileContent
43
- | NavigationContent;
44
+ | NavigationContent
45
+ | LinkListContent;
@@ -10,6 +10,7 @@ import { ProductBlock } from './ProductBlock/ProductBlock';
10
10
  import { ProductGallery } from './ProductGallery/ProductGallery';
11
11
  import { StepsBlock } from './StepsBlock/StepsBlock';
12
12
  import { TextBlock } from './TextBlock/TextBlock';
13
+ import { LinkList } from './LinkList/LinkList';
13
14
 
14
15
  export const Blocks = {
15
16
  Accordion,
@@ -24,4 +25,5 @@ export const Blocks = {
24
25
  ProductGallery,
25
26
  StepsBlock,
26
27
  TextBlock,
28
+ LinkList,
27
29
  };
@@ -16,7 +16,7 @@ export const TableCell = JSX<TableCellProps>(({ cell, isFirstRow, isLastRow, isF
16
16
 
17
17
  const cellClasses = `mx-7 h-full ${DIVIDER_CLASSES} ${
18
18
  isFillGradient && isFirstRow ? 'border-t' : ''
19
- } ${!isLastRow ? 'border-solid' : ''}`;
19
+ } ${!isLastRow ? 'border-solid' : 'border-b-0'}`;
20
20
 
21
21
  return (
22
22
  <div className={cellWrapperClasses} role="cell">
@@ -20,7 +20,7 @@ export const TableRow = JSX<TableRowProps>(
20
20
  {header?.title ? (
21
21
  <div
22
22
  className={`text-sm py-7 ${DIVIDER_CLASSES} ${FIRST_CELL_CLASSES} ${
23
- !isLastRow ? 'border-solid' : ''
23
+ !isLastRow ? 'border-solid' : 'border-b-0'
24
24
  }`}
25
25
  >
26
26
  {header.title}
@@ -19,7 +19,7 @@ export const Contacts = JSX<ContactsProps>(({ className, items, hasButton, conte
19
19
  {hasButton ? (
20
20
  <Button
21
21
  version="primary"
22
- className="my-4"
22
+ className="mt-0.5 mb-5"
23
23
  {...useLink(
24
24
  { router, handlerDecorator },
25
25
  {
@@ -38,7 +38,7 @@ const renderContact = (item: ContactInfo, index: number) => {
38
38
  const { type, text, description } = item;
39
39
 
40
40
  return (
41
- <div className="mb-4" key={String(index)}>
41
+ <div className="mb-3.5" key={String(index)}>
42
42
  <div>{renderText(type, text)}</div>
43
43
  <div className="font-sans text-sm text-secondary-text">{description}</div>
44
44
  </div>
@@ -35,7 +35,7 @@ export const Footer = JSX<FooterProps>(
35
35
  return (
36
36
  <footer className={`px-4 py-[26px] bg-white ${className}`}>
37
37
  <Contacts className="overflow-hidden" items={contacts} context={context} hasButton />
38
- <Accordion className="p-0 pt-0 pb-0 mb-4" {...propsTextBlock} />
38
+ <Accordion className="!p-0 mb-4" {...propsTextBlock} />
39
39
  <div>{subMenu?.map(renderSubMenuItem)}</div>
40
40
  <MobileAppTile
41
41
  context={context}
@@ -58,9 +58,9 @@ export const Footer = JSX<FooterProps>(
58
58
  const renderSubMenuItem = (menu: SubMenuItem, i: number) => {
59
59
  const { icon, href, text } = menu;
60
60
  return (
61
- <Button key={`footer-${i}`} href={href} className="flex text-sm mb-4">
61
+ <Button version="link" key={`footer-${i}`} href={href} className="flex text-sm mb-4">
62
62
  {icon ? <Icon className="pr-1" name={icon} width="24" height="24" asSVG /> : null}
63
- <span className="pl-0.5 font-medium">{text}</span>
63
+ <span className="pl-2.5 font-medium text-primary-text">{text}</span>
64
64
  </Button>
65
65
  );
66
66
  };
@@ -17,7 +17,7 @@ export const HorizontalNavigation = JSX<HorizontalNavigationProps>(
17
17
  <div className={className}>
18
18
  <span className="text-primary-text font-sans font-medium text-sm">{title}</span>
19
19
  {links?.length ? (
20
- <div className="flex flex-col gap-5 py-5">
20
+ <div className="flex flex-col gap-2 pt-3">
21
21
  {links.map((_, i) => (
22
22
  <HorizontalNavigationLink
23
23
  key={String(i)}
@@ -32,13 +32,15 @@ export const MediaButton = JSX<MediaButtonProps>(({ href }) => {
32
32
 
33
33
  return (
34
34
  <a
35
- className="flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:fill-primary-main"
35
+ className="flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:text-primary-main"
36
36
  href={href}
37
37
  aria-label={label}
38
38
  target="_blank"
39
39
  rel="noopener noreferrer"
40
40
  >
41
- {Icon && <Icon name={icon} width={width} height={height} asSVG className="block" />}
41
+ {Icon && (
42
+ <Icon name={icon} width={width} height={height} asSVG className="block" color="none" />
43
+ )}
42
44
  </a>
43
45
  );
44
46
  });
@@ -8,13 +8,13 @@ export const TextInformation = JSX<FooterLink>(({ className, links, context }) =
8
8
  const { handlerDecorator } = context;
9
9
  return (
10
10
  <div className={`${className || ''}`}>
11
- <div className="pt-5 pb-[5px]">
11
+ <div className="py-6">
12
12
  <span className="font-sans font-normal text-xs text-secondary-text">
13
13
  {`\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.`}
14
14
  </span>
15
15
  </div>
16
16
  {links?.length ? (
17
- <div className={`flex flex-col justify-start items-start gap-5 pt-[5px]`}>
17
+ <div className={`flex flex-col justify-start items-start gap-2`}>
18
18
  {links.map((_, i) => (
19
19
  <TextInformationLink
20
20
  key={String(i)}
@@ -13,7 +13,11 @@
13
13
  "title": "Заголовок 1",
14
14
  "description": "Описание 1",
15
15
  "href": "/credit-cards",
16
- "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
16
+ "items": [
17
+ {"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
18
+ {"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
19
+ {"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
20
+ ]
17
21
  },
18
22
  {
19
23
  "image": {
@@ -26,7 +30,11 @@
26
30
  "title": "Заголовок 2",
27
31
  "description": "Описание 2",
28
32
  "href": "/credit-cards",
29
- "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
33
+ "items": [
34
+ {"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
35
+ {"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
36
+ {"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
37
+ ]
30
38
  },
31
39
  {
32
40
  "image": {
@@ -39,7 +47,11 @@
39
47
  "title": "Заголовок 3",
40
48
  "description": "Описание 3",
41
49
  "href": "/credit-cards",
42
- "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
50
+ "items": [
51
+ {"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
52
+ {"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
53
+ {"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
54
+ ]
43
55
  },
44
56
  {
45
57
  "image": {
@@ -52,7 +64,11 @@
52
64
  "title": "Заголовок 4",
53
65
  "description": "Описание 4",
54
66
  "href": "/credit-cards",
55
- "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
67
+ "items": [
68
+ {"text":"Элемент списка 1", "title": "Элемент заголовка 1"},
69
+ {"text":"Элемент списка 2", "title": "Элемент заголовка 2"},
70
+ {"text":"Элемент списка 3", "title": "Элемент заголовка 3"}
71
+ ]
56
72
  }
57
73
  ]
58
74
  }
@@ -19,6 +19,7 @@ const buttonPrimary: ButtonCommonProps = {
19
19
  text: 'Подробнее',
20
20
  target: '_blank',
21
21
  version: 'secondary',
22
+ icon: 'BankIcon',
22
23
  };
23
24
  const link: ButtonCommonProps = {
24
25
  href: '/credit-cards',
@@ -21,6 +21,14 @@ const buttonPrimary: ButtonCommonProps = {
21
21
  version: 'secondary',
22
22
  };
23
23
 
24
+ const buttonPrimaryIcon: ButtonCommonProps = {
25
+ href: '/credit-cards',
26
+ text: 'Подробнее',
27
+ target: '_blank',
28
+ version: 'secondary',
29
+ icon: 'BankIcon',
30
+ };
31
+
24
32
  const defaultItems = [
25
33
  { text: 'Качественные фермерские продукты напрямую от производителей' },
26
34
  { text: 'Самая большая база сельских туров по России' },
@@ -45,7 +53,7 @@ export const defaultProps: GalleryProps = {
45
53
  title: 'Более 1000 развлечений',
46
54
  description: 'Порядок и условия предоставления в соответствии с 106 ФЗ',
47
55
  image,
48
- button: buttonPrimary,
56
+ button: buttonPrimaryIcon,
49
57
  items: defaultItems,
50
58
  },
51
59
  {
@@ -7,6 +7,7 @@ import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl
7
7
  import type { GalleryCard } from './GalleryContent';
8
8
  import { GalleryItem } from './GalleryContent';
9
9
  import type { GalleryProps } from './GalleryProps';
10
+ import { Icon } from '../../ui-kit/Icon/Icon';
10
11
 
11
12
  const blockStyle: Record<BlockVersion, string> = {
12
13
  primary: 'bg-white',
@@ -44,7 +45,6 @@ function renderCard(card: GalleryCard, key: number) {
44
45
  <div
45
46
  className={`box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
46
47
  ${blockStyle[card.version ?? 'primary']}`}
47
- role="listitem"
48
48
  key={key}
49
49
  >
50
50
  <div>
@@ -57,11 +57,21 @@ function renderCard(card: GalleryCard, key: number) {
57
57
  {card.description ? renderDescription(card) : null}
58
58
  {card.items?.length ? renderItems(card.items) : null}
59
59
  </div>
60
- {card?.button?.href ? <Button className="mt-3" {...card.button} /> : null}
60
+ {card?.button?.href ? renderButton(card.button) : null}
61
61
  </div>
62
62
  );
63
63
  }
64
64
 
65
+ function renderButton(button) {
66
+ return (
67
+ <Button
68
+ className="mt-3"
69
+ appendLeft={button?.icon && <Icon name={button?.icon} width="24px" height="24px" asSVG />}
70
+ {...button}
71
+ />
72
+ );
73
+ }
74
+
65
75
  function renderDescription(card: GalleryCard) {
66
76
  return (
67
77
  <div
@@ -77,8 +87,8 @@ function renderDescription(card: GalleryCard) {
77
87
  function renderItems(items: GalleryItem[]) {
78
88
  return (
79
89
  <section className="mt-3">
80
- {items.map((item) => (
81
- <div>
90
+ {items.map((item, i) => (
91
+ <div key={String(i)}>
82
92
  <span className="text-m-md font-medium">{item.title}</span>
83
93
  <span className="text-m-sm text-secondary-text pl-2">{item.text}</span>
84
94
  </div>
@@ -2,6 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { BlockVersion } from '../../model/BlockVersion';
3
3
  import { BlockItem } from '../../ui-kit/BlockItem/BlockItem';
4
4
  import { Button } from '../../ui-kit/Button/Button';
5
+ import { Icon } from '../../ui-kit/Icon/Icon';
5
6
  import { Img } from '../../ui-kit/Img/Img';
6
7
  import type { GalleryCard } from './GalleryContent';
7
8
 
@@ -22,12 +23,22 @@ export const GalleryCardInner = JSX<GalleryCard>(
22
23
  ) : null}
23
24
  {items?.length ? renderItems(items, version) : null}
24
25
  </div>
25
- {button?.text && <Button className="mt-6" {...button} />}
26
+ {button?.text ? renderButton(button) : null}
26
27
  </div>
27
28
  );
28
29
  },
29
30
  );
30
31
 
32
+ function renderButton(button) {
33
+ return (
34
+ <Button
35
+ className="mt-6 w-full"
36
+ appendLeft={button.icon && <Icon name={button.icon} width="24px" height="24px" asSVG />}
37
+ {...button}
38
+ />
39
+ );
40
+ }
41
+
31
42
  function renderCardTitle(title: string, className: string) {
32
43
  return <div className={`font-medium text-xl m-0 ${className}`}>{title}</div>;
33
44
  }
@@ -38,19 +38,20 @@ export const GalleryInner = JSX<GalleryInnerProps>(
38
38
  />
39
39
  {showPrevButton && (
40
40
  <ArrowButton
41
- className="absolute top-1/2 left-8 rotate-180"
41
+ className="absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]"
42
42
  onClick={handlePrevClick}
43
43
  ariaLabel="Пролистать влево"
44
44
  />
45
45
  )}
46
46
  {showNextButton && (
47
47
  <ArrowButton
48
- className="absolute top-1/2 right-1 z-10"
48
+ className="absolute top-1/2 right-8 z-10 mt-[25px]"
49
49
  onClick={handleNextClick}
50
50
  ariaLabel="Пролистать вправо"
51
51
  />
52
52
  )}
53
- <div className="absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" />
53
+ <div className="absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white" />
54
+ <div className="absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white" />
54
55
  </section>
55
56
  );
56
57
  },
@@ -1,5 +1,4 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { Button } from '../../ui-kit/Button/Button';
3
2
  import { Icon } from '../../ui-kit/Icon/Icon';
4
3
  import { SearchBar } from '../../ui-kit/SearchBar/SearchBar';
5
4
  import type { ContentPageContext } from '../ContentPage/ContentPageContext';
@@ -19,13 +18,19 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
19
18
 
20
19
  return (
21
20
  <div className="absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20">
22
- <button className="absolute top-4 right-4 border-none bg-transparent" onClick={onClick}>
21
+ <button className="absolute top-4 right-4 border-none bg-transparent cursor-pointer" onClick={onClick}>
23
22
  <Icon name="CloseIcon" width="24" height="24" asSVG />
24
23
  </button>
25
- <Button onClick={getCity} className="flex items-center text-sm text-secondary-text mb-4">
26
- <Icon name="GeolocationIcon" width="24" height="24" className="box-border mr-2" asSVG />
24
+ <button onClick={getCity} className="flex items-center text-sm text-secondary-text mb-4 bg-transparent cursor-pointer">
25
+ <Icon
26
+ name="GeolocationIcon"
27
+ width="20"
28
+ height="20"
29
+ className="text-primary-main box-border mr-2"
30
+ asSVG
31
+ />
27
32
  {city}
28
- </Button>
33
+ </button>
29
34
  {children}
30
35
  <div className="mb-7">{burgerSubMenu?.map(renderBurgerSubMenuItem)}</div>
31
36
  <SearchBar context={context} className="grow" />
@@ -37,9 +42,11 @@ export const HeaderBurger = JSX<HeaderBurgerProps>(
37
42
  const renderBurgerSubMenuItem = (menu: SubMenuItem, i: number) => {
38
43
  const { icon, href, text } = menu;
39
44
  return (
40
- <Button key={`headerSubMenu-${i}`} href={href} className="flex text-sm mb-4">
41
- {icon ? <Icon className="pr-1" name={icon} width="24" height="24" asSVG /> : null}
45
+ <a key={`headerSubMenu-${i}`} href={href} className="flex text-sm mb-4 hover:text-primary-main">
46
+ {icon ? (
47
+ <Icon className="text-primary-main pr-1" name={icon} width="24" height="24" asSVG />
48
+ ) : null}
42
49
  <span className="pl-0.5 font-medium">{text}</span>
43
- </Button>
50
+ </a>
44
51
  );
45
52
  };