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.js CHANGED
@@ -8,6 +8,7 @@ var image_scroll_default = {};
8
8
 
9
9
  // src/components/ui/image-scroll.jsx
10
10
  import { ArrowUpRight, Image as ImageIcon } from "lucide-react";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
11
12
  var DEFAULT_SCROLL_IMAGES = [
12
13
  {
13
14
  id: 1,
@@ -79,7 +80,7 @@ function DefaultImageCard({ item, cardWidth, cardHeight, onCardClick }) {
79
80
  const title = typeof item === "string" ? "Creative Asset" : (item == null ? void 0 : item.title) || "Visual Frame";
80
81
  const category = typeof item === "string" ? "ASSET" : (item == null ? void 0 : item.category) || "GALLERY";
81
82
  const accent = typeof item === "object" && (item == null ? void 0 : item.accent) ? item.accent : "#10b981";
82
- return /* @__PURE__ */ React.createElement(
83
+ return /* @__PURE__ */ jsxs(
83
84
  "div",
84
85
  {
85
86
  onClick: () => onCardClick == null ? void 0 : onCardClick(item),
@@ -87,55 +88,66 @@ function DefaultImageCard({ item, cardWidth, cardHeight, onCardClick }) {
87
88
  width: cardWidth,
88
89
  height: cardHeight
89
90
  },
90
- 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"
91
- },
92
- /* @__PURE__ */ React.createElement(
93
- "div",
94
- {
95
- className: "absolute inset-0 bg-gradient-to-br from-zinc-800 via-zinc-900 to-black",
96
- style: {
97
- backgroundImage: imgError ? `radial-gradient(circle at 50% 30%, ${accent}25, transparent 70%), linear-gradient(to bottom, #18181b, #09090b)` : void 0
98
- }
99
- }
100
- ),
101
- !imgError && src && // eslint-disable-next-line @next/next/no-img-element
102
- /* @__PURE__ */ React.createElement(
103
- "img",
104
- {
105
- src,
106
- alt: title,
107
- loading: "lazy",
108
- decoding: "async",
109
- onError: () => setImgError(true),
110
- className: "absolute inset-0 h-full w-full object-cover transition-transform duration-700 ease-out group-hover:scale-108"
111
- }
112
- ),
113
- imgError && /* @__PURE__ */ React.createElement("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-2 p-4 text-center" }, /* @__PURE__ */ React.createElement(
114
- "div",
115
- {
116
- className: "flex size-10 items-center justify-center rounded-xl border border-white/10 bg-white/5 backdrop-blur-sm",
117
- style: { color: accent }
118
- },
119
- /* @__PURE__ */ React.createElement(ImageIcon, { className: "size-5" })
120
- ), /* @__PURE__ */ React.createElement("span", { className: "font-mono text-xs uppercase tracking-wider text-zinc-400" }, title)),
121
- /* @__PURE__ */ React.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" }),
122
- /* @__PURE__ */ React.createElement(
123
- "div",
124
- {
125
- className: "pointer-events-none absolute -inset-px rounded-2xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",
126
- style: {
127
- boxShadow: `inset 0 0 0 1px ${accent}66, 0 0 24px -6px ${accent}40`
128
- }
129
- }
130
- ),
131
- /* @__PURE__ */ React.createElement("div", { className: "absolute inset-x-0 bottom-0 flex flex-col justify-end p-3 sm:p-4" }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-between gap-2" }, /* @__PURE__ */ React.createElement(
132
- "span",
133
- {
134
- 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",
135
- style: { borderLeftColor: accent, borderLeftWidth: "2.5px" }
136
- },
137
- category
138
- ), /* @__PURE__ */ React.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__ */ React.createElement(ArrowUpRight, { className: "size-3 sm:size-3.5" }))), /* @__PURE__ */ React.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))
91
+ 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",
92
+ children: [
93
+ /* @__PURE__ */ jsx(
94
+ "div",
95
+ {
96
+ className: "absolute inset-0 bg-gradient-to-br from-zinc-800 via-zinc-900 to-black",
97
+ style: {
98
+ backgroundImage: imgError ? `radial-gradient(circle at 50% 30%, ${accent}25, transparent 70%), linear-gradient(to bottom, #18181b, #09090b)` : void 0
99
+ }
100
+ }
101
+ ),
102
+ !imgError && src && // eslint-disable-next-line @next/next/no-img-element
103
+ /* @__PURE__ */ jsx(
104
+ "img",
105
+ {
106
+ src,
107
+ alt: title,
108
+ loading: "lazy",
109
+ decoding: "async",
110
+ onError: () => setImgError(true),
111
+ className: "absolute inset-0 h-full w-full object-cover transition-transform duration-700 ease-out group-hover:scale-108"
112
+ }
113
+ ),
114
+ imgError && /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-2 p-4 text-center", children: [
115
+ /* @__PURE__ */ jsx(
116
+ "div",
117
+ {
118
+ className: "flex size-10 items-center justify-center rounded-xl border border-white/10 bg-white/5 backdrop-blur-sm",
119
+ style: { color: accent },
120
+ children: /* @__PURE__ */ jsx(ImageIcon, { className: "size-5" })
121
+ }
122
+ ),
123
+ /* @__PURE__ */ jsx("span", { className: "font-mono text-xs uppercase tracking-wider text-zinc-400", children: title })
124
+ ] }),
125
+ /* @__PURE__ */ 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" }),
126
+ /* @__PURE__ */ jsx(
127
+ "div",
128
+ {
129
+ className: "pointer-events-none absolute -inset-px rounded-2xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",
130
+ style: {
131
+ boxShadow: `inset 0 0 0 1px ${accent}66, 0 0 24px -6px ${accent}40`
132
+ }
133
+ }
134
+ ),
135
+ /* @__PURE__ */ jsxs("div", { className: "absolute inset-x-0 bottom-0 flex flex-col justify-end p-3 sm:p-4", children: [
136
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
137
+ /* @__PURE__ */ jsx(
138
+ "span",
139
+ {
140
+ 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",
141
+ style: { borderLeftColor: accent, borderLeftWidth: "2.5px" },
142
+ children: category
143
+ }
144
+ ),
145
+ /* @__PURE__ */ 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__ */ jsx(ArrowUpRight, { className: "size-3 sm:size-3.5" }) })
146
+ ] }),
147
+ /* @__PURE__ */ 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 })
148
+ ] })
149
+ ]
150
+ }
139
151
  );
140
152
  }
