acemyjob-ui 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import * as R from "react";
2
- import D, { useState as N, createContext as xe, useEffect as B, useContext as ve } from "react";
3
- import { Dialog as he, DialogBackdrop as fe, DialogPanel as ge, TransitionChild as be } from "@headlessui/react";
4
- import { XMarkIcon as pe, Bars3Icon as je, ChevronDownIcon as we, InformationCircleIcon as Ve, ExclamationCircleIcon as ye, XCircleIcon as Ne, CheckCircleIcon as ke } from "@heroicons/react/24/outline";
5
- var E = { exports: {} }, k = {};
1
+ import * as C from "react";
2
+ import I, { useState as N, createContext as xe, useEffect as L, useContext as ve } from "react";
3
+ import { Dialog as fe, DialogBackdrop as he, DialogPanel as ge, TransitionChild as be } from "@headlessui/react";
4
+ import { XMarkIcon as pe, Bars3Icon as je, ChevronDownIcon as we, InformationCircleIcon as Ve, ExclamationCircleIcon as ye, XCircleIcon as Ne, CheckCircleIcon as Te } from "@heroicons/react/24/outline";
5
+ var E = { exports: {} }, T = {};
6
6
  /**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.js
@@ -12,29 +12,29 @@ var E = { exports: {} }, k = {};
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
14
  */
