@getpara/react-sdk 2.0.0-alpha.7 → 2.0.0-alpha.71

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 (311) hide show
  1. package/README.md +21 -0
  2. package/dist/cosmos/actions/getCosmjsAminoSigner.d.ts +8 -0
  3. package/dist/cosmos/actions/getCosmjsAminoSigner.js +16 -0
  4. package/dist/cosmos/actions/getCosmjsProtoSigner.d.ts +8 -0
  5. package/dist/cosmos/actions/getCosmjsProtoSigner.js +16 -0
  6. package/dist/cosmos/actions/index.d.ts +2 -0
  7. package/dist/cosmos/actions/index.js +3 -0
  8. package/dist/cosmos/hooks/index.d.ts +2 -0
  9. package/dist/cosmos/hooks/index.js +3 -0
  10. package/dist/cosmos/hooks/useCosmjsAminoSigner.d.ts +11 -0
  11. package/dist/cosmos/hooks/useCosmjsAminoSigner.js +37 -0
  12. package/dist/cosmos/hooks/useCosmjsProtoSigner.d.ts +11 -0
  13. package/dist/cosmos/hooks/useCosmjsProtoSigner.js +37 -0
  14. package/dist/cosmos/index.d.ts +2 -0
  15. package/dist/cosmos/index.js +3 -0
  16. package/dist/css/modal.css +14 -1
  17. package/dist/evm/actions/getViemAccount.d.ts +22 -0
  18. package/dist/evm/actions/getViemAccount.js +20 -0
  19. package/dist/evm/actions/getViemClient.d.ts +17993 -0
  20. package/dist/evm/actions/getViemClient.js +25 -0
  21. package/dist/evm/actions/index.d.ts +2 -0
  22. package/dist/evm/actions/index.js +3 -0
  23. package/dist/evm/hooks/index.d.ts +2 -0
  24. package/dist/evm/hooks/index.js +3 -0
  25. package/dist/evm/hooks/useViemAccount.d.ts +26 -0
  26. package/dist/evm/hooks/useViemAccount.js +32 -0
  27. package/dist/evm/hooks/useViemClient.d.ts +17997 -0
  28. package/dist/evm/hooks/useViemClient.js +30 -0
  29. package/dist/evm/index.d.ts +2 -0
  30. package/dist/evm/index.js +3 -0
  31. package/dist/index.d.ts +3 -6
  32. package/dist/index.js +4 -9
  33. package/dist/provider/ParaProvider.d.ts +1 -2
  34. package/dist/provider/ParaProvider.js +17 -76
  35. package/dist/public/PPMori-Regular.woff2 +0 -0
  36. package/dist/public/PPMori-SemiBold.woff2 +0 -0
  37. package/dist/solana/actions/getSolanaSigner.d.ts +8 -0
  38. package/dist/solana/actions/getSolanaSigner.js +15 -0
  39. package/dist/solana/actions/index.d.ts +1 -0
  40. package/dist/solana/actions/index.js +2 -0
  41. package/dist/solana/hooks/index.d.ts +1 -0
  42. package/dist/solana/hooks/index.js +2 -0
  43. package/dist/solana/hooks/useSolanaSigner.d.ts +12 -0
  44. package/dist/solana/hooks/useSolanaSigner.js +32 -0
  45. package/dist/solana/index.d.ts +2 -0
  46. package/dist/solana/index.js +3 -0
  47. package/package.json +37 -51
  48. package/styles.css/package.json +1 -1
  49. package/dist/cli/cli.mjs +0 -35
  50. package/dist/modal/ParaModal.d.ts +0 -2
  51. package/dist/modal/ParaModal.js +0 -262
  52. package/dist/modal/components/Account/Account.d.ts +0 -5
  53. package/dist/modal/components/Account/Account.js +0 -139
  54. package/dist/modal/components/AddFunds/AddFunds.d.ts +0 -1
  55. package/dist/modal/components/AddFunds/AddFunds.js +0 -69
  56. package/dist/modal/components/AddFunds/AddFundsAsset.d.ts +0 -1
  57. package/dist/modal/components/AddFunds/AddFundsAsset.js +0 -125
  58. package/dist/modal/components/AddFunds/AddFundsAwaiting.d.ts +0 -1
  59. package/dist/modal/components/AddFunds/AddFundsAwaiting.js +0 -78
  60. package/dist/modal/components/AddFunds/AddFundsContext.d.ts +0 -31
  61. package/dist/modal/components/AddFunds/AddFundsContext.js +0 -160
  62. package/dist/modal/components/AddFunds/AddFundsDone.d.ts +0 -6
  63. package/dist/modal/components/AddFunds/AddFundsDone.js +0 -49
  64. package/dist/modal/components/AddFunds/AddFundsProvider.d.ts +0 -1
  65. package/dist/modal/components/AddFunds/AddFundsProvider.js +0 -109
  66. package/dist/modal/components/AddFunds/AddFundsReceive.d.ts +0 -1
  67. package/dist/modal/components/AddFunds/AddFundsReceive.js +0 -83
  68. package/dist/modal/components/AddFunds/AddFundsSettings.d.ts +0 -1
  69. package/dist/modal/components/AddFunds/AddFundsSettings.js +0 -237
  70. package/dist/modal/components/AddFunds/MoonPayEmbed.d.ts +0 -2
  71. package/dist/modal/components/AddFunds/MoonPayEmbed.js +0 -7
  72. package/dist/modal/components/AddFunds/common.d.ts +0 -19
  73. package/dist/modal/components/AddFunds/common.js +0 -24
  74. package/dist/modal/components/AddFunds/index.d.ts +0 -3
  75. package/dist/modal/components/AddFunds/index.js +0 -4
  76. package/dist/modal/components/AuthInput/AuthInput.d.ts +0 -6
  77. package/dist/modal/components/AuthInput/AuthInput.js +0 -262
  78. package/dist/modal/components/AuthInput/hooks/useDropdownPosition.d.ts +0 -7
  79. package/dist/modal/components/AuthInput/hooks/useDropdownPosition.js +0 -33
  80. package/dist/modal/components/AuthInput/phoneMasks.d.ts +0 -247
  81. package/dist/modal/components/AuthInput/phoneMasks.js +0 -253
  82. package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +0 -9
  83. package/dist/modal/components/AuthMainStep/AuthMainStep.js +0 -50
  84. package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +0 -9
  85. package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +0 -157
  86. package/dist/modal/components/AuthOptions/AuthOptions.d.ts +0 -9
  87. package/dist/modal/components/AuthOptions/AuthOptions.js +0 -67
  88. package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.d.ts +0 -1
  89. package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.js +0 -18
  90. package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.d.ts +0 -1
  91. package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.js +0 -10
  92. package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.d.ts +0 -1
  93. package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.js +0 -18
  94. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +0 -5
  95. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.js +0 -49
  96. package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.d.ts +0 -1
  97. package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.js +0 -63
  98. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.d.ts +0 -1
  99. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +0 -55
  100. package/dist/modal/components/Body/AnimatedHeightWrapper.d.ts +0 -6
  101. package/dist/modal/components/Body/AnimatedHeightWrapper.js +0 -29
  102. package/dist/modal/components/Body/Body.d.ts +0 -11
  103. package/dist/modal/components/Body/Body.js +0 -327
  104. package/dist/modal/components/ChainSwitch/ChainSwitch.d.ts +0 -1
  105. package/dist/modal/components/ChainSwitch/ChainSwitch.js +0 -95
  106. package/dist/modal/components/ChainSwitch/config.d.ts +0 -7
  107. package/dist/modal/components/ChainSwitch/config.js +0 -17
  108. package/dist/modal/components/Controls/Controls.d.ts +0 -5
  109. package/dist/modal/components/Controls/Controls.js +0 -77
  110. package/dist/modal/components/Controls/Selects.d.ts +0 -2
  111. package/dist/modal/components/Controls/Selects.js +0 -189
  112. package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.d.ts +0 -1
  113. package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +0 -144
  114. package/dist/modal/components/ExternalWalletStep/config.d.ts +0 -7
  115. package/dist/modal/components/ExternalWalletStep/config.js +0 -17
  116. package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.d.ts +0 -1
  117. package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js +0 -34
  118. package/dist/modal/components/ExternalWallets/ExternalWallets.d.ts +0 -1
  119. package/dist/modal/components/ExternalWallets/ExternalWallets.js +0 -173
  120. package/dist/modal/components/Footer/Footer.d.ts +0 -1
  121. package/dist/modal/components/Footer/Footer.js +0 -95
  122. package/dist/modal/components/Header/Header.d.ts +0 -1
  123. package/dist/modal/components/Header/Header.js +0 -43
  124. package/dist/modal/components/Header/hooks/useStepTitle.d.ts +0 -3
  125. package/dist/modal/components/Header/hooks/useStepTitle.js +0 -54
  126. package/dist/modal/components/Hero/Hero.d.ts +0 -1
  127. package/dist/modal/components/Hero/Hero.js +0 -116
  128. package/dist/modal/components/IFrameStep/IFrameStep.d.ts +0 -1
  129. package/dist/modal/components/IFrameStep/IFrameStep.js +0 -59
  130. package/dist/modal/components/LoginDoneStep/LoginDoneStep.d.ts +0 -1
  131. package/dist/modal/components/LoginDoneStep/LoginDoneStep.js +0 -31
  132. package/dist/modal/components/ModalContent/ModalContent.d.ts +0 -10
  133. package/dist/modal/components/ModalContent/ModalContent.js +0 -95
  134. package/dist/modal/components/OAuth/FarcasterOAuthStep.d.ts +0 -2
  135. package/dist/modal/components/OAuth/FarcasterOAuthStep.js +0 -27
  136. package/dist/modal/components/OAuth/OAuth.d.ts +0 -6
  137. package/dist/modal/components/OAuth/OAuth.js +0 -79
  138. package/dist/modal/components/OAuth/TelegramOAuthStep.d.ts +0 -1
  139. package/dist/modal/components/OAuth/TelegramOAuthStep.js +0 -90
  140. package/dist/modal/components/OnRampComponents/AddingFunds.d.ts +0 -1
  141. package/dist/modal/components/OnRampComponents/AddingFunds.js +0 -23
  142. package/dist/modal/components/OnRampComponents/OnRampProviderButton.d.ts +0 -9
  143. package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +0 -77
  144. package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.d.ts +0 -6
  145. package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +0 -107
  146. package/dist/modal/components/Setup2FAStep/Setup2FAStep.d.ts +0 -5
  147. package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +0 -132
  148. package/dist/modal/components/StripeComponents/StripeComponents.d.ts +0 -16
  149. package/dist/modal/components/StripeComponents/StripeComponents.js +0 -88
  150. package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.d.ts +0 -5
  151. package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.js +0 -27
  152. package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.d.ts +0 -1
  153. package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +0 -143
  154. package/dist/modal/components/Waiting/Waiting.d.ts +0 -6
  155. package/dist/modal/components/Waiting/Waiting.js +0 -17
  156. package/dist/modal/components/WalletCard/PartnerIcon.d.ts +0 -6
  157. package/dist/modal/components/WalletCard/PartnerIcon.js +0 -34
  158. package/dist/modal/components/WalletCard/WalletCard.d.ts +0 -18
  159. package/dist/modal/components/WalletCard/WalletCard.js +0 -128
  160. package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.d.ts +0 -6
  161. package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +0 -73
  162. package/dist/modal/components/common.d.ts +0 -42
  163. package/dist/modal/components/common.js +0 -175
  164. package/dist/modal/components/index.d.ts +0 -1
  165. package/dist/modal/components/index.js +0 -2
  166. package/dist/modal/constants/constants.d.ts +0 -39
  167. package/dist/modal/constants/constants.js +0 -138
  168. package/dist/modal/constants/defaults.d.ts +0 -5
  169. package/dist/modal/constants/defaults.js +0 -10
  170. package/dist/modal/constants/oAuthLogos.d.ts +0 -8
  171. package/dist/modal/constants/oAuthLogos.js +0 -24
  172. package/dist/modal/hooks/useGoBack.d.ts +0 -1
  173. package/dist/modal/hooks/useGoBack.js +0 -43
  174. package/dist/modal/index.d.ts +0 -8
  175. package/dist/modal/index.js +0 -29
  176. package/dist/modal/stores/index.d.ts +0 -1
  177. package/dist/modal/stores/index.js +0 -2
  178. package/dist/modal/stores/modal/actions.d.ts +0 -3
  179. package/dist/modal/stores/modal/actions.js +0 -133
  180. package/dist/modal/stores/modal/useModalStore.d.ts +0 -102
  181. package/dist/modal/stores/modal/useModalStore.js +0 -68
  182. package/dist/modal/types/commonTypes.d.ts +0 -6
  183. package/dist/modal/types/commonTypes.js +0 -1
  184. package/dist/modal/types/externalWallets.d.ts +0 -33
  185. package/dist/modal/types/externalWallets.js +0 -32
  186. package/dist/modal/types/modalProps.d.ts +0 -124
  187. package/dist/modal/types/modalProps.js +0 -12
  188. package/dist/modal/utils/authInputHelpers.d.ts +0 -7
  189. package/dist/modal/utils/authInputHelpers.js +0 -38
  190. package/dist/modal/utils/authLayoutHelpers.d.ts +0 -3
  191. package/dist/modal/utils/authLayoutHelpers.js +0 -8
  192. package/dist/modal/utils/countryCodes.d.ts +0 -8
  193. package/dist/modal/utils/countryCodes.js +0 -45
  194. package/dist/modal/utils/getMailtoLink.d.ts +0 -1
  195. package/dist/modal/utils/getMailtoLink.js +0 -10
  196. package/dist/modal/utils/getTileButtonFlex.d.ts +0 -1
  197. package/dist/modal/utils/getTileButtonFlex.js +0 -20
  198. package/dist/modal/utils/isPasskeySupported.d.ts +0 -1
  199. package/dist/modal/utils/isPasskeySupported.js +0 -15
  200. package/dist/modal/utils/openPopup.d.ts +0 -6
  201. package/dist/modal/utils/openPopup.js +0 -60
  202. package/dist/modal/utils/routeMobileExternalWallet.d.ts +0 -1
  203. package/dist/modal/utils/routeMobileExternalWallet.js +0 -31
  204. package/dist/modal/utils/steps.d.ts +0 -120
  205. package/dist/modal/utils/steps.js +0 -247
  206. package/dist/modal/utils/stringFormatters.d.ts +0 -5
  207. package/dist/modal/utils/stringFormatters.js +0 -19
  208. package/dist/modal/utils/validateOnRampConfig.d.ts +0 -5
  209. package/dist/modal/utils/validateOnRampConfig.js +0 -32
  210. package/dist/provider/actions/getAccount.d.ts +0 -26
  211. package/dist/provider/actions/getAccount.js +0 -51
  212. package/dist/provider/actions/getWallet.d.ts +0 -5
  213. package/dist/provider/actions/getWallet.js +0 -14
  214. package/dist/provider/actions/index.d.ts +0 -27
  215. package/dist/provider/actions/index.js +0 -59
  216. package/dist/provider/actions/utils.d.ts +0 -3
  217. package/dist/provider/actions/utils.js +0 -15
  218. package/dist/provider/components/CosmosWalletWrapper.d.ts +0 -11
  219. package/dist/provider/components/CosmosWalletWrapper.js +0 -34
  220. package/dist/provider/components/EvmWalletWrapper.d.ts +0 -12
  221. package/dist/provider/components/EvmWalletWrapper.js +0 -34
  222. package/dist/provider/components/ExternalWalletWrapper.d.ts +0 -8
  223. package/dist/provider/components/ExternalWalletWrapper.js +0 -139
  224. package/dist/provider/components/SolanaWalletWrapper.d.ts +0 -9
  225. package/dist/provider/components/SolanaWalletWrapper.js +0 -36
  226. package/dist/provider/external/getParaCosmosConnector.d.ts +0 -7
  227. package/dist/provider/external/getParaCosmosConnector.js +0 -22
  228. package/dist/provider/external/getParaEvmConnector.d.ts +0 -7
  229. package/dist/provider/external/getParaEvmConnector.js +0 -22
  230. package/dist/provider/external/getParaSolanaConnector.d.ts +0 -7
  231. package/dist/provider/external/getParaSolanaConnector.js +0 -22
  232. package/dist/provider/external/stubs/CosmosExternalWalletContextStub.d.ts +0 -12
  233. package/dist/provider/external/stubs/CosmosExternalWalletContextStub.js +0 -18
  234. package/dist/provider/external/stubs/EvmExternalWalletContextStub.d.ts +0 -3
  235. package/dist/provider/external/stubs/EvmExternalWalletContextStub.js +0 -21
  236. package/dist/provider/external/stubs/SolanaExternalWalletContextStub.d.ts +0 -8
  237. package/dist/provider/external/stubs/SolanaExternalWalletContextStub.js +0 -14
  238. package/dist/provider/hooks/index.d.ts +0 -3
  239. package/dist/provider/hooks/index.js +0 -4
  240. package/dist/provider/hooks/mutations/index.d.ts +0 -26
  241. package/dist/provider/hooks/mutations/index.js +0 -61
  242. package/dist/provider/hooks/mutations/utils.d.ts +0 -4
  243. package/dist/provider/hooks/mutations/utils.js +0 -22
  244. package/dist/provider/hooks/queries/index.d.ts +0 -3
  245. package/dist/provider/hooks/queries/index.js +0 -10
  246. package/dist/provider/hooks/queries/useAccount.d.ts +0 -5
  247. package/dist/provider/hooks/queries/useAccount.js +0 -21
  248. package/dist/provider/hooks/queries/useWallet.d.ts +0 -5
  249. package/dist/provider/hooks/queries/useWallet.js +0 -22
  250. package/dist/provider/hooks/queries/useWalletBalance.d.ts +0 -6
  251. package/dist/provider/hooks/queries/useWalletBalance.js +0 -55
  252. package/dist/provider/hooks/utils/index.d.ts +0 -3
  253. package/dist/provider/hooks/utils/index.js +0 -10
  254. package/dist/provider/hooks/utils/useAutoSessionKeepAlive.d.ts +0 -3
  255. package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +0 -74
  256. package/dist/provider/hooks/utils/useClient.d.ts +0 -5
  257. package/dist/provider/hooks/utils/useClient.js +0 -10
  258. package/dist/provider/hooks/utils/useEventListeners.d.ts +0 -2
  259. package/dist/provider/hooks/utils/useEventListeners.js +0 -147
  260. package/dist/provider/hooks/utils/useInternalClient.d.ts +0 -5
  261. package/dist/provider/hooks/utils/useInternalClient.js +0 -10
  262. package/dist/provider/hooks/utils/useModal.d.ts +0 -8
  263. package/dist/provider/hooks/utils/useModal.js +0 -17
  264. package/dist/provider/hooks/utils/useWalletState.d.ts +0 -15
  265. package/dist/provider/hooks/utils/useWalletState.js +0 -48
  266. package/dist/provider/index.d.ts +0 -4
  267. package/dist/provider/index.js +0 -9
  268. package/dist/provider/providers/AuthProvider.d.ts +0 -35
  269. package/dist/provider/providers/AuthProvider.js +0 -498
  270. package/dist/provider/providers/CosmosExternalWalletProvider.d.ts +0 -7
  271. package/dist/provider/providers/CosmosExternalWalletProvider.js +0 -66
  272. package/dist/provider/providers/EvmExternalWalletProvider.d.ts +0 -7
  273. package/dist/provider/providers/EvmExternalWalletProvider.js +0 -74
  274. package/dist/provider/providers/ExternalWalletProvider.d.ts +0 -76
  275. package/dist/provider/providers/ExternalWalletProvider.js +0 -428
  276. package/dist/provider/providers/SolanaExternalWalletProvider.d.ts +0 -7
  277. package/dist/provider/providers/SolanaExternalWalletProvider.js +0 -66
  278. package/dist/provider/stores/getters.d.ts +0 -4
  279. package/dist/provider/stores/getters.js +0 -13
  280. package/dist/provider/stores/setters.d.ts +0 -1
  281. package/dist/provider/stores/setters.js +0 -7
  282. package/dist/provider/stores/slices/client.d.ts +0 -3
  283. package/dist/provider/stores/slices/client.js +0 -9
  284. package/dist/provider/stores/slices/config.d.ts +0 -3
  285. package/dist/provider/stores/slices/config.js +0 -9
  286. package/dist/provider/stores/slices/externalWallets.d.ts +0 -3
  287. package/dist/provider/stores/slices/externalWallets.js +0 -40
  288. package/dist/provider/stores/slices/index.d.ts +0 -4
  289. package/dist/provider/stores/slices/index.js +0 -5
  290. package/dist/provider/stores/slices/modal.d.ts +0 -3
  291. package/dist/provider/stores/slices/modal.js +0 -16
  292. package/dist/provider/stores/slices/wallet.d.ts +0 -3
  293. package/dist/provider/stores/slices/wallet.js +0 -13
  294. package/dist/provider/stores/types.d.ts +0 -64
  295. package/dist/provider/stores/types.js +0 -1
  296. package/dist/provider/stores/useStore.d.ts +0 -17
  297. package/dist/provider/stores/useStore.js +0 -28
  298. package/dist/provider/types/externalWalletProviders.d.ts +0 -12
  299. package/dist/provider/types/externalWalletProviders.js +0 -1
  300. package/dist/provider/types/provider.d.ts +0 -147
  301. package/dist/provider/types/provider.js +0 -1
  302. package/dist/provider/types/query.d.ts +0 -3
  303. package/dist/provider/types/query.js +0 -1
  304. package/dist/provider/types/utils.d.ts +0 -22
  305. package/dist/provider/types/utils.js +0 -1
  306. package/dist/provider/utils/constants.d.ts +0 -5
  307. package/dist/provider/utils/constants.js +0 -10
  308. package/dist/provider/utils/paraConfigTypeGuards.d.ts +0 -7
  309. package/dist/provider/utils/paraConfigTypeGuards.js +0 -13
  310. package/dist/provider/utils/renameMutations.d.ts +0 -5
  311. package/dist/provider/utils/renameMutations.js +0 -18