141
153
  function prepareTrackItems(items) {
@@ -185,7 +197,7 @@ function ImageScroll({
185
197
  "--container-height": height,
186
198
  ...style
187
199
  };
188
- return /* @__PURE__ */ React.createElement(
200
+ return /* @__PURE__ */ jsx(
189
201
  "div",
190
202
  {
191
203
  style: containerStyles,
@@ -196,61 +208,61 @@ function ImageScroll({
196
208
  ${isVertical && blurEdges ? image_scroll_default.fadeMaskVertical : ""}
197
209
  ${!isVertical && blurEdges ? image_scroll_default.fadeMaskHorizontal : ""}
198
210
  ${className}
199
- `
200
- },
201
- /* @__PURE__ */ React.createElement("div", { className: tilt ? image_scroll_default.tiltInner : "" }, isVertical ? (
202
- /* ================= VERTICAL COLUMNS ================= */
203
- /* @__PURE__ */ React.createElement("div", { className: image_scroll_default.verticalWrapper }, trackItemGroups.map((group, colIdx) => {
204
- const isColReverse = staggerDirection ? colIdx % 2 === 1 ? !reverse : reverse : reverse;
205
- const colSpeed = staggerDirection ? baseDuration * (1 + colIdx % 3 * 0.15) : baseDuration;
206
- const trackItems = prepareTrackItems(group);
207
- return /* @__PURE__ */ React.createElement(
208
- "div",
209
- {
210
- key: `col-${colIdx}`,
211
- className: isColReverse ? image_scroll_default.verticalTrackReverse : image_scroll_default.verticalTrack,
212
- style: {
213
- animationDuration: `${colSpeed}s`
214
- }
215
- },
216
- trackItems.map((item, itemIdx) => /* @__PURE__ */ React.createElement(React.Fragment, { key: `v-item-${colIdx}-${itemIdx}` }, renderItem ? renderItem(item, itemIdx) : /* @__PURE__ */ React.createElement(
217
- DefaultImageCard,
211
+ `,
212
+ children: /* @__PURE__ */ jsx("div", { className: tilt ? image_scroll_default.tiltInner : "", children: isVertical ? (
213
+ /* ================= VERTICAL COLUMNS ================= */
214
+ /* @__PURE__ */ jsx("div", { className: image_scroll_default.verticalWrapper, children: trackItemGroups.map((group, colIdx) => {
215
+ const isColReverse = staggerDirection ? colIdx % 2 === 1 ? !reverse : reverse : reverse;
216
+ const colSpeed = staggerDirection ? baseDuration * (1 + colIdx % 3 * 0.15) : baseDuration;
217
+ const trackItems = prepareTrackItems(group);
218
+ return /* @__PURE__ */ jsx(
219
+ "div",
218
220
  {
219
- item,
220
- cardWidth: defaultWidth,
221
- cardHeight: defaultHeight,
222
- onCardClick
223
- }
224
- )))
225
- );
226
- }))
227
- ) : (
228
- /* ================= HORIZONTAL ROWS ================= */
229
- /* @__PURE__ */ React.createElement("div", { className: image_scroll_default.horizontalWrapper }, trackItemGroups.map((group, rowIdx) => {
230
- const isRowReverse = staggerDirection ? rowIdx % 2 === 1 ? !reverse : reverse : reverse;
231
- const rowSpeed = staggerDirection ? baseDuration * (1 + rowIdx % 3 * 0.15) : baseDuration;
232
- const trackItems = prepareTrackItems(group);
233
- return /* @__PURE__ */ React.createElement(
234
- "div",
235
- {
236
- key: `row-${rowIdx}`,
237
- className: isRowReverse ? image_scroll_default.horizontalTrackReverse : image_scroll_default.horizontalTrack,
238
- style: {
239
- animationDuration: `${rowSpeed}s`
240
- }
241
- },
242
- trackItems.map((item, itemIdx) => /* @__PURE__ */ React.createElement(React.Fragment, { key: `h-item-${rowIdx}-${itemIdx}` }, renderItem ? renderItem(item, itemIdx) : /* @__PURE__ */ React.createElement(
243
- DefaultImageCard,
221
+ className: isColReverse ? image_scroll_default.verticalTrackReverse : image_scroll_default.verticalTrack,
222
+ style: {
223
+ animationDuration: `${colSpeed}s`
224
+ },
225
+ children: trackItems.map((item, itemIdx) => /* @__PURE__ */ jsx(React.Fragment, { children: renderItem ? renderItem(item, itemIdx) : /* @__PURE__ */ jsx(
226
+ DefaultImageCard,
227
+ {
228
+ item,
229
+ cardWidth: defaultWidth,
230
+ cardHeight: defaultHeight,
231
+ onCardClick
232
+ }
233
+ ) }, `v-item-${colIdx}-${itemIdx}`))
234
+ },
235
+ `col-${colIdx}`
236
+ );
237
+ }) })
238
+ ) : (
239
+ /* ================= HORIZONTAL ROWS ================= */
240
+ /* @__PURE__ */ jsx("div", { className: image_scroll_default.horizontalWrapper, children: trackItemGroups.map((group, rowIdx) => {
241
+ const isRowReverse = staggerDirection ? rowIdx % 2 === 1 ? !reverse : reverse : reverse;
242
+ const rowSpeed = staggerDirection ? baseDuration * (1 + rowIdx % 3 * 0.15) : baseDuration;
243
+ const trackItems = prepareTrackItems(group);
244
+ return /* @__PURE__ */ jsx(
245
+ "div",
244
246
  {
245
- item,
246
- cardWidth: defaultWidth,
247
- cardHeight: defaultHeight,
248
- onCardClick
249
- }
250
- )))
251
- );
252
- }))
253
- ))
247
+ className: isRowReverse ? image_scroll_default.horizontalTrackReverse : image_scroll_default.horizontalTrack,
248
+ style: {
249
+ animationDuration: `${rowSpeed}s`
250
+ },
251
+ children: trackItems.map((item, itemIdx) => /* @__PURE__ */ jsx(React.Fragment, { children: renderItem ? renderItem(item, itemIdx) : /* @__PURE__ */ jsx(
252
+ DefaultImageCard,
253
+ {
254
+ item,
255
+ cardWidth: defaultWidth,
256
+ cardHeight: defaultHeight,
257
+ onCardClick
258
+ }
259
+ ) }, `h-item-${rowIdx}-${itemIdx}`))
260
+ },
261
+ `row-${rowIdx}`
262
+ );
263
+ }) })
264
+ ) })
265
+ }
254
266
  );
255
267
  }
256
268
  var InfiniteImageScroll = ImageScroll;
@@ -262,6 +274,7 @@ import React2, { useEffect, useRef, useState as useState2 } from "react";
262
274
  var interactive_ascii_face_default = {};
263
275
 
264
276
  // src/components/ui/interactive-ascii-face.jsx
277
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
265
278
  var REFERENCE = "/images/ascii-portrait.png";
266
279
  var GLYPHS = [".:;|`", "il/+=:", "xovucz", "7TZH28", "NWM#@%"];
267
280
  var MASK_WIDTH = 360;
@@ -456,38 +469,41 @@ function InteractiveAsciiFace({
456
469
  const y = event.clientY - bounds.top;
457
470
  pointer.current = { position: { x, y }, offset: { x: (x / bounds.width * 2 - 1) * offset, y: (y / bounds.height * 2 - 1) * offset } };
458
471
  }
459
- return /* @__PURE__ */ React2.createElement(
472
+ return /* @__PURE__ */ jsxs2(
460
473
  "div",
461
474
  {
462
475
  className: [interactive_ascii_face_default.stage, className].filter(Boolean).join(" "),
463
476
  onPointerMove: movePortrait,
464
477
  onPointerLeave: () => {
465
478
  pointer.current = null;
466
- }
467
- },
468
- /* @__PURE__ */ React2.createElement(
469
- "canvas",
470
- {
471
- ref: fieldRef,
472
- className: interactive_ascii_face_default.field,
473
- role: mask ? "img" : void 0,
474
- "aria-label": mask ? alt : void 0,
475
- "aria-hidden": !mask
476
- }
477
- ),
478
- /* @__PURE__ */ React2.createElement(
479
- "div",
480
- {
481
- ref: portraitRef,
482
- className: interactive_ascii_face_default.frame
483
479
  },
484
- !mask && /* @__PURE__ */ React2.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")
485
- )
480
+ children: [
481
+ /* @__PURE__ */ jsx2(
482
+ "canvas",
483
+ {
484
+ ref: fieldRef,
485
+ className: interactive_ascii_face_default.field,
486
+ role: mask ? "img" : void 0,
487
+ "aria-label": mask ? alt : void 0,
488
+ "aria-hidden": !mask
489
+ }
490
+ ),
491
+ /* @__PURE__ */ jsx2(
492
+ "div",
493
+ {
494
+ ref: portraitRef,
495
+ className: interactive_ascii_face_default.frame,
496
+ children: !mask && /* @__PURE__ */ jsx2("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" })
497
+ }
498
+ )
499
+ ]
500
+ }
486
501
  );
487
502
  }
488
503
 
489
504
  // src/components/ui/blob-morph-hero.jsx
490
505
  import React3, { useEffect as useEffect2, useId, useMemo, useRef as useRef2, useState as useState3 } from "react";
506
+ import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
491
507
  var BASE_IMG = "/images/banner-crypto-base.webp";
492
508
  var EQUIPPED_IMG = "/images/banner-crypto-equipped.png";
