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