@redneckz/wildless-cms-uni-blocks 0.14.3 → 0.14.5

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 (330) hide show
  1. package/bin/migration-scripts/0.13.5.js +33 -0
  2. package/bin/migration-scripts/0.14.1.js +29 -0
  3. package/bin/migration-scripts/0.14.4.js +37 -0
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +83 -79
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/Calculator/CalculatorContent.d.ts +27 -1
  8. package/bundle/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  9. package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  10. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  11. package/bundle/components/Footer/FooterContent.d.ts +1 -4
  12. package/bundle/components/Footer/FooterDataProps.d.ts +4 -3
  13. package/bundle/components/Footer/SocialMedia.d.ts +2 -2
  14. package/bundle/model/EmptyOptionType.d.ts +1 -1
  15. package/dist/components/Blocks.js +0 -2
  16. package/dist/components/Blocks.js.map +1 -1
  17. package/dist/components/Calculator/BonusCalculatorForm.js +1 -1
  18. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  19. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +10 -10
  20. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  21. package/dist/components/Calculator/Calculator.js +16 -4
  22. package/dist/components/Calculator/Calculator.js.map +1 -1
  23. package/dist/components/Calculator/CalculatorContent.d.ts +27 -1
  24. package/dist/components/Calculator/CreditCalculatorForm.js +6 -6
  25. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  26. package/dist/components/Calculator/DepositCalculatorForm.js +8 -8
  27. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  28. package/dist/components/Calculator/constants.js +0 -1
  29. package/dist/components/Calculator/constants.js.map +1 -1
  30. package/dist/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  31. package/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -1
  32. package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  33. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  34. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  35. package/dist/components/Carousel/Carousel.js +0 -1
  36. package/dist/components/Carousel/Carousel.js.map +1 -1
  37. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  38. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  39. package/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
  40. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  41. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  42. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  43. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  44. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  45. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  46. package/dist/components/Footer/Footer.mobile.js +1 -1
  47. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  48. package/dist/components/Footer/FooterContent.d.ts +1 -4
  49. package/dist/components/Footer/FooterDataProps.d.ts +4 -3
  50. package/dist/components/Footer/SocialMedia.d.ts +2 -2
  51. package/dist/components/Footer/SocialMedia.js +26 -2
  52. package/dist/components/Footer/SocialMedia.js.map +1 -1
  53. package/dist/components/Footer/iconsMap.js +0 -7
  54. package/dist/components/Footer/iconsMap.js.map +1 -1
  55. package/dist/content-page-repository/transformHTML.js +32 -2
  56. package/dist/content-page-repository/transformHTML.js.map +1 -1
  57. package/dist/model/EmptyOptionType.d.ts +1 -1
  58. package/dist/ui-kit/Button/ButtonInner.js +1 -1
  59. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  60. package/lib/common.css +1 -1
  61. package/lib/components/Blocks.js +0 -2
  62. package/lib/components/Blocks.js.map +1 -1
  63. package/lib/components/Calculator/BonusCalculatorForm.js +1 -1
  64. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  65. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +10 -10
  66. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  67. package/lib/components/Calculator/Calculator.js +16 -4
  68. package/lib/components/Calculator/Calculator.js.map +1 -1
  69. package/lib/components/Calculator/CalculatorContent.d.ts +27 -1
  70. package/lib/components/Calculator/CreditCalculatorForm.js +6 -6
  71. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  72. package/lib/components/Calculator/DepositCalculatorForm.js +8 -8
  73. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  74. package/lib/components/Calculator/constants.js +0 -1
  75. package/lib/components/Calculator/constants.js.map +1 -1
  76. package/lib/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  77. package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -1
  78. package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  79. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  80. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  81. package/lib/components/Carousel/Carousel.fixture.d.ts +0 -1
  82. package/lib/components/Carousel/Carousel.js +0 -1
  83. package/lib/components/Carousel/Carousel.js.map +1 -1
  84. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  85. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  86. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +2 -0
  87. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +13 -0
  88. package/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
  89. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  90. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  91. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  92. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  93. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  94. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  95. package/lib/components/Footer/Footer.mobile.js +1 -1
  96. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  97. package/lib/components/Footer/FooterContent.d.ts +1 -4
  98. package/lib/components/Footer/FooterDataProps.d.ts +4 -3
  99. package/lib/components/Footer/SocialMedia.d.ts +2 -2
  100. package/lib/components/Footer/SocialMedia.js +26 -2
  101. package/lib/components/Footer/SocialMedia.js.map +1 -1
  102. package/lib/components/Footer/iconsMap.js +0 -7
  103. package/lib/components/Footer/iconsMap.js.map +1 -1
  104. package/lib/content-page-repository/transformHTML.js +9 -2
  105. package/lib/content-page-repository/transformHTML.js.map +1 -1
  106. package/lib/model/EmptyOptionType.d.ts +1 -1
  107. package/lib/ui-kit/Button/ButtonInner.js +1 -1
  108. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  109. package/mobile/bundle/bundle.umd.js +58 -61
  110. package/mobile/bundle/bundle.umd.min.js +1 -1
  111. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +27 -1
  112. package/mobile/bundle/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  113. package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  114. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  115. package/mobile/bundle/components/Footer/FooterContent.d.ts +1 -4
  116. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +4 -3
  117. package/mobile/bundle/components/Footer/SocialMedia.d.ts +2 -2
  118. package/mobile/bundle/model/EmptyOptionType.d.ts +1 -1
  119. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +1 -1
  120. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  121. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +10 -10
  122. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  123. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +27 -1
  124. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +6 -6
  125. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  126. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +8 -8
  127. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  128. package/mobile/dist/components/Calculator/constants.js +0 -1
  129. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  130. package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  131. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -1
  132. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  133. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  134. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  135. package/mobile/dist/components/Carousel/Carousel.js +0 -1
  136. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  137. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  138. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  139. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
  140. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  141. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  142. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  143. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  144. package/mobile/dist/components/Footer/Footer.js +1 -1
  145. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  146. package/mobile/dist/components/Footer/FooterContent.d.ts +1 -4
  147. package/mobile/dist/components/Footer/FooterDataProps.d.ts +4 -3
  148. package/mobile/dist/components/Footer/SocialMedia.d.ts +2 -2
  149. package/mobile/dist/components/Footer/SocialMedia.js +26 -2
  150. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  151. package/mobile/dist/components/Footer/iconsMap.js +0 -7
  152. package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
  153. package/mobile/dist/content-page-repository/transformHTML.js +32 -2
  154. package/mobile/dist/content-page-repository/transformHTML.js.map +1 -1
  155. package/mobile/dist/model/EmptyOptionType.d.ts +1 -1
  156. package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
  157. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  158. package/mobile/lib/common.css +1 -1
  159. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +1 -1
  160. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  161. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +10 -10
  162. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  163. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +27 -1
  164. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +6 -6
  165. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  166. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +8 -8
  167. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  168. package/mobile/lib/components/Calculator/constants.js +0 -1
  169. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  170. package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
  171. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -1
  172. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  173. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  174. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  175. package/mobile/lib/components/Carousel/Carousel.js +0 -1
  176. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  177. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  178. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  179. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
  180. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  181. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  182. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  183. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  184. package/mobile/lib/components/Footer/Footer.js +1 -1
  185. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  186. package/mobile/lib/components/Footer/FooterContent.d.ts +1 -4
  187. package/mobile/lib/components/Footer/FooterDataProps.d.ts +4 -3
  188. package/mobile/lib/components/Footer/SocialMedia.d.ts +2 -2
  189. package/mobile/lib/components/Footer/SocialMedia.js +26 -2
  190. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  191. package/mobile/lib/components/Footer/iconsMap.js +0 -7
  192. package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
  193. package/mobile/lib/content-page-repository/transformHTML.js +9 -2
  194. package/mobile/lib/content-page-repository/transformHTML.js.map +1 -1
  195. package/mobile/lib/model/EmptyOptionType.d.ts +1 -1
  196. package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
  197. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  198. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
  199. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +33 -28
  200. package/mobile/src/components/Calculator/Calculator.example.json +1 -0
  201. package/mobile/src/components/Calculator/Calculator.ui.json +8 -0
  202. package/mobile/src/components/Calculator/CalculatorContent.ts +31 -1
  203. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +6 -6
  204. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +8 -8
  205. package/mobile/src/components/Calculator/constants.ts +0 -1
  206. package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +1 -1
  207. package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
  208. package/mobile/src/components/Carousel/Carousel.tsx +0 -1
  209. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
  210. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
  211. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
  212. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
  213. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  214. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  215. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  216. package/mobile/src/components/Footer/Footer.tsx +1 -1
  217. package/mobile/src/components/Footer/FooterContent.ts +1 -5
  218. package/mobile/src/components/Footer/FooterDataProps.ts +4 -3
  219. package/mobile/src/components/Footer/SocialMedia.tsx +48 -16
  220. package/mobile/src/components/Footer/iconsMap.ts +0 -7
  221. package/mobile/src/components/ProductGallery/ProductGallery.example.json +10 -4
  222. package/mobile/src/content-page-repository/transformHTML.ts +10 -2
  223. package/mobile/src/model/EmptyOptionType.ts +1 -1
  224. package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
  225. package/package.json +1 -1
  226. package/src/components/Blocks.ts +0 -2
  227. package/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
  228. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +33 -28
  229. package/src/components/Calculator/Calculator.example.json +1 -0
  230. package/src/components/Calculator/Calculator.tsx +19 -4
  231. package/src/components/Calculator/Calculator.ui.json +8 -0
  232. package/src/components/Calculator/CalculatorContent.ts +31 -1
  233. package/src/components/Calculator/CreditCalculatorForm.tsx +6 -6
  234. package/src/components/Calculator/DepositCalculatorForm.tsx +8 -8
  235. package/src/components/Calculator/constants.ts +0 -1
  236. package/src/components/Calculator/useBonusCalculatorParams.ts +1 -1
  237. package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
  238. package/src/components/Carousel/Carousel.fixture.tsx +0 -18
  239. package/src/components/Carousel/Carousel.tsx +0 -1
  240. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
  241. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
  242. package/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
  243. package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +92 -0
  244. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +18 -0
  245. package/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
  246. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  247. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +4 -4
  248. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +7 -7
  249. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +1 -1
  250. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
  251. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  252. package/src/components/Footer/Footer.mobile.tsx +1 -1
  253. package/src/components/Footer/FooterContent.ts +1 -5
  254. package/src/components/Footer/FooterDataProps.ts +4 -3
  255. package/src/components/Footer/SocialMedia.tsx +48 -16
  256. package/src/components/Footer/iconsMap.ts +0 -7
  257. package/src/components/ProductGallery/ProductGallery.example.json +10 -4
  258. package/src/content-page-repository/transformHTML.ts +10 -2
  259. package/src/model/EmptyOptionType.ts +1 -1
  260. package/src/ui-kit/Button/ButtonInner.tsx +1 -1
  261. package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  262. package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  263. package/bundle/components/Footer/MediaButton.d.ts +0 -7
  264. package/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
  265. package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  266. package/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
  267. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  268. package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  269. package/dist/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  270. package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  271. package/dist/components/Footer/MediaButton.d.ts +0 -7
  272. package/dist/components/Footer/MediaButton.js +0 -18
  273. package/dist/components/Footer/MediaButton.js.map +0 -1
  274. package/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
  275. package/dist/components/Footer/buttonSizeStyle.js +0 -7
  276. package/dist/components/Footer/buttonSizeStyle.js.map +0 -1
  277. package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  278. package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +0 -8
  279. package/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
  280. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  281. package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  282. package/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  283. package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  284. package/lib/components/Footer/MediaButton.d.ts +0 -7
  285. package/lib/components/Footer/MediaButton.js +0 -16
  286. package/lib/components/Footer/MediaButton.js.map +0 -1
  287. package/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
  288. package/lib/components/Footer/buttonSizeStyle.js +0 -5
  289. package/lib/components/Footer/buttonSizeStyle.js.map +0 -1
  290. package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  291. package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  292. package/mobile/bundle/components/Footer/MediaButton.d.ts +0 -7
  293. package/mobile/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
  294. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  295. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
  296. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  297. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  298. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  299. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  300. package/mobile/dist/components/Footer/MediaButton.d.ts +0 -7
  301. package/mobile/dist/components/Footer/MediaButton.js +0 -18
  302. package/mobile/dist/components/Footer/MediaButton.js.map +0 -1
  303. package/mobile/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
  304. package/mobile/dist/components/Footer/buttonSizeStyle.js +0 -7
  305. package/mobile/dist/components/Footer/buttonSizeStyle.js.map +0 -1
  306. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  307. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
  308. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  309. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  310. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  311. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  312. package/mobile/lib/components/Footer/MediaButton.d.ts +0 -7
  313. package/mobile/lib/components/Footer/MediaButton.js +0 -16
  314. package/mobile/lib/components/Footer/MediaButton.js.map +0 -1
  315. package/mobile/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
  316. package/mobile/lib/components/Footer/buttonSizeStyle.js +0 -5
  317. package/mobile/lib/components/Footer/buttonSizeStyle.js.map +0 -1
  318. package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
  319. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
  320. package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +0 -1
  321. package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
  322. package/mobile/src/components/Footer/MediaButton.tsx +0 -50
  323. package/mobile/src/components/Footer/buttonSizeStyle.ts +0 -6
  324. package/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
  325. package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +0 -25
  326. package/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
  327. package/src/components/CarouselEventCard/CarouselEventCard.ui.json +0 -1
  328. package/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
  329. package/src/components/Footer/MediaButton.tsx +0 -50
  330. package/src/components/Footer/buttonSizeStyle.ts +0 -6
