@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,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>
@@ -10,7 +10,6 @@ export default {
10
10
  <div className="bg-white p-xl flex flex-col gap-2">
11
11
  <p>Primary</p>
12
12
  <Button>{buttonText}</Button>
13
- <Button active>{buttonText}</Button>
14
13
  <Button disabled>{buttonText}</Button>
15
14
  <Button>
16
15
  {icon}
@@ -20,9 +19,6 @@ export default {
20
19
  <div className="bg-white p-xl flex flex-col gap-2">
21
20
  <p>Secondary</p>
22
21
  <Button version="secondary">{buttonText}</Button>
23
- <Button version="secondary" active>
24
- {buttonText}
25
- </Button>
26
22
  <Button version="secondary" disabled>
27
23
  {buttonText}
28
24
  </Button>
@@ -38,7 +34,6 @@ export default {
38
34
  <div className="bg-primary-main p-xl flex flex-col gap-2">
39
35
  <p className="text-white">Primary</p>
40
36
  <Button>{buttonText}</Button>
41
- <Button active>{buttonText}</Button>
42
37
  <Button disabled>{buttonText}</Button>
43
38
  <Button>
44
39
  {icon}
@@ -48,9 +43,6 @@ export default {
48
43
  <div className="bg-primary-main p-xl flex flex-col gap-2">
49
44
  <p className="text-white">Secondary</p>
50
45
  <Button version="secondary">{buttonText}</Button>
51
- <Button version="secondary" active>
52
- {buttonText}
53
- </Button>
54
46
  <Button version="secondary" disabled>
55
47
  {buttonText}
56
48
  </Button>
@@ -1,77 +1,93 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback, useMemo } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { handlerDecorator } from '../../external/handlerDecorator';
4
+ import { type AspectsDef } from '../../model/AspectsProps';
2
5
  import { type ButtonVersion } from '../../model/ButtonVersion';
6
+ import { type ColorPalette } from '../../model/ContentPageBase';
7
+ import { getAspectsAttributes } from '../../utils/dataAttributes';
3
8
  import { style } from '../../utils/style';
4
9
  import { type ARIAProps } from '../ARIAProps';
5
10
  import { type ControlStateProps } from '../ControlStateProps';
6
- import { Loader } from '../Loader/Loader';
7
11
  import { type PreventableEvent } from '../PreventableEvent';
8
- import { useButton } from './useButton';
9
12
 
10
13
  const buttonStyleMap: Record<ButtonVersion, string> = {
11
- primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
12
- secondary:
13
- 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
14
- };
15
-
16
- const secondaryButtonStyleMap: Record<ButtonVersion, string> = {
17
14
  primary: style(
15
+ 'justify-center px-9 py-4',
16
+ 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
18
17
  'group-data-secondary:text-primary-main group-data-secondary:bg-white',
19
18
  'group-data-secondary:hover:text-white group-data-secondary:hover:bg-primary-hover',
20
19
  'group-data-secondary:active:bg-primary-active',
21
20
  ),
22
21
  secondary: style(
22
+ 'justify-center px-9 py-4',
23
+ 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
23
24
  'group-data-secondary:text-white group-data-secondary:bg-white/20',
24
25
  'group-data-secondary:hover:bg-primary-hover',
25
26
  'group-data-secondary:active:bg-primary-active',
26
27
  ),
27
28
  };
28
29
 
30
+ const embeddedStyle = style(
31
+ 'group/btn-embedded',
32
+ 'justify-between p-0',
33
+ 'bg-transparent border border-transparent outline-none',
34
+ );
35
+
29
36
  export interface ButtonProps extends ControlStateProps, ARIAProps {
30
37
  className?: string;
31
- version?: ButtonVersion;
32
38
  type?: 'button' | 'submit' | 'reset';
39
+ version?: ButtonVersion;
40
+ embedded?: boolean;
33
41
  rounded?: boolean;
34
- isLoading?: boolean;
35
42
  role?: string;
36
- onClick?: (ev?: PreventableEvent) => void;
43
+ data?: AspectsDef[];
44
+ dataTheme?: ColorPalette;
45
+ onClick?: (ev: PreventableEvent) => void;
37
46
  }
38
47
 
39
- export const Button = JSX<ButtonProps>(({ children, ...props }) => {
40
- const button = useButton();
41
-
42
- const {
48
+ export const Button = JSX<ButtonProps>(
49
+ ({
43
50
  className,
44
- version = 'primary',
45
- active,
46
- disabled,
47
- isLoading,
48
51
  type = 'button',
52
+ version = 'primary',
53
+ embedded,
49
54
  rounded = true,
55
+ disabled,
50
56
  role,
57
+ data,
58
+ dataTheme,
59
+ children,
51
60
  onClick,
52
- } = button(props);
61
+ }) => {
62
+ const handleClick = useCallback(
63
+ handlerDecorator((ev: PreventableEvent) => {
64
+ !disabled && onClick?.(ev);
65
+ }),
66
+ [disabled, onClick],
67
+ );
68
+ const aspectsAttrs = useMemo(() => getAspectsAttributes(data), [data]);
53
69
 
54
- return (
55
- <button
56
- className={style(
57
- 'font-sans px-9 py-4',
58
- 'flex justify-center items-center gap-xs relative',
59
- {
60
- 'text-white bg-primary-active': active,
61
- 'bg-main-gray text-main-disabled cursor-not-allowed': disabled || isLoading,
62
- 'rounded-md': rounded,
63
- },
64
- !active && !disabled && !isLoading
65
- ? style(buttonStyleMap[version], secondaryButtonStyleMap[version])
66
- : '',
67
- className,
68
- )}
69
- type={type}
70
- role={role}
71
- onClick={onClick}
72
- >
73
- {isLoading ? <Loader blur={true} size="small" /> : null}
74
- {children}
75
- </button>
76
- );
77
- });
70
+ return (
71
+ <button
72
+ className={style(
73
+ 'font-sans flex items-center gap-xs relative',
74
+ !disabled && !embedded && buttonStyleMap[version],
75
+ {
76
+ [embeddedStyle]: embedded,
77
+ 'rounded-md': rounded,
78
+ 'bg-main-gray text-main-disabled cursor-not-allowed': disabled,
79
+ },
80
+ className,
81
+ )}
82
+ type={type}
83
+ role={role}
84
+ data-theme={dataTheme}
85
+ // eslint-disable-next-line react/jsx-props-no-spreading
86
+ {...aspectsAttrs}
87
+ onClick={handleClick}
88
+ >
89
+ {children}
90
+ </button>
91
+ );
92
+ },
93
+ );
@@ -0,0 +1,17 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { style } from '../../utils/style';
3
+
4
+ interface ButtonTitleProps {
5
+ className?: string;
6
+ }
7
+
8
+ export const ButtonTitle = JSX<ButtonTitleProps>(({ className, children }) => (
9
+ <span
10
+ className={style(
11
+ 'inline-flex items-center text-start gap-s group-hover/btn-embedded:text-primary-main',
12
+ className,
13
+ )}
14
+ >
15
+ {children}
16
+ </span>
17
+ ));
@@ -0,0 +1,14 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { Loader } from '../Loader/Loader';
3
+ import { Button, type ButtonProps } from './Button';
4
+
5
+ export interface SubmitButtonProps extends ButtonProps {
6
+ isLoading?: boolean;
7
+ }
8
+
9
+ export const SubmitButton = JSX<SubmitButtonProps>(({ isLoading, disabled, children, ...rest }) => (
10
+ <Button type="submit" disabled={isLoading || disabled} {...rest}>
11
+ {isLoading ? <Loader blur={true} size="small" /> : null}
12
+ {children}
13
+ </Button>
14
+ ));
@@ -4,6 +4,7 @@ import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
4
4
  import { checkCaptcha } from '../../api/RetailAPI/checkCaptcha';
5
5
  import { createCaptcha } from '../../api/RetailAPI/createCaptcha';
6
6
  import { Button } from '../Button/Button';
7
+ import { SubmitButton } from '../Button/SubmitButton';
7
8
  import { Dialog } from '../DialogManager/Dialog';
8
9
  import { Icon } from '../Icon/Icon';
9
10
  import { Input } from '../Input/Input';
@@ -50,12 +51,9 @@ export const CaptchaDialog = JSX<CaptchaDialogProps>(({ phoneNumber, sendCode, o
50
51
  <div className="flex flex-col gap-lg items-center rounded-md">
51
52
  <div className="flex h-36 w-72">
52
53
  <img className="grow" src={captcha}></img>
53
- <div
54
- onClick={handleCreateCaptcha}
55
- className="flex w-8 items-center justify-center cursor-pointer"
56
- >
54
+ <Button className="w-8" embedded onClick={handleCreateCaptcha}>
57
55
  <Icon iconVersion="normal" name="RefreshIcon" />
58
- </div>
56
+ </Button>
59
57
  </div>
60
58
  <Input
61
59
  className="w-[300px]"
@@ -65,12 +63,12 @@ export const CaptchaDialog = JSX<CaptchaDialogProps>(({ phoneNumber, sendCode, o
65
63
  />
66
64
  {hasError ? <div className="text-error">Неверный код</div> : null}
67
65
  <div className="flex w-[310px] justify-between">
68
- <Button onClick={close} version="secondary">
66
+ <Button version="secondary" onClick={close}>
69
67
  Вернуться
70
68
  </Button>
71
- <Button type="submit" disabled={!code} onClick={handleCheckCaptcha} version="secondary">
69
+ <SubmitButton version="secondary" disabled={!code} onClick={handleCheckCaptcha}>
72
70
  Отправить
73
- </Button>
71
+ </SubmitButton>
74
72
  </div>
75
73
  {isLoading ? <Loader blur={false} /> : null}
76
74
  </div>