acemyjob-ui 0.2.1 → 0.2.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,7 +1,7 @@
1
- import D, { useState as N, createContext as X, useEffect as L, useContext as Q } from "react";
2
- import { Dialog as ve, DialogBackdrop as he, DialogPanel as xe, TransitionChild as fe } from "@headlessui/react";
1
+ import $, { useState as N, createContext as X, useEffect as S, useContext as Q } from "react";
2
+ import { Dialog as ve, DialogBackdrop as xe, DialogPanel as he, TransitionChild as fe } from "@headlessui/react";
3
3
  import { XMarkIcon as ge, Bars3Icon as be } from "@heroicons/react/24/outline";
4
- var T = { exports: {} }, y = {};
4
+ var E = { exports: {} }, k = {};
5
5
  /**
6
6
  * @license React
7
7
  * react-jsx-runtime.production.js
@@ -13,27 +13,27 @@ var T = { exports: {} }, y = {};
13
13
  */
14
14
  var U;
15
15
  function pe() {
16
- if (U) return y;
16
+ if (U) return k;
17
17
  U = 1;
18
18
  var s = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
19
- function t(l, c, o) {
20
- var d = null;
21
- if (o !== void 0 && (d = "" + o), c.key !== void 0 && (d = "" + c.key), "key" in c) {
22
- o = {};
23
- for (var x in c)
24
- x !== "key" && (o[x] = c[x]);
25
- } else o = c;
26
- return c = o.ref, {
19
+ function l(a, c, i) {
20
+ var t = null;
21
+ if (i !== void 0 && (t = "" + i), c.key !== void 0 && (t = "" + c.key), "key" in c) {
22
+ i = {};
23
+ for (var h in c)
24
+ h !== "key" && (i[h] = c[h]);
25
+ } else i = c;
26
+ return c = i.ref, {
27
27
  $$typeof: s,
28
- type: l,
29
- key: d,
28
+ type: a,
29
+ key: t,
30
30
  ref: c !== void 0 ? c : null,
31
- props: o
31
+ props: i
32
32
  };
33
33
  }
34
- return y.Fragment = n, y.jsx = t, y.jsxs = t, y;
34
+ return k.Fragment = n, k.jsx = l, k.jsxs = l, k;
35
35
  }
36
- var k = {};
36
+ var T = {};
37
37
  /**
38
38
  * @license React
39
39
  * react-jsx-runtime.development.js
@@ -52,13 +52,13 @@ function Ve() {
52
52
  return r.$$typeof === ue ? null : r.displayName || r.name || null;
53
53
  if (typeof r == "string") return r;
54
54
  switch (r) {
55
- case _:
55
+ case C:
56
56
  return "Fragment";
57
- case se:
57
+ case ae:
58
58
  return "Profiler";
59
59
  case re:
60
60
  return "StrictMode";
61
- case ne:
61
+ case le:
62
62
  return "Suspense";
63
63
  case te:
64
64
  return "SuspenseList";
@@ -73,17 +73,17 @@ function Ve() {
73
73
  return "Portal";
74
74
  case oe:
75
75
  return (r.displayName || "Context") + ".Provider";
76
- case ae:
76
+ case se:
77
77
  return (r._context.displayName || "Context") + ".Consumer";
78
- case le:
79
- var a = r.render;
80
- return r = r.displayName, r || (r = a.displayName || a.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
78
+ case ne:
79
+ var o = r.render;
80
+ return r = r.displayName, r || (r = o.displayName || o.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
81
81
  case ce:
82
- return a = r.displayName || null, a !== null ? a : s(r.type) || "Memo";
83
- case M:
84
- a = r._payload, r = r._init;
82
+ return o = r.displayName || null, o !== null ? o : s(r.type) || "Memo";
83
+ case B:
84
+ o = r._payload, r = r._init;
85
85
  try {
86
- return s(r(a));
86
+ return s(r(o));
87
87
  } catch {
88
88
  }
89
89
  }
@@ -92,76 +92,76 @@ function Ve() {
92
92
  function n(r) {
93
93
  return "" + r;
94
94
  }
95
- function t(r) {
95
+ function l(r) {
96
96
  try {
97
97
  n(r);
98
- var a = !1;
98
+ var o = !1;
99
99
  } catch {
100
- a = !0;
100
+ o = !0;
101
101
  }
102
- if (a) {
103
- a = console;
104
- var i = a.error, u = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
105
- return i.call(
106
- a,
102
+ if (o) {
103
+ o = console;
104
+ var u = o.error, d = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
105
+ return u.call(
106
+ o,
107
107
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
108
- u
108
+ d
109
109
  ), n(r);
110
110
  }
111
111
  }
112
- function l(r) {
113
- if (r === _) return "<>";
114
- if (typeof r == "object" && r !== null && r.$$typeof === M)
112
+ function a(r) {
113
+ if (r === C) return "<>";
114
+ if (typeof r == "object" && r !== null && r.$$typeof === B)
115
115
  return "<...>";
116
116
  try {
117
- var a = s(r);
118
- return a ? "<" + a + ">" : "<...>";
117
+ var o = s(r);
118
+ return o ? "<" + o + ">" : "<...>";
119
119
  } catch {
120
120
  return "<...>";
121
121
  }
122
122
  }
123
123
  function c() {
124
- var r = C.A;
124
+ var r = _.A;
125
125
  return r === null ? null : r.getOwner();
126
126
  }
127
- function o() {
127
+ function i() {
128
128
  return Error("react-stack-top-frame");
129
129
  }
130
- function d(r) {
131
- if (z.call(r, "key")) {
132
- var a = Object.getOwnPropertyDescriptor(r, "key").get;
133
- if (a && a.isReactWarning) return !1;
130
+ function t(r) {
131
+ if (D.call(r, "key")) {
132
+ var o = Object.getOwnPropertyDescriptor(r, "key").get;
133
+ if (o && o.isReactWarning) return !1;
134
134
  }
135
135
  return r.key !== void 0;
136
136
  }
137
- function x(r, a) {
138
- function i() {
139
- Y || (Y = !0, console.error(
137
+ function h(r, o) {
138
+ function u() {
139
+ M || (M = !0, console.error(
140
140
  "%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)",
141
- a
141
+ o
142
142
  ));
143
143
  }
144
- i.isReactWarning = !0, Object.defineProperty(r, "key", {
145
- get: i,
144
+ u.isReactWarning = !0, Object.defineProperty(r, "key", {
145
+ get: u,
146
146
  configurable: !0
147
147
  });
148
148
  }
149
- function p() {
149
+ function V() {
150
150
  var r = s(this.type);
151
- return F[r] || (F[r] = !0, console.error(
151
+ return z[r] || (z[r] = !0, console.error(
152
152
  "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."
153
153
  )), r = this.props.ref, r !== void 0 ? r : null;
154
154
  }
155
- function V(r, a, i, u, b, g, A, O) {
156
- return i = g.ref, r = {
157
- $$typeof: w,
155
+ function w(r, o, u, d, p, b, O, P) {
156
+ return u = b.ref, r = {
157
+ $$typeof: j,
158
158
  type: r,
159
- key: a,
160
- props: g,
161
- _owner: b
162
- }, (i !== void 0 ? i : null) !== null ? Object.defineProperty(r, "ref", {
159
+ key: o,
160
+ props: b,
161
+ _owner: p
162
+ }, (u !== void 0 ? u : null) !== null ? Object.defineProperty(r, "ref", {
163
163
  enumerable: !1,
164
- get: p
164
+ get: V
165
165
  }) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
166
166
  configurable: !1,
167
167
  enumerable: !1,
@@ -176,68 +176,68 @@ function Ve() {
176
176
  configurable: !1,
177
177
  enumerable: !1,
178
178
  writable: !0,
179
- value: A
179
+ value: O
180
180
  }), Object.defineProperty(r, "_debugTask", {
181
181
  configurable: !1,
182
182
  enumerable: !1,
183
183
  writable: !0,
184
- value: O
184
+ value: P
185
185
  }), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
186
186
  }
187
- function h(r, a, i, u, b, g, A, O) {
188
- var m = a.children;
187
+ function x(r, o, u, d, p, b, O, P) {
188
+ var m = o.children;
189
189
  if (m !== void 0)
190
- if (u)
191
- if (me(m)) {
192
- for (u = 0; u < m.length; u++)
193
- f(m[u]);
190
+ if (d)
191
+ if (de(m)) {
192
+ for (d = 0; d < m.length; d++)
193
+ g(m[d]);
194
194
  Object.freeze && Object.freeze(m);
195
195
  } else
196
196
  console.error(
197
197
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
198
198
  );
199
- else f(m);
200
- if (z.call(a, "key")) {
199
+ else g(m);
200
+ if (D.call(o, "key")) {
201
201
  m = s(r);
202
- var j = Object.keys(a).filter(function(de) {
203
- return de !== "key";
202
+ var y = Object.keys(o).filter(function(me) {
203
+ return me !== "key";
204
204
  });
205
- u = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", $[m + u] || (j = 0 < j.length ? "{" + j.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ d = 0 < y.length ? "{key: someKey, " + y.join(": ..., ") + ": ...}" : "{key: someKey}", I[m + d] || (y = 0 < y.length ? "{" + y.join(": ..., ") + ": ...}" : "{}", console.error(
206
206
  `A props object containing a "key" prop is being spread into JSX:
207
207
  let props = %s;
208
208
  <%s {...props} />
209
209
  React keys must be passed directly to JSX without using spread:
210
210
  let props = %s;
211
211
  <%s key={someKey} {...props} />`,
212
- u,
212
+ d,
213
213
  m,
214
- j,
214
+ y,
215
215
  m
216
- ), $[m + u] = !0);
216
+ ), I[m + d] = !0);
217
217
  }
218
- if (m = null, i !== void 0 && (t(i), m = "" + i), d(a) && (t(a.key), m = "" + a.key), "key" in a) {
219
- i = {};
220
- for (var P in a)
221
- P !== "key" && (i[P] = a[P]);
222
- } else i = a;
223
- return m && x(
224
- i,
218
+ if (m = null, u !== void 0 && (l(u), m = "" + u), t(o) && (l(o.key), m = "" + o.key), "key" in o) {
219
+ u = {};
220
+ for (var L in o)
221
+ L !== "key" && (u[L] = o[L]);
222
+ } else u = o;
223
+ return m && h(
224
+ u,
225
225
  typeof r == "function" ? r.displayName || r.name || "Unknown" : r
226
- ), V(
226
+ ), w(
227
227
  r,
228
228
  m,
229
- g,
230
229
  b,
230
+ p,
231
231
  c(),
232
- i,
233
- A,
234
- O
232
+ u,
233
+ O,
234
+ P
235
235
  );
236
236
  }
237
- function f(r) {
238
- typeof r == "object" && r !== null && r.$$typeof === w && r._store && (r._store.validated = 1);
237
+ function g(r) {
238
+ typeof r == "object" && r !== null && r.$$typeof === j && r._store && (r._store.validated = 1);
239
239
  }
240
- var v = D, w = 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"), oe = Symbol.for("react.context"), le = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), ue = Symbol.for("react.client.reference"), C = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = Object.prototype.hasOwnProperty, me = Array.isArray, S = console.createTask ? console.createTask : function() {
240
+ var v = $, j = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), re = Symbol.for("react.strict_mode"), ae = Symbol.for("react.profiler"), se = Symbol.for("react.consumer"), oe = Symbol.for("react.context"), ne = Symbol.for("react.forward_ref"), le = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), ue = Symbol.for("react.client.reference"), _ = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, de = Array.isArray, A = console.createTask ? console.createTask : function() {
241
241
  return null;
242
242
  };
243
243
  v = {
@@ -245,67 +245,75 @@ React keys must be passed directly to JSX without using spread:
245
245
  return r();
246
246
  }
247
247
  };
248
- var Y, F = {}, B = v["react-stack-bottom-frame"].bind(
248
+ var M, z = {}, Y = v["react-stack-bottom-frame"].bind(
249
249
  v,
250
- o
251
- )(), I = S(l(o)), $ = {};
252
- k.Fragment = _, k.jsx = function(r, a, i, u, b) {
253
- var g = 1e4 > C.recentlyCreatedOwnerStacks++;
254
- return h(
250
+ i
251
+ )(), F = A(a(i)), I = {};
252
+ T.Fragment = C, T.jsx = function(r, o, u, d, p) {
253
+ var b = 1e4 > _.recentlyCreatedOwnerStacks++;
254
+ return x(
255
255
  r,
256
- a,
257
- i,
258
- !1,
256
+ o,
259
257
  u,
260
- b,
261
- g ? Error("react-stack-top-frame") : B,
262
- g ? S(l(r)) : I
258
+ !1,
259
+ d,
260
+ p,
261
+ b ? Error("react-stack-top-frame") : Y,
262
+ b ? A(a(r)) : F
263
263
  );
264
- }, k.jsxs = function(r, a, i, u, b) {
265
- var g = 1e4 > C.recentlyCreatedOwnerStacks++;
266
- return h(
264
+ }, T.jsxs = function(r, o, u, d, p) {
265
+ var b = 1e4 > _.recentlyCreatedOwnerStacks++;
266
+ return x(
267
267
  r,
268
- a,
269
- i,
270
- !0,
268
+ o,
271
269
  u,
272
- b,
273
- g ? Error("react-stack-top-frame") : B,
274
- g ? S(l(r)) : I
270
+ !0,
271
+ d,
272
+ p,
273
+ b ? Error("react-stack-top-frame") : Y,
274
+ b ? A(a(r)) : F
275
275
  );
276
276
  };
277
- }()), k;
277
+ }()), T;
278
278
  }
279
279
  var G;
280
280
  function we() {
281
- return G || (G = 1, process.env.NODE_ENV === "production" ? T.exports = pe() : T.exports = Ve()), T.exports;
281
+ return G || (G = 1, process.env.NODE_ENV === "production" ? E.exports = pe() : E.exports = Ve()), E.exports;
282
282
  }
283
283
  var e = we();
284
- function E(...s) {
284
+ const je = {
285
+ bg: "bg-indigo-600",
286
+ activeBg: "bg-indigo-700",
287
+ text: "text-indigo-200",
288
+ activeText: "text-white",
289
+ hoverBg: "hover:bg-indigo-700",
290
+ hoverText: "hover:text-white"
291
+ };
292
+ function f(...s) {
285
293
  return s.filter(Boolean).join(" ");
286
294
  }
287
- function De({ company: s, profile: n, navigation: t }) {
288
- const [l, c] = N(!1);
295
+ function Be({ company: s, profile: n, navigation: l, colorScheme: a = je }) {
296
+ const [c, i] = N(!1);
289
297
  return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
290
- /* @__PURE__ */ e.jsxs(ve, { open: l, onClose: c, className: "relative z-50 lg:hidden", children: [
298
+ /* @__PURE__ */ e.jsxs(ve, { open: c, onClose: i, className: "relative z-50 lg:hidden", children: [
291
299
  /* @__PURE__ */ e.jsx(
292
- he,
300
+ xe,
293
301
  {
294
302
  transition: !0,
295
303
  className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
296
304
  }
297
305
  ),
298
306
  /* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
299
- xe,
307
+ he,
300
308
  {
301
309
  transition: !0,
302
310
  className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
303
311
  children: [
304
- /* @__PURE__ */ e.jsx(fe, { 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: () => c(!1), className: "-m-2.5 p-2.5", children: [
312
+ /* @__PURE__ */ e.jsx(fe, { 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: () => i(!1), className: "-m-2.5 p-2.5", children: [
305
313
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
306
314
  /* @__PURE__ */ e.jsx(ge, { "aria-hidden": "true", className: "size-6 text-white" })
307
315
  ] }) }) }),
308
- /* @__PURE__ */ e.jsxs("div", { className: "flex grow flex-col gap-y-5 overflow-y-auto bg-indigo-600 px-6 pb-2", children: [
316
+ /* @__PURE__ */ e.jsxs("div", { className: f("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
309
317
  /* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
310
318
  "img",
311
319
  {
@@ -314,35 +322,35 @@ function De({ company: s, profile: n, navigation: t }) {
314
322
  className: "h-8 w-auto"
315
323
  }
316
324
  ) }),
317
- /* @__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((o) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
325
+ /* @__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: l.map((t) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
318
326
  "a",
319
327
  {
320
- href: o.href,
321
- className: E(
322
- o.current ? "bg-indigo-700 text-white" : "text-indigo-200 hover:bg-indigo-700 hover:text-white",
328
+ href: t.href,
329
+ className: f(
330
+ t.current ? `${a.activeBg} ${a.activeText}` : `${a.text} ${a.hoverBg} ${a.hoverText}`,
323
331
  "group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
324
332
  ),
325
333
  children: [
326
334
  /* @__PURE__ */ e.jsx(
327
- o.icon,
335
+ t.icon,
328
336
  {
329
337
  "aria-hidden": "true",
330
- className: E(
331
- o.current ? "text-white" : "text-indigo-200 group-hover:text-white",
338
+ className: f(
339
+ t.current ? a.activeText : `${a.text} group-${a.hoverText}`,
332
340
  "size-6 shrink-0"
333
341
  )
334
342
  }
335
343
  ),
336
- o.name
344
+ t.name
337
345
  ]
338
346
  }
339
- ) }, o.name)) }) }) }) })
347
+ ) }, t.name)) }) }) }) })
340
348
  ] })
