@redneckz/wildless-cms-uni-blocks 0.10.1 → 0.10.2

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 (348) hide show
  1. package/bin/migration-scripts/0.10.2.js +31 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +29 -37
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
  6. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
  7. package/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
  8. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  9. package/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
  10. package/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
  11. package/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
  12. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  13. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
  14. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  15. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
  16. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  17. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
  18. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  19. package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
  20. package/dist/components/ComparisonTable/HeaderCell.js +1 -2
  21. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  22. package/dist/components/Footer/Footer.mobile.js +1 -2
  23. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  24. package/dist/components/Footer/MediaButton.js +1 -3
  25. package/dist/components/Footer/MediaButton.js.map +1 -1
  26. package/dist/components/LinkDocs/LinkDocs.js +5 -4
  27. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  28. package/dist/components/LinkDocs/LinkDocs.mobile.js +3 -3
  29. package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  30. package/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -4
  31. package/dist/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
  32. package/dist/components/LinkDocs/LinkDocsListItem.js +18 -2
  33. package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  34. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
  35. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  36. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  37. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -3
  38. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  39. package/dist/components/RollupItem/RollupItem.js +1 -2
  40. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  41. package/dist/components/RollupItem/RollupItem.mobile.js +1 -2
  42. package/dist/components/RollupItem/RollupItem.mobile.js.map +1 -1
  43. package/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
  44. package/dist/components/StepsBlock/StepsBlock.js +5 -5
  45. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  46. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
  47. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  48. package/dist/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
  49. package/dist/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
  50. package/dist/components/TariffsTable/TariffsTableRow.js +1 -2
  51. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  52. package/dist/content-page-repository/transformImg.js +11 -3
  53. package/dist/content-page-repository/transformImg.js.map +1 -1
  54. package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -3
  55. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  56. package/dist/ui-kit/Button/ButtonInner.js +4 -3
  57. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  58. package/dist/ui-kit/Button/renderButtonsSection.js +2 -1
  59. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  60. package/dist/ui-kit/Img/ImgInner.js +1 -1
  61. package/dist/ui-kit/Img/ImgInner.js.map +1 -1
  62. package/lib/common.css +1 -1
  63. package/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
  64. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  65. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
  66. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  67. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
  68. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  69. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
  70. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  71. package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
  72. package/lib/components/ComparisonTable/HeaderCell.js +1 -2
  73. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  74. package/lib/components/Footer/Footer.mobile.js +1 -2
  75. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  76. package/lib/components/Footer/MediaButton.js +1 -3
  77. package/lib/components/Footer/MediaButton.js.map +1 -1
  78. package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -3
  79. package/lib/components/LinkDocs/LinkDocs.js +5 -4
  80. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  81. package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -3
  82. package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
  83. package/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -4
  84. package/lib/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
  85. package/lib/components/LinkDocs/LinkDocsListItem.js +19 -3
  86. package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  87. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
  88. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  89. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  90. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -3
  91. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  92. package/lib/components/RollupItem/RollupItem.js +1 -2
  93. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  94. package/lib/components/RollupItem/RollupItem.mobile.js +1 -2
  95. package/lib/components/RollupItem/RollupItem.mobile.js.map +1 -1
  96. package/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
  97. package/lib/components/StepsBlock/StepsBlock.js +5 -5
  98. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  99. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
  100. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  101. package/lib/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
  102. package/lib/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
  103. package/lib/components/TariffsTable/TariffsTableRow.js +1 -2
  104. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  105. package/lib/content-page-repository/transformImg.js +11 -3
  106. package/lib/content-page-repository/transformImg.js.map +1 -1
  107. package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -3
  108. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  109. package/lib/ui-kit/Button/ButtonInner.js +4 -3
  110. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  111. package/lib/ui-kit/Button/renderButtonsSection.js +2 -1
  112. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  113. package/lib/ui-kit/Img/ImgInner.js +1 -1
  114. package/lib/ui-kit/Img/ImgInner.js.map +1 -1
  115. package/mobile/bundle/bundle.umd.js +16 -33
  116. package/mobile/bundle/bundle.umd.min.js +1 -1
  117. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
  118. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
  119. package/mobile/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
  120. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  121. package/mobile/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
  122. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
  123. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  124. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
  125. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  126. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
  127. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  128. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
  129. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  130. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
  131. package/mobile/dist/components/Footer/Footer.js +1 -2
  132. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  133. package/mobile/dist/components/Footer/MediaButton.js +1 -3
  134. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  135. package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
  136. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  137. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -4
  138. package/mobile/dist/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
  139. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +18 -2
  140. package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  141. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
  142. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  143. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  144. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -3
  145. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  146. package/mobile/dist/components/RollupItem/RollupItem.js +1 -2
  147. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  148. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
  149. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  150. package/mobile/dist/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
  151. package/mobile/dist/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
  152. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -2
  153. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  154. package/mobile/dist/content-page-repository/transformImg.js +11 -3
  155. package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
  156. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -3
  157. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  158. package/mobile/dist/ui-kit/Button/ButtonInner.js +4 -3
  159. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  160. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -1
  161. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  162. package/mobile/dist/ui-kit/Img/ImgInner.js +1 -1
  163. package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -1
  164. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
  165. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  166. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
  167. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  168. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
  169. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  170. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -3
  171. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  172. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
  173. package/mobile/lib/components/Footer/Footer.js +1 -2
  174. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  175. package/mobile/lib/components/Footer/MediaButton.js +1 -3
  176. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  177. package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
  178. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  179. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -4
  180. package/mobile/lib/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
  181. package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +19 -3
  182. package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
  183. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
  184. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  185. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  186. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +2 -3
  187. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  188. package/mobile/lib/components/RollupItem/RollupItem.js +1 -2
  189. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  190. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
  191. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  192. package/mobile/lib/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
  193. package/mobile/lib/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
  194. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -2
  195. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  196. package/mobile/lib/content-page-repository/transformImg.js +11 -3
  197. package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
  198. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -3
  199. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  200. package/mobile/lib/ui-kit/Button/ButtonInner.js +4 -3
  201. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  202. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -1
  203. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  204. package/mobile/lib/ui-kit/Img/ImgInner.js +1 -1
  205. package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -1
  206. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -2
  207. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -2
  208. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
  209. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +10 -2
  210. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -14
  211. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +18 -1
  212. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +10 -2
  213. package/mobile/src/components/Footer/Footer.tsx +1 -4
  214. package/mobile/src/components/Footer/MediaButton.tsx +2 -5
  215. package/mobile/src/components/LinkDocs/LinkDocs.example.json +0 -2
  216. package/mobile/src/components/LinkDocs/LinkDocs.tsx +27 -12
  217. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +0 -5
  218. package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +48 -11
  219. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -2
  220. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +5 -6
  221. package/mobile/src/components/RollupItem/RollupItem.tsx +2 -15
  222. package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -2
  223. package/mobile/src/components/StepsBlock/checkCanRenderIcon.ts +2 -1
  224. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -8
  225. package/mobile/src/content-page-repository/transformImg.ts +14 -4
  226. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -3
  227. package/mobile/src/ui-kit/Button/ButtonInner.tsx +4 -3
  228. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
  229. package/mobile/src/ui-kit/Img/ImgInner.tsx +1 -1
  230. package/package.json +1 -1
  231. package/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -2
  232. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -2
  233. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
  234. package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +10 -2
  235. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +9 -1
  236. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -14
  237. package/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +18 -1
  238. package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +10 -2
  239. package/src/components/ComparisonTable/HeaderCell.tsx +1 -2
  240. package/src/components/Footer/Footer.mobile.tsx +1 -4
  241. package/src/components/Footer/MediaButton.tsx +2 -5
  242. package/src/components/LinkDocs/LinkDocs.example.json +0 -2
  243. package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -11
  244. package/src/components/LinkDocs/LinkDocs.mobile.tsx +27 -12
  245. package/src/components/LinkDocs/LinkDocs.tsx +24 -9
  246. package/src/components/LinkDocs/LinkDocsContent.ts +0 -5
  247. package/src/components/LinkDocs/LinkDocsListItem.tsx +48 -13
  248. package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -2
  249. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +5 -6
  250. package/src/components/RollupItem/RollupItem.mobile.tsx +2 -15
  251. package/src/components/RollupItem/RollupItem.tsx +1 -2
  252. package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -2
  253. package/src/components/StepsBlock/StepsBlock.tsx +14 -8
  254. package/src/components/StepsBlock/checkCanRenderIcon.ts +2 -1
  255. package/src/components/TariffsTable/TariffsTableRow.tsx +1 -8
  256. package/src/content-page-repository/transformImg.ts +14 -4
  257. package/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -3
  258. package/src/ui-kit/Button/ButtonInner.tsx +4 -3
  259. package/src/ui-kit/Button/renderButtonsSection.tsx +2 -1
  260. package/src/ui-kit/Img/ImgInner.tsx +1 -1
  261. package/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
  262. package/bundle/components/LinkDocs/LinkDocsList.d.ts +0 -9
  263. package/bundle/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
  264. package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
  265. package/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
  266. package/bundle/utils/getIconWithVersion.d.ts +0 -3
  267. package/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
  268. package/dist/components/LinkDocs/LinkDocsHorizontalList.js +0 -10
  269. package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
  270. package/dist/components/LinkDocs/LinkDocsList.d.ts +0 -9
  271. package/dist/components/LinkDocs/LinkDocsList.js +0 -9
  272. package/dist/components/LinkDocs/LinkDocsList.js.map +0 -1
  273. package/dist/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
  274. package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +0 -7
  275. package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +0 -1
  276. package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
  277. package/dist/components/LinkDocs/LinkDocsListItemBase.js +0 -24
  278. package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
  279. package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
  280. package/dist/components/LinkDocs/LinkDocsVerticalList.js +0 -11
  281. package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
  282. package/dist/utils/getIconWithVersion.d.ts +0 -3
  283. package/dist/utils/getIconWithVersion.js +0 -8
  284. package/dist/utils/getIconWithVersion.js.map +0 -1
  285. package/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
  286. package/lib/components/LinkDocs/LinkDocsHorizontalList.js +0 -8
  287. package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
  288. package/lib/components/LinkDocs/LinkDocsList.d.ts +0 -9
  289. package/lib/components/LinkDocs/LinkDocsList.js +0 -7
  290. package/lib/components/LinkDocs/LinkDocsList.js.map +0 -1
  291. package/lib/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
  292. package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +0 -5
  293. package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +0 -1
  294. package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
  295. package/lib/components/LinkDocs/LinkDocsListItemBase.js +0 -22
  296. package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
  297. package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
  298. package/lib/components/LinkDocs/LinkDocsVerticalList.js +0 -9
  299. package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
  300. package/lib/utils/getIconWithVersion.d.ts +0 -3
  301. package/lib/utils/getIconWithVersion.js +0 -5
  302. package/lib/utils/getIconWithVersion.js.map +0 -1
  303. package/mobile/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
  304. package/mobile/bundle/components/LinkDocs/LinkDocsList.d.ts +0 -9
  305. package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
  306. package/mobile/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
  307. package/mobile/bundle/utils/getIconWithVersion.d.ts +0 -3
  308. package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
  309. package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +0 -10
  310. package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
  311. package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +0 -9
  312. package/mobile/dist/components/LinkDocs/LinkDocsList.js +0 -9
  313. package/mobile/dist/components/LinkDocs/LinkDocsList.js.map +0 -1
  314. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
  315. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +0 -24
  316. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
  317. package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
  318. package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +0 -11
  319. package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
  320. package/mobile/dist/utils/getIconWithVersion.d.ts +0 -3
  321. package/mobile/dist/utils/getIconWithVersion.js +0 -8
  322. package/mobile/dist/utils/getIconWithVersion.js.map +0 -1
  323. package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
  324. package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +0 -8
  325. package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
  326. package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +0 -9
  327. package/mobile/lib/components/LinkDocs/LinkDocsList.js +0 -7
  328. package/mobile/lib/components/LinkDocs/LinkDocsList.js.map +0 -1
  329. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
  330. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +0 -22
  331. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
  332. package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
  333. package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +0 -9
  334. package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
  335. package/mobile/lib/utils/getIconWithVersion.d.ts +0 -3
  336. package/mobile/lib/utils/getIconWithVersion.js +0 -5
  337. package/mobile/lib/utils/getIconWithVersion.js.map +0 -1
  338. package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +0 -21
  339. package/mobile/src/components/LinkDocs/LinkDocsList.tsx +0 -33
  340. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +0 -63
  341. package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +0 -33
  342. package/mobile/src/utils/getIconWithVersion.ts +0 -7
  343. package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +0 -21
  344. package/src/components/LinkDocs/LinkDocsList.tsx +0 -33
  345. package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +0 -12
  346. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +0 -63
  347. package/src/components/LinkDocs/LinkDocsVerticalList.tsx +0 -33
  348. package/src/utils/getIconWithVersion.ts +0 -7
