@redneckz/wildless-cms-uni-blocks 0.3.22 → 0.3.25

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 (423) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +62 -70
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Accordion/Accordion.js +6 -2
  5. package/dist/components/Accordion/Accordion.js.map +1 -1
  6. package/dist/components/Accordion/AccordionContent.d.ts +7 -0
  7. package/dist/components/Accordion/AccordionItem.js +14 -5
  8. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  9. package/dist/components/Accordion/AccordionItem.mobile.js +1 -1
  10. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  11. package/dist/components/Accordion/AccordionItemInner.js +2 -2
  12. package/dist/components/Accordion/AccordionItemInner.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/Accordion/useActiveHandler.d.ts +7 -0
  16. package/dist/components/Accordion/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
  17. package/dist/components/Accordion/useActiveHandler.js.map +1 -0
  18. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +17 -5
  19. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  20. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  21. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  22. package/dist/components/Gallery/Gallery.mobile.js +4 -4
  23. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  24. package/dist/components/Gallery/GalleryCardInner.js +4 -9
  25. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  26. package/dist/components/Gallery/GalleryContent.d.ts +3 -2
  27. package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
  28. package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  29. package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  30. package/dist/components/OtherProducts/OtherProductsContent.d.ts +4 -1
  31. package/dist/components/OtherProducts/OtherProductsItem.js +4 -4
  32. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  33. package/dist/components/OtherProducts/useActiveHandler.d.ts +7 -0
  34. package/dist/components/OtherProducts/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
  35. package/dist/components/OtherProducts/useActiveHandler.js.map +1 -0
  36. package/dist/components/ProductBlock/ProductBlock.mobile.js +7 -5
  37. package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  38. package/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  39. package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
  40. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  41. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +8 -3
  42. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  43. package/dist/components/ProductBlock/renderBenefit.mobile.d.ts +2 -1
  44. package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
  45. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  46. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  47. package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
  48. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  49. package/dist/components/TariffsTable/TariffsTableCell.js +4 -4
  50. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  51. package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  52. package/dist/components/TariffsTable/TariffsTableTileCell.js +4 -2
  53. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  54. package/dist/components/TextBlock/TextBlock.mobile.js +1 -1
  55. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  56. package/dist/components/Tile/Tile.js +1 -1
  57. package/dist/components/Tile/Tile.js.map +1 -1
  58. package/dist/content-page-repository/transformPicture.js +2 -1
  59. package/dist/content-page-repository/transformPicture.js.map +1 -1
  60. package/dist/model/Picture.d.ts +2 -2
  61. package/dist/ui-kit/BlocksList/BlocksListProps.d.ts +46 -18
  62. package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +4 -2
  63. package/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
  64. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  65. package/dist/ui-kit/Icon/Icon.js +2 -1
  66. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  67. package/dist/ui-kit/Icon/IconProps.d.ts +2 -2
  68. package/dist/ui-kit/Img/Img.js +3 -1
  69. package/dist/ui-kit/Img/Img.js.map +1 -1
  70. package/dist/ui-kit/List/List.d.ts +1 -1
  71. package/dist/ui-kit/List/List.js +7 -2
  72. package/dist/ui-kit/List/List.js.map +1 -1
  73. package/dist/ui-kit/List/ListItem.d.ts +1 -1
  74. package/dist/ui-kit/List/ListItem.js +4 -9
  75. package/dist/ui-kit/List/ListItem.js.map +1 -1
  76. package/dist/ui-kit/List/ListProps.d.ts +2 -0
  77. package/dist/ui-kit/SearchBar/SearchBar.mobile.js +1 -1
  78. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  79. package/lib/common.css +1 -1
  80. package/lib/components/Accordion/Accordion.js +6 -2
  81. package/lib/components/Accordion/Accordion.js.map +1 -1
  82. package/lib/components/Accordion/AccordionContent.d.ts +7 -0
  83. package/lib/components/Accordion/AccordionItem.js +14 -5
  84. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  85. package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
  86. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  87. package/lib/components/Accordion/AccordionItemInner.js +2 -2
  88. package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  89. package/lib/components/Accordion/AccordionItemInner.mobile.js +2 -2
  90. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  91. package/lib/components/Accordion/useActiveHandler.d.ts +7 -0
  92. package/{mobile/lib/components/Accordion/utils → lib/components/Accordion}/useActiveHandler.js +2 -2
  93. package/lib/components/Accordion/useActiveHandler.js.map +1 -0
  94. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +17 -5
  95. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  96. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  97. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  98. package/lib/components/Gallery/Gallery.mobile.js +4 -4
  99. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  100. package/lib/components/Gallery/GalleryCardInner.js +4 -9
  101. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  102. package/lib/components/Gallery/GalleryContent.d.ts +3 -2
  103. package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
  104. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  105. package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  106. package/lib/components/OtherProducts/OtherProductsContent.d.ts +4 -1
  107. package/lib/components/OtherProducts/OtherProductsItem.js +4 -4
  108. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  109. package/lib/components/OtherProducts/useActiveHandler.d.ts +7 -0
  110. package/lib/components/OtherProducts/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
  111. package/lib/components/OtherProducts/useActiveHandler.js.map +1 -0
  112. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +4 -0
  113. package/lib/components/ProductBlock/ProductBlock.mobile.js +7 -5
  114. package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  115. package/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  116. package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
  117. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  118. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +8 -3
  119. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  120. package/lib/components/ProductBlock/renderBenefit.mobile.d.ts +2 -1
  121. package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
  122. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  123. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  124. package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
  125. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  126. package/lib/components/TariffsTable/TariffsTableCell.js +4 -4
  127. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  128. package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  129. package/lib/components/TariffsTable/TariffsTableTileCell.js +4 -2
  130. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  131. package/lib/components/TextBlock/TextBlock.mobile.js +1 -1
  132. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  133. package/lib/components/Tile/Tile.js +1 -1
  134. package/lib/components/Tile/Tile.js.map +1 -1
  135. package/lib/content-page-repository/transformPicture.js +2 -1
  136. package/lib/content-page-repository/transformPicture.js.map +1 -1
  137. package/lib/model/Picture.d.ts +2 -2
  138. package/lib/ui-kit/BlocksList/BlocksListProps.d.ts +46 -18
  139. package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +4 -2
  140. package/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
  141. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  142. package/lib/ui-kit/Icon/Icon.js +2 -1
  143. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  144. package/lib/ui-kit/Icon/IconProps.d.ts +2 -2
  145. package/lib/ui-kit/Img/Img.js +3 -1
  146. package/lib/ui-kit/Img/Img.js.map +1 -1
  147. package/lib/ui-kit/List/List.d.ts +1 -1
  148. package/lib/ui-kit/List/List.fixture.d.ts +10 -0
  149. package/lib/ui-kit/List/List.js +7 -2
  150. package/lib/ui-kit/List/List.js.map +1 -1
  151. package/lib/ui-kit/List/ListItem.d.ts +1 -1
  152. package/lib/ui-kit/List/ListItem.js +4 -9
  153. package/lib/ui-kit/List/ListItem.js.map +1 -1
  154. package/lib/ui-kit/List/ListProps.d.ts +2 -0
  155. package/lib/ui-kit/SearchBar/SearchBar.mobile.js +1 -1
  156. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  157. package/mobile/bundle/bundle.umd.js +72 -74
  158. package/mobile/bundle/bundle.umd.min.js +1 -1
  159. package/mobile/dist/components/Accordion/AccordionContent.d.ts +7 -0
  160. package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
  161. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  162. package/mobile/dist/components/Accordion/AccordionItemInner.js +2 -2
  163. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  164. package/mobile/dist/components/Accordion/useActiveHandler.d.ts +7 -0
  165. package/mobile/dist/components/Accordion/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
  166. package/mobile/dist/components/Accordion/useActiveHandler.js.map +1 -0
  167. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +17 -5
  168. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  169. package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  170. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  171. package/mobile/dist/components/Gallery/Gallery.js +4 -4
  172. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  173. package/mobile/dist/components/Gallery/GalleryCardInner.js +4 -9
  174. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  175. package/mobile/dist/components/Gallery/GalleryContent.d.ts +3 -2
  176. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  177. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  178. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  179. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +4 -1
  180. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +4 -4
  181. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  182. package/mobile/dist/components/OtherProducts/useActiveHandler.d.ts +7 -0
  183. package/mobile/dist/components/OtherProducts/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
  184. package/mobile/dist/components/OtherProducts/useActiveHandler.js.map +1 -0
  185. package/mobile/dist/components/ProductBlock/ProductBlock.js +7 -5
  186. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  187. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  188. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +8 -3
  189. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  190. package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +2 -1
  191. package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
  192. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  193. package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  194. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
  195. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  196. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +4 -4
  197. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  198. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  199. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +4 -2
  200. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  201. package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
  202. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  203. package/mobile/dist/components/Tile/Tile.js +1 -1
  204. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  205. package/mobile/dist/content-page-repository/transformPicture.js +2 -1
  206. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  207. package/mobile/dist/model/Picture.d.ts +2 -2
  208. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.d.ts +46 -18
  209. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +4 -2
  210. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
  211. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  212. package/mobile/dist/ui-kit/Icon/Icon.js +2 -1
  213. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  214. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +2 -2
  215. package/mobile/dist/ui-kit/List/List.d.ts +1 -1
  216. package/mobile/dist/ui-kit/List/List.js +7 -2
  217. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  218. package/mobile/dist/ui-kit/List/ListItem.d.ts +1 -1
  219. package/mobile/dist/ui-kit/List/ListItem.js +4 -9
  220. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  221. package/mobile/dist/ui-kit/List/ListProps.d.ts +2 -0
  222. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +1 -1
  223. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  224. package/mobile/lib/components/Accordion/AccordionContent.d.ts +7 -0
  225. package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
  226. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  227. package/mobile/lib/components/Accordion/AccordionItemInner.js +2 -2
  228. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  229. package/mobile/lib/components/Accordion/useActiveHandler.d.ts +7 -0
  230. package/{lib/components/Accordion/utils → mobile/lib/components/Accordion}/useActiveHandler.js +2 -2
  231. package/mobile/lib/components/Accordion/useActiveHandler.js.map +1 -0
  232. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +17 -5
  233. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  234. package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  235. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  236. package/mobile/lib/components/Gallery/Gallery.js +4 -4
  237. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  238. package/mobile/lib/components/Gallery/GalleryCardInner.js +4 -9
  239. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  240. package/mobile/lib/components/Gallery/GalleryContent.d.ts +3 -2
  241. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  242. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  243. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  244. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +4 -1
  245. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +4 -4
  246. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  247. package/mobile/lib/components/OtherProducts/useActiveHandler.d.ts +7 -0
  248. package/mobile/lib/components/OtherProducts/{utils/useActiveHandler.js → useActiveHandler.js} +2 -2
  249. package/mobile/lib/components/OtherProducts/useActiveHandler.js.map +1 -0
  250. package/mobile/lib/components/ProductBlock/ProductBlock.js +7 -5
  251. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  252. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  253. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +8 -3
  254. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  255. package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +2 -1
  256. package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
  257. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  258. package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  259. package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
  260. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  261. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +4 -4
  262. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  263. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  264. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +4 -2
  265. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  266. package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
  267. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  268. package/mobile/lib/components/Tile/Tile.js +1 -1
  269. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  270. package/mobile/lib/content-page-repository/transformPicture.js +2 -1
  271. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  272. package/mobile/lib/model/Picture.d.ts +2 -2
  273. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.d.ts +46 -18
  274. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +4 -2
  275. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
  276. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  277. package/mobile/lib/ui-kit/Icon/Icon.js +2 -1
  278. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  279. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +2 -2
  280. package/mobile/lib/ui-kit/List/List.d.ts +1 -1
  281. package/mobile/lib/ui-kit/List/List.js +7 -2
  282. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  283. package/mobile/lib/ui-kit/List/ListItem.d.ts +1 -1
  284. package/mobile/lib/ui-kit/List/ListItem.js +4 -9
  285. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  286. package/mobile/lib/ui-kit/List/ListProps.d.ts +2 -0
  287. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +1 -1
  288. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  289. package/mobile/src/components/Accordion/AccordionContent.ts +8 -1
  290. package/mobile/src/components/Accordion/AccordionItem.tsx +1 -1
  291. package/mobile/src/components/Accordion/AccordionItemInner.tsx +11 -9
  292. package/mobile/src/components/Accordion/{utils/useActiveHandler.ts → useActiveHandler.ts} +4 -3
  293. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +51 -30
  294. package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +3 -2
  295. package/mobile/src/components/ContentPage/ContentPage.tsx +0 -1
  296. package/mobile/src/components/CreditCalculator/CreditCalculator.example.json +19 -0
  297. package/mobile/src/components/Gallery/Gallery.tsx +5 -4
  298. package/mobile/src/components/Gallery/GalleryCardInner.tsx +13 -18
  299. package/mobile/src/components/Gallery/GalleryContent.ts +3 -2
  300. package/mobile/src/components/LinkDocs/LinkDocs.tsx +3 -1
  301. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +3 -10
  302. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +4 -1
  303. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +29 -27
  304. package/{src/components/OtherProducts/utils → mobile/src/components/OtherProducts}/useActiveHandler.ts +4 -3
  305. package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -0
  306. package/mobile/src/components/ProductBlock/ProductBlock.tsx +17 -12
  307. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +4 -0
  308. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +25 -5
  309. package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -1
  310. package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +4 -1
  311. package/mobile/src/components/TariffsTable/TariffsTable.tsx +3 -1
  312. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +28 -27
  313. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -1
  314. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +33 -31
  315. package/mobile/src/components/TextBlock/TextBlock.example.json +2 -1
  316. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -2
  317. package/mobile/src/components/Tile/Tile.tsx +3 -1
  318. package/mobile/src/content-page-repository/transformPicture.ts +2 -1
  319. package/mobile/src/model/Picture.ts +2 -2
  320. package/mobile/src/ui-kit/BlocksList/BlocksListProps.ts +27 -29
  321. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +12 -4
  322. package/mobile/src/ui-kit/Icon/Icon.tsx +7 -1
  323. package/mobile/src/ui-kit/Icon/IconProps.ts +2 -2
  324. package/mobile/src/ui-kit/List/List.tsx +9 -3
  325. package/mobile/src/ui-kit/List/ListItem.tsx +5 -12
  326. package/mobile/src/ui-kit/List/ListProps.ts +2 -0
  327. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -1
  328. package/package.json +1 -1
  329. package/src/components/Accordion/Accordion.tsx +27 -14
  330. package/src/components/Accordion/AccordionContent.ts +8 -1
  331. package/src/components/Accordion/AccordionItem.mobile.tsx +1 -1
  332. package/src/components/Accordion/AccordionItem.tsx +48 -26
  333. package/src/components/Accordion/AccordionItemInner.mobile.tsx +11 -9
  334. package/src/components/Accordion/AccordionItemInner.tsx +10 -8
  335. package/src/components/Accordion/{utils/useActiveHandler.ts → useActiveHandler.ts} +4 -3
  336. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +1 -1
  337. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +51 -30
  338. package/src/components/ComparisonTable/ComparisonTableContent.ts +3 -2
  339. package/src/components/ContentPage/ContentPage.tsx +0 -1
  340. package/src/components/CreditCalculator/CreditCalculator.example.json +19 -0
  341. package/src/components/Gallery/Gallery.fixture.mobile.tsx +3 -2
  342. package/src/components/Gallery/Gallery.mobile.tsx +5 -4
  343. package/src/components/Gallery/GalleryCardInner.tsx +13 -18
  344. package/src/components/Gallery/GalleryContent.ts +3 -2
  345. package/src/components/LinkDocs/LinkDocs.mobile.tsx +3 -1
  346. package/src/components/LinkDocs/LinkDocsContent.ts +3 -10
  347. package/src/components/OtherProducts/OtherProductsContent.ts +4 -1
  348. package/src/components/OtherProducts/OtherProductsItem.tsx +29 -27
  349. package/{mobile/src/components/OtherProducts/utils → src/components/OtherProducts}/useActiveHandler.ts +4 -3
  350. package/src/components/ProductBlock/ProductBlock.example.json +1 -0
  351. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +49 -13
  352. package/src/components/ProductBlock/ProductBlock.mobile.tsx +17 -12
  353. package/src/components/ProductBlock/ProductBlockContent.ts +4 -0
  354. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +25 -5
  355. package/src/components/ProductBlock/ProductBlockInner.tsx +8 -1
  356. package/src/components/ProductBlock/renderBenefit.mobile.tsx +2 -1
  357. package/src/components/ProductGallery/ProductGalleryContent.ts +4 -1
  358. package/src/components/TariffsTable/TariffsTable.mobile.tsx +3 -1
  359. package/src/components/TariffsTable/TariffsTableCell.tsx +28 -27
  360. package/src/components/TariffsTable/TariffsTableContent.ts +1 -1
  361. package/src/components/TariffsTable/TariffsTableTileCell.tsx +33 -31
  362. package/src/components/TextBlock/TextBlock.example.json +2 -1
  363. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +8 -0
  364. package/src/components/TextBlock/TextBlock.mobile.tsx +2 -2
  365. package/src/components/Tile/Tile.tsx +3 -1
  366. package/src/content-page-repository/transformPicture.ts +2 -1
  367. package/src/model/Picture.ts +2 -2
  368. package/src/ui-kit/BlocksList/BlocksListProps.ts +27 -29
  369. package/src/ui-kit/BlocksList/renderBlocksList.tsx +12 -4
  370. package/src/ui-kit/Icon/Icon.tsx +7 -1
  371. package/src/ui-kit/Icon/IconProps.ts +2 -2
  372. package/src/ui-kit/Img/Img.tsx +5 -2
  373. package/src/ui-kit/List/List.fixture.tsx +37 -0
  374. package/src/ui-kit/List/List.tsx +9 -3
  375. package/src/ui-kit/List/ListItem.tsx +5 -12
  376. package/src/ui-kit/List/ListProps.ts +2 -0
  377. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +1 -1
  378. package/dist/components/Accordion/utils/useActiveHandler.d.ts +0 -9
  379. package/dist/components/Accordion/utils/useActiveHandler.js.map +0 -1
  380. package/dist/components/OtherProducts/utils/useActiveHandler.d.ts +0 -9
  381. package/dist/components/OtherProducts/utils/useActiveHandler.js.map +0 -1
  382. package/dist/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  383. package/dist/ui-kit/BlockItem/BlockItem.js +0 -23
  384. package/dist/ui-kit/BlockItem/BlockItem.js.map +0 -1
  385. package/dist/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  386. package/dist/ui-kit/BlockItem/BlockItemProps.js +0 -2
  387. package/dist/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  388. package/lib/components/Accordion/utils/useActiveHandler.d.ts +0 -9
  389. package/lib/components/Accordion/utils/useActiveHandler.js.map +0 -1
  390. package/lib/components/OtherProducts/utils/useActiveHandler.d.ts +0 -9
  391. package/lib/components/OtherProducts/utils/useActiveHandler.js.map +0 -1
  392. package/lib/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  393. package/lib/ui-kit/BlockItem/BlockItem.fixture.d.ts +0 -8
  394. package/lib/ui-kit/BlockItem/BlockItem.js +0 -21
  395. package/lib/ui-kit/BlockItem/BlockItem.js.map +0 -1
  396. package/lib/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  397. package/lib/ui-kit/BlockItem/BlockItemProps.js +0 -2
  398. package/lib/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  399. package/mobile/dist/components/Accordion/utils/useActiveHandler.d.ts +0 -9
  400. package/mobile/dist/components/Accordion/utils/useActiveHandler.js.map +0 -1
  401. package/mobile/dist/components/OtherProducts/utils/useActiveHandler.d.ts +0 -9
  402. package/mobile/dist/components/OtherProducts/utils/useActiveHandler.js.map +0 -1
  403. package/mobile/dist/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  404. package/mobile/dist/ui-kit/BlockItem/BlockItem.js +0 -23
  405. package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +0 -1
  406. package/mobile/dist/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  407. package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js +0 -2
  408. package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  409. package/mobile/lib/components/Accordion/utils/useActiveHandler.d.ts +0 -9
  410. package/mobile/lib/components/Accordion/utils/useActiveHandler.js.map +0 -1
  411. package/mobile/lib/components/OtherProducts/utils/useActiveHandler.d.ts +0 -9
  412. package/mobile/lib/components/OtherProducts/utils/useActiveHandler.js.map +0 -1
  413. package/mobile/lib/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  414. package/mobile/lib/ui-kit/BlockItem/BlockItem.js +0 -21
  415. package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +0 -1
  416. package/mobile/lib/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  417. package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js +0 -2
  418. package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  419. package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +0 -33
  420. package/mobile/src/ui-kit/BlockItem/BlockItemProps.ts +0 -23
  421. package/src/ui-kit/BlockItem/BlockItem.fixture.tsx +0 -12
  422. package/src/ui-kit/BlockItem/BlockItem.tsx +0 -33
  423. package/src/ui-kit/BlockItem/BlockItemProps.ts +0 -23
