@redneckz/wildless-cms-uni-blocks 0.14.751 → 0.14.753

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 (585) hide show
  1. package/bundle/api/RetailAPI/getTraceId.d.ts +1 -0
  2. package/bundle/bundle.umd.js +130 -134
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
  5. package/bundle/components/RollupItem/RollupItem.d.ts +0 -4
  6. package/bundle/ui-kit/Button/Button.d.ts +7 -3
  7. package/bundle/ui-kit/Button/ButtonTitle.d.ts +5 -0
  8. package/bundle/ui-kit/Button/SubmitButton.d.ts +5 -0
  9. package/bundle/ui-kit/ControlStateProps.d.ts +0 -1
  10. package/bundle/ui-kit/DraftDialog/utils.d.ts +11 -1
  11. package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
  12. package/bundle/ui-kit/Foldable/Foldable.d.ts +2 -1
  13. package/bundle/ui-kit/Icon/IconProps.d.ts +12 -0
  14. package/bundle/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  15. package/bundle/ui-kit/Input/InputPopup.d.ts +2 -1
  16. package/dist/api/RetailAPI/doRequest.js +5 -0
  17. package/dist/api/RetailAPI/doRequest.js.map +1 -1
  18. package/dist/api/RetailAPI/getGenderFromName.js +7 -5
  19. package/dist/api/RetailAPI/getGenderFromName.js.map +1 -1
  20. package/dist/api/RetailAPI/getTraceId.d.ts +1 -0
  21. package/dist/api/RetailAPI/getTraceId.js +9 -0
  22. package/dist/api/RetailAPI/getTraceId.js.map +1 -0
  23. package/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -2
  24. package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  25. package/dist/components/ApplicationLeadForm/GroupedConsents.js +3 -2
  26. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  27. package/dist/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
  28. package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  29. package/dist/components/CardTransfer/CardTransfer.js +2 -2
  30. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  31. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
  32. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  33. package/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -1
  34. package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  35. package/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
  36. package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  37. package/dist/components/Depository/DepositoryItem.js +2 -2
  38. package/dist/components/Depository/DepositoryItem.js.map +1 -1
  39. package/dist/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
  40. package/dist/components/OfficesAtmsMap/FiltrationForm.js +5 -6
  41. package/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  42. package/dist/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
  43. package/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  44. package/dist/components/OfficesAtmsMap/renderAtmCard.js +1 -2
  45. package/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  46. package/dist/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  47. package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  48. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
  49. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  50. package/dist/components/RollupItem/RollupItem.d.ts +0 -4
  51. package/dist/components/RollupItem/RollupItem.js +4 -20
  52. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  53. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  54. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  55. package/dist/components/TariffsTable/TariffsTable.js +1 -1
  56. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  57. package/dist/ui-kit/BaseFiltration/GridBlocks.js +2 -2
  58. package/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  59. package/dist/ui-kit/Button/Button.d.ts +7 -3
  60. package/dist/ui-kit/Button/Button.js +15 -17
  61. package/dist/ui-kit/Button/Button.js.map +1 -1
  62. package/dist/ui-kit/Button/ButtonTitle.d.ts +5 -0
  63. package/dist/ui-kit/Button/ButtonTitle.js +7 -0
  64. package/dist/ui-kit/Button/ButtonTitle.js.map +1 -0
  65. package/dist/ui-kit/Button/SubmitButton.d.ts +5 -0
  66. package/dist/ui-kit/Button/SubmitButton.js +8 -0
  67. package/dist/ui-kit/Button/SubmitButton.js.map +1 -0
  68. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
  69. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  70. package/dist/ui-kit/ControlStateProps.d.ts +0 -1
  71. package/dist/ui-kit/DraftDialog/parseDraftTask.js +2 -2
  72. package/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
  73. package/dist/ui-kit/DraftDialog/utils.d.ts +11 -1
  74. package/dist/ui-kit/DraftDialog/utils.js +13 -3
  75. package/dist/ui-kit/DraftDialog/utils.js.map +1 -1
  76. package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
  77. package/dist/ui-kit/Foldable/DefaultFoldButton.js +5 -12
  78. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  79. package/dist/ui-kit/Foldable/Foldable.d.ts +2 -1
  80. package/dist/ui-kit/Foldable/Foldable.js +1 -1
  81. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  82. package/dist/ui-kit/Icon/Icon.js +16 -11
  83. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  84. package/dist/ui-kit/Icon/IconProps.d.ts +12 -0
  85. package/dist/ui-kit/Icon/RoundedIcon.js +1 -1
  86. package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  87. package/dist/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  88. package/dist/ui-kit/Icon/ToggleIcon.js +7 -0
  89. package/dist/ui-kit/Icon/ToggleIcon.js.map +1 -0
  90. package/dist/ui-kit/Input/InputPopup.d.ts +2 -1
  91. package/dist/ui-kit/Input/InputPopup.js +29 -1
  92. package/dist/ui-kit/Input/InputPopup.js.map +1 -1
  93. package/dist/ui-kit/Input/useInputPopup.js +4 -3
  94. package/dist/ui-kit/Input/useInputPopup.js.map +1 -1
  95. package/dist/ui-kit/Loader/Loader.js +1 -1
  96. package/dist/ui-kit/Loader/Loader.js.map +1 -1
  97. package/dist/ui-kit/Sitemap/Sitemap.mobile.js +14 -2
  98. package/dist/ui-kit/Sitemap/Sitemap.mobile.js.map +1 -1
  99. package/lib/api/RetailAPI/doRequest.js +5 -0
  100. package/lib/api/RetailAPI/doRequest.js.map +1 -1
  101. package/lib/api/RetailAPI/getGenderFromName.js +7 -5
  102. package/lib/api/RetailAPI/getGenderFromName.js.map +1 -1
  103. package/lib/api/RetailAPI/getTraceId.d.ts +1 -0
  104. package/lib/api/RetailAPI/getTraceId.js +6 -0
  105. package/lib/api/RetailAPI/getTraceId.js.map +1 -0
  106. package/lib/common.css +1 -1
  107. package/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -2
  108. package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  109. package/lib/components/ApplicationLeadForm/GroupedConsents.js +3 -2
  110. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  111. package/lib/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
  112. package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  113. package/lib/components/CardTransfer/CardTransfer.js +2 -2
  114. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  115. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
  116. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  117. package/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -1
  118. package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  119. package/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
  120. package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  121. package/lib/components/Depository/DepositoryItem.js +2 -2
  122. package/lib/components/Depository/DepositoryItem.js.map +1 -1
  123. package/lib/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
  124. package/lib/components/OfficesAtmsMap/FiltrationForm.js +4 -4
  125. package/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  126. package/lib/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
  127. package/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  128. package/lib/components/OfficesAtmsMap/renderAtmCard.js +1 -2
  129. package/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  130. package/lib/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  131. package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  132. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
  133. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  134. package/lib/components/RollupItem/RollupItem.d.ts +0 -4
  135. package/lib/components/RollupItem/RollupItem.js +4 -20
  136. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  137. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  138. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  139. package/lib/components/TariffsTable/TariffsTable.js +2 -2
  140. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  141. package/lib/ui-kit/BaseFiltration/GridBlocks.js +2 -2
  142. package/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  143. package/lib/ui-kit/Button/Button.d.ts +7 -3
  144. package/lib/ui-kit/Button/Button.js +16 -18
  145. package/lib/ui-kit/Button/Button.js.map +1 -1
  146. package/lib/ui-kit/Button/ButtonTitle.d.ts +5 -0
  147. package/lib/ui-kit/Button/ButtonTitle.js +5 -0
  148. package/lib/ui-kit/Button/ButtonTitle.js.map +1 -0
  149. package/lib/ui-kit/Button/SubmitButton.d.ts +5 -0
  150. package/lib/ui-kit/Button/SubmitButton.js +6 -0
  151. package/lib/ui-kit/Button/SubmitButton.js.map +1 -0
  152. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
  153. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  154. package/lib/ui-kit/ControlStateProps.d.ts +0 -1
  155. package/lib/ui-kit/DraftDialog/parseDraftTask.js +3 -3
  156. package/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
  157. package/lib/ui-kit/DraftDialog/utils.d.ts +14 -4
  158. package/lib/ui-kit/DraftDialog/utils.js +12 -2
  159. package/lib/ui-kit/DraftDialog/utils.js.map +1 -1
  160. package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
  161. package/lib/ui-kit/Foldable/DefaultFoldButton.js +5 -11
  162. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  163. package/lib/ui-kit/Foldable/Foldable.d.ts +2 -1
  164. package/lib/ui-kit/Foldable/Foldable.js +1 -1
  165. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  166. package/lib/ui-kit/Icon/Icon.js +16 -11
  167. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  168. package/lib/ui-kit/Icon/IconProps.d.ts +12 -0
  169. package/lib/ui-kit/Icon/RoundedIcon.js +1 -1
  170. package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  171. package/lib/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  172. package/lib/ui-kit/Icon/ToggleIcon.js +5 -0
  173. package/lib/ui-kit/Icon/ToggleIcon.js.map +1 -0
  174. package/lib/ui-kit/Input/InputPopup.d.ts +2 -1
  175. package/lib/ui-kit/Input/InputPopup.js +29 -1
  176. package/lib/ui-kit/Input/InputPopup.js.map +1 -1
  177. package/lib/ui-kit/Input/useInputPopup.js +4 -3
  178. package/lib/ui-kit/Input/useInputPopup.js.map +1 -1
  179. package/lib/ui-kit/Loader/Loader.js +1 -1
  180. package/lib/ui-kit/Loader/Loader.js.map +1 -1
  181. package/lib/ui-kit/Sitemap/Sitemap.mobile.js +15 -3
  182. package/lib/ui-kit/Sitemap/Sitemap.mobile.js.map +1 -1
  183. package/mobile/bundle/api/RetailAPI/getTraceId.d.ts +1 -0
  184. package/mobile/bundle/bundle.umd.js +147 -146
  185. package/mobile/bundle/bundle.umd.min.js +1 -1
  186. package/mobile/bundle/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
  187. package/mobile/bundle/components/RollupItem/RollupItem.d.ts +0 -4
  188. package/mobile/bundle/ui-kit/Button/Button.d.ts +7 -3
  189. package/mobile/bundle/ui-kit/Button/ButtonTitle.d.ts +5 -0
  190. package/mobile/bundle/ui-kit/Button/SubmitButton.d.ts +5 -0
  191. package/mobile/bundle/ui-kit/ControlStateProps.d.ts +0 -1
  192. package/mobile/bundle/ui-kit/DraftDialog/utils.d.ts +11 -1
  193. package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
  194. package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +2 -1
  195. package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +12 -0
  196. package/mobile/bundle/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  197. package/mobile/bundle/ui-kit/Input/InputPopup.d.ts +2 -1
  198. package/mobile/dist/api/RetailAPI/doRequest.js +5 -0
  199. package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -1
  200. package/mobile/dist/api/RetailAPI/getGenderFromName.js +7 -5
  201. package/mobile/dist/api/RetailAPI/getGenderFromName.js.map +1 -1
  202. package/mobile/dist/api/RetailAPI/getTraceId.d.ts +1 -0
  203. package/mobile/dist/api/RetailAPI/getTraceId.js +9 -0
  204. package/mobile/dist/api/RetailAPI/getTraceId.js.map +1 -0
  205. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -2
  206. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  207. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +3 -2
  208. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  209. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
  210. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  211. package/mobile/dist/components/CardTransfer/CardTransfer.js +2 -2
  212. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  213. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
  214. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  215. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -1
  216. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  217. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
  218. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  219. package/mobile/dist/components/Depository/DepositoryItem.js +2 -2
  220. package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
  221. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
  222. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js +5 -6
  223. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  224. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
  225. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  226. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js +1 -2
  227. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  228. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  229. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  230. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
  231. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  232. package/mobile/dist/components/RollupItem/RollupItem.d.ts +0 -4
  233. package/mobile/dist/components/RollupItem/RollupItem.js +4 -20
  234. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  235. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  236. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  237. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
  238. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  239. package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js +2 -2
  240. package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  241. package/mobile/dist/ui-kit/Button/Button.d.ts +7 -3
  242. package/mobile/dist/ui-kit/Button/Button.js +15 -17
  243. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  244. package/mobile/dist/ui-kit/Button/ButtonTitle.d.ts +5 -0
  245. package/mobile/dist/ui-kit/Button/ButtonTitle.js +7 -0
  246. package/mobile/dist/ui-kit/Button/ButtonTitle.js.map +1 -0
  247. package/mobile/dist/ui-kit/Button/SubmitButton.d.ts +5 -0
  248. package/mobile/dist/ui-kit/Button/SubmitButton.js +8 -0
  249. package/mobile/dist/ui-kit/Button/SubmitButton.js.map +1 -0
  250. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
  251. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  252. package/mobile/dist/ui-kit/ControlStateProps.d.ts +0 -1
  253. package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js +2 -2
  254. package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
  255. package/mobile/dist/ui-kit/DraftDialog/utils.d.ts +11 -1
  256. package/mobile/dist/ui-kit/DraftDialog/utils.js +13 -3
  257. package/mobile/dist/ui-kit/DraftDialog/utils.js.map +1 -1
  258. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
  259. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +5 -12
  260. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  261. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +2 -1
  262. package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
  263. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  264. package/mobile/dist/ui-kit/Icon/Icon.js +16 -11
  265. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  266. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +12 -0
  267. package/mobile/dist/ui-kit/Icon/RoundedIcon.js +1 -1
  268. package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  269. package/mobile/dist/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  270. package/mobile/dist/ui-kit/Icon/ToggleIcon.js +7 -0
  271. package/mobile/dist/ui-kit/Icon/ToggleIcon.js.map +1 -0
  272. package/mobile/dist/ui-kit/Input/InputPopup.d.ts +2 -1
  273. package/mobile/dist/ui-kit/Input/InputPopup.js +29 -1
  274. package/mobile/dist/ui-kit/Input/InputPopup.js.map +1 -1
  275. package/mobile/dist/ui-kit/Input/useInputPopup.js +4 -3
  276. package/mobile/dist/ui-kit/Input/useInputPopup.js.map +1 -1
  277. package/mobile/dist/ui-kit/Loader/Loader.js +1 -1
  278. package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
  279. package/mobile/dist/ui-kit/Sitemap/Sitemap.js +14 -2
  280. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  281. package/mobile/lib/api/RetailAPI/doRequest.js +5 -0
  282. package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -1
  283. package/mobile/lib/api/RetailAPI/getGenderFromName.js +7 -5
  284. package/mobile/lib/api/RetailAPI/getGenderFromName.js.map +1 -1
  285. package/mobile/lib/api/RetailAPI/getTraceId.d.ts +1 -0
  286. package/mobile/lib/api/RetailAPI/getTraceId.js +6 -0
  287. package/mobile/lib/api/RetailAPI/getTraceId.js.map +1 -0
  288. package/mobile/lib/common.css +1 -1
  289. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -2
  290. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  291. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +3 -2
  292. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  293. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
  294. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  295. package/mobile/lib/components/CardTransfer/CardTransfer.js +2 -2
  296. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  297. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
  298. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  299. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -1
  300. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  301. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
  302. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  303. package/mobile/lib/components/Depository/DepositoryItem.js +2 -2
  304. package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
  305. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
  306. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js +4 -4
  307. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  308. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
  309. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  310. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js +1 -2
  311. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  312. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  313. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  314. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
  315. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  316. package/mobile/lib/components/RollupItem/RollupItem.d.ts +0 -4
  317. package/mobile/lib/components/RollupItem/RollupItem.js +4 -20
  318. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  319. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  320. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  321. package/mobile/lib/components/TariffsTable/TariffsTable.js +2 -2
  322. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  323. package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js +2 -2
  324. package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  325. package/mobile/lib/ui-kit/Button/Button.d.ts +7 -3
  326. package/mobile/lib/ui-kit/Button/Button.js +16 -18
  327. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  328. package/mobile/lib/ui-kit/Button/ButtonTitle.d.ts +5 -0
  329. package/mobile/lib/ui-kit/Button/ButtonTitle.js +5 -0
  330. package/mobile/lib/ui-kit/Button/ButtonTitle.js.map +1 -0
  331. package/mobile/lib/ui-kit/Button/SubmitButton.d.ts +5 -0
  332. package/mobile/lib/ui-kit/Button/SubmitButton.js +6 -0
  333. package/mobile/lib/ui-kit/Button/SubmitButton.js.map +1 -0
  334. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
  335. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  336. package/mobile/lib/ui-kit/ControlStateProps.d.ts +0 -1
  337. package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js +3 -3
  338. package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js.map +1 -1
  339. package/mobile/lib/ui-kit/DraftDialog/utils.d.ts +11 -1
  340. package/mobile/lib/ui-kit/DraftDialog/utils.js +12 -2
  341. package/mobile/lib/ui-kit/DraftDialog/utils.js.map +1 -1
  342. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
  343. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +5 -11
  344. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  345. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +2 -1
  346. package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
  347. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  348. package/mobile/lib/ui-kit/Icon/Icon.js +16 -11
  349. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  350. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +12 -0
  351. package/mobile/lib/ui-kit/Icon/RoundedIcon.js +1 -1
  352. package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  353. package/mobile/lib/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  354. package/mobile/lib/ui-kit/Icon/ToggleIcon.js +5 -0
  355. package/mobile/lib/ui-kit/Icon/ToggleIcon.js.map +1 -0
  356. package/mobile/lib/ui-kit/Input/InputPopup.d.ts +2 -1
  357. package/mobile/lib/ui-kit/Input/InputPopup.js +29 -1
  358. package/mobile/lib/ui-kit/Input/InputPopup.js.map +1 -1
  359. package/mobile/lib/ui-kit/Input/useInputPopup.js +4 -3
  360. package/mobile/lib/ui-kit/Input/useInputPopup.js.map +1 -1
  361. package/mobile/lib/ui-kit/Loader/Loader.js +1 -1
  362. package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
  363. package/mobile/lib/ui-kit/Sitemap/Sitemap.js +15 -3
  364. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  365. package/mobile/src/api/RetailAPI/doRequest.ts +6 -0
  366. package/mobile/src/api/RetailAPI/getGenderFromName.ts +7 -10
  367. package/mobile/src/api/RetailAPI/getTraceId.ts +6 -0
  368. package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +5 -2
  369. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -2
  370. package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +3 -4
  371. package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -3
  372. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +19 -27
  373. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +3 -2
  374. package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
  375. package/mobile/src/components/Depository/DepositoryItem.tsx +2 -2
  376. package/mobile/src/components/OfficesAtmsMap/FiltrationForm.tsx +17 -29
  377. package/mobile/src/components/OfficesAtmsMap/FoldableCardContent.tsx +14 -5
  378. package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +5 -6
  379. package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +0 -1
  380. package/mobile/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +0 -1
  381. package/mobile/src/components/RollupItem/RollupItem.tsx +14 -61
  382. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
  383. package/mobile/src/components/TariffsTable/TariffsTable.tsx +2 -2
  384. package/mobile/src/ui-kit/BaseFiltration/GridBlocks.tsx +5 -5
  385. package/mobile/src/ui-kit/Button/Button.tsx +60 -44
  386. package/mobile/src/ui-kit/Button/ButtonTitle.tsx +17 -0
  387. package/mobile/src/ui-kit/Button/SubmitButton.tsx +14 -0
  388. package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -8
  389. package/mobile/src/ui-kit/ControlStateProps.ts +0 -1
  390. package/mobile/src/ui-kit/DraftDialog/parseDraftTask.ts +4 -2
  391. package/mobile/src/ui-kit/DraftDialog/utils.ts +18 -3
  392. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +16 -51
  393. package/mobile/src/ui-kit/Foldable/Foldable.tsx +4 -3
  394. package/mobile/src/ui-kit/Icon/Icon.tsx +21 -15
  395. package/mobile/src/ui-kit/Icon/IconProps.ts +13 -0
  396. package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +1 -1
  397. package/mobile/src/ui-kit/Icon/ToggleIcon.tsx +11 -0
  398. package/mobile/src/ui-kit/Input/InputPopup.tsx +52 -18
  399. package/mobile/src/ui-kit/Input/useInputPopup.tsx +11 -3
  400. package/mobile/src/ui-kit/Loader/Loader.tsx +1 -1
  401. package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +40 -8
  402. package/package.json +1 -1
  403. package/src/api/RetailAPI/doRequest.ts +6 -0
  404. package/src/api/RetailAPI/getGenderFromName.ts +7 -10
  405. package/src/api/RetailAPI/getTraceId.ts +6 -0
  406. package/src/components/ApplicationForm/renderAgreementSubmit.tsx +5 -2
  407. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -2
  408. package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +3 -4
  409. package/src/components/CardTransfer/CardTransfer.tsx +3 -3
  410. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +19 -27
  411. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +3 -2
  412. package/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
  413. package/src/components/Depository/DepositoryItem.tsx +2 -2
  414. package/src/components/OfficesAtmsMap/FiltrationForm.tsx +17 -29
  415. package/src/components/OfficesAtmsMap/FoldableCardContent.tsx +14 -5
  416. package/src/components/OfficesAtmsMap/renderAtmCard.tsx +5 -6
  417. package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +0 -1
  418. package/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +0 -1
  419. package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +1 -12
  420. package/src/components/RollupItem/RollupItem.tsx +14 -61
  421. package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
  422. package/src/components/TariffsTable/TariffsTable.tsx +2 -2
  423. package/src/ui-kit/BaseFiltration/GridBlocks.tsx +5 -5
  424. package/src/ui-kit/Button/Button.fixture.tsx +0 -8
  425. package/src/ui-kit/Button/Button.tsx +60 -44
  426. package/src/ui-kit/Button/ButtonTitle.tsx +17 -0
  427. package/src/ui-kit/Button/SubmitButton.tsx +14 -0
  428. package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -8
  429. package/src/ui-kit/ControlStateProps.ts +0 -1
  430. package/src/ui-kit/DraftDialog/parseDraftTask.ts +4 -2
  431. package/src/ui-kit/DraftDialog/utils.ts +18 -3
  432. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +16 -51
  433. package/src/ui-kit/Foldable/Foldable.tsx +4 -3
  434. package/src/ui-kit/Icon/Icon.tsx +21 -15
  435. package/src/ui-kit/Icon/IconProps.ts +13 -0
  436. package/src/ui-kit/Icon/RoundedIcon.tsx +1 -1
  437. package/src/ui-kit/Icon/ToggleIcon.tsx +11 -0
  438. package/src/ui-kit/Input/InputPopup.tsx +52 -18
  439. package/src/ui-kit/Input/useInputPopup.tsx +11 -3
  440. package/src/ui-kit/Loader/Loader.tsx +1 -1
  441. package/src/ui-kit/Sitemap/Sitemap.mobile.tsx +40 -8
  442. package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  443. package/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  444. package/bundle/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  445. package/bundle/components/RollupItem/getIconName.d.ts +0 -1
  446. package/bundle/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  447. package/bundle/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
  448. package/bundle/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
  449. package/bundle/ui-kit/Button/IconButton.d.ts +0 -10
  450. package/bundle/ui-kit/Button/useButton.d.ts +0 -2
  451. package/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  452. package/dist/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  453. package/dist/components/ApplicationForm/renderSubmitButton.js +0 -8
  454. package/dist/components/ApplicationForm/renderSubmitButton.js.map +0 -1
  455. package/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  456. package/dist/components/OfficesAtmsMap/renderFoldButton.js +0 -7
  457. package/dist/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
  458. package/dist/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  459. package/dist/components/RollupItem/AccordionFoldButton.js +0 -11
  460. package/dist/components/RollupItem/AccordionFoldButton.js.map +0 -1
  461. package/dist/components/RollupItem/getIconName.d.ts +0 -1
  462. package/dist/components/RollupItem/getIconName.js +0 -7
  463. package/dist/components/RollupItem/getIconName.js.map +0 -1
  464. package/dist/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  465. package/dist/components/RollupItem/renderRoundedIcon.js +0 -6
  466. package/dist/components/RollupItem/renderRoundedIcon.js.map +0 -1
  467. package/dist/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
  468. package/dist/components/RollupItem/renderRoundedIcon.mobile.js +0 -7
  469. package/dist/components/RollupItem/renderRoundedIcon.mobile.js.map +0 -1
  470. package/dist/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
  471. package/dist/components/RollupItem/rollupIconVersion.mobile.js +0 -4
  472. package/dist/components/RollupItem/rollupIconVersion.mobile.js.map +0 -1
  473. package/dist/ui-kit/Button/IconButton.d.ts +0 -10
  474. package/dist/ui-kit/Button/IconButton.js +0 -13
  475. package/dist/ui-kit/Button/IconButton.js.map +0 -1
  476. package/dist/ui-kit/Button/useButton.d.ts +0 -2
  477. package/dist/ui-kit/Button/useButton.js +0 -16
  478. package/dist/ui-kit/Button/useButton.js.map +0 -1
  479. package/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  480. package/dist/ui-kit/TextWithIcon/TextWithIcon.js +0 -10
  481. package/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
  482. package/lib/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  483. package/lib/components/ApplicationForm/renderSubmitButton.js +0 -5
  484. package/lib/components/ApplicationForm/renderSubmitButton.js.map +0 -1
  485. package/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  486. package/lib/components/OfficesAtmsMap/renderFoldButton.js +0 -4
  487. package/lib/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
  488. package/lib/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  489. package/lib/components/RollupItem/AccordionFoldButton.js +0 -9
  490. package/lib/components/RollupItem/AccordionFoldButton.js.map +0 -1
  491. package/lib/components/RollupItem/getIconName.d.ts +0 -1
  492. package/lib/components/RollupItem/getIconName.js +0 -4
  493. package/lib/components/RollupItem/getIconName.js.map +0 -1
  494. package/lib/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  495. package/lib/components/RollupItem/renderRoundedIcon.js +0 -3
  496. package/lib/components/RollupItem/renderRoundedIcon.js.map +0 -1
  497. package/lib/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
  498. package/lib/components/RollupItem/renderRoundedIcon.mobile.js +0 -4
  499. package/lib/components/RollupItem/renderRoundedIcon.mobile.js.map +0 -1
  500. package/lib/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
  501. package/lib/components/RollupItem/rollupIconVersion.mobile.js +0 -2
  502. package/lib/components/RollupItem/rollupIconVersion.mobile.js.map +0 -1
  503. package/lib/ui-kit/Button/IconButton.d.ts +0 -10
  504. package/lib/ui-kit/Button/IconButton.js +0 -11
  505. package/lib/ui-kit/Button/IconButton.js.map +0 -1
  506. package/lib/ui-kit/Button/useButton.d.ts +0 -2
  507. package/lib/ui-kit/Button/useButton.js +0 -13
  508. package/lib/ui-kit/Button/useButton.js.map +0 -1
  509. package/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  510. package/lib/ui-kit/TextWithIcon/TextWithIcon.js +0 -8
  511. package/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
  512. package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  513. package/mobile/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  514. package/mobile/bundle/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  515. package/mobile/bundle/components/RollupItem/getIconName.d.ts +0 -1
  516. package/mobile/bundle/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  517. package/mobile/bundle/ui-kit/Button/IconButton.d.ts +0 -10
  518. package/mobile/bundle/ui-kit/Button/useButton.d.ts +0 -2
  519. package/mobile/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  520. package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  521. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +0 -8
  522. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +0 -1
  523. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  524. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js +0 -7
  525. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
  526. package/mobile/dist/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  527. package/mobile/dist/components/RollupItem/AccordionFoldButton.js +0 -11
  528. package/mobile/dist/components/RollupItem/AccordionFoldButton.js.map +0 -1
  529. package/mobile/dist/components/RollupItem/getIconName.d.ts +0 -1
  530. package/mobile/dist/components/RollupItem/getIconName.js +0 -7
  531. package/mobile/dist/components/RollupItem/getIconName.js.map +0 -1
  532. package/mobile/dist/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  533. package/mobile/dist/components/RollupItem/renderRoundedIcon.js +0 -7
  534. package/mobile/dist/components/RollupItem/renderRoundedIcon.js.map +0 -1
  535. package/mobile/dist/ui-kit/Button/IconButton.d.ts +0 -10
  536. package/mobile/dist/ui-kit/Button/IconButton.js +0 -13
  537. package/mobile/dist/ui-kit/Button/IconButton.js.map +0 -1
  538. package/mobile/dist/ui-kit/Button/useButton.d.ts +0 -2
  539. package/mobile/dist/ui-kit/Button/useButton.js +0 -16
  540. package/mobile/dist/ui-kit/Button/useButton.js.map +0 -1
  541. package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  542. package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js +0 -10
  543. package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
  544. package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  545. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +0 -5
  546. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +0 -1
  547. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  548. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js +0 -4
  549. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
  550. package/mobile/lib/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  551. package/mobile/lib/components/RollupItem/AccordionFoldButton.js +0 -9
  552. package/mobile/lib/components/RollupItem/AccordionFoldButton.js.map +0 -1
  553. package/mobile/lib/components/RollupItem/getIconName.d.ts +0 -1
  554. package/mobile/lib/components/RollupItem/getIconName.js +0 -4
  555. package/mobile/lib/components/RollupItem/getIconName.js.map +0 -1
  556. package/mobile/lib/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  557. package/mobile/lib/components/RollupItem/renderRoundedIcon.js +0 -4
  558. package/mobile/lib/components/RollupItem/renderRoundedIcon.js.map +0 -1
  559. package/mobile/lib/ui-kit/Button/IconButton.d.ts +0 -10
  560. package/mobile/lib/ui-kit/Button/IconButton.js +0 -11
  561. package/mobile/lib/ui-kit/Button/IconButton.js.map +0 -1
  562. package/mobile/lib/ui-kit/Button/useButton.d.ts +0 -2
  563. package/mobile/lib/ui-kit/Button/useButton.js +0 -13
  564. package/mobile/lib/ui-kit/Button/useButton.js.map +0 -1
  565. package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  566. package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js +0 -8
  567. package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
  568. package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +0 -9
  569. package/mobile/src/components/OfficesAtmsMap/renderFoldButton.tsx +0 -12
  570. package/mobile/src/components/RollupItem/AccordionFoldButton.tsx +0 -41
  571. package/mobile/src/components/RollupItem/getIconName.tsx +0 -6
  572. package/mobile/src/components/RollupItem/renderRoundedIcon.tsx +0 -7
  573. package/mobile/src/ui-kit/Button/IconButton.tsx +0 -36
  574. package/mobile/src/ui-kit/Button/useButton.ts +0 -16
  575. package/mobile/src/ui-kit/TextWithIcon/TextWithIcon.tsx +0 -37
  576. package/src/components/ApplicationForm/renderSubmitButton.tsx +0 -9
  577. package/src/components/OfficesAtmsMap/renderFoldButton.tsx +0 -12
  578. package/src/components/RollupItem/AccordionFoldButton.tsx +0 -41
  579. package/src/components/RollupItem/getIconName.tsx +0 -6
  580. package/src/components/RollupItem/renderRoundedIcon.mobile.tsx +0 -7
  581. package/src/components/RollupItem/renderRoundedIcon.tsx +0 -5
  582. package/src/components/RollupItem/rollupIconVersion.mobile.tsx +0 -1
  583. package/src/ui-kit/Button/IconButton.tsx +0 -36
  584. package/src/ui-kit/Button/useButton.ts +0 -16
  585. package/src/ui-kit/TextWithIcon/TextWithIcon.tsx +0 -37
