@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
@@ -7,12 +7,12 @@ const renderBlock_1 = require("../../BlockRenderer/renderBlock");
7
7
  const renderChildren_1 = require("../../BlockRenderer/renderChildren");
8
8
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
9
9
  const SwipeListContainer_1 = require("../../ui-kit/SwipeListControl/SwipeListContainer");
10
+ const SwipeListControlDots_1 = require("../../ui-kit/SwipeListControl/SwipeListControlDots");
10
11
  const useSwipeListScroll_1 = require("../../ui-kit/SwipeListControl/useSwipeListScroll");
11
12
  const style_1 = require("../../utils/style");
12
13
  const CarouselScrollButtons_1 = require("./CarouselScrollButtons");
13
- const SwipeListControlDots_1 = require("../../ui-kit/SwipeListControl/SwipeListControlDots");
14
14
  const ITEMS_GAP = 4;
15
- exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, showDots = false, ...rest }) => {
15
+ exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, showDots = false, isAlignCenter = false, ...rest }) => {
16
16
  const { blocks: childBlocks = [] } = rest.block || {};
17
17
  const count = itemCount || childBlocks?.length;
18
18
  const [activeIndex, setActiveIndex] = (0, hooks_1.useState)(Math.floor((visibleItemCount || 0) / 2));
@@ -24,7 +24,7 @@ exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemC
24
24
  });
25
25
  const [dotsActiveIndex] = scroll.visibleIndicesRange;
26
26
  const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
