acemyjob-ui 0.17.1 → 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.
@@ -1,8 +1,10 @@
1
- import * as W from "react";
2
- import B, { useState as $, useCallback as R, createContext as je, useEffect as K, useContext as we } from "react";
3
- import { ChevronDownIcon as Q, InformationCircleIcon as me, ExclamationCircleIcon as xe, XCircleIcon as fe, CheckCircleIcon as he, XMarkIcon as ye, Bars3Icon as Ne } from "@heroicons/react/24/outline";
4
- import { Dialog as Ce, DialogBackdrop as ke, DialogPanel as Ve, TransitionChild as $e } from "@headlessui/react";
5
- const ar = {
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,124 +59,124 @@ const ar = {
57
59
  message: s
58
60
  })
59
61
  };
60
- function Te(r, s) {
62
+ function Oe(r, s) {
61
63
  for (const t of s)
62
64
  if (!t.validate(r))
63
65
  return t.message;
64
66
  return null;
65
67
  }
66
- function Z(r, s) {
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 = Te(n, l);
71
+ const n = r[a], i = Oe(n, l);
70
72
  t[a] = i;
71
73
  }
72
74
  return t;
73
75
  }
74
- function Ee(r) {
76
+ function Se(r) {
75
77
  return Object.values(r).some((s) => s !== null);
76
78
  }
77
- function tr(r) {
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 nr(r, s) {
85
+ function vr(r, s) {
84
86
  return {
85
87
  ...r,
86
88
  [s]: null
87
89
  };
88
90
  }
89
- function lr(r) {
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 or({
97
+ function br({
96
98
  initialValues: r,
97
99
  validationRules: s = {},
98
100
  onSubmit: t
99
101
  }) {
100
- const [a, l] = $(r), [n, i] = $({}), [c, u] = $({}), [f, d] = $(!1), m = JSON.stringify(a) !== JSON.stringify(r), h = R(
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: v, value: w, type: V } = p.target;
103
- let M = w;
104
- if (V === "checkbox" ? M = p.target.checked : V === "number" && (M = w ? Number(w) : ""), l((S) => ({
105
- ...S,
106
- [v]: M
107
- })), s[v]) {
108
- const S = Z({ [v]: M }, { [v]: s[v] });
109
- i((Y) => ({
110
- ...Y,
111
- [v]: S[v]
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
- ), g = R(
118
+ ), v = D(
117
119
  (p) => {
118
- const { name: v } = p.target;
120
+ const { name: b } = p.target;
119
121
  u((w) => ({
120
122
  ...w,
121
- [v]: !0
123
+ [b]: !0
122
124
  }));
123
125
  },
124
126
  []
125
- ), b = R((p, v) => {
127
+ ), g = D((p, b) => {
126
128
  if (l((w) => ({
127
129
  ...w,
128
- [p]: v
130
+ [p]: b
129
131
  })), s[p]) {
130
- const w = Z({ [p]: v }, { [p]: s[p] });
131
- i((V) => ({
132
- ...V,
132
+ const w = Q({ [p]: b }, { [p]: s[p] });
133
+ i((A) => ({
134
+ ...A,
133
135
  [p]: w[p]
134
136
  }));
135
137
  }
136
- }, [s]), C = R((p, v) => {
138
+ }, [s]), y = D((p, b) => {
137
139
  i((w) => ({
138
140
  ...w,
139
- [p]: v
141
+ [p]: b
140
142
  }));
141
- }, []), _ = R(
143
+ }, []), V = D(
142
144
  async (p) => {
143
145
  p.preventDefault();
144
- const v = Z(a, s);
145
- i(v);
146
+ const b = Q(a, s);
147
+ i(b);
146
148
  const w = {};
147
- for (const V of Object.keys(a))
148
- w[V] = !0;
149
- if (u(w), !Ee(v) && t) {
149
+ for (const A of Object.keys(a))
150
+ w[A] = !0;
151
+ if (u(w), !Se(b) && t) {
150
152
  d(!0);
151
153
  try {
152
154
  await t(a);
153
- } catch (V) {
154
- console.error("Form submission error:", V);
155
+ } catch (A) {
156
+ console.error("Form submission error:", A);
155
157
  } finally {
156
158
  d(!1);
157
159
  }
158
160
  }
159
161
  },
160
162
  [a, s, t]
161
- ), A = R(() => {
163
+ ), T = D(() => {
162
164
  l(r), i({}), u({}), d(!1);
163
- }, [r]), T = R(
165
+ }, [r]), R = D(
164
166
  (p) => ({
165
167
  name: p,
166
168
  value: a[p] || "",
167
- onChange: h,
168
- onBlur: g
169
+ onChange: f,
170
+ onBlur: v
169
171
  }),
170
- [a, h, g]
171
- ), P = R(
172
+ [a, f, v]
173
+ ), N = D(
172
174
  (p) => n[p] || null,
173
175
  [n]
174
- ), z = R(
176
+ ), S = D(
175
177
  (p) => c[p] || !1,
176
178
  [c]
177
- ), D = R(
179
+ ), I = D(
178
180
  (p) => a[p] !== r[p],
179
181
  [a, r]
180
182
  );
@@ -182,21 +184,21 @@ function or({
182
184
  values: a,
183
185
  errors: n,
184
186
  touched: c,
185
- isSubmitting: f,
187
+ isSubmitting: x,
186
188
  isDirty: m,
187
- handleChange: h,
188
- handleBlur: g,
189
- setFieldValue: b,
190
- setFieldError: C,
191
- handleSubmit: _,
192
- resetForm: A,
193
- getFieldProps: T,
194
- getFieldError: P,
195
- isFieldTouched: z,
196
- isFieldDirty: D
189
+ handleChange: f,
190
+ handleBlur: v,
191
+ setFieldValue: g,
192
+ setFieldError: y,
193
+ handleSubmit: V,
194
+ resetForm: T,
195
+ getFieldProps: R,
196
+ getFieldError: N,
197
+ isFieldTouched: S,
198
+ isFieldDirty: I
197
199
  };
198
200
  }
199
- var U = { exports: {} }, L = {};
201
+ var H = { exports: {} }, U = {};
200
202
  /**
201
203
  * @license React
202
204
  * react-jsx-runtime.production.js
@@ -206,10 +208,10 @@ var U = { exports: {} }, L = {};
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 ne;
210
- function Re() {
211
- if (ne) return L;
212
- ne = 1;
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 Re() {
226
228
  props: n
227
229
  };
228
230
  }
229
- return L.Fragment = s, L.jsx = t, L.jsxs = t, L;
231
+ return U.Fragment = s, U.jsx = t, U.jsxs = t, U;
230
232
  }
231
- var I = {};
233
+ var Y = {};
232
234
  /**
233
235
  * @license React
234
236
  * react-jsx-runtime.development.js
@@ -238,47 +240,47 @@ var I = {};
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 le;
242
- function Ae() {
243
- return le || (le = 1, process.env.NODE_ENV !== "production" && function() {
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 === M ? null : o.displayName || o.name || null;
249
+ return o.$$typeof === L ? null : o.displayName || o.name || null;
248
250
  if (typeof o == "string") return o;
249
251
  switch (o) {
250
- case C:
252
+ case y:
251
253
  return "Fragment";
252
- case A:
254
+ case T:
253
255
  return "Profiler";
254
- case _:
256
+ case V:
255
257
  return "StrictMode";
256
- case D:
258
+ case I:
257
259
  return "Suspense";
258
260
  case p:
259
261
  return "SuspenseList";
260
- case V:
262
+ case A:
261
263
  return "Activity";
262
264
  }
263
265
  if (typeof o == "object")
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 b:
269
+ case g:
268
270
  return "Portal";
269
- case P:
271
+ case N:
270
272
  return (o.displayName || "Context") + ".Provider";
271
- case T:
273
+ case R:
272
274
  return (o._context.displayName || "Context") + ".Consumer";
273
- case z:
274
- var x = o.render;
275
- return o = o.displayName, o || (o = x.displayName || x.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
276
- case v:
277
- return x = o.displayName || null, x !== null ? x : r(o.type) || "Memo";
275
+ case S:
276
+ var h = o.render;
277
+ return o = o.displayName, o || (o = h.displayName || h.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
278
+ case b:
279
+ return h = o.displayName || null, h !== null ? h : r(o.type) || "Memo";
278
280
  case w:
279
- x = o._payload, o = o._init;
281
+ h = o._payload, o = o._init;
280
282
  try {
281
- return r(o(x));
283
+ return r(o(h));
282
284
  } catch {
283
285
  }
284
286
  }
@@ -290,50 +292,50 @@ function Ae() {
290
292
  function t(o) {
291
293
  try {
292
294
  s(o);
293
- var x = !1;
295
+ var h = !1;
294
296
  } catch {
295
- x = !0;
297
+ h = !0;
296
298
  }
297
- if (x) {
298
- x = console;
299
- var j = x.error, y = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
299
+ if (h) {
300
+ h = console;
301
+ var j = h.error, C = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
300
302
  return j.call(
301
- x,
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
- y
305
+ C
304
306
  ), s(o);
305
307
  }
306
308
  }
307
309
  function a(o) {
308
- if (o === C) return "<>";
310
+ if (o === y) return "<>";
309
311
  if (typeof o == "object" && o !== null && o.$$typeof === w)
310
312
  return "<...>";
311
313
  try {
312
- var x = r(o);
313
- return x ? "<" + x + ">" : "<...>";
314
+ var h = r(o);
315
+ return h ? "<" + h + ">" : "<...>";
314
316
  } catch {
315
317
  return "<...>";
316
318
  }
317
319
  }
318
320
  function l() {
319
- var o = S.A;
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 (Y.call(o, "key")) {
327
- var x = Object.getOwnPropertyDescriptor(o, "key").get;
328
- if (x && x.isReactWarning) return !1;
328
+ if (W.call(o, "key")) {
329
+ var h = Object.getOwnPropertyDescriptor(o, "key").get;
330
+ if (h && h.isReactWarning) return !1;
329
331
  }
330
332
  return o.key !== void 0;
331
333
  }
332
- function c(o, x) {
334
+ function c(o, h) {
333
335
  function j() {
334
- ee || (ee = !0, console.error(
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
- x
338
+ h
337
339
  ));
338
340
  }
339
341
  j.isReactWarning = !0, Object.defineProperty(o, "key", {
@@ -343,17 +345,17 @@ function Ae() {
343
345
  }
344
346
  function u() {
345
347
  var o = r(this.type);
346
- return re[o] || (re[o] = !0, console.error(
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 f(o, x, j, y, O, E, J, q) {
351
- return j = E.ref, o = {
352
- $$typeof: g,
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
- key: x,
355
- props: E,
356
- _owner: O
356
+ key: h,
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
@@ -371,118 +373,118 @@ function Ae() {
371
373
  configurable: !1,
372
374
  enumerable: !1,
373
375
  writable: !0,
374
- value: J
376
+ value: q
375
377
  }), Object.defineProperty(o, "_debugTask", {
376
378
  configurable: !1,
377
379
  enumerable: !1,
378
380
  writable: !0,
379
- value: q
381
+ value: Z
380
382
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
381
383
  }
382
- function d(o, x, j, y, O, E, J, q) {
383
- var N = x.children;
384
- if (N !== void 0)
385
- if (y)
386
- if (be(N)) {
387
- for (y = 0; y < N.length; y++)
388
- m(N[y]);
389
- Object.freeze && Object.freeze(N);
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(N);
395
- if (Y.call(x, "key")) {
396
- N = r(o);
397
- var F = Object.keys(x).filter(function(pe) {
398
- return pe !== "key";
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
- y = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", te[N + y] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
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
- y,
408
- N,
409
+ C,
410
+ k,
409
411
  F,
410
- N
411
- ), te[N + y] = !0);
412
+ k
413
+ ), le[k + C] = !0);
412
414
  }
413
- if (N = null, j !== void 0 && (t(j), N = "" + j), i(x) && (t(x.key), N = "" + x.key), "key" in x) {
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
- for (var X in x)
416
- X !== "key" && (j[X] = x[X]);
417
- } else j = x;
418
- return N && c(
417
+ for (var K in h)
418
+ K !== "key" && (j[K] = h[K]);
419
+ } else j = h;
420
+ return k && c(
419
421
  j,
420
422
  typeof o == "function" ? o.displayName || o.name || "Unknown" : o
421
- ), f(
423
+ ), x(
422
424
  o,
423
- N,
424
- E,
425
- O,
425
+ k,
426
+ B,
427
+ P,
426
428
  l(),
427
429
  j,
428
- J,
429
- q
430
+ q,
431
+ Z
430
432
  );
431
433
  }
432
434
  function m(o) {
433
- typeof o == "object" && o !== null && o.$$typeof === g && o._store && (o._store.validated = 1);
435
+ typeof o == "object" && o !== null && o.$$typeof === v && o._store && (o._store.validated = 1);
434
436
  }
435
- var h = B, g = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), P = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), S = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, be = Array.isArray, G = console.createTask ? console.createTask : function() {
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
- h = {
440
+ f = {
439
441
  "react-stack-bottom-frame": function(o) {
440
442
  return o();
441
443
  }
442
444
  };
443
- var ee, re = {}, se = h["react-stack-bottom-frame"].bind(
444
- h,
445
+ var se, ae = {}, te = f["react-stack-bottom-frame"].bind(
446
+ f,
445
447
  n
446
- )(), ae = G(a(n)), te = {};
447
- I.Fragment = C, I.jsx = function(o, x, j, y, O) {
448
- var E = 1e4 > S.recentlyCreatedOwnerStacks++;
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
- x,
453
+ h,
452
454
  j,
453
455
  !1,
454
- y,
455
- O,
456
- E ? Error("react-stack-top-frame") : se,
457
- E ? G(a(o)) : ae
456
+ C,
457
+ P,
458
+ B ? Error("react-stack-top-frame") : te,
459
+ B ? X(a(o)) : ne
458
460
  );
459
- }, I.jsxs = function(o, x, j, y, O) {
460
- var E = 1e4 > S.recentlyCreatedOwnerStacks++;
461
+ }, Y.jsxs = function(o, h, j, C, P) {
462
+ var B = 1e4 > M.recentlyCreatedOwnerStacks++;
461
463
  return d(
462
464
  o,
463
- x,
465
+ h,
464
466
  j,
465
467
  !0,
466
- y,
467
- O,
468
- E ? Error("react-stack-top-frame") : se,
469
- E ? G(a(o)) : ae
468
+ C,
469
+ P,
470
+ B ? Error("react-stack-top-frame") : te,
471
+ B ? X(a(o)) : ne
470
472
  );
471
473
  };
472
- }()), I;
474
+ }()), Y;
473
475
  }
474
- var oe;
475
- function _e() {
476
- return oe || (oe = 1, process.env.NODE_ENV === "production" ? U.exports = Re() : U.exports = Ae()), U.exports;
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 = _e();
479
- const ve = (r) => r.replace("--color-", "bg-"), Oe = ({ name: r, cssVar: s, value: t }) => {
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 ${ve(s)}`
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 ve = (r) => r.replace("--color-", "bg-"), Oe = ({ name: r, cssVar: s, valu
491
493
  /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: a })
492
494
  ] })
493
495
  ] });
494
- }, ce = ({ title: r, colors: s }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
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(Oe, { ...t }, t.name)) })
497
- ] }), Be = () => {
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 ve = (r) => r.replace("--color-", "bg-"), Oe = ({ 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(ce, { ...a }, a.title)),
714
- r.map((a) => /* @__PURE__ */ e.jsx(ce, { ...a }, a.title)),
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 ${ve(a.cssVar)}`
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,42 +731,42 @@ const ve = (r) => r.replace("--color-", "bg-"), Oe = ({ 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
- }, ge = je(void 0), Se = ({
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
739
  const [a, l] = $(s), [n, i] = $("light"), [c, u] = $(!1);
738
- K(() => {
740
+ J(() => {
739
741
  const d = localStorage.getItem(t);
740
742
  d && l(d), u(!0);
741
- }, [t]), K(() => {
743
+ }, [t]), J(() => {
742
744
  if (!c) return;
743
745
  const d = window.document.documentElement, m = () => {
744
- let h;
745
- a === "system" ? h = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : h = a, i(h), d.classList.remove("light", "dark"), d.classList.add(h);
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 h = window.matchMedia("(prefers-color-scheme: dark)"), g = () => m();
749
- return h.addEventListener("change", g), () => h.removeEventListener("change", g);
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 f = {
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(ge.Provider, { value: f, children: r });
760
- }, Pe = () => {
761
- const r = we(ge);
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
- }, ze = () => {
766
- const { theme: r, setTheme: s } = Pe(), [t, a] = $(!1);
767
- if (K(() => {
767
+ }, Ye = () => {
768
+ const { theme: r, setTheme: s } = Ue(), [t, a] = $(!1);
769
+ if (J(() => {
768
770
  a(!0);
769
771
  }, []), !t)
770
772
  return /* @__PURE__ */ e.jsxs(
@@ -811,11 +813,11 @@ const ve = (r) => r.replace("--color-", "bg-"), Oe = ({ name: r, cssVar: s, valu
811
813
  ]
812
814
  }
813
815
  );
814
- }, De = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
815
- /* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(ze, {}) }),
816
- /* @__PURE__ */ e.jsx(Be, {})
817
- ] }), cr = () => /* @__PURE__ */ e.jsx(Se, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(De, {}) });
818
- function ir({
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 ir({
833
835
  t && !a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted", children: t })
834
836
  ] });
835
837
  }
836
- const Me = B.forwardRef(
838
+ const He = z.forwardRef(
837
839
  ({
838
840
  className: r = "",
839
841
  leftIcon: s,
@@ -843,14 +845,14 @@ const Me = B.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", 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" : "", h = 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: h, children: [
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: g,
855
+ className: v,
854
856
  disabled: n,
855
857
  ...i
856
858
  }
@@ -859,8 +861,8 @@ const Me = B.forwardRef(
859
861
  ] });
860
862
  }
861
863
  );
862
- Me.displayName = "Input";
863
- const Fe = B.forwardRef(
864
+ He.displayName = "Input";
865
+ const Ge = z.forwardRef(
864
866
  ({
865
867
  options: r,
866
868
  placeholder: s,
@@ -870,32 +872,32 @@ const Fe = B.forwardRef(
870
872
  disabled: n,
871
873
  ...i
872
874
  }, c) => {
873
- const h = `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}`;
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: h,
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((g) => /* @__PURE__ */ e.jsx("option", { value: g.value, children: g.label }, g.value))
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(Q, { className: "absolute right-3 w-4 h-4 text-text-muted pointer-events-none" })
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
- Fe.displayName = "Select";
893
- function Le({
894
+ Ge.displayName = "Select";
895
+ function Je({
894
896
  title: r,
895
897
  titleId: s,
896
898
  ...t
897
899
  }, a) {
898
- return /* @__PURE__ */ W.createElement("svg", Object.assign({
900
+ return /* @__PURE__ */ _.createElement("svg", Object.assign({
899
901
  xmlns: "http://www.w3.org/2000/svg",
900
902
  viewBox: "0 0 20 20",
901
903
  fill: "currentColor",
@@ -903,14 +905,58 @@ function Le({
903
905
  "data-slot": "icon",
904
906
  ref: a,
905
907
  "aria-labelledby": s
906
- }, t), r ? /* @__PURE__ */ W.createElement("title", {
908
+ }, t), r ? /* @__PURE__ */ _.createElement("title", {
907
909
  id: s
908
- }, r) : null, /* @__PURE__ */ W.createElement("path", {
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({
940
+ title: r,
941
+ titleId: s,
942
+ ...t
943
+ }, a) {
944
+ return /* @__PURE__ */ _.createElement("svg", Object.assign({
945
+ xmlns: "http://www.w3.org/2000/svg",
946
+ viewBox: "0 0 20 20",
947
+ fill: "currentColor",
948
+ "aria-hidden": "true",
949
+ "data-slot": "icon",
950
+ ref: a,
951
+ "aria-labelledby": s
952
+ }, t), r ? /* @__PURE__ */ _.createElement("title", {
953
+ id: s
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 Ie = /* @__PURE__ */ W.forwardRef(Le);
913
- function Ye({
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 Ye({
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
- }, f = {
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 Ye({
934
980
  return /* @__PURE__ */ e.jsxs(
935
981
  "span",
936
982
  {
937
- className: `inline-flex items-center gap-1 rounded-full ${d} ${f[t]} ${n}`,
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 Ye({
944
990
  onClick: l,
945
991
  className: "ml-1 hover:opacity-70",
946
992
  "aria-label": "Remove badge",
947
- children: /* @__PURE__ */ e.jsx(Ie, { className: "w-3 h-3" })
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 Ue = B.forwardRef(
1000
+ const Ke = z.forwardRef(
955
1001
  ({
956
1002
  tags: r,
957
1003
  onTagsChange: s,
@@ -962,43 +1008,43 @@ const Ue = B.forwardRef(
962
1008
  fullWidth: i = !0,
963
1009
  maxTags: c,
964
1010
  duplicateCheck: u = !0,
965
- disabled: f,
1011
+ disabled: x,
966
1012
  className: d = "",
967
1013
  ...m
968
- }, h) => {
969
- const [g, b] = $(""), C = (v) => {
970
- v.key === "Enter" && g.trim() ? (v.preventDefault(), _(g.trim())) : v.key === "Backspace" && !g && r.length > 0 && A(r[r.length - 1]);
971
- }, _ = (v) => {
972
- if (c && r.length >= c || u && r.includes(v))
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, v];
975
- s(w), t?.(v), b("");
976
- }, A = (v) => {
977
- const w = r.filter((V) => V !== v);
978
- s(w), a?.(v);
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}`;
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((v) => /* @__PURE__ */ e.jsx(
982
- Ye,
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: () => A(v),
1031
+ onRemove: () => T(b),
986
1032
  variant: "default",
987
- children: v
1033
+ children: b
988
1034
  },
989
- v
1035
+ b
990
1036
  )) }),
991
1037
  /* @__PURE__ */ e.jsx(
992
1038
  "input",
993
1039
  {
994
- ref: h,
1040
+ ref: f,
995
1041
  type: "text",
996
1042
  className: p,
997
1043
  placeholder: l,
998
- value: g,
999
- onChange: (v) => b(v.target.value),
1000
- onKeyDown: C,
1001
- disabled: f || (c ? r.length >= c : !1),
1044
+ value: v,
1045
+ onChange: (b) => g(b.target.value),
1046
+ onKeyDown: y,
1047
+ disabled: x || (c ? r.length >= c : !1),
1002
1048
  ...m
1003
1049
  }
1004
1050
  ),
@@ -1010,8 +1056,338 @@ const Ue = B.forwardRef(
1010
1056
  ] });
1011
1057
  }
1012
1058
  );
1013
- Ue.displayName = "TagInput";
1014
- const We = B.forwardRef(
1059
+ Ke.displayName = "TagInput";
1060
+ const xe = {
1061
+ variant: {
1062
+ default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
1063
+ destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
1064
+ outline: "border border-border bg-background hover:bg-surface-variant hover:text-text-primary focus-visible:ring-reseda-green-500",
1065
+ secondary: "bg-khaki-500 text-white hover:bg-khaki-600 focus-visible:ring-khaki-500",
1066
+ ghost: "hover:bg-surface-variant hover:text-text-primary focus-visible:ring-reseda-green-500",
1067
+ link: "text-reseda-green-500 underline-offset-4 hover:underline focus-visible:ring-reseda-green-500",
1068
+ none: ""
1069
+ // No default styles, allows full customization
1070
+ },
1071
+ size: {
1072
+ default: "h-10 px-4 py-2",
1073
+ sm: "h-9 rounded-md px-3",
1074
+ lg: "h-11 rounded-md px-8",
1075
+ xl: "h-12 rounded-md px-10 text-base",
1076
+ icon: "h-10 w-10"
1077
+ }
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(
1079
+ ({
1080
+ className: r,
1081
+ variant: s = "default",
1082
+ size: t = "default",
1083
+ fullWidth: a = !1,
1084
+ loading: l = !1,
1085
+ leftIcon: n,
1086
+ rightIcon: i,
1087
+ children: c,
1088
+ disabled: u,
1089
+ ...x
1090
+ }, d) => {
1091
+ const m = u || l, f = er(
1092
+ Qe,
1093
+ xe.variant[s],
1094
+ xe.size[t],
1095
+ a ? "w-full" : "",
1096
+ r
1097
+ );
1098
+ return /* @__PURE__ */ e.jsxs(
1099
+ "button",
1100
+ {
1101
+ className: f,
1102
+ ref: d,
1103
+ disabled: m,
1104
+ ...x,
1105
+ children: [
1106
+ l && /* @__PURE__ */ e.jsxs(
1107
+ "svg",
1108
+ {
1109
+ className: "mr-2 h-4 w-4 animate-spin",
1110
+ xmlns: "http://www.w3.org/2000/svg",
1111
+ fill: "none",
1112
+ viewBox: "0 0 24 24",
1113
+ children: [
1114
+ /* @__PURE__ */ e.jsx(
1115
+ "circle",
1116
+ {
1117
+ className: "opacity-25",
1118
+ cx: "12",
1119
+ cy: "12",
1120
+ r: "10",
1121
+ stroke: "currentColor",
1122
+ strokeWidth: "4"
1123
+ }
1124
+ ),
1125
+ /* @__PURE__ */ e.jsx(
1126
+ "path",
1127
+ {
1128
+ className: "opacity-75",
1129
+ fill: "currentColor",
1130
+ 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"
1131
+ }
1132
+ )
1133
+ ]
1134
+ }
1135
+ ),
1136
+ !l && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
1137
+ c,
1138
+ !l && i && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: i })
1139
+ ]
1140
+ }
1141
+ );
1142
+ }
1143
+ );
1144
+ O.displayName = "Button";
1145
+ const fe = {
1146
+ provider: {
1147
+ linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
1148
+ },
1149
+ iconPosition: {
1150
+ left: "flex-row",
1151
+ right: "flex-row-reverse",
1152
+ only: "justify-center"
1153
+ }
1154
+ }, rr = (...r) => r.filter(Boolean).join(" "), sr = z.forwardRef(
1155
+ ({
1156
+ className: r,
1157
+ provider: s,
1158
+ iconPosition: t = "left",
1159
+ icon: a,
1160
+ showText: l = !0,
1161
+ children: n,
1162
+ size: i = "default",
1163
+ fullWidth: c = !0,
1164
+ ...u
1165
+ }, x) => {
1166
+ const m = a || {
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" }) })
1168
+ }[s], v = n || (l ? {
1169
+ linkedin: "Continue with LinkedIn"
1170
+ }[s] : ""), g = rr(
1171
+ "relative overflow-hidden transition-all duration-200",
1172
+ fe.provider[s],
1173
+ fe.iconPosition[t],
1174
+ r
1175
+ );
1176
+ return /* @__PURE__ */ e.jsxs(
1177
+ O,
1178
+ {
1179
+ ref: x,
1180
+ variant: "none",
1181
+ className: g,
1182
+ size: i,
1183
+ fullWidth: c,
1184
+ leftIcon: t === "left" ? m : void 0,
1185
+ rightIcon: t === "right" ? m : void 0,
1186
+ ...u,
1187
+ children: [
1188
+ t === "only" && m,
1189
+ t !== "only" && v
1190
+ ]
1191
+ }
1192
+ );
1193
+ }
1194
+ );
1195
+ sr.displayName = "SocialButton";
1196
+ function G({
1197
+ variant: r,
1198
+ title: s,
1199
+ message: t,
1200
+ icon: a,
1201
+ onClose: l,
1202
+ className: n = ""
1203
+ }) {
1204
+ const c = {
1205
+ success: {
1206
+ bg: "bg-success-50",
1207
+ border: "border-success-200",
1208
+ text: "text-success-700",
1209
+ icon: /* @__PURE__ */ e.jsx(pe, { className: "h-5 w-5" })
1210
+ },
1211
+ error: {
1212
+ bg: "bg-error-50",
1213
+ border: "border-error-200",
1214
+ text: "text-error-700",
1215
+ icon: /* @__PURE__ */ e.jsx(be, { className: "h-5 w-5" })
1216
+ },
1217
+ warning: {
1218
+ bg: "bg-warning-50",
1219
+ border: "border-warning-200",
1220
+ text: "text-warning-700",
1221
+ icon: /* @__PURE__ */ e.jsx(ge, { className: "h-5 w-5" })
1222
+ },
1223
+ info: {
1224
+ bg: "bg-info-50",
1225
+ border: "border-info-200",
1226
+ text: "text-info-700",
1227
+ icon: /* @__PURE__ */ e.jsx(ve, { className: "h-5 w-5" })
1228
+ }
1229
+ }[r];
1230
+ return /* @__PURE__ */ e.jsx(
1231
+ "div",
1232
+ {
1233
+ className: `${c.bg} border ${c.border} rounded-md p-3 ${n}`,
1234
+ role: "alert",
1235
+ children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
1236
+ /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${c.text}`, children: a || c.icon }),
1237
+ /* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
1238
+ s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${c.text}`, children: s }),
1239
+ /* @__PURE__ */ e.jsx("p", { className: `text-sm ${c.text}`, children: t })
1240
+ ] }),
1241
+ l && /* @__PURE__ */ e.jsx(
1242
+ "button",
1243
+ {
1244
+ onClick: l,
1245
+ className: `flex-shrink-0 ${c.text} hover:opacity-70`,
1246
+ "aria-label": "Close alert",
1247
+ children: "✕"
1248
+ }
1249
+ )
1250
+ ] })
1251
+ }
1252
+ );
1253
+ }
1254
+ function wr({
1255
+ onFileChange: r,
1256
+ onAnalyze: s,
1257
+ uploadedFile: t,
1258
+ fileError: a,
1259
+ onCancelUpload: l,
1260
+ isAnalyzing: n = !1,
1261
+ analyzeError: i,
1262
+ analyzeSuccess: c,
1263
+ accept: u = ".pdf,.docx",
1264
+ label: x = "Upload File",
1265
+ description: d = "PDF, DOCX up to 5MB",
1266
+ analyzeButtonLabel: m = "Analyze",
1267
+ disabled: f = !1,
1268
+ showAnalyzeButton: v = !0
1269
+ }) {
1270
+ const g = Ve(null), [y, V] = $(!1);
1271
+ J(() => {
1272
+ !t && g.current && (g.current.value = "");
1273
+ }, [t]);
1274
+ const T = (N) => {
1275
+ N.preventDefault(), N.stopPropagation(), N.type === "dragenter" || N.type === "dragover" ? V(!0) : N.type === "dragleave" && V(!1);
1276
+ }, R = (N) => {
1277
+ if (N.preventDefault(), N.stopPropagation(), V(!1), N.dataTransfer.files && N.dataTransfer.files[0]) {
1278
+ const S = {
1279
+ target: {
1280
+ files: N.dataTransfer.files
1281
+ }
1282
+ };
1283
+ r(S);
1284
+ }
1285
+ };
1286
+ return /* @__PURE__ */ e.jsxs("div", { className: "mt-6 pt-6 border-t border-border", children: [
1287
+ /* @__PURE__ */ e.jsx("h3", { className: "text-sm font-medium text-text-primary mb-3", children: x }),
1288
+ /* @__PURE__ */ e.jsxs("label", { className: "block", children: [
1289
+ /* @__PURE__ */ e.jsx(
1290
+ "input",
1291
+ {
1292
+ ref: g,
1293
+ type: "file",
1294
+ accept: u,
1295
+ onChange: r,
1296
+ className: "hidden",
1297
+ id: "file-upload",
1298
+ disabled: f
1299
+ }
1300
+ ),
1301
+ /* @__PURE__ */ e.jsx(
1302
+ "div",
1303
+ {
1304
+ onDragEnter: T,
1305
+ onDragLeave: T,
1306
+ onDragOver: T,
1307
+ onDrop: R,
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" : ""}`,
1309
+ children: t && !a ? /* @__PURE__ */ e.jsxs("div", { children: [
1310
+ /* @__PURE__ */ e.jsx(
1311
+ "svg",
1312
+ {
1313
+ className: "mx-auto h-12 w-12 text-success-500",
1314
+ fill: "currentColor",
1315
+ viewBox: "0 0 20 20",
1316
+ children: /* @__PURE__ */ e.jsx(
1317
+ "path",
1318
+ {
1319
+ fillRule: "evenodd",
1320
+ 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",
1321
+ clipRule: "evenodd"
1322
+ }
1323
+ )
1324
+ }
1325
+ ),
1326
+ /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: "File uploaded successfully" }) }),
1327
+ /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-2 break-words", children: t.name }),
1328
+ /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted mt-1", children: [
1329
+ (t.size / (1024 * 1024)).toFixed(2),
1330
+ "MB"
1331
+ ] }),
1332
+ /* @__PURE__ */ e.jsx(
1333
+ O,
1334
+ {
1335
+ variant: "link",
1336
+ type: "button",
1337
+ onClick: (N) => {
1338
+ N.preventDefault(), l?.();
1339
+ },
1340
+ className: "mt-3 text-error-600 hover:text-error-700 h-auto p-0",
1341
+ children: "✕ Cancel"
1342
+ }
1343
+ )
1344
+ ] }) : /* @__PURE__ */ e.jsxs("div", { children: [
1345
+ /* @__PURE__ */ e.jsx(
1346
+ "svg",
1347
+ {
1348
+ className: "mx-auto h-12 w-12 text-text-muted",
1349
+ stroke: "currentColor",
1350
+ fill: "none",
1351
+ viewBox: "0 0 48 48",
1352
+ children: /* @__PURE__ */ e.jsx(
1353
+ "path",
1354
+ {
1355
+ 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",
1356
+ strokeWidth: "2",
1357
+ strokeLinecap: "round",
1358
+ strokeLinejoin: "round"
1359
+ }
1360
+ )
1361
+ }
1362
+ ),
1363
+ /* @__PURE__ */ e.jsxs("p", { className: "mt-2 text-sm text-text-secondary", children: [
1364
+ /* @__PURE__ */ e.jsx("span", { className: "font-medium text-reseda-green-700", children: "Upload a file" }),
1365
+ " ",
1366
+ "or drag and drop"
1367
+ ] }),
1368
+ /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted mt-1", children: d })
1369
+ ] })
1370
+ }
1371
+ )
1372
+ ] }),
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,
1378
+ {
1379
+ variant: "default",
1380
+ onClick: s,
1381
+ disabled: !t || n || f,
1382
+ loading: n,
1383
+ fullWidth: !0,
1384
+ className: "mt-3",
1385
+ children: m
1386
+ }
1387
+ )
1388
+ ] });
1389
+ }
1390
+ const ar = z.forwardRef(
1015
1391
  ({
1016
1392
  className: r = "",
1017
1393
  error: s = !1,
@@ -1022,34 +1398,34 @@ const We = B.forwardRef(
1022
1398
  disabled: i,
1023
1399
  value: c,
1024
1400
  onChange: u,
1025
- ...f
1401
+ ...x
1026
1402
  }, d) => {
1027
- const C = `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}`, _ = (T) => {
1028
- a && (T.target.style.height = "auto", T.target.style.height = `${T.target.scrollHeight}px`), u?.(T);
1029
- }, A = typeof c == "string" ? c.length : 0;
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) => {
1404
+ a && (R.target.style.height = "auto", R.target.style.height = `${R.target.scrollHeight}px`), u?.(R);
1405
+ }, T = typeof c == "string" ? c.length : 0;
1030
1406
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
1031
1407
  /* @__PURE__ */ e.jsx(
1032
1408
  "textarea",
1033
1409
  {
1034
1410
  ref: d,
1035
- className: C,
1411
+ className: y,
1036
1412
  disabled: i,
1037
1413
  value: c,
1038
- onChange: _,
1414
+ onChange: V,
1039
1415
  maxLength: l,
1040
- ...f
1416
+ ...x
1041
1417
  }
1042
1418
  ),
1043
1419
  n && l && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
1044
- A,
1420
+ T,
1045
1421
  " / ",
1046
1422
  l
1047
1423
  ] })
