@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.mjs
CHANGED
|
@@ -8707,10 +8707,6 @@ function PropertyOverview({
|
|
|
8707
8707
|
/* @__PURE__ */ jsxs(CompAssetTooltipRow, { children: [
|
|
8708
8708
|
/* @__PURE__ */ jsx("span", { children: "Growth" }),
|
|
8709
8709
|
/* @__PURE__ */ jsx("span", { style: { color: "#4ade80" }, children: "+119%" })
|
|
8710
|
-
] }),
|
|
8711
|
-
/* @__PURE__ */ jsxs(CompAssetTooltipRow, { children: [
|
|
8712
|
-
/* @__PURE__ */ jsx("span", { children: "$/sqm" }),
|
|
8713
|
-
/* @__PURE__ */ jsx("span", { children: "$7,780" })
|
|
8714
8710
|
] })
|
|
8715
8711
|
] })
|
|
8716
8712
|
] })
|
|
@@ -8756,10 +8752,6 @@ function PropertyOverview({
|
|
|
8756
8752
|
/* @__PURE__ */ jsxs(CompAssetTooltipRow, { children: [
|
|
8757
8753
|
/* @__PURE__ */ jsx("span", { children: "Growth" }),
|
|
8758
8754
|
/* @__PURE__ */ jsx("span", { style: { color: "#4ade80" }, children: "+617%" })
|
|
8759
|
-
] }),
|
|
8760
|
-
/* @__PURE__ */ jsxs(CompAssetTooltipRow, { children: [
|
|
8761
|
-
/* @__PURE__ */ jsx("span", { children: "$/sqm" }),
|
|
8762
|
-
/* @__PURE__ */ jsx("span", { children: "$10,787" })
|
|
8763
8755
|
] })
|
|
8764
8756
|
] })
|
|
8765
8757
|
] })
|
|
@@ -13850,7 +13842,7 @@ function PortfolioActivityPanel({
|
|
|
13850
13842
|
"PNL (%) ",
|
|
13851
13843
|
posSortKey === "pnl" && (posSortAsc ? "\u2191" : "\u2193")
|
|
13852
13844
|
] }),
|
|
13853
|
-
onClosePosition && /* @__PURE__ */ jsx(PositionsHeaderCell, { children: /* @__PURE__ */ jsx(CloseAllHeaderBtn, { onClick: () => setCloseAllOpen(true), children: "
|
|
13845
|
+
onClosePosition && /* @__PURE__ */ jsx(PositionsHeaderCell, { children: /* @__PURE__ */ jsx(CloseAllHeaderBtn, { onClick: () => setCloseAllOpen(true), children: "Sell All" }) })
|
|
13854
13846
|
] }),
|
|
13855
13847
|
pageSlice(sortedPositions).map((pos) => {
|
|
13856
13848
|
const currentValue = pos.quantity * pos.marketPrice;
|
|
@@ -13887,25 +13879,25 @@ function PortfolioActivityPanel({
|
|
|
13887
13879
|
/* @__PURE__ */ jsx(CloseBtn2, { onClick: (e) => {
|
|
13888
13880
|
e.stopPropagation();
|
|
13889
13881
|
onClosePosition(pos.tokenName, "market", pos.quantity, pos.marketPrice);
|
|
13890
|
-
}, children: "Market" }),
|
|
13882
|
+
}, children: "Market Sell" }),
|
|
13891
13883
|
/* @__PURE__ */ jsx(CloseBtn2, { onClick: (e) => {
|
|
13892
13884
|
e.stopPropagation();
|
|
13893
13885
|
onClosePosition(pos.tokenName, "limit", pos.quantity, pos.marketPrice);
|
|
13894
|
-
}, children: "Limit" })
|
|
13886
|
+
}, children: "Limit Sell" })
|
|
13895
13887
|
] }) })
|
|
13896
13888
|
] }, pos.tokenName);
|
|
13897
13889
|
}),
|
|
13898
13890
|
closeAllOpen && onClosePosition && /* @__PURE__ */ jsx(CloseAllOverlay, { onClick: () => setCloseAllOpen(false), children: /* @__PURE__ */ jsxs(CloseAllModal, { onClick: (e) => e.stopPropagation(), children: [
|
|
13899
13891
|
/* @__PURE__ */ jsx(CloseAllModalX, { onClick: () => setCloseAllOpen(false), children: "\xD7" }),
|
|
13900
|
-
/* @__PURE__ */ jsx(CloseAllTitle, { children: "Confirm
|
|
13901
|
-
/* @__PURE__ */ jsx(CloseAllDesc, { children: "This will
|
|
13892
|
+
/* @__PURE__ */ jsx(CloseAllTitle, { children: "Confirm Sell All" }),
|
|
13893
|
+
/* @__PURE__ */ jsx(CloseAllDesc, { children: "This will sell all your positions and cancel their associated TP/SL orders." }),
|
|
13902
13894
|
/* @__PURE__ */ jsxs(CloseAllOption, { onClick: () => setCloseAllType("market"), children: [
|
|
13903
13895
|
/* @__PURE__ */ jsx(CloseAllRadio, { $selected: closeAllType === "market" }),
|
|
13904
|
-
/* @__PURE__ */ jsx("span", { children: "Market
|
|
13896
|
+
/* @__PURE__ */ jsx("span", { children: "Market Sell" })
|
|
13905
13897
|
] }),
|
|
13906
13898
|
/* @__PURE__ */ jsxs(CloseAllOption, { onClick: () => setCloseAllType("limit"), children: [
|
|
13907
13899
|
/* @__PURE__ */ jsx(CloseAllRadio, { $selected: closeAllType === "limit" }),
|
|
13908
|
-
/* @__PURE__ */ jsx("span", { children: "Limit
|
|
13900
|
+
/* @__PURE__ */ jsx("span", { children: "Limit Sell at Mid Price" })
|
|
13909
13901
|
] }),
|
|
13910
13902
|
/* @__PURE__ */ jsxs(CloseAllConfirmBtn, { onClick: () => {
|
|
13911
13903
|
positions.forEach((pos) => onClosePosition(pos.tokenName, closeAllType, pos.quantity, pos.marketPrice));
|
|
@@ -13913,7 +13905,7 @@ function PortfolioActivityPanel({
|
|
|
13913
13905
|
}, children: [
|
|
13914
13906
|
"Confirm ",
|
|
13915
13907
|
closeAllType === "market" ? "Market" : "Limit",
|
|
13916
|
-
"
|
|
13908
|
+
" Sell"
|
|
13917
13909
|
] })
|
|
13918
13910
|
] }) })
|
|
13919
13911
|
] })
|