@redneckz/wildless-cms-uni-blocks 0.11.2 → 0.11.3

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 (446) hide show
  1. package/bin/migration-scripts/0.11.1.js +34 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +76 -56
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  6. package/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  7. package/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
  8. package/bundle/components/CarouselCard/getCardWidth.d.ts +1 -0
  9. package/bundle/components/CarouselCard/titleSize.d.ts +1 -0
  10. package/bundle/components/CarouselCard/titleSize.mobile.d.ts +1 -0
  11. package/bundle/components/Footer/Contacts.d.ts +2 -2
  12. package/bundle/components/Footer/FooterContent.d.ts +9 -1
  13. package/bundle/components/Footer/FooterDataProps.d.ts +2 -2
  14. package/bundle/components/PictureText/positionStyle.d.ts +1 -0
  15. package/bundle/components/PictureText/positionStyle.mobile.d.ts +1 -0
  16. package/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  17. package/bundle/components/PictureText/styleInsuranceSum.d.ts +1 -0
  18. package/bundle/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
  19. package/bundle/components/PictureText/styleValueBlock.d.ts +2 -0
  20. package/bundle/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
  21. package/bundle/components/RollupItem/RollupItemContent.d.ts +4 -2
  22. package/bundle/components/RollupItem/renderRoundedIcon.d.ts +3 -0
  23. package/bundle/components/RollupItem/renderRoundedIcon.mobile.d.ts +4 -0
  24. package/bundle/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
  25. package/bundle/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  26. package/bundle/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
  27. package/bundle/ui-kit/Icon/IconProps.d.ts +8 -3
  28. package/bundle/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  29. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  30. package/dist/components/Blocks.js +2 -2
  31. package/dist/components/Blocks.js.map +1 -1
  32. package/dist/components/Blocks.mobile.js +6 -0
  33. package/dist/components/Blocks.mobile.js.map +1 -1
  34. package/dist/components/Bonus/Bonus.js +1 -1
  35. package/dist/components/BusinessBlock/BusinessCard.js +1 -1
  36. package/dist/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  37. package/{mobile/dist/components/ButtonBlock/ButtonBlock.js → dist/components/ButtonsBlock/ButtonsBlock.js} +3 -3
  38. package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  39. package/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  40. package/dist/components/{ButtonBlock/ButtonBlockContent.js → ButtonsBlock/ButtonsBlockContent.js} +1 -1
  41. package/dist/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  42. package/dist/components/CardTransfer/CardTransfer.js +1 -1
  43. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  44. package/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
  45. package/dist/components/CarouselCard/CarouselCard.js +9 -7
  46. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  47. package/dist/components/CarouselCard/getCardWidth.d.ts +1 -0
  48. package/dist/components/CarouselCard/getCardWidth.js +18 -0
  49. package/dist/components/CarouselCard/getCardWidth.js.map +1 -0
  50. package/dist/components/CarouselCard/titleSize.d.ts +1 -0
  51. package/dist/components/CarouselCard/titleSize.js +4 -0
  52. package/dist/components/CarouselCard/titleSize.js.map +1 -0
  53. package/dist/components/CarouselCard/titleSize.mobile.d.ts +1 -0
  54. package/dist/components/CarouselCard/titleSize.mobile.js +4 -0
  55. package/dist/components/CarouselCard/titleSize.mobile.js.map +1 -0
  56. package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  57. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  58. package/dist/components/Footer/Contacts.d.ts +2 -2
  59. package/dist/components/Footer/Contacts.js +4 -5
  60. package/dist/components/Footer/Contacts.js.map +1 -1
  61. package/dist/components/Footer/FooterContent.d.ts +9 -1
  62. package/dist/components/Footer/FooterDataProps.d.ts +2 -2
  63. package/dist/components/PictureText/PictureText.js +5 -11
  64. package/dist/components/PictureText/PictureText.js.map +1 -1
  65. package/dist/components/PictureText/positionStyle.d.ts +1 -0
  66. package/dist/components/PictureText/positionStyle.js +4 -0
  67. package/dist/components/PictureText/positionStyle.js.map +1 -0
  68. package/dist/components/PictureText/positionStyle.mobile.d.ts +1 -0
  69. package/dist/components/PictureText/positionStyle.mobile.js +4 -0
  70. package/dist/components/PictureText/positionStyle.mobile.js.map +1 -0
  71. package/dist/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  72. package/dist/components/PictureText/renderInsuranceSumMonth.js +15 -0
  73. package/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  74. package/dist/components/PictureText/styleInsuranceSum.d.ts +1 -0
  75. package/dist/components/PictureText/styleInsuranceSum.js +4 -0
  76. package/dist/components/PictureText/styleInsuranceSum.js.map +1 -0
  77. package/dist/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
  78. package/dist/components/PictureText/styleInsuranceSum.mobile.js +4 -0
  79. package/dist/components/PictureText/styleInsuranceSum.mobile.js.map +1 -0
  80. package/dist/components/PictureText/styleValueBlock.d.ts +2 -0
  81. package/dist/components/PictureText/styleValueBlock.js +5 -0
  82. package/dist/components/PictureText/styleValueBlock.js.map +1 -0
  83. package/dist/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
  84. package/dist/components/PictureText/styleValueBlock.mobile.js +5 -0
  85. package/dist/components/PictureText/styleValueBlock.mobile.js.map +1 -0
  86. package/dist/components/RollupItem/RollupItem.js +14 -9
  87. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  88. package/dist/components/RollupItem/RollupItemContent.d.ts +4 -2
  89. package/dist/components/RollupItem/renderRoundedIcon.d.ts +3 -0
  90. package/dist/components/RollupItem/renderRoundedIcon.js +5 -0
  91. package/dist/components/RollupItem/renderRoundedIcon.js.map +1 -0
  92. package/dist/components/RollupItem/renderRoundedIcon.mobile.d.ts +4 -0
  93. package/dist/components/RollupItem/renderRoundedIcon.mobile.js +7 -0
  94. package/dist/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -0
  95. package/dist/ui-kit/BenefitItem/BenefitItem.js +12 -11
  96. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  97. package/dist/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
  98. package/dist/ui-kit/BenefitItem/borderRadius.mobile.js +4 -0
  99. package/dist/ui-kit/BenefitItem/borderRadius.mobile.js.map +1 -0
  100. package/dist/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  101. package/dist/ui-kit/BenefitItem/labelSize.js +4 -0
  102. package/dist/ui-kit/BenefitItem/labelSize.js.map +1 -0
  103. package/dist/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
  104. package/dist/ui-kit/BenefitItem/labelSize.mobile.js +4 -0
  105. package/dist/ui-kit/BenefitItem/labelSize.mobile.js.map +1 -0
  106. package/dist/ui-kit/Button/renderButtonsSection.js +2 -2
  107. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  108. package/dist/ui-kit/Icon/IconProps.d.ts +8 -3
  109. package/dist/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  110. package/dist/ui-kit/Icon/RoundedIcon.js +5 -1
  111. package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  112. package/lib/common.css +1 -1
  113. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  114. package/lib/components/Blocks.js +2 -2
  115. package/lib/components/Blocks.js.map +1 -1
  116. package/lib/components/Blocks.mobile.js +6 -0
  117. package/lib/components/Blocks.mobile.js.map +1 -1
  118. package/lib/components/Bonus/Bonus.js +1 -1
  119. package/lib/components/BusinessBlock/BusinessCard.js +1 -1
  120. package/lib/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  121. package/lib/components/ButtonsBlock/ButtonsBlock.fixture.mobile.d.ts +6 -0
  122. package/lib/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +2 -2
  123. package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  124. package/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  125. package/lib/components/ButtonsBlock/ButtonsBlockContent.js +2 -0
  126. package/lib/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  127. package/lib/components/CardTransfer/CardTransfer.fixture.mobile.d.ts +6 -0
  128. package/lib/components/CardTransfer/CardTransfer.js +1 -1
  129. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  130. package/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
  131. package/lib/components/CarouselCard/CarouselCard.fixture.mobile.d.ts +8 -0
  132. package/lib/components/CarouselCard/CarouselCard.js +9 -7
  133. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  134. package/lib/components/CarouselCard/getCardWidth.d.ts +1 -0
  135. package/lib/components/CarouselCard/getCardWidth.js +15 -0
  136. package/lib/components/CarouselCard/getCardWidth.js.map +1 -0
  137. package/lib/components/CarouselCard/titleSize.d.ts +1 -0
  138. package/lib/components/CarouselCard/titleSize.js +2 -0
  139. package/lib/components/CarouselCard/titleSize.js.map +1 -0
  140. package/lib/components/CarouselCard/titleSize.mobile.d.ts +1 -0
  141. package/lib/components/CarouselCard/titleSize.mobile.js +2 -0
  142. package/lib/components/CarouselCard/titleSize.mobile.js.map +1 -0
  143. package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  144. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  145. package/lib/components/Footer/Contacts.d.ts +2 -2
  146. package/lib/components/Footer/Contacts.js +4 -5
  147. package/lib/components/Footer/Contacts.js.map +1 -1
  148. package/lib/components/Footer/FooterContent.d.ts +9 -1
  149. package/lib/components/Footer/FooterDataProps.d.ts +2 -2
  150. package/lib/components/PictureText/PictureText.fixture.mobile.d.ts +14 -0
  151. package/lib/components/PictureText/PictureText.js +5 -11
  152. package/lib/components/PictureText/PictureText.js.map +1 -1
  153. package/lib/components/PictureText/positionStyle.d.ts +1 -0
  154. package/lib/components/PictureText/positionStyle.js +2 -0
  155. package/lib/components/PictureText/positionStyle.js.map +1 -0
  156. package/lib/components/PictureText/positionStyle.mobile.d.ts +1 -0
  157. package/lib/components/PictureText/positionStyle.mobile.js +2 -0
  158. package/lib/components/PictureText/positionStyle.mobile.js.map +1 -0
  159. package/lib/components/PictureText/renderBenefit.d.ts +0 -1
  160. package/lib/components/PictureText/renderInsuranceSumMonth.d.ts +1 -0
  161. package/lib/components/PictureText/renderInsuranceSumMonth.js +12 -0
  162. package/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  163. package/lib/components/PictureText/styleInsuranceSum.d.ts +1 -0
  164. package/lib/components/PictureText/styleInsuranceSum.js +2 -0
  165. package/lib/components/PictureText/styleInsuranceSum.js.map +1 -0
  166. package/lib/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
  167. package/lib/components/PictureText/styleInsuranceSum.mobile.js +2 -0
  168. package/lib/components/PictureText/styleInsuranceSum.mobile.js.map +1 -0
  169. package/lib/components/PictureText/styleValueBlock.d.ts +2 -0
  170. package/lib/components/PictureText/styleValueBlock.js +3 -0
  171. package/lib/components/PictureText/styleValueBlock.js.map +1 -0
  172. package/lib/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
  173. package/lib/components/PictureText/styleValueBlock.mobile.js +3 -0
  174. package/lib/components/PictureText/styleValueBlock.mobile.js.map +1 -0
  175. package/lib/components/RollupItem/RollupItem.fixture.mobile.d.ts +1 -0
  176. package/lib/components/RollupItem/RollupItem.js +14 -9
  177. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  178. package/lib/components/RollupItem/RollupItemContent.d.ts +4 -2
  179. package/lib/components/RollupItem/renderRoundedIcon.d.ts +3 -0
  180. package/lib/components/RollupItem/renderRoundedIcon.js +2 -0
  181. package/lib/components/RollupItem/renderRoundedIcon.js.map +1 -0
  182. package/lib/components/RollupItem/renderRoundedIcon.mobile.d.ts +3 -0
  183. package/lib/components/RollupItem/renderRoundedIcon.mobile.js +4 -0
  184. package/lib/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -0
  185. package/lib/ui-kit/BenefitItem/BenefitItem.js +12 -11
  186. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  187. package/lib/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
  188. package/lib/ui-kit/BenefitItem/borderRadius.mobile.js +2 -0
  189. package/lib/ui-kit/BenefitItem/borderRadius.mobile.js.map +1 -0
  190. package/lib/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  191. package/lib/ui-kit/BenefitItem/labelSize.js +2 -0
  192. package/lib/ui-kit/BenefitItem/labelSize.js.map +1 -0
  193. package/lib/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
  194. package/lib/ui-kit/BenefitItem/labelSize.mobile.js +2 -0
  195. package/lib/ui-kit/BenefitItem/labelSize.mobile.js.map +1 -0
  196. package/lib/ui-kit/Button/renderButtonsSection.js +2 -2
  197. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  198. package/lib/ui-kit/Icon/IconProps.d.ts +8 -3
  199. package/lib/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  200. package/lib/ui-kit/Icon/RoundedIcon.js +5 -1
  201. package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  202. package/mobile/bundle/bundle.umd.js +542 -378
  203. package/mobile/bundle/bundle.umd.min.js +1 -1
  204. package/mobile/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  205. package/mobile/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  206. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
  207. package/mobile/bundle/components/CarouselCard/getCardWidth.d.ts +1 -0
  208. package/mobile/bundle/components/CarouselCard/titleSize.d.ts +1 -0
  209. package/mobile/bundle/components/Footer/Contacts.d.ts +2 -2
  210. package/mobile/bundle/components/Footer/FooterContent.d.ts +9 -1
  211. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +2 -2
  212. package/mobile/bundle/components/PictureText/positionStyle.d.ts +1 -0
  213. package/mobile/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  214. package/mobile/bundle/components/PictureText/styleInsuranceSum.d.ts +1 -0
  215. package/mobile/bundle/components/PictureText/styleValueBlock.d.ts +2 -0
  216. package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +4 -2
  217. package/mobile/bundle/components/RollupItem/renderRoundedIcon.d.ts +4 -0
  218. package/mobile/bundle/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  219. package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +8 -3
  220. package/mobile/bundle/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  221. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  222. package/mobile/dist/components/Blocks.js +6 -0
  223. package/mobile/dist/components/Blocks.js.map +1 -1
  224. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  225. package/mobile/dist/components/BusinessBlock/BusinessCard.js +1 -1
  226. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  227. package/{dist/components/ButtonBlock/ButtonBlock.js → mobile/dist/components/ButtonsBlock/ButtonsBlock.js} +3 -3
  228. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  229. package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  230. package/mobile/dist/components/{ButtonBlock/ButtonBlockContent.js → ButtonsBlock/ButtonsBlockContent.js} +1 -1
  231. package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  232. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
  233. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  234. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
  235. package/mobile/dist/components/CarouselCard/CarouselCard.js +9 -7
  236. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  237. package/mobile/dist/components/CarouselCard/getCardWidth.d.ts +1 -0
  238. package/mobile/dist/components/CarouselCard/getCardWidth.js +18 -0
  239. package/mobile/dist/components/CarouselCard/getCardWidth.js.map +1 -0
  240. package/mobile/dist/components/CarouselCard/titleSize.d.ts +1 -0
  241. package/mobile/dist/components/CarouselCard/titleSize.js +4 -0
  242. package/mobile/dist/components/CarouselCard/titleSize.js.map +1 -0
  243. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  244. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  245. package/mobile/dist/components/Footer/Contacts.d.ts +2 -2
  246. package/mobile/dist/components/Footer/Contacts.js +4 -5
  247. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  248. package/mobile/dist/components/Footer/FooterContent.d.ts +9 -1
  249. package/mobile/dist/components/Footer/FooterDataProps.d.ts +2 -2
  250. package/mobile/dist/components/PictureText/PictureText.js +5 -11
  251. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  252. package/mobile/dist/components/PictureText/positionStyle.d.ts +1 -0
  253. package/mobile/dist/components/PictureText/positionStyle.js +4 -0
  254. package/mobile/dist/components/PictureText/positionStyle.js.map +1 -0
  255. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  256. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +15 -0
  257. package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  258. package/mobile/dist/components/PictureText/styleInsuranceSum.d.ts +1 -0
  259. package/mobile/dist/components/PictureText/styleInsuranceSum.js +4 -0
  260. package/mobile/dist/components/PictureText/styleInsuranceSum.js.map +1 -0
  261. package/mobile/dist/components/PictureText/styleValueBlock.d.ts +2 -0
  262. package/mobile/dist/components/PictureText/styleValueBlock.js +5 -0
  263. package/mobile/dist/components/PictureText/styleValueBlock.js.map +1 -0
  264. package/mobile/dist/components/RollupItem/RollupItem.js +14 -9
  265. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  266. package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +4 -2
  267. package/mobile/dist/components/RollupItem/renderRoundedIcon.d.ts +4 -0
  268. package/mobile/dist/components/RollupItem/renderRoundedIcon.js +7 -0
  269. package/mobile/dist/components/RollupItem/renderRoundedIcon.js.map +1 -0
  270. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +12 -11
  271. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  272. package/mobile/dist/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  273. package/mobile/dist/ui-kit/BenefitItem/labelSize.js +4 -0
  274. package/mobile/dist/ui-kit/BenefitItem/labelSize.js.map +1 -0
  275. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -2
  276. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  277. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +8 -3
  278. package/mobile/dist/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  279. package/mobile/dist/ui-kit/Icon/RoundedIcon.js +5 -1
  280. package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  281. package/mobile/lib/common.css +1 -1
  282. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  283. package/mobile/lib/components/Blocks.js +6 -0
  284. package/mobile/lib/components/Blocks.js.map +1 -1
  285. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  286. package/mobile/lib/components/BusinessBlock/BusinessCard.js +1 -1
  287. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
  288. package/mobile/lib/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +2 -2
  289. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
  290. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
  291. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.js +2 -0
  292. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
  293. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
  294. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  295. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
  296. package/mobile/lib/components/CarouselCard/CarouselCard.js +9 -7
  297. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  298. package/mobile/lib/components/CarouselCard/getCardWidth.d.ts +1 -0
  299. package/mobile/lib/components/CarouselCard/getCardWidth.js +15 -0
  300. package/mobile/lib/components/CarouselCard/getCardWidth.js.map +1 -0
  301. package/mobile/lib/components/CarouselCard/titleSize.d.ts +1 -0
  302. package/mobile/lib/components/CarouselCard/titleSize.js +2 -0
  303. package/mobile/lib/components/CarouselCard/titleSize.js.map +1 -0
  304. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  305. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  306. package/mobile/lib/components/Footer/Contacts.d.ts +2 -2
  307. package/mobile/lib/components/Footer/Contacts.js +4 -5
  308. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  309. package/mobile/lib/components/Footer/FooterContent.d.ts +9 -1
  310. package/mobile/lib/components/Footer/FooterDataProps.d.ts +2 -2
  311. package/mobile/lib/components/PictureText/PictureText.js +5 -11
  312. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  313. package/mobile/lib/components/PictureText/positionStyle.d.ts +1 -0
  314. package/mobile/lib/components/PictureText/positionStyle.js +2 -0
  315. package/mobile/lib/components/PictureText/positionStyle.js.map +1 -0
  316. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
  317. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +12 -0
  318. package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
  319. package/mobile/lib/components/PictureText/styleInsuranceSum.d.ts +1 -0
  320. package/mobile/lib/components/PictureText/styleInsuranceSum.js +2 -0
  321. package/mobile/lib/components/PictureText/styleInsuranceSum.js.map +1 -0
  322. package/mobile/lib/components/PictureText/styleValueBlock.d.ts +2 -0
  323. package/mobile/lib/components/PictureText/styleValueBlock.js +3 -0
  324. package/mobile/lib/components/PictureText/styleValueBlock.js.map +1 -0
  325. package/mobile/lib/components/RollupItem/RollupItem.js +14 -9
  326. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  327. package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +4 -2
  328. package/mobile/lib/components/RollupItem/renderRoundedIcon.d.ts +4 -0
  329. package/mobile/lib/components/RollupItem/renderRoundedIcon.js +4 -0
  330. package/mobile/lib/components/RollupItem/renderRoundedIcon.js.map +1 -0
  331. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +12 -11
  332. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  333. package/mobile/lib/ui-kit/BenefitItem/labelSize.d.ts +1 -0
  334. package/mobile/lib/ui-kit/BenefitItem/labelSize.js +2 -0
  335. package/mobile/lib/ui-kit/BenefitItem/labelSize.js.map +1 -0
  336. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -2
  337. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  338. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +8 -3
  339. package/mobile/lib/ui-kit/Icon/RoundedIcon.d.ts +5 -1
  340. package/mobile/lib/ui-kit/Icon/RoundedIcon.js +5 -1
  341. package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  342. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  343. package/mobile/src/components/Blocks.ts +6 -0
  344. package/mobile/src/components/Bonus/Bonus.tsx +1 -1
  345. package/mobile/src/components/BusinessBlock/BusinessCard.tsx +1 -1
  346. package/mobile/src/components/ButtonsBlock/ButtonsBlock.example.json +14 -0
  347. package/mobile/src/components/{ButtonBlock/ButtonBlock.tsx → ButtonsBlock/ButtonsBlock.tsx} +4 -4
  348. package/mobile/src/components/ButtonsBlock/ButtonsBlock.ui.json +14 -0
  349. package/mobile/src/components/ButtonsBlock/ButtonsBlockContent.ts +9 -0
  350. package/mobile/src/components/CardTransfer/CardTransfer.tsx +9 -3
  351. package/mobile/src/components/CarouselCard/CarouselCard.tsx +16 -12
  352. package/mobile/src/components/CarouselCard/getCardWidth.tsx +16 -0
  353. package/mobile/src/components/CarouselCard/titleSize.tsx +1 -0
  354. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -3
  355. package/mobile/src/components/Footer/Contacts.tsx +20 -12
  356. package/mobile/src/components/Footer/FooterContent.ts +10 -1
  357. package/mobile/src/components/Footer/FooterDataProps.ts +2 -2
  358. package/mobile/src/components/PictureText/PictureText.tsx +13 -27
  359. package/mobile/src/components/PictureText/positionStyle.tsx +1 -0
  360. package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +28 -0
  361. package/mobile/src/components/PictureText/styleInsuranceSum.tsx +1 -0
  362. package/mobile/src/components/PictureText/styleValueBlock.tsx +2 -0
  363. package/mobile/src/components/RollupItem/RollupItem.tsx +25 -18
  364. package/mobile/src/components/RollupItem/RollupItem.ui.json +7 -1
  365. package/mobile/src/components/RollupItem/RollupItemContent.ts +4 -2
  366. package/mobile/src/components/RollupItem/renderRoundedIcon.tsx +7 -0
  367. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +26 -22
  368. package/mobile/src/ui-kit/BenefitItem/labelSize.tsx +1 -0
  369. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +8 -2
  370. package/mobile/src/ui-kit/Icon/IconProps.ts +9 -4
  371. package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +18 -6
  372. package/package.json +1 -1
  373. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  374. package/src/components/Blocks.mobile.ts +6 -0
  375. package/src/components/Blocks.ts +2 -2
  376. package/src/components/Bonus/Bonus.tsx +1 -1
  377. package/src/components/BusinessBlock/BusinessCard.tsx +1 -1
  378. package/src/components/ButtonsBlock/ButtonsBlock.example.json +14 -0
  379. package/src/components/ButtonsBlock/ButtonsBlock.fixture.mobile.tsx +26 -0
  380. package/src/components/ButtonsBlock/ButtonsBlock.fixture.tsx +26 -0
  381. package/src/components/{ButtonBlock/ButtonBlock.tsx → ButtonsBlock/ButtonsBlock.tsx} +4 -4
  382. package/src/components/ButtonsBlock/ButtonsBlock.ui.json +14 -0
  383. package/src/components/ButtonsBlock/ButtonsBlockContent.ts +9 -0
  384. package/src/components/CardTransfer/CardTransfer.fixture.mobile.tsx +18 -0
  385. package/src/components/CardTransfer/CardTransfer.tsx +9 -3
  386. package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +28 -0
  387. package/src/components/CarouselCard/CarouselCard.tsx +16 -12
  388. package/src/components/CarouselCard/getCardWidth.tsx +16 -0
  389. package/src/components/CarouselCard/titleSize.mobile.tsx +1 -0
  390. package/src/components/CarouselCard/titleSize.tsx +1 -0
  391. package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -3
  392. package/src/components/Footer/Contacts.tsx +20 -12
  393. package/src/components/Footer/FooterContent.ts +10 -1
  394. package/src/components/Footer/FooterDataProps.ts +2 -2
  395. package/src/components/PictureText/PictureText.fixture.mobile.tsx +122 -0
  396. package/src/components/PictureText/PictureText.tsx +13 -27
  397. package/src/components/PictureText/positionStyle.mobile.tsx +1 -0
  398. package/src/components/PictureText/positionStyle.tsx +1 -0
  399. package/src/components/PictureText/renderInsuranceSumMonth.tsx +28 -0
  400. package/src/components/PictureText/styleInsuranceSum.mobile.tsx +1 -0
  401. package/src/components/PictureText/styleInsuranceSum.tsx +1 -0
  402. package/src/components/PictureText/styleValueBlock.mobile.tsx +2 -0
  403. package/src/components/PictureText/styleValueBlock.tsx +2 -0
  404. package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +15 -0
  405. package/src/components/RollupItem/RollupItem.tsx +25 -18
  406. package/src/components/RollupItem/RollupItem.ui.json +7 -1
  407. package/src/components/RollupItem/RollupItemContent.ts +4 -2
  408. package/src/components/RollupItem/renderRoundedIcon.mobile.tsx +7 -0
  409. package/src/components/RollupItem/renderRoundedIcon.tsx +4 -0
  410. package/src/ui-kit/BenefitItem/BenefitItem.tsx +26 -22
  411. package/src/ui-kit/BenefitItem/borderRadius.mobile.tsx +1 -0
  412. package/src/ui-kit/BenefitItem/labelSize.mobile.tsx +1 -0
  413. package/src/ui-kit/BenefitItem/labelSize.tsx +1 -0
  414. package/src/ui-kit/Button/renderButtonsSection.tsx +8 -2
  415. package/src/ui-kit/Icon/IconProps.ts +9 -4
  416. package/src/ui-kit/Icon/RoundedIcon.tsx +18 -6
  417. package/bundle/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  418. package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  419. package/dist/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  420. package/dist/components/ButtonBlock/ButtonBlock.js.map +0 -1
  421. package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  422. package/dist/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  423. package/lib/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  424. package/lib/components/ButtonBlock/ButtonBlock.js.map +0 -1
  425. package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  426. package/lib/components/ButtonBlock/ButtonBlockContent.js +0 -2
  427. package/lib/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  428. package/mobile/bundle/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  429. package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  430. package/mobile/dist/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  431. package/mobile/dist/components/ButtonBlock/ButtonBlock.js.map +0 -1
  432. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  433. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  434. package/mobile/lib/components/ButtonBlock/ButtonBlock.d.ts +0 -6
  435. package/mobile/lib/components/ButtonBlock/ButtonBlock.js.map +0 -1
  436. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
  437. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js +0 -2
  438. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
  439. package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +0 -12
  440. package/mobile/src/components/ButtonBlock/ButtonBlock.ui.json +0 -12
  441. package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +0 -9
  442. package/src/components/ButtonBlock/ButtonBlock.example.json +0 -12
  443. package/src/components/ButtonBlock/ButtonBlock.fixture.tsx +0 -19
  444. package/src/components/ButtonBlock/ButtonBlock.ui.json +0 -12
  445. package/src/components/ButtonBlock/ButtonBlockContent.ts +0 -9
  446. /package/lib/components/{ButtonBlock/ButtonBlock.fixture.d.ts → ButtonsBlock/ButtonsBlock.fixture.d.ts} +0 -0