341
349
  ]
342
350
  }
343
351
  ) })
344
352
  ] }),
345
- /* @__PURE__ */ e.jsx("div", { className: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col", children: /* @__PURE__ */ e.jsxs("div", { className: "flex grow flex-col gap-y-5 overflow-y-auto bg-indigo-600 px-6", children: [
353
+ /* @__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", a.bg), children: [
346
354
  /* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
347
355
  "img",
348
356
  {
@@ -352,41 +360,45 @@ function De({ company: s, profile: n, navigation: t }) {
352
360
  }
353
361
  ) }),
354
362
  /* @__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: [
355
- /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((o) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
363
+ /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: l.map((t) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
356
364
  "a",
357
365
  {
358
- href: o.href,
359
- className: E(
360
- o.current ? "bg-indigo-700 text-white" : "text-indigo-200 hover:bg-indigo-700 hover:text-white",
366
+ href: t.href,
367
+ className: f(
368
+ t.current ? `${a.activeBg} ${a.activeText}` : `${a.text} ${a.hoverBg} ${a.hoverText}`,
361
369
  "group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
362
370
  ),
363
371
  children: [
364
372
  /* @__PURE__ */ e.jsx(
365
- o.icon,
373
+ t.icon,
366
374
  {
367
375
  "aria-hidden": "true",
368
- className: E(
369
- o.current ? "text-white" : "text-indigo-200 group-hover:text-white",
376
+ className: f(
377
+ t.current ? a.activeText : `${a.text} group-${a.hoverText}`,
370
378
  "size-6 shrink-0"
371
379
  )
372
380
  }
373
381
  ),
374
- o.name
382
+ t.name
375
383
  ]
376
384
  }
377
- ) }, o.name)) }) }),
385
+ ) }, t.name)) }) }),
378
386
  /* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
379
387
  "a",
380
388
  {
381
389
  href: "#",
382
- className: "flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold text-white hover:bg-indigo-700",
390
+ className: f(
391
+ "flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
392
+ a.activeText,
393
+ a.hoverBg
394
+ ),
383
395
  children: [
384
396
  /* @__PURE__ */ e.jsx(
385
397
  "img",
386
398
  {
387
399
  alt: n.name,
388
400
  src: n.image,
389
- className: "size-8 rounded-full bg-indigo-700"
401
+ className: f("size-8 rounded-full", a.activeBg)
390
402
  }
391
403
  ),