493
509
  var DEFAULT_PRESETS = [
@@ -996,106 +1012,142 @@ function BlobMorphHero({
996
1012
  raf = requestAnimationFrame(tick);
997
1013
  return () => cancelAnimationFrame(raf);
998
1014
  }, []);
999
- return /* @__PURE__ */ React3.createElement(
1015
+ return /* @__PURE__ */ jsxs3(
1000
1016
  "div",
1001
1017
  {
1002
1018
  ref: rootRef,
1003
1019
  className: `relative h-full w-full overflow-hidden ${className}`,
1004
- style: { background: bg }
1005
- },
1006
- /* @__PURE__ */ React3.createElement("canvas", { ref: topoRef, className: "absolute inset-0 h-full w-full" }),
1007
- /* @__PURE__ */ React3.createElement(
1008
- "canvas",
1009
- {
1010
- ref: ambRef,
1011
- className: "pointer-events-none absolute inset-0 h-full w-full",
1012
- style: { opacity: 1 }
1013
- }
1014
- ),
1015
- showHeadline && /* @__PURE__ */ React3.createElement("div", { className: "pointer-events-none absolute inset-0 flex select-none items-center justify-center" }, /* @__PURE__ */ React3.createElement(
1016
- "span",
1017
- {
1018
- className: "font-black uppercase leading-none",
1019
- style: {
1020
- fontSize: "clamp(80px, 20vw, 280px)",
1021
- color: "transparent",
1022
- WebkitTextStroke: `1px ${wire}66`
1023
- }
1024
- },
1025
- headline
1026
- )),
1027
- /* @__PURE__ */ React3.createElement(
1028
- "div",
1029
- {
1030
- className: "absolute",
1031
- style: { left: box.x, top: box.y, width: box.w, height: box.h }
1032
- },
1033
- /* @__PURE__ */ React3.createElement(
1034
- "img",
1035
- {
1036
- src: baseSrc,
1037
- alt: "",
1038
- draggable: false,
1039
- className: "absolute inset-0 h-full w-full select-none",
1040
- style: flipBase ? { transform: "scaleX(-1)" } : void 0
1041
- }
1042
- ),
1043
- /* @__PURE__ */ React3.createElement(
1044
- "canvas",
1045
- {
1046
- ref: revRef,
1047
- className: "absolute inset-0 h-full w-full",
1048
- style: debugAlign ? { opacity: 0.5 } : void 0
1049
- }
1050
- ),
1051
- showHud && /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
1052
- "svg",
1053
- {
1054
- viewBox: `${HEAD_VB.x} ${HEAD_VB.y} ${HEAD_VB.w} ${HEAD_VB.h}`,
1055
- preserveAspectRatio: stretchHud ? "none" : "xMidYMid meet",
1056
- className: "pointer-events-none absolute",
1057
- style: {
1058
- left: `${hb.x * 100}%`,
1059
- top: `${hb.y * 100}%`,
1060
- width: `${hb.w * 100}%`,
1061
- height: `${hb.h * 100}%`,
1062
- outline: debugHead ? "1px dashed #ff00ff" : "none"
1063
- },
1064
- fill: "none",
1065
- stroke: wire,
1066
- strokeWidth: "1",
1067
- strokeLinecap: "round",
1068
- strokeLinejoin: "round",
1069
- shapeRendering: "geometricPrecision"
1070
- },
1071
- /* @__PURE__ */ React3.createElement("defs", null, /* @__PURE__ */ React3.createElement("clipPath", { id: shellId }, /* @__PURE__ */ React3.createElement("path", { d: HELMET.shell })), /* @__PURE__ */ React3.createElement("clipPath", { id: wipeId }, /* @__PURE__ */ React3.createElement("rect", { ref: wipeRef, x: HEAD_VB.x, y: HEAD_VB.y, width: HEAD_VB.w, height: "0" }))),
1072
- /* @__PURE__ */ React3.createElement("g", { clipPath: `url(#${wipeId})` }, customSvgMarkup ? /* @__PURE__ */ React3.createElement("g", { dangerouslySetInnerHTML: { __html: customSvgMarkup } }) : /* @__PURE__ */ React3.createElement("g", null, /* @__PURE__ */ React3.createElement("path", { d: HELMET.shell, fill: "#ffffff", fillOpacity: "0.16", stroke: "none" }), /* @__PURE__ */ React3.createElement("path", { d: HELMET.visor, fill: wire, fillOpacity: "0.07", stroke: "none" }), /* @__PURE__ */ React3.createElement("g", { clipPath: `url(#${shellId})`, opacity: "0.5", strokeWidth: "0.6" }, HELMET.latitudes.map((d, i) => /* @__PURE__ */ React3.createElement("path", { key: "la" + i, d, ...VE })), HELMET.meridians.map((d, i) => /* @__PURE__ */ React3.createElement("path", { key: "me" + i, d, ...VE }))), /* @__PURE__ */ React3.createElement("path", { d: HELMET.shell, strokeWidth: "1.2", ...VE }), /* @__PURE__ */ React3.createElement("path", { d: HELMET.visor, strokeWidth: "1", ...VE }), HELMET.details.map((d, i) => /* @__PURE__ */ React3.createElement("path", { key: "de" + i, d, opacity: "0.6", ...VE })))),
1073
- /* @__PURE__ */ React3.createElement("g", { ref: scanRef, opacity: "0" }, /* @__PURE__ */ React3.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__ */ React3.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 }))
1074
- ), showTelemetry && /* @__PURE__ */ React3.createElement(
1075
- "div",
1076
- {
1077
- className: "pointer-events-none absolute left-3 top-3 font-mono text-[11px] leading-4",
1078
- style: { color: wire }
1079
- },
1080
- /* @__PURE__ */ React3.createElement("div", null, "SPD ", /* @__PURE__ */ React3.createElement("span", { ref: spdRef }, "0 KM/H")),
1081
- /* @__PURE__ */ React3.createElement("div", null, "LIVERY ", /* @__PURE__ */ React3.createElement("span", { ref: covRef }, "0%"))
1082
- ))
1083
- ),
1084
- showNextRace && /* @__PURE__ */ React3.createElement(
1085
- "div",
1086
- {
1087
- className: "pointer-events-none absolute left-6 top-6 text-xs",
1088
- style: { color: "#111111" }
1089
- },
1090
- /* @__PURE__ */ React3.createElement("div", { className: "opacity-60" }, "Next race"),
1091
- /* @__PURE__ */ React3.createElement("div", { className: "text-sm font-semibold" }, "Las Vegas GP")
1092
- )
1020
+ style: { background: bg },
1021
+ children: [
1022
+ /* @__PURE__ */ jsx3("canvas", { ref: topoRef, className: "absolute inset-0 h-full w-full" }),
1023
+ /* @__PURE__ */ jsx3(
1024
+ "canvas",
1025
+ {
1026
+ ref: ambRef,
1027
+ className: "pointer-events-none absolute inset-0 h-full w-full",
1028
+ style: { opacity: 1 }
1029
+ }
1030
+ ),
1031
+ showHeadline && /* @__PURE__ */ jsx3("div", { className: "pointer-events-none absolute inset-0 flex select-none items-center justify-center", children: /* @__PURE__ */ jsx3(
1032
+ "span",
1033
+ {
1034
+ className: "font-black uppercase leading-none",
1035
+ style: {
1036
+ fontSize: "clamp(80px, 20vw, 280px)",
1037
+ color: "transparent",
1038
+ WebkitTextStroke: `1px ${wire}66`
1039
+ },
1040
+ children: headline
1041
+ }
1042
+ ) }),
1043
+ /* @__PURE__ */ jsxs3(
1044
+ "div",
1045
+ {
1046
+ className: "absolute",
1047
+ style: { left: box.x, top: box.y, width: box.w, height: box.h },
1048
+ children: [
1049
+ /* @__PURE__ */ jsx3(
1050
+ "img",
1051
+ {
1052
+ src: baseSrc,
1053
+ alt: "",
1054
+ draggable: false,
1055
+ className: "absolute inset-0 h-full w-full select-none",
1056
+ style: flipBase ? { transform: "scaleX(-1)" } : void 0
1057
+ }
1058
+ ),
1059
+ /* @__PURE__ */ jsx3(
1060
+ "canvas",
1061
+ {
1062
+ ref: revRef,
1063
+ className: "absolute inset-0 h-full w-full",
1064
+ style: debugAlign ? { opacity: 0.5 } : void 0
1065
+ }
1066
+ ),
1067
+ showHud && /* @__PURE__ */ jsxs3(Fragment, { children: [
1068
+ /* @__PURE__ */ jsxs3(
1069
+ "svg",
1070
+ {
1071
+ viewBox: `${HEAD_VB.x} ${HEAD_VB.y} ${HEAD_VB.w} ${HEAD_VB.h}`,
1072
+ preserveAspectRatio: stretchHud ? "none" : "xMidYMid meet",
1073
+ className: "pointer-events-none absolute",
1074
+ style: {
1075
+ left: `${hb.x * 100}%`,
1076
+ top: `${hb.y * 100}%`,
1077
+ width: `${hb.w * 100}%`,
1078
+ height: `${hb.h * 100}%`,
1079
+ outline: debugHead ? "1px dashed #ff00ff" : "none"
1080
+ },
1081
+ fill: "none",
1082
+ stroke: wire,
1083
+ strokeWidth: "1",
1084
+ strokeLinecap: "round",
1085
+ strokeLinejoin: "round",
1086
+ shapeRendering: "geometricPrecision",
1087
+ children: [
1088
+ /* @__PURE__ */ jsxs3("defs", { children: [
1089
+ /* @__PURE__ */ jsx3("clipPath", { id: shellId, children: /* @__PURE__ */ jsx3("path", { d: HELMET.shell }) }),
1090
+ /* @__PURE__ */ jsx3("clipPath", { id: wipeId, children: /* @__PURE__ */ jsx3("rect", { ref: wipeRef, x: HEAD_VB.x, y: HEAD_VB.y, width: HEAD_VB.w, height: "0" }) })
1091
+ ] }),
1092
+ /* @__PURE__ */ jsx3("g", { clipPath: `url(#${wipeId})`, children: customSvgMarkup ? /* @__PURE__ */ jsx3("g", { dangerouslySetInnerHTML: { __html: customSvgMarkup } }) : /* @__PURE__ */ jsxs3("g", { children: [
1093
+ /* @__PURE__ */ jsx3("path", { d: HELMET.shell, fill: "#ffffff", fillOpacity: "0.16", stroke: "none" }),
1094
+ /* @__PURE__ */ jsx3("path", { d: HELMET.visor, fill: wire, fillOpacity: "0.07", stroke: "none" }),
1095
+ /* @__PURE__ */ jsxs3("g", { clipPath: `url(#${shellId})`, opacity: "0.5", strokeWidth: "0.6", children: [
1096
+ HELMET.latitudes.map((d, i) => /* @__PURE__ */ jsx3("path", { d, ...VE }, "la" + i)),
1097
+ HELMET.meridians.map((d, i) => /* @__PURE__ */ jsx3("path", { d, ...VE }, "me" + i))
1098
+ ] }),
1099
+ /* @__PURE__ */ jsx3("path", { d: HELMET.shell, strokeWidth: "1.2", ...VE }),
1100
+ /* @__PURE__ */ jsx3("path", { d: HELMET.visor, strokeWidth: "1", ...VE }),
1101
+ HELMET.details.map((d, i) => /* @__PURE__ */ jsx3("path", { d, opacity: "0.6", ...VE }, "de" + i))
1102
+ ] }) }),
1103
+ /* @__PURE__ */ jsxs3("g", { ref: scanRef, opacity: "0", children: [
1104
+ /* @__PURE__ */ jsx3("line", { x1: HEAD_VB.x, x2: HEAD_VB.x + HEAD_VB.w, y1: "0", y2: "0", stroke: wire, strokeWidth: "4", opacity: "0.18", ...VE }),
1105
+ /* @__PURE__ */ jsx3("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 })
1106
+ ] })
1107
+ ]
1108
+ }
1109
+ ),
1110
+ showTelemetry && /* @__PURE__ */ jsxs3(
1111
+ "div",
1112
+ {
1113
+ className: "pointer-events-none absolute left-3 top-3 font-mono text-[11px] leading-4",
1114
+ style: { color: wire },
1115
+ children: [
1116
+ /* @__PURE__ */ jsxs3("div", { children: [
1117
+ "SPD ",
1118
+ /* @__PURE__ */ jsx3("span", { ref: spdRef, children: "0 KM/H" })
1119
+ ] }),
1120
+ /* @__PURE__ */ jsxs3("div", { children: [
1121
+ "LIVERY ",
1122
+ /* @__PURE__ */ jsx3("span", { ref: covRef, children: "0%" })
1123
+ ] })
1124
+ ]
1125
+ }
1126
+ )
1127
+ ] })
1128
+ ]
1129
+ }
1130
+ ),
1131
+ showNextRace && /* @__PURE__ */ jsxs3(
1132
+ "div",
1133
+ {
1134
+ className: "pointer-events-none absolute left-6 top-6 text-xs",
1135
+ style: { color: "#111111" },
1136
+ children: [
1137
+ /* @__PURE__ */ jsx3("div", { className: "opacity-60", children: "Next race" }),
1138
+ /* @__PURE__ */ jsx3("div", { className: "text-sm font-semibold", children: "Las Vegas GP" })
1139
+ ]
1140
+ }
1141
+ )
1142
+ ]
1143
+ }
1093
1144
  );