@@ -4,17 +4,11 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
6
  const Img_1 = require("../../ui-kit/Img/Img");
7
- const toLocalNumberFormat_1 = require("../../utils/toLocalNumberFormat");
8
7
  const Headline_1 = require("../Headline/Headline");
9
8
  const renderBenefit_1 = require("./renderBenefit");
10
- exports.PictureText = (0, uni_jsx_1.JSX)(({ className = '', title, description, image, benefits, sum, monthLimit, directionRight = false, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `relative py-12 px-24 ${className}`, version: version, ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M" }), (0, jsx_runtime_1.jsxs)("div", { className: 'flex justify-center gap-[122px] mt-[30px]', children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: directionRight ? 'order-2' : '', image: image }) : null, (0, jsx_runtime_1.jsxs)("div", { className: "w-[558px] m-auto", children: [benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-4", children: benefits.map((0, renderBenefit_1.renderBenefit)(version)) })) : null, renderInsuranceSumMonth(Number(sum), Number(monthLimit))] })] })] })));
11
- function renderInsuranceSumMonth(sum, monthLimit) {
12
- return sum || monthLimit ? ((0, jsx_runtime_1.jsxs)("div", { className: "bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null, Number(monthLimit) > 0
13
- ? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(sum))
14
- : null] })) : null;
15
- }
16
- function renderValueBlock(title, sum = 0, isAnotherBlock = false) {
17
- const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
18
- return ((0, jsx_runtime_1.jsxs)("div", { className: `flex justify-between items-center gap-2 w-full whitespace-pre ${widthStyle}`, children: [(0, jsx_runtime_1.jsx)("span", { className: "text-secondary-text text-l-light", children: title }), (0, jsx_runtime_1.jsxs)("span", { className: "text-primary-main text-h6", children: [(0, toLocalNumberFormat_1.toLocalNumberFormat)(2)(sum), " \u20BD"] })] }));
19
- }
9
+ const style_1 = require("../../utils/style");
10
+ const positionStyle_1 = require("./positionStyle");
11
+ const renderInsuranceSumMonth_1 = require("./renderInsuranceSumMonth");
12
+ exports.PictureText = (0, uni_jsx_1.JSX)(({ className = '', title, description, image, benefits, sum, monthLimit, directionRight = false, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative p-default', className), version: version, ...rest, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M" // TODO: Сверить с макетом после влития мобильных правок Headline (DRAFT)
13
+ , align: "text-left" }), (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex mt-6', positionStyle_1.positionStyle), children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: directionRight ? 'order-2' : '', image: image }) : null, (0, jsx_runtime_1.jsxs)("div", { children: [benefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-4", children: benefits.map((0, renderBenefit_1.renderBenefit)(version)) })) : null, (0, renderInsuranceSumMonth_1.renderInsuranceSumMonth)(Number(sum), Number(monthLimit))] })] })] })));
20
14
  //# sourceMappingURL=PictureText.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PictureText.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureText.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,8CAA2C;AAC3C,yEAAsE;AACtE,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,KAAK,EACL,QAAQ,EACR,GAAG,EACH,UAAU,EACV,cAAc,GAAG,KAAK,EACtB,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IAAC,SAAS,EAAE,wBAAwB,SAAS,EAAE,EAAE,OAAO,EAAE,OAAO,KAAM,IAAI,aACtF,uBAAC,mBAAQ,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAC,GAAG,GAAG,EACzF,iCAAK,SAAS,EAAE,2CAA2C,aACxD,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,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,CAAC,GAAO,CAClF,CAAC,CAAC,CAAC,IAAI,EACP,IAAA,iDAAuB,EAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,IACrD,IACF,IACO,CAChB,CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const positionStyle = "justify-center items-center gap-32";
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.positionStyle = void 0;
3
+ exports.positionStyle = 'justify-center items-center gap-32';
4
+ //# sourceMappingURL=positionStyle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"positionStyle.js","sourceRoot":"","sources":["../../../src/components/PictureText/positionStyle.tsx"],"names":[],"mappings":";;AAAa,QAAA,aAAa,GAAG,oCAAoC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const positionStyle = "justify-end flex-col-reverse gap-4";
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.positionStyle = void 0;
3
+ exports.positionStyle = 'justify-end flex-col-reverse gap-4';
4
+ //# sourceMappingURL=positionStyle.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"positionStyle.mobile.js","sourceRoot":"","sources":["../../../src/components/PictureText/positionStyle.mobile.tsx"],"names":[],"mappings":";;AAAa,QAAA,aAAa,GAAG,oCAAoC,CAAC"}
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const renderInsuranceSumMonth: (sum?: number, monthLimit?: number) => JSX.Element | null;
@@ -0,0 +1,15 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderInsuranceSumMonth = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Text_1 = require("../../ui-kit/Text/Text");
5
+ const style_1 = require("../../utils/style");
6
+ const styleInsuranceSum_1 = require("./styleInsuranceSum");
7
+ const toLocalNumberFormat_1 = require("../../utils/toLocalNumberFormat");
8
+ const styleValueBlock_1 = require("./styleValueBlock");
9
+ const renderInsuranceSumMonth = (sum = 0, monthLimit = 0) => sum || monthLimit ? ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex mt-6', styleInsuranceSum_1.styleInsuranceSum), children: [sum > 0 ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null, monthLimit > 0 ? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(sum)) : null] })) : null;
10
+ exports.renderInsuranceSumMonth = renderInsuranceSumMonth;
11
+ const renderValueBlock = (title, sum = 0, isAnotherBlock = false) => {
12
+ const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
13
+ return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(`flex w-full whitespace-pre`, styleValueBlock_1.styleValueBlock, widthStyle), children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { font: "font-light", size: "text-l", children: title }), (0, jsx_runtime_1.jsxs)(Text_1.Text, { size: "text-h6", color: styleValueBlock_1.styleValueBlockText, children: [(0, toLocalNumberFormat_1.toLocalNumberFormat)(2)(sum), " \u20BD"] })] }));
14
+ };
15
+ //# sourceMappingURL=renderInsuranceSumMonth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderInsuranceSumMonth.js","sourceRoot":"","sources":["../../../src/components/PictureText/renderInsuranceSumMonth.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,6CAA0C;AAC1C,2DAAwD;AACxD,yEAAsE;AACtE,uDAAyE;AAElE,MAAM,uBAAuB,GAAG,CAAC,GAAG,GAAG,CAAC,EAAE,UAAU,GAAG,CAAC,EAAE,EAAE,CACjE,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAClB,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,WAAW,EAAE,qCAAiB,CAAC,aAClD,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,GAAG,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAC/E,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IACrF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AANE,QAAA,uBAAuB,2BAMzB;AAEX,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,GAAG,GAAG,CAAC,EAAE,cAAc,GAAG,KAAK,EAAE,EAAE;IAC1E,MAAM,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;IAEvD,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,4BAA4B,EAAE,iCAAe,EAAE,UAAU,CAAC,aAC9E,uBAAC,WAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,YAClC,KAAK,GACD,EACP,wBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,qCAAmB,aAC5C,IAAA,yCAAmB,EAAC,CAAC,CAAC,CAAC,GAAG,CAAC,eACvB,IACH,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const styleInsuranceSum = "bg-main-divider rounded-md px-5 py-4 gap-6";
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.styleInsuranceSum = void 0;
3
+ exports.styleInsuranceSum = 'bg-main-divider rounded-md px-5 py-4 gap-6';
4
+ //# sourceMappingURL=styleInsuranceSum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styleInsuranceSum.js","sourceRoot":"","sources":["../../../src/components/PictureText/styleInsuranceSum.tsx"],"names":[],"mappings":";;AAAa,QAAA,iBAAiB,GAAG,4CAA4C,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const styleInsuranceSum = "flex-col gap-2";
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.styleInsuranceSum = void 0;
3
+ exports.styleInsuranceSum = 'flex-col gap-2';
4
+ //# sourceMappingURL=styleInsuranceSum.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styleInsuranceSum.mobile.js","sourceRoot":"","sources":["../../../src/components/PictureText/styleInsuranceSum.mobile.tsx"],"names":[],"mappings":";;AAAa,QAAA,iBAAiB,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const styleValueBlock = "justify-between items-center gap-2";
2
+ export declare const styleValueBlockText = "text-primary-main";
@@ -0,0 +1,5 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.styleValueBlockText = exports.styleValueBlock = void 0;
3
+ exports.styleValueBlock = 'justify-between items-center gap-2';
4
+ exports.styleValueBlockText = 'text-primary-main';
5
+ //# sourceMappingURL=styleValueBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styleValueBlock.js","sourceRoot":"","sources":["../../../src/components/PictureText/styleValueBlock.tsx"],"names":[],"mappings":";;AAAa,QAAA,eAAe,GAAG,oCAAoC,CAAC;AACvD,QAAA,mBAAmB,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const styleValueBlock = "flex-col gap-1";
2
+ export declare const styleValueBlockText = "";
@@ -0,0 +1,5 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.styleValueBlockText = exports.styleValueBlock = void 0;
3
+ exports.styleValueBlock = 'flex-col gap-1';
4
+ exports.styleValueBlockText = '';
5
+ //# sourceMappingURL=styleValueBlock.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styleValueBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/PictureText/styleValueBlock.mobile.tsx"],"names":[],"mappings":";;AAAa,QAAA,eAAe,GAAG,gBAAgB,CAAC;AACnC,QAAA,mBAAmB,GAAG,EAAE,CAAC"}
@@ -8,7 +8,7 @@ const DefaultFoldButton_1 = require("../../ui-kit/Foldable/DefaultFoldButton");
8
8
  const Foldable_1 = require("../../ui-kit/Foldable/Foldable");
