@redneckz/wildless-cms-uni-blocks 0.14.142 → 0.14.144

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 (377) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +112 -72
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  5. package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  6. package/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  7. package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  8. package/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  9. package/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  10. package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  11. package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  12. package/bundle/components/ApplicationForm/renderRegion.d.ts +6 -6
  13. package/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  14. package/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
  15. package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  16. package/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
  17. package/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  18. package/bundle/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  19. package/bundle/ui-kit/Unit/UnitProps.d.ts +3 -0
  20. package/bundle/utils/formatPhone.d.ts +1 -0
  21. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  22. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  23. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  24. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  25. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  26. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  27. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  28. package/dist/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  29. package/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  30. package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  31. package/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  32. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  33. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  34. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  35. package/dist/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  36. package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  37. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  38. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  39. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  40. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +48 -0
  41. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  42. package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -1
  43. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  44. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  45. package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  46. package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  47. package/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  48. package/dist/components/ApplicationForm/acquiringTypes.js +8 -7
  49. package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
  50. package/dist/components/ApplicationForm/handleSubmit.js +4 -3
  51. package/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
  52. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  53. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  54. package/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  55. package/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  56. package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  57. package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  58. package/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  59. package/dist/components/ApplicationForm/renderRegion.d.ts +6 -6
  60. package/dist/components/ApplicationForm/renderRegion.js +4 -1
  61. package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  62. package/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  63. package/dist/components/ApplicationForm/renderRegionDepartment.js +2 -1
  64. package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  65. package/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
  66. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  67. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  68. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  69. package/dist/components/ContentPage/renderContentPageHead.js +2 -2
  70. package/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
  71. package/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
  72. package/dist/components/ProductBlock/ProductBlock.js +1 -0
  73. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  74. package/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  75. package/dist/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  76. package/dist/ui-kit/BaseTile/BaseTile.js +0 -1
  77. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  78. package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
  79. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  80. package/dist/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  81. package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  82. package/dist/ui-kit/Unit/UnitProps.d.ts +3 -0
  83. package/dist/utils/formatPhone.d.ts +1 -0
  84. package/dist/utils/formatPhone.js +5 -0
  85. package/dist/utils/formatPhone.js.map +1 -0
  86. package/lib/common.css +1 -1
  87. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  88. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  89. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  90. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  91. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  92. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  93. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  94. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  95. package/lib/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  96. package/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  97. package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  98. package/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  99. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  100. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  101. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  102. package/lib/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  103. package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  104. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  105. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  106. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  107. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +46 -0
  108. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  109. package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -1
  110. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  111. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  112. package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  113. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  114. package/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  115. package/lib/components/ApplicationForm/acquiringTypes.js +8 -7
  116. package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
  117. package/lib/components/ApplicationForm/handleSubmit.js +4 -3
  118. package/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
  119. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  120. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  121. package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  122. package/lib/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  123. package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  124. package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  125. package/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  126. package/lib/components/ApplicationForm/renderRegion.d.ts +6 -6
  127. package/lib/components/ApplicationForm/renderRegion.js +4 -1
  128. package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  129. package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  130. package/lib/components/ApplicationForm/renderRegionDepartment.js +2 -1
  131. package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  132. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  133. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  134. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  135. package/lib/components/ContentPage/renderContentPageHead.js +2 -2
  136. package/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
  137. package/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
  138. package/lib/components/ProductBlock/ProductBlock.js +1 -0
  139. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  140. package/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  141. package/lib/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  142. package/lib/ui-kit/BaseTile/BaseTile.js +0 -1
  143. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  144. package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
  145. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  146. package/lib/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  147. package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  148. package/lib/ui-kit/Unit/UnitProps.d.ts +3 -0
  149. package/lib/utils/formatPhone.d.ts +1 -0
  150. package/lib/utils/formatPhone.js +2 -0
  151. package/lib/utils/formatPhone.js.map +1 -0
  152. package/mobile/bundle/bundle.umd.js +112 -72
  153. package/mobile/bundle/bundle.umd.min.js +1 -1
  154. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  155. package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  156. package/mobile/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  157. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  158. package/mobile/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  159. package/mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  160. package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  161. package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  162. package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +6 -6
  163. package/mobile/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  164. package/mobile/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
  165. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  166. package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
  167. package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  168. package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  169. package/mobile/bundle/ui-kit/Unit/UnitProps.d.ts +3 -0
  170. package/mobile/bundle/utils/formatPhone.d.ts +1 -0
  171. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  172. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  173. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  174. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  175. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  176. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  177. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  178. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  179. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  180. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  181. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  182. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  183. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  184. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  185. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  186. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  187. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  188. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  189. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  190. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +48 -0
  191. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  192. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -1
  193. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  194. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  195. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  196. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  197. package/mobile/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  198. package/mobile/dist/components/ApplicationForm/acquiringTypes.js +8 -7
  199. package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
  200. package/mobile/dist/components/ApplicationForm/handleSubmit.js +4 -3
  201. package/mobile/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
  202. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  203. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  204. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  205. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  206. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  207. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  208. package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  209. package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +6 -6
  210. package/mobile/dist/components/ApplicationForm/renderRegion.js +4 -1
  211. package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  212. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  213. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +2 -1
  214. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  215. package/mobile/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
  216. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  217. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  218. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  219. package/mobile/dist/components/ContentPage/renderContentPageHead.js +2 -2
  220. package/mobile/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
  221. package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
  222. package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -0
  223. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  224. package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  225. package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  226. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +0 -1
  227. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  228. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
  229. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  230. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  231. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  232. package/mobile/dist/ui-kit/Unit/UnitProps.d.ts +3 -0
  233. package/mobile/dist/utils/formatPhone.d.ts +1 -0
  234. package/mobile/dist/utils/formatPhone.js +5 -0
  235. package/mobile/dist/utils/formatPhone.js.map +1 -0
  236. package/mobile/lib/common.css +1 -1
  237. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  238. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  239. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  240. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  241. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  242. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  243. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  244. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  245. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  246. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  247. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  248. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  249. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  250. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  251. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  252. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  253. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  254. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  255. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  256. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +46 -0
  257. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  258. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -1
  259. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  260. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  261. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  262. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  263. package/mobile/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  264. package/mobile/lib/components/ApplicationForm/acquiringTypes.js +8 -7
  265. package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
  266. package/mobile/lib/components/ApplicationForm/handleSubmit.js +4 -3
  267. package/mobile/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
  268. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  269. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  270. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  271. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  272. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  273. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  274. package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  275. package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +6 -6
  276. package/mobile/lib/components/ApplicationForm/renderRegion.js +4 -1
  277. package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  278. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  279. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +2 -1
  280. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  281. package/mobile/lib/components/ApplicationForm/renderUserData.d.ts +1 -1
  282. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  283. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  284. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  285. package/mobile/lib/components/ContentPage/renderContentPageHead.js +2 -2
  286. package/mobile/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
  287. package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
  288. package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -0
  289. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  290. package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  291. package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  292. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +0 -1
  293. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  294. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
  295. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  296. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  297. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  298. package/mobile/lib/ui-kit/Unit/UnitProps.d.ts +3 -0
  299. package/mobile/lib/utils/formatPhone.d.ts +1 -0
  300. package/mobile/lib/utils/formatPhone.js +2 -0
  301. package/mobile/lib/utils/formatPhone.js.map +1 -0
  302. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +23 -15
  303. package/mobile/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +2 -3
  304. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +3 -3
  305. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +12 -2
  306. package/mobile/src/components/ApplicationForm/ApplicationFormCorruption.tsx +5 -10
  307. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +16 -3
  308. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -1
  309. package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -10
  310. package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -1
  311. package/mobile/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +81 -0
  312. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -1
  313. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  314. package/mobile/src/components/ApplicationForm/acquiringTypes.ts +11 -9
  315. package/mobile/src/components/ApplicationForm/handleSubmit.tsx +4 -3
  316. package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  317. package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +4 -12
  318. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
  319. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +1 -1
  320. package/mobile/src/components/ApplicationForm/renderRegion.tsx +29 -15
  321. package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -12
  322. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -9
  323. package/mobile/src/components/ContentPage/renderContentPageHead.tsx +2 -2
  324. package/mobile/src/components/ProductBlock/ProductBlock.tsx +14 -10
  325. package/mobile/src/components/UnitBlock/UnitBlockContent.ts +1 -0
  326. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -4
  327. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
  328. package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +5 -14
  329. package/mobile/src/ui-kit/Unit/UnitProps.ts +3 -0
  330. package/mobile/src/utils/formatPhone.ts +1 -0
  331. package/package.json +1 -1
  332. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
  333. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +23 -15
  334. package/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +2 -3
  335. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +3 -3
  336. package/src/components/ApplicationForm/ApplicationFormContent.ts +12 -2
  337. package/src/components/ApplicationForm/ApplicationFormCorruption.tsx +5 -10
  338. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +16 -3
  339. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -1
  340. package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -10
  341. package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -1
  342. package/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +81 -0
  343. package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -1
  344. package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  345. package/src/components/ApplicationForm/acquiringTypes.ts +11 -9
  346. package/src/components/ApplicationForm/handleSubmit.tsx +4 -3
  347. package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  348. package/src/components/ApplicationForm/renderAcquiringRegion.tsx +4 -12
  349. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
  350. package/src/components/ApplicationForm/renderCreditParameters.tsx +1 -1
  351. package/src/components/ApplicationForm/renderRegion.tsx +29 -15
  352. package/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -12
  353. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -9
  354. package/src/components/ContentPage/renderContentPageHead.tsx +2 -2
  355. package/src/components/ProductBlock/ProductBlock.tsx +14 -10
  356. package/src/components/UnitBlock/UnitBlockContent.ts +1 -0
  357. package/src/ui-kit/BaseTile/BaseTile.tsx +2 -4
  358. package/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
  359. package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +5 -14
  360. package/src/ui-kit/Unit/UnitProps.ts +3 -0
  361. package/src/utils/formatPhone.ts +1 -0
  362. package/bundle/components/ApplicationForm/CreditFormState.d.ts +0 -13
  363. package/dist/components/ApplicationForm/CreditFormState.d.ts +0 -13
  364. package/dist/components/ApplicationForm/CreditFormState.js +0 -2
  365. package/dist/components/ApplicationForm/CreditFormState.js.map +0 -1
  366. package/lib/components/ApplicationForm/CreditFormState.d.ts +0 -13
  367. package/lib/components/ApplicationForm/CreditFormState.js +0 -2
  368. package/lib/components/ApplicationForm/CreditFormState.js.map +0 -1
  369. package/mobile/bundle/components/ApplicationForm/CreditFormState.d.ts +0 -13
  370. package/mobile/dist/components/ApplicationForm/CreditFormState.d.ts +0 -13
  371. package/mobile/dist/components/ApplicationForm/CreditFormState.js +0 -2
  372. package/mobile/dist/components/ApplicationForm/CreditFormState.js.map +0 -1
  373. package/mobile/lib/components/ApplicationForm/CreditFormState.d.ts +0 -13
  374. package/mobile/lib/components/ApplicationForm/CreditFormState.js +0 -2
  375. package/mobile/lib/components/ApplicationForm/CreditFormState.js.map +0 -1
  376. package/mobile/src/components/ApplicationForm/CreditFormState.ts +0 -14
  377. package/src/components/ApplicationForm/CreditFormState.ts +0 -14
