@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.js
CHANGED
|
@@ -7576,6 +7576,7 @@ var LoginPopup = ({
|
|
|
7576
7576
|
] })
|
|
7577
7577
|
] });
|
|
7578
7578
|
if (gate) {
|
|
7579
|
+
const codeAccepted = codeStatus === "valid";
|
|
7579
7580
|
const showSignIn = signInMode || signInRevealed;
|
|
7580
7581
|
return /* @__PURE__ */ jsxRuntime.jsxs(GateShell, { children: [
|
|
7581
7582
|
/* @__PURE__ */ jsxRuntime.jsx(GateTint, { $reveal: showSignIn ? 1 : 0 }),
|
|
@@ -7601,30 +7602,35 @@ var LoginPopup = ({
|
|
|
7601
7602
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7602
7603
|
/* @__PURE__ */ jsxRuntime.jsxs(CodeInputWrapper, { $status: codeStatus, children: [
|
|
7603
7604
|
/* @__PURE__ */ jsxRuntime.jsx(CodePrefix, { children: CODE_PREFIX }),
|
|
7604
|
-
codeInput
|
|
7605
|
+
codeInput,
|
|
7606
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7607
|
+
GateSubmit,
|
|
7608
|
+
{
|
|
7609
|
+
type: "button",
|
|
7610
|
+
"aria-label": "Submit access code",
|
|
7611
|
+
$status: codeStatus,
|
|
7612
|
+
disabled: codeStatus === "checking" || !codeComplete,
|
|
7613
|
+
onClick: () => void runCodeValidation(referralCode),
|
|
7614
|
+
children: codeAccepted ? /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20 6L9 17l-5-5" }) }) : codeStatus === "checking" ? /* @__PURE__ */ jsxRuntime.jsx(GateSpinner, {}) : /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 12h14M13 6l6 6-6 6" }) })
|
|
7615
|
+
}
|
|
7616
|
+
)
|
|
7605
7617
|
] }),
|
|
7606
7618
|
(codeStatus === "invalid" || error && !signInRevealed) && /* @__PURE__ */ jsxRuntime.jsx(StatusMessage, { $error: true, children: error || "That code isn't valid. Double-check and try again." }),
|
|
7607
|
-
signInRevealed ? signInStep : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
)
|
|
7623
|
-
] }),
|
|
7624
|
-
/* @__PURE__ */ jsxRuntime.jsxs(GateEarlyAccess, { href: "https://loafmarkets.com/?waitlist=1", children: [
|
|
7625
|
-
"Signup for early access",
|
|
7626
|
-
/* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 12h14M13 6l6 6-6 6" }) })
|
|
7627
|
-
] })
|
|
7619
|
+
signInRevealed ? signInStep : /* @__PURE__ */ jsxRuntime.jsxs(GateResendText, { children: [
|
|
7620
|
+
"Already have an account?",
|
|
7621
|
+
" ",
|
|
7622
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7623
|
+
"button",
|
|
7624
|
+
{
|
|
7625
|
+
type: "button",
|
|
7626
|
+
onClick: () => {
|
|
7627
|
+
setError("");
|
|
7628
|
+
setIsSignUp(false);
|
|
7629
|
+
setSignInMode(true);
|
|
7630
|
+
},
|
|
7631
|
+
children: "Sign in"
|
|
7632
|
+
}
|
|
7633
|
+
)
|
|
7628
7634
|
] })
|
|
7629
7635
|
] })
|
|
7630
7636
|
] })
|
|
@@ -8247,33 +8253,6 @@ var GateResendText = styled10__default.default.p`
|
|
|
8247
8253
|
font-size: inherit;
|
|
8248
8254
|
}
|
|
8249
8255
|
`;
|
|
8250
|
-
var GateEarlyAccess = styled10__default.default.a`
|
|
8251
|
-
display: inline-flex;
|
|
8252
|
-
align-items: center;
|
|
8253
|
-
gap: 0.4rem;
|
|
8254
|
-
margin-top: 0.15rem;
|
|
8255
|
-
color: var(--color-text-secondary, #848e9c);
|
|
8256
|
-
font-size: 0.8rem;
|
|
8257
|
-
font-weight: 500;
|
|
8258
|
-
letter-spacing: 0.02em;
|
|
8259
|
-
text-decoration: none;
|
|
8260
|
-
cursor: pointer;
|
|
8261
|
-
transition: color 0.15s ease;
|
|
8262
|
-
|
|
8263
|
-
svg {
|
|
8264
|
-
width: 13px;
|
|
8265
|
-
height: 13px;
|
|
8266
|
-
transition: transform 0.15s ease;
|
|
8267
|
-
}
|
|
8268
|
-
|
|
8269
|
-
&:hover {
|
|
8270
|
-
color: var(--color-accent, #E6C87E);
|
|
8271
|
-
}
|
|
8272
|
-
|
|
8273
|
-
&:hover svg {
|
|
8274
|
-
transform: translateX(3px);
|
|
8275
|
-
}
|
|
8276
|
-
`;
|
|
8277
8256
|
var GateSubmit = styled10__default.default.button`
|
|
8278
8257
|
display: flex;
|
|
8279
8258
|
align-items: center;
|
|
@@ -15484,7 +15463,11 @@ function PortfolioActivityPanel({
|
|
|
15484
15463
|
/* @__PURE__ */ jsxRuntime.jsx(CChevronWrap, { $open: ordExpanded, children: /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx("polyline", { points: "6 9 12 15 18 9" }) }) })
|
|
15485
15464
|
] }),
|
|
15486
15465
|
ordExpanded && /* @__PURE__ */ jsxRuntime.jsxs(CExpandedWrap, { children: [
|
|
15487
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
15466
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CDetailGrid3, { children: [
|
|
15467
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CDetailItem, { children: [
|
|
15468
|
+
/* @__PURE__ */ jsxRuntime.jsx(CDLabel, { children: "Order ID" }),
|
|
15469
|
+
/* @__PURE__ */ jsxRuntime.jsx(CDValue, { children: order.id > 0 ? `#${order.id}` : "\u2014" })
|
|
15470
|
+
] }),
|
|
15488
15471
|
/* @__PURE__ */ jsxRuntime.jsxs(CDetailItem, { children: [
|
|
15489
15472
|
/* @__PURE__ */ jsxRuntime.jsx(CDLabel, { children: "Type" }),
|
|
15490
15473
|
/* @__PURE__ */ jsxRuntime.jsx(CDValue, { children: prettyLabel(order.type) })
|
|
@@ -15513,7 +15496,8 @@ function PortfolioActivityPanel({
|
|
|
15513
15496
|
] })
|
|
15514
15497
|
] }, `open-${order.id}`);
|
|
15515
15498
|
}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15516
|
-
/* @__PURE__ */ jsxRuntime.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: [
|
|
15499
|
+
/* @__PURE__ */ jsxRuntime.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: [
|
|
15500
|
+
/* @__PURE__ */ jsxRuntime.jsx(GridHeaderCell, { children: "ID" }),
|
|
15517
15501
|
/* @__PURE__ */ jsxRuntime.jsx(GridHeaderCell, { children: "Asset" }),
|
|
15518
15502
|
/* @__PURE__ */ jsxRuntime.jsx(GridHeaderCell, { children: "Side" }),
|
|
15519
15503
|
/* @__PURE__ */ jsxRuntime.jsx(GridHeaderCell, { children: "Type" }),
|
|
@@ -15529,7 +15513,8 @@ function PortfolioActivityPanel({
|
|
|
15529
15513
|
const filledPercent = order.quantity > 0 ? Math.round(order.filledQuantity / order.quantity * 100) : 0;
|
|
15530
15514
|
const isCancelling = cancellingOrderId === order.id;
|
|
15531
15515
|
const sideColor = sideLabel(order.side) === "Buy" ? "#0ecb81" : "#f6465d";
|
|
15532
|
-
return /* @__PURE__ */ jsxRuntime.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: [
|
|
15516
|
+
return /* @__PURE__ */ jsxRuntime.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: [
|
|
15517
|
+
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, children: order.id > 0 ? `#${order.id}` : "\u2014" }) }),
|
|
15533
15518
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { $primary: true, $color: sideColor, $noHoverColor: true, $clickable: !!onAssetClick, onClick: onAssetClick ? () => onAssetClick(order.tokenName) : void 0, children: order.tokenName }) }),
|
|
15534
15519
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(SideBadge, { $side: sideLabel(order.side), children: sideLabel(order.side) }) }),
|
|
15535
15520
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, children: prettyLabel(order.type) }) }),
|