@loafmarkets/ui 0.1.406 → 0.1.407
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 +37 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -52
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7551,6 +7551,7 @@ var LoginPopup = ({
|
|
|
7551
7551
|
] })
|
|
7552
7552
|
] });
|
|
7553
7553
|
if (gate) {
|
|
7554
|
+
const codeAccepted = codeStatus === "valid";
|
|
7554
7555
|
const showSignIn = signInMode || signInRevealed;
|
|
7555
7556
|
return /* @__PURE__ */ jsxs(GateShell, { children: [
|
|
7556
7557
|
/* @__PURE__ */ jsx(GateTint, { $reveal: showSignIn ? 1 : 0 }),
|
|
@@ -7576,30 +7577,35 @@ var LoginPopup = ({
|
|
|
7576
7577
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7577
7578
|
/* @__PURE__ */ jsxs(CodeInputWrapper, { $status: codeStatus, children: [
|
|
7578
7579
|
/* @__PURE__ */ jsx(CodePrefix, { children: CODE_PREFIX }),
|
|
7579
|
-
codeInput
|
|
7580
|
+
codeInput,
|
|
7581
|
+
/* @__PURE__ */ jsx(
|
|
7582
|
+
GateSubmit,
|
|
7583
|
+
{
|
|
7584
|
+
type: "button",
|
|
7585
|
+
"aria-label": "Submit access code",
|
|
7586
|
+
$status: codeStatus,
|
|
7587
|
+
disabled: codeStatus === "checking" || !codeComplete,
|
|
7588
|
+
onClick: () => void runCodeValidation(referralCode),
|
|
7589
|
+
children: codeAccepted ? /* @__PURE__ */ jsx("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M20 6L9 17l-5-5" }) }) : codeStatus === "checking" ? /* @__PURE__ */ jsx(GateSpinner, {}) : /* @__PURE__ */ jsx("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M5 12h14M13 6l6 6-6 6" }) })
|
|
7590
|
+
}
|
|
7591
|
+
)
|
|
7580
7592
|
] }),
|
|
7581
7593
|
(codeStatus === "invalid" || error && !signInRevealed) && /* @__PURE__ */ jsx(StatusMessage, { $error: true, children: error || "That code isn't valid. Double-check and try again." }),
|
|
7582
|
-
signInRevealed ? signInStep : /* @__PURE__ */ jsxs(
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
)
|
|
7598
|
-
] }),
|
|
7599
|
-
/* @__PURE__ */ jsxs(GateEarlyAccess, { href: "https://loafmarkets.com/?waitlist=1", children: [
|
|
7600
|
-
"Signup for early access",
|
|
7601
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M5 12h14M13 6l6 6-6 6" }) })
|
|
7602
|
-
] })
|
|
7594
|
+
signInRevealed ? signInStep : /* @__PURE__ */ jsxs(GateResendText, { children: [
|
|
7595
|
+
"Already have an account?",
|
|
7596
|
+
" ",
|
|
7597
|
+
/* @__PURE__ */ jsx(
|
|
7598
|
+
"button",
|
|
7599
|
+
{
|
|
7600
|
+
type: "button",
|
|
7601
|
+
onClick: () => {
|
|
7602
|
+
setError("");
|
|
7603
|
+
setIsSignUp(false);
|
|
7604
|
+
setSignInMode(true);
|
|
7605
|
+
},
|
|
7606
|
+
children: "Sign in"
|
|
7607
|
+
}
|
|
7608
|
+
)
|
|
7603
7609
|
] })
|
|
7604
7610
|
] })
|
|
7605
7611
|
] })
|
|
@@ -8222,33 +8228,6 @@ var GateResendText = styled10.p`
|
|
|
8222
8228
|
font-size: inherit;
|
|
8223
8229
|
}
|
|
8224
8230
|
`;
|
|
8225
|
-
var GateEarlyAccess = styled10.a`
|
|
8226
|
-
display: inline-flex;
|
|
8227
|
-
align-items: center;
|
|
8228
|
-
gap: 0.4rem;
|
|
8229
|
-
margin-top: 0.15rem;
|
|
8230
|
-
color: var(--color-text-secondary, #848e9c);
|
|
8231
|
-
font-size: 0.8rem;
|
|
8232
|
-
font-weight: 500;
|
|
8233
|
-
letter-spacing: 0.02em;
|
|
8234
|
-
text-decoration: none;
|
|
8235
|
-
cursor: pointer;
|
|
8236
|
-
transition: color 0.15s ease;
|
|
8237
|
-
|
|
8238
|
-
svg {
|
|
8239
|
-
width: 13px;
|
|
8240
|
-
height: 13px;
|
|
8241
|
-
transition: transform 0.15s ease;
|
|
8242
|
-
}
|
|
8243
|
-
|
|
8244
|
-
&:hover {
|
|
8245
|
-
color: var(--color-accent, #E6C87E);
|
|
8246
|
-
}
|
|
8247
|
-
|
|
8248
|
-
&:hover svg {
|
|
8249
|
-
transform: translateX(3px);
|
|
8250
|
-
}
|
|
8251
|
-
`;
|
|
8252
8231
|
var GateSubmit = styled10.button`
|
|
8253
8232
|
display: flex;
|
|
8254
8233
|
align-items: center;
|
|
@@ -15459,7 +15438,11 @@ function PortfolioActivityPanel({
|
|
|
15459
15438
|
/* @__PURE__ */ jsx(CChevronWrap, { $open: ordExpanded, children: /* @__PURE__ */ jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "rgba(255,255,255,0.5)", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("polyline", { points: "6 9 12 15 18 9" }) }) })
|
|
15460
15439
|
] }),
|
|
15461
15440
|
ordExpanded && /* @__PURE__ */ jsxs(CExpandedWrap, { children: [
|
|
15462
|
-
/* @__PURE__ */ jsxs(
|
|
15441
|
+
/* @__PURE__ */ jsxs(CDetailGrid3, { children: [
|
|
15442
|
+
/* @__PURE__ */ jsxs(CDetailItem, { children: [
|
|
15443
|
+
/* @__PURE__ */ jsx(CDLabel, { children: "Order ID" }),
|
|
15444
|
+
/* @__PURE__ */ jsx(CDValue, { children: order.id > 0 ? `#${order.id}` : "\u2014" })
|
|
15445
|
+
] }),
|
|
15463
15446
|
/* @__PURE__ */ jsxs(CDetailItem, { children: [
|
|
15464
15447
|
/* @__PURE__ */ jsx(CDLabel, { children: "Type" }),
|
|
15465
15448
|
/* @__PURE__ */ jsx(CDValue, { children: prettyLabel(order.type) })
|
|
@@ -15488,7 +15471,8 @@ function PortfolioActivityPanel({
|
|
|
15488
15471
|
] })
|
|
15489
15472
|
] }, `open-${order.id}`);
|
|
15490
15473
|
}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15491
|
-
/* @__PURE__ */ jsxs(GridHeader, { $columns: onCancelOrder ? "1.2fr 0.6fr 0.7fr 0.8fr 1fr 0.8fr 0.8fr 82px" : "1.2fr 0.6fr 0.7fr 0.8fr 1fr 0.8fr 0.8fr", children: [
|
|
15474
|
+
/* @__PURE__ */ jsxs(GridHeader, { $columns: onCancelOrder ? "0.5fr 1.2fr 0.6fr 0.7fr 0.8fr 1fr 0.8fr 0.8fr 82px" : "0.5fr 1.2fr 0.6fr 0.7fr 0.8fr 1fr 0.8fr 0.8fr", children: [
|
|
15475
|
+
/* @__PURE__ */ jsx(GridHeaderCell, { children: "ID" }),
|
|
15492
15476
|
/* @__PURE__ */ jsx(GridHeaderCell, { children: "Asset" }),
|
|
15493
15477
|
/* @__PURE__ */ jsx(GridHeaderCell, { children: "Side" }),
|
|
15494
15478
|
/* @__PURE__ */ jsx(GridHeaderCell, { children: "Type" }),
|
|
@@ -15504,7 +15488,8 @@ function PortfolioActivityPanel({
|
|
|
15504
15488
|
const filledPercent = order.quantity > 0 ? Math.round(order.filledQuantity / order.quantity * 100) : 0;
|
|
15505
15489
|
const isCancelling = cancellingOrderId === order.id;
|
|
15506
15490
|
const sideColor = sideLabel(order.side) === "Buy" ? "#0ecb81" : "#f6465d";
|
|
15507
|
-
return /* @__PURE__ */ jsxs(GridRow, { $columns: onCancelOrder ? "1.2fr 0.6fr 0.7fr 0.8fr 1fr 0.8fr 0.8fr 82px" : "1.2fr 0.6fr 0.7fr 0.8fr 1fr 0.8fr 0.8fr", children: [
|
|
15491
|
+
return /* @__PURE__ */ jsxs(GridRow, { $columns: onCancelOrder ? "0.5fr 1.2fr 0.6fr 0.7fr 0.8fr 1fr 0.8fr 0.8fr 82px" : "0.5fr 1.2fr 0.6fr 0.7fr 0.8fr 1fr 0.8fr 0.8fr", children: [
|
|
15492
|
+
/* @__PURE__ */ jsx(GridCell, { children: /* @__PURE__ */ jsx(CellText, { $muted: true, children: order.id > 0 ? `#${order.id}` : "\u2014" }) }),
|
|
15508
15493
|
/* @__PURE__ */ jsx(GridCell, { children: /* @__PURE__ */ jsx(CellText, { $primary: true, $color: sideColor, $noHoverColor: true, $clickable: !!onAssetClick, onClick: onAssetClick ? () => onAssetClick(order.tokenName) : void 0, children: order.tokenName }) }),
|
|
15509
15494
|
/* @__PURE__ */ jsx(GridCell, { children: /* @__PURE__ */ jsx(SideBadge, { $side: sideLabel(order.side), children: sideLabel(order.side) }) }),
|
|
15510
15495
|
/* @__PURE__ */ jsx(GridCell, { children: /* @__PURE__ */ jsx(CellText, { $muted: true, children: prettyLabel(order.type) }) }),
|