@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
@@ -8,6 +8,13 @@ import type { ProductTileContent } from '../../components/ProductTile/ProductTil
8
8
  import type { TextBlockContent } from '../../components/TextBlock/TextBlockContent';
9
9
  import type { TileContent } from '../../components/Tile/TileContent';
10
10
  import type { LinkListContent } from '../../components/LinkList/LinkListContent';
11
+ import { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
12
+
13
+ export interface ActiveHandler {
14
+ context: ContentPageContext;
15
+ blocks?: BlockDef[];
16
+ initialState?: boolean;
17
+ }
11
18
 
12
19
  /**
13
20
  * @title Количество колонок
@@ -15,74 +22,65 @@ import type { LinkListContent } from '../../components/LinkList/LinkListContent'
15
22
  */
16
23
  export type ColumnsCount = 1 | 2;
17
24
 
18
- /**
19
- * @title Тип блока
20
- */
21
- export type BlockDefType =
22
- | 'Headline'
23
- | 'LinkDocs'
24
- | 'TextBlock'
25
- | 'PictureText'
26
- | 'Tile'
27
- | 'ProductTile'
28
- | 'ProductBlock'
29
- | 'Gallery'
30
- | 'MiniGallery'
31
- | 'LinkList';
32
-
33
- interface BaseBlockDef {
34
- blockListType: BlockDefType;
35
- }
36
-
37
25
  /**
38
26
  * @title Заголовок
27
+ * @default {"blockListType": "Headline"}
39
28
  */
40
- export type HeadlineBlockListDef = HeadlineContent & BaseBlockDef;
29
+ export type HeadlineBlockListDef = HeadlineContent & { blockListType: 'Headline' };
41
30
 
42
31
  /**
43
32
  * @title Список документов
33
+ * @default {"blockListType": "LinkDocs"}
44
34
  */
45
- export type LinkDocsBlockListDef = LinkDocsContent & BaseBlockDef;
35
+ export type LinkDocsBlockListDef = LinkDocsContent & { blockListType: 'LinkDocs' };
46
36
 
47
37
  /**
48
38
  * @title Текстовый блок
39
+ * @default {"blockListType": "TextBlock"}
49
40
  */
50
- export type TextBlockBlockListDef = TextBlockContent & BaseBlockDef;
41
+ export type TextBlockBlockListDef = TextBlockContent & { blockListType: 'TextBlock' };
51
42
 
52
43
  /**
53
44
  * @title Картинка с текстом
45
+ * @default {"blockListType": "PictureText"}
54
46
  */
55
- export type PictureTextBlockListDef = PictureTextContent & BaseBlockDef;
47
+ export type PictureTextBlockListDef = PictureTextContent & { blockListType: 'PictureText' };
56
48
 
57
49
  /**
58
50
  * @title Продуктовый блок
51
+ * @default {"blockListType": "ProductBlock"}
59
52
  */
60
- export type ProductBlockBlockListDef = ProductBlockContent & BaseBlockDef;
53
+ export type ProductBlockBlockListDef = ProductBlockContent & { blockListType: 'ProductBlock' };
61
54
 
62
55
  /**
63
56
  * @title Плитка
57
+ * @default {"blockListType": "Tile"}
64
58
  */
65
- export type TileBlockListDef = TileContent & BaseBlockDef;
59
+ export type TileBlockListDef = TileContent & { blockListType: 'Tile' };
66
60
 
67
61
  /**
68
62
  * @title Продуктовая плитка
63
+ * @default {"blockListType": "ProductTile"}
69
64
  */
70
- export type ProductTileBlockListDef = ProductTileContent & BaseBlockDef;
65
+ export type ProductTileBlockListDef = ProductTileContent & { blockListType: 'ProductTile' };
71
66
 
72
67
  /**
73
68
  * @title Галлерея
69
+ * @default {"blockListType": "Gallery"}
74
70
  */
75
- export type GalleryBlockListDef = GalleryContent & BaseBlockDef;
71
+ export type GalleryBlockListDef = GalleryContent & { blockListType: 'Gallery' };
76
72
 
77
73
  /**
78
74
  * @title Мини-галлерея
75
+ * @default {"blockListType": "MiniGallery"}
79
76
  */
80
- export type MiniGalleryBlockListDef = MiniGalleryContent & BaseBlockDef;
77
+ export type MiniGalleryBlockListDef = MiniGalleryContent & { blockListType: 'MiniGallery' };
81
78
 
82
79
  /**
83
80
  * @title Список ссылок
81
+ * @default {"blockListType": "LinkList"}
84
82
  */
85
- export type LinkListBlockListDef = LinkListContent & BaseBlockDef;
83
+ export type LinkListBlockListDef = LinkListContent & { blockListType: 'LinkList' };
86
84
 
87
85
  /**
88
86
  * @title Выберите блок
@@ -2,19 +2,27 @@ import type { JSXBlock } from '../../components/ContentPage/ContentPage';
2
2
  import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
3
3
  import type { BlockDef, ColumnsCount } from './BlocksListProps';
4
4
  import { EmbeddableBlocks } from './EmbeddableBlocks';
5
+ import { BlockVersion } from '../../model/BlockVersion';
5
6
 
6
7
  type EmbeddableBlocksProps = {
7
8
  blocks?: BlockDef[];
8
9
  context: ContentPageContext;
9
10
  columns?: ColumnsCount;
10
11
  className?: string;
12
+ version?: BlockVersion;
11
13
  };
12
14
 
13
- export const renderBlocksList = ({ blocks, context, className, columns }: EmbeddableBlocksProps) =>
14
- blocks?.length ? blocks.map(renderBlock({ context, className, columns })) : null;
15
+ export const renderBlocksList = ({
16
+ blocks,
17
+ context,
18
+ className,
19
+ columns,
20
+ version,
21
+ }: EmbeddableBlocksProps) =>
22
+ blocks?.length ? blocks.map(renderBlock({ context, className, columns, version })) : null;
15
23
 
16
24
  export const renderBlock =
17
- ({ context, columns, className }: EmbeddableBlocksProps) =>
25
+ ({ context, columns, className, version }: EmbeddableBlocksProps) =>
18
26
  (block: BlockDef, i: number) => {
19
27
  const type = block?.blockListType;
20
28
  if (!type || !(type in EmbeddableBlocks)) {
@@ -24,7 +32,7 @@ export const renderBlock =
24
32
  const EmbeddedBlock: JSXBlock = EmbeddableBlocks[type];
25
33
  return (
26
34
  <div className={`${className} ${columnsCountClass}`} key={`block_${i}`}>
27
- <EmbeddedBlock context={context} {...block} className="!p-0" />
35
+ <EmbeddedBlock context={context} {...block} blockVersion={version} className="!p-0" />
28
36
  </div>
29
37
  );
30
38
  };
@@ -6,6 +6,7 @@ import { IconTitleMap } from '../../icons/IconName';
6
6
  const svgColorsMap: Record<IconColor, string> = {
7
7
  none: '',
8
8
  primary: 'text-primary-main',
9
+ secondary: 'text-primary-text',
9
10
  };
10
11
 
11
12
  export const Icon = JSX<IconProps>(
@@ -22,7 +23,12 @@ export const Icon = JSX<IconProps>(
22
23
 
23
24
  if (asSVG) {
24
25
  return (
25
- <svg className={`${svgColorsMap[color]} ${className}`} {...imgProps} aria-hidden="true">
26
+ <svg
27
+ className={`${svgColorsMap[color]} ${className}`}
28
+ {...imgProps}
29
+ aria-hidden="true"
30
+ style={color === 'secondary' ? { filter: 'invert(1)' } : null}
31
+ >
26
32
  {title ? <title>{title}</title> : null}
27
33
  {alt ? <desc>{alt}</desc> : null}
28
34
  <use href={`${href}#icon`} xlinkHref={`${href}#icon`} />
@@ -4,9 +4,9 @@ export type { IconName };
4
4
 
5
5
  /**
6
6
  * @title Цвет иконки (svg)
7
- * @enumNames ["Нет", "Основной"]
7
+ * @enumNames ["Нет", "Основной", "Второстепенный"]
8
8
  */
9
- export type IconColor = 'none' | 'primary';
9
+ export type IconColor = 'none' | 'primary' | 'secondary';
10
10
 
11
11
  export interface IconProps {
12
12
  className?: string;
@@ -14,6 +14,9 @@ export const Img = JSX<ImageProps>(
14
14
  height: size?.height ? `${size?.height}px` : '100%',
15
15
  };
16
16
 
17
+ const title = image.title || '';
18
+ const alt = image.alt || title;
19
+
17
20
  return (
18
21
  <picture className={`flex-none ${className}`}>
19
22
  {image.sources?.length
@@ -24,8 +27,8 @@ export const Img = JSX<ImageProps>(
24
27
  <img
25
28
  className={imageClassName}
26
29
  src={image.src}
27
- alt={image.alt || image.title}
28
- title={image.title}
30
+ alt={alt}
31
+ title={title}
29
32
  style={style}
30
33
  {...size}
31
34
  />
@@ -0,0 +1,37 @@
1
+ import '../../setup-fixture';
2
+ import { List } from './List';
3
+
4
+ const items = ['List Item #1', 'List Item #2', 'List Item #3', 'List Item #4'];
5
+
6
+ export default {
7
+ 'primary dotted (default)': (
8
+ <div className="bg-white p-12">
9
+ <List items={items} />
10
+ </div>
11
+ ),
12
+ 'primary w/o dots': (
13
+ <div className="bg-white p-12">
14
+ <List items={items} isDotted={false} />
15
+ </div>
16
+ ),
17
+ 'secondary dotted': (
18
+ <div className="bg-primary-main p-12">
19
+ <List items={items} version="secondary" />
20
+ </div>
21
+ ),
22
+ 'secondary w/o dots': (
23
+ <div className="bg-primary-main p-12">
24
+ <List items={items} version="secondary" isDotted={false} />
25
+ </div>
26
+ ),
27
+ 'gray dotted': (
28
+ <div className="bg-white p-12">
29
+ <List items={items} version="gray" />
30
+ </div>
31
+ ),
32
+ 'gray w/o dots': (
33
+ <div className="bg-white p-12">
34
+ <List items={items} version="gray" isDotted={false} />
35
+ </div>
36
+ ),
37
+ };
@@ -1,12 +1,18 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { ListItem } from './ListItem';
3
- import { ListProps } from './ListProps';
3
+ import type { ListProps, ListItemVersion } from './ListProps';
4
+
5
+ const TEXT_STYLE_MAP: Record<ListItemVersion, string> = {
6
+ primary: 'text-primary-text',
7
+ secondary: 'text-white',
8
+ gray: 'text-secondary-text',
9
+ };
4
10
 
5
11
  export const List = JSX<ListProps>((props) => {
6
- const { className = '', itemClassName, isDotted, items, version } = props;
12
+ const { className = '', itemClassName, isDotted, items, version = 'primary' } = props;
7
13
 
8
14
  return (
9
- <section className={`${className}`} role="list">
15
+ <section className={`${TEXT_STYLE_MAP[version]} ${className}`} role="list">
10
16
  {items?.length
11
17
  ? items.map((_, i) => (
12
18
  <ListItem
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { ListItemVersion } from './ListProps';
2
+ import type { ListItemVersion } from './ListProps';
3
3
 
4
4
  /**
5
5
  * @title Параметры элемента списка
@@ -13,13 +13,7 @@ export interface ListItemProps {
13
13
 
14
14
  const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
15
15
 
16
- const TEXT_STYLE_MAP: Record<ListItemVersion, string> = {
17
- primary: 'text-primary-text',
18
- secondary: 'text-white',
19
- gray: 'text-secondary-text',
20
- };
21
-
22
- const LIST_STYLE_MAP: Record<ListItemVersion, string> = {
16
+ const LIST_DOT_STYLE_MAP: Record<ListItemVersion, string> = {
23
17
  primary: 'bg-primary-main',
24
18
  secondary: 'bg-white',
25
19
  gray: 'bg-secondary-text',
@@ -30,14 +24,13 @@ export const ListItem = JSX<ListItemProps>(
30
24
  return (
31
25
  <div className={`font-sans flex items-start ${className}`} role="listitem">
32
26
  {isDotted && <div className={getListStyle(version)} />}
33
- <span className={`text-m-md ${TEXT_STYLE_MAP[version]}`}>{children}</span>
27
+ <span>{children}</span>
34
28
  </div>
35
29
  );
36
30
  },
37
31
  );
38
32
 
39
33
  const getListStyle = (version: ListItemVersion) => {
40
- const size =
41
- version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
42
- return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
34
+ 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';
35
+ return `${LIST_STYLE_CLASSES} ${LIST_DOT_STYLE_MAP[version]} ${size}`;
43
36
  };
@@ -2,6 +2,7 @@ import type { ListContent } from './ListContent';
2
2
 
3
3
  /**
4
4
  * @title Версия списка
5
+ * @enumNames ["Основной", "Второстепенный", "Серый"]
5
6
  */
6
7
  export type ListItemVersion = 'primary' | 'secondary' | 'gray';
7
8
 
@@ -10,6 +11,7 @@ export type ListItemVersion = 'primary' | 'secondary' | 'gray';
10
11
  */
11
12
  export interface ListProps extends ListContent {
12
13
  className?: string;
14
+ /** @title Буллиты */
13
15
  isDotted?: boolean;
14
16
  version?: ListItemVersion;
15
17
  itemClassName?: string;
@@ -31,7 +31,7 @@ export const SearchBar = JSX<UniBlockProps>(({ className, context }) => {
31
31
  placeholder="some search"
32
32
  />
33
33
  <button
34
- className="visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer"
34
+ className="visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none"
35
35
  onClick={(e) => {
36
36
  e.preventDefault();
37
37
  setTerm('');
@@ -1,9 +0,0 @@
1
- export declare const useActiveHandler: ({ context, blocks }: {
2
- context: any;
3
- blocks: any;
4
- }) => {
5
- isActive: any;
6
- hasContent: any;
7
- icon: "MinusIcon" | "PlusIcon";
8
- handleToggle: (e: MouseEvent) => void;
9
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/useActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;IAEzE,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC;AApBW,QAAA,gBAAgB,oBAoB3B"}
@@ -1,9 +0,0 @@
1
- export declare const useActiveHandler: ({ context, blocks }: {
2
- context: any;
3
- blocks: any;
4
- }) => {
5
- isActive: any;
6
- hasContent: any;
7
- icon: "ArrowDownIcon" | "ArrowUpIcon";
8
- handleToggle: (e: MouseEvent) => void;
9
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/OtherProducts/utils/useActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC;IAElE,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC;IAE7E,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC;AApBW,QAAA,gBAAgB,oBAoB3B"}
@@ -1,2 +0,0 @@
1
- import type { BlockItemProps } from './BlockItemProps';
2
- export declare const BlockItem: (props: import("@redneckz/uni-jsx").PropsWithChildren<BlockItemProps, any>, context?: any) => any;
@@ -1,23 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.BlockItem = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
6
- const TEXT_STYLE_MAP = {
7
- primary: 'text-secondary-text',
8
- secondary: 'text-white',
9
- gray: 'text-secondary-text',
10
- };
11
- const LIST_STYLE_MAP = {
12
- primary: 'bg-primary-main',
13
- secondary: 'bg-white',
14
- gray: 'bg-secondary-text',
15
- };
16
- exports.BlockItem = (0, uni_jsx_1.JSX)(({ className = '', isDotted = true, text, children, version = 'primary' }) => {
17
- return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && (0, jsx_runtime_1.jsx)("div", { className: getListStyle(version) }), (0, jsx_runtime_1.jsx)("span", { className: TEXT_STYLE_MAP[version], children: text || children })] }));
18
- });
19
- const getListStyle = (version) => {
20
- const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
21
- return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
22
- };
23
- //# sourceMappingURL=BlockItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,MAAM,kBAAkB,GAAG,qCAAqC,CAAC;AAEjE,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IAC3E,OAAO,CACL,iCAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,gCAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,iCAAM,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,IAC/D,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAyB,EAAE,EAAE;IACjD,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,21 +0,0 @@
1
- /**
2
- * @title Версия списка
3
- * @enumNames ["Основной", "Второстепенный", "Белый"]
4
- */
5
- export declare type BlockItemVersion = 'primary' | 'secondary' | 'gray';
6
- /**
7
- * @title Содержимое элемента блока
8
- */
9
- export interface BlockItemContent {
10
- /** @title Текст */
11
- text?: string;
12
- }
13
- /**
14
- * @title Параметры элемента блока
15
- */
16
- export interface BlockItemProps extends BlockItemContent {
17
- className?: string;
18
- version?: BlockItemVersion;
19
- /** @title Маркер */
20
- isDotted?: boolean;
21
- }
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=BlockItemProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockItemProps.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItemProps.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- export declare const useActiveHandler: ({ context, blocks }: {
2
- context: any;
3
- blocks: any;
4
- }) => {
5
- isActive: any;
6
- hasContent: any;
7
- icon: "MinusIcon" | "PlusIcon";
8
- handleToggle: (e: MouseEvent) => void;
9
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/useActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;IAEzE,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare const useActiveHandler: ({ context, blocks }: {
2
- context: any;
3
- blocks: any;
4
- }) => {
5
- isActive: any;
6
- hasContent: any;
7
- icon: "ArrowDownIcon" | "ArrowUpIcon";
8
- handleToggle: (e: MouseEvent) => void;
9
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/OtherProducts/utils/useActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC;IAElE,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC;IAE7E,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { BlockItemProps } from './BlockItemProps';
2
- export declare const BlockItem: (props: import("@redneckz/uni-jsx").PropsWithChildren<BlockItemProps, any>, context?: any) => any;
@@ -1,8 +0,0 @@
1
- import '../../setup-fixture';
2
- declare const _default: {
3
- primary: any;
4
- 'primary without dot': any;
5
- secondary: any;
6
- 'secondary without dot': any;
7
- };
8
- export default _default;
@@ -1,21 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
4
- const TEXT_STYLE_MAP = {
5
- primary: 'text-secondary-text',
6
- secondary: 'text-white',
7
- gray: 'text-secondary-text',
8
- };
9
- const LIST_STYLE_MAP = {
10
- primary: 'bg-primary-main',
11
- secondary: 'bg-white',
12
- gray: 'bg-secondary-text',
13
- };
14
- export const BlockItem = JSX(({ className = '', isDotted = true, text, 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_STYLE_MAP[version], children: text || children })] }));
16
- });
17
- 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}`;
20
- };
21
- //# sourceMappingURL=BlockItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,MAAM,kBAAkB,GAAG,qCAAqC,CAAC;AAEjE,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IAC3E,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,cAAc,CAAC,OAAO,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,IAC/D,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAyB,EAAE,EAAE;IACjD,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,21 +0,0 @@
1
- /**
2
- * @title Версия списка
3
- * @enumNames ["Основной", "Второстепенный", "Белый"]
4
- */
5
- export declare type BlockItemVersion = 'primary' | 'secondary' | 'gray';
6
- /**
7
- * @title Содержимое элемента блока
8
- */
9
- export interface BlockItemContent {
10
- /** @title Текст */
11
- text?: string;
12
- }
13
- /**
14
- * @title Параметры элемента блока
15
- */
16
- export interface BlockItemProps extends BlockItemContent {
17
- className?: string;
18
- version?: BlockItemVersion;
19
- /** @title Маркер */
20
- isDotted?: boolean;
21
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=BlockItemProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockItemProps.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItemProps.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- export declare const useActiveHandler: ({ context, blocks }: {
2
- context: any;
3
- blocks: any;
4
- }) => {
5
- isActive: any;
6
- hasContent: any;
7
- icon: "MinusIcon" | "PlusIcon";
8
- handleToggle: (e: MouseEvent) => void;
9
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/useActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3D,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,WAAW,CAAC;IAEzE,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC;AApBW,QAAA,gBAAgB,oBAoB3B"}
@@ -1,9 +0,0 @@
1
- export declare const useActiveHandler: ({ context, blocks }: {
2
- context: any;
3
- blocks: any;
4
- }) => {
5
- isActive: any;
6
- hasContent: any;
7
- icon: "ArrowDownIcon" | "ArrowUpIcon";
8
- handleToggle: (e: MouseEvent) => void;
9
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"useActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/OtherProducts/utils/useActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,CAAC;IAClC,MAAM,IAAI,GAAa,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,CAAC;IAElE,MAAM,eAAe,GAAG,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC;IAE7E,MAAM,YAAY,GAAG,CAAC,CAAa,EAAE,EAAE;QACrC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO;SACR;QAED,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;QACvB,MAAM,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QACxC,YAAY,CAAC,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS;YACzD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,IAAI,CAAC;IACvC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtD,CAAC,CAAC;AApBW,QAAA,gBAAgB,oBAoB3B"}
@@ -1,2 +0,0 @@
1
- import type { BlockItemProps } from './BlockItemProps';
2
- export declare const BlockItem: (props: import("@redneckz/uni-jsx").PropsWithChildren<BlockItemProps, any>, context?: any) => any;
@@ -1,23 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.BlockItem = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const LIST_STYLE_CLASSES = 'rounded-full inline-block mr-3 mt-2';
6
- const TEXT_STYLE_MAP = {
7
- primary: 'text-secondary-text',
8
- secondary: 'text-white',
9
- gray: 'text-secondary-text',
10
- };
11
- const LIST_STYLE_MAP = {
12
- primary: 'bg-primary-main',
13
- secondary: 'bg-white',
14
- gray: 'bg-secondary-text',
15
- };
16
- exports.BlockItem = (0, uni_jsx_1.JSX)(({ className = '', isDotted = true, text, children, version = 'primary' }) => {
17
- return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted && (0, jsx_runtime_1.jsx)("div", { className: getListStyle(version) }), (0, jsx_runtime_1.jsx)("span", { className: TEXT_STYLE_MAP[version], children: text || children })] }));
18
- });
19
- const getListStyle = (version) => {
20
- const size = version === 'gray' ? 'w-[6px] h-[6px] min-w-[6px] min-h-[6px]' : 'w-2 h-2 min-w-2 min-h-2';
21
- return `${LIST_STYLE_CLASSES} ${LIST_STYLE_MAP[version]} ${size}`;
22
- };
23
- //# sourceMappingURL=BlockItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,MAAM,kBAAkB,GAAG,qCAAqC,CAAC;AAEjE,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;CAC5B,CAAC;AAEF,MAAM,cAAc,GAAqC;IACvD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,mBAAmB;CAC1B,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IAC3E,OAAO,CACL,iCAAK,SAAS,EAAE,8BAA8B,SAAS,EAAE,EAAE,IAAI,EAAC,UAAU,aACvE,QAAQ,IAAI,gCAAK,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,GAAI,EACtD,iCAAM,SAAS,EAAE,cAAc,CAAC,OAAO,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,IAC/D,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,OAAyB,EAAE,EAAE;IACjD,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,21 +0,0 @@
1
- /**
2
- * @title Версия списка
3
- * @enumNames ["Основной", "Второстепенный", "Белый"]
4
- */
5
- export declare type BlockItemVersion = 'primary' | 'secondary' | 'gray';
6
- /**
7
- * @title Содержимое элемента блока
8
- */
9
- export interface BlockItemContent {
10
- /** @title Текст */
11
- text?: string;
12
- }
13
- /**
14
- * @title Параметры элемента блока
15
- */
16
- export interface BlockItemProps extends BlockItemContent {
17
- className?: string;
18
- version?: BlockItemVersion;
19
- /** @title Маркер */
20
- isDotted?: boolean;
21
- }
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=BlockItemProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockItemProps.js","sourceRoot":"","sources":["../../../src/ui-kit/BlockItem/BlockItemProps.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- export declare const useActiveHandler: ({ context, blocks }: {
2
- context: any;
3
- blocks: any;
4
- }) => {
5
- isActive: any;
6
- hasContent: any;
7
- icon: "MinusIcon" | "PlusIcon";
8
- handleToggle: (e: MouseEvent) => void;
9
- };