@redneckz/wildless-cms-uni-blocks 0.3.18 → 0.3.21

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 (298) hide show
  1. package/README.md +43 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +93 -19
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/cosmos-static/icons/ArrowDownIcon.svg +1 -0
  6. package/cosmos-static/icons/ArrowUpIcon.svg +1 -0
  7. package/cosmos-static/icons/ArrowsRewindRight.svg +1 -0
  8. package/dist/components/Accordion/AccordionContent.d.ts +2 -72
  9. package/dist/components/Accordion/AccordionItem.js +2 -2
  10. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  11. package/dist/components/Accordion/AccordionItem.mobile.js +2 -2
  12. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  13. package/dist/components/Accordion/AccordionItemInner.js +3 -11
  14. package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  15. package/dist/components/Accordion/AccordionItemInner.mobile.js +4 -10
  16. package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  17. package/{lib/components/Accordion/utils/isActiveHandler.d.ts → dist/components/Accordion/utils/useActiveHandler.d.ts} +1 -1
  18. package/{mobile/dist/components/Accordion/utils/isActiveHandler.js → dist/components/Accordion/utils/useActiveHandler.js} +4 -4
  19. package/dist/components/Accordion/utils/useActiveHandler.js.map +1 -0
  20. package/dist/components/BaseTile/BaseTile.js +1 -1
  21. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  22. package/dist/components/Blocks.d.ts +2 -0
  23. package/dist/components/Blocks.js +4 -0
  24. package/dist/components/Blocks.js.map +1 -1
  25. package/dist/components/OtherProducts/OtherProducts.d.ts +5 -0
  26. package/dist/components/OtherProducts/OtherProducts.js +9 -0
  27. package/dist/components/OtherProducts/OtherProducts.js.map +1 -0
  28. package/dist/components/OtherProducts/OtherProductsContent.d.ts +36 -0
  29. package/dist/components/OtherProducts/OtherProductsContent.js +2 -0
  30. package/dist/components/OtherProducts/OtherProductsContent.js.map +1 -0
  31. package/dist/components/OtherProducts/OtherProductsItem.d.ts +5 -0
  32. package/dist/components/OtherProducts/OtherProductsItem.js +16 -0
  33. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -0
  34. package/dist/components/OtherProducts/OtherProductsItemInner.d.ts +2 -0
  35. package/dist/components/OtherProducts/OtherProductsItemInner.js +10 -0
  36. package/dist/components/OtherProducts/OtherProductsItemInner.js.map +1 -0
  37. package/dist/components/OtherProducts/utils/useActiveHandler.d.ts +9 -0
  38. package/dist/components/OtherProducts/utils/useActiveHandler.js +21 -0
  39. package/dist/components/OtherProducts/utils/useActiveHandler.js.map +1 -0
  40. package/dist/components/ProductBlock/ProductBlockContent.d.ts +7 -1
  41. package/dist/components/ProductBlock/ProductBlockInner.js +9 -2
  42. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  43. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  44. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +5 -0
  45. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +32 -0
  46. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -0
  47. package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +30 -0
  48. package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js +2 -0
  49. package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +1 -0
  50. package/dist/icons/IconName.d.ts +5 -2
  51. package/dist/icons/IconName.js +4 -0
  52. package/dist/icons/IconName.js.map +1 -1
  53. package/dist/ui-kit/BlocksList/BlocksListProps.d.ts +71 -0
  54. package/dist/ui-kit/BlocksList/BlocksListProps.js +2 -0
  55. package/dist/ui-kit/BlocksList/BlocksListProps.js.map +1 -0
  56. package/dist/ui-kit/BlocksList/EmbeddableBlocks.d.ts +12 -0
  57. package/dist/ui-kit/BlocksList/EmbeddableBlocks.js +25 -0
  58. package/dist/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -0
  59. package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +11 -0
  60. package/dist/ui-kit/BlocksList/renderBlocksList.js +17 -0
  61. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -0
  62. package/dist/ui-kit/Heading/Heading.js +2 -2
  63. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  64. package/lib/common.css +1 -1
  65. package/lib/components/Accordion/Accordion.fixture.d.ts +0 -1
  66. package/lib/components/Accordion/AccordionContent.d.ts +2 -72
  67. package/lib/components/Accordion/AccordionItem.js +2 -2
  68. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  69. package/lib/components/Accordion/AccordionItem.mobile.js +2 -2
  70. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  71. package/lib/components/Accordion/AccordionItemInner.js +3 -11
  72. package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  73. package/lib/components/Accordion/AccordionItemInner.mobile.js +4 -10
  74. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  75. package/{mobile/dist/components/Accordion/utils/isActiveHandler.d.ts → lib/components/Accordion/utils/useActiveHandler.d.ts} +1 -1
  76. package/{mobile/lib/components/Accordion/utils/isActiveHandler.js → lib/components/Accordion/utils/useActiveHandler.js} +2 -2
  77. package/lib/components/Accordion/utils/useActiveHandler.js.map +1 -0
  78. package/lib/components/BaseTile/BaseTile.js +1 -1
  79. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  80. package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -1
  81. package/lib/components/Blocks.d.ts +2 -0
  82. package/lib/components/Blocks.js +4 -0
  83. package/lib/components/Blocks.js.map +1 -1
  84. package/lib/components/OtherProducts/OtherProducts.d.ts +5 -0
  85. package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +5 -0
  86. package/lib/components/OtherProducts/OtherProducts.js +7 -0
  87. package/lib/components/OtherProducts/OtherProducts.js.map +1 -0
  88. package/lib/components/OtherProducts/OtherProductsContent.d.ts +36 -0
  89. package/lib/components/OtherProducts/OtherProductsContent.js +2 -0
  90. package/lib/components/OtherProducts/OtherProductsContent.js.map +1 -0
  91. package/lib/components/OtherProducts/OtherProductsItem.d.ts +5 -0
  92. package/lib/components/OtherProducts/OtherProductsItem.js +14 -0
  93. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -0
  94. package/lib/components/OtherProducts/OtherProductsItemInner.d.ts +2 -0
  95. package/lib/components/OtherProducts/OtherProductsItemInner.js +8 -0
  96. package/lib/components/OtherProducts/OtherProductsItemInner.js.map +1 -0
  97. package/lib/components/OtherProducts/utils/useActiveHandler.d.ts +9 -0
  98. package/lib/components/OtherProducts/utils/useActiveHandler.js +18 -0
  99. package/lib/components/OtherProducts/utils/useActiveHandler.js.map +1 -0
  100. package/lib/components/ProductBlock/ProductBlockContent.d.ts +7 -1
  101. package/lib/components/ProductBlock/ProductBlockInner.js +9 -2
  102. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  103. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  104. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +5 -0
  105. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.fixture.d.ts +4 -0
  106. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +30 -0
  107. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -0
  108. package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +30 -0
  109. package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js +2 -0
  110. package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +1 -0
  111. package/lib/icons/IconName.d.ts +5 -2
  112. package/lib/icons/IconName.js +4 -0
  113. package/lib/icons/IconName.js.map +1 -1
  114. package/lib/ui-kit/BlocksList/BlocksListProps.d.ts +71 -0
  115. package/lib/ui-kit/BlocksList/BlocksListProps.js +2 -0
  116. package/lib/ui-kit/BlocksList/BlocksListProps.js.map +1 -0
  117. package/lib/ui-kit/BlocksList/EmbeddableBlocks.d.ts +12 -0
  118. package/lib/ui-kit/BlocksList/EmbeddableBlocks.js +23 -0
  119. package/lib/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -0
  120. package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +11 -0
  121. package/lib/ui-kit/BlocksList/renderBlocksList.js +13 -0
  122. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -0
  123. package/lib/ui-kit/Heading/Heading.js +2 -2
  124. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  125. package/mobile/bundle/bundle.umd.js +17 -12
  126. package/mobile/bundle/bundle.umd.min.js +1 -1
  127. package/mobile/dist/components/Accordion/AccordionContent.d.ts +2 -72
  128. package/mobile/dist/components/Accordion/AccordionItem.js +2 -2
  129. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  130. package/mobile/dist/components/Accordion/AccordionItemInner.js +4 -10
  131. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  132. package/mobile/{lib/components/Accordion/utils/isActiveHandler.d.ts → dist/components/Accordion/utils/useActiveHandler.d.ts} +1 -1
  133. package/{dist/components/Accordion/utils/isActiveHandler.js → mobile/dist/components/Accordion/utils/useActiveHandler.js} +4 -4
  134. package/mobile/dist/components/Accordion/utils/useActiveHandler.js.map +1 -0
  135. package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
  136. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  137. package/mobile/dist/components/OtherProducts/OtherProducts.d.ts +5 -0
  138. package/mobile/dist/components/OtherProducts/OtherProducts.js +9 -0
  139. package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -0
  140. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +36 -0
  141. package/mobile/dist/components/OtherProducts/OtherProductsContent.js +2 -0
  142. package/mobile/dist/components/OtherProducts/OtherProductsContent.js.map +1 -0
  143. package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +5 -0
  144. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +16 -0
  145. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -0
  146. package/mobile/dist/components/OtherProducts/OtherProductsItemInner.d.ts +2 -0
  147. package/mobile/dist/components/OtherProducts/OtherProductsItemInner.js +10 -0
  148. package/mobile/dist/components/OtherProducts/OtherProductsItemInner.js.map +1 -0
  149. package/mobile/dist/components/OtherProducts/utils/useActiveHandler.d.ts +9 -0
  150. package/mobile/dist/components/OtherProducts/utils/useActiveHandler.js +21 -0
  151. package/mobile/dist/components/OtherProducts/utils/useActiveHandler.js.map +1 -0
  152. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +7 -1
  153. package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  154. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +5 -0
  155. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +32 -0
  156. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -0
  157. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +30 -0
  158. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js +2 -0
  159. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +1 -0
  160. package/mobile/dist/icons/IconName.d.ts +5 -2
  161. package/mobile/dist/icons/IconName.js +4 -0
  162. package/mobile/dist/icons/IconName.js.map +1 -1
  163. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.d.ts +71 -0
  164. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.js +2 -0
  165. package/mobile/dist/ui-kit/BlocksList/BlocksListProps.js.map +1 -0
  166. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.d.ts +12 -0
  167. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js +25 -0
  168. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -0
  169. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +11 -0
  170. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +17 -0
  171. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -0
  172. package/mobile/lib/components/Accordion/AccordionContent.d.ts +2 -72
  173. package/mobile/lib/components/Accordion/AccordionItem.js +2 -2
  174. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  175. package/mobile/lib/components/Accordion/AccordionItemInner.js +4 -10
  176. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  177. package/{dist/components/Accordion/utils/isActiveHandler.d.ts → mobile/lib/components/Accordion/utils/useActiveHandler.d.ts} +1 -1
  178. package/{lib/components/Accordion/utils/isActiveHandler.js → mobile/lib/components/Accordion/utils/useActiveHandler.js} +2 -2
  179. package/mobile/lib/components/Accordion/utils/useActiveHandler.js.map +1 -0
  180. package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
  181. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  182. package/mobile/lib/components/OtherProducts/OtherProducts.d.ts +5 -0
  183. package/mobile/lib/components/OtherProducts/OtherProducts.js +7 -0
  184. package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -0
  185. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +36 -0
  186. package/mobile/lib/components/OtherProducts/OtherProductsContent.js +2 -0
  187. package/mobile/lib/components/OtherProducts/OtherProductsContent.js.map +1 -0
  188. package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +5 -0
  189. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +14 -0
  190. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -0
  191. package/mobile/lib/components/OtherProducts/OtherProductsItemInner.d.ts +2 -0
  192. package/mobile/lib/components/OtherProducts/OtherProductsItemInner.js +8 -0
  193. package/mobile/lib/components/OtherProducts/OtherProductsItemInner.js.map +1 -0
  194. package/mobile/lib/components/OtherProducts/utils/useActiveHandler.d.ts +9 -0
  195. package/mobile/lib/components/OtherProducts/utils/useActiveHandler.js +18 -0
  196. package/mobile/lib/components/OtherProducts/utils/useActiveHandler.js.map +1 -0
  197. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +7 -1
  198. package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  199. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +5 -0
  200. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +30 -0
  201. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -0
  202. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +30 -0
  203. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js +2 -0
  204. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +1 -0
  205. package/mobile/lib/icons/IconName.d.ts +5 -2
  206. package/mobile/lib/icons/IconName.js +4 -0
  207. package/mobile/lib/icons/IconName.js.map +1 -1
  208. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.d.ts +71 -0
  209. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.js +2 -0
  210. package/mobile/lib/ui-kit/BlocksList/BlocksListProps.js.map +1 -0
  211. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.d.ts +12 -0
  212. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js +23 -0
  213. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -0
  214. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +11 -0
  215. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +13 -0
  216. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -0
  217. package/mobile/src/common.css +0 -30
  218. package/mobile/src/components/Accordion/Accordion.example.json +6 -6
  219. package/mobile/src/components/Accordion/AccordionContent.ts +2 -108
  220. package/mobile/src/components/Accordion/AccordionItem.tsx +2 -2
  221. package/mobile/src/components/Accordion/AccordionItemInner.tsx +4 -19
  222. package/mobile/src/components/Accordion/utils/{isActiveHandler.ts → useActiveHandler.ts} +1 -1
  223. package/mobile/src/components/BaseTile/BaseTile.tsx +1 -1
  224. package/mobile/src/components/OtherProducts/OtherProducts.example.json +50 -0
  225. package/mobile/src/components/OtherProducts/OtherProducts.tsx +20 -0
  226. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +38 -0
  227. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +36 -0
  228. package/mobile/src/components/OtherProducts/OtherProductsItemInner.tsx +14 -0
  229. package/mobile/src/components/OtherProducts/utils/useActiveHandler.ts +23 -0
  230. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +7 -1
  231. package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
  232. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +22 -0
  233. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +98 -0
  234. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +32 -0
  235. package/mobile/src/components/Tile/Tile.example.json +1 -3
  236. package/mobile/src/icons/ArrowDownIcon.svg +4 -0
  237. package/mobile/src/icons/ArrowUpIcon.svg +4 -0
  238. package/mobile/src/icons/ArrowsRewindRight.svg +16 -0
  239. package/mobile/src/icons/IconName.ts +4 -3
  240. package/mobile/src/ui-kit/BlocksList/BlocksListProps.ts +106 -0
  241. package/mobile/src/ui-kit/BlocksList/EmbeddableBlocks.tsx +23 -0
  242. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +30 -0
  243. package/package.json +1 -1
  244. package/src/common.css +0 -30
  245. package/src/components/Accordion/Accordion.example.json +6 -6
  246. package/src/components/Accordion/Accordion.fixture.mobile.tsx +13 -13
  247. package/src/components/Accordion/Accordion.fixture.tsx +28 -93
  248. package/src/components/Accordion/AccordionContent.ts +2 -108
  249. package/src/components/Accordion/AccordionItem.mobile.tsx +2 -2
  250. package/src/components/Accordion/AccordionItem.tsx +2 -2
  251. package/src/components/Accordion/AccordionItemInner.mobile.tsx +4 -19
  252. package/src/components/Accordion/AccordionItemInner.tsx +4 -25
  253. package/src/components/Accordion/utils/{isActiveHandler.ts → useActiveHandler.ts} +1 -1
  254. package/src/components/BaseTile/BaseTile.tsx +1 -1
  255. package/src/components/Blocks.ts +4 -0
  256. package/src/components/OtherProducts/OtherProducts.example.json +50 -0
  257. package/src/components/OtherProducts/OtherProducts.fixture.tsx +137 -0
  258. package/src/components/OtherProducts/OtherProducts.tsx +20 -0
  259. package/src/components/OtherProducts/OtherProductsContent.ts +38 -0
  260. package/src/components/OtherProducts/OtherProductsItem.tsx +36 -0
  261. package/src/components/OtherProducts/OtherProductsItemInner.tsx +14 -0
  262. package/src/components/OtherProducts/utils/useActiveHandler.ts +23 -0
  263. package/src/components/ProductBlock/ProductBlockContent.ts +7 -1
  264. package/src/components/ProductBlock/ProductBlockInner.tsx +23 -15
  265. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +2 -2
  266. package/src/components/ProductGallery/ProductGallery.fixture.tsx +4 -4
  267. package/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
  268. package/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +22 -0
  269. package/src/components/ProductGalleryGreen/ProductGalleryGreen.fixture.tsx +114 -0
  270. package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +98 -0
  271. package/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +32 -0
  272. package/src/components/Tile/Tile.example.json +1 -3
  273. package/src/icons/ArrowDownIcon.svg +4 -0
  274. package/src/icons/ArrowUpIcon.svg +4 -0
  275. package/src/icons/ArrowsRewindRight.svg +16 -0
  276. package/src/icons/IconName.ts +154 -4
  277. package/src/ui-kit/BlocksList/BlocksListProps.ts +106 -0
  278. package/src/ui-kit/BlocksList/EmbeddableBlocks.tsx +23 -0
  279. package/src/ui-kit/BlocksList/renderBlocksList.tsx +30 -0
  280. package/src/ui-kit/Heading/Heading.tsx +2 -2
  281. package/dist/components/Accordion/AccordionBlocks.d.ts +0 -12
  282. package/dist/components/Accordion/AccordionBlocks.js +0 -25
  283. package/dist/components/Accordion/AccordionBlocks.js.map +0 -1
  284. package/dist/components/Accordion/utils/isActiveHandler.js.map +0 -1
  285. package/lib/components/Accordion/AccordionBlocks.d.ts +0 -12
  286. package/lib/components/Accordion/AccordionBlocks.js +0 -23
  287. package/lib/components/Accordion/AccordionBlocks.js.map +0 -1
  288. package/lib/components/Accordion/utils/isActiveHandler.js.map +0 -1
  289. package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +0 -12
  290. package/mobile/dist/components/Accordion/AccordionBlocks.js +0 -25
  291. package/mobile/dist/components/Accordion/AccordionBlocks.js.map +0 -1
  292. package/mobile/dist/components/Accordion/utils/isActiveHandler.js.map +0 -1
  293. package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +0 -12
  294. package/mobile/lib/components/Accordion/AccordionBlocks.js +0 -23
  295. package/mobile/lib/components/Accordion/AccordionBlocks.js.map +0 -1
  296. package/mobile/lib/components/Accordion/utils/isActiveHandler.js.map +0 -1
  297. package/mobile/src/components/Accordion/AccordionBlocks.tsx +0 -23
  298. package/src/components/Accordion/AccordionBlocks.tsx +0 -23
