@getpara/react-sdk 2.0.0-alpha.18 → 2.0.0-alpha.19
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 +6 -6
- 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/package.json +8 -8
- package/dist/modal/types/externalWallets.d.ts +0 -37
- package/dist/modal/types/externalWallets.js +0 -34
package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js
CHANGED
|
@@ -3,7 +3,7 @@ import "../../../chunk-MMUBH76A.js";
|
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { CpslButton, CpslSpinner, CpslText } from "@getpara/react-components";
|
|
5
5
|
import { useEffect } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { safeStyled } from "@getpara/react-common";
|
|
7
7
|
import { useModalStore } from "../../stores/index.js";
|
|
8
8
|
import { ErrorContainer, ErrorIcon, Heading, InnerStepContainer, StepContainer } from "../common.js";
|
|
9
9
|
import { useExternalWallets } from "../../../provider/providers/ExternalWalletProvider.js";
|
|
@@ -25,7 +25,7 @@ const ExternalWalletVerificationStep = () => {
|
|
|
25
25
|
/* @__PURE__ */ jsx(InnerStepContainer, { children: isExternalWalletVerifying ? /* @__PURE__ */ jsx(CpslSpinner, {}) : /* @__PURE__ */ jsx(CpslButton, { onClick: verifyWalletSignature, children: "Retry" }) })
|
|
26
26
|
] });
|
|
27
27
|
};
|
|
28
|
-
const InlineText =
|
|
28
|
+
const InlineText = safeStyled(CpslText)`
|
|
29
29
|
text-align: center;
|
|
30
30
|
display: inline-block;
|
|
31
31
|
`;
|
|
@@ -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 { StyledCpslTileButton } from "../common.js";
|
|
8
8
|
import { CpslButton, CpslIcon, CpslInput, CpslText } from "@getpara/react-components";
|
|
9
9
|
import { useModalStore } from "../../stores/index.js";
|
|
@@ -79,7 +79,7 @@ const ExternalWallets = () => {
|
|
|
79
79
|
showAll && /* @__PURE__ */ jsx(BlurContainer, {})
|
|
80
80
|
] });
|
|
81
81
|
};
|
|
82
|
-
const Container =
|
|
82
|
+
const Container = safeStyled.div`
|
|
83
83
|
position: relative;
|
|
84
84
|
display: flex;
|
|
85
85
|
justify-content: center;
|
|
@@ -95,17 +95,17 @@ const Container = styled.div`
|
|
|
95
95
|
-ms-overflow-style: none;
|
|
96
96
|
scrollbar-width: none;
|
|
97
97
|
`;
|
|
98
|
-
const WalletTileButton =
|
|
98
|
+
const WalletTileButton = safeStyled(StyledCpslTileButton)`
|
|
99
99
|
flex: 1;
|
|
100
100
|
`;
|
|
101
|
-
const WalletButtonOuterContainer =
|
|
101
|
+
const WalletButtonOuterContainer = safeStyled.div`
|
|
102
102
|
width: 100%;
|
|
103
103
|
display: flex;
|
|
104
104
|
align-items: center;
|
|
105
105
|
gap: 8px;
|
|
106
106
|
justify-content: space-between;
|
|
107
107
|
`;
|
|
108
|
-
const WalletButtonInnerContainer =
|
|
108
|
+
const WalletButtonInnerContainer = safeStyled.div`
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
111
|
gap: 8px;
|
|
@@ -119,7 +119,7 @@ const WalletButtonInnerContainer = styled.div`
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
`;
|
|
122
|
-
const Badge =
|
|
122
|
+
const Badge = safeStyled.div`
|
|
123
123
|
visibility: ${({ $show }) => $show ? "visible" : "hidden"};
|
|
124
124
|
padding: 2px 4px;
|
|
125
125
|
border-radius: 4px;
|
|
@@ -131,21 +131,21 @@ const Badge = styled.div`
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
`;
|
|
134
|
-
const InstalledIndicator =
|
|
134
|
+
const InstalledIndicator = safeStyled.span`
|
|
135
135
|
width: 8px;
|
|
136
136
|
height: 8px;
|
|
137
137
|
border-radius: 100%;
|
|
138
138
|
background-color: var(--cpsl-color-utility-green);
|
|
139
139
|
`;
|
|
140
|
-
const TileButtonInnerContainer =
|
|
140
|
+
const TileButtonInnerContainer = safeStyled.div`
|
|
141
141
|
display: flex;
|
|
142
142
|
gap: 4px;
|
|
143
143
|
align-items: center;
|
|
144
144
|
`;
|
|
145
|
-
const SearchIcon =
|
|
145
|
+
const SearchIcon = safeStyled(CpslIcon)`
|
|
146
146
|
--icon-color: var(--cpsl-color-contrast);
|
|
147
147
|
`;
|
|
148
|
-
const SearchInputWrapper =
|
|
148
|
+
const SearchInputWrapper = safeStyled.div`
|
|
149
149
|
width: 100%;
|
|
150
150
|
background-color: var(--cpsl-color-background-0);
|
|
151
151
|
|
|
@@ -154,12 +154,12 @@ const SearchInputWrapper = styled.div`
|
|
|
154
154
|
padding-bottom: 4px;
|
|
155
155
|
margin-bottom: -4px;
|
|
156
156
|
`;
|
|
157
|
-
const SearchInput =
|
|
157
|
+
const SearchInput = safeStyled(CpslInput)`
|
|
158
158
|
width: 100%;
|
|
159
159
|
--container-background-color: var(--cpsl-color-background-8);
|
|
160
160
|
--input-background-color: var(--cpsl-color-background-8);
|
|
161
161
|
`;
|
|
162
|
-
const BlurContainer =
|
|
162
|
+
const BlurContainer = safeStyled.div`
|
|
163
163
|
position: sticky;
|
|
164
164
|
height: 56px;
|
|
165
165
|
width: 100%;
|
|
@@ -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 { CpslButton, CpslIcon, CpslText } from "@getpara/react-components";
|
|
6
6
|
import { useModalStore } from "../../stores/index.js";
|
|
7
7
|
import { PARA_CONNECT, PARA_TERMS_AND_CONDITIONS } from "../../constants/constants.js";
|
|
@@ -41,50 +41,50 @@ const Footer = () => {
|
|
|
41
41
|
}
|
|
42
42
|
return /* @__PURE__ */ jsx(FooterContainer, { slot: "footer", children: /* @__PURE__ */ jsx(FooterContentContainer, { children: Content }) });
|
|
43
43
|
};
|
|
44
|
-
const FooterContainer =
|
|
44
|
+
const FooterContainer = safeStyled.div`
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
align-items: center;
|
|
48
48
|
gap: 16px;
|
|
49
49
|
padding: 8px 0px;
|
|
50
50
|
`;
|
|
51
|
-
const FooterContentContainer =
|
|
51
|
+
const FooterContentContainer = safeStyled.div`
|
|
52
52
|
display: flex;
|
|
53
53
|
flex-direction: column;
|
|
54
54
|
align-items: center;
|
|
55
55
|
gap: 8px;
|
|
56
56
|
`;
|
|
57
|
-
const PoweredByContainer =
|
|
57
|
+
const PoweredByContainer = safeStyled.div`
|
|
58
58
|
display: flex;
|
|
59
59
|
gap: 5px;
|
|
60
60
|
align-items: center;
|
|
61
61
|
justify-content: center;
|
|
62
62
|
`;
|
|
63
|
-
const ConnectContainer =
|
|
63
|
+
const ConnectContainer = safeStyled.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
gap: 8px;
|
|
66
66
|
align-items: center;
|
|
67
67
|
justify-content: center;
|
|
68
68
|
`;
|
|
69
|
-
const RightChevron =
|
|
69
|
+
const RightChevron = safeStyled(CpslIcon)`
|
|
70
70
|
transform: rotate(90deg);
|
|
71
71
|
|
|
72
72
|
/* --icon-color: var(--cpsl-color-text-tertiary); */
|
|
73
73
|
--height: 24px;
|
|
74
74
|
--width: 24px;
|
|
75
75
|
`;
|
|
76
|
-
const InlineText =
|
|
76
|
+
const InlineText = safeStyled(CpslText)`
|
|
77
77
|
text-align: center;
|
|
78
78
|
display: inline-block;
|
|
79
79
|
`;
|
|
80
|
-
const ConnectText =
|
|
80
|
+
const ConnectText = safeStyled(InlineText)`
|
|
81
81
|
line-height: 20px;
|
|
82
82
|
`;
|
|
83
|
-
const ClickableText =
|
|
83
|
+
const ClickableText = safeStyled(InlineText)`
|
|
84
84
|
cursor: pointer;
|
|
85
85
|
display: inline-block;
|
|
86
86
|
`;
|
|
87
|
-
const ParaLogo =
|
|
87
|
+
const ParaLogo = safeStyled(CpslIcon)`
|
|
88
88
|
display: inline-block;
|
|
89
89
|
--icon-color: var(--cpsl-color-text-secondary);
|
|
90
90
|
--width: 49px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { safeStyled } from "@getpara/react-common";
|
|
5
5
|
import { useStepTitle } from "./hooks/useStepTitle.js";
|
|
6
6
|
import { CenteredText } from "../common.js";
|
|
7
7
|
import { AnimatePresence, motion } from "framer-motion";
|
|
@@ -27,7 +27,7 @@ const Header = () => {
|
|
|
27
27
|
["ADD_FUNDS_BUY", "ADD_FUNDS_RECEIVE", "ADD_FUNDS_WITHDRAW"].includes(currentStep) ? "ADD_FUNDS" : currentStep
|
|
28
28
|
) });
|
|
29
29
|
};
|
|
30
|
-
const Container =
|
|
30
|
+
const Container = safeStyled(motion.div)`
|
|
31
31
|
position: absolute;
|
|
32
32
|
top: 16px;
|
|
33
33
|
width: 100%;
|
|
@@ -30,6 +30,7 @@ const useStepTitle = () => {
|
|
|
30
30
|
[ModalStep.WALLET_CREATION_DONE]: hideWallets ? "Account Created" : "Wallet Created",
|
|
31
31
|
[ModalStep.SECRET]: isLogin ? "Login" : "Sign Up",
|
|
32
32
|
[ModalStep.BIOMETRIC_LOGIN]: "Login",
|
|
33
|
+
[ModalStep.EMBEDDED_PASSWORD_LOGIN]: "Login",
|
|
33
34
|
[ModalStep.AWAITING_PASSWORD_LOGIN]: "Login",
|
|
34
35
|
[ModalStep.AWAITING_BIOMETRIC_LOGIN]: "Login",
|
|
35
36
|
[ModalStep.LOGIN_DONE]: "",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { CpslHero, CpslIcon, CpslIdenticon } from "@getpara/react-components";
|
|
5
|
-
import
|
|
5
|
+
import { safeStyled } from "@getpara/react-common";
|
|
6
6
|
import { ModalStep } from "../../utils/steps.js";
|
|
7
7
|
import { useModalStore } from "../../stores/index.js";
|
|
8
8
|
import { NETWORK_NOT_SUPPORTED_ERROR } from "../../constants/constants.js";
|
|
@@ -74,7 +74,7 @@ const Hero = () => {
|
|
|
74
74
|
!shouldHide && /* @__PURE__ */ jsx(Spacer, { $height: spacerHeight != null ? spacerHeight : 0 })
|
|
75
75
|
] });
|
|
76
76
|
};
|
|
77
|
-
const Container =
|
|
77
|
+
const Container = safeStyled.div`
|
|
78
78
|
display: flex;
|
|
79
79
|
position: absolute;
|
|
80
80
|
justify-content: center;
|
|
@@ -83,22 +83,22 @@ const Container = styled.div`
|
|
|
83
83
|
|
|
84
84
|
top: ${({ $top }) => `${$top}px`};
|
|
85
85
|
`;
|
|
86
|
-
const Spacer =
|
|
86
|
+
const Spacer = safeStyled.div`
|
|
87
87
|
height: ${({ $height }) => `${$height}px`};
|
|
88
88
|
`;
|
|
89
|
-
const WalletLogo =
|
|
89
|
+
const WalletLogo = safeStyled(CpslIcon)`
|
|
90
90
|
--height: 60px;
|
|
91
91
|
--width: 60px;
|
|
92
92
|
`;
|
|
93
|
-
const Avatar =
|
|
93
|
+
const Avatar = safeStyled.img`
|
|
94
94
|
width: 100%;
|
|
95
95
|
height: 100%;
|
|
96
96
|
object-fit: contain;
|
|
97
97
|
`;
|
|
98
|
-
const IconAvatar =
|
|
98
|
+
const IconAvatar = safeStyled(CpslIdenticon)`
|
|
99
99
|
border-radius: 1000px;
|
|
100
100
|
`;
|
|
101
|
-
const StyledHero =
|
|
101
|
+
const StyledHero = safeStyled(CpslHero)`
|
|
102
102
|
${({ $isAccount }) => $isAccount && `
|
|
103
103
|
--ring-3-size: 560px;
|
|
104
104
|
--ring-2-size: 402px;
|
|
@@ -3,7 +3,7 @@ import "../../../chunk-MMUBH76A.js";
|
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useModalStore } from "../../stores/index.js";
|
|
5
5
|
import { IFrameSteps } from "../../utils/steps.js";
|
|
6
|
-
import
|
|
6
|
+
import { safeStyled } from "@getpara/react-common";
|
|
7
7
|
import { SpinnerContainer } from "@getpara/react-common";
|
|
8
8
|
import { CpslSpinner } from "@getpara/react-components";
|
|
9
9
|
import { MOBILE_SIZE } from "../../constants/constants.js";
|
|
@@ -30,7 +30,7 @@ const IFrameStep = () => {
|
|
|
30
30
|
!isReady && /* @__PURE__ */ jsx(SpinnerContainer, { style: { width: "100%", height: "100%", flex: 1 }, children: /* @__PURE__ */ jsx(CpslSpinner, { size: 100 }) })
|
|
31
31
|
] });
|
|
32
32
|
};
|
|
33
|
-
const OuterContainer =
|
|
33
|
+
const OuterContainer = safeStyled.div`
|
|
34
34
|
height: ${({ $isVisible }) => $isVisible ? "100%" : "0px"};
|
|
35
35
|
width: ${({ $isVisible }) => $isVisible ? "100%" : "0px"};
|
|
36
36
|
flex: ${({ $isVisible }) => $isVisible ? 1 : "auto"};
|
|
@@ -43,7 +43,7 @@ const OuterContainer = styled.div`
|
|
|
43
43
|
padding: ${({ $embeddedModal, $isVisible }) => !$isVisible ? "0px" : $embeddedModal ? "12px 0px 0px" : "72px 16px 0px"};
|
|
44
44
|
}
|
|
45
45
|
`;
|
|
46
|
-
const Container =
|
|
46
|
+
const Container = safeStyled.div`
|
|
47
47
|
height: 100%;
|
|
48
48
|
width: 100%;
|
|
49
49
|
display: ${({ $isReady }) => $isReady ? "block" : "none"};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__async
|
|
4
4
|
} from "../../../chunk-MMUBH76A.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
6
|
+
import { safeStyled } from "@getpara/react-common";
|
|
7
7
|
import { useModalStore } from "../../stores/index.js";
|
|
8
8
|
import { ModalStep } from "../../utils/steps.js";
|
|
9
9
|
import { getTileButtonFlex } from "../../utils/getTileButtonFlex.js";
|
|
@@ -63,13 +63,13 @@ const OAuth = ({ methods }) => {
|
|
|
63
63
|
)
|
|
64
64
|
] });
|
|
65
65
|
};
|
|
66
|
-
const OAuthContainer =
|
|
66
|
+
const OAuthContainer = safeStyled.div`
|
|
67
67
|
display: flex;
|
|
68
68
|
justify-content: center;
|
|
69
69
|
gap: 8px;
|
|
70
70
|
flex-wrap: wrap;
|
|
71
71
|
`;
|
|
72
|
-
const OAuthButton =
|
|
72
|
+
const OAuthButton = safeStyled(StyledCpslTileButton)`
|
|
73
73
|
flex: ${({ $index, $totalItems }) => getTileButtonFlex($index, $totalItems)};
|
|
74
74
|
|
|
75
75
|
--button-icon-color: ${({ $isDark }) => $isDark ? "white" : "black"};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../../../chunk-MMUBH76A.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { constructUrl, getPortalBaseURL } from "@getpara/web-sdk";
|
|
7
|
-
import
|
|
7
|
+
import { safeStyled } from "@getpara/react-common";
|
|
8
8
|
import { useEffect, useRef, useState } from "react";
|
|
9
9
|
import { HeroSpinner } from "@getpara/react-common";
|
|
10
10
|
import { CpslSpinner } from "@getpara/react-components";
|
|
@@ -65,14 +65,14 @@ function TelegramOAuthStep() {
|
|
|
65
65
|
(!url || !isLoaded) && /* @__PURE__ */ jsx(CpslSpinner, {})
|
|
66
66
|
] });
|
|
67
67
|
}
|
|
68
|
-
const Container =
|
|
68
|
+
const Container = safeStyled.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
align-items: center;
|
|
72
72
|
justify-content: center;
|
|
73
73
|
width: 100%;
|
|
74
74
|
`;
|
|
75
|
-
const HeroContainer =
|
|
75
|
+
const HeroContainer = safeStyled.div`
|
|
76
76
|
display: flex;
|
|
77
77
|
min-height: 276px;
|
|
78
78
|
flex-direction: column;
|
|
@@ -80,7 +80,7 @@ const HeroContainer = styled.div`
|
|
|
80
80
|
gap: 16px;
|
|
81
81
|
flex: 1;
|
|
82
82
|
`;
|
|
83
|
-
const IFrame =
|
|
83
|
+
const IFrame = safeStyled.iframe`
|
|
84
84
|
width: 100%;
|
|
85
85
|
height: 52px;
|
|
86
86
|
border: none;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
import { ON_RAMP_PROVIDERS } from "../../constants/constants.js";
|
|
8
|
-
import
|
|
8
|
+
import { safeStyled } from "@getpara/react-common";
|
|
9
9
|
import { CpslButton, CpslIcon, CpslSpinner, CpslText } from "@getpara/react-components";
|
|
10
10
|
import { motion } from "framer-motion";
|
|
11
11
|
const OnRampProviderButton = ({ config, index, onClick: _onClick }) => {
|
|
@@ -27,13 +27,13 @@ const OnRampProviderButton = ({ config, index, onClick: _onClick }) => {
|
|
|
27
27
|
isLoading ? /* @__PURE__ */ jsx(CpslSpinner, { size: 16 }) : /* @__PURE__ */ jsx(Chevron, { icon: "chevronUp" })
|
|
28
28
|
] }) });
|
|
29
29
|
};
|
|
30
|
-
const StyledButton =
|
|
30
|
+
const StyledButton = safeStyled(CpslButton)`
|
|
31
31
|
width: 100%;
|
|
32
32
|
--button-primary-background-color: ${({ $gradientColors }) => `linear-gradient(90deg, ${$gradientColors[0]} 0%, ${$gradientColors[1]} 100%)`};
|
|
33
33
|
--button-primary-hover-background-color: ${({ $gradientColors }) => `linear-gradient(90deg, ${$gradientColors[0]} 0%, ${$gradientColors[0]} 100%)`};
|
|
34
34
|
--button-primary-active-background-color: ${({ $gradientColors }) => `linear-gradient(90deg, ${$gradientColors[0]} 0%, ${$gradientColors[0]} 100%)`};
|
|
35
35
|
`;
|
|
36
|
-
const Container =
|
|
36
|
+
const Container = safeStyled(motion.div)`
|
|
37
37
|
display: flex;
|
|
38
38
|
gap: 8px;
|
|
39
39
|
flex: 1;
|
|
@@ -43,18 +43,18 @@ const Container = styled(motion.div)`
|
|
|
43
43
|
--background-color: ${({ $backgroundColor }) => `${$backgroundColor}`};
|
|
44
44
|
}
|
|
45
45
|
`;
|
|
46
|
-
const ProviderInfoContainer =
|
|
46
|
+
const ProviderInfoContainer = safeStyled.div`
|
|
47
47
|
flex: 1;
|
|
48
48
|
display: flex;
|
|
49
49
|
flex-direction: column;
|
|
50
50
|
align-items: start;
|
|
51
51
|
gap: 2px;
|
|
52
52
|
`;
|
|
53
|
-
const ProviderInfoInnerContainer =
|
|
53
|
+
const ProviderInfoInnerContainer = safeStyled.div`
|
|
54
54
|
display: flex;
|
|
55
55
|
gap: 16px;
|
|
56
56
|
`;
|
|
57
|
-
const IconContainer =
|
|
57
|
+
const IconContainer = safeStyled.span`
|
|
58
58
|
display: flex;
|
|
59
59
|
align-items: center;
|
|
60
60
|
justify-content: center;
|
|
@@ -63,12 +63,12 @@ const IconContainer = styled.span`
|
|
|
63
63
|
height: 48px;
|
|
64
64
|
width: 48px;
|
|
65
65
|
`;
|
|
66
|
-
const Text =
|
|
66
|
+
const Text = safeStyled(CpslText)`
|
|
67
67
|
&::part(text-element) {
|
|
68
68
|
color: #fff;
|
|
69
69
|
}
|
|
70
70
|
`;
|
|
71
|
-
const Chevron =
|
|
71
|
+
const Chevron = safeStyled(CpslIcon)`
|
|
72
72
|
transform: rotate(90deg);
|
|
73
73
|
--icon-color: #fff;
|
|
74
74
|
`;
|
|
@@ -7,7 +7,7 @@ import { CpslButton, CpslText } from "@getpara/react-components";
|
|
|
7
7
|
import { useModalStore } from "../../stores/index.js";
|
|
8
8
|
import { ModalStep } from "../../utils/steps.js";
|
|
9
9
|
import { Heading, InnerStepContainer, StepContainer, StyledCpslTileButton } from "../common.js";
|
|
10
|
-
import {
|
|
10
|
+
import { safeStyled } from "@getpara/react-common";
|
|
11
11
|
import { useCopyToClipboard } from "@getpara/react-common";
|
|
12
12
|
import { getMailtoLink } from "../../utils/getMailtoLink.js";
|
|
13
13
|
import { useState } from "react";
|
|
@@ -85,19 +85,19 @@ const RecoverySecretStep = () => {
|
|
|
85
85
|
)
|
|
86
86
|
] });
|
|
87
87
|
};
|
|
88
|
-
const ActionButton =
|
|
88
|
+
const ActionButton = safeStyled(StyledCpslTileButton)`
|
|
89
89
|
flex: 1;
|
|
90
90
|
|
|
91
91
|
--button-icon-color: var(--cpsl-color-text-primary);
|
|
92
92
|
`;
|
|
93
|
-
const ButtonContainer =
|
|
93
|
+
const ButtonContainer = safeStyled.div`
|
|
94
94
|
display: flex;
|
|
95
95
|
align-items: center;
|
|
96
96
|
justify-content: center;
|
|
97
97
|
gap: 8px;
|
|
98
98
|
width: 100%;
|
|
99
99
|
`;
|
|
100
|
-
const InlineText =
|
|
100
|
+
const InlineText = safeStyled(CpslText)`
|
|
101
101
|
text-align: center;
|
|
102
102
|
display: inline-block;
|
|
103
103
|
`;
|
|
@@ -16,7 +16,7 @@ import { useEffect, useRef, useState } from "react";
|
|
|
16
16
|
import { useModalStore } from "../../stores/index.js";
|
|
17
17
|
import { Heading, QRContainer, FilledDisabledInput, StepContainer, InnerStepContainer } from "../common.js";
|
|
18
18
|
import { ModalStep } from "../../utils/steps.js";
|
|
19
|
-
import {
|
|
19
|
+
import { safeStyled } from "@getpara/react-common";
|
|
20
20
|
import { useCopyToClipboard } from "@getpara/react-common";
|
|
21
21
|
import { useEnable2fa } from "../../../provider/index.js";
|
|
22
22
|
const Setup2FAStep = ({ onClose }) => {
|
|
@@ -120,10 +120,10 @@ const Setup2FAStep = ({ onClose }) => {
|
|
|
120
120
|
] })
|
|
121
121
|
] });
|
|
122
122
|
};
|
|
123
|
-
const StyledCodeInput =
|
|
123
|
+
const StyledCodeInput = safeStyled(CpslCodeInput)`
|
|
124
124
|
align-self: center;
|
|
125
125
|
`;
|
|
126
|
-
const SkipButton =
|
|
126
|
+
const SkipButton = safeStyled(CpslButton)`
|
|
127
127
|
margin-top: 8px;
|
|
128
128
|
text-decoration: underline;
|
|
129
129
|
`;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { CpslCodeInput, CpslSpinner, CpslText } from "@getpara/react-components";
|
|
7
7
|
import { useEffect, useRef, useState } from "react";
|
|
8
|
-
import {
|
|
8
|
+
import { safeStyled } from "@getpara/react-common";
|
|
9
9
|
import { Heading, InnerStepContainer, StepContainer } from "../common.js";
|
|
10
10
|
import { displayPhoneNumber } from "@getpara/core-sdk";
|
|
11
11
|
import { useInternalClient } from "../../../provider/hooks/utils/useInternalClient.js";
|
|
@@ -127,14 +127,14 @@ const VerificationCodeStep = () => {
|
|
|
127
127
|
] }) })
|
|
128
128
|
] });
|
|
129
129
|
};
|
|
130
|
-
const StyledCodeInput =
|
|
130
|
+
const StyledCodeInput = safeStyled(CpslCodeInput)`
|
|
131
131
|
align-self: center;
|
|
132
132
|
`;
|
|
133
|
-
const InlineText =
|
|
133
|
+
const InlineText = safeStyled(CpslText)`
|
|
134
134
|
text-align: center;
|
|
135
135
|
display: inline-block;
|
|
136
136
|
`;
|
|
137
|
-
const ClickableText =
|
|
137
|
+
const ClickableText = safeStyled(InlineText)`
|
|
138
138
|
cursor: pointer;
|
|
139
139
|
display: inline-block;
|
|
140
140
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import
|
|
4
|
+
import { safeStyled } from "@getpara/react-common";
|
|
5
5
|
import { CpslIcon, CpslText } from "@getpara/react-components";
|
|
6
6
|
const PartnerIcon = ({ partner }) => {
|
|
7
7
|
const { logoUrl, displayName, backgroundColor, foregroundColor } = partner;
|
|
@@ -10,7 +10,7 @@ const PartnerIcon = ({ partner }) => {
|
|
|
10
10
|
}
|
|
11
11
|
return /* @__PURE__ */ jsx(Container, { $backgroundColor: backgroundColor, children: /* @__PURE__ */ jsx(Text, { variant: "bodyXS", $color: foregroundColor, children: displayName[0] }) });
|
|
12
12
|
};
|
|
13
|
-
const Container =
|
|
13
|
+
const Container = safeStyled.div`
|
|
14
14
|
width: 14px;
|
|
15
15
|
height: 14px;
|
|
16
16
|
display: flex;
|
|
@@ -19,13 +19,13 @@ const Container = styled.div`
|
|
|
19
19
|
background-color: ${({ $backgroundColor }) => `${$backgroundColor != null ? $backgroundColor : "var(--cpsl-color-contrast)"}`};
|
|
20
20
|
border-radius: 100%;
|
|
21
21
|
`;
|
|
22
|
-
const Text =
|
|
22
|
+
const Text = safeStyled(CpslText)`
|
|
23
23
|
&::part(text-element) {
|
|
24
24
|
line-height: 100%;
|
|
25
25
|
color: ${({ $color }) => `${$color != null ? $color : "var(--cpsl-color-foreground-0)"}`};
|
|
26
26
|
}
|
|
27
27
|
`;
|
|
28
|
-
const Icon =
|
|
28
|
+
const Icon = safeStyled(CpslIcon)`
|
|
29
29
|
--height: 14px;
|
|
30
30
|
--width: 14px;
|
|
31
31
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../../chunk-MMUBH76A.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import
|
|
4
|
+
import { safeStyled } from "@getpara/react-common";
|
|
5
5
|
import { useModalStore } from "../../stores/index.js";
|
|
6
6
|
import { CpslButton, CpslIdenticon, CpslText } from "@getpara/react-components";
|
|
7
7
|
import { truncateAddress } from "@getpara/web-sdk";
|
|
@@ -68,13 +68,13 @@ const SharedWalletCard = ({ address, name, identiconHash, showAddFunds, id, type
|
|
|
68
68
|
showAddFunds && isAddFundsEnabled && /* @__PURE__ */ jsx(AddFundsButton, { onClick: handleAddFundsClick, children: /* @__PURE__ */ jsx(CpslText, { variant: "bodyXS", color: "contrast", weight: "medium", children: "Add Funds" }) })
|
|
69
69
|
] });
|
|
70
70
|
};
|
|
71
|
-
const WalletCards =
|
|
71
|
+
const WalletCards = safeStyled.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
flex-direction: column;
|
|
74
74
|
gap: 8px;
|
|
75
75
|
width: 100%;
|
|
76
76
|
`;
|
|
77
|
-
const Container =
|
|
77
|
+
const Container = safeStyled.div`
|
|
78
78
|
width: 100%;
|
|
79
79
|
padding: 24px;
|
|
80
80
|
display: flex;
|
|
@@ -84,14 +84,14 @@ const Container = styled.div`
|
|
|
84
84
|
background-color: var(--cpsl-color-background-8);
|
|
85
85
|
border-radius: 16px;
|
|
86
86
|
`;
|
|
87
|
-
const InnerContainer =
|
|
87
|
+
const InnerContainer = safeStyled.div`
|
|
88
88
|
display: flex;
|
|
89
89
|
justify-content: flex-start;
|
|
90
90
|
gap: 8px;
|
|
91
91
|
align-items: center;
|
|
92
92
|
overflow: hidden;
|
|
93
93
|
`;
|
|
94
|
-
const WalletNameContainer =
|
|
94
|
+
const WalletNameContainer = safeStyled.div`
|
|
95
95
|
flex: 1;
|
|
96
96
|
display: flex;
|
|
97
97
|
flex-direction: column;
|
|
@@ -100,7 +100,7 @@ const WalletNameContainer = styled.div`
|
|
|
100
100
|
justify-content: center;
|
|
101
101
|
overflow: hidden;
|
|
102
102
|
`;
|
|
103
|
-
const Name =
|
|
103
|
+
const Name = safeStyled(CpslText)`
|
|
104
104
|
width: 100%;
|
|
105
105
|
&::part(text-element) {
|
|
106
106
|
line-height: 100%;
|
|
@@ -109,7 +109,7 @@ const Name = styled(CpslText)`
|
|
|
109
109
|
white-space: nowrap;
|
|
110
110
|
}
|
|
111
111
|
`;
|
|
112
|
-
const AddFundsButton =
|
|
112
|
+
const AddFundsButton = safeStyled(CpslButton)`
|
|
113
113
|
--button-primary-background-color: var(--cpsl-color-card-surface);
|
|
114
114
|
--button-primary-hover-background-color: var(--cpsl-color-background-4);
|
|
115
115
|
--button-primary-color: var(--cpsl-color-text-contrast);
|
|
@@ -8,7 +8,7 @@ import { StepContainer, InnerStepContainer, HeroIcon } from "../common.js";
|
|
|
8
8
|
import { useModalStore } from "../../stores/index.js";
|
|
9
9
|
import { ModalStep } from "../../utils/steps.js";
|
|
10
10
|
import { WalletCard, WalletCards } from "../WalletCard/WalletCard.js";
|
|
11
|
-
import
|
|
11
|
+
import { safeStyled } from "@getpara/react-common";
|
|
12
12
|
import { useInternalClient } from "../../../provider/hooks/utils/useInternalClient.js";
|
|
13
13
|
import { useStore } from "../../../provider/stores/useStore.js";
|
|
14
14
|
import { useAuthActions } from "../../../provider/providers/AuthProvider.js";
|
|
@@ -74,7 +74,7 @@ const WalletCreationDoneStep = ({ twoFactorAuthEnabled, onClose }) => {
|
|
|
74
74
|
/* @__PURE__ */ jsx(InnerStepContainer, { children: /* @__PURE__ */ jsx(CpslButton, { fullWidth: true, onClick: handleNext, disabled: isWaiting, children: twoFactorAuthEnabled ? "Continue" : "Done" }) })
|
|
75
75
|
] });
|
|
76
76
|
};
|
|
77
|
-
const CardContainer =
|
|
77
|
+
const CardContainer = safeStyled(InnerStepContainer)`
|
|
78
78
|
min-height: 196px;
|
|
79
79
|
justify-content: center;
|
|
80
80
|
`;
|