@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.js
CHANGED
|
@@ -15484,7 +15484,11 @@ function PortfolioActivityPanel({
|
|
|
15484
15484
|
/* @__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
15485
|
] }),
|
|
15486
15486
|
ordExpanded && /* @__PURE__ */ jsxRuntime.jsxs(CExpandedWrap, { children: [
|
|
15487
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
15487
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CDetailGrid3, { children: [
|
|
15488
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CDetailItem, { children: [
|
|
15489
|
+
/* @__PURE__ */ jsxRuntime.jsx(CDLabel, { children: "Order ID" }),
|
|
15490
|
+
/* @__PURE__ */ jsxRuntime.jsx(CDValue, { children: order.id > 0 ? `#${order.id}` : "\u2014" })
|
|
15491
|
+
] }),
|
|
15488
15492
|
/* @__PURE__ */ jsxRuntime.jsxs(CDetailItem, { children: [
|
|
15489
15493
|
/* @__PURE__ */ jsxRuntime.jsx(CDLabel, { children: "Type" }),
|
|
15490
15494
|
/* @__PURE__ */ jsxRuntime.jsx(CDValue, { children: prettyLabel(order.type) })
|
|
@@ -15513,7 +15517,8 @@ function PortfolioActivityPanel({
|
|
|
15513
15517
|
] })
|
|
15514
15518
|
] }, `open-${order.id}`);
|
|
15515
15519
|
}) : /* @__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: [
|
|
15520
|
+
/* @__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: [
|
|
15521
|
+
/* @__PURE__ */ jsxRuntime.jsx(GridHeaderCell, { children: "ID" }),
|
|
15517
15522
|
/* @__PURE__ */ jsxRuntime.jsx(GridHeaderCell, { children: "Asset" }),
|
|
15518
15523
|
/* @__PURE__ */ jsxRuntime.jsx(GridHeaderCell, { children: "Side" }),
|
|
15519
15524
|
/* @__PURE__ */ jsxRuntime.jsx(GridHeaderCell, { children: "Type" }),
|
|
@@ -15529,7 +15534,8 @@ function PortfolioActivityPanel({
|
|
|
15529
15534
|
const filledPercent = order.quantity > 0 ? Math.round(order.filledQuantity / order.quantity * 100) : 0;
|
|
15530
15535
|
const isCancelling = cancellingOrderId === order.id;
|
|
15531
15536
|
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: [
|
|
15537
|
+
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: [
|
|
15538
|
+
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, children: order.id > 0 ? `#${order.id}` : "\u2014" }) }),
|
|
15533
15539
|
/* @__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
15540
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(SideBadge, { $side: sideLabel(order.side), children: sideLabel(order.side) }) }),
|
|
15535
15541
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, children: prettyLabel(order.type) }) }),
|