@loafmarkets/ui 0.1.90 → 0.1.92

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
@@ -9674,7 +9674,7 @@ function AssetSelectorBar({
9674
9674
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
9675
9675
  /* @__PURE__ */ jsxs("div", { children: [
9676
9676
  /* @__PURE__ */ jsx(MetricLabel2, { children: m.label }),
9677
- /* @__PURE__ */ jsx(MetricValue, { $accent: !!m.accent, children: m.value })
9677
+ /* @__PURE__ */ jsx(MetricValue, { $accent: !!m.accent, $secondary: !!m.secondary, children: m.value })
9678
9678
  ] }),
9679
9679
  m.change != null && /* @__PURE__ */ jsxs(MetricChange, { $positive: m.change >= 0, children: [
9680
9680
  m.change >= 0 ? "\u2191" : "\u2193",
@@ -9810,16 +9810,16 @@ var MetricLabel2 = styled25.span`
9810
9810
  }
9811
9811
  `;
9812
9812
  var MetricValue = styled25.span`
9813
- font-size: 1.25rem;
9814
- font-weight: 700;
9815
- color: ${(p) => p.$accent ? "#D4AF37" : "#fff"};
9813
+ font-size: ${(p) => p.$secondary ? "0.95rem" : "1.25rem"};
9814
+ font-weight: ${(p) => p.$secondary ? "600" : "700"};
9815
+ color: ${(p) => p.$accent ? "#D4AF37" : p.$secondary ? "rgba(255,255,255,0.7)" : "#fff"};
9816
9816
 
9817
9817
  @media (max-width: 768px) {
9818
- font-size: 1.05rem;
9818
+ font-size: ${(p) => p.$secondary ? "0.85rem" : "1.05rem"};
9819
9819
  }
9820
9820
 
9821
9821
  @media (max-width: 480px) {
9822
- font-size: 0.95rem;
9822
+ font-size: ${(p) => p.$secondary ? "0.8rem" : "0.95rem"};
9823
9823
  }
9824
9824
  `;
9825
9825
  var MetricChange = styled25.span`
@@ -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 });
@@ -11940,15 +11940,16 @@ function PortfolioActivityPanel({
11940
11940
  " of portfolio"
11941
11941
  ] })
11942
11942
  ] }),
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: [
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: [
11950
11951
  "Avg ",
11951
- formatCurrency5(pos.averageEntryPrice)
11952
+ formatCurrency5(costBasis, { maximumFractionDigits: 0 })
11952
11953
  ] })
11953
11954
  ] }),
11954
11955
  /* @__PURE__ */ jsxs(HoldingsPnL, { children: [
@@ -12348,7 +12349,7 @@ var PaginationLabel = styled25.span`
12348
12349
  `;
12349
12350
  var HoldingsItem = styled25.div`
12350
12351
  display: grid;
12351
- grid-template-columns: 1fr 1fr 1fr;
12352
+ grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
12352
12353
  align-items: center;
12353
12354
  padding: 0.5rem 0;
12354
12355
  min-height: 50px;
@@ -12382,10 +12383,19 @@ var HoldingsQuantity = styled25.div`
12382
12383
  font-weight: 500;
12383
12384
  color: #fff;
12384
12385
  `;
12385
- var HoldingsAvgEntry = styled25.div`
12386
- font-size: 0.7rem;
12387
- color: var(--color-accent, #E6C87E);
12388
- font-weight: 500;
12386
+ var HoldingsValue = styled25.div`
12387
+ display: flex;
12388
+ flex-direction: column;
12389
+ align-items: center;
12390
+ gap: 0.15rem;
12391
+ font-size: 0.85rem;
12392
+ font-weight: 600;
12393
+ color: #fff;
12394
+ `;
12395
+ var HoldingsAvgCost = styled25.div`
12396
+ font-size: 0.65rem;
12397
+ color: rgba(255, 255, 255, 0.4);
12398
+ font-weight: 400;
12389
12399
  `;
12390
12400
  var HoldingsPnL = styled25.div`
12391
12401
  display: flex;