@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
@@ -1,18 +1,17 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import type { BlockVersion } from '../../model/BlockVersion';
3
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
3
- import { checkCanRenderIcon } from './checkCanRenderIcon';
4
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
5
+ import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
5
6
  import { Heading } from '../../ui-kit/Heading/Heading';
6
7
  import { Img } from '../../ui-kit/Img/Img';
7
8
  import { joinList } from '../../utils/joinList';
8
- import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
9
- import { renderStep } from './renderStep';
10
- import { STEPS_BLOCK_STYLE } from './StepsBlockStyleMaps';
11
9
  import { style } from '../../utils/style';
12
- import type { BlockVersion } from '../../model/BlockVersion';
10
+ import { checkCanRenderIcon } from './checkCanRenderIcon';
11
+ import { renderStep } from './renderStep';
13
12
  import type { Step, StepsBlockContent } from './StepsBlockContent';
14
13
  import type { StyleType } from './StepsBlockStyleMaps';
15
- import type { UniBlockProps } from '../../model/JSXBlock';
14
+ import { STEPS_BLOCK_STYLE } from './StepsBlockStyleMaps';
16
15
 
17
16
  export interface StepsBlockProps extends StepsBlockContent, UniBlockProps {}
18
17
 
@@ -85,6 +84,8 @@ const renderStepIcon =
85
84
  const stepVersionIconTextStyles =
86
85
  stepVersion === 'secondary' ? 'group-data-primary:text-white' : 'text-secondary-text';
87
86
 
