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