@medialane/ui 0.374.2 → 0.375.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>, "onChange" | "maxLength" | "value" | "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>, "onChange" | "maxLength" | "value" | "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>, "onChange" | "maxLength" | "value" | "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>, "onChange" | "maxLength" | "value" | "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;
@@ -78,7 +78,7 @@ function Cell({ label, value, className }) {
78
78
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
79
79
  "div",
80
80
  {
81
- className: `flex flex-col justify-end gap-1.5 rounded-3xl bg-foreground/[0.06] px-5 py-4 min-h-[5.5rem] ${className ?? ""}`,
81
+ className: `flex flex-col justify-end gap-1.5 rounded-3xl bg-foreground/[0.06] ring-1 ring-border/40 px-5 py-4 min-h-[5.5rem] ${className ?? ""}`,
82
82
  children: [
83
83
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "truncate text-xs font-medium text-muted-foreground", title: label, children: label }),
84
84
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-lg font-semibold leading-tight tracking-tight text-foreground break-words", children: value })
@@ -107,12 +107,12 @@ function AssetOverviewContent({
107
107
  const displayAttributes = attributes.filter((attribute) => isDisplayAttr(attribute));
108
108
  const licenseDescription = import_ip.LICENSE_TYPES.find((license) => license.value === licenseType)?.description;
109
109
  const facts = [
110
- { icon: import_lucide_react.DollarSign, label: t("Commercial use"), value: commercialUse, tile: "bg-brand-orange text-white", pill: "bg-white/20" },
111
- { icon: import_lucide_react.GitBranch, label: t("Derivatives"), value: derivatives, tile: "bg-brand-rose text-white", pill: "bg-white/20" },
112
- { icon: import_lucide_react.UserCheck, label: t("Attribution"), value: attribution, tile: "bg-[hsl(250_45%_14%)] text-white ring-1 ring-white/10", pill: "bg-white/15" },
113
- { icon: import_lucide_react.Globe, label: t("Territory"), value: territory, tile: "bg-brand-blue text-white", pill: "bg-white/20" },
114
- { icon: import_lucide_react.Bot, label: t("AI & data mining"), value: aiPolicy, tile: "bg-brand-purple text-white", pill: "bg-white/20" },
115
- { icon: import_lucide_react.Percent, label: t("Royalty"), value: royalty, tile: "bg-brand-orange text-white", pill: "bg-white/20" }
110
+ { icon: import_lucide_react.DollarSign, label: t("Commercial use"), value: commercialUse, tile: "bg-brand-orange/10 ring-brand-orange/20", pill: "bg-brand-orange/15 text-brand-orange", mark: "text-brand-orange" },
111
+ { icon: import_lucide_react.GitBranch, label: t("Derivatives"), value: derivatives, tile: "bg-brand-rose/10 ring-brand-rose/20", pill: "bg-brand-rose/15 text-brand-rose", mark: "text-brand-rose" },
112
+ { icon: import_lucide_react.UserCheck, label: t("Attribution"), value: attribution, tile: "bg-foreground/5 ring-border/60", pill: "bg-foreground/10 text-muted-foreground", mark: "text-foreground" },
113
+ { icon: import_lucide_react.Globe, label: t("Territory"), value: territory, tile: "bg-brand-blue/10 ring-brand-blue/20", pill: "bg-brand-blue/15 text-brand-blue", mark: "text-brand-blue" },
114
+ { icon: import_lucide_react.Bot, label: t("AI & data mining"), value: aiPolicy, tile: "bg-brand-purple/10 ring-brand-purple/20", pill: "bg-brand-purple/15 text-brand-purple", mark: "text-brand-purple" },
115
+ { icon: import_lucide_react.Percent, label: t("Royalty"), value: royalty, tile: "bg-brand-orange/10 ring-brand-orange/20", pill: "bg-brand-orange/15 text-brand-orange", mark: "text-brand-orange" }
116
116
  ].filter((row) => !!row.value);
117
117
  const factSpans2 = fillSpans(facts.map(() => 1), 2);
118
118
  const factSpansLg = bentoSpans(facts.length);
@@ -132,34 +132,34 @@ function AssetOverviewContent({
132
132
  hasLicenseData ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-3", children: [
133
133
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "text-sm font-semibold text-muted-foreground", children: t("Rights") }),
134
134
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-2 lg:grid-cols-6 gap-3", children: [
135
- /* @__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: [
136
- /* @__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" }),
137
- /* @__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" }),
135
+ /* @__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/15 via-brand-blue/10 to-transparent p-6 text-foreground ring-1 ring-brand-blue/20 backdrop-blur-sm sm:p-8", children: [
136
+ /* @__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-brand-blue/10" }),
137
+ /* @__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/25 blur-xl" }),
138
138
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative space-y-3", children: [
139
139
  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,
140
- licenseDescription ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "max-w-md text-sm text-white/80", children: licenseDescription }) : null,
141
- 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
140
+ licenseDescription ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "max-w-md text-sm text-muted-foreground", children: licenseDescription }) : null,
141
+ summary ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "inline-block rounded-full bg-foreground/5 px-4 py-2 text-sm font-medium leading-snug text-muted-foreground ring-1 ring-border/60", children: summary }) : null
142
142
  ] })
143
143
  ] }),
144
- /* @__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)(
144
+ /* @__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, mark }, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
145
145
  "div",
146
146
  {
147
- 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]]}`,
147
+ className: `relative flex flex-col justify-between gap-4 overflow-hidden rounded-[1.75rem] p-5 text-foreground ring-1 backdrop-blur-sm ${tile} ${SPAN_2[factSpans2[index]]} ${SPAN_LG_3[factSpansLg[index]]}`,
148
148
  children: [
149
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { "aria-hidden": true, className: "pointer-events-none absolute -right-3 -top-3 h-20 w-20 opacity-15" }),
149
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { "aria-hidden": true, className: `pointer-events-none absolute -right-3 -top-3 h-20 w-20 opacity-10 ${mark}` }),
150
150
  /* @__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: [
151
151
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { className: "h-3.5 w-3.5" }),
152
152
  label
153
153
  ] }),
154
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "relative text-2xl sm:text-3xl font-semibold leading-none tracking-tight break-words", children: value })
154
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "relative text-xl sm:text-2xl font-semibold leading-none tracking-tight break-words", children: value })
155
155
  ]
156
156
  },
157
157
  label
158
158
  )) }),
159
- /* @__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-gradient-to-r from-brand-rose to-brand-orange p-5 text-white sm:p-6", children: [
160
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Scale, { "aria-hidden": true, className: "pointer-events-none absolute -right-3 -top-4 h-24 w-24 -rotate-12 text-white/15" }),
161
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-white/25", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Scale, { className: "h-5 w-5" }) }),
162
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "relative pr-16 text-sm leading-relaxed text-white/95", children: t("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.") })
159
+ /* @__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-gradient-to-r from-brand-rose/10 to-brand-orange/10 p-5 ring-1 ring-brand-rose/20 backdrop-blur-sm sm:p-6", children: [
160
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Scale, { "aria-hidden": true, className: "pointer-events-none absolute -right-3 -top-4 h-24 w-24 -rotate-12 text-brand-rose/10" }),
161
+ /* @__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/15 text-brand-rose", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Scale, { className: "h-5 w-5" }) }),
162
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "relative pr-16 text-sm leading-relaxed text-muted-foreground", children: t("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.") })
163
163
  ] })
164
164
  ] })
165
165
  ] }) : null,
@@ -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, 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\";\nimport { useT } from \"../i18n/provider.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\nfunction detailSpans(count: number): number[] {\n const out: number[] = [];\n while (out.length < count) {\n const left = count - out.length;\n if (left >= 5) out.push(1, 2, 1);\n else if (left === 4 || left === 2) out.push(...Array(left).fill(2));\n else if (left === 3) out.push(1, 2, 1);\n else out.push(4);\n }\n return out.slice(0, count);\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.5 rounded-3xl bg-foreground/[0.06] px-5 py-4 min-h-[5.5rem] ${className ?? \"\"}`}\n >\n <p className=\"truncate text-xs font-medium text-muted-foreground\" title={label}>{label}</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 t = useT();\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: t(\"Commercial use\"), value: commercialUse, tile: \"bg-brand-orange text-white\", pill: \"bg-white/20\" },\n { icon: GitBranch, label: t(\"Derivatives\"), value: derivatives, tile: \"bg-brand-rose text-white\", pill: \"bg-white/20\" },\n { icon: UserCheck, label: t(\"Attribution\"), value: attribution, tile: \"bg-[hsl(250_45%_14%)] text-white ring-1 ring-white/10\", pill: \"bg-white/15\" },\n { icon: Globe, label: t(\"Territory\"), value: territory, tile: \"bg-brand-blue text-white\", pill: \"bg-white/20\" },\n { icon: Bot, label: t(\"AI & data mining\"), value: aiPolicy, tile: \"bg-brand-purple text-white\", pill: \"bg-white/20\" },\n { icon: Percent, label: t(\"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 = detailSpans(displayAttributes.length).map((span, index) => Math.max(span, detailUnits[index]));\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\">{t(\"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 {t(\"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\">{t(\"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 -right-3 -top-3 h-20 w-20 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-gradient-to-r from-brand-rose to-brand-orange p-5 text-white sm:p-6\">\n <Scale aria-hidden className=\"pointer-events-none absolute -right-3 -top-4 h-24 w-24 -rotate-12 text-white/15\" />\n <span className=\"relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-white/25\">\n <Scale className=\"h-5 w-5\" />\n </span>\n <p className=\"relative pr-16 text-sm leading-relaxed text-white/95\">\n {t(\"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\">{t(\"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 ?? t(\"Trait\")}\n className={`${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\">{t(\"No additional details available.\")}</p>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA6EI;AA1EJ,0BAA2F;AAC3F,6BAA8B;AAC9B,6BAA+B;AAC/B,2BAA6B;AAC7B,6BAA+B;AAC/B,gBAA8B;AAC9B,sBAAqB;AAerB,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,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,QACrB,KAAI,KAAK,GAAG,KAAK,MAAM,CAAC,CAAC;AAAA,EA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AChG,6CAAC,UAAK,WAAW,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,mKACb;AAAA,sDAAC,6BAAM,eAAW,MAAC,WAAU,mFAAkF;AAAA,UAC/G,4CAAC,UAAK,WAAU,yFACd,sDAAC,6BAAM,WAAU,WAAU,GAC7B;AAAA,UACA,4CAAC,OAAE,WAAU,wDACV,YAAE,8NAA8N,GACnO;AAAA,WACF;AAAA,SACF;AAAA,OACF,IACE;AAAA,IAEH,kBAAkB,SAAS,IAC1B,6CAAC,aAAQ,WAAU,aACjB;AAAA,kDAAC,QAAG,WAAU,+CAA+C,YAAE,SAAS,GAAE;AAAA,MAC1E,4CAAC,SAAI,WAAU,gEACZ,4BAAkB,IAAI,CAAC,WAAW,UACjC;AAAA,QAAC;AAAA;AAAA,UAEC,OAAO,UAAU,cAAc,EAAE,OAAO;AAAA,UACxC,WAAW,GAAG,OAAO,aAAa,KAAK,CAAC,CAAC,IAAI,UAAU,cAAc,KAAK,CAAC,CAAC;AAAA,UAC5E,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,iCAAiC,YAAE,kCAAkC,GAAE,IAClF;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\";\nimport { useT } from \"../i18n/provider.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\nfunction detailSpans(count: number): number[] {\n const out: number[] = [];\n while (out.length < count) {\n const left = count - out.length;\n if (left >= 5) out.push(1, 2, 1);\n else if (left === 4 || left === 2) out.push(...Array(left).fill(2));\n else if (left === 3) out.push(1, 2, 1);\n else out.push(4);\n }\n return out.slice(0, count);\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.5 rounded-3xl bg-foreground/[0.06] ring-1 ring-border/40 px-5 py-4 min-h-[5.5rem] ${className ?? \"\"}`}\n >\n <p className=\"truncate text-xs font-medium text-muted-foreground\" title={label}>{label}</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 t = useT();\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: t(\"Commercial use\"), value: commercialUse, tile: \"bg-brand-orange/10 ring-brand-orange/20\", pill: \"bg-brand-orange/15 text-brand-orange\", mark: \"text-brand-orange\" },\n { icon: GitBranch, label: t(\"Derivatives\"), value: derivatives, tile: \"bg-brand-rose/10 ring-brand-rose/20\", pill: \"bg-brand-rose/15 text-brand-rose\", mark: \"text-brand-rose\" },\n { icon: UserCheck, label: t(\"Attribution\"), value: attribution, tile: \"bg-foreground/5 ring-border/60\", pill: \"bg-foreground/10 text-muted-foreground\", mark: \"text-foreground\" },\n { icon: Globe, label: t(\"Territory\"), value: territory, tile: \"bg-brand-blue/10 ring-brand-blue/20\", pill: \"bg-brand-blue/15 text-brand-blue\", mark: \"text-brand-blue\" },\n { icon: Bot, label: t(\"AI & data mining\"), value: aiPolicy, tile: \"bg-brand-purple/10 ring-brand-purple/20\", pill: \"bg-brand-purple/15 text-brand-purple\", mark: \"text-brand-purple\" },\n { icon: Percent, label: t(\"Royalty\"), value: royalty, tile: \"bg-brand-orange/10 ring-brand-orange/20\", pill: \"bg-brand-orange/15 text-brand-orange\", mark: \"text-brand-orange\" },\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 = detailSpans(displayAttributes.length).map((span, index) => Math.max(span, detailUnits[index]));\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\">{t(\"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 {t(\"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\">{t(\"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/15 via-brand-blue/10 to-transparent p-6 text-foreground ring-1 ring-brand-blue/20 backdrop-blur-sm 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-brand-blue/10\" />\n <span aria-hidden className=\"pointer-events-none absolute right-10 top-12 h-20 w-20 rounded-full bg-brand-rose/25 blur-xl\" />\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-muted-foreground\">{licenseDescription}</p>\n ) : null}\n {summary ? (\n <p className=\"inline-block rounded-full bg-foreground/5 px-4 py-2 text-sm font-medium leading-snug text-muted-foreground ring-1 ring-border/60\">\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, mark }, index) => (\n <div\n key={label}\n className={`relative flex flex-col justify-between gap-4 overflow-hidden rounded-[1.75rem] p-5 text-foreground ring-1 backdrop-blur-sm ${tile} ${SPAN_2[factSpans2[index]]} ${SPAN_LG_3[factSpansLg[index]]}`}\n >\n <Icon aria-hidden className={`pointer-events-none absolute -right-3 -top-3 h-20 w-20 opacity-10 ${mark}`} />\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-xl sm:text-2xl 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-gradient-to-r from-brand-rose/10 to-brand-orange/10 p-5 ring-1 ring-brand-rose/20 backdrop-blur-sm sm:p-6\">\n <Scale aria-hidden className=\"pointer-events-none absolute -right-3 -top-4 h-24 w-24 -rotate-12 text-brand-rose/10\" />\n <span className=\"relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-brand-rose/15 text-brand-rose\">\n <Scale className=\"h-5 w-5\" />\n </span>\n <p className=\"relative pr-16 text-sm leading-relaxed text-muted-foreground\">\n {t(\"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\">{t(\"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 ?? t(\"Trait\")}\n className={`${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\">{t(\"No additional details available.\")}</p>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA6EI;AA1EJ,0BAA2F;AAC3F,6BAA8B;AAC9B,6BAA+B;AAC/B,2BAA6B;AAC7B,6BAA+B;AAC/B,gBAA8B;AAC9B,sBAAqB;AAerB,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,IAAI,CAAC,SAAS,KAAK,IAAI,MAAM,IAAI,CAAC;AACpD,QAAM,OAA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O,UAAU,cAAc,EAAE,OAAO;AAAA,UACxC,WAAW,GAAG,OAAO,aAAa,KAAK,CAAC,CAAC,IAAI,UAAU,cAAc,KAAK,CAAC,CAAC;AAAA,UAC5E,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,iCAAiC,YAAE,kCAAkC,GAAE,IAClF;AAAA,KACN;AAEJ;","names":[]}
@@ -55,7 +55,7 @@ function Cell({ label, value, className }) {
55
55
  return /* @__PURE__ */ jsxs(
56
56
  "div",
57
57
  {
58
- className: `flex flex-col justify-end gap-1.5 rounded-3xl bg-foreground/[0.06] px-5 py-4 min-h-[5.5rem] ${className ?? ""}`,
58
+ className: `flex flex-col justify-end gap-1.5 rounded-3xl bg-foreground/[0.06] ring-1 ring-border/40 px-5 py-4 min-h-[5.5rem] ${className ?? ""}`,
59
59
  children: [
60
60
  /* @__PURE__ */ jsx("p", { className: "truncate text-xs font-medium text-muted-foreground", title: label, children: label }),
61
61
  /* @__PURE__ */ jsx("div", { className: "text-lg font-semibold leading-tight tracking-tight text-foreground break-words", children: value })
@@ -84,12 +84,12 @@ function AssetOverviewContent({
84
84
  const displayAttributes = attributes.filter((attribute) => isDisplayAttr(attribute));
85
85
  const licenseDescription = LICENSE_TYPES.find((license) => license.value === licenseType)?.description;
86
86
  const facts = [
87
- { icon: DollarSign, label: t("Commercial use"), value: commercialUse, tile: "bg-brand-orange text-white", pill: "bg-white/20" },
88
- { icon: GitBranch, label: t("Derivatives"), value: derivatives, tile: "bg-brand-rose text-white", pill: "bg-white/20" },
89
- { icon: UserCheck, label: t("Attribution"), value: attribution, tile: "bg-[hsl(250_45%_14%)] text-white ring-1 ring-white/10", pill: "bg-white/15" },
90
- { icon: Globe, label: t("Territory"), value: territory, tile: "bg-brand-blue text-white", pill: "bg-white/20" },
91
- { icon: Bot, label: t("AI & data mining"), value: aiPolicy, tile: "bg-brand-purple text-white", pill: "bg-white/20" },
92
- { icon: Percent, label: t("Royalty"), value: royalty, tile: "bg-brand-orange text-white", pill: "bg-white/20" }
87
+ { icon: DollarSign, label: t("Commercial use"), value: commercialUse, tile: "bg-brand-orange/10 ring-brand-orange/20", pill: "bg-brand-orange/15 text-brand-orange", mark: "text-brand-orange" },
88
+ { icon: GitBranch, label: t("Derivatives"), value: derivatives, tile: "bg-brand-rose/10 ring-brand-rose/20", pill: "bg-brand-rose/15 text-brand-rose", mark: "text-brand-rose" },
89
+ { icon: UserCheck, label: t("Attribution"), value: attribution, tile: "bg-foreground/5 ring-border/60", pill: "bg-foreground/10 text-muted-foreground", mark: "text-foreground" },
90
+ { icon: Globe, label: t("Territory"), value: territory, tile: "bg-brand-blue/10 ring-brand-blue/20", pill: "bg-brand-blue/15 text-brand-blue", mark: "text-brand-blue" },
91
+ { icon: Bot, label: t("AI & data mining"), value: aiPolicy, tile: "bg-brand-purple/10 ring-brand-purple/20", pill: "bg-brand-purple/15 text-brand-purple", mark: "text-brand-purple" },
92
+ { icon: Percent, label: t("Royalty"), value: royalty, tile: "bg-brand-orange/10 ring-brand-orange/20", pill: "bg-brand-orange/15 text-brand-orange", mark: "text-brand-orange" }
93
93
  ].filter((row) => !!row.value);
94
94
  const factSpans2 = fillSpans(facts.map(() => 1), 2);
95
95
  const factSpansLg = bentoSpans(facts.length);
@@ -109,34 +109,34 @@ function AssetOverviewContent({
109
109
  hasLicenseData ? /* @__PURE__ */ jsxs("section", { className: "space-y-3", children: [
110
110
  /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-muted-foreground", children: t("Rights") }),
111
111
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-6 gap-3", children: [
112
- /* @__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: [
113
- /* @__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" }),
114
- /* @__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" }),
112
+ /* @__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/15 via-brand-blue/10 to-transparent p-6 text-foreground ring-1 ring-brand-blue/20 backdrop-blur-sm sm:p-8", children: [
113
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute -right-16 -top-16 h-64 w-64 rounded-full ring-[28px] ring-brand-blue/10" }),
114
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute right-10 top-12 h-20 w-20 rounded-full bg-brand-rose/25 blur-xl" }),
115
115
  /* @__PURE__ */ jsxs("div", { className: "relative space-y-3", children: [
116
116
  licenseType ? /* @__PURE__ */ jsx("p", { className: "text-3xl sm:text-4xl font-semibold tracking-tight leading-[1.05]", children: licenseLabel(licenseType) }) : null,
117
- licenseDescription ? /* @__PURE__ */ jsx("p", { className: "max-w-md text-sm text-white/80", children: licenseDescription }) : null,
118
- 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
117
+ licenseDescription ? /* @__PURE__ */ jsx("p", { className: "max-w-md text-sm text-muted-foreground", children: licenseDescription }) : null,
118
+ summary ? /* @__PURE__ */ jsx("p", { className: "inline-block rounded-full bg-foreground/5 px-4 py-2 text-sm font-medium leading-snug text-muted-foreground ring-1 ring-border/60", children: summary }) : null
119
119
  ] })
120
120
  ] }),
121
- /* @__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(
121
+ /* @__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, mark }, index) => /* @__PURE__ */ jsxs(
122
122
  "div",
123
123
  {
124
- 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]]}`,
124
+ className: `relative flex flex-col justify-between gap-4 overflow-hidden rounded-[1.75rem] p-5 text-foreground ring-1 backdrop-blur-sm ${tile} ${SPAN_2[factSpans2[index]]} ${SPAN_LG_3[factSpansLg[index]]}`,
125
125
  children: [
126
- /* @__PURE__ */ jsx(Icon, { "aria-hidden": true, className: "pointer-events-none absolute -right-3 -top-3 h-20 w-20 opacity-15" }),
126
+ /* @__PURE__ */ jsx(Icon, { "aria-hidden": true, className: `pointer-events-none absolute -right-3 -top-3 h-20 w-20 opacity-10 ${mark}` }),
127
127
  /* @__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: [
128
128
  /* @__PURE__ */ jsx(Icon, { className: "h-3.5 w-3.5" }),
129
129
  label
130
130
  ] }),
131
- /* @__PURE__ */ jsx("p", { className: "relative text-2xl sm:text-3xl font-semibold leading-none tracking-tight break-words", children: value })
131
+ /* @__PURE__ */ jsx("p", { className: "relative text-xl sm:text-2xl font-semibold leading-none tracking-tight break-words", children: value })
132
132
  ]
133
133
  },
134
134
  label
135
135
  )) }),
136
- /* @__PURE__ */ jsxs("div", { className: "relative col-span-2 lg:col-span-6 flex items-center gap-4 overflow-hidden rounded-[2rem] bg-gradient-to-r from-brand-rose to-brand-orange p-5 text-white sm:p-6", children: [
137
- /* @__PURE__ */ jsx(Scale, { "aria-hidden": true, className: "pointer-events-none absolute -right-3 -top-4 h-24 w-24 -rotate-12 text-white/15" }),
138
- /* @__PURE__ */ jsx("span", { className: "relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-white/25", children: /* @__PURE__ */ jsx(Scale, { className: "h-5 w-5" }) }),
139
- /* @__PURE__ */ jsx("p", { className: "relative pr-16 text-sm leading-relaxed text-white/95", children: t("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.") })
136
+ /* @__PURE__ */ jsxs("div", { className: "relative col-span-2 lg:col-span-6 flex items-center gap-4 overflow-hidden rounded-[2rem] bg-gradient-to-r from-brand-rose/10 to-brand-orange/10 p-5 ring-1 ring-brand-rose/20 backdrop-blur-sm sm:p-6", children: [
137
+ /* @__PURE__ */ jsx(Scale, { "aria-hidden": true, className: "pointer-events-none absolute -right-3 -top-4 h-24 w-24 -rotate-12 text-brand-rose/10" }),
138
+ /* @__PURE__ */ jsx("span", { className: "relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-brand-rose/15 text-brand-rose", children: /* @__PURE__ */ jsx(Scale, { className: "h-5 w-5" }) }),
139
+ /* @__PURE__ */ jsx("p", { className: "relative pr-16 text-sm leading-relaxed text-muted-foreground", children: t("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.") })
140
140
  ] })
141
141
  ] })
142
142
  ] }) : null,
@@ -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, 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\";\nimport { useT } from \"../i18n/provider.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\nfunction detailSpans(count: number): number[] {\n const out: number[] = [];\n while (out.length < count) {\n const left = count - out.length;\n if (left >= 5) out.push(1, 2, 1);\n else if (left === 4 || left === 2) out.push(...Array(left).fill(2));\n else if (left === 3) out.push(1, 2, 1);\n else out.push(4);\n }\n return out.slice(0, count);\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.5 rounded-3xl bg-foreground/[0.06] px-5 py-4 min-h-[5.5rem] ${className ?? \"\"}`}\n >\n <p className=\"truncate text-xs font-medium text-muted-foreground\" title={label}>{label}</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 t = useT();\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: t(\"Commercial use\"), value: commercialUse, tile: \"bg-brand-orange text-white\", pill: \"bg-white/20\" },\n { icon: GitBranch, label: t(\"Derivatives\"), value: derivatives, tile: \"bg-brand-rose text-white\", pill: \"bg-white/20\" },\n { icon: UserCheck, label: t(\"Attribution\"), value: attribution, tile: \"bg-[hsl(250_45%_14%)] text-white ring-1 ring-white/10\", pill: \"bg-white/15\" },\n { icon: Globe, label: t(\"Territory\"), value: territory, tile: \"bg-brand-blue text-white\", pill: \"bg-white/20\" },\n { icon: Bot, label: t(\"AI & data mining\"), value: aiPolicy, tile: \"bg-brand-purple text-white\", pill: \"bg-white/20\" },\n { icon: Percent, label: t(\"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 = detailSpans(displayAttributes.length).map((span, index) => Math.max(span, detailUnits[index]));\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\">{t(\"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 {t(\"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\">{t(\"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 -right-3 -top-3 h-20 w-20 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-gradient-to-r from-brand-rose to-brand-orange p-5 text-white sm:p-6\">\n <Scale aria-hidden className=\"pointer-events-none absolute -right-3 -top-4 h-24 w-24 -rotate-12 text-white/15\" />\n <span className=\"relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-white/25\">\n <Scale className=\"h-5 w-5\" />\n </span>\n <p className=\"relative pr-16 text-sm leading-relaxed text-white/95\">\n {t(\"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\">{t(\"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 ?? t(\"Trait\")}\n className={`${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\">{t(\"No additional details available.\")}</p>\n ) : null}\n </div>\n );\n}\n"],"mappings":";AA6EI,SAGE,KAHF;AA1EJ,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;AAC9B,SAAS,YAAY;AAerB,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,QACrB,KA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AK,eAAW,MAAC,WAAU,qEAAoE;AAAA,cAChG,qBAAC,UAAK,WAAW,8FAA8F,IAAI,IACjH;AAAA,oCAAC,QAAK,WAAU,eAAc;AAAA,gBAC7B;AAAA,iBACH;AAAA,cACA,oBAAC,OAAE,WAAU,uFAAuF,iBAAM;AAAA;AAAA;AAAA,UARrG;AAAA,QASP,CACD,GACH;AAAA,QAEA,qBAAC,SAAI,WAAU,mKACb;AAAA,8BAAC,SAAM,eAAW,MAAC,WAAU,mFAAkF;AAAA,UAC/G,oBAAC,UAAK,WAAU,yFACd,8BAAC,SAAM,WAAU,WAAU,GAC7B;AAAA,UACA,oBAAC,OAAE,WAAU,wDACV,YAAE,8NAA8N,GACnO;AAAA,WACF;AAAA,SACF;AAAA,OACF,IACE;AAAA,IAEH,kBAAkB,SAAS,IAC1B,qBAAC,aAAQ,WAAU,aACjB;AAAA,0BAAC,QAAG,WAAU,+CAA+C,YAAE,SAAS,GAAE;AAAA,MAC1E,oBAAC,SAAI,WAAU,gEACZ,4BAAkB,IAAI,CAAC,WAAW,UACjC;AAAA,QAAC;AAAA;AAAA,UAEC,OAAO,UAAU,cAAc,EAAE,OAAO;AAAA,UACxC,WAAW,GAAG,OAAO,aAAa,KAAK,CAAC,CAAC,IAAI,UAAU,cAAc,KAAK,CAAC,CAAC;AAAA,UAC5E,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,iCAAiC,YAAE,kCAAkC,GAAE,IAClF;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\";\nimport { useT } from \"../i18n/provider.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\nfunction detailSpans(count: number): number[] {\n const out: number[] = [];\n while (out.length < count) {\n const left = count - out.length;\n if (left >= 5) out.push(1, 2, 1);\n else if (left === 4 || left === 2) out.push(...Array(left).fill(2));\n else if (left === 3) out.push(1, 2, 1);\n else out.push(4);\n }\n return out.slice(0, count);\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.5 rounded-3xl bg-foreground/[0.06] ring-1 ring-border/40 px-5 py-4 min-h-[5.5rem] ${className ?? \"\"}`}\n >\n <p className=\"truncate text-xs font-medium text-muted-foreground\" title={label}>{label}</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 t = useT();\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: t(\"Commercial use\"), value: commercialUse, tile: \"bg-brand-orange/10 ring-brand-orange/20\", pill: \"bg-brand-orange/15 text-brand-orange\", mark: \"text-brand-orange\" },\n { icon: GitBranch, label: t(\"Derivatives\"), value: derivatives, tile: \"bg-brand-rose/10 ring-brand-rose/20\", pill: \"bg-brand-rose/15 text-brand-rose\", mark: \"text-brand-rose\" },\n { icon: UserCheck, label: t(\"Attribution\"), value: attribution, tile: \"bg-foreground/5 ring-border/60\", pill: \"bg-foreground/10 text-muted-foreground\", mark: \"text-foreground\" },\n { icon: Globe, label: t(\"Territory\"), value: territory, tile: \"bg-brand-blue/10 ring-brand-blue/20\", pill: \"bg-brand-blue/15 text-brand-blue\", mark: \"text-brand-blue\" },\n { icon: Bot, label: t(\"AI & data mining\"), value: aiPolicy, tile: \"bg-brand-purple/10 ring-brand-purple/20\", pill: \"bg-brand-purple/15 text-brand-purple\", mark: \"text-brand-purple\" },\n { icon: Percent, label: t(\"Royalty\"), value: royalty, tile: \"bg-brand-orange/10 ring-brand-orange/20\", pill: \"bg-brand-orange/15 text-brand-orange\", mark: \"text-brand-orange\" },\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 = detailSpans(displayAttributes.length).map((span, index) => Math.max(span, detailUnits[index]));\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\">{t(\"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 {t(\"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\">{t(\"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/15 via-brand-blue/10 to-transparent p-6 text-foreground ring-1 ring-brand-blue/20 backdrop-blur-sm 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-brand-blue/10\" />\n <span aria-hidden className=\"pointer-events-none absolute right-10 top-12 h-20 w-20 rounded-full bg-brand-rose/25 blur-xl\" />\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-muted-foreground\">{licenseDescription}</p>\n ) : null}\n {summary ? (\n <p className=\"inline-block rounded-full bg-foreground/5 px-4 py-2 text-sm font-medium leading-snug text-muted-foreground ring-1 ring-border/60\">\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, mark }, index) => (\n <div\n key={label}\n className={`relative flex flex-col justify-between gap-4 overflow-hidden rounded-[1.75rem] p-5 text-foreground ring-1 backdrop-blur-sm ${tile} ${SPAN_2[factSpans2[index]]} ${SPAN_LG_3[factSpansLg[index]]}`}\n >\n <Icon aria-hidden className={`pointer-events-none absolute -right-3 -top-3 h-20 w-20 opacity-10 ${mark}`} />\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-xl sm:text-2xl 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-gradient-to-r from-brand-rose/10 to-brand-orange/10 p-5 ring-1 ring-brand-rose/20 backdrop-blur-sm sm:p-6\">\n <Scale aria-hidden className=\"pointer-events-none absolute -right-3 -top-4 h-24 w-24 -rotate-12 text-brand-rose/10\" />\n <span className=\"relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-brand-rose/15 text-brand-rose\">\n <Scale className=\"h-5 w-5\" />\n </span>\n <p className=\"relative pr-16 text-sm leading-relaxed text-muted-foreground\">\n {t(\"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\">{t(\"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 ?? t(\"Trait\")}\n className={`${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\">{t(\"No additional details available.\")}</p>\n ) : null}\n </div>\n );\n}\n"],"mappings":";AA6EI,SAGE,KAHF;AA1EJ,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;AAC9B,SAAS,YAAY;AAerB,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,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AkB,IAAI,CAAC,WAAW,UACjC;AAAA,QAAC;AAAA;AAAA,UAEC,OAAO,UAAU,cAAc,EAAE,OAAO;AAAA,UACxC,WAAW,GAAG,OAAO,aAAa,KAAK,CAAC,CAAC,IAAI,UAAU,cAAc,KAAK,CAAC,CAAC;AAAA,UAC5E,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,iCAAiC,YAAE,kCAAkC,GAAE,IAClF;AAAA,KACN;AAEJ;","names":[]}
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
7
+ variant?: "default" | "secondary" | "outline" | "destructive" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
10
10
  }
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const badgeVariants: (props?: ({
7
- variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
7
+ variant?: "default" | "secondary" | "outline" | "destructive" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
10
10
  }
@@ -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?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
6
+ variant?: "default" | "secondary" | "outline" | "link" | "destructive" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
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> {
@@ -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?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
6
+ variant?: "default" | "secondary" | "outline" | "link" | "destructive" | "ghost" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
7
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> {
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
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 | 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;
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;
9
9
 
10
10
  export { FastMint };
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
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 | 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;
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;
9
9
 
10
10
  export { FastMint };
@@ -15,9 +15,8 @@ declare const editionMintSchema: z.ZodObject<{
15
15
  aiPolicy: z.ZodEnum<["Allowed", "Not Allowed", "Training Only"]>;
16
16
  royalty: z.ZodNumber;
17
17
  }, "strip", z.ZodTypeAny, {
18
- ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
19
18
  name: string;
20
- value: string;
19
+ ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
21
20
  licenseType: string;
22
21
  commercialUse: "Yes" | "No";
23
22
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
@@ -25,13 +24,13 @@ declare const editionMintSchema: z.ZodObject<{
25
24
  geographicScope: string;
26
25
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
27
26
  royalty: number;
27
+ value: string;
28
28
  recipient: string;
29
29
  description?: string | undefined;
30
30
  external_url?: string | undefined;
31
31
  }, {
32
- ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
33
32
  name: string;
34
- value: string;
33
+ ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
35
34
  licenseType: string;
36
35
  commercialUse: "Yes" | "No";
37
36
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
@@ -39,6 +38,7 @@ declare const editionMintSchema: z.ZodObject<{
39
38
  geographicScope: string;
40
39
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
41
40
  royalty: number;
41
+ value: string;
42
42
  recipient: string;
43
43
  description?: string | undefined;
44
44
  external_url?: string | undefined;
@@ -15,9 +15,8 @@ declare const editionMintSchema: z.ZodObject<{
15
15
  aiPolicy: z.ZodEnum<["Allowed", "Not Allowed", "Training Only"]>;
16
16
  royalty: z.ZodNumber;
17
17
  }, "strip", z.ZodTypeAny, {
18
- ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
19
18
  name: string;
20
- value: string;
19
+ ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
21
20
  licenseType: string;
22
21
  commercialUse: "Yes" | "No";
23
22
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
@@ -25,13 +24,13 @@ declare const editionMintSchema: z.ZodObject<{
25
24
  geographicScope: string;
26
25
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
27
26
  royalty: number;
27
+ value: string;
28
28
  recipient: string;
29
29
  description?: string | undefined;
30
30
  external_url?: string | undefined;
31
31
  }, {
32
- ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
33
32
  name: string;
34
- value: string;
33
+ ipType: "Audio" | "Video" | "Art" | "Photography" | "NFT" | "RWA" | "Posts" | "Publications" | "Documents";
35
34
  licenseType: string;
36
35
  commercialUse: "Yes" | "No";
37
36
  derivatives: "Allowed" | "Not Allowed" | "Share-Alike";
@@ -39,6 +38,7 @@ declare const editionMintSchema: z.ZodObject<{
39
38
  geographicScope: string;
40
39
  aiPolicy: "Allowed" | "Not Allowed" | "Training Only";
41
40
  royalty: number;
41
+ value: string;
42
42
  recipient: string;
43
43
  description?: string | undefined;
44
44
  external_url?: string | undefined;
@@ -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.374.2",
3
+ "version": "0.375.0",
4
4
  "description": "Shared UI components for Medialane apps",
5
5
  "type": "module",
6
6
  "sideEffects": false,