87
+ const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
88
+
88
89
  return (
89
90
  <BlockWrapper
90
91
  key={String(i)}
@@ -92,7 +93,12 @@ const renderStepIcon =
92
93
  version={stepVersion}
93
94
  >
94
95
  {checkCanRenderIcon(icon) ? (
95
- <Img image={getIconWithVersion(icon || {}, stepVersion)} width="48" height="48" asSVG />
96
+ <Img
97
+ image={{ ...icon, iconVersion: icon.iconVersion || iconVersion }}
98
+ width="48"
99
+ height="48"
100
+ asSVG
101
+ />
96
102
  ) : (
97
103
  <span
98
104
  className={style(
@@ -1,3 +1,4 @@
1
1
  import type { Picture } from '../../model/Picture';
2
2
 
3
- export const checkCanRenderIcon = (icon?: Picture) => Boolean(icon?.icon || icon?.src);
3
+ export const checkCanRenderIcon = (icon?: Picture): icon is Picture & { src: string } =>
4
+ Boolean(icon?.icon || icon?.src);
@@ -3,7 +3,6 @@ import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import type { UniBlockProps } from '../../model/JSXBlock';
4
4
  import { Img } from '../../ui-kit/Img/Img';
5
5
  import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
6
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
7
6
  import { TableCarouselContainer } from '../ComparisonTable/TableCarouselContainer';
8
7
  import { COLUMN_WIDTH, DIVIDER_CLASSES, FIRST_CELL_CLASSES } from './constants';
9
8
  import { TariffsTableCell } from './TariffsTableCell';
@@ -39,13 +38,7 @@ export const TariffsTableRow = JSX<TariffsTableRowProps>(
39
38
  <div className={`text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`}>
40
39
  <div className="flex items-center text-primary-text" role="cell">
41
40
  {header?.icon ? (
42
- <Img
43
- className="mr-3.5 max-w-6"
44
- image={getIconWithVersion(header.icon)}
45
- width="24"
46
- height="24"
47
- asSVG
48
- />
41
+ <Img className="mr-3.5 max-w-6" image={header.icon} width="24" height="24" asSVG />
49
42
  ) : null}
50
43
  {header?.title ? <div className="text-m-light">{header?.title}</div> : null}
51
44
  </div>
@@ -11,6 +11,7 @@ import { resizeImg } from './resizeImg';
11
11
  import type { TransformationOptions } from './TransformationOptions';
12
12
 
13
13
  const mkdir = util.promisify(fs.mkdir);
14
+ const copyFile = util.promisify(fs.copyFile);
14
15
 
15
16
  type ImgOutputPath = string;
16
17
  type TransformationTaskKey = ImgOutputPath;
@@ -21,13 +22,19 @@ type TransformImgOptions = TransformationOptions &
21
22
 
22
23
  const defaultTransformationCache: TransformationTasksCache = new Map();
23
24
 
25
+ const isNilTransform = ({ size, containerSize, alignment, format }: TransformImgOptions) =>
26
+ isPictureSizeEmpty(size) && isPictureSizeEmpty(containerSize) && !alignment && !format;
27
+
28
+ const isVectorInput = (input: string) =>
29
+ ['.svg', '.eps', '.epsf', '.epsi', '.pdf'].some((ext) => input.toLowerCase().endsWith(ext));
30
+
24
31
  export function transformImg(
25
32
  src: string,
26
33
  pagePath: string,
27
34
  options: TransformImgOptions,
28
35
  ): ImgOutputPath | Promise<ImgOutputPath> {
29
36
  if (!src) {
30
- return '';
37
+ return src || '';
31
38
  }
32
39
 
33
40
  const input = path.join(path.dirname(pagePath), src);
@@ -43,9 +50,12 @@ export function transformImg(
43
50
  const result = (async () => {
44
51
  try {
45
52
  await mkdir(path.dirname(output), { recursive: true });
46
-
47
- const chain = await computeTransformationChain(options)(sharp(input));
48
- await chain.toFile(output);
53
+ if (isNilTransform(options) || isVectorInput(src)) {
54
+ await copyFile(input, output);
55
+ } else {
56
+ const chain = await computeTransformationChain(options)(sharp(input));
57
+ await chain.toFile(output);
58
+ }
49
59
  } catch (e) {
50
60
  console.error(e);
51
61
  }
@@ -1,7 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { BlockVersion } from '../../model/BlockVersion';
3
3
  import type { IconVersion } from '../../model/IconVersion';
4
- import { getIconWithVersion } from '../../utils/getIconWithVersion';
5
4
  import { Img } from '../Img/Img';
6
5
  import type { BenefitItemCommonProps, BenefitItemProps } from './BenefitItemProps';
7
6
 
@@ -17,13 +16,16 @@ export const BenefitItem = JSX<BenefitGeneralProps>((props) => {
17
16
  benefitsVersion = 'normal',
18
17
  } = props;
19
18
  const listItemAlign = description ? 'items-start' : 'items-center';
20
- const calcVersion = benefitsVersion === 'white' ? 'secondary' : 'primary';
21
19
 
22
20
  return (
23
21
  <div className={`flex gap-5 ${listItemAlign} ${className}`}>
24
22
  {icon ? (
25
23
  <div className={getBenefitIconBgStyle(version, benefitsVersion)}>
26
- <Img className="w-6 h-6" image={getIconWithVersion(icon, calcVersion)} asSVG />
24
+ <Img
25
+ className="w-6 h-6"
26
+ image={{ ...icon, iconVersion: icon.iconVersion || benefitsVersion }}
27
+ asSVG
28
+ />
27
29
  </div>
28
30
  ) : null}
29
31
  <div className="gap-0.5">
@@ -1,5 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import type { ButtonVersion } from '../../model/ButtonVersion';
3
+ import { style } from '../../utils/style';
3
4
  import { iconStyleMap } from './buttonClassNameConstants';
4
5
  import type { ButtonWithIconProps } from './ButtonProps';
5
6
 
@@ -11,7 +12,7 @@ export const ButtonInner = JSX<ButtonInnerProps>((props) => {
11
12
  const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
12
13
 
13
14
  return (
14
- <div className={getButtonStyle(props)}>
15
+ <div className={style(getButtonStyle(props), 'flex gap-2')}>
15
16
  {appendLeft ? <div className={iconStyleMap[version]}>{appendLeft}</div> : null}
16
17
  {isWithText(props) ? (
17
18
  <div>
@@ -31,10 +32,10 @@ const getButtonStyle = (props: ButtonInnerProps) => {
31
32
  return '';
32
33
  }
33
34
 
34
- const withTextStyle = `gap-2 ${aboveText ? 'py-2.5 px-7' : 'py-4 px-4'}`;
35
+ const withTextStyle = `${aboveText ? 'py-2.5 px-7' : 'py-4 px-4'}`;
35
36
 
36
37
  return [
37
- 'group/btn flex items-center justify-center',
38
+ 'group/btn items-center justify-center',
38
39
  isWithText(props) ? withTextStyle : 'h-12 w-12',
39
40
  rounded ? 'rounded-full' : '',
40
41
  ].join(' ');
@@ -24,7 +24,8 @@ const renderButton =
24
24
  (buttonClassName = '') =>
25
25
  (button?: ButtonWithIconProps, index?: number) => {
26
26
  const { text, icon, iconRight, version, ...rest } = button || {};
27
- const iconVersion = version === 'secondary' ? 'color' : 'white';
27
+ const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
28
+ const iconVersion = icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
28
29
 
29
30
  return text || icon?.icon ? (
30
31
  <Button
@@ -13,7 +13,7 @@ export const ImgInner = JSX<ImageProps>(
13
13
  <Icon
14
14
  className={className}
15
15
  imageClassName={imageClassName}
16
- iconVersion={image?.iconVersion || 'normal'}
16
+ iconVersion={image?.iconVersion}
17
17
  name={image.icon}
18
18
  {...iconProps}
19
19
  />
@@ -1,2 +0,0 @@
1
- import type { LinkDocsVerticalListProps } from './LinkDocsVerticalList';
2
- export declare const LinkDocsHorizontalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
@@ -1,9 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsListProps {
4
- className?: string;
5
- documents?: LinkDocsItem[];
6
- columnsMode?: LinkColumnsMode;
7
- icon?: Picture;
8
- }
9
- export declare const LinkDocsList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListProps, any, any>;
@@ -1,2 +0,0 @@
1
- import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
2
- export declare const LinkDocsListItem: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListItemProps, any, any>;
@@ -1,13 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsListItemProps {
4
- className?: string;
5
- doc: LinkDocsItem;
6
- icon?: Picture;
7
- }
8
- export interface LinkDocsListItemBaseProps extends LinkDocsListItemProps {
9
- iconClassName?: string;
10
- textClassName?: string;
11
- suffixClassName?: string;
12
- }
13
- export declare const LinkDocsListItemBase: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListItemBaseProps, any, any>;
@@ -1,8 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsVerticalListProps {
4
- hasBorder?: boolean;
5
- documents?: LinkDocsItem[];
6
- icon?: Picture;
7
- }
8
- export declare const LinkDocsVerticalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
@@ -1,3 +0,0 @@
1
- import type { Picture } from '../model/Picture';
2
- import type { BlockVersion } from '../model/BlockVersion';
3
- export declare const getIconWithVersion: (icon: Picture, version?: BlockVersion) => Picture;
@@ -1,2 +0,0 @@
1
- import type { LinkDocsVerticalListProps } from './LinkDocsVerticalList';
2
- export declare const LinkDocsHorizontalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
@@ -1,10 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.LinkDocsHorizontalList = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const SwipeListControl_1 = require("../../ui-kit/SwipeListControl/SwipeListControl");
6
- const LinkDocsListItem_1 = require("./LinkDocsListItem");
7
- exports.LinkDocsHorizontalList = (0, uni_jsx_1.JSX)(({ hasBorder = true, documents, icon }) => ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { className: "text-s text-primary-main mt-5", children: documents?.length
8
- ? documents.map((doc, i) => ((0, jsx_runtime_1.jsx)(LinkDocsListItem_1.LinkDocsListItem, { className: hasBorder ? 'rounded-md border-gray border border-solid p-4' : '', doc: doc, icon: icon }, String(i))))
9
- : null })));
10
- //# sourceMappingURL=LinkDocsHorizontalList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkDocsHorizontalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsHorizontalList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qFAAkF;AAClF,yDAAsD;AAGzC,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACzC,uBAAC,mCAAgB,IAAC,SAAS,EAAC,+BAA+B,YACxD,SAAS,EAAE,MAAM;QAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,uBAAC,mCAAgB,IAEf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,EAC5E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,IAHL,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC;QACJ,CAAC,CAAC,IAAI,GACS,CACpB,CACF,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsListProps {
4
- className?: string;
5
- documents?: LinkDocsItem[];
6
- columnsMode?: LinkColumnsMode;
7
- icon?: Picture;
8
- }
9
- export declare const LinkDocsList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListProps, any, any>;
@@ -1,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.LinkDocsList = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const LinkDocsListItem_1 = require("./LinkDocsListItem");
6
- exports.LinkDocsList = (0, uni_jsx_1.JSX)(({ className, documents, columnsMode = 'double', icon }) => {
7
- return documents?.length ? ((0, jsx_runtime_1.jsx)("div", { className: className, role: "list", children: documents.map((doc, i) => ((0, jsx_runtime_1.jsx)("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: (0, jsx_runtime_1.jsx)(LinkDocsListItem_1.LinkDocsListItem, { className: "group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main", doc: doc, icon: icon }) }, String(i)))) })) : null;
8
- });
9
- //# sourceMappingURL=LinkDocsList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkDocsList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,yDAAsD;AASzC,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,GAAG,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE;IACzD,OAAO,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CACzB,gCAAK,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,YACnC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACzB,gCAEE,SAAS,EAAE,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,EACnE,IAAI,EAAC,UAAU,YAEf,uBAAC,mCAAgB,IACf,SAAS,EAAC,iGAAiG,EAC3G,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IARG,MAAM,CAAC,CAAC,CAAC,CASV,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
2
- export declare const LinkDocsListItem: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListItemProps, any, any>;
@@ -1,7 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.LinkDocsListItem = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const LinkDocsListItemBase_1 = require("./LinkDocsListItemBase");
6
- exports.LinkDocsListItem = (0, uni_jsx_1.JSX)(({ className = '', doc, icon }) => ((0, jsx_runtime_1.jsx)(LinkDocsListItemBase_1.LinkDocsListItemBase, { className: `flex h-full box-border ${className}`, iconClassName: "mr-3 min-w-6 min-h-6", doc: doc, icon: icon })));
7
- //# sourceMappingURL=LinkDocsListItem.mobile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkDocsListItem.mobile.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItem.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;AAGjD,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5F,uBAAC,2CAAoB,IACnB,SAAS,EAAE,0BAA0B,SAAS,EAAE,EAChD,aAAa,EAAC,sBAAsB,EACpC,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,CACH,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsListItemProps {
4
- className?: string;
5
- doc: LinkDocsItem;
6
- icon?: Picture;
7
- }
8
- export interface LinkDocsListItemBaseProps extends LinkDocsListItemProps {
9
- iconClassName?: string;
10
- textClassName?: string;
11
- suffixClassName?: string;
12
- }
13
- export declare const LinkDocsListItemBase: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListItemBaseProps, any, any>;
@@ -1,24 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.LinkDocsListItemBase = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Img_1 = require("../../ui-kit/Img/Img");
6
- const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
7
- exports.LinkDocsListItemBase = (0, uni_jsx_1.JSX)(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
8
- const { text, fileSize, ...linkProps } = doc;
9
- return ((0, jsx_runtime_1.jsxs)("a", { className: className, role: "link", ...linkProps, children: [icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: iconClassName, image: (0, getIconWithVersion_1.getIconWithVersion)(icon), width: "24", height: "24", asSVG: true })) : null, text ? ((0, jsx_runtime_1.jsxs)("span", { className: textClassName, children: [text, (0, jsx_runtime_1.jsx)("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
10
- });
11
- const formatSuffix = (ext, fileSize) => {
12
- const prefix = ext || fileSize ? ',' : '';
13
- const extension = ext ? ` ${ext}` : '';
14
- const size = fileSize ? ` (${fileSize})` : '';
15
- return prefix + extension + size;
16
- };
17
- const getExtFromHref = (href) => {
18
- if (!href) {
19
- return '';
20
- }
21
- const index = href.lastIndexOf('.');
22
- return index !== -1 ? href.substring(index + 1) : '';
23
- };
24
- //# sourceMappingURL=LinkDocsListItemBase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkDocsListItemBase.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItemBase.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,8CAA2C;AAC3C,uEAAoE;AAevD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC;IAE7C,OAAO,CACL,+BAAG,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,KAAK,SAAS,aAC/C,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAC/B,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,CACN,kCAAM,SAAS,EAAE,aAAa,aAC3B,IAAI,EACL,iCAAM,SAAS,EAAE,eAAe,YAC7B,SAAS,EAAE,IAAI,IAAI,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GACrE,IACF,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,GAAY,EAAE,QAAiB,EAAE,EAAE;IACvD,MAAM,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAE9C,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAEpC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsVerticalListProps {
4
- hasBorder?: boolean;
5
- documents?: LinkDocsItem[];
6
- icon?: Picture;
7
- }
8
- export declare const LinkDocsVerticalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
@@ -1,11 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.LinkDocsVerticalList = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const LinkDocsListItem_1 = require("./LinkDocsListItem");
6
- exports.LinkDocsVerticalList = (0, uni_jsx_1.JSX)(({ hasBorder = true, documents, icon }) => {
7
- return ((0, jsx_runtime_1.jsx)("div", { className: `text-s text-primary-main flex flex-col mt-5 ${hasBorder ? 'gap-3.5' : 'gap-2'}`, role: "list", children: documents?.length
8
- ? documents.map((doc, i) => ((0, jsx_runtime_1.jsx)("div", { role: "listitem", children: (0, jsx_runtime_1.jsx)(LinkDocsListItem_1.LinkDocsListItem, { className: hasBorder ? 'rounded-md border-gray border border-solid p-4' : '', doc: doc, icon: icon }) }, String(i))))
9
- : null }));
10
- });
11
- //# sourceMappingURL=LinkDocsVerticalList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkDocsVerticalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsVerticalList.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,yDAAsD;AAQzC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACxC,OAAO,CACL,gCACE,SAAS,EAAE,+CAA+C,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAAE,EAC3F,IAAI,EAAC,MAAM,YAEV,SAAS,EAAE,MAAM;YAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,gCAAqB,IAAI,EAAC,UAAU,YAClC,uBAAC,mCAAgB,IACf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,EAC5E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IALM,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC;YACJ,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { Picture } from '../model/Picture';
2
- import type { BlockVersion } from '../model/BlockVersion';
3
- export declare const getIconWithVersion: (icon: Picture, version?: BlockVersion) => Picture;
@@ -1,8 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.getIconWithVersion = void 0;
3
- const getIconWithVersion = (icon, version = 'primary') => ({
4
- ...icon,
5
- iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
6
- });
7
- exports.getIconWithVersion = getIconWithVersion;
8
- //# sourceMappingURL=getIconWithVersion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getIconWithVersion.js","sourceRoot":"","sources":["../../src/utils/getIconWithVersion.ts"],"names":[],"mappings":";;AAGO,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAAE,UAAwB,SAAS,EAAW,EAAE,CAAC,CAAC;IAChG,GAAG,IAAI;IACP,WAAW,EAAE,IAAI,EAAE,WAAW,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;CAChF,CAAC,CAAC;AAHU,QAAA,kBAAkB,sBAG5B"}
@@ -1,2 +0,0 @@
1
- import type { LinkDocsVerticalListProps } from './LinkDocsVerticalList';
2
- export declare const LinkDocsHorizontalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { SwipeListControl } from '../../ui-kit/SwipeListControl/SwipeListControl.js';
4
- import { LinkDocsListItem } from './LinkDocsListItem.js';
5
- export const LinkDocsHorizontalList = JSX(({ hasBorder = true, documents, icon }) => (_jsx(SwipeListControl, { className: "text-s text-primary-main mt-5", children: documents?.length
6
- ? documents.map((doc, i) => (_jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-gray border border-solid p-4' : '', doc: doc, icon: icon }, String(i))))
7
- : null })));
8
- //# sourceMappingURL=LinkDocsHorizontalList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkDocsHorizontalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsHorizontalList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CACvC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACzC,KAAC,gBAAgB,IAAC,SAAS,EAAC,+BAA+B,YACxD,SAAS,EAAE,MAAM;QAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,KAAC,gBAAgB,IAEf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,EAC5E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,IAHL,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC;QACJ,CAAC,CAAC,IAAI,GACS,CACpB,CACF,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsListProps {
4
- className?: string;
5
- documents?: LinkDocsItem[];
6
- columnsMode?: LinkColumnsMode;
7
- icon?: Picture;
8
- }
9
- export declare const LinkDocsList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListProps, any, any>;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { LinkDocsListItem } from './LinkDocsListItem.js';
4
- export const LinkDocsList = JSX(({ className, documents, columnsMode = 'double', icon }) => {
5
- return documents?.length ? (_jsx("div", { className: className, role: "list", children: documents.map((doc, i) => (_jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: _jsx(LinkDocsListItem, { className: "group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main", doc: doc, icon: icon }) }, String(i)))) })) : null;
6
- });
7
- //# sourceMappingURL=LinkDocsList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkDocsList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAStD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,GAAG,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE;IACzD,OAAO,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CACzB,cAAK,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,YACnC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACzB,cAEE,SAAS,EAAE,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,EACnE,IAAI,EAAC,UAAU,YAEf,KAAC,gBAAgB,IACf,SAAS,EAAC,iGAAiG,EAC3G,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IARG,MAAM,CAAC,CAAC,CAAC,CASV,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
2
- export declare const LinkDocsListItem: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListItemProps, any, any>;
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { LinkDocsListItemBase } from './LinkDocsListItemBase.js';
4
- export const LinkDocsListItem = JSX(({ className = '', doc, icon }) => (_jsx(LinkDocsListItemBase, { className: `flex h-full box-border ${className}`, iconClassName: "mr-3 min-w-6 min-h-6", doc: doc, icon: icon })));
5
- //# sourceMappingURL=LinkDocsListItem.mobile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkDocsListItem.mobile.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItem.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAwB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5F,KAAC,oBAAoB,IACnB,SAAS,EAAE,0BAA0B,SAAS,EAAE,EAChD,aAAa,EAAC,sBAAsB,EACpC,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,CACH,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsListItemProps {
4
- className?: string;
5
- doc: LinkDocsItem;
6
- icon?: Picture;
7
- }
8
- export interface LinkDocsListItemBaseProps extends LinkDocsListItemProps {
9
- iconClassName?: string;
10
- textClassName?: string;
11
- suffixClassName?: string;
12
- }
13
- export declare const LinkDocsListItemBase: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListItemBaseProps, any, any>;
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { Img } from '../../ui-kit/Img/Img.js';
4
- import { getIconWithVersion } from '../../utils/getIconWithVersion.js';
5
- export const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
6
- const { text, fileSize, ...linkProps } = doc;
7
- return (_jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (_jsx(Img, { className: iconClassName, image: getIconWithVersion(icon), width: "24", height: "24", asSVG: true })) : null, text ? (_jsxs("span", { className: textClassName, children: [text, _jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
8
- });
9
- const formatSuffix = (ext, fileSize) => {
10
- const prefix = ext || fileSize ? ',' : '';
11
- const extension = ext ? ` ${ext}` : '';
12
- const size = fileSize ? ` (${fileSize})` : '';
13
- return prefix + extension + size;
14
- };
15
- const getExtFromHref = (href) => {
16
- if (!href) {
17
- return '';
18
- }
19
- const index = href.lastIndexOf('.');
20
- return index !== -1 ? href.substring(index + 1) : '';
21
- };
22
- //# sourceMappingURL=LinkDocsListItemBase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkDocsListItemBase.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItemBase.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAepE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC;IAE7C,OAAO,CACL,aAAG,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,KAAK,SAAS,aAC/C,IAAI,CAAC,CAAC,CAAC,CACN,KAAC,GAAG,IACF,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAC/B,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,CACN,gBAAM,SAAS,EAAE,aAAa,aAC3B,IAAI,EACL,eAAM,SAAS,EAAE,eAAe,YAC7B,SAAS,EAAE,IAAI,IAAI,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GACrE,IACF,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,GAAY,EAAE,QAAiB,EAAE,EAAE;IACvD,MAAM,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAE9C,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAEpC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsVerticalListProps {
4
- hasBorder?: boolean;
5
- documents?: LinkDocsItem[];
6
- icon?: Picture;
7
- }
8
- export declare const LinkDocsVerticalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { LinkDocsListItem } from './LinkDocsListItem.js';
4
- export const LinkDocsVerticalList = JSX(({ hasBorder = true, documents, icon }) => {
5
- return (_jsx("div", { className: `text-s text-primary-main flex flex-col mt-5 ${hasBorder ? 'gap-3.5' : 'gap-2'}`, role: "list", children: documents?.length
6
- ? documents.map((doc, i) => (_jsx("div", { role: "listitem", children: _jsx(LinkDocsListItem, { className: hasBorder ? 'rounded-md border-gray border border-solid p-4' : '', doc: doc, icon: icon }) }, String(i))))
7
- : null }));
8
- });
9
- //# sourceMappingURL=LinkDocsVerticalList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkDocsVerticalList.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsVerticalList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACxC,OAAO,CACL,cACE,SAAS,EAAE,+CAA+C,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAAE,EAC3F,IAAI,EAAC,MAAM,YAEV,SAAS,EAAE,MAAM;YAChB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,cAAqB,IAAI,EAAC,UAAU,YAClC,KAAC,gBAAgB,IACf,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,EAAE,EAC5E,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,IALM,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC;YACJ,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { Picture } from '../model/Picture';
2
- import type { BlockVersion } from '../model/BlockVersion';
3
- export declare const getIconWithVersion: (icon: Picture, version?: BlockVersion) => Picture;
@@ -1,5 +0,0 @@
1
- export const getIconWithVersion = (icon, version = 'primary') => ({
2
- ...icon,
3
- iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
4
- });
5
- //# sourceMappingURL=getIconWithVersion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getIconWithVersion.js","sourceRoot":"","sources":["../../src/utils/getIconWithVersion.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAa,EAAE,UAAwB,SAAS,EAAW,EAAE,CAAC,CAAC;IAChG,GAAG,IAAI;IACP,WAAW,EAAE,IAAI,EAAE,WAAW,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;CAChF,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { LinkDocsVerticalListProps } from './LinkDocsVerticalList';
2
- export declare const LinkDocsHorizontalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
@@ -1,9 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsListProps {
4
- className?: string;
5
- documents?: LinkDocsItem[];
6
- columnsMode?: LinkColumnsMode;
7
- icon?: Picture;
8
- }
9
- export declare const LinkDocsList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListProps, any, any>;
@@ -1,13 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsListItemProps {
4
- className?: string;
5
- doc: LinkDocsItem;
6
- icon?: Picture;
7
- }
8
- export interface LinkDocsListItemBaseProps extends LinkDocsListItemProps {
9
- iconClassName?: string;
10
- textClassName?: string;
11
- suffixClassName?: string;
12
- }
13
- export declare const LinkDocsListItemBase: import("@redneckz/uni-jsx").UNIComponent<LinkDocsListItemBaseProps, any, any>;
@@ -1,8 +0,0 @@
1
- import type { Picture } from '../../model/Picture';
2
- import type { LinkDocsItem } from './LinkDocsContent';
3
- export interface LinkDocsVerticalListProps {
4
- hasBorder?: boolean;
5
- documents?: LinkDocsItem[];
6
- icon?: Picture;
7
- }
8
- export declare const LinkDocsVerticalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;
@@ -1,3 +0,0 @@
1
- import type { Picture } from '../model/Picture';
2
- import type { BlockVersion } from '../model/BlockVersion';
3
- export declare const getIconWithVersion: (icon: Picture, version?: BlockVersion) => Picture;
@@ -1,2 +0,0 @@
1
- import type { LinkDocsVerticalListProps } from './LinkDocsVerticalList';
2
- export declare const LinkDocsHorizontalList: import("@redneckz/uni-jsx").UNIComponent<LinkDocsVerticalListProps, any, any>;