@medialane/ui 0.201.5 → 0.201.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/account/input-otp.d.cts +2 -2
- package/dist/components/account/input-otp.d.ts +2 -2
- package/dist/components/asset-type-panels.cjs +7 -7
- package/dist/components/asset-type-panels.cjs.map +1 -1
- package/dist/components/asset-type-panels.js +7 -7
- package/dist/components/asset-type-panels.js.map +1 -1
- package/dist/components/button.d.cts +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/collection-header.cjs +9 -9
- package/dist/components/collection-header.cjs.map +1 -1
- package/dist/components/collection-header.js +9 -9
- package/dist/components/collection-header.js.map +1 -1
- package/dist/components/creator-header.cjs +2 -2
- package/dist/components/creator-header.cjs.map +1 -1
- package/dist/components/creator-header.js +2 -2
- package/dist/components/creator-header.js.map +1 -1
- package/dist/components/fast-mint/fast-mint.d.cts +2 -2
- package/dist/components/fast-mint/fast-mint.d.ts +2 -2
- package/dist/components/media-header.cjs +1 -1
- package/dist/components/media-header.cjs.map +1 -1
- package/dist/components/media-header.js +1 -1
- package/dist/components/media-header.js.map +1 -1
- package/dist/components/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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>, "
|
|
4
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "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>, "
|
|
17
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "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>, "
|
|
4
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "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>, "
|
|
17
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
18
18
|
value?: string;
|
|
19
19
|
onChange?: (newValue: string) => unknown;
|
|
20
20
|
maxLength: number;
|
|
@@ -39,9 +39,9 @@ function tierStatus(t) {
|
|
|
39
39
|
}
|
|
40
40
|
const fmtDate = (ts) => new Date(ts * 1e3).toLocaleString(void 0, { dateStyle: "medium", timeStyle: "short" });
|
|
41
41
|
function windowLabel(t) {
|
|
42
|
-
if (t.startTime != null && t.endTime != null) return
|
|
43
|
-
if (t.startTime != null) return `
|
|
44
|
-
if (t.endTime != null) return `
|
|
42
|
+
if (t.startTime != null && t.endTime != null) return `${fmtDate(t.startTime)} \u2013 ${fmtDate(t.endTime)}`;
|
|
43
|
+
if (t.startTime != null) return `From ${fmtDate(t.startTime)}`;
|
|
44
|
+
if (t.endTime != null) return `Until ${fmtDate(t.endTime)}`;
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
const STATUS_ICON = { upcoming: import_lucide_react.Clock, active: import_lucide_react.CheckCircle2, ended: import_lucide_react.CalendarX2, always: import_lucide_react.Infinity };
|
|
@@ -62,10 +62,10 @@ function TierPanel({
|
|
|
62
62
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { className: (0, import_cn.cn)("h-4 w-4", iconClassName) }),
|
|
63
63
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm font-semibold", children: title })
|
|
64
64
|
] }),
|
|
65
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: (0, import_cn.cn)("inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium border", status === "upcoming" || status === "ended" ? OFF : ON), children: [
|
|
65
|
+
labels[status] ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: (0, import_cn.cn)("inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium border", status === "upcoming" || status === "ended" ? OFF : ON), children: [
|
|
66
66
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusIcon, { className: "h-3.5 w-3.5" }),
|
|
67
67
|
labels[status]
|
|
68
|
-
] })
|
|
68
|
+
] }) : null
|
|
69
69
|
] }),
|
|
70
70
|
window ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: window }) : null,
|
|
71
71
|
footer
|
|
@@ -81,7 +81,7 @@ function TicketPanel({ contract, tokenId }) {
|
|
|
81
81
|
icon: import_lucide_react.Ticket,
|
|
82
82
|
iconClassName: "text-brand-blue",
|
|
83
83
|
title: "Ticket",
|
|
84
|
-
labels: { upcoming: "Upcoming", active: "
|
|
84
|
+
labels: { upcoming: "Upcoming", active: "Happening now", ended: "Ended" }
|
|
85
85
|
}
|
|
86
86
|
);
|
|
87
87
|
}
|
|
@@ -110,7 +110,7 @@ function MembershipPanel({ contract, tokenId, quantityOwned }) {
|
|
|
110
110
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
111
111
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Clock, { className: "h-4 w-4 text-muted-foreground" }),
|
|
112
112
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-sm text-muted-foreground", children: [
|
|
113
|
-
status === "upcoming" ? "
|
|
113
|
+
status === "upcoming" ? "Starts soon" : "Ended",
|
|
114
114
|
" \xB7 ",
|
|
115
115
|
cardLabel
|
|
116
116
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/asset-type-panels.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ElementType } from \"react\";\nimport { CalendarX2, CheckCircle2, Clock, Infinity as InfinityIcon, Ticket, Users } from \"lucide-react\";\nimport { useIsMemberOf, useMembershipOnchain, useTicketOnchain, type TierOnchain } from \"../utils/use-tiers.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { cn } from \"../utils/cn.js\";\n\ntype TierStatus = \"upcoming\" | \"active\" | \"ended\" | \"always\";\n\nconst ON = \"bg-teal-500/10 text-teal-600 dark:text-teal-400 border-teal-500/30\";\nconst OFF = \"bg-muted text-muted-foreground border-border\";\n\nfunction tierStatus(t: TierOnchain): TierStatus {\n if (t.startTime == null && t.endTime == null) return \"always\";\n const now = Date.now() / 1000;\n if (t.startTime != null && now < t.startTime) return \"upcoming\";\n if (t.endTime != null && now >= t.endTime) return \"ended\";\n return \"active\";\n}\n\nconst fmtDate = (ts: number) => new Date(ts * 1000).toLocaleString(undefined, { dateStyle: \"medium\", timeStyle: \"short\" });\n\nfunction windowLabel(t: TierOnchain): string | null {\n if (t.startTime != null && t.endTime != null) return
|
|
1
|
+
{"version":3,"sources":["../../src/components/asset-type-panels.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ElementType } from \"react\";\nimport { CalendarX2, CheckCircle2, Clock, Infinity as InfinityIcon, Ticket, Users } from \"lucide-react\";\nimport { useIsMemberOf, useMembershipOnchain, useTicketOnchain, type TierOnchain } from \"../utils/use-tiers.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { cn } from \"../utils/cn.js\";\n\ntype TierStatus = \"upcoming\" | \"active\" | \"ended\" | \"always\";\n\nconst ON = \"bg-teal-500/10 text-teal-600 dark:text-teal-400 border-teal-500/30\";\nconst OFF = \"bg-muted text-muted-foreground border-border\";\n\nfunction tierStatus(t: TierOnchain): TierStatus {\n if (t.startTime == null && t.endTime == null) return \"always\";\n const now = Date.now() / 1000;\n if (t.startTime != null && now < t.startTime) return \"upcoming\";\n if (t.endTime != null && now >= t.endTime) return \"ended\";\n return \"active\";\n}\n\nconst fmtDate = (ts: number) => new Date(ts * 1000).toLocaleString(undefined, { dateStyle: \"medium\", timeStyle: \"short\" });\n\nfunction windowLabel(t: TierOnchain): string | null {\n if (t.startTime != null && t.endTime != null) return `${fmtDate(t.startTime)} – ${fmtDate(t.endTime)}`;\n if (t.startTime != null) return `From ${fmtDate(t.startTime)}`;\n if (t.endTime != null) return `Until ${fmtDate(t.endTime)}`;\n return null;\n}\n\nconst STATUS_ICON: Record<TierStatus, ElementType> = { upcoming: Clock, active: CheckCircle2, ended: CalendarX2, always: InfinityIcon };\n\nfunction TierPanel({\n tier,\n icon: Icon,\n iconClassName,\n title,\n labels,\n footer,\n}: {\n tier: TierOnchain;\n icon: ElementType;\n iconClassName: string;\n title: string;\n labels: Partial<Record<TierStatus, string>>;\n footer?: React.ReactNode;\n}) {\n const status = tierStatus(tier);\n const window = windowLabel(tier);\n const StatusIcon = STATUS_ICON[status];\n return (\n <div className=\"rounded-2xl bg-gradient-to-br from-muted/40 to-transparent p-4 space-y-3\">\n <div className=\"flex items-center justify-between gap-3 flex-wrap\">\n <div className=\"flex items-center gap-2\">\n <Icon className={cn(\"h-4 w-4\", iconClassName)} />\n <span className=\"text-sm font-semibold\">{title}</span>\n </div>\n {labels[status] ? (\n <span className={cn(\"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium border\", status === \"upcoming\" || status === \"ended\" ? OFF : ON)}>\n <StatusIcon className=\"h-3.5 w-3.5\" />\n {labels[status]}\n </span>\n ) : null}\n </div>\n {window ? <p className=\"text-sm text-muted-foreground\">{window}</p> : null}\n {footer}\n </div>\n );\n}\n\nexport interface AssetTypePanelProps {\n contract: string;\n tokenId: string;\n quantityOwned?: string;\n}\n\nexport function TicketPanel({ contract, tokenId }: AssetTypePanelProps) {\n const { ticket } = useTicketOnchain(contract, tokenId);\n if (!ticket) return null;\n return (\n <TierPanel\n tier={ticket}\n icon={Ticket}\n iconClassName=\"text-brand-blue\"\n title=\"Ticket\"\n labels={{ upcoming: \"Upcoming\", active: \"Happening now\", ended: \"Ended\" }}\n />\n );\n}\n\nexport function MembershipPanel({ contract, tokenId, quantityOwned }: AssetTypePanelProps) {\n const { walletAddress } = useMedialaneApp();\n const { membership } = useMembershipOnchain(contract, tokenId);\n const { isMember } = useIsMemberOf(contract, tokenId, walletAddress);\n if (!membership) return null;\n const cards = quantityOwned ? Number(quantityOwned) : 0;\n const status = tierStatus(membership);\n const cardLabel = `${cards} card${cards > 1 ? \"s\" : \"\"}`;\n return (\n <TierPanel\n tier={membership}\n icon={Users}\n iconClassName=\"text-brand-purple\"\n title=\"Membership\"\n labels={{ upcoming: \"Upcoming\", active: \"Active\", ended: \"Ended\", always: \"Lifetime\" }}\n footer={cards > 0 ? (\n <div className=\"flex items-center gap-2 border-t border-border/60 pt-3\">\n {isMember ? (\n <>\n <CheckCircle2 className=\"h-4 w-4 text-teal-500\" />\n <p className=\"text-sm font-medium\">Active member · {cardLabel}</p>\n </>\n ) : (\n <>\n <Clock className=\"h-4 w-4 text-muted-foreground\" />\n <p className=\"text-sm text-muted-foreground\">{status === \"upcoming\" ? \"Starts soon\" : \"Ended\"} · {cardLabel}</p>\n </>\n )}\n </div>\n ) : null}\n />\n );\n}\n"],"mappings":"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","names":["InfinityIcon"]}
|
|
@@ -15,9 +15,9 @@ function tierStatus(t) {
|
|
|
15
15
|
}
|
|
16
16
|
const fmtDate = (ts) => new Date(ts * 1e3).toLocaleString(void 0, { dateStyle: "medium", timeStyle: "short" });
|
|
17
17
|
function windowLabel(t) {
|
|
18
|
-
if (t.startTime != null && t.endTime != null) return
|
|
19
|
-
if (t.startTime != null) return `
|
|
20
|
-
if (t.endTime != null) return `
|
|
18
|
+
if (t.startTime != null && t.endTime != null) return `${fmtDate(t.startTime)} \u2013 ${fmtDate(t.endTime)}`;
|
|
19
|
+
if (t.startTime != null) return `From ${fmtDate(t.startTime)}`;
|
|
20
|
+
if (t.endTime != null) return `Until ${fmtDate(t.endTime)}`;
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
const STATUS_ICON = { upcoming: Clock, active: CheckCircle2, ended: CalendarX2, always: InfinityIcon };
|
|
@@ -38,10 +38,10 @@ function TierPanel({
|
|
|
38
38
|
/* @__PURE__ */ jsx(Icon, { className: cn("h-4 w-4", iconClassName) }),
|
|
39
39
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold", children: title })
|
|
40
40
|
] }),
|
|
41
|
-
/* @__PURE__ */ jsxs("span", { className: cn("inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium border", status === "upcoming" || status === "ended" ? OFF : ON), children: [
|
|
41
|
+
labels[status] ? /* @__PURE__ */ jsxs("span", { className: cn("inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium border", status === "upcoming" || status === "ended" ? OFF : ON), children: [
|
|
42
42
|
/* @__PURE__ */ jsx(StatusIcon, { className: "h-3.5 w-3.5" }),
|
|
43
43
|
labels[status]
|
|
44
|
-
] })
|
|
44
|
+
] }) : null
|
|
45
45
|
] }),
|
|
46
46
|
window ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: window }) : null,
|
|
47
47
|
footer
|
|
@@ -57,7 +57,7 @@ function TicketPanel({ contract, tokenId }) {
|
|
|
57
57
|
icon: Ticket,
|
|
58
58
|
iconClassName: "text-brand-blue",
|
|
59
59
|
title: "Ticket",
|
|
60
|
-
labels: { upcoming: "Upcoming", active: "
|
|
60
|
+
labels: { upcoming: "Upcoming", active: "Happening now", ended: "Ended" }
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
63
|
}
|
|
@@ -86,7 +86,7 @@ function MembershipPanel({ contract, tokenId, quantityOwned }) {
|
|
|
86
86
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
87
87
|
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 text-muted-foreground" }),
|
|
88
88
|
/* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground", children: [
|
|
89
|
-
status === "upcoming" ? "
|
|
89
|
+
status === "upcoming" ? "Starts soon" : "Ended",
|
|
90
90
|
" \xB7 ",
|
|
91
91
|
cardLabel
|
|
92
92
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/asset-type-panels.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ElementType } from \"react\";\nimport { CalendarX2, CheckCircle2, Clock, Infinity as InfinityIcon, Ticket, Users } from \"lucide-react\";\nimport { useIsMemberOf, useMembershipOnchain, useTicketOnchain, type TierOnchain } from \"../utils/use-tiers.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { cn } from \"../utils/cn.js\";\n\ntype TierStatus = \"upcoming\" | \"active\" | \"ended\" | \"always\";\n\nconst ON = \"bg-teal-500/10 text-teal-600 dark:text-teal-400 border-teal-500/30\";\nconst OFF = \"bg-muted text-muted-foreground border-border\";\n\nfunction tierStatus(t: TierOnchain): TierStatus {\n if (t.startTime == null && t.endTime == null) return \"always\";\n const now = Date.now() / 1000;\n if (t.startTime != null && now < t.startTime) return \"upcoming\";\n if (t.endTime != null && now >= t.endTime) return \"ended\";\n return \"active\";\n}\n\nconst fmtDate = (ts: number) => new Date(ts * 1000).toLocaleString(undefined, { dateStyle: \"medium\", timeStyle: \"short\" });\n\nfunction windowLabel(t: TierOnchain): string | null {\n if (t.startTime != null && t.endTime != null) return
|
|
1
|
+
{"version":3,"sources":["../../src/components/asset-type-panels.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ElementType } from \"react\";\nimport { CalendarX2, CheckCircle2, Clock, Infinity as InfinityIcon, Ticket, Users } from \"lucide-react\";\nimport { useIsMemberOf, useMembershipOnchain, useTicketOnchain, type TierOnchain } from \"../utils/use-tiers.js\";\nimport { useMedialaneApp } from \"./medialane-app.js\";\nimport { cn } from \"../utils/cn.js\";\n\ntype TierStatus = \"upcoming\" | \"active\" | \"ended\" | \"always\";\n\nconst ON = \"bg-teal-500/10 text-teal-600 dark:text-teal-400 border-teal-500/30\";\nconst OFF = \"bg-muted text-muted-foreground border-border\";\n\nfunction tierStatus(t: TierOnchain): TierStatus {\n if (t.startTime == null && t.endTime == null) return \"always\";\n const now = Date.now() / 1000;\n if (t.startTime != null && now < t.startTime) return \"upcoming\";\n if (t.endTime != null && now >= t.endTime) return \"ended\";\n return \"active\";\n}\n\nconst fmtDate = (ts: number) => new Date(ts * 1000).toLocaleString(undefined, { dateStyle: \"medium\", timeStyle: \"short\" });\n\nfunction windowLabel(t: TierOnchain): string | null {\n if (t.startTime != null && t.endTime != null) return `${fmtDate(t.startTime)} – ${fmtDate(t.endTime)}`;\n if (t.startTime != null) return `From ${fmtDate(t.startTime)}`;\n if (t.endTime != null) return `Until ${fmtDate(t.endTime)}`;\n return null;\n}\n\nconst STATUS_ICON: Record<TierStatus, ElementType> = { upcoming: Clock, active: CheckCircle2, ended: CalendarX2, always: InfinityIcon };\n\nfunction TierPanel({\n tier,\n icon: Icon,\n iconClassName,\n title,\n labels,\n footer,\n}: {\n tier: TierOnchain;\n icon: ElementType;\n iconClassName: string;\n title: string;\n labels: Partial<Record<TierStatus, string>>;\n footer?: React.ReactNode;\n}) {\n const status = tierStatus(tier);\n const window = windowLabel(tier);\n const StatusIcon = STATUS_ICON[status];\n return (\n <div className=\"rounded-2xl bg-gradient-to-br from-muted/40 to-transparent p-4 space-y-3\">\n <div className=\"flex items-center justify-between gap-3 flex-wrap\">\n <div className=\"flex items-center gap-2\">\n <Icon className={cn(\"h-4 w-4\", iconClassName)} />\n <span className=\"text-sm font-semibold\">{title}</span>\n </div>\n {labels[status] ? (\n <span className={cn(\"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium border\", status === \"upcoming\" || status === \"ended\" ? OFF : ON)}>\n <StatusIcon className=\"h-3.5 w-3.5\" />\n {labels[status]}\n </span>\n ) : null}\n </div>\n {window ? <p className=\"text-sm text-muted-foreground\">{window}</p> : null}\n {footer}\n </div>\n );\n}\n\nexport interface AssetTypePanelProps {\n contract: string;\n tokenId: string;\n quantityOwned?: string;\n}\n\nexport function TicketPanel({ contract, tokenId }: AssetTypePanelProps) {\n const { ticket } = useTicketOnchain(contract, tokenId);\n if (!ticket) return null;\n return (\n <TierPanel\n tier={ticket}\n icon={Ticket}\n iconClassName=\"text-brand-blue\"\n title=\"Ticket\"\n labels={{ upcoming: \"Upcoming\", active: \"Happening now\", ended: \"Ended\" }}\n />\n );\n}\n\nexport function MembershipPanel({ contract, tokenId, quantityOwned }: AssetTypePanelProps) {\n const { walletAddress } = useMedialaneApp();\n const { membership } = useMembershipOnchain(contract, tokenId);\n const { isMember } = useIsMemberOf(contract, tokenId, walletAddress);\n if (!membership) return null;\n const cards = quantityOwned ? Number(quantityOwned) : 0;\n const status = tierStatus(membership);\n const cardLabel = `${cards} card${cards > 1 ? \"s\" : \"\"}`;\n return (\n <TierPanel\n tier={membership}\n icon={Users}\n iconClassName=\"text-brand-purple\"\n title=\"Membership\"\n labels={{ upcoming: \"Upcoming\", active: \"Active\", ended: \"Ended\", always: \"Lifetime\" }}\n footer={cards > 0 ? (\n <div className=\"flex items-center gap-2 border-t border-border/60 pt-3\">\n {isMember ? (\n <>\n <CheckCircle2 className=\"h-4 w-4 text-teal-500\" />\n <p className=\"text-sm font-medium\">Active member · {cardLabel}</p>\n </>\n ) : (\n <>\n <Clock className=\"h-4 w-4 text-muted-foreground\" />\n <p className=\"text-sm text-muted-foreground\">{status === \"upcoming\" ? \"Starts soon\" : \"Ended\"} · {cardLabel}</p>\n </>\n )}\n </div>\n ) : null}\n />\n );\n}\n"],"mappings":"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","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?: "
|
|
7
|
-
size?: "
|
|
6
|
+
variant?: "ghost" | "link" | "default" | "destructive" | "outline" | "secondary" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
|
|
7
|
+
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
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?: "
|
|
7
|
-
size?: "
|
|
6
|
+
variant?: "ghost" | "link" | "default" | "destructive" | "outline" | "secondary" | "premium" | "tonal" | "gradient-border" | "gradient-fill" | null | undefined;
|
|
7
|
+
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
10
|
asChild?: boolean;
|
|
@@ -51,15 +51,7 @@ function CollectionHeader({ collection, loading = false, onReportClick, children
|
|
|
51
51
|
badges: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
52
52
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: CHIP, children: collection.standard === "ERC1155" ? "Multi-edition" : "Single NFT" }),
|
|
53
53
|
collection.symbol ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: CHIP, children: collection.symbol }) : null
|
|
54
|
-
] })
|
|
55
|
-
utilities: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
56
|
-
import_asset_utility_icons.AssetUtilityIcons,
|
|
57
|
-
{
|
|
58
|
-
contractExplorerHref: `${import_explorer_url.EXPLORER_URL}/contract/${collection.contractAddress}`,
|
|
59
|
-
shareTitle: name,
|
|
60
|
-
onReportClick
|
|
61
|
-
}
|
|
62
|
-
)
|
|
54
|
+
] })
|
|
63
55
|
}
|
|
64
56
|
),
|
|
65
57
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_media_header.HeaderStats, { children: [
|
|
@@ -72,6 +64,14 @@ function CollectionHeader({ collection, loading = false, onReportClick, children
|
|
|
72
64
|
collection.owner ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_creator_chip.CreatorChip, { address: collection.owner }) : null,
|
|
73
65
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_address_display.AddressDisplay, { address: collection.contractAddress, chars: 6, className: "text-xs text-muted-foreground" })
|
|
74
66
|
] }),
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "-ml-3", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
68
|
+
import_asset_utility_icons.AssetUtilityIcons,
|
|
69
|
+
{
|
|
70
|
+
contractExplorerHref: `${import_explorer_url.EXPLORER_URL}/contract/${collection.contractAddress}`,
|
|
71
|
+
shareTitle: name,
|
|
72
|
+
onReportClick
|
|
73
|
+
}
|
|
74
|
+
) }),
|
|
75
75
|
children
|
|
76
76
|
] }) : null });
|
|
77
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { AssetUtilityIcons } from \"./asset-utility-icons.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { ipfsToHttp } from \"../utils/ipfs.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n onReportClick: () => void;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, onReportClick, children }: CollectionHeaderProps) {\n const image = collection?.image ? ipfsToHttp(collection.image) : null;\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n <span className={CHIP}>{collection.standard === \"ERC1155\" ? \"Multi-edition\" : \"Single NFT\"}</span>\n {collection.symbol ? <span className={CHIP}>{collection.symbol}</span> : null}\n </>\n )}\n
|
|
1
|
+
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { AssetUtilityIcons } from \"./asset-utility-icons.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { ipfsToHttp } from \"../utils/ipfs.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n onReportClick: () => void;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, onReportClick, children }: CollectionHeaderProps) {\n const image = collection?.image ? ipfsToHttp(collection.image) : null;\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n <span className={CHIP}>{collection.standard === \"ERC1155\" ? \"Multi-edition\" : \"Single NFT\"}</span>\n {collection.symbol ? <span className={CHIP}>{collection.symbol}</span> : null}\n </>\n )}\n />\n\n <HeaderStats>\n {collection.totalSupply != null ? <HeaderStat label=\"Items\">{collection.totalSupply.toLocaleString()}</HeaderStat> : null}\n {collection.holderCount != null ? <HeaderStat label=\"Holders\">{collection.holderCount.toLocaleString()}</HeaderStat> : null}\n <PriceStat label=\"Floor\" raw={collection.floorPrice} />\n <PriceStat label=\"Volume\" raw={collection.totalVolume} />\n </HeaderStats>\n\n <div className=\"flex flex-wrap items-center gap-2\">\n {collection.owner ? <CreatorChip address={collection.owner} /> : null}\n <AddressDisplay address={collection.contractAddress} chars={6} className=\"text-xs text-muted-foreground\" />\n </div>\n\n <div className=\"-ml-3\">\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${collection.contractAddress}`}\n shareTitle={name}\n onReportClick={onReportClick}\n />\n </div>\n\n {children}\n </>\n ) : null}\n </MediaHeader>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BM;AA1BN,0BAAuB;AAEvB,gCAAiC;AACjC,0BAAqD;AACrD,iCAAkC;AAClC,6BAA+B;AAC/B,0BAA4B;AAC5B,2BAA+B;AAC/B,kBAA2B;AAC3B,oBAAkC;AAClC,0BAA6B;AAE7B,MAAM,OAAO;AASb,SAAS,UAAU,EAAE,OAAO,IAAI,GAA0C;AACxE,QAAM,EAAE,QAAQ,OAAO,QAAI,iCAAkB,GAAG;AAChD,MAAI,CAAC,UAAU,WAAW,SAAK,QAAO;AACtC,SACE,4CAAC,kCAAW,OACV,sDAAC,uCAAe,QAAQ,QAAQ,QAAgB,UAAU,IAAI,GAChE;AAEJ;AAEO,SAAS,iBAAiB,EAAE,YAAY,UAAU,OAAO,eAAe,SAAS,GAA0B;AAChH,QAAM,QAAQ,YAAY,YAAQ,wBAAW,WAAW,KAAK,IAAI;AACjE,QAAM,OAAO,YAAY,QAAQ;AAEjC,SACE,4CAAC,mCAAY,OAAc,UAAU,MAAM,cAAc,4BAAQ,SAAS,WAAW,CAAC,YACnF,uBACC,4EACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,aAAa,WAAW;AAAA,QACxB,QACE,4EACE;AAAA,sDAAC,UAAK,WAAW,MAAO,qBAAW,aAAa,YAAY,kBAAkB,cAAa;AAAA,UAC1F,WAAW,SAAS,4CAAC,UAAK,WAAW,MAAO,qBAAW,QAAO,IAAU;AAAA,WAC3E;AAAA;AAAA,IAEJ;AAAA,IAEA,6CAAC,mCACE;AAAA,iBAAW,eAAe,OAAO,4CAAC,kCAAW,OAAM,SAAS,qBAAW,YAAY,eAAe,GAAE,IAAgB;AAAA,MACpH,WAAW,eAAe,OAAO,4CAAC,kCAAW,OAAM,WAAW,qBAAW,YAAY,eAAe,GAAE,IAAgB;AAAA,MACvH,4CAAC,aAAU,OAAM,SAAQ,KAAK,WAAW,YAAY;AAAA,MACrD,4CAAC,aAAU,OAAM,UAAS,KAAK,WAAW,aAAa;AAAA,OACzD;AAAA,IAEA,6CAAC,SAAI,WAAU,qCACZ;AAAA,iBAAW,QAAQ,4CAAC,mCAAY,SAAS,WAAW,OAAO,IAAK;AAAA,MACjE,4CAAC,yCAAe,SAAS,WAAW,iBAAiB,OAAO,GAAG,WAAU,iCAAgC;AAAA,OAC3G;AAAA,IAEA,4CAAC,SAAI,WAAU,SACb;AAAA,MAAC;AAAA;AAAA,QACC,sBAAsB,GAAG,gCAAY,aAAa,WAAW,eAAe;AAAA,QAC5E,YAAY;AAAA,QACZ;AAAA;AAAA,IACF,GACF;AAAA,IAEC;AAAA,KACH,IACE,MACN;AAEJ;","names":[]}
|
|
@@ -28,15 +28,7 @@ function CollectionHeader({ collection, loading = false, onReportClick, children
|
|
|
28
28
|
badges: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
29
29
|
/* @__PURE__ */ jsx("span", { className: CHIP, children: collection.standard === "ERC1155" ? "Multi-edition" : "Single NFT" }),
|
|
30
30
|
collection.symbol ? /* @__PURE__ */ jsx("span", { className: CHIP, children: collection.symbol }) : null
|
|
31
|
-
] })
|
|
32
|
-
utilities: /* @__PURE__ */ jsx(
|
|
33
|
-
AssetUtilityIcons,
|
|
34
|
-
{
|
|
35
|
-
contractExplorerHref: `${EXPLORER_URL}/contract/${collection.contractAddress}`,
|
|
36
|
-
shareTitle: name,
|
|
37
|
-
onReportClick
|
|
38
|
-
}
|
|
39
|
-
)
|
|
31
|
+
] })
|
|
40
32
|
}
|
|
41
33
|
),
|
|
42
34
|
/* @__PURE__ */ jsxs(HeaderStats, { children: [
|
|
@@ -49,6 +41,14 @@ function CollectionHeader({ collection, loading = false, onReportClick, children
|
|
|
49
41
|
collection.owner ? /* @__PURE__ */ jsx(CreatorChip, { address: collection.owner }) : null,
|
|
50
42
|
/* @__PURE__ */ jsx(AddressDisplay, { address: collection.contractAddress, chars: 6, className: "text-xs text-muted-foreground" })
|
|
51
43
|
] }),
|
|
44
|
+
/* @__PURE__ */ jsx("div", { className: "-ml-3", children: /* @__PURE__ */ jsx(
|
|
45
|
+
AssetUtilityIcons,
|
|
46
|
+
{
|
|
47
|
+
contractExplorerHref: `${EXPLORER_URL}/contract/${collection.contractAddress}`,
|
|
48
|
+
shareTitle: name,
|
|
49
|
+
onReportClick
|
|
50
|
+
}
|
|
51
|
+
) }),
|
|
52
52
|
children
|
|
53
53
|
] }) : null });
|
|
54
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { AssetUtilityIcons } from \"./asset-utility-icons.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { ipfsToHttp } from \"../utils/ipfs.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n onReportClick: () => void;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, onReportClick, children }: CollectionHeaderProps) {\n const image = collection?.image ? ipfsToHttp(collection.image) : null;\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n <span className={CHIP}>{collection.standard === \"ERC1155\" ? \"Multi-edition\" : \"Single NFT\"}</span>\n {collection.symbol ? <span className={CHIP}>{collection.symbol}</span> : null}\n </>\n )}\n
|
|
1
|
+
{"version":3,"sources":["../../src/components/collection-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Layers } from \"lucide-react\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { AssetUtilityIcons } from \"./asset-utility-icons.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { CreatorChip } from \"./creator-chip.js\";\nimport { CurrencyAmount } from \"./currency-icon.js\";\nimport { ipfsToHttp } from \"../utils/ipfs.js\";\nimport { parsePriceDisplay } from \"../utils/format.js\";\nimport { EXPLORER_URL } from \"../utils/explorer-url.js\";\n\nconst CHIP = \"text-2xs font-semibold px-2.5 py-1 rounded-full bg-muted text-muted-foreground\";\n\nexport interface CollectionHeaderProps {\n collection: ApiCollection | null | undefined;\n loading?: boolean;\n onReportClick: () => void;\n children?: ReactNode;\n}\n\nfunction PriceStat({ label, raw }: { label: string; raw: string | null }) {\n const { numStr, symbol } = parsePriceDisplay(raw);\n if (!symbol || numStr === \"—\") return null;\n return (\n <HeaderStat label={label}>\n <CurrencyAmount amount={numStr} symbol={symbol} iconSize={12} />\n </HeaderStat>\n );\n}\n\nexport function CollectionHeader({ collection, loading = false, onReportClick, children }: CollectionHeaderProps) {\n const image = collection?.image ? ipfsToHttp(collection.image) : null;\n const name = collection?.name ?? \"Unnamed Collection\";\n\n return (\n <MediaHeader image={image} imageAlt={name} fallbackIcon={Layers} loading={loading || !collection}>\n {collection ? (\n <>\n <AssetHeaderBlock\n name={name}\n description={collection.description}\n badges={(\n <>\n <span className={CHIP}>{collection.standard === \"ERC1155\" ? \"Multi-edition\" : \"Single NFT\"}</span>\n {collection.symbol ? <span className={CHIP}>{collection.symbol}</span> : null}\n </>\n )}\n />\n\n <HeaderStats>\n {collection.totalSupply != null ? <HeaderStat label=\"Items\">{collection.totalSupply.toLocaleString()}</HeaderStat> : null}\n {collection.holderCount != null ? <HeaderStat label=\"Holders\">{collection.holderCount.toLocaleString()}</HeaderStat> : null}\n <PriceStat label=\"Floor\" raw={collection.floorPrice} />\n <PriceStat label=\"Volume\" raw={collection.totalVolume} />\n </HeaderStats>\n\n <div className=\"flex flex-wrap items-center gap-2\">\n {collection.owner ? <CreatorChip address={collection.owner} /> : null}\n <AddressDisplay address={collection.contractAddress} chars={6} className=\"text-xs text-muted-foreground\" />\n </div>\n\n <div className=\"-ml-3\">\n <AssetUtilityIcons\n contractExplorerHref={`${EXPLORER_URL}/contract/${collection.contractAddress}`}\n shareTitle={name}\n onReportClick={onReportClick}\n />\n </div>\n\n {children}\n </>\n ) : null}\n </MediaHeader>\n );\n}\n"],"mappings":";AA6BM,SAiBQ,UAjBR,KAiBQ,YAjBR;AA1BN,SAAS,cAAc;AAEvB,SAAS,wBAAwB;AACjC,SAAS,aAAa,aAAa,kBAAkB;AACrD,SAAS,yBAAyB;AAClC,SAAS,sBAAsB;AAC/B,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAC3B,SAAS,yBAAyB;AAClC,SAAS,oBAAoB;AAE7B,MAAM,OAAO;AASb,SAAS,UAAU,EAAE,OAAO,IAAI,GAA0C;AACxE,QAAM,EAAE,QAAQ,OAAO,IAAI,kBAAkB,GAAG;AAChD,MAAI,CAAC,UAAU,WAAW,SAAK,QAAO;AACtC,SACE,oBAAC,cAAW,OACV,8BAAC,kBAAe,QAAQ,QAAQ,QAAgB,UAAU,IAAI,GAChE;AAEJ;AAEO,SAAS,iBAAiB,EAAE,YAAY,UAAU,OAAO,eAAe,SAAS,GAA0B;AAChH,QAAM,QAAQ,YAAY,QAAQ,WAAW,WAAW,KAAK,IAAI;AACjE,QAAM,OAAO,YAAY,QAAQ;AAEjC,SACE,oBAAC,eAAY,OAAc,UAAU,MAAM,cAAc,QAAQ,SAAS,WAAW,CAAC,YACnF,uBACC,iCACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,aAAa,WAAW;AAAA,QACxB,QACE,iCACE;AAAA,8BAAC,UAAK,WAAW,MAAO,qBAAW,aAAa,YAAY,kBAAkB,cAAa;AAAA,UAC1F,WAAW,SAAS,oBAAC,UAAK,WAAW,MAAO,qBAAW,QAAO,IAAU;AAAA,WAC3E;AAAA;AAAA,IAEJ;AAAA,IAEA,qBAAC,eACE;AAAA,iBAAW,eAAe,OAAO,oBAAC,cAAW,OAAM,SAAS,qBAAW,YAAY,eAAe,GAAE,IAAgB;AAAA,MACpH,WAAW,eAAe,OAAO,oBAAC,cAAW,OAAM,WAAW,qBAAW,YAAY,eAAe,GAAE,IAAgB;AAAA,MACvH,oBAAC,aAAU,OAAM,SAAQ,KAAK,WAAW,YAAY;AAAA,MACrD,oBAAC,aAAU,OAAM,UAAS,KAAK,WAAW,aAAa;AAAA,OACzD;AAAA,IAEA,qBAAC,SAAI,WAAU,qCACZ;AAAA,iBAAW,QAAQ,oBAAC,eAAY,SAAS,WAAW,OAAO,IAAK;AAAA,MACjE,oBAAC,kBAAe,SAAS,WAAW,iBAAiB,OAAO,GAAG,WAAU,iCAAgC;AAAA,OAC3G;AAAA,IAEA,oBAAC,SAAI,WAAU,SACb;AAAA,MAAC;AAAA;AAAA,QACC,sBAAsB,GAAG,YAAY,aAAa,WAAW,eAAe;AAAA,QAC5E,YAAY;AAAA,QACZ;AAAA;AAAA,IACF,GACF;AAAA,IAEC;AAAA,KACH,IACE,MACN;AAEJ;","names":[]}
|
|
@@ -49,8 +49,7 @@ function CreatorHeader({ creator, image, stats, loading = false, children }) {
|
|
|
49
49
|
{
|
|
50
50
|
name: name ?? identity,
|
|
51
51
|
description: creator.bio,
|
|
52
|
-
badges: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_creator_score_inline.CreatorScoreInline, { address: creator.walletAddress, size: "sm" })
|
|
53
|
-
utilities: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_share_button.ShareButton, { title: name ?? identity, variant: "ghost", size: "icon" })
|
|
52
|
+
badges: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_creator_score_inline.CreatorScoreInline, { address: creator.walletAddress, size: "sm" })
|
|
54
53
|
}
|
|
55
54
|
),
|
|
56
55
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-wrap items-center gap-2 text-sm text-muted-foreground", children: [
|
|
@@ -70,6 +69,7 @@ function CreatorHeader({ creator, image, stats, loading = false, children }) {
|
|
|
70
69
|
},
|
|
71
70
|
key
|
|
72
71
|
)) }) : null,
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "-ml-3", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_share_button.ShareButton, { title: name ?? identity, variant: "ghost", size: "icon" }) }),
|
|
73
73
|
children
|
|
74
74
|
] }) : null });
|
|
75
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/creator-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Globe, MessageCircle, Send, Twitter, UserRound } from \"lucide-react\";\nimport type { ApiCreatorProfile } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { CreatorScoreInline } from \"./creator-score-inline.js\";\nimport { ShareButton } from \"./share-button.js\";\nimport { profileIdentity } from \"../utils/profile-identity.js\";\n\nexport interface CreatorHeaderStat {\n label: string;\n value: number | null;\n}\n\nexport interface CreatorHeaderProps {\n creator: ApiCreatorProfile | null | undefined;\n image: string | null;\n stats: CreatorHeaderStat[];\n loading?: boolean;\n children?: ReactNode;\n}\n\nconst SOCIALS = [\n { key: \"websiteUrl\", label: \"Website\", icon: Globe },\n { key: \"twitterUrl\", label: \"X\", icon: Twitter },\n { key: \"discordUrl\", label: \"Discord\", icon: MessageCircle },\n { key: \"telegramUrl\", label: \"Telegram\", icon: Send },\n] as const;\n\nexport function CreatorHeader({ creator, image, stats, loading = false, children }: CreatorHeaderProps) {\n const { identity, name } = profileIdentity({\n username: creator?.username,\n name: creator?.name,\n walletAddress: creator?.walletAddress,\n });\n const socials = creator ? SOCIALS.filter((s) => creator[s.key]) : [];\n\n return (\n <MediaHeader image={image} imageAlt={name ?? identity} fallbackIcon={UserRound} loading={loading || !creator}>\n {creator ? (\n <>\n <AssetHeaderBlock\n name={name ?? identity}\n description={creator.bio}\n badges={<CreatorScoreInline address={creator.walletAddress} size=\"sm\" />}\n
|
|
1
|
+
{"version":3,"sources":["../../src/components/creator-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Globe, MessageCircle, Send, Twitter, UserRound } from \"lucide-react\";\nimport type { ApiCreatorProfile } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { CreatorScoreInline } from \"./creator-score-inline.js\";\nimport { ShareButton } from \"./share-button.js\";\nimport { profileIdentity } from \"../utils/profile-identity.js\";\n\nexport interface CreatorHeaderStat {\n label: string;\n value: number | null;\n}\n\nexport interface CreatorHeaderProps {\n creator: ApiCreatorProfile | null | undefined;\n image: string | null;\n stats: CreatorHeaderStat[];\n loading?: boolean;\n children?: ReactNode;\n}\n\nconst SOCIALS = [\n { key: \"websiteUrl\", label: \"Website\", icon: Globe },\n { key: \"twitterUrl\", label: \"X\", icon: Twitter },\n { key: \"discordUrl\", label: \"Discord\", icon: MessageCircle },\n { key: \"telegramUrl\", label: \"Telegram\", icon: Send },\n] as const;\n\nexport function CreatorHeader({ creator, image, stats, loading = false, children }: CreatorHeaderProps) {\n const { identity, name } = profileIdentity({\n username: creator?.username,\n name: creator?.name,\n walletAddress: creator?.walletAddress,\n });\n const socials = creator ? SOCIALS.filter((s) => creator[s.key]) : [];\n\n return (\n <MediaHeader image={image} imageAlt={name ?? identity} fallbackIcon={UserRound} loading={loading || !creator}>\n {creator ? (\n <>\n <AssetHeaderBlock\n name={name ?? identity}\n description={creator.bio}\n badges={<CreatorScoreInline address={creator.walletAddress} size=\"sm\" />}\n />\n\n <div className=\"flex flex-wrap items-center gap-2 text-sm text-muted-foreground\">\n {name ? <span className=\"tabular-nums\">{identity}</span> : null}\n <AddressDisplay address={creator.walletAddress} chars={6} className=\"text-xs text-muted-foreground\" />\n </div>\n\n <HeaderStats>\n {stats.map((s) => (s.value != null ? <HeaderStat key={s.label} label={s.label}>{s.value.toLocaleString()}</HeaderStat> : null))}\n </HeaderStats>\n\n {socials.length > 0 ? (\n <div className=\"flex items-center gap-3\">\n {socials.map(({ key, label, icon: Icon }) => (\n <a\n key={key}\n href={creator[key]!}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-label={label}\n className=\"text-muted-foreground hover:text-foreground transition-colors\"\n >\n <Icon className=\"h-4 w-4\" />\n </a>\n ))}\n </div>\n ) : null}\n\n <div className=\"-ml-3\">\n <ShareButton title={name ?? identity} variant=\"ghost\" size=\"icon\" />\n </div>\n\n {children}\n </>\n ) : null}\n </MediaHeader>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA2CQ;AAxCR,0BAA+D;AAE/D,gCAAiC;AACjC,0BAAqD;AACrD,6BAA+B;AAC/B,kCAAmC;AACnC,0BAA4B;AAC5B,8BAAgC;AAehC,MAAM,UAAU;AAAA,EACd,EAAE,KAAK,cAAc,OAAO,WAAW,MAAM,0BAAM;AAAA,EACnD,EAAE,KAAK,cAAc,OAAO,KAAK,MAAM,4BAAQ;AAAA,EAC/C,EAAE,KAAK,cAAc,OAAO,WAAW,MAAM,kCAAc;AAAA,EAC3D,EAAE,KAAK,eAAe,OAAO,YAAY,MAAM,yBAAK;AACtD;AAEO,SAAS,cAAc,EAAE,SAAS,OAAO,OAAO,UAAU,OAAO,SAAS,GAAuB;AACtG,QAAM,EAAE,UAAU,KAAK,QAAI,yCAAgB;AAAA,IACzC,UAAU,SAAS;AAAA,IACnB,MAAM,SAAS;AAAA,IACf,eAAe,SAAS;AAAA,EAC1B,CAAC;AACD,QAAM,UAAU,UAAU,QAAQ,OAAO,CAAC,MAAM,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC;AAEnE,SACE,4CAAC,mCAAY,OAAc,UAAU,QAAQ,UAAU,cAAc,+BAAW,SAAS,WAAW,CAAC,SAClG,oBACC,4EACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,QAAQ;AAAA,QACd,aAAa,QAAQ;AAAA,QACrB,QAAQ,4CAAC,kDAAmB,SAAS,QAAQ,eAAe,MAAK,MAAK;AAAA;AAAA,IACxE;AAAA,IAEA,6CAAC,SAAI,WAAU,mEACZ;AAAA,aAAO,4CAAC,UAAK,WAAU,gBAAgB,oBAAS,IAAU;AAAA,MAC3D,4CAAC,yCAAe,SAAS,QAAQ,eAAe,OAAO,GAAG,WAAU,iCAAgC;AAAA,OACtG;AAAA,IAEA,4CAAC,mCACE,gBAAM,IAAI,CAAC,MAAO,EAAE,SAAS,OAAO,4CAAC,kCAAyB,OAAO,EAAE,OAAQ,YAAE,MAAM,eAAe,KAAjD,EAAE,KAAiD,IAAgB,IAAK,GAChI;AAAA,IAEC,QAAQ,SAAS,IAChB,4CAAC,SAAI,WAAU,2BACZ,kBAAQ,IAAI,CAAC,EAAE,KAAK,OAAO,MAAM,KAAK,MACrC;AAAA,MAAC;AAAA;AAAA,QAEC,MAAM,QAAQ,GAAG;AAAA,QACjB,QAAO;AAAA,QACP,KAAI;AAAA,QACJ,cAAY;AAAA,QACZ,WAAU;AAAA,QAEV,sDAAC,QAAK,WAAU,WAAU;AAAA;AAAA,MAPrB;AAAA,IAQP,CACD,GACH,IACE;AAAA,IAEJ,4CAAC,SAAI,WAAU,SACb,sDAAC,mCAAY,OAAO,QAAQ,UAAU,SAAQ,SAAQ,MAAK,QAAO,GACpE;AAAA,IAEC;AAAA,KACH,IACE,MACN;AAEJ;","names":[]}
|
|
@@ -26,8 +26,7 @@ function CreatorHeader({ creator, image, stats, loading = false, children }) {
|
|
|
26
26
|
{
|
|
27
27
|
name: name ?? identity,
|
|
28
28
|
description: creator.bio,
|
|
29
|
-
badges: /* @__PURE__ */ jsx(CreatorScoreInline, { address: creator.walletAddress, size: "sm" })
|
|
30
|
-
utilities: /* @__PURE__ */ jsx(ShareButton, { title: name ?? identity, variant: "ghost", size: "icon" })
|
|
29
|
+
badges: /* @__PURE__ */ jsx(CreatorScoreInline, { address: creator.walletAddress, size: "sm" })
|
|
31
30
|
}
|
|
32
31
|
),
|
|
33
32
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2 text-sm text-muted-foreground", children: [
|
|
@@ -47,6 +46,7 @@ function CreatorHeader({ creator, image, stats, loading = false, children }) {
|
|
|
47
46
|
},
|
|
48
47
|
key
|
|
49
48
|
)) }) : null,
|
|
49
|
+
/* @__PURE__ */ jsx("div", { className: "-ml-3", children: /* @__PURE__ */ jsx(ShareButton, { title: name ?? identity, variant: "ghost", size: "icon" }) }),
|
|
50
50
|
children
|
|
51
51
|
] }) : null });
|
|
52
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/creator-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Globe, MessageCircle, Send, Twitter, UserRound } from \"lucide-react\";\nimport type { ApiCreatorProfile } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { CreatorScoreInline } from \"./creator-score-inline.js\";\nimport { ShareButton } from \"./share-button.js\";\nimport { profileIdentity } from \"../utils/profile-identity.js\";\n\nexport interface CreatorHeaderStat {\n label: string;\n value: number | null;\n}\n\nexport interface CreatorHeaderProps {\n creator: ApiCreatorProfile | null | undefined;\n image: string | null;\n stats: CreatorHeaderStat[];\n loading?: boolean;\n children?: ReactNode;\n}\n\nconst SOCIALS = [\n { key: \"websiteUrl\", label: \"Website\", icon: Globe },\n { key: \"twitterUrl\", label: \"X\", icon: Twitter },\n { key: \"discordUrl\", label: \"Discord\", icon: MessageCircle },\n { key: \"telegramUrl\", label: \"Telegram\", icon: Send },\n] as const;\n\nexport function CreatorHeader({ creator, image, stats, loading = false, children }: CreatorHeaderProps) {\n const { identity, name } = profileIdentity({\n username: creator?.username,\n name: creator?.name,\n walletAddress: creator?.walletAddress,\n });\n const socials = creator ? SOCIALS.filter((s) => creator[s.key]) : [];\n\n return (\n <MediaHeader image={image} imageAlt={name ?? identity} fallbackIcon={UserRound} loading={loading || !creator}>\n {creator ? (\n <>\n <AssetHeaderBlock\n name={name ?? identity}\n description={creator.bio}\n badges={<CreatorScoreInline address={creator.walletAddress} size=\"sm\" />}\n
|
|
1
|
+
{"version":3,"sources":["../../src/components/creator-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Globe, MessageCircle, Send, Twitter, UserRound } from \"lucide-react\";\nimport type { ApiCreatorProfile } from \"@medialane/sdk\";\nimport { AssetHeaderBlock } from \"./asset-top-sections.js\";\nimport { MediaHeader, HeaderStats, HeaderStat } from \"./media-header.js\";\nimport { AddressDisplay } from \"./address-display.js\";\nimport { CreatorScoreInline } from \"./creator-score-inline.js\";\nimport { ShareButton } from \"./share-button.js\";\nimport { profileIdentity } from \"../utils/profile-identity.js\";\n\nexport interface CreatorHeaderStat {\n label: string;\n value: number | null;\n}\n\nexport interface CreatorHeaderProps {\n creator: ApiCreatorProfile | null | undefined;\n image: string | null;\n stats: CreatorHeaderStat[];\n loading?: boolean;\n children?: ReactNode;\n}\n\nconst SOCIALS = [\n { key: \"websiteUrl\", label: \"Website\", icon: Globe },\n { key: \"twitterUrl\", label: \"X\", icon: Twitter },\n { key: \"discordUrl\", label: \"Discord\", icon: MessageCircle },\n { key: \"telegramUrl\", label: \"Telegram\", icon: Send },\n] as const;\n\nexport function CreatorHeader({ creator, image, stats, loading = false, children }: CreatorHeaderProps) {\n const { identity, name } = profileIdentity({\n username: creator?.username,\n name: creator?.name,\n walletAddress: creator?.walletAddress,\n });\n const socials = creator ? SOCIALS.filter((s) => creator[s.key]) : [];\n\n return (\n <MediaHeader image={image} imageAlt={name ?? identity} fallbackIcon={UserRound} loading={loading || !creator}>\n {creator ? (\n <>\n <AssetHeaderBlock\n name={name ?? identity}\n description={creator.bio}\n badges={<CreatorScoreInline address={creator.walletAddress} size=\"sm\" />}\n />\n\n <div className=\"flex flex-wrap items-center gap-2 text-sm text-muted-foreground\">\n {name ? <span className=\"tabular-nums\">{identity}</span> : null}\n <AddressDisplay address={creator.walletAddress} chars={6} className=\"text-xs text-muted-foreground\" />\n </div>\n\n <HeaderStats>\n {stats.map((s) => (s.value != null ? <HeaderStat key={s.label} label={s.label}>{s.value.toLocaleString()}</HeaderStat> : null))}\n </HeaderStats>\n\n {socials.length > 0 ? (\n <div className=\"flex items-center gap-3\">\n {socials.map(({ key, label, icon: Icon }) => (\n <a\n key={key}\n href={creator[key]!}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-label={label}\n className=\"text-muted-foreground hover:text-foreground transition-colors\"\n >\n <Icon className=\"h-4 w-4\" />\n </a>\n ))}\n </div>\n ) : null}\n\n <div className=\"-ml-3\">\n <ShareButton title={name ?? identity} variant=\"ghost\" size=\"icon\" />\n </div>\n\n {children}\n </>\n ) : null}\n </MediaHeader>\n );\n}\n"],"mappings":";AA2CQ,mBAIY,KAGV,YAPF;AAxCR,SAAS,OAAO,eAAe,MAAM,SAAS,iBAAiB;AAE/D,SAAS,wBAAwB;AACjC,SAAS,aAAa,aAAa,kBAAkB;AACrD,SAAS,sBAAsB;AAC/B,SAAS,0BAA0B;AACnC,SAAS,mBAAmB;AAC5B,SAAS,uBAAuB;AAehC,MAAM,UAAU;AAAA,EACd,EAAE,KAAK,cAAc,OAAO,WAAW,MAAM,MAAM;AAAA,EACnD,EAAE,KAAK,cAAc,OAAO,KAAK,MAAM,QAAQ;AAAA,EAC/C,EAAE,KAAK,cAAc,OAAO,WAAW,MAAM,cAAc;AAAA,EAC3D,EAAE,KAAK,eAAe,OAAO,YAAY,MAAM,KAAK;AACtD;AAEO,SAAS,cAAc,EAAE,SAAS,OAAO,OAAO,UAAU,OAAO,SAAS,GAAuB;AACtG,QAAM,EAAE,UAAU,KAAK,IAAI,gBAAgB;AAAA,IACzC,UAAU,SAAS;AAAA,IACnB,MAAM,SAAS;AAAA,IACf,eAAe,SAAS;AAAA,EAC1B,CAAC;AACD,QAAM,UAAU,UAAU,QAAQ,OAAO,CAAC,MAAM,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC;AAEnE,SACE,oBAAC,eAAY,OAAc,UAAU,QAAQ,UAAU,cAAc,WAAW,SAAS,WAAW,CAAC,SAClG,oBACC,iCACE;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,QAAQ;AAAA,QACd,aAAa,QAAQ;AAAA,QACrB,QAAQ,oBAAC,sBAAmB,SAAS,QAAQ,eAAe,MAAK,MAAK;AAAA;AAAA,IACxE;AAAA,IAEA,qBAAC,SAAI,WAAU,mEACZ;AAAA,aAAO,oBAAC,UAAK,WAAU,gBAAgB,oBAAS,IAAU;AAAA,MAC3D,oBAAC,kBAAe,SAAS,QAAQ,eAAe,OAAO,GAAG,WAAU,iCAAgC;AAAA,OACtG;AAAA,IAEA,oBAAC,eACE,gBAAM,IAAI,CAAC,MAAO,EAAE,SAAS,OAAO,oBAAC,cAAyB,OAAO,EAAE,OAAQ,YAAE,MAAM,eAAe,KAAjD,EAAE,KAAiD,IAAgB,IAAK,GAChI;AAAA,IAEC,QAAQ,SAAS,IAChB,oBAAC,SAAI,WAAU,2BACZ,kBAAQ,IAAI,CAAC,EAAE,KAAK,OAAO,MAAM,KAAK,MACrC;AAAA,MAAC;AAAA;AAAA,QAEC,MAAM,QAAQ,GAAG;AAAA,QACjB,QAAO;AAAA,QACP,KAAI;AAAA,QACJ,cAAY;AAAA,QACZ,WAAU;AAAA,QAEV,8BAAC,QAAK,WAAU,WAAU;AAAA;AAAA,MAPrB;AAAA,IAQP,CACD,GACH,IACE;AAAA,IAEJ,oBAAC,SAAI,WAAU,SACb,8BAAC,eAAY,OAAO,QAAQ,UAAU,SAAQ,SAAQ,MAAK,QAAO,GACpE;AAAA,IAEC;AAAA,KACH,IACE,MACN;AAEJ;","names":[]}
|
|
@@ -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 |
|
|
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 |
|
|
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 };
|
|
@@ -41,7 +41,7 @@ function PageBackdrop({ image }) {
|
|
|
41
41
|
}
|
|
42
42
|
) });
|
|
43
43
|
}
|
|
44
|
-
const THUMB = "w-
|
|
44
|
+
const THUMB = "w-full sm:w-44 lg:w-56 aspect-square shrink-0 rounded-2xl overflow-hidden bg-muted";
|
|
45
45
|
function MediaHeader({ image, imageAlt, fallbackIcon: FallbackIcon, loading = false, children }) {
|
|
46
46
|
const [imgError, setImgError] = (0, import_react.useState)(false);
|
|
47
47
|
if (loading) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/media-header.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, type ElementType, type ReactNode } from \"react\";\nimport { Skeleton } from \"./skeleton.js\";\n\nexport interface MediaHeaderProps {\n image: string | null;\n imageAlt: string;\n fallbackIcon: ElementType;\n loading?: boolean;\n children: ReactNode;\n}\n\nexport function PageBackdrop({ image }: { image: string | null }) {\n if (!image) return null;\n return (\n <div className=\"fixed inset-0 -z-10 overflow-hidden pointer-events-none\">\n <img\n src={image}\n alt=\"\"\n aria-hidden\n className=\"absolute inset-0 w-full h-full object-cover opacity-20 scale-110\"\n style={{ filter: \"blur(60px) saturate(1.5)\" }}\n />\n </div>\n );\n}\n\nconst THUMB = \"w-
|
|
1
|
+
{"version":3,"sources":["../../src/components/media-header.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, type ElementType, type ReactNode } from \"react\";\nimport { Skeleton } from \"./skeleton.js\";\n\nexport interface MediaHeaderProps {\n image: string | null;\n imageAlt: string;\n fallbackIcon: ElementType;\n loading?: boolean;\n children: ReactNode;\n}\n\nexport function PageBackdrop({ image }: { image: string | null }) {\n if (!image) return null;\n return (\n <div className=\"fixed inset-0 -z-10 overflow-hidden pointer-events-none\">\n <img\n src={image}\n alt=\"\"\n aria-hidden\n className=\"absolute inset-0 w-full h-full object-cover opacity-20 scale-110\"\n style={{ filter: \"blur(60px) saturate(1.5)\" }}\n />\n </div>\n );\n}\n\nconst THUMB = \"w-full sm:w-44 lg:w-56 aspect-square shrink-0 rounded-2xl overflow-hidden bg-muted\";\n\nexport function MediaHeader({ image, imageAlt, fallbackIcon: FallbackIcon, loading = false, children }: MediaHeaderProps) {\n const [imgError, setImgError] = useState(false);\n\n if (loading) {\n return (\n <div className=\"flex flex-col sm:flex-row gap-6 lg:gap-8 items-start lg:max-w-5xl lg:mx-auto\">\n <Skeleton className={THUMB} />\n <div className=\"flex-1 w-full space-y-3\">\n <Skeleton className=\"h-6 w-40\" />\n <Skeleton className=\"h-10 w-2/3\" />\n <Skeleton className=\"h-16 w-full\" />\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"flex flex-col sm:flex-row gap-6 lg:gap-8 items-start lg:max-w-5xl lg:mx-auto\">\n <PageBackdrop image={image} />\n\n <div className={THUMB}>\n {image && !imgError ? (\n <img src={image} alt={imageAlt} onError={() => setImgError(true)} className=\"h-full w-full object-cover\" />\n ) : (\n <div className=\"h-full w-full flex items-center justify-center\">\n <FallbackIcon className=\"h-1/3 w-1/3 text-muted-foreground/40\" />\n </div>\n )}\n </div>\n\n <div className=\"flex-1 space-y-5 min-w-0 w-full\">{children}</div>\n </div>\n );\n}\n\nexport function HeaderStats({ children }: { children: ReactNode }) {\n return <div className=\"flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground\">{children}</div>;\n}\n\nexport function HeaderStat({ label, children }: { label: string; children: ReactNode }) {\n return (\n <span className=\"inline-flex items-center gap-1.5\">\n <span>{label}</span>\n <span className=\"font-semibold text-foreground tabular-nums\">{children}</span>\n </span>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBM;AAfN,mBAA2D;AAC3D,sBAAyB;AAUlB,SAAS,aAAa,EAAE,MAAM,GAA6B;AAChE,MAAI,CAAC,MAAO,QAAO;AACnB,SACE,4CAAC,SAAI,WAAU,2DACb;AAAA,IAAC;AAAA;AAAA,MACC,KAAK;AAAA,MACL,KAAI;AAAA,MACJ,eAAW;AAAA,MACX,WAAU;AAAA,MACV,OAAO,EAAE,QAAQ,2BAA2B;AAAA;AAAA,EAC9C,GACF;AAEJ;AAEA,MAAM,QAAQ;AAEP,SAAS,YAAY,EAAE,OAAO,UAAU,cAAc,cAAc,UAAU,OAAO,SAAS,GAAqB;AACxH,QAAM,CAAC,UAAU,WAAW,QAAI,uBAAS,KAAK;AAE9C,MAAI,SAAS;AACX,WACE,6CAAC,SAAI,WAAU,gFACb;AAAA,kDAAC,4BAAS,WAAW,OAAO;AAAA,MAC5B,6CAAC,SAAI,WAAU,2BACb;AAAA,oDAAC,4BAAS,WAAU,YAAW;AAAA,QAC/B,4CAAC,4BAAS,WAAU,cAAa;AAAA,QACjC,4CAAC,4BAAS,WAAU,eAAc;AAAA,SACpC;AAAA,OACF;AAAA,EAEJ;AAEA,SACE,6CAAC,SAAI,WAAU,gFACb;AAAA,gDAAC,gBAAa,OAAc;AAAA,IAE5B,4CAAC,SAAI,WAAW,OACb,mBAAS,CAAC,WACT,4CAAC,SAAI,KAAK,OAAO,KAAK,UAAU,SAAS,MAAM,YAAY,IAAI,GAAG,WAAU,8BAA6B,IAEzG,4CAAC,SAAI,WAAU,kDACb,sDAAC,gBAAa,WAAU,wCAAuC,GACjE,GAEJ;AAAA,IAEA,4CAAC,SAAI,WAAU,mCAAmC,UAAS;AAAA,KAC7D;AAEJ;AAEO,SAAS,YAAY,EAAE,SAAS,GAA4B;AACjE,SAAO,4CAAC,SAAI,WAAU,6EAA6E,UAAS;AAC9G;AAEO,SAAS,WAAW,EAAE,OAAO,SAAS,GAA2C;AACtF,SACE,6CAAC,UAAK,WAAU,oCACd;AAAA,gDAAC,UAAM,iBAAM;AAAA,IACb,4CAAC,UAAK,WAAU,8CAA8C,UAAS;AAAA,KACzE;AAEJ;","names":[]}
|
|
@@ -15,7 +15,7 @@ function PageBackdrop({ image }) {
|
|
|
15
15
|
}
|
|
16
16
|
) });
|
|
17
17
|
}
|
|
18
|
-
const THUMB = "w-
|
|
18
|
+
const THUMB = "w-full sm:w-44 lg:w-56 aspect-square shrink-0 rounded-2xl overflow-hidden bg-muted";
|
|
19
19
|
function MediaHeader({ image, imageAlt, fallbackIcon: FallbackIcon, loading = false, children }) {
|
|
20
20
|
const [imgError, setImgError] = useState(false);
|
|
21
21
|
if (loading) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/media-header.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, type ElementType, type ReactNode } from \"react\";\nimport { Skeleton } from \"./skeleton.js\";\n\nexport interface MediaHeaderProps {\n image: string | null;\n imageAlt: string;\n fallbackIcon: ElementType;\n loading?: boolean;\n children: ReactNode;\n}\n\nexport function PageBackdrop({ image }: { image: string | null }) {\n if (!image) return null;\n return (\n <div className=\"fixed inset-0 -z-10 overflow-hidden pointer-events-none\">\n <img\n src={image}\n alt=\"\"\n aria-hidden\n className=\"absolute inset-0 w-full h-full object-cover opacity-20 scale-110\"\n style={{ filter: \"blur(60px) saturate(1.5)\" }}\n />\n </div>\n );\n}\n\nconst THUMB = \"w-
|
|
1
|
+
{"version":3,"sources":["../../src/components/media-header.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, type ElementType, type ReactNode } from \"react\";\nimport { Skeleton } from \"./skeleton.js\";\n\nexport interface MediaHeaderProps {\n image: string | null;\n imageAlt: string;\n fallbackIcon: ElementType;\n loading?: boolean;\n children: ReactNode;\n}\n\nexport function PageBackdrop({ image }: { image: string | null }) {\n if (!image) return null;\n return (\n <div className=\"fixed inset-0 -z-10 overflow-hidden pointer-events-none\">\n <img\n src={image}\n alt=\"\"\n aria-hidden\n className=\"absolute inset-0 w-full h-full object-cover opacity-20 scale-110\"\n style={{ filter: \"blur(60px) saturate(1.5)\" }}\n />\n </div>\n );\n}\n\nconst THUMB = \"w-full sm:w-44 lg:w-56 aspect-square shrink-0 rounded-2xl overflow-hidden bg-muted\";\n\nexport function MediaHeader({ image, imageAlt, fallbackIcon: FallbackIcon, loading = false, children }: MediaHeaderProps) {\n const [imgError, setImgError] = useState(false);\n\n if (loading) {\n return (\n <div className=\"flex flex-col sm:flex-row gap-6 lg:gap-8 items-start lg:max-w-5xl lg:mx-auto\">\n <Skeleton className={THUMB} />\n <div className=\"flex-1 w-full space-y-3\">\n <Skeleton className=\"h-6 w-40\" />\n <Skeleton className=\"h-10 w-2/3\" />\n <Skeleton className=\"h-16 w-full\" />\n </div>\n </div>\n );\n }\n\n return (\n <div className=\"flex flex-col sm:flex-row gap-6 lg:gap-8 items-start lg:max-w-5xl lg:mx-auto\">\n <PageBackdrop image={image} />\n\n <div className={THUMB}>\n {image && !imgError ? (\n <img src={image} alt={imageAlt} onError={() => setImgError(true)} className=\"h-full w-full object-cover\" />\n ) : (\n <div className=\"h-full w-full flex items-center justify-center\">\n <FallbackIcon className=\"h-1/3 w-1/3 text-muted-foreground/40\" />\n </div>\n )}\n </div>\n\n <div className=\"flex-1 space-y-5 min-w-0 w-full\">{children}</div>\n </div>\n );\n}\n\nexport function HeaderStats({ children }: { children: ReactNode }) {\n return <div className=\"flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground\">{children}</div>;\n}\n\nexport function HeaderStat({ label, children }: { label: string; children: ReactNode }) {\n return (\n <span className=\"inline-flex items-center gap-1.5\">\n <span>{label}</span>\n <span className=\"font-semibold text-foreground tabular-nums\">{children}</span>\n </span>\n );\n}\n"],"mappings":";AAiBM,cAoBE,YApBF;AAfN,SAAS,gBAAkD;AAC3D,SAAS,gBAAgB;AAUlB,SAAS,aAAa,EAAE,MAAM,GAA6B;AAChE,MAAI,CAAC,MAAO,QAAO;AACnB,SACE,oBAAC,SAAI,WAAU,2DACb;AAAA,IAAC;AAAA;AAAA,MACC,KAAK;AAAA,MACL,KAAI;AAAA,MACJ,eAAW;AAAA,MACX,WAAU;AAAA,MACV,OAAO,EAAE,QAAQ,2BAA2B;AAAA;AAAA,EAC9C,GACF;AAEJ;AAEA,MAAM,QAAQ;AAEP,SAAS,YAAY,EAAE,OAAO,UAAU,cAAc,cAAc,UAAU,OAAO,SAAS,GAAqB;AACxH,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAE9C,MAAI,SAAS;AACX,WACE,qBAAC,SAAI,WAAU,gFACb;AAAA,0BAAC,YAAS,WAAW,OAAO;AAAA,MAC5B,qBAAC,SAAI,WAAU,2BACb;AAAA,4BAAC,YAAS,WAAU,YAAW;AAAA,QAC/B,oBAAC,YAAS,WAAU,cAAa;AAAA,QACjC,oBAAC,YAAS,WAAU,eAAc;AAAA,SACpC;AAAA,OACF;AAAA,EAEJ;AAEA,SACE,qBAAC,SAAI,WAAU,gFACb;AAAA,wBAAC,gBAAa,OAAc;AAAA,IAE5B,oBAAC,SAAI,WAAW,OACb,mBAAS,CAAC,WACT,oBAAC,SAAI,KAAK,OAAO,KAAK,UAAU,SAAS,MAAM,YAAY,IAAI,GAAG,WAAU,8BAA6B,IAEzG,oBAAC,SAAI,WAAU,kDACb,8BAAC,gBAAa,WAAU,wCAAuC,GACjE,GAEJ;AAAA,IAEA,oBAAC,SAAI,WAAU,mCAAmC,UAAS;AAAA,KAC7D;AAEJ;AAEO,SAAS,YAAY,EAAE,SAAS,GAA4B;AACjE,SAAO,oBAAC,SAAI,WAAU,6EAA6E,UAAS;AAC9G;AAEO,SAAS,WAAW,EAAE,OAAO,SAAS,GAA2C;AACtF,SACE,qBAAC,UAAK,WAAU,oCACd;AAAA,wBAAC,UAAM,iBAAM;AAAA,IACb,oBAAC,UAAK,WAAU,8CAA8C,UAAS;AAAA,KACzE;AAEJ;","names":[]}
|
|
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
|
|
|
10
10
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
11
11
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const sheetVariants: (props?: ({
|
|
13
|
-
side?: "
|
|
13
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
15
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
16
16
|
overlayClassName?: string;
|
|
@@ -10,7 +10,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
|
|
|
10
10
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
11
11
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const sheetVariants: (props?: ({
|
|
13
|
-
side?: "
|
|
13
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
15
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
16
16
|
overlayClassName?: string;
|