@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.mjs
CHANGED
|
@@ -6819,6 +6819,16 @@ var LoginPopup = ({
|
|
|
6819
6819
|
setLoading(false);
|
|
6820
6820
|
}
|
|
6821
6821
|
};
|
|
6822
|
+
const handleWalletHandleDismiss = async () => {
|
|
6823
|
+
if (gate) {
|
|
6824
|
+
if (await finishGate()) {
|
|
6825
|
+
suppressAutoCloseRef.current = false;
|
|
6826
|
+
onClose();
|
|
6827
|
+
}
|
|
6828
|
+
return;
|
|
6829
|
+
}
|
|
6830
|
+
onClose();
|
|
6831
|
+
};
|
|
6822
6832
|
const handleEmailClick = (signUp = false) => {
|
|
6823
6833
|
setIsSignUp(signUp);
|
|
6824
6834
|
setView("email");
|
|
@@ -7156,8 +7166,8 @@ var LoginPopup = ({
|
|
|
7156
7166
|
] }) });
|
|
7157
7167
|
}
|
|
7158
7168
|
if (view === "wallet-handle") {
|
|
7159
|
-
return /* @__PURE__ */ jsx(Overlay2, { $transparent: gate, onClick: loading ? void 0 :
|
|
7160
|
-
!loading && /* @__PURE__ */ jsx(CloseButton, { onClick:
|
|
7169
|
+
return /* @__PURE__ */ jsx(Overlay2, { $transparent: gate, onClick: loading ? void 0 : handleWalletHandleDismiss, children: /* @__PURE__ */ jsxs(PopupContainer, { onClick: (event) => event.stopPropagation(), children: [
|
|
7170
|
+
!loading && /* @__PURE__ */ jsx(CloseButton, { onClick: handleWalletHandleDismiss, "aria-label": "Close login popup", children: /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ 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" }) }) }),
|
|
7161
7171
|
/* @__PURE__ */ jsxs(Title, { children: [
|
|
7162
7172
|
/* @__PURE__ */ jsx(LogoContainer3, { children: /* @__PURE__ */ jsx(LogoImage, { src: logoSrc, alt: logoAlt }) }),
|
|
7163
7173
|
"Claim your handle"
|
|
@@ -7404,6 +7414,7 @@ var LoginPopup = ({
|
|
|
7404
7414
|
] }) : /* @__PURE__ */ jsxs(OnboardingStepContainer, { style: { alignItems: "stretch", textAlign: "left" }, children: [
|
|
7405
7415
|
/* @__PURE__ */ jsx(OnboardingHeading, { style: { textAlign: "center" }, children: "Deposit Funds" }),
|
|
7406
7416
|
/* @__PURE__ */ jsx(OnboardingSubtext, { style: { textAlign: "center", marginBottom: "1rem" }, children: "Choose how you'd like to fund your account." }),
|
|
7417
|
+
/* @__PURE__ */ jsx(TestnetWarningBanner, { children: TESTNET_DEPOSIT_WARNING }),
|
|
7407
7418
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem" }, children: [
|
|
7408
7419
|
/* @__PURE__ */ jsxs(ModalOptionCard, { onClick: () => {
|
|
7409
7420
|
if (walletAddress) {
|
|
@@ -7641,6 +7652,7 @@ var LoginPopup = ({
|
|
|
7641
7652
|
"Back"
|
|
7642
7653
|
] }),
|
|
7643
7654
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", paddingTop: "0.5rem" }, children: [
|
|
7655
|
+
/* @__PURE__ */ jsx(TestnetWarningBanner, { children: TESTNET_DEPOSIT_WARNING }),
|
|
7644
7656
|
/* @__PURE__ */ jsx("div", { style: {
|
|
7645
7657
|
width: 52,
|
|
7646
7658
|
height: 52,
|
|
@@ -8417,6 +8429,19 @@ var OnboardingSubtext = styled10.p`
|
|
|
8417
8429
|
line-height: 1.6;
|
|
8418
8430
|
margin-bottom: 2rem;
|
|
8419
8431
|
`;
|
|
8432
|
+
var TestnetWarningBanner = styled10.div`
|
|
8433
|
+
width: 100%;
|
|
8434
|
+
background: #f5c84b;
|
|
8435
|
+
color: #1a1205;
|
|
8436
|
+
font-size: 0.76rem;
|
|
8437
|
+
font-weight: 600;
|
|
8438
|
+
line-height: 1.4;
|
|
8439
|
+
text-align: center;
|
|
8440
|
+
padding: 0.6rem 0.85rem;
|
|
8441
|
+
border-radius: 8px;
|
|
8442
|
+
margin-bottom: 1rem;
|
|
8443
|
+
`;
|
|
8444
|
+
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";
|
|
8420
8445
|
var OnboardingButtonGroup = styled10.div`
|
|
8421
8446
|
display: flex;
|
|
8422
8447
|
flex-direction: column;
|