@@ -646,7 +646,7 @@
646
646
  return '';
647
647
  }
648
648
  const withTextStyle = `${aboveText ? 'py-2.5 px-9' : 'py-4 px-9'}`;
649
- return style('group/btn items-center justify-center', isWithText(props) ? withTextStyle : 'h-12 w-12', rounded ? 'rounded-full' : '');
649
+ return style('group/btn items-center justify-center', isWithText(props) ? withTextStyle : 'h-12 w-12 m-auto', rounded ? 'rounded-full' : '');
650
650
  };
651
651
  const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
652
652
 
@@ -1507,13 +1507,13 @@
1507
1507
 
1508
1508
  const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [jsx(Heading, { headingType: "h3", title: title, className: "text-center" }), jsx("div", { className: "flex gap-lg", children: cards?.length ? cards.map((_, i) => jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
1509
1509
 
1510
- const alignStyleMap = {
1510
+ const alignStyleMap$1 = {
1511
1511
  start: 'justify-start',
1512
1512
  center: 'justify-center',
1513
1513
  end: 'justify-end',
1514
1514
  };
1515
1515
  const ButtonsBlock = JSX(({ buttons, className = '', align, ...rest }) => {
1516
- const alignStyle = align ? style('flex', alignStyleMap[align]) : '';
1516
+ const alignStyle = align ? style('flex', alignStyleMap$1[align]) : '';
1517
1517
  return (jsx(BlockWrapper, { className: style('!bg-transparent', alignStyle, className), defaultPadding: "p-0", ...rest, children: renderButtonsSection(buttons) }));
1518
1518
  });
1519
1519
 
@@ -1635,7 +1635,6 @@
1635
1635
  isMonthlyInterestPayment: true,
1636
1636
  isReplenished: false,
1637
1637
  isPartialWithdrawal: false,
1638
- isSmallBusiness: false,
1639
1638
  depositeName: "Депозит 'Стабильный'",
1640
1639
  };
1641
1640
  const CREDIT_CALC_DEFAULT_DIR = 'credit-calculator-data';
@@ -1687,7 +1686,7 @@
1687
1686
  };
1688
1687
  };
1689
1688
 
1690
- const BonusCalculatorForm = JSX(({ className = '', sourceBookDir = '', buttons, footnote }) => {
1689
+ const BonusCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote }) => {
1691
1690
  const [userInputParams, { field }] = useForm({
1692
1691
  travelExpenseValue: DEFAULT_TRAVEL_MIN_SUM,
1693
1692
  restExpenseValue: DEFAULT_REST_MIN_SUM,
@@ -1807,7 +1806,7 @@
1807
1806
  const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
1808
1807
 
1809
1808
  const useBusinessDepositCalculatorParams = (userInputParams, sourceBookDir) => {
1810
- const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isSmallBusiness, isMonthlyInterestPayment, } = userInputParams;
1809
+ const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isMonthlyInterestPayment } = userInputParams;
1811
1810
  const data = useCalculatorParams(sourceBookDir || BUSINESS_DEPOSIT_CALC_DEFAULT_DIR);
1812
1811
  const isOperatingDeposit = isReplenished || isPartialWithdrawal;
1813
1812
  const isDisabledOperatingDeposit = daysValue < BUSINESS_OPERATING_MIN_DAYS || daysValue > BUSINESS_OPERATING_MAX_DAYS;
@@ -1821,7 +1820,6 @@
1821
1820
  }
1822
1821
  const businessDepositCalculatorSourceBookParams = data?.rateRows?.find((_) => {
1823
1822
  return (isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
1824
- isSmallBusiness === _.isSmallBusiness &&
1825
1823
  checkIsOperatingDeposit(isOperatingDeposit, _) &&
1826
1824
  checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
1827
1825
  checkRangeByKeys(daysValue, ['minDays', 'maxDays'], _));
@@ -1856,16 +1854,15 @@
1856
1854
  }
1857
1855
  };
1858
1856
 
1859
- const BusinessDepositCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote, bottomFootnote, isShowDepositeName }) => {
1857
+ const BusinessDepositCalculatorForm = JSX(({ className = '', rateParams, buttons, footnote, bottomFootnote, isShowDepositeName }) => {
1860
1858
  const [userInputParams, { field }] = useForm({
1861
1859
  moneyValue: BUSINESS_DEFAULT_SUM,
1862
1860
  daysValue: BUSINESS_DEFAULT_DAYS,
1863
1861
  isReplenished: false,
1864
1862
  isPartialWithdrawal: false,
1865
- isSmallBusiness: false,
1866
1863
  isMonthlyInterestPayment: false,
1867
1864
  });
1868
- const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, sourceBookDir);
1865
+ const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams?.sourceBookDir);
1869
1866
  const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
1870
1867
  return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
1871
1868
  title: 'Сумма, ₽',
@@ -1879,25 +1876,34 @@
1879
1876
  max: calculatorParams.maxDays,
1880
1877
  ...field('daysValue'),
1881
1878
  value: calculatorParams.daysValue,
1882
- }), renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
1883
- title: 'Выплата процентов',
1884
- orientation: 'vertical',
1885
- ...field('isMonthlyInterestPayment'),
1886
- radioGroupClassName: 'sm:flex-col',
1887
- })] }), jsx("div", { className: "border-b border-main-divider md:hidden" }), renderRate({
1879
+ }), jsxs("div", { className: "flex flex-col sm:flex-row gap-y-4 gap-x-14", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
1880
+ title: 'Выплата процентов',
1881
+ orientation: 'vertical',
1882
+ ...field('isMonthlyInterestPayment'),
1883
+ radioGroupClassName: 'sm:flex-col',
1884
+ })] })] }), jsx("div", { className: "border-b border-main-divider md:hidden" }), renderRate({
1888
1885
  rate,
1889
1886
  depositeName,
1890
1887
  isShowDepositeName,
1891
1888
  isUnavailableByTerm,
1892
1889
  }), jsxs("div", { className: "flex flex-col gap-2xl sm:w-96", children: [renderDepositResults(finalSum, income), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote), renderFootnote(bottomFootnote)] })] }));
