@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
@@ -385,151 +385,8 @@
385
385
 
386
386
  const Paragraph = JSX(({ children, ...style }) => (jsx("p", { className: ['font-sans', ...Object.values(style)].join(' '), children: children })));
387
387
 
388
- const AccordionItemsList = JSX(({ children }) => (jsx("ul", { className: "list-none m-0 p-0", children: children })));
389
-
390
- const Accordion = JSX(({ title, description, className = '', ...rest }) => (jsxs(BlockWrapper, { className: `py-6 px-4 ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (jsx("div", { className: "mb-5", children: jsx(Paragraph, { size: "text-m", font: "font-light", align: "text-center", children: description }) })) : null, jsx(AccordionItemsList, { children: renderChildren(rest) })] })));
391
- Accordion.childrenTypes = ['AccordionItem'];
392
-
393
- function getParentBlockDef(options) {
394
- return options?.parent || {};
395
- }
396
-
397
- function getParentBlockContent(options, defaultContent) {
398
- const { content } = getParentBlockDef(options);
399
- return content || defaultContent;
400
- }
401
-
402
- const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
403
- const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
404
- const onToggle = useCallback(() => {
405
- setIsUnfolded((_) => !_);
406
- }, []);
407
- const sectionNode = renderFoldableSection({ isUnfolded, onToggle });
408
- const buttonNode = renderFoldButton ? renderFoldButton({ isUnfolded, onToggle }) : null;
409
- return isFoldButtonOnTop ? (jsxs("div", { className: className, children: [buttonNode, sectionNode] })) : (jsxs("div", { className: className, children: [sectionNode, buttonNode] }));
410
- });
411
-
412
- const FoldableSection = JSX(({ className = '', isUnfolded, children }) => {
413
- const containerRef = useRef(null);
414
- useEffect(() => {
415
- if (containerRef.current) {
416
- containerRef.current.style.maxHeight = isUnfolded
417
- ? `${containerRef.current.scrollHeight}px`
418
- : '';
419
- }
420
- }, [isUnfolded, children?.length]);
421
- return (jsx("div", { ref: containerRef, className: `transition-max-h duration-300 overflow-hidden ${containerRef.current || !isUnfolded ? 'max-h-0' : ''} ${className}`, children: children }));
422
- });
423
-
424
- function useRouter() {
425
- return useRouter._impl();
426
- }
427
- useRouter._impl = () => ({
428
- href: globalThis.location?.href || '/',
429
- pathname: globalThis.location?.pathname || '/',
430
- query: {},
431
- push: () => {
432
- // Do nothing
433
- },
434
- replace: () => {
435
- // Do nothing
436
- },
437
- });
438
- useRouter.setup = (impl) => {
439
- useRouter._impl = impl;
440
- };
441
-
442
- const dirname = (path) => path?.split('/').slice(0, -1).join('/');
443
-
444
- const isURL = (href) => Boolean(href?.includes(':'));
445
- const isLocalURL = (href, target) => Boolean(href && !isURL(href) && (!target || target === '_self'));
446
- const isHash = (href) => Boolean(href?.startsWith('#'));
447
- const withoutQuery = (href) => (href || '').replace(/\?.*/, '').replace(/\/$/, '');
448
- const joinPath = (...path) => path.filter(Boolean).join('/').replace(/\/+/g, '/');
449
-
450
- var url = /*#__PURE__*/Object.freeze({
451
- __proto__: null,
452
- isURL: isURL,
453
- isLocalURL: isLocalURL,
454
- isHash: isHash,
455
- withoutQuery: withoutQuery,
456
- joinPath: joinPath
457
- });
458
-
459
- const adjustHref = (router) => (href) => {
460
- if (!href || isURL(href) || (projectSettings.CDN && href.startsWith(projectSettings.CDN))) {
461
- return href;
462
- }
463
- const isRelativeToBase = href.startsWith('/');
464
- return joinPath(projectSettings.BASE_PATH, isRelativeToBase ? '/' : dirname(router.pathname), href);
465
- };
466
-
467
- const svgUseStyleMap = {
468
- normal: '',
469
- color: 'text-primary-main',
470
- black: 'text-black',
471
- white: 'text-black',
472
- };
473
- const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color', asSVG, ...imgProps }) => {
474
- const router = useRouter();
475
- const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons', `${name}.svg`));
476
- if (asSVG && iconVersion !== 'normal') {
477
- return (jsx(Background, { className: className, children: jsxs("svg", { className: style(getSvgSize(imgProps.width), svgUseStyleMap[iconVersion], iconVersion === 'white' ? 'invert' : '', imageClassName), ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
478
- }
479
- return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
480
- });
481
- const getSvgSize = (width) => (width ? '' : 'w-full h-full');
482
- const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
483
-
484
- const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
485
- const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', isMobile = false, pathPrefix }) => {
486
- const router = useRouter();
487
- const pictureStyles = isMobile ? 'flex' : 'flex-none';
488
- return (jsxs("picture", { className: `${pictureStyles} ${className}`, children: [image?.sources?.length
489
- ? image.sources
490
- .filter((_) => _?.src)
491
- .sort(sourcesComparator)
492
- .map(({ src, format, media }, index) => (jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
493
- : null, image?.src
494
- ? renderImg({ ...image, src: adjustSrc(router, pathPrefix)(image.src) }, imageClassName, isMobile)
495
- : null] }));
496
- });
497
- const renderImg = (image, imageClassName = '', isMobile = false) => {
498
- const style = {
499
- width: image.size?.width ? `${image.size?.width}px` : '100%',
500
- height: image.size?.height ? `${image.size?.height}px` : '100%',
501
- };
502
- const title = image.title || '';
503
- const alt = image.alt || image.title;
504
- const imgStyle = isMobile ? 'm-auto' : 'm-0';
505
- return (jsx("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
506
- };
507
- const adjustSrc = (router, pathPrefix) => (src) => src && !isURL(src) ? adjustHref(router)(joinPath(pathPrefix, src)) : src;
508
- const formatToMimeType = (format) => format ? `image/${String(format)}` : undefined;
509
-
510
- const ImgInner = JSX(({ className = '', image, imageClassName = '', isMobile, pathPrefix, ...iconProps }) => {
511
- if (!image?.src && !image?.icon) {
512
- return null;
513
- }
514
- return image.icon ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: image?.iconVersion || 'normal', name: image.icon, ...iconProps })) : (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile, pathPrefix: pathPrefix }));
515
- });
516
-
517
- const Img = JSX((props) => jsx(ImgInner, { ...props, isMobile: true }));
518
-
519
- const Text = JSX(({ children, ...style }) => (jsx("span", { className: ['font-sans', ...Object.values(style)].join(' '), children: children })));
520
-
521
- const getIconWithVersion = (icon, version = 'primary') => ({
522
- ...icon,
523
- iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
524
- });
525
-
526
- const icons = ['PlusIcon', 'MinusIcon'];
527
- const AccordionItem = JSX(({ className = '', label = '', labelIcon, isExpanded, ...rest }) => {
528
- const { bordered } = getParentBlockContent(rest.options, {});
529
- return (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: jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: renderChildren(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(FoldButton, { className: bordered ? '' : 'py-3.5 px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, onClick: onToggle })) }) }));
530
- });
531
- AccordionItem.childrenTypes = [];
532
- const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (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: [jsxs("div", { className: "flex group-hover:text-primary-main", children: [primaryIcon ? (jsx(Img, { image: getIconWithVersion(primaryIcon), className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, jsx(Text, { size: "text-m-title-xs", font: "font-medium", children: label })] }), jsx(Img, { className: "flex-shrink-0", image: getIconWithVersion({ icon: icon }), width: "24", height: "24", asSVG: true })] })));
388
+ const Accordion = JSX(({ title, description, className = '', ...rest }) => (jsxs(BlockWrapper, { className: `py-6 px-4 ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (jsx("div", { className: "mb-5", children: jsx(Paragraph, { size: "text-m", font: "font-light", align: "text-center", children: description }) })) : null, jsx("div", { className: "list-none m-0 p-0", children: renderChildren(rest) })] })));
389
+ Accordion.childrenTypes = ['Accordion'];
533
390
 
