@loafmarkets/ui 0.1.142 → 0.1.144

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
@@ -8133,8 +8133,7 @@ var Track = styled19__default.default.div`
8133
8133
  `;
8134
8134
  var Slide = styled19__default.default.div`
8135
8135
  min-width: 100%; position: relative; cursor: pointer;
8136
- img { width: 100%; height: 500px; object-fit: cover; border-radius: 8px; }
8137
- @media (max-width: 768px) { img { height: 280px; } }
8136
+ img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
8138
8137
  `;
8139
8138
  var SlideCaption = styled19__default.default.div`
8140
8139
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem;
@@ -8362,6 +8361,9 @@ function PropertyOverview({
8362
8361
  const weeklyRent = overviewData?.weeklyRent ?? 0;
8363
8362
  const annualRent = weeklyRent * 52;
8364
8363
  const dividendYield = resolvedValuation && annualRent > 0 ? (annualRent / resolvedValuation * 100).toFixed(2) : null;
8364
+ const monthlyCoupon = annualRent / 12;
8365
+ const tokenMarketCap = tokenPriceValue && resolvedTokensIssued ? tokenPriceValue * resolvedTokensIssued : null;
8366
+ const currentDividendYield = tokenMarketCap && monthlyCoupon > 0 ? (monthlyCoupon * 12 / tokenMarketCap * 100).toFixed(2) : null;
8365
8367
  const loadingSkeleton = /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { width: 90, height: 18 });
8366
8368
  const resolvedPropertyType = overviewData?.propertyType ?? propertyTypeLabel ?? null;
8367
8369
  const galleryImages = images ?? [];
@@ -8382,7 +8384,7 @@ function PropertyOverview({
8382
8384
  ];
8383
8385
  const propertyStats = [
8384
8386
  { label: "Offering Valuation", value: isLoading && resolvedValuation == null ? loadingSkeleton : resolvedValuation ? resolvedValuation >= 1e6 ? `$${(resolvedValuation / 1e6).toFixed(2)}M` : `$${resolvedValuation.toLocaleString()}` : "\u2014" },
8385
- { label: "Weekly Rent", value: isLoading && !overviewData ? loadingSkeleton : weeklyRent > 0 ? `$${weeklyRent.toLocaleString()}/wk` : "\u2014", badge: weeklyRent > 0 ? "Rented" : void 0 },
8387
+ { label: "Current Dividend Yield", value: isLoading && currentDividendYield == null ? loadingSkeleton : currentDividendYield ? `${currentDividendYield}%` : "\u2014" },
8386
8388
  { label: "Annual Rent", value: isLoading && !overviewData ? loadingSkeleton : annualRent > 0 ? `$${annualRent.toLocaleString()}/yr` : "\u2014" },
8387
8389
  { label: "Year Built", value: isLoading && !overviewData ? loadingSkeleton : overviewData?.yearBuilt ? String(overviewData.yearBuilt) : "\u2014" }
8388
8390
  ];
@@ -8422,13 +8424,7 @@ function PropertyOverview({
8422
8424
  /* @__PURE__ */ jsxRuntime.jsxs(StatsColumn, { children: [
8423
8425
  /* @__PURE__ */ jsxRuntime.jsx(StatsColumnHeader, { children: "Property Fundamentals" }),
8424
8426
  propertyStats.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(StatRow, { children: [
8425
- /* @__PURE__ */ jsxRuntime.jsxs(StatLabel, { children: [
8426
- item.label,
8427
- item.badge && /* @__PURE__ */ jsxRuntime.jsxs(StatBadge, { children: [
8428
- /* @__PURE__ */ jsxRuntime.jsx("span", { style: { width: 5, height: 5, borderRadius: "50%", backgroundColor: "#4CAF50", display: "inline-block" } }),
8429
- item.badge
8430
- ] })
8431
- ] }),
8427
+ /* @__PURE__ */ jsxRuntime.jsx(StatLabel, { children: item.label }),
8432
8428
  /* @__PURE__ */ jsxRuntime.jsx(StatValue, { children: item.value })
8433
8429
  ] }, item.label))
8434
8430
  ] })
@@ -8670,7 +8666,7 @@ var StatLabel = styled19__default.default.span`
8670
8666
  align-items: center;
8671
8667
  gap: 0.5rem;
8672
8668
  `;
8673
- var StatBadge = styled19__default.default.span`
8669
+ styled19__default.default.span`
8674
8670
  font-size: 0.6rem;
8675
8671
  color: #4CAF50;
8676
8672
  display: inline-flex;