1893
1890
  });
1894
- const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { className: "flex flex-col gap-y-xl sm:gap-y-s", children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal }), jsx(Checkbox, { text: "\u0418\u041F / \u043C\u0430\u043B\u043E\u0435 \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u0435", ...field('isSmallBusiness'), value: calculatorParams.isSmallBusiness })] }));
1891
+ const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { className: "space-y-s", children: [jsx(Text, { color: "text-secondary-text", font: "font-light", children: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B" }), jsxs("div", { className: "flex flex-col gap-y-xl sm:gap-y-s", children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal })] })] }));
1895
1892
  const renderDepositResults = (finalSum, income) => (jsxs("div", { className: "flex flex-col gap-2xl sm:gap-0", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" })] }));
1896
1893
 
1897
1894
  const STEP_MONTHS = 1;
1898
1895
  const renderMonthsInput = ({ min = 0, max = 0, availableMonths, ...rest }) => (jsx(InputRange, { items: [`От ${monthText(min)}`, `До ${monthText(max)}`], step: STEP_MONTHS, ...(availableMonths?.length ? { list: availableMonths } : { min, max }), ...rest }));
1899
1896
  const monthText = (month) => `${month} ${Number(month) % 10 === 1 ? 'месяца' : 'месяцев'}`;
1900
1897
 
1898
+ const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
1899
+ ...props,
1900
+ radioGroupClassName: 'sm:flex-col',
1901
+ items: [
1902
+ { id: 'annuity', text: 'Аннуитетный' },
1903
+ { id: 'differential', text: 'Дифференцированный' },
1904
+ ],
1905
+ });
1906
+
1901
1907
  const checkCreditSourceBookRowCommonParams = (props) => checkRowParam$1({
1902
1908
  ...props,
1903
1909
  fieldKey: 'isSalaryClient',
@@ -1994,15 +2000,6 @@
1994
2000
  }), [userInputParams, data]);
1995
2001
  };
1996
2002
 
1997
- const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
1998
- ...props,
1999
- radioGroupClassName: 'sm:flex-col',
2000
- items: [
2001
- { id: 'annuity', text: 'Аннуитетный' },
2002
- { id: 'differential', text: 'Дифференцированный' },
2003
- ],
2004
- });
2005
-
2006
2003
  const CreditCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings, isMobile }) => {
2007
2004
  const [userInputParams, { field }] = useForm({
2008
2005
  isAnnuity: true,
@@ -2038,6 +2035,14 @@
2038
2035
  });
2039
2036
  const renderCreditParamsForm$1 = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: `Получаю зарплату на счёт\nв Россельхозбанке`, ...field('isSalaryClient'), value: params.isSalaryClient, className: "whitespace-pre-line sm:whitespace-normal" })) : null, params.isShowStateEmployee ? (jsx(Checkbox, { text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('isStateEmployee'), value: params.isStateEmployee })) : null, params.isShowPensionClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", ...field('isPensionClient'), value: params.isPensionClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null] }));
