@redneckz/wildless-cms-uni-blocks 0.14.26 → 0.14.27

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 (439) hide show
  1. package/bin/migration-scripts/0.14.26.js +3 -1
  2. package/bin/migration-scripts/0.14.27.js +38 -0
  3. package/bundle/api/{CorporateLeadAPI.d.ts → LeadServiceAPI.d.ts} +2 -2
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +258 -216
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  8. package/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  9. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  10. package/bundle/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  11. package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  12. package/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
  13. package/bundle/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  14. package/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  15. package/bundle/components/CarouselCard/titleSize.d.ts +1 -1
  16. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  17. package/bundle/icons/IconName.d.ts +4 -2
  18. package/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  19. package/cosmos-static/icons/DzenIcon.svg +1 -0
  20. package/{lib/api/CorporateLeadAPI.d.ts → dist/api/LeadServiceAPI.d.ts} +2 -2
  21. package/dist/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +7 -6
  22. package/dist/api/LeadServiceAPI.js.map +1 -0
  23. package/dist/components/ApplicationForm/ApplicationForm.js +4 -4
  24. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  25. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  26. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  27. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  28. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  29. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  30. package/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  31. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +52 -0
  32. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  33. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  34. package/dist/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  35. package/dist/components/ApplicationForm/DatePickerControl.js +8 -0
  36. package/dist/components/ApplicationForm/DatePickerControl.js.map +1 -0
  37. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  38. package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  39. package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  40. package/dist/components/ApplicationForm/Footnote.d.ts +1 -0
  41. package/dist/components/ApplicationForm/Footnote.js +1 -1
  42. package/dist/components/ApplicationForm/Footnote.js.map +1 -1
  43. package/dist/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  44. package/dist/components/{Tile/TileContent.js → ApplicationForm/IndividualsFormState.js} +1 -1
  45. package/dist/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  46. package/dist/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  47. package/dist/components/ApplicationForm/renderIndividualsFields.js +11 -0
  48. package/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  49. package/dist/components/Blocks.js +0 -2
  50. package/dist/components/Blocks.js.map +1 -1
  51. package/dist/components/Blocks.mobile.js +0 -2
  52. package/dist/components/Blocks.mobile.js.map +1 -1
  53. package/dist/components/Calculator/Calculator.mobile.js +4 -4
  54. package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
  55. package/dist/components/Carousel/renderCarouselCards.js +1 -1
  56. package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  57. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  58. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  59. package/dist/components/CarouselCard/titleSize.d.ts +1 -1
  60. package/dist/components/CarouselCard/titleSize.js +1 -1
  61. package/dist/components/CarouselCard/titleSize.js.map +1 -1
  62. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  63. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  64. package/dist/components/Footer/Footer.mobile.js +2 -2
  65. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  66. package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -1
  67. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  68. package/dist/components/Footer/SocialMedia.js +3 -3
  69. package/dist/components/Footer/SocialMedia.js.map +1 -1
  70. package/dist/components/Footer/iconsMap.js +4 -0
  71. package/dist/components/Footer/iconsMap.js.map +1 -1
  72. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  73. package/dist/components/ProductBlock/ProductBlock.js +1 -3
  74. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  75. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  76. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  77. package/dist/icons/IconName.d.ts +4 -2
  78. package/dist/icons/IconName.js +2 -0
  79. package/dist/icons/IconName.js.map +1 -1
  80. package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  81. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  82. package/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  83. package/dist/ui-kit/DatePicker/DatePicker.js +4 -4
  84. package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  85. package/dist/ui-kit/DatePicker/getYears.js +1 -1
  86. package/dist/ui-kit/Input/Input.js +1 -1
  87. package/dist/ui-kit/Input/Input.js.map +1 -1
  88. package/dist/ui-kit/NotFound/NotFound.js +1 -1
  89. package/dist/ui-kit/NotFound/NotFound.js.map +1 -1
  90. package/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
  91. package/dist/ui-kit/Select/Select.js +1 -1
  92. package/dist/ui-kit/Select/Select.js.map +1 -1
  93. package/{mobile/bundle/api/CorporateLeadAPI.d.ts → lib/api/LeadServiceAPI.d.ts} +2 -2
  94. package/lib/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +5 -4
  95. package/lib/api/LeadServiceAPI.js.map +1 -0
  96. package/lib/common.css +1 -1
  97. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  98. package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
  99. package/lib/components/ApplicationForm/ApplicationForm.js +4 -4
  100. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  101. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  102. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  103. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  104. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  105. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  106. package/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  107. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +50 -0
  108. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  109. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  110. package/lib/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  111. package/lib/components/ApplicationForm/DatePickerControl.js +6 -0
  112. package/lib/components/ApplicationForm/DatePickerControl.js.map +1 -0
  113. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  114. package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  115. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  116. package/lib/components/ApplicationForm/Footnote.d.ts +1 -0
  117. package/lib/components/ApplicationForm/Footnote.js +1 -1
  118. package/lib/components/ApplicationForm/Footnote.js.map +1 -1
  119. package/lib/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  120. package/lib/components/ApplicationForm/IndividualsFormState.js +2 -0
  121. package/lib/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  122. package/lib/components/ApplicationForm/renderIndividualsFields.d.ts +3 -0
  123. package/lib/components/ApplicationForm/renderIndividualsFields.js +8 -0
  124. package/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  125. package/lib/components/Blocks.js +0 -2
  126. package/lib/components/Blocks.js.map +1 -1
  127. package/lib/components/Blocks.mobile.js +0 -2
  128. package/lib/components/Blocks.mobile.js.map +1 -1
  129. package/lib/components/Calculator/Calculator.mobile.js +4 -4
  130. package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
  131. package/lib/components/Carousel/renderCarouselCards.js +1 -1
  132. package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  133. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  134. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  135. package/lib/components/CarouselCard/titleSize.d.ts +1 -1
  136. package/lib/components/CarouselCard/titleSize.js +1 -1
  137. package/lib/components/CarouselCard/titleSize.js.map +1 -1
  138. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  139. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  140. package/lib/components/Footer/Footer.mobile.js +2 -2
  141. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  142. package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -1
  143. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  144. package/lib/components/Footer/SocialMedia.js +3 -3
  145. package/lib/components/Footer/SocialMedia.js.map +1 -1
  146. package/lib/components/Footer/iconsMap.js +4 -0
  147. package/lib/components/Footer/iconsMap.js.map +1 -1
  148. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  149. package/lib/components/ProductBlock/ProductBlock.js +1 -3
  150. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  151. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  152. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  153. package/lib/icons/IconName.d.ts +4 -2
  154. package/lib/icons/IconName.js +2 -0
  155. package/lib/icons/IconName.js.map +1 -1
  156. package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  157. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  158. package/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  159. package/lib/ui-kit/DatePicker/DatePicker.js +4 -4
  160. package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  161. package/lib/ui-kit/DatePicker/getYears.js +1 -1
  162. package/lib/ui-kit/Input/Input.js +1 -1
  163. package/lib/ui-kit/Input/Input.js.map +1 -1
  164. package/lib/ui-kit/NotFound/NotFound.js +1 -1
  165. package/lib/ui-kit/NotFound/NotFound.js.map +1 -1
  166. package/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
  167. package/lib/ui-kit/Select/Select.js +1 -1
  168. package/lib/ui-kit/Select/Select.js.map +1 -1
  169. package/{dist/api/CorporateLeadAPI.d.ts → mobile/bundle/api/LeadServiceAPI.d.ts} +2 -2
  170. package/mobile/bundle/bundle.umd.js +263 -68
  171. package/mobile/bundle/bundle.umd.min.js +1 -1
  172. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  173. package/mobile/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  174. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  175. package/mobile/bundle/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  176. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  177. package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
  178. package/mobile/bundle/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  179. package/mobile/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  180. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  181. package/mobile/bundle/icons/IconName.d.ts +4 -2
  182. package/mobile/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  183. package/mobile/dist/api/LeadServiceAPI.d.ts +15 -0
  184. package/mobile/dist/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +7 -6
  185. package/mobile/dist/api/LeadServiceAPI.js.map +1 -0
  186. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -4
  187. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  188. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  189. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  190. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  191. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  192. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  193. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  194. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +52 -0
  195. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  196. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  197. package/mobile/dist/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  198. package/mobile/dist/components/ApplicationForm/DatePickerControl.js +8 -0
  199. package/mobile/dist/components/ApplicationForm/DatePickerControl.js.map +1 -0
  200. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  201. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  202. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  203. package/mobile/dist/components/ApplicationForm/Footnote.d.ts +1 -0
  204. package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
  205. package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
  206. package/mobile/dist/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  207. package/mobile/dist/components/{Tile/TileContent.js → ApplicationForm/IndividualsFormState.js} +1 -1
  208. package/mobile/dist/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  209. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  210. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js +11 -0
  211. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  212. package/mobile/dist/components/Blocks.js +0 -2
  213. package/mobile/dist/components/Blocks.js.map +1 -1
  214. package/mobile/dist/components/Calculator/Calculator.js +4 -4
  215. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  216. package/mobile/dist/components/Carousel/renderCarouselCards.js +1 -1
  217. package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  218. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  219. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  220. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  221. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  222. package/mobile/dist/components/Footer/Footer.js +2 -2
  223. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  224. package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -1
  225. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  226. package/mobile/dist/components/Footer/SocialMedia.js +3 -3
  227. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  228. package/mobile/dist/components/Footer/iconsMap.js +4 -0
  229. package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
  230. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  231. package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -3
  232. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  233. package/mobile/dist/icons/IconName.d.ts +4 -2
  234. package/mobile/dist/icons/IconName.js +2 -0
  235. package/mobile/dist/icons/IconName.js.map +1 -1
  236. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  237. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  238. package/mobile/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  239. package/mobile/dist/ui-kit/DatePicker/DatePicker.js +4 -4
  240. package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  241. package/mobile/dist/ui-kit/DatePicker/getYears.js +1 -1
  242. package/mobile/dist/ui-kit/Input/Input.js +1 -1
  243. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  244. package/mobile/dist/ui-kit/NotFound/NotFound.js +1 -1
  245. package/mobile/dist/ui-kit/NotFound/NotFound.js.map +1 -1
  246. package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
  247. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  248. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  249. package/mobile/lib/api/LeadServiceAPI.d.ts +15 -0
  250. package/mobile/lib/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +5 -4
  251. package/mobile/lib/api/LeadServiceAPI.js.map +1 -0
  252. package/mobile/lib/common.css +1 -1
  253. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -4
  254. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  255. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  256. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  257. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  258. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  259. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  260. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  261. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +50 -0
  262. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  263. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  264. package/mobile/lib/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  265. package/mobile/lib/components/ApplicationForm/DatePickerControl.js +6 -0
  266. package/mobile/lib/components/ApplicationForm/DatePickerControl.js.map +1 -0
  267. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  268. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  269. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  270. package/mobile/lib/components/ApplicationForm/Footnote.d.ts +1 -0
  271. package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
  272. package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
  273. package/mobile/lib/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  274. package/mobile/lib/components/ApplicationForm/IndividualsFormState.js +2 -0
  275. package/mobile/lib/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  276. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  277. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js +8 -0
  278. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  279. package/mobile/lib/components/Blocks.js +0 -2
  280. package/mobile/lib/components/Blocks.js.map +1 -1
  281. package/mobile/lib/components/Calculator/Calculator.js +4 -4
  282. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  283. package/mobile/lib/components/Carousel/renderCarouselCards.js +1 -1
  284. package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  285. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  286. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  287. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  288. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  289. package/mobile/lib/components/Footer/Footer.js +2 -2
  290. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  291. package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -1
  292. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  293. package/mobile/lib/components/Footer/SocialMedia.js +3 -3
  294. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  295. package/mobile/lib/components/Footer/iconsMap.js +4 -0
  296. package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
  297. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  298. package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -3
  299. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  300. package/mobile/lib/icons/IconName.d.ts +4 -2
  301. package/mobile/lib/icons/IconName.js +2 -0
  302. package/mobile/lib/icons/IconName.js.map +1 -1
  303. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  304. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  305. package/mobile/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  306. package/mobile/lib/ui-kit/DatePicker/DatePicker.js +4 -4
  307. package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  308. package/mobile/lib/ui-kit/DatePicker/getYears.js +1 -1
  309. package/mobile/lib/ui-kit/Input/Input.js +1 -1
  310. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  311. package/mobile/lib/ui-kit/NotFound/NotFound.js +1 -1
  312. package/mobile/lib/ui-kit/NotFound/NotFound.js.map +1 -1
  313. package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
  314. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  315. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  316. package/mobile/src/api/{CorporateLeadAPI.ts → LeadServiceAPI.ts} +5 -3
  317. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +14 -8
  318. package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +5 -2
  319. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +13 -1
  320. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -3
  321. package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
  322. package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +74 -0
  323. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
  324. package/mobile/src/components/ApplicationForm/DatePickerControl.tsx +33 -0
  325. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  326. package/mobile/src/components/ApplicationForm/Footnote.tsx +3 -2
  327. package/mobile/src/components/ApplicationForm/IndividualsFormState.ts +9 -0
  328. package/mobile/src/components/ApplicationForm/renderIndividualsFields.tsx +46 -0
  329. package/mobile/src/components/Blocks.ts +0 -2
  330. package/mobile/src/components/Calculator/Calculator.tsx +5 -7
  331. package/mobile/src/components/Carousel/renderCarouselCards.tsx +1 -1
  332. package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
  333. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
  334. package/mobile/src/components/Footer/Footer.tsx +7 -5
  335. package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -1
  336. package/mobile/src/components/Footer/SocialMedia.tsx +8 -8
  337. package/mobile/src/components/Footer/iconsMap.ts +4 -0
  338. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.ui.json +16 -1
  339. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -0
  340. package/mobile/src/components/ProductBlock/ProductBlock.tsx +1 -6
  341. package/mobile/src/components/ProductGallery/ProductGallery.example.json +1 -1
  342. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +1 -0
  343. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +1 -0
  344. package/mobile/src/icons/DzenIcon.svg +4 -0
  345. package/mobile/src/icons/IconName.ts +4 -4
  346. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -7
  347. package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +13 -5
  348. package/mobile/src/ui-kit/DatePicker/getYears.ts +1 -1
  349. package/mobile/src/ui-kit/Input/Input.tsx +1 -1
  350. package/mobile/src/ui-kit/NotFound/NotFound.tsx +1 -1
  351. package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
  352. package/mobile/src/ui-kit/Select/Select.tsx +1 -1
  353. package/package.json +1 -1
  354. package/src/api/{CorporateLeadAPI.ts → LeadServiceAPI.ts} +5 -3
  355. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +14 -0
  356. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
  357. package/src/components/ApplicationForm/ApplicationForm.tsx +14 -8
  358. package/src/components/ApplicationForm/ApplicationForm.ui.json +5 -2
  359. package/src/components/ApplicationForm/ApplicationFormContent.ts +13 -1
  360. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -3
  361. package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
  362. package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +74 -0
  363. package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
  364. package/src/components/ApplicationForm/DatePickerControl.tsx +33 -0
  365. package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  366. package/src/components/ApplicationForm/Footnote.tsx +3 -2
  367. package/src/components/ApplicationForm/IndividualsFormState.ts +9 -0
  368. package/src/components/ApplicationForm/renderIndividualsFields.tsx +46 -0
  369. package/src/components/Blocks.mobile.ts +0 -2
  370. package/src/components/Blocks.ts +0 -2
  371. package/src/components/Calculator/Calculator.mobile.tsx +5 -7
  372. package/src/components/Carousel/renderCarouselCards.tsx +1 -1
  373. package/src/components/CarouselCard/CarouselCard.tsx +1 -1
  374. package/src/components/CarouselCard/titleSize.tsx +1 -1
  375. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
  376. package/src/components/Footer/Footer.mobile.tsx +7 -5
  377. package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -1
  378. package/src/components/Footer/SocialMedia.tsx +8 -8
  379. package/src/components/Footer/iconsMap.ts +4 -0
  380. package/src/components/OfficesAtmsMap/OfficesAtmsMap.ui.json +16 -1
  381. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -0
  382. package/src/components/ProductBlock/ProductBlock.tsx +1 -6
  383. package/src/components/ProductGallery/ProductGallery.example.json +1 -1
  384. package/src/components/ProductGallery/ProductGallery.tsx +1 -1
  385. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +1 -0
  386. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +1 -0
  387. package/src/icons/DzenIcon.svg +4 -0
  388. package/src/icons/IconName.ts +4 -1
  389. package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -7
  390. package/src/ui-kit/DatePicker/DatePicker.tsx +13 -5
  391. package/src/ui-kit/DatePicker/getYears.ts +1 -1
  392. package/src/ui-kit/Input/Input.tsx +1 -1
  393. package/src/ui-kit/NotFound/NotFound.tsx +1 -1
  394. package/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
  395. package/src/ui-kit/Select/Select.tsx +1 -1
  396. package/bundle/components/Tile/Tile.d.ts +0 -5
  397. package/bundle/components/Tile/TileContent.d.ts +0 -6
  398. package/dist/api/CorporateLeadAPI.js.map +0 -1
  399. package/dist/components/Tile/Tile.d.ts +0 -5
  400. package/dist/components/Tile/Tile.js +0 -8
  401. package/dist/components/Tile/Tile.js.map +0 -1
  402. package/dist/components/Tile/TileContent.d.ts +0 -6
  403. package/dist/components/Tile/TileContent.js.map +0 -1
  404. package/lib/api/CorporateLeadAPI.js.map +0 -1
  405. package/lib/components/Tile/Tile.d.ts +0 -5
  406. package/lib/components/Tile/Tile.fixture.d.ts +0 -15
  407. package/lib/components/Tile/Tile.fixture.mobile.d.ts +0 -9
  408. package/lib/components/Tile/Tile.js +0 -6
  409. package/lib/components/Tile/Tile.js.map +0 -1
  410. package/lib/components/Tile/TileContent.d.ts +0 -6
  411. package/lib/components/Tile/TileContent.js +0 -2
  412. package/lib/components/Tile/TileContent.js.map +0 -1
  413. package/mobile/bundle/components/Tile/Tile.d.ts +0 -5
  414. package/mobile/bundle/components/Tile/TileContent.d.ts +0 -6
  415. package/mobile/dist/api/CorporateLeadAPI.d.ts +0 -15
  416. package/mobile/dist/api/CorporateLeadAPI.js.map +0 -1
  417. package/mobile/dist/components/Tile/Tile.d.ts +0 -5
  418. package/mobile/dist/components/Tile/Tile.js +0 -8
  419. package/mobile/dist/components/Tile/Tile.js.map +0 -1
  420. package/mobile/dist/components/Tile/TileContent.d.ts +0 -6
  421. package/mobile/dist/components/Tile/TileContent.js.map +0 -1
  422. package/mobile/lib/api/CorporateLeadAPI.d.ts +0 -15
  423. package/mobile/lib/api/CorporateLeadAPI.js.map +0 -1
  424. package/mobile/lib/components/Tile/Tile.d.ts +0 -5
  425. package/mobile/lib/components/Tile/Tile.js +0 -6
  426. package/mobile/lib/components/Tile/Tile.js.map +0 -1
  427. package/mobile/lib/components/Tile/TileContent.d.ts +0 -6
  428. package/mobile/lib/components/Tile/TileContent.js +0 -2
  429. package/mobile/lib/components/Tile/TileContent.js.map +0 -1
  430. package/mobile/src/components/Tile/Tile.example.json +0 -28
  431. package/mobile/src/components/Tile/Tile.tsx +0 -23
  432. package/mobile/src/components/Tile/Tile.ui.json +0 -17
  433. package/mobile/src/components/Tile/TileContent.ts +0 -7
  434. package/src/components/Tile/Tile.example.json +0 -28
  435. package/src/components/Tile/Tile.fixture.mobile.tsx +0 -48
  436. package/src/components/Tile/Tile.fixture.tsx +0 -146
  437. package/src/components/Tile/Tile.tsx +0 -23
  438. package/src/components/Tile/Tile.ui.json +0 -17
  439. package/src/components/Tile/TileContent.ts +0 -7