392
404
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
@@ -396,12 +408,12 @@ function De({ company: s, profile: n, navigation: t }) {
396
408
  ) })
397
409
  ] }) })
398
410
  ] }) }),
399
- /* @__PURE__ */ e.jsxs("div", { className: "sticky top-0 z-40 flex items-center gap-x-6 bg-indigo-600 px-4 py-4 shadow-xs sm:px-6 lg:hidden", children: [
400
- /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => c(!0), className: "-m-2.5 p-2.5 text-indigo-200 lg:hidden", children: [
411
+ /* @__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", a.bg), children: [
412
+ /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => i(!0), className: f("-m-2.5 p-2.5 lg:hidden", a.text), children: [
401
413
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
402
414
  /* @__PURE__ */ e.jsx(be, { "aria-hidden": "true", className: "size-6" })
403
415
  ] }),
404
- /* @__PURE__ */ e.jsx("div", { className: "flex-1 text-sm/6 font-semibold text-white", children: "Dashboard" }),
416
+ /* @__PURE__ */ e.jsx("div", { className: f("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
405
417
  /* @__PURE__ */ e.jsxs("a", { href: "#", children: [
406
418
  /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
407
419
  /* @__PURE__ */ e.jsx(
@@ -409,15 +421,15 @@ function De({ company: s, profile: n, navigation: t }) {
409
421
  {
410
422
  alt: n.name,
411
423
  src: n.image,
412
- className: "size-8 rounded-full bg-indigo-700"
424
+ className: f("size-8 rounded-full", a.activeBg)
413
425
  }
414
426
  )
415
427
  ] })
416
428
  ] })
417
429
  ] }) });
