@redneckz/wildless-cms-uni-blocks 0.8.24 → 0.8.26

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 (325) hide show
  1. package/bin/migration-scripts/0.6.43.js +4 -1
  2. package/bin/migration-scripts/0.7.8.js +4 -1
  3. package/bin/migration-scripts/0.8.15.js +4 -1
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +165 -184
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/Headline/HeadlineContent.d.ts +2 -0
  8. package/bundle/components/RollupItem/RollupItem.mobile.d.ts +5 -0
  9. package/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  10. package/dist/components/Accordion/Accordion.js +2 -3
  11. package/dist/components/Accordion/Accordion.js.map +1 -1
  12. package/dist/components/Accordion/Accordion.mobile.js +2 -3
  13. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  14. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
  15. package/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -2
  16. package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
  17. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  18. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  19. package/dist/components/Blocks.js +0 -4
  20. package/dist/components/Blocks.js.map +1 -1
  21. package/dist/components/Blocks.mobile.js +4 -2
  22. package/dist/components/Blocks.mobile.js.map +1 -1
  23. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -1
  24. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  25. package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
  26. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  27. package/dist/components/Footer/Footer.mobile.js +3 -3
  28. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  29. package/dist/components/Header/Header.mobile.js +2 -3
  30. package/dist/components/Header/Header.mobile.js.map +1 -1
  31. package/dist/components/Headline/Headline.js +3 -2
  32. package/dist/components/Headline/Headline.js.map +1 -1
  33. package/dist/components/Headline/HeadlineContent.d.ts +2 -0
  34. package/dist/components/RollupItem/RollupItem.js +9 -4
  35. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  36. package/dist/components/RollupItem/RollupItem.mobile.d.ts +5 -0
  37. package/dist/components/RollupItem/RollupItem.mobile.js +33 -0
  38. package/dist/components/RollupItem/RollupItem.mobile.js.map +1 -0
  39. package/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  40. package/dist/ui-kit/Icon/Icon.js +4 -1
  41. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  42. package/dist/ui-kit/List/List.js +1 -1
  43. package/dist/ui-kit/List/List.js.map +1 -1
  44. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  45. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  46. package/dist/ui-kit/SwipeListControl/SwipeListItem.js +1 -1
  47. package/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
  48. package/lib/common.css +1 -1
  49. package/lib/components/Accordion/Accordion.fixture.d.ts +0 -2
  50. package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +1 -1
  51. package/lib/components/Accordion/Accordion.js +2 -3
  52. package/lib/components/Accordion/Accordion.js.map +1 -1
  53. package/lib/components/Accordion/Accordion.mobile.js +2 -3
  54. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  55. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
  56. package/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -2
  57. package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
  58. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  59. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  60. package/lib/components/Blocks.js +0 -4
  61. package/lib/components/Blocks.js.map +1 -1
  62. package/lib/components/Blocks.mobile.js +4 -2
  63. package/lib/components/Blocks.mobile.js.map +1 -1
  64. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -1
  65. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  66. package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
  67. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  68. package/lib/components/Footer/Footer.mobile.js +3 -3
  69. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  70. package/lib/components/Header/Header.mobile.js +2 -3
  71. package/lib/components/Header/Header.mobile.js.map +1 -1
  72. package/lib/components/Headline/Headline.js +3 -2
  73. package/lib/components/Headline/Headline.js.map +1 -1
  74. package/lib/components/Headline/HeadlineContent.d.ts +2 -0
  75. package/lib/components/{AccordionItem/AccordionItem.fixture.d.ts → RollupItem/RollupItem.fixture.mobile.d.ts} +2 -0
  76. package/lib/components/RollupItem/RollupItem.js +9 -4
  77. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  78. package/lib/components/RollupItem/RollupItem.mobile.d.ts +5 -0
  79. package/lib/components/RollupItem/RollupItem.mobile.js +31 -0
  80. package/lib/components/RollupItem/RollupItem.mobile.js.map +1 -0
  81. package/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  82. package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +0 -1
  83. package/lib/ui-kit/Icon/Icon.js +4 -1
  84. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  85. package/lib/ui-kit/List/List.js +1 -1
  86. package/lib/ui-kit/List/List.js.map +1 -1
  87. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  88. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  89. package/lib/ui-kit/SwipeListControl/SwipeListItem.js +1 -1
  90. package/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
  91. package/mobile/bundle/bundle.umd.js +204 -154
  92. package/mobile/bundle/bundle.umd.min.js +1 -1
  93. package/mobile/bundle/components/Headline/HeadlineContent.d.ts +2 -0
  94. package/mobile/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  95. package/mobile/dist/components/Accordion/Accordion.js +2 -3
  96. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  97. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
  98. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -2
  99. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
  100. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  101. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  102. package/mobile/dist/components/Blocks.js +4 -2
  103. package/mobile/dist/components/Blocks.js.map +1 -1
  104. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -1
  105. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  106. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
  107. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  108. package/mobile/dist/components/Footer/Footer.js +3 -3
  109. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  110. package/mobile/dist/components/Header/Header.js +2 -3
  111. package/mobile/dist/components/Header/Header.js.map +1 -1
  112. package/mobile/dist/components/Headline/Headline.js +3 -2
  113. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  114. package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -0
  115. package/mobile/dist/components/RollupItem/RollupItem.js +17 -5
  116. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  117. package/mobile/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  118. package/mobile/dist/ui-kit/Icon/Icon.js +4 -1
  119. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  120. package/mobile/dist/ui-kit/List/List.js +1 -1
  121. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  122. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  123. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  124. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js +1 -1
  125. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
  126. package/mobile/lib/components/Accordion/Accordion.js +2 -3
  127. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  128. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +2 -2
  129. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -2
  130. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
  131. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  132. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  133. package/mobile/lib/components/Blocks.js +4 -2
  134. package/mobile/lib/components/Blocks.js.map +1 -1
  135. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -1
  136. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  137. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
  138. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  139. package/mobile/lib/components/Footer/Footer.js +3 -3
  140. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  141. package/mobile/lib/components/Header/Header.js +2 -3
  142. package/mobile/lib/components/Header/Header.js.map +1 -1
  143. package/mobile/lib/components/Headline/Headline.js +3 -2
  144. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  145. package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -0
  146. package/mobile/lib/components/RollupItem/RollupItem.js +17 -5
  147. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  148. package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +1 -1
  149. package/mobile/lib/ui-kit/Icon/Icon.js +4 -1
  150. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  151. package/mobile/lib/ui-kit/List/List.js +1 -1
  152. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  153. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  154. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  155. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js +1 -1
  156. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
  157. package/mobile/src/components/Accordion/Accordion.example.json +3 -3
  158. package/mobile/src/components/Accordion/Accordion.tsx +2 -3
  159. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
  160. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -2
  161. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
  162. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  163. package/mobile/src/components/Blocks.ts +4 -2
  164. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +10 -3
  165. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
  166. package/mobile/src/components/Footer/Footer.tsx +9 -9
  167. package/mobile/src/components/Header/Header.tsx +5 -6
  168. package/mobile/src/components/Headline/Headline.tsx +4 -1
  169. package/mobile/src/components/Headline/HeadlineContent.ts +2 -0
  170. package/mobile/src/components/PictureText/PictureText.example.json +2 -0
  171. package/mobile/src/components/RollupItem/RollupItem.tsx +77 -28
  172. package/mobile/src/components/StepsBlock/StepsBlock.example.json +4 -1
  173. package/mobile/src/ui-kit/BenefitItem/BenefitItemProps.ts +1 -1
  174. package/mobile/src/ui-kit/Icon/Icon.tsx +4 -1
  175. package/mobile/src/ui-kit/List/List.tsx +1 -1
  176. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +0 -1
  177. package/mobile/src/ui-kit/SwipeListControl/SwipeListItem.tsx +1 -2
  178. package/package.json +1 -1
  179. package/src/components/Accordion/Accordion.example.json +3 -3
  180. package/src/components/Accordion/Accordion.fixture.mobile.tsx +20 -11
  181. package/src/components/Accordion/Accordion.fixture.tsx +42 -27
  182. package/src/components/Accordion/Accordion.mobile.tsx +2 -3
  183. package/src/components/Accordion/Accordion.tsx +2 -3
  184. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
  185. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -2
  186. package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
  187. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  188. package/src/components/Blocks.mobile.ts +4 -2
  189. package/src/components/Blocks.ts +0 -4
  190. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +10 -3
  191. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.tsx +2 -2
  192. package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
  193. package/src/components/Footer/Footer.mobile.tsx +9 -9
  194. package/src/components/Header/Header.mobile.tsx +5 -6
  195. package/src/components/Headline/Headline.tsx +4 -1
  196. package/src/components/Headline/HeadlineContent.ts +2 -0
  197. package/src/components/OtherProducts/OtherProducts.fixture.tsx +15 -14
  198. package/src/components/PictureText/PictureText.example.json +2 -0
  199. package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +33 -0
  200. package/src/components/RollupItem/RollupItem.mobile.tsx +143 -0
  201. package/src/components/RollupItem/RollupItem.tsx +17 -13
  202. package/src/components/StepsBlock/StepsBlock.example.json +4 -1
  203. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +1 -0
  204. package/src/ui-kit/BenefitItem/BenefitItemProps.ts +1 -1
  205. package/src/ui-kit/Icon/Icon.tsx +4 -1
  206. package/src/ui-kit/List/List.tsx +1 -1
  207. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +0 -1
  208. package/src/ui-kit/SwipeListControl/SwipeListItem.tsx +1 -2
  209. package/bundle/components/Accordion/AccordionItemsList.d.ts +0 -1
  210. package/bundle/components/AccordionItem/AccordionItem.d.ts +0 -3
  211. package/bundle/components/AccordionItem/AccordionItem.mobile.d.ts +0 -3
  212. package/bundle/components/AccordionItem/AccordionItemContent.d.ts +0 -14
  213. package/bundle/components/AccordionItem/AccordionItemProps.d.ts +0 -4
  214. package/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
  215. package/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
  216. package/dist/components/Accordion/AccordionItemsList.d.ts +0 -1
  217. package/dist/components/Accordion/AccordionItemsList.js +0 -6
  218. package/dist/components/Accordion/AccordionItemsList.js.map +0 -1
  219. package/dist/components/AccordionItem/AccordionItem.d.ts +0 -3
  220. package/dist/components/AccordionItem/AccordionItem.js +0 -14
  221. package/dist/components/AccordionItem/AccordionItem.js.map +0 -1
  222. package/dist/components/AccordionItem/AccordionItem.mobile.d.ts +0 -3
  223. package/dist/components/AccordionItem/AccordionItem.mobile.js +0 -19
  224. package/dist/components/AccordionItem/AccordionItem.mobile.js.map +0 -1
  225. package/dist/components/AccordionItem/AccordionItemContent.d.ts +0 -14
  226. package/dist/components/AccordionItem/AccordionItemContent.js +0 -2
  227. package/dist/components/AccordionItem/AccordionItemContent.js.map +0 -1
  228. package/dist/components/AccordionItem/AccordionItemProps.d.ts +0 -4
  229. package/dist/components/AccordionItem/AccordionItemProps.js +0 -2
  230. package/dist/components/AccordionItem/AccordionItemProps.js.map +0 -1
  231. package/dist/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
  232. package/dist/components/OtherProductsItem/OtherProductsItem.js +0 -18
  233. package/dist/components/OtherProductsItem/OtherProductsItem.js.map +0 -1
  234. package/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
  235. package/dist/components/OtherProductsItem/OtherProductsItemContent.js +0 -2
  236. package/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +0 -1
  237. package/lib/components/Accordion/AccordionItemsList.d.ts +0 -1
  238. package/lib/components/Accordion/AccordionItemsList.js +0 -4
  239. package/lib/components/Accordion/AccordionItemsList.js.map +0 -1
  240. package/lib/components/AccordionItem/AccordionItem.d.ts +0 -3
  241. package/lib/components/AccordionItem/AccordionItem.fixture.mobile.d.ts +0 -5
  242. package/lib/components/AccordionItem/AccordionItem.js +0 -12
  243. package/lib/components/AccordionItem/AccordionItem.js.map +0 -1
  244. package/lib/components/AccordionItem/AccordionItem.mobile.d.ts +0 -3
  245. package/lib/components/AccordionItem/AccordionItem.mobile.js +0 -17
  246. package/lib/components/AccordionItem/AccordionItem.mobile.js.map +0 -1
  247. package/lib/components/AccordionItem/AccordionItemContent.d.ts +0 -14
  248. package/lib/components/AccordionItem/AccordionItemContent.js +0 -2
  249. package/lib/components/AccordionItem/AccordionItemContent.js.map +0 -1
  250. package/lib/components/AccordionItem/AccordionItemProps.d.ts +0 -4
  251. package/lib/components/AccordionItem/AccordionItemProps.js +0 -2
  252. package/lib/components/AccordionItem/AccordionItemProps.js.map +0 -1
  253. package/lib/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
  254. package/lib/components/OtherProductsItem/OtherProductsItem.fixture.d.ts +0 -5
  255. package/lib/components/OtherProductsItem/OtherProductsItem.js +0 -16
  256. package/lib/components/OtherProductsItem/OtherProductsItem.js.map +0 -1
  257. package/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
  258. package/lib/components/OtherProductsItem/OtherProductsItemContent.js +0 -2
  259. package/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +0 -1
  260. package/mobile/bundle/components/Accordion/AccordionItemsList.d.ts +0 -1
  261. package/mobile/bundle/components/AccordionItem/AccordionItem.d.ts +0 -3
  262. package/mobile/bundle/components/AccordionItem/AccordionItemContent.d.ts +0 -14
  263. package/mobile/bundle/components/AccordionItem/AccordionItemProps.d.ts +0 -4
  264. package/mobile/bundle/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
  265. package/mobile/bundle/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
  266. package/mobile/dist/components/Accordion/AccordionItemsList.d.ts +0 -1
  267. package/mobile/dist/components/Accordion/AccordionItemsList.js +0 -6
  268. package/mobile/dist/components/Accordion/AccordionItemsList.js.map +0 -1
  269. package/mobile/dist/components/AccordionItem/AccordionItem.d.ts +0 -3
  270. package/mobile/dist/components/AccordionItem/AccordionItem.js +0 -19
  271. package/mobile/dist/components/AccordionItem/AccordionItem.js.map +0 -1
  272. package/mobile/dist/components/AccordionItem/AccordionItemContent.d.ts +0 -14
  273. package/mobile/dist/components/AccordionItem/AccordionItemContent.js +0 -2
  274. package/mobile/dist/components/AccordionItem/AccordionItemContent.js.map +0 -1
  275. package/mobile/dist/components/AccordionItem/AccordionItemProps.d.ts +0 -4
  276. package/mobile/dist/components/AccordionItem/AccordionItemProps.js +0 -2
  277. package/mobile/dist/components/AccordionItem/AccordionItemProps.js.map +0 -1
  278. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
  279. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +0 -18
  280. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +0 -1
  281. package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
  282. package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js +0 -2
  283. package/mobile/dist/components/OtherProductsItem/OtherProductsItemContent.js.map +0 -1
  284. package/mobile/lib/components/Accordion/AccordionItemsList.d.ts +0 -1
  285. package/mobile/lib/components/Accordion/AccordionItemsList.js +0 -4
  286. package/mobile/lib/components/Accordion/AccordionItemsList.js.map +0 -1
  287. package/mobile/lib/components/AccordionItem/AccordionItem.d.ts +0 -3
  288. package/mobile/lib/components/AccordionItem/AccordionItem.js +0 -17
  289. package/mobile/lib/components/AccordionItem/AccordionItem.js.map +0 -1
  290. package/mobile/lib/components/AccordionItem/AccordionItemContent.d.ts +0 -14
  291. package/mobile/lib/components/AccordionItem/AccordionItemContent.js +0 -2
  292. package/mobile/lib/components/AccordionItem/AccordionItemContent.js.map +0 -1
  293. package/mobile/lib/components/AccordionItem/AccordionItemProps.d.ts +0 -4
  294. package/mobile/lib/components/AccordionItem/AccordionItemProps.js +0 -2
  295. package/mobile/lib/components/AccordionItem/AccordionItemProps.js.map +0 -1
  296. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.d.ts +0 -5
  297. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +0 -16
  298. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +0 -1
  299. package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.d.ts +0 -12
  300. package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js +0 -2
  301. package/mobile/lib/components/OtherProductsItem/OtherProductsItemContent.js.map +0 -1
  302. package/mobile/src/components/Accordion/AccordionItemsList.tsx +0 -5
  303. package/mobile/src/components/AccordionItem/AccordionItem.example.json +0 -25
  304. package/mobile/src/components/AccordionItem/AccordionItem.tsx +0 -90
  305. package/mobile/src/components/AccordionItem/AccordionItem.ui.json +0 -7
  306. package/mobile/src/components/AccordionItem/AccordionItemContent.ts +0 -15
  307. package/mobile/src/components/AccordionItem/AccordionItemProps.ts +0 -4
  308. package/mobile/src/components/OtherProductsItem/OtherProductsItem.example.json +0 -22
  309. package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +0 -50
  310. package/mobile/src/components/OtherProductsItem/OtherProductsItem.ui.json +0 -1
  311. package/mobile/src/components/OtherProductsItem/OtherProductsItemContent.ts +0 -13
  312. package/src/components/Accordion/AccordionItemsList.tsx +0 -5
  313. package/src/components/AccordionItem/AccordionItem.example.json +0 -25
  314. package/src/components/AccordionItem/AccordionItem.fixture.mobile.tsx +0 -17
  315. package/src/components/AccordionItem/AccordionItem.fixture.tsx +0 -17
  316. package/src/components/AccordionItem/AccordionItem.mobile.tsx +0 -90
  317. package/src/components/AccordionItem/AccordionItem.tsx +0 -58
  318. package/src/components/AccordionItem/AccordionItem.ui.json +0 -7
  319. package/src/components/AccordionItem/AccordionItemContent.ts +0 -15
  320. package/src/components/AccordionItem/AccordionItemProps.ts +0 -4
  321. package/src/components/OtherProductsItem/OtherProductsItem.example.json +0 -22
  322. package/src/components/OtherProductsItem/OtherProductsItem.fixture.tsx +0 -20
  323. package/src/components/OtherProductsItem/OtherProductsItem.tsx +0 -50
  324. package/src/components/OtherProductsItem/OtherProductsItem.ui.json +0 -1
  325. package/src/components/OtherProductsItem/OtherProductsItemContent.ts +0 -13
