acemyjob-ui 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acemyjob-ui.es.js +297 -280
- package/dist/acemyjob-ui.umd.js +4 -4
- package/dist/component/PageHeader/index.d.ts +7 -0
- package/dist/component/index.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/acemyjob-ui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _ from "react";
|
|
2
2
|
import L, { useState as T, useCallback as D, createContext as je, useEffect as J, useContext as we, useRef as ye } from "react";
|
|
3
|
-
import { Dialog as Ne, DialogBackdrop as
|
|
3
|
+
import { Dialog as Ne, DialogBackdrop as Ce, DialogPanel as ke, TransitionChild as Ve } from "@headlessui/react";
|
|
4
4
|
import { XMarkIcon as Te, Bars3Icon as $e, ChevronDownIcon as re, InformationCircleIcon as Ee, ExclamationCircleIcon as Re, XCircleIcon as Ae, CheckCircleIcon as _e } from "@heroicons/react/24/outline";
|
|
5
5
|
import { useSortable as Be } from "@dnd-kit/sortable";
|
|
6
6
|
import { CSS as De } from "@dnd-kit/utilities";
|
|
@@ -67,9 +67,9 @@ function Oe(r, s) {
|
|
|
67
67
|
}
|
|
68
68
|
function Q(r, s) {
|
|
69
69
|
const t = {};
|
|
70
|
-
for (const [a,
|
|
71
|
-
const n = r[a],
|
|
72
|
-
t[a] =
|
|
70
|
+
for (const [a, o] of Object.entries(s)) {
|
|
71
|
+
const n = r[a], c = Oe(n, o);
|
|
72
|
+
t[a] = c;
|
|
73
73
|
}
|
|
74
74
|
return t;
|
|
75
75
|
}
|
|
@@ -99,16 +99,16 @@ function br({
|
|
|
99
99
|
validationRules: s = {},
|
|
100
100
|
onSubmit: t
|
|
101
101
|
}) {
|
|
102
|
-
const [a,
|
|
102
|
+
const [a, o] = T(r), [n, c] = T({}), [i, u] = T({}), [x, d] = T(!1), m = JSON.stringify(a) !== JSON.stringify(r), f = D(
|
|
103
103
|
(b) => {
|
|
104
104
|
const { name: h, value: j, type: A } = b.target;
|
|
105
105
|
let z = j;
|
|
106
|
-
if (A === "checkbox" ? z = b.target.checked : A === "number" && (z = j ? Number(j) : ""),
|
|
106
|
+
if (A === "checkbox" ? z = b.target.checked : A === "number" && (z = j ? Number(j) : ""), o((M) => ({
|
|
107
107
|
...M,
|
|
108
108
|
[h]: z
|
|
109
109
|
})), s[h]) {
|
|
110
110
|
const M = Q({ [h]: z }, { [h]: s[h] });
|
|
111
|
-
|
|
111
|
+
c((W) => ({
|
|
112
112
|
...W,
|
|
113
113
|
[h]: M[h]
|
|
114
114
|
}));
|
|
@@ -125,18 +125,18 @@ function br({
|
|
|
125
125
|
},
|
|
126
126
|
[]
|
|
127
127
|
), y = D((b, h) => {
|
|
128
|
-
if (
|
|
128
|
+
if (o((j) => ({
|
|
129
129
|
...j,
|
|
130
130
|
[b]: h
|
|
131
131
|
})), s[b]) {
|
|
132
132
|
const j = Q({ [b]: h }, { [b]: s[b] });
|
|
133
|
-
|
|
133
|
+
c((A) => ({
|
|
134
134
|
...A,
|
|
135
135
|
[b]: j[b]
|
|
136
136
|
}));
|
|
137
137
|
}
|
|
138
|
-
}, [s]),
|
|
139
|
-
|
|
138
|
+
}, [s]), k = D((b, h) => {
|
|
139
|
+
c((j) => ({
|
|
140
140
|
...j,
|
|
141
141
|
[b]: h
|
|
142
142
|
}));
|
|
@@ -144,7 +144,7 @@ function br({
|
|
|
144
144
|
async (b) => {
|
|
145
145
|
b.preventDefault();
|
|
146
146
|
const h = Q(a, s);
|
|
147
|
-
|
|
147
|
+
c(h);
|
|
148
148
|
const j = {};
|
|
149
149
|
for (const A of Object.keys(a))
|
|
150
150
|
j[A] = !0;
|
|
@@ -161,7 +161,7 @@ function br({
|
|
|
161
161
|
},
|
|
162
162
|
[a, s, t]
|
|
163
163
|
), $ = D(() => {
|
|
164
|
-
|
|
164
|
+
o(r), c({}), u({}), d(!1);
|
|
165
165
|
}, [r]), R = D(
|
|
166
166
|
(b) => ({
|
|
167
167
|
name: b,
|
|
@@ -174,8 +174,8 @@ function br({
|
|
|
174
174
|
(b) => n[b] || null,
|
|
175
175
|
[n]
|
|
176
176
|
), S = D(
|
|
177
|
-
(b) =>
|
|
178
|
-
[
|
|
177
|
+
(b) => i[b] || !1,
|
|
178
|
+
[i]
|
|
179
179
|
), I = D(
|
|
180
180
|
(b) => a[b] !== r[b],
|
|
181
181
|
[a, r]
|
|
@@ -183,13 +183,13 @@ function br({
|
|
|
183
183
|
return {
|
|
184
184
|
values: a,
|
|
185
185
|
errors: n,
|
|
186
|
-
touched:
|
|
186
|
+
touched: i,
|
|
187
187
|
isSubmitting: x,
|
|
188
188
|
isDirty: m,
|
|
189
189
|
handleChange: f,
|
|
190
190
|
handleBlur: g,
|
|
191
191
|
setFieldValue: y,
|
|
192
|
-
setFieldError:
|
|
192
|
+
setFieldError: k,
|
|
193
193
|
handleSubmit: V,
|
|
194
194
|
resetForm: $,
|
|
195
195
|
getFieldProps: R,
|
|
@@ -208,23 +208,23 @@ var H = { exports: {} }, Y = {};
|
|
|
208
208
|
* This source code is licensed under the MIT license found in the
|
|
209
209
|
* LICENSE file in the root directory of this source tree.
|
|
210
210
|
*/
|
|
211
|
-
var
|
|
211
|
+
var oe;
|
|
212
212
|
function Pe() {
|
|
213
|
-
if (
|
|
214
|
-
|
|
213
|
+
if (oe) return Y;
|
|
214
|
+
oe = 1;
|
|
215
215
|
var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
216
|
-
function t(a,
|
|
217
|
-
var
|
|
218
|
-
if (n !== void 0 && (
|
|
216
|
+
function t(a, o, n) {
|
|
217
|
+
var c = null;
|
|
218
|
+
if (n !== void 0 && (c = "" + n), o.key !== void 0 && (c = "" + o.key), "key" in o) {
|
|
219
219
|
n = {};
|
|
220
|
-
for (var
|
|
221
|
-
|
|
222
|
-
} else n =
|
|
223
|
-
return
|
|
220
|
+
for (var i in o)
|
|
221
|
+
i !== "key" && (n[i] = o[i]);
|
|
222
|
+
} else n = o;
|
|
223
|
+
return o = n.ref, {
|
|
224
224
|
$$typeof: r,
|
|
225
225
|
type: a,
|
|
226
|
-
key:
|
|
227
|
-
ref:
|
|
226
|
+
key: c,
|
|
227
|
+
ref: o !== void 0 ? o : null,
|
|
228
228
|
props: n
|
|
229
229
|
};
|
|
230
230
|
}
|
|
@@ -243,13 +243,13 @@ var U = {};
|
|
|
243
243
|
var ce;
|
|
244
244
|
function Le() {
|
|
245
245
|
return ce || (ce = 1, process.env.NODE_ENV !== "production" && function() {
|
|
246
|
-
function r(
|
|
247
|
-
if (
|
|
248
|
-
if (typeof
|
|
249
|
-
return
|
|
250
|
-
if (typeof
|
|
251
|
-
switch (
|
|
252
|
-
case
|
|
246
|
+
function r(l) {
|
|
247
|
+
if (l == null) return null;
|
|
248
|
+
if (typeof l == "function")
|
|
249
|
+
return l.$$typeof === z ? null : l.displayName || l.name || null;
|
|
250
|
+
if (typeof l == "string") return l;
|
|
251
|
+
switch (l) {
|
|
252
|
+
case k:
|
|
253
253
|
return "Fragment";
|
|
254
254
|
case $:
|
|
255
255
|
return "Profiler";
|
|
@@ -262,144 +262,144 @@ function Le() {
|
|
|
262
262
|
case A:
|
|
263
263
|
return "Activity";
|
|
264
264
|
}
|
|
265
|
-
if (typeof
|
|
266
|
-
switch (typeof
|
|
265
|
+
if (typeof l == "object")
|
|
266
|
+
switch (typeof l.tag == "number" && console.error(
|
|
267
267
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
268
|
-
),
|
|
268
|
+
), l.$$typeof) {
|
|
269
269
|
case y:
|
|
270
270
|
return "Portal";
|
|
271
271
|
case w:
|
|
272
|
-
return (
|
|
272
|
+
return (l.displayName || "Context") + ".Provider";
|
|
273
273
|
case R:
|
|
274
|
-
return (
|
|
274
|
+
return (l._context.displayName || "Context") + ".Consumer";
|
|
275
275
|
case S:
|
|
276
|
-
var v =
|
|
277
|
-
return
|
|
276
|
+
var v = l.render;
|
|
277
|
+
return l = l.displayName, l || (l = v.displayName || v.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
|
|
278
278
|
case h:
|
|
279
|
-
return v =
|
|
279
|
+
return v = l.displayName || null, v !== null ? v : r(l.type) || "Memo";
|
|
280
280
|
case j:
|
|
281
|
-
v =
|
|
281
|
+
v = l._payload, l = l._init;
|
|
282
282
|
try {
|
|
283
|
-
return r(
|
|
283
|
+
return r(l(v));
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
return null;
|
|
288
288
|
}
|
|
289
|
-
function s(
|
|
290
|
-
return "" +
|
|
289
|
+
function s(l) {
|
|
290
|
+
return "" + l;
|
|
291
291
|
}
|
|
292
|
-
function t(
|
|
292
|
+
function t(l) {
|
|
293
293
|
try {
|
|
294
|
-
s(
|
|
294
|
+
s(l);
|
|
295
295
|
var v = !1;
|
|
296
296
|
} catch {
|
|
297
297
|
v = !0;
|
|
298
298
|
}
|
|
299
299
|
if (v) {
|
|
300
300
|
v = console;
|
|
301
|
-
var p = v.error, N = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
301
|
+
var p = v.error, N = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
302
302
|
return p.call(
|
|
303
303
|
v,
|
|
304
304
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
305
305
|
N
|
|
306
|
-
), s(
|
|
306
|
+
), s(l);
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
function a(
|
|
310
|
-
if (
|
|
311
|
-
if (typeof
|
|
309
|
+
function a(l) {
|
|
310
|
+
if (l === k) return "<>";
|
|
311
|
+
if (typeof l == "object" && l !== null && l.$$typeof === j)
|
|
312
312
|
return "<...>";
|
|
313
313
|
try {
|
|
314
|
-
var v = r(
|
|
314
|
+
var v = r(l);
|
|
315
315
|
return v ? "<" + v + ">" : "<...>";
|
|
316
316
|
} catch {
|
|
317
317
|
return "<...>";
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
var
|
|
322
|
-
return
|
|
320
|
+
function o() {
|
|
321
|
+
var l = M.A;
|
|
322
|
+
return l === null ? null : l.getOwner();
|
|
323
323
|
}
|
|
324
324
|
function n() {
|
|
325
325
|
return Error("react-stack-top-frame");
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
if (W.call(
|
|
329
|
-
var v = Object.getOwnPropertyDescriptor(
|
|
327
|
+
function c(l) {
|
|
328
|
+
if (W.call(l, "key")) {
|
|
329
|
+
var v = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
330
330
|
if (v && v.isReactWarning) return !1;
|
|
331
331
|
}
|
|
332
|
-
return
|
|
332
|
+
return l.key !== void 0;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function i(l, v) {
|
|
335
335
|
function p() {
|
|
336
336
|
se || (se = !0, console.error(
|
|
337
337
|
"%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)",
|
|
338
338
|
v
|
|
339
339
|
));
|
|
340
340
|
}
|
|
341
|
-
p.isReactWarning = !0, Object.defineProperty(
|
|
341
|
+
p.isReactWarning = !0, Object.defineProperty(l, "key", {
|
|
342
342
|
get: p,
|
|
343
343
|
configurable: !0
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
function u() {
|
|
347
|
-
var
|
|
348
|
-
return ae[
|
|
347
|
+
var l = r(this.type);
|
|
348
|
+
return ae[l] || (ae[l] = !0, console.error(
|
|
349
349
|
"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."
|
|
350
|
-
)),
|
|
350
|
+
)), l = this.props.ref, l !== void 0 ? l : null;
|
|
351
351
|
}
|
|
352
|
-
function x(
|
|
353
|
-
return p = B.ref,
|
|
352
|
+
function x(l, v, p, N, P, B, q, Z) {
|
|
353
|
+
return p = B.ref, l = {
|
|
354
354
|
$$typeof: g,
|
|
355
|
-
type:
|
|
355
|
+
type: l,
|
|
356
356
|
key: v,
|
|
357
357
|
props: B,
|
|
358
358
|
_owner: P
|
|
359
|
-
}, (p !== void 0 ? p : null) !== null ? Object.defineProperty(
|
|
359
|
+
}, (p !== void 0 ? p : null) !== null ? Object.defineProperty(l, "ref", {
|
|
360
360
|
enumerable: !1,
|
|
361
361
|
get: u
|
|
362
|
-
}) : Object.defineProperty(
|
|
362
|
+
}) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
363
363
|
configurable: !1,
|
|
364
364
|
enumerable: !1,
|
|
365
365
|
writable: !0,
|
|
366
366
|
value: 0
|
|
367
|
-
}), Object.defineProperty(
|
|
367
|
+
}), Object.defineProperty(l, "_debugInfo", {
|
|
368
368
|
configurable: !1,
|
|
369
369
|
enumerable: !1,
|
|
370
370
|
writable: !0,
|
|
371
371
|
value: null
|
|
372
|
-
}), Object.defineProperty(
|
|
372
|
+
}), Object.defineProperty(l, "_debugStack", {
|
|
373
373
|
configurable: !1,
|
|
374
374
|
enumerable: !1,
|
|
375
375
|
writable: !0,
|
|
376
376
|
value: q
|
|
377
|
-
}), Object.defineProperty(
|
|
377
|
+
}), Object.defineProperty(l, "_debugTask", {
|
|
378
378
|
configurable: !1,
|
|
379
379
|
enumerable: !1,
|
|
380
380
|
writable: !0,
|
|
381
381
|
value: Z
|
|
382
|
-
}), Object.freeze && (Object.freeze(
|
|
382
|
+
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
383
383
|
}
|
|
384
|
-
function d(
|
|
385
|
-
var
|
|
386
|
-
if (
|
|
384
|
+
function d(l, v, p, N, P, B, q, Z) {
|
|
385
|
+
var C = v.children;
|
|
386
|
+
if (C !== void 0)
|
|
387
387
|
if (N)
|
|
388
|
-
if (be(
|
|
389
|
-
for (N = 0; N <
|
|
390
|
-
m(
|
|
391
|
-
Object.freeze && Object.freeze(
|
|
388
|
+
if (be(C)) {
|
|
389
|
+
for (N = 0; N < C.length; N++)
|
|
390
|
+
m(C[N]);
|
|
391
|
+
Object.freeze && Object.freeze(C);
|
|
392
392
|
} else
|
|
393
393
|
console.error(
|
|
394
394
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
395
395
|
);
|
|
396
|
-
else m(
|
|
396
|
+
else m(C);
|
|
397
397
|
if (W.call(v, "key")) {
|
|
398
|
-
|
|
398
|
+
C = r(l);
|
|
399
399
|
var F = Object.keys(v).filter(function(pe) {
|
|
400
400
|
return pe !== "key";
|
|
401
401
|
});
|
|
402
|
-
N = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
402
|
+
N = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", le[C + N] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
403
403
|
`A props object containing a "key" prop is being spread into JSX:
|
|
404
404
|
let props = %s;
|
|
405
405
|
<%s {...props} />
|
|
@@ -407,68 +407,68 @@ React keys must be passed directly to JSX without using spread:
|
|
|
407
407
|
let props = %s;
|
|
408
408
|
<%s key={someKey} {...props} />`,
|
|
409
409
|
N,
|
|
410
|
-
|
|
410
|
+
C,
|
|
411
411
|
F,
|
|
412
|
-
|
|
413
|
-
),
|
|
412
|
+
C
|
|
413
|
+
), le[C + N] = !0);
|
|
414
414
|
}
|
|
415
|
-
if (
|
|
415
|
+
if (C = null, p !== void 0 && (t(p), C = "" + p), c(v) && (t(v.key), C = "" + v.key), "key" in v) {
|
|
416
416
|
p = {};
|
|
417
417
|
for (var K in v)
|
|
418
418
|
K !== "key" && (p[K] = v[K]);
|
|
419
419
|
} else p = v;
|
|
420
|
-
return
|
|
420
|
+
return C && i(
|
|
421
421
|
p,
|
|
422
|
-
typeof
|
|
422
|
+
typeof l == "function" ? l.displayName || l.name || "Unknown" : l
|
|
423
423
|
), x(
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
l,
|
|
425
|
+
C,
|
|
426
426
|
B,
|
|
427
427
|
P,
|
|
428
|
-
|
|
428
|
+
o(),
|
|
429
429
|
p,
|
|
430
430
|
q,
|
|
431
431
|
Z
|
|
432
432
|
);
|
|
433
433
|
}
|
|
434
|
-
function m(
|
|
435
|
-
typeof
|
|
434
|
+
function m(l) {
|
|
435
|
+
typeof l == "object" && l !== null && l.$$typeof === g && l._store && (l._store.validated = 1);
|
|
436
436
|
}
|
|
437
|
-
var f = L, g = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"),
|
|
437
|
+
var f = L, g = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), w = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), M = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, be = Array.isArray, X = console.createTask ? console.createTask : function() {
|
|
438
438
|
return null;
|
|
439
439
|
};
|
|
440
440
|
f = {
|
|
441
|
-
"react-stack-bottom-frame": function(
|
|
442
|
-
return
|
|
441
|
+
"react-stack-bottom-frame": function(l) {
|
|
442
|
+
return l();
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
445
|
var se, ae = {}, te = f["react-stack-bottom-frame"].bind(
|
|
446
446
|
f,
|
|
447
447
|
n
|
|
448
|
-
)(), ne = X(a(n)),
|
|
449
|
-
U.Fragment =
|
|
448
|
+
)(), ne = X(a(n)), le = {};
|
|
449
|
+
U.Fragment = k, U.jsx = function(l, v, p, N, P) {
|
|
450
450
|
var B = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
451
451
|
return d(
|
|
452
|
-
|
|
452
|
+
l,
|
|
453
453
|
v,
|
|
454
454
|
p,
|
|
455
455
|
!1,
|
|
456
456
|
N,
|
|
457
457
|
P,
|
|
458
458
|
B ? Error("react-stack-top-frame") : te,
|
|
459
|
-
B ? X(a(
|
|
459
|
+
B ? X(a(l)) : ne
|
|
460
460
|
);
|
|
461
|
-
}, U.jsxs = function(
|
|
461
|
+
}, U.jsxs = function(l, v, p, N, P) {
|
|
462
462
|
var B = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
463
463
|
return d(
|
|
464
|
-
|
|
464
|
+
l,
|
|
465
465
|
v,
|
|
466
466
|
p,
|
|
467
467
|
!0,
|
|
468
468
|
N,
|
|
469
469
|
P,
|
|
470
470
|
B ? Error("react-stack-top-frame") : te,
|
|
471
|
-
B ? X(a(
|
|
471
|
+
B ? X(a(l)) : ne
|
|
472
472
|
);
|
|
473
473
|
};
|
|
474
474
|
}()), U;
|
|
@@ -490,19 +490,19 @@ function E(...r) {
|
|
|
490
490
|
return r.filter(Boolean).join(" ");
|
|
491
491
|
}
|
|
492
492
|
function de({ item: r, colorScheme: s }) {
|
|
493
|
-
const [t, a] = T(r.current || r.children?.some((n) => n.current)),
|
|
493
|
+
const [t, a] = T(r.current || r.children?.some((n) => n.current)), o = r.children && r.children.length > 0;
|
|
494
494
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
495
495
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
496
496
|
"a",
|
|
497
497
|
{
|
|
498
|
-
href:
|
|
498
|
+
href: o ? void 0 : r.href,
|
|
499
499
|
onClick: (n) => {
|
|
500
|
-
|
|
500
|
+
o && (n.preventDefault(), a(!t));
|
|
501
501
|
},
|
|
502
502
|
className: E(
|
|
503
503
|
r.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
504
504
|
"group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
|
|
505
|
-
|
|
505
|
+
o ? "cursor-pointer" : ""
|
|
506
506
|
),
|
|
507
507
|
children: [
|
|
508
508
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-3", children: [
|
|
@@ -518,7 +518,7 @@ function de({ item: r, colorScheme: s }) {
|
|
|
518
518
|
),
|
|
519
519
|
r.name
|
|
520
520
|
] }),
|
|
521
|
-
|
|
521
|
+
o && /* @__PURE__ */ e.jsx(
|
|
522
522
|
re,
|
|
523
523
|
{
|
|
524
524
|
className: E(
|
|
@@ -531,7 +531,7 @@ function de({ item: r, colorScheme: s }) {
|
|
|
531
531
|
]
|
|
532
532
|
}
|
|
533
533
|
) }),
|
|
534
|
-
|
|
534
|
+
o && t && /* @__PURE__ */ e.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: r.children.map((n) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
|
|
535
535
|
"a",
|
|
536
536
|
{
|
|
537
537
|
href: n.href,
|
|
@@ -557,18 +557,18 @@ function de({ item: r, colorScheme: s }) {
|
|
|
557
557
|
] });
|
|
558
558
|
}
|
|
559
559
|
function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
|
|
560
|
-
const [
|
|
560
|
+
const [o, n] = T(!1);
|
|
561
561
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
562
|
-
/* @__PURE__ */ e.jsxs(Ne, { open:
|
|
562
|
+
/* @__PURE__ */ e.jsxs(Ne, { open: o, onClose: n, className: "relative z-50 lg:hidden", children: [
|
|
563
563
|
/* @__PURE__ */ e.jsx(
|
|
564
|
-
|
|
564
|
+
Ce,
|
|
565
565
|
{
|
|
566
566
|
transition: !0,
|
|
567
567
|
className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
|
|
568
568
|
}
|
|
569
569
|
),
|
|
570
570
|
/* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
|
|
571
|
-
|
|
571
|
+
ke,
|
|
572
572
|
{
|
|
573
573
|
transition: !0,
|
|
574
574
|
className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
|
|
@@ -586,7 +586,7 @@ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
|
|
|
586
586
|
className: "h-8 w-auto"
|
|
587
587
|
}
|
|
588
588
|
) }),
|
|
589
|
-
/* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((
|
|
589
|
+
/* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((c) => /* @__PURE__ */ e.jsx(de, { item: c, colorScheme: a }, c.name)) }) }) }) })
|
|
590
590
|
] })
|
|
591
591
|
]
|
|
592
592
|
}
|
|
@@ -602,7 +602,7 @@ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
|
|
|
602
602
|
}
|
|
603
603
|
) }),
|
|
604
604
|
/* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsxs("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: [
|
|
605
|
-
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((
|
|
605
|
+
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((c) => /* @__PURE__ */ e.jsx(de, { item: c, colorScheme: a }, c.name)) }) }),
|
|
606
606
|
/* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
|
|
607
607
|
"a",
|
|
608
608
|
{
|
|
@@ -906,25 +906,25 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
906
906
|
defaultTheme: s = "system",
|
|
907
907
|
storageKey: t = "acemyjob-ui-theme"
|
|
908
908
|
}) => {
|
|
909
|
-
const [a,
|
|
909
|
+
const [a, o] = T(s), [n, c] = T("light"), [i, u] = T(!1);
|
|
910
910
|
J(() => {
|
|
911
911
|
const d = localStorage.getItem(t);
|
|
912
|
-
d &&
|
|
912
|
+
d && o(d), u(!0);
|
|
913
913
|
}, [t]), J(() => {
|
|
914
|
-
if (!
|
|
914
|
+
if (!i) return;
|
|
915
915
|
const d = window.document.documentElement, m = () => {
|
|
916
916
|
let f;
|
|
917
|
-
a === "system" ? f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f = a,
|
|
917
|
+
a === "system" ? f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f = a, c(f), d.classList.remove("light", "dark"), d.classList.add(f);
|
|
918
918
|
};
|
|
919
919
|
if (m(), a === "system") {
|
|
920
920
|
const f = window.matchMedia("(prefers-color-scheme: dark)"), g = () => m();
|
|
921
921
|
return f.addEventListener("change", g), () => f.removeEventListener("change", g);
|
|
922
922
|
}
|
|
923
|
-
}, [a,
|
|
923
|
+
}, [a, i]);
|
|
924
924
|
const x = {
|
|
925
925
|
theme: a,
|
|
926
926
|
setTheme: (d) => {
|
|
927
|
-
localStorage.setItem(t, d),
|
|
927
|
+
localStorage.setItem(t, d), o(d);
|
|
928
928
|
},
|
|
929
929
|
resolvedTheme: n
|
|
930
930
|
};
|
|
@@ -950,7 +950,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
950
950
|
]
|
|
951
951
|
}
|
|
952
952
|
);
|
|
953
|
-
const
|
|
953
|
+
const o = () => {
|
|
954
954
|
s(r === "light" ? "dark" : r === "dark" ? "system" : "light");
|
|
955
955
|
}, n = () => {
|
|
956
956
|
switch (r) {
|
|
@@ -961,7 +961,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
961
961
|
case "system":
|
|
962
962
|
return /* @__PURE__ */ e.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" }) });
|
|
963
963
|
}
|
|
964
|
-
},
|
|
964
|
+
}, c = () => {
|
|
965
965
|
switch (r) {
|
|
966
966
|
case "light":
|
|
967
967
|
return "Light";
|
|
@@ -974,12 +974,12 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
974
974
|
return /* @__PURE__ */ e.jsxs(
|
|
975
975
|
"button",
|
|
976
976
|
{
|
|
977
|
-
onClick:
|
|
977
|
+
onClick: o,
|
|
978
978
|
className: "flex items-center gap-2 px-3 py-2 text-sm font-medium text-text-secondary hover:text-text-primary bg-surface hover:bg-surface-variant border border-border-subtle rounded-md transition-colors",
|
|
979
|
-
"aria-label": `Current theme: ${
|
|
979
|
+
"aria-label": `Current theme: ${c()}. Click to cycle themes.`,
|
|
980
980
|
children: [
|
|
981
981
|
n(),
|
|
982
|
-
/* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children:
|
|
982
|
+
/* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: c() })
|
|
983
983
|
]
|
|
984
984
|
}
|
|
985
985
|
);
|
|
@@ -1010,14 +1010,14 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
1010
1010
|
variant: s = "default",
|
|
1011
1011
|
size: t = "default",
|
|
1012
1012
|
fullWidth: a = !1,
|
|
1013
|
-
loading:
|
|
1013
|
+
loading: o = !1,
|
|
1014
1014
|
leftIcon: n,
|
|
1015
|
-
rightIcon:
|
|
1016
|
-
children:
|
|
1015
|
+
rightIcon: c,
|
|
1016
|
+
children: i,
|
|
1017
1017
|
disabled: u,
|
|
1018
1018
|
...x
|
|
1019
1019
|
}, d) => {
|
|
1020
|
-
const m = u ||
|
|
1020
|
+
const m = u || o, f = Je(
|
|
1021
1021
|
Ge,
|
|
1022
1022
|
me.variant[s],
|
|
1023
1023
|
me.size[t],
|
|
@@ -1032,7 +1032,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
1032
1032
|
disabled: m,
|
|
1033
1033
|
...x,
|
|
1034
1034
|
children: [
|
|
1035
|
-
|
|
1035
|
+
o && /* @__PURE__ */ e.jsxs(
|
|
1036
1036
|
"svg",
|
|
1037
1037
|
{
|
|
1038
1038
|
className: "mr-2 h-4 w-4 animate-spin",
|
|
@@ -1062,9 +1062,9 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
1062
1062
|
]
|
|
1063
1063
|
}
|
|
1064
1064
|
),
|
|
1065
|
-
!
|
|
1066
|
-
|
|
1067
|
-
!
|
|
1065
|
+
!o && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
|
|
1066
|
+
i,
|
|
1067
|
+
!o && c && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: c })
|
|
1068
1068
|
]
|
|
1069
1069
|
}
|
|
1070
1070
|
);
|
|
@@ -1086,15 +1086,15 @@ const xe = {
|
|
|
1086
1086
|
provider: s,
|
|
1087
1087
|
iconPosition: t = "left",
|
|
1088
1088
|
icon: a,
|
|
1089
|
-
showText:
|
|
1089
|
+
showText: o = !0,
|
|
1090
1090
|
children: n,
|
|
1091
|
-
size:
|
|
1092
|
-
fullWidth:
|
|
1091
|
+
size: c = "default",
|
|
1092
|
+
fullWidth: i = !0,
|
|
1093
1093
|
...u
|
|
1094
1094
|
}, x) => {
|
|
1095
1095
|
const m = a || {
|
|
1096
1096
|
linkedin: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e.jsx("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) })
|
|
1097
|
-
}[s], g = n || (
|
|
1097
|
+
}[s], g = n || (o ? {
|
|
1098
1098
|
linkedin: "Continue with LinkedIn"
|
|
1099
1099
|
}[s] : ""), y = Xe(
|
|
1100
1100
|
"relative overflow-hidden transition-all duration-200",
|
|
@@ -1108,8 +1108,8 @@ const xe = {
|
|
|
1108
1108
|
ref: x,
|
|
1109
1109
|
variant: "none",
|
|
1110
1110
|
className: y,
|
|
1111
|
-
size:
|
|
1112
|
-
fullWidth:
|
|
1111
|
+
size: c,
|
|
1112
|
+
fullWidth: i,
|
|
1113
1113
|
leftIcon: t === "left" ? m : void 0,
|
|
1114
1114
|
rightIcon: t === "right" ? m : void 0,
|
|
1115
1115
|
...u,
|
|
@@ -1127,9 +1127,9 @@ function wr({
|
|
|
1127
1127
|
variant: s = "default",
|
|
1128
1128
|
isActive: t = !1,
|
|
1129
1129
|
onClick: a,
|
|
1130
|
-
className:
|
|
1130
|
+
className: o = ""
|
|
1131
1131
|
}) {
|
|
1132
|
-
const n = "rounded-lg transition-all",
|
|
1132
|
+
const n = "rounded-lg transition-all", c = {
|
|
1133
1133
|
default: "border border-border p-4",
|
|
1134
1134
|
surface: "bg-surface-variant p-4",
|
|
1135
1135
|
elevated: "bg-surface shadow-md p-6",
|
|
@@ -1138,12 +1138,12 @@ function wr({
|
|
|
1138
1138
|
return /* @__PURE__ */ e.jsx(
|
|
1139
1139
|
"div",
|
|
1140
1140
|
{
|
|
1141
|
-
className: `${n} ${
|
|
1141
|
+
className: `${n} ${c[s]} ${o}`,
|
|
1142
1142
|
onClick: a,
|
|
1143
1143
|
role: a ? "button" : void 0,
|
|
1144
1144
|
tabIndex: a ? 0 : void 0,
|
|
1145
|
-
onKeyDown: a ? (
|
|
1146
|
-
(
|
|
1145
|
+
onKeyDown: a ? (i) => {
|
|
1146
|
+
(i.key === "Enter" || i.key === " ") && a();
|
|
1147
1147
|
} : void 0,
|
|
1148
1148
|
children: r
|
|
1149
1149
|
}
|
|
@@ -1154,14 +1154,14 @@ function yr({
|
|
|
1154
1154
|
children: s,
|
|
1155
1155
|
subtitle: t,
|
|
1156
1156
|
spacing: a = "normal",
|
|
1157
|
-
className:
|
|
1157
|
+
className: o = ""
|
|
1158
1158
|
}) {
|
|
1159
1159
|
const n = {
|
|
1160
1160
|
compact: "space-y-3",
|
|
1161
1161
|
normal: "space-y-6",
|
|
1162
1162
|
spacious: "space-y-8"
|
|
1163
1163
|
};
|
|
1164
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${n[a]} ${
|
|
1164
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${n[a]} ${o}`, children: [
|
|
1165
1165
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1166
1166
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: r }),
|
|
1167
1167
|
t && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t })
|
|
@@ -1174,10 +1174,10 @@ function G({
|
|
|
1174
1174
|
title: s,
|
|
1175
1175
|
message: t,
|
|
1176
1176
|
icon: a,
|
|
1177
|
-
onClose:
|
|
1177
|
+
onClose: o,
|
|
1178
1178
|
className: n = ""
|
|
1179
1179
|
}) {
|
|
1180
|
-
const
|
|
1180
|
+
const i = {
|
|
1181
1181
|
success: {
|
|
1182
1182
|
bg: "bg-success-50",
|
|
1183
1183
|
border: "border-success-200",
|
|
@@ -1206,19 +1206,19 @@ function G({
|
|
|
1206
1206
|
return /* @__PURE__ */ e.jsx(
|
|
1207
1207
|
"div",
|
|
1208
1208
|
{
|
|
1209
|
-
className: `${
|
|
1209
|
+
className: `${i.bg} border ${i.border} rounded-md p-3 ${n}`,
|
|
1210
1210
|
role: "alert",
|
|
1211
1211
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
1212
|
-
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${
|
|
1212
|
+
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${i.text}`, children: a || i.icon }),
|
|
1213
1213
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
1214
|
-
s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${
|
|
1215
|
-
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${
|
|
1214
|
+
s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${i.text}`, children: s }),
|
|
1215
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${i.text}`, children: t })
|
|
1216
1216
|
] }),
|
|
1217
|
-
|
|
1217
|
+
o && /* @__PURE__ */ e.jsx(
|
|
1218
1218
|
"button",
|
|
1219
1219
|
{
|
|
1220
|
-
onClick:
|
|
1221
|
-
className: `flex-shrink-0 ${
|
|
1220
|
+
onClick: o,
|
|
1221
|
+
className: `flex-shrink-0 ${i.text} hover:opacity-70`,
|
|
1222
1222
|
"aria-label": "Close alert",
|
|
1223
1223
|
children: "✕"
|
|
1224
1224
|
}
|
|
@@ -1296,10 +1296,10 @@ function er({
|
|
|
1296
1296
|
variant: s = "default",
|
|
1297
1297
|
size: t = "md",
|
|
1298
1298
|
removable: a = !1,
|
|
1299
|
-
onRemove:
|
|
1299
|
+
onRemove: o,
|
|
1300
1300
|
className: n = "",
|
|
1301
|
-
style:
|
|
1302
|
-
colorClass:
|
|
1301
|
+
style: c,
|
|
1302
|
+
colorClass: i
|
|
1303
1303
|
}) {
|
|
1304
1304
|
const u = {
|
|
1305
1305
|
default: "bg-surface-variant text-text-secondary",
|
|
@@ -1311,18 +1311,18 @@ function er({
|
|
|
1311
1311
|
sm: "px-2 py-0.5 text-xs",
|
|
1312
1312
|
md: "px-3 py-1 text-sm",
|
|
1313
1313
|
lg: "px-4 py-1.5 text-base"
|
|
1314
|
-
}, d =
|
|
1314
|
+
}, d = i || u[s];
|
|
1315
1315
|
return /* @__PURE__ */ e.jsxs(
|
|
1316
1316
|
"span",
|
|
1317
1317
|
{
|
|
1318
1318
|
className: `inline-flex items-center gap-1 rounded-full ${d} ${x[t]} ${n}`,
|
|
1319
|
-
style:
|
|
1319
|
+
style: c,
|
|
1320
1320
|
children: [
|
|
1321
1321
|
r,
|
|
1322
|
-
a &&
|
|
1322
|
+
a && o && /* @__PURE__ */ e.jsx(
|
|
1323
1323
|
"button",
|
|
1324
1324
|
{
|
|
1325
|
-
onClick:
|
|
1325
|
+
onClick: o,
|
|
1326
1326
|
className: "ml-1 hover:opacity-70",
|
|
1327
1327
|
"aria-label": "Remove badge",
|
|
1328
1328
|
children: /* @__PURE__ */ e.jsx(ee, { className: "w-3 h-3" })
|
|
@@ -1337,13 +1337,13 @@ function Nr({
|
|
|
1337
1337
|
children: s,
|
|
1338
1338
|
helperText: t,
|
|
1339
1339
|
errorText: a,
|
|
1340
|
-
required:
|
|
1340
|
+
required: o = !1,
|
|
1341
1341
|
className: n = ""
|
|
1342
1342
|
}) {
|
|
1343
1343
|
return /* @__PURE__ */ e.jsxs("div", { className: `space-y-2 ${n}`, children: [
|
|
1344
1344
|
/* @__PURE__ */ e.jsxs("label", { className: "block text-sm font-medium text-text-primary", children: [
|
|
1345
1345
|
r,
|
|
1346
|
-
|
|
1346
|
+
o && /* @__PURE__ */ e.jsx("span", { className: "text-error-500 ml-1", children: "*" })
|
|
1347
1347
|
] }),
|
|
1348
1348
|
s,
|
|
1349
1349
|
a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-error-600", children: a }),
|
|
@@ -1356,20 +1356,20 @@ const rr = L.forwardRef(
|
|
|
1356
1356
|
leftIcon: s,
|
|
1357
1357
|
rightIcon: t,
|
|
1358
1358
|
error: a = !1,
|
|
1359
|
-
fullWidth:
|
|
1359
|
+
fullWidth: o = !0,
|
|
1360
1360
|
disabled: n,
|
|
1361
|
-
...
|
|
1362
|
-
},
|
|
1363
|
-
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", x = a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent", d = n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", m =
|
|
1361
|
+
...c
|
|
1362
|
+
}, i) => {
|
|
1363
|
+
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", x = a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent", d = n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", m = o ? "w-full" : "", f = s || t ? "relative flex items-center" : "", g = `${u} ${x} ${d} ${m} ${s ? "pl-10" : ""} ${t ? "pr-10" : ""} ${r}`;
|
|
1364
1364
|
return /* @__PURE__ */ e.jsxs("div", { className: f, children: [
|
|
1365
1365
|
s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
|
|
1366
1366
|
/* @__PURE__ */ e.jsx(
|
|
1367
1367
|
"input",
|
|
1368
1368
|
{
|
|
1369
|
-
ref:
|
|
1369
|
+
ref: i,
|
|
1370
1370
|
className: g,
|
|
1371
1371
|
disabled: n,
|
|
1372
|
-
...
|
|
1372
|
+
...c
|
|
1373
1373
|
}
|
|
1374
1374
|
),
|
|
1375
1375
|
t && /* @__PURE__ */ e.jsx("div", { className: "absolute right-3 flex items-center pointer-events-none text-text-muted", children: t })
|
|
@@ -1383,19 +1383,19 @@ const sr = L.forwardRef(
|
|
|
1383
1383
|
placeholder: s,
|
|
1384
1384
|
className: t = "",
|
|
1385
1385
|
error: a = !1,
|
|
1386
|
-
fullWidth:
|
|
1386
|
+
fullWidth: o = !0,
|
|
1387
1387
|
disabled: n,
|
|
1388
|
-
...
|
|
1389
|
-
},
|
|
1390
|
-
const f = `px-3 py-2 border rounded-lg transition-colors text-sm appearance-none ${a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${
|
|
1388
|
+
...c
|
|
1389
|
+
}, i) => {
|
|
1390
|
+
const f = `px-3 py-2 border rounded-lg transition-colors text-sm appearance-none ${a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${o ? "w-full" : ""} pr-10 ${t}`;
|
|
1391
1391
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center", children: [
|
|
1392
1392
|
/* @__PURE__ */ e.jsxs(
|
|
1393
1393
|
"select",
|
|
1394
1394
|
{
|
|
1395
|
-
ref:
|
|
1395
|
+
ref: i,
|
|
1396
1396
|
className: f,
|
|
1397
1397
|
disabled: n,
|
|
1398
|
-
...
|
|
1398
|
+
...c,
|
|
1399
1399
|
children: [
|
|
1400
1400
|
s && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, children: s }),
|
|
1401
1401
|
r.map((g) => /* @__PURE__ */ e.jsx("option", { value: g.value, children: g.label }, g.value))
|
|
@@ -1413,26 +1413,26 @@ const ar = L.forwardRef(
|
|
|
1413
1413
|
onTagsChange: s,
|
|
1414
1414
|
onAddTag: t,
|
|
1415
1415
|
onRemoveTag: a,
|
|
1416
|
-
placeholder:
|
|
1416
|
+
placeholder: o = "Add a tag and press Enter",
|
|
1417
1417
|
error: n = !1,
|
|
1418
|
-
fullWidth:
|
|
1419
|
-
maxTags:
|
|
1418
|
+
fullWidth: c = !0,
|
|
1419
|
+
maxTags: i,
|
|
1420
1420
|
duplicateCheck: u = !0,
|
|
1421
1421
|
disabled: x,
|
|
1422
1422
|
className: d = "",
|
|
1423
1423
|
...m
|
|
1424
1424
|
}, f) => {
|
|
1425
|
-
const [g, y] = T(""),
|
|
1425
|
+
const [g, y] = T(""), k = (h) => {
|
|
1426
1426
|
h.key === "Enter" && g.trim() ? (h.preventDefault(), V(g.trim())) : h.key === "Backspace" && !g && r.length > 0 && $(r[r.length - 1]);
|
|
1427
1427
|
}, V = (h) => {
|
|
1428
|
-
if (
|
|
1428
|
+
if (i && r.length >= i || u && r.includes(h))
|
|
1429
1429
|
return;
|
|
1430
1430
|
const j = [...r, h];
|
|
1431
1431
|
s(j), t?.(h), y("");
|
|
1432
1432
|
}, $ = (h) => {
|
|
1433
1433
|
const j = r.filter((A) => A !== h);
|
|
1434
1434
|
s(j), a?.(h);
|
|
1435
|
-
}, b = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${n ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${x ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${
|
|
1435
|
+
}, b = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${n ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${x ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${c ? "w-full" : ""} ${d}`;
|
|
1436
1436
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1437
1437
|
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((h) => /* @__PURE__ */ e.jsx(
|
|
1438
1438
|
er,
|
|
@@ -1450,18 +1450,18 @@ const ar = L.forwardRef(
|
|
|
1450
1450
|
ref: f,
|
|
1451
1451
|
type: "text",
|
|
1452
1452
|
className: b,
|
|
1453
|
-
placeholder:
|
|
1453
|
+
placeholder: o,
|
|
1454
1454
|
value: g,
|
|
1455
1455
|
onChange: (h) => y(h.target.value),
|
|
1456
|
-
onKeyDown:
|
|
1457
|
-
disabled: x || (
|
|
1456
|
+
onKeyDown: k,
|
|
1457
|
+
disabled: x || (i ? r.length >= i : !1),
|
|
1458
1458
|
...m
|
|
1459
1459
|
}
|
|
1460
1460
|
),
|
|
1461
|
-
|
|
1461
|
+
i && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted", children: [
|
|
1462
1462
|
r.length,
|
|
1463
1463
|
" / ",
|
|
1464
|
-
|
|
1464
|
+
i
|
|
1465
1465
|
] })
|
|
1466
1466
|
] });
|
|
1467
1467
|
}
|
|
@@ -1473,57 +1473,57 @@ const tr = L.forwardRef(
|
|
|
1473
1473
|
error: s = !1,
|
|
1474
1474
|
fullWidth: t = !0,
|
|
1475
1475
|
autoResize: a = !1,
|
|
1476
|
-
maxLength:
|
|
1476
|
+
maxLength: o,
|
|
1477
1477
|
showCharCount: n = !1,
|
|
1478
|
-
disabled:
|
|
1479
|
-
value:
|
|
1478
|
+
disabled: c,
|
|
1479
|
+
value: i,
|
|
1480
1480
|
onChange: u,
|
|
1481
1481
|
...x
|
|
1482
1482
|
}, d) => {
|
|
1483
|
-
const
|
|
1483
|
+
const k = `px-3 py-2 border rounded-lg transition-colors text-sm font-normal resize-none ${s ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${c ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${t ? "w-full" : ""} ${r}`, V = (R) => {
|
|
1484
1484
|
a && (R.target.style.height = "auto", R.target.style.height = `${R.target.scrollHeight}px`), u?.(R);
|
|
1485
|
-
}, $ = typeof
|
|
1485
|
+
}, $ = typeof i == "string" ? i.length : 0;
|
|
1486
1486
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
|
|
1487
1487
|
/* @__PURE__ */ e.jsx(
|
|
1488
1488
|
"textarea",
|
|
1489
1489
|
{
|
|
1490
1490
|
ref: d,
|
|
1491
|
-
className:
|
|
1492
|
-
disabled:
|
|
1493
|
-
value:
|
|
1491
|
+
className: k,
|
|
1492
|
+
disabled: c,
|
|
1493
|
+
value: i,
|
|
1494
1494
|
onChange: V,
|
|
1495
|
-
maxLength:
|
|
1495
|
+
maxLength: o,
|
|
1496
1496
|
...x
|
|
1497
1497
|
}
|
|
1498
1498
|
),
|
|
1499
|
-
n &&
|
|
1499
|
+
n && o && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
|
|
1500
1500
|
$,
|
|
1501
1501
|
" / ",
|
|
1502
|
-
|
|
1502
|
+
o
|
|
1503
1503
|
] })
|
|
1504
1504
|
] });
|
|
1505
1505
|
}
|
|
1506
1506
|
);
|
|
1507
1507
|
tr.displayName = "Textarea";
|
|
1508
|
-
function
|
|
1508
|
+
function Cr({
|
|
1509
1509
|
options: r,
|
|
1510
1510
|
selectedValues: s,
|
|
1511
1511
|
onSelectionChange: t,
|
|
1512
1512
|
layout: a = "vertical",
|
|
1513
|
-
columns:
|
|
1513
|
+
columns: o = 2,
|
|
1514
1514
|
disabled: n = !1,
|
|
1515
|
-
error:
|
|
1515
|
+
error: c = !1
|
|
1516
1516
|
}) {
|
|
1517
|
-
const
|
|
1517
|
+
const i = (m) => {
|
|
1518
1518
|
const f = s.includes(m) ? s.filter((g) => g !== m) : [...s, m];
|
|
1519
1519
|
t(f);
|
|
1520
1520
|
}, u = {
|
|
1521
1521
|
vertical: "space-y-3",
|
|
1522
1522
|
horizontal: "flex flex-wrap gap-3",
|
|
1523
|
-
grid: `grid grid-cols-${
|
|
1524
|
-
}, x = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${
|
|
1523
|
+
grid: `grid grid-cols-${o} gap-3`
|
|
1524
|
+
}, x = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${o}` : "";
|
|
1525
1525
|
return /* @__PURE__ */ e.jsx("div", { className: `${x} ${d}`, children: r.map((m) => {
|
|
1526
|
-
const f = s.includes(m.value), y = f ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${
|
|
1526
|
+
const f = s.includes(m.value), y = f ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1527
1527
|
return /* @__PURE__ */ e.jsxs(
|
|
1528
1528
|
"label",
|
|
1529
1529
|
{
|
|
@@ -1534,7 +1534,7 @@ function kr({
|
|
|
1534
1534
|
{
|
|
1535
1535
|
type: "checkbox",
|
|
1536
1536
|
checked: f,
|
|
1537
|
-
onChange: () =>
|
|
1537
|
+
onChange: () => i(m.value),
|
|
1538
1538
|
disabled: n,
|
|
1539
1539
|
className: "sr-only"
|
|
1540
1540
|
}
|
|
@@ -1551,23 +1551,23 @@ function kr({
|
|
|
1551
1551
|
);
|
|
1552
1552
|
}) });
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function kr({
|
|
1555
1555
|
options: r,
|
|
1556
1556
|
selectedValue: s,
|
|
1557
1557
|
onSelectionChange: t,
|
|
1558
1558
|
layout: a = "vertical",
|
|
1559
|
-
columns:
|
|
1559
|
+
columns: o = 2,
|
|
1560
1560
|
disabled: n = !1,
|
|
1561
|
-
error:
|
|
1562
|
-
name:
|
|
1561
|
+
error: c = !1,
|
|
1562
|
+
name: i = "radio-group"
|
|
1563
1563
|
}) {
|
|
1564
|
-
const x = a === "grid" ? `grid gap-3 md:grid-cols-${
|
|
1564
|
+
const x = a === "grid" ? `grid gap-3 md:grid-cols-${o}` : {
|
|
1565
1565
|
vertical: "space-y-3",
|
|
1566
1566
|
horizontal: "flex flex-wrap gap-3",
|
|
1567
1567
|
grid: "grid gap-3"
|
|
1568
1568
|
}[a];
|
|
1569
1569
|
return /* @__PURE__ */ e.jsx("div", { className: x, children: r.map((d) => {
|
|
1570
|
-
const m = s === d.value, g = m ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${
|
|
1570
|
+
const m = s === d.value, g = m ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1571
1571
|
return /* @__PURE__ */ e.jsxs(
|
|
1572
1572
|
"label",
|
|
1573
1573
|
{
|
|
@@ -1577,7 +1577,7 @@ function Cr({
|
|
|
1577
1577
|
"input",
|
|
1578
1578
|
{
|
|
1579
1579
|
type: "radio",
|
|
1580
|
-
name:
|
|
1580
|
+
name: i,
|
|
1581
1581
|
value: d.value,
|
|
1582
1582
|
checked: m,
|
|
1583
1583
|
onChange: () => t(d.value),
|
|
@@ -1602,13 +1602,13 @@ function Vr({
|
|
|
1602
1602
|
allowMultiple: s = !1,
|
|
1603
1603
|
defaultOpenId: t,
|
|
1604
1604
|
onOpenChange: a,
|
|
1605
|
-
className:
|
|
1605
|
+
className: o = ""
|
|
1606
1606
|
}) {
|
|
1607
|
-
const [n,
|
|
1607
|
+
const [n, c] = T(() => t ? Array.isArray(t) ? t : [t] : []), i = (u) => {
|
|
1608
1608
|
let x;
|
|
1609
|
-
s ? x = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : x = n.includes(u) ? [] : [u],
|
|
1609
|
+
s ? x = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : x = n.includes(u) ? [] : [u], c(x), a?.(x);
|
|
1610
1610
|
};
|
|
1611
|
-
return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${
|
|
1611
|
+
return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${o}`, children: r.map((u) => {
|
|
1612
1612
|
const x = n.includes(u.id);
|
|
1613
1613
|
return /* @__PURE__ */ e.jsxs(
|
|
1614
1614
|
"div",
|
|
@@ -1618,7 +1618,7 @@ function Vr({
|
|
|
1618
1618
|
/* @__PURE__ */ e.jsxs(
|
|
1619
1619
|
"button",
|
|
1620
1620
|
{
|
|
1621
|
-
onClick: () =>
|
|
1621
|
+
onClick: () => i(u.id),
|
|
1622
1622
|
className: "w-full px-4 py-3 flex items-center justify-between hover:bg-surface-variant transition-colors text-left",
|
|
1623
1623
|
children: [
|
|
1624
1624
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3 flex-1", children: [
|
|
@@ -1647,10 +1647,10 @@ const nr = L.forwardRef(
|
|
|
1647
1647
|
onChange: s,
|
|
1648
1648
|
min: t = 0,
|
|
1649
1649
|
max: a = 100,
|
|
1650
|
-
step:
|
|
1650
|
+
step: o = 1,
|
|
1651
1651
|
showValue: n = !0,
|
|
1652
|
-
showLabels:
|
|
1653
|
-
minLabel:
|
|
1652
|
+
showLabels: c = !1,
|
|
1653
|
+
minLabel: i,
|
|
1654
1654
|
maxLabel: u,
|
|
1655
1655
|
error: x = !1,
|
|
1656
1656
|
fullWidth: d = !0,
|
|
@@ -1660,8 +1660,8 @@ const nr = L.forwardRef(
|
|
|
1660
1660
|
}, y) => {
|
|
1661
1661
|
const w = `w-full h-2 rounded-lg appearance-none cursor-pointer ${x ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${m ? "opacity-50 cursor-not-allowed" : ""} ${d ? "w-full" : ""} ${f}`, S = (r - t) / (a - t) * 100;
|
|
1662
1662
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1663
|
-
|
|
1664
|
-
|
|
1663
|
+
c && (i || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
|
|
1664
|
+
i && /* @__PURE__ */ e.jsx("span", { children: i }),
|
|
1665
1665
|
u && /* @__PURE__ */ e.jsx("span", { children: u })
|
|
1666
1666
|
] }),
|
|
1667
1667
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -1672,7 +1672,7 @@ const nr = L.forwardRef(
|
|
|
1672
1672
|
type: "range",
|
|
1673
1673
|
min: t,
|
|
1674
1674
|
max: a,
|
|
1675
|
-
step:
|
|
1675
|
+
step: o,
|
|
1676
1676
|
value: r,
|
|
1677
1677
|
onChange: (I) => s(Number(I.target.value)),
|
|
1678
1678
|
disabled: m,
|
|
@@ -1698,20 +1698,20 @@ function Tr({
|
|
|
1698
1698
|
title: s,
|
|
1699
1699
|
description: t,
|
|
1700
1700
|
isSelected: a = !1,
|
|
1701
|
-
onClick:
|
|
1701
|
+
onClick: o,
|
|
1702
1702
|
disabled: n = !1,
|
|
1703
|
-
className:
|
|
1703
|
+
className: c = ""
|
|
1704
1704
|
}) {
|
|
1705
|
-
const
|
|
1705
|
+
const i = "p-4 border rounded-lg transition-all text-center cursor-pointer", u = a ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : "border-border hover:border-border-subtle hover:bg-surface-variant", x = n ? "opacity-50 cursor-not-allowed" : "";
|
|
1706
1706
|
return /* @__PURE__ */ e.jsxs(
|
|
1707
1707
|
"div",
|
|
1708
1708
|
{
|
|
1709
|
-
className: `${
|
|
1710
|
-
onClick: () => !n &&
|
|
1709
|
+
className: `${i} ${u} ${x} ${c}`,
|
|
1710
|
+
onClick: () => !n && o?.(),
|
|
1711
1711
|
role: "button",
|
|
1712
1712
|
tabIndex: n ? -1 : 0,
|
|
1713
1713
|
onKeyDown: (d) => {
|
|
1714
|
-
!n && (d.key === "Enter" || d.key === " ") &&
|
|
1714
|
+
!n && (d.key === "Enter" || d.key === " ") && o?.();
|
|
1715
1715
|
},
|
|
1716
1716
|
children: [
|
|
1717
1717
|
r && /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "text-text-secondary", children: r }) }),
|
|
@@ -1722,31 +1722,31 @@ function Tr({
|
|
|
1722
1722
|
}
|
|
1723
1723
|
);
|
|
1724
1724
|
}
|
|
1725
|
-
const
|
|
1725
|
+
const lr = {
|
|
1726
1726
|
activeText: "text-reseda-green-700",
|
|
1727
1727
|
activeBorder: "border-reseda-green-700",
|
|
1728
1728
|
inactiveText: "text-text-secondary",
|
|
1729
1729
|
inactiveHoverText: "hover:text-text-primary",
|
|
1730
1730
|
disabledText: "text-text-disabled"
|
|
1731
1731
|
};
|
|
1732
|
-
function $r({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig:
|
|
1733
|
-
const n =
|
|
1734
|
-
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((
|
|
1735
|
-
const
|
|
1732
|
+
function $r({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: o }) {
|
|
1733
|
+
const n = o || lr;
|
|
1734
|
+
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((c) => {
|
|
1735
|
+
const i = s === c.id;
|
|
1736
1736
|
return /* @__PURE__ */ e.jsx(
|
|
1737
1737
|
O,
|
|
1738
1738
|
{
|
|
1739
1739
|
variant: "ghost",
|
|
1740
|
-
onClick: () => !t && a(
|
|
1741
|
-
disabled: t && !
|
|
1742
|
-
className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${
|
|
1743
|
-
children:
|
|
1740
|
+
onClick: () => !t && a(c.id),
|
|
1741
|
+
disabled: t && !i,
|
|
1742
|
+
className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${i ? `${n.activeBorder} ${n.activeText}` : t ? `border-transparent ${n.disabledText} cursor-not-allowed` : `border-transparent ${n.inactiveText} ${n.inactiveHoverText}`}`,
|
|
1743
|
+
children: c.label
|
|
1744
1744
|
},
|
|
1745
|
-
|
|
1745
|
+
c.id
|
|
1746
1746
|
);
|
|
1747
1747
|
}) });
|
|
1748
1748
|
}
|
|
1749
|
-
const
|
|
1749
|
+
const or = {
|
|
1750
1750
|
activeBg: "bg-reseda-green-700",
|
|
1751
1751
|
activeText: "text-white",
|
|
1752
1752
|
completedBg: "bg-success-500",
|
|
@@ -1758,48 +1758,48 @@ const lr = {
|
|
|
1758
1758
|
connectorBg: "bg-border"
|
|
1759
1759
|
};
|
|
1760
1760
|
function Er({ currentStep: r, steps: s, colorConfig: t }) {
|
|
1761
|
-
const a = t ||
|
|
1762
|
-
return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: s.map((
|
|
1761
|
+
const a = t || or;
|
|
1762
|
+
return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: s.map((o, n) => /* @__PURE__ */ e.jsxs("li", { className: `flex items-center ${n < s.length - 1 ? "flex-1" : ""}`, children: [
|
|
1763
1763
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
1764
1764
|
/* @__PURE__ */ e.jsx(
|
|
1765
1765
|
"span",
|
|
1766
1766
|
{
|
|
1767
|
-
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${r ===
|
|
1768
|
-
children:
|
|
1767
|
+
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${r === o.number ? `${a.activeBg} ${a.activeText}` : r > o.number ? `${a.completedBg} ${a.completedText}` : `border-2 ${a.incompleteBorder} ${a.incompleteText}`}`,
|
|
1768
|
+
children: o.number
|
|
1769
1769
|
}
|
|
1770
1770
|
),
|
|
1771
1771
|
/* @__PURE__ */ e.jsx(
|
|
1772
1772
|
"span",
|
|
1773
1773
|
{
|
|
1774
|
-
className: `ml-3 text-sm font-medium whitespace-nowrap ${r >=
|
|
1775
|
-
children:
|
|
1774
|
+
className: `ml-3 text-sm font-medium whitespace-nowrap ${r >= o.number ? a.labelActiveText : a.labelInactiveText}`,
|
|
1775
|
+
children: o.label
|
|
1776
1776
|
}
|
|
1777
1777
|
)
|
|
1778
1778
|
] }),
|
|
1779
1779
|
n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
|
|
1780
|
-
] },
|
|
1780
|
+
] }, o.number)) }) });
|
|
1781
1781
|
}
|
|
1782
1782
|
function cr({
|
|
1783
1783
|
id: r,
|
|
1784
1784
|
index: s,
|
|
1785
1785
|
previewText: t,
|
|
1786
1786
|
defaultExpanded: a = !1,
|
|
1787
|
-
children:
|
|
1787
|
+
children: o,
|
|
1788
1788
|
tooltipContent: n,
|
|
1789
|
-
onRemove:
|
|
1790
|
-
className:
|
|
1789
|
+
onRemove: c,
|
|
1790
|
+
className: i = ""
|
|
1791
1791
|
}) {
|
|
1792
|
-
const [u, x] = T(a), { attributes: d, listeners: m, setNodeRef: f, transform: g, transition: y, isDragging:
|
|
1792
|
+
const [u, x] = T(a), { attributes: d, listeners: m, setNodeRef: f, transform: g, transition: y, isDragging: k } = Be({ id: r }), V = {
|
|
1793
1793
|
transform: De.Transform.toString(g),
|
|
1794
1794
|
transition: y,
|
|
1795
|
-
opacity:
|
|
1795
|
+
opacity: k ? 0.5 : 1
|
|
1796
1796
|
};
|
|
1797
1797
|
return /* @__PURE__ */ e.jsx(
|
|
1798
1798
|
"div",
|
|
1799
1799
|
{
|
|
1800
1800
|
ref: f,
|
|
1801
1801
|
style: V,
|
|
1802
|
-
className: `border border-border rounded-md bg-surface-variant ${
|
|
1802
|
+
className: `border border-border rounded-md bg-surface-variant ${i}`,
|
|
1803
1803
|
children: u ? (
|
|
1804
1804
|
// ── Expanded ──────────────────────────────────────────────────────────
|
|
1805
1805
|
/* @__PURE__ */ e.jsxs("div", { className: "p-3", children: [
|
|
@@ -1844,14 +1844,14 @@ function cr({
|
|
|
1844
1844
|
type: "button",
|
|
1845
1845
|
variant: "ghost",
|
|
1846
1846
|
size: "icon",
|
|
1847
|
-
onClick:
|
|
1847
|
+
onClick: c,
|
|
1848
1848
|
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800",
|
|
1849
1849
|
"aria-label": "Remove",
|
|
1850
1850
|
leftIcon: /* @__PURE__ */ e.jsx(ee, { className: "w-4 h-4" })
|
|
1851
1851
|
}
|
|
1852
1852
|
)
|
|
1853
1853
|
] }),
|
|
1854
|
-
|
|
1854
|
+
o
|
|
1855
1855
|
] })
|
|
1856
1856
|
) : (
|
|
1857
1857
|
// ── Collapsed ─────────────────────────────────────────────────────────
|
|
@@ -1894,7 +1894,7 @@ function cr({
|
|
|
1894
1894
|
type: "button",
|
|
1895
1895
|
variant: "ghost",
|
|
1896
1896
|
size: "icon",
|
|
1897
|
-
onClick:
|
|
1897
|
+
onClick: c,
|
|
1898
1898
|
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800 flex-shrink-0",
|
|
1899
1899
|
"aria-label": "Remove",
|
|
1900
1900
|
leftIcon: /* @__PURE__ */ e.jsx(ee, { className: "w-4 h-4" })
|
|
@@ -1913,10 +1913,10 @@ function Rr({
|
|
|
1913
1913
|
onAnalyze: s,
|
|
1914
1914
|
uploadedFile: t,
|
|
1915
1915
|
fileError: a,
|
|
1916
|
-
onCancelUpload:
|
|
1916
|
+
onCancelUpload: o,
|
|
1917
1917
|
isAnalyzing: n = !1,
|
|
1918
|
-
analyzeError:
|
|
1919
|
-
analyzeSuccess:
|
|
1918
|
+
analyzeError: c,
|
|
1919
|
+
analyzeSuccess: i,
|
|
1920
1920
|
accept: u = ".pdf,.docx",
|
|
1921
1921
|
label: x = "Upload File",
|
|
1922
1922
|
description: d = "PDF, DOCX up to 5MB",
|
|
@@ -1924,7 +1924,7 @@ function Rr({
|
|
|
1924
1924
|
disabled: f = !1,
|
|
1925
1925
|
showAnalyzeButton: g = !0
|
|
1926
1926
|
}) {
|
|
1927
|
-
const y = ye(null), [
|
|
1927
|
+
const y = ye(null), [k, V] = T(!1);
|
|
1928
1928
|
J(() => {
|
|
1929
1929
|
!t && y.current && (y.current.value = "");
|
|
1930
1930
|
}, [t]);
|
|
@@ -1962,7 +1962,7 @@ function Rr({
|
|
|
1962
1962
|
onDragLeave: $,
|
|
1963
1963
|
onDragOver: $,
|
|
1964
1964
|
onDrop: R,
|
|
1965
|
-
className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${
|
|
1965
|
+
className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${k ? "border-reseda-green-700 bg-reseda-green-50" : "border-border hover:border-reseda-green-700"} ${f ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1966
1966
|
children: t && !a ? /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1967
1967
|
/* @__PURE__ */ e.jsx(
|
|
1968
1968
|
"svg",
|
|
@@ -1992,7 +1992,7 @@ function Rr({
|
|
|
1992
1992
|
variant: "link",
|
|
1993
1993
|
type: "button",
|
|
1994
1994
|
onClick: (w) => {
|
|
1995
|
-
w.preventDefault(),
|
|
1995
|
+
w.preventDefault(), o?.();
|
|
1996
1996
|
},
|
|
1997
1997
|
className: "mt-3 text-error-600 hover:text-error-700 h-auto p-0",
|
|
1998
1998
|
children: "✕ Cancel"
|
|
@@ -2028,8 +2028,8 @@ function Rr({
|
|
|
2028
2028
|
)
|
|
2029
2029
|
] }),
|
|
2030
2030
|
a && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: a }) }),
|
|
2031
|
-
|
|
2032
|
-
|
|
2031
|
+
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: c }) }),
|
|
2032
|
+
i && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: i }) }),
|
|
2033
2033
|
g && /* @__PURE__ */ e.jsx(
|
|
2034
2034
|
O,
|
|
2035
2035
|
{
|
|
@@ -2049,35 +2049,52 @@ function Ar({ stats: r, columns: s = 4, className: t = "" }) {
|
|
|
2049
2049
|
2: "grid-cols-2",
|
|
2050
2050
|
3: "grid-cols-3",
|
|
2051
2051
|
4: "grid-cols-4"
|
|
2052
|
-
}[s],
|
|
2052
|
+
}[s], o = {
|
|
2053
2053
|
"moss-green": { bg: "bg-moss-green-50", text: "text-reseda-green-700", value: "text-reseda-green-100" },
|
|
2054
2054
|
success: { bg: "bg-khaki-50", text: "text-success-600", value: "text-success-900" },
|
|
2055
2055
|
warning: { bg: "bg-peach-yellow-50", text: "text-warning-600", value: "text-warning-900" },
|
|
2056
2056
|
"earth-yellow": { bg: "bg-sunglow-50", text: "text-earth-yellow-700", value: "text-earth-yellow-100" }
|
|
2057
2057
|
};
|
|
2058
|
-
return /* @__PURE__ */ e.jsx("div", { className: `grid ${a} gap-4 mb-6 bg-surface p-6 rounded-lg ${t}`, children: r.map((n,
|
|
2059
|
-
const
|
|
2060
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${
|
|
2058
|
+
return /* @__PURE__ */ e.jsx("div", { className: `grid ${a} gap-4 mb-6 bg-surface p-6 rounded-lg ${t}`, children: r.map((n, c) => {
|
|
2059
|
+
const i = o[n.color || "moss-green"];
|
|
2060
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${i.bg} rounded-lg p-4`, children: [
|
|
2061
2061
|
n.icon && /* @__PURE__ */ e.jsx("div", { className: "mb-2", children: n.icon }),
|
|
2062
|
-
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${
|
|
2063
|
-
/* @__PURE__ */ e.jsx("p", { className: `text-2xl font-bold ${
|
|
2064
|
-
] },
|
|
2062
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${i.text} font-medium`, children: n.label }),
|
|
2063
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-2xl font-bold ${i.value} mt-1`, children: n.value })
|
|
2064
|
+
] }, c);
|
|
2065
2065
|
}) });
|
|
2066
2066
|
}
|
|
2067
|
+
function _r({
|
|
2068
|
+
title: r,
|
|
2069
|
+
description: s,
|
|
2070
|
+
centered: t = !1,
|
|
2071
|
+
titleSize: a = "md"
|
|
2072
|
+
}) {
|
|
2073
|
+
const o = {
|
|
2074
|
+
sm: "text-2xl",
|
|
2075
|
+
md: "text-3xl",
|
|
2076
|
+
lg: "text-4xl"
|
|
2077
|
+
}, n = t ? "text-center" : "", c = t ? "max-w-2xl mx-auto" : "";
|
|
2078
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `mb-8 ${n}`, children: [
|
|
2079
|
+
/* @__PURE__ */ e.jsx("h1", { className: `${o[a]} font-bold text-text-primary`, children: r }),
|
|
2080
|
+
/* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${c}`, children: s })
|
|
2081
|
+
] });
|
|
2082
|
+
}
|
|
2067
2083
|
export {
|
|
2068
2084
|
Vr as Accordion,
|
|
2069
2085
|
G as Alert,
|
|
2070
2086
|
er as Badge,
|
|
2071
2087
|
O as Button,
|
|
2072
2088
|
wr as Card,
|
|
2073
|
-
|
|
2089
|
+
Cr as CheckboxGroup,
|
|
2074
2090
|
Fe as ColorPalette,
|
|
2075
2091
|
jr as Demo,
|
|
2076
2092
|
Rr as FileUpload,
|
|
2077
2093
|
Nr as FormField,
|
|
2078
2094
|
rr as Input,
|
|
2079
2095
|
Tr as OptionCard,
|
|
2080
|
-
|
|
2096
|
+
_r as PageHeader,
|
|
2097
|
+
kr as RadioGroup,
|
|
2081
2098
|
yr as Section,
|
|
2082
2099
|
sr as Select,
|
|
2083
2100
|
pr as Sidebar,
|