@loafmarkets/ui 0.1.406 → 0.1.408
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 +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15459,7 +15459,11 @@ function PortfolioActivityPanel({
|
|
|
15459
15459
|
/* @__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
15460
|
] }),
|
|
15461
15461
|
ordExpanded && /* @__PURE__ */ jsxs(CExpandedWrap, { children: [
|
|
15462
|
-
/* @__PURE__ */ jsxs(
|
|
15462
|
+
/* @__PURE__ */ jsxs(CDetailGrid3, { children: [
|
|
15463
|
+
/* @__PURE__ */ jsxs(CDetailItem, { children: [
|
|
15464
|
+
/* @__PURE__ */ jsx(CDLabel, { children: "Order ID" }),
|
|
15465
|
+
/* @__PURE__ */ jsx(CDValue, { children: order.id > 0 ? `#${order.id}` : "\u2014" })
|
|
15466
|
+
] }),
|
|
15463
15467
|
/* @__PURE__ */ jsxs(CDetailItem, { children: [
|
|
15464
15468
|
/* @__PURE__ */ jsx(CDLabel, { children: "Type" }),
|
|
15465
15469
|
/* @__PURE__ */ jsx(CDValue, { children: prettyLabel(order.type) })
|
|
@@ -15488,7 +15492,8 @@ function PortfolioActivityPanel({
|
|
|
15488
15492
|
] })
|
|
15489
15493
|
] }, `open-${order.id}`);
|
|
15490
15494
|
}) : /* @__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: [
|
|
15495
|
+
/* @__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: [
|
|
15496
|
+
/* @__PURE__ */ jsx(GridHeaderCell, { children: "ID" }),
|
|
15492
15497
|
/* @__PURE__ */ jsx(GridHeaderCell, { children: "Asset" }),
|
|
15493
15498
|
/* @__PURE__ */ jsx(GridHeaderCell, { children: "Side" }),
|
|
15494
15499
|
/* @__PURE__ */ jsx(GridHeaderCell, { children: "Type" }),
|
|
@@ -15504,7 +15509,8 @@ function PortfolioActivityPanel({
|
|
|
15504
15509
|
const filledPercent = order.quantity > 0 ? Math.round(order.filledQuantity / order.quantity * 100) : 0;
|
|
15505
15510
|
const isCancelling = cancellingOrderId === order.id;
|
|
15506
15511
|
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: [
|
|
15512
|
+
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: [
|
|
15513
|
+
/* @__PURE__ */ jsx(GridCell, { children: /* @__PURE__ */ jsx(CellText, { $muted: true, children: order.id > 0 ? `#${order.id}` : "\u2014" }) }),
|
|
15508
15514
|
/* @__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
15515
|
/* @__PURE__ */ jsx(GridCell, { children: /* @__PURE__ */ jsx(SideBadge, { $side: sideLabel(order.side), children: sideLabel(order.side) }) }),
|
|
15510
15516
|
/* @__PURE__ */ jsx(GridCell, { children: /* @__PURE__ */ jsx(CellText, { $muted: true, children: prettyLabel(order.type) }) }),
|