@redneckz/wildless-cms-uni-blocks 0.14.752 → 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 (559) hide show
  1. package/bundle/api/RetailAPI/getTraceId.d.ts +1 -0
  2. package/bundle/bundle.umd.js +116 -130
  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/Foldable/DefaultFoldButton.d.ts +4 -11
  11. package/bundle/ui-kit/Foldable/Foldable.d.ts +2 -1
  12. package/bundle/ui-kit/Icon/IconProps.d.ts +12 -0
  13. package/bundle/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  14. package/bundle/ui-kit/Input/InputPopup.d.ts +2 -1
  15. package/dist/api/RetailAPI/doRequest.js +5 -0
  16. package/dist/api/RetailAPI/doRequest.js.map +1 -1
  17. package/dist/api/RetailAPI/getGenderFromName.js +7 -5
  18. package/dist/api/RetailAPI/getGenderFromName.js.map +1 -1
  19. package/dist/api/RetailAPI/getTraceId.d.ts +1 -0
  20. package/dist/api/RetailAPI/getTraceId.js +9 -0
  21. package/dist/api/RetailAPI/getTraceId.js.map +1 -0
  22. package/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -2
  23. package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  24. package/dist/components/ApplicationLeadForm/GroupedConsents.js +3 -2
  25. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  26. package/dist/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
  27. package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  28. package/dist/components/CardTransfer/CardTransfer.js +2 -2
  29. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  30. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
  31. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  32. package/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -1
  33. package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  34. package/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
  35. package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  36. package/dist/components/Depository/DepositoryItem.js +2 -2
  37. package/dist/components/Depository/DepositoryItem.js.map +1 -1
  38. package/dist/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
  39. package/dist/components/OfficesAtmsMap/FiltrationForm.js +5 -6
  40. package/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  41. package/dist/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
  42. package/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  43. package/dist/components/OfficesAtmsMap/renderAtmCard.js +1 -2
  44. package/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  45. package/dist/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  46. package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  47. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
  48. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  49. package/dist/components/RollupItem/RollupItem.d.ts +0 -4
  50. package/dist/components/RollupItem/RollupItem.js +4 -20
  51. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  52. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  53. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  54. package/dist/components/TariffsTable/TariffsTable.js +1 -1
  55. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  56. package/dist/ui-kit/BaseFiltration/GridBlocks.js +2 -2
  57. package/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  58. package/dist/ui-kit/Button/Button.d.ts +7 -3
  59. package/dist/ui-kit/Button/Button.js +15 -17
  60. package/dist/ui-kit/Button/Button.js.map +1 -1
  61. package/dist/ui-kit/Button/ButtonTitle.d.ts +5 -0
  62. package/dist/ui-kit/Button/ButtonTitle.js +7 -0
  63. package/dist/ui-kit/Button/ButtonTitle.js.map +1 -0
  64. package/dist/ui-kit/Button/SubmitButton.d.ts +5 -0
  65. package/dist/ui-kit/Button/SubmitButton.js +8 -0
  66. package/dist/ui-kit/Button/SubmitButton.js.map +1 -0
  67. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
  68. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  69. package/dist/ui-kit/ControlStateProps.d.ts +0 -1
  70. package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
  71. package/dist/ui-kit/Foldable/DefaultFoldButton.js +5 -12
  72. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  73. package/dist/ui-kit/Foldable/Foldable.d.ts +2 -1
  74. package/dist/ui-kit/Foldable/Foldable.js +1 -1
  75. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  76. package/dist/ui-kit/Icon/Icon.js +16 -11
  77. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  78. package/dist/ui-kit/Icon/IconProps.d.ts +12 -0
  79. package/dist/ui-kit/Icon/RoundedIcon.js +1 -1
  80. package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  81. package/dist/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  82. package/dist/ui-kit/Icon/ToggleIcon.js +7 -0
  83. package/dist/ui-kit/Icon/ToggleIcon.js.map +1 -0
  84. package/dist/ui-kit/Input/InputPopup.d.ts +2 -1
  85. package/dist/ui-kit/Input/InputPopup.js +29 -1
  86. package/dist/ui-kit/Input/InputPopup.js.map +1 -1
  87. package/dist/ui-kit/Input/useInputPopup.js +4 -3
  88. package/dist/ui-kit/Input/useInputPopup.js.map +1 -1
  89. package/dist/ui-kit/Loader/Loader.js +1 -1
  90. package/dist/ui-kit/Loader/Loader.js.map +1 -1
  91. package/dist/ui-kit/Sitemap/Sitemap.mobile.js +14 -2
  92. package/dist/ui-kit/Sitemap/Sitemap.mobile.js.map +1 -1
  93. package/lib/api/RetailAPI/doRequest.js +5 -0
  94. package/lib/api/RetailAPI/doRequest.js.map +1 -1
  95. package/lib/api/RetailAPI/getGenderFromName.js +7 -5
  96. package/lib/api/RetailAPI/getGenderFromName.js.map +1 -1
  97. package/lib/api/RetailAPI/getTraceId.d.ts +1 -0
  98. package/lib/api/RetailAPI/getTraceId.js +6 -0
  99. package/lib/api/RetailAPI/getTraceId.js.map +1 -0
  100. package/lib/common.css +1 -1
  101. package/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -2
  102. package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  103. package/lib/components/ApplicationLeadForm/GroupedConsents.js +3 -2
  104. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  105. package/lib/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
  106. package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  107. package/lib/components/CardTransfer/CardTransfer.js +2 -2
  108. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  109. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
  110. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  111. package/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -1
  112. package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  113. package/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
  114. package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  115. package/lib/components/Depository/DepositoryItem.js +2 -2
  116. package/lib/components/Depository/DepositoryItem.js.map +1 -1
  117. package/lib/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
  118. package/lib/components/OfficesAtmsMap/FiltrationForm.js +4 -4
  119. package/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  120. package/lib/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
  121. package/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  122. package/lib/components/OfficesAtmsMap/renderAtmCard.js +1 -2
  123. package/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  124. package/lib/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  125. package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  126. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
  127. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  128. package/lib/components/RollupItem/RollupItem.d.ts +0 -4
  129. package/lib/components/RollupItem/RollupItem.js +4 -20
  130. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  131. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  132. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  133. package/lib/components/TariffsTable/TariffsTable.js +2 -2
  134. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  135. package/lib/ui-kit/BaseFiltration/GridBlocks.js +2 -2
  136. package/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  137. package/lib/ui-kit/Button/Button.d.ts +7 -3
  138. package/lib/ui-kit/Button/Button.js +16 -18
  139. package/lib/ui-kit/Button/Button.js.map +1 -1
  140. package/lib/ui-kit/Button/ButtonTitle.d.ts +5 -0
  141. package/lib/ui-kit/Button/ButtonTitle.js +5 -0
  142. package/lib/ui-kit/Button/ButtonTitle.js.map +1 -0
  143. package/lib/ui-kit/Button/SubmitButton.d.ts +5 -0
  144. package/lib/ui-kit/Button/SubmitButton.js +6 -0
  145. package/lib/ui-kit/Button/SubmitButton.js.map +1 -0
  146. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
  147. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  148. package/lib/ui-kit/ControlStateProps.d.ts +0 -1
  149. package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
  150. package/lib/ui-kit/Foldable/DefaultFoldButton.js +5 -11
  151. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  152. package/lib/ui-kit/Foldable/Foldable.d.ts +2 -1
  153. package/lib/ui-kit/Foldable/Foldable.js +1 -1
  154. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  155. package/lib/ui-kit/Icon/Icon.js +16 -11
  156. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  157. package/lib/ui-kit/Icon/IconProps.d.ts +12 -0
  158. package/lib/ui-kit/Icon/RoundedIcon.js +1 -1
  159. package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  160. package/lib/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  161. package/lib/ui-kit/Icon/ToggleIcon.js +5 -0
  162. package/lib/ui-kit/Icon/ToggleIcon.js.map +1 -0
  163. package/lib/ui-kit/Input/InputPopup.d.ts +2 -1
  164. package/lib/ui-kit/Input/InputPopup.js +29 -1
  165. package/lib/ui-kit/Input/InputPopup.js.map +1 -1
  166. package/lib/ui-kit/Input/useInputPopup.js +4 -3
  167. package/lib/ui-kit/Input/useInputPopup.js.map +1 -1
  168. package/lib/ui-kit/Loader/Loader.js +1 -1
  169. package/lib/ui-kit/Loader/Loader.js.map +1 -1
  170. package/lib/ui-kit/Sitemap/Sitemap.mobile.js +15 -3
  171. package/lib/ui-kit/Sitemap/Sitemap.mobile.js.map +1 -1
  172. package/mobile/bundle/api/RetailAPI/getTraceId.d.ts +1 -0
  173. package/mobile/bundle/bundle.umd.js +133 -142
  174. package/mobile/bundle/bundle.umd.min.js +1 -1
  175. package/mobile/bundle/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
  176. package/mobile/bundle/components/RollupItem/RollupItem.d.ts +0 -4
  177. package/mobile/bundle/ui-kit/Button/Button.d.ts +7 -3
  178. package/mobile/bundle/ui-kit/Button/ButtonTitle.d.ts +5 -0
  179. package/mobile/bundle/ui-kit/Button/SubmitButton.d.ts +5 -0
  180. package/mobile/bundle/ui-kit/ControlStateProps.d.ts +0 -1
  181. package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
  182. package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +2 -1
  183. package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +12 -0
  184. package/mobile/bundle/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  185. package/mobile/bundle/ui-kit/Input/InputPopup.d.ts +2 -1
  186. package/mobile/dist/api/RetailAPI/doRequest.js +5 -0
  187. package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -1
  188. package/mobile/dist/api/RetailAPI/getGenderFromName.js +7 -5
  189. package/mobile/dist/api/RetailAPI/getGenderFromName.js.map +1 -1
  190. package/mobile/dist/api/RetailAPI/getTraceId.d.ts +1 -0
  191. package/mobile/dist/api/RetailAPI/getTraceId.js +9 -0
  192. package/mobile/dist/api/RetailAPI/getTraceId.js.map +1 -0
  193. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -2
  194. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  195. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +3 -2
  196. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  197. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
  198. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  199. package/mobile/dist/components/CardTransfer/CardTransfer.js +2 -2
  200. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  201. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
  202. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  203. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -1
  204. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  205. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
  206. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  207. package/mobile/dist/components/Depository/DepositoryItem.js +2 -2
  208. package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
  209. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
  210. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js +5 -6
  211. package/mobile/dist/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  212. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
  213. package/mobile/dist/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  214. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js +1 -2
  215. package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  216. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  217. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  218. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
  219. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  220. package/mobile/dist/components/RollupItem/RollupItem.d.ts +0 -4
  221. package/mobile/dist/components/RollupItem/RollupItem.js +4 -20
  222. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  223. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  224. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  225. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
  226. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  227. package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js +2 -2
  228. package/mobile/dist/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  229. package/mobile/dist/ui-kit/Button/Button.d.ts +7 -3
  230. package/mobile/dist/ui-kit/Button/Button.js +15 -17
  231. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  232. package/mobile/dist/ui-kit/Button/ButtonTitle.d.ts +5 -0
  233. package/mobile/dist/ui-kit/Button/ButtonTitle.js +7 -0
  234. package/mobile/dist/ui-kit/Button/ButtonTitle.js.map +1 -0
  235. package/mobile/dist/ui-kit/Button/SubmitButton.d.ts +5 -0
  236. package/mobile/dist/ui-kit/Button/SubmitButton.js +8 -0
  237. package/mobile/dist/ui-kit/Button/SubmitButton.js.map +1 -0
  238. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
  239. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  240. package/mobile/dist/ui-kit/ControlStateProps.d.ts +0 -1
  241. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
  242. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +5 -12
  243. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  244. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +2 -1
  245. package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
  246. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  247. package/mobile/dist/ui-kit/Icon/Icon.js +16 -11
  248. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  249. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +12 -0
  250. package/mobile/dist/ui-kit/Icon/RoundedIcon.js +1 -1
  251. package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
  252. package/mobile/dist/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  253. package/mobile/dist/ui-kit/Icon/ToggleIcon.js +7 -0
  254. package/mobile/dist/ui-kit/Icon/ToggleIcon.js.map +1 -0
  255. package/mobile/dist/ui-kit/Input/InputPopup.d.ts +2 -1
  256. package/mobile/dist/ui-kit/Input/InputPopup.js +29 -1
  257. package/mobile/dist/ui-kit/Input/InputPopup.js.map +1 -1
  258. package/mobile/dist/ui-kit/Input/useInputPopup.js +4 -3
  259. package/mobile/dist/ui-kit/Input/useInputPopup.js.map +1 -1
  260. package/mobile/dist/ui-kit/Loader/Loader.js +1 -1
  261. package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
  262. package/mobile/dist/ui-kit/Sitemap/Sitemap.js +14 -2
  263. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  264. package/mobile/lib/api/RetailAPI/doRequest.js +5 -0
  265. package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -1
  266. package/mobile/lib/api/RetailAPI/getGenderFromName.js +7 -5
  267. package/mobile/lib/api/RetailAPI/getGenderFromName.js.map +1 -1
  268. package/mobile/lib/api/RetailAPI/getTraceId.d.ts +1 -0
  269. package/mobile/lib/api/RetailAPI/getTraceId.js +6 -0
  270. package/mobile/lib/api/RetailAPI/getTraceId.js.map +1 -0
  271. package/mobile/lib/common.css +1 -1
  272. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -2
  273. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  274. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +3 -2
  275. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  276. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +2 -3
  277. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  278. package/mobile/lib/components/CardTransfer/CardTransfer.js +2 -2
  279. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  280. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
  281. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  282. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -1
  283. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  284. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
  285. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  286. package/mobile/lib/components/Depository/DepositoryItem.js +2 -2
  287. package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
  288. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.d.ts +0 -2
  289. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js +4 -4
  290. package/mobile/lib/components/OfficesAtmsMap/FiltrationForm.js.map +1 -1
  291. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js +2 -2
  292. package/mobile/lib/components/OfficesAtmsMap/FoldableCardContent.js.map +1 -1
  293. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js +1 -2
  294. package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
  295. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  296. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  297. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +1 -1
  298. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -1
  299. package/mobile/lib/components/RollupItem/RollupItem.d.ts +0 -4
  300. package/mobile/lib/components/RollupItem/RollupItem.js +4 -20
  301. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  302. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  303. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  304. package/mobile/lib/components/TariffsTable/TariffsTable.js +2 -2
  305. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  306. package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js +2 -2
  307. package/mobile/lib/ui-kit/BaseFiltration/GridBlocks.js.map +1 -1
  308. package/mobile/lib/ui-kit/Button/Button.d.ts +7 -3
  309. package/mobile/lib/ui-kit/Button/Button.js +16 -18
  310. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  311. package/mobile/lib/ui-kit/Button/ButtonTitle.d.ts +5 -0
  312. package/mobile/lib/ui-kit/Button/ButtonTitle.js +5 -0
  313. package/mobile/lib/ui-kit/Button/ButtonTitle.js.map +1 -0
  314. package/mobile/lib/ui-kit/Button/SubmitButton.d.ts +5 -0
  315. package/mobile/lib/ui-kit/Button/SubmitButton.js +6 -0
  316. package/mobile/lib/ui-kit/Button/SubmitButton.js.map +1 -0
  317. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +2 -1
  318. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  319. package/mobile/lib/ui-kit/ControlStateProps.d.ts +0 -1
  320. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +4 -11
  321. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +5 -11
  322. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  323. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +2 -1
  324. package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
  325. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  326. package/mobile/lib/ui-kit/Icon/Icon.js +16 -11
  327. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  328. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +12 -0
  329. package/mobile/lib/ui-kit/Icon/RoundedIcon.js +1 -1
  330. package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
  331. package/mobile/lib/ui-kit/Icon/ToggleIcon.d.ts +6 -0
  332. package/mobile/lib/ui-kit/Icon/ToggleIcon.js +5 -0
  333. package/mobile/lib/ui-kit/Icon/ToggleIcon.js.map +1 -0
  334. package/mobile/lib/ui-kit/Input/InputPopup.d.ts +2 -1
  335. package/mobile/lib/ui-kit/Input/InputPopup.js +29 -1
  336. package/mobile/lib/ui-kit/Input/InputPopup.js.map +1 -1
  337. package/mobile/lib/ui-kit/Input/useInputPopup.js +4 -3
  338. package/mobile/lib/ui-kit/Input/useInputPopup.js.map +1 -1
  339. package/mobile/lib/ui-kit/Loader/Loader.js +1 -1
  340. package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
  341. package/mobile/lib/ui-kit/Sitemap/Sitemap.js +15 -3
  342. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  343. package/mobile/src/api/RetailAPI/doRequest.ts +6 -0
  344. package/mobile/src/api/RetailAPI/getGenderFromName.ts +7 -10
  345. package/mobile/src/api/RetailAPI/getTraceId.ts +6 -0
  346. package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +5 -2
  347. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -2
  348. package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +3 -4
  349. package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -3
  350. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +19 -27
  351. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +3 -2
  352. package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
  353. package/mobile/src/components/Depository/DepositoryItem.tsx +2 -2
  354. package/mobile/src/components/OfficesAtmsMap/FiltrationForm.tsx +17 -29
  355. package/mobile/src/components/OfficesAtmsMap/FoldableCardContent.tsx +14 -5
  356. package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +5 -6
  357. package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +0 -1
  358. package/mobile/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +0 -1
  359. package/mobile/src/components/RollupItem/RollupItem.tsx +14 -61
  360. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
  361. package/mobile/src/components/TariffsTable/TariffsTable.tsx +2 -2
  362. package/mobile/src/ui-kit/BaseFiltration/GridBlocks.tsx +5 -5
  363. package/mobile/src/ui-kit/Button/Button.tsx +60 -44
  364. package/mobile/src/ui-kit/Button/ButtonTitle.tsx +17 -0
  365. package/mobile/src/ui-kit/Button/SubmitButton.tsx +14 -0
  366. package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -8
  367. package/mobile/src/ui-kit/ControlStateProps.ts +0 -1
  368. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +16 -51
  369. package/mobile/src/ui-kit/Foldable/Foldable.tsx +4 -3
  370. package/mobile/src/ui-kit/Icon/Icon.tsx +21 -15
  371. package/mobile/src/ui-kit/Icon/IconProps.ts +13 -0
  372. package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +1 -1
  373. package/mobile/src/ui-kit/Icon/ToggleIcon.tsx +11 -0
  374. package/mobile/src/ui-kit/Input/InputPopup.tsx +52 -18
  375. package/mobile/src/ui-kit/Input/useInputPopup.tsx +11 -3
  376. package/mobile/src/ui-kit/Loader/Loader.tsx +1 -1
  377. package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +40 -8
  378. package/package.json +1 -1
  379. package/src/api/RetailAPI/doRequest.ts +6 -0
  380. package/src/api/RetailAPI/getGenderFromName.ts +7 -10
  381. package/src/api/RetailAPI/getTraceId.ts +6 -0
  382. package/src/components/ApplicationForm/renderAgreementSubmit.tsx +5 -2
  383. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -2
  384. package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +3 -4
  385. package/src/components/CardTransfer/CardTransfer.tsx +3 -3
  386. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +19 -27
  387. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +3 -2
  388. package/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
  389. package/src/components/Depository/DepositoryItem.tsx +2 -2
  390. package/src/components/OfficesAtmsMap/FiltrationForm.tsx +17 -29
  391. package/src/components/OfficesAtmsMap/FoldableCardContent.tsx +14 -5
  392. package/src/components/OfficesAtmsMap/renderAtmCard.tsx +5 -6
  393. package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +0 -1
  394. package/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +0 -1
  395. package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +1 -12
  396. package/src/components/RollupItem/RollupItem.tsx +14 -61
  397. package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
  398. package/src/components/TariffsTable/TariffsTable.tsx +2 -2
  399. package/src/ui-kit/BaseFiltration/GridBlocks.tsx +5 -5
  400. package/src/ui-kit/Button/Button.fixture.tsx +0 -8
  401. package/src/ui-kit/Button/Button.tsx +60 -44
  402. package/src/ui-kit/Button/ButtonTitle.tsx +17 -0
  403. package/src/ui-kit/Button/SubmitButton.tsx +14 -0
  404. package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +6 -8
  405. package/src/ui-kit/ControlStateProps.ts +0 -1
  406. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +16 -51
  407. package/src/ui-kit/Foldable/Foldable.tsx +4 -3
  408. package/src/ui-kit/Icon/Icon.tsx +21 -15
  409. package/src/ui-kit/Icon/IconProps.ts +13 -0
  410. package/src/ui-kit/Icon/RoundedIcon.tsx +1 -1
  411. package/src/ui-kit/Icon/ToggleIcon.tsx +11 -0
  412. package/src/ui-kit/Input/InputPopup.tsx +52 -18
  413. package/src/ui-kit/Input/useInputPopup.tsx +11 -3
  414. package/src/ui-kit/Loader/Loader.tsx +1 -1
  415. package/src/ui-kit/Sitemap/Sitemap.mobile.tsx +40 -8
  416. package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  417. package/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  418. package/bundle/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  419. package/bundle/components/RollupItem/getIconName.d.ts +0 -1
  420. package/bundle/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  421. package/bundle/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
  422. package/bundle/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
  423. package/bundle/ui-kit/Button/IconButton.d.ts +0 -10
  424. package/bundle/ui-kit/Button/useButton.d.ts +0 -2
  425. package/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  426. package/dist/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  427. package/dist/components/ApplicationForm/renderSubmitButton.js +0 -8
  428. package/dist/components/ApplicationForm/renderSubmitButton.js.map +0 -1
  429. package/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  430. package/dist/components/OfficesAtmsMap/renderFoldButton.js +0 -7
  431. package/dist/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
  432. package/dist/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  433. package/dist/components/RollupItem/AccordionFoldButton.js +0 -11
  434. package/dist/components/RollupItem/AccordionFoldButton.js.map +0 -1
  435. package/dist/components/RollupItem/getIconName.d.ts +0 -1
  436. package/dist/components/RollupItem/getIconName.js +0 -7
  437. package/dist/components/RollupItem/getIconName.js.map +0 -1
  438. package/dist/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  439. package/dist/components/RollupItem/renderRoundedIcon.js +0 -6
  440. package/dist/components/RollupItem/renderRoundedIcon.js.map +0 -1
  441. package/dist/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
  442. package/dist/components/RollupItem/renderRoundedIcon.mobile.js +0 -7
  443. package/dist/components/RollupItem/renderRoundedIcon.mobile.js.map +0 -1
  444. package/dist/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
  445. package/dist/components/RollupItem/rollupIconVersion.mobile.js +0 -4
  446. package/dist/components/RollupItem/rollupIconVersion.mobile.js.map +0 -1
  447. package/dist/ui-kit/Button/IconButton.d.ts +0 -10
  448. package/dist/ui-kit/Button/IconButton.js +0 -13
  449. package/dist/ui-kit/Button/IconButton.js.map +0 -1
  450. package/dist/ui-kit/Button/useButton.d.ts +0 -2
  451. package/dist/ui-kit/Button/useButton.js +0 -16
  452. package/dist/ui-kit/Button/useButton.js.map +0 -1
  453. package/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  454. package/dist/ui-kit/TextWithIcon/TextWithIcon.js +0 -10
  455. package/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
  456. package/lib/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  457. package/lib/components/ApplicationForm/renderSubmitButton.js +0 -5
  458. package/lib/components/ApplicationForm/renderSubmitButton.js.map +0 -1
  459. package/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  460. package/lib/components/OfficesAtmsMap/renderFoldButton.js +0 -4
  461. package/lib/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
  462. package/lib/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  463. package/lib/components/RollupItem/AccordionFoldButton.js +0 -9
  464. package/lib/components/RollupItem/AccordionFoldButton.js.map +0 -1
  465. package/lib/components/RollupItem/getIconName.d.ts +0 -1
  466. package/lib/components/RollupItem/getIconName.js +0 -4
  467. package/lib/components/RollupItem/getIconName.js.map +0 -1
  468. package/lib/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  469. package/lib/components/RollupItem/renderRoundedIcon.js +0 -3
  470. package/lib/components/RollupItem/renderRoundedIcon.js.map +0 -1
  471. package/lib/components/RollupItem/renderRoundedIcon.mobile.d.ts +0 -3
  472. package/lib/components/RollupItem/renderRoundedIcon.mobile.js +0 -4
  473. package/lib/components/RollupItem/renderRoundedIcon.mobile.js.map +0 -1
  474. package/lib/components/RollupItem/rollupIconVersion.mobile.d.ts +0 -1
  475. package/lib/components/RollupItem/rollupIconVersion.mobile.js +0 -2
  476. package/lib/components/RollupItem/rollupIconVersion.mobile.js.map +0 -1
  477. package/lib/ui-kit/Button/IconButton.d.ts +0 -10
  478. package/lib/ui-kit/Button/IconButton.js +0 -11
  479. package/lib/ui-kit/Button/IconButton.js.map +0 -1
  480. package/lib/ui-kit/Button/useButton.d.ts +0 -2
  481. package/lib/ui-kit/Button/useButton.js +0 -13
  482. package/lib/ui-kit/Button/useButton.js.map +0 -1
  483. package/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  484. package/lib/ui-kit/TextWithIcon/TextWithIcon.js +0 -8
  485. package/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
  486. package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  487. package/mobile/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  488. package/mobile/bundle/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  489. package/mobile/bundle/components/RollupItem/getIconName.d.ts +0 -1
  490. package/mobile/bundle/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  491. package/mobile/bundle/ui-kit/Button/IconButton.d.ts +0 -10
  492. package/mobile/bundle/ui-kit/Button/useButton.d.ts +0 -2
  493. package/mobile/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  494. package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  495. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +0 -8
  496. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +0 -1
  497. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  498. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js +0 -7
  499. package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
  500. package/mobile/dist/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  501. package/mobile/dist/components/RollupItem/AccordionFoldButton.js +0 -11
  502. package/mobile/dist/components/RollupItem/AccordionFoldButton.js.map +0 -1
  503. package/mobile/dist/components/RollupItem/getIconName.d.ts +0 -1
  504. package/mobile/dist/components/RollupItem/getIconName.js +0 -7
  505. package/mobile/dist/components/RollupItem/getIconName.js.map +0 -1
  506. package/mobile/dist/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  507. package/mobile/dist/components/RollupItem/renderRoundedIcon.js +0 -7
  508. package/mobile/dist/components/RollupItem/renderRoundedIcon.js.map +0 -1
  509. package/mobile/dist/ui-kit/Button/IconButton.d.ts +0 -10
  510. package/mobile/dist/ui-kit/Button/IconButton.js +0 -13
  511. package/mobile/dist/ui-kit/Button/IconButton.js.map +0 -1
  512. package/mobile/dist/ui-kit/Button/useButton.d.ts +0 -2
  513. package/mobile/dist/ui-kit/Button/useButton.js +0 -16
  514. package/mobile/dist/ui-kit/Button/useButton.js.map +0 -1
  515. package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  516. package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js +0 -10
  517. package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
  518. package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +0 -2
  519. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +0 -5
  520. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +0 -1
  521. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +0 -3
  522. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js +0 -4
  523. package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js.map +0 -1
  524. package/mobile/lib/components/RollupItem/AccordionFoldButton.d.ts +0 -12
  525. package/mobile/lib/components/RollupItem/AccordionFoldButton.js +0 -9
  526. package/mobile/lib/components/RollupItem/AccordionFoldButton.js.map +0 -1
  527. package/mobile/lib/components/RollupItem/getIconName.d.ts +0 -1
  528. package/mobile/lib/components/RollupItem/getIconName.js +0 -4
  529. package/mobile/lib/components/RollupItem/getIconName.js.map +0 -1
  530. package/mobile/lib/components/RollupItem/renderRoundedIcon.d.ts +0 -3
  531. package/mobile/lib/components/RollupItem/renderRoundedIcon.js +0 -4
  532. package/mobile/lib/components/RollupItem/renderRoundedIcon.js.map +0 -1
  533. package/mobile/lib/ui-kit/Button/IconButton.d.ts +0 -10
  534. package/mobile/lib/ui-kit/Button/IconButton.js +0 -11
  535. package/mobile/lib/ui-kit/Button/IconButton.js.map +0 -1
  536. package/mobile/lib/ui-kit/Button/useButton.d.ts +0 -2
  537. package/mobile/lib/ui-kit/Button/useButton.js +0 -13
  538. package/mobile/lib/ui-kit/Button/useButton.js.map +0 -1
  539. package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +0 -13
  540. package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js +0 -8
  541. package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +0 -1
  542. package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +0 -9
  543. package/mobile/src/components/OfficesAtmsMap/renderFoldButton.tsx +0 -12
  544. package/mobile/src/components/RollupItem/AccordionFoldButton.tsx +0 -41
  545. package/mobile/src/components/RollupItem/getIconName.tsx +0 -6
  546. package/mobile/src/components/RollupItem/renderRoundedIcon.tsx +0 -7
  547. package/mobile/src/ui-kit/Button/IconButton.tsx +0 -36
  548. package/mobile/src/ui-kit/Button/useButton.ts +0 -16
  549. package/mobile/src/ui-kit/TextWithIcon/TextWithIcon.tsx +0 -37
  550. package/src/components/ApplicationForm/renderSubmitButton.tsx +0 -9
  551. package/src/components/OfficesAtmsMap/renderFoldButton.tsx +0 -12
  552. package/src/components/RollupItem/AccordionFoldButton.tsx +0 -41
  553. package/src/components/RollupItem/getIconName.tsx +0 -6
  554. package/src/components/RollupItem/renderRoundedIcon.mobile.tsx +0 -7
  555. package/src/components/RollupItem/renderRoundedIcon.tsx +0 -5
  556. package/src/components/RollupItem/rollupIconVersion.mobile.tsx +0 -1
  557. package/src/ui-kit/Button/IconButton.tsx +0 -36
  558. package/src/ui-kit/Button/useButton.ts +0 -16
  559. package/src/ui-kit/TextWithIcon/TextWithIcon.tsx +0 -37