27
- return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(getPaddingStyle(isPadding), 'group-data-secondary:bg-primary-main group-data-secondary:text-white', className), ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative max-w-full", children: [(0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: (0, renderChildren_1.renderChildren)({
27
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(getPaddingStyle(isPadding), 'group-data-secondary:bg-primary-main group-data-secondary:text-white', className), ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(getAlignStyle(isAlignCenter), 'relative max-w-full'), children: [(0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: (0, renderChildren_1.renderChildren)({
28
28
  ...rest,
29
29
  renderProps: isBankHistoryCarousel
30
30
  ? (block, options) => (0, renderBlock_1.renderBlock)(block, options, {
@@ -48,5 +48,6 @@ exports.Carousel.childrenTypes = [
48
48
  'CarouselEventCard',
49
49
  ];
50
50
  const getPaddingStyle = (isPadding) => (isPadding ? 'p-12' : '');
51
+ const getAlignStyle = (isAlignCenter) => isAlignCenter ? 'flex justify-center' : '';
51
52
  const renderDots = (containerRef, dotsActiveIndex, itemCount) => ((0, jsx_runtime_1.jsx)(SwipeListControlDots_1.SwipeListControlDots, { containerRef: containerRef, activeIndex: dotsActiveIndex, dotCount: itemCount, listType: 'horizontal-list' }));
52
53
  //# sourceMappingURL=Carousel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,iEAA8D;AAC9D,uEAAoE;AAEpE,4DAAyD;AACzD,yFAAsF;AACtF,yFAAsF;AACtF,6CAA0C;AAE1C,mEAAgE;AAChE,6FAA0F;AAO1F,MAAM,SAAS,GAAG,CAAC,CAAC;AAEP,QAAA,QAAQ,GAA4B,IAAA,aAAG,EAClD,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,EACT,gBAAgB,EAChB,MAAM,GAAG,IAAI,EACb,QAAQ,GAAG,KAAK,EAChB,YAAY,GAAG,IAAI,EACnB,SAAS,GAAG,IAAI,EAChB,QAAQ,GAAG,KAAK,EAChB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,EAAE,MA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,CACF,CAAC;AAEF,gBAAQ,CAAC,aAAa,GAAG;IACvB,cAAc;IACd,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,qBAAqB;IACrB,sBAAsB;IACtB,4BAA4B;IAC5B,qBAAqB;IACrB,sBAAsB;IACtB,wBAAwB;IACxB,mBAAmB;CACpB,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,SAAkB,EAAU,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAElF,MAAM,aAAa,GAAG,CAAC,aAAsB,EAAU,EAAE,CACvD,aAAa,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC;AAE7C,MAAM,UAAU,GAAG,CACjB,YAAgD,EAChD,eAAuB,EACvB,SAA6B,EAC7B,EAAE,CAAC,CACH,uBAAC,2CAAoB,IACnB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,eAAe,EAC5B,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAE,iBAAiB,GAC3B,CACH,CAAC"}
@@ -16,4 +16,6 @@ export declare type CarouselContent = UniBlockContent & {
16
16
  isCyclic?: boolean;
17
17
  /** @title Внутренний отступ */
18
18
  isPadding?: boolean;
19
+ /** @title Выравнивать по центру */
20
+ isAlignCenter?: boolean;
19
21
  };
@@ -12,6 +12,6 @@ const cardStyleMap = {
12
12
  black: 'bg-black',
13
13
  white: 'bg-white',
14
14
  };
15
- exports.CarouselCatalogCard = (0, uni_jsx_1.JSX)(({ className = '', title, description, image, price, button, colors, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${className}`, ...rest, children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-4", children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [(0, jsx_runtime_1.jsx)("div", { className: "mr-1.5", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }) }), colors.map(renderColorOption)] })) : null, price ? ((0, jsx_runtime_1.jsxs)(Text_1.Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, (0, renderButtonsSection_1.renderButtonsSection)([button], { buttonClassName: 'mt-5 w-full' })] })));
15
+ exports.CarouselCatalogCard = (0, uni_jsx_1.JSX)(({ className = '', title, description, image, price, button, colors, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${className}`, ...rest, children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-4", children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex mb-4 text-secondary-text", children: [(0, jsx_runtime_1.jsx)("div", { className: "mr-1.5", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? ((0, jsx_runtime_1.jsxs)(Text_1.Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, (0, renderButtonsSection_1.renderButtonsSection)([button], { buttonClassName: 'mt-5 w-full' })] })));
16
16
  const renderColorOption = (color, i) => ((0, jsx_runtime_1.jsx)("div", { role: "figure", className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
17
17
  //# sourceMappingURL=CarouselCatalogCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselCatalogCard.js","sourceRoot":"","sources":["../../../src/components/CarouselCatalogCard/CarouselCatalogCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,gEAA6D;AAC7D,iDAA8C;AAK9C,MAAM,YAAY,GAAwC;IACxD,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;CAClB,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACjF,wBAAC,2BAAY,IACX,SAAS,EAAE,qFAAqF,SAAS,EAAE,KACvG,IAAI,aAEP,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,0BAA0B,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9E,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAChF,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,YAAY,YACzD,WAAW,GACF,GACR,CACP,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,iCAAK,SAAS,EAAC,4CAA4C,aACzD,gCAAK,SAAS,EAAC,QAAQ,YACrB,uBAAC,WAAI,0GAAyB,GAC1B,EACL,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAC1B,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,CAAC,CAAC,CACP,wBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,WAAW,aACnC,KAAK,oBACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,IAAA,2CAAoB,EAAC,CAAC,MAAM,CAAC,EAAE,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC,IACtD,CAChB,CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAA0B,EAAE,CAAS,EAAE,EAAE,CAAC,CACnE,gCACE,IAAI,EAAC,QAAQ,EAEb,SAAS,EAAE,qEAAqE,YAAY,CAAC,KAAK,CAAC,EAAE,IADhG,MAAM,CAAC,CAAC,CAAC,CAEd,CACH,CAAC"}
1
+ {"version":3,"file":"CarouselCatalogCard.js","sourceRoot":"","sources":["../../../src/components/CarouselCatalogCard/CarouselCatalogCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,gEAA6D;AAC7D,iDAA8C;AAK9C,MAAM,YAAY,GAAwC;IACxD,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;CAClB,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,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C;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAA0B,EAAE,CAAS,EAAE,EAAE,CAAC,CACnE,gCACE,IAAI,EAAC,QAAQ,EAEb,SAAS,EAAE,qEAAqE,YAAY,CAAC,KAAK,CAAC,EAAE,IADhG,MAAM,CAAC,CAAC,CAAC,CAEd,CACH,CAAC"}
@@ -5,7 +5,5 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
6
  const RichText_1 = require("../../ui-kit/RichText/RichText");
7
7
  const style_1 = require("../../utils/style");
8
- exports.CarouselRichTextCard = (0, uni_jsx_1.JSX)(({ className = '', __html, richVersion = 'striped', ...rest }) => {
9
- return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('p-9 border border-gray min-w-96', richVersion, className), ...rest, children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) }));
10
- });
8
+ exports.CarouselRichTextCard = (0, uni_jsx_1.JSX)(({ className = '', __html, richVersion = 'striped', ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('p-9 border border-gray min-w-96', className), ...rest, children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html, richVersion: richVersion }) })));
11
9
  //# sourceMappingURL=CarouselRichTextCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselRichTextCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRichTextCard/CarouselRichTextCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6DAA0D;AAC1D,6CAA0C;AAK7B,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,WAAW,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC/D,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,iCAAiC,EAAE,WAAW,EAAE,SAAS,CAAC,KACvE,IAAI,YAER,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,GAAI,GACf,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"CarouselRichTextCard.js","sourceRoot":"","sources":["../../../src/components/CarouselRichTextCard/CarouselRichTextCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6DAA0D;AAC1D,6CAA0C;AAK7B,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,WAAW,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAChE,uBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,iCAAiC,EAAE,SAAS,CAAC,KAAM,IAAI,YACpF,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAI,GACzC,CAChB,CACF,CAAC"}
@@ -17,10 +17,10 @@ exports.CarouselTariffsCard = (0, uni_jsx_1.JSX)(({ className = '', title, icon,
17
17
  const cellsNode = cardCells.map(renderCardInfo);
18
18
  const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
19
19
  const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
20
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative border border-gray min-w-[322px] p-8 flex flex-col', getHitStyle(isHighlighting), className), ...rest, children: [isHighlighting ? renderHitIcon() : null, renderIconBlock(icon), title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "text-center pt-2", headingType: "h5", title: title }) : null, button ? (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "w-full mt-4", ...button }) : null, cardCells.length ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsxs)("div", { children: [visibleCells, (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton : null })) : null] }));
20
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('relative border border-gray p-8 flex flex-col', getHitStyle(isHighlighting), className), ...rest, children: [isHighlighting ? renderHitIcon() : null, renderIconBlock(icon), title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "text-center pt-2", headingType: "h5", title: title }) : null, button ? (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "w-full mt-4", ...button }) : null, cardCells.length ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsxs)("div", { children: [visibleCells, (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton : null })) : null] }));
21
21
  });
22
22
  const renderIconBlock = (icon) => ((0, jsx_runtime_1.jsxs)("div", { className: "w-[267px] min-w-[267px] self-center", children: [icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), asSVG: true }) : null] }));
