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

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 (722) hide show
  1. package/bin/migration-scripts/0.9.10.js +30 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +405 -246
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/InputControl.d.ts +10 -0
  6. package/bundle/components/ApplicationForm/{WrapperSelect.d.ts → SelectControl.d.ts} +4 -2
  7. package/bundle/components/ApplicationForm/models.d.ts +5 -0
  8. package/bundle/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  9. package/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  10. package/{lib/components/ApplicationForm/renderSelects.d.ts → bundle/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
  11. package/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  12. package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  13. package/bundle/components/ApplicationForm/renderRegion.d.ts +12 -0
  14. package/{dist/components/ApplicationForm/renderBankOffices.d.ts → bundle/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
  15. package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  16. package/bundle/components/ApplicationForm/useForm.d.ts +14 -0
  17. package/bundle/components/ApplicationForm/validate.d.ts +1 -0
  18. package/bundle/components/Carousel/CarouselContent.d.ts +2 -0
  19. package/bundle/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  20. package/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  21. package/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  22. package/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  23. package/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  24. package/bundle/components/Footer/FooterContent.d.ts +1 -1
  25. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  26. package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  27. package/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
  28. package/bundle/components/ProductTile/renderImage.d.ts +1 -1
  29. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  30. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  31. package/bundle/components/Tile/TileContent.d.ts +2 -0
  32. package/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
  33. package/bundle/ui-kit/Select/Select.d.ts +2 -0
  34. package/dist/components/ApplicationForm/ApplicationForm.js +3 -3
  35. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  36. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
  37. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  38. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
  39. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  40. package/dist/components/ApplicationForm/ApplicationFormCredit.js +52 -41
  41. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  42. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
  43. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  44. package/dist/components/ApplicationForm/ApplicationFormWed.js +38 -25
  45. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  46. package/dist/components/ApplicationForm/InputControl.d.ts +10 -0
  47. package/dist/components/ApplicationForm/InputControl.js +10 -0
  48. package/dist/components/ApplicationForm/InputControl.js.map +1 -0
  49. package/{lib/components/ApplicationForm/WrapperSelect.d.ts → dist/components/ApplicationForm/SelectControl.d.ts} +4 -2
  50. package/dist/components/ApplicationForm/SelectControl.js +14 -0
  51. package/dist/components/ApplicationForm/SelectControl.js.map +1 -0
  52. package/dist/components/ApplicationForm/models.d.ts +5 -0
  53. package/dist/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  54. package/dist/components/ApplicationForm/normalizeSelected.js +5 -0
  55. package/dist/components/ApplicationForm/normalizeSelected.js.map +1 -0
  56. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  57. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +8 -0
  58. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
  59. package/{bundle/components/ApplicationForm/renderSelects.d.ts → dist/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
  60. package/dist/components/ApplicationForm/renderAcquiringRegion.js +9 -0
  61. package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
  62. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  63. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +8 -0
  64. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
  65. package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  66. package/dist/components/ApplicationForm/renderCreditDataOrganization.js +8 -0
  67. package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
  68. package/dist/components/ApplicationForm/renderRegion.d.ts +12 -0
  69. package/dist/components/ApplicationForm/renderRegion.js +8 -0
  70. package/dist/components/ApplicationForm/renderRegion.js.map +1 -0
  71. package/{lib/components/ApplicationForm/renderBankOffices.d.ts → dist/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
  72. package/dist/components/ApplicationForm/renderRegionDepartment.js +8 -0
  73. package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
  74. package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  75. package/dist/components/ApplicationForm/renderWedDataOrganization.js +8 -0
  76. package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
  77. package/dist/components/ApplicationForm/useForm.d.ts +14 -0
  78. package/dist/components/ApplicationForm/useForm.js +37 -0
  79. package/dist/components/ApplicationForm/useForm.js.map +1 -0
  80. package/dist/components/ApplicationForm/validate.d.ts +1 -0
  81. package/dist/components/ApplicationForm/validate.js +22 -0
  82. package/dist/components/ApplicationForm/validate.js.map +1 -0
  83. package/dist/components/Blocks.js +4 -0
  84. package/dist/components/Blocks.js.map +1 -1
  85. package/dist/components/Bonus/Bonus.js +5 -3
  86. package/dist/components/Bonus/Bonus.js.map +1 -1
  87. package/dist/components/Carousel/Carousel.js +4 -3
  88. package/dist/components/Carousel/Carousel.js.map +1 -1
  89. package/dist/components/Carousel/CarouselContent.d.ts +2 -0
  90. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  91. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  92. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
  93. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  94. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  95. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  96. package/dist/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  97. package/dist/components/ExchangeRateOffice/Currencies.js +12 -0
  98. package/dist/components/ExchangeRateOffice/Currencies.js.map +1 -0
  99. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  100. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +16 -0
  101. package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
  102. package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  103. package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
  104. package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
  105. package/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  106. package/dist/components/ExchangeRateOffice/renderCurrencies.js +30 -0
  107. package/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
  108. package/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  109. package/dist/components/ExchangeRateOffice/renderTableHeader.js +9 -0
  110. package/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
  111. package/dist/components/Footer/FooterContent.d.ts +1 -1
  112. package/dist/components/Headline/Headline.js +1 -1
  113. package/dist/components/Headline/Headline.js.map +1 -1
  114. package/dist/components/ProductBlock/ProductBlock.js +2 -3
  115. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  116. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  117. package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
  118. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  119. package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  120. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  121. package/dist/components/ProductTile/ProductTile.js +4 -2
  122. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  123. package/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  124. package/dist/components/ProductTile/renderImage.d.ts +1 -1
  125. package/dist/components/ProductTile/renderImage.js +3 -2
  126. package/dist/components/ProductTile/renderImage.js.map +1 -1
  127. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  128. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +22 -0
  129. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
  130. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  131. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
  132. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
  133. package/dist/components/RichTextBlock/RichTextBlock.js +2 -2
  134. package/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
  135. package/dist/components/TariffsTable/EmbeddableCellData.js +1 -3
  136. package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  137. package/dist/components/Tile/Tile.js +5 -4
  138. package/dist/components/Tile/Tile.js.map +1 -1
  139. package/dist/components/Tile/TileContent.d.ts +2 -0
  140. package/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
  141. package/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
  142. package/dist/ui-kit/Button/renderButtonsSection.js +2 -2
  143. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  144. package/dist/ui-kit/RichText/RichText.js +3 -2
  145. package/dist/ui-kit/RichText/RichText.js.map +1 -1
  146. package/dist/ui-kit/RichText/RichTextProps.d.ts +2 -2
  147. package/dist/ui-kit/Select/Select.d.ts +2 -0
  148. package/dist/ui-kit/Select/Select.js +5 -3
  149. package/dist/ui-kit/Select/Select.js.map +1 -1
  150. package/lib/common.css +1 -1
  151. package/lib/components/ApplicationForm/ApplicationForm.js +3 -3
  152. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  153. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
  154. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  155. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
  156. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  157. package/lib/components/ApplicationForm/ApplicationFormCredit.js +53 -42
  158. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  159. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
  160. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  161. package/lib/components/ApplicationForm/ApplicationFormWed.js +38 -25
  162. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  163. package/lib/components/ApplicationForm/InputControl.d.ts +10 -0
  164. package/lib/components/ApplicationForm/InputControl.js +8 -0
  165. package/lib/components/ApplicationForm/InputControl.js.map +1 -0
  166. package/{mobile/bundle/components/ApplicationForm/WrapperSelect.d.ts → lib/components/ApplicationForm/SelectControl.d.ts} +4 -2
  167. package/lib/components/ApplicationForm/SelectControl.js +12 -0
  168. package/lib/components/ApplicationForm/SelectControl.js.map +1 -0
  169. package/lib/components/ApplicationForm/models.d.ts +5 -0
  170. package/lib/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  171. package/lib/components/ApplicationForm/normalizeSelected.js +2 -0
  172. package/lib/components/ApplicationForm/normalizeSelected.js.map +1 -0
  173. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  174. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +5 -0
  175. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
  176. package/{mobile/bundle/components/ApplicationForm/renderSelects.d.ts → lib/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
  177. package/lib/components/ApplicationForm/renderAcquiringRegion.js +6 -0
  178. package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
  179. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  180. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +5 -0
  181. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
  182. package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  183. package/lib/components/ApplicationForm/renderCreditDataOrganization.js +5 -0
  184. package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
  185. package/lib/components/ApplicationForm/renderRegion.d.ts +12 -0
  186. package/lib/components/ApplicationForm/renderRegion.js +5 -0
  187. package/lib/components/ApplicationForm/renderRegion.js.map +1 -0
  188. package/{bundle/components/ApplicationForm/renderBankOffices.d.ts → lib/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
  189. package/lib/components/ApplicationForm/renderRegionDepartment.js +5 -0
  190. package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
  191. package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  192. package/lib/components/ApplicationForm/renderWedDataOrganization.js +5 -0
  193. package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
  194. package/lib/components/ApplicationForm/useForm.d.ts +14 -0
  195. package/lib/components/ApplicationForm/useForm.js +34 -0
  196. package/lib/components/ApplicationForm/useForm.js.map +1 -0
  197. package/lib/components/ApplicationForm/validate.d.ts +1 -0
  198. package/lib/components/ApplicationForm/validate.js +19 -0
  199. package/lib/components/ApplicationForm/validate.js.map +1 -0
  200. package/lib/components/Blocks.js +4 -0
  201. package/lib/components/Blocks.js.map +1 -1
  202. package/lib/components/Bonus/Bonus.js +5 -3
  203. package/lib/components/Bonus/Bonus.js.map +1 -1
  204. package/lib/components/Carousel/Carousel.js +4 -3
  205. package/lib/components/Carousel/Carousel.js.map +1 -1
  206. package/lib/components/Carousel/CarouselContent.d.ts +2 -0
  207. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  208. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  209. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
  210. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  211. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  212. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  213. package/lib/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  214. package/lib/components/ExchangeRateOffice/Currencies.js +10 -0
  215. package/lib/components/ExchangeRateOffice/Currencies.js.map +1 -0
  216. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  217. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.fixture.d.ts +6 -0
  218. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +14 -0
  219. package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
  220. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  221. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
  222. package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
  223. package/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  224. package/lib/components/ExchangeRateOffice/renderCurrencies.js +27 -0
  225. package/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
  226. package/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  227. package/lib/components/ExchangeRateOffice/renderTableHeader.js +6 -0
  228. package/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
  229. package/lib/components/Footer/FooterContent.d.ts +1 -1
  230. package/lib/components/Headline/Headline.js +1 -1
  231. package/lib/components/Headline/Headline.js.map +1 -1
  232. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -1
  233. package/lib/components/ProductBlock/ProductBlock.js +2 -3
  234. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  235. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  236. package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
  237. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  238. package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  239. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  240. package/lib/components/ProductTile/ProductTile.js +4 -2
  241. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  242. package/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  243. package/lib/components/ProductTile/renderImage.d.ts +1 -1
  244. package/lib/components/ProductTile/renderImage.js +3 -2
  245. package/lib/components/ProductTile/renderImage.js.map +1 -1
  246. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  247. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +6 -0
  248. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +20 -0
  249. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
  250. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  251. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
  252. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
  253. package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +3 -0
  254. package/lib/components/RichTextBlock/RichTextBlock.js +2 -2
  255. package/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
  256. package/lib/components/TariffsTable/EmbeddableCellData.js +1 -3
  257. package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  258. package/lib/components/Tile/Tile.fixture.d.ts +1 -0
  259. package/lib/components/Tile/Tile.js +5 -4
  260. package/lib/components/Tile/Tile.js.map +1 -1
  261. package/lib/components/Tile/TileContent.d.ts +2 -0
  262. package/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
  263. package/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
  264. package/lib/ui-kit/Button/renderButtonsSection.js +2 -2
  265. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  266. package/lib/ui-kit/RichText/RichText.js +3 -2
  267. package/lib/ui-kit/RichText/RichText.js.map +1 -1
  268. package/lib/ui-kit/RichText/RichTextProps.d.ts +2 -2
  269. package/lib/ui-kit/Select/Select.d.ts +2 -0
  270. package/lib/ui-kit/Select/Select.js +5 -3
  271. package/lib/ui-kit/Select/Select.js.map +1 -1
  272. package/mobile/bundle/bundle.umd.js +7 -7
  273. package/mobile/bundle/bundle.umd.min.js +1 -1
  274. package/mobile/bundle/components/ApplicationForm/InputControl.d.ts +10 -0
  275. package/{dist/components/ApplicationForm/WrapperSelect.d.ts → mobile/bundle/components/ApplicationForm/SelectControl.d.ts} +4 -2
  276. package/mobile/bundle/components/ApplicationForm/models.d.ts +5 -0
  277. package/mobile/bundle/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  278. package/mobile/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  279. package/{dist/components/ApplicationForm/renderSelects.d.ts → mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
  280. package/mobile/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  281. package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  282. package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +12 -0
  283. package/mobile/bundle/components/ApplicationForm/{renderBankOffices.d.ts → renderRegionDepartment.d.ts} +4 -2
  284. package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  285. package/mobile/bundle/components/ApplicationForm/useForm.d.ts +14 -0
  286. package/mobile/bundle/components/ApplicationForm/validate.d.ts +1 -0
  287. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +2 -0
  288. package/mobile/bundle/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  289. package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  290. package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  291. package/mobile/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  292. package/mobile/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  293. package/mobile/bundle/components/Footer/FooterContent.d.ts +1 -1
  294. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  295. package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  296. package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +1 -1
  297. package/mobile/bundle/components/ProductTile/renderImage.d.ts +1 -1
  298. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  299. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  300. package/mobile/bundle/components/Tile/TileContent.d.ts +2 -0
  301. package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
  302. package/mobile/bundle/ui-kit/Select/Select.d.ts +2 -0
  303. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +3 -3
  304. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  305. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
  306. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  307. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
  308. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  309. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +52 -41
  310. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  311. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
  312. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  313. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +38 -25
  314. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  315. package/mobile/dist/components/ApplicationForm/InputControl.d.ts +10 -0
  316. package/mobile/dist/components/ApplicationForm/InputControl.js +10 -0
  317. package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -0
  318. package/mobile/dist/components/ApplicationForm/SelectControl.d.ts +13 -0
  319. package/mobile/dist/components/ApplicationForm/SelectControl.js +14 -0
  320. package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -0
  321. package/mobile/dist/components/ApplicationForm/models.d.ts +5 -0
  322. package/mobile/dist/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  323. package/mobile/dist/components/ApplicationForm/normalizeSelected.js +5 -0
  324. package/mobile/dist/components/ApplicationForm/normalizeSelected.js.map +1 -0
  325. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  326. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +8 -0
  327. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
  328. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +13 -0
  329. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +9 -0
  330. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
  331. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  332. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +8 -0
  333. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
  334. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  335. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +8 -0
  336. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
  337. package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +12 -0
  338. package/mobile/dist/components/ApplicationForm/renderRegion.js +8 -0
  339. package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -0
  340. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +15 -0
  341. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +8 -0
  342. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
  343. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  344. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +8 -0
  345. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
  346. package/mobile/dist/components/ApplicationForm/useForm.d.ts +14 -0
  347. package/mobile/dist/components/ApplicationForm/useForm.js +37 -0
  348. package/mobile/dist/components/ApplicationForm/useForm.js.map +1 -0
  349. package/mobile/dist/components/ApplicationForm/validate.d.ts +1 -0
  350. package/mobile/dist/components/ApplicationForm/validate.js +22 -0
  351. package/mobile/dist/components/ApplicationForm/validate.js.map +1 -0
  352. package/mobile/dist/components/Bonus/Bonus.js +5 -3
  353. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  354. package/mobile/dist/components/Carousel/Carousel.js +4 -3
  355. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  356. package/mobile/dist/components/Carousel/CarouselContent.d.ts +2 -0
  357. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  358. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  359. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
  360. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  361. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  362. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  363. package/mobile/dist/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  364. package/mobile/dist/components/ExchangeRateOffice/Currencies.js +12 -0
  365. package/mobile/dist/components/ExchangeRateOffice/Currencies.js.map +1 -0
  366. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  367. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +16 -0
  368. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
  369. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  370. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
  371. package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
  372. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  373. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js +30 -0
  374. package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
  375. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  376. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js +9 -0
  377. package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
  378. package/mobile/dist/components/Footer/FooterContent.d.ts +1 -1
  379. package/mobile/dist/components/Headline/Headline.js +1 -1
  380. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  381. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  382. package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  383. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  384. package/mobile/dist/components/ProductTile/ProductTile.js +4 -2
  385. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  386. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +1 -1
  387. package/mobile/dist/components/ProductTile/renderImage.d.ts +1 -1
  388. package/mobile/dist/components/ProductTile/renderImage.js +3 -2
  389. package/mobile/dist/components/ProductTile/renderImage.js.map +1 -1
  390. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  391. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +22 -0
  392. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
  393. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  394. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
  395. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
  396. package/mobile/dist/components/RichTextBlock/RichTextBlock.js +2 -2
  397. package/mobile/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
  398. package/mobile/dist/components/Tile/Tile.js +5 -4
  399. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  400. package/mobile/dist/components/Tile/TileContent.d.ts +2 -0
  401. package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
  402. package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
  403. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -2
  404. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  405. package/mobile/dist/ui-kit/RichText/RichText.js +3 -2
  406. package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
  407. package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +2 -2
  408. package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
  409. package/mobile/dist/ui-kit/Select/Select.js +5 -3
  410. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  411. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +3 -3
  412. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  413. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
  414. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  415. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
  416. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  417. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +53 -42
  418. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  419. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
  420. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  421. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +38 -25
  422. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  423. package/mobile/lib/components/ApplicationForm/InputControl.d.ts +10 -0
  424. package/mobile/lib/components/ApplicationForm/InputControl.js +8 -0
  425. package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -0
  426. package/mobile/lib/components/ApplicationForm/SelectControl.d.ts +13 -0
  427. package/mobile/lib/components/ApplicationForm/SelectControl.js +12 -0
  428. package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -0
  429. package/mobile/lib/components/ApplicationForm/models.d.ts +5 -0
  430. package/mobile/lib/components/ApplicationForm/normalizeSelected.d.ts +2 -0
  431. package/mobile/lib/components/ApplicationForm/normalizeSelected.js +2 -0
  432. package/mobile/lib/components/ApplicationForm/normalizeSelected.js.map +1 -0
  433. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
  434. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +5 -0
  435. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
  436. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +13 -0
  437. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +6 -0
  438. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
  439. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
  440. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +5 -0
  441. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
  442. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
  443. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +5 -0
  444. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
  445. package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +12 -0
  446. package/mobile/lib/components/ApplicationForm/renderRegion.js +5 -0
  447. package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -0
  448. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +15 -0
  449. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +5 -0
  450. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
  451. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
  452. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +5 -0
  453. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
  454. package/mobile/lib/components/ApplicationForm/useForm.d.ts +14 -0
  455. package/mobile/lib/components/ApplicationForm/useForm.js +34 -0
  456. package/mobile/lib/components/ApplicationForm/useForm.js.map +1 -0
  457. package/mobile/lib/components/ApplicationForm/validate.d.ts +1 -0
  458. package/mobile/lib/components/ApplicationForm/validate.js +19 -0
  459. package/mobile/lib/components/ApplicationForm/validate.js.map +1 -0
  460. package/mobile/lib/components/Bonus/Bonus.js +5 -3
  461. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  462. package/mobile/lib/components/Carousel/Carousel.js +4 -3
  463. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  464. package/mobile/lib/components/Carousel/CarouselContent.d.ts +2 -0
  465. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  466. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  467. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
  468. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  469. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  470. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  471. package/mobile/lib/components/ExchangeRateOffice/Currencies.d.ts +8 -0
  472. package/mobile/lib/components/ExchangeRateOffice/Currencies.js +10 -0
  473. package/mobile/lib/components/ExchangeRateOffice/Currencies.js.map +1 -0
  474. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
  475. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +14 -0
  476. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
  477. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
  478. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
  479. package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
  480. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
  481. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js +27 -0
  482. package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
  483. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
  484. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js +6 -0
  485. package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
  486. package/mobile/lib/components/Footer/FooterContent.d.ts +1 -1
  487. package/mobile/lib/components/Headline/Headline.js +1 -1
  488. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  489. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -2
  490. package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  491. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  492. package/mobile/lib/components/ProductTile/ProductTile.js +4 -2
  493. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  494. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +1 -1
  495. package/mobile/lib/components/ProductTile/renderImage.d.ts +1 -1
  496. package/mobile/lib/components/ProductTile/renderImage.js +3 -2
  497. package/mobile/lib/components/ProductTile/renderImage.js.map +1 -1
  498. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +5 -0
  499. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +20 -0
  500. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -0
  501. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +18 -0
  502. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +2 -0
  503. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +1 -0
  504. package/mobile/lib/components/RichTextBlock/RichTextBlock.js +2 -2
  505. package/mobile/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
  506. package/mobile/lib/components/Tile/Tile.js +5 -4
  507. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  508. package/mobile/lib/components/Tile/TileContent.d.ts +2 -0
  509. package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
  510. package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
  511. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -2
  512. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  513. package/mobile/lib/ui-kit/RichText/RichText.js +3 -2
  514. package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
  515. package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +2 -2
  516. package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
  517. package/mobile/lib/ui-kit/Select/Select.js +5 -3
  518. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  519. package/mobile/src/common.css +24 -5
  520. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
  521. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +3 -3
  522. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +52 -102
  523. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +38 -109
  524. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +75 -64
  525. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +44 -31
  526. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +43 -93
  527. package/mobile/src/components/ApplicationForm/InputControl.tsx +35 -0
  528. package/mobile/src/components/ApplicationForm/SelectControl.tsx +54 -0
  529. package/mobile/src/components/ApplicationForm/models.ts +6 -0
  530. package/mobile/src/components/ApplicationForm/normalizeSelected.ts +4 -0
  531. package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +60 -0
  532. package/{src/components/ApplicationForm/renderSelects.tsx → mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx} +22 -6
  533. package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +60 -0
  534. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +76 -0
  535. package/mobile/src/components/ApplicationForm/renderRegion.tsx +36 -0
  536. package/{src/components/ApplicationForm/renderBankOffices.tsx → mobile/src/components/ApplicationForm/renderRegionDepartment.tsx} +16 -7
  537. package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +68 -0
  538. package/mobile/src/components/ApplicationForm/useForm.ts +65 -0
  539. package/mobile/src/components/ApplicationForm/validate.ts +22 -0
  540. package/mobile/src/components/Bonus/Bonus.tsx +12 -7
  541. package/mobile/src/components/Carousel/Carousel.example.json +2 -1
  542. package/mobile/src/components/Carousel/Carousel.tsx +6 -2
  543. package/mobile/src/components/Carousel/CarouselContent.ts +2 -0
  544. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
  545. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +5 -10
  546. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
  547. package/mobile/src/components/ExchangeRateOffice/Currencies.ts +8 -0
  548. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +32 -0
  549. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +60 -0
  550. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.ui.json +1 -0
  551. package/mobile/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +36 -0
  552. package/mobile/src/components/ExchangeRateOffice/renderCurrencies.tsx +73 -0
  553. package/mobile/src/components/ExchangeRateOffice/renderTableHeader.tsx +11 -0
  554. package/mobile/src/components/Footer/FooterContent.ts +1 -1
  555. package/mobile/src/components/Headline/Headline.tsx +1 -5
  556. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +0 -2
  557. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
  558. package/mobile/src/components/ProductTile/ProductTile.tsx +11 -6
  559. package/mobile/src/components/ProductTile/ProductTileContent.ts +1 -1
  560. package/mobile/src/components/ProductTile/renderImage.tsx +3 -2
  561. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
  562. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +82 -0
  563. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
  564. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -0
  565. package/mobile/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
  566. package/mobile/src/components/Tile/Tile.example.json +2 -1
  567. package/mobile/src/components/Tile/Tile.tsx +26 -17
  568. package/mobile/src/components/Tile/TileContent.ts +2 -0
  569. package/mobile/src/ui-kit/Button/getRegularButtonClasses.ts +1 -1
  570. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
  571. package/mobile/src/ui-kit/RichText/RichText.tsx +5 -2
  572. package/mobile/src/ui-kit/RichText/RichTextProps.ts +2 -2
  573. package/mobile/src/ui-kit/Select/Select.tsx +19 -4
  574. package/package.json +2 -2
  575. package/src/common.css +24 -5
  576. package/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
  577. package/src/components/ApplicationForm/ApplicationForm.tsx +3 -3
  578. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +52 -102
  579. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +38 -109
  580. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +75 -64
  581. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +44 -31
  582. package/src/components/ApplicationForm/ApplicationFormWed.tsx +43 -93
  583. package/src/components/ApplicationForm/InputControl.tsx +35 -0
  584. package/src/components/ApplicationForm/SelectControl.tsx +54 -0
  585. package/src/components/ApplicationForm/models.ts +6 -0
  586. package/src/components/ApplicationForm/normalizeSelected.ts +4 -0
  587. package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +60 -0
  588. package/{mobile/src/components/ApplicationForm/renderSelects.tsx → src/components/ApplicationForm/renderAcquiringRegion.tsx} +22 -6
  589. package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +60 -0
  590. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +76 -0
  591. package/src/components/ApplicationForm/renderRegion.tsx +36 -0
  592. package/{mobile/src/components/ApplicationForm/renderBankOffices.tsx → src/components/ApplicationForm/renderRegionDepartment.tsx} +16 -7
  593. package/src/components/ApplicationForm/renderWedDataOrganization.tsx +68 -0
  594. package/src/components/ApplicationForm/useForm.ts +65 -0
  595. package/src/components/ApplicationForm/validate.ts +22 -0
  596. package/src/components/Blocks.ts +4 -0
  597. package/src/components/Bonus/Bonus.tsx +12 -7
  598. package/src/components/Carousel/Carousel.example.json +2 -1
  599. package/src/components/Carousel/Carousel.fixture.tsx +2 -1
  600. package/src/components/Carousel/Carousel.tsx +6 -2
  601. package/src/components/Carousel/CarouselContent.ts +2 -0
  602. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +4 -2
  603. package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +5 -10
  604. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +4 -2
  605. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
  606. package/src/components/ExchangeRateOffice/Currencies.ts +8 -0
  607. package/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +32 -0
  608. package/src/components/ExchangeRateOffice/ExchangeRateOffice.fixture.tsx +78 -0
  609. package/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +60 -0
  610. package/src/components/ExchangeRateOffice/ExchangeRateOffice.ui.json +1 -0
  611. package/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +36 -0
  612. package/src/components/ExchangeRateOffice/renderCurrencies.tsx +73 -0
  613. package/src/components/ExchangeRateOffice/renderTableHeader.tsx +11 -0
  614. package/src/components/Footer/FooterContent.ts +1 -1
  615. package/src/components/Headline/Headline.tsx +1 -5
  616. package/src/components/ProductBlock/ProductBlock.fixture.tsx +14 -22
  617. package/src/components/ProductBlock/ProductBlock.tsx +5 -6
  618. package/src/components/ProductBlock/ProductBlockContent.ts +0 -2
  619. package/src/components/ProductBlock/ProductBlockInner.tsx +21 -25
  620. package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
  621. package/src/components/ProductTile/ProductTile.fixture.tsx +6 -2
  622. package/src/components/ProductTile/ProductTile.tsx +11 -6
  623. package/src/components/ProductTile/ProductTileContent.ts +1 -1
  624. package/src/components/ProductTile/renderImage.tsx +3 -2
  625. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +10 -0
  626. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +37 -0
  627. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +82 -0
  628. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +20 -0
  629. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +22 -0
  630. package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +22 -0
  631. package/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
  632. package/src/components/TariffsTable/EmbeddableCellData.tsx +1 -4
  633. package/src/components/Tile/Tile.example.json +2 -1
  634. package/src/components/Tile/Tile.fixture.tsx +5 -0
  635. package/src/components/Tile/Tile.tsx +26 -17
  636. package/src/components/Tile/TileContent.ts +2 -0
  637. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +14 -0
  638. package/src/ui-kit/Button/getRegularButtonClasses.ts +1 -1
  639. package/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
  640. package/src/ui-kit/RichText/RichText.tsx +5 -2
  641. package/src/ui-kit/RichText/RichTextProps.ts +2 -2
  642. package/src/ui-kit/Select/Select.tsx +19 -4
  643. package/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  644. package/bundle/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  645. package/bundle/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  646. package/dist/components/ApplicationForm/WrapperSelect.js +0 -13
  647. package/dist/components/ApplicationForm/WrapperSelect.js.map +0 -1
  648. package/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  649. package/dist/components/ApplicationForm/normalizeSelectedRegion.js +0 -5
  650. package/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
  651. package/dist/components/ApplicationForm/renderBankOffices.js +0 -7
  652. package/dist/components/ApplicationForm/renderBankOffices.js.map +0 -1
  653. package/dist/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  654. package/dist/components/ApplicationForm/renderDataOrganization.js +0 -7
  655. package/dist/components/ApplicationForm/renderDataOrganization.js.map +0 -1
  656. package/dist/components/ApplicationForm/renderSelects.js +0 -8
  657. package/dist/components/ApplicationForm/renderSelects.js.map +0 -1
  658. package/dist/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  659. package/dist/components/ApplicationForm/useFormHandlers.js +0 -11
  660. package/dist/components/ApplicationForm/useFormHandlers.js.map +0 -1
  661. package/lib/components/ApplicationForm/WrapperSelect.js +0 -11
  662. package/lib/components/ApplicationForm/WrapperSelect.js.map +0 -1
  663. package/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  664. package/lib/components/ApplicationForm/normalizeSelectedRegion.js +0 -2
  665. package/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
  666. package/lib/components/ApplicationForm/renderBankOffices.js +0 -4
  667. package/lib/components/ApplicationForm/renderBankOffices.js.map +0 -1
  668. package/lib/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  669. package/lib/components/ApplicationForm/renderDataOrganization.js +0 -4
  670. package/lib/components/ApplicationForm/renderDataOrganization.js.map +0 -1
  671. package/lib/components/ApplicationForm/renderSelects.js +0 -5
  672. package/lib/components/ApplicationForm/renderSelects.js.map +0 -1
  673. package/lib/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  674. package/lib/components/ApplicationForm/useFormHandlers.js +0 -8
  675. package/lib/components/ApplicationForm/useFormHandlers.js.map +0 -1
  676. package/mobile/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  677. package/mobile/bundle/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  678. package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  679. package/mobile/dist/components/ApplicationForm/WrapperSelect.d.ts +0 -11
  680. package/mobile/dist/components/ApplicationForm/WrapperSelect.js +0 -13
  681. package/mobile/dist/components/ApplicationForm/WrapperSelect.js.map +0 -1
  682. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  683. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js +0 -5
  684. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
  685. package/mobile/dist/components/ApplicationForm/renderBankOffices.d.ts +0 -13
  686. package/mobile/dist/components/ApplicationForm/renderBankOffices.js +0 -7
  687. package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +0 -1
  688. package/mobile/dist/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  689. package/mobile/dist/components/ApplicationForm/renderDataOrganization.js +0 -7
  690. package/mobile/dist/components/ApplicationForm/renderDataOrganization.js.map +0 -1
  691. package/mobile/dist/components/ApplicationForm/renderSelects.d.ts +0 -11
  692. package/mobile/dist/components/ApplicationForm/renderSelects.js +0 -8
  693. package/mobile/dist/components/ApplicationForm/renderSelects.js.map +0 -1
  694. package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  695. package/mobile/dist/components/ApplicationForm/useFormHandlers.js +0 -11
  696. package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +0 -1
  697. package/mobile/lib/components/ApplicationForm/WrapperSelect.d.ts +0 -11
  698. package/mobile/lib/components/ApplicationForm/WrapperSelect.js +0 -11
  699. package/mobile/lib/components/ApplicationForm/WrapperSelect.js.map +0 -1
  700. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
  701. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js +0 -2
  702. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
  703. package/mobile/lib/components/ApplicationForm/renderBankOffices.d.ts +0 -13
  704. package/mobile/lib/components/ApplicationForm/renderBankOffices.js +0 -4
  705. package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +0 -1
  706. package/mobile/lib/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
  707. package/mobile/lib/components/ApplicationForm/renderDataOrganization.js +0 -4
  708. package/mobile/lib/components/ApplicationForm/renderDataOrganization.js.map +0 -1
  709. package/mobile/lib/components/ApplicationForm/renderSelects.d.ts +0 -11
  710. package/mobile/lib/components/ApplicationForm/renderSelects.js +0 -5
  711. package/mobile/lib/components/ApplicationForm/renderSelects.js.map +0 -1
  712. package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +0 -9
  713. package/mobile/lib/components/ApplicationForm/useFormHandlers.js +0 -8
  714. package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +0 -1
  715. package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +0 -32
  716. package/mobile/src/components/ApplicationForm/normalizeSelectedRegion.ts +0 -4
  717. package/mobile/src/components/ApplicationForm/renderDataOrganization.tsx +0 -78
  718. package/mobile/src/components/ApplicationForm/useFormHandlers.ts +0 -18
  719. package/src/components/ApplicationForm/WrapperSelect.tsx +0 -32
  720. package/src/components/ApplicationForm/normalizeSelectedRegion.ts +0 -4
  721. package/src/components/ApplicationForm/renderDataOrganization.tsx +0 -78
  722. package/src/components/ApplicationForm/useFormHandlers.ts +0 -18
@@ -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
+ };
@@ -29,4 +29,4 @@ export type SubMenuItem = LinkProps & IconProps;
29
29
  /**
30
30
  * @title Подвал
31
31
  */
32
- export type FooterContent = UniBlockContent & {};
32
+ export type FooterContent = UniBlockContent;
@@ -42,11 +42,7 @@ export const Headline = JSX<HeadlineProps>(
42
42
  />
43
43
  ) : null}
44
44
  {description ? (
45
- <Paragraph
46
- color="group-data-secondary:text-white/80"
47
- size={versionStyle.descriptionSize as TextSize}
48
- align={align}
49
- >
45
+ <Paragraph size={versionStyle.descriptionSize as TextSize} align={align}>
50
46
  {description}
51
47
  </Paragraph>
52
48
  ) : null}
@@ -76,12 +76,24 @@ export const PRODUCT_BLOCK: ProductBlockContent = {
76
76
  buttons: buttons,
77
77
  };
78
78
 
79
+ const PRODUCT_BLOCK_WITH_BACK_BUTTON: ProductBlockContent = {
80
+ backwardButton,
81
+ headlineVersion: 'L',
82
+ title: 'Потребительский кредит наличными',
83
+ description:
84
+ 'Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт.',
85
+ benefitsCountOfRow: 2,
86
+ benefits,
87
+ benefitsVersion: 'normal',
88
+ buttons,
89
+ image,
90
+ };
91
+
79
92
  export default {
80
93
  'primary with back button': (
81
94
  <div className="container grid grid-cols-12">
82
95
  <ProductBlock
83
96
  className="col-span-12"
84
- backwardButton={backwardButton}
85
97
  headlineVersion="L"
86
98
  title="Потребительский кредит наличными"
87
99
  description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
@@ -97,15 +109,7 @@ export default {
97
109
  <div className="container grid grid-cols-12">
98
110
  <ProductBlock
99
111
  className="col-span-12"
100
- backwardButton={backwardButton}
101
- headlineVersion="L"
102
- title="Потребительский кредит наличными"
103
- description="Кредит наличными без залога и поручительства. Потребительский кредит на любые цели. Нужен только паспорт."
104
- benefitsCountOfRow={2}
105
- benefits={benefits}
106
- benefitsVersion="normal"
107
- buttons={buttons}
108
- image={image}
112
+ {...PRODUCT_BLOCK_WITH_BACK_BUTTON}
109
113
  directionRight={false}
110
114
  />
111
115
  </div>
@@ -201,16 +205,4 @@ export default {
201
205
  />
202
206
  </div>
203
207
  ),
204
- 'secondary with footnote': (
205
- <div className="container grid grid-cols-12">
206
- <ProductBlock
207
- className="col-span-12"
208
- footnote="*в соответствии с Указанием Банка России от 28.12.2015 № 3921-У"
209
- headlineVersion="L"
210
- image={image}
211
- title="Оплата проходит в 180 странах мира"
212
- version="secondary"
213
- />
214
- </div>
215
- ),
216
208
  };
@@ -6,6 +6,7 @@ import { joinList } from '../../utils/joinList';
6
6
  import type { ProductBlockContent } from './ProductBlockContent';
7
7
  import { ProductBlockInner } from './ProductBlockInner';
8
8
  import { renderBackwardButton } from './renderBackwardButton';
9
+ import { style } from '../../utils/style';
9
10
 
10
11
  export interface ProductBlockProps extends ProductBlockContent, UniBlockProps {}
11
12
 
@@ -17,23 +18,21 @@ export const ProductBlock = JSX<ProductBlockProps>((props) => {
17
18
 
18
19
  return (
19
20
  <BlockWrapper
20
- className={`overflow-hidden p-12 flex flex-col box-border min-h-[454px] ${className}`}
21
+ className={style('overflow-hidden p-12 flex flex-col box-border min-h-[454px]', className)}
21
22
  version={version}
22
23
  {...rest}
23
24
  >
24
- {backwardButton?.text
25
- ? renderBackwardButton(backwardButton, buttonVersion, 'mb-10 -mt-2.5')
26
- : null}
25
+ {backwardButton?.text ? renderBackwardButton(backwardButton, buttonVersion) : null}
27
26
  {breadcrumbs?.length ? (
28
27
  <div className="text-xs-light mb-6">
29
- {joinList(<span className={`mx-2 ${breadcrumbStyle}`}>/</span>)(
28
+ {joinList(<span className={style('mx-2', breadcrumbStyle)}>/</span>)(
30
29
  breadcrumbs.map((breadcrumb, i) => (
31
30
  <Breadcrumb key={String(i)} className={breadcrumbStyle} {...breadcrumb} />
32
31
  )),
33
32
  )}
34
33
  </div>
35
34
  ) : null}
36
- <ProductBlockInner version={version} {...rest} />
35
+ <ProductBlockInner className="mt-10" version={version} {...rest} />
37
36
  </BlockWrapper>
38
37
  );
39
38
  });
@@ -1,5 +1,4 @@
1
1
  import type { BulletsProps } from '../../model/Bullets';
2
- import type { Footnote } from '../../model/Footnote';
3
2
  import type { HeadlineProps } from '../../model/HeadlineType';
4
3
  import type { IconVersion } from '../../model/IconVersion';
5
4
  import type { UniBlockContent } from '../../model/JSXBlock';
@@ -14,7 +13,6 @@ export type ProductBlockInnerContent = HeadlineProps &
14
13
  RichTextProps &
15
14
  ListContent &
16
15
  ButtonContent &
17
- Footnote &
18
16
  ImageContent &
19
17
  BulletsProps & {
20
18
  /**
@@ -22,7 +22,6 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
22
22
  benefits,
23
23
  benefitsVersion,
24
24
  buttons,
25
- footnote,
26
25
  image,
27
26
  __html,
28
27
  items,
@@ -37,7 +36,7 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
37
36
  return (
38
37
  <div className={style('flex grow justify-between items-stretch h-full', className)}>
39
38
  {image?.src ? (
40
- <Img className={`mt-[-50px] ${directionRight ? 'order-2' : ''}`} image={image} />
39
+ <Img className={style('mt-[-50px]', directionRight ? 'order-2' : '')} image={image} />
41
40
  ) : null}
42
41
  <div className={style('flex flex-col', textBlockClassName)}>
43
42
  <Headline
@@ -47,29 +46,26 @@ export const ProductBlockInner = JSX<ProductBlockInnerProps>(
47
46
  headlineVersion={headlineVersion}
48
47
  align="text-left"
49
48
  />
50
- <div className="flex flex-col justify-between h-full">
51
- <BaseTile buttons={renderButtonsSection(buttons)}>
52
- {benefitsCount ? (
53
- <div className={benefitsContainerStyles}>
54
- {benefits?.map(renderBenefit(version, benefitsVersion))}
55
- </div>
56
- ) : null}
57
- {__html ? (
58
- <div className="mt-5">
59
- <RichText __html={__html} />
60
- </div>
61
- ) : null}
62
- {items?.length ? (
63
- <List
64
- className="mt-5 text-h6"
65
- items={items}
66
- itemClassName="mb-[7px]"
67
- isDotted={isDotted}
68
- />
69
- ) : null}
70
- </BaseTile>
71
- {footnote ? <p className="text-m-light pt-12">{footnote}</p> : null}
72
- </div>
49
+ <BaseTile buttons={renderButtonsSection(buttons)}>
50
+ {benefitsCount ? (
51
+ <div className={benefitsContainerStyles}>
52
+ {benefits?.map(renderBenefit(version, benefitsVersion))}
53
+ </div>
54
+ ) : null}
55
+ {__html ? (
56
+ <div className="mt-5">
57
+ <RichText __html={__html} />
58
+ </div>
59
+ ) : null}
60
+ {items?.length ? (
61
+ <List
62
+ className="mt-5 text-h6"
63
+ items={items}
64
+ itemClassName="mb-[7px]"
65
+ isDotted={isDotted}
66
+ />
67
+ ) : null}
68
+ </BaseTile>
73
69
  </div>
74
70
  </div>
75
71
  );
@@ -7,7 +7,7 @@ import { style } from '../../utils/style';
7
7
  export function renderBackwardButton(
8
8
  button: BackwardButtonProps,
9
9
  version: ButtonVersion,
10
- className: string,
10
+ className?: string,
11
11
  ) {
12
12
  const { text, href, target } = button;
13
13
  const iconVersion = version === 'primary' ? 'white' : 'black';
@@ -135,7 +135,11 @@ export default {
135
135
  <ProductTile className="col-span-6" {...PRODUCT_TILE} />
136
136
  </div>
137
137
  ),
138
- secondary: <ProductTile className="col-span-6" {...PRODUCT_TILE} version="secondary" />,
138
+ secondary: (
139
+ <div className="container grid grid-cols-12">
140
+ <ProductTile className="col-span-6" {...PRODUCT_TILE} version="secondary" />
141
+ </div>
142
+ ),
139
143
  pension: (
140
144
  <div className="container grid grid-cols-12">
141
145
  <ProductTile
@@ -216,7 +220,7 @@ export default {
216
220
  benefits={benefits}
217
221
  buttons={buttons2}
218
222
  image={building}
219
- isImageOnRightSide={false}
223
+ directionRight={false}
220
224
  />
221
225
  </div>
222
226
  ),
@@ -23,18 +23,18 @@ export const ProductTile = JSX<ProductTileProps>(
23
23
  benefits = [],
24
24
  buttons,
25
25
  image,
26
- isImageOnRightSide = true,
26
+ directionRight = true,
27
27
  ...rest
28
28
  }) => (
29
29
  <BlockWrapper
30
30
  className={style(
31
- 'overflow-hidden p-9 box-border relative min-h-[364px]',
31
+ 'overflow-hidden p-9 box-border relative min-h-[364px] flex flex-col justify-between',
32
32
  getTileRightPadding(className),
33
33
  className,
34
34
  )}
35
35
  {...rest}
36
36
  >
37
- <div className={style('flex flex-col', isImageOnRightSide ? '' : 'items-end')}>
37
+ <div className={style('flex flex-col', directionRight ? '' : 'items-end')}>
38
38
  <Headline
39
39
  className={style('!p-0 !bg-transparent z-10', title || description ? 'mb-3.5' : '')}
40
40
  title={title}
@@ -45,9 +45,11 @@ export const ProductTile = JSX<ProductTileProps>(
45
45
  />
46
46
  {renderBenefits(benefits, image)}
47
47
  {renderAdditionalDescription(additionalDescription, image)}
48
- {renderButtonsSection(buttons, { className: 'mt-5 z-10 text-l' })}
49
48
  </div>
50
- {renderImage(image, isImageOnRightSide)}
49
+ {renderButtonsSection(buttons, {
50
+ className: style('mt-5 text-l', directionRight ? '' : 'justify-end'),
51
+ })}
52
+ {renderImage(image, directionRight)}
51
53
  </BlockWrapper>
52
54
  ),
53
55
  );
@@ -62,7 +64,10 @@ function renderBenefits(benefits: Benefit[], image?: Picture) {
62
64
 
63
65
  return (
64
66
  <div
65
- className={`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline ${benefitsWidth}`}
67
+ className={style(
68
+ 'z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline',
69
+ benefitsWidth,
70
+ )}
66
71
  >
67
72
  {benefits.length ? benefits.map(renderBenefit) : null}
68
73
  </div>
@@ -37,5 +37,5 @@ export type ProductTileContent = UniBlockContent &
37
37
  */
38
38
  benefits?: Benefit[];
39
39
  /** @title Картинка справа/текст слева */
40
- isImageOnRightSide?: boolean;
40
+ directionRight?: boolean;
41
41
  };
@@ -1,14 +1,15 @@
1
1
  import type { Picture } from '../../model/Picture';
2
2
  import { Img } from '../../ui-kit/Img/Img';
3
+ import { style } from '../../utils/style';
3
4
 
4
- export function renderImage(image?: Picture, isImageOnRightSide?: boolean) {
5
+ export function renderImage(image?: Picture, directionRight?: boolean) {
5
6
  if (!image?.src) {
6
7
  return null;
7
8
  }
8
9
 
9
10
  return (
10
11
  <Img
11
- className={`absolute ${isImageOnRightSide ? 'right-0' : 'left-0'} bottom-0`}
12
+ className={style('absolute', directionRight ? 'right-0' : 'left-0', 'bottom-0')}
12
13
  image={image}
13
14
  />
14
15
  );
@@ -0,0 +1,10 @@
1
+ {
2
+ "title": "Заголовок",
3
+ "__html": "<p>Описание</p>",
4
+ "button": {
5
+ "text": "Информация о регионе",
6
+ "version": "link",
7
+ "icon": { "format": "webp", "size": { "width": 16, "height": 16 } },
8
+ "iconRight": { "format": "webp", "size": { "width": 16, "height": 16 } }
9
+ }
10
+ }
@@ -0,0 +1,37 @@
1
+ import '../../setup-fixture';
2
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
3
+ import { RepresentativeOfficeInfo } from './RepresentativeOfficeInfo';
4
+
5
+ const button: ButtonWithIconProps = {
6
+ text: 'Информация о регионе',
7
+ target: '_blank',
8
+ version: 'secondary',
9
+ icon: { icon: 'ArrowTopRightIcon', iconVersion: 'color' },
10
+ };
11
+
12
+ const description = `
13
+ <p><strong>Представительство АО «Россельхозбанк» в Республике Беларусь (г. Минск) зарегистрировано в октябре 2008 года</strong></p>
14
+ <br>
15
+ <p>Основными задачи Представительства</p>
16
+ <ul>
17
+ <li>установление и развитие деловых связей с белорусскими финансовыми институтами и компаниями АПК для реализации совместных проектов</li>
18
+ <li>организация взаимодействия с государственными органами власти и международными организациями, находящимися в Республике Бкларусь</li>
19
+ </ul>
20
+ `;
21
+
22
+ export default {
23
+ default: (
24
+ <div className="container grid grid-cols-12">
25
+ <RepresentativeOfficeInfo
26
+ className="col-span-6"
27
+ title="Представительство в Республике Беларусь"
28
+ __html={description}
29
+ address="Республика Беларусь, 220004, г. Минск, ул. Немига, д. 40"
30
+ telephone="(+375-17)-226-4578"
31
+ email="prshbrb@mail.ru"
32
+ button={button}
33
+ version="primary"
34
+ />
35
+ </div>
36
+ ),
37
+ };
@@ -0,0 +1,82 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
3
+ import type { Picture } from '../../model/Picture';
4
+ import type { UniBlockProps } from '../../model/JSXBlock';
5
+ import type { IconName } from '../../icons/IconName';
6
+ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
7
+ import { getIconWithVersion } from '../../utils/getIconWithVersion';
8
+ import { Heading } from '../../ui-kit/Heading/Heading';
9
+ import { Icon } from '../../ui-kit/Icon/Icon';
10
+ import { Img } from '../../ui-kit/Img/Img';
11
+ import { RichText } from '../../ui-kit/RichText/RichText';
12
+ import { Text } from '../../ui-kit/Text/Text';
13
+ import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
14
+ import { style } from '../../utils/style';
15
+
16
+ export interface RepresentativeOfficeInfoProps
17
+ extends RepresentativeOfficeInfoContent,
18
+ UniBlockProps {}
19
+
20
+ export const RepresentativeOfficeInfo = JSX<RepresentativeOfficeInfoProps>(
21
+ ({
22
+ address,
23
+ email,
24
+ telephone,
25
+ button,
26
+ className = '',
27
+ __html,
28
+ icon,
29
+ title,
30
+ version = 'primary',
31
+ ...rest
32
+ }) => (
33
+ <BlockWrapper
34
+ className={style('box-border text-left p-9', className)}
35
+ version={version}
36
+ {...rest}
37
+ >
38
+ <div className="w-full flex justify-between">
39
+ {title ? <Heading headingType="h4" as="h3" className="mb-6" title={title} /> : null}
40
+ {renderIconBlock(icon)}
41
+ </div>
42
+ <div className="w-full">
43
+ {__html ? renderDescriptionBlock(__html) : null}
44
+ {renderBlock('Адрес', address, 'GeolocationIcon')}
45
+ {renderBlock('Телефон', telephone, 'PhoneIcon')}
46
+ {renderBlock('E-mail', email, 'MailIcon')}
47
+ {button?.text
48
+ ? renderButtonsSection([button], {
49
+ className: 'mb-6',
50
+ })
51
+ : null}
52
+ </div>
53
+ </BlockWrapper>
54
+ ),
55
+ );
56
+
57
+ const renderIconBlock = (icon?: Picture) => (
58
+ <div className="self-end">
59
+ {icon?.src ? <Img image={icon} /> : null}
60
+ {icon?.icon ? <Img image={getIconWithVersion(icon)} asSVG /> : null}
61
+ </div>
62
+ );
63
+
64
+ const renderDescriptionBlock = (__html?: string) => (
65
+ <div className="border-b border-main-divider pb-5 my-5">
66
+ <RichText __html={__html} />
67
+ </div>
68
+ );
69
+
70
+ const renderBlock = (blockName: string, data?: string, iconName?: IconName | undefined) => (
71
+ <div className="flex mb-4">
72
+ <Icon className="pr-4" iconVersion="black" name={iconName} width="24" height="24" asSVG />
73
+ <div className="flex flex-col first:pb-1">
74
+ <Text size="text-m-light">{blockName}</Text>
75
+ {data ? (
76
+ <Text size="text-h6" color="text-green">
77
+ {data}
78
+ </Text>
79
+ ) : null}
80
+ </div>
81
+ </div>
82
+ );
@@ -0,0 +1,20 @@
1
+ {
2
+ "content": {
3
+ "__html": {
4
+ "ui:widget": "html"
5
+ },
6
+ "button": {
7
+ "icon": {
8
+ "ui:field": "icon"
9
+ },
10
+ "iconRight": {
11
+ "ui:field": "icon"
12
+ }
13
+ }
14
+ },
15
+ "style": {
16
+ "ui:options": {
17
+ "maxCols": 6
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,22 @@
1
+ import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
2
+ import type { IconProps } from '../../model/Picture';
3
+ import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
4
+ import type { TitleProps } from '../../model/HeadlineType';
5
+ import type { UniBlockContent } from '../../model/JSXBlock';
6
+
7
+ /**
8
+ * @title Блок с информацией о представительстве
9
+ */
10
+ export type RepresentativeOfficeInfoContent = UniBlockContent &
11
+ TitleProps &
12
+ RichTextProps &
13
+ IconProps & {
14
+ /** @title Адрес */
15
+ address?: string;
16
+ /** @title Телефон (факс) */
17
+ telephone?: string;
18
+ /** @title E-mail */
19
+ email?: string;
20
+ /** @title Кнопка */
21
+ button?: ButtonWithIconProps;
22
+ };
@@ -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
  });