cyberui-2045 2.2.0 → 2.3.1
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/AGENT.md +4 -2
- package/bin/usage-content.js +5 -1
- package/dist/components/Modal.d.ts +20 -0
- package/dist/components/SegmentedProgress.d.ts +34 -34
- package/dist/cyberui-2045.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +818 -773
- package/dist/index.js +15 -15
- package/package.json +125 -125
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createPortal as
|
|
3
|
-
var ve = { exports: {} },
|
|
1
|
+
import Te, { useCallback as D, useState as Z, useEffect as oe, useRef as te, useId as Be, memo as _e, useMemo as pe, createContext as ct, useContext as dt } from "react";
|
|
2
|
+
import { createPortal as Fe } from "react-dom";
|
|
3
|
+
var ve = { exports: {} }, ge = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,29 +10,29 @@ var ve = { exports: {} }, he = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
13
|
+
var Me;
|
|
14
|
+
function ut() {
|
|
15
|
+
if (Me) return ge;
|
|
16
|
+
Me = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
18
|
-
function a(s, n,
|
|
18
|
+
function a(s, n, c) {
|
|
19
19
|
var l = null;
|
|
20
|
-
if (
|
|
21
|
-
|
|
20
|
+
if (c !== void 0 && (l = "" + c), n.key !== void 0 && (l = "" + n.key), "key" in n) {
|
|
21
|
+
c = {};
|
|
22
22
|
for (var i in n)
|
|
23
|
-
i !== "key" && (
|
|
24
|
-
} else
|
|
25
|
-
return n =
|
|
23
|
+
i !== "key" && (c[i] = n[i]);
|
|
24
|
+
} else c = n;
|
|
25
|
+
return n = c.ref, {
|
|
26
26
|
$$typeof: e,
|
|
27
27
|
type: s,
|
|
28
28
|
key: l,
|
|
29
29
|
ref: n !== void 0 ? n : null,
|
|
30
|
-
props:
|
|
30
|
+
props: c
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return ge.Fragment = r, ge.jsx = a, ge.jsxs = a, ge;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var he = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -42,13 +42,13 @@ var ge = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
45
|
+
var Le;
|
|
46
|
+
function mt() {
|
|
47
|
+
return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
48
|
function e(o) {
|
|
49
49
|
if (o == null) return null;
|
|
50
50
|
if (typeof o == "function")
|
|
51
|
-
return o.$$typeof ===
|
|
51
|
+
return o.$$typeof === U ? null : o.displayName || o.name || null;
|
|
52
52
|
if (typeof o == "string") return o;
|
|
53
53
|
switch (o) {
|
|
54
54
|
case x:
|
|
@@ -59,7 +59,7 @@ function dt() {
|
|
|
59
59
|
return "StrictMode";
|
|
60
60
|
case C:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case I:
|
|
63
63
|
return "SuspenseList";
|
|
64
64
|
case M:
|
|
65
65
|
return "Activity";
|
|
@@ -70,11 +70,11 @@ function dt() {
|
|
|
70
70
|
), o.$$typeof) {
|
|
71
71
|
case w:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
73
|
+
case $:
|
|
74
74
|
return (o.displayName || "Context") + ".Provider";
|
|
75
75
|
case N:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
|
-
case
|
|
77
|
+
case T:
|
|
78
78
|
var u = o.render;
|
|
79
79
|
return o = o.displayName, o || (o = u.displayName || u.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
80
|
case G:
|
|
@@ -123,7 +123,7 @@ function dt() {
|
|
|
123
123
|
var o = X.A;
|
|
124
124
|
return o === null ? null : o.getOwner();
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function c() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
129
|
function l(o) {
|
|
@@ -135,7 +135,7 @@ function dt() {
|
|
|
135
135
|
}
|
|
136
136
|
function i(o, u) {
|
|
137
137
|
function b() {
|
|
138
|
-
|
|
138
|
+
F || (F = !0, console.error(
|
|
139
139
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
140
140
|
u
|
|
141
141
|
));
|
|
@@ -145,22 +145,22 @@ function dt() {
|
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function d() {
|
|
149
149
|
var o = e(this.type);
|
|
150
150
|
return H[o] || (H[o] = !0, console.error(
|
|
151
151
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
152
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function h(o, u, b, R, S, E, P, W) {
|
|
155
155
|
return b = E.ref, o = {
|
|
156
|
-
$$typeof:
|
|
156
|
+
$$typeof: g,
|
|
157
157
|
type: o,
|
|
158
158
|
key: u,
|
|
159
159
|
props: E,
|
|
160
160
|
_owner: S
|
|
161
161
|
}, (b !== void 0 ? b : null) !== null ? Object.defineProperty(o, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
|
-
get:
|
|
163
|
+
get: d
|
|
164
164
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
@@ -175,7 +175,7 @@ function dt() {
|
|
|
175
175
|
configurable: !1,
|
|
176
176
|
enumerable: !1,
|
|
177
177
|
writable: !0,
|
|
178
|
-
value:
|
|
178
|
+
value: P
|
|
179
179
|
}), Object.defineProperty(o, "_debugTask", {
|
|
180
180
|
configurable: !1,
|
|
181
181
|
enumerable: !1,
|
|
@@ -183,7 +183,7 @@ function dt() {
|
|
|
183
183
|
value: W
|
|
184
184
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
185
185
|
}
|
|
186
|
-
function m(o, u, b, R, S, E,
|
|
186
|
+
function m(o, u, b, R, S, E, P, W) {
|
|
187
187
|
var O = u.children;
|
|
188
188
|
if (O !== void 0)
|
|
189
189
|
if (R)
|
|
@@ -216,27 +216,27 @@ React keys must be passed directly to JSX without using spread:
|
|
|
216
216
|
}
|
|
217
217
|
if (O = null, b !== void 0 && (a(b), O = "" + b), l(u) && (a(u.key), O = "" + u.key), "key" in u) {
|
|
218
218
|
b = {};
|
|
219
|
-
for (var
|
|
220
|
-
|
|
219
|
+
for (var B in u)
|
|
220
|
+
B !== "key" && (b[B] = u[B]);
|
|
221
221
|
} else b = u;
|
|
222
222
|
return O && i(
|
|
223
223
|
b,
|
|
224
224
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
225
|
-
),
|
|
225
|
+
), h(
|
|
226
226
|
o,
|
|
227
227
|
O,
|
|
228
228
|
E,
|
|
229
229
|
S,
|
|
230
230
|
n(),
|
|
231
231
|
b,
|
|
232
|
-
|
|
232
|
+
P,
|
|
233
233
|
W
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
236
|
function y(o) {
|
|
237
|
-
typeof o == "object" && o !== null && o.$$typeof ===
|
|
237
|
+
typeof o == "object" && o !== null && o.$$typeof === g && o._store && (o._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var p =
|
|
239
|
+
var p = Te, g = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), G = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), U = Symbol.for("react.client.reference"), X = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Q = Object.prototype.hasOwnProperty, re = Array.isArray, ee = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
242
|
p = {
|
|
@@ -244,11 +244,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
244
244
|
return o();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var
|
|
247
|
+
var F, H = {}, q = p.react_stack_bottom_frame.bind(
|
|
248
248
|
p,
|
|
249
|
-
|
|
250
|
-
)(), Y = ee(s(
|
|
251
|
-
|
|
249
|
+
c
|
|
250
|
+
)(), Y = ee(s(c)), K = {};
|
|
251
|
+
he.Fragment = x, he.jsx = function(o, u, b, R, S) {
|
|
252
252
|
var E = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
253
253
|
return m(
|
|
254
254
|
o,
|
|
@@ -260,7 +260,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
260
260
|
E ? Error("react-stack-top-frame") : q,
|
|
261
261
|
E ? ee(s(o)) : Y
|
|
262
262
|
);
|
|
263
|
-
},
|
|
263
|
+
}, he.jsxs = function(o, u, b, R, S) {
|
|
264
264
|
var E = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return m(
|
|
266
266
|
o,
|
|
@@ -273,15 +273,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
273
273
|
E ? ee(s(o)) : Y
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
|
-
}()),
|
|
276
|
+
}()), he;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
return
|
|
278
|
+
var Ie;
|
|
279
|
+
function ft() {
|
|
280
|
+
return Ie || (Ie = 1, process.env.NODE_ENV === "production" ? ve.exports = ut() : ve.exports = mt()), ve.exports;
|
|
281
281
|
}
|
|
282
|
-
var t =
|
|
283
|
-
const
|
|
284
|
-
if (
|
|
282
|
+
var t = ft();
|
|
283
|
+
const $e = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
284
|
+
if (!$e(e))
|
|
285
285
|
return r[e] || "";
|
|
286
286
|
const a = [];
|
|
287
287
|
if (e.base && r[e.base] && a.push(r[e.base]), e.sm && r[e.sm]) {
|
|
@@ -305,7 +305,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
305
305
|
a.push(...s);
|
|
306
306
|
}
|
|
307
307
|
return a.join(" ");
|
|
308
|
-
},
|
|
308
|
+
}, zr = (...e) => e.filter(Boolean).join(" "), ae = {
|
|
309
309
|
button: {
|
|
310
310
|
sm: "py-1 px-4 text-sm",
|
|
311
311
|
md: "py-2 px-6 text-lg",
|
|
@@ -358,69 +358,69 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
358
358
|
md: "h-64",
|
|
359
359
|
lg: "h-80"
|
|
360
360
|
}
|
|
361
|
-
},
|
|
361
|
+
}, pt = {
|
|
362
362
|
base: 0,
|
|
363
363
|
sm: 640,
|
|
364
364
|
md: 768,
|
|
365
365
|
lg: 1024,
|
|
366
366
|
xl: 1280,
|
|
367
367
|
"2xl": 1536
|
|
368
|
-
},
|
|
369
|
-
if (
|
|
368
|
+
}, bt = (e, r, a) => {
|
|
369
|
+
if (!$e(e))
|
|
370
370
|
return e ?? a;
|
|
371
371
|
let s = e.base ?? a;
|
|
372
372
|
const n = ["sm", "md", "lg", "xl", "2xl"];
|
|
373
|
-
for (const
|
|
374
|
-
const l =
|
|
375
|
-
r >= l && e[
|
|
373
|
+
for (const c of n) {
|
|
374
|
+
const l = pt[c];
|
|
375
|
+
r >= l && e[c] !== void 0 && (s = e[c]);
|
|
376
376
|
}
|
|
377
377
|
return s;
|
|
378
|
-
},
|
|
378
|
+
}, Ue = (e, r) => {
|
|
379
379
|
const a = D(
|
|
380
|
-
() => typeof window > "u" ? r :
|
|
380
|
+
() => typeof window > "u" ? r : bt(e, window.innerWidth, r),
|
|
381
381
|
[r, e]
|
|
382
382
|
), [s, n] = Z(a);
|
|
383
383
|
return oe(() => {
|
|
384
|
-
if (
|
|
384
|
+
if (!$e(e)) {
|
|
385
385
|
n(e ?? r);
|
|
386
386
|
return;
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
return
|
|
388
|
+
const c = () => n(a());
|
|
389
|
+
return c(), window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
|
|
390
390
|
}, [r, a, e]), s;
|
|
391
|
-
},
|
|
391
|
+
}, gt = ({
|
|
392
392
|
tabs: e,
|
|
393
393
|
activeTab: r,
|
|
394
394
|
onTabChange: a,
|
|
395
395
|
sizeClasses: s,
|
|
396
396
|
containerClassName: n = "",
|
|
397
|
-
anchorClassName:
|
|
397
|
+
anchorClassName: c = "",
|
|
398
398
|
menuClassName: l = "",
|
|
399
399
|
menuItemClassName: i = "",
|
|
400
|
-
dropdownLabel:
|
|
401
|
-
anchorIcon:
|
|
400
|
+
dropdownLabel: d,
|
|
401
|
+
anchorIcon: h,
|
|
402
402
|
showAnchorLabel: m = !0,
|
|
403
403
|
anchorAriaLabel: y,
|
|
404
404
|
closeOnSelect: p = !0
|
|
405
405
|
}) => {
|
|
406
|
-
const [
|
|
406
|
+
const [g, w] = Z(!1), [x, v] = Z(!1), [A, N] = Z(!1), [$, T] = Z(!1), C = te(null), I = te(null);
|
|
407
407
|
oe(() => {
|
|
408
|
-
if (!
|
|
408
|
+
if (!g) return;
|
|
409
409
|
const f = (M) => {
|
|
410
410
|
C.current && !C.current.contains(M.target) && (N(!0), setTimeout(() => {
|
|
411
411
|
w(!1), N(!1);
|
|
412
412
|
}, 180));
|
|
413
413
|
};
|
|
414
414
|
return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
|
|
415
|
-
}, [
|
|
416
|
-
if (!
|
|
417
|
-
const f =
|
|
415
|
+
}, [g]), oe(() => {
|
|
416
|
+
if (!g) return;
|
|
417
|
+
const f = I.current;
|
|
418
418
|
if (!f) return;
|
|
419
419
|
const M = f.getBoundingClientRect();
|
|
420
|
-
|
|
421
|
-
}, [
|
|
420
|
+
T(M.right > window.innerWidth);
|
|
421
|
+
}, [g]);
|
|
422
422
|
const G = () => {
|
|
423
|
-
|
|
423
|
+
g ? (N(!0), setTimeout(() => {
|
|
424
424
|
w(!1), N(!1);
|
|
425
425
|
}, 180)) : (v(!0), w(!0), setTimeout(() => v(!1), 30));
|
|
426
426
|
};
|
|
@@ -429,26 +429,26 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
429
429
|
"button",
|
|
430
430
|
{
|
|
431
431
|
onClick: G,
|
|
432
|
-
className: `inline-flex items-center gap-2 ${s} bg-surface text-default border-2 border-border-default rounded-lg transition-all duration-300 hover:text-secondary hover:border-secondary hover:cursor-pointer shadow-secondary/30 ${
|
|
432
|
+
className: `inline-flex items-center gap-2 ${s} bg-surface text-default border-2 border-border-default rounded-lg transition-all duration-300 hover:text-secondary hover:border-secondary hover:cursor-pointer shadow-secondary/30 ${c}`,
|
|
433
433
|
"aria-haspopup": "menu",
|
|
434
|
-
"aria-expanded":
|
|
435
|
-
"aria-label": m ? void 0 : y ?? (typeof
|
|
434
|
+
"aria-expanded": g,
|
|
435
|
+
"aria-label": m ? void 0 : y ?? (typeof d == "string" ? d : "Open tabs"),
|
|
436
436
|
children: [
|
|
437
|
-
|
|
437
|
+
h ?? /* @__PURE__ */ t.jsxs("svg", { className: "w-5 h-5", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: [
|
|
438
438
|
/* @__PURE__ */ t.jsx("rect", { x: "3", y: "5", width: "14", height: "2", rx: "1" }),
|
|
439
439
|
/* @__PURE__ */ t.jsx("rect", { x: "3", y: "9", width: "14", height: "2", rx: "1" }),
|
|
440
440
|
/* @__PURE__ */ t.jsx("rect", { x: "3", y: "13", width: "14", height: "2", rx: "1" })
|
|
441
441
|
] }),
|
|
442
|
-
m && /* @__PURE__ */ t.jsx("span", { children:
|
|
442
|
+
m && /* @__PURE__ */ t.jsx("span", { children: d ?? r })
|
|
443
443
|
]
|
|
444
444
|
}
|
|
445
445
|
),
|
|
446
|
-
(
|
|
446
|
+
(g || A) && /* @__PURE__ */ t.jsx(
|
|
447
447
|
"div",
|
|
448
448
|
{
|
|
449
|
-
ref:
|
|
450
|
-
"aria-hidden": !
|
|
451
|
-
className: `absolute ${
|
|
449
|
+
ref: I,
|
|
450
|
+
"aria-hidden": !g,
|
|
451
|
+
className: `absolute ${$ ? "right-0" : "left-0"} mt-2 min-w-40 z-50 bg-surface border-2 border-border-default rounded-lg shadow-secondary overflow-hidden ${l}
|
|
452
452
|
transition-transform transition-opacity duration-200 ease-[cubic-bezier(.2,0,0,1)] transform-gpu origin-top will-change-transform will-change-opacity ${x || A ? "opacity-0 scale-y-0 pointer-events-none" : "opacity-100 scale-y-100 pointer-events-auto"}`,
|
|
453
453
|
children: /* @__PURE__ */ t.jsx("div", { className: "py-1", children: e.map((f) => /* @__PURE__ */ t.jsx(
|
|
454
454
|
"button",
|
|
@@ -466,24 +466,24 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
466
466
|
}
|
|
467
467
|
)
|
|
468
468
|
] }) });
|
|
469
|
-
},
|
|
469
|
+
}, ht = ({
|
|
470
470
|
tabs: e,
|
|
471
471
|
activeTab: r,
|
|
472
472
|
onTabChange: a,
|
|
473
473
|
size: s = "md",
|
|
474
474
|
mode: n = "scroll",
|
|
475
|
-
containerClassName:
|
|
475
|
+
containerClassName: c = "",
|
|
476
476
|
tabsClassName: l = "",
|
|
477
477
|
dropdownLabel: i,
|
|
478
|
-
anchorIcon:
|
|
479
|
-
showAnchorLabel:
|
|
478
|
+
anchorIcon: d,
|
|
479
|
+
showAnchorLabel: h = !0,
|
|
480
480
|
anchorAriaLabel: m,
|
|
481
481
|
closeOnSelect: y = !0,
|
|
482
482
|
anchorClassName: p = "",
|
|
483
|
-
menuClassName:
|
|
483
|
+
menuClassName: g = "",
|
|
484
484
|
menuItemClassName: w = ""
|
|
485
485
|
}) => {
|
|
486
|
-
const v = ((
|
|
486
|
+
const v = ((T) => V(T, ae.tabNavigation))(s), A = Ue(n, "scroll"), N = () => {
|
|
487
487
|
switch (A) {
|
|
488
488
|
case "scroll":
|
|
489
489
|
return "w-full overflow-x-auto overflow-y-hidden scrollbar-thin scrollbar-thumb-border-default scrollbar-track-transparent hover:scrollbar-thumb-secondary/50 py-1";
|
|
@@ -496,72 +496,74 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
496
496
|
default:
|
|
497
497
|
return "flex space-x-2";
|
|
498
498
|
}
|
|
499
|
-
},
|
|
499
|
+
}, $ = /* @__PURE__ */ t.jsx(t.Fragment, { children: e.map((T) => /* @__PURE__ */ t.jsx(
|
|
500
500
|
"button",
|
|
501
501
|
{
|
|
502
|
-
onClick: () => a(
|
|
502
|
+
onClick: () => a(T),
|
|
503
503
|
className: `
|
|
504
504
|
${v} font-bold transition-colors duration-200 rounded-t-lg cursor-pointer whitespace-nowrap flex-shrink-0 relative
|
|
505
505
|
after:content-[''] after:absolute after:left-0 after:right-0 after:-bottom-[2px] after:h-[2px] after:w-full after:scale-x-0 after:origin-center after:transition-transform after:duration-300 after:ease-out
|
|
506
506
|
before:content-[''] before:absolute before:left-1/2 before:-translate-x-1/2 before:-bottom-[6px] before:w-1.5 before:h-1.5 before:bg-accent before:rotate-45 before:rounded-[2px] before:opacity-0 before:transition-opacity before:duration-200
|
|
507
|
-
${r ===
|
|
507
|
+
${r === T ? "text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100" : "text-muted hover:text-secondary hover:before:opacity-70"}
|
|
508
508
|
${l}
|
|
509
509
|
`,
|
|
510
510
|
role: "tab",
|
|
511
|
-
"aria-selected": r ===
|
|
512
|
-
tabIndex: r ===
|
|
513
|
-
children:
|
|
511
|
+
"aria-selected": r === T,
|
|
512
|
+
tabIndex: r === T ? 0 : -1,
|
|
513
|
+
children: T
|
|
514
514
|
},
|
|
515
|
-
|
|
515
|
+
T
|
|
516
516
|
)) });
|
|
517
517
|
return A === "dropdown" ? /* @__PURE__ */ t.jsx(
|
|
518
|
-
|
|
518
|
+
gt,
|
|
519
519
|
{
|
|
520
520
|
tabs: e,
|
|
521
521
|
activeTab: r,
|
|
522
522
|
onTabChange: a,
|
|
523
523
|
sizeClasses: v,
|
|
524
|
-
containerClassName:
|
|
524
|
+
containerClassName: c,
|
|
525
525
|
anchorClassName: p,
|
|
526
|
-
menuClassName:
|
|
526
|
+
menuClassName: g,
|
|
527
527
|
menuItemClassName: w,
|
|
528
528
|
dropdownLabel: i,
|
|
529
|
-
anchorIcon:
|
|
530
|
-
showAnchorLabel:
|
|
529
|
+
anchorIcon: d,
|
|
530
|
+
showAnchorLabel: h,
|
|
531
531
|
anchorAriaLabel: m,
|
|
532
532
|
closeOnSelect: y
|
|
533
533
|
}
|
|
534
|
-
) : A === "scroll" ? /* @__PURE__ */ t.jsx("div", { className: `${N()} ${
|
|
535
|
-
}
|
|
534
|
+
) : A === "scroll" ? /* @__PURE__ */ t.jsx("div", { className: `${N()} ${c}`, role: "tablist", "aria-label": "Tabs", children: /* @__PURE__ */ t.jsx("div", { className: "w-max mx-auto flex space-x-2", children: $ }) }) : /* @__PURE__ */ t.jsx("div", { className: `${N()} ${c}`, role: "tablist", "aria-label": "Tabs", children: $ });
|
|
535
|
+
};
|
|
536
|
+
ht.displayName = "CyberUI.TabNavigation";
|
|
537
|
+
const xt = (e, r) => {
|
|
536
538
|
const a = new Array(e.length + r.length);
|
|
537
539
|
for (let s = 0; s < e.length; s++)
|
|
538
540
|
a[s] = e[s];
|
|
539
541
|
for (let s = 0; s < r.length; s++)
|
|
540
542
|
a[e.length + s] = r[s];
|
|
541
543
|
return a;
|
|
542
|
-
},
|
|
544
|
+
}, yt = (e, r) => ({
|
|
543
545
|
classGroupId: e,
|
|
544
546
|
validator: r
|
|
545
|
-
}),
|
|
547
|
+
}), Ve = (e = /* @__PURE__ */ new Map(), r = null, a) => ({
|
|
546
548
|
nextPart: e,
|
|
547
549
|
validators: r,
|
|
548
550
|
classGroupId: a
|
|
549
|
-
}), Ne = "-", ze = [],
|
|
550
|
-
const r =
|
|
551
|
+
}), Ne = "-", ze = [], vt = "arbitrary..", wt = (e) => {
|
|
552
|
+
const r = jt(e), {
|
|
551
553
|
conflictingClassGroups: a,
|
|
552
554
|
conflictingClassGroupModifiers: s
|
|
553
555
|
} = e;
|
|
554
556
|
return {
|
|
555
557
|
getClassGroupId: (l) => {
|
|
556
558
|
if (l.startsWith("[") && l.endsWith("]"))
|
|
557
|
-
return
|
|
558
|
-
const i = l.split(Ne),
|
|
559
|
-
return He(i,
|
|
559
|
+
return kt(l);
|
|
560
|
+
const i = l.split(Ne), d = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
561
|
+
return He(i, d, r);
|
|
560
562
|
},
|
|
561
563
|
getConflictingClassGroupIds: (l, i) => {
|
|
562
564
|
if (i) {
|
|
563
|
-
const
|
|
564
|
-
return
|
|
565
|
+
const d = s[l], h = a[l];
|
|
566
|
+
return d ? h ? xt(h, d) : d : h || ze;
|
|
565
567
|
}
|
|
566
568
|
return a[l] || ze;
|
|
567
569
|
}
|
|
@@ -569,77 +571,77 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
569
571
|
}, He = (e, r, a) => {
|
|
570
572
|
if (e.length - r === 0)
|
|
571
573
|
return a.classGroupId;
|
|
572
|
-
const n = e[r],
|
|
573
|
-
if (
|
|
574
|
-
const
|
|
575
|
-
if (
|
|
574
|
+
const n = e[r], c = a.nextPart.get(n);
|
|
575
|
+
if (c) {
|
|
576
|
+
const h = He(e, r + 1, c);
|
|
577
|
+
if (h) return h;
|
|
576
578
|
}
|
|
577
579
|
const l = a.validators;
|
|
578
580
|
if (l === null)
|
|
579
581
|
return;
|
|
580
|
-
const i = r === 0 ? e.join(Ne) : e.slice(r).join(Ne),
|
|
581
|
-
for (let
|
|
582
|
-
const m = l[
|
|
582
|
+
const i = r === 0 ? e.join(Ne) : e.slice(r).join(Ne), d = l.length;
|
|
583
|
+
for (let h = 0; h < d; h++) {
|
|
584
|
+
const m = l[h];
|
|
583
585
|
if (m.validator(i))
|
|
584
586
|
return m.classGroupId;
|
|
585
587
|
}
|
|
586
|
-
},
|
|
588
|
+
}, kt = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
587
589
|
const r = e.slice(1, -1), a = r.indexOf(":"), s = r.slice(0, a);
|
|
588
|
-
return s ?
|
|
589
|
-
})(),
|
|
590
|
+
return s ? vt + s : void 0;
|
|
591
|
+
})(), jt = (e) => {
|
|
590
592
|
const {
|
|
591
593
|
theme: r,
|
|
592
594
|
classGroups: a
|
|
593
595
|
} = e;
|
|
594
|
-
return
|
|
595
|
-
},
|
|
596
|
-
const a =
|
|
596
|
+
return Nt(a, r);
|
|
597
|
+
}, Nt = (e, r) => {
|
|
598
|
+
const a = Ve();
|
|
597
599
|
for (const s in e) {
|
|
598
600
|
const n = e[s];
|
|
599
|
-
|
|
601
|
+
Re(n, a, s, r);
|
|
600
602
|
}
|
|
601
603
|
return a;
|
|
602
|
-
},
|
|
604
|
+
}, Re = (e, r, a, s) => {
|
|
603
605
|
const n = e.length;
|
|
604
|
-
for (let
|
|
605
|
-
const l = e[
|
|
606
|
-
|
|
606
|
+
for (let c = 0; c < n; c++) {
|
|
607
|
+
const l = e[c];
|
|
608
|
+
Ct(l, r, a, s);
|
|
607
609
|
}
|
|
608
|
-
},
|
|
610
|
+
}, Ct = (e, r, a, s) => {
|
|
609
611
|
if (typeof e == "string") {
|
|
610
|
-
|
|
612
|
+
St(e, r, a);
|
|
611
613
|
return;
|
|
612
614
|
}
|
|
613
615
|
if (typeof e == "function") {
|
|
614
|
-
|
|
616
|
+
Et(e, r, a, s);
|
|
615
617
|
return;
|
|
616
618
|
}
|
|
617
|
-
|
|
618
|
-
},
|
|
619
|
+
Tt(e, r, a, s);
|
|
620
|
+
}, St = (e, r, a) => {
|
|
619
621
|
const s = e === "" ? r : Ye(r, e);
|
|
620
622
|
s.classGroupId = a;
|
|
621
|
-
},
|
|
622
|
-
if (
|
|
623
|
-
|
|
623
|
+
}, Et = (e, r, a, s) => {
|
|
624
|
+
if (_t(e)) {
|
|
625
|
+
Re(e(s), r, a, s);
|
|
624
626
|
return;
|
|
625
627
|
}
|
|
626
|
-
r.validators === null && (r.validators = []), r.validators.push(
|
|
627
|
-
},
|
|
628
|
-
const n = Object.entries(e),
|
|
629
|
-
for (let l = 0; l <
|
|
630
|
-
const [i,
|
|
631
|
-
|
|
628
|
+
r.validators === null && (r.validators = []), r.validators.push(yt(a, e));
|
|
629
|
+
}, Tt = (e, r, a, s) => {
|
|
630
|
+
const n = Object.entries(e), c = n.length;
|
|
631
|
+
for (let l = 0; l < c; l++) {
|
|
632
|
+
const [i, d] = n[l];
|
|
633
|
+
Re(d, Ye(r, i), a, s);
|
|
632
634
|
}
|
|
633
635
|
}, Ye = (e, r) => {
|
|
634
636
|
let a = e;
|
|
635
637
|
const s = r.split(Ne), n = s.length;
|
|
636
|
-
for (let
|
|
637
|
-
const l = s[
|
|
638
|
+
for (let c = 0; c < n; c++) {
|
|
639
|
+
const l = s[c];
|
|
638
640
|
let i = a.nextPart.get(l);
|
|
639
|
-
i || (i =
|
|
641
|
+
i || (i = Ve(), a.nextPart.set(l, i)), a = i;
|
|
640
642
|
}
|
|
641
643
|
return a;
|
|
642
|
-
},
|
|
644
|
+
}, _t = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, $t = (e) => {
|
|
643
645
|
if (e < 1)
|
|
644
646
|
return {
|
|
645
647
|
get: () => {
|
|
@@ -648,137 +650,137 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
648
650
|
}
|
|
649
651
|
};
|
|
650
652
|
let r = 0, a = /* @__PURE__ */ Object.create(null), s = /* @__PURE__ */ Object.create(null);
|
|
651
|
-
const n = (
|
|
652
|
-
a[
|
|
653
|
+
const n = (c, l) => {
|
|
654
|
+
a[c] = l, r++, r > e && (r = 0, s = a, a = /* @__PURE__ */ Object.create(null));
|
|
653
655
|
};
|
|
654
656
|
return {
|
|
655
|
-
get(
|
|
656
|
-
let l = a[
|
|
657
|
+
get(c) {
|
|
658
|
+
let l = a[c];
|
|
657
659
|
if (l !== void 0)
|
|
658
660
|
return l;
|
|
659
|
-
if ((l = s[
|
|
660
|
-
return n(
|
|
661
|
+
if ((l = s[c]) !== void 0)
|
|
662
|
+
return n(c, l), l;
|
|
661
663
|
},
|
|
662
|
-
set(
|
|
663
|
-
|
|
664
|
+
set(c, l) {
|
|
665
|
+
c in a ? a[c] = l : n(c, l);
|
|
664
666
|
}
|
|
665
667
|
};
|
|
666
|
-
}, Se = "!", Pe = ":",
|
|
668
|
+
}, Se = "!", Pe = ":", Rt = [], Oe = (e, r, a, s, n) => ({
|
|
667
669
|
modifiers: e,
|
|
668
670
|
hasImportantModifier: r,
|
|
669
671
|
baseClassName: a,
|
|
670
672
|
maybePostfixModifierPosition: s,
|
|
671
673
|
isExternal: n
|
|
672
|
-
}),
|
|
674
|
+
}), At = (e) => {
|
|
673
675
|
const {
|
|
674
676
|
prefix: r,
|
|
675
677
|
experimentalParseClassName: a
|
|
676
678
|
} = e;
|
|
677
679
|
let s = (n) => {
|
|
678
|
-
const
|
|
679
|
-
let l = 0, i = 0,
|
|
680
|
+
const c = [];
|
|
681
|
+
let l = 0, i = 0, d = 0, h;
|
|
680
682
|
const m = n.length;
|
|
681
683
|
for (let x = 0; x < m; x++) {
|
|
682
684
|
const v = n[x];
|
|
683
685
|
if (l === 0 && i === 0) {
|
|
684
686
|
if (v === Pe) {
|
|
685
|
-
|
|
687
|
+
c.push(n.slice(d, x)), d = x + 1;
|
|
686
688
|
continue;
|
|
687
689
|
}
|
|
688
690
|
if (v === "/") {
|
|
689
|
-
|
|
691
|
+
h = x;
|
|
690
692
|
continue;
|
|
691
693
|
}
|
|
692
694
|
}
|
|
693
695
|
v === "[" ? l++ : v === "]" ? l-- : v === "(" ? i++ : v === ")" && i--;
|
|
694
696
|
}
|
|
695
|
-
const y =
|
|
696
|
-
let p = y,
|
|
697
|
-
y.endsWith(Se) ? (p = y.slice(0, -1),
|
|
697
|
+
const y = c.length === 0 ? n : n.slice(d);
|
|
698
|
+
let p = y, g = !1;
|
|
699
|
+
y.endsWith(Se) ? (p = y.slice(0, -1), g = !0) : (
|
|
698
700
|
/**
|
|
699
701
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
700
702
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
701
703
|
*/
|
|
702
|
-
y.startsWith(Se) && (p = y.slice(1),
|
|
704
|
+
y.startsWith(Se) && (p = y.slice(1), g = !0)
|
|
703
705
|
);
|
|
704
|
-
const w =
|
|
705
|
-
return
|
|
706
|
+
const w = h && h > d ? h - d : void 0;
|
|
707
|
+
return Oe(c, g, p, w);
|
|
706
708
|
};
|
|
707
709
|
if (r) {
|
|
708
|
-
const n = r + Pe,
|
|
709
|
-
s = (l) => l.startsWith(n) ?
|
|
710
|
+
const n = r + Pe, c = s;
|
|
711
|
+
s = (l) => l.startsWith(n) ? c(l.slice(n.length)) : Oe(Rt, !1, l, void 0, !0);
|
|
710
712
|
}
|
|
711
713
|
if (a) {
|
|
712
714
|
const n = s;
|
|
713
|
-
s = (
|
|
714
|
-
className:
|
|
715
|
+
s = (c) => a({
|
|
716
|
+
className: c,
|
|
715
717
|
parseClassName: n
|
|
716
718
|
});
|
|
717
719
|
}
|
|
718
720
|
return s;
|
|
719
|
-
},
|
|
721
|
+
}, Mt = (e) => {
|
|
720
722
|
const r = /* @__PURE__ */ new Map();
|
|
721
723
|
return e.orderSensitiveModifiers.forEach((a, s) => {
|
|
722
724
|
r.set(a, 1e6 + s);
|
|
723
725
|
}), (a) => {
|
|
724
726
|
const s = [];
|
|
725
727
|
let n = [];
|
|
726
|
-
for (let
|
|
727
|
-
const l = a[
|
|
728
|
-
i ||
|
|
728
|
+
for (let c = 0; c < a.length; c++) {
|
|
729
|
+
const l = a[c], i = l[0] === "[", d = r.has(l);
|
|
730
|
+
i || d ? (n.length > 0 && (n.sort(), s.push(...n), n = []), s.push(l)) : n.push(l);
|
|
729
731
|
}
|
|
730
732
|
return n.length > 0 && (n.sort(), s.push(...n)), s;
|
|
731
733
|
};
|
|
732
|
-
},
|
|
733
|
-
cache:
|
|
734
|
-
parseClassName:
|
|
735
|
-
sortModifiers:
|
|
736
|
-
...
|
|
737
|
-
}),
|
|
734
|
+
}, Lt = (e) => ({
|
|
735
|
+
cache: $t(e.cacheSize),
|
|
736
|
+
parseClassName: At(e),
|
|
737
|
+
sortModifiers: Mt(e),
|
|
738
|
+
...wt(e)
|
|
739
|
+
}), It = /\s+/, zt = (e, r) => {
|
|
738
740
|
const {
|
|
739
741
|
parseClassName: a,
|
|
740
742
|
getClassGroupId: s,
|
|
741
743
|
getConflictingClassGroupIds: n,
|
|
742
|
-
sortModifiers:
|
|
743
|
-
} = r, l = [], i = e.trim().split(
|
|
744
|
-
let
|
|
745
|
-
for (let
|
|
746
|
-
const m = i[
|
|
744
|
+
sortModifiers: c
|
|
745
|
+
} = r, l = [], i = e.trim().split(It);
|
|
746
|
+
let d = "";
|
|
747
|
+
for (let h = i.length - 1; h >= 0; h -= 1) {
|
|
748
|
+
const m = i[h], {
|
|
747
749
|
isExternal: y,
|
|
748
750
|
modifiers: p,
|
|
749
|
-
hasImportantModifier:
|
|
751
|
+
hasImportantModifier: g,
|
|
750
752
|
baseClassName: w,
|
|
751
753
|
maybePostfixModifierPosition: x
|
|
752
754
|
} = a(m);
|
|
753
755
|
if (y) {
|
|
754
|
-
|
|
756
|
+
d = m + (d.length > 0 ? " " + d : d);
|
|
755
757
|
continue;
|
|
756
758
|
}
|
|
757
759
|
let v = !!x, A = s(v ? w.substring(0, x) : w);
|
|
758
760
|
if (!A) {
|
|
759
761
|
if (!v) {
|
|
760
|
-
|
|
762
|
+
d = m + (d.length > 0 ? " " + d : d);
|
|
761
763
|
continue;
|
|
762
764
|
}
|
|
763
765
|
if (A = s(w), !A) {
|
|
764
|
-
|
|
766
|
+
d = m + (d.length > 0 ? " " + d : d);
|
|
765
767
|
continue;
|
|
766
768
|
}
|
|
767
769
|
v = !1;
|
|
768
770
|
}
|
|
769
|
-
const N = p.length === 0 ? "" : p.length === 1 ? p[0] :
|
|
770
|
-
if (l.indexOf(
|
|
771
|
+
const N = p.length === 0 ? "" : p.length === 1 ? p[0] : c(p).join(":"), $ = g ? N + Se : N, T = $ + A;
|
|
772
|
+
if (l.indexOf(T) > -1)
|
|
771
773
|
continue;
|
|
772
|
-
l.push(
|
|
774
|
+
l.push(T);
|
|
773
775
|
const C = n(A, v);
|
|
774
|
-
for (let
|
|
775
|
-
const G = C[
|
|
776
|
-
l.push(
|
|
776
|
+
for (let I = 0; I < C.length; ++I) {
|
|
777
|
+
const G = C[I];
|
|
778
|
+
l.push($ + G);
|
|
777
779
|
}
|
|
778
|
-
|
|
780
|
+
d = m + (d.length > 0 ? " " + d : d);
|
|
779
781
|
}
|
|
780
|
-
return
|
|
781
|
-
},
|
|
782
|
+
return d;
|
|
783
|
+
}, Pt = (...e) => {
|
|
782
784
|
let r = 0, a, s, n = "";
|
|
783
785
|
for (; r < e.length; )
|
|
784
786
|
(a = e[r++]) && (s = Ze(a)) && (n && (n += " "), n += s);
|
|
@@ -790,35 +792,35 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
790
792
|
for (let s = 0; s < e.length; s++)
|
|
791
793
|
e[s] && (r = Ze(e[s])) && (a && (a += " "), a += r);
|
|
792
794
|
return a;
|
|
793
|
-
},
|
|
794
|
-
let a, s, n,
|
|
795
|
-
const l = (
|
|
796
|
-
const
|
|
797
|
-
return a =
|
|
798
|
-
}, i = (
|
|
799
|
-
const
|
|
800
|
-
if (
|
|
801
|
-
return
|
|
802
|
-
const m =
|
|
803
|
-
return n(
|
|
795
|
+
}, Ot = (e, ...r) => {
|
|
796
|
+
let a, s, n, c;
|
|
797
|
+
const l = (d) => {
|
|
798
|
+
const h = r.reduce((m, y) => y(m), e());
|
|
799
|
+
return a = Lt(h), s = a.cache.get, n = a.cache.set, c = i, i(d);
|
|
800
|
+
}, i = (d) => {
|
|
801
|
+
const h = s(d);
|
|
802
|
+
if (h)
|
|
803
|
+
return h;
|
|
804
|
+
const m = zt(d, a);
|
|
805
|
+
return n(d, m), m;
|
|
804
806
|
};
|
|
805
|
-
return
|
|
806
|
-
},
|
|
807
|
-
const r = (a) => a[e] ||
|
|
807
|
+
return c = l, (...d) => c(Pt(...d));
|
|
808
|
+
}, Dt = [], J = (e) => {
|
|
809
|
+
const r = (a) => a[e] || Dt;
|
|
808
810
|
return r.isThemeGetter = !0, r;
|
|
809
|
-
}, Xe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qe = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
811
|
+
}, Xe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Gt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Wt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Bt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ft = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ut = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Vt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ie = (e) => Gt.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), ce = (e) => !!e && Number.isInteger(Number(e)), Ce = (e) => e.endsWith("%") && z(e.slice(0, -1)), le = (e) => Wt.test(e), Ke = () => !0, Ht = (e) => (
|
|
810
812
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
811
813
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
812
814
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
813
|
-
|
|
814
|
-
),
|
|
815
|
+
Bt.test(e) && !Ft.test(e)
|
|
816
|
+
), Ae = () => !1, Yt = (e) => Ut.test(e), Zt = (e) => Vt.test(e), Xt = (e) => !k(e) && !j(e), qt = (e) => de(e, et, Ae), k = (e) => Xe.test(e), ue = (e) => de(e, tt, Ht), De = (e) => de(e, or, z), Kt = (e) => de(e, st, Ke), Jt = (e) => de(e, rt, Ae), Ge = (e) => de(e, Je, Ae), Qt = (e) => de(e, Qe, Zt), we = (e) => de(e, ot, Yt), j = (e) => qe.test(e), xe = (e) => me(e, tt), er = (e) => me(e, rt), We = (e) => me(e, Je), tr = (e) => me(e, et), rr = (e) => me(e, Qe), ke = (e) => me(e, ot, !0), sr = (e) => me(e, st, !0), de = (e, r, a) => {
|
|
815
817
|
const s = Xe.exec(e);
|
|
816
818
|
return s ? s[1] ? r(s[1]) : a(s[2]) : !1;
|
|
817
819
|
}, me = (e, r, a = !1) => {
|
|
818
820
|
const s = qe.exec(e);
|
|
819
821
|
return s ? s[1] ? r(s[1]) : a : !1;
|
|
820
|
-
}, Je = (e) => e === "position" || e === "percentage", Qe = (e) => e === "image" || e === "url", et = (e) => e === "length" || e === "size" || e === "bg-size", tt = (e) => e === "length",
|
|
821
|
-
const e = J("color"), r = J("font"), a = J("text"), s = J("font-weight"), n = J("tracking"),
|
|
822
|
+
}, Je = (e) => e === "position" || e === "percentage", Qe = (e) => e === "image" || e === "url", et = (e) => e === "length" || e === "size" || e === "bg-size", tt = (e) => e === "length", or = (e) => e === "number", rt = (e) => e === "family-name", st = (e) => e === "number" || e === "weight", ot = (e) => e === "shadow", ar = () => {
|
|
823
|
+
const e = J("color"), r = J("font"), a = J("text"), s = J("font-weight"), n = J("tracking"), c = J("leading"), l = J("breakpoint"), i = J("container"), d = J("spacing"), h = J("radius"), m = J("shadow"), y = J("inset-shadow"), p = J("text-shadow"), g = J("drop-shadow"), w = J("blur"), x = J("perspective"), v = J("aspect"), A = J("ease"), N = J("animate"), $ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], T = () => [
|
|
822
824
|
"center",
|
|
823
825
|
"top",
|
|
824
826
|
"bottom",
|
|
@@ -836,30 +838,30 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
836
838
|
"bottom-left",
|
|
837
839
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
838
840
|
"left-bottom"
|
|
839
|
-
], C = () => [
|
|
841
|
+
], C = () => [...T(), j, k], I = () => ["auto", "hidden", "clip", "visible", "scroll"], G = () => ["auto", "contain", "none"], f = () => [j, k, d], M = () => [ie, "full", "auto", ...f()], U = () => [ce, "none", "subgrid", j, k], X = () => ["auto", {
|
|
840
842
|
span: ["full", ce, j, k]
|
|
841
|
-
}, ce, j, k], Q = () => [ce, "auto", j, k], re = () => ["auto", "min", "max", "fr", j, k], ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"],
|
|
843
|
+
}, ce, j, k], Q = () => [ce, "auto", j, k], re = () => ["auto", "min", "max", "fr", j, k], ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], F = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], H = () => ["auto", ...f()], q = () => [ie, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], Y = () => [ie, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...f()], K = () => [ie, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...f()], o = () => [e, j, k], u = () => [...T(), We, Ge, {
|
|
842
844
|
position: [j, k]
|
|
843
845
|
}], b = () => ["no-repeat", {
|
|
844
846
|
repeat: ["", "x", "y", "space", "round"]
|
|
845
|
-
}], R = () => ["auto", "cover", "contain",
|
|
847
|
+
}], R = () => ["auto", "cover", "contain", tr, qt, {
|
|
846
848
|
size: [j, k]
|
|
847
849
|
}], S = () => [Ce, xe, ue], E = () => [
|
|
848
850
|
// Deprecated since Tailwind CSS v4.0.0
|
|
849
851
|
"",
|
|
850
852
|
"none",
|
|
851
853
|
"full",
|
|
852
|
-
|
|
854
|
+
h,
|
|
853
855
|
j,
|
|
854
856
|
k
|
|
855
|
-
],
|
|
857
|
+
], P = () => ["", z, xe, ue], W = () => ["solid", "dashed", "dotted", "double"], O = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], L = () => [z, Ce, We, Ge], B = () => [
|
|
856
858
|
// Deprecated since Tailwind CSS v4.0.0
|
|
857
859
|
"",
|
|
858
860
|
"none",
|
|
859
861
|
w,
|
|
860
862
|
j,
|
|
861
863
|
k
|
|
862
|
-
], se = () => ["none",
|
|
864
|
+
], se = () => ["none", z, j, k], fe = () => ["none", z, j, k], be = () => [z, j, k], ye = () => [ie, "full", ...f()];
|
|
863
865
|
return {
|
|
864
866
|
cacheSize: 500,
|
|
865
867
|
theme: {
|
|
@@ -871,14 +873,14 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
871
873
|
container: [le],
|
|
872
874
|
"drop-shadow": [le],
|
|
873
875
|
ease: ["in", "out", "in-out"],
|
|
874
|
-
font: [
|
|
876
|
+
font: [Xt],
|
|
875
877
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
876
878
|
"inset-shadow": [le],
|
|
877
879
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
878
880
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
879
881
|
radius: [le],
|
|
880
882
|
shadow: [le],
|
|
881
|
-
spacing: ["px",
|
|
883
|
+
spacing: ["px", z],
|
|
882
884
|
text: [le],
|
|
883
885
|
"text-shadow": [le],
|
|
884
886
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -905,21 +907,21 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
905
907
|
* @see https://tailwindcss.com/docs/columns
|
|
906
908
|
*/
|
|
907
909
|
columns: [{
|
|
908
|
-
columns: [
|
|
910
|
+
columns: [z, k, j, i]
|
|
909
911
|
}],
|
|
910
912
|
/**
|
|
911
913
|
* Break After
|
|
912
914
|
* @see https://tailwindcss.com/docs/break-after
|
|
913
915
|
*/
|
|
914
916
|
"break-after": [{
|
|
915
|
-
"break-after":
|
|
917
|
+
"break-after": $()
|
|
916
918
|
}],
|
|
917
919
|
/**
|
|
918
920
|
* Break Before
|
|
919
921
|
* @see https://tailwindcss.com/docs/break-before
|
|
920
922
|
*/
|
|
921
923
|
"break-before": [{
|
|
922
|
-
"break-before":
|
|
924
|
+
"break-before": $()
|
|
923
925
|
}],
|
|
924
926
|
/**
|
|
925
927
|
* Break Inside
|
|
@@ -990,21 +992,21 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
990
992
|
* @see https://tailwindcss.com/docs/overflow
|
|
991
993
|
*/
|
|
992
994
|
overflow: [{
|
|
993
|
-
overflow:
|
|
995
|
+
overflow: I()
|
|
994
996
|
}],
|
|
995
997
|
/**
|
|
996
998
|
* Overflow X
|
|
997
999
|
* @see https://tailwindcss.com/docs/overflow
|
|
998
1000
|
*/
|
|
999
1001
|
"overflow-x": [{
|
|
1000
|
-
"overflow-x":
|
|
1002
|
+
"overflow-x": I()
|
|
1001
1003
|
}],
|
|
1002
1004
|
/**
|
|
1003
1005
|
* Overflow Y
|
|
1004
1006
|
* @see https://tailwindcss.com/docs/overflow
|
|
1005
1007
|
*/
|
|
1006
1008
|
"overflow-y": [{
|
|
1007
|
-
"overflow-y":
|
|
1009
|
+
"overflow-y": I()
|
|
1008
1010
|
}],
|
|
1009
1011
|
/**
|
|
1010
1012
|
* Overscroll Behavior
|
|
@@ -1162,21 +1164,21 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1162
1164
|
* @see https://tailwindcss.com/docs/flex
|
|
1163
1165
|
*/
|
|
1164
1166
|
flex: [{
|
|
1165
|
-
flex: [
|
|
1167
|
+
flex: [z, ie, "auto", "initial", "none", k]
|
|
1166
1168
|
}],
|
|
1167
1169
|
/**
|
|
1168
1170
|
* Flex Grow
|
|
1169
1171
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1170
1172
|
*/
|
|
1171
1173
|
grow: [{
|
|
1172
|
-
grow: ["",
|
|
1174
|
+
grow: ["", z, j, k]
|
|
1173
1175
|
}],
|
|
1174
1176
|
/**
|
|
1175
1177
|
* Flex Shrink
|
|
1176
1178
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1177
1179
|
*/
|
|
1178
1180
|
shrink: [{
|
|
1179
|
-
shrink: ["",
|
|
1181
|
+
shrink: ["", z, j, k]
|
|
1180
1182
|
}],
|
|
1181
1183
|
/**
|
|
1182
1184
|
* Order
|
|
@@ -1190,7 +1192,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1190
1192
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1191
1193
|
*/
|
|
1192
1194
|
"grid-cols": [{
|
|
1193
|
-
"grid-cols":
|
|
1195
|
+
"grid-cols": U()
|
|
1194
1196
|
}],
|
|
1195
1197
|
/**
|
|
1196
1198
|
* Grid Column Start / End
|
|
@@ -1218,7 +1220,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1218
1220
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1219
1221
|
*/
|
|
1220
1222
|
"grid-rows": [{
|
|
1221
|
-
"grid-rows":
|
|
1223
|
+
"grid-rows": U()
|
|
1222
1224
|
}],
|
|
1223
1225
|
/**
|
|
1224
1226
|
* Grid Row Start / End
|
|
@@ -1295,14 +1297,14 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1295
1297
|
* @see https://tailwindcss.com/docs/justify-items
|
|
1296
1298
|
*/
|
|
1297
1299
|
"justify-items": [{
|
|
1298
|
-
"justify-items": [...
|
|
1300
|
+
"justify-items": [...F(), "normal"]
|
|
1299
1301
|
}],
|
|
1300
1302
|
/**
|
|
1301
1303
|
* Justify Self
|
|
1302
1304
|
* @see https://tailwindcss.com/docs/justify-self
|
|
1303
1305
|
*/
|
|
1304
1306
|
"justify-self": [{
|
|
1305
|
-
"justify-self": ["auto", ...
|
|
1307
|
+
"justify-self": ["auto", ...F()]
|
|
1306
1308
|
}],
|
|
1307
1309
|
/**
|
|
1308
1310
|
* Align Content
|
|
@@ -1316,7 +1318,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1316
1318
|
* @see https://tailwindcss.com/docs/align-items
|
|
1317
1319
|
*/
|
|
1318
1320
|
"align-items": [{
|
|
1319
|
-
items: [...
|
|
1321
|
+
items: [...F(), {
|
|
1320
1322
|
baseline: ["", "last"]
|
|
1321
1323
|
}]
|
|
1322
1324
|
}],
|
|
@@ -1325,7 +1327,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1325
1327
|
* @see https://tailwindcss.com/docs/align-self
|
|
1326
1328
|
*/
|
|
1327
1329
|
"align-self": [{
|
|
1328
|
-
self: ["auto", ...
|
|
1330
|
+
self: ["auto", ...F(), {
|
|
1329
1331
|
baseline: ["", "last"]
|
|
1330
1332
|
}]
|
|
1331
1333
|
}],
|
|
@@ -1341,14 +1343,14 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1341
1343
|
* @see https://tailwindcss.com/docs/place-items
|
|
1342
1344
|
*/
|
|
1343
1345
|
"place-items": [{
|
|
1344
|
-
"place-items": [...
|
|
1346
|
+
"place-items": [...F(), "baseline"]
|
|
1345
1347
|
}],
|
|
1346
1348
|
/**
|
|
1347
1349
|
* Place Self
|
|
1348
1350
|
* @see https://tailwindcss.com/docs/place-self
|
|
1349
1351
|
*/
|
|
1350
1352
|
"place-self": [{
|
|
1351
|
-
"place-self": ["auto", ...
|
|
1353
|
+
"place-self": ["auto", ...F()]
|
|
1352
1354
|
}],
|
|
1353
1355
|
// Spacing
|
|
1354
1356
|
/**
|
|
@@ -1665,7 +1667,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1665
1667
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1666
1668
|
*/
|
|
1667
1669
|
"font-weight": [{
|
|
1668
|
-
font: [s,
|
|
1670
|
+
font: [s, sr, Kt]
|
|
1669
1671
|
}],
|
|
1670
1672
|
/**
|
|
1671
1673
|
* Font Stretch
|
|
@@ -1679,7 +1681,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1679
1681
|
* @see https://tailwindcss.com/docs/font-family
|
|
1680
1682
|
*/
|
|
1681
1683
|
"font-family": [{
|
|
1682
|
-
font: [
|
|
1684
|
+
font: [er, Jt, r]
|
|
1683
1685
|
}],
|
|
1684
1686
|
/**
|
|
1685
1687
|
* Font Feature Settings
|
|
@@ -1730,7 +1732,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1730
1732
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1731
1733
|
*/
|
|
1732
1734
|
"line-clamp": [{
|
|
1733
|
-
"line-clamp": [
|
|
1735
|
+
"line-clamp": [z, "none", j, De]
|
|
1734
1736
|
}],
|
|
1735
1737
|
/**
|
|
1736
1738
|
* Line Height
|
|
@@ -1739,7 +1741,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1739
1741
|
leading: [{
|
|
1740
1742
|
leading: [
|
|
1741
1743
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1742
|
-
|
|
1744
|
+
c,
|
|
1743
1745
|
...f()
|
|
1744
1746
|
]
|
|
1745
1747
|
}],
|
|
@@ -1803,7 +1805,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1803
1805
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1804
1806
|
*/
|
|
1805
1807
|
"text-decoration-thickness": [{
|
|
1806
|
-
decoration: [
|
|
1808
|
+
decoration: [z, "from-font", "auto", j, ue]
|
|
1807
1809
|
}],
|
|
1808
1810
|
/**
|
|
1809
1811
|
* Text Decoration Color
|
|
@@ -1817,7 +1819,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1817
1819
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1818
1820
|
*/
|
|
1819
1821
|
"underline-offset": [{
|
|
1820
|
-
"underline-offset": [
|
|
1822
|
+
"underline-offset": [z, "auto", j, k]
|
|
1821
1823
|
}],
|
|
1822
1824
|
/**
|
|
1823
1825
|
* Text Transform
|
|
@@ -1941,7 +1943,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
1941
1943
|
}, ce, j, k],
|
|
1942
1944
|
radial: ["", j, k],
|
|
1943
1945
|
conic: [ce, j, k]
|
|
1944
|
-
},
|
|
1946
|
+
}, rr, Qt]
|
|
1945
1947
|
}],
|
|
1946
1948
|
/**
|
|
1947
1949
|
* Background Color
|
|
@@ -2105,84 +2107,84 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2105
2107
|
* @see https://tailwindcss.com/docs/border-width
|
|
2106
2108
|
*/
|
|
2107
2109
|
"border-w": [{
|
|
2108
|
-
border:
|
|
2110
|
+
border: P()
|
|
2109
2111
|
}],
|
|
2110
2112
|
/**
|
|
2111
2113
|
* Border Width Inline
|
|
2112
2114
|
* @see https://tailwindcss.com/docs/border-width
|
|
2113
2115
|
*/
|
|
2114
2116
|
"border-w-x": [{
|
|
2115
|
-
"border-x":
|
|
2117
|
+
"border-x": P()
|
|
2116
2118
|
}],
|
|
2117
2119
|
/**
|
|
2118
2120
|
* Border Width Block
|
|
2119
2121
|
* @see https://tailwindcss.com/docs/border-width
|
|
2120
2122
|
*/
|
|
2121
2123
|
"border-w-y": [{
|
|
2122
|
-
"border-y":
|
|
2124
|
+
"border-y": P()
|
|
2123
2125
|
}],
|
|
2124
2126
|
/**
|
|
2125
2127
|
* Border Width Inline Start
|
|
2126
2128
|
* @see https://tailwindcss.com/docs/border-width
|
|
2127
2129
|
*/
|
|
2128
2130
|
"border-w-s": [{
|
|
2129
|
-
"border-s":
|
|
2131
|
+
"border-s": P()
|
|
2130
2132
|
}],
|
|
2131
2133
|
/**
|
|
2132
2134
|
* Border Width Inline End
|
|
2133
2135
|
* @see https://tailwindcss.com/docs/border-width
|
|
2134
2136
|
*/
|
|
2135
2137
|
"border-w-e": [{
|
|
2136
|
-
"border-e":
|
|
2138
|
+
"border-e": P()
|
|
2137
2139
|
}],
|
|
2138
2140
|
/**
|
|
2139
2141
|
* Border Width Block Start
|
|
2140
2142
|
* @see https://tailwindcss.com/docs/border-width
|
|
2141
2143
|
*/
|
|
2142
2144
|
"border-w-bs": [{
|
|
2143
|
-
"border-bs":
|
|
2145
|
+
"border-bs": P()
|
|
2144
2146
|
}],
|
|
2145
2147
|
/**
|
|
2146
2148
|
* Border Width Block End
|
|
2147
2149
|
* @see https://tailwindcss.com/docs/border-width
|
|
2148
2150
|
*/
|
|
2149
2151
|
"border-w-be": [{
|
|
2150
|
-
"border-be":
|
|
2152
|
+
"border-be": P()
|
|
2151
2153
|
}],
|
|
2152
2154
|
/**
|
|
2153
2155
|
* Border Width Top
|
|
2154
2156
|
* @see https://tailwindcss.com/docs/border-width
|
|
2155
2157
|
*/
|
|
2156
2158
|
"border-w-t": [{
|
|
2157
|
-
"border-t":
|
|
2159
|
+
"border-t": P()
|
|
2158
2160
|
}],
|
|
2159
2161
|
/**
|
|
2160
2162
|
* Border Width Right
|
|
2161
2163
|
* @see https://tailwindcss.com/docs/border-width
|
|
2162
2164
|
*/
|
|
2163
2165
|
"border-w-r": [{
|
|
2164
|
-
"border-r":
|
|
2166
|
+
"border-r": P()
|
|
2165
2167
|
}],
|
|
2166
2168
|
/**
|
|
2167
2169
|
* Border Width Bottom
|
|
2168
2170
|
* @see https://tailwindcss.com/docs/border-width
|
|
2169
2171
|
*/
|
|
2170
2172
|
"border-w-b": [{
|
|
2171
|
-
"border-b":
|
|
2173
|
+
"border-b": P()
|
|
2172
2174
|
}],
|
|
2173
2175
|
/**
|
|
2174
2176
|
* Border Width Left
|
|
2175
2177
|
* @see https://tailwindcss.com/docs/border-width
|
|
2176
2178
|
*/
|
|
2177
2179
|
"border-w-l": [{
|
|
2178
|
-
"border-l":
|
|
2180
|
+
"border-l": P()
|
|
2179
2181
|
}],
|
|
2180
2182
|
/**
|
|
2181
2183
|
* Divide Width X
|
|
2182
2184
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2183
2185
|
*/
|
|
2184
2186
|
"divide-x": [{
|
|
2185
|
-
"divide-x":
|
|
2187
|
+
"divide-x": P()
|
|
2186
2188
|
}],
|
|
2187
2189
|
/**
|
|
2188
2190
|
* Divide Width X Reverse
|
|
@@ -2194,7 +2196,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2194
2196
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2195
2197
|
*/
|
|
2196
2198
|
"divide-y": [{
|
|
2197
|
-
"divide-y":
|
|
2199
|
+
"divide-y": P()
|
|
2198
2200
|
}],
|
|
2199
2201
|
/**
|
|
2200
2202
|
* Divide Width Y Reverse
|
|
@@ -2311,14 +2313,14 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2311
2313
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2312
2314
|
*/
|
|
2313
2315
|
"outline-offset": [{
|
|
2314
|
-
"outline-offset": [
|
|
2316
|
+
"outline-offset": [z, j, k]
|
|
2315
2317
|
}],
|
|
2316
2318
|
/**
|
|
2317
2319
|
* Outline Width
|
|
2318
2320
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2319
2321
|
*/
|
|
2320
2322
|
"outline-w": [{
|
|
2321
|
-
outline: ["",
|
|
2323
|
+
outline: ["", z, xe, ue]
|
|
2322
2324
|
}],
|
|
2323
2325
|
/**
|
|
2324
2326
|
* Outline Color
|
|
@@ -2370,7 +2372,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2370
2372
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2371
2373
|
*/
|
|
2372
2374
|
"ring-w": [{
|
|
2373
|
-
ring:
|
|
2375
|
+
ring: P()
|
|
2374
2376
|
}],
|
|
2375
2377
|
/**
|
|
2376
2378
|
* Ring Width Inset
|
|
@@ -2393,7 +2395,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2393
2395
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2394
2396
|
*/
|
|
2395
2397
|
"ring-offset-w": [{
|
|
2396
|
-
"ring-offset": [
|
|
2398
|
+
"ring-offset": [z, ue]
|
|
2397
2399
|
}],
|
|
2398
2400
|
/**
|
|
2399
2401
|
* Ring Offset Color
|
|
@@ -2409,7 +2411,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2409
2411
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2410
2412
|
*/
|
|
2411
2413
|
"inset-ring-w": [{
|
|
2412
|
-
"inset-ring":
|
|
2414
|
+
"inset-ring": P()
|
|
2413
2415
|
}],
|
|
2414
2416
|
/**
|
|
2415
2417
|
* Inset Ring Color
|
|
@@ -2437,7 +2439,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2437
2439
|
* @see https://tailwindcss.com/docs/opacity
|
|
2438
2440
|
*/
|
|
2439
2441
|
opacity: [{
|
|
2440
|
-
opacity: [
|
|
2442
|
+
opacity: [z, j, k]
|
|
2441
2443
|
}],
|
|
2442
2444
|
/**
|
|
2443
2445
|
* Mix Blend Mode
|
|
@@ -2472,7 +2474,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2472
2474
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2473
2475
|
*/
|
|
2474
2476
|
"mask-image-linear-pos": [{
|
|
2475
|
-
"mask-linear": [
|
|
2477
|
+
"mask-linear": [z]
|
|
2476
2478
|
}],
|
|
2477
2479
|
"mask-image-linear-from-pos": [{
|
|
2478
2480
|
"mask-linear-from": L()
|
|
@@ -2583,10 +2585,10 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2583
2585
|
}]
|
|
2584
2586
|
}],
|
|
2585
2587
|
"mask-image-radial-pos": [{
|
|
2586
|
-
"mask-radial-at":
|
|
2588
|
+
"mask-radial-at": T()
|
|
2587
2589
|
}],
|
|
2588
2590
|
"mask-image-conic-pos": [{
|
|
2589
|
-
"mask-conic": [
|
|
2591
|
+
"mask-conic": [z]
|
|
2590
2592
|
}],
|
|
2591
2593
|
"mask-image-conic-from-pos": [{
|
|
2592
2594
|
"mask-conic-from": L()
|
|
@@ -2670,21 +2672,21 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2670
2672
|
* @see https://tailwindcss.com/docs/blur
|
|
2671
2673
|
*/
|
|
2672
2674
|
blur: [{
|
|
2673
|
-
blur:
|
|
2675
|
+
blur: B()
|
|
2674
2676
|
}],
|
|
2675
2677
|
/**
|
|
2676
2678
|
* Brightness
|
|
2677
2679
|
* @see https://tailwindcss.com/docs/brightness
|
|
2678
2680
|
*/
|
|
2679
2681
|
brightness: [{
|
|
2680
|
-
brightness: [
|
|
2682
|
+
brightness: [z, j, k]
|
|
2681
2683
|
}],
|
|
2682
2684
|
/**
|
|
2683
2685
|
* Contrast
|
|
2684
2686
|
* @see https://tailwindcss.com/docs/contrast
|
|
2685
2687
|
*/
|
|
2686
2688
|
contrast: [{
|
|
2687
|
-
contrast: [
|
|
2689
|
+
contrast: [z, j, k]
|
|
2688
2690
|
}],
|
|
2689
2691
|
/**
|
|
2690
2692
|
* Drop Shadow
|
|
@@ -2695,7 +2697,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2695
2697
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2696
2698
|
"",
|
|
2697
2699
|
"none",
|
|
2698
|
-
|
|
2700
|
+
g,
|
|
2699
2701
|
ke,
|
|
2700
2702
|
we
|
|
2701
2703
|
]
|
|
@@ -2712,35 +2714,35 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2712
2714
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2713
2715
|
*/
|
|
2714
2716
|
grayscale: [{
|
|
2715
|
-
grayscale: ["",
|
|
2717
|
+
grayscale: ["", z, j, k]
|
|
2716
2718
|
}],
|
|
2717
2719
|
/**
|
|
2718
2720
|
* Hue Rotate
|
|
2719
2721
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2720
2722
|
*/
|
|
2721
2723
|
"hue-rotate": [{
|
|
2722
|
-
"hue-rotate": [
|
|
2724
|
+
"hue-rotate": [z, j, k]
|
|
2723
2725
|
}],
|
|
2724
2726
|
/**
|
|
2725
2727
|
* Invert
|
|
2726
2728
|
* @see https://tailwindcss.com/docs/invert
|
|
2727
2729
|
*/
|
|
2728
2730
|
invert: [{
|
|
2729
|
-
invert: ["",
|
|
2731
|
+
invert: ["", z, j, k]
|
|
2730
2732
|
}],
|
|
2731
2733
|
/**
|
|
2732
2734
|
* Saturate
|
|
2733
2735
|
* @see https://tailwindcss.com/docs/saturate
|
|
2734
2736
|
*/
|
|
2735
2737
|
saturate: [{
|
|
2736
|
-
saturate: [
|
|
2738
|
+
saturate: [z, j, k]
|
|
2737
2739
|
}],
|
|
2738
2740
|
/**
|
|
2739
2741
|
* Sepia
|
|
2740
2742
|
* @see https://tailwindcss.com/docs/sepia
|
|
2741
2743
|
*/
|
|
2742
2744
|
sepia: [{
|
|
2743
|
-
sepia: ["",
|
|
2745
|
+
sepia: ["", z, j, k]
|
|
2744
2746
|
}],
|
|
2745
2747
|
/**
|
|
2746
2748
|
* Backdrop Filter
|
|
@@ -2760,63 +2762,63 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2760
2762
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2761
2763
|
*/
|
|
2762
2764
|
"backdrop-blur": [{
|
|
2763
|
-
"backdrop-blur":
|
|
2765
|
+
"backdrop-blur": B()
|
|
2764
2766
|
}],
|
|
2765
2767
|
/**
|
|
2766
2768
|
* Backdrop Brightness
|
|
2767
2769
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2768
2770
|
*/
|
|
2769
2771
|
"backdrop-brightness": [{
|
|
2770
|
-
"backdrop-brightness": [
|
|
2772
|
+
"backdrop-brightness": [z, j, k]
|
|
2771
2773
|
}],
|
|
2772
2774
|
/**
|
|
2773
2775
|
* Backdrop Contrast
|
|
2774
2776
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2775
2777
|
*/
|
|
2776
2778
|
"backdrop-contrast": [{
|
|
2777
|
-
"backdrop-contrast": [
|
|
2779
|
+
"backdrop-contrast": [z, j, k]
|
|
2778
2780
|
}],
|
|
2779
2781
|
/**
|
|
2780
2782
|
* Backdrop Grayscale
|
|
2781
2783
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2782
2784
|
*/
|
|
2783
2785
|
"backdrop-grayscale": [{
|
|
2784
|
-
"backdrop-grayscale": ["",
|
|
2786
|
+
"backdrop-grayscale": ["", z, j, k]
|
|
2785
2787
|
}],
|
|
2786
2788
|
/**
|
|
2787
2789
|
* Backdrop Hue Rotate
|
|
2788
2790
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2789
2791
|
*/
|
|
2790
2792
|
"backdrop-hue-rotate": [{
|
|
2791
|
-
"backdrop-hue-rotate": [
|
|
2793
|
+
"backdrop-hue-rotate": [z, j, k]
|
|
2792
2794
|
}],
|
|
2793
2795
|
/**
|
|
2794
2796
|
* Backdrop Invert
|
|
2795
2797
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2796
2798
|
*/
|
|
2797
2799
|
"backdrop-invert": [{
|
|
2798
|
-
"backdrop-invert": ["",
|
|
2800
|
+
"backdrop-invert": ["", z, j, k]
|
|
2799
2801
|
}],
|
|
2800
2802
|
/**
|
|
2801
2803
|
* Backdrop Opacity
|
|
2802
2804
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2803
2805
|
*/
|
|
2804
2806
|
"backdrop-opacity": [{
|
|
2805
|
-
"backdrop-opacity": [
|
|
2807
|
+
"backdrop-opacity": [z, j, k]
|
|
2806
2808
|
}],
|
|
2807
2809
|
/**
|
|
2808
2810
|
* Backdrop Saturate
|
|
2809
2811
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2810
2812
|
*/
|
|
2811
2813
|
"backdrop-saturate": [{
|
|
2812
|
-
"backdrop-saturate": [
|
|
2814
|
+
"backdrop-saturate": [z, j, k]
|
|
2813
2815
|
}],
|
|
2814
2816
|
/**
|
|
2815
2817
|
* Backdrop Sepia
|
|
2816
2818
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2817
2819
|
*/
|
|
2818
2820
|
"backdrop-sepia": [{
|
|
2819
|
-
"backdrop-sepia": ["",
|
|
2821
|
+
"backdrop-sepia": ["", z, j, k]
|
|
2820
2822
|
}],
|
|
2821
2823
|
// --------------
|
|
2822
2824
|
// --- Tables ---
|
|
@@ -2885,7 +2887,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2885
2887
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2886
2888
|
*/
|
|
2887
2889
|
duration: [{
|
|
2888
|
-
duration: [
|
|
2890
|
+
duration: [z, "initial", j, k]
|
|
2889
2891
|
}],
|
|
2890
2892
|
/**
|
|
2891
2893
|
* Transition Timing Function
|
|
@@ -2899,7 +2901,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
2899
2901
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2900
2902
|
*/
|
|
2901
2903
|
delay: [{
|
|
2902
|
-
delay: [
|
|
2904
|
+
delay: [z, j, k]
|
|
2903
2905
|
}],
|
|
2904
2906
|
/**
|
|
2905
2907
|
* Animation
|
|
@@ -3371,7 +3373,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
3371
3373
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3372
3374
|
*/
|
|
3373
3375
|
"stroke-w": [{
|
|
3374
|
-
stroke: [
|
|
3376
|
+
stroke: [z, xe, ue, De]
|
|
3375
3377
|
}],
|
|
3376
3378
|
/**
|
|
3377
3379
|
* Stroke
|
|
@@ -3446,7 +3448,7 @@ const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
|
3446
3448
|
},
|
|
3447
3449
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3448
3450
|
};
|
|
3449
|
-
},
|
|
3451
|
+
}, nr = /* @__PURE__ */ Ot(ar);
|
|
3450
3452
|
function at(e) {
|
|
3451
3453
|
var r, a, s = "";
|
|
3452
3454
|
if (typeof e == "string" || typeof e == "number") s += e;
|
|
@@ -3456,33 +3458,33 @@ function at(e) {
|
|
|
3456
3458
|
} else for (a in e) e[a] && (s && (s += " "), s += a);
|
|
3457
3459
|
return s;
|
|
3458
3460
|
}
|
|
3459
|
-
function
|
|
3461
|
+
function lr() {
|
|
3460
3462
|
for (var e, r, a = 0, s = "", n = arguments.length; a < n; a++) (e = arguments[a]) && (r = at(e)) && (s && (s += " "), s += r);
|
|
3461
3463
|
return s;
|
|
3462
3464
|
}
|
|
3463
|
-
function
|
|
3464
|
-
return
|
|
3465
|
+
function _(...e) {
|
|
3466
|
+
return nr(lr(e));
|
|
3465
3467
|
}
|
|
3466
|
-
const
|
|
3468
|
+
const ir = {
|
|
3467
3469
|
sm: "w-16 h-16",
|
|
3468
3470
|
md: "w-24 h-24",
|
|
3469
3471
|
lg: "w-32 h-32",
|
|
3470
3472
|
xl: "w-40 h-40"
|
|
3471
|
-
},
|
|
3473
|
+
}, cr = ({
|
|
3472
3474
|
progress: e,
|
|
3473
3475
|
size: r = "md",
|
|
3474
3476
|
radius: a = 20,
|
|
3475
3477
|
className: s = "",
|
|
3476
3478
|
children: n,
|
|
3477
|
-
ariaLabel:
|
|
3479
|
+
ariaLabel: c
|
|
3478
3480
|
}) => {
|
|
3479
|
-
const l = 2 * Math.PI * a, i = l / 2,
|
|
3481
|
+
const l = 2 * Math.PI * a, i = l / 2, d = i * (1 - e / 100), h = i * (1 - e / 100);
|
|
3480
3482
|
return /* @__PURE__ */ t.jsxs(
|
|
3481
3483
|
"div",
|
|
3482
3484
|
{
|
|
3483
|
-
className:
|
|
3485
|
+
className: _("relative", ir[r], s),
|
|
3484
3486
|
role: "progressbar",
|
|
3485
|
-
"aria-label":
|
|
3487
|
+
"aria-label": c || "Progress",
|
|
3486
3488
|
"aria-valuenow": Math.max(0, Math.min(100, e)),
|
|
3487
3489
|
"aria-valuemin": 0,
|
|
3488
3490
|
"aria-valuemax": 100,
|
|
@@ -3504,7 +3506,7 @@ const ar = {
|
|
|
3504
3506
|
strokeWidth: "4",
|
|
3505
3507
|
strokeLinecap: "butt",
|
|
3506
3508
|
strokeDasharray: `${i * 0.98} ${l}`,
|
|
3507
|
-
strokeDashoffset:
|
|
3509
|
+
strokeDashoffset: d,
|
|
3508
3510
|
transform: "rotate(-90 25 25)",
|
|
3509
3511
|
style: {
|
|
3510
3512
|
filter: "drop-shadow(0 0 8px var(--color-accent))"
|
|
@@ -3522,7 +3524,7 @@ const ar = {
|
|
|
3522
3524
|
strokeWidth: "4",
|
|
3523
3525
|
strokeLinecap: "butt",
|
|
3524
3526
|
strokeDasharray: `${i * 0.98} ${l}`,
|
|
3525
|
-
strokeDashoffset:
|
|
3527
|
+
strokeDashoffset: h,
|
|
3526
3528
|
transform: "rotate(90 25 25)",
|
|
3527
3529
|
style: {
|
|
3528
3530
|
filter: "drop-shadow(0 0 8px var(--color-primary))"
|
|
@@ -3536,83 +3538,95 @@ const ar = {
|
|
|
3536
3538
|
]
|
|
3537
3539
|
}
|
|
3538
3540
|
);
|
|
3539
|
-
}
|
|
3541
|
+
};
|
|
3542
|
+
cr.displayName = "CyberUI.CircularProgress";
|
|
3543
|
+
const dr = {
|
|
3540
3544
|
SEGMENT_COUNT: 20,
|
|
3541
3545
|
SEGMENT_ANGLE: 360 / 20,
|
|
3542
3546
|
GAP_ANGLE: 4,
|
|
3543
3547
|
INNER_RADIUS: 18.5,
|
|
3544
3548
|
OUTER_RADIUS: 23.5,
|
|
3545
3549
|
OUTER_TICK_RADIUS: 30
|
|
3546
|
-
},
|
|
3550
|
+
}, ur = {
|
|
3547
3551
|
sm: "w-16 h-16",
|
|
3548
3552
|
md: "w-24 h-24",
|
|
3549
3553
|
lg: "w-32 h-32",
|
|
3550
3554
|
xl: "w-40 h-40"
|
|
3551
|
-
},
|
|
3552
|
-
progress: e,
|
|
3553
|
-
size: r = "md",
|
|
3554
|
-
className: a = "",
|
|
3555
|
-
children: s
|
|
3556
|
-
}) => {
|
|
3555
|
+
}, mr = ({ progress: e, size: r = "md", className: a, children: s }) => {
|
|
3557
3556
|
const {
|
|
3558
3557
|
SEGMENT_COUNT: n,
|
|
3559
|
-
SEGMENT_ANGLE:
|
|
3558
|
+
SEGMENT_ANGLE: c,
|
|
3560
3559
|
GAP_ANGLE: l,
|
|
3561
3560
|
INNER_RADIUS: i,
|
|
3562
|
-
OUTER_RADIUS:
|
|
3563
|
-
OUTER_TICK_RADIUS:
|
|
3564
|
-
} =
|
|
3565
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
3566
|
-
/* @__PURE__ */ t.jsxs(
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
"
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
}
|
|
3601
|
-
},
|
|
3602
|
-
`segment-${p}`
|
|
3603
|
-
);
|
|
3604
|
-
})
|
|
3605
|
-
]
|
|
3606
|
-
}
|
|
3607
|
-
),
|
|
3561
|
+
OUTER_RADIUS: d,
|
|
3562
|
+
OUTER_TICK_RADIUS: h
|
|
3563
|
+
} = dr, m = c - l;
|
|
3564
|
+
return /* @__PURE__ */ t.jsxs("div", { className: _("relative", ur[r], a), children: [
|
|
3565
|
+
/* @__PURE__ */ t.jsxs("svg", { className: "w-full h-full", viewBox: "0 0 60 60", style: { overflow: "visible" }, children: [
|
|
3566
|
+
[...Array(60)].map((y, p) => {
|
|
3567
|
+
const g = 6 * p, x = p % 5 === 0 ? 6 : 3, v = 30 + h * Math.cos(g * Math.PI / 180), A = 30 + h * Math.sin(g * Math.PI / 180), N = 30 + (h - x) * Math.cos(g * Math.PI / 180), $ = 30 + (h - x) * Math.sin(g * Math.PI / 180);
|
|
3568
|
+
return /* @__PURE__ */ t.jsx(
|
|
3569
|
+
"line",
|
|
3570
|
+
{
|
|
3571
|
+
x1: v,
|
|
3572
|
+
y1: A,
|
|
3573
|
+
x2: N,
|
|
3574
|
+
y2: $,
|
|
3575
|
+
stroke: "var(--color-muted)",
|
|
3576
|
+
strokeWidth: 1,
|
|
3577
|
+
strokeLinecap: "round",
|
|
3578
|
+
opacity: 0.7
|
|
3579
|
+
},
|
|
3580
|
+
`tick-${p}`
|
|
3581
|
+
);
|
|
3582
|
+
}),
|
|
3583
|
+
[...Array(n)].map((y, p) => {
|
|
3584
|
+
const g = c * p - 90 + l / 2, w = g + m, x = (M) => M * Math.PI / 180, v = 30 + i * Math.cos(x(g)), A = 30 + i * Math.sin(x(g)), N = 30 + d * Math.cos(x(g)), $ = 30 + d * Math.sin(x(g)), T = 30 + d * Math.cos(x(w)), C = 30 + d * Math.sin(x(w)), I = 30 + i * Math.cos(x(w)), G = 30 + i * Math.sin(x(w)), f = p < Math.floor(e / 5);
|
|
3585
|
+
return /* @__PURE__ */ t.jsx(
|
|
3586
|
+
"path",
|
|
3587
|
+
{
|
|
3588
|
+
d: `M ${v} ${A} L ${N} ${$} L ${T} ${C} L ${I} ${G} Z`,
|
|
3589
|
+
fill: f ? "var(--color-accent)" : "var(--color-border-default)",
|
|
3590
|
+
style: {
|
|
3591
|
+
filter: f ? "drop-shadow(0 0 6px var(--color-accent))" : "none",
|
|
3592
|
+
transition: "fill 0.3s ease"
|
|
3593
|
+
}
|
|
3594
|
+
},
|
|
3595
|
+
`segment-${p}`
|
|
3596
|
+
);
|
|
3597
|
+
})
|
|
3598
|
+
] }),
|
|
3608
3599
|
s && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: s })
|
|
3609
3600
|
] });
|
|
3610
|
-
},
|
|
3601
|
+
}, fr = {
|
|
3602
|
+
sm: "h-3",
|
|
3603
|
+
md: "h-5",
|
|
3604
|
+
lg: "h-7",
|
|
3605
|
+
xl: "h-9"
|
|
3606
|
+
}, pr = ({ progress: e, segments: r = 10, size: a = "md", className: s }) => {
|
|
3607
|
+
const n = Math.round(Math.min(100, Math.max(0, e)) / 100 * r);
|
|
3608
|
+
return /* @__PURE__ */ t.jsx("div", { className: _("flex gap-1 w-full", s), children: [...Array(r)].map((c, l) => {
|
|
3609
|
+
const i = l < n;
|
|
3610
|
+
return /* @__PURE__ */ t.jsx(
|
|
3611
|
+
"div",
|
|
3612
|
+
{
|
|
3613
|
+
className: _("flex-1 rounded-sm transition-all duration-300", fr[a]),
|
|
3614
|
+
style: {
|
|
3615
|
+
backgroundColor: i ? "var(--color-accent)" : "var(--color-border-default)",
|
|
3616
|
+
boxShadow: i ? "0 0 6px var(--color-accent)" : "none"
|
|
3617
|
+
}
|
|
3618
|
+
},
|
|
3619
|
+
l
|
|
3620
|
+
);
|
|
3621
|
+
}) });
|
|
3622
|
+
}, br = (e) => e.variant === "block" ? /* @__PURE__ */ t.jsx(pr, { ...e }) : /* @__PURE__ */ t.jsx(mr, { ...e });
|
|
3623
|
+
br.displayName = "CyberUI.SegmentedProgress";
|
|
3624
|
+
const gr = ({
|
|
3611
3625
|
progress: e,
|
|
3612
3626
|
size: r = "md",
|
|
3613
3627
|
className: a = ""
|
|
3614
3628
|
}) => {
|
|
3615
|
-
const s = (
|
|
3629
|
+
const s = (h) => V(h, ae.linearProgress.width), n = (h) => V(h, ae.linearProgress.height), c = s(r), l = n(r), i = _("bg-surface rounded-full shadow-inner", l, a || c), d = _("bg-gradient-to-r from-accent to-primary rounded-full shadow-lg-accent transition-all duration-500 ease-out", l);
|
|
3616
3630
|
return /* @__PURE__ */ t.jsx(
|
|
3617
3631
|
"div",
|
|
3618
3632
|
{
|
|
@@ -3624,20 +3638,22 @@ const ar = {
|
|
|
3624
3638
|
children: /* @__PURE__ */ t.jsx(
|
|
3625
3639
|
"div",
|
|
3626
3640
|
{
|
|
3627
|
-
className:
|
|
3641
|
+
className: d,
|
|
3628
3642
|
style: { width: `${e}%` }
|
|
3629
3643
|
}
|
|
3630
3644
|
)
|
|
3631
3645
|
}
|
|
3632
3646
|
);
|
|
3633
|
-
}
|
|
3647
|
+
};
|
|
3648
|
+
gr.displayName = "CyberUI.LinearProgress";
|
|
3649
|
+
const nt = ({
|
|
3634
3650
|
type: e,
|
|
3635
3651
|
title: r,
|
|
3636
3652
|
message: a,
|
|
3637
3653
|
size: s = "md",
|
|
3638
3654
|
onClose: n
|
|
3639
3655
|
}) => {
|
|
3640
|
-
const
|
|
3656
|
+
const c = (y) => V(y, ae.notification), i = (() => {
|
|
3641
3657
|
switch (e) {
|
|
3642
3658
|
case "success":
|
|
3643
3659
|
return {
|
|
@@ -3685,8 +3701,8 @@ const ar = {
|
|
|
3685
3701
|
icon: null
|
|
3686
3702
|
};
|
|
3687
3703
|
}
|
|
3688
|
-
})(),
|
|
3689
|
-
return /* @__PURE__ */ t.jsxs("div", { className: `flex items-start rounded-lg ${
|
|
3704
|
+
})(), d = c(s), h = e === "error" ? "alert" : "status", m = e === "warning" ? "hover:text-default/70" : "hover:text-base/70";
|
|
3705
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `flex items-start rounded-lg ${d} ${i.container}`, role: h, "aria-atomic": "true", children: [
|
|
3690
3706
|
/* @__PURE__ */ t.jsx("div", { className: "flex-shrink-0", children: i.icon }),
|
|
3691
3707
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-1", children: [
|
|
3692
3708
|
/* @__PURE__ */ t.jsx("h4", { className: `font-bold ${i.textColor}`, children: r }),
|
|
@@ -3709,13 +3725,15 @@ const ar = {
|
|
|
3709
3725
|
}
|
|
3710
3726
|
)
|
|
3711
3727
|
] });
|
|
3712
|
-
}
|
|
3728
|
+
};
|
|
3729
|
+
nt.displayName = "CyberUI.Notification";
|
|
3730
|
+
const Ee = ({
|
|
3713
3731
|
variant: e = "primary",
|
|
3714
3732
|
size: r = "md",
|
|
3715
3733
|
className: a = "",
|
|
3716
3734
|
disabled: s = !1,
|
|
3717
3735
|
children: n,
|
|
3718
|
-
...
|
|
3736
|
+
...c
|
|
3719
3737
|
}) => {
|
|
3720
3738
|
const l = [
|
|
3721
3739
|
"group",
|
|
@@ -3728,33 +3746,32 @@ const ar = {
|
|
|
3728
3746
|
"transition-all",
|
|
3729
3747
|
"duration-300",
|
|
3730
3748
|
"ease-in-out",
|
|
3731
|
-
"transform",
|
|
3732
3749
|
"focus:outline-none",
|
|
3733
3750
|
s ? "cursor-not-allowed" : "cursor-pointer"
|
|
3734
|
-
].join(" "), i = (y) =>
|
|
3751
|
+
].join(" "), i = (y) => V(y, ae.button), d = (y, p) => ({
|
|
3735
3752
|
primary: {
|
|
3736
|
-
enabled: "bg-linear-(--gradient-accent) text-base shadow-primary border-none hover:shadow-lg-accent hover:
|
|
3737
|
-
disabled: "bg-base border-2 border-accent/20 text-accent/40 shadow-none opacity-50
|
|
3753
|
+
enabled: "bg-linear-(--gradient-accent) text-base shadow-primary border-none hover:shadow-lg-accent hover:brightness-110 focus-visible:ring-2 focus-visible:ring-accent/50 active:scale-95",
|
|
3754
|
+
disabled: "bg-base border-2 border-accent/20 text-accent/40 shadow-none opacity-50"
|
|
3738
3755
|
},
|
|
3739
3756
|
secondary: {
|
|
3740
|
-
enabled: "bg-surface border-2 border-secondary text-secondary shadow-secondary/30 hover:bg-secondary hover:text-base hover:shadow-secondary
|
|
3741
|
-
disabled: "bg-base border-2 border-secondary/20 text-secondary/40 shadow-none opacity-50
|
|
3757
|
+
enabled: "bg-surface border-2 border-secondary text-secondary shadow-secondary/30 hover:bg-secondary hover:text-base hover:shadow-secondary focus-visible:ring-2 focus-visible:ring-secondary/50 active:scale-95",
|
|
3758
|
+
disabled: "bg-base border-2 border-secondary/20 text-secondary/40 shadow-none opacity-50"
|
|
3742
3759
|
},
|
|
3743
3760
|
danger: {
|
|
3744
|
-
enabled: "bg-surface border-2 border-error text-error shadow-error/30 hover:bg-error hover:text-base hover:shadow-error
|
|
3745
|
-
disabled: "bg-base border-2 border-error/20 text-error/40 shadow-none opacity-50
|
|
3761
|
+
enabled: "bg-surface border-2 border-error text-error shadow-error/30 hover:bg-error hover:text-base hover:shadow-error focus-visible:ring-2 focus-visible:ring-error/50 active:scale-95",
|
|
3762
|
+
disabled: "bg-base border-2 border-error/20 text-error/40 shadow-none opacity-50"
|
|
3746
3763
|
},
|
|
3747
3764
|
ghost: {
|
|
3748
|
-
enabled: "bg-surface border-2 border-accent text-accent shadow-secondary hover:bg-accent hover:text-base hover:shadow-lg-accent
|
|
3749
|
-
disabled: "bg-base border-2 border-accent/10 text-muted/60 shadow-none opacity-40
|
|
3765
|
+
enabled: "bg-surface border-2 border-accent text-accent shadow-secondary hover:bg-accent hover:text-base hover:shadow-lg-accent focus-visible:ring-2 focus-visible:ring-accent/50 active:scale-95",
|
|
3766
|
+
disabled: "bg-base border-2 border-accent/10 text-muted/60 shadow-none opacity-40"
|
|
3750
3767
|
}
|
|
3751
|
-
})[y][p ? "disabled" : "enabled"],
|
|
3768
|
+
})[y][p ? "disabled" : "enabled"], h = _(l, i(r), d(e, s), a), m = e === "primary" && !s;
|
|
3752
3769
|
return /* @__PURE__ */ t.jsxs(
|
|
3753
3770
|
"button",
|
|
3754
3771
|
{
|
|
3755
|
-
className:
|
|
3772
|
+
className: h,
|
|
3756
3773
|
disabled: s,
|
|
3757
|
-
...
|
|
3774
|
+
...c,
|
|
3758
3775
|
children: [
|
|
3759
3776
|
/* @__PURE__ */ t.jsx("span", { className: "relative z-10", children: n }),
|
|
3760
3777
|
m && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-700" }),
|
|
@@ -3762,19 +3779,21 @@ const ar = {
|
|
|
3762
3779
|
]
|
|
3763
3780
|
}
|
|
3764
3781
|
);
|
|
3765
|
-
}
|
|
3782
|
+
};
|
|
3783
|
+
Ee.displayName = "CyberUI.Button";
|
|
3784
|
+
const hr = ({
|
|
3766
3785
|
variant: e = "primary",
|
|
3767
3786
|
size: r = "md",
|
|
3768
3787
|
label: a,
|
|
3769
3788
|
helperText: s,
|
|
3770
3789
|
error: n,
|
|
3771
|
-
leftIcon:
|
|
3790
|
+
leftIcon: c,
|
|
3772
3791
|
rightIcon: l,
|
|
3773
3792
|
className: i = "",
|
|
3774
|
-
disabled:
|
|
3775
|
-
...
|
|
3793
|
+
disabled: d = !1,
|
|
3794
|
+
...h
|
|
3776
3795
|
}) => {
|
|
3777
|
-
const m =
|
|
3796
|
+
const m = Be(), y = h.id || m, p = [
|
|
3778
3797
|
"w-full",
|
|
3779
3798
|
"rounded-lg",
|
|
3780
3799
|
"bg-surface",
|
|
@@ -3783,85 +3802,89 @@ const ar = {
|
|
|
3783
3802
|
"transition-all",
|
|
3784
3803
|
"duration-300",
|
|
3785
3804
|
"focus:outline-none",
|
|
3786
|
-
|
|
3787
|
-
].join(" "),
|
|
3788
|
-
const C =
|
|
3789
|
-
return
|
|
3790
|
-
}, x = (
|
|
3805
|
+
d ? "cursor-not-allowed opacity-60" : "cursor-text"
|
|
3806
|
+
].join(" "), g = (T) => V(T, ae.input), w = (T) => {
|
|
3807
|
+
const C = g(T);
|
|
3808
|
+
return c && l ? `pl-10 pr-10 ${C}` : c ? `pl-10 pr-4 ${C}` : l ? `pl-4 pr-10 ${C}` : `px-4 ${C}`;
|
|
3809
|
+
}, x = (T, C, I) => C ? "border-2 border-error shadow-error/30 hover:shadow-error focus:ring-2 focus:ring-error focus:shadow-error active:bg-base" : I ? {
|
|
3791
3810
|
primary: "border-2 border-accent/20 shadow-none",
|
|
3792
3811
|
secondary: "border-2 border-secondary/20 shadow-none",
|
|
3793
3812
|
danger: "border-2 border-error/20 shadow-none",
|
|
3794
3813
|
ghost: "border border-border-default shadow-none"
|
|
3795
|
-
}[
|
|
3814
|
+
}[T] : {
|
|
3796
3815
|
primary: "border-2 border-accent shadow-input-accent hover:shadow-lg-accent focus:ring-2 focus:ring-accent focus:shadow-lg-accent active:bg-base",
|
|
3797
3816
|
secondary: "border-2 border-secondary shadow-secondary/30 hover:shadow-secondary focus:ring-2 focus:ring-secondary focus:shadow-secondary active:bg-base",
|
|
3798
3817
|
danger: "border-2 border-error shadow-error/30 hover:shadow-error focus:ring-2 focus:ring-error focus:shadow-error active:bg-base",
|
|
3799
3818
|
ghost: "border border-border-default shadow-none hover:border-accent focus:ring-2 focus:ring-accent focus:border-accent active:bg-base"
|
|
3800
|
-
}[
|
|
3819
|
+
}[T], v = (T) => ({
|
|
3801
3820
|
primary: "text-accent",
|
|
3802
3821
|
secondary: "text-secondary",
|
|
3803
3822
|
danger: "text-error",
|
|
3804
3823
|
ghost: "text-muted"
|
|
3805
|
-
})[
|
|
3824
|
+
})[T], A = _(p, w(r), x(e, !!n, d), i), N = v(e), $ = n ? `${y}-error` : s ? `${y}-help` : void 0;
|
|
3806
3825
|
return /* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
3807
3826
|
a && /* @__PURE__ */ t.jsx("label", { htmlFor: y, className: "block text-sm font-medium text-default", children: a }),
|
|
3808
3827
|
/* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
|
|
3809
|
-
|
|
3828
|
+
c && /* @__PURE__ */ t.jsx("div", { className: `absolute inset-y-0 left-0 flex items-center pl-3 ${N}`, children: c }),
|
|
3810
3829
|
/* @__PURE__ */ t.jsx(
|
|
3811
3830
|
"input",
|
|
3812
3831
|
{
|
|
3813
3832
|
className: A,
|
|
3814
|
-
disabled:
|
|
3833
|
+
disabled: d,
|
|
3815
3834
|
id: y,
|
|
3816
3835
|
"aria-invalid": !!n,
|
|
3817
|
-
"aria-describedby":
|
|
3818
|
-
...
|
|
3836
|
+
"aria-describedby": $,
|
|
3837
|
+
...h
|
|
3819
3838
|
}
|
|
3820
3839
|
),
|
|
3821
3840
|
l && /* @__PURE__ */ t.jsx("div", { className: `absolute inset-y-0 right-0 flex items-center pr-3 ${N}`, children: l })
|
|
3822
3841
|
] }),
|
|
3823
3842
|
(s || n) && /* @__PURE__ */ t.jsx("div", { id: n ? `${y}-error` : `${y}-help`, className: `text-xs font-mono ${n ? "text-error" : "text-muted"}`, children: n || s })
|
|
3824
3843
|
] });
|
|
3825
|
-
}
|
|
3844
|
+
};
|
|
3845
|
+
hr.displayName = "CyberUI.Input";
|
|
3846
|
+
const xr = ({
|
|
3826
3847
|
variant: e = "default",
|
|
3827
3848
|
size: r = "md",
|
|
3828
3849
|
title: a,
|
|
3829
3850
|
titleBorder: s = !0,
|
|
3830
3851
|
children: n,
|
|
3831
|
-
className:
|
|
3852
|
+
className: c = "",
|
|
3832
3853
|
...l
|
|
3833
3854
|
}) => {
|
|
3834
|
-
const i = (m) =>
|
|
3855
|
+
const i = (m) => V(m, ae.card), d = (m) => {
|
|
3835
3856
|
const y = i(r);
|
|
3836
3857
|
return {
|
|
3837
|
-
default: `bg-base border border-border-default rounded-xl ${y}`,
|
|
3838
|
-
accent: `bg-surface border-2 border-accent rounded-xl shadow-input-accent/50 hover:shadow-lg-accent transition-all duration-300 transform ${y}`,
|
|
3839
|
-
small: `bg-base rounded-lg border border-border-default ${y}`
|
|
3858
|
+
default: `bg-base border border-border-default rounded-xl text-primary ${y}`,
|
|
3859
|
+
accent: `bg-surface border-2 border-accent rounded-xl shadow-input-accent/50 hover:shadow-lg-accent transition-all duration-300 transform text-primary ${y}`,
|
|
3860
|
+
small: `bg-base rounded-lg border border-border-default text-primary ${y}`
|
|
3840
3861
|
}[m];
|
|
3841
|
-
},
|
|
3842
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
3843
|
-
a && /* @__PURE__ */ t.jsx("h3", { className:
|
|
3862
|
+
}, h = (m) => m ? "text-xl font-semibold text-secondary mb-4 border-b border-accent pb-2" : "text-xl font-semibold text-secondary mb-4";
|
|
3863
|
+
return /* @__PURE__ */ t.jsxs("div", { className: _(d(e), c), ...l, children: [
|
|
3864
|
+
a && /* @__PURE__ */ t.jsx("h3", { className: h(s), children: a }),
|
|
3844
3865
|
n
|
|
3845
3866
|
] });
|
|
3846
|
-
}
|
|
3867
|
+
};
|
|
3868
|
+
xr.displayName = "CyberUI.Card";
|
|
3869
|
+
const yr = ({
|
|
3847
3870
|
variant: e = "primary",
|
|
3848
3871
|
size: r = "md",
|
|
3849
3872
|
children: a,
|
|
3850
3873
|
className: s = "",
|
|
3851
3874
|
leftIcon: n,
|
|
3852
|
-
rightIcon:
|
|
3875
|
+
rightIcon: c,
|
|
3853
3876
|
clickable: l = !1,
|
|
3854
3877
|
onClick: i,
|
|
3855
|
-
...
|
|
3878
|
+
...d
|
|
3856
3879
|
}) => {
|
|
3857
|
-
const
|
|
3858
|
-
primary: "
|
|
3859
|
-
secondary: "
|
|
3860
|
-
accent: "
|
|
3861
|
-
success: "
|
|
3862
|
-
error: "
|
|
3863
|
-
warning: "
|
|
3864
|
-
})[p], y = (p,
|
|
3880
|
+
const h = (p) => V(p, ae.badge), m = (p) => ({
|
|
3881
|
+
primary: "bg-primary shadow-lg",
|
|
3882
|
+
secondary: "bg-secondary shadow-lg",
|
|
3883
|
+
accent: "bg-accent shadow-lg",
|
|
3884
|
+
success: "bg-success shadow-lg",
|
|
3885
|
+
error: "bg-error shadow-lg",
|
|
3886
|
+
warning: "bg-warning shadow-lg"
|
|
3887
|
+
})[p], y = (p, g) => !g && !i ? "transition-shadow" : {
|
|
3865
3888
|
primary: "hover:shadow-primary transition-shadow cursor-pointer",
|
|
3866
3889
|
secondary: "hover:shadow-secondary transition-shadow cursor-pointer",
|
|
3867
3890
|
accent: "hover:shadow-lg-accent transition-shadow cursor-pointer",
|
|
@@ -3872,30 +3895,32 @@ const ar = {
|
|
|
3872
3895
|
return /* @__PURE__ */ t.jsxs(
|
|
3873
3896
|
"span",
|
|
3874
3897
|
{
|
|
3875
|
-
className:
|
|
3898
|
+
className: _("inline-flex items-center rounded-full font-semibold", h(r), m(e), y(e, l || !!i), s),
|
|
3876
3899
|
onClick: i,
|
|
3877
|
-
...
|
|
3900
|
+
...d,
|
|
3878
3901
|
children: [
|
|
3879
3902
|
n,
|
|
3880
3903
|
/* @__PURE__ */ t.jsx("span", { children: a }),
|
|
3881
|
-
|
|
3904
|
+
c
|
|
3882
3905
|
]
|
|
3883
3906
|
}
|
|
3884
3907
|
);
|
|
3885
|
-
}
|
|
3908
|
+
};
|
|
3909
|
+
yr.displayName = "CyberUI.Badge";
|
|
3910
|
+
const vr = ({
|
|
3886
3911
|
label: e,
|
|
3887
3912
|
size: r = "md",
|
|
3888
3913
|
variant: a = "primary",
|
|
3889
3914
|
className: s = "",
|
|
3890
3915
|
checked: n = !1,
|
|
3891
|
-
onChange:
|
|
3916
|
+
onChange: c,
|
|
3892
3917
|
disabled: l = !1,
|
|
3893
3918
|
id: i,
|
|
3894
|
-
...
|
|
3919
|
+
...d
|
|
3895
3920
|
}) => {
|
|
3896
|
-
const
|
|
3897
|
-
l ||
|
|
3898
|
-
}, m = (x) =>
|
|
3921
|
+
const h = (x) => {
|
|
3922
|
+
l || c && c(x.target.checked);
|
|
3923
|
+
}, m = (x) => V(x, {
|
|
3899
3924
|
sm: "w-10 h-5 after:h-4 after:w-4",
|
|
3900
3925
|
md: "w-14 h-7 after:h-6 after:w-6",
|
|
3901
3926
|
lg: "w-16 h-8 after:h-7 after:w-7"
|
|
@@ -3908,10 +3933,10 @@ const ar = {
|
|
|
3908
3933
|
accent: "bg-gray-600 peer-checked:bg-accent peer-focus:ring-accent"
|
|
3909
3934
|
};
|
|
3910
3935
|
return A[x] || A.primary;
|
|
3911
|
-
}, p =
|
|
3936
|
+
}, p = _(
|
|
3912
3937
|
"relative inline-flex items-center",
|
|
3913
3938
|
l ? "cursor-not-allowed opacity-50" : "cursor-pointer"
|
|
3914
|
-
),
|
|
3939
|
+
), g = _(
|
|
3915
3940
|
m(r),
|
|
3916
3941
|
y(a, l),
|
|
3917
3942
|
"peer-focus:outline-none rounded-full peer",
|
|
@@ -3919,7 +3944,7 @@ const ar = {
|
|
|
3919
3944
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px]",
|
|
3920
3945
|
"after:bg-white after:rounded-full after:transition-all",
|
|
3921
3946
|
"transition-colors duration-300"
|
|
3922
|
-
), w =
|
|
3947
|
+
), w = _("flex items-center justify-between", e && "space-x-3", s);
|
|
3923
3948
|
return /* @__PURE__ */ t.jsxs("div", { className: w, children: [
|
|
3924
3949
|
e && /* @__PURE__ */ t.jsx(
|
|
3925
3950
|
"label",
|
|
@@ -3936,37 +3961,39 @@ const ar = {
|
|
|
3936
3961
|
type: "checkbox",
|
|
3937
3962
|
className: "sr-only peer",
|
|
3938
3963
|
checked: n,
|
|
3939
|
-
onChange:
|
|
3964
|
+
onChange: h,
|
|
3940
3965
|
disabled: l,
|
|
3941
3966
|
id: i,
|
|
3942
|
-
...
|
|
3967
|
+
...d
|
|
3943
3968
|
}
|
|
3944
3969
|
),
|
|
3945
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
3970
|
+
/* @__PURE__ */ t.jsx("div", { className: g })
|
|
3946
3971
|
] })
|
|
3947
3972
|
] });
|
|
3948
|
-
}
|
|
3973
|
+
};
|
|
3974
|
+
vr.displayName = "CyberUI.Toggle";
|
|
3975
|
+
const wr = ({
|
|
3949
3976
|
label: e,
|
|
3950
3977
|
size: r = "md",
|
|
3951
3978
|
variant: a = "primary",
|
|
3952
3979
|
options: s,
|
|
3953
3980
|
placeholder: n,
|
|
3954
|
-
helperText:
|
|
3981
|
+
helperText: c,
|
|
3955
3982
|
error: l,
|
|
3956
3983
|
className: i = "",
|
|
3957
|
-
disabled:
|
|
3958
|
-
id:
|
|
3984
|
+
disabled: d = !1,
|
|
3985
|
+
id: h,
|
|
3959
3986
|
name: m,
|
|
3960
3987
|
onValueChange: y,
|
|
3961
3988
|
onChange: p,
|
|
3962
|
-
...
|
|
3989
|
+
...g
|
|
3963
3990
|
}) => {
|
|
3964
3991
|
const w = (f) => {
|
|
3965
3992
|
p?.(f), y?.(f.target.value);
|
|
3966
|
-
}, x =
|
|
3993
|
+
}, x = Be(), v = h || x, A = m || v, N = (f) => V(f, ae.input), $ = (f, M, U) => {
|
|
3967
3994
|
if (M)
|
|
3968
3995
|
return "bg-base border-2 border-border-default/30 text-muted/50 cursor-not-allowed opacity-50";
|
|
3969
|
-
if (
|
|
3996
|
+
if (U)
|
|
3970
3997
|
return "bg-surface border-2 border-error text-default focus:ring-2 focus:ring-error focus:border-error shadow-error";
|
|
3971
3998
|
const X = {
|
|
3972
3999
|
primary: "bg-surface border-2 border-border-default text-default focus:ring-2 focus:ring-primary focus:border-primary shadow-primary",
|
|
@@ -3975,27 +4002,27 @@ const ar = {
|
|
|
3975
4002
|
ghost: "bg-base border-2 border-accent/20 text-default focus:ring-2 focus:ring-accent focus:border-accent shadow-secondary"
|
|
3976
4003
|
};
|
|
3977
4004
|
return X[f] || X.primary;
|
|
3978
|
-
},
|
|
4005
|
+
}, T = _(
|
|
3979
4006
|
"appearance-none w-full rounded-lg font-mono transition-all duration-300 focus:outline-none px-4 pr-10",
|
|
3980
4007
|
N(r),
|
|
3981
|
-
|
|
4008
|
+
$(a, d, !!l),
|
|
3982
4009
|
i
|
|
3983
|
-
), C = "relative w-full",
|
|
4010
|
+
), C = "relative w-full", I = _(
|
|
3984
4011
|
"block text-sm font-medium mb-2 transition-colors duration-200",
|
|
3985
|
-
|
|
3986
|
-
), G =
|
|
4012
|
+
d ? "text-muted opacity-50" : l ? "text-error" : "text-default"
|
|
4013
|
+
), G = _("mt-2 text-xs transition-colors duration-200", l ? "text-error" : "text-muted");
|
|
3987
4014
|
return /* @__PURE__ */ t.jsxs("div", { className: "w-full", children: [
|
|
3988
|
-
e && /* @__PURE__ */ t.jsx("label", { htmlFor: v, className:
|
|
4015
|
+
e && /* @__PURE__ */ t.jsx("label", { htmlFor: v, className: I, children: e }),
|
|
3989
4016
|
/* @__PURE__ */ t.jsxs("div", { className: C, children: [
|
|
3990
4017
|
/* @__PURE__ */ t.jsxs(
|
|
3991
4018
|
"select",
|
|
3992
4019
|
{
|
|
3993
|
-
className:
|
|
3994
|
-
disabled:
|
|
4020
|
+
className: T,
|
|
4021
|
+
disabled: d,
|
|
3995
4022
|
id: v,
|
|
3996
4023
|
name: A,
|
|
3997
4024
|
onChange: w,
|
|
3998
|
-
...
|
|
4025
|
+
...g,
|
|
3999
4026
|
children: [
|
|
4000
4027
|
n && /* @__PURE__ */ t.jsx("option", { value: "", disabled: !0, children: n }),
|
|
4001
4028
|
s.map((f) => /* @__PURE__ */ t.jsx(
|
|
@@ -4014,7 +4041,7 @@ const ar = {
|
|
|
4014
4041
|
/* @__PURE__ */ t.jsx(
|
|
4015
4042
|
"div",
|
|
4016
4043
|
{
|
|
4017
|
-
className: `pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 ${
|
|
4044
|
+
className: `pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 ${d ? "text-muted/50" : l ? "text-error" : "text-accent"}`,
|
|
4018
4045
|
children: /* @__PURE__ */ t.jsx("svg", { className: "w-4 h-4", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ t.jsx(
|
|
4019
4046
|
"path",
|
|
4020
4047
|
{
|
|
@@ -4026,29 +4053,31 @@ const ar = {
|
|
|
4026
4053
|
}
|
|
4027
4054
|
)
|
|
4028
4055
|
] }),
|
|
4029
|
-
(
|
|
4056
|
+
(c || l) && /* @__PURE__ */ t.jsx("div", { className: G, children: l || c })
|
|
4030
4057
|
] });
|
|
4031
|
-
}
|
|
4058
|
+
};
|
|
4059
|
+
wr.displayName = "CyberUI.Select";
|
|
4060
|
+
const kr = ({
|
|
4032
4061
|
variant: e = "text",
|
|
4033
4062
|
size: r = "md",
|
|
4034
4063
|
width: a,
|
|
4035
4064
|
height: s,
|
|
4036
4065
|
className: n = "",
|
|
4037
|
-
lines:
|
|
4066
|
+
lines: c = 3,
|
|
4038
4067
|
animate: l = !0
|
|
4039
4068
|
}) => {
|
|
4040
|
-
const
|
|
4069
|
+
const d = _("bg-gray-600", l && "animate-pulse", ((m) => V(m, ae.skeleton))(r), n), h = () => {
|
|
4041
4070
|
const m = {};
|
|
4042
4071
|
return a && (m.width = typeof a == "number" ? `${a}px` : a), s && (m.height = typeof s == "number" ? `${s}px` : s), m;
|
|
4043
4072
|
};
|
|
4044
4073
|
if (e === "text")
|
|
4045
|
-
return /* @__PURE__ */ t.jsx("div", { className: `space-y-3 ${n}`, children: Array.from({ length:
|
|
4046
|
-
const
|
|
4074
|
+
return /* @__PURE__ */ t.jsx("div", { className: `space-y-3 ${n}`, children: Array.from({ length: c }).map((m, y) => {
|
|
4075
|
+
const g = y === c - 1 ? "w-2/3" : y % 2 === 0 ? "w-full" : "w-5/6";
|
|
4047
4076
|
return /* @__PURE__ */ t.jsx(
|
|
4048
4077
|
"div",
|
|
4049
4078
|
{
|
|
4050
|
-
className: `h-3 rounded ${
|
|
4051
|
-
style:
|
|
4079
|
+
className: `h-3 rounded ${d} ${g}`,
|
|
4080
|
+
style: h()
|
|
4052
4081
|
},
|
|
4053
4082
|
y
|
|
4054
4083
|
);
|
|
@@ -4058,8 +4087,8 @@ const ar = {
|
|
|
4058
4087
|
return /* @__PURE__ */ t.jsx(
|
|
4059
4088
|
"div",
|
|
4060
4089
|
{
|
|
4061
|
-
className: `rounded-full ${
|
|
4062
|
-
style:
|
|
4090
|
+
className: `rounded-full ${d} ${m}`,
|
|
4091
|
+
style: h()
|
|
4063
4092
|
}
|
|
4064
4093
|
);
|
|
4065
4094
|
}
|
|
@@ -4068,26 +4097,26 @@ const ar = {
|
|
|
4068
4097
|
return /* @__PURE__ */ t.jsx(
|
|
4069
4098
|
"div",
|
|
4070
4099
|
{
|
|
4071
|
-
className: `rounded-lg ${
|
|
4072
|
-
style:
|
|
4100
|
+
className: `rounded-lg ${d} w-full ${m}`,
|
|
4101
|
+
style: h()
|
|
4073
4102
|
}
|
|
4074
4103
|
);
|
|
4075
4104
|
}
|
|
4076
4105
|
if (e === "avatar-text") {
|
|
4077
4106
|
const m = r === "sm" ? "h-12 w-12" : r === "lg" ? "h-20 w-20" : "h-16 w-16";
|
|
4078
4107
|
return /* @__PURE__ */ t.jsxs("div", { className: `flex items-center space-x-4 ${n}`, children: [
|
|
4079
|
-
/* @__PURE__ */ t.jsx("div", { className: `rounded-full ${
|
|
4108
|
+
/* @__PURE__ */ t.jsx("div", { className: `rounded-full ${d} ${m}` }),
|
|
4080
4109
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-1 space-y-3", children: [
|
|
4081
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-4 rounded w-3/4 ${
|
|
4082
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-1/2 ${
|
|
4110
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-4 rounded w-3/4 ${d}` }),
|
|
4111
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-1/2 ${d}` })
|
|
4083
4112
|
] })
|
|
4084
4113
|
] });
|
|
4085
4114
|
}
|
|
4086
4115
|
if (e === "button-group") {
|
|
4087
4116
|
const m = r === "sm" ? "h-8" : r === "lg" ? "h-12" : "h-10";
|
|
4088
4117
|
return /* @__PURE__ */ t.jsxs("div", { className: `flex space-x-4 ${n}`, children: [
|
|
4089
|
-
/* @__PURE__ */ t.jsx("div", { className: `${m} rounded w-20 ${
|
|
4090
|
-
/* @__PURE__ */ t.jsx("div", { className: `${m} rounded w-24 ${
|
|
4118
|
+
/* @__PURE__ */ t.jsx("div", { className: `${m} rounded w-20 ${d}` }),
|
|
4119
|
+
/* @__PURE__ */ t.jsx("div", { className: `${m} rounded w-24 ${d}` })
|
|
4091
4120
|
] });
|
|
4092
4121
|
}
|
|
4093
4122
|
if (e === "card") {
|
|
@@ -4098,20 +4127,20 @@ const ar = {
|
|
|
4098
4127
|
className: `border border-border-default rounded-lg bg-surface ${m} space-y-4 ${n}`,
|
|
4099
4128
|
children: l && /* @__PURE__ */ t.jsxs("div", { className: "animate-pulse space-y-4", children: [
|
|
4100
4129
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center space-x-4", children: [
|
|
4101
|
-
/* @__PURE__ */ t.jsx("div", { className: `rounded-full ${
|
|
4130
|
+
/* @__PURE__ */ t.jsx("div", { className: `rounded-full ${d} h-16 w-16` }),
|
|
4102
4131
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-1 space-y-3", children: [
|
|
4103
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-4 rounded w-3/4 ${
|
|
4104
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-1/2 ${
|
|
4132
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-4 rounded w-3/4 ${d}` }),
|
|
4133
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-1/2 ${d}` })
|
|
4105
4134
|
] })
|
|
4106
4135
|
] }),
|
|
4107
4136
|
/* @__PURE__ */ t.jsxs("div", { className: "space-y-3", children: [
|
|
4108
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded ${
|
|
4109
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-5/6 ${
|
|
4110
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-4/6 ${
|
|
4137
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded ${d}` }),
|
|
4138
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-5/6 ${d}` }),
|
|
4139
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-4/6 ${d}` })
|
|
4111
4140
|
] }),
|
|
4112
4141
|
/* @__PURE__ */ t.jsxs("div", { className: "flex space-x-4 pt-4", children: [
|
|
4113
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-8 rounded w-20 ${
|
|
4114
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-8 rounded w-24 ${
|
|
4142
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-8 rounded w-20 ${d}` }),
|
|
4143
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-8 rounded w-24 ${d}` })
|
|
4115
4144
|
] })
|
|
4116
4145
|
] })
|
|
4117
4146
|
}
|
|
@@ -4120,52 +4149,54 @@ const ar = {
|
|
|
4120
4149
|
return /* @__PURE__ */ t.jsx(
|
|
4121
4150
|
"div",
|
|
4122
4151
|
{
|
|
4123
|
-
className: `h-4 rounded ${
|
|
4124
|
-
style:
|
|
4152
|
+
className: `h-4 rounded ${d} w-full`,
|
|
4153
|
+
style: h()
|
|
4125
4154
|
}
|
|
4126
4155
|
);
|
|
4127
|
-
}
|
|
4156
|
+
};
|
|
4157
|
+
kr.displayName = "CyberUI.Skeleton";
|
|
4158
|
+
const jr = {
|
|
4128
4159
|
openDuration: 50,
|
|
4129
4160
|
closeDuration: 350,
|
|
4130
4161
|
cyberpunkEffects: !0
|
|
4131
|
-
}, je =
|
|
4162
|
+
}, je = _e(
|
|
4132
4163
|
({
|
|
4133
4164
|
src: e,
|
|
4134
4165
|
alt: r,
|
|
4135
4166
|
size: a = "md",
|
|
4136
4167
|
preview: s = !0,
|
|
4137
4168
|
fallback: n,
|
|
4138
|
-
placeholder:
|
|
4169
|
+
placeholder: c,
|
|
4139
4170
|
className: l = "",
|
|
4140
4171
|
animation: i,
|
|
4141
|
-
eager:
|
|
4142
|
-
previewClassName:
|
|
4172
|
+
eager: d = !1,
|
|
4173
|
+
previewClassName: h = "",
|
|
4143
4174
|
onPreviewOpen: m,
|
|
4144
4175
|
onPreviewClose: y,
|
|
4145
4176
|
onLoad: p,
|
|
4146
|
-
onError:
|
|
4177
|
+
onError: g,
|
|
4147
4178
|
...w
|
|
4148
4179
|
}) => {
|
|
4149
|
-
const x = { ...
|
|
4150
|
-
(S) =>
|
|
4180
|
+
const x = { ...jr, ...i }, [v, A] = Z(!1), [N, $] = Z(!1), [T, C] = Z(!1), [I, G] = Z(!0), [f, M] = Z(!1), [U, X] = Z(!1), Q = te(null), re = te(null), ee = D(
|
|
4181
|
+
(S) => V(S, ae.card),
|
|
4151
4182
|
[]
|
|
4152
|
-
),
|
|
4183
|
+
), F = D(
|
|
4153
4184
|
(S) => {
|
|
4154
4185
|
G(!1), M(!1), p?.(S);
|
|
4155
4186
|
},
|
|
4156
4187
|
[p]
|
|
4157
4188
|
), H = D(
|
|
4158
4189
|
(S) => {
|
|
4159
|
-
G(!1), n && !
|
|
4190
|
+
G(!1), n && !U ? (X(!0), M(!1)) : M(!0), g?.(S);
|
|
4160
4191
|
},
|
|
4161
|
-
[
|
|
4192
|
+
[g, n, U]
|
|
4162
4193
|
), q = D(() => {
|
|
4163
4194
|
s && !f && (C(!0), A(!0), m?.(), setTimeout(() => {
|
|
4164
4195
|
C(!1);
|
|
4165
4196
|
}, x.openDuration));
|
|
4166
4197
|
}, [s, f, m, x.openDuration]), Y = D(() => {
|
|
4167
|
-
|
|
4168
|
-
A(!1),
|
|
4198
|
+
$(!0), y?.(), setTimeout(() => {
|
|
4199
|
+
A(!1), $(!1);
|
|
4169
4200
|
}, x.closeDuration);
|
|
4170
4201
|
}, [y, x.closeDuration]), K = D(
|
|
4171
4202
|
(S) => {
|
|
@@ -4181,14 +4212,14 @@ const ar = {
|
|
|
4181
4212
|
oe(() => {
|
|
4182
4213
|
if (v) {
|
|
4183
4214
|
document.addEventListener("keydown", o);
|
|
4184
|
-
const S = document.body.style.overflow, E = document.documentElement.style.scrollbarGutter,
|
|
4215
|
+
const S = document.body.style.overflow, E = document.documentElement.style.scrollbarGutter, P = document.body.style.paddingRight, W = window.innerWidth - document.documentElement.clientWidth;
|
|
4185
4216
|
return document.body.style.overflow = "hidden", document.body.style.paddingRight = `${W}px`, document.documentElement.style.scrollbarGutter = "auto", () => {
|
|
4186
|
-
document.removeEventListener("keydown", o), document.body.style.overflow = S, document.body.style.paddingRight =
|
|
4217
|
+
document.removeEventListener("keydown", o), document.body.style.overflow = S, document.body.style.paddingRight = P, document.documentElement.style.scrollbarGutter = E;
|
|
4187
4218
|
};
|
|
4188
4219
|
}
|
|
4189
4220
|
}, [v, o]);
|
|
4190
4221
|
const u = pe(
|
|
4191
|
-
() =>
|
|
4222
|
+
() => _(
|
|
4192
4223
|
"relative rounded-lg overflow-hidden border-2 border-accent/30 transition-all duration-300 ease-in-out transform flex justify-center content-center",
|
|
4193
4224
|
s && !f ? "cursor-pointer hover:scale-105 hover:border-accent hover:shadow-lg-accent focus:outline-none focus:ring-4 focus:ring-accent/50" : "",
|
|
4194
4225
|
ee(a),
|
|
@@ -4214,13 +4245,13 @@ const ar = {
|
|
|
4214
4245
|
onClick: q,
|
|
4215
4246
|
...b,
|
|
4216
4247
|
children: [
|
|
4217
|
-
|
|
4248
|
+
I && /* @__PURE__ */ t.jsx(
|
|
4218
4249
|
"div",
|
|
4219
4250
|
{
|
|
4220
4251
|
className: "absolute m-0 inset-0 flex items-center justify-center bg-surface border-2 border-accent/20",
|
|
4221
4252
|
role: "status",
|
|
4222
4253
|
"aria-label": "Loading image",
|
|
4223
|
-
children:
|
|
4254
|
+
children: c || /* @__PURE__ */ t.jsx("div", { className: "animate-pulse bg-gradient-to-r from-accent/20 to-secondary/20 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ t.jsx("div", { className: "text-muted text-sm", children: "Loading..." }) })
|
|
4224
4255
|
}
|
|
4225
4256
|
),
|
|
4226
4257
|
f ? /* @__PURE__ */ t.jsx(
|
|
@@ -4234,19 +4265,19 @@ const ar = {
|
|
|
4234
4265
|
/* @__PURE__ */ t.jsx("div", { className: "text-sm", children: "Failed to load image" })
|
|
4235
4266
|
] })
|
|
4236
4267
|
}
|
|
4237
|
-
) :
|
|
4268
|
+
) : U ? /* @__PURE__ */ t.jsx(
|
|
4238
4269
|
"img",
|
|
4239
4270
|
{
|
|
4240
4271
|
ref: re,
|
|
4241
4272
|
src: n,
|
|
4242
4273
|
alt: `${r} (fallback)`,
|
|
4243
4274
|
className: "w-full h-full m-0 object-cover transition-opacity duration-300",
|
|
4244
|
-
style: { opacity:
|
|
4245
|
-
onLoad:
|
|
4275
|
+
style: { opacity: I ? 0 : 1 },
|
|
4276
|
+
onLoad: F,
|
|
4246
4277
|
onError: () => {
|
|
4247
4278
|
M(!0), X(!1);
|
|
4248
4279
|
},
|
|
4249
|
-
loading:
|
|
4280
|
+
loading: d ? "eager" : "lazy",
|
|
4250
4281
|
decoding: "async",
|
|
4251
4282
|
...w
|
|
4252
4283
|
}
|
|
@@ -4257,15 +4288,15 @@ const ar = {
|
|
|
4257
4288
|
src: e,
|
|
4258
4289
|
alt: r,
|
|
4259
4290
|
className: "w-full h-full m-0 object-cover transition-opacity duration-300",
|
|
4260
|
-
style: { opacity:
|
|
4261
|
-
onLoad:
|
|
4291
|
+
style: { opacity: I ? 0 : 1 },
|
|
4292
|
+
onLoad: F,
|
|
4262
4293
|
onError: H,
|
|
4263
|
-
loading:
|
|
4294
|
+
loading: d ? "eager" : "lazy",
|
|
4264
4295
|
decoding: "async",
|
|
4265
4296
|
...w
|
|
4266
4297
|
}
|
|
4267
4298
|
),
|
|
4268
|
-
s && !
|
|
4299
|
+
s && !I && !f && /* @__PURE__ */ t.jsx(
|
|
4269
4300
|
"div",
|
|
4270
4301
|
{
|
|
4271
4302
|
className: "absolute inset-0 bg-black/0 hover:bg-black/20 transition-all duration-300 flex items-center justify-center opacity-0 hover:opacity-100",
|
|
@@ -4280,14 +4311,14 @@ const ar = {
|
|
|
4280
4311
|
u,
|
|
4281
4312
|
q,
|
|
4282
4313
|
b,
|
|
4283
|
-
|
|
4284
|
-
|
|
4314
|
+
I,
|
|
4315
|
+
c,
|
|
4285
4316
|
f,
|
|
4286
|
-
|
|
4317
|
+
U,
|
|
4287
4318
|
n,
|
|
4288
4319
|
r,
|
|
4289
|
-
|
|
4290
|
-
|
|
4320
|
+
F,
|
|
4321
|
+
d,
|
|
4291
4322
|
w,
|
|
4292
4323
|
e,
|
|
4293
4324
|
H,
|
|
@@ -4296,12 +4327,12 @@ const ar = {
|
|
|
4296
4327
|
);
|
|
4297
4328
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4298
4329
|
R,
|
|
4299
|
-
v &&
|
|
4330
|
+
v && Fe(
|
|
4300
4331
|
/* @__PURE__ */ t.jsxs(
|
|
4301
4332
|
"div",
|
|
4302
4333
|
{
|
|
4303
4334
|
ref: Q,
|
|
4304
|
-
className: `fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${
|
|
4335
|
+
className: `fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${h} ${N ? "bg-black/0 backdrop-blur-none opacity-0 duration-300" : T ? "bg-black/80 backdrop-blur-sm opacity-100 duration-500" : "bg-black/80 backdrop-blur-sm opacity-100 duration-300"}`,
|
|
4305
4336
|
style: {
|
|
4306
4337
|
top: 0,
|
|
4307
4338
|
left: 0,
|
|
@@ -4354,7 +4385,7 @@ const ar = {
|
|
|
4354
4385
|
"button",
|
|
4355
4386
|
{
|
|
4356
4387
|
onClick: Y,
|
|
4357
|
-
className: `absolute top-4 right-4 text-white hover:text-accent/80 transition-all duration-300 font-bold z-20 rounded-full w-10 h-10 flex items-center justify-center cursor-pointer transform ${N ? "bg-black/0 scale-50 rotate-180 opacity-0" :
|
|
4388
|
+
className: `absolute top-4 right-4 text-white hover:text-accent/80 transition-all duration-300 font-bold z-20 rounded-full w-10 h-10 flex items-center justify-center cursor-pointer transform ${N ? "bg-black/0 scale-50 rotate-180 opacity-0" : T ? "bg-black/50 scale-0 rotate-0 opacity-0 duration-500" : "bg-black/50 hover:bg-accent/20 scale-100 rotate-0 opacity-100 hover:scale-110"}`,
|
|
4358
4389
|
style: { lineHeight: "1" },
|
|
4359
4390
|
children: /* @__PURE__ */ t.jsxs(
|
|
4360
4391
|
"svg",
|
|
@@ -4394,7 +4425,7 @@ const ar = {
|
|
|
4394
4425
|
/* @__PURE__ */ t.jsxs(
|
|
4395
4426
|
"div",
|
|
4396
4427
|
{
|
|
4397
|
-
className: `relative max-w-full max-h-full flex items-center justify-center transition-all ease-out ${N ? "scale-75 opacity-0 rotate-1 duration-300" :
|
|
4428
|
+
className: `relative max-w-full max-h-full flex items-center justify-center transition-all ease-out ${N ? "scale-75 opacity-0 rotate-1 duration-300" : T ? "scale-95 opacity-0 rotate-0 duration-500" : "scale-100 opacity-100 rotate-0 duration-300"}`,
|
|
4398
4429
|
onClick: (S) => S.stopPropagation(),
|
|
4399
4430
|
children: [
|
|
4400
4431
|
x.cyberpunkEffects && /* @__PURE__ */ t.jsx(
|
|
@@ -4418,8 +4449,8 @@ const ar = {
|
|
|
4418
4449
|
/* @__PURE__ */ t.jsx(
|
|
4419
4450
|
"img",
|
|
4420
4451
|
{
|
|
4421
|
-
src:
|
|
4422
|
-
alt:
|
|
4452
|
+
src: U ? n : e,
|
|
4453
|
+
alt: U ? `${r} (fallback)` : r,
|
|
4423
4454
|
className: `max-w-[95vw] max-h-[95vh] w-auto h-auto object-contain rounded-lg transition-all duration-300 ease-out ${N ? "filter blur-sm brightness-50" : "filter blur-0 brightness-100"}`,
|
|
4424
4455
|
style: {
|
|
4425
4456
|
maxWidth: "95vw",
|
|
@@ -4434,8 +4465,8 @@ const ar = {
|
|
|
4434
4465
|
{
|
|
4435
4466
|
className: `absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent p-3 rounded-b-lg transition-all duration-300 ${N ? "translate-y-4 opacity-0" : "translate-y-0 opacity-100"}`,
|
|
4436
4467
|
children: /* @__PURE__ */ t.jsxs("p", { className: "text-white text-sm font-medium truncate relative", children: [
|
|
4437
|
-
|
|
4438
|
-
x.cyberpunkEffects && /* @__PURE__ */ t.jsx("span", { className: "absolute inset-0 text-accent opacity-20 animate-pulse", children:
|
|
4468
|
+
U ? `${r} (fallback)` : r,
|
|
4469
|
+
x.cyberpunkEffects && /* @__PURE__ */ t.jsx("span", { className: "absolute inset-0 text-accent opacity-20 animate-pulse", children: U ? `${r} (fallback)` : r })
|
|
4439
4470
|
] })
|
|
4440
4471
|
}
|
|
4441
4472
|
),
|
|
@@ -4484,31 +4515,31 @@ const ar = {
|
|
|
4484
4515
|
}
|
|
4485
4516
|
);
|
|
4486
4517
|
je.displayName = "CyberUI.Image";
|
|
4487
|
-
const
|
|
4518
|
+
const lt = ({
|
|
4488
4519
|
images: e,
|
|
4489
4520
|
currentIndex: r,
|
|
4490
4521
|
onChange: a,
|
|
4491
4522
|
size: s = "md",
|
|
4492
4523
|
autoPlay: n = !0,
|
|
4493
|
-
interval:
|
|
4524
|
+
interval: c = 3e3,
|
|
4494
4525
|
infinite: l = !0,
|
|
4495
4526
|
transition: i = "slide",
|
|
4496
|
-
objectFit:
|
|
4497
|
-
showArrows:
|
|
4527
|
+
objectFit: d = "cover",
|
|
4528
|
+
showArrows: h = !0,
|
|
4498
4529
|
showIndicators: m = !0,
|
|
4499
4530
|
className: y = "",
|
|
4500
4531
|
disableImagePreview: p = !1,
|
|
4501
|
-
glitchRate:
|
|
4532
|
+
glitchRate: g = 1,
|
|
4502
4533
|
onBeforeChange: w,
|
|
4503
4534
|
onAfterChange: x
|
|
4504
4535
|
}) => {
|
|
4505
|
-
const [v, A] = Z(!1), [N,
|
|
4506
|
-
() =>
|
|
4536
|
+
const [v, A] = Z(!1), [N, $] = Z(n), [T, C] = Z(!0), I = pe(
|
|
4537
|
+
() => V(s, ae.carousel),
|
|
4507
4538
|
[s]
|
|
4508
4539
|
), G = "w-full h-full", f = D(
|
|
4509
4540
|
(o) => {
|
|
4510
4541
|
if (o === r || v) return;
|
|
4511
|
-
const u = i === "signal-glitch" && (typeof
|
|
4542
|
+
const u = i === "signal-glitch" && (typeof g == "boolean" ? g : Math.random() < g);
|
|
4512
4543
|
C(u), A(!0), w?.(r, o), setTimeout(() => {
|
|
4513
4544
|
a(o), A(!1), x?.(o);
|
|
4514
4545
|
}, i === "slide" ? 0 : i === "signal-glitch" && u ? 600 : 250);
|
|
@@ -4520,7 +4551,7 @@ const dr = ({
|
|
|
4520
4551
|
w,
|
|
4521
4552
|
x,
|
|
4522
4553
|
i,
|
|
4523
|
-
|
|
4554
|
+
g
|
|
4524
4555
|
]
|
|
4525
4556
|
);
|
|
4526
4557
|
oe(() => {
|
|
@@ -4528,40 +4559,40 @@ const dr = ({
|
|
|
4528
4559
|
const o = setInterval(() => {
|
|
4529
4560
|
const u = l ? (r + 1) % e.length : Math.min(r + 1, e.length - 1);
|
|
4530
4561
|
if (!l && u === e.length - 1) {
|
|
4531
|
-
|
|
4562
|
+
$(!1);
|
|
4532
4563
|
return;
|
|
4533
4564
|
}
|
|
4534
4565
|
f(u);
|
|
4535
|
-
},
|
|
4566
|
+
}, c);
|
|
4536
4567
|
return () => clearInterval(o);
|
|
4537
4568
|
}, [
|
|
4538
4569
|
N,
|
|
4539
4570
|
r,
|
|
4540
4571
|
e.length,
|
|
4541
4572
|
l,
|
|
4542
|
-
|
|
4573
|
+
c,
|
|
4543
4574
|
f
|
|
4544
4575
|
]);
|
|
4545
4576
|
const M = D(() => {
|
|
4546
4577
|
if (e.length <= 1) return;
|
|
4547
4578
|
const o = l ? (r - 1 + e.length) % e.length : Math.max(r - 1, 0);
|
|
4548
|
-
|
|
4549
|
-
}, [r, e.length, l, f]),
|
|
4579
|
+
$(!1), f(o);
|
|
4580
|
+
}, [r, e.length, l, f]), U = D(() => {
|
|
4550
4581
|
if (e.length <= 1) return;
|
|
4551
4582
|
const o = l ? (r + 1) % e.length : Math.min(r + 1, e.length - 1);
|
|
4552
|
-
|
|
4583
|
+
$(!1), f(o);
|
|
4553
4584
|
}, [r, e.length, l, f]), X = D(
|
|
4554
4585
|
(o) => {
|
|
4555
|
-
|
|
4586
|
+
$(!1), f(o);
|
|
4556
4587
|
},
|
|
4557
4588
|
[f]
|
|
4558
4589
|
);
|
|
4559
4590
|
oe(() => {
|
|
4560
4591
|
const o = (u) => {
|
|
4561
|
-
u.key === "ArrowLeft" && M(), u.key === "ArrowRight" &&
|
|
4592
|
+
u.key === "ArrowLeft" && M(), u.key === "ArrowRight" && U();
|
|
4562
4593
|
};
|
|
4563
4594
|
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
4564
|
-
}, [M,
|
|
4595
|
+
}, [M, U]);
|
|
4565
4596
|
const Q = () => /* @__PURE__ */ t.jsx(
|
|
4566
4597
|
"div",
|
|
4567
4598
|
{
|
|
@@ -4580,8 +4611,8 @@ const dr = ({
|
|
|
4580
4611
|
size: "lg",
|
|
4581
4612
|
preview: !p,
|
|
4582
4613
|
loading: u <= 1 ? "eager" : "lazy",
|
|
4583
|
-
onPreviewOpen: () =>
|
|
4584
|
-
onPreviewClose: () =>
|
|
4614
|
+
onPreviewOpen: () => $(!1),
|
|
4615
|
+
onPreviewClose: () => $(n)
|
|
4585
4616
|
}
|
|
4586
4617
|
) }, u))
|
|
4587
4618
|
}
|
|
@@ -4617,17 +4648,17 @@ const dr = ({
|
|
|
4617
4648
|
size: "lg",
|
|
4618
4649
|
preview: !p,
|
|
4619
4650
|
loading: u <= 1 ? "eager" : "lazy",
|
|
4620
|
-
onPreviewOpen: () =>
|
|
4621
|
-
onPreviewClose: () =>
|
|
4651
|
+
onPreviewOpen: () => $(!1),
|
|
4652
|
+
onPreviewClose: () => $(n)
|
|
4622
4653
|
}
|
|
4623
4654
|
),
|
|
4624
|
-
i === "matrix" &&
|
|
4655
|
+
i === "matrix" && F(b, v)
|
|
4625
4656
|
]
|
|
4626
4657
|
},
|
|
4627
4658
|
u
|
|
4628
4659
|
);
|
|
4629
4660
|
}) }), ee = () => /* @__PURE__ */ t.jsx(t.Fragment, { children: e.map((o, u) => {
|
|
4630
|
-
const b = u === r, R = u === (r - 1 + e.length) % e.length, S = v && i === "signal-glitch" &&
|
|
4661
|
+
const b = u === r, R = u === (r - 1 + e.length) % e.length, S = v && i === "signal-glitch" && T ? {
|
|
4631
4662
|
opacity: b ? 1 : R ? 0.8 : 0,
|
|
4632
4663
|
animation: b ? "signal-image-flicker-in 1s ease-out forwards" : R ? "signal-image-flicker-out 1s ease-out forwards" : "none",
|
|
4633
4664
|
willChange: "opacity",
|
|
@@ -4654,18 +4685,18 @@ const dr = ({
|
|
|
4654
4685
|
fallback: o.fallbackSrc,
|
|
4655
4686
|
className: G,
|
|
4656
4687
|
size: "lg",
|
|
4657
|
-
preview: !p && !(v && i === "signal-glitch" &&
|
|
4688
|
+
preview: !p && !(v && i === "signal-glitch" && T),
|
|
4658
4689
|
loading: u <= 1 ? "eager" : "lazy",
|
|
4659
|
-
onPreviewOpen: () =>
|
|
4660
|
-
onPreviewClose: () =>
|
|
4690
|
+
onPreviewOpen: () => $(!1),
|
|
4691
|
+
onPreviewClose: () => $(n)
|
|
4661
4692
|
}
|
|
4662
4693
|
),
|
|
4663
|
-
i === "signal-glitch" && v &&
|
|
4694
|
+
i === "signal-glitch" && v && T && H(b)
|
|
4664
4695
|
]
|
|
4665
4696
|
},
|
|
4666
4697
|
u
|
|
4667
4698
|
);
|
|
4668
|
-
}) }),
|
|
4699
|
+
}) }), F = (o, u) => /* @__PURE__ */ t.jsx(t.Fragment, { children: u && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 overflow-hidden pointer-events-none", children: o ? (
|
|
4669
4700
|
// Active image gets subtle enhancement effects
|
|
4670
4701
|
/* @__PURE__ */ t.jsx("div", { className: "w-full h-full bg-gradient-to-b from-primary/5 to-transparent opacity-30" })
|
|
4671
4702
|
) : (
|
|
@@ -4802,12 +4833,12 @@ const dr = ({
|
|
|
4802
4833
|
}
|
|
4803
4834
|
)
|
|
4804
4835
|
] })
|
|
4805
|
-
] }), q = () =>
|
|
4836
|
+
] }), q = () => h && e.length > 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4806
4837
|
/* @__PURE__ */ t.jsx(
|
|
4807
4838
|
"button",
|
|
4808
4839
|
{
|
|
4809
4840
|
onClick: M,
|
|
4810
|
-
disabled: !l && r === 0 || v && i === "signal-glitch" &&
|
|
4841
|
+
disabled: !l && r === 0 || v && i === "signal-glitch" && T,
|
|
4811
4842
|
className: "group absolute left-2 top-1/2 -translate-y-1/2 w-16 h-16 text-primary hover:text-accent cursor-pointer disabled:cursor-not-allowed disabled:opacity-30 focus:outline-none transition-all duration-300 flex items-center justify-center hover:scale-110",
|
|
4812
4843
|
"aria-label": "Previous image",
|
|
4813
4844
|
children: /* @__PURE__ */ t.jsxs(
|
|
@@ -4899,8 +4930,8 @@ const dr = ({
|
|
|
4899
4930
|
/* @__PURE__ */ t.jsx(
|
|
4900
4931
|
"button",
|
|
4901
4932
|
{
|
|
4902
|
-
onClick:
|
|
4903
|
-
disabled: !l && r === e.length - 1 || v && i === "signal-glitch" &&
|
|
4933
|
+
onClick: U,
|
|
4934
|
+
disabled: !l && r === e.length - 1 || v && i === "signal-glitch" && T,
|
|
4904
4935
|
className: "group absolute right-2 top-1/2 -translate-y-1/2 w-16 h-16 text-primary hover:text-accent cursor-pointer disabled:cursor-not-allowed disabled:opacity-30 focus:outline-none transition-all duration-300 flex items-center justify-center hover:scale-110",
|
|
4905
4936
|
"aria-label": "Next image",
|
|
4906
4937
|
children: /* @__PURE__ */ t.jsxs(
|
|
@@ -4954,7 +4985,7 @@ const dr = ({
|
|
|
4954
4985
|
"button",
|
|
4955
4986
|
{
|
|
4956
4987
|
onClick: () => X(u),
|
|
4957
|
-
disabled: v && i === "signal-glitch" &&
|
|
4988
|
+
disabled: v && i === "signal-glitch" && T,
|
|
4958
4989
|
className: "group relative transition-all duration-300 hover:scale-110 focus:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-30",
|
|
4959
4990
|
style: {
|
|
4960
4991
|
width: "24px",
|
|
@@ -5021,16 +5052,16 @@ const dr = ({
|
|
|
5021
5052
|
return /* @__PURE__ */ t.jsx(
|
|
5022
5053
|
"div",
|
|
5023
5054
|
{
|
|
5024
|
-
className:
|
|
5055
|
+
className: _(I, "w-full bg-surface border border-accent rounded-lg flex items-center justify-center", y),
|
|
5025
5056
|
children: /* @__PURE__ */ t.jsx("p", { className: "text-muted", children: "No images to display" })
|
|
5026
5057
|
}
|
|
5027
5058
|
);
|
|
5028
5059
|
const K = e[r];
|
|
5029
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
5060
|
+
return /* @__PURE__ */ t.jsxs("div", { className: _("relative w-full", y), children: [
|
|
5030
5061
|
/* @__PURE__ */ t.jsxs(
|
|
5031
5062
|
"div",
|
|
5032
5063
|
{
|
|
5033
|
-
className: `relative w-full overflow-hidden rounded-lg border border-accent bg-surface ${
|
|
5064
|
+
className: `relative w-full overflow-hidden rounded-lg border border-accent bg-surface ${I}`,
|
|
5034
5065
|
children: [
|
|
5035
5066
|
/* @__PURE__ */ t.jsxs("div", { className: "absolute inset-0 pointer-events-none", children: [
|
|
5036
5067
|
/* @__PURE__ */ t.jsx("div", { className: "absolute top-2 left-2 w-4 h-4 border-l-2 border-t-2 border-primary opacity-60" }),
|
|
@@ -5042,7 +5073,7 @@ const dr = ({
|
|
|
5042
5073
|
/* @__PURE__ */ t.jsxs(
|
|
5043
5074
|
"div",
|
|
5044
5075
|
{
|
|
5045
|
-
className: `relative w-full h-full overflow-hidden carousel-${
|
|
5076
|
+
className: `relative w-full h-full overflow-hidden carousel-${d}`,
|
|
5046
5077
|
children: [
|
|
5047
5078
|
i === "slide" && Q(),
|
|
5048
5079
|
(i === "fade" || i === "matrix") && re(),
|
|
@@ -5057,74 +5088,76 @@ const dr = ({
|
|
|
5057
5088
|
),
|
|
5058
5089
|
Y()
|
|
5059
5090
|
] });
|
|
5060
|
-
}
|
|
5091
|
+
};
|
|
5092
|
+
lt.displayName = "CyberUI.Carousel";
|
|
5093
|
+
const Pr = _e(lt), Nr = {
|
|
5061
5094
|
openDuration: 600,
|
|
5062
5095
|
closeDuration: 400,
|
|
5063
5096
|
crtEffects: !0
|
|
5064
|
-
},
|
|
5097
|
+
}, Cr = {
|
|
5065
5098
|
sm: "max-w-md",
|
|
5066
5099
|
md: "max-w-lg",
|
|
5067
5100
|
lg: "max-w-2xl",
|
|
5068
5101
|
xl: "max-w-4xl",
|
|
5069
5102
|
fullscreen: "max-w-none w-full h-full"
|
|
5070
|
-
},
|
|
5103
|
+
}, Sr = _e(
|
|
5071
5104
|
({
|
|
5072
5105
|
isOpen: e,
|
|
5073
5106
|
onClose: r,
|
|
5074
5107
|
title: a,
|
|
5075
5108
|
children: s,
|
|
5076
5109
|
footer: n,
|
|
5077
|
-
onCancel:
|
|
5110
|
+
onCancel: c,
|
|
5078
5111
|
onConfirm: l,
|
|
5079
5112
|
cancelText: i = "Cancel",
|
|
5080
|
-
confirmText:
|
|
5081
|
-
confirmLoading:
|
|
5113
|
+
confirmText: d = "Confirm",
|
|
5114
|
+
confirmLoading: h = !1,
|
|
5082
5115
|
showCancel: m = !0,
|
|
5083
5116
|
showConfirm: y = !0,
|
|
5084
5117
|
size: p = "lg",
|
|
5085
|
-
variant:
|
|
5118
|
+
variant: g = "default",
|
|
5086
5119
|
closeOnOverlayClick: w = !0,
|
|
5087
5120
|
closeOnEscape: x = !0,
|
|
5088
5121
|
animation: v,
|
|
5089
5122
|
className: A = "",
|
|
5090
5123
|
overlayClassName: N = "",
|
|
5091
|
-
showCloseButton:
|
|
5092
|
-
onOpen:
|
|
5124
|
+
showCloseButton: $ = !0,
|
|
5125
|
+
onOpen: T,
|
|
5093
5126
|
onCRTBootComplete: C
|
|
5094
5127
|
}) => {
|
|
5095
|
-
const
|
|
5096
|
-
() => ({ ...
|
|
5128
|
+
const I = pe(
|
|
5129
|
+
() => ({ ...Nr, ...v }),
|
|
5097
5130
|
[v]
|
|
5098
|
-
), [G, f] = Z(!1), [M,
|
|
5131
|
+
), [G, f] = Z(!1), [M, U] = Z(!0), X = te(null), Q = te(null), re = te(null), ee = te(`modal-title-${Math.random().toString(36).slice(2)}`), F = D(() => {
|
|
5099
5132
|
f(!0), setTimeout(() => {
|
|
5100
|
-
f(!1),
|
|
5101
|
-
},
|
|
5102
|
-
}, [r,
|
|
5133
|
+
f(!1), U(!0), r();
|
|
5134
|
+
}, I.closeDuration);
|
|
5135
|
+
}, [r, I.closeDuration]);
|
|
5103
5136
|
oe(() => {
|
|
5104
|
-
e && !G && (re.current = document.activeElement || null,
|
|
5105
|
-
|
|
5106
|
-
},
|
|
5137
|
+
e && !G && (re.current = document.activeElement || null, U(!0), T?.(), setTimeout(() => {
|
|
5138
|
+
U(!1), C?.(), Q.current?.focus();
|
|
5139
|
+
}, I.openDuration));
|
|
5107
5140
|
}, [
|
|
5108
5141
|
e,
|
|
5109
5142
|
G,
|
|
5110
|
-
|
|
5143
|
+
T,
|
|
5111
5144
|
C,
|
|
5112
|
-
|
|
5145
|
+
I.openDuration
|
|
5113
5146
|
]);
|
|
5114
5147
|
const H = D(() => {
|
|
5115
|
-
|
|
5116
|
-
}, [
|
|
5117
|
-
l?.(),
|
|
5118
|
-
}, [l,
|
|
5148
|
+
c?.(), F();
|
|
5149
|
+
}, [c, F]), q = D(() => {
|
|
5150
|
+
l?.(), F();
|
|
5151
|
+
}, [l, F]), Y = D(
|
|
5119
5152
|
(u) => {
|
|
5120
|
-
w && (u.target === X.current || u.target === u.currentTarget) &&
|
|
5153
|
+
w && (u.target === X.current || u.target === u.currentTarget) && F();
|
|
5121
5154
|
},
|
|
5122
|
-
[
|
|
5155
|
+
[F, w]
|
|
5123
5156
|
), K = D(
|
|
5124
5157
|
(u) => {
|
|
5125
|
-
x && u.key === "Escape" &&
|
|
5158
|
+
x && u.key === "Escape" && F();
|
|
5126
5159
|
},
|
|
5127
|
-
[
|
|
5160
|
+
[F, x]
|
|
5128
5161
|
);
|
|
5129
5162
|
oe(() => {
|
|
5130
5163
|
if (e) {
|
|
@@ -5136,15 +5169,15 @@ const dr = ({
|
|
|
5136
5169
|
}
|
|
5137
5170
|
}, [e, K]);
|
|
5138
5171
|
const o = pe(() => {
|
|
5139
|
-
const u =
|
|
5140
|
-
return
|
|
5172
|
+
const u = g === "danger", b = u ? "border-error" : "border-accent", R = u ? "shadow-error" : "shadow-lg-accent", S = u ? "shadow-error/50" : "shadow-input-accent/50", E = u ? "animate-danger-glow" : "animate-rgb-glow";
|
|
5173
|
+
return _(
|
|
5141
5174
|
"relative bg-surface border-2 rounded-lg max-h-[90vh] overflow-hidden flex flex-col transform transition-all duration-300",
|
|
5142
|
-
|
|
5143
|
-
|
|
5175
|
+
Cr[p],
|
|
5176
|
+
I.crtEffects && M ? `animate-crt-power-on ${b} ${R}` : I.crtEffects && G ? `animate-crt-power-off ${b} ${R}` : G ? `scale-95 opacity-0 ${b}/20` : M ? `scale-105 opacity-90 ${b} ${S}` : `scale-100 opacity-100 ${E}`,
|
|
5144
5177
|
A
|
|
5145
5178
|
);
|
|
5146
|
-
}, [p,
|
|
5147
|
-
return e ?
|
|
5179
|
+
}, [p, I.crtEffects, G, M, A, g]);
|
|
5180
|
+
return e ? Fe(
|
|
5148
5181
|
/* @__PURE__ */ t.jsx(
|
|
5149
5182
|
"div",
|
|
5150
5183
|
{
|
|
@@ -5169,10 +5202,10 @@ const dr = ({
|
|
|
5169
5202
|
"aria-labelledby": a ? ee.current : void 0,
|
|
5170
5203
|
tabIndex: -1,
|
|
5171
5204
|
children: [
|
|
5172
|
-
|
|
5205
|
+
$ && /* @__PURE__ */ t.jsx(
|
|
5173
5206
|
"button",
|
|
5174
5207
|
{
|
|
5175
|
-
onClick:
|
|
5208
|
+
onClick: F,
|
|
5176
5209
|
className: `absolute top-4 right-4 text-muted hover:text-accent transition-all duration-300 z-20 rounded-full w-8 h-8 flex items-center justify-center cursor-pointer transform ${G ? "scale-0 rotate-180 opacity-0" : M ? "scale-0 opacity-0" : "scale-100 opacity-100 hover:scale-110 hover:bg-accent/10"}`,
|
|
5177
5210
|
"aria-label": "Close modal",
|
|
5178
5211
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -5200,16 +5233,16 @@ const dr = ({
|
|
|
5200
5233
|
a && /* @__PURE__ */ t.jsx(
|
|
5201
5234
|
"div",
|
|
5202
5235
|
{
|
|
5203
|
-
className:
|
|
5236
|
+
className: _(
|
|
5204
5237
|
"px-6 py-4 border-b flex-shrink-0 transition-all duration-300",
|
|
5205
|
-
|
|
5238
|
+
g === "danger" ? "border-error/20" : "border-accent/20",
|
|
5206
5239
|
M ? "opacity-0 translate-y-2" : "opacity-100 translate-y-0"
|
|
5207
5240
|
),
|
|
5208
5241
|
children: /* @__PURE__ */ t.jsx(
|
|
5209
5242
|
"h2",
|
|
5210
5243
|
{
|
|
5211
5244
|
id: ee.current,
|
|
5212
|
-
className:
|
|
5245
|
+
className: _("text-lg font-semibold", g === "danger" ? "text-error" : "text-primary"),
|
|
5213
5246
|
children: a
|
|
5214
5247
|
}
|
|
5215
5248
|
)
|
|
@@ -5222,27 +5255,27 @@ const dr = ({
|
|
|
5222
5255
|
children: s
|
|
5223
5256
|
}
|
|
5224
5257
|
),
|
|
5225
|
-
(n ||
|
|
5258
|
+
(n || c || l) && /* @__PURE__ */ t.jsx(
|
|
5226
5259
|
"div",
|
|
5227
5260
|
{
|
|
5228
|
-
className:
|
|
5261
|
+
className: _(
|
|
5229
5262
|
"px-6 py-4 border-t flex-shrink-0 transition-all duration-300",
|
|
5230
|
-
|
|
5263
|
+
g === "danger" ? "border-error/20" : "border-accent/20",
|
|
5231
5264
|
M ? "opacity-0 translate-y-2" : "opacity-100 translate-y-0"
|
|
5232
5265
|
),
|
|
5233
5266
|
children: n || /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col-reverse sm:flex-row justify-between items-center gap-3", children: [
|
|
5234
5267
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted text-xs font-mono hidden sm:block", children: "> ESC to abort" }),
|
|
5235
5268
|
/* @__PURE__ */ t.jsxs("div", { className: "flex gap-3 w-full sm:w-auto", children: [
|
|
5236
|
-
m &&
|
|
5269
|
+
m && c && /* @__PURE__ */ t.jsx(Ee, { variant: "ghost", size: "sm", onClick: H, className: "flex-1 sm:flex-none", children: i }),
|
|
5237
5270
|
y && l && /* @__PURE__ */ t.jsx(
|
|
5238
|
-
|
|
5271
|
+
Ee,
|
|
5239
5272
|
{
|
|
5240
|
-
variant:
|
|
5273
|
+
variant: g === "danger" ? "danger" : "primary",
|
|
5241
5274
|
size: "sm",
|
|
5242
5275
|
onClick: q,
|
|
5243
|
-
disabled:
|
|
5276
|
+
disabled: h,
|
|
5244
5277
|
className: "flex-1 sm:flex-none",
|
|
5245
|
-
children:
|
|
5278
|
+
children: d
|
|
5246
5279
|
}
|
|
5247
5280
|
)
|
|
5248
5281
|
] })
|
|
@@ -5258,8 +5291,8 @@ const dr = ({
|
|
|
5258
5291
|
) : null;
|
|
5259
5292
|
}
|
|
5260
5293
|
);
|
|
5261
|
-
|
|
5262
|
-
const
|
|
5294
|
+
Sr.displayName = "CyberUI.Modal";
|
|
5295
|
+
const Er = ({
|
|
5263
5296
|
children: e,
|
|
5264
5297
|
variant: r = "primary",
|
|
5265
5298
|
as: a = "span",
|
|
@@ -5273,11 +5306,13 @@ const Tr = ({
|
|
|
5273
5306
|
return /* @__PURE__ */ t.jsx(
|
|
5274
5307
|
a,
|
|
5275
5308
|
{
|
|
5276
|
-
className:
|
|
5309
|
+
className: _("bg-clip-text text-transparent inline-block", n(r), s),
|
|
5277
5310
|
children: e
|
|
5278
5311
|
}
|
|
5279
5312
|
);
|
|
5280
|
-
}
|
|
5313
|
+
};
|
|
5314
|
+
Er.displayName = "CyberUI.GradientText";
|
|
5315
|
+
const Tr = ({
|
|
5281
5316
|
children: e,
|
|
5282
5317
|
showLine: r = !0,
|
|
5283
5318
|
size: a = "md",
|
|
@@ -5287,7 +5322,7 @@ const Tr = ({
|
|
|
5287
5322
|
sm: "text-xs",
|
|
5288
5323
|
md: "text-sm",
|
|
5289
5324
|
lg: "text-base"
|
|
5290
|
-
},
|
|
5325
|
+
}, c = {
|
|
5291
5326
|
sm: "mb-4",
|
|
5292
5327
|
md: "mb-6",
|
|
5293
5328
|
lg: "mb-8"
|
|
@@ -5295,12 +5330,14 @@ const Tr = ({
|
|
|
5295
5330
|
sm: "gap-3",
|
|
5296
5331
|
md: "gap-4",
|
|
5297
5332
|
lg: "gap-5"
|
|
5298
|
-
}, i =
|
|
5299
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
5333
|
+
}, i = V(a, n), d = V(a, c), h = V(a, l), m = _("flex items-center", h, d), y = _("uppercase tracking-[0.2em] text-secondary font-bold whitespace-nowrap", i);
|
|
5334
|
+
return /* @__PURE__ */ t.jsxs("div", { className: _(m, s), children: [
|
|
5300
5335
|
/* @__PURE__ */ t.jsx("h2", { className: y, children: e }),
|
|
5301
5336
|
r && /* @__PURE__ */ t.jsx("div", { className: "h-[1px] w-full bg-gradient-to-r from-secondary/50 to-transparent" })
|
|
5302
5337
|
] });
|
|
5303
|
-
}
|
|
5338
|
+
};
|
|
5339
|
+
Tr.displayName = "CyberUI.SectionTitle";
|
|
5340
|
+
const _r = ({
|
|
5304
5341
|
events: e,
|
|
5305
5342
|
size: r = "md",
|
|
5306
5343
|
className: a = ""
|
|
@@ -5313,7 +5350,7 @@ const Tr = ({
|
|
|
5313
5350
|
sm: "inset-1.5",
|
|
5314
5351
|
md: "inset-2",
|
|
5315
5352
|
lg: "inset-2.5"
|
|
5316
|
-
},
|
|
5353
|
+
}, c = {
|
|
5317
5354
|
sm: "text-sm",
|
|
5318
5355
|
md: "text-base",
|
|
5319
5356
|
lg: "text-lg"
|
|
@@ -5325,16 +5362,16 @@ const Tr = ({
|
|
|
5325
5362
|
sm: "text-[10px]",
|
|
5326
5363
|
md: "text-xs",
|
|
5327
5364
|
lg: "text-sm"
|
|
5328
|
-
},
|
|
5365
|
+
}, d = {
|
|
5329
5366
|
sm: "gap-3",
|
|
5330
5367
|
md: "gap-4",
|
|
5331
5368
|
lg: "gap-5"
|
|
5332
|
-
},
|
|
5369
|
+
}, h = {
|
|
5333
5370
|
sm: "space-y-4",
|
|
5334
5371
|
md: "space-y-6",
|
|
5335
5372
|
lg: "space-y-8"
|
|
5336
|
-
}, m =
|
|
5337
|
-
const
|
|
5373
|
+
}, m = V(r, s), y = V(r, n), p = V(r, c), g = V(r, l), w = V(r, i), x = V(r, d), v = V(r, h), A = ($) => {
|
|
5374
|
+
const T = {
|
|
5338
5375
|
success: {
|
|
5339
5376
|
border: "border-success bg-success/30 shadow-[0_0_10px_var(--color-success)]",
|
|
5340
5377
|
background: "border-success bg-success/30 shadow-[0_0_10px_var(--color-success)]",
|
|
@@ -5356,88 +5393,90 @@ const Tr = ({
|
|
|
5356
5393
|
inner: "bg-info/60"
|
|
5357
5394
|
}
|
|
5358
5395
|
};
|
|
5359
|
-
return $
|
|
5396
|
+
return T[$] || T.info;
|
|
5360
5397
|
}, N = "polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)";
|
|
5361
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
5362
|
-
const C = A(
|
|
5363
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
5398
|
+
return /* @__PURE__ */ t.jsx("div", { className: _(v, a), children: e.map(($, T) => {
|
|
5399
|
+
const C = A($.status);
|
|
5400
|
+
return /* @__PURE__ */ t.jsxs("div", { className: _("flex", x, "group"), children: [
|
|
5364
5401
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
5365
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
5402
|
+
/* @__PURE__ */ t.jsxs("div", { className: _("relative flex-shrink-0 mt-1.5", m), children: [
|
|
5366
5403
|
/* @__PURE__ */ t.jsx(
|
|
5367
5404
|
"div",
|
|
5368
5405
|
{
|
|
5369
|
-
className:
|
|
5406
|
+
className: _("absolute inset-0 border-2 transition-all duration-300", C.border),
|
|
5370
5407
|
style: { clipPath: N }
|
|
5371
5408
|
}
|
|
5372
5409
|
),
|
|
5373
5410
|
/* @__PURE__ */ t.jsx(
|
|
5374
5411
|
"div",
|
|
5375
5412
|
{
|
|
5376
|
-
className:
|
|
5413
|
+
className: _("absolute", y, C.inner),
|
|
5377
5414
|
style: { clipPath: N }
|
|
5378
5415
|
}
|
|
5379
5416
|
)
|
|
5380
5417
|
] }),
|
|
5381
|
-
|
|
5418
|
+
T < e.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "w-[2px] flex-1 bg-gradient-to-b from-secondary/50 to-transparent mt-2" })
|
|
5382
5419
|
] }),
|
|
5383
5420
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-1 pb-6", children: [
|
|
5384
5421
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between mb-1", children: [
|
|
5385
|
-
/* @__PURE__ */ t.jsx("h4", { className:
|
|
5386
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
5422
|
+
/* @__PURE__ */ t.jsx("h4", { className: _("font-semibold text-default group-hover:text-secondary transition-colors", p), children: $.title }),
|
|
5423
|
+
/* @__PURE__ */ t.jsx("span", { className: _("text-muted whitespace-nowrap ml-4", w), children: $.time })
|
|
5387
5424
|
] }),
|
|
5388
|
-
|
|
5425
|
+
$.description && /* @__PURE__ */ t.jsx("p", { className: _("text-muted mt-1", g), children: $.description })
|
|
5389
5426
|
] })
|
|
5390
|
-
] },
|
|
5427
|
+
] }, T);
|
|
5391
5428
|
}) });
|
|
5392
|
-
}
|
|
5429
|
+
};
|
|
5430
|
+
_r.displayName = "CyberUI.Timeline";
|
|
5431
|
+
const $r = ({
|
|
5393
5432
|
items: e,
|
|
5394
5433
|
current: r = 0,
|
|
5395
5434
|
orientation: a = { base: "vertical", md: "horizontal" },
|
|
5396
5435
|
className: s = ""
|
|
5397
5436
|
}) => {
|
|
5398
|
-
const
|
|
5399
|
-
const w = p.status === "completed" || p.status === void 0 &&
|
|
5437
|
+
const c = Ue(a, "vertical") === "vertical", l = (p, g) => {
|
|
5438
|
+
const w = p.status === "completed" || p.status === void 0 && g < r, x = p.status === "current" || p.status === void 0 && g === r && r < e.length, v = p.status === "error";
|
|
5400
5439
|
return { isCompleted: w, isCurrent: x, isError: v };
|
|
5401
|
-
}, i = (p,
|
|
5402
|
-
const x =
|
|
5440
|
+
}, i = (p, g, w) => {
|
|
5441
|
+
const x = _(
|
|
5403
5442
|
"relative px-2 py-1 pb-2 font-bold text-sm transition-colors duration-200 whitespace-nowrap overflow-hidden",
|
|
5404
5443
|
"after:content-[''] after:absolute after:left-0 after:right-0 after:bottom-0 after:h-[2px] after:w-full after:scale-x-0 after:origin-center after:transition-transform after:duration-300 after:ease-out",
|
|
5405
5444
|
"before:content-[''] before:absolute before:left-1/2 before:-translate-x-1/2 before:-bottom-[3px] before:w-1.5 before:h-1.5 before:bg-accent before:rotate-45 before:rounded-[2px] before:opacity-0 before:transition-opacity before:duration-200"
|
|
5406
5445
|
);
|
|
5407
|
-
return p ?
|
|
5408
|
-
},
|
|
5446
|
+
return p ? _(x, "text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100") : g ? _(x, "text-secondary before:opacity-100") : w ? _(x, "text-error") : _(x, "text-muted");
|
|
5447
|
+
}, d = (p, g, w, x) => ({
|
|
5409
5448
|
color: "var(--color-primary)",
|
|
5410
5449
|
opacity: w ? 0.8 : 0.3,
|
|
5411
5450
|
filter: w ? "drop-shadow(0 0 4px color-mix(in srgb, var(--color-primary), transparent 40%))" : "none",
|
|
5412
|
-
animation:
|
|
5413
|
-
}),
|
|
5414
|
-
const x =
|
|
5451
|
+
animation: g && p ? `chevronFlow 1.5s ease-in-out infinite ${x * 0.2}s` : "none"
|
|
5452
|
+
}), h = _(c ? "flex flex-col items-start gap-0" : "flex items-center justify-center gap-4", s), m = (p, g, w) => p ? "text-secondary drop-shadow-[0_0_4px_var(--color-secondary)]" : g ? "text-accent drop-shadow-[0_0_6px_var(--color-accent)]" : w ? "text-error drop-shadow-[0_0_4px_var(--color-error)]" : "text-muted/50", y = (p, g, w) => {
|
|
5453
|
+
const x = _(
|
|
5415
5454
|
"relative font-bold text-sm transition-colors duration-200 pb-1 w-fit",
|
|
5416
5455
|
"after:content-[''] after:absolute after:left-0 after:right-0 after:bottom-0 after:h-[2px] after:w-full after:scale-x-0 after:origin-left after:transition-transform after:duration-300 after:ease-out"
|
|
5417
5456
|
);
|
|
5418
|
-
return p ?
|
|
5457
|
+
return p ? _(x, "text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100") : g ? _(x, "text-secondary") : w ? _(x, "text-error") : _(x, "text-muted");
|
|
5419
5458
|
};
|
|
5420
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
5421
|
-
const { isCompleted: w, isCurrent: x, isError: v } = l(p,
|
|
5422
|
-
return /* @__PURE__ */ t.jsxs(
|
|
5423
|
-
|
|
5459
|
+
return /* @__PURE__ */ t.jsx("div", { className: h, children: e.map((p, g) => {
|
|
5460
|
+
const { isCompleted: w, isCurrent: x, isError: v } = l(p, g), A = g < e.length - 1 && (e[g + 1]?.status === "current" || e[g + 1]?.status === void 0 && g + 1 === r && r < e.length), N = g < e.length - 1 && (e[g + 1]?.status === "completed" || e[g + 1]?.status === void 0 && g + 1 < r);
|
|
5461
|
+
return /* @__PURE__ */ t.jsxs(Te.Fragment, { children: [
|
|
5462
|
+
c ? (
|
|
5424
5463
|
// Vertical layout: step row + chevrons below
|
|
5425
5464
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col w-full", children: [
|
|
5426
5465
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-start gap-1.5", children: [
|
|
5427
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
5466
|
+
/* @__PURE__ */ t.jsx("span", { className: _("text-xs leading-5 flex-shrink-0", m(w, x, v)), children: "▸" }),
|
|
5428
5467
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col", children: [
|
|
5429
5468
|
/* @__PURE__ */ t.jsx("div", { className: y(w, x, v), children: p.title }),
|
|
5430
5469
|
p.description && /* @__PURE__ */ t.jsx("div", { className: "text-xs text-muted mt-0.5 font-normal", children: p.description })
|
|
5431
5470
|
] })
|
|
5432
5471
|
] }),
|
|
5433
|
-
|
|
5472
|
+
g < e.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "flex flex-col items-center py-0.5", children: [0, 1, 2].map(($) => /* @__PURE__ */ t.jsx(
|
|
5434
5473
|
"div",
|
|
5435
5474
|
{
|
|
5436
5475
|
className: "text-sm font-bold transition-all duration-300 rotate-90 leading-[0.6]",
|
|
5437
|
-
style:
|
|
5476
|
+
style: d(w, A, N, $),
|
|
5438
5477
|
children: "›"
|
|
5439
5478
|
},
|
|
5440
|
-
|
|
5479
|
+
$
|
|
5441
5480
|
)) })
|
|
5442
5481
|
] })
|
|
5443
5482
|
) : (
|
|
@@ -5447,18 +5486,20 @@ const Tr = ({
|
|
|
5447
5486
|
p.description && /* @__PURE__ */ t.jsx("div", { className: "text-xs text-muted mt-1 font-normal", children: p.description })
|
|
5448
5487
|
] })
|
|
5449
5488
|
),
|
|
5450
|
-
!
|
|
5489
|
+
!c && g < e.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "flex", children: [0, 1, 2].map(($) => /* @__PURE__ */ t.jsx(
|
|
5451
5490
|
"div",
|
|
5452
5491
|
{
|
|
5453
5492
|
className: "text-2xl font-bold transition-all duration-300",
|
|
5454
|
-
style:
|
|
5493
|
+
style: d(w, A, N, $),
|
|
5455
5494
|
children: "›"
|
|
5456
5495
|
},
|
|
5457
|
-
|
|
5496
|
+
$
|
|
5458
5497
|
)) })
|
|
5459
|
-
] },
|
|
5498
|
+
] }, g);
|
|
5460
5499
|
}) });
|
|
5461
|
-
}
|
|
5500
|
+
};
|
|
5501
|
+
$r.displayName = "CyberUI.Steps";
|
|
5502
|
+
const Rr = ({
|
|
5462
5503
|
variant: e = "gradient",
|
|
5463
5504
|
orientation: r = "horizontal",
|
|
5464
5505
|
className: a = ""
|
|
@@ -5467,26 +5508,28 @@ const Tr = ({
|
|
|
5467
5508
|
gradient: i === "horizontal" ? "bg-gradient-to-r from-transparent via-secondary/50 to-transparent" : "bg-gradient-to-b from-transparent via-secondary/50 to-transparent",
|
|
5468
5509
|
solid: "bg-secondary/30",
|
|
5469
5510
|
dashed: `border-dashed border-secondary/50 ${i === "horizontal" ? "border-t" : "border-l"}`
|
|
5470
|
-
})[l],
|
|
5511
|
+
})[l], c = _(
|
|
5471
5512
|
s(r),
|
|
5472
5513
|
n(e, r),
|
|
5473
5514
|
a
|
|
5474
5515
|
);
|
|
5475
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
5476
|
-
}
|
|
5516
|
+
return /* @__PURE__ */ t.jsx("div", { className: c });
|
|
5517
|
+
};
|
|
5518
|
+
Rr.displayName = "CyberUI.Divider";
|
|
5519
|
+
const Ar = ({
|
|
5477
5520
|
label: e,
|
|
5478
5521
|
error: r,
|
|
5479
5522
|
size: a = "md",
|
|
5480
5523
|
className: s = "",
|
|
5481
5524
|
checked: n,
|
|
5482
|
-
onChange:
|
|
5525
|
+
onChange: c,
|
|
5483
5526
|
onCheckedChange: l,
|
|
5484
5527
|
disabled: i,
|
|
5485
|
-
...
|
|
5528
|
+
...d
|
|
5486
5529
|
}) => {
|
|
5487
|
-
const [
|
|
5488
|
-
i || (n === void 0 && m(C.target.checked),
|
|
5489
|
-
},
|
|
5530
|
+
const [h, m] = Te.useState(d.defaultChecked || !1), y = n !== void 0 ? n : h, p = (C) => {
|
|
5531
|
+
i || (n === void 0 && m(C.target.checked), c?.(C), l?.(C.target.checked));
|
|
5532
|
+
}, g = {
|
|
5490
5533
|
sm: "w-4 h-4",
|
|
5491
5534
|
md: "w-5 h-5",
|
|
5492
5535
|
lg: "w-6 h-6"
|
|
@@ -5498,13 +5541,13 @@ const Tr = ({
|
|
|
5498
5541
|
sm: "ml-6",
|
|
5499
5542
|
md: "ml-8",
|
|
5500
5543
|
lg: "ml-9"
|
|
5501
|
-
}, v =
|
|
5502
|
-
const
|
|
5503
|
-
return i ?
|
|
5544
|
+
}, v = V(a, g), A = V(a, w), N = V(a, x), $ = (C) => i ? "stroke-muted/20" : _("transition-all duration-200 group-hover:stroke-secondary group-hover:stroke-[1.5]", C ? "stroke-secondary" : "stroke-secondary/50"), T = (C) => {
|
|
5545
|
+
const I = "transition-all duration-200";
|
|
5546
|
+
return i ? _(I, C ? "fill-muted/20" : "fill-transparent") : _(I, C ? "fill-secondary" : "fill-transparent");
|
|
5504
5547
|
};
|
|
5505
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
5506
|
-
/* @__PURE__ */ t.jsxs("label", { className:
|
|
5507
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
5548
|
+
return /* @__PURE__ */ t.jsxs("div", { className: _("flex flex-col gap-1", s, i && "opacity-50 cursor-not-allowed"), children: [
|
|
5549
|
+
/* @__PURE__ */ t.jsxs("label", { className: _("flex items-center gap-3 group", i ? "cursor-not-allowed pointer-events-none" : "cursor-pointer"), children: [
|
|
5550
|
+
/* @__PURE__ */ t.jsxs("div", { className: _("relative flex-shrink-0", v), children: [
|
|
5508
5551
|
/* @__PURE__ */ t.jsx(
|
|
5509
5552
|
"input",
|
|
5510
5553
|
{
|
|
@@ -5513,7 +5556,7 @@ const Tr = ({
|
|
|
5513
5556
|
checked: y,
|
|
5514
5557
|
onChange: p,
|
|
5515
5558
|
disabled: i,
|
|
5516
|
-
...
|
|
5559
|
+
...d
|
|
5517
5560
|
}
|
|
5518
5561
|
),
|
|
5519
5562
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -5535,7 +5578,7 @@ const Tr = ({
|
|
|
5535
5578
|
"path",
|
|
5536
5579
|
{
|
|
5537
5580
|
d: "M 1 1 L 19 1 L 19 15 L 15 19 L 1 19 Z",
|
|
5538
|
-
className:
|
|
5581
|
+
className: $(y),
|
|
5539
5582
|
strokeWidth: "1",
|
|
5540
5583
|
fill: "none"
|
|
5541
5584
|
}
|
|
@@ -5544,18 +5587,20 @@ const Tr = ({
|
|
|
5544
5587
|
"path",
|
|
5545
5588
|
{
|
|
5546
5589
|
d: "M 4 4 L 16 4 L 16 13 L 13 16 L 4 16 Z",
|
|
5547
|
-
className:
|
|
5590
|
+
className: T(y)
|
|
5548
5591
|
}
|
|
5549
5592
|
)
|
|
5550
5593
|
]
|
|
5551
5594
|
}
|
|
5552
5595
|
)
|
|
5553
5596
|
] }),
|
|
5554
|
-
e && /* @__PURE__ */ t.jsx("span", { className:
|
|
5597
|
+
e && /* @__PURE__ */ t.jsx("span", { className: _("transition-colors", A, i ? "text-muted" : "text-muted group-hover:text-secondary"), children: e })
|
|
5555
5598
|
] }),
|
|
5556
|
-
r && !i && /* @__PURE__ */ t.jsx("span", { className:
|
|
5599
|
+
r && !i && /* @__PURE__ */ t.jsx("span", { className: _("text-xs text-error", N), children: r })
|
|
5557
5600
|
] });
|
|
5558
|
-
}
|
|
5601
|
+
};
|
|
5602
|
+
Ar.displayName = "CyberUI.Checkbox";
|
|
5603
|
+
const ne = {
|
|
5559
5604
|
MOBILE_BREAKPOINT: 768,
|
|
5560
5605
|
STABLE_TIMEOUT: 1e3,
|
|
5561
5606
|
MOBILE_HIDE_DELAY: 1e3,
|
|
@@ -5563,28 +5608,28 @@ const Tr = ({
|
|
|
5563
5608
|
DISTANCE_THRESHOLD: 100,
|
|
5564
5609
|
MAX_ANIMATION_SPEED: 5,
|
|
5565
5610
|
MIN_GLOW_DURATION: 150
|
|
5566
|
-
},
|
|
5611
|
+
}, Or = (e = {}) => {
|
|
5567
5612
|
const {
|
|
5568
5613
|
glowColor: r = "primary",
|
|
5569
5614
|
sensitivity: a = 2,
|
|
5570
5615
|
disabled: s = !1,
|
|
5571
5616
|
pageLevel: n,
|
|
5572
|
-
variant:
|
|
5617
|
+
variant: c = "default",
|
|
5573
5618
|
className: l = ""
|
|
5574
|
-
} = e, i = te(null),
|
|
5619
|
+
} = e, i = te(null), d = te(null), h = te(Date.now()), m = te(0), y = te(void 0), p = te([]), g = te(void 0), [w, x] = Z({
|
|
5575
5620
|
isScrolling: !1,
|
|
5576
5621
|
direction: null,
|
|
5577
5622
|
velocity: 0,
|
|
5578
5623
|
position: 0,
|
|
5579
5624
|
scrollDistance: 0
|
|
5580
|
-
}), [v, A] = Z(!1), [N,
|
|
5625
|
+
}), [v, A] = Z(!1), [N, $] = Z(() => typeof window > "u" ? !1 : window.innerWidth >= ne.MOBILE_BREAKPOINT), T = te(0), [C, I] = Z(n ?? !1);
|
|
5581
5626
|
oe(() => {
|
|
5582
5627
|
if (n !== void 0)
|
|
5583
|
-
|
|
5628
|
+
I(n);
|
|
5584
5629
|
else {
|
|
5585
5630
|
const u = setTimeout(() => {
|
|
5586
5631
|
const b = i.current !== null;
|
|
5587
|
-
|
|
5632
|
+
I(!b);
|
|
5588
5633
|
}, 0);
|
|
5589
5634
|
return () => clearTimeout(u);
|
|
5590
5635
|
}
|
|
@@ -5624,9 +5669,9 @@ const Tr = ({
|
|
|
5624
5669
|
arrowGap: u ? 2 : 4
|
|
5625
5670
|
};
|
|
5626
5671
|
}, []), M = D((u, b, R, S) => {
|
|
5627
|
-
const E = (S + R) * 2,
|
|
5672
|
+
const E = (S + R) * 2, P = R * 4, O = (u - E - P) / 2;
|
|
5628
5673
|
return Math.floor(O / (b + R));
|
|
5629
|
-
}, []),
|
|
5674
|
+
}, []), U = D((u) => {
|
|
5630
5675
|
if (C) {
|
|
5631
5676
|
if (!document.querySelector("#cyber-page-scrollbar-styles")) {
|
|
5632
5677
|
const b = document.createElement("style");
|
|
@@ -5645,13 +5690,13 @@ const Tr = ({
|
|
|
5645
5690
|
u.classList.add("cyber-scrollbar-container");
|
|
5646
5691
|
}
|
|
5647
5692
|
}, [C]), X = D((u, b, R, S) => {
|
|
5648
|
-
const E = document.createElement("div"),
|
|
5649
|
-
|
|
5693
|
+
const E = document.createElement("div"), P = u === "arrow";
|
|
5694
|
+
P && b ? (E.className = `cyber-arrow cyber-arrow-${b} cyber-arrow-${R}`, E.innerHTML = b === "up" ? "▲" : "▼") : (E.className = `cyber-line cyber-line-${R}`, E.innerHTML = "=");
|
|
5650
5695
|
const W = S.isMobile ? "none" : `drop-shadow(0 0 6px var(--color-${r}))
|
|
5651
5696
|
drop-shadow(0 0 12px var(--color-${r}))
|
|
5652
5697
|
drop-shadow(0 0 18px var(--color-${r}))`;
|
|
5653
5698
|
return E.style.cssText = `
|
|
5654
|
-
font-size: ${
|
|
5699
|
+
font-size: ${P ? S.arrowSize : S.lineSize}px;
|
|
5655
5700
|
color: var(--color-${r});
|
|
5656
5701
|
opacity: 0;
|
|
5657
5702
|
transition: all 0.2s ease;
|
|
@@ -5675,12 +5720,12 @@ const Tr = ({
|
|
|
5675
5720
|
};
|
|
5676
5721
|
}
|
|
5677
5722
|
}, [C]), re = D(() => {
|
|
5678
|
-
if (s || !C && !i.current || (
|
|
5723
|
+
if (s || !C && !i.current || (d.current && d.current.remove(), !(C ? document.body.scrollHeight > window.innerHeight : i.current.scrollHeight > i.current.clientHeight))) return;
|
|
5679
5724
|
const b = f(), R = Q(), S = M(R.height, b.arrowSize, b.arrowGap, b.lineSize);
|
|
5680
|
-
|
|
5725
|
+
U(C ? void 0 : i.current || void 0);
|
|
5681
5726
|
const E = document.createElement("div");
|
|
5682
5727
|
E.className = `cyber-scrollbar ${l}`.trim();
|
|
5683
|
-
const W = b.isMobile ? "transparent" :
|
|
5728
|
+
const W = b.isMobile ? "transparent" : c, O = G(W);
|
|
5684
5729
|
E.style.cssText = `
|
|
5685
5730
|
position: fixed;
|
|
5686
5731
|
top: ${R.top}px;
|
|
@@ -5700,67 +5745,67 @@ const Tr = ({
|
|
|
5700
5745
|
border: ${O.border};
|
|
5701
5746
|
box-shadow: ${O.boxShadow};
|
|
5702
5747
|
`;
|
|
5703
|
-
for (let
|
|
5704
|
-
E.appendChild(X("arrow", "up",
|
|
5705
|
-
for (let
|
|
5706
|
-
E.appendChild(X("line", void 0,
|
|
5707
|
-
for (let
|
|
5708
|
-
E.appendChild(X("arrow", "down",
|
|
5709
|
-
document.body.appendChild(E),
|
|
5748
|
+
for (let B = 0; B < S; B++)
|
|
5749
|
+
E.appendChild(X("arrow", "up", B, b));
|
|
5750
|
+
for (let B = 0; B < 2; B++)
|
|
5751
|
+
E.appendChild(X("line", void 0, B, b));
|
|
5752
|
+
for (let B = 0; B < S; B++)
|
|
5753
|
+
E.appendChild(X("arrow", "down", B, b));
|
|
5754
|
+
document.body.appendChild(E), d.current = E;
|
|
5710
5755
|
const L = C ? void 0 : () => {
|
|
5711
|
-
const
|
|
5712
|
-
if (
|
|
5713
|
-
const se =
|
|
5756
|
+
const B = i.current;
|
|
5757
|
+
if (B) {
|
|
5758
|
+
const se = B.getBoundingClientRect();
|
|
5714
5759
|
E.style.top = `${se.top}px`, E.style.right = `${window.innerWidth - se.right}px`, E.style.height = `${se.height}px`;
|
|
5715
5760
|
}
|
|
5716
5761
|
};
|
|
5717
5762
|
return L && (window.addEventListener("resize", L), window.addEventListener("scroll", L)), () => {
|
|
5718
5763
|
E.remove(), !C && i.current && i.current.classList.remove("cyber-scrollbar-container"), L && (window.removeEventListener("resize", L), window.removeEventListener("scroll", L));
|
|
5719
5764
|
};
|
|
5720
|
-
}, [s, C, N,
|
|
5765
|
+
}, [s, C, N, U, Q, X, f, M, G, c, l]), ee = D((u, b) => {
|
|
5721
5766
|
const R = Math.max(1, Math.min(3, Math.ceil(u * 0.8))), S = Math.floor(b / ne.DISTANCE_THRESHOLD);
|
|
5722
5767
|
return R + S;
|
|
5723
|
-
}, []),
|
|
5768
|
+
}, []), F = D((u, b, R) => {
|
|
5724
5769
|
const S = Array.from(u).filter(
|
|
5725
|
-
(
|
|
5770
|
+
(P) => P.classList.contains(`cyber-arrow-${b}`)
|
|
5726
5771
|
), E = Math.min(R, S.length);
|
|
5727
5772
|
return b === "up" ? S.slice(-E) : S.slice(0, E);
|
|
5728
5773
|
}, []), H = D((u, b, R) => {
|
|
5729
|
-
const S = Math.min(b * a, ne.MAX_ANIMATION_SPEED), E = window.innerWidth < ne.MOBILE_BREAKPOINT,
|
|
5774
|
+
const S = Math.min(b * a, ne.MAX_ANIMATION_SPEED), E = window.innerWidth < ne.MOBILE_BREAKPOINT, P = Math.max(300 / S, ne.MIN_GLOW_DURATION) * (E ? 1.5 : 1), W = Math.max(40, 80 / S) * (E ? 1.25 : 1), O = R === "up" ? [...u].reverse() : u;
|
|
5730
5775
|
O.forEach((L) => {
|
|
5731
5776
|
L.style.opacity = "0.3";
|
|
5732
|
-
}), O.forEach((L,
|
|
5733
|
-
const se =
|
|
5777
|
+
}), O.forEach((L, B) => {
|
|
5778
|
+
const se = B * W, fe = setTimeout(() => {
|
|
5734
5779
|
L.style.opacity = "1";
|
|
5735
5780
|
const be = setTimeout(() => {
|
|
5736
5781
|
L.style.opacity = "0.3";
|
|
5737
|
-
},
|
|
5782
|
+
}, P);
|
|
5738
5783
|
p.current.push(be);
|
|
5739
5784
|
}, se);
|
|
5740
5785
|
p.current.push(fe);
|
|
5741
5786
|
});
|
|
5742
5787
|
}, [a]), q = D(() => {
|
|
5743
|
-
if (!
|
|
5744
|
-
const { isScrolling: u, direction: b, velocity: R, scrollDistance: S } = w, E =
|
|
5788
|
+
if (!d.current) return;
|
|
5789
|
+
const { isScrolling: u, direction: b, velocity: R, scrollDistance: S } = w, E = d.current.querySelectorAll(".cyber-arrow"), P = d.current.querySelectorAll(".cyber-line");
|
|
5745
5790
|
if (u && b) {
|
|
5746
|
-
|
|
5791
|
+
P.forEach((O) => {
|
|
5747
5792
|
O.style.opacity = "0";
|
|
5748
5793
|
});
|
|
5749
5794
|
const W = ee(R, S);
|
|
5750
|
-
if (W !==
|
|
5795
|
+
if (W !== T.current) {
|
|
5751
5796
|
p.current.forEach((L) => clearTimeout(L)), p.current = [], E.forEach((L) => {
|
|
5752
5797
|
L.style.opacity = "0";
|
|
5753
5798
|
});
|
|
5754
|
-
const O =
|
|
5755
|
-
H(O, R, b),
|
|
5799
|
+
const O = F(Array.from(E), b, W);
|
|
5800
|
+
H(O, R, b), T.current = W;
|
|
5756
5801
|
}
|
|
5757
5802
|
} else
|
|
5758
|
-
p.current.forEach((W) => clearTimeout(W)), p.current = [],
|
|
5803
|
+
p.current.forEach((W) => clearTimeout(W)), p.current = [], T.current = 0, E.forEach((W) => {
|
|
5759
5804
|
W.style.opacity = "0";
|
|
5760
|
-
}), v &&
|
|
5805
|
+
}), v && P.forEach((W) => {
|
|
5761
5806
|
W.style.opacity = "0.6";
|
|
5762
5807
|
});
|
|
5763
|
-
}, [w, v, H, ee,
|
|
5808
|
+
}, [w, v, H, ee, F]), Y = te(null), K = D(() => {
|
|
5764
5809
|
if (s || !C && !i.current) return;
|
|
5765
5810
|
const u = Date.now(), b = C ? {
|
|
5766
5811
|
currentScrollTop: window.scrollY,
|
|
@@ -5770,25 +5815,25 @@ const Tr = ({
|
|
|
5770
5815
|
currentScrollTop: i.current.scrollTop,
|
|
5771
5816
|
scrollHeight: i.current.scrollHeight,
|
|
5772
5817
|
clientHeight: i.current.clientHeight
|
|
5773
|
-
}, R = u -
|
|
5818
|
+
}, R = u - h.current, S = b.currentScrollTop - m.current, P = Math.abs(S) / Math.max(R, 1) * ne.VELOCITY_MULTIPLIER, W = S > 0 ? "down" : S < 0 ? "up" : null, O = b.currentScrollTop / (b.scrollHeight - b.clientHeight);
|
|
5774
5819
|
v || A(!0);
|
|
5775
5820
|
const L = window.innerWidth < ne.MOBILE_BREAKPOINT;
|
|
5776
|
-
L && !N &&
|
|
5821
|
+
L && !N && $(!0), x((B) => ({
|
|
5777
5822
|
isScrolling: !0,
|
|
5778
5823
|
direction: W,
|
|
5779
|
-
velocity:
|
|
5824
|
+
velocity: P,
|
|
5780
5825
|
position: O,
|
|
5781
|
-
scrollDistance:
|
|
5782
|
-
})), y.current && clearTimeout(y.current),
|
|
5783
|
-
p.current.forEach((
|
|
5784
|
-
...
|
|
5826
|
+
scrollDistance: B.direction !== W ? Math.abs(S) : B.scrollDistance + Math.abs(S)
|
|
5827
|
+
})), y.current && clearTimeout(y.current), g.current && clearTimeout(g.current), y.current = setTimeout(() => {
|
|
5828
|
+
p.current.forEach((B) => clearTimeout(B)), p.current = [], x((B) => ({
|
|
5829
|
+
...B,
|
|
5785
5830
|
isScrolling: !1,
|
|
5786
5831
|
velocity: 0,
|
|
5787
5832
|
scrollDistance: 0
|
|
5788
|
-
})), L && (
|
|
5789
|
-
|
|
5833
|
+
})), L && (g.current = setTimeout(() => {
|
|
5834
|
+
$(!1);
|
|
5790
5835
|
}, ne.MOBILE_HIDE_DELAY));
|
|
5791
|
-
}, ne.STABLE_TIMEOUT),
|
|
5836
|
+
}, ne.STABLE_TIMEOUT), h.current = u, m.current = b.currentScrollTop;
|
|
5792
5837
|
}, [s, C, v, N]), o = D(() => {
|
|
5793
5838
|
Y.current === null && (Y.current = requestAnimationFrame(() => {
|
|
5794
5839
|
Y.current = null, K();
|
|
@@ -5798,33 +5843,33 @@ const Tr = ({
|
|
|
5798
5843
|
if (s || !C && !i.current) return;
|
|
5799
5844
|
const u = re(), b = C ? window : i.current;
|
|
5800
5845
|
return b.addEventListener("scroll", o, { passive: !0 }), () => {
|
|
5801
|
-
b.removeEventListener("scroll", o), y.current && clearTimeout(y.current),
|
|
5846
|
+
b.removeEventListener("scroll", o), y.current && clearTimeout(y.current), g.current && clearTimeout(g.current), p.current.forEach((R) => clearTimeout(R)), Y.current !== null && (cancelAnimationFrame(Y.current), Y.current = null), u?.();
|
|
5802
5847
|
};
|
|
5803
5848
|
}, [re, o, s, C]), oe(() => {
|
|
5804
5849
|
q();
|
|
5805
5850
|
}, [q]), i;
|
|
5806
|
-
},
|
|
5807
|
-
const e = it
|
|
5851
|
+
}, it = ct(void 0), Dr = () => {
|
|
5852
|
+
const e = dt(it);
|
|
5808
5853
|
if (e === void 0)
|
|
5809
5854
|
throw new Error(
|
|
5810
5855
|
"useCyberNotifications must be used within a CyberNotificationProvider"
|
|
5811
5856
|
);
|
|
5812
5857
|
return e;
|
|
5813
|
-
},
|
|
5814
|
-
const { min: r = 5, max: a = 95, speed: s = 30 } = e, [n,
|
|
5858
|
+
}, Gr = (e = {}) => {
|
|
5859
|
+
const { min: r = 5, max: a = 95, speed: s = 30 } = e, [n, c] = Z(0), [l, i] = Z(1);
|
|
5815
5860
|
return oe(() => {
|
|
5816
|
-
const
|
|
5817
|
-
|
|
5818
|
-
let m =
|
|
5861
|
+
const d = setInterval(() => {
|
|
5862
|
+
c((h) => {
|
|
5863
|
+
let m = h + l;
|
|
5819
5864
|
return m >= a ? (m = a, i(-1)) : m <= r && (m = r, i(1)), m;
|
|
5820
5865
|
});
|
|
5821
5866
|
}, s);
|
|
5822
|
-
return () => clearInterval(
|
|
5867
|
+
return () => clearInterval(d);
|
|
5823
5868
|
}, [l, r, a, s]), n;
|
|
5824
|
-
},
|
|
5825
|
-
const [s, n] = Z([]),
|
|
5826
|
-
(m, y, p,
|
|
5827
|
-
const w = Date.now().toString(), { autoHide: x = !0, duration: v = a } =
|
|
5869
|
+
}, Wr = ({ children: e, position: r = "top-right", defaultDuration: a = 2500 }) => {
|
|
5870
|
+
const [s, n] = Z([]), c = D(
|
|
5871
|
+
(m, y, p, g = {}) => {
|
|
5872
|
+
const w = Date.now().toString(), { autoHide: x = !0, duration: v = a } = g;
|
|
5828
5873
|
return n((A) => [...A, { id: w, type: m, title: y, message: p }]), x && setTimeout(() => {
|
|
5829
5874
|
n(
|
|
5830
5875
|
(A) => A.map((N) => N.id === w ? { ...N, isClosing: !0 } : N)
|
|
@@ -5842,22 +5887,22 @@ const Tr = ({
|
|
|
5842
5887
|
}, 500);
|
|
5843
5888
|
}, []), i = D(() => {
|
|
5844
5889
|
n([]);
|
|
5845
|
-
}, []),
|
|
5890
|
+
}, []), d = D((m, y) => {
|
|
5846
5891
|
n(
|
|
5847
|
-
(p) => p.map((
|
|
5892
|
+
(p) => p.map((g) => g.id === m ? { ...g, width: y } : g)
|
|
5848
5893
|
);
|
|
5849
|
-
}, []),
|
|
5894
|
+
}, []), h = {
|
|
5850
5895
|
notifications: s,
|
|
5851
|
-
showNotification:
|
|
5896
|
+
showNotification: c,
|
|
5852
5897
|
hideNotification: l,
|
|
5853
5898
|
clearAllNotifications: i
|
|
5854
5899
|
};
|
|
5855
|
-
return /* @__PURE__ */ t.jsxs(
|
|
5900
|
+
return /* @__PURE__ */ t.jsxs(it.Provider, { value: h, children: [
|
|
5856
5901
|
e,
|
|
5857
5902
|
s.length > 0 && /* @__PURE__ */ t.jsx(
|
|
5858
5903
|
"div",
|
|
5859
5904
|
{
|
|
5860
|
-
className: `fixed z-50 ${
|
|
5905
|
+
className: `fixed z-50 ${Mr(r)}`,
|
|
5861
5906
|
"aria-live": "polite",
|
|
5862
5907
|
"aria-relevant": "additions text",
|
|
5863
5908
|
"aria-atomic": "true",
|
|
@@ -5882,12 +5927,12 @@ const Tr = ({
|
|
|
5882
5927
|
},
|
|
5883
5928
|
ref: (p) => {
|
|
5884
5929
|
if (p && !m.width) {
|
|
5885
|
-
const
|
|
5886
|
-
|
|
5930
|
+
const g = p.scrollWidth;
|
|
5931
|
+
d(m.id, g);
|
|
5887
5932
|
}
|
|
5888
5933
|
},
|
|
5889
5934
|
children: /* @__PURE__ */ t.jsx(
|
|
5890
|
-
|
|
5935
|
+
nt,
|
|
5891
5936
|
{
|
|
5892
5937
|
type: m.type,
|
|
5893
5938
|
title: m.title,
|
|
@@ -5904,7 +5949,7 @@ const Tr = ({
|
|
|
5904
5949
|
}
|
|
5905
5950
|
)
|
|
5906
5951
|
] });
|
|
5907
|
-
},
|
|
5952
|
+
}, Mr = (e) => {
|
|
5908
5953
|
const r = {
|
|
5909
5954
|
"top-right": "top-4 right-4",
|
|
5910
5955
|
"top-left": "top-4 left-4",
|
|
@@ -5912,7 +5957,7 @@ const Tr = ({
|
|
|
5912
5957
|
"bottom-left": "bottom-4 left-4"
|
|
5913
5958
|
};
|
|
5914
5959
|
return r[e] || r["top-right"];
|
|
5915
|
-
},
|
|
5960
|
+
}, Br = "2.3.1";
|
|
5916
5961
|
if (typeof window < "u") {
|
|
5917
5962
|
const e = () => {
|
|
5918
5963
|
getComputedStyle(document.documentElement).getPropertyValue("--color-primary").trim() || console.warn(
|
|
@@ -5927,35 +5972,35 @@ Without it all components lose colors, backgrounds, and animations.`
|
|
|
5927
5972
|
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", e, { once: !0 }) : e();
|
|
5928
5973
|
}
|
|
5929
5974
|
export {
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5975
|
+
yr as Badge,
|
|
5976
|
+
Ee as Button,
|
|
5977
|
+
xr as Card,
|
|
5978
|
+
Pr as Carousel,
|
|
5979
|
+
Ar as Checkbox,
|
|
5980
|
+
cr as CircularProgress,
|
|
5981
|
+
Wr as CyberNotificationProvider,
|
|
5982
|
+
Rr as Divider,
|
|
5983
|
+
Er as GradientText,
|
|
5939
5984
|
je as Image,
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5985
|
+
hr as Input,
|
|
5986
|
+
gr as LinearProgress,
|
|
5987
|
+
Sr as Modal,
|
|
5988
|
+
nt as Notification,
|
|
5944
5989
|
ae as RESPONSIVE_SIZE_MAPS,
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5990
|
+
Tr as SectionTitle,
|
|
5991
|
+
br as SegmentedProgress,
|
|
5992
|
+
wr as Select,
|
|
5993
|
+
kr as Skeleton,
|
|
5994
|
+
$r as Steps,
|
|
5995
|
+
ht as TabNavigation,
|
|
5996
|
+
_r as Timeline,
|
|
5997
|
+
vr as Toggle,
|
|
5998
|
+
_ as cn,
|
|
5999
|
+
zr as combineResponsiveClasses,
|
|
6000
|
+
V as getResponsiveClasses,
|
|
6001
|
+
Gr as useAnimatedProgress,
|
|
6002
|
+
Dr as useCyberNotifications,
|
|
6003
|
+
Or as useCyberScrollbar,
|
|
6004
|
+
Br as version
|
|
5960
6005
|
};
|
|
5961
6006
|
//# sourceMappingURL=index.es.js.map
|