1048
1424
  ] });
1049
1425
  }
1050
1426
  );
1051
- We.displayName = "Textarea";
1052
- function dr({
1427
+ ar.displayName = "Textarea";
1428
+ function Nr({
1053
1429
  options: r,
1054
1430
  selectedValues: s,
1055
1431
  onSelectionChange: t,
@@ -1059,25 +1435,25 @@ function dr({
1059
1435
  error: i = !1
1060
1436
  }) {
1061
1437
  const c = (m) => {
1062
- const h = s.includes(m) ? s.filter((g) => g !== m) : [...s, m];
1063
- t(h);
1438
+ const f = s.includes(m) ? s.filter((v) => v !== m) : [...s, m];
1439
+ t(f);
1064
1440
  }, u = {
1065
1441
  vertical: "space-y-3",
1066
1442
  horizontal: "flex flex-wrap gap-3",
1067
1443
  grid: `grid grid-cols-${l} gap-3`
1068
- }, f = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${l}` : "";
1069
- return /* @__PURE__ */ e.jsx("div", { className: `${f} ${d}`, children: r.map((m) => {
1070
- const h = s.includes(m.value), b = h ? "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`;
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`;
1071
1447
  return /* @__PURE__ */ e.jsxs(
1072
1448
  "label",
1073
1449
  {
1074
- className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${b} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
1450
+ className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
1075
1451
  children: [
1076
1452
  /* @__PURE__ */ e.jsx(
1077
1453
  "input",
1078
1454
  {
1079
1455
  type: "checkbox",
1080
- checked: h,
1456
+ checked: f,
1081
1457
  onChange: () => c(m.value),
1082
1458
  disabled: n,
1083
1459
  className: "sr-only"
@@ -1088,14 +1464,14 @@ function dr({
1088
1464
  /* @__PURE__ */ e.jsx("div", { className: "font-medium text-text-primary", children: m.label }),
1089
1465
  m.description && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-text-secondary", children: m.description })
1090
1466
  ] }),
1091
- h && /* @__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" }) }) })
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" }) }) })
1092
1468
  ]
1093
1469
  },
1094
1470
  m.value
1095
1471
  );
1096
1472
  }) });
1097
1473
  }
1098
- function ur({
1474
+ function yr({
1099
1475
  options: r,
1100
1476
  selectedValue: s,
1101
1477
  onSelectionChange: t,
@@ -1105,17 +1481,17 @@ function ur({
1105
1481
  error: i = !1,
1106
1482
  name: c = "radio-group"
1107
1483
  }) {
1108
- const f = a === "grid" ? `grid gap-3 md:grid-cols-${l}` : {
1484
+ const x = a === "grid" ? `grid gap-3 md:grid-cols-${l}` : {
1109
1485
  vertical: "space-y-3",
1110
1486
  horizontal: "flex flex-wrap gap-3",
1111
1487
  grid: "grid gap-3"
1112
1488
  }[a];
1113
- return /* @__PURE__ */ e.jsx("div", { className: f, children: r.map((d) => {
1114
- const m = s === d.value, g = 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`;
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`;
1115
1491
  return /* @__PURE__ */ e.jsxs(
1116
1492
  "label",
1117
1493
  {
1118
- className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
1494
+ className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${v} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
1119
1495
  children: [
1120
1496
  /* @__PURE__ */ e.jsx(
1121
1497
  "input",
@@ -1141,7 +1517,7 @@ function ur({
1141
1517
  );
1142
1518
  }) });
1143
1519
  }
1144
- function mr({ stats: r, columns: s = 4, className: t = "" }) {
1520
+ function Cr({ stats: r, columns: s = 4, className: t = "" }) {
1145
1521
  const a = {
1146
1522
  2: "grid-cols-2",
1147
1523
  3: "grid-cols-3",
@@ -1161,7 +1537,7 @@ function mr({ stats: r, columns: s = 4, className: t = "" }) {
1161
1537
  ] }, i);
1162
1538
  }) });
1163
1539
  }
1164
- function xr({
1540
+ function kr({
1165
1541
  items: r,
1166
1542
  allowMultiple: s = !1,
1167
1543
  defaultOpenId: t,
@@ -1169,11 +1545,11 @@ function xr({
1169
1545
  className: l = ""
1170
1546
  }) {
1171
1547
  const [n, i] = $(() => t ? Array.isArray(t) ? t : [t] : []), c = (u) => {
1172
- let f;
1173
- s ? f = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : f = n.includes(u) ? [] : [u], i(f), a?.(f);
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);
1174
1550
  };
1175
1551
  return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((u) => {
1176
- const f = n.includes(u.id);
1552
+ const x = n.includes(u.id);
1177
1553
  return /* @__PURE__ */ e.jsxs(
1178
1554
  "div",
1179
1555
  {
@@ -1190,158 +1566,22 @@ function xr({
1190
1566
  /* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: u.title })
1191
1567
  ] }),
1192
1568
  /* @__PURE__ */ e.jsx(
1193
- Q,
1569
+ re,
1194
1570
  {
1195
- className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${f ? "rotate-180" : ""}`
1571
+ className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${x ? "rotate-180" : ""}`
1196
1572
  }
1197
1573
  )
1198
1574
  ]
1199
1575
  }
1200
1576
  ),
1201
- f && /* @__PURE__ */ e.jsx("div", { className: "border-t border-border px-4 py-3 bg-surface-variant text-text-primary", children: u.content })
1577
+ x && /* @__PURE__ */ e.jsx("div", { className: "border-t border-border px-4 py-3 bg-surface-variant text-text-primary", children: u.content })
1202
1578
  ]
1203
1579
  },
1204
1580
  u.id
1205
1581
  );
1206
1582
  }) });
1207
1583
  }
1208
- const ie = {
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({
1584
+ function Vr({
1345
1585
  icon: r,
1346
1586
  title: s,
1347
1587
  subtitle: t,
@@ -1351,12 +1591,12 @@ function fr({
1351
1591
  variant: i = "default",
1352
1592
  actions: c,
1353
1593
  onClick: u,
1354
- className: f = ""
1594
+ className: x = ""
1355
1595
  }) {
1356
- const d = (b) => {
1357
- const C = b.target;
1358
- C.tagName === "BUTTON" || C.closest("button") || u?.(b);
1359
- }, h = (() => {
1596
+ const d = (g) => {
1597
+ const y = g.target;
1598
+ y.tagName === "BUTTON" || y.closest("button") || u?.(g);
1599
+ }, f = (() => {
1360
1600
  if (n)
1361
1601
  switch (i) {
1362
1602
  case "success":
@@ -1369,12 +1609,12 @@ function fr({
1369
1609
  return "border-2 border-reseda-green-700 bg-success-50";
1370
1610
  }
1371
1611
  return "border border-border hover:border-border-subtle hover:bg-surface-variant";
1372
- })(), g = l ? "ring-2 ring-reseda-green-700" : "";
1612
+ })(), v = l ? "ring-2 ring-reseda-green-700" : "";
1373
1613
  return /* @__PURE__ */ e.jsx(
1374
1614
  "div",
1375
1615
  {
1376
1616
  onClick: d,
1377
- className: `rounded-lg p-4 cursor-pointer transition ${h} ${g} ${f}`,
1617
+ className: `rounded-lg p-4 cursor-pointer transition ${f} ${v} ${x}`,
1378
1618
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between", children: [
1379
1619
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex items-start gap-3", children: [
1380
1620
  r && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: r }),
@@ -1384,26 +1624,26 @@ function fr({
1384
1624
  a && /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: a })
1385
1625
  ] })
1386
1626
  ] }),
1387
- /* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: c.map((b, C) => /* @__PURE__ */ e.jsx(
1388
- H,
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,
1389
1629
  {
1390
- variant: b.variant || "ghost",
1391
- size: b.size || "sm",
1392
- onClick: b.onClick,
1393
- disabled: b.disabled,
1394
- loading: b.loading,
1395
- title: b.label,
1396
- className: b.className,
1397
- leftIcon: b.icon && b.size !== "icon" ? b.icon : void 0,
1398
- children: b.size === "icon" ? b.icon : b.label
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
1399
1639
  },
1400
- C
1640
+ y
1401
1641
  )) })
1402
1642
  ] })
1403
1643
  }
1404
1644
  );
1405
1645
  }
1406
- function hr({
1646
+ function $r({
1407
1647
  children: r,
1408
1648
  variant: s = "default",
1409
1649
  isActive: t = !1,
@@ -1430,7 +1670,7 @@ function hr({
1430
1670
  }
1431
1671
  );
1432
1672
  }
1433
- function vr({
1673
+ function Tr({
1434
1674
  title: r,
1435
1675
  children: s,
1436
1676
  subtitle: t,
@@ -1450,7 +1690,7 @@ function vr({
1450
1690
  s
1451
1691
  ] });
1452
1692
  }
1453
- function gr({
1693
+ function Er({
1454
1694
  title: r,
1455
1695
  subtitle: s,
1456
1696
  metadata: t,
@@ -1471,7 +1711,7 @@ function gr({
1471
1711
  ] }, i))
1472
1712
  ] });
1473
1713
  }
1474
- function br({
1714
+ function Rr({
1475
1715
  title: r,
1476
1716
  description: s,
1477
1717
  centered: t = !1,
@@ -1487,7 +1727,7 @@ function br({
1487
1727
  /* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${i}`, children: s })
1488
1728
  ] });
