@rabbitio/ui-kit 1.0.0-beta.70 → 1.0.0-beta.72

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 (329) hide show
  1. package/coverage/clover.xml +7803 -7729
  2. package/coverage/coverage-final.json +91 -95
  3. package/coverage/index.html +182 -272
  4. package/coverage/rabbit-ui-kit/index.html +1 -1
  5. package/coverage/rabbit-ui-kit/index.js.html +1 -1
  6. package/coverage/rabbit-ui-kit/src/{common → common-apis}/adapters/axiosAdapter.js.html +3 -3
  7. package/coverage/rabbit-ui-kit/src/{common → common-apis}/adapters/index.html +3 -3
  8. package/coverage/rabbit-ui-kit/src/{common → common-apis}/adapters/qrUtils.js.html +3 -3
  9. package/coverage/rabbit-ui-kit/src/{common → common-apis}/amountUtils.js.html +3 -3
  10. package/coverage/rabbit-ui-kit/src/{common → common-apis}/errorUtils.js.html +3 -3
  11. package/coverage/rabbit-ui-kit/src/{common → common-apis}/external-apis/apiGroups.js.html +3 -3
  12. package/coverage/rabbit-ui-kit/src/{common → common-apis}/external-apis/index.html +3 -3
  13. package/coverage/rabbit-ui-kit/src/{common → common-apis}/external-apis/ipAddressProviders.js.html +5 -5
  14. package/coverage/rabbit-ui-kit/src/{common → common-apis}/fiatCurrenciesService.js.html +3 -3
  15. package/coverage/rabbit-ui-kit/src/{constants → common-apis}/globalConstants.jsx.html +3 -3
  16. package/coverage/rabbit-ui-kit/src/{common → common-apis}/index.html +22 -7
  17. package/coverage/rabbit-ui-kit/src/{common → common-apis}/models/blockchain.js.html +3 -3
  18. package/coverage/rabbit-ui-kit/src/{common → common-apis}/models/coin.js.html +3 -3
  19. package/coverage/rabbit-ui-kit/src/{common → common-apis}/models/index.html +3 -3
  20. package/coverage/rabbit-ui-kit/src/{common → common-apis}/models/protocol.js.html +3 -3
  21. package/coverage/rabbit-ui-kit/src/{common → common-apis}/utils/cache.js.html +8 -8
  22. package/coverage/rabbit-ui-kit/src/{common → common-apis}/utils/emailAPI.js.html +3 -3
  23. package/coverage/rabbit-ui-kit/src/{common → common-apis}/utils/index.html +3 -3
  24. package/coverage/rabbit-ui-kit/src/{common → common-apis}/utils/logging/index.html +3 -3
  25. package/coverage/rabbit-ui-kit/src/{common → common-apis}/utils/logging/logger.js.html +6 -6
  26. package/coverage/rabbit-ui-kit/src/{common → common-apis}/utils/logging/logsStorage.js.html +5 -5
  27. package/coverage/rabbit-ui-kit/src/{common → common-apis}/utils/postponeExecution.js.html +3 -3
  28. package/coverage/rabbit-ui-kit/src/{common → common-apis}/utils/safeStringify.js.html +29 -29
  29. package/coverage/rabbit-ui-kit/src/index.html +5 -5
  30. package/coverage/rabbit-ui-kit/src/index.js.html +66 -78
  31. package/coverage/rabbit-ui-kit/src/{robustExteranlApiCallerService → robust-api-caller}/cacheAndConcurrentRequestsResolver.js.html +5 -5
  32. package/coverage/rabbit-ui-kit/src/{robustExteranlApiCallerService → robust-api-caller}/cachedRobustExternalApiCallerService.js.html +6 -6
  33. package/coverage/rabbit-ui-kit/src/{robustExteranlApiCallerService → robust-api-caller}/cancelProcessing.js.html +3 -3
  34. package/coverage/rabbit-ui-kit/src/{robustExteranlApiCallerService → robust-api-caller}/concurrentCalculationsMetadataHolder.js.html +4 -4
  35. package/coverage/rabbit-ui-kit/src/{robustExteranlApiCallerService → robust-api-caller}/externalApiProvider.js.html +3 -3
  36. package/coverage/rabbit-ui-kit/src/{robustExteranlApiCallerService → robust-api-caller}/externalServicesStatsCollector.js.html +5 -5
  37. package/coverage/rabbit-ui-kit/src/{robustExteranlApiCallerService → robust-api-caller}/index.html +3 -3
  38. package/coverage/rabbit-ui-kit/src/{robustExteranlApiCallerService → robust-api-caller}/robustExternalAPICallerService.js.html +8 -8
  39. package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/index.html +24 -24
  40. package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/swapProvider.js.html +9 -6
  41. package/coverage/rabbit-ui-kit/src/swaps-lib/external-apis/swapspaceSwapProvider.js.html +190 -130
  42. package/coverage/rabbit-ui-kit/src/swaps-lib/models/baseSwapCreationInfo.js.html +14 -5
  43. package/coverage/rabbit-ui-kit/src/swaps-lib/models/existingSwap.js.html +1 -1
  44. package/coverage/rabbit-ui-kit/src/swaps-lib/models/existingSwapWithFiatData.js.html +1 -1
  45. package/coverage/rabbit-ui-kit/src/swaps-lib/models/index.html +7 -7
  46. package/coverage/rabbit-ui-kit/src/swaps-lib/services/index.html +5 -5
  47. package/coverage/rabbit-ui-kit/src/swaps-lib/services/publicSwapService.js.html +14 -11
  48. package/coverage/rabbit-ui-kit/src/swaps-lib/utils/index.html +1 -1
  49. package/coverage/rabbit-ui-kit/src/swaps-lib/utils/swapUtils.js.html +7 -7
  50. package/coverage/rabbit-ui-kit/src/{assets → ui-kit/assets}/wrappedImages/arrowIcon.jsx.html +10 -10
  51. package/coverage/rabbit-ui-kit/src/{assets → ui-kit/assets}/wrappedImages/arrowTosca.jsx.html +10 -10
  52. package/coverage/rabbit-ui-kit/src/{assets → ui-kit/assets}/wrappedImages/arrowWhite.jsx.html +11 -11
  53. package/coverage/rabbit-ui-kit/src/{assets → ui-kit/assets}/wrappedImages/darkRectangle.jsx.html +10 -10
  54. package/coverage/rabbit-ui-kit/src/{assets → ui-kit/assets}/wrappedImages/determinedError.jsx.html +10 -10
  55. package/coverage/rabbit-ui-kit/src/{assets → ui-kit/assets}/wrappedImages/failedValidationIcon.jsx.html +10 -10
  56. package/coverage/rabbit-ui-kit/src/{assets → ui-kit/assets}/wrappedImages/index.html +10 -10
  57. package/coverage/rabbit-ui-kit/src/{assets → ui-kit/assets}/wrappedImages/infoIcon.jsx.html +10 -10
  58. package/coverage/rabbit-ui-kit/src/{assets → ui-kit/assets}/wrappedImages/noticeQuestionIcon.jsx.html +10 -10
  59. package/coverage/rabbit-ui-kit/src/{assets → ui-kit/assets}/wrappedImages/successfulValidationIcon.jsx.html +10 -10
  60. package/coverage/rabbit-ui-kit/src/{assets → ui-kit/assets}/wrappedImages/walletIcon.jsx.html +10 -10
  61. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/AssetIcon/AssetIcon.jsx.html +20 -17
  62. package/coverage/rabbit-ui-kit/src/{constants/organisms/dialog/DialogStep → ui-kit/components/atoms/AssetIcon}/index.html +8 -8
  63. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/AssetSelection/AssetSelection.jsx.html +23 -20
  64. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/AssetSelection/index.html +116 -0
  65. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/BackgroundTitle/BackgroundTitle.jsx.html +10 -10
  66. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/BackgroundTitle/index.html +116 -0
  67. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/InformationMessage/InformationMessage.jsx.html +21 -18
  68. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/InformationMessage/index.html +116 -0
  69. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/Input/Input.jsx.html +38 -35
  70. package/coverage/rabbit-ui-kit/src/{components/atoms/buttons/Button → ui-kit/components/atoms/Input}/index.html +8 -8
  71. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/LoadingDots/LoadingDots.jsx.html +10 -10
  72. package/coverage/rabbit-ui-kit/src/{components/atoms/buttons/LinkButton → ui-kit/components/atoms/LoadingDots}/index.html +8 -8
  73. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/NoticeIcon/NoticeIcon.jsx.html +19 -22
  74. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/NoticeIcon/index.html +116 -0
  75. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/QrCode/QrCode.jsx.html +18 -15
  76. package/coverage/rabbit-ui-kit/src/{components/atoms/buttons/Close → ui-kit/components/atoms/QrCode}/index.html +8 -8
  77. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/RateSelector/RateSelector.jsx.html +16 -13
  78. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/RateSelector/index.html +116 -0
  79. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/SupportChat/SupportChat.jsx.html +16 -13
  80. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/SupportChat/index.html +116 -0
  81. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/Textarea/Textarea.jsx.html +36 -30
  82. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/Textarea/index.html +116 -0
  83. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/TitleBox/TitleBox.jsx.html +29 -29
  84. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/TitleBox/index.html +116 -0
  85. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/Tooltip/Tooltip.jsx.html +48 -21
  86. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/Tooltip/index.html +116 -0
  87. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/TwoLinesOfText/LinesOfText.jsx.html +29 -23
  88. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/TwoLinesOfText/index.html +116 -0
  89. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/Validation/Validation.jsx.html +13 -13
  90. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/Validation/index.html +116 -0
  91. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/buttons/Button/Button.jsx.html +10 -10
  92. package/coverage/rabbit-ui-kit/src/{components/atoms/AssetSelection → ui-kit/components/atoms/buttons/Button}/index.html +15 -15
  93. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/buttons/Close/Close.jsx.html +30 -15
  94. package/coverage/rabbit-ui-kit/src/{components/atoms/InformationMessage → ui-kit/components/atoms/buttons/Close}/index.html +15 -15
  95. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/buttons/LinkButton/LinkButton.jsx.html +34 -16
  96. package/coverage/rabbit-ui-kit/src/{components/atoms/BackgroundTitle → ui-kit/components/atoms/buttons/LinkButton}/index.html +15 -15
  97. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx.html +11 -11
  98. package/coverage/rabbit-ui-kit/src/ui-kit/components/atoms/buttons/RadioButtonWithText/index.html +116 -0
  99. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/molecules/AmountInput/AmountInput.jsx.html +20 -17
  100. package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/AmountInput/index.html +116 -0
  101. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/molecules/CoinPicker/CoinPicker.jsx.html +44 -38
  102. package/coverage/rabbit-ui-kit/src/{components/organisms/Dialog/DialogStep → ui-kit/components/molecules/CoinPicker}/index.html +8 -8
  103. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/molecules/LineWithIconLink/LineWithIconLink.jsx.html +10 -10
  104. package/coverage/rabbit-ui-kit/src/{components/organisms/Dialog/DialogButtons → ui-kit/components/molecules/LineWithIconLink}/index.html +8 -8
  105. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx.html +25 -19
  106. package/coverage/rabbit-ui-kit/src/ui-kit/components/molecules/TitledLineWithIconLink/index.html +116 -0
  107. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx.html +20 -14
  108. package/coverage/rabbit-ui-kit/src/{components/atoms/buttons/RadioButtonWithText → ui-kit/components/organisms/CoinPickerDialogStep}/index.html +8 -8
  109. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/organisms/Dialog/Dialog.jsx.html +106 -19
  110. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/organisms/Dialog/DialogButtons/DialogButtons.jsx.html +13 -13
  111. package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/Dialog/DialogButtons/index.html +116 -0
  112. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/organisms/Dialog/DialogStep/DialogStep.jsx.html +66 -60
  113. package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/Dialog/DialogStep/index.html +116 -0
  114. package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/Dialog/index.html +116 -0
  115. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/organisms/SwapForm/SwapForm.jsx.html +361 -76
  116. package/coverage/rabbit-ui-kit/src/ui-kit/components/organisms/SwapForm/index.html +116 -0
  117. package/coverage/rabbit-ui-kit/src/{components → ui-kit/components}/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx.html +12 -12
  118. package/coverage/rabbit-ui-kit/src/ui-kit/components/templates/DeterminedErrorDialogStep/index.html +116 -0
  119. package/coverage/rabbit-ui-kit/src/{components → ui-kit}/hooks/index.html +22 -7
  120. package/coverage/rabbit-ui-kit/src/{components → ui-kit}/hooks/useCallHandlingErrors.js.html +4 -4
  121. package/coverage/rabbit-ui-kit/src/ui-kit/hooks/useIsHydrated.js.html +121 -0
  122. package/coverage/rabbit-ui-kit/src/{components → ui-kit}/hooks/useReferredState.js.html +3 -3
  123. package/coverage/rabbit-ui-kit/src/{components → ui-kit}/utils/index.html +3 -3
  124. package/coverage/rabbit-ui-kit/src/{components → ui-kit}/utils/inputValueProviders.js.html +3 -3
  125. package/coverage/rabbit-ui-kit/src/{components → ui-kit}/utils/textUtils.js.html +4 -4
  126. package/coverage/rabbit-ui-kit/src/{components → ui-kit}/utils/uiUtils.js.html +3 -3
  127. package/coverage/rabbit-ui-kit/src/{components → ui-kit}/utils/urlQueryUtils.js.html +3 -3
  128. package/coverage/rabbit-ui-kit/stories/atoms/BackgroundTitle.stories.jsx.html +2 -2
  129. package/coverage/rabbit-ui-kit/stories/atoms/LinesOfText.stories.jsx.html +4 -4
  130. package/coverage/rabbit-ui-kit/stories/atoms/LoadingDots.stories.jsx.html +3 -3
  131. package/coverage/rabbit-ui-kit/stories/atoms/QrCode.stories.jsx.html +3 -3
  132. package/coverage/rabbit-ui-kit/stories/atoms/RateSelector.stories.jsx.html +2 -2
  133. package/coverage/rabbit-ui-kit/stories/atoms/Validation.stories.jsx.html +2 -2
  134. package/coverage/rabbit-ui-kit/stories/atoms/buttons/Button.stories.jsx.html +27 -90
  135. package/coverage/rabbit-ui-kit/stories/atoms/buttons/Close.stories.jsx.html +7 -10
  136. package/coverage/rabbit-ui-kit/stories/atoms/buttons/LinkButton.stories.jsx.html +13 -7
  137. package/coverage/rabbit-ui-kit/stories/atoms/buttons/index.html +9 -9
  138. package/coverage/rabbit-ui-kit/stories/atoms/index.html +1 -1
  139. package/coverage/rabbit-ui-kit/stories/molecules/LineWithIconLink.stories.jsx.html +3 -3
  140. package/coverage/rabbit-ui-kit/stories/molecules/TitledLineWithIconLink.stories.jsx.html +2 -2
  141. package/coverage/rabbit-ui-kit/stories/molecules/index.html +1 -1
  142. package/coverage/rabbit-ui-kit/stories/organisms/Dialog/Dialog.stories.jsx.html +13 -79
  143. package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogButtons/DialogButtons.stories.jsx.html +3 -3
  144. package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogButtons/index.html +1 -1
  145. package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogStep/DialogStep.stories.jsx.html +4 -4
  146. package/coverage/rabbit-ui-kit/stories/organisms/Dialog/DialogStep/index.html +1 -1
  147. package/coverage/rabbit-ui-kit/stories/organisms/Dialog/index.html +5 -5
  148. package/coverage/rabbit-ui-kit/stories/stubs/exampleContent.jsx.html +1 -1
  149. package/coverage/rabbit-ui-kit/stories/stubs/index.html +1 -1
  150. package/coverage/rabbit-ui-kit/stories/templates/DeterminedErrorDialogStep.stories.jsx.html +7 -10
  151. package/coverage/rabbit-ui-kit/stories/templates/index.html +5 -5
  152. package/dist/index.cjs +488 -301
  153. package/dist/index.cjs.map +1 -1
  154. package/dist/index.css +21029 -21029
  155. package/dist/index.modern.js +346 -219
  156. package/dist/index.modern.js.map +1 -1
  157. package/dist/index.module.js +487 -302
  158. package/dist/index.module.js.map +1 -1
  159. package/dist/index.umd.js +488 -301
  160. package/dist/index.umd.js.map +1 -1
  161. package/package.json +3 -3
  162. package/src/{common → common-apis}/external-apis/ipAddressProviders.js +2 -2
  163. package/src/index.js +62 -66
  164. package/src/{robustExteranlApiCallerService → robust-api-caller}/cacheAndConcurrentRequestsResolver.js +2 -2
  165. package/src/{robustExteranlApiCallerService → robust-api-caller}/cachedRobustExternalApiCallerService.js +3 -3
  166. package/src/{robustExteranlApiCallerService → robust-api-caller}/concurrentCalculationsMetadataHolder.js +1 -1
  167. package/src/{robustExteranlApiCallerService → robust-api-caller}/externalServicesStatsCollector.js +2 -2
  168. package/src/{robustExteranlApiCallerService → robust-api-caller}/robustExternalAPICallerService.js +5 -5
  169. package/src/{robustExteranlApiCallerService → robust-api-caller}/tests/robustExternalAPICallerService/robustExternalAPICallerService/callExternalAPI/_performCallAttempt.test.js +2 -2
  170. package/src/{robustExteranlApiCallerService → robust-api-caller}/tests/robustExternalAPICallerService/robustExternalAPICallerService/callExternalAPI/callExternalAPI.test.js +1 -1
  171. package/src/{robustExteranlApiCallerService → robust-api-caller}/tests/robustExternalAPICallerService/robustExternalAPICallerService/constructor.test.js +1 -1
  172. package/src/swaps-lib/external-apis/swapProvider.js +1 -0
  173. package/src/swaps-lib/external-apis/swapspaceSwapProvider.js +27 -7
  174. package/src/swaps-lib/models/baseSwapCreationInfo.js +4 -1
  175. package/src/swaps-lib/services/publicSwapService.js +8 -7
  176. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/_fetchSupportedCurrenciesIfNeeded.test.js +3 -3
  177. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/createSwap.test.js +3 -3
  178. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/getAllSupportedCurrencies.test.js +1 -1
  179. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/getDepositCurrencies.test.js +1 -1
  180. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/getSwapInfo.test.js +124 -4
  181. package/src/swaps-lib/test/external-apis/swapspaceSwapProvider/getWithdrawalCurrencies.test.js +1 -1
  182. package/src/swaps-lib/test/utils/swapUtils/safeHandleRequestsLimitExceeding.test.js +2 -2
  183. package/src/swaps-lib/utils/swapUtils.js +6 -6
  184. package/{styles → src/ui-kit/assets/styles}/index.scss +1 -1
  185. package/src/{assets → ui-kit/assets}/wrappedImages/arrowWhite.jsx +1 -1
  186. package/src/{components → ui-kit/components}/atoms/AssetIcon/AssetIcon.jsx +5 -4
  187. package/src/{components → ui-kit/components}/atoms/AssetIcon/asset-icon.module.scss +1 -1
  188. package/src/{components → ui-kit/components}/atoms/AssetSelection/AssetSelection.jsx +8 -7
  189. package/src/{components → ui-kit/components}/atoms/AssetSelection/asset-selection.module.scss +1 -1
  190. package/src/{components → ui-kit/components}/atoms/BackgroundTitle/background-title.module.scss +1 -1
  191. package/src/{components → ui-kit/components}/atoms/InformationMessage/InformationMessage.jsx +6 -5
  192. package/src/{components → ui-kit/components}/atoms/InformationMessage/information-message.module.scss +1 -1
  193. package/src/{components → ui-kit/components}/atoms/Input/Input.jsx +23 -22
  194. package/src/{components → ui-kit/components}/atoms/Input/input.module.scss +1 -1
  195. package/src/{components → ui-kit/components}/atoms/LoadingDots/LoadingDots.module.scss +1 -1
  196. package/src/{components → ui-kit/components}/atoms/NoticeIcon/NoticeIcon.jsx +6 -7
  197. package/src/{components → ui-kit/components}/atoms/NoticeIcon/notice-icon.module.scss +1 -1
  198. package/src/{components → ui-kit/components}/atoms/QrCode/QrCode.jsx +3 -2
  199. package/src/{components → ui-kit/components}/atoms/QrCode/qr-code.module.scss +1 -1
  200. package/src/{components → ui-kit/components}/atoms/RateSelector/RateSelector.jsx +1 -0
  201. package/src/{components → ui-kit/components}/atoms/RateSelector/rate-selector.module.scss +1 -1
  202. package/src/{components → ui-kit/components}/atoms/SupportChat/SupportChat.jsx +1 -0
  203. package/src/{components → ui-kit/components}/atoms/Textarea/Textarea.jsx +19 -17
  204. package/src/{components → ui-kit/components}/atoms/Textarea/textarea.module.scss +1 -1
  205. package/src/{components → ui-kit/components}/atoms/TitleBox/TitleBox.jsx +19 -19
  206. package/src/{components → ui-kit/components}/atoms/TitleBox/title-box.module.scss +1 -1
  207. package/src/{components → ui-kit/components}/atoms/Tooltip/Tooltip.jsx +17 -8
  208. package/src/{components → ui-kit/components}/atoms/Tooltip/tooltip.module.scss +1 -1
  209. package/src/{components → ui-kit/components}/atoms/TwoLinesOfText/LinesOfText.jsx +11 -9
  210. package/src/{components → ui-kit/components}/atoms/TwoLinesOfText/lines-of-text.module.scss +1 -1
  211. package/src/{components → ui-kit/components}/atoms/Validation/Validation.jsx +2 -2
  212. package/src/{components → ui-kit/components}/atoms/Validation/validation.module.scss +1 -1
  213. package/src/{components → ui-kit/components}/atoms/buttons/Button/Button.module.scss +1 -1
  214. package/src/{components → ui-kit/components}/atoms/buttons/Close/Close.jsx +7 -2
  215. package/src/{components → ui-kit/components}/atoms/buttons/Close/close.module.scss +1 -1
  216. package/src/{components → ui-kit/components}/atoms/buttons/LinkButton/LinkButton.jsx +9 -3
  217. package/src/{components → ui-kit/components}/atoms/buttons/LinkButton/link-button.module.scss +1 -1
  218. package/src/{components → ui-kit/components}/atoms/buttons/RadioButtonWithText/RadioButtonWithText.jsx +1 -1
  219. package/src/{components → ui-kit/components}/atoms/buttons/RadioButtonWithText/radio-button-with-text.module.scss +1 -1
  220. package/src/{components → ui-kit/components}/molecules/AmountInput/AmountInput.jsx +5 -4
  221. package/src/{components → ui-kit/components}/molecules/AmountInput/amount-input.module.scss +1 -1
  222. package/src/{components → ui-kit/components}/molecules/CoinPicker/CoinPicker.jsx +27 -25
  223. package/src/{components → ui-kit/components}/molecules/CoinPicker/coin-picker.module.scss +1 -1
  224. package/src/{components → ui-kit/components}/molecules/LineWithIconLink/line-with-icon-link.module.scss +1 -1
  225. package/src/{components → ui-kit/components}/molecules/TitledLineWithIconLink/TitledLineWithIconLink.jsx +8 -6
  226. package/src/{components → ui-kit/components}/organisms/CoinPickerDialogStep/CoinPickerDialogStep.jsx +3 -1
  227. package/src/{components → ui-kit/components}/organisms/Dialog/Dialog.jsx +35 -6
  228. package/src/{components → ui-kit/components}/organisms/Dialog/DialogButtons/DialogButtons.jsx +3 -3
  229. package/src/{components → ui-kit/components}/organisms/Dialog/DialogButtons/dialog-buttons.module.scss +1 -1
  230. package/src/{components → ui-kit/components}/organisms/Dialog/DialogStep/DialogStep.jsx +49 -47
  231. package/src/{components → ui-kit/components}/organisms/Dialog/DialogStep/dialog-step.module.scss +1 -1
  232. package/src/{components → ui-kit/components}/organisms/Dialog/dialog.module.scss +1 -1
  233. package/src/{components → ui-kit/components}/organisms/SwapForm/SwapForm.jsx +158 -63
  234. package/src/{components → ui-kit/components}/organisms/SwapForm/swap-form.module.scss +1 -1
  235. package/src/{components → ui-kit/components}/templates/DeterminedErrorDialogStep/DeterminedErrorDialogStep.jsx +2 -2
  236. package/src/{components → ui-kit}/hooks/useCallHandlingErrors.js +1 -1
  237. package/src/ui-kit/hooks/useIsHydrated.js +12 -0
  238. package/src/{components → ui-kit}/utils/textUtils.js +1 -1
  239. package/coverage/rabbit-ui-kit/src/components/atoms/AssetIcon/index.html +0 -116
  240. package/coverage/rabbit-ui-kit/src/components/atoms/Input/index.html +0 -116
  241. package/coverage/rabbit-ui-kit/src/components/atoms/LoadingDots/index.html +0 -116
  242. package/coverage/rabbit-ui-kit/src/components/atoms/NoticeIcon/index.html +0 -116
  243. package/coverage/rabbit-ui-kit/src/components/atoms/QrCode/index.html +0 -116
  244. package/coverage/rabbit-ui-kit/src/components/atoms/RateSelector/index.html +0 -116
  245. package/coverage/rabbit-ui-kit/src/components/atoms/SupportChat/index.html +0 -116
  246. package/coverage/rabbit-ui-kit/src/components/atoms/Textarea/index.html +0 -116
  247. package/coverage/rabbit-ui-kit/src/components/atoms/TitleBox/index.html +0 -116
  248. package/coverage/rabbit-ui-kit/src/components/atoms/Tooltip/index.html +0 -116
  249. package/coverage/rabbit-ui-kit/src/components/atoms/TwoLinesOfText/index.html +0 -116
  250. package/coverage/rabbit-ui-kit/src/components/atoms/Validation/index.html +0 -116
  251. package/coverage/rabbit-ui-kit/src/components/molecules/AmountInput/index.html +0 -116
  252. package/coverage/rabbit-ui-kit/src/components/molecules/CoinPicker/index.html +0 -116
  253. package/coverage/rabbit-ui-kit/src/components/molecules/LineWithIconLink/index.html +0 -116
  254. package/coverage/rabbit-ui-kit/src/components/molecules/TitledLineWithIconLink/index.html +0 -116
  255. package/coverage/rabbit-ui-kit/src/components/organisms/CoinPickerDialogStep/index.html +0 -116
  256. package/coverage/rabbit-ui-kit/src/components/organisms/Dialog/index.html +0 -116
  257. package/coverage/rabbit-ui-kit/src/components/organisms/SwapForm/index.html +0 -116
  258. package/coverage/rabbit-ui-kit/src/components/templates/DeterminedErrorDialogStep/index.html +0 -116
  259. package/coverage/rabbit-ui-kit/src/constants/atoms/Close/close.jsx.html +0 -100
  260. package/coverage/rabbit-ui-kit/src/constants/atoms/Close/index.html +0 -116
  261. package/coverage/rabbit-ui-kit/src/constants/atoms/LinkButton/index.html +0 -116
  262. package/coverage/rabbit-ui-kit/src/constants/atoms/LinkButton/linkButton.jsx.html +0 -103
  263. package/coverage/rabbit-ui-kit/src/constants/atoms/Tooltip/index.html +0 -116
  264. package/coverage/rabbit-ui-kit/src/constants/atoms/Tooltip/tooltip.jsx.html +0 -109
  265. package/coverage/rabbit-ui-kit/src/constants/index.html +0 -116
  266. package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/DialogStep/dialogStep.js.html +0 -88
  267. package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/dialog.js.html +0 -172
  268. package/coverage/rabbit-ui-kit/src/constants/organisms/dialog/index.html +0 -116
  269. package/src/assets/image/icons/arrow-tosca.svg +0 -3
  270. package/src/constants/atoms/Close/close.jsx +0 -5
  271. package/src/constants/atoms/LinkButton/linkButton.jsx +0 -6
  272. package/src/constants/atoms/Tooltip/tooltip.jsx +0 -8
  273. package/src/constants/organisms/dialog/DialogStep/dialogStep.js +0 -1
  274. package/src/constants/organisms/dialog/dialog.js +0 -29
  275. /package/src/{common → common-apis}/adapters/axiosAdapter.js +0 -0
  276. /package/src/{common → common-apis}/adapters/qrUtils.js +0 -0
  277. /package/src/{common → common-apis}/amountUtils.js +0 -0
  278. /package/src/{common → common-apis}/errorUtils.js +0 -0
  279. /package/src/{common → common-apis}/external-apis/apiGroups.js +0 -0
  280. /package/src/{common → common-apis}/fiatCurrenciesService.js +0 -0
  281. /package/src/{constants → common-apis}/globalConstants.jsx +0 -0
  282. /package/src/{common → common-apis}/models/blockchain.js +0 -0
  283. /package/src/{common → common-apis}/models/coin.js +0 -0
  284. /package/src/{common → common-apis}/models/protocol.js +0 -0
  285. /package/src/{common → common-apis}/tests/amountUtils/composeRateText.test.js +0 -0
  286. /package/src/{common → common-apis}/tests/integration/external-apis/ipAddressProviders/getClientIpAddress.test.js +0 -0
  287. /package/src/{common → common-apis}/utils/cache.js +0 -0
  288. /package/src/{common → common-apis}/utils/emailAPI.js +0 -0
  289. /package/src/{common → common-apis}/utils/logging/logger.js +0 -0
  290. /package/src/{common → common-apis}/utils/logging/logsStorage.js +0 -0
  291. /package/src/{common → common-apis}/utils/postponeExecution.js +0 -0
  292. /package/src/{common → common-apis}/utils/safeStringify.js +0 -0
  293. /package/src/{robustExteranlApiCallerService → robust-api-caller}/cancelProcessing.js +0 -0
  294. /package/src/{robustExteranlApiCallerService → robust-api-caller}/externalApiProvider.js +0 -0
  295. /package/{styles → src/ui-kit/assets/styles}/_functions.scss +0 -0
  296. /package/{styles → src/ui-kit/assets/styles}/_global-classes.scss +0 -0
  297. /package/{styles → src/ui-kit/assets/styles}/_mixins.scss +0 -0
  298. /package/{styles → src/ui-kit/assets/styles}/_placeholder.scss +0 -0
  299. /package/{styles → src/ui-kit/assets/styles}/_variables.scss +0 -0
  300. /package/{styles → src/ui-kit/assets/styles}/colors/_light-colors.scss +0 -0
  301. /package/{styles → src/ui-kit/assets/styles}/colors/_solid-colors.scss +0 -0
  302. /package/{styles → src/ui-kit/assets/styles}/fonts/NunitoSans-Bold.ttf +0 -0
  303. /package/{styles → src/ui-kit/assets/styles}/fonts/NunitoSans-ExtraBold.ttf +0 -0
  304. /package/{styles → src/ui-kit/assets/styles}/fonts/NunitoSans-Light.ttf +0 -0
  305. /package/{styles → src/ui-kit/assets/styles}/fonts/NunitoSans-Regular.ttf +0 -0
  306. /package/{styles → src/ui-kit/assets/styles}/fonts/NunitoSans-SemiBold.ttf +0 -0
  307. /package/{styles → src/ui-kit/assets/styles}/global-styles-index.scss +0 -0
  308. /package/{styles → src/ui-kit/assets/styles}/size/_margin-size.scss +0 -0
  309. /package/{styles → src/ui-kit/assets/styles}/size/_padding-size.scss +0 -0
  310. /package/src/{assets → ui-kit/assets}/wrappedImages/arrowIcon.jsx +0 -0
  311. /package/src/{assets → ui-kit/assets}/wrappedImages/arrowTosca.jsx +0 -0
  312. /package/src/{assets → ui-kit/assets}/wrappedImages/darkRectangle.jsx +0 -0
  313. /package/src/{assets → ui-kit/assets}/wrappedImages/determinedError.jsx +0 -0
  314. /package/src/{assets → ui-kit/assets}/wrappedImages/failedValidationIcon.jsx +0 -0
  315. /package/src/{assets → ui-kit/assets}/wrappedImages/infoIcon.jsx +0 -0
  316. /package/src/{assets → ui-kit/assets}/wrappedImages/noticeQuestionIcon.jsx +0 -0
  317. /package/src/{assets → ui-kit/assets}/wrappedImages/successfulValidationIcon.jsx +0 -0
  318. /package/src/{assets → ui-kit/assets}/wrappedImages/walletIcon.jsx +0 -0
  319. /package/src/{components → ui-kit/components}/atoms/BackgroundTitle/BackgroundTitle.jsx +0 -0
  320. /package/src/{components → ui-kit/components}/atoms/LoadingDots/LoadingDots.jsx +0 -0
  321. /package/src/{components → ui-kit/components}/atoms/buttons/Button/Button.jsx +0 -0
  322. /package/src/{components → ui-kit/components}/molecules/LineWithIconLink/LineWithIconLink.jsx +0 -0
  323. /package/src/{components → ui-kit}/hooks/useReferredState.js +0 -0
  324. /package/src/{components → ui-kit}/tests/utils/inputValueProviders/provideFormatOfFloatValueByInputString.test.js +0 -0
  325. /package/src/{components → ui-kit}/tests/utils/urlQueryUtils/getQueryParameterValues.test.js +0 -0
  326. /package/src/{components → ui-kit}/tests/utils/urlQueryUtils/saveQueryParameterAndValues.test.js +0 -0
  327. /package/src/{components → ui-kit}/utils/inputValueProviders.js +0 -0
  328. /package/src/{components → ui-kit}/utils/uiUtils.js +0 -0
  329. /package/src/{components → ui-kit}/utils/urlQueryUtils.js +0 -0
