@medialane/ui 0.8.0 → 0.9.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.
- package/dist/components/launchpad-services.cjs +51 -134
- package/dist/components/launchpad-services.cjs.map +1 -1
- package/dist/components/launchpad-services.d.cts +11 -15
- package/dist/components/launchpad-services.d.ts +11 -15
- package/dist/components/launchpad-services.js +51 -134
- package/dist/components/launchpad-services.js.map +1 -1
- package/dist/data/launchpad-services.cjs +24 -11
- package/dist/data/launchpad-services.cjs.map +1 -1
- package/dist/data/launchpad-services.d.cts +3 -1
- package/dist/data/launchpad-services.d.ts +3 -1
- package/dist/data/launchpad-services.js +24 -11
- package/dist/data/launchpad-services.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ var launchpad_services_exports = {};
|
|
|
31
31
|
__export(launchpad_services_exports, {
|
|
32
32
|
LaunchpadGroupedSections: () => LaunchpadGroupedSections,
|
|
33
33
|
LaunchpadServiceCard: () => LaunchpadServiceCard,
|
|
34
|
-
|
|
34
|
+
SERVICE_HUES: () => SERVICE_HUES
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(launchpad_services_exports);
|
|
37
37
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -40,159 +40,76 @@ var import_framer_motion = require("framer-motion");
|
|
|
40
40
|
var import_lucide_react = require("lucide-react");
|
|
41
41
|
var import_cn = require("../utils/cn.js");
|
|
42
42
|
var import_launchpad_services = require("../data/launchpad-services.js");
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"collection-drop": { icon: "text-brand-rose", button: "bg-brand-rose", chip: "border-rose-500/30 text-rose-400 bg-rose-500/10", gradient: "from-rose-500/50 via-red-400/20 to-rose-700/30" },
|
|
57
|
-
"ip-tickets": { icon: "text-brand-blue", button: "bg-brand-blue", chip: "border-blue-500/30 text-blue-400 bg-blue-500/10", gradient: "from-blue-500/50 via-cyan-400/20 to-blue-600/30" },
|
|
58
|
-
"membership": { icon: "text-brand-purple", button: "bg-brand-purple", chip: "border-purple-500/30 text-purple-400 bg-purple-500/10", gradient: "from-purple-500/50 via-violet-400/20 to-purple-700/30" },
|
|
59
|
-
"subscriptions": { icon: "text-brand-blue", button: "bg-brand-blue", chip: "border-blue-500/30 text-blue-400 bg-blue-500/10", gradient: "from-blue-500/50 via-cyan-400/20 to-blue-600/30" },
|
|
60
|
-
"ip-coins": { icon: "text-brand-orange", button: "bg-brand-orange", chip: "border-orange-500/30 text-orange-400 bg-orange-500/10", gradient: "from-orange-500/50 via-amber-400/20 to-orange-700/30" },
|
|
61
|
-
"creator-coins": { icon: "text-brand-rose", button: "bg-brand-rose", chip: "border-rose-500/30 text-rose-400 bg-rose-500/10", gradient: "from-rose-500/50 via-pink-400/20 to-rose-700/30" },
|
|
62
|
-
"claim-memecoin": { icon: "text-brand-orange", button: "bg-brand-orange", chip: "border-orange-500/30 text-orange-400 bg-orange-500/10", gradient: "from-orange-500/50 via-amber-400/20 to-orange-700/30" },
|
|
63
|
-
"claim-username": { icon: "text-brand-purple", button: "bg-brand-purple", chip: "border-purple-500/30 text-purple-400 bg-purple-500/10", gradient: "from-purple-500/50 via-violet-400/20 to-purple-700/30" },
|
|
64
|
-
"claim-collection": { icon: "text-brand-blue", button: "bg-brand-blue", chip: "border-blue-500/30 text-blue-400 bg-blue-500/10", gradient: "from-blue-500/50 via-cyan-400/20 to-blue-600/30" }
|
|
43
|
+
const DEFAULT_HUE = { text: "text-sky-600 dark:text-sky-400", bg: "bg-sky-500/10" };
|
|
44
|
+
const SERVICE_HUES = {
|
|
45
|
+
"mint-ip-asset": { text: "text-sky-600 dark:text-sky-400", bg: "bg-sky-500/10" },
|
|
46
|
+
"create-collection": { text: "text-violet-600 dark:text-violet-400", bg: "bg-violet-500/10" },
|
|
47
|
+
"ip-collection-1155": { text: "text-rose-600 dark:text-rose-400", bg: "bg-rose-500/10" },
|
|
48
|
+
"mint-editions": { text: "text-amber-600 dark:text-amber-400", bg: "bg-amber-500/10" },
|
|
49
|
+
"creator-coins": { text: "text-pink-600 dark:text-pink-400", bg: "bg-pink-500/10" },
|
|
50
|
+
"claim-memecoin": { text: "text-teal-600 dark:text-teal-400", bg: "bg-teal-500/10" },
|
|
51
|
+
"collection-drop": { text: "text-orange-600 dark:text-orange-400", bg: "bg-orange-500/10" },
|
|
52
|
+
"pop-protocol": { text: "text-emerald-600 dark:text-emerald-400", bg: "bg-emerald-500/10" },
|
|
53
|
+
"remix-asset": { text: "text-indigo-600 dark:text-indigo-400", bg: "bg-indigo-500/10" },
|
|
54
|
+
"claim-username": { text: "text-purple-600 dark:text-purple-400", bg: "bg-purple-500/10" },
|
|
55
|
+
"claim-collection": { text: "text-cyan-600 dark:text-cyan-400", bg: "bg-cyan-500/10" }
|
|
65
56
|
};
|
|
66
57
|
function LaunchpadServiceCard({ def, override = {} }) {
|
|
67
|
-
const { key, icon: Icon, browseLinkLabel } = def;
|
|
58
|
+
const { key, icon: Icon, title, browseLinkLabel } = def;
|
|
68
59
|
const status = override.status ?? def.status;
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
const description = override.description ?? def.description;
|
|
72
|
-
const features = override.features ?? def.features;
|
|
73
|
-
const { href, buttonLabel, browseHref } = override;
|
|
60
|
+
const blurb = override.blurb ?? def.blurb;
|
|
61
|
+
const { href, browseHref } = override;
|
|
74
62
|
const live = status === "live";
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
const colors = SERVICE_CARD_COLORS[key] ?? DEFAULT_COLORS;
|
|
78
|
-
const card = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
63
|
+
const hue = SERVICE_HUES[key] ?? DEFAULT_HUE;
|
|
64
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
79
65
|
"div",
|
|
80
66
|
{
|
|
81
67
|
className: (0, import_cn.cn)(
|
|
82
|
-
"relative rounded-
|
|
83
|
-
"
|
|
84
|
-
|
|
68
|
+
"relative rounded-2xl border border-border/60 bg-card p-5 sm:p-6",
|
|
69
|
+
"flex flex-col gap-3 transition-transform",
|
|
70
|
+
live ? "active:scale-[0.99]" : "opacity-60"
|
|
85
71
|
),
|
|
86
72
|
children: [
|
|
87
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
88
|
-
"
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { className: (0, import_cn.cn)("h-7 w-7 shrink-0", live ? hue.text : "text-muted-foreground/50") }),
|
|
75
|
+
live ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: (0, import_cn.cn)("h-9 w-9 shrink-0 rounded-full flex items-center justify-center", hue.bg), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowUpRight, { className: (0, import_cn.cn)("h-4 w-4", hue.text) }) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "flex items-center gap-1 text-[11px] font-medium text-muted-foreground/60 pt-1", children: [
|
|
76
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Lock, { className: "h-3 w-3" }),
|
|
77
|
+
"Coming soon"
|
|
78
|
+
] })
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1", children: [
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "text-lg font-bold tracking-tight leading-snug", children: title }),
|
|
82
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: (0, import_cn.cn)("text-sm leading-relaxed", live ? "text-muted-foreground" : "text-muted-foreground/60"), children: blurb })
|
|
83
|
+
] }),
|
|
84
|
+
live && href && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href, "aria-label": title, className: "absolute inset-0 z-10 rounded-2xl" }),
|
|
85
|
+
live && browseHref && browseLinkLabel && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
86
|
+
import_link.default,
|
|
89
87
|
{
|
|
90
|
-
|
|
91
|
-
className:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
88
|
+
href: browseHref,
|
|
89
|
+
className: "relative z-20 mt-auto self-start inline-flex items-center gap-1 text-xs font-medium text-muted-foreground active:text-foreground",
|
|
90
|
+
children: [
|
|
91
|
+
browseLinkLabel,
|
|
92
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3 w-3" })
|
|
93
|
+
]
|
|
96
94
|
}
|
|
97
|
-
)
|
|
98
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative flex flex-col flex-1 p-6 gap-4", children: [
|
|
99
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-start justify-between", children: [
|
|
100
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative", children: [
|
|
101
|
-
active && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "aria-hidden": true, className: (0, import_cn.cn)("absolute -inset-3 rounded-full blur-2xl opacity-30", colors.button) }),
|
|
102
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { className: (0, import_cn.cn)("relative h-10 w-10 transition-transform duration-300", active ? colors.icon : "text-muted-foreground/45") })
|
|
103
|
-
] }),
|
|
104
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
105
|
-
"span",
|
|
106
|
-
{
|
|
107
|
-
className: (0, import_cn.cn)(
|
|
108
|
-
"text-[10px] font-semibold tracking-widest uppercase rounded-full px-2.5 py-1 flex items-center gap-1.5",
|
|
109
|
-
live ? "text-emerald-500 bg-emerald-500/10" : building ? "text-amber-500 bg-amber-500/10" : "text-muted-foreground/40 bg-muted/30"
|
|
110
|
-
),
|
|
111
|
-
children: [
|
|
112
|
-
live && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse" }),
|
|
113
|
-
!active && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Lock, { className: "h-2.5 w-2.5" }),
|
|
114
|
-
badge
|
|
115
|
-
]
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
] }),
|
|
119
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1", children: [
|
|
120
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: (0, import_cn.cn)("text-2xl font-bold leading-snug tracking-tight", !active && "text-foreground/60"), children: def.title }),
|
|
121
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: (0, import_cn.cn)("text-[13px] leading-relaxed", active ? "text-muted-foreground" : "text-muted-foreground/50"), children: subtitle })
|
|
122
|
-
] }),
|
|
123
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
124
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: (0, import_cn.cn)("text-sm leading-relaxed", active ? "text-muted-foreground" : "text-muted-foreground/50"), children: description }),
|
|
125
|
-
def.example && active && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground/60 italic", children: def.example })
|
|
126
|
-
] }),
|
|
127
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-wrap gap-1.5", children: features.map((f) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
128
|
-
"span",
|
|
129
|
-
{
|
|
130
|
-
className: (0, import_cn.cn)(
|
|
131
|
-
"text-[11px] px-2.5 py-1 rounded-full border font-medium",
|
|
132
|
-
active ? colors.chip : "bg-muted/10 border-border/15 text-muted-foreground/45"
|
|
133
|
-
),
|
|
134
|
-
children: f
|
|
135
|
-
},
|
|
136
|
-
f
|
|
137
|
-
)) }),
|
|
138
|
-
live && href ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2 mt-auto pt-2", children: [
|
|
139
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
140
|
-
import_link.default,
|
|
141
|
-
{
|
|
142
|
-
href,
|
|
143
|
-
className: (0, import_cn.cn)(
|
|
144
|
-
"flex items-center justify-between w-full h-10 px-4 rounded-xl",
|
|
145
|
-
"text-sm font-semibold text-white",
|
|
146
|
-
"transition-all hover:brightness-110 active:scale-[0.98]",
|
|
147
|
-
colors.button
|
|
148
|
-
),
|
|
149
|
-
children: [
|
|
150
|
-
buttonLabel ?? "Get started",
|
|
151
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3.5 w-3.5" })
|
|
152
|
-
]
|
|
153
|
-
}
|
|
154
|
-
),
|
|
155
|
-
browseHref && browseLinkLabel && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
156
|
-
import_link.default,
|
|
157
|
-
{
|
|
158
|
-
href: browseHref,
|
|
159
|
-
className: "flex items-center justify-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors py-1",
|
|
160
|
-
children: [
|
|
161
|
-
browseLinkLabel,
|
|
162
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3 w-3" })
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
)
|
|
166
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2 h-10 mt-auto pt-2 text-sm text-muted-foreground/50 font-medium", children: [
|
|
167
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Lock, { className: "h-3.5 w-3.5" }),
|
|
168
|
-
building ? "In development" : "Coming soon"
|
|
169
|
-
] })
|
|
170
|
-
] })
|
|
95
|
+
)
|
|
171
96
|
]
|
|
172
97
|
}
|
|
173
98
|
);
|
|
174
|
-
return live ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_cn.cn)("p-[1px] rounded-2xl bg-gradient-to-br", colors.gradient, "transition-all duration-200 hover:-translate-y-0.5 hover:shadow-lg hover:shadow-black/25 flex flex-col"), children: card }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "rounded-2xl border border-border/25 flex flex-col", children: card });
|
|
175
99
|
}
|
|
176
100
|
function GroupHeader({ group }) {
|
|
177
101
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1", children: [
|
|
178
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
179
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "text-xl font-bold tracking-tight", children: group.title }),
|
|
180
|
-
group.badge ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-[10px] font-semibold tracking-widest uppercase rounded-full px-2 py-0.5 bg-muted/40 text-muted-foreground", children: group.badge }) : null
|
|
181
|
-
] }),
|
|
102
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "text-xl font-bold tracking-tight", children: group.title }),
|
|
182
103
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: group.tagline })
|
|
183
104
|
] });
|
|
184
105
|
}
|
|
185
106
|
function ComingSoonStrip({ group, defs }) {
|
|
186
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-2xl border border-border/
|
|
187
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "
|
|
188
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground mt-
|
|
189
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-wrap gap-2 mt-4", children: defs.map(({ key, icon: Icon, title
|
|
107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-2xl border border-border/40 p-5", children: [
|
|
108
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-semibold text-sm", children: group.title }),
|
|
109
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground mt-0.5", children: group.tagline }),
|
|
110
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-wrap gap-2 mt-4", children: defs.map(({ key, icon: Icon, title }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2 px-3 py-2 rounded-full bg-muted/30 border border-border/25", children: [
|
|
190
111
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { className: "h-3.5 w-3.5 text-muted-foreground/60" }),
|
|
191
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-xs font-
|
|
192
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "hidden sm:inline text-xs text-muted-foreground/50", children: [
|
|
193
|
-
"\u2014 ",
|
|
194
|
-
subtitle
|
|
195
|
-
] })
|
|
112
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-xs font-medium text-muted-foreground", children: title })
|
|
196
113
|
] }, key)) })
|
|
197
114
|
] });
|
|
198
115
|
}
|
|
@@ -212,7 +129,7 @@ function LaunchpadGroupedSections({ overrides, className }) {
|
|
|
212
129
|
className: "space-y-4",
|
|
213
130
|
children: [
|
|
214
131
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(GroupHeader, { group }),
|
|
215
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-
|
|
132
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: defs.map((def) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LaunchpadServiceCard, { def, override: overrides[def.key] }, def.key)) })
|
|
216
133
|
]
|
|
217
134
|
},
|
|
218
135
|
group.key
|
|
@@ -223,6 +140,6 @@ function LaunchpadGroupedSections({ overrides, className }) {
|
|
|
223
140
|
0 && (module.exports = {
|
|
224
141
|
LaunchpadGroupedSections,
|
|
225
142
|
LaunchpadServiceCard,
|
|
226
|
-
|
|
143
|
+
SERVICE_HUES
|
|
227
144
|
});
|
|
228
145
|
//# sourceMappingURL=launchpad-services.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/launchpad-services.tsx"],"sourcesContent":["\"use client\";\n\n/**\n * Launchpad grouped services — the single source for the /launchpad page UI\n * in medialane-io and medialane-dapp (consolidated 2026-06-10; replaces the\n * old flat LaunchpadServicesGrid).\n *\n * Apps own: hrefs, button labels, per-app status/badge flips (rollout), and\n * any copy overrides (e.g. the gasless-rail chip wording). Everything else —\n * card design, group order, colors, copy — lives here.\n */\n\nimport Link from \"next/link\";\nimport { motion } from \"framer-motion\";\nimport { Lock, ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport {\n LAUNCHPAD_SERVICE_DEFINITIONS,\n LAUNCHPAD_SERVICE_GROUPS,\n type ServiceDefinition,\n type ServiceGroupDefinition,\n type ServiceStatus,\n} from \"../data/launchpad-services.js\";\n\n// ── Per-app injection points ─────────────────────────────────────────────────\n\nexport interface ServiceOverride {\n /** Primary CTA href — required for live services */\n href?: string;\n buttonLabel?: string;\n /** Secondary browse link href (pairs with the def's browseLinkLabel) */\n browseHref?: string;\n /** Per-app rollout flips (e.g. coins live on one app first) */\n status?: ServiceStatus;\n badge?: string;\n /** Per-app copy overrides (e.g. \"Gasless via ChipiPay\" vs \"Gasless transactions\") */\n features?: string[];\n description?: string;\n subtitle?: string;\n}\n\nexport type ServiceOverrides = Record<string, ServiceOverride>;\n\n// ── Brand color map per service key ──────────────────────────────────────────\n\ninterface ServiceCardColors {\n icon: string;\n button: string;\n chip: string;\n gradient: string;\n}\n\nconst DEFAULT_COLORS: ServiceCardColors = {\n icon: \"text-brand-blue\",\n button: \"bg-brand-blue\",\n chip: \"border-border/50 text-muted-foreground bg-muted/30\",\n gradient: \"from-border/40 to-border/20\",\n};\n\nexport const SERVICE_CARD_COLORS: Record<string, ServiceCardColors> = {\n \"mint-ip-asset\": { icon: \"text-brand-blue\", button: \"bg-brand-blue\", chip: \"border-blue-500/30 text-blue-400 bg-blue-500/10\", gradient: \"from-blue-500/50 via-cyan-400/20 to-blue-600/30\" },\n \"create-collection\": { icon: \"text-brand-purple\", button: \"bg-brand-purple\", chip: \"border-purple-500/30 text-purple-400 bg-purple-500/10\", gradient: \"from-purple-500/50 via-violet-400/20 to-purple-700/30\" },\n \"ip-collection-1155\": { icon: \"text-brand-rose\", button: \"bg-brand-rose\", chip: \"border-rose-500/30 text-rose-400 bg-rose-500/10\", gradient: \"from-rose-500/50 via-pink-400/20 to-rose-700/30\" },\n \"mint-editions\": { icon: \"text-brand-orange\", button: \"bg-brand-orange\", chip: \"border-orange-500/30 text-orange-400 bg-orange-500/10\", gradient: \"from-orange-500/50 via-amber-400/20 to-orange-700/30\" },\n \"remix-asset\": { icon: \"text-brand-navy\", button: \"bg-brand-navy\", chip: \"border-indigo-700/30 text-indigo-300 bg-indigo-900/20\", gradient: \"from-blue-900/60 via-indigo-700/20 to-blue-800/30\" },\n \"pop-protocol\": { icon: \"text-brand-orange\", button: \"bg-brand-orange\", chip: \"border-orange-500/30 text-orange-400 bg-orange-500/10\", gradient: \"from-orange-500/50 via-amber-400/20 to-orange-700/30\" },\n \"collection-drop\": { icon: \"text-brand-rose\", button: \"bg-brand-rose\", chip: \"border-rose-500/30 text-rose-400 bg-rose-500/10\", gradient: \"from-rose-500/50 via-red-400/20 to-rose-700/30\" },\n \"ip-tickets\": { icon: \"text-brand-blue\", button: \"bg-brand-blue\", chip: \"border-blue-500/30 text-blue-400 bg-blue-500/10\", gradient: \"from-blue-500/50 via-cyan-400/20 to-blue-600/30\" },\n \"membership\": { icon: \"text-brand-purple\", button: \"bg-brand-purple\", chip: \"border-purple-500/30 text-purple-400 bg-purple-500/10\", gradient: \"from-purple-500/50 via-violet-400/20 to-purple-700/30\" },\n \"subscriptions\": { icon: \"text-brand-blue\", button: \"bg-brand-blue\", chip: \"border-blue-500/30 text-blue-400 bg-blue-500/10\", gradient: \"from-blue-500/50 via-cyan-400/20 to-blue-600/30\" },\n \"ip-coins\": { icon: \"text-brand-orange\", button: \"bg-brand-orange\", chip: \"border-orange-500/30 text-orange-400 bg-orange-500/10\", gradient: \"from-orange-500/50 via-amber-400/20 to-orange-700/30\" },\n \"creator-coins\": { icon: \"text-brand-rose\", button: \"bg-brand-rose\", chip: \"border-rose-500/30 text-rose-400 bg-rose-500/10\", gradient: \"from-rose-500/50 via-pink-400/20 to-rose-700/30\" },\n \"claim-memecoin\": { icon: \"text-brand-orange\", button: \"bg-brand-orange\", chip: \"border-orange-500/30 text-orange-400 bg-orange-500/10\", gradient: \"from-orange-500/50 via-amber-400/20 to-orange-700/30\" },\n \"claim-username\": { icon: \"text-brand-purple\", button: \"bg-brand-purple\", chip: \"border-purple-500/30 text-purple-400 bg-purple-500/10\", gradient: \"from-purple-500/50 via-violet-400/20 to-purple-700/30\" },\n \"claim-collection\": { icon: \"text-brand-blue\", button: \"bg-brand-blue\", chip: \"border-blue-500/30 text-blue-400 bg-blue-500/10\", gradient: \"from-blue-500/50 via-cyan-400/20 to-blue-600/30\" },\n};\n\n// ── Service card ─────────────────────────────────────────────────────────────\n\nexport interface LaunchpadServiceCardProps {\n def: ServiceDefinition;\n override?: ServiceOverride;\n}\n\nexport function LaunchpadServiceCard({ def, override = {} }: LaunchpadServiceCardProps) {\n const { key, icon: Icon, browseLinkLabel } = def;\n const status = override.status ?? def.status;\n const badge = override.badge ?? def.badge;\n const subtitle = override.subtitle ?? def.subtitle;\n const description = override.description ?? def.description;\n const features = override.features ?? def.features;\n const { href, buttonLabel, browseHref } = override;\n\n const live = status === \"live\";\n const building = status === \"building\";\n const active = live || building;\n const colors = SERVICE_CARD_COLORS[key] ?? DEFAULT_COLORS;\n\n const card = (\n <div\n className={cn(\n \"relative rounded-[15px] bg-card flex flex-col overflow-hidden\",\n \"transition-all duration-200 flex-1\",\n !active && \"opacity-80\",\n )}\n >\n {/* Atmospheric wash — per-service color, fades to nothing */}\n <div\n aria-hidden\n className={cn(\n \"absolute inset-0 bg-gradient-to-br pointer-events-none\",\n colors.gradient,\n active ? \"opacity-[0.13]\" : \"opacity-[0.05]\",\n )}\n />\n <div className=\"relative flex flex-col flex-1 p-6 gap-4\">\n {/* Icon (soft glow) + status badge */}\n <div className=\"flex items-start justify-between\">\n <div className=\"relative\">\n {active && (\n <div aria-hidden className={cn(\"absolute -inset-3 rounded-full blur-2xl opacity-30\", colors.button)} />\n )}\n <Icon className={cn(\"relative h-10 w-10 transition-transform duration-300\", active ? colors.icon : \"text-muted-foreground/45\")} />\n </div>\n <span\n className={cn(\n \"text-[10px] font-semibold tracking-widest uppercase rounded-full px-2.5 py-1 flex items-center gap-1.5\",\n live\n ? \"text-emerald-500 bg-emerald-500/10\"\n : building\n ? \"text-amber-500 bg-amber-500/10\"\n : \"text-muted-foreground/40 bg-muted/30\",\n )}\n >\n {live && <span className=\"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse\" />}\n {!active && <Lock className=\"h-2.5 w-2.5\" />}\n {badge}\n </span>\n </div>\n\n {/* Title + subtitle */}\n <div className=\"space-y-1\">\n <p className={cn(\"text-2xl font-bold leading-snug tracking-tight\", !active && \"text-foreground/60\")}>\n {def.title}\n </p>\n <p className={cn(\"text-[13px] leading-relaxed\", active ? \"text-muted-foreground\" : \"text-muted-foreground/50\")}>\n {subtitle}\n </p>\n </div>\n\n {/* Description */}\n <div className=\"space-y-2\">\n <p className={cn(\"text-sm leading-relaxed\", active ? \"text-muted-foreground\" : \"text-muted-foreground/50\")}>\n {description}\n </p>\n {def.example && active && (\n <p className=\"text-xs text-muted-foreground/60 italic\">{def.example}</p>\n )}\n </div>\n\n {/* Feature chips */}\n <div className=\"flex flex-wrap gap-1.5\">\n {features.map((f) => (\n <span\n key={f}\n className={cn(\n \"text-[11px] px-2.5 py-1 rounded-full border font-medium\",\n active ? colors.chip : \"bg-muted/10 border-border/15 text-muted-foreground/45\",\n )}\n >\n {f}\n </span>\n ))}\n </div>\n\n {/* CTA — pinned to the card bottom */}\n {live && href ? (\n <div className=\"space-y-2 mt-auto pt-2\">\n <Link\n href={href}\n className={cn(\n \"flex items-center justify-between w-full h-10 px-4 rounded-xl\",\n \"text-sm font-semibold text-white\",\n \"transition-all hover:brightness-110 active:scale-[0.98]\",\n colors.button,\n )}\n >\n {buttonLabel ?? \"Get started\"}\n <ArrowRight className=\"h-3.5 w-3.5\" />\n </Link>\n {browseHref && browseLinkLabel && (\n <Link\n href={browseHref}\n className=\"flex items-center justify-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors py-1\"\n >\n {browseLinkLabel}\n <ArrowRight className=\"h-3 w-3\" />\n </Link>\n )}\n </div>\n ) : (\n <div className=\"flex items-center gap-2 h-10 mt-auto pt-2 text-sm text-muted-foreground/50 font-medium\">\n <Lock className=\"h-3.5 w-3.5\" />\n {building ? \"In development\" : \"Coming soon\"}\n </div>\n )}\n </div>\n </div>\n );\n\n return live ? (\n <div className={cn(\"p-[1px] rounded-2xl bg-gradient-to-br\", colors.gradient, \"transition-all duration-200 hover:-translate-y-0.5 hover:shadow-lg hover:shadow-black/25 flex flex-col\")}>\n {card}\n </div>\n ) : (\n <div className=\"rounded-2xl border border-border/25 flex flex-col\">{card}</div>\n );\n}\n\n// ── Group sections ───────────────────────────────────────────────────────────\n\nfunction GroupHeader({ group }: { group: ServiceGroupDefinition }) {\n return (\n <div className=\"space-y-1\">\n <div className=\"flex items-center gap-2\">\n <h2 className=\"text-xl font-bold tracking-tight\">{group.title}</h2>\n {group.badge ? (\n <span className=\"text-[10px] font-semibold tracking-widest uppercase rounded-full px-2 py-0.5 bg-muted/40 text-muted-foreground\">\n {group.badge}\n </span>\n ) : null}\n </div>\n <p className=\"text-sm text-muted-foreground\">{group.tagline}</p>\n </div>\n );\n}\n\nfunction ComingSoonStrip({ group, defs }: { group: ServiceGroupDefinition; defs: ServiceDefinition[] }) {\n return (\n <div className=\"rounded-2xl border border-border/25 p-5\">\n <p className=\"section-label\">{group.title}</p>\n <p className=\"text-sm text-muted-foreground mt-1\">{group.tagline}</p>\n <div className=\"flex flex-wrap gap-2 mt-4\">\n {defs.map(({ key, icon: Icon, title, subtitle }) => (\n <div key={key} className=\"flex items-center gap-2 px-3 py-2 rounded-full bg-muted/30 border border-border/25\">\n <Icon className=\"h-3.5 w-3.5 text-muted-foreground/60\" />\n <span className=\"text-xs font-semibold text-muted-foreground\">{title}</span>\n <span className=\"hidden sm:inline text-xs text-muted-foreground/50\">— {subtitle}</span>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport interface LaunchpadGroupedSectionsProps {\n /** Per-app hrefs / labels / rollout flips / copy overrides, keyed by service key. */\n overrides: ServiceOverrides;\n className?: string;\n}\n\n/** The full grouped launchpad services block — section order comes from\n * LAUNCHPAD_SERVICE_GROUPS; cards from LAUNCHPAD_SERVICE_DEFINITIONS. */\nexport function LaunchpadGroupedSections({ overrides, className }: LaunchpadGroupedSectionsProps) {\n return (\n <div className={cn(\"space-y-10\", className)}>\n {LAUNCHPAD_SERVICE_GROUPS.map((group) => {\n const defs = LAUNCHPAD_SERVICE_DEFINITIONS.filter((d) => d.group === group.key);\n if (defs.length === 0) return null;\n if (group.key === \"coming-soon\") {\n return <ComingSoonStrip key={group.key} group={group} defs={defs} />;\n }\n return (\n <motion.div\n key={group.key}\n initial={{ opacity: 0, y: 8 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ duration: 0.3, ease: [0.25, 0.46, 0.45, 0.94] }}\n className=\"space-y-4\"\n >\n <GroupHeader group={group} />\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-5\">\n {defs.map((def) => (\n <LaunchpadServiceCard key={def.key} def={def} override={overrides[def.key]} />\n ))}\n </div>\n </motion.div>\n );\n })}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2GM;AA/FN,kBAAiB;AACjB,2BAAuB;AACvB,0BAAiC;AACjC,gBAAmB;AACnB,gCAMO;AA8BP,MAAM,iBAAoC;AAAA,EACxC,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,UAAU;AACZ;AAEO,MAAM,sBAAyD;AAAA,EACpE,iBAAiB,EAAE,MAAM,mBAAmB,QAAQ,iBAAiB,MAAM,mDAAmD,UAAU,kDAAkD;AAAA,EAC1L,qBAAqB,EAAE,MAAM,qBAAqB,QAAQ,mBAAmB,MAAM,yDAAyD,UAAU,wDAAwD;AAAA,EAC9M,sBAAsB,EAAE,MAAM,mBAAmB,QAAQ,iBAAiB,MAAM,mDAAmD,UAAU,kDAAkD;AAAA,EAC/L,iBAAiB,EAAE,MAAM,qBAAqB,QAAQ,mBAAmB,MAAM,yDAAyD,UAAU,uDAAuD;AAAA,EACzM,eAAe,EAAE,MAAM,mBAAmB,QAAQ,iBAAiB,MAAM,yDAAyD,UAAU,oDAAoD;AAAA,EAChM,gBAAgB,EAAE,MAAM,qBAAqB,QAAQ,mBAAmB,MAAM,yDAAyD,UAAU,uDAAuD;AAAA,EACxM,mBAAmB,EAAE,MAAM,mBAAmB,QAAQ,iBAAiB,MAAM,mDAAmD,UAAU,iDAAiD;AAAA,EAC3L,cAAc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cesContent":["\"use client\";\n\n/**\n * Launchpad grouped services — the single source for the /launchpad page UI\n * in medialane-io and medialane-dapp.\n *\n * Card philosophy (creator-first redesign, 2026-06-10): the whole card is the\n * action. One title, one creator-language sentence (def.blurb), one unique hue\n * per service — no buttons repeating the title, no status badges, no tech\n * chips, no hover-only effects (mobile first: press states only).\n *\n * Apps own: hrefs + per-app rollout status flips. Everything else lives here.\n */\n\nimport Link from \"next/link\";\nimport { motion } from \"framer-motion\";\nimport { Lock, ArrowUpRight, ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport {\n LAUNCHPAD_SERVICE_DEFINITIONS,\n LAUNCHPAD_SERVICE_GROUPS,\n type ServiceDefinition,\n type ServiceGroupDefinition,\n type ServiceStatus,\n} from \"../data/launchpad-services.js\";\n\n// ── Per-app injection points ─────────────────────────────────────────────────\n\nexport interface ServiceOverride {\n /** Primary destination — the whole card links here (required for live services) */\n href?: string;\n /** Secondary browse link href (pairs with the def's browseLinkLabel) */\n browseHref?: string;\n /** Per-app rollout flips (e.g. coins live on one app first) */\n status?: ServiceStatus;\n /** Per-app one-liner override (rarely needed) */\n blurb?: string;\n}\n\nexport type ServiceOverrides = Record<string, ServiceOverride>;\n\n// ── One unique hue per service — never repeated inside a group ───────────────\n\ninterface ServiceHue {\n /** icon + arrow tint (600 for light surfaces, 400 for dark) */\n text: string;\n /** soft circle behind the arrow */\n bg: string;\n}\n\nconst DEFAULT_HUE: ServiceHue = { text: \"text-sky-600 dark:text-sky-400\", bg: \"bg-sky-500/10\" };\n\nexport const SERVICE_HUES: Record<string, ServiceHue> = {\n \"mint-ip-asset\": { text: \"text-sky-600 dark:text-sky-400\", bg: \"bg-sky-500/10\" },\n \"create-collection\": { text: \"text-violet-600 dark:text-violet-400\", bg: \"bg-violet-500/10\" },\n \"ip-collection-1155\": { text: \"text-rose-600 dark:text-rose-400\", bg: \"bg-rose-500/10\" },\n \"mint-editions\": { text: \"text-amber-600 dark:text-amber-400\", bg: \"bg-amber-500/10\" },\n \"creator-coins\": { text: \"text-pink-600 dark:text-pink-400\", bg: \"bg-pink-500/10\" },\n \"claim-memecoin\": { text: \"text-teal-600 dark:text-teal-400\", bg: \"bg-teal-500/10\" },\n \"collection-drop\": { text: \"text-orange-600 dark:text-orange-400\", bg: \"bg-orange-500/10\" },\n \"pop-protocol\": { text: \"text-emerald-600 dark:text-emerald-400\", bg: \"bg-emerald-500/10\" },\n \"remix-asset\": { text: \"text-indigo-600 dark:text-indigo-400\", bg: \"bg-indigo-500/10\" },\n \"claim-username\": { text: \"text-purple-600 dark:text-purple-400\", bg: \"bg-purple-500/10\" },\n \"claim-collection\": { text: \"text-cyan-600 dark:text-cyan-400\", bg: \"bg-cyan-500/10\" },\n};\n\n// ── Service card — the whole card is the action ─────────────────────────────\n\nexport interface LaunchpadServiceCardProps {\n def: ServiceDefinition;\n override?: ServiceOverride;\n}\n\nexport function LaunchpadServiceCard({ def, override = {} }: LaunchpadServiceCardProps) {\n const { key, icon: Icon, title, browseLinkLabel } = def;\n const status = override.status ?? def.status;\n const blurb = override.blurb ?? def.blurb;\n const { href, browseHref } = override;\n\n const live = status === \"live\";\n const hue = SERVICE_HUES[key] ?? DEFAULT_HUE;\n\n return (\n <div\n className={cn(\n \"relative rounded-2xl border border-border/60 bg-card p-5 sm:p-6\",\n \"flex flex-col gap-3 transition-transform\",\n live ? \"active:scale-[0.99]\" : \"opacity-60\",\n )}\n >\n <div className=\"flex items-start justify-between gap-3\">\n <Icon className={cn(\"h-7 w-7 shrink-0\", live ? hue.text : \"text-muted-foreground/50\")} />\n {live ? (\n <span className={cn(\"h-9 w-9 shrink-0 rounded-full flex items-center justify-center\", hue.bg)}>\n <ArrowUpRight className={cn(\"h-4 w-4\", hue.text)} />\n </span>\n ) : (\n <span className=\"flex items-center gap-1 text-[11px] font-medium text-muted-foreground/60 pt-1\">\n <Lock className=\"h-3 w-3\" />\n Coming soon\n </span>\n )}\n </div>\n\n <div className=\"space-y-1\">\n <h3 className=\"text-lg font-bold tracking-tight leading-snug\">{title}</h3>\n <p className={cn(\"text-sm leading-relaxed\", live ? \"text-muted-foreground\" : \"text-muted-foreground/60\")}>\n {blurb}\n </p>\n </div>\n\n {/* Stretched link — makes the whole card the action without nesting anchors */}\n {live && href && <Link href={href} aria-label={title} className=\"absolute inset-0 z-10 rounded-2xl\" />}\n\n {live && browseHref && browseLinkLabel && (\n <Link\n href={browseHref}\n className=\"relative z-20 mt-auto self-start inline-flex items-center gap-1 text-xs font-medium text-muted-foreground active:text-foreground\"\n >\n {browseLinkLabel}\n <ArrowRight className=\"h-3 w-3\" />\n </Link>\n )}\n </div>\n );\n}\n\n// ── Group sections ───────────────────────────────────────────────────────────\n\nfunction GroupHeader({ group }: { group: ServiceGroupDefinition }) {\n return (\n <div className=\"space-y-1\">\n <h2 className=\"text-xl font-bold tracking-tight\">{group.title}</h2>\n <p className=\"text-sm text-muted-foreground\">{group.tagline}</p>\n </div>\n );\n}\n\nfunction ComingSoonStrip({ group, defs }: { group: ServiceGroupDefinition; defs: ServiceDefinition[] }) {\n return (\n <div className=\"rounded-2xl border border-border/40 p-5\">\n <p className=\"font-semibold text-sm\">{group.title}</p>\n <p className=\"text-sm text-muted-foreground mt-0.5\">{group.tagline}</p>\n <div className=\"flex flex-wrap gap-2 mt-4\">\n {defs.map(({ key, icon: Icon, title }) => (\n <div key={key} className=\"flex items-center gap-2 px-3 py-2 rounded-full bg-muted/30 border border-border/25\">\n <Icon className=\"h-3.5 w-3.5 text-muted-foreground/60\" />\n <span className=\"text-xs font-medium text-muted-foreground\">{title}</span>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport interface LaunchpadGroupedSectionsProps {\n /** Per-app hrefs / rollout flips, keyed by service key. */\n overrides: ServiceOverrides;\n className?: string;\n}\n\n/** The full grouped launchpad services block — section order comes from\n * LAUNCHPAD_SERVICE_GROUPS; cards from LAUNCHPAD_SERVICE_DEFINITIONS. */\nexport function LaunchpadGroupedSections({ overrides, className }: LaunchpadGroupedSectionsProps) {\n return (\n <div className={cn(\"space-y-10\", className)}>\n {LAUNCHPAD_SERVICE_GROUPS.map((group) => {\n const defs = LAUNCHPAD_SERVICE_DEFINITIONS.filter((d) => d.group === group.key);\n if (defs.length === 0) return null;\n if (group.key === \"coming-soon\") {\n return <ComingSoonStrip key={group.key} group={group} defs={defs} />;\n }\n return (\n <motion.div\n key={group.key}\n initial={{ opacity: 0, y: 8 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ duration: 0.3, ease: [0.25, 0.46, 0.45, 0.94] }}\n className=\"space-y-4\"\n >\n <GroupHeader group={group} />\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n {defs.map((def) => (\n <LaunchpadServiceCard key={def.key} def={def} override={overrides[def.key]} />\n ))}\n </div>\n </motion.div>\n );\n })}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2FQ;AA7ER,kBAAiB;AACjB,2BAAuB;AACvB,0BAA+C;AAC/C,gBAAmB;AACnB,gCAMO;AA0BP,MAAM,cAA0B,EAAE,MAAM,kCAAkC,IAAI,gBAAgB;AAEvF,MAAM,eAA2C;AAAA,EACtD,iBAAiB,EAAE,MAAM,kCAAkC,IAAI,gBAAgB;AAAA,EAC/E,qBAAqB,EAAE,MAAM,wCAAwC,IAAI,mBAAmB;AAAA,EAC5F,sBAAsB,EAAE,MAAM,oCAAoC,IAAI,iBAAiB;AAAA,EACvF,iBAAiB,EAAE,MAAM,sCAAsC,IAAI,kBAAkB;AAAA,EACrF,iBAAiB,EAAE,MAAM,oCAAoC,IAAI,iBAAiB;AAAA,EAClF,kBAAkB,EAAE,MAAM,oCAAoC,IAAI,iBAAiB;AAAA,EACnF,mBAAmB,EAAE,MAAM,wCAAwC,IAAI,mBAAmB;AAAA,EAC1F,gBAAgB,EAAE,MAAM,0CAA0C,IAAI,oBAAoB;AAAA,EAC1F,eAAe,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AAE,UAAU,KAAK,MAAM,CAAC,MAAM,MAAM,MAAM,IAAI,EAAE;AAAA,QAC5D,WAAU;AAAA,QAEV;AAAA,sDAAC,eAAY,OAAc;AAAA,UAC3B,4CAAC,SAAI,WAAU,yCACZ,eAAK,IAAI,CAAC,QACT,4CAAC,wBAAmC,KAAU,UAAU,UAAU,IAAI,GAAG,KAA9C,IAAI,GAA6C,CAC7E,GACH;AAAA;AAAA;AAAA,MAXK,MAAM;AAAA,IAYb;AAAA,EAEJ,CAAC,GACH;AAEJ;","names":["Link"]}
|
|
@@ -3,34 +3,30 @@ import { ServiceStatus, ServiceDefinition } from '../data/launchpad-services.cjs
|
|
|
3
3
|
import 'lucide-react';
|
|
4
4
|
|
|
5
5
|
interface ServiceOverride {
|
|
6
|
-
/** Primary
|
|
6
|
+
/** Primary destination — the whole card links here (required for live services) */
|
|
7
7
|
href?: string;
|
|
8
|
-
buttonLabel?: string;
|
|
9
8
|
/** Secondary browse link href (pairs with the def's browseLinkLabel) */
|
|
10
9
|
browseHref?: string;
|
|
11
10
|
/** Per-app rollout flips (e.g. coins live on one app first) */
|
|
12
11
|
status?: ServiceStatus;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
features?: string[];
|
|
16
|
-
description?: string;
|
|
17
|
-
subtitle?: string;
|
|
12
|
+
/** Per-app one-liner override (rarely needed) */
|
|
13
|
+
blurb?: string;
|
|
18
14
|
}
|
|
19
15
|
type ServiceOverrides = Record<string, ServiceOverride>;
|
|
20
|
-
interface
|
|
21
|
-
icon
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
interface ServiceHue {
|
|
17
|
+
/** icon + arrow tint (600 for light surfaces, 400 for dark) */
|
|
18
|
+
text: string;
|
|
19
|
+
/** soft circle behind the arrow */
|
|
20
|
+
bg: string;
|
|
25
21
|
}
|
|
26
|
-
declare const
|
|
22
|
+
declare const SERVICE_HUES: Record<string, ServiceHue>;
|
|
27
23
|
interface LaunchpadServiceCardProps {
|
|
28
24
|
def: ServiceDefinition;
|
|
29
25
|
override?: ServiceOverride;
|
|
30
26
|
}
|
|
31
27
|
declare function LaunchpadServiceCard({ def, override }: LaunchpadServiceCardProps): react_jsx_runtime.JSX.Element;
|
|
32
28
|
interface LaunchpadGroupedSectionsProps {
|
|
33
|
-
/** Per-app hrefs /
|
|
29
|
+
/** Per-app hrefs / rollout flips, keyed by service key. */
|
|
34
30
|
overrides: ServiceOverrides;
|
|
35
31
|
className?: string;
|
|
36
32
|
}
|
|
@@ -38,4 +34,4 @@ interface LaunchpadGroupedSectionsProps {
|
|
|
38
34
|
* LAUNCHPAD_SERVICE_GROUPS; cards from LAUNCHPAD_SERVICE_DEFINITIONS. */
|
|
39
35
|
declare function LaunchpadGroupedSections({ overrides, className }: LaunchpadGroupedSectionsProps): react_jsx_runtime.JSX.Element;
|
|
40
36
|
|
|
41
|
-
export { LaunchpadGroupedSections, type LaunchpadGroupedSectionsProps, LaunchpadServiceCard, type LaunchpadServiceCardProps,
|
|
37
|
+
export { LaunchpadGroupedSections, type LaunchpadGroupedSectionsProps, LaunchpadServiceCard, type LaunchpadServiceCardProps, SERVICE_HUES, type ServiceOverride, type ServiceOverrides };
|
|
@@ -3,34 +3,30 @@ import { ServiceStatus, ServiceDefinition } from '../data/launchpad-services.js'
|
|
|
3
3
|
import 'lucide-react';
|
|
4
4
|
|
|
5
5
|
interface ServiceOverride {
|
|
6
|
-
/** Primary
|
|
6
|
+
/** Primary destination — the whole card links here (required for live services) */
|
|
7
7
|
href?: string;
|
|
8
|
-
buttonLabel?: string;
|
|
9
8
|
/** Secondary browse link href (pairs with the def's browseLinkLabel) */
|
|
10
9
|
browseHref?: string;
|
|
11
10
|
/** Per-app rollout flips (e.g. coins live on one app first) */
|
|
12
11
|
status?: ServiceStatus;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
features?: string[];
|
|
16
|
-
description?: string;
|
|
17
|
-
subtitle?: string;
|
|
12
|
+
/** Per-app one-liner override (rarely needed) */
|
|
13
|
+
blurb?: string;
|
|
18
14
|
}
|
|
19
15
|
type ServiceOverrides = Record<string, ServiceOverride>;
|
|
20
|
-
interface
|
|
21
|
-
icon
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
interface ServiceHue {
|
|
17
|
+
/** icon + arrow tint (600 for light surfaces, 400 for dark) */
|
|
18
|
+
text: string;
|
|
19
|
+
/** soft circle behind the arrow */
|
|
20
|
+
bg: string;
|
|
25
21
|
}
|
|
26
|
-
declare const
|
|
22
|
+
declare const SERVICE_HUES: Record<string, ServiceHue>;
|
|
27
23
|
interface LaunchpadServiceCardProps {
|
|
28
24
|
def: ServiceDefinition;
|
|
29
25
|
override?: ServiceOverride;
|
|
30
26
|
}
|
|
31
27
|
declare function LaunchpadServiceCard({ def, override }: LaunchpadServiceCardProps): react_jsx_runtime.JSX.Element;
|
|
32
28
|
interface LaunchpadGroupedSectionsProps {
|
|
33
|
-
/** Per-app hrefs /
|
|
29
|
+
/** Per-app hrefs / rollout flips, keyed by service key. */
|
|
34
30
|
overrides: ServiceOverrides;
|
|
35
31
|
className?: string;
|
|
36
32
|
}
|
|
@@ -38,4 +34,4 @@ interface LaunchpadGroupedSectionsProps {
|
|
|
38
34
|
* LAUNCHPAD_SERVICE_GROUPS; cards from LAUNCHPAD_SERVICE_DEFINITIONS. */
|
|
39
35
|
declare function LaunchpadGroupedSections({ overrides, className }: LaunchpadGroupedSectionsProps): react_jsx_runtime.JSX.Element;
|
|
40
36
|
|
|
41
|
-
export { LaunchpadGroupedSections, type LaunchpadGroupedSectionsProps, LaunchpadServiceCard, type LaunchpadServiceCardProps,
|
|
37
|
+
export { LaunchpadGroupedSections, type LaunchpadGroupedSectionsProps, LaunchpadServiceCard, type LaunchpadServiceCardProps, SERVICE_HUES, type ServiceOverride, type ServiceOverrides };
|