23
- const getHitStyle = (isHighlighting) => isHighlighting ? 'mt-9 pt-[70px]' : 'mt-[70px] pt-7';
23
+ const getHitStyle = (isHighlighting) => isHighlighting ? 'mt-8 pt-20' : 'mt-20 pt-8';
24
24
  const renderFoldButton = ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsxs)("button", { className: "w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center", onClick: onToggle, children: [(0, jsx_runtime_1.jsx)("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16", asSVG: true })] }));
25
25
  const renderCardInfo = (cell, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "py-5 border-b border-main-divider", children: [cell?.title ? ((0, jsx_runtime_1.jsx)("div", { className: "text-secondary-text text-m-light opacity-80", children: cell.title })) : null, cell?.description ? ((0, jsx_runtime_1.jsx)("div", { className: "text-primary-text text-h6 mt-1", children: cell.description })) : null] }, String(i)));
26
26
  const renderHitIcon = () => ((0, jsx_runtime_1.jsxs)("div", { className: "absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { iconVersion: "black", name: "HeartIcon", width: "23", height: "22", asSVG: true }), (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-s", font: "font-normal", align: "text-center", color: "text-primary-text", children: "\u0425\u0418\u0422" })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselTariffsCard.js","sourceRoot":"","sources":["../../../src/components/CarouselTariffsCard/CarouselTariffsCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAKxC,4DAAyD;AACzD,uDAAoD;AACpD,6DAA0D;AAE1D,2EAAwE;AACxE,0DAAuD;AACvD,iDAA8C;AAC9C,8CAA2C;AAC3C,gEAA6D;AAC7D,uEAAoE;AACpE,6CAA0C;AAK1C,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAEjB,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACnF,MAAM,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,c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1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.Currencies = void 0;
3
+ var Currencies;
4
+ (function (Currencies) {
5
+ Currencies["EUR"] = "EUR";
6
+ Currencies["USD"] = "USD";
7
+ Currencies["GBP"] = "GBP";
8
+ Currencies["AUD"] = "AUD";
9
+ Currencies["CNY"] = "CNY";
10
+ Currencies["RUB"] = "RUB";
11
+ })(Currencies = exports.Currencies || (exports.Currencies = {}));
12
+ //# sourceMappingURL=Currencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Currencies.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateOffice/Currencies.ts"],"names":[],"mappings":";;AAAA,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,yBAAW,CAAA;IACX,yBAAW,CAAA;IACX,yBAAW,CAAA;IACX,yBAAW,CAAA;IACX,yBAAW,CAAA;AACb,CAAC,EAPW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAOrB"}
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { ExchangeRateOfficeContent } from './ExchangeRateOfficeContent';
3
+ export interface ExchangeRateOfficeProps extends ExchangeRateOfficeContent, UniBlockProps {
4
+ }
5
+ export declare const ExchangeRateOffice: import("@redneckz/uni-jsx").UNIComponent<ExchangeRateOfficeProps, any, any>;
@@ -0,0 +1,16 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.ExchangeRateOffice = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
+ const Heading_1 = require("../../ui-kit/Heading/Heading");
7
+ const Text_1 = require("../../ui-kit/Text/Text");
8
+ const style_1 = require("../../utils/style");
9
+ const renderCurrencies_1 = require("./renderCurrencies");
10
+ const renderTableHeader_1 = require("./renderTableHeader");
11
+ exports.ExchangeRateOffice = (0, uni_jsx_1.JSX)(({ className = '', currencies = [], actuality = '', officeName = '', ...rest }) => {
12
+ const fourRates = topNRates(currencies, 4);
13
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('font-sans text-primary-text py-10 bg-white', className), ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row flex-grow-0 justify-between mx-10 mb-8", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", title: 'Курс обмена валют в ' + officeName, className: "whitespace-pre-wrap text-h4 mb-5" }), (0, jsx_runtime_1.jsx)("div", { className: "pl-11", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m-light", align: "text-left", color: "text-secondary-text", children: actuality }) })] }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-row ml-8 mr-14 pt-4 text-left", children: fourRates.length > 0 ? ((0, jsx_runtime_1.jsxs)("table", { className: (0, style_1.style)('h-fit w-fit', className), children: [(0, jsx_runtime_1.jsx)("thead", { children: (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("th", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m-light", align: "text-left", color: "text-secondary-text", children: "\u0412\u0430\u043B\u044E\u0442\u0430" }) }), (0, renderTableHeader_1.renderTableHeader)('Купить'), (0, renderTableHeader_1.renderTableHeader)('Продать'), (0, renderTableHeader_1.renderTableHeader)('Лучшая покупка'), (0, renderTableHeader_1.renderTableHeader)('Лучшая продажа')] }) }), (0, jsx_runtime_1.jsx)("tbody", { children: fourRates.map((item) => (0, renderCurrencies_1.renderCurrencyRow)(item)) })] })) : null })] }));
14
+ });
15
+ const topNRates = (rates, n) => rates.sort((a, b) => Number(a.id) - Number(b.id)).slice(0, n);
16
+ //# sourceMappingURL=ExchangeRateOffice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExchangeRateOffice.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateOffice/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AAC,IACjC,GACC,EACR,4CAAQ,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,oCAAiB,EAAC,IAAI,CAAC,CAAC,GAAS,IAC3D,CACT,CAAC,CAAC,CAAC,IAAI,GACJ,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,KAA4B,EAAE,CAAS,EAAE,EAAE,CAC5D,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -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,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=ExchangeRateOfficeContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExchangeRateOfficeContent.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { CurrencyInformation } from './ExchangeRateOfficeContent';
3
+ export declare const renderCurrencyRow: ({ title, buyPrice, buyDifference, sellPrice, sellDifference, buyOfficeName, sellOfficeName, }: CurrencyInformation) => JSX.Element;
@@ -0,0 +1,30 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderCurrencyRow = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Img_1 = require("../../ui-kit/Img/Img");
5
+ const style_1 = require("../../utils/style");
6
+ const Currencies_1 = require("./Currencies");
7
+ const CURRENCY_ICONS_MAP = {
8
+ USD: 'DollarIcon',
9
+ EUR: 'EuroIcon',
10
+ GBP: 'DollarIcon',
11
+ AUD: 'DollarIcon',
12
+ CNY: 'DollarIcon',
13
+ RUB: 'RoundRubleIcon',
14
+ };
15
+ const renderCurrencyRow = ({ title, buyPrice, buyDifference, sellPrice, sellDifference, buyOfficeName, sellOfficeName, }) => {
16
+ return ((0, jsx_runtime_1.jsxs)("tr", { className: "pb-1 text-h6", children: [(0, jsx_runtime_1.jsx)("td", { className: "pt-4", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [title ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: CURRENCY_ICONS_MAP[title] }, width: "24", height: "24" })) : null, (0, jsx_runtime_1.jsx)("span", { className: "ml-2", children: title })] }) }), renderCurrency(buyPrice, buyDifference), renderCurrency(sellPrice, sellDifference), renderOffice(buyPrice, buyOfficeName), renderOffice(sellPrice, sellOfficeName)] }, title));
17
+ };
18
+ exports.renderCurrencyRow = renderCurrencyRow;
19
+ const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
20
+ const renderCurrency = (price, difference) => {
21
+ return ((0, jsx_runtime_1.jsxs)("td", { className: "pt-4 pl-11", children: [(0, jsx_runtime_1.jsx)("div", { children: formatCurrency(price) }), (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('font-normal text-sm text-secondary-text', (difference || 0) >= 0 ? 'text-green' : 'text-red'), children: formatCurrency(difference) })] }));
22
+ };
23
+ const renderOffice = (price, officeName = '') => {
24
+ return ((0, jsx_runtime_1.jsxs)("td", { className: "pt-4 pl-11", children: [(0, jsx_runtime_1.jsx)("div", { children: formatCurrency(price) }), (0, jsx_runtime_1.jsx)("div", { className: "font-normal text-sm text-green", children: officeName })] }));
25
+ };
26
+ const currencyNumberFormat = new Intl.NumberFormat('ru', {
27
+ style: 'currency',
28
+ currency: Currencies_1.Currencies.RUB,
29
+ });
30
+ //# sourceMappingURL=renderCurrencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderCurrencies.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateOffice/renderCurrencies.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;AAC3C,6CAA0C;AAC1C,6CAA0C;AAG1C,MAAM,kBAAkB,GAA8C;IACpE,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,gBAAgB;CACtB,CAAC;AAEK,MAAM,iBAAiB,GAAG,CAAC,EAChC,KAAK,EACL,QAAQ,EACR,aAAa,EACb,SAAS,EACT,cAAc,EACd,aAAa,EACb,cAAc,GACM,EAAE,EAAE;IACxB,OAAO,CACL,gCAAgB,SAAS,EAAC,cAAc,aACtC,+BAAI,SAAS,EAAC,MAAM,YAClB,iCAAK,SAAS,EAAC,mBAAmB,aAC/B,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,SAAG,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,EAAC,IAA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AE,UAAU;IACjB,QAAQ,EAAE,uBAAU,CAAC,GAAG;CACzB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const renderTableHeader: (title: string) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.renderTableHeader = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const Text_1 = require("../../ui-kit/Text/Text");
5
+ const renderTableHeader = (title) => {
6
+ return ((0, jsx_runtime_1.jsx)("th", { className: "pl-11", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m-light", align: "text-left", color: "text-secondary-text", children: title }) }));
7
+ };
8
+ exports.renderTableHeader = renderTableHeader;
9
+ //# sourceMappingURL=renderTableHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderTableHeader.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateOffice/renderTableHeader.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAEvC,MAAM,iBAAiB,GAAG,CAAC,KAAa,EAAE,EAAE;IACjD,OAAO,CACL,+BAAI,SAAS,EAAC,OAAO,YACnB,uBAAC,WAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,qBAAqB,YACpE,KAAK,GACD,GACJ,CACN,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,iBAAiB,qBAQ5B"}
@@ -25,4 +25,4 @@ export declare type SubMenuItem = LinkProps & IconProps;
25
25
  /**
26
26
  * @title Подвал
27
27
  */
28
- export declare type FooterContent = UniBlockContent & {};
28
+ export declare type FooterContent = UniBlockContent;
@@ -10,6 +10,6 @@ const headlineVersionStyles_1 = require("./headlineVersionStyles");
10
10
  exports.Headline = (0, uni_jsx_1.JSX)(({ className, title, description, headlineVersion = 'XL', align = 'text-center', as, isPadding = true, isTheme = false, version = '', ...rest }) => {
11
11
  const versionStyle = headlineVersionStyles_1.headlineVersionStyles[headlineVersion];
12
12
  const paddingStyle = isPadding ? 'p-12' : '';
13
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col', paddingStyle, versionStyle.wrapper, className), version: version, isTheme: isTheme, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: (0, style_1.style)('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { color: "group-data-secondary:text-white/80", size: versionStyle.descriptionSize, align: align, children: description })) : null] }));
13
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex flex-col', paddingStyle, versionStyle.wrapper, className), version: version, isTheme: isTheme, ...rest, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: (0, style_1.style)('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: versionStyle.descriptionSize, align: align, children: description })) : null] }));
14
14
  });