9
9
  const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
10
10
  const Icon_1 = require("../../ui-kit/Icon/Icon");
11
- const RoundedIcon_1 = require("../../ui-kit/Icon/RoundedIcon");
11
+ const renderRoundedIcon_1 = require("./renderRoundedIcon");
12
12
  const Text_1 = require("../../ui-kit/Text/Text");
13
13
  const style_1 = require("../../utils/style");
14
14
  const foldableSectionStyles_1 = require("./foldableSectionStyles");
@@ -16,25 +16,30 @@ const getIconName_1 = require("./getIconName");
16
16
  const labelSize_1 = require("./labelSize");
17
17
  const rollupIconVersion_1 = require("./rollupIconVersion");
18
18
  const rollupItemStyles_1 = require("./rollupItemStyles");
19
- exports.RollupItem = (0, uni_jsx_1.JSX)(({ className = '', label = 'Развернуть', labelIcon, isExpanded, isFoldButtonOnTop = true, version = 'primary', ...rest }) => {
20
- return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('w-full', rollupItemStyles_1.rollupItemStyles, className), tag: "div", version: "transparent", ...rest, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: (0, style_1.style)('gap-5 [&>*]:p-0', foldableSectionStyles_1.foldableSectionStyles), isUnfolded: isUnfolded, children: (0, renderChildren_1.renderChildren)(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ version, label, labelIcon, isUnfolded, onToggle }) }) }));
19
+ exports.RollupItem = (0, uni_jsx_1.JSX)(({ className = '', label = 'Развернуть', labelIcon, labelIconBgVersion, isExpanded, isFoldButtonOnTop = true, version = 'primary', ...rest }) => {
20
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('w-full', rollupItemStyles_1.rollupItemStyles, className), tag: "div", version: "transparent", ...rest, children: (0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { className: (0, style_1.style)('gap-5 [&>*]:p-0', foldableSectionStyles_1.foldableSectionStyles), isUnfolded: isUnfolded, children: (0, renderChildren_1.renderChildren)(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({
21
+ version,
22
+ label,
23
+ labelIcon,
24
+ labelIconBgVersion,
25
+ isUnfolded,
26
+ onToggle,
27
+ }) }) }));
21
28
  });
