@loafmarkets/ui 0.1.394 → 0.1.396
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.js +27 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6844,6 +6844,16 @@ var LoginPopup = ({
|
|
|
6844
6844
|
setLoading(false);
|
|
6845
6845
|
}
|
|
6846
6846
|
};
|
|
6847
|
+
const handleWalletHandleDismiss = async () => {
|
|
6848
|
+
if (gate) {
|
|
6849
|
+
if (await finishGate()) {
|
|
6850
|
+
suppressAutoCloseRef.current = false;
|
|
6851
|
+
onClose();
|
|
6852
|
+
}
|
|
6853
|
+
return;
|
|
6854
|
+
}
|
|
6855
|
+
onClose();
|
|
6856
|
+
};
|
|
6847
6857
|
const handleEmailClick = (signUp = false) => {
|
|
6848
6858
|
setIsSignUp(signUp);
|
|
6849
6859
|
setView("email");
|
|
@@ -7181,8 +7191,8 @@ var LoginPopup = ({
|
|
|
7181
7191
|
] }) });
|
|
7182
7192
|
}
|
|
7183
7193
|
if (view === "wallet-handle") {
|
|
7184
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Overlay2, { $transparent: gate, onClick: loading ? void 0 :
|
|
7185
|
-
!loading && /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { onClick:
|
|
7194
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Overlay2, { $transparent: gate, onClick: loading ? void 0 : handleWalletHandleDismiss, children: /* @__PURE__ */ jsxRuntime.jsxs(PopupContainer, { onClick: (event) => event.stopPropagation(), children: [
|
|
7195
|
+
!loading && /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { onClick: handleWalletHandleDismiss, "aria-label": "Close login popup", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }) }),
|
|
7186
7196
|
/* @__PURE__ */ jsxRuntime.jsxs(Title, { children: [
|
|
7187
7197
|
/* @__PURE__ */ jsxRuntime.jsx(LogoContainer3, { children: /* @__PURE__ */ jsxRuntime.jsx(LogoImage, { src: logoSrc, alt: logoAlt }) }),
|
|
7188
7198
|
"Claim your handle"
|
|
@@ -7429,6 +7439,7 @@ var LoginPopup = ({
|
|
|
7429
7439
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(OnboardingStepContainer, { style: { alignItems: "stretch", textAlign: "left" }, children: [
|
|
7430
7440
|
/* @__PURE__ */ jsxRuntime.jsx(OnboardingHeading, { style: { textAlign: "center" }, children: "Deposit Funds" }),
|
|
7431
7441
|
/* @__PURE__ */ jsxRuntime.jsx(OnboardingSubtext, { style: { textAlign: "center", marginBottom: "1rem" }, children: "Choose how you'd like to fund your account." }),
|
|
7442
|
+
/* @__PURE__ */ jsxRuntime.jsx(TestnetWarningBanner, { children: TESTNET_DEPOSIT_WARNING }),
|
|
7432
7443
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem" }, children: [
|
|
7433
7444
|
/* @__PURE__ */ jsxRuntime.jsxs(ModalOptionCard, { onClick: () => {
|
|
7434
7445
|
if (walletAddress) {
|
|
@@ -7666,6 +7677,7 @@ var LoginPopup = ({
|
|
|
7666
7677
|
"Back"
|
|
7667
7678
|
] }),
|
|
7668
7679
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", paddingTop: "0.5rem" }, children: [
|
|
7680
|
+
/* @__PURE__ */ jsxRuntime.jsx(TestnetWarningBanner, { children: TESTNET_DEPOSIT_WARNING }),
|
|
7669
7681
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
7670
7682
|
width: 52,
|
|
7671
7683
|
height: 52,
|
|
@@ -8442,6 +8454,19 @@ var OnboardingSubtext = styled10__default.default.p`
|
|
|
8442
8454
|
line-height: 1.6;
|
|
8443
8455
|
margin-bottom: 2rem;
|
|
8444
8456
|
`;
|
|
8457
|
+
var TestnetWarningBanner = styled10__default.default.div`
|
|
8458
|
+
width: 100%;
|
|
8459
|
+
background: #f5c84b;
|
|
8460
|
+
color: #1a1205;
|
|
8461
|
+
font-size: 0.76rem;
|
|
8462
|
+
font-weight: 600;
|
|
8463
|
+
line-height: 1.4;
|
|
8464
|
+
text-align: center;
|
|
8465
|
+
padding: 0.6rem 0.85rem;
|
|
8466
|
+
border-radius: 8px;
|
|
8467
|
+
margin-bottom: 1rem;
|
|
8468
|
+
`;
|
|
8469
|
+
var TESTNET_DEPOSIT_WARNING = "Attention: This is a testnet trading environment. Do NOT send any real funds to your address as you won't be able to recover them";
|
|
8445
8470
|
var OnboardingButtonGroup = styled10__default.default.div`
|
|
8446
8471
|
display: flex;
|
|
8447
8472
|
flex-direction: column;
|