@@ -1,327 +0,0 @@
1
- "use client";
2
- import "../../../chunk-MMUBH76A.js";
3
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
- import { styled } from "styled-components";
5
- import { IFrameSteps, ModalStep } from "../../utils/steps.js";
6
- import { CpslAlert, CpslIcon } from "@getpara/react-components";
7
- import { VerificationCodeStep } from "../VerificationCodeStep/VerificationCodeStep.js";
8
- import { useModalStore } from "../../stores/index.js";
9
- import { BiometricLoginStep } from "../BiometricLoginStep/BiometricLoginStep.js";
10
- import { Setup2FAStep } from "../Setup2FAStep/Setup2FAStep.js";
11
- import { LoginDoneStep } from "../LoginDoneStep/LoginDoneStep.js";
12
- import { EnabledFlow } from "@getpara/web-sdk";
13
- import { AwaitingBiometricsStep } from "../AwaitingBiometricsStep/AwaitingBiometricsStep.js";
14
- import { AwaitingWalletCreationStep } from "../AwaitingWalletCreationStep/AwaitingWalletCreationStep.js";
15
- import { WalletCreationDoneStep } from "../WalletCreationDoneStep/WalletCreationDoneStep.js";
16
- import { RecoverySecretStep } from "../RecoverySecretStep/RecoverySecretStep.js";
17
- import { TwoFactorDoneStep } from "../TwoFactorDoneStep/TwoFactorDoneStep.js";
18
- import { BiometricCreationStep } from "../BiometricCreationStep/BiometricCreationStep.js";
19
- import { AwaitingOAuthStep } from "../AwaitingOAuthStep/AwaitingOAuthStep.js";
20
- import { AddFundsAwaiting, AddFundsDone, AddFunds } from "../AddFunds/index.js";
21
- import FarcasterOAuthStep from "../OAuth/FarcasterOAuthStep.js";
22
- import { Header } from "../Header/Header.js";
23
- import { AuthMainStep } from "../AuthMainStep/AuthMainStep.js";
24
- import { BODY_MOTION_VARIANTS, BODY_TRANSITION, MOBILE_SIZE } from "../../constants/constants.js";
25
- import { Account } from "../Account/Account.js";
26
- import { AuthOptions } from "../AuthOptions/AuthOptions.js";
27
- import { ExternalWallets } from "../ExternalWallets/ExternalWallets.js";
28
- import { ExternalWalletStep } from "../ExternalWalletStep/ExternalWalletStep.js";
29
- import { Hero } from "../Hero/Hero.js";
30
- import { AnimatedHeightWrapper } from "./AnimatedHeightWrapper.js";
31
- import { ChainSwitch } from "../ChainSwitch/ChainSwitch.js";
32
- import { motion, AnimatePresence } from "framer-motion";
33
- import { Controls } from "../Controls/Controls.js";
34
- import { useEffect, useState } from "react";
35
- import { TelegramOAuthStep } from "../OAuth/TelegramOAuthStep.js";
36
- import { AwaitingPasswordStep } from "../AwaitingPasswordStep/AwaitingPasswordStep.js";
37
- import { IFrameStep } from "../IFrameStep/IFrameStep.js";
38
- import { useStore } from "../../../provider/stores/useStore.js";
39
- import { ExternalWalletVerificationStep } from "../ExternalWalletVerificationStep/ExternalWalletVerificationStep.js";
40
- import { NetworkSpeedBanner } from "@getpara/react-common";
41
- const MIN_HEIGHT = {
42
- [ModalStep.ADD_FUNDS_AWAITING]: "680px"
43
- };
44
- const PADDING_TOP = {
45
- [ModalStep.TELEGRAM_OAUTH]: "36px"
46
- };
47
- const PADDING_BOTTOM = {
48
- [ModalStep.TELEGRAM_OAUTH]: "16px"
49
- };
50
- const Body = ({
51
- oAuthMethods,
52
- twoFactorAuthEnabled,
53
- disableEmailLogin,
54
- disablePhoneLogin,
55
- isGuestModeEnabled = false,
56
- onClose
57
- }) => {
58
- const currentStep = useModalStore((state) => state.step);
59
- const onRampConfig = useModalStore((state) => state.onRampConfig);
60
- const stepDirection = useModalStore((state) => state.stepDirection);
61
- const setStepDirection = useModalStore((state) => state.setStepDirection);
62
- const accountAddFundTab = useModalStore((state) => state.accountAddFundTab);
63
- const setAccountAddFundTab = useModalStore((state) => state.setAccountAddFundTab);
64
- const embeddedModal = useStore((state) => {
65
- var _a;
66
- return (_a = state.modalConfig) == null ? void 0 : _a.embeddedModal;
67
- });
68
- const appName = useStore((state) => state.appName);
69
- const [isTestModeAlert, setIsTestModeAlert] = useState(onRampConfig == null ? void 0 : onRampConfig.testMode);
70
- const Content = () => {
71
- switch (currentStep) {
72
- case ModalStep.AUTH_MAIN: {
73
- return /* @__PURE__ */ jsx(
74
- AuthMainStep,
75
- {
76
- oAuthMethods,
77
- disableEmailLogin,
78
- disablePhoneLogin,
79
- isGuestModeEnabled
80
- }
81
- );
82
- }
83
- case ModalStep.EX_WALLET_MORE: {
84
- return /* @__PURE__ */ jsx(ExternalWallets, {});
85
- }
86
- case ModalStep.AWAITING_GUEST_WALLET_CREATION: {
87
- return /* @__PURE__ */ jsx(AwaitingWalletCreationStep, { isGuestMode: true });
88
- }
89
- case ModalStep.AUTH_MORE:
90
- case ModalStep.AUTH_GUEST_SIGNUP: {
91
- return /* @__PURE__ */ jsx(
92
- AuthOptions,
93
- {
94
- oAuthMethods,
95
- disableEmailLogin,
96
- disablePhoneLogin,
97
- isGuestModeEnabled
98
- }
99
- );
100
- }
101
- case ModalStep.VERIFICATIONS: {
102
- return /* @__PURE__ */ jsx(VerificationCodeStep, {});
103
- }
104
- case ModalStep.EXTERNAL_WALLET_VERIFICATION: {
105
- return /* @__PURE__ */ jsx(ExternalWalletVerificationStep, {});
106
- }
107
- case ModalStep.BIOMETRIC_LOGIN: {
108
- return /* @__PURE__ */ jsx(BiometricLoginStep, {});
109
- }
110
- case ModalStep.SETUP_2FA:
111
- case ModalStep.VERIFY_2FA: {
112
- return /* @__PURE__ */ jsx(Setup2FAStep, { onClose });
113
- }
114
- case ModalStep.LOGIN_DONE: {
115
- return /* @__PURE__ */ jsx(LoginDoneStep, { onClose });
116
- }
117
- case ModalStep.AWAITING_BIOMETRIC_LOGIN:
118
- case ModalStep.AWAITING_BIOMETRIC_CREATION: {
119
- return /* @__PURE__ */ jsx(AwaitingBiometricsStep, {});
120
- }
121
- case ModalStep.AWAITING_PASSWORD_LOGIN:
122
- case ModalStep.AWAITING_PASSWORD_CREATION: {
123
- return /* @__PURE__ */ jsx(AwaitingPasswordStep, {});
124
- }
125
- case ModalStep.AWAITING_WALLET_CREATION: {
126
- return /* @__PURE__ */ jsx(AwaitingWalletCreationStep, {});
127
- }
128
- case ModalStep.WALLET_CREATION_DONE: {
129
- return /* @__PURE__ */ jsx(WalletCreationDoneStep, { twoFactorAuthEnabled, onClose });
130
- }
131
- case ModalStep.SECRET: {
132
- return /* @__PURE__ */ jsx(RecoverySecretStep, {});
133
- }
134
- case ModalStep.TWO_FACTOR_DONE: {
135
- return /* @__PURE__ */ jsx(TwoFactorDoneStep, { onClose });
136
- }
137
- case ModalStep.BIOMETRIC_CREATION: {
138
- return /* @__PURE__ */ jsx(BiometricCreationStep, {});
139
- }
140
- case ModalStep.AWAITING_OAUTH: {
141
- return /* @__PURE__ */ jsx(AwaitingOAuthStep, {});
142
- }
143
- case ModalStep.FARCASTER_OAUTH: {
144
- return /* @__PURE__ */ jsx(FarcasterOAuthStep, {});
145
- }
146
- case ModalStep.TELEGRAM_OAUTH: {
147
- return /* @__PURE__ */ jsx(TelegramOAuthStep, {});
148
- }
149
- case ModalStep.ADD_FUNDS_BUY:
150
- case ModalStep.ADD_FUNDS_RECEIVE:
151
- case ModalStep.ADD_FUNDS_WITHDRAW: {
152
- return /* @__PURE__ */ jsx(AddFunds, { "data-testid": "add-funds" });
153
- }
154
- case ModalStep.ADD_FUNDS_AWAITING: {
155
- return /* @__PURE__ */ jsx(AddFundsAwaiting, {});
156
- }
157
- case ModalStep.ADD_FUNDS_SUCCESS: {
158
- return /* @__PURE__ */ jsx(AddFundsDone, { isSuccess: true, onClose });
159
- }
160
- case ModalStep.ADD_FUNDS_FAILURE: {
161
- return /* @__PURE__ */ jsx(AddFundsDone, { onClose });
162
- }
163
- case ModalStep.ACCOUNT_MAIN: {
164
- return /* @__PURE__ */ jsx(Account, { onClose });
165
- }
166
- case ModalStep.EX_WALLET_SELECTED: {
167
- return /* @__PURE__ */ jsx(ExternalWalletStep, {});
168
- }
169
- case ModalStep.CHAIN_SWITCH: {
170
- return /* @__PURE__ */ jsx(ChainSwitch, {});
171
- }
172
- default: {
173
- if (IFrameSteps.includes(currentStep)) {
174
- return null;
175
- }
176
- }
177
- }
178
- };
179
- useEffect(() => {
180
- if (!isTestModeAlert && (onRampConfig == null ? void 0 : onRampConfig.testMode)) {
181
- setIsTestModeAlert(true);
182
- }
183
- }, [onRampConfig == null ? void 0 : onRampConfig.testMode]);
184
- useEffect(() => {
185
- switch (currentStep) {
186
- case ModalStep.ADD_FUNDS_BUY:
187
- setAccountAddFundTab(EnabledFlow.BUY);
188
- break;
189
- case ModalStep.ADD_FUNDS_RECEIVE:
190
- setAccountAddFundTab(EnabledFlow.RECEIVE);
191
- break;
192
- case ModalStep.ADD_FUNDS_WITHDRAW:
193
- setAccountAddFundTab(EnabledFlow.WITHDRAW);
194
- break;
195
- default:
196
- break;
197
- }
198
- }, [currentStep]);
199
- return /* @__PURE__ */ jsxs(Container, { slot: "body", "data-testid": "modal-content", children: [
200
- !embeddedModal && /* @__PURE__ */ jsxs(Fragment, { children: [
201
- /* @__PURE__ */ jsx(Controls, { onClose }),
202
- /* @__PURE__ */ jsx(Header, {})
203
- ] }),
204
- /* @__PURE__ */ jsxs(AnimatedWrapper, { children: [
205
- /* @__PURE__ */ jsx(
206
- AnimatePresence,
207
- {
208
- mode: "popLayout",
209
- initial: false,
210
- onExitComplete: () => {
211
- setStepDirection(1);
212
- },
213
- custom: stepDirection,
214
- children: /* @__PURE__ */ jsxs(
215
- BodyContainer,
216
- {
217
- custom: stepDirection,
218
- variants: BODY_MOTION_VARIANTS,
219
- initial: "enter",
220
- animate: "center",
221
- exit: "exit",
222
- transition: BODY_TRANSITION,
223
- children: [
224
- /* @__PURE__ */ jsx(Hero, {}),
225
- /* @__PURE__ */ jsxs(
226
- InnerContainer,
227
- {
228
- $embeddedModal: !!embeddedModal,
229
- $step: currentStep,
230
- $isIFrameStep: IFrameSteps.includes(currentStep),
231
- children: [
232
- /* @__PURE__ */ jsx(NetworkSpeedBanner, { fontSize: "12px", iconSize: "16px" }),
233
- Content(),
234
- (onRampConfig == null ? void 0 : onRampConfig.testMode) && [
235
- ModalStep.ADD_FUNDS_BUY,
236
- ModalStep.ADD_FUNDS_WITHDRAW,
237
- ModalStep.ADD_FUNDS_AWAITING,
238
- ModalStep.ADD_FUNDS_FAILURE,
239
- ModalStep.ADD_FUNDS_SUCCESS
240
- ].includes(currentStep) && isTestModeAlert && accountAddFundTab !== EnabledFlow.RECEIVE && /* @__PURE__ */ jsx(TestModeAlert, { children: /* @__PURE__ */ jsxs("div", { style: { fontSize: "14px" }, children: [
241
- "This Para Modal is configured to run on-ramp services in ",
242
- /* @__PURE__ */ jsx("b", { children: "test mode" }),
243
- " only, for development purposes. If you are a user of ",
244
- appName,
245
- ", please contact support.",
246
- /* @__PURE__ */ jsx(CloseButton, { onClick: () => setIsTestModeAlert(false), children: /* @__PURE__ */ jsx(CloseX, { icon: "x" }) })
247
- ] }) })
248
- ]
249
- }
250
- )
251
- ]
252
- },
253
- ["ADD_FUNDS_BUY", "ADD_FUNDS_RECEIVE", "ADD_FUNDS_WITHDRAW"].includes(currentStep) ? "ADD_FUNDS" : currentStep
254
- )
255
- }
256
- ),
257
- /* @__PURE__ */ jsx(IFrameStep, {})
258
- ] })
259
- ] });
260
- };
261
- const Container = styled.div`
262
- position: relative;
263
- `;
264
- const AnimatedWrapper = styled(AnimatedHeightWrapper)`
265
- margin-top: -16px;
266
- `;
267
- const BodyContainer = styled(motion.div)`
268
- position: relative;
269
- display: flex;
270
- flex-direction: column;
271
- gap: 24px;
272
- will-change: auto !important;
273
- `;
274
- const InnerContainer = styled.div`
275
- z-index: 1;
276
- flex: 1;
277
- display: flex;
278
- flex-direction: column;
279
- justify-content: flex-start;
280
- gap: 24px;
281
- padding: ${({ $embeddedModal, $step, $isIFrameStep }) => {
282
- var _a, _b;
283
- return $isIFrameStep ? "0px" : $embeddedModal ? "12px 0px 0px" : `${(_a = PADDING_TOP[$step]) != null ? _a : "72px"} 72px ${(_b = PADDING_BOTTOM[$step]) != null ? _b : "32px"}`;
284
- }};
285
- min-height: ${({ $step }) => {
286
- var _a;
287
- return (_a = MIN_HEIGHT[$step]) != null ? _a : "auto";
288
- }};
289
- height: ${({ $step }) => {
290
- var _a;
291
- return (_a = MIN_HEIGHT[$step]) != null ? _a : "auto";
292
- }};
293
-
294
- @media (max-width: ${MOBILE_SIZE}px) {
295
- padding: ${({ $embeddedModal, $step, $isIFrameStep }) => {
296
- var _a;
297
- return $isIFrameStep ? "0px" : $embeddedModal ? "12px 0px 0px" : `${(_a = PADDING_TOP[$step]) != null ? _a : "72px"} 16px 0px`;
298
- }};
299
- }
300
-
301
- cpsl-auth-modal.force-mobile-media & {
302
- padding: 72px 16px 0px;
303
- }
304
- `;
305
- const TestModeAlert = styled(CpslAlert)`
306
- --container-padding-end: 40px;
307
- position: absolute;
308
- bottom: 16px;
309
- left: 16px;
310
- right: 16px;
311
- z-index: 1000;
312
- `;
313
- const CloseButton = styled.button`
314
- background-color: transparent;
315
- border: none;
316
- padding: 4px;
317
- cursor: pointer;
318
- position: absolute;
319
- top: 0;
320
- right: 0;
321
- `;
322
- const CloseX = styled(CpslIcon)`
323
- --icon-color: var(--cpsl-color-foreground-0);
324
- `;
325
- export {
326
- Body
327
- };
@@ -1 +0,0 @@
1
- export declare const ChainSwitch: () => import("react/jsx-runtime").JSX.Element | null;
@@ -1,95 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../../chunk-MMUBH76A.js";
5
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
- import { CpslButton, CpslIcon, CpslQrCode, CpslSpinner, CpslText } from "@getpara/react-components";
7
- import { CenteredText, InnerStepContainer, QRContainer, StepContainer } from "../common.js";
8
- import { useEffect, useMemo } from "react";
9
- import { useModalStore } from "../../stores/index.js";
10
- import styled from "styled-components";
11
- import { useCopyToClipboard } from "@getpara/react-common";
12
- import { ModalStep } from "../../utils/steps.js";
13
- import { routeMobileExternalWallet } from "../../utils/routeMobileExternalWallet.js";
14
- import { NETWORK_NOT_SUPPORTED_ERROR } from "../../constants/constants.js";
15
- import { useExternalWallets } from "../../../provider/providers/ExternalWalletProvider.js";
16
- const ChainSwitch = () => {
17
- const [isCopied, copy] = useCopyToClipboard();
18
- const externalWalletError = useModalStore((state) => state.externalWalletError);
19
- const setStep = useModalStore((state) => state.setStep);
20
- const setStepDirection = useModalStore((state) => state.setStepDirection);
21
- const { switchChain, wallet, qrUri, chainIdSwitchingTo, walletDisplayHelpers } = useExternalWallets();
22
- useEffect(() => {
23
- if ((wallet == null ? void 0 : wallet.type) === "COSMOS") {
24
- routeMobileExternalWallet(qrUri);
25
- }
26
- }, [qrUri, wallet]);
27
- useEffect(() => {
28
- if (!wallet) {
29
- setStepDirection(-1);
30
- setStep(ModalStep.ACCOUNT_MAIN);
31
- }
32
- }, [wallet]);
33
- const handleTryAgainClick = () => __async(void 0, null, function* () {
34
- if (chainIdSwitchingTo) {
35
- yield switchChain(chainIdSwitchingTo);
36
- }
37
- });
38
- const handleCopy = () => {
39
- if (qrUri) {
40
- copy(qrUri);
41
- }
42
- };
43
- const Content = useMemo(() => {
44
- var _a;
45
- if (!wallet) {
46
- return null;
47
- }
48
- const { isCosmosMobileWallet } = walletDisplayHelpers;
49
- if (isCosmosMobileWallet) {
50
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(InnerStepContainer, { children: [
51
- /* @__PURE__ */ jsx(CpslText, { weight: "semiBold", children: "Scan with your mobile device to switch networks" }),
52
- /* @__PURE__ */ jsx(QRContainer, { children: !qrUri ? /* @__PURE__ */ jsx(CpslSpinner, { size: 100 }) : /* @__PURE__ */ jsx(CpslQrCode, { url: qrUri, imageSrc: wallet.iconUrl }) }),
53
- /* @__PURE__ */ jsxs(CpslButton, { size: "small", variant: "ghost", onClick: handleCopy, children: [
54
- /* @__PURE__ */ jsx(CpslIcon, { slot: "start", icon: isCopied ? "check" : "copy" }),
55
- isCopied ? "Copied" : "Copy Link"
56
- ] })
57
- ] }) });
58
- }
59
- return /* @__PURE__ */ jsxs(InnerStepContainer, { children: [
60
- !(externalWalletError == null ? void 0 : externalWalletError.length) ? /* @__PURE__ */ jsx(CenteredText, { color: "contrast", weight: "semiBold", children: `Confirm the request to change networks in your ${wallet.name} wallet.` }) : /* @__PURE__ */ jsxs(Fragment, { children: [
61
- /* @__PURE__ */ jsxs(ErrorContainer, { children: [
62
- /* @__PURE__ */ jsx(ErrorIcon, { icon: "alertCircle" }),
63
- /* @__PURE__ */ jsx(CenteredText, { weight: "semiBold", color: "error", children: externalWalletError[0] })
64
- ] }),
65
- externalWalletError[1] && /* @__PURE__ */ jsx(CenteredText, { color: "secondary", weight: "medium", children: externalWalletError[1] })
66
- ] }),
67
- ((_a = externalWalletError == null ? void 0 : externalWalletError[0]) == null ? void 0 : _a.toLowerCase()) !== NETWORK_NOT_SUPPORTED_ERROR && /* @__PURE__ */ jsxs(CpslButton, { variant: "secondary", onClick: handleTryAgainClick, children: [
68
- /* @__PURE__ */ jsx(CpslIcon, { slot: "start", icon: "refresh" }),
69
- "Try Again"
70
- ] })
71
- ] });
72
- }, [wallet, walletDisplayHelpers, externalWalletError, qrUri]);
73
- if (!wallet) {
74
- return null;
75
- }
76
- return /* @__PURE__ */ jsx(Container, { children: Content });
77
- };
78
- const Container = styled(StepContainer)`
79
- flex: 1;
80
- justify-content: space-between;
81
- `;
82
- const ErrorContainer = styled.div`
83
- display: flex;
84
- align-items: center;
85
- justify-content: center;
86
- gap: 4px;
87
- `;
88
- const ErrorIcon = styled(CpslIcon)`
89
- --height: 16px;
90
- --width: 16px;
91
- --icon-color: var(--cpsl-color-text-error);
92
- `;
93
- export {
94
- ChainSwitch
95
- };
@@ -1,7 +0,0 @@
1
- import { Tab } from '../../types/commonTypes.js';
2
- export declare enum TabValue {
3
- extension = "extension",
4
- mobile = "mobile",
5
- web = "web"
6
- }
7
- export declare const TABS: Record<'extension' | 'mobile' | 'web', Tab<TabValue>>;
@@ -1,17 +0,0 @@
1
- "use client";
2
- import "../../../chunk-MMUBH76A.js";
3
- var TabValue = /* @__PURE__ */ ((TabValue2) => {
4
- TabValue2["extension"] = "extension";
5
- TabValue2["mobile"] = "mobile";
6
- TabValue2["web"] = "web";
7
- return TabValue2;
8
- })(TabValue || {});
9
- const TABS = {
10
- extension: { label: "Extension", value: "extension" /* extension */, icon: "puzzlePiece" },
11
- mobile: { label: "Mobile", value: "mobile" /* mobile */, icon: "phone" },
12
- web: { label: "Web", value: "web" /* web */, icon: "globe" }
13
- };
14
- export {
15
- TABS,
16
- TabValue
17
- };
@@ -1,5 +0,0 @@
1
- interface ControlsProps {
2
- onClose: () => void;
3
- }
4
- export declare const Controls: ({ onClose }: ControlsProps) => import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,77 +0,0 @@
1
- "use client";
2
- import "../../../chunk-MMUBH76A.js";
3
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
- import { CpslIcon } from "@getpara/react-components";
5
- import { styled } from "styled-components";
6
- import { useModalStore } from "../../stores/index.js";
7
- import { useGoBack } from "../../hooks/useGoBack.js";
8
- import { AccountSelect, ChainSelect } from "./Selects.js";
9
- import { ModalStep } from "../../utils/steps.js";
10
- import { HeaderButton } from "@getpara/react-common";
11
- import { useStore } from "../../../provider/stores/useStore.js";
12
- const Controls = ({ onClose }) => {
13
- const bareModal = useStore((state) => {
14
- var _a;
15
- return (_a = state.modalConfig) == null ? void 0 : _a.bareModal;
16
- });
17
- const hasPreviousStep = useModalStore((state) => state.hasPreviousStep());
18
- const step = useModalStore((state) => state.step);
19
- const isFullyLoggedIn = useModalStore((state) => state.isFullyLoggedIn);
20
- const goBack = useGoBack();
21
- const shouldShowSelects = [
22
- ModalStep.ACCOUNT_MAIN,
23
- ModalStep.CHAIN_SWITCH,
24
- ModalStep.ADD_FUNDS_BUY,
25
- ModalStep.ADD_FUNDS_RECEIVE,
26
- ModalStep.ADD_FUNDS_WITHDRAW
27
- ].includes(step);
28
- const handleBackClick = () => {
29
- goBack();
30
- };
31
- return /* @__PURE__ */ jsxs(Container, { children: [
32
- /* @__PURE__ */ jsx(
33
- BackButton,
34
- {
35
- variant: "ghost",
36
- style: {
37
- visibility: hasPreviousStep ? "visible" : "hidden"
38
- },
39
- onClick: handleBackClick,
40
- children: /* @__PURE__ */ jsx(CpslIcon, { icon: "arrow" })
41
- }
42
- ),
43
- /* @__PURE__ */ jsx(MiddleContainer, { children: shouldShowSelects && isFullyLoggedIn && /* @__PURE__ */ jsxs(Fragment, { children: [
44
- /* @__PURE__ */ jsx(ChainSelect, {}),
45
- /* @__PURE__ */ jsx(AccountSelect, {})
46
- ] }) }),
47
- /* @__PURE__ */ jsx(CloseButton, { bareModal, variant: "ghost", onClick: onClose, children: /* @__PURE__ */ jsx(CpslIcon, { icon: "close" }) })
48
- ] });
49
- };
50
- const Container = styled.div`
51
- position: absolute;
52
- width: 100%;
53
- top: 16px;
54
-
55
- z-index: 3;
56
- display: flex;
57
- align-items: center;
58
- justify-content: space-between;
59
- gap: 8px;
60
- `;
61
- const MiddleContainer = styled.div`
62
- flex: 1;
63
- display: flex;
64
- align-items: center;
65
- justify-content: center;
66
- gap: 4px;
67
- `;
68
- const CloseButton = styled(HeaderButton)`
69
- transform: rotate(180deg);
70
- visibility: ${({ bareModal }) => bareModal ? "hidden" : "visible"};
71
- `;
72
- const BackButton = styled(HeaderButton)`
73
- transform: rotate(180deg);
74
- `;
75
- export {
76
- Controls
77
- };
@@ -1,2 +0,0 @@
1
- export declare const ChainSelect: () => import("react/jsx-runtime").JSX.Element | null;
2
- export declare const AccountSelect: () => import("react/jsx-runtime").JSX.Element;