@loafmarkets/ui 0.1.105 → 0.1.106
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 +11 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11962,11 +11962,11 @@ function PortfolioActivityPanel({
|
|
|
11962
11962
|
positions.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11963
11963
|
/* @__PURE__ */ jsxs(PositionsHeader, { $hasClose: !!onClosePosition, children: [
|
|
11964
11964
|
/* @__PURE__ */ jsx(PositionsHeaderCell, { children: "Asset" }),
|
|
11965
|
-
/* @__PURE__ */ jsx(PositionsHeaderCell, {
|
|
11966
|
-
/* @__PURE__ */ jsx(PositionsHeaderCell, {
|
|
11967
|
-
/* @__PURE__ */ jsx(PositionsHeaderCell, {
|
|
11968
|
-
/* @__PURE__ */ jsx(PositionsHeaderCell, {
|
|
11969
|
-
/* @__PURE__ */ jsx(PositionsHeaderCell, {
|
|
11965
|
+
/* @__PURE__ */ jsx(PositionsHeaderCell, { children: "Size" }),
|
|
11966
|
+
/* @__PURE__ */ jsx(PositionsHeaderCell, { children: "Value" }),
|
|
11967
|
+
/* @__PURE__ */ jsx(PositionsHeaderCell, { children: "Entry Price" }),
|
|
11968
|
+
/* @__PURE__ */ jsx(PositionsHeaderCell, { children: "Mark Price" }),
|
|
11969
|
+
/* @__PURE__ */ jsx(PositionsHeaderCell, { children: "PNL (%)" }),
|
|
11970
11970
|
onClosePosition && /* @__PURE__ */ jsx(PositionsHeaderCell, { children: "Close" })
|
|
11971
11971
|
] }),
|
|
11972
11972
|
pageSlice(positions).map((pos) => {
|
|
@@ -11977,11 +11977,11 @@ function PortfolioActivityPanel({
|
|
|
11977
11977
|
const isPositive = pnl >= 0;
|
|
11978
11978
|
return /* @__PURE__ */ jsxs(PositionsRow, { $hasClose: !!onClosePosition, onClick: () => onPositionClick?.(pos.tokenName, pos.isIpoAllocation), children: [
|
|
11979
11979
|
/* @__PURE__ */ jsx(PositionsCell, { children: /* @__PURE__ */ jsx(HoldingsProperty, { children: pos.tokenName }) }),
|
|
11980
|
-
/* @__PURE__ */ jsx(PositionsCell, {
|
|
11981
|
-
/* @__PURE__ */ jsx(PositionsCell, {
|
|
11982
|
-
/* @__PURE__ */ jsx(PositionsCell, {
|
|
11983
|
-
/* @__PURE__ */ jsx(PositionsCell, {
|
|
11984
|
-
/* @__PURE__ */ jsxs(PositionsCell, {
|
|
11980
|
+
/* @__PURE__ */ jsx(PositionsCell, { children: /* @__PURE__ */ jsx("span", { style: { color: "#fff", fontSize: "0.8rem" }, children: formatNumber2(pos.quantity) }) }),
|
|
11981
|
+
/* @__PURE__ */ jsx(PositionsCell, { children: /* @__PURE__ */ jsx("span", { style: { color: "#fff", fontSize: "0.8rem" }, children: formatCurrency5(currentValue) }) }),
|
|
11982
|
+
/* @__PURE__ */ jsx(PositionsCell, { children: /* @__PURE__ */ jsx("span", { style: { color: "rgba(255,255,255,0.7)", fontSize: "0.8rem" }, children: formatCurrency5(pos.averageEntryPrice) }) }),
|
|
11983
|
+
/* @__PURE__ */ jsx(PositionsCell, { children: /* @__PURE__ */ jsx("span", { style: { color: "#fff", fontSize: "0.8rem" }, children: formatCurrency5(pos.marketPrice) }) }),
|
|
11984
|
+
/* @__PURE__ */ jsxs(PositionsCell, { children: [
|
|
11985
11985
|
/* @__PURE__ */ jsxs(PnLAmount, { $positive: isPositive, children: [
|
|
11986
11986
|
isPositive ? "+" : "-",
|
|
11987
11987
|
formatCurrency5(Math.abs(pnl))
|
|
@@ -11992,7 +11992,7 @@ function PortfolioActivityPanel({
|
|
|
11992
11992
|
"%"
|
|
11993
11993
|
] })
|
|
11994
11994
|
] }),
|
|
11995
|
-
onClosePosition && /* @__PURE__ */ jsx(PositionsCell, {
|
|
11995
|
+
onClosePosition && /* @__PURE__ */ jsx(PositionsCell, { children: /* @__PURE__ */ jsxs(CloseActions, { children: [
|
|
11996
11996
|
/* @__PURE__ */ jsx(CloseBtn2, { onClick: (e) => {
|
|
11997
11997
|
e.stopPropagation();
|
|
11998
11998
|
onClosePosition(pos.tokenName, "limit", pos.quantity, pos.marketPrice);
|