@redneckz/wildless-cms-uni-blocks 0.9.15 → 0.10.0

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 (664) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +385 -234
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/InputControl.d.ts +10 -0
  5. package/bundle/components/ApplicationForm/{WrapperSelect.d.ts → SelectControl.d.ts} +4 -2
  6. package/bundle/components/ApplicationForm/models.d.ts +5 -0
  7. package/bundle/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  8. package/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  9. package/{lib/components/ApplicationForm/renderSelects.d.ts → bundle/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
  10. package/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  11. package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  12. package/bundle/components/ApplicationForm/renderRegion.d.ts +12 -0
  13. package/{dist/components/ApplicationForm/renderBankOffices.d.ts → bundle/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
  14. package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  15. package/bundle/components/ApplicationForm/useForm.d.ts +14 -0
  16. package/bundle/components/ApplicationForm/validate.d.ts +1 -0
  17. package/bundle/components/Carousel/CarouselContent.d.ts +2 -0
  18. package/bundle/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  19. package/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  20. package/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  21. package/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  22. package/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  23. package/bundle/hooks/useLink.d.ts +5 -1
  24. package/bundle/services/sitemap/SitemapData.d.ts +2 -2
  25. package/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
  26. package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +2 -2
  27. package/bundle/ui-kit/Select/Select.d.ts +2 -0
  28. package/bundle/ui-kit/Sitemap/Sitemap.d.ts +2 -2
  29. package/bundle/utils/adjustHref.d.ts +1 -1
  30. package/dist/components/ApplicationForm/ApplicationForm.js +3 -3
  31. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  32. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
  33. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  34. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
  35. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  36. package/dist/components/ApplicationForm/ApplicationFormCredit.js +52 -41
  37. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  38. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
  39. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  40. package/dist/components/ApplicationForm/ApplicationFormWed.js +38 -25
  41. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  42. package/dist/components/ApplicationForm/InputControl.d.ts +10 -0
  43. package/dist/components/ApplicationForm/InputControl.js +10 -0
  44. package/dist/components/ApplicationForm/InputControl.js.map +1 -0
  45. package/{lib/components/ApplicationForm/WrapperSelect.d.ts → dist/components/ApplicationForm/SelectControl.d.ts} +4 -2
  46. package/dist/components/ApplicationForm/SelectControl.js +14 -0
  47. package/dist/components/ApplicationForm/SelectControl.js.map +1 -0
  48. package/dist/components/ApplicationForm/models.d.ts +5 -0
  49. package/dist/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  50. package/dist/components/ApplicationForm/normalizeSelected.js +5 -0
  51. package/dist/components/ApplicationForm/normalizeSelected.js.map +1 -0
  52. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  53. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +8 -0
  54. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
  55. package/{bundle/components/ApplicationForm/renderSelects.d.ts → dist/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
  56. package/dist/components/ApplicationForm/renderAcquiringRegion.js +9 -0
  57. package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
  58. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  59. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +8 -0
  60. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
  61. package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  62. package/dist/components/ApplicationForm/renderCreditDataOrganization.js +8 -0
  63. package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
  64. package/dist/components/ApplicationForm/renderRegion.d.ts +12 -0
  65. package/dist/components/ApplicationForm/renderRegion.js +8 -0
  66. package/dist/components/ApplicationForm/renderRegion.js.map +1 -0
  67. package/{lib/components/ApplicationForm/renderBankOffices.d.ts → dist/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
  68. package/dist/components/ApplicationForm/renderRegionDepartment.js +8 -0
  69. package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
  70. package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  71. package/dist/components/ApplicationForm/renderWedDataOrganization.js +8 -0
  72. package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
  73. package/dist/components/ApplicationForm/useForm.d.ts +14 -0
  74. package/dist/components/ApplicationForm/useForm.js +37 -0
  75. package/dist/components/ApplicationForm/useForm.js.map +1 -0
  76. package/dist/components/ApplicationForm/validate.d.ts +1 -0
  77. package/dist/components/ApplicationForm/validate.js +22 -0
  78. package/dist/components/ApplicationForm/validate.js.map +1 -0
  79. package/dist/components/Blocks.js +2 -0
  80. package/dist/components/Blocks.js.map +1 -1
  81. package/dist/components/Bonus/Bonus.js +5 -3
  82. package/dist/components/Bonus/Bonus.js.map +1 -1
  83. package/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
  84. package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  85. package/dist/components/Carousel/Carousel.js +4 -3
  86. package/dist/components/Carousel/Carousel.js.map +1 -1
  87. package/dist/components/Carousel/CarouselContent.d.ts +2 -0
  88. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
  89. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  90. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  91. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  92. package/dist/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  93. package/dist/components/ExchangeRateOffice/Currencies.js +12 -0
  94. package/dist/components/ExchangeRateOffice/Currencies.js.map +1 -0
  95. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  96. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +16 -0
  97. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
  98. package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  99. package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
  100. package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
  101. package/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  102. package/dist/components/ExchangeRateOffice/renderCurrencies.js +30 -0
  103. package/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
  104. package/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  105. package/dist/components/ExchangeRateOffice/renderTableHeader.js +9 -0
  106. package/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
  107. package/dist/components/Footer/TextInformationLink.js +1 -1
  108. package/dist/components/Footer/TextInformationLink.js.map +1 -1
  109. package/dist/components/RichTextBlock/RichTextBlock.js +2 -2
  110. package/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
  111. package/dist/components/TariffsTable/EmbeddableCellData.js +1 -3
  112. package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  113. package/dist/hooks/useLink.d.ts +5 -1
  114. package/dist/hooks/useLink.js +3 -2
  115. package/dist/hooks/useLink.js.map +1 -1
  116. package/dist/services/sitemap/SitemapData.d.ts +2 -2
  117. package/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
  118. package/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
  119. package/dist/ui-kit/Button/renderButtonsSection.js +2 -2
  120. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  121. package/dist/ui-kit/RichText/RichText.js +3 -2
  122. package/dist/ui-kit/RichText/RichText.js.map +1 -1
  123. package/dist/ui-kit/RichText/RichTextProps.d.ts +2 -2
  124. package/dist/ui-kit/SearchDialog/SearchDialog.d.ts +2 -2
  125. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  126. package/dist/ui-kit/Select/Select.d.ts +2 -0
  127. package/dist/ui-kit/Select/Select.js +5 -3
  128. package/dist/ui-kit/Select/Select.js.map +1 -1
  129. package/dist/ui-kit/Sitemap/Sitemap.d.ts +2 -2
  130. package/dist/ui-kit/Sitemap/Sitemap.js +3 -4
  131. package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  132. package/dist/ui-kit/TopItem/TopItem.js +1 -1
  133. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  134. package/dist/utils/adjustHref.d.ts +1 -1
  135. package/dist/utils/adjustHref.js +4 -3
  136. package/dist/utils/adjustHref.js.map +1 -1
  137. package/lib/common.css +1 -1
  138. package/lib/components/ApplicationForm/ApplicationForm.js +3 -3
  139. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  140. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
  141. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  142. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
  143. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  144. package/lib/components/ApplicationForm/ApplicationFormCredit.js +53 -42
  145. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  146. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
  147. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  148. package/lib/components/ApplicationForm/ApplicationFormWed.js +38 -25
  149. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  150. package/lib/components/ApplicationForm/InputControl.d.ts +10 -0
  151. package/lib/components/ApplicationForm/InputControl.js +8 -0
  152. package/lib/components/ApplicationForm/InputControl.js.map +1 -0
  153. package/{mobile/bundle/components/ApplicationForm/WrapperSelect.d.ts → lib/components/ApplicationForm/SelectControl.d.ts} +4 -2
  154. package/lib/components/ApplicationForm/SelectControl.js +12 -0
  155. package/lib/components/ApplicationForm/SelectControl.js.map +1 -0
  156. package/lib/components/ApplicationForm/models.d.ts +5 -0
  157. package/lib/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  158. package/lib/components/ApplicationForm/normalizeSelected.js +2 -0
  159. package/lib/components/ApplicationForm/normalizeSelected.js.map +1 -0
  160. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  161. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +5 -0
  162. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
  163. package/{mobile/bundle/components/ApplicationForm/renderSelects.d.ts → lib/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
  164. package/lib/components/ApplicationForm/renderAcquiringRegion.js +6 -0
  165. package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
  166. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  167. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +5 -0
  168. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
  169. package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  170. package/lib/components/ApplicationForm/renderCreditDataOrganization.js +5 -0
  171. package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
  172. package/lib/components/ApplicationForm/renderRegion.d.ts +12 -0
  173. package/lib/components/ApplicationForm/renderRegion.js +5 -0
  174. package/lib/components/ApplicationForm/renderRegion.js.map +1 -0
  175. package/{bundle/components/ApplicationForm/renderBankOffices.d.ts → lib/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
  176. package/lib/components/ApplicationForm/renderRegionDepartment.js +5 -0
  177. package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
  178. package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  179. package/lib/components/ApplicationForm/renderWedDataOrganization.js +5 -0
  180. package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
  181. package/lib/components/ApplicationForm/useForm.d.ts +14 -0
  182. package/lib/components/ApplicationForm/useForm.js +34 -0
  183. package/lib/components/ApplicationForm/useForm.js.map +1 -0
  184. package/lib/components/ApplicationForm/validate.d.ts +1 -0
  185. package/lib/components/ApplicationForm/validate.js +19 -0
  186. package/lib/components/ApplicationForm/validate.js.map +1 -0
  187. package/lib/components/Blocks.js +2 -0
  188. package/lib/components/Blocks.js.map +1 -1
  189. package/lib/components/Bonus/Bonus.js +5 -3
  190. package/lib/components/Bonus/Bonus.js.map +1 -1
  191. package/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
  192. package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  193. package/lib/components/Carousel/Carousel.js +4 -3
  194. package/lib/components/Carousel/Carousel.js.map +1 -1
  195. package/lib/components/Carousel/CarouselContent.d.ts +2 -0
  196. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
  197. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  198. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  199. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  200. package/lib/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  201. package/lib/components/ExchangeRateOffice/Currencies.js +10 -0
  202. package/lib/components/ExchangeRateOffice/Currencies.js.map +1 -0
  203. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  204. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.fixture.d.ts +6 -0
  205. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +14 -0
  206. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
  207. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  208. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
  209. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
  210. package/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  211. package/lib/components/ExchangeRateOffice/renderCurrencies.js +27 -0
  212. package/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
  213. package/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  214. package/lib/components/ExchangeRateOffice/renderTableHeader.js +6 -0
  215. package/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
  216. package/lib/components/Footer/TextInformationLink.js +1 -1
  217. package/lib/components/Footer/TextInformationLink.js.map +1 -1
  218. package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +3 -0
  219. package/lib/components/RichTextBlock/RichTextBlock.js +2 -2
  220. package/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
  221. package/lib/components/TariffsTable/EmbeddableCellData.js +1 -3
  222. package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  223. package/lib/hooks/useLink.d.ts +5 -1
  224. package/lib/hooks/useLink.js +3 -2
  225. package/lib/hooks/useLink.js.map +1 -1
  226. package/lib/services/sitemap/SitemapData.d.ts +2 -2
  227. package/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
  228. package/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
  229. package/lib/ui-kit/Button/renderButtonsSection.js +2 -2
  230. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  231. package/lib/ui-kit/RichText/RichText.js +3 -2
  232. package/lib/ui-kit/RichText/RichText.js.map +1 -1
  233. package/lib/ui-kit/RichText/RichTextProps.d.ts +2 -2
  234. package/lib/ui-kit/SearchDialog/SearchDialog.d.ts +2 -2
  235. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  236. package/lib/ui-kit/Select/Select.d.ts +2 -0
  237. package/lib/ui-kit/Select/Select.js +5 -3
  238. package/lib/ui-kit/Select/Select.js.map +1 -1
  239. package/lib/ui-kit/Sitemap/Sitemap.d.ts +2 -2
  240. package/lib/ui-kit/Sitemap/Sitemap.js +3 -4
  241. package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  242. package/lib/ui-kit/TopItem/TopItem.js +1 -1
  243. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  244. package/lib/utils/adjustHref.d.ts +1 -1
  245. package/lib/utils/adjustHref.js +4 -3
  246. package/lib/utils/adjustHref.js.map +1 -1
  247. package/mobile/bundle/bundle.umd.js +17 -15
  248. package/mobile/bundle/bundle.umd.min.js +1 -1
  249. package/mobile/bundle/components/ApplicationForm/InputControl.d.ts +10 -0
  250. package/{dist/components/ApplicationForm/WrapperSelect.d.ts → mobile/bundle/components/ApplicationForm/SelectControl.d.ts} +4 -2
  251. package/mobile/bundle/components/ApplicationForm/models.d.ts +5 -0
  252. package/mobile/bundle/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  253. package/mobile/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  254. package/{dist/components/ApplicationForm/renderSelects.d.ts → mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
  255. package/mobile/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  256. package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  257. package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +12 -0
  258. package/mobile/bundle/components/ApplicationForm/{renderBankOffices.d.ts → renderRegionDepartment.d.ts} +4 -2
  259. package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  260. package/mobile/bundle/components/ApplicationForm/useForm.d.ts +14 -0
  261. package/mobile/bundle/components/ApplicationForm/validate.d.ts +1 -0
  262. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +2 -0
  263. package/mobile/bundle/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  264. package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  265. package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  266. package/mobile/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  267. package/mobile/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  268. package/mobile/bundle/hooks/useLink.d.ts +5 -1
  269. package/mobile/bundle/services/sitemap/SitemapData.d.ts +2 -2
  270. package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
  271. package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +2 -2
  272. package/mobile/bundle/ui-kit/Select/Select.d.ts +2 -0
  273. package/mobile/bundle/ui-kit/Sitemap/Sitemap.d.ts +2 -2
  274. package/mobile/bundle/utils/adjustHref.d.ts +1 -1
  275. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +3 -3
  276. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  277. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
  278. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  279. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
  280. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  281. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +52 -41
  282. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  283. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
  284. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  285. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +38 -25
  286. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  287. package/mobile/dist/components/ApplicationForm/InputControl.d.ts +10 -0
  288. package/mobile/dist/components/ApplicationForm/InputControl.js +10 -0
  289. package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -0
  290. package/mobile/dist/components/ApplicationForm/SelectControl.d.ts +13 -0
  291. package/mobile/dist/components/ApplicationForm/SelectControl.js +14 -0
  292. package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -0
  293. package/mobile/dist/components/ApplicationForm/models.d.ts +5 -0
  294. package/mobile/dist/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  295. package/mobile/dist/components/ApplicationForm/normalizeSelected.js +5 -0
  296. package/mobile/dist/components/ApplicationForm/normalizeSelected.js.map +1 -0
  297. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  298. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +8 -0
  299. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
  300. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +13 -0
  301. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +9 -0
  302. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
  303. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  304. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +8 -0
  305. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
  306. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  307. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +8 -0
  308. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
  309. package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +12 -0
  310. package/mobile/dist/components/ApplicationForm/renderRegion.js +8 -0
  311. package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -0
  312. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +15 -0
  313. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +8 -0
  314. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
  315. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  316. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +8 -0
  317. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
  318. package/mobile/dist/components/ApplicationForm/useForm.d.ts +14 -0
  319. package/mobile/dist/components/ApplicationForm/useForm.js +37 -0
  320. package/mobile/dist/components/ApplicationForm/useForm.js.map +1 -0
  321. package/mobile/dist/components/ApplicationForm/validate.d.ts +1 -0
  322. package/mobile/dist/components/ApplicationForm/validate.js +22 -0
  323. package/mobile/dist/components/ApplicationForm/validate.js.map +1 -0
  324. package/mobile/dist/components/Bonus/Bonus.js +5 -3
  325. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  326. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
  327. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  328. package/mobile/dist/components/Carousel/Carousel.js +4 -3
  329. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  330. package/mobile/dist/components/Carousel/CarouselContent.d.ts +2 -0
  331. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
  332. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  333. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  334. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  335. package/mobile/dist/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  336. package/mobile/dist/components/ExchangeRateOffice/Currencies.js +12 -0
  337. package/mobile/dist/components/ExchangeRateOffice/Currencies.js.map +1 -0
  338. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  339. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +16 -0
  340. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
  341. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  342. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
  343. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
  344. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  345. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js +30 -0
  346. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
  347. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  348. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js +9 -0
  349. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
  350. package/mobile/dist/components/Footer/TextInformationLink.js +1 -1
  351. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
  352. package/mobile/dist/components/RichTextBlock/RichTextBlock.js +2 -2
  353. package/mobile/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
  354. package/mobile/dist/hooks/useLink.d.ts +5 -1
  355. package/mobile/dist/hooks/useLink.js +3 -2
  356. package/mobile/dist/hooks/useLink.js.map +1 -1
  357. package/mobile/dist/services/sitemap/SitemapData.d.ts +2 -2
  358. package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
  359. package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
  360. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -2
  361. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  362. package/mobile/dist/ui-kit/RichText/RichText.js +3 -2
  363. package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
  364. package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +2 -2
  365. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.d.ts +2 -2
  366. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  367. package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
  368. package/mobile/dist/ui-kit/Select/Select.js +5 -3
  369. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  370. package/mobile/dist/ui-kit/Sitemap/Sitemap.d.ts +2 -2
  371. package/mobile/dist/ui-kit/Sitemap/Sitemap.js +3 -4
  372. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  373. package/mobile/dist/ui-kit/TopItem/TopItem.js +1 -1
  374. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  375. package/mobile/dist/utils/adjustHref.d.ts +1 -1
  376. package/mobile/dist/utils/adjustHref.js +4 -3
  377. package/mobile/dist/utils/adjustHref.js.map +1 -1
  378. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +3 -3
  379. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  380. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
  381. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  382. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
  383. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  384. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +53 -42
  385. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  386. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
  387. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  388. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +38 -25
  389. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  390. package/mobile/lib/components/ApplicationForm/InputControl.d.ts +10 -0
  391. package/mobile/lib/components/ApplicationForm/InputControl.js +8 -0
  392. package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -0
  393. package/mobile/lib/components/ApplicationForm/SelectControl.d.ts +13 -0
  394. package/mobile/lib/components/ApplicationForm/SelectControl.js +12 -0
  395. package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -0
  396. package/mobile/lib/components/ApplicationForm/models.d.ts +5 -0
  397. package/mobile/lib/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  398. package/mobile/lib/components/ApplicationForm/normalizeSelected.js +2 -0
  399. package/mobile/lib/components/ApplicationForm/normalizeSelected.js.map +1 -0
  400. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  401. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +5 -0
  402. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
  403. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +13 -0
  404. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +6 -0
  405. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
  406. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  407. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +5 -0
  408. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
  409. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  410. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +5 -0
  411. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
  412. package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +12 -0
  413. package/mobile/lib/components/ApplicationForm/renderRegion.js +5 -0
  414. package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -0
  415. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +15 -0
  416. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +5 -0
  417. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
  418. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  419. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +5 -0
  420. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
  421. package/mobile/lib/components/ApplicationForm/useForm.d.ts +14 -0
  422. package/mobile/lib/components/ApplicationForm/useForm.js +34 -0
  423. package/mobile/lib/components/ApplicationForm/useForm.js.map +1 -0
  424. package/mobile/lib/components/ApplicationForm/validate.d.ts +1 -0
  425. package/mobile/lib/components/ApplicationForm/validate.js +19 -0
  426. package/mobile/lib/components/ApplicationForm/validate.js.map +1 -0
  427. package/mobile/lib/components/Bonus/Bonus.js +5 -3
  428. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  429. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
  430. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  431. package/mobile/lib/components/Carousel/Carousel.js +4 -3
  432. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  433. package/mobile/lib/components/Carousel/CarouselContent.d.ts +2 -0
  434. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
  435. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  436. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  437. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  438. package/mobile/lib/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  439. package/mobile/lib/components/ExchangeRateOffice/Currencies.js +10 -0
  440. package/mobile/lib/components/ExchangeRateOffice/Currencies.js.map +1 -0
  441. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  442. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +14 -0
  443. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
  444. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  445. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
  446. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
  447. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  448. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js +27 -0
  449. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
  450. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  451. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js +6 -0
  452. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
  453. package/mobile/lib/components/Footer/TextInformationLink.js +1 -1
  454. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
  455. package/mobile/lib/components/RichTextBlock/RichTextBlock.js +2 -2
  456. package/mobile/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
  457. package/mobile/lib/hooks/useLink.d.ts +5 -1
  458. package/mobile/lib/hooks/useLink.js +3 -2
  459. package/mobile/lib/hooks/useLink.js.map +1 -1
  460. package/mobile/lib/services/sitemap/SitemapData.d.ts +2 -2
  461. package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
  462. package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
  463. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -2
  464. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  465. package/mobile/lib/ui-kit/RichText/RichText.js +3 -2
  466. package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
  467. package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +2 -2
  468. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.d.ts +2 -2
  469. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  470. package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
  471. package/mobile/lib/ui-kit/Select/Select.js +5 -3
  472. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  473. package/mobile/lib/ui-kit/Sitemap/Sitemap.d.ts +2 -2
  474. package/mobile/lib/ui-kit/Sitemap/Sitemap.js +3 -4
  475. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  476. package/mobile/lib/ui-kit/TopItem/TopItem.js +1 -1
  477. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  478. package/mobile/lib/utils/adjustHref.d.ts +1 -1
  479. package/mobile/lib/utils/adjustHref.js +4 -3
  480. package/mobile/lib/utils/adjustHref.js.map +1 -1
  481. package/mobile/src/common.css +24 -5
  482. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
  483. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +3 -3
  484. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +52 -102
  485. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +38 -109
  486. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +75 -64
  487. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +44 -31
  488. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +43 -93
  489. package/mobile/src/components/ApplicationForm/InputControl.tsx +35 -0
  490. package/mobile/src/components/ApplicationForm/SelectControl.tsx +54 -0
  491. package/mobile/src/components/ApplicationForm/models.ts +6 -0
  492. package/mobile/src/components/ApplicationForm/normalizeSelected.ts +4 -0
  493. package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +60 -0
  494. package/{src/components/ApplicationForm/renderSelects.tsx → mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx} +22 -6
  495. package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +60 -0
  496. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +76 -0
  497. package/mobile/src/components/ApplicationForm/renderRegion.tsx +36 -0
  498. package/{src/components/ApplicationForm/renderBankOffices.tsx → mobile/src/components/ApplicationForm/renderRegionDepartment.tsx} +16 -7
  499. package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +68 -0
  500. package/mobile/src/components/ApplicationForm/useForm.ts +65 -0
  501. package/mobile/src/components/ApplicationForm/validate.ts +22 -0
  502. package/mobile/src/components/Bonus/Bonus.tsx +12 -7
  503. package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
  504. package/mobile/src/components/Carousel/Carousel.example.json +2 -1
  505. package/mobile/src/components/Carousel/Carousel.tsx +6 -2
  506. package/mobile/src/components/Carousel/CarouselContent.ts +2 -0
  507. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +5 -10
  508. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
  509. package/mobile/src/components/ExchangeRateOffice/Currencies.ts +8 -0
  510. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +32 -0
  511. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +60 -0
  512. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.ui.json +1 -0
  513. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +36 -0
  514. package/mobile/src/components/ExchangeRateOffice/renderCurrencies.tsx +73 -0
  515. package/mobile/src/components/ExchangeRateOffice/renderTableHeader.tsx +11 -0
  516. package/mobile/src/components/Footer/TextInformationLink.tsx +1 -1
  517. package/mobile/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
  518. package/mobile/src/hooks/useLink.ts +9 -2
  519. package/mobile/src/services/sitemap/SitemapData.ts +2 -2
  520. package/mobile/src/ui-kit/Button/getRegularButtonClasses.ts +1 -1
  521. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
  522. package/mobile/src/ui-kit/RichText/RichText.tsx +5 -2
  523. package/mobile/src/ui-kit/RichText/RichTextProps.ts +2 -2
  524. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +5 -5
  525. package/mobile/src/ui-kit/Select/Select.tsx +19 -4
  526. package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +6 -7
  527. package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
  528. package/mobile/src/utils/adjustHref.ts +16 -11
  529. package/package.json +2 -2
  530. package/src/common.css +24 -5
  531. package/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
  532. package/src/components/ApplicationForm/ApplicationForm.tsx +3 -3
  533. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +52 -102
  534. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +38 -109
  535. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +75 -64
  536. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +44 -31
  537. package/src/components/ApplicationForm/ApplicationFormWed.tsx +43 -93
  538. package/src/components/ApplicationForm/InputControl.tsx +35 -0
  539. package/src/components/ApplicationForm/SelectControl.tsx +54 -0
  540. package/src/components/ApplicationForm/models.ts +6 -0
  541. package/src/components/ApplicationForm/normalizeSelected.ts +4 -0
  542. package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +60 -0
  543. package/{mobile/src/components/ApplicationForm/renderSelects.tsx → src/components/ApplicationForm/renderAcquiringRegion.tsx} +22 -6
  544. package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +60 -0
  545. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +76 -0
  546. package/src/components/ApplicationForm/renderRegion.tsx +36 -0
  547. package/{mobile/src/components/ApplicationForm/renderBankOffices.tsx → src/components/ApplicationForm/renderRegionDepartment.tsx} +16 -7
  548. package/src/components/ApplicationForm/renderWedDataOrganization.tsx +68 -0
  549. package/src/components/ApplicationForm/useForm.ts +65 -0
  550. package/src/components/ApplicationForm/validate.ts +22 -0
  551. package/src/components/Blocks.ts +2 -0
  552. package/src/components/Bonus/Bonus.tsx +12 -7
  553. package/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
  554. package/src/components/Carousel/Carousel.example.json +2 -1
  555. package/src/components/Carousel/Carousel.fixture.tsx +2 -1
  556. package/src/components/Carousel/Carousel.tsx +6 -2
  557. package/src/components/Carousel/CarouselContent.ts +2 -0
  558. package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +5 -10
  559. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +4 -2
  560. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
  561. package/src/components/ExchangeRateOffice/Currencies.ts +8 -0
  562. package/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +32 -0
  563. package/src/components/ExchangeRateOffice/ExchangeRateOffice.fixture.tsx +78 -0
  564. package/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +60 -0
  565. package/src/components/ExchangeRateOffice/ExchangeRateOffice.ui.json +1 -0
  566. package/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +36 -0
  567. package/src/components/ExchangeRateOffice/renderCurrencies.tsx +73 -0
  568. package/src/components/ExchangeRateOffice/renderTableHeader.tsx +11 -0
  569. package/src/components/Footer/TextInformationLink.tsx +1 -1
  570. package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +22 -0
  571. package/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
  572. package/src/components/TariffsTable/EmbeddableCellData.tsx +1 -4
  573. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +14 -0
  574. package/src/hooks/useLink.ts +9 -2
  575. package/src/services/sitemap/SitemapData.ts +2 -2
  576. package/src/ui-kit/Button/getRegularButtonClasses.ts +1 -1
  577. package/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
  578. package/src/ui-kit/RichText/RichText.tsx +5 -2
  579. package/src/ui-kit/RichText/RichTextProps.ts +2 -2
  580. package/src/ui-kit/SearchDialog/SearchDialog.tsx +5 -5
  581. package/src/ui-kit/Select/Select.tsx +19 -4
  582. package/src/ui-kit/Sitemap/Sitemap.tsx +6 -7
  583. package/src/ui-kit/TopItem/TopItem.tsx +1 -1
  584. package/src/utils/adjustHref.ts +16 -11
  585. package/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  586. package/bundle/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  587. package/bundle/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  588. package/dist/components/ApplicationForm/WrapperSelect.js +0 -13
  589. package/dist/components/ApplicationForm/WrapperSelect.js.map +0 -1
  590. package/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  591. package/dist/components/ApplicationForm/normalizeSelectedRegion.js +0 -5
  592. package/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
  593. package/dist/components/ApplicationForm/renderBankOffices.js +0 -7
  594. package/dist/components/ApplicationForm/renderBankOffices.js.map +0 -1
  595. package/dist/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  596. package/dist/components/ApplicationForm/renderDataOrganization.js +0 -7
  597. package/dist/components/ApplicationForm/renderDataOrganization.js.map +0 -1
  598. package/dist/components/ApplicationForm/renderSelects.js +0 -8
  599. package/dist/components/ApplicationForm/renderSelects.js.map +0 -1
  600. package/dist/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  601. package/dist/components/ApplicationForm/useFormHandlers.js +0 -11
  602. package/dist/components/ApplicationForm/useFormHandlers.js.map +0 -1
  603. package/lib/components/ApplicationForm/WrapperSelect.js +0 -11
  604. package/lib/components/ApplicationForm/WrapperSelect.js.map +0 -1
  605. package/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  606. package/lib/components/ApplicationForm/normalizeSelectedRegion.js +0 -2
  607. package/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
  608. package/lib/components/ApplicationForm/renderBankOffices.js +0 -4
  609. package/lib/components/ApplicationForm/renderBankOffices.js.map +0 -1
  610. package/lib/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  611. package/lib/components/ApplicationForm/renderDataOrganization.js +0 -4
  612. package/lib/components/ApplicationForm/renderDataOrganization.js.map +0 -1
  613. package/lib/components/ApplicationForm/renderSelects.js +0 -5
  614. package/lib/components/ApplicationForm/renderSelects.js.map +0 -1
  615. package/lib/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  616. package/lib/components/ApplicationForm/useFormHandlers.js +0 -8
  617. package/lib/components/ApplicationForm/useFormHandlers.js.map +0 -1
  618. package/mobile/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  619. package/mobile/bundle/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  620. package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  621. package/mobile/dist/components/ApplicationForm/WrapperSelect.d.ts +0 -11
  622. package/mobile/dist/components/ApplicationForm/WrapperSelect.js +0 -13
  623. package/mobile/dist/components/ApplicationForm/WrapperSelect.js.map +0 -1
  624. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  625. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js +0 -5
  626. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
  627. package/mobile/dist/components/ApplicationForm/renderBankOffices.d.ts +0 -13
  628. package/mobile/dist/components/ApplicationForm/renderBankOffices.js +0 -7
  629. package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +0 -1
  630. package/mobile/dist/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  631. package/mobile/dist/components/ApplicationForm/renderDataOrganization.js +0 -7
  632. package/mobile/dist/components/ApplicationForm/renderDataOrganization.js.map +0 -1
  633. package/mobile/dist/components/ApplicationForm/renderSelects.d.ts +0 -11
  634. package/mobile/dist/components/ApplicationForm/renderSelects.js +0 -8
  635. package/mobile/dist/components/ApplicationForm/renderSelects.js.map +0 -1
  636. package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  637. package/mobile/dist/components/ApplicationForm/useFormHandlers.js +0 -11
  638. package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +0 -1
  639. package/mobile/lib/components/ApplicationForm/WrapperSelect.d.ts +0 -11
  640. package/mobile/lib/components/ApplicationForm/WrapperSelect.js +0 -11
  641. package/mobile/lib/components/ApplicationForm/WrapperSelect.js.map +0 -1
  642. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  643. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js +0 -2
  644. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
  645. package/mobile/lib/components/ApplicationForm/renderBankOffices.d.ts +0 -13
  646. package/mobile/lib/components/ApplicationForm/renderBankOffices.js +0 -4
  647. package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +0 -1
  648. package/mobile/lib/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  649. package/mobile/lib/components/ApplicationForm/renderDataOrganization.js +0 -4
  650. package/mobile/lib/components/ApplicationForm/renderDataOrganization.js.map +0 -1
  651. package/mobile/lib/components/ApplicationForm/renderSelects.d.ts +0 -11
  652. package/mobile/lib/components/ApplicationForm/renderSelects.js +0 -5
  653. package/mobile/lib/components/ApplicationForm/renderSelects.js.map +0 -1
  654. package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  655. package/mobile/lib/components/ApplicationForm/useFormHandlers.js +0 -8
  656. package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +0 -1
  657. package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +0 -32
  658. package/mobile/src/components/ApplicationForm/normalizeSelectedRegion.ts +0 -4
  659. package/mobile/src/components/ApplicationForm/renderDataOrganization.tsx +0 -78
  660. package/mobile/src/components/ApplicationForm/useFormHandlers.ts +0 -18
  661. package/src/components/ApplicationForm/WrapperSelect.tsx +0 -32
  662. package/src/components/ApplicationForm/normalizeSelectedRegion.ts +0 -4
  663. package/src/components/ApplicationForm/renderDataOrganization.tsx +0 -78
  664. package/src/components/ApplicationForm/useFormHandlers.ts +0 -18
@@ -3,5 +3,6 @@
3
3
  "isBlur": false,
4
4
  "arrowsPadded": true,
5
5
  "isCycle": false,
6
- "isPadding": true
6
+ "isPadding": true,
7
+ "isAlignCenter": false
7
8
  }
@@ -81,9 +81,10 @@ export default {
81
81
  <div className="container grid grid-cols-12">
82
82
  <Carousel
83
83
  className="col-span-12"
84
- visibleItemCount={3}
84
+ visibleItemCount={0}
85
85
  isBlur={true}
86
86
  isCyclic={false}
87
+ isAlignCenter={true}
87
88
  block={{
88
89
  type: 'Carousel',
89
90
  blocks: new Array(6)
@@ -5,11 +5,11 @@ import { renderChildren } from '../../BlockRenderer/renderChildren';
5
5
  import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
6
6
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
7
  import { SwipeListContainer } from '../../ui-kit/SwipeListControl/SwipeListContainer';
8
+ import { SwipeListControlDots } from '../../ui-kit/SwipeListControl/SwipeListControlDots';
8
9
  import { useSwipeListScroll } from '../../ui-kit/SwipeListControl/useSwipeListScroll';
9
10
  import { style } from '../../utils/style';
10
11
  import type { CarouselContent } from './CarouselContent';
11
12
  import { CarouselScrollButtons } from './CarouselScrollButtons';
12
- import { SwipeListControlDots } from '../../ui-kit/SwipeListControl/SwipeListControlDots';
13
13
 
14
14
  export interface CarouselProps extends CarouselContent, UniBlockProps {
15
15
  itemCount?: number;
@@ -28,6 +28,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
28
28
  arrowsPadded = true,
29
29
  isPadding = true,
30
30
  showDots = false,
31
+ isAlignCenter = false,
31
32
  ...rest
32
33
  }) => {
33
34
  const { blocks: childBlocks = [] } = rest.block || {};
@@ -53,7 +54,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
53
54
  )}
54
55
  {...rest}
55
56
  >
56
- <div className="relative max-w-full">
57
+ <div className={style(getAlignStyle(isAlignCenter), 'relative max-w-full')}>
57
58
  <SwipeListContainer
58
59
  containerRef={containerRef}
59
60
  visibleItemCount={visibleItemCount}
@@ -105,6 +106,9 @@ Carousel.childrenTypes = [
105
106
 
106
107
  const getPaddingStyle = (isPadding: boolean): string => (isPadding ? 'p-12' : '');
107
108
 
109
+ const getAlignStyle = (isAlignCenter: boolean): string =>
110
+ isAlignCenter ? 'flex justify-center' : '';
111
+
108
112
  const renderDots = (
109
113
  containerRef: { current: HTMLDivElement | null },
110
114
  dotsActiveIndex: number,
@@ -17,4 +17,6 @@ export type CarouselContent = UniBlockContent & {
17
17
  isCyclic?: boolean;
18
18
  /** @title Внутренний отступ */
19
19
  isPadding?: boolean;
20
+ /** @title Выравнивать по центру */
21
+ isAlignCenter?: boolean;
20
22
  };
@@ -8,14 +8,9 @@ import type { CarouselRichTextCardContent } from './CarouselRichTextCardContent'
8
8
  export interface CarouselRichTextCardProps extends CarouselRichTextCardContent, UniBlockProps {}
9
9
 
10
10
  export const CarouselRichTextCard = JSX<CarouselRichTextCardProps>(
11
- ({ className = '', __html, richVersion = 'striped', ...rest }) => {
12
- return (
13
- <BlockWrapper
14
- className={style('p-9 border border-gray min-w-96', richVersion, className)}
15
- {...rest}
16
- >
17
- <RichText __html={__html} />
18
- </BlockWrapper>
19
- );
20
- },
11
+ ({ className = '', __html, richVersion = 'striped', ...rest }) => (
12
+ <BlockWrapper className={style('p-9 border border-gray min-w-96', className)} {...rest}>
13
+ <RichText __html={__html} richVersion={richVersion} />
14
+ </BlockWrapper>
15
+ ),
21
16
  );
@@ -54,9 +54,11 @@ export const TARIFFS_CARD_HIT: CarouselTariffsCardContent = {
54
54
  isHighlighting: true,
55
55
  };
56
56
 
57
- const CAROUSEL_TARIFFS_CARD = <CarouselTariffsCard {...TARIFFS_CARD} />;
57
+ const CAROUSEL_TARIFFS_CARD = <CarouselTariffsCard className="col-span-4" {...TARIFFS_CARD} />;
58
58
 
59
- const CAROUSEL_TARIFFS_CARD_HIT = <CarouselTariffsCard {...TARIFFS_CARD_HIT} />;
59
+ const CAROUSEL_TARIFFS_CARD_HIT = (
60
+ <CarouselTariffsCard className="col-span-4" {...TARIFFS_CARD_HIT} />
61
+ );
60
62
 
61
63
  export default {
62
64
  default: <div className="container grid grid-cols-12">{CAROUSEL_TARIFFS_CARD}</div>,
@@ -29,7 +29,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
29
29
  return (
30
30
  <BlockWrapper
31
31
  className={style(
32
- 'relative border border-gray min-w-[322px] p-8 flex flex-col',
32
+ 'relative border border-gray p-8 flex flex-col',
33
33
  getHitStyle(isHighlighting),
34
34
  className,
35
35
  )}
@@ -63,7 +63,7 @@ const renderIconBlock = (icon?: Picture) => (
63
63
  );
64
64
 
65
65
  const getHitStyle = (isHighlighting?: boolean): string =>
66
- isHighlighting ? 'mt-9 pt-[70px]' : 'mt-[70px] pt-7';
66
+ isHighlighting ? 'mt-8 pt-20' : 'mt-20 pt-8';
67
67
 
68
68
  const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode => (
69
69
  <button
@@ -0,0 +1,8 @@
1
+ export enum Currencies {
2
+ EUR = 'EUR',
3
+ USD = 'USD',
4
+ GBP = 'GBP',
5
+ AUD = 'AUD',
6
+ CNY = 'CNY',
7
+ RUB = 'RUB',
8
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "content": {
3
+ "officeName": "Московский региональный филиал ЦРМБ",
4
+ "currencies": [
5
+ {
6
+ "id": 1,
7
+ "title": "USD",
8
+ "buyPrice": 104.0741,
9
+ "sellPrice": 103.1618,
10
+ "buyDifference": -3.74,
11
+ "sellDifference": -0.31,
12
+ "buyOfficeName": "Моковский региональный филиал ЦРМБ",
13
+ "buyBonusOfficeName": "Дополнительный офис г. Москва (ул. Арбат)",
14
+ "sellOfficeName": "Дополнительный офис г. Москва (ул. Новоясеньская)",
15
+ "sellBonusOfficeName": "Дополнительный офис г. Москва (Волгоградский проспект)"
16
+ },
17
+ {
18
+ "id": 2,
19
+ "title": "EUR",
20
+ "buyPrice": 114.7833,
21
+ "sellPrice": 113.2613,
22
+ "buyDifference": 1.65,
23
+ "sellDifference": -0.41,
24
+ "buyOfficeName": "Моковский региональный филиал ЦРМБ",
25
+ "buyBonusOfficeName": "Дополнительный офис г. Москва (ул. Арбат)",
26
+ "sellOfficeName": "Дополнительный офис г. Москва (ул. Новоясеньская)",
27
+ "sellBonusOfficeName": "Дополнительный офис г. Москва (Волгоградский проспект)"
28
+ }
29
+ ],
30
+ "actuality": "Актуально на 12:36, 12 июля 2022"
31
+ }
32
+ }
@@ -0,0 +1,78 @@
1
+ import '../../setup-fixture';
2
+ import { ExchangeRateOffice } from './ExchangeRateOffice';
3
+ import type { ExchangeRateOfficeContent } from './ExchangeRateOfficeContent';
4
+
5
+ const EXCHANGE_RATE: ExchangeRateOfficeContent = {
6
+ officeName: 'Московский региональный филиал ЦРМБ',
7
+ currencies: [
8
+ {
9
+ id: 1,
10
+ title: 'USD',
11
+ buyPrice: 104.0741,
12
+ sellPrice: 103.1618,
13
+ buyDifference: -3.74,
14
+ sellDifference: -0.31,
15
+ buyOfficeName: 'Моковский региональный филиал ЦРМБ',
16
+ buyBonusOfficeName: 'Дополнительный офис г. Москва (ул. Арбат)',
17
+ sellOfficeName: 'Дополнительный офис г. Москва (ул. Новоясеньская)',
18
+ sellBonusOfficeName: 'Дополнительный офис г. Москва (Волгоградский проспект)',
19
+ },
20
+ {
21
+ id: 2,
22
+ title: 'EUR',
23
+ buyPrice: 114.7833,
24
+ sellPrice: 113.2613,
25
+ buyDifference: 1.65,
26
+ sellDifference: -0.41,
27
+ buyOfficeName: 'Моковский региональный филиал ЦРМБ',
28
+ buyBonusOfficeName: 'Дополнительный офис г. Москва (ул. Арбат)',
29
+ sellOfficeName: 'Дополнительный офис г. Москва (ул. Новоясеньская)',
30
+ sellBonusOfficeName: 'Дополнительный офис г. Москва (Волгоградский проспект)',
31
+ },
32
+ {
33
+ id: 3,
34
+ title: 'GBP',
35
+ buyPrice: 114.7833,
36
+ sellPrice: 113.2613,
37
+ buyDifference: -1.65,
38
+ sellDifference: -0.41,
39
+ buyOfficeName: 'Моковский региональный филиал ЦРМБ',
40
+ buyBonusOfficeName: 'Дополнительный офис г. Москва (ул. Арбат)',
41
+ sellOfficeName: 'Дополнительный офис г. Москва (ул. Новоясеньская)',
42
+ sellBonusOfficeName: 'Дополнительный офис г. Москва (Волгоградский проспект)',
43
+ },
44
+ {
45
+ id: 4,
46
+ title: 'AUD',
47
+ buyPrice: 114.7833,
48
+ sellPrice: 113.2613,
49
+ buyDifference: -1.65,
50
+ sellDifference: -0.41,
51
+ buyOfficeName: 'Моковский региональный филиал ЦРМБ',
52
+ buyBonusOfficeName: 'Дополнительный офис г. Москва (ул. Арбат)',
53
+ sellOfficeName: 'Дополнительный офис г. Москва (ул. Новоясеньская)',
54
+ sellBonusOfficeName: 'Дополнительный офис г. Москва (Волгоградский проспект)',
55
+ },
56
+ {
57
+ id: 5,
58
+ title: 'CNY',
59
+ buyPrice: 114.7833,
60
+ sellPrice: 113.2613,
61
+ buyDifference: 1.65,
62
+ sellDifference: -0.41,
63
+ buyOfficeName: 'Моковский региональный филиал ЦРМБ',
64
+ buyBonusOfficeName: 'Дополнительный офис г. Москва (ул. Арбат)',
65
+ sellOfficeName: 'Дополнительный офис г. Москва (ул. Новоясеньская)',
66
+ sellBonusOfficeName: 'Дополнительный офис г. Москва (Волгоградский проспект)',
67
+ },
68
+ ],
69
+ actuality: 'Актуально на 12:36, 12 июля 2022',
70
+ };
71
+
72
+ export default {
73
+ default: (
74
+ <div className="container grid grid-cols-12">
75
+ <ExchangeRateOffice className="col-span-12" {...EXCHANGE_RATE} />
76
+ </div>
77
+ ),
78
+ };
@@ -0,0 +1,60 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
+ import { Heading } from '../../ui-kit/Heading/Heading';
5
+ import { Text } from '../../ui-kit/Text/Text';
6
+ import { style } from '../../utils/style';
7
+ import type { CurrencyInformation, ExchangeRateOfficeContent } from './ExchangeRateOfficeContent';
8
+ import { renderCurrencyRow } from './renderCurrencies';
9
+ import { renderTableHeader } from './renderTableHeader';
10
+
11
+ export interface ExchangeRateOfficeProps extends ExchangeRateOfficeContent, UniBlockProps {}
12
+
13
+ export const ExchangeRateOffice = JSX<ExchangeRateOfficeProps>(
14
+ ({ className = '', currencies = [], actuality = '', officeName = '', ...rest }) => {
15
+ const fourRates: CurrencyInformation[] = topNRates(currencies, 4);
16
+
17
+ return (
18
+ <BlockWrapper
19
+ className={style('font-sans text-primary-text py-10 bg-white', className)}
20
+ {...rest}
21
+ >
22
+ <div className="flex flex-row flex-grow-0 justify-between mx-10 mb-8">
23
+ <Heading
24
+ headingType="h4"
25
+ title={'Курс обмена валют в ' + officeName}
26
+ className="whitespace-pre-wrap text-h4 mb-5"
27
+ />
28
+ <div className="pl-11">
29
+ <Text size="text-m-light" align="text-left" color="text-secondary-text">
30
+ {actuality}
31
+ </Text>
32
+ </div>
33
+ </div>
34
+ <div className="flex flex-row ml-8 mr-14 pt-4 text-left">
35
+ {fourRates.length > 0 ? (
36
+ <table className={style('h-fit w-fit', className)}>
37
+ <thead>
38
+ <tr>
39
+ <th>
40
+ <Text size="text-m-light" align="text-left" color="text-secondary-text">
41
+ Валюта
42
+ </Text>
43
+ </th>
44
+ {renderTableHeader('Купить')}
45
+ {renderTableHeader('Продать')}
46
+ {renderTableHeader('Лучшая покупка')}
47
+ {renderTableHeader('Лучшая продажа')}
48
+ </tr>
49
+ </thead>
50
+ <tbody>{fourRates.map((item) => renderCurrencyRow(item))}</tbody>
51
+ </table>
52
+ ) : null}
53
+ </div>
54
+ </BlockWrapper>
55
+ );
56
+ },
57
+ );
58
+
59
+ const topNRates = (rates: CurrencyInformation[], n: number) =>
60
+ rates.sort((a, b) => Number(a.id) - Number(b.id)).slice(0, n);
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @title Информация об одной валюте
3
+ */
4
+ export interface CurrencyInformation {
5
+ /** @title Номер */
6
+ id?: number;
7
+ /** @title Название */
8
+ title?: string;
9
+ /** @title Покупная цена */
10
+ buyPrice?: number;
11
+ /** @title Цена продажи */
12
+ sellPrice?: number;
13
+ /** @title Разница покупки */
14
+ buyDifference?: number;
15
+ /** @title Разница продажи */
16
+ sellDifference?: number;
17
+ /** @title Имя основного офиса для покупки */
18
+ buyOfficeName?: string;
19
+ /** @title Другие офисы покупки */
20
+ buyBonusOfficeName?: string;
21
+ /** @title Имя основного офиса для продажи*/
22
+ sellOfficeName?: string;
23
+ /** @title Другие офисы продажи */
24
+ sellBonusOfficeName?: string;
25
+ }
26
+ /**
27
+ * @title Курсы валют офиса
28
+ */
29
+ export interface ExchangeRateOfficeContent {
30
+ /** @title Имя офиса */
31
+ officeName?: string;
32
+ /** @title Список валют */
33
+ currencies?: CurrencyInformation[];
34
+ /** @title Актуальность информации */
35
+ actuality?: string;
36
+ }
@@ -0,0 +1,73 @@
1
+ import type { IconName } from '../../icons/IconName';
2
+ import { Img } from '../../ui-kit/Img/Img';
3
+ import { style } from '../../utils/style';
4
+ import { Currencies } from './Currencies';
5
+ import type { CurrencyInformation } from './ExchangeRateOfficeContent';
6
+
7
+ const CURRENCY_ICONS_MAP: Record<keyof typeof Currencies, IconName> = {
8
+ USD: 'DollarIcon',
9
+ EUR: 'EuroIcon',
10
+ GBP: 'DollarIcon',
11
+ AUD: 'DollarIcon',
12
+ CNY: 'DollarIcon',
13
+ RUB: 'RoundRubleIcon',
14
+ };
15
+
16
+ export const renderCurrencyRow = ({
17
+ title,
18
+ buyPrice,
19
+ buyDifference,
20
+ sellPrice,
21
+ sellDifference,
22
+ buyOfficeName,
23
+ sellOfficeName,
24
+ }: CurrencyInformation) => {
25
+ return (
26
+ <tr key={title} className="pb-1 text-h6">
27
+ <td className="pt-4">
28
+ <div className="flex items-center">
29
+ {title ? (
30
+ <Img image={{ icon: CURRENCY_ICONS_MAP[title] }} width="24" height="24" />
31
+ ) : null}
32
+ <span className="ml-2">{title}</span>
33
+ </div>
34
+ </td>
35
+ {renderCurrency(buyPrice, buyDifference)}
36
+ {renderCurrency(sellPrice, sellDifference)}
37
+ {renderOffice(buyPrice, buyOfficeName)}
38
+ {renderOffice(sellPrice, sellOfficeName)}
39
+ </tr>
40
+ );
41
+ };
42
+
43
+ const formatCurrency = (value?: number) => (value ? currencyNumberFormat.format(value) : '');
44
+
45
+ const renderCurrency = (price?: number, difference?: number) => {
46
+ return (
47
+ <td className="pt-4 pl-11">
48
+ <div>{formatCurrency(price)}</div>
49
+ <div
50
+ className={style(
51
+ 'font-normal text-sm text-secondary-text',
52
+ (difference || 0) >= 0 ? 'text-green' : 'text-red',
53
+ )}
54
+ >
55
+ {formatCurrency(difference)}
56
+ </div>
57
+ </td>
58
+ );
59
+ };
60
+
61
+ const renderOffice = (price?: number, officeName = '') => {
62
+ return (
63
+ <td className="pt-4 pl-11">
64
+ <div>{formatCurrency(price)}</div>
65
+ <div className="font-normal text-sm text-green">{officeName}</div>
66
+ </td>
67
+ );
68
+ };
69
+
70
+ const currencyNumberFormat = new Intl.NumberFormat('ru', {
71
+ style: 'currency',
72
+ currency: Currencies.RUB,
73
+ });
@@ -0,0 +1,11 @@
1
+ import { Text } from '../../ui-kit/Text/Text';
2
+
3
+ export const renderTableHeader = (title: string) => {
4
+ return (
5
+ <th className="pl-11">
6
+ <Text size="text-m-light" align="text-left" color="text-secondary-text">
7
+ {title}
8
+ </Text>
9
+ </th>
10
+ );
11
+ };
@@ -10,7 +10,7 @@ interface TextInformationLinkProps extends LinkProps {
10
10
 
11
11
  export const TextInformationLink = JSX<Partial<TextInformationLinkProps>>(
12
12
  ({ className = '', index, ...rest }) => {
13
- const link = useLink();
13
+ const link = useLink({ isRemote: true });
14
14
  const { href, target, text, onClick } = link(rest);
15
15
 
16
16
  return (
@@ -1,5 +1,6 @@
1
1
  import '../../setup-fixture';
2
2
  import { RichTextBlock } from './RichTextBlock';
3
+ import type { RichTextBlockContent } from './RichTextBlockContent';
3
4
 
4
5
  const HTML = `
5
6
  <p class="h1">Заголовок 1</p>
@@ -20,10 +21,31 @@ const HTML = `
20
21
  </ol>
21
22
  `;
22
23
 
24
+ export const RICH_TEXT_SEPARATOR: RichTextBlockContent = {
25
+ __html:
26
+ '<table>' +
27
+ '<thead><tr><th><p>Полное наименование организации</p></th><th><p>Адрес (место нахождения)</p></th><th><p>Доля участия</p></th></tr></thead>' +
28
+ '<tbody>' +
29
+ '<tr><td><p><a href="rshb.ru">Акционерное общество «Национальное бюро кредитных историй»</p></a></td>' +
30
+ '<td><p>Россия, г. Москва, Скатертный пер., д. 20, стр.1</p></td><td><p>0,5%</p></td></tr>' +
31
+ '<tr><td><p><a href="rshb.ru">Акционерное общество\n' +
32
+ '«Негосударственный пенсионный фонд\n' +
33
+ '«Первый национальный пенсионный фонд»</p></td><td><p>Россия, г. Москва, ул. Большая Дмитровка,\n' +
34
+ 'д. 23, стр.1</a></p></td><td><p>2,2%</p></td></tr>' +
35
+ '</tbody>' +
36
+ '</table>',
37
+ richVersion: 'horizontal-separator',
38
+ };
39
+
23
40
  export default {
24
41
  default: (
25
42
  <div className="container grid grid-cols-12">
26
43
  <RichTextBlock className="col-span-12" __html={HTML} />
27
44
  </div>
28
45
  ),
46
+ 'horizontal-separator': (
47
+ <div className="container grid grid-cols-12">
48
+ <RichTextBlock className="col-span-12" {...RICH_TEXT_SEPARATOR} />
49
+ </div>
50
+ ),
29
51
  };
@@ -7,11 +7,11 @@ import type { RichTextBlockContent } from './RichTextBlockContent';
7
7
  interface RichTextBlockProps extends RichTextBlockContent, UniBlockProps {}
8
8
 
9
9
  export const RichTextBlock = JSX<RichTextBlockProps>((props) => {
10
- const { __html, ...rest } = props;
10
+ const { __html, richVersion, ...rest } = props;
11
11
 
12
12
  return (
13
13
  <BlockWrapper {...rest}>
14
- <RichText __html={__html} />
14
+ <RichText __html={__html} richVersion={richVersion} />
15
15
  </BlockWrapper>
16
16
  );
17
17
  });
@@ -24,10 +24,7 @@ interface TableCellDataProps extends TableInnerButtonProps {
24
24
  displayTable: (props: TariffsTableInnerContent) => void;
25
25
  }
26
26
 
27
- const renderButtonsCellData = ({ buttons }: ButtonContent) =>
28
- renderButtonsSection(buttons, {
29
- buttonClassName: 'w-12 h-12',
30
- });
27
+ const renderButtonsCellData = ({ buttons }: ButtonContent) => renderButtonsSection(buttons);
31
28
 
32
29
  const renderLabelDescriptionCellData = ({ label, description }: LabelDescriptionCell) => {
33
30
  const labelClassName = `text-h6 m-0 ${description ? 'mb-1' : ''}`;
@@ -3,6 +3,7 @@ import '../../setup-fixture';
3
3
  import { Blocks } from '../Blocks';
4
4
  import { LinkDocsContent } from '../LinkDocs/LinkDocsContent';
5
5
  import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
6
+ import { RICH_TEXT_SEPARATOR } from '../RichTextBlock/RichTextBlock.fixture';
6
7
  import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture';
7
8
  import { VerticalLayout } from './VerticalLayout';
8
9
 
@@ -136,6 +137,19 @@ export default {
136
137
  },
137
138
  blocks: [{ type: 'LinkDocs', content: linkDocsExample }],
138
139
  },
140
+ {
141
+ type: 'RollupItem',
142
+ content: {
143
+ label: 'Rollup button 3 RichText',
144
+ isExpanded: true,
145
+ },
146
+ blocks: [
147
+ {
148
+ type: 'RichTextBlock',
149
+ content: RICH_TEXT_SEPARATOR,
150
+ },
151
+ ],
152
+ },
139
153
  ],
140
154
  }}
141
155
  options={options}
@@ -10,13 +10,20 @@ interface Clickable {
10
10
  onClick(ev?: PreventableEvent): void;
11
11
  }
12
12
 
13
- export function useLink(isRemote = false) {
13
+ interface UseLinkParams {
14
+ isRemote?: boolean;
15
+ basePath?: string;
16
+ }
17
+
18
+ export function useLink(params: UseLinkParams = {}) {
19
+ const { isRemote, basePath } = params;
20
+
14
21
  const router = useRouter();
15
22
  const { close } = useDialog();
16
23
 
17
24
  return <L extends Partial<LinkProps & Clickable>>(props: L): L & Clickable => ({
18
25
  ...props,
19
- href: isRemote ? props.href : adjustHref(router)(props.href),
26
+ href: isRemote ? props.href : adjustHref(router)(props.href, basePath),
20
27
  'aria-label': props.text,
21
28
  onClick: handlerDecorator(handleHref(props), props),
22
29
  });
@@ -6,7 +6,7 @@ import type { IconProps, Picture } from '../../model/Picture';
6
6
  * @title Ссылка
7
7
  * @required ["text", "href"]
8
8
  */
9
- export interface TopMenuItem extends LinkProps {
9
+ export interface TopMenuItemProps extends LinkProps {
10
10
  /** @hidden */
11
11
  items?: LinkProps[];
12
12
  }
@@ -27,7 +27,7 @@ export interface DispositionItem extends LinkProps {
27
27
  export type ForeignOffice = LinkProps & IconProps;
28
28
 
29
29
  export interface SitemapData {
30
- topItems?: TopMenuItem[];
30
+ topItems?: TopMenuItemProps[];
31
31
  dispositions?: DispositionItem[];
32
32
  logo?: LogoType;
33
33
  foreignOffices?: ForeignOffice[];
@@ -8,7 +8,7 @@ export const getRegularButtonClasses = ({
8
8
  }: GetButtonClassParams): string =>
9
9
  [
10
10
  buttonStyle,
11
- 'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border',
11
+ 'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit',
12
12
  version ? buttonStyleMap[version] : '',
13
13
  rounded ? 'rounded-full' : 'rounded-md',
14
14
  className,
@@ -14,7 +14,7 @@ export const renderButtonsSection = (
14
14
  buttons?: (ButtonWithIconProps | undefined)[],
15
15
  { className = '', buttonClassName, isVertical }: ButtonsSectionOptions = {},
16
16
  ) =>
17
- buttons?.length && buttons.some((_) => _?.text) ? (
17
+ buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (
18
18
  <div className={style('flex', isVertical ? 'flex-col gap-2' : 'gap-4', className)}>
19
19
  {buttons.map(renderButton(buttonClassName))}
20
20
  </div>
@@ -26,7 +26,7 @@ const renderButton =
26
26
  const { text, icon, iconRight, version, ...rest } = button || {};
27
27
  const iconVersion = version === 'secondary' ? 'color' : 'white';
28
28
 
29
- return text ? (
29
+ return text || icon?.icon ? (
30
30
  <Button
31
31
  key={index ? String(index) : ''}
32
32
  className={buttonClassName}
@@ -1,8 +1,11 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { style } from '../../utils/style';
2
3
  import type { RichTextProps } from './RichTextProps';
3
4
 
4
5
  export const RichText = JSX<RichTextProps>((props) => {
5
- const { __html = '' } = props;
6
+ const { __html = '', richVersion = '' } = props;
6
7
 
7
- return <div className="md-container" dangerouslySetInnerHTML={{ __html }} />;
8
+ return (
9
+ <div className={style(richVersion, 'md-container')} dangerouslySetInnerHTML={{ __html }} />
10
+ );
8
11
  });
@@ -5,7 +5,7 @@ export interface RichTextProps {
5
5
  __html?: HTML;
6
6
  /**
7
7
  * @title Стиль форматированного текста
8
- * @enumNames ["по умолчанию", "в полоску"]
8
+ * @enumNames ["по умолчанию", "Строки разного цвета", "Горизонтальные разделители"]
9
9
  */
10
- richVersion?: '' | 'striped';
10
+ richVersion?: '' | 'striped' | 'horizontal-separator';
11
11
  }