acemyjob-ui 0.17.1 → 0.17.2
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 +644 -507
- 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,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { ChevronDownIcon as
|
|
4
|
-
import { Dialog as
|
|
5
|
-
const
|
|
1
|
+
import * as G from "react";
|
|
2
|
+
import P, { useState as T, useCallback as B, createContext as we, useEffect as J, useContext as Ne, useRef as ye } from "react";
|
|
3
|
+
import { ChevronDownIcon as ee, InformationCircleIcon as xe, ExclamationCircleIcon as fe, XCircleIcon as he, CheckCircleIcon as ve, XMarkIcon as ke, Bars3Icon as Ce } from "@heroicons/react/24/outline";
|
|
4
|
+
import { Dialog as Ve, DialogBackdrop as $e, DialogPanel as Te, TransitionChild as Ee } from "@headlessui/react";
|
|
5
|
+
const nr = {
|
|
6
6
|
required: (r = "This field is required") => ({
|
|
7
7
|
validate: (s) => typeof s == "string" ? s.trim().length > 0 : Array.isArray(s) ? s.length > 0 : s != null,
|
|
8
8
|
message: r
|
|
@@ -57,55 +57,55 @@ const ar = {
|
|
|
57
57
|
message: s
|
|
58
58
|
})
|
|
59
59
|
};
|
|
60
|
-
function
|
|
60
|
+
function Re(r, s) {
|
|
61
61
|
for (const t of s)
|
|
62
62
|
if (!t.validate(r))
|
|
63
63
|
return t.message;
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Q(r, s) {
|
|
67
67
|
const t = {};
|
|
68
68
|
for (const [a, l] of Object.entries(s)) {
|
|
69
|
-
const n = r[a], i =
|
|
69
|
+
const n = r[a], i = Re(n, l);
|
|
70
70
|
t[a] = i;
|
|
71
71
|
}
|
|
72
72
|
return t;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ae(r) {
|
|
75
75
|
return Object.values(r).some((s) => s !== null);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function lr(r) {
|
|
78
78
|
for (const s of Object.values(r))
|
|
79
79
|
if (s !== null)
|
|
80
80
|
return s;
|
|
81
81
|
return null;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function or(r, s) {
|
|
84
84
|
return {
|
|
85
85
|
...r,
|
|
86
86
|
[s]: null
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function cr(r) {
|
|
90
90
|
const s = {};
|
|
91
91
|
for (const t of Object.keys(r))
|
|
92
92
|
s[t] = null;
|
|
93
93
|
return s;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function ir({
|
|
96
96
|
initialValues: r,
|
|
97
97
|
validationRules: s = {},
|
|
98
98
|
onSubmit: t
|
|
99
99
|
}) {
|
|
100
|
-
const [a, l] =
|
|
100
|
+
const [a, l] = T(r), [n, i] = T({}), [c, u] = T({}), [f, d] = T(!1), m = JSON.stringify(a) !== JSON.stringify(r), x = B(
|
|
101
101
|
(p) => {
|
|
102
|
-
const { name: v, value: w, type:
|
|
102
|
+
const { name: v, value: w, type: A } = p.target;
|
|
103
103
|
let M = w;
|
|
104
|
-
if (
|
|
104
|
+
if (A === "checkbox" ? M = p.target.checked : A === "number" && (M = w ? Number(w) : ""), l((S) => ({
|
|
105
105
|
...S,
|
|
106
106
|
[v]: M
|
|
107
107
|
})), s[v]) {
|
|
108
|
-
const S =
|
|
108
|
+
const S = Q({ [v]: M }, { [v]: s[v] });
|
|
109
109
|
i((Y) => ({
|
|
110
110
|
...Y,
|
|
111
111
|
[v]: S[v]
|
|
@@ -113,7 +113,7 @@ function or({
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
[s]
|
|
116
|
-
), g =
|
|
116
|
+
), g = B(
|
|
117
117
|
(p) => {
|
|
118
118
|
const { name: v } = p.target;
|
|
119
119
|
u((w) => ({
|
|
@@ -122,59 +122,59 @@ function or({
|
|
|
122
122
|
}));
|
|
123
123
|
},
|
|
124
124
|
[]
|
|
125
|
-
), b =
|
|
125
|
+
), b = B((p, v) => {
|
|
126
126
|
if (l((w) => ({
|
|
127
127
|
...w,
|
|
128
128
|
[p]: v
|
|
129
129
|
})), s[p]) {
|
|
130
|
-
const w =
|
|
131
|
-
i((
|
|
132
|
-
...
|
|
130
|
+
const w = Q({ [p]: v }, { [p]: s[p] });
|
|
131
|
+
i((A) => ({
|
|
132
|
+
...A,
|
|
133
133
|
[p]: w[p]
|
|
134
134
|
}));
|
|
135
135
|
}
|
|
136
|
-
}, [s]),
|
|
136
|
+
}, [s]), y = B((p, v) => {
|
|
137
137
|
i((w) => ({
|
|
138
138
|
...w,
|
|
139
139
|
[p]: v
|
|
140
140
|
}));
|
|
141
|
-
}, []),
|
|
141
|
+
}, []), E = B(
|
|
142
142
|
async (p) => {
|
|
143
143
|
p.preventDefault();
|
|
144
|
-
const v =
|
|
144
|
+
const v = Q(a, s);
|
|
145
145
|
i(v);
|
|
146
146
|
const w = {};
|
|
147
|
-
for (const
|
|
148
|
-
w[
|
|
149
|
-
if (u(w), !
|
|
147
|
+
for (const A of Object.keys(a))
|
|
148
|
+
w[A] = !0;
|
|
149
|
+
if (u(w), !Ae(v) && t) {
|
|
150
150
|
d(!0);
|
|
151
151
|
try {
|
|
152
152
|
await t(a);
|
|
153
|
-
} catch (
|
|
154
|
-
console.error("Form submission error:",
|
|
153
|
+
} catch (A) {
|
|
154
|
+
console.error("Form submission error:", A);
|
|
155
155
|
} finally {
|
|
156
156
|
d(!1);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
[a, s, t]
|
|
161
|
-
),
|
|
161
|
+
), V = B(() => {
|
|
162
162
|
l(r), i({}), u({}), d(!1);
|
|
163
|
-
}, [r]),
|
|
163
|
+
}, [r]), R = B(
|
|
164
164
|
(p) => ({
|
|
165
165
|
name: p,
|
|
166
166
|
value: a[p] || "",
|
|
167
|
-
onChange:
|
|
167
|
+
onChange: x,
|
|
168
168
|
onBlur: g
|
|
169
169
|
}),
|
|
170
|
-
[a,
|
|
171
|
-
),
|
|
170
|
+
[a, x, g]
|
|
171
|
+
), N = B(
|
|
172
172
|
(p) => n[p] || null,
|
|
173
173
|
[n]
|
|
174
|
-
),
|
|
174
|
+
), O = B(
|
|
175
175
|
(p) => c[p] || !1,
|
|
176
176
|
[c]
|
|
177
|
-
),
|
|
177
|
+
), L = B(
|
|
178
178
|
(p) => a[p] !== r[p],
|
|
179
179
|
[a, r]
|
|
180
180
|
);
|
|
@@ -184,19 +184,19 @@ function or({
|
|
|
184
184
|
touched: c,
|
|
185
185
|
isSubmitting: f,
|
|
186
186
|
isDirty: m,
|
|
187
|
-
handleChange:
|
|
187
|
+
handleChange: x,
|
|
188
188
|
handleBlur: g,
|
|
189
189
|
setFieldValue: b,
|
|
190
|
-
setFieldError:
|
|
191
|
-
handleSubmit:
|
|
192
|
-
resetForm:
|
|
193
|
-
getFieldProps:
|
|
194
|
-
getFieldError:
|
|
195
|
-
isFieldTouched:
|
|
196
|
-
isFieldDirty:
|
|
190
|
+
setFieldError: y,
|
|
191
|
+
handleSubmit: E,
|
|
192
|
+
resetForm: V,
|
|
193
|
+
getFieldProps: R,
|
|
194
|
+
getFieldError: N,
|
|
195
|
+
isFieldTouched: O,
|
|
196
|
+
isFieldDirty: L
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
|
-
var
|
|
199
|
+
var W = { exports: {} }, I = {};
|
|
200
200
|
/**
|
|
201
201
|
* @license React
|
|
202
202
|
* react-jsx-runtime.production.js
|
|
@@ -206,10 +206,10 @@ var U = { exports: {} }, L = {};
|
|
|
206
206
|
* This source code is licensed under the MIT license found in the
|
|
207
207
|
* LICENSE file in the root directory of this source tree.
|
|
208
208
|
*/
|
|
209
|
-
var
|
|
210
|
-
function
|
|
211
|
-
if (
|
|
212
|
-
|
|
209
|
+
var le;
|
|
210
|
+
function _e() {
|
|
211
|
+
if (le) return I;
|
|
212
|
+
le = 1;
|
|
213
213
|
var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
214
214
|
function t(a, l, n) {
|
|
215
215
|
var i = null;
|
|
@@ -226,9 +226,9 @@ function Re() {
|
|
|
226
226
|
props: n
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
|
-
return
|
|
229
|
+
return I.Fragment = s, I.jsx = t, I.jsxs = t, I;
|
|
230
230
|
}
|
|
231
|
-
var
|
|
231
|
+
var U = {};
|
|
232
232
|
/**
|
|
233
233
|
* @license React
|
|
234
234
|
* react-jsx-runtime.development.js
|
|
@@ -238,26 +238,26 @@ var I = {};
|
|
|
238
238
|
* This source code is licensed under the MIT license found in the
|
|
239
239
|
* LICENSE file in the root directory of this source tree.
|
|
240
240
|
*/
|
|
241
|
-
var
|
|
242
|
-
function
|
|
243
|
-
return
|
|
241
|
+
var oe;
|
|
242
|
+
function Be() {
|
|
243
|
+
return oe || (oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
244
244
|
function r(o) {
|
|
245
245
|
if (o == null) return null;
|
|
246
246
|
if (typeof o == "function")
|
|
247
247
|
return o.$$typeof === M ? null : o.displayName || o.name || null;
|
|
248
248
|
if (typeof o == "string") return o;
|
|
249
249
|
switch (o) {
|
|
250
|
-
case
|
|
250
|
+
case y:
|
|
251
251
|
return "Fragment";
|
|
252
|
-
case
|
|
252
|
+
case V:
|
|
253
253
|
return "Profiler";
|
|
254
|
-
case
|
|
254
|
+
case E:
|
|
255
255
|
return "StrictMode";
|
|
256
|
-
case
|
|
256
|
+
case L:
|
|
257
257
|
return "Suspense";
|
|
258
258
|
case p:
|
|
259
259
|
return "SuspenseList";
|
|
260
|
-
case
|
|
260
|
+
case A:
|
|
261
261
|
return "Activity";
|
|
262
262
|
}
|
|
263
263
|
if (typeof o == "object")
|
|
@@ -266,19 +266,19 @@ function Ae() {
|
|
|
266
266
|
), o.$$typeof) {
|
|
267
267
|
case b:
|
|
268
268
|
return "Portal";
|
|
269
|
-
case
|
|
269
|
+
case N:
|
|
270
270
|
return (o.displayName || "Context") + ".Provider";
|
|
271
|
-
case
|
|
271
|
+
case R:
|
|
272
272
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
273
|
-
case
|
|
274
|
-
var
|
|
275
|
-
return o = o.displayName, o || (o =
|
|
273
|
+
case O:
|
|
274
|
+
var h = o.render;
|
|
275
|
+
return o = o.displayName, o || (o = h.displayName || h.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
276
276
|
case v:
|
|
277
|
-
return
|
|
277
|
+
return h = o.displayName || null, h !== null ? h : r(o.type) || "Memo";
|
|
278
278
|
case w:
|
|
279
|
-
|
|
279
|
+
h = o._payload, o = o._init;
|
|
280
280
|
try {
|
|
281
|
-
return r(o(
|
|
281
|
+
return r(o(h));
|
|
282
282
|
} catch {
|
|
283
283
|
}
|
|
284
284
|
}
|
|
@@ -290,27 +290,27 @@ function Ae() {
|
|
|
290
290
|
function t(o) {
|
|
291
291
|
try {
|
|
292
292
|
s(o);
|
|
293
|
-
var
|
|
293
|
+
var h = !1;
|
|
294
294
|
} catch {
|
|
295
|
-
|
|
295
|
+
h = !0;
|
|
296
296
|
}
|
|
297
|
-
if (
|
|
298
|
-
|
|
299
|
-
var j =
|
|
297
|
+
if (h) {
|
|
298
|
+
h = console;
|
|
299
|
+
var j = h.error, k = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
300
300
|
return j.call(
|
|
301
|
-
|
|
301
|
+
h,
|
|
302
302
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
303
|
-
|
|
303
|
+
k
|
|
304
304
|
), s(o);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
function a(o) {
|
|
308
|
-
if (o ===
|
|
308
|
+
if (o === y) return "<>";
|
|
309
309
|
if (typeof o == "object" && o !== null && o.$$typeof === w)
|
|
310
310
|
return "<...>";
|
|
311
311
|
try {
|
|
312
|
-
var
|
|
313
|
-
return
|
|
312
|
+
var h = r(o);
|
|
313
|
+
return h ? "<" + h + ">" : "<...>";
|
|
314
314
|
} catch {
|
|
315
315
|
return "<...>";
|
|
316
316
|
}
|
|
@@ -324,16 +324,16 @@ function Ae() {
|
|
|
324
324
|
}
|
|
325
325
|
function i(o) {
|
|
326
326
|
if (Y.call(o, "key")) {
|
|
327
|
-
var
|
|
328
|
-
if (
|
|
327
|
+
var h = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
328
|
+
if (h && h.isReactWarning) return !1;
|
|
329
329
|
}
|
|
330
330
|
return o.key !== void 0;
|
|
331
331
|
}
|
|
332
|
-
function c(o,
|
|
332
|
+
function c(o, h) {
|
|
333
333
|
function j() {
|
|
334
|
-
|
|
334
|
+
re || (re = !0, console.error(
|
|
335
335
|
"%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
|
-
|
|
336
|
+
h
|
|
337
337
|
));
|
|
338
338
|
}
|
|
339
339
|
j.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
@@ -343,17 +343,17 @@ function Ae() {
|
|
|
343
343
|
}
|
|
344
344
|
function u() {
|
|
345
345
|
var o = r(this.type);
|
|
346
|
-
return
|
|
346
|
+
return se[o] || (se[o] = !0, console.error(
|
|
347
347
|
"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
348
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
349
349
|
}
|
|
350
|
-
function f(o,
|
|
351
|
-
return j =
|
|
350
|
+
function f(o, h, j, k, D, _, q, Z) {
|
|
351
|
+
return j = _.ref, o = {
|
|
352
352
|
$$typeof: g,
|
|
353
353
|
type: o,
|
|
354
|
-
key:
|
|
355
|
-
props:
|
|
356
|
-
_owner:
|
|
354
|
+
key: h,
|
|
355
|
+
props: _,
|
|
356
|
+
_owner: D
|
|
357
357
|
}, (j !== void 0 ? j : null) !== null ? Object.defineProperty(o, "ref", {
|
|
358
358
|
enumerable: !1,
|
|
359
359
|
get: u
|
|
@@ -371,118 +371,118 @@ function Ae() {
|
|
|
371
371
|
configurable: !1,
|
|
372
372
|
enumerable: !1,
|
|
373
373
|
writable: !0,
|
|
374
|
-
value:
|
|
374
|
+
value: q
|
|
375
375
|
}), Object.defineProperty(o, "_debugTask", {
|
|
376
376
|
configurable: !1,
|
|
377
377
|
enumerable: !1,
|
|
378
378
|
writable: !0,
|
|
379
|
-
value:
|
|
379
|
+
value: Z
|
|
380
380
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
381
381
|
}
|
|
382
|
-
function d(o,
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
385
|
-
if (
|
|
386
|
-
if (
|
|
387
|
-
for (
|
|
388
|
-
m(
|
|
389
|
-
Object.freeze && Object.freeze(
|
|
382
|
+
function d(o, h, j, k, D, _, q, Z) {
|
|
383
|
+
var C = h.children;
|
|
384
|
+
if (C !== void 0)
|
|
385
|
+
if (k)
|
|
386
|
+
if (pe(C)) {
|
|
387
|
+
for (k = 0; k < C.length; k++)
|
|
388
|
+
m(C[k]);
|
|
389
|
+
Object.freeze && Object.freeze(C);
|
|
390
390
|
} else
|
|
391
391
|
console.error(
|
|
392
392
|
"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
393
|
);
|
|
394
|
-
else m(
|
|
395
|
-
if (Y.call(
|
|
396
|
-
|
|
397
|
-
var
|
|
398
|
-
return
|
|
394
|
+
else m(C);
|
|
395
|
+
if (Y.call(h, "key")) {
|
|
396
|
+
C = r(o);
|
|
397
|
+
var z = Object.keys(h).filter(function(je) {
|
|
398
|
+
return je !== "key";
|
|
399
399
|
});
|
|
400
|
-
|
|
400
|
+
k = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", ne[C + k] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
401
401
|
`A props object containing a "key" prop is being spread into JSX:
|
|
402
402
|
let props = %s;
|
|
403
403
|
<%s {...props} />
|
|
404
404
|
React keys must be passed directly to JSX without using spread:
|
|
405
405
|
let props = %s;
|
|
406
406
|
<%s key={someKey} {...props} />`,
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
),
|
|
407
|
+
k,
|
|
408
|
+
C,
|
|
409
|
+
z,
|
|
410
|
+
C
|
|
411
|
+
), ne[C + k] = !0);
|
|
412
412
|
}
|
|
413
|
-
if (
|
|
413
|
+
if (C = null, j !== void 0 && (t(j), C = "" + j), i(h) && (t(h.key), C = "" + h.key), "key" in h) {
|
|
414
414
|
j = {};
|
|
415
|
-
for (var
|
|
416
|
-
|
|
417
|
-
} else j =
|
|
418
|
-
return
|
|
415
|
+
for (var K in h)
|
|
416
|
+
K !== "key" && (j[K] = h[K]);
|
|
417
|
+
} else j = h;
|
|
418
|
+
return C && c(
|
|
419
419
|
j,
|
|
420
420
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
421
421
|
), f(
|
|
422
422
|
o,
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
423
|
+
C,
|
|
424
|
+
_,
|
|
425
|
+
D,
|
|
426
426
|
l(),
|
|
427
427
|
j,
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
q,
|
|
429
|
+
Z
|
|
430
430
|
);
|
|
431
431
|
}
|
|
432
432
|
function m(o) {
|
|
433
433
|
typeof o == "object" && o !== null && o.$$typeof === g && o._store && (o._store.validated = 1);
|
|
434
434
|
}
|
|
435
|
-
var
|
|
435
|
+
var x = P, g = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), V = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), N = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), S = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, pe = Array.isArray, X = console.createTask ? console.createTask : function() {
|
|
436
436
|
return null;
|
|
437
437
|
};
|
|
438
|
-
|
|
438
|
+
x = {
|
|
439
439
|
"react-stack-bottom-frame": function(o) {
|
|
440
440
|
return o();
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
|
-
var
|
|
444
|
-
|
|
443
|
+
var re, se = {}, ae = x["react-stack-bottom-frame"].bind(
|
|
444
|
+
x,
|
|
445
445
|
n
|
|
446
|
-
)(),
|
|
447
|
-
|
|
448
|
-
var
|
|
446
|
+
)(), te = X(a(n)), ne = {};
|
|
447
|
+
U.Fragment = y, U.jsx = function(o, h, j, k, D) {
|
|
448
|
+
var _ = 1e4 > S.recentlyCreatedOwnerStacks++;
|
|
449
449
|
return d(
|
|
450
450
|
o,
|
|
451
|
-
|
|
451
|
+
h,
|
|
452
452
|
j,
|
|
453
453
|
!1,
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
454
|
+
k,
|
|
455
|
+
D,
|
|
456
|
+
_ ? Error("react-stack-top-frame") : ae,
|
|
457
|
+
_ ? X(a(o)) : te
|
|
458
458
|
);
|
|
459
|
-
},
|
|
460
|
-
var
|
|
459
|
+
}, U.jsxs = function(o, h, j, k, D) {
|
|
460
|
+
var _ = 1e4 > S.recentlyCreatedOwnerStacks++;
|
|
461
461
|
return d(
|
|
462
462
|
o,
|
|
463
|
-
|
|
463
|
+
h,
|
|
464
464
|
j,
|
|
465
465
|
!0,
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
466
|
+
k,
|
|
467
|
+
D,
|
|
468
|
+
_ ? Error("react-stack-top-frame") : ae,
|
|
469
|
+
_ ? X(a(o)) : te
|
|
470
470
|
);
|
|
471
471
|
};
|
|
472
|
-
}()),
|
|
472
|
+
}()), U;
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
function
|
|
476
|
-
return
|
|
474
|
+
var ce;
|
|
475
|
+
function Oe() {
|
|
476
|
+
return ce || (ce = 1, process.env.NODE_ENV === "production" ? W.exports = _e() : W.exports = Be()), W.exports;
|
|
477
477
|
}
|
|
478
|
-
var e =
|
|
479
|
-
const
|
|
478
|
+
var e = Oe();
|
|
479
|
+
const ge = (r) => r.replace("--color-", "bg-"), De = ({ name: r, cssVar: s, value: t }) => {
|
|
480
480
|
const a = `rgb(${t})`;
|
|
481
481
|
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
482
|
/* @__PURE__ */ e.jsx(
|
|
483
483
|
"div",
|
|
484
484
|
{
|
|
485
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
485
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${ge(s)}`
|
|
486
486
|
}
|
|
487
487
|
),
|
|
488
488
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
@@ -491,10 +491,10 @@ const ve = (r) => r.replace("--color-", "bg-"), Oe = ({ name: r, cssVar: s, valu
|
|
|
491
491
|
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: a })
|
|
492
492
|
] })
|
|
493
493
|
] });
|
|
494
|
-
},
|
|
494
|
+
}, ie = ({ title: r, colors: s }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
495
495
|
/* @__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
|
-
] }),
|
|
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(De, { ...t }, t.name)) })
|
|
497
|
+
] }), Pe = () => {
|
|
498
498
|
const r = [
|
|
499
499
|
{
|
|
500
500
|
title: "Success Colors (Green)",
|
|
@@ -710,15 +710,15 @@ const ve = (r) => r.replace("--color-", "bg-"), Oe = ({ name: r, cssVar: s, valu
|
|
|
710
710
|
/* @__PURE__ */ e.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
|
|
711
711
|
/* @__PURE__ */ e.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
|
|
712
712
|
] }),
|
|
713
|
-
s.map((a) => /* @__PURE__ */ e.jsx(
|
|
714
|
-
r.map((a) => /* @__PURE__ */ e.jsx(
|
|
713
|
+
s.map((a) => /* @__PURE__ */ e.jsx(ie, { ...a }, a.title)),
|
|
714
|
+
r.map((a) => /* @__PURE__ */ e.jsx(ie, { ...a }, a.title)),
|
|
715
715
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
716
716
|
/* @__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
717
|
/* @__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
718
|
/* @__PURE__ */ e.jsx(
|
|
719
719
|
"div",
|
|
720
720
|
{
|
|
721
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
721
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${ge(a.cssVar)}`
|
|
722
722
|
}
|
|
723
723
|
),
|
|
724
724
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
@@ -729,24 +729,24 @@ const ve = (r) => r.replace("--color-", "bg-"), Oe = ({ name: r, cssVar: s, valu
|
|
|
729
729
|
] }),
|
|
730
730
|
/* @__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
731
|
] });
|
|
732
|
-
},
|
|
732
|
+
}, be = we(void 0), Se = ({
|
|
733
733
|
children: r,
|
|
734
734
|
defaultTheme: s = "system",
|
|
735
735
|
storageKey: t = "acemyjob-ui-theme"
|
|
736
736
|
}) => {
|
|
737
|
-
const [a, l] =
|
|
738
|
-
|
|
737
|
+
const [a, l] = T(s), [n, i] = T("light"), [c, u] = T(!1);
|
|
738
|
+
J(() => {
|
|
739
739
|
const d = localStorage.getItem(t);
|
|
740
740
|
d && l(d), u(!0);
|
|
741
|
-
}, [t]),
|
|
741
|
+
}, [t]), J(() => {
|
|
742
742
|
if (!c) return;
|
|
743
743
|
const d = window.document.documentElement, m = () => {
|
|
744
|
-
let
|
|
745
|
-
a === "system" ?
|
|
744
|
+
let x;
|
|
745
|
+
a === "system" ? x = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : x = a, i(x), d.classList.remove("light", "dark"), d.classList.add(x);
|
|
746
746
|
};
|
|
747
747
|
if (m(), a === "system") {
|
|
748
|
-
const
|
|
749
|
-
return
|
|
748
|
+
const x = window.matchMedia("(prefers-color-scheme: dark)"), g = () => m();
|
|
749
|
+
return x.addEventListener("change", g), () => x.removeEventListener("change", g);
|
|
750
750
|
}
|
|
751
751
|
}, [a, c]);
|
|
752
752
|
const f = {
|
|
@@ -756,15 +756,15 @@ const ve = (r) => r.replace("--color-", "bg-"), Oe = ({ name: r, cssVar: s, valu
|
|
|
756
756
|
},
|
|
757
757
|
resolvedTheme: n
|
|
758
758
|
};
|
|
759
|
-
return /* @__PURE__ */ e.jsx(
|
|
760
|
-
},
|
|
761
|
-
const r =
|
|
759
|
+
return /* @__PURE__ */ e.jsx(be.Provider, { value: f, children: r });
|
|
760
|
+
}, Le = () => {
|
|
761
|
+
const r = Ne(be);
|
|
762
762
|
if (r === void 0)
|
|
763
763
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
764
764
|
return r;
|
|
765
|
-
},
|
|
766
|
-
const { theme: r, setTheme: s } =
|
|
767
|
-
if (
|
|
765
|
+
}, Me = () => {
|
|
766
|
+
const { theme: r, setTheme: s } = Le(), [t, a] = T(!1);
|
|
767
|
+
if (J(() => {
|
|
768
768
|
a(!0);
|
|
769
769
|
}, []), !t)
|
|
770
770
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -811,11 +811,11 @@ const ve = (r) => r.replace("--color-", "bg-"), Oe = ({ name: r, cssVar: s, valu
|
|
|
811
811
|
]
|
|
812
812
|
}
|
|
813
813
|
);
|
|
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
|
|
814
|
+
}, ze = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
815
|
+
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Me, {}) }),
|
|
816
|
+
/* @__PURE__ */ e.jsx(Pe, {})
|
|
817
|
+
] }), dr = () => /* @__PURE__ */ e.jsx(Se, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(ze, {}) });
|
|
818
|
+
function ur({
|
|
819
819
|
label: r,
|
|
820
820
|
children: s,
|
|
821
821
|
helperText: t,
|
|
@@ -833,7 +833,7 @@ function ir({
|
|
|
833
833
|
t && !a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted", children: t })
|
|
834
834
|
] });
|
|
835
835
|
}
|
|
836
|
-
const
|
|
836
|
+
const Fe = P.forwardRef(
|
|
837
837
|
({
|
|
838
838
|
className: r = "",
|
|
839
839
|
leftIcon: s,
|
|
@@ -843,8 +843,8 @@ const Me = B.forwardRef(
|
|
|
843
843
|
disabled: n,
|
|
844
844
|
...i
|
|
845
845
|
}, c) => {
|
|
846
|
-
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", f = 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" : "",
|
|
847
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
846
|
+
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", f = 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" : "", x = s || t ? "relative flex items-center" : "", g = `${u} ${f} ${d} ${m} ${s ? "pl-10" : ""} ${t ? "pr-10" : ""} ${r}`;
|
|
847
|
+
return /* @__PURE__ */ e.jsxs("div", { className: x, children: [
|
|
848
848
|
s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
|
|
849
849
|
/* @__PURE__ */ e.jsx(
|
|
850
850
|
"input",
|
|
@@ -859,8 +859,8 @@ const Me = B.forwardRef(
|
|
|
859
859
|
] });
|
|
860
860
|
}
|
|
861
861
|
);
|
|
862
|
-
|
|
863
|
-
const
|
|
862
|
+
Fe.displayName = "Input";
|
|
863
|
+
const Ie = P.forwardRef(
|
|
864
864
|
({
|
|
865
865
|
options: r,
|
|
866
866
|
placeholder: s,
|
|
@@ -870,13 +870,13 @@ const Fe = B.forwardRef(
|
|
|
870
870
|
disabled: n,
|
|
871
871
|
...i
|
|
872
872
|
}, c) => {
|
|
873
|
-
const
|
|
873
|
+
const x = `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
874
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center", children: [
|
|
875
875
|
/* @__PURE__ */ e.jsxs(
|
|
876
876
|
"select",
|
|
877
877
|
{
|
|
878
878
|
ref: c,
|
|
879
|
-
className:
|
|
879
|
+
className: x,
|
|
880
880
|
disabled: n,
|
|
881
881
|
...i,
|
|
882
882
|
children: [
|
|
@@ -885,17 +885,17 @@ const Fe = B.forwardRef(
|
|
|
885
885
|
]
|
|
886
886
|
}
|
|
887
887
|
),
|
|
888
|
-
/* @__PURE__ */ e.jsx(
|
|
888
|
+
/* @__PURE__ */ e.jsx(ee, { className: "absolute right-3 w-4 h-4 text-text-muted pointer-events-none" })
|
|
889
889
|
] });
|
|
890
890
|
}
|
|
891
891
|
);
|
|
892
|
-
|
|
893
|
-
function
|
|
892
|
+
Ie.displayName = "Select";
|
|
893
|
+
function Ue({
|
|
894
894
|
title: r,
|
|
895
895
|
titleId: s,
|
|
896
896
|
...t
|
|
897
897
|
}, a) {
|
|
898
|
-
return /* @__PURE__ */
|
|
898
|
+
return /* @__PURE__ */ G.createElement("svg", Object.assign({
|
|
899
899
|
xmlns: "http://www.w3.org/2000/svg",
|
|
900
900
|
viewBox: "0 0 20 20",
|
|
901
901
|
fill: "currentColor",
|
|
@@ -903,14 +903,14 @@ function Le({
|
|
|
903
903
|
"data-slot": "icon",
|
|
904
904
|
ref: a,
|
|
905
905
|
"aria-labelledby": s
|
|
906
|
-
}, t), r ? /* @__PURE__ */
|
|
906
|
+
}, t), r ? /* @__PURE__ */ G.createElement("title", {
|
|
907
907
|
id: s
|
|
908
|
-
}, r) : null, /* @__PURE__ */
|
|
908
|
+
}, r) : null, /* @__PURE__ */ G.createElement("path", {
|
|
909
909
|
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
910
|
}));
|
|
911
911
|
}
|
|
912
|
-
const
|
|
913
|
-
function
|
|
912
|
+
const Ye = /* @__PURE__ */ G.forwardRef(Ue);
|
|
913
|
+
function We({
|
|
914
914
|
children: r,
|
|
915
915
|
variant: s = "default",
|
|
916
916
|
size: t = "md",
|
|
@@ -944,14 +944,14 @@ function Ye({
|
|
|
944
944
|
onClick: l,
|
|
945
945
|
className: "ml-1 hover:opacity-70",
|
|
946
946
|
"aria-label": "Remove badge",
|
|
947
|
-
children: /* @__PURE__ */ e.jsx(
|
|
947
|
+
children: /* @__PURE__ */ e.jsx(Ye, { className: "w-3 h-3" })
|
|
948
948
|
}
|
|
949
949
|
)
|
|
950
950
|
]
|
|
951
951
|
}
|
|
952
952
|
);
|
|
953
953
|
}
|
|
954
|
-
const
|
|
954
|
+
const He = P.forwardRef(
|
|
955
955
|
({
|
|
956
956
|
tags: r,
|
|
957
957
|
onTagsChange: s,
|
|
@@ -965,24 +965,24 @@ const Ue = B.forwardRef(
|
|
|
965
965
|
disabled: f,
|
|
966
966
|
className: d = "",
|
|
967
967
|
...m
|
|
968
|
-
},
|
|
969
|
-
const [g, b] =
|
|
970
|
-
v.key === "Enter" && g.trim() ? (v.preventDefault(),
|
|
971
|
-
},
|
|
968
|
+
}, x) => {
|
|
969
|
+
const [g, b] = T(""), y = (v) => {
|
|
970
|
+
v.key === "Enter" && g.trim() ? (v.preventDefault(), E(g.trim())) : v.key === "Backspace" && !g && r.length > 0 && V(r[r.length - 1]);
|
|
971
|
+
}, E = (v) => {
|
|
972
972
|
if (c && r.length >= c || u && r.includes(v))
|
|
973
973
|
return;
|
|
974
974
|
const w = [...r, v];
|
|
975
975
|
s(w), t?.(v), b("");
|
|
976
|
-
},
|
|
977
|
-
const w = r.filter((
|
|
976
|
+
}, V = (v) => {
|
|
977
|
+
const w = r.filter((A) => A !== v);
|
|
978
978
|
s(w), a?.(v);
|
|
979
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"} ${f ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${i ? "w-full" : ""} ${d}`;
|
|
980
980
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
981
981
|
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((v) => /* @__PURE__ */ e.jsx(
|
|
982
|
-
|
|
982
|
+
We,
|
|
983
983
|
{
|
|
984
984
|
removable: !0,
|
|
985
|
-
onRemove: () =>
|
|
985
|
+
onRemove: () => V(v),
|
|
986
986
|
variant: "default",
|
|
987
987
|
children: v
|
|
988
988
|
},
|
|
@@ -991,13 +991,13 @@ const Ue = B.forwardRef(
|
|
|
991
991
|
/* @__PURE__ */ e.jsx(
|
|
992
992
|
"input",
|
|
993
993
|
{
|
|
994
|
-
ref:
|
|
994
|
+
ref: x,
|
|
995
995
|
type: "text",
|
|
996
996
|
className: p,
|
|
997
997
|
placeholder: l,
|
|
998
998
|
value: g,
|
|
999
999
|
onChange: (v) => b(v.target.value),
|
|
1000
|
-
onKeyDown:
|
|
1000
|
+
onKeyDown: y,
|
|
1001
1001
|
disabled: f || (c ? r.length >= c : !1),
|
|
1002
1002
|
...m
|
|
1003
1003
|
}
|
|
@@ -1010,8 +1010,338 @@ const Ue = B.forwardRef(
|
|
|
1010
1010
|
] });
|
|
1011
1011
|
}
|
|
1012
1012
|
);
|
|
1013
|
-
|
|
1014
|
-
const
|
|
1013
|
+
He.displayName = "TagInput";
|
|
1014
|
+
const de = {
|
|
1015
|
+
variant: {
|
|
1016
|
+
default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
|
|
1017
|
+
destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
|
|
1018
|
+
outline: "border border-border bg-background hover:bg-surface-variant hover:text-text-primary focus-visible:ring-reseda-green-500",
|
|
1019
|
+
secondary: "bg-khaki-500 text-white hover:bg-khaki-600 focus-visible:ring-khaki-500",
|
|
1020
|
+
ghost: "hover:bg-surface-variant hover:text-text-primary focus-visible:ring-reseda-green-500",
|
|
1021
|
+
link: "text-reseda-green-500 underline-offset-4 hover:underline focus-visible:ring-reseda-green-500",
|
|
1022
|
+
none: ""
|
|
1023
|
+
// No default styles, allows full customization
|
|
1024
|
+
},
|
|
1025
|
+
size: {
|
|
1026
|
+
default: "h-10 px-4 py-2",
|
|
1027
|
+
sm: "h-9 rounded-md px-3",
|
|
1028
|
+
lg: "h-11 rounded-md px-8",
|
|
1029
|
+
xl: "h-12 rounded-md px-10 text-base",
|
|
1030
|
+
icon: "h-10 w-10"
|
|
1031
|
+
}
|
|
1032
|
+
}, Ge = "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", Je = (...r) => r.filter(Boolean).join(" "), F = P.forwardRef(
|
|
1033
|
+
({
|
|
1034
|
+
className: r,
|
|
1035
|
+
variant: s = "default",
|
|
1036
|
+
size: t = "default",
|
|
1037
|
+
fullWidth: a = !1,
|
|
1038
|
+
loading: l = !1,
|
|
1039
|
+
leftIcon: n,
|
|
1040
|
+
rightIcon: i,
|
|
1041
|
+
children: c,
|
|
1042
|
+
disabled: u,
|
|
1043
|
+
...f
|
|
1044
|
+
}, d) => {
|
|
1045
|
+
const m = u || l, x = Je(
|
|
1046
|
+
Ge,
|
|
1047
|
+
de.variant[s],
|
|
1048
|
+
de.size[t],
|
|
1049
|
+
a ? "w-full" : "",
|
|
1050
|
+
r
|
|
1051
|
+
);
|
|
1052
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1053
|
+
"button",
|
|
1054
|
+
{
|
|
1055
|
+
className: x,
|
|
1056
|
+
ref: d,
|
|
1057
|
+
disabled: m,
|
|
1058
|
+
...f,
|
|
1059
|
+
children: [
|
|
1060
|
+
l && /* @__PURE__ */ e.jsxs(
|
|
1061
|
+
"svg",
|
|
1062
|
+
{
|
|
1063
|
+
className: "mr-2 h-4 w-4 animate-spin",
|
|
1064
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1065
|
+
fill: "none",
|
|
1066
|
+
viewBox: "0 0 24 24",
|
|
1067
|
+
children: [
|
|
1068
|
+
/* @__PURE__ */ e.jsx(
|
|
1069
|
+
"circle",
|
|
1070
|
+
{
|
|
1071
|
+
className: "opacity-25",
|
|
1072
|
+
cx: "12",
|
|
1073
|
+
cy: "12",
|
|
1074
|
+
r: "10",
|
|
1075
|
+
stroke: "currentColor",
|
|
1076
|
+
strokeWidth: "4"
|
|
1077
|
+
}
|
|
1078
|
+
),
|
|
1079
|
+
/* @__PURE__ */ e.jsx(
|
|
1080
|
+
"path",
|
|
1081
|
+
{
|
|
1082
|
+
className: "opacity-75",
|
|
1083
|
+
fill: "currentColor",
|
|
1084
|
+
d: "m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
1085
|
+
}
|
|
1086
|
+
)
|
|
1087
|
+
]
|
|
1088
|
+
}
|
|
1089
|
+
),
|
|
1090
|
+
!l && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
|
|
1091
|
+
c,
|
|
1092
|
+
!l && i && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: i })
|
|
1093
|
+
]
|
|
1094
|
+
}
|
|
1095
|
+
);
|
|
1096
|
+
}
|
|
1097
|
+
);
|
|
1098
|
+
F.displayName = "Button";
|
|
1099
|
+
const ue = {
|
|
1100
|
+
provider: {
|
|
1101
|
+
linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
|
|
1102
|
+
},
|
|
1103
|
+
iconPosition: {
|
|
1104
|
+
left: "flex-row",
|
|
1105
|
+
right: "flex-row-reverse",
|
|
1106
|
+
only: "justify-center"
|
|
1107
|
+
}
|
|
1108
|
+
}, Xe = (...r) => r.filter(Boolean).join(" "), qe = P.forwardRef(
|
|
1109
|
+
({
|
|
1110
|
+
className: r,
|
|
1111
|
+
provider: s,
|
|
1112
|
+
iconPosition: t = "left",
|
|
1113
|
+
icon: a,
|
|
1114
|
+
showText: l = !0,
|
|
1115
|
+
children: n,
|
|
1116
|
+
size: i = "default",
|
|
1117
|
+
fullWidth: c = !0,
|
|
1118
|
+
...u
|
|
1119
|
+
}, f) => {
|
|
1120
|
+
const m = a || {
|
|
1121
|
+
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], g = n || (l ? {
|
|
1123
|
+
linkedin: "Continue with LinkedIn"
|
|
1124
|
+
}[s] : ""), b = Xe(
|
|
1125
|
+
"relative overflow-hidden transition-all duration-200",
|
|
1126
|
+
ue.provider[s],
|
|
1127
|
+
ue.iconPosition[t],
|
|
1128
|
+
r
|
|
1129
|
+
);
|
|
1130
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1131
|
+
F,
|
|
1132
|
+
{
|
|
1133
|
+
ref: f,
|
|
1134
|
+
variant: "none",
|
|
1135
|
+
className: b,
|
|
1136
|
+
size: i,
|
|
1137
|
+
fullWidth: c,
|
|
1138
|
+
leftIcon: t === "left" ? m : void 0,
|
|
1139
|
+
rightIcon: t === "right" ? m : void 0,
|
|
1140
|
+
...u,
|
|
1141
|
+
children: [
|
|
1142
|
+
t === "only" && m,
|
|
1143
|
+
t !== "only" && g
|
|
1144
|
+
]
|
|
1145
|
+
}
|
|
1146
|
+
);
|
|
1147
|
+
}
|
|
1148
|
+
);
|
|
1149
|
+
qe.displayName = "SocialButton";
|
|
1150
|
+
function H({
|
|
1151
|
+
variant: r,
|
|
1152
|
+
title: s,
|
|
1153
|
+
message: t,
|
|
1154
|
+
icon: a,
|
|
1155
|
+
onClose: l,
|
|
1156
|
+
className: n = ""
|
|
1157
|
+
}) {
|
|
1158
|
+
const c = {
|
|
1159
|
+
success: {
|
|
1160
|
+
bg: "bg-success-50",
|
|
1161
|
+
border: "border-success-200",
|
|
1162
|
+
text: "text-success-700",
|
|
1163
|
+
icon: /* @__PURE__ */ e.jsx(ve, { className: "h-5 w-5" })
|
|
1164
|
+
},
|
|
1165
|
+
error: {
|
|
1166
|
+
bg: "bg-error-50",
|
|
1167
|
+
border: "border-error-200",
|
|
1168
|
+
text: "text-error-700",
|
|
1169
|
+
icon: /* @__PURE__ */ e.jsx(he, { className: "h-5 w-5" })
|
|
1170
|
+
},
|
|
1171
|
+
warning: {
|
|
1172
|
+
bg: "bg-warning-50",
|
|
1173
|
+
border: "border-warning-200",
|
|
1174
|
+
text: "text-warning-700",
|
|
1175
|
+
icon: /* @__PURE__ */ e.jsx(fe, { className: "h-5 w-5" })
|
|
1176
|
+
},
|
|
1177
|
+
info: {
|
|
1178
|
+
bg: "bg-info-50",
|
|
1179
|
+
border: "border-info-200",
|
|
1180
|
+
text: "text-info-700",
|
|
1181
|
+
icon: /* @__PURE__ */ e.jsx(xe, { className: "h-5 w-5" })
|
|
1182
|
+
}
|
|
1183
|
+
}[r];
|
|
1184
|
+
return /* @__PURE__ */ e.jsx(
|
|
1185
|
+
"div",
|
|
1186
|
+
{
|
|
1187
|
+
className: `${c.bg} border ${c.border} rounded-md p-3 ${n}`,
|
|
1188
|
+
role: "alert",
|
|
1189
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
1190
|
+
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${c.text}`, children: a || c.icon }),
|
|
1191
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
1192
|
+
s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${c.text}`, children: s }),
|
|
1193
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${c.text}`, children: t })
|
|
1194
|
+
] }),
|
|
1195
|
+
l && /* @__PURE__ */ e.jsx(
|
|
1196
|
+
"button",
|
|
1197
|
+
{
|
|
1198
|
+
onClick: l,
|
|
1199
|
+
className: `flex-shrink-0 ${c.text} hover:opacity-70`,
|
|
1200
|
+
"aria-label": "Close alert",
|
|
1201
|
+
children: "✕"
|
|
1202
|
+
}
|
|
1203
|
+
)
|
|
1204
|
+
] })
|
|
1205
|
+
}
|
|
1206
|
+
);
|
|
1207
|
+
}
|
|
1208
|
+
function mr({
|
|
1209
|
+
onFileChange: r,
|
|
1210
|
+
onAnalyze: s,
|
|
1211
|
+
uploadedFile: t,
|
|
1212
|
+
fileError: a,
|
|
1213
|
+
onCancelUpload: l,
|
|
1214
|
+
isAnalyzing: n = !1,
|
|
1215
|
+
analyzeError: i,
|
|
1216
|
+
analyzeSuccess: c,
|
|
1217
|
+
accept: u = ".pdf,.docx",
|
|
1218
|
+
label: f = "Upload File",
|
|
1219
|
+
description: d = "PDF, DOCX up to 5MB",
|
|
1220
|
+
analyzeButtonLabel: m = "Analyze",
|
|
1221
|
+
disabled: x = !1,
|
|
1222
|
+
showAnalyzeButton: g = !0
|
|
1223
|
+
}) {
|
|
1224
|
+
const b = ye(null), [y, E] = T(!1);
|
|
1225
|
+
J(() => {
|
|
1226
|
+
!t && b.current && (b.current.value = "");
|
|
1227
|
+
}, [t]);
|
|
1228
|
+
const V = (N) => {
|
|
1229
|
+
N.preventDefault(), N.stopPropagation(), N.type === "dragenter" || N.type === "dragover" ? E(!0) : N.type === "dragleave" && E(!1);
|
|
1230
|
+
}, R = (N) => {
|
|
1231
|
+
if (N.preventDefault(), N.stopPropagation(), E(!1), N.dataTransfer.files && N.dataTransfer.files[0]) {
|
|
1232
|
+
const O = {
|
|
1233
|
+
target: {
|
|
1234
|
+
files: N.dataTransfer.files
|
|
1235
|
+
}
|
|
1236
|
+
};
|
|
1237
|
+
r(O);
|
|
1238
|
+
}
|
|
1239
|
+
};
|
|
1240
|
+
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: f }),
|
|
1242
|
+
/* @__PURE__ */ e.jsxs("label", { className: "block", children: [
|
|
1243
|
+
/* @__PURE__ */ e.jsx(
|
|
1244
|
+
"input",
|
|
1245
|
+
{
|
|
1246
|
+
ref: b,
|
|
1247
|
+
type: "file",
|
|
1248
|
+
accept: u,
|
|
1249
|
+
onChange: r,
|
|
1250
|
+
className: "hidden",
|
|
1251
|
+
id: "file-upload",
|
|
1252
|
+
disabled: x
|
|
1253
|
+
}
|
|
1254
|
+
),
|
|
1255
|
+
/* @__PURE__ */ e.jsx(
|
|
1256
|
+
"div",
|
|
1257
|
+
{
|
|
1258
|
+
onDragEnter: V,
|
|
1259
|
+
onDragLeave: V,
|
|
1260
|
+
onDragOver: V,
|
|
1261
|
+
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"} ${x ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1263
|
+
children: t && !a ? /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1264
|
+
/* @__PURE__ */ e.jsx(
|
|
1265
|
+
"svg",
|
|
1266
|
+
{
|
|
1267
|
+
className: "mx-auto h-12 w-12 text-success-500",
|
|
1268
|
+
fill: "currentColor",
|
|
1269
|
+
viewBox: "0 0 20 20",
|
|
1270
|
+
children: /* @__PURE__ */ e.jsx(
|
|
1271
|
+
"path",
|
|
1272
|
+
{
|
|
1273
|
+
fillRule: "evenodd",
|
|
1274
|
+
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
1275
|
+
clipRule: "evenodd"
|
|
1276
|
+
}
|
|
1277
|
+
)
|
|
1278
|
+
}
|
|
1279
|
+
),
|
|
1280
|
+
/* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(H, { variant: "success", message: "File uploaded successfully" }) }),
|
|
1281
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-2 break-words", children: t.name }),
|
|
1282
|
+
/* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted mt-1", children: [
|
|
1283
|
+
(t.size / (1024 * 1024)).toFixed(2),
|
|
1284
|
+
"MB"
|
|
1285
|
+
] }),
|
|
1286
|
+
/* @__PURE__ */ e.jsx(
|
|
1287
|
+
F,
|
|
1288
|
+
{
|
|
1289
|
+
variant: "link",
|
|
1290
|
+
type: "button",
|
|
1291
|
+
onClick: (N) => {
|
|
1292
|
+
N.preventDefault(), l?.();
|
|
1293
|
+
},
|
|
1294
|
+
className: "mt-3 text-error-600 hover:text-error-700 h-auto p-0",
|
|
1295
|
+
children: "✕ Cancel"
|
|
1296
|
+
}
|
|
1297
|
+
)
|
|
1298
|
+
] }) : /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1299
|
+
/* @__PURE__ */ e.jsx(
|
|
1300
|
+
"svg",
|
|
1301
|
+
{
|
|
1302
|
+
className: "mx-auto h-12 w-12 text-text-muted",
|
|
1303
|
+
stroke: "currentColor",
|
|
1304
|
+
fill: "none",
|
|
1305
|
+
viewBox: "0 0 48 48",
|
|
1306
|
+
children: /* @__PURE__ */ e.jsx(
|
|
1307
|
+
"path",
|
|
1308
|
+
{
|
|
1309
|
+
d: "M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02",
|
|
1310
|
+
strokeWidth: "2",
|
|
1311
|
+
strokeLinecap: "round",
|
|
1312
|
+
strokeLinejoin: "round"
|
|
1313
|
+
}
|
|
1314
|
+
)
|
|
1315
|
+
}
|
|
1316
|
+
),
|
|
1317
|
+
/* @__PURE__ */ e.jsxs("p", { className: "mt-2 text-sm text-text-secondary", children: [
|
|
1318
|
+
/* @__PURE__ */ e.jsx("span", { className: "font-medium text-reseda-green-700", children: "Upload a file" }),
|
|
1319
|
+
" ",
|
|
1320
|
+
"or drag and drop"
|
|
1321
|
+
] }),
|
|
1322
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted mt-1", children: d })
|
|
1323
|
+
] })
|
|
1324
|
+
}
|
|
1325
|
+
)
|
|
1326
|
+
] }),
|
|
1327
|
+
a && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(H, { variant: "error", message: a }) }),
|
|
1328
|
+
i && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(H, { variant: "error", message: i }) }),
|
|
1329
|
+
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(H, { variant: "success", message: c }) }),
|
|
1330
|
+
g && /* @__PURE__ */ e.jsx(
|
|
1331
|
+
F,
|
|
1332
|
+
{
|
|
1333
|
+
variant: "default",
|
|
1334
|
+
onClick: s,
|
|
1335
|
+
disabled: !t || n || x,
|
|
1336
|
+
loading: n,
|
|
1337
|
+
fullWidth: !0,
|
|
1338
|
+
className: "mt-3",
|
|
1339
|
+
children: m
|
|
1340
|
+
}
|
|
1341
|
+
)
|
|
1342
|
+
] });
|
|
1343
|
+
}
|
|
1344
|
+
const Ze = P.forwardRef(
|
|
1015
1345
|
({
|
|
1016
1346
|
className: r = "",
|
|
1017
1347
|
error: s = !1,
|
|
@@ -1024,32 +1354,32 @@ const We = B.forwardRef(
|
|
|
1024
1354
|
onChange: u,
|
|
1025
1355
|
...f
|
|
1026
1356
|
}, d) => {
|
|
1027
|
-
const
|
|
1028
|
-
a && (
|
|
1029
|
-
},
|
|
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}`, E = (R) => {
|
|
1358
|
+
a && (R.target.style.height = "auto", R.target.style.height = `${R.target.scrollHeight}px`), u?.(R);
|
|
1359
|
+
}, V = typeof c == "string" ? c.length : 0;
|
|
1030
1360
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
|
|
1031
1361
|
/* @__PURE__ */ e.jsx(
|
|
1032
1362
|
"textarea",
|
|
1033
1363
|
{
|
|
1034
1364
|
ref: d,
|
|
1035
|
-
className:
|
|
1365
|
+
className: y,
|
|
1036
1366
|
disabled: i,
|
|
1037
1367
|
value: c,
|
|
1038
|
-
onChange:
|
|
1368
|
+
onChange: E,
|
|
1039
1369
|
maxLength: l,
|
|
1040
1370
|
...f
|
|
1041
1371
|
}
|
|
1042
1372
|
),
|
|
1043
1373
|
n && l && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
|
|
1044
|
-
|
|
1374
|
+
V,
|
|
1045
1375
|
" / ",
|
|
1046
1376
|
l
|
|
1047
1377
|
] })
|
|
1048
1378
|
] });
|
|
1049
1379
|
}
|
|
1050
1380
|
);
|
|
1051
|
-
|
|
1052
|
-
function
|
|
1381
|
+
Ze.displayName = "Textarea";
|
|
1382
|
+
function xr({
|
|
1053
1383
|
options: r,
|
|
1054
1384
|
selectedValues: s,
|
|
1055
1385
|
onSelectionChange: t,
|
|
@@ -1059,15 +1389,15 @@ function dr({
|
|
|
1059
1389
|
error: i = !1
|
|
1060
1390
|
}) {
|
|
1061
1391
|
const c = (m) => {
|
|
1062
|
-
const
|
|
1063
|
-
t(
|
|
1392
|
+
const x = s.includes(m) ? s.filter((g) => g !== m) : [...s, m];
|
|
1393
|
+
t(x);
|
|
1064
1394
|
}, u = {
|
|
1065
1395
|
vertical: "space-y-3",
|
|
1066
1396
|
horizontal: "flex flex-wrap gap-3",
|
|
1067
1397
|
grid: `grid grid-cols-${l} gap-3`
|
|
1068
1398
|
}, f = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${l}` : "";
|
|
1069
1399
|
return /* @__PURE__ */ e.jsx("div", { className: `${f} ${d}`, children: r.map((m) => {
|
|
1070
|
-
const
|
|
1400
|
+
const x = s.includes(m.value), b = x ? "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`;
|
|
1071
1401
|
return /* @__PURE__ */ e.jsxs(
|
|
1072
1402
|
"label",
|
|
1073
1403
|
{
|
|
@@ -1077,7 +1407,7 @@ function dr({
|
|
|
1077
1407
|
"input",
|
|
1078
1408
|
{
|
|
1079
1409
|
type: "checkbox",
|
|
1080
|
-
checked:
|
|
1410
|
+
checked: x,
|
|
1081
1411
|
onChange: () => c(m.value),
|
|
1082
1412
|
disabled: n,
|
|
1083
1413
|
className: "sr-only"
|
|
@@ -1088,14 +1418,14 @@ function dr({
|
|
|
1088
1418
|
/* @__PURE__ */ e.jsx("div", { className: "font-medium text-text-primary", children: m.label }),
|
|
1089
1419
|
m.description && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-text-secondary", children: m.description })
|
|
1090
1420
|
] }),
|
|
1091
|
-
|
|
1421
|
+
x && /* @__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" }) }) })
|
|
1092
1422
|
]
|
|
1093
1423
|
},
|
|
1094
1424
|
m.value
|
|
1095
1425
|
);
|
|
1096
1426
|
}) });
|
|
1097
1427
|
}
|
|
1098
|
-
function
|
|
1428
|
+
function fr({
|
|
1099
1429
|
options: r,
|
|
1100
1430
|
selectedValue: s,
|
|
1101
1431
|
onSelectionChange: t,
|
|
@@ -1141,7 +1471,7 @@ function ur({
|
|
|
1141
1471
|
);
|
|
1142
1472
|
}) });
|
|
1143
1473
|
}
|
|
1144
|
-
function
|
|
1474
|
+
function hr({ stats: r, columns: s = 4, className: t = "" }) {
|
|
1145
1475
|
const a = {
|
|
1146
1476
|
2: "grid-cols-2",
|
|
1147
1477
|
3: "grid-cols-3",
|
|
@@ -1161,14 +1491,14 @@ function mr({ stats: r, columns: s = 4, className: t = "" }) {
|
|
|
1161
1491
|
] }, i);
|
|
1162
1492
|
}) });
|
|
1163
1493
|
}
|
|
1164
|
-
function
|
|
1494
|
+
function vr({
|
|
1165
1495
|
items: r,
|
|
1166
1496
|
allowMultiple: s = !1,
|
|
1167
1497
|
defaultOpenId: t,
|
|
1168
1498
|
onOpenChange: a,
|
|
1169
1499
|
className: l = ""
|
|
1170
1500
|
}) {
|
|
1171
|
-
const [n, i] =
|
|
1501
|
+
const [n, i] = T(() => t ? Array.isArray(t) ? t : [t] : []), c = (u) => {
|
|
1172
1502
|
let f;
|
|
1173
1503
|
s ? f = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : f = n.includes(u) ? [] : [u], i(f), a?.(f);
|
|
1174
1504
|
};
|
|
@@ -1190,7 +1520,7 @@ function xr({
|
|
|
1190
1520
|
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: u.title })
|
|
1191
1521
|
] }),
|
|
1192
1522
|
/* @__PURE__ */ e.jsx(
|
|
1193
|
-
|
|
1523
|
+
ee,
|
|
1194
1524
|
{
|
|
1195
1525
|
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${f ? "rotate-180" : ""}`
|
|
1196
1526
|
}
|
|
@@ -1205,143 +1535,7 @@ function xr({
|
|
|
1205
1535
|
);
|
|
1206
1536
|
}) });
|
|
1207
1537
|
}
|
|
1208
|
-
|
|
1209
|
-
variant: {
|
|
1210
|
-
default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
|
|
1211
|
-
destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
|
|
1212
|
-
outline: "border border-border bg-background hover:bg-surface-variant hover:text-text-primary focus-visible:ring-reseda-green-500",
|
|
1213
|
-
secondary: "bg-khaki-500 text-white hover:bg-khaki-600 focus-visible:ring-khaki-500",
|
|
1214
|
-
ghost: "hover:bg-surface-variant hover:text-text-primary focus-visible:ring-reseda-green-500",
|
|
1215
|
-
link: "text-reseda-green-500 underline-offset-4 hover:underline focus-visible:ring-reseda-green-500",
|
|
1216
|
-
none: ""
|
|
1217
|
-
// No default styles, allows full customization
|
|
1218
|
-
},
|
|
1219
|
-
size: {
|
|
1220
|
-
default: "h-10 px-4 py-2",
|
|
1221
|
-
sm: "h-9 rounded-md px-3",
|
|
1222
|
-
lg: "h-11 rounded-md px-8",
|
|
1223
|
-
xl: "h-12 rounded-md px-10 text-base",
|
|
1224
|
-
icon: "h-10 w-10"
|
|
1225
|
-
}
|
|
1226
|
-
}, He = "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", Ge = (...r) => r.filter(Boolean).join(" "), H = B.forwardRef(
|
|
1227
|
-
({
|
|
1228
|
-
className: r,
|
|
1229
|
-
variant: s = "default",
|
|
1230
|
-
size: t = "default",
|
|
1231
|
-
fullWidth: a = !1,
|
|
1232
|
-
loading: l = !1,
|
|
1233
|
-
leftIcon: n,
|
|
1234
|
-
rightIcon: i,
|
|
1235
|
-
children: c,
|
|
1236
|
-
disabled: u,
|
|
1237
|
-
...f
|
|
1238
|
-
}, d) => {
|
|
1239
|
-
const m = u || l, h = Ge(
|
|
1240
|
-
He,
|
|
1241
|
-
ie.variant[s],
|
|
1242
|
-
ie.size[t],
|
|
1243
|
-
a ? "w-full" : "",
|
|
1244
|
-
r
|
|
1245
|
-
);
|
|
1246
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1247
|
-
"button",
|
|
1248
|
-
{
|
|
1249
|
-
className: h,
|
|
1250
|
-
ref: d,
|
|
1251
|
-
disabled: m,
|
|
1252
|
-
...f,
|
|
1253
|
-
children: [
|
|
1254
|
-
l && /* @__PURE__ */ e.jsxs(
|
|
1255
|
-
"svg",
|
|
1256
|
-
{
|
|
1257
|
-
className: "mr-2 h-4 w-4 animate-spin",
|
|
1258
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1259
|
-
fill: "none",
|
|
1260
|
-
viewBox: "0 0 24 24",
|
|
1261
|
-
children: [
|
|
1262
|
-
/* @__PURE__ */ e.jsx(
|
|
1263
|
-
"circle",
|
|
1264
|
-
{
|
|
1265
|
-
className: "opacity-25",
|
|
1266
|
-
cx: "12",
|
|
1267
|
-
cy: "12",
|
|
1268
|
-
r: "10",
|
|
1269
|
-
stroke: "currentColor",
|
|
1270
|
-
strokeWidth: "4"
|
|
1271
|
-
}
|
|
1272
|
-
),
|
|
1273
|
-
/* @__PURE__ */ e.jsx(
|
|
1274
|
-
"path",
|
|
1275
|
-
{
|
|
1276
|
-
className: "opacity-75",
|
|
1277
|
-
fill: "currentColor",
|
|
1278
|
-
d: "m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
1279
|
-
}
|
|
1280
|
-
)
|
|
1281
|
-
]
|
|
1282
|
-
}
|
|
1283
|
-
),
|
|
1284
|
-
!l && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
|
|
1285
|
-
c,
|
|
1286
|
-
!l && i && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: i })
|
|
1287
|
-
]
|
|
1288
|
-
}
|
|
1289
|
-
);
|
|
1290
|
-
}
|
|
1291
|
-
);
|
|
1292
|
-
H.displayName = "Button";
|
|
1293
|
-
const de = {
|
|
1294
|
-
provider: {
|
|
1295
|
-
linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
|
|
1296
|
-
},
|
|
1297
|
-
iconPosition: {
|
|
1298
|
-
left: "flex-row",
|
|
1299
|
-
right: "flex-row-reverse",
|
|
1300
|
-
only: "justify-center"
|
|
1301
|
-
}
|
|
1302
|
-
}, Je = (...r) => r.filter(Boolean).join(" "), qe = B.forwardRef(
|
|
1303
|
-
({
|
|
1304
|
-
className: r,
|
|
1305
|
-
provider: s,
|
|
1306
|
-
iconPosition: t = "left",
|
|
1307
|
-
icon: a,
|
|
1308
|
-
showText: l = !0,
|
|
1309
|
-
children: n,
|
|
1310
|
-
size: i = "default",
|
|
1311
|
-
fullWidth: c = !0,
|
|
1312
|
-
...u
|
|
1313
|
-
}, f) => {
|
|
1314
|
-
const m = a || {
|
|
1315
|
-
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" }) })
|
|
1316
|
-
}[s], g = n || (l ? {
|
|
1317
|
-
linkedin: "Continue with LinkedIn"
|
|
1318
|
-
}[s] : ""), b = Je(
|
|
1319
|
-
"relative overflow-hidden transition-all duration-200",
|
|
1320
|
-
de.provider[s],
|
|
1321
|
-
de.iconPosition[t],
|
|
1322
|
-
r
|
|
1323
|
-
);
|
|
1324
|
-
return /* @__PURE__ */ e.jsxs(
|
|
1325
|
-
H,
|
|
1326
|
-
{
|
|
1327
|
-
ref: f,
|
|
1328
|
-
variant: "none",
|
|
1329
|
-
className: b,
|
|
1330
|
-
size: i,
|
|
1331
|
-
fullWidth: c,
|
|
1332
|
-
leftIcon: t === "left" ? m : void 0,
|
|
1333
|
-
rightIcon: t === "right" ? m : void 0,
|
|
1334
|
-
...u,
|
|
1335
|
-
children: [
|
|
1336
|
-
t === "only" && m,
|
|
1337
|
-
t !== "only" && g
|
|
1338
|
-
]
|
|
1339
|
-
}
|
|
1340
|
-
);
|
|
1341
|
-
}
|
|
1342
|
-
);
|
|
1343
|
-
qe.displayName = "SocialButton";
|
|
1344
|
-
function fr({
|
|
1538
|
+
function gr({
|
|
1345
1539
|
icon: r,
|
|
1346
1540
|
title: s,
|
|
1347
1541
|
subtitle: t,
|
|
@@ -1354,9 +1548,9 @@ function fr({
|
|
|
1354
1548
|
className: f = ""
|
|
1355
1549
|
}) {
|
|
1356
1550
|
const d = (b) => {
|
|
1357
|
-
const
|
|
1358
|
-
|
|
1359
|
-
},
|
|
1551
|
+
const y = b.target;
|
|
1552
|
+
y.tagName === "BUTTON" || y.closest("button") || u?.(b);
|
|
1553
|
+
}, x = (() => {
|
|
1360
1554
|
if (n)
|
|
1361
1555
|
switch (i) {
|
|
1362
1556
|
case "success":
|
|
@@ -1374,7 +1568,7 @@ function fr({
|
|
|
1374
1568
|
"div",
|
|
1375
1569
|
{
|
|
1376
1570
|
onClick: d,
|
|
1377
|
-
className: `rounded-lg p-4 cursor-pointer transition ${
|
|
1571
|
+
className: `rounded-lg p-4 cursor-pointer transition ${x} ${g} ${f}`,
|
|
1378
1572
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between", children: [
|
|
1379
1573
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex items-start gap-3", children: [
|
|
1380
1574
|
r && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: r }),
|
|
@@ -1384,8 +1578,8 @@ function fr({
|
|
|
1384
1578
|
a && /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: a })
|
|
1385
1579
|
] })
|
|
1386
1580
|
] }),
|
|
1387
|
-
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: c.map((b,
|
|
1388
|
-
|
|
1581
|
+
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: c.map((b, y) => /* @__PURE__ */ e.jsx(
|
|
1582
|
+
F,
|
|
1389
1583
|
{
|
|
1390
1584
|
variant: b.variant || "ghost",
|
|
1391
1585
|
size: b.size || "sm",
|
|
@@ -1397,13 +1591,13 @@ function fr({
|
|
|
1397
1591
|
leftIcon: b.icon && b.size !== "icon" ? b.icon : void 0,
|
|
1398
1592
|
children: b.size === "icon" ? b.icon : b.label
|
|
1399
1593
|
},
|
|
1400
|
-
|
|
1594
|
+
y
|
|
1401
1595
|
)) })
|
|
1402
1596
|
] })
|
|
1403
1597
|
}
|
|
1404
1598
|
);
|
|
1405
1599
|
}
|
|
1406
|
-
function
|
|
1600
|
+
function br({
|
|
1407
1601
|
children: r,
|
|
1408
1602
|
variant: s = "default",
|
|
1409
1603
|
isActive: t = !1,
|
|
@@ -1430,7 +1624,7 @@ function hr({
|
|
|
1430
1624
|
}
|
|
1431
1625
|
);
|
|
1432
1626
|
}
|
|
1433
|
-
function
|
|
1627
|
+
function pr({
|
|
1434
1628
|
title: r,
|
|
1435
1629
|
children: s,
|
|
1436
1630
|
subtitle: t,
|
|
@@ -1450,7 +1644,7 @@ function vr({
|
|
|
1450
1644
|
s
|
|
1451
1645
|
] });
|
|
1452
1646
|
}
|
|
1453
|
-
function
|
|
1647
|
+
function jr({
|
|
1454
1648
|
title: r,
|
|
1455
1649
|
subtitle: s,
|
|
1456
1650
|
metadata: t,
|
|
@@ -1471,7 +1665,7 @@ function gr({
|
|
|
1471
1665
|
] }, i))
|
|
1472
1666
|
] });
|
|
1473
1667
|
}
|
|
1474
|
-
function
|
|
1668
|
+
function wr({
|
|
1475
1669
|
title: r,
|
|
1476
1670
|
description: s,
|
|
1477
1671
|
centered: t = !1,
|
|
@@ -1487,7 +1681,7 @@ function br({
|
|
|
1487
1681
|
/* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${i}`, children: s })
|
|
1488
1682
|
] });
|
|
1489
1683
|
}
|
|
1490
|
-
function
|
|
1684
|
+
function Nr({
|
|
1491
1685
|
icon: r,
|
|
1492
1686
|
title: s,
|
|
1493
1687
|
description: t,
|
|
@@ -1516,7 +1710,7 @@ function pr({
|
|
|
1516
1710
|
}
|
|
1517
1711
|
);
|
|
1518
1712
|
}
|
|
1519
|
-
const
|
|
1713
|
+
const Ke = P.forwardRef(
|
|
1520
1714
|
({
|
|
1521
1715
|
value: r,
|
|
1522
1716
|
onChange: s,
|
|
@@ -1530,10 +1724,10 @@ const Xe = B.forwardRef(
|
|
|
1530
1724
|
error: f = !1,
|
|
1531
1725
|
fullWidth: d = !0,
|
|
1532
1726
|
disabled: m,
|
|
1533
|
-
className:
|
|
1727
|
+
className: x = "",
|
|
1534
1728
|
...g
|
|
1535
1729
|
}, b) => {
|
|
1536
|
-
const
|
|
1730
|
+
const N = `w-full h-2 rounded-lg appearance-none cursor-pointer ${f ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${m ? "opacity-50 cursor-not-allowed" : ""} ${d ? "w-full" : ""} ${x}`, O = (r - t) / (a - t) * 100;
|
|
1537
1731
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1538
1732
|
i && (c || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
|
|
1539
1733
|
c && /* @__PURE__ */ e.jsx("span", { children: c }),
|
|
@@ -1549,9 +1743,9 @@ const Xe = B.forwardRef(
|
|
|
1549
1743
|
max: a,
|
|
1550
1744
|
step: l,
|
|
1551
1745
|
value: r,
|
|
1552
|
-
onChange: (
|
|
1746
|
+
onChange: (L) => s(Number(L.target.value)),
|
|
1553
1747
|
disabled: m,
|
|
1554
|
-
className:
|
|
1748
|
+
className: N,
|
|
1555
1749
|
...g
|
|
1556
1750
|
}
|
|
1557
1751
|
),
|
|
@@ -1561,72 +1755,14 @@ const Xe = B.forwardRef(
|
|
|
1561
1755
|
"div",
|
|
1562
1756
|
{
|
|
1563
1757
|
className: "h-full bg-reseda-green-500 transition-all",
|
|
1564
|
-
style: { width: `${
|
|
1758
|
+
style: { width: `${O}%` }
|
|
1565
1759
|
}
|
|
1566
1760
|
) })
|
|
1567
1761
|
] });
|
|
1568
1762
|
}
|
|
1569
1763
|
);
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
variant: r,
|
|
1573
|
-
title: s,
|
|
1574
|
-
message: t,
|
|
1575
|
-
icon: a,
|
|
1576
|
-
onClose: l,
|
|
1577
|
-
className: n = ""
|
|
1578
|
-
}) {
|
|
1579
|
-
const c = {
|
|
1580
|
-
success: {
|
|
1581
|
-
bg: "bg-success-50",
|
|
1582
|
-
border: "border-success-200",
|
|
1583
|
-
text: "text-success-700",
|
|
1584
|
-
icon: /* @__PURE__ */ e.jsx(he, { className: "h-5 w-5" })
|
|
1585
|
-
},
|
|
1586
|
-
error: {
|
|
1587
|
-
bg: "bg-error-50",
|
|
1588
|
-
border: "border-error-200",
|
|
1589
|
-
text: "text-error-700",
|
|
1590
|
-
icon: /* @__PURE__ */ e.jsx(fe, { className: "h-5 w-5" })
|
|
1591
|
-
},
|
|
1592
|
-
warning: {
|
|
1593
|
-
bg: "bg-warning-50",
|
|
1594
|
-
border: "border-warning-200",
|
|
1595
|
-
text: "text-warning-700",
|
|
1596
|
-
icon: /* @__PURE__ */ e.jsx(xe, { className: "h-5 w-5" })
|
|
1597
|
-
},
|
|
1598
|
-
info: {
|
|
1599
|
-
bg: "bg-info-50",
|
|
1600
|
-
border: "border-info-200",
|
|
1601
|
-
text: "text-info-700",
|
|
1602
|
-
icon: /* @__PURE__ */ e.jsx(me, { className: "h-5 w-5" })
|
|
1603
|
-
}
|
|
1604
|
-
}[r];
|
|
1605
|
-
return /* @__PURE__ */ e.jsx(
|
|
1606
|
-
"div",
|
|
1607
|
-
{
|
|
1608
|
-
className: `${c.bg} border ${c.border} rounded-md p-3 ${n}`,
|
|
1609
|
-
role: "alert",
|
|
1610
|
-
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
1611
|
-
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${c.text}`, children: a || c.icon }),
|
|
1612
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
1613
|
-
s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${c.text}`, children: s }),
|
|
1614
|
-
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${c.text}`, children: t })
|
|
1615
|
-
] }),
|
|
1616
|
-
l && /* @__PURE__ */ e.jsx(
|
|
1617
|
-
"button",
|
|
1618
|
-
{
|
|
1619
|
-
onClick: l,
|
|
1620
|
-
className: `flex-shrink-0 ${c.text} hover:opacity-70`,
|
|
1621
|
-
"aria-label": "Close alert",
|
|
1622
|
-
children: "✕"
|
|
1623
|
-
}
|
|
1624
|
-
)
|
|
1625
|
-
] })
|
|
1626
|
-
}
|
|
1627
|
-
);
|
|
1628
|
-
}
|
|
1629
|
-
const Ze = {
|
|
1764
|
+
Ke.displayName = "Slider";
|
|
1765
|
+
const Qe = {
|
|
1630
1766
|
bg: "bg-indigo-600",
|
|
1631
1767
|
activeBg: "bg-indigo-700",
|
|
1632
1768
|
text: "text-indigo-200",
|
|
@@ -1634,11 +1770,11 @@ const Ze = {
|
|
|
1634
1770
|
hoverBg: "hover:bg-indigo-700",
|
|
1635
1771
|
hoverText: "hover:text-white"
|
|
1636
1772
|
};
|
|
1637
|
-
function
|
|
1773
|
+
function $(...r) {
|
|
1638
1774
|
return r.filter(Boolean).join(" ");
|
|
1639
1775
|
}
|
|
1640
|
-
function
|
|
1641
|
-
const [t, a] =
|
|
1776
|
+
function me({ item: r, colorScheme: s }) {
|
|
1777
|
+
const [t, a] = T(r.current || r.children?.some((n) => n.current)), l = r.children && r.children.length > 0;
|
|
1642
1778
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1643
1779
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
1644
1780
|
"a",
|
|
@@ -1647,7 +1783,7 @@ function ue({ item: r, colorScheme: s }) {
|
|
|
1647
1783
|
onClick: (n) => {
|
|
1648
1784
|
l && (n.preventDefault(), a(!t));
|
|
1649
1785
|
},
|
|
1650
|
-
className:
|
|
1786
|
+
className: $(
|
|
1651
1787
|
r.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
1652
1788
|
"group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
|
|
1653
1789
|
l ? "cursor-pointer" : ""
|
|
@@ -1658,7 +1794,7 @@ function ue({ item: r, colorScheme: s }) {
|
|
|
1658
1794
|
r.icon,
|
|
1659
1795
|
{
|
|
1660
1796
|
"aria-hidden": "true",
|
|
1661
|
-
className:
|
|
1797
|
+
className: $(
|
|
1662
1798
|
r.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
1663
1799
|
"size-6 shrink-0"
|
|
1664
1800
|
)
|
|
@@ -1667,9 +1803,9 @@ function ue({ item: r, colorScheme: s }) {
|
|
|
1667
1803
|
r.name
|
|
1668
1804
|
] }),
|
|
1669
1805
|
l && /* @__PURE__ */ e.jsx(
|
|
1670
|
-
|
|
1806
|
+
ee,
|
|
1671
1807
|
{
|
|
1672
|
-
className:
|
|
1808
|
+
className: $(
|
|
1673
1809
|
"size-5 shrink-0 transition-transform",
|
|
1674
1810
|
t ? "rotate-180" : "",
|
|
1675
1811
|
r.current ? s.activeText : s.text
|
|
@@ -1683,7 +1819,7 @@ function ue({ item: r, colorScheme: s }) {
|
|
|
1683
1819
|
"a",
|
|
1684
1820
|
{
|
|
1685
1821
|
href: n.href,
|
|
1686
|
-
className:
|
|
1822
|
+
className: $(
|
|
1687
1823
|
n.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
1688
1824
|
"group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
|
|
1689
1825
|
),
|
|
@@ -1692,7 +1828,7 @@ function ue({ item: r, colorScheme: s }) {
|
|
|
1692
1828
|
n.icon,
|
|
1693
1829
|
{
|
|
1694
1830
|
"aria-hidden": "true",
|
|
1695
|
-
className:
|
|
1831
|
+
className: $(
|
|
1696
1832
|
n.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
1697
1833
|
"size-5 shrink-0"
|
|
1698
1834
|
)
|
|
@@ -1704,28 +1840,28 @@ function ue({ item: r, colorScheme: s }) {
|
|
|
1704
1840
|
) }, n.name)) })
|
|
1705
1841
|
] });
|
|
1706
1842
|
}
|
|
1707
|
-
function
|
|
1708
|
-
const [l, n] =
|
|
1843
|
+
function yr({ company: r, profile: s, navigation: t, colorScheme: a = Qe }) {
|
|
1844
|
+
const [l, n] = T(!1);
|
|
1709
1845
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1710
|
-
/* @__PURE__ */ e.jsxs(
|
|
1846
|
+
/* @__PURE__ */ e.jsxs(Ve, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
|
|
1711
1847
|
/* @__PURE__ */ e.jsx(
|
|
1712
|
-
|
|
1848
|
+
$e,
|
|
1713
1849
|
{
|
|
1714
1850
|
transition: !0,
|
|
1715
1851
|
className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
|
|
1716
1852
|
}
|
|
1717
1853
|
),
|
|
1718
1854
|
/* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
|
|
1719
|
-
|
|
1855
|
+
Te,
|
|
1720
1856
|
{
|
|
1721
1857
|
transition: !0,
|
|
1722
1858
|
className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
|
|
1723
1859
|
children: [
|
|
1724
|
-
/* @__PURE__ */ e.jsx(
|
|
1860
|
+
/* @__PURE__ */ e.jsx(Ee, { 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: [
|
|
1725
1861
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
|
|
1726
|
-
/* @__PURE__ */ e.jsx(
|
|
1862
|
+
/* @__PURE__ */ e.jsx(ke, { "aria-hidden": "true", className: "size-6 text-white" })
|
|
1727
1863
|
] }) }) }),
|
|
1728
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1864
|
+
/* @__PURE__ */ e.jsxs("div", { className: $("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
|
|
1729
1865
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
1730
1866
|
"img",
|
|
1731
1867
|
{
|
|
@@ -1734,13 +1870,13 @@ function wr({ company: r, profile: s, navigation: t, colorScheme: a = Ze }) {
|
|
|
1734
1870
|
className: "h-8 w-auto"
|
|
1735
1871
|
}
|
|
1736
1872
|
) }),
|
|
1737
|
-
/* @__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(
|
|
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(me, { item: i, colorScheme: a }, i.name)) }) }) }) })
|
|
1738
1874
|
] })
|
|
1739
1875
|
]
|
|
1740
1876
|
}
|
|
1741
1877
|
) })
|
|
1742
1878
|
] }),
|
|
1743
|
-
/* @__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:
|
|
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: $("flex grow flex-col gap-y-5 overflow-y-auto px-6", a.bg), children: [
|
|
1744
1880
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
1745
1881
|
"img",
|
|
1746
1882
|
{
|
|
@@ -1750,12 +1886,12 @@ function wr({ company: r, profile: s, navigation: t, colorScheme: a = Ze }) {
|
|
|
1750
1886
|
}
|
|
1751
1887
|
) }),
|
|
1752
1888
|
/* @__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: [
|
|
1753
|
-
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((i) => /* @__PURE__ */ e.jsx(
|
|
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(me, { item: i, colorScheme: a }, i.name)) }) }),
|
|
1754
1890
|
/* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
|
|
1755
1891
|
"a",
|
|
1756
1892
|
{
|
|
1757
1893
|
href: "#",
|
|
1758
|
-
className:
|
|
1894
|
+
className: $(
|
|
1759
1895
|
"flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
|
|
1760
1896
|
a.activeText,
|
|
1761
1897
|
a.hoverBg
|
|
@@ -1766,7 +1902,7 @@ function wr({ company: r, profile: s, navigation: t, colorScheme: a = Ze }) {
|
|
|
1766
1902
|
{
|
|
1767
1903
|
alt: s.name,
|
|
1768
1904
|
src: s.image,
|
|
1769
|
-
className:
|
|
1905
|
+
className: $("size-8 rounded-full", a.activeBg)
|
|
1770
1906
|
}
|
|
1771
1907
|
),
|
|
1772
1908
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
@@ -1776,12 +1912,12 @@ function wr({ company: r, profile: s, navigation: t, colorScheme: a = Ze }) {
|
|
|
1776
1912
|
) })
|
|
1777
1913
|
] }) })
|
|
1778
1914
|
] }) }),
|
|
1779
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
1780
|
-
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className:
|
|
1915
|
+
/* @__PURE__ */ e.jsxs("div", { className: $("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: [
|
|
1916
|
+
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className: $("-m-2.5 p-2.5 lg:hidden", a.text), children: [
|
|
1781
1917
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
|
|
1782
|
-
/* @__PURE__ */ e.jsx(
|
|
1918
|
+
/* @__PURE__ */ e.jsx(Ce, { "aria-hidden": "true", className: "size-6" })
|
|
1783
1919
|
] }),
|
|
1784
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
1920
|
+
/* @__PURE__ */ e.jsx("div", { className: $("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
|
|
1785
1921
|
/* @__PURE__ */ e.jsxs("a", { href: "#", children: [
|
|
1786
1922
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
1787
1923
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1789,14 +1925,14 @@ function wr({ company: r, profile: s, navigation: t, colorScheme: a = Ze }) {
|
|
|
1789
1925
|
{
|
|
1790
1926
|
alt: s.name,
|
|
1791
1927
|
src: s.image,
|
|
1792
|
-
className:
|
|
1928
|
+
className: $("size-8 rounded-full", a.activeBg)
|
|
1793
1929
|
}
|
|
1794
1930
|
)
|
|
1795
1931
|
] })
|
|
1796
1932
|
] })
|
|
1797
1933
|
] }) });
|
|
1798
1934
|
}
|
|
1799
|
-
const
|
|
1935
|
+
const er = {
|
|
1800
1936
|
activeBg: "bg-reseda-green-700",
|
|
1801
1937
|
activeText: "text-white",
|
|
1802
1938
|
completedBg: "bg-success-500",
|
|
@@ -1807,8 +1943,8 @@ const Ke = {
|
|
|
1807
1943
|
labelInactiveText: "text-text-muted",
|
|
1808
1944
|
connectorBg: "bg-border"
|
|
1809
1945
|
};
|
|
1810
|
-
function
|
|
1811
|
-
const a = t ||
|
|
1946
|
+
function kr({ currentStep: r, steps: s, colorConfig: t }) {
|
|
1947
|
+
const a = t || er;
|
|
1812
1948
|
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: [
|
|
1813
1949
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
1814
1950
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1829,19 +1965,19 @@ function yr({ currentStep: r, steps: s, colorConfig: t }) {
|
|
|
1829
1965
|
n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
|
|
1830
1966
|
] }, l.number)) }) });
|
|
1831
1967
|
}
|
|
1832
|
-
const
|
|
1968
|
+
const rr = {
|
|
1833
1969
|
activeText: "text-reseda-green-700",
|
|
1834
1970
|
activeBorder: "border-reseda-green-700",
|
|
1835
1971
|
inactiveText: "text-text-secondary",
|
|
1836
1972
|
inactiveHoverText: "hover:text-text-primary",
|
|
1837
1973
|
disabledText: "text-text-disabled"
|
|
1838
1974
|
};
|
|
1839
|
-
function
|
|
1840
|
-
const n = l ||
|
|
1975
|
+
function Cr({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
|
|
1976
|
+
const n = l || rr;
|
|
1841
1977
|
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((i) => {
|
|
1842
1978
|
const c = s === i.id;
|
|
1843
1979
|
return /* @__PURE__ */ e.jsx(
|
|
1844
|
-
|
|
1980
|
+
F,
|
|
1845
1981
|
{
|
|
1846
1982
|
variant: "ghost",
|
|
1847
1983
|
onClick: () => !t && a(i.id),
|
|
@@ -1853,7 +1989,7 @@ function Nr({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig:
|
|
|
1853
1989
|
);
|
|
1854
1990
|
}) });
|
|
1855
1991
|
}
|
|
1856
|
-
function
|
|
1992
|
+
function Vr({
|
|
1857
1993
|
status: r,
|
|
1858
1994
|
title: s,
|
|
1859
1995
|
message: t,
|
|
@@ -1866,25 +2002,25 @@ function Cr({
|
|
|
1866
2002
|
bg: "bg-success-50",
|
|
1867
2003
|
border: "border-success-200",
|
|
1868
2004
|
text: "text-success-700",
|
|
1869
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2005
|
+
icon: /* @__PURE__ */ e.jsx(ve, { className: "h-5 w-5" })
|
|
1870
2006
|
},
|
|
1871
2007
|
error: {
|
|
1872
2008
|
bg: "bg-error-50",
|
|
1873
2009
|
border: "border-error-200",
|
|
1874
2010
|
text: "text-error-700",
|
|
1875
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2011
|
+
icon: /* @__PURE__ */ e.jsx(he, { className: "h-5 w-5" })
|
|
1876
2012
|
},
|
|
1877
2013
|
warning: {
|
|
1878
2014
|
bg: "bg-warning-50",
|
|
1879
2015
|
border: "border-warning-200",
|
|
1880
2016
|
text: "text-warning-700",
|
|
1881
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2017
|
+
icon: /* @__PURE__ */ e.jsx(fe, { className: "h-5 w-5" })
|
|
1882
2018
|
},
|
|
1883
2019
|
info: {
|
|
1884
2020
|
bg: "bg-info-50",
|
|
1885
2021
|
border: "border-info-200",
|
|
1886
2022
|
text: "text-info-700",
|
|
1887
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
2023
|
+
icon: /* @__PURE__ */ e.jsx(xe, { className: "h-5 w-5" })
|
|
1888
2024
|
},
|
|
1889
2025
|
loading: {
|
|
1890
2026
|
bg: "bg-blue-50",
|
|
@@ -1920,41 +2056,42 @@ function Cr({
|
|
|
1920
2056
|
] }) });
|
|
1921
2057
|
}
|
|
1922
2058
|
export {
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
2059
|
+
vr as Accordion,
|
|
2060
|
+
gr as ActionCard,
|
|
2061
|
+
H as Alert,
|
|
2062
|
+
We as Badge,
|
|
2063
|
+
F as Button,
|
|
2064
|
+
br as Card,
|
|
2065
|
+
xr as CheckboxGroup,
|
|
2066
|
+
Pe as ColorPalette,
|
|
2067
|
+
dr as Demo,
|
|
2068
|
+
jr as DetailPanel,
|
|
2069
|
+
mr as FileUpload,
|
|
2070
|
+
ur as FormField,
|
|
2071
|
+
Fe as Input,
|
|
2072
|
+
Nr as OptionCard,
|
|
2073
|
+
wr as PageHeader,
|
|
2074
|
+
fr as RadioGroup,
|
|
2075
|
+
pr as Section,
|
|
2076
|
+
Ie as Select,
|
|
2077
|
+
yr as Sidebar,
|
|
2078
|
+
Ke as Slider,
|
|
1942
2079
|
qe as SocialButton,
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
2080
|
+
hr as StatsGrid,
|
|
2081
|
+
Vr as StatusBanner,
|
|
2082
|
+
kr as Stepper,
|
|
2083
|
+
Cr as TabBar,
|
|
2084
|
+
He as TagInput,
|
|
2085
|
+
Ze as Textarea,
|
|
1949
2086
|
Se as ThemeProvider,
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
2087
|
+
Me as ThemeToggle,
|
|
2088
|
+
cr as clearAllErrors,
|
|
2089
|
+
or as clearFieldError,
|
|
2090
|
+
lr as getFirstError,
|
|
2091
|
+
Ae as hasErrors,
|
|
2092
|
+
ir as useForm,
|
|
2093
|
+
Le as useTheme,
|
|
2094
|
+
Re as validateField,
|
|
2095
|
+
Q as validateForm,
|
|
2096
|
+
nr as validators
|
|
1960
2097
|
};
|