1489
1729
  }
1490
- function pr({
1730
+ function Ar({
1491
1731
  icon: r,
1492
1732
  title: s,
1493
1733
  description: t,
@@ -1496,11 +1736,11 @@ function pr({
1496
1736
  disabled: n = !1,
1497
1737
  className: i = ""
1498
1738
  }) {
1499
- 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", f = n ? "opacity-50 cursor-not-allowed" : "";
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" : "";
1500
1740
  return /* @__PURE__ */ e.jsxs(
1501
1741
  "div",
1502
1742
  {
1503
- className: `${c} ${u} ${f} ${i}`,
1743
+ className: `${c} ${u} ${x} ${i}`,
1504
1744
  onClick: () => !n && l?.(),
1505
1745
  role: "button",
1506
1746
  tabIndex: n ? -1 : 0,
@@ -1516,7 +1756,7 @@ function pr({
1516
1756
  }
1517
1757
  );
1518
1758
  }
1519
- const Xe = B.forwardRef(
1759
+ const tr = z.forwardRef(
1520
1760
  ({
1521
1761
  value: r,
1522
1762
  onChange: s,
@@ -1527,13 +1767,13 @@ const Xe = B.forwardRef(
1527
1767
  showLabels: i = !1,
1528
1768
  minLabel: c,
1529
1769
  maxLabel: u,
1530
- error: f = !1,
1770
+ error: x = !1,
1531
1771
  fullWidth: d = !0,
1532
1772
  disabled: m,
1533
- className: h = "",
1534
- ...g
1535
- }, b) => {
1536
- const P = `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" : ""} ${h}`, z = (r - t) / (a - t) * 100;
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;
1537
1777
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
1538
1778
  i && (c || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
1539
1779
  c && /* @__PURE__ */ e.jsx("span", { children: c }),
@@ -1543,16 +1783,16 @@ const Xe = B.forwardRef(
1543
1783
  /* @__PURE__ */ e.jsx(
1544
1784
  "input",
1545
1785
  {
1546
- ref: b,
1786
+ ref: g,
1547
1787
  type: "range",
1548
1788
  min: t,
1549
1789
  max: a,
1550
1790
  step: l,
1551
1791
  value: r,
1552
- onChange: (D) => s(Number(D.target.value)),
1792
+ onChange: (I) => s(Number(I.target.value)),
1553
1793
  disabled: m,
1554
- className: P,
1555
- ...g
1794
+ className: N,
1795
+ ...v
1556
1796
  }
1557
1797
  ),
1558
1798
  n && /* @__PURE__ */ e.jsx("span", { className: "text-sm font-medium text-text-primary min-w-[3rem] text-right", children: r })
@@ -1561,72 +1801,143 @@ const Xe = B.forwardRef(
1561
1801
  "div",
1562
1802
  {
1563
1803
  className: "h-full bg-reseda-green-500 transition-all",
1564
- style: { width: `${z}%` }
1804
+ style: { width: `${S}%` }
1565
1805
  }
1566
1806
  ) })
1567
1807
  ] });
1568
1808
  }
1569
1809
  );
1570
- Xe.displayName = "Slider";
1571
- function jr({
1572
- variant: r,
1573
- title: s,
1574
- message: t,
1575
- icon: a,
1576
- onClose: l,
1577
- className: n = ""
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 = ""
1578
1820
  }) {
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];
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
+ };
1605
1826
  return /* @__PURE__ */ e.jsx(
1606
1827
  "div",
1607
1828
  {
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
- ] })
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
+ )
1626
1936
  }
1627
1937
  );