15
- var G;
16
- function Te() {
17
- if (G) return k;
18
- G = 1;
19
- var s = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment");
20
- function t(o, n, l) {
15
+ var H;
16
+ function ke() {
17
+ if (H) return T;
18
+ H = 1;
19
+ var a = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
20
+ function n(s, l, o) {
21
21
  var i = null;
22
- if (l !== void 0 && (i = "" + l), n.key !== void 0 && (i = "" + n.key), "key" in n) {
23
- l = {};
24
- for (var u in n)
25
- u !== "key" && (l[u] = n[u]);
26
- } else l = n;
27
- return n = l.ref, {
28
- $$typeof: s,
29
- type: o,
22
+ if (o !== void 0 && (i = "" + o), l.key !== void 0 && (i = "" + l.key), "key" in l) {
23
+ o = {};
24
+ for (var d in l)
25
+ d !== "key" && (o[d] = l[d]);
26
+ } else o = l;
27
+ return l = o.ref, {
28
+ $$typeof: a,
29
+ type: s,
30
30
  key: i,
31
- ref: n !== void 0 ? n : null,
32
- props: l
31
+ ref: l !== void 0 ? l : null,
32
+ props: o
33
33
  };
34
34
  }
35
- return k.Fragment = a, k.jsx = t, k.jsxs = t, k;
35
+ return T.Fragment = t, T.jsx = n, T.jsxs = n, T;
36
36
  }
37
- var T = {};
37
+ var k = {};
38
38
  /**
39
39
  * @license React
40
40
  * react-jsx-runtime.development.js
@@ -44,16 +44,16 @@ var T = {};
44
44
  * This source code is licensed under the MIT license found in the
45
45
  * LICENSE file in the root directory of this source tree.
46
46
  */
47
- var J;
47
+ var G;
48
48
  function Ee() {
49
- return J || (J = 1, process.env.NODE_ENV !== "production" && function() {
50
- function s(r) {
49
+ return G || (G = 1, process.env.NODE_ENV !== "production" && function() {
50
+ function a(r) {
51
51
  if (r == null) return null;
52
52
  if (typeof r == "function")
53
- return r.$$typeof === ue ? null : r.displayName || r.name || null;
53
+ return r.$$typeof === de ? null : r.displayName || r.name || null;
54
54
  if (typeof r == "string") return r;
55
55
  switch (r) {
56
- case _:
56
+ case $:
57
57
  return "Fragment";
58
58
  case se:
59
59
  return "Profiler";
@@ -70,62 +70,62 @@ function Ee() {
70
70
  switch (typeof r.tag == "number" && console.error(
71
71
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
72
72
  ), r.$$typeof) {
73
- case C:
73
+ case R:
74
74
  return "Portal";
75
- case oe:
75
+ case te:
76
76
  return (r.displayName || "Context") + ".Provider";
77
77
  case ae:
78
78
  return (r._context.displayName || "Context") + ".Consumer";
79
- case te:
79
+ case oe:
80
80
  var c = r.render;
81
81
  return r = r.displayName, r || (r = c.displayName || c.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
82
82
  case ce:
83
- return c = r.displayName || null, c !== null ? c : s(r.type) || "Memo";
84
- case I:
83
+ return c = r.displayName || null, c !== null ? c : a(r.type) || "Memo";
84
+ case S:
85
85
  c = r._payload, r = r._init;
86
86
  try {
87
- return s(r(c));
87
+ return a(r(c));
88
88
  } catch {
89
89
  }
90
90
  }
91
91
  return null;
92
92
  }
93
- function a(r) {
93
+ function t(r) {
94
94
  return "" + r;
95
95
  }
96
- function t(r) {
96
+ function n(r) {
97
97
  try {
98
- a(r);
98
+ t(r);
99
99
  var c = !1;
100
100
  } catch {
101
101
  c = !0;
102
102
  }
103
103
  if (c) {
104
104
  c = console;
105
- var d = c.error, x = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
106
- return d.call(
105
+ var u = c.error, x = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
106
+ return u.call(
107
107
  c,
108
108
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
109
  x
110
- ), a(r);
110
+ ), t(r);
111
111
  }
112
112
  }
113
- function o(r) {
114
- if (r === _) return "<>";
115
- if (typeof r == "object" && r !== null && r.$$typeof === I)
113
+ function s(r) {
114
+ if (r === $) return "<>";
115
+ if (typeof r == "object" && r !== null && r.$$typeof === S)
116
116
  return "<...>";
117
117
  try {
118
- var c = s(r);
118
+ var c = a(r);
119
119
  return c ? "<" + c + ">" : "<...>";
120
120
  } catch {
121
121
  return "<...>";
122
122
  }
123
123
  }
124
- function n() {
125
- var r = A.A;
124
+ function l() {
125
+ var r = _.A;
126
126
  return r === null ? null : r.getOwner();
127
127
  }
128
- function l() {
128
+ function o() {
129
129
  return Error("react-stack-top-frame");
130
130
  }
131
131
  function i(r) {
@@ -135,32 +135,32 @@ function Ee() {
135
135
  }
136
136
  return r.key !== void 0;
137
137
  }
138
- function u(r, c) {
139
- function d() {
138
+ function d(r, c) {
139
+ function u() {
140
140
  z || (z = !0, console.error(
141
141
  "%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)",
142
142
  c
143
143
  ));
144
144
  }
145
- d.isReactWarning = !0, Object.defineProperty(r, "key", {
146
- get: d,
145
+ u.isReactWarning = !0, Object.defineProperty(r, "key", {
146
+ get: u,
147
147
  configurable: !0
148
148
  });
149
149
  }
150
150
  function p() {
151
- var r = s(this.type);
151
+ var r = a(this.type);
152
152
  return F[r] || (F[r] = !0, console.error(
153
153
  "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."
154
154
  )), r = this.props.ref, r !== void 0 ? r : null;
155
155
  }
156
- function j(r, c, d, x, w, b, O, P) {
157
- return d = b.ref, r = {
156
+ function j(r, c, u, x, w, b, O, B) {
157
+ return u = b.ref, r = {
158
158
  $$typeof: V,
159
159
  type: r,
160
160
  key: c,
161
161
  props: b,
162
162
  _owner: w
163
- }, (d !== void 0 ? d : null) !== null ? Object.defineProperty(r, "ref", {
163
+ }, (u !== void 0 ? u : null) !== null ? Object.defineProperty(r, "ref", {
164
164
  enumerable: !1,
165
165
  get: p
166
166
  }) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
@@ -182,14 +182,14 @@ function Ee() {
182
182
  configurable: !1,
183
183
  enumerable: !1,
184
184
  writable: !0,
185
- value: P
185
+ value: B
186
186
  }), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
187
187
  }
188
- function m(r, c, d, x, w, b, O, P) {
188
+ function m(r, c, u, x, w, b, O, B) {
189
189
  var v = c.children;
190
190
  if (v !== void 0)
191
191
  if (x)
192
- if (de(v)) {
192
+ if (ue(v)) {
193
193
  for (x = 0; x < v.length; x++)
194
194
  g(v[x]);
195
195
  Object.freeze && Object.freeze(v);
@@ -199,7 +199,7 @@ function Ee() {
199
199
  );
200
200
  else g(v);
201
201
  if (M.call(c, "key")) {
202
- v = s(r);
202
+ v = a(r);
203
203
  var y = Object.keys(c).filter(function(me) {
204
204
  return me !== "key";
205
205
  });
@@ -216,73 +216,73 @@ React keys must be passed directly to JSX without using spread:
216
216
  v
217
217
  ), W[v + x] = !0);
218
218
  }
219
- if (v = null, d !== void 0 && (t(d), v = "" + d), i(c) && (t(c.key), v = "" + c.key), "key" in c) {
220
- d = {};
221
- for (var L in c)
222
- L !== "key" && (d[L] = c[L]);
223
- } else d = c;
224
- return v && u(
225
- d,
219
+ if (v = null, u !== void 0 && (n(u), v = "" + u), i(c) && (n(c.key), v = "" + c.key), "key" in c) {
220
+ u = {};
221
+ for (var P in c)
222
+ P !== "key" && (u[P] = c[P]);
223
+ } else u = c;
224
+ return v && d(
225
+ u,
226
226
  typeof r == "function" ? r.displayName || r.name || "Unknown" : r
227
227
  ), j(
228
228
  r,
229
229
  v,
230
230
  b,
231
231
  w,
232
- n(),
233
- d,
232
+ l(),
233
+ u,
234
234
  O,
235
- P
235
+ B
236
236
  );
237
237
  }
238
238
  function g(r) {
239
239
  typeof r == "object" && r !== null && r.$$typeof === V && r._store && (r._store.validated = 1);
240
240
  }
241
- var h = D, V = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), re = Symbol.for("react.strict_mode"), se = Symbol.for("react.profiler"), ae = Symbol.for("react.consumer"), oe = Symbol.for("react.context"), te = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), le = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), ue = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, de = Array.isArray, $ = console.createTask ? console.createTask : function() {
241
+ var f = I, V = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), re = Symbol.for("react.strict_mode"), se = Symbol.for("react.profiler"), ae = Symbol.for("react.consumer"), te = Symbol.for("react.context"), oe = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), le = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), de = Symbol.for("react.client.reference"), _ = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, ue = Array.isArray, A = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
- h = {
244
+ f = {
245
245
  "react-stack-bottom-frame": function(r) {
246
246
  return r();
247
247
  }
248
248
  };
249
- var z, F = {}, Y = h["react-stack-bottom-frame"].bind(
250
- h,
251
- l
252
- )(), U = $(o(l)), W = {};
253
- T.Fragment = _, T.jsx = function(r, c, d, x, w) {
254
- var b = 1e4 > A.recentlyCreatedOwnerStacks++;
249
+ var z, F = {}, Y = f["react-stack-bottom-frame"].bind(
250
+ f,
251
+ o
252
+ )(), U = A(s(o)), W = {};
253
+ k.Fragment = $, k.jsx = function(r, c, u, x, w) {
254
+ var b = 1e4 > _.recentlyCreatedOwnerStacks++;
255
255
  return m(
256
256
  r,
257
257
  c,
258
- d,
258
+ u,
259
259
  !1,
260
260
  x,
261
261
  w,
262
262
  b ? Error("react-stack-top-frame") : Y,
263
- b ? $(o(r)) : U
263
+ b ? A(s(r)) : U
264
264
  );
265
- }, T.jsxs = function(r, c, d, x, w) {
266
- var b = 1e4 > A.recentlyCreatedOwnerStacks++;
265
+ }, k.jsxs = function(r, c, u, x, w) {
266
+ var b = 1e4 > _.recentlyCreatedOwnerStacks++;
267
267
  return m(
268
268
  r,
269
269
  c,
270
- d,
270
+ u,
271
271
  !0,
272
272
  x,
273
273
  w,
274
274
  b ? Error("react-stack-top-frame") : Y,
275
- b ? $(o(r)) : U
275
+ b ? A(s(r)) : U
276
276
  );
277
277
  };
278
- }()), T;
278
+ }()), k;
279
279
  }
280
- var X;
281
- function Re() {
282
- return X || (X = 1, process.env.NODE_ENV === "production" ? E.exports = Te() : E.exports = Ee()), E.exports;
280
+ var J;
281
+ function Ce() {
282
+ return J || (J = 1, process.env.NODE_ENV === "production" ? E.exports = ke() : E.exports = Ee()), E.exports;
283
283
  }
284
- var e = Re();
285
- const Ce = {
284
+ var e = Ce();
285
+ const Re = {
286
286
  bg: "bg-indigo-600",
287
287
  activeBg: "bg-indigo-700",
288
288
  text: "text-indigo-200",
@@ -290,82 +290,82 @@ const Ce = {
290
290
  hoverBg: "hover:bg-indigo-700",
291
291
  hoverText: "hover:text-white"
292
292
  };
293
- function f(...s) {
294
- return s.filter(Boolean).join(" ");
293
+ function h(...a) {
294
+ return a.filter(Boolean).join(" ");
295
295
  }
296
- function H({ item: s, colorScheme: a }) {
297
- const [t, o] = N(s.current || s.children?.some((l) => l.current)), n = s.children && s.children.length > 0;
296
+ function X({ item: a, colorScheme: t }) {
297
+ const [n, s] = N(a.current || a.children?.some((o) => o.current)), l = a.children && a.children.length > 0;
298
298
  return /* @__PURE__ */ e.jsxs("li", { children: [
299
299
  /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
300
300
  "a",
301
301
  {
302
- href: n ? void 0 : s.href,
303
- onClick: (l) => {
304
- n && (l.preventDefault(), o(!t));
302
+ href: l ? void 0 : a.href,
303
+ onClick: (o) => {
304
+ l && (o.preventDefault(), s(!n));
305
305
  },
306
- className: f(
307
- s.current ? `${a.activeBg} ${a.activeText}` : `${a.text} ${a.hoverBg} ${a.hoverText}`,
306
+ className: h(
307
+ a.current ? `${t.activeBg} ${t.activeText}` : `${t.text} ${t.hoverBg} ${t.hoverText}`,
308
308
  "group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
309
- n ? "cursor-pointer" : ""
309
+ l ? "cursor-pointer" : ""
310
310
  ),
311
311
  children: [
312
312
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-3", children: [
313
313
  /* @__PURE__ */ e.jsx(
314
- s.icon,
314
+ a.icon,
315
315
  {
316
316
  "aria-hidden": "true",
317
- className: f(
318
- s.current ? a.activeText : `${a.text} group-${a.hoverText}`,
317
+ className: h(
318
+ a.current ? t.activeText : `${t.text} group-${t.hoverText}`,
319
319
  "size-6 shrink-0"
320
320
  )
321
321
  }
322
322
  ),
323
- s.name
323
+ a.name
324
324
  ] }),
325
- n && /* @__PURE__ */ e.jsx(
325
+ l && /* @__PURE__ */ e.jsx(
326
326
  we,
327
327
  {
328
- className: f(
328
+ className: h(
329
329
  "size-5 shrink-0 transition-transform",
330
- t ? "rotate-180" : "",
331
- s.current ? a.activeText : a.text
330
+ n ? "rotate-180" : "",
331
+ a.current ? t.activeText : t.text
332
332
  )
333
333
  }
334
334
  )
335
335
  ]
336
336
  }
337
337
  ) }),
338
- n && t && /* @__PURE__ */ e.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: s.children.map((l) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
338
+ l && n && /* @__PURE__ */ e.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: a.children.map((o) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
339
339
  "a",
340
340
  {
341
- href: l.href,
342
- className: f(
343
- l.current ? `${a.activeBg} ${a.activeText}` : `${a.text} ${a.hoverBg} ${a.hoverText}`,
341
+ href: o.href,
342
+ className: h(
343
+ o.current ? `${t.activeBg} ${t.activeText}` : `${t.text} ${t.hoverBg} ${t.hoverText}`,
344
344
  "group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
345
345
  ),
346
346
  children: [
347
347
  /* @__PURE__ */ e.jsx(
348
- l.icon,
348
+ o.icon,
349
349
  {
350
350
  "aria-hidden": "true",
351
- className: f(
352
- l.current ? a.activeText : `${a.text} group-${a.hoverText}`,
351
+ className: h(
352
+ o.current ? t.activeText : `${t.text} group-${t.hoverText}`,
353
353
  "size-5 shrink-0"
354
354
  )
355
355
  }
356
356
  ),
357
- l.name
357
+ o.name
358
358
  ]
359
359
  }
360
- ) }, l.name)) })
360
+ ) }, o.name)) })
361
361
  ] });
362
362
  }
363
- function We({ company: s, profile: a, navigation: t, colorScheme: o = Ce }) {
364
- const [n, l] = N(!1);
363
+ function Ge({ company: a, profile: t, navigation: n, colorScheme: s = Re }) {
364
+ const [l, o] = N(!1);
365
365
  return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
366
- /* @__PURE__ */ e.jsxs(he, { open: n, onClose: l, className: "relative z-50 lg:hidden", children: [
366
+ /* @__PURE__ */ e.jsxs(fe, { open: l, onClose: o, className: "relative z-50 lg:hidden", children: [
367
367
  /* @__PURE__ */ e.jsx(
368
- fe,
368
+ he,
369
369
  {
370
370
  transition: !0,
371
371
  className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
@@ -377,101 +377,101 @@ function We({ company: s, profile: a, navigation: t, colorScheme: o = Ce }) {
377
377
  transition: !0,
378
378
  className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
379
379
  children: [
380
- /* @__PURE__ */ e.jsx(be, { 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: () => l(!1), className: "-m-2.5 p-2.5", children: [
380
+ /* @__PURE__ */ e.jsx(be, { 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: () => o(!1), className: "-m-2.5 p-2.5", children: [
381
381
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
382
382
  /* @__PURE__ */ e.jsx(pe, { "aria-hidden": "true", className: "size-6 text-white" })
383
383
  ] }) }) }),
384
- /* @__PURE__ */ e.jsxs("div", { className: f("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", o.bg), children: [
384
+ /* @__PURE__ */ e.jsxs("div", { className: h("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", s.bg), children: [
385
385
  /* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
386
386
  "img",
387
387
  {
388
- alt: s.name,
389
- src: s.logo,
388
+ alt: a.name,
389
+ src: a.logo,
390
390
  className: "h-8 w-auto"
391
391
  }
392
392
  ) }),
393
- /* @__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(H, { item: i, colorScheme: o }, i.name)) }) }) }) })
393
+ /* @__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: n.map((i) => /* @__PURE__ */ e.jsx(X, { item: i, colorScheme: s }, i.name)) }) }) }) })
394
394
  ] })
395
395
  ]
396
396
  }
397
397
  ) })
398
398
  ] }),
399
- /* @__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: f("flex grow flex-col gap-y-5 overflow-y-auto px-6", o.bg), children: [
399
+ /* @__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: h("flex grow flex-col gap-y-5 overflow-y-auto px-6", s.bg), children: [
400
400
  /* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
401
401
  "img",
402
402
  {
403
- alt: s.name,
404
- src: s.logo,
403
+ alt: a.name,
404
+ src: a.logo,
405
405
  className: "h-8 w-auto"
406
406
  }
407
407
  ) }),
408
408
  /* @__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: [
409
- /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((i) => /* @__PURE__ */ e.jsx(H, { item: i, colorScheme: o }, i.name)) }) }),
409
+ /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: n.map((i) => /* @__PURE__ */ e.jsx(X, { item: i, colorScheme: s }, i.name)) }) }),
410
410
  /* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
411
411
  "a",
412
412
  {
413
413
  href: "#",
414
- className: f(
414
+ className: h(
415
415
  "flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
416
- o.activeText,
417
- o.hoverBg
416
+ s.activeText,
417
+ s.hoverBg
418
418
  ),
419
419
  children: [
420
420
  /* @__PURE__ */ e.jsx(
421
421
  "img",
422
422
  {
423
- alt: a.name,
424
- src: a.image,
425
- className: f("size-8 rounded-full", o.activeBg)
423
+ alt: t.name,
424
+ src: t.image,
425
+ className: h("size-8 rounded-full", s.activeBg)
426
426
  }
427
427
  ),
428
428
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
429
- /* @__PURE__ */ e.jsx("span", { "aria-hidden": "true", children: a.name })
429
+ /* @__PURE__ */ e.jsx("span", { "aria-hidden": "true", children: t.name })
430
430
  ]
