@redneckz/wildless-cms-uni-blocks 0.14.154 → 0.14.155

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 (437) hide show
  1. package/bundle/api/LeadServiceAPI.d.ts +10 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +131 -220
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/AddressBranchField.d.ts +2 -1
  6. package/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
  7. package/bundle/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
  8. package/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
  9. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
  10. package/bundle/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
  11. package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
  12. package/bundle/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
  13. package/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
  14. package/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
  15. package/bundle/components/ApplicationForm/DatePickerControl.d.ts +1 -0
  16. package/bundle/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
  17. package/bundle/components/ApplicationForm/SelectControl.d.ts +2 -0
  18. package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
  19. package/bundle/hooks/useForm.d.ts +4 -1
  20. package/bundle/hooks/usePremiumBranchesByRegions.d.ts +1 -0
  21. package/bundle/ui-kit/Input/InputProps.d.ts +1 -0
  22. package/dist/api/LeadServiceAPI.d.ts +10 -1
  23. package/dist/api/LeadServiceAPI.js +23 -1
  24. package/dist/api/LeadServiceAPI.js.map +1 -1
  25. package/dist/components/ApplicationForm/AddressBranchField.d.ts +2 -1
  26. package/dist/components/ApplicationForm/AddressBranchField.js +7 -4
  27. package/dist/components/ApplicationForm/AddressBranchField.js.map +1 -1
  28. package/dist/components/ApplicationForm/ApplicationForm.js +3 -1
  29. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  30. package/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
  31. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +6 -11
  32. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  33. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
  34. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -11
  35. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  36. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
  37. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +10 -16
  38. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  39. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
  40. package/dist/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
  41. package/dist/components/ApplicationForm/ApplicationFormCorruption.js +4 -12
  42. package/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  43. package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
  44. package/dist/components/ApplicationForm/ApplicationFormCredit.js +10 -21
  45. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  46. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +6 -9
  47. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  48. package/dist/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
  49. package/dist/components/ApplicationForm/ApplicationFormFeedback.js +7 -7
  50. package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  51. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +6 -14
  52. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  53. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
  54. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +5 -15
  55. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
  56. package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +6 -27
  57. package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
  58. package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
  59. package/dist/components/ApplicationForm/ApplicationFormWed.js +12 -20
  60. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  61. package/dist/components/ApplicationForm/DatePickerControl.d.ts +1 -0
  62. package/dist/components/ApplicationForm/DatePickerControl.js +1 -1
  63. package/dist/components/ApplicationForm/DatePickerControl.js.map +1 -1
  64. package/dist/components/ApplicationForm/InputControl.js +1 -1
  65. package/dist/components/ApplicationForm/InputControl.js.map +1 -1
  66. package/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
  67. package/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
  68. package/dist/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
  69. package/dist/components/ApplicationForm/RegionPremiumField.js +17 -0
  70. package/dist/components/ApplicationForm/RegionPremiumField.js.map +1 -0
  71. package/dist/components/ApplicationForm/SelectControl.d.ts +2 -0
  72. package/dist/components/ApplicationForm/SelectControl.js +1 -1
  73. package/dist/components/ApplicationForm/SelectControl.js.map +1 -1
  74. package/dist/components/ApplicationForm/handleSubmit.js +3 -51
  75. package/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
  76. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  77. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  78. package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  79. package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  80. package/dist/components/ApplicationForm/renderUserData.js +1 -1
  81. package/dist/components/ApplicationForm/renderUserData.js.map +1 -1
  82. package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
  83. package/dist/components/ApplicationForm/renderWedDataOrganization.js +3 -3
  84. package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  85. package/dist/hooks/useForm.d.ts +4 -1
  86. package/dist/hooks/useForm.js +2 -2
  87. package/dist/hooks/useForm.js.map +1 -1
  88. package/dist/hooks/usePremiumBranchesByRegions.d.ts +1 -0
  89. package/dist/hooks/usePremiumBranchesByRegions.js.map +1 -1
  90. package/dist/ui-kit/Input/InputProps.d.ts +1 -0
  91. package/dist/utils/formatPhone.js +1 -1
  92. package/dist/utils/formatPhone.js.map +1 -1
  93. package/lib/api/LeadServiceAPI.d.ts +10 -1
  94. package/lib/api/LeadServiceAPI.js +23 -1
  95. package/lib/api/LeadServiceAPI.js.map +1 -1
  96. package/lib/common.css +1 -1
  97. package/lib/components/ApplicationForm/AddressBranchField.d.ts +2 -1
  98. package/lib/components/ApplicationForm/AddressBranchField.js +7 -4
  99. package/lib/components/ApplicationForm/AddressBranchField.js.map +1 -1
  100. package/lib/components/ApplicationForm/ApplicationForm.js +3 -1
  101. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  102. package/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
  103. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +6 -11
  104. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  105. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
  106. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -11
  107. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  108. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
  109. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +10 -16
  110. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  111. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
  112. package/lib/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
  113. package/lib/components/ApplicationForm/ApplicationFormCorruption.js +4 -12
  114. package/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  115. package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
  116. package/lib/components/ApplicationForm/ApplicationFormCredit.js +10 -21
  117. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  118. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +6 -9
  119. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  120. package/lib/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
  121. package/lib/components/ApplicationForm/ApplicationFormFeedback.js +7 -7
  122. package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  123. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +7 -15
  124. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  125. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
  126. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +5 -15
  127. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
  128. package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +6 -27
  129. package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
  130. package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
  131. package/lib/components/ApplicationForm/ApplicationFormWed.js +12 -20
  132. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  133. package/lib/components/ApplicationForm/DatePickerControl.d.ts +1 -0
  134. package/lib/components/ApplicationForm/DatePickerControl.js +1 -1
  135. package/lib/components/ApplicationForm/DatePickerControl.js.map +1 -1
  136. package/lib/components/ApplicationForm/InputControl.js +1 -1
  137. package/lib/components/ApplicationForm/InputControl.js.map +1 -1
  138. package/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
  139. package/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
  140. package/lib/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
  141. package/lib/components/ApplicationForm/RegionPremiumField.js +15 -0
  142. package/lib/components/ApplicationForm/RegionPremiumField.js.map +1 -0
  143. package/lib/components/ApplicationForm/SelectControl.d.ts +2 -0
  144. package/lib/components/ApplicationForm/SelectControl.js +1 -1
  145. package/lib/components/ApplicationForm/SelectControl.js.map +1 -1
  146. package/lib/components/ApplicationForm/handleSubmit.js +3 -51
  147. package/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
  148. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  149. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  150. package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  151. package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  152. package/lib/components/ApplicationForm/renderUserData.js +1 -1
  153. package/lib/components/ApplicationForm/renderUserData.js.map +1 -1
  154. package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
  155. package/lib/components/ApplicationForm/renderWedDataOrganization.js +3 -3
  156. package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  157. package/lib/hooks/useForm.d.ts +4 -1
  158. package/lib/hooks/useForm.js +2 -2
  159. package/lib/hooks/useForm.js.map +1 -1
  160. package/lib/hooks/usePremiumBranchesByRegions.d.ts +1 -0
  161. package/lib/hooks/usePremiumBranchesByRegions.js.map +1 -1
  162. package/lib/ui-kit/Input/InputProps.d.ts +1 -0
  163. package/lib/utils/formatPhone.js +1 -1
  164. package/lib/utils/formatPhone.js.map +1 -1
  165. package/mobile/bundle/api/LeadServiceAPI.d.ts +10 -1
  166. package/mobile/bundle/bundle.umd.js +131 -220
  167. package/mobile/bundle/bundle.umd.min.js +1 -1
  168. package/mobile/bundle/components/ApplicationForm/AddressBranchField.d.ts +2 -1
  169. package/mobile/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
  170. package/mobile/bundle/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
  171. package/mobile/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
  172. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
  173. package/mobile/bundle/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
  174. package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
  175. package/mobile/bundle/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
  176. package/mobile/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
  177. package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
  178. package/mobile/bundle/components/ApplicationForm/DatePickerControl.d.ts +1 -0
  179. package/mobile/bundle/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
  180. package/mobile/bundle/components/ApplicationForm/SelectControl.d.ts +2 -0
  181. package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
  182. package/mobile/bundle/hooks/useForm.d.ts +4 -1
  183. package/mobile/bundle/hooks/usePremiumBranchesByRegions.d.ts +1 -0
  184. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +1 -0
  185. package/mobile/dist/api/LeadServiceAPI.d.ts +10 -1
  186. package/mobile/dist/api/LeadServiceAPI.js +23 -1
  187. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  188. package/mobile/dist/components/ApplicationForm/AddressBranchField.d.ts +2 -1
  189. package/mobile/dist/components/ApplicationForm/AddressBranchField.js +7 -4
  190. package/mobile/dist/components/ApplicationForm/AddressBranchField.js.map +1 -1
  191. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +3 -1
  192. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  193. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
  194. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +6 -11
  195. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  196. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
  197. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -11
  198. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  199. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
  200. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +10 -16
  201. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  202. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
  203. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
  204. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js +4 -12
  205. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  206. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
  207. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +10 -21
  208. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  209. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +6 -9
  210. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  211. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
  212. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +7 -7
  213. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  214. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +6 -14
  215. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  216. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
  217. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +5 -15
  218. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
  219. package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +6 -27
  220. package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
  221. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
  222. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +12 -20
  223. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  224. package/mobile/dist/components/ApplicationForm/DatePickerControl.d.ts +1 -0
  225. package/mobile/dist/components/ApplicationForm/DatePickerControl.js +1 -1
  226. package/mobile/dist/components/ApplicationForm/DatePickerControl.js.map +1 -1
  227. package/mobile/dist/components/ApplicationForm/InputControl.js +1 -1
  228. package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -1
  229. package/mobile/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
  230. package/mobile/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
  231. package/mobile/dist/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
  232. package/mobile/dist/components/ApplicationForm/RegionPremiumField.js +17 -0
  233. package/mobile/dist/components/ApplicationForm/RegionPremiumField.js.map +1 -0
  234. package/mobile/dist/components/ApplicationForm/SelectControl.d.ts +2 -0
  235. package/mobile/dist/components/ApplicationForm/SelectControl.js +1 -1
  236. package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -1
  237. package/mobile/dist/components/ApplicationForm/handleSubmit.js +3 -51
  238. package/mobile/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
  239. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  240. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  241. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  242. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  243. package/mobile/dist/components/ApplicationForm/renderUserData.js +1 -1
  244. package/mobile/dist/components/ApplicationForm/renderUserData.js.map +1 -1
  245. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
  246. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +3 -3
  247. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  248. package/mobile/dist/hooks/useForm.d.ts +4 -1
  249. package/mobile/dist/hooks/useForm.js +2 -2
  250. package/mobile/dist/hooks/useForm.js.map +1 -1
  251. package/mobile/dist/hooks/usePremiumBranchesByRegions.d.ts +1 -0
  252. package/mobile/dist/hooks/usePremiumBranchesByRegions.js.map +1 -1
  253. package/mobile/dist/ui-kit/Input/InputProps.d.ts +1 -0
  254. package/mobile/dist/utils/formatPhone.js +1 -1
  255. package/mobile/dist/utils/formatPhone.js.map +1 -1
  256. package/mobile/lib/api/LeadServiceAPI.d.ts +10 -1
  257. package/mobile/lib/api/LeadServiceAPI.js +23 -1
  258. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  259. package/mobile/lib/common.css +1 -1
  260. package/mobile/lib/components/ApplicationForm/AddressBranchField.d.ts +2 -1
  261. package/mobile/lib/components/ApplicationForm/AddressBranchField.js +7 -4
  262. package/mobile/lib/components/ApplicationForm/AddressBranchField.js.map +1 -1
  263. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +3 -1
  264. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  265. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -0
  266. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +6 -11
  267. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  268. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.d.ts +1 -1
  269. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +3 -11
  270. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  271. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +2 -1
  272. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +10 -16
  273. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  274. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +0 -1
  275. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.d.ts +2 -2
  276. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js +4 -12
  277. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  278. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +3 -2
  279. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +10 -21
  280. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  281. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +6 -9
  282. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  283. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.d.ts +1 -1
  284. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +7 -7
  285. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  286. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +7 -15
  287. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  288. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +2 -2
  289. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +5 -15
  290. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
  291. package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +6 -27
  292. package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
  293. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +6 -5
  294. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +12 -20
  295. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  296. package/mobile/lib/components/ApplicationForm/DatePickerControl.d.ts +1 -0
  297. package/mobile/lib/components/ApplicationForm/DatePickerControl.js +1 -1
  298. package/mobile/lib/components/ApplicationForm/DatePickerControl.js.map +1 -1
  299. package/mobile/lib/components/ApplicationForm/InputControl.js +1 -1
  300. package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -1
  301. package/mobile/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
  302. package/mobile/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
  303. package/mobile/lib/components/ApplicationForm/RegionPremiumField.d.ts +6 -0
  304. package/mobile/lib/components/ApplicationForm/RegionPremiumField.js +15 -0
  305. package/mobile/lib/components/ApplicationForm/RegionPremiumField.js.map +1 -0
  306. package/mobile/lib/components/ApplicationForm/SelectControl.d.ts +2 -0
  307. package/mobile/lib/components/ApplicationForm/SelectControl.js +1 -1
  308. package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -1
  309. package/mobile/lib/components/ApplicationForm/handleSubmit.js +3 -51
  310. package/mobile/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
  311. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  312. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  313. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  314. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  315. package/mobile/lib/components/ApplicationForm/renderUserData.js +1 -1
  316. package/mobile/lib/components/ApplicationForm/renderUserData.js.map +1 -1
  317. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -4
  318. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +3 -3
  319. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  320. package/mobile/lib/hooks/useForm.d.ts +4 -1
  321. package/mobile/lib/hooks/useForm.js +2 -2
  322. package/mobile/lib/hooks/useForm.js.map +1 -1
  323. package/mobile/lib/hooks/usePremiumBranchesByRegions.d.ts +1 -0
  324. package/mobile/lib/hooks/usePremiumBranchesByRegions.js.map +1 -1
  325. package/mobile/lib/ui-kit/Input/InputProps.d.ts +1 -0
  326. package/mobile/lib/utils/formatPhone.js +1 -1
  327. package/mobile/lib/utils/formatPhone.js.map +1 -1
  328. package/mobile/src/api/LeadServiceAPI.ts +50 -3
  329. package/mobile/src/components/ApplicationForm/AddressBranchField.tsx +21 -15
  330. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +7 -1
  331. package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +1 -1
  332. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +12 -12
  333. package/mobile/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +6 -15
  334. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +24 -18
  335. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +0 -1
  336. package/mobile/src/components/ApplicationForm/ApplicationFormCorruption.tsx +8 -20
  337. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +13 -29
  338. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +8 -10
  339. package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +20 -22
  340. package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +7 -17
  341. package/mobile/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +9 -23
  342. package/mobile/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +12 -49
  343. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +25 -27
  344. package/mobile/src/components/ApplicationForm/DatePickerControl.tsx +3 -2
  345. package/mobile/src/components/ApplicationForm/InputControl.tsx +3 -3
  346. package/mobile/src/components/ApplicationForm/PhoneInputControl.tsx +2 -2
  347. package/mobile/src/components/ApplicationForm/RegionPremiumField.tsx +28 -0
  348. package/mobile/src/components/ApplicationForm/SelectControl.tsx +10 -6
  349. package/mobile/src/components/ApplicationForm/handleSubmit.tsx +3 -52
  350. package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  351. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +4 -2
  352. package/mobile/src/components/ApplicationForm/renderUserData.tsx +3 -3
  353. package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +4 -20
  354. package/mobile/src/hooks/useForm.ts +3 -2
  355. package/mobile/src/hooks/usePremiumBranchesByRegions.ts +1 -0
  356. package/mobile/src/ui-kit/Input/InputProps.ts +1 -0
  357. package/mobile/src/utils/formatPhone.ts +1 -1
  358. package/package.json +1 -1
  359. package/src/api/LeadServiceAPI.ts +50 -3
  360. package/src/components/ApplicationForm/AddressBranchField.tsx +21 -15
  361. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
  362. package/src/components/ApplicationForm/ApplicationForm.tsx +7 -1
  363. package/src/components/ApplicationForm/ApplicationForm.ui.json +1 -1
  364. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +12 -12
  365. package/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +6 -15
  366. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +24 -18
  367. package/src/components/ApplicationForm/ApplicationFormContent.ts +0 -1
  368. package/src/components/ApplicationForm/ApplicationFormCorruption.tsx +8 -20
  369. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +13 -29
  370. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +8 -10
  371. package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +20 -22
  372. package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +7 -17
  373. package/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +9 -23
  374. package/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +12 -49
  375. package/src/components/ApplicationForm/ApplicationFormWed.tsx +25 -27
  376. package/src/components/ApplicationForm/DatePickerControl.tsx +3 -2
  377. package/src/components/ApplicationForm/InputControl.tsx +3 -3
  378. package/src/components/ApplicationForm/PhoneInputControl.tsx +2 -2
  379. package/src/components/ApplicationForm/RegionPremiumField.tsx +28 -0
  380. package/src/components/ApplicationForm/SelectControl.tsx +10 -6
  381. package/src/components/ApplicationForm/handleSubmit.tsx +3 -52
  382. package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  383. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +4 -2
  384. package/src/components/ApplicationForm/renderUserData.tsx +3 -3
  385. package/src/components/ApplicationForm/renderWedDataOrganization.tsx +4 -20
  386. package/src/hooks/useForm.ts +3 -2
  387. package/src/hooks/usePremiumBranchesByRegions.ts +1 -0
  388. package/src/ui-kit/Input/InputProps.ts +1 -0
  389. package/src/utils/formatPhone.ts +1 -1
  390. package/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -4
  391. package/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -4
  392. package/bundle/components/ApplicationForm/renderTextarea.d.ts +0 -11
  393. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -4
  394. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +0 -11
  395. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +0 -1
  396. package/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -4
  397. package/dist/components/ApplicationForm/renderSlideCheckboxes.js +0 -7
  398. package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +0 -1
  399. package/dist/components/ApplicationForm/renderTextarea.d.ts +0 -11
  400. package/dist/components/ApplicationForm/renderTextarea.js +0 -10
  401. package/dist/components/ApplicationForm/renderTextarea.js.map +0 -1
  402. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -3
  403. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +0 -8
  404. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +0 -1
  405. package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -3
  406. package/lib/components/ApplicationForm/renderSlideCheckboxes.js +0 -4
  407. package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +0 -1
  408. package/lib/components/ApplicationForm/renderTextarea.d.ts +0 -10
  409. package/lib/components/ApplicationForm/renderTextarea.js +0 -7
  410. package/lib/components/ApplicationForm/renderTextarea.js.map +0 -1
  411. package/mobile/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -4
  412. package/mobile/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -4
  413. package/mobile/bundle/components/ApplicationForm/renderTextarea.d.ts +0 -11
  414. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -4
  415. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +0 -11
  416. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +0 -1
  417. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -4
  418. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +0 -7
  419. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +0 -1
  420. package/mobile/dist/components/ApplicationForm/renderTextarea.d.ts +0 -11
  421. package/mobile/dist/components/ApplicationForm/renderTextarea.js +0 -10
  422. package/mobile/dist/components/ApplicationForm/renderTextarea.js.map +0 -1
  423. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +0 -4
  424. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +0 -8
  425. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +0 -1
  426. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +0 -4
  427. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +0 -4
  428. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +0 -1
  429. package/mobile/lib/components/ApplicationForm/renderTextarea.d.ts +0 -11
  430. package/mobile/lib/components/ApplicationForm/renderTextarea.js +0 -7
  431. package/mobile/lib/components/ApplicationForm/renderTextarea.js.map +0 -1
  432. package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +0 -22
  433. package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +0 -10
  434. package/mobile/src/components/ApplicationForm/renderTextarea.tsx +0 -42
  435. package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +0 -22
  436. package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +0 -10
  437. package/src/components/ApplicationForm/renderTextarea.tsx +0 -42