@@ -0,0 +1,98 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../types';
3
+ import { Icon } from '../../ui-kit/Icon/Icon';
4
+ import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
5
+ import { ProductBlockInner } from '../ProductBlock/ProductBlockInner';
6
+ import type { ProductGalleryGreenContent } from './ProductGalleryGreenContent';
7
+
8
+ export interface ProductGalleryProps extends ProductGalleryGreenContent, UniBlockProps {}
9
+
10
+ export const ProductGalleryGreen = JSX<ProductGalleryProps>(
11
+ ({ className = '', context, slides = [] }) => {
12
+ const galleryNav = slides.map((s) => s.nav);
13
+ const galleryBlocks = slides.map((s) => s.productBlock);
14
+ const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
15
+
16
+ return (
17
+ <section
18
+ className={`box-border pt-[70px] relative font-sans overflow-hidden bg-primary-main w-100 ${className}`}
19
+ >
20
+ <div
21
+ className="flex duration-1000 pb-14"
22
+ style={{ transform: `translateX(-${activeSlideIndex}00%)` }}
23
+ role="list"
24
+ >
25
+ {galleryBlocks.map((_, i) => renderProductBlock(_, i, context))}
26
+ </div>
27
+
28
+ <div className="flex items-center absolute bottom-6 left-0 right-0 px-9 box-border">
29
+ {galleryNav.map((slide, i) =>
30
+ renderNavButton({
31
+ slide,
32
+ i,
33
+ activeSlideIndex,
34
+ onClick: () => setActiveSlideIndex(i),
35
+ }),
36
+ )}
37
+ </div>
38
+ </section>
39
+ );
40
+ },
41
+ );
42
+
43
+ function renderProductBlock(block: ProductBlockInnerContent, i: number, context) {
44
+ return (
45
+ <section
46
+ key={String(i)}
47
+ className="box-border relative flex grow-0 shrink-0 basis-full px-9"
48
+ role="listitem"
49
+ >
50
+ <div className="flex grow">
51
+ {block.backgroundText ? (
52
+ <div className="absolute text-[454px] font-bold text-white tracking-[-10px] leading-[299px] opacity-[.1] right-12 top-20 z-0">
53
+ {block.backgroundText}
54
+ </div>
55
+ ) : null}
56
+ <ProductBlockInner
57
+ className="pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem] z-[1]"
58
+ context={context}
59
+ textBlockClassName="mb-[154px]"
60
+ version="secondary"
61
+ {...block}
62
+ />
63
+ <Icon
64
+ className="absolute right-[460px] top-[200px] z-0 mb-4"
65
+ name="ArrowsRewindRight"
66
+ width="230"
67
+ height="187"
68
+ />
69
+ </div>
70
+ </section>
71
+ );
72
+ }
73
+
74
+ function renderNavButton({ slide, i, activeSlideIndex, onClick }) {
75
+ const isActiveBtn = i === activeSlideIndex;
76
+ const btnClassName = isActiveBtn
77
+ ? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] max-w-[354px] p-0'
78
+ : 'bg-white/10 min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300';
79
+ const btnTitleClassName = isActiveBtn ? 'text-primary-text' : 'text-white';
80
+ const btnDescClassName = isActiveBtn ? 'text-secondary-text' : 'text-white';
81
+
82
+ return (
83
+ <button
84
+ type="button"
85
+ key={String(i)}
86
+ onClick={onClick}
87
+ aria-label={slide?.title}
88
+ className={`box-border font-sans group relative overflow-hidden border-white/50 border-[1px] cursor-pointer text-left mb-6a mx-1 grow basis-0 backdrop-blur-sm
89
+ ${btnClassName}
90
+ `}
91
+ >
92
+ <div className="border-0 px-6">
93
+ <div className={`text-sm font-medium pb-[3px] ${btnTitleClassName}`}>{slide?.title}</div>
94
+ <div className={`text-xs text-secondary-text ${btnDescClassName}`}>{slide.description}</div>
95
+ </div>
96
+ </button>
97
+ );
98
+ }
@@ -0,0 +1,32 @@
1
+ import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
2
+
3
+ /** @title Кнопка под слайдом */
4
+ interface ProductGalleryNav {
5
+ /** @title Заголовок */
6
+ title: string;
7
+ /** @title Описание */
8
+ description: string;
9
+ }
10
+
11
+ /**
12
+ * @title Слайд
13
+ */
14
+ export interface ProductSlide {
15
+ /** @title Превью содержимого слайда на навигации */
16
+ nav?: ProductGalleryNav;
17
+ /** @title Содержимое слайда */
18
+ productBlock: ProductBlockInnerContent;
19
+ }
20
+
21
+ /**
22
+ * @title Продуктовая галерея
23
+ */
24
+ export interface ProductGalleryGreenContent {
25
+ /**
26
+ * @title Задержка
27
+ * @hidden //! temporary not used
28
+ */
29
+ duration?: number;
30
+ /** @title Слайды */
31
+ slides?: ProductSlide[];
32
+ }
@@ -6,9 +6,7 @@
6
6
  "format": "webp",