431
431
  }
432
432
  ) })
433
433
  ] }) })
434
434
  ] }) }),
435
- /* @__PURE__ */ e.jsxs("div", { className: f("sticky top-0 z-40 flex items-center gap-x-6 px-4 py-4 shadow-xs sm:px-6 lg:hidden", o.bg), children: [
436
- /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => l(!0), className: f("-m-2.5 p-2.5 lg:hidden", o.text), children: [
435
+ /* @__PURE__ */ e.jsxs("div", { className: h("sticky top-0 z-40 flex items-center gap-x-6 px-4 py-4 shadow-xs sm:px-6 lg:hidden", s.bg), children: [
436
+ /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => o(!0), className: h("-m-2.5 p-2.5 lg:hidden", s.text), children: [
437
437
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
438
438
  /* @__PURE__ */ e.jsx(je, { "aria-hidden": "true", className: "size-6" })
439
439
  ] }),
440
- /* @__PURE__ */ e.jsx("div", { className: f("flex-1 text-sm/6 font-semibold", o.activeText), children: "Dashboard" }),
440
+ /* @__PURE__ */ e.jsx("div", { className: h("flex-1 text-sm/6 font-semibold", s.activeText), children: "Dashboard" }),
441
441
  /* @__PURE__ */ e.jsxs("a", { href: "#", children: [
442
442
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
443
443
  /* @__PURE__ */ e.jsx(
444
444
  "img",
445
445
  {
446
- alt: a.name,
447
- src: a.image,
448
- className: f("size-8 rounded-full", o.activeBg)
446
+ alt: t.name,
447
+ src: t.image,
448
+ className: h("size-8 rounded-full", s.activeBg)
449
449
  }
450
450
  )
451
451
  ] })
452
452
  ] })
453
453
  ] }) });
