@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.mjs CHANGED
@@ -11979,7 +11979,16 @@ function PortfolioActivityPanel({
11979
11979
  "%"
11980
11980
  ] })
11981
11981
  ] }),
11982
- onClosePosition && /* @__PURE__ */ jsx(PositionsCell, {})
11982
+ onClosePosition && /* @__PURE__ */ jsx(PositionsCell, { children: /* @__PURE__ */ jsxs(CloseActions, { children: [
11983
+ /* @__PURE__ */ jsx(CloseBtn2, { onClick: (e) => {
11984
+ e.stopPropagation();
11985
+ onClosePosition(pos.tokenName, "market", pos.quantity, pos.marketPrice);
11986
+ }, children: "Market" }),
11987
+ /* @__PURE__ */ jsx(CloseBtn2, { onClick: (e) => {
11988
+ e.stopPropagation();
11989
+ onClosePosition(pos.tokenName, "limit", pos.quantity, pos.marketPrice);
11990
+ }, children: "Limit" })
11991
+ ] }) })
11983
11992
  ] }, pos.tokenName);
11984
11993
  }),
11985
11994
  closeAllOpen && onClosePosition && /* @__PURE__ */ jsx(CloseAllOverlay, { onClick: () => setCloseAllOpen(false), children: /* @__PURE__ */ jsxs(CloseAllModal, { onClick: (e) => e.stopPropagation(), children: [
@@ -12608,12 +12617,12 @@ var CancelConfirmProceed = styled19.button`
12608
12617
  cursor: not-allowed;
12609
12618
  }
12610
12619
  `;
12611
- styled19.div`
12620
+ var CloseActions = styled19.div`
12612
12621
  display: flex;
12613
12622
  gap: 0.35rem;
12614
12623
  align-items: center;
12615
12624
  `;
12616
- styled19.button`
12625
+ var CloseBtn2 = styled19.button`
12617
12626
  background: transparent;
12618
12627
  border: 1px solid rgba(230, 200, 126, 0.25);
12619
12628
  border-radius: 4px;
@@ -12634,20 +12643,20 @@ styled19.button`
12634
12643
  }
12635
12644
  `;
12636
12645
  var CloseAllHeaderBtn = styled19.button`
12637
- background: rgba(246, 70, 93, 0.1);
12638
- border: 1px solid rgba(246, 70, 93, 0.3);
12646
+ background: rgba(230, 200, 126, 0.1);
12647
+ border: 1px solid rgba(230, 200, 126, 0.3);
12639
12648
  border-radius: 4px;
12640
12649
  padding: 0.2rem 0.6rem;
12641
12650
  font-size: 0.62rem;
12642
12651
  font-weight: 600;
12643
- color: #f6465d;
12652
+ color: #e6c87e;
12644
12653
  cursor: pointer;
12645
12654
  white-space: nowrap;
12646
12655
  transition: all 0.15s ease;
12647
12656
 
12648
12657
  &:hover {
12649
- background: rgba(246, 70, 93, 0.2);
12650
- border-color: rgba(246, 70, 93, 0.5);
12658
+ background: rgba(230, 200, 126, 0.2);
12659
+ border-color: rgba(230, 200, 126, 0.5);
12651
12660
  }
12652
12661
  `;
12653
12662
  var CloseAllOverlay = styled19.div`