@@ -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
- );
@@ -1,5 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Button } from '../../ui-kit/Button/Button';
3
+ import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
3
4
 
4
5
  export interface StepsNavigationButtonsProps {
5
6
  step: number;
@@ -17,9 +18,9 @@ export const StepsNavigationButtons = JSX<StepsNavigationButtonsProps>(
17
18
  <Button onClick={onPrevStep} type="button" version="secondary" disabled={isFirstStep}>
18
19
  Назад
19
20
  </Button>
20
- <Button isLoading={isSending} type="submit">
21
+ <SubmitButton isLoading={isSending}>
21
22
  {isFinalStep ? 'Отправить заявку' : 'Далее'}
22
- </Button>
23
+ </SubmitButton>
23
24
  </div>
24
25
  );
25
26
  },
@@ -1,5 +1,6 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { Button } from '../../ui-kit/Button/Button';
3
+ import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
3
4
 
4
5
  export interface StepsNavigationButtonsProps {
5
6
  step: number;
@@ -17,9 +18,9 @@ export const StepsNavigationButtons = JSX<StepsNavigationButtonsProps>(
17
18
  <Button onClick={onPrevStep} type="button" version="secondary" disabled={isFirstStep}>
18
19
  Назад
19
20
  </Button>
20
- <Button type="submit" isLoading={isSending}>
21
+ <SubmitButton isLoading={isSending}>
21
22
  {isFinalStep ? 'Отправить заявку' : 'Далее'}
22
- </Button>
23
+ </SubmitButton>
23
24
  </div>
24
25
  );
25
26
  },