@@ -5,7 +5,6 @@ import { Heading } from '../../ui-kit/Heading/Heading';
5
5
  import { Img } from '../../ui-kit/Img/Img';
6
6
  import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
7
7
  import { Text } from '../../ui-kit/Text/Text';
8
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
9
8
  import { style } from '../../utils/style';
10
9
  import type { CarouselEventCardContent } from './CarouselEventCardContent';
11
10
 
@@ -16,7 +15,7 @@ export const CarouselEventCard = JSX<CarouselEventCardProps>(
16
15
  return (
17
16
  <BlockWrapper className={style('w-[365px]', className)} {...rest}>
18
17
  <LinkWrapper className="flex flex-col" href={href} target={target}>
19
- {icon?.icon ? <Img image={getIconWithVersion(icon)} asSVG /> : null}
18
+ {icon?.icon ? <Img image={icon} asSVG /> : null}
20
19
  {icon?.src ? <Img image={icon} /> : null}
21
20
  {title ? (
22
21
  <Heading headingType="h6" as="h4" className="text-left pt-3 mb-2" title={title} />
@@ -5,7 +5,6 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
5
  import { Heading } from '../../ui-kit/Heading/Heading';
6
6
  import { Img } from '../../ui-kit/Img/Img';
7
7
  import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
8
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
9
8
  import { style } from '../../utils/style';
10
9
  import type { CarouselProgramsCardContent } from './CarouselProgramsCardContent';
11
10
 
@@ -17,7 +16,7 @@ export const CarouselProgramsCard = JSX<CarouselTariffsCardProps>(
17
16
  <BlockWrapper className={style('border border-gray', className)} {...rest}>
18
17
  <LinkWrapper className="flex" href={href} target={target}>
19
18
  <div className="w-[200px] min-w-[200px] self-center">
20
- {icon?.icon ? <Img image={getIconWithVersion(icon)} asSVG /> : null}
19
+ {icon?.icon ? <Img image={icon} asSVG /> : null}
21
20
  {icon?.src ? <Img image={icon} /> : null}
22
21
  </div>
23
22
  <div className="p-8 pl-3 w-full">
@@ -5,7 +5,6 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
5
  import { Img } from '../../ui-kit/Img/Img';
6
6
  import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
7
7
  import { List } from '../../ui-kit/List/List';
8
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
9
8
  import { style } from '../../utils/style';
10
9
  import { SocialMedia } from '../Footer/SocialMedia';
11
10
  import { Headline } from '../Headline/Headline';
@@ -64,7 +63,7 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
64
63
 
65
64
  const renderIconBlock = (icon: Picture | undefined) => (
66
65
  <div className="absolute bottom-0 right-0">
67
- {icon?.icon ? <Img image={getIconWithVersion(icon)} asSVG /> : null}
66
+ {icon?.icon ? <Img image={icon} asSVG /> : null}
68
67
  {icon?.src ? <Img image={icon} /> : null}
69
68
  </div>
70
69
  );
@@ -24,8 +24,16 @@
24
24
  "description": "Описание 1-2"
25
25
  },
26
26
  {
27
- "title": "Ячейка 1-3",
28
- "description": "Описание 1-3"
27
+ "buttons": [
28
+ {
29
+ "icon": {
30
+ "iconVersion": "color",
31
+ "icon": "DocIconMonoColor"
32
+ },
33
+ "version": "link",
34
+ "text": "Скачать файл"
35
+ }
36
+ ]
29
37
  }
30
38
  ]
31
39
  }
@@ -1,5 +1,5 @@
1
1
  import type { Picture } from '../../model/Picture';
2
- import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
2
+ import type { ButtonProps, ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
3
3
  import { CarouselTariffsCard } from './CarouselTariffsCard';
4
4
  import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
5
5
 
@@ -27,6 +27,13 @@ const buttonSecondary: ButtonProps = {
27
27
  version: 'secondary',
28
28
  };
29
29
 
30
+ const buttonIcon: ButtonWithIconProps = {
31
+ text: 'App Store',
32
+ icon: { icon: 'DocIconMonoColor', iconVersion: 'color' },
33
+ href: 'rshb.ru',
34
+ version: 'link',
35
+ };
36
+
30
37
  const cardCells = [
31
38
  { title: 'Открытие расчетного счета', description: 'Бесплатно' },
32
39
  { title: 'Внутрибанковские платежи', description: '0 ₽' },
@@ -37,6 +44,7 @@ const cardCells = [
37
44
  description: '0% - до 100 000 ₽/мес., далее согласно п.2.4. Тарифов Банка',
38
45
  },
39
46
  { title: 'Зарплатный проект', description: 'Бесплатно' },
47
+ { buttons: [buttonIcon] },
40
48
  ];
41
49
 
42
50
  export const TARIFFS_CARD: CarouselTariffsCardContent = {
@@ -1,10 +1,10 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { HeadlineCommonProps } from '../../model/HeadlineType';
3
2
  import type { UniBlockProps } from '../../model/JSXBlock';
4
3
  import type { Picture } from '../../model/Picture';
5
4
  import type { VNode } from '../../model/VNode';
6
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
6
  import { Button } from '../../ui-kit/Button/Button';
7
+ import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
8
8
  import { Foldable } from '../../ui-kit/Foldable/Foldable';
9
9
  import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
10
10
  import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
@@ -12,9 +12,11 @@ import { Heading } from '../../ui-kit/Heading/Heading';
12
12
  import { Icon } from '../../ui-kit/Icon/Icon';
13
13
  import { Img } from '../../ui-kit/Img/Img';
14
14
  import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
15
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
16
15
  import { style } from '../../utils/style';
17
- import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
16
+ import type {
17
+ CarouselTariffsCardContent,
18
+ TariffsCardCellProps,
19
+ } from './CarouselTariffsCardContent';
18
20
 
19
21
  export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {}
20
22
 
@@ -58,7 +60,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
58
60
  const renderIconBlock = (icon?: Picture) => (
59
61
  <div className="w-[267px] min-w-[267px] self-center">
60
62
  {icon?.src ? <Img image={icon} /> : null}
61
- {icon?.icon ? <Img image={getIconWithVersion(icon)} asSVG /> : null}
63
+ {icon?.icon ? <Img image={icon} asSVG /> : null}
62
64
  </div>
63
65
  );
64
66
 
@@ -81,16 +83,23 @@ const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode =>
81
83
  </button>
82
84
  );
83
85
 
84
- const renderCardInfo = (cell: HeadlineCommonProps, i: number): VNode => (
85
- <div key={String(i)} className="py-5 border-b border-main-divider">
86
- {cell?.title ? (
87
- <div className="text-secondary-text text-m-light opacity-80">{cell.title}</div>
88
- ) : null}
89
- {cell?.description ? (
90
- <div className="text-primary-text text-h6 mt-1">{cell.description}</div>
91
- ) : null}
92
- </div>
93
- );
86
+ const renderCardInfo = (cell: TariffsCardCellProps, i: number): VNode => {
87
+ const { title, description, buttons } = cell;
88
+
89
+ return (
90
+ <div key={String(i)} className="py-5 border-b border-main-divider">
91
+ {title ? (
92
+ <div className="text-secondary-text text-m-light opacity-80">{cell.title}</div>
93
+ ) : null}
94
+ {description ? (
95
+ <div className="text-primary-text text-h6 mt-1">{cell.description}</div>
96
+ ) : null}
97
+ {buttons?.length ? (
98
+ <div className="text-primary-main">{renderButtonsSection(buttons)}</div>
99
+ ) : null}
100
+ </div>
101
+ );
102
+ };
94
103
 
95
104
  const renderHitIcon = (): VNode => (
96
105
  <div className="absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
@@ -1 +1,18 @@
1
- {}
1
+ {
2
+ "content": {
3
+ "cardCells": {
4
+ "items": {
5
+ "buttons": {
6
+ "items": {
7
+ "icon": {
8
+ "ui:field": "icon"
9
+ },
10
+ "iconRight": {
11
+ "ui:field": "icon"
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }
17
+ }
18
+ }
@@ -1,7 +1,15 @@
1
1
  import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
2
2
  import type { UniBlockContent } from '../../model/JSXBlock';
3
3
  import type { IconProps } from '../../model/Picture';
4
- import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
4
+ import type { ButtonProps, ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
5
+
6
+ export type TariffsCardCellProps = HeadlineCommonProps & {
7
+ /**
8
+ * @title Кнопка
9
+ * @maxItems 1
10
+ */
11
+ buttons?: ButtonWithIconProps[];
12
+ };
5
13
 
6
14
  /**
7
15
  * @title Карточка тарифной карусели
@@ -14,5 +22,5 @@ export type CarouselTariffsCardContent = UniBlockContent &
14
22
  /** @title Кнопка */
15
23
  button?: ButtonProps;
16
24
  /** @title Ячейка */
17
- cardCells?: HeadlineCommonProps[];
25
+ cardCells?: TariffsCardCellProps[];
18
26
  };
@@ -4,7 +4,6 @@ import type { Picture } from '../../model/Picture';
4
4
  import { Button } from '../../ui-kit/Button/Button';
5
5
  import { Heading } from '../../ui-kit/Heading/Heading';
6
6
  import { Img } from '../../ui-kit/Img/Img';
7
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
8
7
  import { BORDER_CLASSES, GRADIENT } from './constants';
9
8
 
10
9
  export interface HeaderCellProps {
@@ -23,7 +22,7 @@ export const HeaderCell = JSX<HeaderCellProps>(({ icon, image, title, link }) =>
23
22
  {icon && !image?.src && (
24
23
  <Img
25
24
  className="h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4"
26
- image={getIconWithVersion(icon)}
25
+ image={icon}
27
26
  width="63"
28
27
  height="63"
29
28
  asSVG
@@ -7,7 +7,6 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
7
  import { Button } from '../../ui-kit/Button/Button';
8
8
  import { Img } from '../../ui-kit/Img/Img';
9
9
  import { SearchBar } from '../../ui-kit/SearchBar/SearchBar';
10
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
11
10
  import { LinkList } from '../LinkList/LinkList';
12
11
  import { MobileAppTile } from '../MobileAppTile/MobileAppTile';
13
12
  import { RollupItem } from '../RollupItem/RollupItem';
@@ -56,9 +55,7 @@ const renderSubMenuItem = (menu: SubMenuItem, i: number) => {
56
55
 
57
56
  return (
58
57
  <Button version="link" key={`footer-${i}`} href={href} className="flex text-s mb-4 w-6">
59
- {icon ? (
60
- <Img className="pr-1" image={getIconWithVersion(icon)} width="24" height="24" asSVG />
61
- ) : null}
58
+ {icon ? <Img className="pr-1" image={icon} width="24" height="24" asSVG /> : null}
62
59
  <span className="pl-2.5 font-medium text-primary-text">{text}</span>
63
60
  </Button>
64
61
  );
@@ -3,7 +3,6 @@ import type { IconProps, Picture } from '../../model/Picture';
3
3
  import { Button } from '../../ui-kit/Button/Button';
4
4
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
5
5
  import { Img } from '../../ui-kit/Img/Img';
6
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
7
6
  import { style } from '../../utils/style';
8
7
 
9
8
  const ICONS_MAP: Array<{
@@ -68,8 +67,6 @@ export const MediaButton = JSX<MediaButtonProps>(
68
67
 
69
68
  const iconCustom = getFilteredIcon(icon) ?? iconMapped;
70
69
 
71
- const iconWithVersion = iconCustom ? getIconWithVersion(iconCustom) : undefined;
72
-
73
70
  return (
74
71
  <Button
75
72
  className={style(
@@ -88,9 +85,9 @@ export const MediaButton = JSX<MediaButtonProps>(
88
85
  version={version}
89
86
  {...rest}
90
87
  >
91
- {iconWithVersion && !text ? (
88
+ {iconCustom && !text ? (
92
89
  <Img
93
- image={iconWithVersion}
90
+ image={iconCustom}
94
91
  imageClassName="group-hover/media:text-white"
95
92
  width="24"
96
93
  height="24"
@@ -34,8 +34,6 @@
34
34
  }
35
35
  ],
36
36
  "columnsMode": "double",
37
- "orientation": "vertical",
38
- "hasBorder": true,
39
37
  "align": "text-center"
40
38
  }
41
39
  }
@@ -3,19 +3,9 @@ import { LinkDocs } from './LinkDocs';
3
3
  import { linkDocsContentExample } from './linkDocsContentExample';
4
4
 
5
5
  export default {
6
- 'vertical (default)': (
6
+ default: (
7
7
  <div className="container grid grid-cols-12">
8
8
  <LinkDocs className="col-span-12" {...linkDocsContentExample} />
9
9
  </div>
10
10
  ),
11
- 'vertical, no border': (
12
- <div className="container grid grid-cols-12">
13
- <LinkDocs className="col-span-12" hasBorder={false} {...linkDocsContentExample} />
14
- </div>
15
- ),
16
- 'horizontal, swipe list': (
17
- <div className="container grid grid-cols-12">
18
- <LinkDocs className="col-span-12" {...linkDocsContentExample} orientation="horizontal" />
19
- </div>
20
- ),
21
11
  };
@@ -1,11 +1,11 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
+ import { Img } from '../../ui-kit/Img/Img';
4
5
  import { style } from '../../utils/style';
5
6
  import { Headline } from '../Headline/Headline';
6
7
  import type { LinkDocsContent } from './LinkDocsContent';
7
- import { LinkDocsHorizontalList } from './LinkDocsHorizontalList';
8
- import { LinkDocsVerticalList } from './LinkDocsVerticalList';
8
+ import { LinkDocsListItem } from './LinkDocsListItem';
9
9
 
10
10
  export interface LinkDocsProps extends LinkDocsContent, UniBlockProps {}
11
11
 
@@ -14,27 +14,42 @@ export const LinkDocs = JSX<LinkDocsProps>(
14
14
  className = '',
15
15
  title,
16
16
  description,
17
- icon = { icon: 'DocIconMonoColor' },
17
+ icon = { icon: 'DocDownloadIcon', iconVersion: 'black' },
18
18
  documents,
19
- orientation = 'vertical',
20
- hasBorder = true,
21
19
  align,
22
20
  ...rest
23
21
  }) => (
24
- <BlockWrapper className={style('py-6 px-4 overflow-x-hidden', className)} {...rest}>
22
+ <BlockWrapper className={style('py-6 px-4', className)} {...rest}>
25
23
  <Headline
26
- className={`!p-0 ${description ? 'gap-2' : 'gap-5'}`}
24
+ isPadding={false}
27
25
  title={title}
28
26
  description={description}
29
27
  align={align}
30
28
  headlineVersion="M"
31
29
  as="h2"
32
30
  />
33
- {orientation === 'vertical' ? (
34
- <LinkDocsVerticalList hasBorder={hasBorder} documents={documents} icon={icon} />
35
- ) : (
36
- <LinkDocsHorizontalList hasBorder={hasBorder} documents={documents} icon={icon} />
37
- )}
31
+ {documents?.length ? (
32
+ <div className="mt-5 flex flex-col gap-6" role="list">
33
+ {documents.map((doc, i) => (
34
+ <div key={String(i)} role="listitem">
35
+ <LinkDocsListItem
36
+ doc={doc}
37
+ icon={
38
+ icon ? (
39
+ <Img
40
+ className="min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md"
41
+ image={icon}
42
+ width="24"
43
+ height="24"
44
+ asSVG
45
+ />
46
+ ) : null
47
+ }
48
+ />
49
+ </div>
50
+ ))}
51
+ </div>
52
+ ) : null}
38
53
  </BlockWrapper>
39
54
  ),
40
55
  );
@@ -1,14 +1,15 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
+ import { Img } from '../../ui-kit/Img/Img';
4
5
  import { style } from '../../utils/style';
5
6
  import { Headline } from '../Headline/Headline';
6
7
  import type { LinkColumnsMode, LinkDocsContent } from './LinkDocsContent';
7
- import { LinkDocsList } from './LinkDocsList';
8
+ import { LinkDocsListItem } from './LinkDocsListItem';
8
9
 
9
10
  const linkColumnsModeStyleMap: Record<LinkColumnsMode, string> = {
10
- double: 'flex gap-x-5 gap-y-[26px] flex-wrap',
11
- single: 'flex gap-3.5 flex-col',
11
+ double: 'flex-wrap',
12
+ single: 'flex-col',
12
13
  };
13
14
 
14
15
  export interface LinkDocsProps extends LinkDocsContent, UniBlockProps {}
@@ -33,12 +34,26 @@ export const LinkDocs = JSX<LinkDocsProps>(
33
34
  headlineVersion="M"
34
35
  as="h2"
35
36
  />
36
- <LinkDocsList
37
- className={`mt-8 ${linkColumnsModeStyleMap[columnsMode]}`}
38
- columnsMode={columnsMode}
39
- documents={documents}
40
- icon={icon}
41
- />
37
+ {documents?.length ? (
38
+ <div className={style('mt-8 flex gap-6', linkColumnsModeStyleMap[columnsMode])} role="list">
39
+ {documents.map((doc, i) => (
40
+ <div
41
+ key={String(i)}
42
+ className={columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : ''}
43
+ role="listitem"
44
+ >
45
+ <LinkDocsListItem
46
+ doc={doc}
47
+ icon={
48
+ icon ? (
49
+ <Img className="min-w-6 min-h-6" image={icon} width="24" height="24" asSVG />
50
+ ) : null
51
+ }
52
+ ></LinkDocsListItem>
53
+ </div>
54
+ ))}
55
+ </div>
56
+ ) : null}
42
57
  </BlockWrapper>
43
58
  ),
44
59
  );
@@ -1,7 +1,6 @@
1
1
  import type { HeadlineCommonProps } from '../../model/HeadlineType';
2
2
  import type { UniBlockContent } from '../../model/JSXBlock';
3
3
  import type { LinkProps } from '../../model/LinkProps';
4
- import type { ListOrientation } from '../../model/ListOrientation';
5
4
  import type { IconProps } from '../../model/Picture';
6
5
  import type { TextAlign } from '../../ui-kit/Text/TextProps';
7
6
 
@@ -31,10 +30,6 @@ export type LinkDocsContent = UniBlockContent &
31
30
  /** @title Список */
32
31
  documents?: LinkDocsItem[];
33
32
  columnsMode?: LinkColumnsMode;
34
- /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
35
- orientation?: ListOrientation; // TODO: мобильный проп
36
- /** @title Рамка элементов (моб.) */ // TODO: мобильный проп
37
- hasBorder?: boolean;
38
33
  /** @title Выравнивание */
39
34
  align?: TextAlign;
40
35
  };
@@ -1,14 +1,49 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
3
- import { LinkDocsListItemBase } from './LinkDocsListItemBase';
4
-
5
- export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ className = '', doc, icon }) => (
6
- <LinkDocsListItemBase
7
- className={`flex h-full box-border ${className}`}
8
- iconClassName="mr-2.5 min-w-6 min-h-6"
9
- textClassName="self-center text-l-light"
10
- suffixClassName="text-secondary-text group-hover/item:text-primary-main"
11
- doc={doc}
12
- icon={icon}
13
- />
14
- ));
2
+ import type { VNode } from '../../model/VNode';
3
+ import { Text } from '../../ui-kit/Text/Text';
4
+ import type { LinkDocsItem } from './LinkDocsContent';
5
+
6
+ export interface LinkDocsListItemProps {
7
+ doc: LinkDocsItem;
8
+ icon?: VNode;
9
+ }
10
+
11
+ export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ doc, icon }) => {
12
+ const { text, fileSize, ...linkProps } = doc;
13
+
14
+ return (
15
+ <a
16
+ className="flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main"
17
+ role="link"
18
+ {...linkProps}
19
+ >
20
+ {icon}
21
+ {text ? (
22
+ <Text size="text-l" font="font-light">
23
+ {text}
24
+ <Text color="text-secondary-text">
25
+ {linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize)}
26
+ </Text>
27
+ </Text>
28
+ ) : null}
29
+ </a>
30
+ );
31
+ });
32
+
33
+ const formatSuffix = (ext?: string, fileSize?: string) => {
34
+ const prefix = ext || fileSize ? ',' : '';
35
+ const extension = ext ? ` ${ext}` : '';
36
+ const size = fileSize ? ` (${fileSize})` : '';
37
+
38
+ return prefix + extension + size;
39
+ };
40
+
41
+ const getExtFromHref = (href: string) => {
42
+ if (!href) {
43
+ return '';
44
+ }
45
+
46
+ const index = href.lastIndexOf('.');
47
+
48
+ return index !== -1 ? href.substring(index + 1) : '';
49
+ };
@@ -3,7 +3,6 @@ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
4
  import { Heading } from '../../ui-kit/Heading/Heading';
5
5
  import { Img } from '../../ui-kit/Img/Img';
6
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
7
6
  import type {
8
7
  OfficeServicesBlockContent,
9
8
  OfficeServicesBlockList,
@@ -30,7 +29,7 @@ const renderListItems = (itemList: OfficeServicesBlockList, i: number) => (
30
29
  width="24"
31
30
  height="24"
32
31
  asSVG
33
- image={getIconWithVersion(itemList.icon)}
32
+ image={itemList.icon}
34
33
  />
35
34
  ) : null}
36
35
  {itemList.label ? <span className="text-l-light">{itemList.label}</span> : null}
@@ -1,17 +1,16 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
3
- import type { Picture } from '../../model/Picture';
4
- import type { UniBlockProps } from '../../model/JSXBlock';
5
2
  import type { IconName } from '../../icons/IconName';
3
+ import type { UniBlockProps } from '../../model/JSXBlock';
4
+ import type { Picture } from '../../model/Picture';
6
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
6
+ import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
8
7
  import { Heading } from '../../ui-kit/Heading/Heading';
9
8
  import { Icon } from '../../ui-kit/Icon/Icon';
10
9
  import { Img } from '../../ui-kit/Img/Img';
11
10
  import { RichText } from '../../ui-kit/RichText/RichText';
12
11
  import { Text } from '../../ui-kit/Text/Text';
13
- import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
14
12
  import { style } from '../../utils/style';
13
+ import type { RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
15
14
 
16
15
  export interface RepresentativeOfficeInfoProps
17
16
  extends RepresentativeOfficeInfoContent,
@@ -57,7 +56,7 @@ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
57
56
  const renderIconBlock = (icon?: Picture) => (
58
57
  <div className="self-end">
59
58
  {icon?.src ? <Img image={icon} /> : null}
60
- {icon?.icon ? <Img image={getIconWithVersion(icon)} asSVG /> : null}
59
+ {icon?.icon ? <Img image={icon} asSVG /> : null}
61
60
  </div>
62
61
  );
63
62
 
@@ -11,7 +11,6 @@ import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps'
11
11
  import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
12
12
  import { Img } from '../../ui-kit/Img/Img';
13
13
  import { Text } from '../../ui-kit/Text/Text';
14
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
15
14
  import { style } from '../../utils/style';
16
15
  import type { RollupItemContent } from './RollupItemContent';
17
16
 
@@ -112,24 +111,12 @@ const renderPrimaryFoldButton = ({
112
111
  >
113
112
  <div className="flex group-hover:text-primary-main">
114
113
  {primaryIcon ? (
115
- <Img
116
- image={{ ...getIconWithVersion({ ...primaryIcon } as Picture) }}
117
- className="mr-3 flex-shrink-0"
118
- width="24"
119
- height="24"
120
- asSVG
121
- />
114
+ <Img image={primaryIcon} className="mr-3 flex-shrink-0" width="24" height="24" asSVG />
122
115
  ) : null}
123
116
  <Text size="text-m-title-xs" font="font-medium">
124
117
  {label}
125
118
  </Text>
126
119
  </div>
127
- <Img
128
- className="flex-shrink-0"
129
- image={{ ...getIconWithVersion({ icon: icon }) }}
130
- width="24"
131
- height="24"
132
- asSVG
133
- />
120
+ <Img className="flex-shrink-0" image={{ icon }} width="24" height="24" asSVG />
134
121
  </button>
135
122
  );
@@ -10,7 +10,6 @@ import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
10
10
  import type { IconName } from '../../ui-kit/Icon/IconProps';
11
11
  import { Img } from '../../ui-kit/Img/Img';
12
12
  import { Text } from '../../ui-kit/Text/Text';
13
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
14
13
  import type { RollupItemContent } from './RollupItemContent';
15
14
 
16
15
  export interface RollupItemProps extends RollupItemContent, UniBlockProps {}
@@ -93,6 +92,6 @@ const renderPrimaryFoldButton = ({ label, icon, onToggle }: PrimaryFoldButtonPro
93
92
  <Text size="text-xl" font="font-medium">
94
93
  {label}
95
94
  </Text>
96
- {icon ? <Img image={getIconWithVersion({ icon })} width="24" height="24" asSVG /> : null}
95
+ {icon ? <Img image={{ icon }} width="24" height="24" asSVG /> : null}
97
96
  </button>
98
97
  );
@@ -7,7 +7,6 @@ import { Heading } from '../../ui-kit/Heading/Heading';
7
7
  import { Img } from '../../ui-kit/Img/Img';
8
8
  import { RichText } from '../../ui-kit/RichText/RichText';
9
9
  import { assertUnreachable } from '../../utils/assertUnreachable';
10
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
11
10
  import { checkCanRenderIcon } from './checkCanRenderIcon';
12
11
  import type { DefaultStep, Step, StepsBlockContent } from './StepsBlockContent';
13
12
  import { STEPS_BLOCK_STYLE } from './StepsBlockStyleMaps';
@@ -121,6 +120,8 @@ const renderIconArea = (size: SizeVersion, version: BlockVersion) => (step: Step
121
120
  const iconSize = size === 'normal' ? '38' : '27';
122
121
  const iconTextSize = size === 'normal' ? 'text-m-title' : 'text-m-title-xs';
123
122
 
123
+ const iconVersion = version === 'secondary' ? 'white' : 'color';
124
+
124
125
  return (
125
126
  <div
126
127
  className={`${iconAreaSize} ${styleMap.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`}
@@ -128,7 +129,7 @@ const renderIconArea = (size: SizeVersion, version: BlockVersion) => (step: Step
128
129
  <span className={`font-medium flex self-center ${iconTextSize}`}>
129
130
  {checkCanRenderIcon(step?.icon) ? (
130
131
  <Img
131
- image={getIconWithVersion({ ...step.icon }, version)}
132
+ image={{ ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }}
132
133
  width={iconSize}
133
134
  height={iconSize}
134
135
  asSVG