@medialane/ui 0.344.0 → 0.346.0

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.
@@ -104,13 +104,13 @@ function AssetCard({
104
104
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Fingerprint, { className: "h-3 w-3", "aria-hidden": true }),
105
105
  "Soulbound"
106
106
  ] }),
107
- hasPrice && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "inline-flex items-center gap-1 rounded-full px-3 py-1 text-sm font-bold tabular-nums text-white bg-black/30 backdrop-blur-md", children: [
108
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_currency_icon.CurrencyIcon, { symbol: price.currency, size: 14 }),
107
+ hasPrice && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-semibold tabular-nums text-white bg-black/30 backdrop-blur-md", children: [
108
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_currency_icon.CurrencyIcon, { symbol: price.currency, size: 12 }),
109
109
  (0, import_format.formatCompactPrice)(price.formatted),
110
110
  price.currency && !(0, import_currency_icon.hasCurrencyIcon)(price.currency) ? ` ${price.currency}` : ""
111
111
  ] })
112
112
  ] }),
113
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "max-w-full truncate rounded-full px-3.5 py-1.5 text-base font-bold leading-tight text-white bg-black/30 backdrop-blur-md", children: name }),
113
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "max-w-full truncate rounded-full px-3 py-1 text-sm font-semibold leading-tight text-white bg-black/30 backdrop-blur-md", children: name }),
114
114
  subtitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "max-w-full truncate rounded-full px-3 py-1 text-xs font-medium leading-tight text-white bg-black/30 backdrop-blur-md", children: subtitle })
115
115
  ] })
116
116
  ] })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/asset-card.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport { Fingerprint, Loader2 } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport { CurrencyIcon, hasCurrencyIcon } from \"./currency-icon.js\";\nimport { formatCompactPrice } from \"../utils/format.js\";\nimport { IpTypeBadge } from \"./ip-type-badge.js\";\nimport { AnimatedTokenMedia } from \"./animated-token-media.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nexport interface AssetCardPrice {\n formatted?: string | null;\n currency?: string | null;\n\n usdValue?: string | null;\n}\n\nexport interface AssetCardProps {\n\n href: string;\n\n name: string;\n\n image?: string | null;\n\n animationUrl?: string | null;\n\n live?: boolean;\n\n subtitle?: string | null;\n\n ipType?: string | null;\n\n price?: AssetCardPrice | null;\n\n fallbackId?: string | null;\n\n indexing?: boolean;\n\n soulbound?: boolean;\n\n ipTypeBaseUrl?: string;\n className?: string;\n}\n\nexport function AssetCard({\n href,\n name,\n image,\n animationUrl,\n live = false,\n subtitle,\n ipType,\n price,\n fallbackId,\n indexing = false,\n soulbound = false,\n ipTypeBaseUrl = \"\",\n className,\n}: AssetCardProps) {\n const resolveImage = useImageUrl();\n const resolved = resolveImage(image, { width: 480 });\n const hasPrice = !!price?.formatted && !indexing;\n\n return (\n <div\n className={cn(\n \"group relative w-full overflow-hidden rounded-[calc(var(--radius)*1.25)]\",\n className\n )}\n >\n {ipType && (\n <div className=\"absolute top-2 right-2 z-10\">\n <IpTypeBadge\n ipType={ipType}\n size=\"sm\"\n baseUrl={ipTypeBaseUrl}\n className=\"bg-black/40 backdrop-blur-sm\"\n />\n </div>\n )}\n\n <Link href={href} className=\"block relative aspect-square bg-foreground/[0.04] overflow-hidden\">\n <AnimatedTokenMedia\n image={resolved}\n animationUrl={animationUrl}\n live={live}\n alt={name}\n mode=\"fill\"\n sizes=\"(max-width: 640px) 50vw, (max-width: 1024px) 33vw, 22vw\"\n className=\"object-cover\"\n fallback={\n <div className=\"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-brand-blue/25 via-brand-purple/25 to-brand-rose/25\">\n <span className=\"text-sm font-semibold text-muted-foreground tabular-nums\">\n #{fallbackId ?? \"?\"}\n </span>\n </div>\n }\n />\n\n <div className=\"absolute inset-x-2 bottom-2 flex flex-col items-start gap-1\">\n {indexing && (\n <span className=\"flex items-center gap-1 rounded-full px-3 py-1 text-xs text-white bg-black/30 backdrop-blur-md\">\n <Loader2 className=\"h-3 w-3 animate-spin\" />\n Indexing…\n </span>\n )}\n\n {(hasPrice || soulbound) && (\n <div className=\"flex flex-wrap items-center gap-1\">\n {soulbound && (\n <span className=\"inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-medium text-white bg-black/30 backdrop-blur-md\">\n <Fingerprint className=\"h-3 w-3\" aria-hidden />\n Soulbound\n </span>\n )}\n {hasPrice && (\n <span className=\"inline-flex items-center gap-1 rounded-full px-3 py-1 text-sm font-bold tabular-nums text-white bg-black/30 backdrop-blur-md\">\n <CurrencyIcon symbol={price!.currency} size={14} />\n {formatCompactPrice(price!.formatted!)}\n {price!.currency && !hasCurrencyIcon(price!.currency) ? ` ${price!.currency}` : \"\"}\n </span>\n )}\n </div>\n )}\n\n <p className=\"max-w-full truncate rounded-full px-3.5 py-1.5 text-base font-bold leading-tight text-white bg-black/30 backdrop-blur-md\">\n {name}\n </p>\n {subtitle && (\n <p className=\"max-w-full truncate rounded-full px-3 py-1 text-xs font-medium leading-tight text-white bg-black/30 backdrop-blur-md\">\n {subtitle}\n </p>\n )}\n </div>\n </Link>\n </div>\n );\n}\n\nexport function AssetCardSkeleton() {\n return (\n <div className=\"overflow-hidden rounded-[calc(var(--radius)*1.25)]\">\n <div className=\"relative aspect-square w-full overflow-hidden bg-foreground/[0.04]\">\n <div className=\"absolute inset-0 animate-pulse bg-foreground/[0.04]\" />\n <div className=\"absolute bottom-3 left-3 right-3 space-y-1.5\">\n <div className=\"h-4 w-2/3 rounded-md bg-muted-foreground/20 animate-pulse\" />\n <div className=\"h-3 w-1/3 rounded-md bg-muted-foreground/20 animate-pulse\" />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA0EU;AAxEV,kBAAiB;AACjB,0BAAqC;AACrC,gBAAmB;AACnB,2BAA8C;AAC9C,oBAAmC;AACnC,2BAA4B;AAC5B,kCAAmC;AACnC,2BAA4B;AAqCrB,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB;AACF,GAAmB;AACjB,QAAM,mBAAe,kCAAY;AACjC,QAAM,WAAW,aAAa,OAAO,EAAE,OAAO,IAAI,CAAC;AACnD,QAAM,WAAW,CAAC,CAAC,OAAO,aAAa,CAAC;AAExC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MAEC;AAAA,kBACC,4CAAC,SAAI,WAAU,+BACb;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,MAAK;AAAA,YACL,SAAS;AAAA,YACT,WAAU;AAAA;AAAA,QACZ,GACF;AAAA,QAGF,6CAAC,YAAAA,SAAA,EAAK,MAAY,WAAU,qEAC1B;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP;AAAA,cACA;AAAA,cACA,KAAK;AAAA,cACL,MAAK;AAAA,cACL,OAAM;AAAA,cACN,WAAU;AAAA,cACV,UACE,4CAAC,SAAI,WAAU,+HACb,uDAAC,UAAK,WAAU,4DAA2D;AAAA;AAAA,gBACvE,cAAc;AAAA,iBAClB,GACF;AAAA;AAAA,UAEJ;AAAA,UAEA,6CAAC,SAAI,WAAU,+DACZ;AAAA,wBACC,6CAAC,UAAK,WAAU,kGACd;AAAA,0DAAC,+BAAQ,WAAU,wBAAuB;AAAA,cAAE;AAAA,eAE9C;AAAA,aAGA,YAAY,cACZ,6CAAC,SAAI,WAAU,qCACZ;AAAA,2BACC,6CAAC,UAAK,WAAU,qHACd;AAAA,4DAAC,mCAAY,WAAU,WAAU,eAAW,MAAC;AAAA,gBAAE;AAAA,iBAEjD;AAAA,cAED,YACC,6CAAC,UAAK,WAAU,gIACd;AAAA,4DAAC,qCAAa,QAAQ,MAAO,UAAU,MAAM,IAAI;AAAA,oBAChD,kCAAmB,MAAO,SAAU;AAAA,gBACpC,MAAO,YAAY,KAAC,sCAAgB,MAAO,QAAQ,IAAI,IAAI,MAAO,QAAQ,KAAK;AAAA,iBAClF;AAAA,eAEJ;AAAA,YAGF,4CAAC,OAAE,WAAU,4HACV,gBACH;AAAA,YACC,YACC,4CAAC,OAAE,WAAU,wHACV,oBACH;AAAA,aAEJ;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,SAAS,oBAAoB;AAClC,SACE,4CAAC,SAAI,WAAU,sDACb,uDAAC,SAAI,WAAU,sEACb;AAAA,gDAAC,SAAI,WAAU,uDAAsD;AAAA,IACrE,6CAAC,SAAI,WAAU,gDACb;AAAA,kDAAC,SAAI,WAAU,6DAA4D;AAAA,MAC3E,4CAAC,SAAI,WAAU,6DAA4D;AAAA,OAC7E;AAAA,KACF,GACF;AAEJ;","names":["Link"]}
1
+ {"version":3,"sources":["../../src/components/asset-card.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport { Fingerprint, Loader2 } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport { CurrencyIcon, hasCurrencyIcon } from \"./currency-icon.js\";\nimport { formatCompactPrice } from \"../utils/format.js\";\nimport { IpTypeBadge } from \"./ip-type-badge.js\";\nimport { AnimatedTokenMedia } from \"./animated-token-media.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nexport interface AssetCardPrice {\n formatted?: string | null;\n currency?: string | null;\n\n usdValue?: string | null;\n}\n\nexport interface AssetCardProps {\n\n href: string;\n\n name: string;\n\n image?: string | null;\n\n animationUrl?: string | null;\n\n live?: boolean;\n\n subtitle?: string | null;\n\n ipType?: string | null;\n\n price?: AssetCardPrice | null;\n\n fallbackId?: string | null;\n\n indexing?: boolean;\n\n soulbound?: boolean;\n\n ipTypeBaseUrl?: string;\n className?: string;\n}\n\nexport function AssetCard({\n href,\n name,\n image,\n animationUrl,\n live = false,\n subtitle,\n ipType,\n price,\n fallbackId,\n indexing = false,\n soulbound = false,\n ipTypeBaseUrl = \"\",\n className,\n}: AssetCardProps) {\n const resolveImage = useImageUrl();\n const resolved = resolveImage(image, { width: 480 });\n const hasPrice = !!price?.formatted && !indexing;\n\n return (\n <div\n className={cn(\n \"group relative w-full overflow-hidden rounded-[calc(var(--radius)*1.25)]\",\n className\n )}\n >\n {ipType && (\n <div className=\"absolute top-2 right-2 z-10\">\n <IpTypeBadge\n ipType={ipType}\n size=\"sm\"\n baseUrl={ipTypeBaseUrl}\n className=\"bg-black/40 backdrop-blur-sm\"\n />\n </div>\n )}\n\n <Link href={href} className=\"block relative aspect-square bg-foreground/[0.04] overflow-hidden\">\n <AnimatedTokenMedia\n image={resolved}\n animationUrl={animationUrl}\n live={live}\n alt={name}\n mode=\"fill\"\n sizes=\"(max-width: 640px) 50vw, (max-width: 1024px) 33vw, 22vw\"\n className=\"object-cover\"\n fallback={\n <div className=\"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-brand-blue/25 via-brand-purple/25 to-brand-rose/25\">\n <span className=\"text-sm font-semibold text-muted-foreground tabular-nums\">\n #{fallbackId ?? \"?\"}\n </span>\n </div>\n }\n />\n\n <div className=\"absolute inset-x-2 bottom-2 flex flex-col items-start gap-1\">\n {indexing && (\n <span className=\"flex items-center gap-1 rounded-full px-3 py-1 text-xs text-white bg-black/30 backdrop-blur-md\">\n <Loader2 className=\"h-3 w-3 animate-spin\" />\n Indexing…\n </span>\n )}\n\n {(hasPrice || soulbound) && (\n <div className=\"flex flex-wrap items-center gap-1\">\n {soulbound && (\n <span className=\"inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-medium text-white bg-black/30 backdrop-blur-md\">\n <Fingerprint className=\"h-3 w-3\" aria-hidden />\n Soulbound\n </span>\n )}\n {hasPrice && (\n <span className=\"inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-semibold tabular-nums text-white bg-black/30 backdrop-blur-md\">\n <CurrencyIcon symbol={price!.currency} size={12} />\n {formatCompactPrice(price!.formatted!)}\n {price!.currency && !hasCurrencyIcon(price!.currency) ? ` ${price!.currency}` : \"\"}\n </span>\n )}\n </div>\n )}\n\n <p className=\"max-w-full truncate rounded-full px-3 py-1 text-sm font-semibold leading-tight text-white bg-black/30 backdrop-blur-md\">\n {name}\n </p>\n {subtitle && (\n <p className=\"max-w-full truncate rounded-full px-3 py-1 text-xs font-medium leading-tight text-white bg-black/30 backdrop-blur-md\">\n {subtitle}\n </p>\n )}\n </div>\n </Link>\n </div>\n );\n}\n\nexport function AssetCardSkeleton() {\n return (\n <div className=\"overflow-hidden rounded-[calc(var(--radius)*1.25)]\">\n <div className=\"relative aspect-square w-full overflow-hidden bg-foreground/[0.04]\">\n <div className=\"absolute inset-0 animate-pulse bg-foreground/[0.04]\" />\n <div className=\"absolute bottom-3 left-3 right-3 space-y-1.5\">\n <div className=\"h-4 w-2/3 rounded-md bg-muted-foreground/20 animate-pulse\" />\n <div className=\"h-3 w-1/3 rounded-md bg-muted-foreground/20 animate-pulse\" />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA0EU;AAxEV,kBAAiB;AACjB,0BAAqC;AACrC,gBAAmB;AACnB,2BAA8C;AAC9C,oBAAmC;AACnC,2BAA4B;AAC5B,kCAAmC;AACnC,2BAA4B;AAqCrB,SAAS,UAAU;AAAA,EACx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AM,IAAI;AAAA,oBAChD,kCAAmB,MAAO,SAAU;AAAA,gBACpC,MAAO,YAAY,KAAC,sCAAgB,MAAO,QAAQ,IAAI,IAAI,MAAO,QAAQ,KAAK;AAAA,iBAClF;AAAA,eAEJ;AAAA,YAGF,4CAAC,OAAE,WAAU,0HACV,gBACH;AAAA,YACC,YACC,4CAAC,OAAE,WAAU,wHACV,oBACH;AAAA,aAEJ;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,SAAS,oBAAoB;AAClC,SACE,4CAAC,SAAI,WAAU,sDACb,uDAAC,SAAI,WAAU,sEACb;AAAA,gDAAC,SAAI,WAAU,uDAAsD;AAAA,IACrE,6CAAC,SAAI,WAAU,gDACb;AAAA,kDAAC,SAAI,WAAU,6DAA4D;AAAA,MAC3E,4CAAC,SAAI,WAAU,6DAA4D;AAAA,OAC7E;AAAA,KACF,GACF;AAEJ;","names":["Link"]}
@@ -70,13 +70,13 @@ function AssetCard({
70
70
  /* @__PURE__ */ jsx(Fingerprint, { className: "h-3 w-3", "aria-hidden": true }),
71
71
  "Soulbound"
72
72
  ] }),
73
- hasPrice && /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 rounded-full px-3 py-1 text-sm font-bold tabular-nums text-white bg-black/30 backdrop-blur-md", children: [
74
- /* @__PURE__ */ jsx(CurrencyIcon, { symbol: price.currency, size: 14 }),
73
+ hasPrice && /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-semibold tabular-nums text-white bg-black/30 backdrop-blur-md", children: [
74
+ /* @__PURE__ */ jsx(CurrencyIcon, { symbol: price.currency, size: 12 }),
75
75
  formatCompactPrice(price.formatted),
76
76
  price.currency && !hasCurrencyIcon(price.currency) ? ` ${price.currency}` : ""
77
77
  ] })
78
78
  ] }),
79
- /* @__PURE__ */ jsx("p", { className: "max-w-full truncate rounded-full px-3.5 py-1.5 text-base font-bold leading-tight text-white bg-black/30 backdrop-blur-md", children: name }),
79
+ /* @__PURE__ */ jsx("p", { className: "max-w-full truncate rounded-full px-3 py-1 text-sm font-semibold leading-tight text-white bg-black/30 backdrop-blur-md", children: name }),
80
80
  subtitle && /* @__PURE__ */ jsx("p", { className: "max-w-full truncate rounded-full px-3 py-1 text-xs font-medium leading-tight text-white bg-black/30 backdrop-blur-md", children: subtitle })
81
81
  ] })
82
82
  ] })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/asset-card.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport { Fingerprint, Loader2 } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport { CurrencyIcon, hasCurrencyIcon } from \"./currency-icon.js\";\nimport { formatCompactPrice } from \"../utils/format.js\";\nimport { IpTypeBadge } from \"./ip-type-badge.js\";\nimport { AnimatedTokenMedia } from \"./animated-token-media.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nexport interface AssetCardPrice {\n formatted?: string | null;\n currency?: string | null;\n\n usdValue?: string | null;\n}\n\nexport interface AssetCardProps {\n\n href: string;\n\n name: string;\n\n image?: string | null;\n\n animationUrl?: string | null;\n\n live?: boolean;\n\n subtitle?: string | null;\n\n ipType?: string | null;\n\n price?: AssetCardPrice | null;\n\n fallbackId?: string | null;\n\n indexing?: boolean;\n\n soulbound?: boolean;\n\n ipTypeBaseUrl?: string;\n className?: string;\n}\n\nexport function AssetCard({\n href,\n name,\n image,\n animationUrl,\n live = false,\n subtitle,\n ipType,\n price,\n fallbackId,\n indexing = false,\n soulbound = false,\n ipTypeBaseUrl = \"\",\n className,\n}: AssetCardProps) {\n const resolveImage = useImageUrl();\n const resolved = resolveImage(image, { width: 480 });\n const hasPrice = !!price?.formatted && !indexing;\n\n return (\n <div\n className={cn(\n \"group relative w-full overflow-hidden rounded-[calc(var(--radius)*1.25)]\",\n className\n )}\n >\n {ipType && (\n <div className=\"absolute top-2 right-2 z-10\">\n <IpTypeBadge\n ipType={ipType}\n size=\"sm\"\n baseUrl={ipTypeBaseUrl}\n className=\"bg-black/40 backdrop-blur-sm\"\n />\n </div>\n )}\n\n <Link href={href} className=\"block relative aspect-square bg-foreground/[0.04] overflow-hidden\">\n <AnimatedTokenMedia\n image={resolved}\n animationUrl={animationUrl}\n live={live}\n alt={name}\n mode=\"fill\"\n sizes=\"(max-width: 640px) 50vw, (max-width: 1024px) 33vw, 22vw\"\n className=\"object-cover\"\n fallback={\n <div className=\"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-brand-blue/25 via-brand-purple/25 to-brand-rose/25\">\n <span className=\"text-sm font-semibold text-muted-foreground tabular-nums\">\n #{fallbackId ?? \"?\"}\n </span>\n </div>\n }\n />\n\n <div className=\"absolute inset-x-2 bottom-2 flex flex-col items-start gap-1\">\n {indexing && (\n <span className=\"flex items-center gap-1 rounded-full px-3 py-1 text-xs text-white bg-black/30 backdrop-blur-md\">\n <Loader2 className=\"h-3 w-3 animate-spin\" />\n Indexing…\n </span>\n )}\n\n {(hasPrice || soulbound) && (\n <div className=\"flex flex-wrap items-center gap-1\">\n {soulbound && (\n <span className=\"inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-medium text-white bg-black/30 backdrop-blur-md\">\n <Fingerprint className=\"h-3 w-3\" aria-hidden />\n Soulbound\n </span>\n )}\n {hasPrice && (\n <span className=\"inline-flex items-center gap-1 rounded-full px-3 py-1 text-sm font-bold tabular-nums text-white bg-black/30 backdrop-blur-md\">\n <CurrencyIcon symbol={price!.currency} size={14} />\n {formatCompactPrice(price!.formatted!)}\n {price!.currency && !hasCurrencyIcon(price!.currency) ? ` ${price!.currency}` : \"\"}\n </span>\n )}\n </div>\n )}\n\n <p className=\"max-w-full truncate rounded-full px-3.5 py-1.5 text-base font-bold leading-tight text-white bg-black/30 backdrop-blur-md\">\n {name}\n </p>\n {subtitle && (\n <p className=\"max-w-full truncate rounded-full px-3 py-1 text-xs font-medium leading-tight text-white bg-black/30 backdrop-blur-md\">\n {subtitle}\n </p>\n )}\n </div>\n </Link>\n </div>\n );\n}\n\nexport function AssetCardSkeleton() {\n return (\n <div className=\"overflow-hidden rounded-[calc(var(--radius)*1.25)]\">\n <div className=\"relative aspect-square w-full overflow-hidden bg-foreground/[0.04]\">\n <div className=\"absolute inset-0 animate-pulse bg-foreground/[0.04]\" />\n <div className=\"absolute bottom-3 left-3 right-3 space-y-1.5\">\n <div className=\"h-4 w-2/3 rounded-md bg-muted-foreground/20 animate-pulse\" />\n <div className=\"h-3 w-1/3 rounded-md bg-muted-foreground/20 animate-pulse\" />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";AA0EU,cAoBI,YApBJ;AAxEV,OAAO,UAAU;AACjB,SAAS,aAAa,eAAe;AACrC,SAAS,UAAU;AACnB,SAAS,cAAc,uBAAuB;AAC9C,SAAS,0BAA0B;AACnC,SAAS,mBAAmB;AAC5B,SAAS,0BAA0B;AACnC,SAAS,mBAAmB;AAqCrB,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB;AACF,GAAmB;AACjB,QAAM,eAAe,YAAY;AACjC,QAAM,WAAW,aAAa,OAAO,EAAE,OAAO,IAAI,CAAC;AACnD,QAAM,WAAW,CAAC,CAAC,OAAO,aAAa,CAAC;AAExC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MAEC;AAAA,kBACC,oBAAC,SAAI,WAAU,+BACb;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,MAAK;AAAA,YACL,SAAS;AAAA,YACT,WAAU;AAAA;AAAA,QACZ,GACF;AAAA,QAGF,qBAAC,QAAK,MAAY,WAAU,qEAC1B;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP;AAAA,cACA;AAAA,cACA,KAAK;AAAA,cACL,MAAK;AAAA,cACL,OAAM;AAAA,cACN,WAAU;AAAA,cACV,UACE,oBAAC,SAAI,WAAU,+HACb,+BAAC,UAAK,WAAU,4DAA2D;AAAA;AAAA,gBACvE,cAAc;AAAA,iBAClB,GACF;AAAA;AAAA,UAEJ;AAAA,UAEA,qBAAC,SAAI,WAAU,+DACZ;AAAA,wBACC,qBAAC,UAAK,WAAU,kGACd;AAAA,kCAAC,WAAQ,WAAU,wBAAuB;AAAA,cAAE;AAAA,eAE9C;AAAA,aAGA,YAAY,cACZ,qBAAC,SAAI,WAAU,qCACZ;AAAA,2BACC,qBAAC,UAAK,WAAU,qHACd;AAAA,oCAAC,eAAY,WAAU,WAAU,eAAW,MAAC;AAAA,gBAAE;AAAA,iBAEjD;AAAA,cAED,YACC,qBAAC,UAAK,WAAU,gIACd;AAAA,oCAAC,gBAAa,QAAQ,MAAO,UAAU,MAAM,IAAI;AAAA,gBAChD,mBAAmB,MAAO,SAAU;AAAA,gBACpC,MAAO,YAAY,CAAC,gBAAgB,MAAO,QAAQ,IAAI,IAAI,MAAO,QAAQ,KAAK;AAAA,iBAClF;AAAA,eAEJ;AAAA,YAGF,oBAAC,OAAE,WAAU,4HACV,gBACH;AAAA,YACC,YACC,oBAAC,OAAE,WAAU,wHACV,oBACH;AAAA,aAEJ;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,SAAS,oBAAoB;AAClC,SACE,oBAAC,SAAI,WAAU,sDACb,+BAAC,SAAI,WAAU,sEACb;AAAA,wBAAC,SAAI,WAAU,uDAAsD;AAAA,IACrE,qBAAC,SAAI,WAAU,gDACb;AAAA,0BAAC,SAAI,WAAU,6DAA4D;AAAA,MAC3E,oBAAC,SAAI,WAAU,6DAA4D;AAAA,OAC7E;AAAA,KACF,GACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/asset-card.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport { Fingerprint, Loader2 } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport { CurrencyIcon, hasCurrencyIcon } from \"./currency-icon.js\";\nimport { formatCompactPrice } from \"../utils/format.js\";\nimport { IpTypeBadge } from \"./ip-type-badge.js\";\nimport { AnimatedTokenMedia } from \"./animated-token-media.js\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\n\nexport interface AssetCardPrice {\n formatted?: string | null;\n currency?: string | null;\n\n usdValue?: string | null;\n}\n\nexport interface AssetCardProps {\n\n href: string;\n\n name: string;\n\n image?: string | null;\n\n animationUrl?: string | null;\n\n live?: boolean;\n\n subtitle?: string | null;\n\n ipType?: string | null;\n\n price?: AssetCardPrice | null;\n\n fallbackId?: string | null;\n\n indexing?: boolean;\n\n soulbound?: boolean;\n\n ipTypeBaseUrl?: string;\n className?: string;\n}\n\nexport function AssetCard({\n href,\n name,\n image,\n animationUrl,\n live = false,\n subtitle,\n ipType,\n price,\n fallbackId,\n indexing = false,\n soulbound = false,\n ipTypeBaseUrl = \"\",\n className,\n}: AssetCardProps) {\n const resolveImage = useImageUrl();\n const resolved = resolveImage(image, { width: 480 });\n const hasPrice = !!price?.formatted && !indexing;\n\n return (\n <div\n className={cn(\n \"group relative w-full overflow-hidden rounded-[calc(var(--radius)*1.25)]\",\n className\n )}\n >\n {ipType && (\n <div className=\"absolute top-2 right-2 z-10\">\n <IpTypeBadge\n ipType={ipType}\n size=\"sm\"\n baseUrl={ipTypeBaseUrl}\n className=\"bg-black/40 backdrop-blur-sm\"\n />\n </div>\n )}\n\n <Link href={href} className=\"block relative aspect-square bg-foreground/[0.04] overflow-hidden\">\n <AnimatedTokenMedia\n image={resolved}\n animationUrl={animationUrl}\n live={live}\n alt={name}\n mode=\"fill\"\n sizes=\"(max-width: 640px) 50vw, (max-width: 1024px) 33vw, 22vw\"\n className=\"object-cover\"\n fallback={\n <div className=\"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-brand-blue/25 via-brand-purple/25 to-brand-rose/25\">\n <span className=\"text-sm font-semibold text-muted-foreground tabular-nums\">\n #{fallbackId ?? \"?\"}\n </span>\n </div>\n }\n />\n\n <div className=\"absolute inset-x-2 bottom-2 flex flex-col items-start gap-1\">\n {indexing && (\n <span className=\"flex items-center gap-1 rounded-full px-3 py-1 text-xs text-white bg-black/30 backdrop-blur-md\">\n <Loader2 className=\"h-3 w-3 animate-spin\" />\n Indexing…\n </span>\n )}\n\n {(hasPrice || soulbound) && (\n <div className=\"flex flex-wrap items-center gap-1\">\n {soulbound && (\n <span className=\"inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-medium text-white bg-black/30 backdrop-blur-md\">\n <Fingerprint className=\"h-3 w-3\" aria-hidden />\n Soulbound\n </span>\n )}\n {hasPrice && (\n <span className=\"inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-semibold tabular-nums text-white bg-black/30 backdrop-blur-md\">\n <CurrencyIcon symbol={price!.currency} size={12} />\n {formatCompactPrice(price!.formatted!)}\n {price!.currency && !hasCurrencyIcon(price!.currency) ? ` ${price!.currency}` : \"\"}\n </span>\n )}\n </div>\n )}\n\n <p className=\"max-w-full truncate rounded-full px-3 py-1 text-sm font-semibold leading-tight text-white bg-black/30 backdrop-blur-md\">\n {name}\n </p>\n {subtitle && (\n <p className=\"max-w-full truncate rounded-full px-3 py-1 text-xs font-medium leading-tight text-white bg-black/30 backdrop-blur-md\">\n {subtitle}\n </p>\n )}\n </div>\n </Link>\n </div>\n );\n}\n\nexport function AssetCardSkeleton() {\n return (\n <div className=\"overflow-hidden rounded-[calc(var(--radius)*1.25)]\">\n <div className=\"relative aspect-square w-full overflow-hidden bg-foreground/[0.04]\">\n <div className=\"absolute inset-0 animate-pulse bg-foreground/[0.04]\" />\n <div className=\"absolute bottom-3 left-3 right-3 space-y-1.5\">\n <div className=\"h-4 w-2/3 rounded-md bg-muted-foreground/20 animate-pulse\" />\n <div className=\"h-3 w-1/3 rounded-md bg-muted-foreground/20 animate-pulse\" />\n </div>\n </div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A,YAAY,cACZ,qBAAC,SAAI,WAAU,qCACZ;AAAA,2BACC,qBAAC,UAAK,WAAU,qHACd;AAAA,oCAAC,eAAY,WAAU,WAAU,eAAW,MAAC;AAAA,gBAAE;AAAA,iBAEjD;AAAA,cAED,YACC,qBAAC,UAAK,WAAU,oIACd;AAAA,oCAAC,gBAAa,QAAQ,MAAO,UAAU,MAAM,IAAI;AAAA,gBAChD,mBAAmB,MAAO,SAAU;AAAA,gBACpC,MAAO,YAAY,CAAC,gBAAgB,MAAO,QAAQ,IAAI,IAAI,MAAO,QAAQ,KAAK;AAAA,iBAClF;AAAA,eAEJ;AAAA,YAGF,oBAAC,OAAE,WAAU,0HACV,gBACH;AAAA,YACC,YACC,oBAAC,OAAE,WAAU,wHACV,oBACH;AAAA,aAEJ;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,SAAS,oBAAoB;AAClC,SACE,oBAAC,SAAI,WAAU,sDACb,+BAAC,SAAI,WAAU,sEACb;AAAA,wBAAC,SAAI,WAAU,uDAAsD;AAAA,IACrE,qBAAC,SAAI,WAAU,gDACb;AAAA,0BAAC,SAAI,WAAU,6DAA4D;AAAA,MAC3E,oBAAC,SAAI,WAAU,6DAA4D;AAAA,OAC7E;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -34,22 +34,48 @@ function licenseLabel(value) {
34
34
  return label.split(" \u2014 ")[1] ?? label;
35
35
  }
36
36
  const isAddressLike = (v) => typeof v === "string" && /^0x[0-9a-fA-F]{16,}$/.test(v.trim());
37
- function Cell({
38
- icon,
39
- label,
40
- value,
41
- wide
42
- }) {
37
+ function fillSpans(units, cols) {
38
+ const out = units.map((unit) => Math.min(unit, cols));
39
+ const rest = out.reduce((sum, unit) => sum + unit, 0) % cols;
40
+ if (rest && out.length) out[out.length - 1] += cols - rest;
41
+ return out;
42
+ }
43
+ function bentoSpans(count) {
44
+ const out = [];
45
+ const rows = [[2, 1], [1, 2]];
46
+ for (let row = 0; out.length < count; row++) {
47
+ const left = count - out.length;
48
+ if (left === 1) out.push(3);
49
+ else out.push(...rows[row % 2]);
50
+ }
51
+ return out;
52
+ }
53
+ const SPAN_2 = { 1: "col-span-1", 2: "col-span-2" };
54
+ const SPAN_SM_4 = {
55
+ 1: "sm:col-span-1",
56
+ 2: "sm:col-span-2",
57
+ 3: "sm:col-span-3",
58
+ 4: "sm:col-span-4"
59
+ };
60
+ const SPAN_LG_3 = {
61
+ 1: "lg:col-span-1",
62
+ 2: "lg:col-span-2",
63
+ 3: "lg:col-span-3"
64
+ };
65
+ const DETAIL_TINTS = [
66
+ "bg-brand-blue/10 [&_p]:text-brand-blue",
67
+ "bg-brand-rose/10 [&_p]:text-brand-rose",
68
+ "bg-brand-purple/10 [&_p]:text-brand-purple",
69
+ "bg-brand-orange/10 [&_p]:text-brand-orange"
70
+ ];
71
+ function Cell({ label, value, className }) {
43
72
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
44
73
  "div",
45
74
  {
46
- className: `flex flex-col justify-between gap-2 rounded-xl bg-muted/25 ring-1 ring-border/40 p-3.5 ${wide ? "col-span-2" : ""}`,
75
+ className: `flex flex-col justify-end gap-1 rounded-3xl px-5 py-4 min-h-[5.5rem] ${className ?? ""}`,
47
76
  children: [
48
- icon ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-primary/70", children: icon }) : null,
49
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-0.5", children: [
50
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-2xs font-medium text-muted-foreground truncate", title: label, children: label }),
51
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-sm font-bold text-foreground truncate", children: value })
52
- ] })
77
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs font-medium truncate", title: label, children: label }),
78
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-lg font-semibold leading-tight tracking-tight text-foreground break-words", children: value })
53
79
  ]
54
80
  }
55
81
  );
@@ -74,13 +100,18 @@ function AssetOverviewContent({
74
100
  const displayAttributes = attributes.filter((attribute) => isDisplayAttr(attribute));
75
101
  const licenseDescription = import_ip.LICENSE_TYPES.find((license) => license.value === licenseType)?.description;
76
102
  const facts = [
77
- { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.DollarSign, { className: "h-4 w-4" }), label: "Commercial use", value: commercialUse },
78
- { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.GitBranch, { className: "h-4 w-4" }), label: "Derivatives", value: derivatives },
79
- { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.UserCheck, { className: "h-4 w-4" }), label: "Attribution", value: attribution },
80
- { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Globe, { className: "h-4 w-4" }), label: "Territory", value: territory },
81
- { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Bot, { className: "h-4 w-4" }), label: "AI & data mining", value: aiPolicy },
82
- { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Percent, { className: "h-4 w-4" }), label: "Royalty", value: royalty }
103
+ { icon: import_lucide_react.DollarSign, label: "Commercial use", value: commercialUse, tile: "bg-brand-orange text-white", pill: "bg-white/20" },
104
+ { icon: import_lucide_react.GitBranch, label: "Derivatives", value: derivatives, tile: "bg-brand-rose text-white", pill: "bg-white/20" },
105
+ { icon: import_lucide_react.UserCheck, label: "Attribution", value: attribution, tile: "bg-foreground text-background", pill: "bg-background/15" },
106
+ { icon: import_lucide_react.Globe, label: "Territory", value: territory, tile: "bg-brand-blue text-white", pill: "bg-white/20" },
107
+ { icon: import_lucide_react.Bot, label: "AI & data mining", value: aiPolicy, tile: "bg-brand-purple text-white", pill: "bg-white/20" },
108
+ { icon: import_lucide_react.Percent, label: "Royalty", value: royalty, tile: "bg-brand-orange text-white", pill: "bg-white/20" }
83
109
  ].filter((row) => !!row.value);
110
+ const factSpans2 = fillSpans(facts.map(() => 1), 2);
111
+ const factSpansLg = bentoSpans(facts.length);
112
+ const detailUnits = displayAttributes.map((attribute) => isAddressLike(attribute.value) ? 2 : 1);
113
+ const detailSpans2 = fillSpans(detailUnits, 2);
114
+ const detailSpansSm = fillSpans(detailUnits, 4);
84
115
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mt-4 space-y-7", children: [
85
116
  content ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-3", children: [
86
117
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "text-sm font-semibold text-muted-foreground", children: "Content" }),
@@ -93,24 +124,46 @@ function AssetOverviewContent({
93
124
  hasTemplateData ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ip_type_display.IPTypeDisplay, { attributes }) : null,
94
125
  hasLicenseData ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-3", children: [
95
126
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "text-sm font-semibold text-muted-foreground", children: "Rights" }),
96
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3", children: [
97
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "col-span-full flex flex-col gap-2 rounded-2xl bg-gradient-to-br from-primary/10 via-primary/5 to-accent/10 ring-1 ring-primary/15 p-5", children: [
98
- licenseType ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xl sm:text-2xl font-bold leading-tight text-foreground", children: licenseLabel(licenseType) }) : null,
99
- licenseDescription ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: licenseDescription }) : null,
100
- summary ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-base sm:text-lg font-semibold leading-snug text-foreground", children: summary }) : null
127
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-2 lg:grid-cols-6 gap-3", children: [
128
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative col-span-2 lg:col-span-3 flex min-h-[15rem] flex-col justify-end overflow-hidden rounded-[2rem] bg-gradient-to-br from-brand-purple via-brand-blue to-brand-blue p-6 text-white sm:p-8", children: [
129
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "aria-hidden": true, className: "pointer-events-none absolute -right-16 -top-16 h-64 w-64 rounded-full ring-[28px] ring-white/10" }),
130
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "aria-hidden": true, className: "pointer-events-none absolute right-10 top-12 h-20 w-20 rounded-full bg-brand-rose/70" }),
131
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative space-y-3", children: [
132
+ licenseType ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-3xl sm:text-4xl font-semibold tracking-tight leading-[1.05]", children: licenseLabel(licenseType) }) : null,
133
+ licenseDescription ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "max-w-md text-sm text-white/80", children: licenseDescription }) : null,
134
+ summary ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "inline-block rounded-full bg-white/20 px-4 py-2 text-sm font-medium leading-snug backdrop-blur-sm", children: summary }) : null
135
+ ] })
101
136
  ] }),
102
- facts.map(({ icon, label, value }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Cell, { icon, label, value }, label)),
103
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "col-span-full rounded-xl bg-muted/25 ring-1 ring-border/40 p-3.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs leading-relaxed text-muted-foreground", children: "Creative work is protected with international copyright law. The Berne Convention for the Protection of Literary and Artistic Works is the foundational international copyright treaty, ratified by 181 signatory countries." }) })
137
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "col-span-2 lg:col-span-3 grid grid-cols-2 lg:grid-cols-3 gap-3 auto-rows-[minmax(8.5rem,1fr)]", children: facts.map(({ icon: Icon, label, value, tile, pill }, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
138
+ "div",
139
+ {
140
+ className: `relative flex flex-col justify-between gap-4 overflow-hidden rounded-[1.75rem] p-5 ${tile} ${SPAN_2[factSpans2[index]]} ${SPAN_LG_3[factSpansLg[index]]}`,
141
+ children: [
142
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { "aria-hidden": true, className: "pointer-events-none absolute -bottom-5 -right-4 h-28 w-28 opacity-15" }),
143
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: `relative inline-flex w-fit items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium ${pill}`, children: [
144
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { className: "h-3.5 w-3.5" }),
145
+ label
146
+ ] }),
147
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "relative text-2xl sm:text-3xl font-semibold leading-none tracking-tight break-words", children: value })
148
+ ]
149
+ },
150
+ label
151
+ )) }),
152
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative col-span-2 lg:col-span-6 flex items-center gap-4 overflow-hidden rounded-[2rem] bg-brand-rose/10 p-5 sm:p-6", children: [
153
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Scale, { "aria-hidden": true, className: "pointer-events-none absolute -right-4 -bottom-8 h-32 w-32 -rotate-12 text-brand-rose/15" }),
154
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-brand-rose text-white", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Scale, { className: "h-5 w-5" }) }),
155
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "relative max-w-3xl text-sm leading-relaxed text-foreground/80", children: "Creative work is protected with international copyright law. The Berne Convention for the Protection of Literary and Artistic Works is the foundational international copyright treaty, ratified by 181 signatory countries." })
156
+ ] })
104
157
  ] })
105
158
  ] }) : null,
106
159
  displayAttributes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-3", children: [
107
160
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "text-sm font-semibold text-muted-foreground", children: "Details" }),
108
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid grid-cols-2 sm:grid-cols-4 gap-3 [grid-auto-flow:dense] auto-rows-[minmax(6rem,auto)]", children: displayAttributes.map((attribute, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
161
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid grid-cols-2 sm:grid-cols-4 gap-3 [grid-auto-flow:dense]", children: displayAttributes.map((attribute, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
109
162
  Cell,
110
163
  {
111
164
  label: attribute.trait_type ?? "Trait",
112
- wide: isAddressLike(attribute.value),
113
- value: isAddressLike(attribute.value) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_address_display.AddressDisplay, { address: attribute.value, chars: 4, className: "text-sm font-bold" }) : attribute.value ?? "\u2014"
165
+ className: `${DETAIL_TINTS[index % DETAIL_TINTS.length]} ${SPAN_2[detailSpans2[index]]} ${SPAN_SM_4[detailSpansSm[index]]}`,
166
+ value: isAddressLike(attribute.value) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_address_display.AddressDisplay, { address: attribute.value, chars: 4, className: "text-base font-semibold" }) : attribute.value ?? "\u2014"
114
167
  },
115
168
  index
116
169
  )) })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/asset-overview-content.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Bot, DollarSign, ExternalLink, GitBranch, Globe, Percent, UserCheck } from \"lucide-react\";\nimport { IPTypeDisplay } from \"./ip-type-display.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { MarkdownText } from \"./markdown-text.js\";\nimport { licenseSummary } from \"../utils/license-summary.js\";\nimport { LICENSE_TYPES } from \"../data/ip.js\";\n\ninterface AssetAttribute {\n trait_type?: string;\n value?: string;\n}\n\ninterface AssetOverviewContentProps {\n attributes: AssetAttribute[];\n hasTemplateData: boolean;\n isDisplayAttr: (attribute: AssetAttribute) => boolean;\n content?: string | null;\n link?: string | null;\n}\n\nfunction licenseLabel(value: string): string {\n const label = LICENSE_TYPES.find((license) => license.value === value)?.label ?? value;\n return label.split(\" — \")[1] ?? label;\n}\n\nconst isAddressLike = (v?: unknown): boolean =>\n typeof v === \"string\" && /^0x[0-9a-fA-F]{16,}$/.test(v.trim());\n\nfunction Cell({\n icon,\n label,\n value,\n wide,\n}: {\n icon?: ReactNode;\n label: string;\n value: ReactNode;\n wide?: boolean;\n}) {\n return (\n <div\n className={`flex flex-col justify-between gap-2 rounded-xl bg-muted/25 ring-1 ring-border/40 p-3.5 ${\n wide ? \"col-span-2\" : \"\"\n }`}\n >\n {icon ? <span className=\"text-primary/70\">{icon}</span> : null}\n <div className=\"space-y-0.5\">\n <p className=\"text-2xs font-medium text-muted-foreground truncate\" title={label}>\n {label}\n </p>\n <div className=\"text-sm font-bold text-foreground truncate\">{value}</div>\n </div>\n </div>\n );\n}\n\nexport function AssetOverviewContent({\n attributes,\n hasTemplateData,\n isDisplayAttr,\n content,\n link,\n}: AssetOverviewContentProps) {\n const attr = (trait: string) => attributes.find((attribute) => attribute.trait_type === trait)?.value;\n const licenseType = attr(\"License\");\n const commercialUse = attr(\"Commercial Use\");\n const derivatives = attr(\"Derivatives\");\n const attribution = attr(\"Attribution\");\n const territory = attr(\"Territory\");\n const aiPolicy = attr(\"AI Policy\");\n const royalty = attr(\"Royalty\");\n const summary = licenseSummary(attributes);\n const hasLicenseData = !!(licenseType || commercialUse || derivatives || attribution);\n const displayAttributes = attributes.filter((attribute) => isDisplayAttr(attribute));\n\n const licenseDescription = LICENSE_TYPES.find((license) => license.value === licenseType)?.description;\n\n const facts = [\n { icon: <DollarSign className=\"h-4 w-4\" />, label: \"Commercial use\", value: commercialUse },\n { icon: <GitBranch className=\"h-4 w-4\" />, label: \"Derivatives\", value: derivatives },\n { icon: <UserCheck className=\"h-4 w-4\" />, label: \"Attribution\", value: attribution },\n { icon: <Globe className=\"h-4 w-4\" />, label: \"Territory\", value: territory },\n { icon: <Bot className=\"h-4 w-4\" />, label: \"AI & data mining\", value: aiPolicy },\n { icon: <Percent className=\"h-4 w-4\" />, label: \"Royalty\", value: royalty },\n ].filter((row) => !!row.value);\n\n return (\n <div className=\"mt-4 space-y-7\">\n {content ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Content</h3>\n <MarkdownText text={content} />\n </section>\n ) : null}\n\n {link ? (\n <a href={link} target=\"_blank\" rel=\"noopener noreferrer\" className=\"inline-flex items-center gap-1.5 text-sm text-primary hover:underline\">\n <ExternalLink className=\"h-3.5 w-3.5\" />\n Open link\n </a>\n ) : null}\n\n {hasTemplateData ? <IPTypeDisplay attributes={attributes} /> : null}\n\n {hasLicenseData ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Rights</h3>\n <div className=\"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3\">\n <div className=\"col-span-full flex flex-col gap-2 rounded-2xl bg-gradient-to-br from-primary/10 via-primary/5 to-accent/10 ring-1 ring-primary/15 p-5\">\n {licenseType ? (\n <p className=\"text-xl sm:text-2xl font-bold leading-tight text-foreground\">{licenseLabel(licenseType)}</p>\n ) : null}\n {licenseDescription ? (\n <p className=\"text-sm text-muted-foreground\">{licenseDescription}</p>\n ) : null}\n {summary ? (\n <p className=\"text-base sm:text-lg font-semibold leading-snug text-foreground\">{summary}</p>\n ) : null}\n </div>\n\n {facts.map(({ icon, label, value }) => (\n <Cell key={label} icon={icon} label={label} value={value} />\n ))}\n\n <div className=\"col-span-full rounded-xl bg-muted/25 ring-1 ring-border/40 p-3.5\">\n <p className=\"text-xs leading-relaxed text-muted-foreground\">\n Creative work is protected with international copyright law. The Berne Convention for the Protection of Literary and Artistic Works is the foundational international copyright treaty, ratified by 181 signatory countries.\n </p>\n </div>\n </div>\n </section>\n ) : null}\n\n {displayAttributes.length > 0 ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Details</h3>\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3 [grid-auto-flow:dense] auto-rows-[minmax(6rem,auto)]\">\n {displayAttributes.map((attribute, index) => (\n <Cell\n key={index}\n label={attribute.trait_type ?? \"Trait\"}\n wide={isAddressLike(attribute.value)}\n value={\n isAddressLike(attribute.value) ? (\n <AddressDisplay address={attribute.value!} chars={4} className=\"text-sm font-bold\" />\n ) : (\n attribute.value ?? \"—\"\n )\n }\n />\n ))}\n </div>\n </section>\n ) : null}\n\n {!hasTemplateData && !hasLicenseData && displayAttributes.length === 0 ? (\n <p className=\"text-sm text-muted-foreground\">No additional details available.</p>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgDc;AA7Cd,0BAAoF;AACpF,6BAA8B;AAC9B,6BAA+B;AAC/B,2BAA6B;AAC7B,6BAA+B;AAC/B,gBAA8B;AAe9B,SAAS,aAAa,OAAuB;AAC3C,QAAM,QAAQ,wBAAc,KAAK,CAAC,YAAY,QAAQ,UAAU,KAAK,GAAG,SAAS;AACjF,SAAO,MAAM,MAAM,UAAK,EAAE,CAAC,KAAK;AAClC;AAEA,MAAM,gBAAgB,CAAC,MACrB,OAAO,MAAM,YAAY,uBAAuB,KAAK,EAAE,KAAK,CAAC;AAE/D,SAAS,KAAK;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAKG;AACD,SAC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AU,aACjB;AAAA,kDAAC,QAAG,WAAU,+CAA8C,qBAAO;AAAA,MACnE,4CAAC,SAAI,WAAU,8FACZ,4BAAkB,IAAI,CAAC,WAAW,UACjC;AAAA,QAAC;AAAA;AAAA,UAEC,OAAO,UAAU,cAAc;AAAA,UAC/B,MAAM,cAAc,UAAU,KAAK;AAAA,UACnC,OACE,cAAc,UAAU,KAAK,IAC3B,4CAAC,yCAAe,SAAS,UAAU,OAAQ,OAAO,GAAG,WAAU,qBAAoB,IAEnF,UAAU,SAAS;AAAA;AAAA,QAPlB;AAAA,MAUP,CACD,GACH;AAAA,OACF,IACE;AAAA,IAEH,CAAC,mBAAmB,CAAC,kBAAkB,kBAAkB,WAAW,IACnE,4CAAC,OAAE,WAAU,iCAAgC,8CAAgC,IAC3E;AAAA,KACN;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/asset-overview-content.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Bot, DollarSign, ExternalLink, GitBranch, Globe, Percent, Scale, UserCheck } from \"lucide-react\";\nimport { IPTypeDisplay } from \"./ip-type-display.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { MarkdownText } from \"./markdown-text.js\";\nimport { licenseSummary } from \"../utils/license-summary.js\";\nimport { LICENSE_TYPES } from \"../data/ip.js\";\n\ninterface AssetAttribute {\n trait_type?: string;\n value?: string;\n}\n\ninterface AssetOverviewContentProps {\n attributes: AssetAttribute[];\n hasTemplateData: boolean;\n isDisplayAttr: (attribute: AssetAttribute) => boolean;\n content?: string | null;\n link?: string | null;\n}\n\nfunction licenseLabel(value: string): string {\n const label = LICENSE_TYPES.find((license) => license.value === value)?.label ?? value;\n return label.split(\" — \")[1] ?? label;\n}\n\nconst isAddressLike = (v?: unknown): boolean =>\n typeof v === \"string\" && /^0x[0-9a-fA-F]{16,}$/.test(v.trim());\n\nfunction fillSpans(units: number[], cols: number): number[] {\n const out = units.map((unit) => Math.min(unit, cols));\n const rest = out.reduce((sum, unit) => sum + unit, 0) % cols;\n if (rest && out.length) out[out.length - 1] += cols - rest;\n return out;\n}\n\nfunction bentoSpans(count: number): number[] {\n const out: number[] = [];\n const rows = [[2, 1], [1, 2]];\n for (let row = 0; out.length < count; row++) {\n const left = count - out.length;\n if (left === 1) out.push(3);\n else out.push(...rows[row % 2]);\n }\n return out;\n}\n\nconst SPAN_2: Record<number, string> = { 1: \"col-span-1\", 2: \"col-span-2\" };\nconst SPAN_SM_4: Record<number, string> = {\n 1: \"sm:col-span-1\",\n 2: \"sm:col-span-2\",\n 3: \"sm:col-span-3\",\n 4: \"sm:col-span-4\",\n};\nconst SPAN_LG_3: Record<number, string> = {\n 1: \"lg:col-span-1\",\n 2: \"lg:col-span-2\",\n 3: \"lg:col-span-3\",\n};\n\nconst DETAIL_TINTS = [\n \"bg-brand-blue/10 [&_p]:text-brand-blue\",\n \"bg-brand-rose/10 [&_p]:text-brand-rose\",\n \"bg-brand-purple/10 [&_p]:text-brand-purple\",\n \"bg-brand-orange/10 [&_p]:text-brand-orange\",\n];\n\nfunction Cell({ label, value, className }: { label: string; value: ReactNode; className?: string }) {\n return (\n <div\n className={`flex flex-col justify-end gap-1 rounded-3xl px-5 py-4 min-h-[5.5rem] ${className ?? \"\"}`}\n >\n <p className=\"text-xs font-medium truncate\" title={label}>\n {label}\n </p>\n <div className=\"text-lg font-semibold leading-tight tracking-tight text-foreground break-words\">{value}</div>\n </div>\n );\n}\n\nexport function AssetOverviewContent({\n attributes,\n hasTemplateData,\n isDisplayAttr,\n content,\n link,\n}: AssetOverviewContentProps) {\n const attr = (trait: string) => attributes.find((attribute) => attribute.trait_type === trait)?.value;\n const licenseType = attr(\"License\");\n const commercialUse = attr(\"Commercial Use\");\n const derivatives = attr(\"Derivatives\");\n const attribution = attr(\"Attribution\");\n const territory = attr(\"Territory\");\n const aiPolicy = attr(\"AI Policy\");\n const royalty = attr(\"Royalty\");\n const summary = licenseSummary(attributes);\n const hasLicenseData = !!(licenseType || commercialUse || derivatives || attribution);\n const displayAttributes = attributes.filter((attribute) => isDisplayAttr(attribute));\n\n const licenseDescription = LICENSE_TYPES.find((license) => license.value === licenseType)?.description;\n\n const facts = [\n { icon: DollarSign, label: \"Commercial use\", value: commercialUse, tile: \"bg-brand-orange text-white\", pill: \"bg-white/20\" },\n { icon: GitBranch, label: \"Derivatives\", value: derivatives, tile: \"bg-brand-rose text-white\", pill: \"bg-white/20\" },\n { icon: UserCheck, label: \"Attribution\", value: attribution, tile: \"bg-foreground text-background\", pill: \"bg-background/15\" },\n { icon: Globe, label: \"Territory\", value: territory, tile: \"bg-brand-blue text-white\", pill: \"bg-white/20\" },\n { icon: Bot, label: \"AI & data mining\", value: aiPolicy, tile: \"bg-brand-purple text-white\", pill: \"bg-white/20\" },\n { icon: Percent, label: \"Royalty\", value: royalty, tile: \"bg-brand-orange text-white\", pill: \"bg-white/20\" },\n ].filter((row) => !!row.value);\n\n const factSpans2 = fillSpans(facts.map(() => 1), 2);\n const factSpansLg = bentoSpans(facts.length);\n const detailUnits = displayAttributes.map((attribute) => (isAddressLike(attribute.value) ? 2 : 1));\n const detailSpans2 = fillSpans(detailUnits, 2);\n const detailSpansSm = fillSpans(detailUnits, 4);\n\n return (\n <div className=\"mt-4 space-y-7\">\n {content ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Content</h3>\n <MarkdownText text={content} />\n </section>\n ) : null}\n\n {link ? (\n <a href={link} target=\"_blank\" rel=\"noopener noreferrer\" className=\"inline-flex items-center gap-1.5 text-sm text-primary hover:underline\">\n <ExternalLink className=\"h-3.5 w-3.5\" />\n Open link\n </a>\n ) : null}\n\n {hasTemplateData ? <IPTypeDisplay attributes={attributes} /> : null}\n\n {hasLicenseData ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Rights</h3>\n <div className=\"grid grid-cols-2 lg:grid-cols-6 gap-3\">\n <div className=\"relative col-span-2 lg:col-span-3 flex min-h-[15rem] flex-col justify-end overflow-hidden rounded-[2rem] bg-gradient-to-br from-brand-purple via-brand-blue to-brand-blue p-6 text-white sm:p-8\">\n <span aria-hidden className=\"pointer-events-none absolute -right-16 -top-16 h-64 w-64 rounded-full ring-[28px] ring-white/10\" />\n <span aria-hidden className=\"pointer-events-none absolute right-10 top-12 h-20 w-20 rounded-full bg-brand-rose/70\" />\n <div className=\"relative space-y-3\">\n {licenseType ? (\n <p className=\"text-3xl sm:text-4xl font-semibold tracking-tight leading-[1.05]\">\n {licenseLabel(licenseType)}\n </p>\n ) : null}\n {licenseDescription ? (\n <p className=\"max-w-md text-sm text-white/80\">{licenseDescription}</p>\n ) : null}\n {summary ? (\n <p className=\"inline-block rounded-full bg-white/20 px-4 py-2 text-sm font-medium leading-snug backdrop-blur-sm\">\n {summary}\n </p>\n ) : null}\n </div>\n </div>\n\n <div className=\"col-span-2 lg:col-span-3 grid grid-cols-2 lg:grid-cols-3 gap-3 auto-rows-[minmax(8.5rem,1fr)]\">\n {facts.map(({ icon: Icon, label, value, tile, pill }, index) => (\n <div\n key={label}\n className={`relative flex flex-col justify-between gap-4 overflow-hidden rounded-[1.75rem] p-5 ${tile} ${SPAN_2[factSpans2[index]]} ${SPAN_LG_3[factSpansLg[index]]}`}\n >\n <Icon aria-hidden className=\"pointer-events-none absolute -bottom-5 -right-4 h-28 w-28 opacity-15\" />\n <span className={`relative inline-flex w-fit items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium ${pill}`}>\n <Icon className=\"h-3.5 w-3.5\" />\n {label}\n </span>\n <p className=\"relative text-2xl sm:text-3xl font-semibold leading-none tracking-tight break-words\">{value}</p>\n </div>\n ))}\n </div>\n\n <div className=\"relative col-span-2 lg:col-span-6 flex items-center gap-4 overflow-hidden rounded-[2rem] bg-brand-rose/10 p-5 sm:p-6\">\n <Scale aria-hidden className=\"pointer-events-none absolute -right-4 -bottom-8 h-32 w-32 -rotate-12 text-brand-rose/15\" />\n <span className=\"relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-brand-rose text-white\">\n <Scale className=\"h-5 w-5\" />\n </span>\n <p className=\"relative max-w-3xl text-sm leading-relaxed text-foreground/80\">\n Creative work is protected with international copyright law. The Berne Convention for the Protection of Literary and Artistic Works is the foundational international copyright treaty, ratified by 181 signatory countries.\n </p>\n </div>\n </div>\n </section>\n ) : null}\n\n {displayAttributes.length > 0 ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Details</h3>\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3 [grid-auto-flow:dense]\">\n {displayAttributes.map((attribute, index) => (\n <Cell\n key={index}\n label={attribute.trait_type ?? \"Trait\"}\n className={`${DETAIL_TINTS[index % DETAIL_TINTS.length]} ${SPAN_2[detailSpans2[index]]} ${SPAN_SM_4[detailSpansSm[index]]}`}\n value={\n isAddressLike(attribute.value) ? (\n <AddressDisplay address={attribute.value!} chars={4} className=\"text-base font-semibold\" />\n ) : (\n attribute.value ?? \"—\"\n )\n }\n />\n ))}\n </div>\n </section>\n ) : null}\n\n {!hasTemplateData && !hasLicenseData && displayAttributes.length === 0 ? (\n <p className=\"text-sm text-muted-foreground\">No additional details available.</p>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuEI;AApEJ,0BAA2F;AAC3F,6BAA8B;AAC9B,6BAA+B;AAC/B,2BAA6B;AAC7B,6BAA+B;AAC/B,gBAA8B;AAe9B,SAAS,aAAa,OAAuB;AAC3C,QAAM,QAAQ,wBAAc,KAAK,CAAC,YAAY,QAAQ,UAAU,KAAK,GAAG,SAAS;AACjF,SAAO,MAAM,MAAM,UAAK,EAAE,CAAC,KAAK;AAClC;AAEA,MAAM,gBAAgB,CAAC,MACrB,OAAO,MAAM,YAAY,uBAAuB,KAAK,EAAE,KAAK,CAAC;AAE/D,SAAS,UAAU,OAAiB,MAAwB;AAC1D,QAAM,MAAM,MAAM,IA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,8FAA8F,IAAI,IACjH;AAAA,4DAAC,QAAK,WAAU,eAAc;AAAA,gBAC7B;AAAA,iBACH;AAAA,cACA,4CAAC,OAAE,WAAU,uFAAuF,iBAAM;AAAA;AAAA;AAAA,UARrG;AAAA,QASP,CACD,GACH;AAAA,QAEA,6CAAC,SAAI,WAAU,wHACb;AAAA,sDAAC,6BAAM,eAAW,MAAC,WAAU,2FAA0F;AAAA,UACvH,4CAAC,UAAK,WAAU,sGACd,sDAAC,6BAAM,WAAU,WAAU,GAC7B;AAAA,UACA,4CAAC,OAAE,WAAU,iEAAgE,0OAE7E;AAAA,WACF;AAAA,SACF;AAAA,OACF,IACE;AAAA,IAEH,kBAAkB,SAAS,IAC1B,6CAAC,aAAQ,WAAU,aACjB;AAAA,kDAAC,QAAG,WAAU,+CAA8C,qBAAO;AAAA,MACnE,4CAAC,SAAI,WAAU,gEACZ,4BAAkB,IAAI,CAAC,WAAW,UACjC;AAAA,QAAC;AAAA;AAAA,UAEC,OAAO,UAAU,cAAc;AAAA,UAC/B,WAAW,GAAG,aAAa,QAAQ,aAAa,MAAM,CAAC,IAAI,OAAO,aAAa,KAAK,CAAC,CAAC,IAAI,UAAU,cAAc,KAAK,CAAC,CAAC;AAAA,UACzH,OACE,cAAc,UAAU,KAAK,IAC3B,4CAAC,yCAAe,SAAS,UAAU,OAAQ,OAAO,GAAG,WAAU,2BAA0B,IAEzF,UAAU,SAAS;AAAA;AAAA,QAPlB;AAAA,MAUP,CACD,GACH;AAAA,OACF,IACE;AAAA,IAEH,CAAC,mBAAmB,CAAC,kBAAkB,kBAAkB,WAAW,IACnE,4CAAC,OAAE,WAAU,iCAAgC,8CAAgC,IAC3E;AAAA,KACN;AAEJ;","names":[]}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Bot, DollarSign, ExternalLink, GitBranch, Globe, Percent, UserCheck } from "lucide-react";
3
+ import { Bot, DollarSign, ExternalLink, GitBranch, Globe, Percent, Scale, UserCheck } from "lucide-react";
4
4
  import { IPTypeDisplay } from "./ip-type-display.js";
5
5
  import { AddressDisplay } from "./address-display.js";
6
6
  import { MarkdownText } from "./markdown-text.js";
@@ -11,22 +11,48 @@ function licenseLabel(value) {
11
11
  return label.split(" \u2014 ")[1] ?? label;
12
12
  }
13
13
  const isAddressLike = (v) => typeof v === "string" && /^0x[0-9a-fA-F]{16,}$/.test(v.trim());
14
- function Cell({
15
- icon,
16
- label,
17
- value,
18
- wide
19
- }) {
14
+ function fillSpans(units, cols) {
15
+ const out = units.map((unit) => Math.min(unit, cols));
16
+ const rest = out.reduce((sum, unit) => sum + unit, 0) % cols;
17
+ if (rest && out.length) out[out.length - 1] += cols - rest;
18
+ return out;
19
+ }
20
+ function bentoSpans(count) {
21
+ const out = [];
22
+ const rows = [[2, 1], [1, 2]];
23
+ for (let row = 0; out.length < count; row++) {
24
+ const left = count - out.length;
25
+ if (left === 1) out.push(3);
26
+ else out.push(...rows[row % 2]);
27
+ }
28
+ return out;
29
+ }
30
+ const SPAN_2 = { 1: "col-span-1", 2: "col-span-2" };
31
+ const SPAN_SM_4 = {
32
+ 1: "sm:col-span-1",
33
+ 2: "sm:col-span-2",
34
+ 3: "sm:col-span-3",
35
+ 4: "sm:col-span-4"
36
+ };
37
+ const SPAN_LG_3 = {
38
+ 1: "lg:col-span-1",
39
+ 2: "lg:col-span-2",
40
+ 3: "lg:col-span-3"
41
+ };
42
+ const DETAIL_TINTS = [
43
+ "bg-brand-blue/10 [&_p]:text-brand-blue",
44
+ "bg-brand-rose/10 [&_p]:text-brand-rose",
45
+ "bg-brand-purple/10 [&_p]:text-brand-purple",
46
+ "bg-brand-orange/10 [&_p]:text-brand-orange"
47
+ ];
48
+ function Cell({ label, value, className }) {
20
49
  return /* @__PURE__ */ jsxs(
21
50
  "div",
22
51
  {
23
- className: `flex flex-col justify-between gap-2 rounded-xl bg-muted/25 ring-1 ring-border/40 p-3.5 ${wide ? "col-span-2" : ""}`,
52
+ className: `flex flex-col justify-end gap-1 rounded-3xl px-5 py-4 min-h-[5.5rem] ${className ?? ""}`,
24
53
  children: [
25
- icon ? /* @__PURE__ */ jsx("span", { className: "text-primary/70", children: icon }) : null,
26
- /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
27
- /* @__PURE__ */ jsx("p", { className: "text-2xs font-medium text-muted-foreground truncate", title: label, children: label }),
28
- /* @__PURE__ */ jsx("div", { className: "text-sm font-bold text-foreground truncate", children: value })
29
- ] })
54
+ /* @__PURE__ */ jsx("p", { className: "text-xs font-medium truncate", title: label, children: label }),
55
+ /* @__PURE__ */ jsx("div", { className: "text-lg font-semibold leading-tight tracking-tight text-foreground break-words", children: value })
30
56
  ]
31
57
  }
32
58
  );
@@ -51,13 +77,18 @@ function AssetOverviewContent({
51
77
  const displayAttributes = attributes.filter((attribute) => isDisplayAttr(attribute));
52
78
  const licenseDescription = LICENSE_TYPES.find((license) => license.value === licenseType)?.description;
53
79
  const facts = [
54
- { icon: /* @__PURE__ */ jsx(DollarSign, { className: "h-4 w-4" }), label: "Commercial use", value: commercialUse },
55
- { icon: /* @__PURE__ */ jsx(GitBranch, { className: "h-4 w-4" }), label: "Derivatives", value: derivatives },
56
- { icon: /* @__PURE__ */ jsx(UserCheck, { className: "h-4 w-4" }), label: "Attribution", value: attribution },
57
- { icon: /* @__PURE__ */ jsx(Globe, { className: "h-4 w-4" }), label: "Territory", value: territory },
58
- { icon: /* @__PURE__ */ jsx(Bot, { className: "h-4 w-4" }), label: "AI & data mining", value: aiPolicy },
59
- { icon: /* @__PURE__ */ jsx(Percent, { className: "h-4 w-4" }), label: "Royalty", value: royalty }
80
+ { icon: DollarSign, label: "Commercial use", value: commercialUse, tile: "bg-brand-orange text-white", pill: "bg-white/20" },
81
+ { icon: GitBranch, label: "Derivatives", value: derivatives, tile: "bg-brand-rose text-white", pill: "bg-white/20" },
82
+ { icon: UserCheck, label: "Attribution", value: attribution, tile: "bg-foreground text-background", pill: "bg-background/15" },
83
+ { icon: Globe, label: "Territory", value: territory, tile: "bg-brand-blue text-white", pill: "bg-white/20" },
84
+ { icon: Bot, label: "AI & data mining", value: aiPolicy, tile: "bg-brand-purple text-white", pill: "bg-white/20" },
85
+ { icon: Percent, label: "Royalty", value: royalty, tile: "bg-brand-orange text-white", pill: "bg-white/20" }
60
86
  ].filter((row) => !!row.value);
87
+ const factSpans2 = fillSpans(facts.map(() => 1), 2);
88
+ const factSpansLg = bentoSpans(facts.length);
89
+ const detailUnits = displayAttributes.map((attribute) => isAddressLike(attribute.value) ? 2 : 1);
90
+ const detailSpans2 = fillSpans(detailUnits, 2);
91
+ const detailSpansSm = fillSpans(detailUnits, 4);
61
92
  return /* @__PURE__ */ jsxs("div", { className: "mt-4 space-y-7", children: [
62
93
  content ? /* @__PURE__ */ jsxs("section", { className: "space-y-3", children: [
63
94
  /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-muted-foreground", children: "Content" }),
@@ -70,24 +101,46 @@ function AssetOverviewContent({
70
101
  hasTemplateData ? /* @__PURE__ */ jsx(IPTypeDisplay, { attributes }) : null,
71
102
  hasLicenseData ? /* @__PURE__ */ jsxs("section", { className: "space-y-3", children: [
72
103
  /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-muted-foreground", children: "Rights" }),
73
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3", children: [
74
- /* @__PURE__ */ jsxs("div", { className: "col-span-full flex flex-col gap-2 rounded-2xl bg-gradient-to-br from-primary/10 via-primary/5 to-accent/10 ring-1 ring-primary/15 p-5", children: [
75
- licenseType ? /* @__PURE__ */ jsx("p", { className: "text-xl sm:text-2xl font-bold leading-tight text-foreground", children: licenseLabel(licenseType) }) : null,
76
- licenseDescription ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: licenseDescription }) : null,
77
- summary ? /* @__PURE__ */ jsx("p", { className: "text-base sm:text-lg font-semibold leading-snug text-foreground", children: summary }) : null
104
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-6 gap-3", children: [
105
+ /* @__PURE__ */ jsxs("div", { className: "relative col-span-2 lg:col-span-3 flex min-h-[15rem] flex-col justify-end overflow-hidden rounded-[2rem] bg-gradient-to-br from-brand-purple via-brand-blue to-brand-blue p-6 text-white sm:p-8", children: [
106
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute -right-16 -top-16 h-64 w-64 rounded-full ring-[28px] ring-white/10" }),
107
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute right-10 top-12 h-20 w-20 rounded-full bg-brand-rose/70" }),
108
+ /* @__PURE__ */ jsxs("div", { className: "relative space-y-3", children: [
109
+ licenseType ? /* @__PURE__ */ jsx("p", { className: "text-3xl sm:text-4xl font-semibold tracking-tight leading-[1.05]", children: licenseLabel(licenseType) }) : null,
110
+ licenseDescription ? /* @__PURE__ */ jsx("p", { className: "max-w-md text-sm text-white/80", children: licenseDescription }) : null,
111
+ summary ? /* @__PURE__ */ jsx("p", { className: "inline-block rounded-full bg-white/20 px-4 py-2 text-sm font-medium leading-snug backdrop-blur-sm", children: summary }) : null
112
+ ] })
78
113
  ] }),
79
- facts.map(({ icon, label, value }) => /* @__PURE__ */ jsx(Cell, { icon, label, value }, label)),
80
- /* @__PURE__ */ jsx("div", { className: "col-span-full rounded-xl bg-muted/25 ring-1 ring-border/40 p-3.5", children: /* @__PURE__ */ jsx("p", { className: "text-xs leading-relaxed text-muted-foreground", children: "Creative work is protected with international copyright law. The Berne Convention for the Protection of Literary and Artistic Works is the foundational international copyright treaty, ratified by 181 signatory countries." }) })
114
+ /* @__PURE__ */ jsx("div", { className: "col-span-2 lg:col-span-3 grid grid-cols-2 lg:grid-cols-3 gap-3 auto-rows-[minmax(8.5rem,1fr)]", children: facts.map(({ icon: Icon, label, value, tile, pill }, index) => /* @__PURE__ */ jsxs(
115
+ "div",
116
+ {
117
+ className: `relative flex flex-col justify-between gap-4 overflow-hidden rounded-[1.75rem] p-5 ${tile} ${SPAN_2[factSpans2[index]]} ${SPAN_LG_3[factSpansLg[index]]}`,
118
+ children: [
119
+ /* @__PURE__ */ jsx(Icon, { "aria-hidden": true, className: "pointer-events-none absolute -bottom-5 -right-4 h-28 w-28 opacity-15" }),
120
+ /* @__PURE__ */ jsxs("span", { className: `relative inline-flex w-fit items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium ${pill}`, children: [
121
+ /* @__PURE__ */ jsx(Icon, { className: "h-3.5 w-3.5" }),
122
+ label
123
+ ] }),
124
+ /* @__PURE__ */ jsx("p", { className: "relative text-2xl sm:text-3xl font-semibold leading-none tracking-tight break-words", children: value })
125
+ ]
126
+ },
127
+ label
128
+ )) }),
129
+ /* @__PURE__ */ jsxs("div", { className: "relative col-span-2 lg:col-span-6 flex items-center gap-4 overflow-hidden rounded-[2rem] bg-brand-rose/10 p-5 sm:p-6", children: [
130
+ /* @__PURE__ */ jsx(Scale, { "aria-hidden": true, className: "pointer-events-none absolute -right-4 -bottom-8 h-32 w-32 -rotate-12 text-brand-rose/15" }),
131
+ /* @__PURE__ */ jsx("span", { className: "relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-brand-rose text-white", children: /* @__PURE__ */ jsx(Scale, { className: "h-5 w-5" }) }),
132
+ /* @__PURE__ */ jsx("p", { className: "relative max-w-3xl text-sm leading-relaxed text-foreground/80", children: "Creative work is protected with international copyright law. The Berne Convention for the Protection of Literary and Artistic Works is the foundational international copyright treaty, ratified by 181 signatory countries." })
133
+ ] })
81
134
  ] })
82
135
  ] }) : null,
83
136
  displayAttributes.length > 0 ? /* @__PURE__ */ jsxs("section", { className: "space-y-3", children: [
84
137
  /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-muted-foreground", children: "Details" }),
85
- /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 sm:grid-cols-4 gap-3 [grid-auto-flow:dense] auto-rows-[minmax(6rem,auto)]", children: displayAttributes.map((attribute, index) => /* @__PURE__ */ jsx(
138
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 sm:grid-cols-4 gap-3 [grid-auto-flow:dense]", children: displayAttributes.map((attribute, index) => /* @__PURE__ */ jsx(
86
139
  Cell,
87
140
  {
88
141
  label: attribute.trait_type ?? "Trait",
89
- wide: isAddressLike(attribute.value),
90
- value: isAddressLike(attribute.value) ? /* @__PURE__ */ jsx(AddressDisplay, { address: attribute.value, chars: 4, className: "text-sm font-bold" }) : attribute.value ?? "\u2014"
142
+ className: `${DETAIL_TINTS[index % DETAIL_TINTS.length]} ${SPAN_2[detailSpans2[index]]} ${SPAN_SM_4[detailSpansSm[index]]}`,
143
+ value: isAddressLike(attribute.value) ? /* @__PURE__ */ jsx(AddressDisplay, { address: attribute.value, chars: 4, className: "text-base font-semibold" }) : attribute.value ?? "\u2014"
91
144
  },
92
145
  index
93
146
  )) })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/asset-overview-content.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Bot, DollarSign, ExternalLink, GitBranch, Globe, Percent, UserCheck } from \"lucide-react\";\nimport { IPTypeDisplay } from \"./ip-type-display.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { MarkdownText } from \"./markdown-text.js\";\nimport { licenseSummary } from \"../utils/license-summary.js\";\nimport { LICENSE_TYPES } from \"../data/ip.js\";\n\ninterface AssetAttribute {\n trait_type?: string;\n value?: string;\n}\n\ninterface AssetOverviewContentProps {\n attributes: AssetAttribute[];\n hasTemplateData: boolean;\n isDisplayAttr: (attribute: AssetAttribute) => boolean;\n content?: string | null;\n link?: string | null;\n}\n\nfunction licenseLabel(value: string): string {\n const label = LICENSE_TYPES.find((license) => license.value === value)?.label ?? value;\n return label.split(\" — \")[1] ?? label;\n}\n\nconst isAddressLike = (v?: unknown): boolean =>\n typeof v === \"string\" && /^0x[0-9a-fA-F]{16,}$/.test(v.trim());\n\nfunction Cell({\n icon,\n label,\n value,\n wide,\n}: {\n icon?: ReactNode;\n label: string;\n value: ReactNode;\n wide?: boolean;\n}) {\n return (\n <div\n className={`flex flex-col justify-between gap-2 rounded-xl bg-muted/25 ring-1 ring-border/40 p-3.5 ${\n wide ? \"col-span-2\" : \"\"\n }`}\n >\n {icon ? <span className=\"text-primary/70\">{icon}</span> : null}\n <div className=\"space-y-0.5\">\n <p className=\"text-2xs font-medium text-muted-foreground truncate\" title={label}>\n {label}\n </p>\n <div className=\"text-sm font-bold text-foreground truncate\">{value}</div>\n </div>\n </div>\n );\n}\n\nexport function AssetOverviewContent({\n attributes,\n hasTemplateData,\n isDisplayAttr,\n content,\n link,\n}: AssetOverviewContentProps) {\n const attr = (trait: string) => attributes.find((attribute) => attribute.trait_type === trait)?.value;\n const licenseType = attr(\"License\");\n const commercialUse = attr(\"Commercial Use\");\n const derivatives = attr(\"Derivatives\");\n const attribution = attr(\"Attribution\");\n const territory = attr(\"Territory\");\n const aiPolicy = attr(\"AI Policy\");\n const royalty = attr(\"Royalty\");\n const summary = licenseSummary(attributes);\n const hasLicenseData = !!(licenseType || commercialUse || derivatives || attribution);\n const displayAttributes = attributes.filter((attribute) => isDisplayAttr(attribute));\n\n const licenseDescription = LICENSE_TYPES.find((license) => license.value === licenseType)?.description;\n\n const facts = [\n { icon: <DollarSign className=\"h-4 w-4\" />, label: \"Commercial use\", value: commercialUse },\n { icon: <GitBranch className=\"h-4 w-4\" />, label: \"Derivatives\", value: derivatives },\n { icon: <UserCheck className=\"h-4 w-4\" />, label: \"Attribution\", value: attribution },\n { icon: <Globe className=\"h-4 w-4\" />, label: \"Territory\", value: territory },\n { icon: <Bot className=\"h-4 w-4\" />, label: \"AI & data mining\", value: aiPolicy },\n { icon: <Percent className=\"h-4 w-4\" />, label: \"Royalty\", value: royalty },\n ].filter((row) => !!row.value);\n\n return (\n <div className=\"mt-4 space-y-7\">\n {content ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Content</h3>\n <MarkdownText text={content} />\n </section>\n ) : null}\n\n {link ? (\n <a href={link} target=\"_blank\" rel=\"noopener noreferrer\" className=\"inline-flex items-center gap-1.5 text-sm text-primary hover:underline\">\n <ExternalLink className=\"h-3.5 w-3.5\" />\n Open link\n </a>\n ) : null}\n\n {hasTemplateData ? <IPTypeDisplay attributes={attributes} /> : null}\n\n {hasLicenseData ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Rights</h3>\n <div className=\"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3\">\n <div className=\"col-span-full flex flex-col gap-2 rounded-2xl bg-gradient-to-br from-primary/10 via-primary/5 to-accent/10 ring-1 ring-primary/15 p-5\">\n {licenseType ? (\n <p className=\"text-xl sm:text-2xl font-bold leading-tight text-foreground\">{licenseLabel(licenseType)}</p>\n ) : null}\n {licenseDescription ? (\n <p className=\"text-sm text-muted-foreground\">{licenseDescription}</p>\n ) : null}\n {summary ? (\n <p className=\"text-base sm:text-lg font-semibold leading-snug text-foreground\">{summary}</p>\n ) : null}\n </div>\n\n {facts.map(({ icon, label, value }) => (\n <Cell key={label} icon={icon} label={label} value={value} />\n ))}\n\n <div className=\"col-span-full rounded-xl bg-muted/25 ring-1 ring-border/40 p-3.5\">\n <p className=\"text-xs leading-relaxed text-muted-foreground\">\n Creative work is protected with international copyright law. The Berne Convention for the Protection of Literary and Artistic Works is the foundational international copyright treaty, ratified by 181 signatory countries.\n </p>\n </div>\n </div>\n </section>\n ) : null}\n\n {displayAttributes.length > 0 ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Details</h3>\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3 [grid-auto-flow:dense] auto-rows-[minmax(6rem,auto)]\">\n {displayAttributes.map((attribute, index) => (\n <Cell\n key={index}\n label={attribute.trait_type ?? \"Trait\"}\n wide={isAddressLike(attribute.value)}\n value={\n isAddressLike(attribute.value) ? (\n <AddressDisplay address={attribute.value!} chars={4} className=\"text-sm font-bold\" />\n ) : (\n attribute.value ?? \"—\"\n )\n }\n />\n ))}\n </div>\n </section>\n ) : null}\n\n {!hasTemplateData && !hasLicenseData && displayAttributes.length === 0 ? (\n <p className=\"text-sm text-muted-foreground\">No additional details available.</p>\n ) : null}\n </div>\n );\n}\n"],"mappings":";AAgDc,cACR,YADQ;AA7Cd,SAAS,KAAK,YAAY,cAAc,WAAW,OAAO,SAAS,iBAAiB;AACpF,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;AAe9B,SAAS,aAAa,OAAuB;AAC3C,QAAM,QAAQ,cAAc,KAAK,CAAC,YAAY,QAAQ,UAAU,KAAK,GAAG,SAAS;AACjF,SAAO,MAAM,MAAM,UAAK,EAAE,CAAC,KAAK;AAClC;AAEA,MAAM,gBAAgB,CAAC,MACrB,OAAO,MAAM,YAAY,uBAAuB,KAAK,EAAE,KAAK,CAAC;AAE/D,SAAS,KAAK;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAKG;AACD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,0FACT,OAAO,eAAe,EACxB;AAAA,MAEC;AAAA,eAAO,oBAAC,UAAK,WAAU,mBAAmB,gBAAK,IAAU;AAAA,QAC1D,qBAAC,SAAI,WAAU,eACb;AAAA,8BAAC,OAAE,WAAU,uDAAsD,OAAO,OACvE,iBACH;AAAA,UACA,oBAAC,SAAI,WAAU,8CAA8C,iBAAM;AAAA,WACrE;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,SAAS,qBAAqB;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA8B;AAC5B,QAAM,OAAO,CAAC,UAAkB,WAAW,KAAK,CAAC,cAAc,UAAU,eAAe,KAAK,GAAG;AAChG,QAAM,cAAc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N;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/asset-overview-content.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Bot, DollarSign, ExternalLink, GitBranch, Globe, Percent, Scale, UserCheck } from \"lucide-react\";\nimport { IPTypeDisplay } from \"./ip-type-display.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { MarkdownText } from \"./markdown-text.js\";\nimport { licenseSummary } from \"../utils/license-summary.js\";\nimport { LICENSE_TYPES } from \"../data/ip.js\";\n\ninterface AssetAttribute {\n trait_type?: string;\n value?: string;\n}\n\ninterface AssetOverviewContentProps {\n attributes: AssetAttribute[];\n hasTemplateData: boolean;\n isDisplayAttr: (attribute: AssetAttribute) => boolean;\n content?: string | null;\n link?: string | null;\n}\n\nfunction licenseLabel(value: string): string {\n const label = LICENSE_TYPES.find((license) => license.value === value)?.label ?? value;\n return label.split(\" — \")[1] ?? label;\n}\n\nconst isAddressLike = (v?: unknown): boolean =>\n typeof v === \"string\" && /^0x[0-9a-fA-F]{16,}$/.test(v.trim());\n\nfunction fillSpans(units: number[], cols: number): number[] {\n const out = units.map((unit) => Math.min(unit, cols));\n const rest = out.reduce((sum, unit) => sum + unit, 0) % cols;\n if (rest && out.length) out[out.length - 1] += cols - rest;\n return out;\n}\n\nfunction bentoSpans(count: number): number[] {\n const out: number[] = [];\n const rows = [[2, 1], [1, 2]];\n for (let row = 0; out.length < count; row++) {\n const left = count - out.length;\n if (left === 1) out.push(3);\n else out.push(...rows[row % 2]);\n }\n return out;\n}\n\nconst SPAN_2: Record<number, string> = { 1: \"col-span-1\", 2: \"col-span-2\" };\nconst SPAN_SM_4: Record<number, string> = {\n 1: \"sm:col-span-1\",\n 2: \"sm:col-span-2\",\n 3: \"sm:col-span-3\",\n 4: \"sm:col-span-4\",\n};\nconst SPAN_LG_3: Record<number, string> = {\n 1: \"lg:col-span-1\",\n 2: \"lg:col-span-2\",\n 3: \"lg:col-span-3\",\n};\n\nconst DETAIL_TINTS = [\n \"bg-brand-blue/10 [&_p]:text-brand-blue\",\n \"bg-brand-rose/10 [&_p]:text-brand-rose\",\n \"bg-brand-purple/10 [&_p]:text-brand-purple\",\n \"bg-brand-orange/10 [&_p]:text-brand-orange\",\n];\n\nfunction Cell({ label, value, className }: { label: string; value: ReactNode; className?: string }) {\n return (\n <div\n className={`flex flex-col justify-end gap-1 rounded-3xl px-5 py-4 min-h-[5.5rem] ${className ?? \"\"}`}\n >\n <p className=\"text-xs font-medium truncate\" title={label}>\n {label}\n </p>\n <div className=\"text-lg font-semibold leading-tight tracking-tight text-foreground break-words\">{value}</div>\n </div>\n );\n}\n\nexport function AssetOverviewContent({\n attributes,\n hasTemplateData,\n isDisplayAttr,\n content,\n link,\n}: AssetOverviewContentProps) {\n const attr = (trait: string) => attributes.find((attribute) => attribute.trait_type === trait)?.value;\n const licenseType = attr(\"License\");\n const commercialUse = attr(\"Commercial Use\");\n const derivatives = attr(\"Derivatives\");\n const attribution = attr(\"Attribution\");\n const territory = attr(\"Territory\");\n const aiPolicy = attr(\"AI Policy\");\n const royalty = attr(\"Royalty\");\n const summary = licenseSummary(attributes);\n const hasLicenseData = !!(licenseType || commercialUse || derivatives || attribution);\n const displayAttributes = attributes.filter((attribute) => isDisplayAttr(attribute));\n\n const licenseDescription = LICENSE_TYPES.find((license) => license.value === licenseType)?.description;\n\n const facts = [\n { icon: DollarSign, label: \"Commercial use\", value: commercialUse, tile: \"bg-brand-orange text-white\", pill: \"bg-white/20\" },\n { icon: GitBranch, label: \"Derivatives\", value: derivatives, tile: \"bg-brand-rose text-white\", pill: \"bg-white/20\" },\n { icon: UserCheck, label: \"Attribution\", value: attribution, tile: \"bg-foreground text-background\", pill: \"bg-background/15\" },\n { icon: Globe, label: \"Territory\", value: territory, tile: \"bg-brand-blue text-white\", pill: \"bg-white/20\" },\n { icon: Bot, label: \"AI & data mining\", value: aiPolicy, tile: \"bg-brand-purple text-white\", pill: \"bg-white/20\" },\n { icon: Percent, label: \"Royalty\", value: royalty, tile: \"bg-brand-orange text-white\", pill: \"bg-white/20\" },\n ].filter((row) => !!row.value);\n\n const factSpans2 = fillSpans(facts.map(() => 1), 2);\n const factSpansLg = bentoSpans(facts.length);\n const detailUnits = displayAttributes.map((attribute) => (isAddressLike(attribute.value) ? 2 : 1));\n const detailSpans2 = fillSpans(detailUnits, 2);\n const detailSpansSm = fillSpans(detailUnits, 4);\n\n return (\n <div className=\"mt-4 space-y-7\">\n {content ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Content</h3>\n <MarkdownText text={content} />\n </section>\n ) : null}\n\n {link ? (\n <a href={link} target=\"_blank\" rel=\"noopener noreferrer\" className=\"inline-flex items-center gap-1.5 text-sm text-primary hover:underline\">\n <ExternalLink className=\"h-3.5 w-3.5\" />\n Open link\n </a>\n ) : null}\n\n {hasTemplateData ? <IPTypeDisplay attributes={attributes} /> : null}\n\n {hasLicenseData ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Rights</h3>\n <div className=\"grid grid-cols-2 lg:grid-cols-6 gap-3\">\n <div className=\"relative col-span-2 lg:col-span-3 flex min-h-[15rem] flex-col justify-end overflow-hidden rounded-[2rem] bg-gradient-to-br from-brand-purple via-brand-blue to-brand-blue p-6 text-white sm:p-8\">\n <span aria-hidden className=\"pointer-events-none absolute -right-16 -top-16 h-64 w-64 rounded-full ring-[28px] ring-white/10\" />\n <span aria-hidden className=\"pointer-events-none absolute right-10 top-12 h-20 w-20 rounded-full bg-brand-rose/70\" />\n <div className=\"relative space-y-3\">\n {licenseType ? (\n <p className=\"text-3xl sm:text-4xl font-semibold tracking-tight leading-[1.05]\">\n {licenseLabel(licenseType)}\n </p>\n ) : null}\n {licenseDescription ? (\n <p className=\"max-w-md text-sm text-white/80\">{licenseDescription}</p>\n ) : null}\n {summary ? (\n <p className=\"inline-block rounded-full bg-white/20 px-4 py-2 text-sm font-medium leading-snug backdrop-blur-sm\">\n {summary}\n </p>\n ) : null}\n </div>\n </div>\n\n <div className=\"col-span-2 lg:col-span-3 grid grid-cols-2 lg:grid-cols-3 gap-3 auto-rows-[minmax(8.5rem,1fr)]\">\n {facts.map(({ icon: Icon, label, value, tile, pill }, index) => (\n <div\n key={label}\n className={`relative flex flex-col justify-between gap-4 overflow-hidden rounded-[1.75rem] p-5 ${tile} ${SPAN_2[factSpans2[index]]} ${SPAN_LG_3[factSpansLg[index]]}`}\n >\n <Icon aria-hidden className=\"pointer-events-none absolute -bottom-5 -right-4 h-28 w-28 opacity-15\" />\n <span className={`relative inline-flex w-fit items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium ${pill}`}>\n <Icon className=\"h-3.5 w-3.5\" />\n {label}\n </span>\n <p className=\"relative text-2xl sm:text-3xl font-semibold leading-none tracking-tight break-words\">{value}</p>\n </div>\n ))}\n </div>\n\n <div className=\"relative col-span-2 lg:col-span-6 flex items-center gap-4 overflow-hidden rounded-[2rem] bg-brand-rose/10 p-5 sm:p-6\">\n <Scale aria-hidden className=\"pointer-events-none absolute -right-4 -bottom-8 h-32 w-32 -rotate-12 text-brand-rose/15\" />\n <span className=\"relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-brand-rose text-white\">\n <Scale className=\"h-5 w-5\" />\n </span>\n <p className=\"relative max-w-3xl text-sm leading-relaxed text-foreground/80\">\n Creative work is protected with international copyright law. The Berne Convention for the Protection of Literary and Artistic Works is the foundational international copyright treaty, ratified by 181 signatory countries.\n </p>\n </div>\n </div>\n </section>\n ) : null}\n\n {displayAttributes.length > 0 ? (\n <section className=\"space-y-3\">\n <h3 className=\"text-sm font-semibold text-muted-foreground\">Details</h3>\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3 [grid-auto-flow:dense]\">\n {displayAttributes.map((attribute, index) => (\n <Cell\n key={index}\n label={attribute.trait_type ?? \"Trait\"}\n className={`${DETAIL_TINTS[index % DETAIL_TINTS.length]} ${SPAN_2[detailSpans2[index]]} ${SPAN_SM_4[detailSpansSm[index]]}`}\n value={\n isAddressLike(attribute.value) ? (\n <AddressDisplay address={attribute.value!} chars={4} className=\"text-base font-semibold\" />\n ) : (\n attribute.value ?? \"—\"\n )\n }\n />\n ))}\n </div>\n </section>\n ) : null}\n\n {!hasTemplateData && !hasLicenseData && displayAttributes.length === 0 ? (\n <p className=\"text-sm text-muted-foreground\">No additional details available.</p>\n ) : null}\n </div>\n );\n}\n"],"mappings":";AAuEI,SAGE,KAHF;AApEJ,SAAS,KAAK,YAAY,cAAc,WAAW,OAAO,SAAS,OAAO,iBAAiB;AAC3F,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;AAe9B,SAAS,aAAa,OAAuB;AAC3C,QAAM,QAAQ,cAAc,KAAK,CAAC,YAAY,QAAQ,UAAU,KAAK,GAAG,SAAS;AACjF,SAAO,MAAM,MAAM,UAAK,EAAE,CAAC,KAAK;AAClC;AAEA,MAAM,gBAAgB,CAAC,MACrB,OAAO,MAAM,YAAY,uBAAuB,KAAK,EAAE,KAAK,CAAC;AAE/D,SAAS,UAAU,OAAiB,MAAwB;AAC1D,QAAM,MAAM,MAAM,IAAI,CAAC,SAAS,KAAK,IAAI,MAAM,IAAI,CAAC;AACpD,QAAM,OAAO,IAAI,OAAO,CAAC,KAAK,SAAS,MAAM,MAAM,CAAC,IAAI;AACxD,MAAI,QAAQ,IAAI,OAAQ,KAAI,IAAI,SAAS,CAAC,KAAK,OAAO;AACtD,SAAO;AACT;AAEA,SAAS,WAAW,OAAyB;AAC3C,QAAM,MAAgB,CAAC;AACvB,QAAM,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC5B,WAAS,MAAM,GAAG,IAAI,SAAS,OAAO,OAAO;AAC3C,UAAM,OAAO,QAAQ,IAAI;AACzB,QAAI,SAAS,EAAG,KAAI,KAAK,CAAC;AAAA,QACr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A,0BAAC,QAAG,WAAU,+CAA8C,qBAAO;AAAA,MACnE,oBAAC,SAAI,WAAU,gEACZ,4BAAkB,IAAI,CAAC,WAAW,UACjC;AAAA,QAAC;AAAA;AAAA,UAEC,OAAO,UAAU,cAAc;AAAA,UAC/B,WAAW,GAAG,aAAa,QAAQ,aAAa,MAAM,CAAC,IAAI,OAAO,aAAa,KAAK,CAAC,CAAC,IAAI,UAAU,cAAc,KAAK,CAAC,CAAC;AAAA,UACzH,OACE,cAAc,UAAU,KAAK,IAC3B,oBAAC,kBAAe,SAAS,UAAU,OAAQ,OAAO,GAAG,WAAU,2BAA0B,IAEzF,UAAU,SAAS;AAAA;AAAA,QAPlB;AAAA,MAUP,CACD,GACH;AAAA,OACF,IACE;AAAA,IAEH,CAAC,mBAAmB,CAAC,kBAAkB,kBAAkB,WAAW,IACnE,oBAAC,OAAE,WAAU,iCAAgC,8CAAgC,IAC3E;AAAA,KACN;AAEJ;","names":[]}
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "ghost" | "link" | "default" | "destructive" | "outline" | "secondary" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
6
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
7
  size?: "icon" | "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "ghost" | "link" | "default" | "destructive" | "outline" | "secondary" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
6
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
7
  size?: "icon" | "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { FastMintProps } from './types.cjs';
4
4
  import 'starknet';
5
5
  import '@medialane/sdk';
6
6
  import '@medialane/sdk/starknet';
7
7
 
8
- declare function FastMint(props: FastMintProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
8
+ declare function FastMint(props: FastMintProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
9
9
 
10
10
  export { FastMint };
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as React from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { FastMintProps } from './types.js';
4
4
  import 'starknet';
5
5
  import '@medialane/sdk';
6
6
  import '@medialane/sdk/starknet';
7
7
 
8
- declare function FastMint(props: FastMintProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
8
+ declare function FastMint(props: FastMintProps): string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
9
9
 
10
10
  export { FastMint };
@@ -16,30 +16,30 @@ declare const editionMintSchema: z.ZodObject<{
16
16
  royalty: z.ZodNumber;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  name: string;
19
- value: string;
20
19
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
21
20
  licenseType: string;
22
21
  commercialUse: "Yes" | "No";
22
+ value: string;
23
+ recipient: string;
23
24
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
24
25
  attribution: "Required" | "Not Required";
25
26
  geographicScope: string;
26
27
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
27
28
  royalty: number;
28
- recipient: string;
29
29
  description?: string | undefined;
30
30
  external_url?: string | undefined;
31
31
  }, {
32
32
  name: string;
33
- value: string;
34
33
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
35
34
  licenseType: string;
36
35
  commercialUse: "Yes" | "No";
36
+ value: string;
37
+ recipient: string;
37
38
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
38
39
  attribution: "Required" | "Not Required";
39
40
  geographicScope: string;
40
41
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
41
42
  royalty: number;
42
- recipient: string;
43
43
  description?: string | undefined;
44
44
  external_url?: string | undefined;
45
45
  }>;
@@ -16,30 +16,30 @@ declare const editionMintSchema: z.ZodObject<{
16
16
  royalty: z.ZodNumber;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  name: string;
19
- value: string;
20
19
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
21
20
  licenseType: string;
22
21
  commercialUse: "Yes" | "No";
22
+ value: string;
23
+ recipient: string;
23
24
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
24
25
  attribution: "Required" | "Not Required";
25
26
  geographicScope: string;
26
27
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
27
28
  royalty: number;
28
- recipient: string;
29
29
  description?: string | undefined;
30
30
  external_url?: string | undefined;
31
31
  }, {
32
32
  name: string;
33
- value: string;
34
33
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
35
34
  licenseType: string;
36
35
  commercialUse: "Yes" | "No";
36
+ value: string;
37
+ recipient: string;
37
38
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
38
39
  attribution: "Required" | "Not Required";
39
40
  geographicScope: string;
40
41
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
41
42
  royalty: number;
42
- recipient: string;
43
43
  description?: string | undefined;
44
44
  external_url?: string | undefined;
45
45
  }>;
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
10
10
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
11
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const sheetVariants: (props?: ({
13
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
13
+ side?: "top" | "right" | "bottom" | "left" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
16
  overlayClassName?: string;
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
10
10
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
11
11
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const sheetVariants: (props?: ({
13
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
13
+ side?: "top" | "right" | "bottom" | "left" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
16
16
  overlayClassName?: string;
@@ -7,7 +7,7 @@ declare function useTokenBalance(symbol: string | null, holderAddress: string |
7
7
  rawBalance: bigint | null;
8
8
  isLoading: boolean;
9
9
  error: any;
10
- decimals: 8 | 6 | 18;
10
+ decimals: 6 | 8 | 18;
11
11
  };
12
12
  declare function hasSufficientBalance(rawBalance: bigint | null, requiredHuman: string, decimals: number): boolean | null;
13
13
 
@@ -7,7 +7,7 @@ declare function useTokenBalance(symbol: string | null, holderAddress: string |
7
7
  rawBalance: bigint | null;
8
8
  isLoading: boolean;
9
9
  error: any;
10
- decimals: 8 | 6 | 18;
10
+ decimals: 6 | 8 | 18;
11
11
  };
12
12
  declare function hasSufficientBalance(rawBalance: bigint | null, requiredHuman: string, decimals: number): boolean | null;
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medialane/ui",
3
- "version": "0.344.0",
3
+ "version": "0.346.0",
4
4
  "description": "Shared UI components for Medialane apps",
5
5
  "type": "module",
6
6
  "sideEffects": false,