@loafmarkets/ui 0.1.133 → 0.1.135
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 +17 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12005,7 +12005,16 @@ function PortfolioActivityPanel({
|
|
|
12005
12005
|
"%"
|
|
12006
12006
|
] })
|
|
12007
12007
|
] }),
|
|
12008
|
-
onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(PositionsCell, {
|
|
12008
|
+
onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(PositionsCell, { children: /* @__PURE__ */ jsxRuntime.jsxs(CloseActions, { children: [
|
|
12009
|
+
/* @__PURE__ */ jsxRuntime.jsx(CloseBtn2, { onClick: (e) => {
|
|
12010
|
+
e.stopPropagation();
|
|
12011
|
+
onClosePosition(pos.tokenName, "market", pos.quantity, pos.marketPrice);
|
|
12012
|
+
}, children: "Market" }),
|
|
12013
|
+
/* @__PURE__ */ jsxRuntime.jsx(CloseBtn2, { onClick: (e) => {
|
|
12014
|
+
e.stopPropagation();
|
|
12015
|
+
onClosePosition(pos.tokenName, "limit", pos.quantity, pos.marketPrice);
|
|
12016
|
+
}, children: "Limit" })
|
|
12017
|
+
] }) })
|
|
12009
12018
|
] }, pos.tokenName);
|
|
12010
12019
|
}),
|
|
12011
12020
|
closeAllOpen && onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(CloseAllOverlay, { onClick: () => setCloseAllOpen(false), children: /* @__PURE__ */ jsxRuntime.jsxs(CloseAllModal, { onClick: (e) => e.stopPropagation(), children: [
|
|
@@ -12634,12 +12643,12 @@ var CancelConfirmProceed = styled19__default.default.button`
|
|
|
12634
12643
|
cursor: not-allowed;
|
|
12635
12644
|
}
|
|
12636
12645
|
`;
|
|
12637
|
-
styled19__default.default.div`
|
|
12646
|
+
var CloseActions = styled19__default.default.div`
|
|
12638
12647
|
display: flex;
|
|
12639
12648
|
gap: 0.35rem;
|
|
12640
12649
|
align-items: center;
|
|
12641
12650
|
`;
|
|
12642
|
-
styled19__default.default.button`
|
|
12651
|
+
var CloseBtn2 = styled19__default.default.button`
|
|
12643
12652
|
background: transparent;
|
|
12644
12653
|
border: 1px solid rgba(230, 200, 126, 0.25);
|
|
12645
12654
|
border-radius: 4px;
|
|
@@ -12660,20 +12669,20 @@ styled19__default.default.button`
|
|
|
12660
12669
|
}
|
|
12661
12670
|
`;
|
|
12662
12671
|
var CloseAllHeaderBtn = styled19__default.default.button`
|
|
12663
|
-
background: rgba(
|
|
12664
|
-
border: 1px solid rgba(
|
|
12672
|
+
background: rgba(230, 200, 126, 0.1);
|
|
12673
|
+
border: 1px solid rgba(230, 200, 126, 0.3);
|
|
12665
12674
|
border-radius: 4px;
|
|
12666
12675
|
padding: 0.2rem 0.6rem;
|
|
12667
12676
|
font-size: 0.62rem;
|
|
12668
12677
|
font-weight: 600;
|
|
12669
|
-
color: #
|
|
12678
|
+
color: #e6c87e;
|
|
12670
12679
|
cursor: pointer;
|
|
12671
12680
|
white-space: nowrap;
|
|
12672
12681
|
transition: all 0.15s ease;
|
|
12673
12682
|
|
|
12674
12683
|
&:hover {
|
|
12675
|
-
background: rgba(
|
|
12676
|
-
border-color: rgba(
|
|
12684
|
+
background: rgba(230, 200, 126, 0.2);
|
|
12685
|
+
border-color: rgba(230, 200, 126, 0.5);
|
|
12677
12686
|
}
|
|
12678
12687
|
`;
|
|
12679
12688
|
var CloseAllOverlay = styled19__default.default.div`
|