@@ -13,6 +13,7 @@
13
13
  "directionRight": false,
14
14
  "benefits": [
15
15
  {
16
+ "type": "default",
16
17
  "label": "Преимущество №1",
17
18
  "icon": {
18
19
  "format": "webp",
@@ -20,6 +21,7 @@
20
21
  }
21
22
  },
22
23
  {
24
+ "type": "default",
23
25
  "label": "Преимущество №2",
24
26
  "icon": {
25
27
  "format": "webp",
@@ -0,0 +1,33 @@
1
+ import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
2
+ import { BlockDef } from '../../model/ContentPageDef';
3
+ import { Blocks } from '../Blocks.mobile';
4
+
5
+ import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture.mobile';
6
+ import { RollupItem } from './RollupItem.mobile';
7
+
8
+ const options = {
9
+ blocksRegistry: Blocks,
10
+ } as BlockRendererOptions;
11
+
12
+ export const ROLLUP_ITEM: BlockDef = {
13
+ type: 'RollupItem',
14
+ content: {
15
+ label: 'RollupItem label 1',
16
+ labelIcon: { icon: 'CardIcon' },
17
+ isExpanded: true,
18
+ },
19
+ blocks: [
20
+ { type: 'TextBlock', content: TEXT_BLOCK },
21
+ { type: 'TextBlock', content: TEXT_BLOCK },
22
+ ],
23
+ };
24
+
25
+ export default {
26
+ default: (
27
+ <div>
28
+ <div className="list-none m-0 p-0">
29
+ <RollupItem {...ROLLUP_ITEM.content} block={ROLLUP_ITEM} options={options} />
30
+ </div>
31
+ </div>
32
+ ),
33
+ };
@@ -0,0 +1,143 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { getParentBlockContent } from '../../BlockRenderer/getParentBlockContent';
3
+ import { renderChildren } from '../../BlockRenderer/renderChildren';
4
+ import type { IconName } from '../../icons/IconName';
5
+ import { BlockVersion } from '../../model/BlockVersion';
6
+ import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
7
+ import { Picture } from '../../model/Picture';
8
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
9
+ import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
10
+ import { Foldable } from '../../ui-kit/Foldable/Foldable';
11
+ import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
12
+ import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
13
+ import { Img } from '../../ui-kit/Img/Img';
14
+ import { Text } from '../../ui-kit/Text/Text';
15
+ import { getIconWithVersion } from '../../utils/getIconWithVersion';
16
+ import { style } from '../../utils/style';
17
+ import { AccordionContent } from '../Accordion/AccordionContent';
18
+ import type { RollupItemContent } from './RollupItemContent';
19
+
20
+ export interface RollupItemProps extends RollupItemContent, UniBlockProps {}
21
+
22
+ export const RollupItem: JSXBlock<RollupItemProps> = JSX<RollupItemProps>(
23
+ ({
24
+ className = '',
25
+ label = 'Развернуть',
26
+ isExpanded,
27
+ isFoldButtonOnTop = true,
28
+ version = 'primary',
29
+ ...rest
30
+ }) => {
31
+ const { bordered } = getParentBlockContent(rest.options, {} as AccordionContent);
32
+
33
+ return (
34
+ <BlockWrapper
35
+ className={style(
36
+ 'border-b border-solid border-main-divider w-full',
37
+ bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0',
38
+ className,
39
+ )}
40
+ tag="div"
41
+ version="transparent"
42
+ {...rest}
43
+ >
44
+ <Foldable
45
+ isFoldButtonOnTop={isFoldButtonOnTop}
46
+ unfoldedByDefault={isExpanded}
47
+ renderFoldableSection={({ isUnfolded }) => (
48
+ <FoldableSection
49
+ className="flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0"
50
+ isUnfolded={isUnfolded}
51
+ >
52
+ {renderChildren(rest)}
53
+ </FoldableSection>
54
+ )}
55
+ renderFoldButton={({ isUnfolded, onToggle }) =>
56
+ renderFoldButton({ version, label, isUnfolded, onToggle })
57
+ }
58
+ />
59
+ </BlockWrapper>
60
+ );
61
+ },
62
+ );
63
+
64
+ RollupItem.childrenTypes = {
65
+ exclude: ['RollupItem', 'Accordion', 'OtherProducts'],
66
+ };
67
+
68
+ interface FoldButtonProps extends FoldablePartProps {
69
+ version?: BlockVersion;
70
+ label?: string;
71
+ className?: string;
72
+ primaryIcon?: Picture;
73
+ }
74
+
75
+ const renderFoldButton = ({
76
+ version,
77
+ label: defaultLabel,
78
+ isUnfolded,
79
+ onToggle,
80
+ className = '',
81
+ primaryIcon,
82
+ }: FoldButtonProps) => {
83
+ const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
84
+
85
+ return version === 'primary' ? (
86
+ renderPrimaryFoldButton({
87
+ label,
88
+ icon: isUnfolded ? 'MinusIcon' : 'PlusIcon',
89
+ onToggle,
90
+ className,
91
+ primaryIcon,
92
+ })
93
+ ) : (
94
+ <DefaultFoldButton
95
+ label={label}
96
+ icon={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
97
+ onClick={onToggle}
98
+ />
99
+ );
100
+ };
101
+
102
+ interface PrimaryFoldButtonProps {
103
+ label?: string;
104
+ icon?: IconName;
105
+ primaryIcon?: Picture;
106
+ onToggle?: () => void;
107
+ onClick?: () => void;
108
+ className?: string;
109
+ }
110
+
111
+ const renderPrimaryFoldButton = ({
112
+ label,
113
+ icon,
114
+ primaryIcon,
115
+ onToggle,
116
+ }: PrimaryFoldButtonProps) => (
117
+ <button
118
+ className={`border-none bg-transparent flex justify-between text-left w-full text-primary-text group cursor-pointer py-3.5 px-0`}
119
+ onClick={onToggle}
120
+ >
121
+ <div className="flex group-hover:text-primary-main">
122
+ {primaryIcon ? (
123
+ <Img
124
+ image={{ ...getIconWithVersion({ ...primaryIcon } as Picture) }}
125
+ className="mr-3 flex-shrink-0"
126
+ width="24"
127
+ height="24"
128
+ asSVG
129
+ />
130
+ ) : null}
131
+ <Text size="text-m-title-xs" font="font-medium">
132
+ {label}
133
+ </Text>
134
+ </div>
135
+ <Img
136
+ className="flex-shrink-0"
137
+ image={{ ...getIconWithVersion({ icon: icon }) }}
138
+ width="24"
139
+ height="24"
140
+ asSVG
141
+ />
142
+ </button>
143
+ );
@@ -9,6 +9,7 @@ import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps'
9
9
  import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
10
10
  import type { IconName } from '../../ui-kit/Icon/IconProps';
11
11
  import { Img } from '../../ui-kit/Img/Img';
12
+ import { Text } from '../../ui-kit/Text/Text';
12
13
  import { getIconWithVersion } from '../../utils/getIconWithVersion';
13
14
  import type { RollupItemContent } from './RollupItemContent';
14
15
 
@@ -24,22 +25,18 @@ export const RollupItem: JSXBlock<RollupItemProps> = JSX<RollupItemProps>(
24
25
  ...rest
25
26
  }) => (
26
27
  <BlockWrapper
27
- className={`border-b border-solid border-main-divider w-full ${className}`}
28
+ className={`w-full border-0 border-b border-solid border-main-divider last:border-b-0 ${className}`}
28
29
  tag="div"
30
+ version="transparent"
29
31
  {...rest}
30
32
  >
31
33
  <Foldable
32
34
  isFoldButtonOnTop={isFoldButtonOnTop}
33
35
  unfoldedByDefault={isExpanded}
34
36
  renderFoldableSection={({ isUnfolded }) => (
35
- <div className="box-border">
36
- <FoldableSection
37
- className={`grid grid-cols-12 gap-1 border-box`}
38
- isUnfolded={isUnfolded}
39
- >
40
- {renderChildren(rest)}
41
- </FoldableSection>
42
- </div>
37
+ <FoldableSection className={`grid grid-cols-12 gap-5 [&>*]:p-0`} isUnfolded={isUnfolded}>
38
+ {renderChildren(rest)}
39
+ </FoldableSection>
43
40
  )}
44
41
  renderFoldButton={({ isUnfolded, onToggle }) =>
45
42
  renderFoldButton({ version, label, isUnfolded, onToggle })
@@ -50,12 +47,13 @@ export const RollupItem: JSXBlock<RollupItemProps> = JSX<RollupItemProps>(
50
47
  );
51
48
 
52
49
  RollupItem.childrenTypes = {
53
- exclude: ['RollupItem', 'Accordion', 'AccordionItem', 'OtherProducts', 'OtherProductsItem'],
50
+ exclude: ['RollupItem', 'Accordion', 'OtherProducts'],
54
51
  };
55
52
 
56
53
  interface FoldButtonProps extends FoldablePartProps {
57
54
  version?: BlockVersion;
58
55
  label?: string;
56
+ isPadding?: boolean;
59
57
  }
60
58
 
61
59
  const renderFoldButton = ({
@@ -67,7 +65,11 @@ const renderFoldButton = ({
67
65
  const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
68
66
 
69
67
  return version === 'primary' ? (
70
- renderPrimaryFoldButton({ label, icon: isUnfolded ? 'MinusIcon' : 'PlusIcon', onToggle })
68
+ renderPrimaryFoldButton({
69
+ label,
70
+ icon: isUnfolded ? 'MinusIcon' : 'PlusIcon',
71
+ onToggle,
72
+ })
71
73
  ) : (
72
74
  <DefaultFoldButton
73
75
  label={label}
@@ -85,10 +87,12 @@ interface PrimaryFoldButtonProps {
85
87
 
86
88
  const renderPrimaryFoldButton = ({ label, icon, onToggle }: PrimaryFoldButtonProps) => (
87
89
  <button
88
- className="border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer"
90
+ className={`border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer`}
89
91
  onClick={onToggle}
90
92
  >
91
- <span className="text-xl font-medium pr-2.5">{label}</span>
93
+ <Text size="text-xl" font="font-medium">
94
+ {label}
95
+ </Text>
92
96
  {icon ? <Img image={getIconWithVersion({ icon })} width="24" height="24" asSVG /> : null}
93
97
  </button>
94
98
  );
@@ -8,6 +8,7 @@
8
8
  "stepVersion": "gray",
9
9
  "steps": [
10
10
  {
11
+ "type": "default",
11
12
  "label": "Шаг №1",
12
13
  "description": "Описание шага №1",
13
14
  "icon": {
@@ -22,9 +23,10 @@
22
23
  "text": "Кнопка",
23
24
  "target": "_blank",
24
25
  "version": "primary"
25
- }
26
+ }
26
27
  },
27
28
  {
29
+ "type": "default",
28
30
  "label": "Шаг №2",
29
31
  "icon": {
30
32
  "icon": "PassSendIcon",
@@ -41,6 +43,7 @@
41
43
  }
42
44
  },
43
45
  {
46
+ "type": "default",
44
47
  "description": "Шаг №3 без заголовка",
45
48
  "icon": {
46
49
  "icon": "ActualBalanceIcon",
@@ -114,6 +114,7 @@ export default {
114
114
  align="left"
115
115
  className="col-span-12"
116
116
  version="primary"
117
+ isPadding={true}
117
118
  block={{
118
119
  type: 'VerticalLayout',
119
120
  blocks: [
@@ -23,7 +23,7 @@ type DefaultBenefit = BenefitItemProps & DefaultListItemType;
23
23
 
24
24
  /**
25
25
  * @title Преимущество
26
- * @default{
26
+ * @default {
27
27
  * "type": "default"
28
28
  * }
29
29
  */
@@ -48,6 +48,9 @@ export const Icon = JSX<IconProps>(
48
48
  </Background>
49
49
  );
50
50
  }
51
+ if (!className.includes('h-')) {
52
+ imgProps['style'] = { height: `${imgProps.height}px` };
53
+ }
51
54
 
52
55
  return (
53
56
  <img
@@ -55,8 +58,8 @@ export const Icon = JSX<IconProps>(
55
58
  src={href}
56
59
  alt={alt}
57
60
  title={title}
58
- {...imgProps}
59
61
  aria-hidden="true"
62
+ {...imgProps}
60
63
  />
61
64
  );
62
65
  },
@@ -26,7 +26,7 @@ export const List = JSX<ListProps>(
26
26
  {items.map((item, i) => (
27
27
  <ListItem
28
28
  key={String(i)}
29
- className={`${itemClassName} mb-1.5`}
29
+ className={itemClassName}
30
30
  isDotted={isDotted}
31
31
  size={listItemSize}
32
32
  >
@@ -73,7 +73,6 @@ export const SwipeListContainer = JSX<SwipeListContainerProps>(
73
73
  <div
74
74
  className={style('box-border overflow-auto no-scrollbar', listType, className)}
75
75
  style={containerStyle}
76
- role="list"
77
76
  ref={containerRef}
78
77
  >
79
78
  {mapChildren((child, idx) => (
@@ -1,8 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import {
4
- useIntersectionObserver,
5
4
  type IntersectionObserverOptions,
5
+ useIntersectionObserver,
6
6
  } from '../../hooks/useIntersectionObserver';
7
7
 
8
8
  /**
@@ -33,7 +33,6 @@ export const SwipeListItem = JSX<SwipeListControlItemProps>(
33
33
  <div
34
34
  className={`inline-block snap-always box-border ${className}`}
35
35
  style={style}
36
- role="listitem"
37
36
  aria-current={Boolean(idx === activeIndex)}
38
37
  ref={ref}
39
38
  >
@@ -1 +0,0 @@
1
- export declare const AccordionItemsList: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
@@ -1,3 +0,0 @@
1
- import type { JSXBlock } from '../../model/JSXBlock';
2
- import type { AccordionItemProps } from './AccordionItemProps';
3
- export declare const AccordionItem: JSXBlock<AccordionItemProps>;
@@ -1,3 +0,0 @@
1
- import type { JSXBlock } from '../../model/JSXBlock';
2
- import type { AccordionItemProps } from './AccordionItemProps';
3
- export declare const AccordionItem: JSXBlock<AccordionItemProps>;
@@ -1,14 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- /**
3
- * @title Элемент аккордиона
4
- */
5
- export interface AccordionItemContent {
6
- /**
7
- * @title Название
8
- * @default Список
9
- */
10
- label?: string;
11
- /** @title Отображать в раскрытом виде */
12
- isExpanded?: boolean;
13
- labelIcon?: Picture;
14
- }
@@ -1,4 +0,0 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
- import type { AccordionItemContent } from './AccordionItemContent';
3
- export interface AccordionItemProps extends AccordionItemContent, UniBlockProps {
4
- }
@@ -1,5 +0,0 @@
1
- import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
2
- import type { OtherProductsItemContent } from './OtherProductsItemContent';
3
- export interface OtherProductsItemProps extends OtherProductsItemContent, UniBlockProps {
4
- }
5
- export declare const OtherProductsItem: JSXBlock<OtherProductsItemProps>;
@@ -1,12 +0,0 @@
1
- /**
2
- * @title Элемент списка
3
- */
4
- export interface OtherProductsItemContent {
5
- /**
6
- * @title Название
7
- * @default Список
8
- */
9
- label?: string;
10
- /** @title Отображать в раскрытом виде */
11
- isUnfolded?: boolean;
12
- }
@@ -1 +0,0 @@
1
- export declare const AccordionItemsList: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
@@ -1,6 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.AccordionItemsList = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- exports.AccordionItemsList = (0, uni_jsx_1.JSX)(({ children }) => ((0, jsx_runtime_1.jsx)("ul", { className: "list-none m-0 p-0", children: children })));
6
- //# sourceMappingURL=AccordionItemsList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccordionItemsList.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItemsList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAE3B,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtD,+BAAI,SAAS,EAAC,mBAAmB,YAAE,QAAQ,GAAM,CAClD,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { JSXBlock } from '../../model/JSXBlock';
2
- import type { AccordionItemProps } from './AccordionItemProps';
3
- export declare const AccordionItem: JSXBlock<AccordionItemProps>;
@@ -1,14 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.AccordionItem = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const renderChildren_1 = require("../../BlockRenderer/renderChildren");
6
- const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
7
- const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
8
- const Img_1 = require("../../ui-kit/Img/Img");
9
- const Text_1 = require("../../ui-kit/Text/Text");
10
- const icons = ['PlusIcon', 'MinusIcon'];
11
- exports.AccordionItem = (0, uni_jsx_1.JSX)(({ className = '', label = '', isExpanded, ...rest }) => ((0, jsx_runtime_1.jsx)("li", { className: `border-0 border-b border-solid border-main-divider last:border-b-0 ${className}`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "grid grid-cols-12 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: (0, renderChildren_1.renderChildren)(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(FoldButton, { label: label, icon: icons[Number(isUnfolded)], onClick: onToggle })) }) })));
12
- exports.AccordionItem.childrenTypes = [];
13
- const FoldButton = (0, uni_jsx_1.JSX)(({ label, icon, onClick }) => ((0, jsx_runtime_1.jsxs)("button", { className: "border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer", onClick: onClick, children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", font: "font-medium", children: label }), (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon }, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })] })));
14
- //# sourceMappingURL=AccordionItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/components/AccordionItem/AccordionItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAEpE,6DAA0D;AAC1D,2EAAwE;AAExE,8CAA2C;AAC3C,iDAA8C;AAG9C,MAAM,KAAK,GAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAEvC,QAAA,aAAa,GAAiC,IAAA,aAAG,EAC5D,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACvD,+BACE,SAAS,EAAE,sEAAsE,SAAS,EAAE,YAE5F,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,IAAI,EACvB,iBAAiB,EAAE,UAAU,EAC7B,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,iCAAe,IAAC,SAAS,EAAC,mCAAmC,EAAC,UAAU,EAAE,UAAU,YAClF,IAAA,+BAAc,EAAC,IAAI,CAAC,GACL,CACnB,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,UAAU,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,GAAI,CACjF,GACD,GACC,CACN,CACF,CAAC;AAEF,qBAAa,CAAC,aAAa,GAAG,EAAE,CAAC;AAQjC,MAAM,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACpE,oCACE,SAAS,EAAC,oHAAoH,EAC9H,OAAO,EAAE,OAAO,aAEhB,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,aAAa,YACpC,KAAK,GACD,EACP,uBAAC,SAAG,IACF,KAAK,EAAE,EAAE,IAAI,EAAE,EACf,SAAS,EAAC,iCAAiC,EAC3C,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,IACK,CACV,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { JSXBlock } from '../../model/JSXBlock';
2
- import type { AccordionItemProps } from './AccordionItemProps';
3
- export declare const AccordionItem: JSXBlock<AccordionItemProps>;
@@ -1,19 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.AccordionItem = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const getParentBlockContent_1 = require("../../BlockRenderer/getParentBlockContent");
6
- const renderChildren_1 = require("../../BlockRenderer/renderChildren");
7
- const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
8
- const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
9
- const Img_1 = require("../../ui-kit/Img/Img");
10
- const Text_1 = require("../../ui-kit/Text/Text");
11
- const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
12
- const icons = ['PlusIcon', 'MinusIcon'];
13
- exports.AccordionItem = (0, uni_jsx_1.JSX)(({ className = '', label = '', labelIcon, isExpanded, ...rest }) => {
14
- const { bordered } = (0, getParentBlockContent_1.getParentBlockContent)(rest.options, {});
15
- return ((0, jsx_runtime_1.jsx)("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider ${className}`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: (0, renderChildren_1.renderChildren)(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(FoldButton, { className: bordered ? '' : 'py-3.5 px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, onClick: onToggle })) }) }));
16
- });
17
- exports.AccordionItem.childrenTypes = [];
18
- const FoldButton = (0, uni_jsx_1.JSX)(({ className, icon, label, primaryIcon, onClick }) => ((0, jsx_runtime_1.jsxs)("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex group-hover:text-primary-main", children: [primaryIcon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(primaryIcon), className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m-title-xs", font: "font-medium", children: label })] }), (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "flex-shrink-0", image: (0, getIconWithVersion_1.getIconWithVersion)({ icon: icon }), width: "24", height: "24", asSVG: true })] })));
19
- //# sourceMappingURL=AccordionItem.mobile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccordionItem.mobile.js","sourceRoot":"","sources":["../../../src/components/AccordionItem/AccordionItem.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qFAAkF;AAClF,uEAAoE;AAGpE,6DAA0D;AAC1D,2EAAwE;AAExE,8CAA2C;AAC3C,iDAA8C;AAC9C,uEAAoE;AAIpE,MAAM,KAAK,GAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAEvC,QAAA,aAAa,GAAiC,IAAA,aAAG,EAC5D,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACjE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6CAAqB,EAAC,IAAI,CAAC,OAAO,EAAE,EAAsB,CAAC,CAAC;IAEjF,OAAO,CACL,+BACE,SAAS,EAAE,GACT,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,mCACzC,qCAAqC,SAAS,EAAE,YAEhD,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,IAAI,EACvB,iBAAiB,EAAE,UAAU,EAC7B,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,iCAAe,IACd,SAAS,EAAC,qDAAqD,EAC/D,UAAU,EAAE,UAAU,YAErB,IAAA,+BAAc,EAAC,IAAI,CAAC,GACL,CACnB,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,UAAU,IACT,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,EACxC,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,WAAW,EAAE,SAAS,EACtB,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,GACC,CACN,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,qBAAa,CAAC,aAAa,GAAG,EAAE,CAAC;AAUjC,MAAM,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC5F,oCACE,SAAS,EAAE,qHAAqH,SAAS,EAAE,EAC3I,OAAO,EAAE,OAAO,aAEhB,iCAAK,SAAS,EAAC,oCAAoC,aAChD,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,SAAG,IACF,KAAK,EAAE,IAAA,uCAAkB,EAAC,WAAW,CAAC,EACtC,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,WAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,IAAI,EAAC,aAAa,YAC5C,KAAK,GACD,IACH,EACN,uBAAC,SAAG,IACF,SAAS,EAAC,eAAe,EACzB,KAAK,EAAE,IAAA,uCAAkB,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EACzC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,IACK,CACV,CAAC,CAAC"}
@@ -1,14 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- /**
3
- * @title Элемент аккордиона
4
- */
5
- export interface AccordionItemContent {
6
- /**
7
- * @title Название
8
- * @default Список
9
- */
10
- label?: string;
11
- /** @title Отображать в раскрытом виде */
12
- isExpanded?: boolean;
13
- labelIcon?: Picture;
14
- }
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=AccordionItemContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccordionItemContent.js","sourceRoot":"","sources":["../../../src/components/AccordionItem/AccordionItemContent.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
- import type { AccordionItemContent } from './AccordionItemContent';
3
- export interface AccordionItemProps extends AccordionItemContent, UniBlockProps {
4
- }
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=AccordionItemProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccordionItemProps.js","sourceRoot":"","sources":["../../../src/components/AccordionItem/AccordionItemProps.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
2
- import type { OtherProductsItemContent } from './OtherProductsItemContent';
3
- export interface OtherProductsItemProps extends OtherProductsItemContent, UniBlockProps {
4
- }
5
- export declare const OtherProductsItem: JSXBlock<OtherProductsItemProps>;
@@ -1,18 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.OtherProductsItem = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const getParentBlockContent_1 = require("../../BlockRenderer/getParentBlockContent");
6
- const renderChildren_1 = require("../../BlockRenderer/renderChildren");
7
- const DefaultFoldButton_1 = require("../../ui-kit/Foldable/DefaultFoldButton");
8
- const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
9
- const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
10
- const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
11
- exports.OtherProductsItem = (0, uni_jsx_1.JSX)(({ className, label = '', isUnfolded: unfoldedByDefault, ...rest }) => {
12
- const { colorPalette } = (0, getParentBlockContent_1.getParentBlockContent)(rest.options, {});
13
- return ((0, jsx_runtime_1.jsx)("div", { className: `border-0 border-b border-solid border-main-divider ${className}`, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { unfoldedByDefault: unfoldedByDefault, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)("div", { className: "box-border", children: (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: "grid grid-cols-12 gap-1 border-box", isUnfolded: isUnfolded, children: (0, renderChildren_1.renderChildren)(rest) }) })), renderFoldButton: ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { label: label, icon: icons[Number(isUnfolded)], dataTheme: colorPalette || rest.options?.page?.colorPalette, onClick: onToggle })) }) }));
14
- });
15
- exports.OtherProductsItem.childrenTypes = {
16
- exclude: ['OtherProductsItem'],
17
- };
18
- //# sourceMappingURL=OtherProductsItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OtherProductsItem.js","sourceRoot":"","sources":["../../../src/components/OtherProductsItem/OtherProductsItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qFAAkF;AAClF,uEAAoE;AAEpE,+EAA4E;AAC5E,6DAA0D;AAC1D,2EAAwE;AAOxE,MAAM,KAAK,GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAE9C,QAAA,iBAAiB,GAAqC,IAAA,aAAG,EACpE,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpE,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,6CAAqB,EAAC,IAAI,CAAC,OAAO,EAAE,EAA0B,CAAC,CAAC;IAEzF,OAAO,CACL,gCAAK,SAAS,EAAE,sDAAsD,SAAS,EAAE,YAC/E,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,iBAAiB,EACpC,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,gCAAK,SAAS,EAAC,YAAY,YACzB,uBAAC,iCAAe,IACd,SAAS,EAAC,oCAAoC,EAC9C,UAAU,EAAE,UAAU,YAErB,IAAA,+BAAc,EAAC,IAAI,CAAC,GACL,GACd,CACP,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,uBAAC,qCAAiB,IAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/B,SAAS,EAAE,YAAY,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,YAAY,EAC3D,OAAO,EAAE,QAAQ,GACjB,CACH,GACD,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,yBAAiB,CAAC,aAAa,GAAG;IAChC,OAAO,EAAE,CAAC,mBAAmB,CAAC;CAC/B,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * @title Элемент списка
3
- */
4
- export interface OtherProductsItemContent {
5
- /**
6
- * @title Название
7
- * @default Список
8
- */
9
- label?: string;
10
- /** @title Отображать в раскрытом виде */
11
- isUnfolded?: boolean;
12
- }
@@ -1,2 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- //# sourceMappingURL=OtherProductsItemContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OtherProductsItemContent.js","sourceRoot":"","sources":["../../../src/components/OtherProductsItem/OtherProductsItemContent.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare const AccordionItemsList: import("@redneckz/uni-jsx").UNIComponent<{}, any, any>;
@@ -1,4 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- export const AccordionItemsList = JSX(({ children }) => (_jsx("ul", { className: "list-none m-0 p-0", children: children })));
4
- //# sourceMappingURL=AccordionItemsList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccordionItemsList.js","sourceRoot":"","sources":["../../../src/components/Accordion/AccordionItemsList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACtD,aAAI,SAAS,EAAC,mBAAmB,YAAE,QAAQ,GAAM,CAClD,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { JSXBlock } from '../../model/JSXBlock';
2
- import type { AccordionItemProps } from './AccordionItemProps';
3
- export declare const AccordionItem: JSXBlock<AccordionItemProps>;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- default: JSX.Element;
4
- };
5
- export default _default;