acemyjob-ui 0.7.0 → 0.9.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 +368 -263
- package/dist/acemyjob-ui.umd.js +4 -4
- package/dist/component/Alert/index.d.ts +12 -0
- package/dist/component/Badge/index.d.ts +15 -0
- package/dist/index.d.ts +4 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/acemyjob-ui.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import * as R from "react";
|
|
2
|
+
import D, { useState as N, createContext as xe, useEffect as B, useContext as ve } from "react";
|
|
3
|
+
import { Dialog as fe, DialogBackdrop as he, DialogPanel as ge, TransitionChild as be } from "@headlessui/react";
|
|
4
|
+
import { XMarkIcon as pe, Bars3Icon as je, ChevronDownIcon as we, InformationCircleIcon as Ve, ExclamationCircleIcon as ye, XCircleIcon as Ne, CheckCircleIcon as ke } from "@heroicons/react/24/outline";
|
|
4
5
|
var E = { exports: {} }, k = {};
|
|
5
6
|
/**
|
|
6
7
|
* @license React
|
|
@@ -12,26 +13,26 @@ var E = { exports: {} }, k = {};
|
|
|
12
13
|
* LICENSE file in the root directory of this source tree.
|
|
13
14
|
*/
|
|
14
15
|
var W;
|
|
15
|
-
function
|
|
16
|
+
function Te() {
|
|
16
17
|
if (W) return k;
|
|
17
18
|
W = 1;
|
|
18
19
|
var s = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment");
|
|
19
|
-
function
|
|
20
|
+
function t(o, l, n) {
|
|
20
21
|
var i = null;
|
|
21
|
-
if (
|
|
22
|
-
|
|
23
|
-
for (var
|
|
24
|
-
|
|
25
|
-
} else
|
|
26
|
-
return l =
|
|
22
|
+
if (n !== void 0 && (i = "" + n), l.key !== void 0 && (i = "" + l.key), "key" in l) {
|
|
23
|
+
n = {};
|
|
24
|
+
for (var u in l)
|
|
25
|
+
u !== "key" && (n[u] = l[u]);
|
|
26
|
+
} else n = l;
|
|
27
|
+
return l = n.ref, {
|
|
27
28
|
$$typeof: s,
|
|
28
29
|
type: o,
|
|
29
30
|
key: i,
|
|
30
31
|
ref: l !== void 0 ? l : null,
|
|
31
|
-
props:
|
|
32
|
+
props: n
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
return k.Fragment = a, k.jsx =
|
|
35
|
+
return k.Fragment = a, k.jsx = t, k.jsxs = t, k;
|
|
35
36
|
}
|
|
36
37
|
var T = {};
|
|
37
38
|
/**
|
|
@@ -44,41 +45,41 @@ var T = {};
|
|
|
44
45
|
* LICENSE file in the root directory of this source tree.
|
|
45
46
|
*/
|
|
46
47
|
var G;
|
|
47
|
-
function
|
|
48
|
+
function Ee() {
|
|
48
49
|
return G || (G = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
50
|
function s(r) {
|
|
50
51
|
if (r == null) return null;
|
|
51
52
|
if (typeof r == "function")
|
|
52
|
-
return r.$$typeof ===
|
|
53
|
+
return r.$$typeof === ue ? null : r.displayName || r.name || null;
|
|
53
54
|
if (typeof r == "string") return r;
|
|
54
55
|
switch (r) {
|
|
55
|
-
case
|
|
56
|
+
case _:
|
|
56
57
|
return "Fragment";
|
|
57
|
-
case
|
|
58
|
+
case se:
|
|
58
59
|
return "Profiler";
|
|
59
|
-
case
|
|
60
|
+
case re:
|
|
60
61
|
return "StrictMode";
|
|
61
62
|
case ne:
|
|
62
63
|
return "Suspense";
|
|
63
|
-
case
|
|
64
|
+
case le:
|
|
64
65
|
return "SuspenseList";
|
|
65
|
-
case
|
|
66
|
+
case ie:
|
|
66
67
|
return "Activity";
|
|
67
68
|
}
|
|
68
69
|
if (typeof r == "object")
|
|
69
70
|
switch (typeof r.tag == "number" && console.error(
|
|
70
71
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
71
72
|
), r.$$typeof) {
|
|
72
|
-
case
|
|
73
|
+
case C:
|
|
73
74
|
return "Portal";
|
|
74
|
-
case
|
|
75
|
+
case oe:
|
|
75
76
|
return (r.displayName || "Context") + ".Provider";
|
|
76
|
-
case
|
|
77
|
+
case ae:
|
|
77
78
|
return (r._context.displayName || "Context") + ".Consumer";
|
|
78
|
-
case
|
|
79
|
+
case te:
|
|
79
80
|
var c = r.render;
|
|
80
81
|
return r = r.displayName, r || (r = c.displayName || c.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
|
|
81
|
-
case
|
|
82
|
+
case ce:
|
|
82
83
|
return c = r.displayName || null, c !== null ? c : s(r.type) || "Memo";
|
|
83
84
|
case S:
|
|
84
85
|
c = r._payload, r = r._init;
|
|
@@ -92,7 +93,7 @@ function we() {
|
|
|
92
93
|
function a(r) {
|
|
93
94
|
return "" + r;
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function t(r) {
|
|
96
97
|
try {
|
|
97
98
|
a(r);
|
|
98
99
|
var c = !1;
|
|
@@ -101,16 +102,16 @@ function we() {
|
|
|
101
102
|
}
|
|
102
103
|
if (c) {
|
|
103
104
|
c = console;
|
|
104
|
-
var
|
|
105
|
-
return
|
|
105
|
+
var d = c.error, x = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
106
|
+
return d.call(
|
|
106
107
|
c,
|
|
107
108
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
|
-
|
|
109
|
+
x
|
|
109
110
|
), a(r);
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
113
|
function o(r) {
|
|
113
|
-
if (r ===
|
|
114
|
+
if (r === _) return "<>";
|
|
114
115
|
if (typeof r == "object" && r !== null && r.$$typeof === S)
|
|
115
116
|
return "<...>";
|
|
116
117
|
try {
|
|
@@ -121,47 +122,47 @@ function we() {
|
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
function l() {
|
|
124
|
-
var r =
|
|
125
|
+
var r = A.A;
|
|
125
126
|
return r === null ? null : r.getOwner();
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
+
function n() {
|
|
128
129
|
return Error("react-stack-top-frame");
|
|
129
130
|
}
|
|
130
131
|
function i(r) {
|
|
131
|
-
if (
|
|
132
|
+
if (I.call(r, "key")) {
|
|
132
133
|
var c = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
133
134
|
if (c && c.isReactWarning) return !1;
|
|
134
135
|
}
|
|
135
136
|
return r.key !== void 0;
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function u(r, c) {
|
|
139
|
+
function d() {
|
|
140
|
+
M || (M = !0, console.error(
|
|
140
141
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
141
142
|
c
|
|
142
143
|
));
|
|
143
144
|
}
|
|
144
|
-
|
|
145
|
-
get:
|
|
145
|
+
d.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
146
|
+
get: d,
|
|
146
147
|
configurable: !0
|
|
147
148
|
});
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function p() {
|
|
150
151
|
var r = s(this.type);
|
|
151
|
-
return
|
|
152
|
+
return z[r] || (z[r] = !0, console.error(
|
|
152
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
153
154
|
)), r = this.props.ref, r !== void 0 ? r : null;
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
157
|
-
$$typeof:
|
|
156
|
+
function j(r, c, d, x, w, b, O, P) {
|
|
157
|
+
return d = b.ref, r = {
|
|
158
|
+
$$typeof: V,
|
|
158
159
|
type: r,
|
|
159
160
|
key: c,
|
|
160
161
|
props: b,
|
|
161
|
-
_owner:
|
|
162
|
-
}, (
|
|
162
|
+
_owner: w
|
|
163
|
+
}, (d !== void 0 ? d : null) !== null ? Object.defineProperty(r, "ref", {
|
|
163
164
|
enumerable: !1,
|
|
164
|
-
get:
|
|
165
|
+
get: p
|
|
165
166
|
}) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
|
|
166
167
|
configurable: !1,
|
|
167
168
|
enumerable: !1,
|
|
@@ -184,104 +185,104 @@ function we() {
|
|
|
184
185
|
value: P
|
|
185
186
|
}), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
-
var
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
if (
|
|
192
|
-
for (
|
|
193
|
-
g(
|
|
194
|
-
Object.freeze && Object.freeze(
|
|
188
|
+
function m(r, c, d, x, w, b, O, P) {
|
|
189
|
+
var v = c.children;
|
|
190
|
+
if (v !== void 0)
|
|
191
|
+
if (x)
|
|
192
|
+
if (de(v)) {
|
|
193
|
+
for (x = 0; x < v.length; x++)
|
|
194
|
+
g(v[x]);
|
|
195
|
+
Object.freeze && Object.freeze(v);
|
|
195
196
|
} else
|
|
196
197
|
console.error(
|
|
197
198
|
"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
199
|
);
|
|
199
|
-
else g(
|
|
200
|
-
if (
|
|
201
|
-
|
|
202
|
-
var y = Object.keys(c).filter(function(
|
|
203
|
-
return
|
|
200
|
+
else g(v);
|
|
201
|
+
if (I.call(c, "key")) {
|
|
202
|
+
v = s(r);
|
|
203
|
+
var y = Object.keys(c).filter(function(me) {
|
|
204
|
+
return me !== "key";
|
|
204
205
|
});
|
|
205
|
-
|
|
206
|
+
x = 0 < y.length ? "{key: someKey, " + y.join(": ..., ") + ": ...}" : "{key: someKey}", U[v + x] || (y = 0 < y.length ? "{" + y.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
207
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
208
|
let props = %s;
|
|
208
209
|
<%s {...props} />
|
|
209
210
|
React keys must be passed directly to JSX without using spread:
|
|
210
211
|
let props = %s;
|
|
211
212
|
<%s key={someKey} {...props} />`,
|
|
212
|
-
|
|
213
|
-
|
|
213
|
+
x,
|
|
214
|
+
v,
|
|
214
215
|
y,
|
|
215
|
-
|
|
216
|
-
), U[
|
|
216
|
+
v
|
|
217
|
+
), U[v + x] = !0);
|
|
217
218
|
}
|
|
218
|
-
if (
|
|
219
|
-
|
|
220
|
-
for (var
|
|
221
|
-
|
|
222
|
-
} else
|
|
223
|
-
return
|
|
224
|
-
|
|
219
|
+
if (v = null, d !== void 0 && (t(d), v = "" + d), i(c) && (t(c.key), v = "" + c.key), "key" in c) {
|
|
220
|
+
d = {};
|
|
221
|
+
for (var L in c)
|
|
222
|
+
L !== "key" && (d[L] = c[L]);
|
|
223
|
+
} else d = c;
|
|
224
|
+
return v && u(
|
|
225
|
+
d,
|
|
225
226
|
typeof r == "function" ? r.displayName || r.name || "Unknown" : r
|
|
226
|
-
),
|
|
227
|
+
), j(
|
|
227
228
|
r,
|
|
228
|
-
|
|
229
|
+
v,
|
|
229
230
|
b,
|
|
230
|
-
|
|
231
|
+
w,
|
|
231
232
|
l(),
|
|
232
|
-
|
|
233
|
+
d,
|
|
233
234
|
O,
|
|
234
235
|
P
|
|
235
236
|
);
|
|
236
237
|
}
|
|
237
238
|
function g(r) {
|
|
238
|
-
typeof r == "object" && r !== null && r.$$typeof ===
|
|
239
|
+
typeof r == "object" && r !== null && r.$$typeof === V && r._store && (r._store.validated = 1);
|
|
239
240
|
}
|
|
240
|
-
var
|
|
241
|
+
var f = D, V = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), re = Symbol.for("react.strict_mode"), se = Symbol.for("react.profiler"), ae = Symbol.for("react.consumer"), oe = Symbol.for("react.context"), te = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), le = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), ue = Symbol.for("react.client.reference"), A = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, de = Array.isArray, $ = console.createTask ? console.createTask : function() {
|
|
241
242
|
return null;
|
|
242
243
|
};
|
|
243
|
-
|
|
244
|
+
f = {
|
|
244
245
|
"react-stack-bottom-frame": function(r) {
|
|
245
246
|
return r();
|
|
246
247
|
}
|
|
247
248
|
};
|
|
248
|
-
var
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
)(),
|
|
252
|
-
T.Fragment =
|
|
253
|
-
var b = 1e4 >
|
|
254
|
-
return
|
|
249
|
+
var M, z = {}, F = f["react-stack-bottom-frame"].bind(
|
|
250
|
+
f,
|
|
251
|
+
n
|
|
252
|
+
)(), Y = $(o(n)), U = {};
|
|
253
|
+
T.Fragment = _, T.jsx = function(r, c, d, x, w) {
|
|
254
|
+
var b = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
255
|
+
return m(
|
|
255
256
|
r,
|
|
256
257
|
c,
|
|
257
|
-
u,
|
|
258
|
-
!1,
|
|
259
258
|
d,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
259
|
+
!1,
|
|
260
|
+
x,
|
|
261
|
+
w,
|
|
262
|
+
b ? Error("react-stack-top-frame") : F,
|
|
263
|
+
b ? $(o(r)) : Y
|
|
263
264
|
);
|
|
264
|
-
}, T.jsxs = function(r, c,
|
|
265
|
-
var b = 1e4 >
|
|
266
|
-
return
|
|
265
|
+
}, T.jsxs = function(r, c, d, x, w) {
|
|
266
|
+
var b = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
267
|
+
return m(
|
|
267
268
|
r,
|
|
268
269
|
c,
|
|
269
|
-
u,
|
|
270
|
-
!0,
|
|
271
270
|
d,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
271
|
+
!0,
|
|
272
|
+
x,
|
|
273
|
+
w,
|
|
274
|
+
b ? Error("react-stack-top-frame") : F,
|
|
275
|
+
b ? $(o(r)) : Y
|
|
275
276
|
);
|
|
276
277
|
};
|
|
277
278
|
}()), T;
|
|
278
279
|
}
|
|
279
280
|
var J;
|
|
280
|
-
function
|
|
281
|
-
return J || (J = 1, process.env.NODE_ENV === "production" ? E.exports =
|
|
281
|
+
function Re() {
|
|
282
|
+
return J || (J = 1, process.env.NODE_ENV === "production" ? E.exports = Te() : E.exports = Ee()), E.exports;
|
|
282
283
|
}
|
|
283
|
-
var e =
|
|
284
|
-
const
|
|
284
|
+
var e = Re();
|
|
285
|
+
const Ce = {
|
|
285
286
|
bg: "bg-indigo-600",
|
|
286
287
|
activeBg: "bg-indigo-700",
|
|
287
288
|
text: "text-indigo-200",
|
|
@@ -289,20 +290,20 @@ const Ne = {
|
|
|
289
290
|
hoverBg: "hover:bg-indigo-700",
|
|
290
291
|
hoverText: "hover:text-white"
|
|
291
292
|
};
|
|
292
|
-
function
|
|
293
|
+
function h(...s) {
|
|
293
294
|
return s.filter(Boolean).join(" ");
|
|
294
295
|
}
|
|
295
|
-
function
|
|
296
|
-
const [
|
|
296
|
+
function X({ item: s, colorScheme: a }) {
|
|
297
|
+
const [t, o] = N(s.current || s.children?.some((n) => n.current)), l = s.children && s.children.length > 0;
|
|
297
298
|
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
298
299
|
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
299
300
|
"a",
|
|
300
301
|
{
|
|
301
302
|
href: l ? void 0 : s.href,
|
|
302
|
-
onClick: (
|
|
303
|
-
l && (
|
|
303
|
+
onClick: (n) => {
|
|
304
|
+
l && (n.preventDefault(), o(!t));
|
|
304
305
|
},
|
|
305
|
-
className:
|
|
306
|
+
className: h(
|
|
306
307
|
s.current ? `${a.activeBg} ${a.activeText}` : `${a.text} ${a.hoverBg} ${a.hoverText}`,
|
|
307
308
|
"group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
|
|
308
309
|
l ? "cursor-pointer" : ""
|
|
@@ -313,7 +314,7 @@ function H({ item: s, colorScheme: a }) {
|
|
|
313
314
|
s.icon,
|
|
314
315
|
{
|
|
315
316
|
"aria-hidden": "true",
|
|
316
|
-
className:
|
|
317
|
+
className: h(
|
|
317
318
|
s.current ? a.activeText : `${a.text} group-${a.hoverText}`,
|
|
318
319
|
"size-6 shrink-0"
|
|
319
320
|
)
|
|
@@ -322,11 +323,11 @@ function H({ item: s, colorScheme: a }) {
|
|
|
322
323
|
s.name
|
|
323
324
|
] }),
|
|
324
325
|
l && /* @__PURE__ */ e.jsx(
|
|
325
|
-
|
|
326
|
+
we,
|
|
326
327
|
{
|
|
327
|
-
className:
|
|
328
|
+
className: h(
|
|
328
329
|
"size-5 shrink-0 transition-transform",
|
|
329
|
-
|
|
330
|
+
t ? "rotate-180" : "",
|
|
330
331
|
s.current ? a.activeText : a.text
|
|
331
332
|
)
|
|
332
333
|
}
|
|
@@ -334,35 +335,35 @@ function H({ item: s, colorScheme: a }) {
|
|
|
334
335
|
]
|
|
335
336
|
}
|
|
336
337
|
) }),
|
|
337
|
-
l &&
|
|
338
|
+
l && t && /* @__PURE__ */ e.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: s.children.map((n) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
|
|
338
339
|
"a",
|
|
339
340
|
{
|
|
340
|
-
href:
|
|
341
|
-
className:
|
|
342
|
-
|
|
341
|
+
href: n.href,
|
|
342
|
+
className: h(
|
|
343
|
+
n.current ? `${a.activeBg} ${a.activeText}` : `${a.text} ${a.hoverBg} ${a.hoverText}`,
|
|
343
344
|
"group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
|
|
344
345
|
),
|
|
345
346
|
children: [
|
|
346
347
|
/* @__PURE__ */ e.jsx(
|
|
347
|
-
|
|
348
|
+
n.icon,
|
|
348
349
|
{
|
|
349
350
|
"aria-hidden": "true",
|
|
350
|
-
className:
|
|
351
|
-
|
|
351
|
+
className: h(
|
|
352
|
+
n.current ? a.activeText : `${a.text} group-${a.hoverText}`,
|
|
352
353
|
"size-5 shrink-0"
|
|
353
354
|
)
|
|
354
355
|
}
|
|
355
356
|
),
|
|
356
|
-
|
|
357
|
+
n.name
|
|
357
358
|
]
|
|
358
359
|
}
|
|
359
|
-
) },
|
|
360
|
+
) }, n.name)) })
|
|
360
361
|
] });
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
-
const [l,
|
|
363
|
+
function We({ company: s, profile: a, navigation: t, colorScheme: o = Ce }) {
|
|
364
|
+
const [l, n] = N(!1);
|
|
364
365
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
365
|
-
/* @__PURE__ */ e.jsxs(
|
|
366
|
+
/* @__PURE__ */ e.jsxs(fe, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
|
|
366
367
|
/* @__PURE__ */ e.jsx(
|
|
367
368
|
he,
|
|
368
369
|
{
|
|
@@ -371,16 +372,16 @@ function Se({ company: s, profile: a, navigation: n, colorScheme: o = Ne }) {
|
|
|
371
372
|
}
|
|
372
373
|
),
|
|
373
374
|
/* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
|
|
374
|
-
|
|
375
|
+
ge,
|
|
375
376
|
{
|
|
376
377
|
transition: !0,
|
|
377
378
|
className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
|
|
378
379
|
children: [
|
|
379
|
-
/* @__PURE__ */ e.jsx(
|
|
380
|
+
/* @__PURE__ */ e.jsx(be, { children: /* @__PURE__ */ e.jsx("div", { className: "absolute top-0 left-full flex w-16 justify-center pt-5 duration-300 ease-in-out data-closed:opacity-0", children: /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!1), className: "-m-2.5 p-2.5", children: [
|
|
380
381
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
|
|
381
|
-
/* @__PURE__ */ e.jsx(
|
|
382
|
+
/* @__PURE__ */ e.jsx(pe, { "aria-hidden": "true", className: "size-6 text-white" })
|
|
382
383
|
] }) }) }),
|
|
383
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
384
|
+
/* @__PURE__ */ e.jsxs("div", { className: h("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", o.bg), children: [
|
|
384
385
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
385
386
|
"img",
|
|
386
387
|
{
|
|
@@ -389,13 +390,13 @@ function Se({ company: s, profile: a, navigation: n, colorScheme: o = Ne }) {
|
|
|
389
390
|
className: "h-8 w-auto"
|
|
390
391
|
}
|
|
391
392
|
) }),
|
|
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:
|
|
393
|
+
/* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((i) => /* @__PURE__ */ e.jsx(X, { item: i, colorScheme: o }, i.name)) }) }) }) })
|
|
393
394
|
] })
|
|
394
395
|
]
|
|
395
396
|
}
|
|
396
397
|
) })
|
|
397
398
|
] }),
|
|
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:
|
|
399
|
+
/* @__PURE__ */ e.jsx("div", { className: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col", children: /* @__PURE__ */ e.jsxs("div", { className: h("flex grow flex-col gap-y-5 overflow-y-auto px-6", o.bg), children: [
|
|
399
400
|
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
400
401
|
"img",
|
|
401
402
|
{
|
|
@@ -405,12 +406,12 @@ function Se({ company: s, profile: a, navigation: n, colorScheme: o = Ne }) {
|
|
|
405
406
|
}
|
|
406
407
|
) }),
|
|
407
408
|
/* @__PURE__ */ e.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ e.jsxs("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: [
|
|
408
|
-
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children:
|
|
409
|
+
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((i) => /* @__PURE__ */ e.jsx(X, { item: i, colorScheme: o }, i.name)) }) }),
|
|
409
410
|
/* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
|
|
410
411
|
"a",
|
|
411
412
|
{
|
|
412
413
|
href: "#",
|
|
413
|
-
className:
|
|
414
|
+
className: h(
|
|
414
415
|
"flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
|
|
415
416
|
o.activeText,
|
|
416
417
|
o.hoverBg
|
|
@@ -421,7 +422,7 @@ function Se({ company: s, profile: a, navigation: n, colorScheme: o = Ne }) {
|
|
|
421
422
|
{
|
|
422
423
|
alt: a.name,
|
|
423
424
|
src: a.image,
|
|
424
|
-
className:
|
|
425
|
+
className: h("size-8 rounded-full", o.activeBg)
|
|
425
426
|
}
|
|
426
427
|
),
|
|
427
428
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
@@ -431,12 +432,12 @@ function Se({ company: s, profile: a, navigation: n, colorScheme: o = Ne }) {
|
|
|
431
432
|
) })
|
|
432
433
|
] }) })
|
|
433
434
|
] }) }),
|
|
434
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
435
|
-
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () =>
|
|
435
|
+
/* @__PURE__ */ e.jsxs("div", { className: h("sticky top-0 z-40 flex items-center gap-x-6 px-4 py-4 shadow-xs sm:px-6 lg:hidden", o.bg), children: [
|
|
436
|
+
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className: h("-m-2.5 p-2.5 lg:hidden", o.text), children: [
|
|
436
437
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
|
|
437
|
-
/* @__PURE__ */ e.jsx(
|
|
438
|
+
/* @__PURE__ */ e.jsx(je, { "aria-hidden": "true", className: "size-6" })
|
|
438
439
|
] }),
|
|
439
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
440
|
+
/* @__PURE__ */ e.jsx("div", { className: h("flex-1 text-sm/6 font-semibold", o.activeText), children: "Dashboard" }),
|
|
440
441
|
/* @__PURE__ */ e.jsxs("a", { href: "#", children: [
|
|
441
442
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
442
443
|
/* @__PURE__ */ e.jsx(
|
|
@@ -444,20 +445,20 @@ function Se({ company: s, profile: a, navigation: n, colorScheme: o = Ne }) {
|
|
|
444
445
|
{
|
|
445
446
|
alt: a.name,
|
|
446
447
|
src: a.image,
|
|
447
|
-
className:
|
|
448
|
+
className: h("size-8 rounded-full", o.activeBg)
|
|
448
449
|
}
|
|
449
450
|
)
|
|
450
451
|
] })
|
|
451
452
|
] })
|
|
452
453
|
] }) });
|
|
453
454
|
}
|
|
454
|
-
const
|
|
455
|
-
const o = `rgb(${
|
|
455
|
+
const Q = (s) => s.replace("--color-", "bg-"), _e = ({ name: s, cssVar: a, value: t }) => {
|
|
456
|
+
const o = `rgb(${t})`;
|
|
456
457
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center space-y-2 p-3 rounded-lg border border-border-subtle bg-surface hover:bg-surface-variant transition-colors", children: [
|
|
457
458
|
/* @__PURE__ */ e.jsx(
|
|
458
459
|
"div",
|
|
459
460
|
{
|
|
460
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
461
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Q(a)}`
|
|
461
462
|
}
|
|
462
463
|
),
|
|
463
464
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
@@ -466,10 +467,10 @@ const Z = (s) => s.replace("--color-", "bg-"), ke = ({ name: s, cssVar: a, value
|
|
|
466
467
|
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: o })
|
|
467
468
|
] })
|
|
468
469
|
] });
|
|
469
|
-
},
|
|
470
|
+
}, H = ({ title: s, colors: a }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
470
471
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: s }),
|
|
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: a.map((
|
|
472
|
-
] }),
|
|
472
|
+
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-11 gap-4", children: a.map((t) => /* @__PURE__ */ e.jsx(_e, { ...t }, t.name)) })
|
|
473
|
+
] }), Ae = () => {
|
|
473
474
|
const s = [
|
|
474
475
|
{
|
|
475
476
|
title: "Success Colors (Green)",
|
|
@@ -670,7 +671,7 @@ const Z = (s) => s.replace("--color-", "bg-"), ke = ({ name: s, cssVar: a, value
|
|
|
670
671
|
{ name: "900", cssVar: "--color-beaver-900", value: "235 229 224" }
|
|
671
672
|
]
|
|
672
673
|
}
|
|
673
|
-
],
|
|
674
|
+
], t = [
|
|
674
675
|
{ name: "Background", cssVar: "--color-background" },
|
|
675
676
|
{ name: "Surface", cssVar: "--color-surface" },
|
|
676
677
|
{ name: "Surface Variant", cssVar: "--color-surface-variant" },
|
|
@@ -685,15 +686,15 @@ const Z = (s) => s.replace("--color-", "bg-"), ke = ({ name: s, cssVar: a, value
|
|
|
685
686
|
/* @__PURE__ */ e.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
|
|
686
687
|
/* @__PURE__ */ e.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
|
|
687
688
|
] }),
|
|
688
|
-
a.map((o) => /* @__PURE__ */ e.jsx(
|
|
689
|
-
s.map((o) => /* @__PURE__ */ e.jsx(
|
|
689
|
+
a.map((o) => /* @__PURE__ */ e.jsx(H, { ...o }, o.title)),
|
|
690
|
+
s.map((o) => /* @__PURE__ */ e.jsx(H, { ...o }, o.title)),
|
|
690
691
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
691
692
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: "Semantic Colors (Theme-aware)" }),
|
|
692
|
-
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children:
|
|
693
|
+
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: t.map((o) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center space-y-2 p-3 rounded-lg border border-border-subtle bg-surface hover:bg-surface-variant transition-colors", children: [
|
|
693
694
|
/* @__PURE__ */ e.jsx(
|
|
694
695
|
"div",
|
|
695
696
|
{
|
|
696
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
697
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Q(o.cssVar)}`
|
|
697
698
|
}
|
|
698
699
|
),
|
|
699
700
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
@@ -704,44 +705,44 @@ const Z = (s) => s.replace("--color-", "bg-"), ke = ({ name: s, cssVar: a, value
|
|
|
704
705
|
] }),
|
|
705
706
|
/* @__PURE__ */ e.jsx("div", { className: "text-center pt-8 border-t border-border-subtle", children: /* @__PURE__ */ e.jsx("p", { className: "text-text-muted text-sm", children: "Toggle between light and dark themes to see how semantic colors adapt" }) })
|
|
706
707
|
] });
|
|
707
|
-
}, K =
|
|
708
|
+
}, K = xe(void 0), $e = ({
|
|
708
709
|
children: s,
|
|
709
710
|
defaultTheme: a = "system",
|
|
710
|
-
storageKey:
|
|
711
|
+
storageKey: t = "acemyjob-ui-theme"
|
|
711
712
|
}) => {
|
|
712
|
-
const [o, l] = N(a), [
|
|
713
|
-
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
}, [
|
|
717
|
-
if (!
|
|
718
|
-
const
|
|
719
|
-
let
|
|
720
|
-
o === "system" ?
|
|
713
|
+
const [o, l] = N(a), [n, i] = N("light"), [u, p] = N(!1);
|
|
714
|
+
B(() => {
|
|
715
|
+
const m = localStorage.getItem(t);
|
|
716
|
+
m && l(m), p(!0);
|
|
717
|
+
}, [t]), B(() => {
|
|
718
|
+
if (!u) return;
|
|
719
|
+
const m = window.document.documentElement, g = () => {
|
|
720
|
+
let f;
|
|
721
|
+
o === "system" ? f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f = o, i(f), m.classList.remove("light", "dark"), m.classList.add(f);
|
|
721
722
|
};
|
|
722
723
|
if (g(), o === "system") {
|
|
723
|
-
const
|
|
724
|
-
return
|
|
724
|
+
const f = window.matchMedia("(prefers-color-scheme: dark)"), V = () => g();
|
|
725
|
+
return f.addEventListener("change", V), () => f.removeEventListener("change", V);
|
|
725
726
|
}
|
|
726
|
-
}, [o,
|
|
727
|
-
const
|
|
727
|
+
}, [o, u]);
|
|
728
|
+
const j = {
|
|
728
729
|
theme: o,
|
|
729
|
-
setTheme: (
|
|
730
|
-
localStorage.setItem(
|
|
730
|
+
setTheme: (m) => {
|
|
731
|
+
localStorage.setItem(t, m), l(m);
|
|
731
732
|
},
|
|
732
|
-
resolvedTheme:
|
|
733
|
+
resolvedTheme: n
|
|
733
734
|
};
|
|
734
|
-
return /* @__PURE__ */ e.jsx(K.Provider, { value:
|
|
735
|
-
},
|
|
735
|
+
return /* @__PURE__ */ e.jsx(K.Provider, { value: j, children: s });
|
|
736
|
+
}, Oe = () => {
|
|
736
737
|
const s = ve(K);
|
|
737
738
|
if (s === void 0)
|
|
738
739
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
739
740
|
return s;
|
|
740
|
-
},
|
|
741
|
-
const { theme: s, setTheme: a } =
|
|
742
|
-
if (
|
|
741
|
+
}, Pe = () => {
|
|
742
|
+
const { theme: s, setTheme: a } = Oe(), [t, o] = N(!1);
|
|
743
|
+
if (B(() => {
|
|
743
744
|
o(!0);
|
|
744
|
-
}, []), !
|
|
745
|
+
}, []), !t)
|
|
745
746
|
return /* @__PURE__ */ e.jsxs(
|
|
746
747
|
"button",
|
|
747
748
|
{
|
|
@@ -755,7 +756,7 @@ const Z = (s) => s.replace("--color-", "bg-"), ke = ({ name: s, cssVar: a, value
|
|
|
755
756
|
);
|
|
756
757
|
const l = () => {
|
|
757
758
|
a(s === "light" ? "dark" : s === "dark" ? "system" : "light");
|
|
758
|
-
},
|
|
759
|
+
}, n = () => {
|
|
759
760
|
switch (s) {
|
|
760
761
|
case "light":
|
|
761
762
|
return /* @__PURE__ */ e.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" }) });
|
|
@@ -781,15 +782,15 @@ const Z = (s) => s.replace("--color-", "bg-"), ke = ({ name: s, cssVar: a, value
|
|
|
781
782
|
className: "flex items-center gap-2 px-3 py-2 text-sm font-medium text-text-secondary hover:text-text-primary bg-surface hover:bg-surface-variant border border-border-subtle rounded-md transition-colors",
|
|
782
783
|
"aria-label": `Current theme: ${i()}. Click to cycle themes.`,
|
|
783
784
|
children: [
|
|
784
|
-
|
|
785
|
+
n(),
|
|
785
786
|
/* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: i() })
|
|
786
787
|
]
|
|
787
788
|
}
|
|
788
789
|
);
|
|
789
|
-
},
|
|
790
|
-
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(
|
|
791
|
-
/* @__PURE__ */ e.jsx(
|
|
792
|
-
] }),
|
|
790
|
+
}, Le = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
791
|
+
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Pe, {}) }),
|
|
792
|
+
/* @__PURE__ */ e.jsx(Ae, {})
|
|
793
|
+
] }), Ge = () => /* @__PURE__ */ e.jsx($e, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(Le, {}) }), q = {
|
|
793
794
|
variant: {
|
|
794
795
|
default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
|
|
795
796
|
destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
|
|
@@ -807,33 +808,33 @@ const Z = (s) => s.replace("--color-", "bg-"), ke = ({ name: s, cssVar: a, value
|
|
|
807
808
|
xl: "h-12 rounded-md px-10 text-base",
|
|
808
809
|
icon: "h-10 w-10"
|
|
809
810
|
}
|
|
810
|
-
},
|
|
811
|
+
}, Be = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", De = (...s) => s.filter(Boolean).join(" "), ee = D.forwardRef(
|
|
811
812
|
({
|
|
812
813
|
className: s,
|
|
813
814
|
variant: a = "default",
|
|
814
|
-
size:
|
|
815
|
+
size: t = "default",
|
|
815
816
|
fullWidth: o = !1,
|
|
816
817
|
loading: l = !1,
|
|
817
|
-
leftIcon:
|
|
818
|
+
leftIcon: n,
|
|
818
819
|
rightIcon: i,
|
|
819
|
-
children:
|
|
820
|
-
disabled:
|
|
821
|
-
...
|
|
822
|
-
},
|
|
823
|
-
const g =
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
820
|
+
children: u,
|
|
821
|
+
disabled: p,
|
|
822
|
+
...j
|
|
823
|
+
}, m) => {
|
|
824
|
+
const g = p || l, f = De(
|
|
825
|
+
Be,
|
|
826
|
+
q.variant[a],
|
|
827
|
+
q.size[t],
|
|
827
828
|
o ? "w-full" : "",
|
|
828
829
|
s
|
|
829
830
|
);
|
|
830
831
|
return /* @__PURE__ */ e.jsxs(
|
|
831
832
|
"button",
|
|
832
833
|
{
|
|
833
|
-
className:
|
|
834
|
-
ref:
|
|
834
|
+
className: f,
|
|
835
|
+
ref: m,
|
|
835
836
|
disabled: g,
|
|
836
|
-
...
|
|
837
|
+
...j,
|
|
837
838
|
children: [
|
|
838
839
|
l && /* @__PURE__ */ e.jsxs(
|
|
839
840
|
"svg",
|
|
@@ -865,16 +866,16 @@ const Z = (s) => s.replace("--color-", "bg-"), ke = ({ name: s, cssVar: a, value
|
|
|
865
866
|
]
|
|
866
867
|
}
|
|
867
868
|
),
|
|
868
|
-
!l &&
|
|
869
|
-
|
|
869
|
+
!l && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
|
|
870
|
+
u,
|
|
870
871
|
!l && i && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: i })
|
|
871
872
|
]
|
|
872
873
|
}
|
|
873
874
|
);
|
|
874
875
|
}
|
|
875
876
|
);
|
|
876
|
-
|
|
877
|
-
const
|
|
877
|
+
ee.displayName = "Button";
|
|
878
|
+
const Z = {
|
|
878
879
|
provider: {
|
|
879
880
|
linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
|
|
880
881
|
},
|
|
@@ -883,143 +884,247 @@ const Q = {
|
|
|
883
884
|
right: "flex-row-reverse",
|
|
884
885
|
only: "justify-center"
|
|
885
886
|
}
|
|
886
|
-
},
|
|
887
|
+
}, Se = (...s) => s.filter(Boolean).join(" "), Ie = D.forwardRef(
|
|
887
888
|
({
|
|
888
889
|
className: s,
|
|
889
890
|
provider: a,
|
|
890
|
-
iconPosition:
|
|
891
|
+
iconPosition: t = "left",
|
|
891
892
|
icon: o,
|
|
892
893
|
showText: l = !0,
|
|
893
|
-
children:
|
|
894
|
+
children: n,
|
|
894
895
|
size: i = "default",
|
|
895
|
-
fullWidth:
|
|
896
|
-
...
|
|
897
|
-
},
|
|
896
|
+
fullWidth: u = !0,
|
|
897
|
+
...p
|
|
898
|
+
}, j) => {
|
|
898
899
|
const g = o || {
|
|
899
900
|
linkedin: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e.jsx("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) })
|
|
900
|
-
}[a],
|
|
901
|
+
}[a], V = n || (l ? {
|
|
901
902
|
linkedin: "Continue with LinkedIn"
|
|
902
|
-
}[a] : ""),
|
|
903
|
+
}[a] : ""), C = Se(
|
|
903
904
|
"relative overflow-hidden transition-all duration-200",
|
|
904
|
-
|
|
905
|
-
|
|
905
|
+
Z.provider[a],
|
|
906
|
+
Z.iconPosition[t],
|
|
906
907
|
s
|
|
907
908
|
);
|
|
908
909
|
return /* @__PURE__ */ e.jsxs(
|
|
909
|
-
|
|
910
|
+
ee,
|
|
910
911
|
{
|
|
911
|
-
ref:
|
|
912
|
+
ref: j,
|
|
912
913
|
variant: "none",
|
|
913
|
-
className:
|
|
914
|
+
className: C,
|
|
914
915
|
size: i,
|
|
915
|
-
fullWidth:
|
|
916
|
-
leftIcon:
|
|
917
|
-
rightIcon:
|
|
918
|
-
...
|
|
916
|
+
fullWidth: u,
|
|
917
|
+
leftIcon: t === "left" ? g : void 0,
|
|
918
|
+
rightIcon: t === "right" ? g : void 0,
|
|
919
|
+
...p,
|
|
919
920
|
children: [
|
|
920
|
-
|
|
921
|
-
|
|
921
|
+
t === "only" && g,
|
|
922
|
+
t !== "only" && V
|
|
922
923
|
]
|
|
923
924
|
}
|
|
924
925
|
);
|
|
925
926
|
}
|
|
926
927
|
);
|
|
927
|
-
|
|
928
|
-
function
|
|
928
|
+
Ie.displayName = "SocialButton";
|
|
929
|
+
function Je({
|
|
929
930
|
children: s,
|
|
930
931
|
variant: a = "default",
|
|
931
|
-
isActive:
|
|
932
|
+
isActive: t = !1,
|
|
932
933
|
onClick: o,
|
|
933
934
|
className: l = ""
|
|
934
935
|
}) {
|
|
935
|
-
const
|
|
936
|
+
const n = "rounded-lg transition-all", i = {
|
|
936
937
|
default: "border border-border p-4",
|
|
937
938
|
surface: "bg-surface-variant p-4",
|
|
938
939
|
elevated: "bg-surface shadow-md p-6",
|
|
939
|
-
interactive: `border-2 p-4 cursor-pointer ${
|
|
940
|
+
interactive: `border-2 p-4 cursor-pointer ${t ? "border-success-500 bg-success-50" : "border-border bg-surface hover:border-border-subtle"}`
|
|
940
941
|
};
|
|
941
942
|
return /* @__PURE__ */ e.jsx(
|
|
942
943
|
"div",
|
|
943
944
|
{
|
|
944
|
-
className: `${
|
|
945
|
+
className: `${n} ${i[a]} ${l}`,
|
|
945
946
|
onClick: o,
|
|
946
947
|
role: o ? "button" : void 0,
|
|
947
948
|
tabIndex: o ? 0 : void 0,
|
|
948
|
-
onKeyDown: o ? (
|
|
949
|
-
(
|
|
949
|
+
onKeyDown: o ? (u) => {
|
|
950
|
+
(u.key === "Enter" || u.key === " ") && o();
|
|
950
951
|
} : void 0,
|
|
951
952
|
children: s
|
|
952
953
|
}
|
|
953
954
|
);
|
|
954
955
|
}
|
|
955
|
-
function
|
|
956
|
+
function Xe({
|
|
956
957
|
title: s,
|
|
957
958
|
children: a,
|
|
958
|
-
subtitle:
|
|
959
|
+
subtitle: t,
|
|
959
960
|
spacing: o = "normal",
|
|
960
961
|
className: l = ""
|
|
961
962
|
}) {
|
|
962
|
-
const
|
|
963
|
+
const n = {
|
|
963
964
|
compact: "space-y-3",
|
|
964
965
|
normal: "space-y-6",
|
|
965
966
|
spacious: "space-y-8"
|
|
966
967
|
};
|
|
967
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${
|
|
968
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${n[o]} ${l}`, children: [
|
|
968
969
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
969
970
|
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: s }),
|
|
970
|
-
|
|
971
|
+
t && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t })
|
|
971
972
|
] }),
|
|
972
973
|
a
|
|
973
974
|
] });
|
|
974
975
|
}
|
|
975
|
-
function
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
976
|
+
function He({
|
|
977
|
+
variant: s,
|
|
978
|
+
title: a,
|
|
979
|
+
message: t,
|
|
980
|
+
icon: o,
|
|
981
|
+
onClose: l,
|
|
982
|
+
className: n = ""
|
|
983
|
+
}) {
|
|
984
|
+
const u = {
|
|
985
|
+
success: {
|
|
986
|
+
bg: "bg-success-50",
|
|
987
|
+
border: "border-success-200",
|
|
988
|
+
text: "text-success-700",
|
|
989
|
+
icon: /* @__PURE__ */ e.jsx(ke, { className: "h-5 w-5" })
|
|
990
|
+
},
|
|
991
|
+
error: {
|
|
992
|
+
bg: "bg-error-50",
|
|
993
|
+
border: "border-error-200",
|
|
994
|
+
text: "text-error-700",
|
|
995
|
+
icon: /* @__PURE__ */ e.jsx(Ne, { className: "h-5 w-5" })
|
|
996
|
+
},
|
|
997
|
+
warning: {
|
|
998
|
+
bg: "bg-warning-50",
|
|
999
|
+
border: "border-warning-200",
|
|
1000
|
+
text: "text-warning-700",
|
|
1001
|
+
icon: /* @__PURE__ */ e.jsx(ye, { className: "h-5 w-5" })
|
|
1002
|
+
},
|
|
1003
|
+
info: {
|
|
1004
|
+
bg: "bg-info-50",
|
|
1005
|
+
border: "border-info-200",
|
|
1006
|
+
text: "text-info-700",
|
|
1007
|
+
icon: /* @__PURE__ */ e.jsx(Ve, { className: "h-5 w-5" })
|
|
1008
|
+
}
|
|
1009
|
+
}[s];
|
|
1010
|
+
return /* @__PURE__ */ e.jsx(
|
|
1011
|
+
"div",
|
|
1012
|
+
{
|
|
1013
|
+
className: `${u.bg} border ${u.border} rounded-md p-3 ${n}`,
|
|
1014
|
+
role: "alert",
|
|
1015
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
1016
|
+
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${u.text}`, children: o || u.icon }),
|
|
1017
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
1018
|
+
a && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${u.text}`, children: a }),
|
|
1019
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${u.text}`, children: t })
|
|
1020
|
+
] }),
|
|
1021
|
+
l && /* @__PURE__ */ e.jsx(
|
|
1022
|
+
"button",
|
|
1023
|
+
{
|
|
1024
|
+
onClick: l,
|
|
1025
|
+
className: `flex-shrink-0 ${u.text} hover:opacity-70`,
|
|
1026
|
+
"aria-label": "Close alert",
|
|
1027
|
+
children: "✕"
|
|
1028
|
+
}
|
|
1029
|
+
)
|
|
1030
|
+
] })
|
|
1031
|
+
}
|
|
1032
|
+
);
|
|
1033
|
+
}
|
|
1034
|
+
function Me({
|
|
1035
|
+
title: s,
|
|
1036
|
+
titleId: a,
|
|
1037
|
+
...t
|
|
1038
|
+
}, o) {
|
|
1039
|
+
return /* @__PURE__ */ R.createElement("svg", Object.assign({
|
|
1040
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1041
|
+
viewBox: "0 0 20 20",
|
|
1042
|
+
fill: "currentColor",
|
|
1043
|
+
"aria-hidden": "true",
|
|
1044
|
+
"data-slot": "icon",
|
|
1045
|
+
ref: o,
|
|
1046
|
+
"aria-labelledby": a
|
|
1047
|
+
}, t), s ? /* @__PURE__ */ R.createElement("title", {
|
|
1048
|
+
id: a
|
|
1049
|
+
}, s) : null, /* @__PURE__ */ R.createElement("path", {
|
|
1050
|
+
d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"
|
|
1051
|
+
}));
|
|
1052
|
+
}
|
|
1053
|
+
const ze = /* @__PURE__ */ R.forwardRef(Me);
|
|
1054
|
+
function qe({
|
|
1055
|
+
children: s,
|
|
1056
|
+
variant: a = "default",
|
|
1057
|
+
size: t = "md",
|
|
1058
|
+
removable: o = !1,
|
|
1059
|
+
onRemove: l,
|
|
1060
|
+
className: n = "",
|
|
1061
|
+
style: i,
|
|
1062
|
+
colorClass: u
|
|
1063
|
+
}) {
|
|
1064
|
+
const p = {
|
|
1065
|
+
default: "bg-surface-variant text-text-secondary",
|
|
1066
|
+
success: "bg-success-50 text-success-700",
|
|
1067
|
+
error: "bg-error-50 text-error-700",
|
|
1068
|
+
warning: "bg-warning-50 text-warning-700",
|
|
1069
|
+
info: "bg-info-50 text-info-700"
|
|
1070
|
+
}, j = {
|
|
1071
|
+
sm: "px-2 py-0.5 text-xs",
|
|
1072
|
+
md: "px-3 py-1 text-sm",
|
|
1073
|
+
lg: "px-4 py-1.5 text-base"
|
|
1074
|
+
}, m = u || p[a];
|
|
1075
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1076
|
+
"span",
|
|
1077
|
+
{
|
|
1078
|
+
className: `inline-flex items-center gap-1 rounded-full ${m} ${j[t]} ${n}`,
|
|
1079
|
+
style: i,
|
|
1080
|
+
children: [
|
|
1081
|
+
s,
|
|
1082
|
+
o && l && /* @__PURE__ */ e.jsx(
|
|
1083
|
+
"button",
|
|
1084
|
+
{
|
|
1085
|
+
onClick: l,
|
|
1086
|
+
className: "ml-1 hover:opacity-70",
|
|
1087
|
+
"aria-label": "Remove badge",
|
|
1088
|
+
children: /* @__PURE__ */ e.jsx(ze, { className: "w-3 h-3" })
|
|
1089
|
+
}
|
|
1090
|
+
)
|
|
1091
|
+
]
|
|
1092
|
+
}
|
|
1093
|
+
);
|
|
990
1094
|
}
|
|
991
|
-
function
|
|
992
|
-
return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: a.map((
|
|
1095
|
+
function Ze({ currentStep: s, steps: a }) {
|
|
1096
|
+
return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: a.map((t, o) => /* @__PURE__ */ e.jsxs("li", { className: `flex items-center ${o < a.length - 1 ? "flex-1" : ""}`, children: [
|
|
993
1097
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
994
1098
|
/* @__PURE__ */ e.jsx(
|
|
995
1099
|
"span",
|
|
996
1100
|
{
|
|
997
|
-
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${s ===
|
|
998
|
-
children:
|
|
1101
|
+
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${s === t.number ? "bg-reseda-green-700 text-white" : s > t.number ? "bg-success-500 text-white" : "border-2 border-border text-text-muted"}`,
|
|
1102
|
+
children: t.number
|
|
999
1103
|
}
|
|
1000
1104
|
),
|
|
1001
1105
|
/* @__PURE__ */ e.jsx(
|
|
1002
1106
|
"span",
|
|
1003
1107
|
{
|
|
1004
|
-
className: `ml-3 text-sm font-medium whitespace-nowrap ${s >=
|
|
1005
|
-
children:
|
|
1108
|
+
className: `ml-3 text-sm font-medium whitespace-nowrap ${s >= t.number ? "text-reseda-green-800" : "text-text-muted"}`,
|
|
1109
|
+
children: t.label
|
|
1006
1110
|
}
|
|
1007
1111
|
)
|
|
1008
1112
|
] }),
|
|
1009
1113
|
o < a.length - 1 && /* @__PURE__ */ e.jsx("div", { className: "flex-1 h-0.5 mx-4 bg-border" })
|
|
1010
|
-
] },
|
|
1114
|
+
] }, t.number)) }) });
|
|
1011
1115
|
}
|
|
1012
1116
|
export {
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1117
|
+
He as Alert,
|
|
1118
|
+
qe as Badge,
|
|
1119
|
+
ee as Button,
|
|
1120
|
+
Je as Card,
|
|
1121
|
+
Ae as ColorPalette,
|
|
1122
|
+
Ge as Demo,
|
|
1123
|
+
Xe as Section,
|
|
1124
|
+
We as Sidebar,
|
|
1125
|
+
Ie as SocialButton,
|
|
1126
|
+
Ze as Stepper,
|
|
1127
|
+
$e as ThemeProvider,
|
|
1128
|
+
Pe as ThemeToggle,
|
|
1129
|
+
Oe as useTheme
|
|
1025
1130
|
};
|