@@ -1,4 +1,3 @@
1
- import { formatPhone } from '../../utils/formatPhone';
2
1
  import { objectValidator } from '../../validation/objectValidator';
3
2
  import { isValidationSuccess } from '../../validation/validator';
4
3
  import { type FeedbackFormState } from './ApplicationFormFeedback';
@@ -31,24 +30,7 @@ export const handleSubmitIndividual = (
31
30
  ...feedbackValidatorDefaultObject,
32
31
  addressBranch: defaultValidator,
33
32
  });
34
-
35
- const submitData = {
36
- typeForm: formState.typeForm.key,
37
- regionBranch: formState?.region?.text,
38
- addressBranch: formState.addressBranch?.text || '',
39
- surname: formState.surname,
40
- name: formState.name,
41
- middleName: formState.middleName,
42
- feedbackMethod: formState.feedbackMethod.text,
43
- phoneNumber: formatPhone(formState.phone),
44
- secondaryPhoneNumber: formState.secondaryPhone?.replace(/[^+\d]/g, ''),
45
- email: formState.email,
46
- bankEmpolee: formState.bankEmpolee,
47
- applicationDate: formState.applicationDate,
48
- comment: formState.comment,
49
- consentDataProcessing: formState.consentDataProcessing,
50
- };
51
- isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
33
+ isValidationSuccess(feedbackValidator(formState)) && onSubmit(formState, true);
52
34
  };