1094
1145
  }
1095
1146
 
1096
1147
  // src/components/ui/infinite-tunnel-hero.jsx
1097
1148
  import React4, { useEffect as useEffect3, useRef as useRef3 } from "react";
1098
1149
  import gsap from "gsap";
1150
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
1099
1151
  var SHAPES = [
1100
1152
  [[523.9, 887.7], [391.2, 887.7], [520.1, 824], [624.3, 824]],
1101
1153
  [[137.3, 845.2], [0, 886.1], [0, 923.1], [24.2, 923.1], [250.9, 845.2]],
@@ -1304,183 +1356,233 @@ function InfiniteTunnelHero({
1304
1356
  return () => ctx.revert();
1305
1357
  }, [speed]);
1306
1358
  const shapeCount = SHAPES.length * SHAPE_COPIES;
1307
- return /* @__PURE__ */ React4.createElement(
1359
+ return /* @__PURE__ */ jsxs4(
1308
1360
  "div",
1309
1361
  {
1310
1362
  className: `relative h-screen w-full overflow-hidden ${className}`,
1311
- style: { background: backgroundColor }
1312
- },
1313
- /* @__PURE__ */ React4.createElement(
1314
- "svg",
1315
- {
1316
- ref: rootRef,
1317
- className: "pointer-events-none absolute inset-0 h-full w-full",
1318
- viewBox: `0 0 ${W} ${H}`,
1319
- preserveAspectRatio: "xMidYMid slice",
1320
- "aria-hidden": "true"
1321
- },
1322
- /* @__PURE__ */ React4.createElement("defs", null, /* @__PURE__ */ React4.createElement("linearGradient", { id: "slabBottom", x1: "0", y1: "1", x2: "0", y2: "0" }, /* @__PURE__ */ React4.createElement("stop", { offset: "0", stopColor: color, stopOpacity: "0.9" }), /* @__PURE__ */ React4.createElement("stop", { offset: "1", stopColor: color, stopOpacity: "0.35" })), /* @__PURE__ */ React4.createElement("linearGradient", { id: "slabTop", x1: "0", y1: "0", x2: "0", y2: "1" }, /* @__PURE__ */ React4.createElement("stop", { offset: "0", stopColor: color, stopOpacity: "0.9" }), /* @__PURE__ */ React4.createElement("stop", { offset: "1", stopColor: color, stopOpacity: "0.35" })), /* @__PURE__ */ React4.createElement(
1323
- "linearGradient",
1324
- {
1325
- id: "gridStroke",
1326
- gradientUnits: "userSpaceOnUse",
1327
- x1: "0",
1328
- y1: BOTTOM_EDGE,
1329
- x2: "0",
1330
- y2: "1100"
1331
- },
1332
- /* @__PURE__ */ React4.createElement("stop", { offset: "0", stopColor: color, stopOpacity: "1" }),
1333
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.08", stopColor: color, stopOpacity: "0.95" }),
1334
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.2", stopColor: color, stopOpacity: "0.8" }),
1335
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.45", stopColor: color, stopOpacity: "0.9" }),
1336
- /* @__PURE__ */ React4.createElement("stop", { offset: "1", stopColor: color, stopOpacity: "0.45" })
1337
- ), /* @__PURE__ */ React4.createElement(
1338
- "linearGradient",
1339
- {
1340
- id: "gridFade",
1341
- gradientUnits: "userSpaceOnUse",
1342
- x1: "-480",
1343
- y1: "0",
1344
- x2: "2400",
1345
- y2: "0"
1346
- },
1347
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.02", stopColor: "#292929" }),
1348
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.05", stopColor: "#565656" }),
1349
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.09", stopColor: "#7E7E7E" }),
1350
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.12", stopColor: "#A1A1A1" }),
1351
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.2", stopColor: "#D6D6D6" }),
1352
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.3", stopColor: "#F5F5F5" }),
1353
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.54", stopColor: "#FFFFFF" }),
1354
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.74", stopColor: "#E2E2E2" }),
1355
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.88", stopColor: "#8B8B8B" }),
1356
- /* @__PURE__ */ React4.createElement("stop", { offset: "0.96", stopColor: "#323232" })
1357
- ), /* @__PURE__ */ React4.createElement(
1358
- "mask",
1359
- {
1360
- id: "gridMask",
1361
- maskUnits: "userSpaceOnUse",
1362
- x: "-480",
1363
- y: "0",
1364
- width: "2880",
1365
- height: "1300"
1366
- },
1367
- /* @__PURE__ */ React4.createElement("rect", { x: "-480", y: "0", width: "2880", height: "1300", fill: "url(#gridFade)" })
1368
- ), /* @__PURE__ */ React4.createElement("radialGradient", { id: "glow", cx: "50%", cy: "50%", r: "50%" }, /* @__PURE__ */ React4.createElement("stop", { offset: "0.02", stopColor: color, stopOpacity: "1" }), /* @__PURE__ */ React4.createElement("stop", { offset: "0.07", stopColor: color, stopOpacity: "0.95" }), /* @__PURE__ */ React4.createElement("stop", { offset: "0.19", stopColor: color, stopOpacity: "0.8" }), /* @__PURE__ */ React4.createElement("stop", { offset: "0.45", stopColor: color, stopOpacity: "0.45" }), /* @__PURE__ */ React4.createElement("stop", { offset: "1", stopColor: color, stopOpacity: "0" }))),
1369
- /* @__PURE__ */ React4.createElement("g", { transform: `translate(0 ${GAP})` }, GLOW_ON && /* @__PURE__ */ React4.createElement("g", { className: "tunnel-glow" }, /* @__PURE__ */ React4.createElement(
1370
- "rect",
1371
- {
1372
- x: VX - 1400,
1373
- y: BOTTOM_EDGE + 60,
1374
- width: 2800,
1375
- height: 60,
1376
- fill: "url(#glow)"
1377
- }
1378
- ), /* @__PURE__ */ React4.createElement(
1379
- "rect",
1380
- {
1381
- x: VX - 1e3,
1382
- y: BOTTOM_EDGE - 110,
1383
- width: 2e3,
1384
- height: 220,
1385
- fill: "url(#glow)",
1386
- opacity: "0.22"
1387
- }
1388
- )), /* @__PURE__ */ React4.createElement("g", { stroke: "url(#gridStroke)", strokeWidth: "0.8", mask: "url(#gridMask)" }, RADIAL_X.map((x) => /* @__PURE__ */ React4.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__ */ React4.createElement(
1389
- "line",
1390
- {
1391
- key: `hb-${i}`,
1392
- ref: (el) => {
1393
- hLines.current[i] = el;
1394
- },
1395
- x1: -480,
1396
- x2: 2400,
1397
- y1: GRID_Y[0],
1398
- y2: GRID_Y[0],
1399
- opacity: "0"
1400
- }
1401
- ))), /* @__PURE__ */ React4.createElement("g", { style: { mixBlendMode: "screen" } }, Array.from({ length: shapeCount }).map((_, k) => /* @__PURE__ */ React4.createElement(
1402
- "polygon",
1403
- {
1404
- key: `sb-${k}`,
1405
- ref: (el) => {
1406
- shapesBottom.current[k] = el;
1407
- },
1408
- points: toPoints(SHAPES[Math.floor(k / SHAPE_COPIES)], false),
1409
- fill: "url(#slabBottom)",
1410
- stroke: color,
1411
- strokeWidth: "1.5",
1412
- vectorEffect: "non-scaling-stroke",
1413
- opacity: "0"
1414
- }
1415
- )), PARTICLES.map((d, i) => /* @__PURE__ */ React4.createElement(
1416
- "circle",
1417
- {
1418
- key: `pb-${i}`,
1419
- ref: (el) => {
1420
- dotsBottom.current[i] = el;
1421
- },
1422
- cx: d.x,
1423
- cy: VY + d.dy,
1424
- r: d.r,
1425
- fill: d.color === "#FFFFFF" ? "#FFFFFF" : color,
1426
- opacity: "0"
1427
- }
1428
- )))),
1429
- /* @__PURE__ */ React4.createElement("g", { transform: `translate(0 ${-GAP})` }, GLOW_ON && /* @__PURE__ */ React4.createElement("g", { className: "tunnel-glow" }, /* @__PURE__ */ React4.createElement(
1430
- "rect",
1431
- {
1432
- x: VX - 1400,
1433
- y: TOP_EDGE - 130,
1434
- width: 2800,
1435
- height: 60,
1436
- fill: "url(#glow)"
1437
- }
1438
- ), /* @__PURE__ */ React4.createElement(
1439
- "rect",
1440
- {
1441
- x: VX - 1e3,
1442
- y: TOP_EDGE - 110,
1443
- width: 2e3,
1444
- height: 220,
1445
- fill: "url(#glow)",
1446
- opacity: "0.22"
1447
- }
1448
- )), /* @__PURE__ */ React4.createElement("g", { style: { mixBlendMode: "screen" } }, Array.from({ length: shapeCount }).map((_, k) => /* @__PURE__ */ React4.createElement(
1449
- "polygon",
1450
- {
1451
- key: `st-${k}`,
1452
- ref: (el) => {
1453
- shapesTop.current[k] = el;
1454
- },
1455
- points: toPoints(SHAPES[Math.floor(k / SHAPE_COPIES)], true),
1456
- fill: "url(#slabTop)",
1457
- stroke: color,
1458
- strokeWidth: "1.5",
1459
- vectorEffect: "non-scaling-stroke",
1460
- opacity: "0"
1461
- }
1462
- )), PARTICLES.map((d, i) => /* @__PURE__ */ React4.createElement(
1463
- "circle",
1464
- {
1465
- key: `pt-${i}`,
1466
- ref: (el) => {
1467
- dotsTop.current[i] = el;
1468
- },
1469
- cx: W - d.x,
1470
- cy: VY - d.dy,
1471
- r: d.r,
1472
- fill: d.color === "#FFFFFF" ? "#FFFFFF" : color,
1473
- opacity: "0"
1474
- }
1475
- ))))
1476
- ),
1477
- /* @__PURE__ */ React4.createElement("div", { className: "relative z-10 flex h-full w-full items-center justify-center" }, children)
1363
+ style: { background: backgroundColor },
1364
+ children: [
1365
+ /* @__PURE__ */ jsxs4(
1366
+ "svg",
1367
+ {
1368
+ ref: rootRef,
1369
+ className: "pointer-events-none absolute inset-0 h-full w-full",
1370
+ viewBox: `0 0 ${W} ${H}`,
1371
+ preserveAspectRatio: "xMidYMid slice",
1372
+ "aria-hidden": "true",
1373
+ children: [
1374
+ /* @__PURE__ */ jsxs4("defs", { children: [
1375
+ /* @__PURE__ */ jsxs4("linearGradient", { id: "slabBottom", x1: "0", y1: "1", x2: "0", y2: "0", children: [
1376
+ /* @__PURE__ */ jsx4("stop", { offset: "0", stopColor: color, stopOpacity: "0.9" }),
1377
+ /* @__PURE__ */ jsx4("stop", { offset: "1", stopColor: color, stopOpacity: "0.35" })
1378
+ ] }),
1379
+ /* @__PURE__ */ jsxs4("linearGradient", { id: "slabTop", x1: "0", y1: "0", x2: "0", y2: "1", children: [
1380
+ /* @__PURE__ */ jsx4("stop", { offset: "0", stopColor: color, stopOpacity: "0.9" }),
1381
+ /* @__PURE__ */ jsx4("stop", { offset: "1", stopColor: color, stopOpacity: "0.35" })
1382
+ ] }),
1383
+ /* @__PURE__ */ jsxs4(
1384
+ "linearGradient",
1385
+ {
1386
+ id: "gridStroke",
1387
+ gradientUnits: "userSpaceOnUse",
1388
+ x1: "0",
1389
+ y1: BOTTOM_EDGE,
1390
+ x2: "0",
1391
+ y2: "1100",
1392
+ children: [
1393
+ /* @__PURE__ */ jsx4("stop", { offset: "0", stopColor: color, stopOpacity: "1" }),
1394
+ /* @__PURE__ */ jsx4("stop", { offset: "0.08", stopColor: color, stopOpacity: "0.95" }),
1395
+ /* @__PURE__ */ jsx4("stop", { offset: "0.2", stopColor: color, stopOpacity: "0.8" }),
1396
+ /* @__PURE__ */ jsx4("stop", { offset: "0.45", stopColor: color, stopOpacity: "0.9" }),
1397
+ /* @__PURE__ */ jsx4("stop", { offset: "1", stopColor: color, stopOpacity: "0.45" })
1398
+ ]
1399
+ }
1400
+ ),
1401
+ /* @__PURE__ */ jsxs4(
1402
+ "linearGradient",
1403
+ {
1404
+ id: "gridFade",
1405
+ gradientUnits: "userSpaceOnUse",
1406
+ x1: "-480",
1407
+ y1: "0",
1408
+ x2: "2400",
1409
+ y2: "0",
1410
+ children: [
1411
+ /* @__PURE__ */ jsx4("stop", { offset: "0.02", stopColor: "#292929" }),
1412
+ /* @__PURE__ */ jsx4("stop", { offset: "0.05", stopColor: "#565656" }),
1413
+ /* @__PURE__ */ jsx4("stop", { offset: "0.09", stopColor: "#7E7E7E" }),
1414
+ /* @__PURE__ */ jsx4("stop", { offset: "0.12", stopColor: "#A1A1A1" }),
1415
+ /* @__PURE__ */ jsx4("stop", { offset: "0.2", stopColor: "#D6D6D6" }),
1416
+ /* @__PURE__ */ jsx4("stop", { offset: "0.3", stopColor: "#F5F5F5" }),
1417
+ /* @__PURE__ */ jsx4("stop", { offset: "0.54", stopColor: "#FFFFFF" }),
1418
+ /* @__PURE__ */ jsx4("stop", { offset: "0.74", stopColor: "#E2E2E2" }),
1419
+ /* @__PURE__ */ jsx4("stop", { offset: "0.88", stopColor: "#8B8B8B" }),
1420
+ /* @__PURE__ */ jsx4("stop", { offset: "0.96", stopColor: "#323232" })
1421
+ ]
1422
+ }
1423
+ ),
1424
+ /* @__PURE__ */ jsx4(
1425
+ "mask",
1426
+ {
1427
+ id: "gridMask",
1428
+ maskUnits: "userSpaceOnUse",
1429
+ x: "-480",
1430
+ y: "0",
1431
+ width: "2880",
1432
+ height: "1300",
1433
+ children: /* @__PURE__ */ jsx4("rect", { x: "-480", y: "0", width: "2880", height: "1300", fill: "url(#gridFade)" })
1434
+ }
1435
+ ),
1436
+ /* @__PURE__ */ jsxs4("radialGradient", { id: "glow", cx: "50%", cy: "50%", r: "50%", children: [
1437
+ /* @__PURE__ */ jsx4("stop", { offset: "0.02", stopColor: color, stopOpacity: "1" }),
1438
+ /* @__PURE__ */ jsx4("stop", { offset: "0.07", stopColor: color, stopOpacity: "0.95" }),
1439
+ /* @__PURE__ */ jsx4("stop", { offset: "0.19", stopColor: color, stopOpacity: "0.8" }),
1440
+ /* @__PURE__ */ jsx4("stop", { offset: "0.45", stopColor: color, stopOpacity: "0.45" }),
1441
+ /* @__PURE__ */ jsx4("stop", { offset: "1", stopColor: color, stopOpacity: "0" })
1442
+ ] })
1443
+ ] }),
1444
+ /* @__PURE__ */ jsxs4("g", { transform: `translate(0 ${GAP})`, children: [
1445
+ GLOW_ON && /* @__PURE__ */ jsxs4("g", { className: "tunnel-glow", children: [
1446
+ /* @__PURE__ */ jsx4(
1447
+ "rect",
1448
+ {
1449
+ x: VX - 1400,
1450
+ y: BOTTOM_EDGE + 60,
1451
+ width: 2800,
1452
+ height: 60,
1453
+ fill: "url(#glow)"
1454
+ }
1455
+ ),
1456
+ /* @__PURE__ */ jsx4(
1457
+ "rect",
1458
+ {
1459
+ x: VX - 1e3,
1460
+ y: BOTTOM_EDGE - 110,
1461
+ width: 2e3,
1462
+ height: 220,
1463
+ fill: "url(#glow)",
1464
+ opacity: "0.22"
1465
+ }
1466
+ )
1467
+ ] }),
1468
+ /* @__PURE__ */ jsxs4("g", { stroke: "url(#gridStroke)", strokeWidth: "0.8", mask: "url(#gridMask)", children: [
1469
+ RADIAL_X.map((x) => /* @__PURE__ */ jsx4("line", { x1: x, y1: RADIAL_Y0, x2: radialEnd(x), y2: H }, `rb-${x}`)),
1470
+ Array.from({ length: GRID_Y.length + 1 }).map((_, i) => /* @__PURE__ */ jsx4(
1471
+ "line",
1472
+ {
1473
+ ref: (el) => {
1474
+ hLines.current[i] = el;
1475
+ },
1476
+ x1: -480,
1477
+ x2: 2400,
1478
+ y1: GRID_Y[0],
1479
+ y2: GRID_Y[0],
1480
+ opacity: "0"
1481
+ },
1482
+ `hb-${i}`
1483
+ ))
1484
+ ] }),
1485
+ /* @__PURE__ */ jsxs4("g", { style: { mixBlendMode: "screen" }, children: [
1486
+ Array.from({ length: shapeCount }).map((_, k) => /* @__PURE__ */ jsx4(
1487
+ "polygon",
1488
+ {
1489
+ ref: (el) => {
1490
+ shapesBottom.current[k] = el;
1491
+ },
1492
+ points: toPoints(SHAPES[Math.floor(k / SHAPE_COPIES)], false),
1493
+ fill: "url(#slabBottom)",
1494
+ stroke: color,
1495
+ strokeWidth: "1.5",
1496
+ vectorEffect: "non-scaling-stroke",
1497
+ opacity: "0"
1498
+ },
1499
+ `sb-${k}`
1500
+ )),
1501
+ PARTICLES.map((d, i) => /* @__PURE__ */ jsx4(
1502
+ "circle",
1503
+ {
1504
+ ref: (el) => {
1505
+ dotsBottom.current[i] = el;
1506
+ },
1507
+ cx: d.x,
1508
+ cy: VY + d.dy,
1509
+ r: d.r,
1510
+ fill: d.color === "#FFFFFF" ? "#FFFFFF" : color,
1511
+ opacity: "0"
1512
+ },
1513
+ `pb-${i}`
1514
+ ))
1515
+ ] })
1516
+ ] }),
1517
+ /* @__PURE__ */ jsxs4("g", { transform: `translate(0 ${-GAP})`, children: [
1518
+ GLOW_ON && /* @__PURE__ */ jsxs4("g", { className: "tunnel-glow", children: [
1519
+ /* @__PURE__ */ jsx4(
1520
+ "rect",
1521
+ {
1522
+ x: VX - 1400,
1523
+ y: TOP_EDGE - 130,
1524
+ width: 2800,
1525
+ height: 60,
1526
+ fill: "url(#glow)"
1527
+ }
1528
+ ),
1529
+ /* @__PURE__ */ jsx4(
1530
+ "rect",
1531
+ {
1532
+ x: VX - 1e3,
1533
+ y: TOP_EDGE - 110,
1534
+ width: 2e3,
1535
+ height: 220,
1536
+ fill: "url(#glow)",
1537
+ opacity: "0.22"
1538
+ }
1539
+ )
1540
+ ] }),
1541
+ /* @__PURE__ */ jsxs4("g", { style: { mixBlendMode: "screen" }, children: [
1542
+ Array.from({ length: shapeCount }).map((_, k) => /* @__PURE__ */ jsx4(
1543
+ "polygon",
1544
+ {
1545
+ ref: (el) => {
1546
+ shapesTop.current[k] = el;
1547
+ },
1548
+ points: toPoints(SHAPES[Math.floor(k / SHAPE_COPIES)], true),
1549
+ fill: "url(#slabTop)",
1550
+ stroke: color,
1551
+ strokeWidth: "1.5",
1552
+ vectorEffect: "non-scaling-stroke",
1553
+ opacity: "0"
1554
+ },
1555
+ `st-${k}`
1556
+ )),
1557
+ PARTICLES.map((d, i) => /* @__PURE__ */ jsx4(
1558
+ "circle",
1559
+ {
1560
+ ref: (el) => {
1561
+ dotsTop.current[i] = el;
1562
+ },
1563
+ cx: W - d.x,
1564
+ cy: VY - d.dy,
1565
+ r: d.r,
1566
+ fill: d.color === "#FFFFFF" ? "#FFFFFF" : color,
1567
+ opacity: "0"
1568
+ },
1569
+ `pt-${i}`
1570
+ ))
1571
+ ] })
1572
+ ] })
1573
+ ]
1574
+ }
1575
+ ),
1576
+ /* @__PURE__ */ jsx4("div", { className: "relative z-10 flex h-full w-full items-center justify-center", children })
1577
+ ]
1578
+ }
1478
1579
  );
1479
1580
  }