418
430
  }
419
- const Z = (s) => s.replace("--color-", "bg-"), je = ({ name: s, cssVar: n, value: t }) => {
420
- const l = `rgb(${t})`;
431
+ const Z = (s) => s.replace("--color-", "bg-"), ye = ({ name: s, cssVar: n, value: l }) => {
432
+ const a = `rgb(${l})`;
421
433
  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: [
422
434
  /* @__PURE__ */ e.jsx(
423
435
  "div",
@@ -428,13 +440,13 @@ const Z = (s) => s.replace("--color-", "bg-"), je = ({ name: s, cssVar: n, value
428
440
  /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
429
441
  /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: s }),
430
442
  /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: n }),
431
- /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: l })
443
+ /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: a })
432
444
  ] })
433
445
  ] });
434
446
  }, J = ({ title: s, colors: n }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
435
447
  /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: s }),
436
- /* @__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: n.map((t) => /* @__PURE__ */ e.jsx(je, { ...t }, t.name)) })
437
- ] }), ye = () => {
448
+ /* @__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: n.map((l) => /* @__PURE__ */ e.jsx(ye, { ...l }, l.name)) })
449
+ ] }), ke = () => {
438
450
  const s = [
439
451
  {
440
452
  title: "Success Colors (Green)",
@@ -635,7 +647,7 @@ const Z = (s) => s.replace("--color-", "bg-"), je = ({ name: s, cssVar: n, value
635
647
  { name: "900", cssVar: "--color-beaver-900", value: "235 229 224" }
636
648
  ]
637
649
  }
638
- ], t = [
650
+ ], l = [
639
651
  { name: "Background", cssVar: "--color-background" },
640
652
  { name: "Surface", cssVar: "--color-surface" },
641
653
  { name: "Surface Variant", cssVar: "--color-surface-variant" },
@@ -650,68 +662,68 @@ const Z = (s) => s.replace("--color-", "bg-"), je = ({ name: s, cssVar: n, value
650
662
  /* @__PURE__ */ e.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
651
663
  /* @__PURE__ */ e.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
652
664
  ] }),
653
- n.map((l) => /* @__PURE__ */ e.jsx(J, { ...l }, l.title)),
654
- s.map((l) => /* @__PURE__ */ e.jsx(J, { ...l }, l.title)),
665
+ n.map((a) => /* @__PURE__ */ e.jsx(J, { ...a }, a.title)),
666
+ s.map((a) => /* @__PURE__ */ e.jsx(J, { ...a }, a.title)),
655
667
  /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
656
668
  /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: "Semantic Colors (Theme-aware)" }),
