@loafmarkets/ui 0.1.94 → 0.1.96

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
@@ -11787,8 +11787,8 @@ var InsufficientFunds = styled25.div`
11787
11787
  `;
11788
11788
  var ACTIVITY_PAGE_SIZE_DEFAULT = 10;
11789
11789
  var formatCurrency5 = (value, opts) => {
11790
- const min = 2;
11791
- const max = 2;
11790
+ const min = opts?.minimumFractionDigits ?? 2;
11791
+ const max = opts?.maximumFractionDigits ?? 2;
11792
11792
  return `$${value.toLocaleString("en-US", { minimumFractionDigits: min, maximumFractionDigits: max })}`;
11793
11793
  };
11794
11794
  var formatNumber2 = (value, maximumFractionDigits = 2) => value.toLocaleString("en-US", { minimumFractionDigits: 0, maximumFractionDigits });
@@ -11941,14 +11941,10 @@ function PortfolioActivityPanel({
11941
11941
  ] })
11942
11942
  ] }),
11943
11943
  /* @__PURE__ */ jsxs(HoldingsQuantity, { children: [
11944
- /* @__PURE__ */ jsxs("span", { children: [
11945
- pos.quantity.toFixed(2),
11946
- " ",
11947
- pos.tokenName
11948
- ] }),
11949
- /* @__PURE__ */ jsxs(HoldingsAvgEntry, { children: [
11944
+ /* @__PURE__ */ jsx("span", { children: formatCurrency5(currentValue) }),
11945
+ /* @__PURE__ */ jsxs("span", { style: { fontSize: "0.65rem", color: "rgba(255,255,255,0.4)" }, children: [
11950
11946
  "Avg ",
11951
- formatCurrency5(pos.averageEntryPrice)
11947
+ formatCurrency5(costBasis, { maximumFractionDigits: 0 })
11952
11948
  ] })
11953
11949
  ] }),
11954
11950
  /* @__PURE__ */ jsxs(HoldingsPnL, { children: [
@@ -12382,25 +12378,11 @@ var HoldingsQuantity = styled25.div`
12382
12378
  font-weight: 500;
12383
12379
  color: #fff;
12384
12380
  `;
12385
- var HoldingsAvgEntry = styled25.div`
12381
+ styled25.div`
12386
12382
  font-size: 0.7rem;
12387
12383
  color: var(--color-accent, #E6C87E);
12388
12384
  font-weight: 500;
12389
12385
  `;
12390
- styled25.div`
12391
- display: flex;
12392
- flex-direction: column;
12393
- align-items: center;
12394
- gap: 0.15rem;
12395
- font-size: 0.85rem;
12396
- font-weight: 600;
12397
- color: #fff;
12398
- `;
12399
- styled25.div`
12400
- font-size: 0.65rem;
12401
- color: rgba(255, 255, 255, 0.4);
12402
- font-weight: 400;
12403
- `;
12404
12386
  var HoldingsPnL = styled25.div`
12405
12387
  display: flex;
12406
12388
  flex-direction: column;