1480
1581
 
1481
1582
  // src/components/ui/scrollsmoothprovider.jsx
1482
1583
  import React5, { useEffect as useEffect4, useRef as useRef4, useState as useState4 } from "react";
1483
1584
  import Lenis from "lenis";
1585
+ import { Fragment as Fragment2, jsx as jsx5 } from "react/jsx-runtime";
1484
1586
  function SmoothScrollProvider({ children, pathname: propPathname }) {
1485
1587
  const lenisRef = useRef4(null);
1486
1588
  const [currentPath, setCurrentPath] = useState4(
@@ -1533,26 +1635,27 @@ function SmoothScrollProvider({ children, pathname: propPathname }) {
1533
1635
  }, 50);
1534
1636
  return () => clearTimeout(timeout);
1535
1637
  }, [activePath]);
1536
- return /* @__PURE__ */ React5.createElement(React5.Fragment, null, children);
1638
+ return /* @__PURE__ */ jsx5(Fragment2, { children });
1537
1639
  }
1538
1640
 
1539
1641
  // src/components/ui/liquidGlassButton.jsx
1540
1642
  import React6 from "react";
1643
+ import { jsx as jsx6 } from "react/jsx-runtime";
1541
1644
  function LiquidGlassButton({
1542
1645
  children = "Liquid Glass Button",
1543
1646
  className = "",
1544
1647
  onClick,
1545
1648
  ...props
1546
1649
  }) {
1547
- return /* @__PURE__ */ React6.createElement(
1650
+ return /* @__PURE__ */ jsx6(
1548
1651
  "button",
1549
1652
  {
1550
1653
  type: "button",
1551
1654
  onClick,
1552
1655
  className: `relative inline-flex items-center justify-center px-6 py-2.5 rounded-xl font-medium transition-all duration-300 ${className}`,
1553
- ...props
1554
- },
1555
- children
1656
+ ...props,
1657
+ children
1658
+ }
1556
1659
  );
1557
1660
  }