454
454
  }
455
- const K = (s) => s.replace("--color-", "bg-"), _e = ({ name: s, cssVar: a, value: t }) => {
456
- const o = `rgb(${t})`;
455
+ const K = (a) => a.replace("--color-", "bg-"), $e = ({ name: a, cssVar: t, value: n }) => {
456
+ const s = `rgb(${n})`;
457
457
  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: [
458
458
  /* @__PURE__ */ e.jsx(
459
459
  "div",
460
460
  {
461
- className: `w-16 h-16 rounded-lg border border-border shadow-sm ${K(a)}`
461
+ className: `w-16 h-16 rounded-lg border border-border shadow-sm ${K(t)}`
462
462
  }
463
463
  ),
464
464
  /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
465
- /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: s }),
466
- /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: a }),
467
- /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: o })
465
+ /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: a }),
466
+ /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: t }),
467
+ /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: s })
468
468
  ] })
469
469
  ] });
470
- }, q = ({ title: s, colors: a }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
471
- /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: s }),
472
- /* @__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: a.map((t) => /* @__PURE__ */ e.jsx(_e, { ...t }, t.name)) })
473
- ] }), Ae = () => {
474
- const s = [
470
+ }, q = ({ title: a, colors: t }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
471
+ /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: a }),
472
+ /* @__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: t.map((n) => /* @__PURE__ */ e.jsx($e, { ...n }, n.name)) })
473
+ ] }), _e = () => {
474
+ const a = [
475
475
  {
476
476
  title: "Success Colors (Green)",
477
477
  colors: [
@@ -520,7 +520,7 @@ const K = (s) => s.replace("--color-", "bg-"), _e = ({ name: s, cssVar: a, value
520
520
  { name: "950", cssVar: "--color-error-950", value: "69 10 10" }
521
521
  ]
522
522
  }
523
- ], a = [
523
+ ], t = [
524
524
  {
525
525
  title: "Reseda Green",
526
526
  colors: [
@@ -671,7 +671,7 @@ const K = (s) => s.replace("--color-", "bg-"), _e = ({ name: s, cssVar: a, value
671
671
  { name: "900", cssVar: "--color-beaver-900", value: "235 229 224" }
672
672
  ]
673
673
  }
674
- ], t = [
674
+ ], n = [
675
675
  { name: "Background", cssVar: "--color-background" },
676
676
  { name: "Surface", cssVar: "--color-surface" },
677
677
  { name: "Surface Variant", cssVar: "--color-surface-variant" },
@@ -686,63 +686,63 @@ const K = (s) => s.replace("--color-", "bg-"), _e = ({ name: s, cssVar: a, value
686
686
  /* @__PURE__ */ e.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
687
687
  /* @__PURE__ */ e.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
688
688
  ] }),
689
- a.map((o) => /* @__PURE__ */ e.jsx(q, { ...o }, o.title)),
690
- s.map((o) => /* @__PURE__ */ e.jsx(q, { ...o }, o.title)),
689
+ t.map((s) => /* @__PURE__ */ e.jsx(q, { ...s }, s.title)),
690
+ a.map((s) => /* @__PURE__ */ e.jsx(q, { ...s }, s.title)),
691
691
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
692
692
  /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: "Semantic Colors (Theme-aware)" }),
693
- /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: t.map((o) => /* @__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: [
693
+ /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: n.map((s) => /* @__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: [
694
694
  /* @__PURE__ */ e.jsx(
695
695
  "div",
696
696
  {
697
- className: `w-16 h-16 rounded-lg border border-border shadow-sm ${K(o.cssVar)}`
697
+ className: `w-16 h-16 rounded-lg border border-border shadow-sm ${K(s.cssVar)}`
698
698
  }
699
699
  ),
700
700
  /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
701
- /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: o.name }),
702
- /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: o.cssVar })
701
+ /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: s.name }),
702
+ /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: s.cssVar })
703
703
  ] })
