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