15
15
  //# sourceMappingURL=Headline.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,0DAAuD;AACvD,gEAA6D;AAE7D,6CAA0C;AAE1C,mEAAgE;AAInD,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,EACT,KAAK,EACL,WAAW,EACX,eAAe,GAAG,IAAI,EACtB,KAAK,GAAG,aAAa,EACrB,EAAE,EACF,SAAS,GAAG,IAAI,EAChB,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,EAAE,EACZ,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,6CAAqB,CAAC,eAAe,CAAC,CAAC;IAC5D,MAAM,YAAY,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAE7C,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,eAAe,EAAE,YAAY,EAAE,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,EAChF,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,KACZ,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,SAAS,EAAE,IAAA,aAAK,EAAC,qBAAqB,EAAE,KAAK,CAAC,KAC1C,YAAY,EAAE,KAAK,EACvB,EAAE,EAAE,EAAE,IAAI,YAAY,EAAE,KAAK,CAAC,EAAE,EAChC,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,qBAAS,IACR,KAAK,EAAC,oCAAoC,EAC1C,IAAI,EAAE,YAAY,CAAC,eAA2B,EAC9C,KAAK,EAAE,KAAK,YAEX,WAAW,GACF,CACb,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,0DAAuD;AACvD,gEAA6D;AAE7D,6CAA0C;AAE1C,mEAAgE;AAInD,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,EACT,KAAK,EACL,WAAW,EACX,eAAe,GAAG,IAAI,EACtB,KAAK,GAAG,aAAa,EACrB,EAAE,EACF,SAAS,GAAG,IAAI,EAChB,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,EAAE,EACZ,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,6CAAqB,CAAC,eAAe,CAAC,CAAC;IAC5D,MAAM,YAAY,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAE7C,OAAO,CACL,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,eAAe,EAAE,YAAY,EAAE,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,EAChF,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,KACZ,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,SAAS,EAAE,IAAA,aAAK,EAAC,qBAAqB,EAAE,KAAK,CAAC,KAC1C,YAAY,EAAE,KAAK,EACvB,EAAE,EAAE,EAAE,IAAI,YAAY,EAAE,KAAK,CAAC,EAAE,EAChC,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,qBAAS,IAAC,IAAI,EAAE,YAAY,CAAC,eAA2B,EAAE,KAAK,EAAE,KAAK,YACpE,WAAW,GACF,CACb,CAAC,CAAC,CAAC,IAAI,IACK,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -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';