53
35
 
54
36
  export const handleSubmitLegal = (
@@ -60,25 +42,7 @@ export const handleSubmitLegal = (
60
42
  addressBranch: defaultValidator,
61
43
  inn: innValidator,
62
44
  });
63
- const submitData = {
64
- typeForm: formState.typeForm.key,
65
- region: formState.region?.text,
66
- addressBranch: formState.addressBranch?.text || '',
67
- surname: formState.surname,
68
- name: formState.name,
69
- middleName: formState.middleName,
70
- inn: formState.inn,
71
- fullName: formState.fullName,
72
- feedbackMethod: formState.feedbackMethod.text,
73
- phone: formatPhone(formState.phone),
74
- secondaryPhoneNumber: formState?.secondaryPhone,
75
- mail: formState.email,
76
- bankEmpolee: formState.bankEmpolee,
77
- applicationDate: formState.applicationDate,
78
- comment: formState.comment,
79
- consentDataProcessing: formState.consentDataProcessing,
80
- };
81
- isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, false);
45
+ isValidationSuccess(feedbackValidator(formState)) && onSubmit(formState, false);
82
46
  };
83
47
 
84
48
  export const handleSubmitQuestion = (
@@ -89,18 +53,5 @@ export const handleSubmitQuestion = (
89
53
  ...feedbackValidatorDefaultObject,
90
54
  birthday: defaultValidator,
91
55
  });