657
- /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: t.map((l) => /* @__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: [
669
+ /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: l.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: [
658
670
  /* @__PURE__ */ e.jsx(
659
671
  "div",
660
672
  {
661
- className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Z(l.cssVar)}`
673
+ className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Z(a.cssVar)}`
662
674
  }
663
675
  ),
664
676
  /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
665
- /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: l.name }),
666
- /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: l.cssVar })
677
+ /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: a.name }),
678
+ /* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: a.cssVar })
667
679
  ] })
668
- ] }, l.name)) })
680
+ ] }, a.name)) })
669
681
  ] }),
670
682
  /* @__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" }) })
671
683
  ] });
672
- }, K = X(void 0), ke = ({
684
+ }, K = X(void 0), Te = ({
673
685
  children: s,
674
686
  defaultTheme: n = "system",
675
- storageKey: t = "acemyjob-ui-theme"
687
+ storageKey: l = "acemyjob-ui-theme"
676
688
  }) => {
677
- const [l, c] = N(n), [o, d] = N("light"), [x, p] = N(!1);
678
- L(() => {
679
- const h = localStorage.getItem(t);
680
- h && c(h), p(!0);
681
- }, [t]), L(() => {
682
- if (!x) return;
683
- const h = window.document.documentElement, f = () => {
689
+ const [a, c] = N(n), [i, t] = N("light"), [h, V] = N(!1);
690
+ S(() => {
691
+ const x = localStorage.getItem(l);
692
+ x && c(x), V(!0);
693
+ }, [l]), S(() => {
694
+ if (!h) return;
695
+ const x = window.document.documentElement, g = () => {
684
696
  let v;
685
- l === "system" ? v = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : v = l, d(v), h.classList.remove("light", "dark"), h.classList.add(v);
697
+ a === "system" ? v = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : v = a, t(v), x.classList.remove("light", "dark"), x.classList.add(v);
686
698
  };
687
- if (f(), l === "system") {
688
- const v = window.matchMedia("(prefers-color-scheme: dark)"), w = () => f();
689
- return v.addEventListener("change", w), () => v.removeEventListener("change", w);
699
+ if (g(), a === "system") {
700
+ const v = window.matchMedia("(prefers-color-scheme: dark)"), j = () => g();
701
+ return v.addEventListener("change", j), () => v.removeEventListener("change", j);
690
702
  }
691
- }, [l, x]);
692
- const V = {
693
- theme: l,
694
- setTheme: (h) => {
695
- localStorage.setItem(t, h), c(h);
703
+ }, [a, h]);
704
+ const w = {
705
+ theme: a,
706
+ setTheme: (x) => {
707
+ localStorage.setItem(l, x), c(x);
696
708
  },
697
- resolvedTheme: o
709
+ resolvedTheme: i
698
710
  };
699
- return /* @__PURE__ */ e.jsx(K.Provider, { value: V, children: s });
700
- }, Me = () => {
711
+ return /* @__PURE__ */ e.jsx(K.Provider, { value: w, children: s });
712
+ }, De = () => {
701
713
  const s = Q(K);
702
714
  if (s === void 0)
703
715
  throw new Error("useTheme must be used within a ThemeProvider");
704
716
  return s;
705
- }, Ne = X(void 0), Te = () => {
717
+ }, Ne = X(void 0), Ee = () => {
706
718
  const s = Q(Ne);
707
719
  if (s === void 0)
708
720
  throw new Error("useTheme must be used within a ThemeProvider");
709
721
  return s;
710
- }, Ee = () => {
711
- const { theme: s, setTheme: n } = Te(), [t, l] = N(!1);
712
- if (L(() => {
713
- l(!0);
714
- }, []), !t)
722
+ }, Re = () => {
723
+ const { theme: s, setTheme: n } = Ee(), [l, a] = N(!1);
724
+ if (S(() => {
725
+ a(!0);
726
+ }, []), !l)
715
727
  return /* @__PURE__ */ e.jsxs(
716
728
  "button",
717
729
  {
@@ -725,7 +737,7 @@ const Z = (s) => s.replace("--color-", "bg-"), je = ({ name: s, cssVar: n, value
725
737
  );
726
738
  const c = () => {
727
739
  n(s === "light" ? "dark" : s === "dark" ? "system" : "light");
728
- }, o = () => {
740
+ }, i = () => {
729
741
  switch (s) {
730
742
  case "light":
731
743
  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" }) });
@@ -734,7 +746,7 @@ const Z = (s) => s.replace("--color-", "bg-"), je = ({ name: s, cssVar: n, value
734
746
  case "system":
735
747
  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" }) });
736
748
  }
737
- }, d = () => {
749
+ }, t = () => {
738
750
  switch (s) {
739
751
  case "light":
740
752
  return "Light";
@@ -749,17 +761,17 @@ const Z = (s) => s.replace("--color-", "bg-"), je = ({ name: s, cssVar: n, value
749
761
  {
750
762
  onClick: c,
751
763
  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",
752
- "aria-label": `Current theme: ${d()}. Click to cycle themes.`,
764
+ "aria-label": `Current theme: ${t()}. Click to cycle themes.`,
753
765
  children: [
754
- o(),
755
- /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: d() })
766
+ i(),
767
+ /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: t() })
756
768
  ]
757
769
  }
758
770
  );
759
- }, Re = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
760
- /* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Ee, {}) }),
761
- /* @__PURE__ */ e.jsx(ye, {})
762
- ] }), ze = () => /* @__PURE__ */ e.jsx(ke, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(Re, {}) }), H = {
771
+ }, Ce = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
772
+ /* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Re, {}) }),
773
+ /* @__PURE__ */ e.jsx(ke, {})
774
+ ] }), Me = () => /* @__PURE__ */ e.jsx(Te, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(Ce, {}) }), H = {
763
775
  variant: {
764
776
  default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
765
777
  destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
@@ -777,33 +789,33 @@ const Z = (s) => s.replace("--color-", "bg-"), je = ({ name: s, cssVar: n, value
777
789
  xl: "h-12 rounded-md px-10 text-base",
778
790
  icon: "h-10 w-10"
779
791
  }
780
- }, _e = "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", Ce = (...s) => s.filter(Boolean).join(" "), ee = D.forwardRef(
792
+ }, _e = "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", Ae = (...s) => s.filter(Boolean).join(" "), ee = $.forwardRef(
781
793
  ({
782
794
  className: s,
783
795
  variant: n = "default",
784
- size: t = "default",
785
- fullWidth: l = !1,
796
+ size: l = "default",
797
+ fullWidth: a = !1,
786
798
  loading: c = !1,
787
- leftIcon: o,
788
- rightIcon: d,
789
- children: x,
790
- disabled: p,
791
- ...V
792
- }, h) => {
793
- const f = p || c, v = Ce(
799
+ leftIcon: i,
800
+ rightIcon: t,
801
+ children: h,
802
+ disabled: V,
803
+ ...w
804
+ }, x) => {
805
+ const g = V || c, v = Ae(
794
806
  _e,
795
807
  H.variant[n],
796
- H.size[t],
797
- l ? "w-full" : "",
808
+ H.size[l],
809
+ a ? "w-full" : "",
798
810
  s
799
811
  );
800
812
  return /* @__PURE__ */ e.jsxs(
801
813
  "button",
802
814
  {
803
815
  className: v,
804
- ref: h,
805
- disabled: f,
806
- ...V,
816
+ ref: x,
817
+ disabled: g,
818
+ ...w,
807
819
  children: [
808
820
  c && /* @__PURE__ */ e.jsxs(
809
821
  "svg",
@@ -835,9 +847,9 @@ const Z = (s) => s.replace("--color-", "bg-"), je = ({ name: s, cssVar: n, value
835
847
  ]
836
848
  }
837
849
  ),
838
- !c && o && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: o }),
839
- x,
840
- !c && d && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: d })
850
+ !c && i && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: i }),
851
+ h,
852
+ !c && t && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: t })
841
853
  ]
