@redneckz/wildless-cms-uni-blocks 0.3.7 → 0.3.10

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 (484) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +48 -27
  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/ComparisonTable.mobile.d.ts +5 -0
  22. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +46 -0
  23. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -0
  24. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -0
  25. package/dist/components/ComparisonTable/HeaderCell.mobile.d.ts +12 -0
  26. package/dist/components/ComparisonTable/HeaderCell.mobile.js +9 -0
  27. package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -0
  28. package/dist/components/ComparisonTable/TableCell.d.ts +3 -2
  29. package/dist/components/ComparisonTable/TableCell.js +1 -1
  30. package/dist/components/ComparisonTable/TableCell.js.map +1 -1
  31. package/dist/components/ComparisonTable/TableCell.mobile.d.ts +9 -0
  32. package/dist/components/ComparisonTable/TableCell.mobile.js +12 -0
  33. package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -0
  34. package/dist/components/ComparisonTable/TableColumn.d.ts +10 -0
  35. package/dist/components/ComparisonTable/TableColumn.js +19 -0
  36. package/dist/components/ComparisonTable/TableColumn.js.map +1 -0
  37. package/dist/components/ComparisonTable/TableRow.js +1 -1
  38. package/dist/components/ComparisonTable/TableRow.js.map +1 -1
  39. package/dist/components/ContentPage/ContentPageHead.js +13 -6
  40. package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  41. package/dist/components/Footer/Contacts.js +2 -2
  42. package/dist/components/Footer/Contacts.js.map +1 -1
  43. package/dist/components/Footer/Footer.mobile.js +2 -2
  44. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  45. package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
  46. package/dist/components/Footer/MediaButton.js +1 -1
  47. package/dist/components/Footer/MediaButton.js.map +1 -1
  48. package/dist/components/Footer/TextInformation.mobile.js +1 -1
  49. package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
  50. package/dist/components/Gallery/Gallery.mobile.js +6 -2
  51. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  52. package/dist/components/Gallery/GalleryCardInner.js +5 -1
  53. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  54. package/dist/components/Gallery/GalleryInner.js +1 -1
  55. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  56. package/dist/components/Header/HeaderBurger.js +2 -3
  57. package/dist/components/Header/HeaderBurger.js.map +1 -1
  58. package/dist/components/Header/HeaderTop.js +1 -1
  59. package/dist/components/Header/HeaderTop.js.map +1 -1
  60. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  61. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  62. package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
  63. package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  64. package/dist/components/LinkList/LinkList.d.ts +5 -0
  65. package/dist/components/LinkList/LinkList.js +14 -0
  66. package/dist/components/LinkList/LinkList.js.map +1 -0
  67. package/dist/components/LinkList/LinkListContent.d.ts +8 -0
  68. package/dist/components/LinkList/LinkListContent.js +2 -0
  69. package/dist/components/LinkList/LinkListContent.js.map +1 -0
  70. package/dist/components/LinkList/linkListContentExample.d.ts +2 -0
  71. package/dist/components/LinkList/linkListContentExample.js +23 -0
  72. package/dist/components/LinkList/linkListContentExample.js.map +1 -0
  73. package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  74. package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  75. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  76. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  77. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  78. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  79. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  80. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  81. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  82. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
  83. package/dist/components/Tile/Tile.d.ts +1 -1
  84. package/dist/components/Tile/Tile.js +1 -1
  85. package/dist/components/Tile/Tile.js.map +1 -1
  86. package/dist/types.d.ts +8 -9
  87. package/dist/ui-kit/BlockItem/BlockItem.js +1 -1
  88. package/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  89. package/dist/ui-kit/Description/Description.js +2 -2
  90. package/dist/ui-kit/Description/Description.js.map +1 -1
  91. package/dist/ui-kit/InputRange/InputRange.js +1 -1
  92. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  93. package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -4
  94. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  95. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +11 -6
  96. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  97. package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -0
  98. package/dist/utils/getAccordionItems.js +1 -1
  99. package/dist/utils/getCurrentDate.d.ts +1 -0
  100. package/dist/utils/getCurrentDate.js +7 -0
  101. package/dist/utils/getCurrentDate.js.map +1 -0
  102. package/lib/common.css +1 -1
  103. package/lib/components/Accordion/Accordion.mobile.js +1 -1
  104. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  105. package/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
  106. package/lib/components/Accordion/AccordionBlocks.js +2 -0
  107. package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  108. package/lib/components/Accordion/AccordionContent.d.ts +7 -2
  109. package/lib/components/Accordion/AccordionItem.mobile.js +3 -2
  110. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  111. package/lib/components/Accordion/AccordionItemInner.mobile.js +2 -2
  112. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  113. package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
  114. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  115. package/lib/components/BlockContent.d.ts +2 -1
  116. package/lib/components/Blocks.mobile.d.ts +1 -0
  117. package/lib/components/Blocks.mobile.js +2 -0
  118. package/lib/components/Blocks.mobile.js.map +1 -1
  119. package/lib/components/ComparisonTable/ComparisonTable.fixture.mobile.d.ts +5 -0
  120. package/lib/components/ComparisonTable/ComparisonTable.mobile.d.ts +5 -0
  121. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +44 -0
  122. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -0
  123. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -0
  124. package/lib/components/ComparisonTable/HeaderCell.mobile.d.ts +12 -0
  125. package/lib/components/ComparisonTable/HeaderCell.mobile.js +7 -0
  126. package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -0
  127. package/lib/components/ComparisonTable/TableCell.d.ts +3 -2
  128. package/lib/components/ComparisonTable/TableCell.js +1 -1
  129. package/lib/components/ComparisonTable/TableCell.js.map +1 -1
  130. package/lib/components/ComparisonTable/TableCell.mobile.d.ts +9 -0
  131. package/lib/components/ComparisonTable/TableCell.mobile.js +10 -0
  132. package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -0
  133. package/lib/components/ComparisonTable/TableColumn.d.ts +10 -0
  134. package/lib/components/ComparisonTable/TableColumn.js +17 -0
  135. package/lib/components/ComparisonTable/TableColumn.js.map +1 -0
  136. package/lib/components/ComparisonTable/TableRow.js +1 -1
  137. package/lib/components/ComparisonTable/TableRow.js.map +1 -1
  138. package/lib/components/ContentPage/ContentPageHead.js +13 -6
  139. package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  140. package/lib/components/Footer/Contacts.js +2 -2
  141. package/lib/components/Footer/Contacts.js.map +1 -1
  142. package/lib/components/Footer/Footer.mobile.js +2 -2
  143. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  144. package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
  145. package/lib/components/Footer/MediaButton.js +1 -1
  146. package/lib/components/Footer/MediaButton.js.map +1 -1
  147. package/lib/components/Footer/TextInformation.mobile.js +1 -1
  148. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  149. package/lib/components/Gallery/Gallery.mobile.js +6 -2
  150. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  151. package/lib/components/Gallery/GalleryCardInner.js +5 -1
  152. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  153. package/lib/components/Gallery/GalleryInner.js +1 -1
  154. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  155. package/lib/components/Header/HeaderBurger.js +2 -3
  156. package/lib/components/Header/HeaderBurger.js.map +1 -1
  157. package/lib/components/Header/HeaderTop.js +1 -1
  158. package/lib/components/Header/HeaderTop.js.map +1 -1
  159. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  160. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  161. package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
  162. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  163. package/lib/components/LinkList/LinkList.d.ts +5 -0
  164. package/lib/components/LinkList/LinkList.fixture.d.ts +2 -0
  165. package/lib/components/LinkList/LinkList.js +12 -0
  166. package/lib/components/LinkList/LinkList.js.map +1 -0
  167. package/lib/components/LinkList/LinkListContent.d.ts +8 -0
  168. package/lib/components/LinkList/LinkListContent.js +2 -0
  169. package/lib/components/LinkList/LinkListContent.js.map +1 -0
  170. package/lib/components/LinkList/linkListContentExample.d.ts +2 -0
  171. package/lib/components/LinkList/linkListContentExample.js +21 -0
  172. package/lib/components/LinkList/linkListContentExample.js.map +1 -0
  173. package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  174. package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  175. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  176. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  177. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  178. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  179. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  180. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  181. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +1 -1
  182. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +1 -1
  183. package/lib/components/Tile/Tile.d.ts +1 -1
  184. package/lib/components/Tile/Tile.js +1 -1
  185. package/lib/components/Tile/Tile.js.map +1 -1
  186. package/lib/types.d.ts +8 -9
  187. package/lib/ui-kit/BlockItem/BlockItem.js +1 -1
  188. package/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  189. package/lib/ui-kit/Description/Description.js +2 -2
  190. package/lib/ui-kit/Description/Description.js.map +1 -1
  191. package/lib/ui-kit/InputRange/InputRange.js +1 -1
  192. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  193. package/lib/ui-kit/SearchBar/SearchBar.mobile.js +3 -4
  194. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  195. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +12 -7
  196. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  197. package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -0
  198. package/lib/utils/getAccordionItems.js +1 -1
  199. package/lib/utils/getCurrentDate.d.ts +1 -0
  200. package/lib/utils/getCurrentDate.js +4 -0
  201. package/lib/utils/getCurrentDate.js.map +1 -0
  202. package/mobile/bundle/bundle.umd.js +129 -98
  203. package/mobile/bundle/bundle.umd.min.js +1 -1
  204. package/mobile/dist/components/Accordion/Accordion.js +1 -1
  205. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  206. package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
  207. package/mobile/dist/components/Accordion/AccordionBlocks.js +2 -0
  208. package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
  209. package/mobile/dist/components/Accordion/AccordionContent.d.ts +7 -2
  210. package/mobile/dist/components/Accordion/AccordionItem.js +3 -2
  211. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  212. package/mobile/dist/components/Accordion/AccordionItemInner.js +2 -2
  213. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  214. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
  215. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  216. package/mobile/dist/components/BlockContent.d.ts +2 -1
  217. package/mobile/dist/components/Blocks.d.ts +1 -0
  218. package/mobile/dist/components/Blocks.js +2 -0
  219. package/mobile/dist/components/Blocks.js.map +1 -1
  220. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +38 -28
  221. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  222. package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +4 -0
  223. package/mobile/dist/components/ComparisonTable/HeaderCell.d.ts +2 -0
  224. package/mobile/dist/components/ComparisonTable/HeaderCell.js +1 -3
  225. package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  226. package/mobile/dist/components/ComparisonTable/TableCell.d.ts +4 -3
  227. package/mobile/dist/components/ComparisonTable/TableCell.js +5 -5
  228. package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
  229. package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +10 -0
  230. package/mobile/dist/components/ComparisonTable/TableColumn.js +19 -0
  231. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -0
  232. package/mobile/dist/components/ComparisonTable/TableRow.js +1 -1
  233. package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
  234. package/mobile/dist/components/ContentPage/ContentPageHead.js +13 -6
  235. package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
  236. package/mobile/dist/components/Footer/Contacts.js +2 -2
  237. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  238. package/mobile/dist/components/Footer/Footer.js +2 -2
  239. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  240. package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
  241. package/mobile/dist/components/Footer/MediaButton.js +1 -1
  242. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  243. package/mobile/dist/components/Footer/TextInformation.js +1 -1
  244. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  245. package/mobile/dist/components/Gallery/Gallery.js +6 -2
  246. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  247. package/mobile/dist/components/Gallery/GalleryCardInner.js +5 -1
  248. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  249. package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
  250. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  251. package/mobile/dist/components/Header/HeaderBurger.js +2 -3
  252. package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
  253. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  254. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  255. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  256. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  257. package/mobile/dist/components/LinkList/LinkList.d.ts +5 -0
  258. package/mobile/dist/components/LinkList/LinkList.js +14 -0
  259. package/mobile/dist/components/LinkList/LinkList.js.map +1 -0
  260. package/mobile/dist/components/LinkList/LinkListContent.d.ts +8 -0
  261. package/mobile/dist/components/LinkList/LinkListContent.js +2 -0
  262. package/mobile/dist/components/LinkList/LinkListContent.js.map +1 -0
  263. package/mobile/dist/components/LinkList/linkListContentExample.d.ts +2 -0
  264. package/mobile/dist/components/LinkList/linkListContentExample.js +23 -0
  265. package/mobile/dist/components/LinkList/linkListContentExample.js.map +1 -0
  266. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  267. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  268. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  269. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  270. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  271. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  272. package/mobile/dist/components/Tile/Tile.d.ts +1 -1
  273. package/mobile/dist/components/Tile/Tile.js +1 -1
  274. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  275. package/mobile/dist/types.d.ts +8 -9
  276. package/mobile/dist/ui-kit/BlockItem/BlockItem.js +1 -1
  277. package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +1 -1
  278. package/mobile/dist/ui-kit/Description/Description.js +2 -2
  279. package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
  280. package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
  281. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  282. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -4
  283. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  284. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +11 -6
  285. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  286. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -0
  287. package/mobile/dist/utils/getAccordionItems.js +1 -1
  288. package/mobile/dist/utils/getCurrentDate.d.ts +1 -0
  289. package/mobile/dist/utils/getCurrentDate.js +7 -0
  290. package/mobile/dist/utils/getCurrentDate.js.map +1 -0
  291. package/mobile/lib/components/Accordion/Accordion.js +1 -1
  292. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  293. package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
  294. package/mobile/lib/components/Accordion/AccordionBlocks.js +2 -0
  295. package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
  296. package/mobile/lib/components/Accordion/AccordionContent.d.ts +7 -2
  297. package/mobile/lib/components/Accordion/AccordionItem.js +3 -2
  298. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  299. package/mobile/lib/components/Accordion/AccordionItemInner.js +2 -2
  300. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  301. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
  302. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  303. package/mobile/lib/components/BlockContent.d.ts +2 -1
  304. package/mobile/lib/components/Blocks.d.ts +1 -0
  305. package/mobile/lib/components/Blocks.js +2 -0
  306. package/mobile/lib/components/Blocks.js.map +1 -1
  307. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +38 -28
  308. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  309. package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +4 -0
  310. package/mobile/lib/components/ComparisonTable/HeaderCell.d.ts +2 -0
  311. package/mobile/lib/components/ComparisonTable/HeaderCell.js +1 -3
  312. package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  313. package/mobile/lib/components/ComparisonTable/TableCell.d.ts +4 -3
  314. package/mobile/lib/components/ComparisonTable/TableCell.js +6 -6
  315. package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
  316. package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +10 -0
  317. package/mobile/lib/components/ComparisonTable/TableColumn.js +17 -0
  318. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -0
  319. package/mobile/lib/components/ComparisonTable/TableRow.js +1 -1
  320. package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
  321. package/mobile/lib/components/ContentPage/ContentPageHead.js +13 -6
  322. package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
  323. package/mobile/lib/components/Footer/Contacts.js +2 -2
  324. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  325. package/mobile/lib/components/Footer/Footer.js +2 -2
  326. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  327. package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
  328. package/mobile/lib/components/Footer/MediaButton.js +1 -1
  329. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  330. package/mobile/lib/components/Footer/TextInformation.js +1 -1
  331. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  332. package/mobile/lib/components/Gallery/Gallery.js +6 -2
  333. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  334. package/mobile/lib/components/Gallery/GalleryCardInner.js +5 -1
  335. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  336. package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
  337. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  338. package/mobile/lib/components/Header/HeaderBurger.js +2 -3
  339. package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
  340. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  341. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  342. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  343. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  344. package/mobile/lib/components/LinkList/LinkList.d.ts +5 -0
  345. package/mobile/lib/components/LinkList/LinkList.js +12 -0
  346. package/mobile/lib/components/LinkList/LinkList.js.map +1 -0
  347. package/mobile/lib/components/LinkList/LinkListContent.d.ts +8 -0
  348. package/mobile/lib/components/LinkList/LinkListContent.js +2 -0
  349. package/mobile/lib/components/LinkList/LinkListContent.js.map +1 -0
  350. package/mobile/lib/components/LinkList/linkListContentExample.d.ts +2 -0
  351. package/mobile/lib/components/LinkList/linkListContentExample.js +21 -0
  352. package/mobile/lib/components/LinkList/linkListContentExample.js.map +1 -0
  353. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  354. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  355. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  356. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  357. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  358. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  359. package/mobile/lib/components/Tile/Tile.d.ts +1 -1
  360. package/mobile/lib/components/Tile/Tile.js +1 -1
  361. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  362. package/mobile/lib/types.d.ts +8 -9
  363. package/mobile/lib/ui-kit/BlockItem/BlockItem.js +1 -1
  364. package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +1 -1
  365. package/mobile/lib/ui-kit/Description/Description.js +2 -2
  366. package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
  367. package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
  368. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  369. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +3 -4
  370. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  371. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +12 -7
  372. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  373. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +1 -0
  374. package/mobile/lib/utils/getAccordionItems.js +1 -1
  375. package/mobile/lib/utils/getCurrentDate.d.ts +1 -0
  376. package/mobile/lib/utils/getCurrentDate.js +4 -0
  377. package/mobile/lib/utils/getCurrentDate.js.map +1 -0
  378. package/mobile/src/common.css +0 -2
  379. package/mobile/src/components/Accordion/Accordion.tsx +1 -3
  380. package/mobile/src/components/Accordion/AccordionBlocks.tsx +2 -0
  381. package/mobile/src/components/Accordion/AccordionContent.ts +10 -2
  382. package/mobile/src/components/Accordion/AccordionItem.tsx +5 -4
  383. package/mobile/src/components/Accordion/AccordionItemInner.tsx +2 -2
  384. package/mobile/src/components/Accordion/utils/isActiveHandler.ts +1 -1
  385. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
  386. package/mobile/src/components/BlockContent.ts +3 -1
  387. package/mobile/src/components/Blocks.ts +2 -0
  388. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +90 -102
  389. package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +4 -0
  390. package/mobile/src/components/ComparisonTable/HeaderCell.tsx +34 -30
  391. package/mobile/src/components/ComparisonTable/TableCell.tsx +30 -27
  392. package/mobile/src/components/ComparisonTable/TableColumn.tsx +66 -0
  393. package/mobile/src/components/ComparisonTable/TableRow.tsx +1 -1
  394. package/mobile/src/components/ContentPage/ContentPageHead.tsx +20 -17
  395. package/mobile/src/components/Footer/Contacts.tsx +2 -2
  396. package/mobile/src/components/Footer/Footer.tsx +3 -3
  397. package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
  398. package/mobile/src/components/Footer/MediaButton.tsx +4 -2
  399. package/mobile/src/components/Footer/TextInformation.tsx +2 -2
  400. package/mobile/src/components/Gallery/Gallery.example.json +20 -4
  401. package/mobile/src/components/Gallery/Gallery.tsx +14 -4
  402. package/mobile/src/components/Gallery/GalleryCardInner.tsx +12 -1
  403. package/mobile/src/components/Gallery/GalleryInner.tsx +4 -3
  404. package/mobile/src/components/Header/HeaderBurger.tsx +15 -8
  405. package/mobile/src/components/Header/HeaderTop.tsx +2 -2
  406. package/mobile/src/components/LinkDocs/LinkDocs.tsx +4 -2
  407. package/mobile/src/components/LinkList/LinkList.example.json +21 -0
  408. package/mobile/src/components/LinkList/LinkList.tsx +28 -0
  409. package/mobile/src/components/LinkList/LinkListContent.ts +9 -0
  410. package/mobile/src/components/LinkList/linkListContentExample.ts +22 -0
  411. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -2
  412. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  413. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +1 -1
  414. package/mobile/src/components/Tile/Tile.tsx +2 -2
  415. package/mobile/src/icons/OkIcon.svg +1 -0
  416. package/mobile/src/types.ts +8 -10
  417. package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +1 -1
  418. package/mobile/src/ui-kit/Description/Description.tsx +2 -2
  419. package/mobile/src/ui-kit/InputRange/InputRange.tsx +3 -12
  420. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +7 -9
  421. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +27 -19
  422. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +1 -0
  423. package/mobile/src/utils/getAccordionItems.ts +1 -1
  424. package/mobile/src/utils/getCurrentDate.ts +3 -0
  425. package/package.json +1 -1
  426. package/src/common.css +0 -2
  427. package/src/components/Accordion/Accordion.mobile.tsx +1 -3
  428. package/src/components/Accordion/AccordionBlocks.tsx +2 -0
  429. package/src/components/Accordion/AccordionContent.ts +10 -2
  430. package/src/components/Accordion/AccordionItem.mobile.tsx +5 -4
  431. package/src/components/Accordion/AccordionItemInner.mobile.tsx +2 -2
  432. package/src/components/Accordion/utils/isActiveHandler.ts +1 -1
  433. package/src/components/BenefitsBlock/BenefitsBlock.tsx +3 -3
  434. package/src/components/BlockContent.ts +3 -1
  435. package/src/components/Blocks.mobile.ts +2 -0
  436. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +152 -0
  437. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +121 -0
  438. package/src/components/ComparisonTable/ComparisonTableContent.ts +4 -0
  439. package/src/components/ComparisonTable/HeaderCell.mobile.tsx +50 -0
  440. package/src/components/ComparisonTable/TableCell.mobile.tsx +46 -0
  441. package/src/components/ComparisonTable/TableCell.tsx +4 -3
  442. package/src/components/ComparisonTable/TableColumn.tsx +66 -0
  443. package/src/components/ComparisonTable/TableRow.tsx +1 -1
  444. package/src/components/ContentPage/ContentPageHead.tsx +20 -17
  445. package/src/components/Footer/Contacts.tsx +2 -2
  446. package/src/components/Footer/Footer.mobile.tsx +3 -3
  447. package/src/components/Footer/HorizontalNavigation.mobile.tsx +1 -1
  448. package/src/components/Footer/MediaButton.tsx +4 -2
  449. package/src/components/Footer/TextInformation.mobile.tsx +2 -2
  450. package/src/components/Gallery/Gallery.example.json +20 -4
  451. package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -0
  452. package/src/components/Gallery/Gallery.fixture.tsx +9 -1
  453. package/src/components/Gallery/Gallery.mobile.tsx +14 -4
  454. package/src/components/Gallery/GalleryCardInner.tsx +12 -1
  455. package/src/components/Gallery/GalleryInner.tsx +4 -3
  456. package/src/components/Header/HeaderBurger.tsx +15 -8
  457. package/src/components/Header/HeaderTop.tsx +2 -2
  458. package/src/components/LinkDocs/LinkDocs.mobile.tsx +4 -2
  459. package/src/components/LinkDocs/LinkDocs.tsx +2 -2
  460. package/src/components/LinkList/LinkList.example.json +21 -0
  461. package/src/components/LinkList/LinkList.fixture.tsx +13 -0
  462. package/src/components/LinkList/LinkList.tsx +28 -0
  463. package/src/components/LinkList/LinkListContent.ts +9 -0
  464. package/src/components/LinkList/linkListContentExample.ts +22 -0
  465. package/src/components/MiniGallery/MiniGallery.fixture.tsx +5 -0
  466. package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +2 -2
  467. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +1 -1
  468. package/src/components/ProductBlock/ProductBlockInner.tsx +6 -4
  469. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +2 -0
  470. package/src/components/ProductGallery/ProductGallery.tsx +3 -3
  471. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +1 -1
  472. package/src/components/PromoTile/PromoTile.fixture.tsx +2 -1
  473. package/src/components/Tile/Tile.tsx +2 -2
  474. package/src/icons/OkIcon.svg +1 -0
  475. package/src/types.ts +8 -10
  476. package/src/ui-kit/BlockItem/BlockItem.tsx +1 -1
  477. package/src/ui-kit/Button/Button.fixture.tsx +2 -6
  478. package/src/ui-kit/Description/Description.tsx +2 -2
  479. package/src/ui-kit/InputRange/InputRange.tsx +3 -12
  480. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +7 -9
  481. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +27 -19
  482. package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +1 -0
  483. package/src/utils/getAccordionItems.ts +1 -1
  484. package/src/utils/getCurrentDate.ts +3 -0
