@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
@@ -8,6 +8,7 @@
8
8
  },
9
9
  "productBlock": {
10
10
  "title": "Продуктовая галерея",
11
+ "headlineVersion": "XXL",
11
12
  "image": {
12
13
  "format": "webp",
13
14
  "size": {
@@ -17,20 +18,22 @@
17
18
  },
18
19
  "description": "Описание",
19
20
  "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
21
+ "isDotted": true,
22
+ "benefitsVersion": "normal",
20
23
  "benefits": [
21
24
  {
22
25
  "icon": {
23
26
  "icon": "ActualBalanceIcon"
24
27
  },
25
- "label": "Денежное преимущество",
26
- "description": "эмпирическая выгода"
28
+ "label": "Преимущество №1",
29
+ "description": "Описание"
27
30
  },
28
31
  {
29
32
  "icon": {
30
33
  "icon": "BankIcon"
31
34
  },
32
- "label": "Возврат %",
33
- "description": "при пополнении счёта"
35
+ "label": "Преимущество №2",
36
+ "description": "Описание"
34
37
  }
35
38
  ]
36
39
  }
@@ -42,6 +45,7 @@
42
45
  },
43
46
  "productBlock": {
44
47
  "title": "Продуктовая галерея",
48
+ "headlineVersion": "XXL",
45
49
  "image": {
46
50
  "format": "webp",
47
51
  "size": {
@@ -51,6 +55,8 @@
51
55
  },
52
56
  "description": "Описание",
53
57
  "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
58
+ "isDotted": true,
59
+ "benefitsVersion": "normal",
54
60
  "benefits": [
55
61
  {
56
62
  "icon": {
@@ -32,7 +32,7 @@ const getButtonStyle = (props: ButtonContent) => {
32
32
 
33
33
  return style(
34
34
  'group/btn items-center justify-center',
35
- isWithText(props) ? withTextStyle : 'h-12 w-12',
35
+ isWithText(props) ? withTextStyle : 'h-12 w-12 m-auto',
36
36
  rounded ? 'rounded-full' : '',
37
37
  );
38
38
  };
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useCallback, useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { style } from '../../utils/style';
4
4
  import { Text } from '../Text/Text';
5
5
  import type { InputProps } from './InputProps';
@@ -23,6 +23,7 @@ export const Input = JSX<InputProps>(
23
23
  pattern,
24
24
  autoFocus = false,
25
25
  }) => {
26
+ const inputRef = useRef<HTMLInputElement | null>(null);
26
27
  const handleChange = useCallback(
27
28
  (e: { target?: { value?: string } }) => {
28
29
  onChange && onChange(e.target?.value || '');
@@ -30,6 +31,12 @@ export const Input = JSX<InputProps>(
30
31
  [onChange],
31
32
  );
32
33
 
34
+ useEffect(() => {
35
+ if (autoFocus) {
36
+ inputRef.current?.focus();
37
+ }
38
+ }, [autoFocus, inputRef]);
39
+
33
40
  const paddingStyle = children ? 'pr-3xl' : '';
34
41
  const validStyle = valid
35
42
  ? 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'
@@ -46,6 +53,7 @@ export const Input = JSX<InputProps>(
46
53
  </div>
47
54
  ) : null}
48
55
  <input
56
+ ref={inputRef}
49
57
  key={key}
50
58
  className={style(
51
59
  'w-full border rounded-md text-primary-text outline-none p-m',
@@ -62,7 +70,6 @@ export const Input = JSX<InputProps>(
62
70
  onFocus={onFocus}
63
71
  onBlur={onBlur}
64
72
  pattern={pattern}
65
- autoFocus={autoFocus}
66
73
  />
67
74
  </label>
68
75
  {children}
@@ -0,0 +1,87 @@
1
+ import { useCallback, useMemo } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { Icon } from '../Icon/Icon';
3
+ import { renderPages } from './renderPages';
4
+
5
+ export const paginationBlockStyle =
6
+ 'py-m px-lg rounded-md cursor-pointer hover:bg-green-more-dark hover:text-white';
7
+
8
+ export interface PaginationProps {
9
+ currentPage: number;
10
+ onPageChange: (page: number) => void;
11
+ totalPages: number;
12
+ }
13
+
14
+ const ICON_SIZE = { width: '24', height: '24' };
15
+
16
+ export const Pagination = ({ currentPage, onPageChange, totalPages }: PaginationProps) => {
17
+ const handlePrevPage = useCallback(() => {
18
+ if (currentPage > 1) {
19
+ onPageChange(currentPage - 1);
20
+ }
21
+ }, [currentPage]);
22
+
23
+ const handleNextPage = useCallback(() => {
24
+ if (currentPage < totalPages - 1) {
25
+ onPageChange(currentPage + 1);
26
+ }
27
+ }, [currentPage, totalPages]);
28
+
29
+ const handleFirstPage = useCallback(() => onPageChange(1), []);
30
+ const handleLastPage = useCallback(() => onPageChange(totalPages), [totalPages]);
31
+
32
+ const pages = useMemo(
33
+ () =>
34
+ new Array(totalPages).fill({
35
+ currentPage,
36
+ onPageChange,
37
+ totalPages,
38
+ }),
39
+ [totalPages, currentPage],
40
+ );
41
+
42
+ return (
43
+ <div className="mt-3xl flex items-center select-none" role="navigation" aria-label="Пагинация">
44
+ <div className="flex gap-m items-center">
45
+ <div onClick={handlePrevPage}>
46
+ <Icon
47
+ name="ArrowLeftIcon"
48
+ iconVersion="black"
49
+ imageClassName={getIconStyle(currentPage === 1)}
50
+ {...ICON_SIZE}
51
+ />
52
+ </div>
53
+ <div className="flex gap-xs">
54
+ {currentPage > 1 ? (
55
+ <div onClick={handleFirstPage} className={paginationBlockStyle} aria-label="Страница 1">
56
+ 1
57
+ </div>
58
+ ) : null}
59
+ {currentPage > 4 ? <div className="py-m px-s">...</div> : null}
60
+ {pages.map(renderPages)}
61
+ {currentPage < totalPages - 3 ? <div className="py-m px-s">...</div> : null}
62
+ {currentPage < totalPages ? (
63
+ <div
64
+ onClick={handleLastPage}
65
+ className={paginationBlockStyle}
66
+ aria-label={`Страница ${totalPages}}`}
67
+ >
68
+ {totalPages}
69
+ </div>
70
+ ) : null}
71
+ </div>
72
+ <div onClick={handleNextPage}>
73
+ <Icon
74
+ className="rotate-180"
75
+ name="ArrowLeftIcon"
76
+ iconVersion="black"
77
+ imageClassName={getIconStyle(currentPage === totalPages)}
78
+ {...ICON_SIZE}
79
+ />
80
+ </div>
81
+ </div>
82
+ </div>
83
+ );
84
+ };
85
+
86
+ const getIconStyle = (condition: boolean) =>
87
+ condition ? 'opacity-20' : 'cursor-pointer hover:opacity-60';
@@ -0,0 +1,33 @@
1
+ import { paginationBlockStyle, PaginationProps } from './Pagination';
2
+ import { shouldRenderPage } from './shouldRenderPage';
3
+
4
+ export const renderPages = (pagesParams: PaginationProps, index: number) => {
5
+ const { currentPage, onPageChange, totalPages } = pagesParams;
6
+ const page = index + 1;
7
+ if (page === currentPage) {
8
+ return (
9
+ <div
10
+ key={String(index)}
11
+ aria-current="true"
12
+ className="py-m px-lg bg-green-light text-white rounded-md"
13
+ >
14
+ {page}
15
+ </div>
16
+ );
17
+ }
18
+
19
+ if (page !== 1 && page !== totalPages && shouldRenderPage(page, currentPage, totalPages)) {
20
+ return (
21
+ <div
22
+ key={String(index)}
23
+ onClick={() => onPageChange(page)}
24
+ className={paginationBlockStyle}
25
+ aria-label={`Страница ${page}`}
26
+ >
27
+ {page}
28
+ </div>
29
+ );
30
+ }
31
+
32
+ return null;
33
+ };
@@ -0,0 +1,8 @@
1
+ const checkPageRange = (page: number, currentPage: number, totalPages: number) =>
2
+ (currentPage <= 3 && page <= currentPage + 3) ||
3
+ (currentPage >= totalPages - 1 && page >= totalPages - 4);
4
+
5
+ export const shouldRenderPage = (page: number, currentPage: number, totalPages: number) =>
6
+ (page < currentPage && page >= currentPage - 2) ||
7
+ (page <= currentPage + 2 && page > currentPage) ||
8
+ checkPageRange(page, currentPage, totalPages);
@@ -1,6 +1,3 @@
1
- import { compareBy, desc } from '../../utils/Comparator';
2
- import { jaroWinklerDistance } from '../../utils/jaroWinklerDistance';
3
- import { zip } from '../../utils/zip';
4
1
  import type { Option } from './Option';
5
2
 
6
3
  export const filterOptions = (options: Option[], query: string | undefined): Option[] => {
@@ -8,12 +5,5 @@ export const filterOptions = (options: Option[], query: string | undefined): Opt
8
5
  return options;
9
6
  }
10
7
 
11
- const ranking = options
12
- .map((_) => _.text?.toLowerCase())
13
- .map(jaroWinklerDistance(query?.trim().toLowerCase()));
14
-
15
- return zip(options, ranking)
16
- .filter(([, rank]) => rank >= 0.5)
17
- .sort(desc(compareBy(([, rank]) => rank)))
18
- .map(([option]) => option);
8
+ return options.filter((_) => _.text?.toLocaleLowerCase().includes(query?.trim().toLocaleLowerCase()))
19
9
  };
@@ -0,0 +1,15 @@
1
+ export const convertTimestampToDate = (timestamp: number) => {
2
+ const date = new Date(timestamp * 1000);
3
+
4
+ let dd: string | number = date.getDate();
5
+ if (dd < 10) {
6
+ dd = '0' + dd;
7
+ }
8
+
9
+ let mm: string | number = date.getMonth() + 1;
10
+ if (mm < 10) {
11
+ mm = '0' + mm;
12
+ }
13
+
14
+ return dd + '.' + mm + '.' + date.getFullYear();
15
+ };
@@ -5,5 +5,5 @@ export async function fetchMultitudeJSON<R = unknown>(
5
5
  ): Promise<Awaited<R | null>[]> {
6
6
  const fetchPromises = urls.map((url) => fetchJSON<R>(url));
7
7
 
8
- return await Promise.all(fetchPromises);
8
+ return Promise.all(fetchPromises);
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.4",
3
+ "version": "0.14.6",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -1,7 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useSWRResource } from '../../hooks/useSWRResource';
4
- import { RegionsGrantSupportData } from '../../services/regionsGrantSupport/RegionsGrantSupportData';
4
+ import type { RegionsGrantSupportData } from '../../services/regionsGrantSupport/RegionsGrantSupportData';
5
5
  import { Button } from '../../ui-kit/Button/Button';
6
6
  import { getRegularButtonClasses } from '../../ui-kit/Button/getRegularButtonClasses';
7
7
  import { style } from '../../utils/style';
@@ -13,8 +13,8 @@ interface RegionProps {
13
13
  export const renderRegion = ({ regions, field }: RegionProps) => (
14
14
  <SelectControl
15
15
  className="w-full"
16
- label="Регион"
17
- placeholder="Выберите регион"
16
+ label="Филиал"
17
+ placeholder="Выберите филиал"
18
18
  isSearch={true}
19
19
  options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
20
20
  {...withValidator(field('region'), defaultValidator)}
@@ -16,8 +16,8 @@ export const renderRegionDepartment = ({ regions, branches, field }: RegionDepar
16
16
  <div className="@xl:flex @xl:justify-between @xl:gap-lg @xl:mb-2xl @xl:border-none @xl:pb-0">
17
17
  <div className="@xl:w-1/2">
18
18
  <SelectControl
19
- label="Регион"
20
- placeholder="Выберите регион"
19
+ label="Филиал"
20
+ placeholder="Выберите филиал"
21
21
  isSearch={true}
22
22
  options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
23
23
  {...withValidator(field('region'), defaultValidator)}
@@ -2,10 +2,10 @@ import { FormFieldRegisterer } from '../../hooks/useForm';
2
2
  import { withValidator } from '../../validation/withValidator';
3
3
  import { InputControl } from './InputControl';
4
4
  import { PhoneInputControl } from './PhoneInputControl';
5
- import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
6
- import type { WedFormState } from './WedFormState';
7
5
  import { SelectControl } from './SelectControl';
6
+ import type { WedFormState } from './WedFormState';
8
7
  import type { Select } from './models';
8
+ import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
9
9
 
10
10
  export const renderWedDataOrganization = (
11
11
  field: FormFieldRegisterer<WedFormState>,
@@ -15,11 +15,11 @@ export const renderWedDataOrganization = (
15
15
 
16
16
  return (
17
17
  <div>
18
- {regions.length && isCurrencyControl ? (
18
+ {isCurrencyControl ? (
19
19
  <SelectControl
20
20
  className="mb-s"
21
- label="Регион"
22
- placeholder="Выберите регион"
21
+ label="Филиал"
22
+ placeholder="Выберите филиал"
23
23
  isSearch={true}
24
24
  options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
25
25
  {...withValidator(field('region'), defaultValidator)}
@@ -4,6 +4,7 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
4
  import { Heading } from '../../ui-kit/Heading/Heading';
5
5
  import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon';
6
6
  import { Img } from '../../ui-kit/Img/Img';
7
+ import { Text } from '../../ui-kit/Text/Text';
7
8
  import type {
8
9
  BenefitBlockItemProps,
9
10
  BenefitsBlockContent,
@@ -12,19 +13,19 @@ import type {
12
13
  TextBenefitDef,
13
14
  } from './BenefitsBlockContent';
14
15
  import { defaultIconSize } from './defaultIconSize';
15
- import { style } from '../../utils/style';
16
- import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
16
+ import { AlignStyles } from '../../model/AlignStyles';
17
17
 
18
18
  interface BenefitsBlockProps extends BenefitsBlockContent, UniBlockProps {}
19
19
 
20
20
  export const BenefitsBlock = JSX<BenefitsBlockProps>(
21
21
  ({ className = '', title, benefitList, ...rest }) => (
22
- <BlockWrapper className={style('space-y-x', className)} defaultPadding="p-6xl" {...rest}>
23
- {title ? (
24
- <Heading headingType="h3" as="h2" className="text-left sm:text-center" title={title} />
25
- ) : null}
22
+ <BlockWrapper className={className} defaultPadding="p-6xl" {...rest}>
23
+ {title ? <Heading headingType="h3" as="h2" className={AlignStyles} title={title} /> : null}
26
24
  {benefitList?.length ? (
27
- <div className="flex flex-wrap w-full sm:justify-center mt-xl gap-5xl" role="list">
25
+ <div
26
+ className="flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl"
27
+ role="list"
28
+ >
28
29
  {benefitList.map(renderBenefit)}
29
30
  </div>
30
31
  ) : null}
@@ -35,7 +36,7 @@ export const BenefitsBlock = JSX<BenefitsBlockProps>(
35
36
  const renderBenefit = (benefit: BenefitBlockItemProps, i: number) => (
36
37
  <div
37
38
  key={String(i)}
38
- className="flex gap-m items-center md:basis-1/2 md:max-w-[500px]"
39
+ className="flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]"
39
40
  role="listitem"
40
41
  >
41
42
  {benefit?.icon?.icon ? (
@@ -48,7 +49,7 @@ const renderBenefit = (benefit: BenefitBlockItemProps, i: number) => (
48
49
  ) : null}
49
50
  {benefit?.icon?.src ? <Img className="shrink-0" image={benefit.icon} /> : null}
50
51
  {benefit?.label ? (
51
- <div className="sm:h-full">
52
+ <div className="@sm:h-full">
52
53
  <Heading headingType="h6">{benefit.label}</Heading>
53
54
  {renderDescription(benefit.description)}
54
55
  </div>
@@ -60,7 +61,7 @@ const renderDescription = (description: DescriptionDef | undefined) => {
60
61
  const benefitType = description?.benefitType || null;
61
62
 
62
63
  return description && benefitType ? (
63
- <div className="mt-2xs sm:mt-xs">
64
+ <div className="mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80">
64
65
  {benefitType === 'list'
65
66
  ? renderListBenefit(description as ListBenefitDef)
66
67
  : renderTextBenefit(description as TextBenefitDef)}
@@ -70,13 +71,13 @@ const renderDescription = (description: DescriptionDef | undefined) => {
70
71
 
71
72
  const renderTextBenefit = (description?: TextBenefitDef) =>
72
73
  description?.name ? (
73
- <Paragraph
74
- font="font-light"
74
+ <Text
75
75
  size="text-l"
76
- color="text-secondary-text group-data-secondary:text-white"
76
+ color="text-secondary-text group-data-secondary:text-white/80"
77
+ font="font-light"
77
78
  >
78
79
  {description.name}
79
- </Paragraph>
80
+ </Text>
80
81
  ) : null;
81
82
 
82
83
  const renderListBenefit = (description?: ListBenefitDef) => {
@@ -85,14 +86,15 @@ const renderListBenefit = (description?: ListBenefitDef) => {
85
86
  return description?.items && description.items.length > 0 ? (
86
87
  <ul className={listStyleType}>
87
88
  {description.items.map((_, i) => (
88
- <Paragraph
89
- key={`benefitListItem-${i}`}
90
- font="font-light"
91
- size="text-l"
92
- color="text-secondary-text group-data-secondary:text-white"
93
- >
94
- {_}
95
- </Paragraph>
89
+ <li key={`benefitListItem-${i}`}>
90
+ <Text
91
+ size="text-l"
92
+ color="text-secondary-text group-data-secondary:text-white/80"
93
+ font="font-light"
94
+ >
95
+ {_}
96
+ </Text>
97
+ </li>
96
98
  ))}
97
99
  </ul>
98
100
  ) : null;
@@ -11,7 +11,6 @@ import { Carousel } from './Carousel/Carousel';
11
11
  import { CarouselBankHistoryCard } from './CarouselBankHistoryCard/CarouselBankHistoryCard';
12
12
  import { CarouselCard } from './CarouselCard/CarouselCard';
13
13
  import { CarouselCatalogCard } from './CarouselCatalogCard/CarouselCatalogCard';
14
- import { CarouselEventCard } from './CarouselEventCard/CarouselEventCard';
15
14
  import { CarouselInvestmentCard } from './CarouselInvestmentCard/CarouselInvestmentCard';
16
15
  import { CarouselLinks } from './CarouselLinks/CarouselLinks';
17
16
  import { CarouselProductCard } from './CarouselProductCard/CarouselProductCard';
@@ -22,6 +21,7 @@ import { CarouselTariffsCard } from './CarouselTariffsCard/CarouselTariffsCard';
22
21
  import { ComparisonTable } from './ComparisonTable/ComparisonTable';
23
22
  import { ContactsBlock } from './ContactsBlock/ContactsBlock';
24
23
  import { DepositFiltration } from './DepositFiltration/DepositFiltration';
24
+ import { Depository } from './Depository/Depository';
25
25
  import { ErrorBlock } from './ErrorBlock/ErrorBlock';
26
26
  import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
27
27
  import { Footer } from './Footer/Footer';
@@ -70,7 +70,6 @@ export const Blocks: BlocksRegistry = {
70
70
  CarouselBankHistoryCard,
71
71
  CarouselCard,
72
72
  CarouselCatalogCard,
73
- CarouselEventCard,
74
73
  CarouselInvestmentCard,
75
74
  CarouselLinks,
76
75
  CarouselProductCard,
@@ -80,6 +79,7 @@ export const Blocks: BlocksRegistry = {
80
79
  CarouselTariffsCard,
81
80
  ComparisonTable,
82
81
  ContactsBlock,
82
+ Depository,
83
83
  DepositFiltration,
84
84
  ErrorBlock,
85
85
  ExchangeRateTile,
@@ -2,6 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { FormFieldRegisterer, useForm } from '../../hooks/useForm';
3
3
  import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
4
4
  import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
5
+ import { Text } from '../../ui-kit/Text/Text';
5
6
  import { style } from '../../utils/style';
6
7
  import type { BusinessDepositCalculatorProps } from './CalculatorContent';
7
8
  import { CalculatorValueBlock } from './CalculatorValueBlock';
@@ -28,7 +29,6 @@ export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
28
29
  daysValue: BUSINESS_DEFAULT_DAYS,
29
30
  isReplenished: false,
30
31
  isPartialWithdrawal: false,
31
- isSmallBusiness: false,
32
32
  isMonthlyInterestPayment: false,
33
33
  });
34
34
 
@@ -55,13 +55,15 @@ export const BusinessDepositCalculatorForm = JSX<BusinessDepositCalculatorProp>(
55
55
  ...field('daysValue'),
56
56
  value: calculatorParams.daysValue,
57
57
  })}
58
- {renderBusinessDepositParamsForm(calculatorParams, field)}
59
- {renderInterestPayment({
60
- title: 'Выплата процентов',
61
- orientation: 'vertical',
62
- ...field('isMonthlyInterestPayment'),
63
- radioGroupClassName: 'sm:flex-col',
64
- })}
58
+ <div className="flex flex-col sm:flex-row gap-y-4 gap-x-14">
59
+ {renderBusinessDepositParamsForm(calculatorParams, field)}
60
+ {renderInterestPayment({
61
+ title: 'Выплата процентов',
62
+ orientation: 'vertical',
63
+ ...field('isMonthlyInterestPayment'),
64
+ radioGroupClassName: 'sm:flex-col',
65
+ })}
66
+ </div>
65
67
  </div>
66
68
  <div className="border-b border-main-divider md:hidden"></div>
67
69
  {renderRate({
@@ -85,24 +87,24 @@ const renderBusinessDepositParamsForm = (
85
87
  calculatorParams: BusinessDepositCalculatorParams,
86
88
  field: FormFieldRegisterer<BusinessDepositCalculatorUserInputParams>,
87
89
  ) => (
88
- <div className="flex flex-col gap-y-xl sm:gap-y-s">
89
- <Checkbox
90
- text="Пополнение"
91
- disabled={calculatorParams.isDisabledOperatingDeposit}
92
- {...field('isReplenished')}
93
- value={calculatorParams.isReplenished}
94
- />
95
- <Checkbox
96
- disabled={calculatorParams.isDisabledOperatingDeposit}
97
- text="Частичное снятие"
98
- {...field('isPartialWithdrawal')}
99
- value={calculatorParams.isPartialWithdrawal}
100
- />
101
- <Checkbox
102
- text="ИП / малое предприятие"
103
- {...field('isSmallBusiness')}
104
- value={calculatorParams.isSmallBusiness}
105
- />
90
+ <div className="space-y-s">
91
+ <Text color="text-secondary-text" font="font-light">
92
+ Параметры
93
+ </Text>
94
+ <div className="flex flex-col gap-y-xl sm:gap-y-s">
95
+ <Checkbox
96
+ text="Пополнение"
97
+ disabled={calculatorParams.isDisabledOperatingDeposit}
98
+ {...field('isReplenished')}
99
+ value={calculatorParams.isReplenished}
100
+ />
101
+ <Checkbox
102
+ disabled={calculatorParams.isDisabledOperatingDeposit}
103
+ text="Частичное снятие"
104
+ {...field('isPartialWithdrawal')}
105
+ value={calculatorParams.isPartialWithdrawal}
106
+ />
107
+ </div>
106
108
  </div>
107
109
  );
108
110
 
@@ -94,7 +94,6 @@ export const DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS: BusinessDepositCalculat
94
94
  isMonthlyInterestPayment: true,
95
95
  isReplenished: false,
96
96
  isPartialWithdrawal: false,
97
- isSmallBusiness: false,
98
97
  depositeName: "Депозит 'Стабильный'",
99
98
  };
100
99
 
@@ -12,7 +12,6 @@ export interface BusinessCommonDepositParams {
12
12
  isMonthlyInterestPayment: boolean;
13
13
  isReplenished: boolean;
14
14
  isPartialWithdrawal: boolean;
15
- isSmallBusiness: boolean;
16
15
  }
17
16
  export interface BusinessDepositCalculatorSourceBookParams extends BusinessCommonDepositParams {
18
17
  minSum: number;
@@ -45,14 +44,8 @@ export const useBusinessDepositCalculatorParams = (
45
44
  userInputParams: BusinessDepositCalculatorUserInputParams,
46
45
  sourceBookDir?: string,
47
46
  ): BusinessDepositCalculatorParams => {
48
- const {
49
- daysValue,
50
- moneyValue,
51
- isPartialWithdrawal,
52
- isReplenished,
53
- isSmallBusiness,
54
- isMonthlyInterestPayment,
55
- } = userInputParams;
47
+ const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isMonthlyInterestPayment } =
48
+ userInputParams;
56
49
  const data = useCalculatorParams<BusinessDepositCalculatorData>(
57
50
  sourceBookDir || BUSINESS_DEPOSIT_CALC_DEFAULT_DIR,
58
51
  );
@@ -73,7 +66,6 @@ export const useBusinessDepositCalculatorParams = (
73
66
  data?.rateRows?.find((_) => {
74
67
  return (
75
68
  isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
76
- isSmallBusiness === _.isSmallBusiness &&
77
69
  checkIsOperatingDeposit(isOperatingDeposit, _) &&
78
70
  checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
79
71
  checkRangeByKeys(daysValue, ['minDays', 'maxDays'], _)
@@ -6,7 +6,6 @@ import { Blocks } from '../Blocks';
6
6
  import { BANK_HISTORY_CARD } from '../CarouselBankHistoryCard/CarouselBankHistoryCard.fixture';
7
7
  import { CARD, CARD_MINI, CARD_NEW } from '../CarouselCard/CarouselCard.fixture';
8
8
  import { CATALOG_CARD, CATALOG_CARD_NEW } from '../CarouselCatalogCard/CarouselCatalogCard.fixture';
9
- import { CAROUSEL_EVENT_CARD } from '../CarouselEventCard/CarouselEventCard.fixture';
10
9
  import { INVESTMENT_CARD_WITH_SINGLE_COLUMN } from '../CarouselInvestmentCard/CarouselInvestmentCard.fixture';
11
10
  import {
12
11
  PRODUCT_CARD,
@@ -228,23 +227,6 @@ export default {
228
227
  />
229
228
  </div>
230
229
  ),
231
-
232
- events: (
233
- <div className="container grid grid-cols-12">
234
- <Carousel
235
- className="col-span-12"
236
- visibleItemCount={0}
237
- block={{
238
- type: 'Carousel',
239
- blocks: new Array(6).fill({
240
- type: 'CarouselEventCard',
241
- content: CAROUSEL_EVENT_CARD,
242
- }),
243
- }}
244
- options={options}
245
- />
246
- </div>
247
- ),
248
230
  'bank-history': (
249
231
  <div className="container grid grid-cols-12">
250
232
  <Carousel
@@ -90,7 +90,6 @@ Carousel.childrenTypes = [
90
90
  'CarouselTariffsCard',
91
91
  'CarouselRichTextCard',
92
92
  'CarouselInvestmentCard',
93
- 'CarouselEventCard',
94
93
  'ProductBlock',
95
94
  ];
96
95