842
854
  }
843
855
  );
@@ -853,55 +865,55 @@ const q = {
853
865
  right: "flex-row-reverse",
854
866
  only: "justify-center"
855
867
  }
856
- }, Se = (...s) => s.filter(Boolean).join(" "), Ae = D.forwardRef(
868
+ }, Oe = (...s) => s.filter(Boolean).join(" "), Pe = $.forwardRef(
857
869
  ({
858
870
  className: s,
859
871
  provider: n,
860
- iconPosition: t = "left",
861
- icon: l,
872
+ iconPosition: l = "left",
873
+ icon: a,
862
874
  showText: c = !0,
863
- children: o,
864
- size: d = "default",
865
- fullWidth: x = !0,
866
- ...p
867
- }, V) => {
868
- const f = l || {
875
+ children: i,
876
+ size: t = "default",
877
+ fullWidth: h = !0,
878
+ ...V
879
+ }, w) => {
880
+ const g = a || {
869
881
  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" }) })
870
- }[n], w = o || (c ? {
882
+ }[n], j = i || (c ? {
871
883
  linkedin: "Continue with LinkedIn"
872
- }[n] : ""), R = Se(
884
+ }[n] : ""), R = Oe(
873
885
  "relative overflow-hidden transition-all duration-200",
874
886
  q.provider[n],
875
- q.iconPosition[t],
887
+ q.iconPosition[l],
876
888
  s
877
889
  );
878
890
  return /* @__PURE__ */ e.jsxs(
879
891
  ee,
880
892
  {
881
- ref: V,
893
+ ref: w,
882
894
  variant: "none",
883
895
  className: R,
884
- size: d,
885
- fullWidth: x,
886
- leftIcon: t === "left" ? f : void 0,
887
- rightIcon: t === "right" ? f : void 0,
888
- ...p,
896
+ size: t,
897
+ fullWidth: h,
898
+ leftIcon: l === "left" ? g : void 0,
899
+ rightIcon: l === "right" ? g : void 0,
900
+ ...V,
889
901
  children: [
890
- t === "only" && f,
891
- t !== "only" && w
902
+ l === "only" && g,
903
+ l !== "only" && j
892
904
  ]
893
905
  }
894
906
  );
895
907
  }
896
908
  );
897
- Ae.displayName = "SocialButton";
909
+ Pe.displayName = "SocialButton";
898
910
  export {
899
911
  ee as Button,
900
- ye as ColorPalette,
901
- ze as Demo,
902
- De as Sidebar,
903
- Ae as SocialButton,
904
- ke as ThemeProvider,
905
- Ee as ThemeToggle,
906
- Me as useTheme
912
+ ke as ColorPalette,
913
+ Me as Demo,
914
+ Be as Sidebar,
915
+ Pe as SocialButton,
916
+ Te as ThemeProvider,
917
+ Re as ThemeToggle,
918
+ De as useTheme
907
919
  };