@loafmarkets/ui 0.1.92 → 0.1.94

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 = opts?.minimumFractionDigits ?? 2;
11791
- const max = opts?.maximumFractionDigits ?? 2;
11790
+ const min = 2;
11791
+ const max = 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 });
@@ -11940,16 +11940,15 @@ function PortfolioActivityPanel({
11940
11940
  " of portfolio"
11941
11941
  ] })
11942
11942
  ] }),
11943
- /* @__PURE__ */ jsx(HoldingsQuantity, { children: /* @__PURE__ */ jsxs("span", { children: [
11944
- pos.quantity.toFixed(2),
11945
- " ",
11946
- pos.tokenName
11947
- ] }) }),
11948
- /* @__PURE__ */ jsxs(HoldingsValue, { children: [
11949
- /* @__PURE__ */ jsx("span", { children: formatCurrency5(currentValue) }),
11950
- /* @__PURE__ */ jsxs(HoldingsAvgCost, { children: [
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: [
11951
11950
  "Avg ",
11952
- formatCurrency5(costBasis, { maximumFractionDigits: 0 })
11951
+ formatCurrency5(pos.averageEntryPrice)
11953
11952
  ] })
11954
11953
  ] }),
11955
11954
  /* @__PURE__ */ jsxs(HoldingsPnL, { children: [
@@ -12349,7 +12348,7 @@ var PaginationLabel = styled25.span`
12349
12348
  `;
12350
12349
  var HoldingsItem = styled25.div`
12351
12350
  display: grid;
12352
- grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
12351
+ grid-template-columns: 1fr 1fr 1fr;
12353
12352
  align-items: center;
12354
12353
  padding: 0.5rem 0;
12355
12354
  min-height: 50px;
@@ -12383,7 +12382,12 @@ var HoldingsQuantity = styled25.div`
12383
12382
  font-weight: 500;
12384
12383
  color: #fff;
12385
12384
  `;
12386
- var HoldingsValue = styled25.div`
12385
+ var HoldingsAvgEntry = styled25.div`
12386
+ font-size: 0.7rem;
12387
+ color: var(--color-accent, #E6C87E);
12388
+ font-weight: 500;
12389
+ `;
12390
+ styled25.div`
12387
12391
  display: flex;
12388
12392
  flex-direction: column;
12389
12393
  align-items: center;
@@ -12392,7 +12396,7 @@ var HoldingsValue = styled25.div`
12392
12396
  font-weight: 600;
12393
12397
  color: #fff;
12394
12398
  `;
12395
- var HoldingsAvgCost = styled25.div`
12399
+ styled25.div`
12396
12400
  font-size: 0.65rem;
12397
12401
  color: rgba(255, 255, 255, 0.4);
12398
12402
  font-weight: 400;