1558
1661
  var liquidGlassButton = LiquidGlassButton;
@@ -1561,6 +1664,7 @@ var liquidGlassButton = LiquidGlassButton;
1561
1664
  import React7, { useId as useId2, useState as useState5, useSyncExternalStore } from "react";
1562
1665
  import { AnimatePresence, motion } from "motion/react";
1563
1666
  import { Check, Terminal, Package } from "lucide-react";
1667
+ import { Fragment as Fragment3, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
1564
1668
  var managers = ["npm", "pnpm", "yarn", "bun"];
1565
1669
  var getCommand = (manager, packages = "adaptive-ui", component, mode = "cli", dev = false) => {
1566
1670
  if (mode === "cli" && component) {
@@ -1626,98 +1730,123 @@ function InstallTabs({
1626
1730
  } catch {
1627
1731
  }
1628
1732
  }
1629
- return /* @__PURE__ */ React7.createElement(
1733
+ return /* @__PURE__ */ jsxs5(
1630
1734
  "div",
1631
1735
  {
1632
- className: `w-full overflow-hidden rounded-xl border border-white/10 bg-zinc-950/90 shadow-2xl backdrop-blur-md ${className}`
1633
- },
1634
- /* @__PURE__ */ React7.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__ */ React7.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React7.createElement("div", { role: "tablist", "aria-label": "Package manager", className: "flex items-center gap-1" }, managers.map((option, index) => {
1635
- const isSelected = manager === option;
1636
- return /* @__PURE__ */ React7.createElement(
1637
- "button",
1638
- {
1639
- key: option,
1640
- id: `${id}-${option}`,
1641
- role: "tab",
1642
- "aria-selected": isSelected,
1643
- "aria-controls": `${id}-panel`,
1644
- tabIndex: isSelected ? 0 : -1,
1645
- onClick: () => choose(option),
1646
- onKeyDown: (event) => onKey(event, index),
1647
- 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"}`
1648
- },
1649
- isSelected && /* @__PURE__ */ React7.createElement(
1650
- motion.span,
1651
- {
1652
- layoutId: `${id}-pill`,
1653
- "aria-hidden": true,
1654
- className: "absolute inset-0 rounded-lg border border-white/15 bg-white/10 shadow-sm",
1655
- transition: {
1656
- type: "spring",
1657
- stiffness: 400,
1658
- damping: 30
1736
+ className: `w-full overflow-hidden rounded-xl border border-white/10 bg-zinc-950/90 shadow-2xl backdrop-blur-md ${className}`,
1737
+ children: [
1738
+ /* @__PURE__ */ jsxs5("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: [
1739
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-2", children: [
1740
+ /* @__PURE__ */ jsx7("div", { role: "tablist", "aria-label": "Package manager", className: "flex items-center gap-1", children: managers.map((option, index) => {
1741
+ const isSelected = manager === option;
1742
+ return /* @__PURE__ */ jsxs5(
1743
+ "button",
1744
+ {
1745
+ id: `${id}-${option}`,
1746
+ role: "tab",
1747
+ "aria-selected": isSelected,
1748
+ "aria-controls": `${id}-panel`,
1749
+ tabIndex: isSelected ? 0 : -1,
1750
+ onClick: () => choose(option),
1751
+ onKeyDown: (event) => onKey(event, index),
1752
+ 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"}`,
1753
+ children: [
1754
+ isSelected && /* @__PURE__ */ jsx7(
1755
+ motion.span,
1756
+ {
1757
+ layoutId: `${id}-pill`,
1758
+ "aria-hidden": true,
1759
+ className: "absolute inset-0 rounded-lg border border-white/15 bg-white/10 shadow-sm",
1760
+ transition: {
1761
+ type: "spring",
1762
+ stiffness: 400,
1763
+ damping: 30
1764
+ }
1765
+ }
1766
+ ),
1767
+ /* @__PURE__ */ jsx7("span", { className: "relative z-10", children: option })
1768
+ ]
1769
+ },
1770
+ option
1771
+ );
1772
+ }) }),
1773
+ component && /* @__PURE__ */ jsxs5("div", { className: "ml-2 hidden items-center rounded-lg border border-white/10 bg-black/40 p-0.5 sm:flex", children: [
1774
+ /* @__PURE__ */ jsxs5(
1775
+ "button",
1776
+ {
1777
+ type: "button",
1778
+ onClick: () => setMode("cli"),
1779
+ 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"}`,
1780
+ children: [
1781
+ /* @__PURE__ */ jsx7(Terminal, { className: "size-3" }),
1782
+ "CLI"
1783
+ ]
1784
+ }
1785
+ ),
1786
+ /* @__PURE__ */ jsxs5(
1787
+ "button",
1788
+ {
1789
+ type: "button",
1790
+ onClick: () => setMode("package"),
1791
+ 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"}`,
1792
+ children: [
1793
+ /* @__PURE__ */ jsx7(Package, { className: "size-3" }),
1794
+ "NPM"
1795
+ ]
1796
+ }
1797
+ )
1798
+ ] })
1799
+ ] }),
1800
+ /* @__PURE__ */ jsx7(
1801
+ "button",
1802
+ {
1803
+ type: "button",
1804
+ onClick: copyCommand,
1805
+ 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",
1806
+ "aria-label": "Copy install command",
1807
+ children: copied ? /* @__PURE__ */ jsxs5(Fragment3, { children: [
1808
+ /* @__PURE__ */ jsx7(Check, { className: "size-3.5 text-emerald-400" }),
1809
+ /* @__PURE__ */ jsx7("span", { className: "text-emerald-400 font-medium", children: "Copied!" })
1810
+ ] }) : /* @__PURE__ */ jsx7(Fragment3, { children: /* @__PURE__ */ jsx7("span", { className: "text-zinc-400", children: "Copy" }) })
1659
1811
  }
1812
+ )
1813
+ ] }),
1814
+ /* @__PURE__ */ jsxs5(
1815
+ "div",
1816
+ {
1817
+ id: `${id}-panel`,
1818
+ role: "tabpanel",
1819
+ "aria-labelledby": `${id}-${manager}`,
1820
+ className: "relative overflow-hidden px-4 py-3.5 font-mono text-xs sm:text-sm bg-black/40",
1821
+ children: [
1822
+ /* @__PURE__ */ jsx7(AnimatePresence, { mode: "wait", initial: false, children: /* @__PURE__ */ jsxs5(
1823
+ motion.div,
1824
+ {
1825
+ initial: { opacity: 0, x: -28 },
1826
+ animate: { opacity: 1, x: 0 },
1827
+ exit: { opacity: 0, x: 28 },
1828
+ transition: { duration: 0.22, ease: "easeOut" },
1829
+ className: "flex items-center gap-2.5 whitespace-nowrap text-zinc-200",
1830
+ children: [
1831
+ /* @__PURE__ */ jsx7("span", { className: "select-none font-bold text-emerald-400", children: "$" }),
1832
+ /* @__PURE__ */ jsx7("span", { className: "tracking-wide", children: currentText })
1833
+ ]
1834
+ },
1835
+ `${manager}-${mode}`
1836
+ ) }),
1837
+ /* @__PURE__ */ jsx7("span", { role: "status", className: "sr-only", children: copied ? "Copied" : "" })
1838
+ ]
1660
1839
  }
1661
- ),
1662
- /* @__PURE__ */ React7.createElement("span", { className: "relative z-10" }, option)
1663
- );
1664
- })), component && /* @__PURE__ */ React7.createElement("div", { className: "ml-2 hidden items-center rounded-lg border border-white/10 bg-black/40 p-0.5 sm:flex" }, /* @__PURE__ */ React7.createElement(
1665
- "button",
1666
- {
1667
- type: "button",
1668
- onClick: () => setMode("cli"),
1669
- 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"}`
1670
- },
1671
- /* @__PURE__ */ React7.createElement(Terminal, { className: "size-3" }),
1672
- "CLI"
1673
- ), /* @__PURE__ */ React7.createElement(
1674
- "button",
1675
- {
1676
- type: "button",
1677
- onClick: () => setMode("package"),
1678
- 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"}`
1679
- },
1680
- /* @__PURE__ */ React7.createElement(Package, { className: "size-3" }),
1681
- "NPM"
1682
- ))), /* @__PURE__ */ React7.createElement(
1683
- "button",
1684
- {
1685
- type: "button",
1686
- onClick: copyCommand,
1687
- 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",
1688
- "aria-label": "Copy install command"
1689
- },
1690
- copied ? /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement(Check, { className: "size-3.5 text-emerald-400" }), /* @__PURE__ */ React7.createElement("span", { className: "text-emerald-400 font-medium" }, "Copied!")) : /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement("span", { className: "text-zinc-400" }, "Copy"))
1691
- )),
1692
- /* @__PURE__ */ React7.createElement(
1693
- "div",
1694
- {
1695
- id: `${id}-panel`,
1696
- role: "tabpanel",
1697
- "aria-labelledby": `${id}-${manager}`,
1698
- className: "relative overflow-hidden px-4 py-3.5 font-mono text-xs sm:text-sm bg-black/40"
1699
- },
1700
- /* @__PURE__ */ React7.createElement(AnimatePresence, { mode: "wait", initial: false }, /* @__PURE__ */ React7.createElement(
1701
- motion.div,
1702
- {
1703
- key: `${manager}-${mode}`,
1704
- initial: { opacity: 0, x: -28 },
1705
- animate: { opacity: 1, x: 0 },
1706
- exit: { opacity: 0, x: 28 },
1707
- transition: { duration: 0.22, ease: "easeOut" },
1708
- className: "flex items-center gap-2.5 whitespace-nowrap text-zinc-200"
1709
- },
1710
- /* @__PURE__ */ React7.createElement("span", { className: "select-none font-bold text-emerald-400" }, "$"),
1711
- /* @__PURE__ */ React7.createElement("span", { className: "tracking-wide" }, currentText)
1712
- )),
1713
- /* @__PURE__ */ React7.createElement("span", { role: "status", className: "sr-only" }, copied ? "Copied" : "")
1714
- )
1840
+ )
1841
+ ]
1842
+ }
1715
1843
  );
