acemyjob-ui 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,8 +68,8 @@ function Oe(r, s) {
68
68
  function Q(r, s) {
69
69
  const t = {};
70
70
  for (const [a, l] of Object.entries(s)) {
71
- const n = r[a], c = Oe(n, l);
72
- t[a] = c;
71
+ const n = r[a], i = Oe(n, l);
72
+ t[a] = i;
73
73
  }
74
74
  return t;
75
75
  }
@@ -99,18 +99,18 @@ function br({
99
99
  validationRules: s = {},
100
100
  onSubmit: t
101
101
  }) {
102
- const [a, l] = T(r), [n, c] = T({}), [i, u] = T({}), [x, d] = T(!1), m = JSON.stringify(a) !== JSON.stringify(r), f = D(
102
+ const [a, l] = T(r), [n, i] = T({}), [c, u] = T({}), [x, d] = T(!1), m = JSON.stringify(a) !== JSON.stringify(r), f = D(
103
103
  (b) => {
104
104
  const { name: h, value: j, type: A } = b.target;
105
105
  let z = j;
106
- if (A === "checkbox" ? z = b.target.checked : A === "number" && (z = j ? Number(j) : ""), l((I) => ({
107
- ...I,
106
+ if (A === "checkbox" ? z = b.target.checked : A === "number" && (z = j ? Number(j) : ""), l((M) => ({
107
+ ...M,
108
108
  [h]: z
109
109
  })), s[h]) {
110
- const I = Q({ [h]: z }, { [h]: s[h] });
111
- c((W) => ({
110
+ const M = Q({ [h]: z }, { [h]: s[h] });
111
+ i((W) => ({
112
112
  ...W,
113
- [h]: I[h]
113
+ [h]: M[h]
114
114
  }));
115
115
  }
116
116
  },
@@ -130,13 +130,13 @@ function br({
130
130
  [b]: h
131
131
  })), s[b]) {
132
132
  const j = Q({ [b]: h }, { [b]: s[b] });
133
- c((A) => ({
133
+ i((A) => ({
134
134
  ...A,
135
135
  [b]: j[b]
136
136
  }));
137
137
  }
138
138
  }, [s]), C = D((b, h) => {
139
- c((j) => ({
139
+ i((j) => ({
140
140
  ...j,
141
141
  [b]: h
142
142
  }));
@@ -144,7 +144,7 @@ function br({
144
144
  async (b) => {
145
145
  b.preventDefault();
146
146
  const h = Q(a, s);
147
- c(h);
147
+ i(h);
148
148
  const j = {};
149
149
  for (const A of Object.keys(a))
150
150
  j[A] = !0;
@@ -161,7 +161,7 @@ function br({
161
161
  },
162
162
  [a, s, t]
163
163
  ), $ = D(() => {
164
- l(r), c({}), u({}), d(!1);
164
+ l(r), i({}), u({}), d(!1);
165
165
  }, [r]), R = D(
166
166
  (b) => ({
167
167
  name: b,
@@ -174,16 +174,16 @@ function br({
174
174
  (b) => n[b] || null,
175
175
  [n]
176
176
  ), S = D(
177
- (b) => i[b] || !1,
178
- [i]
179
- ), M = D(
177
+ (b) => c[b] || !1,
178
+ [c]
179
+ ), I = D(
180
180
  (b) => a[b] !== r[b],
181
181
  [a, r]
182
182
  );
183
183
  return {
184
184
  values: a,
185
185
  errors: n,
186
- touched: i,
186
+ touched: c,
187
187
  isSubmitting: x,
188
188
  isDirty: m,
189
189
  handleChange: f,
@@ -195,7 +195,7 @@ function br({
195
195
  getFieldProps: R,
196
196
  getFieldError: w,
197
197
  isFieldTouched: S,
198
- isFieldDirty: M
198
+ isFieldDirty: I
199
199
  };
200
200
  }
201
201
  var H = { exports: {} }, Y = {};
@@ -214,16 +214,16 @@ function Pe() {
214
214
  le = 1;
215
215
  var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
216
216
  function t(a, l, n) {
217
- var c = null;
218
- if (n !== void 0 && (c = "" + n), l.key !== void 0 && (c = "" + l.key), "key" in l) {
217
+ var i = null;
218
+ if (n !== void 0 && (i = "" + n), l.key !== void 0 && (i = "" + l.key), "key" in l) {
219
219
  n = {};
220
- for (var i in l)
221
- i !== "key" && (n[i] = l[i]);
220
+ for (var c in l)
221
+ c !== "key" && (n[c] = l[c]);
222
222
  } else n = l;
223
223
  return l = n.ref, {
224
224
  $$typeof: r,
225
225
  type: a,
226
- key: c,
226
+ key: i,
227
227
  ref: l !== void 0 ? l : null,
228
228
  props: n
229
229
  };
@@ -255,7 +255,7 @@ function Le() {
255
255
  return "Profiler";
256
256
  case V:
257
257
  return "StrictMode";
258
- case M:
258
+ case I:
259
259
  return "Suspense";
260
260
  case b:
261
261
  return "SuspenseList";
@@ -318,20 +318,20 @@ function Le() {
318
318
  }
319
319
  }
320
320
  function l() {
321
- var o = I.A;
321
+ var o = M.A;
322
322
  return o === null ? null : o.getOwner();
323
323
  }
324
324
  function n() {
325
325
  return Error("react-stack-top-frame");
326
326
  }
327
- function c(o) {
327
+ function i(o) {
328
328
  if (W.call(o, "key")) {
329
329
  var v = Object.getOwnPropertyDescriptor(o, "key").get;
330
330
  if (v && v.isReactWarning) return !1;
331
331
  }
332
332
  return o.key !== void 0;
333
333
  }
334
- function i(o, v) {
334
+ function c(o, v) {
335
335
  function p() {
336
336
  se || (se = !0, console.error(
337
337
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
@@ -412,12 +412,12 @@ React keys must be passed directly to JSX without using spread:
412
412
  k
413
413
  ), oe[k + N] = !0);
414
414
  }
415
- if (k = null, p !== void 0 && (t(p), k = "" + p), c(v) && (t(v.key), k = "" + v.key), "key" in v) {
415
+ if (k = null, p !== void 0 && (t(p), k = "" + p), i(v) && (t(v.key), k = "" + v.key), "key" in v) {
416
416
  p = {};
417
417
  for (var K in v)
418
418
  K !== "key" && (p[K] = v[K]);
419
419
  } else p = v;
420
- return k && i(
420
+ return k && c(
421
421
  p,
422
422
  typeof o == "function" ? o.displayName || o.name || "Unknown" : o
423
423
  ), x(
@@ -434,7 +434,7 @@ React keys must be passed directly to JSX without using spread:
434
434
  function m(o) {
435
435
  typeof o == "object" && o !== null && o.$$typeof === g && o._store && (o._store.validated = 1);
436
436
  }
437
- var f = L, g = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), w = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), I = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, be = Array.isArray, X = console.createTask ? console.createTask : function() {
437
+ var f = L, g = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), w = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), M = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, be = Array.isArray, X = console.createTask ? console.createTask : function() {
438
438
  return null;
439
439
  };
440
440
  f = {
@@ -447,7 +447,7 @@ React keys must be passed directly to JSX without using spread:
447
447
  n
448
448
  )(), ne = X(a(n)), oe = {};
449
449
  U.Fragment = C, U.jsx = function(o, v, p, N, P) {
450
- var B = 1e4 > I.recentlyCreatedOwnerStacks++;
450
+ var B = 1e4 > M.recentlyCreatedOwnerStacks++;
451
451
  return d(
452
452
  o,
453
453
  v,
@@ -459,7 +459,7 @@ React keys must be passed directly to JSX without using spread:
459
459
  B ? X(a(o)) : ne
460
460
  );
461
461
  }, U.jsxs = function(o, v, p, N, P) {
462
- var B = 1e4 > I.recentlyCreatedOwnerStacks++;
462
+ var B = 1e4 > M.recentlyCreatedOwnerStacks++;
463
463
  return d(
464
464
  o,
465
465
  v,
@@ -474,11 +474,11 @@ React keys must be passed directly to JSX without using spread:
474
474
  }()), U;
475
475
  }
476
476
  var ie;
477
- function Ie() {
477
+ function Me() {
478
478
  return ie || (ie = 1, process.env.NODE_ENV === "production" ? H.exports = Pe() : H.exports = Le()), H.exports;
479
479
  }
480
- var e = Ie();
481
- const Me = {
480
+ var e = Me();
481
+ const Ie = {
482
482
  bg: "bg-indigo-600",
483
483
  activeBg: "bg-indigo-700",
484
484
  text: "text-indigo-200",
@@ -556,7 +556,7 @@ function de({ item: r, colorScheme: s }) {
556
556
  ) }, n.name)) })
557
557
  ] });
558
558
  }
559
- function pr({ company: r, profile: s, navigation: t, colorScheme: a = Me }) {
559
+ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
560
560
  const [l, n] = T(!1);
561
561
  return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
562
562
  /* @__PURE__ */ e.jsxs(Ne, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
@@ -586,7 +586,7 @@ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Me }) {
586
586
  className: "h-8 w-auto"
587
587
  }
588
588
  ) }),
589
- /* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((c) => /* @__PURE__ */ e.jsx(de, { item: c, colorScheme: a }, c.name)) }) }) }) })
589
+ /* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((i) => /* @__PURE__ */ e.jsx(de, { item: i, colorScheme: a }, i.name)) }) }) }) })
590
590
  ] })
