@loafmarkets/ui 0.1.116 → 0.1.117
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 +13 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11901,8 +11901,8 @@ var InsufficientFunds = styled25__default.default.div`
|
|
|
11901
11901
|
`;
|
|
11902
11902
|
var ACTIVITY_PAGE_SIZE_DEFAULT = 10;
|
|
11903
11903
|
var formatCurrency5 = (value, opts) => {
|
|
11904
|
-
const min = 2;
|
|
11905
|
-
const max = 2;
|
|
11904
|
+
const min = opts?.minimumFractionDigits ?? 2;
|
|
11905
|
+
const max = opts?.maximumFractionDigits ?? 2;
|
|
11906
11906
|
return `$${value.toLocaleString("en-US", { minimumFractionDigits: min, maximumFractionDigits: max })}`;
|
|
11907
11907
|
};
|
|
11908
11908
|
var formatNumber2 = (value, maximumFractionDigits = 2) => value.toLocaleString("en-US", { minimumFractionDigits: 0, maximumFractionDigits });
|
|
@@ -12079,7 +12079,7 @@ function PortfolioActivityPanel({
|
|
|
12079
12079
|
positions.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12080
12080
|
/* @__PURE__ */ jsxRuntime.jsxs(PositionsHeader, { $hasClose: !!onClosePosition, children: [
|
|
12081
12081
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "Asset" }),
|
|
12082
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "
|
|
12082
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "Units" }),
|
|
12083
12083
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "Value" }),
|
|
12084
12084
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "Avg Price" }),
|
|
12085
12085
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: "Current Price" }),
|
|
@@ -12094,8 +12094,16 @@ function PortfolioActivityPanel({
|
|
|
12094
12094
|
const isPositive = pnl >= 0;
|
|
12095
12095
|
return /* @__PURE__ */ jsxRuntime.jsxs(PositionsRow, { $hasClose: !!onClosePosition, children: [
|
|
12096
12096
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx(HoldingsPropertyLink, { onClick: () => onPositionClick?.(pos.tokenName, pos.isIpoAllocation), children: pos.tokenName }) }),
|
|
12097
|
-
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.
|
|
12098
|
-
|
|
12097
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { color: "#fff", fontSize: "0.8rem" }, children: [
|
|
12098
|
+
formatNumber2(pos.quantity),
|
|
12099
|
+
" ",
|
|
12100
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "rgba(255,255,255,0.4)", fontSize: "0.7rem" }, children: pos.tokenName.toUpperCase() })
|
|
12101
|
+
] }) }),
|
|
12102
|
+
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { color: "#fff", fontSize: "0.8rem" }, children: [
|
|
12103
|
+
formatCurrency5(currentValue, { maximumFractionDigits: 0 }),
|
|
12104
|
+
" ",
|
|
12105
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "rgba(255,255,255,0.4)", fontSize: "0.7rem" }, children: "USD" })
|
|
12106
|
+
] }) }),
|
|
12099
12107
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "rgba(255,255,255,0.7)", fontSize: "0.8rem" }, children: formatCurrency5(pos.averageEntryPrice) }) }),
|
|
12100
12108
|
/* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "#fff", fontSize: "0.8rem" }, children: formatCurrency5(pos.marketPrice) }) }),
|
|
12101
12109
|
/* @__PURE__ */ jsxRuntime.jsxs(PositionsCell, { children: [
|