@@ -1,9 +1,9 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { API_BASE_URI } from '../../api/apiBaseUrl';
3
3
  import { useLink } from '../../hooks/useLink';
4
+ import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon';
4
5
  import { Text } from '../../ui-kit/Text/Text';
5
6
  import { formatDate } from '../../utils/formatDate';
6
- import { renderRoundedIcon } from '../RollupItem/renderRoundedIcon';
7
7
  import { type DepositoryDataItem } from './useDepository';
8
8
 
9
9
  export const DepositoryItem = JSX(({ title, timestamp, publicId }: DepositoryDataItem) => {
@@ -15,7 +15,7 @@ export const DepositoryItem = JSX(({ title, timestamp, publicId }: DepositoryDat
15
15
  className="flex gap-3 items-center py-lg border-gray border-opacity-50 border-b"
16
16
  key={publicId}
17
17
  >
18
- {renderRoundedIcon({ icon: 'DocDownloadIcon', iconVersion: 'black' })}
18
+ <RoundedIcon className="shrink-0" icon="DocDownloadIcon" iconVersion="black" />
19
19
  <div className="flex flex-col gap-x-6xl lg:flex-row lg:items-center">
20
20
  {timestamp ? (
21
21
  <Text size="text-m" font-weight="font-light">
@@ -1,12 +1,13 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
3
3
  import { type FormFieldRegisterer } from '../../hooks/useForm/useForm';
4
+ import { Button } from '../../ui-kit/Button/Button';
5
+ import { ButtonTitle } from '../../ui-kit/Button/ButtonTitle';
4
6
  import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
7
+ import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
5
8
  import { Foldable } from '../../ui-kit/Foldable/Foldable';
6
- import { type FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
7
9
  import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
8
10
  import { Icon } from '../../ui-kit/Icon/Icon';
9
- import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
10
11
 
11
12
  const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
12
13
 
@@ -43,7 +44,20 @@ export const FiltrationForm = JSX<RenderFiltrationFormProps>(
43
44
  {hiddenFilters}
44
45
  </FoldableSection>
45
46
  </div>
46
- {renderFoldButton(reset, onlyOffice)({ isUnfolded, onToggle: toggle })}
47
+ <div className="flex space-x-lg">
48
+ {onlyOffice ? (
49
+ <DefaultFoldButton
50
+ label={isUnfolded ? 'Меньше фильтров' : 'Больше фильтров'}
51
+ isUnfolded={isUnfolded}
52
+ embedded
53
+ onClick={toggle}
54
+ />
55
+ ) : null}
56
+ <Button embedded onClick={reset}>
57
+ <ButtonTitle>Очистить фильтр</ButtonTitle>
58
+ <Icon name="CloseIcon" size="small" />
59
+ </Button>
60
+ </div>
47
61
  </Foldable>
48
62
  </div>
49
63
  ) : null}
@@ -51,29 +65,3 @@ export const FiltrationForm = JSX<RenderFiltrationFormProps>(
51
65
  );
52
66
  },
53
67
  );
54
-
55
- // TODO Столько разных кнопок с иконками, но эта самая творчески-ударённая реализация))
56
- export const renderFoldButton =
57
- (reset: () => void, onlyOffice = false) =>
58
- ({ isUnfolded, onToggle }: FoldablePartProps) =>
59
- (
60
- <div className="flex space-x-lg">
61
- {onlyOffice ? (
62
- <LinkButton
63
- version="transparent"
64
- className="text-secondary-text [&>*]:p-0"
65
- appendRight={
66
- <Icon name={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'} width="16" height="16" />
67
- }
68
- text={isUnfolded ? 'Меньше фильтров' : 'Больше фильтров'}
69
- onClick={onToggle}
70
- />
71
- ) : null}
72
- <LinkButton version="transparent" className="text-secondary-text [&>*]:p-0" onClick={reset}>
73
- <div className="flex items-center">
74
- Очистить фильтр
75
- <Icon name="CloseIcon" width="16" height="16" className="ml-2xs" />
76
- </div>
77
- </LinkButton>
78
- </div>
79
- );
@@ -1,16 +1,25 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
3
+ import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
3
4
  import { Foldable } from '../../ui-kit/Foldable/Foldable';
4
5
  import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
5
- import { renderFoldButton } from './renderFoldButton';
6
6
 
7
7
  export const FoldableCardContent = JSX(({ children }) => {
8
8
  const [isUnfolded, { toggle }] = useBool(false);
9
9
 
10
10
  return (
11
- <Foldable className="block sm:hidden">
12
- <FoldableSection isUnfolded={isUnfolded}>{children}</FoldableSection>
13
- {renderFoldButton({ isUnfolded, onToggle: toggle })}
14
- </Foldable>
11
+ <div>
12
+ <div className="hidden sm:block">{children}</div>
13
+ <Foldable className="block sm:hidden">
14
+ <FoldableSection isUnfolded={isUnfolded}>{children}</FoldableSection>
15
+ <DefaultFoldButton
16
+ className="w-full my-m mr-m border-b border-solid border-main-divider"
17
+ label={isUnfolded ? 'Скрыть' : 'Подробнее'}
18
+ isUnfolded={isUnfolded}
19
+ embedded
20
+ onClick={toggle}
21
+ />
22
+ </Foldable>
23
+ </div>
15
24
  );
16
25
  });
@@ -53,11 +53,12 @@ export const renderAtmCard = (
53
53
  <Badge color="green">{capitalize(workTime)}</Badge>
54
54
  </div>
55
55
  </div>
56
- <div className="hidden sm:block">
57
- <CardRow className="flex-wrap">{additionalInfo?.map(renderInfo)}</CardRow>
58
- </div>
59
56
  <FoldableCardContent>
60
- <CardRow className="flex-wrap">{additionalInfo?.map(renderInfo)}</CardRow>
57
+ <CardRow className="flex-wrap">
58
+ {additionalInfo?.map((item, key) => (
59
+ <CardCell key={String(key)} {...item} />
60
+ ))}
61
+ </CardRow>
61
62
  </FoldableCardContent>
62
63
  </div>
63
64
  );
@@ -69,5 +70,3 @@ export const getAtmPoint = ({ address = '', terminalType, atmCode = '' }: Atm) =
69
70
 
70
71
  return { header, body };
71
72
  };
72
-
73
- const renderInfo = (item: CardCellProps, i: number) => <CardCell key={String(i)} {...item} />;
@@ -33,7 +33,6 @@ export const renderOfficeCard = (branch: Branch, i: number) => {
33
33
  </div>
34
34
  {renderCurrentDaySchedule(workScheduleWeek)}
35
35
  </div>
36
- <div className="hidden sm:block">{renderCardContent(branch)}</div>
37
36
  <FoldableCardContent>{renderCardContent(branch)}</FoldableCardContent>
38
37
  </div>
39
38
  );
@@ -26,7 +26,6 @@ export const renderRemoteWorkplaceCard = (
26
26
  ) : null}
27
27
  </div>
28
28
  </div>
29
- <div className="hidden sm:block">{renderCardContent(workScheduleDescription)}</div>
30
29
  <FoldableCardContent>{renderCardContent(workScheduleDescription)}</FoldableCardContent>
31
30
  </div>
32
31
  );
@@ -2,7 +2,6 @@ import '../../setup-fixture';
2
2
 
3
3
  import { type BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
4
4
  import { type BlockDef } from '../../model/ContentPageDef';
5
- import { type Picture } from '../../model/Picture';
6
5
  import { Blocks } from '../Blocks.mobile';
7
6
  import { TEXT_BLOCK } from '../TextBlock/TextBlock.fixture.mobile';
8
7
  import { RollupItem } from './RollupItem';
@@ -23,18 +22,10 @@ export const ROLLUP_ITEM: BlockDef = {
23
22
  ],
24
23
  };
25
24
 
26
- const labelIcon: Picture = { icon: 'BriefcaseIcon' };
27
-
28
25
  export default {
29
26
  default: (
30
27
  <div>
31
- <RollupItem
32
- {...ROLLUP_ITEM.content}
33
- block={ROLLUP_ITEM}
34
- labelIcon={labelIcon}
35
- labelIconBgVersion="primary"
36
- options={options}
37
- />
28
+ <RollupItem {...ROLLUP_ITEM.content} block={ROLLUP_ITEM} options={options} />
38
29
  <RollupItem
39
30
  foldButtonVersion="accordion"
40
31
  {...ROLLUP_ITEM.content}
@@ -50,8 +41,6 @@ export default {
50
41
  isExpanded={true}
51
42
  foldButtonVersion="accordion"
52
43
  label="RollupItem label 1"
53
- labelIcon={labelIcon}
54
- labelIconBgVersion="primary"
55
44
  options={options}
56
45
  />
57
46
  </div>
@@ -1,24 +1,17 @@
1
1
  import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
2
2
  import { renderChildren } from '../../BlockRenderer/renderChildren';
3
3
  import { useMobileMode } from '../../hooks/useMobileMode';
4
- import { type Picture } from '../../model/Picture';
5
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
6
5
  import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
7
6
  import { Foldable } from '../../ui-kit/Foldable/Foldable';
8
- import { type FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
9
7
  import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
10
- import { type IconBgVersion, type IconProps } from '../../ui-kit/Icon/IconProps';
11
8
  import { UniBlock } from '../../UniBlock/UniBlock';
12
9
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
13
10
  import { style } from '../../utils/style';
14
- import { AccordionFoldButton } from './AccordionFoldButton';
15
11
  import { getFoldableStyles } from './getFoldableStyles';
16
- import { getIconName } from './getIconName';
17
- import { type FoldButtonVersion, type RollupItemContent } from './RollupItemContent';
12
+ import { type RollupItemContent } from './RollupItemContent';
18
13
 
19
14
  interface RollupItemProps extends RollupItemContent, UniBlockProps {
20
- labelIcon?: Picture;
21
- labelIconBgVersion?: IconBgVersion;
22
15
  role?: string;
23
16
  }
24
17
 
@@ -27,10 +20,8 @@ export const RollupItem = UniBlock<RollupItemProps>(
27
20
  className = '',
28
21
  isExpanded,
29
22
  isFoldButtonOnTop = true,
30
- label = 'Развернуть',
31
- labelIcon,
32
- labelIconBgVersion,
33
23
  foldButtonVersion = 'default',
24
+ label,
34
25
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
35
26
  version,
36
27
  role,
@@ -51,15 +42,17 @@ export const RollupItem = UniBlock<RollupItemProps>(
51
42
  })}
52
43
  </FoldableSection>
53
44
  );
54
- const foldButton = renderFoldButton({
55
- foldButtonVersion,
56
- label,
57
- labelIcon,
58
- labelIconBgVersion,
59
- isMobile,
60
- isUnfolded,
61
- onToggle: toggle,
62
- });
45
+
46
+ const isAccordion = foldButtonVersion === 'accordion';
47
+ const foldButton = (
48
+ <DefaultFoldButton
49
+ className={style('w-full', { 'text-h6 my-lg': isAccordion })}
50
+ label={label}
51
+ isUnfolded={isUnfolded}
52
+ embedded={isAccordion}
53
+ onClick={toggle}
54
+ />
55
+ );
63
56
 
64
57
  return (
65
58
  <BlockWrapper
@@ -80,45 +73,5 @@ export const RollupItem = UniBlock<RollupItemProps>(
80
73
  </BlockWrapper>
81
74
  );
82
75
  },
83
- {
84
- childrenTypes: { exclude: ['RollupItem'] },
85
- },
76
+ { childrenTypes: { exclude: ['RollupItem'] } },
86
77
  );
87
-
88
- interface FoldButtonProps extends FoldablePartProps {
89
- foldButtonVersion?: FoldButtonVersion;
90
- label?: string;
91
- labelIcon?: IconProps;
92
- labelIconBgVersion?: IconBgVersion;
93
- isPadding?: boolean;
94
- isMobile?: boolean;
95
- }
96
-
97
- const renderFoldButton = ({
98
- foldButtonVersion,
99
- label: defaultLabel,
100
- labelIcon,
101
- labelIconBgVersion,
102
- isUnfolded,
103
- isMobile = false,
104
- onToggle,
105
- }: FoldButtonProps) => {
106
- const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
107
- const icon = getIconName(isUnfolded, isMobile);
108
-
109
- return foldButtonVersion === 'accordion' ? (
110
- <AccordionFoldButton
111
- label={label}
112
- labelIcon={labelIcon}
113
- labelIconBgVersion={labelIconBgVersion}
114
- icon={icon}
115
- onToggle={onToggle}
116
- />
117
- ) : (
118
- <DefaultFoldButton
119
- label={label}
120
- icon={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
121
- onClick={onToggle}
122
- />
123
- );
124
- };
@@ -1,5 +1,5 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { Img } from '../../ui-kit/Img/Img';
2
+ import { Icon } from '../../ui-kit/Icon/Icon';
3
3
  import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
4
4
  import { Text } from '../../ui-kit/Text/Text';
5
5
  import { type Tariff } from './useSafeBoxes';
@@ -25,7 +25,7 @@ export const SafeDepositRentalTotal = JSX<SafeDepositRentalTotalProps>(({ days,
25
25
  </Paragraph>
26
26
  </div>
27
27
  <div className="flex flex-col items-center gap-s order-3 @xl:order-none mb-xl @xl:mb-0 bg-primary-main py-s @xl:p-3xl text-center">
28
- <Img image={{ icon: 'PackA4Icon' }} className="@xl:h-60" />
28
+ <Icon className="@xl:h-60" name="PackA4Icon" />
29
29
  <div className="hidden @xl:inline opacity-80 whitespace-pre-line">
30
30
  <Paragraph size="text-s" font="font-light" color="text-white">
31
31
  {imageDescription}
@@ -2,7 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
3
3
  import { useCarouselControls } from '../../hooks/useCarouselControls';
4
4
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
5
- import { renderDefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
5
+ import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton';
6
6
  import { Foldable } from '../../ui-kit/Foldable/Foldable';
7
7
  import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
8
8
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
@@ -63,7 +63,7 @@ export const TariffsTable = JSX<TariffsTableProps>(
63
63
  {visibleRows}
64
64
  <FoldableSection isUnfolded={isUnfolded}>{hiddenRows}</FoldableSection>
65
65
  </TariffsTableWrapper>
66
- {renderDefaultFoldButton({ isUnfolded, onToggle: toggle })}
66
+ <DefaultFoldButton className="w-full" isUnfolded={isUnfolded} onClick={toggle} />
67
67
  </Foldable>
68
68
  ) : (
69
69
  <TariffsTableWrapper controls={controls}>{rows}</TariffsTableWrapper>
@@ -18,7 +18,7 @@ interface GridBlocksProps extends GridSection, UniBlockProps {
18
18
  }
19
19
 
20
20
  export const GridBlocks = JSX<GridBlocksProps>(
21
- ({ topItemsCount = 0, label = '', block, blocksToRender = [], ...rest }) => {
21
+ ({ topItemsCount = 0, label, block, blocksToRender = [], ...rest }) => {
22
22
  const [visibleBlocks, hiddenBlocks] =
23
23
  topItemsCount > 0
24
24
  ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
@@ -38,11 +38,11 @@ export const GridBlocks = JSX<GridBlocksProps>(
38
38
  {isOdd(hiddenBlocks.length) ? <AdTile className="col-span-6" {...rest} /> : null}
39
39
  </FoldableSection>
40
40
  <DefaultFoldButton
41
- className={style({ hidden: topItemsCount < 1 })}
42
- dataTheme={rest.options?.page?.colorPalette}
43
- disabled={!hiddenBlocks?.length}
41
+ className={style('w-full', { hidden: topItemsCount < 1 })}
44
42
  label={label}
45
- icon={isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon'}
43
+ isUnfolded={isUnfolded}
44
+ disabled={!hiddenBlocks?.length}
45
+ dataTheme={rest.options?.page?.colorPalette}
46
46
  onClick={toggle}
47
47
  />
48
48
  </Foldable>