@redneckz/wildless-cms-uni-blocks 0.14.4 → 0.14.6

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 (448) hide show
  1. package/bin/migration-scripts/0.13.5.js +36 -0
  2. package/bin/migration-scripts/0.14.1.js +29 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +211 -143
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  7. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  8. package/bundle/components/Depository/Depository.d.ts +6 -0
  9. package/bundle/components/Depository/DepositoryContent.d.ts +2 -0
  10. package/bundle/components/Depository/DepositoryItem.d.ts +3 -0
  11. package/bundle/components/Depository/useDepository.d.ts +9 -0
  12. package/bundle/components/Footer/FooterContent.d.ts +1 -4
  13. package/bundle/components/Footer/FooterDataProps.d.ts +4 -3
  14. package/bundle/components/Footer/SocialMedia.d.ts +2 -2
  15. package/bundle/ui-kit/Pagination/Pagination.d.ts +8 -0
  16. package/bundle/ui-kit/Pagination/renderPages.d.ts +3 -0
  17. package/bundle/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  18. package/bundle/utils/convertTimestampToDate.d.ts +1 -0
  19. package/dist/components/ApplicationForm/renderRegion.js +1 -1
  20. package/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
  21. package/dist/components/ApplicationForm/renderWedDataOrganization.js +2 -2
  22. package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  23. package/dist/components/BenefitsBlock/BenefitsBlock.js +7 -7
  24. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  25. package/dist/components/Blocks.js +2 -2
  26. package/dist/components/Blocks.js.map +1 -1
  27. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  28. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  29. package/dist/components/Calculator/constants.js +0 -1
  30. package/dist/components/Calculator/constants.js.map +1 -1
  31. package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  32. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  33. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  34. package/dist/components/Carousel/Carousel.js +0 -1
  35. package/dist/components/Carousel/Carousel.js.map +1 -1
  36. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  37. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  38. package/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
  39. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  40. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  41. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  42. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  43. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  44. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  45. package/dist/components/Depository/Depository.d.ts +6 -0
  46. package/dist/components/Depository/Depository.js +19 -0
  47. package/dist/components/Depository/Depository.js.map +1 -0
  48. package/dist/components/Depository/DepositoryContent.d.ts +2 -0
  49. package/dist/components/{CarouselEventCard/CarouselEventCardContent.js → Depository/DepositoryContent.js} +1 -1
  50. package/dist/components/Depository/DepositoryContent.js.map +1 -0
  51. package/dist/components/Depository/DepositoryItem.d.ts +3 -0
  52. package/dist/components/Depository/DepositoryItem.js +12 -0
  53. package/dist/components/Depository/DepositoryItem.js.map +1 -0
  54. package/dist/components/Depository/useDepository.d.ts +9 -0
  55. package/dist/components/Depository/useDepository.js +10 -0
  56. package/dist/components/Depository/useDepository.js.map +1 -0
  57. package/dist/components/Footer/Footer.mobile.js +1 -1
  58. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  59. package/dist/components/Footer/FooterContent.d.ts +1 -4
  60. package/dist/components/Footer/FooterDataProps.d.ts +4 -3
  61. package/dist/components/Footer/SocialMedia.d.ts +2 -2
  62. package/dist/components/Footer/SocialMedia.js +26 -2
  63. package/dist/components/Footer/SocialMedia.js.map +1 -1
  64. package/dist/components/Footer/iconsMap.js +0 -7
  65. package/dist/components/Footer/iconsMap.js.map +1 -1
  66. package/dist/ui-kit/Button/ButtonInner.js +1 -1
  67. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  68. package/dist/ui-kit/Input/Input.js +7 -1
  69. package/dist/ui-kit/Input/Input.js.map +1 -1
  70. package/dist/ui-kit/Pagination/Pagination.d.ts +8 -0
  71. package/dist/ui-kit/Pagination/Pagination.js +31 -0
  72. package/dist/ui-kit/Pagination/Pagination.js.map +1 -0
  73. package/dist/ui-kit/Pagination/renderPages.d.ts +3 -0
  74. package/dist/ui-kit/Pagination/renderPages.js +18 -0
  75. package/dist/ui-kit/Pagination/renderPages.js.map +1 -0
  76. package/dist/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  77. package/dist/ui-kit/Pagination/shouldRenderPage.js +9 -0
  78. package/dist/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
  79. package/dist/ui-kit/Select/filterOptions.js +1 -10
  80. package/dist/ui-kit/Select/filterOptions.js.map +1 -1
  81. package/dist/utils/convertTimestampToDate.d.ts +1 -0
  82. package/dist/utils/convertTimestampToDate.js +16 -0
  83. package/dist/utils/convertTimestampToDate.js.map +1 -0
  84. package/dist/utils/fetchMultitudeJSON.js +1 -1
  85. package/dist/utils/fetchMultitudeJSON.js.map +1 -1
  86. package/lib/common.css +1 -1
  87. package/lib/components/ApplicationForm/renderRegion.js +1 -1
  88. package/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
  89. package/lib/components/ApplicationForm/renderWedDataOrganization.js +2 -2
  90. package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  91. package/lib/components/BenefitsBlock/BenefitsBlock.js +7 -7
  92. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  93. package/lib/components/Blocks.js +2 -2
  94. package/lib/components/Blocks.js.map +1 -1
  95. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  96. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  97. package/lib/components/Calculator/constants.js +0 -1
  98. package/lib/components/Calculator/constants.js.map +1 -1
  99. package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  100. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  101. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  102. package/lib/components/Carousel/Carousel.fixture.d.ts +0 -1
  103. package/lib/components/Carousel/Carousel.js +0 -1
  104. package/lib/components/Carousel/Carousel.js.map +1 -1
  105. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  106. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  107. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +2 -0
  108. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +13 -0
  109. package/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
  110. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  111. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  112. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  113. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  114. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  115. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  116. package/lib/components/Depository/Depository.d.ts +6 -0
  117. package/lib/components/Depository/Depository.fixture.d.ts +6 -0
  118. package/lib/components/Depository/Depository.js +17 -0
  119. package/lib/components/Depository/Depository.js.map +1 -0
  120. package/lib/components/Depository/DepositoryContent.d.ts +2 -0
  121. package/lib/components/Depository/DepositoryContent.js +2 -0
  122. package/lib/components/Depository/DepositoryContent.js.map +1 -0
  123. package/lib/components/Depository/DepositoryItem.d.ts +3 -0
  124. package/lib/components/Depository/DepositoryItem.js +9 -0
  125. package/lib/components/Depository/DepositoryItem.js.map +1 -0
  126. package/lib/components/Depository/useDepository.d.ts +9 -0
  127. package/lib/components/Depository/useDepository.js +7 -0
  128. package/lib/components/Depository/useDepository.js.map +1 -0
  129. package/lib/components/Footer/Footer.mobile.js +1 -1
  130. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  131. package/lib/components/Footer/FooterContent.d.ts +1 -4
  132. package/lib/components/Footer/FooterDataProps.d.ts +4 -3
  133. package/lib/components/Footer/SocialMedia.d.ts +2 -2
  134. package/lib/components/Footer/SocialMedia.js +26 -2
  135. package/lib/components/Footer/SocialMedia.js.map +1 -1
  136. package/lib/components/Footer/iconsMap.js +0 -7
  137. package/lib/components/Footer/iconsMap.js.map +1 -1
  138. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -0
  139. package/lib/ui-kit/Button/ButtonInner.js +1 -1
  140. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  141. package/lib/ui-kit/Input/Input.js +8 -2
  142. package/lib/ui-kit/Input/Input.js.map +1 -1
  143. package/lib/ui-kit/Pagination/Pagination.d.ts +8 -0
  144. package/lib/ui-kit/Pagination/Pagination.js +28 -0
  145. package/lib/ui-kit/Pagination/Pagination.js.map +1 -0
  146. package/lib/ui-kit/Pagination/renderPages.d.ts +3 -0
  147. package/lib/ui-kit/Pagination/renderPages.js +15 -0
  148. package/lib/ui-kit/Pagination/renderPages.js.map +1 -0
  149. package/lib/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  150. package/lib/ui-kit/Pagination/shouldRenderPage.js +6 -0
  151. package/lib/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
  152. package/lib/ui-kit/Select/filterOptions.js +1 -10
  153. package/lib/ui-kit/Select/filterOptions.js.map +1 -1
  154. package/lib/utils/convertTimestampToDate.d.ts +1 -0
  155. package/lib/utils/convertTimestampToDate.js +13 -0
  156. package/lib/utils/convertTimestampToDate.js.map +1 -0
  157. package/lib/utils/fetchMultitudeJSON.js +1 -1
  158. package/lib/utils/fetchMultitudeJSON.js.map +1 -1
  159. package/mobile/bundle/bundle.umd.js +128 -131
  160. package/mobile/bundle/bundle.umd.min.js +1 -1
  161. package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  162. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  163. package/mobile/bundle/components/Depository/Depository.d.ts +6 -0
  164. package/mobile/bundle/components/Depository/DepositoryContent.d.ts +2 -0
  165. package/mobile/bundle/components/Depository/DepositoryItem.d.ts +3 -0
  166. package/mobile/bundle/components/Depository/useDepository.d.ts +9 -0
  167. package/mobile/bundle/components/Footer/FooterContent.d.ts +1 -4
  168. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +4 -3
  169. package/mobile/bundle/components/Footer/SocialMedia.d.ts +2 -2
  170. package/mobile/bundle/ui-kit/Pagination/Pagination.d.ts +8 -0
  171. package/mobile/bundle/ui-kit/Pagination/renderPages.d.ts +3 -0
  172. package/mobile/bundle/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  173. package/mobile/bundle/utils/convertTimestampToDate.d.ts +1 -0
  174. package/mobile/dist/components/ApplicationForm/renderRegion.js +1 -1
  175. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
  176. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +2 -2
  177. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  178. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +7 -7
  179. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  180. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  181. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  182. package/mobile/dist/components/Calculator/constants.js +0 -1
  183. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  184. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  185. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  186. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  187. package/mobile/dist/components/Carousel/Carousel.js +0 -1
  188. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  189. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  190. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  191. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
  192. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  193. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  194. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  195. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  196. package/mobile/dist/components/Depository/Depository.d.ts +6 -0
  197. package/mobile/dist/components/Depository/Depository.js +19 -0
  198. package/mobile/dist/components/Depository/Depository.js.map +1 -0
  199. package/mobile/dist/components/Depository/DepositoryContent.d.ts +2 -0
  200. package/mobile/dist/components/{CarouselEventCard/CarouselEventCardContent.js → Depository/DepositoryContent.js} +1 -1
  201. package/mobile/dist/components/Depository/DepositoryContent.js.map +1 -0
  202. package/mobile/dist/components/Depository/DepositoryItem.d.ts +3 -0
  203. package/mobile/dist/components/Depository/DepositoryItem.js +12 -0
  204. package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -0
  205. package/mobile/dist/components/Depository/useDepository.d.ts +9 -0
  206. package/mobile/dist/components/Depository/useDepository.js +10 -0
  207. package/mobile/dist/components/Depository/useDepository.js.map +1 -0
  208. package/mobile/dist/components/Footer/Footer.js +1 -1
  209. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  210. package/mobile/dist/components/Footer/FooterContent.d.ts +1 -4
  211. package/mobile/dist/components/Footer/FooterDataProps.d.ts +4 -3
  212. package/mobile/dist/components/Footer/SocialMedia.d.ts +2 -2
  213. package/mobile/dist/components/Footer/SocialMedia.js +26 -2
  214. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  215. package/mobile/dist/components/Footer/iconsMap.js +0 -7
  216. package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
  217. package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
  218. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  219. package/mobile/dist/ui-kit/Input/Input.js +7 -1
  220. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  221. package/mobile/dist/ui-kit/Pagination/Pagination.d.ts +8 -0
  222. package/mobile/dist/ui-kit/Pagination/Pagination.js +31 -0
  223. package/mobile/dist/ui-kit/Pagination/Pagination.js.map +1 -0
  224. package/mobile/dist/ui-kit/Pagination/renderPages.d.ts +3 -0
  225. package/mobile/dist/ui-kit/Pagination/renderPages.js +18 -0
  226. package/mobile/dist/ui-kit/Pagination/renderPages.js.map +1 -0
  227. package/mobile/dist/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  228. package/mobile/dist/ui-kit/Pagination/shouldRenderPage.js +9 -0
  229. package/mobile/dist/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
  230. package/mobile/dist/ui-kit/Select/filterOptions.js +1 -10
  231. package/mobile/dist/ui-kit/Select/filterOptions.js.map +1 -1
  232. package/mobile/dist/utils/convertTimestampToDate.d.ts +1 -0
  233. package/mobile/dist/utils/convertTimestampToDate.js +16 -0
  234. package/mobile/dist/utils/convertTimestampToDate.js.map +1 -0
  235. package/mobile/dist/utils/fetchMultitudeJSON.js +1 -1
  236. package/mobile/dist/utils/fetchMultitudeJSON.js.map +1 -1
  237. package/mobile/lib/common.css +1 -1
  238. package/mobile/lib/components/ApplicationForm/renderRegion.js +1 -1
  239. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
  240. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +2 -2
  241. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  242. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +7 -7
  243. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  244. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  245. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  246. package/mobile/lib/components/Calculator/constants.js +0 -1
  247. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  248. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  249. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  250. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  251. package/mobile/lib/components/Carousel/Carousel.js +0 -1
  252. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  253. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  254. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  255. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
  256. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  257. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  258. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  259. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  260. package/mobile/lib/components/Depository/Depository.d.ts +6 -0
  261. package/mobile/lib/components/Depository/Depository.js +17 -0
  262. package/mobile/lib/components/Depository/Depository.js.map +1 -0
  263. package/mobile/lib/components/Depository/DepositoryContent.d.ts +2 -0
  264. package/mobile/lib/components/Depository/DepositoryContent.js +2 -0
  265. package/mobile/lib/components/Depository/DepositoryContent.js.map +1 -0
  266. package/mobile/lib/components/Depository/DepositoryItem.d.ts +3 -0
  267. package/mobile/lib/components/Depository/DepositoryItem.js +9 -0
  268. package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -0
  269. package/mobile/lib/components/Depository/useDepository.d.ts +9 -0
  270. package/mobile/lib/components/Depository/useDepository.js +7 -0
  271. package/mobile/lib/components/Depository/useDepository.js.map +1 -0
  272. package/mobile/lib/components/Footer/Footer.js +1 -1
  273. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  274. package/mobile/lib/components/Footer/FooterContent.d.ts +1 -4
  275. package/mobile/lib/components/Footer/FooterDataProps.d.ts +4 -3
  276. package/mobile/lib/components/Footer/SocialMedia.d.ts +2 -2
  277. package/mobile/lib/components/Footer/SocialMedia.js +26 -2
  278. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  279. package/mobile/lib/components/Footer/iconsMap.js +0 -7
  280. package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
  281. package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
  282. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  283. package/mobile/lib/ui-kit/Input/Input.js +8 -2
  284. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  285. package/mobile/lib/ui-kit/Pagination/Pagination.d.ts +8 -0
  286. package/mobile/lib/ui-kit/Pagination/Pagination.js +28 -0
  287. package/mobile/lib/ui-kit/Pagination/Pagination.js.map +1 -0
  288. package/mobile/lib/ui-kit/Pagination/renderPages.d.ts +3 -0
  289. package/mobile/lib/ui-kit/Pagination/renderPages.js +15 -0
  290. package/mobile/lib/ui-kit/Pagination/renderPages.js.map +1 -0
  291. package/mobile/lib/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  292. package/mobile/lib/ui-kit/Pagination/shouldRenderPage.js +6 -0
  293. package/mobile/lib/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
  294. package/mobile/lib/ui-kit/Select/filterOptions.js +1 -10
  295. package/mobile/lib/ui-kit/Select/filterOptions.js.map +1 -1
  296. package/mobile/lib/utils/convertTimestampToDate.d.ts +1 -0
  297. package/mobile/lib/utils/convertTimestampToDate.js +13 -0
  298. package/mobile/lib/utils/convertTimestampToDate.js.map +1 -0
  299. package/mobile/lib/utils/fetchMultitudeJSON.js +1 -1
  300. package/mobile/lib/utils/fetchMultitudeJSON.js.map +1 -1
  301. package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
  302. package/mobile/src/components/ApplicationForm/renderRegion.tsx +2 -2
  303. package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +2 -2
  304. package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +5 -5
  305. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +24 -22
  306. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +28 -26
  307. package/mobile/src/components/Calculator/constants.ts +0 -1
  308. package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
  309. package/mobile/src/components/Carousel/Carousel.tsx +0 -1
  310. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
  311. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
  312. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
  313. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
  314. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  315. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  316. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  317. package/mobile/src/components/Depository/Depository.tsx +43 -0
  318. package/mobile/src/components/Depository/DepositoryContent.ts +3 -0
  319. package/mobile/src/components/Depository/DepositoryItem.tsx +21 -0
  320. package/mobile/src/components/Depository/useDepository.ts +23 -0
  321. package/mobile/src/components/Footer/Footer.tsx +1 -1
  322. package/mobile/src/components/Footer/FooterContent.ts +1 -5
  323. package/mobile/src/components/Footer/FooterDataProps.ts +4 -3
  324. package/mobile/src/components/Footer/SocialMedia.tsx +48 -16
  325. package/mobile/src/components/Footer/iconsMap.ts +0 -7
  326. package/mobile/src/components/ProductGallery/ProductGallery.example.json +10 -4
  327. package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
  328. package/mobile/src/ui-kit/Input/Input.tsx +9 -2
  329. package/mobile/src/ui-kit/Pagination/Pagination.tsx +87 -0
  330. package/mobile/src/ui-kit/Pagination/renderPages.tsx +33 -0
  331. package/mobile/src/ui-kit/Pagination/shouldRenderPage.ts +8 -0
  332. package/mobile/src/ui-kit/Select/filterOptions.ts +1 -11
  333. package/mobile/src/utils/convertTimestampToDate.ts +15 -0
  334. package/mobile/src/utils/fetchMultitudeJSON.ts +1 -1
  335. package/package.json +1 -1
  336. package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
  337. package/src/components/ApplicationForm/renderRegion.tsx +2 -2
  338. package/src/components/ApplicationForm/renderRegionDepartment.tsx +2 -2
  339. package/src/components/ApplicationForm/renderWedDataOrganization.tsx +5 -5
  340. package/src/components/BenefitsBlock/BenefitsBlock.tsx +24 -22
  341. package/src/components/Blocks.ts +2 -2
  342. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +28 -26
  343. package/src/components/Calculator/constants.ts +0 -1
  344. package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
  345. package/src/components/Carousel/Carousel.fixture.tsx +0 -18
  346. package/src/components/Carousel/Carousel.tsx +0 -1
  347. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
  348. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
  349. package/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
  350. package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +92 -0
  351. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +18 -0
  352. package/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
  353. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  354. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +4 -4
  355. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +7 -7
  356. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +1 -1
  357. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
  358. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  359. package/src/components/Depository/Depository.example.json +1 -0
  360. package/src/components/Depository/Depository.fixture.tsx +10 -0
  361. package/src/components/Depository/Depository.tsx +43 -0
  362. package/src/components/Depository/Depository.ui.json +1 -0
  363. package/src/components/Depository/DepositoryContent.ts +3 -0
  364. package/src/components/Depository/DepositoryItem.tsx +21 -0
  365. package/src/components/Depository/useDepository.ts +23 -0
  366. package/src/components/Footer/Footer.mobile.tsx +1 -1
  367. package/src/components/Footer/FooterContent.ts +1 -5
  368. package/src/components/Footer/FooterDataProps.ts +4 -3
  369. package/src/components/Footer/SocialMedia.tsx +48 -16
  370. package/src/components/Footer/iconsMap.ts +0 -7
  371. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +23 -3
  372. package/src/components/ProductGallery/ProductGallery.example.json +10 -4
  373. package/src/ui-kit/Button/ButtonInner.tsx +1 -1
  374. package/src/ui-kit/Input/Input.tsx +9 -2
  375. package/src/ui-kit/Pagination/Pagination.tsx +87 -0
  376. package/src/ui-kit/Pagination/renderPages.tsx +33 -0
  377. package/src/ui-kit/Pagination/shouldRenderPage.ts +8 -0
  378. package/src/ui-kit/Select/filterOptions.ts +1 -11
  379. package/src/utils/convertTimestampToDate.ts +15 -0
  380. package/src/utils/fetchMultitudeJSON.ts +1 -1
  381. package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  382. package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  383. package/bundle/components/Footer/MediaButton.d.ts +0 -7
  384. package/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
  385. package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  386. package/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
  387. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  388. package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  389. package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  390. package/dist/components/Footer/MediaButton.d.ts +0 -7
  391. package/dist/components/Footer/MediaButton.js +0 -18
  392. package/dist/components/Footer/MediaButton.js.map +0 -1
  393. package/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
  394. package/dist/components/Footer/buttonSizeStyle.js +0 -7
  395. package/dist/components/Footer/buttonSizeStyle.js.map +0 -1
  396. package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  397. package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +0 -8
  398. package/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
  399. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  400. package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  401. package/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  402. package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  403. package/lib/components/Footer/MediaButton.d.ts +0 -7
  404. package/lib/components/Footer/MediaButton.js +0 -16
  405. package/lib/components/Footer/MediaButton.js.map +0 -1
  406. package/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
  407. package/lib/components/Footer/buttonSizeStyle.js +0 -5
  408. package/lib/components/Footer/buttonSizeStyle.js.map +0 -1
  409. package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  410. package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  411. package/mobile/bundle/components/Footer/MediaButton.d.ts +0 -7
  412. package/mobile/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
  413. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  414. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
  415. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  416. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  417. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  418. package/mobile/dist/components/Footer/MediaButton.d.ts +0 -7
  419. package/mobile/dist/components/Footer/MediaButton.js +0 -18
  420. package/mobile/dist/components/Footer/MediaButton.js.map +0 -1
  421. package/mobile/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
  422. package/mobile/dist/components/Footer/buttonSizeStyle.js +0 -7
  423. package/mobile/dist/components/Footer/buttonSizeStyle.js.map +0 -1
  424. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  425. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
  426. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  427. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  428. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  429. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  430. package/mobile/lib/components/Footer/MediaButton.d.ts +0 -7
  431. package/mobile/lib/components/Footer/MediaButton.js +0 -16
  432. package/mobile/lib/components/Footer/MediaButton.js.map +0 -1
  433. package/mobile/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
  434. package/mobile/lib/components/Footer/buttonSizeStyle.js +0 -5
  435. package/mobile/lib/components/Footer/buttonSizeStyle.js.map +0 -1
  436. package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
  437. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
  438. package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
  439. package/mobile/src/components/Footer/MediaButton.tsx +0 -50
  440. package/mobile/src/components/Footer/buttonSizeStyle.ts +0 -6
  441. package/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
  442. package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +0 -25
  443. package/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
  444. package/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
  445. package/src/components/Footer/MediaButton.tsx +0 -50
  446. package/src/components/Footer/buttonSizeStyle.ts +0 -6
  447. /package/mobile/src/components/{CarouselEventCard/CarouselEventCard.ui.json → Depository/Depository.example.json} +0 -0
  448. /package/{src/components/CarouselEventCard/CarouselEventCard.ui.json → mobile/src/components/Depository/Depository.ui.json} +0 -0
