cyberui-2045 2.1.1 → 2.2.0
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/bin/usage-content.js +206 -120
- package/dist/components/Carousel.d.ts +3 -3
- package/dist/components/CircularProgress.d.ts +20 -7
- package/dist/components/Image.d.ts +5 -1
- package/dist/components/LinearProgress.d.ts +9 -5
- package/dist/components/Modal.d.ts +3 -1
- package/dist/components/SegmentedProgress.d.ts +13 -5
- package/dist/components/Select.d.ts +5 -0
- package/dist/components/Steps.d.ts +2 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/cyberui-2045.css +1 -1
- package/dist/hooks/useAnimatedProgress.d.ts +1 -2
- package/dist/index.d.ts +13 -3
- package/dist/index.es.js +1101 -1059
- package/dist/index.js +21 -16
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Ee, { useCallback as D, useState as
|
|
1
|
+
import Ee, { useCallback as D, useState as Z, useEffect as oe, useRef as te, useId as Fe, memo as $e, useMemo as pe, createContext as lt, useContext as it } from "react";
|
|
2
2
|
import { createPortal as Be } from "react-dom";
|
|
3
3
|
var ve = { exports: {} }, he = {};
|
|
4
4
|
/**
|
|
@@ -15,19 +15,19 @@ function ct() {
|
|
|
15
15
|
if (Ae) return he;
|
|
16
16
|
Ae = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
18
|
-
function a(s, n,
|
|
18
|
+
function a(s, n, d) {
|
|
19
19
|
var l = null;
|
|
20
|
-
if (
|
|
21
|
-
|
|
20
|
+
if (d !== void 0 && (l = "" + d), n.key !== void 0 && (l = "" + n.key), "key" in n) {
|
|
21
|
+
d = {};
|
|
22
22
|
for (var i in n)
|
|
23
|
-
i !== "key" && (
|
|
24
|
-
} else
|
|
25
|
-
return n =
|
|
23
|
+
i !== "key" && (d[i] = n[i]);
|
|
24
|
+
} else d = n;
|
|
25
|
+
return n = d.ref, {
|
|
26
26
|
$$typeof: e,
|
|
27
27
|
type: s,
|
|
28
28
|
key: l,
|
|
29
29
|
ref: n !== void 0 ? n : null,
|
|
30
|
-
props:
|
|
30
|
+
props: d
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
return he.Fragment = r, he.jsx = a, he.jsxs = a, he;
|
|
@@ -48,38 +48,38 @@ function dt() {
|
|
|
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 === B ? null : o.displayName || o.name || null;
|
|
52
52
|
if (typeof o == "string") return o;
|
|
53
53
|
switch (o) {
|
|
54
|
-
case
|
|
54
|
+
case x:
|
|
55
55
|
return "Fragment";
|
|
56
56
|
case A:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case v:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case C:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case L:
|
|
63
|
-
return "SuspenseList";
|
|
64
62
|
case z:
|
|
63
|
+
return "SuspenseList";
|
|
64
|
+
case M:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
67
|
if (typeof o == "object")
|
|
68
68
|
switch (typeof o.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
70
|
), o.$$typeof) {
|
|
71
|
-
case
|
|
71
|
+
case w:
|
|
72
72
|
return "Portal";
|
|
73
73
|
case _:
|
|
74
74
|
return (o.displayName || "Context") + ".Provider";
|
|
75
|
-
case
|
|
75
|
+
case N:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
77
|
case $:
|
|
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:
|
|
81
81
|
return u = o.displayName || null, u !== null ? u : e(o.type) || "Memo";
|
|
82
|
-
case
|
|
82
|
+
case f:
|
|
83
83
|
u = o._payload, o = o._init;
|
|
84
84
|
try {
|
|
85
85
|
return e(o(u));
|
|
@@ -100,8 +100,8 @@ function dt() {
|
|
|
100
100
|
}
|
|
101
101
|
if (u) {
|
|
102
102
|
u = console;
|
|
103
|
-
var
|
|
104
|
-
return
|
|
103
|
+
var b = u.error, R = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
|
+
return b.call(
|
|
105
105
|
u,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
107
|
R
|
|
@@ -109,8 +109,8 @@ function dt() {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function s(o) {
|
|
112
|
-
if (o ===
|
|
113
|
-
if (typeof o == "object" && o !== null && o.$$typeof ===
|
|
112
|
+
if (o === x) return "<>";
|
|
113
|
+
if (typeof o == "object" && o !== null && o.$$typeof === f)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
116
|
var u = e(o);
|
|
@@ -120,10 +120,10 @@ function dt() {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function n() {
|
|
123
|
-
var o =
|
|
123
|
+
var o = X.A;
|
|
124
124
|
return o === null ? null : o.getOwner();
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function d() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
129
|
function l(o) {
|
|
@@ -134,33 +134,33 @@ function dt() {
|
|
|
134
134
|
return o.key !== void 0;
|
|
135
135
|
}
|
|
136
136
|
function i(o, u) {
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function b() {
|
|
138
|
+
V || (V = !0, console.error(
|
|
139
139
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
140
140
|
u
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
get:
|
|
143
|
+
b.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
144
|
+
get: b,
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function c() {
|
|
149
149
|
var o = e(this.type);
|
|
150
150
|
return H[o] || (H[o] = !0, console.error(
|
|
151
151
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
152
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
156
|
-
$$typeof:
|
|
154
|
+
function g(o, u, b, R, S, E, I, W) {
|
|
155
|
+
return b = E.ref, o = {
|
|
156
|
+
$$typeof: h,
|
|
157
157
|
type: o,
|
|
158
158
|
key: u,
|
|
159
159
|
props: E,
|
|
160
160
|
_owner: S
|
|
161
|
-
}, (
|
|
161
|
+
}, (b !== void 0 ? b : null) !== null ? Object.defineProperty(o, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
|
-
get:
|
|
163
|
+
get: c
|
|
164
164
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
@@ -175,7 +175,7 @@ function dt() {
|
|
|
175
175
|
configurable: !1,
|
|
176
176
|
enumerable: !1,
|
|
177
177
|
writable: !0,
|
|
178
|
-
value:
|
|
178
|
+
value: I
|
|
179
179
|
}), Object.defineProperty(o, "_debugTask", {
|
|
180
180
|
configurable: !1,
|
|
181
181
|
enumerable: !1,
|
|
@@ -183,25 +183,25 @@ function dt() {
|
|
|
183
183
|
value: W
|
|
184
184
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
var
|
|
188
|
-
if (
|
|
186
|
+
function m(o, u, b, R, S, E, I, W) {
|
|
187
|
+
var O = u.children;
|
|
188
|
+
if (O !== void 0)
|
|
189
189
|
if (R)
|
|
190
|
-
if (re(
|
|
191
|
-
for (R = 0; R <
|
|
192
|
-
|
|
193
|
-
Object.freeze && Object.freeze(
|
|
190
|
+
if (re(O)) {
|
|
191
|
+
for (R = 0; R < O.length; R++)
|
|
192
|
+
y(O[R]);
|
|
193
|
+
Object.freeze && Object.freeze(O);
|
|
194
194
|
} else
|
|
195
195
|
console.error(
|
|
196
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
197
|
);
|
|
198
|
-
else
|
|
198
|
+
else y(O);
|
|
199
199
|
if (Q.call(u, "key")) {
|
|
200
|
-
|
|
201
|
-
var
|
|
200
|
+
O = e(o);
|
|
201
|
+
var L = Object.keys(u).filter(function(se) {
|
|
202
202
|
return se !== "key";
|
|
203
203
|
});
|
|
204
|
-
R = 0 <
|
|
204
|
+
R = 0 < L.length ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}", K[O + R] || (L = 0 < L.length ? "{" + L.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
206
206
|
let props = %s;
|
|
207
207
|
<%s {...props} />
|
|
@@ -209,67 +209,67 @@ React keys must be passed directly to JSX without using spread:
|
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s key={someKey} {...props} />`,
|
|
211
211
|
R,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
), K[
|
|
212
|
+
O,
|
|
213
|
+
L,
|
|
214
|
+
O
|
|
215
|
+
), K[O + R] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (
|
|
218
|
-
|
|
217
|
+
if (O = null, b !== void 0 && (a(b), O = "" + b), l(u) && (a(u.key), O = "" + u.key), "key" in u) {
|
|
218
|
+
b = {};
|
|
219
219
|
for (var F in u)
|
|
220
|
-
F !== "key" && (
|
|
221
|
-
} else
|
|
222
|
-
return
|
|
223
|
-
|
|
220
|
+
F !== "key" && (b[F] = u[F]);
|
|
221
|
+
} else b = u;
|
|
222
|
+
return O && i(
|
|
223
|
+
b,
|
|
224
224
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
225
|
-
),
|
|
225
|
+
), g(
|
|
226
226
|
o,
|
|
227
|
-
|
|
227
|
+
O,
|
|
228
228
|
E,
|
|
229
229
|
S,
|
|
230
230
|
n(),
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
b,
|
|
232
|
+
I,
|
|
233
233
|
W
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
typeof o == "object" && o !== null && o.$$typeof ===
|
|
236
|
+
function y(o) {
|
|
237
|
+
typeof o == "object" && o !== null && o.$$typeof === h && o._store && (o._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var
|
|
239
|
+
var p = Ee, h = 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"), $ = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), z = Symbol.for("react.suspense_list"), G = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), B = 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 = {
|
|
243
243
|
react_stack_bottom_frame: function(o) {
|
|
244
244
|
return o();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
)(), Y = ee(s(
|
|
251
|
-
ge.Fragment =
|
|
252
|
-
var E = 1e4 >
|
|
253
|
-
return
|
|
247
|
+
var V, H = {}, q = p.react_stack_bottom_frame.bind(
|
|
248
|
+
p,
|
|
249
|
+
d
|
|
250
|
+
)(), Y = ee(s(d)), K = {};
|
|
251
|
+
ge.Fragment = x, ge.jsx = function(o, u, b, R, S) {
|
|
252
|
+
var E = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
253
|
+
return m(
|
|
254
254
|
o,
|
|
255
255
|
u,
|
|
256
|
-
|
|
256
|
+
b,
|
|
257
257
|
!1,
|
|
258
258
|
R,
|
|
259
259
|
S,
|
|
260
|
-
E ? Error("react-stack-top-frame") :
|
|
260
|
+
E ? Error("react-stack-top-frame") : q,
|
|
261
261
|
E ? ee(s(o)) : Y
|
|
262
262
|
);
|
|
263
|
-
}, ge.jsxs = function(o, u,
|
|
264
|
-
var E = 1e4 >
|
|
265
|
-
return
|
|
263
|
+
}, ge.jsxs = function(o, u, b, R, S) {
|
|
264
|
+
var E = 1e4 > X.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return m(
|
|
266
266
|
o,
|
|
267
267
|
u,
|
|
268
|
-
|
|
268
|
+
b,
|
|
269
269
|
!0,
|
|
270
270
|
R,
|
|
271
271
|
S,
|
|
272
|
-
E ? Error("react-stack-top-frame") :
|
|
272
|
+
E ? Error("react-stack-top-frame") : q,
|
|
273
273
|
E ? ee(s(o)) : Y
|
|
274
274
|
);
|
|
275
275
|
};
|
|
@@ -280,7 +280,7 @@ function ut() {
|
|
|
280
280
|
return Le || (Le = 1, process.env.NODE_ENV === "production" ? ve.exports = ct() : ve.exports = dt()), ve.exports;
|
|
281
281
|
}
|
|
282
282
|
var t = ut();
|
|
283
|
-
const Te = (e) => typeof e == "object" && e !== null,
|
|
283
|
+
const Te = (e) => typeof e == "object" && e !== null, U = (e, r) => {
|
|
284
284
|
if (!Te(e))
|
|
285
285
|
return r[e] || "";
|
|
286
286
|
const a = [];
|
|
@@ -305,7 +305,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
305
305
|
a.push(...s);
|
|
306
306
|
}
|
|
307
307
|
return a.join(" ");
|
|
308
|
-
},
|
|
308
|
+
}, gr = (...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",
|
|
@@ -370,120 +370,120 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
370
370
|
return e ?? a;
|
|
371
371
|
let s = e.base ?? a;
|
|
372
372
|
const n = ["sm", "md", "lg", "xl", "2xl"];
|
|
373
|
-
for (const
|
|
374
|
-
const l = mt[
|
|
375
|
-
r >= l && e[
|
|
373
|
+
for (const d of n) {
|
|
374
|
+
const l = mt[d];
|
|
375
|
+
r >= l && e[d] !== void 0 && (s = e[d]);
|
|
376
376
|
}
|
|
377
377
|
return s;
|
|
378
378
|
}, Ve = (e, r) => {
|
|
379
379
|
const a = D(
|
|
380
380
|
() => typeof window > "u" ? r : ft(e, window.innerWidth, r),
|
|
381
381
|
[r, e]
|
|
382
|
-
), [s, n] =
|
|
383
|
-
return
|
|
382
|
+
), [s, n] = Z(a);
|
|
383
|
+
return oe(() => {
|
|
384
384
|
if (!Te(e)) {
|
|
385
385
|
n(e ?? r);
|
|
386
386
|
return;
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
return
|
|
388
|
+
const d = () => n(a());
|
|
389
|
+
return d(), window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
|
|
390
390
|
}, [r, a, e]), s;
|
|
391
|
-
},
|
|
391
|
+
}, pt = ({
|
|
392
392
|
tabs: e,
|
|
393
393
|
activeTab: r,
|
|
394
394
|
onTabChange: a,
|
|
395
395
|
sizeClasses: s,
|
|
396
396
|
containerClassName: n = "",
|
|
397
|
-
anchorClassName:
|
|
397
|
+
anchorClassName: d = "",
|
|
398
398
|
menuClassName: l = "",
|
|
399
399
|
menuItemClassName: i = "",
|
|
400
|
-
dropdownLabel:
|
|
401
|
-
anchorIcon:
|
|
402
|
-
showAnchorLabel:
|
|
403
|
-
anchorAriaLabel:
|
|
404
|
-
closeOnSelect:
|
|
400
|
+
dropdownLabel: c,
|
|
401
|
+
anchorIcon: g,
|
|
402
|
+
showAnchorLabel: m = !0,
|
|
403
|
+
anchorAriaLabel: y,
|
|
404
|
+
closeOnSelect: p = !0
|
|
405
405
|
}) => {
|
|
406
|
-
const [
|
|
407
|
-
|
|
408
|
-
if (!
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
|
|
406
|
+
const [h, w] = Z(!1), [x, v] = Z(!1), [A, N] = Z(!1), [_, $] = Z(!1), C = te(null), z = te(null);
|
|
407
|
+
oe(() => {
|
|
408
|
+
if (!h) return;
|
|
409
|
+
const f = (M) => {
|
|
410
|
+
C.current && !C.current.contains(M.target) && (N(!0), setTimeout(() => {
|
|
411
|
+
w(!1), N(!1);
|
|
412
412
|
}, 180));
|
|
413
413
|
};
|
|
414
|
-
return document.addEventListener("mousedown",
|
|
415
|
-
}, [
|
|
416
|
-
if (!p) return;
|
|
417
|
-
const h = L.current;
|
|
414
|
+
return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
|
|
415
|
+
}, [h]), oe(() => {
|
|
418
416
|
if (!h) return;
|
|
419
|
-
const
|
|
420
|
-
|
|
421
|
-
|
|
417
|
+
const f = z.current;
|
|
418
|
+
if (!f) return;
|
|
419
|
+
const M = f.getBoundingClientRect();
|
|
420
|
+
$(M.right > window.innerWidth);
|
|
421
|
+
}, [h]);
|
|
422
422
|
const G = () => {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
}, 180)) : (
|
|
423
|
+
h ? (N(!0), setTimeout(() => {
|
|
424
|
+
w(!1), N(!1);
|
|
425
|
+
}, 180)) : (v(!0), w(!0), setTimeout(() => v(!1), 30));
|
|
426
426
|
};
|
|
427
|
-
return /* @__PURE__ */ t.jsx("div", { className: `${n}`, children: /* @__PURE__ */ t.jsxs("div", { ref:
|
|
427
|
+
return /* @__PURE__ */ t.jsx("div", { className: `${n}`, children: /* @__PURE__ */ t.jsxs("div", { ref: C, className: "relative inline-block", children: [
|
|
428
428
|
/* @__PURE__ */ t.jsxs(
|
|
429
429
|
"button",
|
|
430
430
|
{
|
|
431
431
|
onClick: G,
|
|
432
|
-
className: `inline-flex items-center gap-2 ${s} bg-surface text-default border-2 border-border-default rounded-lg transition-all duration-300 hover:text-secondary hover:border-secondary hover:cursor-pointer shadow-secondary/30 ${
|
|
432
|
+
className: `inline-flex items-center gap-2 ${s} bg-surface text-default border-2 border-border-default rounded-lg transition-all duration-300 hover:text-secondary hover:border-secondary hover:cursor-pointer shadow-secondary/30 ${d}`,
|
|
433
433
|
"aria-haspopup": "menu",
|
|
434
|
-
"aria-expanded":
|
|
435
|
-
"aria-label":
|
|
434
|
+
"aria-expanded": h,
|
|
435
|
+
"aria-label": m ? void 0 : y ?? (typeof c == "string" ? c : "Open tabs"),
|
|
436
436
|
children: [
|
|
437
|
-
|
|
437
|
+
g ?? /* @__PURE__ */ t.jsxs("svg", { className: "w-5 h-5", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: [
|
|
438
438
|
/* @__PURE__ */ t.jsx("rect", { x: "3", y: "5", width: "14", height: "2", rx: "1" }),
|
|
439
439
|
/* @__PURE__ */ t.jsx("rect", { x: "3", y: "9", width: "14", height: "2", rx: "1" }),
|
|
440
440
|
/* @__PURE__ */ t.jsx("rect", { x: "3", y: "13", width: "14", height: "2", rx: "1" })
|
|
441
441
|
] }),
|
|
442
|
-
|
|
442
|
+
m && /* @__PURE__ */ t.jsx("span", { children: c ?? r })
|
|
443
443
|
]
|
|
444
444
|
}
|
|
445
445
|
),
|
|
446
|
-
(
|
|
446
|
+
(h || A) && /* @__PURE__ */ t.jsx(
|
|
447
447
|
"div",
|
|
448
448
|
{
|
|
449
|
-
ref:
|
|
450
|
-
"aria-hidden": !
|
|
449
|
+
ref: z,
|
|
450
|
+
"aria-hidden": !h,
|
|
451
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
|
-
transition-transform transition-opacity duration-200 ease-[cubic-bezier(.2,0,0,1)] transform-gpu origin-top will-change-transform will-change-opacity ${
|
|
453
|
-
children: /* @__PURE__ */ t.jsx("div", { className: "py-1", children: e.map((
|
|
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
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "py-1", children: e.map((f) => /* @__PURE__ */ t.jsx(
|
|
454
454
|
"button",
|
|
455
455
|
{
|
|
456
456
|
onClick: () => {
|
|
457
|
-
a(
|
|
458
|
-
|
|
457
|
+
a(f), p && (N(!0), setTimeout(() => {
|
|
458
|
+
w(!1), N(!1);
|
|
459
459
|
}, 180));
|
|
460
460
|
},
|
|
461
|
-
className: `w-full flex items-center justify-between text-left px-4 py-2 font-bold transition-colors duration-200 outline-none hover:cursor-pointer ${r ===
|
|
462
|
-
children: /* @__PURE__ */ t.jsx("span", { children:
|
|
461
|
+
className: `w-full flex items-center justify-between text-left px-4 py-2 font-bold transition-colors duration-200 outline-none hover:cursor-pointer ${r === f ? "text-secondary relative pl-4 before:content-[''] before:h-full before:absolute before:left-0 before:top-1/2 before:-translate-y-1/2 before:h-4 before:w-[3px] before:rounded before:bg-accent before:shadow-lg-accent" : "text-default hover:text-secondary hover:bg-base/70"} ${i}`,
|
|
462
|
+
children: /* @__PURE__ */ t.jsx("span", { children: f })
|
|
463
463
|
},
|
|
464
|
-
|
|
464
|
+
f
|
|
465
465
|
)) })
|
|
466
466
|
}
|
|
467
467
|
)
|
|
468
468
|
] }) });
|
|
469
|
-
},
|
|
469
|
+
}, xr = ({
|
|
470
470
|
tabs: e,
|
|
471
471
|
activeTab: r,
|
|
472
472
|
onTabChange: a,
|
|
473
473
|
size: s = "md",
|
|
474
474
|
mode: n = "scroll",
|
|
475
|
-
containerClassName:
|
|
475
|
+
containerClassName: d = "",
|
|
476
476
|
tabsClassName: l = "",
|
|
477
477
|
dropdownLabel: i,
|
|
478
|
-
anchorIcon:
|
|
479
|
-
showAnchorLabel:
|
|
480
|
-
anchorAriaLabel:
|
|
481
|
-
closeOnSelect:
|
|
482
|
-
anchorClassName:
|
|
483
|
-
menuClassName:
|
|
484
|
-
menuItemClassName:
|
|
478
|
+
anchorIcon: c,
|
|
479
|
+
showAnchorLabel: g = !0,
|
|
480
|
+
anchorAriaLabel: m,
|
|
481
|
+
closeOnSelect: y = !0,
|
|
482
|
+
anchorClassName: p = "",
|
|
483
|
+
menuClassName: h = "",
|
|
484
|
+
menuItemClassName: w = ""
|
|
485
485
|
}) => {
|
|
486
|
-
const
|
|
486
|
+
const v = (($) => U($, ae.tabNavigation))(s), A = Ve(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";
|
|
@@ -501,7 +501,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
501
501
|
{
|
|
502
502
|
onClick: () => a($),
|
|
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
507
|
${r === $ ? "text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100" : "text-muted hover:text-secondary hover:before:opacity-70"}
|
|
@@ -515,24 +515,24 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
515
515
|
$
|
|
516
516
|
)) });
|
|
517
517
|
return A === "dropdown" ? /* @__PURE__ */ t.jsx(
|
|
518
|
-
|
|
518
|
+
pt,
|
|
519
519
|
{
|
|
520
520
|
tabs: e,
|
|
521
521
|
activeTab: r,
|
|
522
522
|
onTabChange: a,
|
|
523
|
-
sizeClasses:
|
|
524
|
-
containerClassName:
|
|
525
|
-
anchorClassName:
|
|
526
|
-
menuClassName:
|
|
527
|
-
menuItemClassName:
|
|
523
|
+
sizeClasses: v,
|
|
524
|
+
containerClassName: d,
|
|
525
|
+
anchorClassName: p,
|
|
526
|
+
menuClassName: h,
|
|
527
|
+
menuItemClassName: w,
|
|
528
528
|
dropdownLabel: i,
|
|
529
|
-
anchorIcon:
|
|
530
|
-
showAnchorLabel:
|
|
531
|
-
anchorAriaLabel:
|
|
532
|
-
closeOnSelect:
|
|
529
|
+
anchorIcon: c,
|
|
530
|
+
showAnchorLabel: g,
|
|
531
|
+
anchorAriaLabel: m,
|
|
532
|
+
closeOnSelect: y
|
|
533
533
|
}
|
|
534
|
-
) : A === "scroll" ? /* @__PURE__ */ t.jsx("div", { className: `${
|
|
535
|
-
},
|
|
534
|
+
) : A === "scroll" ? /* @__PURE__ */ t.jsx("div", { className: `${N()} ${d}`, 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()} ${d}`, role: "tablist", "aria-label": "Tabs", children: _ });
|
|
535
|
+
}, bt = (e, r) => {
|
|
536
536
|
const a = new Array(e.length + r.length);
|
|
537
537
|
for (let s = 0; s < e.length; s++)
|
|
538
538
|
a[s] = e[s];
|
|
@@ -555,13 +555,13 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
555
555
|
getClassGroupId: (l) => {
|
|
556
556
|
if (l.startsWith("[") && l.endsWith("]"))
|
|
557
557
|
return yt(l);
|
|
558
|
-
const i = l.split(Ne),
|
|
559
|
-
return He(i,
|
|
558
|
+
const i = l.split(Ne), c = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
559
|
+
return He(i, c, r);
|
|
560
560
|
},
|
|
561
561
|
getConflictingClassGroupIds: (l, i) => {
|
|
562
562
|
if (i) {
|
|
563
|
-
const
|
|
564
|
-
return
|
|
563
|
+
const c = s[l], g = a[l];
|
|
564
|
+
return c ? g ? bt(g, c) : c : g || ze;
|
|
565
565
|
}
|
|
566
566
|
return a[l] || ze;
|
|
567
567
|
}
|
|
@@ -569,19 +569,19 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
569
569
|
}, He = (e, r, a) => {
|
|
570
570
|
if (e.length - r === 0)
|
|
571
571
|
return a.classGroupId;
|
|
572
|
-
const n = e[r],
|
|
573
|
-
if (
|
|
574
|
-
const
|
|
575
|
-
if (
|
|
572
|
+
const n = e[r], d = a.nextPart.get(n);
|
|
573
|
+
if (d) {
|
|
574
|
+
const g = He(e, r + 1, d);
|
|
575
|
+
if (g) return g;
|
|
576
576
|
}
|
|
577
577
|
const l = a.validators;
|
|
578
578
|
if (l === null)
|
|
579
579
|
return;
|
|
580
|
-
const i = r === 0 ? e.join(Ne) : e.slice(r).join(Ne),
|
|
581
|
-
for (let
|
|
582
|
-
const
|
|
583
|
-
if (
|
|
584
|
-
return
|
|
580
|
+
const i = r === 0 ? e.join(Ne) : e.slice(r).join(Ne), c = l.length;
|
|
581
|
+
for (let g = 0; g < c; g++) {
|
|
582
|
+
const m = l[g];
|
|
583
|
+
if (m.validator(i))
|
|
584
|
+
return m.classGroupId;
|
|
585
585
|
}
|
|
586
586
|
}, yt = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
587
587
|
const r = e.slice(1, -1), a = r.indexOf(":"), s = r.slice(0, a);
|
|
@@ -601,8 +601,8 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
601
601
|
return a;
|
|
602
602
|
}, _e = (e, r, a, s) => {
|
|
603
603
|
const n = e.length;
|
|
604
|
-
for (let
|
|
605
|
-
const l = e[
|
|
604
|
+
for (let d = 0; d < n; d++) {
|
|
605
|
+
const l = e[d];
|
|
606
606
|
kt(l, r, a, s);
|
|
607
607
|
}
|
|
608
608
|
}, kt = (e, r, a, s) => {
|
|
@@ -625,16 +625,16 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
625
625
|
}
|
|
626
626
|
r.validators === null && (r.validators = []), r.validators.push(ht(a, e));
|
|
627
627
|
}, Ct = (e, r, a, s) => {
|
|
628
|
-
const n = Object.entries(e),
|
|
629
|
-
for (let l = 0; l <
|
|
630
|
-
const [i,
|
|
631
|
-
_e(
|
|
628
|
+
const n = Object.entries(e), d = n.length;
|
|
629
|
+
for (let l = 0; l < d; l++) {
|
|
630
|
+
const [i, c] = n[l];
|
|
631
|
+
_e(c, Ye(r, i), a, s);
|
|
632
632
|
}
|
|
633
633
|
}, Ye = (e, r) => {
|
|
634
634
|
let a = e;
|
|
635
635
|
const s = r.split(Ne), n = s.length;
|
|
636
|
-
for (let
|
|
637
|
-
const l = s[
|
|
636
|
+
for (let d = 0; d < n; d++) {
|
|
637
|
+
const l = s[d];
|
|
638
638
|
let i = a.nextPart.get(l);
|
|
639
639
|
i || (i = Ue(), a.nextPart.set(l, i)), a = i;
|
|
640
640
|
}
|
|
@@ -648,22 +648,22 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
650
|
let r = 0, a = /* @__PURE__ */ Object.create(null), s = /* @__PURE__ */ Object.create(null);
|
|
651
|
-
const n = (
|
|
652
|
-
a[
|
|
651
|
+
const n = (d, l) => {
|
|
652
|
+
a[d] = l, r++, r > e && (r = 0, s = a, a = /* @__PURE__ */ Object.create(null));
|
|
653
653
|
};
|
|
654
654
|
return {
|
|
655
|
-
get(
|
|
656
|
-
let l = a[
|
|
655
|
+
get(d) {
|
|
656
|
+
let l = a[d];
|
|
657
657
|
if (l !== void 0)
|
|
658
658
|
return l;
|
|
659
|
-
if ((l = s[
|
|
660
|
-
return n(
|
|
659
|
+
if ((l = s[d]) !== void 0)
|
|
660
|
+
return n(d, l), l;
|
|
661
661
|
},
|
|
662
|
-
set(
|
|
663
|
-
|
|
662
|
+
set(d, l) {
|
|
663
|
+
d in a ? a[d] = l : n(d, l);
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
|
-
}, Se = "!", Pe = ":", $t = [],
|
|
666
|
+
}, Se = "!", Pe = ":", $t = [], Ie = (e, r, a, s, n) => ({
|
|
667
667
|
modifiers: e,
|
|
668
668
|
hasImportantModifier: r,
|
|
669
669
|
baseClassName: a,
|
|
@@ -675,43 +675,43 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
675
675
|
experimentalParseClassName: a
|
|
676
676
|
} = e;
|
|
677
677
|
let s = (n) => {
|
|
678
|
-
const
|
|
679
|
-
let l = 0, i = 0,
|
|
680
|
-
const
|
|
681
|
-
for (let
|
|
682
|
-
const
|
|
678
|
+
const d = [];
|
|
679
|
+
let l = 0, i = 0, c = 0, g;
|
|
680
|
+
const m = n.length;
|
|
681
|
+
for (let x = 0; x < m; x++) {
|
|
682
|
+
const v = n[x];
|
|
683
683
|
if (l === 0 && i === 0) {
|
|
684
|
-
if (
|
|
685
|
-
|
|
684
|
+
if (v === Pe) {
|
|
685
|
+
d.push(n.slice(c, x)), c = x + 1;
|
|
686
686
|
continue;
|
|
687
687
|
}
|
|
688
|
-
if (
|
|
689
|
-
|
|
688
|
+
if (v === "/") {
|
|
689
|
+
g = x;
|
|
690
690
|
continue;
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
|
|
693
|
+
v === "[" ? l++ : v === "]" ? l-- : v === "(" ? i++ : v === ")" && i--;
|
|
694
694
|
}
|
|
695
|
-
const
|
|
696
|
-
let
|
|
697
|
-
|
|
695
|
+
const y = d.length === 0 ? n : n.slice(c);
|
|
696
|
+
let p = y, h = !1;
|
|
697
|
+
y.endsWith(Se) ? (p = y.slice(0, -1), h = !0) : (
|
|
698
698
|
/**
|
|
699
699
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
700
700
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
701
701
|
*/
|
|
702
|
-
|
|
702
|
+
y.startsWith(Se) && (p = y.slice(1), h = !0)
|
|
703
703
|
);
|
|
704
|
-
const
|
|
705
|
-
return
|
|
704
|
+
const w = g && g > c ? g - c : void 0;
|
|
705
|
+
return Ie(d, h, p, w);
|
|
706
706
|
};
|
|
707
707
|
if (r) {
|
|
708
|
-
const n = r + Pe,
|
|
709
|
-
s = (l) => l.startsWith(n) ?
|
|
708
|
+
const n = r + Pe, d = s;
|
|
709
|
+
s = (l) => l.startsWith(n) ? d(l.slice(n.length)) : Ie($t, !1, l, void 0, !0);
|
|
710
710
|
}
|
|
711
711
|
if (a) {
|
|
712
712
|
const n = s;
|
|
713
|
-
s = (
|
|
714
|
-
className:
|
|
713
|
+
s = (d) => a({
|
|
714
|
+
className: d,
|
|
715
715
|
parseClassName: n
|
|
716
716
|
});
|
|
717
717
|
}
|
|
@@ -723,9 +723,9 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
723
723
|
}), (a) => {
|
|
724
724
|
const s = [];
|
|
725
725
|
let n = [];
|
|
726
|
-
for (let
|
|
727
|
-
const l = a[
|
|
728
|
-
i ||
|
|
726
|
+
for (let d = 0; d < a.length; d++) {
|
|
727
|
+
const l = a[d], i = l[0] === "[", c = r.has(l);
|
|
728
|
+
i || c ? (n.length > 0 && (n.sort(), s.push(...n), n = []), s.push(l)) : n.push(l);
|
|
729
729
|
}
|
|
730
730
|
return n.length > 0 && (n.sort(), s.push(...n)), s;
|
|
731
731
|
};
|
|
@@ -739,45 +739,45 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
739
739
|
parseClassName: a,
|
|
740
740
|
getClassGroupId: s,
|
|
741
741
|
getConflictingClassGroupIds: n,
|
|
742
|
-
sortModifiers:
|
|
742
|
+
sortModifiers: d
|
|
743
743
|
} = r, l = [], i = e.trim().split(At);
|
|
744
|
-
let
|
|
745
|
-
for (let
|
|
746
|
-
const
|
|
747
|
-
isExternal:
|
|
748
|
-
modifiers:
|
|
749
|
-
hasImportantModifier:
|
|
750
|
-
baseClassName:
|
|
751
|
-
maybePostfixModifierPosition:
|
|
752
|
-
} = a(
|
|
753
|
-
if (
|
|
754
|
-
|
|
744
|
+
let c = "";
|
|
745
|
+
for (let g = i.length - 1; g >= 0; g -= 1) {
|
|
746
|
+
const m = i[g], {
|
|
747
|
+
isExternal: y,
|
|
748
|
+
modifiers: p,
|
|
749
|
+
hasImportantModifier: h,
|
|
750
|
+
baseClassName: w,
|
|
751
|
+
maybePostfixModifierPosition: x
|
|
752
|
+
} = a(m);
|
|
753
|
+
if (y) {
|
|
754
|
+
c = m + (c.length > 0 ? " " + c : c);
|
|
755
755
|
continue;
|
|
756
756
|
}
|
|
757
|
-
let
|
|
757
|
+
let v = !!x, A = s(v ? w.substring(0, x) : w);
|
|
758
758
|
if (!A) {
|
|
759
|
-
if (!
|
|
760
|
-
|
|
759
|
+
if (!v) {
|
|
760
|
+
c = m + (c.length > 0 ? " " + c : c);
|
|
761
761
|
continue;
|
|
762
762
|
}
|
|
763
|
-
if (A = s(
|
|
764
|
-
|
|
763
|
+
if (A = s(w), !A) {
|
|
764
|
+
c = m + (c.length > 0 ? " " + c : c);
|
|
765
765
|
continue;
|
|
766
766
|
}
|
|
767
|
-
|
|
767
|
+
v = !1;
|
|
768
768
|
}
|
|
769
|
-
const
|
|
769
|
+
const N = p.length === 0 ? "" : p.length === 1 ? p[0] : d(p).join(":"), _ = h ? N + Se : N, $ = _ + A;
|
|
770
770
|
if (l.indexOf($) > -1)
|
|
771
771
|
continue;
|
|
772
772
|
l.push($);
|
|
773
|
-
const
|
|
774
|
-
for (let
|
|
775
|
-
const G =
|
|
773
|
+
const C = n(A, v);
|
|
774
|
+
for (let z = 0; z < C.length; ++z) {
|
|
775
|
+
const G = C[z];
|
|
776
776
|
l.push(_ + G);
|
|
777
777
|
}
|
|
778
|
-
|
|
778
|
+
c = m + (c.length > 0 ? " " + c : c);
|
|
779
779
|
}
|
|
780
|
-
return
|
|
780
|
+
return c;
|
|
781
781
|
}, Lt = (...e) => {
|
|
782
782
|
let r = 0, a, s, n = "";
|
|
783
783
|
for (; r < e.length; )
|
|
@@ -791,34 +791,34 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
791
791
|
e[s] && (r = Ze(e[s])) && (a && (a += " "), a += r);
|
|
792
792
|
return a;
|
|
793
793
|
}, zt = (e, ...r) => {
|
|
794
|
-
let a, s, n,
|
|
795
|
-
const l = (
|
|
796
|
-
const
|
|
797
|
-
return a = Rt(
|
|
798
|
-
}, i = (
|
|
799
|
-
const
|
|
800
|
-
if (
|
|
801
|
-
return
|
|
802
|
-
const
|
|
803
|
-
return n(
|
|
794
|
+
let a, s, n, d;
|
|
795
|
+
const l = (c) => {
|
|
796
|
+
const g = r.reduce((m, y) => y(m), e());
|
|
797
|
+
return a = Rt(g), s = a.cache.get, n = a.cache.set, d = i, i(c);
|
|
798
|
+
}, i = (c) => {
|
|
799
|
+
const g = s(c);
|
|
800
|
+
if (g)
|
|
801
|
+
return g;
|
|
802
|
+
const m = Mt(c, a);
|
|
803
|
+
return n(c, m), m;
|
|
804
804
|
};
|
|
805
|
-
return
|
|
805
|
+
return d = l, (...c) => d(Lt(...c));
|
|
806
806
|
}, Pt = [], J = (e) => {
|
|
807
807
|
const r = (a) => a[e] || Pt;
|
|
808
808
|
return r.isThemeGetter = !0, r;
|
|
809
|
-
}, Xe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qe = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
809
|
+
}, Xe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, It = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ot = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Dt = /\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$/, Gt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Wt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ft = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ie = (e) => It.test(e), P = (e) => !!e && !Number.isNaN(Number(e)), ce = (e) => !!e && Number.isInteger(Number(e)), Ce = (e) => e.endsWith("%") && P(e.slice(0, -1)), le = (e) => Ot.test(e), Ke = () => !0, Bt = (e) => (
|
|
810
810
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
811
811
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
812
812
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
813
813
|
Dt.test(e) && !Gt.test(e)
|
|
814
|
-
), Re = () => !1, Vt = (e) => Wt.test(e), Ut = (e) => Ft.test(e), Ht = (e) => !
|
|
814
|
+
), Re = () => !1, Vt = (e) => Wt.test(e), Ut = (e) => Ft.test(e), Ht = (e) => !k(e) && !j(e), Yt = (e) => de(e, et, Re), k = (e) => Xe.test(e), ue = (e) => de(e, tt, Bt), Oe = (e) => de(e, tr, P), Zt = (e) => de(e, st, Ke), Xt = (e) => de(e, rt, Re), De = (e) => de(e, Je, Re), qt = (e) => de(e, Qe, Ut), we = (e) => de(e, ot, Vt), j = (e) => qe.test(e), xe = (e) => me(e, tt), Kt = (e) => me(e, rt), Ge = (e) => me(e, Je), Jt = (e) => me(e, et), Qt = (e) => me(e, Qe), ke = (e) => me(e, ot, !0), er = (e) => me(e, st, !0), de = (e, r, a) => {
|
|
815
815
|
const s = Xe.exec(e);
|
|
816
816
|
return s ? s[1] ? r(s[1]) : a(s[2]) : !1;
|
|
817
817
|
}, me = (e, r, a = !1) => {
|
|
818
818
|
const s = qe.exec(e);
|
|
819
819
|
return s ? s[1] ? r(s[1]) : a : !1;
|
|
820
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", tr = (e) => e === "number", rt = (e) => e === "family-name", st = (e) => e === "number" || e === "weight", ot = (e) => e === "shadow", rr = () => {
|
|
821
|
-
const e = J("color"), r = J("font"), a = J("text"), s = J("font-weight"), n = J("tracking"),
|
|
821
|
+
const e = J("color"), r = J("font"), a = J("text"), s = J("font-weight"), n = J("tracking"), d = J("leading"), l = J("breakpoint"), i = J("container"), c = J("spacing"), g = J("radius"), m = J("shadow"), y = J("inset-shadow"), p = J("text-shadow"), h = 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"], $ = () => [
|
|
822
822
|
"center",
|
|
823
823
|
"top",
|
|
824
824
|
"bottom",
|
|
@@ -836,30 +836,30 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
836
836
|
"bottom-left",
|
|
837
837
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
838
838
|
"left-bottom"
|
|
839
|
-
],
|
|
840
|
-
span: ["full", ce,
|
|
841
|
-
}, ce,
|
|
842
|
-
position: [
|
|
843
|
-
}],
|
|
839
|
+
], C = () => [...$(), j, k], z = () => ["auto", "hidden", "clip", "visible", "scroll"], G = () => ["auto", "contain", "none"], f = () => [j, k, c], M = () => [ie, "full", "auto", ...f()], B = () => [ce, "none", "subgrid", j, k], X = () => ["auto", {
|
|
840
|
+
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"], V = () => ["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 = () => [...$(), Ge, De, {
|
|
842
|
+
position: [j, k]
|
|
843
|
+
}], b = () => ["no-repeat", {
|
|
844
844
|
repeat: ["", "x", "y", "space", "round"]
|
|
845
845
|
}], R = () => ["auto", "cover", "contain", Jt, Yt, {
|
|
846
|
-
size: [
|
|
846
|
+
size: [j, k]
|
|
847
847
|
}], S = () => [Ce, xe, ue], E = () => [
|
|
848
848
|
// Deprecated since Tailwind CSS v4.0.0
|
|
849
849
|
"",
|
|
850
850
|
"none",
|
|
851
851
|
"full",
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
],
|
|
852
|
+
g,
|
|
853
|
+
j,
|
|
854
|
+
k
|
|
855
|
+
], I = () => ["", P, 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 = () => [P, Ce, Ge, De], F = () => [
|
|
856
856
|
// Deprecated since Tailwind CSS v4.0.0
|
|
857
857
|
"",
|
|
858
858
|
"none",
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
], se = () => ["none", P,
|
|
859
|
+
w,
|
|
860
|
+
j,
|
|
861
|
+
k
|
|
862
|
+
], se = () => ["none", P, j, k], fe = () => ["none", P, j, k], be = () => [P, j, k], ye = () => [ie, "full", ...f()];
|
|
863
863
|
return {
|
|
864
864
|
cacheSize: 500,
|
|
865
865
|
theme: {
|
|
@@ -892,7 +892,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
892
892
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
893
893
|
*/
|
|
894
894
|
aspect: [{
|
|
895
|
-
aspect: ["auto", "square", ie,
|
|
895
|
+
aspect: ["auto", "square", ie, k, j, v]
|
|
896
896
|
}],
|
|
897
897
|
/**
|
|
898
898
|
* Container
|
|
@@ -905,7 +905,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
905
905
|
* @see https://tailwindcss.com/docs/columns
|
|
906
906
|
*/
|
|
907
907
|
columns: [{
|
|
908
|
-
columns: [P,
|
|
908
|
+
columns: [P, k, j, i]
|
|
909
909
|
}],
|
|
910
910
|
/**
|
|
911
911
|
* Break After
|
|
@@ -983,28 +983,28 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
983
983
|
* @see https://tailwindcss.com/docs/object-position
|
|
984
984
|
*/
|
|
985
985
|
"object-position": [{
|
|
986
|
-
object:
|
|
986
|
+
object: C()
|
|
987
987
|
}],
|
|
988
988
|
/**
|
|
989
989
|
* Overflow
|
|
990
990
|
* @see https://tailwindcss.com/docs/overflow
|
|
991
991
|
*/
|
|
992
992
|
overflow: [{
|
|
993
|
-
overflow:
|
|
993
|
+
overflow: z()
|
|
994
994
|
}],
|
|
995
995
|
/**
|
|
996
996
|
* Overflow X
|
|
997
997
|
* @see https://tailwindcss.com/docs/overflow
|
|
998
998
|
*/
|
|
999
999
|
"overflow-x": [{
|
|
1000
|
-
"overflow-x":
|
|
1000
|
+
"overflow-x": z()
|
|
1001
1001
|
}],
|
|
1002
1002
|
/**
|
|
1003
1003
|
* Overflow Y
|
|
1004
1004
|
* @see https://tailwindcss.com/docs/overflow
|
|
1005
1005
|
*/
|
|
1006
1006
|
"overflow-y": [{
|
|
1007
|
-
"overflow-y":
|
|
1007
|
+
"overflow-y": z()
|
|
1008
1008
|
}],
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Overscroll Behavior
|
|
@@ -1037,21 +1037,21 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1037
1037
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1038
1038
|
*/
|
|
1039
1039
|
inset: [{
|
|
1040
|
-
inset:
|
|
1040
|
+
inset: M()
|
|
1041
1041
|
}],
|
|
1042
1042
|
/**
|
|
1043
1043
|
* Inset Inline
|
|
1044
1044
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1045
1045
|
*/
|
|
1046
1046
|
"inset-x": [{
|
|
1047
|
-
"inset-x":
|
|
1047
|
+
"inset-x": M()
|
|
1048
1048
|
}],
|
|
1049
1049
|
/**
|
|
1050
1050
|
* Inset Block
|
|
1051
1051
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1052
1052
|
*/
|
|
1053
1053
|
"inset-y": [{
|
|
1054
|
-
"inset-y":
|
|
1054
|
+
"inset-y": M()
|
|
1055
1055
|
}],
|
|
1056
1056
|
/**
|
|
1057
1057
|
* Inset Inline Start
|
|
@@ -1059,12 +1059,12 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1059
1059
|
* @todo class group will be renamed to `inset-s` in next major release
|
|
1060
1060
|
*/
|
|
1061
1061
|
start: [{
|
|
1062
|
-
"inset-s":
|
|
1062
|
+
"inset-s": M(),
|
|
1063
1063
|
/**
|
|
1064
1064
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
|
|
1065
1065
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
1066
1066
|
*/
|
|
1067
|
-
start:
|
|
1067
|
+
start: M()
|
|
1068
1068
|
}],
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Inset Inline End
|
|
@@ -1072,54 +1072,54 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1072
1072
|
* @todo class group will be renamed to `inset-e` in next major release
|
|
1073
1073
|
*/
|
|
1074
1074
|
end: [{
|
|
1075
|
-
"inset-e":
|
|
1075
|
+
"inset-e": M(),
|
|
1076
1076
|
/**
|
|
1077
1077
|
* @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
|
|
1078
1078
|
* @see https://github.com/tailwindlabs/tailwindcss/pull/19613
|
|
1079
1079
|
*/
|
|
1080
|
-
end:
|
|
1080
|
+
end: M()
|
|
1081
1081
|
}],
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Inset Block Start
|
|
1084
1084
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1085
1085
|
*/
|
|
1086
1086
|
"inset-bs": [{
|
|
1087
|
-
"inset-bs":
|
|
1087
|
+
"inset-bs": M()
|
|
1088
1088
|
}],
|
|
1089
1089
|
/**
|
|
1090
1090
|
* Inset Block End
|
|
1091
1091
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1092
1092
|
*/
|
|
1093
1093
|
"inset-be": [{
|
|
1094
|
-
"inset-be":
|
|
1094
|
+
"inset-be": M()
|
|
1095
1095
|
}],
|
|
1096
1096
|
/**
|
|
1097
1097
|
* Top
|
|
1098
1098
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1099
1099
|
*/
|
|
1100
1100
|
top: [{
|
|
1101
|
-
top:
|
|
1101
|
+
top: M()
|
|
1102
1102
|
}],
|
|
1103
1103
|
/**
|
|
1104
1104
|
* Right
|
|
1105
1105
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1106
1106
|
*/
|
|
1107
1107
|
right: [{
|
|
1108
|
-
right:
|
|
1108
|
+
right: M()
|
|
1109
1109
|
}],
|
|
1110
1110
|
/**
|
|
1111
1111
|
* Bottom
|
|
1112
1112
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1113
1113
|
*/
|
|
1114
1114
|
bottom: [{
|
|
1115
|
-
bottom:
|
|
1115
|
+
bottom: M()
|
|
1116
1116
|
}],
|
|
1117
1117
|
/**
|
|
1118
1118
|
* Left
|
|
1119
1119
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1120
1120
|
*/
|
|
1121
1121
|
left: [{
|
|
1122
|
-
left:
|
|
1122
|
+
left: M()
|
|
1123
1123
|
}],
|
|
1124
1124
|
/**
|
|
1125
1125
|
* Visibility
|
|
@@ -1131,7 +1131,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1131
1131
|
* @see https://tailwindcss.com/docs/z-index
|
|
1132
1132
|
*/
|
|
1133
1133
|
z: [{
|
|
1134
|
-
z: [ce, "auto",
|
|
1134
|
+
z: [ce, "auto", j, k]
|
|
1135
1135
|
}],
|
|
1136
1136
|
// ------------------------
|
|
1137
1137
|
// --- Flexbox and Grid ---
|
|
@@ -1141,7 +1141,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1141
1141
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1142
1142
|
*/
|
|
1143
1143
|
basis: [{
|
|
1144
|
-
basis: [ie, "full", "auto", i, ...
|
|
1144
|
+
basis: [ie, "full", "auto", i, ...f()]
|
|
1145
1145
|
}],
|
|
1146
1146
|
/**
|
|
1147
1147
|
* Flex Direction
|
|
@@ -1162,42 +1162,42 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1162
1162
|
* @see https://tailwindcss.com/docs/flex
|
|
1163
1163
|
*/
|
|
1164
1164
|
flex: [{
|
|
1165
|
-
flex: [P, ie, "auto", "initial", "none",
|
|
1165
|
+
flex: [P, ie, "auto", "initial", "none", k]
|
|
1166
1166
|
}],
|
|
1167
1167
|
/**
|
|
1168
1168
|
* Flex Grow
|
|
1169
1169
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1170
1170
|
*/
|
|
1171
1171
|
grow: [{
|
|
1172
|
-
grow: ["", P,
|
|
1172
|
+
grow: ["", P, j, k]
|
|
1173
1173
|
}],
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Flex Shrink
|
|
1176
1176
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1177
1177
|
*/
|
|
1178
1178
|
shrink: [{
|
|
1179
|
-
shrink: ["", P,
|
|
1179
|
+
shrink: ["", P, j, k]
|
|
1180
1180
|
}],
|
|
1181
1181
|
/**
|
|
1182
1182
|
* Order
|
|
1183
1183
|
* @see https://tailwindcss.com/docs/order
|
|
1184
1184
|
*/
|
|
1185
1185
|
order: [{
|
|
1186
|
-
order: [ce, "first", "last", "none",
|
|
1186
|
+
order: [ce, "first", "last", "none", j, k]
|
|
1187
1187
|
}],
|
|
1188
1188
|
/**
|
|
1189
1189
|
* Grid Template Columns
|
|
1190
1190
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1191
1191
|
*/
|
|
1192
1192
|
"grid-cols": [{
|
|
1193
|
-
"grid-cols":
|
|
1193
|
+
"grid-cols": B()
|
|
1194
1194
|
}],
|
|
1195
1195
|
/**
|
|
1196
1196
|
* Grid Column Start / End
|
|
1197
1197
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1198
1198
|
*/
|
|
1199
1199
|
"col-start-end": [{
|
|
1200
|
-
col:
|
|
1200
|
+
col: X()
|
|
1201
1201
|
}],
|
|
1202
1202
|
/**
|
|
1203
1203
|
* Grid Column Start
|
|
@@ -1218,14 +1218,14 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1218
1218
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1219
1219
|
*/
|
|
1220
1220
|
"grid-rows": [{
|
|
1221
|
-
"grid-rows":
|
|
1221
|
+
"grid-rows": B()
|
|
1222
1222
|
}],
|
|
1223
1223
|
/**
|
|
1224
1224
|
* Grid Row Start / End
|
|
1225
1225
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1226
1226
|
*/
|
|
1227
1227
|
"row-start-end": [{
|
|
1228
|
-
row:
|
|
1228
|
+
row: X()
|
|
1229
1229
|
}],
|
|
1230
1230
|
/**
|
|
1231
1231
|
* Grid Row Start
|
|
@@ -1267,21 +1267,21 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1267
1267
|
* @see https://tailwindcss.com/docs/gap
|
|
1268
1268
|
*/
|
|
1269
1269
|
gap: [{
|
|
1270
|
-
gap:
|
|
1270
|
+
gap: f()
|
|
1271
1271
|
}],
|
|
1272
1272
|
/**
|
|
1273
1273
|
* Gap X
|
|
1274
1274
|
* @see https://tailwindcss.com/docs/gap
|
|
1275
1275
|
*/
|
|
1276
1276
|
"gap-x": [{
|
|
1277
|
-
"gap-x":
|
|
1277
|
+
"gap-x": f()
|
|
1278
1278
|
}],
|
|
1279
1279
|
/**
|
|
1280
1280
|
* Gap Y
|
|
1281
1281
|
* @see https://tailwindcss.com/docs/gap
|
|
1282
1282
|
*/
|
|
1283
1283
|
"gap-y": [{
|
|
1284
|
-
"gap-y":
|
|
1284
|
+
"gap-y": f()
|
|
1285
1285
|
}],
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Justify Content
|
|
@@ -1295,14 +1295,14 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1295
1295
|
* @see https://tailwindcss.com/docs/justify-items
|
|
1296
1296
|
*/
|
|
1297
1297
|
"justify-items": [{
|
|
1298
|
-
"justify-items": [...
|
|
1298
|
+
"justify-items": [...V(), "normal"]
|
|
1299
1299
|
}],
|
|
1300
1300
|
/**
|
|
1301
1301
|
* Justify Self
|
|
1302
1302
|
* @see https://tailwindcss.com/docs/justify-self
|
|
1303
1303
|
*/
|
|
1304
1304
|
"justify-self": [{
|
|
1305
|
-
"justify-self": ["auto", ...
|
|
1305
|
+
"justify-self": ["auto", ...V()]
|
|
1306
1306
|
}],
|
|
1307
1307
|
/**
|
|
1308
1308
|
* Align Content
|
|
@@ -1316,7 +1316,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1316
1316
|
* @see https://tailwindcss.com/docs/align-items
|
|
1317
1317
|
*/
|
|
1318
1318
|
"align-items": [{
|
|
1319
|
-
items: [...
|
|
1319
|
+
items: [...V(), {
|
|
1320
1320
|
baseline: ["", "last"]
|
|
1321
1321
|
}]
|
|
1322
1322
|
}],
|
|
@@ -1325,7 +1325,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1325
1325
|
* @see https://tailwindcss.com/docs/align-self
|
|
1326
1326
|
*/
|
|
1327
1327
|
"align-self": [{
|
|
1328
|
-
self: ["auto", ...
|
|
1328
|
+
self: ["auto", ...V(), {
|
|
1329
1329
|
baseline: ["", "last"]
|
|
1330
1330
|
}]
|
|
1331
1331
|
}],
|
|
@@ -1341,14 +1341,14 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1341
1341
|
* @see https://tailwindcss.com/docs/place-items
|
|
1342
1342
|
*/
|
|
1343
1343
|
"place-items": [{
|
|
1344
|
-
"place-items": [...
|
|
1344
|
+
"place-items": [...V(), "baseline"]
|
|
1345
1345
|
}],
|
|
1346
1346
|
/**
|
|
1347
1347
|
* Place Self
|
|
1348
1348
|
* @see https://tailwindcss.com/docs/place-self
|
|
1349
1349
|
*/
|
|
1350
1350
|
"place-self": [{
|
|
1351
|
-
"place-self": ["auto", ...
|
|
1351
|
+
"place-self": ["auto", ...V()]
|
|
1352
1352
|
}],
|
|
1353
1353
|
// Spacing
|
|
1354
1354
|
/**
|
|
@@ -1356,77 +1356,77 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1356
1356
|
* @see https://tailwindcss.com/docs/padding
|
|
1357
1357
|
*/
|
|
1358
1358
|
p: [{
|
|
1359
|
-
p:
|
|
1359
|
+
p: f()
|
|
1360
1360
|
}],
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Padding Inline
|
|
1363
1363
|
* @see https://tailwindcss.com/docs/padding
|
|
1364
1364
|
*/
|
|
1365
1365
|
px: [{
|
|
1366
|
-
px:
|
|
1366
|
+
px: f()
|
|
1367
1367
|
}],
|
|
1368
1368
|
/**
|
|
1369
1369
|
* Padding Block
|
|
1370
1370
|
* @see https://tailwindcss.com/docs/padding
|
|
1371
1371
|
*/
|
|
1372
1372
|
py: [{
|
|
1373
|
-
py:
|
|
1373
|
+
py: f()
|
|
1374
1374
|
}],
|
|
1375
1375
|
/**
|
|
1376
1376
|
* Padding Inline Start
|
|
1377
1377
|
* @see https://tailwindcss.com/docs/padding
|
|
1378
1378
|
*/
|
|
1379
1379
|
ps: [{
|
|
1380
|
-
ps:
|
|
1380
|
+
ps: f()
|
|
1381
1381
|
}],
|
|
1382
1382
|
/**
|
|
1383
1383
|
* Padding Inline End
|
|
1384
1384
|
* @see https://tailwindcss.com/docs/padding
|
|
1385
1385
|
*/
|
|
1386
1386
|
pe: [{
|
|
1387
|
-
pe:
|
|
1387
|
+
pe: f()
|
|
1388
1388
|
}],
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Padding Block Start
|
|
1391
1391
|
* @see https://tailwindcss.com/docs/padding
|
|
1392
1392
|
*/
|
|
1393
1393
|
pbs: [{
|
|
1394
|
-
pbs:
|
|
1394
|
+
pbs: f()
|
|
1395
1395
|
}],
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Padding Block End
|
|
1398
1398
|
* @see https://tailwindcss.com/docs/padding
|
|
1399
1399
|
*/
|
|
1400
1400
|
pbe: [{
|
|
1401
|
-
pbe:
|
|
1401
|
+
pbe: f()
|
|
1402
1402
|
}],
|
|
1403
1403
|
/**
|
|
1404
1404
|
* Padding Top
|
|
1405
1405
|
* @see https://tailwindcss.com/docs/padding
|
|
1406
1406
|
*/
|
|
1407
1407
|
pt: [{
|
|
1408
|
-
pt:
|
|
1408
|
+
pt: f()
|
|
1409
1409
|
}],
|
|
1410
1410
|
/**
|
|
1411
1411
|
* Padding Right
|
|
1412
1412
|
* @see https://tailwindcss.com/docs/padding
|
|
1413
1413
|
*/
|
|
1414
1414
|
pr: [{
|
|
1415
|
-
pr:
|
|
1415
|
+
pr: f()
|
|
1416
1416
|
}],
|
|
1417
1417
|
/**
|
|
1418
1418
|
* Padding Bottom
|
|
1419
1419
|
* @see https://tailwindcss.com/docs/padding
|
|
1420
1420
|
*/
|
|
1421
1421
|
pb: [{
|
|
1422
|
-
pb:
|
|
1422
|
+
pb: f()
|
|
1423
1423
|
}],
|
|
1424
1424
|
/**
|
|
1425
1425
|
* Padding Left
|
|
1426
1426
|
* @see https://tailwindcss.com/docs/padding
|
|
1427
1427
|
*/
|
|
1428
1428
|
pl: [{
|
|
1429
|
-
pl:
|
|
1429
|
+
pl: f()
|
|
1430
1430
|
}],
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Margin
|
|
@@ -1510,7 +1510,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1510
1510
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1511
1511
|
*/
|
|
1512
1512
|
"space-x": [{
|
|
1513
|
-
"space-x":
|
|
1513
|
+
"space-x": f()
|
|
1514
1514
|
}],
|
|
1515
1515
|
/**
|
|
1516
1516
|
* Space Between X Reverse
|
|
@@ -1522,7 +1522,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1522
1522
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1523
1523
|
*/
|
|
1524
1524
|
"space-y": [{
|
|
1525
|
-
"space-y":
|
|
1525
|
+
"space-y": f()
|
|
1526
1526
|
}],
|
|
1527
1527
|
/**
|
|
1528
1528
|
* Space Between Y Reverse
|
|
@@ -1537,7 +1537,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1537
1537
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1538
1538
|
*/
|
|
1539
1539
|
size: [{
|
|
1540
|
-
size:
|
|
1540
|
+
size: q()
|
|
1541
1541
|
}],
|
|
1542
1542
|
/**
|
|
1543
1543
|
* Inline Size
|
|
@@ -1586,7 +1586,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1586
1586
|
* @see https://tailwindcss.com/docs/width
|
|
1587
1587
|
*/
|
|
1588
1588
|
w: [{
|
|
1589
|
-
w: [i, "screen", ...
|
|
1589
|
+
w: [i, "screen", ...q()]
|
|
1590
1590
|
}],
|
|
1591
1591
|
/**
|
|
1592
1592
|
* Min-Width
|
|
@@ -1598,7 +1598,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1598
1598
|
"screen",
|
|
1599
1599
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1600
1600
|
"none",
|
|
1601
|
-
...
|
|
1601
|
+
...q()
|
|
1602
1602
|
]
|
|
1603
1603
|
}],
|
|
1604
1604
|
/**
|
|
@@ -1616,7 +1616,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1616
1616
|
{
|
|
1617
1617
|
screen: [l]
|
|
1618
1618
|
},
|
|
1619
|
-
...
|
|
1619
|
+
...q()
|
|
1620
1620
|
]
|
|
1621
1621
|
}],
|
|
1622
1622
|
/**
|
|
@@ -1624,21 +1624,21 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1624
1624
|
* @see https://tailwindcss.com/docs/height
|
|
1625
1625
|
*/
|
|
1626
1626
|
h: [{
|
|
1627
|
-
h: ["screen", "lh", ...
|
|
1627
|
+
h: ["screen", "lh", ...q()]
|
|
1628
1628
|
}],
|
|
1629
1629
|
/**
|
|
1630
1630
|
* Min-Height
|
|
1631
1631
|
* @see https://tailwindcss.com/docs/min-height
|
|
1632
1632
|
*/
|
|
1633
1633
|
"min-h": [{
|
|
1634
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1634
|
+
"min-h": ["screen", "lh", "none", ...q()]
|
|
1635
1635
|
}],
|
|
1636
1636
|
/**
|
|
1637
1637
|
* Max-Height
|
|
1638
1638
|
* @see https://tailwindcss.com/docs/max-height
|
|
1639
1639
|
*/
|
|
1640
1640
|
"max-h": [{
|
|
1641
|
-
"max-h": ["screen", "lh", ...
|
|
1641
|
+
"max-h": ["screen", "lh", ...q()]
|
|
1642
1642
|
}],
|
|
1643
1643
|
// ------------------
|
|
1644
1644
|
// --- Typography ---
|
|
@@ -1672,7 +1672,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1672
1672
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1673
1673
|
*/
|
|
1674
1674
|
"font-stretch": [{
|
|
1675
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ce,
|
|
1675
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ce, k]
|
|
1676
1676
|
}],
|
|
1677
1677
|
/**
|
|
1678
1678
|
* Font Family
|
|
@@ -1686,7 +1686,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1686
1686
|
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
1687
1687
|
*/
|
|
1688
1688
|
"font-features": [{
|
|
1689
|
-
"font-features": [
|
|
1689
|
+
"font-features": [k]
|
|
1690
1690
|
}],
|
|
1691
1691
|
/**
|
|
1692
1692
|
* Font Variant Numeric
|
|
@@ -1723,14 +1723,14 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1723
1723
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1724
1724
|
*/
|
|
1725
1725
|
tracking: [{
|
|
1726
|
-
tracking: [n,
|
|
1726
|
+
tracking: [n, j, k]
|
|
1727
1727
|
}],
|
|
1728
1728
|
/**
|
|
1729
1729
|
* Line Clamp
|
|
1730
1730
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1731
1731
|
*/
|
|
1732
1732
|
"line-clamp": [{
|
|
1733
|
-
"line-clamp": [P, "none",
|
|
1733
|
+
"line-clamp": [P, "none", j, Oe]
|
|
1734
1734
|
}],
|
|
1735
1735
|
/**
|
|
1736
1736
|
* Line Height
|
|
@@ -1739,8 +1739,8 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1739
1739
|
leading: [{
|
|
1740
1740
|
leading: [
|
|
1741
1741
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1742
|
-
|
|
1743
|
-
...
|
|
1742
|
+
d,
|
|
1743
|
+
...f()
|
|
1744
1744
|
]
|
|
1745
1745
|
}],
|
|
1746
1746
|
/**
|
|
@@ -1748,7 +1748,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1748
1748
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1749
1749
|
*/
|
|
1750
1750
|
"list-image": [{
|
|
1751
|
-
"list-image": ["none",
|
|
1751
|
+
"list-image": ["none", j, k]
|
|
1752
1752
|
}],
|
|
1753
1753
|
/**
|
|
1754
1754
|
* List Style Position
|
|
@@ -1762,7 +1762,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1762
1762
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1763
1763
|
*/
|
|
1764
1764
|
"list-style-type": [{
|
|
1765
|
-
list: ["disc", "decimal", "none",
|
|
1765
|
+
list: ["disc", "decimal", "none", j, k]
|
|
1766
1766
|
}],
|
|
1767
1767
|
/**
|
|
1768
1768
|
* Text Alignment
|
|
@@ -1803,7 +1803,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1803
1803
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1804
1804
|
*/
|
|
1805
1805
|
"text-decoration-thickness": [{
|
|
1806
|
-
decoration: [P, "from-font", "auto",
|
|
1806
|
+
decoration: [P, "from-font", "auto", j, ue]
|
|
1807
1807
|
}],
|
|
1808
1808
|
/**
|
|
1809
1809
|
* Text Decoration Color
|
|
@@ -1817,7 +1817,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1817
1817
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1818
1818
|
*/
|
|
1819
1819
|
"underline-offset": [{
|
|
1820
|
-
"underline-offset": [P, "auto",
|
|
1820
|
+
"underline-offset": [P, "auto", j, k]
|
|
1821
1821
|
}],
|
|
1822
1822
|
/**
|
|
1823
1823
|
* Text Transform
|
|
@@ -1841,14 +1841,14 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1841
1841
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1842
1842
|
*/
|
|
1843
1843
|
indent: [{
|
|
1844
|
-
indent:
|
|
1844
|
+
indent: f()
|
|
1845
1845
|
}],
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Vertical Alignment
|
|
1848
1848
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1849
1849
|
*/
|
|
1850
1850
|
"vertical-align": [{
|
|
1851
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1851
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", j, k]
|
|
1852
1852
|
}],
|
|
1853
1853
|
/**
|
|
1854
1854
|
* Whitespace
|
|
@@ -1883,7 +1883,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1883
1883
|
* @see https://tailwindcss.com/docs/content
|
|
1884
1884
|
*/
|
|
1885
1885
|
content: [{
|
|
1886
|
-
content: ["none",
|
|
1886
|
+
content: ["none", j, k]
|
|
1887
1887
|
}],
|
|
1888
1888
|
// -------------------
|
|
1889
1889
|
// --- Backgrounds ---
|
|
@@ -1921,7 +1921,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1921
1921
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1922
1922
|
*/
|
|
1923
1923
|
"bg-repeat": [{
|
|
1924
|
-
bg:
|
|
1924
|
+
bg: b()
|
|
1925
1925
|
}],
|
|
1926
1926
|
/**
|
|
1927
1927
|
* Background Size
|
|
@@ -1938,9 +1938,9 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
1938
1938
|
bg: ["none", {
|
|
1939
1939
|
linear: [{
|
|
1940
1940
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1941
|
-
}, ce,
|
|
1942
|
-
radial: ["",
|
|
1943
|
-
conic: [ce,
|
|
1941
|
+
}, ce, j, k],
|
|
1942
|
+
radial: ["", j, k],
|
|
1943
|
+
conic: [ce, j, k]
|
|
1944
1944
|
}, Qt, qt]
|
|
1945
1945
|
}],
|
|
1946
1946
|
/**
|
|
@@ -2105,84 +2105,84 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2105
2105
|
* @see https://tailwindcss.com/docs/border-width
|
|
2106
2106
|
*/
|
|
2107
2107
|
"border-w": [{
|
|
2108
|
-
border:
|
|
2108
|
+
border: I()
|
|
2109
2109
|
}],
|
|
2110
2110
|
/**
|
|
2111
2111
|
* Border Width Inline
|
|
2112
2112
|
* @see https://tailwindcss.com/docs/border-width
|
|
2113
2113
|
*/
|
|
2114
2114
|
"border-w-x": [{
|
|
2115
|
-
"border-x":
|
|
2115
|
+
"border-x": I()
|
|
2116
2116
|
}],
|
|
2117
2117
|
/**
|
|
2118
2118
|
* Border Width Block
|
|
2119
2119
|
* @see https://tailwindcss.com/docs/border-width
|
|
2120
2120
|
*/
|
|
2121
2121
|
"border-w-y": [{
|
|
2122
|
-
"border-y":
|
|
2122
|
+
"border-y": I()
|
|
2123
2123
|
}],
|
|
2124
2124
|
/**
|
|
2125
2125
|
* Border Width Inline Start
|
|
2126
2126
|
* @see https://tailwindcss.com/docs/border-width
|
|
2127
2127
|
*/
|
|
2128
2128
|
"border-w-s": [{
|
|
2129
|
-
"border-s":
|
|
2129
|
+
"border-s": I()
|
|
2130
2130
|
}],
|
|
2131
2131
|
/**
|
|
2132
2132
|
* Border Width Inline End
|
|
2133
2133
|
* @see https://tailwindcss.com/docs/border-width
|
|
2134
2134
|
*/
|
|
2135
2135
|
"border-w-e": [{
|
|
2136
|
-
"border-e":
|
|
2136
|
+
"border-e": I()
|
|
2137
2137
|
}],
|
|
2138
2138
|
/**
|
|
2139
2139
|
* Border Width Block Start
|
|
2140
2140
|
* @see https://tailwindcss.com/docs/border-width
|
|
2141
2141
|
*/
|
|
2142
2142
|
"border-w-bs": [{
|
|
2143
|
-
"border-bs":
|
|
2143
|
+
"border-bs": I()
|
|
2144
2144
|
}],
|
|
2145
2145
|
/**
|
|
2146
2146
|
* Border Width Block End
|
|
2147
2147
|
* @see https://tailwindcss.com/docs/border-width
|
|
2148
2148
|
*/
|
|
2149
2149
|
"border-w-be": [{
|
|
2150
|
-
"border-be":
|
|
2150
|
+
"border-be": I()
|
|
2151
2151
|
}],
|
|
2152
2152
|
/**
|
|
2153
2153
|
* Border Width Top
|
|
2154
2154
|
* @see https://tailwindcss.com/docs/border-width
|
|
2155
2155
|
*/
|
|
2156
2156
|
"border-w-t": [{
|
|
2157
|
-
"border-t":
|
|
2157
|
+
"border-t": I()
|
|
2158
2158
|
}],
|
|
2159
2159
|
/**
|
|
2160
2160
|
* Border Width Right
|
|
2161
2161
|
* @see https://tailwindcss.com/docs/border-width
|
|
2162
2162
|
*/
|
|
2163
2163
|
"border-w-r": [{
|
|
2164
|
-
"border-r":
|
|
2164
|
+
"border-r": I()
|
|
2165
2165
|
}],
|
|
2166
2166
|
/**
|
|
2167
2167
|
* Border Width Bottom
|
|
2168
2168
|
* @see https://tailwindcss.com/docs/border-width
|
|
2169
2169
|
*/
|
|
2170
2170
|
"border-w-b": [{
|
|
2171
|
-
"border-b":
|
|
2171
|
+
"border-b": I()
|
|
2172
2172
|
}],
|
|
2173
2173
|
/**
|
|
2174
2174
|
* Border Width Left
|
|
2175
2175
|
* @see https://tailwindcss.com/docs/border-width
|
|
2176
2176
|
*/
|
|
2177
2177
|
"border-w-l": [{
|
|
2178
|
-
"border-l":
|
|
2178
|
+
"border-l": I()
|
|
2179
2179
|
}],
|
|
2180
2180
|
/**
|
|
2181
2181
|
* Divide Width X
|
|
2182
2182
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2183
2183
|
*/
|
|
2184
2184
|
"divide-x": [{
|
|
2185
|
-
"divide-x":
|
|
2185
|
+
"divide-x": I()
|
|
2186
2186
|
}],
|
|
2187
2187
|
/**
|
|
2188
2188
|
* Divide Width X Reverse
|
|
@@ -2194,7 +2194,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2194
2194
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2195
2195
|
*/
|
|
2196
2196
|
"divide-y": [{
|
|
2197
|
-
"divide-y":
|
|
2197
|
+
"divide-y": I()
|
|
2198
2198
|
}],
|
|
2199
2199
|
/**
|
|
2200
2200
|
* Divide Width Y Reverse
|
|
@@ -2311,7 +2311,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2311
2311
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2312
2312
|
*/
|
|
2313
2313
|
"outline-offset": [{
|
|
2314
|
-
"outline-offset": [P,
|
|
2314
|
+
"outline-offset": [P, j, k]
|
|
2315
2315
|
}],
|
|
2316
2316
|
/**
|
|
2317
2317
|
* Outline Width
|
|
@@ -2339,7 +2339,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2339
2339
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2340
2340
|
"",
|
|
2341
2341
|
"none",
|
|
2342
|
-
|
|
2342
|
+
m,
|
|
2343
2343
|
ke,
|
|
2344
2344
|
we
|
|
2345
2345
|
]
|
|
@@ -2356,7 +2356,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2356
2356
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2357
2357
|
*/
|
|
2358
2358
|
"inset-shadow": [{
|
|
2359
|
-
"inset-shadow": ["none",
|
|
2359
|
+
"inset-shadow": ["none", y, ke, we]
|
|
2360
2360
|
}],
|
|
2361
2361
|
/**
|
|
2362
2362
|
* Inset Box Shadow Color
|
|
@@ -2370,7 +2370,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2370
2370
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2371
2371
|
*/
|
|
2372
2372
|
"ring-w": [{
|
|
2373
|
-
ring:
|
|
2373
|
+
ring: I()
|
|
2374
2374
|
}],
|
|
2375
2375
|
/**
|
|
2376
2376
|
* Ring Width Inset
|
|
@@ -2409,7 +2409,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2409
2409
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2410
2410
|
*/
|
|
2411
2411
|
"inset-ring-w": [{
|
|
2412
|
-
"inset-ring":
|
|
2412
|
+
"inset-ring": I()
|
|
2413
2413
|
}],
|
|
2414
2414
|
/**
|
|
2415
2415
|
* Inset Ring Color
|
|
@@ -2423,7 +2423,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2423
2423
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2424
2424
|
*/
|
|
2425
2425
|
"text-shadow": [{
|
|
2426
|
-
"text-shadow": ["none",
|
|
2426
|
+
"text-shadow": ["none", p, ke, we]
|
|
2427
2427
|
}],
|
|
2428
2428
|
/**
|
|
2429
2429
|
* Text Shadow Color
|
|
@@ -2437,21 +2437,21 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2437
2437
|
* @see https://tailwindcss.com/docs/opacity
|
|
2438
2438
|
*/
|
|
2439
2439
|
opacity: [{
|
|
2440
|
-
opacity: [P,
|
|
2440
|
+
opacity: [P, j, k]
|
|
2441
2441
|
}],
|
|
2442
2442
|
/**
|
|
2443
2443
|
* Mix Blend Mode
|
|
2444
2444
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2445
2445
|
*/
|
|
2446
2446
|
"mix-blend": [{
|
|
2447
|
-
"mix-blend": [...
|
|
2447
|
+
"mix-blend": [...O(), "plus-darker", "plus-lighter"]
|
|
2448
2448
|
}],
|
|
2449
2449
|
/**
|
|
2450
2450
|
* Background Blend Mode
|
|
2451
2451
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2452
2452
|
*/
|
|
2453
2453
|
"bg-blend": [{
|
|
2454
|
-
"bg-blend":
|
|
2454
|
+
"bg-blend": O()
|
|
2455
2455
|
}],
|
|
2456
2456
|
/**
|
|
2457
2457
|
* Mask Clip
|
|
@@ -2475,10 +2475,10 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2475
2475
|
"mask-linear": [P]
|
|
2476
2476
|
}],
|
|
2477
2477
|
"mask-image-linear-from-pos": [{
|
|
2478
|
-
"mask-linear-from":
|
|
2478
|
+
"mask-linear-from": L()
|
|
2479
2479
|
}],
|
|
2480
2480
|
"mask-image-linear-to-pos": [{
|
|
2481
|
-
"mask-linear-to":
|
|
2481
|
+
"mask-linear-to": L()
|
|
2482
2482
|
}],
|
|
2483
2483
|
"mask-image-linear-from-color": [{
|
|
2484
2484
|
"mask-linear-from": o()
|
|
@@ -2487,10 +2487,10 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2487
2487
|
"mask-linear-to": o()
|
|
2488
2488
|
}],
|
|
2489
2489
|
"mask-image-t-from-pos": [{
|
|
2490
|
-
"mask-t-from":
|
|
2490
|
+
"mask-t-from": L()
|
|
2491
2491
|
}],
|
|
2492
2492
|
"mask-image-t-to-pos": [{
|
|
2493
|
-
"mask-t-to":
|
|
2493
|
+
"mask-t-to": L()
|
|
2494
2494
|
}],
|
|
2495
2495
|
"mask-image-t-from-color": [{
|
|
2496
2496
|
"mask-t-from": o()
|
|
@@ -2499,10 +2499,10 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2499
2499
|
"mask-t-to": o()
|
|
2500
2500
|
}],
|
|
2501
2501
|
"mask-image-r-from-pos": [{
|
|
2502
|
-
"mask-r-from":
|
|
2502
|
+
"mask-r-from": L()
|
|
2503
2503
|
}],
|
|
2504
2504
|
"mask-image-r-to-pos": [{
|
|
2505
|
-
"mask-r-to":
|
|
2505
|
+
"mask-r-to": L()
|
|
2506
2506
|
}],
|
|
2507
2507
|
"mask-image-r-from-color": [{
|
|
2508
2508
|
"mask-r-from": o()
|
|
@@ -2511,10 +2511,10 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2511
2511
|
"mask-r-to": o()
|
|
2512
2512
|
}],
|
|
2513
2513
|
"mask-image-b-from-pos": [{
|
|
2514
|
-
"mask-b-from":
|
|
2514
|
+
"mask-b-from": L()
|
|
2515
2515
|
}],
|
|
2516
2516
|
"mask-image-b-to-pos": [{
|
|
2517
|
-
"mask-b-to":
|
|
2517
|
+
"mask-b-to": L()
|
|
2518
2518
|
}],
|
|
2519
2519
|
"mask-image-b-from-color": [{
|
|
2520
2520
|
"mask-b-from": o()
|
|
@@ -2523,10 +2523,10 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2523
2523
|
"mask-b-to": o()
|
|
2524
2524
|
}],
|
|
2525
2525
|
"mask-image-l-from-pos": [{
|
|
2526
|
-
"mask-l-from":
|
|
2526
|
+
"mask-l-from": L()
|
|
2527
2527
|
}],
|
|
2528
2528
|
"mask-image-l-to-pos": [{
|
|
2529
|
-
"mask-l-to":
|
|
2529
|
+
"mask-l-to": L()
|
|
2530
2530
|
}],
|
|
2531
2531
|
"mask-image-l-from-color": [{
|
|
2532
2532
|
"mask-l-from": o()
|
|
@@ -2535,10 +2535,10 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2535
2535
|
"mask-l-to": o()
|
|
2536
2536
|
}],
|
|
2537
2537
|
"mask-image-x-from-pos": [{
|
|
2538
|
-
"mask-x-from":
|
|
2538
|
+
"mask-x-from": L()
|
|
2539
2539
|
}],
|
|
2540
2540
|
"mask-image-x-to-pos": [{
|
|
2541
|
-
"mask-x-to":
|
|
2541
|
+
"mask-x-to": L()
|
|
2542
2542
|
}],
|
|
2543
2543
|
"mask-image-x-from-color": [{
|
|
2544
2544
|
"mask-x-from": o()
|
|
@@ -2547,10 +2547,10 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2547
2547
|
"mask-x-to": o()
|
|
2548
2548
|
}],
|
|
2549
2549
|
"mask-image-y-from-pos": [{
|
|
2550
|
-
"mask-y-from":
|
|
2550
|
+
"mask-y-from": L()
|
|
2551
2551
|
}],
|
|
2552
2552
|
"mask-image-y-to-pos": [{
|
|
2553
|
-
"mask-y-to":
|
|
2553
|
+
"mask-y-to": L()
|
|
2554
2554
|
}],
|
|
2555
2555
|
"mask-image-y-from-color": [{
|
|
2556
2556
|
"mask-y-from": o()
|
|
@@ -2559,13 +2559,13 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2559
2559
|
"mask-y-to": o()
|
|
2560
2560
|
}],
|
|
2561
2561
|
"mask-image-radial": [{
|
|
2562
|
-
"mask-radial": [
|
|
2562
|
+
"mask-radial": [j, k]
|
|
2563
2563
|
}],
|
|
2564
2564
|
"mask-image-radial-from-pos": [{
|
|
2565
|
-
"mask-radial-from":
|
|
2565
|
+
"mask-radial-from": L()
|
|
2566
2566
|
}],
|
|
2567
2567
|
"mask-image-radial-to-pos": [{
|
|
2568
|
-
"mask-radial-to":
|
|
2568
|
+
"mask-radial-to": L()
|
|
2569
2569
|
}],
|
|
2570
2570
|
"mask-image-radial-from-color": [{
|
|
2571
2571
|
"mask-radial-from": o()
|
|
@@ -2589,10 +2589,10 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2589
2589
|
"mask-conic": [P]
|
|
2590
2590
|
}],
|
|
2591
2591
|
"mask-image-conic-from-pos": [{
|
|
2592
|
-
"mask-conic-from":
|
|
2592
|
+
"mask-conic-from": L()
|
|
2593
2593
|
}],
|
|
2594
2594
|
"mask-image-conic-to-pos": [{
|
|
2595
|
-
"mask-conic-to":
|
|
2595
|
+
"mask-conic-to": L()
|
|
2596
2596
|
}],
|
|
2597
2597
|
"mask-image-conic-from-color": [{
|
|
2598
2598
|
"mask-conic-from": o()
|
|
@@ -2626,7 +2626,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2626
2626
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2627
2627
|
*/
|
|
2628
2628
|
"mask-repeat": [{
|
|
2629
|
-
mask:
|
|
2629
|
+
mask: b()
|
|
2630
2630
|
}],
|
|
2631
2631
|
/**
|
|
2632
2632
|
* Mask Size
|
|
@@ -2647,7 +2647,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2647
2647
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2648
2648
|
*/
|
|
2649
2649
|
"mask-image": [{
|
|
2650
|
-
mask: ["none",
|
|
2650
|
+
mask: ["none", j, k]
|
|
2651
2651
|
}],
|
|
2652
2652
|
// ---------------
|
|
2653
2653
|
// --- Filters ---
|
|
@@ -2661,8 +2661,8 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2661
2661
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2662
2662
|
"",
|
|
2663
2663
|
"none",
|
|
2664
|
-
|
|
2665
|
-
|
|
2664
|
+
j,
|
|
2665
|
+
k
|
|
2666
2666
|
]
|
|
2667
2667
|
}],
|
|
2668
2668
|
/**
|
|
@@ -2677,14 +2677,14 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2677
2677
|
* @see https://tailwindcss.com/docs/brightness
|
|
2678
2678
|
*/
|
|
2679
2679
|
brightness: [{
|
|
2680
|
-
brightness: [P,
|
|
2680
|
+
brightness: [P, j, k]
|
|
2681
2681
|
}],
|
|
2682
2682
|
/**
|
|
2683
2683
|
* Contrast
|
|
2684
2684
|
* @see https://tailwindcss.com/docs/contrast
|
|
2685
2685
|
*/
|
|
2686
2686
|
contrast: [{
|
|
2687
|
-
contrast: [P,
|
|
2687
|
+
contrast: [P, j, k]
|
|
2688
2688
|
}],
|
|
2689
2689
|
/**
|
|
2690
2690
|
* Drop Shadow
|
|
@@ -2695,7 +2695,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2695
2695
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2696
2696
|
"",
|
|
2697
2697
|
"none",
|
|
2698
|
-
|
|
2698
|
+
h,
|
|
2699
2699
|
ke,
|
|
2700
2700
|
we
|
|
2701
2701
|
]
|
|
@@ -2712,35 +2712,35 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2712
2712
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2713
2713
|
*/
|
|
2714
2714
|
grayscale: [{
|
|
2715
|
-
grayscale: ["", P,
|
|
2715
|
+
grayscale: ["", P, j, k]
|
|
2716
2716
|
}],
|
|
2717
2717
|
/**
|
|
2718
2718
|
* Hue Rotate
|
|
2719
2719
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2720
2720
|
*/
|
|
2721
2721
|
"hue-rotate": [{
|
|
2722
|
-
"hue-rotate": [P,
|
|
2722
|
+
"hue-rotate": [P, j, k]
|
|
2723
2723
|
}],
|
|
2724
2724
|
/**
|
|
2725
2725
|
* Invert
|
|
2726
2726
|
* @see https://tailwindcss.com/docs/invert
|
|
2727
2727
|
*/
|
|
2728
2728
|
invert: [{
|
|
2729
|
-
invert: ["", P,
|
|
2729
|
+
invert: ["", P, j, k]
|
|
2730
2730
|
}],
|
|
2731
2731
|
/**
|
|
2732
2732
|
* Saturate
|
|
2733
2733
|
* @see https://tailwindcss.com/docs/saturate
|
|
2734
2734
|
*/
|
|
2735
2735
|
saturate: [{
|
|
2736
|
-
saturate: [P,
|
|
2736
|
+
saturate: [P, j, k]
|
|
2737
2737
|
}],
|
|
2738
2738
|
/**
|
|
2739
2739
|
* Sepia
|
|
2740
2740
|
* @see https://tailwindcss.com/docs/sepia
|
|
2741
2741
|
*/
|
|
2742
2742
|
sepia: [{
|
|
2743
|
-
sepia: ["", P,
|
|
2743
|
+
sepia: ["", P, j, k]
|
|
2744
2744
|
}],
|
|
2745
2745
|
/**
|
|
2746
2746
|
* Backdrop Filter
|
|
@@ -2751,8 +2751,8 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2751
2751
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2752
2752
|
"",
|
|
2753
2753
|
"none",
|
|
2754
|
-
|
|
2755
|
-
|
|
2754
|
+
j,
|
|
2755
|
+
k
|
|
2756
2756
|
]
|
|
2757
2757
|
}],
|
|
2758
2758
|
/**
|
|
@@ -2767,56 +2767,56 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2767
2767
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2768
2768
|
*/
|
|
2769
2769
|
"backdrop-brightness": [{
|
|
2770
|
-
"backdrop-brightness": [P,
|
|
2770
|
+
"backdrop-brightness": [P, j, k]
|
|
2771
2771
|
}],
|
|
2772
2772
|
/**
|
|
2773
2773
|
* Backdrop Contrast
|
|
2774
2774
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2775
2775
|
*/
|
|
2776
2776
|
"backdrop-contrast": [{
|
|
2777
|
-
"backdrop-contrast": [P,
|
|
2777
|
+
"backdrop-contrast": [P, j, k]
|
|
2778
2778
|
}],
|
|
2779
2779
|
/**
|
|
2780
2780
|
* Backdrop Grayscale
|
|
2781
2781
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2782
2782
|
*/
|
|
2783
2783
|
"backdrop-grayscale": [{
|
|
2784
|
-
"backdrop-grayscale": ["", P,
|
|
2784
|
+
"backdrop-grayscale": ["", P, j, k]
|
|
2785
2785
|
}],
|
|
2786
2786
|
/**
|
|
2787
2787
|
* Backdrop Hue Rotate
|
|
2788
2788
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2789
2789
|
*/
|
|
2790
2790
|
"backdrop-hue-rotate": [{
|
|
2791
|
-
"backdrop-hue-rotate": [P,
|
|
2791
|
+
"backdrop-hue-rotate": [P, j, k]
|
|
2792
2792
|
}],
|
|
2793
2793
|
/**
|
|
2794
2794
|
* Backdrop Invert
|
|
2795
2795
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2796
2796
|
*/
|
|
2797
2797
|
"backdrop-invert": [{
|
|
2798
|
-
"backdrop-invert": ["", P,
|
|
2798
|
+
"backdrop-invert": ["", P, j, k]
|
|
2799
2799
|
}],
|
|
2800
2800
|
/**
|
|
2801
2801
|
* Backdrop Opacity
|
|
2802
2802
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2803
2803
|
*/
|
|
2804
2804
|
"backdrop-opacity": [{
|
|
2805
|
-
"backdrop-opacity": [P,
|
|
2805
|
+
"backdrop-opacity": [P, j, k]
|
|
2806
2806
|
}],
|
|
2807
2807
|
/**
|
|
2808
2808
|
* Backdrop Saturate
|
|
2809
2809
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2810
2810
|
*/
|
|
2811
2811
|
"backdrop-saturate": [{
|
|
2812
|
-
"backdrop-saturate": [P,
|
|
2812
|
+
"backdrop-saturate": [P, j, k]
|
|
2813
2813
|
}],
|
|
2814
2814
|
/**
|
|
2815
2815
|
* Backdrop Sepia
|
|
2816
2816
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2817
2817
|
*/
|
|
2818
2818
|
"backdrop-sepia": [{
|
|
2819
|
-
"backdrop-sepia": ["", P,
|
|
2819
|
+
"backdrop-sepia": ["", P, j, k]
|
|
2820
2820
|
}],
|
|
2821
2821
|
// --------------
|
|
2822
2822
|
// --- Tables ---
|
|
@@ -2833,21 +2833,21 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2833
2833
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2834
2834
|
*/
|
|
2835
2835
|
"border-spacing": [{
|
|
2836
|
-
"border-spacing":
|
|
2836
|
+
"border-spacing": f()
|
|
2837
2837
|
}],
|
|
2838
2838
|
/**
|
|
2839
2839
|
* Border Spacing X
|
|
2840
2840
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2841
2841
|
*/
|
|
2842
2842
|
"border-spacing-x": [{
|
|
2843
|
-
"border-spacing-x":
|
|
2843
|
+
"border-spacing-x": f()
|
|
2844
2844
|
}],
|
|
2845
2845
|
/**
|
|
2846
2846
|
* Border Spacing Y
|
|
2847
2847
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2848
2848
|
*/
|
|
2849
2849
|
"border-spacing-y": [{
|
|
2850
|
-
"border-spacing-y":
|
|
2850
|
+
"border-spacing-y": f()
|
|
2851
2851
|
}],
|
|
2852
2852
|
/**
|
|
2853
2853
|
* Table Layout
|
|
@@ -2871,7 +2871,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2871
2871
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2872
2872
|
*/
|
|
2873
2873
|
transition: [{
|
|
2874
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2874
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", j, k]
|
|
2875
2875
|
}],
|
|
2876
2876
|
/**
|
|
2877
2877
|
* Transition Behavior
|
|
@@ -2885,28 +2885,28 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2885
2885
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2886
2886
|
*/
|
|
2887
2887
|
duration: [{
|
|
2888
|
-
duration: [P, "initial",
|
|
2888
|
+
duration: [P, "initial", j, k]
|
|
2889
2889
|
}],
|
|
2890
2890
|
/**
|
|
2891
2891
|
* Transition Timing Function
|
|
2892
2892
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2893
2893
|
*/
|
|
2894
2894
|
ease: [{
|
|
2895
|
-
ease: ["linear", "initial", A,
|
|
2895
|
+
ease: ["linear", "initial", A, j, k]
|
|
2896
2896
|
}],
|
|
2897
2897
|
/**
|
|
2898
2898
|
* Transition Delay
|
|
2899
2899
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2900
2900
|
*/
|
|
2901
2901
|
delay: [{
|
|
2902
|
-
delay: [P,
|
|
2902
|
+
delay: [P, j, k]
|
|
2903
2903
|
}],
|
|
2904
2904
|
/**
|
|
2905
2905
|
* Animation
|
|
2906
2906
|
* @see https://tailwindcss.com/docs/animation
|
|
2907
2907
|
*/
|
|
2908
2908
|
animate: [{
|
|
2909
|
-
animate: ["none",
|
|
2909
|
+
animate: ["none", N, j, k]
|
|
2910
2910
|
}],
|
|
2911
2911
|
// ------------------
|
|
2912
2912
|
// --- Transforms ---
|
|
@@ -2923,14 +2923,14 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2923
2923
|
* @see https://tailwindcss.com/docs/perspective
|
|
2924
2924
|
*/
|
|
2925
2925
|
perspective: [{
|
|
2926
|
-
perspective: [
|
|
2926
|
+
perspective: [x, j, k]
|
|
2927
2927
|
}],
|
|
2928
2928
|
/**
|
|
2929
2929
|
* Perspective Origin
|
|
2930
2930
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2931
2931
|
*/
|
|
2932
2932
|
"perspective-origin": [{
|
|
2933
|
-
"perspective-origin":
|
|
2933
|
+
"perspective-origin": C()
|
|
2934
2934
|
}],
|
|
2935
2935
|
/**
|
|
2936
2936
|
* Rotate
|
|
@@ -2998,35 +2998,35 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
2998
2998
|
* @see https://tailwindcss.com/docs/skew
|
|
2999
2999
|
*/
|
|
3000
3000
|
skew: [{
|
|
3001
|
-
skew:
|
|
3001
|
+
skew: be()
|
|
3002
3002
|
}],
|
|
3003
3003
|
/**
|
|
3004
3004
|
* Skew X
|
|
3005
3005
|
* @see https://tailwindcss.com/docs/skew
|
|
3006
3006
|
*/
|
|
3007
3007
|
"skew-x": [{
|
|
3008
|
-
"skew-x":
|
|
3008
|
+
"skew-x": be()
|
|
3009
3009
|
}],
|
|
3010
3010
|
/**
|
|
3011
3011
|
* Skew Y
|
|
3012
3012
|
* @see https://tailwindcss.com/docs/skew
|
|
3013
3013
|
*/
|
|
3014
3014
|
"skew-y": [{
|
|
3015
|
-
"skew-y":
|
|
3015
|
+
"skew-y": be()
|
|
3016
3016
|
}],
|
|
3017
3017
|
/**
|
|
3018
3018
|
* Transform
|
|
3019
3019
|
* @see https://tailwindcss.com/docs/transform
|
|
3020
3020
|
*/
|
|
3021
3021
|
transform: [{
|
|
3022
|
-
transform: [
|
|
3022
|
+
transform: [j, k, "", "none", "gpu", "cpu"]
|
|
3023
3023
|
}],
|
|
3024
3024
|
/**
|
|
3025
3025
|
* Transform Origin
|
|
3026
3026
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
3027
3027
|
*/
|
|
3028
3028
|
"transform-origin": [{
|
|
3029
|
-
origin:
|
|
3029
|
+
origin: C()
|
|
3030
3030
|
}],
|
|
3031
3031
|
/**
|
|
3032
3032
|
* Transform Style
|
|
@@ -3104,7 +3104,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
3104
3104
|
* @see https://tailwindcss.com/docs/cursor
|
|
3105
3105
|
*/
|
|
3106
3106
|
cursor: [{
|
|
3107
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
3107
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", j, k]
|
|
3108
3108
|
}],
|
|
3109
3109
|
/**
|
|
3110
3110
|
* Field Sizing
|
|
@@ -3139,154 +3139,154 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
3139
3139
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3140
3140
|
*/
|
|
3141
3141
|
"scroll-m": [{
|
|
3142
|
-
"scroll-m":
|
|
3142
|
+
"scroll-m": f()
|
|
3143
3143
|
}],
|
|
3144
3144
|
/**
|
|
3145
3145
|
* Scroll Margin Inline
|
|
3146
3146
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3147
3147
|
*/
|
|
3148
3148
|
"scroll-mx": [{
|
|
3149
|
-
"scroll-mx":
|
|
3149
|
+
"scroll-mx": f()
|
|
3150
3150
|
}],
|
|
3151
3151
|
/**
|
|
3152
3152
|
* Scroll Margin Block
|
|
3153
3153
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3154
3154
|
*/
|
|
3155
3155
|
"scroll-my": [{
|
|
3156
|
-
"scroll-my":
|
|
3156
|
+
"scroll-my": f()
|
|
3157
3157
|
}],
|
|
3158
3158
|
/**
|
|
3159
3159
|
* Scroll Margin Inline Start
|
|
3160
3160
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3161
3161
|
*/
|
|
3162
3162
|
"scroll-ms": [{
|
|
3163
|
-
"scroll-ms":
|
|
3163
|
+
"scroll-ms": f()
|
|
3164
3164
|
}],
|
|
3165
3165
|
/**
|
|
3166
3166
|
* Scroll Margin Inline End
|
|
3167
3167
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3168
3168
|
*/
|
|
3169
3169
|
"scroll-me": [{
|
|
3170
|
-
"scroll-me":
|
|
3170
|
+
"scroll-me": f()
|
|
3171
3171
|
}],
|
|
3172
3172
|
/**
|
|
3173
3173
|
* Scroll Margin Block Start
|
|
3174
3174
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3175
3175
|
*/
|
|
3176
3176
|
"scroll-mbs": [{
|
|
3177
|
-
"scroll-mbs":
|
|
3177
|
+
"scroll-mbs": f()
|
|
3178
3178
|
}],
|
|
3179
3179
|
/**
|
|
3180
3180
|
* Scroll Margin Block End
|
|
3181
3181
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3182
3182
|
*/
|
|
3183
3183
|
"scroll-mbe": [{
|
|
3184
|
-
"scroll-mbe":
|
|
3184
|
+
"scroll-mbe": f()
|
|
3185
3185
|
}],
|
|
3186
3186
|
/**
|
|
3187
3187
|
* Scroll Margin Top
|
|
3188
3188
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3189
3189
|
*/
|
|
3190
3190
|
"scroll-mt": [{
|
|
3191
|
-
"scroll-mt":
|
|
3191
|
+
"scroll-mt": f()
|
|
3192
3192
|
}],
|
|
3193
3193
|
/**
|
|
3194
3194
|
* Scroll Margin Right
|
|
3195
3195
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3196
3196
|
*/
|
|
3197
3197
|
"scroll-mr": [{
|
|
3198
|
-
"scroll-mr":
|
|
3198
|
+
"scroll-mr": f()
|
|
3199
3199
|
}],
|
|
3200
3200
|
/**
|
|
3201
3201
|
* Scroll Margin Bottom
|
|
3202
3202
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3203
3203
|
*/
|
|
3204
3204
|
"scroll-mb": [{
|
|
3205
|
-
"scroll-mb":
|
|
3205
|
+
"scroll-mb": f()
|
|
3206
3206
|
}],
|
|
3207
3207
|
/**
|
|
3208
3208
|
* Scroll Margin Left
|
|
3209
3209
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3210
3210
|
*/
|
|
3211
3211
|
"scroll-ml": [{
|
|
3212
|
-
"scroll-ml":
|
|
3212
|
+
"scroll-ml": f()
|
|
3213
3213
|
}],
|
|
3214
3214
|
/**
|
|
3215
3215
|
* Scroll Padding
|
|
3216
3216
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3217
3217
|
*/
|
|
3218
3218
|
"scroll-p": [{
|
|
3219
|
-
"scroll-p":
|
|
3219
|
+
"scroll-p": f()
|
|
3220
3220
|
}],
|
|
3221
3221
|
/**
|
|
3222
3222
|
* Scroll Padding Inline
|
|
3223
3223
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3224
3224
|
*/
|
|
3225
3225
|
"scroll-px": [{
|
|
3226
|
-
"scroll-px":
|
|
3226
|
+
"scroll-px": f()
|
|
3227
3227
|
}],
|
|
3228
3228
|
/**
|
|
3229
3229
|
* Scroll Padding Block
|
|
3230
3230
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3231
3231
|
*/
|
|
3232
3232
|
"scroll-py": [{
|
|
3233
|
-
"scroll-py":
|
|
3233
|
+
"scroll-py": f()
|
|
3234
3234
|
}],
|
|
3235
3235
|
/**
|
|
3236
3236
|
* Scroll Padding Inline Start
|
|
3237
3237
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3238
3238
|
*/
|
|
3239
3239
|
"scroll-ps": [{
|
|
3240
|
-
"scroll-ps":
|
|
3240
|
+
"scroll-ps": f()
|
|
3241
3241
|
}],
|
|
3242
3242
|
/**
|
|
3243
3243
|
* Scroll Padding Inline End
|
|
3244
3244
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3245
3245
|
*/
|
|
3246
3246
|
"scroll-pe": [{
|
|
3247
|
-
"scroll-pe":
|
|
3247
|
+
"scroll-pe": f()
|
|
3248
3248
|
}],
|
|
3249
3249
|
/**
|
|
3250
3250
|
* Scroll Padding Block Start
|
|
3251
3251
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3252
3252
|
*/
|
|
3253
3253
|
"scroll-pbs": [{
|
|
3254
|
-
"scroll-pbs":
|
|
3254
|
+
"scroll-pbs": f()
|
|
3255
3255
|
}],
|
|
3256
3256
|
/**
|
|
3257
3257
|
* Scroll Padding Block End
|
|
3258
3258
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3259
3259
|
*/
|
|
3260
3260
|
"scroll-pbe": [{
|
|
3261
|
-
"scroll-pbe":
|
|
3261
|
+
"scroll-pbe": f()
|
|
3262
3262
|
}],
|
|
3263
3263
|
/**
|
|
3264
3264
|
* Scroll Padding Top
|
|
3265
3265
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3266
3266
|
*/
|
|
3267
3267
|
"scroll-pt": [{
|
|
3268
|
-
"scroll-pt":
|
|
3268
|
+
"scroll-pt": f()
|
|
3269
3269
|
}],
|
|
3270
3270
|
/**
|
|
3271
3271
|
* Scroll Padding Right
|
|
3272
3272
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3273
3273
|
*/
|
|
3274
3274
|
"scroll-pr": [{
|
|
3275
|
-
"scroll-pr":
|
|
3275
|
+
"scroll-pr": f()
|
|
3276
3276
|
}],
|
|
3277
3277
|
/**
|
|
3278
3278
|
* Scroll Padding Bottom
|
|
3279
3279
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3280
3280
|
*/
|
|
3281
3281
|
"scroll-pb": [{
|
|
3282
|
-
"scroll-pb":
|
|
3282
|
+
"scroll-pb": f()
|
|
3283
3283
|
}],
|
|
3284
3284
|
/**
|
|
3285
3285
|
* Scroll Padding Left
|
|
3286
3286
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3287
3287
|
*/
|
|
3288
3288
|
"scroll-pl": [{
|
|
3289
|
-
"scroll-pl":
|
|
3289
|
+
"scroll-pl": f()
|
|
3290
3290
|
}],
|
|
3291
3291
|
/**
|
|
3292
3292
|
* Scroll Snap Align
|
|
@@ -3354,7 +3354,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
3354
3354
|
* @see https://tailwindcss.com/docs/will-change
|
|
3355
3355
|
*/
|
|
3356
3356
|
"will-change": [{
|
|
3357
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3357
|
+
"will-change": ["auto", "scroll", "contents", "transform", j, k]
|
|
3358
3358
|
}],
|
|
3359
3359
|
// -----------
|
|
3360
3360
|
// --- SVG ---
|
|
@@ -3371,7 +3371,7 @@ const Te = (e) => typeof e == "object" && e !== null, V = (e, r) => {
|
|
|
3371
3371
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3372
3372
|
*/
|
|
3373
3373
|
"stroke-w": [{
|
|
3374
|
-
stroke: [P, xe, ue,
|
|
3374
|
+
stroke: [P, xe, ue, Oe]
|
|
3375
3375
|
}],
|
|
3376
3376
|
/**
|
|
3377
3377
|
* Stroke
|
|
@@ -3463,20 +3463,26 @@ function or() {
|
|
|
3463
3463
|
function T(...e) {
|
|
3464
3464
|
return sr(or(e));
|
|
3465
3465
|
}
|
|
3466
|
-
const
|
|
3466
|
+
const ar = {
|
|
3467
|
+
sm: "w-16 h-16",
|
|
3468
|
+
md: "w-24 h-24",
|
|
3469
|
+
lg: "w-32 h-32",
|
|
3470
|
+
xl: "w-40 h-40"
|
|
3471
|
+
}, yr = ({
|
|
3467
3472
|
progress: e,
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3473
|
+
size: r = "md",
|
|
3474
|
+
radius: a = 20,
|
|
3475
|
+
className: s = "",
|
|
3476
|
+
children: n,
|
|
3477
|
+
ariaLabel: d
|
|
3472
3478
|
}) => {
|
|
3473
|
-
const
|
|
3479
|
+
const l = 2 * Math.PI * a, i = l / 2, c = i * (1 - e / 100), g = i * (1 - e / 100);
|
|
3474
3480
|
return /* @__PURE__ */ t.jsxs(
|
|
3475
3481
|
"div",
|
|
3476
3482
|
{
|
|
3477
|
-
className: T("relative",
|
|
3483
|
+
className: T("relative", ar[r], s),
|
|
3478
3484
|
role: "progressbar",
|
|
3479
|
-
"aria-label":
|
|
3485
|
+
"aria-label": d || "Progress",
|
|
3480
3486
|
"aria-valuenow": Math.max(0, Math.min(100, e)),
|
|
3481
3487
|
"aria-valuemin": 0,
|
|
3482
3488
|
"aria-valuemax": 100,
|
|
@@ -3492,13 +3498,13 @@ const gr = ({
|
|
|
3492
3498
|
{
|
|
3493
3499
|
cx: "25",
|
|
3494
3500
|
cy: "25",
|
|
3495
|
-
r,
|
|
3501
|
+
r: a,
|
|
3496
3502
|
fill: "none",
|
|
3497
3503
|
stroke: "var(--color-accent)",
|
|
3498
3504
|
strokeWidth: "4",
|
|
3499
3505
|
strokeLinecap: "butt",
|
|
3500
|
-
strokeDasharray: `${
|
|
3501
|
-
strokeDashoffset:
|
|
3506
|
+
strokeDasharray: `${i * 0.98} ${l}`,
|
|
3507
|
+
strokeDashoffset: c,
|
|
3502
3508
|
transform: "rotate(-90 25 25)",
|
|
3503
3509
|
style: {
|
|
3504
3510
|
filter: "drop-shadow(0 0 8px var(--color-accent))"
|
|
@@ -3510,13 +3516,13 @@ const gr = ({
|
|
|
3510
3516
|
{
|
|
3511
3517
|
cx: "25",
|
|
3512
3518
|
cy: "25",
|
|
3513
|
-
r,
|
|
3519
|
+
r: a,
|
|
3514
3520
|
fill: "none",
|
|
3515
3521
|
stroke: "var(--color-primary)",
|
|
3516
3522
|
strokeWidth: "4",
|
|
3517
3523
|
strokeLinecap: "butt",
|
|
3518
|
-
strokeDasharray: `${
|
|
3519
|
-
strokeDashoffset:
|
|
3524
|
+
strokeDasharray: `${i * 0.98} ${l}`,
|
|
3525
|
+
strokeDashoffset: g,
|
|
3520
3526
|
transform: "rotate(90 25 25)",
|
|
3521
3527
|
style: {
|
|
3522
3528
|
filter: "drop-shadow(0 0 8px var(--color-primary))"
|
|
@@ -3526,31 +3532,37 @@ const gr = ({
|
|
|
3526
3532
|
]
|
|
3527
3533
|
}
|
|
3528
3534
|
),
|
|
3529
|
-
|
|
3535
|
+
n && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: n })
|
|
3530
3536
|
]
|
|
3531
3537
|
}
|
|
3532
3538
|
);
|
|
3533
|
-
},
|
|
3539
|
+
}, nr = {
|
|
3534
3540
|
SEGMENT_COUNT: 20,
|
|
3535
3541
|
SEGMENT_ANGLE: 360 / 20,
|
|
3536
3542
|
GAP_ANGLE: 4,
|
|
3537
3543
|
INNER_RADIUS: 18.5,
|
|
3538
3544
|
OUTER_RADIUS: 23.5,
|
|
3539
3545
|
OUTER_TICK_RADIUS: 30
|
|
3540
|
-
},
|
|
3546
|
+
}, lr = {
|
|
3547
|
+
sm: "w-16 h-16",
|
|
3548
|
+
md: "w-24 h-24",
|
|
3549
|
+
lg: "w-32 h-32",
|
|
3550
|
+
xl: "w-40 h-40"
|
|
3551
|
+
}, vr = ({
|
|
3541
3552
|
progress: e,
|
|
3542
|
-
|
|
3543
|
-
|
|
3553
|
+
size: r = "md",
|
|
3554
|
+
className: a = "",
|
|
3555
|
+
children: s
|
|
3544
3556
|
}) => {
|
|
3545
3557
|
const {
|
|
3546
|
-
SEGMENT_COUNT:
|
|
3547
|
-
SEGMENT_ANGLE:
|
|
3548
|
-
GAP_ANGLE:
|
|
3549
|
-
INNER_RADIUS:
|
|
3550
|
-
OUTER_RADIUS:
|
|
3551
|
-
OUTER_TICK_RADIUS:
|
|
3552
|
-
} =
|
|
3553
|
-
return /* @__PURE__ */ t.jsxs("div", { className: T("relative", r), children: [
|
|
3558
|
+
SEGMENT_COUNT: n,
|
|
3559
|
+
SEGMENT_ANGLE: d,
|
|
3560
|
+
GAP_ANGLE: l,
|
|
3561
|
+
INNER_RADIUS: i,
|
|
3562
|
+
OUTER_RADIUS: c,
|
|
3563
|
+
OUTER_TICK_RADIUS: g
|
|
3564
|
+
} = nr, m = d - l;
|
|
3565
|
+
return /* @__PURE__ */ t.jsxs("div", { className: T("relative", lr[r], a), children: [
|
|
3554
3566
|
/* @__PURE__ */ t.jsxs(
|
|
3555
3567
|
"svg",
|
|
3556
3568
|
{
|
|
@@ -3558,49 +3570,49 @@ const gr = ({
|
|
|
3558
3570
|
viewBox: "0 0 60 60",
|
|
3559
3571
|
style: { overflow: "visible" },
|
|
3560
3572
|
children: [
|
|
3561
|
-
[...Array(60)].map((
|
|
3562
|
-
const
|
|
3573
|
+
[...Array(60)].map((y, p) => {
|
|
3574
|
+
const h = 6 * p, x = p % 5 === 0 ? 6 : 3, v = "var(--color-muted)", A = 30 + g * Math.cos(h * Math.PI / 180), N = 30 + g * Math.sin(h * Math.PI / 180), _ = 30 + (g - x) * Math.cos(h * Math.PI / 180), $ = 30 + (g - x) * Math.sin(h * Math.PI / 180);
|
|
3563
3575
|
return /* @__PURE__ */ t.jsx(
|
|
3564
3576
|
"line",
|
|
3565
3577
|
{
|
|
3566
|
-
x1:
|
|
3567
|
-
y1:
|
|
3568
|
-
x2:
|
|
3569
|
-
y2:
|
|
3570
|
-
stroke:
|
|
3578
|
+
x1: A,
|
|
3579
|
+
y1: N,
|
|
3580
|
+
x2: _,
|
|
3581
|
+
y2: $,
|
|
3582
|
+
stroke: v,
|
|
3571
3583
|
strokeWidth: 1,
|
|
3572
3584
|
strokeLinecap: "round",
|
|
3573
3585
|
opacity: 0.7
|
|
3574
3586
|
},
|
|
3575
|
-
`tick-${
|
|
3587
|
+
`tick-${p}`
|
|
3576
3588
|
);
|
|
3577
3589
|
}),
|
|
3578
|
-
[...Array(
|
|
3579
|
-
const
|
|
3590
|
+
[...Array(n)].map((y, p) => {
|
|
3591
|
+
const h = d * p - 90 + l / 2, w = h + m, x = (B) => B * Math.PI / 180, v = 30 + i * Math.cos(x(h)), A = 30 + i * Math.sin(x(h)), N = 30 + c * Math.cos(x(h)), _ = 30 + c * Math.sin(x(h)), $ = 30 + c * Math.cos(x(w)), C = 30 + c * Math.sin(x(w)), z = 30 + i * Math.cos(x(w)), G = 30 + i * Math.sin(x(w)), f = `M ${v} ${A} L ${N} ${_} L ${$} ${C} L ${z} ${G} Z`, M = p < Math.floor(e / 5);
|
|
3580
3592
|
return /* @__PURE__ */ t.jsx(
|
|
3581
3593
|
"path",
|
|
3582
3594
|
{
|
|
3583
|
-
d:
|
|
3584
|
-
fill:
|
|
3595
|
+
d: f,
|
|
3596
|
+
fill: M ? "var(--color-accent)" : "var(--color-border-default)",
|
|
3585
3597
|
style: {
|
|
3586
|
-
filter:
|
|
3598
|
+
filter: M ? "drop-shadow(0 0 6px var(--color-accent))" : "none",
|
|
3587
3599
|
transition: "fill 0.3s ease"
|
|
3588
3600
|
}
|
|
3589
3601
|
},
|
|
3590
|
-
`segment-${
|
|
3602
|
+
`segment-${p}`
|
|
3591
3603
|
);
|
|
3592
3604
|
})
|
|
3593
3605
|
]
|
|
3594
3606
|
}
|
|
3595
3607
|
),
|
|
3596
|
-
|
|
3608
|
+
s && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: s })
|
|
3597
3609
|
] });
|
|
3598
|
-
},
|
|
3610
|
+
}, wr = ({
|
|
3599
3611
|
progress: e,
|
|
3600
3612
|
size: r = "md",
|
|
3601
3613
|
className: a = ""
|
|
3602
3614
|
}) => {
|
|
3603
|
-
const s = (
|
|
3615
|
+
const s = (g) => U(g, ae.linearProgress.width), n = (g) => U(g, ae.linearProgress.height), d = s(r), l = n(r), i = T("bg-surface rounded-full shadow-inner", l, a || d), c = T("bg-gradient-to-r from-accent to-primary rounded-full shadow-lg-accent transition-all duration-500 ease-out", l);
|
|
3604
3616
|
return /* @__PURE__ */ t.jsx(
|
|
3605
3617
|
"div",
|
|
3606
3618
|
{
|
|
@@ -3612,20 +3624,20 @@ const gr = ({
|
|
|
3612
3624
|
children: /* @__PURE__ */ t.jsx(
|
|
3613
3625
|
"div",
|
|
3614
3626
|
{
|
|
3615
|
-
className:
|
|
3627
|
+
className: c,
|
|
3616
3628
|
style: { width: `${e}%` }
|
|
3617
3629
|
}
|
|
3618
3630
|
)
|
|
3619
3631
|
}
|
|
3620
3632
|
);
|
|
3621
|
-
},
|
|
3633
|
+
}, ir = ({
|
|
3622
3634
|
type: e,
|
|
3623
3635
|
title: r,
|
|
3624
3636
|
message: a,
|
|
3625
3637
|
size: s = "md",
|
|
3626
3638
|
onClose: n
|
|
3627
3639
|
}) => {
|
|
3628
|
-
const
|
|
3640
|
+
const d = (y) => U(y, ae.notification), i = (() => {
|
|
3629
3641
|
switch (e) {
|
|
3630
3642
|
case "success":
|
|
3631
3643
|
return {
|
|
@@ -3673,8 +3685,8 @@ const gr = ({
|
|
|
3673
3685
|
icon: null
|
|
3674
3686
|
};
|
|
3675
3687
|
}
|
|
3676
|
-
})(),
|
|
3677
|
-
return /* @__PURE__ */ t.jsxs("div", { className: `flex items-start rounded-lg ${
|
|
3688
|
+
})(), c = d(s), g = e === "error" ? "alert" : "status", m = e === "warning" ? "hover:text-default/70" : "hover:text-base/70";
|
|
3689
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `flex items-start rounded-lg ${c} ${i.container}`, role: g, "aria-atomic": "true", children: [
|
|
3678
3690
|
/* @__PURE__ */ t.jsx("div", { className: "flex-shrink-0", children: i.icon }),
|
|
3679
3691
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-1", children: [
|
|
3680
3692
|
/* @__PURE__ */ t.jsx("h4", { className: `font-bold ${i.textColor}`, children: r }),
|
|
@@ -3683,7 +3695,7 @@ const gr = ({
|
|
|
3683
3695
|
n && /* @__PURE__ */ t.jsx(
|
|
3684
3696
|
"button",
|
|
3685
3697
|
{
|
|
3686
|
-
className: `flex-shrink-0 ${i.textColor} ${
|
|
3698
|
+
className: `flex-shrink-0 ${i.textColor} ${m} transition-colors cursor-pointer`,
|
|
3687
3699
|
onClick: n,
|
|
3688
3700
|
"aria-label": "Close notification",
|
|
3689
3701
|
children: /* @__PURE__ */ t.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ t.jsx(
|
|
@@ -3703,7 +3715,7 @@ const gr = ({
|
|
|
3703
3715
|
className: a = "",
|
|
3704
3716
|
disabled: s = !1,
|
|
3705
3717
|
children: n,
|
|
3706
|
-
...
|
|
3718
|
+
...d
|
|
3707
3719
|
}) => {
|
|
3708
3720
|
const l = [
|
|
3709
3721
|
"group",
|
|
@@ -3719,7 +3731,7 @@ const gr = ({
|
|
|
3719
3731
|
"transform",
|
|
3720
3732
|
"focus:outline-none",
|
|
3721
3733
|
s ? "cursor-not-allowed" : "cursor-pointer"
|
|
3722
|
-
].join(" "), i = (
|
|
3734
|
+
].join(" "), i = (y) => U(y, ae.button), c = (y, p) => ({
|
|
3723
3735
|
primary: {
|
|
3724
3736
|
enabled: "bg-linear-(--gradient-accent) text-base shadow-primary border-none hover:shadow-lg-accent hover:scale-105 focus-visible:ring-2 focus-visible:ring-accent/50 active:scale-95",
|
|
3725
3737
|
disabled: "bg-base border-2 border-accent/20 text-accent/40 shadow-none opacity-50 hover:scale-100"
|
|
@@ -3736,33 +3748,33 @@ const gr = ({
|
|
|
3736
3748
|
enabled: "bg-surface border-2 border-accent text-accent shadow-secondary hover:bg-accent hover:text-base hover:shadow-lg-accent hover:scale-105 focus-visible:ring-2 focus-visible:ring-accent/50 active:scale-95",
|
|
3737
3749
|
disabled: "bg-base border-2 border-accent/10 text-muted/60 shadow-none opacity-40 hover:bg-base hover:text-muted/60 hover:scale-100"
|
|
3738
3750
|
}
|
|
3739
|
-
})[
|
|
3751
|
+
})[y][p ? "disabled" : "enabled"], g = T(l, i(r), c(e, s), a), m = e === "primary" && !s;
|
|
3740
3752
|
return /* @__PURE__ */ t.jsxs(
|
|
3741
3753
|
"button",
|
|
3742
3754
|
{
|
|
3743
|
-
className:
|
|
3755
|
+
className: g,
|
|
3744
3756
|
disabled: s,
|
|
3745
|
-
...
|
|
3757
|
+
...d,
|
|
3746
3758
|
children: [
|
|
3747
3759
|
/* @__PURE__ */ t.jsx("span", { className: "relative z-10", children: n }),
|
|
3748
|
-
|
|
3760
|
+
m && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-700" }),
|
|
3749
3761
|
s && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 bg-gradient-to-br from-transparent via-base/10 to-transparent pointer-events-none" })
|
|
3750
3762
|
]
|
|
3751
3763
|
}
|
|
3752
3764
|
);
|
|
3753
|
-
},
|
|
3765
|
+
}, kr = ({
|
|
3754
3766
|
variant: e = "primary",
|
|
3755
3767
|
size: r = "md",
|
|
3756
3768
|
label: a,
|
|
3757
3769
|
helperText: s,
|
|
3758
3770
|
error: n,
|
|
3759
|
-
leftIcon:
|
|
3771
|
+
leftIcon: d,
|
|
3760
3772
|
rightIcon: l,
|
|
3761
3773
|
className: i = "",
|
|
3762
|
-
disabled:
|
|
3763
|
-
...
|
|
3774
|
+
disabled: c = !1,
|
|
3775
|
+
...g
|
|
3764
3776
|
}) => {
|
|
3765
|
-
const
|
|
3777
|
+
const m = Fe(), y = g.id || m, p = [
|
|
3766
3778
|
"w-full",
|
|
3767
3779
|
"rounded-lg",
|
|
3768
3780
|
"bg-surface",
|
|
@@ -3771,11 +3783,11 @@ const gr = ({
|
|
|
3771
3783
|
"transition-all",
|
|
3772
3784
|
"duration-300",
|
|
3773
3785
|
"focus:outline-none",
|
|
3774
|
-
|
|
3775
|
-
].join(" "),
|
|
3776
|
-
const
|
|
3777
|
-
return
|
|
3778
|
-
},
|
|
3786
|
+
c ? "cursor-not-allowed opacity-60" : "cursor-text"
|
|
3787
|
+
].join(" "), h = ($) => U($, ae.input), w = ($) => {
|
|
3788
|
+
const C = h($);
|
|
3789
|
+
return d && l ? `pl-10 pr-10 ${C}` : d ? `pl-10 pr-4 ${C}` : l ? `pl-4 pr-10 ${C}` : `px-4 ${C}`;
|
|
3790
|
+
}, x = ($, C, z) => C ? "border-2 border-error shadow-error/30 hover:shadow-error focus:ring-2 focus:ring-error focus:shadow-error active:bg-base" : z ? {
|
|
3779
3791
|
primary: "border-2 border-accent/20 shadow-none",
|
|
3780
3792
|
secondary: "border-2 border-secondary/20 shadow-none",
|
|
3781
3793
|
danger: "border-2 border-error/20 shadow-none",
|
|
@@ -3785,130 +3797,130 @@ const gr = ({
|
|
|
3785
3797
|
secondary: "border-2 border-secondary shadow-secondary/30 hover:shadow-secondary focus:ring-2 focus:ring-secondary focus:shadow-secondary active:bg-base",
|
|
3786
3798
|
danger: "border-2 border-error shadow-error/30 hover:shadow-error focus:ring-2 focus:ring-error focus:shadow-error active:bg-base",
|
|
3787
3799
|
ghost: "border border-border-default shadow-none hover:border-accent focus:ring-2 focus:ring-accent focus:border-accent active:bg-base"
|
|
3788
|
-
}[$],
|
|
3800
|
+
}[$], v = ($) => ({
|
|
3789
3801
|
primary: "text-accent",
|
|
3790
3802
|
secondary: "text-secondary",
|
|
3791
3803
|
danger: "text-error",
|
|
3792
3804
|
ghost: "text-muted"
|
|
3793
|
-
})[$], A = T(
|
|
3805
|
+
})[$], A = T(p, w(r), x(e, !!n, c), i), N = v(e), _ = n ? `${y}-error` : s ? `${y}-help` : void 0;
|
|
3794
3806
|
return /* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
3795
|
-
a && /* @__PURE__ */ t.jsx("label", { htmlFor:
|
|
3807
|
+
a && /* @__PURE__ */ t.jsx("label", { htmlFor: y, className: "block text-sm font-medium text-default", children: a }),
|
|
3796
3808
|
/* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
|
|
3797
|
-
|
|
3809
|
+
d && /* @__PURE__ */ t.jsx("div", { className: `absolute inset-y-0 left-0 flex items-center pl-3 ${N}`, children: d }),
|
|
3798
3810
|
/* @__PURE__ */ t.jsx(
|
|
3799
3811
|
"input",
|
|
3800
3812
|
{
|
|
3801
3813
|
className: A,
|
|
3802
|
-
disabled:
|
|
3803
|
-
id:
|
|
3814
|
+
disabled: c,
|
|
3815
|
+
id: y,
|
|
3804
3816
|
"aria-invalid": !!n,
|
|
3805
3817
|
"aria-describedby": _,
|
|
3806
|
-
...
|
|
3818
|
+
...g
|
|
3807
3819
|
}
|
|
3808
3820
|
),
|
|
3809
|
-
l && /* @__PURE__ */ t.jsx("div", { className: `absolute inset-y-0 right-0 flex items-center pr-3 ${
|
|
3821
|
+
l && /* @__PURE__ */ t.jsx("div", { className: `absolute inset-y-0 right-0 flex items-center pr-3 ${N}`, children: l })
|
|
3810
3822
|
] }),
|
|
3811
|
-
(s || n) && /* @__PURE__ */ t.jsx("div", { id: n ? `${
|
|
3823
|
+
(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 })
|
|
3812
3824
|
] });
|
|
3813
|
-
},
|
|
3825
|
+
}, jr = ({
|
|
3814
3826
|
variant: e = "default",
|
|
3815
3827
|
size: r = "md",
|
|
3816
3828
|
title: a,
|
|
3817
3829
|
titleBorder: s = !0,
|
|
3818
3830
|
children: n,
|
|
3819
|
-
className:
|
|
3831
|
+
className: d = "",
|
|
3820
3832
|
...l
|
|
3821
3833
|
}) => {
|
|
3822
|
-
const i = (
|
|
3823
|
-
const
|
|
3834
|
+
const i = (m) => U(m, ae.card), c = (m) => {
|
|
3835
|
+
const y = i(r);
|
|
3824
3836
|
return {
|
|
3825
|
-
default: `bg-base border border-border-default rounded-xl ${
|
|
3826
|
-
accent: `bg-surface border-2 border-accent rounded-xl shadow-input-accent/50 hover:shadow-lg-accent transition-all duration-300 transform ${
|
|
3827
|
-
small: `bg-base rounded-lg border border-border-default ${
|
|
3828
|
-
}[
|
|
3829
|
-
},
|
|
3830
|
-
return /* @__PURE__ */ t.jsxs("div", { className: T(
|
|
3831
|
-
a && /* @__PURE__ */ t.jsx("h3", { className:
|
|
3837
|
+
default: `bg-base border border-border-default rounded-xl ${y}`,
|
|
3838
|
+
accent: `bg-surface border-2 border-accent rounded-xl shadow-input-accent/50 hover:shadow-lg-accent transition-all duration-300 transform ${y}`,
|
|
3839
|
+
small: `bg-base rounded-lg border border-border-default ${y}`
|
|
3840
|
+
}[m];
|
|
3841
|
+
}, g = (m) => m ? "text-xl font-semibold text-secondary mb-4 border-b border-accent pb-2" : "text-xl font-semibold text-secondary mb-4";
|
|
3842
|
+
return /* @__PURE__ */ t.jsxs("div", { className: T(c(e), d), ...l, children: [
|
|
3843
|
+
a && /* @__PURE__ */ t.jsx("h3", { className: g(s), children: a }),
|
|
3832
3844
|
n
|
|
3833
3845
|
] });
|
|
3834
|
-
},
|
|
3846
|
+
}, Nr = ({
|
|
3835
3847
|
variant: e = "primary",
|
|
3836
3848
|
size: r = "md",
|
|
3837
3849
|
children: a,
|
|
3838
3850
|
className: s = "",
|
|
3839
3851
|
leftIcon: n,
|
|
3840
|
-
rightIcon:
|
|
3852
|
+
rightIcon: d,
|
|
3841
3853
|
clickable: l = !1,
|
|
3842
3854
|
onClick: i,
|
|
3843
|
-
...
|
|
3855
|
+
...c
|
|
3844
3856
|
}) => {
|
|
3845
|
-
const
|
|
3857
|
+
const g = (p) => U(p, ae.badge), m = (p) => ({
|
|
3846
3858
|
primary: "text-base bg-primary shadow-lg",
|
|
3847
3859
|
secondary: "text-base bg-secondary shadow-lg",
|
|
3848
3860
|
accent: "text-base bg-accent shadow-lg",
|
|
3849
3861
|
success: "text-base bg-success shadow-lg",
|
|
3850
3862
|
error: "text-base bg-error shadow-lg",
|
|
3851
3863
|
warning: "text-base bg-warning shadow-lg"
|
|
3852
|
-
})[
|
|
3864
|
+
})[p], y = (p, h) => !h && !i ? "transition-shadow" : {
|
|
3853
3865
|
primary: "hover:shadow-primary transition-shadow cursor-pointer",
|
|
3854
3866
|
secondary: "hover:shadow-secondary transition-shadow cursor-pointer",
|
|
3855
3867
|
accent: "hover:shadow-lg-accent transition-shadow cursor-pointer",
|
|
3856
3868
|
success: "hover:shadow-success transition-shadow cursor-pointer",
|
|
3857
3869
|
error: "hover:shadow-error transition-shadow cursor-pointer",
|
|
3858
3870
|
warning: "hover:shadow-warning transition-shadow cursor-pointer"
|
|
3859
|
-
}[
|
|
3871
|
+
}[p];
|
|
3860
3872
|
return /* @__PURE__ */ t.jsxs(
|
|
3861
3873
|
"span",
|
|
3862
3874
|
{
|
|
3863
|
-
className: T("inline-flex items-center rounded-full font-semibold",
|
|
3875
|
+
className: T("inline-flex items-center rounded-full font-semibold", g(r), m(e), y(e, l || !!i), s),
|
|
3864
3876
|
onClick: i,
|
|
3865
|
-
...
|
|
3877
|
+
...c,
|
|
3866
3878
|
children: [
|
|
3867
3879
|
n,
|
|
3868
3880
|
/* @__PURE__ */ t.jsx("span", { children: a }),
|
|
3869
|
-
|
|
3881
|
+
d
|
|
3870
3882
|
]
|
|
3871
3883
|
}
|
|
3872
3884
|
);
|
|
3873
|
-
},
|
|
3885
|
+
}, Cr = ({
|
|
3874
3886
|
label: e,
|
|
3875
3887
|
size: r = "md",
|
|
3876
3888
|
variant: a = "primary",
|
|
3877
3889
|
className: s = "",
|
|
3878
3890
|
checked: n = !1,
|
|
3879
|
-
onChange:
|
|
3891
|
+
onChange: d,
|
|
3880
3892
|
disabled: l = !1,
|
|
3881
3893
|
id: i,
|
|
3882
|
-
...
|
|
3894
|
+
...c
|
|
3883
3895
|
}) => {
|
|
3884
|
-
const
|
|
3885
|
-
l ||
|
|
3886
|
-
},
|
|
3896
|
+
const g = (x) => {
|
|
3897
|
+
l || d && d(x.target.checked);
|
|
3898
|
+
}, m = (x) => U(x, {
|
|
3887
3899
|
sm: "w-10 h-5 after:h-4 after:w-4",
|
|
3888
3900
|
md: "w-14 h-7 after:h-6 after:w-6",
|
|
3889
3901
|
lg: "w-16 h-8 after:h-7 after:w-7"
|
|
3890
|
-
}),
|
|
3891
|
-
if (
|
|
3902
|
+
}), y = (x, v) => {
|
|
3903
|
+
if (v)
|
|
3892
3904
|
return "bg-gray-600 peer-checked:bg-gray-500 opacity-50 cursor-not-allowed";
|
|
3893
3905
|
const A = {
|
|
3894
3906
|
primary: "bg-gray-600 peer-checked:bg-linear-(--gradient-accent) peer-focus:ring-primary",
|
|
3895
3907
|
secondary: "bg-gray-600 peer-checked:bg-secondary peer-focus:ring-secondary",
|
|
3896
3908
|
accent: "bg-gray-600 peer-checked:bg-accent peer-focus:ring-accent"
|
|
3897
3909
|
};
|
|
3898
|
-
return A[
|
|
3899
|
-
},
|
|
3910
|
+
return A[x] || A.primary;
|
|
3911
|
+
}, p = T(
|
|
3900
3912
|
"relative inline-flex items-center",
|
|
3901
3913
|
l ? "cursor-not-allowed opacity-50" : "cursor-pointer"
|
|
3902
|
-
),
|
|
3903
|
-
|
|
3904
|
-
|
|
3914
|
+
), h = T(
|
|
3915
|
+
m(r),
|
|
3916
|
+
y(a, l),
|
|
3905
3917
|
"peer-focus:outline-none rounded-full peer",
|
|
3906
3918
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
3907
3919
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px]",
|
|
3908
3920
|
"after:bg-white after:rounded-full after:transition-all",
|
|
3909
3921
|
"transition-colors duration-300"
|
|
3910
|
-
),
|
|
3911
|
-
return /* @__PURE__ */ t.jsxs("div", { className:
|
|
3922
|
+
), w = T("flex items-center justify-between", e && "space-x-3", s);
|
|
3923
|
+
return /* @__PURE__ */ t.jsxs("div", { className: w, children: [
|
|
3912
3924
|
e && /* @__PURE__ */ t.jsx(
|
|
3913
3925
|
"label",
|
|
3914
3926
|
{
|
|
@@ -3917,79 +3929,84 @@ const gr = ({
|
|
|
3917
3929
|
children: e
|
|
3918
3930
|
}
|
|
3919
3931
|
),
|
|
3920
|
-
/* @__PURE__ */ t.jsxs("label", { className:
|
|
3932
|
+
/* @__PURE__ */ t.jsxs("label", { className: p, children: [
|
|
3921
3933
|
/* @__PURE__ */ t.jsx(
|
|
3922
3934
|
"input",
|
|
3923
3935
|
{
|
|
3924
3936
|
type: "checkbox",
|
|
3925
3937
|
className: "sr-only peer",
|
|
3926
3938
|
checked: n,
|
|
3927
|
-
onChange:
|
|
3939
|
+
onChange: g,
|
|
3928
3940
|
disabled: l,
|
|
3929
3941
|
id: i,
|
|
3930
|
-
...
|
|
3942
|
+
...c
|
|
3931
3943
|
}
|
|
3932
3944
|
),
|
|
3933
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
3945
|
+
/* @__PURE__ */ t.jsx("div", { className: h })
|
|
3934
3946
|
] })
|
|
3935
3947
|
] });
|
|
3936
|
-
},
|
|
3948
|
+
}, Sr = ({
|
|
3937
3949
|
label: e,
|
|
3938
3950
|
size: r = "md",
|
|
3939
3951
|
variant: a = "primary",
|
|
3940
3952
|
options: s,
|
|
3941
3953
|
placeholder: n,
|
|
3942
|
-
helperText:
|
|
3954
|
+
helperText: d,
|
|
3943
3955
|
error: l,
|
|
3944
3956
|
className: i = "",
|
|
3945
|
-
disabled:
|
|
3946
|
-
id:
|
|
3947
|
-
name:
|
|
3948
|
-
|
|
3957
|
+
disabled: c = !1,
|
|
3958
|
+
id: g,
|
|
3959
|
+
name: m,
|
|
3960
|
+
onValueChange: y,
|
|
3961
|
+
onChange: p,
|
|
3962
|
+
...h
|
|
3949
3963
|
}) => {
|
|
3950
|
-
const
|
|
3951
|
-
|
|
3964
|
+
const w = (f) => {
|
|
3965
|
+
p?.(f), y?.(f.target.value);
|
|
3966
|
+
}, x = Fe(), v = g || x, A = m || v, N = (f) => U(f, ae.input), _ = (f, M, B) => {
|
|
3967
|
+
if (M)
|
|
3952
3968
|
return "bg-base border-2 border-border-default/30 text-muted/50 cursor-not-allowed opacity-50";
|
|
3953
|
-
if (
|
|
3969
|
+
if (B)
|
|
3954
3970
|
return "bg-surface border-2 border-error text-default focus:ring-2 focus:ring-error focus:border-error shadow-error";
|
|
3955
|
-
const
|
|
3971
|
+
const X = {
|
|
3956
3972
|
primary: "bg-surface border-2 border-border-default text-default focus:ring-2 focus:ring-primary focus:border-primary shadow-primary",
|
|
3957
3973
|
secondary: "bg-surface border-2 border-secondary text-default focus:ring-2 focus:ring-secondary focus:border-secondary shadow-secondary/30",
|
|
3958
3974
|
danger: "bg-surface border-2 border-error text-default focus:ring-2 focus:ring-error focus:border-error shadow-error/30",
|
|
3959
3975
|
ghost: "bg-base border-2 border-accent/20 text-default focus:ring-2 focus:ring-accent focus:border-accent shadow-secondary"
|
|
3960
3976
|
};
|
|
3961
|
-
return
|
|
3962
|
-
},
|
|
3977
|
+
return X[f] || X.primary;
|
|
3978
|
+
}, $ = T(
|
|
3963
3979
|
"appearance-none w-full rounded-lg font-mono transition-all duration-300 focus:outline-none px-4 pr-10",
|
|
3964
|
-
|
|
3965
|
-
|
|
3980
|
+
N(r),
|
|
3981
|
+
_(a, c, !!l),
|
|
3966
3982
|
i
|
|
3967
|
-
), C = "relative w-full",
|
|
3983
|
+
), C = "relative w-full", z = T(
|
|
3968
3984
|
"block text-sm font-medium mb-2 transition-colors duration-200",
|
|
3969
|
-
|
|
3970
|
-
),
|
|
3985
|
+
c ? "text-muted opacity-50" : l ? "text-error" : "text-default"
|
|
3986
|
+
), G = T("mt-2 text-xs transition-colors duration-200", l ? "text-error" : "text-muted");
|
|
3971
3987
|
return /* @__PURE__ */ t.jsxs("div", { className: "w-full", children: [
|
|
3972
|
-
e && /* @__PURE__ */ t.jsx("label", { htmlFor:
|
|
3988
|
+
e && /* @__PURE__ */ t.jsx("label", { htmlFor: v, className: z, children: e }),
|
|
3973
3989
|
/* @__PURE__ */ t.jsxs("div", { className: C, children: [
|
|
3974
3990
|
/* @__PURE__ */ t.jsxs(
|
|
3975
3991
|
"select",
|
|
3976
3992
|
{
|
|
3977
|
-
className:
|
|
3978
|
-
disabled:
|
|
3979
|
-
id:
|
|
3980
|
-
name:
|
|
3981
|
-
|
|
3993
|
+
className: $,
|
|
3994
|
+
disabled: c,
|
|
3995
|
+
id: v,
|
|
3996
|
+
name: A,
|
|
3997
|
+
onChange: w,
|
|
3998
|
+
...h,
|
|
3982
3999
|
children: [
|
|
3983
4000
|
n && /* @__PURE__ */ t.jsx("option", { value: "", disabled: !0, children: n }),
|
|
3984
|
-
s.map((
|
|
4001
|
+
s.map((f) => /* @__PURE__ */ t.jsx(
|
|
3985
4002
|
"option",
|
|
3986
4003
|
{
|
|
3987
|
-
value:
|
|
3988
|
-
disabled:
|
|
4004
|
+
value: f.value,
|
|
4005
|
+
disabled: f.disabled,
|
|
3989
4006
|
className: "bg-surface text-default",
|
|
3990
|
-
children:
|
|
4007
|
+
children: f.label
|
|
3991
4008
|
},
|
|
3992
|
-
|
|
4009
|
+
f.value
|
|
3993
4010
|
))
|
|
3994
4011
|
]
|
|
3995
4012
|
}
|
|
@@ -3997,7 +4014,7 @@ const gr = ({
|
|
|
3997
4014
|
/* @__PURE__ */ t.jsx(
|
|
3998
4015
|
"div",
|
|
3999
4016
|
{
|
|
4000
|
-
className: `pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 ${
|
|
4017
|
+
className: `pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 ${c ? "text-muted/50" : l ? "text-error" : "text-accent"}`,
|
|
4001
4018
|
children: /* @__PURE__ */ t.jsx("svg", { className: "w-4 h-4", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ t.jsx(
|
|
4002
4019
|
"path",
|
|
4003
4020
|
{
|
|
@@ -4009,92 +4026,92 @@ const gr = ({
|
|
|
4009
4026
|
}
|
|
4010
4027
|
)
|
|
4011
4028
|
] }),
|
|
4012
|
-
(
|
|
4029
|
+
(d || l) && /* @__PURE__ */ t.jsx("div", { className: G, children: l || d })
|
|
4013
4030
|
] });
|
|
4014
|
-
},
|
|
4031
|
+
}, Er = ({
|
|
4015
4032
|
variant: e = "text",
|
|
4016
4033
|
size: r = "md",
|
|
4017
4034
|
width: a,
|
|
4018
4035
|
height: s,
|
|
4019
4036
|
className: n = "",
|
|
4020
|
-
lines:
|
|
4037
|
+
lines: d = 3,
|
|
4021
4038
|
animate: l = !0
|
|
4022
4039
|
}) => {
|
|
4023
|
-
const
|
|
4024
|
-
const
|
|
4025
|
-
return a && (
|
|
4040
|
+
const c = T("bg-gray-600", l && "animate-pulse", ((m) => U(m, ae.skeleton))(r), n), g = () => {
|
|
4041
|
+
const m = {};
|
|
4042
|
+
return a && (m.width = typeof a == "number" ? `${a}px` : a), s && (m.height = typeof s == "number" ? `${s}px` : s), m;
|
|
4026
4043
|
};
|
|
4027
4044
|
if (e === "text")
|
|
4028
|
-
return /* @__PURE__ */ t.jsx("div", { className: `space-y-3 ${n}`, children: Array.from({ length:
|
|
4029
|
-
const
|
|
4045
|
+
return /* @__PURE__ */ t.jsx("div", { className: `space-y-3 ${n}`, children: Array.from({ length: d }).map((m, y) => {
|
|
4046
|
+
const h = y === d - 1 ? "w-2/3" : y % 2 === 0 ? "w-full" : "w-5/6";
|
|
4030
4047
|
return /* @__PURE__ */ t.jsx(
|
|
4031
4048
|
"div",
|
|
4032
4049
|
{
|
|
4033
|
-
className: `h-3 rounded ${
|
|
4034
|
-
style:
|
|
4050
|
+
className: `h-3 rounded ${c} ${h}`,
|
|
4051
|
+
style: g()
|
|
4035
4052
|
},
|
|
4036
|
-
|
|
4053
|
+
y
|
|
4037
4054
|
);
|
|
4038
4055
|
}) });
|
|
4039
4056
|
if (e === "circular") {
|
|
4040
|
-
const
|
|
4057
|
+
const m = r === "sm" ? "h-12 w-12" : r === "lg" ? "h-20 w-20" : "h-16 w-16";
|
|
4041
4058
|
return /* @__PURE__ */ t.jsx(
|
|
4042
4059
|
"div",
|
|
4043
4060
|
{
|
|
4044
|
-
className: `rounded-full ${
|
|
4045
|
-
style:
|
|
4061
|
+
className: `rounded-full ${c} ${m}`,
|
|
4062
|
+
style: g()
|
|
4046
4063
|
}
|
|
4047
4064
|
);
|
|
4048
4065
|
}
|
|
4049
4066
|
if (e === "rectangular") {
|
|
4050
|
-
const
|
|
4067
|
+
const m = r === "sm" ? "h-20" : r === "lg" ? "h-40" : "h-32";
|
|
4051
4068
|
return /* @__PURE__ */ t.jsx(
|
|
4052
4069
|
"div",
|
|
4053
4070
|
{
|
|
4054
|
-
className: `rounded-lg ${
|
|
4055
|
-
style:
|
|
4071
|
+
className: `rounded-lg ${c} w-full ${m}`,
|
|
4072
|
+
style: g()
|
|
4056
4073
|
}
|
|
4057
4074
|
);
|
|
4058
4075
|
}
|
|
4059
4076
|
if (e === "avatar-text") {
|
|
4060
|
-
const
|
|
4077
|
+
const m = r === "sm" ? "h-12 w-12" : r === "lg" ? "h-20 w-20" : "h-16 w-16";
|
|
4061
4078
|
return /* @__PURE__ */ t.jsxs("div", { className: `flex items-center space-x-4 ${n}`, children: [
|
|
4062
|
-
/* @__PURE__ */ t.jsx("div", { className: `rounded-full ${
|
|
4079
|
+
/* @__PURE__ */ t.jsx("div", { className: `rounded-full ${c} ${m}` }),
|
|
4063
4080
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-1 space-y-3", children: [
|
|
4064
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-4 rounded w-3/4 ${
|
|
4065
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-1/2 ${
|
|
4081
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-4 rounded w-3/4 ${c}` }),
|
|
4082
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-1/2 ${c}` })
|
|
4066
4083
|
] })
|
|
4067
4084
|
] });
|
|
4068
4085
|
}
|
|
4069
4086
|
if (e === "button-group") {
|
|
4070
|
-
const
|
|
4087
|
+
const m = r === "sm" ? "h-8" : r === "lg" ? "h-12" : "h-10";
|
|
4071
4088
|
return /* @__PURE__ */ t.jsxs("div", { className: `flex space-x-4 ${n}`, children: [
|
|
4072
|
-
/* @__PURE__ */ t.jsx("div", { className: `${
|
|
4073
|
-
/* @__PURE__ */ t.jsx("div", { className: `${
|
|
4089
|
+
/* @__PURE__ */ t.jsx("div", { className: `${m} rounded w-20 ${c}` }),
|
|
4090
|
+
/* @__PURE__ */ t.jsx("div", { className: `${m} rounded w-24 ${c}` })
|
|
4074
4091
|
] });
|
|
4075
4092
|
}
|
|
4076
4093
|
if (e === "card") {
|
|
4077
|
-
const
|
|
4094
|
+
const m = r === "sm" ? "p-4" : r === "lg" ? "p-8" : "p-6";
|
|
4078
4095
|
return /* @__PURE__ */ t.jsx(
|
|
4079
4096
|
"div",
|
|
4080
4097
|
{
|
|
4081
|
-
className: `border border-border-default rounded-lg bg-surface ${
|
|
4098
|
+
className: `border border-border-default rounded-lg bg-surface ${m} space-y-4 ${n}`,
|
|
4082
4099
|
children: l && /* @__PURE__ */ t.jsxs("div", { className: "animate-pulse space-y-4", children: [
|
|
4083
4100
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center space-x-4", children: [
|
|
4084
|
-
/* @__PURE__ */ t.jsx("div", { className: `rounded-full ${
|
|
4101
|
+
/* @__PURE__ */ t.jsx("div", { className: `rounded-full ${c} h-16 w-16` }),
|
|
4085
4102
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-1 space-y-3", children: [
|
|
4086
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-4 rounded w-3/4 ${
|
|
4087
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-1/2 ${
|
|
4103
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-4 rounded w-3/4 ${c}` }),
|
|
4104
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-1/2 ${c}` })
|
|
4088
4105
|
] })
|
|
4089
4106
|
] }),
|
|
4090
4107
|
/* @__PURE__ */ t.jsxs("div", { className: "space-y-3", children: [
|
|
4091
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded ${
|
|
4092
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-5/6 ${
|
|
4093
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-4/6 ${
|
|
4108
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded ${c}` }),
|
|
4109
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-5/6 ${c}` }),
|
|
4110
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-3 rounded w-4/6 ${c}` })
|
|
4094
4111
|
] }),
|
|
4095
4112
|
/* @__PURE__ */ t.jsxs("div", { className: "flex space-x-4 pt-4", children: [
|
|
4096
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-8 rounded w-20 ${
|
|
4097
|
-
/* @__PURE__ */ t.jsx("div", { className: `h-8 rounded w-24 ${
|
|
4113
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-8 rounded w-20 ${c}` }),
|
|
4114
|
+
/* @__PURE__ */ t.jsx("div", { className: `h-8 rounded w-24 ${c}` })
|
|
4098
4115
|
] })
|
|
4099
4116
|
] })
|
|
4100
4117
|
}
|
|
@@ -4103,11 +4120,11 @@ const gr = ({
|
|
|
4103
4120
|
return /* @__PURE__ */ t.jsx(
|
|
4104
4121
|
"div",
|
|
4105
4122
|
{
|
|
4106
|
-
className: `h-4 rounded ${
|
|
4107
|
-
style:
|
|
4123
|
+
className: `h-4 rounded ${c} w-full`,
|
|
4124
|
+
style: g()
|
|
4108
4125
|
}
|
|
4109
4126
|
);
|
|
4110
|
-
},
|
|
4127
|
+
}, cr = {
|
|
4111
4128
|
openDuration: 50,
|
|
4112
4129
|
closeDuration: 350,
|
|
4113
4130
|
cyberpunkEffects: !0
|
|
@@ -4118,39 +4135,39 @@ const gr = ({
|
|
|
4118
4135
|
size: a = "md",
|
|
4119
4136
|
preview: s = !0,
|
|
4120
4137
|
fallback: n,
|
|
4121
|
-
placeholder:
|
|
4138
|
+
placeholder: d,
|
|
4122
4139
|
className: l = "",
|
|
4123
4140
|
animation: i,
|
|
4124
|
-
eager:
|
|
4125
|
-
previewClassName:
|
|
4126
|
-
onPreviewOpen:
|
|
4127
|
-
onPreviewClose:
|
|
4128
|
-
onLoad:
|
|
4129
|
-
onError:
|
|
4130
|
-
...
|
|
4141
|
+
eager: c = !1,
|
|
4142
|
+
previewClassName: g = "",
|
|
4143
|
+
onPreviewOpen: m,
|
|
4144
|
+
onPreviewClose: y,
|
|
4145
|
+
onLoad: p,
|
|
4146
|
+
onError: h,
|
|
4147
|
+
...w
|
|
4131
4148
|
}) => {
|
|
4132
|
-
const
|
|
4133
|
-
(S) =>
|
|
4149
|
+
const x = { ...cr, ...i }, [v, A] = Z(!1), [N, _] = Z(!1), [$, C] = Z(!1), [z, G] = Z(!0), [f, M] = Z(!1), [B, X] = Z(!1), Q = te(null), re = te(null), ee = D(
|
|
4150
|
+
(S) => U(S, ae.card),
|
|
4134
4151
|
[]
|
|
4135
|
-
),
|
|
4152
|
+
), V = D(
|
|
4136
4153
|
(S) => {
|
|
4137
|
-
G(!1),
|
|
4154
|
+
G(!1), M(!1), p?.(S);
|
|
4138
4155
|
},
|
|
4139
|
-
[
|
|
4156
|
+
[p]
|
|
4140
4157
|
), H = D(
|
|
4141
4158
|
(S) => {
|
|
4142
|
-
G(!1), n && !
|
|
4159
|
+
G(!1), n && !B ? (X(!0), M(!1)) : M(!0), h?.(S);
|
|
4143
4160
|
},
|
|
4144
|
-
[
|
|
4145
|
-
),
|
|
4146
|
-
s && !
|
|
4147
|
-
|
|
4148
|
-
},
|
|
4149
|
-
}, [s,
|
|
4150
|
-
_(!0),
|
|
4161
|
+
[h, n, B]
|
|
4162
|
+
), q = D(() => {
|
|
4163
|
+
s && !f && (C(!0), A(!0), m?.(), setTimeout(() => {
|
|
4164
|
+
C(!1);
|
|
4165
|
+
}, x.openDuration));
|
|
4166
|
+
}, [s, f, m, x.openDuration]), Y = D(() => {
|
|
4167
|
+
_(!0), y?.(), setTimeout(() => {
|
|
4151
4168
|
A(!1), _(!1);
|
|
4152
|
-
},
|
|
4153
|
-
}, [
|
|
4169
|
+
}, x.closeDuration);
|
|
4170
|
+
}, [y, x.closeDuration]), K = D(
|
|
4154
4171
|
(S) => {
|
|
4155
4172
|
(S.target === Q.current || S.target === S.currentTarget) && Y();
|
|
4156
4173
|
},
|
|
@@ -4161,52 +4178,52 @@ const gr = ({
|
|
|
4161
4178
|
},
|
|
4162
4179
|
[Y]
|
|
4163
4180
|
);
|
|
4164
|
-
|
|
4165
|
-
if (
|
|
4181
|
+
oe(() => {
|
|
4182
|
+
if (v) {
|
|
4166
4183
|
document.addEventListener("keydown", o);
|
|
4167
|
-
const S = document.body.style.overflow, E = document.documentElement.style.scrollbarGutter,
|
|
4184
|
+
const S = document.body.style.overflow, E = document.documentElement.style.scrollbarGutter, I = document.body.style.paddingRight, W = window.innerWidth - document.documentElement.clientWidth;
|
|
4168
4185
|
return document.body.style.overflow = "hidden", document.body.style.paddingRight = `${W}px`, document.documentElement.style.scrollbarGutter = "auto", () => {
|
|
4169
|
-
document.removeEventListener("keydown", o), document.body.style.overflow = S, document.body.style.paddingRight =
|
|
4186
|
+
document.removeEventListener("keydown", o), document.body.style.overflow = S, document.body.style.paddingRight = I, document.documentElement.style.scrollbarGutter = E;
|
|
4170
4187
|
};
|
|
4171
4188
|
}
|
|
4172
|
-
}, [
|
|
4173
|
-
const u =
|
|
4189
|
+
}, [v, o]);
|
|
4190
|
+
const u = pe(
|
|
4174
4191
|
() => T(
|
|
4175
4192
|
"relative rounded-lg overflow-hidden border-2 border-accent/30 transition-all duration-300 ease-in-out transform flex justify-center content-center",
|
|
4176
|
-
s && !
|
|
4193
|
+
s && !f ? "cursor-pointer hover:scale-105 hover:border-accent hover:shadow-lg-accent focus:outline-none focus:ring-4 focus:ring-accent/50" : "",
|
|
4177
4194
|
ee(a),
|
|
4178
4195
|
l
|
|
4179
4196
|
),
|
|
4180
|
-
[s,
|
|
4181
|
-
),
|
|
4197
|
+
[s, f, ee, a, l]
|
|
4198
|
+
), b = pe(
|
|
4182
4199
|
() => ({
|
|
4183
4200
|
role: s ? "button" : "img",
|
|
4184
|
-
tabIndex: s && !
|
|
4201
|
+
tabIndex: s && !f ? 0 : -1,
|
|
4185
4202
|
"aria-label": s ? `${r}. Click to enlarge` : r,
|
|
4186
|
-
"aria-expanded": s ?
|
|
4187
|
-
onKeyDown: s && !
|
|
4188
|
-
(S.key === "Enter" || S.key === " ") && (S.preventDefault(),
|
|
4203
|
+
"aria-expanded": s ? v : void 0,
|
|
4204
|
+
onKeyDown: s && !f ? (S) => {
|
|
4205
|
+
(S.key === "Enter" || S.key === " ") && (S.preventDefault(), q());
|
|
4189
4206
|
} : void 0
|
|
4190
4207
|
}),
|
|
4191
|
-
[s,
|
|
4192
|
-
), R =
|
|
4208
|
+
[s, f, r, v, q]
|
|
4209
|
+
), R = pe(
|
|
4193
4210
|
() => /* @__PURE__ */ t.jsxs(
|
|
4194
4211
|
"div",
|
|
4195
4212
|
{
|
|
4196
4213
|
className: u,
|
|
4197
|
-
onClick:
|
|
4198
|
-
...
|
|
4214
|
+
onClick: q,
|
|
4215
|
+
...b,
|
|
4199
4216
|
children: [
|
|
4200
|
-
|
|
4217
|
+
z && /* @__PURE__ */ t.jsx(
|
|
4201
4218
|
"div",
|
|
4202
4219
|
{
|
|
4203
4220
|
className: "absolute m-0 inset-0 flex items-center justify-center bg-surface border-2 border-accent/20",
|
|
4204
4221
|
role: "status",
|
|
4205
4222
|
"aria-label": "Loading image",
|
|
4206
|
-
children:
|
|
4223
|
+
children: d || /* @__PURE__ */ t.jsx("div", { className: "animate-pulse bg-gradient-to-r from-accent/20 to-secondary/20 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ t.jsx("div", { className: "text-muted text-sm", children: "Loading..." }) })
|
|
4207
4224
|
}
|
|
4208
4225
|
),
|
|
4209
|
-
|
|
4226
|
+
f ? /* @__PURE__ */ t.jsx(
|
|
4210
4227
|
"div",
|
|
4211
4228
|
{
|
|
4212
4229
|
className: "flex items-center justify-center bg-surface border-2 border-error/30 text-error p-4 rounded-lg min-h-[100px]",
|
|
@@ -4217,21 +4234,21 @@ const gr = ({
|
|
|
4217
4234
|
/* @__PURE__ */ t.jsx("div", { className: "text-sm", children: "Failed to load image" })
|
|
4218
4235
|
] })
|
|
4219
4236
|
}
|
|
4220
|
-
) :
|
|
4237
|
+
) : B ? /* @__PURE__ */ t.jsx(
|
|
4221
4238
|
"img",
|
|
4222
4239
|
{
|
|
4223
4240
|
ref: re,
|
|
4224
4241
|
src: n,
|
|
4225
4242
|
alt: `${r} (fallback)`,
|
|
4226
4243
|
className: "w-full h-full m-0 object-cover transition-opacity duration-300",
|
|
4227
|
-
style: { opacity:
|
|
4228
|
-
onLoad:
|
|
4244
|
+
style: { opacity: z ? 0 : 1 },
|
|
4245
|
+
onLoad: V,
|
|
4229
4246
|
onError: () => {
|
|
4230
|
-
|
|
4247
|
+
M(!0), X(!1);
|
|
4231
4248
|
},
|
|
4232
|
-
loading:
|
|
4249
|
+
loading: c ? "eager" : "lazy",
|
|
4233
4250
|
decoding: "async",
|
|
4234
|
-
...
|
|
4251
|
+
...w
|
|
4235
4252
|
}
|
|
4236
4253
|
) : /* @__PURE__ */ t.jsx(
|
|
4237
4254
|
"img",
|
|
@@ -4240,15 +4257,15 @@ const gr = ({
|
|
|
4240
4257
|
src: e,
|
|
4241
4258
|
alt: r,
|
|
4242
4259
|
className: "w-full h-full m-0 object-cover transition-opacity duration-300",
|
|
4243
|
-
style: { opacity:
|
|
4244
|
-
onLoad:
|
|
4260
|
+
style: { opacity: z ? 0 : 1 },
|
|
4261
|
+
onLoad: V,
|
|
4245
4262
|
onError: H,
|
|
4246
|
-
loading:
|
|
4263
|
+
loading: c ? "eager" : "lazy",
|
|
4247
4264
|
decoding: "async",
|
|
4248
|
-
...
|
|
4265
|
+
...w
|
|
4249
4266
|
}
|
|
4250
4267
|
),
|
|
4251
|
-
s && !
|
|
4268
|
+
s && !z && !f && /* @__PURE__ */ t.jsx(
|
|
4252
4269
|
"div",
|
|
4253
4270
|
{
|
|
4254
4271
|
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",
|
|
@@ -4261,17 +4278,17 @@ const gr = ({
|
|
|
4261
4278
|
),
|
|
4262
4279
|
[
|
|
4263
4280
|
u,
|
|
4264
|
-
|
|
4281
|
+
q,
|
|
4282
|
+
b,
|
|
4283
|
+
z,
|
|
4284
|
+
d,
|
|
4265
4285
|
f,
|
|
4266
|
-
|
|
4267
|
-
c,
|
|
4268
|
-
h,
|
|
4269
|
-
U,
|
|
4286
|
+
B,
|
|
4270
4287
|
n,
|
|
4271
4288
|
r,
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4289
|
+
V,
|
|
4290
|
+
c,
|
|
4291
|
+
w,
|
|
4275
4292
|
e,
|
|
4276
4293
|
H,
|
|
4277
4294
|
s
|
|
@@ -4279,12 +4296,12 @@ const gr = ({
|
|
|
4279
4296
|
);
|
|
4280
4297
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4281
4298
|
R,
|
|
4282
|
-
|
|
4299
|
+
v && Be(
|
|
4283
4300
|
/* @__PURE__ */ t.jsxs(
|
|
4284
4301
|
"div",
|
|
4285
4302
|
{
|
|
4286
4303
|
ref: Q,
|
|
4287
|
-
className: `fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${
|
|
4304
|
+
className: `fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${g} ${N ? "bg-black/0 backdrop-blur-none opacity-0 duration-300" : $ ? "bg-black/80 backdrop-blur-sm opacity-100 duration-500" : "bg-black/80 backdrop-blur-sm opacity-100 duration-300"}`,
|
|
4288
4305
|
style: {
|
|
4289
4306
|
top: 0,
|
|
4290
4307
|
left: 0,
|
|
@@ -4297,10 +4314,10 @@ const gr = ({
|
|
|
4297
4314
|
"aria-modal": "true",
|
|
4298
4315
|
"aria-label": `Preview: ${r}`,
|
|
4299
4316
|
children: [
|
|
4300
|
-
|
|
4317
|
+
x.cyberpunkEffects && /* @__PURE__ */ t.jsx(
|
|
4301
4318
|
"div",
|
|
4302
4319
|
{
|
|
4303
|
-
className: `absolute transition-opacity duration-300 ${
|
|
4320
|
+
className: `absolute transition-opacity duration-300 ${N ? "opacity-0" : "opacity-20"}`,
|
|
4304
4321
|
style: {
|
|
4305
4322
|
top: 0,
|
|
4306
4323
|
left: 0,
|
|
@@ -4337,7 +4354,7 @@ const gr = ({
|
|
|
4337
4354
|
"button",
|
|
4338
4355
|
{
|
|
4339
4356
|
onClick: Y,
|
|
4340
|
-
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 ${
|
|
4357
|
+
className: `absolute top-4 right-4 text-white hover:text-accent/80 transition-all duration-300 font-bold z-20 rounded-full w-10 h-10 flex items-center justify-center cursor-pointer transform ${N ? "bg-black/0 scale-50 rotate-180 opacity-0" : $ ? "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"}`,
|
|
4341
4358
|
style: { lineHeight: "1" },
|
|
4342
4359
|
children: /* @__PURE__ */ t.jsxs(
|
|
4343
4360
|
"svg",
|
|
@@ -4377,20 +4394,20 @@ const gr = ({
|
|
|
4377
4394
|
/* @__PURE__ */ t.jsxs(
|
|
4378
4395
|
"div",
|
|
4379
4396
|
{
|
|
4380
|
-
className: `relative max-w-full max-h-full flex items-center justify-center transition-all ease-out ${
|
|
4397
|
+
className: `relative max-w-full max-h-full flex items-center justify-center transition-all ease-out ${N ? "scale-75 opacity-0 rotate-1 duration-300" : $ ? "scale-95 opacity-0 rotate-0 duration-500" : "scale-100 opacity-100 rotate-0 duration-300"}`,
|
|
4381
4398
|
onClick: (S) => S.stopPropagation(),
|
|
4382
4399
|
children: [
|
|
4383
|
-
|
|
4400
|
+
x.cyberpunkEffects && /* @__PURE__ */ t.jsx(
|
|
4384
4401
|
"div",
|
|
4385
4402
|
{
|
|
4386
|
-
className: `absolute inset-0 rounded-lg border-2 transition-all duration-300 ${
|
|
4403
|
+
className: `absolute inset-0 rounded-lg border-2 transition-all duration-300 ${N ? "border-transparent shadow-none" : "border-accent shadow-lg-accent animate-pulse"}`,
|
|
4387
4404
|
"aria-hidden": "true"
|
|
4388
4405
|
}
|
|
4389
4406
|
),
|
|
4390
|
-
|
|
4407
|
+
x.cyberpunkEffects && /* @__PURE__ */ t.jsx(
|
|
4391
4408
|
"div",
|
|
4392
4409
|
{
|
|
4393
|
-
className: `absolute inset-0 overflow-hidden rounded-lg transition-opacity duration-300 z-10 ${
|
|
4410
|
+
className: `absolute inset-0 overflow-hidden rounded-lg transition-opacity duration-300 z-10 ${N ? "opacity-0" : "opacity-100"}`,
|
|
4394
4411
|
"aria-hidden": "true",
|
|
4395
4412
|
children: /* @__PURE__ */ t.jsxs("div", { className: "absolute top-0 left-0 w-full h-px animate-scan opacity-20", children: [
|
|
4396
4413
|
/* @__PURE__ */ t.jsx("div", { className: "w-full h-full bg-gradient-to-r from-transparent via-accent to-transparent shadow-lg-accent opacity-80" }),
|
|
@@ -4401,9 +4418,9 @@ const gr = ({
|
|
|
4401
4418
|
/* @__PURE__ */ t.jsx(
|
|
4402
4419
|
"img",
|
|
4403
4420
|
{
|
|
4404
|
-
src:
|
|
4405
|
-
alt:
|
|
4406
|
-
className: `max-w-[95vw] max-h-[95vh] w-auto h-auto object-contain rounded-lg transition-all duration-300 ease-out ${
|
|
4421
|
+
src: B ? n : e,
|
|
4422
|
+
alt: B ? `${r} (fallback)` : r,
|
|
4423
|
+
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"}`,
|
|
4407
4424
|
style: {
|
|
4408
4425
|
maxWidth: "95vw",
|
|
4409
4426
|
maxHeight: "95vh",
|
|
@@ -4415,39 +4432,39 @@ const gr = ({
|
|
|
4415
4432
|
/* @__PURE__ */ t.jsx(
|
|
4416
4433
|
"div",
|
|
4417
4434
|
{
|
|
4418
|
-
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 ${
|
|
4435
|
+
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"}`,
|
|
4419
4436
|
children: /* @__PURE__ */ t.jsxs("p", { className: "text-white text-sm font-medium truncate relative", children: [
|
|
4420
|
-
|
|
4421
|
-
|
|
4437
|
+
B ? `${r} (fallback)` : r,
|
|
4438
|
+
x.cyberpunkEffects && /* @__PURE__ */ t.jsx("span", { className: "absolute inset-0 text-accent opacity-20 animate-pulse", children: B ? `${r} (fallback)` : r })
|
|
4422
4439
|
] })
|
|
4423
4440
|
}
|
|
4424
4441
|
),
|
|
4425
|
-
|
|
4442
|
+
x.cyberpunkEffects && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4426
4443
|
/* @__PURE__ */ t.jsx(
|
|
4427
4444
|
"div",
|
|
4428
4445
|
{
|
|
4429
|
-
className: `absolute top-2 left-2 w-4 h-4 border-l-2 border-t-2 border-accent transition-all duration-300 ${
|
|
4446
|
+
className: `absolute top-2 left-2 w-4 h-4 border-l-2 border-t-2 border-accent transition-all duration-300 ${N ? "opacity-0 scale-0" : "opacity-60 scale-100"}`,
|
|
4430
4447
|
"aria-hidden": "true"
|
|
4431
4448
|
}
|
|
4432
4449
|
),
|
|
4433
4450
|
/* @__PURE__ */ t.jsx(
|
|
4434
4451
|
"div",
|
|
4435
4452
|
{
|
|
4436
|
-
className: `absolute top-2 right-2 w-4 h-4 border-r-2 border-t-2 border-accent transition-all duration-300 ${
|
|
4453
|
+
className: `absolute top-2 right-2 w-4 h-4 border-r-2 border-t-2 border-accent transition-all duration-300 ${N ? "opacity-0 scale-0" : "opacity-60 scale-100"}`,
|
|
4437
4454
|
"aria-hidden": "true"
|
|
4438
4455
|
}
|
|
4439
4456
|
),
|
|
4440
4457
|
/* @__PURE__ */ t.jsx(
|
|
4441
4458
|
"div",
|
|
4442
4459
|
{
|
|
4443
|
-
className: `absolute bottom-2 left-2 w-4 h-4 border-l-2 border-b-2 border-accent transition-all duration-300 ${
|
|
4460
|
+
className: `absolute bottom-2 left-2 w-4 h-4 border-l-2 border-b-2 border-accent transition-all duration-300 ${N ? "opacity-0 scale-0" : "opacity-60 scale-100"}`,
|
|
4444
4461
|
"aria-hidden": "true"
|
|
4445
4462
|
}
|
|
4446
4463
|
),
|
|
4447
4464
|
/* @__PURE__ */ t.jsx(
|
|
4448
4465
|
"div",
|
|
4449
4466
|
{
|
|
4450
|
-
className: `absolute bottom-2 right-2 w-4 h-4 border-r-2 border-b-2 border-accent transition-all duration-300 ${
|
|
4467
|
+
className: `absolute bottom-2 right-2 w-4 h-4 border-r-2 border-b-2 border-accent transition-all duration-300 ${N ? "opacity-0 scale-0" : "opacity-60 scale-100"}`,
|
|
4451
4468
|
"aria-hidden": "true"
|
|
4452
4469
|
}
|
|
4453
4470
|
)
|
|
@@ -4467,84 +4484,84 @@ const gr = ({
|
|
|
4467
4484
|
}
|
|
4468
4485
|
);
|
|
4469
4486
|
je.displayName = "CyberUI.Image";
|
|
4470
|
-
const
|
|
4487
|
+
const dr = ({
|
|
4471
4488
|
images: e,
|
|
4472
4489
|
currentIndex: r,
|
|
4473
4490
|
onChange: a,
|
|
4474
4491
|
size: s = "md",
|
|
4475
4492
|
autoPlay: n = !0,
|
|
4476
|
-
interval:
|
|
4493
|
+
interval: d = 3e3,
|
|
4477
4494
|
infinite: l = !0,
|
|
4478
4495
|
transition: i = "slide",
|
|
4479
|
-
objectFit:
|
|
4480
|
-
showArrows:
|
|
4481
|
-
showIndicators:
|
|
4482
|
-
className:
|
|
4483
|
-
disableImagePreview:
|
|
4484
|
-
glitchRate:
|
|
4485
|
-
onBeforeChange:
|
|
4486
|
-
onAfterChange:
|
|
4496
|
+
objectFit: c = "cover",
|
|
4497
|
+
showArrows: g = !0,
|
|
4498
|
+
showIndicators: m = !0,
|
|
4499
|
+
className: y = "",
|
|
4500
|
+
disableImagePreview: p = !1,
|
|
4501
|
+
glitchRate: h = 1,
|
|
4502
|
+
onBeforeChange: w,
|
|
4503
|
+
onAfterChange: x
|
|
4487
4504
|
}) => {
|
|
4488
|
-
const [
|
|
4489
|
-
() =>
|
|
4505
|
+
const [v, A] = Z(!1), [N, _] = Z(n), [$, C] = Z(!0), z = pe(
|
|
4506
|
+
() => U(s, ae.carousel),
|
|
4490
4507
|
[s]
|
|
4491
|
-
), G = "w-full h-full",
|
|
4508
|
+
), G = "w-full h-full", f = D(
|
|
4492
4509
|
(o) => {
|
|
4493
|
-
if (o === r ||
|
|
4494
|
-
const u = i === "signal-glitch" && (typeof
|
|
4495
|
-
|
|
4496
|
-
a(o), A(!1),
|
|
4510
|
+
if (o === r || v) return;
|
|
4511
|
+
const u = i === "signal-glitch" && (typeof h == "boolean" ? h : Math.random() < h);
|
|
4512
|
+
C(u), A(!0), w?.(r, o), setTimeout(() => {
|
|
4513
|
+
a(o), A(!1), x?.(o);
|
|
4497
4514
|
}, i === "slide" ? 0 : i === "signal-glitch" && u ? 600 : 250);
|
|
4498
4515
|
},
|
|
4499
4516
|
[
|
|
4500
4517
|
r,
|
|
4501
|
-
w,
|
|
4502
|
-
a,
|
|
4503
4518
|
v,
|
|
4504
|
-
|
|
4519
|
+
a,
|
|
4520
|
+
w,
|
|
4521
|
+
x,
|
|
4505
4522
|
i,
|
|
4506
|
-
|
|
4523
|
+
h
|
|
4507
4524
|
]
|
|
4508
4525
|
);
|
|
4509
|
-
|
|
4510
|
-
if (!
|
|
4526
|
+
oe(() => {
|
|
4527
|
+
if (!N || e.length <= 1) return;
|
|
4511
4528
|
const o = setInterval(() => {
|
|
4512
4529
|
const u = l ? (r + 1) % e.length : Math.min(r + 1, e.length - 1);
|
|
4513
4530
|
if (!l && u === e.length - 1) {
|
|
4514
4531
|
_(!1);
|
|
4515
4532
|
return;
|
|
4516
4533
|
}
|
|
4517
|
-
|
|
4518
|
-
},
|
|
4534
|
+
f(u);
|
|
4535
|
+
}, d);
|
|
4519
4536
|
return () => clearInterval(o);
|
|
4520
4537
|
}, [
|
|
4521
|
-
|
|
4538
|
+
N,
|
|
4522
4539
|
r,
|
|
4523
4540
|
e.length,
|
|
4524
4541
|
l,
|
|
4525
|
-
|
|
4526
|
-
|
|
4542
|
+
d,
|
|
4543
|
+
f
|
|
4527
4544
|
]);
|
|
4528
|
-
const
|
|
4545
|
+
const M = D(() => {
|
|
4529
4546
|
if (e.length <= 1) return;
|
|
4530
4547
|
const o = l ? (r - 1 + e.length) % e.length : Math.max(r - 1, 0);
|
|
4531
|
-
_(!1),
|
|
4532
|
-
}, [r, e.length, l,
|
|
4548
|
+
_(!1), f(o);
|
|
4549
|
+
}, [r, e.length, l, f]), B = D(() => {
|
|
4533
4550
|
if (e.length <= 1) return;
|
|
4534
4551
|
const o = l ? (r + 1) % e.length : Math.min(r + 1, e.length - 1);
|
|
4535
|
-
_(!1),
|
|
4536
|
-
}, [r, e.length, l,
|
|
4552
|
+
_(!1), f(o);
|
|
4553
|
+
}, [r, e.length, l, f]), X = D(
|
|
4537
4554
|
(o) => {
|
|
4538
|
-
_(!1),
|
|
4555
|
+
_(!1), f(o);
|
|
4539
4556
|
},
|
|
4540
|
-
[
|
|
4557
|
+
[f]
|
|
4541
4558
|
);
|
|
4542
|
-
|
|
4559
|
+
oe(() => {
|
|
4543
4560
|
const o = (u) => {
|
|
4544
|
-
u.key === "ArrowLeft" &&
|
|
4561
|
+
u.key === "ArrowLeft" && M(), u.key === "ArrowRight" && B();
|
|
4545
4562
|
};
|
|
4546
4563
|
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
4547
|
-
}, [
|
|
4564
|
+
}, [M, B]);
|
|
4548
4565
|
const Q = () => /* @__PURE__ */ t.jsx(
|
|
4549
4566
|
"div",
|
|
4550
4567
|
{
|
|
@@ -4561,7 +4578,7 @@ const ir = ({
|
|
|
4561
4578
|
fallback: o.fallbackSrc,
|
|
4562
4579
|
className: G,
|
|
4563
4580
|
size: "lg",
|
|
4564
|
-
preview: !
|
|
4581
|
+
preview: !p,
|
|
4565
4582
|
loading: u <= 1 ? "eager" : "lazy",
|
|
4566
4583
|
onPreviewOpen: () => _(!1),
|
|
4567
4584
|
onPreviewClose: () => _(n)
|
|
@@ -4569,17 +4586,17 @@ const ir = ({
|
|
|
4569
4586
|
) }, u))
|
|
4570
4587
|
}
|
|
4571
4588
|
), re = () => /* @__PURE__ */ t.jsx(t.Fragment, { children: e.map((o, u) => {
|
|
4572
|
-
const
|
|
4573
|
-
opacity:
|
|
4589
|
+
const b = u === r, R = i === "fade" ? {
|
|
4590
|
+
opacity: b ? 1 : 0,
|
|
4574
4591
|
transition: "opacity 500ms ease-in-out",
|
|
4575
4592
|
willChange: "opacity"
|
|
4576
4593
|
} : i === "matrix" ? {
|
|
4577
|
-
opacity:
|
|
4578
|
-
transform:
|
|
4579
|
-
filter:
|
|
4594
|
+
opacity: b ? 1 : 0,
|
|
4595
|
+
transform: b ? "scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0) skew(0deg) perspective(1000px)" : v ? "scale(0.6) rotateX(35deg) rotateY(15deg) rotateZ(-3deg) translateZ(-80px) skew(5deg, 2deg) perspective(1000px)" : "scale(0.92) rotateX(8deg) rotateY(2deg) translateZ(-20px) skew(1deg) perspective(1000px)",
|
|
4596
|
+
filter: b ? "brightness(1) contrast(1) hue-rotate(0deg) saturate(1) drop-shadow(0 0 10px rgba(0, 255, 136, 0.3))" : v ? "brightness(0.1) contrast(4) hue-rotate(270deg) saturate(3) blur(2px) drop-shadow(0 0 20px rgba(255, 0, 93, 0.8)) drop-shadow(0 0 30px rgba(0, 255, 249, 0.6))" : "brightness(0.7) contrast(1.5) hue-rotate(120deg) saturate(1.4) drop-shadow(0 0 8px rgba(0, 255, 136, 0.4))",
|
|
4580
4597
|
transition: "all 1200ms cubic-bezier(0.175, 0.885, 0.32, 1.275)",
|
|
4581
4598
|
willChange: "transform, opacity, filter",
|
|
4582
|
-
boxShadow:
|
|
4599
|
+
boxShadow: b ? "0 0 30px rgba(0, 255, 136, 0.5), inset 0 0 30px rgba(0, 255, 136, 0.15), 0 0 60px rgba(0, 255, 136, 0.2)" : v ? "0 0 50px rgba(255, 0, 93, 1), 0 0 100px rgba(0, 255, 249, 0.8), 0 0 150px rgba(255, 251, 0, 0.6), inset 0 0 50px rgba(255, 0, 93, 0.3), inset 0 0 80px rgba(0, 255, 249, 0.2), 0 0 0 3px rgba(255, 0, 93, 0.8), 0 0 0 6px rgba(0, 255, 249, 0.6), 0 0 200px rgba(255, 251, 0, 0.3)" : "0 0 20px rgba(0, 255, 136, 0.4), inset 0 0 15px rgba(0, 255, 136, 0.1), 0 0 40px rgba(0, 255, 136, 0.2)"
|
|
4583
4600
|
} : {};
|
|
4584
4601
|
return /* @__PURE__ */ t.jsxs(
|
|
4585
4602
|
"div",
|
|
@@ -4587,7 +4604,7 @@ const ir = ({
|
|
|
4587
4604
|
className: "absolute inset-0 w-full h-full",
|
|
4588
4605
|
style: {
|
|
4589
4606
|
...R,
|
|
4590
|
-
pointerEvents:
|
|
4607
|
+
pointerEvents: b ? "auto" : "none"
|
|
4591
4608
|
},
|
|
4592
4609
|
children: [
|
|
4593
4610
|
/* @__PURE__ */ t.jsx(
|
|
@@ -4598,30 +4615,30 @@ const ir = ({
|
|
|
4598
4615
|
fallback: o.fallbackSrc,
|
|
4599
4616
|
className: G,
|
|
4600
4617
|
size: "lg",
|
|
4601
|
-
preview: !
|
|
4618
|
+
preview: !p,
|
|
4602
4619
|
loading: u <= 1 ? "eager" : "lazy",
|
|
4603
4620
|
onPreviewOpen: () => _(!1),
|
|
4604
4621
|
onPreviewClose: () => _(n)
|
|
4605
4622
|
}
|
|
4606
4623
|
),
|
|
4607
|
-
i === "matrix" &&
|
|
4624
|
+
i === "matrix" && V(b, v)
|
|
4608
4625
|
]
|
|
4609
4626
|
},
|
|
4610
4627
|
u
|
|
4611
4628
|
);
|
|
4612
4629
|
}) }), ee = () => /* @__PURE__ */ t.jsx(t.Fragment, { children: e.map((o, u) => {
|
|
4613
|
-
const
|
|
4614
|
-
opacity:
|
|
4615
|
-
animation:
|
|
4630
|
+
const b = u === r, R = u === (r - 1 + e.length) % e.length, S = v && i === "signal-glitch" && $ ? {
|
|
4631
|
+
opacity: b ? 1 : R ? 0.8 : 0,
|
|
4632
|
+
animation: b ? "signal-image-flicker-in 1s ease-out forwards" : R ? "signal-image-flicker-out 1s ease-out forwards" : "none",
|
|
4616
4633
|
willChange: "opacity",
|
|
4617
|
-
pointerEvents:
|
|
4618
|
-
transform:
|
|
4634
|
+
pointerEvents: v && !b ? "none" : "auto",
|
|
4635
|
+
transform: v ? "translateZ(0)" : "none"
|
|
4619
4636
|
// Reduce jumping with hardware acceleration
|
|
4620
4637
|
} : {
|
|
4621
|
-
opacity:
|
|
4638
|
+
opacity: b ? 1 : 0,
|
|
4622
4639
|
transition: "opacity 250ms ease-in-out",
|
|
4623
4640
|
willChange: "opacity",
|
|
4624
|
-
pointerEvents:
|
|
4641
|
+
pointerEvents: b ? "auto" : "none"
|
|
4625
4642
|
};
|
|
4626
4643
|
return /* @__PURE__ */ t.jsxs(
|
|
4627
4644
|
"div",
|
|
@@ -4637,18 +4654,18 @@ const ir = ({
|
|
|
4637
4654
|
fallback: o.fallbackSrc,
|
|
4638
4655
|
className: G,
|
|
4639
4656
|
size: "lg",
|
|
4640
|
-
preview: !
|
|
4657
|
+
preview: !p && !(v && i === "signal-glitch" && $),
|
|
4641
4658
|
loading: u <= 1 ? "eager" : "lazy",
|
|
4642
4659
|
onPreviewOpen: () => _(!1),
|
|
4643
4660
|
onPreviewClose: () => _(n)
|
|
4644
4661
|
}
|
|
4645
4662
|
),
|
|
4646
|
-
i === "signal-glitch" &&
|
|
4663
|
+
i === "signal-glitch" && v && $ && H(b)
|
|
4647
4664
|
]
|
|
4648
4665
|
},
|
|
4649
4666
|
u
|
|
4650
4667
|
);
|
|
4651
|
-
}) }),
|
|
4668
|
+
}) }), V = (o, u) => /* @__PURE__ */ t.jsx(t.Fragment, { children: u && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 overflow-hidden pointer-events-none", children: o ? (
|
|
4652
4669
|
// Active image gets subtle enhancement effects
|
|
4653
4670
|
/* @__PURE__ */ t.jsx("div", { className: "w-full h-full bg-gradient-to-b from-primary/5 to-transparent opacity-30" })
|
|
4654
4671
|
) : (
|
|
@@ -4785,12 +4802,12 @@ const ir = ({
|
|
|
4785
4802
|
}
|
|
4786
4803
|
)
|
|
4787
4804
|
] })
|
|
4788
|
-
] }),
|
|
4805
|
+
] }), q = () => g && e.length > 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4789
4806
|
/* @__PURE__ */ t.jsx(
|
|
4790
4807
|
"button",
|
|
4791
4808
|
{
|
|
4792
|
-
onClick:
|
|
4793
|
-
disabled: !l && r === 0 ||
|
|
4809
|
+
onClick: M,
|
|
4810
|
+
disabled: !l && r === 0 || v && i === "signal-glitch" && $,
|
|
4794
4811
|
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",
|
|
4795
4812
|
"aria-label": "Previous image",
|
|
4796
4813
|
children: /* @__PURE__ */ t.jsxs(
|
|
@@ -4882,8 +4899,8 @@ const ir = ({
|
|
|
4882
4899
|
/* @__PURE__ */ t.jsx(
|
|
4883
4900
|
"button",
|
|
4884
4901
|
{
|
|
4885
|
-
onClick:
|
|
4886
|
-
disabled: !l && r === e.length - 1 ||
|
|
4902
|
+
onClick: B,
|
|
4903
|
+
disabled: !l && r === e.length - 1 || v && i === "signal-glitch" && $,
|
|
4887
4904
|
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",
|
|
4888
4905
|
"aria-label": "Next image",
|
|
4889
4906
|
children: /* @__PURE__ */ t.jsxs(
|
|
@@ -4933,11 +4950,11 @@ const ir = ({
|
|
|
4933
4950
|
)
|
|
4934
4951
|
}
|
|
4935
4952
|
)
|
|
4936
|
-
] }), Y = () =>
|
|
4953
|
+
] }), Y = () => m && e.length > 1 && /* @__PURE__ */ t.jsx("div", { className: "flex justify-center mt-4 space-x-4", children: e.map((o, u) => /* @__PURE__ */ t.jsxs(
|
|
4937
4954
|
"button",
|
|
4938
4955
|
{
|
|
4939
|
-
onClick: () =>
|
|
4940
|
-
disabled:
|
|
4956
|
+
onClick: () => X(u),
|
|
4957
|
+
disabled: v && i === "signal-glitch" && $,
|
|
4941
4958
|
className: "group relative transition-all duration-300 hover:scale-110 focus:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-30",
|
|
4942
4959
|
style: {
|
|
4943
4960
|
width: "24px",
|
|
@@ -5004,16 +5021,16 @@ const ir = ({
|
|
|
5004
5021
|
return /* @__PURE__ */ t.jsx(
|
|
5005
5022
|
"div",
|
|
5006
5023
|
{
|
|
5007
|
-
className: T(
|
|
5024
|
+
className: T(z, "w-full bg-surface border border-accent rounded-lg flex items-center justify-center", y),
|
|
5008
5025
|
children: /* @__PURE__ */ t.jsx("p", { className: "text-muted", children: "No images to display" })
|
|
5009
5026
|
}
|
|
5010
5027
|
);
|
|
5011
5028
|
const K = e[r];
|
|
5012
|
-
return /* @__PURE__ */ t.jsxs("div", { className: T("relative w-full",
|
|
5029
|
+
return /* @__PURE__ */ t.jsxs("div", { className: T("relative w-full", y), children: [
|
|
5013
5030
|
/* @__PURE__ */ t.jsxs(
|
|
5014
5031
|
"div",
|
|
5015
5032
|
{
|
|
5016
|
-
className: `relative w-full overflow-hidden rounded-lg border border-accent bg-surface ${
|
|
5033
|
+
className: `relative w-full overflow-hidden rounded-lg border border-accent bg-surface ${z}`,
|
|
5017
5034
|
children: [
|
|
5018
5035
|
/* @__PURE__ */ t.jsxs("div", { className: "absolute inset-0 pointer-events-none", children: [
|
|
5019
5036
|
/* @__PURE__ */ t.jsx("div", { className: "absolute top-2 left-2 w-4 h-4 border-l-2 border-t-2 border-primary opacity-60" }),
|
|
@@ -5025,7 +5042,7 @@ const ir = ({
|
|
|
5025
5042
|
/* @__PURE__ */ t.jsxs(
|
|
5026
5043
|
"div",
|
|
5027
5044
|
{
|
|
5028
|
-
className: `relative w-full h-full overflow-hidden carousel-${
|
|
5045
|
+
className: `relative w-full h-full overflow-hidden carousel-${c}`,
|
|
5029
5046
|
children: [
|
|
5030
5047
|
i === "slide" && Q(),
|
|
5031
5048
|
(i === "fade" || i === "matrix") && re(),
|
|
@@ -5034,105 +5051,105 @@ const ir = ({
|
|
|
5034
5051
|
}
|
|
5035
5052
|
),
|
|
5036
5053
|
K.caption && /* @__PURE__ */ t.jsx("div", { className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent p-4", children: /* @__PURE__ */ t.jsx("p", { className: "text-white text-sm font-medium", children: K.caption }) }),
|
|
5037
|
-
|
|
5054
|
+
q()
|
|
5038
5055
|
]
|
|
5039
5056
|
}
|
|
5040
5057
|
),
|
|
5041
5058
|
Y()
|
|
5042
5059
|
] });
|
|
5043
|
-
},
|
|
5060
|
+
}, $r = $e(dr), ur = {
|
|
5044
5061
|
openDuration: 600,
|
|
5045
5062
|
closeDuration: 400,
|
|
5046
5063
|
crtEffects: !0
|
|
5047
|
-
},
|
|
5064
|
+
}, mr = {
|
|
5048
5065
|
sm: "max-w-md",
|
|
5049
5066
|
md: "max-w-lg",
|
|
5050
5067
|
lg: "max-w-2xl",
|
|
5051
5068
|
xl: "max-w-4xl",
|
|
5052
5069
|
fullscreen: "max-w-none w-full h-full"
|
|
5053
|
-
},
|
|
5070
|
+
}, fr = $e(
|
|
5054
5071
|
({
|
|
5055
5072
|
isOpen: e,
|
|
5056
5073
|
onClose: r,
|
|
5057
5074
|
title: a,
|
|
5058
5075
|
children: s,
|
|
5059
5076
|
footer: n,
|
|
5060
|
-
onCancel:
|
|
5077
|
+
onCancel: d,
|
|
5061
5078
|
onConfirm: l,
|
|
5062
5079
|
cancelText: i = "Cancel",
|
|
5063
|
-
confirmText:
|
|
5064
|
-
confirmLoading:
|
|
5065
|
-
showCancel:
|
|
5066
|
-
showConfirm:
|
|
5067
|
-
size:
|
|
5068
|
-
variant:
|
|
5069
|
-
closeOnOverlayClick:
|
|
5070
|
-
closeOnEscape:
|
|
5071
|
-
animation:
|
|
5080
|
+
confirmText: c = "Confirm",
|
|
5081
|
+
confirmLoading: g = !1,
|
|
5082
|
+
showCancel: m = !0,
|
|
5083
|
+
showConfirm: y = !0,
|
|
5084
|
+
size: p = "lg",
|
|
5085
|
+
variant: h = "default",
|
|
5086
|
+
closeOnOverlayClick: w = !0,
|
|
5087
|
+
closeOnEscape: x = !0,
|
|
5088
|
+
animation: v,
|
|
5072
5089
|
className: A = "",
|
|
5073
|
-
overlayClassName:
|
|
5090
|
+
overlayClassName: N = "",
|
|
5074
5091
|
showCloseButton: _ = !0,
|
|
5075
5092
|
onOpen: $,
|
|
5076
|
-
onCRTBootComplete:
|
|
5093
|
+
onCRTBootComplete: C
|
|
5077
5094
|
}) => {
|
|
5078
|
-
const
|
|
5079
|
-
() => ({ ...
|
|
5080
|
-
[
|
|
5081
|
-
), [G,
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
},
|
|
5085
|
-
}, [r,
|
|
5086
|
-
|
|
5087
|
-
e && !G && (re.current = document.activeElement || null,
|
|
5088
|
-
|
|
5089
|
-
},
|
|
5095
|
+
const z = pe(
|
|
5096
|
+
() => ({ ...ur, ...v }),
|
|
5097
|
+
[v]
|
|
5098
|
+
), [G, f] = Z(!1), [M, B] = Z(!0), X = te(null), Q = te(null), re = te(null), ee = te(`modal-title-${Math.random().toString(36).slice(2)}`), V = D(() => {
|
|
5099
|
+
f(!0), setTimeout(() => {
|
|
5100
|
+
f(!1), B(!0), r();
|
|
5101
|
+
}, z.closeDuration);
|
|
5102
|
+
}, [r, z.closeDuration]);
|
|
5103
|
+
oe(() => {
|
|
5104
|
+
e && !G && (re.current = document.activeElement || null, B(!0), $?.(), setTimeout(() => {
|
|
5105
|
+
B(!1), C?.(), Q.current?.focus();
|
|
5106
|
+
}, z.openDuration));
|
|
5090
5107
|
}, [
|
|
5091
5108
|
e,
|
|
5092
5109
|
G,
|
|
5093
5110
|
$,
|
|
5094
|
-
|
|
5095
|
-
|
|
5111
|
+
C,
|
|
5112
|
+
z.openDuration
|
|
5096
5113
|
]);
|
|
5097
5114
|
const H = D(() => {
|
|
5098
|
-
|
|
5099
|
-
}, [
|
|
5100
|
-
l?.(),
|
|
5101
|
-
}, [l,
|
|
5115
|
+
d?.(), V();
|
|
5116
|
+
}, [d, V]), q = D(() => {
|
|
5117
|
+
l?.(), V();
|
|
5118
|
+
}, [l, V]), Y = D(
|
|
5102
5119
|
(u) => {
|
|
5103
|
-
|
|
5120
|
+
w && (u.target === X.current || u.target === u.currentTarget) && V();
|
|
5104
5121
|
},
|
|
5105
|
-
[
|
|
5122
|
+
[V, w]
|
|
5106
5123
|
), K = D(
|
|
5107
5124
|
(u) => {
|
|
5108
|
-
|
|
5125
|
+
x && u.key === "Escape" && V();
|
|
5109
5126
|
},
|
|
5110
|
-
[
|
|
5127
|
+
[V, x]
|
|
5111
5128
|
);
|
|
5112
|
-
|
|
5129
|
+
oe(() => {
|
|
5113
5130
|
if (e) {
|
|
5114
5131
|
document.addEventListener("keydown", K);
|
|
5115
|
-
const u = document.body.style.overflow,
|
|
5116
|
-
return document.body.style.overflow = "hidden", document.body.style.paddingRight = `${
|
|
5132
|
+
const u = document.body.style.overflow, b = window.innerWidth - document.documentElement.clientWidth;
|
|
5133
|
+
return document.body.style.overflow = "hidden", document.body.style.paddingRight = `${b}px`, () => {
|
|
5117
5134
|
document.removeEventListener("keydown", K), document.body.style.overflow = u, document.body.style.paddingRight = "", re.current?.focus?.();
|
|
5118
5135
|
};
|
|
5119
5136
|
}
|
|
5120
5137
|
}, [e, K]);
|
|
5121
|
-
const o =
|
|
5122
|
-
const u =
|
|
5138
|
+
const o = pe(() => {
|
|
5139
|
+
const u = h === "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";
|
|
5123
5140
|
return T(
|
|
5124
5141
|
"relative bg-surface border-2 rounded-lg max-h-[90vh] overflow-hidden flex flex-col transform transition-all duration-300",
|
|
5125
|
-
|
|
5126
|
-
|
|
5142
|
+
mr[p],
|
|
5143
|
+
z.crtEffects && M ? `animate-crt-power-on ${b} ${R}` : z.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}`,
|
|
5127
5144
|
A
|
|
5128
5145
|
);
|
|
5129
|
-
}, [
|
|
5146
|
+
}, [p, z.crtEffects, G, M, A, h]);
|
|
5130
5147
|
return e ? Be(
|
|
5131
5148
|
/* @__PURE__ */ t.jsx(
|
|
5132
5149
|
"div",
|
|
5133
5150
|
{
|
|
5134
|
-
ref:
|
|
5135
|
-
className: `fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${
|
|
5151
|
+
ref: X,
|
|
5152
|
+
className: `fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${N} ${G ? "bg-black/0 backdrop-blur-none opacity-0 duration-800" : M ? "bg-black/30 backdrop-blur-md opacity-100 duration-500" : "bg-black/30 backdrop-blur-sm opacity-100 duration-300"}`,
|
|
5136
5153
|
style: {
|
|
5137
5154
|
top: 0,
|
|
5138
5155
|
left: 0,
|
|
@@ -5155,8 +5172,8 @@ const ir = ({
|
|
|
5155
5172
|
_ && /* @__PURE__ */ t.jsx(
|
|
5156
5173
|
"button",
|
|
5157
5174
|
{
|
|
5158
|
-
onClick:
|
|
5159
|
-
className: `absolute top-4 right-4 text-muted hover:text-accent transition-all duration-300 z-20 rounded-full w-8 h-8 flex items-center justify-center cursor-pointer transform ${G ? "scale-0 rotate-180 opacity-0" :
|
|
5175
|
+
onClick: V,
|
|
5176
|
+
className: `absolute top-4 right-4 text-muted hover:text-accent transition-all duration-300 z-20 rounded-full w-8 h-8 flex items-center justify-center cursor-pointer transform ${G ? "scale-0 rotate-180 opacity-0" : M ? "scale-0 opacity-0" : "scale-100 opacity-100 hover:scale-110 hover:bg-accent/10"}`,
|
|
5160
5177
|
"aria-label": "Close modal",
|
|
5161
5178
|
children: /* @__PURE__ */ t.jsx(
|
|
5162
5179
|
"svg",
|
|
@@ -5185,14 +5202,14 @@ const ir = ({
|
|
|
5185
5202
|
{
|
|
5186
5203
|
className: T(
|
|
5187
5204
|
"px-6 py-4 border-b flex-shrink-0 transition-all duration-300",
|
|
5188
|
-
|
|
5189
|
-
|
|
5205
|
+
h === "danger" ? "border-error/20" : "border-accent/20",
|
|
5206
|
+
M ? "opacity-0 translate-y-2" : "opacity-100 translate-y-0"
|
|
5190
5207
|
),
|
|
5191
5208
|
children: /* @__PURE__ */ t.jsx(
|
|
5192
5209
|
"h2",
|
|
5193
5210
|
{
|
|
5194
5211
|
id: ee.current,
|
|
5195
|
-
className: T("text-lg font-semibold",
|
|
5212
|
+
className: T("text-lg font-semibold", h === "danger" ? "text-error" : "text-primary"),
|
|
5196
5213
|
children: a
|
|
5197
5214
|
}
|
|
5198
5215
|
)
|
|
@@ -5201,31 +5218,31 @@ const ir = ({
|
|
|
5201
5218
|
/* @__PURE__ */ t.jsx(
|
|
5202
5219
|
"div",
|
|
5203
5220
|
{
|
|
5204
|
-
className: `flex-1 overflow-auto p-6 transition-all duration-500 ${
|
|
5221
|
+
className: `flex-1 overflow-auto p-6 transition-all duration-500 ${M ? "opacity-0 translate-y-4" : "opacity-100 translate-y-0"}`,
|
|
5205
5222
|
children: s
|
|
5206
5223
|
}
|
|
5207
5224
|
),
|
|
5208
|
-
(n ||
|
|
5225
|
+
(n || d || l) && /* @__PURE__ */ t.jsx(
|
|
5209
5226
|
"div",
|
|
5210
5227
|
{
|
|
5211
5228
|
className: T(
|
|
5212
5229
|
"px-6 py-4 border-t flex-shrink-0 transition-all duration-300",
|
|
5213
|
-
|
|
5214
|
-
|
|
5230
|
+
h === "danger" ? "border-error/20" : "border-accent/20",
|
|
5231
|
+
M ? "opacity-0 translate-y-2" : "opacity-100 translate-y-0"
|
|
5215
5232
|
),
|
|
5216
5233
|
children: n || /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col-reverse sm:flex-row justify-between items-center gap-3", children: [
|
|
5217
5234
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted text-xs font-mono hidden sm:block", children: "> ESC to abort" }),
|
|
5218
5235
|
/* @__PURE__ */ t.jsxs("div", { className: "flex gap-3 w-full sm:w-auto", children: [
|
|
5219
|
-
|
|
5220
|
-
|
|
5236
|
+
m && d && /* @__PURE__ */ t.jsx(We, { variant: "ghost", size: "sm", onClick: H, className: "flex-1 sm:flex-none", children: i }),
|
|
5237
|
+
y && l && /* @__PURE__ */ t.jsx(
|
|
5221
5238
|
We,
|
|
5222
5239
|
{
|
|
5223
|
-
variant:
|
|
5240
|
+
variant: h === "danger" ? "danger" : "primary",
|
|
5224
5241
|
size: "sm",
|
|
5225
|
-
onClick:
|
|
5226
|
-
disabled:
|
|
5242
|
+
onClick: q,
|
|
5243
|
+
disabled: g,
|
|
5227
5244
|
className: "flex-1 sm:flex-none",
|
|
5228
|
-
children:
|
|
5245
|
+
children: c
|
|
5229
5246
|
}
|
|
5230
5247
|
)
|
|
5231
5248
|
] })
|
|
@@ -5241,8 +5258,8 @@ const ir = ({
|
|
|
5241
5258
|
) : null;
|
|
5242
5259
|
}
|
|
5243
5260
|
);
|
|
5244
|
-
|
|
5245
|
-
const
|
|
5261
|
+
fr.displayName = "CyberUI.Modal";
|
|
5262
|
+
const Tr = ({
|
|
5246
5263
|
children: e,
|
|
5247
5264
|
variant: r = "primary",
|
|
5248
5265
|
as: a = "span",
|
|
@@ -5260,7 +5277,7 @@ const Er = ({
|
|
|
5260
5277
|
children: e
|
|
5261
5278
|
}
|
|
5262
5279
|
);
|
|
5263
|
-
},
|
|
5280
|
+
}, _r = ({
|
|
5264
5281
|
children: e,
|
|
5265
5282
|
showLine: r = !0,
|
|
5266
5283
|
size: a = "md",
|
|
@@ -5270,7 +5287,7 @@ const Er = ({
|
|
|
5270
5287
|
sm: "text-xs",
|
|
5271
5288
|
md: "text-sm",
|
|
5272
5289
|
lg: "text-base"
|
|
5273
|
-
},
|
|
5290
|
+
}, d = {
|
|
5274
5291
|
sm: "mb-4",
|
|
5275
5292
|
md: "mb-6",
|
|
5276
5293
|
lg: "mb-8"
|
|
@@ -5278,12 +5295,12 @@ const Er = ({
|
|
|
5278
5295
|
sm: "gap-3",
|
|
5279
5296
|
md: "gap-4",
|
|
5280
5297
|
lg: "gap-5"
|
|
5281
|
-
}, i =
|
|
5282
|
-
return /* @__PURE__ */ t.jsxs("div", { className: T(
|
|
5283
|
-
/* @__PURE__ */ t.jsx("h2", { className:
|
|
5298
|
+
}, i = U(a, n), c = U(a, d), g = U(a, l), m = T("flex items-center", g, c), y = T("uppercase tracking-[0.2em] text-secondary font-bold whitespace-nowrap", i);
|
|
5299
|
+
return /* @__PURE__ */ t.jsxs("div", { className: T(m, s), children: [
|
|
5300
|
+
/* @__PURE__ */ t.jsx("h2", { className: y, children: e }),
|
|
5284
5301
|
r && /* @__PURE__ */ t.jsx("div", { className: "h-[1px] w-full bg-gradient-to-r from-secondary/50 to-transparent" })
|
|
5285
5302
|
] });
|
|
5286
|
-
},
|
|
5303
|
+
}, Rr = ({
|
|
5287
5304
|
events: e,
|
|
5288
5305
|
size: r = "md",
|
|
5289
5306
|
className: a = ""
|
|
@@ -5296,7 +5313,7 @@ const Er = ({
|
|
|
5296
5313
|
sm: "inset-1.5",
|
|
5297
5314
|
md: "inset-2",
|
|
5298
5315
|
lg: "inset-2.5"
|
|
5299
|
-
},
|
|
5316
|
+
}, d = {
|
|
5300
5317
|
sm: "text-sm",
|
|
5301
5318
|
md: "text-base",
|
|
5302
5319
|
lg: "text-lg"
|
|
@@ -5308,15 +5325,15 @@ const Er = ({
|
|
|
5308
5325
|
sm: "text-[10px]",
|
|
5309
5326
|
md: "text-xs",
|
|
5310
5327
|
lg: "text-sm"
|
|
5311
|
-
},
|
|
5328
|
+
}, c = {
|
|
5312
5329
|
sm: "gap-3",
|
|
5313
5330
|
md: "gap-4",
|
|
5314
5331
|
lg: "gap-5"
|
|
5315
|
-
},
|
|
5332
|
+
}, g = {
|
|
5316
5333
|
sm: "space-y-4",
|
|
5317
5334
|
md: "space-y-6",
|
|
5318
5335
|
lg: "space-y-8"
|
|
5319
|
-
},
|
|
5336
|
+
}, m = U(r, s), y = U(r, n), p = U(r, d), h = U(r, l), w = U(r, i), x = U(r, c), v = U(r, g), A = (_) => {
|
|
5320
5337
|
const $ = {
|
|
5321
5338
|
success: {
|
|
5322
5339
|
border: "border-success bg-success/30 shadow-[0_0_10px_var(--color-success)]",
|
|
@@ -5340,24 +5357,24 @@ const Er = ({
|
|
|
5340
5357
|
}
|
|
5341
5358
|
};
|
|
5342
5359
|
return $[_] || $.info;
|
|
5343
|
-
},
|
|
5344
|
-
return /* @__PURE__ */ t.jsx("div", { className: T(
|
|
5345
|
-
const
|
|
5346
|
-
return /* @__PURE__ */ t.jsxs("div", { className: T("flex",
|
|
5360
|
+
}, N = "polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)";
|
|
5361
|
+
return /* @__PURE__ */ t.jsx("div", { className: T(v, a), children: e.map((_, $) => {
|
|
5362
|
+
const C = A(_.status);
|
|
5363
|
+
return /* @__PURE__ */ t.jsxs("div", { className: T("flex", x, "group"), children: [
|
|
5347
5364
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
5348
|
-
/* @__PURE__ */ t.jsxs("div", { className: T("relative flex-shrink-0 mt-1.5",
|
|
5365
|
+
/* @__PURE__ */ t.jsxs("div", { className: T("relative flex-shrink-0 mt-1.5", m), children: [
|
|
5349
5366
|
/* @__PURE__ */ t.jsx(
|
|
5350
5367
|
"div",
|
|
5351
5368
|
{
|
|
5352
|
-
className: T("absolute inset-0 border-2 transition-all duration-300",
|
|
5353
|
-
style: { clipPath:
|
|
5369
|
+
className: T("absolute inset-0 border-2 transition-all duration-300", C.border),
|
|
5370
|
+
style: { clipPath: N }
|
|
5354
5371
|
}
|
|
5355
5372
|
),
|
|
5356
5373
|
/* @__PURE__ */ t.jsx(
|
|
5357
5374
|
"div",
|
|
5358
5375
|
{
|
|
5359
|
-
className: T("absolute",
|
|
5360
|
-
style: { clipPath:
|
|
5376
|
+
className: T("absolute", y, C.inner),
|
|
5377
|
+
style: { clipPath: N }
|
|
5361
5378
|
}
|
|
5362
5379
|
)
|
|
5363
5380
|
] }),
|
|
@@ -5365,59 +5382,59 @@ const Er = ({
|
|
|
5365
5382
|
] }),
|
|
5366
5383
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-1 pb-6", children: [
|
|
5367
5384
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between mb-1", children: [
|
|
5368
|
-
/* @__PURE__ */ t.jsx("h4", { className: T("font-semibold text-default group-hover:text-secondary transition-colors",
|
|
5369
|
-
/* @__PURE__ */ t.jsx("span", { className: T("text-muted whitespace-nowrap ml-4",
|
|
5385
|
+
/* @__PURE__ */ t.jsx("h4", { className: T("font-semibold text-default group-hover:text-secondary transition-colors", p), children: _.title }),
|
|
5386
|
+
/* @__PURE__ */ t.jsx("span", { className: T("text-muted whitespace-nowrap ml-4", w), children: _.time })
|
|
5370
5387
|
] }),
|
|
5371
|
-
_.description && /* @__PURE__ */ t.jsx("p", { className: T("text-muted mt-1",
|
|
5388
|
+
_.description && /* @__PURE__ */ t.jsx("p", { className: T("text-muted mt-1", h), children: _.description })
|
|
5372
5389
|
] })
|
|
5373
5390
|
] }, $);
|
|
5374
5391
|
}) });
|
|
5375
|
-
},
|
|
5392
|
+
}, Ar = ({
|
|
5376
5393
|
items: e,
|
|
5377
5394
|
current: r = 0,
|
|
5378
5395
|
orientation: a = { base: "vertical", md: "horizontal" },
|
|
5379
5396
|
className: s = ""
|
|
5380
5397
|
}) => {
|
|
5381
|
-
const
|
|
5382
|
-
const
|
|
5383
|
-
return { isCompleted:
|
|
5384
|
-
}, i = (
|
|
5385
|
-
const
|
|
5398
|
+
const d = Ve(a, "vertical") === "vertical", l = (p, h) => {
|
|
5399
|
+
const w = p.status === "completed" || p.status === void 0 && h < r, x = p.status === "current" || p.status === void 0 && h === r && r < e.length, v = p.status === "error";
|
|
5400
|
+
return { isCompleted: w, isCurrent: x, isError: v };
|
|
5401
|
+
}, i = (p, h, w) => {
|
|
5402
|
+
const x = T(
|
|
5386
5403
|
"relative px-2 py-1 pb-2 font-bold text-sm transition-colors duration-200 whitespace-nowrap overflow-hidden",
|
|
5387
5404
|
"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",
|
|
5388
5405
|
"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"
|
|
5389
5406
|
);
|
|
5390
|
-
return
|
|
5391
|
-
},
|
|
5407
|
+
return p ? T(x, "text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100") : h ? T(x, "text-secondary before:opacity-100") : w ? T(x, "text-error") : T(x, "text-muted");
|
|
5408
|
+
}, c = (p, h, w, x) => ({
|
|
5392
5409
|
color: "var(--color-primary)",
|
|
5393
|
-
opacity:
|
|
5394
|
-
filter:
|
|
5395
|
-
animation:
|
|
5396
|
-
}),
|
|
5397
|
-
const
|
|
5410
|
+
opacity: w ? 0.8 : 0.3,
|
|
5411
|
+
filter: w ? "drop-shadow(0 0 4px color-mix(in srgb, var(--color-primary), transparent 40%))" : "none",
|
|
5412
|
+
animation: h && p ? `chevronFlow 1.5s ease-in-out infinite ${x * 0.2}s` : "none"
|
|
5413
|
+
}), g = T(d ? "flex flex-col items-start gap-0" : "flex items-center justify-center gap-4", s), m = (p, h, w) => p ? "text-secondary drop-shadow-[0_0_4px_var(--color-secondary)]" : h ? "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, h, w) => {
|
|
5414
|
+
const x = T(
|
|
5398
5415
|
"relative font-bold text-sm transition-colors duration-200 pb-1 w-fit",
|
|
5399
5416
|
"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"
|
|
5400
5417
|
);
|
|
5401
|
-
return
|
|
5418
|
+
return p ? T(x, "text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100") : h ? T(x, "text-secondary") : w ? T(x, "text-error") : T(x, "text-muted");
|
|
5402
5419
|
};
|
|
5403
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
5404
|
-
const { isCompleted:
|
|
5420
|
+
return /* @__PURE__ */ t.jsx("div", { className: g, children: e.map((p, h) => {
|
|
5421
|
+
const { isCompleted: w, isCurrent: x, isError: v } = l(p, h), A = h < e.length - 1 && (e[h + 1]?.status === "current" || e[h + 1]?.status === void 0 && h + 1 === r && r < e.length), N = h < e.length - 1 && (e[h + 1]?.status === "completed" || e[h + 1]?.status === void 0 && h + 1 < r);
|
|
5405
5422
|
return /* @__PURE__ */ t.jsxs(Ee.Fragment, { children: [
|
|
5406
|
-
|
|
5423
|
+
d ? (
|
|
5407
5424
|
// Vertical layout: step row + chevrons below
|
|
5408
5425
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col w-full", children: [
|
|
5409
5426
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-start gap-1.5", children: [
|
|
5410
|
-
/* @__PURE__ */ t.jsx("span", { className: T("text-xs leading-5 flex-shrink-0",
|
|
5427
|
+
/* @__PURE__ */ t.jsx("span", { className: T("text-xs leading-5 flex-shrink-0", m(w, x, v)), children: "▸" }),
|
|
5411
5428
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col", children: [
|
|
5412
|
-
/* @__PURE__ */ t.jsx("div", { className:
|
|
5413
|
-
|
|
5429
|
+
/* @__PURE__ */ t.jsx("div", { className: y(w, x, v), children: p.title }),
|
|
5430
|
+
p.description && /* @__PURE__ */ t.jsx("div", { className: "text-xs text-muted mt-0.5 font-normal", children: p.description })
|
|
5414
5431
|
] })
|
|
5415
5432
|
] }),
|
|
5416
|
-
|
|
5433
|
+
h < e.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "flex flex-col items-center py-0.5", children: [0, 1, 2].map((_) => /* @__PURE__ */ t.jsx(
|
|
5417
5434
|
"div",
|
|
5418
5435
|
{
|
|
5419
5436
|
className: "text-sm font-bold transition-all duration-300 rotate-90 leading-[0.6]",
|
|
5420
|
-
style:
|
|
5437
|
+
style: c(w, A, N, _),
|
|
5421
5438
|
children: "›"
|
|
5422
5439
|
},
|
|
5423
5440
|
_
|
|
@@ -5426,22 +5443,22 @@ const Er = ({
|
|
|
5426
5443
|
) : (
|
|
5427
5444
|
// Horizontal layout: title and description stacked with underline indicator
|
|
5428
5445
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
5429
|
-
/* @__PURE__ */ t.jsx("div", { className: i(
|
|
5430
|
-
|
|
5446
|
+
/* @__PURE__ */ t.jsx("div", { className: i(w, x, v), children: p.title }),
|
|
5447
|
+
p.description && /* @__PURE__ */ t.jsx("div", { className: "text-xs text-muted mt-1 font-normal", children: p.description })
|
|
5431
5448
|
] })
|
|
5432
5449
|
),
|
|
5433
|
-
!
|
|
5450
|
+
!d && h < e.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "flex", children: [0, 1, 2].map((_) => /* @__PURE__ */ t.jsx(
|
|
5434
5451
|
"div",
|
|
5435
5452
|
{
|
|
5436
5453
|
className: "text-2xl font-bold transition-all duration-300",
|
|
5437
|
-
style:
|
|
5454
|
+
style: c(w, A, N, _),
|
|
5438
5455
|
children: "›"
|
|
5439
5456
|
},
|
|
5440
5457
|
_
|
|
5441
5458
|
)) })
|
|
5442
|
-
] },
|
|
5459
|
+
] }, h);
|
|
5443
5460
|
}) });
|
|
5444
|
-
},
|
|
5461
|
+
}, Mr = ({
|
|
5445
5462
|
variant: e = "gradient",
|
|
5446
5463
|
orientation: r = "horizontal",
|
|
5447
5464
|
className: a = ""
|
|
@@ -5450,53 +5467,53 @@ const Er = ({
|
|
|
5450
5467
|
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",
|
|
5451
5468
|
solid: "bg-secondary/30",
|
|
5452
5469
|
dashed: `border-dashed border-secondary/50 ${i === "horizontal" ? "border-t" : "border-l"}`
|
|
5453
|
-
})[l],
|
|
5470
|
+
})[l], d = T(
|
|
5454
5471
|
s(r),
|
|
5455
5472
|
n(e, r),
|
|
5456
5473
|
a
|
|
5457
5474
|
);
|
|
5458
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
5459
|
-
},
|
|
5475
|
+
return /* @__PURE__ */ t.jsx("div", { className: d });
|
|
5476
|
+
}, Lr = ({
|
|
5460
5477
|
label: e,
|
|
5461
5478
|
error: r,
|
|
5462
5479
|
size: a = "md",
|
|
5463
5480
|
className: s = "",
|
|
5464
5481
|
checked: n,
|
|
5465
|
-
onChange:
|
|
5482
|
+
onChange: d,
|
|
5466
5483
|
onCheckedChange: l,
|
|
5467
5484
|
disabled: i,
|
|
5468
|
-
...
|
|
5485
|
+
...c
|
|
5469
5486
|
}) => {
|
|
5470
|
-
const [
|
|
5471
|
-
i || (n === void 0 &&
|
|
5472
|
-
},
|
|
5487
|
+
const [g, m] = Ee.useState(c.defaultChecked || !1), y = n !== void 0 ? n : g, p = (C) => {
|
|
5488
|
+
i || (n === void 0 && m(C.target.checked), d?.(C), l?.(C.target.checked));
|
|
5489
|
+
}, h = {
|
|
5473
5490
|
sm: "w-4 h-4",
|
|
5474
5491
|
md: "w-5 h-5",
|
|
5475
5492
|
lg: "w-6 h-6"
|
|
5476
|
-
},
|
|
5493
|
+
}, w = {
|
|
5477
5494
|
sm: "text-xs",
|
|
5478
5495
|
md: "text-sm",
|
|
5479
5496
|
lg: "text-base"
|
|
5480
|
-
},
|
|
5497
|
+
}, x = {
|
|
5481
5498
|
sm: "ml-6",
|
|
5482
5499
|
md: "ml-8",
|
|
5483
5500
|
lg: "ml-9"
|
|
5484
|
-
},
|
|
5485
|
-
const
|
|
5486
|
-
return i ? T(
|
|
5501
|
+
}, v = U(a, h), A = U(a, w), N = U(a, x), _ = (C) => i ? "stroke-muted/20" : T("transition-all duration-200 group-hover:stroke-secondary group-hover:stroke-[1.5]", C ? "stroke-secondary" : "stroke-secondary/50"), $ = (C) => {
|
|
5502
|
+
const z = "transition-all duration-200";
|
|
5503
|
+
return i ? T(z, C ? "fill-muted/20" : "fill-transparent") : T(z, C ? "fill-secondary" : "fill-transparent");
|
|
5487
5504
|
};
|
|
5488
5505
|
return /* @__PURE__ */ t.jsxs("div", { className: T("flex flex-col gap-1", s, i && "opacity-50 cursor-not-allowed"), children: [
|
|
5489
5506
|
/* @__PURE__ */ t.jsxs("label", { className: T("flex items-center gap-3 group", i ? "cursor-not-allowed pointer-events-none" : "cursor-pointer"), children: [
|
|
5490
|
-
/* @__PURE__ */ t.jsxs("div", { className: T("relative flex-shrink-0",
|
|
5507
|
+
/* @__PURE__ */ t.jsxs("div", { className: T("relative flex-shrink-0", v), children: [
|
|
5491
5508
|
/* @__PURE__ */ t.jsx(
|
|
5492
5509
|
"input",
|
|
5493
5510
|
{
|
|
5494
5511
|
type: "checkbox",
|
|
5495
5512
|
className: "absolute opacity-0 w-0 h-0",
|
|
5496
|
-
checked:
|
|
5497
|
-
onChange:
|
|
5513
|
+
checked: y,
|
|
5514
|
+
onChange: p,
|
|
5498
5515
|
disabled: i,
|
|
5499
|
-
...
|
|
5516
|
+
...c
|
|
5500
5517
|
}
|
|
5501
5518
|
),
|
|
5502
5519
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -5518,7 +5535,7 @@ const Er = ({
|
|
|
5518
5535
|
"path",
|
|
5519
5536
|
{
|
|
5520
5537
|
d: "M 1 1 L 19 1 L 19 15 L 15 19 L 1 19 Z",
|
|
5521
|
-
className: _(
|
|
5538
|
+
className: _(y),
|
|
5522
5539
|
strokeWidth: "1",
|
|
5523
5540
|
fill: "none"
|
|
5524
5541
|
}
|
|
@@ -5527,7 +5544,7 @@ const Er = ({
|
|
|
5527
5544
|
"path",
|
|
5528
5545
|
{
|
|
5529
5546
|
d: "M 4 4 L 16 4 L 16 13 L 13 16 L 4 16 Z",
|
|
5530
|
-
className: $(
|
|
5547
|
+
className: $(y)
|
|
5531
5548
|
}
|
|
5532
5549
|
)
|
|
5533
5550
|
]
|
|
@@ -5536,7 +5553,7 @@ const Er = ({
|
|
|
5536
5553
|
] }),
|
|
5537
5554
|
e && /* @__PURE__ */ t.jsx("span", { className: T("transition-colors", A, i ? "text-muted" : "text-muted group-hover:text-secondary"), children: e })
|
|
5538
5555
|
] }),
|
|
5539
|
-
r && !i && /* @__PURE__ */ t.jsx("span", { className: T("text-xs text-error",
|
|
5556
|
+
r && !i && /* @__PURE__ */ t.jsx("span", { className: T("text-xs text-error", N), children: r })
|
|
5540
5557
|
] });
|
|
5541
5558
|
}, ne = {
|
|
5542
5559
|
MOBILE_BREAKPOINT: 768,
|
|
@@ -5546,28 +5563,28 @@ const Er = ({
|
|
|
5546
5563
|
DISTANCE_THRESHOLD: 100,
|
|
5547
5564
|
MAX_ANIMATION_SPEED: 5,
|
|
5548
5565
|
MIN_GLOW_DURATION: 150
|
|
5549
|
-
},
|
|
5566
|
+
}, zr = (e = {}) => {
|
|
5550
5567
|
const {
|
|
5551
5568
|
glowColor: r = "primary",
|
|
5552
5569
|
sensitivity: a = 2,
|
|
5553
5570
|
disabled: s = !1,
|
|
5554
5571
|
pageLevel: n,
|
|
5555
|
-
variant:
|
|
5572
|
+
variant: d = "default",
|
|
5556
5573
|
className: l = ""
|
|
5557
|
-
} = e, i = te(null),
|
|
5574
|
+
} = e, i = te(null), c = te(null), g = te(Date.now()), m = te(0), y = te(void 0), p = te([]), h = te(void 0), [w, x] = Z({
|
|
5558
5575
|
isScrolling: !1,
|
|
5559
5576
|
direction: null,
|
|
5560
5577
|
velocity: 0,
|
|
5561
5578
|
position: 0,
|
|
5562
5579
|
scrollDistance: 0
|
|
5563
|
-
}), [
|
|
5564
|
-
|
|
5580
|
+
}), [v, A] = Z(!1), [N, _] = Z(() => typeof window > "u" ? !1 : window.innerWidth >= ne.MOBILE_BREAKPOINT), $ = te(0), [C, z] = Z(n ?? !1);
|
|
5581
|
+
oe(() => {
|
|
5565
5582
|
if (n !== void 0)
|
|
5566
|
-
|
|
5583
|
+
z(n);
|
|
5567
5584
|
else {
|
|
5568
5585
|
const u = setTimeout(() => {
|
|
5569
|
-
const
|
|
5570
|
-
|
|
5586
|
+
const b = i.current !== null;
|
|
5587
|
+
z(!b);
|
|
5571
5588
|
}, 0);
|
|
5572
5589
|
return () => clearTimeout(u);
|
|
5573
5590
|
}
|
|
@@ -5597,7 +5614,7 @@ const Er = ({
|
|
|
5597
5614
|
boxShadow: "0 0 10px rgba(255, 0, 93, 0.3), inset 0 0 10px rgba(255, 0, 93, 0.1)"
|
|
5598
5615
|
};
|
|
5599
5616
|
}
|
|
5600
|
-
}, []),
|
|
5617
|
+
}, []), f = D(() => {
|
|
5601
5618
|
const u = window.innerWidth < ne.MOBILE_BREAKPOINT;
|
|
5602
5619
|
return {
|
|
5603
5620
|
isMobile: u,
|
|
@@ -5606,35 +5623,35 @@ const Er = ({
|
|
|
5606
5623
|
lineSize: u ? 8 : 12,
|
|
5607
5624
|
arrowGap: u ? 2 : 4
|
|
5608
5625
|
};
|
|
5609
|
-
}, []),
|
|
5610
|
-
const E = (S + R) * 2,
|
|
5611
|
-
return Math.floor(
|
|
5612
|
-
}, []),
|
|
5613
|
-
if (
|
|
5626
|
+
}, []), M = D((u, b, R, S) => {
|
|
5627
|
+
const E = (S + R) * 2, I = R * 4, O = (u - E - I) / 2;
|
|
5628
|
+
return Math.floor(O / (b + R));
|
|
5629
|
+
}, []), B = D((u) => {
|
|
5630
|
+
if (C) {
|
|
5614
5631
|
if (!document.querySelector("#cyber-page-scrollbar-styles")) {
|
|
5615
|
-
const
|
|
5616
|
-
|
|
5632
|
+
const b = document.createElement("style");
|
|
5633
|
+
b.id = "cyber-page-scrollbar-styles", b.textContent = `
|
|
5617
5634
|
html::-webkit-scrollbar { display: none; }
|
|
5618
5635
|
html { scrollbar-width: none; -ms-overflow-style: none; }
|
|
5619
|
-
`, document.head.appendChild(
|
|
5636
|
+
`, document.head.appendChild(b);
|
|
5620
5637
|
}
|
|
5621
5638
|
} else if (u) {
|
|
5622
5639
|
if (u.style.scrollbarWidth = "none", u.style.msOverflowStyle = "none", !document.querySelector("#cyber-scrollbar-styles")) {
|
|
5623
|
-
const
|
|
5624
|
-
|
|
5640
|
+
const b = document.createElement("style");
|
|
5641
|
+
b.id = "cyber-scrollbar-styles", b.textContent = `
|
|
5625
5642
|
.cyber-scrollbar-container::-webkit-scrollbar { display: none; }
|
|
5626
|
-
`, document.head.appendChild(
|
|
5643
|
+
`, document.head.appendChild(b);
|
|
5627
5644
|
}
|
|
5628
5645
|
u.classList.add("cyber-scrollbar-container");
|
|
5629
5646
|
}
|
|
5630
|
-
}, [
|
|
5631
|
-
const E = document.createElement("div"),
|
|
5632
|
-
|
|
5647
|
+
}, [C]), X = D((u, b, R, S) => {
|
|
5648
|
+
const E = document.createElement("div"), I = u === "arrow";
|
|
5649
|
+
I && b ? (E.className = `cyber-arrow cyber-arrow-${b} cyber-arrow-${R}`, E.innerHTML = b === "up" ? "▲" : "▼") : (E.className = `cyber-line cyber-line-${R}`, E.innerHTML = "=");
|
|
5633
5650
|
const W = S.isMobile ? "none" : `drop-shadow(0 0 6px var(--color-${r}))
|
|
5634
5651
|
drop-shadow(0 0 12px var(--color-${r}))
|
|
5635
5652
|
drop-shadow(0 0 18px var(--color-${r}))`;
|
|
5636
5653
|
return E.style.cssText = `
|
|
5637
|
-
font-size: ${
|
|
5654
|
+
font-size: ${I ? S.arrowSize : S.lineSize}px;
|
|
5638
5655
|
color: var(--color-${r});
|
|
5639
5656
|
opacity: 0;
|
|
5640
5657
|
transition: all 0.2s ease;
|
|
@@ -5643,109 +5660,109 @@ const Er = ({
|
|
|
5643
5660
|
font-weight: bold;
|
|
5644
5661
|
`, E;
|
|
5645
5662
|
}, [r]), Q = D(() => {
|
|
5646
|
-
if (
|
|
5663
|
+
if (C)
|
|
5647
5664
|
return {
|
|
5648
5665
|
height: window.innerHeight,
|
|
5649
5666
|
top: 0,
|
|
5650
5667
|
right: 0
|
|
5651
5668
|
};
|
|
5652
5669
|
{
|
|
5653
|
-
const
|
|
5670
|
+
const b = i.current.getBoundingClientRect();
|
|
5654
5671
|
return {
|
|
5655
|
-
height:
|
|
5656
|
-
top:
|
|
5657
|
-
right: window.innerWidth -
|
|
5672
|
+
height: b.height,
|
|
5673
|
+
top: b.top,
|
|
5674
|
+
right: window.innerWidth - b.right
|
|
5658
5675
|
};
|
|
5659
5676
|
}
|
|
5660
|
-
}, [
|
|
5661
|
-
if (s || !
|
|
5662
|
-
const
|
|
5663
|
-
|
|
5677
|
+
}, [C]), re = D(() => {
|
|
5678
|
+
if (s || !C && !i.current || (c.current && c.current.remove(), !(C ? document.body.scrollHeight > window.innerHeight : i.current.scrollHeight > i.current.clientHeight))) return;
|
|
5679
|
+
const b = f(), R = Q(), S = M(R.height, b.arrowSize, b.arrowGap, b.lineSize);
|
|
5680
|
+
B(C ? void 0 : i.current || void 0);
|
|
5664
5681
|
const E = document.createElement("div");
|
|
5665
5682
|
E.className = `cyber-scrollbar ${l}`.trim();
|
|
5666
|
-
const W =
|
|
5683
|
+
const W = b.isMobile ? "transparent" : d, O = G(W);
|
|
5667
5684
|
E.style.cssText = `
|
|
5668
5685
|
position: fixed;
|
|
5669
5686
|
top: ${R.top}px;
|
|
5670
5687
|
right: ${R.right}px;
|
|
5671
|
-
width: ${
|
|
5688
|
+
width: ${b.scrollbarWidth}px;
|
|
5672
5689
|
height: ${R.height}px;
|
|
5673
5690
|
pointer-events: none;
|
|
5674
5691
|
z-index: 9999;
|
|
5675
|
-
display: ${
|
|
5692
|
+
display: ${N ? "flex" : "none"};
|
|
5676
5693
|
flex-direction: column;
|
|
5677
5694
|
align-items: center;
|
|
5678
5695
|
justify-content: center;
|
|
5679
|
-
gap: ${
|
|
5680
|
-
background: ${
|
|
5681
|
-
backdrop-filter: ${
|
|
5682
|
-
border-radius: ${
|
|
5683
|
-
border: ${
|
|
5684
|
-
box-shadow: ${
|
|
5696
|
+
gap: ${b.arrowGap}px;
|
|
5697
|
+
background: ${O.background};
|
|
5698
|
+
backdrop-filter: ${O.backdropFilter};
|
|
5699
|
+
border-radius: ${C ? "4px 0 0 4px" : "4px"};
|
|
5700
|
+
border: ${O.border};
|
|
5701
|
+
box-shadow: ${O.boxShadow};
|
|
5685
5702
|
`;
|
|
5686
5703
|
for (let F = 0; F < S; F++)
|
|
5687
|
-
E.appendChild(
|
|
5704
|
+
E.appendChild(X("arrow", "up", F, b));
|
|
5688
5705
|
for (let F = 0; F < 2; F++)
|
|
5689
|
-
E.appendChild(
|
|
5706
|
+
E.appendChild(X("line", void 0, F, b));
|
|
5690
5707
|
for (let F = 0; F < S; F++)
|
|
5691
|
-
E.appendChild(
|
|
5692
|
-
document.body.appendChild(E),
|
|
5693
|
-
const
|
|
5708
|
+
E.appendChild(X("arrow", "down", F, b));
|
|
5709
|
+
document.body.appendChild(E), c.current = E;
|
|
5710
|
+
const L = C ? void 0 : () => {
|
|
5694
5711
|
const F = i.current;
|
|
5695
5712
|
if (F) {
|
|
5696
5713
|
const se = F.getBoundingClientRect();
|
|
5697
5714
|
E.style.top = `${se.top}px`, E.style.right = `${window.innerWidth - se.right}px`, E.style.height = `${se.height}px`;
|
|
5698
5715
|
}
|
|
5699
5716
|
};
|
|
5700
|
-
return
|
|
5701
|
-
E.remove(), !
|
|
5717
|
+
return L && (window.addEventListener("resize", L), window.addEventListener("scroll", L)), () => {
|
|
5718
|
+
E.remove(), !C && i.current && i.current.classList.remove("cyber-scrollbar-container"), L && (window.removeEventListener("resize", L), window.removeEventListener("scroll", L));
|
|
5702
5719
|
};
|
|
5703
|
-
}, [s,
|
|
5704
|
-
const R = Math.max(1, Math.min(3, Math.ceil(u * 0.8))), S = Math.floor(
|
|
5720
|
+
}, [s, C, N, B, Q, X, f, M, G, d, l]), ee = D((u, b) => {
|
|
5721
|
+
const R = Math.max(1, Math.min(3, Math.ceil(u * 0.8))), S = Math.floor(b / ne.DISTANCE_THRESHOLD);
|
|
5705
5722
|
return R + S;
|
|
5706
|
-
}, []),
|
|
5723
|
+
}, []), V = D((u, b, R) => {
|
|
5707
5724
|
const S = Array.from(u).filter(
|
|
5708
|
-
(
|
|
5725
|
+
(I) => I.classList.contains(`cyber-arrow-${b}`)
|
|
5709
5726
|
), E = Math.min(R, S.length);
|
|
5710
|
-
return
|
|
5711
|
-
}, []), H = D((u,
|
|
5712
|
-
const S = Math.min(
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
}),
|
|
5727
|
+
return b === "up" ? S.slice(-E) : S.slice(0, E);
|
|
5728
|
+
}, []), H = D((u, b, R) => {
|
|
5729
|
+
const S = Math.min(b * a, ne.MAX_ANIMATION_SPEED), E = window.innerWidth < ne.MOBILE_BREAKPOINT, I = Math.max(300 / S, ne.MIN_GLOW_DURATION) * (E ? 1.5 : 1), W = Math.max(40, 80 / S) * (E ? 1.25 : 1), O = R === "up" ? [...u].reverse() : u;
|
|
5730
|
+
O.forEach((L) => {
|
|
5731
|
+
L.style.opacity = "0.3";
|
|
5732
|
+
}), O.forEach((L, F) => {
|
|
5716
5733
|
const se = F * W, fe = setTimeout(() => {
|
|
5717
|
-
|
|
5718
|
-
const
|
|
5719
|
-
|
|
5720
|
-
},
|
|
5721
|
-
|
|
5734
|
+
L.style.opacity = "1";
|
|
5735
|
+
const be = setTimeout(() => {
|
|
5736
|
+
L.style.opacity = "0.3";
|
|
5737
|
+
}, I);
|
|
5738
|
+
p.current.push(be);
|
|
5722
5739
|
}, se);
|
|
5723
|
-
|
|
5740
|
+
p.current.push(fe);
|
|
5724
5741
|
});
|
|
5725
|
-
}, [a]),
|
|
5726
|
-
if (!
|
|
5727
|
-
const { isScrolling: u, direction:
|
|
5728
|
-
if (u &&
|
|
5729
|
-
|
|
5730
|
-
|
|
5742
|
+
}, [a]), q = D(() => {
|
|
5743
|
+
if (!c.current) return;
|
|
5744
|
+
const { isScrolling: u, direction: b, velocity: R, scrollDistance: S } = w, E = c.current.querySelectorAll(".cyber-arrow"), I = c.current.querySelectorAll(".cyber-line");
|
|
5745
|
+
if (u && b) {
|
|
5746
|
+
I.forEach((O) => {
|
|
5747
|
+
O.style.opacity = "0";
|
|
5731
5748
|
});
|
|
5732
5749
|
const W = ee(R, S);
|
|
5733
5750
|
if (W !== $.current) {
|
|
5734
|
-
|
|
5735
|
-
|
|
5751
|
+
p.current.forEach((L) => clearTimeout(L)), p.current = [], E.forEach((L) => {
|
|
5752
|
+
L.style.opacity = "0";
|
|
5736
5753
|
});
|
|
5737
|
-
const
|
|
5738
|
-
H(
|
|
5754
|
+
const O = V(Array.from(E), b, W);
|
|
5755
|
+
H(O, R, b), $.current = W;
|
|
5739
5756
|
}
|
|
5740
5757
|
} else
|
|
5741
|
-
|
|
5758
|
+
p.current.forEach((W) => clearTimeout(W)), p.current = [], $.current = 0, E.forEach((W) => {
|
|
5742
5759
|
W.style.opacity = "0";
|
|
5743
|
-
}),
|
|
5760
|
+
}), v && I.forEach((W) => {
|
|
5744
5761
|
W.style.opacity = "0.6";
|
|
5745
5762
|
});
|
|
5746
|
-
}, [
|
|
5747
|
-
if (s || !
|
|
5748
|
-
const u = Date.now(),
|
|
5763
|
+
}, [w, v, H, ee, V]), Y = te(null), K = D(() => {
|
|
5764
|
+
if (s || !C && !i.current) return;
|
|
5765
|
+
const u = Date.now(), b = C ? {
|
|
5749
5766
|
currentScrollTop: window.scrollY,
|
|
5750
5767
|
scrollHeight: document.body.scrollHeight,
|
|
5751
5768
|
clientHeight: window.innerHeight
|
|
@@ -5753,130 +5770,141 @@ const Er = ({
|
|
|
5753
5770
|
currentScrollTop: i.current.scrollTop,
|
|
5754
5771
|
scrollHeight: i.current.scrollHeight,
|
|
5755
5772
|
clientHeight: i.current.clientHeight
|
|
5756
|
-
}, R = u -
|
|
5757
|
-
|
|
5758
|
-
const
|
|
5759
|
-
|
|
5773
|
+
}, R = u - g.current, S = b.currentScrollTop - m.current, I = Math.abs(S) / Math.max(R, 1) * ne.VELOCITY_MULTIPLIER, W = S > 0 ? "down" : S < 0 ? "up" : null, O = b.currentScrollTop / (b.scrollHeight - b.clientHeight);
|
|
5774
|
+
v || A(!0);
|
|
5775
|
+
const L = window.innerWidth < ne.MOBILE_BREAKPOINT;
|
|
5776
|
+
L && !N && _(!0), x((F) => ({
|
|
5760
5777
|
isScrolling: !0,
|
|
5761
5778
|
direction: W,
|
|
5762
|
-
velocity:
|
|
5763
|
-
position:
|
|
5779
|
+
velocity: I,
|
|
5780
|
+
position: O,
|
|
5764
5781
|
scrollDistance: F.direction !== W ? Math.abs(S) : F.scrollDistance + Math.abs(S)
|
|
5765
|
-
})),
|
|
5766
|
-
|
|
5782
|
+
})), y.current && clearTimeout(y.current), h.current && clearTimeout(h.current), y.current = setTimeout(() => {
|
|
5783
|
+
p.current.forEach((F) => clearTimeout(F)), p.current = [], x((F) => ({
|
|
5767
5784
|
...F,
|
|
5768
5785
|
isScrolling: !1,
|
|
5769
5786
|
velocity: 0,
|
|
5770
5787
|
scrollDistance: 0
|
|
5771
|
-
})),
|
|
5788
|
+
})), L && (h.current = setTimeout(() => {
|
|
5772
5789
|
_(!1);
|
|
5773
5790
|
}, ne.MOBILE_HIDE_DELAY));
|
|
5774
|
-
}, ne.STABLE_TIMEOUT),
|
|
5775
|
-
}, [s,
|
|
5791
|
+
}, ne.STABLE_TIMEOUT), g.current = u, m.current = b.currentScrollTop;
|
|
5792
|
+
}, [s, C, v, N]), o = D(() => {
|
|
5776
5793
|
Y.current === null && (Y.current = requestAnimationFrame(() => {
|
|
5777
5794
|
Y.current = null, K();
|
|
5778
5795
|
}));
|
|
5779
5796
|
}, [K]);
|
|
5780
|
-
return
|
|
5781
|
-
if (s || !
|
|
5782
|
-
const u = re(),
|
|
5783
|
-
return
|
|
5784
|
-
|
|
5797
|
+
return oe(() => {
|
|
5798
|
+
if (s || !C && !i.current) return;
|
|
5799
|
+
const u = re(), b = C ? window : i.current;
|
|
5800
|
+
return b.addEventListener("scroll", o, { passive: !0 }), () => {
|
|
5801
|
+
b.removeEventListener("scroll", o), y.current && clearTimeout(y.current), h.current && clearTimeout(h.current), p.current.forEach((R) => clearTimeout(R)), Y.current !== null && (cancelAnimationFrame(Y.current), Y.current = null), u?.();
|
|
5785
5802
|
};
|
|
5786
|
-
}, [re, o, s,
|
|
5787
|
-
|
|
5788
|
-
}, [
|
|
5789
|
-
}, nt = lt(void 0),
|
|
5803
|
+
}, [re, o, s, C]), oe(() => {
|
|
5804
|
+
q();
|
|
5805
|
+
}, [q]), i;
|
|
5806
|
+
}, nt = lt(void 0), Pr = () => {
|
|
5790
5807
|
const e = it(nt);
|
|
5791
5808
|
if (e === void 0)
|
|
5792
5809
|
throw new Error(
|
|
5793
5810
|
"useCyberNotifications must be used within a CyberNotificationProvider"
|
|
5794
5811
|
);
|
|
5795
5812
|
return e;
|
|
5796
|
-
},
|
|
5797
|
-
const
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5813
|
+
}, Ir = (e = {}) => {
|
|
5814
|
+
const { min: r = 5, max: a = 95, speed: s = 30 } = e, [n, d] = Z(0), [l, i] = Z(1);
|
|
5815
|
+
return oe(() => {
|
|
5816
|
+
const c = setInterval(() => {
|
|
5817
|
+
d((g) => {
|
|
5818
|
+
let m = g + l;
|
|
5819
|
+
return m >= a ? (m = a, i(-1)) : m <= r && (m = r, i(1)), m;
|
|
5820
|
+
});
|
|
5821
|
+
}, s);
|
|
5822
|
+
return () => clearInterval(c);
|
|
5823
|
+
}, [l, r, a, s]), n;
|
|
5824
|
+
}, Or = ({ children: e, position: r = "top-right", defaultDuration: a = 2500 }) => {
|
|
5825
|
+
const [s, n] = Z([]), d = D(
|
|
5826
|
+
(m, y, p, h = {}) => {
|
|
5827
|
+
const w = Date.now().toString(), { autoHide: x = !0, duration: v = a } = h;
|
|
5828
|
+
return n((A) => [...A, { id: w, type: m, title: y, message: p }]), x && setTimeout(() => {
|
|
5801
5829
|
n(
|
|
5802
|
-
(A) => A.map((
|
|
5830
|
+
(A) => A.map((N) => N.id === w ? { ...N, isClosing: !0 } : N)
|
|
5803
5831
|
), setTimeout(() => {
|
|
5804
|
-
n((A) => A.filter((
|
|
5832
|
+
n((A) => A.filter((N) => N.id !== w));
|
|
5805
5833
|
}, 500);
|
|
5806
|
-
},
|
|
5834
|
+
}, v), w;
|
|
5807
5835
|
},
|
|
5808
5836
|
[a]
|
|
5809
|
-
), l = D((
|
|
5837
|
+
), l = D((m) => {
|
|
5810
5838
|
n(
|
|
5811
|
-
(
|
|
5839
|
+
(y) => y.map((p) => p.id === m ? { ...p, isClosing: !0 } : p)
|
|
5812
5840
|
), setTimeout(() => {
|
|
5813
|
-
n((
|
|
5841
|
+
n((y) => y.filter((p) => p.id !== m));
|
|
5814
5842
|
}, 500);
|
|
5815
5843
|
}, []), i = D(() => {
|
|
5816
5844
|
n([]);
|
|
5817
|
-
}, []),
|
|
5845
|
+
}, []), c = D((m, y) => {
|
|
5818
5846
|
n(
|
|
5819
|
-
(
|
|
5847
|
+
(p) => p.map((h) => h.id === m ? { ...h, width: y } : h)
|
|
5820
5848
|
);
|
|
5821
|
-
}, []),
|
|
5849
|
+
}, []), g = {
|
|
5822
5850
|
notifications: s,
|
|
5823
|
-
showNotification:
|
|
5851
|
+
showNotification: d,
|
|
5824
5852
|
hideNotification: l,
|
|
5825
5853
|
clearAllNotifications: i
|
|
5826
5854
|
};
|
|
5827
|
-
return /* @__PURE__ */ t.jsxs(nt.Provider, { value:
|
|
5855
|
+
return /* @__PURE__ */ t.jsxs(nt.Provider, { value: g, children: [
|
|
5828
5856
|
e,
|
|
5829
5857
|
s.length > 0 && /* @__PURE__ */ t.jsx(
|
|
5830
5858
|
"div",
|
|
5831
5859
|
{
|
|
5832
|
-
className: `fixed z-50 ${
|
|
5860
|
+
className: `fixed z-50 ${pr(r)}`,
|
|
5833
5861
|
"aria-live": "polite",
|
|
5834
5862
|
"aria-relevant": "additions text",
|
|
5835
5863
|
"aria-atomic": "true",
|
|
5836
|
-
children: s.map((
|
|
5864
|
+
children: s.map((m, y) => /* @__PURE__ */ t.jsx(
|
|
5837
5865
|
"div",
|
|
5838
5866
|
{
|
|
5839
5867
|
className: "absolute",
|
|
5840
5868
|
style: {
|
|
5841
5869
|
right: r.includes("right") ? 0 : void 0,
|
|
5842
5870
|
left: r.includes("left") ? 0 : void 0,
|
|
5843
|
-
top: `${
|
|
5844
|
-
width:
|
|
5871
|
+
top: `${y * 70}px`,
|
|
5872
|
+
width: m.width ? `${m.width}px` : "auto"
|
|
5845
5873
|
},
|
|
5846
5874
|
children: /* @__PURE__ */ t.jsx(
|
|
5847
5875
|
"div",
|
|
5848
5876
|
{
|
|
5849
|
-
className: `transform transition-all duration-500 ease-out scale-75 opacity-90 w-full ${r.includes("right") ? "flex justify-end" : "flex justify-start"} ${
|
|
5877
|
+
className: `transform transition-all duration-500 ease-out scale-75 opacity-90 w-full ${r.includes("right") ? "flex justify-end" : "flex justify-start"} ${m.isClosing ? `${r.includes("right") ? "translate-x-full" : "-translate-x-full"} opacity-0` : "translate-x-0 opacity-90"}`,
|
|
5850
5878
|
style: {
|
|
5851
5879
|
whiteSpace: "nowrap",
|
|
5852
5880
|
transformOrigin: r.includes("right") ? "right center" : "left center",
|
|
5853
|
-
transform:
|
|
5881
|
+
transform: m.isClosing ? `translateX(${r.includes("right") ? "100%" : "-100%"}) scale(0.75)` : `translateX(${m.width ? "0px" : r.includes("right") ? "100%" : "-100%"}) scale(0.75)`
|
|
5854
5882
|
},
|
|
5855
|
-
ref: (
|
|
5856
|
-
if (
|
|
5857
|
-
const
|
|
5858
|
-
|
|
5883
|
+
ref: (p) => {
|
|
5884
|
+
if (p && !m.width) {
|
|
5885
|
+
const h = p.scrollWidth;
|
|
5886
|
+
c(m.id, h);
|
|
5859
5887
|
}
|
|
5860
5888
|
},
|
|
5861
5889
|
children: /* @__PURE__ */ t.jsx(
|
|
5862
|
-
|
|
5890
|
+
ir,
|
|
5863
5891
|
{
|
|
5864
|
-
type:
|
|
5865
|
-
title:
|
|
5866
|
-
message:
|
|
5867
|
-
onClose: () => l(
|
|
5892
|
+
type: m.type,
|
|
5893
|
+
title: m.title,
|
|
5894
|
+
message: m.message,
|
|
5895
|
+
onClose: () => l(m.id),
|
|
5868
5896
|
size: "sm"
|
|
5869
5897
|
}
|
|
5870
5898
|
)
|
|
5871
5899
|
}
|
|
5872
5900
|
)
|
|
5873
5901
|
},
|
|
5874
|
-
|
|
5902
|
+
m.id
|
|
5875
5903
|
))
|
|
5876
5904
|
}
|
|
5877
5905
|
)
|
|
5878
5906
|
] });
|
|
5879
|
-
},
|
|
5907
|
+
}, pr = (e) => {
|
|
5880
5908
|
const r = {
|
|
5881
5909
|
"top-right": "top-4 right-4",
|
|
5882
5910
|
"top-left": "top-4 left-4",
|
|
@@ -5884,36 +5912,50 @@ const Er = ({
|
|
|
5884
5912
|
"bottom-left": "bottom-4 left-4"
|
|
5885
5913
|
};
|
|
5886
5914
|
return r[e] || r["top-right"];
|
|
5887
|
-
},
|
|
5915
|
+
}, Dr = "2.2.0";
|
|
5916
|
+
if (typeof window < "u") {
|
|
5917
|
+
const e = () => {
|
|
5918
|
+
getComputedStyle(document.documentElement).getPropertyValue("--color-primary").trim() || console.warn(
|
|
5919
|
+
`[cyberui-2045] Stylesheet not detected.
|
|
5920
|
+
Add this line to your app entry file (e.g. main.tsx / index.tsx):
|
|
5921
|
+
|
|
5922
|
+
import 'cyberui-2045/styles.css';
|
|
5923
|
+
|
|
5924
|
+
Without it all components lose colors, backgrounds, and animations.`
|
|
5925
|
+
);
|
|
5926
|
+
};
|
|
5927
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", e, { once: !0 }) : e();
|
|
5928
|
+
}
|
|
5888
5929
|
export {
|
|
5889
|
-
|
|
5930
|
+
Nr as Badge,
|
|
5890
5931
|
We as Button,
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5932
|
+
jr as Card,
|
|
5933
|
+
$r as Carousel,
|
|
5934
|
+
Lr as Checkbox,
|
|
5935
|
+
yr as CircularProgress,
|
|
5936
|
+
Or as CyberNotificationProvider,
|
|
5937
|
+
Mr as Divider,
|
|
5938
|
+
Tr as GradientText,
|
|
5898
5939
|
je as Image,
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5940
|
+
kr as Input,
|
|
5941
|
+
wr as LinearProgress,
|
|
5942
|
+
fr as Modal,
|
|
5943
|
+
ir as Notification,
|
|
5944
|
+
ae as RESPONSIVE_SIZE_MAPS,
|
|
5945
|
+
_r as SectionTitle,
|
|
5946
|
+
vr as SegmentedProgress,
|
|
5947
|
+
Sr as Select,
|
|
5948
|
+
Er as Skeleton,
|
|
5949
|
+
Ar as Steps,
|
|
5950
|
+
xr as TabNavigation,
|
|
5951
|
+
Rr as Timeline,
|
|
5952
|
+
Cr as Toggle,
|
|
5912
5953
|
T as cn,
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5954
|
+
gr as combineResponsiveClasses,
|
|
5955
|
+
U as getResponsiveClasses,
|
|
5956
|
+
Ir as useAnimatedProgress,
|
|
5957
|
+
Pr as useCyberNotifications,
|
|
5958
|
+
zr as useCyberScrollbar,
|
|
5959
|
+
Dr as version
|
|
5918
5960
|
};
|
|
5919
5961
|
//# sourceMappingURL=index.es.js.map
|