@redneckz/wildless-cms-uni-blocks 0.8.16 → 0.8.18

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 (573) hide show
  1. package/bin/migration-scripts/0.8.8.js +9 -6
  2. package/bundle/ProjectSettings.d.ts +2 -0
  3. package/bundle/api/CorporateLeadAPI.d.ts +1 -1
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +157 -81
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  8. package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  9. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  10. package/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
  11. package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  12. package/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
  13. package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  14. package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  15. package/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  16. package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  17. package/bundle/components/CarouselCard/constants.d.ts +3 -3
  18. package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  19. package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  20. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  21. package/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
  22. package/bundle/components/Header/HeaderContent.d.ts +0 -6
  23. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  24. package/bundle/components/Header/useChatBot.d.ts +1 -2
  25. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  26. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  27. package/bundle/components/Video/VideoContent.d.ts +19 -4
  28. package/bundle/hooks/useLink.d.ts +1 -3
  29. package/bundle/model/AlignType.d.ts +10 -0
  30. package/bundle/model/PreventableEvent.d.ts +3 -0
  31. package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  32. package/dist/ProjectSettings.d.ts +2 -0
  33. package/dist/ProjectSettings.js +3 -0
  34. package/dist/ProjectSettings.js.map +1 -1
  35. package/dist/api/CorporateLeadAPI.d.ts +1 -1
  36. package/dist/api/CorporateLeadAPI.js +1 -1
  37. package/dist/api/CorporateLeadAPI.js.map +1 -1
  38. package/dist/components/ApplicationForm/ApplicationForm.js +6 -3
  39. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  40. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
  41. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  42. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
  43. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  44. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  45. package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  46. package/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
  47. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  48. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
  49. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  50. package/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
  51. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  52. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  53. package/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
  54. package/dist/components/ApplicationForm/CreditParameters.js +9 -0
  55. package/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
  56. package/dist/components/ApplicationForm/acquiringTypes.js +0 -5
  57. package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
  58. package/dist/components/ApplicationForm/renderBankOffices.js +1 -1
  59. package/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  60. package/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
  61. package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  62. package/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
  63. package/dist/components/ApplicationForm/renderInputRange.js +8 -0
  64. package/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
  65. package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  66. package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  67. package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  68. package/dist/components/ApplicationForm/renderSelects.js +1 -1
  69. package/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  70. package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  71. package/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  72. package/dist/components/ApplicationForm/useFormHandlers.js +1 -6
  73. package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
  74. package/dist/components/Blocks.js +2 -0
  75. package/dist/components/Blocks.js.map +1 -1
  76. package/dist/components/Carousel/Carousel.js +1 -0
  77. package/dist/components/Carousel/Carousel.js.map +1 -1
  78. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  79. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  80. package/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  81. package/dist/components/CarouselCard/constants.d.ts +3 -3
  82. package/dist/components/CarouselCard/constants.js +2 -2
  83. package/dist/components/CarouselCard/constants.js.map +1 -1
  84. package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  85. package/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
  86. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  87. package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  88. package/dist/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  89. package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  90. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  91. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  92. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  93. package/dist/components/Footer/MediaButton.js +13 -10
  94. package/dist/components/Footer/MediaButton.js.map +1 -1
  95. package/dist/components/Header/Header.js +2 -2
  96. package/dist/components/Header/Header.js.map +1 -1
  97. package/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
  98. package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  99. package/dist/components/Header/HeaderContent.d.ts +0 -6
  100. package/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  101. package/dist/components/Header/HeaderSecondaryMenu.js +3 -2
  102. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  103. package/dist/components/Header/useChatBot.d.ts +1 -2
  104. package/dist/components/Header/useChatBot.js.map +1 -1
  105. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  106. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  107. package/dist/components/ProductBlock/renderBackwardButton.js +3 -3
  108. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  109. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  110. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  111. package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  112. package/dist/components/VerticalLayout/VerticalLayout.js +2 -1
  113. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  114. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  115. package/dist/components/Video/Video.js +6 -1
  116. package/dist/components/Video/Video.js.map +1 -1
  117. package/dist/components/Video/VideoContent.d.ts +19 -4
  118. package/dist/hooks/useLink.d.ts +1 -3
  119. package/dist/hooks/useLink.js +1 -1
  120. package/dist/hooks/useLink.js.map +1 -1
  121. package/dist/model/AlignType.d.ts +10 -0
  122. package/dist/model/PreventableEvent.d.ts +3 -0
  123. package/{mobile/dist/model/CarouselCardVersion.js → dist/model/PreventableEvent.js} +1 -1
  124. package/dist/model/PreventableEvent.js.map +1 -0
  125. package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  126. package/dist/services/sitemap/isTopItemActive.js +1 -3
  127. package/dist/services/sitemap/isTopItemActive.js.map +1 -1
  128. package/dist/wlc.json +3 -1
  129. package/lib/ProjectSettings.d.ts +2 -0
  130. package/lib/ProjectSettings.js +3 -0
  131. package/lib/ProjectSettings.js.map +1 -1
  132. package/lib/api/CorporateLeadAPI.d.ts +1 -1
  133. package/lib/api/CorporateLeadAPI.js +1 -1
  134. package/lib/api/CorporateLeadAPI.js.map +1 -1
  135. package/lib/common.css +1 -1
  136. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +0 -2
  137. package/lib/components/ApplicationForm/ApplicationForm.js +6 -3
  138. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  139. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
  140. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  141. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
  142. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  143. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  144. package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  145. package/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
  146. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  147. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
  148. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  149. package/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
  150. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  151. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  152. package/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
  153. package/lib/components/ApplicationForm/CreditParameters.js +7 -0
  154. package/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
  155. package/lib/components/ApplicationForm/acquiringTypes.js +0 -5
  156. package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
  157. package/lib/components/ApplicationForm/renderBankOffices.js +1 -1
  158. package/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  159. package/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
  160. package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  161. package/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
  162. package/lib/components/ApplicationForm/renderInputRange.js +5 -0
  163. package/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
  164. package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  165. package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  166. package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  167. package/lib/components/ApplicationForm/renderSelects.js +1 -1
  168. package/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  169. package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  170. package/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  171. package/lib/components/ApplicationForm/useFormHandlers.js +1 -6
  172. package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
  173. package/lib/components/Blocks.js +2 -0
  174. package/lib/components/Blocks.js.map +1 -1
  175. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  176. package/lib/components/Carousel/Carousel.js +1 -0
  177. package/lib/components/Carousel/Carousel.js.map +1 -1
  178. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  179. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  180. package/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  181. package/lib/components/CarouselCard/constants.d.ts +3 -3
  182. package/lib/components/CarouselCard/constants.js +2 -2
  183. package/lib/components/CarouselCard/constants.js.map +1 -1
  184. package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  185. package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +7 -0
  186. package/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
  187. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  188. package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  189. package/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  190. package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  191. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  192. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  193. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  194. package/lib/components/Footer/MediaButton.js +13 -10
  195. package/lib/components/Footer/MediaButton.js.map +1 -1
  196. package/lib/components/Header/Header.js +2 -2
  197. package/lib/components/Header/Header.js.map +1 -1
  198. package/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
  199. package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  200. package/lib/components/Header/HeaderContent.d.ts +0 -6
  201. package/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  202. package/lib/components/Header/HeaderSecondaryMenu.js +3 -2
  203. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  204. package/lib/components/Header/useChatBot.d.ts +1 -2
  205. package/lib/components/Header/useChatBot.js.map +1 -1
  206. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  207. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  208. package/lib/components/ProductBlock/renderBackwardButton.js +3 -3
  209. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  210. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  211. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  212. package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  213. package/lib/components/VerticalLayout/VerticalLayout.js +2 -1
  214. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  215. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  216. package/lib/components/Video/Video.js +6 -1
  217. package/lib/components/Video/Video.js.map +1 -1
  218. package/lib/components/Video/VideoContent.d.ts +19 -4
  219. package/lib/hooks/useLink.d.ts +1 -3
  220. package/lib/hooks/useLink.js +1 -1
  221. package/lib/hooks/useLink.js.map +1 -1
  222. package/lib/model/AlignType.d.ts +10 -0
  223. package/lib/model/PreventableEvent.d.ts +3 -0
  224. package/lib/model/PreventableEvent.js +2 -0
  225. package/lib/model/PreventableEvent.js.map +1 -0
  226. package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  227. package/lib/services/sitemap/isTopItemActive.js +1 -3
  228. package/lib/services/sitemap/isTopItemActive.js.map +1 -1
  229. package/lib/wlc.json +3 -1
  230. package/mobile/bundle/ProjectSettings.d.ts +2 -0
  231. package/mobile/bundle/api/CorporateLeadAPI.d.ts +1 -1
  232. package/mobile/bundle/bundle.umd.js +18 -14
  233. package/mobile/bundle/bundle.umd.min.js +1 -1
  234. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  235. package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  236. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  237. package/mobile/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
  238. package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  239. package/mobile/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
  240. package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  241. package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  242. package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  243. package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  244. package/mobile/bundle/components/CarouselCard/constants.d.ts +3 -3
  245. package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  246. package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  247. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  248. package/mobile/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
  249. package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -6
  250. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  251. package/mobile/bundle/components/Header/useChatBot.d.ts +1 -2
  252. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  253. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  254. package/mobile/bundle/components/Video/VideoContent.d.ts +19 -4
  255. package/mobile/bundle/hooks/useLink.d.ts +1 -3
  256. package/mobile/bundle/model/AlignType.d.ts +10 -0
  257. package/mobile/bundle/model/PreventableEvent.d.ts +3 -0
  258. package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  259. package/mobile/dist/ProjectSettings.d.ts +2 -0
  260. package/mobile/dist/ProjectSettings.js +3 -0
  261. package/mobile/dist/ProjectSettings.js.map +1 -1
  262. package/mobile/dist/api/CorporateLeadAPI.d.ts +1 -1
  263. package/mobile/dist/api/CorporateLeadAPI.js +1 -1
  264. package/mobile/dist/api/CorporateLeadAPI.js.map +1 -1
  265. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +6 -3
  266. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  267. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
  268. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  269. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
  270. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  271. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  272. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  273. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
  274. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  275. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
  276. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  277. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
  278. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  279. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  280. package/mobile/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
  281. package/mobile/dist/components/ApplicationForm/CreditParameters.js +9 -0
  282. package/mobile/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
  283. package/mobile/dist/components/ApplicationForm/acquiringTypes.js +0 -5
  284. package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
  285. package/mobile/dist/components/ApplicationForm/renderBankOffices.js +1 -1
  286. package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  287. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
  288. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  289. package/mobile/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
  290. package/mobile/dist/components/ApplicationForm/renderInputRange.js +8 -0
  291. package/mobile/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
  292. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  293. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  294. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  295. package/mobile/dist/components/ApplicationForm/renderSelects.js +1 -1
  296. package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  297. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  298. package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  299. package/mobile/dist/components/ApplicationForm/useFormHandlers.js +1 -6
  300. package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
  301. package/mobile/dist/components/Carousel/Carousel.js +1 -0
  302. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  303. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  304. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  305. package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  306. package/mobile/dist/components/CarouselCard/constants.d.ts +3 -3
  307. package/mobile/dist/components/CarouselCard/constants.js +2 -2
  308. package/mobile/dist/components/CarouselCard/constants.js.map +1 -1
  309. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  310. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
  311. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  312. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  313. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  314. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  315. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  316. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  317. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  318. package/mobile/dist/components/Footer/MediaButton.js +13 -10
  319. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  320. package/mobile/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
  321. package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  322. package/mobile/dist/components/Header/HeaderContent.d.ts +0 -6
  323. package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  324. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +3 -2
  325. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  326. package/mobile/dist/components/Header/useChatBot.d.ts +1 -2
  327. package/mobile/dist/components/Header/useChatBot.js.map +1 -1
  328. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -3
  329. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  330. package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
  331. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  332. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  333. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -1
  334. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  335. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  336. package/mobile/dist/components/Video/Video.js +6 -1
  337. package/mobile/dist/components/Video/Video.js.map +1 -1
  338. package/mobile/dist/components/Video/VideoContent.d.ts +19 -4
  339. package/mobile/dist/hooks/useLink.d.ts +1 -3
  340. package/mobile/dist/hooks/useLink.js +1 -1
  341. package/mobile/dist/hooks/useLink.js.map +1 -1
  342. package/mobile/dist/model/AlignType.d.ts +10 -0
  343. package/mobile/dist/model/PreventableEvent.d.ts +3 -0
  344. package/{dist/model/CarouselCardVersion.js → mobile/dist/model/PreventableEvent.js} +1 -1
  345. package/mobile/dist/model/PreventableEvent.js.map +1 -0
  346. package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  347. package/mobile/dist/services/sitemap/isTopItemActive.js +1 -3
  348. package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
  349. package/mobile/dist/wlc.json +3 -1
  350. package/mobile/lib/ProjectSettings.d.ts +2 -0
  351. package/mobile/lib/ProjectSettings.js +3 -0
  352. package/mobile/lib/ProjectSettings.js.map +1 -1
  353. package/mobile/lib/api/CorporateLeadAPI.d.ts +1 -1
  354. package/mobile/lib/api/CorporateLeadAPI.js +1 -1
  355. package/mobile/lib/api/CorporateLeadAPI.js.map +1 -1
  356. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -3
  357. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  358. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
  359. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  360. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
  361. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  362. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  363. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  364. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
  365. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  366. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
  367. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  368. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
  369. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  370. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  371. package/mobile/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
  372. package/mobile/lib/components/ApplicationForm/CreditParameters.js +7 -0
  373. package/mobile/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
  374. package/mobile/lib/components/ApplicationForm/acquiringTypes.js +0 -5
  375. package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
  376. package/mobile/lib/components/ApplicationForm/renderBankOffices.js +1 -1
  377. package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  378. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
  379. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  380. package/mobile/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
  381. package/mobile/lib/components/ApplicationForm/renderInputRange.js +5 -0
  382. package/mobile/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
  383. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  384. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  385. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  386. package/mobile/lib/components/ApplicationForm/renderSelects.js +1 -1
  387. package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  388. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  389. package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  390. package/mobile/lib/components/ApplicationForm/useFormHandlers.js +1 -6
  391. package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
  392. package/mobile/lib/components/Carousel/Carousel.js +1 -0
  393. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  394. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  395. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  396. package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  397. package/mobile/lib/components/CarouselCard/constants.d.ts +3 -3
  398. package/mobile/lib/components/CarouselCard/constants.js +2 -2
  399. package/mobile/lib/components/CarouselCard/constants.js.map +1 -1
  400. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  401. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
  402. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  403. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  404. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  405. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  406. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  407. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  408. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  409. package/mobile/lib/components/Footer/MediaButton.js +13 -10
  410. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  411. package/mobile/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
  412. package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  413. package/mobile/lib/components/Header/HeaderContent.d.ts +0 -6
  414. package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  415. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +3 -2
  416. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  417. package/mobile/lib/components/Header/useChatBot.d.ts +1 -2
  418. package/mobile/lib/components/Header/useChatBot.js.map +1 -1
  419. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -3
  420. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  421. package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
  422. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  423. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  424. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -1
  425. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  426. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  427. package/mobile/lib/components/Video/Video.js +6 -1
  428. package/mobile/lib/components/Video/Video.js.map +1 -1
  429. package/mobile/lib/components/Video/VideoContent.d.ts +19 -4
  430. package/mobile/lib/hooks/useLink.d.ts +1 -3
  431. package/mobile/lib/hooks/useLink.js +1 -1
  432. package/mobile/lib/hooks/useLink.js.map +1 -1
  433. package/mobile/lib/model/AlignType.d.ts +10 -0
  434. package/mobile/lib/model/PreventableEvent.d.ts +3 -0
  435. package/mobile/lib/model/PreventableEvent.js +2 -0
  436. package/mobile/lib/model/PreventableEvent.js.map +1 -0
  437. package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  438. package/mobile/lib/services/sitemap/isTopItemActive.js +1 -3
  439. package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
  440. package/mobile/lib/wlc.json +3 -1
  441. package/mobile/src/ProjectSettings.ts +4 -0
  442. package/mobile/src/api/CorporateLeadAPI.ts +2 -2
  443. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
  444. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
  445. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
  446. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
  447. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
  448. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
  449. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
  450. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
  451. package/mobile/src/components/ApplicationForm/CreditParameters.ts +7 -0
  452. package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
  453. package/mobile/src/components/ApplicationForm/acquiringTypes.ts +0 -5
  454. package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
  455. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
  456. package/mobile/src/components/ApplicationForm/renderInputRange.tsx +20 -0
  457. package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
  458. package/mobile/src/components/ApplicationForm/renderSelects.tsx +2 -2
  459. package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
  460. package/mobile/src/components/ApplicationForm/useFormHandlers.ts +1 -15
  461. package/mobile/src/components/Carousel/Carousel.tsx +1 -0
  462. package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -4
  463. package/mobile/src/components/CarouselCard/CarouselCardContent.ts +2 -2
  464. package/mobile/src/components/CarouselCard/constants.ts +5 -5
  465. package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
  466. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
  467. package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
  468. package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
  469. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
  470. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
  471. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
  472. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
  473. package/mobile/src/components/Footer/MediaButton.tsx +19 -14
  474. package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -4
  475. package/mobile/src/components/Header/HeaderContent.ts +0 -7
  476. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
  477. package/mobile/src/components/Header/useChatBot.ts +2 -3
  478. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
  479. package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -3
  480. package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
  481. package/mobile/src/components/TariffsTable/TariffsTable.example.json +3 -0
  482. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  483. package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
  484. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
  485. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
  486. package/mobile/src/components/Video/Video.example.json +5 -0
  487. package/mobile/src/components/Video/Video.tsx +23 -17
  488. package/mobile/src/components/Video/Video.ui.json +1 -1
  489. package/mobile/src/components/Video/VideoContent.ts +19 -4
  490. package/mobile/src/hooks/useLink.ts +2 -5
  491. package/mobile/src/model/AlignType.ts +11 -0
  492. package/mobile/src/model/PreventableEvent.ts +3 -0
  493. package/mobile/src/services/sitemap/isTopItemActive.ts +2 -7
  494. package/mobile/src/wlc.json +3 -1
  495. package/package.json +1 -1
  496. package/src/ProjectSettings.ts +4 -0
  497. package/src/api/CorporateLeadAPI.ts +2 -2
  498. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
  499. package/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
  500. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
  501. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
  502. package/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
  503. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
  504. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
  505. package/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
  506. package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
  507. package/src/components/ApplicationForm/CreditParameters.ts +7 -0
  508. package/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
  509. package/src/components/ApplicationForm/acquiringTypes.ts +0 -5
  510. package/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
  511. package/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
  512. package/src/components/ApplicationForm/renderInputRange.tsx +20 -0
  513. package/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
  514. package/src/components/ApplicationForm/renderSelects.tsx +2 -2
  515. package/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
  516. package/src/components/ApplicationForm/useFormHandlers.ts +1 -15
  517. package/src/components/Blocks.ts +2 -0
  518. package/src/components/Carousel/Carousel.fixture.tsx +19 -0
  519. package/src/components/Carousel/Carousel.tsx +1 -0
  520. package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
  521. package/src/components/CarouselCard/CarouselCard.tsx +4 -4
  522. package/src/components/CarouselCard/CarouselCardContent.ts +2 -2
  523. package/src/components/CarouselCard/constants.ts +5 -5
  524. package/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
  525. package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +21 -0
  526. package/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
  527. package/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
  528. package/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
  529. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
  530. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +8 -3
  531. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
  532. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
  533. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
  534. package/src/components/Footer/MediaButton.tsx +19 -14
  535. package/src/components/Header/Header.fixture.tsx +3 -3
  536. package/src/components/Header/Header.tsx +0 -2
  537. package/src/components/Header/HeaderChatBotButton.tsx +1 -4
  538. package/src/components/Header/HeaderContent.ts +0 -7
  539. package/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
  540. package/src/components/Header/useChatBot.ts +2 -3
  541. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  542. package/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
  543. package/src/components/ProductGallery/ProductGallery.example.json +2 -3
  544. package/src/components/ProductGallery/ProductGallery.tsx +1 -1
  545. package/src/components/TariffsTable/TariffsTable.example.json +3 -0
  546. package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  547. package/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
  548. package/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
  549. package/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
  550. package/src/components/Video/Video.example.json +5 -0
  551. package/src/components/Video/Video.fixture.tsx +1 -1
  552. package/src/components/Video/Video.tsx +23 -17
  553. package/src/components/Video/Video.ui.json +1 -1
  554. package/src/components/Video/VideoContent.ts +19 -4
  555. package/src/hooks/useLink.ts +2 -5
  556. package/src/model/AlignType.ts +11 -0
  557. package/src/model/PreventableEvent.ts +3 -0
  558. package/src/services/sitemap/isTopItemActive.ts +2 -7
  559. package/src/wlc.json +3 -1
  560. package/bundle/model/CarouselCardVersion.d.ts +0 -1
  561. package/dist/model/CarouselCardVersion.d.ts +0 -1
  562. package/dist/model/CarouselCardVersion.js.map +0 -1
  563. package/lib/model/CarouselCardVersion.d.ts +0 -1
  564. package/lib/model/CarouselCardVersion.js +0 -2
  565. package/lib/model/CarouselCardVersion.js.map +0 -1
  566. package/mobile/bundle/model/CarouselCardVersion.d.ts +0 -1
  567. package/mobile/dist/model/CarouselCardVersion.d.ts +0 -1
  568. package/mobile/dist/model/CarouselCardVersion.js.map +0 -1
  569. package/mobile/lib/model/CarouselCardVersion.d.ts +0 -1
  570. package/mobile/lib/model/CarouselCardVersion.js +0 -2
  571. package/mobile/lib/model/CarouselCardVersion.js.map +0 -1
  572. package/mobile/src/model/CarouselCardVersion.ts +0 -1
  573. package/src/model/CarouselCardVersion.ts +0 -1
