@hoardodile/ui 0.1.3 → 0.1.5
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/badge.d.ts +1 -1
- package/dist/components/popover.d.ts +10 -1
- package/dist/components/popover.js +9 -0
- package/dist/components/popover.js.map +1 -1
- package/dist/components/special-tag-surface.d.ts +36 -0
- package/dist/components/special-tag-surface.js +533 -0
- package/dist/components/special-tag-surface.js.map +1 -0
- package/dist/components/tag-chip.d.ts +87 -0
- package/dist/components/tag-chip.js +713 -0
- package/dist/components/tag-chip.js.map +1 -0
- package/dist/lib/colors.d.ts +33 -0
- package/dist/lib/colors.js +65 -0
- package/dist/lib/colors.js.map +1 -0
- package/dist/lib/tag-surface.d.ts +22 -0
- package/dist/lib/tag-surface.js +615 -0
- package/dist/lib/tag-surface.js.map +1 -0
- package/package.json +2 -2
- package/src/components/popover.tsx +21 -0
- package/src/components/special/gold.tsx +73 -0
- package/src/components/special/kintsugi.tsx +143 -0
- package/src/components/special/oilslick.tsx +138 -0
- package/src/components/special/rainbow.tsx +63 -0
- package/src/components/special/silver.tsx +73 -0
- package/src/components/special/types.ts +21 -0
- package/src/components/special-tag-surface.tsx +53 -0
- package/src/components/tag-chip.test.tsx +180 -0
- package/src/components/tag-chip.tsx +221 -0
- package/src/lib/colors.test.ts +94 -0
- package/src/lib/colors.ts +96 -0
- package/src/lib/tag-surface.ts +71 -0
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
import { clsx } from 'clsx';
|
|
2
|
+
import { extendTailwindMerge } from 'tailwind-merge';
|
|
3
|
+
import { useId } from 'react';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// src/lib/utils.ts
|
|
7
|
+
var mergeTheme = {
|
|
8
|
+
text: ["tiny", "ui", "doc", "doc-title", "doc-heading", "quote"],
|
|
9
|
+
spacing: ["chip", "control", "nav", "sidebar", "panel"],
|
|
10
|
+
tracking: ["label"],
|
|
11
|
+
shadow: ["card", "dialog"],
|
|
12
|
+
container: ["reading", "medium", "content"],
|
|
13
|
+
font: ["doc", "heading"],
|
|
14
|
+
ease: ["standard"],
|
|
15
|
+
animate: ["skel", "pop"]
|
|
16
|
+
};
|
|
17
|
+
var twMerge = extendTailwindMerge({
|
|
18
|
+
extend: { theme: mergeTheme }
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// src/lib/utils.ts
|
|
22
|
+
function cn(...inputs) {
|
|
23
|
+
return twMerge(clsx(inputs));
|
|
24
|
+
}
|
|
25
|
+
function GoldSurface({
|
|
26
|
+
id,
|
|
27
|
+
active
|
|
28
|
+
}) {
|
|
29
|
+
const gradientId = `${id}-gold-gradient`;
|
|
30
|
+
return /* @__PURE__ */ jsxs(
|
|
31
|
+
"svg",
|
|
32
|
+
{
|
|
33
|
+
className: cn(
|
|
34
|
+
"size-full",
|
|
35
|
+
!active && "[filter:brightness(1.1)] group-hover:[filter:brightness(1.16)]"
|
|
36
|
+
),
|
|
37
|
+
width: "100%",
|
|
38
|
+
height: "100%",
|
|
39
|
+
viewBox: "0 0 100 100",
|
|
40
|
+
preserveAspectRatio: "none",
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
43
|
+
"linearGradient",
|
|
44
|
+
{
|
|
45
|
+
id: gradientId,
|
|
46
|
+
x1: "0%",
|
|
47
|
+
y1: "0%",
|
|
48
|
+
x2: "100%",
|
|
49
|
+
y2: "0%",
|
|
50
|
+
gradientTransform: "rotate(30, 0.5, 0.5)",
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ jsx("stop", { offset: "10%", stopColor: "#daa520" }),
|
|
53
|
+
/* @__PURE__ */ jsx("stop", { offset: "30%", stopColor: "#ffd700" }),
|
|
54
|
+
/* @__PURE__ */ jsx("stop", { offset: "50%", stopColor: "#f0e68c" }),
|
|
55
|
+
/* @__PURE__ */ jsx("stop", { offset: "70%", stopColor: "#ffd700" }),
|
|
56
|
+
/* @__PURE__ */ jsx("stop", { offset: "90%", stopColor: "#daa520" })
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
) }),
|
|
60
|
+
/* @__PURE__ */ jsx(
|
|
61
|
+
"rect",
|
|
62
|
+
{
|
|
63
|
+
width: "100",
|
|
64
|
+
height: "100",
|
|
65
|
+
fill: active ? "#8a6d1f" : `url(#${gradientId})`
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
!active && /* @__PURE__ */ jsx(
|
|
69
|
+
"rect",
|
|
70
|
+
{
|
|
71
|
+
x: "0",
|
|
72
|
+
y: "0",
|
|
73
|
+
width: "100",
|
|
74
|
+
height: "8",
|
|
75
|
+
fill: "#ffffff",
|
|
76
|
+
opacity: "0.12"
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
var goldConfig = {
|
|
84
|
+
render: GoldSurface,
|
|
85
|
+
default: {
|
|
86
|
+
style: {
|
|
87
|
+
color: "#725603",
|
|
88
|
+
boxShadow: "inset 0 0 0 1px rgba(114, 86, 3, 0.2)"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
active: {
|
|
92
|
+
style: {
|
|
93
|
+
color: "#ffffff"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
function KintsugiSurface({
|
|
98
|
+
id,
|
|
99
|
+
active
|
|
100
|
+
}) {
|
|
101
|
+
if (active) {
|
|
102
|
+
return /* @__PURE__ */ jsx(
|
|
103
|
+
"svg",
|
|
104
|
+
{
|
|
105
|
+
className: cn(
|
|
106
|
+
"size-full",
|
|
107
|
+
!active && "[filter:brightness(1.02)] group-hover:[filter:brightness(1.06)]"
|
|
108
|
+
),
|
|
109
|
+
width: "100%",
|
|
110
|
+
height: "100%",
|
|
111
|
+
viewBox: "0 0 100 100",
|
|
112
|
+
preserveAspectRatio: "none",
|
|
113
|
+
children: /* @__PURE__ */ jsx("rect", { width: "100", height: "100", fill: "#9a9a8a" })
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
const goldGradientId = `${id}-kintsugi-gold`;
|
|
118
|
+
return /* @__PURE__ */ jsxs(
|
|
119
|
+
"svg",
|
|
120
|
+
{
|
|
121
|
+
className: cn(
|
|
122
|
+
"size-full",
|
|
123
|
+
!active && "[filter:brightness(1.02)] group-hover:[filter:brightness(1.06)]"
|
|
124
|
+
),
|
|
125
|
+
width: "100%",
|
|
126
|
+
height: "100%",
|
|
127
|
+
viewBox: "0 0 100 100",
|
|
128
|
+
preserveAspectRatio: "none",
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ jsx("style", { children: `
|
|
131
|
+
@keyframes ${id}-gold-shimmer {
|
|
132
|
+
0% { stroke-dashoffset: 60; }
|
|
133
|
+
100% { stroke-dashoffset: 0; }
|
|
134
|
+
}
|
|
135
|
+
.${id}-gold-vein {
|
|
136
|
+
stroke-dasharray: 30 30;
|
|
137
|
+
animation: ${id}-gold-shimmer 5s linear infinite;
|
|
138
|
+
}
|
|
139
|
+
@media (prefers-reduced-motion: reduce) {
|
|
140
|
+
.${id}-gold-vein {
|
|
141
|
+
animation: none;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
` }),
|
|
145
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: goldGradientId, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
146
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#b8860b" }),
|
|
147
|
+
/* @__PURE__ */ jsx("stop", { offset: "35%", stopColor: "#ffd700" }),
|
|
148
|
+
/* @__PURE__ */ jsx("stop", { offset: "50%", stopColor: "#fffacd" }),
|
|
149
|
+
/* @__PURE__ */ jsx("stop", { offset: "65%", stopColor: "#ffd700" }),
|
|
150
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#b8860b" })
|
|
151
|
+
] }) }),
|
|
152
|
+
/* @__PURE__ */ jsx("rect", { width: "100", height: "100", fill: "#d8d4c5" }),
|
|
153
|
+
/* @__PURE__ */ jsx("rect", { width: "100", height: "100", fill: "#b8c4b8", opacity: "0.35" }),
|
|
154
|
+
/* @__PURE__ */ jsx("ellipse", { cx: "30", cy: "25", rx: "40", ry: "25", fill: "#ffffff", opacity: "0.08" }),
|
|
155
|
+
/* @__PURE__ */ jsx("ellipse", { cx: "75", cy: "70", rx: "35", ry: "28", fill: "#000000", opacity: "0.04" }),
|
|
156
|
+
/* @__PURE__ */ jsx(
|
|
157
|
+
"path",
|
|
158
|
+
{
|
|
159
|
+
d: "M 5 20 Q 25 22 35 45 T 60 80",
|
|
160
|
+
fill: "none",
|
|
161
|
+
stroke: "#5a5650",
|
|
162
|
+
strokeWidth: "0.7",
|
|
163
|
+
opacity: "0.45"
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
/* @__PURE__ */ jsx(
|
|
167
|
+
"path",
|
|
168
|
+
{
|
|
169
|
+
d: "M 80 10 Q 70 35 85 55 T 55 95",
|
|
170
|
+
fill: "none",
|
|
171
|
+
stroke: "#5a5650",
|
|
172
|
+
strokeWidth: "0.6",
|
|
173
|
+
opacity: "0.40"
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
/* @__PURE__ */ jsx(
|
|
177
|
+
"path",
|
|
178
|
+
{
|
|
179
|
+
d: "M 10 70 Q 30 68 45 55 T 75 45",
|
|
180
|
+
fill: "none",
|
|
181
|
+
stroke: "#5a5650",
|
|
182
|
+
strokeWidth: "0.5",
|
|
183
|
+
opacity: "0.38"
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
/* @__PURE__ */ jsx(
|
|
187
|
+
"path",
|
|
188
|
+
{
|
|
189
|
+
className: `${id}-gold-vein`,
|
|
190
|
+
d: "M 4 18 Q 24 20 34 43 T 58 78",
|
|
191
|
+
fill: "none",
|
|
192
|
+
stroke: `url(#${goldGradientId})`,
|
|
193
|
+
strokeWidth: "1.4",
|
|
194
|
+
strokeLinecap: "round"
|
|
195
|
+
}
|
|
196
|
+
),
|
|
197
|
+
/* @__PURE__ */ jsx(
|
|
198
|
+
"path",
|
|
199
|
+
{
|
|
200
|
+
className: `${id}-gold-vein`,
|
|
201
|
+
d: "M 82 8 Q 72 33 87 53 T 53 93",
|
|
202
|
+
fill: "none",
|
|
203
|
+
stroke: `url(#${goldGradientId})`,
|
|
204
|
+
strokeWidth: "1.2",
|
|
205
|
+
strokeLinecap: "round"
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
/* @__PURE__ */ jsx(
|
|
209
|
+
"path",
|
|
210
|
+
{
|
|
211
|
+
className: `${id}-gold-vein`,
|
|
212
|
+
d: "M 8 68 Q 28 66 43 53 T 73 43",
|
|
213
|
+
fill: "none",
|
|
214
|
+
stroke: `url(#${goldGradientId})`,
|
|
215
|
+
strokeWidth: "1.0",
|
|
216
|
+
strokeLinecap: "round"
|
|
217
|
+
}
|
|
218
|
+
)
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
var kintsugiConfig = {
|
|
224
|
+
render: KintsugiSurface,
|
|
225
|
+
default: {
|
|
226
|
+
style: {
|
|
227
|
+
color: "#4a4030",
|
|
228
|
+
boxShadow: "inset 0 0 0 1px rgba(74, 64, 48, 0.12)"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
active: {
|
|
232
|
+
style: {
|
|
233
|
+
color: "#ffffff"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
function OilslickSurface({
|
|
238
|
+
id,
|
|
239
|
+
active
|
|
240
|
+
}) {
|
|
241
|
+
if (active) {
|
|
242
|
+
return /* @__PURE__ */ jsx(
|
|
243
|
+
"svg",
|
|
244
|
+
{
|
|
245
|
+
className: cn(
|
|
246
|
+
"size-full",
|
|
247
|
+
!active && "[filter:saturate(1.15)] group-hover:[filter:saturate(1.3)_brightness(1.08)]"
|
|
248
|
+
),
|
|
249
|
+
width: "100%",
|
|
250
|
+
height: "100%",
|
|
251
|
+
viewBox: "0 0 100 100",
|
|
252
|
+
preserveAspectRatio: "none",
|
|
253
|
+
children: /* @__PURE__ */ jsx("rect", { width: "100", height: "100", fill: "#1a1a2e" })
|
|
254
|
+
}
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
const gradientA = `${id}-oilslick-a`;
|
|
258
|
+
const gradientB = `${id}-oilslick-b`;
|
|
259
|
+
const gradientC = `${id}-oilslick-c`;
|
|
260
|
+
return /* @__PURE__ */ jsxs(
|
|
261
|
+
"svg",
|
|
262
|
+
{
|
|
263
|
+
className: cn(
|
|
264
|
+
"size-full",
|
|
265
|
+
!active && "[filter:saturate(1.15)] group-hover:[filter:saturate(1.3)_brightness(1.08)]"
|
|
266
|
+
),
|
|
267
|
+
width: "100%",
|
|
268
|
+
height: "100%",
|
|
269
|
+
viewBox: "0 0 100 100",
|
|
270
|
+
preserveAspectRatio: "none",
|
|
271
|
+
children: [
|
|
272
|
+
/* @__PURE__ */ jsxs("defs", { children: [
|
|
273
|
+
/* @__PURE__ */ jsxs("radialGradient", { id: gradientA, cx: "30%", cy: "30%", r: "70%", children: [
|
|
274
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#8b5cf6", children: /* @__PURE__ */ jsx(
|
|
275
|
+
"animate",
|
|
276
|
+
{
|
|
277
|
+
attributeName: "stop-color",
|
|
278
|
+
values: "#8b5cf6;#06b6d4;#8b5cf6",
|
|
279
|
+
dur: "8s",
|
|
280
|
+
repeatCount: "indefinite"
|
|
281
|
+
}
|
|
282
|
+
) }),
|
|
283
|
+
/* @__PURE__ */ jsx("stop", { offset: "60%", stopColor: "#1e1b4b", stopOpacity: "0.9" }),
|
|
284
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#0f0f1a", stopOpacity: "0" })
|
|
285
|
+
] }),
|
|
286
|
+
/* @__PURE__ */ jsxs("radialGradient", { id: gradientB, cx: "70%", cy: "60%", r: "60%", children: [
|
|
287
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#10b981", children: /* @__PURE__ */ jsx(
|
|
288
|
+
"animate",
|
|
289
|
+
{
|
|
290
|
+
attributeName: "stop-color",
|
|
291
|
+
values: "#10b981;#f59e0b;#ec4899;#10b981",
|
|
292
|
+
dur: "10s",
|
|
293
|
+
repeatCount: "indefinite"
|
|
294
|
+
}
|
|
295
|
+
) }),
|
|
296
|
+
/* @__PURE__ */ jsx("stop", { offset: "55%", stopColor: "#1e1b4b", stopOpacity: "0.8" }),
|
|
297
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#0f0f1a", stopOpacity: "0" })
|
|
298
|
+
] }),
|
|
299
|
+
/* @__PURE__ */ jsxs("radialGradient", { id: gradientC, cx: "50%", cy: "80%", r: "55%", children: [
|
|
300
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#ec4899", children: /* @__PURE__ */ jsx(
|
|
301
|
+
"animate",
|
|
302
|
+
{
|
|
303
|
+
attributeName: "stop-color",
|
|
304
|
+
values: "#ec4899;#8b5cf6;#06b6d4;#ec4899",
|
|
305
|
+
dur: "7s",
|
|
306
|
+
repeatCount: "indefinite"
|
|
307
|
+
}
|
|
308
|
+
) }),
|
|
309
|
+
/* @__PURE__ */ jsx("stop", { offset: "50%", stopColor: "#1e1b4b", stopOpacity: "0.7" }),
|
|
310
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#0f0f1a", stopOpacity: "0" })
|
|
311
|
+
] })
|
|
312
|
+
] }),
|
|
313
|
+
/* @__PURE__ */ jsx("rect", { width: "100", height: "100", fill: "#0a0a12" }),
|
|
314
|
+
/* @__PURE__ */ jsx(
|
|
315
|
+
"rect",
|
|
316
|
+
{
|
|
317
|
+
width: "100",
|
|
318
|
+
height: "100",
|
|
319
|
+
fill: `url(#${gradientA})`,
|
|
320
|
+
opacity: "0.85"
|
|
321
|
+
}
|
|
322
|
+
),
|
|
323
|
+
/* @__PURE__ */ jsx(
|
|
324
|
+
"rect",
|
|
325
|
+
{
|
|
326
|
+
width: "100",
|
|
327
|
+
height: "100",
|
|
328
|
+
fill: `url(#${gradientB})`,
|
|
329
|
+
opacity: "0.75"
|
|
330
|
+
}
|
|
331
|
+
),
|
|
332
|
+
/* @__PURE__ */ jsx(
|
|
333
|
+
"rect",
|
|
334
|
+
{
|
|
335
|
+
width: "100",
|
|
336
|
+
height: "100",
|
|
337
|
+
fill: `url(#${gradientC})`,
|
|
338
|
+
opacity: "0.70"
|
|
339
|
+
}
|
|
340
|
+
),
|
|
341
|
+
/* @__PURE__ */ jsx(
|
|
342
|
+
"path",
|
|
343
|
+
{
|
|
344
|
+
d: "M -10 60 Q 25 45 50 60 T 110 55",
|
|
345
|
+
fill: "none",
|
|
346
|
+
stroke: "#ffffff",
|
|
347
|
+
strokeWidth: "0.8",
|
|
348
|
+
opacity: "0.12",
|
|
349
|
+
children: /* @__PURE__ */ jsx(
|
|
350
|
+
"animate",
|
|
351
|
+
{
|
|
352
|
+
attributeName: "d",
|
|
353
|
+
values: "M -10 60 Q 25 45 50 60 T 110 55;M -10 55 Q 30 70 55 50 T 110 65;M -10 60 Q 25 45 50 60 T 110 55",
|
|
354
|
+
dur: "12s",
|
|
355
|
+
repeatCount: "indefinite"
|
|
356
|
+
}
|
|
357
|
+
)
|
|
358
|
+
}
|
|
359
|
+
)
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
var oilslickConfig = {
|
|
365
|
+
render: OilslickSurface,
|
|
366
|
+
default: {
|
|
367
|
+
style: {
|
|
368
|
+
color: "#ffffff",
|
|
369
|
+
boxShadow: "inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 10px rgba(139, 92, 246, 0.20)"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
active: {
|
|
373
|
+
style: {
|
|
374
|
+
color: "#ffffff"
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
function RainbowSurface({
|
|
379
|
+
id,
|
|
380
|
+
active
|
|
381
|
+
}) {
|
|
382
|
+
const gradientId = `${id}-rainbow-gradient`;
|
|
383
|
+
return /* @__PURE__ */ jsxs(
|
|
384
|
+
"svg",
|
|
385
|
+
{
|
|
386
|
+
className: cn(
|
|
387
|
+
"size-full",
|
|
388
|
+
!active && "group-hover:[filter:brightness(1.08)]"
|
|
389
|
+
),
|
|
390
|
+
width: "100%",
|
|
391
|
+
height: "100%",
|
|
392
|
+
viewBox: "0 0 100 100",
|
|
393
|
+
preserveAspectRatio: "none",
|
|
394
|
+
children: [
|
|
395
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
396
|
+
"linearGradient",
|
|
397
|
+
{
|
|
398
|
+
id: gradientId,
|
|
399
|
+
x1: "0%",
|
|
400
|
+
y1: "0%",
|
|
401
|
+
x2: "100%",
|
|
402
|
+
y2: "0%",
|
|
403
|
+
gradientTransform: "rotate(30, 0.5, 0.5)",
|
|
404
|
+
children: [
|
|
405
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#fbffca" }),
|
|
406
|
+
/* @__PURE__ */ jsx("stop", { offset: "33%", stopColor: "#baffbf" }),
|
|
407
|
+
/* @__PURE__ */ jsx("stop", { offset: "66%", stopColor: "#a7efff" }),
|
|
408
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#ffabff" })
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
) }),
|
|
412
|
+
/* @__PURE__ */ jsx(
|
|
413
|
+
"rect",
|
|
414
|
+
{
|
|
415
|
+
width: "100",
|
|
416
|
+
height: "100",
|
|
417
|
+
fill: active ? "#005458" : `url(#${gradientId})`
|
|
418
|
+
}
|
|
419
|
+
)
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
);
|
|
423
|
+
}
|
|
424
|
+
var rainbowConfig = {
|
|
425
|
+
render: RainbowSurface,
|
|
426
|
+
default: {
|
|
427
|
+
className: "font-bold dark:[text-shadow:0_0_5px_rgba(0,0,0,0.5)]",
|
|
428
|
+
style: {
|
|
429
|
+
color: "#ffffff",
|
|
430
|
+
textShadow: "0 0 5px rgba(0, 0, 0, 0.2)",
|
|
431
|
+
boxShadow: "inset 0 0 0 1px rgba(0, 247, 255, 0.1)"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
active: {
|
|
435
|
+
style: {
|
|
436
|
+
color: "#ffffff"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
function SilverSurface({
|
|
441
|
+
id,
|
|
442
|
+
active
|
|
443
|
+
}) {
|
|
444
|
+
const gradientId = `${id}-silver-gradient`;
|
|
445
|
+
return /* @__PURE__ */ jsxs(
|
|
446
|
+
"svg",
|
|
447
|
+
{
|
|
448
|
+
className: cn(
|
|
449
|
+
"size-full",
|
|
450
|
+
!active && "[filter:brightness(1.1)] group-hover:[filter:brightness(1.16)]"
|
|
451
|
+
),
|
|
452
|
+
width: "100%",
|
|
453
|
+
height: "100%",
|
|
454
|
+
viewBox: "0 0 100 100",
|
|
455
|
+
preserveAspectRatio: "none",
|
|
456
|
+
children: [
|
|
457
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
458
|
+
"linearGradient",
|
|
459
|
+
{
|
|
460
|
+
id: gradientId,
|
|
461
|
+
x1: "0%",
|
|
462
|
+
y1: "0%",
|
|
463
|
+
x2: "100%",
|
|
464
|
+
y2: "0%",
|
|
465
|
+
gradientTransform: "rotate(30, 0.5, 0.5)",
|
|
466
|
+
children: [
|
|
467
|
+
/* @__PURE__ */ jsx("stop", { offset: "10%", stopColor: "#afaeae" }),
|
|
468
|
+
/* @__PURE__ */ jsx("stop", { offset: "30%", stopColor: "#d6d6d6" }),
|
|
469
|
+
/* @__PURE__ */ jsx("stop", { offset: "50%", stopColor: "#eeeeee" }),
|
|
470
|
+
/* @__PURE__ */ jsx("stop", { offset: "70%", stopColor: "#d6d6d6" }),
|
|
471
|
+
/* @__PURE__ */ jsx("stop", { offset: "90%", stopColor: "#afaeae" })
|
|
472
|
+
]
|
|
473
|
+
}
|
|
474
|
+
) }),
|
|
475
|
+
/* @__PURE__ */ jsx(
|
|
476
|
+
"rect",
|
|
477
|
+
{
|
|
478
|
+
width: "100",
|
|
479
|
+
height: "100",
|
|
480
|
+
fill: active ? "#5a5a5a" : `url(#${gradientId})`
|
|
481
|
+
}
|
|
482
|
+
),
|
|
483
|
+
!active && /* @__PURE__ */ jsx(
|
|
484
|
+
"rect",
|
|
485
|
+
{
|
|
486
|
+
x: "0",
|
|
487
|
+
y: "0",
|
|
488
|
+
width: "100",
|
|
489
|
+
height: "8",
|
|
490
|
+
fill: "#ffffff",
|
|
491
|
+
opacity: "0.16"
|
|
492
|
+
}
|
|
493
|
+
)
|
|
494
|
+
]
|
|
495
|
+
}
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
var silverConfig = {
|
|
499
|
+
render: SilverSurface,
|
|
500
|
+
default: {
|
|
501
|
+
style: {
|
|
502
|
+
color: "#2a2a2a",
|
|
503
|
+
boxShadow: "inset 0 0 0 1px rgba(0, 0, 0, 0.08)"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
active: {
|
|
507
|
+
style: {
|
|
508
|
+
color: "#ffffff"
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
var SPECIAL_TAG_CONFIG = {
|
|
513
|
+
silver: silverConfig,
|
|
514
|
+
gold: goldConfig,
|
|
515
|
+
rainbow: rainbowConfig,
|
|
516
|
+
oilslick: oilslickConfig,
|
|
517
|
+
kintsugi: kintsugiConfig
|
|
518
|
+
};
|
|
519
|
+
function getSpecialTagStyleConfig(style) {
|
|
520
|
+
return SPECIAL_TAG_CONFIG[style];
|
|
521
|
+
}
|
|
522
|
+
function SpecialTagSurface(props) {
|
|
523
|
+
const { style, active, className } = props;
|
|
524
|
+
const config = SPECIAL_TAG_CONFIG[style];
|
|
525
|
+
const Renderer = config.render;
|
|
526
|
+
const reactId = useId();
|
|
527
|
+
const safeId = reactId.replace(/:/g, "-");
|
|
528
|
+
return /* @__PURE__ */ jsx("span", { className: cn(className), "aria-hidden": "true", children: /* @__PURE__ */ jsx(Renderer, { id: safeId, active }) });
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export { SpecialTagSurface, getSpecialTagStyleConfig };
|
|
532
|
+
//# sourceMappingURL=special-tag-surface.js.map
|
|
533
|
+
//# sourceMappingURL=special-tag-surface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/merge-config.ts","../../src/lib/utils.ts","../../src/components/special/gold.tsx","../../src/components/special/kintsugi.tsx","../../src/components/special/oilslick.tsx","../../src/components/special/rainbow.tsx","../../src/components/special/silver.tsx","../../src/components/special-tag-surface.tsx"],"names":["jsx","jsxs"],"mappings":";;;;;;AAQO,IAAM,UAAA,GAAa;AAAA,EACzB,MAAM,CAAC,MAAA,EAAQ,MAAM,KAAA,EAAO,WAAA,EAAa,eAAe,OAAO,CAAA;AAAA,EAC/D,SAAS,CAAC,MAAA,EAAQ,SAAA,EAAW,KAAA,EAAO,WAAW,OAAO,CAAA;AAAA,EACtD,QAAA,EAAU,CAAC,OAAO,CAAA;AAAA,EAClB,MAAA,EAAQ,CAAC,MAAA,EAAQ,QAAQ,CAAA;AAAA,EACzB,SAAA,EAAW,CAAC,SAAA,EAAW,QAAA,EAAU,SAAS,CAAA;AAAA,EAC1C,IAAA,EAAM,CAAC,KAAA,EAAO,SAAS,CAAA;AAAA,EACvB,IAAA,EAAM,CAAC,UAAU,CAAA;AAAA,EACjB,OAAA,EAAS,CAAC,MAAA,EAAQ,KAAK;AACxB,CAAA;AAEO,IAAM,UAAU,mBAAA,CAAoB;AA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WAAW,MAAA,CAAO,MAAA;AACxB,EAAA,MAAM,UAAU,KAAA,EAAM;AAGtB,EAAA,MAAM,MAAA,GAAS,OAAA,CAAQ,OAAA,CAAQ,IAAA,EAAM,GAAG,CAAA;AAExC,EAAA,uBACCA,GAAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAW,GAAG,SAAS,CAAA,EAAG,aAAA,EAAY,MAAA,EAC3C,0BAAAA,GAAAA,CAAC,QAAA,EAAA,EAAS,EAAA,EAAI,MAAA,EAAQ,QAAgB,CAAA,EACvC,CAAA;AAEF","file":"special-tag-surface.js","sourcesContent":["import { extendTailwindMerge } from \"tailwind-merge\"\n\n// The app's `@theme inline` tokens (theme.css) generate utility names\n// tailwind-merge doesn't know, so it misclassifies them — e.g. `text-ui` is\n// parsed as a text color and dropped next to any `text-*` color. The default\n// class groups are theme-backed, so extending the theme (keys mirror the v4\n// token namespaces one-to-one) registers every custom utility with correct\n// conflict semantics. merge-config.test.ts pins this list against theme.css.\nexport const mergeTheme = {\n\ttext: [\"tiny\", \"ui\", \"doc\", \"doc-title\", \"doc-heading\", \"quote\"],\n\tspacing: [\"chip\", \"control\", \"nav\", \"sidebar\", \"panel\"],\n\ttracking: [\"label\"],\n\tshadow: [\"card\", \"dialog\"],\n\tcontainer: [\"reading\", \"medium\", \"content\"],\n\tfont: [\"doc\", \"heading\"],\n\tease: [\"standard\"],\n\tanimate: [\"skel\", \"pop\"],\n} as const\n\nexport const twMerge = extendTailwindMerge({\n\textend: { theme: mergeTheme },\n})\n","import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"./merge-config\"\n\nexport function cn(...inputs: ClassValue[]) {\n\treturn twMerge(clsx(inputs))\n}\n","import { cn } from \"@hoardodile/ui/lib/utils\"\n\nimport type { SpecialTagStyleConfig } from \"./types\"\n\nfunction GoldSurface({\n\tid,\n\tactive,\n}: {\n\treadonly id: string\n\treadonly active?: boolean\n}) {\n\tconst gradientId = `${id}-gold-gradient`\n\treturn (\n\t\t<svg\n\t\t\tclassName={cn(\n\t\t\t\t\"size-full\",\n\t\t\t\t!active &&\n\t\t\t\t\t\"[filter:brightness(1.1)] group-hover:[filter:brightness(1.16)]\",\n\t\t\t)}\n\t\t\twidth=\"100%\"\n\t\t\theight=\"100%\"\n\t\t\tviewBox=\"0 0 100 100\"\n\t\t\tpreserveAspectRatio=\"none\"\n\t\t>\n\t\t\t<defs>\n\t\t\t\t<linearGradient\n\t\t\t\t\tid={gradientId}\n\t\t\t\t\tx1=\"0%\"\n\t\t\t\t\ty1=\"0%\"\n\t\t\t\t\tx2=\"100%\"\n\t\t\t\t\ty2=\"0%\"\n\t\t\t\t\tgradientTransform=\"rotate(30, 0.5, 0.5)\"\n\t\t\t\t>\n\t\t\t\t\t<stop offset=\"10%\" stopColor=\"#daa520\" />\n\t\t\t\t\t<stop offset=\"30%\" stopColor=\"#ffd700\" />\n\t\t\t\t\t<stop offset=\"50%\" stopColor=\"#f0e68c\" />\n\t\t\t\t\t<stop offset=\"70%\" stopColor=\"#ffd700\" />\n\t\t\t\t\t<stop offset=\"90%\" stopColor=\"#daa520\" />\n\t\t\t\t</linearGradient>\n\t\t\t</defs>\n\t\t\t<rect\n\t\t\t\twidth=\"100\"\n\t\t\t\theight=\"100\"\n\t\t\t\tfill={active ? \"#8a6d1f\" : `url(#${gradientId})`}\n\t\t\t/>\n\t\t\t{!active && (\n\t\t\t\t<rect\n\t\t\t\t\tx=\"0\"\n\t\t\t\t\ty=\"0\"\n\t\t\t\t\twidth=\"100\"\n\t\t\t\t\theight=\"8\"\n\t\t\t\t\tfill=\"#ffffff\"\n\t\t\t\t\topacity=\"0.12\"\n\t\t\t\t/>\n\t\t\t)}\n\t\t</svg>\n\t)\n}\n\nexport const goldConfig: SpecialTagStyleConfig = {\n\trender: GoldSurface,\n\tdefault: {\n\t\tstyle: {\n\t\t\tcolor: \"#725603\",\n\t\t\tboxShadow: \"inset 0 0 0 1px rgba(114, 86, 3, 0.2)\",\n\t\t},\n\t},\n\tactive: {\n\t\tstyle: {\n\t\t\tcolor: \"#ffffff\",\n\t\t},\n\t},\n}\n","import { cn } from \"@hoardodile/ui/lib/utils\"\n\nimport type { SpecialTagStyleConfig } from \"./types\"\n\nfunction KintsugiSurface({\n\tid,\n\tactive,\n}: {\n\treadonly id: string\n\treadonly active?: boolean\n}) {\n\tif (active) {\n\t\treturn (\n\t\t\t<svg\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"size-full\",\n\t\t\t\t\t!active &&\n\t\t\t\t\t\t\"[filter:brightness(1.02)] group-hover:[filter:brightness(1.06)]\",\n\t\t\t\t)}\n\t\t\t\twidth=\"100%\"\n\t\t\t\theight=\"100%\"\n\t\t\t\tviewBox=\"0 0 100 100\"\n\t\t\t\tpreserveAspectRatio=\"none\"\n\t\t\t>\n\t\t\t\t<rect width=\"100\" height=\"100\" fill=\"#9a9a8a\" />\n\t\t\t</svg>\n\t\t)\n\t}\n\n\tconst goldGradientId = `${id}-kintsugi-gold`\n\n\treturn (\n\t\t<svg\n\t\t\tclassName={cn(\n\t\t\t\t\"size-full\",\n\t\t\t\t!active &&\n\t\t\t\t\t\"[filter:brightness(1.02)] group-hover:[filter:brightness(1.06)]\",\n\t\t\t)}\n\t\t\twidth=\"100%\"\n\t\t\theight=\"100%\"\n\t\t\tviewBox=\"0 0 100 100\"\n\t\t\tpreserveAspectRatio=\"none\"\n\t\t>\n\t\t\t<style>{`\n\t\t\t\t@keyframes ${id}-gold-shimmer {\n\t\t\t\t\t0% { stroke-dashoffset: 60; }\n\t\t\t\t\t100% { stroke-dashoffset: 0; }\n\t\t\t\t}\n\t\t\t\t.${id}-gold-vein {\n\t\t\t\t\tstroke-dasharray: 30 30;\n\t\t\t\t\tanimation: ${id}-gold-shimmer 5s linear infinite;\n\t\t\t\t}\n\t\t\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t\t\t.${id}-gold-vein {\n\t\t\t\t\t\tanimation: none;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t`}</style>\n\n\t\t\t<defs>\n\t\t\t\t<linearGradient id={goldGradientId} x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n\t\t\t\t\t<stop offset=\"0%\" stopColor=\"#b8860b\" />\n\t\t\t\t\t<stop offset=\"35%\" stopColor=\"#ffd700\" />\n\t\t\t\t\t<stop offset=\"50%\" stopColor=\"#fffacd\" />\n\t\t\t\t\t<stop offset=\"65%\" stopColor=\"#ffd700\" />\n\t\t\t\t\t<stop offset=\"100%\" stopColor=\"#b8860b\" />\n\t\t\t\t</linearGradient>\n\t\t\t</defs>\n\n\t\t\t{/* Celadon/cream ceramic base */}\n\t\t\t<rect width=\"100\" height=\"100\" fill=\"#d8d4c5\" />\n\t\t\t<rect width=\"100\" height=\"100\" fill=\"#b8c4b8\" opacity=\"0.35\" />\n\n\t\t\t{/* Subtle surface texture */}\n\t\t\t<ellipse cx=\"30\" cy=\"25\" rx=\"40\" ry=\"25\" fill=\"#ffffff\" opacity=\"0.08\" />\n\t\t\t<ellipse cx=\"75\" cy=\"70\" rx=\"35\" ry=\"28\" fill=\"#000000\" opacity=\"0.04\" />\n\n\t\t\t{/* Crack lines (dark) */}\n\t\t\t<path\n\t\t\t\td=\"M 5 20 Q 25 22 35 45 T 60 80\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke=\"#5a5650\"\n\t\t\t\tstrokeWidth=\"0.7\"\n\t\t\t\topacity=\"0.45\"\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td=\"M 80 10 Q 70 35 85 55 T 55 95\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke=\"#5a5650\"\n\t\t\t\tstrokeWidth=\"0.6\"\n\t\t\t\topacity=\"0.40\"\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td=\"M 10 70 Q 30 68 45 55 T 75 45\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke=\"#5a5650\"\n\t\t\t\tstrokeWidth=\"0.5\"\n\t\t\t\topacity=\"0.38\"\n\t\t\t/>\n\n\t\t\t{/* Gold repair veins */}\n\t\t\t<path\n\t\t\t\tclassName={`${id}-gold-vein`}\n\t\t\t\td=\"M 4 18 Q 24 20 34 43 T 58 78\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke={`url(#${goldGradientId})`}\n\t\t\t\tstrokeWidth=\"1.4\"\n\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tclassName={`${id}-gold-vein`}\n\t\t\t\td=\"M 82 8 Q 72 33 87 53 T 53 93\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke={`url(#${goldGradientId})`}\n\t\t\t\tstrokeWidth=\"1.2\"\n\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tclassName={`${id}-gold-vein`}\n\t\t\t\td=\"M 8 68 Q 28 66 43 53 T 73 43\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke={`url(#${goldGradientId})`}\n\t\t\t\tstrokeWidth=\"1.0\"\n\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t/>\n\t\t</svg>\n\t)\n}\n\nexport const kintsugiConfig: SpecialTagStyleConfig = {\n\trender: KintsugiSurface,\n\tdefault: {\n\t\tstyle: {\n\t\t\tcolor: \"#4a4030\",\n\t\t\tboxShadow: \"inset 0 0 0 1px rgba(74, 64, 48, 0.12)\",\n\t\t},\n\t},\n\tactive: {\n\t\tstyle: {\n\t\t\tcolor: \"#ffffff\",\n\t\t},\n\t},\n}\n","import { cn } from \"@hoardodile/ui/lib/utils\"\n\nimport type { SpecialTagStyleConfig } from \"./types\"\n\nfunction OilslickSurface({\n\tid,\n\tactive,\n}: {\n\treadonly id: string\n\treadonly active?: boolean\n}) {\n\tif (active) {\n\t\treturn (\n\t\t\t<svg\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"size-full\",\n\t\t\t\t\t!active &&\n\t\t\t\t\t\t\"[filter:saturate(1.15)] group-hover:[filter:saturate(1.3)_brightness(1.08)]\",\n\t\t\t\t)}\n\t\t\t\twidth=\"100%\"\n\t\t\t\theight=\"100%\"\n\t\t\t\tviewBox=\"0 0 100 100\"\n\t\t\t\tpreserveAspectRatio=\"none\"\n\t\t\t>\n\t\t\t\t<rect width=\"100\" height=\"100\" fill=\"#1a1a2e\" />\n\t\t\t</svg>\n\t\t)\n\t}\n\n\tconst gradientA = `${id}-oilslick-a`\n\tconst gradientB = `${id}-oilslick-b`\n\tconst gradientC = `${id}-oilslick-c`\n\n\treturn (\n\t\t<svg\n\t\t\tclassName={cn(\n\t\t\t\t\"size-full\",\n\t\t\t\t!active &&\n\t\t\t\t\t\"[filter:saturate(1.15)] group-hover:[filter:saturate(1.3)_brightness(1.08)]\",\n\t\t\t)}\n\t\t\twidth=\"100%\"\n\t\t\theight=\"100%\"\n\t\t\tviewBox=\"0 0 100 100\"\n\t\t\tpreserveAspectRatio=\"none\"\n\t\t>\n\t\t\t<defs>\n\t\t\t\t<radialGradient id={gradientA} cx=\"30%\" cy=\"30%\" r=\"70%\">\n\t\t\t\t\t<stop offset=\"0%\" stopColor=\"#8b5cf6\">\n\t\t\t\t\t\t<animate\n\t\t\t\t\t\t\tattributeName=\"stop-color\"\n\t\t\t\t\t\t\tvalues=\"#8b5cf6;#06b6d4;#8b5cf6\"\n\t\t\t\t\t\t\tdur=\"8s\"\n\t\t\t\t\t\t\trepeatCount=\"indefinite\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</stop>\n\t\t\t\t\t<stop offset=\"60%\" stopColor=\"#1e1b4b\" stopOpacity=\"0.9\" />\n\t\t\t\t\t<stop offset=\"100%\" stopColor=\"#0f0f1a\" stopOpacity=\"0\" />\n\t\t\t\t</radialGradient>\n\t\t\t\t<radialGradient id={gradientB} cx=\"70%\" cy=\"60%\" r=\"60%\">\n\t\t\t\t\t<stop offset=\"0%\" stopColor=\"#10b981\">\n\t\t\t\t\t\t<animate\n\t\t\t\t\t\t\tattributeName=\"stop-color\"\n\t\t\t\t\t\t\tvalues=\"#10b981;#f59e0b;#ec4899;#10b981\"\n\t\t\t\t\t\t\tdur=\"10s\"\n\t\t\t\t\t\t\trepeatCount=\"indefinite\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</stop>\n\t\t\t\t\t<stop offset=\"55%\" stopColor=\"#1e1b4b\" stopOpacity=\"0.8\" />\n\t\t\t\t\t<stop offset=\"100%\" stopColor=\"#0f0f1a\" stopOpacity=\"0\" />\n\t\t\t\t</radialGradient>\n\t\t\t\t<radialGradient id={gradientC} cx=\"50%\" cy=\"80%\" r=\"55%\">\n\t\t\t\t\t<stop offset=\"0%\" stopColor=\"#ec4899\">\n\t\t\t\t\t\t<animate\n\t\t\t\t\t\t\tattributeName=\"stop-color\"\n\t\t\t\t\t\t\tvalues=\"#ec4899;#8b5cf6;#06b6d4;#ec4899\"\n\t\t\t\t\t\t\tdur=\"7s\"\n\t\t\t\t\t\t\trepeatCount=\"indefinite\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</stop>\n\t\t\t\t\t<stop offset=\"50%\" stopColor=\"#1e1b4b\" stopOpacity=\"0.7\" />\n\t\t\t\t\t<stop offset=\"100%\" stopColor=\"#0f0f1a\" stopOpacity=\"0\" />\n\t\t\t\t</radialGradient>\n\t\t\t</defs>\n\n\t\t\t<rect width=\"100\" height=\"100\" fill=\"#0a0a12\" />\n\t\t\t<rect\n\t\t\t\twidth=\"100\"\n\t\t\t\theight=\"100\"\n\t\t\t\tfill={`url(#${gradientA})`}\n\t\t\t\topacity=\"0.85\"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\twidth=\"100\"\n\t\t\t\theight=\"100\"\n\t\t\t\tfill={`url(#${gradientB})`}\n\t\t\t\topacity=\"0.75\"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\twidth=\"100\"\n\t\t\t\theight=\"100\"\n\t\t\t\tfill={`url(#${gradientC})`}\n\t\t\t\topacity=\"0.70\"\n\t\t\t/>\n\n\t\t\t{/* Thin oily film highlights */}\n\t\t\t<path\n\t\t\t\td=\"M -10 60 Q 25 45 50 60 T 110 55\"\n\t\t\t\tfill=\"none\"\n\t\t\t\tstroke=\"#ffffff\"\n\t\t\t\tstrokeWidth=\"0.8\"\n\t\t\t\topacity=\"0.12\"\n\t\t\t>\n\t\t\t\t<animate\n\t\t\t\t\tattributeName=\"d\"\n\t\t\t\t\tvalues=\"M -10 60 Q 25 45 50 60 T 110 55;M -10 55 Q 30 70 55 50 T 110 65;M -10 60 Q 25 45 50 60 T 110 55\"\n\t\t\t\t\tdur=\"12s\"\n\t\t\t\t\trepeatCount=\"indefinite\"\n\t\t\t\t/>\n\t\t\t</path>\n\t\t</svg>\n\t)\n}\n\nexport const oilslickConfig: SpecialTagStyleConfig = {\n\trender: OilslickSurface,\n\tdefault: {\n\t\tstyle: {\n\t\t\tcolor: \"#ffffff\",\n\t\t\tboxShadow:\n\t\t\t\t\"inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 10px rgba(139, 92, 246, 0.20)\",\n\t\t},\n\t},\n\tactive: {\n\t\tstyle: {\n\t\t\tcolor: \"#ffffff\",\n\t\t},\n\t},\n}\n","import { cn } from \"@hoardodile/ui/lib/utils\"\n\nimport type { SpecialTagStyleConfig } from \"./types\"\n\nfunction RainbowSurface({\n\tid,\n\tactive,\n}: {\n\treadonly id: string\n\treadonly active?: boolean\n}) {\n\tconst gradientId = `${id}-rainbow-gradient`\n\treturn (\n\t\t<svg\n\t\t\tclassName={cn(\n\t\t\t\t\"size-full\",\n\t\t\t\t!active && \"group-hover:[filter:brightness(1.08)]\",\n\t\t\t)}\n\t\t\twidth=\"100%\"\n\t\t\theight=\"100%\"\n\t\t\tviewBox=\"0 0 100 100\"\n\t\t\tpreserveAspectRatio=\"none\"\n\t\t>\n\t\t\t<defs>\n\t\t\t\t<linearGradient\n\t\t\t\t\tid={gradientId}\n\t\t\t\t\tx1=\"0%\"\n\t\t\t\t\ty1=\"0%\"\n\t\t\t\t\tx2=\"100%\"\n\t\t\t\t\ty2=\"0%\"\n\t\t\t\t\tgradientTransform=\"rotate(30, 0.5, 0.5)\"\n\t\t\t\t>\n\t\t\t\t\t<stop offset=\"0%\" stopColor=\"#fbffca\" />\n\t\t\t\t\t<stop offset=\"33%\" stopColor=\"#baffbf\" />\n\t\t\t\t\t<stop offset=\"66%\" stopColor=\"#a7efff\" />\n\t\t\t\t\t<stop offset=\"100%\" stopColor=\"#ffabff\" />\n\t\t\t\t</linearGradient>\n\t\t\t</defs>\n\t\t\t<rect\n\t\t\t\twidth=\"100\"\n\t\t\t\theight=\"100\"\n\t\t\t\tfill={active ? \"#005458\" : `url(#${gradientId})`}\n\t\t\t/>\n\t\t</svg>\n\t)\n}\n\nexport const rainbowConfig: SpecialTagStyleConfig = {\n\trender: RainbowSurface,\n\tdefault: {\n\t\tclassName: \"font-bold dark:[text-shadow:0_0_5px_rgba(0,0,0,0.5)]\",\n\t\tstyle: {\n\t\t\tcolor: \"#ffffff\",\n\t\t\ttextShadow: \"0 0 5px rgba(0, 0, 0, 0.2)\",\n\t\t\tboxShadow: \"inset 0 0 0 1px rgba(0, 247, 255, 0.1)\",\n\t\t},\n\t},\n\tactive: {\n\t\tstyle: {\n\t\t\tcolor: \"#ffffff\",\n\t\t},\n\t},\n}\n","import { cn } from \"@hoardodile/ui/lib/utils\"\n\nimport type { SpecialTagStyleConfig } from \"./types\"\n\nfunction SilverSurface({\n\tid,\n\tactive,\n}: {\n\treadonly id: string\n\treadonly active?: boolean\n}) {\n\tconst gradientId = `${id}-silver-gradient`\n\treturn (\n\t\t<svg\n\t\t\tclassName={cn(\n\t\t\t\t\"size-full\",\n\t\t\t\t!active &&\n\t\t\t\t\t\"[filter:brightness(1.1)] group-hover:[filter:brightness(1.16)]\",\n\t\t\t)}\n\t\t\twidth=\"100%\"\n\t\t\theight=\"100%\"\n\t\t\tviewBox=\"0 0 100 100\"\n\t\t\tpreserveAspectRatio=\"none\"\n\t\t>\n\t\t\t<defs>\n\t\t\t\t<linearGradient\n\t\t\t\t\tid={gradientId}\n\t\t\t\t\tx1=\"0%\"\n\t\t\t\t\ty1=\"0%\"\n\t\t\t\t\tx2=\"100%\"\n\t\t\t\t\ty2=\"0%\"\n\t\t\t\t\tgradientTransform=\"rotate(30, 0.5, 0.5)\"\n\t\t\t\t>\n\t\t\t\t\t<stop offset=\"10%\" stopColor=\"#afaeae\" />\n\t\t\t\t\t<stop offset=\"30%\" stopColor=\"#d6d6d6\" />\n\t\t\t\t\t<stop offset=\"50%\" stopColor=\"#eeeeee\" />\n\t\t\t\t\t<stop offset=\"70%\" stopColor=\"#d6d6d6\" />\n\t\t\t\t\t<stop offset=\"90%\" stopColor=\"#afaeae\" />\n\t\t\t\t</linearGradient>\n\t\t\t</defs>\n\t\t\t<rect\n\t\t\t\twidth=\"100\"\n\t\t\t\theight=\"100\"\n\t\t\t\tfill={active ? \"#5a5a5a\" : `url(#${gradientId})`}\n\t\t\t/>\n\t\t\t{!active && (\n\t\t\t\t<rect\n\t\t\t\t\tx=\"0\"\n\t\t\t\t\ty=\"0\"\n\t\t\t\t\twidth=\"100\"\n\t\t\t\t\theight=\"8\"\n\t\t\t\t\tfill=\"#ffffff\"\n\t\t\t\t\topacity=\"0.16\"\n\t\t\t\t/>\n\t\t\t)}\n\t\t</svg>\n\t)\n}\n\nexport const silverConfig: SpecialTagStyleConfig = {\n\trender: SilverSurface,\n\tdefault: {\n\t\tstyle: {\n\t\t\tcolor: \"#2a2a2a\",\n\t\t\tboxShadow: \"inset 0 0 0 1px rgba(0, 0, 0, 0.08)\",\n\t\t},\n\t},\n\tactive: {\n\t\tstyle: {\n\t\t\tcolor: \"#ffffff\",\n\t\t},\n\t},\n}\n","import { cn } from \"@hoardodile/ui/lib/utils\"\nimport { useId } from \"react\"\nimport type { TagSpecialStyle } from \"@hoardodile/ui/lib/colors\"\nimport { goldConfig } from \"./special/gold\"\nimport { kintsugiConfig } from \"./special/kintsugi\"\nimport { oilslickConfig } from \"./special/oilslick\"\nimport { rainbowConfig } from \"./special/rainbow\"\nimport { silverConfig } from \"./special/silver\"\nimport type { SpecialTagStyleConfig } from \"./special/types\"\n\nexport type SpecialTagSurfaceProps = {\n\treadonly style: TagSpecialStyle\n\treadonly active?: boolean\n\treadonly className?: string\n}\n\nconst SPECIAL_TAG_CONFIG: Record<TagSpecialStyle, SpecialTagStyleConfig> = {\n\tsilver: silverConfig,\n\tgold: goldConfig,\n\trainbow: rainbowConfig,\n\toilslick: oilslickConfig,\n\tkintsugi: kintsugiConfig,\n}\n\nexport function getSpecialTagStyleConfig(\n\tstyle: TagSpecialStyle,\n): SpecialTagStyleConfig {\n\treturn SPECIAL_TAG_CONFIG[style]\n}\n\n/**\n * SVG background surface for special tag styles.\n *\n * Each style owns a self-contained SVG renderer in `src/components/special/`.\n * This component only picks the right renderer from the registry and applies\n * positioning; all styling (filters, colors, shadows) lives in the renderer or\n * the chip container config.\n */\nexport function SpecialTagSurface(props: SpecialTagSurfaceProps) {\n\tconst { style, active, className } = props\n\tconst config = SPECIAL_TAG_CONFIG[style]\n\tconst Renderer = config.render\n\tconst reactId = useId()\n\t// React useId() can produce ids containing colons, which break SVG\n\t// url(#id) references in some browsers. Replace them with a safe delimiter.\n\tconst safeId = reactId.replace(/:/g, \"-\")\n\n\treturn (\n\t\t<span className={cn(className)} aria-hidden=\"true\">\n\t\t\t<Renderer id={safeId} active={active} />\n\t\t</span>\n\t)\n}\n"]}
|