@@ -9,7 +8,7 @@ import type { BackwardButtonProps, ButtonContent } from '../../ui-kit/Button/But
9
8
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
10
9
  import type { ListContent } from '../../ui-kit/List/ListContent';
11
10
  import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
12
- export declare type ProductBlockInnerContent = HeadlineProps & RichTextProps & ListContent & ButtonContent & Footnote & ImageContent & BulletsProps & {
11
+ export declare type ProductBlockInnerContent = HeadlineProps & RichTextProps & ListContent & ButtonContent & ImageContent & BulletsProps & {
13
12
  /**
14
13
  * @title Количество преимуществ в строке
15
14
  * @enumNames ["2", "3"]
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { ButtonVersion } from '../../model/ButtonVersion';
3
3
  import type { BackwardButtonProps } from '../../ui-kit/Button/ButtonProps';
4
- export declare function renderBackwardButton(button: BackwardButtonProps, version: ButtonVersion, className: string): JSX.Element;
4
+ export declare function renderBackwardButton(button: BackwardButtonProps, version: ButtonVersion, className?: string): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;AAC3C,6CAA0C;AAE1C,SAAgB,oBAAoB,CAClC,MAA2B,EAC3B,OAAsB,EACtB,SAAiB;IAEjB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACtC,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,YAAY,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IAE/D,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,mBAAmB,EAAE,SAAS,CAAC,aACnD,uBAAC,eAAM,IACL,OAAO,EAAE,OAAO,EAChB,OAAO,QACP,SAAS,EAAC,mEAAmE,EAC7E,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,YAEd,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,WAAW,EAAE,YAAY,CAAC,WAAW,IAAI,WAAW,EAAE,EAChF,KAAK,SACL,GACK,EACR,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,eAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAI,CACnF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC;AA9BD,oDA8BC"}
1
+ {"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;AAC3C,6CAA0C;AAE1C,SAAgB,oBAAoB,CAClC,MAA2B,EAC3B,OAAsB,EACtB,SAAkB;IAElB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IACtC,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,YAAY,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IAE/D,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,mBAAmB,EAAE,SAAS,CAAC,aACnD,uBAAC,eAAM,IACL,OAAO,EAAE,OAAO,EAChB,OAAO,QACP,SAAS,EAAC,mEAAmE,EAC7E,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,YAEd,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,WAAW,EAAE,YAAY,CAAC,WAAW,IAAI,WAAW,EAAE,EAChF,KAAK,SACL,GACK,EACR,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,eAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAI,CACnF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC;AA9BD,oDA8BC"}
@@ -10,13 +10,15 @@ const Headline_1 = require("../Headline/Headline");
10
10
  const renderAdditionalDescription_1 = require("./renderAdditionalDescription");
11
11
  const renderBenefit_1 = require("./renderBenefit");
12
12
  const renderImage_1 = require("./renderImage");
13
- exports.ProductTile = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, isImageOnRightSide = true, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('overflow-hidden p-9 box-border relative min-h-[364px]', (0, getTileRightPadding_1.getTileRightPadding)(className), className), ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', isImageOnRightSide ? '' : 'items-end'), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: (0, style_1.style)('!p-0 !bg-transparent z-10', title || description ? 'mb-3.5' : ''), title: title, description: description, headlineVersion: headlineVersion, as: "h2", align: "text-left" }), renderBenefits(benefits, image), (0, renderAdditionalDescription_1.renderAdditionalDescription)(additionalDescription, image), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'mt-5 z-10 text-l' })] }), (0, renderImage_1.renderImage)(image, isImageOnRightSide)] })));
13
+ exports.ProductTile = (0, uni_jsx_1.JSX)(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, directionRight = true, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('overflow-hidden p-9 box-border relative min-h-[364px] flex flex-col justify-between', (0, getTileRightPadding_1.getTileRightPadding)(className), className), ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col', directionRight ? '' : 'items-end'), children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { className: (0, style_1.style)('!p-0 !bg-transparent z-10', title || description ? 'mb-3.5' : ''), title: title, description: description, headlineVersion: headlineVersion, as: "h2", align: "text-left" }), renderBenefits(benefits, image), (0, renderAdditionalDescription_1.renderAdditionalDescription)(additionalDescription, image)] }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
14
+ className: (0, style_1.style)('mt-5 text-l', directionRight ? '' : 'justify-end'),
15
+ }), (0, renderImage_1.renderImage)(image, directionRight)] })));
14
16
  function renderBenefits(benefits, image) {
15
17
  if (!benefits.length) {
16
18
  return null;
17
19
  }
18
20
  // picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
19
21
  const benefitsWidth = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
20
- return ((0, jsx_runtime_1.jsx)("div", { className: `z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline ${benefitsWidth}`, children: benefits.length ? benefits.map(renderBenefit_1.renderBenefit) : null }));
22
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline', benefitsWidth), children: benefits.length ? benefits.map(renderBenefit_1.renderBenefit) : null }));
21
23
  }
22
24
  //# sourceMappingURL=ProductTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,mFAAgF;AAChF,6CAA0C;AAC1C,yEAAsE;AACtE,mDAAgD;AAEhD,+EAA4E;AAC5E,mDAAgD;AAChD,+CAA4C;AAI/B,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,eAAe,GAAG,GAAG,EACrB,WAAW,EACX,qBAAqB,EACrB,QAAQ,GAAG,EAAE,EACb,OAAO,EACP,KAAK,EACL,kBAAkB,GAAG,IAAI,EACzB,GAAG,IAAI,EACR,EAAE,EAAE,C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AAK,EAAE,cAAc,CAAC,IACtB,CAChB,CACF,CAAC;AAEF,SAAS,cAAc,CAAC,QAAmB,EAAE,KAAe;IAC1D,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;QACpB,OAAO,IAAI,CAAC;KACb;IAED,wGAAwG;IACxG,MAAM,aAAa,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,MAAM,CAAC;IAEvE,OAAO,CACL,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,uFAAuF,EACvF,aAAa,CACd,YAEA,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,6BAAa,CAAC,CAAC,CAAC,CAAC,IAAI,GACjD,CACP,CAAC;AACJ,CAAC"}
@@ -25,6 +25,6 @@ export declare type ProductTileContent = UniBlockContent & HeadlineProps & Addit
25
25
  */
26
26
  benefits?: Benefit[];
27
27
  /** @title Картинка справа/текст слева */
28
- isImageOnRightSide?: boolean;
28
+ directionRight?: boolean;
29
29
  };
30
30
  export {};
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import type { Picture } from '../../model/Picture';
3
- export declare function renderImage(image?: Picture, isImageOnRightSide?: boolean): JSX.Element | null;
3
+ export declare function renderImage(image?: Picture, directionRight?: boolean): JSX.Element | null;
@@ -2,11 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.renderImage = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const Img_1 = require("../../ui-kit/Img/Img");
5
- function renderImage(image, isImageOnRightSide) {
5
+ const style_1 = require("../../utils/style");
6
+ function renderImage(image, directionRight) {
6
7
  if (!image?.src) {
7
8
  return null;
8
9
  }
9
- return ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `absolute ${isImageOnRightSide ? 'right-0' : 'left-0'} bottom-0`, image: image }));
10
+ return ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)('absolute', directionRight ? 'right-0' : 'left-0', 'bottom-0'), image: image }));
10
11
  }