591
591
  ]
592
592
  }
@@ -602,7 +602,7 @@ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Me }) {
602
602
  }
603
603
  ) }),
604
604
  /* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsxs("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: [
605
- /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((c) => /* @__PURE__ */ e.jsx(de, { item: c, colorScheme: a }, c.name)) }) }),
605
+ /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((i) => /* @__PURE__ */ e.jsx(de, { item: i, colorScheme: a }, i.name)) }) }),
606
606
  /* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
607
607
  "a",
608
608
  {
@@ -906,21 +906,21 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
906
906
  defaultTheme: s = "system",
907
907
  storageKey: t = "acemyjob-ui-theme"
908
908
  }) => {
909
- const [a, l] = T(s), [n, c] = T("light"), [i, u] = T(!1);
909
+ const [a, l] = T(s), [n, i] = T("light"), [c, u] = T(!1);
910
910
  J(() => {
911
911
  const d = localStorage.getItem(t);
912
912
  d && l(d), u(!0);
913
913
  }, [t]), J(() => {
914
- if (!i) return;
914
+ if (!c) return;
915
915
  const d = window.document.documentElement, m = () => {
916
916
  let f;
917
- a === "system" ? f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f = a, c(f), d.classList.remove("light", "dark"), d.classList.add(f);
917
+ 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);
918
918
  };
919
919
  if (m(), a === "system") {
920
920
  const f = window.matchMedia("(prefers-color-scheme: dark)"), g = () => m();
921
921
  return f.addEventListener("change", g), () => f.removeEventListener("change", g);
922
922
  }
923
- }, [a, i]);
923
+ }, [a, c]);
924
924
  const x = {
925
925
  theme: a,
926
926
  setTheme: (d) => {
@@ -961,7 +961,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
961
961
  case "system":
962
962
  return /* @__PURE__ */ e.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" }) });
