@getpara/react-sdk 2.0.0-alpha.18 → 2.0.0-alpha.20
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.
- package/dist/cli/cli.mjs +2 -0
- package/dist/modal/ParaModal.js +2 -2
- package/dist/modal/components/Account/Account.js +6 -6
- package/dist/modal/components/AddFunds/AddFunds.js +2 -2
- package/dist/modal/components/AddFunds/AddFundsAsset.js +6 -6
- package/dist/modal/components/AddFunds/AddFundsAwaiting.js +2 -2
- package/dist/modal/components/AddFunds/AddFundsProvider.js +4 -4
- package/dist/modal/components/AddFunds/AddFundsSettings.js +6 -6
- package/dist/modal/components/AddFunds/common.js +2 -2
- package/dist/modal/components/AuthInput/AuthInput.js +6 -6
- package/dist/modal/components/AuthMainStep/AuthMainStep.js +2 -2
- package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +6 -6
- package/dist/modal/components/AuthOptions/AuthOptions.js +4 -4
- package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +2 -2
- package/dist/modal/components/Body/AnimatedHeightWrapper.js +2 -2
- package/dist/modal/components/Body/Body.js +8 -8
- package/dist/modal/components/ChainSwitch/ChainSwitch.js +4 -4
- package/dist/modal/components/Controls/Controls.js +5 -5
- package/dist/modal/components/Controls/Selects.js +6 -6
- package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +15 -15
- package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js +2 -2
- package/dist/modal/components/ExternalWallets/ExternalWallets.js +12 -12
- package/dist/modal/components/Footer/Footer.js +10 -10
- package/dist/modal/components/Header/Header.js +2 -2
- package/dist/modal/components/Header/hooks/useStepTitle.js +1 -0
- package/dist/modal/components/Hero/Hero.js +7 -7
- package/dist/modal/components/IFrameStep/IFrameStep.js +3 -3
- package/dist/modal/components/OAuth/OAuth.js +3 -3
- package/dist/modal/components/OAuth/TelegramOAuthStep.js +4 -4
- package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +8 -8
- package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +4 -4
- package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +3 -3
- package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +4 -4
- package/dist/modal/components/WalletCard/PartnerIcon.js +4 -4
- package/dist/modal/components/WalletCard/WalletCard.js +7 -7
- package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +2 -2
- package/dist/modal/components/common.js +19 -19
- package/dist/modal/constants/constants.js +1 -1
- package/dist/modal/utils/steps.d.ts +2 -0
- package/dist/modal/utils/steps.js +5 -1
- package/dist/provider/index.d.ts +2 -0
- package/dist/provider/index.js +2 -0
- package/dist/provider/providers/AuthProvider.js +14 -4
- package/dist/provider/providers/ExternalWalletProvider.d.ts +0 -3
- package/dist/provider/providers/ExternalWalletProvider.js +2 -3
- package/package.json +8 -8
- package/dist/modal/types/externalWallets.d.ts +0 -37
- package/dist/modal/types/externalWallets.js +0 -34
package/dist/cli/cli.mjs
CHANGED
package/dist/modal/ParaModal.js
CHANGED
|
@@ -14,7 +14,7 @@ import { ModalStep, RESET_TO_ACCOUNT_STEPS, RESET_TO_AUTH_STEPS } from "./utils/
|
|
|
14
14
|
import { AuthLayout } from "./types/modalProps.js";
|
|
15
15
|
import { DEFAULTS } from "./constants/defaults.js";
|
|
16
16
|
import { useGoBack } from "./hooks/useGoBack.js";
|
|
17
|
-
import
|
|
17
|
+
import { safeStyled } from "@getpara/react-common";
|
|
18
18
|
import { hasEmbeddedAuth, hasExternalWallet } from "./utils/authLayoutHelpers.js";
|
|
19
19
|
import { useAccount, useModal, useWalletState } from "../provider/index.js";
|
|
20
20
|
import { useInternalClient } from "../provider/hooks/utils/useInternalClient.js";
|
|
@@ -278,7 +278,7 @@ const ParaModal = forwardRef((props, ref) => {
|
|
|
278
278
|
}
|
|
279
279
|
);
|
|
280
280
|
});
|
|
281
|
-
const StyledAuthModal =
|
|
281
|
+
const StyledAuthModal = safeStyled(CpslAuthModal)`
|
|
282
282
|
${({ $embeddedModal }) => $embeddedModal && `
|
|
283
283
|
&::part(modal-body-card) {
|
|
284
284
|
--card-box-shadow: none;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__async
|
|
4
4
|
} from "../../../chunk-MMUBH76A.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import
|
|
6
|
+
import { safeStyled } from "@getpara/react-common";
|
|
7
7
|
import { InnerStepContainer, StepContainer, StyledCpslTileButton } from "../common.js";
|
|
8
8
|
import { CpslButton, CpslIcon, CpslSpinner, CpslText } from "@getpara/react-components";
|
|
9
9
|
import { OnRampStep, useModalStore } from "../../stores/index.js";
|
|
@@ -99,7 +99,7 @@ const Account = ({ onClose }) => {
|
|
|
99
99
|
] }) })
|
|
100
100
|
] }) });
|
|
101
101
|
};
|
|
102
|
-
const ButtonContainer =
|
|
102
|
+
const ButtonContainer = safeStyled.div`
|
|
103
103
|
display: flex;
|
|
104
104
|
align-items: center;
|
|
105
105
|
justify-content: center;
|
|
@@ -107,22 +107,22 @@ const ButtonContainer = styled.div`
|
|
|
107
107
|
width: 100%;
|
|
108
108
|
height: 88px;
|
|
109
109
|
`;
|
|
110
|
-
const OptionButton =
|
|
110
|
+
const OptionButton = safeStyled(StyledCpslTileButton)`
|
|
111
111
|
flex: 1;
|
|
112
112
|
|
|
113
113
|
--button-icon-color: var(--cpsl-color-text-primary);
|
|
114
114
|
`;
|
|
115
|
-
const DisconnectButton =
|
|
115
|
+
const DisconnectButton = safeStyled(CpslButton)`
|
|
116
116
|
--button-border-width: 0px;
|
|
117
117
|
`;
|
|
118
|
-
const BalanceContainer =
|
|
118
|
+
const BalanceContainer = safeStyled.div`
|
|
119
119
|
display: flex;
|
|
120
120
|
justify-content: center;
|
|
121
121
|
align-items: center;
|
|
122
122
|
padding-top: 8px;
|
|
123
123
|
padding-bottom: 24px;
|
|
124
124
|
`;
|
|
125
|
-
const Alert =
|
|
125
|
+
const Alert = safeStyled.div`
|
|
126
126
|
--icon-color: var(--cpsl-color-utility-yellow);
|
|
127
127
|
--icon-stroke-color: var(--cpsl-color-utility-yellow);
|
|
128
128
|
--icon-fill-color: var(--cpsl-color-utility-yellow);
|
|
@@ -8,7 +8,7 @@ import { OnRampStep } from "../../stores/index.js";
|
|
|
8
8
|
import { useModalStore } from "../../stores/modal/useModalStore.js";
|
|
9
9
|
import { useEffect, useMemo } from "react";
|
|
10
10
|
import { getAddFundsStep } from "../../utils/steps.js";
|
|
11
|
-
import
|
|
11
|
+
import { safeStyled } from "@getpara/react-common";
|
|
12
12
|
import { useAccount, useWallet } from "../../../provider/index.js";
|
|
13
13
|
import { AddFundsProvider } from "./AddFundsProvider.js";
|
|
14
14
|
import { AddFundsReceive } from "./AddFundsReceive.js";
|
|
@@ -61,7 +61,7 @@ const AddFunds = () => {
|
|
|
61
61
|
/* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsx(AddFundsContextProvider, { "data-testid": "add-funds", tab, children: Content }) })
|
|
62
62
|
] });
|
|
63
63
|
};
|
|
64
|
-
const SpinnerContainer =
|
|
64
|
+
const SpinnerContainer = safeStyled(StepContainer)`
|
|
65
65
|
margin: 50% 0;
|
|
66
66
|
`;
|
|
67
67
|
export {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import * as comp from "@getpara/react-components";
|
|
9
9
|
import { getOnRampNetworks } from "@getpara/web-sdk";
|
|
10
|
-
import
|
|
10
|
+
import { safeStyled } from "@getpara/react-common";
|
|
11
11
|
import { getAssetCode, getAssetName, ON_RAMP_ASSETS } from "../../constants/constants.js";
|
|
12
12
|
import { useModalStore } from "../../stores/index.js";
|
|
13
13
|
import { useRef, useState } from "react";
|
|
@@ -84,7 +84,7 @@ function AddFundsAsset() {
|
|
|
84
84
|
)) }) }) })
|
|
85
85
|
] });
|
|
86
86
|
}
|
|
87
|
-
const ScrollContainer =
|
|
87
|
+
const ScrollContainer = safeStyled.div`
|
|
88
88
|
height: calc(100% - 56px);
|
|
89
89
|
width: 100%;
|
|
90
90
|
display: flex;
|
|
@@ -93,7 +93,7 @@ const ScrollContainer = styled.div`
|
|
|
93
93
|
overflow-y: auto;
|
|
94
94
|
mask-image: ${({ isAtBottom, isAtTop }) => !isAtBottom && !isAtTop ? "linear-gradient(to bottom, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%)" : !isAtBottom ? "linear-gradient(to bottom, black calc(100% - 24px), transparent 100%)" : !isAtTop ? "linear-gradient(to top, black calc(100% - 24px), transparent 100%)" : "none"};
|
|
95
95
|
`;
|
|
96
|
-
const AssetList =
|
|
96
|
+
const AssetList = safeStyled.ul`
|
|
97
97
|
display: flex;
|
|
98
98
|
flex-direction: column;
|
|
99
99
|
width: 100%;
|
|
@@ -103,7 +103,7 @@ const AssetList = styled.ul`
|
|
|
103
103
|
margin: 0;
|
|
104
104
|
padding: 0px;
|
|
105
105
|
`;
|
|
106
|
-
const AssetButton =
|
|
106
|
+
const AssetButton = safeStyled(comp.CpslButton)`
|
|
107
107
|
display: flex;
|
|
108
108
|
justify-content: center;
|
|
109
109
|
align-items: center;
|
|
@@ -113,10 +113,10 @@ const AssetButton = styled(comp.CpslButton)`
|
|
|
113
113
|
--button-secondary-hover-background-color: var(--cpsl-color-background-16);
|
|
114
114
|
--button-secondary-hover-border-color: var(--cpsl-color-background-16);
|
|
115
115
|
`;
|
|
116
|
-
const Info =
|
|
116
|
+
const Info = safeStyled(comp.CpslCol)`
|
|
117
117
|
text-align: left;
|
|
118
118
|
`, Code = comp.CpslText, Name = comp.CpslText;
|
|
119
|
-
const SearchInput =
|
|
119
|
+
const SearchInput = safeStyled(comp.CpslInput)`
|
|
120
120
|
--container-background-color: var(--cpsl-color-background-8);
|
|
121
121
|
--input-background-color: transparent;
|
|
122
122
|
`;
|
|
@@ -10,7 +10,7 @@ import { useModalStore } from "../../stores/index.js";
|
|
|
10
10
|
import { lazy, useEffect, useMemo, useState } from "react";
|
|
11
11
|
import { ModalStep } from "../../utils/steps.js";
|
|
12
12
|
import { RampEmbed } from "@getpara/react-common";
|
|
13
|
-
import
|
|
13
|
+
import { safeStyled } from "@getpara/react-common";
|
|
14
14
|
import { useGoBack } from "../../hooks/useGoBack.js";
|
|
15
15
|
import { useInternalClient } from "../../../provider/hooks/utils/useInternalClient.js";
|
|
16
16
|
import { useStore } from "../../../provider/stores/useStore.js";
|
|
@@ -70,7 +70,7 @@ const AddFundsAwaiting = () => {
|
|
|
70
70
|
}, [onRampPurchase == null ? void 0 : onRampPurchase.status]);
|
|
71
71
|
return /* @__PURE__ */ jsx(Container, { $wide: true, children: onRampEmbed });
|
|
72
72
|
};
|
|
73
|
-
const Container =
|
|
73
|
+
const Container = safeStyled(StepContainer)`
|
|
74
74
|
flex: 1;
|
|
75
75
|
`;
|
|
76
76
|
export {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__spreadValues
|
|
6
6
|
} from "../../../chunk-MMUBH76A.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import
|
|
8
|
+
import { safeStyled } from "@getpara/react-common";
|
|
9
9
|
import { Heading, InnerStepContainer } from "../common.js";
|
|
10
10
|
import { CpslText } from "@getpara/react-components";
|
|
11
11
|
import { useAddFunds } from "./AddFundsContext.js";
|
|
@@ -81,7 +81,7 @@ function AddFundsProvider() {
|
|
|
81
81
|
] })
|
|
82
82
|
] }));
|
|
83
83
|
}
|
|
84
|
-
const Container =
|
|
84
|
+
const Container = safeStyled(motion.div)`
|
|
85
85
|
width: 100%;
|
|
86
86
|
height: 100%;
|
|
87
87
|
align-self: center;
|
|
@@ -91,10 +91,10 @@ const Container = styled(motion.div)`
|
|
|
91
91
|
gap: 8px;
|
|
92
92
|
height: 320px;
|
|
93
93
|
`;
|
|
94
|
-
const $InnerStepContainer =
|
|
94
|
+
const $InnerStepContainer = safeStyled(InnerStepContainer)`
|
|
95
95
|
position: relative;
|
|
96
96
|
`;
|
|
97
|
-
const NoProviders =
|
|
97
|
+
const NoProviders = safeStyled(CpslText)`
|
|
98
98
|
width: 100%;
|
|
99
99
|
text-align: center;
|
|
100
100
|
visibility: ${({ isHidden }) => isHidden ? "hidden" : "visible"};
|
|
@@ -12,7 +12,7 @@ import { getAssetCode, getNetworkName } from "../../constants/constants.js";
|
|
|
12
12
|
import { EnabledFlow, getOnRampNetworks, OnRampPurchaseType } from "@getpara/web-sdk";
|
|
13
13
|
import { OnRampStep, useModalStore } from "../../stores/index.js";
|
|
14
14
|
import { useStore } from "../../../provider/stores/useStore.js";
|
|
15
|
-
import
|
|
15
|
+
import { safeStyled } from "@getpara/react-common";
|
|
16
16
|
import { contentMotionProps, NoProviders } from "./common.js";
|
|
17
17
|
import { AnimatePresence, motion, useIsPresent } from "framer-motion";
|
|
18
18
|
import { AddFundsAsset } from "./AddFundsAsset.js";
|
|
@@ -188,7 +188,7 @@ function AddFundsSettings() {
|
|
|
188
188
|
}, [assets, asset, tab]);
|
|
189
189
|
return /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: content });
|
|
190
190
|
}
|
|
191
|
-
const Container =
|
|
191
|
+
const Container = safeStyled(motion.div)`
|
|
192
192
|
width: 100%;
|
|
193
193
|
height: 100%;
|
|
194
194
|
align-self: center;
|
|
@@ -204,16 +204,16 @@ const Container = styled(motion.div)`
|
|
|
204
204
|
width: 100%;
|
|
205
205
|
}
|
|
206
206
|
`;
|
|
207
|
-
const AssetContainer =
|
|
207
|
+
const AssetContainer = safeStyled(Container)`
|
|
208
208
|
gap: 8px;
|
|
209
209
|
`;
|
|
210
|
-
const CurrencySign =
|
|
210
|
+
const CurrencySign = safeStyled.div`
|
|
211
211
|
font-size: 72px;
|
|
212
212
|
color: var(--cpsl-color-text-primary);
|
|
213
213
|
position: relative;
|
|
214
214
|
right: -16px;
|
|
215
215
|
`;
|
|
216
|
-
const PresetButton =
|
|
216
|
+
const PresetButton = safeStyled(CpslButton)`
|
|
217
217
|
--button-color: var(--cpsl-color-text-contrast);
|
|
218
218
|
--button-font-size: 24px;
|
|
219
219
|
--button-secondary-background-color: var(--cpsl-color-background-8);
|
|
@@ -223,7 +223,7 @@ const PresetButton = styled(CpslButton)`
|
|
|
223
223
|
--button-secondary-hover-border-color: var(--cpsl-color-background-16);
|
|
224
224
|
flex: 1;
|
|
225
225
|
`;
|
|
226
|
-
const Input =
|
|
226
|
+
const Input = safeStyled(CpslInput)`
|
|
227
227
|
--container-background-color: transparent;
|
|
228
228
|
--container-height: 90px;
|
|
229
229
|
--container-border-width: 0;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { CpslText } from "@getpara/react-components";
|
|
4
|
-
import
|
|
4
|
+
import { safeStyled } from "@getpara/react-common";
|
|
5
5
|
const contentMotionProps = {
|
|
6
6
|
transition: { duration: 0.2 },
|
|
7
7
|
initial: { opacity: 0 },
|
|
8
8
|
animate: { opacity: 1 },
|
|
9
9
|
exit: { opacity: 0 }
|
|
10
10
|
};
|
|
11
|
-
const NoProviders =
|
|
11
|
+
const NoProviders = safeStyled(CpslText)`
|
|
12
12
|
width: 100%;
|
|
13
13
|
text-align: center;
|
|
14
14
|
visibility: ${({ isHidden }) => isHidden ? "hidden" : "visible"};
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
CpslText
|
|
14
14
|
} from "@getpara/react-components";
|
|
15
15
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
16
|
-
import
|
|
16
|
+
import { safeStyled } from "@getpara/react-common";
|
|
17
17
|
import countryCodes from "../../utils/countryCodes.js";
|
|
18
18
|
import { MOBILE_SIZE } from "../../constants/constants.js";
|
|
19
19
|
import { useDropdownPosition } from "./hooks/useDropdownPosition.js";
|
|
@@ -205,7 +205,7 @@ const AuthInput = ({ disableEmailLogin, disablePhoneLogin }) => {
|
|
|
205
205
|
}
|
|
206
206
|
);
|
|
207
207
|
};
|
|
208
|
-
const IconContainer =
|
|
208
|
+
const IconContainer = safeStyled.div`
|
|
209
209
|
height: 100%;
|
|
210
210
|
display: flex;
|
|
211
211
|
align-items: center;
|
|
@@ -217,7 +217,7 @@ const IconContainer = styled.div`
|
|
|
217
217
|
--icon-color: var(--cpsl-color-contrast);
|
|
218
218
|
}
|
|
219
219
|
`;
|
|
220
|
-
const CountryCodeSelect =
|
|
220
|
+
const CountryCodeSelect = safeStyled(CpslSelect)`
|
|
221
221
|
--container-height: 100%;
|
|
222
222
|
--container-padding-start: 0px;
|
|
223
223
|
--container-padding-end: 0px;
|
|
@@ -242,17 +242,17 @@ const CountryCodeSelect = styled(CpslSelect)`
|
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
`;
|
|
245
|
-
const StyledSelectItem =
|
|
245
|
+
const StyledSelectItem = safeStyled(CpslSelectItem)`
|
|
246
246
|
&::part(inner-container) {
|
|
247
247
|
justify-content: space-between;
|
|
248
248
|
}
|
|
249
249
|
`;
|
|
250
|
-
const SelectedItem =
|
|
250
|
+
const SelectedItem = safeStyled.div`
|
|
251
251
|
display: flex;
|
|
252
252
|
gap: 4px;
|
|
253
253
|
align-items: center;
|
|
254
254
|
`;
|
|
255
|
-
const StyledInput =
|
|
255
|
+
const StyledInput = safeStyled(CpslInput)`
|
|
256
256
|
--container-background-color: var(--cpsl-color-background-8);
|
|
257
257
|
--input-background-color: var(--cpsl-color-background-8);
|
|
258
258
|
--container-padding-end: 8px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import
|
|
4
|
+
import { safeStyled } from "@getpara/react-common";
|
|
5
5
|
import { AuthMainStepContent } from "./AuthMainStepContent.js";
|
|
6
6
|
import { CenteredText } from "../common.js";
|
|
7
7
|
import { useStore } from "../../../provider/stores/useStore.js";
|
|
@@ -38,7 +38,7 @@ const AuthMainStep = ({
|
|
|
38
38
|
)
|
|
39
39
|
] });
|
|
40
40
|
};
|
|
41
|
-
const Logo =
|
|
41
|
+
const Logo = safeStyled.img`
|
|
42
42
|
height: 100px;
|
|
43
43
|
max-width: 260px;
|
|
44
44
|
object-fit: contain;
|
|
@@ -3,7 +3,7 @@ import "../../../chunk-MMUBH76A.js";
|
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Fragment as Fragment2, useMemo } from "react";
|
|
5
5
|
import { CpslButton, CpslDivider, CpslIconGroup } from "@getpara/react-components";
|
|
6
|
-
import
|
|
6
|
+
import { safeStyled } from "@getpara/react-common";
|
|
7
7
|
import { ExternalWallets } from "../ExternalWallets/ExternalWallets.js";
|
|
8
8
|
import { useModalStore } from "../../stores/index.js";
|
|
9
9
|
import { ModalStep } from "../../utils/steps.js";
|
|
@@ -117,27 +117,27 @@ const AuthMainStepContent = ({
|
|
|
117
117
|
)
|
|
118
118
|
] });
|
|
119
119
|
};
|
|
120
|
-
const Container =
|
|
120
|
+
const Container = safeStyled.div`
|
|
121
121
|
display: flex;
|
|
122
122
|
flex-direction: column;
|
|
123
123
|
gap: 8px;
|
|
124
124
|
`;
|
|
125
|
-
const StyledIconGroup =
|
|
125
|
+
const StyledIconGroup = safeStyled(CpslIconGroup)`
|
|
126
126
|
--icon-item-color: ${({ $isDark }) => $isDark ? "white" : "black"};
|
|
127
127
|
flex: 1;
|
|
128
128
|
justify-content: flex-end;
|
|
129
129
|
`;
|
|
130
|
-
const IconGroupSpacer =
|
|
130
|
+
const IconGroupSpacer = safeStyled(StyledIconGroup)`
|
|
131
131
|
visibility: hidden;
|
|
132
132
|
`;
|
|
133
|
-
const CondensedButton =
|
|
133
|
+
const CondensedButton = safeStyled(CpslButton)`
|
|
134
134
|
--button-justify-content: space-between;
|
|
135
135
|
|
|
136
136
|
&::part(button-native) {
|
|
137
137
|
max-height: 50px;
|
|
138
138
|
}
|
|
139
139
|
`;
|
|
140
|
-
const GuestMode =
|
|
140
|
+
const GuestMode = safeStyled.a`
|
|
141
141
|
display: flex;
|
|
142
142
|
justify-content: center;
|
|
143
143
|
align-items: center;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
|
-
import
|
|
5
|
+
import { safeStyled } from "@getpara/react-common";
|
|
6
6
|
import { OAuth } from "../OAuth/OAuth.js";
|
|
7
7
|
import { AuthInput } from "../AuthInput/AuthInput.js";
|
|
8
8
|
import { useExternalWallets } from "../../../provider/providers/ExternalWalletProvider.js";
|
|
@@ -39,12 +39,12 @@ const AuthOptions = ({
|
|
|
39
39
|
Content
|
|
40
40
|
] });
|
|
41
41
|
};
|
|
42
|
-
const Container =
|
|
42
|
+
const Container = safeStyled.div`
|
|
43
43
|
display: flex;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
gap: 8px;
|
|
46
46
|
`;
|
|
47
|
-
const CompleteAccountSetup =
|
|
47
|
+
const CompleteAccountSetup = safeStyled.div`
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: center;
|
|
50
50
|
justify-content: center;
|
|
@@ -52,7 +52,7 @@ const CompleteAccountSetup = styled.div`
|
|
|
52
52
|
color: var(--cpsl-color-text-primary);
|
|
53
53
|
margin-bottom: 8px;
|
|
54
54
|
`;
|
|
55
|
-
const CompleteAccountIcon =
|
|
55
|
+
const CompleteAccountIcon = safeStyled(CpslIcon)`
|
|
56
56
|
--icon-color: var(--cpsl-color-text-primary);
|
|
57
57
|
`;
|
|
58
58
|
export {
|
|
@@ -4,7 +4,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
import { CpslButton, CpslDivider, CpslIcon } from "@getpara/react-components";
|
|
5
5
|
import { useModalStore } from "../../stores/index.js";
|
|
6
6
|
import { Heading, StepContainer, InnerStepContainer } from "../common.js";
|
|
7
|
-
import
|
|
7
|
+
import { safeStyled } from "@getpara/react-common";
|
|
8
8
|
import { AuthMethod } from "@getpara/web-sdk";
|
|
9
9
|
import { KnownDevices, UserIdentifier } from "@getpara/react-common";
|
|
10
10
|
import { useInternalClient } from "../../../provider/hooks/utils/useInternalClient.js";
|
|
@@ -40,7 +40,7 @@ const BiometricLoginStep = () => {
|
|
|
40
40
|
] })
|
|
41
41
|
] });
|
|
42
42
|
};
|
|
43
|
-
const MainContainer =
|
|
43
|
+
const MainContainer = safeStyled(InnerStepContainer)`
|
|
44
44
|
gap: 16px;
|
|
45
45
|
`;
|
|
46
46
|
export {
|
|
@@ -3,7 +3,7 @@ import "../../../chunk-MMUBH76A.js";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { motion } from "framer-motion";
|
|
5
5
|
import { useEffect, useRef, useState } from "react";
|
|
6
|
-
import
|
|
6
|
+
import { safeStyled } from "@getpara/react-common";
|
|
7
7
|
const AnimatedHeightWrapper = ({ children, className }) => {
|
|
8
8
|
const containerRef = useRef(null);
|
|
9
9
|
const [height, setHeight] = useState("auto");
|
|
@@ -21,7 +21,7 @@ const AnimatedHeightWrapper = ({ children, className }) => {
|
|
|
21
21
|
}, []);
|
|
22
22
|
return /* @__PURE__ */ jsx(Container, { className, style: { height }, animate: { height }, transition: { duration: 0.2 }, children: /* @__PURE__ */ jsx("div", { ref: containerRef, children }) });
|
|
23
23
|
};
|
|
24
|
-
const Container =
|
|
24
|
+
const Container = safeStyled(motion.div)`
|
|
25
25
|
overflow: hidden;
|
|
26
26
|
`;
|
|
27
27
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { safeStyled } from "@getpara/react-common";
|
|
5
5
|
import { IFrameSteps, ModalStep } from "../../utils/steps.js";
|
|
6
6
|
import { CpslAlert, CpslIcon } from "@getpara/react-components";
|
|
7
7
|
import { VerificationCodeStep } from "../VerificationCodeStep/VerificationCodeStep.js";
|
|
@@ -258,20 +258,20 @@ const Body = ({
|
|
|
258
258
|
] })
|
|
259
259
|
] });
|
|
260
260
|
};
|
|
261
|
-
const Container =
|
|
261
|
+
const Container = safeStyled.div`
|
|
262
262
|
position: relative;
|
|
263
263
|
`;
|
|
264
|
-
const AnimatedWrapper =
|
|
264
|
+
const AnimatedWrapper = safeStyled(AnimatedHeightWrapper)`
|
|
265
265
|
margin-top: -16px;
|
|
266
266
|
`;
|
|
267
|
-
const BodyContainer =
|
|
267
|
+
const BodyContainer = safeStyled(motion.div)`
|
|
268
268
|
position: relative;
|
|
269
269
|
display: flex;
|
|
270
270
|
flex-direction: column;
|
|
271
271
|
gap: 24px;
|
|
272
272
|
will-change: auto !important;
|
|
273
273
|
`;
|
|
274
|
-
const InnerContainer =
|
|
274
|
+
const InnerContainer = safeStyled.div`
|
|
275
275
|
z-index: 1;
|
|
276
276
|
flex: 1;
|
|
277
277
|
display: flex;
|
|
@@ -302,7 +302,7 @@ const InnerContainer = styled.div`
|
|
|
302
302
|
padding: 72px 16px 0px;
|
|
303
303
|
}
|
|
304
304
|
`;
|
|
305
|
-
const TestModeAlert =
|
|
305
|
+
const TestModeAlert = safeStyled(CpslAlert)`
|
|
306
306
|
--container-padding-end: 40px;
|
|
307
307
|
position: absolute;
|
|
308
308
|
bottom: 16px;
|
|
@@ -310,7 +310,7 @@ const TestModeAlert = styled(CpslAlert)`
|
|
|
310
310
|
right: 16px;
|
|
311
311
|
z-index: 1000;
|
|
312
312
|
`;
|
|
313
|
-
const CloseButton =
|
|
313
|
+
const CloseButton = safeStyled.button`
|
|
314
314
|
background-color: transparent;
|
|
315
315
|
border: none;
|
|
316
316
|
padding: 4px;
|
|
@@ -319,7 +319,7 @@ const CloseButton = styled.button`
|
|
|
319
319
|
top: 0;
|
|
320
320
|
right: 0;
|
|
321
321
|
`;
|
|
322
|
-
const CloseX =
|
|
322
|
+
const CloseX = safeStyled(CpslIcon)`
|
|
323
323
|
--icon-color: var(--cpsl-color-foreground-0);
|
|
324
324
|
`;
|
|
325
325
|
export {
|
|
@@ -7,7 +7,7 @@ import { CpslButton, CpslIcon, CpslQrCode, CpslSpinner, CpslText } from "@getpar
|
|
|
7
7
|
import { CenteredText, InnerStepContainer, QRContainer, StepContainer } from "../common.js";
|
|
8
8
|
import { useEffect, useMemo } from "react";
|
|
9
9
|
import { useModalStore } from "../../stores/index.js";
|
|
10
|
-
import
|
|
10
|
+
import { safeStyled } from "@getpara/react-common";
|
|
11
11
|
import { useCopyToClipboard } from "@getpara/react-common";
|
|
12
12
|
import { ModalStep } from "../../utils/steps.js";
|
|
13
13
|
import { routeMobileExternalWallet } from "../../utils/routeMobileExternalWallet.js";
|
|
@@ -75,17 +75,17 @@ const ChainSwitch = () => {
|
|
|
75
75
|
}
|
|
76
76
|
return /* @__PURE__ */ jsx(Container, { children: Content });
|
|
77
77
|
};
|
|
78
|
-
const Container =
|
|
78
|
+
const Container = safeStyled(StepContainer)`
|
|
79
79
|
flex: 1;
|
|
80
80
|
justify-content: space-between;
|
|
81
81
|
`;
|
|
82
|
-
const ErrorContainer =
|
|
82
|
+
const ErrorContainer = safeStyled.div`
|
|
83
83
|
display: flex;
|
|
84
84
|
align-items: center;
|
|
85
85
|
justify-content: center;
|
|
86
86
|
gap: 4px;
|
|
87
87
|
`;
|
|
88
|
-
const ErrorIcon =
|
|
88
|
+
const ErrorIcon = safeStyled(CpslIcon)`
|
|
89
89
|
--height: 16px;
|
|
90
90
|
--width: 16px;
|
|
91
91
|
--icon-color: var(--cpsl-color-text-error);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { CpslIcon } from "@getpara/react-components";
|
|
5
|
-
import {
|
|
5
|
+
import { safeStyled } from "@getpara/react-common";
|
|
6
6
|
import { useModalStore } from "../../stores/index.js";
|
|
7
7
|
import { useGoBack } from "../../hooks/useGoBack.js";
|
|
8
8
|
import { AccountSelect, ChainSelect } from "./Selects.js";
|
|
@@ -48,7 +48,7 @@ const Controls = ({ onClose }) => {
|
|
|
48
48
|
/* @__PURE__ */ jsx(CloseButton, { bareModal, variant: "ghost", onClick: onClose, children: /* @__PURE__ */ jsx(CpslIcon, { icon: "close" }) })
|
|
49
49
|
] });
|
|
50
50
|
};
|
|
51
|
-
const Container =
|
|
51
|
+
const Container = safeStyled.div`
|
|
52
52
|
position: absolute;
|
|
53
53
|
width: 100%;
|
|
54
54
|
top: 16px;
|
|
@@ -59,18 +59,18 @@ const Container = styled.div`
|
|
|
59
59
|
justify-content: space-between;
|
|
60
60
|
gap: 8px;
|
|
61
61
|
`;
|
|
62
|
-
const MiddleContainer =
|
|
62
|
+
const MiddleContainer = safeStyled.div`
|
|
63
63
|
flex: 1;
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
67
|
gap: 4px;
|
|
68
68
|
`;
|
|
69
|
-
const CloseButton =
|
|
69
|
+
const CloseButton = safeStyled(HeaderButton)`
|
|
70
70
|
transform: rotate(180deg);
|
|
71
71
|
visibility: ${({ bareModal }) => bareModal ? "hidden" : "visible"};
|
|
72
72
|
`;
|
|
73
|
-
const BackButton =
|
|
73
|
+
const BackButton = safeStyled(HeaderButton)`
|
|
74
74
|
transform: rotate(180deg);
|
|
75
75
|
`;
|
|
76
76
|
export {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "../../../chunk-MMUBH76A.js";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { CpslButton, CpslIcon, CpslIdenticon, CpslText } from "@getpara/react-components";
|
|
9
|
-
import
|
|
9
|
+
import { safeStyled } from "@getpara/react-common";
|
|
10
10
|
import { truncateAddress } from "@getpara/web-sdk";
|
|
11
11
|
import { useEffect, useRef } from "react";
|
|
12
12
|
import { useDropdownPosition } from "../AuthInput/hooks/useDropdownPosition.js";
|
|
@@ -154,26 +154,26 @@ const AccountSelect = () => {
|
|
|
154
154
|
}
|
|
155
155
|
) : ActiveWalletNode }) });
|
|
156
156
|
};
|
|
157
|
-
const Container =
|
|
157
|
+
const Container = safeStyled.div`
|
|
158
158
|
flex: 0;
|
|
159
159
|
width: 100%;
|
|
160
160
|
display: flex;
|
|
161
161
|
justify-content: center;
|
|
162
162
|
`;
|
|
163
|
-
const FlexRow =
|
|
163
|
+
const FlexRow = safeStyled.div`
|
|
164
164
|
display: flex;
|
|
165
165
|
align-items: center;
|
|
166
166
|
gap: 8px;
|
|
167
167
|
`;
|
|
168
|
-
const FlexCol =
|
|
168
|
+
const FlexCol = safeStyled.div`
|
|
169
169
|
display: flex;
|
|
170
170
|
flex-direction: column;
|
|
171
171
|
align-items: flex-start;
|
|
172
172
|
`;
|
|
173
|
-
const WalletName =
|
|
173
|
+
const WalletName = safeStyled(CpslText)`
|
|
174
174
|
white-space: nowrap;
|
|
175
175
|
`;
|
|
176
|
-
const ChainName =
|
|
176
|
+
const ChainName = safeStyled(CpslText)`
|
|
177
177
|
max-width: 150px;
|
|
178
178
|
text-transform: capitalize;
|
|
179
179
|
|