@@ -15,7 +15,6 @@
15
15
  "height": 299
16
16
  }
17
17
  },
18
- "version": "primary",
19
18
  "description": "Описание",
20
19
  "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
21
20
  "benefits": [
@@ -50,7 +49,6 @@
50
49
  "height": 299
51
50
  }
52
51
  },
53
- "version": "primary",
54
52
  "description": "Описание",
55
53
  "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
56
54
  "benefits": [
@@ -71,6 +69,7 @@
71
69
  ]
72
70
  }
73
71
  }
74
- ]
72
+ ],
73
+ "version": "primary"
75
74
  }
76
75
  }
@@ -61,7 +61,7 @@ function renderProductBlock(block: ProductBlockInnerContent & UniBlockProps, i:
61
61
  >
62
62
  <div className="flex grow">
63
63
  <ProductBlockInner
64
- className="pl-12 z-10 text-secondary-text group-data-secondary:text-white"
64
+ className="pl-12 z-10 group-data-secondary:text-white"
65
65
  textBlockClassName="mb-[154px]"
66
66
  headlineVersion="XXL"
67
67
  {...block}
@@ -35,6 +35,7 @@
35
35
  {
36
36
  "tableCellType": "List",
37
37
  "isDotted": true,
38
+ "listItemSize": "M",
38
39
  "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
39
40
  },
40
41
  {
@@ -45,6 +46,7 @@
45
46
  {
46
47
  "tableCellType": "List",
47
48
  "isDotted": false,
49
+ "listItemSize": "M",
48
50
  "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
49
51
  }
50
52
  ],
@@ -56,6 +58,7 @@
56
58
  {
57
59
  "tableCellType": "List",
58
60
  "isDotted": true,
61
+ "listItemSize": "M",
59
62
  "items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
60
63
  }
61
64
  ],