@@ -2,6 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { BlockVersion } from '../../model/BlockVersion';
3
3
  import { Button } from '../../ui-kit/Button/Button';
4
4
  import { Heading } from '../../ui-kit/Heading/Heading';
5
+ import { Icon } from '../../ui-kit/Icon/Icon';
5
6
  import { Img } from '../../ui-kit/Img/Img';
6
7
  import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl';
7
8
  import type { GalleryCard } from './GalleryContent';
@@ -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?.text ? 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
  };
@@ -11,7 +11,7 @@ export interface HeaderTopProps {
11
11
  export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor }) => (
12
12
  <div className="flex items-center justify-between border-0 border-b border-main-divider h-[50px]">
13
13
  <div className="flex items-center">
14
- <button className="pr-4 border-0 bg-transparent" onClick={onClick} aria-label="Открыть меню">
14
+ <button className="pr-4 border-0 bg-transparent cursor-pointer" onClick={onClick} aria-label="Открыть меню">
15
15
  <Icon
16
16
  name={bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite'}
17
17
  width="24"
@@ -24,7 +24,7 @@ export const HeaderTop = JSX<HeaderTopProps>(({ onClick, bgColor }) => (
24
24
  <button
25
25
  className={`${
26
26
  bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'
27
- } text-sm border-0 bg-transparent`}
27
+ } text-sm border-0 bg-transparent cursor-pointer`}
28
28
  >
29
29
  Войти
30
30
  </button>
@@ -19,7 +19,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
19
19
  hasBorder = true,
20
20
  }) => {
21
21
  return (
22
- <section className={`font-sans py-6 px-4 bg-white ${className}`}>
22
+ <section className={`font-sans text-primary-text py-6 px-4 bg-white ${className}`}>
23
23
  {title ? (
24
24
  <Heading
25
25
  headingType="h2"
@@ -27,7 +27,9 @@ export const LinkDocs = JSX<LinkDocsProps>(
27
27
  title={title}
28
28
  />
29
29
  ) : null}
30
- {subtitle ? <h3 className="mb-5 text-center text-m-md">{subtitle}</h3> : null}
30
+ {subtitle ? (
31
+ <h3 className="mt-0 font-normal mb-5 text-center text-m-md">{subtitle}</h3>
32
+ ) : null}
31
33
  {listMode === 'vertical' ? (
32
34
  <LinkDocsVerticalList hasBorder={hasBorder} documents={documents} icon={icon} />
33
35
  ) : (
@@ -0,0 +1,21 @@
1
+ {
2
+ "documents": [
3
+ {
4
+ "text": "Документ №1",
5
+ "href": "/documents/document1.doc"
6
+ },
7
+ {
8
+ "text": "Документ №2",
9
+ "href": "/documents/document2.rtf",
10
+ "target": "_blank"
11
+ },
12
+ {
13
+ "text": "Документ №3",
14
+ "href": "/abc3/map.jpeg"
15
+ },
16
+ {
17
+ "text": "Документ №4",
18
+ "href": "/abc/map.rar"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,28 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../types';
3
+ import type { LinkListContent } from './LinkListContent';
4
+
5
+ export interface LinkListProps extends LinkListContent, UniBlockProps {}
6
+
7
+ export const LinkList = JSX<LinkListProps>(({ className = '', documents }) => {
8
+ return (
9
+ <section className={`font-sans bg-white mt-[10px] ${className}`}>
10
+ <ul className="flex flex-col text-sm text-secondary-text p-0">
11
+ {documents?.length ? renderLinkListItem(documents) : null}
12
+ </ul>
13
+ </section>
14
+ );
15
+ });
16
+
17
+ const renderLinkListItem = (documents) => {
18
+ return documents.map((doc, i) => {
19
+ const { text, ...linkProps } = doc;
20
+ return (
21
+ <li key={`list_item_${String(i)}`} className="mb-4 list-none">
22
+ <a className="hover:text-primary-main" role="link" {...linkProps}>
23
+ {text ? text : null}
24
+ </a>
25
+ </li>
26
+ );
27
+ });
28
+ };
@@ -0,0 +1,9 @@
1
+ import type { LinkProps } from '../../model/LinkProps';
2
+
3
+ /**
4
+ * @title Список документов
5
+ */
6
+ export interface LinkListContent {
7
+ /** @title Список */
8
+ documents?: LinkProps[];
9
+ }
@@ -0,0 +1,22 @@
1
+ import type { LinkListContent } from './LinkListContent';
2
+
3
+ export const linkDocsContentExample: LinkListContent = {
4
+ documents: [
5
+ { text: 'target self', href: '/abc1/cooldoc/', target: '_self' },
6
+ { text: 'target blank', href: '/abc2/wtf/', target: '_blank' },
7
+ { text: 'GlassIcon', href: '/abc3/map/' },
8
+ { text: 'no icon', href: '/abc4' },
9
+ { text: 'документ 5', href: '/abc5' },
10
+ { text: 'документ 6', href: '/abc6/abc' },
11
+ { text: 'Text text text', href: '/abc7/yolo' },
12
+ {
13
+ 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',
14
+ href: '/abc8/archive/',
15
+ },
16
+ { text: 'И ещё немного текста', href: '/abc9/' },
17
+ {
18
+ text: 'Форматируем, сортируем, смотрим как отображается...',
19
+ href: '/abc10/',
20
+ },
21
+ ],
22
+ };
@@ -20,8 +20,8 @@ export const MobileAppTile = JSX<MobileAppTileProps>(
20
20
  <Logo className="w-[33px]" bgColor="transparent" hideTitle />
21
21
  </div>
22
22
  <a href={href} target="_blank" className="flex flex-col justify-center pl-3">
23
- <div className="text-sm font-medium">{title}</div>
24
- <div className="text-xs text-secondary-text">{description}</div>
23
+ <div className="text-m-button font-medium mb-[3px]">{title}</div>
24
+ <div className="text-m-button text-secondary-text">{description}</div>
25
25
  </a>
26
26
  </div>
27
27
  ) : null}
@@ -48,7 +48,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
48
48
  ) : null
49
49
  }
50
50
  >
51
- {description && <Description description={description} />}
51
+ {description ? <Description className="mb-5" description={description} /> : null}
52
52
  {benefits?.length ? (
53
53
  <div className="mt-5">{benefits.map((_, i) => renderBenefit(_, i, version))}</div>
54
54
  ) : null}
@@ -12,7 +12,7 @@ export interface ProductGalleryBlockProps extends UniBlockProps {
12
12
  export const ProductGalleryBlock = JSX<ProductGalleryBlockProps>(
13
13
  ({ block, headingType, context }) => {
14
14
  return (
15
- <section className="flex grow-0 shrink-0 basis-full px-4 pt-6" role="listitem">
15
+ <section className="flex grow-0 shrink-0 basis-full px-4 pt-6">
16
16
  <div className="flex grow">
17
17
  <ProductBlockInner context={context} headingType={headingType || 'h2'} {...block} />
18
18
  </div>
@@ -10,7 +10,7 @@ import { BaseTile } from '../BaseTile/BaseTile';
10
10
  import { getTileHeadingType } from '../BaseTile/getTileHeadingType';
11
11
  import { getTileMinHeight } from '../BaseTile/getTileMinHeight';
12
12
  import { getTileRightPadding } from '../BaseTile/getTileRightPadding';
13
- import type { TileContent } from '../Tile/TileContent';
13
+ import type { TileContent } from './TileContent';
14
14
 
15
15
  export interface TileProps extends TileContent, UniBlockProps {
16
16
  role?: string;
@@ -37,7 +37,7 @@ export const Tile = JSX<TileProps>((props) => {
37
37
 
38
38
  return (
39
39
  <section
40
- className={`font-sans p-9 box-border ${className} ${
40
+ className={`overflow-hidden font-sans p-9 box-border ${className} ${
41
41
  tileStyleMap[version]
42
42
  } ${getTileRightPadding(className)} ${getTileMinHeight(className)} `}
43
43
  role={role}
@@ -1,5 +1,6 @@
1
1
  <svg title="Лого «Одноклассники»" viewBox="0 0 12 20" xmlns="http://www.w3.org/2000/svg">
2
2
  <path
3
+ fill="currentColor"
3
4
  d="M5.986 10.341C3.05 10.341.61 7.995.61 5.22.61 2.347 3.05 0 5.987 0c3.036 0 5.375 2.346 5.375 5.22a5.048 5.048 0 0 1-1.578 3.628 5.451 5.451 0 0 1-3.78 1.494h-.018Zm0-7.324A2.186 2.186 0 0 0 3.797 5.22c0 1.196.946 2.106 2.19 2.106 1.293 0 2.189-.91 2.189-2.106.001-1.199-.896-2.203-2.19-2.203Zm2.14 11.586 3.037 2.825c.598.621.598 1.531 0 2.106-.646.621-1.643.621-2.14 0l-3.036-2.873-2.937 2.873c-.298.287-.697.43-1.146.43-.348 0-.746-.144-1.095-.43-.597-.575-.597-1.485 0-2.107l3.086-2.825a14.303 14.303 0 0 1-3.182-1.339c-.747-.383-.896-1.34-.498-2.059.498-.718 1.393-.909 2.19-.43a7.08 7.08 0 0 0 3.583.97 7.08 7.08 0 0 0 3.583-.97c.797-.479 1.742-.288 2.19.43.448.72.248 1.675-.45 2.06-.944.574-2.039 1.005-3.184 1.34Z"
4
5
  />
5
6
  </svg>
@@ -26,21 +26,19 @@ export interface SlotsMap {
26
26
  }
27
27
 
28
28
  export interface ContentPageMeta {
29
- title: string;
30
- slug: string;
31
- main: ContentPageMetaMain;
29
+ title?: string;
30
+ slug?: string;
31
+ main?: {
32
+ description?: string;
33
+ keywords?: string[];
34
+ canonical?: string;
35
+ robots?: string[];
36
+ };
32
37
  og?: Record<string, string>;
33
38
  twitter?: Record<string, string>;
34
39
  jsonLd?: string;
35
40
  }
36
41
 
37
- export interface ContentPageMetaMain {
38
- description?: string;
39
- keywords?: string[];
40
- canonical?: string;
41
- robots?: string[];
42
- }
43
-
44
42
  export interface ContentPageDef extends ContentPageMeta {
45
43
  style?: string[];
46
44
  blocks?: BlockDef[]; //! for compatibility
@@ -19,7 +19,7 @@ export const BlockItem = JSX<BlockItemProps>(
19
19
  ({ className = '', isDotted = true, text, children, version = 'primary' }) => {
20
20
  return (
21
21
  <div className={`font-sans flex items-start ${className}`} role="listitem">
22
- {isDotted && <div className={getListStyle(version)} />}!!!!!
22
+ {isDotted && <div className={getListStyle(version)} />}
23
23
  <span className={TEXT_STYLE_MAP[version]}>{text || children}</span>
24
24
  </div>
25
25
  );
@@ -6,7 +6,7 @@ export interface DescriptionProps extends DescriptionContent {
6
6
  }
7
7
 
8
8
  export const Description = JSX<DescriptionProps>((props) => {
9
- const { className, description } = props;
9
+ const { className = '', description } = props;
10
10
 
11
- return <div className={`font-normal text-m-md ${className || ''}`}>{description}</div>;
11
+ return <div className={`font-normal text-m-md ${className}`}>{description}</div>;
12
12
  });
@@ -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
  });
@@ -1,10 +1,10 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { DEFAULT_GAP, DEFAULT_PADDING } from './constants';
3
+ import { SwipeListControlDots } from './SwipeListControlDots';
4
+ import { SwipeListControlList } from './SwipeListControlList';
2
5
  import type { SwipeListControlProps } from './SwipeListControlProps';
3
- import { getScrollPoints } from './utils/getScrollPoints';
4
6
  import { getIndexParts } from './utils/getIndexParts';
5
- import { SwipeListControlList } from './SwipeListControlList';
6
- import { SwipeListControlDots } from './SwipeListControlDots';
7
- import { DEFAULT_GAP, DEFAULT_PADDING } from './constants';
7
+ import { getScrollPoints } from './utils/getScrollPoints';
8
8
 
9
9
  export const SwipeListControl = JSX<SwipeListControlProps>(
10
10
  ({
@@ -14,6 +14,7 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
14
14
  gap = DEFAULT_GAP,
15
15
  padding = DEFAULT_PADDING,
16
16
  showDots = true,
17
+ onSlideChange,
17
18
  }) => {
18
19
  const [activeIndex, setActiveIndex] = context.useState<number>(0);
19
20
  const [indexFraction, setIndexFraction] = context.useState<number>(0);
@@ -35,28 +36,35 @@ export const SwipeListControl = JSX<SwipeListControlProps>(
35
36
  });
36
37
 
37
38
  const { index, fraction } = getIndexParts(scrollLeft, scrollPoints);
39
+ if (index !== activeIndex && onSlideChange) {
40
+ onSlideChange();
41
+ }
38
42
  setActiveIndex(index);
39
43
  setIndexFraction(fraction);
40
44
  };
41
45
 
42
46
  return (
43
47
  <div className={className}>
44
- <SwipeListControlList
45
- gap={gap}
46
- padding={padding}
47
- activeIndex={activeIndex}
48
- onScroll={handleScroll}
49
- >
50
- {children}
51
- </SwipeListControlList>
52
- <SwipeListControlDots
53
- activeIndex={activeIndex}
54
- indexFraction={indexFraction}
55
- showDots={showDots}
56
- >
57
- {children}
58
- </SwipeListControlDots>
48
+ {renderSwipeList({ gap, padding, activeIndex, handleScroll, children })}
49
+ {renderSwipelistDots({ activeIndex, indexFraction, showDots, children })}
59
50
  </div>
60
51
  );
61
52
  },
62
53
  );
54
+
55
+ const renderSwipeList = ({ gap, padding, activeIndex, handleScroll, children }) => (
56
+ <SwipeListControlList
57
+ gap={gap}
58
+ padding={padding}
59
+ activeIndex={activeIndex}
60
+ onScroll={handleScroll}
61
+ >
62
+ {children}
63
+ </SwipeListControlList>
64
+ );
65
+
66
+ const renderSwipelistDots = ({ activeIndex, indexFraction, showDots, children }) => (
67
+ <SwipeListControlDots activeIndex={activeIndex} indexFraction={indexFraction} showDots={showDots}>
68
+ {children}
69
+ </SwipeListControlDots>
70
+ );
@@ -16,4 +16,5 @@ export interface SwipeContainer {
16
16
  export interface SwipeListControlProps extends SwipeContainer, UniBlockProps {
17
17
  /** @title Точки-индикаторы */
18
18
  showDots?: boolean;
19
+ onSlideChange?: () => void;
19
20
  }
@@ -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.7",
3
+ "version": "0.3.10",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
package/src/common.css CHANGED
@@ -86,9 +86,7 @@
86
86
  .horizontal-list {
87
87
  display: flex;
88
88
  overflow-x: scroll;
89
- overscroll-behavior: contain;
90
89
  -webkit-overflow-scrolling: touch;
91
- touch-action: pan-x;
92
90
  scroll-snap-type: x mandatory;
93
91
  }
94
92
 
@@ -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
  };