1628
1938
  }
1629
- const Ze = {
1939
+ nr.displayName = "SortableItem";
1940
+ const lr = {
1630
1941
  bg: "bg-indigo-600",
1631
1942
  activeBg: "bg-indigo-700",
1632
1943
  text: "text-indigo-200",
@@ -1634,10 +1945,10 @@ const Ze = {
1634
1945
  hoverBg: "hover:bg-indigo-700",
1635
1946
  hoverText: "hover:text-white"
1636
1947
  };
1637
- function k(...r) {
1948
+ function E(...r) {
1638
1949
  return r.filter(Boolean).join(" ");
1639
1950
  }
1640
- function ue({ item: r, colorScheme: s }) {
1951
+ function he({ item: r, colorScheme: s }) {
1641
1952
  const [t, a] = $(r.current || r.children?.some((n) => n.current)), l = r.children && r.children.length > 0;
1642
1953
  return /* @__PURE__ */ e.jsxs("li", { children: [
1643
1954
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
@@ -1647,7 +1958,7 @@ function ue({ item: r, colorScheme: s }) {
1647
1958
  onClick: (n) => {
1648
1959
  l && (n.preventDefault(), a(!t));
1649
1960
  },
1650
- className: k(
1961
+ className: E(
1651
1962
  r.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
1652
1963
  "group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
1653
1964
  l ? "cursor-pointer" : ""
@@ -1658,7 +1969,7 @@ function ue({ item: r, colorScheme: s }) {
1658
1969
  r.icon,
1659
1970
  {
1660
1971
  "aria-hidden": "true",
1661
- className: k(
1972
+ className: E(
1662
1973
  r.current ? s.activeText : `${s.text} group-${s.hoverText}`,
1663
1974
  "size-6 shrink-0"
1664
1975
  )
@@ -1667,9 +1978,9 @@ function ue({ item: r, colorScheme: s }) {
1667
1978
  r.name
1668
1979
  ] }),
1669
1980
  l && /* @__PURE__ */ e.jsx(
1670
- Q,
1981
+ re,
1671
1982
  {
1672
- className: k(
1983
+ className: E(
1673
1984
  "size-5 shrink-0 transition-transform",
1674
1985
  t ? "rotate-180" : "",
1675
1986
  r.current ? s.activeText : s.text
@@ -1683,7 +1994,7 @@ function ue({ item: r, colorScheme: s }) {
1683
1994
  "a",
1684
1995
  {
1685
1996
  href: n.href,
1686
- className: k(
1997
+ className: E(
1687
1998
  n.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
1688
1999
  "group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
1689
2000
  ),
@@ -1692,7 +2003,7 @@ function ue({ item: r, colorScheme: s }) {
1692
2003
  n.icon,
1693
2004
  {
1694
2005
  "aria-hidden": "true",
1695
- className: k(
2006
+ className: E(
1696
2007
  n.current ? s.activeText : `${s.text} group-${s.hoverText}`,
1697
2008
  "size-5 shrink-0"
1698
2009
  )
@@ -1704,28 +2015,28 @@ function ue({ item: r, colorScheme: s }) {
1704
2015
  ) }, n.name)) })
1705
2016
  ] });
1706
2017
  }
1707
- function wr({ company: r, profile: s, navigation: t, colorScheme: a = Ze }) {
2018
+ function _r({ company: r, profile: s, navigation: t, colorScheme: a = lr }) {
1708
2019
  const [l, n] = $(!1);
1709
2020
  return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
1710
- /* @__PURE__ */ e.jsxs(Ce, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
2021
+ /* @__PURE__ */ e.jsxs(Ae, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
1711
2022
  /* @__PURE__ */ e.jsx(
1712
- ke,
2023
+ _e,
1713
2024
  {
1714
2025
  transition: !0,
1715
2026
  className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
1716
2027
  }
1717
2028
  ),
1718
2029
  /* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
1719
- Ve,
2030
+ Be,
1720
2031
  {
1721
2032
  transition: !0,
1722
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",
1723
2034
  children: [
1724
- /* @__PURE__ */ e.jsx($e, { 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: [
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: [
1725
2036
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
1726
- /* @__PURE__ */ e.jsx(ye, { "aria-hidden": "true", className: "size-6 text-white" })
2037
+ /* @__PURE__ */ e.jsx($e, { "aria-hidden": "true", className: "size-6 text-white" })
1727
2038
  ] }) }) }),
1728
- /* @__PURE__ */ e.jsxs("div", { className: k("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
2039
+ /* @__PURE__ */ e.jsxs("div", { className: E("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
1729
2040
  /* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
1730
2041
  "img",
1731
2042
  {
@@ -1734,13 +2045,13 @@ function wr({ company: r, profile: s, navigation: t, colorScheme: a = Ze }) {
1734
2045
  className: "h-8 w-auto"
1735
2046
  }
1736
2047
  ) }),
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(ue, { item: i, colorScheme: a }, i.name)) }) }) }) })
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)) }) }) }) })
1738
2049
  ] })
1739
2050
  ]
1740
2051
  }
1741
2052
  ) })
1742
2053
  ] }),
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: k("flex grow flex-col gap-y-5 overflow-y-auto px-6", a.bg), children: [
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: [
1744
2055
  /* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
1745
2056
  "img",
1746
2057
  {
@@ -1750,12 +2061,12 @@ function wr({ company: r, profile: s, navigation: t, colorScheme: a = Ze }) {
1750
2061
  }
1751
2062
  ) }),
1752
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: [
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(ue, { item: i, colorScheme: a }, i.name)) }) }),
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)) }) }),
1754
2065
  /* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
1755
2066
  "a",
1756
2067
  {
1757
2068
  href: "#",
1758
- className: k(
2069
+ className: E(
1759
2070
  "flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
1760
2071
  a.activeText,
1761
2072
  a.hoverBg
@@ -1766,7 +2077,7 @@ function wr({ company: r, profile: s, navigation: t, colorScheme: a = Ze }) {
1766
2077
  {
1767
2078
  alt: s.name,
1768
2079
  src: s.image,
1769
- className: k("size-8 rounded-full", a.activeBg)
2080
+ className: E("size-8 rounded-full", a.activeBg)
1770
2081
  }
1771
2082
  ),
1772
2083
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
@@ -1776,12 +2087,12 @@ function wr({ company: r, profile: s, navigation: t, colorScheme: a = Ze }) {
1776
2087
  ) })
1777
2088
  ] }) })
1778
2089
  ] }) }),
1779
- /* @__PURE__ */ e.jsxs("div", { className: k("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: [
1780
- /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className: k("-m-2.5 p-2.5 lg:hidden", a.text), children: [
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: [
1781
2092
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
1782
- /* @__PURE__ */ e.jsx(Ne, { "aria-hidden": "true", className: "size-6" })
2093
+ /* @__PURE__ */ e.jsx(Te, { "aria-hidden": "true", className: "size-6" })
1783
2094
  ] }),
1784
- /* @__PURE__ */ e.jsx("div", { className: k("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
2095
+ /* @__PURE__ */ e.jsx("div", { className: E("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
1785
2096
  /* @__PURE__ */ e.jsxs("a", { href: "#", children: [
1786
2097
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
1787
2098
  /* @__PURE__ */ e.jsx(
@@ -1789,14 +2100,14 @@ function wr({ company: r, profile: s, navigation: t, colorScheme: a = Ze }) {
1789
2100
  {
1790
2101
  alt: s.name,
1791
2102
  src: s.image,
1792
- className: k("size-8 rounded-full", a.activeBg)
2103
+ className: E("size-8 rounded-full", a.activeBg)
1793
2104
  }
1794
2105
  )
1795
2106
  ] })
1796
2107
  ] })
1797
2108
  ] }) });
1798
2109
  }
1799
- const Ke = {
2110
+ const or = {
1800
2111
  activeBg: "bg-reseda-green-700",
1801
2112
  activeText: "text-white",
1802
2113
  completedBg: "bg-success-500",
@@ -1807,8 +2118,8 @@ const Ke = {
1807
2118
  labelInactiveText: "text-text-muted",
1808
2119
  connectorBg: "bg-border"
1809
2120
  };
1810
- function yr({ currentStep: r, steps: s, colorConfig: t }) {
1811
- const a = t || Ke;
2121
+ function Br({ currentStep: r, steps: s, colorConfig: t }) {
2122
+ const a = t || or;
1812
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: [
1813
2124
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1814
2125
  /* @__PURE__ */ e.jsx(
@@ -1829,19 +2140,19 @@ function yr({ currentStep: r, steps: s, colorConfig: t }) {
1829
2140
  n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
1830
2141
  ] }, l.number)) }) });
1831
2142
  }
1832
- const Qe = {
2143
+ const cr = {
1833
2144
  activeText: "text-reseda-green-700",
1834
2145
  activeBorder: "border-reseda-green-700",
1835
2146
  inactiveText: "text-text-secondary",
1836
2147
  inactiveHoverText: "hover:text-text-primary",
1837
2148
  disabledText: "text-text-disabled"
1838
2149
  };
1839
- function Nr({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
1840
- const n = l || Qe;
2150
+ function Dr({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
2151
+ const n = l || cr;
1841
2152
  return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((i) => {
1842
2153
  const c = s === i.id;
1843
2154
  return /* @__PURE__ */ e.jsx(
1844
- H,
2155
+ O,
1845
2156
  {
1846
2157
  variant: "ghost",
1847
2158
  onClick: () => !t && a(i.id),
@@ -1853,7 +2164,7 @@ function Nr({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig:
1853
2164
  );
1854
2165
  }) });
1855
2166
  }
1856
- function Cr({
2167
+ function Or({
1857
2168
  status: r,
1858
2169
  title: s,
1859
2170
  message: t,
@@ -1866,25 +2177,25 @@ function Cr({
1866
2177
  bg: "bg-success-50",
1867
2178
  border: "border-success-200",
1868
2179
  text: "text-success-700",
1869
- icon: /* @__PURE__ */ e.jsx(he, { className: "h-5 w-5" })
2180
+ icon: /* @__PURE__ */ e.jsx(pe, { className: "h-5 w-5" })
1870
2181
  },
1871
2182
  error: {
1872
2183
  bg: "bg-error-50",
1873
2184
  border: "border-error-200",
1874
2185
  text: "text-error-700",
1875
- icon: /* @__PURE__ */ e.jsx(fe, { className: "h-5 w-5" })
2186
+ icon: /* @__PURE__ */ e.jsx(be, { className: "h-5 w-5" })
1876
2187
  },
1877
2188
  warning: {
1878
2189
  bg: "bg-warning-50",
1879
2190
  border: "border-warning-200",
1880
2191
  text: "text-warning-700",
1881
- icon: /* @__PURE__ */ e.jsx(xe, { className: "h-5 w-5" })
2192
+ icon: /* @__PURE__ */ e.jsx(ge, { className: "h-5 w-5" })
1882
2193
  },
1883
2194
  info: {
1884
2195
  bg: "bg-info-50",
1885
2196
  border: "border-info-200",
1886
2197
  text: "text-info-700",
1887
- icon: /* @__PURE__ */ e.jsx(me, { className: "h-5 w-5" })
2198
+ icon: /* @__PURE__ */ e.jsx(ve, { className: "h-5 w-5" })
1888
2199
  },
1889
2200
  loading: {
1890
2201
  bg: "bg-blue-50",
@@ -1920,41 +2231,43 @@ function Cr({
1920
2231
  ] }) });
1921
2232
  }
1922
2233
  export {
1923
- xr as Accordion,
1924
- fr as ActionCard,
1925
- jr as Alert,
1926
- Ye as Badge,
1927
- H as Button,
1928
- hr as Card,
1929
- dr as CheckboxGroup,
1930
- Be as ColorPalette,
1931
- cr as Demo,
1932
- gr as DetailPanel,
1933
- ir as FormField,
1934
- Me as Input,
1935
- pr as OptionCard,
1936
- br as PageHeader,
1937
- ur as RadioGroup,
1938
- vr as Section,
1939
- Fe as Select,
1940
- wr as Sidebar,
1941
- Xe as Slider,
1942
- qe as SocialButton,
1943
- mr as StatsGrid,
1944
- Cr as StatusBanner,
1945
- yr as Stepper,
1946
- Nr as TabBar,
1947
- Ue as TagInput,
1948
- We as Textarea,
1949
- Se as ThemeProvider,
1950
- ze as ThemeToggle,
1951
- lr as clearAllErrors,
1952
- nr as clearFieldError,
1953
- tr as getFirstError,
1954
- Ee as hasErrors,
1955
- or as useForm,
1956
- Pe as useTheme,
1957
- Te as validateField,
1958
- Z as validateForm,
1959
- ar as validators
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,
2271
+ Q as validateForm,
2272
+ fr as validators
1960
2273
  };