@loafmarkets/ui 0.1.140 → 0.1.142

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
@@ -8297,7 +8297,8 @@ function PropertyOverview({
8297
8297
  isLoading = false,
8298
8298
  ticker,
8299
8299
  contractAddress,
8300
- chain = "Base (Ethereum L2)"
8300
+ chain = "Base (Ethereum L2)",
8301
+ percentageTokenized
8301
8302
  }) {
8302
8303
  const [isDescExpanded, setDescExpanded] = useState(false);
8303
8304
  const description = descriptionProp ?? overviewData?.description ?? DEFAULT_DESCRIPTION;
@@ -8340,9 +8341,10 @@ function PropertyOverview({
8340
8341
  const galleryImages = images ?? [];
8341
8342
  const tokenDetailsItems = [
8342
8343
  { label: "Chain", value: chain },
8343
- { label: "Contract Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true },
8344
+ { label: "Contract Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true, link: contractAddress ? `https://basescan.org/address/${contractAddress}` : void 0 },
8344
8345
  { label: "Token Ticker", value: ticker ?? "\u2014" },
8345
8346
  { label: "Total Tokens", value: isLoading && resolvedTokensIssued == null ? loadingSkeleton : resolvedTokensIssued?.toLocaleString() ?? "\u2014" },
8347
+ { label: "Percentage Tokenized", value: percentageTokenized != null ? `${percentageTokenized}%` : "\u2014" },
8346
8348
  { label: "Property Type", value: resolvedPropertyType ?? "\u2014" },
8347
8349
  { label: "Location", value: location || "\u2014" }
8348
8350
  ];
@@ -8376,7 +8378,7 @@ function PropertyOverview({
8376
8378
  /* @__PURE__ */ jsx(TokenDetailsTitle, { children: "Token Details" }),
8377
8379
  tokenDetailsItems.map((item) => /* @__PURE__ */ jsxs(TokenDetailRow, { children: [
8378
8380
  /* @__PURE__ */ jsx(TokenDetailLabel, { children: item.label }),
8379
- /* @__PURE__ */ jsx(TokenDetailValue, { $mono: !!item.mono, children: item.value })
8381
+ /* @__PURE__ */ jsx(TokenDetailValue, { $mono: !!item.mono, children: item.link ? /* @__PURE__ */ jsx("a", { href: item.link, target: "_blank", rel: "noopener noreferrer", style: { color: "#3380FF", textDecoration: "none" }, children: item.value }) : item.value })
8380
8382
  ] }, item.label))
8381
8383
  ] })
8382
8384
  ] })