@loafmarkets/ui 0.1.283 → 0.1.284
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 +18 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13895,15 +13895,17 @@ function PortfolioActivityPanel({
|
|
|
13895
13895
|
] }),
|
|
13896
13896
|
/* @__PURE__ */ jsxRuntime.jsxs(CPnlCell, { children: [
|
|
13897
13897
|
/* @__PURE__ */ jsxRuntime.jsx(CCellLabel, { children: "PNL (%)" }),
|
|
13898
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13899
|
-
|
|
13900
|
-
|
|
13901
|
-
|
|
13902
|
-
|
|
13903
|
-
|
|
13904
|
-
|
|
13905
|
-
|
|
13906
|
-
|
|
13898
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CPnlLine, { children: [
|
|
13899
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CPnlValue, { $positive: isPositive, children: [
|
|
13900
|
+
isPositive ? "+" : "-",
|
|
13901
|
+
formatCurrency4(Math.abs(pnl))
|
|
13902
|
+
] }),
|
|
13903
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CPnlPct, { $positive: isPositive, children: [
|
|
13904
|
+
"(",
|
|
13905
|
+
isPositive ? "+" : "",
|
|
13906
|
+
pnlPercent.toFixed(1),
|
|
13907
|
+
"%)"
|
|
13908
|
+
] })
|
|
13907
13909
|
] })
|
|
13908
13910
|
] }),
|
|
13909
13911
|
/* @__PURE__ */ jsxRuntime.jsx(CChevronWrap, { $open: posExpanded, 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" }) }) })
|
|
@@ -14953,16 +14955,20 @@ var CUnitsCell = styled9__default.default.div`
|
|
|
14953
14955
|
font-variant-numeric: tabular-nums;
|
|
14954
14956
|
`;
|
|
14955
14957
|
var CPnlCell = styled9__default.default.div``;
|
|
14956
|
-
var
|
|
14958
|
+
var CPnlLine = styled9__default.default.div`
|
|
14959
|
+
display: flex;
|
|
14960
|
+
align-items: baseline;
|
|
14961
|
+
gap: 4px;
|
|
14962
|
+
`;
|
|
14963
|
+
var CPnlValue = styled9__default.default.span`
|
|
14957
14964
|
font-size: 0.78rem;
|
|
14958
14965
|
font-weight: 600;
|
|
14959
14966
|
color: ${(p) => p.$positive ? "#0ecb81" : "#f6465d"};
|
|
14960
14967
|
font-variant-numeric: tabular-nums;
|
|
14961
14968
|
`;
|
|
14962
|
-
var CPnlPct = styled9__default.default.
|
|
14969
|
+
var CPnlPct = styled9__default.default.span`
|
|
14963
14970
|
font-size: 0.62rem;
|
|
14964
14971
|
color: ${(p) => p.$positive ? "rgba(14, 203, 129, 0.65)" : "rgba(246, 70, 93, 0.65)"};
|
|
14965
|
-
margin-top: 1px;
|
|
14966
14972
|
`;
|
|
14967
14973
|
var CChevronWrap = styled9__default.default.span`
|
|
14968
14974
|
display: flex;
|