@@ -6,7 +6,7 @@ import { Img } from '../Img/Img';
6
6
 
7
7
  export const NotFound = JSX<NotFoundContent>(({ title, description }) => (
8
8
  <div className="bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center">
9
- <Img image={{ icon: 'MagnifierIcon' }} width="120" height="120" />
9
+ <Img image={{ icon: 'MagnifierIcon', iconVersion: 'normal' }} width="120" height="120" />
10
10
  <Headline
11
11
  title={title}
12
12
  description={description}
@@ -28,7 +28,7 @@ export const SearchInput = JSX<SearchInputProps>(
28
28
  </div>
29
29
  <input
30
30
  className={style(
31
- 'h-12 w-full px-10 text-l text-black outline-none box-border border border-solid rounded-md',
31
+ 'h-14 w-full px-10 text-l text-black outline-none box-border border border-solid rounded-md',
32
32
  'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text',
33
33
  )}
34
34
  value={value}
@@ -59,7 +59,7 @@ export const Select = JSX<SelectProps>(
59
59
  <div className={style('relative', isOpen ? 'z-20' : 'z-10')} ref={inputRef}>
60
60
  <div
61
61
  className={style(
62
- 'text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10',
62
+ 'h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10',
63
63
  getBorderStyle(isBorder, valid),
64
64
  )}
65
65
  onClick={isOpen ? handleClose : open}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.26",
3
+ "version": "0.14.27",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -12,10 +12,12 @@ export interface DaDataResult {
12
12
  suggestions?: DaDataSuggestion<DaDataAddress>[];
13
13
  }
14
14
 
15
- export function CorporateLeadAPI() {
16
- async function send(body: Record<string, string>) {
15
+ export function LeadServiceAPI() {
16
+ async function send(body: Record<string, string>, isIndividualType?: boolean) {
17
+ const url = isIndividualType ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
18
+
17
19
  try {
18
- const response = await fetch('/api/v1/sendcorporatelead', {
20
+ const response = await fetch(url, {
19
21
  method: 'POST',
20
22
  headers: { 'Content-Type': 'application/json' },
21
23
  mode: 'cors',
@@ -48,6 +48,14 @@ const ApplicationFormGrantSupport: ApplicationFormContent = {
48
48
  },
49
49
  };
50
50
 
51
+ const ApplicationFormIndividuals: ApplicationFormContent = {
52
+ formBlock: {
53
+ ...formBlockProps,
54
+ formType: 'ApplicationFormIndividuals',
55
+ product: 'product',
56
+ },
57
+ };
58
+
51
59
  export default {
52
60
  credit: (
53
61
  <div className="container grid grid-cols-12">
@@ -85,4 +93,10 @@ export default {
85
93
  <PopupManager />
86
94
  </div>
87
95
  ),
96
+ individuals: (
97
+ <div className="container grid grid-cols-12">
98
+ <ApplicationForm className="col-span-12" {...ApplicationFormIndividuals} />
99
+ <PopupManager />
100
+ </div>
101
+ ),
88
102
  };
@@ -48,6 +48,14 @@ const ApplicationFormGrantSupport: ApplicationFormContent = {
48
48
  },
49
49
  };
50
50
 
51
+ const ApplicationFormIndividuals: ApplicationFormContent = {
52
+ formBlock: {
53
+ ...formBlockProps,
54
+ formType: 'ApplicationFormIndividuals',
55
+ product: 'product',
56
+ },
57
+ };
58
+
51
59
  export default {
52
60
  credit: (
53
61
  <div className="container grid grid-cols-12">
@@ -85,4 +93,10 @@ export default {
85
93
  <PopupManager />
86
94
  </div>
87
95
  ),
96
+ individuals: (
97
+ <div className="container grid grid-cols-12">
98
+ <ApplicationForm className="col-span-12" {...ApplicationFormIndividuals} />
99
+ <PopupManager />
100
+ </div>
101
+ ),
88
102
  };
@@ -1,6 +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
+ import { LeadServiceAPI } from '../../api/LeadServiceAPI';
4
4
  import { type UniBlockProps } from '../../model/JSXBlock';
5
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
6
  import { Heading } from '../../ui-kit/Heading/Heading';
@@ -13,19 +13,22 @@ import { ResponseNotification } from './ResponseNotification';
13
13
 
14
14
  export interface ApplicationFormProps extends ApplicationFormContent, UniBlockProps {}
15
15
 
16
- const API = CorporateLeadAPI();
16
+ const API = LeadServiceAPI();
17
17
 
18
18
  export const ApplicationForm = JSX<ApplicationFormProps>((props) => {
19
19
  const { className, formBlock, ...rest } = props;
20
20
 
21
21
  const [responseType, setResponseType] = useState<'OK' | 'Fail' | ''>('');
22
22
 
23
- const handleSubmit = useCallback(async (data: Record<string, any>) => {
24
- const status = (await API.send(data)) ? 'OK' : 'Fail';
25
- setResponseType(status);
23
+ const handleSubmit = useCallback(
24
+ async (data: Record<string, any>, isIndividualType?: boolean) => {
25
+ const status = (await API.send(data, isIndividualType)) ? 'OK' : 'Fail';
26
+ setResponseType(status);
26
27
 
27
- return status;
28
- }, []);
28
+ return status;
29
+ },
30
+ [],
31
+ );
29
32
 
30
33
  return (
31
34
  <BlockWrapper className={className} defaultPadding="p-6xl" {...rest}>
@@ -42,7 +45,10 @@ export const ApplicationForm = JSX<ApplicationFormProps>((props) => {
42
45
 
43
46
  const renderEmbeddedForm = (
44
47
  formBlock: ApplicationFormBlockDef,
45
- handleSubmit: (data: Record<string, string>) => Promise<'OK' | 'Fail'>,
48
+ handleSubmit: (
49
+ data: Record<string, string>,
50
+ isIndividualType?: boolean,
51
+ ) => Promise<'OK' | 'Fail'>,
46
52
  ) => {
47
53
  const type = formBlock?.formType;
48
54
  if (!type || !(type in EmbeddableForms)) {
@@ -4,8 +4,11 @@
4
4
  "formType": {
5
5
  "ui:widget": "hidden"
6
6
  },
7
- "sourceBookDir": {
8
- "ui:widget": "sourceBook"
7
+ "product": {
8
+ "ui:widget": "sourceBookDataDropdown",
9
+ "ui:options": {
10
+ "sourceName": "products"
11
+ }
9
12
  }
10
13
  }
11
14
  }
@@ -74,6 +74,17 @@ export type GrantSupportFormParamsDef = TitleProps & {
74
74
  sourceBookDir?: string;
75
75
  };
76
76
 
77
+ /**
78
+ * @title Заявка для ФЛ
79
+ */
80
+ export type IndividualsFormParamsDef = TitleProps & {
81
+ /** @default ApplicationFormIndividuals */
82
+ formType: 'ApplicationFormIndividuals';
83
+ button?: SubmitButtonProps;
84
+ /** @title Продукт */
85
+ product?: string;
86
+ };
87
+
77
88
  /**
78
89
  * @title Настройки формы
79
90
  */
@@ -83,7 +94,8 @@ export type ApplicationFormBlockDef =
83
94
  | DepositFormParamsDef
84
95
  | CreditFormParamsDef
85
96
  | AcquiringFormParamsDef
86
- | GrantSupportFormParamsDef;
97
+ | GrantSupportFormParamsDef
98
+ | IndividualsFormParamsDef;
87
99
 
88
100
  /**
89
101
  * @title Форма заявки
@@ -23,9 +23,7 @@ const depositValidator = objectValidator({
23
23
  phone: phoneValidator,
24
24
  });
25
25
 
26
- export const ApplicationFormDeposit = JSX<ApplicationFormsProps>((props) => {
27
- const { button, link, onSubmit } = props;
28
-
26
+ export const ApplicationFormDeposit = JSX<ApplicationFormsProps>(({ button, link, onSubmit }) => {
29
27
  const handleSubmit = useCallback(
30
28
  (formState: DepositFormState) => {
31
29
  const { name, phone } = formState;
@@ -31,7 +31,7 @@ export const ApplicationFormGrantSupport = JSX<ApplicationFormsProps>((props) =>
31
31
  label="Ваш регион"
32
32
  placeholder="Выберите регион"
33
33
  isSearch={true}
34
- options={regions.map(({ name = '' }) => ({ key: name }))}
34
+ options={regions.map(({ name = '' }) => ({ key: name, text: name }))}
35
35
  value={region}
36
36
  onChange={setRegion}
37
37
  />
@@ -0,0 +1,74 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useForm } from '../../hooks/useForm';
4
+ import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
5
+ import { objectValidator } from '../../validation/objectValidator';
6
+ import { isValidationSuccess } from '../../validation/validator';
7
+ import { withValidator } from '../../validation/withValidator';
8
+ import { type ApplicationFormsProps } from './ApplicationFormsProps';
9
+ import { Footnote } from './Footnote';
10
+ import { type IndividualsFormState } from './IndividualsFormState';
11
+ import { renderIndividualsFields } from './renderIndividualsFields';
12
+ import { renderSubmitButton } from './renderSubmitButton';
13
+ import { defaultValidator, nameValidator, phoneValidator } from './validators';
14
+
15
+ const initialFormState: IndividualsFormState = {
16
+ surname: '',
17
+ name: '',
18
+ middleName: '',
19
+ phone: '',
20
+ mail: '',
21
+ date: undefined,
22
+ consentDataProcessing: true,
23
+ };
24
+
25
+ const individualsValidator = objectValidator({
26
+ surname: nameValidator,
27
+ name: nameValidator,
28
+ middleName: nameValidator,
29
+ phone: phoneValidator,
30
+ mail: defaultValidator,
31
+ date: defaultValidator,
32
+ });
33
+
34
+ export const ApplicationFormIndividuals = JSX<ApplicationFormsProps>((props) => {
35
+ const { button, link, product, onSubmit } = props;
36
+
37
+ const handleSubmit = useCallback(
38
+ (formState: IndividualsFormState) => {
39
+ const { surname, name, middleName, phone, mail, date, consentDataProcessing } = formState;
40
+
41
+ isValidationSuccess(individualsValidator(formState)) &&
42
+ onSubmit(
43
+ {
44
+ typeForm: 'dpst',
45
+ surname,
46
+ name,
47
+ middleName,
48
+ mail,
49
+ consentDataProcessing,
50
+ phone: phone.replace(/[^+\d]/g, ''),
51
+ date: date?.toISOString().slice(0, 10) || '',
52
+ product: product || '',
53
+ },
54
+ true,
55
+ );
56
+ },
57
+ [onSubmit],
58
+ );
59
+
60
+ const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
61
+
62
+ return (
63
+ <form className="container space-y-s" onSubmit={formProps.onSubmit}>
64
+ {renderIndividualsFields(field)}
65
+ <div className="@xl:flex justify-between items-center">
66
+ <div className="@xl:mb-0 mb-2 flex items-center gap-3">
67
+ <Checkbox {...withValidator(field('consentDataProcessing'), defaultValidator)} />
68
+ <Footnote text="Согласен с " link={link} />
69
+ </div>
70
+ {renderSubmitButton(button)}
71
+ </div>
72
+ </form>
73
+ );
74
+ });
@@ -5,5 +5,6 @@ export interface ApplicationFormsProps<S extends Record<string, any> = Record<st
5
5
  button?: SubmitButtonProps;
6
6
  link?: LinkProps;
7
7
  sourceBookDir?: string;
8
- onSubmit: (data: S) => void;
8
+ product?: string;
9
+ onSubmit: (data: S, isIndividualType?: boolean) => void;
9
10
  }
@@ -0,0 +1,33 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { DatePicker } from '../../ui-kit/DatePicker/DatePicker';
3
+ import { Text } from '../../ui-kit/Text/Text';
4
+
5
+ export interface DatePickerControlProps {
6
+ className: string;
7
+ label: string;
8
+ value?: Date;
9
+ error?: string;
10
+ onChange?: (value: Date) => void;
11
+ }
12
+
13
+ export const DatePickerControl = JSX<DatePickerControlProps>(
14
+ ({ className, label, value = undefined, error, onChange }) => (
15
+ <div className={className}>
16
+ {label ? (
17
+ <div className="mb-xs">
18
+ <Text size="text-m" font="font-light">
19
+ {label}
20
+ </Text>
21
+ </div>
22
+ ) : null}
23
+ <DatePicker value={value} onChange={onChange} valid={Boolean(!error)} />
24
+ <div className="h-2">
25
+ {error ? (
26
+ <Text size="text-xs" font="font-light" color="text-error">
27
+ {error}
28
+ </Text>
29
+ ) : null}
30
+ </div>
31
+ </div>
32
+ ),
33
+ );
@@ -3,6 +3,7 @@ import { ApplicationFormBusinessCard } from './ApplicationFormBusinessCard';
3
3
  import { ApplicationFormCredit } from './ApplicationFormCredit';
4
4
  import { ApplicationFormDeposit } from './ApplicationFormDeposit';
5
5
  import { ApplicationFormGrantSupport } from './ApplicationFormGrantSupport';
6
+ import { ApplicationFormIndividuals } from './ApplicationFormIndividuals';
6
7
  import { ApplicationFormWed } from './ApplicationFormWed';
7
8
 
8
9
  export const EmbeddableForms = {
@@ -12,4 +13,5 @@ export const EmbeddableForms = {
12
13
  ApplicationFormCredit,
13
14
  ApplicationFormAcquiring,
14
15
  ApplicationFormGrantSupport,
16
+ ApplicationFormIndividuals,
15
17
  };
@@ -5,12 +5,13 @@ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
5
5
  import { Text } from '../../ui-kit/Text/Text';
6
6
 
7
7
  interface FootnoteProps {
8
+ text?: string;
8
9
  link?: LinkProps;
9
10
  }
10
11
 
11
- export const Footnote = JSX<FootnoteProps>(({ link }) => (
12
+ export const Footnote = JSX<FootnoteProps>(({ text, link }) => (
12
13
  <Paragraph size="text-s" font="font-light" color="text-secondary-text">
13
- <Text>Нажимая кнопку, вы подтверждаете согласие с </Text>
14
+ <Text>{text || 'Нажимая кнопку, вы подтверждаете согласие с '}</Text>
14
15
  {link ? (
15
16
  <Button
16
17
  href={link.href}
@@ -0,0 +1,9 @@
1
+ export interface IndividualsFormState {
2
+ surname: string;
3
+ name: string;
4
+ middleName: string;
5
+ phone: string;
6
+ mail: string;
7
+ date: Date | undefined;
8
+ consentDataProcessing: boolean;
9
+ }
@@ -0,0 +1,46 @@
1
+ import { type FormFieldRegisterer } from '../../hooks/useForm';
2
+ import { withValidator } from '../../validation/withValidator';
3
+ import { DatePickerControl } from './DatePickerControl';
4
+ import { type IndividualsFormState } from './IndividualsFormState';
5
+ import { InputControl } from './InputControl';
6
+ import { PhoneInputControl } from './PhoneInputControl';
7
+ import { defaultValidator, nameValidator, phoneValidator } from './validators';
8
+
9
+ export const renderIndividualsFields = (field: FormFieldRegisterer<IndividualsFormState>) => (
10
+ <div className="@xl:flex @xl:justify-between @xl:gap-lg">
11
+ <div className="@xl:w-1/2 space-y-s">
12
+ <InputControl
13
+ className="shrink-0 w-full"
14
+ label="Фамилия"
15
+ {...withValidator(field('surname'), nameValidator)}
16
+ />
17
+ <InputControl
18
+ className="shrink-0 w-full"
19
+ label="Отчество"
20
+ {...withValidator(field('middleName'), nameValidator)}
21
+ />
22
+ <PhoneInputControl
23
+ className="shrink-0 w-full"
24
+ label="Телефон"
25
+ {...withValidator(field('phone'), phoneValidator)}
26
+ />
27
+ </div>
28
+ <div className="@xl:w-1/2 space-y-s">
29
+ <InputControl
30
+ className="shrink-0 w-full"
31
+ label="Имя"
32
+ {...withValidator(field('name'), nameValidator)}
33
+ />
34
+ <DatePickerControl
35
+ className="shrink-0 w-full"
36
+ label="Дата рождения"
37
+ {...withValidator(field('date'), defaultValidator)}
38
+ />
39
+ <InputControl
40
+ className="shrink-0 w-full"
41
+ label="Электронная почта"
42
+ {...withValidator(field('mail'), defaultValidator)}
43
+ />
44
+ </div>
45
+ </div>
46
+ );
@@ -40,7 +40,6 @@ import { StickyBottomMenu } from './StickyBottomMenu/StickyBottomMenu';
40
40
  import { Tabs } from './Tabs/Tabs';
41
41
  import { TariffsTable } from './TariffsTable/TariffsTable';
42
42
  import { TextBlock } from './TextBlock/TextBlock';
43
- import { Tile } from './Tile/Tile';
44
43
  import { VerticalLayout } from './VerticalLayout/VerticalLayout';
45
44
 
46
45
  export const Blocks: BlocksRegistry = {
@@ -85,6 +84,5 @@ export const Blocks: BlocksRegistry = {
85
84
  Tabs,
86
85
  TariffsTable,
87
86
  TextBlock,
88
- Tile,
89
87
  VerticalLayout,
90
88
  };
@@ -52,7 +52,6 @@ import { SwipeListControlBlock } from './SwipeListControlBlock/SwipeListControlB
52
52
  import { Tabs } from './Tabs/Tabs';
53
53
  import { TariffsTable } from './TariffsTable/TariffsTable';
54
54
  import { TextBlock } from './TextBlock/TextBlock';
55
- import { Tile } from './Tile/Tile';
56
55
  import { VerticalLayout } from './VerticalLayout/VerticalLayout';
57
56
  import { Video } from './Video/Video';
58
57
 
@@ -110,7 +109,6 @@ export const Blocks: BlocksRegistry = {
110
109
  Tabs,
111
110
  TariffsTable,
112
111
  TextBlock,
113
- Tile,
114
112
  VerticalLayout,
115
113
  Video,
116
114
  };
@@ -12,8 +12,8 @@ import { EmbeddableCalcBlocks } from './EmbeddableCalcBlocks';
12
12
 
13
13
  export interface CalculatorProps extends CalculatorContent, UniBlockProps {}
14
14
 
15
- export const Calculator = JSX<CalculatorProps>(({ className, calculatorTabs = [] }) => (
16
- <BlockWrapper className={className} defaultPadding="p-0">
15
+ export const Calculator = JSX<CalculatorProps>(({ className, calculatorTabs = [], ...rest }) => (
16
+ <BlockWrapper className={className} defaultPadding="p-0" {...rest}>
17
17
  {renderTabs(calculatorTabs)}
18
18
  </BlockWrapper>
19
19
  ));
@@ -28,7 +28,7 @@ const renderCalculator = (tab: CalculatorTab) => {
28
28
  const EmbeddedBlock = EmbeddableCalcBlocks[type];
29
29
 
30
30
  return (
31
- <div>
31
+ <div className="p-xl">
32
32
  {tab?.calculatorBlock?.title ? (
33
33
  <Heading className="mb-lg" title={tab?.calculatorBlock?.title} />
34
34
  ) : null}
@@ -45,7 +45,7 @@ const renderTabs = (tabs: CalculatorTab[]) => {
45
45
  const isSingleTab = tabs.length === 1;
46
46
 
47
47
  if (isSingleTab) {
48
- return <BlockWrapper>{renderCalculator(tabs[0])}</BlockWrapper>;
48
+ return renderCalculator(tabs[0]);
49
49
  }
50
50
 
51
51
  return tabs.map((tab, index) => (
@@ -54,9 +54,7 @@ const renderTabs = (tabs: CalculatorTab[]) => {
54
54
  isFoldButtonOnTop
55
55
  unfoldedByDefault={index === 0}
56
56
  renderFoldableSection={({ isUnfolded }) => (
57
- <FoldableSection isUnfolded={isUnfolded}>
58
- <BlockWrapper>{renderCalculator(tab)}</BlockWrapper>
59
- </FoldableSection>
57
+ <FoldableSection isUnfolded={isUnfolded}>{renderCalculator(tab)}</FoldableSection>
60
58
  )}
61
59
  renderFoldButton={renderFoldButton(tab)}
62
60
  />
@@ -68,7 +68,7 @@ const cardStyle = (
68
68
  CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
69
69
  someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'),
70
70
  showBorder &&
71
- 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider',
71
+ 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider h-full',
72
72
  );
73
73
 
74
74
  const isCardHighlighted = (_: BlockDef | undefined) =>
@@ -19,7 +19,7 @@ export const CarouselCard = JSX<CarouselCardProps>(
19
19
  defaultPadding="p-0"
20
20
  {...rest}
21
21
  >
22
- <div className="relative">
22
+ <div className="relative h-full">
23
23
  <div className={style(layerStyle, 'top-9 right-12 bg-green-dark')} />
24
24
  <div className={style(layerStyle, 'top-6 right-8 bg-green')} />
25
25
  <div className={style(layerStyle, 'top-3 right-4 bg-green-light')} />
@@ -1 +1 @@
1
- export const titleSize = 'L';
1
+ export const titleSize = 'XS';
@@ -25,7 +25,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
25
25
  const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
26
26
 
27
27
  return (
28
- <BlockWrapper className={style('flex flex-col', className)} defaultPadding="p-3xl" {...rest}>
28
+ <BlockWrapper className={style('flex flex-col', className)} defaultPadding="p-2xl" {...rest}>
29
29
  {isIcon(icon) ? (
30
30
  <div className="self-center">
31
31
  <Img image={icon} />
@@ -34,7 +34,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
34
34
  {title ? (
35
35
  <Heading className={style('pt-xs', align)} headingType="h5" title={title} />
36
36
  ) : null}
37
- {button ? <Button className="w-full mt-m" {...button} /> : null}
37
+ {button ? <Button className="w-full mt-m mb-lg" {...button} /> : null}
38
38
  {cardCells.length ? (
39
39
  <Foldable
40
40
  renderFoldableSection={({ isUnfolded }) => (
@@ -45,10 +45,12 @@ export const Footer = JSX<FooterProps>(({ className, ...rest }) => {
45
45
  <SocialMedia className="mb-xl" media={socialMedia} stretched={true}>
46
46
  Соцсети
47
47
  </SocialMedia>
48
- <Text size="text-s" font="font-light" color="text-secondary-text">
49
- Мобильное приложение
50
- </Text>
51
- <div className="mt-xs">{mobileApps?.map(renderButton)}</div>
48
+ <div className="mb-xl">
49
+ <div className="flex flex-col gap-4 mb-xs">{mobileApps?.map(renderButton)}</div>
50
+ <Text size="text-s" font="font-light" color="text-secondary-text">
51
+ Мобильное приложение
52
+ </Text>
53
+ </div>
52
54
  </div>
53
55
  <div className="py-lg border-t border-main-divider">
54
56
  <HorizontalNavigationLink
@@ -74,7 +76,7 @@ const renderButton = ({ href = '/', text }: LinkProps, i: number) => {
74
76
  return (
75
77
  <Button
76
78
  key={String(i)}
77
- className="w-full mb-lg"
79
+ className="w-full"
78
80
  text={text || label}
79
81
  version="secondary"
80
82
  href={href}
@@ -1,6 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { type TitleProps } from '../../model/HeadlineType';
3
3
  import { Text } from '../../ui-kit/Text/Text';
4
+ import { style } from '../../utils/style';
4
5
  import { type FooterLink } from './FooterLink';
5
6
  import { HorizontalNavigationLink } from './HorizontalNavigationLink';
6
7
 
@@ -8,7 +9,7 @@ export interface HorizontalNavigationProps extends FooterLink, TitleProps {}
8
9
 
9
10
  export const HorizontalNavigation = JSX<HorizontalNavigationProps>(
10
11
  ({ title, links, className = '' }) => (
11
- <div className={className}>
12
+ <div className={style('flex flex-col gap-4', className)}>
12
13
  <Text size="text-l" font="font-normal">
13
14
  {title}
14
15
  </Text>
@@ -39,23 +39,23 @@ export const SocialMedia = JSX<SocialMediaProps>(
39
39
 
40
40
  const buttonClassName = style(
41
41
  'border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media',
42
- showButtonText && hasText ? '' : ' basis-auto',
42
+ showButtonText && hasText ? '' : 'basis-auto',
43
43
  stretched ? 'flex-1 justify-center' : '',
44
44
  );
45
45
 
46
46
  return (
47
- <div className="flex flex-col sm:flex-col-reverse gap-xs">
48
- {children ? (
49
- <Text size="text-s" font="font-light" color="text-secondary-text">
50
- {children}
51
- </Text>
52
- ) : null}
53
- <div className={style('flex gap-xs', className)}>
47
+ <div className={style('flex flex-col gap-xs', className)}>
48
+ <div className="flex gap-xs">
54
49
  {renderButtonsSection(buttons, {
55
50
  className: stretched ? 'w-full' : '',
56
51
  buttonClassName,
57
52
  })}
58
53
  </div>
54
+ {children ? (
55
+ <Text size="text-s" font="font-light" color="text-secondary-text">
56
+ {children}
57
+ </Text>
58
+ ) : null}
59
59
  </div>
60
60
  );
61
61
  },
@@ -35,4 +35,8 @@ export const ICONS_MAP: Array<IconsMapItem> = [
35
35
  origins: ['rutube.ru'],
36
36
  iconMapped: { icon: 'RutubeIcon' },
37
37
  },
38
+ {
39
+ origins: ['dzen.ru'],
40
+ iconMapped: { icon: 'DzenIcon' },
41
+ },
38
42
  ];
@@ -1 +1,16 @@
1
- {}
1
+ {
2
+ "content": {
3
+ "data": {
4
+ "dataType": {
5
+ "ui:widget": "hidden"
6
+ },
7
+ "list": {
8
+ "items": {
9
+ "image": {
10
+ "ui:field": "picture"
11
+ }
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }