@medialane/ui 0.343.0 → 0.345.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.
@@ -1,7 +1,7 @@
1
1
  import * as input_otp from 'input-otp';
2
2
  import * as React from 'react';
3
3
 
4
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
4
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
5
5
  value?: string;
6
6
  onChange?: (newValue: string) => unknown;
7
7
  maxLength: number;
@@ -14,7 +14,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
14
14
  } & {
15
15
  render: (props: input_otp.RenderProps) => React.ReactNode;
16
16
  children?: never;
17
- } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
17
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
18
18
  value?: string;
19
19
  onChange?: (newValue: string) => unknown;
20
20
  maxLength: number;
@@ -1,7 +1,7 @@
1
1
  import * as input_otp from 'input-otp';
2
2
  import * as React from 'react';
3
3
 
4
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
4
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
5
5
  value?: string;
6
6
  onChange?: (newValue: string) => unknown;
7
7
  maxLength: number;
@@ -14,7 +14,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
14
14
  } & {
15
15
  render: (props: input_otp.RenderProps) => React.ReactNode;
16
16
  children?: never;
17
- } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
17
+ } & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
18
18
  value?: string;
19
19
  onChange?: (newValue: string) => unknown;
20
20
  maxLength: number;
@@ -95,23 +95,23 @@ function AssetCard({
95
95
  }
96
96
  ),
97
97
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "absolute inset-x-2 bottom-2 flex flex-col items-start gap-1", children: [
98
- indexing && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "flex items-center gap-1 rounded-full px-2.5 py-1 text-2xs text-white bg-black/30 backdrop-blur-md", children: [
99
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Loader2, { className: "h-2.5 w-2.5 animate-spin" }),
98
+ indexing && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "flex items-center gap-1 rounded-full px-3 py-1 text-xs text-white bg-black/30 backdrop-blur-md", children: [
99
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Loader2, { className: "h-3 w-3 animate-spin" }),
100
100
  "Indexing\u2026"
101
101
  ] }),
102
102
  (hasPrice || soulbound) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-wrap items-center gap-1", children: [
103
- soulbound && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-2xs font-medium text-white bg-black/30 backdrop-blur-md", children: [
104
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Fingerprint, { className: "h-2.5 w-2.5", "aria-hidden": true }),
103
+ soulbound && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("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", children: [
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-2.5 py-1 text-2xs 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: 10 }),
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 py-1 text-sm font-bold leading-tight text-white bg-black/30 backdrop-blur-md", children: name }),
114
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "max-w-full truncate rounded-full px-2.5 py-1 text-2xs font-medium leading-tight text-white bg-black/30 backdrop-blur-md", children: subtitle })
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
+ 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
  ] })
117
117
  ]
@@ -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-2.5 py-1 text-2xs text-white bg-black/30 backdrop-blur-md\">\n <Loader2 className=\"h-2.5 w-2.5 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-2.5 py-1 text-2xs font-medium text-white bg-black/30 backdrop-blur-md\">\n <Fingerprint className=\"h-2.5 w-2.5\" aria-hidden />\n Soulbound\n </span>\n )}\n {hasPrice && (\n <span className=\"inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-2xs font-bold tabular-nums text-white bg-black/30 backdrop-blur-md\">\n <CurrencyIcon symbol={price!.currency} size={10} />\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-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-2.5 py-1 text-2xs 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,WAA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A;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,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;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@ function AssetCard({
61
61
  }
62
62
  ),
63
63
  /* @__PURE__ */ jsxs("div", { className: "absolute inset-x-2 bottom-2 flex flex-col items-start gap-1", children: [
64
- indexing && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 rounded-full px-2.5 py-1 text-2xs text-white bg-black/30 backdrop-blur-md", children: [
65
- /* @__PURE__ */ jsx(Loader2, { className: "h-2.5 w-2.5 animate-spin" }),
64
+ indexing && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 rounded-full px-3 py-1 text-xs text-white bg-black/30 backdrop-blur-md", children: [
65
+ /* @__PURE__ */ jsx(Loader2, { className: "h-3 w-3 animate-spin" }),
66
66
  "Indexing\u2026"
67
67
  ] }),
68
68
  (hasPrice || soulbound) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1", children: [