963
963
  }
964
- }, c = () => {
964
+ }, i = () => {
965
965
  switch (r) {
966
966
  case "light":
967
967
  return "Light";
@@ -976,10 +976,10 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
976
976
  {
977
977
  onClick: l,
978
978
  className: "flex items-center gap-2 px-3 py-2 text-sm font-medium text-text-secondary hover:text-text-primary bg-surface hover:bg-surface-variant border border-border-subtle rounded-md transition-colors",
979
- "aria-label": `Current theme: ${c()}. Click to cycle themes.`,
979
+ "aria-label": `Current theme: ${i()}. Click to cycle themes.`,
980
980
  children: [
981
981
  n(),
982
- /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: c() })
982
+ /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: i() })
983
983
  ]
984
984
  }
985
985
  );
@@ -1012,8 +1012,8 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
1012
1012
  fullWidth: a = !1,
1013
1013
  loading: l = !1,
1014
1014
  leftIcon: n,
1015
- rightIcon: c,
1016
- children: i,
1015
+ rightIcon: i,
1016
+ children: c,
1017
1017
  disabled: u,
1018
1018
  ...x
1019
1019
  }, d) => {
@@ -1063,8 +1063,8 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
1063
1063
  }
1064
1064
  ),
1065
1065
  !l && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
1066
- i,
1067
- !l && c && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: c })
1066
+ c,
1067
+ !l && i && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: i })
1068
1068
  ]
1069
1069
  }
1070
1070
  );