11
12
  exports.renderImage = renderImage;
12
13
  //# sourceMappingURL=renderImage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderImage.js","sourceRoot":"","sources":["../../../src/components/ProductTile/renderImage.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;AAE3C,SAAgB,WAAW,CAAC,KAAe,EAAE,kBAA4B;IACvE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE;QACf,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,uBAAC,SAAG,IACF,SAAS,EAAE,YAAY,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,WAAW,EAC3E,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC;AAXD,kCAWC"}
1
+ {"version":3,"file":"renderImage.js","sourceRoot":"","sources":["../../../src/components/ProductTile/renderImage.tsx"],"names":[],"mappings":";;;AACA,8CAA2C;AAC3C,6CAA0C;AAE1C,SAAgB,WAAW,CAAC,KAAe,EAAE,cAAwB;IACnE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE;QACf,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,uBAAC,SAAG,IACF,SAAS,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,EAC/E,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC;AAXD,kCAWC"}
@@ -0,0 +1,5 @@
1
+ import type { RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
+ export interface RepresentativeOfficeInfoProps extends RepresentativeOfficeInfoContent, UniBlockProps {
4
+ }
5
+ export declare const RepresentativeOfficeInfo: import("@redneckz/uni-jsx").UNIComponent<RepresentativeOfficeInfoProps, any, any>;
@@ -0,0 +1,22 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.RepresentativeOfficeInfo = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
+ const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
7
+ const Heading_1 = require("../../ui-kit/Heading/Heading");
8
+ const Icon_1 = require("../../ui-kit/Icon/Icon");
9
+ const Img_1 = require("../../ui-kit/Img/Img");
10
+ const RichText_1 = require("../../ui-kit/RichText/RichText");
11
+ const Text_1 = require("../../ui-kit/Text/Text");
12
+ const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
13
+ const style_1 = require("../../utils/style");
14
+ exports.RepresentativeOfficeInfo = (0, uni_jsx_1.JSX)(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('box-border text-left p-9', className), version: version, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-full flex justify-between", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", as: "h3", className: "mb-6", title: title }) : null, renderIconBlock(icon)] }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock('Адрес', address, 'GeolocationIcon'), renderBlock('Телефон', telephone, 'PhoneIcon'), renderBlock('E-mail', email, 'MailIcon'), button?.text
15
+ ? (0, renderButtonsSection_1.renderButtonsSection)([button], {
16
+ className: 'mb-6',
17
+ })
18
+ : null] })] })));
19
+ const renderIconBlock = (icon) => ((0, jsx_runtime_1.jsxs)("div", { className: "self-end", children: [icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), asSVG: true }) : null] }));
20
+ const renderDescriptionBlock = (__html) => ((0, jsx_runtime_1.jsx)("div", { className: "border-b border-main-divider pb-5 my-5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) }));
21
+ const renderBlock = (blockName, data, iconName) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex mb-4", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "pr-4", iconVersion: "black", name: iconName, width: "24", height: "24", asSVG: true }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col first:pb-1", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m-light", children: blockName }), data ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
22
+ //# sourceMappingURL=RepresentativeOfficeInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RepresentativeOfficeInfo.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAKxC,4DAAyD;AACzD,uEAAoE;AACpE,0DAAuD;AACvD,iDAA8C;AAC9C,8CAA2C;AAC3C,6DAA0D;AAC1D,iDAA8C;AAC9C,mFAAgF;AAChF,6CAA0C;AAM7B,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EACC,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,EACN,SAAS,GAAG,EAAE,EACd,MAAM,EACN,IAAI,EACJ,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE,CAAC,CACJ,wBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,0BAA0B,EAAE,SAAS,CAAC,EACvD,OAAO,EAAE,OAAO,KACZ,IAAI,aAER,iCAAK,SAAS,EAAC,6BAA6B,aACzC,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,E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AC,WAAW,aACxB,uBAAC,WAAI,IAAC,SAAS,EAAC,MAAM,EAAC,WAAW,EAAC,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,EAC1F,iCAAK,SAAS,EAAC,0BAA0B,aACvC,uBAAC,WAAI,IAAC,IAAI,EAAC,cAAc,YAAE,SAAS,GAAQ,EAC3C,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,YAAY,YACpC,IAAI,GACA,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC"}
@@ -0,0 +1,18 @@
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
+ * @title Блок с информацией о представительстве
8
+ */
9
+ export declare type RepresentativeOfficeInfoContent = UniBlockContent & TitleProps & RichTextProps & IconProps & {
10
+ /** @title Адрес */
11
+ address?: string;
12
+ /** @title Телефон (факс) */
13
+ telephone?: string;
14
+ /** @title E-mail */
15
+ email?: string;
16
+ /** @title Кнопка */
17
+ button?: ButtonWithIconProps;
18
+ };
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=RepresentativeOfficeInfoContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RepresentativeOfficeInfoContent.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts"],"names":[],"mappings":""}
@@ -5,7 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
6
  const RichText_1 = require("../../ui-kit/RichText/RichText");
7
7
  exports.RichTextBlock = (0, uni_jsx_1.JSX)((props) => {
8
- const { __html, ...rest } = props;
9
- return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { ...rest, children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) }));
8
+ const { __html, richVersion, ...rest } = props;
9
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { ...rest, children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html, richVersion: richVersion }) }));
10
10
  });