2040
2037
 
2038
+ const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
2039
+ ...props,
2040
+ items: [
2041
+ { id: 'remote', text: 'Дистанционно' },
2042
+ { id: 'office', text: 'Офис Банка' },
2043
+ ],
2044
+ });
2045
+
2041
2046
  const arrayByRange = (start, stop, step = 1) => Array.from({ length: Math.abs(stop - start) / step + 1 }, (value, index) => stop >= start ? start + index * step : start - index * step);
2042
2047
 
2043
2048
  const useDepositCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
@@ -2092,14 +2097,6 @@
2092
2097
  const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
2093
2098
  const getMiddleMonth = (minMonths, maxMonths) => minMonths + Math.round((maxMonths - minMonths) / 2);
2094
2099
 
2095
- const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
2096
- ...props,
2097
- items: [
2098
- { id: 'remote', text: 'Дистанционно' },
2099
- { id: 'office', text: 'Офис Банка' },
2100
- ],
2101
- });
2102
-
2103
2100
  const DepositCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
2104
2101
  const [userInputParams, { field }] = useForm({
2105
2102
  moneyValue: DEPOSIT_DEFAULT_SUM,
@@ -2280,7 +2277,12 @@
2280
2277
  return (jsx("section", { className: "box-border relative bg-white flex shrink-0 self-start basis-full", role: "listitem", children: jsxs("div", { className: "box-border p-4xl w-full space-y-xl", children: [block?.title ? jsx(Heading, { className: "text-center", title: block.title }) : null, jsx(EmbeddedBlock, { ...block })] }) }, String(i)));
2281
2278
  };
2282
2279
 
2283
- const Calculator = JSX(({ className = '', calculatorTabs = [], ...rest }) => {
2280
+ const alignStyleMap = {
2281
+ start: 'justify-start',
2282
+ center: 'justify-center',
2283
+ end: 'justify-end',
2284
+ };
2285
+ const Calculator = JSX(({ className = '', tabAlign, calculatorTabs = [], ...rest }) => {
2284
2286
  const tabsNav = calculatorTabs.map((_) => _.nav || {});
2285
2287
  const calculatorBlocks = calculatorTabs.map(({ calculatorBlock }) => calculatorBlock || {});
2286
2288
  const [slideIndexShift, setSlideIndexShift] = useState(0);
@@ -2291,7 +2293,13 @@
2291
2293
  visibleItemCount: COLUMNS_FOR_SCROLL,
2292
2294
  });
2293
2295
  return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden relative', className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "bg-white", children: [tabsNav.length > 1
2294
- ? renderTabs$1({ activeIndex, tabsNav, slideIndexShift, onClick: handleSlideIndexShift })
2296
+ ? renderTabs$1({
2297
+ activeIndex,
2298
+ tabsNav,
2299
+ tabAlign,
2300
+ slideIndexShift,
2301
+ onClick: handleSlideIndexShift,
2302
+ })
2295
2303
  : null, renderArrows({
2296
2304
  ...controls,
2297
2305
  btnClass: ['left-3', 'right-3'],
@@ -2314,9 +2322,10 @@
2314
2322
  iconVersion: iconVersion ?? activeIconStyle,
2315
2323
  }, width: "24", height: "24" }), jsxs("div", { className: "border-0", children: [jsx("div", { className: btnTitleClassName, children: tab?.title }), jsx("div", { className: btnDescClassName, children: tab.description })] })] }, String(i)));
