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