534
391
  const mapChildren = (mapper) => (children) => {
535
392
  if (children === null || children === undefined) {
@@ -555,7 +412,7 @@
555
412
  }
556
413
  }, [onIntersection, idx]);
557
414
  const ref = useIntersectionObserver(observerCallback, observerOptions);
558
- return (jsx("div", { className: `inline-block snap-always box-border ${className}`, style: style, role: "listitem", "aria-current": Boolean(idx === activeIndex), ref: ref, children: children }));
415
+ return (jsx("div", { className: `inline-block snap-always box-border ${className}`, style: style, "aria-current": Boolean(idx === activeIndex), ref: ref, children: children }));
559
416
  });
560
417
 
561
418
  const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]', 'min-w-[25%]'];
@@ -580,7 +437,7 @@
580
437
  ...(isVerticalList ? getContainerHeight(minHeight) : {}),
581
438
  gap: `${gap}px`,
582
439
  };
583
- return (jsx("div", { className: style('box-border overflow-auto no-scrollbar', listType, className), style: containerStyle, role: "list", ref: containerRef, children: mapChildren((child, idx) => (jsx(SwipeListItem, { className: style(snapAlign, visibleItemCount ? childStyleMap[visibleItemCount - 1] : '', isVerticalList ? 'h-full' : ''), style: isHorizontalList ? getContainerOffset(padding / 4) : {}, activeIndex: activeIndex, idx: idx, observerOptions: observerOptions, onIntersection: handleIntersection, children: child }, String(idx))))(children) }));
440
+ return (jsx("div", { className: style('box-border overflow-auto no-scrollbar', listType, className), style: containerStyle, ref: containerRef, children: mapChildren((child, idx) => (jsx(SwipeListItem, { className: style(snapAlign, visibleItemCount ? childStyleMap[visibleItemCount - 1] : '', isVerticalList ? 'h-full' : ''), style: isHorizontalList ? getContainerOffset(padding / 4) : {}, activeIndex: activeIndex, idx: idx, observerOptions: observerOptions, onIntersection: handleIntersection, children: child }, String(idx))))(children) }));
584
441
  });