2316
2324
  }
2317
- function renderTabs$1({ activeIndex, tabsNav, slideIndexShift, onClick }) {
2325
+ function renderTabs$1({ activeIndex, tabsNav, tabAlign, slideIndexShift, onClick }) {
2318
2326
  const CARD_SHIFT = 388;
2319
- return (jsxs("div", { children: [jsx("div", { style: { transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }, className: "flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000", children: jsx("div", { className: "w-full flex flex-nowrap items-end gap-xs", children: tabsNav.map((tab, i) => renderNavButton$3({
2327
+ const alignStyle = tabAlign ? alignStyleMap[tabAlign] : '';
2328
+ return (jsxs("div", { children: [jsx("div", { style: { transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }, className: "flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000", children: jsx("div", { className: style('w-full flex flex-nowrap items-end gap-xs', alignStyle), children: tabsNav.map((tab, i) => renderNavButton$3({
2320
2329
  tab,
2321
2330
  i,
2322
2331
  isActive: Boolean(i === slideIndexShift),
@@ -2653,7 +2662,6 @@
2653
2662
  'CarouselTariffsCard',
2654
2663
  'CarouselRichTextCard',
2655
2664
  'CarouselInvestmentCard',
2656
- 'CarouselEventCard',
2657
2665
  'ProductBlock',
2658
2666
  ];
2659
2667
  Carousel.childSchema = () => ({
@@ -2698,23 +2706,12 @@
2698
2706
  const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align })) : null, rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full mt-lg' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
2699
2707
  const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2700
2708
 
2701
- const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2702
- const link = useLink({ isRemote });
2703
- const linkProps = link({ href, target });
2704
- const Tag = href ? 'a' : 'div';
2705
- return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
2706
- });
2707
-
2708
- const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
2709
- return (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx("div", { className: "p-s", children: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: "text-left" }) })] }) }));
2710
- });
2711
-
2712
2709
  const cardColumnsModeStyleMap = {
2713
2710
  1: 'grid-cols-1',
2714
2711
  2: 'grid-cols-2',
2715
2712
  };
2716
2713
  const CarouselInvestmentCard = JSX(({ className, padding, additionalDescription, cardsList = [], columnsMode = 1, description, image, title, ...rest }) => (jsx(BlockWrapper, { className: style('text-left', className), padding: "p-0", ...rest, children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, title: title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-m z-10", title: title }) : null, backImage: image?.src ? jsx(Img, { image: image }) : null, children: [jsxs("div", { className: "flex justify-between mb-m", children: [description ? (jsx("div", { className: "w-1/3", children: jsx(Text, { size: "text-h6", children: description }) })) : null, additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null] }), cardsList.length ? (jsx("ul", { className: style('list-none m-0 p-0 grid gap-xs', cardColumnsModeStyleMap[columnsMode]), children: renderCardList(cardsList) })) : null] }) })));
2717
- const renderCardList = (cardsList) => cardsList.map((item, i) => (jsxs("li", { children: [item?.parameter ? jsx(Text, { size: "text-h6", children: item.parameter }) : null, item?.parameterDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
2714
+ const renderCardList = (cardsList) => cardsList.map((item, i) => (jsxs("li", { children: [item?.parameter ? (jsx("div", { className: "inline pr-xs", children: jsx(Text, { size: "text-h6", children: item.parameter }) })) : null, item?.parameterDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
2718
2715
 
2719
2716
  const LINK_CLASS_NAME = `absolute border
2720
2717
  bg-white flex justify-between group-hover/link:text-primary-main`;
@@ -2735,6 +2732,13 @@
2735
2732
  .map((link, index) => (jsx(CarouselLinkButton, { ...link }, String(index)))) }, String(groupIndex)))) }));
2736
2733
  };
2737
2734
 
2735
+ const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2736
+ const link = useLink({ isRemote });
2737
+ const linkProps = link({ href, target });
2738
+ const Tag = href ? 'a' : 'div';
2739
+ return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
2740
+ });
2741
+
2738
2742
  const DOT_SIZE_MAP = {
2739
2743
  L: 'w-1.5 h-1.5 mr-m',
2740
2744
  M: 'w-1.5 h-1.5 mr-s',
@@ -2758,15 +2762,15 @@
2758
2762
  const List = JSX(({ className, hasIndent, isDotted, items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left 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, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
2759
2763
 
2760
2764
  const CarouselProductCard = JSX(({ additionalDescription, align = AlignStyles, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
2761
- return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', align, className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title), renderDescription$2(description), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
2765
+ return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title, align), renderDescription$2(description, align), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, align), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
2762
2766
  className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
2763
2767
  isVertical: isButtonFullWidth,
2764
2768
  })] }));
2765
2769
  });
2766
- const renderImage$2 = (image, isImageFullWidth, isTopPosition) => (jsxs("div", { className: style('flex gap-lg', isTopPosition ? 'order-first' : 'order-last', !isImageFullWidth ? 'justify-center' : ''), children: [image?.src ? jsx(Img, { className: "shrink-0", image: image }) : null, image?.icon ? (jsx(Img, { className: style('shrink-0', !isImageFullWidth ? 'w-8 h-8 min-w-8' : ''), image: image })) : null] }));
2767
- const renderCardTitle = (headlineSmallVersion, title) => title ? jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
2768
- const renderDescription$2 = (description) => description ? jsx(Paragraph, { size: "text-l", children: description }) : null;
2769
- const renderAdditionalDescription = (additionalDescription) => additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription })) : null;
2770
+ const renderImage$2 = (image, isImageFullWidth, isTopPosition) => (jsxs("div", { className: style('flex gap-y-lg justify-center', isImageFullWidth ? 'min-w-full h-full' : '', isTopPosition ? 'order-first' : 'order-last'), children: [image?.src ? jsx(Img, { image: image }) : null, image?.icon ? (jsx(Img, { className: style(!isImageFullWidth ? 'w-8 h-8 min-w-8' : 'w-full h-full'), image: image })) : null] }));
2771
+ const renderCardTitle = (headlineSmallVersion, title, align) => title ? (jsx(Text, { align: align, size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
2772
+ const renderDescription$2 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
2773
+ const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
2770
2774
  const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, listItemSize: "S" })) : null;
2771
2775
 
2772
2776
  const sum = (list = []) => list.reduce((a, b) => a + b, 0);
@@ -2829,65 +2833,66 @@
2829
2833
  description: _.description,
2830
2834
  })) }) }) })));