92
- const submitData = {
93
- typeForm: formState.typeForm.key,
94
- regionBranch: formState.region?.text,
95
- surname: formState.surname,
96
- name: formState.name,
97
- middleName: formState.middleName,
98
- birthday: formState.birthday,
99
- feedbackMethod: formState.feedbackMethod.text,
100
- phoneNumber: formatPhone(formState.phone),
101
- email: formState.email,
102
- comment: formState.comment,
103
- consentDataProcessing: formState.consentDataProcessing,
104
- };
105
- isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
56
+ isValidationSuccess(feedbackValidator(formState)) && onSubmit(formState, true);
106
57
  };
@@ -13,14 +13,14 @@ export const renderAcquiringDataOrganization = (
13
13
  <ApplicationFieldsetLayout title={title}>
14
14
  <div className={formChildrenStyle}>
15
15
  <InputControl
16
- label="Наименование организации*"
16
+ label="Наименование организации"
17
17
  {...withValidator(field('fullName'), defaultValidator)}
18
18
  />
19
- <InputControl label="Контактное лицо*" {...withValidator(field('name'), nameValidator)} />
19
+ <InputControl label="Контактное лицо" {...withValidator(field('name'), nameValidator)} />
20
20
  </div>
21
21
  <div className={formChildrenStyle}>
22
- <InputControl label="ИНН*" {...withValidator(field('inn'), innValidator)} />
23
- <PhoneInputControl label="Телефон*" {...withValidator(field('phone'), phoneValidator)} />
22
+ <InputControl label="ИНН" {...withValidator(field('inn'), innValidator)} />
23
+ <PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
24
24
  </div>
25
25
  </ApplicationFieldsetLayout>
26
26
  );
@@ -19,14 +19,16 @@ export const renderCreditDataOrganization = (
19
19
  <InputControl label="ИНН" {...withValidator(field('inn'), innValidator)} />
20
20
  <PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
21
21
  </div>
22
-
23
22
  <div className={formChildrenStyle}>
24
23
  <InputControl
25
24
  label="Годовая выручка, ₽"
26
25
  {...withValidator(field('annualRevenue'), defaultValidator)}
27
26
  />
28
27
  <InputControl label="Контактное лицо" {...withValidator(field('name'), nameValidator)} />
29
- <InputControl label="Электронная почта" {...withValidator(field('mail'), defaultValidator)} />
28
+ <InputControl
29
+ label="Электронная почта"
30
+ {...withValidator(field('email'), defaultValidator)}
31
+ />
30
32
  </div>
31
33
  </ApplicationFieldsetLayout>
32
34
  );
@@ -27,12 +27,12 @@ export const renderUserData = <
27
27
  isBirthday = true,
28
28
  ) => (
29
29
  <div className="space-y-s">
30
- <InputControl label="Фамилия*" {...withValidator(field('surname'), nameValidator)} />
31
- <InputControl label="Имя*" {...withValidator(field('name'), nameValidator)} />
30
+ <InputControl label="Фамилия" {...withValidator(field('surname'), nameValidator)} />
31
+ <InputControl label="Имя" {...withValidator(field('name'), nameValidator)} />
32
32
  <InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} />
33
33
  {isBirthday ? (
34
34
  <DatePickerControl
35
- label="Дата рождения*"
35
+ label="Дата рождения"
36
36
  {...withValidator(field('birthday'), defaultValidator)}
37
37
  />
38
38
  ) : null}
@@ -2,31 +2,20 @@ import { type FormFieldRegisterer } from '../../hooks/useForm';
2
2
  import { withValidator } from '../../validation/withValidator';
3
3
  import { type WedFormState } from './ApplicationFormWed';
4
4
  import { InputControl } from './InputControl';
5
- import { type Select } from './models';
6
5
  import { PhoneInputControl } from './PhoneInputControl';
7
- import { SelectControl } from './SelectControl';
6
+ import { RegionField } from './RegionField';
8
7
  import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
9
8
 
10
9
  interface WedDataOrganizationProps {
11
- title?: string;
12
10
  field: FormFieldRegisterer<WedFormState>;
13
- regions: Select[];
14
11
  }
15
12
 