@@ -2,11 +2,12 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useBranches } from '../../hooks/useBranches';
4
4
  import { useForm } from '../../hooks/useForm';
5
+ import { type Option } from '../../ui-kit/Select/Option';
6
+ import { formatPhone } from '../../utils/formatPhone';
5
7
  import { objectValidator } from '../../validation/objectValidator';
6
8
  import { isValidationSuccess } from '../../validation/validator';
7
9
  import { useGetRegions } from '../SafeDepositRental/useGetRegions';
8
10
  import { type ApplicationFormsProps } from './ApplicationFormsProps';
9
- import { type CreditFormState } from './CreditFormState';
10
11
  import { MIN_CREDIT_AMOUNT } from './CreditParameters';
11
12
  import { Footnote } from './Footnote';
12
13
  import { formStyle } from './formStyle';
@@ -16,6 +17,19 @@ import { renderRegionDepartment } from './renderRegionDepartment';
16
17
  import { renderSubmitButton } from './renderSubmitButton';
17
18
  import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
18
19
 
20
+ export interface CreditFormState {
21
+ amount: number;
22
+ term: number;
23
+ fullName: string;
24
+ inn: string;
25
+ name: string;
26
+ phone: string;
27
+ mail: string;
28
+ region?: Option;
29
+ department?: Option;
30
+ annualRevenue: string;
31
+ }
32
+
19
33
  const initialFormState: CreditFormState = {
20
34
  amount: MIN_CREDIT_AMOUNT,
21
35
  term: 12,
@@ -49,7 +63,7 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>(({ button, link,
49
63
  fullName,
50
64
  inn,
51
65
  name,
52
- phone: phone.replace(/[^+\d]/g, ''),
66
+ phone: formatPhone(phone),
53
67
  mail,
54
68
  region: region?.text || '',
55
69
  department: department?.text || '',
@@ -60,7 +74,6 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>(({ button, link,
60
74
  );
61
75
 
62
76
  const [formState, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
63
-
64
77
  const regions = useGetRegions();
65
78
  const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
66
79
 
@@ -1,6 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useForm } from '../../hooks/useForm';
4
+ import { formatPhone } from '../../utils/formatPhone';
4
5
  import { objectValidator } from '../../validation/objectValidator';
5
6
  import { isValidationSuccess } from '../../validation/validator';
6
7
  import { withValidator } from '../../validation/withValidator';
@@ -37,7 +38,7 @@ export const ApplicationFormDeposit = JSX<ApplicationFormsProps>(({ button, link
37
38
  onSubmit({
38
39
  typeForm: 'dpst',
39
40
  name,
40
- phone: phone.replace(/[^+\d]/g, ''),
41
+ phone: formatPhone(phone),
41
42
  });
42
43
  },
43
44
  [onSubmit],
@@ -15,6 +15,7 @@ import { handleSubmitIndividual, handleSubmitLegal, handleSubmitQuestion } from
15
15
  import { InputControl } from './InputControl';
16
16
  import { PhoneInputControl } from './PhoneInputControl';
17
17
  import { renderAgreementWithSubmit } from './renderAgreementWithSubmit';
18
+ import { renderRegion } from './renderRegion';
18
19
  import { initialUserFormState, renderUserData, type UserDataState } from './renderUserData';
19
20
  import { SelectControl } from './SelectControl';
20
21
  import { defaultValidator, innValidator, phoneValidator } from './validators';
@@ -68,8 +69,8 @@ export const ApplicationFormFeedback = JSX<ApplicationFormsProps>(({ button, lin
68
69
  );
69
70
 
70
71
  const [formState, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
71
- const branch = useGetRegions();
72
- const regions = useBranches(formState?.region?.key).filter((region) => region?.address);
72
+ const regions = useGetRegions();
73
+ const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
73
74
  const isQualityService = field('typeForm').value?.key === 'FEEDBACK_QS';
74
75
  const isLegalEntity = getLegalEntity(
75
76
  field('typeForm').value?.key,
@@ -95,18 +96,12 @@ export const ApplicationFormFeedback = JSX<ApplicationFormsProps>(({ button, lin
95
96
  {...withValidator(field('serviceDirection'), defaultValidator)}
96
97
  />
97
98
  ) : null}
98
- <SelectControl
99
- label="Филиал обслуживания*"
100
- placeholder="Выберите филиал"
101
- isSearch={true}
102
- options={branch.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
103
- {...withValidator(field('region'), defaultValidator)}
104
- />
99
+ {renderRegion(regions, field)}
105
100
  {isQualityService ? (
106
101
  <SelectControl
107
102
  label="Адрес*"
108
103
  placeholder="Выберите адрес"
109
- options={regions.map(({ branchCode = '', address = '' }) => ({
104
+ options={addressByBranch.map(({ branchCode = '', address = '' }) => ({
110
105
  key: branchCode,
111
106
  text: address,
112
107
  }))}
@@ -1,6 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useForm } from '../../hooks/useForm';
4
+ import { formatPhone } from '../../utils/formatPhone';
4
5
  import { objectValidator } from '../../validation/objectValidator';
5
6
  import { isValidationSuccess } from '../../validation/validator';
6
7
  import { withValidator } from '../../validation/withValidator';
@@ -53,7 +54,7 @@ export const ApplicationFormIndividuals = JSX<ApplicationFormsProps>((props) =>
53
54
  middleName,
54
55
  email,
55
56
  consentDataProcessing,
56
- phoneNumber: phone.replace(/[^+\d]/g, ''),
57
+ phoneNumber: formatPhone(phone),
57
58
  birthday: birthday?.toISOString().slice(0, 10) || '',
58
59
  product: product || '',
59
60
  },
@@ -0,0 +1,81 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useForm } from '../../hooks/useForm';
4
+ import { type Option } from '../../ui-kit/Select/Option';
5
+ import { formatPhone } from '../../utils/formatPhone';
6
+ import { objectValidator } from '../../validation/objectValidator';
7
+ import { isValidationSuccess } from '../../validation/validator';
8
+ import { withValidator } from '../../validation/withValidator';
9
+ import { useGetRegions } from '../SafeDepositRental/useGetRegions';
10
+ import { ApplicationFieldsetLayout } from './ApplicationFieldsetLayout';
11
+ import { type ApplicationFormsProps } from './ApplicationFormsProps';
12
+ import { Footnote } from './Footnote';
13
+ import { formStyle, oneColumnFormStyle } from './formStyle';
14
+ import { InputControl } from './InputControl';
15
+ import { PhoneInputControl } from './PhoneInputControl';
16
+ import { renderRegion } from './renderRegion';
17
+ import { renderSubmitButton } from './renderSubmitButton';
18
+ import { initialUserFormState, type UserDataState } from './renderUserData';
19
+ import { defaultValidator, phoneValidator } from './validators';
20
+
21
+ export type SelfCollectionFormState = UserDataState & {
22
+ typeForm: Option;
23
+ fullName: string;
24
+ region?: Option;
25
+ phone: string;
26
+ };
27
+
28
+ const initialFormState: SelfCollectionFormState = {
29
+ ...initialUserFormState,
30
+ typeForm: { key: 'SELFCOLLECTION', text: 'Самоинкассация' }, // Уточнить key
31
+ fullName: '',
32
+ phone: '',
33
+ };
34
+
35
+ const feedbackValidator = objectValidator({
36
+ typeForm: defaultValidator,
37
+ region: defaultValidator,
38
+ fullName: defaultValidator,
39
+ phone: phoneValidator,
40
+ });
41
+
42
+ export const ApplicationFormSelfCollection = JSX<ApplicationFormsProps>(
43
+ ({ button, link, onSubmit }) => {
44
+ const handleSubmit = useCallback(
45
+ (formState: SelfCollectionFormState) => {
46
+ const { typeForm, region, fullName, phone } = formState;
47
+
48
+ const submitData = {
49
+ typeForm: typeForm.key,
50
+ region: region?.text,
51
+ name: fullName,
52
+ phone: formatPhone(phone),
53
+ };
54
+ isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
55
+ },
56
+ [onSubmit],
57
+ );
58
+
59
+ const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
60
+ const regions = useGetRegions();
61
+
62
+ return (
63
+ <form className={formStyle} onSubmit={formProps.onSubmit}>
64
+ <ApplicationFieldsetLayout
65
+ firstChildren={
66
+ <div className={oneColumnFormStyle}>
67
+ <InputControl label="ФИО*" {...withValidator(field('fullName'), defaultValidator)} />
68
+ {renderRegion(regions, field)}
69
+ <PhoneInputControl
70
+ label="Телефон*"
71
+ {...withValidator(field('phone'), phoneValidator)}
72
+ />
73
+ {renderSubmitButton(button)}
74
+ <Footnote link={link} />
75
+ </div>
76
+ }
77
+ />
78
+ </form>
79
+ );
80
+ },
81
+ );
@@ -3,6 +3,7 @@ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useForm } from '../../hooks/useForm';
4
4
  import { Heading } from '../../ui-kit/Heading/Heading';
5
5
  import { type Option } from '../../ui-kit/Select/Option';
6
+ import { formatPhone } from '../../utils/formatPhone';
6
7
  import { objectValidator } from '../../validation/objectValidator';
7
8
  import { isValidationSuccess } from '../../validation/validator';
8
9
  import { useGetRegions } from '../SafeDepositRental/useGetRegions';
@@ -75,7 +76,7 @@ export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
75
76
  typeForm: 'KVED',
76
77
  fullName,
77
78
  name,
78
- phone: phone.replace(/[^+\d]/g, ''),
79
+ phone: formatPhone(phone),
79
80
  text,
80
81
  vedTypes: getVedTypes(vedTypes),
81
82
  PartnerComments: text,
@@ -7,6 +7,7 @@ import { ApplicationFormDeposit } from './ApplicationFormDeposit';
7
7
  import { ApplicationFormFeedback } from './ApplicationFormFeedback';
8
8
  import { ApplicationFormGrantSupport } from './ApplicationFormGrantSupport';
9
9
  import { ApplicationFormIndividuals } from './ApplicationFormIndividuals';
10
+ import { ApplicationFormSelfCollection } from './ApplicationFormSelfCollection';
10
11
  import { ApplicationFormWed } from './ApplicationFormWed';
11
12
 
12
13
  export const EmbeddableForms = {
@@ -20,4 +21,5 @@ export const EmbeddableForms = {
20
21
  ApplicationFormFeedback,
21
22
  ApplicationFormAntiFraud,
22
23
  ApplicationFormCorruption,
24
+ ApplicationFormSelfCollection,
23
25
  };
@@ -1,19 +1,21 @@
1
- import { type Select } from './models';
1
+ import { type Option } from '../../ui-kit/Select/Option';
2
2
 
3
- export const ACQUIRING_TYPES: Select[] = [
3
+ export const ACQUIRING_TYPES: Option[] = [
4
4
  {
5
- name: 'Торговый эквайринг',
5
+ text: 'Торговый эквайринг',
6
+ key: 'trade',
6
7
  },
7
8
  {
8
- name: 'Мобильный эквайринг',
9
+ text: 'СБП-эквайринг',
10
+ key: 'sbp',
9
11
  },
10
12
  {
11
- name: 'Интернет-эквайринг',
12
- },
13
- {
14
- name: 'QR-эквайринг (СБП)',
13
+ text: 'Интернет-эквайринг',
14
+ key: 'internet',
15
15
  },
16
+
16
17
  {
17
- name: 'Все виды эквайринга',
18
+ text: 'Все виды эквайринга',
19
+ key: 'all',
18
20
  },
19
21
  ];
@@ -1,3 +1,4 @@
1
+ import { formatPhone } from '../../utils/formatPhone';
1
2
  import { objectValidator } from '../../validation/objectValidator';
2
3
  import { isValidationSuccess } from '../../validation/validator';
3
4
  import { type FeedbackFormState } from './ApplicationFormFeedback';
@@ -39,7 +40,7 @@ export const handleSubmitIndividual = (
39
40
  name: formState.name,
40
41
  middleName: formState.middleName,
41
42
  feedbackMethod: formState.feedbackMethod.text,
42
- phoneNumber: formState.phone.replace(/[^+\d]/g, ''),
43
+ phoneNumber: formatPhone(formState.phone),
43
44
  secondaryPhoneNumber: formState.secondaryPhone?.replace(/[^+\d]/g, ''),
44
45
  email: formState.email,
45
46
  bankEmpolee: formState.bankEmpolee,
@@ -69,7 +70,7 @@ export const handleSubmitLegal = (
69
70
  inn: formState.inn,
70
71
  fullName: formState.fullName,
71
72
  feedbackMethod: formState.feedbackMethod.text,
72
- phone: formState.phone.replace(/[^+\d]/g, ''),
73
+ phone: formatPhone(formState.phone),
73
74
  secondaryPhoneNumber: formState?.secondaryPhone,
74
75
  mail: formState.email,
75
76
  bankEmpolee: formState.bankEmpolee,
@@ -96,7 +97,7 @@ export const handleSubmitQuestion = (
96
97
  middleName: formState.middleName,
97
98
  birthday: formState.birthday,
98
99
  feedbackMethod: formState.feedbackMethod.text,
99
- phoneNumber: formState.phone.replace(/[^+\d]/g, ''),
100
+ phoneNumber: formatPhone(formState.phone),
100
101
  email: formState.email,
101
102
  comment: formState.comment,
102
103
  consentDataProcessing: formState.consentDataProcessing,
@@ -15,16 +15,16 @@ export const renderAcquiringDataOrganization = (
15
15
  firstChildren={
16
16
  <div className={formChildrenStyle}>
17
17
  <InputControl
18
- label="Наименование организации"
18
+ label="Наименование организации*"
19
19
  {...withValidator(field('fullName'), defaultValidator)}
20
20
  />
21
- <InputControl label="Контактное лицо" {...withValidator(field('name'), nameValidator)} />
21
+ <InputControl label="Контактное лицо*" {...withValidator(field('name'), nameValidator)} />
22
22
  </div>
23
23
  }
24
24
  secondChildren={
25
25
  <div className={formChildrenStyle}>
26
- <InputControl label="ИНН" {...withValidator(field('inn'), innValidator)} />
27
- <PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
26
+ <InputControl label="ИНН*" {...withValidator(field('inn'), innValidator)} />
27
+ <PhoneInputControl label="Телефон*" {...withValidator(field('phone'), phoneValidator)} />
28
28
  </div>
29
29
  }
30
30
  />
@@ -4,6 +4,7 @@ import { ACQUIRING_TYPES } from './acquiringTypes';
4
4
  import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
5
5
  import { type AcquiringFormState } from './ApplicationFormAcquiring';
6
6
  import { type Select } from './models';
7
+ import { renderRegion } from './renderRegion';
7
8
  import { SelectControl } from './SelectControl';
8
9
  import { defaultValidator } from './validators';
9
10
 
@@ -13,7 +14,7 @@ interface AcquiringRegionProps {
13
14
  title?: string;
14
15
  }
15
16
 
16
- export const renderAcquiringRegion = ({ regions, field, title }: AcquiringRegionProps) => (
17
+ export const renderAcquiringRegion = ({ field, title, regions }: AcquiringRegionProps) => (
17
18
  <ApplicationFieldsetLayout
18
19
  title={title}
19
20
  firstChildren={
@@ -21,20 +22,11 @@ export const renderAcquiringRegion = ({ regions, field, title }: AcquiringRegion
21
22
  <SelectControl
22
23
  label="Вид эквайринга"
23
24
  placeholder="Выберите эквайринг"
24
- options={ACQUIRING_TYPES.map(({ name: key = '' }) => ({ key, text: key }))}
25
+ options={ACQUIRING_TYPES}
25
26
  {...withValidator(field('acquiringType'), defaultValidator)}
26
27
  />
27
28
  </div>
28
29
  }
29
- secondChildren={
30
- <div className={formChildrenStyle}>
31
- <SelectControl
32
- label="Адрес"
33
- placeholder="Выберите адрес"
34
- options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
35
- {...withValidator(field('region'), defaultValidator)}
36
- />
37
- </div>
38
- }
30
+ secondChildren={<div className={formChildrenStyle}>{renderRegion(regions, field)}</div>}
39
31
  />
40
32
  );
@@ -1,7 +1,7 @@
1
1
  import { type FormFieldRegisterer } from '../../hooks/useForm';
2
2
  import { withValidator } from '../../validation/withValidator';
3
3
  import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
4
- import { type CreditFormState } from './CreditFormState';
4
+ import { type CreditFormState } from './ApplicationFormCredit';
5
5
  import { InputControl } from './InputControl';
6
6
  import { PhoneInputControl } from './PhoneInputControl';
7
7
  import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
@@ -1,7 +1,7 @@
1
1
  import { type FormFieldRegisterer } from '../../hooks/useForm';
2
2
  import { InputRange } from '../../ui-kit/InputRange/InputRange';
3
3
  import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
4
- import { type CreditFormState } from './CreditFormState';
4
+ import { type CreditFormState } from './ApplicationFormCredit';
5
5
  import {
6
6
  ITEMS_CREDIT_AMOUNT,
7
7
  ITEMS_CREDIT_TERM,
@@ -1,22 +1,36 @@
1
1
  import { type FormFieldRegisterer } from '../../hooks/useForm';
2
2
  import { withValidator } from '../../validation/withValidator';
3
+ import { type AcquiringFormState } from './ApplicationFormAcquiring';
3
4
  import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
5
+ import { type CorruptionFormState } from './ApplicationFormCorruption';
6
+ import { type FeedbackFormState } from './ApplicationFormFeedback';
7
+ import { type SelfCollectionFormState } from './ApplicationFormSelfCollection';
8
+ import { type WedFormState } from './ApplicationFormWed';
4
9
  import { type Select } from './models';
5
10
  import { SelectControl } from './SelectControl';
6
11
  import { defaultValidator } from './validators';
7
12
 
8
- interface RegionProps {
9
- regions: Select[];
10
- field: FormFieldRegisterer<BusinessCardFormState>;
11
- }
12
-
13
- export const renderRegion = ({ regions, field }: RegionProps) => (
14
- <SelectControl
15
- className="w-full"
16
- label="Филиал"
17
- placeholder="Выберите филиал"
18
- isSearch={true}
19
- options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
20
- {...withValidator(field('region'), defaultValidator)}
21
- />
22
- );
13
+ // eslint-disable-next-line react-hooks/exhaustive-deps
14
+ export const renderRegion = <
15
+ T extends
16
+ | AcquiringFormState
17
+ | BusinessCardFormState
18
+ | CorruptionFormState
19
+ | FeedbackFormState
20
+ | SelfCollectionFormState
21
+ | WedFormState,
22
+ >(
23
+ regions: Select[],
24
+ field: FormFieldRegisterer<T>,
25
+ ) => {
26
+ return (
27
+ <SelectControl
28
+ className="w-full"
29
+ label="Филиал"
30
+ placeholder="Выберите филиал"
31
+ isSearch={true}
32
+ options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
33
+ {...withValidator(field('region'), defaultValidator)}
34
+ />
35
+ );
36
+ };
@@ -2,8 +2,9 @@ import { type FormFieldRegisterer } from '../../hooks/useForm';
2
2
  import { withValidator } from '../../validation/withValidator';
3
3
  import { type Branch } from '../SafeDepositRental/useSafeBoxes';
4
4
  import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
5
- import { type CreditFormState } from './CreditFormState';
5
+ import { type CreditFormState } from './ApplicationFormCredit';
6
6
  import { type Select } from './models';
7
+ import { renderRegion } from './renderRegion';
7
8
  import { SelectControl } from './SelectControl';
8
9
  import { defaultValidator } from './validators';
9
10
 
@@ -22,17 +23,7 @@ export const renderRegionDepartment = ({
22
23
  }: RegionDepartmentProps) => (
23
24
  <ApplicationFieldsetLayout
24
25
  title={title}
25
- firstChildren={
26
- <div className={formChildrenStyle}>
27
- <SelectControl
28
- label="Филиал"
29
- placeholder="Выберите филиал"
30
- isSearch={true}
31
- options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
32
- {...withValidator(field('region'), defaultValidator)}
33
- />
34
- </div>
35
- }
26
+ firstChildren={<div className={formChildrenStyle}>{renderRegion(regions, field)}</div>}
36
27
  secondChildren={
37
28
  <div className={formChildrenStyle}>
38
29
  <SelectControl
@@ -14,15 +14,27 @@ import { style } from '../../utils/style';
14
14
  import { type CarouselTariffsCardContent } from './CarouselTariffsCardContent';
15
15
  import { renderCardInfo } from './renderCardInfo';
16
16
 
17
- export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {}
18
-
19
- const VISIBLE_CELLS_COUNT = 1;
17
+ export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {
18
+ visibleCellsCount?: number;
19
+ }
20
20
 
21
21
  export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
22
- ({ className = '', title, align = 'text-center', icon, button, cardCells = [], ...rest }) => {
22
+ ({
23
+ className = '',
24
+ title,
25
+ align = 'text-center',
26
+ icon,
27
+ button,
28
+ visibleCellsCount = 1,
29
+ cardCells = [],
30
+ ...rest
31
+ }) => {
23
32
  const cellsNode = cardCells.map(renderCardInfo);
24
- const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
25
- const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
33
+
34
+ const [visibleCells, hiddenCells] =
35
+ visibleCellsCount > 0
36
+ ? [cellsNode.slice(0, visibleCellsCount), cellsNode.slice(visibleCellsCount)]
37
+ : [cellsNode, []];
26
38
 
27
39
  return (
28
40
  <BlockWrapper className={style('flex flex-col', className)} defaultPadding="p-2xl" {...rest}>
@@ -34,8 +46,8 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
34
46
  {title ? (
35
47
  <Heading className={style('pt-xs', align)} headingType="h5" title={title} />
36
48
  ) : null}
37
- {button ? <LinkButton className="w-full mt-m mb-lg" {...button} /> : null}
38
- {cardCells.length ? (
49
+ {button?.text ? <LinkButton className="w-full mt-m mb-lg" {...button} /> : null}
50
+ {hiddenCells.length ? (
39
51
  <Foldable
40
52
  renderFoldableSection={({ isUnfolded }) => (
41
53
  <div>
@@ -45,7 +57,9 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
45
57
  )}
46
58
  renderFoldButton={cardCells.length > 1 ? renderFoldButton : null}
47
59
  />
48
- ) : null}
60
+ ) : (
61
+ <div>{visibleCells}</div>
62
+ )}
49
63
  </BlockWrapper>
50
64
  );
51
65
  },
@@ -24,7 +24,7 @@ export function renderContentPageHead(data: ContentPageMeta) {
24
24
  function renderOpenGraph(og: Record<string, string> | undefined) {
25
25
  return og
26
26
  ? Object.entries(og).map(([key, value]) => (
27
- <meta key={key} property={`og:${key}`} content={value} />
27
+ <meta key={`og_${key}`} property={`og:${key}`} content={value} />
28
28
  ))
29
29
  : null;
30
30
  }
@@ -32,7 +32,7 @@ function renderOpenGraph(og: Record<string, string> | undefined) {
32
32
  function renderTwitter(twitter: Record<string, string> | undefined) {
33
33
  return twitter
34
34
  ? Object.entries(twitter).map(([key, value]) => (
35
- <meta key={key} name={`twitter:${key}`} content={value} />
35
+ <meta key={`twitter_${key}`} name={`twitter:${key}`} content={value} />
36
36
  ))
37
37
  : null;
38
38
  }
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { type UniBlockProps } from '../../model/JSXBlock';
2
+ import { type JSXBlock, type UniBlockProps } from '../../model/JSXBlock';
3
3
  import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile';
4
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
5
  import { style } from '../../utils/style';
@@ -7,12 +7,16 @@ import { type ProductBlockContent } from './ProductBlockContent';
7
7
 
8
8
  export interface ProductBlockProps extends UniBlockProps, ProductBlockContent {}
9
9
 
10
- export const ProductBlock = JSX<ProductBlockProps>(({ className, padding, ...rest }) => (
11
- <BlockWrapper
12
- className={style('overflow-hidden flex flex-col gap-3xl box-border', className)}
13
- padding="p-0"
14
- {...rest}
15
- >
16
- <BaseProductTile defaultPadding="p-6xl" padding={padding} className="grow h-full" {...rest} />
17
- </BlockWrapper>
18
- ));
10
+ export const ProductBlock: JSXBlock<ProductBlockProps> = JSX<ProductBlockProps>(
11
+ ({ className, padding, ...rest }) => (
12
+ <BlockWrapper
13
+ className={style('overflow-hidden flex flex-col gap-3xl box-border', className)}
14
+ padding="p-0"
15
+ {...rest}
16
+ >
17
+ <BaseProductTile defaultPadding="p-6xl" padding={padding} className="grow h-full" {...rest} />
18
+ </BlockWrapper>
19
+ ),
20
+ );
21
+
22
+ ProductBlock.childrenTypes = ['UnitBlock'];
@@ -3,5 +3,6 @@ import { type UnitProps } from '../../ui-kit/Unit/UnitProps';
3
3
 
4
4
  /**
5
5
  * @title Показатель
6
+ * @default { prefix: "префикс", unit: 1, suffix: "суффикс" }
6
7
  */
7
8
  export type UnitBlockContent = UniBlockContent & UnitProps;
@@ -4,7 +4,7 @@ import { renderChildren } from '../../BlockRenderer/renderChildren';
4
4
  import { renderBackwardButton } from '../../components/ProductBlock/renderBackwardButton';
5
5
  import { useRouter } from '../../hooks/useRouter';
6
6
  import { type Align } from '../../model/Align';
7
- import { type JSXBlock, type UniBlockProps } from '../../model/JSXBlock';
7
+ import { type UniBlockProps } from '../../model/JSXBlock';
8
8
  import { type VNode } from '../../model/VNode';
9
9
  import { style } from '../../utils/style';
10
10
  import { type PreventableEvent } from '../PreventableEvent';
@@ -27,7 +27,7 @@ const imageAlignmentMap: Record<Align, string> = {
27
27
  end: '@xl:self-end',
28
28
  };
29
29
 
30
- export const BaseTile: JSXBlock<BaseTileProps> = JSX<BaseTileProps>(
30
+ export const BaseTile = JSX<BaseTileProps>(
31
31
  ({
32
32
  className,
33
33
  version = 'primary',
@@ -95,8 +95,6 @@ export const BaseTile: JSXBlock<BaseTileProps> = JSX<BaseTileProps>(
95
95
  },
96
96
  );
97
97
 
98
- BaseTile.childrenTypes = ['UnitBlock'];
99
-
100
98
  const getStyle = (padding = '', defaultPadding = '', className = '') =>
101
99
  style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className);
102
100
 
@@ -16,12 +16,12 @@ export const InnerTableBody = JSX<InnerTableBodyProps>(({ activeTabIndex, items
16
16
 
17
17
  return (
18
18
  <div key={key} className="w-full @container">
19
- <div className="flex p-m bg-white @4xl:bg-gray text-center justify-center relative">
20
- <Text size="text-xl" font="font-light">
19
+ <div className="flex py-m sm:px-m bg-white @4xl:bg-gray relative">
20
+ <Text size="text-xl" align="text-left">
21
21
  {_.title}
22
22
  </Text>
23
23
  </div>
24
- <div className="w-full pl-xs overflow-hidden transition-height duration-500 ease-in-out">
24
+ <div className="w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out">
25
25
  <div className="relative">
26
26
  <InnerTableBodyItem rows={_.rowsData} />
27
27
  </div>