11
11
  //# sourceMappingURL=RichTextBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextBlock.js","sourceRoot":"","sources":["../../../src/components/RichTextBlock/RichTextBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6DAA0D;AAK7C,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,KAAK,EAAE,EAAE;IAC7D,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAElC,OAAO,CACL,uBAAC,2BAAY,OAAK,IAAI,YACpB,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,GAAI,GACf,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"RichTextBlock.js","sourceRoot":"","sources":["../../../src/components/RichTextBlock/RichTextBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6DAA0D;AAK7C,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,KAAK,EAAE,EAAE;IAC7D,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE/C,OAAO,CACL,uBAAC,2BAAY,OAAK,IAAI,YACpB,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAI,GACzC,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -12,8 +12,9 @@ const Tags_1 = require("../../ui-kit/Tags/Tags");
12
12
  const BaseTile_1 = require("../BaseTile/BaseTile");
13
13
  const getTileMinHeight_1 = require("../BaseTile/getTileMinHeight");
14
14
  const getTileRightPadding_1 = require("../BaseTile/getTileRightPadding");
15
- exports.Tile = (0, uni_jsx_1.JSX)(({ title, headingType = 'h3', __html, items, buttons, image, isDotted = true, listItemSize = 'M', className = '', tags, children, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `overflow-hidden p-9 pr-3 box-border ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} ${className}`, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
16
- className: 'mt-8',
17
- buttonClassName: 'min-w-[158px]',
18
- }), image: image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }) : null, children: [__html ? ((0, jsx_runtime_1.jsx)("div", { className: "max-w-[600px] mt-2.5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, children, (0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-2.5", itemClassName: "mb-1.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? (0, jsx_runtime_1.jsx)(Tags_1.Tags, { tags: tags, className: "mt-5" }) : null] }) })));
15
+ const style_1 = require("../../utils/style");
16
+ exports.Tile = (0, uni_jsx_1.JSX)(({ title, headingType = 'h3', __html, items, buttons, image, isDotted = true, listItemSize = 'M', className = '', tags, children, directionRight = true, ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex grow justify-between items-stretch h-full p-9 pr-3 box-border', (0, getTileRightPadding_1.getTileRightPadding)(className), (0, getTileMinHeight_1.getTileMinHeight)(className), className), ...rest, children: [image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)('mt-auto ml-7', directionRight ? 'order-2' : ''), image: image })) : null, (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons, {
17
+ className: 'mt-8',
18
+ buttonClassName: 'min-w-[158px]',
19
+ }), children: (0, jsx_runtime_1.jsxs)("div", { children: [__html ? ((0, jsx_runtime_1.jsx)("div", { className: "max-w-[600px] mt-2.5", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, children, (0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-2.5", itemClassName: "mb-1.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? (0, jsx_runtime_1.jsx)(Tags_1.Tags, { tags: tags, className: "mt-5" }) : null] }) })] })));
19
20
  //# sourceMappingURL=Tile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,6DAA0D;AAC1D,iDAA8C;AAC9C,mDAAgD;AAChD,mEAAgE;AAChE,yEAAsE;AAKzD,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EACC,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,MAAM,EACN,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,YAAY,GAAG,GAAG,EAClB,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,QA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AsB,YACnC,uBAAC,mBAAQ,IAAC,MAAM,EAAE,MAAM,GAAI,GACxB,CACP,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EACT,uBAAC,WAAI,IACH,SAAS,EAAC,QAAQ,EAClB,aAAa,EAAC,QAAQ,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,GAC1B,EACD,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,IACxD,GACG,IACE,CAChB,CACF,CAAC"}
@@ -12,4 +12,6 @@ import type { TagsContent } from '../../ui-kit/Tags/TagsContent';
12
12
  */
13
13
  export declare type TileContent = UniBlockContent & HeadingCommonProps & RichTextProps & ListContent & ButtonContent & TagsContent & ImageContent & BulletsProps & {
14
14
  listItemSize?: ListItemSize;
15
+ /** @title Картинка справа/текст слева */
16
+ directionRight?: boolean;
15
17
  };