16
- export const renderWedDataOrganization = ({ field, regions }: WedDataOrganizationProps) => {
13
+ export const renderWedDataOrganization = ({ field }: WedDataOrganizationProps) => {
17
14
  const isCurrencyControl = field('vedTypes').value === 'currencyControl';
18
15
 
19
16
  return (
20
17
  <div className="space-y-s">
21
- {isCurrencyControl ? (
22
- <SelectControl
23
- label="Филиал"
24
- placeholder="Выберите филиал"
25
- isSearch={true}
26
- options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
27
- {...withValidator(field('region'), defaultValidator)}
28
- />
29
- ) : null}
18
+ {isCurrencyControl ? <RegionField field={field} /> : null}
30
19
  <div className="grid @xl:grid-cols-2 @xl:gap-x-lg gap-s">
31
20
  {isCurrencyControl ? (
32
21
  <InputControl label="ИНН" {...withValidator(field('inn'), innValidator)} />
@@ -37,12 +26,7 @@ export const renderWedDataOrganization = ({ field, regions }: WedDataOrganizatio
37
26
  />
38
27
  <InputControl label="ФИО" {...withValidator(field('name'), nameValidator)} />
39
28
  <PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
40
- {!isCurrencyControl ? (
41
- <InputControl
42
- label="Электронная почта"
43
- {...withValidator(field('mail'), defaultValidator)}
44
- />
45
- ) : null}
29
+ {!isCurrencyControl ? <InputControl label="Электронная почта" {...field('email')} /> : null}
46
30
  </div>
47
31
  </div>
48
32
  );
@@ -19,7 +19,7 @@ export type FormFieldRegisterer<FormState> = <N extends keyof FormState, V = For
19
19
 
20
20
  export const useForm = <FormState extends Record<string, any>>(
21
21
  initialState: FormState,
22
- onSubmit?: (_: FormState) => void,
22
+ { resetOnSubmit, onSubmit }: { resetOnSubmit?: boolean; onSubmit?: (_: FormState) => void } = {},
23
23
  ): [
24
24
  FormState,
25
25
  {
@@ -76,7 +76,8 @@ export const useForm = <FormState extends Record<string, any>>(
76
76
  (e: PreventableEvent) => {
77
77
  e.preventDefault();
78
78
 
79
- setDirtyForm(true);
79
+ resetOnSubmit ? reset() : setDirtyForm(true);
80
+
80
81
  onSubmit && onSubmit(formState);
81
82
  },
82
83
  [onSubmit, formState],
@@ -7,6 +7,7 @@ export interface Region {
7
7
  region: string;
8
8
  branches: {
9
9
  address: string;
10
+ branchCode?: string;
10
11
  }[];
11
12
  }
12
13
 
@@ -16,4 +16,5 @@ export interface InputProps<V = string> extends ControlProps<V>, LabelProps {
16
16
  autoFocus?: boolean;
17
17
  isTextarea?: boolean;
18
18
  error?: string;
19
+ errors?: string[];
19
20
  }
@@ -1 +1 @@
1
- export const formatPhone = (phone: string) => phone.replace(/[^+\d]/g, '');
1
+ export const formatPhone = (phone: string) => phone?.replace(/[^+\d]/g, '');
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FormFieldRegisterer } from '../../hooks/useForm';
3
- import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
4
- export declare const renderBusinessCardDataOrganization: (field: FormFieldRegisterer<BusinessCardFormState>) => JSX.Element;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FormFieldRegisterer } from '../../hooks/useForm';
3
- import { type AcquiringFormState } from './ApplicationFormAcquiring';
4
- export declare const renderSlideCheckboxes: (field: FormFieldRegisterer<AcquiringFormState>) => JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FieldProps } from '../../hooks/useForm';
3
- interface TextFieldProps {
4
- textField: FieldProps<string>;
5
- text?: string;
6
- placeholder?: string;
7
- value?: string;
8
- error?: string;
9
- }
10
- export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
11
- export {};
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FormFieldRegisterer } from '../../hooks/useForm';
3
- import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
4
- export declare const renderBusinessCardDataOrganization: (field: FormFieldRegisterer<BusinessCardFormState>) => JSX.Element;
@@ -1,11 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderBusinessCardDataOrganization = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const withValidator_1 = require("../../validation/withValidator");
5
- const ApplicationFieldsetLayout_1 = require("./ApplicationFieldsetLayout");
6
- const InputControl_1 = require("./InputControl");
7
- const PhoneInputControl_1 = require("./PhoneInputControl");
8
- const validators_1 = require("./validators");
9
- const renderBusinessCardDataOrganization = (field) => ((0, jsx_runtime_1.jsxs)(ApplicationFieldsetLayout_1.ApplicationFieldsetLayout, { children: [(0, jsx_runtime_1.jsxs)("div", { className: ApplicationFieldsetLayout_1.formChildrenStyle, children: [(0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...(0, withValidator_1.withValidator)(field('name'), validators_1.nameValidator) }), (0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0418\u041D\u041D", ...(0, withValidator_1.withValidator)(field('inn'), validators_1.innValidator) })] }), (0, jsx_runtime_1.jsxs)("div", { className: ApplicationFieldsetLayout_1.formChildrenStyle, children: [(0, jsx_runtime_1.jsx)(PhoneInputControl_1.PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...(0, withValidator_1.withValidator)(field('phone'), validators_1.phoneValidator) }), (0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...(0, withValidator_1.withValidator)(field('mail'), validators_1.defaultValidator) })] })] }));
10
- exports.renderBusinessCardDataOrganization = renderBusinessCardDataOrganization;
11
- //# sourceMappingURL=renderBusinessCardDataOrganization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderBusinessCardDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx"],"names":[],"mappings":";;;AACA,kEAA+D;AAC/D,2EAA2F;AAE3F,iDAA8C;AAC9C,2DAAwD;AACxD,6CAA6F;AAEtF,MAAM,kCAAkC,GAAG,CAChD,KAAiD,EACjD,EAAE,CAAC,CACH,wBAAC,qDAAyB,eACxB,iCAAK,SAAS,EAAE,6CAAiB,aAC/B,uBAAC,2BAAY,IAAC,KAAK,EAAC,uFAAiB,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE,0BAAa,CAAC,GAAI,EACzF,uBAAC,2BAAY,IAAC,KAAK,EAAC,oBAAK,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,KAAK,CAAC,EAAE,yBAAY,CAAC,GAAI,IACvE,EACN,iCAAK,SAAS,EAAE,6CAAiB,aAC/B,uBAAC,qCAAiB,IAAC,KAAK,EAAC,4CAAS,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,OAAO,CAAC,EAAE,2BAAc,CAAC,GAAI,EACxF,uBAAC,2BAAY,IAAC,KAAK,EAAC,mGAAmB,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE,6BAAgB,CAAC,GAAI,IAC1F,IACoB,CAC7B,CAAC;AAbW,QAAA,kCAAkC,sCAa7C"}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FormFieldRegisterer } from '../../hooks/useForm';
3
- import { type AcquiringFormState } from './ApplicationFormAcquiring';
4
- export declare const renderSlideCheckboxes: (field: FormFieldRegisterer<AcquiringFormState>) => JSX.Element;
@@ -1,7 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderSlideCheckboxes = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const SlideCheckbox_1 = require("../../ui-kit/SlideCheckbox/SlideCheckbox");
5
- const renderSlideCheckboxes = (field) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(SlideCheckbox_1.SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C \u043E\u043D\u043B\u0430\u0439\u043D-\u043A\u0430\u0441\u0441\u0443", ...field('onlineCheckout') }), (0, jsx_runtime_1.jsx)(SlideCheckbox_1.SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })] }));
6
- exports.renderSlideCheckboxes = renderSlideCheckboxes;
7
- //# sourceMappingURL=renderSlideCheckboxes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderSlideCheckboxes.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderSlideCheckboxes.tsx"],"names":[],"mappings":";;;AACA,4EAAyE;AAGlE,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE,CAAC,CACvF,4CACE,uBAAC,6BAAa,IAAC,IAAI,EAAC,mIAA0B,KAAK,KAAK,CAAC,gBAAgB,CAAC,GAAI,EAC9E,uBAAC,6BAAa,IAAC,IAAI,EAAC,oHAA0B,KAAK,KAAK,CAAC,aAAa,CAAC,GAAI,IACvE,CACP,CAAC;AALW,QAAA,qBAAqB,yBAKhC"}
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FieldProps } from '../../hooks/useForm';
3
- interface TextFieldProps {
4
- textField: FieldProps<string>;
5
- text?: string;
6
- placeholder?: string;
7
- value?: string;
8
- error?: string;
9
- }
10
- export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
11
- export {};
@@ -1,10 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderTextarea = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const Text_1 = require("../../ui-kit/Text/Text");
5
- const style_1 = require("../../utils/style");
6
- const renderErrorText_1 = require("./renderErrorText");
7
- const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
8
- const renderTextarea = ({ textField, text, placeholder = '', error }) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("label", { className: "space-y-xs", htmlFor: "textarea", children: [text ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: text }) })) : null, (0, jsx_runtime_1.jsx)("textarea", { id: "textarea", placeholder: placeholder, className: (0, style_1.style)('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }), (0, renderErrorText_1.renderErrorText)(error)] }));
9
- exports.renderTextarea = renderTextarea;
10
- //# sourceMappingURL=renderTextarea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderTextarea.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderTextarea.tsx"],"names":[],"mappings":";;;AACA,iDAA8C;AAC9C,6CAA0C;AAC1C,uDAAoD;AAUpD,MAAM,oBAAoB,GACxB,uFAAuF,CAAC;AACnF,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,EAAkB,EAAE,EAAE,CAAC,CAC9F,4CACE,mCAAO,SAAS,EAAC,YAAY,EAAC,OAAO,EAAC,UAAU,aAC7C,IAAI,CAAC,CAAC,CAAC,CACN,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,GACA,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,qCACE,EAAE,EAAC,UAAU,EACb,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,IAAA,aAAK,EACd,+EAA+E,EAC/E,oBAAoB,CACrB,EACD,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,OAAO,EACL,CAAC,CAAC,CAAkC,EAAE,EAAE,CACtC,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,CAAQ,GAE3E,IACI,EACP,IAAA,iCAAe,EAAC,KAAK,CAAC,IACnB,CACP,CAAC;AA1BW,QAAA,cAAc,kBA0BzB"}
@@ -1,3 +0,0 @@
1
- import { type FormFieldRegisterer } from '../../hooks/useForm';
2
- import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
3
- export declare const renderBusinessCardDataOrganization: (field: FormFieldRegisterer<BusinessCardFormState>) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { withValidator } from '../../validation/withValidator.js';
3
- import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout.js';
4
- import { InputControl } from './InputControl.js';
5
- import { PhoneInputControl } from './PhoneInputControl.js';
6
- import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators.js';
7
- export const renderBusinessCardDataOrganization = (field) => (_jsxs(ApplicationFieldsetLayout, { children: [_jsxs("div", { className: formChildrenStyle, children: [_jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), _jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), _jsxs("div", { className: formChildrenStyle, children: [_jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), _jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
8
- //# sourceMappingURL=renderBusinessCardDataOrganization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderBusinessCardDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7F,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,KAAiD,EACjD,EAAE,CAAC,CACH,MAAC,yBAAyB,eACxB,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,YAAY,IAAC,KAAK,EAAC,uFAAiB,KAAK,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,GAAI,EACzF,KAAC,YAAY,IAAC,KAAK,EAAC,oBAAK,KAAK,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,GAAI,IACvE,EACN,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,iBAAiB,IAAC,KAAK,EAAC,4CAAS,KAAK,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,GAAI,EACxF,KAAC,YAAY,IAAC,KAAK,EAAC,mGAAmB,KAAK,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,GAAI,IAC1F,IACoB,CAC7B,CAAC"}
@@ -1,3 +0,0 @@
1
- import { type FormFieldRegisterer } from '../../hooks/useForm';
2
- import { type AcquiringFormState } from './ApplicationFormAcquiring';
3
- export declare const renderSlideCheckboxes: (field: FormFieldRegisterer<AcquiringFormState>) => JSX.Element;
@@ -1,4 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { SlideCheckbox } from '../../ui-kit/SlideCheckbox/SlideCheckbox.js';
3
- export const renderSlideCheckboxes = (field) => (_jsxs("div", { children: [_jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C \u043E\u043D\u043B\u0430\u0439\u043D-\u043A\u0430\u0441\u0441\u0443", ...field('onlineCheckout') }), _jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })] }));
4
- //# sourceMappingURL=renderSlideCheckboxes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderSlideCheckboxes.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderSlideCheckboxes.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGzE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE,CAAC,CACvF,0BACE,KAAC,aAAa,IAAC,IAAI,EAAC,mIAA0B,KAAK,KAAK,CAAC,gBAAgB,CAAC,GAAI,EAC9E,KAAC,aAAa,IAAC,IAAI,EAAC,oHAA0B,KAAK,KAAK,CAAC,aAAa,CAAC,GAAI,IACvE,CACP,CAAC"}
@@ -1,10 +0,0 @@
1
- import { type FieldProps } from '../../hooks/useForm';
2
- interface TextFieldProps {
3
- textField: FieldProps<string>;
4
- text?: string;
5
- placeholder?: string;
6
- value?: string;
7
- error?: string;
8
- }
9
- export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
10
- export {};
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { Text } from '../../ui-kit/Text/Text.js';
3
- import { style } from '../../utils/style.js';
4
- import { renderErrorText } from './renderErrorText.js';
5
- const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
6
- export const renderTextarea = ({ textField, text, placeholder = '', error }) => (_jsxs("div", { children: [_jsxs("label", { className: "space-y-xs", htmlFor: "textarea", children: [text ? (_jsx("div", { children: _jsx(Text, { size: "text-m", font: "font-light", children: text }) })) : null, _jsx("textarea", { id: "textarea", placeholder: placeholder, className: style('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }), renderErrorText(error)] }));
7
- //# sourceMappingURL=renderTextarea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderTextarea.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderTextarea.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAUpD,MAAM,oBAAoB,GACxB,uFAAuF,CAAC;AAC1F,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,EAAkB,EAAE,EAAE,CAAC,CAC9F,0BACE,iBAAO,SAAS,EAAC,YAAY,EAAC,OAAO,EAAC,UAAU,aAC7C,IAAI,CAAC,CAAC,CAAC,CACN,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,GACA,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,mBACE,EAAE,EAAC,UAAU,EACb,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,CACd,+EAA+E,EAC/E,oBAAoB,CACrB,EACD,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,OAAO,EACL,CAAC,CAAC,CAAkC,EAAE,EAAE,CACtC,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,CAAQ,GAE3E,IACI,EACP,eAAe,CAAC,KAAK,CAAC,IACnB,CACP,CAAC"}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FormFieldRegisterer } from '../../hooks/useForm';
3
- import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
4
- export declare const renderBusinessCardDataOrganization: (field: FormFieldRegisterer<BusinessCardFormState>) => JSX.Element;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FormFieldRegisterer } from '../../hooks/useForm';
3
- import { type AcquiringFormState } from './ApplicationFormAcquiring';
4
- export declare const renderSlideCheckboxes: (field: FormFieldRegisterer<AcquiringFormState>) => JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FieldProps } from '../../hooks/useForm';
3
- interface TextFieldProps {
4
- textField: FieldProps<string>;
5
- text?: string;
6
- placeholder?: string;
7
- value?: string;
8
- error?: string;
9
- }
10
- export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
11
- export {};
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FormFieldRegisterer } from '../../hooks/useForm';
3
- import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
4
- export declare const renderBusinessCardDataOrganization: (field: FormFieldRegisterer<BusinessCardFormState>) => JSX.Element;
@@ -1,11 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderBusinessCardDataOrganization = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const withValidator_1 = require("../../validation/withValidator");
5
- const ApplicationFieldsetLayout_1 = require("./ApplicationFieldsetLayout");
6
- const InputControl_1 = require("./InputControl");
7
- const PhoneInputControl_1 = require("./PhoneInputControl");
8
- const validators_1 = require("./validators");
9
- const renderBusinessCardDataOrganization = (field) => ((0, jsx_runtime_1.jsxs)(ApplicationFieldsetLayout_1.ApplicationFieldsetLayout, { children: [(0, jsx_runtime_1.jsxs)("div", { className: ApplicationFieldsetLayout_1.formChildrenStyle, children: [(0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...(0, withValidator_1.withValidator)(field('name'), validators_1.nameValidator) }), (0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0418\u041D\u041D", ...(0, withValidator_1.withValidator)(field('inn'), validators_1.innValidator) })] }), (0, jsx_runtime_1.jsxs)("div", { className: ApplicationFieldsetLayout_1.formChildrenStyle, children: [(0, jsx_runtime_1.jsx)(PhoneInputControl_1.PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...(0, withValidator_1.withValidator)(field('phone'), validators_1.phoneValidator) }), (0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...(0, withValidator_1.withValidator)(field('mail'), validators_1.defaultValidator) })] })] }));
10
- exports.renderBusinessCardDataOrganization = renderBusinessCardDataOrganization;
11
- //# sourceMappingURL=renderBusinessCardDataOrganization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderBusinessCardDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx"],"names":[],"mappings":";;;AACA,kEAA+D;AAC/D,2EAA2F;AAE3F,iDAA8C;AAC9C,2DAAwD;AACxD,6CAA6F;AAEtF,MAAM,kCAAkC,GAAG,CAChD,KAAiD,EACjD,EAAE,CAAC,CACH,wBAAC,qDAAyB,eACxB,iCAAK,SAAS,EAAE,6CAAiB,aAC/B,uBAAC,2BAAY,IAAC,KAAK,EAAC,uFAAiB,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE,0BAAa,CAAC,GAAI,EACzF,uBAAC,2BAAY,IAAC,KAAK,EAAC,oBAAK,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,KAAK,CAAC,EAAE,yBAAY,CAAC,GAAI,IACvE,EACN,iCAAK,SAAS,EAAE,6CAAiB,aAC/B,uBAAC,qCAAiB,IAAC,KAAK,EAAC,4CAAS,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,OAAO,CAAC,EAAE,2BAAc,CAAC,GAAI,EACxF,uBAAC,2BAAY,IAAC,KAAK,EAAC,mGAAmB,KAAK,IAAA,6BAAa,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE,6BAAgB,CAAC,GAAI,IAC1F,IACoB,CAC7B,CAAC;AAbW,QAAA,kCAAkC,sCAa7C"}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FormFieldRegisterer } from '../../hooks/useForm';
3
- import { type AcquiringFormState } from './ApplicationFormAcquiring';
4
- export declare const renderSlideCheckboxes: (field: FormFieldRegisterer<AcquiringFormState>) => JSX.Element;
@@ -1,7 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderSlideCheckboxes = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const SlideCheckbox_1 = require("../../ui-kit/SlideCheckbox/SlideCheckbox");
5
- const renderSlideCheckboxes = (field) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(SlideCheckbox_1.SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C \u043E\u043D\u043B\u0430\u0439\u043D-\u043A\u0430\u0441\u0441\u0443", ...field('onlineCheckout') }), (0, jsx_runtime_1.jsx)(SlideCheckbox_1.SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })] }));
6
- exports.renderSlideCheckboxes = renderSlideCheckboxes;
7
- //# sourceMappingURL=renderSlideCheckboxes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderSlideCheckboxes.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderSlideCheckboxes.tsx"],"names":[],"mappings":";;;AACA,4EAAyE;AAGlE,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE,CAAC,CACvF,4CACE,uBAAC,6BAAa,IAAC,IAAI,EAAC,mIAA0B,KAAK,KAAK,CAAC,gBAAgB,CAAC,GAAI,EAC9E,uBAAC,6BAAa,IAAC,IAAI,EAAC,oHAA0B,KAAK,KAAK,CAAC,aAAa,CAAC,GAAI,IACvE,CACP,CAAC;AALW,QAAA,qBAAqB,yBAKhC"}
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FieldProps } from '../../hooks/useForm';
3
- interface TextFieldProps {
4
- textField: FieldProps<string>;
5
- text?: string;
6
- placeholder?: string;
7
- value?: string;
8
- error?: string;
9
- }
10
- export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
11
- export {};
@@ -1,10 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.renderTextarea = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const Text_1 = require("../../ui-kit/Text/Text");
5
- const style_1 = require("../../utils/style");
6
- const renderErrorText_1 = require("./renderErrorText");
7
- const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
8
- const renderTextarea = ({ textField, text, placeholder = '', error }) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("label", { className: "space-y-xs", htmlFor: "textarea", children: [text ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: text }) })) : null, (0, jsx_runtime_1.jsx)("textarea", { id: "textarea", placeholder: placeholder, className: (0, style_1.style)('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }), (0, renderErrorText_1.renderErrorText)(error)] }));
9
- exports.renderTextarea = renderTextarea;
10
- //# sourceMappingURL=renderTextarea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderTextarea.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderTextarea.tsx"],"names":[],"mappings":";;;AACA,iDAA8C;AAC9C,6CAA0C;AAC1C,uDAAoD;AAUpD,MAAM,oBAAoB,GACxB,uFAAuF,CAAC;AACnF,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,EAAkB,EAAE,EAAE,CAAC,CAC9F,4CACE,mCAAO,SAAS,EAAC,YAAY,EAAC,OAAO,EAAC,UAAU,aAC7C,IAAI,CAAC,CAAC,CAAC,CACN,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,GACA,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,qCACE,EAAE,EAAC,UAAU,EACb,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,IAAA,aAAK,EACd,+EAA+E,EAC/E,oBAAoB,CACrB,EACD,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,OAAO,EACL,CAAC,CAAC,CAAkC,EAAE,EAAE,CACtC,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,CAAQ,GAE3E,IACI,EACP,IAAA,iCAAe,EAAC,KAAK,CAAC,IACnB,CACP,CAAC;AA1BW,QAAA,cAAc,kBA0BzB"}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FormFieldRegisterer } from '../../hooks/useForm';
3
- import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
4
- export declare const renderBusinessCardDataOrganization: (field: FormFieldRegisterer<BusinessCardFormState>) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { withValidator } from '../../validation/withValidator.js';
3
- import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout.js';
4
- import { InputControl } from './InputControl.js';
5
- import { PhoneInputControl } from './PhoneInputControl.js';
6
- import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators.js';
7
- export const renderBusinessCardDataOrganization = (field) => (_jsxs(ApplicationFieldsetLayout, { children: [_jsxs("div", { className: formChildrenStyle, children: [_jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), _jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), _jsxs("div", { className: formChildrenStyle, children: [_jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), _jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
8
- //# sourceMappingURL=renderBusinessCardDataOrganization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderBusinessCardDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7F,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,KAAiD,EACjD,EAAE,CAAC,CACH,MAAC,yBAAyB,eACxB,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,YAAY,IAAC,KAAK,EAAC,uFAAiB,KAAK,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,GAAI,EACzF,KAAC,YAAY,IAAC,KAAK,EAAC,oBAAK,KAAK,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,GAAI,IACvE,EACN,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,iBAAiB,IAAC,KAAK,EAAC,4CAAS,KAAK,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,GAAI,EACxF,KAAC,YAAY,IAAC,KAAK,EAAC,mGAAmB,KAAK,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,GAAI,IAC1F,IACoB,CAC7B,CAAC"}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FormFieldRegisterer } from '../../hooks/useForm';
3
- import { type AcquiringFormState } from './ApplicationFormAcquiring';
4
- export declare const renderSlideCheckboxes: (field: FormFieldRegisterer<AcquiringFormState>) => JSX.Element;
@@ -1,4 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { SlideCheckbox } from '../../ui-kit/SlideCheckbox/SlideCheckbox.js';
3
- export const renderSlideCheckboxes = (field) => (_jsxs("div", { children: [_jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C \u043E\u043D\u043B\u0430\u0439\u043D-\u043A\u0430\u0441\u0441\u0443", ...field('onlineCheckout') }), _jsx(SlideCheckbox, { text: "\u0425\u043E\u0447\u0443 \u043A\u0443\u043F\u0438\u0442\u044C POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })] }));
4
- //# sourceMappingURL=renderSlideCheckboxes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderSlideCheckboxes.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderSlideCheckboxes.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGzE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE,CAAC,CACvF,0BACE,KAAC,aAAa,IAAC,IAAI,EAAC,mIAA0B,KAAK,KAAK,CAAC,gBAAgB,CAAC,GAAI,EAC9E,KAAC,aAAa,IAAC,IAAI,EAAC,oHAA0B,KAAK,KAAK,CAAC,aAAa,CAAC,GAAI,IACvE,CACP,CAAC"}
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { type FieldProps } from '../../hooks/useForm';
3
- interface TextFieldProps {
4
- textField: FieldProps<string>;
5
- text?: string;
6
- placeholder?: string;
7
- value?: string;
8
- error?: string;
9
- }
10
- export declare const renderTextarea: ({ textField, text, placeholder, error }: TextFieldProps) => JSX.Element;
11
- export {};
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { Text } from '../../ui-kit/Text/Text.js';
3
- import { style } from '../../utils/style.js';
4
- import { renderErrorText } from './renderErrorText.js';
5
- const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
6
- export const renderTextarea = ({ textField, text, placeholder = '', error }) => (_jsxs("div", { children: [_jsxs("label", { className: "space-y-xs", htmlFor: "textarea", children: [text ? (_jsx("div", { children: _jsx(Text, { size: "text-m", font: "font-light", children: text }) })) : null, _jsx("textarea", { id: "textarea", placeholder: placeholder, className: style('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }), renderErrorText(error)] }));
7
- //# sourceMappingURL=renderTextarea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderTextarea.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderTextarea.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAUpD,MAAM,oBAAoB,GACxB,uFAAuF,CAAC;AAC1F,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,EAAkB,EAAE,EAAE,CAAC,CAC9F,0BACE,iBAAO,SAAS,EAAC,YAAY,EAAC,OAAO,EAAC,UAAU,aAC7C,IAAI,CAAC,CAAC,CAAC,CACN,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,GACA,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,mBACE,EAAE,EAAC,UAAU,EACb,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,CACd,+EAA+E,EAC/E,oBAAoB,CACrB,EACD,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,OAAO,EACL,CAAC,CAAC,CAAkC,EAAE,EAAE,CACtC,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,CAAQ,GAE3E,IACI,EACP,eAAe,CAAC,KAAK,CAAC,IACnB,CACP,CAAC"}
@@ -1,22 +0,0 @@
1
- import { type FormFieldRegisterer } from '../../hooks/useForm';
2
- import { withValidator } from '../../validation/withValidator';
3
- import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
4
- import { type BusinessCardFormState } from './ApplicationFormBusinessCard';
5
- import { InputControl } from './InputControl';
6
- import { PhoneInputControl } from './PhoneInputControl';
7
- import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators';
8
-
9
- export const renderBusinessCardDataOrganization = (
10
- field: FormFieldRegisterer<BusinessCardFormState>,
11
- ) => (
12
- <ApplicationFieldsetLayout>
13
- <div className={formChildrenStyle}>
14
- <InputControl label="Контактное лицо" {...withValidator(field('name'), nameValidator)} />
15
- <InputControl label="ИНН" {...withValidator(field('inn'), innValidator)} />
16
- </div>
17
- <div className={formChildrenStyle}>
18
- <PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
19
- <InputControl label="Электронная почта" {...withValidator(field('mail'), defaultValidator)} />
20
- </div>
21
- </ApplicationFieldsetLayout>
22
- );
@@ -1,10 +0,0 @@
1
- import { type FormFieldRegisterer } from '../../hooks/useForm';
2
- import { SlideCheckbox } from '../../ui-kit/SlideCheckbox/SlideCheckbox';
3
- import { type AcquiringFormState } from './ApplicationFormAcquiring';
4
-
5
- export const renderSlideCheckboxes = (field: FormFieldRegisterer<AcquiringFormState>) => (
6
- <div>
7
- <SlideCheckbox text="Хочу купить онлайн-кассу" {...field('onlineCheckout')} />
8
- <SlideCheckbox text="Хочу купить POS-терминал" {...field('posTerminal')} />
9
- </div>
10
- );