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