@@ -80,6 +80,7 @@ export type LabelDescriptionCellDef = LabelDescriptionCell & {
80
80
 
81
81
  /**
82
82
  * @title Список
83
+ * @default { "listItemSize": "M", "isDotted": true }
83
84
  */
84
85
  export type ListBlockDef = ListProps & {
85
86
  /** @default List */
@@ -3,7 +3,7 @@
3
3
  "version": "primary",
4
4
  "isPadding": false,
5
5
  "isInnerPadding": true,
6
- "align": "left",
6
+ "align": "stretch",
7
7
  "gap": ""
8
8
  },
9
9
  "style": ["col-span-12"],
@@ -1,6 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { renderChildren } from '../../BlockRenderer/renderChildren';
3
- import type { AlignType } from '../../model/AlignType';
3
+ import type { AlignTypeWithStretch } from '../../model/AlignType';
4
4
  import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
5
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
6
  import { style } from '../../utils/style';
@@ -9,7 +9,8 @@ import type { VerticalLayoutContent } from './VerticalLayoutContent';
9
9
 
10
10
  export interface VerticalLayoutProps extends VerticalLayoutContent, UniBlockProps {}
11
11
 
12
- const alignStyle: Record<AlignType, string> = {
12
+ const alignStyle: Record<AlignTypeWithStretch, string> = {
13
+ stretch: 'items-stretch',
13
14
  left: 'items-start',
14
15
  center: 'items-center',
15
16
  right: 'items-end',
@@ -19,7 +20,7 @@ export const VerticalLayout: JSXBlock<VerticalLayoutProps> = JSX<VerticalLayoutP
19
20
  ({
20
21
  className = '',
21
22
  gap = '',
22
- align,
23
+ align = 'stretch',
23
24
  isPadding = false,
24
25
  isInnerPadding = true,
25
26
  version = 'transparent',
@@ -1,4 +1,4 @@
1
- import type { AlignType } from '../../model/AlignType';
1
+ import type { AlignTypeWithStretch } from '../../model/AlignType';
2
2
  import type { BlockVersion } from '../../model/BlockVersion';
3
3
  import type { ColorPalette } from '../../model/ContentPageDef';
4
4
  import type { GapVersion } from '../HorizontalLayout/HorizontalLayoutContent';
@@ -9,7 +9,7 @@ import type { GapVersion } from '../HorizontalLayout/HorizontalLayoutContent';
9
9
  export interface VerticalLayoutContent {
10
10
  colorPalette?: ColorPalette;
11
11
  version?: BlockVersion;
12
- align?: AlignType;
12
+ align?: AlignTypeWithStretch;
13
13
  gap?: GapVersion;
14
14
  /** @title Внутренний отступ компоновщика */
15
15
  isPadding?: boolean;
@@ -0,0 +1,5 @@
1
+ {
2
+ "content": {
3
+ "title": "Заголовок блока"
4
+ }
5
+ }
@@ -1,26 +1,32 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import { useRouter } from '../../hooks/useRouter';
3
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
+ import { adjustHref } from '../../utils/adjustHref';
4
5
  import { style } from '../../utils/style';
5
6
  import { Headline } from '../Headline/Headline';
6
7
  import { getPaddings } from './getPaddings';
8
+ import type { UniBlockProps } from '../../model/JSXBlock';
7
9
  import type { VideoContent } from './VideoContent';
8
10
 
9
11
  interface VideoProps extends VideoContent, UniBlockProps {}
10
12
 
11
- export const Video = JSX<VideoProps>(({ className, title, src, previewImg, ...rest }) => (
12
- <BlockWrapper className={style(getPaddings(className), className)} {...rest}>
13
- <Headline title={title} headlineVersion="M" />
14
- {src ? (
15
- <video
16
- className="m-auto w-full object-fill"
17
- preload="metadata"
18
- poster={previewImg?.src}
19
- style={{ maxHeight: 524 }}
20
- controls
21
- >
22
- <source src={src} />
23
- </video>
24
- ) : null}
25
- </BlockWrapper>
26
- ));
13
+ export const Video = JSX<VideoProps>(({ className, title, url, previewImg, ...rest }) => {
14
+ const router = useRouter();
15
+
16
+ return (
17
+ <BlockWrapper className={style(getPaddings(className), className)} {...rest}>
18
+ <Headline title={title} headlineVersion="M" />
19
+ {url ? (
20
+ <video
21
+ className="m-auto w-full object-fill"
22
+ preload="metadata"
23
+ poster={adjustHref(router)(previewImg?.src)}
24
+ style={{ maxHeight: 524 }}
25
+ controls
26
+ >
27
+ <source src={adjustHref(router)(url)} />
28
+ </video>
29
+ ) : null}
30
+ </BlockWrapper>
31
+ );
32
+ });
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "style": {
8
8
  "ui:options": {
9
- "minCols": 6
9
+ "minCols": 3
10
10
  }
11
11
  }
12
12
  }
@@ -1,10 +1,25 @@
1
1
  import type { TitleProps } from '../../model/HeadlineType';
2
2
  import type { Picture } from '../../model/Picture';
3
3
 
4
- /** @title Блок Видео */
4
+ /**
5
+ * @title Блок Видео
6
+ * @default {
7
+ * "title": "Заголовок блока"
8
+ * }
9
+ */
5
10
  export interface VideoContent extends TitleProps {
6
- /** @title URL */
7
- src?: string;
8
- /** @title Заставка */
11
+ /**
12
+ * @title Ссылка на видео
13
+ */
14
+ url?: string;
15
+ /**
16
+ * @title Заставка в блоке
17
+ * @default {
18
+ * "format": "webp",
19
+ * "size": {
20
+ * "width": 1004
21
+ * },
22
+ * }
23
+ */
9
24
  previewImg?: Picture;
10
25
  }
@@ -1,18 +1,15 @@
1
1
  import type { LinkProps } from '../model/LinkProps';
2
+ import type { PreventableEvent } from '../model/PreventableEvent';
2
3
  import { adjustHref } from '../utils/adjustHref';
3
4
  import { isLocalURL } from '../utils/url';
4
5
  import { handlerDecorator } from './handlerDecorator';
5
6
  import { useRouter } from './useRouter';
6
7
 
7
- interface PreventableEvent {
8
- preventDefault: () => void;
9
- }
10
-
11
8
  interface Clickable {
12
9
  onClick(ev?: PreventableEvent): void;
13
10
  }
14
11
 
15
- export function useLink(isRemote?: boolean) {
12
+ export function useLink(isRemote = false) {
16
13
  const router = useRouter();
17
14
 
18
15
  return <L extends Partial<LinkProps & Clickable>>(props: L): L & Clickable => ({
@@ -7,3 +7,14 @@
7
7
  * ]
8
8
  */
9
9
  export type AlignType = 'left' | 'center' | 'right';
10
+
11
+ /**
12
+ * @title Выравнивание
13
+ * @enumNames [
14
+ * "Во всю ширину",
15
+ * "По левому краю",
16
+ * "По центру",
17
+ * "По правому краю"
18
+ * ]
19
+ */
20
+ export type AlignTypeWithStretch = 'stretch' | 'left' | 'center' | 'right';
@@ -0,0 +1,3 @@
1
+ export interface PreventableEvent {
2
+ preventDefault: () => void;
3
+ }
@@ -1,11 +1,6 @@
1
1
  import type { Router } from '../../hooks/useRouter';
2
2
  import { projectSettings } from '../../ProjectSettings';
3
3
  import { isHrefActive } from './isHrefActive';
4
- import { TopMenuItem } from './SitemapProps';
5
4
 
6
- export const isTopItemActive =
7
- (router: Router) =>
8
- (topItem: TopMenuItem): boolean =>
9
- projectSettings.BASE_PATH
10
- ? isHrefActive({ pathname: projectSettings.BASE_PATH })(topItem)
11
- : topItem.items?.some(isHrefActive(router)) || isHrefActive(router)(topItem);
5
+ export const isTopItemActive = (router: Router) =>
6
+ isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
@@ -2,5 +2,7 @@
2
2
  "PROD_BRANCH": "master",
3
3
  "FORCED_DRAFT_FLOW": false,
4
4
  "YANDEX_MAP_API_KEY": "f4b40c1e-1891-45f2-b307-90c481af210b",
5
- "SITEMAP": "sayt-rshb"
5
+ "SITEMAP": "sayt-rshb",
6
+ "CHAT_BOT": "personal",
7
+ "BASE_PATH": "/natural/"
6
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.8.16",
3
+ "version": "0.8.18",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -6,6 +6,7 @@ export interface ProjectSettings {
6
6
  ASSIST_PROJECT_ID?: string;
7
7
  SITEMAP?: string;
8
8
  FOOTER?: string;
9
+ CHAT_BOT?: string; // "personal" or "business"
9
10
  CDN?: string; // Should ends with "/"
10
11
  BASE_PATH?: string; // Should ends with "/"
11
12
  YANDEX_MAP_API_KEY?: string;
@@ -42,6 +43,9 @@ export const projectSettings = new (class implements ProjectSettings {
42
43
  get FOOTER() {
43
44
  return this._.FOOTER;
44
45
  }
46
+ get CHAT_BOT() {
47
+ return this._.CHAT_BOT;
48
+ }
45
49
  get CDN() {
46
50
  return appendSlash(this._.CDN);
47
51
  }
@@ -13,7 +13,7 @@ export interface DaDataResult {
13
13
  }
14
14
 
15
15
  export function CorporateLeadAPI() {
16
- async function send(body: any) {
16
+ async function send(body: Record<string, string>) {
17
17
  try {
18
18
  const response = await fetch('/api/v1/sendCorporateLead', {
19
19
  method: 'POST',
@@ -22,7 +22,7 @@ export function CorporateLeadAPI() {
22
22
  body: JSON.stringify(body),
23
23
  });
24
24
 
25
- const data = (await response.json()) as any;
25
+ const data = await response.json();
26
26
 
27
27
  return data;
28
28
  } catch (e) {
@@ -2,7 +2,7 @@ import '../../setup-fixture';
2
2
  import { ApplicationForm } from './ApplicationForm';
3
3
  import type { ApplicationFormContent } from './ApplicationFormContent';
4
4
 
5
- export const ApplicationFormProps: ApplicationFormContent = {
5
+ const ApplicationFormProps: ApplicationFormContent = {
6
6
  title: 'Форма заявки',
7
7
  button: {
8
8
  text: 'Отправить заявку',
@@ -1,5 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { CorporateLeadAPI } from '../../api/CorporateLeadAPI';
3
4
  import type { UniBlockProps } from '../../model/JSXBlock';
4
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
6
  import { Heading } from '../../ui-kit/Heading/Heading';
@@ -8,7 +9,7 @@ import { ApplicationFormBusinessCard } from './ApplicationFormBusinessCard';
8
9
  import type { ApplicationFormContent } from './ApplicationFormContent';
9
10
  import { ApplicationFormCredit } from './ApplicationFormCredit';
10
11
  import { ApplicationFormDeposit } from './ApplicationFormDeposit';
11
- import { ApplicationFormsProps } from './ApplicationFormsProps';
12
+ import type { ApplicationFormsProps } from './ApplicationFormsProps';
12
13
  import { ApplicationFormWed } from './ApplicationFormWed';
13
14
  import { ResponseNotification } from './ResponseNotification';
14
15
 
@@ -22,13 +23,16 @@ const COMPONENTS_MAP = {
22
23
  wed: (props: ApplicationFormsProps) => <ApplicationFormWed {...props} />,
23
24
  };
24
25
 
26
+ const API = CorporateLeadAPI();
27
+
25
28
  export const ApplicationForm = JSX<ApplicationFormProps>((props) => {
26
29
  const { className = '', title, typeForm = 'credit', button, link, ...rest } = props;
27
30
 
28
- const [responceType, setResponceType] = useState<'OK' | 'Fail' | ''>('');
31
+ const [responceType, setResponseType] = useState<'OK' | 'Fail' | ''>('');
29
32
 
30
- const handleSubmit = useCallback(() => {
31
- setResponceType('OK');
33
+ const handleSubmit = useCallback(async (data: Record<string, string>) => {
34
+ const status = await API.send(data);
35
+ setResponseType(status ? 'OK' : 'Fail');
32
36
 
33
37
  return 'OK';
34
38
  }, []);
@@ -1,5 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import type { PreventableEvent } from '../../model/PreventableEvent';
3
4
  import { Heading } from '../../ui-kit/Heading/Heading';
4
5
  import { Input } from '../../ui-kit/Input/Input';
5
6
  import { useGetRegions } from '../SafeDepositRental/useGetRegions';
@@ -43,11 +44,8 @@ export const ApplicationFormAcquiring = JSX<ApplicationFormsProps>((props) => {
43
44
 
44
45
  const regions = useGetRegions();
45
46
 
46
- const { handleChange, onSubmit } = useFormHandlers<AcquiringFormState>({
47
- formState,
48
- handleSubmit,
47
+ const { handleChange } = useFormHandlers<AcquiringFormState>({
49
48
  setFormState,
50
- typeForm: 'acqr',
51
49
  });
52
50
 
53
51
  const selectedRegion = normalizeSelectedRegion(region, regions);
@@ -56,10 +54,27 @@ export const ApplicationFormAcquiring = JSX<ApplicationFormsProps>((props) => {
56
54
  setFormState((oldState) => ({
57
55
  ...oldState,
58
56
  acquiringType:
59
- ACQUIRING_TYPES?.length && ACQUIRING_TYPES[0]?.code ? ACQUIRING_TYPES[0].code : '',
57
+ ACQUIRING_TYPES?.length && ACQUIRING_TYPES[0]?.name ? ACQUIRING_TYPES[0].name : '',
60
58
  }));
61
59
  }, []);
62
60
 
61
+ const onSubmit = async (e: PreventableEvent) => {
62
+ e.preventDefault();
63
+
64
+ const PartnerComments = `Вид эквайринга=${acquiringType}/Онлайн касса=${onlineСheckout}/POS-терминал=${posTerminal}`;
65
+
66
+ handleSubmit &&
67
+ (await handleSubmit({
68
+ typeForm: 'acqr',
69
+ region,
70
+ PartnerComments,
71
+ fullName,
72
+ inn,
73
+ name,
74
+ phone,
75
+ }));
76
+ };
77
+
63
78
  return (
64
79
  <form onSubmit={onSubmit} className="container">
65
80
  <Heading headingType="h6" title="Вид эквайринга и регион" className="text-center mb-4" />
@@ -1,6 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import type { Region } from '../../hooks/useRegions';
4
+ import type { PreventableEvent } from '../../model/PreventableEvent';
4
5
  import { Input } from '../../ui-kit/Input/Input';
5
6
  import { useGetRegions } from '../SafeDepositRental/useGetRegions';
6
7
  import type { ApplicationFormsProps } from './ApplicationFormsProps';
@@ -21,6 +22,7 @@ export interface BusinessCardFormState {
21
22
 
22
23
  export const ApplicationFormBusinessCard = JSX<ApplicationFormsProps>((props) => {
23
24
  const { button, link, handleSubmit } = props;
25
+
24
26
  const [formState, setFormState] = useState<BusinessCardFormState>({
25
27
  region: '',
26
28
  name: '',
@@ -29,18 +31,29 @@ export const ApplicationFormBusinessCard = JSX<ApplicationFormsProps>((props) =>
29
31
  mail: '',
30
32
  });
31
33
 
32
- const { name, phone, inn, mail } = formState;
34
+ const { region, name, phone, inn, mail } = formState;
33
35
 
34
36
  const regions = useGetRegions();
35
37
 
36
- const { handleChange, onSubmit } = useFormHandlers<BusinessCardFormState>({
37
- formState,
38
- handleSubmit,
38
+ const { handleChange } = useFormHandlers<BusinessCardFormState>({
39
39
  setFormState,
40
- typeForm: 'bcrd',
41
40
  });
42
41
 
43
- const selectedRegion = normalizeSelectedRegion(formState.region, regions);
42
+ const selectedRegion = normalizeSelectedRegion(region, regions);
43
+
44
+ const onSubmit = async (e: PreventableEvent) => {
45
+ e.preventDefault();
46
+
47
+ handleSubmit &&
48
+ (await handleSubmit({
49
+ typeForm: 'bcrd',
50
+ region,
51
+ name,
52
+ phone,
53
+ inn,
54
+ mail,
55
+ }));
56
+ };
44
57
 
45
58
  return (
46
59
  <form onSubmit={onSubmit} className="container">
@@ -122,7 +135,7 @@ const renderRegion = ({ regions, region, handleChange }: RenderRegionProps) => (
122
135
  <div className="w-full">
123
136
  <WrapperSelect
124
137
  data={regions}
125
- fieldValue="code"
138
+ fieldValue="name"
126
139
  fieldLabel="name"
127
140
  selected={region}
128
141
  setSelected={(value) => handleChange({ region: value })}
@@ -1,18 +1,30 @@
1
- import type { HeadlineCommonProps } from '../../model/HeadlineType';
1
+ import type { ButtonVersion } from '../../model/ButtonVersion';
2
+ import type { TitleProps } from '../../model/HeadlineType';
2
3
  import type { LinkProps } from '../../model/LinkProps';
3
- import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
4
+ import type { ButtonAdditionalProps } from '../../ui-kit/Button/ButtonProps';
5
+
6
+ /**
7
+ * @title Кнопка
8
+ */
9
+ export interface ButtonProps extends ButtonAdditionalProps {
10
+ /**
11
+ * @title Текст
12
+ * @default "Отправить заявку"
13
+ */
14
+ text?: string;
15
+ version?: ButtonVersion;
16
+ }
4
17
 
5
18
  /**
6
19
  * @title Форма заявки
7
20
  */
8
- export type ApplicationFormContent = HeadlineCommonProps & {
21
+ export type ApplicationFormContent = TitleProps & {
9
22
  /**
10
23
  * @title Вид заявки
11
24
  * @default credit
12
25
  * @enumNames ["Бизнес-карта", "ВЭД", "Депозит", "Кредит", "Эквайринг"]
13
26
  */
14
27
  typeForm?: 'business-card' | 'wed' | 'deposit' | 'credit' | 'acquiring';
15
- /** @title Кнопка */
16
28
  button?: ButtonProps;
17
29
  /** @title Условия передачи данных */
18
30
  link?: LinkProps;
@@ -1,9 +1,11 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useSafeBoxes } from '../../hooks/useSafeBoxes';
4
+ import type { PreventableEvent } from '../../model/PreventableEvent';
4
5
  import { Heading } from '../../ui-kit/Heading/Heading';
5
6
  import { useGetRegions } from '../SafeDepositRental/useGetRegions';
6
7
  import type { ApplicationFormsProps } from './ApplicationFormsProps';
8
+ import { MIN_CREDIT_AMOUNT, MIN_CREDIT_TERM } from './CreditParameters';
7
9
  import { Footnote } from './Footnote';
8
10
  import { normalizeSelectedRegion } from './normalizeSelectedRegion';
9
11
  import { renderBankOffices } from './renderBankOffices';
@@ -25,16 +27,9 @@ export interface CreditFormState {
25
27
  annualRevenue: string;
26
28
  }
27
29
 
28
- export const MIN_CREDIT_AMOUNT = 50000;
29
- export const MAX_CREDIT_AMOUNT = 3000000;
30
- export const ITEMS_CREDIT_AMOUNT = ['От 50 000 ₽', 'До 3 000 000 ₽'];
31
-
32
- export const MIN_CREDIT_TERM = 1;
33
- export const MAX_CREDIT_TERM = 60;
34
- export const ITEMS_CREDIT_TERM = ['От 1 года', 'До 5 лет'];
35
-
36
30
  export const ApplicationFormCredit = JSX<ApplicationFormsProps>((props) => {
37
31
  const { button, link, handleSubmit } = props;
32
+
38
33
  const [formState, setFormState] = useState<CreditFormState>({
39
34
  amount: MIN_CREDIT_AMOUNT,
40
35
  term: MIN_CREDIT_TERM,
@@ -53,11 +48,8 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>((props) => {
53
48
 
54
49
  const regions = useGetRegions();
55
50
 
56
- const { handleChange, onSubmit } = useFormHandlers<CreditFormState>({
57
- formState,
58
- handleSubmit,
51
+ const { handleChange } = useFormHandlers<CreditFormState>({
59
52
  setFormState,
60
- typeForm: 'cred',
61
53
  });
62
54
 
63
55
  const selectedRegion = normalizeSelectedRegion(formState.region, regions);
@@ -70,6 +62,25 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>((props) => {
70
62
  });
71
63
  }, [formState.region, handleChange]);
72
64
 
65
+ const onSubmit = async (e: PreventableEvent) => {
66
+ e.preventDefault();
67
+
68
+ const PartnerComments = `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`;
69
+
70
+ handleSubmit &&
71
+ (await handleSubmit({
72
+ typeForm: 'cred',
73
+ fullName,
74
+ inn,
75
+ name,
76
+ phone,
77
+ mail,
78
+ region,
79
+ department,
80
+ PartnerComments,
81
+ }));
82
+ };
83
+
73
84
  return (
74
85
  <form onSubmit={onSubmit} className="container">
75
86
  <Heading headingType="h6" title="Параметры кредита" className="text-center mb-4" />
@@ -1,5 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import type { PreventableEvent } from '../../model/PreventableEvent';
3
4
  import { Heading } from '../../ui-kit/Heading/Heading';
4
5
  import { Input } from '../../ui-kit/Input/Input';
5
6
  import type { ApplicationFormsProps } from './ApplicationFormsProps';
@@ -21,13 +22,23 @@ export const ApplicationFormDeposit = JSX<ApplicationFormsProps>((props) => {
21
22
  phone: '',
22
23
  });
23
24
 
24
- const { handleChange, onSubmit } = useFormHandlers<DepositFormState>({
25
- formState,
26
- handleSubmit,
25
+ const { name, phone } = formState;
26
+
27
+ const { handleChange } = useFormHandlers<DepositFormState>({
27
28
  setFormState,
28
- typeForm: 'dpst',
29
29
  });
30
30
 
31
+ const onSubmit = async (e: PreventableEvent) => {
32
+ e.preventDefault();
33
+
34
+ handleSubmit &&
35
+ (await handleSubmit({
36
+ typeForm: 'dpst',
37
+ name,
38
+ phone,
39
+ }));
40
+ };
41
+
31
42
  return (
32
43
  <form onSubmit={onSubmit} className="container">
33
44
  <Heading