acemyjob-ui 0.11.3 → 0.11.4
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 +851 -1512
- package/dist/acemyjob-ui.umd.js +4 -4
- package/package.json +1 -1
package/dist/acemyjob-ui.es.js
CHANGED
|
@@ -1,153 +1,154 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { Dialog as
|
|
4
|
-
import { XMarkIcon as
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import * as $ from "react";
|
|
2
|
+
import S, { useState as k, useCallback as _, createContext as pe, useEffect as K, useContext as je } from "react";
|
|
3
|
+
import { Dialog as we, DialogBackdrop as ye, DialogPanel as Ne, TransitionChild as Ce } from "@headlessui/react";
|
|
4
|
+
import { XMarkIcon as ke, Bars3Icon as Ve, ChevronDownIcon as ee, InformationCircleIcon as Te, ExclamationCircleIcon as $e, XCircleIcon as Ee, CheckCircleIcon as Re } from "@heroicons/react/24/outline";
|
|
5
|
+
import { useSortable as Ae } from "@dnd-kit/sortable";
|
|
6
|
+
import { CSS as _e } from "@dnd-kit/utilities";
|
|
7
|
+
const mr = {
|
|
8
|
+
required: (r = "This field is required") => ({
|
|
9
|
+
validate: (s) => typeof s == "string" ? s.trim().length > 0 : Array.isArray(s) ? s.length > 0 : s != null,
|
|
10
|
+
message: r
|
|
10
11
|
}),
|
|
11
|
-
email: (
|
|
12
|
-
validate: (
|
|
13
|
-
message:
|
|
12
|
+
email: (r = "Please enter a valid email address") => ({
|
|
13
|
+
validate: (s) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(s)),
|
|
14
|
+
message: r
|
|
14
15
|
}),
|
|
15
|
-
minLength: (
|
|
16
|
-
validate: (t) => String(t).length >=
|
|
17
|
-
message:
|
|
16
|
+
minLength: (r, s) => ({
|
|
17
|
+
validate: (t) => String(t).length >= r,
|
|
18
|
+
message: s || `Must be at least ${r} characters`
|
|
18
19
|
}),
|
|
19
|
-
maxLength: (
|
|
20
|
-
validate: (t) => String(t).length <=
|
|
21
|
-
message:
|
|
20
|
+
maxLength: (r, s) => ({
|
|
21
|
+
validate: (t) => String(t).length <= r,
|
|
22
|
+
message: s || `Must be no more than ${r} characters`
|
|
22
23
|
}),
|
|
23
|
-
pattern: (
|
|
24
|
-
validate: (t) =>
|
|
25
|
-
message:
|
|
24
|
+
pattern: (r, s = "Invalid format") => ({
|
|
25
|
+
validate: (t) => r.test(String(t)),
|
|
26
|
+
message: s
|
|
26
27
|
}),
|
|
27
|
-
minValue: (
|
|
28
|
-
validate: (t) => Number(t) >=
|
|
29
|
-
message:
|
|
28
|
+
minValue: (r, s) => ({
|
|
29
|
+
validate: (t) => Number(t) >= r,
|
|
30
|
+
message: s || `Must be at least ${r}`
|
|
30
31
|
}),
|
|
31
|
-
maxValue: (
|
|
32
|
-
validate: (t) => Number(t) <=
|
|
33
|
-
message:
|
|
32
|
+
maxValue: (r, s) => ({
|
|
33
|
+
validate: (t) => Number(t) <= r,
|
|
34
|
+
message: s || `Must be no more than ${r}`
|
|
34
35
|
}),
|
|
35
|
-
url: (
|
|
36
|
-
validate: (
|
|
36
|
+
url: (r = "Please enter a valid URL") => ({
|
|
37
|
+
validate: (s) => {
|
|
37
38
|
try {
|
|
38
|
-
return new URL(String(
|
|
39
|
+
return new URL(String(s)), !0;
|
|
39
40
|
} catch {
|
|
40
41
|
return !1;
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
|
-
message:
|
|
44
|
+
message: r
|
|
44
45
|
}),
|
|
45
|
-
phone: (
|
|
46
|
-
validate: (
|
|
47
|
-
const t = /^[\d\s\-+()]+$/, a = String(
|
|
46
|
+
phone: (r = "Please enter a valid phone number") => ({
|
|
47
|
+
validate: (s) => {
|
|
48
|
+
const t = /^[\d\s\-+()]+$/, a = String(s);
|
|
48
49
|
return t.test(a) && a.replace(/\D/g, "").length >= 10;
|
|
49
50
|
},
|
|
50
|
-
message: e
|
|
51
|
-
}),
|
|
52
|
-
match: (e, r = "Fields do not match") => ({
|
|
53
|
-
validate: (t) => t === e,
|
|
54
51
|
message: r
|
|
55
52
|
}),
|
|
56
|
-
|
|
57
|
-
validate:
|
|
58
|
-
message:
|
|
53
|
+
match: (r, s = "Fields do not match") => ({
|
|
54
|
+
validate: (t) => t === r,
|
|
55
|
+
message: s
|
|
56
|
+
}),
|
|
57
|
+
custom: (r, s) => ({
|
|
58
|
+
validate: r,
|
|
59
|
+
message: s
|
|
59
60
|
})
|
|
60
61
|
};
|
|
61
|
-
function
|
|
62
|
-
for (const t of
|
|
63
|
-
if (!t.validate(
|
|
62
|
+
function Oe(r, s) {
|
|
63
|
+
for (const t of s)
|
|
64
|
+
if (!t.validate(r))
|
|
64
65
|
return t.message;
|
|
65
66
|
return null;
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function Z(r, s) {
|
|
68
69
|
const t = {};
|
|
69
|
-
for (const [a,
|
|
70
|
-
const
|
|
71
|
-
t[a] =
|
|
70
|
+
for (const [a, l] of Object.entries(s)) {
|
|
71
|
+
const n = r[a], c = Oe(n, l);
|
|
72
|
+
t[a] = c;
|
|
72
73
|
}
|
|
73
74
|
return t;
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
-
return Object.values(
|
|
76
|
+
function Be(r) {
|
|
77
|
+
return Object.values(r).some((s) => s !== null);
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
-
for (const
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
79
|
+
function xr(r) {
|
|
80
|
+
for (const s of Object.values(r))
|
|
81
|
+
if (s !== null)
|
|
82
|
+
return s;
|
|
82
83
|
return null;
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function fr(r, s) {
|
|
85
86
|
return {
|
|
86
|
-
...
|
|
87
|
-
[
|
|
87
|
+
...r,
|
|
88
|
+
[s]: null
|
|
88
89
|
};
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
-
const
|
|
92
|
-
for (const t of Object.keys(
|
|
93
|
-
|
|
94
|
-
return
|
|
91
|
+
function vr(r) {
|
|
92
|
+
const s = {};
|
|
93
|
+
for (const t of Object.keys(r))
|
|
94
|
+
s[t] = null;
|
|
95
|
+
return s;
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
-
initialValues:
|
|
98
|
-
validationRules:
|
|
97
|
+
function hr({
|
|
98
|
+
initialValues: r,
|
|
99
|
+
validationRules: s = {},
|
|
99
100
|
onSubmit: t
|
|
100
101
|
}) {
|
|
101
|
-
const [a,
|
|
102
|
+
const [a, l] = k(r), [n, c] = k({}), [i, u] = k({}), [x, d] = k(!1), m = JSON.stringify(a) !== JSON.stringify(r), v = _(
|
|
102
103
|
(b) => {
|
|
103
|
-
const { name:
|
|
104
|
-
let
|
|
105
|
-
if (T === "checkbox" ?
|
|
106
|
-
...
|
|
107
|
-
[
|
|
108
|
-
})),
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
...
|
|
112
|
-
[
|
|
104
|
+
const { name: h, value: j, type: T } = b.target;
|
|
105
|
+
let M = j;
|
|
106
|
+
if (T === "checkbox" ? M = b.target.checked : T === "number" && (M = j ? Number(j) : ""), l((P) => ({
|
|
107
|
+
...P,
|
|
108
|
+
[h]: M
|
|
109
|
+
})), s[h]) {
|
|
110
|
+
const P = Z({ [h]: M }, { [h]: s[h] });
|
|
111
|
+
c((W) => ({
|
|
112
|
+
...W,
|
|
113
|
+
[h]: P[h]
|
|
113
114
|
}));
|
|
114
115
|
}
|
|
115
116
|
},
|
|
116
|
-
[
|
|
117
|
-
), g =
|
|
117
|
+
[s]
|
|
118
|
+
), g = _(
|
|
118
119
|
(b) => {
|
|
119
|
-
const { name:
|
|
120
|
-
u((
|
|
121
|
-
...
|
|
122
|
-
[
|
|
120
|
+
const { name: h } = b.target;
|
|
121
|
+
u((j) => ({
|
|
122
|
+
...j,
|
|
123
|
+
[h]: !0
|
|
123
124
|
}));
|
|
124
125
|
},
|
|
125
126
|
[]
|
|
126
|
-
),
|
|
127
|
-
if (
|
|
128
|
-
...
|
|
129
|
-
[b]:
|
|
130
|
-
})),
|
|
131
|
-
const
|
|
132
|
-
|
|
127
|
+
), N = _((b, h) => {
|
|
128
|
+
if (l((j) => ({
|
|
129
|
+
...j,
|
|
130
|
+
[b]: h
|
|
131
|
+
})), s[b]) {
|
|
132
|
+
const j = Z({ [b]: h }, { [b]: s[b] });
|
|
133
|
+
c((T) => ({
|
|
133
134
|
...T,
|
|
134
|
-
[b]:
|
|
135
|
+
[b]: j[b]
|
|
135
136
|
}));
|
|
136
137
|
}
|
|
137
|
-
}, [
|
|
138
|
-
|
|
139
|
-
...
|
|
140
|
-
[b]:
|
|
138
|
+
}, [s]), V = _((b, h) => {
|
|
139
|
+
c((j) => ({
|
|
140
|
+
...j,
|
|
141
|
+
[b]: h
|
|
141
142
|
}));
|
|
142
|
-
}, []),
|
|
143
|
+
}, []), E = _(
|
|
143
144
|
async (b) => {
|
|
144
145
|
b.preventDefault();
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
const
|
|
146
|
+
const h = Z(a, s);
|
|
147
|
+
c(h);
|
|
148
|
+
const j = {};
|
|
148
149
|
for (const T of Object.keys(a))
|
|
149
|
-
|
|
150
|
-
if (u(
|
|
150
|
+
j[T] = !0;
|
|
151
|
+
if (u(j), !Be(h) && t) {
|
|
151
152
|
d(!0);
|
|
152
153
|
try {
|
|
153
154
|
await t(a);
|
|
@@ -158,46 +159,46 @@ function ys({
|
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
161
|
},
|
|
161
|
-
[a,
|
|
162
|
-
),
|
|
163
|
-
|
|
164
|
-
}, [
|
|
162
|
+
[a, s, t]
|
|
163
|
+
), O = _(() => {
|
|
164
|
+
l(r), c({}), u({}), d(!1);
|
|
165
|
+
}, [r]), R = _(
|
|
165
166
|
(b) => ({
|
|
166
167
|
name: b,
|
|
167
168
|
value: a[b] || "",
|
|
168
|
-
onChange:
|
|
169
|
+
onChange: v,
|
|
169
170
|
onBlur: g
|
|
170
171
|
}),
|
|
171
|
-
[a,
|
|
172
|
-
),
|
|
173
|
-
(b) =>
|
|
174
|
-
[
|
|
175
|
-
),
|
|
172
|
+
[a, v, g]
|
|
173
|
+
), D = _(
|
|
174
|
+
(b) => n[b] || null,
|
|
175
|
+
[n]
|
|
176
|
+
), F = _(
|
|
176
177
|
(b) => i[b] || !1,
|
|
177
178
|
[i]
|
|
178
|
-
),
|
|
179
|
-
(b) => a[b] !==
|
|
180
|
-
[a,
|
|
179
|
+
), L = _(
|
|
180
|
+
(b) => a[b] !== r[b],
|
|
181
|
+
[a, r]
|
|
181
182
|
);
|
|
182
183
|
return {
|
|
183
184
|
values: a,
|
|
184
|
-
errors:
|
|
185
|
+
errors: n,
|
|
185
186
|
touched: i,
|
|
186
|
-
isSubmitting:
|
|
187
|
+
isSubmitting: x,
|
|
187
188
|
isDirty: m,
|
|
188
|
-
handleChange:
|
|
189
|
+
handleChange: v,
|
|
189
190
|
handleBlur: g,
|
|
190
|
-
setFieldValue:
|
|
191
|
-
setFieldError:
|
|
192
|
-
handleSubmit:
|
|
193
|
-
resetForm:
|
|
194
|
-
getFieldProps:
|
|
195
|
-
getFieldError:
|
|
196
|
-
isFieldTouched:
|
|
197
|
-
isFieldDirty:
|
|
191
|
+
setFieldValue: N,
|
|
192
|
+
setFieldError: V,
|
|
193
|
+
handleSubmit: E,
|
|
194
|
+
resetForm: O,
|
|
195
|
+
getFieldProps: R,
|
|
196
|
+
getFieldError: D,
|
|
197
|
+
isFieldTouched: F,
|
|
198
|
+
isFieldDirty: L
|
|
198
199
|
};
|
|
199
200
|
}
|
|
200
|
-
var
|
|
201
|
+
var H = { exports: {} }, Y = {};
|
|
201
202
|
/**
|
|
202
203
|
* @license React
|
|
203
204
|
* react-jsx-runtime.production.js
|
|
@@ -207,29 +208,29 @@ var ie = { exports: {} }, ee = {};
|
|
|
207
208
|
* This source code is licensed under the MIT license found in the
|
|
208
209
|
* LICENSE file in the root directory of this source tree.
|
|
209
210
|
*/
|
|
210
|
-
var
|
|
211
|
-
function
|
|
212
|
-
if (
|
|
213
|
-
|
|
214
|
-
var
|
|
215
|
-
function t(a,
|
|
216
|
-
var
|
|
217
|
-
if (
|
|
218
|
-
|
|
219
|
-
for (var i in
|
|
220
|
-
i !== "key" && (
|
|
221
|
-
} else
|
|
222
|
-
return
|
|
223
|
-
$$typeof:
|
|
211
|
+
var oe;
|
|
212
|
+
function Se() {
|
|
213
|
+
if (oe) return Y;
|
|
214
|
+
oe = 1;
|
|
215
|
+
var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
216
|
+
function t(a, l, n) {
|
|
217
|
+
var c = null;
|
|
218
|
+
if (n !== void 0 && (c = "" + n), l.key !== void 0 && (c = "" + l.key), "key" in l) {
|
|
219
|
+
n = {};
|
|
220
|
+
for (var i in l)
|
|
221
|
+
i !== "key" && (n[i] = l[i]);
|
|
222
|
+
} else n = l;
|
|
223
|
+
return l = n.ref, {
|
|
224
|
+
$$typeof: r,
|
|
224
225
|
type: a,
|
|
225
|
-
key:
|
|
226
|
-
ref:
|
|
227
|
-
props:
|
|
226
|
+
key: c,
|
|
227
|
+
ref: l !== void 0 ? l : null,
|
|
228
|
+
props: n
|
|
228
229
|
};
|
|
229
230
|
}
|
|
230
|
-
return
|
|
231
|
+
return Y.Fragment = s, Y.jsx = t, Y.jsxs = t, Y;
|
|
231
232
|
}
|
|
232
|
-
var
|
|
233
|
+
var U = {};
|
|
233
234
|
/**
|
|
234
235
|
* @license React
|
|
235
236
|
* react-jsx-runtime.development.js
|
|
@@ -239,245 +240,245 @@ var re = {};
|
|
|
239
240
|
* This source code is licensed under the MIT license found in the
|
|
240
241
|
* LICENSE file in the root directory of this source tree.
|
|
241
242
|
*/
|
|
242
|
-
var
|
|
243
|
-
function
|
|
244
|
-
return
|
|
245
|
-
function
|
|
246
|
-
if (
|
|
247
|
-
if (typeof
|
|
248
|
-
return
|
|
249
|
-
if (typeof
|
|
250
|
-
switch (
|
|
251
|
-
case
|
|
243
|
+
var le;
|
|
244
|
+
function Pe() {
|
|
245
|
+
return le || (le = 1, process.env.NODE_ENV !== "production" && function() {
|
|
246
|
+
function r(o) {
|
|
247
|
+
if (o == null) return null;
|
|
248
|
+
if (typeof o == "function")
|
|
249
|
+
return o.$$typeof === M ? null : o.displayName || o.name || null;
|
|
250
|
+
if (typeof o == "string") return o;
|
|
251
|
+
switch (o) {
|
|
252
|
+
case V:
|
|
252
253
|
return "Fragment";
|
|
253
|
-
case
|
|
254
|
+
case O:
|
|
254
255
|
return "Profiler";
|
|
255
|
-
case
|
|
256
|
+
case E:
|
|
256
257
|
return "StrictMode";
|
|
257
|
-
case
|
|
258
|
+
case L:
|
|
258
259
|
return "Suspense";
|
|
259
260
|
case b:
|
|
260
261
|
return "SuspenseList";
|
|
261
262
|
case T:
|
|
262
263
|
return "Activity";
|
|
263
264
|
}
|
|
264
|
-
if (typeof
|
|
265
|
-
switch (typeof
|
|
265
|
+
if (typeof o == "object")
|
|
266
|
+
switch (typeof o.tag == "number" && console.error(
|
|
266
267
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
267
|
-
),
|
|
268
|
-
case
|
|
268
|
+
), o.$$typeof) {
|
|
269
|
+
case N:
|
|
269
270
|
return "Portal";
|
|
270
|
-
case
|
|
271
|
-
return (
|
|
272
|
-
case I:
|
|
273
|
-
return (c._context.displayName || "Context") + ".Consumer";
|
|
271
|
+
case D:
|
|
272
|
+
return (o.displayName || "Context") + ".Provider";
|
|
274
273
|
case R:
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
return
|
|
279
|
-
case
|
|
280
|
-
|
|
274
|
+
return (o._context.displayName || "Context") + ".Consumer";
|
|
275
|
+
case F:
|
|
276
|
+
var f = o.render;
|
|
277
|
+
return o = o.displayName, o || (o = f.displayName || f.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
278
|
+
case h:
|
|
279
|
+
return f = o.displayName || null, f !== null ? f : r(o.type) || "Memo";
|
|
280
|
+
case j:
|
|
281
|
+
f = o._payload, o = o._init;
|
|
281
282
|
try {
|
|
282
|
-
return
|
|
283
|
+
return r(o(f));
|
|
283
284
|
} catch {
|
|
284
285
|
}
|
|
285
286
|
}
|
|
286
287
|
return null;
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
-
return "" +
|
|
289
|
+
function s(o) {
|
|
290
|
+
return "" + o;
|
|
290
291
|
}
|
|
291
|
-
function t(
|
|
292
|
+
function t(o) {
|
|
292
293
|
try {
|
|
293
|
-
|
|
294
|
-
var
|
|
294
|
+
s(o);
|
|
295
|
+
var f = !1;
|
|
295
296
|
} catch {
|
|
296
|
-
|
|
297
|
+
f = !0;
|
|
297
298
|
}
|
|
298
|
-
if (
|
|
299
|
-
|
|
300
|
-
var p =
|
|
299
|
+
if (f) {
|
|
300
|
+
f = console;
|
|
301
|
+
var p = f.error, w = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
301
302
|
return p.call(
|
|
302
|
-
|
|
303
|
+
f,
|
|
303
304
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
304
|
-
|
|
305
|
-
),
|
|
305
|
+
w
|
|
306
|
+
), s(o);
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
|
-
function a(
|
|
309
|
-
if (
|
|
310
|
-
if (typeof
|
|
309
|
+
function a(o) {
|
|
310
|
+
if (o === V) return "<>";
|
|
311
|
+
if (typeof o == "object" && o !== null && o.$$typeof === j)
|
|
311
312
|
return "<...>";
|
|
312
313
|
try {
|
|
313
|
-
var
|
|
314
|
-
return
|
|
314
|
+
var f = r(o);
|
|
315
|
+
return f ? "<" + f + ">" : "<...>";
|
|
315
316
|
} catch {
|
|
316
317
|
return "<...>";
|
|
317
318
|
}
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
-
var
|
|
321
|
-
return
|
|
320
|
+
function l() {
|
|
321
|
+
var o = P.A;
|
|
322
|
+
return o === null ? null : o.getOwner();
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function n() {
|
|
324
325
|
return Error("react-stack-top-frame");
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
-
if (
|
|
328
|
-
var
|
|
329
|
-
if (
|
|
327
|
+
function c(o) {
|
|
328
|
+
if (W.call(o, "key")) {
|
|
329
|
+
var f = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
330
|
+
if (f && f.isReactWarning) return !1;
|
|
330
331
|
}
|
|
331
|
-
return
|
|
332
|
+
return o.key !== void 0;
|
|
332
333
|
}
|
|
333
|
-
function i(
|
|
334
|
+
function i(o, f) {
|
|
334
335
|
function p() {
|
|
335
|
-
|
|
336
|
+
re || (re = !0, console.error(
|
|
336
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)",
|
|
337
|
-
|
|
338
|
+
f
|
|
338
339
|
));
|
|
339
340
|
}
|
|
340
|
-
p.isReactWarning = !0, Object.defineProperty(
|
|
341
|
+
p.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
341
342
|
get: p,
|
|
342
343
|
configurable: !0
|
|
343
344
|
});
|
|
344
345
|
}
|
|
345
346
|
function u() {
|
|
346
|
-
var
|
|
347
|
-
return
|
|
347
|
+
var o = r(this.type);
|
|
348
|
+
return se[o] || (se[o] = !0, console.error(
|
|
348
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."
|
|
349
|
-
)),
|
|
350
|
+
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
350
351
|
}
|
|
351
|
-
function
|
|
352
|
-
return p =
|
|
352
|
+
function x(o, f, p, w, B, A, J, q) {
|
|
353
|
+
return p = A.ref, o = {
|
|
353
354
|
$$typeof: g,
|
|
354
|
-
type:
|
|
355
|
-
key:
|
|
356
|
-
props:
|
|
357
|
-
_owner:
|
|
358
|
-
}, (p !== void 0 ? p : null) !== null ? Object.defineProperty(
|
|
355
|
+
type: o,
|
|
356
|
+
key: f,
|
|
357
|
+
props: A,
|
|
358
|
+
_owner: B
|
|
359
|
+
}, (p !== void 0 ? p : null) !== null ? Object.defineProperty(o, "ref", {
|
|
359
360
|
enumerable: !1,
|
|
360
361
|
get: u
|
|
361
|
-
}) : Object.defineProperty(
|
|
362
|
+
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
362
363
|
configurable: !1,
|
|
363
364
|
enumerable: !1,
|
|
364
365
|
writable: !0,
|
|
365
366
|
value: 0
|
|
366
|
-
}), Object.defineProperty(
|
|
367
|
+
}), Object.defineProperty(o, "_debugInfo", {
|
|
367
368
|
configurable: !1,
|
|
368
369
|
enumerable: !1,
|
|
369
370
|
writable: !0,
|
|
370
371
|
value: null
|
|
371
|
-
}), Object.defineProperty(
|
|
372
|
+
}), Object.defineProperty(o, "_debugStack", {
|
|
372
373
|
configurable: !1,
|
|
373
374
|
enumerable: !1,
|
|
374
375
|
writable: !0,
|
|
375
|
-
value:
|
|
376
|
-
}), Object.defineProperty(
|
|
376
|
+
value: J
|
|
377
|
+
}), Object.defineProperty(o, "_debugTask", {
|
|
377
378
|
configurable: !1,
|
|
378
379
|
enumerable: !1,
|
|
379
380
|
writable: !0,
|
|
380
|
-
value:
|
|
381
|
-
}), Object.freeze && (Object.freeze(
|
|
381
|
+
value: q
|
|
382
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
382
383
|
}
|
|
383
|
-
function d(
|
|
384
|
-
var
|
|
385
|
-
if (
|
|
386
|
-
if (
|
|
387
|
-
if (
|
|
388
|
-
for (
|
|
389
|
-
m(
|
|
390
|
-
Object.freeze && Object.freeze(
|
|
384
|
+
function d(o, f, p, w, B, A, J, q) {
|
|
385
|
+
var y = f.children;
|
|
386
|
+
if (y !== void 0)
|
|
387
|
+
if (w)
|
|
388
|
+
if (ge(y)) {
|
|
389
|
+
for (w = 0; w < y.length; w++)
|
|
390
|
+
m(y[w]);
|
|
391
|
+
Object.freeze && Object.freeze(y);
|
|
391
392
|
} else
|
|
392
393
|
console.error(
|
|
393
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."
|
|
394
395
|
);
|
|
395
|
-
else m(
|
|
396
|
-
if (
|
|
397
|
-
|
|
398
|
-
var
|
|
399
|
-
return
|
|
396
|
+
else m(y);
|
|
397
|
+
if (W.call(f, "key")) {
|
|
398
|
+
y = r(o);
|
|
399
|
+
var z = Object.keys(f).filter(function(be) {
|
|
400
|
+
return be !== "key";
|
|
400
401
|
});
|
|
401
|
-
|
|
402
|
+
w = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", ne[y + w] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
402
403
|
`A props object containing a "key" prop is being spread into JSX:
|
|
403
404
|
let props = %s;
|
|
404
405
|
<%s {...props} />
|
|
405
406
|
React keys must be passed directly to JSX without using spread:
|
|
406
407
|
let props = %s;
|
|
407
408
|
<%s key={someKey} {...props} />`,
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
),
|
|
409
|
+
w,
|
|
410
|
+
y,
|
|
411
|
+
z,
|
|
412
|
+
y
|
|
413
|
+
), ne[y + w] = !0);
|
|
413
414
|
}
|
|
414
|
-
if (
|
|
415
|
+
if (y = null, p !== void 0 && (t(p), y = "" + p), c(f) && (t(f.key), y = "" + f.key), "key" in f) {
|
|
415
416
|
p = {};
|
|
416
|
-
for (var
|
|
417
|
-
|
|
418
|
-
} else p =
|
|
419
|
-
return
|
|
417
|
+
for (var X in f)
|
|
418
|
+
X !== "key" && (p[X] = f[X]);
|
|
419
|
+
} else p = f;
|
|
420
|
+
return y && i(
|
|
420
421
|
p,
|
|
421
|
-
typeof
|
|
422
|
-
),
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
422
|
+
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
423
|
+
), x(
|
|
424
|
+
o,
|
|
425
|
+
y,
|
|
426
|
+
A,
|
|
427
|
+
B,
|
|
428
|
+
l(),
|
|
428
429
|
p,
|
|
429
|
-
|
|
430
|
-
|
|
430
|
+
J,
|
|
431
|
+
q
|
|
431
432
|
);
|
|
432
433
|
}
|
|
433
|
-
function m(
|
|
434
|
-
typeof
|
|
434
|
+
function m(o) {
|
|
435
|
+
typeof o == "object" && o !== null && o.$$typeof === g && o._store && (o._store.validated = 1);
|
|
435
436
|
}
|
|
436
|
-
var
|
|
437
|
+
var v = S, g = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), V = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), D = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), P = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, ge = Array.isArray, G = console.createTask ? console.createTask : function() {
|
|
437
438
|
return null;
|
|
438
439
|
};
|
|
439
|
-
|
|
440
|
-
"react-stack-bottom-frame": function(
|
|
441
|
-
return
|
|
440
|
+
v = {
|
|
441
|
+
"react-stack-bottom-frame": function(o) {
|
|
442
|
+
return o();
|
|
442
443
|
}
|
|
443
444
|
};
|
|
444
|
-
var
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
)(),
|
|
448
|
-
|
|
449
|
-
var
|
|
445
|
+
var re, se = {}, ae = v["react-stack-bottom-frame"].bind(
|
|
446
|
+
v,
|
|
447
|
+
n
|
|
448
|
+
)(), te = G(a(n)), ne = {};
|
|
449
|
+
U.Fragment = V, U.jsx = function(o, f, p, w, B) {
|
|
450
|
+
var A = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
450
451
|
return d(
|
|
451
|
-
|
|
452
|
-
|
|
452
|
+
o,
|
|
453
|
+
f,
|
|
453
454
|
p,
|
|
454
455
|
!1,
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
456
|
+
w,
|
|
457
|
+
B,
|
|
458
|
+
A ? Error("react-stack-top-frame") : ae,
|
|
459
|
+
A ? G(a(o)) : te
|
|
459
460
|
);
|
|
460
|
-
},
|
|
461
|
-
var
|
|
461
|
+
}, U.jsxs = function(o, f, p, w, B) {
|
|
462
|
+
var A = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
462
463
|
return d(
|
|
463
|
-
|
|
464
|
-
|
|
464
|
+
o,
|
|
465
|
+
f,
|
|
465
466
|
p,
|
|
466
467
|
!0,
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
468
|
+
w,
|
|
469
|
+
B,
|
|
470
|
+
A ? Error("react-stack-top-frame") : ae,
|
|
471
|
+
A ? G(a(o)) : te
|
|
471
472
|
);
|
|
472
473
|
};
|
|
473
|
-
}()),
|
|
474
|
+
}()), U;
|
|
474
475
|
}
|
|
475
|
-
var
|
|
476
|
-
function
|
|
477
|
-
return
|
|
476
|
+
var ce;
|
|
477
|
+
function Ie() {
|
|
478
|
+
return ce || (ce = 1, process.env.NODE_ENV === "production" ? H.exports = Se() : H.exports = Pe()), H.exports;
|
|
478
479
|
}
|
|
479
|
-
var
|
|
480
|
-
const
|
|
480
|
+
var e = Ie();
|
|
481
|
+
const De = {
|
|
481
482
|
bg: "bg-indigo-600",
|
|
482
483
|
activeBg: "bg-indigo-700",
|
|
483
484
|
text: "text-indigo-200",
|
|
@@ -485,188 +486,188 @@ const fr = {
|
|
|
485
486
|
hoverBg: "hover:bg-indigo-700",
|
|
486
487
|
hoverText: "hover:text-white"
|
|
487
488
|
};
|
|
488
|
-
function
|
|
489
|
-
return
|
|
489
|
+
function C(...r) {
|
|
490
|
+
return r.filter(Boolean).join(" ");
|
|
490
491
|
}
|
|
491
|
-
function
|
|
492
|
-
const [t, a] =
|
|
493
|
-
return /* @__PURE__ */
|
|
494
|
-
/* @__PURE__ */
|
|
492
|
+
function ie({ item: r, colorScheme: s }) {
|
|
493
|
+
const [t, a] = k(r.current || r.children?.some((n) => n.current)), l = r.children && r.children.length > 0;
|
|
494
|
+
return /* @__PURE__ */ e.jsxs("li", { children: [
|
|
495
|
+
/* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
|
|
495
496
|
"a",
|
|
496
497
|
{
|
|
497
|
-
href:
|
|
498
|
-
onClick: (
|
|
499
|
-
|
|
498
|
+
href: l ? void 0 : r.href,
|
|
499
|
+
onClick: (n) => {
|
|
500
|
+
l && (n.preventDefault(), a(!t));
|
|
500
501
|
},
|
|
501
|
-
className:
|
|
502
|
-
|
|
502
|
+
className: C(
|
|
503
|
+
r.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
503
504
|
"group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
|
|
504
|
-
|
|
505
|
+
l ? "cursor-pointer" : ""
|
|
505
506
|
),
|
|
506
507
|
children: [
|
|
507
|
-
/* @__PURE__ */
|
|
508
|
-
/* @__PURE__ */
|
|
509
|
-
|
|
508
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-3", children: [
|
|
509
|
+
/* @__PURE__ */ e.jsx(
|
|
510
|
+
r.icon,
|
|
510
511
|
{
|
|
511
512
|
"aria-hidden": "true",
|
|
512
|
-
className:
|
|
513
|
-
|
|
513
|
+
className: C(
|
|
514
|
+
r.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
514
515
|
"size-6 shrink-0"
|
|
515
516
|
)
|
|
516
517
|
}
|
|
517
518
|
),
|
|
518
|
-
|
|
519
|
+
r.name
|
|
519
520
|
] }),
|
|
520
|
-
|
|
521
|
-
|
|
521
|
+
l && /* @__PURE__ */ e.jsx(
|
|
522
|
+
ee,
|
|
522
523
|
{
|
|
523
|
-
className:
|
|
524
|
+
className: C(
|
|
524
525
|
"size-5 shrink-0 transition-transform",
|
|
525
526
|
t ? "rotate-180" : "",
|
|
526
|
-
|
|
527
|
+
r.current ? s.activeText : s.text
|
|
527
528
|
)
|
|
528
529
|
}
|
|
529
530
|
)
|
|
530
531
|
]
|
|
531
532
|
}
|
|
532
533
|
) }),
|
|
533
|
-
|
|
534
|
+
l && t && /* @__PURE__ */ e.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: r.children.map((n) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
|
|
534
535
|
"a",
|
|
535
536
|
{
|
|
536
|
-
href:
|
|
537
|
-
className:
|
|
538
|
-
|
|
537
|
+
href: n.href,
|
|
538
|
+
className: C(
|
|
539
|
+
n.current ? `${s.activeBg} ${s.activeText}` : `${s.text} ${s.hoverBg} ${s.hoverText}`,
|
|
539
540
|
"group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
|
|
540
541
|
),
|
|
541
542
|
children: [
|
|
542
|
-
/* @__PURE__ */
|
|
543
|
-
|
|
543
|
+
/* @__PURE__ */ e.jsx(
|
|
544
|
+
n.icon,
|
|
544
545
|
{
|
|
545
546
|
"aria-hidden": "true",
|
|
546
|
-
className:
|
|
547
|
-
|
|
547
|
+
className: C(
|
|
548
|
+
n.current ? s.activeText : `${s.text} group-${s.hoverText}`,
|
|
548
549
|
"size-5 shrink-0"
|
|
549
550
|
)
|
|
550
551
|
}
|
|
551
552
|
),
|
|
552
|
-
|
|
553
|
+
n.name
|
|
553
554
|
]
|
|
554
555
|
}
|
|
555
|
-
) },
|
|
556
|
+
) }, n.name)) })
|
|
556
557
|
] });
|
|
557
558
|
}
|
|
558
|
-
function
|
|
559
|
-
const [
|
|
560
|
-
return /* @__PURE__ */
|
|
561
|
-
/* @__PURE__ */
|
|
562
|
-
/* @__PURE__ */
|
|
563
|
-
|
|
559
|
+
function gr({ company: r, profile: s, navigation: t, colorScheme: a = De }) {
|
|
560
|
+
const [l, n] = k(!1);
|
|
561
|
+
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
562
|
+
/* @__PURE__ */ e.jsxs(we, { open: l, onClose: n, className: "relative z-50 lg:hidden", children: [
|
|
563
|
+
/* @__PURE__ */ e.jsx(
|
|
564
|
+
ye,
|
|
564
565
|
{
|
|
565
566
|
transition: !0,
|
|
566
567
|
className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
|
|
567
568
|
}
|
|
568
569
|
),
|
|
569
|
-
/* @__PURE__ */
|
|
570
|
-
|
|
570
|
+
/* @__PURE__ */ e.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ e.jsxs(
|
|
571
|
+
Ne,
|
|
571
572
|
{
|
|
572
573
|
transition: !0,
|
|
573
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",
|
|
574
575
|
children: [
|
|
575
|
-
/* @__PURE__ */
|
|
576
|
-
/* @__PURE__ */
|
|
577
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ e.jsx(Ce, { children: /* @__PURE__ */ e.jsx("div", { className: "absolute top-0 left-full flex w-16 justify-center pt-5 duration-300 ease-in-out data-closed:opacity-0", children: /* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!1), className: "-m-2.5 p-2.5", children: [
|
|
577
|
+
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close sidebar" }),
|
|
578
|
+
/* @__PURE__ */ e.jsx(ke, { "aria-hidden": "true", className: "size-6 text-white" })
|
|
578
579
|
] }) }) }),
|
|
579
|
-
/* @__PURE__ */
|
|
580
|
-
/* @__PURE__ */
|
|
580
|
+
/* @__PURE__ */ e.jsxs("div", { className: C("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
|
|
581
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
581
582
|
"img",
|
|
582
583
|
{
|
|
583
|
-
alt:
|
|
584
|
-
src:
|
|
584
|
+
alt: r.name,
|
|
585
|
+
src: r.logo,
|
|
585
586
|
className: "h-8 w-auto"
|
|
586
587
|
}
|
|
587
588
|
) }),
|
|
588
|
-
/* @__PURE__ */
|
|
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(ie, { item: c, colorScheme: a }, c.name)) }) }) }) })
|
|
589
590
|
] })
|
|
590
591
|
]
|
|
591
592
|
}
|
|
592
593
|
) })
|
|
593
594
|
] }),
|
|
594
|
-
/* @__PURE__ */
|
|
595
|
-
/* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ e.jsx("div", { className: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col", children: /* @__PURE__ */ e.jsxs("div", { className: C("flex grow flex-col gap-y-5 overflow-y-auto px-6", a.bg), children: [
|
|
596
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ e.jsx(
|
|
596
597
|
"img",
|
|
597
598
|
{
|
|
598
|
-
alt:
|
|
599
|
-
src:
|
|
599
|
+
alt: r.name,
|
|
600
|
+
src: r.logo,
|
|
600
601
|
className: "h-8 w-auto"
|
|
601
602
|
}
|
|
602
603
|
) }),
|
|
603
|
-
/* @__PURE__ */
|
|
604
|
-
/* @__PURE__ */
|
|
605
|
-
/* @__PURE__ */
|
|
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((c) => /* @__PURE__ */ e.jsx(ie, { item: c, colorScheme: a }, c.name)) }) }),
|
|
606
|
+
/* @__PURE__ */ e.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ e.jsxs(
|
|
606
607
|
"a",
|
|
607
608
|
{
|
|
608
609
|
href: "#",
|
|
609
|
-
className:
|
|
610
|
+
className: C(
|
|
610
611
|
"flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
|
|
611
612
|
a.activeText,
|
|
612
613
|
a.hoverBg
|
|
613
614
|
),
|
|
614
615
|
children: [
|
|
615
|
-
/* @__PURE__ */
|
|
616
|
+
/* @__PURE__ */ e.jsx(
|
|
616
617
|
"img",
|
|
617
618
|
{
|
|
618
|
-
alt:
|
|
619
|
-
src:
|
|
620
|
-
className:
|
|
619
|
+
alt: s.name,
|
|
620
|
+
src: s.image,
|
|
621
|
+
className: C("size-8 rounded-full", a.activeBg)
|
|
621
622
|
}
|
|
622
623
|
),
|
|
623
|
-
/* @__PURE__ */
|
|
624
|
-
/* @__PURE__ */
|
|
624
|
+
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
625
|
+
/* @__PURE__ */ e.jsx("span", { "aria-hidden": "true", children: s.name })
|
|
625
626
|
]
|
|
626
627
|
}
|
|
627
628
|
) })
|
|
628
629
|
] }) })
|
|
629
630
|
] }) }),
|
|
630
|
-
/* @__PURE__ */
|
|
631
|
-
/* @__PURE__ */
|
|
632
|
-
/* @__PURE__ */
|
|
633
|
-
/* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ e.jsxs("div", { className: C("sticky top-0 z-40 flex items-center gap-x-6 px-4 py-4 shadow-xs sm:px-6 lg:hidden", a.bg), children: [
|
|
632
|
+
/* @__PURE__ */ e.jsxs("button", { type: "button", onClick: () => n(!0), className: C("-m-2.5 p-2.5 lg:hidden", a.text), children: [
|
|
633
|
+
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Open sidebar" }),
|
|
634
|
+
/* @__PURE__ */ e.jsx(Ve, { "aria-hidden": "true", className: "size-6" })
|
|
634
635
|
] }),
|
|
635
|
-
/* @__PURE__ */
|
|
636
|
-
/* @__PURE__ */
|
|
637
|
-
/* @__PURE__ */
|
|
638
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ e.jsx("div", { className: C("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
|
|
637
|
+
/* @__PURE__ */ e.jsxs("a", { href: "#", children: [
|
|
638
|
+
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
639
|
+
/* @__PURE__ */ e.jsx(
|
|
639
640
|
"img",
|
|
640
641
|
{
|
|
641
|
-
alt:
|
|
642
|
-
src:
|
|
643
|
-
className:
|
|
642
|
+
alt: s.name,
|
|
643
|
+
src: s.image,
|
|
644
|
+
className: C("size-8 rounded-full", a.activeBg)
|
|
644
645
|
}
|
|
645
646
|
)
|
|
646
647
|
] })
|
|
647
648
|
] })
|
|
648
649
|
] }) });
|
|
649
650
|
}
|
|
650
|
-
const
|
|
651
|
+
const ve = (r) => r.replace("--color-", "bg-"), Fe = ({ name: r, cssVar: s, value: t }) => {
|
|
651
652
|
const a = `rgb(${t})`;
|
|
652
|
-
return /* @__PURE__ */
|
|
653
|
-
/* @__PURE__ */
|
|
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
|
+
/* @__PURE__ */ e.jsx(
|
|
654
655
|
"div",
|
|
655
656
|
{
|
|
656
|
-
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)}`
|
|
657
658
|
}
|
|
658
659
|
),
|
|
659
|
-
/* @__PURE__ */
|
|
660
|
-
/* @__PURE__ */
|
|
661
|
-
/* @__PURE__ */
|
|
662
|
-
/* @__PURE__ */
|
|
660
|
+
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
661
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: r }),
|
|
662
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: s }),
|
|
663
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-secondary", children: a })
|
|
663
664
|
] })
|
|
664
665
|
] });
|
|
665
|
-
},
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
/* @__PURE__ */
|
|
668
|
-
] }),
|
|
669
|
-
const
|
|
666
|
+
}, de = ({ title: r, colors: s }) => /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
667
|
+
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: r }),
|
|
668
|
+
/* @__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: s.map((t) => /* @__PURE__ */ e.jsx(Fe, { ...t }, t.name)) })
|
|
669
|
+
] }), Le = () => {
|
|
670
|
+
const r = [
|
|
670
671
|
{
|
|
671
672
|
title: "Success Colors (Green)",
|
|
672
673
|
colors: [
|
|
@@ -715,7 +716,7 @@ const Le = (e) => e.replace("--color-", "bg-"), xr = ({ name: e, cssVar: r, valu
|
|
|
715
716
|
{ name: "950", cssVar: "--color-error-950", value: "69 10 10" }
|
|
716
717
|
]
|
|
717
718
|
}
|
|
718
|
-
],
|
|
719
|
+
], s = [
|
|
719
720
|
{
|
|
720
721
|
title: "Reseda Green",
|
|
721
722
|
colors: [
|
|
@@ -876,92 +877,92 @@ const Le = (e) => e.replace("--color-", "bg-"), xr = ({ name: e, cssVar: r, valu
|
|
|
876
877
|
{ name: "Border", cssVar: "--color-border" },
|
|
877
878
|
{ name: "Border Subtle", cssVar: "--color-border-subtle" }
|
|
878
879
|
];
|
|
879
|
-
return /* @__PURE__ */
|
|
880
|
-
/* @__PURE__ */
|
|
881
|
-
/* @__PURE__ */
|
|
882
|
-
/* @__PURE__ */
|
|
880
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "p-8 space-y-8 bg-background min-h-screen", children: [
|
|
881
|
+
/* @__PURE__ */ e.jsxs("div", { className: "text-center space-y-2", children: [
|
|
882
|
+
/* @__PURE__ */ e.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
|
|
883
|
+
/* @__PURE__ */ e.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
|
|
883
884
|
] }),
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
/* @__PURE__ */
|
|
887
|
-
/* @__PURE__ */
|
|
888
|
-
/* @__PURE__ */
|
|
889
|
-
/* @__PURE__ */
|
|
885
|
+
s.map((a) => /* @__PURE__ */ e.jsx(de, { ...a }, a.title)),
|
|
886
|
+
r.map((a) => /* @__PURE__ */ e.jsx(de, { ...a }, a.title)),
|
|
887
|
+
/* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [
|
|
888
|
+
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: "Semantic Colors (Theme-aware)" }),
|
|
889
|
+
/* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: t.map((a) => /* @__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: [
|
|
890
|
+
/* @__PURE__ */ e.jsx(
|
|
890
891
|
"div",
|
|
891
892
|
{
|
|
892
|
-
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)}`
|
|
893
894
|
}
|
|
894
895
|
),
|
|
895
|
-
/* @__PURE__ */
|
|
896
|
-
/* @__PURE__ */
|
|
897
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
897
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-text-primary", children: a.name }),
|
|
898
|
+
/* @__PURE__ */ e.jsx("div", { className: "text-xs text-text-muted font-mono", children: a.cssVar })
|
|
898
899
|
] })
|
|
899
900
|
] }, a.name)) })
|
|
900
901
|
] }),
|
|
901
|
-
/* @__PURE__ */
|
|
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" }) })
|
|
902
903
|
] });
|
|
903
|
-
},
|
|
904
|
-
children:
|
|
905
|
-
defaultTheme:
|
|
904
|
+
}, he = pe(void 0), Me = ({
|
|
905
|
+
children: r,
|
|
906
|
+
defaultTheme: s = "system",
|
|
906
907
|
storageKey: t = "acemyjob-ui-theme"
|
|
907
908
|
}) => {
|
|
908
|
-
const [a,
|
|
909
|
-
|
|
909
|
+
const [a, l] = k(s), [n, c] = k("light"), [i, u] = k(!1);
|
|
910
|
+
K(() => {
|
|
910
911
|
const d = localStorage.getItem(t);
|
|
911
|
-
d &&
|
|
912
|
-
}, [t]),
|
|
912
|
+
d && l(d), u(!0);
|
|
913
|
+
}, [t]), K(() => {
|
|
913
914
|
if (!i) return;
|
|
914
915
|
const d = window.document.documentElement, m = () => {
|
|
915
|
-
let
|
|
916
|
-
a === "system" ?
|
|
916
|
+
let v;
|
|
917
|
+
a === "system" ? v = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : v = a, c(v), d.classList.remove("light", "dark"), d.classList.add(v);
|
|
917
918
|
};
|
|
918
919
|
if (m(), a === "system") {
|
|
919
|
-
const
|
|
920
|
-
return
|
|
920
|
+
const v = window.matchMedia("(prefers-color-scheme: dark)"), g = () => m();
|
|
921
|
+
return v.addEventListener("change", g), () => v.removeEventListener("change", g);
|
|
921
922
|
}
|
|
922
923
|
}, [a, i]);
|
|
923
|
-
const
|
|
924
|
+
const x = {
|
|
924
925
|
theme: a,
|
|
925
926
|
setTheme: (d) => {
|
|
926
|
-
localStorage.setItem(t, d),
|
|
927
|
+
localStorage.setItem(t, d), l(d);
|
|
927
928
|
},
|
|
928
|
-
resolvedTheme:
|
|
929
|
+
resolvedTheme: n
|
|
929
930
|
};
|
|
930
|
-
return /* @__PURE__ */
|
|
931
|
-
},
|
|
932
|
-
const
|
|
933
|
-
if (
|
|
931
|
+
return /* @__PURE__ */ e.jsx(he.Provider, { value: x, children: r });
|
|
932
|
+
}, ze = () => {
|
|
933
|
+
const r = je(he);
|
|
934
|
+
if (r === void 0)
|
|
934
935
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
935
|
-
return
|
|
936
|
-
},
|
|
937
|
-
const { theme:
|
|
938
|
-
if (
|
|
936
|
+
return r;
|
|
937
|
+
}, Ye = () => {
|
|
938
|
+
const { theme: r, setTheme: s } = ze(), [t, a] = k(!1);
|
|
939
|
+
if (K(() => {
|
|
939
940
|
a(!0);
|
|
940
941
|
}, []), !t)
|
|
941
|
-
return /* @__PURE__ */
|
|
942
|
+
return /* @__PURE__ */ e.jsxs(
|
|
942
943
|
"button",
|
|
943
944
|
{
|
|
944
945
|
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",
|
|
945
946
|
"aria-label": "Loading theme toggle",
|
|
946
947
|
children: [
|
|
947
|
-
/* @__PURE__ */
|
|
948
|
-
/* @__PURE__ */
|
|
948
|
+
/* @__PURE__ */ e.jsx("div", { className: "w-4 h-4 animate-pulse bg-text-muted rounded" }),
|
|
949
|
+
/* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: "Loading..." })
|
|
949
950
|
]
|
|
950
951
|
}
|
|
951
952
|
);
|
|
952
|
-
const
|
|
953
|
-
r
|
|
954
|
-
},
|
|
955
|
-
switch (
|
|
953
|
+
const l = () => {
|
|
954
|
+
s(r === "light" ? "dark" : r === "dark" ? "system" : "light");
|
|
955
|
+
}, n = () => {
|
|
956
|
+
switch (r) {
|
|
956
957
|
case "light":
|
|
957
|
-
return /* @__PURE__ */
|
|
958
|
+
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" }) });
|
|
958
959
|
case "dark":
|
|
959
|
-
return /* @__PURE__ */
|
|
960
|
+
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: "M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" }) });
|
|
960
961
|
case "system":
|
|
961
|
-
return /* @__PURE__ */
|
|
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" }) });
|
|
962
963
|
}
|
|
963
|
-
},
|
|
964
|
-
switch (
|
|
964
|
+
}, c = () => {
|
|
965
|
+
switch (r) {
|
|
965
966
|
case "light":
|
|
966
967
|
return "Light";
|
|
967
968
|
case "dark":
|
|
@@ -970,22 +971,22 @@ const Le = (e) => e.replace("--color-", "bg-"), xr = ({ name: e, cssVar: r, valu
|
|
|
970
971
|
return "System";
|
|
971
972
|
}
|
|
972
973
|
};
|
|
973
|
-
return /* @__PURE__ */
|
|
974
|
+
return /* @__PURE__ */ e.jsxs(
|
|
974
975
|
"button",
|
|
975
976
|
{
|
|
976
|
-
onClick:
|
|
977
|
+
onClick: l,
|
|
977
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",
|
|
978
|
-
"aria-label": `Current theme: ${
|
|
979
|
+
"aria-label": `Current theme: ${c()}. Click to cycle themes.`,
|
|
979
980
|
children: [
|
|
980
|
-
|
|
981
|
-
/* @__PURE__ */
|
|
981
|
+
n(),
|
|
982
|
+
/* @__PURE__ */ e.jsx("span", { className: "hidden sm:inline", children: c() })
|
|
982
983
|
]
|
|
983
984
|
}
|
|
984
985
|
);
|
|
985
|
-
},
|
|
986
|
-
/* @__PURE__ */
|
|
987
|
-
/* @__PURE__ */
|
|
988
|
-
] }),
|
|
986
|
+
}, Ue = () => /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
987
|
+
/* @__PURE__ */ e.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ e.jsx(Ye, {}) }),
|
|
988
|
+
/* @__PURE__ */ e.jsx(Le, {})
|
|
989
|
+
] }), br = () => /* @__PURE__ */ e.jsx(Me, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ e.jsx(Ue, {}) }), ue = {
|
|
989
990
|
variant: {
|
|
990
991
|
default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
|
|
991
992
|
destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
|
|
@@ -1003,35 +1004,35 @@ const Le = (e) => e.replace("--color-", "bg-"), xr = ({ name: e, cssVar: r, valu
|
|
|
1003
1004
|
xl: "h-12 rounded-md px-10 text-base",
|
|
1004
1005
|
icon: "h-10 w-10"
|
|
1005
1006
|
}
|
|
1006
|
-
},
|
|
1007
|
+
}, We = "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", He = (...r) => r.filter(Boolean).join(" "), I = S.forwardRef(
|
|
1007
1008
|
({
|
|
1008
|
-
className:
|
|
1009
|
-
variant:
|
|
1009
|
+
className: r,
|
|
1010
|
+
variant: s = "default",
|
|
1010
1011
|
size: t = "default",
|
|
1011
1012
|
fullWidth: a = !1,
|
|
1012
|
-
loading:
|
|
1013
|
-
leftIcon:
|
|
1014
|
-
rightIcon:
|
|
1013
|
+
loading: l = !1,
|
|
1014
|
+
leftIcon: n,
|
|
1015
|
+
rightIcon: c,
|
|
1015
1016
|
children: i,
|
|
1016
1017
|
disabled: u,
|
|
1017
|
-
...
|
|
1018
|
+
...x
|
|
1018
1019
|
}, d) => {
|
|
1019
|
-
const m = u ||
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1020
|
+
const m = u || l, v = He(
|
|
1021
|
+
We,
|
|
1022
|
+
ue.variant[s],
|
|
1023
|
+
ue.size[t],
|
|
1023
1024
|
a ? "w-full" : "",
|
|
1024
|
-
|
|
1025
|
+
r
|
|
1025
1026
|
);
|
|
1026
|
-
return /* @__PURE__ */
|
|
1027
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1027
1028
|
"button",
|
|
1028
1029
|
{
|
|
1029
|
-
className:
|
|
1030
|
+
className: v,
|
|
1030
1031
|
ref: d,
|
|
1031
1032
|
disabled: m,
|
|
1032
|
-
...
|
|
1033
|
+
...x,
|
|
1033
1034
|
children: [
|
|
1034
|
-
|
|
1035
|
+
l && /* @__PURE__ */ e.jsxs(
|
|
1035
1036
|
"svg",
|
|
1036
1037
|
{
|
|
1037
1038
|
className: "mr-2 h-4 w-4 animate-spin",
|
|
@@ -1039,7 +1040,7 @@ const Le = (e) => e.replace("--color-", "bg-"), xr = ({ name: e, cssVar: r, valu
|
|
|
1039
1040
|
fill: "none",
|
|
1040
1041
|
viewBox: "0 0 24 24",
|
|
1041
1042
|
children: [
|
|
1042
|
-
/* @__PURE__ */
|
|
1043
|
+
/* @__PURE__ */ e.jsx(
|
|
1043
1044
|
"circle",
|
|
1044
1045
|
{
|
|
1045
1046
|
className: "opacity-25",
|
|
@@ -1050,7 +1051,7 @@ const Le = (e) => e.replace("--color-", "bg-"), xr = ({ name: e, cssVar: r, valu
|
|
|
1050
1051
|
strokeWidth: "4"
|
|
1051
1052
|
}
|
|
1052
1053
|
),
|
|
1053
|
-
/* @__PURE__ */
|
|
1054
|
+
/* @__PURE__ */ e.jsx(
|
|
1054
1055
|
"path",
|
|
1055
1056
|
{
|
|
1056
1057
|
className: "opacity-75",
|
|
@@ -1061,16 +1062,16 @@ const Le = (e) => e.replace("--color-", "bg-"), xr = ({ name: e, cssVar: r, valu
|
|
|
1061
1062
|
]
|
|
1062
1063
|
}
|
|
1063
1064
|
),
|
|
1064
|
-
!
|
|
1065
|
+
!l && n && /* @__PURE__ */ e.jsx("span", { className: "mr-2", children: n }),
|
|
1065
1066
|
i,
|
|
1066
|
-
!
|
|
1067
|
+
!l && c && /* @__PURE__ */ e.jsx("span", { className: "ml-2", children: c })
|
|
1067
1068
|
]
|
|
1068
1069
|
}
|
|
1069
1070
|
);
|
|
1070
1071
|
}
|
|
1071
1072
|
);
|
|
1072
|
-
|
|
1073
|
-
const
|
|
1073
|
+
I.displayName = "Button";
|
|
1074
|
+
const me = {
|
|
1074
1075
|
provider: {
|
|
1075
1076
|
linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
|
|
1076
1077
|
},
|
|
@@ -1079,35 +1080,35 @@ const De = {
|
|
|
1079
1080
|
right: "flex-row-reverse",
|
|
1080
1081
|
only: "justify-center"
|
|
1081
1082
|
}
|
|
1082
|
-
},
|
|
1083
|
+
}, Ge = (...r) => r.filter(Boolean).join(" "), Je = S.forwardRef(
|
|
1083
1084
|
({
|
|
1084
|
-
className:
|
|
1085
|
-
provider:
|
|
1085
|
+
className: r,
|
|
1086
|
+
provider: s,
|
|
1086
1087
|
iconPosition: t = "left",
|
|
1087
1088
|
icon: a,
|
|
1088
|
-
showText:
|
|
1089
|
-
children:
|
|
1090
|
-
size:
|
|
1089
|
+
showText: l = !0,
|
|
1090
|
+
children: n,
|
|
1091
|
+
size: c = "default",
|
|
1091
1092
|
fullWidth: i = !0,
|
|
1092
1093
|
...u
|
|
1093
|
-
},
|
|
1094
|
+
}, x) => {
|
|
1094
1095
|
const m = a || {
|
|
1095
|
-
linkedin: /* @__PURE__ */
|
|
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], g = n || (l ? {
|
|
1097
1098
|
linkedin: "Continue with LinkedIn"
|
|
1098
|
-
}[
|
|
1099
|
+
}[s] : ""), N = Ge(
|
|
1099
1100
|
"relative overflow-hidden transition-all duration-200",
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1101
|
+
me.provider[s],
|
|
1102
|
+
me.iconPosition[t],
|
|
1103
|
+
r
|
|
1103
1104
|
);
|
|
1104
|
-
return /* @__PURE__ */
|
|
1105
|
-
|
|
1105
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1106
|
+
I,
|
|
1106
1107
|
{
|
|
1107
|
-
ref:
|
|
1108
|
+
ref: x,
|
|
1108
1109
|
variant: "none",
|
|
1109
|
-
className:
|
|
1110
|
-
size:
|
|
1110
|
+
className: N,
|
|
1111
|
+
size: c,
|
|
1111
1112
|
fullWidth: i,
|
|
1112
1113
|
leftIcon: t === "left" ? m : void 0,
|
|
1113
1114
|
rightIcon: t === "right" ? m : void 0,
|
|
@@ -1120,103 +1121,103 @@ const De = {
|
|
|
1120
1121
|
);
|
|
1121
1122
|
}
|
|
1122
1123
|
);
|
|
1123
|
-
|
|
1124
|
-
function
|
|
1125
|
-
children:
|
|
1126
|
-
variant:
|
|
1124
|
+
Je.displayName = "SocialButton";
|
|
1125
|
+
function pr({
|
|
1126
|
+
children: r,
|
|
1127
|
+
variant: s = "default",
|
|
1127
1128
|
isActive: t = !1,
|
|
1128
1129
|
onClick: a,
|
|
1129
|
-
className:
|
|
1130
|
+
className: l = ""
|
|
1130
1131
|
}) {
|
|
1131
|
-
const
|
|
1132
|
+
const n = "rounded-lg transition-all", c = {
|
|
1132
1133
|
default: "border border-border p-4",
|
|
1133
1134
|
surface: "bg-surface-variant p-4",
|
|
1134
1135
|
elevated: "bg-surface shadow-md p-6",
|
|
1135
1136
|
interactive: `border-2 p-4 cursor-pointer ${t ? "border-success-500 bg-success-50" : "border-border bg-surface hover:border-border-subtle"}`
|
|
1136
1137
|
};
|
|
1137
|
-
return /* @__PURE__ */
|
|
1138
|
+
return /* @__PURE__ */ e.jsx(
|
|
1138
1139
|
"div",
|
|
1139
1140
|
{
|
|
1140
|
-
className: `${
|
|
1141
|
+
className: `${n} ${c[s]} ${l}`,
|
|
1141
1142
|
onClick: a,
|
|
1142
1143
|
role: a ? "button" : void 0,
|
|
1143
1144
|
tabIndex: a ? 0 : void 0,
|
|
1144
1145
|
onKeyDown: a ? (i) => {
|
|
1145
1146
|
(i.key === "Enter" || i.key === " ") && a();
|
|
1146
1147
|
} : void 0,
|
|
1147
|
-
children:
|
|
1148
|
+
children: r
|
|
1148
1149
|
}
|
|
1149
1150
|
);
|
|
1150
1151
|
}
|
|
1151
|
-
function
|
|
1152
|
-
title:
|
|
1153
|
-
children:
|
|
1152
|
+
function jr({
|
|
1153
|
+
title: r,
|
|
1154
|
+
children: s,
|
|
1154
1155
|
subtitle: t,
|
|
1155
1156
|
spacing: a = "normal",
|
|
1156
|
-
className:
|
|
1157
|
+
className: l = ""
|
|
1157
1158
|
}) {
|
|
1158
|
-
const
|
|
1159
|
+
const n = {
|
|
1159
1160
|
compact: "space-y-3",
|
|
1160
1161
|
normal: "space-y-6",
|
|
1161
1162
|
spacious: "space-y-8"
|
|
1162
1163
|
};
|
|
1163
|
-
return /* @__PURE__ */
|
|
1164
|
-
/* @__PURE__ */
|
|
1165
|
-
/* @__PURE__ */
|
|
1166
|
-
t && /* @__PURE__ */
|
|
1164
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `${n[a]} ${l}`, children: [
|
|
1165
|
+
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
1166
|
+
/* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: r }),
|
|
1167
|
+
t && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t })
|
|
1167
1168
|
] }),
|
|
1168
|
-
|
|
1169
|
+
s
|
|
1169
1170
|
] });
|
|
1170
1171
|
}
|
|
1171
|
-
function
|
|
1172
|
-
variant:
|
|
1173
|
-
title:
|
|
1172
|
+
function wr({
|
|
1173
|
+
variant: r,
|
|
1174
|
+
title: s,
|
|
1174
1175
|
message: t,
|
|
1175
1176
|
icon: a,
|
|
1176
|
-
onClose:
|
|
1177
|
-
className:
|
|
1177
|
+
onClose: l,
|
|
1178
|
+
className: n = ""
|
|
1178
1179
|
}) {
|
|
1179
1180
|
const i = {
|
|
1180
1181
|
success: {
|
|
1181
1182
|
bg: "bg-success-50",
|
|
1182
1183
|
border: "border-success-200",
|
|
1183
1184
|
text: "text-success-700",
|
|
1184
|
-
icon: /* @__PURE__ */
|
|
1185
|
+
icon: /* @__PURE__ */ e.jsx(Re, { className: "h-5 w-5" })
|
|
1185
1186
|
},
|
|
1186
1187
|
error: {
|
|
1187
1188
|
bg: "bg-error-50",
|
|
1188
1189
|
border: "border-error-200",
|
|
1189
1190
|
text: "text-error-700",
|
|
1190
|
-
icon: /* @__PURE__ */
|
|
1191
|
+
icon: /* @__PURE__ */ e.jsx(Ee, { className: "h-5 w-5" })
|
|
1191
1192
|
},
|
|
1192
1193
|
warning: {
|
|
1193
1194
|
bg: "bg-warning-50",
|
|
1194
1195
|
border: "border-warning-200",
|
|
1195
1196
|
text: "text-warning-700",
|
|
1196
|
-
icon: /* @__PURE__ */
|
|
1197
|
+
icon: /* @__PURE__ */ e.jsx($e, { className: "h-5 w-5" })
|
|
1197
1198
|
},
|
|
1198
1199
|
info: {
|
|
1199
1200
|
bg: "bg-info-50",
|
|
1200
1201
|
border: "border-info-200",
|
|
1201
1202
|
text: "text-info-700",
|
|
1202
|
-
icon: /* @__PURE__ */
|
|
1203
|
+
icon: /* @__PURE__ */ e.jsx(Te, { className: "h-5 w-5" })
|
|
1203
1204
|
}
|
|
1204
|
-
}[
|
|
1205
|
-
return /* @__PURE__ */
|
|
1205
|
+
}[r];
|
|
1206
|
+
return /* @__PURE__ */ e.jsx(
|
|
1206
1207
|
"div",
|
|
1207
1208
|
{
|
|
1208
|
-
className: `${i.bg} border ${i.border} rounded-md p-3 ${
|
|
1209
|
+
className: `${i.bg} border ${i.border} rounded-md p-3 ${n}`,
|
|
1209
1210
|
role: "alert",
|
|
1210
|
-
children: /* @__PURE__ */
|
|
1211
|
-
/* @__PURE__ */
|
|
1212
|
-
/* @__PURE__ */
|
|
1213
|
-
|
|
1214
|
-
/* @__PURE__ */
|
|
1211
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
1212
|
+
/* @__PURE__ */ e.jsx("div", { className: `flex-shrink-0 ${i.text}`, children: a || i.icon }),
|
|
1213
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
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 })
|
|
1215
1216
|
] }),
|
|
1216
|
-
|
|
1217
|
+
l && /* @__PURE__ */ e.jsx(
|
|
1217
1218
|
"button",
|
|
1218
1219
|
{
|
|
1219
|
-
onClick:
|
|
1220
|
+
onClick: l,
|
|
1220
1221
|
className: `flex-shrink-0 ${i.text} hover:opacity-70`,
|
|
1221
1222
|
"aria-label": "Close alert",
|
|
1222
1223
|
children: "✕"
|
|
@@ -1226,78 +1227,78 @@ function Ts({
|
|
|
1226
1227
|
}
|
|
1227
1228
|
);
|
|
1228
1229
|
}
|
|
1229
|
-
function
|
|
1230
|
-
title:
|
|
1231
|
-
titleId:
|
|
1230
|
+
function qe({
|
|
1231
|
+
title: r,
|
|
1232
|
+
titleId: s,
|
|
1232
1233
|
...t
|
|
1233
1234
|
}, a) {
|
|
1234
|
-
return /* @__PURE__ */
|
|
1235
|
+
return /* @__PURE__ */ $.createElement("svg", Object.assign({
|
|
1235
1236
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1236
1237
|
viewBox: "0 0 20 20",
|
|
1237
1238
|
fill: "currentColor",
|
|
1238
1239
|
"aria-hidden": "true",
|
|
1239
1240
|
"data-slot": "icon",
|
|
1240
1241
|
ref: a,
|
|
1241
|
-
"aria-labelledby":
|
|
1242
|
-
}, t),
|
|
1243
|
-
id:
|
|
1244
|
-
},
|
|
1242
|
+
"aria-labelledby": s
|
|
1243
|
+
}, t), r ? /* @__PURE__ */ $.createElement("title", {
|
|
1244
|
+
id: s
|
|
1245
|
+
}, r) : null, /* @__PURE__ */ $.createElement("path", {
|
|
1245
1246
|
fillRule: "evenodd",
|
|
1246
1247
|
d: "M2 6.75A.75.75 0 0 1 2.75 6h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 6.75Zm0 6.5a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z",
|
|
1247
1248
|
clipRule: "evenodd"
|
|
1248
1249
|
}));
|
|
1249
1250
|
}
|
|
1250
|
-
const
|
|
1251
|
-
function
|
|
1252
|
-
title:
|
|
1253
|
-
titleId:
|
|
1251
|
+
const xe = /* @__PURE__ */ $.forwardRef(qe);
|
|
1252
|
+
function Xe({
|
|
1253
|
+
title: r,
|
|
1254
|
+
titleId: s,
|
|
1254
1255
|
...t
|
|
1255
1256
|
}, a) {
|
|
1256
|
-
return /* @__PURE__ */
|
|
1257
|
+
return /* @__PURE__ */ $.createElement("svg", Object.assign({
|
|
1257
1258
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1258
1259
|
viewBox: "0 0 20 20",
|
|
1259
1260
|
fill: "currentColor",
|
|
1260
1261
|
"aria-hidden": "true",
|
|
1261
1262
|
"data-slot": "icon",
|
|
1262
1263
|
ref: a,
|
|
1263
|
-
"aria-labelledby":
|
|
1264
|
-
}, t),
|
|
1265
|
-
id:
|
|
1266
|
-
},
|
|
1264
|
+
"aria-labelledby": s
|
|
1265
|
+
}, t), r ? /* @__PURE__ */ $.createElement("title", {
|
|
1266
|
+
id: s
|
|
1267
|
+
}, r) : null, /* @__PURE__ */ $.createElement("path", {
|
|
1267
1268
|
fillRule: "evenodd",
|
|
1268
1269
|
d: "M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",
|
|
1269
1270
|
clipRule: "evenodd"
|
|
1270
1271
|
}));
|
|
1271
1272
|
}
|
|
1272
|
-
const
|
|
1273
|
-
function
|
|
1274
|
-
title:
|
|
1275
|
-
titleId:
|
|
1273
|
+
const fe = /* @__PURE__ */ $.forwardRef(Xe);
|
|
1274
|
+
function Ze({
|
|
1275
|
+
title: r,
|
|
1276
|
+
titleId: s,
|
|
1276
1277
|
...t
|
|
1277
1278
|
}, a) {
|
|
1278
|
-
return /* @__PURE__ */
|
|
1279
|
+
return /* @__PURE__ */ $.createElement("svg", Object.assign({
|
|
1279
1280
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1280
1281
|
viewBox: "0 0 20 20",
|
|
1281
1282
|
fill: "currentColor",
|
|
1282
1283
|
"aria-hidden": "true",
|
|
1283
1284
|
"data-slot": "icon",
|
|
1284
1285
|
ref: a,
|
|
1285
|
-
"aria-labelledby":
|
|
1286
|
-
}, t),
|
|
1287
|
-
id:
|
|
1288
|
-
},
|
|
1286
|
+
"aria-labelledby": s
|
|
1287
|
+
}, t), r ? /* @__PURE__ */ $.createElement("title", {
|
|
1288
|
+
id: s
|
|
1289
|
+
}, r) : null, /* @__PURE__ */ $.createElement("path", {
|
|
1289
1290
|
d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"
|
|
1290
1291
|
}));
|
|
1291
1292
|
}
|
|
1292
|
-
const
|
|
1293
|
-
function
|
|
1294
|
-
children:
|
|
1295
|
-
variant:
|
|
1293
|
+
const Q = /* @__PURE__ */ $.forwardRef(Ze);
|
|
1294
|
+
function Ke({
|
|
1295
|
+
children: r,
|
|
1296
|
+
variant: s = "default",
|
|
1296
1297
|
size: t = "md",
|
|
1297
1298
|
removable: a = !1,
|
|
1298
|
-
onRemove:
|
|
1299
|
-
className:
|
|
1300
|
-
style:
|
|
1299
|
+
onRemove: l,
|
|
1300
|
+
className: n = "",
|
|
1301
|
+
style: c,
|
|
1301
1302
|
colorClass: i
|
|
1302
1303
|
}) {
|
|
1303
1304
|
const u = {
|
|
@@ -1306,273 +1307,273 @@ function Vr({
|
|
|
1306
1307
|
error: "bg-error-50 text-error-700",
|
|
1307
1308
|
warning: "bg-warning-50 text-warning-700",
|
|
1308
1309
|
info: "bg-info-50 text-info-700"
|
|
1309
|
-
},
|
|
1310
|
+
}, x = {
|
|
1310
1311
|
sm: "px-2 py-0.5 text-xs",
|
|
1311
1312
|
md: "px-3 py-1 text-sm",
|
|
1312
1313
|
lg: "px-4 py-1.5 text-base"
|
|
1313
|
-
}, d = i || u[
|
|
1314
|
-
return /* @__PURE__ */
|
|
1314
|
+
}, d = i || u[s];
|
|
1315
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1315
1316
|
"span",
|
|
1316
1317
|
{
|
|
1317
|
-
className: `inline-flex items-center gap-1 rounded-full ${d} ${
|
|
1318
|
-
style:
|
|
1318
|
+
className: `inline-flex items-center gap-1 rounded-full ${d} ${x[t]} ${n}`,
|
|
1319
|
+
style: c,
|
|
1319
1320
|
children: [
|
|
1320
|
-
|
|
1321
|
-
a &&
|
|
1321
|
+
r,
|
|
1322
|
+
a && l && /* @__PURE__ */ e.jsx(
|
|
1322
1323
|
"button",
|
|
1323
1324
|
{
|
|
1324
|
-
onClick:
|
|
1325
|
+
onClick: l,
|
|
1325
1326
|
className: "ml-1 hover:opacity-70",
|
|
1326
1327
|
"aria-label": "Remove badge",
|
|
1327
|
-
children: /* @__PURE__ */
|
|
1328
|
+
children: /* @__PURE__ */ e.jsx(Q, { className: "w-3 h-3" })
|
|
1328
1329
|
}
|
|
1329
1330
|
)
|
|
1330
1331
|
]
|
|
1331
1332
|
}
|
|
1332
1333
|
);
|
|
1333
1334
|
}
|
|
1334
|
-
function
|
|
1335
|
-
label:
|
|
1336
|
-
children:
|
|
1335
|
+
function yr({
|
|
1336
|
+
label: r,
|
|
1337
|
+
children: s,
|
|
1337
1338
|
helperText: t,
|
|
1338
1339
|
errorText: a,
|
|
1339
|
-
required:
|
|
1340
|
-
className:
|
|
1340
|
+
required: l = !1,
|
|
1341
|
+
className: n = ""
|
|
1341
1342
|
}) {
|
|
1342
|
-
return /* @__PURE__ */
|
|
1343
|
-
/* @__PURE__ */
|
|
1344
|
-
|
|
1345
|
-
|
|
1343
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `space-y-2 ${n}`, children: [
|
|
1344
|
+
/* @__PURE__ */ e.jsxs("label", { className: "block text-sm font-medium text-text-primary", children: [
|
|
1345
|
+
r,
|
|
1346
|
+
l && /* @__PURE__ */ e.jsx("span", { className: "text-error-500 ml-1", children: "*" })
|
|
1346
1347
|
] }),
|
|
1347
|
-
|
|
1348
|
-
a && /* @__PURE__ */
|
|
1349
|
-
t && !a && /* @__PURE__ */
|
|
1348
|
+
s,
|
|
1349
|
+
a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-error-600", children: a }),
|
|
1350
|
+
t && !a && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-muted", children: t })
|
|
1350
1351
|
] });
|
|
1351
1352
|
}
|
|
1352
|
-
const
|
|
1353
|
+
const Qe = S.forwardRef(
|
|
1353
1354
|
({
|
|
1354
|
-
className:
|
|
1355
|
-
leftIcon:
|
|
1355
|
+
className: r = "",
|
|
1356
|
+
leftIcon: s,
|
|
1356
1357
|
rightIcon: t,
|
|
1357
1358
|
error: a = !1,
|
|
1358
|
-
fullWidth:
|
|
1359
|
-
disabled:
|
|
1360
|
-
...
|
|
1359
|
+
fullWidth: l = !0,
|
|
1360
|
+
disabled: n,
|
|
1361
|
+
...c
|
|
1361
1362
|
}, i) => {
|
|
1362
|
-
const u = "px-3 py-2 border rounded-lg transition-colors text-sm",
|
|
1363
|
-
return /* @__PURE__ */
|
|
1364
|
-
|
|
1365
|
-
/* @__PURE__ */
|
|
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" : "", v = s || t ? "relative flex items-center" : "", g = `${u} ${x} ${d} ${m} ${s ? "pl-10" : ""} ${t ? "pr-10" : ""} ${r}`;
|
|
1364
|
+
return /* @__PURE__ */ e.jsxs("div", { className: v, children: [
|
|
1365
|
+
s && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: s }),
|
|
1366
|
+
/* @__PURE__ */ e.jsx(
|
|
1366
1367
|
"input",
|
|
1367
1368
|
{
|
|
1368
1369
|
ref: i,
|
|
1369
1370
|
className: g,
|
|
1370
|
-
disabled:
|
|
1371
|
-
...
|
|
1371
|
+
disabled: n,
|
|
1372
|
+
...c
|
|
1372
1373
|
}
|
|
1373
1374
|
),
|
|
1374
|
-
t && /* @__PURE__ */
|
|
1375
|
+
t && /* @__PURE__ */ e.jsx("div", { className: "absolute right-3 flex items-center pointer-events-none text-text-muted", children: t })
|
|
1375
1376
|
] });
|
|
1376
1377
|
}
|
|
1377
1378
|
);
|
|
1378
|
-
|
|
1379
|
-
const
|
|
1379
|
+
Qe.displayName = "Input";
|
|
1380
|
+
const er = S.forwardRef(
|
|
1380
1381
|
({
|
|
1381
|
-
options:
|
|
1382
|
-
placeholder:
|
|
1382
|
+
options: r,
|
|
1383
|
+
placeholder: s,
|
|
1383
1384
|
className: t = "",
|
|
1384
1385
|
error: a = !1,
|
|
1385
|
-
fullWidth:
|
|
1386
|
-
disabled:
|
|
1387
|
-
...
|
|
1386
|
+
fullWidth: l = !0,
|
|
1387
|
+
disabled: n,
|
|
1388
|
+
...c
|
|
1388
1389
|
}, i) => {
|
|
1389
|
-
const
|
|
1390
|
-
return /* @__PURE__ */
|
|
1391
|
-
/* @__PURE__ */
|
|
1390
|
+
const v = `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
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center", children: [
|
|
1392
|
+
/* @__PURE__ */ e.jsxs(
|
|
1392
1393
|
"select",
|
|
1393
1394
|
{
|
|
1394
1395
|
ref: i,
|
|
1395
|
-
className:
|
|
1396
|
-
disabled:
|
|
1397
|
-
...
|
|
1396
|
+
className: v,
|
|
1397
|
+
disabled: n,
|
|
1398
|
+
...c,
|
|
1398
1399
|
children: [
|
|
1399
|
-
|
|
1400
|
-
|
|
1400
|
+
s && /* @__PURE__ */ e.jsx("option", { value: "", disabled: !0, children: s }),
|
|
1401
|
+
r.map((g) => /* @__PURE__ */ e.jsx("option", { value: g.value, children: g.label }, g.value))
|
|
1401
1402
|
]
|
|
1402
1403
|
}
|
|
1403
1404
|
),
|
|
1404
|
-
/* @__PURE__ */
|
|
1405
|
+
/* @__PURE__ */ e.jsx(ee, { className: "absolute right-3 w-4 h-4 text-text-muted pointer-events-none" })
|
|
1405
1406
|
] });
|
|
1406
1407
|
}
|
|
1407
1408
|
);
|
|
1408
|
-
|
|
1409
|
-
const
|
|
1409
|
+
er.displayName = "Select";
|
|
1410
|
+
const rr = S.forwardRef(
|
|
1410
1411
|
({
|
|
1411
|
-
tags:
|
|
1412
|
-
onTagsChange:
|
|
1412
|
+
tags: r,
|
|
1413
|
+
onTagsChange: s,
|
|
1413
1414
|
onAddTag: t,
|
|
1414
1415
|
onRemoveTag: a,
|
|
1415
|
-
placeholder:
|
|
1416
|
-
error:
|
|
1417
|
-
fullWidth:
|
|
1416
|
+
placeholder: l = "Add a tag and press Enter",
|
|
1417
|
+
error: n = !1,
|
|
1418
|
+
fullWidth: c = !0,
|
|
1418
1419
|
maxTags: i,
|
|
1419
1420
|
duplicateCheck: u = !0,
|
|
1420
|
-
disabled:
|
|
1421
|
+
disabled: x,
|
|
1421
1422
|
className: d = "",
|
|
1422
1423
|
...m
|
|
1423
|
-
},
|
|
1424
|
-
const [g,
|
|
1425
|
-
|
|
1426
|
-
},
|
|
1427
|
-
if (i &&
|
|
1424
|
+
}, v) => {
|
|
1425
|
+
const [g, N] = k(""), V = (h) => {
|
|
1426
|
+
h.key === "Enter" && g.trim() ? (h.preventDefault(), E(g.trim())) : h.key === "Backspace" && !g && r.length > 0 && O(r[r.length - 1]);
|
|
1427
|
+
}, E = (h) => {
|
|
1428
|
+
if (i && r.length >= i || u && r.includes(h))
|
|
1428
1429
|
return;
|
|
1429
|
-
const
|
|
1430
|
-
|
|
1431
|
-
},
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1434
|
-
}, b = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${
|
|
1435
|
-
return /* @__PURE__ */
|
|
1436
|
-
/* @__PURE__ */
|
|
1437
|
-
|
|
1430
|
+
const j = [...r, h];
|
|
1431
|
+
s(j), t?.(h), N("");
|
|
1432
|
+
}, O = (h) => {
|
|
1433
|
+
const j = r.filter((T) => T !== h);
|
|
1434
|
+
s(j), a?.(h);
|
|
1435
|
+
}, b = `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
|
+
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((h) => /* @__PURE__ */ e.jsx(
|
|
1438
|
+
Ke,
|
|
1438
1439
|
{
|
|
1439
1440
|
removable: !0,
|
|
1440
|
-
onRemove: () =>
|
|
1441
|
+
onRemove: () => O(h),
|
|
1441
1442
|
variant: "default",
|
|
1442
|
-
children:
|
|
1443
|
+
children: h
|
|
1443
1444
|
},
|
|
1444
|
-
|
|
1445
|
+
h
|
|
1445
1446
|
)) }),
|
|
1446
|
-
/* @__PURE__ */
|
|
1447
|
+
/* @__PURE__ */ e.jsx(
|
|
1447
1448
|
"input",
|
|
1448
1449
|
{
|
|
1449
|
-
ref:
|
|
1450
|
+
ref: v,
|
|
1450
1451
|
type: "text",
|
|
1451
1452
|
className: b,
|
|
1452
|
-
placeholder:
|
|
1453
|
+
placeholder: l,
|
|
1453
1454
|
value: g,
|
|
1454
|
-
onChange: (
|
|
1455
|
-
onKeyDown:
|
|
1456
|
-
disabled:
|
|
1455
|
+
onChange: (h) => N(h.target.value),
|
|
1456
|
+
onKeyDown: V,
|
|
1457
|
+
disabled: x || (i ? r.length >= i : !1),
|
|
1457
1458
|
...m
|
|
1458
1459
|
}
|
|
1459
1460
|
),
|
|
1460
|
-
i && /* @__PURE__ */
|
|
1461
|
-
|
|
1461
|
+
i && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted", children: [
|
|
1462
|
+
r.length,
|
|
1462
1463
|
" / ",
|
|
1463
1464
|
i
|
|
1464
1465
|
] })
|
|
1465
1466
|
] });
|
|
1466
1467
|
}
|
|
1467
1468
|
);
|
|
1468
|
-
|
|
1469
|
-
const
|
|
1469
|
+
rr.displayName = "TagInput";
|
|
1470
|
+
const sr = S.forwardRef(
|
|
1470
1471
|
({
|
|
1471
|
-
className:
|
|
1472
|
-
error:
|
|
1472
|
+
className: r = "",
|
|
1473
|
+
error: s = !1,
|
|
1473
1474
|
fullWidth: t = !0,
|
|
1474
1475
|
autoResize: a = !1,
|
|
1475
|
-
maxLength:
|
|
1476
|
-
showCharCount:
|
|
1477
|
-
disabled:
|
|
1476
|
+
maxLength: l,
|
|
1477
|
+
showCharCount: n = !1,
|
|
1478
|
+
disabled: c,
|
|
1478
1479
|
value: i,
|
|
1479
1480
|
onChange: u,
|
|
1480
|
-
...
|
|
1481
|
+
...x
|
|
1481
1482
|
}, d) => {
|
|
1482
|
-
const
|
|
1483
|
-
a && (
|
|
1484
|
-
},
|
|
1485
|
-
return /* @__PURE__ */
|
|
1486
|
-
/* @__PURE__ */
|
|
1483
|
+
const V = `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}`, E = (R) => {
|
|
1484
|
+
a && (R.target.style.height = "auto", R.target.style.height = `${R.target.scrollHeight}px`), u?.(R);
|
|
1485
|
+
}, O = typeof i == "string" ? i.length : 0;
|
|
1486
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1", children: [
|
|
1487
|
+
/* @__PURE__ */ e.jsx(
|
|
1487
1488
|
"textarea",
|
|
1488
1489
|
{
|
|
1489
1490
|
ref: d,
|
|
1490
|
-
className:
|
|
1491
|
-
disabled:
|
|
1491
|
+
className: V,
|
|
1492
|
+
disabled: c,
|
|
1492
1493
|
value: i,
|
|
1493
|
-
onChange:
|
|
1494
|
-
maxLength:
|
|
1495
|
-
...
|
|
1494
|
+
onChange: E,
|
|
1495
|
+
maxLength: l,
|
|
1496
|
+
...x
|
|
1496
1497
|
}
|
|
1497
1498
|
),
|
|
1498
|
-
|
|
1499
|
-
|
|
1499
|
+
n && l && /* @__PURE__ */ e.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
|
|
1500
|
+
O,
|
|
1500
1501
|
" / ",
|
|
1501
|
-
|
|
1502
|
+
l
|
|
1502
1503
|
] })
|
|
1503
1504
|
] });
|
|
1504
1505
|
}
|
|
1505
1506
|
);
|
|
1506
|
-
|
|
1507
|
-
function
|
|
1508
|
-
options:
|
|
1509
|
-
selectedValues:
|
|
1507
|
+
sr.displayName = "Textarea";
|
|
1508
|
+
function Nr({
|
|
1509
|
+
options: r,
|
|
1510
|
+
selectedValues: s,
|
|
1510
1511
|
onSelectionChange: t,
|
|
1511
1512
|
layout: a = "vertical",
|
|
1512
|
-
columns:
|
|
1513
|
-
disabled:
|
|
1514
|
-
error:
|
|
1513
|
+
columns: l = 2,
|
|
1514
|
+
disabled: n = !1,
|
|
1515
|
+
error: c = !1
|
|
1515
1516
|
}) {
|
|
1516
1517
|
const i = (m) => {
|
|
1517
|
-
const
|
|
1518
|
-
t(
|
|
1518
|
+
const v = s.includes(m) ? s.filter((g) => g !== m) : [...s, m];
|
|
1519
|
+
t(v);
|
|
1519
1520
|
}, u = {
|
|
1520
1521
|
vertical: "space-y-3",
|
|
1521
1522
|
horizontal: "flex flex-wrap gap-3",
|
|
1522
|
-
grid: `grid grid-cols-${
|
|
1523
|
-
},
|
|
1524
|
-
return /* @__PURE__ */
|
|
1525
|
-
const
|
|
1526
|
-
return /* @__PURE__ */
|
|
1523
|
+
grid: `grid grid-cols-${l} gap-3`
|
|
1524
|
+
}, x = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${l}` : "";
|
|
1525
|
+
return /* @__PURE__ */ e.jsx("div", { className: `${x} ${d}`, children: r.map((m) => {
|
|
1526
|
+
const v = s.includes(m.value), N = v ? "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
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1527
1528
|
"label",
|
|
1528
1529
|
{
|
|
1529
|
-
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 ${N} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1530
1531
|
children: [
|
|
1531
|
-
/* @__PURE__ */
|
|
1532
|
+
/* @__PURE__ */ e.jsx(
|
|
1532
1533
|
"input",
|
|
1533
1534
|
{
|
|
1534
1535
|
type: "checkbox",
|
|
1535
|
-
checked:
|
|
1536
|
+
checked: v,
|
|
1536
1537
|
onChange: () => i(m.value),
|
|
1537
|
-
disabled:
|
|
1538
|
+
disabled: n,
|
|
1538
1539
|
className: "sr-only"
|
|
1539
1540
|
}
|
|
1540
1541
|
),
|
|
1541
|
-
m.icon && /* @__PURE__ */
|
|
1542
|
-
/* @__PURE__ */
|
|
1543
|
-
/* @__PURE__ */
|
|
1544
|
-
m.description && /* @__PURE__ */
|
|
1542
|
+
m.icon && /* @__PURE__ */ e.jsx("div", { className: "mr-3 flex-shrink-0 text-text-secondary", children: m.icon }),
|
|
1543
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
1544
|
+
/* @__PURE__ */ e.jsx("div", { className: "font-medium text-text-primary", children: m.label }),
|
|
1545
|
+
m.description && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-text-secondary", children: m.description })
|
|
1545
1546
|
] }),
|
|
1546
|
-
|
|
1547
|
+
v && /* @__PURE__ */ e.jsx("div", { className: "text-reseda-green-500 flex-shrink-0", children: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx("path", { fillRule: "evenodd", d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z", clipRule: "evenodd" }) }) })
|
|
1547
1548
|
]
|
|
1548
1549
|
},
|
|
1549
1550
|
m.value
|
|
1550
1551
|
);
|
|
1551
1552
|
}) });
|
|
1552
1553
|
}
|
|
1553
|
-
function
|
|
1554
|
-
options:
|
|
1555
|
-
selectedValue:
|
|
1554
|
+
function Cr({
|
|
1555
|
+
options: r,
|
|
1556
|
+
selectedValue: s,
|
|
1556
1557
|
onSelectionChange: t,
|
|
1557
1558
|
layout: a = "vertical",
|
|
1558
|
-
columns:
|
|
1559
|
-
disabled:
|
|
1560
|
-
error:
|
|
1559
|
+
columns: l = 2,
|
|
1560
|
+
disabled: n = !1,
|
|
1561
|
+
error: c = !1,
|
|
1561
1562
|
name: i = "radio-group"
|
|
1562
1563
|
}) {
|
|
1563
|
-
const
|
|
1564
|
+
const x = a === "grid" ? `grid gap-3 md:grid-cols-${l}` : {
|
|
1564
1565
|
vertical: "space-y-3",
|
|
1565
1566
|
horizontal: "flex flex-wrap gap-3",
|
|
1566
1567
|
grid: "grid gap-3"
|
|
1567
1568
|
}[a];
|
|
1568
|
-
return /* @__PURE__ */
|
|
1569
|
-
const m =
|
|
1570
|
-
return /* @__PURE__ */
|
|
1569
|
+
return /* @__PURE__ */ e.jsx("div", { className: x, children: r.map((d) => {
|
|
1570
|
+
const m = s === d.value, g = 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
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1571
1572
|
"label",
|
|
1572
1573
|
{
|
|
1573
|
-
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${
|
|
1574
|
+
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${n ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1574
1575
|
children: [
|
|
1575
|
-
/* @__PURE__ */
|
|
1576
|
+
/* @__PURE__ */ e.jsx(
|
|
1576
1577
|
"input",
|
|
1577
1578
|
{
|
|
1578
1579
|
type: "radio",
|
|
@@ -1580,172 +1581,172 @@ function Es({
|
|
|
1580
1581
|
value: d.value,
|
|
1581
1582
|
checked: m,
|
|
1582
1583
|
onChange: () => t(d.value),
|
|
1583
|
-
disabled:
|
|
1584
|
+
disabled: n,
|
|
1584
1585
|
className: "sr-only"
|
|
1585
1586
|
}
|
|
1586
1587
|
),
|
|
1587
|
-
d.icon && /* @__PURE__ */
|
|
1588
|
-
/* @__PURE__ */
|
|
1589
|
-
/* @__PURE__ */
|
|
1590
|
-
d.description && /* @__PURE__ */
|
|
1588
|
+
d.icon && /* @__PURE__ */ e.jsx("div", { className: "mr-3 flex-shrink-0 text-text-secondary", children: d.icon }),
|
|
1589
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex-1", children: [
|
|
1590
|
+
/* @__PURE__ */ e.jsx("div", { className: "font-medium text-text-primary", children: d.label }),
|
|
1591
|
+
d.description && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-text-secondary", children: d.description })
|
|
1591
1592
|
] }),
|
|
1592
|
-
m && /* @__PURE__ */
|
|
1593
|
+
m && /* @__PURE__ */ e.jsx("div", { className: "text-reseda-green-500 flex-shrink-0", children: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", clipRule: "evenodd" }) }) })
|
|
1593
1594
|
]
|
|
1594
1595
|
},
|
|
1595
1596
|
d.value
|
|
1596
1597
|
);
|
|
1597
1598
|
}) });
|
|
1598
1599
|
}
|
|
1599
|
-
function
|
|
1600
|
-
items:
|
|
1601
|
-
allowMultiple:
|
|
1600
|
+
function kr({
|
|
1601
|
+
items: r,
|
|
1602
|
+
allowMultiple: s = !1,
|
|
1602
1603
|
defaultOpenId: t,
|
|
1603
1604
|
onOpenChange: a,
|
|
1604
|
-
className:
|
|
1605
|
+
className: l = ""
|
|
1605
1606
|
}) {
|
|
1606
|
-
const [
|
|
1607
|
-
let
|
|
1608
|
-
|
|
1607
|
+
const [n, c] = k(() => t ? Array.isArray(t) ? t : [t] : []), i = (u) => {
|
|
1608
|
+
let x;
|
|
1609
|
+
s ? x = n.includes(u) ? n.filter((d) => d !== u) : [...n, u] : x = n.includes(u) ? [] : [u], c(x), a?.(x);
|
|
1609
1610
|
};
|
|
1610
|
-
return /* @__PURE__ */
|
|
1611
|
-
const
|
|
1612
|
-
return /* @__PURE__ */
|
|
1611
|
+
return /* @__PURE__ */ e.jsx("div", { className: `space-y-2 ${l}`, children: r.map((u) => {
|
|
1612
|
+
const x = n.includes(u.id);
|
|
1613
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1613
1614
|
"div",
|
|
1614
1615
|
{
|
|
1615
1616
|
className: "border border-border rounded-lg overflow-hidden",
|
|
1616
1617
|
children: [
|
|
1617
|
-
/* @__PURE__ */
|
|
1618
|
+
/* @__PURE__ */ e.jsxs(
|
|
1618
1619
|
"button",
|
|
1619
1620
|
{
|
|
1620
1621
|
onClick: () => i(u.id),
|
|
1621
1622
|
className: "w-full px-4 py-3 flex items-center justify-between hover:bg-surface-variant transition-colors text-left",
|
|
1622
1623
|
children: [
|
|
1623
|
-
/* @__PURE__ */
|
|
1624
|
-
u.icon && /* @__PURE__ */
|
|
1625
|
-
/* @__PURE__ */
|
|
1624
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3 flex-1", children: [
|
|
1625
|
+
u.icon && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0 text-text-secondary", children: u.icon }),
|
|
1626
|
+
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary", children: u.title })
|
|
1626
1627
|
] }),
|
|
1627
|
-
/* @__PURE__ */
|
|
1628
|
-
|
|
1628
|
+
/* @__PURE__ */ e.jsx(
|
|
1629
|
+
ee,
|
|
1629
1630
|
{
|
|
1630
|
-
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${
|
|
1631
|
+
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${x ? "rotate-180" : ""}`
|
|
1631
1632
|
}
|
|
1632
1633
|
)
|
|
1633
1634
|
]
|
|
1634
1635
|
}
|
|
1635
1636
|
),
|
|
1636
|
-
|
|
1637
|
+
x && /* @__PURE__ */ e.jsx("div", { className: "border-t border-border px-4 py-3 bg-surface-variant text-text-primary", children: u.content })
|
|
1637
1638
|
]
|
|
1638
1639
|
},
|
|
1639
1640
|
u.id
|
|
1640
1641
|
);
|
|
1641
1642
|
}) });
|
|
1642
1643
|
}
|
|
1643
|
-
const
|
|
1644
|
+
const ar = S.forwardRef(
|
|
1644
1645
|
({
|
|
1645
|
-
value:
|
|
1646
|
-
onChange:
|
|
1646
|
+
value: r,
|
|
1647
|
+
onChange: s,
|
|
1647
1648
|
min: t = 0,
|
|
1648
1649
|
max: a = 100,
|
|
1649
|
-
step:
|
|
1650
|
-
showValue:
|
|
1651
|
-
showLabels:
|
|
1650
|
+
step: l = 1,
|
|
1651
|
+
showValue: n = !0,
|
|
1652
|
+
showLabels: c = !1,
|
|
1652
1653
|
minLabel: i,
|
|
1653
1654
|
maxLabel: u,
|
|
1654
|
-
error:
|
|
1655
|
+
error: x = !1,
|
|
1655
1656
|
fullWidth: d = !0,
|
|
1656
1657
|
disabled: m,
|
|
1657
|
-
className:
|
|
1658
|
+
className: v = "",
|
|
1658
1659
|
...g
|
|
1659
|
-
},
|
|
1660
|
-
const
|
|
1661
|
-
return /* @__PURE__ */
|
|
1662
|
-
|
|
1663
|
-
i && /* @__PURE__ */
|
|
1664
|
-
u && /* @__PURE__ */
|
|
1660
|
+
}, N) => {
|
|
1661
|
+
const D = `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" : ""} ${v}`, F = (r - t) / (a - t) * 100;
|
|
1662
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
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
|
+
u && /* @__PURE__ */ e.jsx("span", { children: u })
|
|
1665
1666
|
] }),
|
|
1666
|
-
/* @__PURE__ */
|
|
1667
|
-
/* @__PURE__ */
|
|
1667
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1668
|
+
/* @__PURE__ */ e.jsx(
|
|
1668
1669
|
"input",
|
|
1669
1670
|
{
|
|
1670
|
-
ref:
|
|
1671
|
+
ref: N,
|
|
1671
1672
|
type: "range",
|
|
1672
1673
|
min: t,
|
|
1673
1674
|
max: a,
|
|
1674
|
-
step:
|
|
1675
|
-
value:
|
|
1676
|
-
onChange: (
|
|
1675
|
+
step: l,
|
|
1676
|
+
value: r,
|
|
1677
|
+
onChange: (L) => s(Number(L.target.value)),
|
|
1677
1678
|
disabled: m,
|
|
1678
|
-
className:
|
|
1679
|
+
className: D,
|
|
1679
1680
|
...g
|
|
1680
1681
|
}
|
|
1681
1682
|
),
|
|
1682
|
-
|
|
1683
|
+
n && /* @__PURE__ */ e.jsx("span", { className: "text-sm font-medium text-text-primary min-w-[3rem] text-right", children: r })
|
|
1683
1684
|
] }),
|
|
1684
|
-
/* @__PURE__ */
|
|
1685
|
+
/* @__PURE__ */ e.jsx("div", { className: "h-1 bg-border rounded-full overflow-hidden", children: /* @__PURE__ */ e.jsx(
|
|
1685
1686
|
"div",
|
|
1686
1687
|
{
|
|
1687
1688
|
className: "h-full bg-reseda-green-500 transition-all",
|
|
1688
|
-
style: { width: `${
|
|
1689
|
+
style: { width: `${F}%` }
|
|
1689
1690
|
}
|
|
1690
1691
|
) })
|
|
1691
1692
|
] });
|
|
1692
1693
|
}
|
|
1693
1694
|
);
|
|
1694
|
-
|
|
1695
|
-
function
|
|
1696
|
-
icon:
|
|
1697
|
-
title:
|
|
1695
|
+
ar.displayName = "Slider";
|
|
1696
|
+
function Vr({
|
|
1697
|
+
icon: r,
|
|
1698
|
+
title: s,
|
|
1698
1699
|
description: t,
|
|
1699
1700
|
isSelected: a = !1,
|
|
1700
|
-
onClick:
|
|
1701
|
-
disabled:
|
|
1702
|
-
className:
|
|
1701
|
+
onClick: l,
|
|
1702
|
+
disabled: n = !1,
|
|
1703
|
+
className: c = ""
|
|
1703
1704
|
}) {
|
|
1704
|
-
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",
|
|
1705
|
-
return /* @__PURE__ */
|
|
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
|
+
return /* @__PURE__ */ e.jsxs(
|
|
1706
1707
|
"div",
|
|
1707
1708
|
{
|
|
1708
|
-
className: `${i} ${u} ${
|
|
1709
|
-
onClick: () => !
|
|
1709
|
+
className: `${i} ${u} ${x} ${c}`,
|
|
1710
|
+
onClick: () => !n && l?.(),
|
|
1710
1711
|
role: "button",
|
|
1711
|
-
tabIndex:
|
|
1712
|
+
tabIndex: n ? -1 : 0,
|
|
1712
1713
|
onKeyDown: (d) => {
|
|
1713
|
-
!
|
|
1714
|
+
!n && (d.key === "Enter" || d.key === " ") && l?.();
|
|
1714
1715
|
},
|
|
1715
1716
|
children: [
|
|
1716
|
-
|
|
1717
|
-
/* @__PURE__ */
|
|
1718
|
-
t && /* @__PURE__ */
|
|
1719
|
-
a && /* @__PURE__ */
|
|
1717
|
+
r && /* @__PURE__ */ e.jsx("div", { className: "mb-3 flex justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "text-text-secondary", children: r }) }),
|
|
1718
|
+
/* @__PURE__ */ e.jsx("h3", { className: "font-medium text-text-primary mb-1", children: s }),
|
|
1719
|
+
t && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-text-secondary", children: t }),
|
|
1720
|
+
a && /* @__PURE__ */ e.jsx("div", { className: "mt-3 flex justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "text-reseda-green-500", children: /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx("path", { fillRule: "evenodd", d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z", clipRule: "evenodd" }) }) }) })
|
|
1720
1721
|
]
|
|
1721
1722
|
}
|
|
1722
1723
|
);
|
|
1723
1724
|
}
|
|
1724
|
-
const
|
|
1725
|
+
const tr = {
|
|
1725
1726
|
activeText: "text-reseda-green-700",
|
|
1726
1727
|
activeBorder: "border-reseda-green-700",
|
|
1727
1728
|
inactiveText: "text-text-secondary",
|
|
1728
1729
|
inactiveHoverText: "hover:text-text-primary",
|
|
1729
1730
|
disabledText: "text-text-disabled"
|
|
1730
1731
|
};
|
|
1731
|
-
function
|
|
1732
|
-
const
|
|
1733
|
-
return /* @__PURE__ */
|
|
1734
|
-
const i =
|
|
1735
|
-
return /* @__PURE__ */
|
|
1736
|
-
|
|
1732
|
+
function Tr({ tabs: r, activeTab: s, disabled: t = !1, onChange: a, colorConfig: l }) {
|
|
1733
|
+
const n = l || tr;
|
|
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
|
+
return /* @__PURE__ */ e.jsx(
|
|
1737
|
+
I,
|
|
1737
1738
|
{
|
|
1738
1739
|
variant: "ghost",
|
|
1739
|
-
onClick: () => !t && a(
|
|
1740
|
+
onClick: () => !t && a(c.id),
|
|
1740
1741
|
disabled: t && !i,
|
|
1741
|
-
className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${i ? `${
|
|
1742
|
-
children:
|
|
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
|
|
1743
1744
|
},
|
|
1744
|
-
|
|
1745
|
+
c.id
|
|
1745
1746
|
);
|
|
1746
1747
|
}) });
|
|
1747
1748
|
}
|
|
1748
|
-
const
|
|
1749
|
+
const nr = {
|
|
1749
1750
|
activeBg: "bg-reseda-green-700",
|
|
1750
1751
|
activeText: "text-white",
|
|
1751
1752
|
completedBg: "bg-success-500",
|
|
@@ -1756,851 +1757,189 @@ const Sr = {
|
|
|
1756
1757
|
labelInactiveText: "text-text-muted",
|
|
1757
1758
|
connectorBg: "bg-border"
|
|
1758
1759
|
};
|
|
1759
|
-
function
|
|
1760
|
-
const a = t ||
|
|
1761
|
-
return /* @__PURE__ */
|
|
1762
|
-
/* @__PURE__ */
|
|
1763
|
-
/* @__PURE__ */
|
|
1760
|
+
function $r({ currentStep: r, steps: s, colorConfig: t }) {
|
|
1761
|
+
const a = t || nr;
|
|
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
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
|
|
1764
|
+
/* @__PURE__ */ e.jsx(
|
|
1764
1765
|
"span",
|
|
1765
1766
|
{
|
|
1766
|
-
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${
|
|
1767
|
-
children:
|
|
1767
|
+
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${r === l.number ? `${a.activeBg} ${a.activeText}` : r > l.number ? `${a.completedBg} ${a.completedText}` : `border-2 ${a.incompleteBorder} ${a.incompleteText}`}`,
|
|
1768
|
+
children: l.number
|
|
1768
1769
|
}
|
|
1769
1770
|
),
|
|
1770
|
-
/* @__PURE__ */
|
|
1771
|
+
/* @__PURE__ */ e.jsx(
|
|
1771
1772
|
"span",
|
|
1772
1773
|
{
|
|
1773
|
-
className: `ml-3 text-sm font-medium whitespace-nowrap ${
|
|
1774
|
-
children:
|
|
1774
|
+
className: `ml-3 text-sm font-medium whitespace-nowrap ${r >= l.number ? a.labelActiveText : a.labelInactiveText}`,
|
|
1775
|
+
children: l.label
|
|
1775
1776
|
}
|
|
1776
1777
|
)
|
|
1777
1778
|
] }),
|
|
1778
|
-
|
|
1779
|
-
] },
|
|
1780
|
-
}
|
|
1781
|
-
function Ar() {
|
|
1782
|
-
for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
|
|
1783
|
-
r[t] = arguments[t];
|
|
1784
|
-
return H(
|
|
1785
|
-
() => (a) => {
|
|
1786
|
-
r.forEach((n) => n(a));
|
|
1787
|
-
},
|
|
1788
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1789
|
-
r
|
|
1790
|
-
);
|
|
1791
|
-
}
|
|
1792
|
-
const zr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1793
|
-
function Br(e) {
|
|
1794
|
-
const r = Object.prototype.toString.call(e);
|
|
1795
|
-
return r === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
1796
|
-
r === "[object global]";
|
|
1797
|
-
}
|
|
1798
|
-
function _r(e) {
|
|
1799
|
-
return "nodeType" in e;
|
|
1800
|
-
}
|
|
1801
|
-
function Ye(e) {
|
|
1802
|
-
var r, t;
|
|
1803
|
-
return e ? Br(e) ? e : _r(e) && (r = (t = e.ownerDocument) == null ? void 0 : t.defaultView) != null ? r : window : window;
|
|
1804
|
-
}
|
|
1805
|
-
const me = zr ? Ze : M;
|
|
1806
|
-
function Ue(e) {
|
|
1807
|
-
const r = W(e);
|
|
1808
|
-
return me(() => {
|
|
1809
|
-
r.current = e;
|
|
1810
|
-
}), O(function() {
|
|
1811
|
-
for (var t = arguments.length, a = new Array(t), n = 0; n < t; n++)
|
|
1812
|
-
a[n] = arguments[n];
|
|
1813
|
-
return r.current == null ? void 0 : r.current(...a);
|
|
1814
|
-
}, []);
|
|
1815
|
-
}
|
|
1816
|
-
function pe(e, r) {
|
|
1817
|
-
r === void 0 && (r = [e]);
|
|
1818
|
-
const t = W(e);
|
|
1819
|
-
return me(() => {
|
|
1820
|
-
t.current !== e && (t.current = e);
|
|
1821
|
-
}, r), t;
|
|
1822
|
-
}
|
|
1823
|
-
function we(e) {
|
|
1824
|
-
const r = Ue(e), t = W(null), a = O(
|
|
1825
|
-
(n) => {
|
|
1826
|
-
n !== t.current && r?.(n, t.current), t.current = n;
|
|
1827
|
-
},
|
|
1828
|
-
//eslint-disable-next-line
|
|
1829
|
-
[]
|
|
1830
|
-
);
|
|
1831
|
-
return [t, a];
|
|
1832
|
-
}
|
|
1833
|
-
let he = {};
|
|
1834
|
-
function We(e, r) {
|
|
1835
|
-
return H(() => {
|
|
1836
|
-
const t = he[e] == null ? 0 : he[e] + 1;
|
|
1837
|
-
return he[e] = t, e + "-" + t;
|
|
1838
|
-
}, [e, r]);
|
|
1779
|
+
n < s.length - 1 && /* @__PURE__ */ e.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
|
|
1780
|
+
] }, l.number)) }) });
|
|
1839
1781
|
}
|
|
1840
|
-
function
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
const {
|
|
1844
|
-
KeyboardEvent: r
|
|
1845
|
-
} = Ye(e.target);
|
|
1846
|
-
return r && e instanceof r;
|
|
1847
|
-
}
|
|
1848
|
-
const ae = /* @__PURE__ */ Object.freeze({
|
|
1849
|
-
Translate: {
|
|
1850
|
-
toString(e) {
|
|
1851
|
-
if (!e)
|
|
1852
|
-
return;
|
|
1853
|
-
const {
|
|
1854
|
-
x: r,
|
|
1855
|
-
y: t
|
|
1856
|
-
} = e;
|
|
1857
|
-
return "translate3d(" + (r ? Math.round(r) : 0) + "px, " + (t ? Math.round(t) : 0) + "px, 0)";
|
|
1858
|
-
}
|
|
1859
|
-
},
|
|
1860
|
-
Scale: {
|
|
1861
|
-
toString(e) {
|
|
1862
|
-
if (!e)
|
|
1863
|
-
return;
|
|
1864
|
-
const {
|
|
1865
|
-
scaleX: r,
|
|
1866
|
-
scaleY: t
|
|
1867
|
-
} = e;
|
|
1868
|
-
return "scaleX(" + r + ") scaleY(" + t + ")";
|
|
1869
|
-
}
|
|
1870
|
-
},
|
|
1871
|
-
Transform: {
|
|
1872
|
-
toString(e) {
|
|
1873
|
-
if (e)
|
|
1874
|
-
return [ae.Translate.toString(e), ae.Scale.toString(e)].join(" ");
|
|
1875
|
-
}
|
|
1876
|
-
},
|
|
1877
|
-
Transition: {
|
|
1878
|
-
toString(e) {
|
|
1879
|
-
let {
|
|
1880
|
-
property: r,
|
|
1881
|
-
duration: t,
|
|
1882
|
-
easing: a
|
|
1883
|
-
} = e;
|
|
1884
|
-
return r + " " + t + "ms " + a;
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
});
|
|
1888
|
-
var se;
|
|
1889
|
-
(function(e) {
|
|
1890
|
-
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
|
|
1891
|
-
})(se || (se = {}));
|
|
1892
|
-
function Se() {
|
|
1893
|
-
}
|
|
1894
|
-
const Pr = /* @__PURE__ */ Object.freeze({
|
|
1895
|
-
x: 0,
|
|
1896
|
-
y: 0
|
|
1897
|
-
});
|
|
1898
|
-
function Lr(e) {
|
|
1899
|
-
if (e.startsWith("matrix3d(")) {
|
|
1900
|
-
const r = e.slice(9, -1).split(/, /);
|
|
1901
|
-
return {
|
|
1902
|
-
x: +r[12],
|
|
1903
|
-
y: +r[13],
|
|
1904
|
-
scaleX: +r[0],
|
|
1905
|
-
scaleY: +r[5]
|
|
1906
|
-
};
|
|
1907
|
-
} else if (e.startsWith("matrix(")) {
|
|
1908
|
-
const r = e.slice(7, -1).split(/, /);
|
|
1909
|
-
return {
|
|
1910
|
-
x: +r[4],
|
|
1911
|
-
y: +r[5],
|
|
1912
|
-
scaleX: +r[0],
|
|
1913
|
-
scaleY: +r[3]
|
|
1914
|
-
};
|
|
1915
|
-
}
|
|
1916
|
-
return null;
|
|
1917
|
-
}
|
|
1918
|
-
function Mr(e, r, t) {
|
|
1919
|
-
const a = Lr(r);
|
|
1920
|
-
if (!a)
|
|
1921
|
-
return e;
|
|
1922
|
-
const {
|
|
1923
|
-
scaleX: n,
|
|
1924
|
-
scaleY: o,
|
|
1925
|
-
x: l,
|
|
1926
|
-
y: i
|
|
1927
|
-
} = a, u = e.left - l - (1 - n) * parseFloat(t), f = e.top - i - (1 - o) * parseFloat(t.slice(t.indexOf(" ") + 1)), d = n ? e.width / n : e.width, m = o ? e.height / o : e.height;
|
|
1928
|
-
return {
|
|
1929
|
-
width: d,
|
|
1930
|
-
height: m,
|
|
1931
|
-
top: f,
|
|
1932
|
-
right: u + d,
|
|
1933
|
-
bottom: f + m,
|
|
1934
|
-
left: u
|
|
1935
|
-
};
|
|
1936
|
-
}
|
|
1937
|
-
const Yr = {
|
|
1938
|
-
ignoreTransform: !1
|
|
1939
|
-
};
|
|
1940
|
-
function Ur(e, r) {
|
|
1941
|
-
r === void 0 && (r = Yr);
|
|
1942
|
-
let t = e.getBoundingClientRect();
|
|
1943
|
-
if (r.ignoreTransform) {
|
|
1944
|
-
const {
|
|
1945
|
-
transform: f,
|
|
1946
|
-
transformOrigin: d
|
|
1947
|
-
} = Ye(e).getComputedStyle(e);
|
|
1948
|
-
f && (t = Mr(t, f, d));
|
|
1949
|
-
}
|
|
1950
|
-
const {
|
|
1951
|
-
top: a,
|
|
1952
|
-
left: n,
|
|
1953
|
-
width: o,
|
|
1954
|
-
height: l,
|
|
1955
|
-
bottom: i,
|
|
1956
|
-
right: u
|
|
1957
|
-
} = t;
|
|
1958
|
-
return {
|
|
1959
|
-
top: a,
|
|
1960
|
-
left: n,
|
|
1961
|
-
width: o,
|
|
1962
|
-
height: l,
|
|
1963
|
-
bottom: i,
|
|
1964
|
-
right: u
|
|
1965
|
-
};
|
|
1966
|
-
}
|
|
1967
|
-
var J;
|
|
1968
|
-
(function(e) {
|
|
1969
|
-
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
1970
|
-
})(J || (J = {}));
|
|
1971
|
-
var Ae;
|
|
1972
|
-
(function(e) {
|
|
1973
|
-
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
1974
|
-
})(Ae || (Ae = {}));
|
|
1975
|
-
var F;
|
|
1976
|
-
(function(e) {
|
|
1977
|
-
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
|
|
1978
|
-
})(F || (F = {}));
|
|
1979
|
-
F.Space, F.Enter, F.Esc, F.Space, F.Enter, F.Tab;
|
|
1980
|
-
var ze;
|
|
1981
|
-
(function(e) {
|
|
1982
|
-
e[e.RightClick = 2] = "RightClick";
|
|
1983
|
-
})(ze || (ze = {}));
|
|
1984
|
-
var Be;
|
|
1985
|
-
(function(e) {
|
|
1986
|
-
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
1987
|
-
})(Be || (Be = {}));
|
|
1988
|
-
var _e;
|
|
1989
|
-
(function(e) {
|
|
1990
|
-
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1991
|
-
})(_e || (_e = {}));
|
|
1992
|
-
J.Backward + "", J.Forward + "", J.Backward + "", J.Forward + "";
|
|
1993
|
-
var ye;
|
|
1994
|
-
(function(e) {
|
|
1995
|
-
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
1996
|
-
})(ye || (ye = {}));
|
|
1997
|
-
var je;
|
|
1998
|
-
(function(e) {
|
|
1999
|
-
e.Optimized = "optimized";
|
|
2000
|
-
})(je || (je = {}));
|
|
2001
|
-
function Wr(e) {
|
|
2002
|
-
let {
|
|
2003
|
-
callback: r,
|
|
2004
|
-
disabled: t
|
|
2005
|
-
} = e;
|
|
2006
|
-
const a = Ue(r), n = H(
|
|
2007
|
-
() => {
|
|
2008
|
-
if (t || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
2009
|
-
return;
|
|
2010
|
-
const {
|
|
2011
|
-
ResizeObserver: o
|
|
2012
|
-
} = window;
|
|
2013
|
-
return new o(a);
|
|
2014
|
-
},
|
|
2015
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2016
|
-
[t]
|
|
2017
|
-
);
|
|
2018
|
-
return M(() => () => n?.disconnect(), [n]), n;
|
|
2019
|
-
}
|
|
2020
|
-
function Xr(e, r) {
|
|
2021
|
-
return H(() => e.reduce((t, a) => {
|
|
2022
|
-
let {
|
|
2023
|
-
eventName: n,
|
|
2024
|
-
handler: o
|
|
2025
|
-
} = a;
|
|
2026
|
-
return t[n] = (l) => {
|
|
2027
|
-
o(l, r);
|
|
2028
|
-
}, t;
|
|
2029
|
-
}, {}), [e, r]);
|
|
2030
|
-
}
|
|
2031
|
-
ye.WhileDragging, je.Optimized;
|
|
2032
|
-
const Hr = {
|
|
2033
|
-
activatorEvent: null,
|
|
2034
|
-
activators: [],
|
|
2035
|
-
active: null,
|
|
2036
|
-
activeNodeRect: null,
|
|
2037
|
-
ariaDescribedById: {
|
|
2038
|
-
draggable: ""
|
|
2039
|
-
},
|
|
2040
|
-
dispatch: Se,
|
|
2041
|
-
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2042
|
-
over: null,
|
|
2043
|
-
measureDroppableContainers: Se
|
|
2044
|
-
}, Xe = /* @__PURE__ */ ue(Hr), qr = /* @__PURE__ */ ue({
|
|
2045
|
-
...Pr,
|
|
2046
|
-
scaleX: 1,
|
|
2047
|
-
scaleY: 1
|
|
2048
|
-
});
|
|
2049
|
-
var Fe;
|
|
2050
|
-
(function(e) {
|
|
2051
|
-
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2052
|
-
})(Fe || (Fe = {}));
|
|
2053
|
-
const Gr = /* @__PURE__ */ ue(null), Pe = "button", Jr = "Draggable";
|
|
2054
|
-
function Zr(e) {
|
|
2055
|
-
let {
|
|
2056
|
-
id: r,
|
|
2057
|
-
data: t,
|
|
2058
|
-
disabled: a = !1,
|
|
2059
|
-
attributes: n
|
|
2060
|
-
} = e;
|
|
2061
|
-
const o = We(Jr), {
|
|
2062
|
-
activators: l,
|
|
2063
|
-
activatorEvent: i,
|
|
2064
|
-
active: u,
|
|
2065
|
-
activeNodeRect: f,
|
|
2066
|
-
ariaDescribedById: d,
|
|
2067
|
-
draggableNodes: m,
|
|
2068
|
-
over: x
|
|
2069
|
-
} = te(Xe), {
|
|
2070
|
-
role: g = Pe,
|
|
2071
|
-
roleDescription: j = "draggable",
|
|
2072
|
-
tabIndex: C = 0
|
|
2073
|
-
} = n ?? {}, y = u?.id === r, D = te(y ? qr : Gr), [I, k] = we(), [R, $] = we(), b = Xr(l, r), v = pe(t);
|
|
2074
|
-
me(
|
|
2075
|
-
() => (m.set(r, {
|
|
2076
|
-
id: r,
|
|
2077
|
-
key: o,
|
|
2078
|
-
node: I,
|
|
2079
|
-
activatorNode: R,
|
|
2080
|
-
data: v
|
|
2081
|
-
}), () => {
|
|
2082
|
-
const T = m.get(r);
|
|
2083
|
-
T && T.key === o && m.delete(r);
|
|
2084
|
-
}),
|
|
2085
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2086
|
-
[m, r]
|
|
2087
|
-
);
|
|
2088
|
-
const w = H(() => ({
|
|
2089
|
-
role: g,
|
|
2090
|
-
tabIndex: C,
|
|
2091
|
-
"aria-disabled": a,
|
|
2092
|
-
"aria-pressed": y && g === Pe ? !0 : void 0,
|
|
2093
|
-
"aria-roledescription": j,
|
|
2094
|
-
"aria-describedby": d.draggable
|
|
2095
|
-
}), [a, g, C, y, j, d.draggable]);
|
|
2096
|
-
return {
|
|
2097
|
-
active: u,
|
|
2098
|
-
activatorEvent: i,
|
|
2099
|
-
activeNodeRect: f,
|
|
2100
|
-
attributes: w,
|
|
2101
|
-
isDragging: y,
|
|
2102
|
-
listeners: a ? void 0 : b,
|
|
2103
|
-
node: I,
|
|
2104
|
-
over: x,
|
|
2105
|
-
setNodeRef: k,
|
|
2106
|
-
setActivatorNodeRef: $,
|
|
2107
|
-
transform: D
|
|
2108
|
-
};
|
|
2109
|
-
}
|
|
2110
|
-
const Qr = "Droppable", Kr = {
|
|
2111
|
-
timeout: 25
|
|
2112
|
-
};
|
|
2113
|
-
function es(e) {
|
|
2114
|
-
let {
|
|
2115
|
-
data: r,
|
|
2116
|
-
disabled: t = !1,
|
|
2117
|
-
id: a,
|
|
2118
|
-
resizeObserverConfig: n
|
|
2119
|
-
} = e;
|
|
2120
|
-
const o = We(Qr), {
|
|
2121
|
-
active: l,
|
|
2122
|
-
dispatch: i,
|
|
2123
|
-
over: u,
|
|
2124
|
-
measureDroppableContainers: f
|
|
2125
|
-
} = te(Xe), d = W({
|
|
2126
|
-
disabled: t
|
|
2127
|
-
}), m = W(!1), x = W(null), g = W(null), {
|
|
2128
|
-
disabled: j,
|
|
2129
|
-
updateMeasurementsFor: C,
|
|
2130
|
-
timeout: y
|
|
2131
|
-
} = {
|
|
2132
|
-
...Kr,
|
|
2133
|
-
...n
|
|
2134
|
-
}, D = pe(C ?? a), I = O(
|
|
2135
|
-
() => {
|
|
2136
|
-
if (!m.current) {
|
|
2137
|
-
m.current = !0;
|
|
2138
|
-
return;
|
|
2139
|
-
}
|
|
2140
|
-
g.current != null && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
2141
|
-
f(Array.isArray(D.current) ? D.current : [D.current]), g.current = null;
|
|
2142
|
-
}, y);
|
|
2143
|
-
},
|
|
2144
|
-
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2145
|
-
[y]
|
|
2146
|
-
), k = Wr({
|
|
2147
|
-
callback: I,
|
|
2148
|
-
disabled: j || !l
|
|
2149
|
-
}), R = O((w, T) => {
|
|
2150
|
-
k && (T && (k.unobserve(T), m.current = !1), w && k.observe(w));
|
|
2151
|
-
}, [k]), [$, b] = we(R), v = pe(r);
|
|
2152
|
-
return M(() => {
|
|
2153
|
-
!k || !$.current || (k.disconnect(), m.current = !1, k.observe($.current));
|
|
2154
|
-
}, [$, k]), M(
|
|
2155
|
-
() => (i({
|
|
2156
|
-
type: se.RegisterDroppable,
|
|
2157
|
-
element: {
|
|
2158
|
-
id: a,
|
|
2159
|
-
key: o,
|
|
2160
|
-
disabled: t,
|
|
2161
|
-
node: $,
|
|
2162
|
-
rect: x,
|
|
2163
|
-
data: v
|
|
2164
|
-
}
|
|
2165
|
-
}), () => i({
|
|
2166
|
-
type: se.UnregisterDroppable,
|
|
2167
|
-
key: o,
|
|
2168
|
-
id: a
|
|
2169
|
-
})),
|
|
2170
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2171
|
-
[a]
|
|
2172
|
-
), M(() => {
|
|
2173
|
-
t !== d.current.disabled && (i({
|
|
2174
|
-
type: se.SetDroppableDisabled,
|
|
2175
|
-
id: a,
|
|
2176
|
-
key: o,
|
|
2177
|
-
disabled: t
|
|
2178
|
-
}), d.current.disabled = t);
|
|
2179
|
-
}, [a, o, t, i]), {
|
|
2180
|
-
active: l,
|
|
2181
|
-
rect: x,
|
|
2182
|
-
isOver: u?.id === a,
|
|
2183
|
-
node: $,
|
|
2184
|
-
over: u,
|
|
2185
|
-
setNodeRef: b
|
|
2186
|
-
};
|
|
2187
|
-
}
|
|
2188
|
-
function He(e, r, t) {
|
|
2189
|
-
const a = e.slice();
|
|
2190
|
-
return a.splice(t < 0 ? a.length + t : t, 0, a.splice(r, 1)[0]), a;
|
|
2191
|
-
}
|
|
2192
|
-
function de(e) {
|
|
2193
|
-
return e !== null && e >= 0;
|
|
2194
|
-
}
|
|
2195
|
-
const rs = (e) => {
|
|
2196
|
-
let {
|
|
2197
|
-
rects: r,
|
|
2198
|
-
activeIndex: t,
|
|
2199
|
-
overIndex: a,
|
|
2200
|
-
index: n
|
|
2201
|
-
} = e;
|
|
2202
|
-
const o = He(r, a, t), l = r[n], i = o[n];
|
|
2203
|
-
return !i || !l ? null : {
|
|
2204
|
-
x: i.left - l.left,
|
|
2205
|
-
y: i.top - l.top,
|
|
2206
|
-
scaleX: i.width / l.width,
|
|
2207
|
-
scaleY: i.height / l.height
|
|
2208
|
-
};
|
|
2209
|
-
}, ss = "Sortable", ts = /* @__PURE__ */ X.createContext({
|
|
2210
|
-
activeIndex: -1,
|
|
2211
|
-
containerId: ss,
|
|
2212
|
-
disableTransforms: !1,
|
|
2213
|
-
items: [],
|
|
2214
|
-
overIndex: -1,
|
|
2215
|
-
useDragOverlay: !1,
|
|
2216
|
-
sortedRects: [],
|
|
2217
|
-
strategy: rs,
|
|
2218
|
-
disabled: {
|
|
2219
|
-
draggable: !1,
|
|
2220
|
-
droppable: !1
|
|
2221
|
-
}
|
|
2222
|
-
}), as = (e) => {
|
|
2223
|
-
let {
|
|
2224
|
-
id: r,
|
|
2225
|
-
items: t,
|
|
2226
|
-
activeIndex: a,
|
|
2227
|
-
overIndex: n
|
|
2228
|
-
} = e;
|
|
2229
|
-
return He(t, a, n).indexOf(r);
|
|
2230
|
-
}, ns = (e) => {
|
|
2231
|
-
let {
|
|
2232
|
-
containerId: r,
|
|
2233
|
-
isSorting: t,
|
|
2234
|
-
wasDragging: a,
|
|
2235
|
-
index: n,
|
|
2236
|
-
items: o,
|
|
2237
|
-
newIndex: l,
|
|
2238
|
-
previousItems: i,
|
|
2239
|
-
previousContainerId: u,
|
|
2240
|
-
transition: f
|
|
2241
|
-
} = e;
|
|
2242
|
-
return !f || !a || i !== o && n === l ? !1 : t ? !0 : l !== n && r === u;
|
|
2243
|
-
}, os = {
|
|
2244
|
-
duration: 200,
|
|
2245
|
-
easing: "ease"
|
|
2246
|
-
}, qe = "transform", ls = /* @__PURE__ */ ae.Transition.toString({
|
|
2247
|
-
property: qe,
|
|
2248
|
-
duration: 0,
|
|
2249
|
-
easing: "linear"
|
|
2250
|
-
}), cs = {
|
|
2251
|
-
roleDescription: "sortable"
|
|
2252
|
-
};
|
|
2253
|
-
function is(e) {
|
|
2254
|
-
let {
|
|
2255
|
-
disabled: r,
|
|
2256
|
-
index: t,
|
|
2257
|
-
node: a,
|
|
2258
|
-
rect: n
|
|
2259
|
-
} = e;
|
|
2260
|
-
const [o, l] = S(null), i = W(t);
|
|
2261
|
-
return me(() => {
|
|
2262
|
-
if (!r && t !== i.current && a.current) {
|
|
2263
|
-
const u = n.current;
|
|
2264
|
-
if (u) {
|
|
2265
|
-
const f = Ur(a.current, {
|
|
2266
|
-
ignoreTransform: !0
|
|
2267
|
-
}), d = {
|
|
2268
|
-
x: u.left - f.left,
|
|
2269
|
-
y: u.top - f.top,
|
|
2270
|
-
scaleX: u.width / f.width,
|
|
2271
|
-
scaleY: u.height / f.height
|
|
2272
|
-
};
|
|
2273
|
-
(d.x || d.y) && l(d);
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
t !== i.current && (i.current = t);
|
|
2277
|
-
}, [r, t, a, n]), M(() => {
|
|
2278
|
-
o && l(null);
|
|
2279
|
-
}, [o]), o;
|
|
2280
|
-
}
|
|
2281
|
-
function ds(e) {
|
|
2282
|
-
let {
|
|
2283
|
-
animateLayoutChanges: r = ns,
|
|
2284
|
-
attributes: t,
|
|
2285
|
-
disabled: a,
|
|
2286
|
-
data: n,
|
|
2287
|
-
getNewIndex: o = as,
|
|
2288
|
-
id: l,
|
|
2289
|
-
strategy: i,
|
|
2290
|
-
resizeObserverConfig: u,
|
|
2291
|
-
transition: f = os
|
|
2292
|
-
} = e;
|
|
2293
|
-
const {
|
|
2294
|
-
items: d,
|
|
2295
|
-
containerId: m,
|
|
2296
|
-
activeIndex: x,
|
|
2297
|
-
disabled: g,
|
|
2298
|
-
disableTransforms: j,
|
|
2299
|
-
sortedRects: C,
|
|
2300
|
-
overIndex: y,
|
|
2301
|
-
useDragOverlay: D,
|
|
2302
|
-
strategy: I
|
|
2303
|
-
} = te(ts), k = us(a, g), R = d.indexOf(l), $ = H(() => ({
|
|
2304
|
-
sortable: {
|
|
2305
|
-
containerId: m,
|
|
2306
|
-
index: R,
|
|
2307
|
-
items: d
|
|
2308
|
-
},
|
|
2309
|
-
...n
|
|
2310
|
-
}), [m, n, R, d]), b = H(() => d.slice(d.indexOf(l)), [d, l]), {
|
|
2311
|
-
rect: v,
|
|
2312
|
-
node: w,
|
|
2313
|
-
isOver: T,
|
|
2314
|
-
setNodeRef: Y
|
|
2315
|
-
} = es({
|
|
2316
|
-
id: l,
|
|
2317
|
-
data: $,
|
|
2318
|
-
disabled: k.droppable,
|
|
2319
|
-
resizeObserverConfig: {
|
|
2320
|
-
updateMeasurementsFor: b,
|
|
2321
|
-
...u
|
|
2322
|
-
}
|
|
2323
|
-
}), {
|
|
2324
|
-
active: A,
|
|
2325
|
-
activatorEvent: q,
|
|
2326
|
-
activeNodeRect: fe,
|
|
2327
|
-
attributes: Z,
|
|
2328
|
-
setNodeRef: Q,
|
|
2329
|
-
listeners: ne,
|
|
2330
|
-
isDragging: G,
|
|
2331
|
-
over: oe,
|
|
2332
|
-
setActivatorNodeRef: le,
|
|
2333
|
-
transform: c
|
|
2334
|
-
} = Zr({
|
|
2335
|
-
id: l,
|
|
2336
|
-
data: $,
|
|
2337
|
-
attributes: {
|
|
2338
|
-
...cs,
|
|
2339
|
-
...t
|
|
2340
|
-
},
|
|
2341
|
-
disabled: k.draggable
|
|
2342
|
-
}), h = Ar(Y, Q), p = !!A, E = p && !j && de(x) && de(y), L = !D && G, z = L && E ? c : null, K = E ? z ?? (i ?? I)({
|
|
2343
|
-
rects: C,
|
|
2344
|
-
activeNodeRect: fe,
|
|
2345
|
-
activeIndex: x,
|
|
2346
|
-
overIndex: y,
|
|
2347
|
-
index: R
|
|
2348
|
-
}) : null, N = de(x) && de(y) ? o({
|
|
2349
|
-
id: l,
|
|
2350
|
-
items: d,
|
|
2351
|
-
activeIndex: x,
|
|
2352
|
-
overIndex: y
|
|
2353
|
-
}) : R, B = A?.id, V = W({
|
|
2354
|
-
activeId: B,
|
|
2355
|
-
items: d,
|
|
2356
|
-
newIndex: N,
|
|
2357
|
-
containerId: m
|
|
2358
|
-
}), xe = d !== V.current.items, Ce = r({
|
|
2359
|
-
active: A,
|
|
2360
|
-
containerId: m,
|
|
2361
|
-
isDragging: G,
|
|
2362
|
-
isSorting: p,
|
|
2363
|
-
id: l,
|
|
2364
|
-
index: R,
|
|
2365
|
-
items: d,
|
|
2366
|
-
newIndex: V.current.newIndex,
|
|
2367
|
-
previousItems: V.current.items,
|
|
2368
|
-
previousContainerId: V.current.containerId,
|
|
2369
|
-
transition: f,
|
|
2370
|
-
wasDragging: V.current.activeId != null
|
|
2371
|
-
}), ge = is({
|
|
2372
|
-
disabled: !Ce,
|
|
2373
|
-
index: R,
|
|
2374
|
-
node: w,
|
|
2375
|
-
rect: v
|
|
2376
|
-
});
|
|
2377
|
-
return M(() => {
|
|
2378
|
-
p && V.current.newIndex !== N && (V.current.newIndex = N), m !== V.current.containerId && (V.current.containerId = m), d !== V.current.items && (V.current.items = d);
|
|
2379
|
-
}, [p, N, m, d]), M(() => {
|
|
2380
|
-
if (B === V.current.activeId)
|
|
2381
|
-
return;
|
|
2382
|
-
if (B && !V.current.activeId) {
|
|
2383
|
-
V.current.activeId = B;
|
|
2384
|
-
return;
|
|
2385
|
-
}
|
|
2386
|
-
const Je = setTimeout(() => {
|
|
2387
|
-
V.current.activeId = B;
|
|
2388
|
-
}, 50);
|
|
2389
|
-
return () => clearTimeout(Je);
|
|
2390
|
-
}, [B]), {
|
|
2391
|
-
active: A,
|
|
2392
|
-
activeIndex: x,
|
|
2393
|
-
attributes: Z,
|
|
2394
|
-
data: $,
|
|
2395
|
-
rect: v,
|
|
2396
|
-
index: R,
|
|
2397
|
-
newIndex: N,
|
|
2398
|
-
items: d,
|
|
2399
|
-
isOver: T,
|
|
2400
|
-
isSorting: p,
|
|
2401
|
-
isDragging: G,
|
|
2402
|
-
listeners: ne,
|
|
2403
|
-
node: w,
|
|
2404
|
-
overIndex: y,
|
|
2405
|
-
over: oe,
|
|
2406
|
-
setNodeRef: h,
|
|
2407
|
-
setActivatorNodeRef: le,
|
|
2408
|
-
setDroppableNodeRef: Y,
|
|
2409
|
-
setDraggableNodeRef: Q,
|
|
2410
|
-
transform: ge ?? K,
|
|
2411
|
-
transition: Ge()
|
|
2412
|
-
};
|
|
2413
|
-
function Ge() {
|
|
2414
|
-
if (
|
|
2415
|
-
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
2416
|
-
ge || // Or to prevent items jumping to back to their "new" position when items change
|
|
2417
|
-
xe && V.current.newIndex === R
|
|
2418
|
-
)
|
|
2419
|
-
return ls;
|
|
2420
|
-
if (!(L && !Fr(q) || !f) && (p || Ce))
|
|
2421
|
-
return ae.Transition.toString({
|
|
2422
|
-
...f,
|
|
2423
|
-
property: qe
|
|
2424
|
-
});
|
|
2425
|
-
}
|
|
2426
|
-
}
|
|
2427
|
-
function us(e, r) {
|
|
2428
|
-
var t, a;
|
|
2429
|
-
return typeof e == "boolean" ? {
|
|
2430
|
-
draggable: e,
|
|
2431
|
-
// Backwards compatibility
|
|
2432
|
-
droppable: !1
|
|
2433
|
-
} : {
|
|
2434
|
-
draggable: (t = e?.draggable) != null ? t : r.draggable,
|
|
2435
|
-
droppable: (a = e?.droppable) != null ? a : r.droppable
|
|
2436
|
-
};
|
|
2437
|
-
}
|
|
2438
|
-
F.Down, F.Right, F.Up, F.Left;
|
|
2439
|
-
function ms({
|
|
2440
|
-
id: e,
|
|
2441
|
-
index: r,
|
|
1782
|
+
function or({
|
|
1783
|
+
id: r,
|
|
1784
|
+
index: s,
|
|
2442
1785
|
previewText: t,
|
|
2443
1786
|
defaultExpanded: a = !1,
|
|
2444
|
-
children:
|
|
2445
|
-
tooltipContent:
|
|
2446
|
-
onRemove:
|
|
1787
|
+
children: l,
|
|
1788
|
+
tooltipContent: n,
|
|
1789
|
+
onRemove: c,
|
|
2447
1790
|
className: i = ""
|
|
2448
1791
|
}) {
|
|
2449
|
-
const [u,
|
|
2450
|
-
transform:
|
|
2451
|
-
transition:
|
|
2452
|
-
opacity:
|
|
1792
|
+
const [u, x] = k(a), { attributes: d, listeners: m, setNodeRef: v, transform: g, transition: N, isDragging: V } = Ae({ id: r }), E = {
|
|
1793
|
+
transform: _e.Transform.toString(g),
|
|
1794
|
+
transition: N,
|
|
1795
|
+
opacity: V ? 0.5 : 1
|
|
2453
1796
|
};
|
|
2454
|
-
return /* @__PURE__ */
|
|
1797
|
+
return /* @__PURE__ */ e.jsx(
|
|
2455
1798
|
"div",
|
|
2456
1799
|
{
|
|
2457
|
-
ref:
|
|
2458
|
-
style:
|
|
1800
|
+
ref: v,
|
|
1801
|
+
style: E,
|
|
2459
1802
|
className: `border border-border rounded-md bg-surface-variant ${i}`,
|
|
2460
1803
|
children: u ? (
|
|
2461
1804
|
// ── Expanded ──────────────────────────────────────────────────────────
|
|
2462
|
-
/* @__PURE__ */
|
|
2463
|
-
/* @__PURE__ */
|
|
2464
|
-
/* @__PURE__ */
|
|
2465
|
-
|
|
1805
|
+
/* @__PURE__ */ e.jsxs("div", { className: "p-3", children: [
|
|
1806
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center mb-2", children: [
|
|
1807
|
+
/* @__PURE__ */ e.jsx(
|
|
1808
|
+
"button",
|
|
2466
1809
|
{
|
|
2467
1810
|
type: "button",
|
|
2468
|
-
variant: "ghost",
|
|
2469
|
-
size: "icon",
|
|
2470
1811
|
...d,
|
|
2471
1812
|
...m,
|
|
2472
|
-
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing",
|
|
1813
|
+
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing rounded hover:bg-surface-variant inline-flex items-center justify-center",
|
|
2473
1814
|
"aria-label": "Drag to reorder",
|
|
2474
|
-
|
|
1815
|
+
children: /* @__PURE__ */ e.jsx(xe, { className: "w-4 h-4" })
|
|
2475
1816
|
}
|
|
2476
1817
|
),
|
|
2477
|
-
/* @__PURE__ */
|
|
1818
|
+
/* @__PURE__ */ e.jsxs(
|
|
2478
1819
|
"span",
|
|
2479
1820
|
{
|
|
2480
1821
|
className: "text-sm font-medium text-text-secondary flex-1 cursor-pointer select-none",
|
|
2481
|
-
onClick: () =>
|
|
1822
|
+
onClick: () => x(!1),
|
|
2482
1823
|
children: [
|
|
2483
1824
|
"Item ",
|
|
2484
|
-
|
|
1825
|
+
s + 1
|
|
2485
1826
|
]
|
|
2486
1827
|
}
|
|
2487
1828
|
),
|
|
2488
|
-
/* @__PURE__ */
|
|
2489
|
-
|
|
1829
|
+
/* @__PURE__ */ e.jsx(
|
|
1830
|
+
I,
|
|
2490
1831
|
{
|
|
2491
1832
|
type: "button",
|
|
2492
1833
|
variant: "ghost",
|
|
2493
1834
|
size: "icon",
|
|
2494
|
-
onClick: () =>
|
|
1835
|
+
onClick: () => x(!1),
|
|
2495
1836
|
className: "h-auto w-auto p-1",
|
|
2496
1837
|
"aria-label": "Collapse",
|
|
2497
|
-
leftIcon: /* @__PURE__ */
|
|
1838
|
+
leftIcon: /* @__PURE__ */ e.jsx(fe, { className: "w-4 h-4 transition-transform rotate-90" })
|
|
2498
1839
|
}
|
|
2499
1840
|
),
|
|
2500
|
-
/* @__PURE__ */
|
|
2501
|
-
|
|
1841
|
+
/* @__PURE__ */ e.jsx(
|
|
1842
|
+
I,
|
|
2502
1843
|
{
|
|
2503
1844
|
type: "button",
|
|
2504
1845
|
variant: "ghost",
|
|
2505
1846
|
size: "icon",
|
|
2506
|
-
onClick:
|
|
1847
|
+
onClick: c,
|
|
2507
1848
|
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800",
|
|
2508
1849
|
"aria-label": "Remove",
|
|
2509
|
-
leftIcon: /* @__PURE__ */
|
|
1850
|
+
leftIcon: /* @__PURE__ */ e.jsx(Q, { className: "w-4 h-4" })
|
|
2510
1851
|
}
|
|
2511
1852
|
)
|
|
2512
1853
|
] }),
|
|
2513
|
-
|
|
1854
|
+
l
|
|
2514
1855
|
] })
|
|
2515
1856
|
) : (
|
|
2516
1857
|
// ── Collapsed ─────────────────────────────────────────────────────────
|
|
2517
|
-
/* @__PURE__ */
|
|
2518
|
-
/* @__PURE__ */
|
|
2519
|
-
/* @__PURE__ */
|
|
2520
|
-
|
|
1858
|
+
/* @__PURE__ */ e.jsxs("div", { className: "relative group", children: [
|
|
1859
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 px-3 py-2", children: [
|
|
1860
|
+
/* @__PURE__ */ e.jsx(
|
|
1861
|
+
"button",
|
|
2521
1862
|
{
|
|
2522
1863
|
type: "button",
|
|
2523
|
-
variant: "ghost",
|
|
2524
|
-
size: "icon",
|
|
2525
1864
|
...d,
|
|
2526
1865
|
...m,
|
|
2527
|
-
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing flex-shrink-0",
|
|
1866
|
+
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing flex-shrink-0 rounded hover:bg-surface-variant inline-flex items-center justify-center",
|
|
2528
1867
|
"aria-label": "Drag to reorder",
|
|
2529
|
-
|
|
1868
|
+
children: /* @__PURE__ */ e.jsx(xe, { className: "w-4 h-4" })
|
|
2530
1869
|
}
|
|
2531
1870
|
),
|
|
2532
|
-
/* @__PURE__ */
|
|
1871
|
+
/* @__PURE__ */ e.jsx(
|
|
2533
1872
|
"span",
|
|
2534
1873
|
{
|
|
2535
1874
|
className: "flex-1 text-sm text-text-secondary truncate cursor-pointer select-none",
|
|
2536
|
-
onClick: () =>
|
|
1875
|
+
onClick: () => x(!0),
|
|
2537
1876
|
children: t
|
|
2538
1877
|
}
|
|
2539
1878
|
),
|
|
2540
|
-
/* @__PURE__ */
|
|
2541
|
-
|
|
1879
|
+
/* @__PURE__ */ e.jsx(
|
|
1880
|
+
I,
|
|
2542
1881
|
{
|
|
2543
1882
|
type: "button",
|
|
2544
1883
|
variant: "ghost",
|
|
2545
1884
|
size: "icon",
|
|
2546
|
-
onClick: () =>
|
|
1885
|
+
onClick: () => x(!0),
|
|
2547
1886
|
className: "h-auto w-auto p-1 flex-shrink-0",
|
|
2548
1887
|
"aria-label": "Expand",
|
|
2549
|
-
leftIcon: /* @__PURE__ */
|
|
1888
|
+
leftIcon: /* @__PURE__ */ e.jsx(fe, { className: "w-4 h-4 transition-transform" })
|
|
2550
1889
|
}
|
|
2551
1890
|
),
|
|
2552
|
-
/* @__PURE__ */
|
|
2553
|
-
|
|
1891
|
+
/* @__PURE__ */ e.jsx(
|
|
1892
|
+
I,
|
|
2554
1893
|
{
|
|
2555
1894
|
type: "button",
|
|
2556
1895
|
variant: "ghost",
|
|
2557
1896
|
size: "icon",
|
|
2558
|
-
onClick:
|
|
1897
|
+
onClick: c,
|
|
2559
1898
|
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800 flex-shrink-0",
|
|
2560
1899
|
"aria-label": "Remove",
|
|
2561
|
-
leftIcon: /* @__PURE__ */
|
|
1900
|
+
leftIcon: /* @__PURE__ */ e.jsx(Q, { className: "w-4 h-4" })
|
|
2562
1901
|
}
|
|
2563
1902
|
)
|
|
2564
1903
|
] }),
|
|
2565
|
-
|
|
1904
|
+
n && /* @__PURE__ */ e.jsx("div", { className: "absolute left-0 top-full mt-1 z-10 w-80 bg-gray-900 text-white text-xs rounded-md p-3 shadow-lg opacity-0 group-hover:opacity-100 pointer-events-none transition-opacity duration-150", children: n })
|
|
2566
1905
|
] })
|
|
2567
1906
|
)
|
|
2568
1907
|
}
|
|
2569
1908
|
);
|
|
2570
1909
|
}
|
|
2571
|
-
|
|
1910
|
+
or.displayName = "SortableItem";
|
|
2572
1911
|
export {
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
1912
|
+
kr as Accordion,
|
|
1913
|
+
wr as Alert,
|
|
1914
|
+
Ke as Badge,
|
|
1915
|
+
I as Button,
|
|
1916
|
+
pr as Card,
|
|
1917
|
+
Nr as CheckboxGroup,
|
|
1918
|
+
Le as ColorPalette,
|
|
1919
|
+
br as Demo,
|
|
1920
|
+
yr as FormField,
|
|
1921
|
+
Qe as Input,
|
|
1922
|
+
Vr as OptionCard,
|
|
1923
|
+
Cr as RadioGroup,
|
|
1924
|
+
jr as Section,
|
|
1925
|
+
er as Select,
|
|
1926
|
+
gr as Sidebar,
|
|
1927
|
+
ar as Slider,
|
|
1928
|
+
Je as SocialButton,
|
|
1929
|
+
or as SortableItem,
|
|
1930
|
+
$r as Stepper,
|
|
1931
|
+
Tr as TabBar,
|
|
1932
|
+
rr as TagInput,
|
|
1933
|
+
sr as Textarea,
|
|
1934
|
+
Me as ThemeProvider,
|
|
1935
|
+
Ye as ThemeToggle,
|
|
1936
|
+
vr as clearAllErrors,
|
|
1937
|
+
fr as clearFieldError,
|
|
1938
|
+
xr as getFirstError,
|
|
1939
|
+
Be as hasErrors,
|
|
1940
|
+
hr as useForm,
|
|
1941
|
+
ze as useTheme,
|
|
1942
|
+
Oe as validateField,
|
|
1943
|
+
Z as validateForm,
|
|
1944
|
+
mr as validators
|
|
2606
1945
|
};
|