585
442
  // Styles used to compensate outer container padding to get rid of clipping effect
586
443
  const getContainerOffset = (padding, additionalPadding = 0) => ({
@@ -700,6 +557,31 @@
700
557
  return (jsxs("div", { className: style(className, listType === 'vertical-list' ? 'relative h-full' : ''), children: [jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, listType: listType, minHeight: minHeight, children: children }), showDots ? (jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount, listType: listType, version: version })) : null] }));
701
558
  });
702
559
 
560
+ const dirname = (path) => path?.split('/').slice(0, -1).join('/');
561
+
562
+ const isURL = (href) => Boolean(href?.includes(':'));
563
+ const isLocalURL = (href, target) => Boolean(href && !isURL(href) && (!target || target === '_self'));
564
+ const isHash = (href) => Boolean(href?.startsWith('#'));
565
+ const withoutQuery = (href) => (href || '').replace(/\?.*/, '').replace(/\/$/, '');
566
+ const joinPath = (...path) => path.filter(Boolean).join('/').replace(/\/+/g, '/');
567
+
568
+ var url = /*#__PURE__*/Object.freeze({
569
+ __proto__: null,
570
+ isURL: isURL,
571
+ isLocalURL: isLocalURL,
572
+ isHash: isHash,
573
+ withoutQuery: withoutQuery,
574
+ joinPath: joinPath
575
+ });
576
+
577
+ const adjustHref = (router) => (href) => {
578
+ if (!href || isURL(href) || (projectSettings.CDN && href.startsWith(projectSettings.CDN))) {
579
+ return href;
580
+ }
581
+ const isRelativeToBase = href.startsWith('/');
582
+ return joinPath(projectSettings.BASE_PATH, isRelativeToBase ? '/' : dirname(router.pathname), href);
583
+ };
584
+
703
585
  /* eslint-disable @typescript-eslint/ban-types */
704
586
  const handlerDecorator = (handler, targetContent) => {
705
587
  return handlerDecorator._impl(handler, targetContent);
@@ -709,6 +591,24 @@
709
591
  handlerDecorator._impl = impl;
710
592
  };
711
593
 