2831
2835
 
2832
- const buttonSizeStyle = {
2833
- default: 'w-14 h-14',
2834
- stretched: 'flex-1 h-14',
2835
- };
2836
-
2837
2836
  const ICONS_MAP = [
2838
2837
  {
2839
2838
  origins: ['t.me', 'telegram.org'],
2840
2839
  iconMapped: { icon: 'TelegramIcon' },
2841
- label: 'Телеграм',
2842
2840
  },
2843
2841
  {
2844
2842
  origins: ['vk.com'],
2845
2843
  iconMapped: { icon: 'VKIcon' },
2846
- label: 'ВКонтакте',
2847
2844
  },
2848
2845
  {
2849
2846
  origins: ['ok.ru'],
2850
2847
  iconMapped: { icon: 'OkIcon' },
2851
- label: 'Одноклассники',
2852
2848
  },
2853
2849
  {
2854
2850
  origins: ['apps.apple.com'],
2855
2851
  iconMapped: { icon: 'AppleIcon' },
2856
- label: 'App Store',
2857
2852
  },
2858
2853
  {
2859
2854
  origins: ['play.google.com'],
2860
2855
  iconMapped: { icon: 'PlayMarketIcon' },
2861
- label: 'Google Play',
2862
2856
  },
2863
2857
  {
2864
2858
  origins: ['youtube.com'],
2865
2859
  iconMapped: { icon: 'YoutubeIcon' },
2866
- label: 'Youtube',
2867
2860
  },
2868
2861
  {
2869
2862
  origins: ['rutube.ru'],
2870
2863
  iconMapped: { icon: 'RutubeIcon' },
2871
- label: 'Rutube',
2872
2864
  },
2873
2865
  ];
