@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.
Files changed (46) hide show
  1. package/dist/cli/cli.mjs +2 -0
  2. package/dist/modal/ParaModal.js +2 -2
  3. package/dist/modal/components/Account/Account.js +6 -6
  4. package/dist/modal/components/AddFunds/AddFunds.js +2 -2
  5. package/dist/modal/components/AddFunds/AddFundsAsset.js +6 -6
  6. package/dist/modal/components/AddFunds/AddFundsAwaiting.js +2 -2
  7. package/dist/modal/components/AddFunds/AddFundsProvider.js +4 -4
  8. package/dist/modal/components/AddFunds/AddFundsSettings.js +6 -6
  9. package/dist/modal/components/AddFunds/common.js +2 -2
  10. package/dist/modal/components/AuthInput/AuthInput.js +6 -6
  11. package/dist/modal/components/AuthMainStep/AuthMainStep.js +2 -2
  12. package/dist/modal/components/AuthMainStep/AuthMainStepContent.js +6 -6
  13. package/dist/modal/components/AuthOptions/AuthOptions.js +4 -4
  14. package/dist/modal/components/BiometricLoginStep/BiometricLoginStep.js +2 -2
  15. package/dist/modal/components/Body/AnimatedHeightWrapper.js +2 -2
  16. package/dist/modal/components/Body/Body.js +8 -8
  17. package/dist/modal/components/ChainSwitch/ChainSwitch.js +4 -4
  18. package/dist/modal/components/Controls/Controls.js +5 -5
  19. package/dist/modal/components/Controls/Selects.js +6 -6
  20. package/dist/modal/components/ExternalWalletStep/ExternalWalletStep.js +6 -6
  21. package/dist/modal/components/ExternalWalletVerificationStep/ExternalWalletVerificationStep.js +2 -2
  22. package/dist/modal/components/ExternalWallets/ExternalWallets.js +12 -12
  23. package/dist/modal/components/Footer/Footer.js +10 -10
  24. package/dist/modal/components/Header/Header.js +2 -2
  25. package/dist/modal/components/Header/hooks/useStepTitle.js +1 -0
  26. package/dist/modal/components/Hero/Hero.js +7 -7
  27. package/dist/modal/components/IFrameStep/IFrameStep.js +3 -3
  28. package/dist/modal/components/OAuth/OAuth.js +3 -3
  29. package/dist/modal/components/OAuth/TelegramOAuthStep.js +4 -4
  30. package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +8 -8
  31. package/dist/modal/components/RecoverySecretStep/RecoverySecretStep.js +4 -4
  32. package/dist/modal/components/Setup2FAStep/Setup2FAStep.js +3 -3
  33. package/dist/modal/components/VerificationCodeStep/VerificationCodeStep.js +4 -4
  34. package/dist/modal/components/WalletCard/PartnerIcon.js +4 -4
  35. package/dist/modal/components/WalletCard/WalletCard.js +7 -7
  36. package/dist/modal/components/WalletCreationDoneStep/WalletCreationDoneStep.js +2 -2
  37. package/dist/modal/components/common.js +19 -19
  38. package/dist/modal/constants/constants.js +1 -1
  39. package/dist/modal/utils/steps.d.ts +2 -0
  40. package/dist/modal/utils/steps.js +5 -1
  41. package/dist/provider/index.d.ts +2 -0
  42. package/dist/provider/index.js +2 -0
  43. package/dist/provider/providers/AuthProvider.js +14 -4
  44. package/package.json +8 -8
  45. package/dist/modal/types/externalWallets.d.ts +0 -37
  46. package/dist/modal/types/externalWallets.js +0 -34
@@ -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 { styled } from "styled-components";
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 = styled(CpslText)`
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 styled from "styled-components";
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 = styled.div`
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 = styled(StyledCpslTileButton)`
98
+ const WalletTileButton = safeStyled(StyledCpslTileButton)`
99
99
  flex: 1;
100
100
  `;
101
- const WalletButtonOuterContainer = styled.div`
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 = styled.div`
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 = styled.div`
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 = styled.span`
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 = styled.div`
140
+ const TileButtonInnerContainer = safeStyled.div`
141
141
  display: flex;
142
142
  gap: 4px;
143
143
  align-items: center;
144
144
  `;
