@loafmarkets/ui 0.1.133 → 0.1.134

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 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;