acemyjob-ui 0.2.0 → 0.2.1

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 ie, { useState as y, createContext as G, useEffect as O, useContext as J } from "react";
2
- import { Dialog as ue, DialogBackdrop as me, DialogPanel as de, TransitionChild as ve } from "@headlessui/react";
3
- import { XMarkIcon as he, Bars3Icon as xe } from "@heroicons/react/24/outline";
4
- var k = { exports: {} }, w = {};
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";
3
+ import { XMarkIcon as ge, Bars3Icon as be } from "@heroicons/react/24/outline";
4
+ var T = { exports: {} }, y = {};
5
5
  /**
6
6
  * @license React
7
7
  * react-jsx-runtime.production.js
@@ -11,29 +11,29 @@ var k = { exports: {} }, w = {};
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
13
  */
14
- var I;
15
- function fe() {
16
- if (I) return w;
17
- I = 1;
14
+ var U;
15
+ function pe() {
16
+ if (U) return y;
17
+ U = 1;
18
18
  var s = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
19
- function t(o, i, l) {
20
- var h = null;
21
- if (l !== void 0 && (h = "" + l), i.key !== void 0 && (h = "" + i.key), "key" in i) {
22
- l = {};
23
- for (var f in i)
24
- f !== "key" && (l[f] = i[f]);
25
- } else l = i;
26
- return i = l.ref, {
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, {
27
27
  $$typeof: s,
28
- type: o,
29
- key: h,
30
- ref: i !== void 0 ? i : null,
31
- props: l
28
+ type: l,
29
+ key: d,
30
+ ref: c !== void 0 ? c : null,
31
+ props: o
32
32
  };
33
33
  }
34
- return w.Fragment = n, w.jsx = t, w.jsxs = t, w;
34
+ return y.Fragment = n, y.jsx = t, y.jsxs = t, y;
35
35
  }
36
- var j = {};
36
+ var k = {};
37
37
  /**
38
38
  * @license React
39
39
  * react-jsx-runtime.development.js
@@ -43,166 +43,166 @@ var j = {};
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
45
  */
46
- var U;
47
- function ge() {
48
- return U || (U = 1, process.env.NODE_ENV !== "production" && function() {
49
- function s(e) {
50
- if (e == null) return null;
51
- if (typeof e == "function")
52
- return e.$$typeof === ne ? null : e.displayName || e.name || null;
53
- if (typeof e == "string") return e;
54
- switch (e) {
55
- case R:
46
+ var W;
47
+ function Ve() {
48
+ return W || (W = 1, process.env.NODE_ENV !== "production" && function() {
49
+ function s(r) {
50
+ if (r == null) return null;
51
+ if (typeof r == "function")
52
+ return r.$$typeof === ue ? null : r.displayName || r.name || null;
53
+ if (typeof r == "string") return r;
54
+ switch (r) {
55
+ case _:
56
56
  return "Fragment";
57
- case Z:
57
+ case se:
58
58
  return "Profiler";
59
- case Q:
59
+ case re:
60
60
  return "StrictMode";
61
- case ae:
61
+ case ne:
62
62
  return "Suspense";
63
- case se:
63
+ case te:
64
64
  return "SuspenseList";
65
- case le:
65
+ case ie:
66
66
  return "Activity";
67
67
  }
68
- if (typeof e == "object")
69
- switch (typeof e.tag == "number" && console.error(
68
+ if (typeof r == "object")
69
+ switch (typeof r.tag == "number" && console.error(
70
70
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
71
- ), e.$$typeof) {
72
- case H:
71
+ ), r.$$typeof) {
72
+ case R:
73
73
  return "Portal";
74
- case ee:
75
- return (e.displayName || "Context") + ".Provider";
76
- case K:
77
- return (e._context.displayName || "Context") + ".Consumer";
78
- case re:
79
- var a = e.render;
80
- return e = e.displayName, e || (e = a.displayName || a.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
81
74
  case oe:
82
- return a = e.displayName || null, a !== null ? a : s(e.type) || "Memo";
83
- case L:
84
- a = e._payload, e = e._init;
75
+ return (r.displayName || "Context") + ".Provider";
76
+ case ae:
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;
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;
85
85
  try {
86
- return s(e(a));
86
+ return s(r(a));
87
87
  } catch {
88
88
  }
89
89
  }
90
90
  return null;
91
91
  }
92
- function n(e) {
93
- return "" + e;
92
+ function n(r) {
93
+ return "" + r;
94
94
  }
95
- function t(e) {
95
+ function t(r) {
96
96
  try {
97
- n(e);
97
+ n(r);
98
98
  var a = !1;
99
99
  } catch {
100
100
  a = !0;
101
101
  }
102
102
  if (a) {
103
103
  a = console;
104
- var c = a.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
105
- return c.call(
104
+ var i = a.error, u = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
105
+ return i.call(
106
106
  a,
107
107
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
108
108
  u
109
- ), n(e);
109
+ ), n(r);
110
110
  }
111
111
  }
112
- function o(e) {
113
- if (e === R) return "<>";
114
- if (typeof e == "object" && e !== null && e.$$typeof === L)
112
+ function l(r) {
113
+ if (r === _) return "<>";
114
+ if (typeof r == "object" && r !== null && r.$$typeof === M)
115
115
  return "<...>";
116
116
  try {
117
- var a = s(e);
117
+ var a = s(r);
118
118
  return a ? "<" + a + ">" : "<...>";
119
119
  } catch {
120
120
  return "<...>";
121
121
  }
122
122
  }
123
- function i() {
124
- var e = _.A;
125
- return e === null ? null : e.getOwner();
123
+ function c() {
124
+ var r = C.A;
125
+ return r === null ? null : r.getOwner();
126
126
  }
127
- function l() {
127
+ function o() {
128
128
  return Error("react-stack-top-frame");
129
129
  }
130
- function h(e) {
131
- if (D.call(e, "key")) {
132
- var a = Object.getOwnPropertyDescriptor(e, "key").get;
130
+ function d(r) {
131
+ if (z.call(r, "key")) {
132
+ var a = Object.getOwnPropertyDescriptor(r, "key").get;
133
133
  if (a && a.isReactWarning) return !1;
134
134
  }
135
- return e.key !== void 0;
135
+ return r.key !== void 0;
136
136
  }
137
- function f(e, a) {
138
- function c() {
139
- M || (M = !0, console.error(
137
+ function x(r, a) {
138
+ function i() {
139
+ Y || (Y = !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
141
  a
142
142
  ));
143
143
  }
144
- c.isReactWarning = !0, Object.defineProperty(e, "key", {
145
- get: c,
144
+ i.isReactWarning = !0, Object.defineProperty(r, "key", {
145
+ get: i,
146
146
  configurable: !0
147
147
  });
148
148
  }
149
- function T() {
150
- var e = s(this.type);
151
- return Y[e] || (Y[e] = !0, console.error(
149
+ function p() {
150
+ var r = s(this.type);
151
+ return F[r] || (F[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
- )), e = this.props.ref, e !== void 0 ? e : null;
153
+ )), r = this.props.ref, r !== void 0 ? r : null;
154
154
  }
155
- function E(e, a, c, u, g, x, A, C) {
156
- return c = x.ref, e = {
157
- $$typeof: V,
158
- type: e,
155
+ function V(r, a, i, u, b, g, A, O) {
156
+ return i = g.ref, r = {
157
+ $$typeof: w,
158
+ type: r,
159
159
  key: a,
160
- props: x,
161
- _owner: g
162
- }, (c !== void 0 ? c : null) !== null ? Object.defineProperty(e, "ref", {
160
+ props: g,
161
+ _owner: b
162
+ }, (i !== void 0 ? i : null) !== null ? Object.defineProperty(r, "ref", {
163
163
  enumerable: !1,
164
- get: T
165
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
164
+ get: p
165
+ }) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
166
166
  configurable: !1,
167
167
  enumerable: !1,
168
168
  writable: !0,
169
169
  value: 0
170
- }), Object.defineProperty(e, "_debugInfo", {
170
+ }), Object.defineProperty(r, "_debugInfo", {
171
171
  configurable: !1,
172
172
  enumerable: !1,
173
173
  writable: !0,
174
174
  value: null
175
- }), Object.defineProperty(e, "_debugStack", {
175
+ }), Object.defineProperty(r, "_debugStack", {
176
176
  configurable: !1,
177
177
  enumerable: !1,
178
178
  writable: !0,
179
179
  value: A
180
- }), Object.defineProperty(e, "_debugTask", {
180
+ }), Object.defineProperty(r, "_debugTask", {
181
181
  configurable: !1,
182
182
  enumerable: !1,
183
183
  writable: !0,
184
- value: C
185
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
184
+ value: O
185
+ }), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
186
186
  }
187
- function v(e, a, c, u, g, x, A, C) {
187
+ function h(r, a, i, u, b, g, A, O) {
188
188
  var m = a.children;
189
189
  if (m !== void 0)
190
190
  if (u)
191
- if (ce(m)) {
191
+ if (me(m)) {
192
192
  for (u = 0; u < m.length; u++)
193
- p(m[u]);
193
+ f(m[u]);
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 p(m);
200
- if (D.call(a, "key")) {
201
- m = s(e);
202
- var b = Object.keys(a).filter(function(te) {
203
- return te !== "key";
199
+ else f(m);
200
+ if (z.call(a, "key")) {
201
+ m = s(r);
202
+ var j = Object.keys(a).filter(function(de) {
203
+ return de !== "key";
204
204
  });
205
- u = 0 < b.length ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}", z[m + u] || (b = 0 < b.length ? "{" + b.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ u = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", $[m + u] || (j = 0 < j.length ? "{" + j.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} />
@@ -211,102 +211,102 @@ React keys must be passed directly to JSX without using spread:
211
211
  <%s key={someKey} {...props} />`,
212
212
  u,
213
213
  m,
214
- b,
214
+ j,
215
215
  m
216
- ), z[m + u] = !0);
216
+ ), $[m + u] = !0);
217
217
  }
218
- if (m = null, c !== void 0 && (t(c), m = "" + c), h(a) && (t(a.key), m = "" + a.key), "key" in a) {
219
- c = {};
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
220
  for (var P in a)
221
- P !== "key" && (c[P] = a[P]);
222
- } else c = a;
223
- return m && f(
224
- c,
225
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
226
- ), E(
227
- e,
221
+ P !== "key" && (i[P] = a[P]);
222
+ } else i = a;
223
+ return m && x(
224
+ i,
225
+ typeof r == "function" ? r.displayName || r.name || "Unknown" : r
226
+ ), V(
227
+ r,
228
228
  m,
229
- x,
230
229
  g,
231
- i(),
232
- c,
230
+ b,
231
+ c(),
232
+ i,
233
233
  A,
234
- C
234
+ O
235
235
  );
236
236
  }
237
- function p(e) {
238
- typeof e == "object" && e !== null && e.$$typeof === V && e._store && (e._store.validated = 1);
237
+ function f(r) {
238
+ typeof r == "object" && r !== null && r.$$typeof === w && r._store && (r._store.validated = 1);
239
239
  }
240
- var d = ie, V = Symbol.for("react.transitional.element"), H = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), Q = Symbol.for("react.strict_mode"), Z = Symbol.for("react.profiler"), K = Symbol.for("react.consumer"), ee = Symbol.for("react.context"), re = Symbol.for("react.forward_ref"), ae = Symbol.for("react.suspense"), se = Symbol.for("react.suspense_list"), oe = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), ne = Symbol.for("react.client.reference"), _ = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, ce = Array.isArray, S = console.createTask ? console.createTask : function() {
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() {
241
241
  return null;
242
242
  };
243
- d = {
244
- "react-stack-bottom-frame": function(e) {
245
- return e();
243
+ v = {
244
+ "react-stack-bottom-frame": function(r) {
245
+ return r();
246
246
  }
247
247
  };
248
- var M, Y = {}, F = d["react-stack-bottom-frame"].bind(
249
- d,
250
- l
251
- )(), $ = S(o(l)), z = {};
252
- j.Fragment = R, j.jsx = function(e, a, c, u, g) {
253
- var x = 1e4 > _.recentlyCreatedOwnerStacks++;
254
- return v(
255
- e,
248
+ var Y, F = {}, B = v["react-stack-bottom-frame"].bind(
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(
255
+ r,
256
256
  a,
257
- c,
257
+ i,
258
258
  !1,
259
259
  u,
260
- g,
261
- x ? Error("react-stack-top-frame") : F,
262
- x ? S(o(e)) : $
260
+ b,
261
+ g ? Error("react-stack-top-frame") : B,
262
+ g ? S(l(r)) : I
263
263
  );
264
- }, j.jsxs = function(e, a, c, u, g) {
265
- var x = 1e4 > _.recentlyCreatedOwnerStacks++;
266
- return v(
267
- e,
264
+ }, k.jsxs = function(r, a, i, u, b) {
265
+ var g = 1e4 > C.recentlyCreatedOwnerStacks++;
266
+ return h(
267
+ r,
268
268
  a,
269
- c,
269
+ i,
270
270
  !0,
271
271
  u,
272
- g,
273
- x ? Error("react-stack-top-frame") : F,
274
- x ? S(o(e)) : $
272
+ b,
273
+ g ? Error("react-stack-top-frame") : B,
274
+ g ? S(l(r)) : I
275
275
  );
276
276
  };
277
- }()), j;
277
+ }()), k;
278
278
  }
279
- var W;
280
- function be() {
281
- return W || (W = 1, process.env.NODE_ENV === "production" ? k.exports = fe() : k.exports = ge()), k.exports;
279
+ var G;
280
+ function we() {
281
+ return G || (G = 1, process.env.NODE_ENV === "production" ? T.exports = pe() : T.exports = Ve()), T.exports;
282
282
  }
283
- var r = be();
284
- function N(...s) {
283
+ var e = we();
284
+ function E(...s) {
285
285
  return s.filter(Boolean).join(" ");
286
286
  }
287
- function _e({ company: s, profile: n, navigation: t }) {
288
- const [o, i] = y(!1);
289
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs("div", { children: [
290
- /* @__PURE__ */ r.jsxs(ue, { open: o, onClose: i, className: "relative z-50 lg:hidden", children: [
291
- /* @__PURE__ */ r.jsx(
292
- me,
287
+ function De({ company: s, profile: n, navigation: t }) {
288
+ const [l, c] = N(!1);
289
+ 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: [
291
+ /* @__PURE__ */ e.jsx(
292
+ he,
293
293
  {
294
294
  transition: !0,
295
295
  className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
296
296
  }
297
297
  ),
298
- /* @__PURE__ */ r.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ r.jsxs(
299
- de,
298
+ /* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
299
+ xe,
300
300
  {
301
301
  transition: !0,
302
302
  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
303
  children: [
304
- /* @__PURE__ */ r.jsx(ve, { children: /* @__PURE__ */ r.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__ */ r.jsxs("button", { type: "button", onClick: () => i(!1), className: "-m-2.5 p-2.5", children: [
305
- /* @__PURE__ */ r.jsx("span", { className: "sr-only", children: "Close sidebar" }),
306
- /* @__PURE__ */ r.jsx(he, { "aria-hidden": "true", className: "size-6 text-white" })
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: [
305
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
306
+ /* @__PURE__ */ e.jsx(ge, { "aria-hidden": "true", className: "size-6 text-white" })
307
307
  ] }) }) }),
308
- /* @__PURE__ */ r.jsxs("div", { className: "flex grow flex-col gap-y-5 overflow-y-auto bg-indigo-600 px-6 pb-2", children: [
309
- /* @__PURE__ */ r.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ r.jsx(
308
+ /* @__PURE__ */ e.jsxs("div", { className: "flex grow flex-col gap-y-5 overflow-y-auto bg-indigo-600 px-6 pb-2", children: [
309
+ /* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
310
310
  "img",
311
311
  {
312
312
  alt: s.name,
@@ -314,36 +314,36 @@ function _e({ company: s, profile: n, navigation: t }) {
314
314
  className: "h-8 w-auto"
315
315
  }
316
316
  ) }),
317
- /* @__PURE__ */ r.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ r.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((l) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
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(
318
318
  "a",
319
319
  {
320
- href: l.href,
321
- className: N(
322
- l.current ? "bg-indigo-700 text-white" : "text-indigo-200 hover:bg-indigo-700 hover:text-white",
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",
323
323
  "group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
324
324
  ),
325
325
  children: [
326
- /* @__PURE__ */ r.jsx(
327
- l.icon,
326
+ /* @__PURE__ */ e.jsx(
327
+ o.icon,
328
328
  {
329
329
  "aria-hidden": "true",
330
- className: N(
331
- l.current ? "text-white" : "text-indigo-200 group-hover:text-white",
330
+ className: E(
331
+ o.current ? "text-white" : "text-indigo-200 group-hover:text-white",
332
332
  "size-6 shrink-0"
333
333
  )
334
334
  }
335
335
  ),
336
- l.name
336
+ o.name
337
337
  ]
338
338
  }
339
- ) }, l.name)) }) }) }) })
339
+ ) }, o.name)) }) }) }) })
340
340
  ] })
341
341
  ]
342
342
  }
343
343
  ) })
344
344
  ] }),
345
- /* @__PURE__ */ r.jsx("div", { className: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col", children: /* @__PURE__ */ r.jsxs("div", { className: "flex grow flex-col gap-y-5 overflow-y-auto bg-indigo-600 px-6", children: [
346
- /* @__PURE__ */ r.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ r.jsx(
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: [
346
+ /* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
347
347
  "img",
348
348
  {
349
349
  alt: s.name,
@@ -351,37 +351,37 @@ function _e({ company: s, profile: n, navigation: t }) {
351
351
  className: "h-8 w-auto"
352
352
  }
353
353
  ) }),
354
- /* @__PURE__ */ r.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ r.jsxs("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: [
355
- /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((l) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
354
+ /* @__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(
356
356
  "a",
357
357
  {
358
- href: l.href,
359
- className: N(
360
- l.current ? "bg-indigo-700 text-white" : "text-indigo-200 hover:bg-indigo-700 hover:text-white",
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",
361
361
  "group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
362
362
  ),
363
363
  children: [
364
- /* @__PURE__ */ r.jsx(
365
- l.icon,
364
+ /* @__PURE__ */ e.jsx(
365
+ o.icon,
366
366
  {
367
367
  "aria-hidden": "true",
368
- className: N(
369
- l.current ? "text-white" : "text-indigo-200 group-hover:text-white",
368
+ className: E(
369
+ o.current ? "text-white" : "text-indigo-200 group-hover:text-white",
370
370
  "size-6 shrink-0"
371
371
  )
372
372
  }
373
373
  ),
374
- l.name
374
+ o.name
375
375
  ]
376
376
  }
377
- ) }, l.name)) }) }),
378
- /* @__PURE__ */ r.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ r.jsxs(
377
+ ) }, o.name)) }) }),
378
+ /* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
379
379
  "a",
380
380
  {
381
381
  href: "#",
382
382
  className: "flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold text-white hover:bg-indigo-700",
383
383
  children: [
384
- /* @__PURE__ */ r.jsx(
384
+ /* @__PURE__ */ e.jsx(
385
385
  "img",
386
386
  {
387
387
  alt: n.name,
@@ -389,22 +389,22 @@ function _e({ company: s, profile: n, navigation: t }) {
389
389
  className: "size-8 rounded-full bg-indigo-700"
390
390
  }
391
391
  ),
392
- /* @__PURE__ */ r.jsx("span", { className: "sr-only", children: "Your profile" }),
393
- /* @__PURE__ */ r.jsx("span", { "aria-hidden": "true", children: n.name })
392
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
393
+ /* @__PURE__ */ e.jsx("span", { "aria-hidden": "true", children: n.name })
394
394
  ]
395
395
  }
396
396
  ) })
397
397
  ] }) })
398
398
  ] }) }),
399
- /* @__PURE__ */ r.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__ */ r.jsxs("button", { type: "button", onClick: () => i(!0), className: "-m-2.5 p-2.5 text-indigo-200 lg:hidden", children: [
401
- /* @__PURE__ */ r.jsx("span", { className: "sr-only", children: "Open sidebar" }),
402
- /* @__PURE__ */ r.jsx(xe, { "aria-hidden": "true", className: "size-6" })
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: [
401
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
402
+ /* @__PURE__ */ e.jsx(be, { "aria-hidden": "true", className: "size-6" })
403
403
  ] }),
404
- /* @__PURE__ */ r.jsx("div", { className: "flex-1 text-sm/6 font-semibold text-white", children: "Dashboard" }),
405
- /* @__PURE__ */ r.jsxs("a", { href: "#", children: [
406
- /* @__PURE__ */ r.jsx("span", { className: "sr-only", children: "Your profile" }),
407
- /* @__PURE__ */ r.jsx(
404
+ /* @__PURE__ */ e.jsx("div", { className: "flex-1 text-sm/6 font-semibold text-white", children: "Dashboard" }),
405
+ /* @__PURE__ */ e.jsxs("a", { href: "#", children: [
406
+ /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
407
+ /* @__PURE__ */ e.jsx(
408
408
  "img",
409
409
  {
410
410
  alt: n.name,
@@ -416,25 +416,25 @@ function _e({ company: s, profile: n, navigation: t }) {
416
416
  ] })
417
417
  ] }) });
418
418
  }
419
- const q = (s) => s.replace("--color-", "bg-"), pe = ({ name: s, cssVar: n, value: t }) => {
420
- const o = `rgb(${t})`;
421
- return /* @__PURE__ */ r.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
- /* @__PURE__ */ r.jsx(
419
+ const Z = (s) => s.replace("--color-", "bg-"), je = ({ name: s, cssVar: n, value: t }) => {
420
+ const l = `rgb(${t})`;
421
+ 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
+ /* @__PURE__ */ e.jsx(
423
423
  "div",
424
424
  {
425
- className: `w-16 h-16 rounded-lg border border-border shadow-sm ${q(n)}`
425
+ className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Z(n)}`
426
426
  }
427
427
  ),
428
- /* @__PURE__ */ r.jsxs("div", { className: "text-center", children: [
429
- /* @__PURE__ */ r.jsx("div", { className: "text-sm font-medium text-text-primary", children: s }),
430
- /* @__PURE__ */ r.jsx("div", { className: "text-xs text-text-muted font-mono", children: n }),
431
- /* @__PURE__ */ r.jsx("div", { className: "text-xs text-text-secondary", children: o })
428
+ /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
429
+ /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: s }),
430
+ /* @__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 })
432
432
  ] })
433
433
  ] });
434
- }, B = ({ title: s, colors: n }) => /* @__PURE__ */ r.jsxs("div", { className: "space-y-4", children: [
435
- /* @__PURE__ */ r.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: s }),
436
- /* @__PURE__ */ r.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__ */ r.jsx(pe, { ...t }, t.name)) })
437
- ] }), Ve = () => {
434
+ }, J = ({ title: s, colors: n }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
435
+ /* @__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 = () => {
438
438
  const s = [
439
439
  {
440
440
  title: "Success Colors (Green)",
@@ -645,96 +645,96 @@ const q = (s) => s.replace("--color-", "bg-"), pe = ({ name: s, cssVar: n, value
645
645
  { name: "Border", cssVar: "--color-border" },
646
646
  { name: "Border Subtle", cssVar: "--color-border-subtle" }
647
647
  ];
648
- return /* @__PURE__ */ r.jsxs("div", { className: "p-8 space-y-8 bg-background min-h-screen", children: [
649
- /* @__PURE__ */ r.jsxs("div", { className: "text-center space-y-2", children: [
650
- /* @__PURE__ */ r.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
651
- /* @__PURE__ */ r.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
648
+ return /* @__PURE__ */ e.jsxs("div", { className: "p-8 space-y-8 bg-background min-h-screen", children: [
649
+ /* @__PURE__ */ e.jsxs("div", { className: "text-center space-y-2", children: [
650
+ /* @__PURE__ */ e.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
651
+ /* @__PURE__ */ e.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
652
652
  ] }),
653
- n.map((o) => /* @__PURE__ */ r.jsx(B, { ...o }, o.title)),
654
- s.map((o) => /* @__PURE__ */ r.jsx(B, { ...o }, o.title)),
655
- /* @__PURE__ */ r.jsxs("div", { className: "space-y-4", children: [
656
- /* @__PURE__ */ r.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: "Semantic Colors (Theme-aware)" }),
657
- /* @__PURE__ */ r.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: t.map((o) => /* @__PURE__ */ r.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
- /* @__PURE__ */ r.jsx(
653
+ n.map((l) => /* @__PURE__ */ e.jsx(J, { ...l }, l.title)),
654
+ s.map((l) => /* @__PURE__ */ e.jsx(J, { ...l }, l.title)),
655
+ /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
656
+ /* @__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: [
658
+ /* @__PURE__ */ e.jsx(
659
659
  "div",
660
660
  {
661
- className: `w-16 h-16 rounded-lg border border-border shadow-sm ${q(o.cssVar)}`
661
+ className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Z(l.cssVar)}`
662
662
  }
663
663
  ),
664
- /* @__PURE__ */ r.jsxs("div", { className: "text-center", children: [
665
- /* @__PURE__ */ r.jsx("div", { className: "text-sm font-medium text-text-primary", children: o.name }),
666
- /* @__PURE__ */ r.jsx("div", { className: "text-xs text-text-muted font-mono", children: o.cssVar })
664
+ /* @__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 })
667
667
  ] })
668
- ] }, o.name)) })
668
+ ] }, l.name)) })
669
669
  ] }),
670
- /* @__PURE__ */ r.jsx("div", { className: "text-center pt-8 border-t border-border-subtle", children: /* @__PURE__ */ r.jsx("p", { className: "text-text-muted text-sm", children: "Toggle between light and dark themes to see how semantic colors adapt" }) })
670
+ /* @__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
671
  ] });
672
- }, X = G(void 0), we = ({
672
+ }, K = X(void 0), ke = ({
673
673
  children: s,
674
674
  defaultTheme: n = "system",
675
675
  storageKey: t = "acemyjob-ui-theme"
676
676
  }) => {
677
- const [o, i] = y(n), [l, h] = y("light"), [f, T] = y(!1);
678
- O(() => {
679
- const v = localStorage.getItem(t);
680
- v && i(v), T(!0);
681
- }, [t]), O(() => {
682
- if (!f) return;
683
- const v = window.document.documentElement, p = () => {
684
- let d;
685
- o === "system" ? d = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d = o, h(d), v.classList.remove("light", "dark"), v.classList.add(d);
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 = () => {
684
+ 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);
686
686
  };
687
- if (p(), o === "system") {
688
- const d = window.matchMedia("(prefers-color-scheme: dark)"), V = () => p();
689
- return d.addEventListener("change", V), () => d.removeEventListener("change", V);
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);
690
690
  }
691
- }, [o, f]);
692
- const E = {
693
- theme: o,
694
- setTheme: (v) => {
695
- localStorage.setItem(t, v), i(v);
691
+ }, [l, x]);
692
+ const V = {
693
+ theme: l,
694
+ setTheme: (h) => {
695
+ localStorage.setItem(t, h), c(h);
696
696
  },
697
- resolvedTheme: l
697
+ resolvedTheme: o
698
698
  };
699
- return /* @__PURE__ */ r.jsx(X.Provider, { value: E, children: s });
700
- }, Se = () => {
701
- const s = J(X);
699
+ return /* @__PURE__ */ e.jsx(K.Provider, { value: V, children: s });
700
+ }, Me = () => {
701
+ const s = Q(K);
702
702
  if (s === void 0)
703
703
  throw new Error("useTheme must be used within a ThemeProvider");
704
704
  return s;
705
- }, je = G(void 0), ye = () => {
706
- const s = J(je);
705
+ }, Ne = X(void 0), Te = () => {
706
+ const s = Q(Ne);
707
707
  if (s === void 0)
708
708
  throw new Error("useTheme must be used within a ThemeProvider");
709
709
  return s;
710
- }, ke = () => {
711
- const { theme: s, setTheme: n } = ye(), [t, o] = y(!1);
712
- if (O(() => {
713
- o(!0);
710
+ }, Ee = () => {
711
+ const { theme: s, setTheme: n } = Te(), [t, l] = N(!1);
712
+ if (L(() => {
713
+ l(!0);
714
714
  }, []), !t)
715
- return /* @__PURE__ */ r.jsxs(
715
+ return /* @__PURE__ */ e.jsxs(
716
716
  "button",
717
717
  {
718
718
  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",
719
719
  "aria-label": "Loading theme toggle",
720
720
  children: [
721
- /* @__PURE__ */ r.jsx("div", { className: "w-4 h-4 animate-pulse bg-text-muted rounded" }),
722
- /* @__PURE__ */ r.jsx("span", { className: "hidden sm:inline", children: "Loading..." })
721
+ /* @__PURE__ */ e.jsx("div", { className: "w-4 h-4 animate-pulse bg-text-muted rounded" }),
722
+ /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: "Loading..." })
723
723
  ]
724
724
  }
725
725
  );
726
- const i = () => {
726
+ const c = () => {
727
727
  n(s === "light" ? "dark" : s === "dark" ? "system" : "light");
728
- }, l = () => {
728
+ }, o = () => {
729
729
  switch (s) {
730
730
  case "light":
731
- return /* @__PURE__ */ r.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ r.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" }) });
731
+ 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" }) });
732
732
  case "dark":
733
- return /* @__PURE__ */ r.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ r.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" }) });
733
+ 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: "M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" }) });
734
734
  case "system":
735
- return /* @__PURE__ */ r.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ r.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" }) });
735
+ 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
736
  }
737
- }, h = () => {
737
+ }, d = () => {
738
738
  switch (s) {
739
739
  case "light":
740
740
  return "Light";
@@ -744,27 +744,164 @@ const q = (s) => s.replace("--color-", "bg-"), pe = ({ name: s, cssVar: n, value
744
744
  return "System";
745
745
  }
746
746
  };
747
- return /* @__PURE__ */ r.jsxs(
747
+ return /* @__PURE__ */ e.jsxs(
748
748
  "button",
749
749
  {
750
- onClick: i,
750
+ onClick: c,
751
751
  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: ${h()}. Click to cycle themes.`,
752
+ "aria-label": `Current theme: ${d()}. Click to cycle themes.`,
753
753
  children: [
754
- l(),
755
- /* @__PURE__ */ r.jsx("span", { className: "hidden sm:inline", children: h() })
754
+ o(),
755
+ /* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: d() })
756
756
  ]
757
757
  }
758
758
  );
759
- }, Ne = () => /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
760
- /* @__PURE__ */ r.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ r.jsx(ke, {}) }),
761
- /* @__PURE__ */ r.jsx(Ve, {})
762
- ] }), Ae = () => /* @__PURE__ */ r.jsx(we, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ r.jsx(Ne, {}) });
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 = {
763
+ variant: {
764
+ default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
765
+ destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
766
+ outline: "border border-border bg-background hover:bg-surface-variant hover:text-text-primary focus-visible:ring-reseda-green-500",
767
+ secondary: "bg-khaki-500 text-white hover:bg-khaki-600 focus-visible:ring-khaki-500",
768
+ ghost: "hover:bg-surface-variant hover:text-text-primary focus-visible:ring-reseda-green-500",
769
+ link: "text-reseda-green-500 underline-offset-4 hover:underline focus-visible:ring-reseda-green-500",
770
+ none: ""
771
+ // No default styles, allows full customization
772
+ },
773
+ size: {
774
+ default: "h-10 px-4 py-2",
775
+ sm: "h-9 rounded-md px-3",
776
+ lg: "h-11 rounded-md px-8",
777
+ xl: "h-12 rounded-md px-10 text-base",
778
+ icon: "h-10 w-10"
779
+ }
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(
781
+ ({
782
+ className: s,
783
+ variant: n = "default",
784
+ size: t = "default",
785
+ fullWidth: l = !1,
786
+ 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(
794
+ _e,
795
+ H.variant[n],
796
+ H.size[t],
797
+ l ? "w-full" : "",
798
+ s
799
+ );
800
+ return /* @__PURE__ */ e.jsxs(
801
+ "button",
802
+ {
803
+ className: v,
804
+ ref: h,
805
+ disabled: f,
806
+ ...V,
807
+ children: [
808
+ c && /* @__PURE__ */ e.jsxs(
809
+ "svg",
810
+ {
811
+ className: "mr-2 h-4 w-4 animate-spin",
812
+ xmlns: "http://www.w3.org/2000/svg",
813
+ fill: "none",
814
+ viewBox: "0 0 24 24",
815
+ children: [
816
+ /* @__PURE__ */ e.jsx(
817
+ "circle",
818
+ {
819
+ className: "opacity-25",
820
+ cx: "12",
821
+ cy: "12",
822
+ r: "10",
823
+ stroke: "currentColor",
824
+ strokeWidth: "4"
825
+ }
826
+ ),
827
+ /* @__PURE__ */ e.jsx(
828
+ "path",
829
+ {
830
+ className: "opacity-75",
831
+ fill: "currentColor",
832
+ d: "m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
833
+ }
834
+ )
835
+ ]
836
+ }
837
+ ),
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 })
841
+ ]
842
+ }
843
+ );
844
+ }
845
+ );
846
+ ee.displayName = "Button";
847
+ const q = {
848
+ provider: {
849
+ linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
850
+ },
851
+ iconPosition: {
852
+ left: "flex-row",
853
+ right: "flex-row-reverse",
854
+ only: "justify-center"
855
+ }
856
+ }, Se = (...s) => s.filter(Boolean).join(" "), Ae = D.forwardRef(
857
+ ({
858
+ className: s,
859
+ provider: n,
860
+ iconPosition: t = "left",
861
+ icon: l,
862
+ showText: c = !0,
863
+ children: o,
864
+ size: d = "default",
865
+ fullWidth: x = !0,
866
+ ...p
867
+ }, V) => {
868
+ const f = l || {
869
+ 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 ? {
871
+ linkedin: "Continue with LinkedIn"
872
+ }[n] : ""), R = Se(
873
+ "relative overflow-hidden transition-all duration-200",
874
+ q.provider[n],
875
+ q.iconPosition[t],
876
+ s
877
+ );
878
+ return /* @__PURE__ */ e.jsxs(
879
+ ee,
880
+ {
881
+ ref: V,
882
+ variant: "none",
883
+ className: R,
884
+ size: d,
885
+ fullWidth: x,
886
+ leftIcon: t === "left" ? f : void 0,
887
+ rightIcon: t === "right" ? f : void 0,
888
+ ...p,
889
+ children: [
890
+ t === "only" && f,
891
+ t !== "only" && w
892
+ ]
893
+ }
894
+ );
895
+ }
896
+ );
897
+ Ae.displayName = "SocialButton";
763
898
  export {
764
- Ve as ColorPalette,
765
- Ae as Demo,
766
- _e as Sidebar,
767
- we as ThemeProvider,
768
- ke as ThemeToggle,
769
- Se as useTheme
899
+ 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
770
907
  };
@@ -1,4 +1,4 @@
1
- (function(v,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react"),require("@headlessui/react"),require("@heroicons/react/24/outline")):typeof define=="function"&&define.amd?define(["exports","react","@headlessui/react","@heroicons/react/24/outline"],u):(v=typeof globalThis<"u"?globalThis:v||self,u(v.AceMyJobUI={},v.React,v.HeadlessUI,v.HeroiconsOutline))})(this,function(v,u,T,D){"use strict";var N={exports:{}},j={};/**
1
+ (function(d,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react"),require("@headlessui/react"),require("@heroicons/react/24/outline")):typeof define=="function"&&define.amd?define(["exports","react","@headlessui/react","@heroicons/react/24/outline"],u):(d=typeof globalThis<"u"?globalThis:d||self,u(d.AceMyJobUI={},d.React,d.HeadlessUI,d.HeroiconsOutline))})(this,function(d,u,E,z){"use strict";var S={exports:{}},N={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var M;function $(){if(M)return j;M=1;var s=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function c(o,i,l){var f=null;if(l!==void 0&&(f=""+l),i.key!==void 0&&(f=""+i.key),"key"in i){l={};for(var b in i)b!=="key"&&(l[b]=i[b])}else l=i;return i=l.ref,{$$typeof:s,type:o,key:f,ref:i!==void 0?i:null,props:l}}return j.Fragment=n,j.jsx=c,j.jsxs=c,j}var w={};/**
9
+ */var B;function oe(){if(B)return N;B=1;var s=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function t(n,c,o){var h=null;if(o!==void 0&&(h=""+o),c.key!==void 0&&(h=""+c.key),"key"in c){o={};for(var g in c)g!=="key"&&(o[g]=c[g])}else o=c;return c=o.ref,{$$typeof:s,type:n,key:h,ref:c!==void 0?c:null,props:o}}return N.Fragment=l,N.jsx=t,N.jsxs=t,N}var T={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,9 +14,9 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Y;function ee(){return Y||(Y=1,process.env.NODE_ENV!=="production"&&function(){function s(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===pe?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case _:return"Fragment";case me:return"Profiler";case ue:return"StrictMode";case xe:return"Suspense";case fe:return"SuspenseList";case be:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case ie:return"Portal";case ve:return(r.displayName||"Context")+".Provider";case de:return(r._context.displayName||"Context")+".Consumer";case he:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ge:return a=r.displayName||null,a!==null?a:s(r.type)||"Memo";case G:a=r._payload,r=r._init;try{return s(r(a))}catch{}}return null}function n(r){return""+r}function c(r){try{n(r);var a=!1}catch{a=!0}if(a){a=console;var t=a.error,m=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return t.call(a,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",m),n(r)}}function o(r){if(r===_)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===G)return"<...>";try{var a=s(r);return a?"<"+a+">":"<...>"}catch{return"<...>"}}function i(){var r=A.A;return r===null?null:r.getOwner()}function l(){return Error("react-stack-top-frame")}function f(r){if(H.call(r,"key")){var a=Object.getOwnPropertyDescriptor(r,"key").get;if(a&&a.isReactWarning)return!1}return r.key!==void 0}function b(r,a){function t(){X||(X=!0,console.error("%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)",a))}t.isReactWarning=!0,Object.defineProperty(r,"key",{get:t,configurable:!0})}function R(){var r=s(this.type);return Q[r]||(Q[r]=!0,console.error("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.")),r=this.props.ref,r!==void 0?r:null}function S(r,a,t,m,p,g,P,O){return t=g.ref,r={$$typeof:k,type:r,key:a,props:g,_owner:p},(t!==void 0?t:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:R}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:O}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function x(r,a,t,m,p,g,P,O){var d=a.children;if(d!==void 0)if(m)if(Ve(d)){for(m=0;m<d.length;m++)y(d[m]);Object.freeze&&Object.freeze(d)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(d);if(H.call(a,"key")){d=s(r);var V=Object.keys(a).filter(function(je){return je!=="key"});m=0<V.length?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}",K[d+m]||(V=0<V.length?"{"+V.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var I;function ne(){return I||(I=1,process.env.NODE_ENV!=="production"&&function(){function s(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===Te?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case A:return"Fragment";case be:return"Profiler";case ge:return"StrictMode";case je:return"Suspense";case ye:return"SuspenseList";case Ne:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case R:return"Portal";case Ve:return(r.displayName||"Context")+".Provider";case pe:return(r._context.displayName||"Context")+".Consumer";case we:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ke:return a=r.displayName||null,a!==null?a:s(r.type)||"Memo";case Q:a=r._payload,r=r._init;try{return s(r(a))}catch{}}return null}function l(r){return""+r}function t(r){try{l(r);var a=!1}catch{a=!0}if(a){a=console;var i=a.error,m=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return i.call(a,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",m),l(r)}}function n(r){if(r===A)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===Q)return"<...>";try{var a=s(r);return a?"<"+a+">":"<...>"}catch{return"<...>"}}function c(){var r=P.A;return r===null?null:r.getOwner()}function o(){return Error("react-stack-top-frame")}function h(r){if(Z.call(r,"key")){var a=Object.getOwnPropertyDescriptor(r,"key").get;if(a&&a.isReactWarning)return!1}return r.key!==void 0}function g(r,a){function i(){K||(K=!0,console.error("%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)",a))}i.isReactWarning=!0,Object.defineProperty(r,"key",{get:i,configurable:!0})}function w(){var r=s(this.type);return ee[r]||(ee[r]=!0,console.error("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.")),r=this.props.ref,r!==void 0?r:null}function j(r,a,i,m,V,p,L,D){return i=p.ref,r={$$typeof:y,type:r,key:a,props:p,_owner:V},(i!==void 0?i:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:w}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:L}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function f(r,a,i,m,V,p,L,D){var v=a.children;if(v!==void 0)if(m)if(Ee(v)){for(m=0;m<v.length;m++)b(v[m]);Object.freeze&&Object.freeze(v)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else b(v);if(Z.call(a,"key")){v=s(r);var k=Object.keys(a).filter(function(Se){return Se!=="key"});m=0<k.length?"{key: someKey, "+k.join(": ..., ")+": ...}":"{key: someKey}",ae[v+m]||(k=0<k.length?"{"+k.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,m,d,V,d),K[d+m]=!0)}if(d=null,t!==void 0&&(c(t),d=""+t),f(a)&&(c(a.key),d=""+a.key),"key"in a){t={};for(var L in a)L!=="key"&&(t[L]=a[L])}else t=a;return d&&b(t,typeof r=="function"?r.displayName||r.name||"Unknown":r),S(r,d,g,p,i(),t,P,O)}function y(r){typeof r=="object"&&r!==null&&r.$$typeof===k&&r._store&&(r._store.validated=1)}var h=u,k=Symbol.for("react.transitional.element"),ie=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),ue=Symbol.for("react.strict_mode"),me=Symbol.for("react.profiler"),de=Symbol.for("react.consumer"),ve=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ge=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),be=Symbol.for("react.activity"),pe=Symbol.for("react.client.reference"),A=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,Ve=Array.isArray,C=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(r){return r()}};var X,Q={},Z=h["react-stack-bottom-frame"].bind(h,l)(),q=C(o(l)),K={};w.Fragment=_,w.jsx=function(r,a,t,m,p){var g=1e4>A.recentlyCreatedOwnerStacks++;return x(r,a,t,!1,m,p,g?Error("react-stack-top-frame"):Z,g?C(o(r)):q)},w.jsxs=function(r,a,t,m,p){var g=1e4>A.recentlyCreatedOwnerStacks++;return x(r,a,t,!0,m,p,g?Error("react-stack-top-frame"):Z,g?C(o(r)):q)}}()),w}var F;function re(){return F||(F=1,process.env.NODE_ENV==="production"?N.exports=$():N.exports=ee()),N.exports}var e=re();function E(...s){return s.filter(Boolean).join(" ")}function ae({company:s,profile:n,navigation:c}){const[o,i]=u.useState(!1);return e.jsx(e.Fragment,{children:e.jsxs("div",{children:[e.jsxs(T.Dialog,{open:o,onClose:i,className:"relative z-50 lg:hidden",children:[e.jsx(T.DialogBackdrop,{transition:!0,className:"fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"}),e.jsx("div",{className:"fixed inset-0 flex",children:e.jsxs(T.DialogPanel,{transition:!0,className:"relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",children:[e.jsx(T.TransitionChild,{children: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:e.jsxs("button",{type:"button",onClick:()=>i(!1),className:"-m-2.5 p-2.5",children:[e.jsx("span",{className:"sr-only",children:"Close sidebar"}),e.jsx(D.XMarkIcon,{"aria-hidden":"true",className:"size-6 text-white"})]})})}),e.jsxs("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto bg-indigo-600 px-6 pb-2",children:[e.jsx("div",{className:"flex h-16 shrink-0 items-center",children:e.jsx("img",{alt:s.name,src:s.logo,className:"h-8 w-auto"})}),e.jsx("nav",{className:"flex flex-1 flex-col",children:e.jsx("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:e.jsx("li",{children:e.jsx("ul",{role:"list",className:"-mx-2 space-y-1",children:c.map(l=>e.jsx("li",{children:e.jsxs("a",{href:l.href,className:E(l.current?"bg-indigo-700 text-white":"text-indigo-200 hover:bg-indigo-700 hover:text-white","group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"),children:[e.jsx(l.icon,{"aria-hidden":"true",className:E(l.current?"text-white":"text-indigo-200 group-hover:text-white","size-6 shrink-0")}),l.name]})},l.name))})})})})]})]})})]}),e.jsx("div",{className:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col",children:e.jsxs("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto bg-indigo-600 px-6",children:[e.jsx("div",{className:"flex h-16 shrink-0 items-center",children:e.jsx("img",{alt:s.name,src:s.logo,className:"h-8 w-auto"})}),e.jsx("nav",{className:"flex flex-1 flex-col",children:e.jsxs("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:[e.jsx("li",{children:e.jsx("ul",{role:"list",className:"-mx-2 space-y-1",children:c.map(l=>e.jsx("li",{children:e.jsxs("a",{href:l.href,className:E(l.current?"bg-indigo-700 text-white":"text-indigo-200 hover:bg-indigo-700 hover:text-white","group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"),children:[e.jsx(l.icon,{"aria-hidden":"true",className:E(l.current?"text-white":"text-indigo-200 group-hover:text-white","size-6 shrink-0")}),l.name]})},l.name))})}),e.jsx("li",{className:"-mx-6 mt-auto",children:e.jsxs("a",{href:"#",className:"flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold text-white hover:bg-indigo-700",children:[e.jsx("img",{alt:n.name,src:n.image,className:"size-8 rounded-full bg-indigo-700"}),e.jsx("span",{className:"sr-only",children:"Your profile"}),e.jsx("span",{"aria-hidden":"true",children:n.name})]})})]})})]})}),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:[e.jsxs("button",{type:"button",onClick:()=>i(!0),className:"-m-2.5 p-2.5 text-indigo-200 lg:hidden",children:[e.jsx("span",{className:"sr-only",children:"Open sidebar"}),e.jsx(D.Bars3Icon,{"aria-hidden":"true",className:"size-6"})]}),e.jsx("div",{className:"flex-1 text-sm/6 font-semibold text-white",children:"Dashboard"}),e.jsxs("a",{href:"#",children:[e.jsx("span",{className:"sr-only",children:"Your profile"}),e.jsx("img",{alt:n.name,src:n.image,className:"size-8 rounded-full bg-indigo-700"})]})]})]})})}const I=s=>s.replace("--color-","bg-"),se=({name:s,cssVar:n,value:c})=>{const o=`rgb(${c})`;return 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:[e.jsx("div",{className:`w-16 h-16 rounded-lg border border-border shadow-sm ${I(n)}`}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-sm font-medium text-text-primary",children:s}),e.jsx("div",{className:"text-xs text-text-muted font-mono",children:n}),e.jsx("div",{className:"text-xs text-text-secondary",children:o})]})]})},U=({title:s,colors:n})=>e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary border-b border-border-subtle pb-2",children:s}),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(c=>e.jsx(se,{...c},c.name))})]}),z=()=>{const s=[{title:"Success Colors (Green)",colors:[{name:"50",cssVar:"--color-success-50",value:"240 253 244"},{name:"100",cssVar:"--color-success-100",value:"220 252 231"},{name:"200",cssVar:"--color-success-200",value:"187 247 208"},{name:"300",cssVar:"--color-success-300",value:"134 239 172"},{name:"400",cssVar:"--color-success-400",value:"74 222 128"},{name:"500",cssVar:"--color-success-500",value:"34 197 94"},{name:"600",cssVar:"--color-success-600",value:"22 163 74"},{name:"700",cssVar:"--color-success-700",value:"21 128 61"},{name:"800",cssVar:"--color-success-800",value:"22 101 52"},{name:"900",cssVar:"--color-success-900",value:"20 83 45"},{name:"950",cssVar:"--color-success-950",value:"5 46 22"}]},{title:"Warning Colors (Yellow)",colors:[{name:"50",cssVar:"--color-warning-50",value:"254 252 232"},{name:"100",cssVar:"--color-warning-100",value:"254 249 195"},{name:"200",cssVar:"--color-warning-200",value:"254 240 138"},{name:"300",cssVar:"--color-warning-300",value:"253 224 71"},{name:"400",cssVar:"--color-warning-400",value:"250 204 21"},{name:"500",cssVar:"--color-warning-500",value:"234 179 8"},{name:"600",cssVar:"--color-warning-600",value:"202 138 4"},{name:"700",cssVar:"--color-warning-700",value:"161 98 7"},{name:"800",cssVar:"--color-warning-800",value:"133 77 14"},{name:"900",cssVar:"--color-warning-900",value:"113 63 18"},{name:"950",cssVar:"--color-warning-950",value:"66 32 6"}]},{title:"Error Colors (Red)",colors:[{name:"50",cssVar:"--color-error-50",value:"254 242 242"},{name:"100",cssVar:"--color-error-100",value:"254 226 226"},{name:"200",cssVar:"--color-error-200",value:"254 202 202"},{name:"300",cssVar:"--color-error-300",value:"252 165 165"},{name:"400",cssVar:"--color-error-400",value:"248 113 113"},{name:"500",cssVar:"--color-error-500",value:"239 68 68"},{name:"600",cssVar:"--color-error-600",value:"220 38 38"},{name:"700",cssVar:"--color-error-700",value:"185 28 28"},{name:"800",cssVar:"--color-error-800",value:"153 27 27"},{name:"900",cssVar:"--color-error-900",value:"127 29 29"},{name:"950",cssVar:"--color-error-950",value:"69 10 10"}]}],n=[{title:"Reseda Green",colors:[{name:"DEFAULT",cssVar:"--color-reseda-green",value:"121 125 98"},{name:"100",cssVar:"--color-reseda-green-100",value:"24 25 20"},{name:"200",cssVar:"--color-reseda-green-200",value:"49 50 39"},{name:"300",cssVar:"--color-reseda-green-300",value:"73 75 59"},{name:"400",cssVar:"--color-reseda-green-400",value:"97 101 79"},{name:"500",cssVar:"--color-reseda-green-500",value:"121 125 98"},{name:"600",cssVar:"--color-reseda-green-600",value:"150 154 127"},{name:"700",cssVar:"--color-reseda-green-700",value:"177 180 159"},{name:"800",cssVar:"--color-reseda-green-800",value:"203 205 191"},{name:"900",cssVar:"--color-reseda-green-900",value:"229 230 223"}]},{title:"Moss Green",colors:[{name:"DEFAULT",cssVar:"--color-moss-green",value:"155 155 122"},{name:"100",cssVar:"--color-moss-green-100",value:"31 31 24"},{name:"200",cssVar:"--color-moss-green-200",value:"63 63 47"},{name:"300",cssVar:"--color-moss-green-300",value:"94 94 71"},{name:"400",cssVar:"--color-moss-green-400",value:"126 126 95"},{name:"500",cssVar:"--color-moss-green-500",value:"155 155 122"},{name:"600",cssVar:"--color-moss-green-600",value:"174 174 148"},{name:"700",cssVar:"--color-moss-green-700",value:"194 194 175"},{name:"800",cssVar:"--color-moss-green-800",value:"215 215 202"},{name:"900",cssVar:"--color-moss-green-900",value:"235 235 228"}]},{title:"Khaki",colors:[{name:"DEFAULT",cssVar:"--color-khaki",value:"186 165 135"},{name:"100",cssVar:"--color-khaki-100",value:"41 34 23"},{name:"200",cssVar:"--color-khaki-200",value:"82 67 47"},{name:"300",cssVar:"--color-khaki-300",value:"122 101 70"},{name:"400",cssVar:"--color-khaki-400",value:"163 134 94"},{name:"500",cssVar:"--color-khaki-500",value:"186 165 135"},{name:"600",cssVar:"--color-khaki-600",value:"200 183 159"},{name:"700",cssVar:"--color-khaki-700",value:"214 201 183"},{name:"800",cssVar:"--color-khaki-800",value:"227 219 207"},{name:"900",cssVar:"--color-khaki-900",value:"241 237 231"}]},{title:"Desert Sand",colors:[{name:"DEFAULT",cssVar:"--color-desert-sand",value:"217 174 148"},{name:"100",cssVar:"--color-desert-sand-100",value:"54 33 19"},{name:"200",cssVar:"--color-desert-sand-200",value:"109 65 38"},{name:"300",cssVar:"--color-desert-sand-300",value:"163 98 57"},{name:"400",cssVar:"--color-desert-sand-400",value:"199 135 95"},{name:"500",cssVar:"--color-desert-sand-500",value:"217 174 148"},{name:"600",cssVar:"--color-desert-sand-600",value:"225 191 170"},{name:"700",cssVar:"--color-desert-sand-700",value:"233 207 192"},{name:"800",cssVar:"--color-desert-sand-800",value:"240 223 213"},{name:"900",cssVar:"--color-desert-sand-900",value:"248 239 234"}]},{title:"Peach Yellow",colors:[{name:"DEFAULT",cssVar:"--color-peach-yellow",value:"241 220 167"},{name:"100",cssVar:"--color-peach-yellow-100",value:"71 54 11"},{name:"200",cssVar:"--color-peach-yellow-200",value:"141 107 22"},{name:"300",cssVar:"--color-peach-yellow-300",value:"212 161 33"},{name:"400",cssVar:"--color-peach-yellow-400",value:"230 192 96"},{name:"500",cssVar:"--color-peach-yellow-500",value:"241 220 167"},{name:"600",cssVar:"--color-peach-yellow-600",value:"244 227 184"},{name:"700",cssVar:"--color-peach-yellow-700",value:"247 234 202"},{name:"800",cssVar:"--color-peach-yellow-800",value:"249 241 220"},{name:"900",cssVar:"--color-peach-yellow-900",value:"252 248 237"}]},{title:"Sunglow",colors:[{name:"DEFAULT",cssVar:"--color-sunglow",value:"255 203 105"},{name:"100",cssVar:"--color-sunglow-100",value:"72 47 0"},{name:"200",cssVar:"--color-sunglow-200",value:"145 94 0"},{name:"300",cssVar:"--color-sunglow-300",value:"217 141 0"},{name:"400",cssVar:"--color-sunglow-400",value:"255 178 35"},{name:"500",cssVar:"--color-sunglow-500",value:"255 203 105"},{name:"600",cssVar:"--color-sunglow-600",value:"255 214 137"},{name:"700",cssVar:"--color-sunglow-700",value:"255 224 166"},{name:"800",cssVar:"--color-sunglow-800",value:"255 234 196"},{name:"900",cssVar:"--color-sunglow-900",value:"255 245 225"}]},{title:"Earth Yellow",colors:[{name:"DEFAULT",cssVar:"--color-earth-yellow",value:"232 172 101"},{name:"100",cssVar:"--color-earth-yellow-100",value:"58 36 9"},{name:"200",cssVar:"--color-earth-yellow-200",value:"115 71 17"},{name:"300",cssVar:"--color-earth-yellow-300",value:"173 107 26"},{name:"400",cssVar:"--color-earth-yellow-400",value:"223 142 42"},{name:"500",cssVar:"--color-earth-yellow-500",value:"232 172 101"},{name:"600",cssVar:"--color-earth-yellow-600",value:"236 189 131"},{name:"700",cssVar:"--color-earth-yellow-700",value:"241 205 162"},{name:"800",cssVar:"--color-earth-yellow-800",value:"246 222 193"},{name:"900",cssVar:"--color-earth-yellow-900",value:"250 238 224"}]},{title:"Persian Orange",colors:[{name:"DEFAULT",cssVar:"--color-persian-orange",value:"208 140 96"},{name:"100",cssVar:"--color-persian-orange-100",value:"47 27 14"},{name:"200",cssVar:"--color-persian-orange-200",value:"94 55 28"},{name:"300",cssVar:"--color-persian-orange-300",value:"141 82 42"},{name:"400",cssVar:"--color-persian-orange-400",value:"188 109 56"},{name:"500",cssVar:"--color-persian-orange-500",value:"208 140 96"},{name:"600",cssVar:"--color-persian-orange-600",value:"217 165 129"},{name:"700",cssVar:"--color-persian-orange-700",value:"227 187 161"},{name:"800",cssVar:"--color-persian-orange-800",value:"236 210 192"},{name:"900",cssVar:"--color-persian-orange-900",value:"246 232 224"}]},{title:"Chamoisee",colors:[{name:"DEFAULT",cssVar:"--color-chamoisee",value:"181 132 99"},{name:"100",cssVar:"--color-chamoisee-100",value:"38 26 18"},{name:"200",cssVar:"--color-chamoisee-200",value:"76 52 36"},{name:"300",cssVar:"--color-chamoisee-300",value:"114 78 54"},{name:"400",cssVar:"--color-chamoisee-400",value:"153 104 72"},{name:"500",cssVar:"--color-chamoisee-500",value:"181 132 99"},{name:"600",cssVar:"--color-chamoisee-600",value:"196 157 130"},{name:"700",cssVar:"--color-chamoisee-700",value:"211 181 161"},{name:"800",cssVar:"--color-chamoisee-800",value:"226 206 193"},{name:"900",cssVar:"--color-chamoisee-900",value:"240 230 224"}]},{title:"Beaver",colors:[{name:"DEFAULT",cssVar:"--color-beaver",value:"153 123 102"},{name:"100",cssVar:"--color-beaver-100",value:"31 25 20"},{name:"200",cssVar:"--color-beaver-200",value:"61 49 41"},{name:"300",cssVar:"--color-beaver-300",value:"92 74 61"},{name:"400",cssVar:"--color-beaver-400",value:"122 99 82"},{name:"500",cssVar:"--color-beaver-500",value:"153 123 102"},{name:"600",cssVar:"--color-beaver-600",value:"173 150 133"},{name:"700",cssVar:"--color-beaver-700",value:"194 176 163"},{name:"800",cssVar:"--color-beaver-800",value:"214 202 194"},{name:"900",cssVar:"--color-beaver-900",value:"235 229 224"}]}],c=[{name:"Background",cssVar:"--color-background"},{name:"Surface",cssVar:"--color-surface"},{name:"Surface Variant",cssVar:"--color-surface-variant"},{name:"Text Primary",cssVar:"--color-text-primary"},{name:"Text Secondary",cssVar:"--color-text-secondary"},{name:"Text Muted",cssVar:"--color-text-muted"},{name:"Border",cssVar:"--color-border"},{name:"Border Subtle",cssVar:"--color-border-subtle"}];return e.jsxs("div",{className:"p-8 space-y-8 bg-background min-h-screen",children:[e.jsxs("div",{className:"text-center space-y-2",children:[e.jsx("h1",{className:"text-3xl font-bold text-text-primary",children:"AceMyJob Color Palette"}),e.jsx("p",{className:"text-text-secondary",children:"Your complete design system color reference"})]}),n.map(o=>e.jsx(U,{...o},o.title)),s.map(o=>e.jsx(U,{...o},o.title)),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary border-b border-border-subtle pb-2",children:"Semantic Colors (Theme-aware)"}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4",children:c.map(o=>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:[e.jsx("div",{className:`w-16 h-16 rounded-lg border border-border shadow-sm ${I(o.cssVar)}`}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-sm font-medium text-text-primary",children:o.name}),e.jsx("div",{className:"text-xs text-text-muted font-mono",children:o.cssVar})]})]},o.name))})]}),e.jsx("div",{className:"text-center pt-8 border-t border-border-subtle",children:e.jsx("p",{className:"text-text-muted text-sm",children:"Toggle between light and dark themes to see how semantic colors adapt"})})]})},W=u.createContext(void 0),B=({children:s,defaultTheme:n="system",storageKey:c="acemyjob-ui-theme"})=>{const[o,i]=u.useState(n),[l,f]=u.useState("light"),[b,R]=u.useState(!1);u.useEffect(()=>{const x=localStorage.getItem(c);x&&i(x),R(!0)},[c]),u.useEffect(()=>{if(!b)return;const x=window.document.documentElement,y=()=>{let h;o==="system"?h=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":h=o,f(h),x.classList.remove("light","dark"),x.classList.add(h)};if(y(),o==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)"),k=()=>y();return h.addEventListener("change",k),()=>h.removeEventListener("change",k)}},[o,b]);const S={theme:o,setTheme:x=>{localStorage.setItem(c,x),i(x)},resolvedTheme:l};return e.jsx(W.Provider,{value:S,children:s})},oe=()=>{const s=u.useContext(W);if(s===void 0)throw new Error("useTheme must be used within a ThemeProvider");return s},le=u.createContext(void 0),ne=()=>{const s=u.useContext(le);if(s===void 0)throw new Error("useTheme must be used within a ThemeProvider");return s},J=()=>{const{theme:s,setTheme:n}=ne(),[c,o]=u.useState(!1);if(u.useEffect(()=>{o(!0)},[]),!c)return e.jsxs("button",{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","aria-label":"Loading theme toggle",children:[e.jsx("div",{className:"w-4 h-4 animate-pulse bg-text-muted rounded"}),e.jsx("span",{className:"hidden sm:inline",children:"Loading..."})]});const i=()=>{n(s==="light"?"dark":s==="dark"?"system":"light")},l=()=>{switch(s){case"light":return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children: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"})});case"dark":return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})});case"system":return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children: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"})})}},f=()=>{switch(s){case"light":return"Light";case"dark":return"Dark";case"system":return"System"}};return e.jsxs("button",{onClick:i,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","aria-label":`Current theme: ${f()}. Click to cycle themes.`,children:[l(),e.jsx("span",{className:"hidden sm:inline",children:f()})]})},te=()=>e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"fixed top-4 right-4 z-10",children:e.jsx(J,{})}),e.jsx(z,{})]}),ce=()=>e.jsx(B,{defaultTheme:"system",storageKey:"acemyjob-demo-theme",children:e.jsx(te,{})});v.ColorPalette=z,v.Demo=ce,v.Sidebar=ae,v.ThemeProvider=B,v.ThemeToggle=J,v.useTheme=oe,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
22
+ <%s key={someKey} {...props} />`,m,v,k,v),ae[v+m]=!0)}if(v=null,i!==void 0&&(t(i),v=""+i),h(a)&&(t(a.key),v=""+a.key),"key"in a){i={};for(var M in a)M!=="key"&&(i[M]=a[M])}else i=a;return v&&g(i,typeof r=="function"?r.displayName||r.name||"Unknown":r),j(r,v,p,V,c(),i,L,D)}function b(r){typeof r=="object"&&r!==null&&r.$$typeof===y&&r._store&&(r._store.validated=1)}var x=u,y=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),pe=Symbol.for("react.consumer"),Ve=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),Te=Symbol.for("react.client.reference"),P=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=Object.prototype.hasOwnProperty,Ee=Array.isArray,O=console.createTask?console.createTask:function(){return null};x={"react-stack-bottom-frame":function(r){return r()}};var K,ee={},re=x["react-stack-bottom-frame"].bind(x,o)(),se=O(n(o)),ae={};T.Fragment=A,T.jsx=function(r,a,i,m,V){var p=1e4>P.recentlyCreatedOwnerStacks++;return f(r,a,i,!1,m,V,p?Error("react-stack-top-frame"):re,p?O(n(r)):se)},T.jsxs=function(r,a,i,m,V){var p=1e4>P.recentlyCreatedOwnerStacks++;return f(r,a,i,!0,m,V,p?Error("react-stack-top-frame"):re,p?O(n(r)):se)}}()),T}var Y;function le(){return Y||(Y=1,process.env.NODE_ENV==="production"?S.exports=oe():S.exports=ne()),S.exports}var e=le();function C(...s){return s.filter(Boolean).join(" ")}function te({company:s,profile:l,navigation:t}){const[n,c]=u.useState(!1);return e.jsx(e.Fragment,{children:e.jsxs("div",{children:[e.jsxs(E.Dialog,{open:n,onClose:c,className:"relative z-50 lg:hidden",children:[e.jsx(E.DialogBackdrop,{transition:!0,className:"fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"}),e.jsx("div",{className:"fixed inset-0 flex",children:e.jsxs(E.DialogPanel,{transition:!0,className:"relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",children:[e.jsx(E.TransitionChild,{children: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:e.jsxs("button",{type:"button",onClick:()=>c(!1),className:"-m-2.5 p-2.5",children:[e.jsx("span",{className:"sr-only",children:"Close sidebar"}),e.jsx(z.XMarkIcon,{"aria-hidden":"true",className:"size-6 text-white"})]})})}),e.jsxs("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto bg-indigo-600 px-6 pb-2",children:[e.jsx("div",{className:"flex h-16 shrink-0 items-center",children:e.jsx("img",{alt:s.name,src:s.logo,className:"h-8 w-auto"})}),e.jsx("nav",{className:"flex flex-1 flex-col",children:e.jsx("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:e.jsx("li",{children:e.jsx("ul",{role:"list",className:"-mx-2 space-y-1",children:t.map(o=>e.jsx("li",{children:e.jsxs("a",{href:o.href,className:C(o.current?"bg-indigo-700 text-white":"text-indigo-200 hover:bg-indigo-700 hover:text-white","group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"),children:[e.jsx(o.icon,{"aria-hidden":"true",className:C(o.current?"text-white":"text-indigo-200 group-hover:text-white","size-6 shrink-0")}),o.name]})},o.name))})})})})]})]})})]}),e.jsx("div",{className:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col",children:e.jsxs("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto bg-indigo-600 px-6",children:[e.jsx("div",{className:"flex h-16 shrink-0 items-center",children:e.jsx("img",{alt:s.name,src:s.logo,className:"h-8 w-auto"})}),e.jsx("nav",{className:"flex flex-1 flex-col",children:e.jsxs("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:[e.jsx("li",{children:e.jsx("ul",{role:"list",className:"-mx-2 space-y-1",children:t.map(o=>e.jsx("li",{children:e.jsxs("a",{href:o.href,className:C(o.current?"bg-indigo-700 text-white":"text-indigo-200 hover:bg-indigo-700 hover:text-white","group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"),children:[e.jsx(o.icon,{"aria-hidden":"true",className:C(o.current?"text-white":"text-indigo-200 group-hover:text-white","size-6 shrink-0")}),o.name]})},o.name))})}),e.jsx("li",{className:"-mx-6 mt-auto",children:e.jsxs("a",{href:"#",className:"flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold text-white hover:bg-indigo-700",children:[e.jsx("img",{alt:l.name,src:l.image,className:"size-8 rounded-full bg-indigo-700"}),e.jsx("span",{className:"sr-only",children:"Your profile"}),e.jsx("span",{"aria-hidden":"true",children:l.name})]})})]})})]})}),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:[e.jsxs("button",{type:"button",onClick:()=>c(!0),className:"-m-2.5 p-2.5 text-indigo-200 lg:hidden",children:[e.jsx("span",{className:"sr-only",children:"Open sidebar"}),e.jsx(z.Bars3Icon,{"aria-hidden":"true",className:"size-6"})]}),e.jsx("div",{className:"flex-1 text-sm/6 font-semibold text-white",children:"Dashboard"}),e.jsxs("a",{href:"#",children:[e.jsx("span",{className:"sr-only",children:"Your profile"}),e.jsx("img",{alt:l.name,src:l.image,className:"size-8 rounded-full bg-indigo-700"})]})]})]})})}const F=s=>s.replace("--color-","bg-"),ce=({name:s,cssVar:l,value:t})=>{const n=`rgb(${t})`;return 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:[e.jsx("div",{className:`w-16 h-16 rounded-lg border border-border shadow-sm ${F(l)}`}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-sm font-medium text-text-primary",children:s}),e.jsx("div",{className:"text-xs text-text-muted font-mono",children:l}),e.jsx("div",{className:"text-xs text-text-secondary",children:n})]})]})},U=({title:s,colors:l})=>e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary border-b border-border-subtle pb-2",children:s}),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:l.map(t=>e.jsx(ce,{...t},t.name))})]}),$=()=>{const s=[{title:"Success Colors (Green)",colors:[{name:"50",cssVar:"--color-success-50",value:"240 253 244"},{name:"100",cssVar:"--color-success-100",value:"220 252 231"},{name:"200",cssVar:"--color-success-200",value:"187 247 208"},{name:"300",cssVar:"--color-success-300",value:"134 239 172"},{name:"400",cssVar:"--color-success-400",value:"74 222 128"},{name:"500",cssVar:"--color-success-500",value:"34 197 94"},{name:"600",cssVar:"--color-success-600",value:"22 163 74"},{name:"700",cssVar:"--color-success-700",value:"21 128 61"},{name:"800",cssVar:"--color-success-800",value:"22 101 52"},{name:"900",cssVar:"--color-success-900",value:"20 83 45"},{name:"950",cssVar:"--color-success-950",value:"5 46 22"}]},{title:"Warning Colors (Yellow)",colors:[{name:"50",cssVar:"--color-warning-50",value:"254 252 232"},{name:"100",cssVar:"--color-warning-100",value:"254 249 195"},{name:"200",cssVar:"--color-warning-200",value:"254 240 138"},{name:"300",cssVar:"--color-warning-300",value:"253 224 71"},{name:"400",cssVar:"--color-warning-400",value:"250 204 21"},{name:"500",cssVar:"--color-warning-500",value:"234 179 8"},{name:"600",cssVar:"--color-warning-600",value:"202 138 4"},{name:"700",cssVar:"--color-warning-700",value:"161 98 7"},{name:"800",cssVar:"--color-warning-800",value:"133 77 14"},{name:"900",cssVar:"--color-warning-900",value:"113 63 18"},{name:"950",cssVar:"--color-warning-950",value:"66 32 6"}]},{title:"Error Colors (Red)",colors:[{name:"50",cssVar:"--color-error-50",value:"254 242 242"},{name:"100",cssVar:"--color-error-100",value:"254 226 226"},{name:"200",cssVar:"--color-error-200",value:"254 202 202"},{name:"300",cssVar:"--color-error-300",value:"252 165 165"},{name:"400",cssVar:"--color-error-400",value:"248 113 113"},{name:"500",cssVar:"--color-error-500",value:"239 68 68"},{name:"600",cssVar:"--color-error-600",value:"220 38 38"},{name:"700",cssVar:"--color-error-700",value:"185 28 28"},{name:"800",cssVar:"--color-error-800",value:"153 27 27"},{name:"900",cssVar:"--color-error-900",value:"127 29 29"},{name:"950",cssVar:"--color-error-950",value:"69 10 10"}]}],l=[{title:"Reseda Green",colors:[{name:"DEFAULT",cssVar:"--color-reseda-green",value:"121 125 98"},{name:"100",cssVar:"--color-reseda-green-100",value:"24 25 20"},{name:"200",cssVar:"--color-reseda-green-200",value:"49 50 39"},{name:"300",cssVar:"--color-reseda-green-300",value:"73 75 59"},{name:"400",cssVar:"--color-reseda-green-400",value:"97 101 79"},{name:"500",cssVar:"--color-reseda-green-500",value:"121 125 98"},{name:"600",cssVar:"--color-reseda-green-600",value:"150 154 127"},{name:"700",cssVar:"--color-reseda-green-700",value:"177 180 159"},{name:"800",cssVar:"--color-reseda-green-800",value:"203 205 191"},{name:"900",cssVar:"--color-reseda-green-900",value:"229 230 223"}]},{title:"Moss Green",colors:[{name:"DEFAULT",cssVar:"--color-moss-green",value:"155 155 122"},{name:"100",cssVar:"--color-moss-green-100",value:"31 31 24"},{name:"200",cssVar:"--color-moss-green-200",value:"63 63 47"},{name:"300",cssVar:"--color-moss-green-300",value:"94 94 71"},{name:"400",cssVar:"--color-moss-green-400",value:"126 126 95"},{name:"500",cssVar:"--color-moss-green-500",value:"155 155 122"},{name:"600",cssVar:"--color-moss-green-600",value:"174 174 148"},{name:"700",cssVar:"--color-moss-green-700",value:"194 194 175"},{name:"800",cssVar:"--color-moss-green-800",value:"215 215 202"},{name:"900",cssVar:"--color-moss-green-900",value:"235 235 228"}]},{title:"Khaki",colors:[{name:"DEFAULT",cssVar:"--color-khaki",value:"186 165 135"},{name:"100",cssVar:"--color-khaki-100",value:"41 34 23"},{name:"200",cssVar:"--color-khaki-200",value:"82 67 47"},{name:"300",cssVar:"--color-khaki-300",value:"122 101 70"},{name:"400",cssVar:"--color-khaki-400",value:"163 134 94"},{name:"500",cssVar:"--color-khaki-500",value:"186 165 135"},{name:"600",cssVar:"--color-khaki-600",value:"200 183 159"},{name:"700",cssVar:"--color-khaki-700",value:"214 201 183"},{name:"800",cssVar:"--color-khaki-800",value:"227 219 207"},{name:"900",cssVar:"--color-khaki-900",value:"241 237 231"}]},{title:"Desert Sand",colors:[{name:"DEFAULT",cssVar:"--color-desert-sand",value:"217 174 148"},{name:"100",cssVar:"--color-desert-sand-100",value:"54 33 19"},{name:"200",cssVar:"--color-desert-sand-200",value:"109 65 38"},{name:"300",cssVar:"--color-desert-sand-300",value:"163 98 57"},{name:"400",cssVar:"--color-desert-sand-400",value:"199 135 95"},{name:"500",cssVar:"--color-desert-sand-500",value:"217 174 148"},{name:"600",cssVar:"--color-desert-sand-600",value:"225 191 170"},{name:"700",cssVar:"--color-desert-sand-700",value:"233 207 192"},{name:"800",cssVar:"--color-desert-sand-800",value:"240 223 213"},{name:"900",cssVar:"--color-desert-sand-900",value:"248 239 234"}]},{title:"Peach Yellow",colors:[{name:"DEFAULT",cssVar:"--color-peach-yellow",value:"241 220 167"},{name:"100",cssVar:"--color-peach-yellow-100",value:"71 54 11"},{name:"200",cssVar:"--color-peach-yellow-200",value:"141 107 22"},{name:"300",cssVar:"--color-peach-yellow-300",value:"212 161 33"},{name:"400",cssVar:"--color-peach-yellow-400",value:"230 192 96"},{name:"500",cssVar:"--color-peach-yellow-500",value:"241 220 167"},{name:"600",cssVar:"--color-peach-yellow-600",value:"244 227 184"},{name:"700",cssVar:"--color-peach-yellow-700",value:"247 234 202"},{name:"800",cssVar:"--color-peach-yellow-800",value:"249 241 220"},{name:"900",cssVar:"--color-peach-yellow-900",value:"252 248 237"}]},{title:"Sunglow",colors:[{name:"DEFAULT",cssVar:"--color-sunglow",value:"255 203 105"},{name:"100",cssVar:"--color-sunglow-100",value:"72 47 0"},{name:"200",cssVar:"--color-sunglow-200",value:"145 94 0"},{name:"300",cssVar:"--color-sunglow-300",value:"217 141 0"},{name:"400",cssVar:"--color-sunglow-400",value:"255 178 35"},{name:"500",cssVar:"--color-sunglow-500",value:"255 203 105"},{name:"600",cssVar:"--color-sunglow-600",value:"255 214 137"},{name:"700",cssVar:"--color-sunglow-700",value:"255 224 166"},{name:"800",cssVar:"--color-sunglow-800",value:"255 234 196"},{name:"900",cssVar:"--color-sunglow-900",value:"255 245 225"}]},{title:"Earth Yellow",colors:[{name:"DEFAULT",cssVar:"--color-earth-yellow",value:"232 172 101"},{name:"100",cssVar:"--color-earth-yellow-100",value:"58 36 9"},{name:"200",cssVar:"--color-earth-yellow-200",value:"115 71 17"},{name:"300",cssVar:"--color-earth-yellow-300",value:"173 107 26"},{name:"400",cssVar:"--color-earth-yellow-400",value:"223 142 42"},{name:"500",cssVar:"--color-earth-yellow-500",value:"232 172 101"},{name:"600",cssVar:"--color-earth-yellow-600",value:"236 189 131"},{name:"700",cssVar:"--color-earth-yellow-700",value:"241 205 162"},{name:"800",cssVar:"--color-earth-yellow-800",value:"246 222 193"},{name:"900",cssVar:"--color-earth-yellow-900",value:"250 238 224"}]},{title:"Persian Orange",colors:[{name:"DEFAULT",cssVar:"--color-persian-orange",value:"208 140 96"},{name:"100",cssVar:"--color-persian-orange-100",value:"47 27 14"},{name:"200",cssVar:"--color-persian-orange-200",value:"94 55 28"},{name:"300",cssVar:"--color-persian-orange-300",value:"141 82 42"},{name:"400",cssVar:"--color-persian-orange-400",value:"188 109 56"},{name:"500",cssVar:"--color-persian-orange-500",value:"208 140 96"},{name:"600",cssVar:"--color-persian-orange-600",value:"217 165 129"},{name:"700",cssVar:"--color-persian-orange-700",value:"227 187 161"},{name:"800",cssVar:"--color-persian-orange-800",value:"236 210 192"},{name:"900",cssVar:"--color-persian-orange-900",value:"246 232 224"}]},{title:"Chamoisee",colors:[{name:"DEFAULT",cssVar:"--color-chamoisee",value:"181 132 99"},{name:"100",cssVar:"--color-chamoisee-100",value:"38 26 18"},{name:"200",cssVar:"--color-chamoisee-200",value:"76 52 36"},{name:"300",cssVar:"--color-chamoisee-300",value:"114 78 54"},{name:"400",cssVar:"--color-chamoisee-400",value:"153 104 72"},{name:"500",cssVar:"--color-chamoisee-500",value:"181 132 99"},{name:"600",cssVar:"--color-chamoisee-600",value:"196 157 130"},{name:"700",cssVar:"--color-chamoisee-700",value:"211 181 161"},{name:"800",cssVar:"--color-chamoisee-800",value:"226 206 193"},{name:"900",cssVar:"--color-chamoisee-900",value:"240 230 224"}]},{title:"Beaver",colors:[{name:"DEFAULT",cssVar:"--color-beaver",value:"153 123 102"},{name:"100",cssVar:"--color-beaver-100",value:"31 25 20"},{name:"200",cssVar:"--color-beaver-200",value:"61 49 41"},{name:"300",cssVar:"--color-beaver-300",value:"92 74 61"},{name:"400",cssVar:"--color-beaver-400",value:"122 99 82"},{name:"500",cssVar:"--color-beaver-500",value:"153 123 102"},{name:"600",cssVar:"--color-beaver-600",value:"173 150 133"},{name:"700",cssVar:"--color-beaver-700",value:"194 176 163"},{name:"800",cssVar:"--color-beaver-800",value:"214 202 194"},{name:"900",cssVar:"--color-beaver-900",value:"235 229 224"}]}],t=[{name:"Background",cssVar:"--color-background"},{name:"Surface",cssVar:"--color-surface"},{name:"Surface Variant",cssVar:"--color-surface-variant"},{name:"Text Primary",cssVar:"--color-text-primary"},{name:"Text Secondary",cssVar:"--color-text-secondary"},{name:"Text Muted",cssVar:"--color-text-muted"},{name:"Border",cssVar:"--color-border"},{name:"Border Subtle",cssVar:"--color-border-subtle"}];return e.jsxs("div",{className:"p-8 space-y-8 bg-background min-h-screen",children:[e.jsxs("div",{className:"text-center space-y-2",children:[e.jsx("h1",{className:"text-3xl font-bold text-text-primary",children:"AceMyJob Color Palette"}),e.jsx("p",{className:"text-text-secondary",children:"Your complete design system color reference"})]}),l.map(n=>e.jsx(U,{...n},n.title)),s.map(n=>e.jsx(U,{...n},n.title)),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-text-primary border-b border-border-subtle pb-2",children:"Semantic Colors (Theme-aware)"}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4",children:t.map(n=>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:[e.jsx("div",{className:`w-16 h-16 rounded-lg border border-border shadow-sm ${F(n.cssVar)}`}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-sm font-medium text-text-primary",children:n.name}),e.jsx("div",{className:"text-xs text-text-muted font-mono",children:n.cssVar})]})]},n.name))})]}),e.jsx("div",{className:"text-center pt-8 border-t border-border-subtle",children:e.jsx("p",{className:"text-text-muted text-sm",children:"Toggle between light and dark themes to see how semantic colors adapt"})})]})},W=u.createContext(void 0),q=({children:s,defaultTheme:l="system",storageKey:t="acemyjob-ui-theme"})=>{const[n,c]=u.useState(l),[o,h]=u.useState("light"),[g,w]=u.useState(!1);u.useEffect(()=>{const f=localStorage.getItem(t);f&&c(f),w(!0)},[t]),u.useEffect(()=>{if(!g)return;const f=window.document.documentElement,b=()=>{let x;n==="system"?x=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":x=n,h(x),f.classList.remove("light","dark"),f.classList.add(x)};if(b(),n==="system"){const x=window.matchMedia("(prefers-color-scheme: dark)"),y=()=>b();return x.addEventListener("change",y),()=>x.removeEventListener("change",y)}},[n,g]);const j={theme:n,setTheme:f=>{localStorage.setItem(t,f),c(f)},resolvedTheme:o};return e.jsx(W.Provider,{value:j,children:s})},ie=()=>{const s=u.useContext(W);if(s===void 0)throw new Error("useTheme must be used within a ThemeProvider");return s},ue=u.createContext(void 0),de=()=>{const s=u.useContext(ue);if(s===void 0)throw new Error("useTheme must be used within a ThemeProvider");return s},H=()=>{const{theme:s,setTheme:l}=de(),[t,n]=u.useState(!1);if(u.useEffect(()=>{n(!0)},[]),!t)return e.jsxs("button",{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","aria-label":"Loading theme toggle",children:[e.jsx("div",{className:"w-4 h-4 animate-pulse bg-text-muted rounded"}),e.jsx("span",{className:"hidden sm:inline",children:"Loading..."})]});const c=()=>{l(s==="light"?"dark":s==="dark"?"system":"light")},o=()=>{switch(s){case"light":return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children: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"})});case"dark":return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})});case"system":return e.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children: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"})})}},h=()=>{switch(s){case"light":return"Light";case"dark":return"Dark";case"system":return"System"}};return e.jsxs("button",{onClick:c,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","aria-label":`Current theme: ${h()}. Click to cycle themes.`,children:[o(),e.jsx("span",{className:"hidden sm:inline",children:h()})]})},me=()=>e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"fixed top-4 right-4 z-10",children:e.jsx(H,{})}),e.jsx($,{})]}),ve=()=>e.jsx(q,{defaultTheme:"system",storageKey:"acemyjob-demo-theme",children:e.jsx(me,{})}),J={variant:{default:"bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",destructive:"bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",outline:"border border-border bg-background hover:bg-surface-variant hover:text-text-primary focus-visible:ring-reseda-green-500",secondary:"bg-khaki-500 text-white hover:bg-khaki-600 focus-visible:ring-khaki-500",ghost:"hover:bg-surface-variant hover:text-text-primary focus-visible:ring-reseda-green-500",link:"text-reseda-green-500 underline-offset-4 hover:underline focus-visible:ring-reseda-green-500",none:""},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-md px-10 text-base",icon:"h-10 w-10"}},he="inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",xe=(...s)=>s.filter(Boolean).join(" "),_=u.forwardRef(({className:s,variant:l="default",size:t="default",fullWidth:n=!1,loading:c=!1,leftIcon:o,rightIcon:h,children:g,disabled:w,...j},f)=>{const b=w||c,x=xe(he,J.variant[l],J.size[t],n?"w-full":"",s);return e.jsxs("button",{className:x,ref:f,disabled:b,...j,children:[c&&e.jsxs("svg",{className:"mr-2 h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),!c&&o&&e.jsx("span",{className:"mr-2",children:o}),g,!c&&h&&e.jsx("span",{className:"ml-2",children:h})]})});_.displayName="Button";const G={provider:{linkedin:"bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"},iconPosition:{left:"flex-row",right:"flex-row-reverse",only:"justify-center"}},fe=(...s)=>s.filter(Boolean).join(" "),X=u.forwardRef(({className:s,provider:l,iconPosition:t="left",icon:n,showText:c=!0,children:o,size:h="default",fullWidth:g=!0,...w},j)=>{const b=n||{linkedin:e.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",children: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"})})}[l],y=o||(c?{linkedin:"Continue with LinkedIn"}[l]:""),R=fe("relative overflow-hidden transition-all duration-200",G.provider[l],G.iconPosition[t],s);return e.jsxs(_,{ref:j,variant:"none",className:R,size:h,fullWidth:g,leftIcon:t==="left"?b:void 0,rightIcon:t==="right"?b:void 0,...w,children:[t==="only"&&b,t!=="only"&&y]})});X.displayName="SocialButton",d.Button=_,d.ColorPalette=$,d.Demo=ve,d.Sidebar=te,d.SocialButton=X,d.ThemeProvider=q,d.ThemeToggle=H,d.useTheme=ie,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
package/dist/index.d.ts CHANGED
@@ -5,3 +5,5 @@ export { ColorPalette } from './component/ColorPalette';
5
5
  export { Demo } from './Demo';
6
6
  export { ThemeProvider, useTheme, ThemeToggle } from './theme';
7
7
  export type { Theme, ThemeContextType, ThemeProviderProps } from './theme';
8
+ export { Button, SocialButton } from './component/Button';
9
+ export type { ButtonProps, SocialButtonProps } from './component/Button';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acemyjob-ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A React component library for job search and career management applications",
5
5
  "keywords": [
6
6
  "react",