145
- const SearchIcon = styled(CpslIcon)`
145
+ const SearchIcon = safeStyled(CpslIcon)`
146
146
  --icon-color: var(--cpsl-color-contrast);
147
147
  `;
148
- const SearchInputWrapper = styled.div`
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 = styled(CpslInput)`
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 = styled.div`
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 { styled } from "styled-components";
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 = styled.div`
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 = styled.div`
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 = styled.div`
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 = styled.div`
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 = styled(CpslIcon)`
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 = styled(CpslText)`
76
+ const InlineText = safeStyled(CpslText)`
77
77
  text-align: center;
78
78
  display: inline-block;
79
79
  `;
80
- const ConnectText = styled(InlineText)`
80
+ const ConnectText = safeStyled(InlineText)`
81
81
  line-height: 20px;
82
82
  `;
83
- const ClickableText = styled(InlineText)`
83
+ const ClickableText = safeStyled(InlineText)`
84
84
  cursor: pointer;
85
85
  display: inline-block;
86
86
  `;
87
- const ParaLogo = styled(CpslIcon)`
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 { styled } from "styled-components";
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 = styled(motion.div)`
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 styled from "styled-components";
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 = styled.div`
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 = styled.div`
86
+ const Spacer = safeStyled.div`
87
87
  height: ${({ $height }) => `${$height}px`};
88
88
  `;
89
- const WalletLogo = styled(CpslIcon)`
89
+ const WalletLogo = safeStyled(CpslIcon)`
90
90
  --height: 60px;
91
91
  --width: 60px;
92
92
  `;
93
- const Avatar = styled.img`
93
+ const Avatar = safeStyled.img`
94
94
  width: 100%;
95
95
  height: 100%;
96
96
  object-fit: contain;
97
97
  `;
98
- const IconAvatar = styled(CpslIdenticon)`
98
+ const IconAvatar = safeStyled(CpslIdenticon)`
99
99
  border-radius: 1000px;
100
100
  `;
101
- const StyledHero = styled(CpslHero)`
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 styled from "styled-components";
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 = styled.div`
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 = styled.div`
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 { styled } from "styled-components";
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 = styled.div`
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 = styled(StyledCpslTileButton)`
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 styled from "styled-components";
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 = styled.div`
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 = styled.div`
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 = styled.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 styled from "styled-components";
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 = styled(CpslButton)`
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 = styled(motion.div)`
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 = styled.div`
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 = styled.div`
53
+ const ProviderInfoInnerContainer = safeStyled.div`
54
54
  display: flex;
55
55
  gap: 16px;
56
56
  `;
57
- const IconContainer = styled.span`
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 = styled(CpslText)`
66
+ const Text = safeStyled(CpslText)`
67
67
  &::part(text-element) {
68
68
  color: #fff;
69
69
  }
70
70
  `;
71
- const Chevron = styled(CpslIcon)`
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 { styled } from "styled-components";
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 = styled(StyledCpslTileButton)`
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 = styled.div`
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 = styled(CpslText)`
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 { styled } from "styled-components";
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 = styled(CpslCodeInput)`
123
+ const StyledCodeInput = safeStyled(CpslCodeInput)`
124
124
  align-self: center;
125
125
  `;
126
- const SkipButton = styled(CpslButton)`
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 { styled } from "styled-components";
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 = styled(CpslCodeInput)`
130
+ const StyledCodeInput = safeStyled(CpslCodeInput)`
131
131
  align-self: center;
132
132
  `;
133
- const InlineText = styled(CpslText)`
133
+ const InlineText = safeStyled(CpslText)`
134
134
  text-align: center;
135
135
  display: inline-block;
136
136
  `;
137
- const ClickableText = styled(InlineText)`
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 styled from "styled-components";
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 = styled.div`
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 = styled(CpslText)`
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 = styled(CpslIcon)`
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 styled from "styled-components";
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 = styled.div`
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 = styled.div`
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 = styled.div`
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 = styled.div`
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 = styled(CpslText)`
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 = styled(CpslButton)`
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 styled from "styled-components";
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 = styled(InnerStepContainer)`
77
+ const CardContainer = safeStyled(InnerStepContainer)`
78
78
  min-height: 196px;
79
79
  justify-content: center;
80
80
  `;