@swype-org/react-sdk 0.1.36 → 0.1.39
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/index.cjs +124 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +124 -58
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1783,10 +1783,12 @@ function OtpInput({ value, onChange, length = 6, disabled }) {
|
|
|
1783
1783
|
var containerStyle5 = {
|
|
1784
1784
|
display: "flex",
|
|
1785
1785
|
gap: 8,
|
|
1786
|
-
justifyContent: "center"
|
|
1786
|
+
justifyContent: "center",
|
|
1787
|
+
width: "100%"
|
|
1787
1788
|
};
|
|
1788
1789
|
var inputStyle = (tokens, filled) => ({
|
|
1789
1790
|
width: 44,
|
|
1791
|
+
maxWidth: "calc((100% - 40px) / 6)",
|
|
1790
1792
|
height: 52,
|
|
1791
1793
|
borderRadius: 12,
|
|
1792
1794
|
border: `1.5px solid ${filled ? tokens.borderFocus : tokens.border}`,
|
|
@@ -1798,7 +1800,8 @@ var inputStyle = (tokens, filled) => ({
|
|
|
1798
1800
|
textAlign: "center",
|
|
1799
1801
|
outline: "none",
|
|
1800
1802
|
caretColor: tokens.borderFocus,
|
|
1801
|
-
transition: "border-color 0.15s ease"
|
|
1803
|
+
transition: "border-color 0.15s ease",
|
|
1804
|
+
flexShrink: 0
|
|
1802
1805
|
});
|
|
1803
1806
|
function LimitSlider({
|
|
1804
1807
|
value,
|
|
@@ -1917,11 +1920,61 @@ var sliderThumbCss = (accent) => `
|
|
|
1917
1920
|
cursor: pointer;
|
|
1918
1921
|
}
|
|
1919
1922
|
`;
|
|
1923
|
+
|
|
1924
|
+
// src/assets/logos.ts
|
|
1925
|
+
function svgToDataUri(svg) {
|
|
1926
|
+
return `data:image/svg+xml,${encodeURIComponent(svg)}`;
|
|
1927
|
+
}
|
|
1928
|
+
var BASE_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 111 111" fill="none">
|
|
1929
|
+
<path d="M54.921 110.034C85.359 110.034 110.034 85.402 110.034 55.017C110.034 24.6319 85.359 0 54.921 0C26.0432 0 2.35281 22.1714 0 50.3923H72.8467V59.6416H0C2.35281 87.8625 26.0432 110.034 54.921 110.034Z" fill="#0052FF"/>
|
|
1930
|
+
</svg>`;
|
|
1931
|
+
var METAMASK_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 318.6 318.6">
|
|
1932
|
+
<polygon fill="#E2761B" stroke="#E2761B" stroke-linecap="round" stroke-linejoin="round" points="274.1,35.5 174.6,109.4 193,65.8"/>
|
|
1933
|
+
<polygon fill="#E4761B" stroke="#E4761B" stroke-linecap="round" stroke-linejoin="round" points="44.4,35.5 143.1,110.1 125.6,65.8"/>
|
|
1934
|
+
<polygon fill="#D7C1B3" stroke="#D7C1B3" stroke-linecap="round" stroke-linejoin="round" points="238.3,206.8 211.8,247.4 268.5,263.2 285.8,207.7"/>
|
|
1935
|
+
<polygon fill="#D7C1B3" stroke="#D7C1B3" stroke-linecap="round" stroke-linejoin="round" points="33.9,207.7 51.1,263.2 107.8,247.4 81.3,206.8"/>
|
|
1936
|
+
<polygon fill="#233447" stroke="#233447" stroke-linecap="round" stroke-linejoin="round" points="103.6,138.2 87.8,162.1 143.1,164.6 141.1,104.1"/>
|
|
1937
|
+
<polygon fill="#233447" stroke="#233447" stroke-linecap="round" stroke-linejoin="round" points="214.9,138.2 175.9,103.4 174.6,164.6 230.8,162.1"/>
|
|
1938
|
+
<polygon fill="#CD6116" stroke="#CD6116" stroke-linecap="round" stroke-linejoin="round" points="107.8,247.4 140.6,230.9 111.4,208.1"/>
|
|
1939
|
+
<polygon fill="#CD6116" stroke="#CD6116" stroke-linecap="round" stroke-linejoin="round" points="177.9,230.9 211.8,247.4 207.1,208.1"/>
|
|
1940
|
+
<polygon fill="#E4761B" stroke="#E4761B" stroke-linecap="round" stroke-linejoin="round" points="211.8,247.4 177.9,230.9 180.6,253 180.3,262.3"/>
|
|
1941
|
+
<polygon fill="#E4761B" stroke="#E4761B" stroke-linecap="round" stroke-linejoin="round" points="107.8,247.4 138.3,262.3 138.1,253 140.6,230.9"/>
|
|
1942
|
+
<polygon fill="#763D16" stroke="#763D16" stroke-linecap="round" stroke-linejoin="round" points="138.8,193.5 110.6,185.2 130.5,176.1"/>
|
|
1943
|
+
<polygon fill="#763D16" stroke="#763D16" stroke-linecap="round" stroke-linejoin="round" points="179.7,193.5 188,176.1 208,185.2"/>
|
|
1944
|
+
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="107.8,247.4 111.6,206.8 81.3,207.7"/>
|
|
1945
|
+
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="207,206.8 211.8,247.4 238.3,207.7"/>
|
|
1946
|
+
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="230.8,162.1 174.6,164.6 179.8,193.5 188.1,176.1 208.1,185.2"/>
|
|
1947
|
+
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="110.6,185.2 130.6,176.1 138.8,193.5 143.1,164.6 87.8,162.1"/>
|
|
1948
|
+
<polygon fill="#E4751F" stroke="#E4751F" stroke-linecap="round" stroke-linejoin="round" points="87.8,162.1 111.4,208.1 110.6,185.2"/>
|
|
1949
|
+
<polygon fill="#E4751F" stroke="#E4751F" stroke-linecap="round" stroke-linejoin="round" points="208.1,185.2 207.1,208.1 230.8,162.1"/>
|
|
1950
|
+
<polygon fill="#E4751F" stroke="#E4751F" stroke-linecap="round" stroke-linejoin="round" points="143.1,164.6 138.8,193.5 144.1,218.9 145.3,182.8"/>
|
|
1951
|
+
<polygon fill="#E4751F" stroke="#E4751F" stroke-linecap="round" stroke-linejoin="round" points="174.6,164.6 173.1,182.6 174.4,218.9 179.8,193.5"/>
|
|
1952
|
+
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="179.8,193.5 174.4,218.9 177.9,230.9 207.1,208.1 208.1,185.2"/>
|
|
1953
|
+
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="110.6,185.2 111.4,208.1 140.6,230.9 144.1,218.9 138.8,193.5"/>
|
|
1954
|
+
<polygon fill="#C0AD9E" stroke="#C0AD9E" stroke-linecap="round" stroke-linejoin="round" points="180.3,262.3 180.6,253 178.1,250.8 140.4,250.8 138.1,253 138.3,262.3 107.8,247.4 117.8,255.1 140.1,271.9 178.4,271.9 200.8,255.1 211.8,247.4"/>
|
|
1955
|
+
<polygon fill="#161616" stroke="#161616" stroke-linecap="round" stroke-linejoin="round" points="177.9,230.9 174.4,218.9 178.1,250.8 180.6,253"/>
|
|
1956
|
+
<polygon fill="#161616" stroke="#161616" stroke-linecap="round" stroke-linejoin="round" points="140.6,230.9 138.1,253 140.4,250.8 144.1,218.9"/>
|
|
1957
|
+
<polygon fill="#763D16" stroke="#763D16" stroke-linecap="round" stroke-linejoin="round" points="278.3,114.2 286.8,73.7 274.1,35.5 174.6,109.4 214.9,138.2 267.2,153.5 278.8,140 273.8,136.4 281.8,129.1 275.4,124.1 283.4,118"/>
|
|
1958
|
+
<polygon fill="#763D16" stroke="#763D16" stroke-linecap="round" stroke-linejoin="round" points="31.8,73.7 40.3,114.2 35.5,118 43.5,124.1 36.8,129.1 44.8,136.4 39.8,140 51.3,153.5 103.6,138.2 143.1,110.1 44.4,35.5"/>
|
|
1959
|
+
</svg>`;
|
|
1960
|
+
var BASE_LOGO = svgToDataUri(BASE_SVG);
|
|
1961
|
+
var METAMASK_LOGO = svgToDataUri(METAMASK_SVG);
|
|
1962
|
+
var KNOWN_LOGOS = {
|
|
1963
|
+
metamask: METAMASK_LOGO,
|
|
1964
|
+
base: BASE_LOGO
|
|
1965
|
+
};
|
|
1920
1966
|
function SourceCard({ name, address, verified, onChangeSource }) {
|
|
1921
1967
|
const { tokens } = useSwypeConfig();
|
|
1922
1968
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: containerStyle6(tokens), children: [
|
|
1923
1969
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: leftStyle, children: [
|
|
1924
|
-
|
|
1970
|
+
KNOWN_LOGOS[name.toLowerCase()] ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1971
|
+
"img",
|
|
1972
|
+
{
|
|
1973
|
+
src: KNOWN_LOGOS[name.toLowerCase()],
|
|
1974
|
+
alt: name,
|
|
1975
|
+
style: logoImgStyle
|
|
1976
|
+
}
|
|
1977
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { style: iconStyle3(tokens.textMuted), children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1925
1978
|
"path",
|
|
1926
1979
|
{
|
|
1927
1980
|
d: "M21 7H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 8H3V9h18v6z",
|
|
@@ -1953,6 +2006,12 @@ var leftStyle = {
|
|
|
1953
2006
|
alignItems: "center",
|
|
1954
2007
|
gap: 10
|
|
1955
2008
|
};
|
|
2009
|
+
var logoImgStyle = {
|
|
2010
|
+
width: 20,
|
|
2011
|
+
height: 20,
|
|
2012
|
+
borderRadius: "50%",
|
|
2013
|
+
objectFit: "contain"
|
|
2014
|
+
};
|
|
1956
2015
|
var iconStyle3 = (color) => ({
|
|
1957
2016
|
color,
|
|
1958
2017
|
display: "flex",
|
|
@@ -2162,7 +2221,7 @@ function LoginScreen({
|
|
|
2162
2221
|
] }),
|
|
2163
2222
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: walletSectionStyle, children: [
|
|
2164
2223
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: walletLabelStyle(tokens.textMuted), children: "Works with" }),
|
|
2165
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: walletLogosStyle, children: walletIcons.map(({ key, emoji }) => /* @__PURE__ */ jsxRuntime.jsx("span", { style: walletEmojiStyle, children: emoji }, key)) })
|
|
2224
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: walletLogosStyle, children: walletIcons.map(({ key, emoji, logo }) => logo ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logo, alt: key, style: walletLogoImgStyle }, key) : /* @__PURE__ */ jsxRuntime.jsx("span", { style: walletEmojiStyle, children: emoji }, key)) })
|
|
2166
2225
|
] }),
|
|
2167
2226
|
/* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {})
|
|
2168
2227
|
] }),
|
|
@@ -2201,11 +2260,11 @@ function LoginScreen({
|
|
|
2201
2260
|
);
|
|
2202
2261
|
}
|
|
2203
2262
|
var walletIcons = [
|
|
2204
|
-
{ key: "metamask", emoji: "\u{1F98A}" },
|
|
2263
|
+
{ key: "metamask", emoji: "\u{1F98A}", logo: KNOWN_LOGOS["metamask"] },
|
|
2205
2264
|
{ key: "rabby", emoji: "\u{1F430}" },
|
|
2206
2265
|
{ key: "phantom", emoji: "\u25C6" },
|
|
2207
2266
|
{ key: "rainbow", emoji: "\u{1F439}" },
|
|
2208
|
-
{ key: "coinbase", emoji: "\u{1F535}" }
|
|
2267
|
+
{ key: "coinbase", emoji: "\u{1F535}", logo: KNOWN_LOGOS["base"] }
|
|
2209
2268
|
];
|
|
2210
2269
|
function socialLabel(provider) {
|
|
2211
2270
|
switch (provider) {
|
|
@@ -2329,6 +2388,11 @@ var walletEmojiStyle = {
|
|
|
2329
2388
|
fontSize: "1.4rem",
|
|
2330
2389
|
lineHeight: 1
|
|
2331
2390
|
};
|
|
2391
|
+
var walletLogoImgStyle = {
|
|
2392
|
+
width: 24,
|
|
2393
|
+
height: 24,
|
|
2394
|
+
objectFit: "contain"
|
|
2395
|
+
};
|
|
2332
2396
|
var avatarStyle = (tokens) => ({
|
|
2333
2397
|
width: 28,
|
|
2334
2398
|
height: 28,
|
|
@@ -2386,50 +2450,43 @@ function OtpVerifyScreen({
|
|
|
2386
2450
|
});
|
|
2387
2451
|
}, 1e3);
|
|
2388
2452
|
}, [cooldown, onResend]);
|
|
2389
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2390
|
-
|
|
2391
|
-
{
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2453
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ScreenLayout, { footer: /* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {}), children: [
|
|
2454
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack }),
|
|
2455
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle2, children: [
|
|
2456
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconCircle, { variant: "accent", size: 56, children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2457
|
+
"path",
|
|
2458
|
+
{
|
|
2459
|
+
d: "M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z",
|
|
2460
|
+
fill: tokens.accent
|
|
2461
|
+
}
|
|
2462
|
+
) }) }),
|
|
2463
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle2(tokens.text), children: "Check your email" }),
|
|
2464
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { style: subtitleStyle2(tokens.textSecondary), children: [
|
|
2465
|
+
"We sent a 6-digit code to",
|
|
2466
|
+
"\n",
|
|
2467
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: maskedIdentifier })
|
|
2396
2468
|
] }),
|
|
2397
|
-
children:
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2416
|
-
"button",
|
|
2417
|
-
{
|
|
2418
|
-
type: "button",
|
|
2419
|
-
onClick: handleResend,
|
|
2420
|
-
disabled: cooldown > 0,
|
|
2421
|
-
style: resendStyle(tokens.textMuted, cooldown > 0),
|
|
2422
|
-
children: cooldown > 0 ? `Resend code in ${cooldown}s` : "Resend code"
|
|
2423
|
-
}
|
|
2424
|
-
)
|
|
2425
|
-
] })
|
|
2426
|
-
]
|
|
2427
|
-
}
|
|
2428
|
-
);
|
|
2469
|
+
error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: errorBannerStyle(tokens), children: error }),
|
|
2470
|
+
/* @__PURE__ */ jsxRuntime.jsx(OtpInput, { value: otpCode, onChange: onOtpChange, disabled: verifying }),
|
|
2471
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2472
|
+
"button",
|
|
2473
|
+
{
|
|
2474
|
+
type: "button",
|
|
2475
|
+
onClick: handleResend,
|
|
2476
|
+
disabled: cooldown > 0,
|
|
2477
|
+
style: resendStyle(tokens.textMuted, cooldown > 0),
|
|
2478
|
+
children: cooldown > 0 ? `Resend code in ${cooldown}s` : "Resend code"
|
|
2479
|
+
}
|
|
2480
|
+
),
|
|
2481
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: actionStyle, children: [
|
|
2482
|
+
/* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { onClick: onVerify, disabled, loading: verifying, children: "Verify" }),
|
|
2483
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: hintStyle(tokens.textMuted), children: "Didn't get the code? Check your spam folder" })
|
|
2484
|
+
] })
|
|
2485
|
+
] })
|
|
2486
|
+
] });
|
|
2429
2487
|
}
|
|
2430
2488
|
var contentStyle2 = {
|
|
2431
2489
|
textAlign: "center",
|
|
2432
|
-
flex: 1,
|
|
2433
2490
|
display: "flex",
|
|
2434
2491
|
flexDirection: "column",
|
|
2435
2492
|
alignItems: "center",
|
|
@@ -2472,6 +2529,10 @@ var resendStyle = (color, disabled) => ({
|
|
|
2472
2529
|
padding: 0,
|
|
2473
2530
|
opacity: disabled ? 0.6 : 1
|
|
2474
2531
|
});
|
|
2532
|
+
var actionStyle = {
|
|
2533
|
+
width: "100%",
|
|
2534
|
+
marginTop: 32
|
|
2535
|
+
};
|
|
2475
2536
|
var hintStyle = (color) => ({
|
|
2476
2537
|
textAlign: "center",
|
|
2477
2538
|
fontSize: "0.78rem",
|
|
@@ -2560,7 +2621,6 @@ var skipStyle = (color) => ({
|
|
|
2560
2621
|
padding: "12px 0 0"
|
|
2561
2622
|
});
|
|
2562
2623
|
var WALLET_EMOJIS = {
|
|
2563
|
-
metamask: "\u{1F98A}",
|
|
2564
2624
|
rabby: "\u{1F430}",
|
|
2565
2625
|
ora: "\u2666\uFE0F",
|
|
2566
2626
|
phantom: "\u{1F47B}"
|
|
@@ -2610,7 +2670,14 @@ function WalletPickerScreen({
|
|
|
2610
2670
|
style: pendingCardStyle(tokens, isHovered),
|
|
2611
2671
|
children: [
|
|
2612
2672
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: pendingCardContentStyle, children: [
|
|
2613
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: pendingIconStyle, children:
|
|
2673
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: pendingIconStyle, children: KNOWN_LOGOS[acct.name.toLowerCase()] ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2674
|
+
"img",
|
|
2675
|
+
{
|
|
2676
|
+
src: KNOWN_LOGOS[acct.name.toLowerCase()],
|
|
2677
|
+
alt: acct.name,
|
|
2678
|
+
style: logoImgStyle2
|
|
2679
|
+
}
|
|
2680
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("span", { style: emojiStyle, children: WALLET_EMOJIS[acct.name.toLowerCase()] ?? acct.name.charAt(0) }) }),
|
|
2614
2681
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: pendingInfoStyle, children: [
|
|
2615
2682
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: pendingNameStyle(tokens.text), children: acct.name }),
|
|
2616
2683
|
address && /* @__PURE__ */ jsxRuntime.jsx("span", { style: pendingAddressStyle(tokens.textMuted), children: address })
|
|
@@ -2634,6 +2701,7 @@ function WalletPickerScreen({
|
|
|
2634
2701
|
] }),
|
|
2635
2702
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: gridStyle, children: [
|
|
2636
2703
|
displayProviders.map((p) => {
|
|
2704
|
+
const logoSrc = "logoURI" in p && p.logoURI || KNOWN_LOGOS[p.name.toLowerCase()];
|
|
2637
2705
|
const emoji = WALLET_EMOJIS[p.name.toLowerCase()] ?? p.name.charAt(0);
|
|
2638
2706
|
const isHovered = hoveredId === p.id;
|
|
2639
2707
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -2644,12 +2712,12 @@ function WalletPickerScreen({
|
|
|
2644
2712
|
onMouseLeave: () => setHoveredId(null),
|
|
2645
2713
|
style: cardStyle(tokens, isHovered),
|
|
2646
2714
|
children: [
|
|
2647
|
-
|
|
2715
|
+
logoSrc ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2648
2716
|
"img",
|
|
2649
2717
|
{
|
|
2650
|
-
src:
|
|
2718
|
+
src: logoSrc,
|
|
2651
2719
|
alt: p.name,
|
|
2652
|
-
style:
|
|
2720
|
+
style: logoImgStyle2
|
|
2653
2721
|
}
|
|
2654
2722
|
) : /* @__PURE__ */ jsxRuntime.jsx("span", { style: emojiStyle, children: emoji }),
|
|
2655
2723
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: nameStyle2(tokens.text), children: p.name })
|
|
@@ -2718,7 +2786,7 @@ var emojiStyle = {
|
|
|
2718
2786
|
fontSize: "1.75rem",
|
|
2719
2787
|
lineHeight: 1
|
|
2720
2788
|
};
|
|
2721
|
-
var
|
|
2789
|
+
var logoImgStyle2 = {
|
|
2722
2790
|
width: 32,
|
|
2723
2791
|
height: 32,
|
|
2724
2792
|
borderRadius: 8,
|
|
@@ -2861,7 +2929,7 @@ function SetupScreen({
|
|
|
2861
2929
|
/* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {})
|
|
2862
2930
|
] }),
|
|
2863
2931
|
children: [
|
|
2864
|
-
/* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { title: "Swype Setup",
|
|
2932
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { title: "Swype Setup", onBack, right: /* @__PURE__ */ jsxRuntime.jsx(SettingsMenu, { onLogout }) }),
|
|
2865
2933
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle5(tokens.text), children: "Set up One-Tap deposits" }),
|
|
2866
2934
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: subtitleStyle5(tokens.textSecondary), children: "Set your limit for instant deposits. Like a contactless card \u2014 you choose the max." }),
|
|
2867
2935
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: errorBannerStyle3(tokens), children: error }),
|
|
@@ -3016,7 +3084,6 @@ function SetupStatusScreen({
|
|
|
3016
3084
|
complete,
|
|
3017
3085
|
limit,
|
|
3018
3086
|
tokensApproved,
|
|
3019
|
-
currentStepLabel,
|
|
3020
3087
|
merchantName,
|
|
3021
3088
|
onContinue,
|
|
3022
3089
|
onLogout,
|
|
@@ -3032,7 +3099,7 @@ function SetupStatusScreen({
|
|
|
3032
3099
|
{ label: "Done", status: "complete" }
|
|
3033
3100
|
] : [
|
|
3034
3101
|
{
|
|
3035
|
-
label:
|
|
3102
|
+
label: "Setting up Wallet",
|
|
3036
3103
|
status: "active"
|
|
3037
3104
|
},
|
|
3038
3105
|
{ label: "Done", status: "pending" }
|
|
@@ -3070,7 +3137,7 @@ var contentStyle4 = {
|
|
|
3070
3137
|
alignItems: "center",
|
|
3071
3138
|
justifyContent: "center",
|
|
3072
3139
|
textAlign: "center",
|
|
3073
|
-
padding: "0 24px"
|
|
3140
|
+
padding: "0 24px 32px"
|
|
3074
3141
|
};
|
|
3075
3142
|
var headingStyle6 = (color) => ({
|
|
3076
3143
|
fontSize: "1.45rem",
|
|
@@ -3210,7 +3277,7 @@ function DepositScreen({
|
|
|
3210
3277
|
/* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {})
|
|
3211
3278
|
] }),
|
|
3212
3279
|
children: [
|
|
3213
|
-
/* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { title: headerTitle,
|
|
3280
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { title: headerTitle, onBack, right: /* @__PURE__ */ jsxRuntime.jsx(SettingsMenu, { onLogout }) }),
|
|
3214
3281
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3215
3282
|
SourceCard,
|
|
3216
3283
|
{
|
|
@@ -4647,7 +4714,6 @@ function SwypePayment({
|
|
|
4647
4714
|
complete: setupComplete,
|
|
4648
4715
|
limit: oneTapLimit,
|
|
4649
4716
|
tokensApproved: tokenCount,
|
|
4650
|
-
currentStepLabel: setupStepLabel,
|
|
4651
4717
|
merchantName,
|
|
4652
4718
|
onContinue: () => setStep("deposit"),
|
|
4653
4719
|
onLogout: handleLogout,
|