@@ -1,7 +0,0 @@
1
- import { ButtonContent } from '../../ui-kit/Button/ButtonContent';
2
- export declare type ButtonSize = 'default' | 'stretched';
3
- interface MediaButtonProps extends ButtonContent {
4
- buttonSize?: ButtonSize;
5
- }
6
- export declare const MediaButton: import("@redneckz/uni-jsx").UNIComponent<MediaButtonProps, any, any>;
7
- export {};
@@ -1,18 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.MediaButton = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Button_1 = require("../../ui-kit/Button/Button");
6
- const Img_1 = require("../../ui-kit/Img/Img");
7
- const style_1 = require("../../utils/style");
8
- const buttonSizeStyle_1 = require("./buttonSizeStyle");
9
- const findIconByHref_1 = require("./findIconByHref");
10
- //TODO: Refactor this.
11
- exports.MediaButton = (0, uni_jsx_1.JSX)(({ buttonSize = 'default', icon, ...rest }) => {
12
- const { href } = rest;
13
- const { iconMapped, label } = (0, findIconByHref_1.findIconByHref)(href);
14
- const iconCustom = getFilteredIcon(icon) ?? iconMapped;
15
- return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: (0, style_1.style)('border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', 'p-m min-h-14 group/media flex items-center justify-center box-border', buttonSizeStyle_1.buttonSizeStyle[buttonSize]), "aria-label": label, rel: "noopener noreferrer", target: "_blank", ...rest, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" }) }));
16
- });
17
- const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
18
- //# sourceMappingURL=MediaButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAoD;AAEpD,8CAA2C;AAC3C,6CAA0C;AAC1C,uDAAoD;AACpD,qDAAkD;AAQlD,sBAAsB;AACT,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,UAAU,GAAG,SAAS,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7F,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAEtB,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAC;IAEnD,MAAM,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC;IAEvD,OAAO,CACL,uBAAC,eAAM,IACL,SAAS,EAAE,IAAA,aAAK,EACd,8CAA8C,EAC9C,wCAAwC,EACxC,wCAAwC,EACxC,iGAAiG,EACjG,8BAA8B,EAC9B,sEAAsE,EACtE,iCAAe,CAAC,UAAU,CAAC,CAC5B,gBACW,KAAK,EACjB,GAAG,EAAC,qBAAqB,EACzB,MAAM,EAAC,QAAQ,KACX,IAAI,YAER,uBAAC,SAAG,IACF,KAAK,EAAE,UAAU,EACjB,cAAc,EAAC,8BAA8B,EAC7C,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,GACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,IAAyB,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { ButtonSize } from './MediaButton';
2
- export declare const buttonSizeStyle: {
3
- [key in ButtonSize]: string;
4
- };
@@ -1,7 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.buttonSizeStyle = void 0;
3
- exports.buttonSizeStyle = {
4
- default: 'w-14 h-14',
5
- stretched: 'flex-1 h-14',
6
- };
7
- //# sourceMappingURL=buttonSizeStyle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buttonSizeStyle.js","sourceRoot":"","sources":["../../../src/components/Footer/buttonSizeStyle.ts"],"names":[],"mappings":";;AAEa,QAAA,eAAe,GAAoC;IAC9D,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,aAAa;CACzB,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
- import type { CarouselEventCardContent } from './CarouselEventCardContent';
3
- export interface CarouselEventCardProps extends CarouselEventCardContent, UniBlockProps {
4
- }
5
- export declare const CarouselEventCard: import("@redneckz/uni-jsx").UNIComponent<CarouselEventCardProps, any, any>;
@@ -1,10 +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 { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
4
- import { Img } from '../../ui-kit/Img/Img.js';
5
- import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper.js';
6
- import { Headline } from '../Headline/Headline.js';
7
- export const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
8
- return (_jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: _jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? _jsx(Img, { image: icon }) : null, icon?.src ? _jsx(Img, { image: icon }) : null, _jsx("div", { className: "p-s", children: _jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: "text-left" }) })] }) }));
9
- });
10
- //# sourceMappingURL=CarouselEventCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CarouselEventCard.js","sourceRoot":"","sources":["../../../src/components/CarouselEventCard/CarouselEventCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACtE,OAAO,CACL,KAAC,YAAY,IAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,KAAK,KAAK,IAAI,YAC/D,MAAC,WAAW,IAAC,SAAS,EAAC,eAAe,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aAC9D,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACxC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,EACxC,cAAK,SAAS,EAAC,KAAK,YAClB,KAAC,QAAQ,IACP,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,IAAI,EACpB,UAAU,EAAE,IAAI,EAChB,KAAK,EAAC,WAAW,GACjB,GACE,IACM,GACD,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { DescriptionProps, TitleProps } from '../../model/HeadlineType';
2
- import type { UniBlockContent } from '../../model/JSXBlock';
3
- import type { LinkCommonProps } from '../../model/LinkProps';
4
- import type { IconProps } from '../../model/Picture';
5
- /**
6
- * @title Карточка мероприятия в карусели
7
- */
8
- export declare type CarouselEventCardContent = UniBlockContent & TitleProps & DescriptionProps & LinkCommonProps & IconProps;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CarouselEventCardContent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CarouselEventCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselEventCard/CarouselEventCardContent.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { ButtonContent } from '../../ui-kit/Button/ButtonContent';
2
- export declare type ButtonSize = 'default' | 'stretched';
3
- interface MediaButtonProps extends ButtonContent {
4
- buttonSize?: ButtonSize;
5
- }
6
- export declare const MediaButton: import("@redneckz/uni-jsx").UNIComponent<MediaButtonProps, any, any>;
7
- export {};
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { Button } from '../../ui-kit/Button/Button.js';
4
- import { Img } from '../../ui-kit/Img/Img.js';
5
- import { style } from '../../utils/style.js';
6
- import { buttonSizeStyle } from './buttonSizeStyle.js';
7
- import { findIconByHref } from './findIconByHref.js';
8
- //TODO: Refactor this.
9
- export const MediaButton = JSX(({ buttonSize = 'default', icon, ...rest }) => {
10
- const { href } = rest;
11
- const { iconMapped, label } = findIconByHref(href);
12
- const iconCustom = getFilteredIcon(icon) ?? iconMapped;
13
- return (_jsx(Button, { className: style('border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', 'p-m min-h-14 group/media flex items-center justify-center box-border', buttonSizeStyle[buttonSize]), "aria-label": label, rel: "noopener noreferrer", target: "_blank", ...rest, children: _jsx(Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" }) }));
14
- });
15
- const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
16
- //# sourceMappingURL=MediaButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQlD,sBAAsB;AACtB,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,UAAU,GAAG,SAAS,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7F,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAEtB,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAEnD,MAAM,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC;IAEvD,OAAO,CACL,KAAC,MAAM,IACL,SAAS,EAAE,KAAK,CACd,8CAA8C,EAC9C,wCAAwC,EACxC,wCAAwC,EACxC,iGAAiG,EACjG,8BAA8B,EAC9B,sEAAsE,EACtE,eAAe,CAAC,UAAU,CAAC,CAC5B,gBACW,KAAK,EACjB,GAAG,EAAC,qBAAqB,EACzB,MAAM,EAAC,QAAQ,KACX,IAAI,YAER,KAAC,GAAG,IACF,KAAK,EAAE,UAAU,EACjB,cAAc,EAAC,8BAA8B,EAC7C,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,GACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,IAAyB,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { ButtonSize } from './MediaButton';
2
- export declare const buttonSizeStyle: {
3
- [key in ButtonSize]: string;
4
- };
@@ -1,5 +0,0 @@
1
- export const buttonSizeStyle = {
2
- default: 'w-14 h-14',
3
- stretched: 'flex-1 h-14',
4
- };
5
- //# sourceMappingURL=buttonSizeStyle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buttonSizeStyle.js","sourceRoot":"","sources":["../../../src/components/Footer/buttonSizeStyle.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAoC;IAC9D,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,aAAa;CACzB,CAAC"}
@@ -1,12 +0,0 @@
1
- {
2
- "icon": {
3
- "icon": "SignDocsIcon",
4
- "format": "webp",
5
- "size": {
6
- "width": 365,
7
- "height": 195
8
- }
9
- },
10
- "title": "Заголовок",
11
- "description": "Описание"
12
- }
@@ -1,31 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import type { UniBlockProps } from '../../model/JSXBlock';
3
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
- import { Img } from '../../ui-kit/Img/Img';
5
- import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
6
- import type { CarouselEventCardContent } from './CarouselEventCardContent';
7
- import { Headline } from '../Headline/Headline';
8
-
9
- export interface CarouselEventCardProps extends CarouselEventCardContent, UniBlockProps {}
10
-
11
- export const CarouselEventCard = JSX<CarouselEventCardProps>(
12
- ({ className = '', icon, title, description, href, target, ...rest }) => {
13
- return (
14
- <BlockWrapper className={className} defaultPadding="p-0" {...rest}>
15
- <LinkWrapper className="flex flex-col" href={href} target={target}>
16
- {icon?.icon ? <Img image={icon} /> : null}
17
- {icon?.src ? <Img image={icon} /> : null}
18
- <div className="p-s">
19
- <Headline
20
- title={title}
21
- description={description}
22
- headlineVersion="XS"
23
- isEmbedded={true}
24
- align="text-left"
25
- />
26
- </div>
27
- </LinkWrapper>
28
- </BlockWrapper>
29
- );
30
- },
31
- );
@@ -1,13 +0,0 @@
1
- import type { DescriptionProps, TitleProps } from '../../model/HeadlineType';
2
- import type { UniBlockContent } from '../../model/JSXBlock';
3
- import type { LinkCommonProps } from '../../model/LinkProps';
4
- import type { IconProps } from '../../model/Picture';
5
-
6
- /**
7
- * @title Карточка мероприятия в карусели
8
- */
9
- export type CarouselEventCardContent = UniBlockContent &
10
- TitleProps &
11
- DescriptionProps &
12
- LinkCommonProps &
13
- IconProps;
@@ -1,50 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import type { Picture } from '../../model/Picture';
3
- import { Button } from '../../ui-kit/Button/Button';
4
- import { ButtonContent } from '../../ui-kit/Button/ButtonContent';
5
- import { Img } from '../../ui-kit/Img/Img';
6
- import { style } from '../../utils/style';
7
- import { buttonSizeStyle } from './buttonSizeStyle';
8
- import { findIconByHref } from './findIconByHref';
9
-
10
- export type ButtonSize = 'default' | 'stretched';
11
-
12
- interface MediaButtonProps extends ButtonContent {
13
- buttonSize?: ButtonSize;
14
- }
15
-
16
- //TODO: Refactor this.
17
- export const MediaButton = JSX<MediaButtonProps>(({ buttonSize = 'default', icon, ...rest }) => {
18
- const { href } = rest;
19
-
20
- const { iconMapped, label } = findIconByHref(href);
21
-
22
- const iconCustom = getFilteredIcon(icon) ?? iconMapped;
23
-
24
- return (
25
- <Button
26
- className={style(
27
- 'border border-solid hover:border-transparent',
28
- 'group-data-primary:border-main-divider',
29
- 'hover:bg-primary-main hover:text-black',
30
- 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover',
31
- 'group-data-gray:border-green',
32
- 'p-m min-h-14 group/media flex items-center justify-center box-border',
33
- buttonSizeStyle[buttonSize],
34
- )}
35
- aria-label={label}
36
- rel="noopener noreferrer"
37
- target="_blank"
38
- {...rest}
39
- >
40
- <Img
41
- image={iconCustom}
42
- imageClassName="group-hover/media:text-white"
43
- width="24"
44
- height="24"
45
- />
46
- </Button>
47
- );
48
- });
49
-
50
- const getFilteredIcon = (icon: Picture | undefined) => (icon?.src || icon?.icon ? icon : undefined);
@@ -1,6 +0,0 @@
1
- import { ButtonSize } from './MediaButton';
2
-
3
- export const buttonSizeStyle: { [key in ButtonSize]: string } = {
4
- default: 'w-14 h-14',
5
- stretched: 'flex-1 h-14',
6
- };
@@ -1,12 +0,0 @@
1
- {
2
- "icon": {
3
- "icon": "SignDocsIcon",
4
- "format": "webp",
5
- "size": {
6
- "width": 365,
7
- "height": 195
8
- }
9
- },
10
- "title": "Заголовок",
11
- "description": "Описание"
12
- }
@@ -1,25 +0,0 @@
1
- import '../../setup-fixture';
2
-
3
- import type { Picture } from '../../model/Picture';
4
- import { CarouselEventCard } from './CarouselEventCard';
5
- import type { CarouselEventCardContent } from './CarouselEventCardContent';
6
-
7
- const image: Picture = {
8
- src: 'event.png',
9
- format: 'webp',
10
- title: 'business',
11
- };
12
-
13
- export const CAROUSEL_EVENT_CARD: CarouselEventCardContent = {
14
- title: 'ПЕРСОНАЛ В АПК',
15
- description: '22-23 ноября 2022',
16
- icon: image,
17
- };
18
-
19
- export default {
20
- default: (
21
- <div className="container grid grid-cols-12">
22
- <CarouselEventCard className="col-span-4" {...CAROUSEL_EVENT_CARD} />
23
- </div>
24
- ),
25
- };
@@ -1,31 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import type { UniBlockProps } from '../../model/JSXBlock';
3
- import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
- import { Img } from '../../ui-kit/Img/Img';
5
- import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
6
- import type { CarouselEventCardContent } from './CarouselEventCardContent';
7
- import { Headline } from '../Headline/Headline';
8
-
9
- export interface CarouselEventCardProps extends CarouselEventCardContent, UniBlockProps {}
10
-
11
- export const CarouselEventCard = JSX<CarouselEventCardProps>(
12
- ({ className = '', icon, title, description, href, target, ...rest }) => {
13
- return (
14
- <BlockWrapper className={className} defaultPadding="p-0" {...rest}>
15
- <LinkWrapper className="flex flex-col" href={href} target={target}>
16
- {icon?.icon ? <Img image={icon} /> : null}
17
- {icon?.src ? <Img image={icon} /> : null}
18
- <div className="p-s">
19
- <Headline
20
- title={title}
21
- description={description}
22
- headlineVersion="XS"
23
- isEmbedded={true}
24
- align="text-left"
25
- />
26
- </div>
27
- </LinkWrapper>
28
- </BlockWrapper>
29
- );
30
- },
31
- );
@@ -1,13 +0,0 @@
1
- import type { DescriptionProps, TitleProps } from '../../model/HeadlineType';
2
- import type { UniBlockContent } from '../../model/JSXBlock';
3
- import type { LinkCommonProps } from '../../model/LinkProps';
4
- import type { IconProps } from '../../model/Picture';
5
-
6
- /**
7
- * @title Карточка мероприятия в карусели
8
- */
9
- export type CarouselEventCardContent = UniBlockContent &
10
- TitleProps &
11
- DescriptionProps &
12
- LinkCommonProps &
13
- IconProps;
@@ -1,50 +0,0 @@
1
- import { JSX } from '@redneckz/uni-jsx';
2
- import type { Picture } from '../../model/Picture';
3
- import { Button } from '../../ui-kit/Button/Button';
4
- import { ButtonContent } from '../../ui-kit/Button/ButtonContent';
5
- import { Img } from '../../ui-kit/Img/Img';
6
- import { style } from '../../utils/style';
7
- import { buttonSizeStyle } from './buttonSizeStyle';
8
- import { findIconByHref } from './findIconByHref';
9
-
10
- export type ButtonSize = 'default' | 'stretched';
11
-
12
- interface MediaButtonProps extends ButtonContent {
13
- buttonSize?: ButtonSize;
14
- }
15
-
16
- //TODO: Refactor this.
17
- export const MediaButton = JSX<MediaButtonProps>(({ buttonSize = 'default', icon, ...rest }) => {
18
- const { href } = rest;
19
-
20
- const { iconMapped, label } = findIconByHref(href);
21
-
22
- const iconCustom = getFilteredIcon(icon) ?? iconMapped;
23
-
24
- return (
25
- <Button
26
- className={style(
27
- 'border border-solid hover:border-transparent',
28
- 'group-data-primary:border-main-divider',
29
- 'hover:bg-primary-main hover:text-black',
30
- 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover',
31
- 'group-data-gray:border-green',
32
- 'p-m min-h-14 group/media flex items-center justify-center box-border',
33
- buttonSizeStyle[buttonSize],
34
- )}
35
- aria-label={label}
36
- rel="noopener noreferrer"
37
- target="_blank"
38
- {...rest}
39
- >
40
- <Img
41
- image={iconCustom}
42
- imageClassName="group-hover/media:text-white"
43
- width="24"
44
- height="24"
45
- />
46
- </Button>
47
- );
48
- });
49
-
50
- const getFilteredIcon = (icon: Picture | undefined) => (icon?.src || icon?.icon ? icon : undefined);
@@ -1,6 +0,0 @@
1
- import { ButtonSize } from './MediaButton';
2
-
3
- export const buttonSizeStyle: { [key in ButtonSize]: string } = {
4
- default: 'w-14 h-14',
5
- stretched: 'flex-1 h-14',
6
- };