@getpara/react-sdk 2.0.0-alpha.3 → 2.0.0-alpha.6

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 (183) hide show
  1. package/dist/cli/cli.mjs +1 -6
  2. package/dist/index.js +11 -6499
  3. package/dist/modal/ParaModal.js +262 -0
  4. package/dist/modal/components/Account/Account.js +139 -0
  5. package/dist/modal/components/AddFunds/AddFunds.d.ts +0 -2
  6. package/dist/modal/components/AddFunds/AddFunds.js +69 -0
  7. package/dist/modal/components/AddFunds/AddFundsAsset.d.ts +1 -0
  8. package/dist/modal/components/AddFunds/AddFundsAsset.js +125 -0
  9. package/dist/modal/components/AddFunds/AddFundsAwaiting.js +78 -0
  10. package/dist/modal/components/AddFunds/AddFundsContext.d.ts +31 -0
  11. package/dist/modal/components/AddFunds/AddFundsContext.js +160 -0
  12. package/dist/modal/components/AddFunds/AddFundsDone.js +49 -0
  13. package/dist/modal/components/AddFunds/AddFundsProvider.d.ts +1 -0
  14. package/dist/modal/components/AddFunds/AddFundsProvider.js +109 -0
  15. package/dist/modal/components/AddFunds/AddFundsReceive.d.ts +1 -0
  16. package/dist/modal/components/AddFunds/AddFundsReceive.js +83 -0
  17. package/dist/modal/components/AddFunds/AddFundsSettings.d.ts +1 -0
  18. package/dist/modal/components/AddFunds/AddFundsSettings.js +237 -0
  19. package/dist/{MoonPayEmbed-Q2HP2BFI.js → modal/components/AddFunds/MoonPayEmbed.js} +1 -3
  20. package/dist/modal/components/AddFunds/common.d.ts +19 -0
  21. package/dist/modal/components/AddFunds/common.js +24 -0
  22. package/dist/modal/components/AddFunds/index.js +4 -0
  23. package/dist/modal/components/AuthInput/AuthInput.js +262 -0
  24. package/dist/modal/components/AuthInput/hooks/useDropdownPosition.js +33 -0
  25. package/dist/modal/components/AuthInput/phoneMasks.js +253 -0
  26. package/dist/modal/components/AuthMainStep/AuthMainStep.d.ts +4 -3
  27. package/dist/modal/components/AuthMainStep/AuthMainStep.js +50 -0
  28. package/dist/modal/components/AuthMainStep/AuthMainStepContent.d.ts +4 -3
  29. package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +157 -0
  30. package/dist/modal/components/AuthOptions/AuthOptions.d.ts +4 -3
  31. package/dist/modal/components/AuthOptions/AuthOptions.js +67 -0
  32. package/dist/modal/components/AwaitingBiometricsStep/AwaitingBiometricsStep.js +18 -0
  33. package/dist/modal/components/AwaitingOAuthStep/AwaitingOAuthStep.js +10 -0
  34. package/dist/modal/components/AwaitingPasswordStep/AwaitingPasswordStep.js +18 -0
  35. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.d.ts +5 -1
  36. package/dist/modal/components/AwaitingWalletCreationStep/AwaitingWalletCreationStep.js +49 -0
  37. package/dist/modal/components/BiometricCreationStep/BiometricCreationStep.js +63 -0
  38. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +55 -0
  39. package/dist/modal/components/Body/AnimatedHeightWrapper.js +29 -0
  40. package/dist/modal/components/Body/Body.d.ts +4 -3
  41. package/dist/modal/components/Body/Body.js +327 -0
  42. package/dist/modal/components/ChainSwitch/ChainSwitch.js +95 -0
  43. package/dist/modal/components/ChainSwitch/config.js +17 -0
  44. package/dist/modal/components/Controls/Controls.js +77 -0
  45. package/dist/modal/components/Controls/Selects.js +189 -0
  46. package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +144 -0
  47. package/dist/modal/components/ExternalWalletStep/config.js +17 -0
  48. package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js +34 -0
  49. package/dist/modal/components/ExternalWallets/ExternalWallets.js +173 -0
  50. package/dist/modal/components/Footer/Footer.js +95 -0
  51. package/dist/modal/components/Header/Header.js +43 -0
  52. package/dist/modal/components/Header/hooks/useStepTitle.js +54 -0
  53. package/dist/modal/components/Hero/Hero.js +116 -0
  54. package/dist/modal/components/IFrameStep/IFrameStep.js +59 -0
  55. package/dist/modal/components/LoginDoneStep/LoginDoneStep.js +31 -0
  56. package/dist/modal/components/ModalContent/ModalContent.js +95 -0
  57. package/dist/modal/components/OAuth/FarcasterOAuthStep.js +27 -0
  58. package/dist/modal/components/OAuth/OAuth.d.ts +2 -2
  59. package/dist/modal/components/OAuth/OAuth.js +79 -0
  60. package/dist/modal/components/OAuth/TelegramOAuthStep.js +90 -0
  61. package/dist/modal/components/OnRampComponents/AddingFunds.js +23 -0
  62. package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +77 -0
  63. package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +107 -0
  64. package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +132 -0
  65. package/dist/modal/components/StripeComponents/StripeComponents.js +88 -0
  66. package/dist/modal/components/TwoFactorDoneStep/TwoFactorDoneStep.js +27 -0
  67. package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +143 -0
  68. package/dist/modal/components/Waiting/Waiting.js +17 -0
  69. package/dist/modal/components/WalletCard/PartnerIcon.js +34 -0
  70. package/dist/modal/components/WalletCard/WalletCard.d.ts +3 -3
  71. package/dist/modal/components/WalletCard/WalletCard.js +128 -0
  72. package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +73 -0
  73. package/dist/modal/components/common.d.ts +32 -13
  74. package/dist/modal/components/common.js +175 -0
  75. package/dist/modal/components/index.js +2 -0
  76. package/dist/modal/constants/constants.d.ts +9 -2
  77. package/dist/modal/constants/constants.js +138 -0
  78. package/dist/modal/constants/defaults.js +10 -0
  79. package/dist/modal/constants/oAuthLogos.d.ts +3 -3
  80. package/dist/modal/constants/oAuthLogos.js +24 -0
  81. package/dist/modal/hooks/useGoBack.js +43 -0
  82. package/dist/modal/index.d.ts +1 -2
  83. package/dist/modal/index.js +29 -0
  84. package/dist/modal/stores/index.js +2 -0
  85. package/dist/modal/stores/modal/actions.js +133 -0
  86. package/dist/modal/stores/modal/useModalStore.d.ts +12 -4
  87. package/dist/modal/stores/modal/useModalStore.js +68 -0
  88. package/dist/modal/types/commonTypes.d.ts +0 -47
  89. package/dist/modal/types/commonTypes.js +1 -0
  90. package/dist/modal/types/externalWallets.d.ts +2 -0
  91. package/dist/modal/types/externalWallets.js +32 -0
  92. package/dist/modal/types/modalProps.d.ts +10 -2
  93. package/dist/modal/types/modalProps.js +12 -0
  94. package/dist/modal/utils/authInputHelpers.d.ts +7 -0
  95. package/dist/modal/utils/authInputHelpers.js +38 -0
  96. package/dist/modal/utils/authLayoutHelpers.js +8 -0
  97. package/dist/modal/utils/countryCodes.js +45 -0
  98. package/dist/modal/utils/getMailtoLink.js +10 -0
  99. package/dist/modal/utils/getTileButtonFlex.js +20 -0
  100. package/dist/modal/utils/isPasskeySupported.js +15 -0
  101. package/dist/modal/utils/openPopup.js +60 -0
  102. package/dist/modal/utils/routeMobileExternalWallet.js +31 -0
  103. package/dist/modal/utils/steps.d.ts +6 -0
  104. package/dist/modal/utils/steps.js +247 -0
  105. package/dist/modal/utils/stringFormatters.d.ts +1 -0
  106. package/dist/modal/utils/stringFormatters.js +19 -0
  107. package/dist/modal/utils/validateOnRampConfig.js +32 -0
  108. package/dist/package.json +6 -0
  109. package/dist/provider/ParaProvider.js +83 -0
  110. package/dist/provider/actions/getAccount.d.ts +8 -1
  111. package/dist/provider/actions/getAccount.js +51 -0
  112. package/dist/provider/actions/getWallet.d.ts +2 -2
  113. package/dist/provider/actions/getWallet.js +14 -0
  114. package/dist/provider/actions/index.d.ts +2 -0
  115. package/dist/provider/actions/index.js +59 -0
  116. package/dist/provider/actions/utils.js +15 -0
  117. package/dist/provider/components/CosmosWalletWrapper.js +34 -0
  118. package/dist/provider/components/EvmWalletWrapper.js +34 -0
  119. package/dist/provider/components/ExternalWalletWrapper.js +139 -0
  120. package/dist/provider/components/SolanaWalletWrapper.js +36 -0
  121. package/dist/provider/external/getParaCosmosConnector.js +22 -0
  122. package/dist/provider/external/getParaEvmConnector.js +22 -0
  123. package/dist/provider/external/getParaSolanaConnector.js +22 -0
  124. package/dist/provider/external/stubs/CosmosExternalWalletContextStub.js +18 -0
  125. package/dist/provider/external/stubs/EvmExternalWalletContextStub.js +21 -0
  126. package/dist/provider/external/stubs/SolanaExternalWalletContextStub.js +14 -0
  127. package/dist/provider/hooks/index.js +4 -0
  128. package/dist/provider/hooks/mutations/index.d.ts +1 -0
  129. package/dist/provider/hooks/mutations/index.js +61 -0
  130. package/dist/provider/hooks/mutations/utils.js +22 -0
  131. package/dist/provider/hooks/queries/index.d.ts +1 -0
  132. package/dist/provider/hooks/queries/index.js +10 -0
  133. package/dist/provider/hooks/queries/useAccount.js +21 -0
  134. package/dist/provider/hooks/queries/useWallet.js +22 -0
  135. package/dist/provider/hooks/queries/useWalletBalance.d.ts +6 -0
  136. package/dist/provider/hooks/queries/useWalletBalance.js +55 -0
  137. package/dist/provider/hooks/utils/index.js +10 -0
  138. package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +74 -0
  139. package/dist/provider/hooks/utils/useClient.js +10 -0
  140. package/dist/provider/hooks/utils/useEventListeners.d.ts +1 -1
  141. package/dist/provider/hooks/utils/useEventListeners.js +147 -0
  142. package/dist/provider/hooks/utils/useInternalClient.js +10 -0
  143. package/dist/provider/hooks/utils/useModal.js +17 -0
  144. package/dist/provider/hooks/utils/useWalletState.d.ts +3 -3
  145. package/dist/provider/hooks/utils/useWalletState.js +48 -0
  146. package/dist/provider/index.js +9 -0
  147. package/dist/provider/providers/AuthProvider.d.ts +10 -6
  148. package/dist/provider/providers/AuthProvider.js +498 -0
  149. package/dist/provider/providers/CosmosExternalWalletProvider.js +66 -0
  150. package/dist/provider/providers/EvmExternalWalletProvider.js +74 -0
  151. package/dist/provider/providers/ExternalWalletProvider.d.ts +5 -2
  152. package/dist/provider/providers/ExternalWalletProvider.js +428 -0
  153. package/dist/provider/providers/SolanaExternalWalletProvider.js +66 -0
  154. package/dist/provider/stores/getters.d.ts +1 -1
  155. package/dist/provider/stores/getters.js +13 -0
  156. package/dist/provider/stores/setters.js +7 -0
  157. package/dist/provider/stores/slices/client.js +9 -0
  158. package/dist/provider/stores/slices/config.js +9 -0
  159. package/dist/provider/stores/slices/externalWallets.js +40 -0
  160. package/dist/provider/stores/slices/index.js +5 -0
  161. package/dist/provider/stores/slices/modal.js +16 -0
  162. package/dist/provider/stores/slices/wallet.js +13 -0
  163. package/dist/provider/stores/types.d.ts +7 -4
  164. package/dist/provider/stores/types.js +1 -0
  165. package/dist/provider/stores/useStore.js +28 -0
  166. package/dist/provider/types/externalWalletProviders.d.ts +2 -2
  167. package/dist/provider/types/externalWalletProviders.js +1 -0
  168. package/dist/provider/types/provider.d.ts +9 -3
  169. package/dist/provider/types/provider.js +1 -0
  170. package/dist/provider/types/query.js +1 -0
  171. package/dist/provider/types/utils.js +1 -0
  172. package/dist/provider/utils/constants.d.ts +5 -0
  173. package/dist/provider/utils/constants.js +10 -0
  174. package/dist/provider/utils/paraConfigTypeGuards.js +13 -0
  175. package/dist/provider/utils/renameMutations.js +18 -0
  176. package/package.json +18 -16
  177. package/dist/MoonPayEmbed-Q2HP2BFI.js.br +0 -0
  178. package/dist/MoonPayEmbed-Q2HP2BFI.js.gz +0 -0
  179. package/dist/chunk-MMUBH76A.js.br +0 -0
  180. package/dist/chunk-MMUBH76A.js.gz +0 -0
  181. package/dist/index.js.br +0 -0
  182. package/dist/index.js.gz +0 -0
  183. /package/dist/modal/{components/AuthInput → utils}/countryCodes.d.ts +0 -0