2874
2866
 
2875
2867
  const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
2876
2868
 
2877
- //TODO: Refactor this.
2878
- const MediaButton = JSX(({ buttonSize = 'default', icon, ...rest }) => {
2879
- const { href } = rest;
2880
- const { iconMapped, label } = findIconByHref(href);
2881
- const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2882
- return (jsx(Button, { className: style('border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', 'p-m min-h-14 group/media flex items-center justify-center box-border', buttonSizeStyle[buttonSize]), "aria-label": label, rel: "noopener noreferrer", target: "_blank", ...rest, children: jsx(Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" }) }));
2869
+ const SocialMedia = JSX(({ className = '', media, showButtonText, stretched, children }) => {
2870
+ const [hasText, setHasText] = useState();
2871
+ const buttons = media?.map((_) => {
2872
+ const { href, icon, text } = _;
2873
+ const { iconMapped } = findIconByHref(href);
2874
+ const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2875
+ const buttonText = showButtonText ? { text } : {};
2876
+ if (!hasText && text) {
2877
+ setHasText(true);
2878
+ }
2879
+ return {
2880
+ ...buttonText,
2881
+ icon: { ...iconCustom, iconVersion: 'color' },
2882
+ version: 'white',
2883
+ };
2884
+ });
2885
+ const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : ' basis-auto', stretched ? 'flex-1 justify-center' : '');
2886
+ return (jsxs("div", { className: "flex flex-col sm:flex-col-reverse gap-xs", children: [children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null, jsx("div", { className: style('flex gap-xs', className), children: renderButtonsSection(buttons, {
2887
+ className: stretched ? 'w-full' : '',
2888
+ buttonClassName,
2889
+ }) })] }));
2883
2890
  });
2884
2891
  const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
2885
2892
 
2886
- const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "flex flex-col sm:flex-col-reverse gap-xs", children: [children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null, jsx("div", { className: style('flex gap-xs', className), children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) })] })));
2887
-
2888
2893
  //TODO: replace SocialMedia with renderButtonSection
2889
2894
  const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', ...rest }) => {
2890
- return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, backImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia }) : null, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
2895
+ return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, backImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia, showButtonText: true }) : null, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
2891
2896
  });
2892
2897
 
2893
2898
  const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
@@ -5085,7 +5090,6 @@
5085
5090
  CarouselBankHistoryCard,
5086
5091
  CarouselCard,
5087
5092
  CarouselCatalogCard,
5088
- CarouselEventCard,
5089
5093
  CarouselInvestmentCard,
5090
5094
  CarouselLinks,
5091
5095
  CarouselProductCard,
@@ -5367,7 +5371,7 @@
5367
5371
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5368
5372
  }
5369
5373
 
5370
- const packageVersion = "0.14.3";
5374
+ const packageVersion = "0.14.5";
5371
5375
 
5372
5376
  exports.Blocks = Blocks;
5373
5377
  exports.ContentPage = ContentPage;