adaptive-ui-react 0.1.2 → 0.1.4
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/index.cjs +686 -524
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +676 -514
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- /package/dist/{index.d.mts → index.d.cts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -46,13 +46,14 @@ __export(index_exports, {
|
|
|
46
46
|
module.exports = __toCommonJS(index_exports);
|
|
47
47
|
|
|
48
48
|
// src/components/ui/image-scroll.jsx
|
|
49
|
-
var import_react = __toESM(require("react"));
|
|
49
|
+
var import_react = __toESM(require("react"), 1);
|
|
50
50
|
|
|
51
51
|
// src/components/ui/image-scroll.module.css
|
|
52
52
|
var image_scroll_default = {};
|
|
53
53
|
|
|
54
54
|
// src/components/ui/image-scroll.jsx
|
|
55
55
|
var import_lucide_react = require("lucide-react");
|
|
56
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
56
57
|
var DEFAULT_SCROLL_IMAGES = [
|
|
57
58
|
{
|
|
58
59
|
id: 1,
|
|
@@ -124,7 +125,7 @@ function DefaultImageCard({ item, cardWidth, cardHeight, onCardClick }) {
|
|
|
124
125
|
const title = typeof item === "string" ? "Creative Asset" : (item == null ? void 0 : item.title) || "Visual Frame";
|
|
125
126
|
const category = typeof item === "string" ? "ASSET" : (item == null ? void 0 : item.category) || "GALLERY";
|
|
126
127
|
const accent = typeof item === "object" && (item == null ? void 0 : item.accent) ? item.accent : "#10b981";
|
|
127
|
-
return /* @__PURE__ */
|
|
128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
128
129
|
"div",
|
|
129
130
|
{
|
|
130
131
|
onClick: () => onCardClick == null ? void 0 : onCardClick(item),
|
|
@@ -132,55 +133,66 @@ function DefaultImageCard({ item, cardWidth, cardHeight, onCardClick }) {
|
|
|
132
133
|
width: cardWidth,
|
|
133
134
|
height: cardHeight
|
|
134
135
|
},
|
|
135
|
-
className: "group relative shrink-0 cursor-pointer overflow-hidden rounded-2xl border border-white/10 bg-zinc-900/90 shadow-xl transition-all duration-300 hover:border-white/25 hover:shadow-2xl hover:shadow-black/60"
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
136
|
+
className: "group relative shrink-0 cursor-pointer overflow-hidden rounded-2xl border border-white/10 bg-zinc-900/90 shadow-xl transition-all duration-300 hover:border-white/25 hover:shadow-2xl hover:shadow-black/60",
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
139
|
+
"div",
|
|
140
|
+
{
|
|
141
|
+
className: "absolute inset-0 bg-gradient-to-br from-zinc-800 via-zinc-900 to-black",
|
|
142
|
+
style: {
|
|
143
|
+
backgroundImage: imgError ? `radial-gradient(circle at 50% 30%, ${accent}25, transparent 70%), linear-gradient(to bottom, #18181b, #09090b)` : void 0
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
!imgError && src && // eslint-disable-next-line @next/next/no-img-element
|
|
148
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
149
|
+
"img",
|
|
150
|
+
{
|
|
151
|
+
src,
|
|
152
|
+
alt: title,
|
|
153
|
+
loading: "lazy",
|
|
154
|
+
decoding: "async",
|
|
155
|
+
onError: () => setImgError(true),
|
|
156
|
+
className: "absolute inset-0 h-full w-full object-cover transition-transform duration-700 ease-out group-hover:scale-108"
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
imgError && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-2 p-4 text-center", children: [
|
|
160
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
161
|
+
"div",
|
|
162
|
+
{
|
|
163
|
+
className: "flex size-10 items-center justify-center rounded-xl border border-white/10 bg-white/5 backdrop-blur-sm",
|
|
164
|
+
style: { color: accent },
|
|
165
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Image, { className: "size-5" })
|
|
166
|
+
}
|
|
167
|
+
),
|
|
168
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-mono text-xs uppercase tracking-wider text-zinc-400", children: title })
|
|
169
|
+
] }),
|
|
170
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pointer-events-none absolute inset-0 bg-gradient-to-t from-black/85 via-black/25 to-transparent transition-opacity duration-300 group-hover:from-black/90" }),
|
|
171
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
172
|
+
"div",
|
|
173
|
+
{
|
|
174
|
+
className: "pointer-events-none absolute -inset-px rounded-2xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",
|
|
175
|
+
style: {
|
|
176
|
+
boxShadow: `inset 0 0 0 1px ${accent}66, 0 0 24px -6px ${accent}40`
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
),
|
|
180
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "absolute inset-x-0 bottom-0 flex flex-col justify-end p-3 sm:p-4", children: [
|
|
181
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
182
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
183
|
+
"span",
|
|
184
|
+
{
|
|
185
|
+
className: "inline-flex items-center gap-1.5 rounded-full border border-white/15 bg-black/60 px-2 py-0.5 font-mono text-[10px] sm:text-[11px] font-semibold tracking-wider uppercase text-white backdrop-blur-md",
|
|
186
|
+
style: { borderLeftColor: accent, borderLeftWidth: "2.5px" },
|
|
187
|
+
children: category
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "flex size-6 sm:size-7 items-center justify-center rounded-full bg-white/10 text-white/70 opacity-0 transition-all duration-300 group-hover:opacity-100 group-hover:scale-110", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowUpRight, { className: "size-3 sm:size-3.5" }) })
|
|
191
|
+
] }),
|
|
192
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h4", { className: "mt-1.5 line-clamp-1 font-sans text-xs sm:text-sm font-bold tracking-wide text-white drop-shadow", children: title })
|
|
193
|
+
] })
|
|
194
|
+
]
|
|
195
|
+
}
|
|
184
196
|
);
|
|
185
197
|
}
|
|
186
198
|
function prepareTrackItems(items) {
|
|
@@ -230,7 +242,7 @@ function ImageScroll({
|
|
|
230
242
|
"--container-height": height,
|
|
231
243
|
...style
|
|
232
244
|
};
|
|
233
|
-
return /* @__PURE__ */
|
|
245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
234
246
|
"div",
|
|
235
247
|
{
|
|
236
248
|
style: containerStyles,
|
|
@@ -241,72 +253,73 @@ function ImageScroll({
|
|
|
241
253
|
${isVertical && blurEdges ? image_scroll_default.fadeMaskVertical : ""}
|
|
242
254
|
${!isVertical && blurEdges ? image_scroll_default.fadeMaskHorizontal : ""}
|
|
243
255
|
${className}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
"div",
|
|
254
|
-
{
|
|
255
|
-
key: `col-${colIdx}`,
|
|
256
|
-
className: isColReverse ? image_scroll_default.verticalTrackReverse : image_scroll_default.verticalTrack,
|
|
257
|
-
style: {
|
|
258
|
-
animationDuration: `${colSpeed}s`
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
trackItems.map((item, itemIdx) => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, { key: `v-item-${colIdx}-${itemIdx}` }, renderItem ? renderItem(item, itemIdx) : /* @__PURE__ */ import_react.default.createElement(
|
|
262
|
-
DefaultImageCard,
|
|
256
|
+
`,
|
|
257
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: tilt ? image_scroll_default.tiltInner : "", children: isVertical ? (
|
|
258
|
+
/* ================= VERTICAL COLUMNS ================= */
|
|
259
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: image_scroll_default.verticalWrapper, children: trackItemGroups.map((group, colIdx) => {
|
|
260
|
+
const isColReverse = staggerDirection ? colIdx % 2 === 1 ? !reverse : reverse : reverse;
|
|
261
|
+
const colSpeed = staggerDirection ? baseDuration * (1 + colIdx % 3 * 0.15) : baseDuration;
|
|
262
|
+
const trackItems = prepareTrackItems(group);
|
|
263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
264
|
+
"div",
|
|
263
265
|
{
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
266
|
+
className: isColReverse ? image_scroll_default.verticalTrackReverse : image_scroll_default.verticalTrack,
|
|
267
|
+
style: {
|
|
268
|
+
animationDuration: `${colSpeed}s`
|
|
269
|
+
},
|
|
270
|
+
children: trackItems.map((item, itemIdx) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, { children: renderItem ? renderItem(item, itemIdx) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
271
|
+
DefaultImageCard,
|
|
272
|
+
{
|
|
273
|
+
item,
|
|
274
|
+
cardWidth: defaultWidth,
|
|
275
|
+
cardHeight: defaultHeight,
|
|
276
|
+
onCardClick
|
|
277
|
+
}
|
|
278
|
+
) }, `v-item-${colIdx}-${itemIdx}`))
|
|
279
|
+
},
|
|
280
|
+
`col-${colIdx}`
|
|
281
|
+
);
|
|
282
|
+
}) })
|
|
283
|
+
) : (
|
|
284
|
+
/* ================= HORIZONTAL ROWS ================= */
|
|
285
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: image_scroll_default.horizontalWrapper, children: trackItemGroups.map((group, rowIdx) => {
|
|
286
|
+
const isRowReverse = staggerDirection ? rowIdx % 2 === 1 ? !reverse : reverse : reverse;
|
|
287
|
+
const rowSpeed = staggerDirection ? baseDuration * (1 + rowIdx % 3 * 0.15) : baseDuration;
|
|
288
|
+
const trackItems = prepareTrackItems(group);
|
|
289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
290
|
+
"div",
|
|
289
291
|
{
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
292
|
+
className: isRowReverse ? image_scroll_default.horizontalTrackReverse : image_scroll_default.horizontalTrack,
|
|
293
|
+
style: {
|
|
294
|
+
animationDuration: `${rowSpeed}s`
|
|
295
|
+
},
|
|
296
|
+
children: trackItems.map((item, itemIdx) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, { children: renderItem ? renderItem(item, itemIdx) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
297
|
+
DefaultImageCard,
|
|
298
|
+
{
|
|
299
|
+
item,
|
|
300
|
+
cardWidth: defaultWidth,
|
|
301
|
+
cardHeight: defaultHeight,
|
|
302
|
+
onCardClick
|
|
303
|
+
}
|
|
304
|
+
) }, `h-item-${rowIdx}-${itemIdx}`))
|
|
305
|
+
},
|
|
306
|
+
`row-${rowIdx}`
|
|
307
|
+
);
|
|
308
|
+
}) })
|
|
309
|
+
) })
|
|
310
|
+
}
|
|
299
311
|
);
|
|
300
312
|
}
|
|
301
313
|
var InfiniteImageScroll = ImageScroll;
|
|
302
314
|
|
|
303
315
|
// src/components/ui/interactive-ascii-face.jsx
|
|
304
|
-
var import_react2 = __toESM(require("react"));
|
|
316
|
+
var import_react2 = __toESM(require("react"), 1);
|
|
305
317
|
|
|
306
318
|
// src/components/ui/interactive-ascii-face.module.css
|
|
307
319
|
var interactive_ascii_face_default = {};
|
|
308
320
|
|
|
309
321
|
// src/components/ui/interactive-ascii-face.jsx
|
|
322
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
310
323
|
var REFERENCE = "/images/ascii-portrait.png";
|
|
311
324
|
var GLYPHS = [".:;|`", "il/+=:", "xovucz", "7TZH28", "NWM#@%"];
|
|
312
325
|
var MASK_WIDTH = 360;
|
|
@@ -501,38 +514,41 @@ function InteractiveAsciiFace({
|
|
|
501
514
|
const y = event.clientY - bounds.top;
|
|
502
515
|
pointer.current = { position: { x, y }, offset: { x: (x / bounds.width * 2 - 1) * offset, y: (y / bounds.height * 2 - 1) * offset } };
|
|
503
516
|
}
|
|
504
|
-
return /* @__PURE__ */
|
|
517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
505
518
|
"div",
|
|
506
519
|
{
|
|
507
520
|
className: [interactive_ascii_face_default.stage, className].filter(Boolean).join(" "),
|
|
508
521
|
onPointerMove: movePortrait,
|
|
509
522
|
onPointerLeave: () => {
|
|
510
523
|
pointer.current = null;
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
|
514
|
-
"canvas",
|
|
515
|
-
{
|
|
516
|
-
ref: fieldRef,
|
|
517
|
-
className: interactive_ascii_face_default.field,
|
|
518
|
-
role: mask ? "img" : void 0,
|
|
519
|
-
"aria-label": mask ? alt : void 0,
|
|
520
|
-
"aria-hidden": !mask
|
|
521
|
-
}
|
|
522
|
-
),
|
|
523
|
-
/* @__PURE__ */ import_react2.default.createElement(
|
|
524
|
-
"div",
|
|
525
|
-
{
|
|
526
|
-
ref: portraitRef,
|
|
527
|
-
className: interactive_ascii_face_default.frame
|
|
528
524
|
},
|
|
529
|
-
|
|
530
|
-
|
|
525
|
+
children: [
|
|
526
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
527
|
+
"canvas",
|
|
528
|
+
{
|
|
529
|
+
ref: fieldRef,
|
|
530
|
+
className: interactive_ascii_face_default.field,
|
|
531
|
+
role: mask ? "img" : void 0,
|
|
532
|
+
"aria-label": mask ? alt : void 0,
|
|
533
|
+
"aria-hidden": !mask
|
|
534
|
+
}
|
|
535
|
+
),
|
|
536
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
537
|
+
"div",
|
|
538
|
+
{
|
|
539
|
+
ref: portraitRef,
|
|
540
|
+
className: interactive_ascii_face_default.frame,
|
|
541
|
+
children: !mask && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: interactive_ascii_face_default.status, role: "status", children: current ? "Couldn\u2019t read this image. Try a PNG, JPEG, or WebP." : "Converting image to ASCII\u2026" })
|
|
542
|
+
}
|
|
543
|
+
)
|
|
544
|
+
]
|
|
545
|
+
}
|
|
531
546
|
);
|
|
532
547
|
}
|
|
533
548
|
|
|
534
549
|
// src/components/ui/blob-morph-hero.jsx
|
|
535
|
-
var import_react3 = __toESM(require("react"));
|
|
550
|
+
var import_react3 = __toESM(require("react"), 1);
|
|
551
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
536
552
|
var BASE_IMG = "/images/banner-crypto-base.webp";
|
|
537
553
|
var EQUIPPED_IMG = "/images/banner-crypto-equipped.png";
|
|
538
554
|
var DEFAULT_PRESETS = [
|
|
@@ -1041,106 +1057,142 @@ function BlobMorphHero({
|
|
|
1041
1057
|
raf = requestAnimationFrame(tick);
|
|
1042
1058
|
return () => cancelAnimationFrame(raf);
|
|
1043
1059
|
}, []);
|
|
1044
|
-
return /* @__PURE__ */
|
|
1060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1045
1061
|
"div",
|
|
1046
1062
|
{
|
|
1047
1063
|
ref: rootRef,
|
|
1048
1064
|
className: `relative h-full w-full overflow-hidden ${className}`,
|
|
1049
|
-
style: { background: bg }
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1065
|
+
style: { background: bg },
|
|
1066
|
+
children: [
|
|
1067
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("canvas", { ref: topoRef, className: "absolute inset-0 h-full w-full" }),
|
|
1068
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1069
|
+
"canvas",
|
|
1070
|
+
{
|
|
1071
|
+
ref: ambRef,
|
|
1072
|
+
className: "pointer-events-none absolute inset-0 h-full w-full",
|
|
1073
|
+
style: { opacity: 1 }
|
|
1074
|
+
}
|
|
1075
|
+
),
|
|
1076
|
+
showHeadline && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "pointer-events-none absolute inset-0 flex select-none items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1077
|
+
"span",
|
|
1078
|
+
{
|
|
1079
|
+
className: "font-black uppercase leading-none",
|
|
1080
|
+
style: {
|
|
1081
|
+
fontSize: "clamp(80px, 20vw, 280px)",
|
|
1082
|
+
color: "transparent",
|
|
1083
|
+
WebkitTextStroke: `1px ${wire}66`
|
|
1084
|
+
},
|
|
1085
|
+
children: headline
|
|
1086
|
+
}
|
|
1087
|
+
) }),
|
|
1088
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1089
|
+
"div",
|
|
1090
|
+
{
|
|
1091
|
+
className: "absolute",
|
|
1092
|
+
style: { left: box.x, top: box.y, width: box.w, height: box.h },
|
|
1093
|
+
children: [
|
|
1094
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1095
|
+
"img",
|
|
1096
|
+
{
|
|
1097
|
+
src: baseSrc,
|
|
1098
|
+
alt: "",
|
|
1099
|
+
draggable: false,
|
|
1100
|
+
className: "absolute inset-0 h-full w-full select-none",
|
|
1101
|
+
style: flipBase ? { transform: "scaleX(-1)" } : void 0
|
|
1102
|
+
}
|
|
1103
|
+
),
|
|
1104
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1105
|
+
"canvas",
|
|
1106
|
+
{
|
|
1107
|
+
ref: revRef,
|
|
1108
|
+
className: "absolute inset-0 h-full w-full",
|
|
1109
|
+
style: debugAlign ? { opacity: 0.5 } : void 0
|
|
1110
|
+
}
|
|
1111
|
+
),
|
|
1112
|
+
showHud && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
1113
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1114
|
+
"svg",
|
|
1115
|
+
{
|
|
1116
|
+
viewBox: `${HEAD_VB.x} ${HEAD_VB.y} ${HEAD_VB.w} ${HEAD_VB.h}`,
|
|
1117
|
+
preserveAspectRatio: stretchHud ? "none" : "xMidYMid meet",
|
|
1118
|
+
className: "pointer-events-none absolute",
|
|
1119
|
+
style: {
|
|
1120
|
+
left: `${hb.x * 100}%`,
|
|
1121
|
+
top: `${hb.y * 100}%`,
|
|
1122
|
+
width: `${hb.w * 100}%`,
|
|
1123
|
+
height: `${hb.h * 100}%`,
|
|
1124
|
+
outline: debugHead ? "1px dashed #ff00ff" : "none"
|
|
1125
|
+
},
|
|
1126
|
+
fill: "none",
|
|
1127
|
+
stroke: wire,
|
|
1128
|
+
strokeWidth: "1",
|
|
1129
|
+
strokeLinecap: "round",
|
|
1130
|
+
strokeLinejoin: "round",
|
|
1131
|
+
shapeRendering: "geometricPrecision",
|
|
1132
|
+
children: [
|
|
1133
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("defs", { children: [
|
|
1134
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("clipPath", { id: shellId, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: HELMET.shell }) }),
|
|
1135
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("clipPath", { id: wipeId, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("rect", { ref: wipeRef, x: HEAD_VB.x, y: HEAD_VB.y, width: HEAD_VB.w, height: "0" }) })
|
|
1136
|
+
] }),
|
|
1137
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("g", { clipPath: `url(#${wipeId})`, children: customSvgMarkup ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("g", { dangerouslySetInnerHTML: { __html: customSvgMarkup } }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("g", { children: [
|
|
1138
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: HELMET.shell, fill: "#ffffff", fillOpacity: "0.16", stroke: "none" }),
|
|
1139
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: HELMET.visor, fill: wire, fillOpacity: "0.07", stroke: "none" }),
|
|
1140
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("g", { clipPath: `url(#${shellId})`, opacity: "0.5", strokeWidth: "0.6", children: [
|
|
1141
|
+
HELMET.latitudes.map((d, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d, ...VE }, "la" + i)),
|
|
1142
|
+
HELMET.meridians.map((d, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d, ...VE }, "me" + i))
|
|
1143
|
+
] }),
|
|
1144
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: HELMET.shell, strokeWidth: "1.2", ...VE }),
|
|
1145
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: HELMET.visor, strokeWidth: "1", ...VE }),
|
|
1146
|
+
HELMET.details.map((d, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d, opacity: "0.6", ...VE }, "de" + i))
|
|
1147
|
+
] }) }),
|
|
1148
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("g", { ref: scanRef, opacity: "0", children: [
|
|
1149
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("line", { x1: HEAD_VB.x, x2: HEAD_VB.x + HEAD_VB.w, y1: "0", y2: "0", stroke: wire, strokeWidth: "4", opacity: "0.18", ...VE }),
|
|
1150
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("line", { x1: HEAD_VB.x, x2: HEAD_VB.x + HEAD_VB.w, y1: "0", y2: "0", stroke: wire, strokeWidth: "1.2", opacity: "0.9", ...VE })
|
|
1151
|
+
] })
|
|
1152
|
+
]
|
|
1153
|
+
}
|
|
1154
|
+
),
|
|
1155
|
+
showTelemetry && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1156
|
+
"div",
|
|
1157
|
+
{
|
|
1158
|
+
className: "pointer-events-none absolute left-3 top-3 font-mono text-[11px] leading-4",
|
|
1159
|
+
style: { color: wire },
|
|
1160
|
+
children: [
|
|
1161
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
1162
|
+
"SPD ",
|
|
1163
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { ref: spdRef, children: "0 KM/H" })
|
|
1164
|
+
] }),
|
|
1165
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
1166
|
+
"LIVERY ",
|
|
1167
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { ref: covRef, children: "0%" })
|
|
1168
|
+
] })
|
|
1169
|
+
]
|
|
1170
|
+
}
|
|
1171
|
+
)
|
|
1172
|
+
] })
|
|
1173
|
+
]
|
|
1174
|
+
}
|
|
1175
|
+
),
|
|
1176
|
+
showNextRace && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1177
|
+
"div",
|
|
1178
|
+
{
|
|
1179
|
+
className: "pointer-events-none absolute left-6 top-6 text-xs",
|
|
1180
|
+
style: { color: "#111111" },
|
|
1181
|
+
children: [
|
|
1182
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "opacity-60", children: "Next race" }),
|
|
1183
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "text-sm font-semibold", children: "Las Vegas GP" })
|
|
1184
|
+
]
|
|
1185
|
+
}
|
|
1186
|
+
)
|
|
1187
|
+
]
|
|
1188
|
+
}
|
|
1138
1189
|
);
|
|
1139
1190
|
}
|
|
1140
1191
|
|
|
1141
1192
|
// src/components/ui/infinite-tunnel-hero.jsx
|
|
1142
|
-
var import_react4 = __toESM(require("react"));
|
|
1143
|
-
var import_gsap = __toESM(require("gsap"));
|
|
1193
|
+
var import_react4 = __toESM(require("react"), 1);
|
|
1194
|
+
var import_gsap = __toESM(require("gsap"), 1);
|
|
1195
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1144
1196
|
var SHAPES = [
|
|
1145
1197
|
[[523.9, 887.7], [391.2, 887.7], [520.1, 824], [624.3, 824]],
|
|
1146
1198
|
[[137.3, 845.2], [0, 886.1], [0, 923.1], [24.2, 923.1], [250.9, 845.2]],
|
|
@@ -1349,183 +1401,233 @@ function InfiniteTunnelHero({
|
|
|
1349
1401
|
return () => ctx.revert();
|
|
1350
1402
|
}, [speed]);
|
|
1351
1403
|
const shapeCount = SHAPES.length * SHAPE_COPIES;
|
|
1352
|
-
return /* @__PURE__ */
|
|
1404
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1353
1405
|
"div",
|
|
1354
1406
|
{
|
|
1355
1407
|
className: `relative h-screen w-full overflow-hidden ${className}`,
|
|
1356
|
-
style: { background: backgroundColor }
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1408
|
+
style: { background: backgroundColor },
|
|
1409
|
+
children: [
|
|
1410
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1411
|
+
"svg",
|
|
1412
|
+
{
|
|
1413
|
+
ref: rootRef,
|
|
1414
|
+
className: "pointer-events-none absolute inset-0 h-full w-full",
|
|
1415
|
+
viewBox: `0 0 ${W} ${H}`,
|
|
1416
|
+
preserveAspectRatio: "xMidYMid slice",
|
|
1417
|
+
"aria-hidden": "true",
|
|
1418
|
+
children: [
|
|
1419
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("defs", { children: [
|
|
1420
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "slabBottom", x1: "0", y1: "1", x2: "0", y2: "0", children: [
|
|
1421
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0", stopColor: color, stopOpacity: "0.9" }),
|
|
1422
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "1", stopColor: color, stopOpacity: "0.35" })
|
|
1423
|
+
] }),
|
|
1424
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "slabTop", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1425
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0", stopColor: color, stopOpacity: "0.9" }),
|
|
1426
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "1", stopColor: color, stopOpacity: "0.35" })
|
|
1427
|
+
] }),
|
|
1428
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1429
|
+
"linearGradient",
|
|
1430
|
+
{
|
|
1431
|
+
id: "gridStroke",
|
|
1432
|
+
gradientUnits: "userSpaceOnUse",
|
|
1433
|
+
x1: "0",
|
|
1434
|
+
y1: BOTTOM_EDGE,
|
|
1435
|
+
x2: "0",
|
|
1436
|
+
y2: "1100",
|
|
1437
|
+
children: [
|
|
1438
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0", stopColor: color, stopOpacity: "1" }),
|
|
1439
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.08", stopColor: color, stopOpacity: "0.95" }),
|
|
1440
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.2", stopColor: color, stopOpacity: "0.8" }),
|
|
1441
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.45", stopColor: color, stopOpacity: "0.9" }),
|
|
1442
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "1", stopColor: color, stopOpacity: "0.45" })
|
|
1443
|
+
]
|
|
1444
|
+
}
|
|
1445
|
+
),
|
|
1446
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1447
|
+
"linearGradient",
|
|
1448
|
+
{
|
|
1449
|
+
id: "gridFade",
|
|
1450
|
+
gradientUnits: "userSpaceOnUse",
|
|
1451
|
+
x1: "-480",
|
|
1452
|
+
y1: "0",
|
|
1453
|
+
x2: "2400",
|
|
1454
|
+
y2: "0",
|
|
1455
|
+
children: [
|
|
1456
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.02", stopColor: "#292929" }),
|
|
1457
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.05", stopColor: "#565656" }),
|
|
1458
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.09", stopColor: "#7E7E7E" }),
|
|
1459
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.12", stopColor: "#A1A1A1" }),
|
|
1460
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.2", stopColor: "#D6D6D6" }),
|
|
1461
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.3", stopColor: "#F5F5F5" }),
|
|
1462
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.54", stopColor: "#FFFFFF" }),
|
|
1463
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.74", stopColor: "#E2E2E2" }),
|
|
1464
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.88", stopColor: "#8B8B8B" }),
|
|
1465
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.96", stopColor: "#323232" })
|
|
1466
|
+
]
|
|
1467
|
+
}
|
|
1468
|
+
),
|
|
1469
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1470
|
+
"mask",
|
|
1471
|
+
{
|
|
1472
|
+
id: "gridMask",
|
|
1473
|
+
maskUnits: "userSpaceOnUse",
|
|
1474
|
+
x: "-480",
|
|
1475
|
+
y: "0",
|
|
1476
|
+
width: "2880",
|
|
1477
|
+
height: "1300",
|
|
1478
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x: "-480", y: "0", width: "2880", height: "1300", fill: "url(#gridFade)" })
|
|
1479
|
+
}
|
|
1480
|
+
),
|
|
1481
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("radialGradient", { id: "glow", cx: "50%", cy: "50%", r: "50%", children: [
|
|
1482
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.02", stopColor: color, stopOpacity: "1" }),
|
|
1483
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.07", stopColor: color, stopOpacity: "0.95" }),
|
|
1484
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.19", stopColor: color, stopOpacity: "0.8" }),
|
|
1485
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0.45", stopColor: color, stopOpacity: "0.45" }),
|
|
1486
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "1", stopColor: color, stopOpacity: "0" })
|
|
1487
|
+
] })
|
|
1488
|
+
] }),
|
|
1489
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { transform: `translate(0 ${GAP})`, children: [
|
|
1490
|
+
GLOW_ON && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { className: "tunnel-glow", children: [
|
|
1491
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1492
|
+
"rect",
|
|
1493
|
+
{
|
|
1494
|
+
x: VX - 1400,
|
|
1495
|
+
y: BOTTOM_EDGE + 60,
|
|
1496
|
+
width: 2800,
|
|
1497
|
+
height: 60,
|
|
1498
|
+
fill: "url(#glow)"
|
|
1499
|
+
}
|
|
1500
|
+
),
|
|
1501
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1502
|
+
"rect",
|
|
1503
|
+
{
|
|
1504
|
+
x: VX - 1e3,
|
|
1505
|
+
y: BOTTOM_EDGE - 110,
|
|
1506
|
+
width: 2e3,
|
|
1507
|
+
height: 220,
|
|
1508
|
+
fill: "url(#glow)",
|
|
1509
|
+
opacity: "0.22"
|
|
1510
|
+
}
|
|
1511
|
+
)
|
|
1512
|
+
] }),
|
|
1513
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { stroke: "url(#gridStroke)", strokeWidth: "0.8", mask: "url(#gridMask)", children: [
|
|
1514
|
+
RADIAL_X.map((x) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("line", { x1: x, y1: RADIAL_Y0, x2: radialEnd(x), y2: H }, `rb-${x}`)),
|
|
1515
|
+
Array.from({ length: GRID_Y.length + 1 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1516
|
+
"line",
|
|
1517
|
+
{
|
|
1518
|
+
ref: (el) => {
|
|
1519
|
+
hLines.current[i] = el;
|
|
1520
|
+
},
|
|
1521
|
+
x1: -480,
|
|
1522
|
+
x2: 2400,
|
|
1523
|
+
y1: GRID_Y[0],
|
|
1524
|
+
y2: GRID_Y[0],
|
|
1525
|
+
opacity: "0"
|
|
1526
|
+
},
|
|
1527
|
+
`hb-${i}`
|
|
1528
|
+
))
|
|
1529
|
+
] }),
|
|
1530
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { style: { mixBlendMode: "screen" }, children: [
|
|
1531
|
+
Array.from({ length: shapeCount }).map((_, k) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1532
|
+
"polygon",
|
|
1533
|
+
{
|
|
1534
|
+
ref: (el) => {
|
|
1535
|
+
shapesBottom.current[k] = el;
|
|
1536
|
+
},
|
|
1537
|
+
points: toPoints(SHAPES[Math.floor(k / SHAPE_COPIES)], false),
|
|
1538
|
+
fill: "url(#slabBottom)",
|
|
1539
|
+
stroke: color,
|
|
1540
|
+
strokeWidth: "1.5",
|
|
1541
|
+
vectorEffect: "non-scaling-stroke",
|
|
1542
|
+
opacity: "0"
|
|
1543
|
+
},
|
|
1544
|
+
`sb-${k}`
|
|
1545
|
+
)),
|
|
1546
|
+
PARTICLES.map((d, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1547
|
+
"circle",
|
|
1548
|
+
{
|
|
1549
|
+
ref: (el) => {
|
|
1550
|
+
dotsBottom.current[i] = el;
|
|
1551
|
+
},
|
|
1552
|
+
cx: d.x,
|
|
1553
|
+
cy: VY + d.dy,
|
|
1554
|
+
r: d.r,
|
|
1555
|
+
fill: d.color === "#FFFFFF" ? "#FFFFFF" : color,
|
|
1556
|
+
opacity: "0"
|
|
1557
|
+
},
|
|
1558
|
+
`pb-${i}`
|
|
1559
|
+
))
|
|
1560
|
+
] })
|
|
1561
|
+
] }),
|
|
1562
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { transform: `translate(0 ${-GAP})`, children: [
|
|
1563
|
+
GLOW_ON && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { className: "tunnel-glow", children: [
|
|
1564
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1565
|
+
"rect",
|
|
1566
|
+
{
|
|
1567
|
+
x: VX - 1400,
|
|
1568
|
+
y: TOP_EDGE - 130,
|
|
1569
|
+
width: 2800,
|
|
1570
|
+
height: 60,
|
|
1571
|
+
fill: "url(#glow)"
|
|
1572
|
+
}
|
|
1573
|
+
),
|
|
1574
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1575
|
+
"rect",
|
|
1576
|
+
{
|
|
1577
|
+
x: VX - 1e3,
|
|
1578
|
+
y: TOP_EDGE - 110,
|
|
1579
|
+
width: 2e3,
|
|
1580
|
+
height: 220,
|
|
1581
|
+
fill: "url(#glow)",
|
|
1582
|
+
opacity: "0.22"
|
|
1583
|
+
}
|
|
1584
|
+
)
|
|
1585
|
+
] }),
|
|
1586
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("g", { style: { mixBlendMode: "screen" }, children: [
|
|
1587
|
+
Array.from({ length: shapeCount }).map((_, k) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1588
|
+
"polygon",
|
|
1589
|
+
{
|
|
1590
|
+
ref: (el) => {
|
|
1591
|
+
shapesTop.current[k] = el;
|
|
1592
|
+
},
|
|
1593
|
+
points: toPoints(SHAPES[Math.floor(k / SHAPE_COPIES)], true),
|
|
1594
|
+
fill: "url(#slabTop)",
|
|
1595
|
+
stroke: color,
|
|
1596
|
+
strokeWidth: "1.5",
|
|
1597
|
+
vectorEffect: "non-scaling-stroke",
|
|
1598
|
+
opacity: "0"
|
|
1599
|
+
},
|
|
1600
|
+
`st-${k}`
|
|
1601
|
+
)),
|
|
1602
|
+
PARTICLES.map((d, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1603
|
+
"circle",
|
|
1604
|
+
{
|
|
1605
|
+
ref: (el) => {
|
|
1606
|
+
dotsTop.current[i] = el;
|
|
1607
|
+
},
|
|
1608
|
+
cx: W - d.x,
|
|
1609
|
+
cy: VY - d.dy,
|
|
1610
|
+
r: d.r,
|
|
1611
|
+
fill: d.color === "#FFFFFF" ? "#FFFFFF" : color,
|
|
1612
|
+
opacity: "0"
|
|
1613
|
+
},
|
|
1614
|
+
`pt-${i}`
|
|
1615
|
+
))
|
|
1616
|
+
] })
|
|
1617
|
+
] })
|
|
1618
|
+
]
|
|
1619
|
+
}
|
|
1620
|
+
),
|
|
1621
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "relative z-10 flex h-full w-full items-center justify-center", children })
|
|
1622
|
+
]
|
|
1623
|
+
}
|
|
1523
1624
|
);
|
|
1524
1625
|
}
|
|
1525
1626
|
|
|
1526
1627
|
// src/components/ui/scrollsmoothprovider.jsx
|
|
1527
|
-
var import_react5 = __toESM(require("react"));
|
|
1528
|
-
var import_lenis = __toESM(require("lenis"));
|
|
1628
|
+
var import_react5 = __toESM(require("react"), 1);
|
|
1629
|
+
var import_lenis = __toESM(require("lenis"), 1);
|
|
1630
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1529
1631
|
function SmoothScrollProvider({ children, pathname: propPathname }) {
|
|
1530
1632
|
const lenisRef = (0, import_react5.useRef)(null);
|
|
1531
1633
|
const [currentPath, setCurrentPath] = (0, import_react5.useState)(
|
|
@@ -1578,34 +1680,36 @@ function SmoothScrollProvider({ children, pathname: propPathname }) {
|
|
|
1578
1680
|
}, 50);
|
|
1579
1681
|
return () => clearTimeout(timeout);
|
|
1580
1682
|
}, [activePath]);
|
|
1581
|
-
return /* @__PURE__ */
|
|
1683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children });
|
|
1582
1684
|
}
|
|
1583
1685
|
|
|
1584
1686
|
// src/components/ui/liquidGlassButton.jsx
|
|
1585
|
-
var import_react6 = __toESM(require("react"));
|
|
1687
|
+
var import_react6 = __toESM(require("react"), 1);
|
|
1688
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1586
1689
|
function LiquidGlassButton({
|
|
1587
1690
|
children = "Liquid Glass Button",
|
|
1588
1691
|
className = "",
|
|
1589
1692
|
onClick,
|
|
1590
1693
|
...props
|
|
1591
1694
|
}) {
|
|
1592
|
-
return /* @__PURE__ */
|
|
1695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1593
1696
|
"button",
|
|
1594
1697
|
{
|
|
1595
1698
|
type: "button",
|
|
1596
1699
|
onClick,
|
|
1597
1700
|
className: `relative inline-flex items-center justify-center px-6 py-2.5 rounded-xl font-medium transition-all duration-300 ${className}`,
|
|
1598
|
-
...props
|
|
1599
|
-
|
|
1600
|
-
|
|
1701
|
+
...props,
|
|
1702
|
+
children
|
|
1703
|
+
}
|
|
1601
1704
|
);
|
|
1602
1705
|
}
|
|
1603
1706
|
var liquidGlassButton = LiquidGlassButton;
|
|
1604
1707
|
|
|
1605
1708
|
// src/components/ui/install-tabs.jsx
|
|
1606
|
-
var import_react7 = __toESM(require("react"));
|
|
1709
|
+
var import_react7 = __toESM(require("react"), 1);
|
|
1607
1710
|
var import_react8 = require("motion/react");
|
|
1608
1711
|
var import_lucide_react2 = require("lucide-react");
|
|
1712
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
1609
1713
|
var managers = ["npm", "pnpm", "yarn", "bun"];
|
|
1610
1714
|
var getCommand = (manager, packages = "adaptive-ui", component, mode = "cli", dev = false) => {
|
|
1611
1715
|
if (mode === "cli" && component) {
|
|
@@ -1671,98 +1775,123 @@ function InstallTabs({
|
|
|
1671
1775
|
} catch {
|
|
1672
1776
|
}
|
|
1673
1777
|
}
|
|
1674
|
-
return /* @__PURE__ */
|
|
1778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1675
1779
|
"div",
|
|
1676
1780
|
{
|
|
1677
|
-
className: `w-full overflow-hidden rounded-xl border border-white/10 bg-zinc-950/90 shadow-2xl backdrop-blur-md ${className}
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1781
|
+
className: `w-full overflow-hidden rounded-xl border border-white/10 bg-zinc-950/90 shadow-2xl backdrop-blur-md ${className}`,
|
|
1782
|
+
children: [
|
|
1783
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-2 border-b border-white/10 bg-zinc-900/60 px-3 py-2", children: [
|
|
1784
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
1785
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { role: "tablist", "aria-label": "Package manager", className: "flex items-center gap-1", children: managers.map((option, index) => {
|
|
1786
|
+
const isSelected = manager === option;
|
|
1787
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1788
|
+
"button",
|
|
1789
|
+
{
|
|
1790
|
+
id: `${id}-${option}`,
|
|
1791
|
+
role: "tab",
|
|
1792
|
+
"aria-selected": isSelected,
|
|
1793
|
+
"aria-controls": `${id}-panel`,
|
|
1794
|
+
tabIndex: isSelected ? 0 : -1,
|
|
1795
|
+
onClick: () => choose(option),
|
|
1796
|
+
onKeyDown: (event) => onKey(event, index),
|
|
1797
|
+
className: `relative flex cursor-pointer items-center gap-1 rounded-lg px-2.5 py-1 font-mono text-xs transition-colors duration-150 focus-visible:outline-2 focus-visible:outline-emerald-400 ${isSelected ? "text-white font-semibold" : "text-zinc-400 hover:text-white"}`,
|
|
1798
|
+
children: [
|
|
1799
|
+
isSelected && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1800
|
+
import_react8.motion.span,
|
|
1801
|
+
{
|
|
1802
|
+
layoutId: `${id}-pill`,
|
|
1803
|
+
"aria-hidden": true,
|
|
1804
|
+
className: "absolute inset-0 rounded-lg border border-white/15 bg-white/10 shadow-sm",
|
|
1805
|
+
transition: {
|
|
1806
|
+
type: "spring",
|
|
1807
|
+
stiffness: 400,
|
|
1808
|
+
damping: 30
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
),
|
|
1812
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "relative z-10", children: option })
|
|
1813
|
+
]
|
|
1814
|
+
},
|
|
1815
|
+
option
|
|
1816
|
+
);
|
|
1817
|
+
}) }),
|
|
1818
|
+
component && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "ml-2 hidden items-center rounded-lg border border-white/10 bg-black/40 p-0.5 sm:flex", children: [
|
|
1819
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1820
|
+
"button",
|
|
1821
|
+
{
|
|
1822
|
+
type: "button",
|
|
1823
|
+
onClick: () => setMode("cli"),
|
|
1824
|
+
className: `flex cursor-pointer items-center gap-1 rounded-md px-2 py-0.5 text-[11px] font-mono transition ${mode === "cli" ? "bg-emerald-500/20 text-emerald-300 font-semibold border border-emerald-500/30" : "text-zinc-400 hover:text-white"}`,
|
|
1825
|
+
children: [
|
|
1826
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.Terminal, { className: "size-3" }),
|
|
1827
|
+
"CLI"
|
|
1828
|
+
]
|
|
1829
|
+
}
|
|
1830
|
+
),
|
|
1831
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1832
|
+
"button",
|
|
1833
|
+
{
|
|
1834
|
+
type: "button",
|
|
1835
|
+
onClick: () => setMode("package"),
|
|
1836
|
+
className: `flex cursor-pointer items-center gap-1 rounded-md px-2 py-0.5 text-[11px] font-mono transition ${mode === "package" ? "bg-emerald-500/20 text-emerald-300 font-semibold border border-emerald-500/30" : "text-zinc-400 hover:text-white"}`,
|
|
1837
|
+
children: [
|
|
1838
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.Package, { className: "size-3" }),
|
|
1839
|
+
"NPM"
|
|
1840
|
+
]
|
|
1841
|
+
}
|
|
1842
|
+
)
|
|
1843
|
+
] })
|
|
1844
|
+
] }),
|
|
1845
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1846
|
+
"button",
|
|
1847
|
+
{
|
|
1848
|
+
type: "button",
|
|
1849
|
+
onClick: copyCommand,
|
|
1850
|
+
className: "flex cursor-pointer items-center gap-1.5 rounded-lg border border-white/10 bg-white/5 px-2.5 py-1 font-mono text-xs text-zinc-300 transition hover:bg-white/15 hover:text-white",
|
|
1851
|
+
"aria-label": "Copy install command",
|
|
1852
|
+
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
1853
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react2.Check, { className: "size-3.5 text-emerald-400" }),
|
|
1854
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-emerald-400 font-medium", children: "Copied!" })
|
|
1855
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-zinc-400", children: "Copy" }) })
|
|
1704
1856
|
}
|
|
1857
|
+
)
|
|
1858
|
+
] }),
|
|
1859
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1860
|
+
"div",
|
|
1861
|
+
{
|
|
1862
|
+
id: `${id}-panel`,
|
|
1863
|
+
role: "tabpanel",
|
|
1864
|
+
"aria-labelledby": `${id}-${manager}`,
|
|
1865
|
+
className: "relative overflow-hidden px-4 py-3.5 font-mono text-xs sm:text-sm bg-black/40",
|
|
1866
|
+
children: [
|
|
1867
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react8.AnimatePresence, { mode: "wait", initial: false, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1868
|
+
import_react8.motion.div,
|
|
1869
|
+
{
|
|
1870
|
+
initial: { opacity: 0, x: -28 },
|
|
1871
|
+
animate: { opacity: 1, x: 0 },
|
|
1872
|
+
exit: { opacity: 0, x: 28 },
|
|
1873
|
+
transition: { duration: 0.22, ease: "easeOut" },
|
|
1874
|
+
className: "flex items-center gap-2.5 whitespace-nowrap text-zinc-200",
|
|
1875
|
+
children: [
|
|
1876
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "select-none font-bold text-emerald-400", children: "$" }),
|
|
1877
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "tracking-wide", children: currentText })
|
|
1878
|
+
]
|
|
1879
|
+
},
|
|
1880
|
+
`${manager}-${mode}`
|
|
1881
|
+
) }),
|
|
1882
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { role: "status", className: "sr-only", children: copied ? "Copied" : "" })
|
|
1883
|
+
]
|
|
1705
1884
|
}
|
|
1706
|
-
)
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
})), component && /* @__PURE__ */ import_react7.default.createElement("div", { className: "ml-2 hidden items-center rounded-lg border border-white/10 bg-black/40 p-0.5 sm:flex" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
1710
|
-
"button",
|
|
1711
|
-
{
|
|
1712
|
-
type: "button",
|
|
1713
|
-
onClick: () => setMode("cli"),
|
|
1714
|
-
className: `flex cursor-pointer items-center gap-1 rounded-md px-2 py-0.5 text-[11px] font-mono transition ${mode === "cli" ? "bg-emerald-500/20 text-emerald-300 font-semibold border border-emerald-500/30" : "text-zinc-400 hover:text-white"}`
|
|
1715
|
-
},
|
|
1716
|
-
/* @__PURE__ */ import_react7.default.createElement(import_lucide_react2.Terminal, { className: "size-3" }),
|
|
1717
|
-
"CLI"
|
|
1718
|
-
), /* @__PURE__ */ import_react7.default.createElement(
|
|
1719
|
-
"button",
|
|
1720
|
-
{
|
|
1721
|
-
type: "button",
|
|
1722
|
-
onClick: () => setMode("package"),
|
|
1723
|
-
className: `flex cursor-pointer items-center gap-1 rounded-md px-2 py-0.5 text-[11px] font-mono transition ${mode === "package" ? "bg-emerald-500/20 text-emerald-300 font-semibold border border-emerald-500/30" : "text-zinc-400 hover:text-white"}`
|
|
1724
|
-
},
|
|
1725
|
-
/* @__PURE__ */ import_react7.default.createElement(import_lucide_react2.Package, { className: "size-3" }),
|
|
1726
|
-
"NPM"
|
|
1727
|
-
))), /* @__PURE__ */ import_react7.default.createElement(
|
|
1728
|
-
"button",
|
|
1729
|
-
{
|
|
1730
|
-
type: "button",
|
|
1731
|
-
onClick: copyCommand,
|
|
1732
|
-
className: "flex cursor-pointer items-center gap-1.5 rounded-lg border border-white/10 bg-white/5 px-2.5 py-1 font-mono text-xs text-zinc-300 transition hover:bg-white/15 hover:text-white",
|
|
1733
|
-
"aria-label": "Copy install command"
|
|
1734
|
-
},
|
|
1735
|
-
copied ? /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement(import_lucide_react2.Check, { className: "size-3.5 text-emerald-400" }), /* @__PURE__ */ import_react7.default.createElement("span", { className: "text-emerald-400 font-medium" }, "Copied!")) : /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement("span", { className: "text-zinc-400" }, "Copy"))
|
|
1736
|
-
)),
|
|
1737
|
-
/* @__PURE__ */ import_react7.default.createElement(
|
|
1738
|
-
"div",
|
|
1739
|
-
{
|
|
1740
|
-
id: `${id}-panel`,
|
|
1741
|
-
role: "tabpanel",
|
|
1742
|
-
"aria-labelledby": `${id}-${manager}`,
|
|
1743
|
-
className: "relative overflow-hidden px-4 py-3.5 font-mono text-xs sm:text-sm bg-black/40"
|
|
1744
|
-
},
|
|
1745
|
-
/* @__PURE__ */ import_react7.default.createElement(import_react8.AnimatePresence, { mode: "wait", initial: false }, /* @__PURE__ */ import_react7.default.createElement(
|
|
1746
|
-
import_react8.motion.div,
|
|
1747
|
-
{
|
|
1748
|
-
key: `${manager}-${mode}`,
|
|
1749
|
-
initial: { opacity: 0, x: -28 },
|
|
1750
|
-
animate: { opacity: 1, x: 0 },
|
|
1751
|
-
exit: { opacity: 0, x: 28 },
|
|
1752
|
-
transition: { duration: 0.22, ease: "easeOut" },
|
|
1753
|
-
className: "flex items-center gap-2.5 whitespace-nowrap text-zinc-200"
|
|
1754
|
-
},
|
|
1755
|
-
/* @__PURE__ */ import_react7.default.createElement("span", { className: "select-none font-bold text-emerald-400" }, "$"),
|
|
1756
|
-
/* @__PURE__ */ import_react7.default.createElement("span", { className: "tracking-wide" }, currentText)
|
|
1757
|
-
)),
|
|
1758
|
-
/* @__PURE__ */ import_react7.default.createElement("span", { role: "status", className: "sr-only" }, copied ? "Copied" : "")
|
|
1759
|
-
)
|
|
1885
|
+
)
|
|
1886
|
+
]
|
|
1887
|
+
}
|
|
1760
1888
|
);
|
|
1761
1889
|
}
|
|
1762
1890
|
|
|
1763
1891
|
// src/components/ui/props-table.jsx
|
|
1764
|
-
var import_react9 = __toESM(require("react"));
|
|
1892
|
+
var import_react9 = __toESM(require("react"), 1);
|
|
1765
1893
|
var import_lucide_react3 = require("lucide-react");
|
|
1894
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
1766
1895
|
function PropsTable({
|
|
1767
1896
|
data = [],
|
|
1768
1897
|
title = "Props Reference",
|
|
@@ -1797,51 +1926,84 @@ function PropsTable({
|
|
|
1797
1926
|
console.warn("Clipboard copy failed:", e);
|
|
1798
1927
|
}
|
|
1799
1928
|
};
|
|
1800
|
-
return /* @__PURE__ */
|
|
1801
|
-
"
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: `space-y-4 w-full ${className}`, children: [
|
|
1930
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-3", children: [
|
|
1931
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
|
|
1932
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("h3", { className: "text-xl md:text-2xl font-bold font-sans text-white flex items-center gap-2", children: [
|
|
1933
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.SlidersHorizontal, { className: "w-5 h-5 text-lime-400" }),
|
|
1934
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: title })
|
|
1935
|
+
] }),
|
|
1936
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "mt-1 text-xs md:text-sm text-gray-400 font-sans", children: description })
|
|
1937
|
+
] }),
|
|
1938
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "relative w-full sm:w-64", children: [
|
|
1939
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Search, { className: "w-3.5 h-3.5 absolute left-3 top-1/2 -translate-y-1/2 text-zinc-500 pointer-events-none" }),
|
|
1940
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1941
|
+
"input",
|
|
1942
|
+
{
|
|
1943
|
+
type: "text",
|
|
1944
|
+
value: searchQuery,
|
|
1945
|
+
onChange: (e) => setSearchQuery(e.target.value),
|
|
1946
|
+
placeholder: "Search props, types...",
|
|
1947
|
+
className: "w-full bg-zinc-900/80 border border-white/10 rounded-xl pl-9 pr-3 py-1.5 text-xs text-white placeholder-zinc-500 focus:outline-none focus:border-lime-400/50 transition font-sans"
|
|
1948
|
+
}
|
|
1949
|
+
),
|
|
1950
|
+
searchQuery && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1951
|
+
"button",
|
|
1952
|
+
{
|
|
1953
|
+
onClick: () => setSearchQuery(""),
|
|
1954
|
+
className: "absolute right-2.5 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-white text-xs font-mono",
|
|
1955
|
+
children: "\xD7"
|
|
1956
|
+
}
|
|
1957
|
+
)
|
|
1958
|
+
] })
|
|
1959
|
+
] }),
|
|
1960
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "rounded-2xl border border-white/10 overflow-hidden bg-zinc-950 shadow-xl", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("table", { className: "w-full text-left text-xs font-sans", children: [
|
|
1961
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("thead", { className: "bg-zinc-900/70 border-b border-white/10 font-mono text-zinc-400", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("tr", { children: [
|
|
1962
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("th", { className: "py-3 px-4 font-semibold w-1/4", children: "Prop" }),
|
|
1963
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("th", { className: "py-3 px-4 font-semibold w-1/5", children: "Type" }),
|
|
1964
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("th", { className: "py-3 px-4 font-semibold w-1/6", children: "Default" }),
|
|
1965
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("th", { className: "py-3 px-4 font-semibold", children: "Description" })
|
|
1966
|
+
] }) }),
|
|
1967
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("tbody", { className: "divide-y divide-white/5 text-zinc-300", children: filteredData.length > 0 ? filteredData.map((item, idx) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
1968
|
+
"tr",
|
|
1969
|
+
{
|
|
1970
|
+
className: "hover:bg-white/[0.02] transition-colors group",
|
|
1971
|
+
children: [
|
|
1972
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("td", { className: "py-3.5 px-4 font-mono", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-1.5", children: [
|
|
1973
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
1974
|
+
"button",
|
|
1975
|
+
{
|
|
1976
|
+
onClick: () => copyPropName(item.prop),
|
|
1977
|
+
className: "font-semibold text-lime-400 hover:text-lime-300 transition flex items-center gap-1 cursor-pointer",
|
|
1978
|
+
title: "Click to copy prop name",
|
|
1979
|
+
children: [
|
|
1980
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: item.prop }),
|
|
1981
|
+
copiedProp === item.prop ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Check, { className: "w-3 h-3 text-emerald-400 shrink-0" }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Copy, { className: "w-3 h-3 text-zinc-600 opacity-0 group-hover:opacity-100 transition shrink-0" })
|
|
1982
|
+
]
|
|
1983
|
+
}
|
|
1984
|
+
),
|
|
1985
|
+
item.required && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-[10px] px-1.5 py-0.2 rounded bg-rose-500/20 text-rose-300 border border-rose-500/30 font-sans", children: "required" })
|
|
1986
|
+
] }) }),
|
|
1987
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("td", { className: "py-3.5 px-4 font-mono text-[11px]", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "inline-block px-2 py-0.5 rounded-md bg-zinc-900 text-cyan-300 border border-white/5", children: item.type }) }),
|
|
1988
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("td", { className: "py-3.5 px-4 font-mono text-[11px] text-zinc-400", children: item.default ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("code", { className: "bg-zinc-900 px-1.5 py-0.5 rounded text-amber-300/90 border border-white/5", children: item.default }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-zinc-600", children: "\u2014" }) }),
|
|
1989
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("td", { className: "py-3.5 px-4 text-gray-300 leading-relaxed font-sans", children: item.description })
|
|
1990
|
+
]
|
|
1991
|
+
},
|
|
1992
|
+
item.prop || idx
|
|
1993
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
1994
|
+
"td",
|
|
1995
|
+
{
|
|
1996
|
+
colSpan: 4,
|
|
1997
|
+
className: "py-8 text-center text-zinc-500 font-mono text-xs",
|
|
1998
|
+
children: [
|
|
1999
|
+
'No matching props found for "',
|
|
2000
|
+
searchQuery,
|
|
2001
|
+
'".'
|
|
2002
|
+
]
|
|
2003
|
+
}
|
|
2004
|
+
) }) })
|
|
2005
|
+
] }) }) })
|
|
2006
|
+
] });
|
|
1845
2007
|
}
|
|
1846
2008
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1847
2009
|
0 && (module.exports = {
|