1716
1844
  }
1717
1845
 
1718
1846
  // src/components/ui/props-table.jsx
1719
1847
  import React8, { useState as useState6 } from "react";
1720
1848
  import { Search, Copy, Check as Check2, SlidersHorizontal } from "lucide-react";
1849
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
1721
1850
  function PropsTable({
1722
1851
  data = [],
1723
1852
  title = "Props Reference",
@@ -1752,51 +1881,84 @@ function PropsTable({
1752
1881
  console.warn("Clipboard copy failed:", e);
1753
1882
  }
1754
1883
  };
1755
- return /* @__PURE__ */ React8.createElement("div", { className: `space-y-4 w-full ${className}` }, /* @__PURE__ */ React8.createElement("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-3" }, /* @__PURE__ */ React8.createElement("div", null, /* @__PURE__ */ React8.createElement("h3", { className: "text-xl md:text-2xl font-bold font-sans text-white flex items-center gap-2" }, /* @__PURE__ */ React8.createElement(SlidersHorizontal, { className: "w-5 h-5 text-lime-400" }), /* @__PURE__ */ React8.createElement("span", null, title)), description && /* @__PURE__ */ React8.createElement("p", { className: "mt-1 text-xs md:text-sm text-gray-400 font-sans" }, description)), /* @__PURE__ */ React8.createElement("div", { className: "relative w-full sm:w-64" }, /* @__PURE__ */ React8.createElement(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__ */ React8.createElement(
1756
- "input",
1757
- {
1758
- type: "text",
1759
- value: searchQuery,
1760
- onChange: (e) => setSearchQuery(e.target.value),
1761
- placeholder: "Search props, types...",
1762
- 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"
1763
- }
1764
- ), searchQuery && /* @__PURE__ */ React8.createElement(
1765
- "button",
1766
- {
1767
- onClick: () => setSearchQuery(""),
1768
- className: "absolute right-2.5 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-white text-xs font-mono"
1769
- },
1770
- "\xD7"
1771
- ))), /* @__PURE__ */ React8.createElement("div", { className: "rounded-2xl border border-white/10 overflow-hidden bg-zinc-950 shadow-xl" }, /* @__PURE__ */ React8.createElement("div", { className: "overflow-x-auto" }, /* @__PURE__ */ React8.createElement("table", { className: "w-full text-left text-xs font-sans" }, /* @__PURE__ */ React8.createElement("thead", { className: "bg-zinc-900/70 border-b border-white/10 font-mono text-zinc-400" }, /* @__PURE__ */ React8.createElement("tr", null, /* @__PURE__ */ React8.createElement("th", { className: "py-3 px-4 font-semibold w-1/4" }, "Prop"), /* @__PURE__ */ React8.createElement("th", { className: "py-3 px-4 font-semibold w-1/5" }, "Type"), /* @__PURE__ */ React8.createElement("th", { className: "py-3 px-4 font-semibold w-1/6" }, "Default"), /* @__PURE__ */ React8.createElement("th", { className: "py-3 px-4 font-semibold" }, "Description"))), /* @__PURE__ */ React8.createElement("tbody", { className: "divide-y divide-white/5 text-zinc-300" }, filteredData.length > 0 ? filteredData.map((item, idx) => /* @__PURE__ */ React8.createElement(
1772
- "tr",
1773
- {
1774
- key: item.prop || idx,
1775
- className: "hover:bg-white/[0.02] transition-colors group"
1776
- },
1777
- /* @__PURE__ */ React8.createElement("td", { className: "py-3.5 px-4 font-mono" }, /* @__PURE__ */ React8.createElement("div", { className: "flex items-center gap-1.5" }, /* @__PURE__ */ React8.createElement(
1778
- "button",
1779
- {
1780
- onClick: () => copyPropName(item.prop),
1781
- className: "font-semibold text-lime-400 hover:text-lime-300 transition flex items-center gap-1 cursor-pointer",
1782
- title: "Click to copy prop name"
1783
- },
1784
- /* @__PURE__ */ React8.createElement("span", null, item.prop),
1785
- copiedProp === item.prop ? /* @__PURE__ */ React8.createElement(Check2, { className: "w-3 h-3 text-emerald-400 shrink-0" }) : /* @__PURE__ */ React8.createElement(Copy, { className: "w-3 h-3 text-zinc-600 opacity-0 group-hover:opacity-100 transition shrink-0" })
1786
- ), item.required && /* @__PURE__ */ React8.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"))),
1787
- /* @__PURE__ */ React8.createElement("td", { className: "py-3.5 px-4 font-mono text-[11px]" }, /* @__PURE__ */ React8.createElement("span", { className: "inline-block px-2 py-0.5 rounded-md bg-zinc-900 text-cyan-300 border border-white/5" }, item.type)),
1788
- /* @__PURE__ */ React8.createElement("td", { className: "py-3.5 px-4 font-mono text-[11px] text-zinc-400" }, item.default ? /* @__PURE__ */ React8.createElement("code", { className: "bg-zinc-900 px-1.5 py-0.5 rounded text-amber-300/90 border border-white/5" }, item.default) : /* @__PURE__ */ React8.createElement("span", { className: "text-zinc-600" }, "\u2014")),
1789
- /* @__PURE__ */ React8.createElement("td", { className: "py-3.5 px-4 text-gray-300 leading-relaxed font-sans" }, item.description)
1790
- )) : /* @__PURE__ */ React8.createElement("tr", null, /* @__PURE__ */ React8.createElement(
1791
- "td",
1792
- {
1793
- colSpan: 4,
1794
- className: "py-8 text-center text-zinc-500 font-mono text-xs"
1795
- },
1796
- 'No matching props found for "',
1797
- searchQuery,
1798
- '".'
1799
- )))))));
1884
+ return /* @__PURE__ */ jsxs6("div", { className: `space-y-4 w-full ${className}`, children: [
1885
+ /* @__PURE__ */ jsxs6("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-3", children: [
1886
+ /* @__PURE__ */ jsxs6("div", { children: [
1887
+ /* @__PURE__ */ jsxs6("h3", { className: "text-xl md:text-2xl font-bold font-sans text-white flex items-center gap-2", children: [
1888
+ /* @__PURE__ */ jsx8(SlidersHorizontal, { className: "w-5 h-5 text-lime-400" }),
1889
+ /* @__PURE__ */ jsx8("span", { children: title })
1890
+ ] }),
1891
+ description && /* @__PURE__ */ jsx8("p", { className: "mt-1 text-xs md:text-sm text-gray-400 font-sans", children: description })
1892
+ ] }),
1893
+ /* @__PURE__ */ jsxs6("div", { className: "relative w-full sm:w-64", children: [
1894
+ /* @__PURE__ */ jsx8(Search, { className: "w-3.5 h-3.5 absolute left-3 top-1/2 -translate-y-1/2 text-zinc-500 pointer-events-none" }),
1895
+ /* @__PURE__ */ jsx8(
1896
+ "input",
1897
+ {
1898
+ type: "text",
1899
+ value: searchQuery,
1900
+ onChange: (e) => setSearchQuery(e.target.value),
1901
+ placeholder: "Search props, types...",
1902
+ 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"
1903
+ }
1904
+ ),
1905
+ searchQuery && /* @__PURE__ */ jsx8(
1906
+ "button",
1907
+ {
1908
+ onClick: () => setSearchQuery(""),
1909
+ className: "absolute right-2.5 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-white text-xs font-mono",
1910
+ children: "\xD7"
1911
+ }
1912
+ )
1913
+ ] })
1914
+ ] }),
1915
+ /* @__PURE__ */ jsx8("div", { className: "rounded-2xl border border-white/10 overflow-hidden bg-zinc-950 shadow-xl", children: /* @__PURE__ */ jsx8("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs6("table", { className: "w-full text-left text-xs font-sans", children: [
1916
+ /* @__PURE__ */ jsx8("thead", { className: "bg-zinc-900/70 border-b border-white/10 font-mono text-zinc-400", children: /* @__PURE__ */ jsxs6("tr", { children: [
1917
+ /* @__PURE__ */ jsx8("th", { className: "py-3 px-4 font-semibold w-1/4", children: "Prop" }),
1918
+ /* @__PURE__ */ jsx8("th", { className: "py-3 px-4 font-semibold w-1/5", children: "Type" }),
1919
+ /* @__PURE__ */ jsx8("th", { className: "py-3 px-4 font-semibold w-1/6", children: "Default" }),
1920
+ /* @__PURE__ */ jsx8("th", { className: "py-3 px-4 font-semibold", children: "Description" })
1921
+ ] }) }),
1922
+ /* @__PURE__ */ jsx8("tbody", { className: "divide-y divide-white/5 text-zinc-300", children: filteredData.length > 0 ? filteredData.map((item, idx) => /* @__PURE__ */ jsxs6(
1923
+ "tr",
1924
+ {
1925
+ className: "hover:bg-white/[0.02] transition-colors group",
1926
+ children: [
1927
+ /* @__PURE__ */ jsx8("td", { className: "py-3.5 px-4 font-mono", children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-1.5", children: [
1928
+ /* @__PURE__ */ jsxs6(
1929
+ "button",
1930
+ {
1931
+ onClick: () => copyPropName(item.prop),
1932
+ className: "font-semibold text-lime-400 hover:text-lime-300 transition flex items-center gap-1 cursor-pointer",
1933
+ title: "Click to copy prop name",
1934
+ children: [
1935
+ /* @__PURE__ */ jsx8("span", { children: item.prop }),
1936
+ copiedProp === item.prop ? /* @__PURE__ */ jsx8(Check2, { className: "w-3 h-3 text-emerald-400 shrink-0" }) : /* @__PURE__ */ jsx8(Copy, { className: "w-3 h-3 text-zinc-600 opacity-0 group-hover:opacity-100 transition shrink-0" })
1937
+ ]
1938
+ }
1939
+ ),
1940
+ item.required && /* @__PURE__ */ jsx8("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" })
1941
+ ] }) }),
1942
+ /* @__PURE__ */ jsx8("td", { className: "py-3.5 px-4 font-mono text-[11px]", children: /* @__PURE__ */ jsx8("span", { className: "inline-block px-2 py-0.5 rounded-md bg-zinc-900 text-cyan-300 border border-white/5", children: item.type }) }),
1943
+ /* @__PURE__ */ jsx8("td", { className: "py-3.5 px-4 font-mono text-[11px] text-zinc-400", children: item.default ? /* @__PURE__ */ jsx8("code", { className: "bg-zinc-900 px-1.5 py-0.5 rounded text-amber-300/90 border border-white/5", children: item.default }) : /* @__PURE__ */ jsx8("span", { className: "text-zinc-600", children: "\u2014" }) }),
1944
+ /* @__PURE__ */ jsx8("td", { className: "py-3.5 px-4 text-gray-300 leading-relaxed font-sans", children: item.description })
1945
+ ]
1946
+ },
1947
+ item.prop || idx
1948
+ )) : /* @__PURE__ */ jsx8("tr", { children: /* @__PURE__ */ jsxs6(
1949
+ "td",
1950
+ {
1951
+ colSpan: 4,
1952
+ className: "py-8 text-center text-zinc-500 font-mono text-xs",
1953
+ children: [
1954
+ 'No matching props found for "',
1955
+ searchQuery,
1956
+ '".'
1957
+ ]
1958
+ }
1959
+ ) }) })
1960
+ ] }) }) })
1961
+ ] });
1800
1962
  }
1801
1963
  export {
1802
1964
  BlobMorphHero,