@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.js
CHANGED
|
@@ -1780,10 +1780,12 @@ function OtpInput({ value, onChange, length = 6, disabled }) {
|
|
|
1780
1780
|
var containerStyle5 = {
|
|
1781
1781
|
display: "flex",
|
|
1782
1782
|
gap: 8,
|
|
1783
|
-
justifyContent: "center"
|
|
1783
|
+
justifyContent: "center",
|
|
1784
|
+
width: "100%"
|
|
1784
1785
|
};
|
|
1785
1786
|
var inputStyle = (tokens, filled) => ({
|
|
1786
1787
|
width: 44,
|
|
1788
|
+
maxWidth: "calc((100% - 40px) / 6)",
|
|
1787
1789
|
height: 52,
|
|
1788
1790
|
borderRadius: 12,
|
|
1789
1791
|
border: `1.5px solid ${filled ? tokens.borderFocus : tokens.border}`,
|
|
@@ -1795,7 +1797,8 @@ var inputStyle = (tokens, filled) => ({
|
|
|
1795
1797
|
textAlign: "center",
|
|
1796
1798
|
outline: "none",
|
|
1797
1799
|
caretColor: tokens.borderFocus,
|
|
1798
|
-
transition: "border-color 0.15s ease"
|
|
1800
|
+
transition: "border-color 0.15s ease",
|
|
1801
|
+
flexShrink: 0
|
|
1799
1802
|
});
|
|
1800
1803
|
function LimitSlider({
|
|
1801
1804
|
value,
|
|
@@ -1914,11 +1917,61 @@ var sliderThumbCss = (accent) => `
|
|
|
1914
1917
|
cursor: pointer;
|
|
1915
1918
|
}
|
|
1916
1919
|
`;
|
|
1920
|
+
|
|
1921
|
+
// src/assets/logos.ts
|
|
1922
|
+
function svgToDataUri(svg) {
|
|
1923
|
+
return `data:image/svg+xml,${encodeURIComponent(svg)}`;
|
|
1924
|
+
}
|
|
1925
|
+
var BASE_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 111 111" fill="none">
|
|
1926
|
+
<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"/>
|
|
1927
|
+
</svg>`;
|
|
1928
|
+
var METAMASK_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 318.6 318.6">
|
|
1929
|
+
<polygon fill="#E2761B" stroke="#E2761B" stroke-linecap="round" stroke-linejoin="round" points="274.1,35.5 174.6,109.4 193,65.8"/>
|
|
1930
|
+
<polygon fill="#E4761B" stroke="#E4761B" stroke-linecap="round" stroke-linejoin="round" points="44.4,35.5 143.1,110.1 125.6,65.8"/>
|
|
1931
|
+
<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"/>
|
|
1932
|
+
<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"/>
|
|
1933
|
+
<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"/>
|
|
1934
|
+
<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"/>
|
|
1935
|
+
<polygon fill="#CD6116" stroke="#CD6116" stroke-linecap="round" stroke-linejoin="round" points="107.8,247.4 140.6,230.9 111.4,208.1"/>
|
|
1936
|
+
<polygon fill="#CD6116" stroke="#CD6116" stroke-linecap="round" stroke-linejoin="round" points="177.9,230.9 211.8,247.4 207.1,208.1"/>
|
|
1937
|
+
<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"/>
|
|
1938
|
+
<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"/>
|
|
1939
|
+
<polygon fill="#763D16" stroke="#763D16" stroke-linecap="round" stroke-linejoin="round" points="138.8,193.5 110.6,185.2 130.5,176.1"/>
|
|
1940
|
+
<polygon fill="#763D16" stroke="#763D16" stroke-linecap="round" stroke-linejoin="round" points="179.7,193.5 188,176.1 208,185.2"/>
|
|
1941
|
+
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="107.8,247.4 111.6,206.8 81.3,207.7"/>
|
|
1942
|
+
<polygon fill="#F6851B" stroke="#F6851B" stroke-linecap="round" stroke-linejoin="round" points="207,206.8 211.8,247.4 238.3,207.7"/>
|
|
1943
|
+
<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"/>
|
|
1944
|
+
<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"/>
|
|
1945
|
+
<polygon fill="#E4751F" stroke="#E4751F" stroke-linecap="round" stroke-linejoin="round" points="87.8,162.1 111.4,208.1 110.6,185.2"/>
|
|
1946
|
+
<polygon fill="#E4751F" stroke="#E4751F" stroke-linecap="round" stroke-linejoin="round" points="208.1,185.2 207.1,208.1 230.8,162.1"/>
|
|
1947
|
+
<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"/>
|
|
1948
|
+
<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"/>
|
|
1949
|
+
<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"/>
|
|
1950
|
+
<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"/>
|
|
1951
|
+
<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"/>
|
|
1952
|
+
<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"/>
|
|
1953
|
+
<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"/>
|
|
1954
|
+
<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"/>
|
|
1955
|
+
<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"/>
|
|
1956
|
+
</svg>`;
|
|
1957
|
+
var BASE_LOGO = svgToDataUri(BASE_SVG);
|
|
1958
|
+
var METAMASK_LOGO = svgToDataUri(METAMASK_SVG);
|
|
1959
|
+
var KNOWN_LOGOS = {
|
|
1960
|
+
metamask: METAMASK_LOGO,
|
|
1961
|
+
base: BASE_LOGO
|
|
1962
|
+
};
|
|
1917
1963
|
function SourceCard({ name, address, verified, onChangeSource }) {
|
|
1918
1964
|
const { tokens } = useSwypeConfig();
|
|
1919
1965
|
return /* @__PURE__ */ jsxs("div", { style: containerStyle6(tokens), children: [
|
|
1920
1966
|
/* @__PURE__ */ jsxs("div", { style: leftStyle, children: [
|
|
1921
|
-
|
|
1967
|
+
KNOWN_LOGOS[name.toLowerCase()] ? /* @__PURE__ */ jsx(
|
|
1968
|
+
"img",
|
|
1969
|
+
{
|
|
1970
|
+
src: KNOWN_LOGOS[name.toLowerCase()],
|
|
1971
|
+
alt: name,
|
|
1972
|
+
style: logoImgStyle
|
|
1973
|
+
}
|
|
1974
|
+
) : /* @__PURE__ */ jsx("div", { style: iconStyle3(tokens.textMuted), children: /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
|
|
1922
1975
|
"path",
|
|
1923
1976
|
{
|
|
1924
1977
|
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",
|
|
@@ -1950,6 +2003,12 @@ var leftStyle = {
|
|
|
1950
2003
|
alignItems: "center",
|
|
1951
2004
|
gap: 10
|
|
1952
2005
|
};
|
|
2006
|
+
var logoImgStyle = {
|
|
2007
|
+
width: 20,
|
|
2008
|
+
height: 20,
|
|
2009
|
+
borderRadius: "50%",
|
|
2010
|
+
objectFit: "contain"
|
|
2011
|
+
};
|
|
1953
2012
|
var iconStyle3 = (color) => ({
|
|
1954
2013
|
color,
|
|
1955
2014
|
display: "flex",
|
|
@@ -2159,7 +2218,7 @@ function LoginScreen({
|
|
|
2159
2218
|
] }),
|
|
2160
2219
|
/* @__PURE__ */ jsxs("div", { style: walletSectionStyle, children: [
|
|
2161
2220
|
/* @__PURE__ */ jsx("span", { style: walletLabelStyle(tokens.textMuted), children: "Works with" }),
|
|
2162
|
-
/* @__PURE__ */ jsx("div", { style: walletLogosStyle, children: walletIcons.map(({ key, emoji }) => /* @__PURE__ */ jsx("span", { style: walletEmojiStyle, children: emoji }, key)) })
|
|
2221
|
+
/* @__PURE__ */ jsx("div", { style: walletLogosStyle, children: walletIcons.map(({ key, emoji, logo }) => logo ? /* @__PURE__ */ jsx("img", { src: logo, alt: key, style: walletLogoImgStyle }, key) : /* @__PURE__ */ jsx("span", { style: walletEmojiStyle, children: emoji }, key)) })
|
|
2163
2222
|
] }),
|
|
2164
2223
|
/* @__PURE__ */ jsx(PoweredByFooter, {})
|
|
2165
2224
|
] }),
|
|
@@ -2198,11 +2257,11 @@ function LoginScreen({
|
|
|
2198
2257
|
);
|
|
2199
2258
|
}
|
|
2200
2259
|
var walletIcons = [
|
|
2201
|
-
{ key: "metamask", emoji: "\u{1F98A}" },
|
|
2260
|
+
{ key: "metamask", emoji: "\u{1F98A}", logo: KNOWN_LOGOS["metamask"] },
|
|
2202
2261
|
{ key: "rabby", emoji: "\u{1F430}" },
|
|
2203
2262
|
{ key: "phantom", emoji: "\u25C6" },
|
|
2204
2263
|
{ key: "rainbow", emoji: "\u{1F439}" },
|
|
2205
|
-
{ key: "coinbase", emoji: "\u{1F535}" }
|
|
2264
|
+
{ key: "coinbase", emoji: "\u{1F535}", logo: KNOWN_LOGOS["base"] }
|
|
2206
2265
|
];
|
|
2207
2266
|
function socialLabel(provider) {
|
|
2208
2267
|
switch (provider) {
|
|
@@ -2326,6 +2385,11 @@ var walletEmojiStyle = {
|
|
|
2326
2385
|
fontSize: "1.4rem",
|
|
2327
2386
|
lineHeight: 1
|
|
2328
2387
|
};
|
|
2388
|
+
var walletLogoImgStyle = {
|
|
2389
|
+
width: 24,
|
|
2390
|
+
height: 24,
|
|
2391
|
+
objectFit: "contain"
|
|
2392
|
+
};
|
|
2329
2393
|
var avatarStyle = (tokens) => ({
|
|
2330
2394
|
width: 28,
|
|
2331
2395
|
height: 28,
|
|
@@ -2383,50 +2447,43 @@ function OtpVerifyScreen({
|
|
|
2383
2447
|
});
|
|
2384
2448
|
}, 1e3);
|
|
2385
2449
|
}, [cooldown, onResend]);
|
|
2386
|
-
return /* @__PURE__ */ jsxs(
|
|
2387
|
-
|
|
2388
|
-
{
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2450
|
+
return /* @__PURE__ */ jsxs(ScreenLayout, { footer: /* @__PURE__ */ jsx(PoweredByFooter, {}), children: [
|
|
2451
|
+
/* @__PURE__ */ jsx(ScreenHeader, { onBack }),
|
|
2452
|
+
/* @__PURE__ */ jsxs("div", { style: contentStyle2, children: [
|
|
2453
|
+
/* @__PURE__ */ jsx(IconCircle, { variant: "accent", size: 56, children: /* @__PURE__ */ jsx("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx(
|
|
2454
|
+
"path",
|
|
2455
|
+
{
|
|
2456
|
+
d: "M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z",
|
|
2457
|
+
fill: tokens.accent
|
|
2458
|
+
}
|
|
2459
|
+
) }) }),
|
|
2460
|
+
/* @__PURE__ */ jsx("h2", { style: headingStyle2(tokens.text), children: "Check your email" }),
|
|
2461
|
+
/* @__PURE__ */ jsxs("p", { style: subtitleStyle2(tokens.textSecondary), children: [
|
|
2462
|
+
"We sent a 6-digit code to",
|
|
2463
|
+
"\n",
|
|
2464
|
+
/* @__PURE__ */ jsx("strong", { children: maskedIdentifier })
|
|
2393
2465
|
] }),
|
|
2394
|
-
children:
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
/* @__PURE__ */ jsx(
|
|
2413
|
-
"button",
|
|
2414
|
-
{
|
|
2415
|
-
type: "button",
|
|
2416
|
-
onClick: handleResend,
|
|
2417
|
-
disabled: cooldown > 0,
|
|
2418
|
-
style: resendStyle(tokens.textMuted, cooldown > 0),
|
|
2419
|
-
children: cooldown > 0 ? `Resend code in ${cooldown}s` : "Resend code"
|
|
2420
|
-
}
|
|
2421
|
-
)
|
|
2422
|
-
] })
|
|
2423
|
-
]
|
|
2424
|
-
}
|
|
2425
|
-
);
|
|
2466
|
+
error && /* @__PURE__ */ jsx("div", { style: errorBannerStyle(tokens), children: error }),
|
|
2467
|
+
/* @__PURE__ */ jsx(OtpInput, { value: otpCode, onChange: onOtpChange, disabled: verifying }),
|
|
2468
|
+
/* @__PURE__ */ jsx(
|
|
2469
|
+
"button",
|
|
2470
|
+
{
|
|
2471
|
+
type: "button",
|
|
2472
|
+
onClick: handleResend,
|
|
2473
|
+
disabled: cooldown > 0,
|
|
2474
|
+
style: resendStyle(tokens.textMuted, cooldown > 0),
|
|
2475
|
+
children: cooldown > 0 ? `Resend code in ${cooldown}s` : "Resend code"
|
|
2476
|
+
}
|
|
2477
|
+
),
|
|
2478
|
+
/* @__PURE__ */ jsxs("div", { style: actionStyle, children: [
|
|
2479
|
+
/* @__PURE__ */ jsx(PrimaryButton, { onClick: onVerify, disabled, loading: verifying, children: "Verify" }),
|
|
2480
|
+
/* @__PURE__ */ jsx("p", { style: hintStyle(tokens.textMuted), children: "Didn't get the code? Check your spam folder" })
|
|
2481
|
+
] })
|
|
2482
|
+
] })
|
|
2483
|
+
] });
|
|
2426
2484
|
}
|
|
2427
2485
|
var contentStyle2 = {
|
|
2428
2486
|
textAlign: "center",
|
|
2429
|
-
flex: 1,
|
|
2430
2487
|
display: "flex",
|
|
2431
2488
|
flexDirection: "column",
|
|
2432
2489
|
alignItems: "center",
|
|
@@ -2469,6 +2526,10 @@ var resendStyle = (color, disabled) => ({
|
|
|
2469
2526
|
padding: 0,
|
|
2470
2527
|
opacity: disabled ? 0.6 : 1
|
|
2471
2528
|
});
|
|
2529
|
+
var actionStyle = {
|
|
2530
|
+
width: "100%",
|
|
2531
|
+
marginTop: 32
|
|
2532
|
+
};
|
|
2472
2533
|
var hintStyle = (color) => ({
|
|
2473
2534
|
textAlign: "center",
|
|
2474
2535
|
fontSize: "0.78rem",
|
|
@@ -2557,7 +2618,6 @@ var skipStyle = (color) => ({
|
|
|
2557
2618
|
padding: "12px 0 0"
|
|
2558
2619
|
});
|
|
2559
2620
|
var WALLET_EMOJIS = {
|
|
2560
|
-
metamask: "\u{1F98A}",
|
|
2561
2621
|
rabby: "\u{1F430}",
|
|
2562
2622
|
ora: "\u2666\uFE0F",
|
|
2563
2623
|
phantom: "\u{1F47B}"
|
|
@@ -2607,7 +2667,14 @@ function WalletPickerScreen({
|
|
|
2607
2667
|
style: pendingCardStyle(tokens, isHovered),
|
|
2608
2668
|
children: [
|
|
2609
2669
|
/* @__PURE__ */ jsxs("div", { style: pendingCardContentStyle, children: [
|
|
2610
|
-
/* @__PURE__ */ jsx("div", { style: pendingIconStyle, children:
|
|
2670
|
+
/* @__PURE__ */ jsx("div", { style: pendingIconStyle, children: KNOWN_LOGOS[acct.name.toLowerCase()] ? /* @__PURE__ */ jsx(
|
|
2671
|
+
"img",
|
|
2672
|
+
{
|
|
2673
|
+
src: KNOWN_LOGOS[acct.name.toLowerCase()],
|
|
2674
|
+
alt: acct.name,
|
|
2675
|
+
style: logoImgStyle2
|
|
2676
|
+
}
|
|
2677
|
+
) : /* @__PURE__ */ jsx("span", { style: emojiStyle, children: WALLET_EMOJIS[acct.name.toLowerCase()] ?? acct.name.charAt(0) }) }),
|
|
2611
2678
|
/* @__PURE__ */ jsxs("div", { style: pendingInfoStyle, children: [
|
|
2612
2679
|
/* @__PURE__ */ jsx("span", { style: pendingNameStyle(tokens.text), children: acct.name }),
|
|
2613
2680
|
address && /* @__PURE__ */ jsx("span", { style: pendingAddressStyle(tokens.textMuted), children: address })
|
|
@@ -2631,6 +2698,7 @@ function WalletPickerScreen({
|
|
|
2631
2698
|
] }),
|
|
2632
2699
|
/* @__PURE__ */ jsxs("div", { style: gridStyle, children: [
|
|
2633
2700
|
displayProviders.map((p) => {
|
|
2701
|
+
const logoSrc = "logoURI" in p && p.logoURI || KNOWN_LOGOS[p.name.toLowerCase()];
|
|
2634
2702
|
const emoji = WALLET_EMOJIS[p.name.toLowerCase()] ?? p.name.charAt(0);
|
|
2635
2703
|
const isHovered = hoveredId === p.id;
|
|
2636
2704
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2641,12 +2709,12 @@ function WalletPickerScreen({
|
|
|
2641
2709
|
onMouseLeave: () => setHoveredId(null),
|
|
2642
2710
|
style: cardStyle(tokens, isHovered),
|
|
2643
2711
|
children: [
|
|
2644
|
-
|
|
2712
|
+
logoSrc ? /* @__PURE__ */ jsx(
|
|
2645
2713
|
"img",
|
|
2646
2714
|
{
|
|
2647
|
-
src:
|
|
2715
|
+
src: logoSrc,
|
|
2648
2716
|
alt: p.name,
|
|
2649
|
-
style:
|
|
2717
|
+
style: logoImgStyle2
|
|
2650
2718
|
}
|
|
2651
2719
|
) : /* @__PURE__ */ jsx("span", { style: emojiStyle, children: emoji }),
|
|
2652
2720
|
/* @__PURE__ */ jsx("span", { style: nameStyle2(tokens.text), children: p.name })
|
|
@@ -2715,7 +2783,7 @@ var emojiStyle = {
|
|
|
2715
2783
|
fontSize: "1.75rem",
|
|
2716
2784
|
lineHeight: 1
|
|
2717
2785
|
};
|
|
2718
|
-
var
|
|
2786
|
+
var logoImgStyle2 = {
|
|
2719
2787
|
width: 32,
|
|
2720
2788
|
height: 32,
|
|
2721
2789
|
borderRadius: 8,
|
|
@@ -2858,7 +2926,7 @@ function SetupScreen({
|
|
|
2858
2926
|
/* @__PURE__ */ jsx(PoweredByFooter, {})
|
|
2859
2927
|
] }),
|
|
2860
2928
|
children: [
|
|
2861
|
-
/* @__PURE__ */ jsx(ScreenHeader, { title: "Swype Setup",
|
|
2929
|
+
/* @__PURE__ */ jsx(ScreenHeader, { title: "Swype Setup", onBack, right: /* @__PURE__ */ jsx(SettingsMenu, { onLogout }) }),
|
|
2862
2930
|
/* @__PURE__ */ jsx("h2", { style: headingStyle5(tokens.text), children: "Set up One-Tap deposits" }),
|
|
2863
2931
|
/* @__PURE__ */ jsx("p", { style: subtitleStyle5(tokens.textSecondary), children: "Set your limit for instant deposits. Like a contactless card \u2014 you choose the max." }),
|
|
2864
2932
|
error && /* @__PURE__ */ jsx("div", { style: errorBannerStyle3(tokens), children: error }),
|
|
@@ -3013,7 +3081,6 @@ function SetupStatusScreen({
|
|
|
3013
3081
|
complete,
|
|
3014
3082
|
limit,
|
|
3015
3083
|
tokensApproved,
|
|
3016
|
-
currentStepLabel,
|
|
3017
3084
|
merchantName,
|
|
3018
3085
|
onContinue,
|
|
3019
3086
|
onLogout,
|
|
@@ -3029,7 +3096,7 @@ function SetupStatusScreen({
|
|
|
3029
3096
|
{ label: "Done", status: "complete" }
|
|
3030
3097
|
] : [
|
|
3031
3098
|
{
|
|
3032
|
-
label:
|
|
3099
|
+
label: "Setting up Wallet",
|
|
3033
3100
|
status: "active"
|
|
3034
3101
|
},
|
|
3035
3102
|
{ label: "Done", status: "pending" }
|
|
@@ -3067,7 +3134,7 @@ var contentStyle4 = {
|
|
|
3067
3134
|
alignItems: "center",
|
|
3068
3135
|
justifyContent: "center",
|
|
3069
3136
|
textAlign: "center",
|
|
3070
|
-
padding: "0 24px"
|
|
3137
|
+
padding: "0 24px 32px"
|
|
3071
3138
|
};
|
|
3072
3139
|
var headingStyle6 = (color) => ({
|
|
3073
3140
|
fontSize: "1.45rem",
|
|
@@ -3207,7 +3274,7 @@ function DepositScreen({
|
|
|
3207
3274
|
/* @__PURE__ */ jsx(PoweredByFooter, {})
|
|
3208
3275
|
] }),
|
|
3209
3276
|
children: [
|
|
3210
|
-
/* @__PURE__ */ jsx(ScreenHeader, { title: headerTitle,
|
|
3277
|
+
/* @__PURE__ */ jsx(ScreenHeader, { title: headerTitle, onBack, right: /* @__PURE__ */ jsx(SettingsMenu, { onLogout }) }),
|
|
3211
3278
|
/* @__PURE__ */ jsx(
|
|
3212
3279
|
SourceCard,
|
|
3213
3280
|
{
|
|
@@ -4644,7 +4711,6 @@ function SwypePayment({
|
|
|
4644
4711
|
complete: setupComplete,
|
|
4645
4712
|
limit: oneTapLimit,
|
|
4646
4713
|
tokensApproved: tokenCount,
|
|
4647
|
-
currentStepLabel: setupStepLabel,
|
|
4648
4714
|
merchantName,
|
|
4649
4715
|
onContinue: () => setStep("deposit"),
|
|
4650
4716
|
onLogout: handleLogout,
|