@@ -0,0 +1,189 @@
1
+ "use client";
2
+ import {
3
+ __async,
4
+ __spreadProps,
5
+ __spreadValues
6
+ } from "../../../chunk-MMUBH76A.js";
7
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
+ import { CpslButton, CpslIcon, CpslIdenticon, CpslText } from "@getpara/react-components";
9
+ import styled from "styled-components";
10
+ import { truncateAddress } from "@getpara/web-sdk";
11
+ import { useEffect, useRef } from "react";
12
+ import { useDropdownPosition } from "../AuthInput/hooks/useDropdownPosition.js";
13
+ import { useAccount, useWallet, useWalletState } from "../../../provider/index.js";
14
+ import { HeaderSelect, HeaderSelectContainer, HeaderSelectItem } from "../common.js";
15
+ import { useInternalClient } from "../../../provider/hooks/utils/useInternalClient.js";
16
+ import { useExternalWallets } from "../../../provider/providers/ExternalWalletProvider.js";
17
+ import { useStore } from "../../../provider/stores/useStore.js";
18
+ import { useCopyToClipboard } from "@getpara/react-common";
19
+ const getValue = (id, type) => {
20
+ return id && type ? `${id}~${type}` : void 0;
21
+ };
22
+ const WALLET_TYPES = {
23
+ EVM: "EVM",
24
+ SOLANA: "Solana",
25
+ COSMOS: "Cosmos"
26
+ };
27
+ const ChainSelect = () => {
28
+ var _a, _b;
29
+ const containerRef = useRef(null);
30
+ const { dropdownMaxHeight, dropdownWidth, mobileAnchor, resize } = useDropdownPosition(containerRef);
31
+ const { data: activeWallet } = useWallet();
32
+ const { switchChain, chainId, chains, chainIdSwitchingTo } = useExternalWallets();
33
+ useEffect(() => {
34
+ if (dropdownMaxHeight && chainId) {
35
+ resize();
36
+ }
37
+ }, [chainId, chainIdSwitchingTo, dropdownMaxHeight]);
38
+ const handleChainChange = (chainId2) => __async(void 0, null, function* () {
39
+ yield switchChain(chainId2);
40
+ });
41
+ if (!activeWallet || !activeWallet.isExternal || activeWallet.type === "SOLANA") {
42
+ return null;
43
+ }
44
+ const chainIdToUse = chainIdSwitchingTo != null ? chainIdSwitchingTo : chainId;
45
+ const selectedChainName = (_a = chains.find((c) => c.id.toString() === chainIdToUse)) == null ? void 0 : _a.name;
46
+ return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(HeaderSelectContainer, { ref: containerRef, id: "inputContainer", children: /* @__PURE__ */ jsxs(
47
+ HeaderSelect,
48
+ {
49
+ selectedValue: (_b = chainIdToUse == null ? void 0 : chainIdToUse.toString()) != null ? _b : "",
50
+ onCpslSelectValueChange: (e) => {
51
+ handleChainChange(e.detail);
52
+ },
53
+ showFormattedSelectedItem: true,
54
+ placeholder: "Choose chain...",
55
+ anchorElId: "inputContainer",
56
+ dropdownMaxHeight,
57
+ $width: dropdownWidth != null ? dropdownWidth : 0,
58
+ $top: (mobileAnchor != null ? mobileAnchor : 0) + 16 + 1,
59
+ autoWidth: true,
60
+ selectedItemVariant: "bodyXS",
61
+ children: [
62
+ chainIdToUse && /* @__PURE__ */ jsx(ChainName, { variant: "bodyXS", color: "contrast", slot: "selected-item", children: selectedChainName }),
63
+ chains == null ? void 0 : chains.map((chain) => /* @__PURE__ */ jsx(HeaderSelectItem, { slot: "items", value: chain.id.toString(), children: /* @__PURE__ */ jsx(ChainName, { variant: "bodyXS", color: "contrast", children: chain.name }) }, chain.id))
64
+ ]
65
+ }
66
+ ) }) });
67
+ };
68
+ function getName(para, {
69
+ type,
70
+ isExternal,
71
+ name,
72
+ isMenu = false,
73
+ hideWallets = false
74
+ }) {
75
+ if (para.isMultiWallet) {
76
+ return name != null ? name : `${isExternal ? "External " : ""}${type ? WALLET_TYPES[type] : ""}${!hideWallets && (isMenu || isExternal) ? " Wallet" : ""}`;
77
+ }
78
+ return hideWallets ? "My Account" : name || "My Wallet";
79
+ }
80
+ const AccountSelect = () => {
81
+ var _a;
82
+ const hideWallets = useStore((state) => {
83
+ var _a2;
84
+ return (_a2 = state.modalConfig) == null ? void 0 : _a2.hideWallets;
85
+ });
86
+ const para = useInternalClient();
87
+ const containerRef = useRef(null);
88
+ const { dropdownMaxHeight, dropdownWidth, mobileAnchor, resize } = useDropdownPosition(containerRef);
89
+ const [isCopied, copy] = useCopyToClipboard();
90
+ const { setSelectedWallet } = useWalletState();
91
+ const { data: activeWallet } = useWallet();
92
+ const { data: account } = useAccount();
93
+ const availableWallets = account == null ? void 0 : account.wallets;
94
+ const isGuest = para.isGuestMode && (activeWallet == null ? void 0 : activeWallet.pregenIdentifierType) === "GUEST_ID";
95
+ const handleCopy = () => {
96
+ copy((activeWallet == null ? void 0 : activeWallet.address) ? para.getDisplayAddress(activeWallet.id, { addressType: activeWallet.type }) : "");
97
+ };
98
+ const ActiveWalletNode = activeWallet ? /* @__PURE__ */ jsxs(FlexRow, { slot: "selected-item", style: { height: "24px" }, children: [
99
+ !isGuest && /* @__PURE__ */ jsx(CpslIdenticon, { variant: "avatar", size: "24px", hash: para.getIdenticonHash(activeWallet.id, activeWallet.type) }),
100
+ /* @__PURE__ */ jsx(WalletName, { variant: "bodyXS", color: "contrast", style: { marginLeft: isGuest ? "8px" : "0px" }, children: isGuest ? "Guest" : getName(para, __spreadProps(__spreadValues({}, activeWallet), { hideWallets })) }),
101
+ !hideWallets && /* @__PURE__ */ jsxs(Fragment, { children: [
102
+ /* @__PURE__ */ jsx(CpslText, { variant: "bodyXS", color: "secondary", children: (_a = activeWallet.ensName) != null ? _a : para.getDisplayAddress(activeWallet.id, { truncate: true, addressType: activeWallet.type }) }),
103
+ /* @__PURE__ */ jsx(
104
+ CpslButton,
105
+ {
106
+ id: "ignore-click",
107
+ size: "small",
108
+ variant: "ghost",
109
+ onClick: (e) => {
110
+ e.stopPropagation();
111
+ e.preventDefault();
112
+ handleCopy();
113
+ },
114
+ children: /* @__PURE__ */ jsx(CpslIcon, { id: "ignore-click", slot: "start", icon: isCopied ? "check" : "copy" })
115
+ }
116
+ )
117
+ ] })
118
+ ] }) : null;
119
+ useEffect(() => {
120
+ if (dropdownMaxHeight && (activeWallet == null ? void 0 : activeWallet.address)) {
121
+ resize();
122
+ }
123
+ }, [activeWallet, availableWallets, dropdownMaxHeight]);
124
+ return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(HeaderSelectContainer, { ref: containerRef, id: "addressInputContainer", children: availableWallets && availableWallets.length > 1 ? /* @__PURE__ */ jsxs(
125
+ HeaderSelect,
126
+ {
127
+ selectedValue: getValue(activeWallet == null ? void 0 : activeWallet.id, activeWallet == null ? void 0 : activeWallet.type),
128
+ onCpslSelectValueChange: (e) => {
129
+ const [id, type] = e.detail.split("~");
130
+ setSelectedWallet({ id, type });
131
+ },
132
+ showFormattedSelectedItem: true,
133
+ placeholder: "Choose wallet...",
134
+ anchorElId: "addressInputContainer",
135
+ dropdownMaxHeight,
136
+ $width: dropdownWidth != null ? dropdownWidth : 0,
137
+ $top: (mobileAnchor != null ? mobileAnchor : 0) + 16 + 1,
138
+ autoWidth: true,
139
+ selectedItemVariant: "bodyXS",
140
+ children: [
141
+ activeWallet && ActiveWalletNode,
142
+ availableWallets.map(({ address, name: _name, id, type, isExternal }) => {
143
+ const key = getValue(id, type);
144
+ const name = _name != null ? _name : getName(para, { type, isExternal, isMenu: true, hideWallets });
145
+ return /* @__PURE__ */ jsx(HeaderSelectItem, { slot: "items", value: key, children: /* @__PURE__ */ jsxs(FlexRow, { children: [
146
+ /* @__PURE__ */ jsx(CpslIdenticon, { size: "40px", hash: para.getIdenticonHash(id, type) }),
147
+ /* @__PURE__ */ jsxs(FlexCol, { children: [
148
+ name && /* @__PURE__ */ jsx(CpslText, { variant: "bodyS", color: "contrast", children: name }),
149
+ !hideWallets && address && type && /* @__PURE__ */ jsx(CpslText, { variant: "bodyXS", color: "secondary", children: truncateAddress(address, type, { prefix: para.cosmosPrefix }) })
150
+ ] })
151
+ ] }) }, key);
152
+ })
153
+ ]
154
+ }
155
+ ) : ActiveWalletNode }) });
156
+ };
157
+ const Container = styled.div`
158
+ flex: 0;
159
+ width: 100%;
160
+ display: flex;
161
+ justify-content: center;
162
+ `;
163
+ const FlexRow = styled.div`
164
+ display: flex;
165
+ align-items: center;
166
+ gap: 8px;
167
+ `;
168
+ const FlexCol = styled.div`
169
+ display: flex;
170
+ flex-direction: column;
171
+ align-items: flex-start;
172
+ `;
173
+ const WalletName = styled(CpslText)`
174
+ white-space: nowrap;
175
+ `;
176
+ const ChainName = styled(CpslText)`
177
+ max-width: 150px;
178
+ text-transform: capitalize;
179
+
180
+ &::part(text-element) {
181
+ white-space: nowrap;
182
+ text-overflow: ellipsis;
183
+ overflow: hidden;
184
+ }
185
+ `;
186
+ export {
187
+ AccountSelect,
188
+ ChainSelect
189
+ };
@@ -0,0 +1,144 @@
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, ErrorContainer, ErrorIcon, 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 { isMobile, isTablet } from "@getpara/web-sdk";
14
+ import { routeMobileExternalWallet } from "../../utils/routeMobileExternalWallet.js";
15
+ import { useExternalWallets } from "../../../provider/providers/ExternalWalletProvider.js";
16
+ const ExternalWalletStep = () => {
17
+ const [isCopied, copy] = useCopyToClipboard();
18
+ const externalWalletError = useModalStore((state) => state.externalWalletError);
19
+ const setStep = useModalStore((state) => state.setStep);
20
+ const { connectExternalWallet, wallet, qrUri, walletDisplayHelpers } = useExternalWallets();
21
+ useEffect(() => {
22
+ routeMobileExternalWallet(qrUri);
23
+ }, [qrUri]);
24
+ const handleTryAgainClick = () => __async(void 0, null, function* () {
25
+ if (wallet) {
26
+ yield connectExternalWallet(wallet);
27
+ }
28
+ });
29
+ const handleCopy = () => {
30
+ if (qrUri) {
31
+ copy(qrUri);
32
+ }
33
+ };
34
+ const Content = useMemo(() => {
35
+ var _a, _b, _c;
36
+ if (!wallet) {
37
+ return null;
38
+ }
39
+ const isWalletConnect = wallet.id === "walletConnect";
40
+ const isMobileWalletConnect = isMobile() && isWalletConnect;
41
+ if (isMobileWalletConnect) {
42
+ /* @__PURE__ */ jsx(InnerStepContainer, { children: /* @__PURE__ */ jsx(Text, { weight: "semiBold", children: "Continue in the WalletConnect modal." }) });
43
+ }
44
+ const { showExtension, showMobile, isSolanaMobileIOS } = walletDisplayHelpers;
45
+ if (!showMobile && !showExtension || isSolanaMobileIOS && !wallet.installed) {
46
+ const text = isSolanaMobileIOS ? "Solana wallets aren't available on mobile IOS browsers.\n\nPlease continue in the wallet app." : `${wallet.name} isn't supported on mobile devices.
47
+
48
+ Please choose another wallet or continue on desktop.`;
49
+ return /* @__PURE__ */ jsx(InnerStepContainer, { children: /* @__PURE__ */ jsx(Text, { weight: "semiBold", children: text }) });
50
+ }
51
+ if (showExtension) {
52
+ const isInstalled = wallet.installed;
53
+ return /* @__PURE__ */ jsxs(InnerStepContainer, { children: [
54
+ isInstalled && !(externalWalletError == null ? void 0 : externalWalletError.length) ? /* @__PURE__ */ jsx(CenteredText, { color: "contrast", weight: "semiBold", children: `Confirm connection request in the ${wallet.name} browser extension.` }) : /* @__PURE__ */ jsxs(ErrorContainer, { children: [
55
+ /* @__PURE__ */ jsx(ErrorIcon, { icon: "alertCircle" }),
56
+ /* @__PURE__ */ jsx(CpslText, { weight: "semiBold", color: "error", children: isInstalled ? externalWalletError == null ? void 0 : externalWalletError[0] : `${wallet.name} not detected` })
57
+ ] }),
58
+ /* @__PURE__ */ jsxs(
59
+ CpslButton,
60
+ {
61
+ as: isInstalled ? "button" : "a",
62
+ href: (_a = wallet.downloadUrl) != null ? _a : "",
63
+ target: "_blank",
64
+ variant: "secondary",
65
+ onClick: handleTryAgainClick,
66
+ children: [
67
+ /* @__PURE__ */ jsx(CpslIcon, { slot: "start", icon: isInstalled ? "refresh" : "linkExternal" }),
68
+ isInstalled ? "Try Again" : `Get ${wallet.name}`
69
+ ]
70
+ }
71
+ )
72
+ ] });
73
+ }
74
+ if (showMobile) {
75
+ if (wallet.type === "SOLANA" || isMobile() && !isTablet()) {
76
+ const isInstalled = wallet.type !== "SOLANA" || wallet.installed;
77
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
78
+ /* @__PURE__ */ jsx(InnerStepContainer, { children: !isInstalled && /* @__PURE__ */ jsx(CpslText, { weight: "semiBold", color: "error", children: `${wallet.name} not detected` }) }),
79
+ wallet.id !== "walletConnect" && /* @__PURE__ */ jsxs(InnerStepContainer, { children: [
80
+ /* @__PURE__ */ jsx(CpslButton, { onClick: () => routeMobileExternalWallet(qrUri), fullWidth: true, children: "Connect Wallet" }),
81
+ /* @__PURE__ */ jsx(Link, { href: (_b = wallet.downloadUrl) != null ? _b : "", target: "_blank", children: /* @__PURE__ */ jsxs(ExternalButton, { variant: "secondary", children: [
82
+ `Get ${wallet.name}`,
83
+ /* @__PURE__ */ jsx(ExternalIcon, { icon: "linkExternal" })
84
+ ] }) })
85
+ ] })
86
+ ] });
87
+ }
88
+ const openWCModal = () => __async(void 0, null, function* () {
89
+ yield connectExternalWallet(wallet, true, true);
90
+ });
91
+ const GetWalletButton = /* @__PURE__ */ jsxs(ExternalButton, { variant: "secondary", onClick: isWalletConnect ? openWCModal : void 0, children: [
92
+ `${isWalletConnect ? "Open" : "Get"} ${wallet.name}`,
93
+ /* @__PURE__ */ jsx(ExternalIcon, { icon: "linkExternal" })
94
+ ] });
95
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
96
+ /* @__PURE__ */ jsxs(InnerStepContainer, { children: [
97
+ /* @__PURE__ */ jsx(CpslText, { weight: "semiBold", children: "Scan with your mobile device" }),
98
+ /* @__PURE__ */ jsx(QRContainer, { children: !qrUri ? /* @__PURE__ */ jsx(CpslSpinner, { size: 100 }) : /* @__PURE__ */ jsx(CpslQrCode, { url: qrUri, imageSrc: wallet.iconUrl }) }),
99
+ /* @__PURE__ */ jsxs(CpslButton, { size: "small", variant: "ghost", onClick: handleCopy, children: [
100
+ /* @__PURE__ */ jsx(CpslIcon, { slot: "start", icon: isCopied ? "check" : "copy" }),
101
+ isCopied ? "Copied" : "Copy Link"
102
+ ] })
103
+ ] }),
104
+ /* @__PURE__ */ jsx(InnerStepContainer, { children: isWalletConnect ? /* @__PURE__ */ jsx(Fragment, { children: GetWalletButton }) : /* @__PURE__ */ jsx(Link, { href: (_c = wallet.downloadUrl) != null ? _c : "", target: "_blank", children: GetWalletButton }) })
105
+ ] });
106
+ }
107
+ }, [wallet, walletDisplayHelpers, externalWalletError, qrUri]);
108
+ useEffect(() => {
109
+ if (!wallet) {
110
+ setStep(ModalStep.AUTH_MAIN);
111
+ }
112
+ }, [wallet]);
113
+ if (!wallet) {
114
+ return null;
115
+ }
116
+ return /* @__PURE__ */ jsx(Container, { children: Content });
117
+ };
118
+ const Container = styled(StepContainer)`
119
+ flex: 1;
120
+ justify-content: space-between;
121
+ `;
122
+ const Text = styled(CenteredText)`
123
+ white-space: pre-line;
124
+ `;
125
+ const ExternalButton = styled(CpslButton)`
126
+ display: flex;
127
+ gap: 8px;
128
+ align-items: center;
129
+ justify-content: center;
130
+ width: 100%;
131
+ cursor: pointer;
132
+ margin-top: 8px;
133
+ text-decoration: none;
134
+ `;
135
+ const ExternalIcon = styled(CpslIcon)`
136
+ --height: 20px;
137
+ --width: 20px;
138
+ `;
139
+ const Link = styled.a`
140
+ text-decoration: none;
141
+ `;
142
+ export {
143
+ ExternalWalletStep
144
+ };
@@ -0,0 +1,17 @@
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
+ };
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ import "../../../chunk-MMUBH76A.js";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { CpslButton, CpslSpinner, CpslText } from "@getpara/react-components";
5
+ import { useEffect } from "react";
6
+ import { styled } from "styled-components";
7
+ import { useModalStore } from "../../stores/index.js";
8
+ import { ErrorContainer, ErrorIcon, Heading, InnerStepContainer, StepContainer } from "../common.js";
9
+ import { useExternalWallets } from "../../../provider/providers/ExternalWalletProvider.js";
10
+ const ExternalWalletVerificationStep = () => {
11
+ const { isExternalWalletVerifying, verifyWalletSignature } = useExternalWallets();
12
+ const externalWalletError = useModalStore((state) => state.externalWalletError);
13
+ useEffect(() => {
14
+ verifyWalletSignature();
15
+ }, []);
16
+ return /* @__PURE__ */ jsxs(StepContainer, { $wide: true, children: [
17
+ /* @__PURE__ */ jsxs(InnerStepContainer, { children: [
18
+ /* @__PURE__ */ jsx(Heading, { variant: "headingS", weight: "bold", children: "Verify Your Wallet" }),
19
+ /* @__PURE__ */ jsx(InlineText, { variant: "bodyS", color: "secondary", children: "Sign the message with your wallet to complete sign up." }),
20
+ !!(externalWalletError == null ? void 0 : externalWalletError[0]) && /* @__PURE__ */ jsxs(ErrorContainer, { children: [
21
+ /* @__PURE__ */ jsx(ErrorIcon, { icon: "alertCircle" }),
22
+ /* @__PURE__ */ jsx(CpslText, { weight: "semiBold", color: "error", children: externalWalletError == null ? void 0 : externalWalletError[0] })
23
+ ] })
24
+ ] }),
25
+ /* @__PURE__ */ jsx(InnerStepContainer, { children: isExternalWalletVerifying ? /* @__PURE__ */ jsx(CpslSpinner, {}) : /* @__PURE__ */ jsx(CpslButton, { onClick: verifyWalletSignature, children: "Retry" }) })
26
+ ] });
27
+ };
28
+ const InlineText = styled(CpslText)`
29
+ text-align: center;
30
+ display: inline-block;
31
+ `;
32
+ export {
33
+ ExternalWalletVerificationStep
34
+ };
@@ -0,0 +1,173 @@
1
+ "use client";
2
+ import {
3
+ __async
4
+ } from "../../../chunk-MMUBH76A.js";
5
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ import styled from "styled-components";
7
+ import { StyledCpslTileButton } from "../common.js";
8
+ import { CpslButton, CpslIcon, CpslInput, CpslText } from "@getpara/react-components";
9
+ import { useModalStore } from "../../stores/index.js";
10
+ import { ModalStep } from "../../utils/steps.js";
11
+ import { useState } from "react";
12
+ import { hasEmbeddedAuth } from "../../utils/authLayoutHelpers.js";
13
+ import { useExternalWallets } from "../../../provider/providers/ExternalWalletProvider.js";
14
+ const HAS_MORE_LENGTH = 3;
15
+ const ExternalWallets = () => {
16
+ const { wallets, connectExternalWallet } = useExternalWallets();
17
+ const setSelectedExternalWalletId = useModalStore((state) => state.setSelectedExternalWalletId);
18
+ const setStep = useModalStore((state) => state.setStep);
19
+ const showAll = useModalStore((state) => state.step === ModalStep.EX_WALLET_MORE);
20
+ const authLayout = useModalStore((state) => state.authLayout);
21
+ const [search, setSearch] = useState("");
22
+ const hasMore = wallets.length > HAS_MORE_LENGTH;
23
+ const walletsToShow = showAll || !hasMore ? search ? wallets.filter((w) => w.name.toLowerCase().includes(search.toLowerCase())) : wallets : wallets.slice(0, HAS_MORE_LENGTH);
24
+ const showMoreButton = !showAll && hasMore;
25
+ const handleShowAll = () => {
26
+ setStep(ModalStep.EX_WALLET_MORE);
27
+ };
28
+ const handleParaClick = () => {
29
+ setStep(ModalStep.AUTH_MORE);
30
+ };
31
+ const handleWalletClick = (wallet) => () => {
32
+ setSelectedExternalWalletId(wallet.id);
33
+ setStep(ModalStep.EX_WALLET_SELECTED);
34
+ if (wallet.installed) {
35
+ connectExternalWallet(wallet);
36
+ } else if (wallet.isMobile) {
37
+ connectExternalWallet(wallet, true);
38
+ }
39
+ };
40
+ return /* @__PURE__ */ jsxs(Container, { $maxHeight: showAll, children: [
41
+ showAll && /* @__PURE__ */ jsxs(Fragment, { children: [
42
+ /* @__PURE__ */ jsx(SearchInputWrapper, { children: /* @__PURE__ */ jsx(
43
+ SearchInput,
44
+ {
45
+ placeholder: "Search for your wallet",
46
+ onCpslInput: (e) => __async(void 0, null, function* () {
47
+ var _a;
48
+ setSearch((_a = e.target.value) != null ? _a : "");
49
+ }),
50
+ value: search,
51
+ style: { width: "100%" },
52
+ children: /* @__PURE__ */ jsx(SearchIcon, { slot: "start", icon: "search" })
53
+ }
54
+ ) }),
55
+ hasEmbeddedAuth(authLayout != null ? authLayout : []) && /* @__PURE__ */ jsx(CpslButton, { fullWidth: true, variant: "tertiary", onClick: handleParaClick, children: /* @__PURE__ */ jsxs(WalletButtonOuterContainer, { children: [
56
+ /* @__PURE__ */ jsxs(WalletButtonInnerContainer, { children: [
57
+ /* @__PURE__ */ jsx(CpslIcon, { slot: "start", icon: "paraIcon" }),
58
+ /* @__PURE__ */ jsx(CpslText, { weight: "medium", children: "Para" })
59
+ ] }),
60
+ /* @__PURE__ */ jsx(Badge, { $show: true, $variant: "installed", children: /* @__PURE__ */ jsx(CpslText, { variant: "body2XS", weight: "medium", children: "Available" }) })
61
+ ] }) })
62
+ ] }),
63
+ walletsToShow.map(
64
+ (wallet) => showAll ? /* @__PURE__ */ jsx(CpslButton, { fullWidth: true, variant: "tertiary", onClick: handleWalletClick(wallet), children: /* @__PURE__ */ jsxs(WalletButtonOuterContainer, { children: [
65
+ /* @__PURE__ */ jsxs(WalletButtonInnerContainer, { children: [
66
+ /* @__PURE__ */ jsx(CpslIcon, { slot: "start", src: wallet.iconUrl }),
67
+ /* @__PURE__ */ jsx(CpslText, { weight: "medium", children: wallet.name })
68
+ ] }),
69
+ /* @__PURE__ */ jsx(Badge, { $show: !!wallet.isMobile || !!wallet.installed, $variant: wallet.installed ? "installed" : "mobile", children: /* @__PURE__ */ jsx(CpslText, { variant: "body2XS", weight: "medium", children: wallet.installed ? "Installed" : "Mobile" }) })
70
+ ] }) }, wallet.id) : /* @__PURE__ */ jsx(WalletTileButton, { src: wallet.iconUrl, onClick: handleWalletClick(wallet), children: /* @__PURE__ */ jsxs(TileButtonInnerContainer, { children: [
71
+ wallet.installed && /* @__PURE__ */ jsx(InstalledIndicator, {}),
72
+ /* @__PURE__ */ jsx(CpslText, { variant: "bodyXS", color: "secondary", weight: "medium", children: wallet.name })
73
+ ] }) }, wallet.id)
74
+ ),
75
+ showMoreButton && /* @__PURE__ */ jsxs(CpslButton, { variant: "tertiary", fullWidth: true, onClick: handleShowAll, children: [
76
+ /* @__PURE__ */ jsx(CpslIcon, { slot: "start", icon: "wallet" }),
77
+ "More Wallets"
78
+ ] }),
79
+ showAll && /* @__PURE__ */ jsx(BlurContainer, {})
80
+ ] });
81
+ };
82
+ const Container = styled.div`
83
+ position: relative;
84
+ display: flex;
85
+ justify-content: center;
86
+ gap: 8px;
87
+ flex-wrap: wrap;
88
+
89
+ max-height: ${({ $maxHeight }) => $maxHeight ? "348px" : "none"};
90
+ overflow-y: auto;
91
+
92
+ &::-webkit-scrollbar {
93
+ display: none;
94
+ }
95
+ -ms-overflow-style: none;
96
+ scrollbar-width: none;
97
+ `;
98
+ const WalletTileButton = styled(StyledCpslTileButton)`
99
+ flex: 1;
100
+ `;
101
+ const WalletButtonOuterContainer = styled.div`
102
+ width: 100%;
103
+ display: flex;
104
+ align-items: center;
105
+ gap: 8px;
106
+ justify-content: space-between;
107
+ `;
108
+ const WalletButtonInnerContainer = styled.div`
109
+ display: flex;
110
+ align-items: center;
111
+ gap: 8px;
112
+
113
+ cpsl-icon {
114
+ --icon-color: var(--cpsl-color-contrast);
115
+ }
116
+ cpsl-text {
117
+ &::part(text-element) {
118
+ color: var(--cpsl-color-contrast);
119
+ }
120
+ }
121
+ `;
122
+ const Badge = styled.div`
123
+ visibility: ${({ $show }) => $show ? "visible" : "hidden"};
124
+ padding: 2px 4px;
125
+ border-radius: 4px;
126
+ border: 1px solid;
127
+ border-color: ${({ $variant }) => $variant === "installed" ? "var(--cpsl-color-utility-green)" : "var(--cpsl-color-text-primary)"};
128
+ cpsl-text {
129
+ &::part(text-element) {
130
+ color: ${({ $variant }) => $variant === "installed" ? "var(--cpsl-color-utility-green)" : "var(--cpsl-color-text-primary)"};
131
+ }
132
+ }
133
+ `;
134
+ const InstalledIndicator = styled.span`
135
+ width: 8px;
136
+ height: 8px;
137
+ border-radius: 100%;
138
+ background-color: var(--cpsl-color-utility-green);
139
+ `;
140
+ const TileButtonInnerContainer = styled.div`
141
+ display: flex;
142
+ gap: 4px;
143
+ align-items: center;
144
+ `;
145
+ const SearchIcon = styled(CpslIcon)`
146
+ --icon-color: var(--cpsl-color-contrast);
147
+ `;
148
+ const SearchInputWrapper = styled.div`
149
+ width: 100%;
150
+ background-color: var(--cpsl-color-background-0);
151
+
152
+ position: sticky;
153
+ top: 0;
154
+ padding-bottom: 4px;
155
+ margin-bottom: -4px;
156
+ `;
157
+ const SearchInput = styled(CpslInput)`
158
+ width: 100%;
159
+ --container-background-color: var(--cpsl-color-background-8);
160
+ --input-background-color: var(--cpsl-color-background-8);
161
+ `;
162
+ const BlurContainer = styled.div`
163
+ position: sticky;
164
+ height: 56px;
165
+ width: 100%;
166
+ bottom: 0;
167
+
168
+ background: linear-gradient(0deg, var(--cpsl-color-background-0) 0%, rgba(234, 239, 211, 0) 100%);
169
+ pointer-events: none;
170
+ `;
171
+ export {
172
+ ExternalWallets
173
+ };
@@ -0,0 +1,95 @@
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 { CpslButton, CpslIcon, CpslText } from "@getpara/react-components";
6
+ import { useModalStore } from "../../stores/index.js";
7
+ import { PARA_CONNECT, PARA_TERMS_AND_CONDITIONS } from "../../constants/constants.js";
8
+ import { useMemo } from "react";
9
+ import { getStepHasFooter } from "../../utils/steps.js";
10
+ import { useAccount } from "../../../provider/index.js";
11
+ const Footer = () => {
12
+ const { data: account } = useAccount();
13
+ const currentStep = useModalStore((state) => state.step);
14
+ const accountFooter = (account == null ? void 0 : account.isConnected) && !account.isGuestMode;
15
+ const showFooter = accountFooter || getStepHasFooter(currentStep);
16
+ const Content = useMemo(() => {
17
+ if (accountFooter) {
18
+ return /* @__PURE__ */ jsxs(ConnectContainer, { children: [
19
+ /* @__PURE__ */ jsxs(ConnectText, { variant: "bodyS", color: "secondary", weight: "medium", children: [
20
+ "Access all your wallet\u2019s features at",
21
+ " ",
22
+ /* @__PURE__ */ jsx("a", { href: PARA_CONNECT, target: "blank", children: /* @__PURE__ */ jsx(ClickableText, { variant: "bodyS", weight: "medium", children: "Para Connect" }) })
23
+ ] }),
24
+ /* @__PURE__ */ jsx(CpslButton, { as: "a", href: PARA_CONNECT, target: "blank", variant: "ghost", children: /* @__PURE__ */ jsx(RightChevron, { icon: "chevronUp" }) })
25
+ ] });
26
+ }
27
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
28
+ /* @__PURE__ */ jsxs(InlineText, { variant: "body2XS", color: "secondary", weight: "medium", children: [
29
+ "By logging in you agree to our",
30
+ " ",
31
+ /* @__PURE__ */ jsx("a", { href: PARA_TERMS_AND_CONDITIONS, target: "blank", children: /* @__PURE__ */ jsx(ClickableText, { variant: "body2XS", weight: "medium", children: "Terms & Conditions" }) })
32
+ ] }),
33
+ /* @__PURE__ */ jsxs(PoweredByContainer, { children: [
34
+ /* @__PURE__ */ jsx(InlineText, { variant: "bodyS", color: "secondary", weight: "medium", children: "Powered by" }),
35
+ /* @__PURE__ */ jsx(ParaLogo, { icon: "para" })
36
+ ] })
37
+ ] });
38
+ }, [account]);
39
+ if (!showFooter) {
40
+ return null;
41
+ }
42
+ return /* @__PURE__ */ jsx(FooterContainer, { slot: "footer", children: /* @__PURE__ */ jsx(FooterContentContainer, { children: Content }) });
43
+ };
44
+ const FooterContainer = styled.div`
45
+ display: flex;
46
+ flex-direction: column;
47
+ align-items: center;
48
+ gap: 16px;
49
+ padding: 8px 0px;
50
+ `;
51
+ const FooterContentContainer = styled.div`
52
+ display: flex;
53
+ flex-direction: column;
54
+ align-items: center;
55
+ gap: 8px;
56
+ `;
57
+ const PoweredByContainer = styled.div`
58
+ display: flex;
59
+ gap: 5px;
60
+ align-items: center;
61
+ justify-content: center;
62
+ `;
63
+ const ConnectContainer = styled.div`
64
+ display: flex;
65
+ gap: 8px;
66
+ align-items: center;
67
+ justify-content: center;
68
+ `;
69
+ const RightChevron = styled(CpslIcon)`
70
+ transform: rotate(90deg);
71
+
72
+ /* --icon-color: var(--cpsl-color-text-tertiary); */
73
+ --height: 24px;
74
+ --width: 24px;
75
+ `;
76
+ const InlineText = styled(CpslText)`
77
+ text-align: center;
78
+ display: inline-block;
79
+ `;
80
+ const ConnectText = styled(InlineText)`
81
+ line-height: 20px;
82
+ `;
83
+ const ClickableText = styled(InlineText)`
84
+ cursor: pointer;
85
+ display: inline-block;
86
+ `;
87
+ const ParaLogo = styled(CpslIcon)`
88
+ display: inline-block;
89
+ --icon-color: var(--cpsl-color-text-secondary);
90
+ --width: 49px;
91
+ --height: auto;
92
+ `;
93
+ export {
94
+ Footer
95
+ };