@loafmarkets/ui 0.1.104 → 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 +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11988,12 +11988,12 @@ function PortfolioActivityPanel({
|
|
|
11988
11988
|
positions.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11989
11989
|
/* @__PURE__ */ jsxRuntime.jsxs(PositionsHeader, { $hasClose: !!onClosePosition, children: [
|
|
11990
11990
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "Asset" }),
|
|
11991
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, {
|
|
11992
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, {
|
|
11993
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, {
|
|
11994
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, {
|
|
11995
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, {
|
|
11996
|
-
onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, {
|
|
11991
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "Size" }),
|
|
11992
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "Value" }),
|
|
11993
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "Entry Price" }),
|
|
11994
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "Mark Price" }),
|
|
11995
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "PNL (%)" }),
|
|
11996
|
+
onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "Close" })
|
|
11997
11997
|
] }),
|
|
11998
11998
|
pageSlice(positions).map((pos) => {
|
|
11999
11999
|
const currentValue = pos.quantity * pos.marketPrice;
|
|
@@ -12003,11 +12003,11 @@ function PortfolioActivityPanel({
|
|
|
12003
12003
|
const isPositive = pnl >= 0;
|
|
12004
12004
|
return /* @__PURE__ */ jsxRuntime.jsxs(PositionsRow, { $hasClose: !!onClosePosition, onClick: () => onPositionClick?.(pos.tokenName, pos.isIpoAllocation), children: [
|
|
12005
12005
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx(HoldingsProperty, { children: pos.tokenName }) }),
|
|
12006
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, {
|
|
12007
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, {
|
|
12008
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, {
|
|
12009
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, {
|
|
12010
|
-
/* @__PURE__ */ jsxRuntime.jsxs(PositionsCell, {
|
|
12006
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "#fff", fontSize: "0.8rem" }, children: formatNumber2(pos.quantity) }) }),
|
|
12007
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "#fff", fontSize: "0.8rem" }, children: formatCurrency5(currentValue) }) }),
|
|
12008
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "rgba(255,255,255,0.7)", fontSize: "0.8rem" }, children: formatCurrency5(pos.averageEntryPrice) }) }),
|
|
12009
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "#fff", fontSize: "0.8rem" }, children: formatCurrency5(pos.marketPrice) }) }),
|
|
12010
|
+
/* @__PURE__ */ jsxRuntime.jsxs(PositionsCell, { children: [
|
|
12011
12011
|
/* @__PURE__ */ jsxRuntime.jsxs(PnLAmount, { $positive: isPositive, children: [
|
|
12012
12012
|
isPositive ? "+" : "-",
|
|
12013
12013
|
formatCurrency5(Math.abs(pnl))
|
|
@@ -12018,7 +12018,7 @@ function PortfolioActivityPanel({
|
|
|
12018
12018
|
"%"
|
|
12019
12019
|
] })
|
|
12020
12020
|
] }),
|
|
12021
|
-
onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(PositionsCell, {
|
|
12021
|
+
onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsxs(CloseActions, { children: [
|
|
12022
12022
|
/* @__PURE__ */ jsxRuntime.jsx(CloseBtn2, { onClick: (e) => {
|
|
12023
12023
|
e.stopPropagation();
|
|
12024
12024
|
onClosePosition(pos.tokenName, "limit", pos.quantity, pos.marketPrice);
|