594
+ function useRouter() {
595
+ return useRouter._impl();
596
+ }
597
+ useRouter._impl = () => ({
598
+ href: globalThis.location?.href || '/',
599
+ pathname: globalThis.location?.pathname || '/',
600
+ query: {},
601
+ push: () => {
602
+ // Do nothing
603
+ },
604
+ replace: () => {
605
+ // Do nothing
606
+ },
607
+ });
608
+ useRouter.setup = (impl) => {
609
+ useRouter._impl = impl;
610
+ };
611
+
712
612
  function useLink(isRemote = false) {
713
613
  const router = useRouter();
714
614
  return (props) => ({
@@ -807,6 +707,61 @@
807
707
  const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
808
708
  const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
809
709
 
710
+ const svgUseStyleMap = {
711
+ normal: '',
712
+ color: 'text-primary-main',
713
+ black: 'text-black',
714
+ white: 'text-black',
715
+ };
716
+ const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color', asSVG, ...imgProps }) => {
717
+ const router = useRouter();
718
+ const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons', `${name}.svg`));
719
+ if (asSVG && iconVersion !== 'normal') {
720
+ return (jsx(Background, { className: className, children: jsxs("svg", { className: style(getSvgSize(imgProps.width), svgUseStyleMap[iconVersion], iconVersion === 'white' ? 'invert' : '', imageClassName), ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
721
+ }
722
+ if (!className.includes('h-')) {
723
+ imgProps['style'] = { height: `${imgProps.height}px` };
724
+ }
725
+ return (jsx("img", { className: className, src: href, alt: alt, title: title, "aria-hidden": "true", ...imgProps }));
726
+ });
727
+ const getSvgSize = (width) => (width ? '' : 'w-full h-full');
728
+ const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
729
+
730
+ const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
731
+ const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', isMobile = false, pathPrefix }) => {
732
+ const router = useRouter();
733
+ const pictureStyles = isMobile ? 'flex' : 'flex-none';
734
+ return (jsxs("picture", { className: `${pictureStyles} ${className}`, children: [image?.sources?.length
735
+ ? image.sources
736
+ .filter((_) => _?.src)
737
+ .sort(sourcesComparator)
738
+ .map(({ src, format, media }, index) => (jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
739
+ : null, image?.src
740
+ ? renderImg({ ...image, src: adjustSrc(router, pathPrefix)(image.src) }, imageClassName, isMobile)
741
+ : null] }));
742
+ });
743
+ const renderImg = (image, imageClassName = '', isMobile = false) => {
744
+ const style = {
745
+ width: image.size?.width ? `${image.size?.width}px` : '100%',
746
+ height: image.size?.height ? `${image.size?.height}px` : '100%',
747
+ };
748
+ const title = image.title || '';
749
+ const alt = image.alt || image.title;
750
+ const imgStyle = isMobile ? 'm-auto' : 'm-0';
751
+ return (jsx("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
752
+ };
753
+ const adjustSrc = (router, pathPrefix) => (src) => src && !isURL(src) ? adjustHref(router)(joinPath(pathPrefix, src)) : src;
754
+ const formatToMimeType = (format) => format ? `image/${String(format)}` : undefined;
755
+
756
+ const ImgInner = JSX(({ className = '', image, imageClassName = '', isMobile, pathPrefix, ...iconProps }) => {
757
+ if (!image?.src && !image?.icon) {
758
+ return null;
759
+ }
760
+ return image.icon ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: image?.iconVersion || 'normal', name: image.icon, ...iconProps })) : (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile, pathPrefix: pathPrefix }));
761
+ });
762
+
763
+ const Img = JSX((props) => jsx(ImgInner, { ...props, isMobile: true }));
764
+
810
765
  const headingStyle = (isFillGradient = false) => (isFillGradient ? 'text-white' : '');
811
766
  const subtitleStyle = (isFillGradient = false) => `text-s mb-3.5 ${isFillGradient ? 'text-white' : 'text-secondary-text/80'}`;
812
767
  const HeaderCell = JSX(({ icon, image, title, subtitle, isFillGradient }) => (jsxs("div", { role: "columnheader", children: [icon ? (jsx(Img, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })) : null, image?.src && (jsx("div", { className: "mb-3.5", children: jsx(Img, { image: image }) })), title ? (jsx(Heading, { headingType: "h4", className: headingStyle(isFillGradient), title: title })) : null, subtitle ? jsx("div", { className: subtitleStyle(isFillGradient), children: subtitle }) : null] })));
@@ -948,6 +903,11 @@
948
903
 
949
904
  const SearchBar = JSX((props) => (jsx(SearchBarInner, { ...props, isMobile: true })));
950
905
 
906
+ const getIconWithVersion = (icon, version = 'primary') => ({
907
+ ...icon,
908
+ iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
909
+ });
910
+
951
911
  const LinkList = JSX(({ className = '', documents, ...rest }) => (jsx(BlockWrapper, { className: `mt-2.5 ${className}`, ...rest, children: jsx("ul", { className: "flex flex-col text-s text-secondary-text p-0", children: documents?.length ? renderLinkListItem(documents) : null }) })));
952
912
  const renderLinkListItem = (documents) => {
953
913
  return documents.map((doc, i) => {
@@ -987,6 +947,72 @@
987
947
  return (jsx("div", { className: `col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${className}`, children: href ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "flex justify-center align-middle rounded-md bg-primary-main w-12 h-12", children: jsx(Logo, { className: "w-8", bgColor: "transparent", showTitle: true }) }), jsxs("a", { href: href, target: "_blank", className: "flex flex-col justify-center pl-3", children: [jsx("div", { className: "text-s font-medium mb-[3px]", children: title }), jsx("div", { className: "text-s text-secondary-text", children: description })] })] })) : null }));
