adaptive-ui-react 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +686 -524
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +676 -514
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- /package/dist/{index.d.mts → index.d.cts} +0 -0
package/dist/index.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__ */
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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__ */
|
|
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
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
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
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
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__ */
|
|
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
|
-
|
|
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__ */
|
|
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
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
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__ */
|
|
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
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
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__ */
|
|
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__ */
|
|
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
|
-
|
|
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__ */
|
|
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
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
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
|
-
|
|
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__ */
|
|
1756
|
-
"
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
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,
|