@loafmarkets/ui 0.1.139 → 0.1.141
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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -754,8 +754,9 @@ type PropertyOverviewProps = {
|
|
|
754
754
|
ticker?: string;
|
|
755
755
|
contractAddress?: string;
|
|
756
756
|
chain?: string;
|
|
757
|
+
percentageTokenized?: number | null;
|
|
757
758
|
};
|
|
758
|
-
declare function PropertyOverview({ propertyName, location, midPrice, onTradeClick, onPhotosClick, description: descriptionProp, tradeButtonLabel, images, galleryCategories, videoUrl, tokenName, landSizeSqm: landProp, buildingSizeSqm: buildingProp, features: featuresProp, propertyInfo: propertyInfoProp, overviewData, bedrooms, bathrooms, carSpaces, propertyTypeLabel, tokensIssued: tokensIssuedProp, isLoading, ticker, contractAddress, chain, }: PropertyOverviewProps): react_jsx_runtime.JSX.Element;
|
|
759
|
+
declare function PropertyOverview({ propertyName, location, midPrice, onTradeClick, onPhotosClick, description: descriptionProp, tradeButtonLabel, images, galleryCategories, videoUrl, tokenName, landSizeSqm: landProp, buildingSizeSqm: buildingProp, features: featuresProp, propertyInfo: propertyInfoProp, overviewData, bedrooms, bathrooms, carSpaces, propertyTypeLabel, tokensIssued: tokensIssuedProp, isLoading, ticker, contractAddress, chain, percentageTokenized, }: PropertyOverviewProps): react_jsx_runtime.JSX.Element;
|
|
759
760
|
|
|
760
761
|
type OfferStatus = 'active' | 'rejected' | 'expired' | 'historical' | 'pending';
|
|
761
762
|
type PropertyOffer = {
|
package/dist/index.d.ts
CHANGED
|
@@ -754,8 +754,9 @@ type PropertyOverviewProps = {
|
|
|
754
754
|
ticker?: string;
|
|
755
755
|
contractAddress?: string;
|
|
756
756
|
chain?: string;
|
|
757
|
+
percentageTokenized?: number | null;
|
|
757
758
|
};
|
|
758
|
-
declare function PropertyOverview({ propertyName, location, midPrice, onTradeClick, onPhotosClick, description: descriptionProp, tradeButtonLabel, images, galleryCategories, videoUrl, tokenName, landSizeSqm: landProp, buildingSizeSqm: buildingProp, features: featuresProp, propertyInfo: propertyInfoProp, overviewData, bedrooms, bathrooms, carSpaces, propertyTypeLabel, tokensIssued: tokensIssuedProp, isLoading, ticker, contractAddress, chain, }: PropertyOverviewProps): react_jsx_runtime.JSX.Element;
|
|
759
|
+
declare function PropertyOverview({ propertyName, location, midPrice, onTradeClick, onPhotosClick, description: descriptionProp, tradeButtonLabel, images, galleryCategories, videoUrl, tokenName, landSizeSqm: landProp, buildingSizeSqm: buildingProp, features: featuresProp, propertyInfo: propertyInfoProp, overviewData, bedrooms, bathrooms, carSpaces, propertyTypeLabel, tokensIssued: tokensIssuedProp, isLoading, ticker, contractAddress, chain, percentageTokenized, }: PropertyOverviewProps): react_jsx_runtime.JSX.Element;
|
|
759
760
|
|
|
760
761
|
type OfferStatus = 'active' | 'rejected' | 'expired' | 'historical' | 'pending';
|
|
761
762
|
type PropertyOffer = {
|
package/dist/index.js
CHANGED
|
@@ -8323,7 +8323,8 @@ function PropertyOverview({
|
|
|
8323
8323
|
isLoading = false,
|
|
8324
8324
|
ticker,
|
|
8325
8325
|
contractAddress,
|
|
8326
|
-
chain = "Base (Ethereum L2)"
|
|
8326
|
+
chain = "Base (Ethereum L2)",
|
|
8327
|
+
percentageTokenized
|
|
8327
8328
|
}) {
|
|
8328
8329
|
const [isDescExpanded, setDescExpanded] = React5.useState(false);
|
|
8329
8330
|
const description = descriptionProp ?? overviewData?.description ?? DEFAULT_DESCRIPTION;
|
|
@@ -8361,7 +8362,6 @@ function PropertyOverview({
|
|
|
8361
8362
|
const weeklyRent = overviewData?.weeklyRent ?? 0;
|
|
8362
8363
|
const annualRent = weeklyRent * 52;
|
|
8363
8364
|
const dividendYield = resolvedValuation && annualRent > 0 ? (annualRent / resolvedValuation * 100).toFixed(2) : null;
|
|
8364
|
-
const marketCap = tokenPriceValue && resolvedTokensIssued ? tokenPriceValue * resolvedTokensIssued : null;
|
|
8365
8365
|
const loadingSkeleton = /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { width: 90, height: 18 });
|
|
8366
8366
|
const resolvedPropertyType = overviewData?.propertyType ?? propertyTypeLabel ?? null;
|
|
8367
8367
|
const galleryImages = images ?? [];
|
|
@@ -8370,17 +8370,18 @@ function PropertyOverview({
|
|
|
8370
8370
|
{ label: "Contract Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true },
|
|
8371
8371
|
{ label: "Token Ticker", value: ticker ?? "\u2014" },
|
|
8372
8372
|
{ label: "Total Tokens", value: isLoading && resolvedTokensIssued == null ? loadingSkeleton : resolvedTokensIssued?.toLocaleString() ?? "\u2014" },
|
|
8373
|
+
{ label: "Percentage Tokenized", value: percentageTokenized != null ? `${percentageTokenized}%` : "\u2014" },
|
|
8373
8374
|
{ label: "Property Type", value: resolvedPropertyType ?? "\u2014" },
|
|
8374
8375
|
{ label: "Location", value: location || "\u2014" }
|
|
8375
8376
|
];
|
|
8376
8377
|
const tokenStats = [
|
|
8377
8378
|
{ label: "Token Price", value: isLoading && tokenPriceValue == null ? loadingSkeleton : tokenPriceValue ? `$${tokenPriceValue.toLocaleString(void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : "\u2014", gold: true },
|
|
8378
|
-
{ label: "
|
|
8379
|
+
{ label: "Property Value", value: isLoading && resolvedValuation == null ? loadingSkeleton : resolvedValuation ? resolvedValuation >= 1e6 ? `$${(resolvedValuation / 1e6).toFixed(2)}M` : `$${resolvedValuation.toLocaleString()}` : "\u2014" },
|
|
8379
8380
|
{ label: "Dividend Yield", value: isLoading && dividendYield == null ? loadingSkeleton : dividendYield ? `${dividendYield}%` : "\u2014" },
|
|
8380
8381
|
{ label: "Total Tokens", value: isLoading && resolvedTokensIssued == null ? loadingSkeleton : resolvedTokensIssued?.toLocaleString() ?? "\u2014" }
|
|
8381
8382
|
];
|
|
8382
8383
|
const propertyStats = [
|
|
8383
|
-
{ label: "
|
|
8384
|
+
{ label: "Offering Valuation", value: isLoading && resolvedValuation == null ? loadingSkeleton : resolvedValuation ? resolvedValuation >= 1e6 ? `$${(resolvedValuation / 1e6).toFixed(2)}M` : `$${resolvedValuation.toLocaleString()}` : "\u2014" },
|
|
8384
8385
|
{ label: "Weekly Rent", value: isLoading && !overviewData ? loadingSkeleton : weeklyRent > 0 ? `$${weeklyRent.toLocaleString()}/wk` : "\u2014", badge: weeklyRent > 0 ? "Rented" : void 0 },
|
|
8385
8386
|
{ label: "Annual Rent", value: isLoading && !overviewData ? loadingSkeleton : annualRent > 0 ? `$${annualRent.toLocaleString()}/yr` : "\u2014" },
|
|
8386
8387
|
{ label: "Year Built", value: isLoading && !overviewData ? loadingSkeleton : overviewData?.yearBuilt ? String(overviewData.yearBuilt) : "\u2014" }
|