@loafmarkets/ui 0.1.247 → 0.1.249
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 +8 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8733,10 +8733,6 @@ function PropertyOverview({
|
|
|
8733
8733
|
/* @__PURE__ */ jsxRuntime.jsxs(CompAssetTooltipRow, { children: [
|
|
8734
8734
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Growth" }),
|
|
8735
8735
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "#4ade80" }, children: "+119%" })
|
|
8736
|
-
] }),
|
|
8737
|
-
/* @__PURE__ */ jsxRuntime.jsxs(CompAssetTooltipRow, { children: [
|
|
8738
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "$/sqm" }),
|
|
8739
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "$7,780" })
|
|
8740
8736
|
] })
|
|
8741
8737
|
] })
|
|
8742
8738
|
] })
|
|
@@ -8782,10 +8778,6 @@ function PropertyOverview({
|
|
|
8782
8778
|
/* @__PURE__ */ jsxRuntime.jsxs(CompAssetTooltipRow, { children: [
|
|
8783
8779
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Growth" }),
|
|
8784
8780
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "#4ade80" }, children: "+617%" })
|
|
8785
|
-
] }),
|
|
8786
|
-
/* @__PURE__ */ jsxRuntime.jsxs(CompAssetTooltipRow, { children: [
|
|
8787
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "$/sqm" }),
|
|
8788
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "$10,787" })
|
|
8789
8781
|
] })
|
|
8790
8782
|
] })
|
|
8791
8783
|
] })
|
|
@@ -13876,7 +13868,7 @@ function PortfolioActivityPanel({
|
|
|
13876
13868
|
"PNL (%) ",
|
|
13877
13869
|
posSortKey === "pnl" && (posSortAsc ? "\u2191" : "\u2193")
|
|
13878
13870
|
] }),
|
|
13879
|
-
onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CloseAllHeaderBtn, { onClick: () => setCloseAllOpen(true), children: "
|
|
13871
|
+
onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(PositionsHeaderCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CloseAllHeaderBtn, { onClick: () => setCloseAllOpen(true), children: "Sell All" }) })
|
|
13880
13872
|
] }),
|
|
13881
13873
|
pageSlice(sortedPositions).map((pos) => {
|
|
13882
13874
|
const currentValue = pos.quantity * pos.marketPrice;
|
|
@@ -13913,25 +13905,25 @@ function PortfolioActivityPanel({
|
|
|
13913
13905
|
/* @__PURE__ */ jsxRuntime.jsx(CloseBtn2, { onClick: (e) => {
|
|
13914
13906
|
e.stopPropagation();
|
|
13915
13907
|
onClosePosition(pos.tokenName, "market", pos.quantity, pos.marketPrice);
|
|
13916
|
-
}, children: "Market" }),
|
|
13908
|
+
}, children: "Market Sell" }),
|
|
13917
13909
|
/* @__PURE__ */ jsxRuntime.jsx(CloseBtn2, { onClick: (e) => {
|
|
13918
13910
|
e.stopPropagation();
|
|
13919
13911
|
onClosePosition(pos.tokenName, "limit", pos.quantity, pos.marketPrice);
|
|
13920
|
-
}, children: "Limit" })
|
|
13912
|
+
}, children: "Limit Sell" })
|
|
13921
13913
|
] }) })
|
|
13922
13914
|
] }, pos.tokenName);
|
|
13923
13915
|
}),
|
|
13924
13916
|
closeAllOpen && onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(CloseAllOverlay, { onClick: () => setCloseAllOpen(false), children: /* @__PURE__ */ jsxRuntime.jsxs(CloseAllModal, { onClick: (e) => e.stopPropagation(), children: [
|
|
13925
13917
|
/* @__PURE__ */ jsxRuntime.jsx(CloseAllModalX, { onClick: () => setCloseAllOpen(false), children: "\xD7" }),
|
|
13926
|
-
/* @__PURE__ */ jsxRuntime.jsx(CloseAllTitle, { children: "Confirm
|
|
13927
|
-
/* @__PURE__ */ jsxRuntime.jsx(CloseAllDesc, { children: "This will
|
|
13918
|
+
/* @__PURE__ */ jsxRuntime.jsx(CloseAllTitle, { children: "Confirm Sell All" }),
|
|
13919
|
+
/* @__PURE__ */ jsxRuntime.jsx(CloseAllDesc, { children: "This will sell all your positions and cancel their associated TP/SL orders." }),
|
|
13928
13920
|
/* @__PURE__ */ jsxRuntime.jsxs(CloseAllOption, { onClick: () => setCloseAllType("market"), children: [
|
|
13929
13921
|
/* @__PURE__ */ jsxRuntime.jsx(CloseAllRadio, { $selected: closeAllType === "market" }),
|
|
13930
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Market
|
|
13922
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Market Sell" })
|
|
13931
13923
|
] }),
|
|
13932
13924
|
/* @__PURE__ */ jsxRuntime.jsxs(CloseAllOption, { onClick: () => setCloseAllType("limit"), children: [
|
|
13933
13925
|
/* @__PURE__ */ jsxRuntime.jsx(CloseAllRadio, { $selected: closeAllType === "limit" }),
|
|
13934
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Limit
|
|
13926
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Limit Sell at Mid Price" })
|
|
13935
13927
|
] }),
|
|
13936
13928
|
/* @__PURE__ */ jsxRuntime.jsxs(CloseAllConfirmBtn, { onClick: () => {
|
|
13937
13929
|
positions.forEach((pos) => onClosePosition(pos.tokenName, closeAllType, pos.quantity, pos.marketPrice));
|
|
@@ -13939,7 +13931,7 @@ function PortfolioActivityPanel({
|
|
|
13939
13931
|
}, children: [
|
|
13940
13932
|
"Confirm ",
|
|
13941
13933
|
closeAllType === "market" ? "Market" : "Limit",
|
|
13942
|
-
"
|
|
13934
|
+
" Sell"
|
|
13943
13935
|
] })
|
|
13944
13936
|
] }) })
|
|
13945
13937
|
] })
|