acemyjob-ui 0.13.0 → 0.15.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 +420 -340
- package/dist/acemyjob-ui.umd.js +4 -4
- package/dist/component/ActionCard/ActionCard.d.ts +25 -0
- package/dist/component/ActionCard/index.d.ts +1 -0
- package/dist/component/PageHeader/index.d.ts +7 -0
- package/dist/component/index.d.ts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/acemyjob-ui.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _ from "react";
|
|
2
|
-
import
|
|
3
|
-
import { Dialog as Ne, DialogBackdrop as
|
|
2
|
+
import I, { useState as T, useCallback as O, createContext as je, useEffect as J, useContext as we, useRef as ye } from "react";
|
|
3
|
+
import { Dialog as Ne, DialogBackdrop as Ce, DialogPanel as ke, TransitionChild as Ve } from "@headlessui/react";
|
|
4
4
|
import { XMarkIcon as Te, Bars3Icon as $e, ChevronDownIcon as re, InformationCircleIcon as Ee, ExclamationCircleIcon as Re, XCircleIcon as Ae, CheckCircleIcon as _e } from "@heroicons/react/24/outline";
|
|
5
5
|
import { useSortable as Be } from "@dnd-kit/sortable";
|
|
6
|
-
import { CSS as
|
|
6
|
+
import { CSS as Oe } from "@dnd-kit/utilities";
|
|
7
7
|
const fr = {
|
|
8
8
|
required: (r = "This field is required") => ({
|
|
9
9
|
validate: (s) => typeof s == "string" ? s.trim().length > 0 : Array.isArray(s) ? s.length > 0 : s != null,
|
|
@@ -59,7 +59,7 @@ const fr = {
|
|
|
59
59
|
message: s
|
|
60
60
|
})
|
|
61
61
|
};
|
|
62
|
-
function
|
|
62
|
+
function De(r, s) {
|
|
63
63
|
for (const t of s)
|
|
64
64
|
if (!t.validate(r))
|
|
65
65
|
return t.message;
|
|
@@ -68,21 +68,21 @@ function Oe(r, s) {
|
|
|
68
68
|
function Q(r, s) {
|
|
69
69
|
const t = {};
|
|
70
70
|
for (const [a, l] of Object.entries(s)) {
|
|
71
|
-
const n = r[a],
|
|
72
|
-
t[a] =
|
|
71
|
+
const n = r[a], c = De(n, l);
|
|
72
|
+
t[a] = c;
|
|
73
73
|
}
|
|
74
74
|
return t;
|
|
75
75
|
}
|
|
76
76
|
function Se(r) {
|
|
77
77
|
return Object.values(r).some((s) => s !== null);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function hr(r) {
|
|
80
80
|
for (const s of Object.values(r))
|
|
81
81
|
if (s !== null)
|
|
82
82
|
return s;
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function vr(r, s) {
|
|
86
86
|
return {
|
|
87
87
|
...r,
|
|
88
88
|
[s]: null
|
|
@@ -99,56 +99,56 @@ function br({
|
|
|
99
99
|
validationRules: s = {},
|
|
100
100
|
onSubmit: t
|
|
101
101
|
}) {
|
|
102
|
-
const [a, l] = T(r), [n,
|
|
103
|
-
(
|
|
104
|
-
const { name:
|
|
105
|
-
let z =
|
|
106
|
-
if (A === "checkbox" ? z =
|
|
107
|
-
...
|
|
108
|
-
[
|
|
109
|
-
})), s[
|
|
110
|
-
const
|
|
111
|
-
|
|
102
|
+
const [a, l] = T(r), [n, c] = T({}), [i, u] = T({}), [x, d] = T(!1), m = JSON.stringify(a) !== JSON.stringify(r), f = O(
|
|
103
|
+
(p) => {
|
|
104
|
+
const { name: b, value: w, type: A } = p.target;
|
|
105
|
+
let z = w;
|
|
106
|
+
if (A === "checkbox" ? z = p.target.checked : A === "number" && (z = w ? Number(w) : ""), l((L) => ({
|
|
107
|
+
...L,
|
|
108
|
+
[b]: z
|
|
109
|
+
})), s[b]) {
|
|
110
|
+
const L = Q({ [b]: z }, { [b]: s[b] });
|
|
111
|
+
c((W) => ({
|
|
112
112
|
...W,
|
|
113
|
-
[
|
|
113
|
+
[b]: L[b]
|
|
114
114
|
}));
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
[s]
|
|
118
|
-
),
|
|
119
|
-
(
|
|
120
|
-
const { name:
|
|
121
|
-
u((
|
|
122
|
-
...
|
|
123
|
-
[
|
|
118
|
+
), v = O(
|
|
119
|
+
(p) => {
|
|
120
|
+
const { name: b } = p.target;
|
|
121
|
+
u((w) => ({
|
|
122
|
+
...w,
|
|
123
|
+
[b]: !0
|
|
124
124
|
}));
|
|
125
125
|
},
|
|
126
126
|
[]
|
|
127
|
-
),
|
|
128
|
-
if (l((
|
|
129
|
-
...
|
|
130
|
-
[
|
|
131
|
-
})), s[
|
|
132
|
-
const
|
|
133
|
-
|
|
127
|
+
), g = O((p, b) => {
|
|
128
|
+
if (l((w) => ({
|
|
129
|
+
...w,
|
|
130
|
+
[p]: b
|
|
131
|
+
})), s[p]) {
|
|
132
|
+
const w = Q({ [p]: b }, { [p]: s[p] });
|
|
133
|
+
c((A) => ({
|
|
134
134
|
...A,
|
|
135
|
-
[
|
|
135
|
+
[p]: w[p]
|
|
136
136
|
}));
|
|
137
137
|
}
|
|
138
|
-
}, [s]),
|
|
139
|
-
|
|
140
|
-
...
|
|
141
|
-
[
|
|
138
|
+
}, [s]), N = O((p, b) => {
|
|
139
|
+
c((w) => ({
|
|
140
|
+
...w,
|
|
141
|
+
[p]: b
|
|
142
142
|
}));
|
|
143
|
-
}, []), V =
|
|
144
|
-
async (
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
const
|
|
143
|
+
}, []), V = O(
|
|
144
|
+
async (p) => {
|
|
145
|
+
p.preventDefault();
|
|
146
|
+
const b = Q(a, s);
|
|
147
|
+
c(b);
|
|
148
|
+
const w = {};
|
|
149
149
|
for (const A of Object.keys(a))
|
|
150
|
-
|
|
151
|
-
if (u(
|
|
150
|
+
w[A] = !0;
|
|
151
|
+
if (u(w), !Se(b) && t) {
|
|
152
152
|
d(!0);
|
|
153
153
|
try {
|
|
154
154
|
await t(a);
|
|
@@ -160,45 +160,45 @@ function br({
|
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
[a, s, t]
|
|
163
|
-
), $ =
|
|
164
|
-
l(r),
|
|
165
|
-
}, [r]), R =
|
|
166
|
-
(
|
|
167
|
-
name:
|
|
168
|
-
value: a[
|
|
163
|
+
), $ = O(() => {
|
|
164
|
+
l(r), c({}), u({}), d(!1);
|
|
165
|
+
}, [r]), R = O(
|
|
166
|
+
(p) => ({
|
|
167
|
+
name: p,
|
|
168
|
+
value: a[p] || "",
|
|
169
169
|
onChange: f,
|
|
170
|
-
onBlur:
|
|
170
|
+
onBlur: v
|
|
171
171
|
}),
|
|
172
|
-
[a, f,
|
|
173
|
-
),
|
|
174
|
-
(
|
|
172
|
+
[a, f, v]
|
|
173
|
+
), y = O(
|
|
174
|
+
(p) => n[p] || null,
|
|
175
175
|
[n]
|
|
176
|
-
), S =
|
|
177
|
-
(
|
|
178
|
-
[
|
|
179
|
-
),
|
|
180
|
-
(
|
|
176
|
+
), S = O(
|
|
177
|
+
(p) => i[p] || !1,
|
|
178
|
+
[i]
|
|
179
|
+
), M = O(
|
|
180
|
+
(p) => a[p] !== r[p],
|
|
181
181
|
[a, r]
|
|
182
182
|
);
|
|
183
183
|
return {
|
|
184
184
|
values: a,
|
|
185
185
|
errors: n,
|
|
186
|
-
touched:
|
|
186
|
+
touched: i,
|
|
187
187
|
isSubmitting: x,
|
|
188
188
|
isDirty: m,
|
|
189
189
|
handleChange: f,
|
|
190
|
-
handleBlur:
|
|
191
|
-
setFieldValue:
|
|
192
|
-
setFieldError:
|
|
190
|
+
handleBlur: v,
|
|
191
|
+
setFieldValue: g,
|
|
192
|
+
setFieldError: N,
|
|
193
193
|
handleSubmit: V,
|
|
194
194
|
resetForm: $,
|
|
195
195
|
getFieldProps: R,
|
|
196
|
-
getFieldError:
|
|
196
|
+
getFieldError: y,
|
|
197
197
|
isFieldTouched: S,
|
|
198
|
-
isFieldDirty:
|
|
198
|
+
isFieldDirty: M
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
var H = { exports: {} },
|
|
201
|
+
var H = { exports: {} }, U = {};
|
|
202
202
|
/**
|
|
203
203
|
* @license React
|
|
204
204
|
* react-jsx-runtime.production.js
|
|
@@ -208,29 +208,29 @@ var H = { exports: {} }, Y = {};
|
|
|
208
208
|
* This source code is licensed under the MIT license found in the
|
|
209
209
|
* LICENSE file in the root directory of this source tree.
|
|
210
210
|
*/
|
|
211
|
-
var
|
|
211
|
+
var oe;
|
|
212
212
|
function Pe() {
|
|
213
|
-
if (
|
|
214
|
-
|
|
213
|
+
if (oe) return U;
|
|
214
|
+
oe = 1;
|
|
215
215
|
var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
216
216
|
function t(a, l, n) {
|
|
217
|
-
var
|
|
218
|
-
if (n !== void 0 && (
|
|
217
|
+
var c = null;
|
|
218
|
+
if (n !== void 0 && (c = "" + n), l.key !== void 0 && (c = "" + l.key), "key" in l) {
|
|
219
219
|
n = {};
|
|
220
|
-
for (var
|
|
221
|
-
|
|
220
|
+
for (var i in l)
|
|
221
|
+
i !== "key" && (n[i] = l[i]);
|
|
222
222
|
} else n = l;
|
|
223
223
|
return l = n.ref, {
|
|
224
224
|
$$typeof: r,
|
|
225
225
|
type: a,
|
|
226
|
-
key:
|
|
226
|
+
key: c,
|
|
227
227
|
ref: l !== void 0 ? l : null,
|
|
228
228
|
props: n
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
return
|
|
231
|
+
return U.Fragment = s, U.jsx = t, U.jsxs = t, U;
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var Y = {};
|
|
234
234
|
/**
|
|
235
235
|
* @license React
|
|
236
236
|
* react-jsx-runtime.development.js
|
|
@@ -241,7 +241,7 @@ var U = {};
|
|
|
241
241
|
* LICENSE file in the root directory of this source tree.
|
|
242
242
|
*/
|
|
243
243
|
var ce;
|
|
244
|
-
function
|
|
244
|
+
function Ie() {
|
|
245
245
|
return ce || (ce = 1, process.env.NODE_ENV !== "production" && function() {
|
|
246
246
|
function r(o) {
|
|
247
247
|
if (o == null) return null;
|
|
@@ -249,15 +249,15 @@ function Le() {
|
|
|
249
249
|
return o.$$typeof === z ? null : o.displayName || o.name || null;
|
|
250
250
|
if (typeof o == "string") return o;
|
|
251
251
|
switch (o) {
|
|
252
|
-
case
|
|
252
|
+
case N:
|
|
253
253
|
return "Fragment";
|
|
254
254
|
case $:
|
|
255
255
|
return "Profiler";
|
|
256
256
|
case V:
|
|
257
257
|
return "StrictMode";
|
|
258
|
-
case
|
|
258
|
+
case M:
|
|
259
259
|
return "Suspense";
|
|
260
|
-
case
|
|
260
|
+
case p:
|
|
261
261
|
return "SuspenseList";
|
|
262
262
|
case A:
|
|
263
263
|
return "Activity";
|
|
@@ -266,21 +266,21 @@ function Le() {
|
|
|
266
266
|
switch (typeof o.tag == "number" && console.error(
|
|
267
267
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
268
268
|
), o.$$typeof) {
|
|
269
|
-
case
|
|
269
|
+
case g:
|
|
270
270
|
return "Portal";
|
|
271
|
-
case
|
|
271
|
+
case y:
|
|
272
272
|
return (o.displayName || "Context") + ".Provider";
|
|
273
273
|
case R:
|
|
274
274
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
275
275
|
case S:
|
|
276
|
-
var
|
|
277
|
-
return o = o.displayName, o || (o =
|
|
278
|
-
case
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
|
|
276
|
+
var h = o.render;
|
|
277
|
+
return o = o.displayName, o || (o = h.displayName || h.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
278
|
+
case b:
|
|
279
|
+
return h = o.displayName || null, h !== null ? h : r(o.type) || "Memo";
|
|
280
|
+
case w:
|
|
281
|
+
h = o._payload, o = o._init;
|
|
282
282
|
try {
|
|
283
|
-
return r(o(
|
|
283
|
+
return r(o(h));
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -292,54 +292,54 @@ function Le() {
|
|
|
292
292
|
function t(o) {
|
|
293
293
|
try {
|
|
294
294
|
s(o);
|
|
295
|
-
var
|
|
295
|
+
var h = !1;
|
|
296
296
|
} catch {
|
|
297
|
-
|
|
297
|
+
h = !0;
|
|
298
298
|
}
|
|
299
|
-
if (
|
|
300
|
-
|
|
301
|
-
var
|
|
302
|
-
return
|
|
303
|
-
|
|
299
|
+
if (h) {
|
|
300
|
+
h = console;
|
|
301
|
+
var j = h.error, C = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
302
|
+
return j.call(
|
|
303
|
+
h,
|
|
304
304
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
305
|
-
|
|
305
|
+
C
|
|
306
306
|
), s(o);
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
function a(o) {
|
|
310
|
-
if (o ===
|
|
311
|
-
if (typeof o == "object" && o !== null && o.$$typeof ===
|
|
310
|
+
if (o === N) return "<>";
|
|
311
|
+
if (typeof o == "object" && o !== null && o.$$typeof === w)
|
|
312
312
|
return "<...>";
|
|
313
313
|
try {
|
|
314
|
-
var
|
|
315
|
-
return
|
|
314
|
+
var h = r(o);
|
|
315
|
+
return h ? "<" + h + ">" : "<...>";
|
|
316
316
|
} catch {
|
|
317
317
|
return "<...>";
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
function l() {
|
|
321
|
-
var o =
|
|
321
|
+
var o = L.A;
|
|
322
322
|
return o === null ? null : o.getOwner();
|
|
323
323
|
}
|
|
324
324
|
function n() {
|
|
325
325
|
return Error("react-stack-top-frame");
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function c(o) {
|
|
328
328
|
if (W.call(o, "key")) {
|
|
329
|
-
var
|
|
330
|
-
if (
|
|
329
|
+
var h = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
330
|
+
if (h && h.isReactWarning) return !1;
|
|
331
331
|
}
|
|
332
332
|
return o.key !== void 0;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
function
|
|
334
|
+
function i(o, h) {
|
|
335
|
+
function j() {
|
|
336
336
|
se || (se = !0, console.error(
|
|
337
337
|
"%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)",
|
|
338
|
-
|
|
338
|
+
h
|
|
339
339
|
));
|
|
340
340
|
}
|
|
341
|
-
|
|
342
|
-
get:
|
|
341
|
+
j.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
342
|
+
get: j,
|
|
343
343
|
configurable: !0
|
|
344
344
|
});
|
|
345
345
|
}
|
|
@@ -349,14 +349,14 @@ function Le() {
|
|
|
349
349
|
"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."
|
|
350
350
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
351
351
|
}
|
|
352
|
-
function x(o,
|
|
353
|
-
return
|
|
354
|
-
$$typeof:
|
|
352
|
+
function x(o, h, j, C, P, B, q, Z) {
|
|
353
|
+
return j = B.ref, o = {
|
|
354
|
+
$$typeof: v,
|
|
355
355
|
type: o,
|
|
356
|
-
key:
|
|
356
|
+
key: h,
|
|
357
357
|
props: B,
|
|
358
358
|
_owner: P
|
|
359
|
-
}, (
|
|
359
|
+
}, (j !== void 0 ? j : null) !== null ? Object.defineProperty(o, "ref", {
|
|
360
360
|
enumerable: !1,
|
|
361
361
|
get: u
|
|
362
362
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
@@ -381,44 +381,44 @@ function Le() {
|
|
|
381
381
|
value: Z
|
|
382
382
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
383
383
|
}
|
|
384
|
-
function d(o,
|
|
385
|
-
var k =
|
|
384
|
+
function d(o, h, j, C, P, B, q, Z) {
|
|
385
|
+
var k = h.children;
|
|
386
386
|
if (k !== void 0)
|
|
387
|
-
if (
|
|
387
|
+
if (C)
|
|
388
388
|
if (be(k)) {
|
|
389
|
-
for (
|
|
390
|
-
m(k[
|
|
389
|
+
for (C = 0; C < k.length; C++)
|
|
390
|
+
m(k[C]);
|
|
391
391
|
Object.freeze && Object.freeze(k);
|
|
392
392
|
} else
|
|
393
393
|
console.error(
|
|
394
394
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
395
395
|
);
|
|
396
396
|
else m(k);
|
|
397
|
-
if (W.call(
|
|
397
|
+
if (W.call(h, "key")) {
|
|
398
398
|
k = r(o);
|
|
399
|
-
var F = Object.keys(
|
|
399
|
+
var F = Object.keys(h).filter(function(pe) {
|
|
400
400
|
return pe !== "key";
|
|
401
401
|
});
|
|
402
|
-
|
|
402
|
+
C = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", le[k + C] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
403
403
|
`A props object containing a "key" prop is being spread into JSX:
|
|
404
404
|
let props = %s;
|
|
405
405
|
<%s {...props} />
|
|
406
406
|
React keys must be passed directly to JSX without using spread:
|
|
407
407
|
let props = %s;
|
|
408
408
|
<%s key={someKey} {...props} />`,
|
|
409
|
-
|
|
409
|
+
C,
|
|
410
410
|
k,
|
|
411
411
|
F,
|
|
412
412
|
k
|
|
413
|
-
),
|
|
413
|
+
), le[k + C] = !0);
|
|
414
414
|
}
|
|
415
|
-
if (k = null,
|
|
416
|
-
|
|
417
|
-
for (var K in
|
|
418
|
-
K !== "key" && (
|
|
419
|
-
} else
|
|
420
|
-
return k &&
|
|
421
|
-
|
|
415
|
+
if (k = null, j !== void 0 && (t(j), k = "" + j), c(h) && (t(h.key), k = "" + h.key), "key" in h) {
|
|
416
|
+
j = {};
|
|
417
|
+
for (var K in h)
|
|
418
|
+
K !== "key" && (j[K] = h[K]);
|
|
419
|
+
} else j = h;
|
|
420
|
+
return k && i(
|
|
421
|
+
j,
|
|
422
422
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
423
423
|
), x(
|
|
424
424
|
o,
|
|
@@ -426,15 +426,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
426
426
|
B,
|
|
427
427
|
P,
|
|
428
428
|
l(),
|
|
429
|
-
|
|
429
|
+
j,
|
|
430
430
|
q,
|
|
431
431
|
Z
|
|
432
432
|
);
|
|
433
433
|
}
|
|
434
434
|
function m(o) {
|
|
435
|
-
typeof o == "object" && o !== null && o.$$typeof ===
|
|
435
|
+
typeof o == "object" && o !== null && o.$$typeof === v && o._store && (o._store.validated = 1);
|
|
436
436
|
}
|
|
437
|
-
var f =
|
|
437
|
+
var f = I, v = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), N = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), y = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), L = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, be = Array.isArray, X = console.createTask ? console.createTask : function() {
|
|
438
438
|
return null;
|
|
439
439
|
};
|
|
440
440
|
f = {
|
|
@@ -445,40 +445,40 @@ React keys must be passed directly to JSX without using spread:
|
|
|
445
445
|
var se, ae = {}, te = f["react-stack-bottom-frame"].bind(
|
|
446
446
|
f,
|
|
447
447
|
n
|
|
448
|
-
)(), ne = X(a(n)),
|
|
449
|
-
|
|
450
|
-
var B = 1e4 >
|
|
448
|
+
)(), ne = X(a(n)), le = {};
|
|
449
|
+
Y.Fragment = N, Y.jsx = function(o, h, j, C, P) {
|
|
450
|
+
var B = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
451
451
|
return d(
|
|
452
452
|
o,
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
h,
|
|
454
|
+
j,
|
|
455
455
|
!1,
|
|
456
|
-
|
|
456
|
+
C,
|
|
457
457
|
P,
|
|
458
458
|
B ? Error("react-stack-top-frame") : te,
|
|
459
459
|
B ? X(a(o)) : ne
|
|
460
460
|
);
|
|
461
|
-
},
|
|
462
|
-
var B = 1e4 >
|
|
461
|
+
}, Y.jsxs = function(o, h, j, C, P) {
|
|
462
|
+
var B = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
463
463
|
return d(
|
|
464
464
|
o,
|
|
465
|
-
|
|
466
|
-
|
|
465
|
+
h,
|
|
466
|
+
j,
|
|
467
467
|
!0,
|
|
468
|
-
|
|
468
|
+
C,
|
|
469
469
|
P,
|
|
470
470
|
B ? Error("react-stack-top-frame") : te,
|
|
471
471
|
B ? X(a(o)) : ne
|
|
472
472
|
);
|
|
473
473
|
};
|
|
474
|
-
}()),
|
|
474
|
+
}()), Y;
|
|
475
475
|
}
|
|
476
476
|
var ie;
|
|
477
|
-
function
|
|
478
|
-
return ie || (ie = 1, process.env.NODE_ENV === "production" ? H.exports = Pe() : H.exports =
|
|
477
|
+
function Le() {
|
|
478
|
+
return ie || (ie = 1, process.env.NODE_ENV === "production" ? H.exports = Pe() : H.exports = Ie()), H.exports;
|
|
479
479
|
}
|
|
480
|
-
var e =
|
|
481
|
-
const
|
|
480
|
+
var e = Le();
|
|
481
|
+
const Me = {
|
|
482
482
|
bg: "bg-indigo-600",
|
|
483
483
|
activeBg: "bg-indigo-700",
|
|
484
484
|
text: "text-indigo-200",
|
|
@@ -556,19 +556,19 @@ function de({ item: r, colorScheme: s }) {
|
|
|
556
556
|
) }, n.name)) })
|
|
557
557
|
] });
|
|
558
558
|
}
|
|
559
|
-
function pr({ company: r, profile: s, navigation: t, colorScheme: a =
|
|
559
|
+
function pr({ company: r, profile: s, navigation: t, colorScheme: a = Me }) {
|
|
560
560
|
const [l, n] = T(!1);
|
|
561
561
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
562
562
|
/* @__PURE__ */ e.jsxs(Ne, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
|
|
563
563
|
/* @__PURE__ */ e.jsx(
|
|
564
|
-
|
|
564
|
+
Ce,
|
|
565
565
|
{
|
|
566
566
|
transition: !0,
|
|
567
567
|
className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
|
|
568
568
|
}
|
|
569
569
|
),
|
|
570
570
|
/* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
|
|
571
|
-
|
|
571
|
+
ke,
|
|
572
572
|
{
|
|
573
573
|
transition: !0,
|
|
574
574
|
className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
|
|
@@ -586,7 +586,7 @@ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
|
|
|
586
586
|
className: "h-8 w-auto"
|
|
587
587
|
}
|
|
588
588
|
) }),
|
|
589
|
-
/* @__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((
|
|
589
|
+
/* @__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((c) => /* @__PURE__ */ e.jsx(de, { item: c, colorScheme: a }, c.name)) }) }) }) })
|
|
590
590
|
] })
|
|
591
591
|
]
|
|
592
592
|
}
|
|
@@ -602,7 +602,7 @@ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
|
|
|
602
602
|
}
|
|
603
603
|
) }),
|
|
604
604
|
/* @__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: [
|
|
605
|
-
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((
|
|
605
|
+
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((c) => /* @__PURE__ */ e.jsx(de, { item: c, colorScheme: a }, c.name)) }) }),
|
|
606
606
|
/* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
|
|
607
607
|
"a",
|
|
608
608
|
{
|
|
@@ -648,13 +648,13 @@ function pr({ company: r, profile: s, navigation: t, colorScheme: a = Ie }) {
|
|
|
648
648
|
] })
|
|
649
649
|
] }) });
|
|
650
650
|
}
|
|
651
|
-
const
|
|
651
|
+
const ve = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, value: t }) => {
|
|
652
652
|
const a = `rgb(${t})`;
|
|
653
653
|
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: [
|
|
654
654
|
/* @__PURE__ */ e.jsx(
|
|
655
655
|
"div",
|
|
656
656
|
{
|
|
657
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
657
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${ve(s)}`
|
|
658
658
|
}
|
|
659
659
|
),
|
|
660
660
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
@@ -890,7 +890,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
890
890
|
/* @__PURE__ */ e.jsx(
|
|
891
891
|
"div",
|
|
892
892
|
{
|
|
893
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
893
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${ve(a.cssVar)}`
|
|
894
894
|
}
|
|
895
895
|
),
|
|
896
896
|
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
@@ -901,26 +901,26 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
901
901
|
] }),
|
|
902
902
|
/* @__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" }) })
|
|
903
903
|
] });
|
|
904
|
-
}, ge = je(void 0),
|
|
904
|
+
}, ge = je(void 0), Ue = ({
|
|
905
905
|
children: r,
|
|
906
906
|
defaultTheme: s = "system",
|
|
907
907
|
storageKey: t = "acemyjob-ui-theme"
|
|
908
908
|
}) => {
|
|
909
|
-
const [a, l] = T(s), [n,
|
|
909
|
+
const [a, l] = T(s), [n, c] = T("light"), [i, u] = T(!1);
|
|
910
910
|
J(() => {
|
|
911
911
|
const d = localStorage.getItem(t);
|
|
912
912
|
d && l(d), u(!0);
|
|
913
913
|
}, [t]), J(() => {
|
|
914
|
-
if (!
|
|
914
|
+
if (!i) return;
|
|
915
915
|
const d = window.document.documentElement, m = () => {
|
|
916
916
|
let f;
|
|
917
|
-
a === "system" ? f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f = a,
|
|
917
|
+
a === "system" ? f = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f = a, c(f), d.classList.remove("light", "dark"), d.classList.add(f);
|
|
918
918
|
};
|
|
919
919
|
if (m(), a === "system") {
|
|
920
|
-
const f = window.matchMedia("(prefers-color-scheme: dark)"),
|
|
921
|
-
return f.addEventListener("change",
|
|
920
|
+
const f = window.matchMedia("(prefers-color-scheme: dark)"), v = () => m();
|
|
921
|
+
return f.addEventListener("change", v), () => f.removeEventListener("change", v);
|
|
922
922
|
}
|
|
923
|
-
}, [a,
|
|
923
|
+
}, [a, i]);
|
|
924
924
|
const x = {
|
|
925
925
|
theme: a,
|
|
926
926
|
setTheme: (d) => {
|
|
@@ -929,13 +929,13 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
929
929
|
resolvedTheme: n
|
|
930
930
|
};
|
|
931
931
|
return /* @__PURE__ */ e.jsx(ge.Provider, { value: x, children: r });
|
|
932
|
-
},
|
|
932
|
+
}, Ye = () => {
|
|
933
933
|
const r = we(ge);
|
|
934
934
|
if (r === void 0)
|
|
935
935
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
936
936
|
return r;
|
|
937
937
|
}, We = () => {
|
|
938
|
-
const { theme: r, setTheme: s } =
|
|
938
|
+
const { theme: r, setTheme: s } = Ye(), [t, a] = T(!1);
|
|
939
939
|
if (J(() => {
|
|
940
940
|
a(!0);
|
|
941
941
|
}, []), !t)
|
|
@@ -961,7 +961,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
961
961
|
case "system":
|
|
962
962
|
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" }) });
|
|
963
963
|
}
|
|
964
|
-
},
|
|
964
|
+
}, c = () => {
|
|
965
965
|
switch (r) {
|
|
966
966
|
case "light":
|
|
967
967
|
return "Light";
|
|
@@ -976,17 +976,17 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
976
976
|
{
|
|
977
977
|
onClick: l,
|
|
978
978
|
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",
|
|
979
|
-
"aria-label": `Current theme: ${
|
|
979
|
+
"aria-label": `Current theme: ${c()}. Click to cycle themes.`,
|
|
980
980
|
children: [
|
|
981
981
|
n(),
|
|
982
|
-
/* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children:
|
|
982
|
+
/* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: c() })
|
|
983
983
|
]
|
|
984
984
|
}
|
|
985
985
|
);
|
|
986
986
|
}, He = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
987
987
|
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(We, {}) }),
|
|
988
988
|
/* @__PURE__ */ e.jsx(Fe, {})
|
|
989
|
-
] }), jr = () => /* @__PURE__ */ e.jsx(
|
|
989
|
+
] }), jr = () => /* @__PURE__ */ e.jsx(Ue, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(He, {}) }), me = {
|
|
990
990
|
variant: {
|
|
991
991
|
default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
|
|
992
992
|
destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
|
|
@@ -1004,7 +1004,7 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
1004
1004
|
xl: "h-12 rounded-md px-10 text-base",
|
|
1005
1005
|
icon: "h-10 w-10"
|
|
1006
1006
|
}
|
|
1007
|
-
}, Ge = "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", Je = (...r) => r.filter(Boolean).join(" "),
|
|
1007
|
+
}, Ge = "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", Je = (...r) => r.filter(Boolean).join(" "), D = I.forwardRef(
|
|
1008
1008
|
({
|
|
1009
1009
|
className: r,
|
|
1010
1010
|
variant: s = "default",
|
|
@@ -1012,8 +1012,8 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
1012
1012
|
fullWidth: a = !1,
|
|
1013
1013
|
loading: l = !1,
|
|
1014
1014
|
leftIcon: n,
|
|
1015
|
-
rightIcon:
|
|
1016
|
-
children:
|
|
1015
|
+
rightIcon: c,
|
|
1016
|
+
children: i,
|
|
1017
1017
|
disabled: u,
|
|
1018
1018
|
...x
|
|
1019
1019
|
}, d) => {
|
|
@@ -1063,14 +1063,14 @@ const he = (r) => r.replace("--color-", "bg-"), ze = ({ name: r, cssVar: s, valu
|
|
|
1063
1063
|
}
|
|
1064
1064
|
),
|
|
1065
1065
|
!l && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
|
|
1066
|
-
|
|
1067
|
-
!l &&
|
|
1066
|
+
i,
|
|
1067
|
+
!l && c && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: c })
|
|
1068
1068
|
]
|
|
1069
1069
|
}
|
|
1070
1070
|
);
|
|
1071
1071
|
}
|
|
1072
1072
|
);
|
|
1073
|
-
|
|
1073
|
+
D.displayName = "Button";
|
|
1074
1074
|
const xe = {
|
|
1075
1075
|
provider: {
|
|
1076
1076
|
linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
|
|
@@ -1080,7 +1080,7 @@ const xe = {
|
|
|
1080
1080
|
right: "flex-row-reverse",
|
|
1081
1081
|
only: "justify-center"
|
|
1082
1082
|
}
|
|
1083
|
-
}, Xe = (...r) => r.filter(Boolean).join(" "), qe =
|
|
1083
|
+
}, Xe = (...r) => r.filter(Boolean).join(" "), qe = I.forwardRef(
|
|
1084
1084
|
({
|
|
1085
1085
|
className: r,
|
|
1086
1086
|
provider: s,
|
|
@@ -1088,34 +1088,34 @@ const xe = {
|
|
|
1088
1088
|
icon: a,
|
|
1089
1089
|
showText: l = !0,
|
|
1090
1090
|
children: n,
|
|
1091
|
-
size:
|
|
1092
|
-
fullWidth:
|
|
1091
|
+
size: c = "default",
|
|
1092
|
+
fullWidth: i = !0,
|
|
1093
1093
|
...u
|
|
1094
1094
|
}, x) => {
|
|
1095
1095
|
const m = a || {
|
|
1096
1096
|
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" }) })
|
|
1097
|
-
}[s],
|
|
1097
|
+
}[s], v = n || (l ? {
|
|
1098
1098
|
linkedin: "Continue with LinkedIn"
|
|
1099
|
-
}[s] : ""),
|
|
1099
|
+
}[s] : ""), g = Xe(
|
|
1100
1100
|
"relative overflow-hidden transition-all duration-200",
|
|
1101
1101
|
xe.provider[s],
|
|
1102
1102
|
xe.iconPosition[t],
|
|
1103
1103
|
r
|
|
1104
1104
|
);
|
|
1105
1105
|
return /* @__PURE__ */ e.jsxs(
|
|
1106
|
-
|
|
1106
|
+
D,
|
|
1107
1107
|
{
|
|
1108
1108
|
ref: x,
|
|
1109
1109
|
variant: "none",
|
|
1110
|
-
className:
|
|
1111
|
-
size:
|
|
1112
|
-
fullWidth:
|
|
1110
|
+
className: g,
|
|
1111
|
+
size: c,
|
|
1112
|
+
fullWidth: i,
|
|
1113
1113
|
leftIcon: t === "left" ? m : void 0,
|
|
1114
1114
|
rightIcon: t === "right" ? m : void 0,
|
|
1115
1115
|
...u,
|
|
1116
1116
|
children: [
|
|
1117
1117
|
t === "only" && m,
|
|
1118
|
-
t !== "only" &&
|
|
1118
|
+
t !== "only" && v
|
|
1119
1119
|
]
|
|
1120
1120
|
}
|
|
1121
1121
|
);
|
|
@@ -1129,7 +1129,7 @@ function wr({
|
|
|
1129
1129
|
onClick: a,
|
|
1130
1130
|
className: l = ""
|
|
1131
1131
|
}) {
|
|
1132
|
-
const n = "rounded-lg transition-all",
|
|
1132
|
+
const n = "rounded-lg transition-all", c = {
|
|
1133
1133
|
default: "border border-border p-4",
|
|
1134
1134
|
surface: "bg-surface-variant p-4",
|
|
1135
1135
|
elevated: "bg-surface shadow-md p-6",
|
|
@@ -1138,12 +1138,12 @@ function wr({
|
|
|
1138
1138
|
return /* @__PURE__ */ e.jsx(
|
|
1139
1139
|
"div",
|
|
1140
1140
|
{
|
|
1141
|
-
className: `${n} ${
|
|
1141
|
+
className: `${n} ${c[s]} ${l}`,
|
|
1142
1142
|
onClick: a,
|
|
1143
1143
|
role: a ? "button" : void 0,
|
|
1144
1144
|
tabIndex: a ? 0 : void 0,
|
|
1145
|
-
onKeyDown: a ? (
|
|
1146
|
-
(
|
|
1145
|
+
onKeyDown: a ? (i) => {
|
|
1146
|
+
(i.key === "Enter" || i.key === " ") && a();
|
|
1147
1147
|
} : void 0,
|
|
1148
1148
|
children: r
|
|
1149
1149
|
}
|
|
@@ -1177,7 +1177,7 @@ function G({
|
|
|
1177
1177
|
onClose: l,
|
|
1178
1178
|
className: n = ""
|
|
1179
1179
|
}) {
|
|
1180
|
-
const
|
|
1180
|
+
const i = {
|
|
1181
1181
|
success: {
|
|
1182
1182
|
bg: "bg-success-50",
|
|
1183
1183
|
border: "border-success-200",
|
|
@@ -1206,19 +1206,19 @@ function G({
|
|
|
1206
1206
|
return /* @__PURE__ */ e.jsx(
|
|
1207
1207
|
"div",
|
|
1208
1208
|
{
|
|
1209
|
-
className: `${
|
|
1209
|
+
className: `${i.bg} border ${i.border} rounded-md p-3 ${n}`,
|
|
1210
1210
|
role: "alert",
|
|
1211
1211
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
1212
|
-
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${
|
|
1212
|
+
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${i.text}`, children: a || i.icon }),
|
|
1213
1213
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
1214
|
-
s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${
|
|
1215
|
-
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${
|
|
1214
|
+
s && /* @__PURE__ */ e.jsx("p", { className: `text-sm font-medium ${i.text}`, children: s }),
|
|
1215
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${i.text}`, children: t })
|
|
1216
1216
|
] }),
|
|
1217
1217
|
l && /* @__PURE__ */ e.jsx(
|
|
1218
1218
|
"button",
|
|
1219
1219
|
{
|
|
1220
1220
|
onClick: l,
|
|
1221
|
-
className: `flex-shrink-0 ${
|
|
1221
|
+
className: `flex-shrink-0 ${i.text} hover:opacity-70`,
|
|
1222
1222
|
"aria-label": "Close alert",
|
|
1223
1223
|
children: "✕"
|
|
1224
1224
|
}
|
|
@@ -1270,7 +1270,7 @@ function Ke({
|
|
|
1270
1270
|
clipRule: "evenodd"
|
|
1271
1271
|
}));
|
|
1272
1272
|
}
|
|
1273
|
-
const
|
|
1273
|
+
const he = /* @__PURE__ */ _.forwardRef(Ke);
|
|
1274
1274
|
function Qe({
|
|
1275
1275
|
title: r,
|
|
1276
1276
|
titleId: s,
|
|
@@ -1298,8 +1298,8 @@ function er({
|
|
|
1298
1298
|
removable: a = !1,
|
|
1299
1299
|
onRemove: l,
|
|
1300
1300
|
className: n = "",
|
|
1301
|
-
style:
|
|
1302
|
-
colorClass:
|
|
1301
|
+
style: c,
|
|
1302
|
+
colorClass: i
|
|
1303
1303
|
}) {
|
|
1304
1304
|
const u = {
|
|
1305
1305
|
default: "bg-surface-variant text-text-secondary",
|
|
@@ -1311,12 +1311,12 @@ function er({
|
|
|
1311
1311
|
sm: "px-2 py-0.5 text-xs",
|
|
1312
1312
|
md: "px-3 py-1 text-sm",
|
|
1313
1313
|
lg: "px-4 py-1.5 text-base"
|
|
1314
|
-
}, d =
|
|
1314
|
+
}, d = i || u[s];
|
|
1315
1315
|
return /* @__PURE__ */ e.jsxs(
|
|
1316
1316
|
"span",
|
|
1317
1317
|
{
|
|
1318
1318
|
className: `inline-flex items-center gap-1 rounded-full ${d} ${x[t]} ${n}`,
|
|
1319
|
-
style:
|
|
1319
|
+
style: c,
|
|
1320
1320
|
children: [
|
|
1321
1321
|
r,
|
|
1322
1322
|
a && l && /* @__PURE__ */ e.jsx(
|
|
@@ -1350,7 +1350,7 @@ function Nr({
|
|
|
1350
1350
|
t && !a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted", children: t })
|
|
1351
1351
|
] });
|
|
1352
1352
|
}
|
|
1353
|
-
const rr =
|
|
1353
|
+
const rr = I.forwardRef(
|
|
1354
1354
|
({
|
|
1355
1355
|
className: r = "",
|
|
1356
1356
|
leftIcon: s,
|
|
@@ -1358,18 +1358,18 @@ const rr = L.forwardRef(
|
|
|
1358
1358
|
error: a = !1,
|
|
1359
1359
|
fullWidth: l = !0,
|
|
1360
1360
|
disabled: n,
|
|
1361
|
-
...
|
|
1362
|
-
},
|
|
1363
|
-
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", x = a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent", d = n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", m = l ? "w-full" : "", f = s || t ? "relative flex items-center" : "",
|
|
1361
|
+
...c
|
|
1362
|
+
}, i) => {
|
|
1363
|
+
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", x = a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent", d = n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", m = l ? "w-full" : "", f = s || t ? "relative flex items-center" : "", v = `${u} ${x} ${d} ${m} ${s ? "pl-10" : ""} ${t ? "pr-10" : ""} ${r}`;
|
|
1364
1364
|
return /* @__PURE__ */ e.jsxs("div", { className: f, children: [
|
|
1365
1365
|
s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
|
|
1366
1366
|
/* @__PURE__ */ e.jsx(
|
|
1367
1367
|
"input",
|
|
1368
1368
|
{
|
|
1369
|
-
ref:
|
|
1370
|
-
className:
|
|
1369
|
+
ref: i,
|
|
1370
|
+
className: v,
|
|
1371
1371
|
disabled: n,
|
|
1372
|
-
...
|
|
1372
|
+
...c
|
|
1373
1373
|
}
|
|
1374
1374
|
),
|
|
1375
1375
|
t && /* @__PURE__ */ e.jsx("div", { className: "absolute right-3 flex items-center pointer-events-none text-text-muted", children: t })
|
|
@@ -1377,7 +1377,7 @@ const rr = L.forwardRef(
|
|
|
1377
1377
|
}
|
|
1378
1378
|
);
|
|
1379
1379
|
rr.displayName = "Input";
|
|
1380
|
-
const sr =
|
|
1380
|
+
const sr = I.forwardRef(
|
|
1381
1381
|
({
|
|
1382
1382
|
options: r,
|
|
1383
1383
|
placeholder: s,
|
|
@@ -1385,20 +1385,20 @@ const sr = L.forwardRef(
|
|
|
1385
1385
|
error: a = !1,
|
|
1386
1386
|
fullWidth: l = !0,
|
|
1387
1387
|
disabled: n,
|
|
1388
|
-
...
|
|
1389
|
-
},
|
|
1388
|
+
...c
|
|
1389
|
+
}, i) => {
|
|
1390
1390
|
const f = `px-3 py-2 border rounded-lg transition-colors text-sm appearance-none ${a ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${n ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${l ? "w-full" : ""} pr-10 ${t}`;
|
|
1391
1391
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center", children: [
|
|
1392
1392
|
/* @__PURE__ */ e.jsxs(
|
|
1393
1393
|
"select",
|
|
1394
1394
|
{
|
|
1395
|
-
ref:
|
|
1395
|
+
ref: i,
|
|
1396
1396
|
className: f,
|
|
1397
1397
|
disabled: n,
|
|
1398
|
-
...
|
|
1398
|
+
...c,
|
|
1399
1399
|
children: [
|
|
1400
1400
|
s && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, children: s }),
|
|
1401
|
-
r.map((
|
|
1401
|
+
r.map((v) => /* @__PURE__ */ e.jsx("option", { value: v.value, children: v.label }, v.value))
|
|
1402
1402
|
]
|
|
1403
1403
|
}
|
|
1404
1404
|
),
|
|
@@ -1407,7 +1407,7 @@ const sr = L.forwardRef(
|
|
|
1407
1407
|
}
|
|
1408
1408
|
);
|
|
1409
1409
|
sr.displayName = "Select";
|
|
1410
|
-
const ar =
|
|
1410
|
+
const ar = I.forwardRef(
|
|
1411
1411
|
({
|
|
1412
1412
|
tags: r,
|
|
1413
1413
|
onTagsChange: s,
|
|
@@ -1415,59 +1415,59 @@ const ar = L.forwardRef(
|
|
|
1415
1415
|
onRemoveTag: a,
|
|
1416
1416
|
placeholder: l = "Add a tag and press Enter",
|
|
1417
1417
|
error: n = !1,
|
|
1418
|
-
fullWidth:
|
|
1419
|
-
maxTags:
|
|
1418
|
+
fullWidth: c = !0,
|
|
1419
|
+
maxTags: i,
|
|
1420
1420
|
duplicateCheck: u = !0,
|
|
1421
1421
|
disabled: x,
|
|
1422
1422
|
className: d = "",
|
|
1423
1423
|
...m
|
|
1424
1424
|
}, f) => {
|
|
1425
|
-
const [
|
|
1426
|
-
|
|
1427
|
-
}, V = (
|
|
1428
|
-
if (
|
|
1425
|
+
const [v, g] = T(""), N = (b) => {
|
|
1426
|
+
b.key === "Enter" && v.trim() ? (b.preventDefault(), V(v.trim())) : b.key === "Backspace" && !v && r.length > 0 && $(r[r.length - 1]);
|
|
1427
|
+
}, V = (b) => {
|
|
1428
|
+
if (i && r.length >= i || u && r.includes(b))
|
|
1429
1429
|
return;
|
|
1430
|
-
const
|
|
1431
|
-
s(
|
|
1432
|
-
}, $ = (
|
|
1433
|
-
const
|
|
1434
|
-
s(
|
|
1435
|
-
},
|
|
1430
|
+
const w = [...r, b];
|
|
1431
|
+
s(w), t?.(b), g("");
|
|
1432
|
+
}, $ = (b) => {
|
|
1433
|
+
const w = r.filter((A) => A !== b);
|
|
1434
|
+
s(w), a?.(b);
|
|
1435
|
+
}, p = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${n ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${x ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${c ? "w-full" : ""} ${d}`;
|
|
1436
1436
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1437
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((
|
|
1437
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: r.map((b) => /* @__PURE__ */ e.jsx(
|
|
1438
1438
|
er,
|
|
1439
1439
|
{
|
|
1440
1440
|
removable: !0,
|
|
1441
|
-
onRemove: () => $(
|
|
1441
|
+
onRemove: () => $(b),
|
|
1442
1442
|
variant: "default",
|
|
1443
|
-
children:
|
|
1443
|
+
children: b
|
|
1444
1444
|
},
|
|
1445
|
-
|
|
1445
|
+
b
|
|
1446
1446
|
)) }),
|
|
1447
1447
|
/* @__PURE__ */ e.jsx(
|
|
1448
1448
|
"input",
|
|
1449
1449
|
{
|
|
1450
1450
|
ref: f,
|
|
1451
1451
|
type: "text",
|
|
1452
|
-
className:
|
|
1452
|
+
className: p,
|
|
1453
1453
|
placeholder: l,
|
|
1454
|
-
value:
|
|
1455
|
-
onChange: (
|
|
1456
|
-
onKeyDown:
|
|
1457
|
-
disabled: x || (
|
|
1454
|
+
value: v,
|
|
1455
|
+
onChange: (b) => g(b.target.value),
|
|
1456
|
+
onKeyDown: N,
|
|
1457
|
+
disabled: x || (i ? r.length >= i : !1),
|
|
1458
1458
|
...m
|
|
1459
1459
|
}
|
|
1460
1460
|
),
|
|
1461
|
-
|
|
1461
|
+
i && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted", children: [
|
|
1462
1462
|
r.length,
|
|
1463
1463
|
" / ",
|
|
1464
|
-
|
|
1464
|
+
i
|
|
1465
1465
|
] })
|
|
1466
1466
|
] });
|
|
1467
1467
|
}
|
|
1468
1468
|
);
|
|
1469
1469
|
ar.displayName = "TagInput";
|
|
1470
|
-
const tr =
|
|
1470
|
+
const tr = I.forwardRef(
|
|
1471
1471
|
({
|
|
1472
1472
|
className: r = "",
|
|
1473
1473
|
error: s = !1,
|
|
@@ -1475,22 +1475,22 @@ const tr = L.forwardRef(
|
|
|
1475
1475
|
autoResize: a = !1,
|
|
1476
1476
|
maxLength: l,
|
|
1477
1477
|
showCharCount: n = !1,
|
|
1478
|
-
disabled:
|
|
1479
|
-
value:
|
|
1478
|
+
disabled: c,
|
|
1479
|
+
value: i,
|
|
1480
1480
|
onChange: u,
|
|
1481
1481
|
...x
|
|
1482
1482
|
}, d) => {
|
|
1483
|
-
const
|
|
1483
|
+
const N = `px-3 py-2 border rounded-lg transition-colors text-sm font-normal resize-none ${s ? "border-error-300 focus:ring-2 focus:ring-error-500 focus:border-transparent" : "border-border focus:ring-2 focus:ring-reseda-green-500 focus:border-transparent"} ${c ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${t ? "w-full" : ""} ${r}`, V = (R) => {
|
|
1484
1484
|
a && (R.target.style.height = "auto", R.target.style.height = `${R.target.scrollHeight}px`), u?.(R);
|
|
1485
|
-
}, $ = typeof
|
|
1485
|
+
}, $ = typeof i == "string" ? i.length : 0;
|
|
1486
1486
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
|
|
1487
1487
|
/* @__PURE__ */ e.jsx(
|
|
1488
1488
|
"textarea",
|
|
1489
1489
|
{
|
|
1490
1490
|
ref: d,
|
|
1491
|
-
className:
|
|
1492
|
-
disabled:
|
|
1493
|
-
value:
|
|
1491
|
+
className: N,
|
|
1492
|
+
disabled: c,
|
|
1493
|
+
value: i,
|
|
1494
1494
|
onChange: V,
|
|
1495
1495
|
maxLength: l,
|
|
1496
1496
|
...x
|
|
@@ -1505,17 +1505,17 @@ const tr = L.forwardRef(
|
|
|
1505
1505
|
}
|
|
1506
1506
|
);
|
|
1507
1507
|
tr.displayName = "Textarea";
|
|
1508
|
-
function
|
|
1508
|
+
function Cr({
|
|
1509
1509
|
options: r,
|
|
1510
1510
|
selectedValues: s,
|
|
1511
1511
|
onSelectionChange: t,
|
|
1512
1512
|
layout: a = "vertical",
|
|
1513
1513
|
columns: l = 2,
|
|
1514
1514
|
disabled: n = !1,
|
|
1515
|
-
error:
|
|
1515
|
+
error: c = !1
|
|
1516
1516
|
}) {
|
|
1517
|
-
const
|
|
1518
|
-
const f = s.includes(m) ? s.filter((
|
|
1517
|
+
const i = (m) => {
|
|
1518
|
+
const f = s.includes(m) ? s.filter((v) => v !== m) : [...s, m];
|
|
1519
1519
|
t(f);
|
|
1520
1520
|
}, u = {
|
|
1521
1521
|
vertical: "space-y-3",
|
|
@@ -1523,18 +1523,18 @@ function kr({
|
|
|
1523
1523
|
grid: `grid grid-cols-${l} gap-3`
|
|
1524
1524
|
}, x = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${l}` : "";
|
|
1525
1525
|
return /* @__PURE__ */ e.jsx("div", { className: `${x} ${d}`, children: r.map((m) => {
|
|
1526
|
-
const f = s.includes(m.value),
|
|
1526
|
+
const f = s.includes(m.value), g = f ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1527
1527
|
return /* @__PURE__ */ e.jsxs(
|
|
1528
1528
|
"label",
|
|
1529
1529
|
{
|
|
1530
|
-
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${
|
|
1530
|
+
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1531
1531
|
children: [
|
|
1532
1532
|
/* @__PURE__ */ e.jsx(
|
|
1533
1533
|
"input",
|
|
1534
1534
|
{
|
|
1535
1535
|
type: "checkbox",
|
|
1536
1536
|
checked: f,
|
|
1537
|
-
onChange: () =>
|
|
1537
|
+
onChange: () => i(m.value),
|
|
1538
1538
|
disabled: n,
|
|
1539
1539
|
className: "sr-only"
|
|
1540
1540
|
}
|
|
@@ -1551,15 +1551,15 @@ function kr({
|
|
|
1551
1551
|
);
|
|
1552
1552
|
}) });
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function kr({
|
|
1555
1555
|
options: r,
|
|
1556
1556
|
selectedValue: s,
|
|
1557
1557
|
onSelectionChange: t,
|
|
1558
1558
|
layout: a = "vertical",
|
|
1559
1559
|
columns: l = 2,
|
|
1560
1560
|
disabled: n = !1,
|
|
1561
|
-
error:
|
|
1562
|
-
name:
|
|
1561
|
+
error: c = !1,
|
|
1562
|
+
name: i = "radio-group"
|
|
1563
1563
|
}) {
|
|
1564
1564
|
const x = a === "grid" ? `grid gap-3 md:grid-cols-${l}` : {
|
|
1565
1565
|
vertical: "space-y-3",
|
|
@@ -1567,17 +1567,17 @@ function Cr({
|
|
|
1567
1567
|
grid: "grid gap-3"
|
|
1568
1568
|
}[a];
|
|
1569
1569
|
return /* @__PURE__ */ e.jsx("div", { className: x, children: r.map((d) => {
|
|
1570
|
-
const m = s === d.value,
|
|
1570
|
+
const m = s === d.value, v = m ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${c ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1571
1571
|
return /* @__PURE__ */ e.jsxs(
|
|
1572
1572
|
"label",
|
|
1573
1573
|
{
|
|
1574
|
-
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${
|
|
1574
|
+
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${v} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1575
1575
|
children: [
|
|
1576
1576
|
/* @__PURE__ */ e.jsx(
|
|
1577
1577
|
"input",
|
|
1578
1578
|
{
|
|
1579
1579
|
type: "radio",
|
|
1580
|
-
name:
|
|
1580
|
+
name: i,
|
|
1581
1581
|
value: d.value,
|
|
1582
1582
|
checked: m,
|
|
1583
1583
|
onChange: () => t(d.value),
|
|
@@ -1604,9 +1604,9 @@ function Vr({
|
|
|
1604
1604
|
onOpenChange: a,
|
|
1605
1605
|
className: l = ""
|
|
1606
1606
|
}) {
|
|
1607
|
-
const [n,
|
|
1607
|
+
const [n, c] = T(() => t ? Array.isArray(t) ? t : [t] : []), i = (u) => {
|
|
1608
1608
|
let x;
|
|
1609
|
-
s ? x = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : x = n.includes(u) ? [] : [u],
|
|
1609
|
+
s ? x = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : x = n.includes(u) ? [] : [u], c(x), a?.(x);
|
|
1610
1610
|
};
|
|
1611
1611
|
return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((u) => {
|
|
1612
1612
|
const x = n.includes(u.id);
|
|
@@ -1618,7 +1618,7 @@ function Vr({
|
|
|
1618
1618
|
/* @__PURE__ */ e.jsxs(
|
|
1619
1619
|
"button",
|
|
1620
1620
|
{
|
|
1621
|
-
onClick: () =>
|
|
1621
|
+
onClick: () => i(u.id),
|
|
1622
1622
|
className: "w-full px-4 py-3 flex items-center justify-between hover:bg-surface-variant transition-colors text-left",
|
|
1623
1623
|
children: [
|
|
1624
1624
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3 flex-1", children: [
|
|
@@ -1641,7 +1641,7 @@ function Vr({
|
|
|
1641
1641
|
);
|
|
1642
1642
|
}) });
|
|
1643
1643
|
}
|
|
1644
|
-
const nr =
|
|
1644
|
+
const nr = I.forwardRef(
|
|
1645
1645
|
({
|
|
1646
1646
|
value: r,
|
|
1647
1647
|
onChange: s,
|
|
@@ -1649,35 +1649,35 @@ const nr = L.forwardRef(
|
|
|
1649
1649
|
max: a = 100,
|
|
1650
1650
|
step: l = 1,
|
|
1651
1651
|
showValue: n = !0,
|
|
1652
|
-
showLabels:
|
|
1653
|
-
minLabel:
|
|
1652
|
+
showLabels: c = !1,
|
|
1653
|
+
minLabel: i,
|
|
1654
1654
|
maxLabel: u,
|
|
1655
1655
|
error: x = !1,
|
|
1656
1656
|
fullWidth: d = !0,
|
|
1657
1657
|
disabled: m,
|
|
1658
1658
|
className: f = "",
|
|
1659
|
-
...
|
|
1660
|
-
},
|
|
1661
|
-
const
|
|
1659
|
+
...v
|
|
1660
|
+
}, g) => {
|
|
1661
|
+
const y = `w-full h-2 rounded-lg appearance-none cursor-pointer ${x ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${m ? "opacity-50 cursor-not-allowed" : ""} ${d ? "w-full" : ""} ${f}`, S = (r - t) / (a - t) * 100;
|
|
1662
1662
|
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
1663
|
-
|
|
1664
|
-
|
|
1663
|
+
c && (i || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
|
|
1664
|
+
i && /* @__PURE__ */ e.jsx("span", { children: i }),
|
|
1665
1665
|
u && /* @__PURE__ */ e.jsx("span", { children: u })
|
|
1666
1666
|
] }),
|
|
1667
1667
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1668
1668
|
/* @__PURE__ */ e.jsx(
|
|
1669
1669
|
"input",
|
|
1670
1670
|
{
|
|
1671
|
-
ref:
|
|
1671
|
+
ref: g,
|
|
1672
1672
|
type: "range",
|
|
1673
1673
|
min: t,
|
|
1674
1674
|
max: a,
|
|
1675
1675
|
step: l,
|
|
1676
1676
|
value: r,
|
|
1677
|
-
onChange: (
|
|
1677
|
+
onChange: (M) => s(Number(M.target.value)),
|
|
1678
1678
|
disabled: m,
|
|
1679
|
-
className:
|
|
1680
|
-
...
|
|
1679
|
+
className: y,
|
|
1680
|
+
...v
|
|
1681
1681
|
}
|
|
1682
1682
|
),
|
|
1683
1683
|
n && /* @__PURE__ */ e.jsx("span", { className: "text-sm font-medium text-text-primary min-w-[3rem] text-right", children: r })
|
|
@@ -1700,13 +1700,13 @@ function Tr({
|
|
|
1700
1700
|
isSelected: a = !1,
|
|
1701
1701
|
onClick: l,
|
|
1702
1702
|
disabled: n = !1,
|
|
1703
|
-
className:
|
|
1703
|
+
className: c = ""
|
|
1704
1704
|
}) {
|
|
1705
|
-
const
|
|
1705
|
+
const i = "p-4 border rounded-lg transition-all text-center cursor-pointer", u = a ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : "border-border hover:border-border-subtle hover:bg-surface-variant", x = n ? "opacity-50 cursor-not-allowed" : "";
|
|
1706
1706
|
return /* @__PURE__ */ e.jsxs(
|
|
1707
1707
|
"div",
|
|
1708
1708
|
{
|
|
1709
|
-
className: `${
|
|
1709
|
+
className: `${i} ${u} ${x} ${c}`,
|
|
1710
1710
|
onClick: () => !n && l?.(),
|
|
1711
1711
|
role: "button",
|
|
1712
1712
|
tabIndex: n ? -1 : 0,
|
|
@@ -1722,7 +1722,7 @@ function Tr({
|
|
|
1722
1722
|
}
|
|
1723
1723
|
);
|
|
1724
1724
|
}
|
|
1725
|
-
const
|
|
1725
|
+
const lr = {
|
|
1726
1726
|
activeText: "text-reseda-green-700",
|
|
1727
1727
|
activeBorder: "border-reseda-green-700",
|
|
1728
1728
|
inactiveText: "text-text-secondary",
|
|
@@ -1730,23 +1730,23 @@ const or = {
|
|
|
1730
1730
|
disabledText: "text-text-disabled"
|
|
1731
1731
|
};
|
|
1732
1732
|
function $r({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
|
|
1733
|
-
const n = l ||
|
|
1734
|
-
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((
|
|
1735
|
-
const
|
|
1733
|
+
const n = l || lr;
|
|
1734
|
+
return /* @__PURE__ */ e.jsx("div", { className: "flex border-b border-border mb-6", children: r.map((c) => {
|
|
1735
|
+
const i = s === c.id;
|
|
1736
1736
|
return /* @__PURE__ */ e.jsx(
|
|
1737
|
-
|
|
1737
|
+
D,
|
|
1738
1738
|
{
|
|
1739
1739
|
variant: "ghost",
|
|
1740
|
-
onClick: () => !t && a(
|
|
1741
|
-
disabled: t && !
|
|
1742
|
-
className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${
|
|
1743
|
-
children:
|
|
1740
|
+
onClick: () => !t && a(c.id),
|
|
1741
|
+
disabled: t && !i,
|
|
1742
|
+
className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${i ? `${n.activeBorder} ${n.activeText}` : t ? `border-transparent ${n.disabledText} cursor-not-allowed` : `border-transparent ${n.inactiveText} ${n.inactiveHoverText}`}`,
|
|
1743
|
+
children: c.label
|
|
1744
1744
|
},
|
|
1745
|
-
|
|
1745
|
+
c.id
|
|
1746
1746
|
);
|
|
1747
1747
|
}) });
|
|
1748
1748
|
}
|
|
1749
|
-
const
|
|
1749
|
+
const or = {
|
|
1750
1750
|
activeBg: "bg-reseda-green-700",
|
|
1751
1751
|
activeText: "text-white",
|
|
1752
1752
|
completedBg: "bg-success-500",
|
|
@@ -1758,7 +1758,7 @@ const lr = {
|
|
|
1758
1758
|
connectorBg: "bg-border"
|
|
1759
1759
|
};
|
|
1760
1760
|
function Er({ currentStep: r, steps: s, colorConfig: t }) {
|
|
1761
|
-
const a = t ||
|
|
1761
|
+
const a = t || or;
|
|
1762
1762
|
return /* @__PURE__ */ e.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ e.jsx("ol", { className: "flex items-center w-full", children: s.map((l, n) => /* @__PURE__ */ e.jsxs("li", { className: `flex items-center ${n < s.length - 1 ? "flex-1" : ""}`, children: [
|
|
1763
1763
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
1764
1764
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1786,20 +1786,20 @@ function cr({
|
|
|
1786
1786
|
defaultExpanded: a = !1,
|
|
1787
1787
|
children: l,
|
|
1788
1788
|
tooltipContent: n,
|
|
1789
|
-
onRemove:
|
|
1790
|
-
className:
|
|
1789
|
+
onRemove: c,
|
|
1790
|
+
className: i = ""
|
|
1791
1791
|
}) {
|
|
1792
|
-
const [u, x] = T(a), { attributes: d, listeners: m, setNodeRef: f, transform:
|
|
1793
|
-
transform:
|
|
1794
|
-
transition:
|
|
1795
|
-
opacity:
|
|
1792
|
+
const [u, x] = T(a), { attributes: d, listeners: m, setNodeRef: f, transform: v, transition: g, isDragging: N } = Be({ id: r }), V = {
|
|
1793
|
+
transform: Oe.Transform.toString(v),
|
|
1794
|
+
transition: g,
|
|
1795
|
+
opacity: N ? 0.5 : 1
|
|
1796
1796
|
};
|
|
1797
1797
|
return /* @__PURE__ */ e.jsx(
|
|
1798
1798
|
"div",
|
|
1799
1799
|
{
|
|
1800
1800
|
ref: f,
|
|
1801
1801
|
style: V,
|
|
1802
|
-
className: `border border-border rounded-md bg-surface-variant ${
|
|
1802
|
+
className: `border border-border rounded-md bg-surface-variant ${i}`,
|
|
1803
1803
|
children: u ? (
|
|
1804
1804
|
// ── Expanded ──────────────────────────────────────────────────────────
|
|
1805
1805
|
/* @__PURE__ */ e.jsxs("div", { className: "p-3", children: [
|
|
@@ -1827,7 +1827,7 @@ function cr({
|
|
|
1827
1827
|
}
|
|
1828
1828
|
),
|
|
1829
1829
|
/* @__PURE__ */ e.jsx(
|
|
1830
|
-
|
|
1830
|
+
D,
|
|
1831
1831
|
{
|
|
1832
1832
|
type: "button",
|
|
1833
1833
|
variant: "ghost",
|
|
@@ -1835,16 +1835,16 @@ function cr({
|
|
|
1835
1835
|
onClick: () => x(!1),
|
|
1836
1836
|
className: "h-auto w-auto p-1",
|
|
1837
1837
|
"aria-label": "Collapse",
|
|
1838
|
-
leftIcon: /* @__PURE__ */ e.jsx(
|
|
1838
|
+
leftIcon: /* @__PURE__ */ e.jsx(he, { className: "w-4 h-4 transition-transform rotate-90" })
|
|
1839
1839
|
}
|
|
1840
1840
|
),
|
|
1841
1841
|
/* @__PURE__ */ e.jsx(
|
|
1842
|
-
|
|
1842
|
+
D,
|
|
1843
1843
|
{
|
|
1844
1844
|
type: "button",
|
|
1845
1845
|
variant: "ghost",
|
|
1846
1846
|
size: "icon",
|
|
1847
|
-
onClick:
|
|
1847
|
+
onClick: c,
|
|
1848
1848
|
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800",
|
|
1849
1849
|
"aria-label": "Remove",
|
|
1850
1850
|
leftIcon: /* @__PURE__ */ e.jsx(ee, { className: "w-4 h-4" })
|
|
@@ -1877,7 +1877,7 @@ function cr({
|
|
|
1877
1877
|
}
|
|
1878
1878
|
),
|
|
1879
1879
|
/* @__PURE__ */ e.jsx(
|
|
1880
|
-
|
|
1880
|
+
D,
|
|
1881
1881
|
{
|
|
1882
1882
|
type: "button",
|
|
1883
1883
|
variant: "ghost",
|
|
@@ -1885,16 +1885,16 @@ function cr({
|
|
|
1885
1885
|
onClick: () => x(!0),
|
|
1886
1886
|
className: "h-auto w-auto p-1 flex-shrink-0",
|
|
1887
1887
|
"aria-label": "Expand",
|
|
1888
|
-
leftIcon: /* @__PURE__ */ e.jsx(
|
|
1888
|
+
leftIcon: /* @__PURE__ */ e.jsx(he, { className: "w-4 h-4 transition-transform" })
|
|
1889
1889
|
}
|
|
1890
1890
|
),
|
|
1891
1891
|
/* @__PURE__ */ e.jsx(
|
|
1892
|
-
|
|
1892
|
+
D,
|
|
1893
1893
|
{
|
|
1894
1894
|
type: "button",
|
|
1895
1895
|
variant: "ghost",
|
|
1896
1896
|
size: "icon",
|
|
1897
|
-
onClick:
|
|
1897
|
+
onClick: c,
|
|
1898
1898
|
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800 flex-shrink-0",
|
|
1899
1899
|
"aria-label": "Remove",
|
|
1900
1900
|
leftIcon: /* @__PURE__ */ e.jsx(ee, { className: "w-4 h-4" })
|
|
@@ -1915,26 +1915,26 @@ function Rr({
|
|
|
1915
1915
|
fileError: a,
|
|
1916
1916
|
onCancelUpload: l,
|
|
1917
1917
|
isAnalyzing: n = !1,
|
|
1918
|
-
analyzeError:
|
|
1919
|
-
analyzeSuccess:
|
|
1918
|
+
analyzeError: c,
|
|
1919
|
+
analyzeSuccess: i,
|
|
1920
1920
|
accept: u = ".pdf,.docx",
|
|
1921
1921
|
label: x = "Upload File",
|
|
1922
1922
|
description: d = "PDF, DOCX up to 5MB",
|
|
1923
1923
|
analyzeButtonLabel: m = "Analyze",
|
|
1924
1924
|
disabled: f = !1,
|
|
1925
|
-
showAnalyzeButton:
|
|
1925
|
+
showAnalyzeButton: v = !0
|
|
1926
1926
|
}) {
|
|
1927
|
-
const
|
|
1927
|
+
const g = ye(null), [N, V] = T(!1);
|
|
1928
1928
|
J(() => {
|
|
1929
|
-
!t &&
|
|
1929
|
+
!t && g.current && (g.current.value = "");
|
|
1930
1930
|
}, [t]);
|
|
1931
|
-
const $ = (
|
|
1932
|
-
|
|
1933
|
-
}, R = (
|
|
1934
|
-
if (
|
|
1931
|
+
const $ = (y) => {
|
|
1932
|
+
y.preventDefault(), y.stopPropagation(), y.type === "dragenter" || y.type === "dragover" ? V(!0) : y.type === "dragleave" && V(!1);
|
|
1933
|
+
}, R = (y) => {
|
|
1934
|
+
if (y.preventDefault(), y.stopPropagation(), V(!1), y.dataTransfer.files && y.dataTransfer.files[0]) {
|
|
1935
1935
|
const S = {
|
|
1936
1936
|
target: {
|
|
1937
|
-
files:
|
|
1937
|
+
files: y.dataTransfer.files
|
|
1938
1938
|
}
|
|
1939
1939
|
};
|
|
1940
1940
|
r(S);
|
|
@@ -1946,7 +1946,7 @@ function Rr({
|
|
|
1946
1946
|
/* @__PURE__ */ e.jsx(
|
|
1947
1947
|
"input",
|
|
1948
1948
|
{
|
|
1949
|
-
ref:
|
|
1949
|
+
ref: g,
|
|
1950
1950
|
type: "file",
|
|
1951
1951
|
accept: u,
|
|
1952
1952
|
onChange: r,
|
|
@@ -1962,7 +1962,7 @@ function Rr({
|
|
|
1962
1962
|
onDragLeave: $,
|
|
1963
1963
|
onDragOver: $,
|
|
1964
1964
|
onDrop: R,
|
|
1965
|
-
className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${
|
|
1965
|
+
className: `border-2 border-dashed rounded-lg p-6 text-center transition cursor-pointer ${N ? "border-reseda-green-700 bg-reseda-green-50" : "border-border hover:border-reseda-green-700"} ${f ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1966
1966
|
children: t && !a ? /* @__PURE__ */ e.jsxs("div", { children: [
|
|
1967
1967
|
/* @__PURE__ */ e.jsx(
|
|
1968
1968
|
"svg",
|
|
@@ -1987,12 +1987,12 @@ function Rr({
|
|
|
1987
1987
|
"MB"
|
|
1988
1988
|
] }),
|
|
1989
1989
|
/* @__PURE__ */ e.jsx(
|
|
1990
|
-
|
|
1990
|
+
D,
|
|
1991
1991
|
{
|
|
1992
1992
|
variant: "link",
|
|
1993
1993
|
type: "button",
|
|
1994
|
-
onClick: (
|
|
1995
|
-
|
|
1994
|
+
onClick: (y) => {
|
|
1995
|
+
y.preventDefault(), l?.();
|
|
1996
1996
|
},
|
|
1997
1997
|
className: "mt-3 text-error-600 hover:text-error-700 h-auto p-0",
|
|
1998
1998
|
children: "✕ Cancel"
|
|
@@ -2028,10 +2028,10 @@ function Rr({
|
|
|
2028
2028
|
)
|
|
2029
2029
|
] }),
|
|
2030
2030
|
a && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: a }) }),
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2031
|
+
c && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "error", message: c }) }),
|
|
2032
|
+
i && /* @__PURE__ */ e.jsx("div", { className: "mt-3", children: /* @__PURE__ */ e.jsx(G, { variant: "success", message: i }) }),
|
|
2033
|
+
v && /* @__PURE__ */ e.jsx(
|
|
2034
|
+
D,
|
|
2035
2035
|
{
|
|
2036
2036
|
variant: "default",
|
|
2037
2037
|
onClick: s,
|
|
@@ -2055,29 +2055,109 @@ function Ar({ stats: r, columns: s = 4, className: t = "" }) {
|
|
|
2055
2055
|
warning: { bg: "bg-peach-yellow-50", text: "text-warning-600", value: "text-warning-900" },
|
|
2056
2056
|
"earth-yellow": { bg: "bg-sunglow-50", text: "text-earth-yellow-700", value: "text-earth-yellow-100" }
|
|
2057
2057
|
};
|
|
2058
|
-
return /* @__PURE__ */ e.jsx("div", { className: `grid ${a} gap-4 mb-6 bg-surface p-6 rounded-lg ${t}`, children: r.map((n,
|
|
2059
|
-
const
|
|
2060
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `${
|
|
2058
|
+
return /* @__PURE__ */ e.jsx("div", { className: `grid ${a} gap-4 mb-6 bg-surface p-6 rounded-lg ${t}`, children: r.map((n, c) => {
|
|
2059
|
+
const i = l[n.color || "moss-green"];
|
|
2060
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${i.bg} rounded-lg p-4`, children: [
|
|
2061
2061
|
n.icon && /* @__PURE__ */ e.jsx("div", { className: "mb-2", children: n.icon }),
|
|
2062
|
-
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${
|
|
2063
|
-
/* @__PURE__ */ e.jsx("p", { className: `text-2xl font-bold ${
|
|
2064
|
-
] },
|
|
2062
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-sm ${i.text} font-medium`, children: n.label }),
|
|
2063
|
+
/* @__PURE__ */ e.jsx("p", { className: `text-2xl font-bold ${i.value} mt-1`, children: n.value })
|
|
2064
|
+
] }, c);
|
|
2065
2065
|
}) });
|
|
2066
2066
|
}
|
|
2067
|
+
function _r({
|
|
2068
|
+
title: r,
|
|
2069
|
+
description: s,
|
|
2070
|
+
centered: t = !1,
|
|
2071
|
+
titleSize: a = "md"
|
|
2072
|
+
}) {
|
|
2073
|
+
const l = {
|
|
2074
|
+
sm: "text-2xl",
|
|
2075
|
+
md: "text-3xl",
|
|
2076
|
+
lg: "text-4xl"
|
|
2077
|
+
}, n = t ? "text-center" : "", c = t ? "max-w-2xl mx-auto" : "";
|
|
2078
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `mb-8 ${n}`, children: [
|
|
2079
|
+
/* @__PURE__ */ e.jsx("h1", { className: `${l[a]} font-bold text-text-primary`, children: r }),
|
|
2080
|
+
/* @__PURE__ */ e.jsx("p", { className: `mt-2 text-text-secondary ${c}`, children: s })
|
|
2081
|
+
] });
|
|
2082
|
+
}
|
|
2083
|
+
function Br({
|
|
2084
|
+
icon: r,
|
|
2085
|
+
title: s,
|
|
2086
|
+
subtitle: t,
|
|
2087
|
+
metadata: a,
|
|
2088
|
+
isSelected: l = !1,
|
|
2089
|
+
isActive: n = !1,
|
|
2090
|
+
variant: c = "default",
|
|
2091
|
+
actions: i,
|
|
2092
|
+
onClick: u,
|
|
2093
|
+
className: x = ""
|
|
2094
|
+
}) {
|
|
2095
|
+
const d = (g) => {
|
|
2096
|
+
const N = g.target;
|
|
2097
|
+
N.tagName === "BUTTON" || N.closest("button") || u?.(g);
|
|
2098
|
+
}, f = (() => {
|
|
2099
|
+
if (n)
|
|
2100
|
+
switch (c) {
|
|
2101
|
+
case "success":
|
|
2102
|
+
return "border-2 border-reseda-green-700 bg-success-50";
|
|
2103
|
+
case "warning":
|
|
2104
|
+
return "border-2 border-persian-orange-700 bg-warning-50";
|
|
2105
|
+
case "error":
|
|
2106
|
+
return "border-2 border-error-700 bg-error-50";
|
|
2107
|
+
default:
|
|
2108
|
+
return "border-2 border-reseda-green-700 bg-success-50";
|
|
2109
|
+
}
|
|
2110
|
+
return "border border-border hover:border-border-subtle hover:bg-surface-variant";
|
|
2111
|
+
})(), v = l ? "ring-2 ring-reseda-green-700" : "";
|
|
2112
|
+
return /* @__PURE__ */ e.jsx(
|
|
2113
|
+
"div",
|
|
2114
|
+
{
|
|
2115
|
+
onClick: d,
|
|
2116
|
+
className: `rounded-lg p-4 cursor-pointer transition ${f} ${v} ${x}`,
|
|
2117
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between", children: [
|
|
2118
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex items-start gap-3", children: [
|
|
2119
|
+
r && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: r }),
|
|
2120
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
2121
|
+
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: s }),
|
|
2122
|
+
t && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t }),
|
|
2123
|
+
a && /* @__PURE__ */ e.jsx("div", { className: "mt-2", children: a })
|
|
2124
|
+
] })
|
|
2125
|
+
] }),
|
|
2126
|
+
/* @__PURE__ */ e.jsx("div", { className: "ml-2 flex items-center gap-1 shrink-0", children: i.map((g, N) => /* @__PURE__ */ e.jsx(
|
|
2127
|
+
D,
|
|
2128
|
+
{
|
|
2129
|
+
variant: g.variant || "ghost",
|
|
2130
|
+
size: g.size || "sm",
|
|
2131
|
+
onClick: g.onClick,
|
|
2132
|
+
disabled: g.disabled,
|
|
2133
|
+
loading: g.loading,
|
|
2134
|
+
title: g.label,
|
|
2135
|
+
className: g.className,
|
|
2136
|
+
leftIcon: g.icon && g.size !== "icon" ? g.icon : void 0,
|
|
2137
|
+
children: g.size === "icon" ? g.icon : g.label
|
|
2138
|
+
},
|
|
2139
|
+
N
|
|
2140
|
+
)) })
|
|
2141
|
+
] })
|
|
2142
|
+
}
|
|
2143
|
+
);
|
|
2144
|
+
}
|
|
2067
2145
|
export {
|
|
2068
2146
|
Vr as Accordion,
|
|
2147
|
+
Br as ActionCard,
|
|
2069
2148
|
G as Alert,
|
|
2070
2149
|
er as Badge,
|
|
2071
|
-
|
|
2150
|
+
D as Button,
|
|
2072
2151
|
wr as Card,
|
|
2073
|
-
|
|
2152
|
+
Cr as CheckboxGroup,
|
|
2074
2153
|
Fe as ColorPalette,
|
|
2075
2154
|
jr as Demo,
|
|
2076
2155
|
Rr as FileUpload,
|
|
2077
2156
|
Nr as FormField,
|
|
2078
2157
|
rr as Input,
|
|
2079
2158
|
Tr as OptionCard,
|
|
2080
|
-
|
|
2159
|
+
_r as PageHeader,
|
|
2160
|
+
kr as RadioGroup,
|
|
2081
2161
|
yr as Section,
|
|
2082
2162
|
sr as Select,
|
|
2083
2163
|
pr as Sidebar,
|
|
@@ -2089,15 +2169,15 @@ export {
|
|
|
2089
2169
|
$r as TabBar,
|
|
2090
2170
|
ar as TagInput,
|
|
2091
2171
|
tr as Textarea,
|
|
2092
|
-
|
|
2172
|
+
Ue as ThemeProvider,
|
|
2093
2173
|
We as ThemeToggle,
|
|
2094
2174
|
gr as clearAllErrors,
|
|
2095
|
-
|
|
2096
|
-
|
|
2175
|
+
vr as clearFieldError,
|
|
2176
|
+
hr as getFirstError,
|
|
2097
2177
|
Se as hasErrors,
|
|
2098
2178
|
br as useForm,
|
|
2099
|
-
|
|
2100
|
-
|
|
2179
|
+
Ye as useTheme,
|
|
2180
|
+
De as validateField,
|
|
2101
2181
|
Q as validateForm,
|
|
2102
2182
|
fr as validators
|
|
2103
2183
|
};
|