adaptive-ui-react 0.1.1 → 0.1.2
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 +55 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +90 -90
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// src/components/ui/image-scroll.jsx
|
|
4
|
-
import
|
|
4
|
+
import React, { useState } from "react";
|
|
5
5
|
|
|
6
6
|
// src/components/ui/image-scroll.module.css
|
|
7
7
|
var image_scroll_default = {};
|
|
@@ -79,7 +79,7 @@ function DefaultImageCard({ item, cardWidth, cardHeight, onCardClick }) {
|
|
|
79
79
|
const title = typeof item === "string" ? "Creative Asset" : (item == null ? void 0 : item.title) || "Visual Frame";
|
|
80
80
|
const category = typeof item === "string" ? "ASSET" : (item == null ? void 0 : item.category) || "GALLERY";
|
|
81
81
|
const accent = typeof item === "object" && (item == null ? void 0 : item.accent) ? item.accent : "#10b981";
|
|
82
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ React.createElement(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
85
|
onClick: () => onCardClick == null ? void 0 : onCardClick(item),
|
|
@@ -89,7 +89,7 @@ function DefaultImageCard({ item, cardWidth, cardHeight, onCardClick }) {
|
|
|
89
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
91
|
},
|
|
92
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ React.createElement(
|
|
93
93
|
"div",
|
|
94
94
|
{
|
|
95
95
|
className: "absolute inset-0 bg-gradient-to-br from-zinc-800 via-zinc-900 to-black",
|
|
@@ -99,7 +99,7 @@ function DefaultImageCard({ item, cardWidth, cardHeight, onCardClick }) {
|
|
|
99
99
|
}
|
|
100
100
|
),
|
|
101
101
|
!imgError && src && // eslint-disable-next-line @next/next/no-img-element
|
|
102
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ React.createElement(
|
|
103
103
|
"img",
|
|
104
104
|
{
|
|
105
105
|
src,
|
|
@@ -110,16 +110,16 @@ function DefaultImageCard({ item, cardWidth, cardHeight, onCardClick }) {
|
|
|
110
110
|
className: "absolute inset-0 h-full w-full object-cover transition-transform duration-700 ease-out group-hover:scale-108"
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
imgError && /* @__PURE__ */
|
|
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
114
|
"div",
|
|
115
115
|
{
|
|
116
116
|
className: "flex size-10 items-center justify-center rounded-xl border border-white/10 bg-white/5 backdrop-blur-sm",
|
|
117
117
|
style: { color: accent }
|
|
118
118
|
},
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
), /* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
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
123
|
"div",
|
|
124
124
|
{
|
|
125
125
|
className: "pointer-events-none absolute -inset-px rounded-2xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",
|
|
@@ -128,14 +128,14 @@ function DefaultImageCard({ item, cardWidth, cardHeight, onCardClick }) {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
),
|
|
131
|
-
/* @__PURE__ */
|
|
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
132
|
"span",
|
|
133
133
|
{
|
|
134
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
135
|
style: { borderLeftColor: accent, borderLeftWidth: "2.5px" }
|
|
136
136
|
},
|
|
137
137
|
category
|
|
138
|
-
), /* @__PURE__ */
|
|
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))
|
|
139
139
|
);
|
|
140
140
|
}
|
|
141
141
|
function prepareTrackItems(items) {
|
|
@@ -185,7 +185,7 @@ function ImageScroll({
|
|
|
185
185
|
"--container-height": height,
|
|
186
186
|
...style
|
|
187
187
|
};
|
|
188
|
-
return /* @__PURE__ */
|
|
188
|
+
return /* @__PURE__ */ React.createElement(
|
|
189
189
|
"div",
|
|
190
190
|
{
|
|
191
191
|
style: containerStyles,
|
|
@@ -198,13 +198,13 @@ function ImageScroll({
|
|
|
198
198
|
${className}
|
|
199
199
|
`
|
|
200
200
|
},
|
|
201
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ React.createElement("div", { className: tilt ? image_scroll_default.tiltInner : "" }, isVertical ? (
|
|
202
202
|
/* ================= VERTICAL COLUMNS ================= */
|
|
203
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ React.createElement("div", { className: image_scroll_default.verticalWrapper }, trackItemGroups.map((group, colIdx) => {
|
|
204
204
|
const isColReverse = staggerDirection ? colIdx % 2 === 1 ? !reverse : reverse : reverse;
|
|
205
205
|
const colSpeed = staggerDirection ? baseDuration * (1 + colIdx % 3 * 0.15) : baseDuration;
|
|
206
206
|
const trackItems = prepareTrackItems(group);
|
|
207
|
-
return /* @__PURE__ */
|
|
207
|
+
return /* @__PURE__ */ React.createElement(
|
|
208
208
|
"div",
|
|
209
209
|
{
|
|
210
210
|
key: `col-${colIdx}`,
|
|
@@ -213,7 +213,7 @@ function ImageScroll({
|
|
|
213
213
|
animationDuration: `${colSpeed}s`
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
|
-
trackItems.map((item, itemIdx) => /* @__PURE__ */
|
|
216
|
+
trackItems.map((item, itemIdx) => /* @__PURE__ */ React.createElement(React.Fragment, { key: `v-item-${colIdx}-${itemIdx}` }, renderItem ? renderItem(item, itemIdx) : /* @__PURE__ */ React.createElement(
|
|
217
217
|
DefaultImageCard,
|
|
218
218
|
{
|
|
219
219
|
item,
|
|
@@ -226,11 +226,11 @@ function ImageScroll({
|
|
|
226
226
|
}))
|
|
227
227
|
) : (
|
|
228
228
|
/* ================= HORIZONTAL ROWS ================= */
|
|
229
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ React.createElement("div", { className: image_scroll_default.horizontalWrapper }, trackItemGroups.map((group, rowIdx) => {
|
|
230
230
|
const isRowReverse = staggerDirection ? rowIdx % 2 === 1 ? !reverse : reverse : reverse;
|
|
231
231
|
const rowSpeed = staggerDirection ? baseDuration * (1 + rowIdx % 3 * 0.15) : baseDuration;
|
|
232
232
|
const trackItems = prepareTrackItems(group);
|
|
233
|
-
return /* @__PURE__ */
|
|
233
|
+
return /* @__PURE__ */ React.createElement(
|
|
234
234
|
"div",
|
|
235
235
|
{
|
|
236
236
|
key: `row-${rowIdx}`,
|
|
@@ -239,7 +239,7 @@ function ImageScroll({
|
|
|
239
239
|
animationDuration: `${rowSpeed}s`
|
|
240
240
|
}
|
|
241
241
|
},
|
|
242
|
-
trackItems.map((item, itemIdx) => /* @__PURE__ */
|
|
242
|
+
trackItems.map((item, itemIdx) => /* @__PURE__ */ React.createElement(React.Fragment, { key: `h-item-${rowIdx}-${itemIdx}` }, renderItem ? renderItem(item, itemIdx) : /* @__PURE__ */ React.createElement(
|
|
243
243
|
DefaultImageCard,
|
|
244
244
|
{
|
|
245
245
|
item,
|
|
@@ -256,7 +256,7 @@ function ImageScroll({
|
|
|
256
256
|
var InfiniteImageScroll = ImageScroll;
|
|
257
257
|
|
|
258
258
|
// src/components/ui/interactive-ascii-face.jsx
|
|
259
|
-
import { useEffect, useRef, useState as useState2 } from "react";
|
|
259
|
+
import React2, { useEffect, useRef, useState as useState2 } from "react";
|
|
260
260
|
|
|
261
261
|
// src/components/ui/interactive-ascii-face.module.css
|
|
262
262
|
var interactive_ascii_face_default = {};
|
|
@@ -456,7 +456,7 @@ function InteractiveAsciiFace({
|
|
|
456
456
|
const y = event.clientY - bounds.top;
|
|
457
457
|
pointer.current = { position: { x, y }, offset: { x: (x / bounds.width * 2 - 1) * offset, y: (y / bounds.height * 2 - 1) * offset } };
|
|
458
458
|
}
|
|
459
|
-
return /* @__PURE__ */
|
|
459
|
+
return /* @__PURE__ */ React2.createElement(
|
|
460
460
|
"div",
|
|
461
461
|
{
|
|
462
462
|
className: [interactive_ascii_face_default.stage, className].filter(Boolean).join(" "),
|
|
@@ -465,7 +465,7 @@ function InteractiveAsciiFace({
|
|
|
465
465
|
pointer.current = null;
|
|
466
466
|
}
|
|
467
467
|
},
|
|
468
|
-
/* @__PURE__ */
|
|
468
|
+
/* @__PURE__ */ React2.createElement(
|
|
469
469
|
"canvas",
|
|
470
470
|
{
|
|
471
471
|
ref: fieldRef,
|
|
@@ -475,13 +475,13 @@ function InteractiveAsciiFace({
|
|
|
475
475
|
"aria-hidden": !mask
|
|
476
476
|
}
|
|
477
477
|
),
|
|
478
|
-
/* @__PURE__ */
|
|
478
|
+
/* @__PURE__ */ React2.createElement(
|
|
479
479
|
"div",
|
|
480
480
|
{
|
|
481
481
|
ref: portraitRef,
|
|
482
482
|
className: interactive_ascii_face_default.frame
|
|
483
483
|
},
|
|
484
|
-
!mask && /* @__PURE__ */
|
|
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
485
|
)
|
|
486
486
|
);
|
|
487
487
|
}
|
|
@@ -1094,7 +1094,7 @@ function BlobMorphHero({
|
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
1096
|
// src/components/ui/infinite-tunnel-hero.jsx
|
|
1097
|
-
import { useEffect as useEffect3, useRef as useRef3 } from "react";
|
|
1097
|
+
import React4, { useEffect as useEffect3, useRef as useRef3 } from "react";
|
|
1098
1098
|
import gsap from "gsap";
|
|
1099
1099
|
var SHAPES = [
|
|
1100
1100
|
[[523.9, 887.7], [391.2, 887.7], [520.1, 824], [624.3, 824]],
|
|
@@ -1304,13 +1304,13 @@ function InfiniteTunnelHero({
|
|
|
1304
1304
|
return () => ctx.revert();
|
|
1305
1305
|
}, [speed]);
|
|
1306
1306
|
const shapeCount = SHAPES.length * SHAPE_COPIES;
|
|
1307
|
-
return /* @__PURE__ */
|
|
1307
|
+
return /* @__PURE__ */ React4.createElement(
|
|
1308
1308
|
"div",
|
|
1309
1309
|
{
|
|
1310
1310
|
className: `relative h-screen w-full overflow-hidden ${className}`,
|
|
1311
1311
|
style: { background: backgroundColor }
|
|
1312
1312
|
},
|
|
1313
|
-
/* @__PURE__ */
|
|
1313
|
+
/* @__PURE__ */ React4.createElement(
|
|
1314
1314
|
"svg",
|
|
1315
1315
|
{
|
|
1316
1316
|
ref: rootRef,
|
|
@@ -1319,7 +1319,7 @@ function InfiniteTunnelHero({
|
|
|
1319
1319
|
preserveAspectRatio: "xMidYMid slice",
|
|
1320
1320
|
"aria-hidden": "true"
|
|
1321
1321
|
},
|
|
1322
|
-
/* @__PURE__ */
|
|
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
1323
|
"linearGradient",
|
|
1324
1324
|
{
|
|
1325
1325
|
id: "gridStroke",
|
|
@@ -1329,12 +1329,12 @@ function InfiniteTunnelHero({
|
|
|
1329
1329
|
x2: "0",
|
|
1330
1330
|
y2: "1100"
|
|
1331
1331
|
},
|
|
1332
|
-
/* @__PURE__ */
|
|
1333
|
-
/* @__PURE__ */
|
|
1334
|
-
/* @__PURE__ */
|
|
1335
|
-
/* @__PURE__ */
|
|
1336
|
-
/* @__PURE__ */
|
|
1337
|
-
), /* @__PURE__ */
|
|
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
1338
|
"linearGradient",
|
|
1339
1339
|
{
|
|
1340
1340
|
id: "gridFade",
|
|
@@ -1344,17 +1344,17 @@ function InfiniteTunnelHero({
|
|
|
1344
1344
|
x2: "2400",
|
|
1345
1345
|
y2: "0"
|
|
1346
1346
|
},
|
|
1347
|
-
/* @__PURE__ */
|
|
1348
|
-
/* @__PURE__ */
|
|
1349
|
-
/* @__PURE__ */
|
|
1350
|
-
/* @__PURE__ */
|
|
1351
|
-
/* @__PURE__ */
|
|
1352
|
-
/* @__PURE__ */
|
|
1353
|
-
/* @__PURE__ */
|
|
1354
|
-
/* @__PURE__ */
|
|
1355
|
-
/* @__PURE__ */
|
|
1356
|
-
/* @__PURE__ */
|
|
1357
|
-
), /* @__PURE__ */
|
|
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
1358
|
"mask",
|
|
1359
1359
|
{
|
|
1360
1360
|
id: "gridMask",
|
|
@@ -1364,9 +1364,9 @@ function InfiniteTunnelHero({
|
|
|
1364
1364
|
width: "2880",
|
|
1365
1365
|
height: "1300"
|
|
1366
1366
|
},
|
|
1367
|
-
/* @__PURE__ */
|
|
1368
|
-
), /* @__PURE__ */
|
|
1369
|
-
/* @__PURE__ */
|
|
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
1370
|
"rect",
|
|
1371
1371
|
{
|
|
1372
1372
|
x: VX - 1400,
|
|
@@ -1375,7 +1375,7 @@ function InfiniteTunnelHero({
|
|
|
1375
1375
|
height: 60,
|
|
1376
1376
|
fill: "url(#glow)"
|
|
1377
1377
|
}
|
|
1378
|
-
), /* @__PURE__ */
|
|
1378
|
+
), /* @__PURE__ */ React4.createElement(
|
|
1379
1379
|
"rect",
|
|
1380
1380
|
{
|
|
1381
1381
|
x: VX - 1e3,
|
|
@@ -1385,7 +1385,7 @@ function InfiniteTunnelHero({
|
|
|
1385
1385
|
fill: "url(#glow)",
|
|
1386
1386
|
opacity: "0.22"
|
|
1387
1387
|
}
|
|
1388
|
-
)), /* @__PURE__ */
|
|
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
1389
|
"line",
|
|
1390
1390
|
{
|
|
1391
1391
|
key: `hb-${i}`,
|
|
@@ -1398,7 +1398,7 @@ function InfiniteTunnelHero({
|
|
|
1398
1398
|
y2: GRID_Y[0],
|
|
1399
1399
|
opacity: "0"
|
|
1400
1400
|
}
|
|
1401
|
-
))), /* @__PURE__ */
|
|
1401
|
+
))), /* @__PURE__ */ React4.createElement("g", { style: { mixBlendMode: "screen" } }, Array.from({ length: shapeCount }).map((_, k) => /* @__PURE__ */ React4.createElement(
|
|
1402
1402
|
"polygon",
|
|
1403
1403
|
{
|
|
1404
1404
|
key: `sb-${k}`,
|
|
@@ -1412,7 +1412,7 @@ function InfiniteTunnelHero({
|
|
|
1412
1412
|
vectorEffect: "non-scaling-stroke",
|
|
1413
1413
|
opacity: "0"
|
|
1414
1414
|
}
|
|
1415
|
-
)), PARTICLES.map((d, i) => /* @__PURE__ */
|
|
1415
|
+
)), PARTICLES.map((d, i) => /* @__PURE__ */ React4.createElement(
|
|
1416
1416
|
"circle",
|
|
1417
1417
|
{
|
|
1418
1418
|
key: `pb-${i}`,
|
|
@@ -1426,7 +1426,7 @@ function InfiniteTunnelHero({
|
|
|
1426
1426
|
opacity: "0"
|
|
1427
1427
|
}
|
|
1428
1428
|
)))),
|
|
1429
|
-
/* @__PURE__ */
|
|
1429
|
+
/* @__PURE__ */ React4.createElement("g", { transform: `translate(0 ${-GAP})` }, GLOW_ON && /* @__PURE__ */ React4.createElement("g", { className: "tunnel-glow" }, /* @__PURE__ */ React4.createElement(
|
|
1430
1430
|
"rect",
|
|
1431
1431
|
{
|
|
1432
1432
|
x: VX - 1400,
|
|
@@ -1435,7 +1435,7 @@ function InfiniteTunnelHero({
|
|
|
1435
1435
|
height: 60,
|
|
1436
1436
|
fill: "url(#glow)"
|
|
1437
1437
|
}
|
|
1438
|
-
), /* @__PURE__ */
|
|
1438
|
+
), /* @__PURE__ */ React4.createElement(
|
|
1439
1439
|
"rect",
|
|
1440
1440
|
{
|
|
1441
1441
|
x: VX - 1e3,
|
|
@@ -1445,7 +1445,7 @@ function InfiniteTunnelHero({
|
|
|
1445
1445
|
fill: "url(#glow)",
|
|
1446
1446
|
opacity: "0.22"
|
|
1447
1447
|
}
|
|
1448
|
-
)), /* @__PURE__ */
|
|
1448
|
+
)), /* @__PURE__ */ React4.createElement("g", { style: { mixBlendMode: "screen" } }, Array.from({ length: shapeCount }).map((_, k) => /* @__PURE__ */ React4.createElement(
|
|
1449
1449
|
"polygon",
|
|
1450
1450
|
{
|
|
1451
1451
|
key: `st-${k}`,
|
|
@@ -1459,7 +1459,7 @@ function InfiniteTunnelHero({
|
|
|
1459
1459
|
vectorEffect: "non-scaling-stroke",
|
|
1460
1460
|
opacity: "0"
|
|
1461
1461
|
}
|
|
1462
|
-
)), PARTICLES.map((d, i) => /* @__PURE__ */
|
|
1462
|
+
)), PARTICLES.map((d, i) => /* @__PURE__ */ React4.createElement(
|
|
1463
1463
|
"circle",
|
|
1464
1464
|
{
|
|
1465
1465
|
key: `pt-${i}`,
|
|
@@ -1474,12 +1474,12 @@ function InfiniteTunnelHero({
|
|
|
1474
1474
|
}
|
|
1475
1475
|
))))
|
|
1476
1476
|
),
|
|
1477
|
-
/* @__PURE__ */
|
|
1477
|
+
/* @__PURE__ */ React4.createElement("div", { className: "relative z-10 flex h-full w-full items-center justify-center" }, children)
|
|
1478
1478
|
);
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
1481
1481
|
// src/components/ui/scrollsmoothprovider.jsx
|
|
1482
|
-
import
|
|
1482
|
+
import React5, { useEffect as useEffect4, useRef as useRef4, useState as useState4 } from "react";
|
|
1483
1483
|
import Lenis from "lenis";
|
|
1484
1484
|
function SmoothScrollProvider({ children, pathname: propPathname }) {
|
|
1485
1485
|
const lenisRef = useRef4(null);
|
|
@@ -1533,18 +1533,18 @@ function SmoothScrollProvider({ children, pathname: propPathname }) {
|
|
|
1533
1533
|
}, 50);
|
|
1534
1534
|
return () => clearTimeout(timeout);
|
|
1535
1535
|
}, [activePath]);
|
|
1536
|
-
return /* @__PURE__ */
|
|
1536
|
+
return /* @__PURE__ */ React5.createElement(React5.Fragment, null, children);
|
|
1537
1537
|
}
|
|
1538
1538
|
|
|
1539
1539
|
// src/components/ui/liquidGlassButton.jsx
|
|
1540
|
-
import
|
|
1540
|
+
import React6 from "react";
|
|
1541
1541
|
function LiquidGlassButton({
|
|
1542
1542
|
children = "Liquid Glass Button",
|
|
1543
1543
|
className = "",
|
|
1544
1544
|
onClick,
|
|
1545
1545
|
...props
|
|
1546
1546
|
}) {
|
|
1547
|
-
return /* @__PURE__ */
|
|
1547
|
+
return /* @__PURE__ */ React6.createElement(
|
|
1548
1548
|
"button",
|
|
1549
1549
|
{
|
|
1550
1550
|
type: "button",
|
|
@@ -1558,7 +1558,7 @@ function LiquidGlassButton({
|
|
|
1558
1558
|
var liquidGlassButton = LiquidGlassButton;
|
|
1559
1559
|
|
|
1560
1560
|
// src/components/ui/install-tabs.jsx
|
|
1561
|
-
import { useId as useId2, useState as useState5, useSyncExternalStore } from "react";
|
|
1561
|
+
import React7, { useId as useId2, useState as useState5, useSyncExternalStore } from "react";
|
|
1562
1562
|
import { AnimatePresence, motion } from "motion/react";
|
|
1563
1563
|
import { Check, Terminal, Package } from "lucide-react";
|
|
1564
1564
|
var managers = ["npm", "pnpm", "yarn", "bun"];
|
|
@@ -1626,14 +1626,14 @@ function InstallTabs({
|
|
|
1626
1626
|
} catch {
|
|
1627
1627
|
}
|
|
1628
1628
|
}
|
|
1629
|
-
return /* @__PURE__ */
|
|
1629
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1630
1630
|
"div",
|
|
1631
1631
|
{
|
|
1632
1632
|
className: `w-full overflow-hidden rounded-xl border border-white/10 bg-zinc-950/90 shadow-2xl backdrop-blur-md ${className}`
|
|
1633
1633
|
},
|
|
1634
|
-
/* @__PURE__ */
|
|
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
1635
|
const isSelected = manager === option;
|
|
1636
|
-
return /* @__PURE__ */
|
|
1636
|
+
return /* @__PURE__ */ React7.createElement(
|
|
1637
1637
|
"button",
|
|
1638
1638
|
{
|
|
1639
1639
|
key: option,
|
|
@@ -1646,7 +1646,7 @@ function InstallTabs({
|
|
|
1646
1646
|
onKeyDown: (event) => onKey(event, index),
|
|
1647
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
1648
|
},
|
|
1649
|
-
isSelected && /* @__PURE__ */
|
|
1649
|
+
isSelected && /* @__PURE__ */ React7.createElement(
|
|
1650
1650
|
motion.span,
|
|
1651
1651
|
{
|
|
1652
1652
|
layoutId: `${id}-pill`,
|
|
@@ -1659,27 +1659,27 @@ function InstallTabs({
|
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
),
|
|
1662
|
-
/* @__PURE__ */
|
|
1662
|
+
/* @__PURE__ */ React7.createElement("span", { className: "relative z-10" }, option)
|
|
1663
1663
|
);
|
|
1664
|
-
})), component && /* @__PURE__ */
|
|
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
1665
|
"button",
|
|
1666
1666
|
{
|
|
1667
1667
|
type: "button",
|
|
1668
1668
|
onClick: () => setMode("cli"),
|
|
1669
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
1670
|
},
|
|
1671
|
-
/* @__PURE__ */
|
|
1671
|
+
/* @__PURE__ */ React7.createElement(Terminal, { className: "size-3" }),
|
|
1672
1672
|
"CLI"
|
|
1673
|
-
), /* @__PURE__ */
|
|
1673
|
+
), /* @__PURE__ */ React7.createElement(
|
|
1674
1674
|
"button",
|
|
1675
1675
|
{
|
|
1676
1676
|
type: "button",
|
|
1677
1677
|
onClick: () => setMode("package"),
|
|
1678
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
1679
|
},
|
|
1680
|
-
/* @__PURE__ */
|
|
1680
|
+
/* @__PURE__ */ React7.createElement(Package, { className: "size-3" }),
|
|
1681
1681
|
"NPM"
|
|
1682
|
-
))), /* @__PURE__ */
|
|
1682
|
+
))), /* @__PURE__ */ React7.createElement(
|
|
1683
1683
|
"button",
|
|
1684
1684
|
{
|
|
1685
1685
|
type: "button",
|
|
@@ -1687,9 +1687,9 @@ function InstallTabs({
|
|
|
1687
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
1688
|
"aria-label": "Copy install command"
|
|
1689
1689
|
},
|
|
1690
|
-
copied ? /* @__PURE__ */
|
|
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
1691
|
)),
|
|
1692
|
-
/* @__PURE__ */
|
|
1692
|
+
/* @__PURE__ */ React7.createElement(
|
|
1693
1693
|
"div",
|
|
1694
1694
|
{
|
|
1695
1695
|
id: `${id}-panel`,
|
|
@@ -1697,7 +1697,7 @@ function InstallTabs({
|
|
|
1697
1697
|
"aria-labelledby": `${id}-${manager}`,
|
|
1698
1698
|
className: "relative overflow-hidden px-4 py-3.5 font-mono text-xs sm:text-sm bg-black/40"
|
|
1699
1699
|
},
|
|
1700
|
-
/* @__PURE__ */
|
|
1700
|
+
/* @__PURE__ */ React7.createElement(AnimatePresence, { mode: "wait", initial: false }, /* @__PURE__ */ React7.createElement(
|
|
1701
1701
|
motion.div,
|
|
1702
1702
|
{
|
|
1703
1703
|
key: `${manager}-${mode}`,
|
|
@@ -1707,16 +1707,16 @@ function InstallTabs({
|
|
|
1707
1707
|
transition: { duration: 0.22, ease: "easeOut" },
|
|
1708
1708
|
className: "flex items-center gap-2.5 whitespace-nowrap text-zinc-200"
|
|
1709
1709
|
},
|
|
1710
|
-
/* @__PURE__ */
|
|
1711
|
-
/* @__PURE__ */
|
|
1710
|
+
/* @__PURE__ */ React7.createElement("span", { className: "select-none font-bold text-emerald-400" }, "$"),
|
|
1711
|
+
/* @__PURE__ */ React7.createElement("span", { className: "tracking-wide" }, currentText)
|
|
1712
1712
|
)),
|
|
1713
|
-
/* @__PURE__ */
|
|
1713
|
+
/* @__PURE__ */ React7.createElement("span", { role: "status", className: "sr-only" }, copied ? "Copied" : "")
|
|
1714
1714
|
)
|
|
1715
1715
|
);
|
|
1716
1716
|
}
|
|
1717
1717
|
|
|
1718
1718
|
// src/components/ui/props-table.jsx
|
|
1719
|
-
import
|
|
1719
|
+
import React8, { useState as useState6 } from "react";
|
|
1720
1720
|
import { Search, Copy, Check as Check2, SlidersHorizontal } from "lucide-react";
|
|
1721
1721
|
function PropsTable({
|
|
1722
1722
|
data = [],
|
|
@@ -1752,7 +1752,7 @@ function PropsTable({
|
|
|
1752
1752
|
console.warn("Clipboard copy failed:", e);
|
|
1753
1753
|
}
|
|
1754
1754
|
};
|
|
1755
|
-
return /* @__PURE__ */
|
|
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
1756
|
"input",
|
|
1757
1757
|
{
|
|
1758
1758
|
type: "text",
|
|
@@ -1761,33 +1761,33 @@ function PropsTable({
|
|
|
1761
1761
|
placeholder: "Search props, types...",
|
|
1762
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
1763
|
}
|
|
1764
|
-
), searchQuery && /* @__PURE__ */
|
|
1764
|
+
), searchQuery && /* @__PURE__ */ React8.createElement(
|
|
1765
1765
|
"button",
|
|
1766
1766
|
{
|
|
1767
1767
|
onClick: () => setSearchQuery(""),
|
|
1768
1768
|
className: "absolute right-2.5 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-white text-xs font-mono"
|
|
1769
1769
|
},
|
|
1770
1770
|
"\xD7"
|
|
1771
|
-
))), /* @__PURE__ */
|
|
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
1772
|
"tr",
|
|
1773
1773
|
{
|
|
1774
1774
|
key: item.prop || idx,
|
|
1775
1775
|
className: "hover:bg-white/[0.02] transition-colors group"
|
|
1776
1776
|
},
|
|
1777
|
-
/* @__PURE__ */
|
|
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
1778
|
"button",
|
|
1779
1779
|
{
|
|
1780
1780
|
onClick: () => copyPropName(item.prop),
|
|
1781
1781
|
className: "font-semibold text-lime-400 hover:text-lime-300 transition flex items-center gap-1 cursor-pointer",
|
|
1782
1782
|
title: "Click to copy prop name"
|
|
1783
1783
|
},
|
|
1784
|
-
/* @__PURE__ */
|
|
1785
|
-
copiedProp === item.prop ? /* @__PURE__ */
|
|
1786
|
-
), item.required && /* @__PURE__ */
|
|
1787
|
-
/* @__PURE__ */
|
|
1788
|
-
/* @__PURE__ */
|
|
1789
|
-
/* @__PURE__ */
|
|
1790
|
-
)) : /* @__PURE__ */
|
|
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
1791
|
"td",
|
|
1792
1792
|
{
|
|
1793
1793
|
colSpan: 4,
|