@@ -1 +1 @@
1
- {"version":3,"file":"renderBlocksList.js","sourceRoot":"","sources":["../../../src/ui-kit/BlocksList/renderBlocksList.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAStD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAyB,EAAE,EAAE,CACjG,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAEnF,MAAM,CAAC,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,OAAO,EAA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C;IAClC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,gBAAgB,CAAC,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IACD,MAAM,iBAAiB,GAAG,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACvD,MAAM,aAAa,GAAa,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,CACL,cAAK,SAAS,EAAE,GAAG,SAAS,IAAI,iBAAiB,EAAE,YACjD,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,GAAG,IAD9B,SAAS,CAAC,EAAE,CAEhE,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -5,11 +5,12 @@ import { IconTitleMap } from '../../icons/IconName.js';
5
5
  const svgColorsMap = {
6
6
  none: '',
7
7
  primary: 'text-primary-main',
8
+ secondary: 'text-primary-text',
8
9
  };
9
10
  export const Icon = JSX(({ className = '', name, alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, asSVG, color = 'primary', ...imgProps }) => {
10
11
  const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
11
12
  if (asSVG) {
12
- return (_jsxs("svg", { className: `${svgColorsMap[color]} ${className}`, ...imgProps, "aria-hidden": "true", children: [title ? _jsx("title", { children: title }) : null, alt ? _jsx("desc", { children: alt }) : null, _jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
13
+ return (_jsxs("svg", { className: `${svgColorsMap[color]} ${className}`, ...imgProps, "aria-hidden": "true", style: color === 'secondary' ? { filter: 'invert(1)' } : null, children: [title ? _jsx("title", { children: title }) : null, alt ? _jsx("desc", { children: alt }) : null, _jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }));
13
14
  }
14
15
  return (_jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
15
16
  });
@@ -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E,IAAI,EACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,KACR,QAAQ,iBACA,MAAM,GAClB,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -2,9 +2,9 @@ import type { IconName } from '../../icons/IconName';
2
2
  export type { IconName };
3
3
  /**
4
4
  * @title Цвет иконки (svg)
5
- * @enumNames ["Нет", "Основной"]
5
+ * @enumNames ["Нет", "Основной", "Второстепенный"]
6
6
  */
7
- export declare type IconColor = 'none' | 'primary';
7
+ export declare type IconColor = 'none' | 'primary' | 'secondary';
8
8
  export interface IconProps {
9
9
  className?: string;
10
10
  name: IconName;
@@ -1,2 +1,2 @@
1
- import { ListProps } from './ListProps';
1
+ import type { ListProps } from './ListProps';
2
2
  export declare const List: (props: import("@redneckz/uni-jsx").PropsWithChildren<ListProps, any>, context?: any) => any;
@@ -1,9 +1,14 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  import { ListItem } from './ListItem.js';
4
+ const TEXT_STYLE_MAP = {
5
+ primary: 'text-primary-text',
6
+ secondary: 'text-white',
7
+ gray: 'text-secondary-text',
8
+ };
4
9
  export const List = JSX((props) => {
5
- const { className = '', itemClassName, isDotted, items, version } = props;
6
- return (_jsx("section", { className: `${className}`, role: "list", children: items?.length
10
+ const { className = '', itemClassName, isDotted, items, version = 'primary' } = props;
11
+ return (_jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${className}`, role: "list", children: items?.length
7
12
  ? items.map((_, i) => (_jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
8
13
  : null }));
9
14
  });
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/ui-kit/List/List.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGt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AAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClB,KAAC,QAAQ,IAEP,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,YAEf,CAAC,IALG,MAAM,CAAC,CAAC,CAAC,CAML,CACZ,CAAC;YACJ,CAAC,CAAC,IAAI,GACA,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ListItemVersion } from './ListProps';
1
+ import type { ListItemVersion } from './ListProps';
2
2
  /**
3
3
  * @title Параметры элемента списка
4
4
  */
@@ -1,21 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
3
  const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
4
- const TEXT_STYLE_MAP = {
5
- primary: 'text-primary-text',
6
- secondary: 'text-white',
7
- gray: 'text-secondary-text',
8
- };
9
- const LIST_STYLE_MAP = {
4
+ const LIST_DOT_STYLE_MAP = {
10
5
  primary: 'bg-primary-main',
11
6
  secondary: 'bg-white',
12
7
  gray: 'bg-secondary-text',
13
8
  };
14
9
  export const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
15
- return (_jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && _jsx("div", { className: getListStyle(version) }), _jsx("span", { className: `text-m-md ${TEXT_STYLE_MAP[version]}`, children: children })] }));
10
+ return (_jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && _jsx("div", { className: getListStyle(version) }), _jsx("span", { children: children })] }));
16
11
  });
17
12
  const getListStyle = (version) => {
18
- const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
19
- return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
13
+ const size = version === 'gray' ? 'w-1.5 h-1.5 min-w-1.5 min-h-1.5' : 'w-2 h-2 min-w-2 min-h-2';
14
+ return `${LIST_STYLE_CLASSES} ${LIST_DOT_STYLE_MAP[version]} ${size}`;
20
15
  };
21
16
  //# sourceMappingURL=ListItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAaxC,MAAM,kBAAkB,GAAG,qCAAqC,CAAC;AAEjE,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACrE,OAAO,CACL,eAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,eAAM,SAAS,EAAE,aAAa,cAAc,CAAC,OAAO,CAAC,EAAE,YAAG,QAAQ,GAAQ,IACtE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAwB,EAAE,EAAE;IAChD,MAAM,IAAI,GACR,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAC7F,OAAO,GAAG,kBAAkB,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;AACpE,CAAC,CAAC"}
1
+ {"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../src/ui-kit/List/ListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAaxC,MAAM,kBAAkB,GAAG,qCAAqC,CAAC;AAEjE,MAAM,kBAAkB,GAAoC;IAC1D,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACrE,OAAO,CACL,eAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,cAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,yBAAO,QAAQ,GAAQ,IACnB,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAwB,EAAE,EAAE;IAChD,MAAM,IAAI,GAAG,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAChG,OAAO,GAAG,kBAAkB,IAAI,kBAAkB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;AACxE,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { ListContent } from './ListContent';
2
2
  /**
3
3
  * @title Версия списка
4
+ * @enumNames ["Основной", "Второстепенный", "Серый"]
4
5
  */
5
6
  export declare type ListItemVersion = 'primary' | 'secondary' | 'gray';
6
7
  /**
@@ -8,6 +9,7 @@ export declare type ListItemVersion = 'primary' | 'secondary' | 'gray';
8
9
  */
9
10
  export interface ListProps extends ListContent {
10
11
  className?: string;
12
+ /** @title Буллиты */
11
13
  isDotted?: boolean;
12
14
  version?: ListItemVersion;
13
15
  itemClassName?: string;
@@ -3,7 +3,7 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { Icon } from '../Icon/Icon.js';
4
4
  export const SearchBar = JSX(({ className, context }) => {
5
5
  const { term, setTerm } = context.useSearch();
6
- return (_jsxs("form", { className: `relative ${className || ''}`, children: [_jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [_jsx("div", { className: "w-[20px] h-[20px]", children: _jsx(Icon, { name: "LoupeIcon", width: "24", height: "24" }) }), !term && (_jsx("label", { htmlFor: "search-bar-input", className: "font-sans font-normal text-sm text-secondary-text", children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), _jsx("input", { id: "search-bar-input", className: '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', value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input", placeholder: "some search" }), _jsx("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer", onClick: (e) => {
6
+ return (_jsxs("form", { className: `relative ${className || ''}`, children: [_jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [_jsx("div", { className: "w-[20px] h-[20px]", children: _jsx(Icon, { name: "LoupeIcon", width: "24", height: "24" }) }), !term && (_jsx("label", { htmlFor: "search-bar-input", className: "font-sans font-normal text-sm text-secondary-text", children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), _jsx("input", { id: "search-bar-input", className: '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', value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input", placeholder: "some search" }), _jsx("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none", onClick: (e) => {
7
7
  e.preventDefault();
8
8
  setTerm('');
9
9
  }, children: _jsx(Icon, { name: "CloseIcon", width: "24", height: "24" }) })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../src/ui-kit/SearchBar/SearchBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAgB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;IACrE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAC9C,OAAO,CACL,gBAAM,SAAS,EAAE,YAAY,SAAS,IAAI,EAAE,EAAE,aAC5C,eAAK,SAAS,EAAC,yGAAyG,aACtH,cAAK,SAAS,EAAC,mBAAmB,YAChC,KAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC5C,EACL,CAAC,IAAI,IAAI,CACR,gBACE,OAAO,EAAC,kBAAkB,EAC1B,SAAS,EAAC,mDAAmD,2FAGvD,CACT,IACG,EACN,gBACE,EAAE,EAAC,kBAAkB,EACrB,SAAS,EACP,qMAAqM,EAEvM,KAAK,EAAE,IAAI,EACX,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACxC,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,kBAAkB,EACvB,WAAW,EAAC,aAAa,GACzB,EACF,iBACE,SAAS,EAAC,2GAA2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,EACF,iBACE,SAAS,EAAC,uHAAuH,EACjI,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,OAAO,CAAC,EAAE,CAAC,CAAC;gBACd,CAAC,YAED,KAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GACzC,IACJ,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { BlockDef, ColumnsCount } from '../../ui-kit/BlocksList/BlocksListProps';
2
-
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
3
  /**
4
4
  * @title Элемент списка
5
5
  */
@@ -9,6 +9,10 @@ export interface AccordionItemCommonProps {
9
9
  * @default Список
10
10
  */
11
11
  label?: string;
12
+ /**
13
+ * @title Отображать в раскрытом виде
14
+ */
15
+ isExpanded?: boolean;
12
16
  /** @title Блоки */
13
17
  blocks?: BlockDef[];
14
18
  /**
@@ -16,6 +20,8 @@ export interface AccordionItemCommonProps {
16
20
  * @default false
17
21
  */
18
22
  bordered?: boolean; // TODO: только для мобильной версии
23
+ version?: BlockVersion;
24
+
19
25
  columns?: ColumnsCount;
20
26
  }
21
27
 
@@ -25,6 +31,7 @@ export interface AccordionItemCommonProps {
25
31
  export interface AccordionContent {
26
32
  /** @title Заголовок */
27
33
  title?: string;
34
+ version?: BlockVersion;
28
35
  /** @title Список */
29
36
  accordionItems?: AccordionItemCommonProps[];
30
37
  /** @title Описание */
@@ -3,7 +3,7 @@ import type { UniBlockProps } from '../../types';
3
3
  import { Icon } from '../../ui-kit/Icon/Icon';
4
4
  import type { AccordionItemCommonProps } from './AccordionContent';
5
5
  import { AccordionItemInner } from './AccordionItemInner';
6
- import { useActiveHandler } from './utils/useActiveHandler';
6
+ import { useActiveHandler } from './useActiveHandler';
7
7
 
8
8
  export interface AccordionItemProps extends AccordionItemCommonProps, UniBlockProps {}
9
9
 
@@ -2,12 +2,14 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { AccordionItemProps } from './AccordionItem';
3
3
  import { renderBlocksList } from '../../ui-kit/BlocksList/renderBlocksList';
4
4
 
5
- export const AccordionItemInner = JSX<AccordionItemProps>(({ blocks, context }) => {
6
- const className = 'mb-5 last:mb-0 first:mt-2';
7
- const columns = 1;
8
- return (
9
- <div className="transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0">
10
- {renderBlocksList({ context, className, columns, blocks })}
11
- </div>
12
- );
13
- });
5
+ export const AccordionItemInner = JSX<AccordionItemProps>(
6
+ ({ blocks, context, version = 'primary' }) => {
7
+ const className = 'mb-5 last:mb-0 first:mt-2';
8
+ const columns = 1;
9
+ return (
10
+ <div className="transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0">
11
+ {renderBlocksList({ context, className, columns, blocks, version })}
12
+ </div>
13
+ );
14
+ },
15
+ );
@@ -1,7 +1,8 @@
1
- import type { IconName } from '../../../icons/IconName';
1
+ import type { IconName } from '../../icons/IconName';
2
+ import { ActiveHandler } from '../../ui-kit/BlocksList/BlocksListProps';
2
3
 
3
- export const useActiveHandler = ({ context, blocks }) => {
4
- const [isActive, setIsActive] = context.useState(false);
4
+ export const useActiveHandler = ({ context, blocks, initialState = false }: ActiveHandler) => {
5
+ const [isActive, setIsActive] = context.useState(initialState);
5
6
  const hasContent = blocks?.length;
6
7
  const icon: IconName = isActive ? 'MinusIcon' : 'PlusIcon';
7
8
 
@@ -16,7 +16,7 @@ export const ComparisonTable = JSX<ComparisonTableProps>(
16
16
  columns,
17
17
  visibleRowLength = 0,
18
18
  isColoredFirstColumn = false,
19
- useSwiper = false,
19
+ useSwiper = 'horizontal',
20
20
  }) => {
21
21
  const tableData =
22
22
  columns?.map(({ data, header }) => ({
@@ -65,41 +65,62 @@ const renderColumns = ({
65
65
  isColoredFirstColumn,
66
66
  columnsViewState,
67
67
  handleToggleColumn,
68
- useSwiper,
68
+ useSwiper = 'horizontal',
69
69
  setColumnsViewState,
70
70
  }) => (
71
71
  <div role="table">
72
- {tableData?.length ? (
73
- useSwiper ? (
74
- <SwipeListControl
75
- context={context}
76
- onSlideChange={onSlideChange(columnsViewState, setColumnsViewState)}
77
- >
78
- {tableData.map(
79
- renderColumn({
80
- context,
81
- visibleRowLength,
82
- isColoredFirstColumn,
83
- columnsViewState,
84
- handleToggleColumn,
85
- }),
86
- )}
87
- </SwipeListControl>
88
- ) : (
89
- tableData.map(
90
- renderColumn({
91
- context,
92
- visibleRowLength,
93
- isColoredFirstColumn,
94
- columnsViewState,
95
- handleToggleColumn,
96
- }),
97
- )
98
- )
99
- ) : null}
72
+ {tableData?.length
73
+ ? renderInnerTable({
74
+ useSwiper,
75
+ context,
76
+ columnsViewState,
77
+ setColumnsViewState,
78
+ tableData,
79
+ visibleRowLength,
80
+ isColoredFirstColumn,
81
+ handleToggleColumn,
82
+ })
83
+ : null}
100
84
  </div>
101
85
  );
102
86
 
87
+ const renderInnerTable = ({
88
+ useSwiper,
89
+ context,
90
+ columnsViewState,
91
+ setColumnsViewState,
92
+ tableData,
93
+ visibleRowLength,
94
+ isColoredFirstColumn,
95
+ handleToggleColumn,
96
+ }) =>
97
+ useSwiper === 'horizontal' ? (
98
+ tableData.map(
99
+ renderColumn({
100
+ context,
101
+ visibleRowLength,
102
+ isColoredFirstColumn,
103
+ columnsViewState,
104
+ handleToggleColumn,
105
+ }),
106
+ )
107
+ ) : (
108
+ <SwipeListControl
109
+ context={context}
110
+ onSlideChange={onSlideChange(columnsViewState, setColumnsViewState)}
111
+ >
112
+ {tableData.map(
113
+ renderColumn({
114
+ context,
115
+ visibleRowLength,
116
+ isColoredFirstColumn,
117
+ columnsViewState,
118
+ handleToggleColumn,
119
+ }),
120
+ )}
121
+ </SwipeListControl>
122
+ );
123
+
103
124
  const renderColumn =
104
125
  ({ context, visibleRowLength, isColoredFirstColumn, columnsViewState, handleToggleColumn }) =>
105
126
  (columnData, i) =>
@@ -1,6 +1,7 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
2
  import type { Picture } from '../../model/Picture';
3
3
  import type { IconName } from '../../ui-kit/Icon/IconProps';
4
+ import type { ListOrientation } from '../../model/ListOrientation';
4
5
 
5
6
  /**
6
7
  * @hidden
@@ -81,6 +82,6 @@ export interface ComparisonTableContent {
81
82
  isColoredFirstColumn?: boolean;
82
83
  /** @title Отображать заданное количество строк */
83
84
  visibleRowLength?: number;
84
- /** @title Использовать свайпер (моб.) */
85
- useSwiper?: boolean;
85
+ /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
86
+ useSwiper?: ListOrientation;
86
87
  }
@@ -91,7 +91,6 @@ function renderBlock(
91
91
  if (!(type && type in blocksRegistry)) {
92
92
  console.warn(`No block with "${type}" is registered`);
93
93
  }
94
-
95
94
  const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder;
96
95
  return blockDecorator(
97
96
  {
@@ -0,0 +1,19 @@
1
+ {
2
+ "tabs": [
3
+ {
4
+ "title": "Вкладка 1",
5
+ "description": "Описание",
6
+ "icon": "CardIcon"
7
+ },
8
+ {
9
+ "title": "Вкладка 2",
10
+ "description": "Описание",
11
+ "icon": "ChartSquareIcon"
12
+ },
13
+ {
14
+ "title": "Вкладка 3",
15
+ "description": "Описание",
16
+ "icon": "DiscountShapeIcon"
17
+ }
18
+ ]
19
+ }
@@ -8,6 +8,7 @@ import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl
8
8
  import type { GalleryCard } from './GalleryContent';
9
9
  import { GalleryItem } from './GalleryContent';
10
10
  import type { GalleryProps } from './GalleryProps';
11
+ import type { ListOrientation } from '../../model/ListOrientation';
11
12
 
12
13
  const blockStyle: Record<BlockVersion, string> = {
13
14
  primary: 'bg-white',
@@ -15,7 +16,7 @@ const blockStyle: Record<BlockVersion, string> = {
15
16
  };
16
17
 
17
18
  export const Gallery = JSX<GalleryProps>(
18
- ({ context, title, description, cards = [], className, isScroll = true }) => {
19
+ ({ context, title, description, cards = [], className, useSwiper = 'horizontal' }) => {
19
20
  return (
20
21
  <section
21
22
  className={`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`}
@@ -34,14 +35,14 @@ export const Gallery = JSX<GalleryProps>(
34
35
  </div>
35
36
  ) : null}
36
37
  </div>
37
- {renderCardsLayout(isScroll, cards, context)}
38
+ {renderCardsLayout(useSwiper, cards, context)}
38
39
  </section>
39
40
  );
40
41
  },
41
42
  );
42
43
 
43
- function renderCardsLayout(isScroll: boolean, cards: GalleryCard[], context) {
44
- return isScroll ? (
44
+ function renderCardsLayout(useSwiper: ListOrientation, cards: GalleryCard[], context) {
45
+ return useSwiper === 'horizontal' ? (
45
46
  <SwipeListControl context={context}>{cards?.map(renderCard)}</SwipeListControl>
46
47
  ) : (
47
48
  <div className="grid gap-[14px]">{cards?.map(renderCard)}</div>
@@ -1,16 +1,16 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { BlockVersion } from '../../model/BlockVersion';
3
- import { BlockItem } from '../../ui-kit/BlockItem/BlockItem';
4
2
  import { Button } from '../../ui-kit/Button/Button';
5
3
  import { Icon } from '../../ui-kit/Icon/Icon';
6
4
  import { Img } from '../../ui-kit/Img/Img';
7
- import type { GalleryCard } from './GalleryContent';
5
+ import { List } from '../../ui-kit/List/List';
6
+ import type { GalleryCard, GalleryItem } from './GalleryContent';
7
+ import type { BlockVersion } from '../../model/BlockVersion';
8
8
 
9
9
  export const GalleryCardInner = JSX<GalleryCard>(
10
10
  ({ title, description, image, items, button, version }) => {
11
11
  const titleStyleClasses = getTitleStyle(version, description, items);
12
12
  return (
13
- <div>
13
+ <div className="h-full flex flex-col justify-between">
14
14
  <div>
15
15
  {image?.src ? (
16
16
  <div className="flex justify-center">
@@ -43,21 +43,16 @@ function renderCardTitle(title: string, className: string) {
43
43
  return <div className={`font-medium text-xl m-0 ${className}`}>{title}</div>;
44
44
  }
45
45
 
46
- function renderItems(items, version) {
46
+ function renderItems(items: GalleryItem[], version: BlockVersion = 'primary') {
47
47
  return (
48
- <section className={`max-w-[308px] mt-2`} role="list">
49
- {items
50
- .filter((item) => item?.text)
51
- .map((item, i) => renderItem(item.text as string, i, version))}
52
- </section>
53
- );
54
- }
55
-
56
- function renderItem(item: string, i: number, version?: BlockVersion) {
57
- return (
58
- <BlockItem key={String(i)} version={version ?? 'primary'}>
59
- <span className="text-sm">{item}</span>
60
- </BlockItem>
48
+ <List
49
+ className={`max-w-[308px] mt-2 text-sm ${
50
+ version === 'primary' ? '!text-secondary-text' : ''
51
+ }`}
52
+ itemClassName="mt-1 first:mt-0"
53
+ items={items.filter((item) => item?.text).map((item) => item.text as string)}
54
+ version={version}
55
+ />
61
56
  );
62
57
  }
63
58
 
@@ -1,6 +1,7 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { Picture } from '../../model/Picture';
3
3
  import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
+ import type { ListOrientation } from '../../model/ListOrientation';
4
5
 
5
6
  /**
6
7
  * @title Элемент списка
@@ -41,6 +42,6 @@ export interface GalleryContent {
41
42
  * @minItems 3
42
43
  */
43
44
  cards?: GalleryCard[];
44
- /** @title Горизонтальная прокрутка (для мобильных прокрутка shift+mouseScroll) */
45
- isScroll?: boolean; //TODO: for mobile
45
+ /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
46
+ useSwiper?: ListOrientation; //TODO: for mobile
46
47
  }
@@ -19,7 +19,9 @@ export const LinkDocs = JSX<LinkDocsProps>(
19
19
  hasBorder = true,
20
20
  }) => {
21
21
  return (
22
- <section className={`font-sans text-primary-text py-6 px-4 bg-white ${className}`}>
22
+ <section
23
+ className={`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${className}`}
24
+ >
23
25
  {title ? (
24
26
  <Heading
25
27
  headingType="h2"
@@ -1,6 +1,7 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
2
  import type { IconName } from '../../ui-kit/Icon/IconProps';
3
3
  import type { AlignType } from '../BaseTile/BaseTileProps';
4
+ import type { ListOrientation } from '../../model/ListOrientation';
4
5
 
5
6
  /**
6
7
  * @title Отображение списка
@@ -11,15 +12,6 @@ import type { AlignType } from '../BaseTile/BaseTileProps';
11
12
  */
12
13
  export type LinkColumnsMode = 'single' | 'double';
13
14
 
14
- /**
15
- * @title Отображение списка (моб.)
16
- * @enumNames [
17
- * "Вертикально",
18
- * "Горизонтально",
19
- * ]
20
- */
21
- export type LinkListMode = 'vertical' | 'horizontal';
22
-
23
15
  /**
24
16
  * @title Элемент списка
25
17
  */
@@ -41,7 +33,8 @@ export interface LinkDocsContent {
41
33
  /** @title Список */
42
34
  documents?: LinkDocsItem[];
43
35
  columnsMode?: LinkColumnsMode;
44
- listMode?: LinkListMode; // TODO: мобильный проп
36
+ /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
37
+ listMode?: ListOrientation; // TODO: мобильный проп
45
38
  /** @title Рамка элементов (моб.) */ // TODO: мобильный проп
46
39
  hasBorder?: boolean;
47
40
  align?: AlignType;
@@ -9,6 +9,10 @@ export interface blockItemCommonProps {
9
9
  * @default Список
10
10
  */
11
11
  label?: string;
12
+ /**
13
+ * @title Отображать в раскрытом виде
14
+ */
15
+ isExpanded?: boolean;
12
16
  /** @title Блоки */
13
17
  blocks?: BlockDef[];
14
18
  /**
@@ -17,7 +21,6 @@ export interface blockItemCommonProps {
17
21
  */
18
22
  bordered?: boolean; // TODO: только для мобильной версии
19
23
  columns?: ColumnsCount;
20
- isActive?: boolean;
21
24
  }
22
25
 
23
26
  /**
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useActiveHandler } from './utils/useActiveHandler';
2
+ import { useActiveHandler } from './useActiveHandler';
3
3
  import type { UniBlockProps } from '../../types';
4
4
  import type { blockItemCommonProps } from './OtherProductsContent';
5
5
  import { Icon } from '../../ui-kit/Icon/Icon';
@@ -7,30 +7,32 @@ import { OtherProductsItemInner } from './OtherProductsItemInner';
7
7
 
8
8
  export interface BlockItemProps extends blockItemCommonProps, UniBlockProps {}
9
9
 
10
- export const OtherProductsItem = JSX<BlockItemProps>(({ label, blocks, columns, context }) => {
11
- const { hasContent, icon, handleToggle, isActive } = useActiveHandler({
12
- context,
13
- blocks,
14
- });
10
+ export const OtherProductsItem = JSX<BlockItemProps>(
11
+ ({ label, isExpanded, blocks, columns, context }) => {
12
+ const { hasContent, icon, handleToggle, isActive } = useActiveHandler({
13
+ context,
14
+ blocks,
15
+ initialState: isExpanded,
16
+ });
15
17
 
16
- return (
17
- <div className="border-0 border-b border-solid border-main-divider">
18
- {hasContent ? (
19
- <OtherProductsItemInner
20
- columns={columns}
21
- blocks={blocks}
22
- context={context}
23
- isActive={isActive}
24
- />
25
- ) : null}
26
- <button
27
- className={`border-none bg-primary-main px-0 py-[25px] text-center w-full font-sans text-white text-base
28
- ${hasContent ? 'group cursor-pointer' : ''}`}
29
- onClick={handleToggle}
30
- >
31
- <span className="pr-3">{isActive ? 'Скрыть' : label}</span>
32
- {hasContent ? <Icon name={icon} width="20" height="20" asSVG /> : null}
33
- </button>
34
- </div>
35
- );
36
- });
18
+ return (
19
+ <div className="border-0 border-b border-solid border-main-divider">
20
+ {hasContent ? (
21
+ <OtherProductsItemInner
22
+ isExpanded={isActive}
23
+ columns={columns}
24
+ blocks={blocks}
25
+ context={context}
26
+ />
27
+ ) : null}
28
+ <button
29
+ className="border-none bg-primary-main px-0 py-[26px] w-full font-sans text-white text-base flex justify-center cursor-pointer"
30
+ onClick={handleToggle}
31
+ >
32
+ <span className="pr-3">{isActive ? 'Скрыть' : label}</span>
33
+ {hasContent ? <Icon name={icon} width="20" height="20" asSVG /> : null}
34
+ </button>
35
+ </div>
36
+ );
37
+ },
38
+ );