acemyjob-ui 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acemyjob-ui.es.js +1619 -781
- package/dist/acemyjob-ui.umd.js +4 -4
- package/dist/component/SortableItem/index.d.ts +23 -0
- package/dist/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +4 -1
package/dist/acemyjob-ui.es.js
CHANGED
|
@@ -1,202 +1,203 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import { Dialog as
|
|
4
|
-
import { XMarkIcon as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import * as P from "react";
|
|
2
|
+
import X, { useState as S, useCallback as O, createContext as ue, useEffect as M, useContext as te, useLayoutEffect as Ze, useMemo as H, useRef as W } from "react";
|
|
3
|
+
import { Dialog as Qe, DialogBackdrop as Ke, DialogPanel as er, TransitionChild as rr } from "@headlessui/react";
|
|
4
|
+
import { XMarkIcon as sr, Bars3Icon as tr, ChevronDownIcon as Ne, InformationCircleIcon as ar, ExclamationCircleIcon as nr, XCircleIcon as or, CheckCircleIcon as lr } from "@heroicons/react/24/outline";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
const hs = {
|
|
7
|
+
required: (e = "This field is required") => ({
|
|
8
|
+
validate: (r) => typeof r == "string" ? r.trim().length > 0 : Array.isArray(r) ? r.length > 0 : r != null,
|
|
9
|
+
message: e
|
|
9
10
|
}),
|
|
10
|
-
email: (
|
|
11
|
-
validate: (
|
|
12
|
-
message:
|
|
11
|
+
email: (e = "Please enter a valid email address") => ({
|
|
12
|
+
validate: (r) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(r)),
|
|
13
|
+
message: e
|
|
13
14
|
}),
|
|
14
|
-
minLength: (
|
|
15
|
-
validate: (t) => String(t).length >=
|
|
16
|
-
message:
|
|
15
|
+
minLength: (e, r) => ({
|
|
16
|
+
validate: (t) => String(t).length >= e,
|
|
17
|
+
message: r || `Must be at least ${e} characters`
|
|
17
18
|
}),
|
|
18
|
-
maxLength: (
|
|
19
|
-
validate: (t) => String(t).length <=
|
|
20
|
-
message:
|
|
19
|
+
maxLength: (e, r) => ({
|
|
20
|
+
validate: (t) => String(t).length <= e,
|
|
21
|
+
message: r || `Must be no more than ${e} characters`
|
|
21
22
|
}),
|
|
22
|
-
pattern: (
|
|
23
|
-
validate: (t) =>
|
|
24
|
-
message:
|
|
23
|
+
pattern: (e, r = "Invalid format") => ({
|
|
24
|
+
validate: (t) => e.test(String(t)),
|
|
25
|
+
message: r
|
|
25
26
|
}),
|
|
26
|
-
minValue: (
|
|
27
|
-
validate: (t) => Number(t) >=
|
|
28
|
-
message:
|
|
27
|
+
minValue: (e, r) => ({
|
|
28
|
+
validate: (t) => Number(t) >= e,
|
|
29
|
+
message: r || `Must be at least ${e}`
|
|
29
30
|
}),
|
|
30
|
-
maxValue: (
|
|
31
|
-
validate: (t) => Number(t) <=
|
|
32
|
-
message:
|
|
31
|
+
maxValue: (e, r) => ({
|
|
32
|
+
validate: (t) => Number(t) <= e,
|
|
33
|
+
message: r || `Must be no more than ${e}`
|
|
33
34
|
}),
|
|
34
|
-
url: (
|
|
35
|
-
validate: (
|
|
35
|
+
url: (e = "Please enter a valid URL") => ({
|
|
36
|
+
validate: (r) => {
|
|
36
37
|
try {
|
|
37
|
-
return new URL(String(
|
|
38
|
+
return new URL(String(r)), !0;
|
|
38
39
|
} catch {
|
|
39
40
|
return !1;
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
|
-
message:
|
|
43
|
+
message: e
|
|
43
44
|
}),
|
|
44
|
-
phone: (
|
|
45
|
-
validate: (
|
|
46
|
-
const t = /^[\d\s\-+()]+$/, a = String(
|
|
45
|
+
phone: (e = "Please enter a valid phone number") => ({
|
|
46
|
+
validate: (r) => {
|
|
47
|
+
const t = /^[\d\s\-+()]+$/, a = String(r);
|
|
47
48
|
return t.test(a) && a.replace(/\D/g, "").length >= 10;
|
|
48
49
|
},
|
|
49
|
-
message:
|
|
50
|
+
message: e
|
|
50
51
|
}),
|
|
51
|
-
match: (
|
|
52
|
-
validate: (t) => t ===
|
|
53
|
-
message:
|
|
52
|
+
match: (e, r = "Fields do not match") => ({
|
|
53
|
+
validate: (t) => t === e,
|
|
54
|
+
message: r
|
|
54
55
|
}),
|
|
55
|
-
custom: (
|
|
56
|
-
validate:
|
|
57
|
-
message:
|
|
56
|
+
custom: (e, r) => ({
|
|
57
|
+
validate: e,
|
|
58
|
+
message: r
|
|
58
59
|
})
|
|
59
60
|
};
|
|
60
|
-
function
|
|
61
|
-
for (const t of
|
|
62
|
-
if (!t.validate(
|
|
61
|
+
function cr(e, r) {
|
|
62
|
+
for (const t of r)
|
|
63
|
+
if (!t.validate(e))
|
|
63
64
|
return t.message;
|
|
64
65
|
return null;
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function ve(e, r) {
|
|
67
68
|
const t = {};
|
|
68
|
-
for (const [a,
|
|
69
|
-
const o =
|
|
70
|
-
t[a] =
|
|
69
|
+
for (const [a, n] of Object.entries(r)) {
|
|
70
|
+
const o = e[a], l = cr(o, n);
|
|
71
|
+
t[a] = l;
|
|
71
72
|
}
|
|
72
73
|
return t;
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
-
return Object.values(
|
|
75
|
+
function ir(e) {
|
|
76
|
+
return Object.values(e).some((r) => r !== null);
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
-
for (const
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
78
|
+
function bs(e) {
|
|
79
|
+
for (const r of Object.values(e))
|
|
80
|
+
if (r !== null)
|
|
81
|
+
return r;
|
|
81
82
|
return null;
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function ps(e, r) {
|
|
84
85
|
return {
|
|
85
|
-
...
|
|
86
|
-
[
|
|
86
|
+
...e,
|
|
87
|
+
[r]: null
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
for (const t of Object.keys(
|
|
92
|
-
|
|
93
|
-
return
|
|
90
|
+
function ws(e) {
|
|
91
|
+
const r = {};
|
|
92
|
+
for (const t of Object.keys(e))
|
|
93
|
+
r[t] = null;
|
|
94
|
+
return r;
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
-
initialValues:
|
|
97
|
-
validationRules:
|
|
96
|
+
function ys({
|
|
97
|
+
initialValues: e,
|
|
98
|
+
validationRules: r = {},
|
|
98
99
|
onSubmit: t
|
|
99
100
|
}) {
|
|
100
|
-
const [a,
|
|
101
|
+
const [a, n] = S(e), [o, l] = S({}), [i, u] = S({}), [f, d] = S(!1), m = JSON.stringify(a) !== JSON.stringify(e), x = O(
|
|
101
102
|
(b) => {
|
|
102
|
-
const { name:
|
|
103
|
-
let
|
|
104
|
-
if (
|
|
105
|
-
...
|
|
106
|
-
[
|
|
107
|
-
})),
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
...
|
|
111
|
-
[
|
|
103
|
+
const { name: v, value: w, type: T } = b.target;
|
|
104
|
+
let Y = w;
|
|
105
|
+
if (T === "checkbox" ? Y = b.target.checked : T === "number" && (Y = w ? Number(w) : ""), n((A) => ({
|
|
106
|
+
...A,
|
|
107
|
+
[v]: Y
|
|
108
|
+
})), r[v]) {
|
|
109
|
+
const A = ve({ [v]: Y }, { [v]: r[v] });
|
|
110
|
+
l((q) => ({
|
|
111
|
+
...q,
|
|
112
|
+
[v]: A[v]
|
|
112
113
|
}));
|
|
113
114
|
}
|
|
114
115
|
},
|
|
115
|
-
[
|
|
116
|
-
), g =
|
|
116
|
+
[r]
|
|
117
|
+
), g = O(
|
|
117
118
|
(b) => {
|
|
118
|
-
const { name:
|
|
119
|
-
u((
|
|
120
|
-
...
|
|
121
|
-
[
|
|
119
|
+
const { name: v } = b.target;
|
|
120
|
+
u((w) => ({
|
|
121
|
+
...w,
|
|
122
|
+
[v]: !0
|
|
122
123
|
}));
|
|
123
124
|
},
|
|
124
125
|
[]
|
|
125
|
-
),
|
|
126
|
-
if (
|
|
127
|
-
...
|
|
128
|
-
[b]:
|
|
129
|
-
})),
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
...
|
|
133
|
-
[b]:
|
|
126
|
+
), j = O((b, v) => {
|
|
127
|
+
if (n((w) => ({
|
|
128
|
+
...w,
|
|
129
|
+
[b]: v
|
|
130
|
+
})), r[b]) {
|
|
131
|
+
const w = ve({ [b]: v }, { [b]: r[b] });
|
|
132
|
+
l((T) => ({
|
|
133
|
+
...T,
|
|
134
|
+
[b]: w[b]
|
|
134
135
|
}));
|
|
135
136
|
}
|
|
136
|
-
}, [
|
|
137
|
-
|
|
138
|
-
...
|
|
139
|
-
[b]:
|
|
137
|
+
}, [r]), C = O((b, v) => {
|
|
138
|
+
l((w) => ({
|
|
139
|
+
...w,
|
|
140
|
+
[b]: v
|
|
140
141
|
}));
|
|
141
|
-
}, []),
|
|
142
|
+
}, []), y = O(
|
|
142
143
|
async (b) => {
|
|
143
144
|
b.preventDefault();
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
for (const
|
|
148
|
-
|
|
149
|
-
if (u(
|
|
145
|
+
const v = ve(a, r);
|
|
146
|
+
l(v);
|
|
147
|
+
const w = {};
|
|
148
|
+
for (const T of Object.keys(a))
|
|
149
|
+
w[T] = !0;
|
|
150
|
+
if (u(w), !ir(v) && t) {
|
|
150
151
|
d(!0);
|
|
151
152
|
try {
|
|
152
153
|
await t(a);
|
|
153
|
-
} catch (
|
|
154
|
-
console.error("Form submission error:",
|
|
154
|
+
} catch (T) {
|
|
155
|
+
console.error("Form submission error:", T);
|
|
155
156
|
} finally {
|
|
156
157
|
d(!1);
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
160
|
},
|
|
160
|
-
[a,
|
|
161
|
-
),
|
|
162
|
-
|
|
163
|
-
}, [
|
|
161
|
+
[a, r, t]
|
|
162
|
+
), R = O(() => {
|
|
163
|
+
n(e), l({}), u({}), d(!1);
|
|
164
|
+
}, [e]), I = O(
|
|
164
165
|
(b) => ({
|
|
165
166
|
name: b,
|
|
166
167
|
value: a[b] || "",
|
|
167
|
-
onChange:
|
|
168
|
+
onChange: x,
|
|
168
169
|
onBlur: g
|
|
169
170
|
}),
|
|
170
|
-
[a,
|
|
171
|
-
),
|
|
171
|
+
[a, x, g]
|
|
172
|
+
), k = O(
|
|
172
173
|
(b) => o[b] || null,
|
|
173
174
|
[o]
|
|
174
|
-
),
|
|
175
|
-
(b) =>
|
|
176
|
-
[
|
|
177
|
-
),
|
|
178
|
-
(b) => a[b] !==
|
|
179
|
-
[a,
|
|
175
|
+
), E = O(
|
|
176
|
+
(b) => i[b] || !1,
|
|
177
|
+
[i]
|
|
178
|
+
), D = O(
|
|
179
|
+
(b) => a[b] !== e[b],
|
|
180
|
+
[a, e]
|
|
180
181
|
);
|
|
181
182
|
return {
|
|
182
183
|
values: a,
|
|
183
184
|
errors: o,
|
|
184
|
-
touched:
|
|
185
|
-
isSubmitting:
|
|
185
|
+
touched: i,
|
|
186
|
+
isSubmitting: f,
|
|
186
187
|
isDirty: m,
|
|
187
|
-
handleChange:
|
|
188
|
+
handleChange: x,
|
|
188
189
|
handleBlur: g,
|
|
189
|
-
setFieldValue:
|
|
190
|
-
setFieldError:
|
|
191
|
-
handleSubmit:
|
|
192
|
-
resetForm:
|
|
193
|
-
getFieldProps:
|
|
194
|
-
getFieldError:
|
|
195
|
-
isFieldTouched:
|
|
196
|
-
isFieldDirty:
|
|
190
|
+
setFieldValue: j,
|
|
191
|
+
setFieldError: C,
|
|
192
|
+
handleSubmit: y,
|
|
193
|
+
resetForm: R,
|
|
194
|
+
getFieldProps: I,
|
|
195
|
+
getFieldError: k,
|
|
196
|
+
isFieldTouched: E,
|
|
197
|
+
isFieldDirty: D
|
|
197
198
|
};
|
|
198
199
|
}
|
|
199
|
-
var
|
|
200
|
+
var ie = { exports: {} }, ee = {};
|
|
200
201
|
/**
|
|
201
202
|
* @license React
|
|
202
203
|
* react-jsx-runtime.production.js
|
|
@@ -206,29 +207,29 @@ var U = { exports: {} }, I = {};
|
|
|
206
207
|
* This source code is licensed under the MIT license found in the
|
|
207
208
|
* LICENSE file in the root directory of this source tree.
|
|
208
209
|
*/
|
|
209
|
-
var
|
|
210
|
-
function
|
|
211
|
-
if (
|
|
212
|
-
|
|
213
|
-
var
|
|
214
|
-
function t(a,
|
|
215
|
-
var
|
|
216
|
-
if (o !== void 0 && (
|
|
210
|
+
var ke;
|
|
211
|
+
function dr() {
|
|
212
|
+
if (ke) return ee;
|
|
213
|
+
ke = 1;
|
|
214
|
+
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
215
|
+
function t(a, n, o) {
|
|
216
|
+
var l = null;
|
|
217
|
+
if (o !== void 0 && (l = "" + o), n.key !== void 0 && (l = "" + n.key), "key" in n) {
|
|
217
218
|
o = {};
|
|
218
|
-
for (var
|
|
219
|
-
|
|
220
|
-
} else o =
|
|
221
|
-
return
|
|
222
|
-
$$typeof:
|
|
219
|
+
for (var i in n)
|
|
220
|
+
i !== "key" && (o[i] = n[i]);
|
|
221
|
+
} else o = n;
|
|
222
|
+
return n = o.ref, {
|
|
223
|
+
$$typeof: e,
|
|
223
224
|
type: a,
|
|
224
|
-
key:
|
|
225
|
-
ref:
|
|
225
|
+
key: l,
|
|
226
|
+
ref: n !== void 0 ? n : null,
|
|
226
227
|
props: o
|
|
227
228
|
};
|
|
228
229
|
}
|
|
229
|
-
return
|
|
230
|
+
return ee.Fragment = r, ee.jsx = t, ee.jsxs = t, ee;
|
|
230
231
|
}
|
|
231
|
-
var
|
|
232
|
+
var re = {};
|
|
232
233
|
/**
|
|
233
234
|
* @license React
|
|
234
235
|
* react-jsx-runtime.development.js
|
|
@@ -238,245 +239,245 @@ var z = {};
|
|
|
238
239
|
* This source code is licensed under the MIT license found in the
|
|
239
240
|
* LICENSE file in the root directory of this source tree.
|
|
240
241
|
*/
|
|
241
|
-
var
|
|
242
|
-
function
|
|
243
|
-
return
|
|
244
|
-
function
|
|
245
|
-
if (
|
|
246
|
-
if (typeof
|
|
247
|
-
return
|
|
248
|
-
if (typeof
|
|
249
|
-
switch (
|
|
250
|
-
case
|
|
242
|
+
var Te;
|
|
243
|
+
function ur() {
|
|
244
|
+
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
245
|
+
function e(c) {
|
|
246
|
+
if (c == null) return null;
|
|
247
|
+
if (typeof c == "function")
|
|
248
|
+
return c.$$typeof === Y ? null : c.displayName || c.name || null;
|
|
249
|
+
if (typeof c == "string") return c;
|
|
250
|
+
switch (c) {
|
|
251
|
+
case C:
|
|
251
252
|
return "Fragment";
|
|
252
|
-
case
|
|
253
|
+
case R:
|
|
253
254
|
return "Profiler";
|
|
254
|
-
case
|
|
255
|
+
case y:
|
|
255
256
|
return "StrictMode";
|
|
256
|
-
case
|
|
257
|
+
case D:
|
|
257
258
|
return "Suspense";
|
|
258
259
|
case b:
|
|
259
260
|
return "SuspenseList";
|
|
260
|
-
case
|
|
261
|
+
case T:
|
|
261
262
|
return "Activity";
|
|
262
263
|
}
|
|
263
|
-
if (typeof
|
|
264
|
-
switch (typeof
|
|
264
|
+
if (typeof c == "object")
|
|
265
|
+
switch (typeof c.tag == "number" && console.error(
|
|
265
266
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
266
|
-
),
|
|
267
|
-
case N:
|
|
268
|
-
return "Portal";
|
|
269
|
-
case S:
|
|
270
|
-
return (n.displayName || "Context") + ".Provider";
|
|
271
|
-
case $:
|
|
272
|
-
return (n._context.displayName || "Context") + ".Consumer";
|
|
273
|
-
case D:
|
|
274
|
-
var x = n.render;
|
|
275
|
-
return n = n.displayName, n || (n = x.displayName || x.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
276
|
-
case f:
|
|
277
|
-
return x = n.displayName || null, x !== null ? x : r(n.type) || "Memo";
|
|
267
|
+
), c.$$typeof) {
|
|
278
268
|
case j:
|
|
279
|
-
|
|
269
|
+
return "Portal";
|
|
270
|
+
case k:
|
|
271
|
+
return (c.displayName || "Context") + ".Provider";
|
|
272
|
+
case I:
|
|
273
|
+
return (c._context.displayName || "Context") + ".Consumer";
|
|
274
|
+
case E:
|
|
275
|
+
var h = c.render;
|
|
276
|
+
return c = c.displayName, c || (c = h.displayName || h.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
277
|
+
case v:
|
|
278
|
+
return h = c.displayName || null, h !== null ? h : e(c.type) || "Memo";
|
|
279
|
+
case w:
|
|
280
|
+
h = c._payload, c = c._init;
|
|
280
281
|
try {
|
|
281
|
-
return
|
|
282
|
+
return e(c(h));
|
|
282
283
|
} catch {
|
|
283
284
|
}
|
|
284
285
|
}
|
|
285
286
|
return null;
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
-
return "" +
|
|
288
|
+
function r(c) {
|
|
289
|
+
return "" + c;
|
|
289
290
|
}
|
|
290
|
-
function t(
|
|
291
|
+
function t(c) {
|
|
291
292
|
try {
|
|
292
|
-
|
|
293
|
-
var
|
|
293
|
+
r(c);
|
|
294
|
+
var h = !1;
|
|
294
295
|
} catch {
|
|
295
|
-
|
|
296
|
+
h = !0;
|
|
296
297
|
}
|
|
297
|
-
if (
|
|
298
|
-
|
|
299
|
-
var p =
|
|
298
|
+
if (h) {
|
|
299
|
+
h = console;
|
|
300
|
+
var p = h.error, $ = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
300
301
|
return p.call(
|
|
301
|
-
|
|
302
|
+
h,
|
|
302
303
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
303
|
-
|
|
304
|
-
),
|
|
304
|
+
$
|
|
305
|
+
), r(c);
|
|
305
306
|
}
|
|
306
307
|
}
|
|
307
|
-
function a(
|
|
308
|
-
if (
|
|
309
|
-
if (typeof
|
|
308
|
+
function a(c) {
|
|
309
|
+
if (c === C) return "<>";
|
|
310
|
+
if (typeof c == "object" && c !== null && c.$$typeof === w)
|
|
310
311
|
return "<...>";
|
|
311
312
|
try {
|
|
312
|
-
var
|
|
313
|
-
return
|
|
313
|
+
var h = e(c);
|
|
314
|
+
return h ? "<" + h + ">" : "<...>";
|
|
314
315
|
} catch {
|
|
315
316
|
return "<...>";
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
|
-
function
|
|
319
|
-
var
|
|
320
|
-
return
|
|
319
|
+
function n() {
|
|
320
|
+
var c = A.A;
|
|
321
|
+
return c === null ? null : c.getOwner();
|
|
321
322
|
}
|
|
322
323
|
function o() {
|
|
323
324
|
return Error("react-stack-top-frame");
|
|
324
325
|
}
|
|
325
|
-
function
|
|
326
|
-
if (
|
|
327
|
-
var
|
|
328
|
-
if (
|
|
326
|
+
function l(c) {
|
|
327
|
+
if (q.call(c, "key")) {
|
|
328
|
+
var h = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
329
|
+
if (h && h.isReactWarning) return !1;
|
|
329
330
|
}
|
|
330
|
-
return
|
|
331
|
+
return c.key !== void 0;
|
|
331
332
|
}
|
|
332
|
-
function c
|
|
333
|
+
function i(c, h) {
|
|
333
334
|
function p() {
|
|
334
|
-
|
|
335
|
+
Q || (Q = !0, console.error(
|
|
335
336
|
"%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)",
|
|
336
|
-
|
|
337
|
+
h
|
|
337
338
|
));
|
|
338
339
|
}
|
|
339
|
-
p.isReactWarning = !0, Object.defineProperty(
|
|
340
|
+
p.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
340
341
|
get: p,
|
|
341
342
|
configurable: !0
|
|
342
343
|
});
|
|
343
344
|
}
|
|
344
345
|
function u() {
|
|
345
|
-
var
|
|
346
|
-
return
|
|
346
|
+
var c = e(this.type);
|
|
347
|
+
return ne[c] || (ne[c] = !0, console.error(
|
|
347
348
|
"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."
|
|
348
|
-
)),
|
|
349
|
+
)), c = this.props.ref, c !== void 0 ? c : null;
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
-
return p =
|
|
351
|
+
function f(c, h, p, $, L, z, ce, K) {
|
|
352
|
+
return p = z.ref, c = {
|
|
352
353
|
$$typeof: g,
|
|
353
|
-
type:
|
|
354
|
-
key:
|
|
355
|
-
props:
|
|
356
|
-
_owner:
|
|
357
|
-
}, (p !== void 0 ? p : null) !== null ? Object.defineProperty(
|
|
354
|
+
type: c,
|
|
355
|
+
key: h,
|
|
356
|
+
props: z,
|
|
357
|
+
_owner: L
|
|
358
|
+
}, (p !== void 0 ? p : null) !== null ? Object.defineProperty(c, "ref", {
|
|
358
359
|
enumerable: !1,
|
|
359
360
|
get: u
|
|
360
|
-
}) : Object.defineProperty(
|
|
361
|
+
}) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
361
362
|
configurable: !1,
|
|
362
363
|
enumerable: !1,
|
|
363
364
|
writable: !0,
|
|
364
365
|
value: 0
|
|
365
|
-
}), Object.defineProperty(
|
|
366
|
+
}), Object.defineProperty(c, "_debugInfo", {
|
|
366
367
|
configurable: !1,
|
|
367
368
|
enumerable: !1,
|
|
368
369
|
writable: !0,
|
|
369
370
|
value: null
|
|
370
|
-
}), Object.defineProperty(
|
|
371
|
+
}), Object.defineProperty(c, "_debugStack", {
|
|
371
372
|
configurable: !1,
|
|
372
373
|
enumerable: !1,
|
|
373
374
|
writable: !0,
|
|
374
|
-
value:
|
|
375
|
-
}), Object.defineProperty(
|
|
375
|
+
value: ce
|
|
376
|
+
}), Object.defineProperty(c, "_debugTask", {
|
|
376
377
|
configurable: !1,
|
|
377
378
|
enumerable: !1,
|
|
378
379
|
writable: !0,
|
|
379
|
-
value:
|
|
380
|
-
}), Object.freeze && (Object.freeze(
|
|
380
|
+
value: K
|
|
381
|
+
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
381
382
|
}
|
|
382
|
-
function d(
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
385
|
-
if (
|
|
386
|
-
if (fe(
|
|
387
|
-
for (
|
|
388
|
-
m(
|
|
389
|
-
Object.freeze && Object.freeze(
|
|
383
|
+
function d(c, h, p, $, L, z, ce, K) {
|
|
384
|
+
var N = h.children;
|
|
385
|
+
if (N !== void 0)
|
|
386
|
+
if ($)
|
|
387
|
+
if (fe(N)) {
|
|
388
|
+
for ($ = 0; $ < N.length; $++)
|
|
389
|
+
m(N[$]);
|
|
390
|
+
Object.freeze && Object.freeze(N);
|
|
390
391
|
} else
|
|
391
392
|
console.error(
|
|
392
393
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
393
394
|
);
|
|
394
|
-
else m(
|
|
395
|
-
if (
|
|
396
|
-
|
|
397
|
-
var
|
|
398
|
-
return
|
|
395
|
+
else m(N);
|
|
396
|
+
if (q.call(h, "key")) {
|
|
397
|
+
N = e(c);
|
|
398
|
+
var B = Object.keys(h).filter(function(xe) {
|
|
399
|
+
return xe !== "key";
|
|
399
400
|
});
|
|
400
|
-
|
|
401
|
+
$ = 0 < B.length ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}", le[N + $] || (B = 0 < B.length ? "{" + B.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
401
402
|
`A props object containing a "key" prop is being spread into JSX:
|
|
402
403
|
let props = %s;
|
|
403
404
|
<%s {...props} />
|
|
404
405
|
React keys must be passed directly to JSX without using spread:
|
|
405
406
|
let props = %s;
|
|
406
407
|
<%s key={someKey} {...props} />`,
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
),
|
|
408
|
+
$,
|
|
409
|
+
N,
|
|
410
|
+
B,
|
|
411
|
+
N
|
|
412
|
+
), le[N + $] = !0);
|
|
412
413
|
}
|
|
413
|
-
if (
|
|
414
|
+
if (N = null, p !== void 0 && (t(p), N = "" + p), l(h) && (t(h.key), N = "" + h.key), "key" in h) {
|
|
414
415
|
p = {};
|
|
415
|
-
for (var
|
|
416
|
-
|
|
417
|
-
} else p =
|
|
418
|
-
return
|
|
416
|
+
for (var V in h)
|
|
417
|
+
V !== "key" && (p[V] = h[V]);
|
|
418
|
+
} else p = h;
|
|
419
|
+
return N && i(
|
|
419
420
|
p,
|
|
420
|
-
typeof
|
|
421
|
-
),
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
421
|
+
typeof c == "function" ? c.displayName || c.name || "Unknown" : c
|
|
422
|
+
), f(
|
|
423
|
+
c,
|
|
424
|
+
N,
|
|
425
|
+
z,
|
|
426
|
+
L,
|
|
427
|
+
n(),
|
|
427
428
|
p,
|
|
428
|
-
|
|
429
|
-
|
|
429
|
+
ce,
|
|
430
|
+
K
|
|
430
431
|
);
|
|
431
432
|
}
|
|
432
|
-
function m(
|
|
433
|
-
typeof
|
|
433
|
+
function m(c) {
|
|
434
|
+
typeof c == "object" && c !== null && c.$$typeof === g && c._store && (c._store.validated = 1);
|
|
434
435
|
}
|
|
435
|
-
var
|
|
436
|
+
var x = X, g = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), I = Symbol.for("react.consumer"), k = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), A = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, fe = Array.isArray, Z = console.createTask ? console.createTask : function() {
|
|
436
437
|
return null;
|
|
437
438
|
};
|
|
438
|
-
|
|
439
|
-
"react-stack-bottom-frame": function(
|
|
440
|
-
return
|
|
439
|
+
x = {
|
|
440
|
+
"react-stack-bottom-frame": function(c) {
|
|
441
|
+
return c();
|
|
441
442
|
}
|
|
442
443
|
};
|
|
443
|
-
var
|
|
444
|
-
|
|
444
|
+
var Q, ne = {}, G = x["react-stack-bottom-frame"].bind(
|
|
445
|
+
x,
|
|
445
446
|
o
|
|
446
|
-
)(),
|
|
447
|
-
|
|
448
|
-
var
|
|
447
|
+
)(), oe = Z(a(o)), le = {};
|
|
448
|
+
re.Fragment = C, re.jsx = function(c, h, p, $, L) {
|
|
449
|
+
var z = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
449
450
|
return d(
|
|
450
|
-
|
|
451
|
-
|
|
451
|
+
c,
|
|
452
|
+
h,
|
|
452
453
|
p,
|
|
453
454
|
!1,
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
455
|
+
$,
|
|
456
|
+
L,
|
|
457
|
+
z ? Error("react-stack-top-frame") : G,
|
|
458
|
+
z ? Z(a(c)) : oe
|
|
458
459
|
);
|
|
459
|
-
},
|
|
460
|
-
var
|
|
460
|
+
}, re.jsxs = function(c, h, p, $, L) {
|
|
461
|
+
var z = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
461
462
|
return d(
|
|
462
|
-
|
|
463
|
-
|
|
463
|
+
c,
|
|
464
|
+
h,
|
|
464
465
|
p,
|
|
465
466
|
!0,
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
467
|
+
$,
|
|
468
|
+
L,
|
|
469
|
+
z ? Error("react-stack-top-frame") : G,
|
|
470
|
+
z ? Z(a(c)) : oe
|
|
470
471
|
);
|
|
471
472
|
};
|
|
472
|
-
}()),
|
|
473
|
+
}()), re;
|
|
473
474
|
}
|
|
474
|
-
var
|
|
475
|
-
function
|
|
476
|
-
return
|
|
475
|
+
var Ve;
|
|
476
|
+
function mr() {
|
|
477
|
+
return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? ie.exports = dr() : ie.exports = ur()), ie.exports;
|
|
477
478
|
}
|
|
478
|
-
var
|
|
479
|
-
const
|
|
479
|
+
var s = mr();
|
|
480
|
+
const fr = {
|
|
480
481
|
bg: "bg-indigo-600",
|
|
481
482
|
activeBg: "bg-indigo-700",
|
|
482
483
|
text: "text-indigo-200",
|
|
@@ -484,66 +485,66 @@ const Oe = {
|
|
|
484
485
|
hoverBg: "hover:bg-indigo-700",
|
|
485
486
|
hoverText: "hover:text-white"
|
|
486
487
|
};
|
|
487
|
-
function
|
|
488
|
-
return
|
|
488
|
+
function _(...e) {
|
|
489
|
+
return e.filter(Boolean).join(" ");
|
|
489
490
|
}
|
|
490
|
-
function
|
|
491
|
-
const [t, a] =
|
|
492
|
-
return /* @__PURE__ */
|
|
493
|
-
/* @__PURE__ */
|
|
491
|
+
function Re({ item: e, colorScheme: r }) {
|
|
492
|
+
const [t, a] = S(e.current || e.children?.some((o) => o.current)), n = e.children && e.children.length > 0;
|
|
493
|
+
return /* @__PURE__ */ s.jsxs("li", { children: [
|
|
494
|
+
/* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs(
|
|
494
495
|
"a",
|
|
495
496
|
{
|
|
496
|
-
href:
|
|
497
|
+
href: n ? void 0 : e.href,
|
|
497
498
|
onClick: (o) => {
|
|
498
|
-
|
|
499
|
+
n && (o.preventDefault(), a(!t));
|
|
499
500
|
},
|
|
500
|
-
className:
|
|
501
|
-
|
|
501
|
+
className: _(
|
|
502
|
+
e.current ? `${r.activeBg} ${r.activeText}` : `${r.text} ${r.hoverBg} ${r.hoverText}`,
|
|
502
503
|
"group flex items-center justify-between gap-x-3 rounded-md p-2 text-sm/6 font-semibold",
|
|
503
|
-
|
|
504
|
+
n ? "cursor-pointer" : ""
|
|
504
505
|
),
|
|
505
506
|
children: [
|
|
506
|
-
/* @__PURE__ */
|
|
507
|
-
/* @__PURE__ */
|
|
508
|
-
|
|
507
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-x-3", children: [
|
|
508
|
+
/* @__PURE__ */ s.jsx(
|
|
509
|
+
e.icon,
|
|
509
510
|
{
|
|
510
511
|
"aria-hidden": "true",
|
|
511
|
-
className:
|
|
512
|
-
|
|
512
|
+
className: _(
|
|
513
|
+
e.current ? r.activeText : `${r.text} group-${r.hoverText}`,
|
|
513
514
|
"size-6 shrink-0"
|
|
514
515
|
)
|
|
515
516
|
}
|
|
516
517
|
),
|
|
517
|
-
|
|
518
|
+
e.name
|
|
518
519
|
] }),
|
|
519
|
-
|
|
520
|
-
|
|
520
|
+
n && /* @__PURE__ */ s.jsx(
|
|
521
|
+
Ne,
|
|
521
522
|
{
|
|
522
|
-
className:
|
|
523
|
+
className: _(
|
|
523
524
|
"size-5 shrink-0 transition-transform",
|
|
524
525
|
t ? "rotate-180" : "",
|
|
525
|
-
|
|
526
|
+
e.current ? r.activeText : r.text
|
|
526
527
|
)
|
|
527
528
|
}
|
|
528
529
|
)
|
|
529
530
|
]
|
|
530
531
|
}
|
|
531
532
|
) }),
|
|
532
|
-
|
|
533
|
+
n && t && /* @__PURE__ */ s.jsx("ul", { className: "mt-1 ml-9 space-y-1", children: e.children.map((o) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
|
|
533
534
|
"a",
|
|
534
535
|
{
|
|
535
536
|
href: o.href,
|
|
536
|
-
className:
|
|
537
|
-
o.current ? `${
|
|
537
|
+
className: _(
|
|
538
|
+
o.current ? `${r.activeBg} ${r.activeText}` : `${r.text} ${r.hoverBg} ${r.hoverText}`,
|
|
538
539
|
"group flex gap-x-3 rounded-md p-2 text-sm/6 font-semibold"
|
|
539
540
|
),
|
|
540
541
|
children: [
|
|
541
|
-
/* @__PURE__ */
|
|
542
|
+
/* @__PURE__ */ s.jsx(
|
|
542
543
|
o.icon,
|
|
543
544
|
{
|
|
544
545
|
"aria-hidden": "true",
|
|
545
|
-
className:
|
|
546
|
-
o.current ?
|
|
546
|
+
className: _(
|
|
547
|
+
o.current ? r.activeText : `${r.text} group-${r.hoverText}`,
|
|
547
548
|
"size-5 shrink-0"
|
|
548
549
|
)
|
|
549
550
|
}
|
|
@@ -554,118 +555,118 @@ function ce({ item: r, colorScheme: s }) {
|
|
|
554
555
|
) }, o.name)) })
|
|
555
556
|
] });
|
|
556
557
|
}
|
|
557
|
-
function
|
|
558
|
-
const [
|
|
559
|
-
return /* @__PURE__ */
|
|
560
|
-
/* @__PURE__ */
|
|
561
|
-
/* @__PURE__ */
|
|
562
|
-
|
|
558
|
+
function js({ company: e, profile: r, navigation: t, colorScheme: a = fr }) {
|
|
559
|
+
const [n, o] = S(!1);
|
|
560
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsxs("div", { children: [
|
|
561
|
+
/* @__PURE__ */ s.jsxs(Qe, { open: n, onClose: o, className: "relative z-50 lg:hidden", children: [
|
|
562
|
+
/* @__PURE__ */ s.jsx(
|
|
563
|
+
Ke,
|
|
563
564
|
{
|
|
564
565
|
transition: !0,
|
|
565
566
|
className: "fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"
|
|
566
567
|
}
|
|
567
568
|
),
|
|
568
|
-
/* @__PURE__ */
|
|
569
|
-
|
|
569
|
+
/* @__PURE__ */ s.jsx("div", { className: "fixed inset-0 flex", children: /* @__PURE__ */ s.jsxs(
|
|
570
|
+
er,
|
|
570
571
|
{
|
|
571
572
|
transition: !0,
|
|
572
573
|
className: "relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",
|
|
573
574
|
children: [
|
|
574
|
-
/* @__PURE__ */
|
|
575
|
-
/* @__PURE__ */
|
|
576
|
-
/* @__PURE__ */
|
|
575
|
+
/* @__PURE__ */ s.jsx(rr, { children: /* @__PURE__ */ s.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__ */ s.jsxs("button", { type: "button", onClick: () => o(!1), className: "-m-2.5 p-2.5", children: [
|
|
576
|
+
/* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Close sidebar" }),
|
|
577
|
+
/* @__PURE__ */ s.jsx(sr, { "aria-hidden": "true", className: "size-6 text-white" })
|
|
577
578
|
] }) }) }),
|
|
578
|
-
/* @__PURE__ */
|
|
579
|
-
/* @__PURE__ */
|
|
579
|
+
/* @__PURE__ */ s.jsxs("div", { className: _("flex grow flex-col gap-y-5 overflow-y-auto px-6 pb-2", a.bg), children: [
|
|
580
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ s.jsx(
|
|
580
581
|
"img",
|
|
581
582
|
{
|
|
582
|
-
alt:
|
|
583
|
-
src:
|
|
583
|
+
alt: e.name,
|
|
584
|
+
src: e.logo,
|
|
584
585
|
className: "h-8 w-auto"
|
|
585
586
|
}
|
|
586
587
|
) }),
|
|
587
|
-
/* @__PURE__ */
|
|
588
|
+
/* @__PURE__ */ s.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ s.jsx("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((l) => /* @__PURE__ */ s.jsx(Re, { item: l, colorScheme: a }, l.name)) }) }) }) })
|
|
588
589
|
] })
|
|
589
590
|
]
|
|
590
591
|
}
|
|
591
592
|
) })
|
|
592
593
|
] }),
|
|
593
|
-
/* @__PURE__ */
|
|
594
|
-
/* @__PURE__ */
|
|
594
|
+
/* @__PURE__ */ s.jsx("div", { className: "hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col", children: /* @__PURE__ */ s.jsxs("div", { className: _("flex grow flex-col gap-y-5 overflow-y-auto px-6", a.bg), children: [
|
|
595
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex h-16 shrink-0 items-center", children: /* @__PURE__ */ s.jsx(
|
|
595
596
|
"img",
|
|
596
597
|
{
|
|
597
|
-
alt:
|
|
598
|
-
src:
|
|
598
|
+
alt: e.name,
|
|
599
|
+
src: e.logo,
|
|
599
600
|
className: "h-8 w-auto"
|
|
600
601
|
}
|
|
601
602
|
) }),
|
|
602
|
-
/* @__PURE__ */
|
|
603
|
-
/* @__PURE__ */
|
|
604
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ s.jsx("nav", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ s.jsxs("ul", { role: "list", className: "flex flex-1 flex-col gap-y-7", children: [
|
|
604
|
+
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("ul", { role: "list", className: "-mx-2 space-y-1", children: t.map((l) => /* @__PURE__ */ s.jsx(Re, { item: l, colorScheme: a }, l.name)) }) }),
|
|
605
|
+
/* @__PURE__ */ s.jsx("li", { className: "-mx-6 mt-auto", children: /* @__PURE__ */ s.jsxs(
|
|
605
606
|
"a",
|
|
606
607
|
{
|
|
607
608
|
href: "#",
|
|
608
|
-
className:
|
|
609
|
+
className: _(
|
|
609
610
|
"flex items-center gap-x-4 px-6 py-3 text-sm/6 font-semibold",
|
|
610
611
|
a.activeText,
|
|
611
612
|
a.hoverBg
|
|
612
613
|
),
|
|
613
614
|
children: [
|
|
614
|
-
/* @__PURE__ */
|
|
615
|
+
/* @__PURE__ */ s.jsx(
|
|
615
616
|
"img",
|
|
616
617
|
{
|
|
617
|
-
alt:
|
|
618
|
-
src:
|
|
619
|
-
className:
|
|
618
|
+
alt: r.name,
|
|
619
|
+
src: r.image,
|
|
620
|
+
className: _("size-8 rounded-full", a.activeBg)
|
|
620
621
|
}
|
|
621
622
|
),
|
|
622
|
-
/* @__PURE__ */
|
|
623
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
624
|
+
/* @__PURE__ */ s.jsx("span", { "aria-hidden": "true", children: r.name })
|
|
624
625
|
]
|
|
625
626
|
}
|
|
626
627
|
) })
|
|
627
628
|
] }) })
|
|
628
629
|
] }) }),
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
-
/* @__PURE__ */
|
|
631
|
-
/* @__PURE__ */
|
|
632
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ s.jsxs("div", { className: _("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: [
|
|
631
|
+
/* @__PURE__ */ s.jsxs("button", { type: "button", onClick: () => o(!0), className: _("-m-2.5 p-2.5 lg:hidden", a.text), children: [
|
|
632
|
+
/* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Open sidebar" }),
|
|
633
|
+
/* @__PURE__ */ s.jsx(tr, { "aria-hidden": "true", className: "size-6" })
|
|
633
634
|
] }),
|
|
634
|
-
/* @__PURE__ */
|
|
635
|
-
/* @__PURE__ */
|
|
636
|
-
/* @__PURE__ */
|
|
637
|
-
/* @__PURE__ */
|
|
635
|
+
/* @__PURE__ */ s.jsx("div", { className: _("flex-1 text-sm/6 font-semibold", a.activeText), children: "Dashboard" }),
|
|
636
|
+
/* @__PURE__ */ s.jsxs("a", { href: "#", children: [
|
|
637
|
+
/* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Your profile" }),
|
|
638
|
+
/* @__PURE__ */ s.jsx(
|
|
638
639
|
"img",
|
|
639
640
|
{
|
|
640
|
-
alt:
|
|
641
|
-
src:
|
|
642
|
-
className:
|
|
641
|
+
alt: r.name,
|
|
642
|
+
src: r.image,
|
|
643
|
+
className: _("size-8 rounded-full", a.activeBg)
|
|
643
644
|
}
|
|
644
645
|
)
|
|
645
646
|
] })
|
|
646
647
|
] })
|
|
647
648
|
] }) });
|
|
648
649
|
}
|
|
649
|
-
const
|
|
650
|
+
const Le = (e) => e.replace("--color-", "bg-"), xr = ({ name: e, cssVar: r, value: t }) => {
|
|
650
651
|
const a = `rgb(${t})`;
|
|
651
|
-
return /* @__PURE__ */
|
|
652
|
-
/* @__PURE__ */
|
|
652
|
+
return /* @__PURE__ */ s.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: [
|
|
653
|
+
/* @__PURE__ */ s.jsx(
|
|
653
654
|
"div",
|
|
654
655
|
{
|
|
655
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
656
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Le(r)}`
|
|
656
657
|
}
|
|
657
658
|
),
|
|
658
|
-
/* @__PURE__ */
|
|
659
|
-
/* @__PURE__ */
|
|
660
|
-
/* @__PURE__ */
|
|
661
|
-
/* @__PURE__ */
|
|
659
|
+
/* @__PURE__ */ s.jsxs("div", { className: "text-center", children: [
|
|
660
|
+
/* @__PURE__ */ s.jsx("div", { className: "text-sm font-medium text-text-primary", children: e }),
|
|
661
|
+
/* @__PURE__ */ s.jsx("div", { className: "text-xs text-text-muted font-mono", children: r }),
|
|
662
|
+
/* @__PURE__ */ s.jsx("div", { className: "text-xs text-text-secondary", children: a })
|
|
662
663
|
] })
|
|
663
664
|
] });
|
|
664
|
-
},
|
|
665
|
-
/* @__PURE__ */
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
] }),
|
|
668
|
-
const
|
|
665
|
+
}, Ee = ({ title: e, colors: r }) => /* @__PURE__ */ s.jsxs("div", { className: "space-y-4", children: [
|
|
666
|
+
/* @__PURE__ */ s.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: e }),
|
|
667
|
+
/* @__PURE__ */ s.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: r.map((t) => /* @__PURE__ */ s.jsx(xr, { ...t }, t.name)) })
|
|
668
|
+
] }), gr = () => {
|
|
669
|
+
const e = [
|
|
669
670
|
{
|
|
670
671
|
title: "Success Colors (Green)",
|
|
671
672
|
colors: [
|
|
@@ -714,7 +715,7 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
|
|
|
714
715
|
{ name: "950", cssVar: "--color-error-950", value: "69 10 10" }
|
|
715
716
|
]
|
|
716
717
|
}
|
|
717
|
-
],
|
|
718
|
+
], r = [
|
|
718
719
|
{
|
|
719
720
|
title: "Reseda Green",
|
|
720
721
|
colors: [
|
|
@@ -875,92 +876,92 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
|
|
|
875
876
|
{ name: "Border", cssVar: "--color-border" },
|
|
876
877
|
{ name: "Border Subtle", cssVar: "--color-border-subtle" }
|
|
877
878
|
];
|
|
878
|
-
return /* @__PURE__ */
|
|
879
|
-
/* @__PURE__ */
|
|
880
|
-
/* @__PURE__ */
|
|
881
|
-
/* @__PURE__ */
|
|
879
|
+
return /* @__PURE__ */ s.jsxs("div", { className: "p-8 space-y-8 bg-background min-h-screen", children: [
|
|
880
|
+
/* @__PURE__ */ s.jsxs("div", { className: "text-center space-y-2", children: [
|
|
881
|
+
/* @__PURE__ */ s.jsx("h1", { className: "text-3xl font-bold text-text-primary", children: "AceMyJob Color Palette" }),
|
|
882
|
+
/* @__PURE__ */ s.jsx("p", { className: "text-text-secondary", children: "Your complete design system color reference" })
|
|
882
883
|
] }),
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
/* @__PURE__ */
|
|
886
|
-
/* @__PURE__ */
|
|
887
|
-
/* @__PURE__ */
|
|
888
|
-
/* @__PURE__ */
|
|
884
|
+
r.map((a) => /* @__PURE__ */ s.jsx(Ee, { ...a }, a.title)),
|
|
885
|
+
e.map((a) => /* @__PURE__ */ s.jsx(Ee, { ...a }, a.title)),
|
|
886
|
+
/* @__PURE__ */ s.jsxs("div", { className: "space-y-4", children: [
|
|
887
|
+
/* @__PURE__ */ s.jsx("h3", { className: "text-lg font-semibold text-text-primary border-b border-border-subtle pb-2", children: "Semantic Colors (Theme-aware)" }),
|
|
888
|
+
/* @__PURE__ */ s.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4", children: t.map((a) => /* @__PURE__ */ s.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: [
|
|
889
|
+
/* @__PURE__ */ s.jsx(
|
|
889
890
|
"div",
|
|
890
891
|
{
|
|
891
|
-
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${
|
|
892
|
+
className: `w-16 h-16 rounded-lg border border-border shadow-sm ${Le(a.cssVar)}`
|
|
892
893
|
}
|
|
893
894
|
),
|
|
894
|
-
/* @__PURE__ */
|
|
895
|
-
/* @__PURE__ */
|
|
896
|
-
/* @__PURE__ */
|
|
895
|
+
/* @__PURE__ */ s.jsxs("div", { className: "text-center", children: [
|
|
896
|
+
/* @__PURE__ */ s.jsx("div", { className: "text-sm font-medium text-text-primary", children: a.name }),
|
|
897
|
+
/* @__PURE__ */ s.jsx("div", { className: "text-xs text-text-muted font-mono", children: a.cssVar })
|
|
897
898
|
] })
|
|
898
899
|
] }, a.name)) })
|
|
899
900
|
] }),
|
|
900
|
-
/* @__PURE__ */
|
|
901
|
+
/* @__PURE__ */ s.jsx("div", { className: "text-center pt-8 border-t border-border-subtle", children: /* @__PURE__ */ s.jsx("p", { className: "text-text-muted text-sm", children: "Toggle between light and dark themes to see how semantic colors adapt" }) })
|
|
901
902
|
] });
|
|
902
|
-
},
|
|
903
|
-
children:
|
|
904
|
-
defaultTheme:
|
|
903
|
+
}, Me = ue(void 0), vr = ({
|
|
904
|
+
children: e,
|
|
905
|
+
defaultTheme: r = "system",
|
|
905
906
|
storageKey: t = "acemyjob-ui-theme"
|
|
906
907
|
}) => {
|
|
907
|
-
const [a,
|
|
908
|
-
|
|
908
|
+
const [a, n] = S(r), [o, l] = S("light"), [i, u] = S(!1);
|
|
909
|
+
M(() => {
|
|
909
910
|
const d = localStorage.getItem(t);
|
|
910
|
-
d &&
|
|
911
|
-
}, [t]),
|
|
912
|
-
if (!
|
|
911
|
+
d && n(d), u(!0);
|
|
912
|
+
}, [t]), M(() => {
|
|
913
|
+
if (!i) return;
|
|
913
914
|
const d = window.document.documentElement, m = () => {
|
|
914
|
-
let
|
|
915
|
-
a === "system" ?
|
|
915
|
+
let x;
|
|
916
|
+
a === "system" ? x = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : x = a, l(x), d.classList.remove("light", "dark"), d.classList.add(x);
|
|
916
917
|
};
|
|
917
918
|
if (m(), a === "system") {
|
|
918
|
-
const
|
|
919
|
-
return
|
|
919
|
+
const x = window.matchMedia("(prefers-color-scheme: dark)"), g = () => m();
|
|
920
|
+
return x.addEventListener("change", g), () => x.removeEventListener("change", g);
|
|
920
921
|
}
|
|
921
|
-
}, [a,
|
|
922
|
-
const
|
|
922
|
+
}, [a, i]);
|
|
923
|
+
const f = {
|
|
923
924
|
theme: a,
|
|
924
925
|
setTheme: (d) => {
|
|
925
|
-
localStorage.setItem(t, d),
|
|
926
|
+
localStorage.setItem(t, d), n(d);
|
|
926
927
|
},
|
|
927
928
|
resolvedTheme: o
|
|
928
929
|
};
|
|
929
|
-
return /* @__PURE__ */
|
|
930
|
-
},
|
|
931
|
-
const
|
|
932
|
-
if (
|
|
930
|
+
return /* @__PURE__ */ s.jsx(Me.Provider, { value: f, children: e });
|
|
931
|
+
}, hr = () => {
|
|
932
|
+
const e = te(Me);
|
|
933
|
+
if (e === void 0)
|
|
933
934
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
934
|
-
return
|
|
935
|
-
},
|
|
936
|
-
const { theme:
|
|
937
|
-
if (
|
|
935
|
+
return e;
|
|
936
|
+
}, br = () => {
|
|
937
|
+
const { theme: e, setTheme: r } = hr(), [t, a] = S(!1);
|
|
938
|
+
if (M(() => {
|
|
938
939
|
a(!0);
|
|
939
940
|
}, []), !t)
|
|
940
|
-
return /* @__PURE__ */
|
|
941
|
+
return /* @__PURE__ */ s.jsxs(
|
|
941
942
|
"button",
|
|
942
943
|
{
|
|
943
944
|
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",
|
|
944
945
|
"aria-label": "Loading theme toggle",
|
|
945
946
|
children: [
|
|
946
|
-
/* @__PURE__ */
|
|
947
|
-
/* @__PURE__ */
|
|
947
|
+
/* @__PURE__ */ s.jsx("div", { className: "w-4 h-4 animate-pulse bg-text-muted rounded" }),
|
|
948
|
+
/* @__PURE__ */ s.jsx("span", { className: "hidden sm:inline", children: "Loading..." })
|
|
948
949
|
]
|
|
949
950
|
}
|
|
950
951
|
);
|
|
951
|
-
const
|
|
952
|
-
|
|
952
|
+
const n = () => {
|
|
953
|
+
r(e === "light" ? "dark" : e === "dark" ? "system" : "light");
|
|
953
954
|
}, o = () => {
|
|
954
|
-
switch (
|
|
955
|
+
switch (e) {
|
|
955
956
|
case "light":
|
|
956
|
-
return /* @__PURE__ */
|
|
957
|
+
return /* @__PURE__ */ s.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ s.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" }) });
|
|
957
958
|
case "dark":
|
|
958
|
-
return /* @__PURE__ */
|
|
959
|
+
return /* @__PURE__ */ s.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ s.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" }) });
|
|
959
960
|
case "system":
|
|
960
|
-
return /* @__PURE__ */
|
|
961
|
+
return /* @__PURE__ */ s.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ s.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" }) });
|
|
961
962
|
}
|
|
962
|
-
},
|
|
963
|
-
switch (
|
|
963
|
+
}, l = () => {
|
|
964
|
+
switch (e) {
|
|
964
965
|
case "light":
|
|
965
966
|
return "Light";
|
|
966
967
|
case "dark":
|
|
@@ -969,22 +970,22 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
|
|
|
969
970
|
return "System";
|
|
970
971
|
}
|
|
971
972
|
};
|
|
972
|
-
return /* @__PURE__ */
|
|
973
|
+
return /* @__PURE__ */ s.jsxs(
|
|
973
974
|
"button",
|
|
974
975
|
{
|
|
975
|
-
onClick:
|
|
976
|
+
onClick: n,
|
|
976
977
|
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",
|
|
977
|
-
"aria-label": `Current theme: ${
|
|
978
|
+
"aria-label": `Current theme: ${l()}. Click to cycle themes.`,
|
|
978
979
|
children: [
|
|
979
980
|
o(),
|
|
980
|
-
/* @__PURE__ */
|
|
981
|
+
/* @__PURE__ */ s.jsx("span", { className: "hidden sm:inline", children: l() })
|
|
981
982
|
]
|
|
982
983
|
}
|
|
983
984
|
);
|
|
984
|
-
},
|
|
985
|
-
/* @__PURE__ */
|
|
986
|
-
/* @__PURE__ */
|
|
987
|
-
] }),
|
|
985
|
+
}, pr = () => /* @__PURE__ */ s.jsxs("div", { className: "relative", children: [
|
|
986
|
+
/* @__PURE__ */ s.jsx("div", { className: "fixed top-4 right-4 z-10", children: /* @__PURE__ */ s.jsx(br, {}) }),
|
|
987
|
+
/* @__PURE__ */ s.jsx(gr, {})
|
|
988
|
+
] }), Ns = () => /* @__PURE__ */ s.jsx(vr, { defaultTheme: "system", storageKey: "acemyjob-demo-theme", children: /* @__PURE__ */ s.jsx(pr, {}) }), $e = {
|
|
988
989
|
variant: {
|
|
989
990
|
default: "bg-reseda-green-500 text-white hover:bg-reseda-green-600 focus-visible:ring-reseda-green-500",
|
|
990
991
|
destructive: "bg-error-500 text-white hover:bg-error-600 focus-visible:ring-error-500",
|
|
@@ -1002,35 +1003,35 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
|
|
|
1002
1003
|
xl: "h-12 rounded-md px-10 text-base",
|
|
1003
1004
|
icon: "h-10 w-10"
|
|
1004
1005
|
}
|
|
1005
|
-
},
|
|
1006
|
+
}, wr = "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", yr = (...e) => e.filter(Boolean).join(" "), U = X.forwardRef(
|
|
1006
1007
|
({
|
|
1007
|
-
className:
|
|
1008
|
-
variant:
|
|
1008
|
+
className: e,
|
|
1009
|
+
variant: r = "default",
|
|
1009
1010
|
size: t = "default",
|
|
1010
1011
|
fullWidth: a = !1,
|
|
1011
|
-
loading:
|
|
1012
|
+
loading: n = !1,
|
|
1012
1013
|
leftIcon: o,
|
|
1013
|
-
rightIcon:
|
|
1014
|
-
children:
|
|
1014
|
+
rightIcon: l,
|
|
1015
|
+
children: i,
|
|
1015
1016
|
disabled: u,
|
|
1016
|
-
...
|
|
1017
|
+
...f
|
|
1017
1018
|
}, d) => {
|
|
1018
|
-
const m = u ||
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1019
|
+
const m = u || n, x = yr(
|
|
1020
|
+
wr,
|
|
1021
|
+
$e.variant[r],
|
|
1022
|
+
$e.size[t],
|
|
1022
1023
|
a ? "w-full" : "",
|
|
1023
|
-
|
|
1024
|
+
e
|
|
1024
1025
|
);
|
|
1025
|
-
return /* @__PURE__ */
|
|
1026
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1026
1027
|
"button",
|
|
1027
1028
|
{
|
|
1028
|
-
className:
|
|
1029
|
+
className: x,
|
|
1029
1030
|
ref: d,
|
|
1030
1031
|
disabled: m,
|
|
1031
|
-
...
|
|
1032
|
+
...f,
|
|
1032
1033
|
children: [
|
|
1033
|
-
|
|
1034
|
+
n && /* @__PURE__ */ s.jsxs(
|
|
1034
1035
|
"svg",
|
|
1035
1036
|
{
|
|
1036
1037
|
className: "mr-2 h-4 w-4 animate-spin",
|
|
@@ -1038,7 +1039,7 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
|
|
|
1038
1039
|
fill: "none",
|
|
1039
1040
|
viewBox: "0 0 24 24",
|
|
1040
1041
|
children: [
|
|
1041
|
-
/* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ s.jsx(
|
|
1042
1043
|
"circle",
|
|
1043
1044
|
{
|
|
1044
1045
|
className: "opacity-25",
|
|
@@ -1049,7 +1050,7 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
|
|
|
1049
1050
|
strokeWidth: "4"
|
|
1050
1051
|
}
|
|
1051
1052
|
),
|
|
1052
|
-
/* @__PURE__ */
|
|
1053
|
+
/* @__PURE__ */ s.jsx(
|
|
1053
1054
|
"path",
|
|
1054
1055
|
{
|
|
1055
1056
|
className: "opacity-75",
|
|
@@ -1060,16 +1061,16 @@ const me = (r) => r.replace("--color-", "bg-"), Be = ({ name: r, cssVar: s, valu
|
|
|
1060
1061
|
]
|
|
1061
1062
|
}
|
|
1062
1063
|
),
|
|
1063
|
-
!
|
|
1064
|
-
|
|
1065
|
-
!
|
|
1064
|
+
!n && o && /* @__PURE__ */ s.jsx("span", { className: "mr-2", children: o }),
|
|
1065
|
+
i,
|
|
1066
|
+
!n && l && /* @__PURE__ */ s.jsx("span", { className: "ml-2", children: l })
|
|
1066
1067
|
]
|
|
1067
1068
|
}
|
|
1068
1069
|
);
|
|
1069
1070
|
}
|
|
1070
1071
|
);
|
|
1071
|
-
|
|
1072
|
-
const
|
|
1072
|
+
U.displayName = "Button";
|
|
1073
|
+
const De = {
|
|
1073
1074
|
provider: {
|
|
1074
1075
|
linkedin: "bg-[#0077B5] hover:bg-[#005885] text-white focus-visible:ring-[#0077B5]"
|
|
1075
1076
|
},
|
|
@@ -1078,36 +1079,36 @@ const ue = {
|
|
|
1078
1079
|
right: "flex-row-reverse",
|
|
1079
1080
|
only: "justify-center"
|
|
1080
1081
|
}
|
|
1081
|
-
},
|
|
1082
|
+
}, jr = (...e) => e.filter(Boolean).join(" "), Nr = X.forwardRef(
|
|
1082
1083
|
({
|
|
1083
|
-
className:
|
|
1084
|
-
provider:
|
|
1084
|
+
className: e,
|
|
1085
|
+
provider: r,
|
|
1085
1086
|
iconPosition: t = "left",
|
|
1086
1087
|
icon: a,
|
|
1087
|
-
showText:
|
|
1088
|
+
showText: n = !0,
|
|
1088
1089
|
children: o,
|
|
1089
|
-
size:
|
|
1090
|
-
fullWidth:
|
|
1090
|
+
size: l = "default",
|
|
1091
|
+
fullWidth: i = !0,
|
|
1091
1092
|
...u
|
|
1092
|
-
},
|
|
1093
|
+
}, f) => {
|
|
1093
1094
|
const m = a || {
|
|
1094
|
-
linkedin: /* @__PURE__ */
|
|
1095
|
-
}[
|
|
1095
|
+
linkedin: /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.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" }) })
|
|
1096
|
+
}[r], g = o || (n ? {
|
|
1096
1097
|
linkedin: "Continue with LinkedIn"
|
|
1097
|
-
}[
|
|
1098
|
+
}[r] : ""), j = jr(
|
|
1098
1099
|
"relative overflow-hidden transition-all duration-200",
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1100
|
+
De.provider[r],
|
|
1101
|
+
De.iconPosition[t],
|
|
1102
|
+
e
|
|
1102
1103
|
);
|
|
1103
|
-
return /* @__PURE__ */
|
|
1104
|
-
|
|
1104
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1105
|
+
U,
|
|
1105
1106
|
{
|
|
1106
|
-
ref:
|
|
1107
|
+
ref: f,
|
|
1107
1108
|
variant: "none",
|
|
1108
|
-
className:
|
|
1109
|
-
size:
|
|
1110
|
-
fullWidth:
|
|
1109
|
+
className: j,
|
|
1110
|
+
size: l,
|
|
1111
|
+
fullWidth: i,
|
|
1111
1112
|
leftIcon: t === "left" ? m : void 0,
|
|
1112
1113
|
rightIcon: t === "right" ? m : void 0,
|
|
1113
1114
|
...u,
|
|
@@ -1119,104 +1120,104 @@ const ue = {
|
|
|
1119
1120
|
);
|
|
1120
1121
|
}
|
|
1121
1122
|
);
|
|
1122
|
-
|
|
1123
|
-
function
|
|
1124
|
-
children:
|
|
1125
|
-
variant:
|
|
1123
|
+
Nr.displayName = "SocialButton";
|
|
1124
|
+
function Cs({
|
|
1125
|
+
children: e,
|
|
1126
|
+
variant: r = "default",
|
|
1126
1127
|
isActive: t = !1,
|
|
1127
1128
|
onClick: a,
|
|
1128
|
-
className:
|
|
1129
|
+
className: n = ""
|
|
1129
1130
|
}) {
|
|
1130
|
-
const o = "rounded-lg transition-all",
|
|
1131
|
+
const o = "rounded-lg transition-all", l = {
|
|
1131
1132
|
default: "border border-border p-4",
|
|
1132
1133
|
surface: "bg-surface-variant p-4",
|
|
1133
1134
|
elevated: "bg-surface shadow-md p-6",
|
|
1134
1135
|
interactive: `border-2 p-4 cursor-pointer ${t ? "border-success-500 bg-success-50" : "border-border bg-surface hover:border-border-subtle"}`
|
|
1135
1136
|
};
|
|
1136
|
-
return /* @__PURE__ */
|
|
1137
|
+
return /* @__PURE__ */ s.jsx(
|
|
1137
1138
|
"div",
|
|
1138
1139
|
{
|
|
1139
|
-
className: `${o} ${
|
|
1140
|
+
className: `${o} ${l[r]} ${n}`,
|
|
1140
1141
|
onClick: a,
|
|
1141
1142
|
role: a ? "button" : void 0,
|
|
1142
1143
|
tabIndex: a ? 0 : void 0,
|
|
1143
|
-
onKeyDown: a ? (
|
|
1144
|
-
(
|
|
1144
|
+
onKeyDown: a ? (i) => {
|
|
1145
|
+
(i.key === "Enter" || i.key === " ") && a();
|
|
1145
1146
|
} : void 0,
|
|
1146
|
-
children:
|
|
1147
|
+
children: e
|
|
1147
1148
|
}
|
|
1148
1149
|
);
|
|
1149
1150
|
}
|
|
1150
|
-
function
|
|
1151
|
-
title:
|
|
1152
|
-
children:
|
|
1151
|
+
function ks({
|
|
1152
|
+
title: e,
|
|
1153
|
+
children: r,
|
|
1153
1154
|
subtitle: t,
|
|
1154
1155
|
spacing: a = "normal",
|
|
1155
|
-
className:
|
|
1156
|
+
className: n = ""
|
|
1156
1157
|
}) {
|
|
1157
1158
|
const o = {
|
|
1158
1159
|
compact: "space-y-3",
|
|
1159
1160
|
normal: "space-y-6",
|
|
1160
1161
|
spacious: "space-y-8"
|
|
1161
1162
|
};
|
|
1162
|
-
return /* @__PURE__ */
|
|
1163
|
-
/* @__PURE__ */
|
|
1164
|
-
/* @__PURE__ */
|
|
1165
|
-
t && /* @__PURE__ */
|
|
1163
|
+
return /* @__PURE__ */ s.jsxs("div", { className: `${o[a]} ${n}`, children: [
|
|
1164
|
+
/* @__PURE__ */ s.jsxs("div", { children: [
|
|
1165
|
+
/* @__PURE__ */ s.jsx("h3", { className: "text-lg font-semibold text-text-primary", children: e }),
|
|
1166
|
+
t && /* @__PURE__ */ s.jsx("p", { className: "text-sm text-text-secondary mt-1", children: t })
|
|
1166
1167
|
] }),
|
|
1167
|
-
|
|
1168
|
+
r
|
|
1168
1169
|
] });
|
|
1169
1170
|
}
|
|
1170
|
-
function
|
|
1171
|
-
variant:
|
|
1172
|
-
title:
|
|
1171
|
+
function Ts({
|
|
1172
|
+
variant: e,
|
|
1173
|
+
title: r,
|
|
1173
1174
|
message: t,
|
|
1174
1175
|
icon: a,
|
|
1175
|
-
onClose:
|
|
1176
|
+
onClose: n,
|
|
1176
1177
|
className: o = ""
|
|
1177
1178
|
}) {
|
|
1178
|
-
const
|
|
1179
|
+
const i = {
|
|
1179
1180
|
success: {
|
|
1180
1181
|
bg: "bg-success-50",
|
|
1181
1182
|
border: "border-success-200",
|
|
1182
1183
|
text: "text-success-700",
|
|
1183
|
-
icon: /* @__PURE__ */
|
|
1184
|
+
icon: /* @__PURE__ */ s.jsx(lr, { className: "h-5 w-5" })
|
|
1184
1185
|
},
|
|
1185
1186
|
error: {
|
|
1186
1187
|
bg: "bg-error-50",
|
|
1187
1188
|
border: "border-error-200",
|
|
1188
1189
|
text: "text-error-700",
|
|
1189
|
-
icon: /* @__PURE__ */
|
|
1190
|
+
icon: /* @__PURE__ */ s.jsx(or, { className: "h-5 w-5" })
|
|
1190
1191
|
},
|
|
1191
1192
|
warning: {
|
|
1192
1193
|
bg: "bg-warning-50",
|
|
1193
1194
|
border: "border-warning-200",
|
|
1194
1195
|
text: "text-warning-700",
|
|
1195
|
-
icon: /* @__PURE__ */
|
|
1196
|
+
icon: /* @__PURE__ */ s.jsx(nr, { className: "h-5 w-5" })
|
|
1196
1197
|
},
|
|
1197
1198
|
info: {
|
|
1198
1199
|
bg: "bg-info-50",
|
|
1199
1200
|
border: "border-info-200",
|
|
1200
1201
|
text: "text-info-700",
|
|
1201
|
-
icon: /* @__PURE__ */
|
|
1202
|
+
icon: /* @__PURE__ */ s.jsx(ar, { className: "h-5 w-5" })
|
|
1202
1203
|
}
|
|
1203
|
-
}[
|
|
1204
|
-
return /* @__PURE__ */
|
|
1204
|
+
}[e];
|
|
1205
|
+
return /* @__PURE__ */ s.jsx(
|
|
1205
1206
|
"div",
|
|
1206
1207
|
{
|
|
1207
|
-
className: `${
|
|
1208
|
+
className: `${i.bg} border ${i.border} rounded-md p-3 ${o}`,
|
|
1208
1209
|
role: "alert",
|
|
1209
|
-
children: /* @__PURE__ */
|
|
1210
|
-
/* @__PURE__ */
|
|
1211
|
-
/* @__PURE__ */
|
|
1212
|
-
|
|
1213
|
-
/* @__PURE__ */
|
|
1210
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
1211
|
+
/* @__PURE__ */ s.jsx("div", { className: `flex-shrink-0 ${i.text}`, children: a || i.icon }),
|
|
1212
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex-1", children: [
|
|
1213
|
+
r && /* @__PURE__ */ s.jsx("p", { className: `text-sm font-medium ${i.text}`, children: r }),
|
|
1214
|
+
/* @__PURE__ */ s.jsx("p", { className: `text-sm ${i.text}`, children: t })
|
|
1214
1215
|
] }),
|
|
1215
|
-
|
|
1216
|
+
n && /* @__PURE__ */ s.jsx(
|
|
1216
1217
|
"button",
|
|
1217
1218
|
{
|
|
1218
|
-
onClick:
|
|
1219
|
-
className: `flex-shrink-0 ${
|
|
1219
|
+
onClick: n,
|
|
1220
|
+
className: `flex-shrink-0 ${i.text} hover:opacity-70`,
|
|
1220
1221
|
"aria-label": "Close alert",
|
|
1221
1222
|
children: "✕"
|
|
1222
1223
|
}
|
|
@@ -1225,35 +1226,79 @@ function mr({
|
|
|
1225
1226
|
}
|
|
1226
1227
|
);
|
|
1227
1228
|
}
|
|
1228
|
-
function
|
|
1229
|
-
title:
|
|
1230
|
-
titleId:
|
|
1229
|
+
function Cr({
|
|
1230
|
+
title: e,
|
|
1231
|
+
titleId: r,
|
|
1232
|
+
...t
|
|
1233
|
+
}, a) {
|
|
1234
|
+
return /* @__PURE__ */ P.createElement("svg", Object.assign({
|
|
1235
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1236
|
+
viewBox: "0 0 20 20",
|
|
1237
|
+
fill: "currentColor",
|
|
1238
|
+
"aria-hidden": "true",
|
|
1239
|
+
"data-slot": "icon",
|
|
1240
|
+
ref: a,
|
|
1241
|
+
"aria-labelledby": r
|
|
1242
|
+
}, t), e ? /* @__PURE__ */ P.createElement("title", {
|
|
1243
|
+
id: r
|
|
1244
|
+
}, e) : null, /* @__PURE__ */ P.createElement("path", {
|
|
1245
|
+
fillRule: "evenodd",
|
|
1246
|
+
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
|
+
clipRule: "evenodd"
|
|
1248
|
+
}));
|
|
1249
|
+
}
|
|
1250
|
+
const Ie = /* @__PURE__ */ P.forwardRef(Cr);
|
|
1251
|
+
function kr({
|
|
1252
|
+
title: e,
|
|
1253
|
+
titleId: r,
|
|
1254
|
+
...t
|
|
1255
|
+
}, a) {
|
|
1256
|
+
return /* @__PURE__ */ P.createElement("svg", Object.assign({
|
|
1257
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1258
|
+
viewBox: "0 0 20 20",
|
|
1259
|
+
fill: "currentColor",
|
|
1260
|
+
"aria-hidden": "true",
|
|
1261
|
+
"data-slot": "icon",
|
|
1262
|
+
ref: a,
|
|
1263
|
+
"aria-labelledby": r
|
|
1264
|
+
}, t), e ? /* @__PURE__ */ P.createElement("title", {
|
|
1265
|
+
id: r
|
|
1266
|
+
}, e) : null, /* @__PURE__ */ P.createElement("path", {
|
|
1267
|
+
fillRule: "evenodd",
|
|
1268
|
+
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
|
+
clipRule: "evenodd"
|
|
1270
|
+
}));
|
|
1271
|
+
}
|
|
1272
|
+
const Oe = /* @__PURE__ */ P.forwardRef(kr);
|
|
1273
|
+
function Tr({
|
|
1274
|
+
title: e,
|
|
1275
|
+
titleId: r,
|
|
1231
1276
|
...t
|
|
1232
1277
|
}, a) {
|
|
1233
|
-
return /* @__PURE__ */
|
|
1278
|
+
return /* @__PURE__ */ P.createElement("svg", Object.assign({
|
|
1234
1279
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1235
1280
|
viewBox: "0 0 20 20",
|
|
1236
1281
|
fill: "currentColor",
|
|
1237
1282
|
"aria-hidden": "true",
|
|
1238
1283
|
"data-slot": "icon",
|
|
1239
1284
|
ref: a,
|
|
1240
|
-
"aria-labelledby":
|
|
1241
|
-
}, t),
|
|
1242
|
-
id:
|
|
1243
|
-
},
|
|
1285
|
+
"aria-labelledby": r
|
|
1286
|
+
}, t), e ? /* @__PURE__ */ P.createElement("title", {
|
|
1287
|
+
id: r
|
|
1288
|
+
}, e) : null, /* @__PURE__ */ P.createElement("path", {
|
|
1244
1289
|
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"
|
|
1245
1290
|
}));
|
|
1246
1291
|
}
|
|
1247
|
-
const
|
|
1248
|
-
function
|
|
1249
|
-
children:
|
|
1250
|
-
variant:
|
|
1292
|
+
const be = /* @__PURE__ */ P.forwardRef(Tr);
|
|
1293
|
+
function Vr({
|
|
1294
|
+
children: e,
|
|
1295
|
+
variant: r = "default",
|
|
1251
1296
|
size: t = "md",
|
|
1252
1297
|
removable: a = !1,
|
|
1253
|
-
onRemove:
|
|
1298
|
+
onRemove: n,
|
|
1254
1299
|
className: o = "",
|
|
1255
|
-
style:
|
|
1256
|
-
colorClass:
|
|
1300
|
+
style: l,
|
|
1301
|
+
colorClass: i
|
|
1257
1302
|
}) {
|
|
1258
1303
|
const u = {
|
|
1259
1304
|
default: "bg-surface-variant text-text-secondary",
|
|
@@ -1261,277 +1306,277 @@ function Ge({
|
|
|
1261
1306
|
error: "bg-error-50 text-error-700",
|
|
1262
1307
|
warning: "bg-warning-50 text-warning-700",
|
|
1263
1308
|
info: "bg-info-50 text-info-700"
|
|
1264
|
-
},
|
|
1309
|
+
}, f = {
|
|
1265
1310
|
sm: "px-2 py-0.5 text-xs",
|
|
1266
1311
|
md: "px-3 py-1 text-sm",
|
|
1267
1312
|
lg: "px-4 py-1.5 text-base"
|
|
1268
|
-
}, d =
|
|
1269
|
-
return /* @__PURE__ */
|
|
1313
|
+
}, d = i || u[r];
|
|
1314
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1270
1315
|
"span",
|
|
1271
1316
|
{
|
|
1272
|
-
className: `inline-flex items-center gap-1 rounded-full ${d} ${
|
|
1273
|
-
style:
|
|
1317
|
+
className: `inline-flex items-center gap-1 rounded-full ${d} ${f[t]} ${o}`,
|
|
1318
|
+
style: l,
|
|
1274
1319
|
children: [
|
|
1275
|
-
|
|
1276
|
-
a &&
|
|
1320
|
+
e,
|
|
1321
|
+
a && n && /* @__PURE__ */ s.jsx(
|
|
1277
1322
|
"button",
|
|
1278
1323
|
{
|
|
1279
|
-
onClick:
|
|
1324
|
+
onClick: n,
|
|
1280
1325
|
className: "ml-1 hover:opacity-70",
|
|
1281
1326
|
"aria-label": "Remove badge",
|
|
1282
|
-
children: /* @__PURE__ */
|
|
1327
|
+
children: /* @__PURE__ */ s.jsx(be, { className: "w-3 h-3" })
|
|
1283
1328
|
}
|
|
1284
1329
|
)
|
|
1285
1330
|
]
|
|
1286
1331
|
}
|
|
1287
1332
|
);
|
|
1288
1333
|
}
|
|
1289
|
-
function
|
|
1290
|
-
label:
|
|
1291
|
-
children:
|
|
1334
|
+
function Vs({
|
|
1335
|
+
label: e,
|
|
1336
|
+
children: r,
|
|
1292
1337
|
helperText: t,
|
|
1293
1338
|
errorText: a,
|
|
1294
|
-
required:
|
|
1339
|
+
required: n = !1,
|
|
1295
1340
|
className: o = ""
|
|
1296
1341
|
}) {
|
|
1297
|
-
return /* @__PURE__ */
|
|
1298
|
-
/* @__PURE__ */
|
|
1299
|
-
|
|
1300
|
-
|
|
1342
|
+
return /* @__PURE__ */ s.jsxs("div", { className: `space-y-2 ${o}`, children: [
|
|
1343
|
+
/* @__PURE__ */ s.jsxs("label", { className: "block text-sm font-medium text-text-primary", children: [
|
|
1344
|
+
e,
|
|
1345
|
+
n && /* @__PURE__ */ s.jsx("span", { className: "text-error-500 ml-1", children: "*" })
|
|
1301
1346
|
] }),
|
|
1302
|
-
|
|
1303
|
-
a && /* @__PURE__ */
|
|
1304
|
-
t && !a && /* @__PURE__ */
|
|
1347
|
+
r,
|
|
1348
|
+
a && /* @__PURE__ */ s.jsx("p", { className: "text-xs text-error-600", children: a }),
|
|
1349
|
+
t && !a && /* @__PURE__ */ s.jsx("p", { className: "text-xs text-text-muted", children: t })
|
|
1305
1350
|
] });
|
|
1306
1351
|
}
|
|
1307
|
-
const
|
|
1352
|
+
const Rr = X.forwardRef(
|
|
1308
1353
|
({
|
|
1309
|
-
className:
|
|
1310
|
-
leftIcon:
|
|
1354
|
+
className: e = "",
|
|
1355
|
+
leftIcon: r,
|
|
1311
1356
|
rightIcon: t,
|
|
1312
1357
|
error: a = !1,
|
|
1313
|
-
fullWidth:
|
|
1358
|
+
fullWidth: n = !0,
|
|
1314
1359
|
disabled: o,
|
|
1315
|
-
...
|
|
1316
|
-
},
|
|
1317
|
-
const u = "px-3 py-2 border rounded-lg transition-colors text-sm",
|
|
1318
|
-
return /* @__PURE__ */
|
|
1319
|
-
|
|
1320
|
-
/* @__PURE__ */
|
|
1360
|
+
...l
|
|
1361
|
+
}, i) => {
|
|
1362
|
+
const u = "px-3 py-2 border rounded-lg transition-colors text-sm", f = 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 = o ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary", m = n ? "w-full" : "", x = r || t ? "relative flex items-center" : "", g = `${u} ${f} ${d} ${m} ${r ? "pl-10" : ""} ${t ? "pr-10" : ""} ${e}`;
|
|
1363
|
+
return /* @__PURE__ */ s.jsxs("div", { className: x, children: [
|
|
1364
|
+
r && /* @__PURE__ */ s.jsx("div", { className: "absolute left-3 flex items-center pointer-events-none text-text-muted", children: r }),
|
|
1365
|
+
/* @__PURE__ */ s.jsx(
|
|
1321
1366
|
"input",
|
|
1322
1367
|
{
|
|
1323
|
-
ref:
|
|
1368
|
+
ref: i,
|
|
1324
1369
|
className: g,
|
|
1325
1370
|
disabled: o,
|
|
1326
|
-
...
|
|
1371
|
+
...l
|
|
1327
1372
|
}
|
|
1328
1373
|
),
|
|
1329
|
-
t && /* @__PURE__ */
|
|
1374
|
+
t && /* @__PURE__ */ s.jsx("div", { className: "absolute right-3 flex items-center pointer-events-none text-text-muted", children: t })
|
|
1330
1375
|
] });
|
|
1331
1376
|
}
|
|
1332
1377
|
);
|
|
1333
|
-
|
|
1334
|
-
const
|
|
1378
|
+
Rr.displayName = "Input";
|
|
1379
|
+
const Er = X.forwardRef(
|
|
1335
1380
|
({
|
|
1336
|
-
options:
|
|
1337
|
-
placeholder:
|
|
1381
|
+
options: e,
|
|
1382
|
+
placeholder: r,
|
|
1338
1383
|
className: t = "",
|
|
1339
1384
|
error: a = !1,
|
|
1340
|
-
fullWidth:
|
|
1385
|
+
fullWidth: n = !0,
|
|
1341
1386
|
disabled: o,
|
|
1342
|
-
...
|
|
1343
|
-
},
|
|
1344
|
-
const
|
|
1345
|
-
return /* @__PURE__ */
|
|
1346
|
-
/* @__PURE__ */
|
|
1387
|
+
...l
|
|
1388
|
+
}, i) => {
|
|
1389
|
+
const x = `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"} ${o ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${n ? "w-full" : ""} pr-10 ${t}`;
|
|
1390
|
+
return /* @__PURE__ */ s.jsxs("div", { className: "relative flex items-center", children: [
|
|
1391
|
+
/* @__PURE__ */ s.jsxs(
|
|
1347
1392
|
"select",
|
|
1348
1393
|
{
|
|
1349
|
-
ref:
|
|
1350
|
-
className:
|
|
1394
|
+
ref: i,
|
|
1395
|
+
className: x,
|
|
1351
1396
|
disabled: o,
|
|
1352
|
-
...
|
|
1397
|
+
...l,
|
|
1353
1398
|
children: [
|
|
1354
|
-
|
|
1355
|
-
|
|
1399
|
+
r && /* @__PURE__ */ s.jsx("option", { value: "", disabled: !0, children: r }),
|
|
1400
|
+
e.map((g) => /* @__PURE__ */ s.jsx("option", { value: g.value, children: g.label }, g.value))
|
|
1356
1401
|
]
|
|
1357
1402
|
}
|
|
1358
1403
|
),
|
|
1359
|
-
/* @__PURE__ */
|
|
1404
|
+
/* @__PURE__ */ s.jsx(Ne, { className: "absolute right-3 w-4 h-4 text-text-muted pointer-events-none" })
|
|
1360
1405
|
] });
|
|
1361
1406
|
}
|
|
1362
1407
|
);
|
|
1363
|
-
|
|
1364
|
-
const
|
|
1408
|
+
Er.displayName = "Select";
|
|
1409
|
+
const $r = X.forwardRef(
|
|
1365
1410
|
({
|
|
1366
|
-
tags:
|
|
1367
|
-
onTagsChange:
|
|
1411
|
+
tags: e,
|
|
1412
|
+
onTagsChange: r,
|
|
1368
1413
|
onAddTag: t,
|
|
1369
1414
|
onRemoveTag: a,
|
|
1370
|
-
placeholder:
|
|
1415
|
+
placeholder: n = "Add a tag and press Enter",
|
|
1371
1416
|
error: o = !1,
|
|
1372
|
-
fullWidth:
|
|
1373
|
-
maxTags:
|
|
1417
|
+
fullWidth: l = !0,
|
|
1418
|
+
maxTags: i,
|
|
1374
1419
|
duplicateCheck: u = !0,
|
|
1375
|
-
disabled:
|
|
1420
|
+
disabled: f,
|
|
1376
1421
|
className: d = "",
|
|
1377
1422
|
...m
|
|
1378
|
-
},
|
|
1379
|
-
const [g,
|
|
1380
|
-
|
|
1381
|
-
},
|
|
1382
|
-
if (
|
|
1423
|
+
}, x) => {
|
|
1424
|
+
const [g, j] = S(""), C = (v) => {
|
|
1425
|
+
v.key === "Enter" && g.trim() ? (v.preventDefault(), y(g.trim())) : v.key === "Backspace" && !g && e.length > 0 && R(e[e.length - 1]);
|
|
1426
|
+
}, y = (v) => {
|
|
1427
|
+
if (i && e.length >= i || u && e.includes(v))
|
|
1383
1428
|
return;
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1386
|
-
},
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
}, b = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${o ? "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"} ${
|
|
1390
|
-
return /* @__PURE__ */
|
|
1391
|
-
/* @__PURE__ */
|
|
1392
|
-
|
|
1429
|
+
const w = [...e, v];
|
|
1430
|
+
r(w), t?.(v), j("");
|
|
1431
|
+
}, R = (v) => {
|
|
1432
|
+
const w = e.filter((T) => T !== v);
|
|
1433
|
+
r(w), a?.(v);
|
|
1434
|
+
}, b = `w-full px-3 py-2 border rounded-lg transition-colors text-sm ${o ? "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"} ${f ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${l ? "w-full" : ""} ${d}`;
|
|
1435
|
+
return /* @__PURE__ */ s.jsxs("div", { className: "space-y-2", children: [
|
|
1436
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex flex-wrap gap-2 mb-2", children: e.map((v) => /* @__PURE__ */ s.jsx(
|
|
1437
|
+
Vr,
|
|
1393
1438
|
{
|
|
1394
1439
|
removable: !0,
|
|
1395
|
-
onRemove: () =>
|
|
1440
|
+
onRemove: () => R(v),
|
|
1396
1441
|
variant: "default",
|
|
1397
|
-
children:
|
|
1442
|
+
children: v
|
|
1398
1443
|
},
|
|
1399
|
-
|
|
1444
|
+
v
|
|
1400
1445
|
)) }),
|
|
1401
|
-
/* @__PURE__ */
|
|
1446
|
+
/* @__PURE__ */ s.jsx(
|
|
1402
1447
|
"input",
|
|
1403
1448
|
{
|
|
1404
|
-
ref:
|
|
1449
|
+
ref: x,
|
|
1405
1450
|
type: "text",
|
|
1406
1451
|
className: b,
|
|
1407
|
-
placeholder:
|
|
1452
|
+
placeholder: n,
|
|
1408
1453
|
value: g,
|
|
1409
|
-
onChange: (
|
|
1410
|
-
onKeyDown:
|
|
1411
|
-
disabled:
|
|
1454
|
+
onChange: (v) => j(v.target.value),
|
|
1455
|
+
onKeyDown: C,
|
|
1456
|
+
disabled: f || (i ? e.length >= i : !1),
|
|
1412
1457
|
...m
|
|
1413
1458
|
}
|
|
1414
1459
|
),
|
|
1415
|
-
|
|
1416
|
-
|
|
1460
|
+
i && /* @__PURE__ */ s.jsxs("p", { className: "text-xs text-text-muted", children: [
|
|
1461
|
+
e.length,
|
|
1417
1462
|
" / ",
|
|
1418
|
-
|
|
1463
|
+
i
|
|
1419
1464
|
] })
|
|
1420
1465
|
] });
|
|
1421
1466
|
}
|
|
1422
1467
|
);
|
|
1423
|
-
|
|
1424
|
-
const
|
|
1468
|
+
$r.displayName = "TagInput";
|
|
1469
|
+
const Dr = X.forwardRef(
|
|
1425
1470
|
({
|
|
1426
|
-
className:
|
|
1427
|
-
error:
|
|
1471
|
+
className: e = "",
|
|
1472
|
+
error: r = !1,
|
|
1428
1473
|
fullWidth: t = !0,
|
|
1429
1474
|
autoResize: a = !1,
|
|
1430
|
-
maxLength:
|
|
1475
|
+
maxLength: n,
|
|
1431
1476
|
showCharCount: o = !1,
|
|
1432
|
-
disabled:
|
|
1433
|
-
value:
|
|
1477
|
+
disabled: l,
|
|
1478
|
+
value: i,
|
|
1434
1479
|
onChange: u,
|
|
1435
|
-
...
|
|
1480
|
+
...f
|
|
1436
1481
|
}, d) => {
|
|
1437
|
-
const
|
|
1438
|
-
a && (
|
|
1439
|
-
},
|
|
1440
|
-
return /* @__PURE__ */
|
|
1441
|
-
/* @__PURE__ */
|
|
1482
|
+
const C = `px-3 py-2 border rounded-lg transition-colors text-sm font-normal resize-none ${r ? "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"} ${l ? "bg-surface-variant text-text-muted cursor-not-allowed" : "bg-surface text-text-primary"} ${t ? "w-full" : ""} ${e}`, y = (I) => {
|
|
1483
|
+
a && (I.target.style.height = "auto", I.target.style.height = `${I.target.scrollHeight}px`), u?.(I);
|
|
1484
|
+
}, R = typeof i == "string" ? i.length : 0;
|
|
1485
|
+
return /* @__PURE__ */ s.jsxs("div", { className: "space-y-1", children: [
|
|
1486
|
+
/* @__PURE__ */ s.jsx(
|
|
1442
1487
|
"textarea",
|
|
1443
1488
|
{
|
|
1444
1489
|
ref: d,
|
|
1445
|
-
className:
|
|
1446
|
-
disabled:
|
|
1447
|
-
value:
|
|
1448
|
-
onChange:
|
|
1449
|
-
maxLength:
|
|
1450
|
-
...
|
|
1490
|
+
className: C,
|
|
1491
|
+
disabled: l,
|
|
1492
|
+
value: i,
|
|
1493
|
+
onChange: y,
|
|
1494
|
+
maxLength: n,
|
|
1495
|
+
...f
|
|
1451
1496
|
}
|
|
1452
1497
|
),
|
|
1453
|
-
o &&
|
|
1454
|
-
|
|
1498
|
+
o && n && /* @__PURE__ */ s.jsxs("p", { className: "text-xs text-text-muted text-right", children: [
|
|
1499
|
+
R,
|
|
1455
1500
|
" / ",
|
|
1456
|
-
|
|
1501
|
+
n
|
|
1457
1502
|
] })
|
|
1458
1503
|
] });
|
|
1459
1504
|
}
|
|
1460
1505
|
);
|
|
1461
|
-
|
|
1462
|
-
function
|
|
1463
|
-
options:
|
|
1464
|
-
selectedValues:
|
|
1506
|
+
Dr.displayName = "Textarea";
|
|
1507
|
+
function Rs({
|
|
1508
|
+
options: e,
|
|
1509
|
+
selectedValues: r,
|
|
1465
1510
|
onSelectionChange: t,
|
|
1466
1511
|
layout: a = "vertical",
|
|
1467
|
-
columns:
|
|
1512
|
+
columns: n = 2,
|
|
1468
1513
|
disabled: o = !1,
|
|
1469
|
-
error:
|
|
1514
|
+
error: l = !1
|
|
1470
1515
|
}) {
|
|
1471
|
-
const
|
|
1472
|
-
const
|
|
1473
|
-
t(
|
|
1516
|
+
const i = (m) => {
|
|
1517
|
+
const x = r.includes(m) ? r.filter((g) => g !== m) : [...r, m];
|
|
1518
|
+
t(x);
|
|
1474
1519
|
}, u = {
|
|
1475
1520
|
vertical: "space-y-3",
|
|
1476
1521
|
horizontal: "flex flex-wrap gap-3",
|
|
1477
|
-
grid: `grid grid-cols-${
|
|
1478
|
-
},
|
|
1479
|
-
return /* @__PURE__ */
|
|
1480
|
-
const
|
|
1481
|
-
return /* @__PURE__ */
|
|
1522
|
+
grid: `grid grid-cols-${n} gap-3`
|
|
1523
|
+
}, f = a === "grid" ? "grid gap-3" : u[a], d = a === "grid" ? `md:grid-cols-${n}` : "";
|
|
1524
|
+
return /* @__PURE__ */ s.jsx("div", { className: `${f} ${d}`, children: e.map((m) => {
|
|
1525
|
+
const x = r.includes(m.value), j = x ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${l ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1526
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1482
1527
|
"label",
|
|
1483
1528
|
{
|
|
1484
|
-
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${
|
|
1529
|
+
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${j} ${o ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1485
1530
|
children: [
|
|
1486
|
-
/* @__PURE__ */
|
|
1531
|
+
/* @__PURE__ */ s.jsx(
|
|
1487
1532
|
"input",
|
|
1488
1533
|
{
|
|
1489
1534
|
type: "checkbox",
|
|
1490
|
-
checked:
|
|
1491
|
-
onChange: () =>
|
|
1535
|
+
checked: x,
|
|
1536
|
+
onChange: () => i(m.value),
|
|
1492
1537
|
disabled: o,
|
|
1493
1538
|
className: "sr-only"
|
|
1494
1539
|
}
|
|
1495
1540
|
),
|
|
1496
|
-
m.icon && /* @__PURE__ */
|
|
1497
|
-
/* @__PURE__ */
|
|
1498
|
-
/* @__PURE__ */
|
|
1499
|
-
m.description && /* @__PURE__ */
|
|
1541
|
+
m.icon && /* @__PURE__ */ s.jsx("div", { className: "mr-3 flex-shrink-0 text-text-secondary", children: m.icon }),
|
|
1542
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex-1", children: [
|
|
1543
|
+
/* @__PURE__ */ s.jsx("div", { className: "font-medium text-text-primary", children: m.label }),
|
|
1544
|
+
m.description && /* @__PURE__ */ s.jsx("div", { className: "text-sm text-text-secondary", children: m.description })
|
|
1500
1545
|
] }),
|
|
1501
|
-
|
|
1546
|
+
x && /* @__PURE__ */ s.jsx("div", { className: "text-reseda-green-500 flex-shrink-0", children: /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.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" }) }) })
|
|
1502
1547
|
]
|
|
1503
1548
|
},
|
|
1504
1549
|
m.value
|
|
1505
1550
|
);
|
|
1506
1551
|
}) });
|
|
1507
1552
|
}
|
|
1508
|
-
function
|
|
1509
|
-
options:
|
|
1510
|
-
selectedValue:
|
|
1553
|
+
function Es({
|
|
1554
|
+
options: e,
|
|
1555
|
+
selectedValue: r,
|
|
1511
1556
|
onSelectionChange: t,
|
|
1512
1557
|
layout: a = "vertical",
|
|
1513
|
-
columns:
|
|
1558
|
+
columns: n = 2,
|
|
1514
1559
|
disabled: o = !1,
|
|
1515
|
-
error:
|
|
1516
|
-
name:
|
|
1560
|
+
error: l = !1,
|
|
1561
|
+
name: i = "radio-group"
|
|
1517
1562
|
}) {
|
|
1518
|
-
const
|
|
1563
|
+
const f = a === "grid" ? `grid gap-3 md:grid-cols-${n}` : {
|
|
1519
1564
|
vertical: "space-y-3",
|
|
1520
1565
|
horizontal: "flex flex-wrap gap-3",
|
|
1521
1566
|
grid: "grid gap-3"
|
|
1522
1567
|
}[a];
|
|
1523
|
-
return /* @__PURE__ */
|
|
1524
|
-
const m =
|
|
1525
|
-
return /* @__PURE__ */
|
|
1568
|
+
return /* @__PURE__ */ s.jsx("div", { className: f, children: e.map((d) => {
|
|
1569
|
+
const m = r === d.value, g = m ? "border-reseda-green-500 bg-reseda-green-50 ring-2 ring-reseda-green-200" : `border-${l ? "border-error-300" : "border-border"} hover:border-border-subtle hover:bg-surface-variant`;
|
|
1570
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1526
1571
|
"label",
|
|
1527
1572
|
{
|
|
1528
1573
|
className: `relative flex items-start p-3 border rounded-lg cursor-pointer transition-all ${g} ${o ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
1529
1574
|
children: [
|
|
1530
|
-
/* @__PURE__ */
|
|
1575
|
+
/* @__PURE__ */ s.jsx(
|
|
1531
1576
|
"input",
|
|
1532
1577
|
{
|
|
1533
1578
|
type: "radio",
|
|
1534
|
-
name:
|
|
1579
|
+
name: i,
|
|
1535
1580
|
value: d.value,
|
|
1536
1581
|
checked: m,
|
|
1537
1582
|
onChange: () => t(d.value),
|
|
@@ -1539,168 +1584,168 @@ function vr({
|
|
|
1539
1584
|
className: "sr-only"
|
|
1540
1585
|
}
|
|
1541
1586
|
),
|
|
1542
|
-
d.icon && /* @__PURE__ */
|
|
1543
|
-
/* @__PURE__ */
|
|
1544
|
-
/* @__PURE__ */
|
|
1545
|
-
d.description && /* @__PURE__ */
|
|
1587
|
+
d.icon && /* @__PURE__ */ s.jsx("div", { className: "mr-3 flex-shrink-0 text-text-secondary", children: d.icon }),
|
|
1588
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex-1", children: [
|
|
1589
|
+
/* @__PURE__ */ s.jsx("div", { className: "font-medium text-text-primary", children: d.label }),
|
|
1590
|
+
d.description && /* @__PURE__ */ s.jsx("div", { className: "text-sm text-text-secondary", children: d.description })
|
|
1546
1591
|
] }),
|
|
1547
|
-
m && /* @__PURE__ */
|
|
1592
|
+
m && /* @__PURE__ */ s.jsx("div", { className: "text-reseda-green-500 flex-shrink-0", children: /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.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" }) }) })
|
|
1548
1593
|
]
|
|
1549
1594
|
},
|
|
1550
1595
|
d.value
|
|
1551
1596
|
);
|
|
1552
1597
|
}) });
|
|
1553
1598
|
}
|
|
1554
|
-
function
|
|
1555
|
-
items:
|
|
1556
|
-
allowMultiple:
|
|
1599
|
+
function $s({
|
|
1600
|
+
items: e,
|
|
1601
|
+
allowMultiple: r = !1,
|
|
1557
1602
|
defaultOpenId: t,
|
|
1558
1603
|
onOpenChange: a,
|
|
1559
|
-
className:
|
|
1604
|
+
className: n = ""
|
|
1560
1605
|
}) {
|
|
1561
|
-
const [o,
|
|
1562
|
-
let
|
|
1563
|
-
|
|
1606
|
+
const [o, l] = S(() => t ? Array.isArray(t) ? t : [t] : []), i = (u) => {
|
|
1607
|
+
let f;
|
|
1608
|
+
r ? f = o.includes(u) ? o.filter((d) => d !== u) : [...o, u] : f = o.includes(u) ? [] : [u], l(f), a?.(f);
|
|
1564
1609
|
};
|
|
1565
|
-
return /* @__PURE__ */
|
|
1566
|
-
const
|
|
1567
|
-
return /* @__PURE__ */
|
|
1610
|
+
return /* @__PURE__ */ s.jsx("div", { className: `space-y-2 ${n}`, children: e.map((u) => {
|
|
1611
|
+
const f = o.includes(u.id);
|
|
1612
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1568
1613
|
"div",
|
|
1569
1614
|
{
|
|
1570
1615
|
className: "border border-border rounded-lg overflow-hidden",
|
|
1571
1616
|
children: [
|
|
1572
|
-
/* @__PURE__ */
|
|
1617
|
+
/* @__PURE__ */ s.jsxs(
|
|
1573
1618
|
"button",
|
|
1574
1619
|
{
|
|
1575
|
-
onClick: () =>
|
|
1620
|
+
onClick: () => i(u.id),
|
|
1576
1621
|
className: "w-full px-4 py-3 flex items-center justify-between hover:bg-surface-variant transition-colors text-left",
|
|
1577
1622
|
children: [
|
|
1578
|
-
/* @__PURE__ */
|
|
1579
|
-
u.icon && /* @__PURE__ */
|
|
1580
|
-
/* @__PURE__ */
|
|
1623
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3 flex-1", children: [
|
|
1624
|
+
u.icon && /* @__PURE__ */ s.jsx("div", { className: "flex-shrink-0 text-text-secondary", children: u.icon }),
|
|
1625
|
+
/* @__PURE__ */ s.jsx("h3", { className: "font-medium text-text-primary", children: u.title })
|
|
1581
1626
|
] }),
|
|
1582
|
-
/* @__PURE__ */
|
|
1583
|
-
|
|
1627
|
+
/* @__PURE__ */ s.jsx(
|
|
1628
|
+
Ne,
|
|
1584
1629
|
{
|
|
1585
|
-
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${
|
|
1630
|
+
className: `w-5 h-5 text-text-secondary transition-transform flex-shrink-0 ${f ? "rotate-180" : ""}`
|
|
1586
1631
|
}
|
|
1587
1632
|
)
|
|
1588
1633
|
]
|
|
1589
1634
|
}
|
|
1590
1635
|
),
|
|
1591
|
-
|
|
1636
|
+
f && /* @__PURE__ */ s.jsx("div", { className: "border-t border-border px-4 py-3 bg-surface-variant text-text-primary", children: u.content })
|
|
1592
1637
|
]
|
|
1593
1638
|
},
|
|
1594
1639
|
u.id
|
|
1595
1640
|
);
|
|
1596
1641
|
}) });
|
|
1597
1642
|
}
|
|
1598
|
-
const
|
|
1643
|
+
const Ir = X.forwardRef(
|
|
1599
1644
|
({
|
|
1600
|
-
value:
|
|
1601
|
-
onChange:
|
|
1645
|
+
value: e,
|
|
1646
|
+
onChange: r,
|
|
1602
1647
|
min: t = 0,
|
|
1603
1648
|
max: a = 100,
|
|
1604
|
-
step:
|
|
1649
|
+
step: n = 1,
|
|
1605
1650
|
showValue: o = !0,
|
|
1606
|
-
showLabels:
|
|
1607
|
-
minLabel:
|
|
1651
|
+
showLabels: l = !1,
|
|
1652
|
+
minLabel: i,
|
|
1608
1653
|
maxLabel: u,
|
|
1609
|
-
error:
|
|
1654
|
+
error: f = !1,
|
|
1610
1655
|
fullWidth: d = !0,
|
|
1611
1656
|
disabled: m,
|
|
1612
|
-
className:
|
|
1657
|
+
className: x = "",
|
|
1613
1658
|
...g
|
|
1614
|
-
},
|
|
1615
|
-
const
|
|
1616
|
-
return /* @__PURE__ */
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
u && /* @__PURE__ */
|
|
1659
|
+
}, j) => {
|
|
1660
|
+
const k = `w-full h-2 rounded-lg appearance-none cursor-pointer ${f ? "bg-error-200 accent-error-500" : "bg-border accent-reseda-green-500"} ${m ? "opacity-50 cursor-not-allowed" : ""} ${d ? "w-full" : ""} ${x}`, E = (e - t) / (a - t) * 100;
|
|
1661
|
+
return /* @__PURE__ */ s.jsxs("div", { className: "space-y-2", children: [
|
|
1662
|
+
l && (i || u) && /* @__PURE__ */ s.jsxs("div", { className: "flex justify-between text-xs text-text-muted", children: [
|
|
1663
|
+
i && /* @__PURE__ */ s.jsx("span", { children: i }),
|
|
1664
|
+
u && /* @__PURE__ */ s.jsx("span", { children: u })
|
|
1620
1665
|
] }),
|
|
1621
|
-
/* @__PURE__ */
|
|
1622
|
-
/* @__PURE__ */
|
|
1666
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1667
|
+
/* @__PURE__ */ s.jsx(
|
|
1623
1668
|
"input",
|
|
1624
1669
|
{
|
|
1625
|
-
ref:
|
|
1670
|
+
ref: j,
|
|
1626
1671
|
type: "range",
|
|
1627
1672
|
min: t,
|
|
1628
1673
|
max: a,
|
|
1629
|
-
step:
|
|
1630
|
-
value:
|
|
1631
|
-
onChange: (
|
|
1674
|
+
step: n,
|
|
1675
|
+
value: e,
|
|
1676
|
+
onChange: (D) => r(Number(D.target.value)),
|
|
1632
1677
|
disabled: m,
|
|
1633
|
-
className:
|
|
1678
|
+
className: k,
|
|
1634
1679
|
...g
|
|
1635
1680
|
}
|
|
1636
1681
|
),
|
|
1637
|
-
o && /* @__PURE__ */
|
|
1682
|
+
o && /* @__PURE__ */ s.jsx("span", { className: "text-sm font-medium text-text-primary min-w-[3rem] text-right", children: e })
|
|
1638
1683
|
] }),
|
|
1639
|
-
/* @__PURE__ */
|
|
1684
|
+
/* @__PURE__ */ s.jsx("div", { className: "h-1 bg-border rounded-full overflow-hidden", children: /* @__PURE__ */ s.jsx(
|
|
1640
1685
|
"div",
|
|
1641
1686
|
{
|
|
1642
1687
|
className: "h-full bg-reseda-green-500 transition-all",
|
|
1643
|
-
style: { width: `${
|
|
1688
|
+
style: { width: `${E}%` }
|
|
1644
1689
|
}
|
|
1645
1690
|
) })
|
|
1646
1691
|
] });
|
|
1647
1692
|
}
|
|
1648
1693
|
);
|
|
1649
|
-
|
|
1650
|
-
function
|
|
1651
|
-
icon:
|
|
1652
|
-
title:
|
|
1694
|
+
Ir.displayName = "Slider";
|
|
1695
|
+
function Ds({
|
|
1696
|
+
icon: e,
|
|
1697
|
+
title: r,
|
|
1653
1698
|
description: t,
|
|
1654
1699
|
isSelected: a = !1,
|
|
1655
|
-
onClick:
|
|
1700
|
+
onClick: n,
|
|
1656
1701
|
disabled: o = !1,
|
|
1657
|
-
className:
|
|
1702
|
+
className: l = ""
|
|
1658
1703
|
}) {
|
|
1659
|
-
const
|
|
1660
|
-
return /* @__PURE__ */
|
|
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", f = o ? "opacity-50 cursor-not-allowed" : "";
|
|
1705
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1661
1706
|
"div",
|
|
1662
1707
|
{
|
|
1663
|
-
className: `${
|
|
1664
|
-
onClick: () => !o &&
|
|
1708
|
+
className: `${i} ${u} ${f} ${l}`,
|
|
1709
|
+
onClick: () => !o && n?.(),
|
|
1665
1710
|
role: "button",
|
|
1666
1711
|
tabIndex: o ? -1 : 0,
|
|
1667
1712
|
onKeyDown: (d) => {
|
|
1668
|
-
!o && (d.key === "Enter" || d.key === " ") &&
|
|
1713
|
+
!o && (d.key === "Enter" || d.key === " ") && n?.();
|
|
1669
1714
|
},
|
|
1670
1715
|
children: [
|
|
1671
|
-
|
|
1672
|
-
/* @__PURE__ */
|
|
1673
|
-
t && /* @__PURE__ */
|
|
1674
|
-
a && /* @__PURE__ */
|
|
1716
|
+
e && /* @__PURE__ */ s.jsx("div", { className: "mb-3 flex justify-center", children: /* @__PURE__ */ s.jsx("div", { className: "text-text-secondary", children: e }) }),
|
|
1717
|
+
/* @__PURE__ */ s.jsx("h3", { className: "font-medium text-text-primary mb-1", children: r }),
|
|
1718
|
+
t && /* @__PURE__ */ s.jsx("p", { className: "text-xs text-text-secondary", children: t }),
|
|
1719
|
+
a && /* @__PURE__ */ s.jsx("div", { className: "mt-3 flex justify-center", children: /* @__PURE__ */ s.jsx("div", { className: "text-reseda-green-500", children: /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.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" }) }) }) })
|
|
1675
1720
|
]
|
|
1676
1721
|
}
|
|
1677
1722
|
);
|
|
1678
1723
|
}
|
|
1679
|
-
const
|
|
1724
|
+
const Or = {
|
|
1680
1725
|
activeText: "text-reseda-green-700",
|
|
1681
1726
|
activeBorder: "border-reseda-green-700",
|
|
1682
1727
|
inactiveText: "text-text-secondary",
|
|
1683
1728
|
inactiveHoverText: "hover:text-text-primary",
|
|
1684
1729
|
disabledText: "text-text-disabled"
|
|
1685
1730
|
};
|
|
1686
|
-
function
|
|
1687
|
-
const o =
|
|
1688
|
-
return /* @__PURE__ */
|
|
1689
|
-
const
|
|
1690
|
-
return /* @__PURE__ */
|
|
1691
|
-
|
|
1731
|
+
function Is({ tabs: e, activeTab: r, disabled: t = !1, onChange: a, colorConfig: n }) {
|
|
1732
|
+
const o = n || Or;
|
|
1733
|
+
return /* @__PURE__ */ s.jsx("div", { className: "flex border-b border-border mb-6", children: e.map((l) => {
|
|
1734
|
+
const i = r === l.id;
|
|
1735
|
+
return /* @__PURE__ */ s.jsx(
|
|
1736
|
+
U,
|
|
1692
1737
|
{
|
|
1693
1738
|
variant: "ghost",
|
|
1694
|
-
onClick: () => !t && a(
|
|
1695
|
-
disabled: t && !
|
|
1696
|
-
className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${
|
|
1697
|
-
children:
|
|
1739
|
+
onClick: () => !t && a(l.id),
|
|
1740
|
+
disabled: t && !i,
|
|
1741
|
+
className: `px-4 py-2.5 text-sm font-medium whitespace-nowrap transition-colors border-b-2 -mb-px ${i ? `${o.activeBorder} ${o.activeText}` : t ? `border-transparent ${o.disabledText} cursor-not-allowed` : `border-transparent ${o.inactiveText} ${o.inactiveHoverText}`}`,
|
|
1742
|
+
children: l.label
|
|
1698
1743
|
},
|
|
1699
|
-
|
|
1744
|
+
l.id
|
|
1700
1745
|
);
|
|
1701
1746
|
}) });
|
|
1702
1747
|
}
|
|
1703
|
-
const
|
|
1748
|
+
const Sr = {
|
|
1704
1749
|
activeBg: "bg-reseda-green-700",
|
|
1705
1750
|
activeText: "text-white",
|
|
1706
1751
|
completedBg: "bg-success-500",
|
|
@@ -1711,59 +1756,852 @@ const Qe = {
|
|
|
1711
1756
|
labelInactiveText: "text-text-muted",
|
|
1712
1757
|
connectorBg: "bg-border"
|
|
1713
1758
|
};
|
|
1714
|
-
function
|
|
1715
|
-
const a = t ||
|
|
1716
|
-
return /* @__PURE__ */
|
|
1717
|
-
/* @__PURE__ */
|
|
1718
|
-
/* @__PURE__ */
|
|
1759
|
+
function Os({ currentStep: e, steps: r, colorConfig: t }) {
|
|
1760
|
+
const a = t || Sr;
|
|
1761
|
+
return /* @__PURE__ */ s.jsx("nav", { className: "mb-10", children: /* @__PURE__ */ s.jsx("ol", { className: "flex items-center w-full", children: r.map((n, o) => /* @__PURE__ */ s.jsxs("li", { className: `flex items-center ${o < r.length - 1 ? "flex-1" : ""}`, children: [
|
|
1762
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center", children: [
|
|
1763
|
+
/* @__PURE__ */ s.jsx(
|
|
1719
1764
|
"span",
|
|
1720
1765
|
{
|
|
1721
|
-
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${
|
|
1722
|
-
children:
|
|
1766
|
+
className: `flex items-center justify-center w-9 h-9 rounded-full text-sm font-semibold shrink-0 ${e === n.number ? `${a.activeBg} ${a.activeText}` : e > n.number ? `${a.completedBg} ${a.completedText}` : `border-2 ${a.incompleteBorder} ${a.incompleteText}`}`,
|
|
1767
|
+
children: n.number
|
|
1723
1768
|
}
|
|
1724
1769
|
),
|
|
1725
|
-
/* @__PURE__ */
|
|
1770
|
+
/* @__PURE__ */ s.jsx(
|
|
1726
1771
|
"span",
|
|
1727
1772
|
{
|
|
1728
|
-
className: `ml-3 text-sm font-medium whitespace-nowrap ${
|
|
1729
|
-
children:
|
|
1773
|
+
className: `ml-3 text-sm font-medium whitespace-nowrap ${e >= n.number ? a.labelActiveText : a.labelInactiveText}`,
|
|
1774
|
+
children: n.label
|
|
1730
1775
|
}
|
|
1731
1776
|
)
|
|
1732
1777
|
] }),
|
|
1733
|
-
o <
|
|
1734
|
-
] },
|
|
1778
|
+
o < r.length - 1 && /* @__PURE__ */ s.jsx("div", { className: `flex-1 h-0.5 mx-4 ${a.connectorBg}` })
|
|
1779
|
+
] }, n.number)) }) });
|
|
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]);
|
|
1839
|
+
}
|
|
1840
|
+
function Fr(e) {
|
|
1841
|
+
if (!e)
|
|
1842
|
+
return !1;
|
|
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, R = te(y ? qr : Gr), [I, k] = we(), [E, D] = 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: E,
|
|
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: D,
|
|
2107
|
+
transform: R
|
|
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
|
+
}, R = 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(R.current) ? R.current : [R.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
|
+
}), E = O((w, T) => {
|
|
2150
|
+
k && (T && (k.unobserve(T), m.current = !1), w && k.observe(w));
|
|
2151
|
+
}, [k]), [D, b] = we(E), v = pe(r);
|
|
2152
|
+
return M(() => {
|
|
2153
|
+
!k || !D.current || (k.disconnect(), m.current = !1, k.observe(D.current));
|
|
2154
|
+
}, [D, k]), M(
|
|
2155
|
+
() => (i({
|
|
2156
|
+
type: se.RegisterDroppable,
|
|
2157
|
+
element: {
|
|
2158
|
+
id: a,
|
|
2159
|
+
key: o,
|
|
2160
|
+
disabled: t,
|
|
2161
|
+
node: D,
|
|
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: D,
|
|
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: R,
|
|
2302
|
+
strategy: I
|
|
2303
|
+
} = te(ts), k = us(a, g), E = d.indexOf(l), D = H(() => ({
|
|
2304
|
+
sortable: {
|
|
2305
|
+
containerId: m,
|
|
2306
|
+
index: E,
|
|
2307
|
+
items: d
|
|
2308
|
+
},
|
|
2309
|
+
...n
|
|
2310
|
+
}), [m, n, E, 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: D,
|
|
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: D,
|
|
2337
|
+
attributes: {
|
|
2338
|
+
...cs,
|
|
2339
|
+
...t
|
|
2340
|
+
},
|
|
2341
|
+
disabled: k.draggable
|
|
2342
|
+
}), h = Ar(Y, Q), p = !!A, $ = p && !j && de(x) && de(y), L = !R && G, z = L && $ ? c : null, K = $ ? z ?? (i ?? I)({
|
|
2343
|
+
rects: C,
|
|
2344
|
+
activeNodeRect: fe,
|
|
2345
|
+
activeIndex: x,
|
|
2346
|
+
overIndex: y,
|
|
2347
|
+
index: E
|
|
2348
|
+
}) : null, N = de(x) && de(y) ? o({
|
|
2349
|
+
id: l,
|
|
2350
|
+
items: d,
|
|
2351
|
+
activeIndex: x,
|
|
2352
|
+
overIndex: y
|
|
2353
|
+
}) : E, 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: E,
|
|
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: E,
|
|
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: D,
|
|
2395
|
+
rect: v,
|
|
2396
|
+
index: E,
|
|
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 === E
|
|
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,
|
|
2442
|
+
previewText: t,
|
|
2443
|
+
defaultExpanded: a = !1,
|
|
2444
|
+
children: n,
|
|
2445
|
+
tooltipContent: o,
|
|
2446
|
+
onRemove: l,
|
|
2447
|
+
className: i = ""
|
|
2448
|
+
}) {
|
|
2449
|
+
const [u, f] = S(a), { attributes: d, listeners: m, setNodeRef: x, transform: g, transition: j, isDragging: C } = ds({ id: e }), y = {
|
|
2450
|
+
transform: ae.Transform.toString(g),
|
|
2451
|
+
transition: j,
|
|
2452
|
+
opacity: C ? 0.5 : 1
|
|
2453
|
+
};
|
|
2454
|
+
return /* @__PURE__ */ s.jsx(
|
|
2455
|
+
"div",
|
|
2456
|
+
{
|
|
2457
|
+
ref: x,
|
|
2458
|
+
style: y,
|
|
2459
|
+
className: `border border-border rounded-md bg-surface-variant ${i}`,
|
|
2460
|
+
children: u ? (
|
|
2461
|
+
// ── Expanded ──────────────────────────────────────────────────────────
|
|
2462
|
+
/* @__PURE__ */ s.jsxs("div", { className: "p-3", children: [
|
|
2463
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex justify-between items-center mb-2", children: [
|
|
2464
|
+
/* @__PURE__ */ s.jsx(
|
|
2465
|
+
U,
|
|
2466
|
+
{
|
|
2467
|
+
type: "button",
|
|
2468
|
+
variant: "ghost",
|
|
2469
|
+
size: "icon",
|
|
2470
|
+
...d,
|
|
2471
|
+
...m,
|
|
2472
|
+
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing",
|
|
2473
|
+
"aria-label": "Drag to reorder",
|
|
2474
|
+
leftIcon: /* @__PURE__ */ s.jsx(Ie, { className: "w-4 h-4" })
|
|
2475
|
+
}
|
|
2476
|
+
),
|
|
2477
|
+
/* @__PURE__ */ s.jsxs(
|
|
2478
|
+
"span",
|
|
2479
|
+
{
|
|
2480
|
+
className: "text-sm font-medium text-text-secondary flex-1 cursor-pointer select-none",
|
|
2481
|
+
onClick: () => f(!1),
|
|
2482
|
+
children: [
|
|
2483
|
+
"Item ",
|
|
2484
|
+
r + 1
|
|
2485
|
+
]
|
|
2486
|
+
}
|
|
2487
|
+
),
|
|
2488
|
+
/* @__PURE__ */ s.jsx(
|
|
2489
|
+
U,
|
|
2490
|
+
{
|
|
2491
|
+
type: "button",
|
|
2492
|
+
variant: "ghost",
|
|
2493
|
+
size: "icon",
|
|
2494
|
+
onClick: () => f(!1),
|
|
2495
|
+
className: "h-auto w-auto p-1",
|
|
2496
|
+
"aria-label": "Collapse",
|
|
2497
|
+
leftIcon: /* @__PURE__ */ s.jsx(Oe, { className: "w-4 h-4 transition-transform rotate-90" })
|
|
2498
|
+
}
|
|
2499
|
+
),
|
|
2500
|
+
/* @__PURE__ */ s.jsx(
|
|
2501
|
+
U,
|
|
2502
|
+
{
|
|
2503
|
+
type: "button",
|
|
2504
|
+
variant: "ghost",
|
|
2505
|
+
size: "icon",
|
|
2506
|
+
onClick: l,
|
|
2507
|
+
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800",
|
|
2508
|
+
"aria-label": "Remove",
|
|
2509
|
+
leftIcon: /* @__PURE__ */ s.jsx(be, { className: "w-4 h-4" })
|
|
2510
|
+
}
|
|
2511
|
+
)
|
|
2512
|
+
] }),
|
|
2513
|
+
n
|
|
2514
|
+
] })
|
|
2515
|
+
) : (
|
|
2516
|
+
// ── Collapsed ─────────────────────────────────────────────────────────
|
|
2517
|
+
/* @__PURE__ */ s.jsxs("div", { className: "relative group", children: [
|
|
2518
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 px-3 py-2", children: [
|
|
2519
|
+
/* @__PURE__ */ s.jsx(
|
|
2520
|
+
U,
|
|
2521
|
+
{
|
|
2522
|
+
type: "button",
|
|
2523
|
+
variant: "ghost",
|
|
2524
|
+
size: "icon",
|
|
2525
|
+
...d,
|
|
2526
|
+
...m,
|
|
2527
|
+
className: "h-auto w-auto p-1 cursor-grab active:cursor-grabbing flex-shrink-0",
|
|
2528
|
+
"aria-label": "Drag to reorder",
|
|
2529
|
+
onClick: (R) => R.stopPropagation(),
|
|
2530
|
+
leftIcon: /* @__PURE__ */ s.jsx(Ie, { className: "w-4 h-4" })
|
|
2531
|
+
}
|
|
2532
|
+
),
|
|
2533
|
+
/* @__PURE__ */ s.jsx(
|
|
2534
|
+
"span",
|
|
2535
|
+
{
|
|
2536
|
+
className: "flex-1 text-sm text-text-secondary truncate cursor-pointer select-none",
|
|
2537
|
+
onClick: () => f(!0),
|
|
2538
|
+
children: t
|
|
2539
|
+
}
|
|
2540
|
+
),
|
|
2541
|
+
/* @__PURE__ */ s.jsx(
|
|
2542
|
+
U,
|
|
2543
|
+
{
|
|
2544
|
+
type: "button",
|
|
2545
|
+
variant: "ghost",
|
|
2546
|
+
size: "icon",
|
|
2547
|
+
onClick: () => f(!0),
|
|
2548
|
+
className: "h-auto w-auto p-1 flex-shrink-0",
|
|
2549
|
+
"aria-label": "Expand",
|
|
2550
|
+
leftIcon: /* @__PURE__ */ s.jsx(Oe, { className: "w-4 h-4 transition-transform" })
|
|
2551
|
+
}
|
|
2552
|
+
),
|
|
2553
|
+
/* @__PURE__ */ s.jsx(
|
|
2554
|
+
U,
|
|
2555
|
+
{
|
|
2556
|
+
type: "button",
|
|
2557
|
+
variant: "ghost",
|
|
2558
|
+
size: "icon",
|
|
2559
|
+
onClick: l,
|
|
2560
|
+
className: "h-auto w-auto p-1 text-error-600 hover:text-error-800 flex-shrink-0",
|
|
2561
|
+
"aria-label": "Remove",
|
|
2562
|
+
leftIcon: /* @__PURE__ */ s.jsx(be, { className: "w-4 h-4" })
|
|
2563
|
+
}
|
|
2564
|
+
)
|
|
2565
|
+
] }),
|
|
2566
|
+
o && /* @__PURE__ */ s.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: o })
|
|
2567
|
+
] })
|
|
2568
|
+
)
|
|
2569
|
+
}
|
|
2570
|
+
);
|
|
1735
2571
|
}
|
|
2572
|
+
ms.displayName = "SortableItem";
|
|
1736
2573
|
export {
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
2574
|
+
$s as Accordion,
|
|
2575
|
+
Ts as Alert,
|
|
2576
|
+
Vr as Badge,
|
|
2577
|
+
U as Button,
|
|
2578
|
+
Cs as Card,
|
|
2579
|
+
Rs as CheckboxGroup,
|
|
2580
|
+
gr as ColorPalette,
|
|
2581
|
+
Ns as Demo,
|
|
2582
|
+
Vs as FormField,
|
|
2583
|
+
Rr as Input,
|
|
2584
|
+
Ds as OptionCard,
|
|
2585
|
+
Es as RadioGroup,
|
|
2586
|
+
ks as Section,
|
|
2587
|
+
Er as Select,
|
|
2588
|
+
js as Sidebar,
|
|
2589
|
+
Ir as Slider,
|
|
2590
|
+
Nr as SocialButton,
|
|
2591
|
+
ms as SortableItem,
|
|
2592
|
+
Os as Stepper,
|
|
2593
|
+
Is as TabBar,
|
|
2594
|
+
$r as TagInput,
|
|
2595
|
+
Dr as Textarea,
|
|
2596
|
+
vr as ThemeProvider,
|
|
2597
|
+
br as ThemeToggle,
|
|
2598
|
+
ws as clearAllErrors,
|
|
2599
|
+
ps as clearFieldError,
|
|
2600
|
+
bs as getFirstError,
|
|
2601
|
+
ir as hasErrors,
|
|
2602
|
+
ys as useForm,
|
|
2603
|
+
hr as useTheme,
|
|
2604
|
+
cr as validateField,
|
|
2605
|
+
ve as validateForm,
|
|
2606
|
+
hs as validators
|
|
1769
2607
|
};
|