@loafmarkets/ui 0.1.108 → 0.1.110
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 +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11997,8 +11997,8 @@ function PortfolioActivityPanel({
|
|
|
11997
11997
|
const pnl = pos.propertyPnl ?? currentValue - costBasis;
|
|
11998
11998
|
const pnlPercent = pos.propertyPnlPercent ?? pos.percentChange ?? 0;
|
|
11999
11999
|
const isPositive = pnl >= 0;
|
|
12000
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(PositionsRow, { $hasClose: !!onClosePosition,
|
|
12001
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12000
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(PositionsRow, { $hasClose: !!onClosePosition, children: [
|
|
12001
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx(HoldingsPropertyLink, { onClick: () => onPositionClick?.(pos.tokenName, pos.isIpoAllocation), children: pos.tokenName }) }),
|
|
12002
12002
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "#fff", fontSize: "0.8rem" }, children: formatNumber2(pos.quantity) }) }),
|
|
12003
12003
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "#fff", fontSize: "0.8rem" }, children: formatCurrency5(currentValue) }) }),
|
|
12004
12004
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "rgba(255,255,255,0.7)", fontSize: "0.8rem" }, children: formatCurrency5(pos.averageEntryPrice) }) }),
|
|
@@ -12428,10 +12428,8 @@ var PositionsRow = styled25__default.default.div`
|
|
|
12428
12428
|
align-items: center;
|
|
12429
12429
|
gap: 0 0.75rem;
|
|
12430
12430
|
padding: 0.5rem 0.5rem;
|
|
12431
|
-
cursor: pointer;
|
|
12432
12431
|
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
|
|
12433
12432
|
&:last-child { border-bottom: none; }
|
|
12434
|
-
&:hover { background: rgba(255, 255, 255, 0.02); }
|
|
12435
12433
|
`;
|
|
12436
12434
|
var PositionsCell = styled25__default.default.div`
|
|
12437
12435
|
display: flex;
|
|
@@ -12439,10 +12437,12 @@ var PositionsCell = styled25__default.default.div`
|
|
|
12439
12437
|
align-items: ${(p) => p.$align === "right" ? "flex-end" : "flex-start"};
|
|
12440
12438
|
gap: 0.1rem;
|
|
12441
12439
|
`;
|
|
12442
|
-
var
|
|
12440
|
+
var HoldingsPropertyLink = styled25__default.default.span`
|
|
12443
12441
|
font-size: 0.8rem;
|
|
12444
12442
|
font-weight: 600;
|
|
12445
12443
|
color: #fff;
|
|
12444
|
+
cursor: pointer;
|
|
12445
|
+
&:hover { text-decoration: underline; color: var(--color-accent, #E6C87E); }
|
|
12446
12446
|
`;
|
|
12447
12447
|
var PnLAmount = styled25__default.default.div`
|
|
12448
12448
|
font-size: 0.85rem;
|