22
29
  exports.RollupItem.childrenTypes = {
23
30
  exclude: ['RollupItem'],
24
31
  };
25
- const renderFoldButton = ({ version, label: defaultLabel, labelIcon, isUnfolded, onToggle, }) => {
32
+ const renderFoldButton = ({ version, label: defaultLabel, labelIcon, labelIconBgVersion, isUnfolded, onToggle, }) => {
26
33
  const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
27
34
  return version === 'primary' ? (renderPrimaryFoldButton({
28
35
  label,
29
36
  labelIcon,
37
+ labelIconBgVersion,
30
38
  icon: (0, getIconName_1.getIconName)(isUnfolded),
31
39
  onToggle,
32
40
  })) : ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
33
41
  };
34
- const renderPrimaryFoldButton = ({ label, icon, onToggle, labelIcon }) => {
35
- const iconWidth = String(labelIcon?.size?.width || 24);
36
- const iconHeight = String(labelIcon?.size?.height || 24);
37
- const iconName = labelIcon?.icon;
38
- return ((0, jsx_runtime_1.jsxs)("button", { className: (0, style_1.style)('border-none bg-transparent px-0 flex justify-between items-center w-full cursor-pointer group/button', iconName ? 'py-2' : 'py-5'), onClick: onToggle, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center group-hover/button:text-primary-main", children: [iconName ? ((0, jsx_runtime_1.jsx)(RoundedIcon_1.RoundedIcon, { name: iconName, width: iconWidth, height: iconHeight, iconVersion: labelIcon?.iconVersion })) : null, label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: labelSize_1.labelSize, font: "font-normal", children: label })) : null] }), icon ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, iconVersion: rollupIconVersion_1.rollupIconVersion, width: "24", height: "24" }) : null] }));
42
+ const renderPrimaryFoldButton = ({ label, labelIconBgVersion, icon, onToggle, labelIcon, }) => {
43
+ return ((0, jsx_runtime_1.jsxs)("button", { className: (0, style_1.style)('border-none bg-transparent px-0 flex justify-between items-center w-full cursor-pointer group/button', labelIcon?.icon ? 'py-2' : 'py-5'), onClick: onToggle, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center group-hover/button:text-primary-main", children: [(0, renderRoundedIcon_1.renderRoundedIcon)(labelIcon, labelIconBgVersion), label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: labelSize_1.labelSize, font: "font-normal", children: label })) : null] }), icon ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, iconVersion: rollupIconVersion_1.rollupIconVersion, width: "24", height: "24" }) : null] }));
39
44
  };
40
45
  //# sourceMappingURL=RollupItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RollupItem.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAIpE,4DAAyD;AACzD,+EAA4E;AAC5E,6DAA0D;AAE1D,2EAAwE;AACxE,iDAA8C;AAE9C,+DAA4D;AAC5D,iDAA8C;AAC9C,6CAA0C;AAC1C,mEAAgE;AAChE,+CAA4C;AAC5C,2CAAwC;AACxC,2DAAwD;AAExD,yDAAsD;AAIzC,QAAA,UAAU,GAA8B,IAAA,aAAG,E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E,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IACnF,CACV,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"RollupItem.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAIpE,4DAAyD;AACzD,+EAA4E;AAC5E,6DAA0D;AAE1D,2EAAwE;AACxE,iDAA8C;AAE9C,2DAAwD;AACxD,iDAA8C;AAC9C,6CAA0C;AAC1C,mEAAgE;AAChE,+CAA4C;AAC5C,2CAAwC;AACxC,2DAAwD;AAExD,yDAAsD;AAIzC,QAAA,UAAU,GAA8B,IAAA,aAAG,EACtD,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,YAAY,EACpB,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,iBAAiB,GAAG,IAAI,EACxB,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,QAAQ,EAAE,mCAAgB,EAAE,SAAS,CAAC,EACvD,GAAG,EAAC,KAAK,EACT,OAAO,EAAC,aAAa,KACjB,IAAI,YAER,uBAAC,mBAAQ,IACP,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,UAAU,EAC7B,qBAAqB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,iCAAe,IACd,SAAS,EAAE,IAAA,aAAK,EAAC,iBAAiB,EAAE,6CAAqB,CAAC,EAC1D,UAAU,EAAE,UAAU,YAErB,IAAA,+BAAc,EAAC,IAAI,CAAC,GACL,CACnB,EACD,gBAAgB,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,CAC7C,gBAAgB,CAAC;gBACf,OAAO;gBACP,KAAK;gBACL,SAAS;gBACT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S,EAAE,IAAI,EAAC,aAAa,YACtC,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,IAAI,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,qCAAiB,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IACnF,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { LabelProps } from '../../model/HeadlineType';
2
2
  import type { UniBlockContent } from '../../model/JSXBlock';
3
- import type { IconProps } from '../../ui-kit/Icon/IconProps';
3
+ import type { Picture } from '../../model/Picture';
4
+ import type { IconBgVersion } from '../../ui-kit/Icon/IconProps';
4
5
  /**
5
6
  * @title Сворачивающаяся секция
6
7
  */
@@ -9,5 +10,6 @@ export declare type RollupItemContent = UniBlockContent & LabelProps & {
9
10
  isExpanded?: boolean;
10
11
  /** @title Кнопка сверху */
11
12
  isFoldButtonOnTop?: boolean;
12
- labelIcon?: IconProps;
13
+ labelIcon?: Picture;
14
+ labelIconBgVersion?: IconBgVersion;
13
15
  };
@@ -0,0 +1,3 @@
1
+ import type { Picture } from '../../model/Picture';
2
+ import type { IconBgVersion } from '../../ui-kit/Icon/IconProps';
3
+ export declare const renderRoundedIcon: (icon?: Picture, iconBgVersion?: IconBgVersion) => null;
@@ -0,0 +1,5 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderRoundedIcon = void 0;
3
+ const renderRoundedIcon = (icon, iconBgVersion) => null;
4
+ exports.renderRoundedIcon = renderRoundedIcon;
5
+ //# sourceMappingURL=renderRoundedIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderRoundedIcon.js","sourceRoot":"","sources":["../../../src/components/RollupItem/renderRoundedIcon.tsx"],"names":[],"mappings":";;AAGO,MAAM,iBAAiB,GAAG,CAAC,IAAc,EAAE,aAA6B,EAAE,EAAE,CAAC,IAAI,CAAC;AAA5E,QAAA,iBAAiB,qBAA2D"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { Picture } from '../../model/Picture';
3
+ import type { IconBgVersion } from '../../ui-kit/Icon/IconProps';
4
+ export declare const renderRoundedIcon: (icon?: Picture, iconBgVersion?: IconBgVersion) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderRoundedIcon = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const RoundedIcon_1 = require("../../ui-kit/Icon/RoundedIcon");
5
+ const renderRoundedIcon = (icon, iconBgVersion) => ((0, jsx_runtime_1.jsx)(RoundedIcon_1.RoundedIcon, { ...icon, iconBgVersion: iconBgVersion }));
6
+ exports.renderRoundedIcon = renderRoundedIcon;
7
+ //# sourceMappingURL=renderRoundedIcon.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderRoundedIcon.mobile.js","sourceRoot":"","sources":["../../../src/components/RollupItem/renderRoundedIcon.mobile.tsx"],"names":[],"mappings":";;;AACA,+DAA4D;AAGrD,MAAM,iBAAiB,GAAG,CAAC,IAAc,EAAE,aAA6B,EAAE,EAAE,CAAC,CAClF,uBAAC,yBAAW,OAAK,IAAI,EAAE,aAAa,EAAE,aAAa,GAAI,CACxD,CAAC;AAFW,QAAA,iBAAiB,qBAE5B"}
@@ -2,19 +2,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.BenefitItem = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const style_1 = require("../../utils/style");
6
5
  const Img_1 = require("../Img/Img");
6
+ const style_1 = require("../../utils/style");
7
+ const labelSize_1 = require("./labelSize");
7
8
  const Paragraph_1 = require("../Paragraph/Paragraph");
8
9
  const Text_1 = require("../Text/Text");
9
- exports.BenefitItem = (0, uni_jsx_1.JSX)(({ className, icon, label, description, version = 'primary', benefitsVersion = 'normal' }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex gap-5', description ? 'items-start' : 'items-center', className), children: [icon ? ((0, jsx_runtime_1.jsx)("div", { className: getBenefitIconBgStyle(version, benefitsVersion), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null, (0, jsx_runtime_1.jsxs)("div", { children: [label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", color: "text-primary-text group-data-secondary:text-white", children: label })) : null, description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m-light", color: "text-secondary-text group-data-secondary:text-white", children: description })) : null] })] })));
10
- function getBenefitIconBgStyle(version, benefitsVersion) {
11
- let bgColorStyle = 'bg-primary-main text-black';
12
- if (version === 'secondary') {
13
- bgColorStyle = 'bg-white/30 text-black';
14
- }
15
- else if (benefitsVersion === 'normal') {
16
- bgColorStyle = 'bg-secondary-light text-primary-main';
17
- }
18
- return `w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
10
+ exports.BenefitItem = (0, uni_jsx_1.JSX)((props) => {
11
+ const { className = '', icon, label, description, benefitsVersion = 'normal' } = props;
12
+ const listItemAlign = description ? 'items-start' : 'items-center';
13
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? ((0, jsx_runtime_1.jsx)("div", { className: getBenefitIconBgStyle(benefitsVersion), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "gap-0.5", children: [label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-primary-text group-data-secondary:text-white", size: labelSize_1.labelSize, children: label })) : null, description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description })) : null] })] }));
14
+ });
15
+ function getBenefitIconBgStyle(benefitsVersion) {
16
+ const bgColorStyle = benefitsVersion === 'normal'
17
+ ? 'bg-secondary-light text-primary-main'
18
+ : 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black';
19
+ return (0, style_1.style)('w-12 h-12 min-w-12 p-2.5 box-border flex items-center justify-center rounded-icon', bgColorStyle);
19
20
  }
20
21
  //# sourceMappingURL=BenefitItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BenefitItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/BenefitItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,6CAA0C;AAC1C,oCAAiC;AACjC,sDAAmD;AACnD,uCAAoC;AAKvB,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,GAAG,SAAS,EAAE,eAAe,GAAG,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC5F,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,EAAE,SAAS,CAAC,aACzF,IAAI,CAAC,CAAC,CAAC,CACN,gCAAK,SAAS,EAAE,qBAAqB,CAAC,OAAO,EAAE,eAAe,CAAC,YAC7D,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,eAAe,EAAE,GACpE,GACE,CACP,CAAC,CAAC,CAAC,IAAI,EACR,4CACG,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,mDAAmD,YAC3E,KAAK,GAC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GACpE,GACE,CACP,CAAC,CAAC,CAAC,IAAI,EACR,iCAAK,SAAS,EAAC,SAAS,aACrB,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,KAAK,EAAC,mDAAmD,EAAC,IAAI,EAAE,qBAAS,YAC5E,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,qBAAS,IACR,IAAI,EAAC,YAAY,EACjB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,qDAAqD,YAE1D,WAAW,GACF,CACb,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAED,SAAS,qBAAqB,CAAC,eAA4B;IACnD,MAAM,YAAY,GAClB,eAAe,KAAK,QAAQ;QAC5B,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,6FAA6F,CAAC;IAEhG,OAAO,IAAA,aAAK,EACZ,mFAAmF,EACnF,YAAY,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const borderRadius = "rounded-md";
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.borderRadius = void 0;
3
+ exports.borderRadius = 'rounded-md';
4
+ //# sourceMappingURL=borderRadius.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"borderRadius.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/borderRadius.mobile.tsx"],"names":[],"mappings":";;AAAa,QAAA,YAAY,GAAG,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const labelSize = "text-h6";
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.labelSize = void 0;
3
+ exports.labelSize = 'text-h6';
4
+ //# sourceMappingURL=labelSize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labelSize.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/labelSize.tsx"],"names":[],"mappings":";;AAAa,QAAA,SAAS,GAAG,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const labelSize = "text-l";
@@ -0,0 +1,4 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.labelSize = void 0;
3
+ exports.labelSize = 'text-l';
4
+ //# sourceMappingURL=labelSize.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labelSize.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/labelSize.mobile.tsx"],"names":[],"mappings":";;AAAa,QAAA,SAAS,GAAG,QAAQ,CAAC"}
@@ -4,13 +4,13 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const style_1 = require("../../utils/style");
5
5
  const Img_1 = require("../Img/Img");
6
6
  const Button_1 = require("./Button");
7
- const renderButtonsSection = (buttons, { className = '', buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex', isVertical ? 'flex-col gap-2' : 'flex-wrap gap-4', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
7
+ const renderButtonsSection = (buttons, { className = '', buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex', isVertical ? 'flex-col gap-2 justify-items-stretch' : 'flex-wrap gap-4', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
8
8
  exports.renderButtonsSection = renderButtonsSection;
9
9
  const renderButton = (buttonClassName = '') => (button, index) => {
10
10
  const { text, icon, iconRight, version, ...rest } = button || {};
11
11
  const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
12
12
  const iconVersion = icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
13
- return text || icon?.icon ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: buttonClassName, appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
13
+ return text || icon?.icon ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: (0, style_1.style)('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
14
14
  };
15
15
  const DEFAULT_ICON_W = 24;
16
16
  const renderButtonIcon = (icon) => icon?.icon || icon?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
@@ -1 +1 @@
1
- {"version":3,"file":"renderButtonsSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/renderButtonsSection.tsx"],"names":[],"mappings":";;;AACA,6CAA0C;AAC1C,oCAAiC;AACjC,qCAAkC;AAS3B,MAAM,oBAAoB,GAAG,CAClC,OAA6C,EAC7C,EAAE,SAAS,GAAG,EAAE,EAAE,eAAe,EAAE,UAAU,KAA4B,EAAE,EAC3E,EAAE,CACF,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CACjE,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB,EAAE,SAAS,CAAC,YACxF,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,GACvC,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AARE,QAAA,oBAAoB,wBAQtB;AAEX,MAAM,YAAY,GAChB,CAAC,eAAe,GAAG,EAAE,EAAE,EAAE,CACzB,CAAC,MAA4B,EAAE,KAAc,E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AAE,CAAC,EACtD,WAAW,EAAE,gBAAgB,CAAC,EAAE,GAAG,SAAS,EAAE,WAAW,EAAE,CAAC,EAC5D,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,KACN,IAAI,IANH,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAO/B,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE,CACzC,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CACxB,uBAAC,SAAG,IACF,KAAK,EAAE,IAAI,EACX,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,cAAc,CAAC,EAClD,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -1,6 +1,14 @@
1
1
  import type { IconName } from '../../icons/IconName';
2
2
  import type { IconVersion } from '../../model/IconVersion';
3
3
  export type { IconName };
4
+ /**
5
+ * @title Цвет фона иконки
6
+ * @enumNames [
7
+ * "Основной",
8
+ * "Второстепенный",
9
+ * "Второстепенный светлый"
10
+ * ]
11
+ */
4
12
  export declare type IconBgVersion = 'primary' | 'secondary' | 'secondary-light';
5
13
  export interface IconCompatibilityFields {
6
14
  /** @title Альтернативный текст (alt) */
@@ -18,6 +26,3 @@ export declare type IconProps = IconCompatibilityFields & {
18
26
  name?: IconName;
19
27
  iconVersion?: IconVersion;
20
28
  };
21
- export interface RoundedIconProps extends IconProps {
22
- iconBgVersion?: IconBgVersion;
23
- }
@@ -1,2 +1,6 @@
1
- import type { RoundedIconProps } from './IconProps';
1
+ import type { IconBgVersion } from './IconProps';
2
+ import type { Picture } from '../../model/Picture';
3
+ export interface RoundedIconProps extends Picture {
4
+ iconBgVersion?: IconBgVersion;
5
+ }
2
6
  export declare const RoundedIcon: import("@redneckz/uni-jsx").UNIComponent<RoundedIconProps, any, any>;
@@ -9,5 +9,9 @@ const iconBgStyles = {
9
9
  secondary: 'bg-white/30',
10
10
  'secondary-light': 'bg-secondary-light',
11
11
  };
12
- exports.RoundedIcon = (0, uni_jsx_1.JSX)(({ iconBgVersion = 'primary', ...rest }) => ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('rounded-icon p-2.5 mr-3', iconBgStyles[iconBgVersion]), children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { ...rest }) })));
12
+ exports.RoundedIcon = (0, uni_jsx_1.JSX)(({ iconBgVersion = 'primary', size, icon, ...rest }) => {
13
+ const width = String(size?.width || 24);
14
+ const height = String(size?.height || 24);
15
+ return icon ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('rounded-icon p-2.5 mr-3', iconBgStyles[iconBgVersion]), children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { ...rest, width: width, height: height, name: icon }) })) : null;
16
+ });
13
17
  //# sourceMappingURL=RoundedIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RoundedIcon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/RoundedIcon.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iCAA8B;AAE9B,6CAA0C;AAE1C,MAAM,YAAY,GAAkC;IAClD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,aAAa;IACxB,iBAAiB,EAAE,oBAAoB;CACxC,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,aAAa,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC3F,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,yBAAyB,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC,YAC3E,uBAAC,WAAI,OAAK,IAAI,GAAI,GACd,CACP,CAAC,CAAC"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