cyberui-2045 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1289 -1053
- package/dist/index.js +33 -30
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createPortal as
|
|
3
|
-
var
|
|
1
|
+
import Ue, { useCallback as w, useState as V, useEffect as J, memo as ue, useRef as B, useMemo as oe, createContext as Ie, useContext as Ce, useId as Ee } from "react";
|
|
2
|
+
import { createPortal as xe } from "react-dom";
|
|
3
|
+
var ie = { exports: {} }, ce = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-dev-runtime.production.js
|
|
@@ -10,14 +10,14 @@ var oe = { exports: {} }, ie = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
return
|
|
13
|
+
var fe;
|
|
14
|
+
function ke() {
|
|
15
|
+
if (fe) return ce;
|
|
16
|
+
fe = 1;
|
|
17
|
+
var r = Symbol.for("react.fragment");
|
|
18
|
+
return ce.Fragment = r, ce.jsxDEV = void 0, ce;
|
|
19
19
|
}
|
|
20
|
-
var
|
|
20
|
+
var le = {};
|
|
21
21
|
/**
|
|
22
22
|
* @license React
|
|
23
23
|
* react-jsx-dev-runtime.development.js
|
|
@@ -27,258 +27,258 @@ var ce = {};
|
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
29
|
*/
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
return
|
|
33
|
-
function
|
|
34
|
-
if (
|
|
35
|
-
if (typeof
|
|
36
|
-
return
|
|
37
|
-
if (typeof
|
|
38
|
-
switch (
|
|
39
|
-
case
|
|
30
|
+
var Ne;
|
|
31
|
+
function Pe() {
|
|
32
|
+
return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
|
|
33
|
+
function r(t) {
|
|
34
|
+
if (t == null) return null;
|
|
35
|
+
if (typeof t == "function")
|
|
36
|
+
return t.$$typeof === z ? null : t.displayName || t.name || null;
|
|
37
|
+
if (typeof t == "string") return t;
|
|
38
|
+
switch (t) {
|
|
39
|
+
case I:
|
|
40
40
|
return "Fragment";
|
|
41
|
-
case
|
|
41
|
+
case E:
|
|
42
42
|
return "Profiler";
|
|
43
43
|
case y:
|
|
44
44
|
return "StrictMode";
|
|
45
|
-
case
|
|
45
|
+
case j:
|
|
46
46
|
return "Suspense";
|
|
47
|
-
case
|
|
47
|
+
case S:
|
|
48
48
|
return "SuspenseList";
|
|
49
|
-
case
|
|
49
|
+
case M:
|
|
50
50
|
return "Activity";
|
|
51
51
|
}
|
|
52
|
-
if (typeof
|
|
53
|
-
switch (typeof
|
|
52
|
+
if (typeof t == "object")
|
|
53
|
+
switch (typeof t.tag == "number" && console.error(
|
|
54
54
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
55
|
-
),
|
|
55
|
+
), t.$$typeof) {
|
|
56
56
|
case U:
|
|
57
57
|
return "Portal";
|
|
58
|
-
case
|
|
59
|
-
return (
|
|
60
|
-
case
|
|
61
|
-
return (
|
|
62
|
-
case
|
|
63
|
-
var n =
|
|
64
|
-
return
|
|
65
|
-
case
|
|
66
|
-
return n =
|
|
67
|
-
case
|
|
68
|
-
n =
|
|
58
|
+
case k:
|
|
59
|
+
return (t.displayName || "Context") + ".Provider";
|
|
60
|
+
case x:
|
|
61
|
+
return (t._context.displayName || "Context") + ".Consumer";
|
|
62
|
+
case D:
|
|
63
|
+
var n = t.render;
|
|
64
|
+
return t = t.displayName, t || (t = n.displayName || n.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
65
|
+
case O:
|
|
66
|
+
return n = t.displayName || null, n !== null ? n : r(t.type) || "Memo";
|
|
67
|
+
case v:
|
|
68
|
+
n = t._payload, t = t._init;
|
|
69
69
|
try {
|
|
70
|
-
return
|
|
70
|
+
return r(t(n));
|
|
71
71
|
} catch {
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
return null;
|
|
75
75
|
}
|
|
76
|
-
function t
|
|
77
|
-
return "" +
|
|
76
|
+
function s(t) {
|
|
77
|
+
return "" + t;
|
|
78
78
|
}
|
|
79
|
-
function m(
|
|
79
|
+
function m(t) {
|
|
80
80
|
try {
|
|
81
|
-
t
|
|
81
|
+
s(t);
|
|
82
82
|
var n = !1;
|
|
83
83
|
} catch {
|
|
84
84
|
n = !0;
|
|
85
85
|
}
|
|
86
86
|
if (n) {
|
|
87
87
|
n = console;
|
|
88
|
-
var
|
|
89
|
-
return
|
|
88
|
+
var a = n.error, C = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
89
|
+
return a.call(
|
|
90
90
|
n,
|
|
91
91
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
92
|
-
|
|
93
|
-
), t
|
|
92
|
+
C
|
|
93
|
+
), s(t);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
if (
|
|
98
|
-
if (typeof
|
|
96
|
+
function o(t) {
|
|
97
|
+
if (t === I) return "<>";
|
|
98
|
+
if (typeof t == "object" && t !== null && t.$$typeof === v)
|
|
99
99
|
return "<...>";
|
|
100
100
|
try {
|
|
101
|
-
var n =
|
|
101
|
+
var n = r(t);
|
|
102
102
|
return n ? "<" + n + ">" : "<...>";
|
|
103
103
|
} catch {
|
|
104
104
|
return "<...>";
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
function i() {
|
|
108
|
-
var
|
|
109
|
-
return
|
|
108
|
+
var t = H.A;
|
|
109
|
+
return t === null ? null : t.getOwner();
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function d() {
|
|
112
112
|
return Error("react-stack-top-frame");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
if (
|
|
116
|
-
var n = Object.getOwnPropertyDescriptor(
|
|
114
|
+
function u(t) {
|
|
115
|
+
if (F.call(t, "key")) {
|
|
116
|
+
var n = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
117
117
|
if (n && n.isReactWarning) return !1;
|
|
118
118
|
}
|
|
119
|
-
return
|
|
119
|
+
return t.key !== void 0;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
function
|
|
123
|
-
|
|
121
|
+
function c(t, n) {
|
|
122
|
+
function a() {
|
|
123
|
+
Y || (Y = !0, console.error(
|
|
124
124
|
"%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)",
|
|
125
125
|
n
|
|
126
126
|
));
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
get:
|
|
128
|
+
a.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
129
|
+
get: a,
|
|
130
130
|
configurable: !0
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
var
|
|
135
|
-
return
|
|
133
|
+
function b() {
|
|
134
|
+
var t = r(this.type);
|
|
135
|
+
return W[t] || (W[t] = !0, console.error(
|
|
136
136
|
"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."
|
|
137
|
-
)),
|
|
137
|
+
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
138
138
|
}
|
|
139
|
-
function h(
|
|
140
|
-
return
|
|
141
|
-
$$typeof:
|
|
142
|
-
type:
|
|
139
|
+
function h(t, n, a, C, g, P, _, A) {
|
|
140
|
+
return a = P.ref, t = {
|
|
141
|
+
$$typeof: p,
|
|
142
|
+
type: t,
|
|
143
143
|
key: n,
|
|
144
|
-
props:
|
|
145
|
-
_owner:
|
|
146
|
-
}, (
|
|
144
|
+
props: P,
|
|
145
|
+
_owner: g
|
|
146
|
+
}, (a !== void 0 ? a : null) !== null ? Object.defineProperty(t, "ref", {
|
|
147
147
|
enumerable: !1,
|
|
148
|
-
get:
|
|
149
|
-
}) : Object.defineProperty(
|
|
148
|
+
get: b
|
|
149
|
+
}) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
|
|
150
150
|
configurable: !1,
|
|
151
151
|
enumerable: !1,
|
|
152
152
|
writable: !0,
|
|
153
153
|
value: 0
|
|
154
|
-
}), Object.defineProperty(
|
|
154
|
+
}), Object.defineProperty(t, "_debugInfo", {
|
|
155
155
|
configurable: !1,
|
|
156
156
|
enumerable: !1,
|
|
157
157
|
writable: !0,
|
|
158
158
|
value: null
|
|
159
|
-
}), Object.defineProperty(
|
|
159
|
+
}), Object.defineProperty(t, "_debugStack", {
|
|
160
160
|
configurable: !1,
|
|
161
161
|
enumerable: !1,
|
|
162
162
|
writable: !0,
|
|
163
|
-
value:
|
|
164
|
-
}), Object.defineProperty(
|
|
163
|
+
value: _
|
|
164
|
+
}), Object.defineProperty(t, "_debugTask", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
writable: !0,
|
|
168
|
-
value:
|
|
169
|
-
}), Object.freeze && (Object.freeze(
|
|
168
|
+
value: A
|
|
169
|
+
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
var
|
|
173
|
-
if (
|
|
174
|
-
if (
|
|
175
|
-
if (
|
|
176
|
-
for (
|
|
177
|
-
N(
|
|
178
|
-
Object.freeze && Object.freeze(
|
|
171
|
+
function l(t, n, a, C, g, P, _, A) {
|
|
172
|
+
var T = n.children;
|
|
173
|
+
if (T !== void 0)
|
|
174
|
+
if (C)
|
|
175
|
+
if (ee(T)) {
|
|
176
|
+
for (C = 0; C < T.length; C++)
|
|
177
|
+
N(T[C]);
|
|
178
|
+
Object.freeze && Object.freeze(T);
|
|
179
179
|
} else
|
|
180
180
|
console.error(
|
|
181
181
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
182
182
|
);
|
|
183
|
-
else N(
|
|
184
|
-
if (
|
|
185
|
-
|
|
186
|
-
var
|
|
187
|
-
return
|
|
183
|
+
else N(T);
|
|
184
|
+
if (F.call(n, "key")) {
|
|
185
|
+
T = r(t);
|
|
186
|
+
var L = Object.keys(n).filter(function(te) {
|
|
187
|
+
return te !== "key";
|
|
188
188
|
});
|
|
189
|
-
|
|
189
|
+
C = 0 < L.length ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}", X[T + C] || (L = 0 < L.length ? "{" + L.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
190
190
|
`A props object containing a "key" prop is being spread into JSX:
|
|
191
191
|
let props = %s;
|
|
192
192
|
<%s {...props} />
|
|
193
193
|
React keys must be passed directly to JSX without using spread:
|
|
194
194
|
let props = %s;
|
|
195
195
|
<%s key={someKey} {...props} />`,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
),
|
|
196
|
+
C,
|
|
197
|
+
T,
|
|
198
|
+
L,
|
|
199
|
+
T
|
|
200
|
+
), X[T + C] = !0);
|
|
201
201
|
}
|
|
202
|
-
if (
|
|
203
|
-
|
|
204
|
-
for (var
|
|
205
|
-
|
|
206
|
-
} else
|
|
207
|
-
return
|
|
208
|
-
|
|
209
|
-
typeof
|
|
202
|
+
if (T = null, a !== void 0 && (m(a), T = "" + a), u(n) && (m(n.key), T = "" + n.key), "key" in n) {
|
|
203
|
+
a = {};
|
|
204
|
+
for (var R in n)
|
|
205
|
+
R !== "key" && (a[R] = n[R]);
|
|
206
|
+
} else a = n;
|
|
207
|
+
return T && c(
|
|
208
|
+
a,
|
|
209
|
+
typeof t == "function" ? t.displayName || t.name || "Unknown" : t
|
|
210
210
|
), h(
|
|
211
|
-
|
|
211
|
+
t,
|
|
212
|
+
T,
|
|
212
213
|
P,
|
|
213
|
-
|
|
214
|
-
p,
|
|
214
|
+
g,
|
|
215
215
|
i(),
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
a,
|
|
217
|
+
_,
|
|
218
|
+
A
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
|
-
function N(
|
|
222
|
-
typeof
|
|
221
|
+
function N(t) {
|
|
222
|
+
typeof t == "object" && t !== null && t.$$typeof === p && t._store && (t._store.validated = 1);
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var f = Ue, p = Symbol.for("react.transitional.element"), U = Symbol.for("react.portal"), I = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), k = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), H = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, ee = Array.isArray, Z = console.createTask ? console.createTask : function() {
|
|
225
225
|
return null;
|
|
226
226
|
};
|
|
227
|
-
|
|
228
|
-
react_stack_bottom_frame: function(
|
|
229
|
-
return
|
|
227
|
+
f = {
|
|
228
|
+
react_stack_bottom_frame: function(t) {
|
|
229
|
+
return t();
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
)(),
|
|
236
|
-
|
|
237
|
-
var
|
|
238
|
-
return
|
|
239
|
-
|
|
232
|
+
var Y, W = {}, K = f.react_stack_bottom_frame.bind(
|
|
233
|
+
f,
|
|
234
|
+
d
|
|
235
|
+
)(), $ = Z(o(d)), X = {};
|
|
236
|
+
le.Fragment = I, le.jsxDEV = function(t, n, a, C, g, P) {
|
|
237
|
+
var _ = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
238
|
+
return l(
|
|
239
|
+
t,
|
|
240
240
|
n,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
241
|
+
a,
|
|
242
|
+
C,
|
|
243
|
+
g,
|
|
244
|
+
P,
|
|
245
|
+
_ ? Error("react-stack-top-frame") : K,
|
|
246
|
+
_ ? Z(o(t)) : $
|
|
247
247
|
);
|
|
248
248
|
};
|
|
249
|
-
}()),
|
|
249
|
+
}()), le;
|
|
250
250
|
}
|
|
251
|
-
var
|
|
252
|
-
function
|
|
253
|
-
return
|
|
251
|
+
var pe;
|
|
252
|
+
function De() {
|
|
253
|
+
return pe || (pe = 1, process.env.NODE_ENV === "production" ? ie.exports = ke() : ie.exports = Pe()), ie.exports;
|
|
254
254
|
}
|
|
255
|
-
var e =
|
|
256
|
-
const
|
|
257
|
-
if (
|
|
258
|
-
return
|
|
255
|
+
var e = De();
|
|
256
|
+
const be = (r) => typeof r == "object" && r !== null, q = (r, s) => {
|
|
257
|
+
if (!be(r))
|
|
258
|
+
return s[r] || "";
|
|
259
259
|
const m = [];
|
|
260
|
-
if (
|
|
261
|
-
const
|
|
262
|
-
m.push(...
|
|
260
|
+
if (r.base && s[r.base] && m.push(s[r.base]), r.sm && s[r.sm]) {
|
|
261
|
+
const o = s[r.sm].split(" ").map((i) => `sm:${i}`);
|
|
262
|
+
m.push(...o);
|
|
263
263
|
}
|
|
264
|
-
if (
|
|
265
|
-
const
|
|
266
|
-
m.push(...
|
|
264
|
+
if (r.md && s[r.md]) {
|
|
265
|
+
const o = s[r.md].split(" ").map((i) => `md:${i}`);
|
|
266
|
+
m.push(...o);
|
|
267
267
|
}
|
|
268
|
-
if (
|
|
269
|
-
const
|
|
270
|
-
m.push(...
|
|
268
|
+
if (r.lg && s[r.lg]) {
|
|
269
|
+
const o = s[r.lg].split(" ").map((i) => `lg:${i}`);
|
|
270
|
+
m.push(...o);
|
|
271
271
|
}
|
|
272
|
-
if (
|
|
273
|
-
const
|
|
274
|
-
m.push(...
|
|
272
|
+
if (r.xl && s[r.xl]) {
|
|
273
|
+
const o = s[r.xl].split(" ").map((i) => `xl:${i}`);
|
|
274
|
+
m.push(...o);
|
|
275
275
|
}
|
|
276
|
-
if (
|
|
277
|
-
const
|
|
278
|
-
m.push(...
|
|
276
|
+
if (r["2xl"] && s[r["2xl"]]) {
|
|
277
|
+
const o = s[r["2xl"]].split(" ").map((i) => `2xl:${i}`);
|
|
278
|
+
m.push(...o);
|
|
279
279
|
}
|
|
280
280
|
return m.join(" ");
|
|
281
|
-
},
|
|
281
|
+
}, Ze = (...r) => r.filter(Boolean).join(" "), Q = {
|
|
282
282
|
button: {
|
|
283
283
|
sm: "py-1 px-4 text-sm",
|
|
284
284
|
md: "py-2 px-6 text-lg",
|
|
@@ -331,15 +331,45 @@ const Y = (s, t) => {
|
|
|
331
331
|
md: "h-64",
|
|
332
332
|
lg: "h-80"
|
|
333
333
|
}
|
|
334
|
-
},
|
|
335
|
-
|
|
336
|
-
|
|
334
|
+
}, we = {
|
|
335
|
+
base: 0,
|
|
336
|
+
sm: 640,
|
|
337
|
+
md: 768,
|
|
338
|
+
lg: 1024,
|
|
339
|
+
xl: 1280,
|
|
340
|
+
"2xl": 1536
|
|
341
|
+
}, Ve = (r, s, m) => {
|
|
342
|
+
if (!be(r))
|
|
343
|
+
return r ?? m;
|
|
344
|
+
let o = r.base ?? m;
|
|
345
|
+
const i = ["sm", "md", "lg", "xl", "2xl"];
|
|
346
|
+
for (const d of i) {
|
|
347
|
+
const u = we[d];
|
|
348
|
+
s >= u && r[d] !== void 0 && (o = r[d]);
|
|
349
|
+
}
|
|
350
|
+
return o;
|
|
351
|
+
}, Te = (r, s) => {
|
|
352
|
+
const m = w(
|
|
353
|
+
() => typeof window > "u" ? s : Ve(r, window.innerWidth, s),
|
|
354
|
+
[s, r]
|
|
355
|
+
), [o, i] = V(m);
|
|
356
|
+
return J(() => {
|
|
357
|
+
if (!be(r)) {
|
|
358
|
+
i(r ?? s);
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
const d = () => i(m());
|
|
362
|
+
return d(), window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
|
|
363
|
+
}, [s, m, r]), o;
|
|
364
|
+
}, G = ({
|
|
365
|
+
variant: r = "primary",
|
|
366
|
+
size: s = "md",
|
|
337
367
|
className: m = "",
|
|
338
|
-
disabled:
|
|
368
|
+
disabled: o = !1,
|
|
339
369
|
children: i,
|
|
340
|
-
...
|
|
370
|
+
...d
|
|
341
371
|
}) => {
|
|
342
|
-
const
|
|
372
|
+
const u = [
|
|
343
373
|
"group",
|
|
344
374
|
"relative",
|
|
345
375
|
"overflow-hidden",
|
|
@@ -352,8 +382,8 @@ const Y = (s, t) => {
|
|
|
352
382
|
"ease-in-out",
|
|
353
383
|
"transform",
|
|
354
384
|
"focus:outline-none",
|
|
355
|
-
|
|
356
|
-
].join(" "),
|
|
385
|
+
o ? "cursor-not-allowed" : "cursor-pointer"
|
|
386
|
+
].join(" "), c = (N) => q(N, Q.button), b = (N, f) => ({
|
|
357
387
|
primary: {
|
|
358
388
|
enabled: "bg-linear-(--gradient-accent) text-base shadow-primary border-none hover:shadow-lg-accent hover:scale-105 focus:ring-4 focus:ring-accent active:scale-95",
|
|
359
389
|
disabled: "bg-base border-2 border-accent/20 text-accent/40 shadow-none opacity-50 hover:scale-100"
|
|
@@ -370,30 +400,30 @@ const Y = (s, t) => {
|
|
|
370
400
|
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:ring-4 focus:ring-accent active:scale-95",
|
|
371
401
|
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"
|
|
372
402
|
}
|
|
373
|
-
})[N][
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
403
|
+
})[N][f ? "disabled" : "enabled"], h = [
|
|
404
|
+
u,
|
|
405
|
+
c(s),
|
|
406
|
+
b(r, o),
|
|
377
407
|
m
|
|
378
|
-
].filter(Boolean).join(" "),
|
|
408
|
+
].filter(Boolean).join(" "), l = r === "primary" && !o;
|
|
379
409
|
return /* @__PURE__ */ e.jsxDEV(
|
|
380
410
|
"button",
|
|
381
411
|
{
|
|
382
412
|
className: h,
|
|
383
|
-
disabled:
|
|
384
|
-
...
|
|
413
|
+
disabled: o,
|
|
414
|
+
...d,
|
|
385
415
|
children: [
|
|
386
416
|
/* @__PURE__ */ e.jsxDEV("span", { className: "relative z-10", children: i }, void 0, !1, {
|
|
387
417
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Button.tsx",
|
|
388
418
|
lineNumber: 80,
|
|
389
419
|
columnNumber: 7
|
|
390
420
|
}, void 0),
|
|
391
|
-
|
|
421
|
+
l && /* @__PURE__ */ e.jsxDEV("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" }, void 0, !1, {
|
|
392
422
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Button.tsx",
|
|
393
423
|
lineNumber: 82,
|
|
394
424
|
columnNumber: 9
|
|
395
425
|
}, void 0),
|
|
396
|
-
|
|
426
|
+
o && /* @__PURE__ */ e.jsxDEV("div", { className: "absolute inset-0 bg-gradient-to-br from-transparent via-base/10 to-transparent pointer-events-none" }, void 0, !1, {
|
|
397
427
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Button.tsx",
|
|
398
428
|
lineNumber: 85,
|
|
399
429
|
columnNumber: 9
|
|
@@ -409,7 +439,7 @@ const Y = (s, t) => {
|
|
|
409
439
|
},
|
|
410
440
|
void 0
|
|
411
441
|
);
|
|
412
|
-
},
|
|
442
|
+
}, Je = () => /* @__PURE__ */ e.jsxDEV("div", { className: "text-center max-w-xl md:max-w-3xl lg:max-w-4xl mx-auto space-y-6 md:space-y-8", children: [
|
|
413
443
|
/* @__PURE__ */ e.jsxDEV("div", { className: "space-y-4", children: [
|
|
414
444
|
/* @__PURE__ */ e.jsxDEV("h2", { className: "text-3xl md:text-4xl lg:text-5xl font-semibold text-primary tracking-tight uppercase", children: "CyberUI" }, void 0, !1, {
|
|
415
445
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/HomeTab.tsx",
|
|
@@ -502,7 +532,7 @@ const Y = (s, t) => {
|
|
|
502
532
|
}, void 0),
|
|
503
533
|
/* @__PURE__ */ e.jsxDEV("div", { className: "flex flex-col sm:flex-row justify-center gap-4 sm:gap-6 pt-8", children: [
|
|
504
534
|
/* @__PURE__ */ e.jsxDEV(
|
|
505
|
-
|
|
535
|
+
G,
|
|
506
536
|
{
|
|
507
537
|
variant: "primary",
|
|
508
538
|
size: { base: "md", lg: "lg" },
|
|
@@ -519,7 +549,7 @@ const Y = (s, t) => {
|
|
|
519
549
|
void 0
|
|
520
550
|
),
|
|
521
551
|
/* @__PURE__ */ e.jsxDEV(
|
|
522
|
-
|
|
552
|
+
G,
|
|
523
553
|
{
|
|
524
554
|
variant: "secondary",
|
|
525
555
|
size: { base: "md", lg: "lg" },
|
|
@@ -544,19 +574,19 @@ const Y = (s, t) => {
|
|
|
544
574
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/HomeTab.tsx",
|
|
545
575
|
lineNumber: 6,
|
|
546
576
|
columnNumber: 5
|
|
547
|
-
}, void 0),
|
|
548
|
-
variant:
|
|
549
|
-
size:
|
|
577
|
+
}, void 0), ye = ({
|
|
578
|
+
variant: r = "primary",
|
|
579
|
+
size: s = "md",
|
|
550
580
|
label: m,
|
|
551
|
-
helperText:
|
|
581
|
+
helperText: o,
|
|
552
582
|
error: i,
|
|
553
|
-
leftIcon:
|
|
554
|
-
rightIcon:
|
|
555
|
-
className:
|
|
556
|
-
disabled:
|
|
583
|
+
leftIcon: d,
|
|
584
|
+
rightIcon: u,
|
|
585
|
+
className: c = "",
|
|
586
|
+
disabled: b = !1,
|
|
557
587
|
...h
|
|
558
588
|
}) => {
|
|
559
|
-
const
|
|
589
|
+
const l = [
|
|
560
590
|
"w-full",
|
|
561
591
|
"rounded-lg",
|
|
562
592
|
"bg-surface",
|
|
@@ -565,31 +595,31 @@ const Y = (s, t) => {
|
|
|
565
595
|
"transition-all",
|
|
566
596
|
"duration-300",
|
|
567
597
|
"focus:outline-none",
|
|
568
|
-
|
|
569
|
-
].join(" "), N = (
|
|
570
|
-
const
|
|
571
|
-
return
|
|
572
|
-
},
|
|
598
|
+
b ? "cursor-not-allowed opacity-60" : "cursor-text"
|
|
599
|
+
].join(" "), N = (E) => q(E, Q.input), f = (E) => {
|
|
600
|
+
const x = N(E);
|
|
601
|
+
return d && u ? `pl-10 pr-10 ${x}` : d ? `pl-10 pr-4 ${x}` : u ? `pl-4 pr-10 ${x}` : `px-4 ${x}`;
|
|
602
|
+
}, p = (E, x, k) => x ? "border-2 border-error shadow-error/30 hover:shadow-error focus:ring-2 focus:ring-error focus:shadow-error active:bg-base" : k ? {
|
|
573
603
|
primary: "border-2 border-accent/20 shadow-none",
|
|
574
604
|
secondary: "border-2 border-secondary/20 shadow-none",
|
|
575
605
|
danger: "border-2 border-error/20 shadow-none",
|
|
576
606
|
ghost: "border border-border-default shadow-none"
|
|
577
|
-
}[
|
|
607
|
+
}[E] : {
|
|
578
608
|
primary: "border-2 border-accent shadow-input-accent hover:shadow-lg-accent focus:ring-2 focus:ring-accent focus:shadow-lg-accent active:bg-base",
|
|
579
609
|
secondary: "border-2 border-secondary shadow-secondary/30 hover:shadow-secondary focus:ring-2 focus:ring-secondary focus:shadow-secondary active:bg-base",
|
|
580
610
|
danger: "border-2 border-error shadow-error/30 hover:shadow-error focus:ring-2 focus:ring-error focus:shadow-error active:bg-base",
|
|
581
611
|
ghost: "border border-border-default shadow-none hover:border-accent focus:ring-2 focus:ring-accent focus:border-accent active:bg-base"
|
|
582
|
-
}[
|
|
612
|
+
}[E], U = (E) => ({
|
|
583
613
|
primary: "text-accent",
|
|
584
614
|
secondary: "text-secondary",
|
|
585
615
|
danger: "text-error",
|
|
586
616
|
ghost: "text-muted"
|
|
587
|
-
})[
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
].filter(Boolean).join(" "), y = U(
|
|
617
|
+
})[E], I = [
|
|
618
|
+
l,
|
|
619
|
+
f(s),
|
|
620
|
+
p(r, !!i, b),
|
|
621
|
+
c
|
|
622
|
+
].filter(Boolean).join(" "), y = U(r);
|
|
593
623
|
return /* @__PURE__ */ e.jsxDEV("div", { className: "space-y-2", children: [
|
|
594
624
|
m && /* @__PURE__ */ e.jsxDEV("label", { className: "block text-sm font-medium text-default", children: m }, void 0, !1, {
|
|
595
625
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Input.tsx",
|
|
@@ -597,7 +627,7 @@ const Y = (s, t) => {
|
|
|
597
627
|
columnNumber: 9
|
|
598
628
|
}, void 0),
|
|
599
629
|
/* @__PURE__ */ e.jsxDEV("div", { className: "relative", children: [
|
|
600
|
-
|
|
630
|
+
d && /* @__PURE__ */ e.jsxDEV("div", { className: `absolute inset-y-0 left-0 flex items-center pl-3 ${y}`, children: d }, void 0, !1, {
|
|
601
631
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Input.tsx",
|
|
602
632
|
lineNumber: 112,
|
|
603
633
|
columnNumber: 11
|
|
@@ -605,8 +635,8 @@ const Y = (s, t) => {
|
|
|
605
635
|
/* @__PURE__ */ e.jsxDEV(
|
|
606
636
|
"input",
|
|
607
637
|
{
|
|
608
|
-
className:
|
|
609
|
-
disabled:
|
|
638
|
+
className: I,
|
|
639
|
+
disabled: b,
|
|
610
640
|
...h
|
|
611
641
|
},
|
|
612
642
|
void 0,
|
|
@@ -618,7 +648,7 @@ const Y = (s, t) => {
|
|
|
618
648
|
},
|
|
619
649
|
void 0
|
|
620
650
|
),
|
|
621
|
-
|
|
651
|
+
u && /* @__PURE__ */ e.jsxDEV("div", { className: `absolute inset-y-0 right-0 flex items-center pr-3 ${y}`, children: u }, void 0, !1, {
|
|
622
652
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Input.tsx",
|
|
623
653
|
lineNumber: 126,
|
|
624
654
|
columnNumber: 11
|
|
@@ -628,7 +658,7 @@ const Y = (s, t) => {
|
|
|
628
658
|
lineNumber: 109,
|
|
629
659
|
columnNumber: 7
|
|
630
660
|
}, void 0),
|
|
631
|
-
(
|
|
661
|
+
(o || i) && /* @__PURE__ */ e.jsxDEV("div", { className: `text-xs font-mono ${i ? "text-error" : "text-muted"}`, children: i || o }, void 0, !1, {
|
|
632
662
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Input.tsx",
|
|
633
663
|
lineNumber: 134,
|
|
634
664
|
columnNumber: 9
|
|
@@ -638,25 +668,25 @@ const Y = (s, t) => {
|
|
|
638
668
|
lineNumber: 100,
|
|
639
669
|
columnNumber: 5
|
|
640
670
|
}, void 0);
|
|
641
|
-
},
|
|
642
|
-
variant:
|
|
643
|
-
size:
|
|
671
|
+
}, se = ({
|
|
672
|
+
variant: r = "default",
|
|
673
|
+
size: s = "md",
|
|
644
674
|
title: m,
|
|
645
|
-
titleBorder:
|
|
675
|
+
titleBorder: o = !0,
|
|
646
676
|
children: i,
|
|
647
|
-
className:
|
|
648
|
-
...
|
|
677
|
+
className: d = "",
|
|
678
|
+
...u
|
|
649
679
|
}) => {
|
|
650
|
-
const
|
|
651
|
-
const N =
|
|
680
|
+
const c = (l) => q(l, Q.card), b = (l) => {
|
|
681
|
+
const N = c(s);
|
|
652
682
|
return {
|
|
653
683
|
default: `bg-base border border-border-default rounded-xl ${N}`,
|
|
654
684
|
accent: `bg-surface border-2 border-accent rounded-xl shadow-input-accent/50 hover:shadow-lg-accent transition-all duration-300 transform ${N}`,
|
|
655
685
|
small: `bg-base rounded-lg border border-border-default ${N}`
|
|
656
|
-
}[
|
|
657
|
-
}, h = (
|
|
658
|
-
return /* @__PURE__ */ e.jsxDEV("div", { className: `${
|
|
659
|
-
m && /* @__PURE__ */ e.jsxDEV("h3", { className: h(
|
|
686
|
+
}[l];
|
|
687
|
+
}, h = (l) => l ? "text-xl font-semibold text-secondary mb-4 border-b border-accent pb-2" : "text-xl font-semibold text-secondary mb-4";
|
|
688
|
+
return /* @__PURE__ */ e.jsxDEV("div", { className: `${b(r)} ${d}`, ...u, children: [
|
|
689
|
+
m && /* @__PURE__ */ e.jsxDEV("h3", { className: h(o), children: m }, void 0, !1, {
|
|
660
690
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Card.tsx",
|
|
661
691
|
lineNumber: 46,
|
|
662
692
|
columnNumber: 9
|
|
@@ -667,70 +697,70 @@ const Y = (s, t) => {
|
|
|
667
697
|
lineNumber: 44,
|
|
668
698
|
columnNumber: 5
|
|
669
699
|
}, void 0);
|
|
670
|
-
},
|
|
700
|
+
}, Se = {
|
|
671
701
|
openDuration: 50,
|
|
672
702
|
closeDuration: 350,
|
|
673
703
|
cyberpunkEffects: !0
|
|
674
|
-
},
|
|
704
|
+
}, ae = ue(
|
|
675
705
|
({
|
|
676
|
-
src:
|
|
677
|
-
alt:
|
|
706
|
+
src: r,
|
|
707
|
+
alt: s,
|
|
678
708
|
size: m = "md",
|
|
679
|
-
preview:
|
|
709
|
+
preview: o = !0,
|
|
680
710
|
fallback: i,
|
|
681
|
-
placeholder:
|
|
682
|
-
className:
|
|
683
|
-
animation:
|
|
684
|
-
eager:
|
|
711
|
+
placeholder: d,
|
|
712
|
+
className: u = "",
|
|
713
|
+
animation: c,
|
|
714
|
+
eager: b = !1,
|
|
685
715
|
previewClassName: h = "",
|
|
686
|
-
onPreviewOpen:
|
|
716
|
+
onPreviewOpen: l,
|
|
687
717
|
onPreviewClose: N,
|
|
688
|
-
onLoad:
|
|
689
|
-
onError:
|
|
718
|
+
onLoad: f,
|
|
719
|
+
onError: p,
|
|
690
720
|
...U
|
|
691
721
|
}) => {
|
|
692
|
-
const
|
|
693
|
-
(
|
|
722
|
+
const I = { ...Se, ...c }, [y, E] = V(!1), [x, k] = V(!1), [D, j] = V(!1), [S, O] = V(!0), [v, M] = V(!1), [z, H] = V(!1), F = B(null), ee = B(null), Z = w(
|
|
723
|
+
(g) => q(g, Q.card),
|
|
694
724
|
[]
|
|
695
|
-
),
|
|
696
|
-
(
|
|
697
|
-
|
|
725
|
+
), Y = w(
|
|
726
|
+
(g) => {
|
|
727
|
+
O(!1), M(!1), f?.(g);
|
|
698
728
|
},
|
|
699
|
-
[
|
|
700
|
-
),
|
|
701
|
-
(
|
|
702
|
-
|
|
729
|
+
[f]
|
|
730
|
+
), W = w(
|
|
731
|
+
(g) => {
|
|
732
|
+
O(!1), i && !z ? (H(!0), M(!1)) : M(!0), p?.(g);
|
|
703
733
|
},
|
|
704
|
-
[
|
|
705
|
-
),
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
},
|
|
709
|
-
}, [
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
},
|
|
713
|
-
}, [N,
|
|
714
|
-
(
|
|
715
|
-
(
|
|
734
|
+
[p, i, z]
|
|
735
|
+
), K = w(() => {
|
|
736
|
+
o && !v && (j(!0), E(!0), l?.(), setTimeout(() => {
|
|
737
|
+
j(!1);
|
|
738
|
+
}, I.openDuration));
|
|
739
|
+
}, [o, v, l, I.openDuration]), $ = w(() => {
|
|
740
|
+
k(!0), N?.(), setTimeout(() => {
|
|
741
|
+
E(!1), k(!1);
|
|
742
|
+
}, I.closeDuration);
|
|
743
|
+
}, [N, I.closeDuration]), X = w(
|
|
744
|
+
(g) => {
|
|
745
|
+
(g.target === F.current || g.target === g.currentTarget) && $();
|
|
716
746
|
},
|
|
717
|
-
[
|
|
718
|
-
),
|
|
719
|
-
(
|
|
720
|
-
|
|
747
|
+
[$]
|
|
748
|
+
), t = w(
|
|
749
|
+
(g) => {
|
|
750
|
+
g.key === "Escape" && $();
|
|
721
751
|
},
|
|
722
|
-
[
|
|
752
|
+
[$]
|
|
723
753
|
);
|
|
724
|
-
|
|
754
|
+
J(() => {
|
|
725
755
|
if (y) {
|
|
726
|
-
document.addEventListener("keydown",
|
|
727
|
-
const
|
|
728
|
-
return document.body.style.overflow = "hidden", document.body.style.paddingRight = `${
|
|
729
|
-
document.removeEventListener("keydown",
|
|
756
|
+
document.addEventListener("keydown", t);
|
|
757
|
+
const g = document.body.style.overflow, P = document.documentElement.style.scrollbarGutter, _ = document.body.style.paddingRight, A = window.innerWidth - document.documentElement.clientWidth;
|
|
758
|
+
return document.body.style.overflow = "hidden", document.body.style.paddingRight = `${A}px`, document.documentElement.style.scrollbarGutter = "auto", () => {
|
|
759
|
+
document.removeEventListener("keydown", t), document.body.style.overflow = g, document.body.style.paddingRight = _, document.documentElement.style.scrollbarGutter = P;
|
|
730
760
|
};
|
|
731
761
|
}
|
|
732
|
-
}, [y,
|
|
733
|
-
const n =
|
|
762
|
+
}, [y, t]);
|
|
763
|
+
const n = oe(
|
|
734
764
|
() => [
|
|
735
765
|
"relative",
|
|
736
766
|
"rounded-lg",
|
|
@@ -744,37 +774,37 @@ const Y = (s, t) => {
|
|
|
744
774
|
"flex",
|
|
745
775
|
"justify-center",
|
|
746
776
|
"content-center",
|
|
747
|
-
|
|
777
|
+
o && !v ? "cursor-pointer hover:scale-105 hover:border-accent hover:shadow-lg-accent focus:outline-none focus:ring-4 focus:ring-accent/50" : "",
|
|
748
778
|
Z(m),
|
|
749
|
-
|
|
779
|
+
u
|
|
750
780
|
].filter(Boolean).join(" "),
|
|
751
|
-
[
|
|
752
|
-
),
|
|
781
|
+
[o, v, Z, m, u]
|
|
782
|
+
), a = oe(
|
|
753
783
|
() => ({
|
|
754
|
-
role:
|
|
755
|
-
tabIndex:
|
|
756
|
-
"aria-label":
|
|
757
|
-
"aria-expanded":
|
|
758
|
-
onKeyDown:
|
|
759
|
-
(
|
|
784
|
+
role: o ? "button" : "img",
|
|
785
|
+
tabIndex: o && !v ? 0 : -1,
|
|
786
|
+
"aria-label": o ? `${s}. Click to enlarge` : s,
|
|
787
|
+
"aria-expanded": o ? y : void 0,
|
|
788
|
+
onKeyDown: o && !v ? (g) => {
|
|
789
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), K());
|
|
760
790
|
} : void 0
|
|
761
791
|
}),
|
|
762
|
-
[
|
|
763
|
-
),
|
|
792
|
+
[o, v, s, y, K]
|
|
793
|
+
), C = oe(
|
|
764
794
|
() => /* @__PURE__ */ e.jsxDEV(
|
|
765
795
|
"div",
|
|
766
796
|
{
|
|
767
797
|
className: n,
|
|
768
|
-
onClick:
|
|
769
|
-
...
|
|
798
|
+
onClick: K,
|
|
799
|
+
...a,
|
|
770
800
|
children: [
|
|
771
|
-
|
|
801
|
+
S && /* @__PURE__ */ e.jsxDEV(
|
|
772
802
|
"div",
|
|
773
803
|
{
|
|
774
804
|
className: "absolute m-0 inset-0 flex items-center justify-center bg-surface border-2 border-accent/20",
|
|
775
805
|
role: "status",
|
|
776
806
|
"aria-label": "Loading image",
|
|
777
|
-
children:
|
|
807
|
+
children: d || /* @__PURE__ */ e.jsxDEV("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__ */ e.jsxDEV("div", { className: "text-muted text-sm", children: "Loading..." }, void 0, !1, {
|
|
778
808
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Image.tsx",
|
|
779
809
|
lineNumber: 305,
|
|
780
810
|
columnNumber: 19
|
|
@@ -793,7 +823,7 @@ const Y = (s, t) => {
|
|
|
793
823
|
},
|
|
794
824
|
void 0
|
|
795
825
|
),
|
|
796
|
-
|
|
826
|
+
v ? /* @__PURE__ */ e.jsxDEV(
|
|
797
827
|
"div",
|
|
798
828
|
{
|
|
799
829
|
className: "flex items-center justify-center bg-surface border-2 border-error/30 text-error p-4 rounded-lg min-h-[100px]",
|
|
@@ -824,19 +854,19 @@ const Y = (s, t) => {
|
|
|
824
854
|
columnNumber: 13
|
|
825
855
|
},
|
|
826
856
|
void 0
|
|
827
|
-
) :
|
|
857
|
+
) : z ? /* @__PURE__ */ e.jsxDEV(
|
|
828
858
|
"img",
|
|
829
859
|
{
|
|
830
|
-
ref:
|
|
860
|
+
ref: ee,
|
|
831
861
|
src: i,
|
|
832
|
-
alt: `${
|
|
862
|
+
alt: `${s} (fallback)`,
|
|
833
863
|
className: "w-full h-full m-0 object-cover transition-opacity duration-300",
|
|
834
|
-
style: { opacity:
|
|
835
|
-
onLoad:
|
|
864
|
+
style: { opacity: S ? 0 : 1 },
|
|
865
|
+
onLoad: Y,
|
|
836
866
|
onError: () => {
|
|
837
|
-
|
|
867
|
+
M(!0), H(!1);
|
|
838
868
|
},
|
|
839
|
-
loading:
|
|
869
|
+
loading: b ? "eager" : "lazy",
|
|
840
870
|
decoding: "async",
|
|
841
871
|
...U
|
|
842
872
|
},
|
|
@@ -851,14 +881,14 @@ const Y = (s, t) => {
|
|
|
851
881
|
) : /* @__PURE__ */ e.jsxDEV(
|
|
852
882
|
"img",
|
|
853
883
|
{
|
|
854
|
-
ref:
|
|
855
|
-
src:
|
|
856
|
-
alt:
|
|
884
|
+
ref: ee,
|
|
885
|
+
src: r,
|
|
886
|
+
alt: s,
|
|
857
887
|
className: "w-full h-full m-0 object-cover transition-opacity duration-300",
|
|
858
|
-
style: { opacity:
|
|
859
|
-
onLoad:
|
|
860
|
-
onError:
|
|
861
|
-
loading:
|
|
888
|
+
style: { opacity: S ? 0 : 1 },
|
|
889
|
+
onLoad: Y,
|
|
890
|
+
onError: W,
|
|
891
|
+
loading: b ? "eager" : "lazy",
|
|
862
892
|
decoding: "async",
|
|
863
893
|
...U
|
|
864
894
|
},
|
|
@@ -871,7 +901,7 @@ const Y = (s, t) => {
|
|
|
871
901
|
},
|
|
872
902
|
void 0
|
|
873
903
|
),
|
|
874
|
-
|
|
904
|
+
o && !S && !v && /* @__PURE__ */ e.jsxDEV(
|
|
875
905
|
"div",
|
|
876
906
|
{
|
|
877
907
|
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",
|
|
@@ -904,30 +934,30 @@ const Y = (s, t) => {
|
|
|
904
934
|
),
|
|
905
935
|
[
|
|
906
936
|
n,
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
f,
|
|
911
|
-
C,
|
|
912
|
-
_,
|
|
913
|
-
i,
|
|
914
|
-
t,
|
|
915
|
-
W,
|
|
937
|
+
K,
|
|
938
|
+
a,
|
|
939
|
+
S,
|
|
916
940
|
d,
|
|
917
|
-
|
|
941
|
+
v,
|
|
942
|
+
z,
|
|
943
|
+
i,
|
|
918
944
|
s,
|
|
919
|
-
|
|
920
|
-
|
|
945
|
+
Y,
|
|
946
|
+
b,
|
|
947
|
+
U,
|
|
948
|
+
r,
|
|
949
|
+
W,
|
|
950
|
+
o
|
|
921
951
|
]
|
|
922
952
|
);
|
|
923
953
|
return /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: [
|
|
924
|
-
|
|
925
|
-
y &&
|
|
954
|
+
C,
|
|
955
|
+
y && xe(
|
|
926
956
|
/* @__PURE__ */ e.jsxDEV(
|
|
927
957
|
"div",
|
|
928
958
|
{
|
|
929
|
-
ref:
|
|
930
|
-
className: `fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${h} ${
|
|
959
|
+
ref: F,
|
|
960
|
+
className: `fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${h} ${x ? "bg-black/0 backdrop-blur-none opacity-0 duration-300" : D ? "bg-black/80 backdrop-blur-sm opacity-100 duration-500" : "bg-black/80 backdrop-blur-sm opacity-100 duration-300"}`,
|
|
931
961
|
style: {
|
|
932
962
|
top: 0,
|
|
933
963
|
left: 0,
|
|
@@ -935,15 +965,15 @@ const Y = (s, t) => {
|
|
|
935
965
|
height: "100vh",
|
|
936
966
|
maxWidth: "none"
|
|
937
967
|
},
|
|
938
|
-
onClick:
|
|
968
|
+
onClick: X,
|
|
939
969
|
role: "dialog",
|
|
940
970
|
"aria-modal": "true",
|
|
941
|
-
"aria-label": `Preview: ${
|
|
971
|
+
"aria-label": `Preview: ${s}`,
|
|
942
972
|
children: [
|
|
943
|
-
|
|
973
|
+
I.cyberpunkEffects && /* @__PURE__ */ e.jsxDEV(
|
|
944
974
|
"div",
|
|
945
975
|
{
|
|
946
|
-
className: `absolute transition-opacity duration-300 ${
|
|
976
|
+
className: `absolute transition-opacity duration-300 ${x ? "opacity-0" : "opacity-20"}`,
|
|
947
977
|
style: {
|
|
948
978
|
top: 0,
|
|
949
979
|
left: 0,
|
|
@@ -990,13 +1020,13 @@ const Y = (s, t) => {
|
|
|
990
1020
|
"div",
|
|
991
1021
|
{
|
|
992
1022
|
className: "relative w-full h-full flex items-center justify-center",
|
|
993
|
-
onClick:
|
|
1023
|
+
onClick: X,
|
|
994
1024
|
children: [
|
|
995
1025
|
/* @__PURE__ */ e.jsxDEV(
|
|
996
1026
|
"button",
|
|
997
1027
|
{
|
|
998
|
-
onClick:
|
|
999
|
-
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 ${
|
|
1028
|
+
onClick: $,
|
|
1029
|
+
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 ${x ? "bg-black/0 scale-50 rotate-180 opacity-0" : D ? "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"}`,
|
|
1000
1030
|
style: { lineHeight: "1" },
|
|
1001
1031
|
children: /* @__PURE__ */ e.jsxDEV(
|
|
1002
1032
|
"svg",
|
|
@@ -1068,13 +1098,13 @@ const Y = (s, t) => {
|
|
|
1068
1098
|
/* @__PURE__ */ e.jsxDEV(
|
|
1069
1099
|
"div",
|
|
1070
1100
|
{
|
|
1071
|
-
className: `relative max-w-full max-h-full flex items-center justify-center transition-all ease-out ${
|
|
1072
|
-
onClick: (
|
|
1101
|
+
className: `relative max-w-full max-h-full flex items-center justify-center transition-all ease-out ${x ? "scale-75 opacity-0 rotate-1 duration-300" : D ? "scale-95 opacity-0 rotate-0 duration-500" : "scale-100 opacity-100 rotate-0 duration-300"}`,
|
|
1102
|
+
onClick: (g) => g.stopPropagation(),
|
|
1073
1103
|
children: [
|
|
1074
|
-
|
|
1104
|
+
I.cyberpunkEffects && /* @__PURE__ */ e.jsxDEV(
|
|
1075
1105
|
"div",
|
|
1076
1106
|
{
|
|
1077
|
-
className: `absolute inset-0 rounded-lg border-2 transition-all duration-300 ${
|
|
1107
|
+
className: `absolute inset-0 rounded-lg border-2 transition-all duration-300 ${x ? "border-transparent shadow-none" : "border-accent shadow-lg-accent animate-pulse"}`,
|
|
1078
1108
|
"aria-hidden": "true"
|
|
1079
1109
|
},
|
|
1080
1110
|
void 0,
|
|
@@ -1086,10 +1116,10 @@ const Y = (s, t) => {
|
|
|
1086
1116
|
},
|
|
1087
1117
|
void 0
|
|
1088
1118
|
),
|
|
1089
|
-
|
|
1119
|
+
I.cyberpunkEffects && /* @__PURE__ */ e.jsxDEV(
|
|
1090
1120
|
"div",
|
|
1091
1121
|
{
|
|
1092
|
-
className: `absolute inset-0 overflow-hidden rounded-lg transition-opacity duration-300 z-10 ${
|
|
1122
|
+
className: `absolute inset-0 overflow-hidden rounded-lg transition-opacity duration-300 z-10 ${x ? "opacity-0" : "opacity-100"}`,
|
|
1093
1123
|
"aria-hidden": "true",
|
|
1094
1124
|
children: /* @__PURE__ */ e.jsxDEV("div", { className: "absolute top-0 left-0 w-full h-px animate-scan opacity-20", children: [
|
|
1095
1125
|
/* @__PURE__ */ e.jsxDEV("div", { className: "w-full h-full bg-gradient-to-r from-transparent via-accent to-transparent shadow-lg-accent opacity-80" }, void 0, !1, {
|
|
@@ -1120,9 +1150,9 @@ const Y = (s, t) => {
|
|
|
1120
1150
|
/* @__PURE__ */ e.jsxDEV(
|
|
1121
1151
|
"img",
|
|
1122
1152
|
{
|
|
1123
|
-
src:
|
|
1124
|
-
alt:
|
|
1125
|
-
className: `max-w-[95vw] max-h-[95vh] w-auto h-auto object-contain rounded-lg transition-all duration-300 ease-out ${
|
|
1153
|
+
src: z ? i : r,
|
|
1154
|
+
alt: z ? `${s} (fallback)` : s,
|
|
1155
|
+
className: `max-w-[95vw] max-h-[95vh] w-auto h-auto object-contain rounded-lg transition-all duration-300 ease-out ${x ? "filter blur-sm brightness-50" : "filter blur-0 brightness-100"}`,
|
|
1126
1156
|
style: {
|
|
1127
1157
|
maxWidth: "95vw",
|
|
1128
1158
|
maxHeight: "95vh",
|
|
@@ -1142,10 +1172,10 @@ const Y = (s, t) => {
|
|
|
1142
1172
|
/* @__PURE__ */ e.jsxDEV(
|
|
1143
1173
|
"div",
|
|
1144
1174
|
{
|
|
1145
|
-
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 ${
|
|
1175
|
+
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 ${x ? "translate-y-4 opacity-0" : "translate-y-0 opacity-100"}`,
|
|
1146
1176
|
children: /* @__PURE__ */ e.jsxDEV("p", { className: "text-white text-sm font-medium truncate relative", children: [
|
|
1147
|
-
|
|
1148
|
-
|
|
1177
|
+
z ? `${s} (fallback)` : s,
|
|
1178
|
+
I.cyberpunkEffects && /* @__PURE__ */ e.jsxDEV("span", { className: "absolute inset-0 text-accent opacity-20 animate-pulse", children: z ? `${s} (fallback)` : s }, void 0, !1, {
|
|
1149
1179
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Image.tsx",
|
|
1150
1180
|
lineNumber: 552,
|
|
1151
1181
|
columnNumber: 23
|
|
@@ -1165,11 +1195,11 @@ const Y = (s, t) => {
|
|
|
1165
1195
|
},
|
|
1166
1196
|
void 0
|
|
1167
1197
|
),
|
|
1168
|
-
|
|
1198
|
+
I.cyberpunkEffects && /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: [
|
|
1169
1199
|
/* @__PURE__ */ e.jsxDEV(
|
|
1170
1200
|
"div",
|
|
1171
1201
|
{
|
|
1172
|
-
className: `absolute top-2 left-2 w-4 h-4 border-l-2 border-t-2 border-accent transition-all duration-300 ${
|
|
1202
|
+
className: `absolute top-2 left-2 w-4 h-4 border-l-2 border-t-2 border-accent transition-all duration-300 ${x ? "opacity-0 scale-0" : "opacity-60 scale-100"}`,
|
|
1173
1203
|
"aria-hidden": "true"
|
|
1174
1204
|
},
|
|
1175
1205
|
void 0,
|
|
@@ -1184,7 +1214,7 @@ const Y = (s, t) => {
|
|
|
1184
1214
|
/* @__PURE__ */ e.jsxDEV(
|
|
1185
1215
|
"div",
|
|
1186
1216
|
{
|
|
1187
|
-
className: `absolute top-2 right-2 w-4 h-4 border-r-2 border-t-2 border-accent transition-all duration-300 ${
|
|
1217
|
+
className: `absolute top-2 right-2 w-4 h-4 border-r-2 border-t-2 border-accent transition-all duration-300 ${x ? "opacity-0 scale-0" : "opacity-60 scale-100"}`,
|
|
1188
1218
|
"aria-hidden": "true"
|
|
1189
1219
|
},
|
|
1190
1220
|
void 0,
|
|
@@ -1199,7 +1229,7 @@ const Y = (s, t) => {
|
|
|
1199
1229
|
/* @__PURE__ */ e.jsxDEV(
|
|
1200
1230
|
"div",
|
|
1201
1231
|
{
|
|
1202
|
-
className: `absolute bottom-2 left-2 w-4 h-4 border-l-2 border-b-2 border-accent transition-all duration-300 ${
|
|
1232
|
+
className: `absolute bottom-2 left-2 w-4 h-4 border-l-2 border-b-2 border-accent transition-all duration-300 ${x ? "opacity-0 scale-0" : "opacity-60 scale-100"}`,
|
|
1203
1233
|
"aria-hidden": "true"
|
|
1204
1234
|
},
|
|
1205
1235
|
void 0,
|
|
@@ -1214,7 +1244,7 @@ const Y = (s, t) => {
|
|
|
1214
1244
|
/* @__PURE__ */ e.jsxDEV(
|
|
1215
1245
|
"div",
|
|
1216
1246
|
{
|
|
1217
|
-
className: `absolute bottom-2 right-2 w-4 h-4 border-r-2 border-b-2 border-accent transition-all duration-300 ${
|
|
1247
|
+
className: `absolute bottom-2 right-2 w-4 h-4 border-r-2 border-b-2 border-accent transition-all duration-300 ${x ? "opacity-0 scale-0" : "opacity-60 scale-100"}`,
|
|
1218
1248
|
"aria-hidden": "true"
|
|
1219
1249
|
},
|
|
1220
1250
|
void 0,
|
|
@@ -1273,105 +1303,105 @@ const Y = (s, t) => {
|
|
|
1273
1303
|
}, void 0);
|
|
1274
1304
|
}
|
|
1275
1305
|
);
|
|
1276
|
-
|
|
1277
|
-
const
|
|
1278
|
-
images:
|
|
1279
|
-
currentIndex:
|
|
1306
|
+
ae.displayName = "CyberUI.Image";
|
|
1307
|
+
const Re = ({
|
|
1308
|
+
images: r,
|
|
1309
|
+
currentIndex: s,
|
|
1280
1310
|
onChange: m,
|
|
1281
|
-
size:
|
|
1311
|
+
size: o = "md",
|
|
1282
1312
|
autoPlay: i = !0,
|
|
1283
|
-
interval:
|
|
1284
|
-
infinite:
|
|
1285
|
-
transition:
|
|
1286
|
-
objectFit:
|
|
1313
|
+
interval: d = 3e3,
|
|
1314
|
+
infinite: u = !0,
|
|
1315
|
+
transition: c = "slide",
|
|
1316
|
+
objectFit: b = "cover",
|
|
1287
1317
|
showArrows: h = !0,
|
|
1288
|
-
showIndicators:
|
|
1318
|
+
showIndicators: l = !0,
|
|
1289
1319
|
className: N = "",
|
|
1290
|
-
disableImagePreview:
|
|
1291
|
-
glitchRate:
|
|
1320
|
+
disableImagePreview: f = !1,
|
|
1321
|
+
glitchRate: p = 1,
|
|
1292
1322
|
onBeforeChange: U,
|
|
1293
|
-
onAfterChange:
|
|
1323
|
+
onAfterChange: I
|
|
1294
1324
|
}) => {
|
|
1295
|
-
const [y,
|
|
1296
|
-
() =>
|
|
1297
|
-
[
|
|
1298
|
-
),
|
|
1299
|
-
(
|
|
1300
|
-
if (
|
|
1301
|
-
const n =
|
|
1302
|
-
|
|
1303
|
-
m(
|
|
1304
|
-
},
|
|
1325
|
+
const [y, E] = V(!1), [x, k] = V(i), [D, j] = V(!0), S = oe(
|
|
1326
|
+
() => q(o, Q.carousel),
|
|
1327
|
+
[o]
|
|
1328
|
+
), O = "w-full h-full", v = w(
|
|
1329
|
+
(t) => {
|
|
1330
|
+
if (t === s || y) return;
|
|
1331
|
+
const n = c === "signal-glitch" && (typeof p == "boolean" ? p : Math.random() < p);
|
|
1332
|
+
j(n), E(!0), U?.(s, t), setTimeout(() => {
|
|
1333
|
+
m(t), E(!1), I?.(t);
|
|
1334
|
+
}, c === "slide" ? 0 : c === "signal-glitch" && n ? 600 : 250);
|
|
1305
1335
|
},
|
|
1306
1336
|
[
|
|
1307
|
-
|
|
1337
|
+
s,
|
|
1308
1338
|
y,
|
|
1309
1339
|
m,
|
|
1310
1340
|
U,
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1341
|
+
I,
|
|
1342
|
+
c,
|
|
1343
|
+
p
|
|
1314
1344
|
]
|
|
1315
1345
|
);
|
|
1316
|
-
|
|
1317
|
-
if (!
|
|
1318
|
-
const
|
|
1319
|
-
const n =
|
|
1320
|
-
if (!
|
|
1321
|
-
|
|
1346
|
+
J(() => {
|
|
1347
|
+
if (!x || r.length <= 1) return;
|
|
1348
|
+
const t = setInterval(() => {
|
|
1349
|
+
const n = u ? (s + 1) % r.length : Math.min(s + 1, r.length - 1);
|
|
1350
|
+
if (!u && n === r.length - 1) {
|
|
1351
|
+
k(!1);
|
|
1322
1352
|
return;
|
|
1323
1353
|
}
|
|
1324
|
-
|
|
1325
|
-
},
|
|
1326
|
-
return () => clearInterval(
|
|
1354
|
+
v(n);
|
|
1355
|
+
}, d);
|
|
1356
|
+
return () => clearInterval(t);
|
|
1327
1357
|
}, [
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1358
|
+
x,
|
|
1359
|
+
s,
|
|
1360
|
+
r.length,
|
|
1361
|
+
u,
|
|
1362
|
+
d,
|
|
1363
|
+
v
|
|
1334
1364
|
]);
|
|
1335
|
-
const
|
|
1336
|
-
if (
|
|
1337
|
-
const
|
|
1338
|
-
|
|
1339
|
-
}, [
|
|
1340
|
-
if (
|
|
1341
|
-
const
|
|
1342
|
-
|
|
1343
|
-
}, [
|
|
1344
|
-
(
|
|
1345
|
-
|
|
1365
|
+
const M = w(() => {
|
|
1366
|
+
if (r.length <= 1) return;
|
|
1367
|
+
const t = u ? (s - 1 + r.length) % r.length : Math.max(s - 1, 0);
|
|
1368
|
+
k(!1), v(t);
|
|
1369
|
+
}, [s, r.length, u, v]), z = w(() => {
|
|
1370
|
+
if (r.length <= 1) return;
|
|
1371
|
+
const t = u ? (s + 1) % r.length : Math.min(s + 1, r.length - 1);
|
|
1372
|
+
k(!1), v(t);
|
|
1373
|
+
}, [s, r.length, u, v]), H = w(
|
|
1374
|
+
(t) => {
|
|
1375
|
+
k(!1), v(t);
|
|
1346
1376
|
},
|
|
1347
|
-
[
|
|
1377
|
+
[v]
|
|
1348
1378
|
);
|
|
1349
|
-
|
|
1350
|
-
const
|
|
1351
|
-
n.key === "ArrowLeft" &&
|
|
1379
|
+
J(() => {
|
|
1380
|
+
const t = (n) => {
|
|
1381
|
+
n.key === "ArrowLeft" && M(), n.key === "ArrowRight" && z();
|
|
1352
1382
|
};
|
|
1353
|
-
return window.addEventListener("keydown",
|
|
1354
|
-
}, [
|
|
1355
|
-
const
|
|
1383
|
+
return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
|
|
1384
|
+
}, [M, z]);
|
|
1385
|
+
const F = () => /* @__PURE__ */ e.jsxDEV(
|
|
1356
1386
|
"div",
|
|
1357
1387
|
{
|
|
1358
1388
|
className: "flex h-full transition-transform duration-500 ease-in-out",
|
|
1359
1389
|
style: {
|
|
1360
|
-
transform: `translateX(-${
|
|
1390
|
+
transform: `translateX(-${s * 100}%)`,
|
|
1361
1391
|
willChange: "transform"
|
|
1362
1392
|
},
|
|
1363
|
-
children:
|
|
1364
|
-
|
|
1393
|
+
children: r.map((t, n) => /* @__PURE__ */ e.jsxDEV("div", { className: "w-full h-full flex-shrink-0", children: /* @__PURE__ */ e.jsxDEV(
|
|
1394
|
+
ae,
|
|
1365
1395
|
{
|
|
1366
|
-
src:
|
|
1367
|
-
alt:
|
|
1368
|
-
fallback:
|
|
1369
|
-
className:
|
|
1396
|
+
src: t.src,
|
|
1397
|
+
alt: t.alt,
|
|
1398
|
+
fallback: t.fallbackSrc,
|
|
1399
|
+
className: O,
|
|
1370
1400
|
size: "lg",
|
|
1371
|
-
preview: !
|
|
1401
|
+
preview: !f,
|
|
1372
1402
|
loading: n <= 1 ? "eager" : "lazy",
|
|
1373
|
-
onPreviewOpen: () =>
|
|
1374
|
-
onPreviewClose: () =>
|
|
1403
|
+
onPreviewOpen: () => k(!1),
|
|
1404
|
+
onPreviewClose: () => k(i)
|
|
1375
1405
|
},
|
|
1376
1406
|
void 0,
|
|
1377
1407
|
!1,
|
|
@@ -1395,40 +1425,40 @@ const Pe = ({
|
|
|
1395
1425
|
columnNumber: 5
|
|
1396
1426
|
},
|
|
1397
1427
|
void 0
|
|
1398
|
-
),
|
|
1399
|
-
const
|
|
1400
|
-
opacity:
|
|
1428
|
+
), ee = () => /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: r.map((t, n) => {
|
|
1429
|
+
const a = n === s, C = c === "fade" ? {
|
|
1430
|
+
opacity: a ? 1 : 0,
|
|
1401
1431
|
transition: "opacity 500ms ease-in-out",
|
|
1402
1432
|
willChange: "opacity"
|
|
1403
|
-
} :
|
|
1404
|
-
opacity:
|
|
1405
|
-
transform:
|
|
1406
|
-
filter:
|
|
1433
|
+
} : c === "matrix" ? {
|
|
1434
|
+
opacity: a ? 1 : 0,
|
|
1435
|
+
transform: a ? "scale(1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0) skew(0deg) perspective(1000px)" : y ? "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)",
|
|
1436
|
+
filter: a ? "brightness(1) contrast(1) hue-rotate(0deg) saturate(1) drop-shadow(0 0 10px rgba(0, 255, 136, 0.3))" : y ? "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))",
|
|
1407
1437
|
transition: "all 1200ms cubic-bezier(0.175, 0.885, 0.32, 1.275)",
|
|
1408
1438
|
willChange: "transform, opacity, filter",
|
|
1409
|
-
boxShadow:
|
|
1439
|
+
boxShadow: a ? "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)" : y ? "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)"
|
|
1410
1440
|
} : {};
|
|
1411
1441
|
return /* @__PURE__ */ e.jsxDEV(
|
|
1412
1442
|
"div",
|
|
1413
1443
|
{
|
|
1414
1444
|
className: "absolute inset-0 w-full h-full",
|
|
1415
1445
|
style: {
|
|
1416
|
-
...
|
|
1417
|
-
pointerEvents:
|
|
1446
|
+
...C,
|
|
1447
|
+
pointerEvents: a ? "auto" : "none"
|
|
1418
1448
|
},
|
|
1419
1449
|
children: [
|
|
1420
1450
|
/* @__PURE__ */ e.jsxDEV(
|
|
1421
|
-
|
|
1451
|
+
ae,
|
|
1422
1452
|
{
|
|
1423
|
-
src:
|
|
1424
|
-
alt:
|
|
1425
|
-
fallback:
|
|
1426
|
-
className:
|
|
1453
|
+
src: t.src,
|
|
1454
|
+
alt: t.alt,
|
|
1455
|
+
fallback: t.fallbackSrc,
|
|
1456
|
+
className: O,
|
|
1427
1457
|
size: "lg",
|
|
1428
|
-
preview: !
|
|
1458
|
+
preview: !f,
|
|
1429
1459
|
loading: n <= 1 ? "eager" : "lazy",
|
|
1430
|
-
onPreviewOpen: () =>
|
|
1431
|
-
onPreviewClose: () =>
|
|
1460
|
+
onPreviewOpen: () => k(!1),
|
|
1461
|
+
onPreviewClose: () => k(i)
|
|
1432
1462
|
},
|
|
1433
1463
|
void 0,
|
|
1434
1464
|
!1,
|
|
@@ -1439,7 +1469,7 @@ const Pe = ({
|
|
|
1439
1469
|
},
|
|
1440
1470
|
void 0
|
|
1441
1471
|
),
|
|
1442
|
-
|
|
1472
|
+
c === "matrix" && Y(a, y)
|
|
1443
1473
|
]
|
|
1444
1474
|
},
|
|
1445
1475
|
n,
|
|
@@ -1455,38 +1485,38 @@ const Pe = ({
|
|
|
1455
1485
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Carousel.tsx",
|
|
1456
1486
|
lineNumber: 266,
|
|
1457
1487
|
columnNumber: 5
|
|
1458
|
-
}, void 0), Z = () => /* @__PURE__ */ e.jsxDEV(e.Fragment, { children:
|
|
1459
|
-
const
|
|
1460
|
-
opacity:
|
|
1461
|
-
animation:
|
|
1488
|
+
}, void 0), Z = () => /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: r.map((t, n) => {
|
|
1489
|
+
const a = n === s, C = n === (s - 1 + r.length) % r.length, g = y && c === "signal-glitch" && D ? {
|
|
1490
|
+
opacity: a ? 1 : C ? 0.8 : 0,
|
|
1491
|
+
animation: a ? "signal-image-flicker-in 1s ease-out forwards" : C ? "signal-image-flicker-out 1s ease-out forwards" : "none",
|
|
1462
1492
|
willChange: "opacity",
|
|
1463
|
-
pointerEvents: y && !
|
|
1493
|
+
pointerEvents: y && !a ? "none" : "auto",
|
|
1464
1494
|
transform: y ? "translateZ(0)" : "none"
|
|
1465
1495
|
// Reduce jumping with hardware acceleration
|
|
1466
1496
|
} : {
|
|
1467
|
-
opacity:
|
|
1497
|
+
opacity: a ? 1 : 0,
|
|
1468
1498
|
transition: "opacity 250ms ease-in-out",
|
|
1469
1499
|
willChange: "opacity",
|
|
1470
|
-
pointerEvents:
|
|
1500
|
+
pointerEvents: a ? "auto" : "none"
|
|
1471
1501
|
};
|
|
1472
1502
|
return /* @__PURE__ */ e.jsxDEV(
|
|
1473
1503
|
"div",
|
|
1474
1504
|
{
|
|
1475
1505
|
className: "absolute inset-0 w-full h-full",
|
|
1476
|
-
style:
|
|
1506
|
+
style: g,
|
|
1477
1507
|
children: [
|
|
1478
1508
|
/* @__PURE__ */ e.jsxDEV(
|
|
1479
|
-
|
|
1509
|
+
ae,
|
|
1480
1510
|
{
|
|
1481
|
-
src:
|
|
1482
|
-
alt:
|
|
1483
|
-
fallback:
|
|
1484
|
-
className:
|
|
1511
|
+
src: t.src,
|
|
1512
|
+
alt: t.alt,
|
|
1513
|
+
fallback: t.fallbackSrc,
|
|
1514
|
+
className: O,
|
|
1485
1515
|
size: "lg",
|
|
1486
|
-
preview: !
|
|
1516
|
+
preview: !f && !(y && c === "signal-glitch" && D),
|
|
1487
1517
|
loading: n <= 1 ? "eager" : "lazy",
|
|
1488
|
-
onPreviewOpen: () =>
|
|
1489
|
-
onPreviewClose: () =>
|
|
1518
|
+
onPreviewOpen: () => k(!1),
|
|
1519
|
+
onPreviewClose: () => k(i)
|
|
1490
1520
|
},
|
|
1491
1521
|
void 0,
|
|
1492
1522
|
!1,
|
|
@@ -1497,7 +1527,7 @@ const Pe = ({
|
|
|
1497
1527
|
},
|
|
1498
1528
|
void 0
|
|
1499
1529
|
),
|
|
1500
|
-
|
|
1530
|
+
c === "signal-glitch" && y && D && W(a)
|
|
1501
1531
|
]
|
|
1502
1532
|
},
|
|
1503
1533
|
n,
|
|
@@ -1513,7 +1543,7 @@ const Pe = ({
|
|
|
1513
1543
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Carousel.tsx",
|
|
1514
1544
|
lineNumber: 336,
|
|
1515
1545
|
columnNumber: 5
|
|
1516
|
-
}, void 0),
|
|
1546
|
+
}, void 0), Y = (t, n) => /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: n && /* @__PURE__ */ e.jsxDEV("div", { className: "absolute inset-0 overflow-hidden pointer-events-none", children: t ? (
|
|
1517
1547
|
// Active image gets subtle enhancement effects
|
|
1518
1548
|
/* @__PURE__ */ e.jsxDEV("div", { className: "w-full h-full bg-gradient-to-b from-primary/5 to-transparent opacity-30" }, void 0, !1, {
|
|
1519
1549
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Carousel.tsx",
|
|
@@ -1535,11 +1565,11 @@ const Pe = ({
|
|
|
1535
1565
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Carousel.tsx",
|
|
1536
1566
|
lineNumber: 411,
|
|
1537
1567
|
columnNumber: 5
|
|
1538
|
-
}, void 0),
|
|
1568
|
+
}, void 0), W = (t) => /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: [
|
|
1539
1569
|
/* @__PURE__ */ e.jsxDEV(
|
|
1540
1570
|
"div",
|
|
1541
1571
|
{
|
|
1542
|
-
className: `absolute inset-0 pointer-events-none z-5 ${
|
|
1572
|
+
className: `absolute inset-0 pointer-events-none z-5 ${t ? "opacity-30" : "opacity-15"}`,
|
|
1543
1573
|
children: /* @__PURE__ */ e.jsxDEV(
|
|
1544
1574
|
"div",
|
|
1545
1575
|
{
|
|
@@ -1782,12 +1812,12 @@ const Pe = ({
|
|
|
1782
1812
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Carousel.tsx",
|
|
1783
1813
|
lineNumber: 432,
|
|
1784
1814
|
columnNumber: 5
|
|
1785
|
-
}, void 0),
|
|
1815
|
+
}, void 0), K = () => h && r.length > 1 && /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: [
|
|
1786
1816
|
/* @__PURE__ */ e.jsxDEV(
|
|
1787
1817
|
"button",
|
|
1788
1818
|
{
|
|
1789
|
-
onClick:
|
|
1790
|
-
disabled: !
|
|
1819
|
+
onClick: M,
|
|
1820
|
+
disabled: !u && s === 0 || y && c === "signal-glitch" && D,
|
|
1791
1821
|
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",
|
|
1792
1822
|
"aria-label": "Previous image",
|
|
1793
1823
|
children: /* @__PURE__ */ e.jsxDEV(
|
|
@@ -1955,8 +1985,8 @@ const Pe = ({
|
|
|
1955
1985
|
/* @__PURE__ */ e.jsxDEV(
|
|
1956
1986
|
"button",
|
|
1957
1987
|
{
|
|
1958
|
-
onClick:
|
|
1959
|
-
disabled: !
|
|
1988
|
+
onClick: z,
|
|
1989
|
+
disabled: !u && s === r.length - 1 || y && c === "signal-glitch" && D,
|
|
1960
1990
|
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",
|
|
1961
1991
|
"aria-label": "Next image",
|
|
1962
1992
|
children: /* @__PURE__ */ e.jsxDEV(
|
|
@@ -2050,11 +2080,11 @@ const Pe = ({
|
|
|
2050
2080
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Carousel.tsx",
|
|
2051
2081
|
lineNumber: 575,
|
|
2052
2082
|
columnNumber: 7
|
|
2053
|
-
}, void 0),
|
|
2083
|
+
}, void 0), $ = () => l && r.length > 1 && /* @__PURE__ */ e.jsxDEV("div", { className: "flex justify-center mt-4 space-x-4", children: r.map((t, n) => /* @__PURE__ */ e.jsxDEV(
|
|
2054
2084
|
"button",
|
|
2055
2085
|
{
|
|
2056
|
-
onClick: () =>
|
|
2057
|
-
disabled: y &&
|
|
2086
|
+
onClick: () => H(n),
|
|
2087
|
+
disabled: y && c === "signal-glitch" && D,
|
|
2058
2088
|
className: "group relative transition-all duration-300 hover:scale-110 focus:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-30",
|
|
2059
2089
|
style: {
|
|
2060
2090
|
width: "24px",
|
|
@@ -2062,7 +2092,7 @@ const Pe = ({
|
|
|
2062
2092
|
},
|
|
2063
2093
|
"aria-label": `Go to slide ${n + 1}`,
|
|
2064
2094
|
children: [
|
|
2065
|
-
n ===
|
|
2095
|
+
n === s && /* @__PURE__ */ e.jsxDEV(
|
|
2066
2096
|
"div",
|
|
2067
2097
|
{
|
|
2068
2098
|
className: "absolute inset-[-1px] border-2",
|
|
@@ -2083,7 +2113,7 @@ const Pe = ({
|
|
|
2083
2113
|
/* @__PURE__ */ e.jsxDEV(
|
|
2084
2114
|
"div",
|
|
2085
2115
|
{
|
|
2086
|
-
className: `absolute inset-0 border-2 transition-all duration-300 ${n ===
|
|
2116
|
+
className: `absolute inset-0 border-2 transition-all duration-300 ${n === s ? "border-primary bg-primary/30 shadow-lg-primary animate-[rgbBorder_1.5s_linear_infinite]" : "border-accent bg-surface/50 group-hover:border-primary group-hover:bg-primary/20 group-hover:shadow-primary group-hover:animate-[rgbBorder_1.5s_linear_infinite]"}`,
|
|
2087
2117
|
style: {
|
|
2088
2118
|
clipPath: "polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)"
|
|
2089
2119
|
}
|
|
@@ -2097,7 +2127,7 @@ const Pe = ({
|
|
|
2097
2127
|
},
|
|
2098
2128
|
void 0
|
|
2099
2129
|
),
|
|
2100
|
-
n ===
|
|
2130
|
+
n === s && /* @__PURE__ */ e.jsxDEV(
|
|
2101
2131
|
"div",
|
|
2102
2132
|
{
|
|
2103
2133
|
className: "absolute inset-2 bg-primary/60 animate-pulse",
|
|
@@ -2115,7 +2145,7 @@ const Pe = ({
|
|
|
2115
2145
|
},
|
|
2116
2146
|
void 0
|
|
2117
2147
|
),
|
|
2118
|
-
n ===
|
|
2148
|
+
n === s && /* @__PURE__ */ e.jsxDEV("div", { className: "absolute inset-0 opacity-80", children: [
|
|
2119
2149
|
/* @__PURE__ */ e.jsxDEV(
|
|
2120
2150
|
"div",
|
|
2121
2151
|
{
|
|
@@ -2172,11 +2202,11 @@ const Pe = ({
|
|
|
2172
2202
|
lineNumber: 710,
|
|
2173
2203
|
columnNumber: 7
|
|
2174
2204
|
}, void 0);
|
|
2175
|
-
if (
|
|
2205
|
+
if (r.length === 0)
|
|
2176
2206
|
return /* @__PURE__ */ e.jsxDEV(
|
|
2177
2207
|
"div",
|
|
2178
2208
|
{
|
|
2179
|
-
className: `${
|
|
2209
|
+
className: `${S} w-full bg-surface border border-accent rounded-lg flex items-center justify-center ${N}`,
|
|
2180
2210
|
children: /* @__PURE__ */ e.jsxDEV("p", { className: "text-muted", children: "No images to display" }, void 0, !1, {
|
|
2181
2211
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Carousel.tsx",
|
|
2182
2212
|
lineNumber: 801,
|
|
@@ -2192,12 +2222,12 @@ const Pe = ({
|
|
|
2192
2222
|
},
|
|
2193
2223
|
void 0
|
|
2194
2224
|
);
|
|
2195
|
-
const
|
|
2225
|
+
const X = r[s];
|
|
2196
2226
|
return /* @__PURE__ */ e.jsxDEV("div", { className: `relative w-full ${N}`, children: [
|
|
2197
2227
|
/* @__PURE__ */ e.jsxDEV(
|
|
2198
2228
|
"div",
|
|
2199
2229
|
{
|
|
2200
|
-
className: `relative w-full overflow-hidden rounded-lg border border-accent bg-surface ${
|
|
2230
|
+
className: `relative w-full overflow-hidden rounded-lg border border-accent bg-surface ${S}`,
|
|
2201
2231
|
children: [
|
|
2202
2232
|
/* @__PURE__ */ e.jsxDEV("div", { className: "absolute inset-0 pointer-events-none", children: [
|
|
2203
2233
|
/* @__PURE__ */ e.jsxDEV("div", { className: "absolute top-2 left-2 w-4 h-4 border-l-2 border-t-2 border-primary opacity-60" }, void 0, !1, {
|
|
@@ -2233,11 +2263,11 @@ const Pe = ({
|
|
|
2233
2263
|
/* @__PURE__ */ e.jsxDEV(
|
|
2234
2264
|
"div",
|
|
2235
2265
|
{
|
|
2236
|
-
className: `relative w-full h-full overflow-hidden carousel-${
|
|
2266
|
+
className: `relative w-full h-full overflow-hidden carousel-${b}`,
|
|
2237
2267
|
children: [
|
|
2238
|
-
|
|
2239
|
-
(
|
|
2240
|
-
|
|
2268
|
+
c === "slide" && F(),
|
|
2269
|
+
(c === "fade" || c === "matrix") && ee(),
|
|
2270
|
+
c === "signal-glitch" && Z()
|
|
2241
2271
|
]
|
|
2242
2272
|
},
|
|
2243
2273
|
void 0,
|
|
@@ -2249,7 +2279,7 @@ const Pe = ({
|
|
|
2249
2279
|
},
|
|
2250
2280
|
void 0
|
|
2251
2281
|
),
|
|
2252
|
-
|
|
2282
|
+
X.caption && /* @__PURE__ */ e.jsxDEV("div", { className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent p-4", children: /* @__PURE__ */ e.jsxDEV("p", { className: "text-white text-sm font-medium", children: X.caption }, void 0, !1, {
|
|
2253
2283
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Carousel.tsx",
|
|
2254
2284
|
lineNumber: 839,
|
|
2255
2285
|
columnNumber: 13
|
|
@@ -2258,7 +2288,7 @@ const Pe = ({
|
|
|
2258
2288
|
lineNumber: 838,
|
|
2259
2289
|
columnNumber: 11
|
|
2260
2290
|
}, void 0),
|
|
2261
|
-
|
|
2291
|
+
K()
|
|
2262
2292
|
]
|
|
2263
2293
|
},
|
|
2264
2294
|
void 0,
|
|
@@ -2270,90 +2300,90 @@ const Pe = ({
|
|
|
2270
2300
|
},
|
|
2271
2301
|
void 0
|
|
2272
2302
|
),
|
|
2273
|
-
|
|
2303
|
+
$()
|
|
2274
2304
|
] }, void 0, !0, {
|
|
2275
2305
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Carousel.tsx",
|
|
2276
2306
|
lineNumber: 809,
|
|
2277
2307
|
columnNumber: 5
|
|
2278
2308
|
}, void 0);
|
|
2279
|
-
},
|
|
2309
|
+
}, $e = ue(Re), Ae = {
|
|
2280
2310
|
openDuration: 600,
|
|
2281
2311
|
closeDuration: 400,
|
|
2282
2312
|
crtEffects: !0
|
|
2283
|
-
},
|
|
2313
|
+
}, Le = {
|
|
2284
2314
|
sm: "max-w-md",
|
|
2285
2315
|
md: "max-w-lg",
|
|
2286
2316
|
lg: "max-w-2xl",
|
|
2287
2317
|
xl: "max-w-4xl",
|
|
2288
2318
|
fullscreen: "max-w-none w-full h-full"
|
|
2289
|
-
},
|
|
2319
|
+
}, ne = ue(
|
|
2290
2320
|
({
|
|
2291
|
-
isOpen:
|
|
2292
|
-
onClose:
|
|
2321
|
+
isOpen: r,
|
|
2322
|
+
onClose: s,
|
|
2293
2323
|
title: m,
|
|
2294
|
-
children:
|
|
2324
|
+
children: o,
|
|
2295
2325
|
footer: i,
|
|
2296
|
-
onCancel:
|
|
2297
|
-
onConfirm:
|
|
2298
|
-
cancelText:
|
|
2299
|
-
confirmText:
|
|
2326
|
+
onCancel: d,
|
|
2327
|
+
onConfirm: u,
|
|
2328
|
+
cancelText: c = "Cancel",
|
|
2329
|
+
confirmText: b = "Confirm",
|
|
2300
2330
|
confirmLoading: h = !1,
|
|
2301
|
-
showCancel:
|
|
2331
|
+
showCancel: l = !0,
|
|
2302
2332
|
showConfirm: N = !0,
|
|
2303
|
-
size:
|
|
2304
|
-
closeOnOverlayClick:
|
|
2333
|
+
size: f = "md",
|
|
2334
|
+
closeOnOverlayClick: p = !0,
|
|
2305
2335
|
closeOnEscape: U = !0,
|
|
2306
|
-
animation:
|
|
2336
|
+
animation: I,
|
|
2307
2337
|
className: y = "",
|
|
2308
|
-
overlayClassName:
|
|
2309
|
-
showCloseButton:
|
|
2310
|
-
onOpen:
|
|
2311
|
-
onCRTBootComplete:
|
|
2338
|
+
overlayClassName: E = "",
|
|
2339
|
+
showCloseButton: x = !0,
|
|
2340
|
+
onOpen: k,
|
|
2341
|
+
onCRTBootComplete: D
|
|
2312
2342
|
}) => {
|
|
2313
|
-
const
|
|
2314
|
-
() => ({ ...
|
|
2315
|
-
[
|
|
2316
|
-
), [
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
},
|
|
2320
|
-
}, [
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
},
|
|
2343
|
+
const j = oe(
|
|
2344
|
+
() => ({ ...Ae, ...I }),
|
|
2345
|
+
[I]
|
|
2346
|
+
), [S, O] = V(!1), [v, M] = V(!0), z = B(null), H = B(null), F = w(() => {
|
|
2347
|
+
O(!0), setTimeout(() => {
|
|
2348
|
+
O(!1), M(!0), s();
|
|
2349
|
+
}, j.closeDuration);
|
|
2350
|
+
}, [s, j.closeDuration]);
|
|
2351
|
+
J(() => {
|
|
2352
|
+
r && !S && (M(!0), k?.(), setTimeout(() => {
|
|
2353
|
+
M(!1), D?.();
|
|
2354
|
+
}, j.openDuration));
|
|
2325
2355
|
}, [
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2356
|
+
r,
|
|
2357
|
+
S,
|
|
2358
|
+
k,
|
|
2359
|
+
D,
|
|
2360
|
+
j.openDuration
|
|
2331
2361
|
]);
|
|
2332
|
-
const
|
|
2333
|
-
|
|
2334
|
-
}, [
|
|
2335
|
-
|
|
2336
|
-
}, [
|
|
2337
|
-
(
|
|
2338
|
-
|
|
2362
|
+
const ee = w(() => {
|
|
2363
|
+
d?.(), F();
|
|
2364
|
+
}, [d, F]), Z = w(() => {
|
|
2365
|
+
u?.(), F();
|
|
2366
|
+
}, [u, F]), Y = w(
|
|
2367
|
+
($) => {
|
|
2368
|
+
p && ($.target === z.current || $.target === $.currentTarget) && F();
|
|
2339
2369
|
},
|
|
2340
|
-
[
|
|
2341
|
-
),
|
|
2342
|
-
(
|
|
2343
|
-
U &&
|
|
2370
|
+
[F, p]
|
|
2371
|
+
), W = w(
|
|
2372
|
+
($) => {
|
|
2373
|
+
U && $.key === "Escape" && F();
|
|
2344
2374
|
},
|
|
2345
|
-
[
|
|
2375
|
+
[F, U]
|
|
2346
2376
|
);
|
|
2347
|
-
|
|
2348
|
-
if (
|
|
2349
|
-
document.addEventListener("keydown",
|
|
2350
|
-
const
|
|
2351
|
-
return document.body.style.overflow = "hidden", document.body.style.paddingRight = `${
|
|
2352
|
-
document.removeEventListener("keydown",
|
|
2377
|
+
J(() => {
|
|
2378
|
+
if (r) {
|
|
2379
|
+
document.addEventListener("keydown", W);
|
|
2380
|
+
const $ = document.body.style.overflow, X = window.innerWidth - document.documentElement.clientWidth;
|
|
2381
|
+
return document.body.style.overflow = "hidden", document.body.style.paddingRight = `${X}px`, () => {
|
|
2382
|
+
document.removeEventListener("keydown", W), document.body.style.overflow = $, document.body.style.paddingRight = "";
|
|
2353
2383
|
};
|
|
2354
2384
|
}
|
|
2355
|
-
}, [
|
|
2356
|
-
const
|
|
2385
|
+
}, [r, W]);
|
|
2386
|
+
const K = oe(
|
|
2357
2387
|
() => [
|
|
2358
2388
|
"relative",
|
|
2359
2389
|
"bg-surface",
|
|
@@ -2366,40 +2396,40 @@ const Pe = ({
|
|
|
2366
2396
|
"transform",
|
|
2367
2397
|
"transition-all",
|
|
2368
2398
|
"duration-300",
|
|
2369
|
-
|
|
2370
|
-
|
|
2399
|
+
Le[f],
|
|
2400
|
+
j.crtEffects && v ? "animate-crt-power-on border-accent shadow-lg-accent" : j.crtEffects && S ? "animate-crt-power-off border-accent shadow-lg-accent" : S ? "scale-95 opacity-0 border-accent/20" : v ? "scale-105 opacity-90 border-accent shadow-input-accent/50" : "scale-100 opacity-100 animate-rgb-glow",
|
|
2371
2401
|
y
|
|
2372
2402
|
].filter(Boolean).join(" "),
|
|
2373
|
-
[
|
|
2403
|
+
[f, j.crtEffects, S, v, y]
|
|
2374
2404
|
);
|
|
2375
|
-
return
|
|
2405
|
+
return r ? xe(
|
|
2376
2406
|
/* @__PURE__ */ e.jsxDEV(
|
|
2377
2407
|
"div",
|
|
2378
2408
|
{
|
|
2379
|
-
ref:
|
|
2380
|
-
className: `fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${
|
|
2409
|
+
ref: z,
|
|
2410
|
+
className: `fixed z-50 flex items-center justify-center p-4 transition-all ease-out ${E} ${S ? "bg-black/0 backdrop-blur-none opacity-0 duration-800" : v ? "bg-black/30 backdrop-blur-md opacity-100 duration-500" : "bg-black/30 backdrop-blur-sm opacity-100 duration-300"}`,
|
|
2381
2411
|
style: {
|
|
2382
2412
|
top: 0,
|
|
2383
2413
|
left: 0,
|
|
2384
2414
|
width: "100vw",
|
|
2385
2415
|
height: "100vh"
|
|
2386
2416
|
},
|
|
2387
|
-
onClick:
|
|
2417
|
+
onClick: Y,
|
|
2388
2418
|
role: "dialog",
|
|
2389
2419
|
"aria-modal": "true",
|
|
2390
2420
|
"aria-label": m ? `Modal: ${m}` : "Modal dialog",
|
|
2391
2421
|
children: /* @__PURE__ */ e.jsxDEV(
|
|
2392
2422
|
"div",
|
|
2393
2423
|
{
|
|
2394
|
-
ref:
|
|
2395
|
-
className:
|
|
2396
|
-
onClick: (
|
|
2424
|
+
ref: H,
|
|
2425
|
+
className: K,
|
|
2426
|
+
onClick: ($) => $.stopPropagation(),
|
|
2397
2427
|
children: [
|
|
2398
|
-
|
|
2428
|
+
x && /* @__PURE__ */ e.jsxDEV(
|
|
2399
2429
|
"button",
|
|
2400
2430
|
{
|
|
2401
|
-
onClick:
|
|
2402
|
-
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 ${
|
|
2431
|
+
onClick: F,
|
|
2432
|
+
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 ${S ? "scale-0 rotate-180 opacity-0" : v ? "scale-0 opacity-0" : "scale-100 opacity-100 hover:scale-110 hover:bg-accent/10"}`,
|
|
2403
2433
|
"aria-label": "Close modal",
|
|
2404
2434
|
children: /* @__PURE__ */ e.jsxDEV(
|
|
2405
2435
|
"svg",
|
|
@@ -2450,7 +2480,7 @@ const Pe = ({
|
|
|
2450
2480
|
m && /* @__PURE__ */ e.jsxDEV(
|
|
2451
2481
|
"div",
|
|
2452
2482
|
{
|
|
2453
|
-
className: `px-6 py-4 border-b border-accent/20 flex-shrink-0 transition-all duration-300 ${
|
|
2483
|
+
className: `px-6 py-4 border-b border-accent/20 flex-shrink-0 transition-all duration-300 ${v ? "opacity-0 translate-y-2" : "opacity-100 translate-y-0"}`,
|
|
2454
2484
|
children: /* @__PURE__ */ e.jsxDEV("h2", { className: "text-lg font-semibold text-primary", children: m }, void 0, !1, {
|
|
2455
2485
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Modal.tsx",
|
|
2456
2486
|
lineNumber: 271,
|
|
@@ -2469,8 +2499,8 @@ const Pe = ({
|
|
|
2469
2499
|
/* @__PURE__ */ e.jsxDEV(
|
|
2470
2500
|
"div",
|
|
2471
2501
|
{
|
|
2472
|
-
className: `flex-1 overflow-auto p-6 transition-all duration-500 ${
|
|
2473
|
-
children:
|
|
2502
|
+
className: `flex-1 overflow-auto p-6 transition-all duration-500 ${v ? "opacity-0 translate-y-4" : "opacity-100 translate-y-0"}`,
|
|
2503
|
+
children: o
|
|
2474
2504
|
},
|
|
2475
2505
|
void 0,
|
|
2476
2506
|
!1,
|
|
@@ -2481,10 +2511,10 @@ const Pe = ({
|
|
|
2481
2511
|
},
|
|
2482
2512
|
void 0
|
|
2483
2513
|
),
|
|
2484
|
-
(i ||
|
|
2514
|
+
(i || d || u) && /* @__PURE__ */ e.jsxDEV(
|
|
2485
2515
|
"div",
|
|
2486
2516
|
{
|
|
2487
|
-
className: `px-6 py-4 border-t border-accent/20 flex-shrink-0 transition-all duration-300 ${
|
|
2517
|
+
className: `px-6 py-4 border-t border-accent/20 flex-shrink-0 transition-all duration-300 ${v ? "opacity-0 translate-y-2" : "opacity-100 translate-y-0"}`,
|
|
2488
2518
|
children: i || /* @__PURE__ */ e.jsxDEV("div", { className: "flex justify-between items-center", children: [
|
|
2489
2519
|
/* @__PURE__ */ e.jsxDEV("span", { className: "text-muted text-sm font-mono", children: "> ESC to abort" }, void 0, !1, {
|
|
2490
2520
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Modal.tsx",
|
|
@@ -2492,19 +2522,19 @@ const Pe = ({
|
|
|
2492
2522
|
columnNumber: 19
|
|
2493
2523
|
}, void 0),
|
|
2494
2524
|
/* @__PURE__ */ e.jsxDEV("div", { className: "flex gap-3", children: [
|
|
2495
|
-
|
|
2525
|
+
l && d && /* @__PURE__ */ e.jsxDEV(G, { variant: "ghost", size: "sm", onClick: ee, children: c }, void 0, !1, {
|
|
2496
2526
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Modal.tsx",
|
|
2497
2527
|
lineNumber: 302,
|
|
2498
2528
|
columnNumber: 23
|
|
2499
2529
|
}, void 0),
|
|
2500
|
-
N &&
|
|
2501
|
-
|
|
2530
|
+
N && u && /* @__PURE__ */ e.jsxDEV(
|
|
2531
|
+
G,
|
|
2502
2532
|
{
|
|
2503
2533
|
variant: "primary",
|
|
2504
2534
|
size: "sm",
|
|
2505
2535
|
onClick: Z,
|
|
2506
2536
|
disabled: h,
|
|
2507
|
-
children:
|
|
2537
|
+
children: b
|
|
2508
2538
|
},
|
|
2509
2539
|
void 0,
|
|
2510
2540
|
!1,
|
|
@@ -2560,16 +2590,16 @@ const Pe = ({
|
|
|
2560
2590
|
) : null;
|
|
2561
2591
|
}
|
|
2562
2592
|
);
|
|
2563
|
-
|
|
2564
|
-
const
|
|
2565
|
-
const
|
|
2566
|
-
if (
|
|
2593
|
+
ne.displayName = "CyberUI.Modal";
|
|
2594
|
+
const ge = Ie(void 0), Me = () => {
|
|
2595
|
+
const r = Ce(ge);
|
|
2596
|
+
if (r === void 0)
|
|
2567
2597
|
throw new Error(
|
|
2568
2598
|
"useCyberNotifications must be used within a CyberNotificationProvider"
|
|
2569
2599
|
);
|
|
2570
|
-
return
|
|
2571
|
-
},
|
|
2572
|
-
const [
|
|
2600
|
+
return r;
|
|
2601
|
+
}, Qe = () => {
|
|
2602
|
+
const [r, s] = V(""), [m, o] = V(0), [i, d] = V(!1), [u, c] = V(!1), [b, h] = V(!1), [l, N] = V(!1), [f, p] = V(!1), [U, I] = V(!1), { showNotification: y } = Me(), E = [
|
|
2573
2603
|
{
|
|
2574
2604
|
src: "image_demo_1.jpg",
|
|
2575
2605
|
alt: "Cyberpunk cityscape with neon lights",
|
|
@@ -2585,7 +2615,7 @@ const xe = he(void 0), Te = () => {
|
|
|
2585
2615
|
alt: "Cyberpunk street scene",
|
|
2586
2616
|
caption: "Underground Market"
|
|
2587
2617
|
}
|
|
2588
|
-
],
|
|
2618
|
+
], x = () => /* @__PURE__ */ e.jsxDEV("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsxDEV(
|
|
2589
2619
|
"path",
|
|
2590
2620
|
{
|
|
2591
2621
|
fillRule: "evenodd",
|
|
@@ -2622,16 +2652,16 @@ const xe = he(void 0), Te = () => {
|
|
|
2622
2652
|
lineNumber: 55,
|
|
2623
2653
|
columnNumber: 7
|
|
2624
2654
|
}, void 0),
|
|
2625
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2655
|
+
/* @__PURE__ */ e.jsxDEV(se, { title: "User Input", children: /* @__PURE__ */ e.jsxDEV("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
|
|
2626
2656
|
/* @__PURE__ */ e.jsxDEV(
|
|
2627
|
-
|
|
2657
|
+
ye,
|
|
2628
2658
|
{
|
|
2629
2659
|
variant: "primary",
|
|
2630
2660
|
label: "Neural Interface Command",
|
|
2631
2661
|
placeholder: "Enter command sequence...",
|
|
2632
|
-
value:
|
|
2633
|
-
onChange: (
|
|
2634
|
-
helperText:
|
|
2662
|
+
value: r,
|
|
2663
|
+
onChange: (k) => s(k.target.value),
|
|
2664
|
+
helperText: r.length > 0 ? `Input: ${r.length} characters` : "Awaiting neural input..."
|
|
2635
2665
|
},
|
|
2636
2666
|
void 0,
|
|
2637
2667
|
!1,
|
|
@@ -2643,12 +2673,12 @@ const xe = he(void 0), Te = () => {
|
|
|
2643
2673
|
void 0
|
|
2644
2674
|
),
|
|
2645
2675
|
/* @__PURE__ */ e.jsxDEV(
|
|
2646
|
-
|
|
2676
|
+
ye,
|
|
2647
2677
|
{
|
|
2648
2678
|
variant: "secondary",
|
|
2649
2679
|
label: "Database Query",
|
|
2650
2680
|
placeholder: "Search corporate database...",
|
|
2651
|
-
leftIcon: /* @__PURE__ */ e.jsxDEV(
|
|
2681
|
+
leftIcon: /* @__PURE__ */ e.jsxDEV(x, {}, void 0, !1, {
|
|
2652
2682
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2653
2683
|
lineNumber: 83,
|
|
2654
2684
|
columnNumber: 23
|
|
@@ -2673,24 +2703,24 @@ const xe = he(void 0), Te = () => {
|
|
|
2673
2703
|
lineNumber: 64,
|
|
2674
2704
|
columnNumber: 7
|
|
2675
2705
|
}, void 0),
|
|
2676
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2706
|
+
/* @__PURE__ */ e.jsxDEV(se, { title: "System Actions", children: [
|
|
2677
2707
|
/* @__PURE__ */ e.jsxDEV("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4", children: [
|
|
2678
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2708
|
+
/* @__PURE__ */ e.jsxDEV(G, { variant: "primary", onClick: () => d(!0), children: "Execute Protocol" }, void 0, !1, {
|
|
2679
2709
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2680
2710
|
lineNumber: 91,
|
|
2681
2711
|
columnNumber: 11
|
|
2682
2712
|
}, void 0),
|
|
2683
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2713
|
+
/* @__PURE__ */ e.jsxDEV(G, { variant: "secondary", onClick: () => c(!0), children: "Scan System" }, void 0, !1, {
|
|
2684
2714
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2685
2715
|
lineNumber: 95,
|
|
2686
2716
|
columnNumber: 11
|
|
2687
2717
|
}, void 0),
|
|
2688
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2718
|
+
/* @__PURE__ */ e.jsxDEV(G, { variant: "danger", onClick: () => h(!0), children: "Emergency Stop" }, void 0, !1, {
|
|
2689
2719
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2690
2720
|
lineNumber: 99,
|
|
2691
2721
|
columnNumber: 11
|
|
2692
2722
|
}, void 0),
|
|
2693
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2723
|
+
/* @__PURE__ */ e.jsxDEV(G, { variant: "ghost", onClick: () => N(!0), children: "Run Diagnostics" }, void 0, !1, {
|
|
2694
2724
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2695
2725
|
lineNumber: 103,
|
|
2696
2726
|
columnNumber: 11
|
|
@@ -2706,22 +2736,22 @@ const xe = he(void 0), Te = () => {
|
|
|
2706
2736
|
columnNumber: 9
|
|
2707
2737
|
}, void 0),
|
|
2708
2738
|
/* @__PURE__ */ e.jsxDEV("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4", children: [
|
|
2709
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2739
|
+
/* @__PURE__ */ e.jsxDEV(G, { variant: "primary", disabled: !0, children: "System Offline" }, void 0, !1, {
|
|
2710
2740
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2711
2741
|
lineNumber: 112,
|
|
2712
2742
|
columnNumber: 11
|
|
2713
2743
|
}, void 0),
|
|
2714
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2744
|
+
/* @__PURE__ */ e.jsxDEV(G, { variant: "secondary", disabled: !0, children: "Access Denied" }, void 0, !1, {
|
|
2715
2745
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2716
2746
|
lineNumber: 115,
|
|
2717
2747
|
columnNumber: 11
|
|
2718
2748
|
}, void 0),
|
|
2719
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2749
|
+
/* @__PURE__ */ e.jsxDEV(G, { variant: "danger", disabled: !0, children: "Critical Error" }, void 0, !1, {
|
|
2720
2750
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2721
2751
|
lineNumber: 118,
|
|
2722
2752
|
columnNumber: 11
|
|
2723
2753
|
}, void 0),
|
|
2724
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2754
|
+
/* @__PURE__ */ e.jsxDEV(G, { variant: "ghost", disabled: !0, children: "Network Down" }, void 0, !1, {
|
|
2725
2755
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2726
2756
|
lineNumber: 121,
|
|
2727
2757
|
columnNumber: 11
|
|
@@ -2736,32 +2766,32 @@ const xe = he(void 0), Te = () => {
|
|
|
2736
2766
|
lineNumber: 89,
|
|
2737
2767
|
columnNumber: 7
|
|
2738
2768
|
}, void 0),
|
|
2739
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2769
|
+
/* @__PURE__ */ e.jsxDEV(se, { title: "Visual Data Stream", children: /* @__PURE__ */ e.jsxDEV("div", { className: "space-y-4", children: [
|
|
2740
2770
|
/* @__PURE__ */ e.jsxDEV("p", { className: "text-muted text-center", children: "Navigate through archived data streams" }, void 0, !1, {
|
|
2741
2771
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2742
2772
|
lineNumber: 129,
|
|
2743
2773
|
columnNumber: 11
|
|
2744
2774
|
}, void 0),
|
|
2745
2775
|
/* @__PURE__ */ e.jsxDEV(
|
|
2746
|
-
|
|
2776
|
+
$e,
|
|
2747
2777
|
{
|
|
2748
|
-
images:
|
|
2778
|
+
images: E,
|
|
2749
2779
|
currentIndex: m,
|
|
2750
|
-
onChange:
|
|
2780
|
+
onChange: o,
|
|
2751
2781
|
size: "md",
|
|
2752
2782
|
transition: "signal-glitch",
|
|
2753
2783
|
glitchRate: 0.3,
|
|
2754
2784
|
autoPlay: !0,
|
|
2755
2785
|
interval: 4e3,
|
|
2756
|
-
onBeforeChange: (
|
|
2786
|
+
onBeforeChange: (k, D) => y(
|
|
2757
2787
|
"warning",
|
|
2758
2788
|
"SURVEILLANCE.SYS",
|
|
2759
|
-
`Switching surveillance feed ${
|
|
2789
|
+
`Switching surveillance feed ${k} → ${D}`
|
|
2760
2790
|
),
|
|
2761
|
-
onAfterChange: (
|
|
2791
|
+
onAfterChange: (k) => y(
|
|
2762
2792
|
"success",
|
|
2763
2793
|
"SURVEILLANCE.SYS",
|
|
2764
|
-
`Now monitoring sector ${
|
|
2794
|
+
`Now monitoring sector ${k + 1}`
|
|
2765
2795
|
)
|
|
2766
2796
|
},
|
|
2767
2797
|
void 0,
|
|
@@ -2778,7 +2808,7 @@ const xe = he(void 0), Te = () => {
|
|
|
2778
2808
|
"Feed ",
|
|
2779
2809
|
m + 1,
|
|
2780
2810
|
" of ",
|
|
2781
|
-
|
|
2811
|
+
E.length
|
|
2782
2812
|
] }, void 0, !0, {
|
|
2783
2813
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2784
2814
|
lineNumber: 157,
|
|
@@ -2803,7 +2833,7 @@ const xe = he(void 0), Te = () => {
|
|
|
2803
2833
|
lineNumber: 127,
|
|
2804
2834
|
columnNumber: 7
|
|
2805
2835
|
}, void 0),
|
|
2806
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2836
|
+
/* @__PURE__ */ e.jsxDEV(se, { title: "Interactive Demo Card", children: /* @__PURE__ */ e.jsxDEV(se, { variant: "accent", titleBorder: !1, children: /* @__PURE__ */ e.jsxDEV("div", { className: "text-center space-y-6", children: [
|
|
2807
2837
|
/* @__PURE__ */ e.jsxDEV("div", { className: "space-y-2", children: [
|
|
2808
2838
|
/* @__PURE__ */ e.jsxDEV("h4", { className: "text-xl font-semibold text-default", children: "Neural Interface Status" }, void 0, !1, {
|
|
2809
2839
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
@@ -2821,7 +2851,7 @@ const xe = he(void 0), Te = () => {
|
|
|
2821
2851
|
columnNumber: 13
|
|
2822
2852
|
}, void 0),
|
|
2823
2853
|
/* @__PURE__ */ e.jsxDEV("div", { className: "grid grid-cols-2 gap-4 text-sm", children: [
|
|
2824
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2854
|
+
/* @__PURE__ */ e.jsxDEV(se, { variant: "small", children: [
|
|
2825
2855
|
/* @__PURE__ */ e.jsxDEV("div", { className: "text-primary font-mono font-bold", children: "ONLINE" }, void 0, !1, {
|
|
2826
2856
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2827
2857
|
lineNumber: 180,
|
|
@@ -2837,7 +2867,7 @@ const xe = he(void 0), Te = () => {
|
|
|
2837
2867
|
lineNumber: 179,
|
|
2838
2868
|
columnNumber: 15
|
|
2839
2869
|
}, void 0),
|
|
2840
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
2870
|
+
/* @__PURE__ */ e.jsxDEV(se, { variant: "small", children: [
|
|
2841
2871
|
/* @__PURE__ */ e.jsxDEV("div", { className: "text-secondary font-mono font-bold", children: "87%" }, void 0, !1, {
|
|
2842
2872
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/InteractiveTab.tsx",
|
|
2843
2873
|
lineNumber: 184,
|
|
@@ -2860,12 +2890,12 @@ const xe = he(void 0), Te = () => {
|
|
|
2860
2890
|
}, void 0),
|
|
2861
2891
|
/* @__PURE__ */ e.jsxDEV("div", { className: "flex space-x-3", children: [
|
|
2862
2892
|
/* @__PURE__ */ e.jsxDEV(
|
|
2863
|
-
|
|
2893
|
+
G,
|
|
2864
2894
|
{
|
|
2865
2895
|
variant: "primary",
|
|
2866
2896
|
size: "sm",
|
|
2867
2897
|
className: "flex-1",
|
|
2868
|
-
onClick: () =>
|
|
2898
|
+
onClick: () => p(!0),
|
|
2869
2899
|
children: "Sync"
|
|
2870
2900
|
},
|
|
2871
2901
|
void 0,
|
|
@@ -2878,12 +2908,12 @@ const xe = he(void 0), Te = () => {
|
|
|
2878
2908
|
void 0
|
|
2879
2909
|
),
|
|
2880
2910
|
/* @__PURE__ */ e.jsxDEV(
|
|
2881
|
-
|
|
2911
|
+
G,
|
|
2882
2912
|
{
|
|
2883
2913
|
variant: "secondary",
|
|
2884
2914
|
size: "sm",
|
|
2885
2915
|
className: "flex-1",
|
|
2886
|
-
onClick: () =>
|
|
2916
|
+
onClick: () => I(!0),
|
|
2887
2917
|
children: "Monitor"
|
|
2888
2918
|
},
|
|
2889
2919
|
void 0,
|
|
@@ -2914,18 +2944,18 @@ const xe = he(void 0), Te = () => {
|
|
|
2914
2944
|
columnNumber: 7
|
|
2915
2945
|
}, void 0),
|
|
2916
2946
|
/* @__PURE__ */ e.jsxDEV(
|
|
2917
|
-
|
|
2947
|
+
ne,
|
|
2918
2948
|
{
|
|
2919
2949
|
isOpen: i,
|
|
2920
|
-
onClose: () =>
|
|
2950
|
+
onClose: () => d(!1),
|
|
2921
2951
|
title: "Neural Link Protocol",
|
|
2922
|
-
onCancel: () =>
|
|
2952
|
+
onCancel: () => d(!1),
|
|
2923
2953
|
onConfirm: () => {
|
|
2924
2954
|
y(
|
|
2925
2955
|
"success",
|
|
2926
2956
|
"NEURAL.EXE",
|
|
2927
2957
|
"Neural link protocol executed successfully"
|
|
2928
|
-
),
|
|
2958
|
+
), d(!1);
|
|
2929
2959
|
},
|
|
2930
2960
|
cancelText: "Abort",
|
|
2931
2961
|
confirmText: "Execute",
|
|
@@ -3058,18 +3088,18 @@ const xe = he(void 0), Te = () => {
|
|
|
3058
3088
|
void 0
|
|
3059
3089
|
),
|
|
3060
3090
|
/* @__PURE__ */ e.jsxDEV(
|
|
3061
|
-
|
|
3091
|
+
ne,
|
|
3062
3092
|
{
|
|
3063
|
-
isOpen:
|
|
3064
|
-
onClose: () =>
|
|
3093
|
+
isOpen: u,
|
|
3094
|
+
onClose: () => c(!1),
|
|
3065
3095
|
title: "System Diagnostic Scan",
|
|
3066
|
-
onCancel: () =>
|
|
3096
|
+
onCancel: () => c(!1),
|
|
3067
3097
|
onConfirm: () => {
|
|
3068
3098
|
y(
|
|
3069
3099
|
"success",
|
|
3070
3100
|
"DIAGNOSTIC.SYS",
|
|
3071
3101
|
"Deep system scan initiated successfully"
|
|
3072
|
-
),
|
|
3102
|
+
), c(!1);
|
|
3073
3103
|
},
|
|
3074
3104
|
cancelText: "Cancel",
|
|
3075
3105
|
confirmText: "Start Scan",
|
|
@@ -3206,9 +3236,9 @@ const xe = he(void 0), Te = () => {
|
|
|
3206
3236
|
void 0
|
|
3207
3237
|
),
|
|
3208
3238
|
/* @__PURE__ */ e.jsxDEV(
|
|
3209
|
-
|
|
3239
|
+
ne,
|
|
3210
3240
|
{
|
|
3211
|
-
isOpen:
|
|
3241
|
+
isOpen: b,
|
|
3212
3242
|
onClose: () => h(!1),
|
|
3213
3243
|
title: "⚠️ EMERGENCY SHUTDOWN",
|
|
3214
3244
|
onCancel: () => h(!1),
|
|
@@ -3363,9 +3393,9 @@ const xe = he(void 0), Te = () => {
|
|
|
3363
3393
|
void 0
|
|
3364
3394
|
),
|
|
3365
3395
|
/* @__PURE__ */ e.jsxDEV(
|
|
3366
|
-
|
|
3396
|
+
ne,
|
|
3367
3397
|
{
|
|
3368
|
-
isOpen:
|
|
3398
|
+
isOpen: l,
|
|
3369
3399
|
onClose: () => N(!1),
|
|
3370
3400
|
title: "Advanced Diagnostics",
|
|
3371
3401
|
onCancel: () => N(!1),
|
|
@@ -3500,18 +3530,18 @@ const xe = he(void 0), Te = () => {
|
|
|
3500
3530
|
void 0
|
|
3501
3531
|
),
|
|
3502
3532
|
/* @__PURE__ */ e.jsxDEV(
|
|
3503
|
-
|
|
3533
|
+
ne,
|
|
3504
3534
|
{
|
|
3505
|
-
isOpen:
|
|
3506
|
-
onClose: () =>
|
|
3535
|
+
isOpen: f,
|
|
3536
|
+
onClose: () => p(!1),
|
|
3507
3537
|
title: "Neural Synchronization",
|
|
3508
|
-
onCancel: () =>
|
|
3538
|
+
onCancel: () => p(!1),
|
|
3509
3539
|
onConfirm: () => {
|
|
3510
3540
|
y(
|
|
3511
3541
|
"success",
|
|
3512
3542
|
"NEURAL.SYS",
|
|
3513
3543
|
"Neural interface synchronization completed"
|
|
3514
|
-
),
|
|
3544
|
+
), p(!1);
|
|
3515
3545
|
},
|
|
3516
3546
|
cancelText: "Cancel",
|
|
3517
3547
|
confirmText: "Synchronize",
|
|
@@ -3650,18 +3680,18 @@ const xe = he(void 0), Te = () => {
|
|
|
3650
3680
|
void 0
|
|
3651
3681
|
),
|
|
3652
3682
|
/* @__PURE__ */ e.jsxDEV(
|
|
3653
|
-
|
|
3683
|
+
ne,
|
|
3654
3684
|
{
|
|
3655
3685
|
isOpen: U,
|
|
3656
|
-
onClose: () =>
|
|
3686
|
+
onClose: () => I(!1),
|
|
3657
3687
|
title: "Real-time System Monitor",
|
|
3658
|
-
onCancel: () =>
|
|
3688
|
+
onCancel: () => I(!1),
|
|
3659
3689
|
onConfirm: () => {
|
|
3660
3690
|
y(
|
|
3661
3691
|
"success",
|
|
3662
3692
|
"MONITOR.SYS",
|
|
3663
3693
|
"Real-time monitoring activated successfully"
|
|
3664
|
-
),
|
|
3694
|
+
), I(!1);
|
|
3665
3695
|
},
|
|
3666
3696
|
cancelText: "Close",
|
|
3667
3697
|
confirmText: "Enable Monitoring",
|
|
@@ -3836,7 +3866,7 @@ const xe = he(void 0), Te = () => {
|
|
|
3836
3866
|
lineNumber: 54,
|
|
3837
3867
|
columnNumber: 5
|
|
3838
3868
|
}, void 0);
|
|
3839
|
-
},
|
|
3869
|
+
}, ve = {
|
|
3840
3870
|
RADIUS: 20,
|
|
3841
3871
|
SEGMENT_COUNT: 20,
|
|
3842
3872
|
SEGMENT_ANGLE: 360 / 20,
|
|
@@ -3844,43 +3874,43 @@ const xe = he(void 0), Te = () => {
|
|
|
3844
3874
|
INNER_RADIUS: 18.5,
|
|
3845
3875
|
OUTER_RADIUS: 23.5,
|
|
3846
3876
|
OUTER_TICK_RADIUS: 30
|
|
3847
|
-
},
|
|
3877
|
+
}, _e = [
|
|
3848
3878
|
"Arasaka Corporation",
|
|
3849
3879
|
"Militech Industries",
|
|
3850
3880
|
"Kang Tao Systems",
|
|
3851
3881
|
"NetWatch Division"
|
|
3852
3882
|
], de = ({
|
|
3853
|
-
variant:
|
|
3854
|
-
size:
|
|
3883
|
+
variant: r = "primary",
|
|
3884
|
+
size: s = "md",
|
|
3855
3885
|
children: m,
|
|
3856
|
-
className:
|
|
3886
|
+
className: o = "",
|
|
3857
3887
|
leftIcon: i,
|
|
3858
|
-
rightIcon:
|
|
3859
|
-
clickable:
|
|
3860
|
-
onClick:
|
|
3861
|
-
...
|
|
3888
|
+
rightIcon: d,
|
|
3889
|
+
clickable: u = !1,
|
|
3890
|
+
onClick: c,
|
|
3891
|
+
...b
|
|
3862
3892
|
}) => {
|
|
3863
|
-
const h = (
|
|
3893
|
+
const h = (f) => q(f, Q.badge), l = (f) => ({
|
|
3864
3894
|
primary: "text-base bg-primary shadow-lg",
|
|
3865
3895
|
secondary: "text-base bg-secondary shadow-lg",
|
|
3866
3896
|
accent: "text-base bg-accent shadow-lg",
|
|
3867
3897
|
success: "text-base bg-success shadow-lg",
|
|
3868
3898
|
error: "text-base bg-error shadow-lg",
|
|
3869
3899
|
warning: "text-base bg-warning shadow-lg"
|
|
3870
|
-
})[
|
|
3900
|
+
})[f], N = (f, p) => !p && !c ? "transition-shadow" : {
|
|
3871
3901
|
primary: "hover:shadow-primary transition-shadow cursor-pointer",
|
|
3872
3902
|
secondary: "hover:shadow-secondary transition-shadow cursor-pointer",
|
|
3873
3903
|
accent: "hover:shadow-lg-accent transition-shadow cursor-pointer",
|
|
3874
3904
|
success: "hover:shadow-success transition-shadow cursor-pointer",
|
|
3875
3905
|
error: "hover:shadow-error transition-shadow cursor-pointer",
|
|
3876
3906
|
warning: "hover:shadow-warning transition-shadow cursor-pointer"
|
|
3877
|
-
}[
|
|
3907
|
+
}[f];
|
|
3878
3908
|
return /* @__PURE__ */ e.jsxDEV(
|
|
3879
3909
|
"span",
|
|
3880
3910
|
{
|
|
3881
|
-
className: `inline-flex items-center ${h(
|
|
3882
|
-
onClick:
|
|
3883
|
-
...
|
|
3911
|
+
className: `inline-flex items-center ${h(s)} rounded-full font-semibold ${l(r)} ${N(r, u || !!c)} ${o}`,
|
|
3912
|
+
onClick: c,
|
|
3913
|
+
...b,
|
|
3884
3914
|
children: [
|
|
3885
3915
|
i,
|
|
3886
3916
|
/* @__PURE__ */ e.jsxDEV("span", { children: m }, void 0, !1, {
|
|
@@ -3888,7 +3918,7 @@ const xe = he(void 0), Te = () => {
|
|
|
3888
3918
|
lineNumber: 66,
|
|
3889
3919
|
columnNumber: 7
|
|
3890
3920
|
}, void 0),
|
|
3891
|
-
|
|
3921
|
+
d
|
|
3892
3922
|
]
|
|
3893
3923
|
},
|
|
3894
3924
|
void 0,
|
|
@@ -3900,38 +3930,38 @@ const xe = he(void 0), Te = () => {
|
|
|
3900
3930
|
},
|
|
3901
3931
|
void 0
|
|
3902
3932
|
);
|
|
3903
|
-
},
|
|
3904
|
-
label:
|
|
3905
|
-
size:
|
|
3933
|
+
}, Oe = ({
|
|
3934
|
+
label: r,
|
|
3935
|
+
size: s = "md",
|
|
3906
3936
|
variant: m = "primary",
|
|
3907
|
-
className:
|
|
3937
|
+
className: o = "",
|
|
3908
3938
|
checked: i = !1,
|
|
3909
|
-
onChange:
|
|
3910
|
-
disabled:
|
|
3911
|
-
id:
|
|
3912
|
-
...
|
|
3939
|
+
onChange: d,
|
|
3940
|
+
disabled: u = !1,
|
|
3941
|
+
id: c,
|
|
3942
|
+
...b
|
|
3913
3943
|
}) => {
|
|
3914
|
-
const h = (
|
|
3915
|
-
|
|
3916
|
-
},
|
|
3944
|
+
const h = (I) => {
|
|
3945
|
+
d && d(I.target.checked);
|
|
3946
|
+
}, l = (I) => q(I, {
|
|
3917
3947
|
sm: "w-10 h-5 after:h-4 after:w-4",
|
|
3918
3948
|
md: "w-14 h-7 after:h-6 after:w-6",
|
|
3919
3949
|
lg: "w-16 h-8 after:h-7 after:w-7"
|
|
3920
|
-
}), N = (
|
|
3950
|
+
}), N = (I, y) => {
|
|
3921
3951
|
if (y)
|
|
3922
3952
|
return "bg-gray-600 peer-checked:bg-gray-500 opacity-50 cursor-not-allowed";
|
|
3923
|
-
const
|
|
3953
|
+
const E = {
|
|
3924
3954
|
primary: "bg-gray-600 peer-checked:bg-linear-(--gradient-accent) peer-focus:ring-primary",
|
|
3925
3955
|
secondary: "bg-gray-600 peer-checked:bg-secondary peer-focus:ring-secondary",
|
|
3926
3956
|
accent: "bg-gray-600 peer-checked:bg-accent peer-focus:ring-accent"
|
|
3927
3957
|
};
|
|
3928
|
-
return
|
|
3929
|
-
},
|
|
3958
|
+
return E[I] || E.primary;
|
|
3959
|
+
}, f = [
|
|
3930
3960
|
"relative inline-flex items-center cursor-pointer",
|
|
3931
|
-
|
|
3932
|
-
].join(" "),
|
|
3933
|
-
|
|
3934
|
-
N(m,
|
|
3961
|
+
u ? "cursor-not-allowed opacity-50" : "cursor-pointer"
|
|
3962
|
+
].join(" "), p = [
|
|
3963
|
+
l(s),
|
|
3964
|
+
N(m, u),
|
|
3935
3965
|
"peer-focus:outline-none rounded-full peer",
|
|
3936
3966
|
"peer-checked:after:translate-x-full peer-checked:after:border-white",
|
|
3937
3967
|
"after:content-[''] after:absolute after:top-[2px] after:left-[2px]",
|
|
@@ -3939,16 +3969,16 @@ const xe = he(void 0), Te = () => {
|
|
|
3939
3969
|
"transition-colors duration-300"
|
|
3940
3970
|
].filter(Boolean).join(" "), U = [
|
|
3941
3971
|
"flex items-center justify-between",
|
|
3942
|
-
|
|
3943
|
-
|
|
3972
|
+
r ? "space-x-3" : "",
|
|
3973
|
+
o
|
|
3944
3974
|
].filter(Boolean).join(" ");
|
|
3945
3975
|
return /* @__PURE__ */ e.jsxDEV("div", { className: U, children: [
|
|
3946
|
-
|
|
3976
|
+
r && /* @__PURE__ */ e.jsxDEV(
|
|
3947
3977
|
"label",
|
|
3948
3978
|
{
|
|
3949
|
-
htmlFor:
|
|
3950
|
-
className: `text-default font-medium ${
|
|
3951
|
-
children:
|
|
3979
|
+
htmlFor: c,
|
|
3980
|
+
className: `text-default font-medium ${u ? "text-muted opacity-50" : "cursor-pointer"}`,
|
|
3981
|
+
children: r
|
|
3952
3982
|
},
|
|
3953
3983
|
void 0,
|
|
3954
3984
|
!1,
|
|
@@ -3959,7 +3989,7 @@ const xe = he(void 0), Te = () => {
|
|
|
3959
3989
|
},
|
|
3960
3990
|
void 0
|
|
3961
3991
|
),
|
|
3962
|
-
/* @__PURE__ */ e.jsxDEV("label", { className:
|
|
3992
|
+
/* @__PURE__ */ e.jsxDEV("label", { className: f, children: [
|
|
3963
3993
|
/* @__PURE__ */ e.jsxDEV(
|
|
3964
3994
|
"input",
|
|
3965
3995
|
{
|
|
@@ -3967,9 +3997,9 @@ const xe = he(void 0), Te = () => {
|
|
|
3967
3997
|
className: "sr-only peer",
|
|
3968
3998
|
checked: i,
|
|
3969
3999
|
onChange: h,
|
|
3970
|
-
disabled:
|
|
3971
|
-
id:
|
|
3972
|
-
...
|
|
4000
|
+
disabled: u,
|
|
4001
|
+
id: c,
|
|
4002
|
+
...b
|
|
3973
4003
|
},
|
|
3974
4004
|
void 0,
|
|
3975
4005
|
!1,
|
|
@@ -3980,7 +4010,7 @@ const xe = he(void 0), Te = () => {
|
|
|
3980
4010
|
},
|
|
3981
4011
|
void 0
|
|
3982
4012
|
),
|
|
3983
|
-
/* @__PURE__ */ e.jsxDEV("div", { className:
|
|
4013
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: p }, void 0, !1, {
|
|
3984
4014
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Toggle.tsx",
|
|
3985
4015
|
lineNumber: 95,
|
|
3986
4016
|
columnNumber: 9
|
|
@@ -3995,58 +4025,58 @@ const xe = he(void 0), Te = () => {
|
|
|
3995
4025
|
lineNumber: 76,
|
|
3996
4026
|
columnNumber: 5
|
|
3997
4027
|
}, void 0);
|
|
3998
|
-
},
|
|
3999
|
-
label:
|
|
4000
|
-
size:
|
|
4028
|
+
}, ze = ({
|
|
4029
|
+
label: r,
|
|
4030
|
+
size: s = "md",
|
|
4001
4031
|
variant: m = "primary",
|
|
4002
|
-
options:
|
|
4032
|
+
options: o,
|
|
4003
4033
|
placeholder: i,
|
|
4004
|
-
helperText:
|
|
4005
|
-
error:
|
|
4006
|
-
className:
|
|
4007
|
-
disabled:
|
|
4034
|
+
helperText: d,
|
|
4035
|
+
error: u,
|
|
4036
|
+
className: c = "",
|
|
4037
|
+
disabled: b = !1,
|
|
4008
4038
|
id: h,
|
|
4009
|
-
name:
|
|
4039
|
+
name: l,
|
|
4010
4040
|
...N
|
|
4011
4041
|
}) => {
|
|
4012
|
-
const
|
|
4013
|
-
if (
|
|
4042
|
+
const f = Ee(), p = h || f, U = l || p, I = (j) => q(j, Q.input), y = (j, S, O) => {
|
|
4043
|
+
if (S)
|
|
4014
4044
|
return "bg-base border-2 border-border-default/30 text-muted/50 cursor-not-allowed opacity-50";
|
|
4015
|
-
if (
|
|
4045
|
+
if (O)
|
|
4016
4046
|
return "bg-surface border-2 border-error text-default focus:ring-2 focus:ring-error focus:border-error shadow-error";
|
|
4017
|
-
const
|
|
4047
|
+
const v = {
|
|
4018
4048
|
primary: "bg-surface border-2 border-border-default text-default focus:ring-2 focus:ring-primary focus:border-primary shadow-primary",
|
|
4019
4049
|
secondary: "bg-surface border-2 border-secondary text-default focus:ring-2 focus:ring-secondary focus:border-secondary shadow-secondary/30",
|
|
4020
4050
|
danger: "bg-surface border-2 border-error text-default focus:ring-2 focus:ring-error focus:border-error shadow-error/30",
|
|
4021
4051
|
ghost: "bg-base border-2 border-accent/20 text-default focus:ring-2 focus:ring-accent focus:border-accent shadow-secondary"
|
|
4022
4052
|
};
|
|
4023
|
-
return
|
|
4024
|
-
},
|
|
4053
|
+
return v[j] || v.primary;
|
|
4054
|
+
}, E = [
|
|
4025
4055
|
"appearance-none w-full rounded-lg font-mono transition-all duration-300",
|
|
4026
4056
|
"focus:outline-none px-4 pr-10",
|
|
4027
|
-
|
|
4028
|
-
y(m,
|
|
4029
|
-
|
|
4030
|
-
].filter(Boolean).join(" "),
|
|
4057
|
+
I(s),
|
|
4058
|
+
y(m, b, !!u),
|
|
4059
|
+
c
|
|
4060
|
+
].filter(Boolean).join(" "), x = "relative w-full", k = [
|
|
4031
4061
|
"block text-sm font-medium mb-2 transition-colors duration-200",
|
|
4032
|
-
|
|
4033
|
-
].join(" "),
|
|
4062
|
+
b ? "text-muted opacity-50" : u ? "text-error" : "text-default"
|
|
4063
|
+
].join(" "), D = [
|
|
4034
4064
|
"mt-2 text-xs transition-colors duration-200",
|
|
4035
|
-
|
|
4065
|
+
u ? "text-error" : "text-muted"
|
|
4036
4066
|
].join(" ");
|
|
4037
4067
|
return /* @__PURE__ */ e.jsxDEV("div", { className: "w-full", children: [
|
|
4038
|
-
|
|
4068
|
+
r && /* @__PURE__ */ e.jsxDEV("label", { htmlFor: p, className: k, children: r }, void 0, !1, {
|
|
4039
4069
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Select.tsx",
|
|
4040
4070
|
lineNumber: 101,
|
|
4041
4071
|
columnNumber: 9
|
|
4042
4072
|
}, void 0),
|
|
4043
|
-
/* @__PURE__ */ e.jsxDEV("div", { className:
|
|
4073
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: x, children: [
|
|
4044
4074
|
/* @__PURE__ */ e.jsxDEV(
|
|
4045
4075
|
"select",
|
|
4046
4076
|
{
|
|
4047
|
-
className:
|
|
4048
|
-
disabled:
|
|
4049
|
-
id:
|
|
4077
|
+
className: E,
|
|
4078
|
+
disabled: b,
|
|
4079
|
+
id: p,
|
|
4050
4080
|
name: U,
|
|
4051
4081
|
...N,
|
|
4052
4082
|
children: [
|
|
@@ -4055,15 +4085,15 @@ const xe = he(void 0), Te = () => {
|
|
|
4055
4085
|
lineNumber: 115,
|
|
4056
4086
|
columnNumber: 13
|
|
4057
4087
|
}, void 0),
|
|
4058
|
-
|
|
4088
|
+
o.map((j) => /* @__PURE__ */ e.jsxDEV(
|
|
4059
4089
|
"option",
|
|
4060
4090
|
{
|
|
4061
|
-
value:
|
|
4062
|
-
disabled:
|
|
4091
|
+
value: j.value,
|
|
4092
|
+
disabled: j.disabled,
|
|
4063
4093
|
className: "bg-surface text-default",
|
|
4064
|
-
children:
|
|
4094
|
+
children: j.label
|
|
4065
4095
|
},
|
|
4066
|
-
|
|
4096
|
+
j.value,
|
|
4067
4097
|
!1,
|
|
4068
4098
|
{
|
|
4069
4099
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Select.tsx",
|
|
@@ -4086,7 +4116,7 @@ const xe = he(void 0), Te = () => {
|
|
|
4086
4116
|
/* @__PURE__ */ e.jsxDEV(
|
|
4087
4117
|
"div",
|
|
4088
4118
|
{
|
|
4089
|
-
className: `pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 ${
|
|
4119
|
+
className: `pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 ${b ? "text-muted/50" : u ? "text-error" : "text-accent"}`,
|
|
4090
4120
|
children: /* @__PURE__ */ e.jsxDEV("svg", { className: "w-4 h-4", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsxDEV(
|
|
4091
4121
|
"path",
|
|
4092
4122
|
{
|
|
@@ -4122,7 +4152,7 @@ const xe = he(void 0), Te = () => {
|
|
|
4122
4152
|
lineNumber: 106,
|
|
4123
4153
|
columnNumber: 7
|
|
4124
4154
|
}, void 0),
|
|
4125
|
-
(
|
|
4155
|
+
(d || u) && /* @__PURE__ */ e.jsxDEV("div", { className: D, children: u || d }, void 0, !1, {
|
|
4126
4156
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Select.tsx",
|
|
4127
4157
|
lineNumber: 148,
|
|
4128
4158
|
columnNumber: 9
|
|
@@ -4132,10 +4162,10 @@ const xe = he(void 0), Te = () => {
|
|
|
4132
4162
|
lineNumber: 99,
|
|
4133
4163
|
columnNumber: 5
|
|
4134
4164
|
}, void 0);
|
|
4135
|
-
},
|
|
4136
|
-
const [
|
|
4137
|
-
value:
|
|
4138
|
-
label:
|
|
4165
|
+
}, er = () => {
|
|
4166
|
+
const [r, s] = V(!1), [m, o] = V(""), i = _e.map((d) => ({
|
|
4167
|
+
value: d.toLowerCase().replace(/\s+/g, "_"),
|
|
4168
|
+
label: d
|
|
4139
4169
|
}));
|
|
4140
4170
|
return /* @__PURE__ */ e.jsxDEV("div", { className: "w-full max-w-xl md:max-w-3xl lg:max-w-4xl space-y-8 md:space-y-12", children: [
|
|
4141
4171
|
/* @__PURE__ */ e.jsxDEV("div", { className: "text-center", children: [
|
|
@@ -4154,16 +4184,16 @@ const xe = he(void 0), Te = () => {
|
|
|
4154
4184
|
lineNumber: 21,
|
|
4155
4185
|
columnNumber: 7
|
|
4156
4186
|
}, void 0),
|
|
4157
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
4187
|
+
/* @__PURE__ */ e.jsxDEV(se, { title: "Form Controls", children: /* @__PURE__ */ e.jsxDEV("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6 items-center", children: [
|
|
4158
4188
|
/* @__PURE__ */ e.jsxDEV("div", { children: /* @__PURE__ */ e.jsxDEV(
|
|
4159
|
-
|
|
4189
|
+
ze,
|
|
4160
4190
|
{
|
|
4161
4191
|
label: "Corporate Faction",
|
|
4162
4192
|
variant: "primary",
|
|
4163
4193
|
options: i,
|
|
4164
4194
|
placeholder: "Select your faction...",
|
|
4165
4195
|
value: m,
|
|
4166
|
-
onChange: (
|
|
4196
|
+
onChange: (d) => o(d.target.value)
|
|
4167
4197
|
},
|
|
4168
4198
|
void 0,
|
|
4169
4199
|
!1,
|
|
@@ -4185,12 +4215,12 @@ const xe = he(void 0), Te = () => {
|
|
|
4185
4215
|
columnNumber: 13
|
|
4186
4216
|
}, void 0),
|
|
4187
4217
|
/* @__PURE__ */ e.jsxDEV("div", { className: "bg-surface border border-border-default rounded-lg p-3", children: /* @__PURE__ */ e.jsxDEV(
|
|
4188
|
-
|
|
4218
|
+
Oe,
|
|
4189
4219
|
{
|
|
4190
4220
|
label: "Enable Ghost Mode",
|
|
4191
4221
|
variant: "primary",
|
|
4192
|
-
checked:
|
|
4193
|
-
onChange:
|
|
4222
|
+
checked: r,
|
|
4223
|
+
onChange: s
|
|
4194
4224
|
},
|
|
4195
4225
|
void 0,
|
|
4196
4226
|
!1,
|
|
@@ -4219,7 +4249,7 @@ const xe = he(void 0), Te = () => {
|
|
|
4219
4249
|
lineNumber: 30,
|
|
4220
4250
|
columnNumber: 7
|
|
4221
4251
|
}, void 0),
|
|
4222
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
4252
|
+
/* @__PURE__ */ e.jsxDEV(se, { title: "Status Indicators", children: /* @__PURE__ */ e.jsxDEV("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
|
|
4223
4253
|
/* @__PURE__ */ e.jsxDEV("div", { children: [
|
|
4224
4254
|
/* @__PURE__ */ e.jsxDEV("label", { className: "block text-sm font-medium text-default mb-3", children: "Security Clearance Levels" }, void 0, !1, {
|
|
4225
4255
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/ElementsTab.tsx",
|
|
@@ -4380,7 +4410,7 @@ const xe = he(void 0), Te = () => {
|
|
|
4380
4410
|
lineNumber: 61,
|
|
4381
4411
|
columnNumber: 7
|
|
4382
4412
|
}, void 0),
|
|
4383
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
4413
|
+
/* @__PURE__ */ e.jsxDEV(se, { title: "Media Gallery", children: /* @__PURE__ */ e.jsxDEV("div", { className: "space-y-6", children: /* @__PURE__ */ e.jsxDEV("div", { children: [
|
|
4384
4414
|
/* @__PURE__ */ e.jsxDEV("label", { className: "block text-sm font-medium text-default mb-3", children: "Enhanced Visual Analysis System" }, void 0, !1, {
|
|
4385
4415
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/ElementsTab.tsx",
|
|
4386
4416
|
lineNumber: 130,
|
|
@@ -4394,7 +4424,7 @@ const xe = he(void 0), Te = () => {
|
|
|
4394
4424
|
/* @__PURE__ */ e.jsxDEV("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: [
|
|
4395
4425
|
/* @__PURE__ */ e.jsxDEV("div", { className: "space-y-2", children: [
|
|
4396
4426
|
/* @__PURE__ */ e.jsxDEV("div", { className: "h-48", children: /* @__PURE__ */ e.jsxDEV(
|
|
4397
|
-
|
|
4427
|
+
ae,
|
|
4398
4428
|
{
|
|
4399
4429
|
src: "image_demo_1.jpg",
|
|
4400
4430
|
alt: "Cyberpunk cityscape with neon lights reflecting on wet streets",
|
|
@@ -4426,7 +4456,7 @@ const xe = he(void 0), Te = () => {
|
|
|
4426
4456
|
}, void 0),
|
|
4427
4457
|
/* @__PURE__ */ e.jsxDEV("div", { className: "space-y-2", children: [
|
|
4428
4458
|
/* @__PURE__ */ e.jsxDEV("div", { className: "h-48", children: /* @__PURE__ */ e.jsxDEV(
|
|
4429
|
-
|
|
4459
|
+
ae,
|
|
4430
4460
|
{
|
|
4431
4461
|
src: "image_demo_3.jpg",
|
|
4432
4462
|
alt: "Holographic display showing system diagnostics",
|
|
@@ -4458,7 +4488,7 @@ const xe = he(void 0), Te = () => {
|
|
|
4458
4488
|
}, void 0),
|
|
4459
4489
|
/* @__PURE__ */ e.jsxDEV("div", { className: "space-y-2", children: [
|
|
4460
4490
|
/* @__PURE__ */ e.jsxDEV("div", { className: "h-48", children: /* @__PURE__ */ e.jsxDEV(
|
|
4461
|
-
|
|
4491
|
+
ae,
|
|
4462
4492
|
{
|
|
4463
4493
|
src: "noexist.jpg",
|
|
4464
4494
|
alt: "Futuristic neural network interface with data streams",
|
|
@@ -4511,24 +4541,24 @@ const xe = he(void 0), Te = () => {
|
|
|
4511
4541
|
lineNumber: 19,
|
|
4512
4542
|
columnNumber: 5
|
|
4513
4543
|
}, void 0);
|
|
4514
|
-
},
|
|
4515
|
-
const { min:
|
|
4516
|
-
return
|
|
4517
|
-
const
|
|
4518
|
-
|
|
4519
|
-
let
|
|
4520
|
-
return
|
|
4544
|
+
}, Fe = (r = {}) => {
|
|
4545
|
+
const { min: s = 5, max: m = 95, speed: o = 30 } = r, [i, d] = V(0), [u, c] = V(1);
|
|
4546
|
+
return J(() => {
|
|
4547
|
+
const b = setInterval(() => {
|
|
4548
|
+
d((h) => {
|
|
4549
|
+
let l = h + u;
|
|
4550
|
+
return l >= m ? (l = m, c(-1)) : l <= s && (l = s, c(1)), l;
|
|
4521
4551
|
});
|
|
4522
|
-
},
|
|
4523
|
-
return () => clearInterval(
|
|
4524
|
-
}, [
|
|
4525
|
-
},
|
|
4526
|
-
progress:
|
|
4527
|
-
radius:
|
|
4552
|
+
}, o);
|
|
4553
|
+
return () => clearInterval(b);
|
|
4554
|
+
}, [u, s, m, o]), i;
|
|
4555
|
+
}, Be = ({
|
|
4556
|
+
progress: r,
|
|
4557
|
+
radius: s,
|
|
4528
4558
|
className: m = "",
|
|
4529
|
-
children:
|
|
4559
|
+
children: o
|
|
4530
4560
|
}) => {
|
|
4531
|
-
const i = 2 * Math.PI *
|
|
4561
|
+
const i = 2 * Math.PI * s, d = i / 2, u = d * (1 - r / 100), c = d * (1 - r / 100);
|
|
4532
4562
|
return /* @__PURE__ */ e.jsxDEV("div", { className: `relative ${m}`, children: [
|
|
4533
4563
|
/* @__PURE__ */ e.jsxDEV(
|
|
4534
4564
|
"svg",
|
|
@@ -4541,13 +4571,13 @@ const xe = he(void 0), Te = () => {
|
|
|
4541
4571
|
{
|
|
4542
4572
|
cx: "25",
|
|
4543
4573
|
cy: "25",
|
|
4544
|
-
r:
|
|
4574
|
+
r: s,
|
|
4545
4575
|
fill: "none",
|
|
4546
4576
|
stroke: "var(--color-accent)",
|
|
4547
4577
|
strokeWidth: "4",
|
|
4548
4578
|
strokeLinecap: "butt",
|
|
4549
|
-
strokeDasharray: `${
|
|
4550
|
-
strokeDashoffset:
|
|
4579
|
+
strokeDasharray: `${d * 0.98} ${i}`,
|
|
4580
|
+
strokeDashoffset: u,
|
|
4551
4581
|
transform: "rotate(-90 25 25)",
|
|
4552
4582
|
style: {
|
|
4553
4583
|
filter: "drop-shadow(0 0 8px var(--color-accent))"
|
|
@@ -4567,13 +4597,13 @@ const xe = he(void 0), Te = () => {
|
|
|
4567
4597
|
{
|
|
4568
4598
|
cx: "25",
|
|
4569
4599
|
cy: "25",
|
|
4570
|
-
r:
|
|
4600
|
+
r: s,
|
|
4571
4601
|
fill: "none",
|
|
4572
4602
|
stroke: "var(--color-primary)",
|
|
4573
4603
|
strokeWidth: "4",
|
|
4574
4604
|
strokeLinecap: "butt",
|
|
4575
|
-
strokeDasharray: `${
|
|
4576
|
-
strokeDashoffset:
|
|
4605
|
+
strokeDasharray: `${d * 0.98} ${i}`,
|
|
4606
|
+
strokeDashoffset: c,
|
|
4577
4607
|
transform: "rotate(90 25 25)",
|
|
4578
4608
|
style: {
|
|
4579
4609
|
filter: "drop-shadow(0 0 8px var(--color-primary))"
|
|
@@ -4599,7 +4629,7 @@ const xe = he(void 0), Te = () => {
|
|
|
4599
4629
|
},
|
|
4600
4630
|
void 0
|
|
4601
4631
|
),
|
|
4602
|
-
|
|
4632
|
+
o && /* @__PURE__ */ e.jsxDEV("div", { className: "absolute inset-0 flex items-center justify-center", children: o }, void 0, !1, {
|
|
4603
4633
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/CircularProgress.tsx",
|
|
4604
4634
|
lineNumber: 61,
|
|
4605
4635
|
columnNumber: 9
|
|
@@ -4609,20 +4639,20 @@ const xe = he(void 0), Te = () => {
|
|
|
4609
4639
|
lineNumber: 22,
|
|
4610
4640
|
columnNumber: 5
|
|
4611
4641
|
}, void 0);
|
|
4612
|
-
},
|
|
4613
|
-
progress:
|
|
4614
|
-
className:
|
|
4642
|
+
}, He = ({
|
|
4643
|
+
progress: r,
|
|
4644
|
+
className: s = "",
|
|
4615
4645
|
children: m
|
|
4616
4646
|
}) => {
|
|
4617
4647
|
const {
|
|
4618
|
-
SEGMENT_COUNT:
|
|
4648
|
+
SEGMENT_COUNT: o,
|
|
4619
4649
|
SEGMENT_ANGLE: i,
|
|
4620
|
-
GAP_ANGLE:
|
|
4621
|
-
INNER_RADIUS:
|
|
4622
|
-
OUTER_RADIUS:
|
|
4623
|
-
OUTER_TICK_RADIUS:
|
|
4624
|
-
} =
|
|
4625
|
-
return /* @__PURE__ */ e.jsxDEV("div", { className: `relative ${
|
|
4650
|
+
GAP_ANGLE: d,
|
|
4651
|
+
INNER_RADIUS: u,
|
|
4652
|
+
OUTER_RADIUS: c,
|
|
4653
|
+
OUTER_TICK_RADIUS: b
|
|
4654
|
+
} = ve, h = i - d;
|
|
4655
|
+
return /* @__PURE__ */ e.jsxDEV("div", { className: `relative ${s}`, children: [
|
|
4626
4656
|
/* @__PURE__ */ e.jsxDEV(
|
|
4627
4657
|
"svg",
|
|
4628
4658
|
{
|
|
@@ -4630,16 +4660,16 @@ const xe = he(void 0), Te = () => {
|
|
|
4630
4660
|
viewBox: "0 0 60 60",
|
|
4631
4661
|
style: { overflow: "visible" },
|
|
4632
4662
|
children: [
|
|
4633
|
-
[...Array(60)].map((
|
|
4634
|
-
const
|
|
4663
|
+
[...Array(60)].map((l, N) => {
|
|
4664
|
+
const f = 6 * N, U = N % 5 === 0 ? 6 : 3, I = "var(--color-muted)", y = 30 + b * Math.cos(f * Math.PI / 180), E = 30 + b * Math.sin(f * Math.PI / 180), x = 30 + (b - U) * Math.cos(f * Math.PI / 180), k = 30 + (b - U) * Math.sin(f * Math.PI / 180);
|
|
4635
4665
|
return /* @__PURE__ */ e.jsxDEV(
|
|
4636
4666
|
"line",
|
|
4637
4667
|
{
|
|
4638
4668
|
x1: y,
|
|
4639
|
-
y1:
|
|
4640
|
-
x2:
|
|
4641
|
-
y2:
|
|
4642
|
-
stroke:
|
|
4669
|
+
y1: E,
|
|
4670
|
+
x2: x,
|
|
4671
|
+
y2: k,
|
|
4672
|
+
stroke: I,
|
|
4643
4673
|
strokeWidth: 1,
|
|
4644
4674
|
strokeLinecap: "round",
|
|
4645
4675
|
opacity: 0.7
|
|
@@ -4654,15 +4684,15 @@ const xe = he(void 0), Te = () => {
|
|
|
4654
4684
|
void 0
|
|
4655
4685
|
);
|
|
4656
4686
|
}),
|
|
4657
|
-
[...Array(
|
|
4658
|
-
const
|
|
4687
|
+
[...Array(o)].map((l, N) => {
|
|
4688
|
+
const f = i * N - 90 + d / 2, p = f + h, U = (M) => M * Math.PI / 180, I = 30 + u * Math.cos(U(f)), y = 30 + u * Math.sin(U(f)), E = 30 + c * Math.cos(U(f)), x = 30 + c * Math.sin(U(f)), k = 30 + c * Math.cos(U(p)), D = 30 + c * Math.sin(U(p)), j = 30 + u * Math.cos(U(p)), S = 30 + u * Math.sin(U(p)), O = `M ${I} ${y} L ${E} ${x} L ${k} ${D} L ${j} ${S} Z`, v = N < Math.floor(r / 5);
|
|
4659
4689
|
return /* @__PURE__ */ e.jsxDEV(
|
|
4660
4690
|
"path",
|
|
4661
4691
|
{
|
|
4662
|
-
d:
|
|
4663
|
-
fill:
|
|
4692
|
+
d: O,
|
|
4693
|
+
fill: v ? "var(--color-accent)" : "var(--color-border-default)",
|
|
4664
4694
|
style: {
|
|
4665
|
-
filter:
|
|
4695
|
+
filter: v ? "drop-shadow(0 0 6px var(--color-accent))" : "none",
|
|
4666
4696
|
transition: "fill 0.3s ease"
|
|
4667
4697
|
}
|
|
4668
4698
|
},
|
|
@@ -4697,15 +4727,15 @@ const xe = he(void 0), Te = () => {
|
|
|
4697
4727
|
lineNumber: 27,
|
|
4698
4728
|
columnNumber: 5
|
|
4699
4729
|
}, void 0);
|
|
4700
|
-
},
|
|
4701
|
-
type:
|
|
4702
|
-
title:
|
|
4730
|
+
}, me = ({
|
|
4731
|
+
type: r,
|
|
4732
|
+
title: s,
|
|
4703
4733
|
message: m,
|
|
4704
|
-
size:
|
|
4734
|
+
size: o = "md",
|
|
4705
4735
|
onClose: i
|
|
4706
4736
|
}) => {
|
|
4707
|
-
const
|
|
4708
|
-
switch (
|
|
4737
|
+
const d = (h) => q(h, Q.notification), c = (() => {
|
|
4738
|
+
switch (r) {
|
|
4709
4739
|
case "success":
|
|
4710
4740
|
return {
|
|
4711
4741
|
container: "bg-linear-(--gradient-accent) shadow-lg-accent",
|
|
@@ -4788,20 +4818,20 @@ const xe = he(void 0), Te = () => {
|
|
|
4788
4818
|
icon: null
|
|
4789
4819
|
};
|
|
4790
4820
|
}
|
|
4791
|
-
})(),
|
|
4792
|
-
return /* @__PURE__ */ e.jsxDEV("div", { className: `flex items-start rounded-lg ${
|
|
4793
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: "flex-shrink-0", children:
|
|
4821
|
+
})(), b = d(o);
|
|
4822
|
+
return /* @__PURE__ */ e.jsxDEV("div", { className: `flex items-start rounded-lg ${b} ${c.container}`, children: [
|
|
4823
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: "flex-shrink-0", children: c.icon }, void 0, !1, {
|
|
4794
4824
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Notification.tsx",
|
|
4795
4825
|
lineNumber: 82,
|
|
4796
4826
|
columnNumber: 7
|
|
4797
4827
|
}, void 0),
|
|
4798
4828
|
/* @__PURE__ */ e.jsxDEV("div", { className: "flex-1", children: [
|
|
4799
|
-
/* @__PURE__ */ e.jsxDEV("h4", { className: `font-bold ${
|
|
4829
|
+
/* @__PURE__ */ e.jsxDEV("h4", { className: `font-bold ${c.textColor}`, children: s }, void 0, !1, {
|
|
4800
4830
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Notification.tsx",
|
|
4801
4831
|
lineNumber: 86,
|
|
4802
4832
|
columnNumber: 9
|
|
4803
4833
|
}, void 0),
|
|
4804
|
-
/* @__PURE__ */ e.jsxDEV("p", { className: `${
|
|
4834
|
+
/* @__PURE__ */ e.jsxDEV("p", { className: `${r === "success" || r === "error" ? "text-base/80" : "text-muted"} text-sm mt-1`, children: m }, void 0, !1, {
|
|
4805
4835
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Notification.tsx",
|
|
4806
4836
|
lineNumber: 89,
|
|
4807
4837
|
columnNumber: 9
|
|
@@ -4814,7 +4844,7 @@ const xe = he(void 0), Te = () => {
|
|
|
4814
4844
|
i && /* @__PURE__ */ e.jsxDEV(
|
|
4815
4845
|
"button",
|
|
4816
4846
|
{
|
|
4817
|
-
className: `flex-shrink-0 ${
|
|
4847
|
+
className: `flex-shrink-0 ${c.textColor} hover:${c.textColor}/30 transition-colors cursor-pointer`,
|
|
4818
4848
|
onClick: i,
|
|
4819
4849
|
children: /* @__PURE__ */ e.jsxDEV("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsxDEV(
|
|
4820
4850
|
"path",
|
|
@@ -4851,18 +4881,18 @@ const xe = he(void 0), Te = () => {
|
|
|
4851
4881
|
lineNumber: 81,
|
|
4852
4882
|
columnNumber: 5
|
|
4853
4883
|
}, void 0);
|
|
4854
|
-
},
|
|
4855
|
-
progress:
|
|
4856
|
-
size:
|
|
4884
|
+
}, We = ({
|
|
4885
|
+
progress: r,
|
|
4886
|
+
size: s = "md",
|
|
4857
4887
|
className: m = ""
|
|
4858
4888
|
}) => {
|
|
4859
|
-
const
|
|
4889
|
+
const o = (h) => q(h, Q.linearProgress.width), i = (h) => q(h, Q.linearProgress.height), d = o(s), u = i(s), c = [
|
|
4860
4890
|
"bg-surface",
|
|
4861
4891
|
"rounded-full",
|
|
4862
4892
|
"shadow-inner",
|
|
4863
|
-
|
|
4864
|
-
m ||
|
|
4865
|
-
].join(" "),
|
|
4893
|
+
u,
|
|
4894
|
+
m || d
|
|
4895
|
+
].join(" "), b = [
|
|
4866
4896
|
"bg-gradient-to-r",
|
|
4867
4897
|
"from-accent",
|
|
4868
4898
|
"to-primary",
|
|
@@ -4871,13 +4901,13 @@ const xe = he(void 0), Te = () => {
|
|
|
4871
4901
|
"transition-all",
|
|
4872
4902
|
"duration-500",
|
|
4873
4903
|
"ease-out",
|
|
4874
|
-
|
|
4904
|
+
u
|
|
4875
4905
|
].join(" ");
|
|
4876
|
-
return /* @__PURE__ */ e.jsxDEV("div", { className:
|
|
4906
|
+
return /* @__PURE__ */ e.jsxDEV("div", { className: c, children: /* @__PURE__ */ e.jsxDEV(
|
|
4877
4907
|
"div",
|
|
4878
4908
|
{
|
|
4879
|
-
className:
|
|
4880
|
-
style: { width: `${
|
|
4909
|
+
className: b,
|
|
4910
|
+
style: { width: `${r}%` }
|
|
4881
4911
|
},
|
|
4882
4912
|
void 0,
|
|
4883
4913
|
!1,
|
|
@@ -4892,31 +4922,31 @@ const xe = he(void 0), Te = () => {
|
|
|
4892
4922
|
lineNumber: 48,
|
|
4893
4923
|
columnNumber: 5
|
|
4894
4924
|
}, void 0);
|
|
4895
|
-
},
|
|
4896
|
-
variant:
|
|
4897
|
-
size:
|
|
4925
|
+
}, Ge = ({
|
|
4926
|
+
variant: r = "text",
|
|
4927
|
+
size: s = "md",
|
|
4898
4928
|
width: m,
|
|
4899
|
-
height:
|
|
4929
|
+
height: o,
|
|
4900
4930
|
className: i = "",
|
|
4901
|
-
lines:
|
|
4902
|
-
animate:
|
|
4931
|
+
lines: d = 3,
|
|
4932
|
+
animate: u = !0
|
|
4903
4933
|
}) => {
|
|
4904
|
-
const
|
|
4934
|
+
const b = [
|
|
4905
4935
|
"bg-gray-600",
|
|
4906
|
-
|
|
4907
|
-
((
|
|
4936
|
+
u ? "animate-pulse" : "",
|
|
4937
|
+
((l) => q(l, Q.skeleton))(s),
|
|
4908
4938
|
i
|
|
4909
4939
|
].filter(Boolean).join(" "), h = () => {
|
|
4910
|
-
const
|
|
4911
|
-
return m && (
|
|
4940
|
+
const l = {};
|
|
4941
|
+
return m && (l.width = typeof m == "number" ? `${m}px` : m), o && (l.height = typeof o == "number" ? `${o}px` : o), l;
|
|
4912
4942
|
};
|
|
4913
|
-
if (
|
|
4914
|
-
return /* @__PURE__ */ e.jsxDEV("div", { className: `space-y-3 ${i}`, children: Array.from({ length:
|
|
4915
|
-
const
|
|
4943
|
+
if (r === "text")
|
|
4944
|
+
return /* @__PURE__ */ e.jsxDEV("div", { className: `space-y-3 ${i}`, children: Array.from({ length: d }).map((l, N) => {
|
|
4945
|
+
const p = N === d - 1 ? "w-2/3" : N % 2 === 0 ? "w-full" : "w-5/6";
|
|
4916
4946
|
return /* @__PURE__ */ e.jsxDEV(
|
|
4917
4947
|
"div",
|
|
4918
4948
|
{
|
|
4919
|
-
className: `h-3 rounded ${
|
|
4949
|
+
className: `h-3 rounded ${b} ${p}`,
|
|
4920
4950
|
style: h()
|
|
4921
4951
|
},
|
|
4922
4952
|
N,
|
|
@@ -4933,12 +4963,12 @@ const xe = he(void 0), Te = () => {
|
|
|
4933
4963
|
lineNumber: 59,
|
|
4934
4964
|
columnNumber: 7
|
|
4935
4965
|
}, void 0);
|
|
4936
|
-
if (
|
|
4937
|
-
const
|
|
4966
|
+
if (r === "circular") {
|
|
4967
|
+
const l = s === "sm" ? "h-12 w-12" : s === "lg" ? "h-20 w-20" : "h-16 w-16";
|
|
4938
4968
|
return /* @__PURE__ */ e.jsxDEV(
|
|
4939
4969
|
"div",
|
|
4940
4970
|
{
|
|
4941
|
-
className: `rounded-full ${
|
|
4971
|
+
className: `rounded-full ${b} ${l}`,
|
|
4942
4972
|
style: h()
|
|
4943
4973
|
},
|
|
4944
4974
|
void 0,
|
|
@@ -4951,12 +4981,12 @@ const xe = he(void 0), Te = () => {
|
|
|
4951
4981
|
void 0
|
|
4952
4982
|
);
|
|
4953
4983
|
}
|
|
4954
|
-
if (
|
|
4955
|
-
const
|
|
4984
|
+
if (r === "rectangular") {
|
|
4985
|
+
const l = s === "sm" ? "h-20" : s === "lg" ? "h-40" : "h-32";
|
|
4956
4986
|
return /* @__PURE__ */ e.jsxDEV(
|
|
4957
4987
|
"div",
|
|
4958
4988
|
{
|
|
4959
|
-
className: `rounded-lg ${
|
|
4989
|
+
className: `rounded-lg ${b} w-full ${l}`,
|
|
4960
4990
|
style: h()
|
|
4961
4991
|
},
|
|
4962
4992
|
void 0,
|
|
@@ -4969,21 +4999,21 @@ const xe = he(void 0), Te = () => {
|
|
|
4969
4999
|
void 0
|
|
4970
5000
|
);
|
|
4971
5001
|
}
|
|
4972
|
-
if (
|
|
4973
|
-
const
|
|
5002
|
+
if (r === "avatar-text") {
|
|
5003
|
+
const l = s === "sm" ? "h-12 w-12" : s === "lg" ? "h-20 w-20" : "h-16 w-16";
|
|
4974
5004
|
return /* @__PURE__ */ e.jsxDEV("div", { className: `flex items-center space-x-4 ${i}`, children: [
|
|
4975
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `rounded-full ${
|
|
5005
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `rounded-full ${b} ${l}` }, void 0, !1, {
|
|
4976
5006
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
4977
5007
|
lineNumber: 113,
|
|
4978
5008
|
columnNumber: 9
|
|
4979
5009
|
}, void 0),
|
|
4980
5010
|
/* @__PURE__ */ e.jsxDEV("div", { className: "flex-1 space-y-3", children: [
|
|
4981
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `h-4 rounded w-3/4 ${
|
|
5011
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `h-4 rounded w-3/4 ${b}` }, void 0, !1, {
|
|
4982
5012
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
4983
5013
|
lineNumber: 115,
|
|
4984
5014
|
columnNumber: 11
|
|
4985
5015
|
}, void 0),
|
|
4986
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `h-3 rounded w-1/2 ${
|
|
5016
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `h-3 rounded w-1/2 ${b}` }, void 0, !1, {
|
|
4987
5017
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
4988
5018
|
lineNumber: 116,
|
|
4989
5019
|
columnNumber: 11
|
|
@@ -4999,15 +5029,15 @@ const xe = he(void 0), Te = () => {
|
|
|
4999
5029
|
columnNumber: 7
|
|
5000
5030
|
}, void 0);
|
|
5001
5031
|
}
|
|
5002
|
-
if (
|
|
5003
|
-
const
|
|
5032
|
+
if (r === "button-group") {
|
|
5033
|
+
const l = s === "sm" ? "h-8" : s === "lg" ? "h-12" : "h-10";
|
|
5004
5034
|
return /* @__PURE__ */ e.jsxDEV("div", { className: `flex space-x-4 ${i}`, children: [
|
|
5005
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `${
|
|
5035
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `${l} rounded w-20 ${b}` }, void 0, !1, {
|
|
5006
5036
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
5007
5037
|
lineNumber: 129,
|
|
5008
5038
|
columnNumber: 9
|
|
5009
5039
|
}, void 0),
|
|
5010
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `${
|
|
5040
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `${l} rounded w-24 ${b}` }, void 0, !1, {
|
|
5011
5041
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
5012
5042
|
lineNumber: 130,
|
|
5013
5043
|
columnNumber: 9
|
|
@@ -5018,26 +5048,26 @@ const xe = he(void 0), Te = () => {
|
|
|
5018
5048
|
columnNumber: 7
|
|
5019
5049
|
}, void 0);
|
|
5020
5050
|
}
|
|
5021
|
-
if (
|
|
5022
|
-
const
|
|
5051
|
+
if (r === "card") {
|
|
5052
|
+
const l = s === "sm" ? "p-4" : s === "lg" ? "p-8" : "p-6";
|
|
5023
5053
|
return /* @__PURE__ */ e.jsxDEV(
|
|
5024
5054
|
"div",
|
|
5025
5055
|
{
|
|
5026
|
-
className: `border border-border-default rounded-lg bg-surface ${
|
|
5027
|
-
children:
|
|
5056
|
+
className: `border border-border-default rounded-lg bg-surface ${l} space-y-4 ${i}`,
|
|
5057
|
+
children: u && /* @__PURE__ */ e.jsxDEV("div", { className: "animate-pulse space-y-4", children: [
|
|
5028
5058
|
/* @__PURE__ */ e.jsxDEV("div", { className: "flex items-center space-x-4", children: [
|
|
5029
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `rounded-full ${
|
|
5059
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `rounded-full ${b} h-16 w-16` }, void 0, !1, {
|
|
5030
5060
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
5031
5061
|
lineNumber: 147,
|
|
5032
5062
|
columnNumber: 15
|
|
5033
5063
|
}, void 0),
|
|
5034
5064
|
/* @__PURE__ */ e.jsxDEV("div", { className: "flex-1 space-y-3", children: [
|
|
5035
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `h-4 rounded w-3/4 ${
|
|
5065
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `h-4 rounded w-3/4 ${b}` }, void 0, !1, {
|
|
5036
5066
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
5037
5067
|
lineNumber: 149,
|
|
5038
5068
|
columnNumber: 17
|
|
5039
5069
|
}, void 0),
|
|
5040
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `h-3 rounded w-1/2 ${
|
|
5070
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `h-3 rounded w-1/2 ${b}` }, void 0, !1, {
|
|
5041
5071
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
5042
5072
|
lineNumber: 150,
|
|
5043
5073
|
columnNumber: 17
|
|
@@ -5053,17 +5083,17 @@ const xe = he(void 0), Te = () => {
|
|
|
5053
5083
|
columnNumber: 13
|
|
5054
5084
|
}, void 0),
|
|
5055
5085
|
/* @__PURE__ */ e.jsxDEV("div", { className: "space-y-3", children: [
|
|
5056
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `h-3 rounded ${
|
|
5086
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `h-3 rounded ${b}` }, void 0, !1, {
|
|
5057
5087
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
5058
5088
|
lineNumber: 156,
|
|
5059
5089
|
columnNumber: 15
|
|
5060
5090
|
}, void 0),
|
|
5061
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `h-3 rounded w-5/6 ${
|
|
5091
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `h-3 rounded w-5/6 ${b}` }, void 0, !1, {
|
|
5062
5092
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
5063
5093
|
lineNumber: 157,
|
|
5064
5094
|
columnNumber: 15
|
|
5065
5095
|
}, void 0),
|
|
5066
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `h-3 rounded w-4/6 ${
|
|
5096
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `h-3 rounded w-4/6 ${b}` }, void 0, !1, {
|
|
5067
5097
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
5068
5098
|
lineNumber: 158,
|
|
5069
5099
|
columnNumber: 15
|
|
@@ -5074,12 +5104,12 @@ const xe = he(void 0), Te = () => {
|
|
|
5074
5104
|
columnNumber: 13
|
|
5075
5105
|
}, void 0),
|
|
5076
5106
|
/* @__PURE__ */ e.jsxDEV("div", { className: "flex space-x-4 pt-4", children: [
|
|
5077
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `h-8 rounded w-20 ${
|
|
5107
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `h-8 rounded w-20 ${b}` }, void 0, !1, {
|
|
5078
5108
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
5079
5109
|
lineNumber: 163,
|
|
5080
5110
|
columnNumber: 15
|
|
5081
5111
|
}, void 0),
|
|
5082
|
-
/* @__PURE__ */ e.jsxDEV("div", { className: `h-8 rounded w-24 ${
|
|
5112
|
+
/* @__PURE__ */ e.jsxDEV("div", { className: `h-8 rounded w-24 ${b}` }, void 0, !1, {
|
|
5083
5113
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/Skeleton.tsx",
|
|
5084
5114
|
lineNumber: 164,
|
|
5085
5115
|
columnNumber: 15
|
|
@@ -5108,7 +5138,7 @@ const xe = he(void 0), Te = () => {
|
|
|
5108
5138
|
return /* @__PURE__ */ e.jsxDEV(
|
|
5109
5139
|
"div",
|
|
5110
5140
|
{
|
|
5111
|
-
className: `h-4 rounded ${
|
|
5141
|
+
className: `h-4 rounded ${b} w-full`,
|
|
5112
5142
|
style: h()
|
|
5113
5143
|
},
|
|
5114
5144
|
void 0,
|
|
@@ -5120,8 +5150,8 @@ const xe = he(void 0), Te = () => {
|
|
|
5120
5150
|
},
|
|
5121
5151
|
void 0
|
|
5122
5152
|
);
|
|
5123
|
-
},
|
|
5124
|
-
const
|
|
5153
|
+
}, rr = () => {
|
|
5154
|
+
const r = Fe();
|
|
5125
5155
|
return /* @__PURE__ */ e.jsxDEV("div", { className: "w-full max-w-xl md:max-w-3xl lg:max-w-4xl space-y-8 md:space-y-12", children: [
|
|
5126
5156
|
/* @__PURE__ */ e.jsxDEV("div", { className: "text-center", children: [
|
|
5127
5157
|
/* @__PURE__ */ e.jsxDEV("h2", { className: "text-2xl md:text-3xl lg:text-4xl font-bold text-primary mb-2", children: "User Feedback" }, void 0, !1, {
|
|
@@ -5147,7 +5177,7 @@ const xe = he(void 0), Te = () => {
|
|
|
5147
5177
|
}, void 0),
|
|
5148
5178
|
/* @__PURE__ */ e.jsxDEV("div", { className: "space-y-4", children: [
|
|
5149
5179
|
/* @__PURE__ */ e.jsxDEV(
|
|
5150
|
-
|
|
5180
|
+
me,
|
|
5151
5181
|
{
|
|
5152
5182
|
type: "success",
|
|
5153
5183
|
title: "Neural Link Established",
|
|
@@ -5166,7 +5196,7 @@ const xe = he(void 0), Te = () => {
|
|
|
5166
5196
|
void 0
|
|
5167
5197
|
),
|
|
5168
5198
|
/* @__PURE__ */ e.jsxDEV(
|
|
5169
|
-
|
|
5199
|
+
me,
|
|
5170
5200
|
{
|
|
5171
5201
|
type: "warning",
|
|
5172
5202
|
title: "Security Protocol Warning",
|
|
@@ -5185,7 +5215,7 @@ const xe = he(void 0), Te = () => {
|
|
|
5185
5215
|
void 0
|
|
5186
5216
|
),
|
|
5187
5217
|
/* @__PURE__ */ e.jsxDEV(
|
|
5188
|
-
|
|
5218
|
+
me,
|
|
5189
5219
|
{
|
|
5190
5220
|
type: "error",
|
|
5191
5221
|
title: "System Breach Detected",
|
|
@@ -5228,7 +5258,7 @@ const xe = he(void 0), Te = () => {
|
|
|
5228
5258
|
columnNumber: 15
|
|
5229
5259
|
}, void 0),
|
|
5230
5260
|
/* @__PURE__ */ e.jsxDEV("span", { className: "text-accent font-mono text-sm", children: [
|
|
5231
|
-
|
|
5261
|
+
r,
|
|
5232
5262
|
"%"
|
|
5233
5263
|
] }, void 0, !0, {
|
|
5234
5264
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/FeedbackTab.tsx",
|
|
@@ -5240,7 +5270,7 @@ const xe = he(void 0), Te = () => {
|
|
|
5240
5270
|
lineNumber: 62,
|
|
5241
5271
|
columnNumber: 13
|
|
5242
5272
|
}, void 0),
|
|
5243
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
5273
|
+
/* @__PURE__ */ e.jsxDEV(We, { progress: r, className: "w-full" }, void 0, !1, {
|
|
5244
5274
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/FeedbackTab.tsx",
|
|
5245
5275
|
lineNumber: 66,
|
|
5246
5276
|
columnNumber: 13
|
|
@@ -5257,13 +5287,13 @@ const xe = he(void 0), Te = () => {
|
|
|
5257
5287
|
}, void 0),
|
|
5258
5288
|
/* @__PURE__ */ e.jsxDEV("div", { className: "flex flex-col items-center space-y-4", children: [
|
|
5259
5289
|
/* @__PURE__ */ e.jsxDEV(
|
|
5260
|
-
|
|
5290
|
+
Be,
|
|
5261
5291
|
{
|
|
5262
|
-
progress:
|
|
5263
|
-
radius:
|
|
5292
|
+
progress: r,
|
|
5293
|
+
radius: ve.RADIUS,
|
|
5264
5294
|
className: "w-20 h-20",
|
|
5265
5295
|
children: /* @__PURE__ */ e.jsxDEV("span", { className: "text-accent font-mono text-sm", children: [
|
|
5266
|
-
|
|
5296
|
+
r,
|
|
5267
5297
|
"%"
|
|
5268
5298
|
] }, void 0, !0, {
|
|
5269
5299
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/FeedbackTab.tsx",
|
|
@@ -5302,8 +5332,8 @@ const xe = he(void 0), Te = () => {
|
|
|
5302
5332
|
columnNumber: 11
|
|
5303
5333
|
}, void 0),
|
|
5304
5334
|
/* @__PURE__ */ e.jsxDEV("div", { className: "flex flex-col items-center space-y-4", children: [
|
|
5305
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
5306
|
-
|
|
5335
|
+
/* @__PURE__ */ e.jsxDEV(He, { progress: r, className: "w-28 h-28", children: /* @__PURE__ */ e.jsxDEV("span", { className: "text-accent font-mono text-sm", children: [
|
|
5336
|
+
r,
|
|
5307
5337
|
"%"
|
|
5308
5338
|
] }, void 0, !0, {
|
|
5309
5339
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/FeedbackTab.tsx",
|
|
@@ -5351,7 +5381,7 @@ const xe = he(void 0), Te = () => {
|
|
|
5351
5381
|
lineNumber: 103,
|
|
5352
5382
|
columnNumber: 9
|
|
5353
5383
|
}, void 0),
|
|
5354
|
-
/* @__PURE__ */ e.jsxDEV(
|
|
5384
|
+
/* @__PURE__ */ e.jsxDEV(Ge, { variant: "card", size: "md" }, void 0, !1, {
|
|
5355
5385
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/tabs/FeedbackTab.tsx",
|
|
5356
5386
|
lineNumber: 106,
|
|
5357
5387
|
columnNumber: 9
|
|
@@ -5366,34 +5396,235 @@ const xe = he(void 0), Te = () => {
|
|
|
5366
5396
|
lineNumber: 14,
|
|
5367
5397
|
columnNumber: 5
|
|
5368
5398
|
}, void 0);
|
|
5369
|
-
},
|
|
5370
|
-
tabs:
|
|
5371
|
-
activeTab:
|
|
5399
|
+
}, Ye = ({
|
|
5400
|
+
tabs: r,
|
|
5401
|
+
activeTab: s,
|
|
5402
|
+
onTabChange: m,
|
|
5403
|
+
sizeClasses: o,
|
|
5404
|
+
containerClassName: i = "",
|
|
5405
|
+
anchorClassName: d = "",
|
|
5406
|
+
menuClassName: u = "",
|
|
5407
|
+
menuItemClassName: c = "",
|
|
5408
|
+
dropdownLabel: b,
|
|
5409
|
+
anchorIcon: h,
|
|
5410
|
+
showAnchorLabel: l = !0,
|
|
5411
|
+
anchorAriaLabel: N,
|
|
5412
|
+
closeOnSelect: f = !0
|
|
5413
|
+
}) => {
|
|
5414
|
+
const [p, U] = V(!1), [I, y] = V(!1), [E, x] = V(!1), [k, D] = V(!1), j = B(null), S = B(null);
|
|
5415
|
+
J(() => {
|
|
5416
|
+
if (!p) return;
|
|
5417
|
+
const v = (M) => {
|
|
5418
|
+
j.current && !j.current.contains(M.target) && (x(!0), setTimeout(() => {
|
|
5419
|
+
U(!1), x(!1);
|
|
5420
|
+
}, 180));
|
|
5421
|
+
};
|
|
5422
|
+
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
5423
|
+
}, [p]), J(() => {
|
|
5424
|
+
if (!p) return;
|
|
5425
|
+
const v = S.current;
|
|
5426
|
+
if (!v) return;
|
|
5427
|
+
const M = v.getBoundingClientRect();
|
|
5428
|
+
D(M.right > window.innerWidth);
|
|
5429
|
+
}, [p]);
|
|
5430
|
+
const O = () => {
|
|
5431
|
+
p ? (x(!0), setTimeout(() => {
|
|
5432
|
+
U(!1), x(!1);
|
|
5433
|
+
}, 180)) : (y(!0), U(!0), setTimeout(() => y(!1), 30));
|
|
5434
|
+
};
|
|
5435
|
+
return /* @__PURE__ */ e.jsxDEV("div", { className: `${i}`, children: /* @__PURE__ */ e.jsxDEV("div", { ref: j, className: "relative inline-block", children: [
|
|
5436
|
+
/* @__PURE__ */ e.jsxDEV(
|
|
5437
|
+
"button",
|
|
5438
|
+
{
|
|
5439
|
+
onClick: O,
|
|
5440
|
+
className: `inline-flex items-center gap-2 ${o} 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}`,
|
|
5441
|
+
"aria-haspopup": "menu",
|
|
5442
|
+
"aria-expanded": p,
|
|
5443
|
+
"aria-label": l ? void 0 : N ?? (typeof b == "string" ? b : "Open tabs"),
|
|
5444
|
+
children: [
|
|
5445
|
+
h ?? /* @__PURE__ */ e.jsxDEV("svg", { className: "w-5 h-5", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: [
|
|
5446
|
+
/* @__PURE__ */ e.jsxDEV("rect", { x: "3", y: "5", width: "14", height: "2", rx: "1" }, void 0, !1, {
|
|
5447
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5448
|
+
lineNumber: 102,
|
|
5449
|
+
columnNumber: 15
|
|
5450
|
+
}, void 0),
|
|
5451
|
+
/* @__PURE__ */ e.jsxDEV("rect", { x: "3", y: "9", width: "14", height: "2", rx: "1" }, void 0, !1, {
|
|
5452
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5453
|
+
lineNumber: 103,
|
|
5454
|
+
columnNumber: 15
|
|
5455
|
+
}, void 0),
|
|
5456
|
+
/* @__PURE__ */ e.jsxDEV("rect", { x: "3", y: "13", width: "14", height: "2", rx: "1" }, void 0, !1, {
|
|
5457
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5458
|
+
lineNumber: 104,
|
|
5459
|
+
columnNumber: 15
|
|
5460
|
+
}, void 0)
|
|
5461
|
+
] }, void 0, !0, {
|
|
5462
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5463
|
+
lineNumber: 101,
|
|
5464
|
+
columnNumber: 13
|
|
5465
|
+
}, void 0),
|
|
5466
|
+
l && /* @__PURE__ */ e.jsxDEV("span", { children: b ?? s }, void 0, !1, {
|
|
5467
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5468
|
+
lineNumber: 108,
|
|
5469
|
+
columnNumber: 13
|
|
5470
|
+
}, void 0)
|
|
5471
|
+
]
|
|
5472
|
+
},
|
|
5473
|
+
void 0,
|
|
5474
|
+
!0,
|
|
5475
|
+
{
|
|
5476
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5477
|
+
lineNumber: 93,
|
|
5478
|
+
columnNumber: 9
|
|
5479
|
+
},
|
|
5480
|
+
void 0
|
|
5481
|
+
),
|
|
5482
|
+
(p || E) && /* @__PURE__ */ e.jsxDEV(
|
|
5483
|
+
"div",
|
|
5484
|
+
{
|
|
5485
|
+
ref: S,
|
|
5486
|
+
"aria-hidden": !p,
|
|
5487
|
+
className: `absolute ${k ? "right-0" : "left-0"} mt-2 min-w-40 z-50 bg-surface border-2 border-border-default rounded-lg shadow-secondary overflow-hidden ${u}
|
|
5488
|
+
transition-transform transition-opacity duration-200 ease-[cubic-bezier(.2,0,0,1)] transform-gpu origin-top will-change-transform will-change-opacity ${I || E ? "opacity-0 scale-y-0 pointer-events-none" : "opacity-100 scale-y-100 pointer-events-auto"}`,
|
|
5489
|
+
children: /* @__PURE__ */ e.jsxDEV("div", { className: "py-1", children: r.map((v) => /* @__PURE__ */ e.jsxDEV(
|
|
5490
|
+
"button",
|
|
5491
|
+
{
|
|
5492
|
+
onClick: () => {
|
|
5493
|
+
m(v), f && (x(!0), setTimeout(() => {
|
|
5494
|
+
U(!1), x(!1);
|
|
5495
|
+
}, 180));
|
|
5496
|
+
},
|
|
5497
|
+
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 ${s === v ? "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"} ${c}`,
|
|
5498
|
+
children: /* @__PURE__ */ e.jsxDEV("span", { children: v }, void 0, !1, {
|
|
5499
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5500
|
+
lineNumber: 145,
|
|
5501
|
+
columnNumber: 19
|
|
5502
|
+
}, void 0)
|
|
5503
|
+
},
|
|
5504
|
+
v,
|
|
5505
|
+
!1,
|
|
5506
|
+
{
|
|
5507
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5508
|
+
lineNumber: 127,
|
|
5509
|
+
columnNumber: 17
|
|
5510
|
+
},
|
|
5511
|
+
void 0
|
|
5512
|
+
)) }, void 0, !1, {
|
|
5513
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5514
|
+
lineNumber: 125,
|
|
5515
|
+
columnNumber: 13
|
|
5516
|
+
}, void 0)
|
|
5517
|
+
},
|
|
5518
|
+
void 0,
|
|
5519
|
+
!1,
|
|
5520
|
+
{
|
|
5521
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5522
|
+
lineNumber: 113,
|
|
5523
|
+
columnNumber: 11
|
|
5524
|
+
},
|
|
5525
|
+
void 0
|
|
5526
|
+
)
|
|
5527
|
+
] }, void 0, !0, {
|
|
5528
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5529
|
+
lineNumber: 92,
|
|
5530
|
+
columnNumber: 7
|
|
5531
|
+
}, void 0) }, void 0, !1, {
|
|
5532
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5533
|
+
lineNumber: 91,
|
|
5534
|
+
columnNumber: 5
|
|
5535
|
+
}, void 0);
|
|
5536
|
+
}, sr = ({
|
|
5537
|
+
tabs: r,
|
|
5538
|
+
activeTab: s,
|
|
5372
5539
|
onTabChange: m,
|
|
5373
|
-
size:
|
|
5540
|
+
size: o = "md",
|
|
5541
|
+
mode: i = "scroll",
|
|
5542
|
+
containerClassName: d = "",
|
|
5543
|
+
tabsClassName: u = "",
|
|
5544
|
+
dropdownLabel: c,
|
|
5545
|
+
anchorIcon: b,
|
|
5546
|
+
showAnchorLabel: h = !0,
|
|
5547
|
+
anchorAriaLabel: l,
|
|
5548
|
+
closeOnSelect: N = !0,
|
|
5549
|
+
anchorClassName: f = "",
|
|
5550
|
+
menuClassName: p = "",
|
|
5551
|
+
menuItemClassName: U = ""
|
|
5374
5552
|
}) => {
|
|
5375
|
-
const
|
|
5376
|
-
|
|
5553
|
+
const y = ((D) => q(D, Q.tabNavigation))(o), E = Te(i, "scroll"), x = () => {
|
|
5554
|
+
switch (E) {
|
|
5555
|
+
case "scroll":
|
|
5556
|
+
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";
|
|
5557
|
+
case "wrap":
|
|
5558
|
+
return "flex flex-wrap gap-2";
|
|
5559
|
+
case "dropdown":
|
|
5560
|
+
case "collapsible":
|
|
5561
|
+
return "flex space-x-2";
|
|
5562
|
+
// Will be handled by specific implementations
|
|
5563
|
+
default:
|
|
5564
|
+
return "flex space-x-2";
|
|
5565
|
+
}
|
|
5566
|
+
}, k = /* @__PURE__ */ e.jsxDEV(e.Fragment, { children: r.map((D) => /* @__PURE__ */ e.jsxDEV(
|
|
5377
5567
|
"button",
|
|
5378
5568
|
{
|
|
5379
|
-
onClick: () => m(
|
|
5569
|
+
onClick: () => m(D),
|
|
5380
5570
|
className: `
|
|
5381
|
-
${
|
|
5382
|
-
|
|
5571
|
+
${y} font-bold transition-colors duration-200 rounded-t-lg cursor-pointer whitespace-nowrap flex-shrink-0 relative
|
|
5572
|
+
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
|
|
5573
|
+
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
|
|
5574
|
+
${s === D ? "text-secondary after:bg-linear-(--gradient-accent) after:shadow-lg-accent after:scale-x-100" : "text-muted hover:text-secondary hover:before:opacity-70"}
|
|
5575
|
+
${u}
|
|
5383
5576
|
`,
|
|
5384
|
-
children:
|
|
5577
|
+
children: D
|
|
5385
5578
|
},
|
|
5386
|
-
|
|
5579
|
+
D,
|
|
5387
5580
|
!1,
|
|
5388
5581
|
{
|
|
5389
5582
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5390
|
-
lineNumber:
|
|
5583
|
+
lineNumber: 217,
|
|
5391
5584
|
columnNumber: 9
|
|
5392
5585
|
},
|
|
5393
5586
|
void 0
|
|
5394
5587
|
)) }, void 0, !1, {
|
|
5395
5588
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5396
|
-
lineNumber:
|
|
5589
|
+
lineNumber: 215,
|
|
5590
|
+
columnNumber: 5
|
|
5591
|
+
}, void 0);
|
|
5592
|
+
return E === "dropdown" ? /* @__PURE__ */ e.jsxDEV(
|
|
5593
|
+
Ye,
|
|
5594
|
+
{
|
|
5595
|
+
tabs: r,
|
|
5596
|
+
activeTab: s,
|
|
5597
|
+
onTabChange: m,
|
|
5598
|
+
sizeClasses: y,
|
|
5599
|
+
containerClassName: d,
|
|
5600
|
+
anchorClassName: f,
|
|
5601
|
+
menuClassName: p,
|
|
5602
|
+
menuItemClassName: U,
|
|
5603
|
+
dropdownLabel: c,
|
|
5604
|
+
anchorIcon: b,
|
|
5605
|
+
showAnchorLabel: h,
|
|
5606
|
+
anchorAriaLabel: l,
|
|
5607
|
+
closeOnSelect: N
|
|
5608
|
+
},
|
|
5609
|
+
void 0,
|
|
5610
|
+
!1,
|
|
5611
|
+
{
|
|
5612
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5613
|
+
lineNumber: 240,
|
|
5614
|
+
columnNumber: 7
|
|
5615
|
+
},
|
|
5616
|
+
void 0
|
|
5617
|
+
) : E === "scroll" ? /* @__PURE__ */ e.jsxDEV("div", { className: `${x()} ${d}`, children: /* @__PURE__ */ e.jsxDEV("div", { className: "w-max mx-auto flex space-x-2", children: k }, void 0, !1, {
|
|
5618
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5619
|
+
lineNumber: 263,
|
|
5620
|
+
columnNumber: 9
|
|
5621
|
+
}, void 0) }, void 0, !1, {
|
|
5622
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5623
|
+
lineNumber: 262,
|
|
5624
|
+
columnNumber: 7
|
|
5625
|
+
}, void 0) : /* @__PURE__ */ e.jsxDEV("div", { className: `${x()} ${d}`, children: k }, void 0, !1, {
|
|
5626
|
+
fileName: "/Users/patrick.yang/Projects/CyberUI/src/components/TabNavigation.tsx",
|
|
5627
|
+
lineNumber: 269,
|
|
5397
5628
|
columnNumber: 5
|
|
5398
5629
|
}, void 0);
|
|
5399
5630
|
}, re = {
|
|
@@ -5404,34 +5635,34 @@ const xe = he(void 0), Te = () => {
|
|
|
5404
5635
|
DISTANCE_THRESHOLD: 100,
|
|
5405
5636
|
MAX_ANIMATION_SPEED: 5,
|
|
5406
5637
|
MIN_GLOW_DURATION: 150
|
|
5407
|
-
},
|
|
5638
|
+
}, tr = (r = {}) => {
|
|
5408
5639
|
const {
|
|
5409
|
-
glowColor:
|
|
5640
|
+
glowColor: s = "primary",
|
|
5410
5641
|
sensitivity: m = 2,
|
|
5411
|
-
disabled:
|
|
5642
|
+
disabled: o = !1,
|
|
5412
5643
|
pageLevel: i,
|
|
5413
|
-
variant:
|
|
5414
|
-
className:
|
|
5415
|
-
} =
|
|
5644
|
+
variant: d = "default",
|
|
5645
|
+
className: u = ""
|
|
5646
|
+
} = r, c = B(null), b = B(null), h = B(Date.now()), l = B(0), N = B(void 0), f = B([]), p = B(void 0), [U, I] = V({
|
|
5416
5647
|
isScrolling: !1,
|
|
5417
5648
|
direction: null,
|
|
5418
5649
|
velocity: 0,
|
|
5419
5650
|
position: 0,
|
|
5420
5651
|
scrollDistance: 0
|
|
5421
|
-
}), [y,
|
|
5422
|
-
|
|
5652
|
+
}), [y, E] = V(!1), [x, k] = V(() => window.innerWidth >= re.MOBILE_BREAKPOINT), D = B(0), [j, S] = V(i ?? !1);
|
|
5653
|
+
J(() => {
|
|
5423
5654
|
if (i !== void 0)
|
|
5424
|
-
|
|
5655
|
+
S(i);
|
|
5425
5656
|
else {
|
|
5426
|
-
const
|
|
5427
|
-
const
|
|
5428
|
-
|
|
5657
|
+
const n = setTimeout(() => {
|
|
5658
|
+
const a = c.current !== null;
|
|
5659
|
+
S(!a);
|
|
5429
5660
|
}, 0);
|
|
5430
|
-
return () => clearTimeout(
|
|
5661
|
+
return () => clearTimeout(n);
|
|
5431
5662
|
}
|
|
5432
5663
|
}, [i]);
|
|
5433
|
-
const
|
|
5434
|
-
switch (
|
|
5664
|
+
const O = w((n) => {
|
|
5665
|
+
switch (n) {
|
|
5435
5666
|
case "transparent":
|
|
5436
5667
|
return {
|
|
5437
5668
|
background: "transparent",
|
|
@@ -5455,255 +5686,260 @@ const xe = he(void 0), Te = () => {
|
|
|
5455
5686
|
boxShadow: "0 0 10px rgba(255, 0, 93, 0.3), inset 0 0 10px rgba(255, 0, 93, 0.1)"
|
|
5456
5687
|
};
|
|
5457
5688
|
}
|
|
5458
|
-
}, []),
|
|
5459
|
-
const
|
|
5689
|
+
}, []), v = w(() => {
|
|
5690
|
+
const n = window.innerWidth < re.MOBILE_BREAKPOINT;
|
|
5460
5691
|
return {
|
|
5461
|
-
isMobile:
|
|
5462
|
-
scrollbarWidth:
|
|
5463
|
-
arrowSize:
|
|
5464
|
-
lineSize:
|
|
5465
|
-
arrowGap:
|
|
5692
|
+
isMobile: n,
|
|
5693
|
+
scrollbarWidth: n ? 12 : 16,
|
|
5694
|
+
arrowSize: n ? 10 : 14,
|
|
5695
|
+
lineSize: n ? 8 : 12,
|
|
5696
|
+
arrowGap: n ? 2 : 4
|
|
5466
5697
|
};
|
|
5467
|
-
}, []),
|
|
5468
|
-
const
|
|
5469
|
-
return Math.floor(
|
|
5470
|
-
}, []),
|
|
5471
|
-
if (
|
|
5698
|
+
}, []), M = w((n, a, C, g) => {
|
|
5699
|
+
const P = (g + C) * 2, _ = C * 4, T = (n - P - _) / 2;
|
|
5700
|
+
return Math.floor(T / (a + C));
|
|
5701
|
+
}, []), z = w((n) => {
|
|
5702
|
+
if (j) {
|
|
5472
5703
|
if (!document.querySelector("#cyber-page-scrollbar-styles")) {
|
|
5473
|
-
const
|
|
5474
|
-
|
|
5704
|
+
const a = document.createElement("style");
|
|
5705
|
+
a.id = "cyber-page-scrollbar-styles", a.textContent = `
|
|
5475
5706
|
html::-webkit-scrollbar { display: none; }
|
|
5476
5707
|
html { scrollbar-width: none; -ms-overflow-style: none; }
|
|
5477
|
-
`, document.head.appendChild(
|
|
5708
|
+
`, document.head.appendChild(a);
|
|
5478
5709
|
}
|
|
5479
|
-
} else if (
|
|
5480
|
-
if (
|
|
5481
|
-
const
|
|
5482
|
-
|
|
5710
|
+
} else if (n) {
|
|
5711
|
+
if (n.style.scrollbarWidth = "none", n.style.msOverflowStyle = "none", !document.querySelector("#cyber-scrollbar-styles")) {
|
|
5712
|
+
const a = document.createElement("style");
|
|
5713
|
+
a.id = "cyber-scrollbar-styles", a.textContent = `
|
|
5483
5714
|
.cyber-scrollbar-container::-webkit-scrollbar { display: none; }
|
|
5484
|
-
`, document.head.appendChild(
|
|
5715
|
+
`, document.head.appendChild(a);
|
|
5485
5716
|
}
|
|
5486
|
-
|
|
5717
|
+
n.classList.add("cyber-scrollbar-container");
|
|
5487
5718
|
}
|
|
5488
|
-
}, [
|
|
5489
|
-
const
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5719
|
+
}, [j]), H = w((n, a, C, g) => {
|
|
5720
|
+
const P = document.createElement("div"), _ = n === "arrow";
|
|
5721
|
+
_ && a ? (P.className = `cyber-arrow cyber-arrow-${a} cyber-arrow-${C}`, P.innerHTML = a === "up" ? "▲" : "▼") : (P.className = `cyber-line cyber-line-${C}`, P.innerHTML = "=");
|
|
5722
|
+
const A = g.isMobile ? "none" : `drop-shadow(0 0 6px var(--color-${s}))
|
|
5723
|
+
drop-shadow(0 0 12px var(--color-${s}))
|
|
5724
|
+
drop-shadow(0 0 18px var(--color-${s}))`;
|
|
5725
|
+
return P.style.cssText = `
|
|
5726
|
+
font-size: ${_ ? g.arrowSize : g.lineSize}px;
|
|
5727
|
+
color: var(--color-${s});
|
|
5493
5728
|
opacity: 0;
|
|
5494
5729
|
transition: all 0.2s ease;
|
|
5495
|
-
filter:
|
|
5496
|
-
drop-shadow(0 0 6px var(--color-${t}))
|
|
5497
|
-
drop-shadow(0 0 12px var(--color-${t}))
|
|
5498
|
-
drop-shadow(0 0 18px var(--color-${t}));
|
|
5730
|
+
filter: ${A};
|
|
5499
5731
|
line-height: 1;
|
|
5500
5732
|
font-weight: bold;
|
|
5501
|
-
`,
|
|
5502
|
-
}, [
|
|
5503
|
-
if (
|
|
5733
|
+
`, P;
|
|
5734
|
+
}, [s]), F = w(() => {
|
|
5735
|
+
if (j)
|
|
5504
5736
|
return {
|
|
5505
5737
|
height: window.innerHeight,
|
|
5506
5738
|
top: 0,
|
|
5507
5739
|
right: 0
|
|
5508
5740
|
};
|
|
5509
5741
|
{
|
|
5510
|
-
const
|
|
5742
|
+
const a = c.current.getBoundingClientRect();
|
|
5511
5743
|
return {
|
|
5512
|
-
height:
|
|
5513
|
-
top:
|
|
5514
|
-
right: window.innerWidth -
|
|
5744
|
+
height: a.height,
|
|
5745
|
+
top: a.top,
|
|
5746
|
+
right: window.innerWidth - a.right
|
|
5515
5747
|
};
|
|
5516
5748
|
}
|
|
5517
|
-
}, [
|
|
5518
|
-
if (
|
|
5519
|
-
const
|
|
5520
|
-
|
|
5521
|
-
const
|
|
5522
|
-
|
|
5523
|
-
const
|
|
5524
|
-
|
|
5749
|
+
}, [j]), ee = w(() => {
|
|
5750
|
+
if (o || !j && !c.current || (b.current && b.current.remove(), !(j ? document.body.scrollHeight > window.innerHeight : c.current.scrollHeight > c.current.clientHeight))) return;
|
|
5751
|
+
const a = v(), C = F(), g = M(C.height, a.arrowSize, a.arrowGap, a.lineSize);
|
|
5752
|
+
z(j ? void 0 : c.current || void 0);
|
|
5753
|
+
const P = document.createElement("div");
|
|
5754
|
+
P.className = `cyber-scrollbar ${u}`.trim();
|
|
5755
|
+
const A = a.isMobile ? "transparent" : d, T = O(A);
|
|
5756
|
+
P.style.cssText = `
|
|
5525
5757
|
position: fixed;
|
|
5526
|
-
top: ${
|
|
5527
|
-
right: ${
|
|
5528
|
-
width: ${
|
|
5529
|
-
height: ${
|
|
5758
|
+
top: ${C.top}px;
|
|
5759
|
+
right: ${C.right}px;
|
|
5760
|
+
width: ${a.scrollbarWidth}px;
|
|
5761
|
+
height: ${C.height}px;
|
|
5530
5762
|
pointer-events: none;
|
|
5531
5763
|
z-index: 9999;
|
|
5532
|
-
display: ${
|
|
5764
|
+
display: ${x ? "flex" : "none"};
|
|
5533
5765
|
flex-direction: column;
|
|
5534
5766
|
align-items: center;
|
|
5535
5767
|
justify-content: center;
|
|
5536
|
-
gap: ${
|
|
5537
|
-
background: ${
|
|
5538
|
-
backdrop-filter: ${
|
|
5539
|
-
border-radius: ${
|
|
5540
|
-
border: ${
|
|
5541
|
-
box-shadow: ${
|
|
5768
|
+
gap: ${a.arrowGap}px;
|
|
5769
|
+
background: ${T.background};
|
|
5770
|
+
backdrop-filter: ${T.backdropFilter};
|
|
5771
|
+
border-radius: ${j ? "4px 0 0 4px" : "4px"};
|
|
5772
|
+
border: ${T.border};
|
|
5773
|
+
box-shadow: ${T.boxShadow};
|
|
5542
5774
|
`;
|
|
5543
|
-
for (let
|
|
5544
|
-
|
|
5545
|
-
for (let
|
|
5546
|
-
|
|
5547
|
-
for (let
|
|
5548
|
-
|
|
5549
|
-
document.body.appendChild(
|
|
5550
|
-
const
|
|
5551
|
-
const
|
|
5552
|
-
if (
|
|
5553
|
-
const
|
|
5554
|
-
|
|
5775
|
+
for (let R = 0; R < g; R++)
|
|
5776
|
+
P.appendChild(H("arrow", "up", R, a));
|
|
5777
|
+
for (let R = 0; R < 2; R++)
|
|
5778
|
+
P.appendChild(H("line", void 0, R, a));
|
|
5779
|
+
for (let R = 0; R < g; R++)
|
|
5780
|
+
P.appendChild(H("arrow", "down", R, a));
|
|
5781
|
+
document.body.appendChild(P), b.current = P;
|
|
5782
|
+
const L = j ? void 0 : () => {
|
|
5783
|
+
const R = c.current;
|
|
5784
|
+
if (R) {
|
|
5785
|
+
const te = R.getBoundingClientRect();
|
|
5786
|
+
P.style.top = `${te.top}px`, P.style.right = `${window.innerWidth - te.right}px`, P.style.height = `${te.height}px`;
|
|
5555
5787
|
}
|
|
5556
5788
|
};
|
|
5557
|
-
return
|
|
5558
|
-
|
|
5789
|
+
return L && (window.addEventListener("resize", L), window.addEventListener("scroll", L)), () => {
|
|
5790
|
+
P.remove(), !j && c.current && c.current.classList.remove("cyber-scrollbar-container"), L && (window.removeEventListener("resize", L), window.removeEventListener("scroll", L));
|
|
5559
5791
|
};
|
|
5560
|
-
}, [
|
|
5561
|
-
const
|
|
5562
|
-
return
|
|
5563
|
-
}, []),
|
|
5564
|
-
const
|
|
5565
|
-
(
|
|
5566
|
-
),
|
|
5567
|
-
return
|
|
5568
|
-
}, []),
|
|
5569
|
-
const
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
}),
|
|
5573
|
-
const
|
|
5574
|
-
|
|
5575
|
-
const
|
|
5576
|
-
|
|
5577
|
-
},
|
|
5578
|
-
|
|
5579
|
-
},
|
|
5580
|
-
|
|
5792
|
+
}, [o, j, x, z, F, H, v, M, O, d, u]), Z = w((n, a) => {
|
|
5793
|
+
const C = Math.max(1, Math.min(3, Math.ceil(n * 0.8))), g = Math.floor(a / re.DISTANCE_THRESHOLD);
|
|
5794
|
+
return C + g;
|
|
5795
|
+
}, []), Y = w((n, a, C) => {
|
|
5796
|
+
const g = Array.from(n).filter(
|
|
5797
|
+
(_) => _.classList.contains(`cyber-arrow-${a}`)
|
|
5798
|
+
), P = Math.min(C, g.length);
|
|
5799
|
+
return a === "up" ? g.slice(-P) : g.slice(0, P);
|
|
5800
|
+
}, []), W = w((n, a, C) => {
|
|
5801
|
+
const g = Math.min(a * m, re.MAX_ANIMATION_SPEED), P = window.innerWidth < re.MOBILE_BREAKPOINT, _ = Math.max(300 / g, re.MIN_GLOW_DURATION) * (P ? 1.5 : 1), A = Math.max(40, 80 / g) * (P ? 1.25 : 1), T = C === "up" ? [...n].reverse() : n;
|
|
5802
|
+
T.forEach((L) => {
|
|
5803
|
+
L.style.opacity = "0.3";
|
|
5804
|
+
}), T.forEach((L, R) => {
|
|
5805
|
+
const te = R * A, he = setTimeout(() => {
|
|
5806
|
+
L.style.opacity = "1";
|
|
5807
|
+
const je = setTimeout(() => {
|
|
5808
|
+
L.style.opacity = "0.3";
|
|
5809
|
+
}, _);
|
|
5810
|
+
f.current.push(je);
|
|
5811
|
+
}, te);
|
|
5812
|
+
f.current.push(he);
|
|
5581
5813
|
});
|
|
5582
|
-
}, [m]),
|
|
5583
|
-
if (!
|
|
5584
|
-
const { isScrolling:
|
|
5585
|
-
if (
|
|
5586
|
-
|
|
5587
|
-
|
|
5814
|
+
}, [m]), K = w(() => {
|
|
5815
|
+
if (!b.current) return;
|
|
5816
|
+
const { isScrolling: n, direction: a, velocity: C, scrollDistance: g } = U, P = b.current.querySelectorAll(".cyber-arrow"), _ = b.current.querySelectorAll(".cyber-line");
|
|
5817
|
+
if (n && a) {
|
|
5818
|
+
_.forEach((T) => {
|
|
5819
|
+
T.style.opacity = "0";
|
|
5588
5820
|
});
|
|
5589
|
-
const
|
|
5590
|
-
if (
|
|
5591
|
-
|
|
5592
|
-
|
|
5821
|
+
const A = Z(C, g);
|
|
5822
|
+
if (A !== D.current) {
|
|
5823
|
+
f.current.forEach((L) => clearTimeout(L)), f.current = [], P.forEach((L) => {
|
|
5824
|
+
L.style.opacity = "0";
|
|
5593
5825
|
});
|
|
5594
|
-
const
|
|
5595
|
-
|
|
5826
|
+
const T = Y(Array.from(P), a, A);
|
|
5827
|
+
W(T, C, a), D.current = A;
|
|
5596
5828
|
}
|
|
5597
5829
|
} else
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
}), y &&
|
|
5601
|
-
|
|
5830
|
+
f.current.forEach((A) => clearTimeout(A)), f.current = [], D.current = 0, P.forEach((A) => {
|
|
5831
|
+
A.style.opacity = "0";
|
|
5832
|
+
}), y && _.forEach((A) => {
|
|
5833
|
+
A.style.opacity = "0.6";
|
|
5602
5834
|
});
|
|
5603
|
-
}, [U, y,
|
|
5604
|
-
if (
|
|
5605
|
-
const
|
|
5835
|
+
}, [U, y, W, Z, Y]), $ = B(null), X = w(() => {
|
|
5836
|
+
if (o || !j && !c.current) return;
|
|
5837
|
+
const n = Date.now(), a = j ? {
|
|
5606
5838
|
currentScrollTop: window.scrollY,
|
|
5607
5839
|
scrollHeight: document.body.scrollHeight,
|
|
5608
5840
|
clientHeight: window.innerHeight
|
|
5609
5841
|
} : {
|
|
5610
|
-
currentScrollTop:
|
|
5611
|
-
scrollHeight:
|
|
5612
|
-
clientHeight:
|
|
5613
|
-
},
|
|
5614
|
-
y ||
|
|
5615
|
-
const
|
|
5616
|
-
|
|
5842
|
+
currentScrollTop: c.current.scrollTop,
|
|
5843
|
+
scrollHeight: c.current.scrollHeight,
|
|
5844
|
+
clientHeight: c.current.clientHeight
|
|
5845
|
+
}, C = n - h.current, g = a.currentScrollTop - l.current, _ = Math.abs(g) / Math.max(C, 1) * re.VELOCITY_MULTIPLIER, A = g > 0 ? "down" : g < 0 ? "up" : null, T = a.currentScrollTop / (a.scrollHeight - a.clientHeight);
|
|
5846
|
+
y || E(!0);
|
|
5847
|
+
const L = window.innerWidth < re.MOBILE_BREAKPOINT;
|
|
5848
|
+
L && !x && k(!0), I((R) => ({
|
|
5617
5849
|
isScrolling: !0,
|
|
5618
|
-
direction:
|
|
5619
|
-
velocity:
|
|
5620
|
-
position:
|
|
5621
|
-
scrollDistance:
|
|
5622
|
-
})), N.current && clearTimeout(N.current),
|
|
5623
|
-
|
|
5624
|
-
...
|
|
5850
|
+
direction: A,
|
|
5851
|
+
velocity: _,
|
|
5852
|
+
position: T,
|
|
5853
|
+
scrollDistance: R.direction !== A ? Math.abs(g) : R.scrollDistance + Math.abs(g)
|
|
5854
|
+
})), N.current && clearTimeout(N.current), p.current && clearTimeout(p.current), N.current = setTimeout(() => {
|
|
5855
|
+
f.current.forEach((R) => clearTimeout(R)), f.current = [], I((R) => ({
|
|
5856
|
+
...R,
|
|
5625
5857
|
isScrolling: !1,
|
|
5626
5858
|
velocity: 0,
|
|
5627
5859
|
scrollDistance: 0
|
|
5628
|
-
})),
|
|
5629
|
-
|
|
5860
|
+
})), L && (p.current = setTimeout(() => {
|
|
5861
|
+
k(!1);
|
|
5630
5862
|
}, re.MOBILE_HIDE_DELAY));
|
|
5631
|
-
}, re.STABLE_TIMEOUT), h.current =
|
|
5632
|
-
}, [
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5863
|
+
}, re.STABLE_TIMEOUT), h.current = n, l.current = a.currentScrollTop;
|
|
5864
|
+
}, [o, j, y, x]), t = w(() => {
|
|
5865
|
+
$.current === null && ($.current = requestAnimationFrame(() => {
|
|
5866
|
+
$.current = null, X();
|
|
5867
|
+
}));
|
|
5868
|
+
}, [X]);
|
|
5869
|
+
return J(() => {
|
|
5870
|
+
if (o || !j && !c.current) return;
|
|
5871
|
+
const n = ee(), a = j ? window : c.current;
|
|
5872
|
+
return a.addEventListener("scroll", t, { passive: !0 }), () => {
|
|
5873
|
+
a.removeEventListener("scroll", t), N.current && clearTimeout(N.current), p.current && clearTimeout(p.current), f.current.forEach((C) => clearTimeout(C)), $.current !== null && (cancelAnimationFrame($.current), $.current = null), n?.();
|
|
5638
5874
|
};
|
|
5639
|
-
}, [
|
|
5640
|
-
|
|
5641
|
-
}, [
|
|
5642
|
-
},
|
|
5643
|
-
const [
|
|
5644
|
-
(
|
|
5645
|
-
const U = Date.now().toString(), { autoHide:
|
|
5646
|
-
return i((
|
|
5875
|
+
}, [ee, t, o, j]), J(() => {
|
|
5876
|
+
K();
|
|
5877
|
+
}, [K]), c;
|
|
5878
|
+
}, nr = ({ children: r, position: s = "top-right", defaultDuration: m = 2500 }) => {
|
|
5879
|
+
const [o, i] = V([]), d = w(
|
|
5880
|
+
(l, N, f, p = {}) => {
|
|
5881
|
+
const U = Date.now().toString(), { autoHide: I = !0, duration: y = m } = p;
|
|
5882
|
+
return i((E) => [...E, { id: U, type: l, title: N, message: f }]), I && setTimeout(() => {
|
|
5647
5883
|
i(
|
|
5648
|
-
(
|
|
5884
|
+
(E) => E.map((x) => x.id === U ? { ...x, isClosing: !0 } : x)
|
|
5649
5885
|
), setTimeout(() => {
|
|
5650
|
-
i((
|
|
5886
|
+
i((E) => E.filter((x) => x.id !== U));
|
|
5651
5887
|
}, 500);
|
|
5652
5888
|
}, y), U;
|
|
5653
5889
|
},
|
|
5654
5890
|
[m]
|
|
5655
|
-
),
|
|
5891
|
+
), u = w((l) => {
|
|
5656
5892
|
i(
|
|
5657
|
-
(N) => N.map((
|
|
5893
|
+
(N) => N.map((f) => f.id === l ? { ...f, isClosing: !0 } : f)
|
|
5658
5894
|
), setTimeout(() => {
|
|
5659
|
-
i((N) => N.filter((
|
|
5895
|
+
i((N) => N.filter((f) => f.id !== l));
|
|
5660
5896
|
}, 500);
|
|
5661
|
-
}, []),
|
|
5897
|
+
}, []), c = w(() => {
|
|
5662
5898
|
i([]);
|
|
5663
|
-
}, []),
|
|
5899
|
+
}, []), b = w((l, N) => {
|
|
5664
5900
|
i(
|
|
5665
|
-
(
|
|
5901
|
+
(f) => f.map((p) => p.id === l ? { ...p, width: N } : p)
|
|
5666
5902
|
);
|
|
5667
5903
|
}, []), h = {
|
|
5668
|
-
notifications:
|
|
5669
|
-
showNotification:
|
|
5670
|
-
hideNotification:
|
|
5671
|
-
clearAllNotifications:
|
|
5904
|
+
notifications: o,
|
|
5905
|
+
showNotification: d,
|
|
5906
|
+
hideNotification: u,
|
|
5907
|
+
clearAllNotifications: c
|
|
5672
5908
|
};
|
|
5673
|
-
return /* @__PURE__ */ e.jsxDEV(
|
|
5674
|
-
|
|
5675
|
-
|
|
5909
|
+
return /* @__PURE__ */ e.jsxDEV(ge.Provider, { value: h, children: [
|
|
5910
|
+
r,
|
|
5911
|
+
o.length > 0 && /* @__PURE__ */ e.jsxDEV("div", { className: `fixed z-50 ${Ke(s)}`, children: o.map((l, N) => /* @__PURE__ */ e.jsxDEV(
|
|
5676
5912
|
"div",
|
|
5677
5913
|
{
|
|
5678
5914
|
className: "absolute",
|
|
5679
5915
|
style: {
|
|
5680
|
-
right:
|
|
5681
|
-
left:
|
|
5916
|
+
right: s.includes("right") ? 0 : void 0,
|
|
5917
|
+
left: s.includes("left") ? 0 : void 0,
|
|
5682
5918
|
top: `${N * 70}px`,
|
|
5683
|
-
width:
|
|
5919
|
+
width: l.width ? `${l.width}px` : "auto"
|
|
5684
5920
|
},
|
|
5685
5921
|
children: /* @__PURE__ */ e.jsxDEV(
|
|
5686
5922
|
"div",
|
|
5687
5923
|
{
|
|
5688
|
-
className: `transform transition-all duration-500 ease-out scale-75 opacity-90 w-full ${
|
|
5924
|
+
className: `transform transition-all duration-500 ease-out scale-75 opacity-90 w-full ${s.includes("right") ? "flex justify-end" : "flex justify-start"} ${l.isClosing ? `${s.includes("right") ? "translate-x-full" : "-translate-x-full"} opacity-0` : "translate-x-0 opacity-90"}`,
|
|
5689
5925
|
style: {
|
|
5690
5926
|
whiteSpace: "nowrap",
|
|
5691
|
-
transformOrigin:
|
|
5692
|
-
transform:
|
|
5927
|
+
transformOrigin: s.includes("right") ? "right center" : "left center",
|
|
5928
|
+
transform: l.isClosing ? `translateX(${s.includes("right") ? "100%" : "-100%"}) scale(0.75)` : `translateX(${l.width ? "0px" : s.includes("right") ? "100%" : "-100%"}) scale(0.75)`
|
|
5693
5929
|
},
|
|
5694
|
-
ref: (
|
|
5695
|
-
if (
|
|
5696
|
-
const
|
|
5697
|
-
|
|
5930
|
+
ref: (f) => {
|
|
5931
|
+
if (f && !l.width) {
|
|
5932
|
+
const p = f.scrollWidth;
|
|
5933
|
+
b(l.id, p);
|
|
5698
5934
|
}
|
|
5699
5935
|
},
|
|
5700
5936
|
children: /* @__PURE__ */ e.jsxDEV(
|
|
5701
|
-
|
|
5937
|
+
me,
|
|
5702
5938
|
{
|
|
5703
|
-
type:
|
|
5704
|
-
title:
|
|
5705
|
-
message:
|
|
5706
|
-
onClose: () => l
|
|
5939
|
+
type: l.type,
|
|
5940
|
+
title: l.title,
|
|
5941
|
+
message: l.message,
|
|
5942
|
+
onClose: () => u(l.id),
|
|
5707
5943
|
size: "sm"
|
|
5708
5944
|
},
|
|
5709
5945
|
void 0,
|
|
@@ -5726,7 +5962,7 @@ const xe = he(void 0), Te = () => {
|
|
|
5726
5962
|
void 0
|
|
5727
5963
|
)
|
|
5728
5964
|
},
|
|
5729
|
-
|
|
5965
|
+
l.id,
|
|
5730
5966
|
!1,
|
|
5731
5967
|
{
|
|
5732
5968
|
fileName: "/Users/patrick.yang/Projects/CyberUI/src/contexts/NotificationContext.tsx",
|
|
@@ -5744,40 +5980,40 @@ const xe = he(void 0), Te = () => {
|
|
|
5744
5980
|
lineNumber: 80,
|
|
5745
5981
|
columnNumber: 5
|
|
5746
5982
|
}, void 0);
|
|
5747
|
-
},
|
|
5748
|
-
const
|
|
5983
|
+
}, Ke = (r) => {
|
|
5984
|
+
const s = {
|
|
5749
5985
|
"top-right": "top-4 right-4",
|
|
5750
5986
|
"top-left": "top-4 left-4",
|
|
5751
5987
|
"bottom-right": "bottom-4 right-4",
|
|
5752
5988
|
"bottom-left": "bottom-4 left-4"
|
|
5753
5989
|
};
|
|
5754
|
-
return
|
|
5755
|
-
},
|
|
5990
|
+
return s[r] || s["top-right"];
|
|
5991
|
+
}, ar = "1.3.0";
|
|
5756
5992
|
export {
|
|
5757
5993
|
de as Badge,
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5994
|
+
G as Button,
|
|
5995
|
+
se as Card,
|
|
5996
|
+
$e as Carousel,
|
|
5997
|
+
Be as CircularProgress,
|
|
5998
|
+
nr as CyberNotificationProvider,
|
|
5999
|
+
er as ElementsTab,
|
|
6000
|
+
rr as FeedbackTab,
|
|
6001
|
+
Je as HomeTab,
|
|
6002
|
+
ae as Image,
|
|
6003
|
+
ye as Input,
|
|
6004
|
+
Qe as InteractiveTab,
|
|
6005
|
+
We as LinearProgress,
|
|
6006
|
+
ne as Modal,
|
|
6007
|
+
me as Notification,
|
|
6008
|
+
Q as RESPONSIVE_SIZE_MAPS,
|
|
6009
|
+
He as SegmentedProgress,
|
|
6010
|
+
ze as Select,
|
|
6011
|
+
Ge as Skeleton,
|
|
6012
|
+
sr as TabNavigation,
|
|
6013
|
+
Oe as Toggle,
|
|
6014
|
+
Ze as combineResponsiveClasses,
|
|
6015
|
+
q as getResponsiveClasses,
|
|
6016
|
+
Me as useCyberNotifications,
|
|
6017
|
+
tr as useCyberScrollbar,
|
|
6018
|
+
ar as version
|
|
5783
6019
|
};
|