69
- soulbound && /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-2xs font-medium text-white bg-black/30 backdrop-blur-md", children: [
70
- /* @__PURE__ */ jsx(Fingerprint, { className: "h-2.5 w-2.5", "aria-hidden": true }),
69
+ soulbound && /* @__PURE__ */ jsxs("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", children: [
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-2.5 py-1 text-2xs font-bold tabular-nums text-white bg-black/30 backdrop-blur-md", children: [
74
- /* @__PURE__ */ jsx(CurrencyIcon, { symbol: price.currency, size: 10 }),
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 py-1 text-sm font-bold leading-tight text-white bg-black/30 backdrop-blur-md", children: name }),
80
- subtitle && /* @__PURE__ */ jsx("p", { className: "max-w-full truncate rounded-full px-2.5 py-1 text-2xs font-medium leading-tight text-white bg-black/30 backdrop-blur-md", children: subtitle })
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
+ 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
  ] })
83
83
  ]
@@ -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-2.5 py-1 text-2xs text-white bg-black/30 backdrop-blur-md\">\n <Loader2 className=\"h-2.5 w-2.5 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-2.5 py-1 text-2xs font-medium text-white bg-black/30 backdrop-blur-md\">\n <Fingerprint className=\"h-2.5 w-2.5\" aria-hidden />\n Soulbound\n </span>\n )}\n {hasPrice && (\n <span className=\"inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-2xs font-bold tabular-nums text-white bg-black/30 backdrop-blur-md\">\n <CurrencyIcon symbol={price!.currency} size={10} />\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-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-2.5 py-1 text-2xs 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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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>\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,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":[]}
@@ -3,8 +3,8 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
- size?: "icon" | "default" | "sm" | "lg" | null | undefined;
6
+ variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
+ size?: "default" | "icon" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
10
  asChild?: boolean;
@@ -3,8 +3,8 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const buttonVariants: (props?: ({
6
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
- size?: "icon" | "default" | "sm" | "lg" | null | undefined;
6
+ variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
+ size?: "default" | "icon" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
10
  asChild?: boolean;
@@ -19,13 +19,13 @@ declare const editionMintSchema: z.ZodObject<{
19
19
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
20
20
  licenseType: string;
21
21
  commercialUse: "Yes" | "No";
22
- value: string;
23
- recipient: string;
24
22
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
25
23
  attribution: "Required" | "Not Required";
26
24
  geographicScope: string;
27
25
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
28
26
  royalty: number;
27
+ value: string;
28
+ recipient: string;
29
29
  description?: string | undefined;
30
30
  external_url?: string | undefined;
31
31
  }, {
@@ -33,13 +33,13 @@ declare const editionMintSchema: z.ZodObject<{
33
33
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
34
34
  licenseType: string;
35
35
  commercialUse: "Yes" | "No";
36
- value: string;
37
- recipient: string;
38
36
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
39
37
  attribution: "Required" | "Not Required";
40
38
  geographicScope: string;
41
39
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
42
40
  royalty: number;
41
+ value: string;
42
+ recipient: string;
43
43
  description?: string | undefined;
44
44
  external_url?: string | undefined;
45
45
  }>;
@@ -19,13 +19,13 @@ declare const editionMintSchema: z.ZodObject<{
19
19
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
20
20
  licenseType: string;
21
21
  commercialUse: "Yes" | "No";
22
- value: string;
23
- recipient: string;
24
22
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
25
23
  attribution: "Required" | "Not Required";
26
24
  geographicScope: string;
27
25
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
28
26
  royalty: number;
27
+ value: string;
28
+ recipient: string;
29
29
  description?: string | undefined;
30
30
  external_url?: string | undefined;
31
31
  }, {
@@ -33,13 +33,13 @@ declare const editionMintSchema: z.ZodObject<{
33
33
  ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "Software" | "RWA" | "Patents" | "Posts" | "Publications" | "Documents" | "Custom";
34
34
  licenseType: string;
35
35
  commercialUse: "Yes" | "No";
36
- value: string;
37
- recipient: string;
38
36
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
39
37
  attribution: "Required" | "Not Required";
40
38
  geographicScope: string;
41
39
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
42
40
  royalty: number;
41
+ value: string;
42
+ recipient: string;
43
43
  description?: string | undefined;
44
44
  external_url?: string | undefined;
45
45
  }>;
@@ -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: 6 | 8 | 18;
10
+ decimals: 8 | 6 | 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: 6 | 8 | 18;
10
+ decimals: 8 | 6 | 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.343.0",
3
+ "version": "0.345.0",
4
4
  "description": "Shared UI components for Medialane apps",
5
5
  "type": "module",
6
6
  "sideEffects": false,