704
- ] }, o.name)) })
704
+ ] }, s.name)) })
705
705
  ] }),
706
706
  /* @__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" }) })
707
707
  ] });
708
- }, ee = xe(void 0), $e = ({
709
- children: s,
710
- defaultTheme: a = "system",
711
- storageKey: t = "acemyjob-ui-theme"
708
+ }, ee = xe(void 0), Ae = ({
709
+ children: a,
710
+ defaultTheme: t = "system",
711
+ storageKey: n = "acemyjob-ui-theme"
712
712
  }) => {
713
- const [o, n] = N(a), [l, i] = N("light"), [u, p] = N(!1);
714
- B(() => {
715
- const m = localStorage.getItem(t);
716
- m && n(m), p(!0);
717
- }, [t]), B(() => {
718
- if (!u) return;
713
+ const [s, l] = N(t), [o, i] = N("light"), [d, p] = N(!1);
714
+ L(() => {
715
+ const m = localStorage.getItem(n);
716
+ m && l(m), p(!0);
717
+ }, [n]), L(() => {
718
+ if (!d) return;
719
719
  const m = window.document.documentElement, g = () => {
720
- let h;
721
- o === "system" ? h = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : h = o, i(h), m.classList.remove("light", "dark"), m.classList.add(h);
720
+ let f;
721
+ s === "system" ? f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f = s, i(f), m.classList.remove("light", "dark"), m.classList.add(f);
722
722
  };
723
- if (g(), o === "system") {
724
- const h = window.matchMedia("(prefers-color-scheme: dark)"), V = () => g();
725
- return h.addEventListener("change", V), () => h.removeEventListener("change", V);
723
+ if (g(), s === "system") {
724
+ const f = window.matchMedia("(prefers-color-scheme: dark)"), V = () => g();
725
+ return f.addEventListener("change", V), () => f.removeEventListener("change", V);
726
726
  }
727
- }, [o, u]);
727
+ }, [s, d]);
728
728
  const j = {
729
- theme: o,
729
+ theme: s,
730
730
  setTheme: (m) => {
731
- localStorage.setItem(t, m), n(m);
731
+ localStorage.setItem(n, m), l(m);
732
732
  },
733
- resolvedTheme: l
733
+ resolvedTheme: o
734
734
  };
735
- return /* @__PURE__ */ e.jsx(ee.Provider, { value: j, children: s });
735
+ return /* @__PURE__ */ e.jsx(ee.Provider, { value: j, children: a });
736
736
  }, Oe = () => {
737
- const s = ve(ee);
738
- if (s === void 0)
737
+ const a = ve(ee);
738
+ if (a === void 0)
739
739
  throw new Error("useTheme must be used within a ThemeProvider");
740
- return s;
741
- }, Pe = () => {
742
- const { theme: s, setTheme: a } = Oe(), [t, o] = N(!1);
743
- if (B(() => {
744
- o(!0);
745
- }, []), !t)
740
+ return a;
741
+ }, Be = () => {
742
+ const { theme: a, setTheme: t } = Oe(), [n, s] = N(!1);
743
+ if (L(() => {
744
+ s(!0);
745
+ }, []), !n)
746
746
  return /* @__PURE__ */ e.jsxs(
747
747
  "button",
748
748
  {
@@ -754,10 +754,10 @@ const K = (s) => s.replace("--color-", "bg-"), _e = ({ name: s, cssVar: a, value
754
754
  ]
755
755
  }
756
756
  );
757
- const n = () => {
758
- a(s === "light" ? "dark" : s === "dark" ? "system" : "light");
759
- }, l = () => {
760
- switch (s) {
757
+ const l = () => {
758
+ t(a === "light" ? "dark" : a === "dark" ? "system" : "light");
759
+ }, o = () => {
760
+ switch (a) {
761
761
  case "light":
762
762
  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: "M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" }) });
763
763
  case "dark":
@@ -766,7 +766,7 @@ const K = (s) => s.replace("--color-", "bg-"), _e = ({ name: s, cssVar: a, value
766
766
  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" }) });
767
767
  }
768
768
  }, i = () => {
769
- switch (s) {
769
+ switch (a) {
770
770
  case "light":
771
771
  return "Light";
772
772
  case "dark":
@@ -778,19 +778,19 @@ const K = (s) => s.replace("--color-", "bg-"), _e = ({ name: s, cssVar: a, value
778
778
  return /* @__PURE__ */ e.jsxs(
779
779
  "button",
780
780
  {
781
- onClick: n,
781
+ onClick: l,
782
782
  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",
783
783
  "aria-label": `Current theme: ${i()}. Click to cycle themes.`,
784
784
  children: [
785
- l(),
785
+ o(),
786
786
  /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: i() })
787
787
  ]
788
788
  }
789
789
  );
790
- }, Le = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
791
- /* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Pe, {}) }),
792
- /* @__PURE__ */ e.jsx(Ae, {})
793
- ] }), Ge = () => /* @__PURE__ */ e.jsx($e, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(Le, {}) }), Z = {
790
+ }, Pe = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
791
+ /* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Be, {}) }),
792
+ /* @__PURE__ */ e.jsx(_e, {})
793
+ ] }), Je = () => /* @__PURE__ */ e.jsx(Ae, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(Pe, {}) }), Z = {
794
794
  variant: {
795
795
  default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
796
796
  destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
@@ -808,35 +808,35 @@ const K = (s) => s.replace("--color-", "bg-"), _e = ({ name: s, cssVar: a, value
808
808
  xl: "h-12 rounded-md px-10 text-base",
809
809
  icon: "h-10 w-10"
810
810
  }
811
- }, Be = "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", De = (...s) => s.filter(Boolean).join(" "), S = D.forwardRef(
811
+ }, Le = "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", Ie = (...a) => a.filter(Boolean).join(" "), D = I.forwardRef(
812
812
  ({
813
- className: s,
814
- variant: a = "default",
815
- size: t = "default",
816
- fullWidth: o = !1,
817
- loading: n = !1,
818
- leftIcon: l,
813
+ className: a,
814
+ variant: t = "default",
815
+ size: n = "default",
816
+ fullWidth: s = !1,
817
+ loading: l = !1,
818
+ leftIcon: o,
819
819
  rightIcon: i,
820
- children: u,
820
+ children: d,
821
821
  disabled: p,
822
822
  ...j
823
823
  }, m) => {
824
- const g = p || n, h = De(
825
- Be,
826
- Z.variant[a],
827
- Z.size[t],
828
- o ? "w-full" : "",
829
- s
824
+ const g = p || l, f = Ie(
825
+ Le,
826
+ Z.variant[t],
827
+ Z.size[n],
828
+ s ? "w-full" : "",
829
+ a
830
830
  );
831
831
  return /* @__PURE__ */ e.jsxs(
832
832
  "button",
833
833
  {
834
- className: h,
834
+ className: f,
835
835
  ref: m,
836
836
  disabled: g,
837
837
  ...j,
838
838
  children: [
839
- n && /* @__PURE__ */ e.jsxs(
839
+ l && /* @__PURE__ */ e.jsxs(
840
840
  "svg",
841
841
  {
842
842
  className: "mr-2 h-4 w-4 animate-spin",
@@ -866,15 +866,15 @@ const K = (s) => s.replace("--color-", "bg-"), _e = ({ name: s, cssVar: a, value
866
866
  ]
867
867
  }
868
868
  ),
869
- !n && l && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: l }),
870
- u,
871
- !n && i && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: i })
869
+ !l && o && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: o }),
870
+ d,
871
+ !l && i && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: i })
872
872
  ]
873
873
  }
