cyberui-2045 2.3.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/dist/index.d.ts +1 -1
- package/dist/index.es.js +568 -530
- package/dist/index.js +12 -12
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
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
2
|
import { createPortal as Fe } from "react-dom";
|
|
3
|
-
var ve = { exports: {} },
|
|
3
|
+
var ve = { exports: {} }, ge = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,10 +10,10 @@ 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
18
|
function a(s, n, c) {
|
|
19
19
|
var l = null;
|
|
@@ -30,9 +30,9 @@ function ct() {
|
|
|
30
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:
|
|
@@ -147,13 +147,13 @@ function dt() {
|
|
|
147
147
|
}
|
|
148
148
|
function d() {
|
|
149
149
|
var o = e(this.type);
|
|
150
|
-
return
|
|
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,
|
|
@@ -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)
|
|
@@ -222,21 +222,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
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 F,
|
|
247
|
+
var F, H = {}, q = p.react_stack_bottom_frame.bind(
|
|
248
248
|
p,
|
|
249
249
|
c
|
|
250
250
|
)(), Y = ee(s(c)), K = {};
|
|
251
|
-
|
|
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,14 +273,14 @@ 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 $e = (e) => typeof e == "object" && e !== null,
|
|
282
|
+
var t = ft();
|
|
283
|
+
const $e = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
284
284
|
if (!$e(e))
|
|
285
285
|
return r[e] || "";
|
|
286
286
|
const a = [];
|
|
@@ -305,7 +305,7 @@ const $e = (e) => typeof e == "object" && e !== null, H = (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,26 +358,26 @@ const $e = (e) => typeof e == "object" && e !== null, H = (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
|
-
},
|
|
368
|
+
}, bt = (e, r, a) => {
|
|
369
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
373
|
for (const c of n) {
|
|
374
|
-
const l =
|
|
374
|
+
const l = pt[c];
|
|
375
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(() => {
|
|
@@ -388,7 +388,7 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
388
388
|
const c = () => n(a());
|
|
389
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,
|
|
@@ -398,29 +398,29 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
398
398
|
menuClassName: l = "",
|
|
399
399
|
menuItemClassName: i = "",
|
|
400
400
|
dropdownLabel: d,
|
|
401
|
-
anchorIcon:
|
|
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
|
};
|
|
@@ -431,10 +431,10 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
431
431
|
onClick: G,
|
|
432
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":
|
|
434
|
+
"aria-expanded": g,
|
|
435
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" })
|
|
@@ -443,12 +443,12 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, 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,7 +466,7 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
466
466
|
}
|
|
467
467
|
)
|
|
468
468
|
] }) });
|
|
469
|
-
},
|
|
469
|
+
}, ht = ({
|
|
470
470
|
tabs: e,
|
|
471
471
|
activeTab: r,
|
|
472
472
|
onTabChange: a,
|
|
@@ -476,14 +476,14 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
476
476
|
tabsClassName: l = "",
|
|
477
477
|
dropdownLabel: i,
|
|
478
478
|
anchorIcon: d,
|
|
479
|
-
showAnchorLabel:
|
|
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,26 +496,26 @@ const $e = (e) => typeof e == "object" && e !== null, H = (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,
|
|
@@ -523,112 +523,114 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
523
523
|
sizeClasses: v,
|
|
524
524
|
containerClassName: c,
|
|
525
525
|
anchorClassName: p,
|
|
526
|
-
menuClassName:
|
|
526
|
+
menuClassName: g,
|
|
527
527
|
menuItemClassName: w,
|
|
528
528
|
dropdownLabel: i,
|
|
529
529
|
anchorIcon: d,
|
|
530
|
-
showAnchorLabel:
|
|
530
|
+
showAnchorLabel: h,
|
|
531
531
|
anchorAriaLabel: m,
|
|
532
532
|
closeOnSelect: y
|
|
533
533
|
}
|
|
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:
|
|
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
|
|
559
|
+
return kt(l);
|
|
558
560
|
const i = l.split(Ne), d = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
559
|
-
return
|
|
561
|
+
return He(i, d, r);
|
|
560
562
|
},
|
|
561
563
|
getConflictingClassGroupIds: (l, i) => {
|
|
562
564
|
if (i) {
|
|
563
|
-
const d = s[l],
|
|
564
|
-
return d ?
|
|
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
|
}
|
|
568
570
|
};
|
|
569
|
-
},
|
|
571
|
+
}, He = (e, r, a) => {
|
|
570
572
|
if (e.length - r === 0)
|
|
571
573
|
return a.classGroupId;
|
|
572
574
|
const n = e[r], c = a.nextPart.get(n);
|
|
573
575
|
if (c) {
|
|
574
|
-
const
|
|
575
|
-
if (
|
|
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
582
|
const i = r === 0 ? e.join(Ne) : e.slice(r).join(Ne), d = l.length;
|
|
581
|
-
for (let
|
|
582
|
-
const m = l[
|
|
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
606
|
for (let c = 0; c < n; c++) {
|
|
605
607
|
const l = e[c];
|
|
606
|
-
|
|
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
|
+
r.validators === null && (r.validators = []), r.validators.push(yt(a, e));
|
|
629
|
+
}, Tt = (e, r, a, s) => {
|
|
628
630
|
const n = Object.entries(e), c = n.length;
|
|
629
631
|
for (let l = 0; l < c; l++) {
|
|
630
632
|
const [i, d] = n[l];
|
|
631
|
-
|
|
633
|
+
Re(d, Ye(r, i), a, s);
|
|
632
634
|
}
|
|
633
635
|
}, Ye = (e, r) => {
|
|
634
636
|
let a = e;
|
|
@@ -636,10 +638,10 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
636
638
|
for (let c = 0; c < n; c++) {
|
|
637
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: () => {
|
|
@@ -663,20 +665,20 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
663
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
680
|
const c = [];
|
|
679
|
-
let l = 0, i = 0, d = 0,
|
|
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];
|
|
@@ -686,27 +688,27 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
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
697
|
const y = c.length === 0 ? n : n.slice(d);
|
|
696
|
-
let p = y,
|
|
697
|
-
y.endsWith(Se) ? (p = y.slice(0, -1),
|
|
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
710
|
const n = r + Pe, c = s;
|
|
709
|
-
s = (l) => l.startsWith(n) ? c(l.slice(n.length)) :
|
|
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;
|
|
@@ -716,7 +718,7 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
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);
|
|
@@ -729,24 +731,24 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
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
744
|
sortModifiers: c
|
|
743
|
-
} = r, l = [], i = e.trim().split(
|
|
745
|
+
} = r, l = [], i = e.trim().split(It);
|
|
744
746
|
let d = "";
|
|
745
|
-
for (let
|
|
746
|
-
const m = i[
|
|
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);
|
|
@@ -766,19 +768,19 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
766
768
|
}
|
|
767
769
|
v = !1;
|
|
768
770
|
}
|
|
769
|
-
const N = p.length === 0 ? "" : p.length === 1 ? p[0] : c(p).join(":"),
|
|
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
782
|
return d;
|
|
781
|
-
},
|
|
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 $e = (e) => typeof e == "object" && e !== null, H = (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
|
-
},
|
|
795
|
+
}, Ot = (e, ...r) => {
|
|
794
796
|
let a, s, n, c;
|
|
795
797
|
const l = (d) => {
|
|
796
|
-
const
|
|
797
|
-
return a =
|
|
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);
|
|
798
800
|
}, i = (d) => {
|
|
799
|
-
const
|
|
800
|
-
if (
|
|
801
|
-
return
|
|
802
|
-
const m =
|
|
801
|
+
const h = s(d);
|
|
802
|
+
if (h)
|
|
803
|
+
return h;
|
|
804
|
+
const m = zt(d, a);
|
|
803
805
|
return n(d, m), m;
|
|
804
806
|
};
|
|
805
|
-
return c = l, (...d) => c(
|
|
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"), c = J("leading"), l = J("breakpoint"), i = J("container"), d = J("spacing"),
|
|
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 $e = (e) => typeof e == "object" && e !== null, H = (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"], F = () => ["start", "end", "center", "stretch", "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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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
|
|
@@ -1433,77 +1435,77 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
1433
1435
|
* @see https://tailwindcss.com/docs/margin
|
|
1434
1436
|
*/
|
|
1435
1437
|
m: [{
|
|
1436
|
-
m:
|
|
1438
|
+
m: H()
|
|
1437
1439
|
}],
|
|
1438
1440
|
/**
|
|
1439
1441
|
* Margin Inline
|
|
1440
1442
|
* @see https://tailwindcss.com/docs/margin
|
|
1441
1443
|
*/
|
|
1442
1444
|
mx: [{
|
|
1443
|
-
mx:
|
|
1445
|
+
mx: H()
|
|
1444
1446
|
}],
|
|
1445
1447
|
/**
|
|
1446
1448
|
* Margin Block
|
|
1447
1449
|
* @see https://tailwindcss.com/docs/margin
|
|
1448
1450
|
*/
|
|
1449
1451
|
my: [{
|
|
1450
|
-
my:
|
|
1452
|
+
my: H()
|
|
1451
1453
|
}],
|
|
1452
1454
|
/**
|
|
1453
1455
|
* Margin Inline Start
|
|
1454
1456
|
* @see https://tailwindcss.com/docs/margin
|
|
1455
1457
|
*/
|
|
1456
1458
|
ms: [{
|
|
1457
|
-
ms:
|
|
1459
|
+
ms: H()
|
|
1458
1460
|
}],
|
|
1459
1461
|
/**
|
|
1460
1462
|
* Margin Inline End
|
|
1461
1463
|
* @see https://tailwindcss.com/docs/margin
|
|
1462
1464
|
*/
|
|
1463
1465
|
me: [{
|
|
1464
|
-
me:
|
|
1466
|
+
me: H()
|
|
1465
1467
|
}],
|
|
1466
1468
|
/**
|
|
1467
1469
|
* Margin Block Start
|
|
1468
1470
|
* @see https://tailwindcss.com/docs/margin
|
|
1469
1471
|
*/
|
|
1470
1472
|
mbs: [{
|
|
1471
|
-
mbs:
|
|
1473
|
+
mbs: H()
|
|
1472
1474
|
}],
|
|
1473
1475
|
/**
|
|
1474
1476
|
* Margin Block End
|
|
1475
1477
|
* @see https://tailwindcss.com/docs/margin
|
|
1476
1478
|
*/
|
|
1477
1479
|
mbe: [{
|
|
1478
|
-
mbe:
|
|
1480
|
+
mbe: H()
|
|
1479
1481
|
}],
|
|
1480
1482
|
/**
|
|
1481
1483
|
* Margin Top
|
|
1482
1484
|
* @see https://tailwindcss.com/docs/margin
|
|
1483
1485
|
*/
|
|
1484
1486
|
mt: [{
|
|
1485
|
-
mt:
|
|
1487
|
+
mt: H()
|
|
1486
1488
|
}],
|
|
1487
1489
|
/**
|
|
1488
1490
|
* Margin Right
|
|
1489
1491
|
* @see https://tailwindcss.com/docs/margin
|
|
1490
1492
|
*/
|
|
1491
1493
|
mr: [{
|
|
1492
|
-
mr:
|
|
1494
|
+
mr: H()
|
|
1493
1495
|
}],
|
|
1494
1496
|
/**
|
|
1495
1497
|
* Margin Bottom
|
|
1496
1498
|
* @see https://tailwindcss.com/docs/margin
|
|
1497
1499
|
*/
|
|
1498
1500
|
mb: [{
|
|
1499
|
-
mb:
|
|
1501
|
+
mb: H()
|
|
1500
1502
|
}],
|
|
1501
1503
|
/**
|
|
1502
1504
|
* Margin Left
|
|
1503
1505
|
* @see https://tailwindcss.com/docs/margin
|
|
1504
1506
|
*/
|
|
1505
1507
|
ml: [{
|
|
1506
|
-
ml:
|
|
1508
|
+
ml: H()
|
|
1507
1509
|
}],
|
|
1508
1510
|
/**
|
|
1509
1511
|
* Space Between X
|
|
@@ -1665,7 +1667,7 @@ const $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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
|
|
@@ -1803,7 +1805,7 @@ const $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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()
|
|
@@ -2677,14 +2679,14 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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
|
|
@@ -2767,56 +2769,56 @@ const $e = (e) => typeof e == "object" && e !== null, H = (e, r) => {
|
|
|
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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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 $e = (e) => typeof e == "object" && e !== null, H = (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,19 +3458,19 @@ 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,
|
|
@@ -3476,11 +3478,11 @@ const ar = {
|
|
|
3476
3478
|
children: n,
|
|
3477
3479
|
ariaLabel: c
|
|
3478
3480
|
}) => {
|
|
3479
|
-
const l = 2 * Math.PI * a, i = l / 2, d = i * (1 - e / 100),
|
|
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
3487
|
"aria-label": c || "Progress",
|
|
3486
3488
|
"aria-valuenow": Math.max(0, Math.min(100, e)),
|
|
@@ -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,38 +3538,40 @@ 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
|
-
},
|
|
3555
|
+
}, mr = ({ progress: e, size: r = "md", className: a, children: s }) => {
|
|
3552
3556
|
const {
|
|
3553
3557
|
SEGMENT_COUNT: n,
|
|
3554
3558
|
SEGMENT_ANGLE: c,
|
|
3555
3559
|
GAP_ANGLE: l,
|
|
3556
3560
|
INNER_RADIUS: i,
|
|
3557
3561
|
OUTER_RADIUS: d,
|
|
3558
|
-
OUTER_TICK_RADIUS:
|
|
3559
|
-
} =
|
|
3560
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
3562
|
+
OUTER_TICK_RADIUS: h
|
|
3563
|
+
} = dr, m = c - l;
|
|
3564
|
+
return /* @__PURE__ */ t.jsxs("div", { className: _("relative", ur[r], a), children: [
|
|
3561
3565
|
/* @__PURE__ */ t.jsxs("svg", { className: "w-full h-full", viewBox: "0 0 60 60", style: { overflow: "visible" }, children: [
|
|
3562
3566
|
[...Array(60)].map((y, p) => {
|
|
3563
|
-
const
|
|
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);
|
|
3564
3568
|
return /* @__PURE__ */ t.jsx(
|
|
3565
3569
|
"line",
|
|
3566
3570
|
{
|
|
3567
3571
|
x1: v,
|
|
3568
3572
|
y1: A,
|
|
3569
3573
|
x2: N,
|
|
3570
|
-
y2:
|
|
3574
|
+
y2: $,
|
|
3571
3575
|
stroke: "var(--color-muted)",
|
|
3572
3576
|
strokeWidth: 1,
|
|
3573
3577
|
strokeLinecap: "round",
|
|
@@ -3577,11 +3581,11 @@ const ar = {
|
|
|
3577
3581
|
);
|
|
3578
3582
|
}),
|
|
3579
3583
|
[...Array(n)].map((y, p) => {
|
|
3580
|
-
const
|
|
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);
|
|
3581
3585
|
return /* @__PURE__ */ t.jsx(
|
|
3582
3586
|
"path",
|
|
3583
3587
|
{
|
|
3584
|
-
d: `M ${v} ${A} L ${N} ${
|
|
3588
|
+
d: `M ${v} ${A} L ${N} ${$} L ${T} ${C} L ${I} ${G} Z`,
|
|
3585
3589
|
fill: f ? "var(--color-accent)" : "var(--color-border-default)",
|
|
3586
3590
|
style: {
|
|
3587
3591
|
filter: f ? "drop-shadow(0 0 6px var(--color-accent))" : "none",
|
|
@@ -3594,19 +3598,19 @@ const ar = {
|
|
|
3594
3598
|
] }),
|
|
3595
3599
|
s && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: s })
|
|
3596
3600
|
] });
|
|
3597
|
-
},
|
|
3601
|
+
}, fr = {
|
|
3598
3602
|
sm: "h-3",
|
|
3599
3603
|
md: "h-5",
|
|
3600
3604
|
lg: "h-7",
|
|
3601
3605
|
xl: "h-9"
|
|
3602
|
-
},
|
|
3606
|
+
}, pr = ({ progress: e, segments: r = 10, size: a = "md", className: s }) => {
|
|
3603
3607
|
const n = Math.round(Math.min(100, Math.max(0, e)) / 100 * r);
|
|
3604
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
3608
|
+
return /* @__PURE__ */ t.jsx("div", { className: _("flex gap-1 w-full", s), children: [...Array(r)].map((c, l) => {
|
|
3605
3609
|
const i = l < n;
|
|
3606
3610
|
return /* @__PURE__ */ t.jsx(
|
|
3607
3611
|
"div",
|
|
3608
3612
|
{
|
|
3609
|
-
className:
|
|
3613
|
+
className: _("flex-1 rounded-sm transition-all duration-300", fr[a]),
|
|
3610
3614
|
style: {
|
|
3611
3615
|
backgroundColor: i ? "var(--color-accent)" : "var(--color-border-default)",
|
|
3612
3616
|
boxShadow: i ? "0 0 6px var(--color-accent)" : "none"
|
|
@@ -3615,12 +3619,14 @@ const ar = {
|
|
|
3615
3619
|
l
|
|
3616
3620
|
);
|
|
3617
3621
|
}) });
|
|
3618
|
-
},
|
|
3622
|
+
}, br = (e) => e.variant === "block" ? /* @__PURE__ */ t.jsx(pr, { ...e }) : /* @__PURE__ */ t.jsx(mr, { ...e });
|
|
3623
|
+
br.displayName = "CyberUI.SegmentedProgress";
|
|
3624
|
+
const gr = ({
|
|
3619
3625
|
progress: e,
|
|
3620
3626
|
size: r = "md",
|
|
3621
3627
|
className: a = ""
|
|
3622
3628
|
}) => {
|
|
3623
|
-
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);
|
|
3624
3630
|
return /* @__PURE__ */ t.jsx(
|
|
3625
3631
|
"div",
|
|
3626
3632
|
{
|
|
@@ -3638,14 +3644,16 @@ const ar = {
|
|
|
3638
3644
|
)
|
|
3639
3645
|
}
|
|
3640
3646
|
);
|
|
3641
|
-
}
|
|
3647
|
+
};
|
|
3648
|
+
gr.displayName = "CyberUI.LinearProgress";
|
|
3649
|
+
const nt = ({
|
|
3642
3650
|
type: e,
|
|
3643
3651
|
title: r,
|
|
3644
3652
|
message: a,
|
|
3645
3653
|
size: s = "md",
|
|
3646
3654
|
onClose: n
|
|
3647
3655
|
}) => {
|
|
3648
|
-
const c = (y) =>
|
|
3656
|
+
const c = (y) => V(y, ae.notification), i = (() => {
|
|
3649
3657
|
switch (e) {
|
|
3650
3658
|
case "success":
|
|
3651
3659
|
return {
|
|
@@ -3693,8 +3701,8 @@ const ar = {
|
|
|
3693
3701
|
icon: null
|
|
3694
3702
|
};
|
|
3695
3703
|
}
|
|
3696
|
-
})(), d = c(s),
|
|
3697
|
-
return /* @__PURE__ */ t.jsxs("div", { className: `flex items-start rounded-lg ${d} ${i.container}`, role:
|
|
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: [
|
|
3698
3706
|
/* @__PURE__ */ t.jsx("div", { className: "flex-shrink-0", children: i.icon }),
|
|
3699
3707
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-1", children: [
|
|
3700
3708
|
/* @__PURE__ */ t.jsx("h4", { className: `font-bold ${i.textColor}`, children: r }),
|
|
@@ -3717,7 +3725,9 @@ const ar = {
|
|
|
3717
3725
|
}
|
|
3718
3726
|
)
|
|
3719
3727
|
] });
|
|
3720
|
-
}
|
|
3728
|
+
};
|
|
3729
|
+
nt.displayName = "CyberUI.Notification";
|
|
3730
|
+
const Ee = ({
|
|
3721
3731
|
variant: e = "primary",
|
|
3722
3732
|
size: r = "md",
|
|
3723
3733
|
className: a = "",
|
|
@@ -3738,7 +3748,7 @@ const ar = {
|
|
|
3738
3748
|
"ease-in-out",
|
|
3739
3749
|
"focus:outline-none",
|
|
3740
3750
|
s ? "cursor-not-allowed" : "cursor-pointer"
|
|
3741
|
-
].join(" "), i = (y) =>
|
|
3751
|
+
].join(" "), i = (y) => V(y, ae.button), d = (y, p) => ({
|
|
3742
3752
|
primary: {
|
|
3743
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",
|
|
3744
3754
|
disabled: "bg-base border-2 border-accent/20 text-accent/40 shadow-none opacity-50"
|
|
@@ -3755,11 +3765,11 @@ const ar = {
|
|
|
3755
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",
|
|
3756
3766
|
disabled: "bg-base border-2 border-accent/10 text-muted/60 shadow-none opacity-40"
|
|
3757
3767
|
}
|
|
3758
|
-
})[y][p ? "disabled" : "enabled"],
|
|
3768
|
+
})[y][p ? "disabled" : "enabled"], h = _(l, i(r), d(e, s), a), m = e === "primary" && !s;
|
|
3759
3769
|
return /* @__PURE__ */ t.jsxs(
|
|
3760
3770
|
"button",
|
|
3761
3771
|
{
|
|
3762
|
-
className:
|
|
3772
|
+
className: h,
|
|
3763
3773
|
disabled: s,
|
|
3764
3774
|
...c,
|
|
3765
3775
|
children: [
|
|
@@ -3769,7 +3779,9 @@ const ar = {
|
|
|
3769
3779
|
]
|
|
3770
3780
|
}
|
|
3771
3781
|
);
|
|
3772
|
-
}
|
|
3782
|
+
};
|
|
3783
|
+
Ee.displayName = "CyberUI.Button";
|
|
3784
|
+
const hr = ({
|
|
3773
3785
|
variant: e = "primary",
|
|
3774
3786
|
size: r = "md",
|
|
3775
3787
|
label: a,
|
|
@@ -3779,9 +3791,9 @@ const ar = {
|
|
|
3779
3791
|
rightIcon: l,
|
|
3780
3792
|
className: i = "",
|
|
3781
3793
|
disabled: d = !1,
|
|
3782
|
-
...
|
|
3794
|
+
...h
|
|
3783
3795
|
}) => {
|
|
3784
|
-
const m = Be(), y =
|
|
3796
|
+
const m = Be(), y = h.id || m, p = [
|
|
3785
3797
|
"w-full",
|
|
3786
3798
|
"rounded-lg",
|
|
3787
3799
|
"bg-surface",
|
|
@@ -3791,25 +3803,25 @@ const ar = {
|
|
|
3791
3803
|
"duration-300",
|
|
3792
3804
|
"focus:outline-none",
|
|
3793
3805
|
d ? "cursor-not-allowed opacity-60" : "cursor-text"
|
|
3794
|
-
].join(" "),
|
|
3795
|
-
const C =
|
|
3806
|
+
].join(" "), g = (T) => V(T, ae.input), w = (T) => {
|
|
3807
|
+
const C = g(T);
|
|
3796
3808
|
return c && l ? `pl-10 pr-10 ${C}` : c ? `pl-10 pr-4 ${C}` : l ? `pl-4 pr-10 ${C}` : `px-4 ${C}`;
|
|
3797
|
-
}, x = (
|
|
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 ? {
|
|
3798
3810
|
primary: "border-2 border-accent/20 shadow-none",
|
|
3799
3811
|
secondary: "border-2 border-secondary/20 shadow-none",
|
|
3800
3812
|
danger: "border-2 border-error/20 shadow-none",
|
|
3801
3813
|
ghost: "border border-border-default shadow-none"
|
|
3802
|
-
}[
|
|
3814
|
+
}[T] : {
|
|
3803
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",
|
|
3804
3816
|
secondary: "border-2 border-secondary shadow-secondary/30 hover:shadow-secondary focus:ring-2 focus:ring-secondary focus:shadow-secondary active:bg-base",
|
|
3805
3817
|
danger: "border-2 border-error shadow-error/30 hover:shadow-error focus:ring-2 focus:ring-error focus:shadow-error active:bg-base",
|
|
3806
3818
|
ghost: "border border-border-default shadow-none hover:border-accent focus:ring-2 focus:ring-accent focus:border-accent active:bg-base"
|
|
3807
|
-
}[
|
|
3819
|
+
}[T], v = (T) => ({
|
|
3808
3820
|
primary: "text-accent",
|
|
3809
3821
|
secondary: "text-secondary",
|
|
3810
3822
|
danger: "text-error",
|
|
3811
3823
|
ghost: "text-muted"
|
|
3812
|
-
})[
|
|
3824
|
+
})[T], A = _(p, w(r), x(e, !!n, d), i), N = v(e), $ = n ? `${y}-error` : s ? `${y}-help` : void 0;
|
|
3813
3825
|
return /* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
3814
3826
|
a && /* @__PURE__ */ t.jsx("label", { htmlFor: y, className: "block text-sm font-medium text-default", children: a }),
|
|
3815
3827
|
/* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
|
|
@@ -3821,15 +3833,17 @@ const ar = {
|
|
|
3821
3833
|
disabled: d,
|
|
3822
3834
|
id: y,
|
|
3823
3835
|
"aria-invalid": !!n,
|
|
3824
|
-
"aria-describedby":
|
|
3825
|
-
...
|
|
3836
|
+
"aria-describedby": $,
|
|
3837
|
+
...h
|
|
3826
3838
|
}
|
|
3827
3839
|
),
|
|
3828
3840
|
l && /* @__PURE__ */ t.jsx("div", { className: `absolute inset-y-0 right-0 flex items-center pr-3 ${N}`, children: l })
|
|
3829
3841
|
] }),
|
|
3830
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 })
|
|
3831
3843
|
] });
|
|
3832
|
-
}
|
|
3844
|
+
};
|
|
3845
|
+
hr.displayName = "CyberUI.Input";
|
|
3846
|
+
const xr = ({
|
|
3833
3847
|
variant: e = "default",
|
|
3834
3848
|
size: r = "md",
|
|
3835
3849
|
title: a,
|
|
@@ -3838,19 +3852,21 @@ const ar = {
|
|
|
3838
3852
|
className: c = "",
|
|
3839
3853
|
...l
|
|
3840
3854
|
}) => {
|
|
3841
|
-
const i = (m) =>
|
|
3855
|
+
const i = (m) => V(m, ae.card), d = (m) => {
|
|
3842
3856
|
const y = i(r);
|
|
3843
3857
|
return {
|
|
3844
3858
|
default: `bg-base border border-border-default rounded-xl text-primary ${y}`,
|
|
3845
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}`,
|
|
3846
3860
|
small: `bg-base rounded-lg border border-border-default text-primary ${y}`
|
|
3847
3861
|
}[m];
|
|
3848
|
-
},
|
|
3849
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
3850
|
-
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 }),
|
|
3851
3865
|
n
|
|
3852
3866
|
] });
|
|
3853
|
-
}
|
|
3867
|
+
};
|
|
3868
|
+
xr.displayName = "CyberUI.Card";
|
|
3869
|
+
const yr = ({
|
|
3854
3870
|
variant: e = "primary",
|
|
3855
3871
|
size: r = "md",
|
|
3856
3872
|
children: a,
|
|
@@ -3861,14 +3877,14 @@ const ar = {
|
|
|
3861
3877
|
onClick: i,
|
|
3862
3878
|
...d
|
|
3863
3879
|
}) => {
|
|
3864
|
-
const
|
|
3880
|
+
const h = (p) => V(p, ae.badge), m = (p) => ({
|
|
3865
3881
|
primary: "bg-primary shadow-lg",
|
|
3866
3882
|
secondary: "bg-secondary shadow-lg",
|
|
3867
3883
|
accent: "bg-accent shadow-lg",
|
|
3868
3884
|
success: "bg-success shadow-lg",
|
|
3869
3885
|
error: "bg-error shadow-lg",
|
|
3870
3886
|
warning: "bg-warning shadow-lg"
|
|
3871
|
-
})[p], y = (p,
|
|
3887
|
+
})[p], y = (p, g) => !g && !i ? "transition-shadow" : {
|
|
3872
3888
|
primary: "hover:shadow-primary transition-shadow cursor-pointer",
|
|
3873
3889
|
secondary: "hover:shadow-secondary transition-shadow cursor-pointer",
|
|
3874
3890
|
accent: "hover:shadow-lg-accent transition-shadow cursor-pointer",
|
|
@@ -3879,7 +3895,7 @@ const ar = {
|
|
|
3879
3895
|
return /* @__PURE__ */ t.jsxs(
|
|
3880
3896
|
"span",
|
|
3881
3897
|
{
|
|
3882
|
-
className:
|
|
3898
|
+
className: _("inline-flex items-center rounded-full font-semibold", h(r), m(e), y(e, l || !!i), s),
|
|
3883
3899
|
onClick: i,
|
|
3884
3900
|
...d,
|
|
3885
3901
|
children: [
|
|
@@ -3889,7 +3905,9 @@ const ar = {
|
|
|
3889
3905
|
]
|
|
3890
3906
|
}
|
|
3891
3907
|
);
|
|
3892
|
-
}
|
|
3908
|
+
};
|
|
3909
|
+
yr.displayName = "CyberUI.Badge";
|
|
3910
|
+
const vr = ({
|
|
3893
3911
|
label: e,
|
|
3894
3912
|
size: r = "md",
|
|
3895
3913
|
variant: a = "primary",
|
|
@@ -3900,9 +3918,9 @@ const ar = {
|
|
|
3900
3918
|
id: i,
|
|
3901
3919
|
...d
|
|
3902
3920
|
}) => {
|
|
3903
|
-
const
|
|
3921
|
+
const h = (x) => {
|
|
3904
3922
|
l || c && c(x.target.checked);
|
|
3905
|
-
}, m = (x) =>
|
|
3923
|
+
}, m = (x) => V(x, {
|
|
3906
3924
|
sm: "w-10 h-5 after:h-4 after:w-4",
|
|
3907
3925
|
md: "w-14 h-7 after:h-6 after:w-6",
|
|
3908
3926
|
lg: "w-16 h-8 after:h-7 after:w-7"
|
|
@@ -3915,10 +3933,10 @@ const ar = {
|
|
|
3915
3933
|
accent: "bg-gray-600 peer-checked:bg-accent peer-focus:ring-accent"
|
|
3916
3934
|
};
|
|
3917
3935
|
return A[x] || A.primary;
|
|
3918
|
-
}, p =
|
|
3936
|
+
}, p = _(
|
|
3919
3937
|
"relative inline-flex items-center",
|
|
3920
3938
|
l ? "cursor-not-allowed opacity-50" : "cursor-pointer"
|
|
3921
|
-
),
|
|
3939
|
+
), g = _(
|
|
3922
3940
|
m(r),
|
|
3923
3941
|
y(a, l),
|
|
3924
3942
|
"peer-focus:outline-none rounded-full peer",
|
|
@@ -3926,7 +3944,7 @@ const ar = {
|
|
|
3926
3944
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px]",
|
|
3927
3945
|
"after:bg-white after:rounded-full after:transition-all",
|
|
3928
3946
|
"transition-colors duration-300"
|
|
3929
|
-
), w =
|
|
3947
|
+
), w = _("flex items-center justify-between", e && "space-x-3", s);
|
|
3930
3948
|
return /* @__PURE__ */ t.jsxs("div", { className: w, children: [
|
|
3931
3949
|
e && /* @__PURE__ */ t.jsx(
|
|
3932
3950
|
"label",
|
|
@@ -3943,16 +3961,18 @@ const ar = {
|
|
|
3943
3961
|
type: "checkbox",
|
|
3944
3962
|
className: "sr-only peer",
|
|
3945
3963
|
checked: n,
|
|
3946
|
-
onChange:
|
|
3964
|
+
onChange: h,
|
|
3947
3965
|
disabled: l,
|
|
3948
3966
|
id: i,
|
|
3949
3967
|
...d
|
|
3950
3968
|
}
|
|
3951
3969
|
),
|
|
3952
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
3970
|
+
/* @__PURE__ */ t.jsx("div", { className: g })
|
|
3953
3971
|
] })
|
|
3954
3972
|
] });
|
|
3955
|
-
}
|
|
3973
|
+
};
|
|
3974
|
+
vr.displayName = "CyberUI.Toggle";
|
|
3975
|
+
const wr = ({
|
|
3956
3976
|
label: e,
|
|
3957
3977
|
size: r = "md",
|
|
3958
3978
|
variant: a = "primary",
|
|
@@ -3962,18 +3982,18 @@ const ar = {
|
|
|
3962
3982
|
error: l,
|
|
3963
3983
|
className: i = "",
|
|
3964
3984
|
disabled: d = !1,
|
|
3965
|
-
id:
|
|
3985
|
+
id: h,
|
|
3966
3986
|
name: m,
|
|
3967
3987
|
onValueChange: y,
|
|
3968
3988
|
onChange: p,
|
|
3969
|
-
...
|
|
3989
|
+
...g
|
|
3970
3990
|
}) => {
|
|
3971
3991
|
const w = (f) => {
|
|
3972
3992
|
p?.(f), y?.(f.target.value);
|
|
3973
|
-
}, x = Be(), v =
|
|
3993
|
+
}, x = Be(), v = h || x, A = m || v, N = (f) => V(f, ae.input), $ = (f, M, U) => {
|
|
3974
3994
|
if (M)
|
|
3975
3995
|
return "bg-base border-2 border-border-default/30 text-muted/50 cursor-not-allowed opacity-50";
|
|
3976
|
-
if (
|
|
3996
|
+
if (U)
|
|
3977
3997
|
return "bg-surface border-2 border-error text-default focus:ring-2 focus:ring-error focus:border-error shadow-error";
|
|
3978
3998
|
const X = {
|
|
3979
3999
|
primary: "bg-surface border-2 border-border-default text-default focus:ring-2 focus:ring-primary focus:border-primary shadow-primary",
|
|
@@ -3982,27 +4002,27 @@ const ar = {
|
|
|
3982
4002
|
ghost: "bg-base border-2 border-accent/20 text-default focus:ring-2 focus:ring-accent focus:border-accent shadow-secondary"
|
|
3983
4003
|
};
|
|
3984
4004
|
return X[f] || X.primary;
|
|
3985
|
-
},
|
|
4005
|
+
}, T = _(
|
|
3986
4006
|
"appearance-none w-full rounded-lg font-mono transition-all duration-300 focus:outline-none px-4 pr-10",
|
|
3987
4007
|
N(r),
|
|
3988
|
-
|
|
4008
|
+
$(a, d, !!l),
|
|
3989
4009
|
i
|
|
3990
|
-
), C = "relative w-full",
|
|
4010
|
+
), C = "relative w-full", I = _(
|
|
3991
4011
|
"block text-sm font-medium mb-2 transition-colors duration-200",
|
|
3992
4012
|
d ? "text-muted opacity-50" : l ? "text-error" : "text-default"
|
|
3993
|
-
), G =
|
|
4013
|
+
), G = _("mt-2 text-xs transition-colors duration-200", l ? "text-error" : "text-muted");
|
|
3994
4014
|
return /* @__PURE__ */ t.jsxs("div", { className: "w-full", children: [
|
|
3995
|
-
e && /* @__PURE__ */ t.jsx("label", { htmlFor: v, className:
|
|
4015
|
+
e && /* @__PURE__ */ t.jsx("label", { htmlFor: v, className: I, children: e }),
|
|
3996
4016
|
/* @__PURE__ */ t.jsxs("div", { className: C, children: [
|
|
3997
4017
|
/* @__PURE__ */ t.jsxs(
|
|
3998
4018
|
"select",
|
|
3999
4019
|
{
|
|
4000
|
-
className:
|
|
4020
|
+
className: T,
|
|
4001
4021
|
disabled: d,
|
|
4002
4022
|
id: v,
|
|
4003
4023
|
name: A,
|
|
4004
4024
|
onChange: w,
|
|
4005
|
-
...
|
|
4025
|
+
...g,
|
|
4006
4026
|
children: [
|
|
4007
4027
|
n && /* @__PURE__ */ t.jsx("option", { value: "", disabled: !0, children: n }),
|
|
4008
4028
|
s.map((f) => /* @__PURE__ */ t.jsx(
|
|
@@ -4035,7 +4055,9 @@ const ar = {
|
|
|
4035
4055
|
] }),
|
|
4036
4056
|
(c || l) && /* @__PURE__ */ t.jsx("div", { className: G, children: l || c })
|
|
4037
4057
|
] });
|
|
4038
|
-
}
|
|
4058
|
+
};
|
|
4059
|
+
wr.displayName = "CyberUI.Select";
|
|
4060
|
+
const kr = ({
|
|
4039
4061
|
variant: e = "text",
|
|
4040
4062
|
size: r = "md",
|
|
4041
4063
|
width: a,
|
|
@@ -4044,18 +4066,18 @@ const ar = {
|
|
|
4044
4066
|
lines: c = 3,
|
|
4045
4067
|
animate: l = !0
|
|
4046
4068
|
}) => {
|
|
4047
|
-
const d =
|
|
4069
|
+
const d = _("bg-gray-600", l && "animate-pulse", ((m) => V(m, ae.skeleton))(r), n), h = () => {
|
|
4048
4070
|
const m = {};
|
|
4049
4071
|
return a && (m.width = typeof a == "number" ? `${a}px` : a), s && (m.height = typeof s == "number" ? `${s}px` : s), m;
|
|
4050
4072
|
};
|
|
4051
4073
|
if (e === "text")
|
|
4052
4074
|
return /* @__PURE__ */ t.jsx("div", { className: `space-y-3 ${n}`, children: Array.from({ length: c }).map((m, y) => {
|
|
4053
|
-
const
|
|
4075
|
+
const g = y === c - 1 ? "w-2/3" : y % 2 === 0 ? "w-full" : "w-5/6";
|
|
4054
4076
|
return /* @__PURE__ */ t.jsx(
|
|
4055
4077
|
"div",
|
|
4056
4078
|
{
|
|
4057
|
-
className: `h-3 rounded ${d} ${
|
|
4058
|
-
style:
|
|
4079
|
+
className: `h-3 rounded ${d} ${g}`,
|
|
4080
|
+
style: h()
|
|
4059
4081
|
},
|
|
4060
4082
|
y
|
|
4061
4083
|
);
|
|
@@ -4066,7 +4088,7 @@ const ar = {
|
|
|
4066
4088
|
"div",
|
|
4067
4089
|
{
|
|
4068
4090
|
className: `rounded-full ${d} ${m}`,
|
|
4069
|
-
style:
|
|
4091
|
+
style: h()
|
|
4070
4092
|
}
|
|
4071
4093
|
);
|
|
4072
4094
|
}
|
|
@@ -4076,7 +4098,7 @@ const ar = {
|
|
|
4076
4098
|
"div",
|
|
4077
4099
|
{
|
|
4078
4100
|
className: `rounded-lg ${d} w-full ${m}`,
|
|
4079
|
-
style:
|
|
4101
|
+
style: h()
|
|
4080
4102
|
}
|
|
4081
4103
|
);
|
|
4082
4104
|
}
|
|
@@ -4128,10 +4150,12 @@ const ar = {
|
|
|
4128
4150
|
"div",
|
|
4129
4151
|
{
|
|
4130
4152
|
className: `h-4 rounded ${d} w-full`,
|
|
4131
|
-
style:
|
|
4153
|
+
style: h()
|
|
4132
4154
|
}
|
|
4133
4155
|
);
|
|
4134
|
-
}
|
|
4156
|
+
};
|
|
4157
|
+
kr.displayName = "CyberUI.Skeleton";
|
|
4158
|
+
const jr = {
|
|
4135
4159
|
openDuration: 50,
|
|
4136
4160
|
closeDuration: 350,
|
|
4137
4161
|
cyberpunkEffects: !0
|
|
@@ -4146,33 +4170,33 @@ const ar = {
|
|
|
4146
4170
|
className: l = "",
|
|
4147
4171
|
animation: i,
|
|
4148
4172
|
eager: d = !1,
|
|
4149
|
-
previewClassName:
|
|
4173
|
+
previewClassName: h = "",
|
|
4150
4174
|
onPreviewOpen: m,
|
|
4151
4175
|
onPreviewClose: y,
|
|
4152
4176
|
onLoad: p,
|
|
4153
|
-
onError:
|
|
4177
|
+
onError: g,
|
|
4154
4178
|
...w
|
|
4155
4179
|
}) => {
|
|
4156
|
-
const x = { ...
|
|
4157
|
-
(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),
|
|
4158
4182
|
[]
|
|
4159
4183
|
), F = D(
|
|
4160
4184
|
(S) => {
|
|
4161
4185
|
G(!1), M(!1), p?.(S);
|
|
4162
4186
|
},
|
|
4163
4187
|
[p]
|
|
4164
|
-
),
|
|
4188
|
+
), H = D(
|
|
4165
4189
|
(S) => {
|
|
4166
|
-
G(!1), n && !
|
|
4190
|
+
G(!1), n && !U ? (X(!0), M(!1)) : M(!0), g?.(S);
|
|
4167
4191
|
},
|
|
4168
|
-
[
|
|
4192
|
+
[g, n, U]
|
|
4169
4193
|
), q = D(() => {
|
|
4170
4194
|
s && !f && (C(!0), A(!0), m?.(), setTimeout(() => {
|
|
4171
4195
|
C(!1);
|
|
4172
4196
|
}, x.openDuration));
|
|
4173
4197
|
}, [s, f, m, x.openDuration]), Y = D(() => {
|
|
4174
|
-
|
|
4175
|
-
A(!1),
|
|
4198
|
+
$(!0), y?.(), setTimeout(() => {
|
|
4199
|
+
A(!1), $(!1);
|
|
4176
4200
|
}, x.closeDuration);
|
|
4177
4201
|
}, [y, x.closeDuration]), K = D(
|
|
4178
4202
|
(S) => {
|
|
@@ -4188,14 +4212,14 @@ const ar = {
|
|
|
4188
4212
|
oe(() => {
|
|
4189
4213
|
if (v) {
|
|
4190
4214
|
document.addEventListener("keydown", o);
|
|
4191
|
-
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;
|
|
4192
4216
|
return document.body.style.overflow = "hidden", document.body.style.paddingRight = `${W}px`, document.documentElement.style.scrollbarGutter = "auto", () => {
|
|
4193
|
-
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;
|
|
4194
4218
|
};
|
|
4195
4219
|
}
|
|
4196
4220
|
}, [v, o]);
|
|
4197
4221
|
const u = pe(
|
|
4198
|
-
() =>
|
|
4222
|
+
() => _(
|
|
4199
4223
|
"relative rounded-lg overflow-hidden border-2 border-accent/30 transition-all duration-300 ease-in-out transform flex justify-center content-center",
|
|
4200
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" : "",
|
|
4201
4225
|
ee(a),
|
|
@@ -4221,7 +4245,7 @@ const ar = {
|
|
|
4221
4245
|
onClick: q,
|
|
4222
4246
|
...b,
|
|
4223
4247
|
children: [
|
|
4224
|
-
|
|
4248
|
+
I && /* @__PURE__ */ t.jsx(
|
|
4225
4249
|
"div",
|
|
4226
4250
|
{
|
|
4227
4251
|
className: "absolute m-0 inset-0 flex items-center justify-center bg-surface border-2 border-accent/20",
|
|
@@ -4241,14 +4265,14 @@ const ar = {
|
|
|
4241
4265
|
/* @__PURE__ */ t.jsx("div", { className: "text-sm", children: "Failed to load image" })
|
|
4242
4266
|
] })
|
|
4243
4267
|
}
|
|
4244
|
-
) :
|
|
4268
|
+
) : U ? /* @__PURE__ */ t.jsx(
|
|
4245
4269
|
"img",
|
|
4246
4270
|
{
|
|
4247
4271
|
ref: re,
|
|
4248
4272
|
src: n,
|
|
4249
4273
|
alt: `${r} (fallback)`,
|
|
4250
4274
|
className: "w-full h-full m-0 object-cover transition-opacity duration-300",
|
|
4251
|
-
style: { opacity:
|
|
4275
|
+
style: { opacity: I ? 0 : 1 },
|
|
4252
4276
|
onLoad: F,
|
|
4253
4277
|
onError: () => {
|
|
4254
4278
|
M(!0), X(!1);
|
|
@@ -4264,15 +4288,15 @@ const ar = {
|
|
|
4264
4288
|
src: e,
|
|
4265
4289
|
alt: r,
|
|
4266
4290
|
className: "w-full h-full m-0 object-cover transition-opacity duration-300",
|
|
4267
|
-
style: { opacity:
|
|
4291
|
+
style: { opacity: I ? 0 : 1 },
|
|
4268
4292
|
onLoad: F,
|
|
4269
|
-
onError:
|
|
4293
|
+
onError: H,
|
|
4270
4294
|
loading: d ? "eager" : "lazy",
|
|
4271
4295
|
decoding: "async",
|
|
4272
4296
|
...w
|
|
4273
4297
|
}
|
|
4274
4298
|
),
|
|
4275
|
-
s && !
|
|
4299
|
+
s && !I && !f && /* @__PURE__ */ t.jsx(
|
|
4276
4300
|
"div",
|
|
4277
4301
|
{
|
|
4278
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",
|
|
@@ -4287,17 +4311,17 @@ const ar = {
|
|
|
4287
4311
|
u,
|
|
4288
4312
|
q,
|
|
4289
4313
|
b,
|
|
4290
|
-
|
|
4314
|
+
I,
|
|
4291
4315
|
c,
|
|
4292
4316
|
f,
|
|
4293
|
-
|
|
4317
|
+
U,
|
|
4294
4318
|
n,
|
|
4295
4319
|
r,
|
|
4296
4320
|
F,
|
|
4297
4321
|
d,
|
|
4298
4322
|
w,
|
|
4299
4323
|
e,
|
|
4300
|
-
|
|
4324
|
+
H,
|
|
4301
4325
|
s
|
|
4302
4326
|
]
|
|
4303
4327
|
);
|
|
@@ -4308,7 +4332,7 @@ const ar = {
|
|
|
4308
4332
|
"div",
|
|
4309
4333
|
{
|
|
4310
4334
|
ref: Q,
|
|
4311
|
-
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"}`,
|
|
4312
4336
|
style: {
|
|
4313
4337
|
top: 0,
|
|
4314
4338
|
left: 0,
|
|
@@ -4361,7 +4385,7 @@ const ar = {
|
|
|
4361
4385
|
"button",
|
|
4362
4386
|
{
|
|
4363
4387
|
onClick: Y,
|
|
4364
|
-
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"}`,
|
|
4365
4389
|
style: { lineHeight: "1" },
|
|
4366
4390
|
children: /* @__PURE__ */ t.jsxs(
|
|
4367
4391
|
"svg",
|
|
@@ -4401,7 +4425,7 @@ const ar = {
|
|
|
4401
4425
|
/* @__PURE__ */ t.jsxs(
|
|
4402
4426
|
"div",
|
|
4403
4427
|
{
|
|
4404
|
-
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"}`,
|
|
4405
4429
|
onClick: (S) => S.stopPropagation(),
|
|
4406
4430
|
children: [
|
|
4407
4431
|
x.cyberpunkEffects && /* @__PURE__ */ t.jsx(
|
|
@@ -4425,8 +4449,8 @@ const ar = {
|
|
|
4425
4449
|
/* @__PURE__ */ t.jsx(
|
|
4426
4450
|
"img",
|
|
4427
4451
|
{
|
|
4428
|
-
src:
|
|
4429
|
-
alt:
|
|
4452
|
+
src: U ? n : e,
|
|
4453
|
+
alt: U ? `${r} (fallback)` : r,
|
|
4430
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"}`,
|
|
4431
4455
|
style: {
|
|
4432
4456
|
maxWidth: "95vw",
|
|
@@ -4441,8 +4465,8 @@ const ar = {
|
|
|
4441
4465
|
{
|
|
4442
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"}`,
|
|
4443
4467
|
children: /* @__PURE__ */ t.jsxs("p", { className: "text-white text-sm font-medium truncate relative", children: [
|
|
4444
|
-
|
|
4445
|
-
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 })
|
|
4446
4470
|
] })
|
|
4447
4471
|
}
|
|
4448
4472
|
),
|
|
@@ -4491,7 +4515,7 @@ const ar = {
|
|
|
4491
4515
|
}
|
|
4492
4516
|
);
|
|
4493
4517
|
je.displayName = "CyberUI.Image";
|
|
4494
|
-
const
|
|
4518
|
+
const lt = ({
|
|
4495
4519
|
images: e,
|
|
4496
4520
|
currentIndex: r,
|
|
4497
4521
|
onChange: a,
|
|
@@ -4501,21 +4525,21 @@ const fr = ({
|
|
|
4501
4525
|
infinite: l = !0,
|
|
4502
4526
|
transition: i = "slide",
|
|
4503
4527
|
objectFit: d = "cover",
|
|
4504
|
-
showArrows:
|
|
4528
|
+
showArrows: h = !0,
|
|
4505
4529
|
showIndicators: m = !0,
|
|
4506
4530
|
className: y = "",
|
|
4507
4531
|
disableImagePreview: p = !1,
|
|
4508
|
-
glitchRate:
|
|
4532
|
+
glitchRate: g = 1,
|
|
4509
4533
|
onBeforeChange: w,
|
|
4510
4534
|
onAfterChange: x
|
|
4511
4535
|
}) => {
|
|
4512
|
-
const [v, A] = Z(!1), [N,
|
|
4513
|
-
() =>
|
|
4536
|
+
const [v, A] = Z(!1), [N, $] = Z(n), [T, C] = Z(!0), I = pe(
|
|
4537
|
+
() => V(s, ae.carousel),
|
|
4514
4538
|
[s]
|
|
4515
4539
|
), G = "w-full h-full", f = D(
|
|
4516
4540
|
(o) => {
|
|
4517
4541
|
if (o === r || v) return;
|
|
4518
|
-
const u = i === "signal-glitch" && (typeof
|
|
4542
|
+
const u = i === "signal-glitch" && (typeof g == "boolean" ? g : Math.random() < g);
|
|
4519
4543
|
C(u), A(!0), w?.(r, o), setTimeout(() => {
|
|
4520
4544
|
a(o), A(!1), x?.(o);
|
|
4521
4545
|
}, i === "slide" ? 0 : i === "signal-glitch" && u ? 600 : 250);
|
|
@@ -4527,7 +4551,7 @@ const fr = ({
|
|
|
4527
4551
|
w,
|
|
4528
4552
|
x,
|
|
4529
4553
|
i,
|
|
4530
|
-
|
|
4554
|
+
g
|
|
4531
4555
|
]
|
|
4532
4556
|
);
|
|
4533
4557
|
oe(() => {
|
|
@@ -4535,7 +4559,7 @@ const fr = ({
|
|
|
4535
4559
|
const o = setInterval(() => {
|
|
4536
4560
|
const u = l ? (r + 1) % e.length : Math.min(r + 1, e.length - 1);
|
|
4537
4561
|
if (!l && u === e.length - 1) {
|
|
4538
|
-
|
|
4562
|
+
$(!1);
|
|
4539
4563
|
return;
|
|
4540
4564
|
}
|
|
4541
4565
|
f(u);
|
|
@@ -4552,23 +4576,23 @@ const fr = ({
|
|
|
4552
4576
|
const M = D(() => {
|
|
4553
4577
|
if (e.length <= 1) return;
|
|
4554
4578
|
const o = l ? (r - 1 + e.length) % e.length : Math.max(r - 1, 0);
|
|
4555
|
-
|
|
4556
|
-
}, [r, e.length, l, f]),
|
|
4579
|
+
$(!1), f(o);
|
|
4580
|
+
}, [r, e.length, l, f]), U = D(() => {
|
|
4557
4581
|
if (e.length <= 1) return;
|
|
4558
4582
|
const o = l ? (r + 1) % e.length : Math.min(r + 1, e.length - 1);
|
|
4559
|
-
|
|
4583
|
+
$(!1), f(o);
|
|
4560
4584
|
}, [r, e.length, l, f]), X = D(
|
|
4561
4585
|
(o) => {
|
|
4562
|
-
|
|
4586
|
+
$(!1), f(o);
|
|
4563
4587
|
},
|
|
4564
4588
|
[f]
|
|
4565
4589
|
);
|
|
4566
4590
|
oe(() => {
|
|
4567
4591
|
const o = (u) => {
|
|
4568
|
-
u.key === "ArrowLeft" && M(), u.key === "ArrowRight" &&
|
|
4592
|
+
u.key === "ArrowLeft" && M(), u.key === "ArrowRight" && U();
|
|
4569
4593
|
};
|
|
4570
4594
|
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
4571
|
-
}, [M,
|
|
4595
|
+
}, [M, U]);
|
|
4572
4596
|
const Q = () => /* @__PURE__ */ t.jsx(
|
|
4573
4597
|
"div",
|
|
4574
4598
|
{
|
|
@@ -4587,8 +4611,8 @@ const fr = ({
|
|
|
4587
4611
|
size: "lg",
|
|
4588
4612
|
preview: !p,
|
|
4589
4613
|
loading: u <= 1 ? "eager" : "lazy",
|
|
4590
|
-
onPreviewOpen: () =>
|
|
4591
|
-
onPreviewClose: () =>
|
|
4614
|
+
onPreviewOpen: () => $(!1),
|
|
4615
|
+
onPreviewClose: () => $(n)
|
|
4592
4616
|
}
|
|
4593
4617
|
) }, u))
|
|
4594
4618
|
}
|
|
@@ -4624,8 +4648,8 @@ const fr = ({
|
|
|
4624
4648
|
size: "lg",
|
|
4625
4649
|
preview: !p,
|
|
4626
4650
|
loading: u <= 1 ? "eager" : "lazy",
|
|
4627
|
-
onPreviewOpen: () =>
|
|
4628
|
-
onPreviewClose: () =>
|
|
4651
|
+
onPreviewOpen: () => $(!1),
|
|
4652
|
+
onPreviewClose: () => $(n)
|
|
4629
4653
|
}
|
|
4630
4654
|
),
|
|
4631
4655
|
i === "matrix" && F(b, v)
|
|
@@ -4634,7 +4658,7 @@ const fr = ({
|
|
|
4634
4658
|
u
|
|
4635
4659
|
);
|
|
4636
4660
|
}) }), ee = () => /* @__PURE__ */ t.jsx(t.Fragment, { children: e.map((o, u) => {
|
|
4637
|
-
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 ? {
|
|
4638
4662
|
opacity: b ? 1 : R ? 0.8 : 0,
|
|
4639
4663
|
animation: b ? "signal-image-flicker-in 1s ease-out forwards" : R ? "signal-image-flicker-out 1s ease-out forwards" : "none",
|
|
4640
4664
|
willChange: "opacity",
|
|
@@ -4661,13 +4685,13 @@ const fr = ({
|
|
|
4661
4685
|
fallback: o.fallbackSrc,
|
|
4662
4686
|
className: G,
|
|
4663
4687
|
size: "lg",
|
|
4664
|
-
preview: !p && !(v && i === "signal-glitch" &&
|
|
4688
|
+
preview: !p && !(v && i === "signal-glitch" && T),
|
|
4665
4689
|
loading: u <= 1 ? "eager" : "lazy",
|
|
4666
|
-
onPreviewOpen: () =>
|
|
4667
|
-
onPreviewClose: () =>
|
|
4690
|
+
onPreviewOpen: () => $(!1),
|
|
4691
|
+
onPreviewClose: () => $(n)
|
|
4668
4692
|
}
|
|
4669
4693
|
),
|
|
4670
|
-
i === "signal-glitch" && v &&
|
|
4694
|
+
i === "signal-glitch" && v && T && H(b)
|
|
4671
4695
|
]
|
|
4672
4696
|
},
|
|
4673
4697
|
u
|
|
@@ -4678,7 +4702,7 @@ const fr = ({
|
|
|
4678
4702
|
) : (
|
|
4679
4703
|
// Transitioning image gets more dramatic effects
|
|
4680
4704
|
/* @__PURE__ */ t.jsx("div", { className: "w-full h-full bg-gradient-to-b from-primary/10 via-secondary/5 to-accent/10 opacity-50" })
|
|
4681
|
-
) }) }),
|
|
4705
|
+
) }) }), H = (o) => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4682
4706
|
/* @__PURE__ */ t.jsx(
|
|
4683
4707
|
"div",
|
|
4684
4708
|
{
|
|
@@ -4809,12 +4833,12 @@ const fr = ({
|
|
|
4809
4833
|
}
|
|
4810
4834
|
)
|
|
4811
4835
|
] })
|
|
4812
|
-
] }), q = () =>
|
|
4836
|
+
] }), q = () => h && e.length > 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4813
4837
|
/* @__PURE__ */ t.jsx(
|
|
4814
4838
|
"button",
|
|
4815
4839
|
{
|
|
4816
4840
|
onClick: M,
|
|
4817
|
-
disabled: !l && r === 0 || v && i === "signal-glitch" &&
|
|
4841
|
+
disabled: !l && r === 0 || v && i === "signal-glitch" && T,
|
|
4818
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",
|
|
4819
4843
|
"aria-label": "Previous image",
|
|
4820
4844
|
children: /* @__PURE__ */ t.jsxs(
|
|
@@ -4906,8 +4930,8 @@ const fr = ({
|
|
|
4906
4930
|
/* @__PURE__ */ t.jsx(
|
|
4907
4931
|
"button",
|
|
4908
4932
|
{
|
|
4909
|
-
onClick:
|
|
4910
|
-
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,
|
|
4911
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",
|
|
4912
4936
|
"aria-label": "Next image",
|
|
4913
4937
|
children: /* @__PURE__ */ t.jsxs(
|
|
@@ -4961,7 +4985,7 @@ const fr = ({
|
|
|
4961
4985
|
"button",
|
|
4962
4986
|
{
|
|
4963
4987
|
onClick: () => X(u),
|
|
4964
|
-
disabled: v && i === "signal-glitch" &&
|
|
4988
|
+
disabled: v && i === "signal-glitch" && T,
|
|
4965
4989
|
className: "group relative transition-all duration-300 hover:scale-110 focus:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-30",
|
|
4966
4990
|
style: {
|
|
4967
4991
|
width: "24px",
|
|
@@ -5028,16 +5052,16 @@ const fr = ({
|
|
|
5028
5052
|
return /* @__PURE__ */ t.jsx(
|
|
5029
5053
|
"div",
|
|
5030
5054
|
{
|
|
5031
|
-
className:
|
|
5055
|
+
className: _(I, "w-full bg-surface border border-accent rounded-lg flex items-center justify-center", y),
|
|
5032
5056
|
children: /* @__PURE__ */ t.jsx("p", { className: "text-muted", children: "No images to display" })
|
|
5033
5057
|
}
|
|
5034
5058
|
);
|
|
5035
5059
|
const K = e[r];
|
|
5036
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
5060
|
+
return /* @__PURE__ */ t.jsxs("div", { className: _("relative w-full", y), children: [
|
|
5037
5061
|
/* @__PURE__ */ t.jsxs(
|
|
5038
5062
|
"div",
|
|
5039
5063
|
{
|
|
5040
|
-
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}`,
|
|
5041
5065
|
children: [
|
|
5042
5066
|
/* @__PURE__ */ t.jsxs("div", { className: "absolute inset-0 pointer-events-none", children: [
|
|
5043
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" }),
|
|
@@ -5064,17 +5088,19 @@ const fr = ({
|
|
|
5064
5088
|
),
|
|
5065
5089
|
Y()
|
|
5066
5090
|
] });
|
|
5067
|
-
}
|
|
5091
|
+
};
|
|
5092
|
+
lt.displayName = "CyberUI.Carousel";
|
|
5093
|
+
const Pr = _e(lt), Nr = {
|
|
5068
5094
|
openDuration: 600,
|
|
5069
5095
|
closeDuration: 400,
|
|
5070
5096
|
crtEffects: !0
|
|
5071
|
-
},
|
|
5097
|
+
}, Cr = {
|
|
5072
5098
|
sm: "max-w-md",
|
|
5073
5099
|
md: "max-w-lg",
|
|
5074
5100
|
lg: "max-w-2xl",
|
|
5075
5101
|
xl: "max-w-4xl",
|
|
5076
5102
|
fullscreen: "max-w-none w-full h-full"
|
|
5077
|
-
},
|
|
5103
|
+
}, Sr = _e(
|
|
5078
5104
|
({
|
|
5079
5105
|
isOpen: e,
|
|
5080
5106
|
onClose: r,
|
|
@@ -5085,40 +5111,40 @@ const fr = ({
|
|
|
5085
5111
|
onConfirm: l,
|
|
5086
5112
|
cancelText: i = "Cancel",
|
|
5087
5113
|
confirmText: d = "Confirm",
|
|
5088
|
-
confirmLoading:
|
|
5114
|
+
confirmLoading: h = !1,
|
|
5089
5115
|
showCancel: m = !0,
|
|
5090
5116
|
showConfirm: y = !0,
|
|
5091
5117
|
size: p = "lg",
|
|
5092
|
-
variant:
|
|
5118
|
+
variant: g = "default",
|
|
5093
5119
|
closeOnOverlayClick: w = !0,
|
|
5094
5120
|
closeOnEscape: x = !0,
|
|
5095
5121
|
animation: v,
|
|
5096
5122
|
className: A = "",
|
|
5097
5123
|
overlayClassName: N = "",
|
|
5098
|
-
showCloseButton:
|
|
5099
|
-
onOpen:
|
|
5124
|
+
showCloseButton: $ = !0,
|
|
5125
|
+
onOpen: T,
|
|
5100
5126
|
onCRTBootComplete: C
|
|
5101
5127
|
}) => {
|
|
5102
|
-
const
|
|
5103
|
-
() => ({ ...
|
|
5128
|
+
const I = pe(
|
|
5129
|
+
() => ({ ...Nr, ...v }),
|
|
5104
5130
|
[v]
|
|
5105
|
-
), [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(() => {
|
|
5106
5132
|
f(!0), setTimeout(() => {
|
|
5107
|
-
f(!1),
|
|
5108
|
-
},
|
|
5109
|
-
}, [r,
|
|
5133
|
+
f(!1), U(!0), r();
|
|
5134
|
+
}, I.closeDuration);
|
|
5135
|
+
}, [r, I.closeDuration]);
|
|
5110
5136
|
oe(() => {
|
|
5111
|
-
e && !G && (re.current = document.activeElement || null,
|
|
5112
|
-
|
|
5113
|
-
},
|
|
5137
|
+
e && !G && (re.current = document.activeElement || null, U(!0), T?.(), setTimeout(() => {
|
|
5138
|
+
U(!1), C?.(), Q.current?.focus();
|
|
5139
|
+
}, I.openDuration));
|
|
5114
5140
|
}, [
|
|
5115
5141
|
e,
|
|
5116
5142
|
G,
|
|
5117
|
-
|
|
5143
|
+
T,
|
|
5118
5144
|
C,
|
|
5119
|
-
|
|
5145
|
+
I.openDuration
|
|
5120
5146
|
]);
|
|
5121
|
-
const
|
|
5147
|
+
const H = D(() => {
|
|
5122
5148
|
c?.(), F();
|
|
5123
5149
|
}, [c, F]), q = D(() => {
|
|
5124
5150
|
l?.(), F();
|
|
@@ -5143,14 +5169,14 @@ const fr = ({
|
|
|
5143
5169
|
}
|
|
5144
5170
|
}, [e, K]);
|
|
5145
5171
|
const o = pe(() => {
|
|
5146
|
-
const u =
|
|
5147
|
-
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 _(
|
|
5148
5174
|
"relative bg-surface border-2 rounded-lg max-h-[90vh] overflow-hidden flex flex-col transform transition-all duration-300",
|
|
5149
|
-
|
|
5150
|
-
|
|
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}`,
|
|
5151
5177
|
A
|
|
5152
5178
|
);
|
|
5153
|
-
}, [p,
|
|
5179
|
+
}, [p, I.crtEffects, G, M, A, g]);
|
|
5154
5180
|
return e ? Fe(
|
|
5155
5181
|
/* @__PURE__ */ t.jsx(
|
|
5156
5182
|
"div",
|
|
@@ -5176,7 +5202,7 @@ const fr = ({
|
|
|
5176
5202
|
"aria-labelledby": a ? ee.current : void 0,
|
|
5177
5203
|
tabIndex: -1,
|
|
5178
5204
|
children: [
|
|
5179
|
-
|
|
5205
|
+
$ && /* @__PURE__ */ t.jsx(
|
|
5180
5206
|
"button",
|
|
5181
5207
|
{
|
|
5182
5208
|
onClick: F,
|
|
@@ -5207,16 +5233,16 @@ const fr = ({
|
|
|
5207
5233
|
a && /* @__PURE__ */ t.jsx(
|
|
5208
5234
|
"div",
|
|
5209
5235
|
{
|
|
5210
|
-
className:
|
|
5236
|
+
className: _(
|
|
5211
5237
|
"px-6 py-4 border-b flex-shrink-0 transition-all duration-300",
|
|
5212
|
-
|
|
5238
|
+
g === "danger" ? "border-error/20" : "border-accent/20",
|
|
5213
5239
|
M ? "opacity-0 translate-y-2" : "opacity-100 translate-y-0"
|
|
5214
5240
|
),
|
|
5215
5241
|
children: /* @__PURE__ */ t.jsx(
|
|
5216
5242
|
"h2",
|
|
5217
5243
|
{
|
|
5218
5244
|
id: ee.current,
|
|
5219
|
-
className:
|
|
5245
|
+
className: _("text-lg font-semibold", g === "danger" ? "text-error" : "text-primary"),
|
|
5220
5246
|
children: a
|
|
5221
5247
|
}
|
|
5222
5248
|
)
|
|
@@ -5232,22 +5258,22 @@ const fr = ({
|
|
|
5232
5258
|
(n || c || l) && /* @__PURE__ */ t.jsx(
|
|
5233
5259
|
"div",
|
|
5234
5260
|
{
|
|
5235
|
-
className:
|
|
5261
|
+
className: _(
|
|
5236
5262
|
"px-6 py-4 border-t flex-shrink-0 transition-all duration-300",
|
|
5237
|
-
|
|
5263
|
+
g === "danger" ? "border-error/20" : "border-accent/20",
|
|
5238
5264
|
M ? "opacity-0 translate-y-2" : "opacity-100 translate-y-0"
|
|
5239
5265
|
),
|
|
5240
5266
|
children: n || /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col-reverse sm:flex-row justify-between items-center gap-3", children: [
|
|
5241
5267
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted text-xs font-mono hidden sm:block", children: "> ESC to abort" }),
|
|
5242
5268
|
/* @__PURE__ */ t.jsxs("div", { className: "flex gap-3 w-full sm:w-auto", children: [
|
|
5243
|
-
m && c && /* @__PURE__ */ t.jsx(
|
|
5269
|
+
m && c && /* @__PURE__ */ t.jsx(Ee, { variant: "ghost", size: "sm", onClick: H, className: "flex-1 sm:flex-none", children: i }),
|
|
5244
5270
|
y && l && /* @__PURE__ */ t.jsx(
|
|
5245
|
-
|
|
5271
|
+
Ee,
|
|
5246
5272
|
{
|
|
5247
|
-
variant:
|
|
5273
|
+
variant: g === "danger" ? "danger" : "primary",
|
|
5248
5274
|
size: "sm",
|
|
5249
5275
|
onClick: q,
|
|
5250
|
-
disabled:
|
|
5276
|
+
disabled: h,
|
|
5251
5277
|
className: "flex-1 sm:flex-none",
|
|
5252
5278
|
children: d
|
|
5253
5279
|
}
|
|
@@ -5265,8 +5291,8 @@ const fr = ({
|
|
|
5265
5291
|
) : null;
|
|
5266
5292
|
}
|
|
5267
5293
|
);
|
|
5268
|
-
|
|
5269
|
-
const
|
|
5294
|
+
Sr.displayName = "CyberUI.Modal";
|
|
5295
|
+
const Er = ({
|
|
5270
5296
|
children: e,
|
|
5271
5297
|
variant: r = "primary",
|
|
5272
5298
|
as: a = "span",
|
|
@@ -5280,11 +5306,13 @@ const Ar = ({
|
|
|
5280
5306
|
return /* @__PURE__ */ t.jsx(
|
|
5281
5307
|
a,
|
|
5282
5308
|
{
|
|
5283
|
-
className:
|
|
5309
|
+
className: _("bg-clip-text text-transparent inline-block", n(r), s),
|
|
5284
5310
|
children: e
|
|
5285
5311
|
}
|
|
5286
5312
|
);
|
|
5287
|
-
}
|
|
5313
|
+
};
|
|
5314
|
+
Er.displayName = "CyberUI.GradientText";
|
|
5315
|
+
const Tr = ({
|
|
5288
5316
|
children: e,
|
|
5289
5317
|
showLine: r = !0,
|
|
5290
5318
|
size: a = "md",
|
|
@@ -5302,12 +5330,14 @@ const Ar = ({
|
|
|
5302
5330
|
sm: "gap-3",
|
|
5303
5331
|
md: "gap-4",
|
|
5304
5332
|
lg: "gap-5"
|
|
5305
|
-
}, i =
|
|
5306
|
-
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: [
|
|
5307
5335
|
/* @__PURE__ */ t.jsx("h2", { className: y, children: e }),
|
|
5308
5336
|
r && /* @__PURE__ */ t.jsx("div", { className: "h-[1px] w-full bg-gradient-to-r from-secondary/50 to-transparent" })
|
|
5309
5337
|
] });
|
|
5310
|
-
}
|
|
5338
|
+
};
|
|
5339
|
+
Tr.displayName = "CyberUI.SectionTitle";
|
|
5340
|
+
const _r = ({
|
|
5311
5341
|
events: e,
|
|
5312
5342
|
size: r = "md",
|
|
5313
5343
|
className: a = ""
|
|
@@ -5336,12 +5366,12 @@ const Ar = ({
|
|
|
5336
5366
|
sm: "gap-3",
|
|
5337
5367
|
md: "gap-4",
|
|
5338
5368
|
lg: "gap-5"
|
|
5339
|
-
},
|
|
5369
|
+
}, h = {
|
|
5340
5370
|
sm: "space-y-4",
|
|
5341
5371
|
md: "space-y-6",
|
|
5342
5372
|
lg: "space-y-8"
|
|
5343
|
-
}, m =
|
|
5344
|
-
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 = {
|
|
5345
5375
|
success: {
|
|
5346
5376
|
border: "border-success bg-success/30 shadow-[0_0_10px_var(--color-success)]",
|
|
5347
5377
|
background: "border-success bg-success/30 shadow-[0_0_10px_var(--color-success)]",
|
|
@@ -5363,88 +5393,90 @@ const Ar = ({
|
|
|
5363
5393
|
inner: "bg-info/60"
|
|
5364
5394
|
}
|
|
5365
5395
|
};
|
|
5366
|
-
return
|
|
5396
|
+
return T[$] || T.info;
|
|
5367
5397
|
}, N = "polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)";
|
|
5368
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
5369
|
-
const C = A(
|
|
5370
|
-
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: [
|
|
5371
5401
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
5372
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
5402
|
+
/* @__PURE__ */ t.jsxs("div", { className: _("relative flex-shrink-0 mt-1.5", m), children: [
|
|
5373
5403
|
/* @__PURE__ */ t.jsx(
|
|
5374
5404
|
"div",
|
|
5375
5405
|
{
|
|
5376
|
-
className:
|
|
5406
|
+
className: _("absolute inset-0 border-2 transition-all duration-300", C.border),
|
|
5377
5407
|
style: { clipPath: N }
|
|
5378
5408
|
}
|
|
5379
5409
|
),
|
|
5380
5410
|
/* @__PURE__ */ t.jsx(
|
|
5381
5411
|
"div",
|
|
5382
5412
|
{
|
|
5383
|
-
className:
|
|
5413
|
+
className: _("absolute", y, C.inner),
|
|
5384
5414
|
style: { clipPath: N }
|
|
5385
5415
|
}
|
|
5386
5416
|
)
|
|
5387
5417
|
] }),
|
|
5388
|
-
|
|
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" })
|
|
5389
5419
|
] }),
|
|
5390
5420
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-1 pb-6", children: [
|
|
5391
5421
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between mb-1", children: [
|
|
5392
|
-
/* @__PURE__ */ t.jsx("h4", { className:
|
|
5393
|
-
/* @__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 })
|
|
5394
5424
|
] }),
|
|
5395
|
-
|
|
5425
|
+
$.description && /* @__PURE__ */ t.jsx("p", { className: _("text-muted mt-1", g), children: $.description })
|
|
5396
5426
|
] })
|
|
5397
|
-
] },
|
|
5427
|
+
] }, T);
|
|
5398
5428
|
}) });
|
|
5399
|
-
}
|
|
5429
|
+
};
|
|
5430
|
+
_r.displayName = "CyberUI.Timeline";
|
|
5431
|
+
const $r = ({
|
|
5400
5432
|
items: e,
|
|
5401
5433
|
current: r = 0,
|
|
5402
5434
|
orientation: a = { base: "vertical", md: "horizontal" },
|
|
5403
5435
|
className: s = ""
|
|
5404
5436
|
}) => {
|
|
5405
|
-
const c =
|
|
5406
|
-
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";
|
|
5407
5439
|
return { isCompleted: w, isCurrent: x, isError: v };
|
|
5408
|
-
}, i = (p,
|
|
5409
|
-
const x =
|
|
5440
|
+
}, i = (p, g, w) => {
|
|
5441
|
+
const x = _(
|
|
5410
5442
|
"relative px-2 py-1 pb-2 font-bold text-sm transition-colors duration-200 whitespace-nowrap overflow-hidden",
|
|
5411
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",
|
|
5412
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"
|
|
5413
5445
|
);
|
|
5414
|
-
return p ?
|
|
5415
|
-
}, d = (p,
|
|
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) => ({
|
|
5416
5448
|
color: "var(--color-primary)",
|
|
5417
5449
|
opacity: w ? 0.8 : 0.3,
|
|
5418
5450
|
filter: w ? "drop-shadow(0 0 4px color-mix(in srgb, var(--color-primary), transparent 40%))" : "none",
|
|
5419
|
-
animation:
|
|
5420
|
-
}),
|
|
5421
|
-
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 = _(
|
|
5422
5454
|
"relative font-bold text-sm transition-colors duration-200 pb-1 w-fit",
|
|
5423
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"
|
|
5424
5456
|
);
|
|
5425
|
-
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");
|
|
5426
5458
|
};
|
|
5427
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
5428
|
-
const { isCompleted: w, isCurrent: x, isError: v } = l(p,
|
|
5429
|
-
return /* @__PURE__ */ t.jsxs(
|
|
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: [
|
|
5430
5462
|
c ? (
|
|
5431
5463
|
// Vertical layout: step row + chevrons below
|
|
5432
5464
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col w-full", children: [
|
|
5433
5465
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-start gap-1.5", children: [
|
|
5434
|
-
/* @__PURE__ */ t.jsx("span", { className:
|
|
5466
|
+
/* @__PURE__ */ t.jsx("span", { className: _("text-xs leading-5 flex-shrink-0", m(w, x, v)), children: "▸" }),
|
|
5435
5467
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col", children: [
|
|
5436
5468
|
/* @__PURE__ */ t.jsx("div", { className: y(w, x, v), children: p.title }),
|
|
5437
5469
|
p.description && /* @__PURE__ */ t.jsx("div", { className: "text-xs text-muted mt-0.5 font-normal", children: p.description })
|
|
5438
5470
|
] })
|
|
5439
5471
|
] }),
|
|
5440
|
-
|
|
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(
|
|
5441
5473
|
"div",
|
|
5442
5474
|
{
|
|
5443
5475
|
className: "text-sm font-bold transition-all duration-300 rotate-90 leading-[0.6]",
|
|
5444
|
-
style: d(w, A, N,
|
|
5476
|
+
style: d(w, A, N, $),
|
|
5445
5477
|
children: "›"
|
|
5446
5478
|
},
|
|
5447
|
-
|
|
5479
|
+
$
|
|
5448
5480
|
)) })
|
|
5449
5481
|
] })
|
|
5450
5482
|
) : (
|
|
@@ -5454,18 +5486,20 @@ const Ar = ({
|
|
|
5454
5486
|
p.description && /* @__PURE__ */ t.jsx("div", { className: "text-xs text-muted mt-1 font-normal", children: p.description })
|
|
5455
5487
|
] })
|
|
5456
5488
|
),
|
|
5457
|
-
!c &&
|
|
5489
|
+
!c && g < e.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "flex", children: [0, 1, 2].map(($) => /* @__PURE__ */ t.jsx(
|
|
5458
5490
|
"div",
|
|
5459
5491
|
{
|
|
5460
5492
|
className: "text-2xl font-bold transition-all duration-300",
|
|
5461
|
-
style: d(w, A, N,
|
|
5493
|
+
style: d(w, A, N, $),
|
|
5462
5494
|
children: "›"
|
|
5463
5495
|
},
|
|
5464
|
-
|
|
5496
|
+
$
|
|
5465
5497
|
)) })
|
|
5466
|
-
] },
|
|
5498
|
+
] }, g);
|
|
5467
5499
|
}) });
|
|
5468
|
-
}
|
|
5500
|
+
};
|
|
5501
|
+
$r.displayName = "CyberUI.Steps";
|
|
5502
|
+
const Rr = ({
|
|
5469
5503
|
variant: e = "gradient",
|
|
5470
5504
|
orientation: r = "horizontal",
|
|
5471
5505
|
className: a = ""
|
|
@@ -5474,13 +5508,15 @@ const Ar = ({
|
|
|
5474
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",
|
|
5475
5509
|
solid: "bg-secondary/30",
|
|
5476
5510
|
dashed: `border-dashed border-secondary/50 ${i === "horizontal" ? "border-t" : "border-l"}`
|
|
5477
|
-
})[l], c =
|
|
5511
|
+
})[l], c = _(
|
|
5478
5512
|
s(r),
|
|
5479
5513
|
n(e, r),
|
|
5480
5514
|
a
|
|
5481
5515
|
);
|
|
5482
5516
|
return /* @__PURE__ */ t.jsx("div", { className: c });
|
|
5483
|
-
}
|
|
5517
|
+
};
|
|
5518
|
+
Rr.displayName = "CyberUI.Divider";
|
|
5519
|
+
const Ar = ({
|
|
5484
5520
|
label: e,
|
|
5485
5521
|
error: r,
|
|
5486
5522
|
size: a = "md",
|
|
@@ -5491,9 +5527,9 @@ const Ar = ({
|
|
|
5491
5527
|
disabled: i,
|
|
5492
5528
|
...d
|
|
5493
5529
|
}) => {
|
|
5494
|
-
const [
|
|
5530
|
+
const [h, m] = Te.useState(d.defaultChecked || !1), y = n !== void 0 ? n : h, p = (C) => {
|
|
5495
5531
|
i || (n === void 0 && m(C.target.checked), c?.(C), l?.(C.target.checked));
|
|
5496
|
-
},
|
|
5532
|
+
}, g = {
|
|
5497
5533
|
sm: "w-4 h-4",
|
|
5498
5534
|
md: "w-5 h-5",
|
|
5499
5535
|
lg: "w-6 h-6"
|
|
@@ -5505,13 +5541,13 @@ const Ar = ({
|
|
|
5505
5541
|
sm: "ml-6",
|
|
5506
5542
|
md: "ml-8",
|
|
5507
5543
|
lg: "ml-9"
|
|
5508
|
-
}, v =
|
|
5509
|
-
const
|
|
5510
|
-
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");
|
|
5511
5547
|
};
|
|
5512
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
5513
|
-
/* @__PURE__ */ t.jsxs("label", { className:
|
|
5514
|
-
/* @__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: [
|
|
5515
5551
|
/* @__PURE__ */ t.jsx(
|
|
5516
5552
|
"input",
|
|
5517
5553
|
{
|
|
@@ -5542,7 +5578,7 @@ const Ar = ({
|
|
|
5542
5578
|
"path",
|
|
5543
5579
|
{
|
|
5544
5580
|
d: "M 1 1 L 19 1 L 19 15 L 15 19 L 1 19 Z",
|
|
5545
|
-
className:
|
|
5581
|
+
className: $(y),
|
|
5546
5582
|
strokeWidth: "1",
|
|
5547
5583
|
fill: "none"
|
|
5548
5584
|
}
|
|
@@ -5551,18 +5587,20 @@ const Ar = ({
|
|
|
5551
5587
|
"path",
|
|
5552
5588
|
{
|
|
5553
5589
|
d: "M 4 4 L 16 4 L 16 13 L 13 16 L 4 16 Z",
|
|
5554
|
-
className:
|
|
5590
|
+
className: T(y)
|
|
5555
5591
|
}
|
|
5556
5592
|
)
|
|
5557
5593
|
]
|
|
5558
5594
|
}
|
|
5559
5595
|
)
|
|
5560
5596
|
] }),
|
|
5561
|
-
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 })
|
|
5562
5598
|
] }),
|
|
5563
|
-
r && !i && /* @__PURE__ */ t.jsx("span", { className:
|
|
5599
|
+
r && !i && /* @__PURE__ */ t.jsx("span", { className: _("text-xs text-error", N), children: r })
|
|
5564
5600
|
] });
|
|
5565
|
-
}
|
|
5601
|
+
};
|
|
5602
|
+
Ar.displayName = "CyberUI.Checkbox";
|
|
5603
|
+
const ne = {
|
|
5566
5604
|
MOBILE_BREAKPOINT: 768,
|
|
5567
5605
|
STABLE_TIMEOUT: 1e3,
|
|
5568
5606
|
MOBILE_HIDE_DELAY: 1e3,
|
|
@@ -5578,20 +5616,20 @@ const Ar = ({
|
|
|
5578
5616
|
pageLevel: n,
|
|
5579
5617
|
variant: c = "default",
|
|
5580
5618
|
className: l = ""
|
|
5581
|
-
} = e, i = te(null), d = 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({
|
|
5582
5620
|
isScrolling: !1,
|
|
5583
5621
|
direction: null,
|
|
5584
5622
|
velocity: 0,
|
|
5585
5623
|
position: 0,
|
|
5586
5624
|
scrollDistance: 0
|
|
5587
|
-
}), [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);
|
|
5588
5626
|
oe(() => {
|
|
5589
5627
|
if (n !== void 0)
|
|
5590
|
-
|
|
5628
|
+
I(n);
|
|
5591
5629
|
else {
|
|
5592
5630
|
const u = setTimeout(() => {
|
|
5593
5631
|
const b = i.current !== null;
|
|
5594
|
-
|
|
5632
|
+
I(!b);
|
|
5595
5633
|
}, 0);
|
|
5596
5634
|
return () => clearTimeout(u);
|
|
5597
5635
|
}
|
|
@@ -5631,9 +5669,9 @@ const Ar = ({
|
|
|
5631
5669
|
arrowGap: u ? 2 : 4
|
|
5632
5670
|
};
|
|
5633
5671
|
}, []), M = D((u, b, R, S) => {
|
|
5634
|
-
const E = (S + R) * 2,
|
|
5672
|
+
const E = (S + R) * 2, P = R * 4, O = (u - E - P) / 2;
|
|
5635
5673
|
return Math.floor(O / (b + R));
|
|
5636
|
-
}, []),
|
|
5674
|
+
}, []), U = D((u) => {
|
|
5637
5675
|
if (C) {
|
|
5638
5676
|
if (!document.querySelector("#cyber-page-scrollbar-styles")) {
|
|
5639
5677
|
const b = document.createElement("style");
|
|
@@ -5652,13 +5690,13 @@ const Ar = ({
|
|
|
5652
5690
|
u.classList.add("cyber-scrollbar-container");
|
|
5653
5691
|
}
|
|
5654
5692
|
}, [C]), X = D((u, b, R, S) => {
|
|
5655
|
-
const E = document.createElement("div"),
|
|
5656
|
-
|
|
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 = "=");
|
|
5657
5695
|
const W = S.isMobile ? "none" : `drop-shadow(0 0 6px var(--color-${r}))
|
|
5658
5696
|
drop-shadow(0 0 12px var(--color-${r}))
|
|
5659
5697
|
drop-shadow(0 0 18px var(--color-${r}))`;
|
|
5660
5698
|
return E.style.cssText = `
|
|
5661
|
-
font-size: ${
|
|
5699
|
+
font-size: ${P ? S.arrowSize : S.lineSize}px;
|
|
5662
5700
|
color: var(--color-${r});
|
|
5663
5701
|
opacity: 0;
|
|
5664
5702
|
transition: all 0.2s ease;
|
|
@@ -5684,7 +5722,7 @@ const Ar = ({
|
|
|
5684
5722
|
}, [C]), re = D(() => {
|
|
5685
5723
|
if (s || !C && !i.current || (d.current && d.current.remove(), !(C ? document.body.scrollHeight > window.innerHeight : i.current.scrollHeight > i.current.clientHeight))) return;
|
|
5686
5724
|
const b = f(), R = Q(), S = M(R.height, b.arrowSize, b.arrowGap, b.lineSize);
|
|
5687
|
-
|
|
5725
|
+
U(C ? void 0 : i.current || void 0);
|
|
5688
5726
|
const E = document.createElement("div");
|
|
5689
5727
|
E.className = `cyber-scrollbar ${l}`.trim();
|
|
5690
5728
|
const W = b.isMobile ? "transparent" : c, O = G(W);
|
|
@@ -5724,16 +5762,16 @@ const Ar = ({
|
|
|
5724
5762
|
return L && (window.addEventListener("resize", L), window.addEventListener("scroll", L)), () => {
|
|
5725
5763
|
E.remove(), !C && i.current && i.current.classList.remove("cyber-scrollbar-container"), L && (window.removeEventListener("resize", L), window.removeEventListener("scroll", L));
|
|
5726
5764
|
};
|
|
5727
|
-
}, [s, C, N,
|
|
5765
|
+
}, [s, C, N, U, Q, X, f, M, G, c, l]), ee = D((u, b) => {
|
|
5728
5766
|
const R = Math.max(1, Math.min(3, Math.ceil(u * 0.8))), S = Math.floor(b / ne.DISTANCE_THRESHOLD);
|
|
5729
5767
|
return R + S;
|
|
5730
5768
|
}, []), F = D((u, b, R) => {
|
|
5731
5769
|
const S = Array.from(u).filter(
|
|
5732
|
-
(
|
|
5770
|
+
(P) => P.classList.contains(`cyber-arrow-${b}`)
|
|
5733
5771
|
), E = Math.min(R, S.length);
|
|
5734
5772
|
return b === "up" ? S.slice(-E) : S.slice(0, E);
|
|
5735
|
-
}, []),
|
|
5736
|
-
const S = Math.min(b * a, ne.MAX_ANIMATION_SPEED), E = window.innerWidth < ne.MOBILE_BREAKPOINT,
|
|
5773
|
+
}, []), H = D((u, b, R) => {
|
|
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;
|
|
5737
5775
|
O.forEach((L) => {
|
|
5738
5776
|
L.style.opacity = "0.3";
|
|
5739
5777
|
}), O.forEach((L, B) => {
|
|
@@ -5741,33 +5779,33 @@ const Ar = ({
|
|
|
5741
5779
|
L.style.opacity = "1";
|
|
5742
5780
|
const be = setTimeout(() => {
|
|
5743
5781
|
L.style.opacity = "0.3";
|
|
5744
|
-
},
|
|
5782
|
+
}, P);
|
|
5745
5783
|
p.current.push(be);
|
|
5746
5784
|
}, se);
|
|
5747
5785
|
p.current.push(fe);
|
|
5748
5786
|
});
|
|
5749
5787
|
}, [a]), q = D(() => {
|
|
5750
5788
|
if (!d.current) return;
|
|
5751
|
-
const { isScrolling: u, direction: b, velocity: R, scrollDistance: S } = w, E = d.current.querySelectorAll(".cyber-arrow"),
|
|
5789
|
+
const { isScrolling: u, direction: b, velocity: R, scrollDistance: S } = w, E = d.current.querySelectorAll(".cyber-arrow"), P = d.current.querySelectorAll(".cyber-line");
|
|
5752
5790
|
if (u && b) {
|
|
5753
|
-
|
|
5791
|
+
P.forEach((O) => {
|
|
5754
5792
|
O.style.opacity = "0";
|
|
5755
5793
|
});
|
|
5756
5794
|
const W = ee(R, S);
|
|
5757
|
-
if (W !==
|
|
5795
|
+
if (W !== T.current) {
|
|
5758
5796
|
p.current.forEach((L) => clearTimeout(L)), p.current = [], E.forEach((L) => {
|
|
5759
5797
|
L.style.opacity = "0";
|
|
5760
5798
|
});
|
|
5761
5799
|
const O = F(Array.from(E), b, W);
|
|
5762
|
-
|
|
5800
|
+
H(O, R, b), T.current = W;
|
|
5763
5801
|
}
|
|
5764
5802
|
} else
|
|
5765
|
-
p.current.forEach((W) => clearTimeout(W)), p.current = [],
|
|
5803
|
+
p.current.forEach((W) => clearTimeout(W)), p.current = [], T.current = 0, E.forEach((W) => {
|
|
5766
5804
|
W.style.opacity = "0";
|
|
5767
|
-
}), v &&
|
|
5805
|
+
}), v && P.forEach((W) => {
|
|
5768
5806
|
W.style.opacity = "0.6";
|
|
5769
5807
|
});
|
|
5770
|
-
}, [w, v,
|
|
5808
|
+
}, [w, v, H, ee, F]), Y = te(null), K = D(() => {
|
|
5771
5809
|
if (s || !C && !i.current) return;
|
|
5772
5810
|
const u = Date.now(), b = C ? {
|
|
5773
5811
|
currentScrollTop: window.scrollY,
|
|
@@ -5777,25 +5815,25 @@ const Ar = ({
|
|
|
5777
5815
|
currentScrollTop: i.current.scrollTop,
|
|
5778
5816
|
scrollHeight: i.current.scrollHeight,
|
|
5779
5817
|
clientHeight: i.current.clientHeight
|
|
5780
|
-
}, 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);
|
|
5781
5819
|
v || A(!0);
|
|
5782
5820
|
const L = window.innerWidth < ne.MOBILE_BREAKPOINT;
|
|
5783
|
-
L && !N &&
|
|
5821
|
+
L && !N && $(!0), x((B) => ({
|
|
5784
5822
|
isScrolling: !0,
|
|
5785
5823
|
direction: W,
|
|
5786
|
-
velocity:
|
|
5824
|
+
velocity: P,
|
|
5787
5825
|
position: O,
|
|
5788
5826
|
scrollDistance: B.direction !== W ? Math.abs(S) : B.scrollDistance + Math.abs(S)
|
|
5789
|
-
})), y.current && clearTimeout(y.current),
|
|
5827
|
+
})), y.current && clearTimeout(y.current), g.current && clearTimeout(g.current), y.current = setTimeout(() => {
|
|
5790
5828
|
p.current.forEach((B) => clearTimeout(B)), p.current = [], x((B) => ({
|
|
5791
5829
|
...B,
|
|
5792
5830
|
isScrolling: !1,
|
|
5793
5831
|
velocity: 0,
|
|
5794
5832
|
scrollDistance: 0
|
|
5795
|
-
})), L && (
|
|
5796
|
-
|
|
5833
|
+
})), L && (g.current = setTimeout(() => {
|
|
5834
|
+
$(!1);
|
|
5797
5835
|
}, ne.MOBILE_HIDE_DELAY));
|
|
5798
|
-
}, ne.STABLE_TIMEOUT),
|
|
5836
|
+
}, ne.STABLE_TIMEOUT), h.current = u, m.current = b.currentScrollTop;
|
|
5799
5837
|
}, [s, C, v, N]), o = D(() => {
|
|
5800
5838
|
Y.current === null && (Y.current = requestAnimationFrame(() => {
|
|
5801
5839
|
Y.current = null, K();
|
|
@@ -5805,13 +5843,13 @@ const Ar = ({
|
|
|
5805
5843
|
if (s || !C && !i.current) return;
|
|
5806
5844
|
const u = re(), b = C ? window : i.current;
|
|
5807
5845
|
return b.addEventListener("scroll", o, { passive: !0 }), () => {
|
|
5808
|
-
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?.();
|
|
5809
5847
|
};
|
|
5810
5848
|
}, [re, o, s, C]), oe(() => {
|
|
5811
5849
|
q();
|
|
5812
5850
|
}, [q]), i;
|
|
5813
|
-
},
|
|
5814
|
-
const e = it
|
|
5851
|
+
}, it = ct(void 0), Dr = () => {
|
|
5852
|
+
const e = dt(it);
|
|
5815
5853
|
if (e === void 0)
|
|
5816
5854
|
throw new Error(
|
|
5817
5855
|
"useCyberNotifications must be used within a CyberNotificationProvider"
|
|
@@ -5821,8 +5859,8 @@ const Ar = ({
|
|
|
5821
5859
|
const { min: r = 5, max: a = 95, speed: s = 30 } = e, [n, c] = Z(0), [l, i] = Z(1);
|
|
5822
5860
|
return oe(() => {
|
|
5823
5861
|
const d = setInterval(() => {
|
|
5824
|
-
c((
|
|
5825
|
-
let m =
|
|
5862
|
+
c((h) => {
|
|
5863
|
+
let m = h + l;
|
|
5826
5864
|
return m >= a ? (m = a, i(-1)) : m <= r && (m = r, i(1)), m;
|
|
5827
5865
|
});
|
|
5828
5866
|
}, s);
|
|
@@ -5830,8 +5868,8 @@ const Ar = ({
|
|
|
5830
5868
|
}, [l, r, a, s]), n;
|
|
5831
5869
|
}, Wr = ({ children: e, position: r = "top-right", defaultDuration: a = 2500 }) => {
|
|
5832
5870
|
const [s, n] = Z([]), c = D(
|
|
5833
|
-
(m, y, p,
|
|
5834
|
-
const w = Date.now().toString(), { autoHide: x = !0, duration: v = a } =
|
|
5871
|
+
(m, y, p, g = {}) => {
|
|
5872
|
+
const w = Date.now().toString(), { autoHide: x = !0, duration: v = a } = g;
|
|
5835
5873
|
return n((A) => [...A, { id: w, type: m, title: y, message: p }]), x && setTimeout(() => {
|
|
5836
5874
|
n(
|
|
5837
5875
|
(A) => A.map((N) => N.id === w ? { ...N, isClosing: !0 } : N)
|
|
@@ -5851,20 +5889,20 @@ const Ar = ({
|
|
|
5851
5889
|
n([]);
|
|
5852
5890
|
}, []), d = D((m, y) => {
|
|
5853
5891
|
n(
|
|
5854
|
-
(p) => p.map((
|
|
5892
|
+
(p) => p.map((g) => g.id === m ? { ...g, width: y } : g)
|
|
5855
5893
|
);
|
|
5856
|
-
}, []),
|
|
5894
|
+
}, []), h = {
|
|
5857
5895
|
notifications: s,
|
|
5858
5896
|
showNotification: c,
|
|
5859
5897
|
hideNotification: l,
|
|
5860
5898
|
clearAllNotifications: i
|
|
5861
5899
|
};
|
|
5862
|
-
return /* @__PURE__ */ t.jsxs(
|
|
5900
|
+
return /* @__PURE__ */ t.jsxs(it.Provider, { value: h, children: [
|
|
5863
5901
|
e,
|
|
5864
5902
|
s.length > 0 && /* @__PURE__ */ t.jsx(
|
|
5865
5903
|
"div",
|
|
5866
5904
|
{
|
|
5867
|
-
className: `fixed z-50 ${
|
|
5905
|
+
className: `fixed z-50 ${Mr(r)}`,
|
|
5868
5906
|
"aria-live": "polite",
|
|
5869
5907
|
"aria-relevant": "additions text",
|
|
5870
5908
|
"aria-atomic": "true",
|
|
@@ -5889,12 +5927,12 @@ const Ar = ({
|
|
|
5889
5927
|
},
|
|
5890
5928
|
ref: (p) => {
|
|
5891
5929
|
if (p && !m.width) {
|
|
5892
|
-
const
|
|
5893
|
-
d(m.id,
|
|
5930
|
+
const g = p.scrollWidth;
|
|
5931
|
+
d(m.id, g);
|
|
5894
5932
|
}
|
|
5895
5933
|
},
|
|
5896
5934
|
children: /* @__PURE__ */ t.jsx(
|
|
5897
|
-
|
|
5935
|
+
nt,
|
|
5898
5936
|
{
|
|
5899
5937
|
type: m.type,
|
|
5900
5938
|
title: m.title,
|
|
@@ -5911,7 +5949,7 @@ const Ar = ({
|
|
|
5911
5949
|
}
|
|
5912
5950
|
)
|
|
5913
5951
|
] });
|
|
5914
|
-
},
|
|
5952
|
+
}, Mr = (e) => {
|
|
5915
5953
|
const r = {
|
|
5916
5954
|
"top-right": "top-4 right-4",
|
|
5917
5955
|
"top-left": "top-4 left-4",
|
|
@@ -5919,7 +5957,7 @@ const Ar = ({
|
|
|
5919
5957
|
"bottom-left": "bottom-4 left-4"
|
|
5920
5958
|
};
|
|
5921
5959
|
return r[e] || r["top-right"];
|
|
5922
|
-
}, Br = "2.3.
|
|
5960
|
+
}, Br = "2.3.1";
|
|
5923
5961
|
if (typeof window < "u") {
|
|
5924
5962
|
const e = () => {
|
|
5925
5963
|
getComputedStyle(document.documentElement).getPropertyValue("--color-primary").trim() || console.warn(
|
|
@@ -5934,32 +5972,32 @@ Without it all components lose colors, backgrounds, and animations.`
|
|
|
5934
5972
|
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", e, { once: !0 }) : e();
|
|
5935
5973
|
}
|
|
5936
5974
|
export {
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5975
|
+
yr as Badge,
|
|
5976
|
+
Ee as Button,
|
|
5977
|
+
xr as Card,
|
|
5978
|
+
Pr as Carousel,
|
|
5979
|
+
Ar as Checkbox,
|
|
5980
|
+
cr as CircularProgress,
|
|
5943
5981
|
Wr as CyberNotificationProvider,
|
|
5944
|
-
|
|
5945
|
-
|
|
5982
|
+
Rr as Divider,
|
|
5983
|
+
Er as GradientText,
|
|
5946
5984
|
je as Image,
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5985
|
+
hr as Input,
|
|
5986
|
+
gr as LinearProgress,
|
|
5987
|
+
Sr as Modal,
|
|
5988
|
+
nt as Notification,
|
|
5951
5989
|
ae as RESPONSIVE_SIZE_MAPS,
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
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,
|
|
5963
6001
|
Gr as useAnimatedProgress,
|
|
5964
6002
|
Dr as useCyberNotifications,
|
|
5965
6003
|
Or as useCyberScrollbar,
|