988
948
  });
989
949
 
950
+ function getParentBlockDef(options) {
951
+ return options?.parent || {};
952
+ }
953
+
954
+ function getParentBlockContent(options, defaultContent) {
955
+ const { content } = getParentBlockDef(options);
956
+ return content || defaultContent;
957
+ }
958
+
959
+ const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', onClick }) => {
960
+ const STATE_STYLE = 'hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none';
961
+ const DIMENSIONS_STYLE = 'flex justify-center w-full px-0 py-5';
962
+ return (jsxs("button", { className: [
963
+ 'border border-transparent bg-primary-main font-sans text-white cursor-pointer',
964
+ STATE_STYLE,
965
+ DIMENSIONS_STYLE,
966
+ className,
967
+ ].join(' '), "data-theme": dataTheme, onClick: onClick, children: [jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (jsx(Img, { image: {
968
+ icon,
969
+ iconVersion: 'white',
970
+ }, className: "flex-shrink-0 my-auto", width: "20", height: "20", asSVG: true })) : null] }));
971
+ });
972
+
973
+ const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
974
+ const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
975
+ const onToggle = useCallback(() => {
976
+ setIsUnfolded((_) => !_);
977
+ }, []);
978
+ const sectionNode = renderFoldableSection({ isUnfolded, onToggle });
979
+ const buttonNode = renderFoldButton ? renderFoldButton({ isUnfolded, onToggle }) : null;
980
+ return isFoldButtonOnTop ? (jsxs("div", { className: className, children: [buttonNode, sectionNode] })) : (jsxs("div", { className: className, children: [sectionNode, buttonNode] }));
981
+ });
982
+
983
+ const FoldableSection = JSX(({ className = '', isUnfolded, children }) => {
984
+ const containerRef = useRef(null);
985
+ useEffect(() => {
986
+ if (containerRef.current) {
987
+ containerRef.current.style.maxHeight = isUnfolded
988
+ ? `${containerRef.current.scrollHeight}px`
989
+ : '';
990
+ }
991
+ }, [isUnfolded, children?.length]);
992
+ return (jsx("div", { ref: containerRef, className: `transition-max-h duration-300 overflow-hidden ${containerRef.current || !isUnfolded ? 'max-h-0' : ''} ${className}`, children: children }));
993
+ });
994
+
995
+ const Text = JSX(({ children, ...style }) => (jsx("span", { className: ['font-sans', ...Object.values(style)].join(' '), children: children })));
996
+
997
+ const RollupItem = JSX(({ className = '', label = 'Развернуть', isExpanded, isFoldButtonOnTop = true, version = 'primary', ...rest }) => {
998
+ const { bordered } = getParentBlockContent(rest.options, {});
999
+ return (jsx(BlockWrapper, { className: style('border-b border-solid border-main-divider w-full', bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0', className), tag: "div", version: "transparent", ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: renderChildren(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ version, label, isUnfolded, onToggle }) }) }));
1000
+ });
1001
+ RollupItem.childrenTypes = {
1002
+ exclude: ['RollupItem', 'Accordion', 'OtherProducts'],
1003
+ };
1004
+ const renderFoldButton = ({ version, label: defaultLabel, isUnfolded, onToggle, className = '', primaryIcon, }) => {
1005
+ const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
1006
+ return version === 'primary' ? (renderPrimaryFoldButton({
1007
+ label,
1008
+ icon: isUnfolded ? 'MinusIcon' : 'PlusIcon',
1009
+ onToggle,
1010
+ className,
1011
+ primaryIcon,
1012
+ })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
1013
+ };
1014
+ const renderPrimaryFoldButton = ({ label, icon, primaryIcon, onToggle, }) => (jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full text-primary-text group cursor-pointer py-3.5 px-0`, onClick: onToggle, children: [jsxs("div", { className: "flex group-hover:text-primary-main", children: [primaryIcon ? (jsx(Img, { image: { ...getIconWithVersion({ ...primaryIcon }) }, className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, jsx(Text, { size: "text-m-title-xs", font: "font-medium", children: label })] }), jsx(Img, { className: "flex-shrink-0", image: { ...getIconWithVersion({ icon: icon }) }, width: "24", height: "24", asSVG: true })] }));
1015
+
990
1016
  const Contacts = JSX(({ className = '', items, hasButton }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
991
1017
  const renderContact = (item, index) => {
992
1018
  const { type, text, description } = item;
@@ -1074,7 +1100,7 @@
1074
1100
  const fallback = rest.options?.page?.fallback;
1075
1101
  const sitemap = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
1076
1102
  const { documents, relatedEnterprises, contacts, socialMedia, horizontalNavigationTitle } = useSWRResource(projectSettings.FOOTER || 'footer', fallback);
1077
- return (jsxs("footer", { className: `font-sans px-4 py-[26px] bg-white ${className}`, children: [jsx(Contacts, { className: "overflow-hidden", items: contacts, hasButton: true }), jsx(AccordionItemsList, { children: sitemap.topItems?.map((item, i) => (jsx(AccordionItem, { label: item.text, children: jsx(LinkList, { documents: item.items }) }, String(i)))) }), jsx("div", { children: sitemap?.dispositions?.map(renderSubMenuItem) }), jsx(MobileAppTile, { title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android", ...rest }), jsx(SearchBar, { className: "grow" }), jsx(SocialMedia, { className: "pb-4", media: socialMedia }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
1103
+ return (jsxs(BlockWrapper, { tag: "footer", className: `px-4 py-[26px] ${className}`, ...rest, children: [jsx(Contacts, { className: "overflow-hidden", items: contacts, hasButton: true }), jsx("div", { className: "m-0 p-0", children: sitemap.topItems?.map((item, i) => (jsx(RollupItem, { label: item?.text, children: jsx(LinkList, { documents: item.items }) }, String(i)))) }), jsx("div", { children: sitemap?.dispositions?.map(renderSubMenuItem) }), jsx(MobileAppTile, { title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android", ...rest }), jsx(SearchBar, { className: "grow" }), jsx(SocialMedia, { className: "pb-4", media: socialMedia }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
1078
1104
  });
1079
1105
  const renderSubMenuItem = (menu, i) => {
1080
1106
  const { icon, href, text } = menu;
@@ -1169,7 +1195,7 @@
1169
1195
  const activeSubItem = findActiveSubItem(router)(subItems);
1170
1196
  const [burgerMenuShow, setBurgerMenuShow] = useState(false);
1171
1197
  const handleBurgerMenuShow = useCallback(() => setBurgerMenuShow((_) => !_), []);
1172
- return (jsxs(BlockWrapper, { tag: "header", version: version, ...rest, children: [jsxs("div", { className: "container px-4 py-0 box-border", children: [jsx(HeaderTop, { onClick: handleBurgerMenuShow, bgColor: bgColor, logo: logo }), jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-12", children: jsx("div", { className: "flex no-scrollbar horizontal-list h-full items-center", children: subItems?.map((_, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-s", active: _ === activeSubItem, ..._ }, String(i)))) }) })] }), burgerMenuShow ? (jsx(HeaderBurger, { onClick: handleBurgerMenuShow, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: jsx(AccordionItemsList, { children: topItems?.map((item, i) => (jsx(AccordionItem, { label: item.text, children: jsx(LinkList, { documents: item.items }) }, String(i)))) }) })) : null] }));
1198
+ return (jsxs(BlockWrapper, { tag: "header", version: version, ...rest, children: [jsxs("div", { className: "container px-4 py-0 box-border", children: [jsx(HeaderTop, { onClick: handleBurgerMenuShow, bgColor: bgColor, logo: logo }), jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-12", children: jsx("div", { className: "flex no-scrollbar horizontal-list h-full items-center", children: subItems?.map((_, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-s", active: _ === activeSubItem, ..._ }, String(i)))) }) })] }), burgerMenuShow ? (jsx(HeaderBurger, { onClick: handleBurgerMenuShow, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: jsx("div", { className: "list-none m-0 p-0", children: topItems?.map((item, i) => (jsx(RollupItem, { label: item.text, children: jsx(LinkList, { documents: item.items }) }, String(i)))) }) })) : null] }));
1173
1199
  });
1174
1200
 
1175
1201
  const headlineVersionStyles = {
@@ -1205,9 +1231,10 @@
1205
1231
  },
1206
1232
  };
1207
1233
 
1208
- const Headline = JSX(({ className, title, description, headlineVersion = 'XL', align = 'text-center', as, ...rest }) => {
1234
+ const Headline = JSX(({ className, title, description, headlineVersion = 'XL', align = 'text-center', as, isPadding = true, ...rest }) => {
1209
1235
  const versionStyle = headlineVersionStyles[headlineVersion];
1210
- return (jsxs(BlockWrapper, { className: style('flex flex-col p-12 group-data-secondary:bg-primary-main group-data-secondary:text-white', versionStyle.wrapper, className), ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { color: "group-data-secondary:text-white/80", size: versionStyle.descriptionSize, align: align, children: description })) : null] }));
1236
+ const paddingStyle = isPadding ? 'p-12' : '';
1237
+ return (jsxs(BlockWrapper, { className: style('flex flex-col group-data-secondary:bg-primary-main group-data-secondary:text-white', paddingStyle, versionStyle.wrapper, className), ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { color: "group-data-secondary:text-white/80", size: versionStyle.descriptionSize, align: align, children: description })) : null] }));
1211
1238
  });
1212
1239
 
1213
1240
  const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
@@ -1323,7 +1350,7 @@
1323
1350
  M: 'ml-3',
1324
1351
  L: 'ml-4',
1325
1352
  };
1326
- const List = JSX(({ className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: `text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${TEXT_SIZE_MAP[listItemSize]} ${hasIndent ? ITEM_INDENT_MAP[listItemSize] : ''} ${className}`, role: "list", children: items.map((item, i) => (jsx(ListItem, { className: `${itemClassName} mb-1.5`, isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
1353
+ const List = JSX(({ className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: `text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${TEXT_SIZE_MAP[listItemSize]} ${hasIndent ? ITEM_INDENT_MAP[listItemSize] : ''} ${className}`, role: "list", children: items.map((item, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
1327
1354
 
1328
1355
  const BaseTile = JSX(({ className = '', title = '', buttons, image, children }) => (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] })));
1329
1356
 
@@ -1472,9 +1499,30 @@
1472
1499
  return image?.src ? jsx(Img, { className: "pb-3 mr-auto", image: image }) : null;
1473
1500
  }
1474
1501
 
1502
+ const gapStyles = {
1503
+ XXL: 'gap-12',
1504
+ XL: 'gap-10',
1505
+ L: 'gap-8',
1506
+ M: 'gap-4',
1507
+ S: 'gap-2',
1508
+ XS: 'gap-1',
1509
+ '': '',
1510
+ };
1511
+
1512
+ const alignStyle = {
1513
+ stretch: 'items-stretch',
1514
+ left: 'items-start',
1515
+ center: 'items-center',
1516
+ right: 'items-end',
1517
+ };
1518
+ const VerticalLayout = JSX(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
1519
+ const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
1520
+ return (jsx(BlockWrapper, { className: style('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles[gap], align && alignStyle[align], className), version: version, ...rest, children: renderChildren({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
1521
+ });
1522
+ VerticalLayout.childrenTypes = [];
1523
+
1475
1524
  const Blocks = {
1476
1525
  Accordion,
1477
- AccordionItem,
1478
1526
  ComparisonTable,
1479
1527
  Footer,
1480
1528
  Header,
@@ -1483,10 +1531,12 @@
1483
1531
  LinkList,
1484
1532
  MobileAppTile,
1485
1533
  ProductBlock,
1534
+ RollupItem,
1486
1535
  StepsBlock,
1487
1536
  TariffsTable,
1488
1537
  TextBlock,
1489
1538
  Placeholder,
1539
+ VerticalLayout,
1490
1540
  };
1491
1541
 
1492
1542
  const debounce = (fn, delay = 600) => {
@@ -1616,7 +1666,7 @@
1616
1666
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
1617
1667
  }
1618
1668
 
1619
- const packageVersion = "0.8.24";
1669
+ const packageVersion = "0.8.26";
1620
1670
 
1621
1671
  exports.Blocks = Blocks;
1622
1672
  exports.ContentPage = ContentPage;