acemyjob-ui 0.8.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 +288 -242
- package/dist/acemyjob-ui.umd.js +4 -4
- package/dist/component/Badge/index.d.ts +15 -0
- package/dist/index.d.ts +2 -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,23 +13,23 @@ 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 t(o,
|
|
20
|
+
function t(o, l, n) {
|
|
20
21
|
var i = null;
|
|
21
|
-
if (
|
|
22
|
-
|
|
23
|
-
for (var u in
|
|
24
|
-
u !== "key" && (
|
|
25
|
-
} else
|
|
26
|
-
return
|
|
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
|
-
ref:
|
|
31
|
-
props:
|
|
31
|
+
ref: l !== void 0 ? l : null,
|
|
32
|
+
props: n
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
return k.Fragment = a, k.jsx = t, k.jsxs = t, k;
|
|
@@ -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
|
-
case te:
|
|
62
|
-
return "Suspense";
|
|
63
62
|
case ne:
|
|
63
|
+
return "Suspense";
|
|
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;
|
|
@@ -101,16 +102,16 @@ function Te() {
|
|
|
101
102
|
}
|
|
102
103
|
if (c) {
|
|
103
104
|
c = console;
|
|
104
|
-
var d = c.error,
|
|
105
|
+
var d = c.error, x = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
105
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 {
|
|
@@ -120,11 +121,11 @@ function Te() {
|
|
|
120
121
|
return "<...>";
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
-
var r =
|
|
124
|
+
function l() {
|
|
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) {
|
|
@@ -146,22 +147,22 @@ function Te() {
|
|
|
146
147
|
configurable: !0
|
|
147
148
|
});
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function p() {
|
|
150
151
|
var r = s(this.type);
|
|
151
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
|
+
function j(r, c, d, x, w, b, O, P) {
|
|
156
157
|
return d = b.ref, r = {
|
|
157
158
|
$$typeof: V,
|
|
158
159
|
type: r,
|
|
159
160
|
key: c,
|
|
160
161
|
props: b,
|
|
161
|
-
_owner:
|
|
162
|
+
_owner: w
|
|
162
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,
|
|
@@ -176,112 +177,112 @@ function Te() {
|
|
|
176
177
|
configurable: !1,
|
|
177
178
|
enumerable: !1,
|
|
178
179
|
writable: !0,
|
|
179
|
-
value:
|
|
180
|
+
value: O
|
|
180
181
|
}), Object.defineProperty(r, "_debugTask", {
|
|
181
182
|
configurable: !1,
|
|
182
183
|
enumerable: !1,
|
|
183
184
|
writable: !0,
|
|
184
|
-
value:
|
|
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(x
|
|
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
|
+
else g(v);
|
|
200
201
|
if (I.call(c, "key")) {
|
|
201
|
-
|
|
202
|
-
var y = Object.keys(c).filter(function(
|
|
203
|
-
return
|
|
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
|
-
m,
|
|
213
213
|
x,
|
|
214
|
+
v,
|
|
214
215
|
y,
|
|
215
|
-
|
|
216
|
-
), U[
|
|
216
|
+
v
|
|
217
|
+
), U[v + x] = !0);
|
|
217
218
|
}
|
|
218
|
-
if (
|
|
219
|
+
if (v = null, d !== void 0 && (t(d), v = "" + d), i(c) && (t(c.key), v = "" + c.key), "key" in c) {
|
|
219
220
|
d = {};
|
|
220
|
-
for (var
|
|
221
|
-
|
|
221
|
+
for (var L in c)
|
|
222
|
+
L !== "key" && (d[L] = c[L]);
|
|
222
223
|
} else d = c;
|
|
223
|
-
return
|
|
224
|
+
return v && u(
|
|
224
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
|
-
|
|
231
|
+
w,
|
|
232
|
+
l(),
|
|
232
233
|
d,
|
|
233
|
-
|
|
234
|
-
|
|
234
|
+
O,
|
|
235
|
+
P
|
|
235
236
|
);
|
|
236
237
|
}
|
|
237
238
|
function g(r) {
|
|
238
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 M, z = {},
|
|
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
258
|
d,
|
|
258
259
|
!1,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
b ? Error("react-stack-top-frame") :
|
|
262
|
-
b ?
|
|
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, d,
|
|
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
270
|
d,
|
|
270
271
|
!0,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
b ? Error("react-stack-top-frame") :
|
|
274
|
-
b ?
|
|
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,23 +290,23 @@ const Re = {
|
|
|
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 [t, o] = N(s.current || s.children?.some((
|
|
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
|
-
href:
|
|
302
|
-
onClick: (
|
|
303
|
-
|
|
302
|
+
href: l ? void 0 : s.href,
|
|
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" : ""
|
|
309
310
|
),
|
|
310
311
|
children: [
|
|
311
312
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-3", children: [
|
|
@@ -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
|
)
|
|
@@ -321,10 +322,10 @@ function H({ item: s, colorScheme: a }) {
|
|
|
321
322
|
),
|
|
322
323
|
s.name
|
|
323
324
|
] }),
|
|
324
|
-
|
|
325
|
-
|
|
325
|
+
l && /* @__PURE__ */ e.jsx(
|
|
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
|
|
@@ -334,35 +335,35 @@ function H({ item: s, colorScheme: a }) {
|
|
|
334
335
|
]
|
|
335
336
|
}
|
|
336
337
|
) }),
|
|
337
|
-
|
|
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 [
|
|
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 Ye({ company: s, profile: a, navigation: t, colorScheme: o = Re }) {
|
|
|
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 Ye({ company: s, profile: a, navigation: t, colorScheme: o = Re }) {
|
|
|
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: t.map((i) => /* @__PURE__ */ e.jsx(
|
|
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 Ye({ company: s, profile: a, navigation: t, colorScheme: o = Re }) {
|
|
|
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: t.map((i) => /* @__PURE__ */ e.jsx(
|
|
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 Ye({ company: s, profile: a, navigation: t, colorScheme: o = Re }) {
|
|
|
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 Ye({ company: s, profile: a, navigation: t, colorScheme: o = Re }) {
|
|
|
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 Ye({ company: s, profile: a, navigation: t, colorScheme: o = Re }) {
|
|
|
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 Q = (s) => s.replace("--color-", "bg-"), _e = ({ name: s, cssVar: a, value: t }) => {
|
|
455
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-"), Ce = ({ 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((t) => /* @__PURE__ */ e.jsx(
|
|
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)",
|
|
@@ -685,15 +686,15 @@ const Z = (s) => s.replace("--color-", "bg-"), Ce = ({ 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
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,42 +705,42 @@ const Z = (s) => s.replace("--color-", "bg-"), Ce = ({ 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
711
|
storageKey: t = "acemyjob-ui-theme"
|
|
711
712
|
}) => {
|
|
712
|
-
const [o,
|
|
713
|
-
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
}, [t]),
|
|
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(() => {
|
|
717
718
|
if (!u) return;
|
|
718
|
-
const
|
|
719
|
-
let
|
|
720
|
-
o === "system" ?
|
|
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
727
|
}, [o, u]);
|
|
727
|
-
const
|
|
728
|
+
const j = {
|
|
728
729
|
theme: o,
|
|
729
|
-
setTheme: (
|
|
730
|
-
localStorage.setItem(t,
|
|
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
|
-
},
|
|
736
|
-
const s =
|
|
735
|
+
return /* @__PURE__ */ e.jsx(K.Provider, { value: j, children: s });
|
|
736
|
+
}, Oe = () => {
|
|
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(
|
|
@@ -753,9 +754,9 @@ const Z = (s) => s.replace("--color-", "bg-"), Ce = ({ name: s, cssVar: a, value
|
|
|
753
754
|
]
|
|
754
755
|
}
|
|
755
756
|
);
|
|
756
|
-
const
|
|
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" }) });
|
|
@@ -777,19 +778,19 @@ const Z = (s) => s.replace("--color-", "bg-"), Ce = ({ name: s, cssVar: a, value
|
|
|
777
778
|
return /* @__PURE__ */ e.jsxs(
|
|
778
779
|
"button",
|
|
779
780
|
{
|
|
780
|
-
onClick:
|
|
781
|
+
onClick: l,
|
|
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,35 +808,35 @@ const Z = (s) => s.replace("--color-", "bg-"), Ce = ({ 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
815
|
size: t = "default",
|
|
815
816
|
fullWidth: o = !1,
|
|
816
|
-
loading:
|
|
817
|
-
leftIcon:
|
|
817
|
+
loading: l = !1,
|
|
818
|
+
leftIcon: n,
|
|
818
819
|
rightIcon: i,
|
|
819
820
|
children: u,
|
|
820
|
-
disabled:
|
|
821
|
-
...
|
|
822
|
-
},
|
|
823
|
-
const g =
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
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",
|
|
840
841
|
{
|
|
841
842
|
className: "mr-2 h-4 w-4 animate-spin",
|
|
@@ -865,16 +866,16 @@ const Z = (s) => s.replace("--color-", "bg-"), Ce = ({ name: s, cssVar: a, value
|
|
|
865
866
|
]
|
|
866
867
|
}
|
|
867
868
|
),
|
|
868
|
-
!
|
|
869
|
+
!l && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
|
|
869
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,39 +884,39 @@ 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
891
|
iconPosition: t = "left",
|
|
891
892
|
icon: o,
|
|
892
|
-
showText:
|
|
893
|
-
children:
|
|
893
|
+
showText: l = !0,
|
|
894
|
+
children: n,
|
|
894
895
|
size: i = "default",
|
|
895
896
|
fullWidth: u = !0,
|
|
896
|
-
...
|
|
897
|
-
},
|
|
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], V =
|
|
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
916
|
fullWidth: u,
|
|
916
917
|
leftIcon: t === "left" ? g : void 0,
|
|
917
918
|
rightIcon: t === "right" ? g : void 0,
|
|
918
|
-
...
|
|
919
|
+
...p,
|
|
919
920
|
children: [
|
|
920
921
|
t === "only" && g,
|
|
921
922
|
t !== "only" && V
|
|
@@ -924,15 +925,15 @@ const Q = {
|
|
|
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
932
|
isActive: t = !1,
|
|
932
933
|
onClick: o,
|
|
933
|
-
className:
|
|
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",
|
|
@@ -941,7 +942,7 @@ function Ue({
|
|
|
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,
|
|
@@ -952,19 +953,19 @@ function Ue({
|
|
|
952
953
|
}
|
|
953
954
|
);
|
|
954
955
|
}
|
|
955
|
-
function
|
|
956
|
+
function Xe({
|
|
956
957
|
title: s,
|
|
957
958
|
children: a,
|
|
958
959
|
subtitle: t,
|
|
959
960
|
spacing: o = "normal",
|
|
960
|
-
className:
|
|
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 })
|
|
@@ -972,44 +973,44 @@ function We({
|
|
|
972
973
|
a
|
|
973
974
|
] });
|
|
974
975
|
}
|
|
975
|
-
function
|
|
976
|
+
function He({
|
|
976
977
|
variant: s,
|
|
977
978
|
title: a,
|
|
978
979
|
message: t,
|
|
979
980
|
icon: o,
|
|
980
|
-
onClose:
|
|
981
|
-
className:
|
|
981
|
+
onClose: l,
|
|
982
|
+
className: n = ""
|
|
982
983
|
}) {
|
|
983
984
|
const u = {
|
|
984
985
|
success: {
|
|
985
986
|
bg: "bg-success-50",
|
|
986
987
|
border: "border-success-200",
|
|
987
988
|
text: "text-success-700",
|
|
988
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
989
|
+
icon: /* @__PURE__ */ e.jsx(ke, { className: "h-5 w-5" })
|
|
989
990
|
},
|
|
990
991
|
error: {
|
|
991
992
|
bg: "bg-error-50",
|
|
992
993
|
border: "border-error-200",
|
|
993
994
|
text: "text-error-700",
|
|
994
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
995
|
+
icon: /* @__PURE__ */ e.jsx(Ne, { className: "h-5 w-5" })
|
|
995
996
|
},
|
|
996
997
|
warning: {
|
|
997
998
|
bg: "bg-warning-50",
|
|
998
999
|
border: "border-warning-200",
|
|
999
1000
|
text: "text-warning-700",
|
|
1000
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1001
|
+
icon: /* @__PURE__ */ e.jsx(ye, { className: "h-5 w-5" })
|
|
1001
1002
|
},
|
|
1002
1003
|
info: {
|
|
1003
1004
|
bg: "bg-info-50",
|
|
1004
1005
|
border: "border-info-200",
|
|
1005
1006
|
text: "text-info-700",
|
|
1006
|
-
icon: /* @__PURE__ */ e.jsx(
|
|
1007
|
+
icon: /* @__PURE__ */ e.jsx(Ve, { className: "h-5 w-5" })
|
|
1007
1008
|
}
|
|
1008
1009
|
}[s];
|
|
1009
1010
|
return /* @__PURE__ */ e.jsx(
|
|
1010
1011
|
"div",
|
|
1011
1012
|
{
|
|
1012
|
-
className: `${u.bg} border ${u.border} rounded-md p-3 ${
|
|
1013
|
+
className: `${u.bg} border ${u.border} rounded-md p-3 ${n}`,
|
|
1013
1014
|
role: "alert",
|
|
1014
1015
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
1015
1016
|
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${u.text}`, children: o || u.icon }),
|
|
@@ -1017,10 +1018,10 @@ function Ge({
|
|
|
1017
1018
|
a && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${u.text}`, children: a }),
|
|
1018
1019
|
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${u.text}`, children: t })
|
|
1019
1020
|
] }),
|
|
1020
|
-
|
|
1021
|
+
l && /* @__PURE__ */ e.jsx(
|
|
1021
1022
|
"button",
|
|
1022
1023
|
{
|
|
1023
|
-
onClick:
|
|
1024
|
+
onClick: l,
|
|
1024
1025
|
className: `flex-shrink-0 ${u.text} hover:opacity-70`,
|
|
1025
1026
|
"aria-label": "Close alert",
|
|
1026
1027
|
children: "✕"
|
|
@@ -1030,23 +1031,68 @@ function Ge({
|
|
|
1030
1031
|
}
|
|
1031
1032
|
);
|
|
1032
1033
|
}
|
|
1033
|
-
function
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
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
|
+
);
|
|
1048
1094
|
}
|
|
1049
|
-
function
|
|
1095
|
+
function Ze({ currentStep: s, steps: a }) {
|
|
1050
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: [
|
|
1051
1097
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
1052
1098
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1068,17 +1114,17 @@ function He({ currentStep: s, steps: a }) {
|
|
|
1068
1114
|
] }, t.number)) }) });
|
|
1069
1115
|
}
|
|
1070
1116
|
export {
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
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
|
|
1084
1130
|
};
|