@@ -1,59 +1,24 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { type ColorPalette } from '../../model/ContentPageBase';
3
2
  import { style } from '../../utils/style';
4
- import { type IconName } from '../Icon/IconProps';
5
- import { Img } from '../Img/Img';
6
- import { Text } from '../Text/Text';
7
- import { TextWithIcon } from '../TextWithIcon/TextWithIcon';
8
- import { type FoldablePartProps } from './FoldablePartProps';
3
+ import { Button, type ButtonProps } from '../Button/Button';
4
+ import { ButtonTitle } from '../Button/ButtonTitle';
5
+ import { ToggleIcon } from '../Icon/ToggleIcon';
9
6
 
10
- interface DefaultFoldButtonProps {
11
- className?: string;
12
- label: string;
13
- icon: IconName;
14
- dataTheme?: ColorPalette;
15
- disabled?: boolean;
16
- onClick?: () => void;
7
+ interface DefaultFoldButtonProps extends ButtonProps {
8
+ isUnfolded?: boolean;
9
+ label?: string;
17
10
  }
18
11
 
19
12
  export const DefaultFoldButton = JSX<DefaultFoldButtonProps>(
20
- ({ className = '', label, icon, dataTheme = 'pc', disabled = false, onClick }) => (
21
- <TextWithIcon
22
- tag="button"
23
- onClick={onClick}
24
- disabled={disabled}
25
- data-theme={dataTheme}
26
- justifyContent="center"
27
- role="button"
28
- className={style(
29
- 'py-4 border border-transparent outline-none focus:border-primary-text space-x-s',
30
- disabled
31
- ? 'bg-main-divider text-main-disabled hover:bg-main-divider'
32
- : 'bg-primary-main text-white hover:bg-primary-hove',
33
- className,
34
- )}
35
- textNode={<Text size="text-h4">{label}</Text>}
36
- iconNode={
37
- icon ? (
38
- <Img
39
- image={{
40
- icon,
41
- iconVersion: 'white',
42
- }}
43
- className="my-auto"
44
- width="20"
45
- height="20"
46
- />
47
- ) : null
48
- }
49
- />
13
+ ({ className, isUnfolded, label = isUnfolded ? 'Скрыть' : 'Развернуть', embedded, ...rest }) => (
14
+ <Button
15
+ className={style({ 'text-h4': !embedded }, className)}
16
+ rounded={false}
17
+ embedded={embedded}
18
+ {...rest}
19
+ >
20
+ <ButtonTitle>{label}</ButtonTitle>
21
+ <ToggleIcon isUnfolded={isUnfolded} iconVersion={embedded ? 'color' : ''} />
22
+ </Button>
50
23
  ),
51
24
  );
52
-
53
- export const renderDefaultFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps) => (
54
- <DefaultFoldButton
55
- icon={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
56
- label={isUnfolded ? 'Скрыть' : 'Развернуть'}
57
- onClick={onToggle}
58
- />
59
- );
@@ -1,13 +1,14 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { style } from '../../utils/style';
3
+ import { type ARIAProps } from '../ARIAProps';
3
4
 
4
- export interface FoldableProps {
5
+ export interface FoldableProps extends ARIAProps {
5
6
  className?: string;
6
7
  }
7
8
 
8
9
  // TODO Не особо полезно, в итоге
9
- export const Foldable = JSX<FoldableProps>(({ className, children }) => (
10
- <div className={style(className)} role="group">
10
+ export const Foldable = JSX<FoldableProps>(({ className, role = 'group', children }) => (
11
+ <div className={style(className)} role={role}>
11
12
  {children}
12
13
  </div>
13
14
  ));
@@ -8,7 +8,7 @@ import { style } from '../../utils/style';
8
8
  import { joinPath } from '../../utils/url';
9
9
  import { type IconProps } from './IconProps';
10
10
 
11
- const svgUseStyleMap: Record<IconVersion, string> = {
11
+ const iconVersionStyle: Record<IconVersion, string> = {
12
12
  '': '',
13
13
  normal: '',
14
14
  color: 'text-primary-main',
@@ -17,6 +17,13 @@ const svgUseStyleMap: Record<IconVersion, string> = {
17
17
  gray: 'text-gray',
18
18
  };
19
19
 
20
+ const sizeStyle: Record<NonNullable<IconProps['size']>, string> = {
21
+ small: '16',
22
+ medium: '24',
23
+ large: '48',
24
+ xl: '78',
25
+ };
26
+
20
27
  export const Icon = JSX<IconProps>(
21
28
  ({
22
29
  className = '',
@@ -25,24 +32,26 @@ export const Icon = JSX<IconProps>(
25
32
  alt = `Иконка ${name}`,
26
33
  title = alt,
27
34
  iconVersion = 'color',
28
- width,
29
- height,
35
+ size,
36
+ width = size && sizeStyle[size],
37
+ height = width,
30
38
  }) => {
31
39
  const router = useRouter();
32
40
  const iconName = iconVersion === 'normal' ? `${name}.svg` : `sprites.svg#${name}`;
33
41
  const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons/', iconName));
42
+
34
43
  if (iconVersion === 'normal') {
35
44
  // fix svg gradient color
36
45
  return (
37
46
  <img
38
47
  className={className}
48
+ style={getInlineStyle(className, height)}
39
49
  src={href}
40
50
  alt={alt}
41
51
  title={title}
42
52
  aria-hidden="true"
43
53
  width={width}
44
54
  height={height}
45
- style={getInlineStyle(className, height)}
46
55
  />
47
56
  );
48
57
  }
@@ -51,9 +60,9 @@ export const Icon = JSX<IconProps>(
51
60
  <Background className={className}>
52
61
  <svg
53
62
  className={style(
54
- getSvgSize(width),
55
- svgUseStyleMap[iconVersion],
63
+ iconVersionStyle[iconVersion],
56
64
  {
65
+ 'w-full h-full': !width,
57
66
  invert: iconVersion === 'white',
58
67
  },
59
68
  imageClassName,
@@ -71,16 +80,13 @@ export const Icon = JSX<IconProps>(
71
80
  },
72
81
  );
73
82
 
74
- const getInlineStyle = (className?: string, height?: string) => {
75
- if (className?.includes('h-')) {
76
- return {};
77
- }
78
-
79
- return { height: isOnlyDigits(height) ? `${height}px` : height, width: 'auto' };
80
- };
81
-
82
- const getSvgSize = (width?: string) => (width ? '' : 'w-full h-full');
83
+ // TODO Что то совсем не очень
84
+ const getInlineStyle = (className?: string, height?: string) =>
85
+ className?.includes('h-')
86
+ ? {}
87
+ : { height: isOnlyDigits(height) ? `${height}px` : height, width: 'auto' };
83
88
 
89
+ // TODO И это тоже
84
90
  const Background = JSX<{ className?: string }>(({ className, children }) =>
85
91
  className ? (
86
92
  <div role="img" className={className}>
@@ -14,11 +14,24 @@ export type { IconName };
14
14
  */
15
15
  export type IconBgVersion = '' | 'primary' | 'secondary' | 'opacity';
16
16
 
17
+ /**
18
+ * @title Размер иконки
19
+ * @enumNames [
20
+ * "Мелкая",
21
+ * "Средняя",
22
+ * "Большая",
23
+ * "Гигантская"
24
+ * ]
25
+ */
26
+ export type IconSize = 'small' | 'medium' | 'large' | 'xl';
27
+
17
28
  export interface IconCompatibilityFields {
18
29
  /** @title Альтернативный текст (alt) */
19
30
  alt?: string;
20
31
  /** @title Текст подсказки (title) */
21
32
  title?: string;
33
+ /** @title Размер */
34
+ size?: IconSize;
22
35
  /** @title Ширина */
23
36
  width?: string;
24
37
  /** @title Высота */
@@ -32,7 +32,7 @@ export const RoundedIcon = JSX<RoundedIconProps>(
32
32
  className,
33
33
  )}
34
34
  >
35
- <Icon {...rest} width="54%" height="54%" name={icon} />
35
+ <Icon {...rest} width="54%" name={icon} />
36
36
  </div>
37
37
  ) : null;
38
38
  },
@@ -0,0 +1,11 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { Icon } from './Icon';
3
+ import { type IconProps } from './IconProps';
4
+
5
+ interface ToggleIconProps extends IconProps {
6
+ isUnfolded?: boolean;
7
+ }
8
+
9
+ export const ToggleIcon = JSX<ToggleIconProps>(({ isUnfolded, ...rest }) => (
10
+ <Icon name={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'} size="small" iconVersion="" {...rest} />
11
+ ));
@@ -1,26 +1,60 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
2
3
  import { type DaDataSuggestion } from '../../api/dadataHints/dadataHintsType';
4
+ import { style } from '../../utils/style';
5
+ import { type PreventableEventWithTarget } from '../PreventableEvent';
3
6
 
4
7
  export interface InputPopupProps {
5
- options?: Array<DaDataSuggestion>;
8
+ options: Array<DaDataSuggestion>;
9
+ container: HTMLDivElement;
6
10
  onChange: (e: DaDataSuggestion) => void;
7
11
  value?: string;
8
12
  }
9
13
 
10
- export const InputPopup = JSX<InputPopupProps>(({ options, onChange }) => (
11
- <div
12
- className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl"
13
- role="list"
14
- >
15
- {options?.map((item, key) => (
16
- <div
17
- key={key.toString()}
18
- className="flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative"
19
- role="listitem"
20
- onMouseDown={() => onChange(item)}
21
- >
22
- <span className="min-h-6">{item.processedValue}</span>
23
- </div>
24
- ))}
25
- </div>
26
- ));
14
+ const ARROW_DOWN_KEYBOARD_KEY_CODE = 'ArrowDown';
15
+ const ARROW_UP_KEYBOARD_KEY_CODE = 'ArrowUp';
16
+ const ENTER_KEYBOARD_KEY_CODE = 'Enter';
17
+ const INITIAL_LIST_ITEM_ACTIVE = -1;
18
+
19
+ export const InputPopup = JSX<InputPopupProps>(({ options, container, onChange }) => {
20
+ const [listItemActive, setListItemActive] = useState<number>(INITIAL_LIST_ITEM_ACTIVE);
21
+
22
+ const onKeyDownHandler = (ev: PreventableEventWithTarget & { key: string }): void => {
23
+ const hintsListMaxIndex = options.length - 1;
24
+
25
+ if (ev.key === ARROW_DOWN_KEYBOARD_KEY_CODE) {
26
+ setListItemActive(listItemActive < hintsListMaxIndex ? listItemActive + 1 : 0);
27
+ } else if (ev.key === ARROW_UP_KEYBOARD_KEY_CODE) {
28
+ setListItemActive(listItemActive > 0 ? listItemActive - 1 : hintsListMaxIndex);
29
+ } else if (ev.key === ENTER_KEYBOARD_KEY_CODE && options[listItemActive]) {
30
+ ev.preventDefault();
31
+ onChange(options[listItemActive]);
32
+ }
33
+ };
34
+
35
+ useEffect(() => {
36
+ container.addEventListener('keydown', onKeyDownHandler);
37
+
38
+ return () => container.removeEventListener('keydown', onKeyDownHandler);
39
+ }, [listItemActive]);
40
+
41
+ return (
42
+ <div
43
+ className="bg-white text-l overflow-y-auto overflow-x-hidden rounded-md shadow-2xl"
44
+ role="list"
45
+ >
46
+ {options?.map((item, key) => (
47
+ <div
48
+ key={key.toString()}
49
+ className={style('flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative', {
50
+ 'bg-main-divider': listItemActive === key,
51
+ })}
52
+ role="listitem"
53
+ onMouseDown={() => onChange(item)}
54
+ >
55
+ <span className="min-h-6">{item.processedValue}</span>
56
+ </div>
57
+ ))}
58
+ </div>
59
+ );
60
+ });
@@ -15,6 +15,7 @@ interface InputPopupOptions {
15
15
  onDaDataChange?: (e: DaDataSuggestion) => void;
16
16
  }
17
17
 
18
+ // eslint-disable-next-line max-lines-per-function
18
19
  export function useInputPopup({
19
20
  isOpen,
20
21
  value,
@@ -39,8 +40,8 @@ export function useInputPopup({
39
40
  (option: DaDataSuggestion) => {
40
41
  close();
41
42
  currentInputValue.current = option.processedValue;
42
- onChange && onChange(option.processedValue);
43
- onDaDataChange && onDaDataChange(option);
43
+ onChange?.(option.processedValue);
44
+ onDaDataChange?.(option);
44
45
  },
45
46
  [close, onChange],
46
47
  );
@@ -87,7 +88,14 @@ export function useInputPopup({
87
88
  }
88
89
 
89
90
  popup.open({
90
- popup: <InputPopup options={hintsList} value={value} onChange={handleChange} />,
91
+ popup: (
92
+ <InputPopup
93
+ options={hintsList}
94
+ container={inputElement}
95
+ value={value}
96
+ onChange={handleChange}
97
+ />
98
+ ),
91
99
  top: top + globalThis.scrollY + height,
92
100
  left,
93
101
  width,
@@ -18,7 +18,7 @@ export const Loader = JSX<LoaderProps>(
18
18
  >
19
19
  <div
20
20
  className={style(
21
- 'inline-block ',
21
+ 'inline-block',
22
22
  'animate-spin rounded-full',
23
23
  'border-solid border-current',
24
24
  'border-r-transparent',
@@ -1,7 +1,15 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
2
3
  import { LinkList } from '../../components/Footer/LinkList';
3
- import { RollupItem } from '../../components/RollupItem/RollupItem';
4
4
  import { type TopMenuItemProps } from '../../data/NavigationData';
5
+ import { style } from '../../utils/style';
6
+ import { Button } from '../Button/Button';
7
+ import { ButtonTitle } from '../Button/ButtonTitle';
8
+ import { Foldable } from '../Foldable/Foldable';
9
+ import { FoldableSection } from '../Foldable/FoldableSection';
10
+ import { RoundedIcon } from '../Icon/RoundedIcon';
11
+ import { ToggleIcon } from '../Icon/ToggleIcon';
12
+ import { Text } from '../Text/Text';
5
13
  import { type SitemapProps } from './SitemapProps';
6
14
 
7
15
  export const Sitemap = JSX<SitemapProps>(({ navigationItems }) => (
@@ -14,13 +22,37 @@ const renderTopItems = (topItems: TopMenuItemProps[] | undefined) =>
14
22
  topItems
15
23
  ?.filter((_) => _.icon?.icon)
16
24
  .map((item, i) => (
17
- <RollupItem
25
+ <MobileTopItem
18
26
  key={String(i)}
19
- foldButtonVersion="accordion"
20
- label={item?.text}
21
- labelIcon={item?.icon}
22
- role="menuitem"
27
+ className="w-full border-0 border-b border-solid border-main-divider last:border-b-0"
28
+ item={item}
29
+ />
30
+ ));
31
+
32
+ const MobileTopItem = JSX<{ className?: string; item: TopMenuItemProps }>(({ className, item }) => {
33
+ const [isUnfolded, { toggle }] = useBool(false);
34
+
35
+ return (
36
+ <Foldable className={className} role="menuitem">
37
+ <Button
38
+ className={style('w-full', item.icon?.icon ? 'py-xs' : 'py-lg')}
39
+ embedded
40
+ onClick={toggle}
41
+ >
42
+ <ButtonTitle>
43
+ <RoundedIcon className="shrink-0" {...item.icon} />
44
+ <Text size="text-h6" font="font-normal">
45
+ {item.text}
46
+ </Text>
47
+ </ButtonTitle>
48
+ <ToggleIcon iconVersion="color" size="medium" isUnfolded={isUnfolded} />
49
+ </Button>
50
+ <FoldableSection
51
+ className="flex flex-wrap gap-lg group-last:last:pb-0"
52
+ isUnfolded={isUnfolded}
23
53
  >
24
54
  {item.items ? <LinkList items={item.items} /> : null}
25
- </RollupItem>
26
- ));
55
+ </FoldableSection>
56
+ </Foldable>
57
+ );
58
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.751",
3
+ "version": "0.14.753",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -1,4 +1,5 @@
1
1
  import { RETAIL_API_BASE_URI } from '../apiBaseUrl';
2
+ import { getTraceId } from './getTraceId';
2
3
 
3
4
  export const fetchRetailJSON = async <R>(
4
5
  url: string,
@@ -21,10 +22,15 @@ export async function doRequest(
21
22
  method: 'POST' | 'GET' | 'PUT',
22
23
  body?: any,
23
24
  ): Promise<Response> {
25
+ const traceId = getTraceId();
26
+
24
27
  return globalThis?.fetch?.(`${RETAIL_API_BASE_URI}${url}`, {
25
28
  method,
26
29
  headers: {
27
30
  'Content-Type': 'application/json',
31
+ 'X-B3-Sampled': '1',
32
+ 'X-B3-Spanid': traceId,
33
+ 'X-B3-Traceid': traceId,
28
34
  ...getAuthorizationHeaders(),
29
35
  },
30
36
  credentials: 'include',
@@ -1,20 +1,17 @@
1
- import { type DaDataSuggestion } from '../dadataHints/dadataHintsType';
2
- import { fetchRetailJSON } from './doRequest';
1
+ import { getDaDataHints } from '../dadataHints/dadataHints';
3
2
 
4
3
  const GENDERS = ['male', 'female'];
5
4
 
6
5
  export const getGenderFromName = async (name: string): Promise<string> => {
7
- const res = await fetchRetailJSON<{ suggestions: Array<DaDataSuggestion> }>(
8
- '/suggestions/suggest/fio',
9
- 'POST',
10
- {
11
- query: name,
12
- count: 1,
6
+ const res = await getDaDataHints({
7
+ url: '/suggest/fio',
8
+ requestData: {
13
9
  parts: ['NAME'],
14
10
  },
15
- );
11
+ query: name,
12
+ });
16
13
 
17
- const gender = res?.suggestions[0]?.data?.gender?.toLowerCase() || '';
14
+ const gender = res[0]?.data?.gender?.toLowerCase() || '';
18
15
 
19
16
  return GENDERS.includes(gender) ? gender : '';
20
17
  };
@@ -0,0 +1,6 @@
1
+ export const getTraceId = () => {
2
+ const result = new Uint8Array(8);
3
+ globalThis.crypto.getRandomValues(result);
4
+
5
+ return result.reduce((acc, _) => `${acc}${_.toString(16).padStart(2, '0')}`, '');
6
+ };
@@ -1,14 +1,15 @@
1
1
  import { type FieldProps } from '../../hooks/useForm/useForm';
2
2
  import { type LinkProps } from '../../model/LinkProps';
3
+ import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
3
4
  import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
4
5
  import { agreementValidator } from '../../ui-kit/FormField/validators';
5
6
  import { renderErrorText } from '../../ui-kit/Input/renderErrorText';
6
7
  import { withValidator } from '../../validation/withValidator';
7
8
  import { type SubmitButtonProps } from './ApplicationFormContent';
8
9
  import { Footnote } from './Footnote';
9
- import { renderSubmitButton } from './renderSubmitButton';
10
10
 
11
11
  const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
12
+
12
13
  export const renderAgreementSubmit = (
13
14
  consentDataProcessing?: FieldProps<boolean>,
14
15
  link?: LinkProps,
@@ -26,6 +27,8 @@ export const renderAgreementSubmit = (
26
27
  ) : (
27
28
  <Footnote text={agreementText} link={link} />
28
29
  )}
29
- {renderSubmitButton(button)}
30
+ <SubmitButton className="w-full @xl:w-auto">
31
+ {button?.text ? button.text : 'Отправить заявку'}
32
+ </SubmitButton>
30
33
  </div>
31
34
  );
@@ -5,12 +5,13 @@ import { type FormFieldRegisterer } from '../../services/retail/external/types';
5
5
  import { InputsConsentsMap } from '../../services/retail/inputs';
6
6
  import { type LeadFormState } from '../../services/retail/model/LeadFormState';
7
7
  import { type FieldRetailDef } from '../../services/retail/model/RetailFormContent';
8
- import { IconButton } from '../../ui-kit/Button/IconButton';
8
+ import { Button } from '../../ui-kit/Button/Button';
9
9
  import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
10
10
  import { Foldable } from '../../ui-kit/Foldable/Foldable';
11
11
  import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
12
12
  import { getField } from '../../ui-kit/FormField/getField';
13
13
  import { validatorObj } from '../../ui-kit/FormField/getObjectValidator';
14
+ import { ToggleIcon } from '../../ui-kit/Icon/ToggleIcon';
14
15
  import { renderErrorText } from '../../ui-kit/Input/renderErrorText';
15
16
  import { withValidator } from '../../validation/withValidator';
16
17
 
@@ -65,7 +66,9 @@ export const GroupedConsents = JSX<GroupedConsentsProps>(({ inputs = [], field,
65
66
  />
66
67
  {renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')}
67
68
  </div>
68
- <IconButton name={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'} onClick={toggle} />
69
+ <Button embedded onClick={toggle}>
70
+ <ToggleIcon className="p-2xs" iconVersion="color" isUnfolded={isUnfolded} />
71
+ </Button>
69
72
  </div>
70
73
  <FoldableSection className="flex flex-col pl-2xl" isUnfolded={isUnfolded}>
71
74
  {inputs.map(getField<FieldRetailDef>(field, {}, InputsConsentsMap))}
@@ -1,9 +1,8 @@
1
- import { Button } from '../../ui-kit/Button/Button';
2
- import { style } from '../../utils/style';
1
+ import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
3
2
  import { type SubmitButtonProps } from './ApplicationLeadFormContent';
4
3
 
5
4
  export const renderSubmitButton = (button?: SubmitButtonProps, isSending?: boolean) => (
6
- <Button className={style('w-full @xl:w-auto')} type="submit" isLoading={isSending}>
5
+ <SubmitButton className="w-full @xl:w-auto" isLoading={isSending}>
7
6
  {button?.text ? button.text : 'Отправить заявку'}
8
- </Button>
7
+ </SubmitButton>
9
8
  );
@@ -3,7 +3,7 @@ import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
4
4
  import { useForm } from '../../hooks/useForm/useForm';
5
5
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
- import { Button } from '../../ui-kit/Button/Button';
6
+ import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
7
7
  import { CurrencyInput } from '../../ui-kit/CurrencyInput/CurrencyInput';
8
8
  import { Heading } from '../../ui-kit/Heading/Heading';
9
9
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
@@ -67,9 +67,9 @@ export const CardTransfer = JSX<CardTransferProps>(
67
67
  />
68
68
  <input type="hidden" name="amount" value={amount} />
69
69
  {button?.text ? (
70
- <Button className="w-full mt-lg" type="submit" disabled={isDisabled}>
70
+ <SubmitButton className="w-full mt-lg" disabled={isDisabled}>
71
71
  {button.text}
72
- </Button>
72
+ </SubmitButton>
73
73
  ) : null}
74
74
  </form>
75
75
  </BlockWrapper>
@@ -1,15 +1,13 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
- import { type AspectsDef } from '../../model/AspectsProps';
2
+ import { useCallback, useEffect, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
4
3
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
- import { IconButton } from '../../ui-kit/Button/IconButton';
4
+ import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
6
5
  import { Foldable } from '../../ui-kit/Foldable/Foldable';
7
6
  import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
8
7
  import { Heading } from '../../ui-kit/Heading/Heading';
9
8
  import { Img } from '../../ui-kit/Img/Img';
10
9
  import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
11
10
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
12
- import { isIcon } from '../../utils/isIcon';
13
11
  import { style } from '../../utils/style';
14
12
  import { type CarouselTariffsCardContent } from './CarouselTariffsCardContent';
15
13
  import { carouselTariffsCardEventBus } from './carouselTariffsCardEventBus';
@@ -30,12 +28,15 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
30
28
  data,
31
29
  ...rest
32
30
  }) => {
33
- const cellsNode = cardCells.map(renderCardInfo);
31
+ const cellsNode = useMemo(() => cardCells.map(renderCardInfo), [cardCells]);
32
+ const [visibleCells, hiddenCells] = useMemo(
33
+ () =>
34
+ visibleCellsCount > 0
35
+ ? [cellsNode.slice(0, visibleCellsCount), cellsNode.slice(visibleCellsCount)]
36
+ : [cellsNode, []],
37
+ [visibleCellsCount, cellsNode],
38
+ );
34
39
 
35
- const [visibleCells, hiddenCells] =
36
- visibleCellsCount > 0
37
- ? [cellsNode.slice(0, visibleCellsCount), cellsNode.slice(visibleCellsCount)]
38
- : [cellsNode, []];
39
40
  const [isVisible, setIsVisible] = useState(false);
40
41
 
41
42
  useEffect(
@@ -58,11 +59,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
58
59
 
59
60
  return (
60
61
  <BlockWrapper className={style('flex flex-col', className)} defaultPadding="p-2xl" {...rest}>
61
- {isIcon(icon) ? (
62
- <div className="self-center">
63
- <Img image={icon} />
64
- </div>
65
- ) : null}
62
+ <Img className="self-center" image={icon} />
66
63
  {title ? (
67
64
  <Heading className={style('pt-xs', align)} headingType="h5" title={title} />
68
65
  ) : null}
@@ -74,7 +71,14 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
74
71
  <FoldableSection isUnfolded={isVisible}>{hiddenCells}</FoldableSection>
75
72
  </div>
76
73
  {cardCells.length >= visibleCellsCount ? (
77
- <FoldButton isUnfolded={isVisible} data={data} onClick={handleFold} />
74
+ <DefaultFoldButton
75
+ className="w-full mt-m"
76
+ label={isVisible ? 'Скрыть' : 'Подробнее о тарифе'}
77
+ isUnfolded={isVisible}
78
+ embedded
79
+ data={data}
80
+ onClick={handleFold}
81
+ />
78
82
  ) : null}
79
83
  </Foldable>
80
84
  ) : (
@@ -84,15 +88,3 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
84
88
  );
85
89
  },
86
90
  );
87
-
88
- const FoldButton = JSX<{ isUnfolded?: boolean; data?: AspectsDef[]; onClick?: () => void }>(
89
- ({ data, isUnfolded, onClick }) => (
90
- <IconButton
91
- className="w-full"
92
- {...(isUnfolded
93
- ? { name: 'ArrowUpIcon', text: 'Скрыть', data }
94
- : { name: 'ArrowDownIcon', text: 'Подробнее о тарифе' })}
95
- onClick={onClick}
96
- />
97
- ),
98
- );