@@ -2,8 +2,8 @@ import sinon from "sinon";
2
2
  import should from "should";
3
3
 
4
4
  import { beforeEach, afterEach, describe, it } from "vitest";
5
- import { Logger } from "../../../../common/utils/logging/logger.js";
6
- import { EmailsApi } from "../../../../common/utils/emailAPI.js";
5
+ import { Logger } from "../../../../common-apis/utils/logging/logger.js";
6
+ import { EmailsApi } from "../../../../common-apis/utils/emailAPI.js";
7
7
  import { SwapUtils } from "../../../utils/swapUtils.js";
8
8
 
9
9
  describe("SwapUtils", function () {
@@ -1,13 +1,13 @@
1
1
  import { BigNumber } from "bignumber.js";
2
2
 
3
- import { AmountUtils } from "../../common/amountUtils.js";
4
- import { FiatCurrenciesService } from "../../common/fiatCurrenciesService.js";
5
- import { improveAndRethrow } from "../../common/errorUtils.js";
3
+ import { AmountUtils } from "../../common-apis/amountUtils.js";
4
+ import { FiatCurrenciesService } from "../../common-apis/fiatCurrenciesService.js";
5
+ import { improveAndRethrow } from "../../common-apis/errorUtils.js";
6
6
  import { ExistingSwapWithFiatData } from "../models/existingSwapWithFiatData.js";
7
- import { EmailsApi } from "../../common/utils/emailAPI.js";
7
+ import { EmailsApi } from "../../common-apis/utils/emailAPI.js";
8
8
  import { SwapProvider } from "../external-apis/swapProvider.js";
9
- import { Logger } from "../../common/utils/logging/logger.js";
10
- import { safeStringify } from "../../common/utils/safeStringify.js";
9
+ import { Logger } from "../../common-apis/utils/logging/logger.js";
10
+ import { safeStringify } from "../../common-apis/utils/safeStringify.js";
11
11
 
12
12
  export class SwapUtils {
13
13
  /**
@@ -1,7 +1,7 @@
1
1
  @import "variables";
2
2
  @import "global-classes";
3
3
  @import "placeholder";
4
- @import "_mixins";
4
+ @import "mixins";
5
5
 
6
6
  // TODO: [feature, high] Uncomment fonts after adding a new packaging tool. task_id=7375fa84ccab4d66b9e3a177a41f7e26
7
7
  @font-face {
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- // Originally: arrow-tosca.svg
3
+ // Originally: arrow-white.svg
4
4
  export default () => (
5
5
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
6
6
  <path
@@ -7,10 +7,11 @@ import s from "./asset-icon.module.scss";
7
7
  * AssetIcon component to display an icon for an asset.
8
8
  *
9
9
  * @component
10
- * @param {string} assetIconSrc - The source URL for the asset icon.
11
- * @param {string} [assetIconProtocolSrc=null] - The source URL for the asset icon that is base for this asset (e.g. ETH for USDT ERC20).
12
- * @param {string} [fallbackSrc=null] - The fallback source URL in case the main source fails to load.
13
- * @param {boolean} [small=false] - Whether to display a smaller version of the icon.
10
+ * @param {Object} props - The props object.
11
+ * @param {string} props.assetIconSrc - The source URL for the asset icon.
12
+ * @param {string} [props.assetIconProtocolSrc=null] - The source URL for the asset icon that is base for this asset (e.g. ETH for USDT ERC20).
13
+ * @param {string} [props.fallbackSrc=null] - The fallback source URL in case the main source fails to load.
14
+ * @param {boolean} [props.small=false] - Whether to display a smaller version of the icon.
14
15
  */
15
16
  export const AssetIcon = ({ assetIconSrc, assetIconProtocolSrc = null, fallbackSrc = null, small = false }) => {
16
17
  const handleFailedLoad = e => {
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .asset-icon {
4
4
  width: 34px;
@@ -6,18 +6,19 @@ import ArrowIcon from "../../../assets/wrappedImages/arrowIcon.jsx";
6
6
 
7
7
  import { AssetIcon } from "../AssetIcon/AssetIcon.jsx";
8
8
 
9
- import { useCallHandlingErrors } from "../../hooks/useCallHandlingErrors.js";
9
+ import { useCallHandlingErrors } from "../../../hooks/useCallHandlingErrors.js";
10
10
 
11
11
  /**
12
12
  * Component-button for triggering selecting an asset.
13
13
  *
14
14
  * @component
15
- * @param {Function} handleClick - The function to call when the component is clicked
16
- * @param {boolean} disabled - If true, disables click functionality
17
- * @param {string} assetIconSrc - The source URL for the asset icon
18
- * @param {string} [protocolName] - The name of the protocol, if any
19
- * @param {string} [assetIconProtocolSrc] - The source URL for the asset protocol icon
20
- * @param {string} [fallbackSrc] - The fallback source URL if the main asset icon fails to load
15
+ * @param {Object} props - The props object.
16
+ * @param {Function} props.handleClick - The function to call when the component is clicked.
17
+ * @param {boolean} props.disabled - If true, disables click functionality.
18
+ * @param {string} props.assetIconSrc - The source URL for the asset icon.
19
+ * @param {string} [props.protocolName] - The name of the protocol, if any.
20
+ * @param {string} [props.assetIconProtocolSrc] - The source URL for the asset protocol icon.
21
+ * @param {string} [props.fallbackSrc] - The fallback source URL if the main asset icon fails to load.
21
22
  */
22
23
  export const AssetSelection = ({
23
24
  handleClick = () => {},
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .asset-selection {
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .background-title {
4
4
  pointer-events: none;
@@ -9,11 +9,12 @@ import InfoIcon from "../../../assets/wrappedImages/infoIcon.jsx";
9
9
  * InformationMessage component to display an informational message with an optional icon.
10
10
  *
11
11
  * @component
12
- * @param {string} [text=""] - The text content of the message.
13
- * @param {string|boolean} [icon=false] - The URL or boolean indicating whether to display an icon.
14
- * @param {boolean} [bigImage=false] - Whether to use a larger image for the icon.
15
- * @param {boolean} [whiteText=false] - Whether the text should be displayed in white color.
16
- * @param {ReactNode} [children=null] - Additional child components.
12
+ * @param {Object} props - The props object.
13
+ * @param {string} [props.text=""] - The text content of the message.
14
+ * @param {string|boolean} [props.icon=false] - The URL or boolean indicating whether to display an icon.
15
+ * @param {boolean} [props.bigImage=false] - Whether to use a larger image for the icon.
16
+ * @param {boolean} [props.whiteText=false] - Whether the text should be displayed in white color.
17
+ * @param {ReactNode} [props.children=null] - Additional child components.
17
18
  */
18
19
  export const InformationMessage = ({
19
20
  text = "",
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .information-message {
4
4
  display: flex;
@@ -3,8 +3,8 @@ import PropTypes from "prop-types";
3
3
 
4
4
  import s from "./input.module.scss";
5
5
 
6
- import { useCallHandlingErrors } from "../../hooks/useCallHandlingErrors.js";
7
- import { logErrorOrOutputToConsole } from "../../../common/errorUtils.js";
6
+ import { useCallHandlingErrors } from "../../../hooks/useCallHandlingErrors.js";
7
+ import { logErrorOrOutputToConsole } from "../../../../common-apis/errorUtils.js";
8
8
 
9
9
  import { Close } from "../buttons/Close/Close.jsx";
10
10
  import { Validation } from "../Validation/Validation.jsx";
@@ -13,26 +13,27 @@ import { Validation } from "../Validation/Validation.jsx";
13
13
  * Input component for forms.
14
14
  *
15
15
  * @component
16
- * @param {string} [type="text"] - The type of input (e.g., "text", "number", "email").
17
- * @param {string} [name=""] - The name of the input field.
18
- * @param {function} [onChange=() => {}] - Function called when the input value changes.
19
- * @param {string} [alertText=""] - Text for alert messages.
20
- * @param {string} [placeholder=""] - Placeholder text for the input.
21
- * @param {string} [className=""] - Additional CSS classes for styling.
22
- * @param {string} [defaultValue=""] - Default value for the input.
23
- * @param {boolean} [isBigHeight=false] - Whether the input has a larger height.
24
- * @param {boolean} [isSmallHeight=false] - Whether the input has a smaller height.
25
- * @param {string} [label=""] - Label text for the input.
26
- * @param {string} [id=null] - Unique ID for the input.
27
- * @param {string} [value=""] - Value of the input.
28
- * @param {string} [successAlertText=""] - Text for success alert messages.
29
- * @param {boolean} [disabled=false] - Whether the input is disabled.
30
- * @param {function} [onKeyUp=() => {}] - Function called on key up event.
31
- * @param {boolean} [autoFocus=false] - Whether the input should be autofocused.
32
- * @param {boolean} [fillWidth=false] - Whether the input should fill the width of its container.
33
- * @param {boolean} [clearButton=false] - Whether to show a clear button for the input.
34
- * @param {boolean} [imageBackground=false] - Whether the input has an image background.
35
- * @param {boolean} [errorEncountered=false] - Whether an error has been encountered for the input.
16
+ * @param {Object} props - The props object.
17
+ * @param {string} [props.type="text"] - The type of input (e.g., "text", "number", "email").
18
+ * @param {string} [props.name=""] - The name of the input field.
19
+ * @param {function} [props.onChange=() => {}] - Function called when the input value changes.
20
+ * @param {string} [props.alertText=""] - Text for alert messages.
21
+ * @param {string} [props.placeholder=""] - Placeholder text for the input.
22
+ * @param {string} [props.className=""] - Additional CSS classes for styling.
23
+ * @param {string} [props.defaultValue=""] - Default value for the input.
24
+ * @param {boolean} [props.isBigHeight=false] - Whether the input has a larger height.
25
+ * @param {boolean} [props.isSmallHeight=false] - Whether the input has a smaller height.
26
+ * @param {string} [props.label=""] - Label text for the input.
27
+ * @param {string} [props.id=null] - Unique ID for the input.
28
+ * @param {string} [props.value=""] - Value of the input.
29
+ * @param {string} [props.successAlertText=""] - Text for success alert messages.
30
+ * @param {boolean} [props.disabled=false] - Whether the input is disabled.
31
+ * @param {function} [props.onKeyUp=() => {}] - Function called on key up event.
32
+ * @param {boolean} [props.autoFocus=false] - Whether the input should be autofocused.
33
+ * @param {boolean} [props.fillWidth=false] - Whether the input should fill the width of its container.
34
+ * @param {boolean} [props.clearButton=false] - Whether to show a clear button for the input.
35
+ * @param {boolean} [props.imageBackground=false] - Whether the input has an image background.
36
+ * @param {boolean} [props.errorEncountered=false] - Whether an error has been encountered for the input.
36
37
  */
37
38
  export const Input = forwardRef(
38
39
  (
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .input {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .loading-dots {
4
4
  display: flex;
@@ -3,19 +3,18 @@ import PropTypes from "prop-types";
3
3
 
4
4
  import s from "./notice-icon.module.scss";
5
5
 
6
- import { handleClickOutside } from "../../utils/uiUtils.js";
7
- import { Tooltip } from "../Tooltip/Tooltip.jsx";
6
+ import { handleClickOutside } from "../../../utils/uiUtils.js";
7
+ import { Tooltip, TOOLTIP_POSITIONS } from "../Tooltip/Tooltip.jsx";
8
8
  import NoticeQuestionIcon from "../../../assets/wrappedImages/noticeQuestionIcon.jsx";
9
9
 
10
- import { TOOLTIP_POSITIONS } from "../../../constants/atoms/Tooltip/tooltip.jsx";
11
-
12
10
  /**
13
11
  * A component that displays a notice icon with optional tooltip.
14
12
  *
15
13
  * @component
16
- * @param {string} noticeText - The text to display inside the tooltip.
17
- * @param {string} [titleNoticeIcon] - The source URL for the icon displayed on the notice.
18
- * @param {string} tooltipPosition - Position for the tooltip relative to the icon.
14
+ * @param {Object} props - The props object.
15
+ * @param {string} props.noticeText - The text to display inside the tooltip.
16
+ * @param {string} [props.titleNoticeIcon] - The source URL for the icon displayed on the notice.
17
+ * @param {string} props.tooltipPosition - Position for the tooltip relative to the icon.
19
18
  */
20
19
  export const NoticeIcon = ({ noticeText, titleNoticeIcon = "", tooltipPosition = TOOLTIP_POSITIONS.TOP }) => {
21
20
  const [showTooltip, setShowTooltip] = useState(false);
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .notice-icon {
4
4
  position: relative;
@@ -1,11 +1,12 @@
1
1
  import React, { useRef, useEffect } from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
- import { logErrorOrOutputToConsole } from "../../../common/errorUtils";
5
- import { generateQrAndShowInCanvas } from "../../../common/adapters/qrUtils";
4
+ import { logErrorOrOutputToConsole } from "../../../../common-apis/errorUtils.js";
5
+ import { generateQrAndShowInCanvas } from "../../../../common-apis/adapters/qrUtils.js";
6
6
 
7
7
  import s from "./qr-code.module.scss";
8
8
 
9
+ // TODO: [dev] add JSDoc
9
10
  export const QrCode = ({ address, fill = false }) => {
10
11
  const canvasRef = useRef();
11
12
 
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .qr-code {
4
4
  width: 180px !important;
@@ -2,6 +2,7 @@ import React from "react";
2
2
 
3
3
  import s from "./rate-selector.module.scss";
4
4
 
5
+ // TODO: [dev] add JSDoc
5
6
  export const RateSelector = ({
6
7
  isFixed = false,
7
8
  setIsFixed = () => {},
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .rate-selector {
4
4
  background-color: SolidColor("lightsmoke");
@@ -1,6 +1,7 @@
1
1
  import { useEffect } from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
+ // TODO: [dev] add JSDoc
4
5
  export const SupportChat = ({ url, websiteToken, welcomeMessage = "", locale = "en" }) => {
5
6
  useEffect(() => {
6
7
  window.chatwootSettings = {
@@ -4,27 +4,29 @@ import PropTypes from "prop-types";
4
4
 
5
5
  import s from "./textarea.module.scss";
6
6
 
7
- import { useCallHandlingErrors } from "../../hooks/useCallHandlingErrors";
8
- import { Validation } from "../Validation/Validation";
7
+ import { useCallHandlingErrors } from "../../../hooks/useCallHandlingErrors.js";
8
+ import { Validation } from "../Validation/Validation.jsx";
9
9
 
10
10
  /**
11
11
  * A textarea component with optional adaptive height and validation messaging.
12
12
  *
13
- * @param {string} name - The name of the textarea.
14
- * @param {function} onChange - Handler for change events.
15
- * @param {string} placeholder - Placeholder text for the textarea.
16
- * @param {string} alertText - Text for the alert message.
17
- * @param {string} successAlertText - Text for the success alert message.
18
- * @param {string} value - Value of the textarea.
19
- * @param {string} label - Label text for the textarea.
20
- * @param {string|null} id - ID for the textarea element.
21
- * @param {boolean} autoFocus - If the textarea should be auto-focused.
22
- * @param {boolean} fullHeight - If the textarea should be full height.
23
- * @param {boolean} smallText - If the textarea should use small text styling.
24
- * @param {boolean} adaptiveHeight - If the textarea should adjust its height based on content.
25
- * @param {boolean} disabled - If the textarea is disabled.
26
- * @param {boolean} errorEncountered - If there is an error related to the textarea.
27
- * @param {boolean} ignoreEnter - If Enter key presses should be ignored.
13
+ * @component
14
+ * @param {Object} props - The props object.
15
+ * @param {string} props.name - The name of the textarea.
16
+ * @param {function} props.onChange - Handler for change events.
17
+ * @param {string} props.placeholder - Placeholder text for the textarea.
18
+ * @param {string} props.alertText - Text for the alert message.
19
+ * @param {string} props.successAlertText - Text for the success alert message.
20
+ * @param {string} props.value - Value of the textarea.
21
+ * @param {string} props.label - Label text for the textarea.
22
+ * @param {string|null} props.id - ID for the textarea element.
23
+ * @param {boolean} props.autoFocus - If the textarea should be auto-focused.
24
+ * @param {boolean} props.fullHeight - If the textarea should be full height.
25
+ * @param {boolean} props.smallText - If the textarea should use small text styling.
26
+ * @param {boolean} props.adaptiveHeight - If the textarea should adjust its height based on content.
27
+ * @param {boolean} props.disabled - If the textarea is disabled.
28
+ * @param {boolean} props.errorEncountered - If there is an error related to the textarea.
29
+ * @param {boolean} props.ignoreEnter - If Enter key presses should be ignored.
28
30
  */
29
31
  export const Textarea = forwardRef(
30
32
  (
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .textarea {
4
4
  display: flex;
@@ -3,33 +3,33 @@ import PropTypes from "prop-types";
3
3
 
4
4
  import s from "./title-box.module.scss";
5
5
 
6
- import { useCallHandlingErrors } from "../../hooks/useCallHandlingErrors.js";
7
- import { copyBrowserTextToClipboard } from "../../utils/textUtils.js";
8
- import { TOOLTIP_POSITIONS } from "../../../constants/atoms/Tooltip/tooltip.jsx";
6
+ import { useCallHandlingErrors } from "../../../hooks/useCallHandlingErrors.js";
7
+ import { copyBrowserTextToClipboard } from "../../../utils/textUtils.js";
9
8
 
10
9
  import { NoticeIcon } from "../NoticeIcon/NoticeIcon.jsx";
11
10
  import { LinkButton } from "../buttons/LinkButton/LinkButton.jsx";
12
- import { Tooltip } from "../Tooltip/Tooltip.jsx";
11
+ import { Tooltip, TOOLTIP_POSITIONS } from "../Tooltip/Tooltip.jsx";
13
12
 
14
13
  /**
15
14
  * A box component for displaying a title with optional controls like buttons or icons and any children inside.
16
15
  *
17
16
  * @component
18
- * @param {string} title - The main title text.
19
- * @param {string} linkText - The text for the link button, if any.
20
- * @param {Function} linkButtonClick - The function to execute when the link button is clicked.
21
- * @param {boolean} isLinkButtonDisabled - Determines if the link button is disabled.
22
- * @param {React.ReactNode} children - Child components to be rendered.
23
- * @param {boolean} linkButtonLoader - Displays a loader animation on the link button if true.
24
- * @param {boolean} fullWidth - If true, the title box will take full width of its container.
25
- * @param {string} titleNoticeText - The text for a notice icon tooltip.
26
- * @param {string} titleNoticeIcon - The icon for the notice tooltip.
27
- * @param {string} titleNoticePosition - Tooltip position for the notice icon.
28
- * @param {boolean} bigTitle - If true, uses a larger font size for the title.
29
- * @param {boolean} transparentTitle - If true, the title has a transparent background.
30
- * @param {string} copyButtonText - The text for the copy button.
31
- * @param {string} copyButtonContent - The content to be copied to the clipboard.
32
- * @param {string} copyButtonTooltipContent - Tooltip content displayed after copying.
17
+ * @param {Object} props - The props object.
18
+ * @param {string} props.title - The main title text.
19
+ * @param {string} [props.linkText] - The text for the link button, if any.
20
+ * @param {Function} [props.linkButtonClick] - The function to execute when the link button is clicked.
21
+ * @param {boolean} [props.isLinkButtonDisabled] - Determines if the link button is disabled.
22
+ * @param {React.ReactNode} props.children - Child components to be rendered.
23
+ * @param {boolean} [props.linkButtonLoader] - Displays a loader animation on the link button if true.
24
+ * @param {boolean} [props.fullWidth] - If true, the title box will take full width of its container.
25
+ * @param {string} [props.titleNoticeText] - The text for a notice icon tooltip.
26
+ * @param {string} [props.titleNoticeIcon] - The icon for the notice tooltip.
27
+ * @param {string} [props.titleNoticePosition] - Tooltip position for the notice icon.
28
+ * @param {boolean} [props.bigTitle] - If true, uses a larger font size for the title.
29
+ * @param {boolean} [props.transparentTitle] - If true, the title has a transparent background.
30
+ * @param {string} [props.copyButtonText] - The text for the copy button.
31
+ * @param {string} [props.copyButtonContent] - The content to be copied to the clipboard.
32
+ * @param {string} [props.copyButtonTooltipContent] - Tooltip content displayed after copying.
33
33
  */
34
34
  export const TitleBox = ({
35
35
  title = "",
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .title-box {
4
4
  &.full-width {
@@ -5,19 +5,28 @@ import PropTypes from "prop-types";
5
5
  import s from "./tooltip.module.scss";
6
6
  import DarkRectangle from "../../../assets/wrappedImages/darkRectangle.jsx";
7
7
 
8
- import { useCallHandlingErrors } from "../../hooks/useCallHandlingErrors.js";
9
- import { TOOLTIP_POSITIONS } from "../../../constants/atoms/Tooltip/tooltip.jsx";
8
+ import { useCallHandlingErrors } from "../../../hooks/useCallHandlingErrors.js";
9
+
10
+ export const TOOLTIP_POSITIONS = {
11
+ TOP: "top",
12
+ LEFT: "left",
13
+ RIGHT: "right",
14
+ BOTTOM: "bottom",
15
+ TOP_LEFT: "top-left",
16
+ TOP_RIGHT: "top-right",
17
+ };
10
18
 
11
19
  /**
12
20
  * Tooltip component for displaying contextual information.
13
21
  *
14
22
  * @component
15
- * @param {React.ReactNode} children - The content to display inside the tooltip.
16
- * @param {boolean} showTooltip - Controls whether the tooltip is visible.
17
- * @param {Function} handleClick - Handler for click events.
18
- * @param {boolean} wide - If true, applies a wider style to the tooltip.
19
- * @param {string} position - One of the predefined positions for the tooltip.
20
- * @param {boolean} ignorePointerEvents - If true, the tooltip will not react to pointer events.
23
+ * @param {Object} props - The props object.
24
+ * @param {React.ReactNode} props.children - The content to display inside the tooltip.
25
+ * @param {boolean} props.showTooltip - Controls whether the tooltip is visible.
26
+ * @param {Function} props.handleClick - Handler for click events.
27
+ * @param {boolean} [props.wide] - If true, applies a wider style to the tooltip.
28
+ * @param {string} props.position - One of the predefined positions for the tooltip.
29
+ * @param {boolean} [props.ignorePointerEvents] - If true, the tooltip will not react to pointer events.
21
30
  */
22
31
  export const Tooltip = ({
23
32
  children,
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .tooltip {
4
4
  @include typograpy("p");
@@ -7,15 +7,17 @@ import s from "./lines-of-text.module.scss";
7
7
  * Renders up to three lines of text with configurable options for horizontal layout, text wrapping, and breaking.
8
8
  * Optionally, displays a default text content centered vertically if provided.
9
9
  *
10
- * @param {string} firstLineText - Text for the first line.
11
- * @param {string} secondLineText - Text for the second line.
12
- * @param {string} thirdLineText - Text for the third line.
13
- * @param {boolean} isHorizontal - If true, displays the text horizontally.
14
- * @param {string} defaultTextContent - Default text content to display, centered vertically.
15
- * @param {boolean} isFirstLineTextReducible - If true, the first line text can be reduced.
16
- * @param {string} firstLineNotReducibleSuffix - Suffix to append to the first line text if not reducible.
17
- * @param {boolean} wrapFirstLine - If true, allows the first line text to wrap.
18
- * @param {boolean} breakFirstLine - If true, allows the first line text to break onto the next line.
10
+ * @component
11
+ * @param {Object} props - The props object.
12
+ * @param {string} props.firstLineText - Text for the first line.
13
+ * @param {string} props.secondLineText - Text for the second line.
14
+ * @param {string} props.thirdLineText - Text for the third line.
15
+ * @param {boolean} props.isHorizontal - If true, displays the text horizontally.
16
+ * @param {string} [props.defaultTextContent] - Default text content to display, centered vertically.
17
+ * @param {boolean} [props.isFirstLineTextReducible] - If true, the first line text can be reduced.
18
+ * @param {string} [props.firstLineNotReducibleSuffix] - Suffix to append to the first line text if not reducible.
19
+ * @param {boolean} [props.wrapFirstLine] - If true, allows the first line text to wrap.
20
+ * @param {boolean} [props.breakFirstLine] - If true, allows the first line text to break onto the next line.
19
21
  */
20
22
  export const LinesOfText = ({
21
23
  firstLineText = "",
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .first-line-text {
4
4
  display: flex;
@@ -2,8 +2,8 @@ import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
4
  import s from "./validation.module.scss";
5
- import SuccessfulValidationIcon from "../../../assets/wrappedImages/successfulValidationIcon";
6
- import FailedValidationIcon from "../../../assets/wrappedImages/failedValidationIcon";
5
+ import SuccessfulValidationIcon from "../../../assets/wrappedImages/successfulValidationIcon.jsx";
6
+ import FailedValidationIcon from "../../../assets/wrappedImages/failedValidationIcon.jsx";
7
7
 
8
8
  /**
9
9
  * Simple validation message with an icon.
@@ -1,4 +1,4 @@
1
- @import "../../../../styles/index";
1
+ @import "../../../assets/styles/index";
2
2
 
3
3
  .validation {
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- @import "../../../../../styles/index";
1
+ @import "../../../../assets/styles/index";
2
2
 
3
3
  .button {
4
4
  @extend %text-very-bold;
@@ -3,8 +3,13 @@ import PropTypes from "prop-types";
3
3
 
4
4
  import s from "./close.module.scss";
5
5
 
6
- import { useCallHandlingErrors } from "../../../hooks/useCallHandlingErrors";
7
- import { CLOSE_COLORS } from "../../../../constants/atoms/Close/close";
6
+ import { useCallHandlingErrors } from "../../../../hooks/useCallHandlingErrors.js";
7
+
8
+ export const CLOSE_COLORS = {
9
+ WHITE: "white",
10
+ DARK: "dark",
11
+ DARK_INVERT: "dark-invert",
12
+ };
8
13
 
9
14
  /**
10
15
  * A component for rendering a close icon that handles errors on click.
@@ -1,4 +1,4 @@
1
- @import "../../../../../styles/index";
1
+ @import "../../../../assets/styles/index";
2
2
 
3
3
  .close {
4
4
  width: 24px;
@@ -1,11 +1,17 @@
1
1
  import React, { useEffect, useState } from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
- import { useCallHandlingErrors } from "../../../hooks/useCallHandlingErrors";
5
- import { ICON_ROTATE_OPTIONS } from "../../../../constants/atoms/LinkButton/linkButton";
4
+ import { useCallHandlingErrors } from "../../../../hooks/useCallHandlingErrors.js";
6
5
 
7
6
  import s from "./link-button.module.scss";
8
- import { LoadingDots } from "../../LoadingDots/LoadingDots";
7
+ import { LoadingDots } from "../../LoadingDots/LoadingDots.jsx";
8
+
9
+ export const ICON_ROTATE_OPTIONS = {
10
+ rotate0: "0deg",
11
+ rotate90: "90deg",
12
+ rotate180: "180deg",
13
+ rotate270: "270deg",
14
+ };
9
15
 
10
16
  /**
11
17
  * LinkButton renders a clickable button which can optionally display an icon and loading animation.
@@ -1,4 +1,4 @@
1
- @import "../../../../../styles/index";
1
+ @import "../../../../assets/styles/index";
2
2
 
3
3
  .link-button {
4
4
  display: flex;
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
3
3
 
4
4
  import s from "./radio-button-with-text.module.scss";
5
5
 
6
- import { useCallHandlingErrors } from "../../../hooks/useCallHandlingErrors.js";
6
+ import { useCallHandlingErrors } from "../../../../hooks/useCallHandlingErrors.js";
7
7
 
8
8
  import { Tooltip } from "../../Tooltip/Tooltip.jsx";
9
9
  import { LoadingDots } from "../../LoadingDots/LoadingDots.jsx";