7
7
  "size": {
8
8
  "width": 300
9
- },
10
- "alt": "Описание картинки",
11
- "title": "Подсказка"
9
+ }
12
10
  },
13
11
  "items": ["Пункт 1", "Пункт 2", "Пункт 3"],
14
12
  "buttons": [
@@ -0,0 +1,4 @@
1
+ <svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.8416 10.709L11.6582 12.8923C11.0166 13.534 9.96657 13.534 9.3249 12.8923L3.8999 7.45898" stroke="white" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M17.1001 7.45898L16.2334 8.32565" stroke="white" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.3416 9.29163L11.1582 7.10829C10.5166 6.46662 9.46657 6.46662 8.8249 7.10829L3.3999 12.5416" stroke="white" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M16.6001 12.5416L15.7334 11.675" stroke="white" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -0,0 +1,16 @@
1
+ <svg viewBox="0 0 230 187" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g filter="url(#filter0_d_7050_138706)">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M92.24 52.16L14 104.32V0L92.24 52.16ZM216.119 52.16L137.879 104.32V0L216.119 52.16Z" fill="white"/>
4
+ </g>
5
+ <defs>
6
+ <filter id="filter0_d_7050_138706" x="0.959999" y="0" width="228.199" height="186.907" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
7
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
8
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
9
+ <feOffset dy="69.5467"/>
10
+ <feGaussianBlur stdDeviation="6.52"/>
11
+ <feColorMatrix type="matrix" values="0 0 0 0 0.0196078 0 0 0 0 0.0117647 0 0 0 0 0.0156863 0 0 0 0.1 0"/>
12
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_7050_138706"/>
13
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_7050_138706" result="shape"/>
14
+ </filter>
15
+ </defs>
16
+ </svg>
@@ -1,8 +1,82 @@
1
-
2
1
  // Generated. Do not touch
2
+ /* eslint-disable max-lines */
3
3
 
4
4
  export enum IconMap {
5
- ActualBalanceIcon = "ActualBalanceIcon", AppleIcon = "AppleIcon", AtmIcon = "AtmIcon", BankIcon = "BankIcon", BurgerIcon = "BurgerIcon", BurgerIconWhite = "BurgerIconWhite", Calendar2Icon = "Calendar2Icon", CalendarCircleIcon = "CalendarCircleIcon", CalendarIcon = "CalendarIcon", CalendarTickIcon = "CalendarTickIcon", CalendarWhiteIcon = "CalendarWhiteIcon", CardIcon = "CardIcon", CardPosIcon = "CardPosIcon", CardTickIcon = "CardTickIcon", CardWithGemIcon = "CardWithGemIcon", ChartSquareIcon = "ChartSquareIcon", ClockIcon = "ClockIcon", CloseIcon = "CloseIcon", ComfortableCompIcon = "ComfortableCompIcon", CreditCardsIcon = "CreditCardsIcon", DiscountShapeIcon = "DiscountShapeIcon", DocIcon = "DocIcon", DocIconMonoColor = "DocIconMonoColor", DocumentTextIcon = "DocumentTextIcon", DollarIcon = "DollarIcon", EarthIcon = "EarthIcon", EmptyWalletChangeIcon = "EmptyWalletChangeIcon", EmptyWalletIcon = "EmptyWalletIcon", EmptyWalletWhiteIcon = "EmptyWalletWhiteIcon", EuroIcon = "EuroIcon", GeolocationIcon = "GeolocationIcon", GlassIcon = "GlassIcon", GlobalIcon = "GlobalIcon", GpsIcon = "GpsIcon", GridIcon = "GridIcon", GridIconWhite = "GridIconWhite", InterestGrowthIcon = "InterestGrowthIcon", InterestIcon = "InterestIcon", JCBIcon = "JCBIcon", LoupeIcon = "LoupeIcon", MasterCardIcon = "MasterCardIcon", MinusIcon = "MinusIcon", MirIcon = "MirIcon", MoneyIcon = "MoneyIcon", MoneyInsuranceIcon = "MoneyInsuranceIcon", MonitorMobileIcon = "MonitorMobileIcon", NewDocIcon = "NewDocIcon", OfficeIcon = "OfficeIcon", OkIcon = "OkIcon", PassSendIcon = "PassSendIcon", PercentageRoundIcon = "PercentageRoundIcon", PercentageSquareIcon = "PercentageSquareIcon", PercentageSquareWhiteIcon = "PercentageSquareWhiteIcon", PersonalCardIcon = "PersonalCardIcon", PlayMarketIcon = "PlayMarketIcon", PlusIcon = "PlusIcon", Profile2UserIcon = "Profile2UserIcon", ProfileIcon = "ProfileIcon", RoundRubleIcon = "RoundRubleIcon", SafeIcon = "SafeIcon", ShieldTickIcon = "ShieldTickIcon", SignDocsIcon = "SignDocsIcon", SmallClockIcon = "SmallClockIcon", TelegramIcon = "TelegramIcon", UnionPayIcon = "UnionPayIcon", UserTickIcon = "UserTickIcon", VisaIcon = "VisaIcon", VKIcon = "VKIcon", WalletAdd2Icon = "WalletAdd2Icon", WalletAddIcon = "WalletAddIcon", WalletIcon = "WalletIcon", WalletWithMoneyIcon = "WalletWithMoneyIcon"
5
+ ActualBalanceIcon = 'ActualBalanceIcon',
6
+ AppleIcon = 'AppleIcon',
7
+ ArrowDownIcon = 'ArrowDownIcon',
8
+ ArrowsRewindRight = 'ArrowsRewindRight',
9
+ ArrowUpIcon = 'ArrowUpIcon',
10
+ AtmIcon = 'AtmIcon',
11
+ BankIcon = 'BankIcon',
12
+ BurgerIcon = 'BurgerIcon',
13
+ BurgerIconWhite = 'BurgerIconWhite',
14
+ Calendar2Icon = 'Calendar2Icon',
15
+ CalendarCircleIcon = 'CalendarCircleIcon',
16
+ CalendarIcon = 'CalendarIcon',
17
+ CalendarTickIcon = 'CalendarTickIcon',
18
+ CalendarWhiteIcon = 'CalendarWhiteIcon',
19
+ CardIcon = 'CardIcon',
20
+ CardPosIcon = 'CardPosIcon',
21
+ CardTickIcon = 'CardTickIcon',
22
+ CardWithGemIcon = 'CardWithGemIcon',
23
+ ChartSquareIcon = 'ChartSquareIcon',
24
+ ClockIcon = 'ClockIcon',
25
+ CloseIcon = 'CloseIcon',
26
+ ComfortableCompIcon = 'ComfortableCompIcon',
27
+ CreditCardsIcon = 'CreditCardsIcon',
28
+ DiscountShapeIcon = 'DiscountShapeIcon',
29
+ DocIcon = 'DocIcon',
30
+ DocIconMonoColor = 'DocIconMonoColor',
31
+ DocumentTextIcon = 'DocumentTextIcon',
32
+ DollarIcon = 'DollarIcon',
33
+ EarthIcon = 'EarthIcon',
34
+ EmptyWalletChangeIcon = 'EmptyWalletChangeIcon',
35
+ EmptyWalletIcon = 'EmptyWalletIcon',
36
+ EmptyWalletWhiteIcon = 'EmptyWalletWhiteIcon',
37
+ EuroIcon = 'EuroIcon',
38
+ GeolocationIcon = 'GeolocationIcon',
39
+ GlassIcon = 'GlassIcon',
40
+ GlobalIcon = 'GlobalIcon',
41
+ GpsIcon = 'GpsIcon',
42
+ GridIcon = 'GridIcon',
43
+ GridIconWhite = 'GridIconWhite',
44
+ InterestGrowthIcon = 'InterestGrowthIcon',
45
+ InterestIcon = 'InterestIcon',
46
+ JCBIcon = 'JCBIcon',
47
+ LoupeIcon = 'LoupeIcon',
48
+ MasterCardIcon = 'MasterCardIcon',
49
+ MinusIcon = 'MinusIcon',
50
+ MirIcon = 'MirIcon',
51
+ MoneyIcon = 'MoneyIcon',
52
+ MoneyInsuranceIcon = 'MoneyInsuranceIcon',
53
+ MonitorMobileIcon = 'MonitorMobileIcon',
54
+ NewDocIcon = 'NewDocIcon',
55
+ OfficeIcon = 'OfficeIcon',
56
+ OkIcon = 'OkIcon',
57
+ PassSendIcon = 'PassSendIcon',
58
+ PercentageRoundIcon = 'PercentageRoundIcon',
59
+ PercentageSquareIcon = 'PercentageSquareIcon',
60
+ PercentageSquareWhiteIcon = 'PercentageSquareWhiteIcon',
61
+ PersonalCardIcon = 'PersonalCardIcon',
62
+ PlayMarketIcon = 'PlayMarketIcon',
63
+ PlusIcon = 'PlusIcon',
64
+ Profile2UserIcon = 'Profile2UserIcon',
65
+ ProfileIcon = 'ProfileIcon',
66
+ RoundRubleIcon = 'RoundRubleIcon',
67
+ SafeIcon = 'SafeIcon',
68
+ ShieldTickIcon = 'ShieldTickIcon',
69
+ SignDocsIcon = 'SignDocsIcon',
70
+ SmallClockIcon = 'SmallClockIcon',
71
+ TelegramIcon = 'TelegramIcon',
72
+ UnionPayIcon = 'UnionPayIcon',
73
+ UserTickIcon = 'UserTickIcon',
74
+ VisaIcon = 'VisaIcon',
75
+ VKIcon = 'VKIcon',
76
+ WalletAdd2Icon = 'WalletAdd2Icon',
77
+ WalletAddIcon = 'WalletAddIcon',
78
+ WalletIcon = 'WalletIcon',
79
+ WalletWithMoneyIcon = 'WalletWithMoneyIcon',
6
80
  }
7
81
 
8
82
  /**
@@ -10,7 +84,83 @@ export enum IconMap {
10
84
  * @title Иконка
11
85
  * @enumNames [
12
86
  * "",
13
- * "Деньги", "Лого «Apple»", "Банкомат", "Банк", "Бургер", "Бургер (белый)", "Календарь 2", "Скруглённый календарь", "Календарь", "Календарь с галочкой", "Календарь белый", "Кред. карта", "Кред. карта под наклоном", "Кред. карта с галочкой", "Карта с драгоценностями", "Деньги внутри кошелька", "Часы", "Крестик", "Кресло", "Кредитные карты", "Скидка", "Документ", "Документ (одноцветный)", "Документ с текстом", "Доллар", "Земля", "Пустой кошелёк с возвратом", "Пустой кошелёк", "Пустой кошелёк (белый)", "Евро", "Геолокация", "Зеркало", "Глобус", "Gps", "Сетка", "Сетка (белая)", "Диаграмма роста", "Скидка", "JCB", "Лупа", "MasterCard", "Минус", "МИР", "Деньги", "Денежное страхование", "Монитор и мобильный", "Новый документ", "Офис", "Лого «Одноклассники»", "Бизнес", "Проценты (круг.)", "Проценты", "Проценты белые", "Персональная карта", "Лого «PlayMarket»", "Плюс", "Профиль, 2 персоны", "Профиль", "Рубль (круг.)", "Сейф", "Безопасность", "Подписанные документы", "Маленькие часы", "Лого «Telegram»", "UnionPay", "Пользователь", "Visa", "Лого «VK»", "Пополнение карты", "Кошелёк с плюсом", "Кошелёк", "Кошелёк с деньгами"
87
+ * "Деньги", "Лого «Apple»", "ArrowDownIcon", "ArrowsRewindRight", "ArrowUpIcon", "Банкомат", "Банк", "Бургер", "Бургер (белый)", "Календарь 2", "Скруглённый календарь", "Календарь", "Календарь с галочкой", "Календарь белый", "Кред. карта", "Кред. карта под наклоном", "Кред. карта с галочкой", "Карта с драгоценностями", "Деньги внутри кошелька", "Часы", "Крестик", "Кресло", "Кредитные карты", "Скидка", "Документ", "Документ (одноцветный)", "Документ с текстом", "Доллар", "Земля", "Пустой кошелёк с возвратом", "Пустой кошелёк", "Пустой кошелёк (белый)", "Евро", "Геолокация", "Зеркало", "Глобус", "Gps", "Сетка", "Сетка (белая)", "Диаграмма роста", "Скидка", "JCB", "Лупа", "MasterCard", "Минус", "МИР", "Деньги", "Денежное страхование", "Монитор и мобильный", "Новый документ", "Офис", "Лого «Одноклассники»", "Бизнес", "Проценты (круг.)", "Проценты", "Проценты белые", "Персональная карта", "Лого «PlayMarket»", "Плюс", "Профиль, 2 персоны", "Профиль", "Рубль (круг.)", "Сейф", "Безопасность", "Подписанные документы", "Маленькие часы", "Лого «Telegram»", "UnionPay", "Пользователь", "Visa", "Лого «VK»", "Пополнение карты", "Кошелёк с плюсом", "Кошелёк", "Кошелёк с деньгами"
14
88
  * ]
15
89
  */
16
- export type IconName = "" | "ActualBalanceIcon" | "AppleIcon" | "AtmIcon" | "BankIcon" | "BurgerIcon" | "BurgerIconWhite" | "Calendar2Icon" | "CalendarCircleIcon" | "CalendarIcon" | "CalendarTickIcon" | "CalendarWhiteIcon" | "CardIcon" | "CardPosIcon" | "CardTickIcon" | "CardWithGemIcon" | "ChartSquareIcon" | "ClockIcon" | "CloseIcon" | "ComfortableCompIcon" | "CreditCardsIcon" | "DiscountShapeIcon" | "DocIcon" | "DocIconMonoColor" | "DocumentTextIcon" | "DollarIcon" | "EarthIcon" | "EmptyWalletChangeIcon" | "EmptyWalletIcon" | "EmptyWalletWhiteIcon" | "EuroIcon" | "GeolocationIcon" | "GlassIcon" | "GlobalIcon" | "GpsIcon" | "GridIcon" | "GridIconWhite" | "InterestGrowthIcon" | "InterestIcon" | "JCBIcon" | "LoupeIcon" | "MasterCardIcon" | "MinusIcon" | "MirIcon" | "MoneyIcon" | "MoneyInsuranceIcon" | "MonitorMobileIcon" | "NewDocIcon" | "OfficeIcon" | "OkIcon" | "PassSendIcon" | "PercentageRoundIcon" | "PercentageSquareIcon" | "PercentageSquareWhiteIcon" | "PersonalCardIcon" | "PlayMarketIcon" | "PlusIcon" | "Profile2UserIcon" | "ProfileIcon" | "RoundRubleIcon" | "SafeIcon" | "ShieldTickIcon" | "SignDocsIcon" | "SmallClockIcon" | "TelegramIcon" | "UnionPayIcon" | "UserTickIcon" | "VisaIcon" | "VKIcon" | "WalletAdd2Icon" | "WalletAddIcon" | "WalletIcon" | "WalletWithMoneyIcon";
90
+ export type IconName =
91
+ | ''
92
+ | 'ActualBalanceIcon'
93
+ | 'AppleIcon'
94
+ | 'ArrowDownIcon'
95
+ | 'ArrowsRewindRight'
96
+ | 'ArrowUpIcon'
97
+ | 'AtmIcon'
98
+ | 'BankIcon'
99
+ | 'BurgerIcon'
100
+ | 'BurgerIconWhite'
101
+ | 'Calendar2Icon'
102
+ | 'CalendarCircleIcon'
103
+ | 'CalendarIcon'
104
+ | 'CalendarTickIcon'
105
+ | 'CalendarWhiteIcon'
106
+ | 'CardIcon'
107
+ | 'CardPosIcon'
108
+ | 'CardTickIcon'
109
+ | 'CardWithGemIcon'
110
+ | 'ChartSquareIcon'
111
+ | 'ClockIcon'
112
+ | 'CloseIcon'
113
+ | 'ComfortableCompIcon'
114
+ | 'CreditCardsIcon'
115
+ | 'DiscountShapeIcon'
116
+ | 'DocIcon'
117
+ | 'DocIconMonoColor'
118
+ | 'DocumentTextIcon'
119
+ | 'DollarIcon'
120
+ | 'EarthIcon'
121
+ | 'EmptyWalletChangeIcon'
122
+ | 'EmptyWalletIcon'
123
+ | 'EmptyWalletWhiteIcon'
124
+ | 'EuroIcon'
125
+ | 'GeolocationIcon'
126
+ | 'GlassIcon'
127
+ | 'GlobalIcon'
128
+ | 'GpsIcon'
129
+ | 'GridIcon'
130
+ | 'GridIconWhite'
131
+ | 'InterestGrowthIcon'
132
+ | 'InterestIcon'
133
+ | 'JCBIcon'
134
+ | 'LoupeIcon'
135
+ | 'MasterCardIcon'
136
+ | 'MinusIcon'
137
+ | 'MirIcon'
138
+ | 'MoneyIcon'
139
+ | 'MoneyInsuranceIcon'
140
+ | 'MonitorMobileIcon'
141
+ | 'NewDocIcon'
142
+ | 'OfficeIcon'
143
+ | 'OkIcon'
144
+ | 'PassSendIcon'
145
+ | 'PercentageRoundIcon'
146
+ | 'PercentageSquareIcon'
147
+ | 'PercentageSquareWhiteIcon'
148
+ | 'PersonalCardIcon'
149
+ | 'PlayMarketIcon'
150
+ | 'PlusIcon'
151
+ | 'Profile2UserIcon'
152
+ | 'ProfileIcon'
153
+ | 'RoundRubleIcon'
154
+ | 'SafeIcon'
155
+ | 'ShieldTickIcon'
156
+ | 'SignDocsIcon'
157
+ | 'SmallClockIcon'
158
+ | 'TelegramIcon'
159
+ | 'UnionPayIcon'
160
+ | 'UserTickIcon'
161
+ | 'VisaIcon'
162
+ | 'VKIcon'
163
+ | 'WalletAdd2Icon'
164
+ | 'WalletAddIcon'
165
+ | 'WalletIcon'
166
+ | 'WalletWithMoneyIcon';
@@ -0,0 +1,106 @@
1
+ import type { GalleryContent } from '../../components/Gallery/GalleryContent';
2
+ import type { HeadlineContent } from '../../components/Headline/HeadlineContent';
3
+ import type { LinkDocsContent } from '../../components/LinkDocs/LinkDocsContent';
4
+ import type { MiniGalleryContent } from '../../components/MiniGallery/MiniGalleryContent';
5
+ import type { PictureTextContent } from '../../components/PictureText/PictureTextContent';
6
+ import type { ProductBlockContent } from '../../components/ProductBlock/ProductBlockContent';
7
+ import type { ProductTileContent } from '../../components/ProductTile/ProductTileContent';
8
+ import type { TextBlockContent } from '../../components/TextBlock/TextBlockContent';
9
+ import type { TileContent } from '../../components/Tile/TileContent';
10
+ import type { LinkListContent } from '../../components/LinkList/LinkListContent';
11
+
12
+ /**
13
+ * @title Количество колонок
14
+ * @enumNames ["1 колонка", "2 колонки"]
15
+ */
16
+ export type ColumnsCount = 1 | 2;
17
+
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
+ /**
38
+ * @title Заголовок
39
+ */
40
+ export type HeadlineBlockListDef = HeadlineContent & BaseBlockDef;
41
+
42
+ /**
43
+ * @title Список документов
44
+ */
45
+ export type LinkDocsBlockListDef = LinkDocsContent & BaseBlockDef;
46
+
47
+ /**
48
+ * @title Текстовый блок
49
+ */
50
+ export type TextBlockBlockListDef = TextBlockContent & BaseBlockDef;
51
+
52
+ /**
53
+ * @title Картинка с текстом
54
+ */
55
+ export type PictureTextBlockListDef = PictureTextContent & BaseBlockDef;
56
+
57
+ /**
58
+ * @title Продуктовый блок
59
+ */
60
+ export type ProductBlockBlockListDef = ProductBlockContent & BaseBlockDef;
61
+
62
+ /**
63
+ * @title Плитка
64
+ */
65
+ export type TileBlockListDef = TileContent & BaseBlockDef;
66
+
67
+ /**
68
+ * @title Продуктовая плитка
69
+ */
70
+ export type ProductTileBlockListDef = ProductTileContent & BaseBlockDef;
71
+
72
+ /**
73
+ * @title Галлерея
74
+ */
75
+ export type GalleryBlockListDef = GalleryContent & BaseBlockDef;
76
+
77
+ /**
78
+ * @title Мини-галлерея
79
+ */
80
+ export type MiniGalleryBlockListDef = MiniGalleryContent & BaseBlockDef;
81
+
82
+ /**
83
+ * @title Список ссылок
84
+ */
85
+ export type LinkListBlockListDef = LinkListContent & BaseBlockDef;
86
+
87
+ /**
88
+ * @title Выберите блок
89
+ */
90
+ export type EmptyOption = null;
91
+
92
+ /**
93
+ * @title Содержимое блока
94
+ */
95
+ export type BlockDef =
96
+ | EmptyOption
97
+ | HeadlineBlockListDef
98
+ | LinkDocsBlockListDef
99
+ | TextBlockBlockListDef
100
+ | PictureTextBlockListDef
101
+ | ProductBlockBlockListDef
102
+ | TileBlockListDef
103
+ | ProductTileBlockListDef
104
+ | GalleryBlockListDef
105
+ | MiniGalleryBlockListDef
106
+ | LinkListBlockListDef;
@@ -0,0 +1,23 @@
1
+ import { Headline } from '../../components/Headline/Headline';
2
+ import { LinkDocs } from '../../components/LinkDocs/LinkDocs';
3
+ import { PictureText } from '../../components/PictureText/PictureText';
4
+ import { ProductBlock } from '../../components/ProductBlock/ProductBlock';
5
+ import { TextBlock } from '../../components/TextBlock/TextBlock';
6
+ import { Tile } from '../../components/Tile/Tile';
7
+ import { ProductTile } from '../../components/ProductTile/ProductTile';
8
+ import { Gallery } from '../../components/Gallery/Gallery';
9
+ import { MiniGallery } from '../../components/MiniGallery/MiniGallery';
10
+ import { LinkList } from '../../components/LinkList/LinkList';
11
+
12
+ export const EmbeddableBlocks = {
13
+ Headline,
14
+ LinkDocs,
15
+ TextBlock,
16
+ PictureText,
17
+ ProductBlock,
18
+ Tile,
19
+ ProductTile,
20
+ Gallery,
21
+ MiniGallery,
22
+ LinkList,
23
+ };
@@ -0,0 +1,30 @@
1
+ import type { JSXBlock } from '../../components/ContentPage/ContentPage';
2
+ import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
3
+ import type { BlockDef, ColumnsCount } from './BlocksListProps';
4
+ import { EmbeddableBlocks } from './EmbeddableBlocks';
5
+
6
+ type EmbeddableBlocksProps = {
7
+ blocks?: BlockDef[];
8
+ context: ContentPageContext;
9
+ columns?: ColumnsCount;
10
+ className?: string;
11
+ };
12
+
13
+ export const renderBlocksList = ({ blocks, context, className, columns }: EmbeddableBlocksProps) =>
14
+ blocks?.length ? blocks.map(renderBlock({ context, className, columns })) : null;
15
+
16
+ export const renderBlock =
17
+ ({ context, columns, className }: EmbeddableBlocksProps) =>
18
+ (block: BlockDef, i: number) => {
19
+ const type = block?.blockListType;
20
+ if (!type || !(type in EmbeddableBlocks)) {
21
+ return null;
22
+ }
23
+ const columnsCountClass = columns === 2 ? 'w-1/2' : '';
24
+ const EmbeddedBlock: JSXBlock = EmbeddableBlocks[type];
25
+ return (
26
+ <div className={`${className} ${columnsCountClass}`} key={`block_${i}`}>
27
+ <EmbeddedBlock context={context} {...block} className="!p-0" />
28
+ </div>
29
+ );
30
+ };
@@ -15,7 +15,7 @@ const HEADING_STYLE_MAP: Record<HeadingType, string> = {
15
15
  };
16
16
 
17
17
  export const Heading = JSX<HeadingProps>((props) => {
18
- const { className, headingType, title } = props;
18
+ const { className = '', headingType, title } = props;
19
19
  if (!headingType) {
20
20
  return;
21
21
  }
@@ -23,7 +23,7 @@ export const Heading = JSX<HeadingProps>((props) => {
23
23
 
24
24
  return (
25
25
  <Tag
26
- className={`font-sans font-medium m-0 ${HEADING_STYLE_MAP[headingType]} ${className || ''}`}
26
+ className={`font-sans font-medium m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`}
27
27
  >
28
28
  {title}
29
29
  </Tag>
@@ -1,12 +0,0 @@
1
- export declare const AccordionBlocks: {
2
- Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../Headline/Headline").HeadlineProps, any>, context?: any) => any;
3
- LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../LinkDocs/LinkDocs").LinkDocsProps, any>, context?: any) => any;
4
- TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
5
- PictureText: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../PictureText/PictureText").PictureTextProps, any>, context?: any) => any;
6
- ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
7
- Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../Tile/Tile").TileProps, any>, context?: any) => any;
8
- ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
9
- Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../Gallery/GalleryProps").GalleryProps, any>, context?: any) => any;
10
- MiniGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../MiniGallery/MiniGallery").MiniGalleryProps, any>, context?: any) => any;
11
- LinkList: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../LinkList/LinkList").LinkListProps, any>, context?: any) => any;
12
- };
@@ -1,25 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.AccordionBlocks = void 0;
3
- const Headline_1 = require("../Headline/Headline");
4
- const LinkDocs_1 = require("../LinkDocs/LinkDocs");
5
- const PictureText_1 = require("../PictureText/PictureText");
6
- const ProductBlock_1 = require("../ProductBlock/ProductBlock");
7
- const TextBlock_1 = require("../TextBlock/TextBlock");
8
- const Tile_1 = require("../Tile/Tile");
9
- const ProductTile_1 = require("../ProductTile/ProductTile");
10
- const Gallery_1 = require("../Gallery/Gallery");
11
- const MiniGallery_1 = require("../MiniGallery/MiniGallery");
12
- const LinkList_1 = require("../LinkList/LinkList");
13
- exports.AccordionBlocks = {
14
- Headline: Headline_1.Headline,
15
- LinkDocs: LinkDocs_1.LinkDocs,
16
- TextBlock: TextBlock_1.TextBlock,
17
- PictureText: PictureText_1.PictureText,
18
- ProductBlock: ProductBlock_1.ProductBlock,
19
- Tile: Tile_1.Tile,
20
- ProductTile: ProductTile_1.ProductTile,
21
- Gallery: Gallery_1.Gallery,
22
- MiniGallery: MiniGallery_1.MiniGallery,
23
- LinkList: LinkList_1.LinkList,
24
- };
25
- //# sourceMappingURL=AccordionBlocks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccordionBlocks.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionBlocks.tsx"],"names":[],"mappings":";;AAAA,mDAAgD;AAChD,mDAAgD;AAChD,4DAAyD;AACzD,+DAA4D;AAC5D,sDAAmD;AACnD,uCAAoC;AACpC,4DAAyD;AACzD,gDAA6C;AAC7C,4DAAyD;AACzD,mDAAgD;AAEnC,QAAA,eAAe,GAAG;IAC7B,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,SAAS,EAAT,qBAAS;IACT,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,IAAI,EAAJ,WAAI;IACJ,WAAW,EAAX,yBAAW;IACX,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,yBAAW;IACX,QAAQ,EAAR,mBAAQ;CACT,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"isActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/isActiveHandler.ts"],"names":[],"mappings":";;AAEO,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACrD,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,eAAe,mBAoB1B"}
@@ -1,12 +0,0 @@
1
- export declare const AccordionBlocks: {
2
- Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../Headline/Headline").HeadlineProps, any>, context?: any) => any;
3
- LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../LinkDocs/LinkDocs").LinkDocsProps, any>, context?: any) => any;
4
- TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
5
- PictureText: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../PictureText/PictureText").PictureTextProps, any>, context?: any) => any;
6
- ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
7
- Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../Tile/Tile").TileProps, any>, context?: any) => any;
8
- ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
9
- Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../Gallery/GalleryProps").GalleryProps, any>, context?: any) => any;
10
- MiniGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../MiniGallery/MiniGallery").MiniGalleryProps, any>, context?: any) => any;
11
- LinkList: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../LinkList/LinkList").LinkListProps, any>, context?: any) => any;
12
- };
@@ -1,23 +0,0 @@
1
- import { Headline } from '../Headline/Headline.js';
2
- import { LinkDocs } from '../LinkDocs/LinkDocs.js';
3
- import { PictureText } from '../PictureText/PictureText.js';
4
- import { ProductBlock } from '../ProductBlock/ProductBlock.js';
5
- import { TextBlock } from '../TextBlock/TextBlock.js';
6
- import { Tile } from '../Tile/Tile.js';
7
- import { ProductTile } from '../ProductTile/ProductTile.js';
8
- import { Gallery } from '../Gallery/Gallery.js';
9
- import { MiniGallery } from '../MiniGallery/MiniGallery.js';
10
- import { LinkList } from '../LinkList/LinkList.js';
11
- export const AccordionBlocks = {
12
- Headline,
13
- LinkDocs,
14
- TextBlock,
15
- PictureText,
16
- ProductBlock,
17
- Tile,
18
- ProductTile,
19
- Gallery,
20
- MiniGallery,
21
- LinkList,
22
- };
23
- //# sourceMappingURL=AccordionBlocks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccordionBlocks.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionBlocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,WAAW;IACX,YAAY;IACZ,IAAI;IACJ,WAAW;IACX,OAAO;IACP,WAAW;IACX,QAAQ;CACT,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"isActiveHandler.js","sourceRoot":"","sources":["../../../../src/components/Accordion/utils/isActiveHandler.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACrD,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,12 +0,0 @@
1
- export declare const AccordionBlocks: {
2
- Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../Headline/Headline").HeadlineProps, any>, context?: any) => any;
3
- LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../LinkDocs/LinkDocs").LinkDocsProps, any>, context?: any) => any;
4
- TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
5
- PictureText: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../PictureText/PictureText").PictureTextProps, any>, context?: any) => any;
6
- ProductBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../ProductBlock/ProductBlock").ProductBlockProps, any>, context?: any) => any;
7
- Tile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../Tile/Tile").TileProps, any>, context?: any) => any;
8
- ProductTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../ProductTile/ProductTile").ProductTileProps, any>, context?: any) => any;
9
- Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../Gallery/GalleryProps").GalleryProps, any>, context?: any) => any;
10
- MiniGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../MiniGallery/MiniGallery").MiniGalleryProps, any>, context?: any) => any;
11
- LinkList: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("../LinkList/LinkList").LinkListProps, any>, context?: any) => any;
12
- };