acemyjob-ui 0.17.2 → 0.17.3
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 +568 -392
- package/dist/acemyjob-ui.umd.js +4 -4
- package/dist/component/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/acemyjob-ui.es.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { ChevronDownIcon as
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import * as _ from "react";
|
|
2
|
+
import z, { useState as $, useCallback as D, createContext as Ce, useEffect as J, useContext as ke, useRef as Ve } from "react";
|
|
3
|
+
import { ChevronDownIcon as re, InformationCircleIcon as ve, ExclamationCircleIcon as ge, XCircleIcon as be, CheckCircleIcon as pe, XMarkIcon as $e, Bars3Icon as Te } from "@heroicons/react/24/outline";
|
|
4
|
+
import { useSortable as Ee } from "@dnd-kit/sortable";
|
|
5
|
+
import { CSS as Re } from "@dnd-kit/utilities";
|
|
6
|
+
import { Dialog as Ae, DialogBackdrop as _e, DialogPanel as Be, TransitionChild as De } from "@headlessui/react";
|
|
7
|
+
const fr = {
|
|
6
8
|
required: (r = "This field is required") => ({
|
|
7
9
|
validate: (s) => typeof s == "string" ? s.trim().length > 0 : Array.isArray(s) ? s.length > 0 : s != null,
|
|
8
10
|
message: r
|
|
@@ -57,7 +59,7 @@ const nr = {
|
|
|
57
59
|
message: s
|
|
58
60
|
})
|
|
59
61
|
};
|
|
60
|
-
function
|
|
62
|
+
function Oe(r, s) {
|
|
61
63
|
for (const t of s)
|
|
62
64
|
if (!t.validate(r))
|
|
63
65
|
return t.message;
|
|
@@ -66,87 +68,87 @@ function Re(r, s) {
|
|
|
66
68
|
function Q(r, s) {
|
|
67
69
|
const t = {};
|
|
68
70
|
for (const [a, l] of Object.entries(s)) {
|
|
69
|
-
const n = r[a], i =
|
|
71
|
+
const n = r[a], i = Oe(n, l);
|
|
70
72
|
t[a] = i;
|
|
71
73
|
}
|
|
72
74
|
return t;
|
|
73
75
|
}
|
|
74
|
-
function
|
|
76
|
+
function Se(r) {
|
|
75
77
|
return Object.values(r).some((s) => s !== null);
|
|
76
78
|
}
|
|
77
|
-
function
|
|
79
|
+
function hr(r) {
|
|
78
80
|
for (const s of Object.values(r))
|
|
79
81
|
if (s !== null)
|
|
80
82
|
return s;
|
|
81
83
|
return null;
|
|
82
84
|
}
|
|
83
|
-
function
|
|
85
|
+
function vr(r, s) {
|
|
84
86
|
return {
|
|
85
87
|
...r,
|
|
86
88
|
[s]: null
|
|
87
89
|
};
|
|
88
90
|
}
|
|
89
|
-
function
|
|
91
|
+
function gr(r) {
|
|
90
92
|
const s = {};
|
|
91
93
|
for (const t of Object.keys(r))
|
|
92
94
|
s[t] = null;
|
|
93
95
|
return s;
|
|
94
96
|
}
|
|
95
|
-
function
|
|
97
|
+
function br({
|
|
96
98
|
initialValues: r,
|
|
97
99
|
validationRules: s = {},
|
|
98
100
|
onSubmit: t
|
|
99
101
|
}) {
|
|
100
|
-
const [a, l] =
|
|
102
|
+
const [a, l] = $(r), [n, i] = $({}), [c, u] = $({}), [x, d] = $(!1), m = JSON.stringify(a) !== JSON.stringify(r), f = D(
|
|
101
103
|
(p) => {
|
|
102
|
-
const { name:
|
|
103
|
-
let
|
|
104
|
-
if (A === "checkbox" ?
|
|
105
|
-
...
|
|
106
|
-
[
|
|
107
|
-
})), s[
|
|
108
|
-
const
|
|
109
|
-
i((
|
|
110
|
-
...
|
|
111
|
-
[
|
|
104
|
+
const { name: b, value: w, type: A } = p.target;
|
|
105
|
+
let L = w;
|
|
106
|
+
if (A === "checkbox" ? L = p.target.checked : A === "number" && (L = w ? Number(w) : ""), l((M) => ({
|
|
107
|
+
...M,
|
|
108
|
+
[b]: L
|
|
109
|
+
})), s[b]) {
|
|
110
|
+
const M = Q({ [b]: L }, { [b]: s[b] });
|
|
111
|
+
i((W) => ({
|
|
112
|
+
...W,
|
|
113
|
+
[b]: M[b]
|
|
112
114
|
}));
|
|
113
115
|
}
|
|
114
116
|
},
|
|
115
117
|
[s]
|
|
116
|
-
),
|
|
118
|
+
), v = D(
|
|
117
119
|
(p) => {
|
|
118
|
-
const { name:
|
|
120
|
+
const { name: b } = p.target;
|
|
119
121
|
u((w) => ({
|
|
120
122
|
...w,
|
|
121
|
-
[
|
|
123
|
+
[b]: !0
|
|
122
124
|
}));
|
|
123
125
|
},
|
|
124
126
|
[]
|
|
125
|
-
),
|
|
127
|
+
), g = D((p, b) => {
|
|
126
128
|
if (l((w) => ({
|
|
127
129
|
...w,
|
|
128
|
-
[p]:
|
|
130
|
+
[p]: b
|
|
129
131
|
})), s[p]) {
|
|
130
|
-
const w = Q({ [p]:
|
|
132
|
+
const w = Q({ [p]: b }, { [p]: s[p] });
|
|
131
133
|
i((A) => ({
|
|
132
134
|
...A,
|
|
133
135
|
[p]: w[p]
|
|
134
136
|
}));
|
|
135
137
|
}
|
|
136
|
-
}, [s]), y =
|
|
138
|
+
}, [s]), y = D((p, b) => {
|
|
137
139
|
i((w) => ({
|
|
138
140
|
...w,
|
|
139
|
-
[p]:
|
|
141
|
+
[p]: b
|
|
140
142
|
}));
|
|
141
|
-
}, []),
|
|
143
|
+
}, []), V = D(
|
|
142
144
|
async (p) => {
|
|
143
145
|
p.preventDefault();
|
|
144
|
-
const
|
|
145
|
-
i(
|
|
146
|
+
const b = Q(a, s);
|
|
147
|
+
i(b);
|
|
146
148
|
const w = {};
|
|
147
149
|
for (const A of Object.keys(a))
|
|
148
150
|
w[A] = !0;
|
|
149
|
-
if (u(w), !
|
|
151
|
+
if (u(w), !Se(b) && t) {
|
|
150
152
|
d(!0);
|
|
151
153
|
try {
|
|
152
154
|
await t(a);
|
|
@@ -158,23 +160,23 @@ function ir({
|
|
|
158
160
|
}
|
|
159
161
|
},
|
|
160
162
|
[a, s, t]
|
|
161
|
-
),
|
|
163
|
+
), T = D(() => {
|
|
162
164
|
l(r), i({}), u({}), d(!1);
|
|
163
|
-
}, [r]), R =
|
|
165
|
+
}, [r]), R = D(
|
|
164
166
|
(p) => ({
|
|
165
167
|
name: p,
|
|
166
168
|
value: a[p] || "",
|
|
167
|
-
onChange:
|
|
168
|
-
onBlur:
|
|
169
|
+
onChange: f,
|
|
170
|
+
onBlur: v
|
|
169
171
|
}),
|
|
170
|
-
[a,
|
|
171
|
-
), N =
|
|
172
|
+
[a, f, v]
|
|
173
|
+
), N = D(
|
|
172
174
|
(p) => n[p] || null,
|
|
173
175
|
[n]
|
|
174
|
-
),
|
|
176
|
+
), S = D(
|
|
175
177
|
(p) => c[p] || !1,
|
|
176
178
|
[c]
|
|
177
|
-
),
|
|
179
|
+
), I = D(
|
|
178
180
|
(p) => a[p] !== r[p],
|
|
179
181
|
[a, r]
|
|
180
182
|
);
|
|
@@ -182,21 +184,21 @@ function ir({
|
|
|
182
184
|
values: a,
|
|
183
185
|
errors: n,
|
|
184
186
|
touched: c,
|
|
185
|
-
isSubmitting:
|
|
187
|
+
isSubmitting: x,
|
|
186
188
|
isDirty: m,
|
|
187
|
-
handleChange:
|
|
188
|
-
handleBlur:
|
|
189
|
-
setFieldValue:
|
|
189
|
+
handleChange: f,
|
|
190
|
+
handleBlur: v,
|
|
191
|
+
setFieldValue: g,
|
|
190
192
|
setFieldError: y,
|
|
191
|
-
handleSubmit:
|
|
192
|
-
resetForm:
|
|
193
|
+
handleSubmit: V,
|
|
194
|
+
resetForm: T,
|
|
193
195
|
getFieldProps: R,
|
|
194
196
|
getFieldError: N,
|
|
195
|
-
isFieldTouched:
|
|
196
|
-
isFieldDirty:
|
|
197
|
+
isFieldTouched: S,
|
|
198
|
+
isFieldDirty: I
|
|
197
199
|
};
|
|
198
200
|
}
|
|
199
|
-
var
|
|
201
|
+
var H = { exports: {} }, U = {};
|
|
200
202
|
/**
|
|
201
203
|
* @license React
|
|
202
204
|
* react-jsx-runtime.production.js
|
|
@@ -206,10 +208,10 @@ var W = { exports: {} }, I = {};
|
|
|
206
208
|
* This source code is licensed under the MIT license found in the
|
|
207
209
|
* LICENSE file in the root directory of this source tree.
|
|
208
210
|
*/
|
|
209
|
-
var
|
|
210
|
-
function
|
|
211
|
-
if (
|
|
212
|
-
|
|
211
|
+
var oe;
|
|
212
|
+
function Pe() {
|
|
213
|
+
if (oe) return U;
|
|
214
|
+
oe = 1;
|
|
213
215
|
var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
214
216
|
function t(a, l, n) {
|
|
215
217
|
var i = null;
|
|
@@ -226,9 +228,9 @@ function _e() {
|
|
|
226
228
|
props: n
|
|
227
229
|
};
|
|
228
230
|
}
|
|
229
|
-
return
|
|
231
|
+
return U.Fragment = s, U.jsx = t, U.jsxs = t, U;
|
|
230
232
|
}
|
|
231
|
-
var
|
|
233
|
+
var Y = {};
|
|
232
234
|
/**
|
|
233
235
|
* @license React
|
|
234
236
|
* react-jsx-runtime.development.js
|
|
@@ -238,22 +240,22 @@ var U = {};
|
|
|
238
240
|
* This source code is licensed under the MIT license found in the
|
|
239
241
|
* LICENSE file in the root directory of this source tree.
|
|
240
242
|
*/
|
|
241
|
-
var
|
|
242
|
-
function
|
|
243
|
-
return
|
|
243
|
+
var ce;
|
|
244
|
+
function ze() {
|
|
245
|
+
return ce || (ce = 1, process.env.NODE_ENV !== "production" && function() {
|
|
244
246
|
function r(o) {
|
|
245
247
|
if (o == null) return null;
|
|
246
248
|
if (typeof o == "function")
|
|
247
|
-
return o.$$typeof ===
|
|
249
|
+
return o.$$typeof === L ? null : o.displayName || o.name || null;
|
|
248
250
|
if (typeof o == "string") return o;
|
|
249
251
|
switch (o) {
|
|
250
252
|
case y:
|
|
251
253
|
return "Fragment";
|
|
252
|
-
case
|
|
254
|
+
case T:
|
|
253
255
|
return "Profiler";
|
|
254
|
-
case
|
|
256
|
+
case V:
|
|
255
257
|
return "StrictMode";
|
|
256
|
-
case
|
|
258
|
+
case I:
|
|
257
259
|
return "Suspense";
|
|
258
260
|
case p:
|
|
259
261
|
return "SuspenseList";
|
|
@@ -264,16 +266,16 @@ function Be() {
|
|
|
264
266
|
switch (typeof o.tag == "number" && console.error(
|
|
265
267
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
266
268
|
), o.$$typeof) {
|
|
267
|
-
case
|
|
269
|
+
case g:
|
|
268
270
|
return "Portal";
|
|
269
271
|
case N:
|
|
270
272
|
return (o.displayName || "Context") + ".Provider";
|
|
271
273
|
case R:
|
|
272
274
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
273
|
-
case
|
|
275
|
+
case S:
|
|
274
276
|
var h = o.render;
|
|
275
277
|
return o = o.displayName, o || (o = h.displayName || h.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
276
|
-
case
|
|
278
|
+
case b:
|
|
277
279
|
return h = o.displayName || null, h !== null ? h : r(o.type) || "Memo";
|
|
278
280
|
case w:
|
|
279
281
|
h = o._payload, o = o._init;
|
|
@@ -296,11 +298,11 @@ function Be() {
|
|
|
296
298
|
}
|
|
297
299
|
if (h) {
|
|
298
300
|
h = console;
|
|
299
|
-
var j = h.error,
|
|
301
|
+
var j = h.error, C = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
300
302
|
return j.call(
|
|
301
303
|
h,
|
|
302
304
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
303
|
-
|
|
305
|
+
C
|
|
304
306
|
), s(o);
|
|
305
307
|
}
|
|
306
308
|
}
|
|
@@ -316,14 +318,14 @@ function Be() {
|
|
|
316
318
|
}
|
|
317
319
|
}
|
|
318
320
|
function l() {
|
|
319
|
-
var o =
|
|
321
|
+
var o = M.A;
|
|
320
322
|
return o === null ? null : o.getOwner();
|
|
321
323
|
}
|
|
322
324
|
function n() {
|
|
323
325
|
return Error("react-stack-top-frame");
|
|
324
326
|
}
|
|
325
327
|
function i(o) {
|
|
326
|
-
if (
|
|
328
|
+
if (W.call(o, "key")) {
|
|
327
329
|
var h = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
328
330
|
if (h && h.isReactWarning) return !1;
|
|
329
331
|
}
|
|
@@ -331,7 +333,7 @@ function Be() {
|
|
|
331
333
|
}
|
|
332
334
|
function c(o, h) {
|
|
333
335
|
function j() {
|
|
334
|
-
|
|
336
|
+
se || (se = !0, console.error(
|
|
335
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)",
|
|
336
338
|
h
|
|
337
339
|
));
|
|
@@ -343,17 +345,17 @@ function Be() {
|
|
|
343
345
|
}
|
|
344
346
|
function u() {
|
|
345
347
|
var o = r(this.type);
|
|
346
|
-
return
|
|
348
|
+
return ae[o] || (ae[o] = !0, console.error(
|
|
347
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."
|
|
348
350
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
349
351
|
}
|
|
350
|
-
function
|
|
351
|
-
return j =
|
|
352
|
-
$$typeof:
|
|
352
|
+
function x(o, h, j, C, P, B, q, Z) {
|
|
353
|
+
return j = B.ref, o = {
|
|
354
|
+
$$typeof: v,
|
|
353
355
|
type: o,
|
|
354
356
|
key: h,
|
|
355
|
-
props:
|
|
356
|
-
_owner:
|
|
357
|
+
props: B,
|
|
358
|
+
_owner: P
|
|
357
359
|
}, (j !== void 0 ? j : null) !== null ? Object.defineProperty(o, "ref", {
|
|
358
360
|
enumerable: !1,
|
|
359
361
|
get: u
|
|
@@ -379,50 +381,50 @@ function Be() {
|
|
|
379
381
|
value: Z
|
|
380
382
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
381
383
|
}
|
|
382
|
-
function d(o, h, j,
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
385
|
-
if (
|
|
386
|
-
if (
|
|
387
|
-
for (
|
|
388
|
-
m(C
|
|
389
|
-
Object.freeze && Object.freeze(
|
|
384
|
+
function d(o, h, j, C, P, B, q, Z) {
|
|
385
|
+
var k = h.children;
|
|
386
|
+
if (k !== void 0)
|
|
387
|
+
if (C)
|
|
388
|
+
if (Ne(k)) {
|
|
389
|
+
for (C = 0; C < k.length; C++)
|
|
390
|
+
m(k[C]);
|
|
391
|
+
Object.freeze && Object.freeze(k);
|
|
390
392
|
} else
|
|
391
393
|
console.error(
|
|
392
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."
|
|
393
395
|
);
|
|
394
|
-
else m(
|
|
395
|
-
if (
|
|
396
|
-
|
|
397
|
-
var
|
|
398
|
-
return
|
|
396
|
+
else m(k);
|
|
397
|
+
if (W.call(h, "key")) {
|
|
398
|
+
k = r(o);
|
|
399
|
+
var F = Object.keys(h).filter(function(ye) {
|
|
400
|
+
return ye !== "key";
|
|
399
401
|
});
|
|
400
|
-
|
|
402
|
+
C = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", le[k + C] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
401
403
|
`A props object containing a "key" prop is being spread into JSX:
|
|
402
404
|
let props = %s;
|
|
403
405
|
<%s {...props} />
|
|
404
406
|
React keys must be passed directly to JSX without using spread:
|
|
405
407
|
let props = %s;
|
|
406
408
|
<%s key={someKey} {...props} />`,
|
|
407
|
-
k,
|
|
408
409
|
C,
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
k,
|
|
411
|
+
F,
|
|
412
|
+
k
|
|
413
|
+
), le[k + C] = !0);
|
|
412
414
|
}
|
|
413
|
-
if (
|
|
415
|
+
if (k = null, j !== void 0 && (t(j), k = "" + j), i(h) && (t(h.key), k = "" + h.key), "key" in h) {
|
|
414
416
|
j = {};
|
|
415
417
|
for (var K in h)
|
|
416
418
|
K !== "key" && (j[K] = h[K]);
|
|
417
419
|
} else j = h;
|
|
418
|
-
return
|
|
420
|
+
return k && c(
|
|
419
421
|
j,
|
|
420
422
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
421
|
-
),
|
|
423
|
+
), x(
|
|
422
424
|
o,
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
425
|
+
k,
|
|
426
|
+
B,
|
|
427
|
+
P,
|
|
426
428
|
l(),
|
|
427
429
|
j,
|
|
428
430
|
q,
|
|
@@ -430,59 +432,59 @@ React keys must be passed directly to JSX without using spread:
|
|
|
430
432
|
);
|
|
431
433
|
}
|
|
432
434
|
function m(o) {
|
|
433
|
-
typeof o == "object" && o !== null && o.$$typeof ===
|
|
435
|
+
typeof o == "object" && o !== null && o.$$typeof === v && o._store && (o._store.validated = 1);
|
|
434
436
|
}
|
|
435
|
-
var
|
|
437
|
+
var f = z, v = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), N = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), M = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, Ne = Array.isArray, X = console.createTask ? console.createTask : function() {
|
|
436
438
|
return null;
|
|
437
439
|
};
|
|
438
|
-
|
|
440
|
+
f = {
|
|
439
441
|
"react-stack-bottom-frame": function(o) {
|
|
440
442
|
return o();
|
|
441
443
|
}
|
|
442
444
|
};
|
|
443
|
-
var
|
|
444
|
-
|
|
445
|
+
var se, ae = {}, te = f["react-stack-bottom-frame"].bind(
|
|
446
|
+
f,
|
|
445
447
|
n
|
|
446
|
-
)(),
|
|
447
|
-
|
|
448
|
-
var
|
|
448
|
+
)(), ne = X(a(n)), le = {};
|
|
449
|
+
Y.Fragment = y, Y.jsx = function(o, h, j, C, P) {
|
|
450
|
+
var B = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
449
451
|
return d(
|
|
450
452
|
o,
|
|
451
453
|
h,
|
|
452
454
|
j,
|
|
453
455
|
!1,
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
456
|
+
C,
|
|
457
|
+
P,
|
|
458
|
+
B ? Error("react-stack-top-frame") : te,
|
|
459
|
+
B ? X(a(o)) : ne
|
|
458
460
|
);
|
|
459
|
-
},
|
|
460
|
-
var
|
|
461
|
+
}, Y.jsxs = function(o, h, j, C, P) {
|
|
462
|
+
var B = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
461
463
|
return d(
|
|
462
464
|
o,
|
|
463
465
|
h,
|
|
464
466
|
j,
|
|
465
467
|
!0,
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
468
|
+
C,
|
|
469
|
+
P,
|
|
470
|
+
B ? Error("react-stack-top-frame") : te,
|
|
471
|
+
B ? X(a(o)) : ne
|
|
470
472
|
);
|
|
471
473
|
};
|
|
472
|
-
}()),
|
|
474
|
+
}()), Y;
|
|
473
475
|
}
|
|
474
|
-
var
|
|
475
|
-
function
|
|
476
|
-
return
|
|
476
|
+
var ie;
|
|
477
|
+
function Me() {
|
|
478
|
+
return ie || (ie = 1, process.env.NODE_ENV === "production" ? H.exports = Pe() : H.exports = ze()), H.exports;
|
|
477
479
|
}
|
|
478
|
-
var e =
|
|
479
|
-
const
|
|
480
|
+
var e = Me();
|
|
481
|
+
const je = (r) => r.replace("--color-", "bg-"), Ie = ({ name: r, cssVar: s, value: t }) => {
|
|
480
482
|
const a = `rgb(${t})`;
|
|
481
483
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center space-y-2 p-3 rounded-lg border border-border-subtle bg-surface hover:bg-surface-variant transition-colors", children: [
|
|
482
484
|
/* @__PURE__ */ e.jsx(
|
|
483
485
|
"div",
|
|
484
486
|
{
|
|
485
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
487
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${je(s)}`
|
|
486
488
|
}
|
|
487
489
|
),
|
|
488
490
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
@@ -491,10 +493,10 @@ const ge = (r) => r.replace("--color-", "bg-"), De = ({ name: r, cssVar: s, valu
|
|
|
491
493
|
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: a })
|
|
492
494
|
] })
|
|
493
495
|
] });
|
|
494
|
-
},
|
|
496
|
+
}, de = ({ title: r, colors: s }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
495
497
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: r }),
|
|
496
|
-
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-11 gap-4", children: s.map((t) => /* @__PURE__ */ e.jsx(
|
|
497
|
-
] }),
|
|
498
|
+
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-11 gap-4", children: s.map((t) => /* @__PURE__ */ e.jsx(Ie, { ...t }, t.name)) })
|
|
499
|
+
] }), Le = () => {
|
|
498
500
|
const r = [
|
|
499
501
|
{
|
|
500
502
|
title: "Success Colors (Green)",
|
|
@@ -710,15 +712,15 @@ const ge = (r) => r.replace("--color-", "bg-"), De = ({ name: r, cssVar: s, valu
|
|
|
710
712
|
/* @__PURE__ */ e.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
|
|
711
713
|
/* @__PURE__ */ e.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
|
|
712
714
|
] }),
|
|
713
|
-
s.map((a) => /* @__PURE__ */ e.jsx(
|
|
714
|
-
r.map((a) => /* @__PURE__ */ e.jsx(
|
|
715
|
+
s.map((a) => /* @__PURE__ */ e.jsx(de, { ...a }, a.title)),
|
|
716
|
+
r.map((a) => /* @__PURE__ */ e.jsx(de, { ...a }, a.title)),
|
|
715
717
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
716
718
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: "Semantic Colors (Theme-aware)" }),
|
|
717
719
|
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: t.map((a) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center space-y-2 p-3 rounded-lg border border-border-subtle bg-surface hover:bg-surface-variant transition-colors", children: [
|
|
718
720
|
/* @__PURE__ */ e.jsx(
|
|
719
721
|
"div",
|
|
720
722
|
{
|
|
721
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
723
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${je(a.cssVar)}`
|
|
722
724
|
}
|
|
723
725
|
),
|
|
724
726
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
@@ -729,41 +731,41 @@ const ge = (r) => r.replace("--color-", "bg-"), De = ({ name: r, cssVar: s, valu
|
|
|
729
731
|
] }),
|
|
730
732
|
/* @__PURE__ */ e.jsx("div", { className: "text-center pt-8 border-t border-border-subtle", children: /* @__PURE__ */ e.jsx("p", { className: "text-text-muted text-sm", children: "Toggle between light and dark themes to see how semantic colors adapt" }) })
|
|
731
733
|
] });
|
|
732
|
-
},
|
|
734
|
+
}, we = Ce(void 0), Fe = ({
|
|
733
735
|
children: r,
|
|
734
736
|
defaultTheme: s = "system",
|
|
735
737
|
storageKey: t = "acemyjob-ui-theme"
|
|
736
738
|
}) => {
|
|
737
|
-
const [a, l] =
|
|
739
|
+
const [a, l] = $(s), [n, i] = $("light"), [c, u] = $(!1);
|
|
738
740
|
J(() => {
|
|
739
741
|
const d = localStorage.getItem(t);
|
|
740
742
|
d && l(d), u(!0);
|
|
741
743
|
}, [t]), J(() => {
|
|
742
744
|
if (!c) return;
|
|
743
745
|
const d = window.document.documentElement, m = () => {
|
|
744
|
-
let
|
|
745
|
-
a === "system" ?
|
|
746
|
+
let f;
|
|
747
|
+
a === "system" ? f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f = a, i(f), d.classList.remove("light", "dark"), d.classList.add(f);
|
|
746
748
|
};
|
|
747
749
|
if (m(), a === "system") {
|
|
748
|
-
const
|
|
749
|
-
return
|
|
750
|
+
const f = window.matchMedia("(prefers-color-scheme: dark)"), v = () => m();
|
|
751
|
+
return f.addEventListener("change", v), () => f.removeEventListener("change", v);
|
|
750
752
|
}
|
|
751
753
|
}, [a, c]);
|
|
752
|
-
const
|
|
754
|
+
const x = {
|
|
753
755
|
theme: a,
|
|
754
756
|
setTheme: (d) => {
|
|
755
757
|
localStorage.setItem(t, d), l(d);
|
|
756
758
|
},
|
|
757
759
|
resolvedTheme: n
|
|
758
760
|
};
|
|
759
|
-
return /* @__PURE__ */ e.jsx(
|
|
760
|
-
},
|
|
761
|
-
const r =
|
|
761
|
+
return /* @__PURE__ */ e.jsx(we.Provider, { value: x, children: r });
|
|
762
|
+
}, Ue = () => {
|
|
763
|
+
const r = ke(we);
|
|
762
764
|
if (r === void 0)
|
|
763
765
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
764
766
|
return r;
|
|
765
|
-
},
|
|
766
|
-
const { theme: r, setTheme: s } =
|
|
767
|
+
}, Ye = () => {
|
|
768
|
+
const { theme: r, setTheme: s } = Ue(), [t, a] = $(!1);
|
|
767
769
|
if (J(() => {
|
|
768
770
|
a(!0);
|
|
769
771
|
}, []), !t)
|
|
@@ -811,11 +813,11 @@ const ge = (r) => r.replace("--color-", "bg-"), De = ({ name: r, cssVar: s, valu
|
|
|
811
813
|
]
|
|
812
814
|
}
|
|
813
815
|
);
|
|
814
|
-
},
|
|
815
|
-
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(
|
|
816
|
-
/* @__PURE__ */ e.jsx(
|
|
817
|
-
] }),
|
|
818
|
-
function
|
|
816
|
+
}, We = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
817
|
+
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Ye, {}) }),
|
|
818
|
+
/* @__PURE__ */ e.jsx(Le, {})
|
|
819
|
+
] }), pr = () => /* @__PURE__ */ e.jsx(Fe, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(We, {}) });
|
|
820
|
+
function jr({
|
|
819
821
|
label: r,
|
|
820
822
|
children: s,
|
|
821
823
|
helperText: t,
|
|
@@ -833,7 +835,7 @@ function ur({
|
|
|
833
835
|
t && !a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted", children: t })
|
|
834
836
|
] });
|
|
835
837
|
}
|
|
836
|
-
const
|
|
838
|
+
const He = z.forwardRef(
|
|
837
839
|
({
|
|
838
840
|
className: r = "",
|
|
839
841
|
leftIcon: s,
|
|
@@ -843,14 +845,14 @@ const Fe = P.forwardRef(
|
|
|
843
845
|
disabled: n,
|
|
844
846
|
...i
|
|
845
847
|
}, c) => {
|
|
846
|
-
const u = "px-3 py-2 border rounded-lg transition-colors text-sm",
|
|
847
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
848
|
+
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 = l ? "w-full" : "", f = s || t ? "relative flex items-center" : "", v = `${u} ${x} ${d} ${m} ${s ? "pl-10" : ""} ${t ? "pr-10" : ""} ${r}`;
|
|
849
|
+
return /* @__PURE__ */ e.jsxs("div", { className: f, children: [
|
|
848
850
|
s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
|
|
849
851
|
/* @__PURE__ */ e.jsx(
|
|
850
852
|
"input",
|
|
851
853
|
{
|
|
852
854
|
ref: c,
|
|
853
|
-
className:
|
|
855
|
+
className: v,
|
|
854
856
|
disabled: n,
|
|
855
857
|
...i
|
|
856
858
|
}
|
|
@@ -859,8 +861,8 @@ const Fe = P.forwardRef(
|
|
|
859
861
|
] });
|
|
860
862
|
}
|
|
861
863
|
);
|
|
862
|
-
|
|
863
|
-
const
|
|
864
|
+
He.displayName = "Input";
|
|
865
|
+
const Ge = z.forwardRef(
|
|
864
866
|
({
|
|
865
867
|
options: r,
|
|
866
868
|
placeholder: s,
|
|
@@ -870,32 +872,76 @@ const Ie = P.forwardRef(
|
|
|
870
872
|
disabled: n,
|
|
871
873
|
...i
|
|
872
874
|
}, c) => {
|
|
873
|
-
const
|
|
875
|
+
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"} ${l ? "w-full" : ""} pr-10 ${t}`;
|
|
874
876
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center", children: [
|
|
875
877
|
/* @__PURE__ */ e.jsxs(
|
|
876
878
|
"select",
|
|
877
879
|
{
|
|
878
880
|
ref: c,
|
|
879
|
-
className:
|
|
881
|
+
className: f,
|
|
880
882
|
disabled: n,
|
|
881
883
|
...i,
|
|
882
884
|
children: [
|
|
883
885
|
s && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, children: s }),
|
|
884
|
-
r.map((
|
|
886
|
+
r.map((v) => /* @__PURE__ */ e.jsx("option", { value: v.value, children: v.label }, v.value))
|
|
885
887
|
]
|
|
886
888
|
}
|
|
887
889
|
),
|
|
888
|
-
/* @__PURE__ */ e.jsx(
|
|
890
|
+
/* @__PURE__ */ e.jsx(re, { className: "absolute right-3 w-4 h-4 text-text-muted pointer-events-none" })
|
|
889
891
|
] });
|
|
890
892
|
}
|
|
891
893
|
);
|
|
892
|
-
|
|
893
|
-
function
|
|
894
|
+
Ge.displayName = "Select";
|
|
895
|
+
function Je({
|
|
896
|
+
title: r,
|
|
897
|
+
titleId: s,
|
|
898
|
+
...t
|
|
899
|
+
}, a) {
|
|
900
|
+
return /* @__PURE__ */ _.createElement("svg", Object.assign({
|
|
901
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
902
|
+
viewBox: "0 0 20 20",
|
|
903
|
+
fill: "currentColor",
|
|
904
|
+
"aria-hidden": "true",
|
|
905
|
+
"data-slot": "icon",
|
|
906
|
+
ref: a,
|
|
907
|
+
"aria-labelledby": s
|
|
908
|
+
}, t), r ? /* @__PURE__ */ _.createElement("title", {
|
|
909
|
+
id: s
|
|
910
|
+
}, r) : null, /* @__PURE__ */ _.createElement("path", {
|
|
911
|
+
fillRule: "evenodd",
|
|
912
|
+
d: "M2 6.75A.75.75 0 0 1 2.75 6h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 6.75Zm0 6.5a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z",
|
|
913
|
+
clipRule: "evenodd"
|
|
914
|
+
}));
|
|
915
|
+
}
|
|
916
|
+
const ue = /* @__PURE__ */ _.forwardRef(Je);
|
|
917
|
+
function Xe({
|
|
918
|
+
title: r,
|
|
919
|
+
titleId: s,
|
|
920
|
+
...t
|
|
921
|
+
}, a) {
|
|
922
|
+
return /* @__PURE__ */ _.createElement("svg", Object.assign({
|
|
923
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
924
|
+
viewBox: "0 0 20 20",
|
|
925
|
+
fill: "currentColor",
|
|
926
|
+
"aria-hidden": "true",
|
|
927
|
+
"data-slot": "icon",
|
|
928
|
+
ref: a,
|
|
929
|
+
"aria-labelledby": s
|
|
930
|
+
}, t), r ? /* @__PURE__ */ _.createElement("title", {
|
|
931
|
+
id: s
|
|
932
|
+
}, r) : null, /* @__PURE__ */ _.createElement("path", {
|
|
933
|
+
fillRule: "evenodd",
|
|
934
|
+
d: "M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",
|
|
935
|
+
clipRule: "evenodd"
|
|
936
|
+
}));
|
|
937
|
+
}
|
|
938
|
+
const me = /* @__PURE__ */ _.forwardRef(Xe);
|
|
939
|
+
function qe({
|
|
894
940
|
title: r,
|
|
895
941
|
titleId: s,
|
|
896
942
|
...t
|
|
897
943
|
}, a) {
|
|
898
|
-
return /* @__PURE__ */
|
|
944
|
+
return /* @__PURE__ */ _.createElement("svg", Object.assign({
|
|
899
945
|
xmlns: "http://www.w3.org/2000/svg",
|
|
900
946
|
viewBox: "0 0 20 20",
|
|
901
947
|
fill: "currentColor",
|
|
@@ -903,14 +949,14 @@ function Ue({
|
|
|
903
949
|
"data-slot": "icon",
|
|
904
950
|
ref: a,
|
|
905
951
|
"aria-labelledby": s
|
|
906
|
-
}, t), r ? /* @__PURE__ */
|
|
952
|
+
}, t), r ? /* @__PURE__ */ _.createElement("title", {
|
|
907
953
|
id: s
|
|
908
|
-
}, r) : null, /* @__PURE__ */
|
|
954
|
+
}, r) : null, /* @__PURE__ */ _.createElement("path", {
|
|
909
955
|
d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"
|
|
910
956
|
}));
|
|
911
957
|
}
|
|
912
|
-
const
|
|
913
|
-
function
|
|
958
|
+
const ee = /* @__PURE__ */ _.forwardRef(qe);
|
|
959
|
+
function Ze({
|
|
914
960
|
children: r,
|
|
915
961
|
variant: s = "default",
|
|
916
962
|
size: t = "md",
|
|
@@ -926,7 +972,7 @@ function We({
|
|
|
926
972
|
error: "bg-error-50 text-error-700",
|
|
927
973
|
warning: "bg-warning-50 text-warning-700",
|
|
928
974
|
info: "bg-info-50 text-info-700"
|
|
929
|
-
},
|
|
975
|
+
}, x = {
|
|
930
976
|
sm: "px-2 py-0.5 text-xs",
|
|
931
977
|
md: "px-3 py-1 text-sm",
|
|
932
978
|
lg: "px-4 py-1.5 text-base"
|
|
@@ -934,7 +980,7 @@ function We({
|
|
|
934
980
|
return /* @__PURE__ */ e.jsxs(
|
|
935
981
|
"span",
|
|
936
982
|
{
|
|
937
|
-
className: `inline-flex items-center gap-1 rounded-full ${d} ${
|
|
983
|
+
className: `inline-flex items-center gap-1 rounded-full ${d} ${x[t]} ${n}`,
|
|
938
984
|
style: i,
|
|
939
985
|
children: [
|
|
940
986
|
r,
|
|
@@ -944,14 +990,14 @@ function We({
|
|
|
944
990
|
onClick: l,
|
|
945
991
|
className: "ml-1 hover:opacity-70",
|
|
946
992
|
"aria-label": "Remove badge",
|
|
947
|
-
children: /* @__PURE__ */ e.jsx(
|
|
993
|
+
children: /* @__PURE__ */ e.jsx(ee, { className: "w-3 h-3" })
|
|
948
994
|
}
|
|
949
995
|
)
|
|
950
996
|
]
|
|
951
997
|
}
|
|
952
998
|
);
|
|
953
999
|
}
|
|
954
|
-
const
|
|
1000
|
+
const Ke = z.forwardRef(
|
|
955
1001
|
({
|
|
956
1002
|
tags: r,
|
|
957
1003
|
onTagsChange: s,
|
|
@@ -962,43 +1008,43 @@ const He = P.forwardRef(
|
|
|
962
1008
|
fullWidth: i = !0,
|
|
963
1009
|
maxTags: c,
|
|
964
1010
|
duplicateCheck: u = !0,
|
|
965
|
-
disabled:
|
|
1011
|
+
disabled: x,
|
|
966
1012
|
className: d = "",
|
|
967
1013
|
...m
|
|
968
|
-
},
|
|
969
|
-
const [
|
|
970
|
-
|
|
971
|
-
},
|
|
972
|
-
if (c && r.length >= c || u && r.includes(
|
|
1014
|
+
}, f) => {
|
|
1015
|
+
const [v, g] = $(""), y = (b) => {
|
|
1016
|
+
b.key === "Enter" && v.trim() ? (b.preventDefault(), V(v.trim())) : b.key === "Backspace" && !v && r.length > 0 && T(r[r.length - 1]);
|
|
1017
|
+
}, V = (b) => {
|
|
1018
|
+
if (c && r.length >= c || u && r.includes(b))
|
|
973
1019
|
return;
|
|
974
|
-
const w = [...r,
|
|
975
|
-
s(w), t?.(
|
|
976
|
-
},
|
|
977
|
-
const w = r.filter((A) => A !==
|
|
978
|
-
s(w), a?.(
|
|
979
|
-
}, p = `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"} ${
|
|
1020
|
+
const w = [...r, b];
|
|
1021
|
+
s(w), t?.(b), g("");
|
|
1022
|
+
}, T = (b) => {
|
|
1023
|
+
const w = r.filter((A) => A !== b);
|
|
1024
|
+
s(w), a?.(b);
|
|
1025
|
+
}, p = `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"} ${i ? "w-full" : ""} ${d}`;
|
|
980
1026
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
981
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((
|
|
982
|
-
|
|
1027
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((b) => /* @__PURE__ */ e.jsx(
|
|
1028
|
+
Ze,
|
|
983
1029
|
{
|
|
984
1030
|
removable: !0,
|
|
985
|
-
onRemove: () =>
|
|
1031
|
+
onRemove: () => T(b),
|
|
986
1032
|
variant: "default",
|
|
987
|
-
children:
|
|
1033
|
+
children: b
|
|
988
1034
|
},
|
|
989
|
-
|
|
1035
|
+
b
|
|
990
1036
|
)) }),
|
|
991
1037
|
/* @__PURE__ */ e.jsx(
|
|
992
1038
|
"input",
|
|
993
1039
|
{
|
|
994
|
-
ref:
|
|
1040
|
+
ref: f,
|
|
995
1041
|
type: "text",
|
|
996
1042
|
className: p,
|
|
997
1043
|
placeholder: l,
|
|
998
|
-
value:
|
|
999
|
-
onChange: (
|
|
1044
|
+
value: v,
|
|
1045
|
+
onChange: (b) => g(b.target.value),
|
|
1000
1046
|
onKeyDown: y,
|
|
1001
|
-
disabled:
|
|
1047
|
+
disabled: x || (c ? r.length >= c : !1),
|
|
1002
1048
|
...m
|
|
1003
1049
|
}
|
|
1004
1050
|
),
|
|
@@ -1010,8 +1056,8 @@ const He = P.forwardRef(
|
|
|
1010
1056
|
] });
|
|
1011
1057
|
}
|
|
1012
1058
|
);
|
|
1013
|
-
|
|
1014
|
-
const
|
|
1059
|
+
Ke.displayName = "TagInput";
|
|
1060
|
+
const xe = {
|
|
1015
1061
|
variant: {
|
|
1016
1062
|
default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
|
|
1017
1063
|
destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
|
|
@@ -1029,7 +1075,7 @@ const de = {
|
|
|
1029
1075
|
xl: "h-12 rounded-md px-10 text-base",
|
|
1030
1076
|
icon: "h-10 w-10"
|
|
1031
1077
|
}
|
|
1032
|
-
},
|
|
1078
|
+
}, Qe = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", er = (...r) => r.filter(Boolean).join(" "), O = z.forwardRef(
|
|
1033
1079
|
({
|
|
1034
1080
|
className: r,
|
|
1035
1081
|
variant: s = "default",
|
|
@@ -1040,22 +1086,22 @@ const de = {
|
|
|
1040
1086
|
rightIcon: i,
|
|
1041
1087
|
children: c,
|
|
1042
1088
|
disabled: u,
|
|
1043
|
-
...
|
|
1089
|
+
...x
|
|
1044
1090
|
}, d) => {
|
|
1045
|
-
const m = u || l,
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1091
|
+
const m = u || l, f = er(
|
|
1092
|
+
Qe,
|
|
1093
|
+
xe.variant[s],
|
|
1094
|
+
xe.size[t],
|
|
1049
1095
|
a ? "w-full" : "",
|
|
1050
1096
|
r
|
|
1051
1097
|
);
|
|
1052
1098
|
return /* @__PURE__ */ e.jsxs(
|
|
1053
1099
|
"button",
|
|
1054
1100
|
{
|
|
1055
|
-
className:
|
|
1101
|
+
className: f,
|
|
1056
1102
|
ref: d,
|
|
1057
1103
|
disabled: m,
|
|
1058
|
-
...
|
|
1104
|
+
...x,
|
|
1059
1105
|
children: [
|
|
1060
1106
|
l && /* @__PURE__ */ e.jsxs(
|
|
1061
1107
|
"svg",
|
|
@@ -1095,8 +1141,8 @@ const de = {
|
|
|
1095
1141
|
);
|
|
1096
1142
|
}
|
|
1097
1143
|
);
|
|
1098
|
-
|
|
1099
|
-
const
|
|
1144
|
+
O.displayName = "Button";
|
|
1145
|
+
const fe = {
|
|
1100
1146
|
provider: {
|
|
1101
1147
|
linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
|
|
1102
1148
|
},
|
|
@@ -1105,7 +1151,7 @@ const ue = {
|
|
|
1105
1151
|
right: "flex-row-reverse",
|
|
1106
1152
|
only: "justify-center"
|
|
1107
1153
|
}
|
|
1108
|
-
},
|
|
1154
|
+
}, rr = (...r) => r.filter(Boolean).join(" "), sr = z.forwardRef(
|
|
1109
1155
|
({
|
|
1110
1156
|
className: r,
|
|
1111
1157
|
provider: s,
|
|
@@ -1116,23 +1162,23 @@ const ue = {
|
|
|
1116
1162
|
size: i = "default",
|
|
1117
1163
|
fullWidth: c = !0,
|
|
1118
1164
|
...u
|
|
1119
|
-
},
|
|
1165
|
+
}, x) => {
|
|
1120
1166
|
const m = a || {
|
|
1121
1167
|
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" }) })
|
|
1122
|
-
}[s],
|
|
1168
|
+
}[s], v = n || (l ? {
|
|
1123
1169
|
linkedin: "Continue with LinkedIn"
|
|
1124
|
-
}[s] : ""),
|
|
1170
|
+
}[s] : ""), g = rr(
|
|
1125
1171
|
"relative overflow-hidden transition-all duration-200",
|
|
1126
|
-
|
|
1127
|
-
|
|
1172
|
+
fe.provider[s],
|
|
1173
|
+
fe.iconPosition[t],
|
|
1128
1174
|
r
|
|
1129
1175
|
);
|
|
1130
1176
|
return /* @__PURE__ */ e.jsxs(
|
|
1131
|
-
|
|
1177
|
+
O,
|
|
1132
1178
|
{
|
|
1133
|
-
ref:
|
|
1179
|
+
ref: x,
|
|
1134
1180
|
variant: "none",
|
|
1135
|
-
className:
|
|
1181
|
+
className: g,
|
|
1136
1182
|
size: i,
|
|
1137
1183
|
fullWidth: c,
|
|
1138
1184
|
leftIcon: t === "left" ? m : void 0,
|
|
@@ -1140,14 +1186,14 @@ const ue = {
|
|
|
1140
1186
|
...u,
|
|
1141
1187
|
children: [
|
|
1142
1188
|
t === "only" && m,
|
|
1143
|
-
t !== "only" &&
|
|
1189
|
+
t !== "only" && v
|
|
1144
1190
|
]
|
|
1145
1191
|
}
|
|
1146
1192
|
);
|
|
1147
1193
|
}
|
|
1148
1194
|
);
|
|
1149
|
-
|
|
1150
|
-
function
|
|
1195
|
+
sr.displayName = "SocialButton";
|
|
1196
|
+
function G({
|
|
1151
1197
|
variant: r,
|
|
1152
1198
|
title: s,
|
|
1153
1199
|
message: t,
|
|
@@ -1160,25 +1206,25 @@ function H({
|
|
|
1160
1206
|
bg: "bg-success-50",
|
|
1161
1207
|
border: "border-success-200",
|
|
1162
1208
|
text: "text-success-700",
|
|
1163
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1209
|
+
icon: /* @__PURE__ */ e.jsx(pe, { className: "h-5 w-5" })
|
|
1164
1210
|
},
|
|
1165
1211
|
error: {
|
|
1166
1212
|
bg: "bg-error-50",
|
|
1167
1213
|
border: "border-error-200",
|
|
1168
1214
|
text: "text-error-700",
|
|
1169
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1215
|
+
icon: /* @__PURE__ */ e.jsx(be, { className: "h-5 w-5" })
|
|
1170
1216
|
},
|
|
1171
1217
|
warning: {
|
|
1172
1218
|
bg: "bg-warning-50",
|
|
1173
1219
|
border: "border-warning-200",
|
|
1174
1220
|
text: "text-warning-700",
|
|
1175
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1221
|
+
icon: /* @__PURE__ */ e.jsx(ge, { className: "h-5 w-5" })
|
|
1176
1222
|
},
|
|
1177
1223
|
info: {
|
|
1178
1224
|
bg: "bg-info-50",
|
|
1179
1225
|
border: "border-info-200",
|
|
1180
1226
|
text: "text-info-700",
|
|
1181
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1227
|
+
icon: /* @__PURE__ */ e.jsx(ve, { className: "h-5 w-5" })
|
|
1182
1228
|
}
|
|
1183
1229
|
}[r];
|
|
1184
1230
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -1205,7 +1251,7 @@ function H({
|
|
|
1205
1251
|
}
|
|
1206
1252
|
);
|
|
1207
1253
|
}
|
|
1208
|
-
function
|
|
1254
|
+
function wr({
|
|
1209
1255
|
onFileChange: r,
|
|
1210
1256
|
onAnalyze: s,
|
|
1211
1257
|
uploadedFile: t,
|
|
@@ -1215,51 +1261,51 @@ function mr({
|
|
|
1215
1261
|
analyzeError: i,
|
|
1216
1262
|
analyzeSuccess: c,
|
|
1217
1263
|
accept: u = ".pdf,.docx",
|
|
1218
|
-
label:
|
|
1264
|
+
label: x = "Upload File",
|
|
1219
1265
|
description: d = "PDF, DOCX up to 5MB",
|
|
1220
1266
|
analyzeButtonLabel: m = "Analyze",
|
|
1221
|
-
disabled:
|
|
1222
|
-
showAnalyzeButton:
|
|
1267
|
+
disabled: f = !1,
|
|
1268
|
+
showAnalyzeButton: v = !0
|
|
1223
1269
|
}) {
|
|
1224
|
-
const
|
|
1270
|
+
const g = Ve(null), [y, V] = $(!1);
|
|
1225
1271
|
J(() => {
|
|
1226
|
-
!t &&
|
|
1272
|
+
!t && g.current && (g.current.value = "");
|
|
1227
1273
|
}, [t]);
|
|
1228
|
-
const
|
|
1229
|
-
N.preventDefault(), N.stopPropagation(), N.type === "dragenter" || N.type === "dragover" ?
|
|
1274
|
+
const T = (N) => {
|
|
1275
|
+
N.preventDefault(), N.stopPropagation(), N.type === "dragenter" || N.type === "dragover" ? V(!0) : N.type === "dragleave" && V(!1);
|
|
1230
1276
|
}, R = (N) => {
|
|
1231
|
-
if (N.preventDefault(), N.stopPropagation(),
|
|
1232
|
-
const
|
|
1277
|
+
if (N.preventDefault(), N.stopPropagation(), V(!1), N.dataTransfer.files && N.dataTransfer.files[0]) {
|
|
1278
|
+
const S = {
|
|
1233
1279
|
target: {
|
|
1234
1280
|
files: N.dataTransfer.files
|
|
1235
1281
|
}
|
|
1236
1282
|
};
|
|
1237
|
-
r(
|
|
1283
|
+
r(S);
|
|
1238
1284
|
}
|
|
1239
1285
|
};
|
|
1240
1286
|
return /* @__PURE__ */ e.jsxs("div", { className: "mt-6 pt-6 border-t border-border", children: [
|
|
1241
|
-
/* @__PURE__ */ e.jsx("h3", { className: "text-sm font-medium text-text-primary mb-3", children:
|
|
1287
|
+
/* @__PURE__ */ e.jsx("h3", { className: "text-sm font-medium text-text-primary mb-3", children: x }),
|
|
1242
1288
|
/* @__PURE__ */ e.jsxs("label", { className: "block", children: [
|
|
1243
1289
|
/* @__PURE__ */ e.jsx(
|
|
1244
1290
|
"input",
|
|
1245
1291
|
{
|
|
1246
|
-
ref:
|
|
1292
|
+
ref: g,
|
|
1247
1293
|
type: "file",
|
|
1248
1294
|
accept: u,
|
|
1249
1295
|
onChange: r,
|
|
1250
1296
|
className: "hidden",
|
|
1251
1297
|
id: "file-upload",
|
|
1252
|
-
disabled:
|
|
1298
|
+
disabled: f
|
|
1253
1299
|
}
|
|
1254
1300
|
),
|
|
1255
1301
|
/* @__PURE__ */ e.jsx(
|
|
1256
1302
|
"div",
|
|
1257
1303
|
{
|
|
1258
|
-
onDragEnter:
|
|
1259
|
-
onDragLeave:
|
|
1260
|
-
onDragOver:
|
|
1304
|
+
onDragEnter: T,
|
|
1305
|
+
onDragLeave: T,
|
|
1306
|
+
onDragOver: T,
|
|
1261
1307
|
onDrop: R,
|
|
1262
|
-
className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${y ? "border-reseda-green-700 bg-reseda-green-50" : "border-border hover:border-reseda-green-700"} ${
|
|
1308
|
+
className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${y ? "border-reseda-green-700 bg-reseda-green-50" : "border-border hover:border-reseda-green-700"} ${f ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1263
1309
|
children: t && !a ? /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1264
1310
|
/* @__PURE__ */ e.jsx(
|
|
1265
1311
|
"svg",
|
|
@@ -1277,14 +1323,14 @@ function mr({
|
|
|
1277
1323
|
)
|
|
1278
1324
|
}
|
|
1279
1325
|
),
|
|
1280
|
-
/* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1326
|
+
/* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: "File uploaded successfully" }) }),
|
|
1281
1327
|
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-2 break-words", children: t.name }),
|
|
1282
1328
|
/* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted mt-1", children: [
|
|
1283
1329
|
(t.size / (1024 * 1024)).toFixed(2),
|
|
1284
1330
|
"MB"
|
|
1285
1331
|
] }),
|
|
1286
1332
|
/* @__PURE__ */ e.jsx(
|
|
1287
|
-
|
|
1333
|
+
O,
|
|
1288
1334
|
{
|
|
1289
1335
|
variant: "link",
|
|
1290
1336
|
type: "button",
|
|
@@ -1324,15 +1370,15 @@ function mr({
|
|
|
1324
1370
|
}
|
|
1325
1371
|
)
|
|
1326
1372
|
] }),
|
|
1327
|
-
a && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1328
|
-
i && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1329
|
-
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(
|
|
1330
|
-
|
|
1331
|
-
|
|
1373
|
+
a && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: a }) }),
|
|
1374
|
+
i && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: i }) }),
|
|
1375
|
+
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: c }) }),
|
|
1376
|
+
v && /* @__PURE__ */ e.jsx(
|
|
1377
|
+
O,
|
|
1332
1378
|
{
|
|
1333
1379
|
variant: "default",
|
|
1334
1380
|
onClick: s,
|
|
1335
|
-
disabled: !t || n ||
|
|
1381
|
+
disabled: !t || n || f,
|
|
1336
1382
|
loading: n,
|
|
1337
1383
|
fullWidth: !0,
|
|
1338
1384
|
className: "mt-3",
|
|
@@ -1341,7 +1387,7 @@ function mr({
|
|
|
1341
1387
|
)
|
|
1342
1388
|
] });
|
|
1343
1389
|
}
|
|
1344
|
-
const
|
|
1390
|
+
const ar = z.forwardRef(
|
|
1345
1391
|
({
|
|
1346
1392
|
className: r = "",
|
|
1347
1393
|
error: s = !1,
|
|
@@ -1352,11 +1398,11 @@ const Ze = P.forwardRef(
|
|
|
1352
1398
|
disabled: i,
|
|
1353
1399
|
value: c,
|
|
1354
1400
|
onChange: u,
|
|
1355
|
-
...
|
|
1401
|
+
...x
|
|
1356
1402
|
}, d) => {
|
|
1357
|
-
const y = `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"} ${i ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${t ? "w-full" : ""} ${r}`,
|
|
1403
|
+
const y = `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"} ${i ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${t ? "w-full" : ""} ${r}`, V = (R) => {
|
|
1358
1404
|
a && (R.target.style.height = "auto", R.target.style.height = `${R.target.scrollHeight}px`), u?.(R);
|
|
1359
|
-
},
|
|
1405
|
+
}, T = typeof c == "string" ? c.length : 0;
|
|
1360
1406
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
|
|
1361
1407
|
/* @__PURE__ */ e.jsx(
|
|
1362
1408
|
"textarea",
|
|
@@ -1365,21 +1411,21 @@ const Ze = P.forwardRef(
|
|
|
1365
1411
|
className: y,
|
|
1366
1412
|
disabled: i,
|
|
1367
1413
|
value: c,
|
|
1368
|
-
onChange:
|
|
1414
|
+
onChange: V,
|
|
1369
1415
|
maxLength: l,
|
|
1370
|
-
...
|
|
1416
|
+
...x
|
|
1371
1417
|
}
|
|
1372
1418
|
),
|
|
1373
1419
|
n && l && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
|
|
1374
|
-
|
|
1420
|
+
T,
|
|
1375
1421
|
" / ",
|
|
1376
1422
|
l
|
|
1377
1423
|
] })
|
|
1378
1424
|
] });
|
|
1379
1425
|
}
|
|
1380
1426
|
);
|
|
1381
|
-
|
|
1382
|
-
function
|
|
1427
|
+
ar.displayName = "Textarea";
|
|
1428
|
+
function Nr({
|
|
1383
1429
|
options: r,
|
|
1384
1430
|
selectedValues: s,
|
|
1385
1431
|
onSelectionChange: t,
|
|
@@ -1389,25 +1435,25 @@ function xr({
|
|
|
1389
1435
|
error: i = !1
|
|
1390
1436
|
}) {
|
|
1391
1437
|
const c = (m) => {
|
|
1392
|
-
const
|
|
1393
|
-
t(
|
|
1438
|
+
const f = s.includes(m) ? s.filter((v) => v !== m) : [...s, m];
|
|
1439
|
+
t(f);
|
|
1394
1440
|
}, u = {
|
|
1395
1441
|
vertical: "space-y-3",
|
|
1396
1442
|
horizontal: "flex flex-wrap gap-3",
|
|
1397
1443
|
grid: `grid grid-cols-${l} gap-3`
|
|
1398
|
-
},
|
|
1399
|
-
return /* @__PURE__ */ e.jsx("div", { className: `${
|
|
1400
|
-
const
|
|
1444
|
+
}, x = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${l}` : "";
|
|
1445
|
+
return /* @__PURE__ */ e.jsx("div", { className: `${x} ${d}`, children: r.map((m) => {
|
|
1446
|
+
const f = s.includes(m.value), g = f ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${i ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1401
1447
|
return /* @__PURE__ */ e.jsxs(
|
|
1402
1448
|
"label",
|
|
1403
1449
|
{
|
|
1404
|
-
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${
|
|
1450
|
+
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1405
1451
|
children: [
|
|
1406
1452
|
/* @__PURE__ */ e.jsx(
|
|
1407
1453
|
"input",
|
|
1408
1454
|
{
|
|
1409
1455
|
type: "checkbox",
|
|
1410
|
-
checked:
|
|
1456
|
+
checked: f,
|
|
1411
1457
|
onChange: () => c(m.value),
|
|
1412
1458
|
disabled: n,
|
|
1413
1459
|
className: "sr-only"
|
|
@@ -1418,14 +1464,14 @@ function xr({
|
|
|
1418
1464
|
/* @__PURE__ */ e.jsx("div", { className: "font-medium text-text-primary", children: m.label }),
|
|
1419
1465
|
m.description && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-text-secondary", children: m.description })
|
|
1420
1466
|
] }),
|
|
1421
|
-
|
|
1467
|
+
f && /* @__PURE__ */ e.jsx("div", { className: "text-reseda-green-500 flex-shrink-0", children: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx("path", { fillRule: "evenodd", d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z", clipRule: "evenodd" }) }) })
|
|
1422
1468
|
]
|
|
1423
1469
|
},
|
|
1424
1470
|
m.value
|
|
1425
1471
|
);
|
|
1426
1472
|
}) });
|
|
1427
1473
|
}
|
|
1428
|
-
function
|
|
1474
|
+
function yr({
|
|
1429
1475
|
options: r,
|
|
1430
1476
|
selectedValue: s,
|
|
1431
1477
|
onSelectionChange: t,
|
|
@@ -1435,17 +1481,17 @@ function fr({
|
|
|
1435
1481
|
error: i = !1,
|
|
1436
1482
|
name: c = "radio-group"
|
|
1437
1483
|
}) {
|
|
1438
|
-
const
|
|
1484
|
+
const x = a === "grid" ? `grid gap-3 md:grid-cols-${l}` : {
|
|
1439
1485
|
vertical: "space-y-3",
|
|
1440
1486
|
horizontal: "flex flex-wrap gap-3",
|
|
1441
1487
|
grid: "grid gap-3"
|
|
1442
1488
|
}[a];
|
|
1443
|
-
return /* @__PURE__ */ e.jsx("div", { className:
|
|
1444
|
-
const m = s === d.value,
|
|
1489
|
+
return /* @__PURE__ */ e.jsx("div", { className: x, children: r.map((d) => {
|
|
1490
|
+
const m = s === d.value, v = m ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${i ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1445
1491
|
return /* @__PURE__ */ e.jsxs(
|
|
1446
1492
|
"label",
|
|
1447
1493
|
{
|
|
1448
|
-
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${
|
|
1494
|
+
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${v} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1449
1495
|
children: [
|
|
1450
1496
|
/* @__PURE__ */ e.jsx(
|
|
1451
1497
|
"input",
|
|
@@ -1471,7 +1517,7 @@ function fr({
|
|
|
1471
1517
|
);
|
|
1472
1518
|
}) });
|
|
1473
1519
|
}
|
|
1474
|
-
function
|
|
1520
|
+
function Cr({ stats: r, columns: s = 4, className: t = "" }) {
|
|
1475
1521
|
const a = {
|
|
1476
1522
|
2: "grid-cols-2",
|
|
1477
1523
|
3: "grid-cols-3",
|
|
@@ -1491,19 +1537,19 @@ function hr({ stats: r, columns: s = 4, className: t = "" }) {
|
|
|
1491
1537
|
] }, i);
|
|
1492
1538
|
}) });
|
|
1493
1539
|
}
|
|
1494
|
-
function
|
|
1540
|
+
function kr({
|
|
1495
1541
|
items: r,
|
|
1496
1542
|
allowMultiple: s = !1,
|
|
1497
1543
|
defaultOpenId: t,
|
|
1498
1544
|
onOpenChange: a,
|
|
1499
1545
|
className: l = ""
|
|
1500
1546
|
}) {
|
|
1501
|
-
const [n, i] =
|
|
1502
|
-
let
|
|
1503
|
-
s ?
|
|
1547
|
+
const [n, i] = $(() => t ? Array.isArray(t) ? t : [t] : []), c = (u) => {
|
|
1548
|
+
let x;
|
|
1549
|
+
s ? x = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : x = n.includes(u) ? [] : [u], i(x), a?.(x);
|
|
1504
1550
|
};
|
|
1505
1551
|
return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((u) => {
|
|
1506
|
-
const
|
|
1552
|
+
const x = n.includes(u.id);
|
|
1507
1553
|
return /* @__PURE__ */ e.jsxs(
|
|
1508
1554
|
"div",
|
|
1509
1555
|
{
|
|
@@ -1520,22 +1566,22 @@ function vr({
|
|
|
1520
1566
|
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: u.title })
|
|
1521
1567
|
] }),
|
|
1522
1568
|
/* @__PURE__ */ e.jsx(
|
|
1523
|
-
|
|
1569
|
+
re,
|
|
1524
1570
|
{
|
|
1525
|
-
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${
|
|
1571
|
+
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${x ? "rotate-180" : ""}`
|
|
1526
1572
|
}
|
|
1527
1573
|
)
|
|
1528
1574
|
]
|
|
1529
1575
|
}
|
|
1530
1576
|
),
|
|
1531
|
-
|
|
1577
|
+
x && /* @__PURE__ */ e.jsx("div", { className: "border-t border-border px-4 py-3 bg-surface-variant text-text-primary", children: u.content })
|
|
1532
1578
|
]
|
|
1533
1579
|
},
|
|
1534
1580
|
u.id
|
|
1535
1581
|
);
|
|
1536
1582
|
}) });
|
|
1537
1583
|
}
|
|
1538
|
-
function
|
|
1584
|
+
function Vr({
|
|
1539
1585
|
icon: r,
|
|
1540
1586
|
title: s,
|
|
1541
1587
|
subtitle: t,
|
|
@@ -1545,12 +1591,12 @@ function gr({
|
|
|
1545
1591
|
variant: i = "default",
|
|
1546
1592
|
actions: c,
|
|
1547
1593
|
onClick: u,
|
|
1548
|
-
className:
|
|
1594
|
+
className: x = ""
|
|
1549
1595
|
}) {
|
|
1550
|
-
const d = (
|
|
1551
|
-
const y =
|
|
1552
|
-
y.tagName === "BUTTON" || y.closest("button") || u?.(
|
|
1553
|
-
},
|
|
1596
|
+
const d = (g) => {
|
|
1597
|
+
const y = g.target;
|
|
1598
|
+
y.tagName === "BUTTON" || y.closest("button") || u?.(g);
|
|
1599
|
+
}, f = (() => {
|
|
1554
1600
|
if (n)
|
|
1555
1601
|
switch (i) {
|
|
1556
1602
|
case "success":
|
|
@@ -1563,12 +1609,12 @@ function gr({
|
|
|
1563
1609
|
return "border-2 border-reseda-green-700 bg-success-50";
|
|
1564
1610
|
}
|
|
1565
1611
|
return "border border-border hover:border-border-subtle hover:bg-surface-variant";
|
|
1566
|
-
})(),
|
|
1612
|
+
})(), v = l ? "ring-2 ring-reseda-green-700" : "";
|
|
1567
1613
|
return /* @__PURE__ */ e.jsx(
|
|
1568
1614
|
"div",
|
|
1569
1615
|
{
|
|
1570
1616
|
onClick: d,
|
|
1571
|
-
className: `rounded-lg p-4 cursor-pointer transition ${
|
|
1617
|
+
className: `rounded-lg p-4 cursor-pointer transition ${f} ${v} ${x}`,
|
|
1572
1618
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between", children: [
|
|
1573
1619
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex items-start gap-3", children: [
|
|
1574
1620
|
r && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: r }),
|
|
@@ -1578,18 +1624,18 @@ function gr({
|
|
|
1578
1624
|
a && /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: a })
|
|
1579
1625
|
] })
|
|
1580
1626
|
] }),
|
|
1581
|
-
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: c.map((
|
|
1582
|
-
|
|
1627
|
+
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: c.map((g, y) => /* @__PURE__ */ e.jsx(
|
|
1628
|
+
O,
|
|
1583
1629
|
{
|
|
1584
|
-
variant:
|
|
1585
|
-
size:
|
|
1586
|
-
onClick:
|
|
1587
|
-
disabled:
|
|
1588
|
-
loading:
|
|
1589
|
-
title:
|
|
1590
|
-
className:
|
|
1591
|
-
leftIcon:
|
|
1592
|
-
children:
|
|
1630
|
+
variant: g.variant || "ghost",
|
|
1631
|
+
size: g.size || "sm",
|
|
1632
|
+
onClick: g.onClick,
|
|
1633
|
+
disabled: g.disabled,
|
|
1634
|
+
loading: g.loading,
|
|
1635
|
+
title: g.label,
|
|
1636
|
+
className: g.className,
|
|
1637
|
+
leftIcon: g.icon && g.size !== "icon" ? g.icon : void 0,
|
|
1638
|
+
children: g.size === "icon" ? g.icon : g.label
|
|
1593
1639
|
},
|
|
1594
1640
|
y
|
|
1595
1641
|
)) })
|
|
@@ -1597,7 +1643,7 @@ function gr({
|
|
|
1597
1643
|
}
|
|
1598
1644
|
);
|
|
1599
1645
|
}
|
|
1600
|
-
function
|
|
1646
|
+
function $r({
|
|
1601
1647
|
children: r,
|
|
1602
1648
|
variant: s = "default",
|
|
1603
1649
|
isActive: t = !1,
|
|
@@ -1624,7 +1670,7 @@ function br({
|
|
|
1624
1670
|
}
|
|
1625
1671
|
);
|
|
1626
1672
|
}
|
|
1627
|
-
function
|
|
1673
|
+
function Tr({
|
|
1628
1674
|
title: r,
|
|
1629
1675
|
children: s,
|
|
1630
1676
|
subtitle: t,
|
|
@@ -1644,7 +1690,7 @@ function pr({
|
|
|
1644
1690
|
s
|
|
1645
1691
|
] });
|
|
1646
1692
|
}
|
|
1647
|
-
function
|
|
1693
|
+
function Er({
|
|
1648
1694
|
title: r,
|
|
1649
1695
|
subtitle: s,
|
|
1650
1696
|
metadata: t,
|
|
@@ -1665,7 +1711,7 @@ function jr({
|
|
|
1665
1711
|
] }, i))
|
|
1666
1712
|
] });
|
|
1667
1713
|
}
|
|
1668
|
-
function
|
|
1714
|
+
function Rr({
|
|
1669
1715
|
title: r,
|
|
1670
1716
|
description: s,
|
|
1671
1717
|
centered: t = !1,
|
|
@@ -1681,7 +1727,7 @@ function wr({
|
|
|
1681
1727
|
/* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${i}`, children: s })
|
|
1682
1728
|
] });
|
|
1683
1729
|
}
|
|
1684
|
-
function
|
|
1730
|
+
function Ar({
|
|
1685
1731
|
icon: r,
|
|
1686
1732
|
title: s,
|
|
1687
1733
|
description: t,
|
|
@@ -1690,11 +1736,11 @@ function Nr({
|
|
|
1690
1736
|
disabled: n = !1,
|
|
1691
1737
|
className: i = ""
|
|
1692
1738
|
}) {
|
|
1693
|
-
const c = "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",
|
|
1739
|
+
const c = "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" : "";
|
|
1694
1740
|
return /* @__PURE__ */ e.jsxs(
|
|
1695
1741
|
"div",
|
|
1696
1742
|
{
|
|
1697
|
-
className: `${c} ${u} ${
|
|
1743
|
+
className: `${c} ${u} ${x} ${i}`,
|
|
1698
1744
|
onClick: () => !n && l?.(),
|
|
1699
1745
|
role: "button",
|
|
1700
1746
|
tabIndex: n ? -1 : 0,
|
|
@@ -1710,7 +1756,7 @@ function Nr({
|
|
|
1710
1756
|
}
|
|
1711
1757
|
);
|
|
1712
1758
|
}
|
|
1713
|
-
const
|
|
1759
|
+
const tr = z.forwardRef(
|
|
1714
1760
|
({
|
|
1715
1761
|
value: r,
|
|
1716
1762
|
onChange: s,
|
|
@@ -1721,13 +1767,13 @@ const Ke = P.forwardRef(
|
|
|
1721
1767
|
showLabels: i = !1,
|
|
1722
1768
|
minLabel: c,
|
|
1723
1769
|
maxLabel: u,
|
|
1724
|
-
error:
|
|
1770
|
+
error: x = !1,
|
|
1725
1771
|
fullWidth: d = !0,
|
|
1726
1772
|
disabled: m,
|
|
1727
|
-
className:
|
|
1728
|
-
...
|
|
1729
|
-
},
|
|
1730
|
-
const N = `w-full h-2 rounded-lg appearance-none cursor-pointer ${
|
|
1773
|
+
className: f = "",
|
|
1774
|
+
...v
|
|
1775
|
+
}, g) => {
|
|
1776
|
+
const N = `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;
|
|
1731
1777
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1732
1778
|
i && (c || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
|
|
1733
1779
|
c && /* @__PURE__ */ e.jsx("span", { children: c }),
|
|
@@ -1737,16 +1783,16 @@ const Ke = P.forwardRef(
|
|
|
1737
1783
|
/* @__PURE__ */ e.jsx(
|
|
1738
1784
|
"input",
|
|
1739
1785
|
{
|
|
1740
|
-
ref:
|
|
1786
|
+
ref: g,
|
|
1741
1787
|
type: "range",
|
|
1742
1788
|
min: t,
|
|
1743
1789
|
max: a,
|
|
1744
1790
|
step: l,
|
|
1745
1791
|
value: r,
|
|
1746
|
-
onChange: (
|
|
1792
|
+
onChange: (I) => s(Number(I.target.value)),
|
|
1747
1793
|
disabled: m,
|
|
1748
1794
|
className: N,
|
|
1749
|
-
...
|
|
1795
|
+
...v
|
|
1750
1796
|
}
|
|
1751
1797
|
),
|
|
1752
1798
|
n && /* @__PURE__ */ e.jsx("span", { className: "text-sm font-medium text-text-primary min-w-[3rem] text-right", children: r })
|
|
@@ -1755,14 +1801,143 @@ const Ke = P.forwardRef(
|
|
|
1755
1801
|
"div",
|
|
1756
1802
|
{
|
|
1757
1803
|
className: "h-full bg-reseda-green-500 transition-all",
|
|
1758
|
-
style: { width: `${
|
|
1804
|
+
style: { width: `${S}%` }
|
|
1759
1805
|
}
|
|
1760
1806
|
) })
|
|
1761
1807
|
] });
|
|
1762
1808
|
}
|
|
1763
1809
|
);
|
|
1764
|
-
|
|
1765
|
-
|
|
1810
|
+
tr.displayName = "Slider";
|
|
1811
|
+
function nr({
|
|
1812
|
+
id: r,
|
|
1813
|
+
index: s,
|
|
1814
|
+
previewText: t,
|
|
1815
|
+
defaultExpanded: a = !1,
|
|
1816
|
+
children: l,
|
|
1817
|
+
tooltipContent: n,
|
|
1818
|
+
onRemove: i,
|
|
1819
|
+
className: c = ""
|
|
1820
|
+
}) {
|
|
1821
|
+
const [u, x] = $(a), { attributes: d, listeners: m, setNodeRef: f, transform: v, transition: g, isDragging: y } = Ee({ id: r }), V = {
|
|
1822
|
+
transform: Re.Transform.toString(v),
|
|
1823
|
+
transition: g,
|
|
1824
|
+
opacity: y ? 0.5 : 1
|
|
1825
|
+
};
|
|
1826
|
+
return /* @__PURE__ */ e.jsx(
|
|
1827
|
+
"div",
|
|
1828
|
+
{
|
|
1829
|
+
ref: f,
|
|
1830
|
+
style: V,
|
|
1831
|
+
className: `border border-border rounded-md bg-surface-variant ${c}`,
|
|
1832
|
+
children: u ? (
|
|
1833
|
+
// ── Expanded ──────────────────────────────────────────────────────────
|
|
1834
|
+
/* @__PURE__ */ e.jsxs("div", { className: "p-3", children: [
|
|
1835
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center mb-2", children: [
|
|
1836
|
+
/* @__PURE__ */ e.jsx(
|
|
1837
|
+
"button",
|
|
1838
|
+
{
|
|
1839
|
+
type: "button",
|
|
1840
|
+
...d,
|
|
1841
|
+
...m,
|
|
1842
|
+
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing rounded hover:bg-surface-variant inline-flex items-center justify-center",
|
|
1843
|
+
"aria-label": "Drag to reorder",
|
|
1844
|
+
children: /* @__PURE__ */ e.jsx(ue, { className: "w-4 h-4" })
|
|
1845
|
+
}
|
|
1846
|
+
),
|
|
1847
|
+
/* @__PURE__ */ e.jsxs(
|
|
1848
|
+
"span",
|
|
1849
|
+
{
|
|
1850
|
+
className: "text-sm font-medium text-text-secondary flex-1 cursor-pointer select-none",
|
|
1851
|
+
onClick: () => x(!1),
|
|
1852
|
+
children: [
|
|
1853
|
+
"Item ",
|
|
1854
|
+
s + 1
|
|
1855
|
+
]
|
|
1856
|
+
}
|
|
1857
|
+
),
|
|
1858
|
+
/* @__PURE__ */ e.jsx(
|
|
1859
|
+
O,
|
|
1860
|
+
{
|
|
1861
|
+
type: "button",
|
|
1862
|
+
variant: "ghost",
|
|
1863
|
+
size: "icon",
|
|
1864
|
+
onClick: () => x(!1),
|
|
1865
|
+
className: "h-auto w-auto p-1",
|
|
1866
|
+
"aria-label": "Collapse",
|
|
1867
|
+
leftIcon: /* @__PURE__ */ e.jsx(me, { className: "w-4 h-4 transition-transform rotate-90" })
|
|
1868
|
+
}
|
|
1869
|
+
),
|
|
1870
|
+
/* @__PURE__ */ e.jsx(
|
|
1871
|
+
O,
|
|
1872
|
+
{
|
|
1873
|
+
type: "button",
|
|
1874
|
+
variant: "ghost",
|
|
1875
|
+
size: "icon",
|
|
1876
|
+
onClick: i,
|
|
1877
|
+
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800",
|
|
1878
|
+
"aria-label": "Remove",
|
|
1879
|
+
leftIcon: /* @__PURE__ */ e.jsx(ee, { className: "w-4 h-4" })
|
|
1880
|
+
}
|
|
1881
|
+
)
|
|
1882
|
+
] }),
|
|
1883
|
+
l
|
|
1884
|
+
] })
|
|
1885
|
+
) : (
|
|
1886
|
+
// ── Collapsed ─────────────────────────────────────────────────────────
|
|
1887
|
+
/* @__PURE__ */ e.jsxs("div", { className: "relative group", children: [
|
|
1888
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 px-3 py-2", children: [
|
|
1889
|
+
/* @__PURE__ */ e.jsx(
|
|
1890
|
+
"button",
|
|
1891
|
+
{
|
|
1892
|
+
type: "button",
|
|
1893
|
+
...d,
|
|
1894
|
+
...m,
|
|
1895
|
+
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing flex-shrink-0 rounded hover:bg-surface-variant inline-flex items-center justify-center",
|
|
1896
|
+
"aria-label": "Drag to reorder",
|
|
1897
|
+
children: /* @__PURE__ */ e.jsx(ue, { className: "w-4 h-4" })
|
|
1898
|
+
}
|
|
1899
|
+
),
|
|
1900
|
+
/* @__PURE__ */ e.jsx(
|
|
1901
|
+
"span",
|
|
1902
|
+
{
|
|
1903
|
+
className: "flex-1 text-sm text-text-secondary truncate cursor-pointer select-none",
|
|
1904
|
+
onClick: () => x(!0),
|
|
1905
|
+
children: t
|
|
1906
|
+
}
|
|
1907
|
+
),
|
|
1908
|
+
/* @__PURE__ */ e.jsx(
|
|
1909
|
+
O,
|
|
1910
|
+
{
|
|
1911
|
+
type: "button",
|
|
1912
|
+
variant: "ghost",
|
|
1913
|
+
size: "icon",
|
|
1914
|
+
onClick: () => x(!0),
|
|
1915
|
+
className: "h-auto w-auto p-1 flex-shrink-0",
|
|
1916
|
+
"aria-label": "Expand",
|
|
1917
|
+
leftIcon: /* @__PURE__ */ e.jsx(me, { className: "w-4 h-4 transition-transform" })
|
|
1918
|
+
}
|
|
1919
|
+
),
|
|
1920
|
+
/* @__PURE__ */ e.jsx(
|
|
1921
|
+
O,
|
|
1922
|
+
{
|
|
1923
|
+
type: "button",
|
|
1924
|
+
variant: "ghost",
|
|
1925
|
+
size: "icon",
|
|
1926
|
+
onClick: i,
|
|
1927
|
+
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800 flex-shrink-0",
|
|
1928
|
+
"aria-label": "Remove",
|
|
1929
|
+
leftIcon: /* @__PURE__ */ e.jsx(ee, { className: "w-4 h-4" })
|
|
1930
|
+
}
|
|
1931
|
+
)
|
|
1932
|
+
] }),
|
|
1933
|
+
n && /* @__PURE__ */ e.jsx("div", { className: "absolute left-0 top-full mt-1 z-10 w-80 bg-gray-900 text-white text-xs rounded-md p-3 shadow-lg opacity-0 group-hover:opacity-100 pointer-events-none transition-opacity duration-150", children: n })
|
|
1934
|
+
] })
|
|
1935
|
+
)
|
|
1936
|
+
}
|
|
1937
|
+
);
|
|
1938
|
+
}
|
|
1939
|
+
nr.displayName = "SortableItem";
|
|
1940
|
+
const lr = {
|
|
1766
1941
|
bg: "bg-indigo-600",
|
|
1767
1942
|
activeBg: "bg-indigo-700",
|
|
1768
1943
|
text: "text-indigo-200",
|
|
@@ -1770,11 +1945,11 @@ const Qe = {
|
|
|
1770
1945
|
hoverBg: "hover:bg-indigo-700",
|
|
1771
1946
|
hoverText: "hover:text-white"
|
|
1772
1947
|
};
|
|
1773
|
-
function
|
|
1948
|
+
function E(...r) {
|
|
1774
1949
|
return r.filter(Boolean).join(" ");
|
|
1775
1950
|
}
|
|
1776
|
-
function
|
|
1777
|
-
const [t, a] =
|
|
1951
|
+
function he({ item: r, colorScheme: s }) {
|
|
1952
|
+
const [t, a] = $(r.current || r.children?.some((n) => n.current)), l = r.children && r.children.length > 0;
|
|
1778
1953
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1779
1954
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
1780
1955
|
"a",
|
|
@@ -1783,7 +1958,7 @@ function me({ item: r, colorScheme: s }) {
|
|
|
1783
1958
|
onClick: (n) => {
|
|
1784
1959
|
l && (n.preventDefault(), a(!t));
|
|
1785
1960
|
},
|
|
1786
|
-
className:
|
|
1961
|
+
className: E(
|
|
1787
1962
|
r.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
1788
1963
|
"group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
|
|
1789
1964
|
l ? "cursor-pointer" : ""
|
|
@@ -1794,7 +1969,7 @@ function me({ item: r, colorScheme: s }) {
|
|
|
1794
1969
|
r.icon,
|
|
1795
1970
|
{
|
|
1796
1971
|
"aria-hidden": "true",
|
|
1797
|
-
className:
|
|
1972
|
+
className: E(
|
|
1798
1973
|
r.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
1799
1974
|
"size-6 shrink-0"
|
|
1800
1975
|
)
|
|
@@ -1803,9 +1978,9 @@ function me({ item: r, colorScheme: s }) {
|
|
|
1803
1978
|
r.name
|
|
1804
1979
|
] }),
|
|
1805
1980
|
l && /* @__PURE__ */ e.jsx(
|
|
1806
|
-
|
|
1981
|
+
re,
|
|
1807
1982
|
{
|
|
1808
|
-
className:
|
|
1983
|
+
className: E(
|
|
1809
1984
|
"size-5 shrink-0 transition-transform",
|
|
1810
1985
|
t ? "rotate-180" : "",
|
|
1811
1986
|
r.current ? s.activeText : s.text
|
|
@@ -1819,7 +1994,7 @@ function me({ item: r, colorScheme: s }) {
|
|
|
1819
1994
|
"a",
|
|
1820
1995
|
{
|
|
1821
1996
|
href: n.href,
|
|
1822
|
-
className:
|
|
1997
|
+
className: E(
|
|
1823
1998
|
n.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
1824
1999
|
"group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
|
|
1825
2000
|
),
|
|
@@ -1828,7 +2003,7 @@ function me({ item: r, colorScheme: s }) {
|
|
|
1828
2003
|
n.icon,
|
|
1829
2004
|
{
|
|
1830
2005
|
"aria-hidden": "true",
|
|
1831
|
-
className:
|
|
2006
|
+
className: E(
|
|
1832
2007
|
n.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
1833
2008
|
"size-5 shrink-0"
|
|
1834
2009
|
)
|
|
@@ -1840,28 +2015,28 @@ function me({ item: r, colorScheme: s }) {
|
|
|
1840
2015
|
) }, n.name)) })
|
|
1841
2016
|
] });
|
|
1842
2017
|
}
|
|
1843
|
-
function
|
|
1844
|
-
const [l, n] =
|
|
2018
|
+
function _r({ company: r, profile: s, navigation: t, colorScheme: a = lr }) {
|
|
2019
|
+
const [l, n] = $(!1);
|
|
1845
2020
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1846
|
-
/* @__PURE__ */ e.jsxs(
|
|
2021
|
+
/* @__PURE__ */ e.jsxs(Ae, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
|
|
1847
2022
|
/* @__PURE__ */ e.jsx(
|
|
1848
|
-
|
|
2023
|
+
_e,
|
|
1849
2024
|
{
|
|
1850
2025
|
transition: !0,
|
|
1851
2026
|
className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
|
|
1852
2027
|
}
|
|
1853
2028
|
),
|
|
1854
2029
|
/* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
|
|
1855
|
-
|
|
2030
|
+
Be,
|
|
1856
2031
|
{
|
|
1857
2032
|
transition: !0,
|
|
1858
2033
|
className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
|
|
1859
2034
|
children: [
|
|
1860
|
-
/* @__PURE__ */ e.jsx(
|
|
2035
|
+
/* @__PURE__ */ e.jsx(De, { children: /* @__PURE__ */ e.jsx("div", { className: "absolute top-0 left-full flex w-16 justify-center pt-5 duration-300 ease-in-out data-closed:opacity-0", children: /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!1), className: "-m-2.5 p-2.5", children: [
|
|
1861
2036
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
|
|
1862
|
-
/* @__PURE__ */ e.jsx(
|
|
2037
|
+
/* @__PURE__ */ e.jsx($e, { "aria-hidden": "true", className: "size-6 text-white" })
|
|
1863
2038
|
] }) }) }),
|
|
1864
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
2039
|
+
/* @__PURE__ */ e.jsxs("div", { className: E("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
|
|
1865
2040
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
1866
2041
|
"img",
|
|
1867
2042
|
{
|
|
@@ -1870,13 +2045,13 @@ function yr({ company: r, profile: s, navigation: t, colorScheme: a = Qe }) {
|
|
|
1870
2045
|
className: "h-8 w-auto"
|
|
1871
2046
|
}
|
|
1872
2047
|
) }),
|
|
1873
|
-
/* @__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((i) => /* @__PURE__ */ e.jsx(
|
|
2048
|
+
/* @__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((i) => /* @__PURE__ */ e.jsx(he, { item: i, colorScheme: a }, i.name)) }) }) }) })
|
|
1874
2049
|
] })
|
|
1875
2050
|
]
|
|
1876
2051
|
}
|
|
1877
2052
|
) })
|
|
1878
2053
|
] }),
|
|
1879
|
-
/* @__PURE__ */ e.jsx("div", { className: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col", children: /* @__PURE__ */ e.jsxs("div", { className:
|
|
2054
|
+
/* @__PURE__ */ e.jsx("div", { className: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col", children: /* @__PURE__ */ e.jsxs("div", { className: E("flex grow flex-col gap-y-5 overflow-y-auto px-6", a.bg), children: [
|
|
1880
2055
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
1881
2056
|
"img",
|
|
1882
2057
|
{
|
|
@@ -1886,12 +2061,12 @@ function yr({ company: r, profile: s, navigation: t, colorScheme: a = Qe }) {
|
|
|
1886
2061
|
}
|
|
1887
2062
|
) }),
|
|
1888
2063
|
/* @__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: [
|
|
1889
|
-
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((i) => /* @__PURE__ */ e.jsx(
|
|
2064
|
+
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((i) => /* @__PURE__ */ e.jsx(he, { item: i, colorScheme: a }, i.name)) }) }),
|
|
1890
2065
|
/* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
|
|
1891
2066
|
"a",
|
|
1892
2067
|
{
|
|
1893
2068
|
href: "#",
|
|
1894
|
-
className:
|
|
2069
|
+
className: E(
|
|
1895
2070
|
"flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
|
|
1896
2071
|
a.activeText,
|
|
1897
2072
|
a.hoverBg
|
|
@@ -1902,7 +2077,7 @@ function yr({ company: r, profile: s, navigation: t, colorScheme: a = Qe }) {
|
|
|
1902
2077
|
{
|
|
1903
2078
|
alt: s.name,
|
|
1904
2079
|
src: s.image,
|
|
1905
|
-
className:
|
|
2080
|
+
className: E("size-8 rounded-full", a.activeBg)
|
|
1906
2081
|
}
|
|
1907
2082
|
),
|
|
1908
2083
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
@@ -1912,12 +2087,12 @@ function yr({ company: r, profile: s, navigation: t, colorScheme: a = Qe }) {
|
|
|
1912
2087
|
) })
|
|
1913
2088
|
] }) })
|
|
1914
2089
|
] }) }),
|
|
1915
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1916
|
-
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className:
|
|
2090
|
+
/* @__PURE__ */ e.jsxs("div", { className: E("sticky top-0 z-40 flex items-center gap-x-6 px-4 py-4 shadow-xs sm:px-6 lg:hidden", a.bg), children: [
|
|
2091
|
+
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className: E("-m-2.5 p-2.5 lg:hidden", a.text), children: [
|
|
1917
2092
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
|
|
1918
|
-
/* @__PURE__ */ e.jsx(
|
|
2093
|
+
/* @__PURE__ */ e.jsx(Te, { "aria-hidden": "true", className: "size-6" })
|
|
1919
2094
|
] }),
|
|
1920
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
2095
|
+
/* @__PURE__ */ e.jsx("div", { className: E("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
|
|
1921
2096
|
/* @__PURE__ */ e.jsxs("a", { href: "#", children: [
|
|
1922
2097
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
1923
2098
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1925,14 +2100,14 @@ function yr({ company: r, profile: s, navigation: t, colorScheme: a = Qe }) {
|
|
|
1925
2100
|
{
|
|
1926
2101
|
alt: s.name,
|
|
1927
2102
|
src: s.image,
|
|
1928
|
-
className:
|
|
2103
|
+
className: E("size-8 rounded-full", a.activeBg)
|
|
1929
2104
|
}
|
|
1930
2105
|
)
|
|
1931
2106
|
] })
|
|
1932
2107
|
] })
|
|
1933
2108
|
] }) });
|
|
1934
2109
|
}
|
|
1935
|
-
const
|
|
2110
|
+
const or = {
|
|
1936
2111
|
activeBg: "bg-reseda-green-700",
|
|
1937
2112
|
activeText: "text-white",
|
|
1938
2113
|
completedBg: "bg-success-500",
|
|
@@ -1943,8 +2118,8 @@ const er = {
|
|
|
1943
2118
|
labelInactiveText: "text-text-muted",
|
|
1944
2119
|
connectorBg: "bg-border"
|
|
1945
2120
|
};
|
|
1946
|
-
function
|
|
1947
|
-
const a = t ||
|
|
2121
|
+
function Br({ currentStep: r, steps: s, colorConfig: t }) {
|
|
2122
|
+
const a = t || or;
|
|
1948
2123
|
return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: s.map((l, n) => /* @__PURE__ */ e.jsxs("li", { className: `flex items-center ${n < s.length - 1 ? "flex-1" : ""}`, children: [
|
|
1949
2124
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
1950
2125
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1965,19 +2140,19 @@ function kr({ currentStep: r, steps: s, colorConfig: t }) {
|
|
|
1965
2140
|
n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
|
|
1966
2141
|
] }, l.number)) }) });
|
|
1967
2142
|
}
|
|
1968
|
-
const
|
|
2143
|
+
const cr = {
|
|
1969
2144
|
activeText: "text-reseda-green-700",
|
|
1970
2145
|
activeBorder: "border-reseda-green-700",
|
|
1971
2146
|
inactiveText: "text-text-secondary",
|
|
1972
2147
|
inactiveHoverText: "hover:text-text-primary",
|
|
1973
2148
|
disabledText: "text-text-disabled"
|
|
1974
2149
|
};
|
|
1975
|
-
function
|
|
1976
|
-
const n = l ||
|
|
2150
|
+
function Dr({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
|
|
2151
|
+
const n = l || cr;
|
|
1977
2152
|
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((i) => {
|
|
1978
2153
|
const c = s === i.id;
|
|
1979
2154
|
return /* @__PURE__ */ e.jsx(
|
|
1980
|
-
|
|
2155
|
+
O,
|
|
1981
2156
|
{
|
|
1982
2157
|
variant: "ghost",
|
|
1983
2158
|
onClick: () => !t && a(i.id),
|
|
@@ -1989,7 +2164,7 @@ function Cr({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig:
|
|
|
1989
2164
|
);
|
|
1990
2165
|
}) });
|
|
1991
2166
|
}
|
|
1992
|
-
function
|
|
2167
|
+
function Or({
|
|
1993
2168
|
status: r,
|
|
1994
2169
|
title: s,
|
|
1995
2170
|
message: t,
|
|
@@ -2002,25 +2177,25 @@ function Vr({
|
|
|
2002
2177
|
bg: "bg-success-50",
|
|
2003
2178
|
border: "border-success-200",
|
|
2004
2179
|
text: "text-success-700",
|
|
2005
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2180
|
+
icon: /* @__PURE__ */ e.jsx(pe, { className: "h-5 w-5" })
|
|
2006
2181
|
},
|
|
2007
2182
|
error: {
|
|
2008
2183
|
bg: "bg-error-50",
|
|
2009
2184
|
border: "border-error-200",
|
|
2010
2185
|
text: "text-error-700",
|
|
2011
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2186
|
+
icon: /* @__PURE__ */ e.jsx(be, { className: "h-5 w-5" })
|
|
2012
2187
|
},
|
|
2013
2188
|
warning: {
|
|
2014
2189
|
bg: "bg-warning-50",
|
|
2015
2190
|
border: "border-warning-200",
|
|
2016
2191
|
text: "text-warning-700",
|
|
2017
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2192
|
+
icon: /* @__PURE__ */ e.jsx(ge, { className: "h-5 w-5" })
|
|
2018
2193
|
},
|
|
2019
2194
|
info: {
|
|
2020
2195
|
bg: "bg-info-50",
|
|
2021
2196
|
border: "border-info-200",
|
|
2022
2197
|
text: "text-info-700",
|
|
2023
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2198
|
+
icon: /* @__PURE__ */ e.jsx(ve, { className: "h-5 w-5" })
|
|
2024
2199
|
},
|
|
2025
2200
|
loading: {
|
|
2026
2201
|
bg: "bg-blue-50",
|
|
@@ -2056,42 +2231,43 @@ function Vr({
|
|
|
2056
2231
|
] }) });
|
|
2057
2232
|
}
|
|
2058
2233
|
export {
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2234
|
+
kr as Accordion,
|
|
2235
|
+
Vr as ActionCard,
|
|
2236
|
+
G as Alert,
|
|
2237
|
+
Ze as Badge,
|
|
2238
|
+
O as Button,
|
|
2239
|
+
$r as Card,
|
|
2240
|
+
Nr as CheckboxGroup,
|
|
2241
|
+
Le as ColorPalette,
|
|
2242
|
+
pr as Demo,
|
|
2243
|
+
Er as DetailPanel,
|
|
2244
|
+
wr as FileUpload,
|
|
2245
|
+
jr as FormField,
|
|
2246
|
+
He as Input,
|
|
2247
|
+
Ar as OptionCard,
|
|
2248
|
+
Rr as PageHeader,
|
|
2249
|
+
yr as RadioGroup,
|
|
2250
|
+
Tr as Section,
|
|
2251
|
+
Ge as Select,
|
|
2252
|
+
_r as Sidebar,
|
|
2253
|
+
tr as Slider,
|
|
2254
|
+
sr as SocialButton,
|
|
2255
|
+
nr as SortableItem,
|
|
2256
|
+
Cr as StatsGrid,
|
|
2257
|
+
Or as StatusBanner,
|
|
2258
|
+
Br as Stepper,
|
|
2259
|
+
Dr as TabBar,
|
|
2260
|
+
Ke as TagInput,
|
|
2261
|
+
ar as Textarea,
|
|
2262
|
+
Fe as ThemeProvider,
|
|
2263
|
+
Ye as ThemeToggle,
|
|
2264
|
+
gr as clearAllErrors,
|
|
2265
|
+
vr as clearFieldError,
|
|
2266
|
+
hr as getFirstError,
|
|
2267
|
+
Se as hasErrors,
|
|
2268
|
+
br as useForm,
|
|
2269
|
+
Ue as useTheme,
|
|
2270
|
+
Oe as validateField,
|
|
2095
2271
|
Q as validateForm,
|
|
2096
|
-
|
|
2272
|
+
fr as validators
|
|
2097
2273
|
};
|