874
874
  );
875
875
  }
876
876
  );
877
- S.displayName = "Button";
877
+ D.displayName = "Button";
878
878
  const Q = {
879
879
  provider: {
880
880
  linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
@@ -884,109 +884,109 @@ const Q = {
884
884
  right: "flex-row-reverse",
885
885
  only: "justify-center"
886
886
  }
887
- }, Se = (...s) => s.filter(Boolean).join(" "), Ie = D.forwardRef(
887
+ }, De = (...a) => a.filter(Boolean).join(" "), Se = I.forwardRef(
888
888
  ({
889
- className: s,
890
- provider: a,
891
- iconPosition: t = "left",
892
- icon: o,
893
- showText: n = !0,
894
- children: l,
889
+ className: a,
890
+ provider: t,
891
+ iconPosition: n = "left",
892
+ icon: s,
893
+ showText: l = !0,
894
+ children: o,
895
895
  size: i = "default",
896
- fullWidth: u = !0,
896
+ fullWidth: d = !0,
897
897
  ...p
898
898
  }, j) => {
899
- const g = o || {
899
+ const g = s || {
900
900
  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" }) })
901
- }[a], V = l || (n ? {
901
+ }[t], V = o || (l ? {
902
902
  linkedin: "Continue with LinkedIn"
903
- }[a] : ""), C = Se(
903
+ }[t] : ""), R = De(
904
904
  "relative overflow-hidden transition-all duration-200",
905
- Q.provider[a],
906
- Q.iconPosition[t],
907
- s
905
+ Q.provider[t],
906
+ Q.iconPosition[n],
907
+ a
908
908
  );
909
909
  return /* @__PURE__ */ e.jsxs(
910
- S,
910
+ D,
911
911
  {
912
912
  ref: j,
913
913
  variant: "none",
914
- className: C,
914
+ className: R,
915
915
  size: i,
916
- fullWidth: u,
917
- leftIcon: t === "left" ? g : void 0,
918
- rightIcon: t === "right" ? g : void 0,
916
+ fullWidth: d,
917
+ leftIcon: n === "left" ? g : void 0,
918
+ rightIcon: n === "right" ? g : void 0,
919
919
  ...p,
920
920
  children: [
921
- t === "only" && g,
922
- t !== "only" && V
921
+ n === "only" && g,
922
+ n !== "only" && V
923
923
  ]
924
924
  }
925
925
  );
926
926
  }
927
927
  );
928
- Ie.displayName = "SocialButton";
929
- function Je({
930
- children: s,
931
- variant: a = "default",
932
- isActive: t = !1,
933
- onClick: o,
934
- className: n = ""
928
+ Se.displayName = "SocialButton";
929
+ function Xe({
930
+ children: a,
931
+ variant: t = "default",
932
+ isActive: n = !1,
933
+ onClick: s,
934
+ className: l = ""
935
935
  }) {
936
- const l = "rounded-lg transition-all", i = {
936
+ const o = "rounded-lg transition-all", i = {
937
937
  default: "border border-border p-4",
938
938
  surface: "bg-surface-variant p-4",
939
939
  elevated: "bg-surface shadow-md p-6",
940
- interactive: `border-2 p-4 cursor-pointer ${t ? "border-success-500 bg-success-50" : "border-border bg-surface hover:border-border-subtle"}`
940
+ interactive: `border-2 p-4 cursor-pointer ${n ? "border-success-500 bg-success-50" : "border-border bg-surface hover:border-border-subtle"}`
941
941
  };
942
942
  return /* @__PURE__ */ e.jsx(
943
943
  "div",
944
944
  {
945
- className: `${l} ${i[a]} ${n}`,
946
- onClick: o,
947
- role: o ? "button" : void 0,
948
- tabIndex: o ? 0 : void 0,
949
- onKeyDown: o ? (u) => {
950
- (u.key === "Enter" || u.key === " ") && o();
945
+ className: `${o} ${i[t]} ${l}`,
946
+ onClick: s,
947
+ role: s ? "button" : void 0,
948
+ tabIndex: s ? 0 : void 0,
949
+ onKeyDown: s ? (d) => {
950
+ (d.key === "Enter" || d.key === " ") && s();
951
951
  } : void 0,
952
- children: s
952
+ children: a
953
953
  }
954
954
  );
955
955
  }
956
- function Xe({
957
- title: s,
958
- children: a,
959
- subtitle: t,
960
- spacing: o = "normal",
961
- className: n = ""
956
+ function qe({
957
+ title: a,
958
+ children: t,
959
+ subtitle: n,
960
+ spacing: s = "normal",
961
+ className: l = ""
962
962
  }) {
963
- const l = {
963
+ const o = {
964
964
  compact: "space-y-3",
965
965
  normal: "space-y-6",
966
966
  spacious: "space-y-8"
967
967
  };
968
- return /* @__PURE__ */ e.jsxs("div", { className: `${l[o]} ${n}`, children: [
968
+ return /* @__PURE__ */ e.jsxs("div", { className: `${o[s]} ${l}`, children: [
969
969
  /* @__PURE__ */ e.jsxs("div", { children: [
970
- /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: s }),
971
- t && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t })
970
+ /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: a }),
971
+ n && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: n })
972
972
  ] }),
973
- a
973
+ t
974
974
  ] });
975
975
  }
976
- function He({
977
- variant: s,
978
- title: a,
979
- message: t,
980
- icon: o,
981
- onClose: n,
982
- className: l = ""
976
+ function Ze({
977
+ variant: a,
978
+ title: t,
979
+ message: n,
980
+ icon: s,
981
+ onClose: l,
982
+ className: o = ""
983
983
  }) {
984
- const u = {
984
+ const d = {
985
985
  success: {
986
986
  bg: "bg-success-50",
987
987
  border: "border-success-200",
988
988
  text: "text-success-700",
989
- icon: /* @__PURE__ */ e.jsx(ke, { className: "h-5 w-5" })
989
+ icon: /* @__PURE__ */ e.jsx(Te, { className: "h-5 w-5" })
990
990
  },
991
991
  error: {
992
992
  bg: "bg-error-50",
@@ -1006,23 +1006,23 @@ function He({
1006
1006
  text: "text-info-700",
1007
1007
  icon: /* @__PURE__ */ e.jsx(Ve, { className: "h-5 w-5" })
1008
1008
  }
1009
- }[s];
1009
+ }[a];
1010
1010
  return /* @__PURE__ */ e.jsx(
1011
1011
  "div",
1012
1012
  {
1013
- className: `${u.bg} border ${u.border} rounded-md p-3 ${l}`,
1013
+ className: `${d.bg} border ${d.border} rounded-md p-3 ${o}`,
1014
1014
  role: "alert",
1015
1015
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
1016
- /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${u.text}`, children: o || u.icon }),
1016
+ /* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${d.text}`, children: s || d.icon }),
1017
1017
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
1018
- a && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${u.text}`, children: a }),
1019
- /* @__PURE__ */ e.jsx("p", { className: `text-sm ${u.text}`, children: t })
1018
+ t && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${d.text}`, children: t }),
1019
+ /* @__PURE__ */ e.jsx("p", { className: `text-sm ${d.text}`, children: n })
1020
1020
  ] }),
1021
- n && /* @__PURE__ */ e.jsx(
1021
+ l && /* @__PURE__ */ e.jsx(
1022
1022
  "button",
1023
1023
  {
1024
- onClick: n,
1025
- className: `flex-shrink-0 ${u.text} hover:opacity-70`,
1024
+ onClick: l,
1025
+ className: `flex-shrink-0 ${d.text} hover:opacity-70`,
1026
1026
  "aria-label": "Close alert",
1027
1027
  children: "✕"
1028
1028
  }
@@ -1032,34 +1032,34 @@ function He({
1032
1032
  );
1033
1033
  }
1034
1034
  function Me({
1035
- title: s,
1036
- titleId: a,
1037
- ...t
1038
- }, o) {
1039
- return /* @__PURE__ */ R.createElement("svg", Object.assign({
1035
+ title: a,
1036
+ titleId: t,
1037
+ ...n
1038
+ }, s) {
1039
+ return /* @__PURE__ */ C.createElement("svg", Object.assign({
1040
1040
  xmlns: "http://www.w3.org/2000/svg",
1041
1041
  viewBox: "0 0 20 20",
1042
1042
  fill: "currentColor",
1043
1043
  "aria-hidden": "true",
1044
1044
  "data-slot": "icon",
1045
- ref: o,
1046
- "aria-labelledby": a
1047
- }, t), s ? /* @__PURE__ */ R.createElement("title", {
1048
- id: a
1049
- }, s) : null, /* @__PURE__ */ R.createElement("path", {
1045
+ ref: s,
1046
+ "aria-labelledby": t
1047
+ }, n), a ? /* @__PURE__ */ C.createElement("title", {
1048
+ id: t
1049
+ }, a) : null, /* @__PURE__ */ C.createElement("path", {
1050
1050
  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"
1051
1051
  }));
1052
1052
  }
1053
- const ze = /* @__PURE__ */ R.forwardRef(Me);
1054
- function qe({
1055
- children: s,
1056
- variant: a = "default",
1057
- size: t = "md",
1058
- removable: o = !1,
1059
- onRemove: n,
1060
- className: l = "",
1053
+ const ze = /* @__PURE__ */ C.forwardRef(Me);
1054
+ function Qe({
1055
+ children: a,
1056
+ variant: t = "default",
1057
+ size: n = "md",
1058
+ removable: s = !1,
1059
+ onRemove: l,
1060
+ className: o = "",
1061
1061
  style: i,
1062
- colorClass: u
1062
+ colorClass: d
1063
1063
  }) {
1064
1064
  const p = {
1065
1065
  default: "bg-surface-variant text-text-secondary",
@@ -1071,18 +1071,18 @@ function qe({
1071
1071
  sm: "px-2 py-0.5 text-xs",
1072
1072
  md: "px-3 py-1 text-sm",
1073
1073
  lg: "px-4 py-1.5 text-base"
1074
- }, m = u || p[a];
1074
+ }, m = d || p[t];
1075
1075
  return /* @__PURE__ */ e.jsxs(
1076
1076
  "span",
1077
1077
  {
1078
- className: `inline-flex items-center gap-1 rounded-full ${m} ${j[t]} ${l}`,
1078
+ className: `inline-flex items-center gap-1 rounded-full ${m} ${j[n]} ${o}`,
1079
1079
  style: i,
1080
1080
  children: [
1081
- s,
1082
- o && n && /* @__PURE__ */ e.jsx(
1081
+ a,
1082
+ s && l && /* @__PURE__ */ e.jsx(
1083
1083
  "button",
1084
1084
  {
1085
- onClick: n,
1085
+ onClick: l,
1086
1086
  className: "ml-1 hover:opacity-70",
1087
1087
  "aria-label": "Remove badge",
1088
1088
  children: /* @__PURE__ */ e.jsx(ze, { className: "w-3 h-3" })
@@ -1092,56 +1092,76 @@ function qe({
1092
1092
  }
1093
1093
  );
1094
1094
  }
1095
- function Ze({ tabs: s, activeTab: a, disabled: t = !1, onChange: o }) {
1096
- return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: s.map((n) => {
1097
- const l = a === n.id;
1095
+ const Fe = {
1096
+ activeText: "text-reseda-green-700",
1097
+ activeBorder: "border-reseda-green-700",
1098
+ inactiveText: "text-text-secondary",
1099
+ inactiveHoverText: "hover:text-text-primary",
1100
+ disabledText: "text-text-disabled"
1101
+ };
1102
+ function Ke({ tabs: a, activeTab: t, disabled: n = !1, onChange: s, colorConfig: l }) {
1103
+ const o = l || Fe;
1104
+ return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: a.map((i) => {
1105
+ const d = t === i.id;
1098
1106
  return /* @__PURE__ */ e.jsx(
1099
- S,
1107
+ D,
1100
1108
  {
1101
1109
  variant: "ghost",
1102
- onClick: () => !t && o(n.id),
1103
- disabled: t && !l,
1104
- className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${l ? "border-reseda-green-700 text-reseda-green-700" : t ? "border-transparent text-text-disabled cursor-not-allowed" : "border-transparent text-text-secondary hover:text-text-primary"}`,
1105
- children: n.label
1110
+ onClick: () => !n && s(i.id),
1111
+ disabled: n && !d,
1112
+ className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${d ? `${o.activeBorder} ${o.activeText}` : n ? `border-transparent ${o.disabledText} cursor-not-allowed` : `border-transparent ${o.inactiveText} ${o.inactiveHoverText}`}`,
1113
+ children: i.label
1106
1114
  },
1107
- n.id
1115
+ i.id
1108
1116
  );
1109
1117
  }) });
1110
1118
  }
1111
- function Qe({ currentStep: s, steps: a }) {
1112
- return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: a.map((t, o) => /* @__PURE__ */ e.jsxs("li", { className: `flex items-center ${o < a.length - 1 ? "flex-1" : ""}`, children: [
1119
+ const Ye = {
1120
+ activeBg: "bg-reseda-green-700",
1121
+ activeText: "text-white",
1122
+ completedBg: "bg-success-500",
1123
+ completedText: "text-white",
1124
+ incompleteBorder: "border-border",
1125
+ incompleteText: "text-text-muted",
1126
+ labelActiveText: "text-reseda-green-800",
1127
+ labelInactiveText: "text-text-muted",
1128
+ connectorBg: "bg-border"
1129
+ };
1130
+ function er({ currentStep: a, steps: t, colorConfig: n }) {
1131
+ const s = n || Ye;
1132
+ return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: t.map((l, o) => /* @__PURE__ */ e.jsxs("li", { className: `flex items-center ${o < t.length - 1 ? "flex-1" : ""}`, children: [
1113
1133
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
1114
1134
  /* @__PURE__ */ e.jsx(
1115
1135
  "span",
1116
1136
  {
1117
- className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${s === t.number ? "bg-reseda-green-700 text-white" : s > t.number ? "bg-success-500 text-white" : "border-2 border-border text-text-muted"}`,
1118
- children: t.number
1137
+ className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${a === l.number ? `${s.activeBg} ${s.activeText}` : a > l.number ? `${s.completedBg} ${s.completedText}` : `border-2 ${s.incompleteBorder} ${s.incompleteText}`}`,
1138
+ children: l.number
1119
1139
  }
1120
1140
  ),
1121
1141
  /* @__PURE__ */ e.jsx(
1122
1142
  "span",
1123
1143
  {
1124
- className: `ml-3 text-sm font-medium whitespace-nowrap ${s >= t.number ? "text-reseda-green-800" : "text-text-muted"}`,
1125
- children: t.label
1144
+ className: `ml-3 text-sm font-medium whitespace-nowrap ${a >= l.number ? s.labelActiveText : s.labelInactiveText}`,
1145
+ children: l.label
1126
1146
  }
1127
1147
  )
1128
1148
  ] }),
1129
- o < a.length - 1 && /* @__PURE__ */ e.jsx("div", { className: "flex-1 h-0.5 mx-4 bg-border" })
1130
- ] }, t.number)) }) });
1149
+ o < t.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${s.connectorBg}` })
1150
+ ] }, l.number)) }) });
1131
1151
  }
1132
1152
  export {
1133
- He as Alert,
1134
- qe as Badge,
1135
- S as Button,
1136
- Je as Card,
1137
- Ae as ColorPalette,
1138
- Ge as Demo,
1139
- Xe as Section,
1140
- We as Sidebar,
1141
- Ie as SocialButton,
1142
- Qe as Stepper,
1143
- Ze as TabBar,
1144
- $e as ThemeProvider,
1145
- Pe as ThemeToggle,
1153
+ Ze as Alert,
1154
+ Qe as Badge,
1155
+ D as Button,
1156
+ Xe as Card,
1157
+ _e as ColorPalette,
1158
+ Je as Demo,
1159
+ qe as Section,
1160
+ Ge as Sidebar,
1161
+ Se as SocialButton,
1162
+ er as Stepper,
1163
+ Ke as TabBar,
1164
+ Ae as ThemeProvider,
1165
+ Be as ThemeToggle,
1146
1166
  Oe as useTheme
1147
1167
  };