@@ -1088,8 +1088,8 @@ const xe = {
1088
1088
  icon: a,
1089
1089
  showText: l = !0,
1090
1090
  children: n,
1091
- size: c = "default",
1092
- fullWidth: i = !0,
1091
+ size: i = "default",
1092
+ fullWidth: c = !0,
1093
1093
  ...u
1094
1094
  }, x) => {
1095
1095
  const m = a || {
@@ -1108,8 +1108,8 @@ const xe = {
1108
1108
  ref: x,
1109
1109
  variant: "none",
1110
1110
  className: y,
1111
- size: c,
1112
- fullWidth: i,
1111
+ size: i,
1112
+ fullWidth: c,
1113
1113
  leftIcon: t === "left" ? m : void 0,
1114
1114
  rightIcon: t === "right" ? m : void 0,
1115
1115
  ...u,
@@ -1129,7 +1129,7 @@ function wr({
1129
1129
  onClick: a,
1130
1130
  className: l = ""
1131
1131
  }) {
1132
- const n = "rounded-lg transition-all", c = {
1132
+ const n = "rounded-lg transition-all", i = {
1133
1133
  default: "border border-border p-4",
1134
1134
  surface: "bg-surface-variant p-4",
1135
1135
  elevated: "bg-surface shadow-md p-6",
@@ -1138,12 +1138,12 @@ function wr({
1138
1138
  return /* @__PURE__ */ e.jsx(
1139
1139
  "div",
1140
1140
  {
1141
- className: `${n} ${c[s]} ${l}`,
1141
+ className: `${n} ${i[s]} ${l}`,
1142
1142
  onClick: a,
1143
1143
  role: a ? "button" : void 0,
1144
1144
  tabIndex: a ? 0 : void 0,
1145
- onKeyDown: a ? (i) => {
1146
- (i.key === "Enter" || i.key === " ") && a();
1145
+ onKeyDown: a ? (c) => {
1146
+ (c.key === "Enter" || c.key === " ") && a();
1147
1147
  } : void 0,
1148
1148
  children: r
1149
1149
  }
@@ -1177,7 +1177,7 @@ function G({
1177
1177
  onClose: l,
1178
1178
  className: n = ""
1179
1179
  }) {
1180
- const i = {
1180
+ const c = {
1181
1181
  success: {
1182
1182
  bg: "bg-success-50",
1183
1183
  border: "border-success-200",
@@ -1206,19 +1206,19 @@ function G({
1206
1206
  return /* @__PURE__ */ e.jsx(
1207
1207
  "div",
1208
1208
  {
1209
- className: `${i.bg} border ${i.border} rounded-md p-3 ${n}`,
1209
+ className: `${c.bg} border ${c.border} rounded-md p-3 ${n}`,
1210
1210
  role: "alert",
1211
1211
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
1212
- /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${i.text}`, children: a || i.icon }),
1212
+ /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${c.text}`, children: a || c.icon }),
1213
1213
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
1214
- s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${i.text}`, children: s }),
1215
- /* @__PURE__ */ e.jsx("p", { className: `text-sm ${i.text}`, children: t })
1214
+ s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${c.text}`, children: s }),
1215
+ /* @__PURE__ */ e.jsx("p", { className: `text-sm ${c.text}`, children: t })
1216
1216
  ] }),
1217
1217
  l && /* @__PURE__ */ e.jsx(
1218
1218
  "button",
1219
1219
  {
1220
1220
  onClick: l,
1221
- className: `flex-shrink-0 ${i.text} hover:opacity-70`,
1221
+ className: `flex-shrink-0 ${c.text} hover:opacity-70`,
1222
1222
  "aria-label": "Close alert",
1223
1223
  children: "✕"
1224
1224
  }
@@ -1298,8 +1298,8 @@ function er({
1298
1298
  removable: a = !1,
1299
1299
  onRemove: l,
1300
1300
  className: n = "",
1301
- style: c,
1302
- colorClass: i
1301
+ style: i,
1302
+ colorClass: c
1303
1303
  }) {
1304
1304
  const u = {
1305
1305
  default: "bg-surface-variant text-text-secondary",
@@ -1311,12 +1311,12 @@ function er({
1311
1311
  sm: "px-2 py-0.5 text-xs",
1312
1312
  md: "px-3 py-1 text-sm",
1313
1313
  lg: "px-4 py-1.5 text-base"
1314
- }, d = i || u[s];
1314
+ }, d = c || u[s];
1315
1315
  return /* @__PURE__ */ e.jsxs(
1316
1316
  "span",
1317
1317
  {
1318
1318
  className: `inline-flex items-center gap-1 rounded-full ${d} ${x[t]} ${n}`,
1319
- style: c,
1319
+ style: i,
1320
1320
  children: [
1321
1321
  r,
1322
1322
  a && l && /* @__PURE__ */ e.jsx(
@@ -1358,18 +1358,18 @@ const rr = L.forwardRef(
1358
1358
  error: a = !1,
1359
1359
  fullWidth: l = !0,
1360
1360
  disabled: n,
1361
- ...c
1362
- }, i) => {
1361
+ ...i
1362
+ }, c) => {
1363
1363
  const u = "px-3 py-2 border rounded-lg transition-colors text-sm", x = a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent", d = n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", m = l ? "w-full" : "", f = s || t ? "relative flex items-center" : "", g = `${u} ${x} ${d} ${m} ${s ? "pl-10" : ""} ${t ? "pr-10" : ""} ${r}`;
1364
1364
  return /* @__PURE__ */ e.jsxs("div", { className: f, children: [
1365
1365
  s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
1366
1366
  /* @__PURE__ */ e.jsx(
1367
1367
  "input",
1368
1368
  {
1369
- ref: i,
1369
+ ref: c,
1370
1370
  className: g,
1371
1371
  disabled: n,
1372
- ...c
1372
+ ...i
1373
1373
  }
1374
1374
  ),
1375
1375
  t && /* @__PURE__ */ e.jsx("div", { className: "absolute right-3 flex items-center pointer-events-none text-text-muted", children: t })
@@ -1385,17 +1385,17 @@ const sr = L.forwardRef(
1385
1385
  error: a = !1,
1386
1386
  fullWidth: l = !0,
1387
1387
  disabled: n,
1388
- ...c
1389
- }, i) => {
1388
+ ...i
1389
+ }, c) => {
1390
1390
  const f = `px-3 py-2 border rounded-lg transition-colors text-sm appearance-none ${a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${l ? "w-full" : ""} pr-10 ${t}`;
1391
1391
  return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center", children: [
1392
1392
  /* @__PURE__ */ e.jsxs(
1393
1393
  "select",
1394
1394
  {
1395
- ref: i,
1395
+ ref: c,
1396
1396
  className: f,
1397
1397
  disabled: n,
1398
- ...c,
1398
+ ...i,
1399
1399
  children: [
1400
1400
  s && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, children: s }),
1401
1401
  r.map((g) => /* @__PURE__ */ e.jsx("option", { value: g.value, children: g.label }, g.value))
@@ -1415,8 +1415,8 @@ const ar = L.forwardRef(
1415
1415
  onRemoveTag: a,
1416
1416
  placeholder: l = "Add a tag and press Enter",
1417
1417
  error: n = !1,
1418
- fullWidth: c = !0,
1419
- maxTags: i,
1418
+ fullWidth: i = !0,
1419
+ maxTags: c,
1420
1420
  duplicateCheck: u = !0,
1421
1421
  disabled: x,
1422
1422
  className: d = "",
@@ -1425,14 +1425,14 @@ const ar = L.forwardRef(
1425
1425
  const [g, y] = T(""), C = (h) => {
1426
1426
  h.key === "Enter" && g.trim() ? (h.preventDefault(), V(g.trim())) : h.key === "Backspace" && !g && r.length > 0 && $(r[r.length - 1]);
1427
1427
  }, V = (h) => {
1428
- if (i && r.length >= i || u && r.includes(h))
1428
+ if (c && r.length >= c || u && r.includes(h))
1429
1429
  return;
1430
1430
  const j = [...r, h];
1431
1431
  s(j), t?.(h), y("");
1432
1432
  }, $ = (h) => {
1433
1433
  const j = r.filter((A) => A !== h);
1434
1434
  s(j), a?.(h);
1435
- }, b = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${n ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${x ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${c ? "w-full" : ""} ${d}`;
1435
+ }, b = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${n ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${x ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${i ? "w-full" : ""} ${d}`;
1436
1436
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
1437
1437
  /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((h) => /* @__PURE__ */ e.jsx(
1438
1438
  er,
@@ -1454,14 +1454,14 @@ const ar = L.forwardRef(
1454
1454
  value: g,
1455
1455
  onChange: (h) => y(h.target.value),
1456
1456
  onKeyDown: C,
1457
- disabled: x || (i ? r.length >= i : !1),
1457
+ disabled: x || (c ? r.length >= c : !1),
1458
1458
  ...m
1459
1459
  }
1460
1460
  ),
1461
- i && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted", children: [
1461
+ c && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted", children: [
1462
1462
  r.length,
1463
1463
  " / ",
1464
- i
1464
+ c
1465
1465
  ] })
1466
1466
  ] });
1467
1467
  }
@@ -1475,22 +1475,22 @@ const tr = L.forwardRef(
1475
1475
  autoResize: a = !1,
1476
1476
  maxLength: l,
1477
1477
  showCharCount: n = !1,
1478
- disabled: c,
1479
- value: i,
1478
+ disabled: i,
1479
+ value: c,
1480
1480
  onChange: u,
1481
1481
  ...x
1482
1482
  }, d) => {
1483
- 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"} ${c ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${t ? "w-full" : ""} ${r}`, V = (R) => {
1483
+ 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}`, V = (R) => {
1484
1484
  a && (R.target.style.height = "auto", R.target.style.height = `${R.target.scrollHeight}px`), u?.(R);
1485
- }, $ = typeof i == "string" ? i.length : 0;
1485
+ }, $ = typeof c == "string" ? c.length : 0;
1486
1486
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
1487
1487
  /* @__PURE__ */ e.jsx(
1488
1488
  "textarea",
1489
1489
  {
1490
1490
  ref: d,
1491
1491
  className: C,
1492
- disabled: c,
1493
- value: i,
1492
+ disabled: i,
1493
+ value: c,
1494
1494
  onChange: V,
1495
1495
  maxLength: l,
1496
1496
  ...x
@@ -1512,9 +1512,9 @@ function kr({
1512
1512
  layout: a = "vertical",
1513
1513
  columns: l = 2,
1514
1514
  disabled: n = !1,
1515
- error: c = !1
1515
+ error: i = !1
1516
1516
  }) {
1517
- const i = (m) => {
1517
+ const c = (m) => {
1518
1518
  const f = s.includes(m) ? s.filter((g) => g !== m) : [...s, m];
1519
1519
  t(f);
1520
1520
  }, u = {
@@ -1523,7 +1523,7 @@ function kr({
1523
1523
  grid: `grid grid-cols-${l} gap-3`
1524
1524
  }, x = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${l}` : "";
1525
1525
  return /* @__PURE__ */ e.jsx("div", { className: `${x} ${d}`, children: r.map((m) => {
1526
- const f = s.includes(m.value), y = f ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
1526
+ const f = s.includes(m.value), y = 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`;
1527
1527
  return /* @__PURE__ */ e.jsxs(
1528
1528
  "label",
1529
1529
  {
@@ -1534,7 +1534,7 @@ function kr({
1534
1534
  {
1535
1535
  type: "checkbox",
1536
1536
  checked: f,
1537
- onChange: () => i(m.value),
1537
+ onChange: () => c(m.value),
1538
1538
  disabled: n,
1539
1539
  className: "sr-only"
1540
1540
  }
@@ -1558,8 +1558,8 @@ function Cr({
1558
1558
  layout: a = "vertical",
1559
1559
  columns: l = 2,
1560
1560
  disabled: n = !1,
1561
- error: c = !1,
1562
- name: i = "radio-group"
1561
+ error: i = !1,
1562
+ name: c = "radio-group"
1563
1563
  }) {
1564
1564
  const x = a === "grid" ? `grid gap-3 md:grid-cols-${l}` : {
1565
1565
  vertical: "space-y-3",
@@ -1567,7 +1567,7 @@ function Cr({
1567
1567
  grid: "grid gap-3"
1568
1568
  }[a];
1569
1569
  return /* @__PURE__ */ e.jsx("div", { className: x, children: r.map((d) => {
1570
- const m = s === d.value, g = m ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
1570
+ 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`;
1571
1571
  return /* @__PURE__ */ e.jsxs(
1572
1572
  "label",
1573
1573
  {
@@ -1577,7 +1577,7 @@ function Cr({
1577
1577
  "input",
1578
1578
  {
1579
1579
  type: "radio",
1580
- name: i,
1580
+ name: c,
1581
1581
  value: d.value,
1582
1582
  checked: m,
1583
1583
  onChange: () => t(d.value),
@@ -1604,9 +1604,9 @@ function Vr({
1604
1604
  onOpenChange: a,
1605
1605
  className: l = ""
1606
1606
  }) {
1607
- const [n, c] = T(() => t ? Array.isArray(t) ? t : [t] : []), i = (u) => {
1607
+ const [n, i] = T(() => t ? Array.isArray(t) ? t : [t] : []), c = (u) => {
1608
1608
  let x;
1609
- s ? x = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : x = n.includes(u) ? [] : [u], c(x), a?.(x);
1609
+ s ? x = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : x = n.includes(u) ? [] : [u], i(x), a?.(x);
1610
1610
  };
1611
1611
  return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((u) => {
1612
1612
  const x = n.includes(u.id);
@@ -1618,7 +1618,7 @@ function Vr({
1618
1618
  /* @__PURE__ */ e.jsxs(
1619
1619
  "button",
1620
1620
  {
1621
- onClick: () => i(u.id),
1621
+ onClick: () => c(u.id),
1622
1622
  className: "w-full px-4 py-3 flex items-center justify-between hover:bg-surface-variant transition-colors text-left",
1623
1623
  children: [
1624
1624
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3 flex-1", children: [
@@ -1649,8 +1649,8 @@ const nr = L.forwardRef(
1649
1649
  max: a = 100,
1650
1650
  step: l = 1,
1651
1651
  showValue: n = !0,
1652
- showLabels: c = !1,
1653
- minLabel: i,
1652
+ showLabels: i = !1,
1653
+ minLabel: c,
1654
1654
  maxLabel: u,
1655
1655
  error: x = !1,
1656
1656
  fullWidth: d = !0,
@@ -1660,8 +1660,8 @@ const nr = L.forwardRef(
1660
1660
  }, y) => {
1661
1661
  const w = `w-full h-2 rounded-lg appearance-none cursor-pointer ${x ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${m ? "opacity-50 cursor-not-allowed" : ""} ${d ? "w-full" : ""} ${f}`, S = (r - t) / (a - t) * 100;
1662
1662
  return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
1663
- c && (i || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
1664
- i && /* @__PURE__ */ e.jsx("span", { children: i }),
1663
+ i && (c || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
1664
+ c && /* @__PURE__ */ e.jsx("span", { children: c }),
1665
1665
  u && /* @__PURE__ */ e.jsx("span", { children: u })
1666
1666
  ] }),
1667
1667
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
@@ -1674,7 +1674,7 @@ const nr = L.forwardRef(
1674
1674
  max: a,
1675
1675
  step: l,
1676
1676
  value: r,
1677
- onChange: (M) => s(Number(M.target.value)),
1677
+ onChange: (I) => s(Number(I.target.value)),
1678
1678
  disabled: m,
1679
1679
  className: w,
1680
1680
  ...g
@@ -1700,13 +1700,13 @@ function Tr({
1700
1700
  isSelected: a = !1,
1701
1701
  onClick: l,
1702
1702
  disabled: n = !1,
1703
- className: c = ""
1703
+ className: i = ""
1704
1704
  }) {
1705
- const i = "p-4 border rounded-lg transition-all text-center cursor-pointer", u = a ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : "border-border hover:border-border-subtle hover:bg-surface-variant", x = n ? "opacity-50 cursor-not-allowed" : "";
1705
+ 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" : "";
1706
1706
  return /* @__PURE__ */ e.jsxs(
1707
1707
  "div",
1708
1708
  {
1709
- className: `${i} ${u} ${x} ${c}`,
1709
+ className: `${c} ${u} ${x} ${i}`,
1710
1710
  onClick: () => !n && l?.(),
1711
1711
  role: "button",
1712
1712
  tabIndex: n ? -1 : 0,
@@ -1731,18 +1731,18 @@ const or = {
1731
1731
  };
1732
1732
  function $r({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
1733
1733
  const n = l || or;
1734
- return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((c) => {
1735
- const i = s === c.id;
1734
+ return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((i) => {
1735
+ const c = s === i.id;
1736
1736
  return /* @__PURE__ */ e.jsx(
1737
1737
  O,
1738
1738
  {
1739
1739
  variant: "ghost",
1740
- onClick: () => !t && a(c.id),
1741
- disabled: t && !i,
1742
- className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${i ? `${n.activeBorder} ${n.activeText}` : t ? `border-transparent ${n.disabledText} cursor-not-allowed` : `border-transparent ${n.inactiveText} ${n.inactiveHoverText}`}`,
1743
- children: c.label
1740
+ onClick: () => !t && a(i.id),
1741
+ disabled: t && !c,
1742
+ className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${c ? `${n.activeBorder} ${n.activeText}` : t ? `border-transparent ${n.disabledText} cursor-not-allowed` : `border-transparent ${n.inactiveText} ${n.inactiveHoverText}`}`,
1743
+ children: i.label
1744
1744
  },
1745
- c.id
1745
+ i.id
1746
1746
  );
1747
1747
  }) });
1748
1748
  }
@@ -1786,8 +1786,8 @@ function cr({
1786
1786
  defaultExpanded: a = !1,
1787
1787
  children: l,
1788
1788
  tooltipContent: n,
1789
- onRemove: c,
1790
- className: i = ""
1789
+ onRemove: i,
1790
+ className: c = ""
1791
1791
  }) {
1792
1792
  const [u, x] = T(a), { attributes: d, listeners: m, setNodeRef: f, transform: g, transition: y, isDragging: C } = Be({ id: r }), V = {
1793
1793
  transform: De.Transform.toString(g),
@@ -1799,7 +1799,7 @@ function cr({
1799
1799
  {
1800
1800
  ref: f,
1801
1801
  style: V,
1802
- className: `border border-border rounded-md bg-surface-variant ${i}`,
1802
+ className: `border border-border rounded-md bg-surface-variant ${c}`,
1803
1803
  children: u ? (
1804
1804
  // ── Expanded ──────────────────────────────────────────────────────────
1805
1805
  /* @__PURE__ */ e.jsxs("div", { className: "p-3", children: [
@@ -1844,7 +1844,7 @@ function cr({
1844
1844
  type: "button",
1845
1845
  variant: "ghost",
1846
1846
  size: "icon",
1847
- onClick: c,
1847
+ onClick: i,
1848
1848
  className: "h-auto w-auto p-1 text-error-600 hover:text-error-800",
1849
1849
  "aria-label": "Remove",
1850
1850
  leftIcon: /* @__PURE__ */ e.jsx(ee, { className: "w-4 h-4" })
@@ -1894,7 +1894,7 @@ function cr({
1894
1894
  type: "button",
1895
1895
  variant: "ghost",
1896
1896
  size: "icon",
1897
- onClick: c,
1897
+ onClick: i,
1898
1898
  className: "h-auto w-auto p-1 text-error-600 hover:text-error-800 flex-shrink-0",
1899
1899
  "aria-label": "Remove",
1900
1900
  leftIcon: /* @__PURE__ */ e.jsx(ee, { className: "w-4 h-4" })
@@ -1915,8 +1915,8 @@ function Rr({
1915
1915
  fileError: a,
1916
1916
  onCancelUpload: l,
1917
1917
  isAnalyzing: n = !1,
1918
- analyzeError: c,
1919
- analyzeSuccess: i,
1918
+ analyzeError: i,
1919
+ analyzeSuccess: c,
1920
1920
  accept: u = ".pdf,.docx",
1921
1921
  label: x = "Upload File",
1922
1922
  description: d = "PDF, DOCX up to 5MB",
@@ -2028,8 +2028,8 @@ function Rr({
2028
2028
  )
2029
2029
  ] }),
2030
2030
  a && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: a }) }),
2031
- c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: c }) }),
2032
- i && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: i }) }),
2031
+ i && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: i }) }),
2032
+ c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: c }) }),
2033
2033
  g && /* @__PURE__ */ e.jsx(
2034
2034
  O,
2035
2035
  {
@@ -2044,6 +2044,26 @@ function Rr({
2044
2044
  )
2045
2045
  ] });
2046
2046
  }
2047
+ function Ar({ stats: r, columns: s = 4, className: t = "" }) {
2048
+ const a = {
2049
+ 2: "grid-cols-2",
2050
+ 3: "grid-cols-3",
2051
+ 4: "grid-cols-4"
2052
+ }[s], l = {
2053
+ "moss-green": { bg: "bg-moss-green-50", text: "text-reseda-green-700", value: "text-reseda-green-100" },
2054
+ success: { bg: "bg-khaki-50", text: "text-success-600", value: "text-success-900" },
2055
+ warning: { bg: "bg-peach-yellow-50", text: "text-warning-600", value: "text-warning-900" },
2056
+ "earth-yellow": { bg: "bg-sunglow-50", text: "text-earth-yellow-700", value: "text-earth-yellow-100" }
2057
+ };
2058
+ return /* @__PURE__ */ e.jsx("div", { className: `grid ${a} gap-4 mb-6 bg-surface p-6 rounded-lg ${t}`, children: r.map((n, i) => {
2059
+ const c = l[n.color || "moss-green"];
2060
+ return /* @__PURE__ */ e.jsxs("div", { className: `${c.bg} rounded-lg p-4`, children: [
2061
+ n.icon && /* @__PURE__ */ e.jsx("div", { className: "mb-2", children: n.icon }),
2062
+ /* @__PURE__ */ e.jsx("p", { className: `text-sm ${c.text} font-medium`, children: n.label }),
2063
+ /* @__PURE__ */ e.jsx("p", { className: `text-2xl font-bold ${c.value} mt-1`, children: n.value })
2064
+ ] }, i);
2065
+ }) });
2066
+ }
2047
2067
  export {
2048
2068
  Vr as Accordion,
2049
2069
  G as Alert,
@@ -2064,6 +2084,7 @@ export {
2064
2084
  nr as Slider,
2065
2085
  qe as SocialButton,
2066
2086
  cr as SortableItem,
2087
+ Ar as StatsGrid,
2067
2088
  Er as Stepper,
2068
2089
  $r as TabBar,
2069
2090
  ar as TagInput,