@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 +7 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8107,8 +8107,7 @@ var Track = styled19.div`
|
|
|
8107
8107
|
`;
|
|
8108
8108
|
var Slide = styled19.div`
|
|
8109
8109
|
min-width: 100%; position: relative; cursor: pointer;
|
|
8110
|
-
img { width: 100%;
|
|
8111
|
-
@media (max-width: 768px) { img { height: 280px; } }
|
|
8110
|
+
img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
|
|
8112
8111
|
`;
|
|
8113
8112
|
var SlideCaption = styled19.div`
|
|
8114
8113
|
position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem;
|
|
@@ -8336,6 +8335,9 @@ function PropertyOverview({
|
|
|
8336
8335
|
const weeklyRent = overviewData?.weeklyRent ?? 0;
|
|
8337
8336
|
const annualRent = weeklyRent * 52;
|
|
8338
8337
|
const dividendYield = resolvedValuation && annualRent > 0 ? (annualRent / resolvedValuation * 100).toFixed(2) : null;
|
|
8338
|
+
const monthlyCoupon = annualRent / 12;
|
|
8339
|
+
const tokenMarketCap = tokenPriceValue && resolvedTokensIssued ? tokenPriceValue * resolvedTokensIssued : null;
|
|
8340
|
+
const currentDividendYield = tokenMarketCap && monthlyCoupon > 0 ? (monthlyCoupon * 12 / tokenMarketCap * 100).toFixed(2) : null;
|
|
8339
8341
|
const loadingSkeleton = /* @__PURE__ */ jsx(Skeleton, { width: 90, height: 18 });
|
|
8340
8342
|
const resolvedPropertyType = overviewData?.propertyType ?? propertyTypeLabel ?? null;
|
|
8341
8343
|
const galleryImages = images ?? [];
|
|
@@ -8356,7 +8358,7 @@ function PropertyOverview({
|
|
|
8356
8358
|
];
|
|
8357
8359
|
const propertyStats = [
|
|
8358
8360
|
{ label: "Offering Valuation", value: isLoading && resolvedValuation == null ? loadingSkeleton : resolvedValuation ? resolvedValuation >= 1e6 ? `$${(resolvedValuation / 1e6).toFixed(2)}M` : `$${resolvedValuation.toLocaleString()}` : "\u2014" },
|
|
8359
|
-
{ label: "
|
|
8361
|
+
{ label: "Current Dividend Yield", value: isLoading && currentDividendYield == null ? loadingSkeleton : currentDividendYield ? `${currentDividendYield}%` : "\u2014" },
|
|
8360
8362
|
{ label: "Annual Rent", value: isLoading && !overviewData ? loadingSkeleton : annualRent > 0 ? `$${annualRent.toLocaleString()}/yr` : "\u2014" },
|
|
8361
8363
|
{ label: "Year Built", value: isLoading && !overviewData ? loadingSkeleton : overviewData?.yearBuilt ? String(overviewData.yearBuilt) : "\u2014" }
|
|
8362
8364
|
];
|
|
@@ -8396,13 +8398,7 @@ function PropertyOverview({
|
|
|
8396
8398
|
/* @__PURE__ */ jsxs(StatsColumn, { children: [
|
|
8397
8399
|
/* @__PURE__ */ jsx(StatsColumnHeader, { children: "Property Fundamentals" }),
|
|
8398
8400
|
propertyStats.map((item) => /* @__PURE__ */ jsxs(StatRow, { children: [
|
|
8399
|
-
/* @__PURE__ */
|
|
8400
|
-
item.label,
|
|
8401
|
-
item.badge && /* @__PURE__ */ jsxs(StatBadge, { children: [
|
|
8402
|
-
/* @__PURE__ */ jsx("span", { style: { width: 5, height: 5, borderRadius: "50%", backgroundColor: "#4CAF50", display: "inline-block" } }),
|
|
8403
|
-
item.badge
|
|
8404
|
-
] })
|
|
8405
|
-
] }),
|
|
8401
|
+
/* @__PURE__ */ jsx(StatLabel, { children: item.label }),
|
|
8406
8402
|
/* @__PURE__ */ jsx(StatValue, { children: item.value })
|
|
8407
8403
|
] }, item.label))
|
|
8408
8404
|
] })
|
|
@@ -8644,7 +8640,7 @@ var StatLabel = styled19.span`
|
|
|
8644
8640
|
align-items: center;
|
|
8645
8641
|
gap: 0.5rem;
|
|
8646
8642
|
`;
|
|
8647
|
-
|
|
8643
|
+
styled19.span`
|
|
8648
8644
|
font-size: 0.6rem;
|
|
8649
8645
|
color: #4CAF50;
|
|
8650
8646
|
display: inline-flex;
|