@uxuissk/design-system 0.3.0 → 0.4.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/sellsuki-ds.js +1124 -1086
- package/dist/sellsuki-ds.js.map +1 -1
- package/dist/sellsuki-ds.umd.cjs +107 -107
- package/dist/sellsuki-ds.umd.cjs.map +1 -1
- package/dist/types/index.d.ts +32 -4
- package/package.json +7 -7
package/dist/sellsuki-ds.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as e, jsxs as s, Fragment as
|
|
2
|
-
import tt, { forwardRef as he, createElement as
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as Qe } from "react/jsx-runtime";
|
|
2
|
+
import tt, { forwardRef as he, createElement as Pe, useState as $, useCallback as ee, useRef as X, useContext as er, createContext as tr, useEffect as V, useMemo as re } from "react";
|
|
3
3
|
import { createPortal as rt } from "react-dom";
|
|
4
4
|
/**
|
|
5
5
|
* @license lucide-react v0.487.0 - ISC
|
|
@@ -44,10 +44,10 @@ const ar = he(
|
|
|
44
44
|
strokeWidth: o = 2,
|
|
45
45
|
absoluteStrokeWidth: n,
|
|
46
46
|
className: a = "",
|
|
47
|
-
children:
|
|
48
|
-
iconNode:
|
|
47
|
+
children: l,
|
|
48
|
+
iconNode: i,
|
|
49
49
|
...c
|
|
50
|
-
}, d) =>
|
|
50
|
+
}, d) => Pe(
|
|
51
51
|
"svg",
|
|
52
52
|
{
|
|
53
53
|
ref: d,
|
|
@@ -60,8 +60,8 @@ const ar = he(
|
|
|
60
60
|
...c
|
|
61
61
|
},
|
|
62
62
|
[
|
|
63
|
-
...
|
|
64
|
-
...Array.isArray(
|
|
63
|
+
...i.map(([f, m]) => Pe(f, m)),
|
|
64
|
+
...Array.isArray(l) ? l : [l]
|
|
65
65
|
]
|
|
66
66
|
)
|
|
67
67
|
);
|
|
@@ -71,10 +71,10 @@ const ar = he(
|
|
|
71
71
|
* This source code is licensed under the ISC license.
|
|
72
72
|
* See the LICENSE file in the root directory of this source tree.
|
|
73
73
|
*/
|
|
74
|
-
const
|
|
74
|
+
const F = (t, r) => {
|
|
75
75
|
const o = he(
|
|
76
|
-
({ className: n, ...a },
|
|
77
|
-
ref:
|
|
76
|
+
({ className: n, ...a }, l) => Pe(ar, {
|
|
77
|
+
ref: l,
|
|
78
78
|
iconNode: r,
|
|
79
79
|
className: zt(
|
|
80
80
|
`lucide-${rr(dt(t))}`,
|
|
@@ -95,24 +95,24 @@ const z = (t, r) => {
|
|
|
95
95
|
const sr = [
|
|
96
96
|
["path", { d: "m7 7 10 10", key: "1fmybs" }],
|
|
97
97
|
["path", { d: "M17 7v10H7", key: "6fjiku" }]
|
|
98
|
-
], Ft =
|
|
98
|
+
], Ft = F("arrow-down-right", sr);
|
|
99
99
|
/**
|
|
100
100
|
* @license lucide-react v0.487.0 - ISC
|
|
101
101
|
*
|
|
102
102
|
* This source code is licensed under the ISC license.
|
|
103
103
|
* See the LICENSE file in the root directory of this source tree.
|
|
104
104
|
*/
|
|
105
|
-
const
|
|
105
|
+
const ir = [
|
|
106
106
|
["path", { d: "M7 7h10v10", key: "1tivn9" }],
|
|
107
107
|
["path", { d: "M7 17 17 7", key: "1vkiza" }]
|
|
108
|
-
], Wt =
|
|
108
|
+
], Wt = F("arrow-up-right", ir);
|
|
109
109
|
/**
|
|
110
110
|
* @license lucide-react v0.487.0 - ISC
|
|
111
111
|
*
|
|
112
112
|
* This source code is licensed under the ISC license.
|
|
113
113
|
* See the LICENSE file in the root directory of this source tree.
|
|
114
114
|
*/
|
|
115
|
-
const
|
|
115
|
+
const lr = [
|
|
116
116
|
["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
|
|
117
117
|
[
|
|
118
118
|
"path",
|
|
@@ -123,7 +123,7 @@ const ir = [
|
|
|
123
123
|
],
|
|
124
124
|
["path", { d: "m2 2 20 20", key: "1ooewy" }],
|
|
125
125
|
["path", { d: "M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05", key: "1hqiys" }]
|
|
126
|
-
], cr =
|
|
126
|
+
], cr = F("bell-off", lr);
|
|
127
127
|
/**
|
|
128
128
|
* @license lucide-react v0.487.0 - ISC
|
|
129
129
|
*
|
|
@@ -139,7 +139,7 @@ const dr = [
|
|
|
139
139
|
key: "11g9vi"
|
|
140
140
|
}
|
|
141
141
|
]
|
|
142
|
-
], Mt =
|
|
142
|
+
], Mt = F("bell", dr);
|
|
143
143
|
/**
|
|
144
144
|
* @license lucide-react v0.487.0 - ISC
|
|
145
145
|
*
|
|
@@ -151,42 +151,42 @@ const ur = [
|
|
|
151
151
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
152
152
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
153
153
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
154
|
-
], fr =
|
|
154
|
+
], fr = F("calendar", ur);
|
|
155
155
|
/**
|
|
156
156
|
* @license lucide-react v0.487.0 - ISC
|
|
157
157
|
*
|
|
158
158
|
* This source code is licensed under the ISC license.
|
|
159
159
|
* See the LICENSE file in the root directory of this source tree.
|
|
160
160
|
*/
|
|
161
|
-
const mr = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], me =
|
|
161
|
+
const mr = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], me = F("check", mr);
|
|
162
162
|
/**
|
|
163
163
|
* @license lucide-react v0.487.0 - ISC
|
|
164
164
|
*
|
|
165
165
|
* This source code is licensed under the ISC license.
|
|
166
166
|
* See the LICENSE file in the root directory of this source tree.
|
|
167
167
|
*/
|
|
168
|
-
const hr = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]],
|
|
168
|
+
const hr = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ie = F("chevron-down", hr);
|
|
169
169
|
/**
|
|
170
170
|
* @license lucide-react v0.487.0 - ISC
|
|
171
171
|
*
|
|
172
172
|
* This source code is licensed under the ISC license.
|
|
173
173
|
* See the LICENSE file in the root directory of this source tree.
|
|
174
174
|
*/
|
|
175
|
-
const br = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Se =
|
|
175
|
+
const br = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Se = F("chevron-left", br);
|
|
176
176
|
/**
|
|
177
177
|
* @license lucide-react v0.487.0 - ISC
|
|
178
178
|
*
|
|
179
179
|
* This source code is licensed under the ISC license.
|
|
180
180
|
* See the LICENSE file in the root directory of this source tree.
|
|
181
181
|
*/
|
|
182
|
-
const pr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
182
|
+
const pr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ie = F("chevron-right", pr);
|
|
183
183
|
/**
|
|
184
184
|
* @license lucide-react v0.487.0 - ISC
|
|
185
185
|
*
|
|
186
186
|
* This source code is licensed under the ISC license.
|
|
187
187
|
* See the LICENSE file in the root directory of this source tree.
|
|
188
188
|
*/
|
|
189
|
-
const gr = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], vr =
|
|
189
|
+
const gr = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], vr = F("chevron-up", gr);
|
|
190
190
|
/**
|
|
191
191
|
* @license lucide-react v0.487.0 - ISC
|
|
192
192
|
*
|
|
@@ -196,7 +196,7 @@ const gr = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], vr = z("chevron-u
|
|
|
196
196
|
const xr = [
|
|
197
197
|
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
|
198
198
|
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
|
199
|
-
], nt =
|
|
199
|
+
], nt = F("chevrons-left", xr);
|
|
200
200
|
/**
|
|
201
201
|
* @license lucide-react v0.487.0 - ISC
|
|
202
202
|
*
|
|
@@ -206,7 +206,7 @@ const xr = [
|
|
|
206
206
|
const yr = [
|
|
207
207
|
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
|
208
208
|
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
|
209
|
-
], ot =
|
|
209
|
+
], ot = F("chevrons-right", yr);
|
|
210
210
|
/**
|
|
211
211
|
* @license lucide-react v0.487.0 - ISC
|
|
212
212
|
*
|
|
@@ -216,7 +216,7 @@ const yr = [
|
|
|
216
216
|
const wr = [
|
|
217
217
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
218
218
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
219
|
-
], Nr =
|
|
219
|
+
], Nr = F("chevrons-up-down", wr);
|
|
220
220
|
/**
|
|
221
221
|
* @license lucide-react v0.487.0 - ISC
|
|
222
222
|
*
|
|
@@ -227,7 +227,7 @@ const kr = [
|
|
|
227
227
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
228
228
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
229
229
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
230
|
-
],
|
|
230
|
+
], Be = F("circle-alert", kr);
|
|
231
231
|
/**
|
|
232
232
|
* @license lucide-react v0.487.0 - ISC
|
|
233
233
|
*
|
|
@@ -237,7 +237,7 @@ const kr = [
|
|
|
237
237
|
const $r = [
|
|
238
238
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
239
239
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
240
|
-
],
|
|
240
|
+
], le = F("circle-check", $r);
|
|
241
241
|
/**
|
|
242
242
|
* @license lucide-react v0.487.0 - ISC
|
|
243
243
|
*
|
|
@@ -248,14 +248,14 @@ const Sr = [
|
|
|
248
248
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
249
249
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
250
250
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
251
|
-
], _t =
|
|
251
|
+
], _t = F("circle-x", Sr);
|
|
252
252
|
/**
|
|
253
253
|
* @license lucide-react v0.487.0 - ISC
|
|
254
254
|
*
|
|
255
255
|
* This source code is licensed under the ISC license.
|
|
256
256
|
* See the LICENSE file in the root directory of this source tree.
|
|
257
257
|
*/
|
|
258
|
-
const zr = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], ut =
|
|
258
|
+
const zr = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], ut = F("circle", zr);
|
|
259
259
|
/**
|
|
260
260
|
* @license lucide-react v0.487.0 - ISC
|
|
261
261
|
*
|
|
@@ -265,7 +265,7 @@ const zr = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], ut = z(
|
|
|
265
265
|
const Fr = [
|
|
266
266
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
267
267
|
["polyline", { points: "12 6 12 12 16 14", key: "68esgv" }]
|
|
268
|
-
], Wr =
|
|
268
|
+
], Wr = F("clock", Fr);
|
|
269
269
|
/**
|
|
270
270
|
* @license lucide-react v0.487.0 - ISC
|
|
271
271
|
*
|
|
@@ -275,14 +275,14 @@ const Fr = [
|
|
|
275
275
|
const Mr = [
|
|
276
276
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
277
277
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
278
|
-
], ft =
|
|
278
|
+
], ft = F("copy", Mr);
|
|
279
279
|
/**
|
|
280
280
|
* @license lucide-react v0.487.0 - ISC
|
|
281
281
|
*
|
|
282
282
|
* This source code is licensed under the ISC license.
|
|
283
283
|
* See the LICENSE file in the root directory of this source tree.
|
|
284
284
|
*/
|
|
285
|
-
const _r = [["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]], Cr =
|
|
285
|
+
const _r = [["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]], Cr = F("dot", _r);
|
|
286
286
|
/**
|
|
287
287
|
* @license lucide-react v0.487.0 - ISC
|
|
288
288
|
*
|
|
@@ -293,7 +293,7 @@ const Lr = [
|
|
|
293
293
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
294
294
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
295
295
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
296
|
-
], Ct =
|
|
296
|
+
], Ct = F("ellipsis", Lr);
|
|
297
297
|
/**
|
|
298
298
|
* @license lucide-react v0.487.0 - ISC
|
|
299
299
|
*
|
|
@@ -304,7 +304,7 @@ const jr = [
|
|
|
304
304
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
305
305
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
306
306
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
307
|
-
], Ar =
|
|
307
|
+
], Ar = F("external-link", jr);
|
|
308
308
|
/**
|
|
309
309
|
* @license lucide-react v0.487.0 - ISC
|
|
310
310
|
*
|
|
@@ -328,7 +328,7 @@ const Dr = [
|
|
|
328
328
|
}
|
|
329
329
|
],
|
|
330
330
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
331
|
-
], Tr =
|
|
331
|
+
], Tr = F("eye-off", Dr);
|
|
332
332
|
/**
|
|
333
333
|
* @license lucide-react v0.487.0 - ISC
|
|
334
334
|
*
|
|
@@ -344,7 +344,7 @@ const Ir = [
|
|
|
344
344
|
}
|
|
345
345
|
],
|
|
346
346
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
347
|
-
], Br =
|
|
347
|
+
], Br = F("eye", Ir);
|
|
348
348
|
/**
|
|
349
349
|
* @license lucide-react v0.487.0 - ISC
|
|
350
350
|
*
|
|
@@ -357,7 +357,7 @@ const Er = [
|
|
|
357
357
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
358
358
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
359
359
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
360
|
-
], Hr =
|
|
360
|
+
], Hr = F("file-text", Er);
|
|
361
361
|
/**
|
|
362
362
|
* @license lucide-react v0.487.0 - ISC
|
|
363
363
|
*
|
|
@@ -367,7 +367,7 @@ const Er = [
|
|
|
367
367
|
const Yr = [
|
|
368
368
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
369
369
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }]
|
|
370
|
-
], Lt =
|
|
370
|
+
], Lt = F("file", Yr);
|
|
371
371
|
/**
|
|
372
372
|
* @license lucide-react v0.487.0 - ISC
|
|
373
373
|
*
|
|
@@ -383,14 +383,14 @@ const Rr = [
|
|
|
383
383
|
["path", { d: "M17 3v18", key: "in4fa5" }],
|
|
384
384
|
["path", { d: "M17 7.5h4", key: "myr1c1" }],
|
|
385
385
|
["path", { d: "M17 16.5h4", key: "go4c1d" }]
|
|
386
|
-
], qr =
|
|
386
|
+
], qr = F("film", Rr);
|
|
387
387
|
/**
|
|
388
388
|
* @license lucide-react v0.487.0 - ISC
|
|
389
389
|
*
|
|
390
390
|
* This source code is licensed under the ISC license.
|
|
391
391
|
* See the LICENSE file in the root directory of this source tree.
|
|
392
392
|
*/
|
|
393
|
-
const
|
|
393
|
+
const Or = [
|
|
394
394
|
[
|
|
395
395
|
"path",
|
|
396
396
|
{
|
|
@@ -398,7 +398,7 @@ const Ur = [
|
|
|
398
398
|
key: "usdka0"
|
|
399
399
|
}
|
|
400
400
|
]
|
|
401
|
-
],
|
|
401
|
+
], Ur = F("folder-open", Or);
|
|
402
402
|
/**
|
|
403
403
|
* @license lucide-react v0.487.0 - ISC
|
|
404
404
|
*
|
|
@@ -413,7 +413,7 @@ const Kr = [
|
|
|
413
413
|
key: "1kt360"
|
|
414
414
|
}
|
|
415
415
|
]
|
|
416
|
-
], Xr =
|
|
416
|
+
], Xr = F("folder", Kr);
|
|
417
417
|
/**
|
|
418
418
|
* @license lucide-react v0.487.0 - ISC
|
|
419
419
|
*
|
|
@@ -428,7 +428,7 @@ const Zr = [
|
|
|
428
428
|
key: "c3ymky"
|
|
429
429
|
}
|
|
430
430
|
]
|
|
431
|
-
], Gr =
|
|
431
|
+
], Gr = F("heart", Zr);
|
|
432
432
|
/**
|
|
433
433
|
* @license lucide-react v0.487.0 - ISC
|
|
434
434
|
*
|
|
@@ -439,7 +439,7 @@ const Jr = [
|
|
|
439
439
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
440
440
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
441
441
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
442
|
-
], Qr =
|
|
442
|
+
], Qr = F("image", Jr);
|
|
443
443
|
/**
|
|
444
444
|
* @license lucide-react v0.487.0 - ISC
|
|
445
445
|
*
|
|
@@ -455,7 +455,7 @@ const Pr = [
|
|
|
455
455
|
key: "oot6mr"
|
|
456
456
|
}
|
|
457
457
|
]
|
|
458
|
-
], Vr =
|
|
458
|
+
], Vr = F("inbox", Pr);
|
|
459
459
|
/**
|
|
460
460
|
* @license lucide-react v0.487.0 - ISC
|
|
461
461
|
*
|
|
@@ -466,14 +466,14 @@ const en = [
|
|
|
466
466
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
467
467
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
468
468
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
469
|
-
], jt =
|
|
469
|
+
], jt = F("info", en);
|
|
470
470
|
/**
|
|
471
471
|
* @license lucide-react v0.487.0 - ISC
|
|
472
472
|
*
|
|
473
473
|
* This source code is licensed under the ISC license.
|
|
474
474
|
* See the LICENSE file in the root directory of this source tree.
|
|
475
475
|
*/
|
|
476
|
-
const tn = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ze =
|
|
476
|
+
const tn = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ze = F("loader-circle", tn);
|
|
477
477
|
/**
|
|
478
478
|
* @license lucide-react v0.487.0 - ISC
|
|
479
479
|
*
|
|
@@ -484,14 +484,14 @@ const rn = [
|
|
|
484
484
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
485
485
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
486
486
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
487
|
-
], nn =
|
|
487
|
+
], nn = F("menu", rn);
|
|
488
488
|
/**
|
|
489
489
|
* @license lucide-react v0.487.0 - ISC
|
|
490
490
|
*
|
|
491
491
|
* This source code is licensed under the ISC license.
|
|
492
492
|
* See the LICENSE file in the root directory of this source tree.
|
|
493
493
|
*/
|
|
494
|
-
const on = [["path", { d: "M5 12h14", key: "1ays0h" }]], at =
|
|
494
|
+
const on = [["path", { d: "M5 12h14", key: "1ays0h" }]], at = F("minus", on);
|
|
495
495
|
/**
|
|
496
496
|
* @license lucide-react v0.487.0 - ISC
|
|
497
497
|
*
|
|
@@ -501,7 +501,7 @@ const on = [["path", { d: "M5 12h14", key: "1ays0h" }]], at = z("minus", on);
|
|
|
501
501
|
const an = [
|
|
502
502
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
503
503
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
504
|
-
], sn =
|
|
504
|
+
], sn = F("plus", an);
|
|
505
505
|
/**
|
|
506
506
|
* @license lucide-react v0.487.0 - ISC
|
|
507
507
|
*
|
|
@@ -511,7 +511,7 @@ const an = [
|
|
|
511
511
|
const ln = [
|
|
512
512
|
["path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8", key: "1p45f6" }],
|
|
513
513
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }]
|
|
514
|
-
], cn =
|
|
514
|
+
], cn = F("rotate-cw", ln);
|
|
515
515
|
/**
|
|
516
516
|
* @license lucide-react v0.487.0 - ISC
|
|
517
517
|
*
|
|
@@ -521,14 +521,14 @@ const ln = [
|
|
|
521
521
|
const dn = [
|
|
522
522
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
523
523
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
524
|
-
],
|
|
524
|
+
], Ee = F("search", dn);
|
|
525
525
|
/**
|
|
526
526
|
* @license lucide-react v0.487.0 - ISC
|
|
527
527
|
*
|
|
528
528
|
* This source code is licensed under the ISC license.
|
|
529
529
|
* See the LICENSE file in the root directory of this source tree.
|
|
530
530
|
*/
|
|
531
|
-
const un = [["path", { d: "M22 2 2 22", key: "y4kqgn" }]], fn =
|
|
531
|
+
const un = [["path", { d: "M22 2 2 22", key: "y4kqgn" }]], fn = F("slash", un);
|
|
532
532
|
/**
|
|
533
533
|
* @license lucide-react v0.487.0 - ISC
|
|
534
534
|
*
|
|
@@ -543,7 +543,7 @@ const mn = [
|
|
|
543
543
|
key: "r04s7s"
|
|
544
544
|
}
|
|
545
545
|
]
|
|
546
|
-
], hn =
|
|
546
|
+
], hn = F("star", mn);
|
|
547
547
|
/**
|
|
548
548
|
* @license lucide-react v0.487.0 - ISC
|
|
549
549
|
*
|
|
@@ -559,7 +559,7 @@ const bn = [
|
|
|
559
559
|
key: "emmmcr"
|
|
560
560
|
}
|
|
561
561
|
]
|
|
562
|
-
], pn =
|
|
562
|
+
], pn = F("thumbs-up", bn);
|
|
563
563
|
/**
|
|
564
564
|
* @license lucide-react v0.487.0 - ISC
|
|
565
565
|
*
|
|
@@ -576,7 +576,7 @@ const gn = [
|
|
|
576
576
|
],
|
|
577
577
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
578
578
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
579
|
-
], At =
|
|
579
|
+
], At = F("triangle-alert", gn);
|
|
580
580
|
/**
|
|
581
581
|
* @license lucide-react v0.487.0 - ISC
|
|
582
582
|
*
|
|
@@ -587,7 +587,7 @@ const vn = [
|
|
|
587
587
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
588
588
|
["polyline", { points: "17 8 12 3 7 8", key: "t8dd8p" }],
|
|
589
589
|
["line", { x1: "12", x2: "12", y1: "3", y2: "15", key: "widbto" }]
|
|
590
|
-
],
|
|
590
|
+
], Ke = F("upload", vn);
|
|
591
591
|
/**
|
|
592
592
|
* @license lucide-react v0.487.0 - ISC
|
|
593
593
|
*
|
|
@@ -597,7 +597,7 @@ const vn = [
|
|
|
597
597
|
const xn = [
|
|
598
598
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
599
599
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
600
|
-
], J =
|
|
600
|
+
], J = F("x", xn);
|
|
601
601
|
/**
|
|
602
602
|
* @license lucide-react v0.487.0 - ISC
|
|
603
603
|
*
|
|
@@ -609,7 +609,7 @@ const yn = [
|
|
|
609
609
|
["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
|
|
610
610
|
["line", { x1: "11", x2: "11", y1: "8", y2: "14", key: "1vmskp" }],
|
|
611
611
|
["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
|
|
612
|
-
], wn =
|
|
612
|
+
], wn = F("zoom-in", yn);
|
|
613
613
|
/**
|
|
614
614
|
* @license lucide-react v0.487.0 - ISC
|
|
615
615
|
*
|
|
@@ -620,7 +620,7 @@ const Nn = [
|
|
|
620
620
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
621
621
|
["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
|
|
622
622
|
["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
|
|
623
|
-
], kn =
|
|
623
|
+
], kn = F("zoom-out", Nn), $n = {
|
|
624
624
|
sm: "h-8 px-3 gap-1.5",
|
|
625
625
|
md: "h-10 px-4 gap-2",
|
|
626
626
|
lg: "h-12 px-6 gap-2.5",
|
|
@@ -649,38 +649,38 @@ const Nn = [
|
|
|
649
649
|
loading: o = !1,
|
|
650
650
|
loadingText: n,
|
|
651
651
|
leftIcon: a,
|
|
652
|
-
rightIcon:
|
|
653
|
-
fullWidth:
|
|
652
|
+
rightIcon: l,
|
|
653
|
+
fullWidth: i = !1,
|
|
654
654
|
active: c = !1,
|
|
655
655
|
disabled: d,
|
|
656
656
|
children: f,
|
|
657
|
-
className:
|
|
657
|
+
className: m = "",
|
|
658
658
|
...p
|
|
659
659
|
}, g) => {
|
|
660
|
-
const
|
|
660
|
+
const u = d || o;
|
|
661
661
|
return /* @__PURE__ */ e(
|
|
662
662
|
"button",
|
|
663
663
|
{
|
|
664
664
|
ref: g,
|
|
665
|
-
disabled:
|
|
665
|
+
disabled: u,
|
|
666
666
|
className: `inline-flex items-center justify-center rounded-[var(--radius-md)] transition-all duration-150
|
|
667
667
|
${$n[r]}
|
|
668
668
|
${Tt[t]}
|
|
669
|
-
${
|
|
669
|
+
${i ? "w-full" : ""}
|
|
670
670
|
${c ? "ring-2 ring-ring/30" : ""}
|
|
671
|
-
${
|
|
671
|
+
${u ? "opacity-50 cursor-not-allowed pointer-events-none" : "cursor-pointer active:scale-[0.98]"}
|
|
672
672
|
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40
|
|
673
|
-
${
|
|
673
|
+
${m}
|
|
674
674
|
`,
|
|
675
675
|
style: Sn[r],
|
|
676
676
|
...p,
|
|
677
|
-
children: o ? /* @__PURE__ */ s(
|
|
677
|
+
children: o ? /* @__PURE__ */ s(Qe, { children: [
|
|
678
678
|
/* @__PURE__ */ e(ze, { size: Dt[r], className: "animate-spin flex-shrink-0" }),
|
|
679
679
|
n && /* @__PURE__ */ e("span", { children: n })
|
|
680
|
-
] }) : /* @__PURE__ */ s(
|
|
680
|
+
] }) : /* @__PURE__ */ s(Qe, { children: [
|
|
681
681
|
a && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: a }),
|
|
682
682
|
f && /* @__PURE__ */ e("span", { children: f }),
|
|
683
|
-
|
|
683
|
+
l && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: l })
|
|
684
684
|
] })
|
|
685
685
|
}
|
|
686
686
|
);
|
|
@@ -694,8 +694,8 @@ const Fn = he(
|
|
|
694
694
|
loading: o = !1,
|
|
695
695
|
icon: n,
|
|
696
696
|
disabled: a,
|
|
697
|
-
className:
|
|
698
|
-
...
|
|
697
|
+
className: l = "",
|
|
698
|
+
...i
|
|
699
699
|
}, c) => {
|
|
700
700
|
const d = a || o;
|
|
701
701
|
return /* @__PURE__ */ e(
|
|
@@ -713,9 +713,9 @@ const Fn = he(
|
|
|
713
713
|
${Tt[t]}
|
|
714
714
|
${d ? "opacity-50 cursor-not-allowed pointer-events-none" : "cursor-pointer active:scale-[0.98]"}
|
|
715
715
|
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40
|
|
716
|
-
${
|
|
716
|
+
${l}
|
|
717
717
|
`,
|
|
718
|
-
...
|
|
718
|
+
...i,
|
|
719
719
|
children: o ? /* @__PURE__ */ e(ze, { size: Dt[r], className: "animate-spin" }) : n
|
|
720
720
|
}
|
|
721
721
|
);
|
|
@@ -787,49 +787,49 @@ const It = {
|
|
|
787
787
|
errorMessage: o,
|
|
788
788
|
successMessage: n,
|
|
789
789
|
inputSize: a = "md",
|
|
790
|
-
variant:
|
|
791
|
-
state:
|
|
790
|
+
variant: l = "default",
|
|
791
|
+
state: i = "default",
|
|
792
792
|
leftIcon: c,
|
|
793
793
|
rightIcon: d,
|
|
794
794
|
prefix: f,
|
|
795
|
-
suffix:
|
|
795
|
+
suffix: m,
|
|
796
796
|
clearable: p = !1,
|
|
797
797
|
showPasswordToggle: g = !1,
|
|
798
|
-
loading:
|
|
799
|
-
fullWidth:
|
|
800
|
-
required:
|
|
798
|
+
loading: u = !1,
|
|
799
|
+
fullWidth: N = !0,
|
|
800
|
+
required: w = !1,
|
|
801
801
|
onClear: h,
|
|
802
|
-
disabled:
|
|
803
|
-
type:
|
|
804
|
-
value:
|
|
805
|
-
defaultValue:
|
|
806
|
-
onChange:
|
|
807
|
-
className:
|
|
808
|
-
...
|
|
809
|
-
},
|
|
810
|
-
const [
|
|
802
|
+
disabled: x,
|
|
803
|
+
type: A = "text",
|
|
804
|
+
value: y,
|
|
805
|
+
defaultValue: k,
|
|
806
|
+
onChange: C,
|
|
807
|
+
className: L = "",
|
|
808
|
+
...D
|
|
809
|
+
}, E) => {
|
|
810
|
+
const [z, W] = $(!1), [H, S] = $(!1), [v, T] = $(k ?? ""), q = y !== void 0 ? y : v, U = It[a], Q = Bt[l], K = o ? "error" : i, P = A === "password", O = P && H ? "text" : A, oe = ee(
|
|
811
811
|
(be) => {
|
|
812
|
-
|
|
812
|
+
T(be.target.value), C == null || C(be);
|
|
813
813
|
},
|
|
814
|
-
[
|
|
814
|
+
[C]
|
|
815
815
|
), ae = ee(() => {
|
|
816
|
-
|
|
817
|
-
}, [h]), se = String(
|
|
818
|
-
return /* @__PURE__ */ s("div", { className: `${
|
|
816
|
+
T(""), h == null || h();
|
|
817
|
+
}, [h]), se = String(q).length > 0;
|
|
818
|
+
return /* @__PURE__ */ s("div", { className: `${N ? "w-full" : "inline-flex flex-col"} ${L}`, children: [
|
|
819
819
|
t && /* @__PURE__ */ s("label", { className: "block mb-1.5 text-foreground", children: [
|
|
820
820
|
t,
|
|
821
|
-
|
|
821
|
+
w && /* @__PURE__ */ e("span", { className: "text-destructive ml-0.5", children: "*" })
|
|
822
822
|
] }),
|
|
823
823
|
/* @__PURE__ */ s(
|
|
824
824
|
"div",
|
|
825
825
|
{
|
|
826
826
|
className: `flex items-center rounded-[var(--radius-md)] transition-all duration-150
|
|
827
|
-
${
|
|
827
|
+
${U.wrapper}
|
|
828
828
|
${Q.base}
|
|
829
|
-
${
|
|
830
|
-
${
|
|
831
|
-
${
|
|
832
|
-
${Et[
|
|
829
|
+
${x ? "" : Q.hover}
|
|
830
|
+
${z && !x ? Q.focus : ""}
|
|
831
|
+
${x ? "opacity-50 cursor-not-allowed" : ""}
|
|
832
|
+
${Et[K]}
|
|
833
833
|
`,
|
|
834
834
|
children: [
|
|
835
835
|
c && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", children: c }),
|
|
@@ -837,49 +837,49 @@ const It = {
|
|
|
837
837
|
/* @__PURE__ */ e(
|
|
838
838
|
"input",
|
|
839
839
|
{
|
|
840
|
-
ref:
|
|
841
|
-
type:
|
|
842
|
-
disabled:
|
|
843
|
-
value:
|
|
840
|
+
ref: E,
|
|
841
|
+
type: O,
|
|
842
|
+
disabled: x || u,
|
|
843
|
+
value: q,
|
|
844
844
|
onChange: oe,
|
|
845
|
-
onFocus: () =>
|
|
846
|
-
onBlur: () =>
|
|
845
|
+
onFocus: () => W(!0),
|
|
846
|
+
onBlur: () => W(!1),
|
|
847
847
|
className: "flex-1 min-w-0 bg-transparent border-none outline-none text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed",
|
|
848
|
-
style:
|
|
849
|
-
...
|
|
848
|
+
style: U.textStyle,
|
|
849
|
+
...D
|
|
850
850
|
}
|
|
851
851
|
),
|
|
852
|
-
|
|
853
|
-
p && se && !
|
|
852
|
+
m && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", style: De, children: m }),
|
|
853
|
+
p && se && !x && /* @__PURE__ */ e(
|
|
854
854
|
"button",
|
|
855
855
|
{
|
|
856
856
|
type: "button",
|
|
857
857
|
onClick: ae,
|
|
858
858
|
className: "flex-shrink-0 text-muted-foreground hover:text-foreground transition-colors cursor-pointer p-0.5",
|
|
859
|
-
children: /* @__PURE__ */ e(J, { size:
|
|
859
|
+
children: /* @__PURE__ */ e(J, { size: U.icon - 2 })
|
|
860
860
|
}
|
|
861
861
|
),
|
|
862
862
|
P && g && /* @__PURE__ */ e(
|
|
863
863
|
"button",
|
|
864
864
|
{
|
|
865
865
|
type: "button",
|
|
866
|
-
onClick: () =>
|
|
866
|
+
onClick: () => S(!H),
|
|
867
867
|
className: "flex-shrink-0 text-muted-foreground hover:text-foreground transition-colors cursor-pointer p-0.5",
|
|
868
|
-
children:
|
|
868
|
+
children: H ? /* @__PURE__ */ e(Tr, { size: U.icon }) : /* @__PURE__ */ e(Br, { size: U.icon })
|
|
869
869
|
}
|
|
870
870
|
),
|
|
871
871
|
d && !P && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", children: d }),
|
|
872
|
-
|
|
872
|
+
u && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: /* @__PURE__ */ e("span", { className: "block w-4 h-4 border-2 border-muted-foreground border-t-transparent rounded-full animate-spin" }) })
|
|
873
873
|
]
|
|
874
874
|
}
|
|
875
875
|
),
|
|
876
876
|
(r || o || n) && /* @__PURE__ */ s("div", { className: "mt-1.5 flex items-center gap-1", children: [
|
|
877
|
-
|
|
878
|
-
|
|
877
|
+
K === "error" && /* @__PURE__ */ e(Be, { size: 12, className: "text-destructive flex-shrink-0" }),
|
|
878
|
+
K === "success" && /* @__PURE__ */ e(le, { size: 12, className: "text-chart-2 flex-shrink-0" }),
|
|
879
879
|
/* @__PURE__ */ e(
|
|
880
880
|
"span",
|
|
881
881
|
{
|
|
882
|
-
className: `${
|
|
882
|
+
className: `${K === "error" ? "text-destructive" : K === "success" ? "text-chart-2" : "text-muted-foreground"}`,
|
|
883
883
|
style: De,
|
|
884
884
|
children: o || n || r
|
|
885
885
|
}
|
|
@@ -896,25 +896,25 @@ const Mn = he(
|
|
|
896
896
|
errorMessage: o,
|
|
897
897
|
successMessage: n,
|
|
898
898
|
inputSize: a = "md",
|
|
899
|
-
variant:
|
|
900
|
-
state:
|
|
899
|
+
variant: l = "default",
|
|
900
|
+
state: i = "default",
|
|
901
901
|
showCharCount: c = !1,
|
|
902
902
|
maxLength: d,
|
|
903
903
|
required: f = !1,
|
|
904
|
-
disabled:
|
|
904
|
+
disabled: m,
|
|
905
905
|
value: p,
|
|
906
906
|
defaultValue: g,
|
|
907
|
-
onChange:
|
|
908
|
-
className:
|
|
909
|
-
|
|
907
|
+
onChange: u,
|
|
908
|
+
className: N = "",
|
|
909
|
+
...w
|
|
910
910
|
}, h) => {
|
|
911
|
-
const [
|
|
912
|
-
(
|
|
913
|
-
|
|
911
|
+
const [x, A] = $(!1), [y, k] = $(String(g ?? "").length), C = It[a], L = Bt[l], D = o ? "error" : i, E = ee(
|
|
912
|
+
(z) => {
|
|
913
|
+
k(z.target.value.length), u == null || u(z);
|
|
914
914
|
},
|
|
915
|
-
[
|
|
915
|
+
[u]
|
|
916
916
|
);
|
|
917
|
-
return /* @__PURE__ */ s("div", { className: `w-full ${
|
|
917
|
+
return /* @__PURE__ */ s("div", { className: `w-full ${N}`, children: [
|
|
918
918
|
t && /* @__PURE__ */ s("label", { className: "block mb-1.5 text-foreground", children: [
|
|
919
919
|
t,
|
|
920
920
|
f && /* @__PURE__ */ e("span", { className: "text-destructive ml-0.5", children: "*" })
|
|
@@ -923,27 +923,27 @@ const Mn = he(
|
|
|
923
923
|
"div",
|
|
924
924
|
{
|
|
925
925
|
className: `transition-all duration-150 overflow-hidden rounded-[var(--radius-md)]
|
|
926
|
-
${
|
|
927
|
-
${
|
|
928
|
-
${
|
|
929
|
-
${
|
|
930
|
-
${Et[
|
|
926
|
+
${L.base}
|
|
927
|
+
${m ? "" : L.hover}
|
|
928
|
+
${x && !m ? L.focus : ""}
|
|
929
|
+
${m ? "opacity-50 cursor-not-allowed" : ""}
|
|
930
|
+
${Et[D]}
|
|
931
931
|
`,
|
|
932
932
|
children: [
|
|
933
933
|
/* @__PURE__ */ e(
|
|
934
934
|
"textarea",
|
|
935
935
|
{
|
|
936
936
|
ref: h,
|
|
937
|
-
disabled:
|
|
937
|
+
disabled: m,
|
|
938
938
|
value: p,
|
|
939
939
|
defaultValue: g,
|
|
940
940
|
maxLength: d,
|
|
941
|
-
onChange:
|
|
942
|
-
onFocus: () =>
|
|
943
|
-
onBlur: () =>
|
|
941
|
+
onChange: E,
|
|
942
|
+
onFocus: () => A(!0),
|
|
943
|
+
onBlur: () => A(!1),
|
|
944
944
|
className: "w-full min-h-[100px] px-3 py-2.5 bg-transparent border-none outline-none text-foreground placeholder:text-muted-foreground resize-y disabled:cursor-not-allowed",
|
|
945
|
-
style:
|
|
946
|
-
|
|
945
|
+
style: C.textStyle,
|
|
946
|
+
...w
|
|
947
947
|
}
|
|
948
948
|
),
|
|
949
949
|
c && /* @__PURE__ */ s(
|
|
@@ -952,7 +952,7 @@ const Mn = he(
|
|
|
952
952
|
className: "flex justify-end px-3 py-1.5 border-t border-border text-muted-foreground bg-muted/20",
|
|
953
953
|
style: { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-label)" },
|
|
954
954
|
children: [
|
|
955
|
-
|
|
955
|
+
y,
|
|
956
956
|
d ? ` / ${d}` : "",
|
|
957
957
|
" chars"
|
|
958
958
|
]
|
|
@@ -962,12 +962,12 @@ const Mn = he(
|
|
|
962
962
|
}
|
|
963
963
|
),
|
|
964
964
|
(r || o || n) && /* @__PURE__ */ s("div", { className: "mt-1.5 flex items-center gap-1", children: [
|
|
965
|
-
|
|
966
|
-
|
|
965
|
+
D === "error" && /* @__PURE__ */ e(Be, { size: 12, className: "text-destructive flex-shrink-0" }),
|
|
966
|
+
D === "success" && /* @__PURE__ */ e(le, { size: 12, className: "text-chart-2 flex-shrink-0" }),
|
|
967
967
|
/* @__PURE__ */ e(
|
|
968
968
|
"span",
|
|
969
969
|
{
|
|
970
|
-
className: `${
|
|
970
|
+
className: `${D === "error" ? "text-destructive" : D === "success" ? "text-chart-2" : "text-muted-foreground"}`,
|
|
971
971
|
style: De,
|
|
972
972
|
children: o || n || r
|
|
973
973
|
}
|
|
@@ -979,22 +979,22 @@ const Mn = he(
|
|
|
979
979
|
Mn.displayName = "DSTextarea";
|
|
980
980
|
const _n = {
|
|
981
981
|
info: { bg: "bg-primary/5", border: "border-primary/30", text: "text-primary", icon: /* @__PURE__ */ e(jt, { size: 18 }) },
|
|
982
|
-
success: { bg: "bg-chart-2/5", border: "border-chart-2/30", text: "text-chart-2", icon: /* @__PURE__ */ e(
|
|
982
|
+
success: { bg: "bg-chart-2/5", border: "border-chart-2/30", text: "text-chart-2", icon: /* @__PURE__ */ e(le, { size: 18 }) },
|
|
983
983
|
warning: { bg: "bg-chart-5/5", border: "border-chart-5/30", text: "text-chart-5", icon: /* @__PURE__ */ e(At, { size: 18 }) },
|
|
984
984
|
error: { bg: "bg-destructive/5", border: "border-destructive/30", text: "text-destructive", icon: /* @__PURE__ */ e(_t, { size: 18 }) }
|
|
985
985
|
};
|
|
986
|
-
function Cn({ variant: t = "info", title: r, children: o, dismissible: n = !1, onDismiss: a, action:
|
|
987
|
-
const [d, f] =
|
|
986
|
+
function Cn({ variant: t = "info", title: r, children: o, dismissible: n = !1, onDismiss: a, action: l, icon: i, className: c = "" }) {
|
|
987
|
+
const [d, f] = $(!0), m = _n[t];
|
|
988
988
|
if (!d) return null;
|
|
989
989
|
const p = () => {
|
|
990
990
|
f(!1), a == null || a();
|
|
991
991
|
};
|
|
992
|
-
return /* @__PURE__ */ s("div", { className: `flex gap-3 p-4 rounded-[var(--radius)] border ${
|
|
993
|
-
/* @__PURE__ */ e("span", { className: `flex-shrink-0 mt-0.5 ${
|
|
992
|
+
return /* @__PURE__ */ s("div", { className: `flex gap-3 p-4 rounded-[var(--radius)] border ${m.bg} ${m.border} ${c}`, role: "alert", children: [
|
|
993
|
+
/* @__PURE__ */ e("span", { className: `flex-shrink-0 mt-0.5 ${m.text}`, children: i ?? m.icon }),
|
|
994
994
|
/* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: [
|
|
995
|
-
r && /* @__PURE__ */ e("span", { className: `block ${
|
|
995
|
+
r && /* @__PURE__ */ e("span", { className: `block ${m.text}`, style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-button)" }, children: r }),
|
|
996
996
|
/* @__PURE__ */ e("span", { className: "text-foreground block", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, children: o }),
|
|
997
|
-
|
|
997
|
+
l && /* @__PURE__ */ e("div", { className: "mt-2", children: l })
|
|
998
998
|
] }),
|
|
999
999
|
n && /* @__PURE__ */ e("button", { onClick: p, className: "flex-shrink-0 text-muted-foreground hover:text-foreground transition-colors cursor-pointer", "aria-label": "Dismiss", children: /* @__PURE__ */ e(J, { size: 16 }) })
|
|
1000
1000
|
] });
|
|
@@ -1019,7 +1019,7 @@ const ye = {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
1021
1021
|
function Sa() {
|
|
1022
|
-
const [t, r] =
|
|
1022
|
+
const [t, r] = $([]), o = X(!1);
|
|
1023
1023
|
return o.current || (o.current = !0, Ht.push(r)), t.length === 0 ? null : /* @__PURE__ */ e("div", { className: "fixed bottom-4 right-4 z-[200] flex flex-col gap-2 max-w-sm w-full pointer-events-none", children: t.map((n) => /* @__PURE__ */ e("div", { className: "pointer-events-auto animate-in slide-in-from-right fade-in duration-300", children: /* @__PURE__ */ e(Cn, { variant: n.variant, title: n.title, dismissible: !0, onDismiss: () => ye.dismiss(n.id), children: n.message }) }, n.id)) });
|
|
1024
1024
|
}
|
|
1025
1025
|
const Ln = {
|
|
@@ -1071,8 +1071,8 @@ function za({
|
|
|
1071
1071
|
size: o = "md",
|
|
1072
1072
|
icon: n,
|
|
1073
1073
|
dot: a,
|
|
1074
|
-
removable:
|
|
1075
|
-
onRemove:
|
|
1074
|
+
removable: l,
|
|
1075
|
+
onRemove: i,
|
|
1076
1076
|
className: c = ""
|
|
1077
1077
|
}) {
|
|
1078
1078
|
const d = jn[o];
|
|
@@ -1090,10 +1090,10 @@ function za({
|
|
|
1090
1090
|
),
|
|
1091
1091
|
n && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: n }),
|
|
1092
1092
|
/* @__PURE__ */ e("span", { children: t }),
|
|
1093
|
-
|
|
1093
|
+
l && /* @__PURE__ */ e(
|
|
1094
1094
|
"button",
|
|
1095
1095
|
{
|
|
1096
|
-
onClick:
|
|
1096
|
+
onClick: i,
|
|
1097
1097
|
className: "flex-shrink-0 hover:opacity-70 transition-opacity cursor-pointer rounded-full -mr-0.5",
|
|
1098
1098
|
"aria-label": "Remove",
|
|
1099
1099
|
children: /* @__PURE__ */ e(J, { size: d.iconSize })
|
|
@@ -1129,47 +1129,47 @@ function Fa({
|
|
|
1129
1129
|
defaultChecked: o = !1,
|
|
1130
1130
|
onChange: n,
|
|
1131
1131
|
label: a,
|
|
1132
|
-
description:
|
|
1133
|
-
size:
|
|
1132
|
+
description: l,
|
|
1133
|
+
size: i = "md",
|
|
1134
1134
|
disabled: c = !1,
|
|
1135
1135
|
error: d,
|
|
1136
1136
|
className: f = "",
|
|
1137
|
-
id:
|
|
1137
|
+
id: m
|
|
1138
1138
|
}) {
|
|
1139
|
-
const [p, g] =
|
|
1139
|
+
const [p, g] = $(o), u = t ?? p, N = Dn[i], w = m ?? `cb-${tt.useId()}`, h = () => {
|
|
1140
1140
|
if (c) return;
|
|
1141
|
-
const
|
|
1142
|
-
t === void 0 && g(
|
|
1143
|
-
},
|
|
1141
|
+
const A = !u;
|
|
1142
|
+
t === void 0 && g(A), n == null || n(A);
|
|
1143
|
+
}, x = u || r;
|
|
1144
1144
|
return /* @__PURE__ */ s("div", { className: `inline-flex items-start gap-2.5 ${c ? "opacity-50" : ""} ${f}`, children: [
|
|
1145
1145
|
/* @__PURE__ */ e(
|
|
1146
1146
|
"button",
|
|
1147
1147
|
{
|
|
1148
|
-
id:
|
|
1148
|
+
id: w,
|
|
1149
1149
|
role: "checkbox",
|
|
1150
|
-
"aria-checked": r ? "mixed" :
|
|
1150
|
+
"aria-checked": r ? "mixed" : u,
|
|
1151
1151
|
disabled: c,
|
|
1152
1152
|
onClick: h,
|
|
1153
|
-
className: `${
|
|
1154
|
-
${
|
|
1153
|
+
className: `${N.box} flex-shrink-0 rounded-[var(--radius-sm)] border-2 transition-all flex items-center justify-center cursor-pointer mt-0.5
|
|
1154
|
+
${x ? "bg-primary border-primary text-primary-foreground" : d ? "border-destructive bg-card" : "border-border bg-card hover:border-primary/50"}
|
|
1155
1155
|
${c ? "!cursor-not-allowed" : ""}
|
|
1156
1156
|
focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 outline-none`,
|
|
1157
|
-
children: r ? /* @__PURE__ */ e(at, { size:
|
|
1157
|
+
children: r ? /* @__PURE__ */ e(at, { size: N.icon, strokeWidth: 3 }) : u ? /* @__PURE__ */ e(me, { size: N.icon, strokeWidth: 3 }) : null
|
|
1158
1158
|
}
|
|
1159
1159
|
),
|
|
1160
|
-
(a ||
|
|
1160
|
+
(a || l) && /* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
1161
1161
|
a && /* @__PURE__ */ e(
|
|
1162
1162
|
"label",
|
|
1163
1163
|
{
|
|
1164
|
-
htmlFor:
|
|
1164
|
+
htmlFor: w,
|
|
1165
1165
|
className: `text-foreground block cursor-pointer ${c ? "!cursor-not-allowed" : ""}`,
|
|
1166
|
-
style:
|
|
1166
|
+
style: N.labelStyle,
|
|
1167
1167
|
onClick: h,
|
|
1168
1168
|
children: a
|
|
1169
1169
|
}
|
|
1170
1170
|
),
|
|
1171
|
-
|
|
1172
|
-
d && /* @__PURE__ */ e("span", { className: "text-destructive block mt-0.5", style:
|
|
1171
|
+
l && /* @__PURE__ */ e("span", { className: "text-muted-foreground block", style: N.descStyle, children: l }),
|
|
1172
|
+
d && /* @__PURE__ */ e("span", { className: "text-destructive block mt-0.5", style: N.descStyle, children: d })
|
|
1173
1173
|
] })
|
|
1174
1174
|
] });
|
|
1175
1175
|
}
|
|
@@ -1199,11 +1199,11 @@ const Yt = tr(null), Tn = {
|
|
|
1199
1199
|
descStyle: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }
|
|
1200
1200
|
}
|
|
1201
1201
|
};
|
|
1202
|
-
function Ma({ value: t, label: r, description: o, disabled: n, size: a, className:
|
|
1203
|
-
const
|
|
1204
|
-
d ||
|
|
1202
|
+
function Ma({ value: t, label: r, description: o, disabled: n, size: a, className: l = "" }) {
|
|
1203
|
+
const i = er(Yt), c = i ? i.value === t : !1, d = n ?? (i == null ? void 0 : i.disabled) ?? !1, f = a ?? (i == null ? void 0 : i.size) ?? "md", m = Tn[f], p = () => {
|
|
1204
|
+
d || i == null || i.onChange(t);
|
|
1205
1205
|
};
|
|
1206
|
-
return /* @__PURE__ */ s("div", { className: `inline-flex items-start gap-2.5 ${d ? "opacity-50" : ""} ${
|
|
1206
|
+
return /* @__PURE__ */ s("div", { className: `inline-flex items-start gap-2.5 ${d ? "opacity-50" : ""} ${l}`, children: [
|
|
1207
1207
|
/* @__PURE__ */ e(
|
|
1208
1208
|
"button",
|
|
1209
1209
|
{
|
|
@@ -1211,11 +1211,11 @@ function Ma({ value: t, label: r, description: o, disabled: n, size: a, classNam
|
|
|
1211
1211
|
"aria-checked": c,
|
|
1212
1212
|
disabled: d,
|
|
1213
1213
|
onClick: p,
|
|
1214
|
-
className: `${
|
|
1214
|
+
className: `${m.outer} flex-shrink-0 rounded-full border-2 transition-all flex items-center justify-center cursor-pointer mt-0.5
|
|
1215
1215
|
${c ? "border-primary" : "border-border hover:border-primary/50"}
|
|
1216
1216
|
${d ? "!cursor-not-allowed" : ""}
|
|
1217
1217
|
focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 outline-none`,
|
|
1218
|
-
children: c && /* @__PURE__ */ e("span", { className: `${
|
|
1218
|
+
children: c && /* @__PURE__ */ e("span", { className: `${m.inner} rounded-full bg-primary transition-transform scale-100` })
|
|
1219
1219
|
}
|
|
1220
1220
|
),
|
|
1221
1221
|
(r || o) && /* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
@@ -1223,12 +1223,12 @@ function Ma({ value: t, label: r, description: o, disabled: n, size: a, classNam
|
|
|
1223
1223
|
"span",
|
|
1224
1224
|
{
|
|
1225
1225
|
className: `text-foreground block cursor-pointer ${d ? "!cursor-not-allowed" : ""}`,
|
|
1226
|
-
style:
|
|
1226
|
+
style: m.labelStyle,
|
|
1227
1227
|
onClick: p,
|
|
1228
1228
|
children: r
|
|
1229
1229
|
}
|
|
1230
1230
|
),
|
|
1231
|
-
o && /* @__PURE__ */ e("span", { className: "text-muted-foreground block", style:
|
|
1231
|
+
o && /* @__PURE__ */ e("span", { className: "text-muted-foreground block", style: m.descStyle, children: o })
|
|
1232
1232
|
] })
|
|
1233
1233
|
] });
|
|
1234
1234
|
}
|
|
@@ -1238,23 +1238,23 @@ function _a({
|
|
|
1238
1238
|
defaultValue: o = "",
|
|
1239
1239
|
onChange: n,
|
|
1240
1240
|
label: a,
|
|
1241
|
-
size:
|
|
1242
|
-
disabled:
|
|
1241
|
+
size: l = "md",
|
|
1242
|
+
disabled: i = !1,
|
|
1243
1243
|
direction: c = "vertical",
|
|
1244
1244
|
children: d,
|
|
1245
1245
|
error: f,
|
|
1246
|
-
className:
|
|
1246
|
+
className: m = ""
|
|
1247
1247
|
}) {
|
|
1248
|
-
const [p, g] =
|
|
1249
|
-
r === void 0 && g(
|
|
1248
|
+
const [p, g] = $(o), u = r ?? p, N = (w) => {
|
|
1249
|
+
r === void 0 && g(w), n == null || n(w);
|
|
1250
1250
|
};
|
|
1251
|
-
return /* @__PURE__ */ e(Yt.Provider, { value: { value:
|
|
1251
|
+
return /* @__PURE__ */ e(Yt.Provider, { value: { value: u, onChange: N, size: l, disabled: i, name: t }, children: /* @__PURE__ */ s("fieldset", { className: m, role: "radiogroup", children: [
|
|
1252
1252
|
a && /* @__PURE__ */ e("legend", { className: "text-foreground mb-2 block", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-button)" }, children: a }),
|
|
1253
1253
|
/* @__PURE__ */ e("div", { className: `flex ${c === "vertical" ? "flex-col gap-3" : "flex-wrap gap-4"}`, children: d }),
|
|
1254
1254
|
f && /* @__PURE__ */ e("span", { className: "text-destructive block mt-1.5", style: { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-label)" }, children: f })
|
|
1255
1255
|
] }) });
|
|
1256
1256
|
}
|
|
1257
|
-
const In = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1257
|
+
const In = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], Xe = [
|
|
1258
1258
|
"January",
|
|
1259
1259
|
"February",
|
|
1260
1260
|
"March",
|
|
@@ -1284,19 +1284,19 @@ function Bn(t, r) {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
function pt(t, r) {
|
|
1286
1286
|
const o = new Date(t, r, 1).getDay(), n = Bn(t, r), a = [];
|
|
1287
|
-
for (let
|
|
1288
|
-
for (let
|
|
1287
|
+
for (let l = 0; l < o; l++) a.push(null);
|
|
1288
|
+
for (let l = 1; l <= n; l++) a.push(new Date(t, r, l));
|
|
1289
1289
|
return a;
|
|
1290
1290
|
}
|
|
1291
1291
|
function Le(t, r) {
|
|
1292
1292
|
if (!t) return "";
|
|
1293
1293
|
const o = String(t.getDate()).padStart(2, "0"), n = String(t.getMonth() + 1).padStart(2, "0"), a = t.getFullYear();
|
|
1294
|
-
let
|
|
1294
|
+
let l = `${o}/${n}/${a}`;
|
|
1295
1295
|
if (r) {
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1296
|
+
const i = String(t.getHours()).padStart(2, "0"), c = String(t.getMinutes()).padStart(2, "0");
|
|
1297
|
+
l += ` ${i}:${c}`;
|
|
1298
1298
|
}
|
|
1299
|
-
return
|
|
1299
|
+
return l;
|
|
1300
1300
|
}
|
|
1301
1301
|
const En = {
|
|
1302
1302
|
sm: {
|
|
@@ -1345,62 +1345,62 @@ function Ca({
|
|
|
1345
1345
|
onChange: o,
|
|
1346
1346
|
onRangeChange: n,
|
|
1347
1347
|
mode: a = "single",
|
|
1348
|
-
label:
|
|
1349
|
-
placeholder:
|
|
1348
|
+
label: l,
|
|
1349
|
+
placeholder: i,
|
|
1350
1350
|
helperText: c,
|
|
1351
1351
|
errorMessage: d,
|
|
1352
1352
|
successMessage: f,
|
|
1353
|
-
size:
|
|
1353
|
+
size: m = "md",
|
|
1354
1354
|
variant: p = "default",
|
|
1355
1355
|
state: g = "default",
|
|
1356
|
-
disabled:
|
|
1357
|
-
required:
|
|
1358
|
-
clearable:
|
|
1356
|
+
disabled: u = !1,
|
|
1357
|
+
required: N = !1,
|
|
1358
|
+
clearable: w = !1,
|
|
1359
1359
|
showTime: h = !1,
|
|
1360
|
-
minDate:
|
|
1361
|
-
maxDate:
|
|
1362
|
-
disabledDates:
|
|
1363
|
-
showToday:
|
|
1364
|
-
footer:
|
|
1365
|
-
fullWidth:
|
|
1360
|
+
minDate: x,
|
|
1361
|
+
maxDate: A,
|
|
1362
|
+
disabledDates: y,
|
|
1363
|
+
showToday: k = !0,
|
|
1364
|
+
footer: C,
|
|
1365
|
+
fullWidth: L = !1
|
|
1366
1366
|
}) {
|
|
1367
|
-
const [
|
|
1367
|
+
const [D, E] = $(!1), [z, W] = $(() => t ?? /* @__PURE__ */ new Date()), [H, S] = $("days"), [v, T] = $(null), [q, U] = $(() => t ? t.getHours() : 0), [Q, K] = $(() => t ? t.getMinutes() : 0), P = X(null), O = En[m];
|
|
1368
1368
|
V(() => {
|
|
1369
|
-
function _(
|
|
1370
|
-
P.current && !P.current.contains(
|
|
1369
|
+
function _(B) {
|
|
1370
|
+
P.current && !P.current.contains(B.target) && (E(!1), S("days"));
|
|
1371
1371
|
}
|
|
1372
|
-
return
|
|
1373
|
-
}, [
|
|
1374
|
-
() => pt(
|
|
1375
|
-
[
|
|
1372
|
+
return D && document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
|
|
1373
|
+
}, [D]), re(
|
|
1374
|
+
() => pt(z.getFullYear(), z.getMonth()),
|
|
1375
|
+
[z]
|
|
1376
1376
|
);
|
|
1377
|
-
const oe = re(() => /* @__PURE__ */ new Date(), []), ae = () =>
|
|
1377
|
+
const oe = re(() => /* @__PURE__ */ new Date(), []), ae = () => W(new Date(z.getFullYear(), z.getMonth() - 1, 1)), se = () => W(new Date(z.getFullYear(), z.getMonth() + 1, 1)), be = () => W(new Date(z.getFullYear() - 1, z.getMonth(), 1)), de = () => W(new Date(z.getFullYear() + 1, z.getMonth(), 1)), I = ee(
|
|
1378
1378
|
(_) => {
|
|
1379
|
-
if (!bt(_,
|
|
1379
|
+
if (!bt(_, x, A, y))
|
|
1380
1380
|
if (a === "single") {
|
|
1381
|
-
let
|
|
1382
|
-
h &&
|
|
1381
|
+
let B = new Date(_);
|
|
1382
|
+
h && B.setHours(q, Q), o == null || o(B), h || (E(!1), S("days"));
|
|
1383
1383
|
} else {
|
|
1384
|
-
const
|
|
1385
|
-
!
|
|
1384
|
+
const B = r == null ? void 0 : r.start, te = r == null ? void 0 : r.end;
|
|
1385
|
+
!B || B && te ? n == null || n({ start: _, end: null }) : (_ < B ? n == null || n({ start: _, end: B }) : n == null || n({ start: B, end: _ }), E(!1), S("days"));
|
|
1386
1386
|
}
|
|
1387
1387
|
},
|
|
1388
|
-
[a, o, n, r,
|
|
1388
|
+
[a, o, n, r, x, A, y, h, q, Q]
|
|
1389
1389
|
), ce = (_) => {
|
|
1390
1390
|
_.stopPropagation(), a === "single" ? o == null || o(null) : n == null || n({ start: null, end: null });
|
|
1391
1391
|
}, we = () => {
|
|
1392
1392
|
const _ = /* @__PURE__ */ new Date();
|
|
1393
|
-
if (
|
|
1394
|
-
const
|
|
1395
|
-
h &&
|
|
1393
|
+
if (W(_), a === "single") {
|
|
1394
|
+
const B = new Date(_);
|
|
1395
|
+
h && B.setHours(q, Q), o == null || o(B), h || (E(!1), S("days"));
|
|
1396
1396
|
}
|
|
1397
1397
|
}, Fe = () => {
|
|
1398
1398
|
if (t) {
|
|
1399
1399
|
const _ = new Date(t);
|
|
1400
|
-
_.setHours(
|
|
1400
|
+
_.setHours(q, Q), o == null || o(_);
|
|
1401
1401
|
}
|
|
1402
|
-
|
|
1403
|
-
}, ue = re(() => a === "single" ? Le(t, h) : r != null && r.start && (r != null && r.end) ? `${Le(r.start)} – ${Le(r.end)}` : r != null && r.start ? `${Le(r.start)} – ...` : "", [a, t, r, h]), fe = a === "single" ? !!t : !!(r != null && r.start || r != null && r.end),
|
|
1402
|
+
E(!1), S("days");
|
|
1403
|
+
}, ue = re(() => a === "single" ? Le(t, h) : r != null && r.start && (r != null && r.end) ? `${Le(r.start)} – ${Le(r.end)}` : r != null && r.start ? `${Le(r.start)} – ...` : "", [a, t, r, h]), fe = a === "single" ? !!t : !!(r != null && r.start || r != null && r.end), He = g === "error" ? /* @__PURE__ */ e(Be, { size: O.icon, className: "text-destructive flex-shrink-0" }) : g === "success" ? /* @__PURE__ */ e(le, { size: O.icon, className: "text-chart-2 flex-shrink-0" }) : null, Y = g === "error" ? d : g === "success" ? f : c, Ne = g === "error" ? "text-destructive" : g === "success" ? "text-chart-2" : "text-muted-foreground", Ye = {
|
|
1404
1404
|
fontFamily: "var(--font-label)",
|
|
1405
1405
|
fontSize: "var(--text-label)",
|
|
1406
1406
|
fontWeight: "var(--weight-label)"
|
|
@@ -1412,43 +1412,43 @@ function Ca({
|
|
|
1412
1412
|
fontFamily: "var(--font-button)",
|
|
1413
1413
|
fontSize: "var(--text-button)",
|
|
1414
1414
|
fontWeight: "var(--weight-button)"
|
|
1415
|
-
}, pe = Math.floor(
|
|
1416
|
-
return /* @__PURE__ */ s("div", { className: `relative ${
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1415
|
+
}, pe = Math.floor(z.getFullYear() / 12) * 12;
|
|
1416
|
+
return /* @__PURE__ */ s("div", { className: `relative ${L ? "w-full" : ""}`, ref: P, children: [
|
|
1417
|
+
l && /* @__PURE__ */ s("label", { className: "block text-foreground mb-1.5", style: Ye, children: [
|
|
1418
|
+
l,
|
|
1419
|
+
N && /* @__PURE__ */ e("span", { className: "text-destructive ml-0.5", children: "*" })
|
|
1420
1420
|
] }),
|
|
1421
1421
|
/* @__PURE__ */ s(
|
|
1422
1422
|
"button",
|
|
1423
1423
|
{
|
|
1424
1424
|
type: "button",
|
|
1425
|
-
onClick: () => !
|
|
1426
|
-
disabled:
|
|
1425
|
+
onClick: () => !u && E(!D),
|
|
1426
|
+
disabled: u,
|
|
1427
1427
|
className: `
|
|
1428
1428
|
w-full flex items-center gap-2 rounded-[var(--radius-md)] transition-all cursor-pointer
|
|
1429
|
-
${
|
|
1429
|
+
${O.trigger}
|
|
1430
1430
|
${Hn[p]}
|
|
1431
1431
|
${Yn[g]}
|
|
1432
|
-
${
|
|
1432
|
+
${u ? "opacity-50 cursor-not-allowed" : "hover:border-primary/50"}
|
|
1433
1433
|
`,
|
|
1434
|
-
style:
|
|
1434
|
+
style: O.text,
|
|
1435
1435
|
children: [
|
|
1436
|
-
/* @__PURE__ */ e(fr, { size:
|
|
1437
|
-
/* @__PURE__ */ e("span", { className: `flex-1 text-left truncate ${fe ? "text-foreground" : "text-muted-foreground"}`, children: fe ? ue :
|
|
1438
|
-
|
|
1439
|
-
|
|
1436
|
+
/* @__PURE__ */ e(fr, { size: O.icon, className: "text-muted-foreground flex-shrink-0" }),
|
|
1437
|
+
/* @__PURE__ */ e("span", { className: `flex-1 text-left truncate ${fe ? "text-foreground" : "text-muted-foreground"}`, children: fe ? ue : i || (a === "range" ? "Select date range…" : "Select date…") }),
|
|
1438
|
+
He,
|
|
1439
|
+
w && fe && !u && /* @__PURE__ */ e(
|
|
1440
1440
|
"span",
|
|
1441
1441
|
{
|
|
1442
1442
|
onClick: ce,
|
|
1443
1443
|
className: "text-muted-foreground hover:text-foreground cursor-pointer",
|
|
1444
|
-
children: /* @__PURE__ */ e(J, { size:
|
|
1444
|
+
children: /* @__PURE__ */ e(J, { size: O.icon - 2 })
|
|
1445
1445
|
}
|
|
1446
1446
|
)
|
|
1447
1447
|
]
|
|
1448
1448
|
}
|
|
1449
1449
|
),
|
|
1450
|
-
|
|
1451
|
-
|
|
1450
|
+
Y && /* @__PURE__ */ e("p", { className: `mt-1.5 ${Ne}`, style: { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-label)" }, children: Y }),
|
|
1451
|
+
D && /* @__PURE__ */ s(
|
|
1452
1452
|
"div",
|
|
1453
1453
|
{
|
|
1454
1454
|
className: "absolute z-50 mt-1.5 bg-popover border border-border rounded-[var(--radius-lg)] shadow-elevation-sm overflow-hidden",
|
|
@@ -1463,93 +1463,93 @@ function Ca({
|
|
|
1463
1463
|
/* @__PURE__ */ e(
|
|
1464
1464
|
"button",
|
|
1465
1465
|
{
|
|
1466
|
-
onClick: () =>
|
|
1466
|
+
onClick: () => S(H === "months" ? "days" : "months"),
|
|
1467
1467
|
className: "px-2 py-1 rounded-[var(--radius-sm)] hover:bg-muted text-foreground transition-colors cursor-pointer",
|
|
1468
1468
|
style: Z,
|
|
1469
|
-
children:
|
|
1469
|
+
children: Xe[z.getMonth()]
|
|
1470
1470
|
}
|
|
1471
1471
|
),
|
|
1472
1472
|
/* @__PURE__ */ e(
|
|
1473
1473
|
"button",
|
|
1474
1474
|
{
|
|
1475
|
-
onClick: () =>
|
|
1475
|
+
onClick: () => S(H === "years" ? "days" : "years"),
|
|
1476
1476
|
className: "px-2 py-1 rounded-[var(--radius-sm)] hover:bg-muted text-foreground transition-colors cursor-pointer",
|
|
1477
1477
|
style: Z,
|
|
1478
|
-
children:
|
|
1478
|
+
children: z.getFullYear()
|
|
1479
1479
|
}
|
|
1480
1480
|
)
|
|
1481
1481
|
] }),
|
|
1482
1482
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
|
|
1483
|
-
/* @__PURE__ */ e("button", { onClick: se, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Next month", children: /* @__PURE__ */ e(
|
|
1483
|
+
/* @__PURE__ */ e("button", { onClick: se, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Next month", children: /* @__PURE__ */ e(ie, { size: 16 }) }),
|
|
1484
1484
|
/* @__PURE__ */ e("button", { onClick: de, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Next year", children: /* @__PURE__ */ e(ot, { size: 16 }) })
|
|
1485
1485
|
] })
|
|
1486
1486
|
] }),
|
|
1487
|
-
|
|
1488
|
-
const
|
|
1487
|
+
H === "days" && /* @__PURE__ */ e("div", { className: `p-3 ${a === "range" ? "flex gap-3" : ""}`, children: (a === "range" ? [0, 1] : [0]).map((_) => {
|
|
1488
|
+
const B = new Date(z.getFullYear(), z.getMonth() + _, 1), te = pt(B.getFullYear(), B.getMonth());
|
|
1489
1489
|
return /* @__PURE__ */ s("div", { className: "flex-1", children: [
|
|
1490
1490
|
_ > 0 && /* @__PURE__ */ s("div", { className: "text-center mb-2 text-foreground", style: Z, children: [
|
|
1491
|
-
|
|
1491
|
+
Xe[B.getMonth()],
|
|
1492
1492
|
" ",
|
|
1493
|
-
|
|
1493
|
+
B.getFullYear()
|
|
1494
1494
|
] }),
|
|
1495
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 mb-1", children: In.map((
|
|
1495
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 mb-1", children: In.map((R) => /* @__PURE__ */ e(
|
|
1496
1496
|
"div",
|
|
1497
1497
|
{
|
|
1498
1498
|
className: "text-center text-muted-foreground py-1",
|
|
1499
1499
|
style: ne,
|
|
1500
|
-
children:
|
|
1500
|
+
children: R
|
|
1501
1501
|
},
|
|
1502
|
-
`${_}-${
|
|
1502
|
+
`${_}-${R}`
|
|
1503
1503
|
)) }),
|
|
1504
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-7", children: te.map((
|
|
1505
|
-
if (!
|
|
1506
|
-
const Me = bt(
|
|
1507
|
-
|
|
1504
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-7", children: te.map((R, We) => {
|
|
1505
|
+
if (!R) return /* @__PURE__ */ e("div", {}, `empty-${_}-${We}`);
|
|
1506
|
+
const Me = bt(R, x, A, y), Re = $e(R, oe), ge = a === "single" ? t && $e(R, t) : (r == null ? void 0 : r.start) && $e(R, r.start) || (r == null ? void 0 : r.end) && $e(R, r.end), qe = a === "range" && (ht(R, (r == null ? void 0 : r.start) ?? null, (r == null ? void 0 : r.end) ?? null) || (r == null ? void 0 : r.start) && !(r != null && r.end) && v && ht(
|
|
1507
|
+
R,
|
|
1508
1508
|
r.start,
|
|
1509
|
-
|
|
1509
|
+
v > r.start ? v : null
|
|
1510
1510
|
));
|
|
1511
1511
|
return /* @__PURE__ */ e(
|
|
1512
1512
|
"button",
|
|
1513
1513
|
{
|
|
1514
|
-
onClick: () =>
|
|
1515
|
-
onMouseEnter: () => a === "range" &&
|
|
1514
|
+
onClick: () => I(R),
|
|
1515
|
+
onMouseEnter: () => a === "range" && T(R),
|
|
1516
1516
|
disabled: Me,
|
|
1517
1517
|
className: `
|
|
1518
|
-
${
|
|
1518
|
+
${O.cell} flex items-center justify-center rounded-[var(--radius-sm)] transition-all cursor-pointer
|
|
1519
1519
|
${Me ? "opacity-30 cursor-not-allowed" : "hover:bg-muted"}
|
|
1520
1520
|
${ge ? "bg-primary text-primary-foreground hover:bg-primary/90" : ""}
|
|
1521
|
-
${
|
|
1522
|
-
${
|
|
1521
|
+
${qe && !ge ? "bg-accent text-accent-foreground" : ""}
|
|
1522
|
+
${Re && !ge ? "border border-primary text-primary" : ""}
|
|
1523
1523
|
`,
|
|
1524
1524
|
style: Z,
|
|
1525
|
-
children:
|
|
1525
|
+
children: R.getDate()
|
|
1526
1526
|
},
|
|
1527
|
-
`${_}-${
|
|
1527
|
+
`${_}-${R.getTime()}`
|
|
1528
1528
|
);
|
|
1529
1529
|
}) })
|
|
1530
1530
|
] }, _);
|
|
1531
1531
|
}) }),
|
|
1532
|
-
|
|
1532
|
+
H === "months" && /* @__PURE__ */ e("div", { className: "p-3 grid grid-cols-3 gap-2", children: Xe.map((_, B) => /* @__PURE__ */ e(
|
|
1533
1533
|
"button",
|
|
1534
1534
|
{
|
|
1535
1535
|
onClick: () => {
|
|
1536
|
-
|
|
1536
|
+
W(new Date(z.getFullYear(), B, 1)), S("days");
|
|
1537
1537
|
},
|
|
1538
1538
|
className: `
|
|
1539
1539
|
py-2.5 rounded-[var(--radius-md)] transition-all cursor-pointer
|
|
1540
|
-
${
|
|
1540
|
+
${z.getMonth() === B ? "bg-primary text-primary-foreground" : "text-foreground hover:bg-muted"}
|
|
1541
1541
|
`,
|
|
1542
1542
|
style: Z,
|
|
1543
1543
|
children: _.substring(0, 3)
|
|
1544
1544
|
},
|
|
1545
1545
|
_
|
|
1546
1546
|
)) }),
|
|
1547
|
-
|
|
1547
|
+
H === "years" && /* @__PURE__ */ s("div", { className: "p-3", children: [
|
|
1548
1548
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between mb-3", children: [
|
|
1549
1549
|
/* @__PURE__ */ e(
|
|
1550
1550
|
"button",
|
|
1551
1551
|
{
|
|
1552
|
-
onClick: () =>
|
|
1552
|
+
onClick: () => W(new Date(z.getFullYear() - 12, z.getMonth(), 1)),
|
|
1553
1553
|
className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground cursor-pointer",
|
|
1554
1554
|
children: /* @__PURE__ */ e(Se, { size: 16 })
|
|
1555
1555
|
}
|
|
@@ -1562,22 +1562,22 @@ function Ca({
|
|
|
1562
1562
|
/* @__PURE__ */ e(
|
|
1563
1563
|
"button",
|
|
1564
1564
|
{
|
|
1565
|
-
onClick: () =>
|
|
1565
|
+
onClick: () => W(new Date(z.getFullYear() + 12, z.getMonth(), 1)),
|
|
1566
1566
|
className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground cursor-pointer",
|
|
1567
|
-
children: /* @__PURE__ */ e(
|
|
1567
|
+
children: /* @__PURE__ */ e(ie, { size: 16 })
|
|
1568
1568
|
}
|
|
1569
1569
|
)
|
|
1570
1570
|
] }),
|
|
1571
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-4 gap-2", children: Array.from({ length: 12 }, (_,
|
|
1571
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-4 gap-2", children: Array.from({ length: 12 }, (_, B) => pe + B).map((_) => /* @__PURE__ */ e(
|
|
1572
1572
|
"button",
|
|
1573
1573
|
{
|
|
1574
1574
|
onClick: () => {
|
|
1575
|
-
|
|
1575
|
+
W(new Date(_, z.getMonth(), 1)), S("months");
|
|
1576
1576
|
},
|
|
1577
1577
|
className: `
|
|
1578
1578
|
py-2.5 rounded-[var(--radius-md)] transition-all cursor-pointer
|
|
1579
|
-
${
|
|
1580
|
-
${_ === oe.getFullYear() &&
|
|
1579
|
+
${z.getFullYear() === _ ? "bg-primary text-primary-foreground" : "text-foreground hover:bg-muted"}
|
|
1580
|
+
${_ === oe.getFullYear() && z.getFullYear() !== _ ? "border border-primary text-primary" : ""}
|
|
1581
1581
|
`,
|
|
1582
1582
|
style: Z,
|
|
1583
1583
|
children: _
|
|
@@ -1585,7 +1585,7 @@ function Ca({
|
|
|
1585
1585
|
_
|
|
1586
1586
|
)) })
|
|
1587
1587
|
] }),
|
|
1588
|
-
h && a === "single" &&
|
|
1588
|
+
h && a === "single" && H === "days" && /* @__PURE__ */ s("div", { className: "px-4 py-3 border-t border-border flex items-center gap-3", children: [
|
|
1589
1589
|
/* @__PURE__ */ e(Wr, { size: 14, className: "text-muted-foreground" }),
|
|
1590
1590
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
|
|
1591
1591
|
/* @__PURE__ */ e(
|
|
@@ -1594,8 +1594,8 @@ function Ca({
|
|
|
1594
1594
|
type: "number",
|
|
1595
1595
|
min: 0,
|
|
1596
1596
|
max: 23,
|
|
1597
|
-
value: String(
|
|
1598
|
-
onChange: (_) =>
|
|
1597
|
+
value: String(q).padStart(2, "0"),
|
|
1598
|
+
onChange: (_) => U(Math.max(0, Math.min(23, Number(_.target.value)))),
|
|
1599
1599
|
className: "w-10 text-center bg-input-background border border-border rounded-[var(--radius-sm)] py-1 text-foreground focus:outline-none focus:ring-1 focus:ring-ring/30",
|
|
1600
1600
|
style: Z
|
|
1601
1601
|
}
|
|
@@ -1608,7 +1608,7 @@ function Ca({
|
|
|
1608
1608
|
min: 0,
|
|
1609
1609
|
max: 59,
|
|
1610
1610
|
value: String(Q).padStart(2, "0"),
|
|
1611
|
-
onChange: (_) =>
|
|
1611
|
+
onChange: (_) => K(Math.max(0, Math.min(59, Number(_.target.value)))),
|
|
1612
1612
|
className: "w-10 text-center bg-input-background border border-border rounded-[var(--radius-sm)] py-1 text-foreground focus:outline-none focus:ring-1 focus:ring-ring/30",
|
|
1613
1613
|
style: Z
|
|
1614
1614
|
}
|
|
@@ -1625,7 +1625,7 @@ function Ca({
|
|
|
1625
1625
|
)
|
|
1626
1626
|
] }),
|
|
1627
1627
|
/* @__PURE__ */ s("div", { className: "px-4 py-2.5 border-t border-border bg-card flex items-center justify-between", children: [
|
|
1628
|
-
|
|
1628
|
+
k ? /* @__PURE__ */ e(
|
|
1629
1629
|
"button",
|
|
1630
1630
|
{
|
|
1631
1631
|
onClick: we,
|
|
@@ -1634,11 +1634,11 @@ function Ca({
|
|
|
1634
1634
|
children: "Today"
|
|
1635
1635
|
}
|
|
1636
1636
|
) : /* @__PURE__ */ e("span", {}),
|
|
1637
|
-
|
|
1637
|
+
C ?? /* @__PURE__ */ e(
|
|
1638
1638
|
"button",
|
|
1639
1639
|
{
|
|
1640
1640
|
onClick: () => {
|
|
1641
|
-
|
|
1641
|
+
E(!1), S("days");
|
|
1642
1642
|
},
|
|
1643
1643
|
className: "text-muted-foreground hover:text-foreground cursor-pointer",
|
|
1644
1644
|
style: Z,
|
|
@@ -1664,13 +1664,13 @@ function qn({
|
|
|
1664
1664
|
title: o,
|
|
1665
1665
|
description: n,
|
|
1666
1666
|
size: a = "md",
|
|
1667
|
-
children:
|
|
1668
|
-
footer:
|
|
1667
|
+
children: l,
|
|
1668
|
+
footer: i,
|
|
1669
1669
|
closeOnOverlay: c = !0,
|
|
1670
1670
|
showCloseButton: d = !0,
|
|
1671
1671
|
className: f = ""
|
|
1672
1672
|
}) {
|
|
1673
|
-
const
|
|
1673
|
+
const m = X(null);
|
|
1674
1674
|
return V(() => {
|
|
1675
1675
|
if (!t) return;
|
|
1676
1676
|
const p = (g) => {
|
|
@@ -1680,7 +1680,7 @@ function qn({
|
|
|
1680
1680
|
document.removeEventListener("keydown", p), document.body.style.overflow = "";
|
|
1681
1681
|
};
|
|
1682
1682
|
}, [t, r]), V(() => {
|
|
1683
|
-
t &&
|
|
1683
|
+
t && m.current && m.current.focus();
|
|
1684
1684
|
}, [t]), t ? /* @__PURE__ */ s("div", { className: "fixed inset-0 z-[100] flex items-center justify-center p-4", children: [
|
|
1685
1685
|
/* @__PURE__ */ e(
|
|
1686
1686
|
"div",
|
|
@@ -1692,7 +1692,7 @@ function qn({
|
|
|
1692
1692
|
/* @__PURE__ */ s(
|
|
1693
1693
|
"div",
|
|
1694
1694
|
{
|
|
1695
|
-
ref:
|
|
1695
|
+
ref: m,
|
|
1696
1696
|
tabIndex: -1,
|
|
1697
1697
|
role: "dialog",
|
|
1698
1698
|
"aria-modal": "true",
|
|
@@ -1714,8 +1714,8 @@ function qn({
|
|
|
1714
1714
|
}
|
|
1715
1715
|
)
|
|
1716
1716
|
] }),
|
|
1717
|
-
/* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto px-6 py-4", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, children:
|
|
1718
|
-
|
|
1717
|
+
/* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto px-6 py-4", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, children: l }),
|
|
1718
|
+
i && /* @__PURE__ */ e("div", { className: "flex items-center justify-end gap-2 px-6 py-4 border-t border-border flex-shrink-0", children: i })
|
|
1719
1719
|
]
|
|
1720
1720
|
}
|
|
1721
1721
|
)
|
|
@@ -1727,8 +1727,8 @@ function La({
|
|
|
1727
1727
|
onConfirm: o,
|
|
1728
1728
|
title: n = "Are you sure?",
|
|
1729
1729
|
description: a = "This action cannot be undone.",
|
|
1730
|
-
confirmLabel:
|
|
1731
|
-
cancelLabel:
|
|
1730
|
+
confirmLabel: l = "Confirm",
|
|
1731
|
+
cancelLabel: i = "Cancel",
|
|
1732
1732
|
variant: c = "default"
|
|
1733
1733
|
}) {
|
|
1734
1734
|
const d = { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-button)" };
|
|
@@ -1739,7 +1739,7 @@ function La({
|
|
|
1739
1739
|
onClick: r,
|
|
1740
1740
|
className: "px-4 py-2 rounded-[var(--radius-md)] border border-border text-foreground hover:bg-muted transition-colors cursor-pointer",
|
|
1741
1741
|
style: d,
|
|
1742
|
-
children:
|
|
1742
|
+
children: i
|
|
1743
1743
|
}
|
|
1744
1744
|
),
|
|
1745
1745
|
/* @__PURE__ */ e(
|
|
@@ -1750,12 +1750,12 @@ function La({
|
|
|
1750
1750
|
},
|
|
1751
1751
|
className: `px-4 py-2 rounded-[var(--radius-md)] text-primary-foreground transition-colors cursor-pointer ${c === "destructive" ? "bg-destructive hover:bg-destructive/90" : "bg-primary hover:bg-primary/90"}`,
|
|
1752
1752
|
style: d,
|
|
1753
|
-
children:
|
|
1753
|
+
children: l
|
|
1754
1754
|
}
|
|
1755
1755
|
)
|
|
1756
1756
|
] }) });
|
|
1757
1757
|
}
|
|
1758
|
-
const
|
|
1758
|
+
const On = {
|
|
1759
1759
|
sm: {
|
|
1760
1760
|
btn: "min-w-[28px] h-7 px-1.5",
|
|
1761
1761
|
icon: 14,
|
|
@@ -1786,7 +1786,7 @@ const Un = {
|
|
|
1786
1786
|
},
|
|
1787
1787
|
gap: "gap-2"
|
|
1788
1788
|
}
|
|
1789
|
-
},
|
|
1789
|
+
}, Un = {
|
|
1790
1790
|
default: {
|
|
1791
1791
|
base: "bg-transparent text-foreground border border-transparent",
|
|
1792
1792
|
active: "bg-primary text-primary-foreground border-primary shadow-elevation-sm",
|
|
@@ -1811,13 +1811,13 @@ const Un = {
|
|
|
1811
1811
|
function Kn(t, r, o) {
|
|
1812
1812
|
return re(() => {
|
|
1813
1813
|
if (o * 2 + 5 >= r)
|
|
1814
|
-
return Array.from({ length: r }, (f,
|
|
1815
|
-
const a = Math.max(t - o, 1),
|
|
1816
|
-
if (!
|
|
1814
|
+
return Array.from({ length: r }, (f, m) => m + 1);
|
|
1815
|
+
const a = Math.max(t - o, 1), l = Math.min(t + o, r), i = a > 2, c = l < r - 1;
|
|
1816
|
+
if (!i && c) {
|
|
1817
1817
|
const f = 3 + 2 * o;
|
|
1818
1818
|
return [...Array.from({ length: f }, (p, g) => g + 1), "dots-right", r];
|
|
1819
1819
|
}
|
|
1820
|
-
if (
|
|
1820
|
+
if (i && !c) {
|
|
1821
1821
|
const f = 3 + 2 * o;
|
|
1822
1822
|
return [1, "dots-left", ...Array.from(
|
|
1823
1823
|
{ length: f },
|
|
@@ -1825,8 +1825,8 @@ function Kn(t, r, o) {
|
|
|
1825
1825
|
)];
|
|
1826
1826
|
}
|
|
1827
1827
|
return [1, "dots-left", ...Array.from(
|
|
1828
|
-
{ length:
|
|
1829
|
-
(f,
|
|
1828
|
+
{ length: l - a + 1 },
|
|
1829
|
+
(f, m) => a + m
|
|
1830
1830
|
), "dots-right", r];
|
|
1831
1831
|
}, [t, r, o]);
|
|
1832
1832
|
}
|
|
@@ -1836,57 +1836,57 @@ function ja({
|
|
|
1836
1836
|
onPageChange: o,
|
|
1837
1837
|
siblingCount: n = 1,
|
|
1838
1838
|
showFirstLast: a = !1,
|
|
1839
|
-
showPrevNext:
|
|
1840
|
-
showPageSize:
|
|
1839
|
+
showPrevNext: l = !0,
|
|
1840
|
+
showPageSize: i = !1,
|
|
1841
1841
|
pageSizeOptions: c = [10, 20, 50, 100],
|
|
1842
1842
|
pageSize: d = 10,
|
|
1843
1843
|
onPageSizeChange: f,
|
|
1844
|
-
totalItems:
|
|
1844
|
+
totalItems: m,
|
|
1845
1845
|
size: p = "md",
|
|
1846
1846
|
variant: g = "default",
|
|
1847
|
-
disabled:
|
|
1848
|
-
showPageInfo:
|
|
1849
|
-
showItemsInfo:
|
|
1847
|
+
disabled: u = !1,
|
|
1848
|
+
showPageInfo: N = !1,
|
|
1849
|
+
showItemsInfo: w = !1,
|
|
1850
1850
|
prevLabel: h,
|
|
1851
|
-
nextLabel:
|
|
1851
|
+
nextLabel: x
|
|
1852
1852
|
}) {
|
|
1853
|
-
const
|
|
1854
|
-
(
|
|
1855
|
-
!
|
|
1853
|
+
const A = Kn(t, r, n), y = On[p], k = Un[g], C = ee(
|
|
1854
|
+
(W) => {
|
|
1855
|
+
!u && W >= 1 && W <= r && o(W);
|
|
1856
1856
|
},
|
|
1857
|
-
[
|
|
1858
|
-
),
|
|
1859
|
-
${
|
|
1860
|
-
${
|
|
1861
|
-
${
|
|
1857
|
+
[u, r, o]
|
|
1858
|
+
), L = (W, H) => `inline-flex items-center justify-center rounded-[var(--radius-md)] transition-all cursor-pointer select-none
|
|
1859
|
+
${y.btn}
|
|
1860
|
+
${H ? "opacity-40 pointer-events-none cursor-default" : ""}
|
|
1861
|
+
${W ? k.active : `${k.base} ${H ? "" : k.hover}`}`, D = m ? (t - 1) * d + 1 : 0, E = m ? Math.min(t * d, m) : 0, z = {
|
|
1862
1862
|
fontFamily: "var(--font-label)",
|
|
1863
1863
|
fontSize: "var(--text-label)",
|
|
1864
1864
|
fontWeight: "var(--weight-label)"
|
|
1865
1865
|
};
|
|
1866
1866
|
return /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center justify-between gap-4", children: [
|
|
1867
1867
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-4", children: [
|
|
1868
|
-
|
|
1869
|
-
|
|
1868
|
+
w && m !== void 0 && /* @__PURE__ */ s("span", { className: "text-muted-foreground", style: z, children: [
|
|
1869
|
+
D,
|
|
1870
1870
|
"–",
|
|
1871
|
-
|
|
1871
|
+
E,
|
|
1872
1872
|
" of ",
|
|
1873
|
-
|
|
1873
|
+
m
|
|
1874
1874
|
] }),
|
|
1875
|
-
|
|
1876
|
-
/* @__PURE__ */ e("span", { className: "text-muted-foreground", style:
|
|
1875
|
+
i && /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
1876
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground", style: z, children: "Rows per page:" }),
|
|
1877
1877
|
/* @__PURE__ */ e(
|
|
1878
1878
|
"select",
|
|
1879
1879
|
{
|
|
1880
1880
|
value: d,
|
|
1881
|
-
onChange: (
|
|
1882
|
-
disabled:
|
|
1881
|
+
onChange: (W) => f == null ? void 0 : f(Number(W.target.value)),
|
|
1882
|
+
disabled: u,
|
|
1883
1883
|
className: "bg-input-background text-foreground border border-border rounded-[var(--radius-md)] px-2 py-1 cursor-pointer focus:outline-none focus:ring-2 focus:ring-ring/30",
|
|
1884
1884
|
style: {
|
|
1885
1885
|
fontFamily: "var(--font-button)",
|
|
1886
1886
|
fontSize: "var(--text-button)",
|
|
1887
1887
|
fontWeight: "var(--weight-button)"
|
|
1888
1888
|
},
|
|
1889
|
-
children: c.map((
|
|
1889
|
+
children: c.map((W) => /* @__PURE__ */ e("option", { value: W, children: W }, W))
|
|
1890
1890
|
}
|
|
1891
1891
|
)
|
|
1892
1892
|
] })
|
|
@@ -1894,81 +1894,81 @@ function ja({
|
|
|
1894
1894
|
/* @__PURE__ */ s(
|
|
1895
1895
|
"nav",
|
|
1896
1896
|
{
|
|
1897
|
-
className: `flex items-center ${
|
|
1897
|
+
className: `flex items-center ${y.gap}`,
|
|
1898
1898
|
"aria-label": "Pagination",
|
|
1899
1899
|
role: "navigation",
|
|
1900
1900
|
children: [
|
|
1901
1901
|
a && /* @__PURE__ */ e(
|
|
1902
1902
|
"button",
|
|
1903
1903
|
{
|
|
1904
|
-
onClick: () =>
|
|
1905
|
-
disabled:
|
|
1906
|
-
className:
|
|
1907
|
-
style:
|
|
1904
|
+
onClick: () => C(1),
|
|
1905
|
+
disabled: u || t <= 1,
|
|
1906
|
+
className: L(!1, u || t <= 1),
|
|
1907
|
+
style: y.text,
|
|
1908
1908
|
"aria-label": "First page",
|
|
1909
1909
|
title: "First page",
|
|
1910
|
-
children: /* @__PURE__ */ e(nt, { size:
|
|
1910
|
+
children: /* @__PURE__ */ e(nt, { size: y.icon })
|
|
1911
1911
|
}
|
|
1912
1912
|
),
|
|
1913
|
-
|
|
1913
|
+
l && /* @__PURE__ */ e(
|
|
1914
1914
|
"button",
|
|
1915
1915
|
{
|
|
1916
|
-
onClick: () =>
|
|
1917
|
-
disabled:
|
|
1918
|
-
className:
|
|
1919
|
-
style:
|
|
1916
|
+
onClick: () => C(t - 1),
|
|
1917
|
+
disabled: u || t <= 1,
|
|
1918
|
+
className: L(!1, u || t <= 1),
|
|
1919
|
+
style: y.text,
|
|
1920
1920
|
"aria-label": "Previous page",
|
|
1921
|
-
children: h ?? /* @__PURE__ */ e(Se, { size:
|
|
1921
|
+
children: h ?? /* @__PURE__ */ e(Se, { size: y.icon })
|
|
1922
1922
|
}
|
|
1923
1923
|
),
|
|
1924
|
-
|
|
1924
|
+
A.map((W, H) => W === "dots-left" || W === "dots-right" ? /* @__PURE__ */ e(
|
|
1925
1925
|
"span",
|
|
1926
1926
|
{
|
|
1927
|
-
className: `inline-flex items-center justify-center text-muted-foreground ${
|
|
1928
|
-
style:
|
|
1929
|
-
children: /* @__PURE__ */ e(Ct, { size:
|
|
1927
|
+
className: `inline-flex items-center justify-center text-muted-foreground ${y.btn}`,
|
|
1928
|
+
style: y.text,
|
|
1929
|
+
children: /* @__PURE__ */ e(Ct, { size: y.icon })
|
|
1930
1930
|
},
|
|
1931
|
-
|
|
1931
|
+
W
|
|
1932
1932
|
) : /* @__PURE__ */ e(
|
|
1933
1933
|
"button",
|
|
1934
1934
|
{
|
|
1935
|
-
onClick: () =>
|
|
1936
|
-
disabled:
|
|
1937
|
-
className:
|
|
1938
|
-
style:
|
|
1939
|
-
"aria-label": `Page ${
|
|
1940
|
-
"aria-current":
|
|
1941
|
-
children:
|
|
1935
|
+
onClick: () => C(W),
|
|
1936
|
+
disabled: u,
|
|
1937
|
+
className: L(W === t, u),
|
|
1938
|
+
style: y.text,
|
|
1939
|
+
"aria-label": `Page ${W}`,
|
|
1940
|
+
"aria-current": W === t ? "page" : void 0,
|
|
1941
|
+
children: W
|
|
1942
1942
|
},
|
|
1943
|
-
|
|
1943
|
+
W
|
|
1944
1944
|
)),
|
|
1945
|
-
|
|
1945
|
+
l && /* @__PURE__ */ e(
|
|
1946
1946
|
"button",
|
|
1947
1947
|
{
|
|
1948
|
-
onClick: () =>
|
|
1949
|
-
disabled:
|
|
1950
|
-
className:
|
|
1951
|
-
style:
|
|
1948
|
+
onClick: () => C(t + 1),
|
|
1949
|
+
disabled: u || t >= r,
|
|
1950
|
+
className: L(!1, u || t >= r),
|
|
1951
|
+
style: y.text,
|
|
1952
1952
|
"aria-label": "Next page",
|
|
1953
|
-
children:
|
|
1953
|
+
children: x ?? /* @__PURE__ */ e(ie, { size: y.icon })
|
|
1954
1954
|
}
|
|
1955
1955
|
),
|
|
1956
1956
|
a && /* @__PURE__ */ e(
|
|
1957
1957
|
"button",
|
|
1958
1958
|
{
|
|
1959
|
-
onClick: () =>
|
|
1960
|
-
disabled:
|
|
1961
|
-
className:
|
|
1962
|
-
style:
|
|
1959
|
+
onClick: () => C(r),
|
|
1960
|
+
disabled: u || t >= r,
|
|
1961
|
+
className: L(!1, u || t >= r),
|
|
1962
|
+
style: y.text,
|
|
1963
1963
|
"aria-label": "Last page",
|
|
1964
1964
|
title: "Last page",
|
|
1965
|
-
children: /* @__PURE__ */ e(ot, { size:
|
|
1965
|
+
children: /* @__PURE__ */ e(ot, { size: y.icon })
|
|
1966
1966
|
}
|
|
1967
1967
|
)
|
|
1968
1968
|
]
|
|
1969
1969
|
}
|
|
1970
1970
|
),
|
|
1971
|
-
|
|
1971
|
+
N && /* @__PURE__ */ s("span", { className: "text-muted-foreground", style: z, children: [
|
|
1972
1972
|
"Page ",
|
|
1973
1973
|
t,
|
|
1974
1974
|
" of ",
|
|
@@ -1991,81 +1991,81 @@ function Aa({
|
|
|
1991
1991
|
onSearch: o,
|
|
1992
1992
|
placeholder: n = "Search...",
|
|
1993
1993
|
size: a = "md",
|
|
1994
|
-
variant:
|
|
1995
|
-
loading:
|
|
1994
|
+
variant: l = "default",
|
|
1995
|
+
loading: i = !1,
|
|
1996
1996
|
suggestions: c = [],
|
|
1997
1997
|
onSuggestionSelect: d,
|
|
1998
1998
|
clearable: f = !0,
|
|
1999
|
-
disabled:
|
|
1999
|
+
disabled: m = !1,
|
|
2000
2000
|
autoFocus: p = !1,
|
|
2001
2001
|
debounce: g = 0,
|
|
2002
|
-
className:
|
|
2002
|
+
className: u = ""
|
|
2003
2003
|
}) {
|
|
2004
|
-
const [
|
|
2005
|
-
t === void 0 &&
|
|
2006
|
-
}, [t, r, o, g]),
|
|
2007
|
-
|
|
2004
|
+
const [N, w] = $(""), [h, x] = $(!1), [A, y] = $(-1), k = t ?? N, C = X(null), L = X(null), D = X(void 0), E = Xn[a], z = ee((v) => {
|
|
2005
|
+
t === void 0 && w(v), r == null || r(v), g > 0 && (clearTimeout(D.current), D.current = setTimeout(() => o == null ? void 0 : o(v), g));
|
|
2006
|
+
}, [t, r, o, g]), W = (v) => {
|
|
2007
|
+
v.key === "Enter" ? A >= 0 && c[A] ? (d == null || d(c[A]), x(!1)) : o == null || o(k) : v.key === "ArrowDown" ? (v.preventDefault(), y((T) => Math.min(T + 1, c.length - 1))) : v.key === "ArrowUp" ? (v.preventDefault(), y((T) => Math.max(T - 1, -1))) : v.key === "Escape" && x(!1);
|
|
2008
2008
|
};
|
|
2009
2009
|
V(() => {
|
|
2010
|
-
const
|
|
2011
|
-
|
|
2010
|
+
const v = (T) => {
|
|
2011
|
+
L.current && !L.current.contains(T.target) && x(!1);
|
|
2012
2012
|
};
|
|
2013
|
-
return document.addEventListener("mousedown",
|
|
2013
|
+
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
2014
2014
|
}, []), V(() => {
|
|
2015
|
-
|
|
2016
|
-
}, [c,
|
|
2017
|
-
const
|
|
2018
|
-
return /* @__PURE__ */ s("div", { ref:
|
|
2019
|
-
/* @__PURE__ */ s("div", { className: `relative rounded-[var(--radius-md)] transition-all ${Zn[
|
|
2020
|
-
/* @__PURE__ */ e("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: /* @__PURE__ */ e(
|
|
2015
|
+
x(c.length > 0 && k.length > 0), y(-1);
|
|
2016
|
+
}, [c, k]);
|
|
2017
|
+
const H = { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, S = { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-label)" };
|
|
2018
|
+
return /* @__PURE__ */ s("div", { ref: L, className: `relative ${u}`, children: [
|
|
2019
|
+
/* @__PURE__ */ s("div", { className: `relative rounded-[var(--radius-md)] transition-all ${Zn[l]} ${m ? "opacity-50 pointer-events-none" : ""}`, children: [
|
|
2020
|
+
/* @__PURE__ */ e("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: /* @__PURE__ */ e(Ee, { size: E.icon }) }),
|
|
2021
2021
|
/* @__PURE__ */ e(
|
|
2022
2022
|
"input",
|
|
2023
2023
|
{
|
|
2024
|
-
ref:
|
|
2024
|
+
ref: C,
|
|
2025
2025
|
type: "text",
|
|
2026
|
-
value:
|
|
2027
|
-
onChange: (
|
|
2028
|
-
onKeyDown:
|
|
2029
|
-
onFocus: () => c.length > 0 &&
|
|
2026
|
+
value: k,
|
|
2027
|
+
onChange: (v) => z(v.target.value),
|
|
2028
|
+
onKeyDown: W,
|
|
2029
|
+
onFocus: () => c.length > 0 && k.length > 0 && x(!0),
|
|
2030
2030
|
placeholder: n,
|
|
2031
|
-
disabled:
|
|
2031
|
+
disabled: m,
|
|
2032
2032
|
autoFocus: p,
|
|
2033
|
-
className: `w-full ${
|
|
2034
|
-
style:
|
|
2033
|
+
className: `w-full ${E.input} rounded-[var(--radius-md)] bg-transparent outline-none text-foreground placeholder:text-muted-foreground`,
|
|
2034
|
+
style: E.style
|
|
2035
2035
|
}
|
|
2036
2036
|
),
|
|
2037
2037
|
/* @__PURE__ */ s("span", { className: "absolute right-3 top-1/2 -translate-y-1/2 flex items-center gap-1", children: [
|
|
2038
|
-
|
|
2039
|
-
f &&
|
|
2038
|
+
i && /* @__PURE__ */ e(ze, { size: E.icon, className: "animate-spin text-muted-foreground" }),
|
|
2039
|
+
f && k && !i && /* @__PURE__ */ e(
|
|
2040
2040
|
"button",
|
|
2041
2041
|
{
|
|
2042
2042
|
onClick: () => {
|
|
2043
|
-
var
|
|
2044
|
-
|
|
2043
|
+
var v;
|
|
2044
|
+
z(""), (v = C.current) == null || v.focus();
|
|
2045
2045
|
},
|
|
2046
2046
|
className: "text-muted-foreground hover:text-foreground transition-colors cursor-pointer",
|
|
2047
|
-
children: /* @__PURE__ */ e(J, { size:
|
|
2047
|
+
children: /* @__PURE__ */ e(J, { size: E.icon })
|
|
2048
2048
|
}
|
|
2049
2049
|
)
|
|
2050
2050
|
] })
|
|
2051
2051
|
] }),
|
|
2052
|
-
h && c.length > 0 && /* @__PURE__ */ e("div", { className: "absolute top-full left-0 right-0 mt-1 bg-popover border border-border rounded-[var(--radius-md)] shadow-lg z-50 overflow-hidden max-h-64 overflow-y-auto", style: { padding: "var(--Spacing--Spacing-sm)" }, children: c.map((
|
|
2052
|
+
h && c.length > 0 && /* @__PURE__ */ e("div", { className: "absolute top-full left-0 right-0 mt-1 bg-popover border border-border rounded-[var(--radius-md)] shadow-lg z-50 overflow-hidden max-h-64 overflow-y-auto", style: { padding: "var(--Spacing--Spacing-sm)" }, children: c.map((v, T) => /* @__PURE__ */ s(
|
|
2053
2053
|
"button",
|
|
2054
2054
|
{
|
|
2055
2055
|
onClick: () => {
|
|
2056
|
-
d == null || d(
|
|
2056
|
+
d == null || d(v), x(!1);
|
|
2057
2057
|
},
|
|
2058
|
-
className: `w-full text-left flex items-center rounded-[var(--radius-sm)] transition-colors cursor-pointer ${
|
|
2058
|
+
className: `w-full text-left flex items-center rounded-[var(--radius-sm)] transition-colors cursor-pointer ${T === A ? "bg-[var(--Colors--Background--bg-brand-secondary)]" : "hover:bg-[var(--Colors--Background--bg-primary_hover)]"}`,
|
|
2059
2059
|
style: { padding: "var(--Spacing--Spacing-md) var(--Spacing--Spacing-2xl)", gap: "var(--Spacing--Spacing-lg)" },
|
|
2060
2060
|
children: [
|
|
2061
|
-
|
|
2061
|
+
v.icon && /* @__PURE__ */ e("span", { className: "text-muted-foreground flex-shrink-0", children: v.icon }),
|
|
2062
2062
|
/* @__PURE__ */ s("div", { className: "min-w-0 flex-1", children: [
|
|
2063
|
-
/* @__PURE__ */ e("span", { className: "text-foreground block truncate", style:
|
|
2064
|
-
|
|
2063
|
+
/* @__PURE__ */ e("span", { className: "text-foreground block truncate", style: H, children: v.label }),
|
|
2064
|
+
v.description && /* @__PURE__ */ e("span", { className: "text-muted-foreground block truncate", style: { marginTop: "var(--Spacing--Spacing-xxs)", ...S }, children: v.description })
|
|
2065
2065
|
] })
|
|
2066
2066
|
]
|
|
2067
2067
|
},
|
|
2068
|
-
|
|
2068
|
+
v.id
|
|
2069
2069
|
)) })
|
|
2070
2070
|
] });
|
|
2071
2071
|
}
|
|
@@ -2080,90 +2080,90 @@ function Da({
|
|
|
2080
2080
|
size: o = "md",
|
|
2081
2081
|
striped: n = !1,
|
|
2082
2082
|
hoverable: a = !0,
|
|
2083
|
-
bordered:
|
|
2084
|
-
selectable:
|
|
2083
|
+
bordered: l = !1,
|
|
2084
|
+
selectable: i = !1,
|
|
2085
2085
|
selectedRows: c,
|
|
2086
2086
|
onSelectionChange: d,
|
|
2087
2087
|
loading: f = !1,
|
|
2088
|
-
emptyMessage:
|
|
2088
|
+
emptyMessage: m = "No data available",
|
|
2089
2089
|
stickyHeader: p = !1,
|
|
2090
2090
|
className: g = ""
|
|
2091
2091
|
}) {
|
|
2092
|
-
const [
|
|
2093
|
-
c ||
|
|
2094
|
-
},
|
|
2095
|
-
const
|
|
2096
|
-
if (
|
|
2097
|
-
if (
|
|
2098
|
-
const Q = typeof
|
|
2099
|
-
return
|
|
2100
|
-
}) : r, [r,
|
|
2101
|
-
|
|
2102
|
-
},
|
|
2103
|
-
|
|
2104
|
-
},
|
|
2105
|
-
const
|
|
2106
|
-
|
|
2107
|
-
},
|
|
2092
|
+
const [u, N] = $(null), [w, h] = $("asc"), [x, A] = $(/* @__PURE__ */ new Set()), y = c ?? x, k = (v) => {
|
|
2093
|
+
c || A(v), d == null || d(v);
|
|
2094
|
+
}, C = re(() => u ? [...r].sort((v, T) => {
|
|
2095
|
+
const q = v[u], U = T[u];
|
|
2096
|
+
if (q == null) return 1;
|
|
2097
|
+
if (U == null) return -1;
|
|
2098
|
+
const Q = typeof q == "string" ? q.localeCompare(U) : q - U;
|
|
2099
|
+
return w === "asc" ? Q : -Q;
|
|
2100
|
+
}) : r, [r, u, w]), L = (v) => {
|
|
2101
|
+
u === v ? h((T) => T === "asc" ? "desc" : "asc") : (N(v), h("asc"));
|
|
2102
|
+
}, D = r.length > 0 && y.size === r.length, E = y.size > 0 && !D, z = () => {
|
|
2103
|
+
k(D ? /* @__PURE__ */ new Set() : new Set(r.map((v, T) => T)));
|
|
2104
|
+
}, W = (v) => {
|
|
2105
|
+
const T = new Set(y);
|
|
2106
|
+
T.has(v) ? T.delete(v) : T.add(v), k(T);
|
|
2107
|
+
}, H = { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, S = { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-button)" };
|
|
2108
2108
|
return /* @__PURE__ */ e("div", { className: `rounded-[var(--radius-lg)] border border-border overflow-hidden ${g}`, children: /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ s("table", { className: "w-full border-collapse", children: [
|
|
2109
2109
|
/* @__PURE__ */ e("thead", { className: p ? "sticky top-0 z-10" : "", children: /* @__PURE__ */ s("tr", { className: "bg-muted/50 border-b border-border", children: [
|
|
2110
|
-
|
|
2110
|
+
i && /* @__PURE__ */ e("th", { className: `${xe[o]} w-12`, children: /* @__PURE__ */ e(
|
|
2111
2111
|
"input",
|
|
2112
2112
|
{
|
|
2113
2113
|
type: "checkbox",
|
|
2114
|
-
checked:
|
|
2115
|
-
ref: (
|
|
2116
|
-
|
|
2114
|
+
checked: D,
|
|
2115
|
+
ref: (v) => {
|
|
2116
|
+
v && (v.indeterminate = E);
|
|
2117
2117
|
},
|
|
2118
|
-
onChange:
|
|
2118
|
+
onChange: z,
|
|
2119
2119
|
className: "w-4 h-4 rounded-[var(--radius-sm)] border-border accent-primary cursor-pointer"
|
|
2120
2120
|
}
|
|
2121
2121
|
) }),
|
|
2122
|
-
t.map((
|
|
2122
|
+
t.map((v) => /* @__PURE__ */ e(
|
|
2123
2123
|
"th",
|
|
2124
2124
|
{
|
|
2125
|
-
className: `${xe[o]} text-${
|
|
2126
|
-
style: { ...
|
|
2127
|
-
onClick: () =>
|
|
2125
|
+
className: `${xe[o]} text-${v.align ?? "left"} text-muted-foreground ${v.sortable ? "cursor-pointer select-none hover:text-foreground transition-colors" : ""} ${l ? "border-x border-border first:border-l-0 last:border-r-0" : ""}`,
|
|
2126
|
+
style: { ...S, width: v.width },
|
|
2127
|
+
onClick: () => v.sortable && L(v.key),
|
|
2128
2128
|
children: /* @__PURE__ */ s("span", { className: "inline-flex items-center gap-1", children: [
|
|
2129
|
-
|
|
2130
|
-
|
|
2129
|
+
v.header,
|
|
2130
|
+
v.sortable && /* @__PURE__ */ e("span", { className: "text-muted-foreground/60", children: u === v.key ? w === "asc" ? /* @__PURE__ */ e(vr, { size: 14 }) : /* @__PURE__ */ e(Ie, { size: 14 }) : /* @__PURE__ */ e(Nr, { size: 12 }) })
|
|
2131
2131
|
] })
|
|
2132
2132
|
},
|
|
2133
|
-
|
|
2133
|
+
v.key
|
|
2134
2134
|
))
|
|
2135
2135
|
] }) }),
|
|
2136
|
-
/* @__PURE__ */ e("tbody", { children: f ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (
|
|
2136
|
+
/* @__PURE__ */ e("tbody", { children: f ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (i ? 1 : 0), className: `${xe[o]} text-center text-muted-foreground`, children: /* @__PURE__ */ s("div", { className: "flex items-center justify-center gap-2 py-8", children: [
|
|
2137
2137
|
/* @__PURE__ */ e("div", { className: "w-5 h-5 border-2 border-primary border-t-transparent rounded-full animate-spin" }),
|
|
2138
|
-
/* @__PURE__ */ e("span", { style:
|
|
2139
|
-
] }) }) }) :
|
|
2140
|
-
const
|
|
2138
|
+
/* @__PURE__ */ e("span", { style: H, children: "Loading..." })
|
|
2139
|
+
] }) }) }) : C.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (i ? 1 : 0), className: `${xe[o]} text-center text-muted-foreground py-12`, children: /* @__PURE__ */ e("span", { style: H, children: m }) }) }) : C.map((v, T) => {
|
|
2140
|
+
const q = y.has(T);
|
|
2141
2141
|
return /* @__PURE__ */ s(
|
|
2142
2142
|
"tr",
|
|
2143
2143
|
{
|
|
2144
|
-
className: `border-b border-border last:border-b-0 transition-colors ${
|
|
2144
|
+
className: `border-b border-border last:border-b-0 transition-colors ${q ? "bg-primary/5" : n && T % 2 === 1 ? "bg-muted/20" : "bg-card"} ${a ? "hover:bg-[var(--Colors--Background--bg-primary_hover)]" : ""}`,
|
|
2145
2145
|
children: [
|
|
2146
|
-
|
|
2146
|
+
i && /* @__PURE__ */ e("td", { className: `${xe[o]} w-12`, children: /* @__PURE__ */ e(
|
|
2147
2147
|
"input",
|
|
2148
2148
|
{
|
|
2149
2149
|
type: "checkbox",
|
|
2150
|
-
checked:
|
|
2151
|
-
onChange: () =>
|
|
2150
|
+
checked: q,
|
|
2151
|
+
onChange: () => W(T),
|
|
2152
2152
|
className: "w-4 h-4 rounded-[var(--radius-sm)] border-border accent-primary cursor-pointer"
|
|
2153
2153
|
}
|
|
2154
2154
|
) }),
|
|
2155
|
-
t.map((
|
|
2155
|
+
t.map((U) => /* @__PURE__ */ e(
|
|
2156
2156
|
"td",
|
|
2157
2157
|
{
|
|
2158
|
-
className: `${xe[o]} text-${
|
|
2159
|
-
style:
|
|
2160
|
-
children:
|
|
2158
|
+
className: `${xe[o]} text-${U.align ?? "left"} text-foreground ${l ? "border-x border-border first:border-l-0 last:border-r-0" : ""}`,
|
|
2159
|
+
style: H,
|
|
2160
|
+
children: U.render ? U.render(v[U.key], v, T) : v[U.key]
|
|
2161
2161
|
},
|
|
2162
|
-
|
|
2162
|
+
U.key
|
|
2163
2163
|
))
|
|
2164
2164
|
]
|
|
2165
2165
|
},
|
|
2166
|
-
|
|
2166
|
+
T
|
|
2167
2167
|
);
|
|
2168
2168
|
}) })
|
|
2169
2169
|
] }) }) });
|
|
@@ -2173,19 +2173,19 @@ const Gn = {
|
|
|
2173
2173
|
md: { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-button)", padding: "8px 16px" },
|
|
2174
2174
|
lg: { fontFamily: "var(--font-button)", fontSize: "var(--text-label)", fontWeight: "var(--weight-button)", padding: "10px 20px" }
|
|
2175
2175
|
};
|
|
2176
|
-
function Ta({ tabs: t, variant: r = "default", size: o = "md", defaultTab: n, activeTab: a, onChange:
|
|
2177
|
-
var
|
|
2178
|
-
const [d, f] =
|
|
2179
|
-
a || f(
|
|
2176
|
+
function Ta({ tabs: t, variant: r = "default", size: o = "md", defaultTab: n, activeTab: a, onChange: l, fullWidth: i = !1, className: c = "" }) {
|
|
2177
|
+
var A, y;
|
|
2178
|
+
const [d, f] = $(n ?? ((A = t[0]) == null ? void 0 : A.id) ?? ""), m = a ?? d, p = X(null), [g, u] = $({ left: 0, width: 0 }), N = (k) => {
|
|
2179
|
+
a || f(k), l == null || l(k);
|
|
2180
2180
|
};
|
|
2181
2181
|
V(() => {
|
|
2182
2182
|
if (r !== "underline" && r !== "default") return;
|
|
2183
|
-
const
|
|
2184
|
-
if (!
|
|
2185
|
-
const
|
|
2186
|
-
|
|
2187
|
-
}, [
|
|
2188
|
-
const
|
|
2183
|
+
const k = p.current;
|
|
2184
|
+
if (!k) return;
|
|
2185
|
+
const C = k.querySelector(`[data-tab-id="${m}"]`);
|
|
2186
|
+
C && u({ left: C.offsetLeft, width: C.offsetWidth });
|
|
2187
|
+
}, [m, r]);
|
|
2188
|
+
const w = (y = t.find((k) => k.id === m)) == null ? void 0 : y.content, h = (() => {
|
|
2189
2189
|
switch (r) {
|
|
2190
2190
|
case "bordered":
|
|
2191
2191
|
return "border border-border rounded-[var(--radius)] bg-muted/30 p-1 gap-1";
|
|
@@ -2196,22 +2196,22 @@ function Ta({ tabs: t, variant: r = "default", size: o = "md", defaultTab: n, ac
|
|
|
2196
2196
|
default:
|
|
2197
2197
|
return "border-b border-border relative";
|
|
2198
2198
|
}
|
|
2199
|
-
})(),
|
|
2200
|
-
const
|
|
2201
|
-
if (
|
|
2199
|
+
})(), x = (k, C) => {
|
|
2200
|
+
const L = "relative flex items-center gap-1.5 transition-all cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-ring whitespace-nowrap";
|
|
2201
|
+
if (C) return `${L} opacity-40 !cursor-not-allowed`;
|
|
2202
2202
|
switch (r) {
|
|
2203
2203
|
case "bordered":
|
|
2204
|
-
return `${
|
|
2204
|
+
return `${L} rounded-[var(--radius-sm)] ${k ? "bg-card text-foreground shadow-elevation-sm" : "text-muted-foreground hover:text-foreground hover:bg-card/50"}`;
|
|
2205
2205
|
case "pills":
|
|
2206
|
-
return `${
|
|
2206
|
+
return `${L} rounded-[var(--radius)] ${k ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground hover:bg-muted"}`;
|
|
2207
2207
|
case "underline":
|
|
2208
|
-
return `${
|
|
2208
|
+
return `${L} ${k ? "text-primary" : "text-muted-foreground hover:text-foreground"}`;
|
|
2209
2209
|
default:
|
|
2210
|
-
return `${
|
|
2210
|
+
return `${L} ${k ? "text-primary" : "text-muted-foreground hover:text-foreground"}`;
|
|
2211
2211
|
}
|
|
2212
2212
|
};
|
|
2213
2213
|
return /* @__PURE__ */ s("div", { className: c, children: [
|
|
2214
|
-
/* @__PURE__ */ s("div", { ref: p, className: `flex ${
|
|
2214
|
+
/* @__PURE__ */ s("div", { ref: p, className: `flex ${i ? "" : "inline-flex"} ${h}`, role: "tablist", children: [
|
|
2215
2215
|
(r === "default" || r === "underline") && /* @__PURE__ */ e(
|
|
2216
2216
|
"div",
|
|
2217
2217
|
{
|
|
@@ -2219,36 +2219,36 @@ function Ta({ tabs: t, variant: r = "default", size: o = "md", defaultTab: n, ac
|
|
|
2219
2219
|
style: { left: g.left, width: g.width }
|
|
2220
2220
|
}
|
|
2221
2221
|
),
|
|
2222
|
-
t.map((
|
|
2223
|
-
const
|
|
2222
|
+
t.map((k) => {
|
|
2223
|
+
const C = m === k.id;
|
|
2224
2224
|
return /* @__PURE__ */ s(
|
|
2225
2225
|
"button",
|
|
2226
2226
|
{
|
|
2227
|
-
"data-tab-id":
|
|
2227
|
+
"data-tab-id": k.id,
|
|
2228
2228
|
role: "tab",
|
|
2229
|
-
"aria-selected":
|
|
2230
|
-
disabled:
|
|
2231
|
-
onClick: () => !
|
|
2232
|
-
className: `${
|
|
2229
|
+
"aria-selected": C,
|
|
2230
|
+
disabled: k.disabled,
|
|
2231
|
+
onClick: () => !k.disabled && N(k.id),
|
|
2232
|
+
className: `${x(C, !!k.disabled)} ${i ? "flex-1 justify-center" : ""}`,
|
|
2233
2233
|
style: Gn[o],
|
|
2234
2234
|
children: [
|
|
2235
|
-
|
|
2236
|
-
/* @__PURE__ */ e("span", { children:
|
|
2237
|
-
|
|
2235
|
+
k.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: k.icon }),
|
|
2236
|
+
/* @__PURE__ */ e("span", { children: k.label }),
|
|
2237
|
+
k.badge !== void 0 && /* @__PURE__ */ e(
|
|
2238
2238
|
"span",
|
|
2239
2239
|
{
|
|
2240
|
-
className: `ml-1 px-1.5 py-0.5 rounded-full min-w-[18px] text-center ${
|
|
2240
|
+
className: `ml-1 px-1.5 py-0.5 rounded-full min-w-[18px] text-center ${C && r === "pills" ? "bg-primary-foreground/20 text-primary-foreground" : "bg-muted text-muted-foreground"}`,
|
|
2241
2241
|
style: { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-button)", lineHeight: "1" },
|
|
2242
|
-
children:
|
|
2242
|
+
children: k.badge
|
|
2243
2243
|
}
|
|
2244
2244
|
)
|
|
2245
2245
|
]
|
|
2246
2246
|
},
|
|
2247
|
-
|
|
2247
|
+
k.id
|
|
2248
2248
|
);
|
|
2249
2249
|
})
|
|
2250
2250
|
] }),
|
|
2251
|
-
|
|
2251
|
+
w && /* @__PURE__ */ e("div", { className: "pt-4", role: "tabpanel", children: w })
|
|
2252
2252
|
] });
|
|
2253
2253
|
}
|
|
2254
2254
|
const Jn = {
|
|
@@ -2271,7 +2271,7 @@ function Rt({ title: t, children: r, open: o, onToggle: n, icon: a }) {
|
|
|
2271
2271
|
a && /* @__PURE__ */ e("span", { className: "text-primary flex-shrink-0", children: a }),
|
|
2272
2272
|
/* @__PURE__ */ e("span", { className: "flex-1 text-foreground", style: Jn, children: t }),
|
|
2273
2273
|
/* @__PURE__ */ e(
|
|
2274
|
-
|
|
2274
|
+
Ie,
|
|
2275
2275
|
{
|
|
2276
2276
|
size: 16,
|
|
2277
2277
|
className: `text-muted-foreground transition-transform ${o ? "rotate-180" : ""}`
|
|
@@ -2289,35 +2289,35 @@ function Pn({
|
|
|
2289
2289
|
defaultOpen: o,
|
|
2290
2290
|
value: n,
|
|
2291
2291
|
onChange: a,
|
|
2292
|
-
className:
|
|
2292
|
+
className: l = ""
|
|
2293
2293
|
}) {
|
|
2294
|
-
const [
|
|
2294
|
+
const [i, c] = $(
|
|
2295
2295
|
typeof o == "string" ? o : null
|
|
2296
|
-
), [d, f] =
|
|
2296
|
+
), [d, f] = $(
|
|
2297
2297
|
Array.isArray(o) ? new Set(o) : /* @__PURE__ */ new Set()
|
|
2298
|
-
),
|
|
2298
|
+
), m = n !== void 0, p = (u) => m ? t === "single" ? n === u : Array.isArray(n) && n.includes(u) : t === "single" ? i === u : d.has(u), g = (u) => {
|
|
2299
2299
|
if (t === "single") {
|
|
2300
|
-
const
|
|
2301
|
-
|
|
2302
|
-
} else if (
|
|
2303
|
-
const
|
|
2304
|
-
a == null || a(
|
|
2300
|
+
const N = (m ? n === u : i === u) ? null : u;
|
|
2301
|
+
m || c(N), a == null || a(N);
|
|
2302
|
+
} else if (m) {
|
|
2303
|
+
const N = Array.isArray(n) ? n : [], w = N.includes(u) ? N.filter((h) => h !== u) : [...N, u];
|
|
2304
|
+
a == null || a(w);
|
|
2305
2305
|
} else
|
|
2306
|
-
f((
|
|
2307
|
-
const
|
|
2308
|
-
return
|
|
2306
|
+
f((N) => {
|
|
2307
|
+
const w = new Set(N);
|
|
2308
|
+
return w.has(u) ? w.delete(u) : w.add(u), w;
|
|
2309
2309
|
});
|
|
2310
2310
|
};
|
|
2311
|
-
return /* @__PURE__ */ e("div", { className: `rounded-[var(--radius)] border border-border overflow-hidden ${
|
|
2311
|
+
return /* @__PURE__ */ e("div", { className: `rounded-[var(--radius)] border border-border overflow-hidden ${l}`, children: r.map((u) => /* @__PURE__ */ e(
|
|
2312
2312
|
Rt,
|
|
2313
2313
|
{
|
|
2314
|
-
title:
|
|
2315
|
-
open: p(
|
|
2316
|
-
onToggle: () => g(
|
|
2317
|
-
icon:
|
|
2318
|
-
children:
|
|
2314
|
+
title: u.title,
|
|
2315
|
+
open: p(u.id),
|
|
2316
|
+
onToggle: () => g(u.id),
|
|
2317
|
+
icon: u.icon,
|
|
2318
|
+
children: u.content
|
|
2319
2319
|
},
|
|
2320
|
-
|
|
2320
|
+
u.id
|
|
2321
2321
|
)) });
|
|
2322
2322
|
}
|
|
2323
2323
|
Pn.displayName = "Accordion";
|
|
@@ -2345,21 +2345,21 @@ const gt = ["bg-primary", "bg-chart-2", "bg-chart-5", "bg-destructive", "bg-seco
|
|
|
2345
2345
|
fontWeight: "var(--weight-button)"
|
|
2346
2346
|
};
|
|
2347
2347
|
function no({ src: t, name: r, size: o = "md", status: n, className: a = "" }) {
|
|
2348
|
-
const
|
|
2348
|
+
const l = Vn[o], i = r ? r.split(" ").map((d) => d[0]).join("").slice(0, 2).toUpperCase() : "?", c = r ? gt[r.length % gt.length] : "bg-muted";
|
|
2349
2349
|
return /* @__PURE__ */ s("div", { className: `relative inline-flex ${a}`, children: [
|
|
2350
2350
|
t ? /* @__PURE__ */ e(
|
|
2351
2351
|
"img",
|
|
2352
2352
|
{
|
|
2353
2353
|
src: t,
|
|
2354
2354
|
alt: r || "avatar",
|
|
2355
|
-
className: `${
|
|
2355
|
+
className: `${l.box} rounded-full object-cover border-2 border-card`
|
|
2356
2356
|
}
|
|
2357
2357
|
) : /* @__PURE__ */ e(
|
|
2358
2358
|
"div",
|
|
2359
2359
|
{
|
|
2360
|
-
className: `${
|
|
2361
|
-
style:
|
|
2362
|
-
children:
|
|
2360
|
+
className: `${l.box} rounded-full ${c} text-white flex items-center justify-center border-2 border-card`,
|
|
2361
|
+
style: l.font,
|
|
2362
|
+
children: i
|
|
2363
2363
|
}
|
|
2364
2364
|
),
|
|
2365
2365
|
n && /* @__PURE__ */ e(
|
|
@@ -2371,17 +2371,17 @@ function no({ src: t, name: r, size: o = "md", status: n, className: a = "" }) {
|
|
|
2371
2371
|
] });
|
|
2372
2372
|
}
|
|
2373
2373
|
function oo({ children: t, max: r, className: o = "" }) {
|
|
2374
|
-
const n = tt.Children.toArray(t), a = r ? n.slice(0, r) : n,
|
|
2374
|
+
const n = tt.Children.toArray(t), a = r ? n.slice(0, r) : n, l = r && n.length > r ? n.length - r : 0;
|
|
2375
2375
|
return /* @__PURE__ */ s("div", { className: `flex -space-x-2 ${o}`, children: [
|
|
2376
|
-
a.map((
|
|
2377
|
-
|
|
2376
|
+
a.map((i, c) => /* @__PURE__ */ e("div", { className: "relative", style: { zIndex: a.length - c }, children: i }, c)),
|
|
2377
|
+
l > 0 && /* @__PURE__ */ s(
|
|
2378
2378
|
"div",
|
|
2379
2379
|
{
|
|
2380
2380
|
className: "relative w-10 h-10 rounded-full bg-muted text-foreground flex items-center justify-center border-2 border-card",
|
|
2381
2381
|
style: { ...ro, zIndex: 0 },
|
|
2382
2382
|
children: [
|
|
2383
2383
|
"+",
|
|
2384
|
-
|
|
2384
|
+
l
|
|
2385
2385
|
]
|
|
2386
2386
|
}
|
|
2387
2387
|
)
|
|
@@ -2412,20 +2412,20 @@ function Ia({
|
|
|
2412
2412
|
size: o = "md",
|
|
2413
2413
|
maxItems: n
|
|
2414
2414
|
}) {
|
|
2415
|
-
const a = r === "slash" ? /* @__PURE__ */ e(fn, { size: 12, className: "text-muted-foreground" }) : r === "dot" ? /* @__PURE__ */ e(Cr, { size: 16, className: "text-muted-foreground" }) : /* @__PURE__ */ e(
|
|
2415
|
+
const a = r === "slash" ? /* @__PURE__ */ e(fn, { size: 12, className: "text-muted-foreground" }) : r === "dot" ? /* @__PURE__ */ e(Cr, { size: 16, className: "text-muted-foreground" }) : /* @__PURE__ */ e(ie, { size: 12, className: "text-muted-foreground" }), l = o === "sm" ? "gap-1" : o === "lg" ? "gap-2.5" : "gap-1.5", i = so[o];
|
|
2416
2416
|
let c = t;
|
|
2417
2417
|
if (n && t.length > n) {
|
|
2418
2418
|
const d = t.slice(0, 1), f = t.slice(-(n - 1));
|
|
2419
2419
|
c = [...d, { label: "…" }, ...f];
|
|
2420
2420
|
}
|
|
2421
|
-
return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ e("ol", { className: `flex items-center flex-wrap ${
|
|
2421
|
+
return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ e("ol", { className: `flex items-center flex-wrap ${l}`, children: c.map((d, f) => /* @__PURE__ */ s("li", { className: "flex items-center gap-1.5", children: [
|
|
2422
2422
|
f > 0 && /* @__PURE__ */ e("span", { className: "mx-0.5", children: a }),
|
|
2423
2423
|
d.label === "…" ? /* @__PURE__ */ e("span", { className: "w-6 h-6 flex items-center justify-center rounded-[var(--radius-sm)] text-muted-foreground hover:bg-accent cursor-pointer", children: /* @__PURE__ */ e(Ct, { size: 14 }) }) : f === c.length - 1 ? /* @__PURE__ */ s(
|
|
2424
2424
|
"span",
|
|
2425
2425
|
{
|
|
2426
2426
|
className: "inline-flex items-center gap-1.5 text-foreground",
|
|
2427
2427
|
style: {
|
|
2428
|
-
...
|
|
2428
|
+
...i,
|
|
2429
2429
|
fontWeight: "var(--weight-button)"
|
|
2430
2430
|
},
|
|
2431
2431
|
children: [
|
|
@@ -2437,9 +2437,9 @@ function Ia({
|
|
|
2437
2437
|
"a",
|
|
2438
2438
|
{
|
|
2439
2439
|
href: d.href || "#",
|
|
2440
|
-
onClick: (
|
|
2440
|
+
onClick: (m) => m.preventDefault(),
|
|
2441
2441
|
className: "inline-flex items-center gap-1.5 text-muted-foreground hover:text-foreground transition-colors",
|
|
2442
|
-
style:
|
|
2442
|
+
style: i,
|
|
2443
2443
|
children: [
|
|
2444
2444
|
d.icon,
|
|
2445
2445
|
d.label
|
|
@@ -2448,22 +2448,22 @@ function Ia({
|
|
|
2448
2448
|
)
|
|
2449
2449
|
] }, f)) }) });
|
|
2450
2450
|
}
|
|
2451
|
-
const
|
|
2451
|
+
const io = {
|
|
2452
2452
|
none: "",
|
|
2453
2453
|
sm: "shadow-sm",
|
|
2454
2454
|
md: "shadow-md",
|
|
2455
2455
|
lg: "shadow-lg"
|
|
2456
2456
|
};
|
|
2457
|
-
function
|
|
2457
|
+
function lo({ children: t, className: r, hover: o, elevation: n = "none" }) {
|
|
2458
2458
|
return /* @__PURE__ */ e(
|
|
2459
2459
|
"div",
|
|
2460
2460
|
{
|
|
2461
|
-
className: `rounded-[var(--radius-lg)] border border-border bg-card overflow-hidden ${
|
|
2461
|
+
className: `rounded-[var(--radius-lg)] border border-border bg-card overflow-hidden ${io[n] ?? ""} ${o ? "hover:border-primary/40 hover:shadow-md transition-all cursor-pointer" : ""} ${r ?? ""}`,
|
|
2462
2462
|
children: t
|
|
2463
2463
|
}
|
|
2464
2464
|
);
|
|
2465
2465
|
}
|
|
2466
|
-
|
|
2466
|
+
lo.displayName = "Card";
|
|
2467
2467
|
function co({ children: t, action: r }) {
|
|
2468
2468
|
return /* @__PURE__ */ s("div", { className: "px-5 py-4 border-b border-border flex items-center justify-between", children: [
|
|
2469
2469
|
/* @__PURE__ */ e("div", { children: t }),
|
|
@@ -2510,11 +2510,11 @@ function ho(t) {
|
|
|
2510
2510
|
return `rgb(${r}, ${o}, ${n})`;
|
|
2511
2511
|
}
|
|
2512
2512
|
function bo(t) {
|
|
2513
|
-
const r = parseInt(t.slice(1, 3), 16) / 255, o = parseInt(t.slice(3, 5), 16) / 255, n = parseInt(t.slice(5, 7), 16) / 255, a = Math.max(r, o, n),
|
|
2514
|
-
if (a ===
|
|
2515
|
-
const c = a -
|
|
2513
|
+
const r = parseInt(t.slice(1, 3), 16) / 255, o = parseInt(t.slice(3, 5), 16) / 255, n = parseInt(t.slice(5, 7), 16) / 255, a = Math.max(r, o, n), l = Math.min(r, o, n), i = (a + l) / 2;
|
|
2514
|
+
if (a === l) return `hsl(0, 0%, ${Math.round(i * 100)}%)`;
|
|
2515
|
+
const c = a - l, d = i > 0.5 ? c / (2 - a - l) : c / (a + l);
|
|
2516
2516
|
let f = 0;
|
|
2517
|
-
return a === r ? f = ((o - n) / c + (o < n ? 6 : 0)) / 6 : a === o ? f = ((n - r) / c + 2) / 6 : f = ((r - o) / c + 4) / 6, `hsl(${Math.round(f * 360)}, ${Math.round(d * 100)}%, ${Math.round(
|
|
2517
|
+
return a === r ? f = ((o - n) / c + (o < n ? 6 : 0)) / 6 : a === o ? f = ((n - r) / c + 2) / 6 : f = ((r - o) / c + 4) / 6, `hsl(${Math.round(f * 360)}, ${Math.round(d * 100)}%, ${Math.round(i * 100)}%)`;
|
|
2518
2518
|
}
|
|
2519
2519
|
const po = {
|
|
2520
2520
|
fontFamily: "var(--font-label)",
|
|
@@ -2535,11 +2535,11 @@ function Ba({
|
|
|
2535
2535
|
label: o,
|
|
2536
2536
|
presets: n,
|
|
2537
2537
|
showInput: a = !0,
|
|
2538
|
-
showFormats:
|
|
2539
|
-
size:
|
|
2538
|
+
showFormats: l,
|
|
2539
|
+
size: i = "md"
|
|
2540
2540
|
}) {
|
|
2541
|
-
const [c, d] =
|
|
2542
|
-
navigator.clipboard.writeText(
|
|
2541
|
+
const [c, d] = $(!1), f = X(null), m = i === "sm" ? "w-5 h-5" : i === "lg" ? "w-8 h-8" : "w-6 h-6", p = n || mo, g = (u) => {
|
|
2542
|
+
navigator.clipboard.writeText(u).then(() => {
|
|
2543
2543
|
d(!0), setTimeout(() => d(!1), 1500);
|
|
2544
2544
|
});
|
|
2545
2545
|
};
|
|
@@ -2553,8 +2553,8 @@ function Ba({
|
|
|
2553
2553
|
className: "w-10 h-10 rounded-[var(--radius-md)] border border-border cursor-pointer overflow-hidden",
|
|
2554
2554
|
style: { backgroundColor: t },
|
|
2555
2555
|
onClick: () => {
|
|
2556
|
-
var
|
|
2557
|
-
return (
|
|
2556
|
+
var u;
|
|
2557
|
+
return (u = f.current) == null ? void 0 : u.click();
|
|
2558
2558
|
}
|
|
2559
2559
|
}
|
|
2560
2560
|
),
|
|
@@ -2564,7 +2564,7 @@ function Ba({
|
|
|
2564
2564
|
ref: f,
|
|
2565
2565
|
type: "color",
|
|
2566
2566
|
value: t,
|
|
2567
|
-
onChange: (
|
|
2567
|
+
onChange: (u) => r(u.target.value),
|
|
2568
2568
|
className: "absolute inset-0 opacity-0 cursor-pointer w-full h-full"
|
|
2569
2569
|
}
|
|
2570
2570
|
)
|
|
@@ -2574,8 +2574,8 @@ function Ba({
|
|
|
2574
2574
|
"input",
|
|
2575
2575
|
{
|
|
2576
2576
|
value: t,
|
|
2577
|
-
onChange: (
|
|
2578
|
-
(/^#[0-9a-fA-F]{0,6}$/.test(
|
|
2577
|
+
onChange: (u) => {
|
|
2578
|
+
(/^#[0-9a-fA-F]{0,6}$/.test(u.target.value) || u.target.value === "#") && r(u.target.value);
|
|
2579
2579
|
},
|
|
2580
2580
|
className: "w-24 px-2.5 py-1.5 rounded-[var(--radius-md)] border border-border bg-background text-foreground outline-none focus:border-primary",
|
|
2581
2581
|
style: vt,
|
|
@@ -2592,33 +2592,33 @@ function Ba({
|
|
|
2592
2592
|
)
|
|
2593
2593
|
] })
|
|
2594
2594
|
] }),
|
|
2595
|
-
p.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1.5", children: p.map((
|
|
2595
|
+
p.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1.5", children: p.map((u) => /* @__PURE__ */ e(
|
|
2596
2596
|
"button",
|
|
2597
2597
|
{
|
|
2598
|
-
onClick: () => r(
|
|
2599
|
-
className: `${
|
|
2600
|
-
${t ===
|
|
2601
|
-
style: { backgroundColor:
|
|
2602
|
-
title:
|
|
2598
|
+
onClick: () => r(u),
|
|
2599
|
+
className: `${m} rounded-[var(--radius-sm)] border-2 transition-transform hover:scale-110 cursor-pointer
|
|
2600
|
+
${t === u ? "border-foreground ring-1 ring-foreground/20" : "border-transparent"}`,
|
|
2601
|
+
style: { backgroundColor: u },
|
|
2602
|
+
title: u
|
|
2603
2603
|
},
|
|
2604
|
-
|
|
2604
|
+
u
|
|
2605
2605
|
)) }),
|
|
2606
|
-
|
|
2606
|
+
l && /* @__PURE__ */ e("div", { className: "space-y-1", children: [
|
|
2607
2607
|
{ label: "HEX", val: t.toUpperCase() },
|
|
2608
2608
|
{ label: "RGB", val: ho(t) },
|
|
2609
2609
|
{ label: "HSL", val: bo(t) }
|
|
2610
|
-
].map((
|
|
2611
|
-
/* @__PURE__ */ e("span", { className: "w-8 text-muted-foreground", style: go, children:
|
|
2612
|
-
/* @__PURE__ */ e("code", { className: "text-foreground", style: vt, children:
|
|
2610
|
+
].map((u) => /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
2611
|
+
/* @__PURE__ */ e("span", { className: "w-8 text-muted-foreground", style: go, children: u.label }),
|
|
2612
|
+
/* @__PURE__ */ e("code", { className: "text-foreground", style: vt, children: u.val }),
|
|
2613
2613
|
/* @__PURE__ */ e(
|
|
2614
2614
|
"button",
|
|
2615
2615
|
{
|
|
2616
|
-
onClick: () => g(
|
|
2616
|
+
onClick: () => g(u.val),
|
|
2617
2617
|
className: "text-muted-foreground hover:text-foreground cursor-pointer",
|
|
2618
2618
|
children: /* @__PURE__ */ e(ft, { size: 12 })
|
|
2619
2619
|
}
|
|
2620
2620
|
)
|
|
2621
|
-
] },
|
|
2621
|
+
] }, u.label)) })
|
|
2622
2622
|
] });
|
|
2623
2623
|
}
|
|
2624
2624
|
const vo = {
|
|
@@ -2633,17 +2633,17 @@ function xo({
|
|
|
2633
2633
|
spacing: n = "md",
|
|
2634
2634
|
className: a = ""
|
|
2635
2635
|
}) {
|
|
2636
|
-
const
|
|
2636
|
+
const l = { sm: "my-2", md: "my-4", lg: "my-8" }, i = o ? "border-dashed" : "border-solid";
|
|
2637
2637
|
return r === "vertical" ? /* @__PURE__ */ e(
|
|
2638
2638
|
"div",
|
|
2639
2639
|
{
|
|
2640
|
-
className: `inline-block h-full min-h-[24px] border-l border-border ${
|
|
2640
|
+
className: `inline-block h-full min-h-[24px] border-l border-border ${i} mx-3 ${a}`
|
|
2641
2641
|
}
|
|
2642
|
-
) : t ? /* @__PURE__ */ s("div", { className: `flex items-center gap-3 ${
|
|
2643
|
-
/* @__PURE__ */ e("div", { className: `flex-1 border-t border-border ${
|
|
2642
|
+
) : t ? /* @__PURE__ */ s("div", { className: `flex items-center gap-3 ${l[n]} ${a}`, children: [
|
|
2643
|
+
/* @__PURE__ */ e("div", { className: `flex-1 border-t border-border ${i}` }),
|
|
2644
2644
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground flex-shrink-0", style: vo, children: t }),
|
|
2645
|
-
/* @__PURE__ */ e("div", { className: `flex-1 border-t border-border ${
|
|
2646
|
-
] }) : /* @__PURE__ */ e("hr", { className: `border-t border-border ${
|
|
2645
|
+
/* @__PURE__ */ e("div", { className: `flex-1 border-t border-border ${i}` })
|
|
2646
|
+
] }) : /* @__PURE__ */ e("hr", { className: `border-t border-border ${i} ${l[n]} ${a}` });
|
|
2647
2647
|
}
|
|
2648
2648
|
xo.displayName = "Divider";
|
|
2649
2649
|
const yo = {
|
|
@@ -2657,23 +2657,23 @@ function wo({
|
|
|
2657
2657
|
title: o,
|
|
2658
2658
|
children: n,
|
|
2659
2659
|
side: a = "right",
|
|
2660
|
-
size:
|
|
2661
|
-
footer:
|
|
2660
|
+
size: l = "md",
|
|
2661
|
+
footer: i,
|
|
2662
2662
|
className: c = ""
|
|
2663
2663
|
}) {
|
|
2664
2664
|
if (!t) return null;
|
|
2665
|
-
const d = { sm: "w-72", md: "w-96", lg: "w-[480px]" }, f = { sm: "h-48", md: "h-72", lg: "h-96" },
|
|
2666
|
-
right: `top-0 right-0 h-full ${d[
|
|
2667
|
-
left: `top-0 left-0 h-full ${d[
|
|
2668
|
-
top: `top-0 left-0 w-full ${f[
|
|
2669
|
-
bottom: `bottom-0 left-0 w-full ${f[
|
|
2665
|
+
const d = { sm: "w-72", md: "w-96", lg: "w-[480px]" }, f = { sm: "h-48", md: "h-72", lg: "h-96" }, m = {
|
|
2666
|
+
right: `top-0 right-0 h-full ${d[l]} animate-[slideRight_0.2s_ease]`,
|
|
2667
|
+
left: `top-0 left-0 h-full ${d[l]} animate-[slideLeft_0.2s_ease]`,
|
|
2668
|
+
top: `top-0 left-0 w-full ${f[l]} animate-[slideTop_0.2s_ease]`,
|
|
2669
|
+
bottom: `bottom-0 left-0 w-full ${f[l]} animate-[slideBottom_0.2s_ease]`
|
|
2670
2670
|
};
|
|
2671
2671
|
return /* @__PURE__ */ s("div", { className: "fixed inset-0 z-50", children: [
|
|
2672
2672
|
/* @__PURE__ */ e("div", { className: "absolute inset-0 bg-foreground/20", onClick: r }),
|
|
2673
2673
|
/* @__PURE__ */ s(
|
|
2674
2674
|
"div",
|
|
2675
2675
|
{
|
|
2676
|
-
className: `absolute bg-card border border-border shadow-lg flex flex-col ${
|
|
2676
|
+
className: `absolute bg-card border border-border shadow-lg flex flex-col ${m[a]} ${c}`,
|
|
2677
2677
|
children: [
|
|
2678
2678
|
o && /* @__PURE__ */ s("div", { className: "px-5 py-4 border-b border-border flex items-center justify-between flex-shrink-0", children: [
|
|
2679
2679
|
/* @__PURE__ */ e("span", { className: "text-foreground", style: yo, children: o }),
|
|
@@ -2687,7 +2687,7 @@ function wo({
|
|
|
2687
2687
|
)
|
|
2688
2688
|
] }),
|
|
2689
2689
|
/* @__PURE__ */ e("div", { className: "flex-1 overflow-y-auto p-5", children: n }),
|
|
2690
|
-
|
|
2690
|
+
i && /* @__PURE__ */ e("div", { className: "px-5 py-3 border-t border-border flex items-center gap-2 flex-shrink-0", children: i })
|
|
2691
2691
|
]
|
|
2692
2692
|
}
|
|
2693
2693
|
),
|
|
@@ -2761,168 +2761,168 @@ const No = {
|
|
|
2761
2761
|
defaultValue: o,
|
|
2762
2762
|
onChange: n,
|
|
2763
2763
|
placeholder: a = "Select an option…",
|
|
2764
|
-
label:
|
|
2765
|
-
helperText:
|
|
2764
|
+
label: l,
|
|
2765
|
+
helperText: i,
|
|
2766
2766
|
errorMessage: c,
|
|
2767
2767
|
successMessage: d,
|
|
2768
2768
|
size: f = "md",
|
|
2769
|
-
variant:
|
|
2769
|
+
variant: m = "default",
|
|
2770
2770
|
state: p = "default",
|
|
2771
2771
|
disabled: g = !1,
|
|
2772
|
-
loading:
|
|
2773
|
-
searchable:
|
|
2774
|
-
clearable:
|
|
2772
|
+
loading: u = !1,
|
|
2773
|
+
searchable: N = !1,
|
|
2774
|
+
clearable: w = !1,
|
|
2775
2775
|
multiple: h = !1,
|
|
2776
|
-
maxSelections:
|
|
2777
|
-
grouped:
|
|
2778
|
-
required:
|
|
2779
|
-
id:
|
|
2780
|
-
className:
|
|
2781
|
-
showSelectAll:
|
|
2782
|
-
tagLimit:
|
|
2783
|
-
creatable:
|
|
2784
|
-
onCreateOption:
|
|
2785
|
-
createLabel:
|
|
2786
|
-
emptyState:
|
|
2787
|
-
footer:
|
|
2788
|
-
onSearch:
|
|
2789
|
-
searchDebounce:
|
|
2790
|
-
searchLoading:
|
|
2791
|
-
renderOption:
|
|
2776
|
+
maxSelections: x,
|
|
2777
|
+
grouped: A = !1,
|
|
2778
|
+
required: y = !1,
|
|
2779
|
+
id: k,
|
|
2780
|
+
className: C = "",
|
|
2781
|
+
showSelectAll: L = !1,
|
|
2782
|
+
tagLimit: D,
|
|
2783
|
+
creatable: E = !1,
|
|
2784
|
+
onCreateOption: z,
|
|
2785
|
+
createLabel: W = 'Create "{query}"',
|
|
2786
|
+
emptyState: H,
|
|
2787
|
+
footer: S,
|
|
2788
|
+
onSearch: v,
|
|
2789
|
+
searchDebounce: T = 300,
|
|
2790
|
+
searchLoading: q = !1,
|
|
2791
|
+
renderOption: U
|
|
2792
2792
|
}, Q) => {
|
|
2793
|
-
const [
|
|
2793
|
+
const [K, P] = $(!1), [O, oe] = $(""), [ae, se] = $(-1), [be, de] = $(
|
|
2794
2794
|
o ?? (h ? [] : "")
|
|
2795
|
-
),
|
|
2795
|
+
), I = r ?? be, ce = X(null), we = X(null), Fe = X(null), ue = X(null), [fe, He] = $({ top: 0, left: 0, width: 0 }), Y = No[f], Ne = ko[m];
|
|
2796
2796
|
V(() => {
|
|
2797
|
-
if (!
|
|
2797
|
+
if (!K || !ce.current) return;
|
|
2798
2798
|
const b = () => {
|
|
2799
|
-
const
|
|
2800
|
-
|
|
2799
|
+
const M = ce.current.getBoundingClientRect();
|
|
2800
|
+
He({ top: M.bottom + 4, left: M.left, width: M.width });
|
|
2801
2801
|
};
|
|
2802
2802
|
return b(), window.addEventListener("scroll", b, !0), window.addEventListener("resize", b), () => {
|
|
2803
2803
|
window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", b);
|
|
2804
2804
|
};
|
|
2805
|
-
}, [
|
|
2806
|
-
const
|
|
2805
|
+
}, [K]);
|
|
2806
|
+
const Ye = ee(
|
|
2807
2807
|
(b) => {
|
|
2808
|
-
oe(b),
|
|
2809
|
-
|
|
2810
|
-
},
|
|
2808
|
+
oe(b), v && (ue.current && clearTimeout(ue.current), ue.current = setTimeout(() => {
|
|
2809
|
+
v(b);
|
|
2810
|
+
}, T));
|
|
2811
2811
|
},
|
|
2812
|
-
[
|
|
2812
|
+
[v, T]
|
|
2813
2813
|
);
|
|
2814
2814
|
V(() => () => {
|
|
2815
2815
|
ue.current && clearTimeout(ue.current);
|
|
2816
2816
|
}, []);
|
|
2817
|
-
const ne = re(() => !
|
|
2817
|
+
const ne = re(() => !O || v ? t : t.filter(
|
|
2818
2818
|
(b) => {
|
|
2819
|
-
var
|
|
2820
|
-
return b.label.toLowerCase().includes(
|
|
2819
|
+
var M;
|
|
2820
|
+
return b.label.toLowerCase().includes(O.toLowerCase()) || ((M = b.description) == null ? void 0 : M.toLowerCase().includes(O.toLowerCase()));
|
|
2821
2821
|
}
|
|
2822
|
-
), [t,
|
|
2823
|
-
if (!
|
|
2822
|
+
), [t, O, v]), Z = re(() => {
|
|
2823
|
+
if (!A) return null;
|
|
2824
2824
|
const b = {};
|
|
2825
|
-
return ne.forEach((
|
|
2826
|
-
const
|
|
2827
|
-
b[
|
|
2825
|
+
return ne.forEach((M) => {
|
|
2826
|
+
const j = M.group || "Other";
|
|
2827
|
+
b[j] || (b[j] = []), b[j].push(M);
|
|
2828
2828
|
}), b;
|
|
2829
|
-
}, [ne,
|
|
2829
|
+
}, [ne, A]), pe = re(() => {
|
|
2830
2830
|
var b;
|
|
2831
|
-
return h && Array.isArray(
|
|
2832
|
-
var
|
|
2833
|
-
return (
|
|
2834
|
-
}).filter(Boolean) : (b = t.find((
|
|
2835
|
-
}, [
|
|
2836
|
-
(b) => h && Array.isArray(
|
|
2837
|
-
[
|
|
2838
|
-
),
|
|
2831
|
+
return h && Array.isArray(I) ? I.map((M) => {
|
|
2832
|
+
var j;
|
|
2833
|
+
return (j = t.find((ve) => ve.value === M)) == null ? void 0 : j.label;
|
|
2834
|
+
}).filter(Boolean) : (b = t.find((M) => M.value === I)) != null && b.label ? [t.find((M) => M.value === I).label] : [];
|
|
2835
|
+
}, [I, t, h]), _ = ee(
|
|
2836
|
+
(b) => h && Array.isArray(I) ? I.includes(b) : I === b,
|
|
2837
|
+
[I, h]
|
|
2838
|
+
), B = ee(
|
|
2839
2839
|
(b) => {
|
|
2840
2840
|
if (h) {
|
|
2841
|
-
const
|
|
2842
|
-
if (
|
|
2843
|
-
|
|
2841
|
+
const M = Array.isArray(I) ? [...I] : [], j = M.indexOf(b);
|
|
2842
|
+
if (j > -1)
|
|
2843
|
+
M.splice(j, 1);
|
|
2844
2844
|
else {
|
|
2845
|
-
if (
|
|
2846
|
-
|
|
2845
|
+
if (x && M.length >= x) return;
|
|
2846
|
+
M.push(b);
|
|
2847
2847
|
}
|
|
2848
|
-
de(
|
|
2848
|
+
de(M), n == null || n(M);
|
|
2849
2849
|
} else
|
|
2850
2850
|
de(b), n == null || n(b), P(!1);
|
|
2851
2851
|
oe("");
|
|
2852
2852
|
},
|
|
2853
|
-
[
|
|
2853
|
+
[I, h, x, n]
|
|
2854
2854
|
), te = re(
|
|
2855
2855
|
() => ne.filter((b) => !b.disabled).map((b) => b.value),
|
|
2856
2856
|
[ne]
|
|
2857
|
-
),
|
|
2857
|
+
), R = re(() => !h || !Array.isArray(I) ? !1 : te.length > 0 && te.every((b) => I.includes(b)), [h, I, te]), We = re(() => !h || !Array.isArray(I) ? !1 : te.some((b) => I.includes(b)) && !R, [h, I, te, R]), Me = ee(() => {
|
|
2858
2858
|
if (h)
|
|
2859
|
-
if (
|
|
2860
|
-
const b = Array.isArray(
|
|
2859
|
+
if (R) {
|
|
2860
|
+
const b = Array.isArray(I) ? I.filter((M) => !te.includes(M)) : [];
|
|
2861
2861
|
de(b), n == null || n(b);
|
|
2862
2862
|
} else {
|
|
2863
|
-
const b = Array.isArray(
|
|
2864
|
-
for (const
|
|
2865
|
-
if (!b.includes(
|
|
2866
|
-
if (
|
|
2867
|
-
b.push(
|
|
2863
|
+
const b = Array.isArray(I) ? [...I] : [];
|
|
2864
|
+
for (const M of te)
|
|
2865
|
+
if (!b.includes(M)) {
|
|
2866
|
+
if (x && b.length >= x) break;
|
|
2867
|
+
b.push(M);
|
|
2868
2868
|
}
|
|
2869
2869
|
de(b), n == null || n(b);
|
|
2870
2870
|
}
|
|
2871
|
-
}, [h,
|
|
2872
|
-
|
|
2873
|
-
}, [
|
|
2871
|
+
}, [h, R, I, te, x, n]), Re = ee(() => {
|
|
2872
|
+
O.trim() && (z == null || z(O.trim()), oe(""));
|
|
2873
|
+
}, [O, z]), ge = re(() => !E || !O.trim() ? !1 : !t.some((b) => b.label.toLowerCase() === O.toLowerCase()), [E, O, t]), qe = ee(
|
|
2874
2874
|
(b) => {
|
|
2875
2875
|
b.stopPropagation();
|
|
2876
|
-
const
|
|
2877
|
-
de(
|
|
2876
|
+
const M = h ? [] : "";
|
|
2877
|
+
de(M), n == null || n(M);
|
|
2878
2878
|
},
|
|
2879
2879
|
[h, n]
|
|
2880
|
-
), _e =
|
|
2880
|
+
), _e = A ? Object.values(Z || {}).flat() : ne, st = ee(
|
|
2881
2881
|
(b) => {
|
|
2882
|
-
var
|
|
2883
|
-
if (!(g ||
|
|
2882
|
+
var M;
|
|
2883
|
+
if (!(g || u))
|
|
2884
2884
|
switch (b.key) {
|
|
2885
2885
|
case "ArrowDown":
|
|
2886
|
-
b.preventDefault(),
|
|
2887
|
-
(
|
|
2886
|
+
b.preventDefault(), K ? se(
|
|
2887
|
+
(j) => j < _e.length - 1 ? j + 1 : 0
|
|
2888
2888
|
) : P(!0);
|
|
2889
2889
|
break;
|
|
2890
2890
|
case "ArrowUp":
|
|
2891
2891
|
b.preventDefault(), se(
|
|
2892
|
-
(
|
|
2892
|
+
(j) => j > 0 ? j - 1 : _e.length - 1
|
|
2893
2893
|
);
|
|
2894
2894
|
break;
|
|
2895
2895
|
case "Enter":
|
|
2896
2896
|
case " ":
|
|
2897
|
-
if (b.preventDefault(),
|
|
2898
|
-
const
|
|
2899
|
-
|
|
2897
|
+
if (b.preventDefault(), K && ae >= 0) {
|
|
2898
|
+
const j = _e[ae];
|
|
2899
|
+
j && !j.disabled && B(j.value);
|
|
2900
2900
|
} else
|
|
2901
2901
|
P(!0);
|
|
2902
2902
|
break;
|
|
2903
2903
|
case "Escape":
|
|
2904
|
-
P(!1), (
|
|
2904
|
+
P(!1), (M = ce.current) == null || M.focus();
|
|
2905
2905
|
break;
|
|
2906
2906
|
}
|
|
2907
2907
|
},
|
|
2908
|
-
[g,
|
|
2908
|
+
[g, u, K, ae, _e, B]
|
|
2909
2909
|
);
|
|
2910
2910
|
V(() => {
|
|
2911
|
-
const b = (
|
|
2912
|
-
const
|
|
2913
|
-
ce.current && !ce.current.contains(
|
|
2911
|
+
const b = (M) => {
|
|
2912
|
+
const j = M.target;
|
|
2913
|
+
ce.current && !ce.current.contains(j) && we.current && !we.current.contains(j) && (P(!1), oe(""));
|
|
2914
2914
|
};
|
|
2915
2915
|
return document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
|
|
2916
2916
|
}, []), V(() => {
|
|
2917
|
-
|
|
2917
|
+
K && N && setTimeout(() => {
|
|
2918
2918
|
var b;
|
|
2919
2919
|
return (b = Fe.current) == null ? void 0 : b.focus();
|
|
2920
|
-
}, 50),
|
|
2921
|
-
}, [
|
|
2922
|
-
const
|
|
2923
|
-
const b = pe,
|
|
2920
|
+
}, 50), K && se(-1);
|
|
2921
|
+
}, [K, N]);
|
|
2922
|
+
const Oe = h ? Array.isArray(I) && I.length > 0 : !!I, Ce = c ? "error" : p, Qt = () => {
|
|
2923
|
+
const b = pe, M = D && D > 0 ? D : b.length, j = b.slice(0, M), ve = b.length - j.length;
|
|
2924
2924
|
return /* @__PURE__ */ s("span", { className: "flex flex-wrap gap-1", children: [
|
|
2925
|
-
|
|
2925
|
+
j.map((Ue) => /* @__PURE__ */ s(
|
|
2926
2926
|
"span",
|
|
2927
2927
|
{
|
|
2928
2928
|
className: "inline-flex items-center gap-1 px-2 py-0.5 rounded-[var(--radius-sm)] bg-[var(--Colors--Background--bg-brand-secondary)] text-[var(--Colors--Text--text-brand-primary)]",
|
|
@@ -2937,7 +2937,7 @@ const No = {
|
|
|
2937
2937
|
onClick: (Pt) => {
|
|
2938
2938
|
Pt.stopPropagation();
|
|
2939
2939
|
const ct = t.find((Vt) => Vt.label === Ue);
|
|
2940
|
-
ct &&
|
|
2940
|
+
ct && B(ct.value);
|
|
2941
2941
|
}
|
|
2942
2942
|
}
|
|
2943
2943
|
)
|
|
@@ -2958,24 +2958,24 @@ const No = {
|
|
|
2958
2958
|
}
|
|
2959
2959
|
)
|
|
2960
2960
|
] });
|
|
2961
|
-
},
|
|
2962
|
-
const
|
|
2963
|
-
return
|
|
2961
|
+
}, it = (b, M) => {
|
|
2962
|
+
const j = _(b.value);
|
|
2963
|
+
return U ? /* @__PURE__ */ e(
|
|
2964
2964
|
"button",
|
|
2965
2965
|
{
|
|
2966
2966
|
type: "button",
|
|
2967
2967
|
role: "option",
|
|
2968
|
-
"aria-selected":
|
|
2968
|
+
"aria-selected": j,
|
|
2969
2969
|
disabled: b.disabled,
|
|
2970
|
-
className: `w-full ${
|
|
2971
|
-
${
|
|
2972
|
-
${ae ===
|
|
2970
|
+
className: `w-full ${Y.option} transition-colors cursor-pointer
|
|
2971
|
+
${j ? "bg-[var(--Colors--Background--bg-brand-secondary)]" : ""}
|
|
2972
|
+
${ae === M && !j ? "bg-[var(--Colors--Background--bg-primary_hover)]" : ""}
|
|
2973
2973
|
${b.disabled ? "opacity-40 cursor-not-allowed" : "hover:bg-[var(--Colors--Background--bg-primary_hover)]"}
|
|
2974
2974
|
`,
|
|
2975
|
-
style:
|
|
2976
|
-
onClick: () => !b.disabled &&
|
|
2977
|
-
onMouseEnter: () => se(
|
|
2978
|
-
children:
|
|
2975
|
+
style: Y.optionStyle,
|
|
2976
|
+
onClick: () => !b.disabled && B(b.value),
|
|
2977
|
+
onMouseEnter: () => se(M),
|
|
2978
|
+
children: U(b, j)
|
|
2979
2979
|
},
|
|
2980
2980
|
b.value
|
|
2981
2981
|
) : /* @__PURE__ */ s(
|
|
@@ -2983,24 +2983,24 @@ const No = {
|
|
|
2983
2983
|
{
|
|
2984
2984
|
type: "button",
|
|
2985
2985
|
role: "option",
|
|
2986
|
-
"aria-selected":
|
|
2986
|
+
"aria-selected": j,
|
|
2987
2987
|
disabled: b.disabled,
|
|
2988
|
-
className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${
|
|
2989
|
-
${
|
|
2990
|
-
${ae ===
|
|
2988
|
+
className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${Y.option} transition-colors cursor-pointer
|
|
2989
|
+
${j ? "bg-[var(--Colors--Background--bg-brand-secondary)] text-[var(--Colors--Text--text-brand-primary)]" : ""}
|
|
2990
|
+
${ae === M && !j ? "bg-[var(--Colors--Background--bg-primary_hover)]" : ""}
|
|
2991
2991
|
${b.disabled ? "opacity-40 cursor-not-allowed" : "hover:bg-[var(--Colors--Background--bg-primary_hover)]"}
|
|
2992
2992
|
`,
|
|
2993
|
-
style: { ...
|
|
2994
|
-
onClick: () => !b.disabled &&
|
|
2995
|
-
onMouseEnter: () => se(
|
|
2993
|
+
style: { ...Y.optionStyle, ...Y.textStyle },
|
|
2994
|
+
onClick: () => !b.disabled && B(b.value),
|
|
2995
|
+
onMouseEnter: () => se(M),
|
|
2996
2996
|
children: [
|
|
2997
2997
|
h && /* @__PURE__ */ e(
|
|
2998
2998
|
"span",
|
|
2999
2999
|
{
|
|
3000
3000
|
className: `flex-shrink-0 w-4 h-4 rounded-[var(--radius-sm)] border flex items-center justify-center transition-colors
|
|
3001
|
-
${
|
|
3001
|
+
${j ? "bg-primary border-primary" : "border-border"}
|
|
3002
3002
|
`,
|
|
3003
|
-
children:
|
|
3003
|
+
children: j && /* @__PURE__ */ e(me, { size: 10, className: "text-primary-foreground" })
|
|
3004
3004
|
}
|
|
3005
3005
|
),
|
|
3006
3006
|
b.avatar && /* @__PURE__ */ e(
|
|
@@ -3009,7 +3009,7 @@ const No = {
|
|
|
3009
3009
|
src: b.avatar,
|
|
3010
3010
|
alt: "",
|
|
3011
3011
|
className: "flex-shrink-0 rounded-full object-cover",
|
|
3012
|
-
style: { width:
|
|
3012
|
+
style: { width: Y.avatarSize, height: Y.avatarSize }
|
|
3013
3013
|
}
|
|
3014
3014
|
),
|
|
3015
3015
|
b.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: b.icon }),
|
|
@@ -3019,22 +3019,22 @@ const No = {
|
|
|
3019
3019
|
"span",
|
|
3020
3020
|
{
|
|
3021
3021
|
className: "block text-muted-foreground",
|
|
3022
|
-
style: { marginTop: "var(--Spacing--Spacing-xxs)", ...
|
|
3022
|
+
style: { marginTop: "var(--Spacing--Spacing-xxs)", ...Y.descStyle },
|
|
3023
3023
|
children: b.description
|
|
3024
3024
|
}
|
|
3025
3025
|
)
|
|
3026
3026
|
] }),
|
|
3027
|
-
!h &&
|
|
3027
|
+
!h && j && /* @__PURE__ */ e(me, { size: Y.icon, className: "text-primary flex-shrink-0" })
|
|
3028
3028
|
]
|
|
3029
3029
|
},
|
|
3030
3030
|
b.value
|
|
3031
3031
|
);
|
|
3032
3032
|
};
|
|
3033
|
-
let
|
|
3034
|
-
return /* @__PURE__ */ s("div", { ref: Q, className: `relative w-full ${
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3033
|
+
let lt = 0;
|
|
3034
|
+
return /* @__PURE__ */ s("div", { ref: Q, className: `relative w-full ${C}`, id: k, children: [
|
|
3035
|
+
l && /* @__PURE__ */ s("label", { className: "block mb-1.5 text-foreground", children: [
|
|
3036
|
+
l,
|
|
3037
|
+
y && /* @__PURE__ */ e("span", { className: "text-destructive ml-0.5", children: "*" })
|
|
3038
3038
|
] }),
|
|
3039
3039
|
/* @__PURE__ */ s(
|
|
3040
3040
|
"button",
|
|
@@ -3042,42 +3042,42 @@ const No = {
|
|
|
3042
3042
|
ref: ce,
|
|
3043
3043
|
type: "button",
|
|
3044
3044
|
role: "combobox",
|
|
3045
|
-
"aria-expanded":
|
|
3045
|
+
"aria-expanded": K,
|
|
3046
3046
|
"aria-haspopup": "listbox",
|
|
3047
|
-
disabled: g ||
|
|
3048
|
-
onClick: () => !g && !
|
|
3047
|
+
disabled: g || u,
|
|
3048
|
+
onClick: () => !g && !u && P(!K),
|
|
3049
3049
|
onKeyDown: st,
|
|
3050
|
-
className: `w-full flex items-center rounded-[var(--radius-md)] transition-all duration-150 ${
|
|
3050
|
+
className: `w-full flex items-center rounded-[var(--radius-md)] transition-all duration-150 ${Y.trigger}
|
|
3051
3051
|
${Ne.base}
|
|
3052
|
-
${!g && !
|
|
3053
|
-
${
|
|
3052
|
+
${!g && !u ? Ne.hover : ""}
|
|
3053
|
+
${K ? Ne.focus : ""}
|
|
3054
3054
|
${g ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
|
|
3055
|
-
${
|
|
3055
|
+
${u ? "opacity-70 cursor-wait" : ""}
|
|
3056
3056
|
${$o[Ce]}
|
|
3057
3057
|
`,
|
|
3058
|
-
style:
|
|
3058
|
+
style: Y.textStyle,
|
|
3059
3059
|
children: [
|
|
3060
|
-
|
|
3061
|
-
/* @__PURE__ */ e("span", { className: `flex-1 text-left truncate ${
|
|
3062
|
-
|
|
3060
|
+
u ? /* @__PURE__ */ e(ze, { size: Y.icon, className: "animate-spin text-muted-foreground" }) : null,
|
|
3061
|
+
/* @__PURE__ */ e("span", { className: `flex-1 text-left truncate ${Oe ? "text-foreground" : "text-muted-foreground"}`, children: Oe ? h ? Qt() : pe[0] : a }),
|
|
3062
|
+
w && Oe && !g && /* @__PURE__ */ e(
|
|
3063
3063
|
J,
|
|
3064
3064
|
{
|
|
3065
|
-
size:
|
|
3065
|
+
size: Y.icon,
|
|
3066
3066
|
className: "flex-shrink-0 text-muted-foreground hover:text-foreground cursor-pointer transition-colors",
|
|
3067
|
-
onClick:
|
|
3067
|
+
onClick: qe
|
|
3068
3068
|
}
|
|
3069
3069
|
),
|
|
3070
3070
|
/* @__PURE__ */ e(
|
|
3071
|
-
|
|
3071
|
+
Ie,
|
|
3072
3072
|
{
|
|
3073
|
-
size:
|
|
3074
|
-
className: `flex-shrink-0 text-muted-foreground transition-transform duration-200 ${
|
|
3073
|
+
size: Y.icon,
|
|
3074
|
+
className: `flex-shrink-0 text-muted-foreground transition-transform duration-200 ${K ? "rotate-180" : ""}`
|
|
3075
3075
|
}
|
|
3076
3076
|
)
|
|
3077
3077
|
]
|
|
3078
3078
|
}
|
|
3079
3079
|
),
|
|
3080
|
-
|
|
3080
|
+
K && rt(
|
|
3081
3081
|
/* @__PURE__ */ s(
|
|
3082
3082
|
"div",
|
|
3083
3083
|
{
|
|
@@ -3086,15 +3086,15 @@ const No = {
|
|
|
3086
3086
|
className: "fixed z-[9999] bg-popover border border-border rounded-[var(--radius)] shadow-elevation-sm overflow-hidden",
|
|
3087
3087
|
style: { top: fe.top, left: fe.left, width: fe.width || "auto" },
|
|
3088
3088
|
children: [
|
|
3089
|
-
|
|
3090
|
-
/* @__PURE__ */ e(
|
|
3089
|
+
N && /* @__PURE__ */ e("div", { className: "p-2 border-b border-border", children: /* @__PURE__ */ s("div", { className: "relative", children: [
|
|
3090
|
+
/* @__PURE__ */ e(Ee, { size: 14, className: "absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground" }),
|
|
3091
3091
|
/* @__PURE__ */ e(
|
|
3092
3092
|
"input",
|
|
3093
3093
|
{
|
|
3094
3094
|
ref: Fe,
|
|
3095
3095
|
type: "text",
|
|
3096
|
-
value:
|
|
3097
|
-
onChange: (b) =>
|
|
3096
|
+
value: O,
|
|
3097
|
+
onChange: (b) => Ye(b.target.value),
|
|
3098
3098
|
placeholder: "Search\\u2026",
|
|
3099
3099
|
className: "w-full pl-8 pr-3 py-1.5 bg-background border border-border rounded-[var(--radius-sm)] outline-none placeholder:text-muted-foreground focus:border-ring focus:ring-1 focus:ring-ring/20 transition-colors",
|
|
3100
3100
|
style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" },
|
|
@@ -3102,34 +3102,34 @@ const No = {
|
|
|
3102
3102
|
}
|
|
3103
3103
|
)
|
|
3104
3104
|
] }) }),
|
|
3105
|
-
h &&
|
|
3105
|
+
h && L && ne.length > 0 && /* @__PURE__ */ s(
|
|
3106
3106
|
"button",
|
|
3107
3107
|
{
|
|
3108
3108
|
type: "button",
|
|
3109
|
-
className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${
|
|
3110
|
-
style: { ...
|
|
3109
|
+
className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${Y.option} border-b border-border transition-colors hover:bg-[var(--Colors--Background--bg-primary_hover)] cursor-pointer`,
|
|
3110
|
+
style: { ...Y.optionStyle, ...Y.textStyle },
|
|
3111
3111
|
onClick: Me,
|
|
3112
3112
|
children: [
|
|
3113
3113
|
/* @__PURE__ */ s(
|
|
3114
3114
|
"span",
|
|
3115
3115
|
{
|
|
3116
3116
|
className: `flex-shrink-0 w-4 h-4 rounded-[var(--radius-sm)] border flex items-center justify-center transition-colors
|
|
3117
|
-
${
|
|
3117
|
+
${R ? "bg-primary border-primary" : We ? "bg-primary/50 border-primary" : "border-border"}
|
|
3118
3118
|
`,
|
|
3119
3119
|
children: [
|
|
3120
|
-
|
|
3121
|
-
We && !
|
|
3120
|
+
R && /* @__PURE__ */ e(me, { size: 10, className: "text-primary-foreground" }),
|
|
3121
|
+
We && !R && /* @__PURE__ */ e("span", { className: "w-2 h-0.5 bg-primary-foreground rounded-full" })
|
|
3122
3122
|
]
|
|
3123
3123
|
}
|
|
3124
3124
|
),
|
|
3125
|
-
/* @__PURE__ */ e("span", { className: "text-foreground", children:
|
|
3125
|
+
/* @__PURE__ */ e("span", { className: "text-foreground", children: R ? "Deselect All" : "Select All" }),
|
|
3126
3126
|
/* @__PURE__ */ s(
|
|
3127
3127
|
"span",
|
|
3128
3128
|
{
|
|
3129
3129
|
className: "ml-auto text-muted-foreground",
|
|
3130
3130
|
style: { fontFamily: "var(--font-button)", fontSize: "var(--text-button)", fontWeight: "var(--weight-label)" },
|
|
3131
3131
|
children: [
|
|
3132
|
-
Array.isArray(
|
|
3132
|
+
Array.isArray(I) ? I.length : 0,
|
|
3133
3133
|
"/",
|
|
3134
3134
|
ne.filter((b) => !b.disabled).length
|
|
3135
3135
|
]
|
|
@@ -3139,13 +3139,13 @@ const No = {
|
|
|
3139
3139
|
}
|
|
3140
3140
|
),
|
|
3141
3141
|
/* @__PURE__ */ s("div", { className: "max-h-60 overflow-y-auto p-1", children: [
|
|
3142
|
-
|
|
3142
|
+
q ? /* @__PURE__ */ s("div", { className: "flex items-center justify-center py-6 gap-2 text-muted-foreground", children: [
|
|
3143
3143
|
/* @__PURE__ */ e(ze, { size: 16, className: "animate-spin" }),
|
|
3144
3144
|
/* @__PURE__ */ e("span", { style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)" }, children: "Searching\\u2026" })
|
|
3145
|
-
] }) : ne.length === 0 && !ge ?
|
|
3145
|
+
] }) : ne.length === 0 && !ge ? H ? /* @__PURE__ */ e("div", { className: "py-4 px-3", children: H }) : /* @__PURE__ */ s("div", { className: "text-center py-6 text-muted-foreground flex flex-col items-center gap-2", children: [
|
|
3146
3146
|
/* @__PURE__ */ e(Vr, { size: 24, className: "opacity-40" }),
|
|
3147
3147
|
/* @__PURE__ */ e("span", { style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)" }, children: "No options found" })
|
|
3148
|
-
] }) :
|
|
3148
|
+
] }) : A && Z ? Object.entries(Z).map(([b, M]) => /* @__PURE__ */ s("div", { children: [
|
|
3149
3149
|
/* @__PURE__ */ e(
|
|
3150
3150
|
"div",
|
|
3151
3151
|
{
|
|
@@ -3154,54 +3154,54 @@ const No = {
|
|
|
3154
3154
|
children: b
|
|
3155
3155
|
}
|
|
3156
3156
|
),
|
|
3157
|
-
|
|
3158
|
-
const ve =
|
|
3159
|
-
return
|
|
3157
|
+
M.map((j) => {
|
|
3158
|
+
const ve = it(j, lt);
|
|
3159
|
+
return lt++, ve;
|
|
3160
3160
|
})
|
|
3161
|
-
] }, b)) : ne.map((b,
|
|
3161
|
+
] }, b)) : ne.map((b, M) => it(b, M)),
|
|
3162
3162
|
ge && /* @__PURE__ */ s(
|
|
3163
3163
|
"button",
|
|
3164
3164
|
{
|
|
3165
3165
|
type: "button",
|
|
3166
|
-
className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${
|
|
3167
|
-
style: { ...
|
|
3168
|
-
onClick:
|
|
3166
|
+
className: `w-full flex items-center gap-[var(--Spacing--Spacing-lg)] ${Y.option} text-primary transition-colors hover:bg-[var(--Colors--Background--bg-primary_hover)] cursor-pointer`,
|
|
3167
|
+
style: { ...Y.optionStyle, ...Y.textStyle },
|
|
3168
|
+
onClick: Re,
|
|
3169
3169
|
children: [
|
|
3170
|
-
/* @__PURE__ */ e(sn, { size:
|
|
3171
|
-
/* @__PURE__ */ e("span", { children:
|
|
3170
|
+
/* @__PURE__ */ e(sn, { size: Y.icon, className: "flex-shrink-0" }),
|
|
3171
|
+
/* @__PURE__ */ e("span", { children: W.replace("{query}", O.trim()) })
|
|
3172
3172
|
]
|
|
3173
3173
|
}
|
|
3174
3174
|
)
|
|
3175
3175
|
] }),
|
|
3176
|
-
(
|
|
3177
|
-
h &&
|
|
3176
|
+
(S || h && x) && /* @__PURE__ */ s("div", { className: "border-t border-border", children: [
|
|
3177
|
+
h && x && /* @__PURE__ */ s(
|
|
3178
3178
|
"div",
|
|
3179
3179
|
{
|
|
3180
3180
|
className: "px-3 py-2 text-muted-foreground",
|
|
3181
3181
|
style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" },
|
|
3182
3182
|
children: [
|
|
3183
|
-
Array.isArray(
|
|
3183
|
+
Array.isArray(I) ? I.length : 0,
|
|
3184
3184
|
" / ",
|
|
3185
|
-
|
|
3185
|
+
x,
|
|
3186
3186
|
" selected"
|
|
3187
3187
|
]
|
|
3188
3188
|
}
|
|
3189
3189
|
),
|
|
3190
|
-
|
|
3190
|
+
S && /* @__PURE__ */ e("div", { className: "px-3 py-2", children: S })
|
|
3191
3191
|
] })
|
|
3192
3192
|
]
|
|
3193
3193
|
}
|
|
3194
3194
|
),
|
|
3195
3195
|
document.body
|
|
3196
3196
|
),
|
|
3197
|
-
(
|
|
3198
|
-
Ce === "error" && /* @__PURE__ */ e(
|
|
3197
|
+
(i || c || d) && /* @__PURE__ */ s("div", { className: "mt-1.5 flex items-center gap-1", children: [
|
|
3198
|
+
Ce === "error" && /* @__PURE__ */ e(Be, { size: 12, className: "text-destructive flex-shrink-0" }),
|
|
3199
3199
|
/* @__PURE__ */ e(
|
|
3200
3200
|
"span",
|
|
3201
3201
|
{
|
|
3202
3202
|
className: `${Ce === "error" ? "text-destructive" : Ce === "success" ? "text-chart-2" : "text-muted-foreground"}`,
|
|
3203
3203
|
style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" },
|
|
3204
|
-
children: c || d ||
|
|
3204
|
+
children: c || d || i
|
|
3205
3205
|
}
|
|
3206
3206
|
)
|
|
3207
3207
|
] })
|
|
@@ -3224,13 +3224,13 @@ function Ea({
|
|
|
3224
3224
|
description: o,
|
|
3225
3225
|
action: n,
|
|
3226
3226
|
secondaryAction: a,
|
|
3227
|
-
size:
|
|
3227
|
+
size: l = "md"
|
|
3228
3228
|
}) {
|
|
3229
|
-
return /* @__PURE__ */ s("div", { className: `flex flex-col items-center text-center ${
|
|
3229
|
+
return /* @__PURE__ */ s("div", { className: `flex flex-col items-center text-center ${l === "sm" ? "py-6 px-4" : l === "lg" ? "py-14 px-8" : "py-10 px-6"}`, children: [
|
|
3230
3230
|
t && /* @__PURE__ */ e(
|
|
3231
3231
|
"div",
|
|
3232
3232
|
{
|
|
3233
|
-
className: `${
|
|
3233
|
+
className: `${l === "sm" ? "w-10 h-10" : l === "lg" ? "w-16 h-16" : "w-12 h-12"} rounded-full bg-muted flex items-center justify-center mb-4`,
|
|
3234
3234
|
children: /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: t })
|
|
3235
3235
|
}
|
|
3236
3236
|
),
|
|
@@ -3285,7 +3285,7 @@ const Fo = {
|
|
|
3285
3285
|
fontSize: "var(--text-button)",
|
|
3286
3286
|
fontWeight: "var(--weight-button)"
|
|
3287
3287
|
};
|
|
3288
|
-
function
|
|
3288
|
+
function Ot(t) {
|
|
3289
3289
|
return t < 1024 ? t + " B" : t < 1024 * 1024 ? (t / 1024).toFixed(1) + " KB" : (t / (1024 * 1024)).toFixed(1) + " MB";
|
|
3290
3290
|
}
|
|
3291
3291
|
function Mo(t) {
|
|
@@ -3304,7 +3304,7 @@ function yt({
|
|
|
3304
3304
|
/* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: [
|
|
3305
3305
|
/* @__PURE__ */ e("p", { className: "text-foreground truncate", style: Fo, children: o.name }),
|
|
3306
3306
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
3307
|
-
/* @__PURE__ */ e("span", { className: "text-muted-foreground", style: qt, children:
|
|
3307
|
+
/* @__PURE__ */ e("span", { className: "text-muted-foreground", style: qt, children: Ot(o.size) }),
|
|
3308
3308
|
o.status === "uploading" && /* @__PURE__ */ e("div", { className: "flex-1 h-1 bg-muted rounded-full overflow-hidden", children: /* @__PURE__ */ e(
|
|
3309
3309
|
"div",
|
|
3310
3310
|
{
|
|
@@ -3312,7 +3312,7 @@ function yt({
|
|
|
3312
3312
|
style: { width: `${o.progress}%` }
|
|
3313
3313
|
}
|
|
3314
3314
|
) }),
|
|
3315
|
-
o.status === "done" && /* @__PURE__ */ e(
|
|
3315
|
+
o.status === "done" && /* @__PURE__ */ e(le, { size: 12, className: "text-chart-2" })
|
|
3316
3316
|
] })
|
|
3317
3317
|
] }),
|
|
3318
3318
|
/* @__PURE__ */ e(
|
|
@@ -3334,48 +3334,57 @@ function Ha({
|
|
|
3334
3334
|
multiple: o,
|
|
3335
3335
|
disabled: n,
|
|
3336
3336
|
variant: a = "dropzone",
|
|
3337
|
-
label:
|
|
3338
|
-
description:
|
|
3337
|
+
label: l,
|
|
3338
|
+
description: i,
|
|
3339
|
+
value: c,
|
|
3340
|
+
onChange: d,
|
|
3341
|
+
onUpload: f,
|
|
3342
|
+
onRemove: m
|
|
3339
3343
|
}) {
|
|
3340
|
-
const [
|
|
3341
|
-
if (!
|
|
3342
|
-
const
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3344
|
+
const [p, g] = $([]), [u, N] = $(!1), w = X(null), h = c ?? p, x = (y) => {
|
|
3345
|
+
if (!y) return;
|
|
3346
|
+
const k = Array.from(y);
|
|
3347
|
+
if (d && d(k), c === void 0) {
|
|
3348
|
+
const C = k.map((L) => ({
|
|
3349
|
+
id: Math.random().toString(36).slice(2),
|
|
3350
|
+
name: L.name,
|
|
3351
|
+
size: L.size,
|
|
3352
|
+
type: L.type,
|
|
3353
|
+
progress: 0,
|
|
3354
|
+
status: "uploading"
|
|
3355
|
+
}));
|
|
3356
|
+
g((L) => [...L, ...C]), C.forEach((L) => {
|
|
3357
|
+
let D = 0;
|
|
3358
|
+
const E = setInterval(() => {
|
|
3359
|
+
D += Math.random() * 30 + 10, D >= 100 && (D = 100, clearInterval(E)), g(
|
|
3360
|
+
(z) => z.map(
|
|
3361
|
+
(W) => W.id === L.id ? {
|
|
3362
|
+
...W,
|
|
3363
|
+
progress: Math.min(D, 100),
|
|
3364
|
+
status: D >= 100 ? "done" : "uploading"
|
|
3365
|
+
} : W
|
|
3366
|
+
)
|
|
3367
|
+
), D >= 100 && f && f({ ...L, progress: 100, status: "done" });
|
|
3368
|
+
}, 300);
|
|
3369
|
+
});
|
|
3370
|
+
}
|
|
3371
|
+
}, A = (y) => {
|
|
3372
|
+
m && m(y), c === void 0 && g((k) => k.filter((C) => C.id !== y));
|
|
3373
|
+
};
|
|
3365
3374
|
return a === "button" ? /* @__PURE__ */ s("div", { className: "space-y-3", children: [
|
|
3366
|
-
|
|
3375
|
+
l && /* @__PURE__ */ e("label", { className: "block text-foreground", style: je, children: l }),
|
|
3367
3376
|
/* @__PURE__ */ s(
|
|
3368
3377
|
"button",
|
|
3369
3378
|
{
|
|
3370
3379
|
onClick: () => {
|
|
3371
|
-
var
|
|
3372
|
-
return (
|
|
3380
|
+
var y;
|
|
3381
|
+
return (y = w.current) == null ? void 0 : y.click();
|
|
3373
3382
|
},
|
|
3374
3383
|
disabled: n,
|
|
3375
3384
|
className: `inline-flex items-center gap-2 px-4 py-2 rounded-[var(--radius-md)] border border-border bg-background text-foreground hover:bg-accent transition-colors cursor-pointer ${n ? "opacity-50 pointer-events-none" : ""}`,
|
|
3376
3385
|
style: Wo,
|
|
3377
3386
|
children: [
|
|
3378
|
-
/* @__PURE__ */ e(
|
|
3387
|
+
/* @__PURE__ */ e(Ke, { size: 14 }),
|
|
3379
3388
|
" Choose File",
|
|
3380
3389
|
o ? "s" : ""
|
|
3381
3390
|
]
|
|
@@ -3384,68 +3393,68 @@ function Ha({
|
|
|
3384
3393
|
/* @__PURE__ */ e(
|
|
3385
3394
|
"input",
|
|
3386
3395
|
{
|
|
3387
|
-
ref:
|
|
3396
|
+
ref: w,
|
|
3388
3397
|
type: "file",
|
|
3389
3398
|
className: "hidden",
|
|
3390
3399
|
accept: t,
|
|
3391
3400
|
multiple: o,
|
|
3392
|
-
onChange: (
|
|
3401
|
+
onChange: (y) => x(y.target.files)
|
|
3393
3402
|
}
|
|
3394
3403
|
),
|
|
3395
|
-
|
|
3404
|
+
h.length > 0 && /* @__PURE__ */ e(yt, { files: h, onRemove: A })
|
|
3396
3405
|
] }) : a === "avatar" ? /* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
3397
|
-
|
|
3406
|
+
l && /* @__PURE__ */ e("label", { className: "block text-foreground", style: je, children: l }),
|
|
3398
3407
|
/* @__PURE__ */ e(
|
|
3399
3408
|
"div",
|
|
3400
3409
|
{
|
|
3401
3410
|
onClick: () => {
|
|
3402
|
-
var
|
|
3403
|
-
return !n && ((
|
|
3411
|
+
var y;
|
|
3412
|
+
return !n && ((y = w.current) == null ? void 0 : y.click());
|
|
3404
3413
|
},
|
|
3405
3414
|
className: `w-24 h-24 rounded-full border-2 border-dashed flex items-center justify-center cursor-pointer transition-colors
|
|
3406
|
-
${n ? "opacity-50 pointer-events-none" : ""} ${
|
|
3407
|
-
children:
|
|
3415
|
+
${n ? "opacity-50 pointer-events-none" : ""} ${u ? "border-primary bg-primary/5" : "border-border hover:border-primary/40"}`,
|
|
3416
|
+
children: h.length > 0 && h[h.length - 1].status === "done" ? /* @__PURE__ */ e(le, { size: 24, className: "text-chart-2" }) : /* @__PURE__ */ e(Ke, { size: 20, className: "text-muted-foreground" })
|
|
3408
3417
|
}
|
|
3409
3418
|
),
|
|
3410
3419
|
/* @__PURE__ */ e(
|
|
3411
3420
|
"input",
|
|
3412
3421
|
{
|
|
3413
|
-
ref:
|
|
3422
|
+
ref: w,
|
|
3414
3423
|
type: "file",
|
|
3415
3424
|
className: "hidden",
|
|
3416
3425
|
accept: t || "image/*",
|
|
3417
|
-
onChange: (
|
|
3426
|
+
onChange: (y) => x(y.target.files)
|
|
3418
3427
|
}
|
|
3419
3428
|
)
|
|
3420
3429
|
] }) : /* @__PURE__ */ s("div", { className: "space-y-3", children: [
|
|
3421
|
-
|
|
3430
|
+
l && /* @__PURE__ */ e("label", { className: "block text-foreground", style: je, children: l }),
|
|
3422
3431
|
/* @__PURE__ */ s(
|
|
3423
3432
|
"div",
|
|
3424
3433
|
{
|
|
3425
|
-
onDragOver: (
|
|
3426
|
-
|
|
3434
|
+
onDragOver: (y) => {
|
|
3435
|
+
y.preventDefault(), N(!0);
|
|
3427
3436
|
},
|
|
3428
|
-
onDragLeave: () =>
|
|
3429
|
-
onDrop: (
|
|
3430
|
-
|
|
3437
|
+
onDragLeave: () => N(!1),
|
|
3438
|
+
onDrop: (y) => {
|
|
3439
|
+
y.preventDefault(), N(!1), x(y.dataTransfer.files);
|
|
3431
3440
|
},
|
|
3432
3441
|
onClick: () => {
|
|
3433
|
-
var
|
|
3434
|
-
return !n && ((
|
|
3442
|
+
var y;
|
|
3443
|
+
return !n && ((y = w.current) == null ? void 0 : y.click());
|
|
3435
3444
|
},
|
|
3436
3445
|
className: `relative flex flex-col items-center justify-center gap-2 px-6 py-10 rounded-[var(--radius-lg)] border-2 border-dashed transition-all cursor-pointer
|
|
3437
3446
|
${n ? "opacity-50 pointer-events-none" : ""}
|
|
3438
|
-
${
|
|
3447
|
+
${u ? "border-primary bg-primary/5" : "border-border hover:border-primary/40 hover:bg-accent/30"}`,
|
|
3439
3448
|
children: [
|
|
3440
|
-
/* @__PURE__ */ e("div", { className: "w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
3449
|
+
/* @__PURE__ */ e("div", { className: "w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center", children: /* @__PURE__ */ e(Ke, { size: 20, className: "text-primary" }) }),
|
|
3441
3450
|
/* @__PURE__ */ s("div", { className: "text-center", children: [
|
|
3442
3451
|
/* @__PURE__ */ s("p", { className: "text-foreground", style: je, children: [
|
|
3443
3452
|
/* @__PURE__ */ e("span", { className: "text-primary", children: "Click to upload" }),
|
|
3444
3453
|
" or drag and drop"
|
|
3445
3454
|
] }),
|
|
3446
3455
|
/* @__PURE__ */ s("p", { className: "text-muted-foreground", style: qt, children: [
|
|
3447
|
-
|
|
3448
|
-
r && ` · Max ${
|
|
3456
|
+
i || (t ? `Accepted: ${t}` : "Any file type"),
|
|
3457
|
+
r && ` · Max ${Ot(r)}`
|
|
3449
3458
|
] })
|
|
3450
3459
|
] })
|
|
3451
3460
|
]
|
|
@@ -3454,15 +3463,15 @@ function Ha({
|
|
|
3454
3463
|
/* @__PURE__ */ e(
|
|
3455
3464
|
"input",
|
|
3456
3465
|
{
|
|
3457
|
-
ref:
|
|
3466
|
+
ref: w,
|
|
3458
3467
|
type: "file",
|
|
3459
3468
|
className: "hidden",
|
|
3460
3469
|
accept: t,
|
|
3461
3470
|
multiple: o,
|
|
3462
|
-
onChange: (
|
|
3471
|
+
onChange: (y) => x(y.target.files)
|
|
3463
3472
|
}
|
|
3464
3473
|
),
|
|
3465
|
-
|
|
3474
|
+
h.length > 0 && /* @__PURE__ */ e(yt, { files: h, onRemove: A })
|
|
3466
3475
|
] });
|
|
3467
3476
|
}
|
|
3468
3477
|
const _o = {
|
|
@@ -3475,20 +3484,20 @@ const _o = {
|
|
|
3475
3484
|
fontWeight: "var(--weight-button)"
|
|
3476
3485
|
};
|
|
3477
3486
|
function Ya({ images: t, initialIndex: r = 0 }) {
|
|
3478
|
-
const [o, n] =
|
|
3479
|
-
|
|
3487
|
+
const [o, n] = $(!1), [a, l] = $(r), [i, c] = $(1), [d, f] = $(0), m = t[a], p = () => {
|
|
3488
|
+
l((h) => (h - 1 + t.length) % t.length), c(1), f(0);
|
|
3480
3489
|
}, g = () => {
|
|
3481
|
-
|
|
3482
|
-
},
|
|
3490
|
+
l((h) => (h + 1) % t.length), c(1), f(0);
|
|
3491
|
+
}, u = () => c((h) => Math.min(h + 0.25, 3)), N = () => c((h) => Math.max(h - 0.25, 0.5)), w = () => f((h) => (h + 90) % 360);
|
|
3483
3492
|
return /* @__PURE__ */ s("div", { children: [
|
|
3484
|
-
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: t.map((h,
|
|
3493
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: t.map((h, x) => /* @__PURE__ */ e(
|
|
3485
3494
|
"button",
|
|
3486
3495
|
{
|
|
3487
3496
|
onClick: () => {
|
|
3488
|
-
|
|
3497
|
+
l(x), n(!0), c(1), f(0);
|
|
3489
3498
|
},
|
|
3490
3499
|
className: `rounded-[var(--radius-md)] overflow-hidden border-2 transition-all cursor-pointer hover:opacity-80
|
|
3491
|
-
${a ===
|
|
3500
|
+
${a === x && o ? "border-primary" : "border-border"}`,
|
|
3492
3501
|
children: /* @__PURE__ */ e("div", { className: "w-20 h-20 bg-muted flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ e(
|
|
3493
3502
|
"img",
|
|
3494
3503
|
{
|
|
@@ -3499,12 +3508,12 @@ function Ya({ images: t, initialIndex: r = 0 }) {
|
|
|
3499
3508
|
}
|
|
3500
3509
|
) })
|
|
3501
3510
|
},
|
|
3502
|
-
|
|
3511
|
+
x
|
|
3503
3512
|
)) }),
|
|
3504
3513
|
o && /* @__PURE__ */ s("div", { className: "fixed inset-0 z-[60] bg-foreground/80 flex flex-col", children: [
|
|
3505
3514
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between px-4 py-3 bg-foreground/20", children: [
|
|
3506
3515
|
/* @__PURE__ */ s("span", { className: "text-white", style: _o, children: [
|
|
3507
|
-
|
|
3516
|
+
m.alt,
|
|
3508
3517
|
" (",
|
|
3509
3518
|
a + 1,
|
|
3510
3519
|
"/",
|
|
@@ -3515,19 +3524,19 @@ function Ya({ images: t, initialIndex: r = 0 }) {
|
|
|
3515
3524
|
/* @__PURE__ */ e(
|
|
3516
3525
|
"button",
|
|
3517
3526
|
{
|
|
3518
|
-
onClick:
|
|
3527
|
+
onClick: N,
|
|
3519
3528
|
className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] text-white/70 hover:text-white hover:bg-white/10 cursor-pointer",
|
|
3520
3529
|
children: /* @__PURE__ */ e(kn, { size: 16 })
|
|
3521
3530
|
}
|
|
3522
3531
|
),
|
|
3523
3532
|
/* @__PURE__ */ s("span", { className: "text-white/70 px-2", style: Co, children: [
|
|
3524
|
-
Math.round(
|
|
3533
|
+
Math.round(i * 100),
|
|
3525
3534
|
"%"
|
|
3526
3535
|
] }),
|
|
3527
3536
|
/* @__PURE__ */ e(
|
|
3528
3537
|
"button",
|
|
3529
3538
|
{
|
|
3530
|
-
onClick:
|
|
3539
|
+
onClick: u,
|
|
3531
3540
|
className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] text-white/70 hover:text-white hover:bg-white/10 cursor-pointer",
|
|
3532
3541
|
children: /* @__PURE__ */ e(wn, { size: 16 })
|
|
3533
3542
|
}
|
|
@@ -3535,7 +3544,7 @@ function Ya({ images: t, initialIndex: r = 0 }) {
|
|
|
3535
3544
|
/* @__PURE__ */ e(
|
|
3536
3545
|
"button",
|
|
3537
3546
|
{
|
|
3538
|
-
onClick:
|
|
3547
|
+
onClick: w,
|
|
3539
3548
|
className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] text-white/70 hover:text-white hover:bg-white/10 cursor-pointer",
|
|
3540
3549
|
children: /* @__PURE__ */ e(cn, { size: 16 })
|
|
3541
3550
|
}
|
|
@@ -3572,11 +3581,11 @@ function Ya({ images: t, initialIndex: r = 0 }) {
|
|
|
3572
3581
|
/* @__PURE__ */ e(
|
|
3573
3582
|
"img",
|
|
3574
3583
|
{
|
|
3575
|
-
src:
|
|
3576
|
-
alt:
|
|
3584
|
+
src: m.src,
|
|
3585
|
+
alt: m.alt,
|
|
3577
3586
|
className: "max-w-[90%] max-h-[80vh] object-contain transition-transform",
|
|
3578
3587
|
style: {
|
|
3579
|
-
transform: `scale(${
|
|
3588
|
+
transform: `scale(${i}) rotate(${d}deg)`
|
|
3580
3589
|
}
|
|
3581
3590
|
}
|
|
3582
3591
|
),
|
|
@@ -3585,20 +3594,20 @@ function Ya({ images: t, initialIndex: r = 0 }) {
|
|
|
3585
3594
|
{
|
|
3586
3595
|
onClick: g,
|
|
3587
3596
|
className: "absolute right-4 w-10 h-10 rounded-full bg-foreground/30 text-white flex items-center justify-center hover:bg-foreground/50 cursor-pointer z-10",
|
|
3588
|
-
children: /* @__PURE__ */ e(
|
|
3597
|
+
children: /* @__PURE__ */ e(ie, { size: 20 })
|
|
3589
3598
|
}
|
|
3590
3599
|
)
|
|
3591
3600
|
]
|
|
3592
3601
|
}
|
|
3593
3602
|
),
|
|
3594
|
-
t.length > 1 && /* @__PURE__ */ e("div", { className: "flex items-center justify-center gap-2 py-3 bg-foreground/20", children: t.map((h,
|
|
3603
|
+
t.length > 1 && /* @__PURE__ */ e("div", { className: "flex items-center justify-center gap-2 py-3 bg-foreground/20", children: t.map((h, x) => /* @__PURE__ */ e(
|
|
3595
3604
|
"button",
|
|
3596
3605
|
{
|
|
3597
3606
|
onClick: () => {
|
|
3598
|
-
|
|
3607
|
+
l(x), c(1), f(0);
|
|
3599
3608
|
},
|
|
3600
3609
|
className: `w-12 h-12 rounded-[var(--radius-sm)] overflow-hidden border-2 cursor-pointer transition-all
|
|
3601
|
-
${
|
|
3610
|
+
${x === a ? "border-white" : "border-transparent opacity-50 hover:opacity-80"}`,
|
|
3602
3611
|
children: /* @__PURE__ */ e(
|
|
3603
3612
|
"img",
|
|
3604
3613
|
{
|
|
@@ -3608,7 +3617,7 @@ function Ya({ images: t, initialIndex: r = 0 }) {
|
|
|
3608
3617
|
}
|
|
3609
3618
|
)
|
|
3610
3619
|
},
|
|
3611
|
-
|
|
3620
|
+
x
|
|
3612
3621
|
)) })
|
|
3613
3622
|
] })
|
|
3614
3623
|
] });
|
|
@@ -3627,12 +3636,12 @@ const Lo = {
|
|
|
3627
3636
|
fontWeight: "var(--weight-button)"
|
|
3628
3637
|
};
|
|
3629
3638
|
function Do({ items: t, parentRect: r }) {
|
|
3630
|
-
const o = X(null), [n, a] =
|
|
3639
|
+
const o = X(null), [n, a] = $({ top: r.top, left: r.right + 4 });
|
|
3631
3640
|
return V(() => {
|
|
3632
3641
|
if (!o.current) return;
|
|
3633
|
-
const
|
|
3642
|
+
const i = o.current.getBoundingClientRect();
|
|
3634
3643
|
let c = r.top, d = r.right + 4;
|
|
3635
|
-
d +
|
|
3644
|
+
d + i.width > window.innerWidth - 8 && (d = r.left - i.width - 4), c + i.height > window.innerHeight - 8 && (c = window.innerHeight - i.height - 8), a({ top: c, left: d });
|
|
3636
3645
|
}, [r]), rt(
|
|
3637
3646
|
/* @__PURE__ */ e(
|
|
3638
3647
|
"div",
|
|
@@ -3640,20 +3649,20 @@ function Do({ items: t, parentRect: r }) {
|
|
|
3640
3649
|
ref: o,
|
|
3641
3650
|
className: "fixed z-[9999] min-w-[200px] rounded-[var(--radius)] border border-border bg-popover shadow-md py-1",
|
|
3642
3651
|
style: { top: n.top, left: n.left },
|
|
3643
|
-
children: t.map((
|
|
3652
|
+
children: t.map((l, i) => /* @__PURE__ */ e(Ut, { item: l }, i))
|
|
3644
3653
|
}
|
|
3645
3654
|
),
|
|
3646
3655
|
document.body
|
|
3647
3656
|
);
|
|
3648
3657
|
}
|
|
3649
|
-
function
|
|
3650
|
-
const [r, o] =
|
|
3658
|
+
function Ut({ item: t }) {
|
|
3659
|
+
const [r, o] = $(!1), n = X(null), a = X(null);
|
|
3651
3660
|
if (t.divider) return /* @__PURE__ */ e("div", { className: "my-1 border-t border-border" });
|
|
3652
3661
|
if (t.label)
|
|
3653
3662
|
return /* @__PURE__ */ e("div", { className: "px-3 py-1.5 text-muted-foreground uppercase tracking-wider", style: Ao, children: t.label });
|
|
3654
|
-
const
|
|
3663
|
+
const l = t.children && t.children.length > 0;
|
|
3655
3664
|
return /* @__PURE__ */ s("div", { ref: n, className: "relative", onMouseEnter: () => {
|
|
3656
|
-
a.current && clearTimeout(a.current),
|
|
3665
|
+
a.current && clearTimeout(a.current), l && o(!0);
|
|
3657
3666
|
}, onMouseLeave: () => {
|
|
3658
3667
|
a.current = setTimeout(() => o(!1), 150);
|
|
3659
3668
|
}, children: [
|
|
@@ -3662,7 +3671,7 @@ function Ot({ item: t }) {
|
|
|
3662
3671
|
{
|
|
3663
3672
|
onClick: () => {
|
|
3664
3673
|
var d;
|
|
3665
|
-
|
|
3674
|
+
l || (d = t.onClick) == null || d.call(t);
|
|
3666
3675
|
},
|
|
3667
3676
|
disabled: t.disabled,
|
|
3668
3677
|
className: `w-full flex items-center text-left rounded-[var(--radius-sm)] transition-colors cursor-pointer ${t.destructive ? "text-destructive hover:bg-destructive/10" : t.disabled ? "text-muted-foreground opacity-50 cursor-not-allowed" : "text-popover-foreground hover:bg-[var(--Colors--Background--bg-primary_hover)]"}`,
|
|
@@ -3671,40 +3680,40 @@ function Ot({ item: t }) {
|
|
|
3671
3680
|
t.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: t.icon }),
|
|
3672
3681
|
/* @__PURE__ */ e("span", { className: "flex-1", children: t.text }),
|
|
3673
3682
|
t.shortcut && /* @__PURE__ */ e("span", { className: "text-muted-foreground ml-4", style: jo, children: t.shortcut }),
|
|
3674
|
-
|
|
3683
|
+
l && /* @__PURE__ */ e(ie, { size: 14, className: "text-muted-foreground" })
|
|
3675
3684
|
]
|
|
3676
3685
|
}
|
|
3677
3686
|
),
|
|
3678
|
-
|
|
3687
|
+
l && r && n.current && /* @__PURE__ */ e(Do, { items: t.children, parentRect: n.current.getBoundingClientRect() })
|
|
3679
3688
|
] });
|
|
3680
3689
|
}
|
|
3681
3690
|
function To({ items: t, open: r, onClose: o, triggerRef: n, className: a = "" }) {
|
|
3682
|
-
const
|
|
3691
|
+
const l = X(null), [i, c] = $({ top: 0, left: 0 });
|
|
3683
3692
|
return V(() => {
|
|
3684
3693
|
if (!r || !n.current) return;
|
|
3685
3694
|
const d = n.current.getBoundingClientRect();
|
|
3686
|
-
let f = d.bottom + 4,
|
|
3695
|
+
let f = d.bottom + 4, m = d.left;
|
|
3687
3696
|
requestAnimationFrame(() => {
|
|
3688
|
-
if (!
|
|
3689
|
-
const p =
|
|
3690
|
-
|
|
3691
|
-
}), c({ top: f, left:
|
|
3697
|
+
if (!l.current) return;
|
|
3698
|
+
const p = l.current.getBoundingClientRect();
|
|
3699
|
+
m + p.width > window.innerWidth - 8 && (m = d.right - p.width), f + p.height > window.innerHeight - 8 && (f = d.top - p.height - 4), c({ top: f, left: m });
|
|
3700
|
+
}), c({ top: f, left: m });
|
|
3692
3701
|
}, [r, n]), V(() => {
|
|
3693
3702
|
if (!r) return;
|
|
3694
3703
|
const d = (f) => {
|
|
3695
|
-
var
|
|
3696
|
-
(
|
|
3704
|
+
var m, p;
|
|
3705
|
+
(m = n.current) != null && m.contains(f.target) || (p = l.current) != null && p.contains(f.target) || o();
|
|
3697
3706
|
};
|
|
3698
3707
|
return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
|
|
3699
3708
|
}, [r, o, n]), r ? rt(
|
|
3700
3709
|
/* @__PURE__ */ s(
|
|
3701
3710
|
"div",
|
|
3702
3711
|
{
|
|
3703
|
-
ref:
|
|
3712
|
+
ref: l,
|
|
3704
3713
|
className: `fixed z-[9999] min-w-[200px] rounded-[var(--radius)] border border-border bg-popover shadow-md py-1 animate-[fadeIn_0.15s_ease] ${a}`,
|
|
3705
|
-
style: { top:
|
|
3714
|
+
style: { top: i.top, left: i.left },
|
|
3706
3715
|
children: [
|
|
3707
|
-
t.map((d, f) => /* @__PURE__ */ e(
|
|
3716
|
+
t.map((d, f) => /* @__PURE__ */ e(Ut, { item: d }, f)),
|
|
3708
3717
|
/* @__PURE__ */ e("style", { children: "@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }" })
|
|
3709
3718
|
]
|
|
3710
3719
|
}
|
|
@@ -3717,7 +3726,7 @@ const Kt = {
|
|
|
3717
3726
|
fontFamily: "var(--font-label)",
|
|
3718
3727
|
fontSize: "var(--text-label)",
|
|
3719
3728
|
fontWeight: "var(--weight-label)"
|
|
3720
|
-
},
|
|
3729
|
+
}, Ve = {
|
|
3721
3730
|
fontFamily: "var(--font-label)",
|
|
3722
3731
|
fontSize: "var(--text-label)",
|
|
3723
3732
|
fontWeight: "var(--weight-button)"
|
|
@@ -3725,7 +3734,7 @@ const Kt = {
|
|
|
3725
3734
|
fontFamily: "var(--font-button)",
|
|
3726
3735
|
fontSize: "var(--text-button)",
|
|
3727
3736
|
fontWeight: "var(--weight-label)"
|
|
3728
|
-
},
|
|
3737
|
+
}, Te = {
|
|
3729
3738
|
fontFamily: "var(--font-button)",
|
|
3730
3739
|
fontSize: "var(--text-button)",
|
|
3731
3740
|
fontWeight: "var(--weight-button)"
|
|
@@ -3736,14 +3745,14 @@ function Bo({
|
|
|
3736
3745
|
message: o,
|
|
3737
3746
|
closable: n = !0,
|
|
3738
3747
|
onClose: a,
|
|
3739
|
-
action:
|
|
3740
|
-
avatar:
|
|
3748
|
+
action: l,
|
|
3749
|
+
avatar: i,
|
|
3741
3750
|
time: c,
|
|
3742
3751
|
read: d
|
|
3743
3752
|
}) {
|
|
3744
3753
|
const f = {
|
|
3745
3754
|
info: /* @__PURE__ */ e(jt, { size: 16, className: "text-primary" }),
|
|
3746
|
-
success: /* @__PURE__ */ e(
|
|
3755
|
+
success: /* @__PURE__ */ e(le, { size: 16, className: "text-chart-2" }),
|
|
3747
3756
|
warning: /* @__PURE__ */ e(At, { size: 16, className: "text-chart-5" }),
|
|
3748
3757
|
error: /* @__PURE__ */ e(_t, { size: 16, className: "text-destructive" })
|
|
3749
3758
|
};
|
|
@@ -3757,17 +3766,17 @@ function Bo({
|
|
|
3757
3766
|
error: "border-l-destructive"
|
|
3758
3767
|
}[t]} ${d === !1 ? "bg-primary/5" : ""}`,
|
|
3759
3768
|
children: [
|
|
3760
|
-
|
|
3769
|
+
i ? /* @__PURE__ */ e(
|
|
3761
3770
|
"div",
|
|
3762
3771
|
{
|
|
3763
3772
|
className: "w-8 h-8 rounded-full bg-muted flex-shrink-0 flex items-center justify-center overflow-hidden",
|
|
3764
|
-
style:
|
|
3765
|
-
children: /* @__PURE__ */ e("span", { className: "text-primary", children:
|
|
3773
|
+
style: Ve,
|
|
3774
|
+
children: /* @__PURE__ */ e("span", { className: "text-primary", children: i.slice(0, 2).toUpperCase() })
|
|
3766
3775
|
}
|
|
3767
3776
|
) : /* @__PURE__ */ e("span", { className: "flex-shrink-0 mt-0.5", children: f[t] }),
|
|
3768
3777
|
/* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: [
|
|
3769
3778
|
/* @__PURE__ */ s("div", { className: "flex items-start justify-between gap-2", children: [
|
|
3770
|
-
/* @__PURE__ */ e("span", { className: "text-foreground", style:
|
|
3779
|
+
/* @__PURE__ */ e("span", { className: "text-foreground", style: Ve, children: r }),
|
|
3771
3780
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1 flex-shrink-0", children: [
|
|
3772
3781
|
c && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Io, children: c }),
|
|
3773
3782
|
d === !1 && /* @__PURE__ */ e("span", { className: "w-2 h-2 rounded-full bg-primary" }),
|
|
@@ -3782,14 +3791,14 @@ function Bo({
|
|
|
3782
3791
|
] })
|
|
3783
3792
|
] }),
|
|
3784
3793
|
o && /* @__PURE__ */ e("p", { className: "text-muted-foreground mt-0.5", style: Kt, children: o }),
|
|
3785
|
-
|
|
3794
|
+
l && /* @__PURE__ */ s(
|
|
3786
3795
|
"button",
|
|
3787
3796
|
{
|
|
3788
|
-
onClick:
|
|
3797
|
+
onClick: l.onClick,
|
|
3789
3798
|
className: "inline-flex items-center gap-1 text-primary mt-2 hover:underline cursor-pointer",
|
|
3790
|
-
style:
|
|
3799
|
+
style: Te,
|
|
3791
3800
|
children: [
|
|
3792
|
-
|
|
3801
|
+
l.label,
|
|
3793
3802
|
" ",
|
|
3794
3803
|
/* @__PURE__ */ e(Ar, { size: 12 })
|
|
3795
3804
|
]
|
|
@@ -3800,53 +3809,78 @@ function Bo({
|
|
|
3800
3809
|
}
|
|
3801
3810
|
);
|
|
3802
3811
|
}
|
|
3803
|
-
function Ra({
|
|
3804
|
-
|
|
3812
|
+
function Ra({
|
|
3813
|
+
items: t,
|
|
3814
|
+
onMarkRead: r,
|
|
3815
|
+
onMarkAllRead: o,
|
|
3816
|
+
onDismiss: n,
|
|
3817
|
+
onClearAll: a
|
|
3818
|
+
}) {
|
|
3819
|
+
const [l, i] = $(t), c = r !== void 0 || o !== void 0, d = c ? t : l, f = d.filter((u) => !u.read).length, m = () => {
|
|
3820
|
+
o && o(), c || i((u) => u.map((N) => ({ ...N, read: !0 })));
|
|
3821
|
+
}, p = (u) => {
|
|
3822
|
+
n && n(u), c || i((N) => N.filter((w) => w.id !== u));
|
|
3823
|
+
}, g = (u) => {
|
|
3824
|
+
r && r(u), c || i(
|
|
3825
|
+
(N) => N.map((w) => w.id === u ? { ...w, read: !0 } : w)
|
|
3826
|
+
);
|
|
3827
|
+
};
|
|
3805
3828
|
return /* @__PURE__ */ s("div", { className: "max-w-md rounded-[var(--radius-lg)] border border-border bg-card overflow-hidden", children: [
|
|
3806
3829
|
/* @__PURE__ */ s("div", { className: "px-4 py-3 border-b border-border flex items-center justify-between", children: [
|
|
3807
3830
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
3808
3831
|
/* @__PURE__ */ e(Mt, { size: 16, className: "text-foreground" }),
|
|
3809
|
-
/* @__PURE__ */ e("span", { className: "text-foreground", style:
|
|
3810
|
-
|
|
3832
|
+
/* @__PURE__ */ e("span", { className: "text-foreground", style: Ve, children: "Notifications" }),
|
|
3833
|
+
f > 0 && /* @__PURE__ */ e(
|
|
3811
3834
|
"span",
|
|
3812
3835
|
{
|
|
3813
3836
|
className: "px-1.5 py-0.5 rounded-full bg-primary text-primary-foreground",
|
|
3814
|
-
style:
|
|
3815
|
-
children:
|
|
3837
|
+
style: Te,
|
|
3838
|
+
children: f
|
|
3816
3839
|
}
|
|
3817
3840
|
)
|
|
3818
3841
|
] }),
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3842
|
+
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
3843
|
+
f > 0 && /* @__PURE__ */ e(
|
|
3844
|
+
"button",
|
|
3845
|
+
{
|
|
3846
|
+
onClick: m,
|
|
3847
|
+
className: "text-primary cursor-pointer",
|
|
3848
|
+
style: Te,
|
|
3849
|
+
children: "Mark all read"
|
|
3850
|
+
}
|
|
3851
|
+
),
|
|
3852
|
+
d.length > 0 && a && /* @__PURE__ */ e(
|
|
3853
|
+
"button",
|
|
3854
|
+
{
|
|
3855
|
+
onClick: a,
|
|
3856
|
+
className: "text-muted-foreground hover:text-destructive cursor-pointer",
|
|
3857
|
+
style: Te,
|
|
3858
|
+
children: "Clear all"
|
|
3859
|
+
}
|
|
3860
|
+
)
|
|
3861
|
+
] })
|
|
3830
3862
|
] }),
|
|
3831
|
-
/* @__PURE__ */ e("div", { className: "divide-y divide-border max-h-[360px] overflow-y-auto", children:
|
|
3863
|
+
/* @__PURE__ */ e("div", { className: "divide-y divide-border max-h-[360px] overflow-y-auto", children: d.map((u) => /* @__PURE__ */ e(
|
|
3832
3864
|
"div",
|
|
3833
3865
|
{
|
|
3834
|
-
className: `px-3 py-2 ${
|
|
3866
|
+
className: `px-3 py-2 ${u.read ? "" : "bg-primary/5"}`,
|
|
3867
|
+
onClick: () => !u.read && g(u.id),
|
|
3835
3868
|
children: /* @__PURE__ */ e(
|
|
3836
3869
|
Bo,
|
|
3837
3870
|
{
|
|
3838
|
-
type:
|
|
3839
|
-
title:
|
|
3840
|
-
message:
|
|
3841
|
-
time:
|
|
3842
|
-
read:
|
|
3843
|
-
closable:
|
|
3871
|
+
type: u.type,
|
|
3872
|
+
title: u.title,
|
|
3873
|
+
message: u.message,
|
|
3874
|
+
time: u.time,
|
|
3875
|
+
read: u.read,
|
|
3876
|
+
closable: !!n,
|
|
3877
|
+
onClose: () => p(u.id)
|
|
3844
3878
|
}
|
|
3845
3879
|
)
|
|
3846
3880
|
},
|
|
3847
|
-
|
|
3881
|
+
u.id
|
|
3848
3882
|
)) }),
|
|
3849
|
-
|
|
3883
|
+
d.length === 0 && /* @__PURE__ */ s("div", { className: "py-10 text-center text-muted-foreground", children: [
|
|
3850
3884
|
/* @__PURE__ */ e(cr, { size: 24, className: "mx-auto mb-2 opacity-40" }),
|
|
3851
3885
|
/* @__PURE__ */ e("span", { style: Kt, children: "No notifications" })
|
|
3852
3886
|
] })
|
|
@@ -3863,18 +3897,18 @@ function qa({
|
|
|
3863
3897
|
placement: o = "bottom",
|
|
3864
3898
|
title: n,
|
|
3865
3899
|
open: a,
|
|
3866
|
-
onOpenChange:
|
|
3900
|
+
onOpenChange: l
|
|
3867
3901
|
}) {
|
|
3868
|
-
const [
|
|
3869
|
-
|
|
3870
|
-
},
|
|
3902
|
+
const [i, c] = $(!1), d = a !== void 0 ? a : i, f = (g) => {
|
|
3903
|
+
l == null || l(g), a === void 0 && c(g);
|
|
3904
|
+
}, m = X(null);
|
|
3871
3905
|
return V(() => {
|
|
3872
3906
|
if (!d) return;
|
|
3873
|
-
const g = (
|
|
3874
|
-
|
|
3907
|
+
const g = (u) => {
|
|
3908
|
+
m.current && !m.current.contains(u.target) && f(!1);
|
|
3875
3909
|
};
|
|
3876
3910
|
return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
|
|
3877
|
-
}, [d]), /* @__PURE__ */ s("div", { className: "relative inline-block", ref:
|
|
3911
|
+
}, [d]), /* @__PURE__ */ s("div", { className: "relative inline-block", ref: m, children: [
|
|
3878
3912
|
/* @__PURE__ */ e("div", { onClick: () => f(!d), className: "cursor-pointer", children: t }),
|
|
3879
3913
|
d && /* @__PURE__ */ e(
|
|
3880
3914
|
"div",
|
|
@@ -3917,20 +3951,20 @@ function Ro({
|
|
|
3917
3951
|
size: o = "md",
|
|
3918
3952
|
color: n,
|
|
3919
3953
|
label: a,
|
|
3920
|
-
showValue:
|
|
3921
|
-
indeterminate:
|
|
3954
|
+
showValue: l,
|
|
3955
|
+
indeterminate: i,
|
|
3922
3956
|
className: c = ""
|
|
3923
3957
|
}) {
|
|
3924
|
-
const d = { sm: "h-1.5", md: "h-2.5", lg: "h-4" }, f =
|
|
3958
|
+
const d = { sm: "h-1.5", md: "h-2.5", lg: "h-4" }, f = i ? 0 : Math.min(100, Math.max(0, (t ?? 0) / r * 100));
|
|
3925
3959
|
return /* @__PURE__ */ s("div", { className: `w-full ${c}`, children: [
|
|
3926
|
-
(a ||
|
|
3960
|
+
(a || l) && /* @__PURE__ */ s("div", { className: "flex items-center justify-between mb-1.5", children: [
|
|
3927
3961
|
a && /* @__PURE__ */ e("span", { className: "text-foreground", style: Ho, children: a }),
|
|
3928
|
-
|
|
3962
|
+
l && !i && /* @__PURE__ */ s("span", { className: "text-muted-foreground", style: Yo, children: [
|
|
3929
3963
|
Math.round(f),
|
|
3930
3964
|
"%"
|
|
3931
3965
|
] })
|
|
3932
3966
|
] }),
|
|
3933
|
-
/* @__PURE__ */ e("div", { className: `w-full ${d[o]} rounded-full bg-muted overflow-hidden`, children:
|
|
3967
|
+
/* @__PURE__ */ e("div", { className: `w-full ${d[o]} rounded-full bg-muted overflow-hidden`, children: i ? /* @__PURE__ */ e(
|
|
3934
3968
|
"div",
|
|
3935
3969
|
{
|
|
3936
3970
|
className: "h-full w-1/3 rounded-full animate-[indeterminate_1.5s_infinite_ease-in-out]",
|
|
@@ -3954,52 +3988,52 @@ const qo = {
|
|
|
3954
3988
|
fontFamily: "var(--font-label)",
|
|
3955
3989
|
fontSize: "var(--text-label)",
|
|
3956
3990
|
fontWeight: "var(--weight-label)"
|
|
3957
|
-
},
|
|
3991
|
+
}, Oo = {
|
|
3958
3992
|
fontFamily: "var(--font-label)",
|
|
3959
3993
|
fontSize: "var(--text-label)",
|
|
3960
3994
|
fontWeight: "var(--weight-button)"
|
|
3961
3995
|
};
|
|
3962
|
-
function
|
|
3996
|
+
function Oa({
|
|
3963
3997
|
value: t = 0,
|
|
3964
3998
|
onChange: r,
|
|
3965
3999
|
max: o = 5,
|
|
3966
4000
|
size: n = "md",
|
|
3967
4001
|
disabled: a,
|
|
3968
|
-
readOnly:
|
|
3969
|
-
icon:
|
|
4002
|
+
readOnly: l,
|
|
4003
|
+
icon: i = "star",
|
|
3970
4004
|
showValue: c,
|
|
3971
4005
|
label: d
|
|
3972
4006
|
}) {
|
|
3973
|
-
const [f,
|
|
4007
|
+
const [f, m] = $(0), p = n === "sm" ? 16 : n === "lg" ? 28 : 20, g = n === "sm" ? "gap-0.5" : n === "lg" ? "gap-1.5" : "gap-1", u = i === "heart" ? Gr : i === "thumb" ? pn : hn, N = i === "heart" ? "text-destructive" : "text-chart-5", w = Array.from({ length: o }, (h, x) => x + 1);
|
|
3974
4008
|
return /* @__PURE__ */ s(
|
|
3975
4009
|
"div",
|
|
3976
4010
|
{
|
|
3977
4011
|
className: `inline-flex items-center ${g} ${a ? "opacity-50 pointer-events-none" : ""}`,
|
|
3978
4012
|
children: [
|
|
3979
4013
|
d && /* @__PURE__ */ e("span", { className: "text-foreground mr-2", style: qo, children: d }),
|
|
3980
|
-
|
|
3981
|
-
const
|
|
4014
|
+
w.map((h) => {
|
|
4015
|
+
const x = h <= (f || t);
|
|
3982
4016
|
return /* @__PURE__ */ e(
|
|
3983
4017
|
"button",
|
|
3984
4018
|
{
|
|
3985
4019
|
type: "button",
|
|
3986
|
-
className: `transition-transform ${
|
|
3987
|
-
onMouseEnter: () => !
|
|
3988
|
-
onMouseLeave: () =>
|
|
3989
|
-
onClick: () => !
|
|
3990
|
-
disabled: a ||
|
|
4020
|
+
className: `transition-transform ${l || a ? "" : "cursor-pointer hover:scale-110"} ${x ? N : "text-muted-foreground/40"}`,
|
|
4021
|
+
onMouseEnter: () => !l && !a && m(h),
|
|
4022
|
+
onMouseLeave: () => m(0),
|
|
4023
|
+
onClick: () => !l && !a && (r == null ? void 0 : r(h === t ? 0 : h)),
|
|
4024
|
+
disabled: a || l,
|
|
3991
4025
|
children: /* @__PURE__ */ e(
|
|
3992
|
-
|
|
4026
|
+
u,
|
|
3993
4027
|
{
|
|
3994
4028
|
size: p,
|
|
3995
|
-
fill:
|
|
4029
|
+
fill: x ? "currentColor" : "none"
|
|
3996
4030
|
}
|
|
3997
4031
|
)
|
|
3998
4032
|
},
|
|
3999
4033
|
h
|
|
4000
4034
|
);
|
|
4001
4035
|
}),
|
|
4002
|
-
c && /* @__PURE__ */ s("span", { className: "text-foreground ml-1", style:
|
|
4036
|
+
c && /* @__PURE__ */ s("span", { className: "text-foreground ml-1", style: Oo, children: [
|
|
4003
4037
|
t,
|
|
4004
4038
|
"/",
|
|
4005
4039
|
o
|
|
@@ -4008,14 +4042,14 @@ function Ua({
|
|
|
4008
4042
|
}
|
|
4009
4043
|
);
|
|
4010
4044
|
}
|
|
4011
|
-
const
|
|
4045
|
+
const Uo = {
|
|
4012
4046
|
fontFamily: "var(--font-label)",
|
|
4013
4047
|
fontSize: "var(--text-label)",
|
|
4014
4048
|
fontWeight: "var(--weight-button)"
|
|
4015
4049
|
}, Ko = {
|
|
4016
4050
|
fontFamily: "var(--font-label)",
|
|
4017
4051
|
fontSize: "var(--text-label)"
|
|
4018
|
-
},
|
|
4052
|
+
}, Ze = {
|
|
4019
4053
|
fontFamily: "var(--font-button)",
|
|
4020
4054
|
fontSize: "var(--text-button)",
|
|
4021
4055
|
fontWeight: "var(--weight-button)"
|
|
@@ -4030,13 +4064,13 @@ function Zo({
|
|
|
4030
4064
|
activeItem: o,
|
|
4031
4065
|
onNavigate: n,
|
|
4032
4066
|
collapsed: a = !1,
|
|
4033
|
-
onCollapsedChange:
|
|
4034
|
-
className:
|
|
4067
|
+
onCollapsedChange: l,
|
|
4068
|
+
className: i = ""
|
|
4035
4069
|
}) {
|
|
4036
4070
|
return /* @__PURE__ */ s(
|
|
4037
4071
|
"div",
|
|
4038
4072
|
{
|
|
4039
|
-
className: `bg-sidebar border-r border-sidebar-border flex flex-col flex-shrink-0 transition-all ${a ? "w-16" : "w-64"} ${
|
|
4073
|
+
className: `bg-sidebar border-r border-sidebar-border flex flex-col flex-shrink-0 transition-all ${a ? "w-16" : "w-64"} ${i}`,
|
|
4040
4074
|
children: [
|
|
4041
4075
|
t && /* @__PURE__ */ s("div", { className: "px-4 py-4 border-b border-sidebar-border flex items-center gap-2", children: [
|
|
4042
4076
|
t.logo ? /* @__PURE__ */ e(
|
|
@@ -4050,18 +4084,18 @@ function Zo({
|
|
|
4050
4084
|
"div",
|
|
4051
4085
|
{
|
|
4052
4086
|
className: "w-8 h-8 rounded-[var(--radius-sm)] bg-primary flex items-center justify-center text-primary-foreground flex-shrink-0",
|
|
4053
|
-
style:
|
|
4087
|
+
style: Ze,
|
|
4054
4088
|
children: t.name.charAt(0).toUpperCase()
|
|
4055
4089
|
}
|
|
4056
4090
|
),
|
|
4057
|
-
!a && /* @__PURE__ */ e("span", { className: "text-sidebar-foreground truncate", style:
|
|
4091
|
+
!a && /* @__PURE__ */ e("span", { className: "text-sidebar-foreground truncate", style: Uo, children: t.name })
|
|
4058
4092
|
] }),
|
|
4059
4093
|
/* @__PURE__ */ e("nav", { className: "flex-1 overflow-y-auto py-3 px-2", children: r.map((c) => /* @__PURE__ */ s("div", { className: "mb-4", children: [
|
|
4060
4094
|
!a && /* @__PURE__ */ e(
|
|
4061
4095
|
"span",
|
|
4062
4096
|
{
|
|
4063
4097
|
className: "px-2 mb-1.5 block text-muted-foreground uppercase tracking-wider",
|
|
4064
|
-
style:
|
|
4098
|
+
style: Ze,
|
|
4065
4099
|
children: c.label
|
|
4066
4100
|
}
|
|
4067
4101
|
),
|
|
@@ -4080,7 +4114,7 @@ function Zo({
|
|
|
4080
4114
|
"span",
|
|
4081
4115
|
{
|
|
4082
4116
|
className: "px-1.5 py-0.5 rounded-full bg-primary text-primary-foreground",
|
|
4083
|
-
style: { ...
|
|
4117
|
+
style: { ...Ze, lineHeight: "1" },
|
|
4084
4118
|
children: d.badge
|
|
4085
4119
|
}
|
|
4086
4120
|
)
|
|
@@ -4090,10 +4124,10 @@ function Zo({
|
|
|
4090
4124
|
);
|
|
4091
4125
|
}) })
|
|
4092
4126
|
] }, c.label)) }),
|
|
4093
|
-
|
|
4127
|
+
l && /* @__PURE__ */ e("div", { className: "px-3 py-3 border-t border-sidebar-border", children: /* @__PURE__ */ e(
|
|
4094
4128
|
"button",
|
|
4095
4129
|
{
|
|
4096
|
-
onClick: () =>
|
|
4130
|
+
onClick: () => l(!a),
|
|
4097
4131
|
className: "w-full px-2 py-1.5 rounded-[var(--radius-md)] text-muted-foreground hover:text-foreground hover:bg-sidebar-accent/50 cursor-pointer text-left",
|
|
4098
4132
|
style: Xo,
|
|
4099
4133
|
children: a ? ">" : "Collapse"
|
|
@@ -4122,7 +4156,7 @@ function G({
|
|
|
4122
4156
|
}
|
|
4123
4157
|
);
|
|
4124
4158
|
}
|
|
4125
|
-
function
|
|
4159
|
+
function Ua() {
|
|
4126
4160
|
return /* @__PURE__ */ s("div", { className: "rounded-[var(--radius-lg)] border border-border bg-card p-4 space-y-4 w-full max-w-sm", children: [
|
|
4127
4161
|
/* @__PURE__ */ e(G, { variant: "rounded", height: 160 }),
|
|
4128
4162
|
/* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
@@ -4254,19 +4288,19 @@ function Za({
|
|
|
4254
4288
|
prefix: o,
|
|
4255
4289
|
suffix: n,
|
|
4256
4290
|
trend: a,
|
|
4257
|
-
trendLabel:
|
|
4258
|
-
icon:
|
|
4291
|
+
trendLabel: l,
|
|
4292
|
+
icon: i,
|
|
4259
4293
|
size: c = "md",
|
|
4260
4294
|
loading: d
|
|
4261
4295
|
}) {
|
|
4262
|
-
const f = Qo[c],
|
|
4296
|
+
const f = Qo[c], m = (a == null ? void 0 : a.direction) === "up" ? "text-chart-2" : (a == null ? void 0 : a.direction) === "down" ? "text-destructive" : "text-muted-foreground", p = (a == null ? void 0 : a.direction) === "up" ? Wt : (a == null ? void 0 : a.direction) === "down" ? Ft : at;
|
|
4263
4297
|
return d ? /* @__PURE__ */ s("div", { className: "space-y-2 animate-pulse", children: [
|
|
4264
4298
|
/* @__PURE__ */ e("div", { className: "h-3 w-20 bg-muted rounded-[var(--radius-sm)]" }),
|
|
4265
4299
|
/* @__PURE__ */ e("div", { className: "h-8 w-32 bg-muted rounded-[var(--radius-sm)]" }),
|
|
4266
4300
|
/* @__PURE__ */ e("div", { className: "h-3 w-24 bg-muted rounded-[var(--radius-sm)]" })
|
|
4267
4301
|
] }) : /* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
4268
4302
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
4269
|
-
|
|
4303
|
+
i && /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: i }),
|
|
4270
4304
|
/* @__PURE__ */ e("span", { className: "text-muted-foreground", style: et, children: t })
|
|
4271
4305
|
] }),
|
|
4272
4306
|
/* @__PURE__ */ s("div", { className: "flex items-baseline gap-1", children: [
|
|
@@ -4274,13 +4308,13 @@ function Za({
|
|
|
4274
4308
|
/* @__PURE__ */ e("span", { className: "text-foreground", style: f, children: typeof r == "number" ? r.toLocaleString() : r }),
|
|
4275
4309
|
n && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: et, children: n })
|
|
4276
4310
|
] }),
|
|
4277
|
-
a && /* @__PURE__ */ s("div", { className: `flex items-center gap-1 ${
|
|
4311
|
+
a && /* @__PURE__ */ s("div", { className: `flex items-center gap-1 ${m}`, children: [
|
|
4278
4312
|
/* @__PURE__ */ e(p, { size: 14 }),
|
|
4279
4313
|
/* @__PURE__ */ s("span", { style: Gt, children: [
|
|
4280
4314
|
a.value,
|
|
4281
4315
|
"%"
|
|
4282
4316
|
] }),
|
|
4283
|
-
|
|
4317
|
+
l && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Zt, children: l })
|
|
4284
4318
|
] })
|
|
4285
4319
|
] });
|
|
4286
4320
|
}
|
|
@@ -4290,8 +4324,8 @@ function Ga({
|
|
|
4290
4324
|
prefix: o,
|
|
4291
4325
|
trend: n,
|
|
4292
4326
|
trendLabel: a,
|
|
4293
|
-
icon:
|
|
4294
|
-
iconBg:
|
|
4327
|
+
icon: l,
|
|
4328
|
+
iconBg: i
|
|
4295
4329
|
}) {
|
|
4296
4330
|
const c = (n == null ? void 0 : n.direction) === "up" ? "text-chart-2" : (n == null ? void 0 : n.direction) === "down" ? "text-destructive" : "text-muted-foreground", d = (n == null ? void 0 : n.direction) === "up" ? Wt : (n == null ? void 0 : n.direction) === "down" ? Ft : at;
|
|
4297
4331
|
return /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-lg)] border border-border bg-card p-5", children: /* @__PURE__ */ s("div", { className: "flex items-start justify-between", children: [
|
|
@@ -4321,11 +4355,11 @@ function Ga({
|
|
|
4321
4355
|
a && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Zt, children: a })
|
|
4322
4356
|
] })
|
|
4323
4357
|
] }),
|
|
4324
|
-
|
|
4358
|
+
l && /* @__PURE__ */ e(
|
|
4325
4359
|
"div",
|
|
4326
4360
|
{
|
|
4327
|
-
className: `w-10 h-10 rounded-[var(--radius-md)] flex items-center justify-center flex-shrink-0 ${
|
|
4328
|
-
children:
|
|
4361
|
+
className: `w-10 h-10 rounded-[var(--radius-md)] flex items-center justify-center flex-shrink-0 ${i || "bg-primary/10 text-primary"}`,
|
|
4362
|
+
children: l
|
|
4329
4363
|
}
|
|
4330
4364
|
)
|
|
4331
4365
|
] }) });
|
|
@@ -4354,13 +4388,13 @@ function Vo({
|
|
|
4354
4388
|
onStepClick: n,
|
|
4355
4389
|
className: a = ""
|
|
4356
4390
|
}) {
|
|
4357
|
-
return o === "vertical" ? /* @__PURE__ */ e("div", { className: `flex flex-col ${a}`, children: t.map((
|
|
4358
|
-
const c =
|
|
4391
|
+
return o === "vertical" ? /* @__PURE__ */ e("div", { className: `flex flex-col ${a}`, children: t.map((l, i) => {
|
|
4392
|
+
const c = i < r, d = i === r;
|
|
4359
4393
|
return /* @__PURE__ */ s(
|
|
4360
4394
|
"div",
|
|
4361
4395
|
{
|
|
4362
4396
|
className: "flex gap-3",
|
|
4363
|
-
onClick: () => n == null ? void 0 : n(
|
|
4397
|
+
onClick: () => n == null ? void 0 : n(i),
|
|
4364
4398
|
children: [
|
|
4365
4399
|
/* @__PURE__ */ s("div", { className: "flex flex-col items-center", children: [
|
|
4366
4400
|
/* @__PURE__ */ e(
|
|
@@ -4368,50 +4402,50 @@ function Vo({
|
|
|
4368
4402
|
{
|
|
4369
4403
|
className: `w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 transition-colors ${n ? "cursor-pointer" : ""} ${c || d ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground"}`,
|
|
4370
4404
|
style: kt,
|
|
4371
|
-
children: c ? /* @__PURE__ */ e(me, { size: 14 }) :
|
|
4405
|
+
children: c ? /* @__PURE__ */ e(me, { size: 14 }) : i + 1
|
|
4372
4406
|
}
|
|
4373
4407
|
),
|
|
4374
|
-
|
|
4408
|
+
i < t.length - 1 && /* @__PURE__ */ e(
|
|
4375
4409
|
"div",
|
|
4376
4410
|
{
|
|
4377
4411
|
className: `w-px flex-1 min-h-[24px] my-1 ${c ? "bg-primary" : "bg-border"}`
|
|
4378
4412
|
}
|
|
4379
4413
|
)
|
|
4380
4414
|
] }),
|
|
4381
|
-
/* @__PURE__ */ s("div", { className: `pb-6 ${
|
|
4415
|
+
/* @__PURE__ */ s("div", { className: `pb-6 ${i === t.length - 1 ? "pb-0" : ""}`, children: [
|
|
4382
4416
|
/* @__PURE__ */ e(
|
|
4383
4417
|
"span",
|
|
4384
4418
|
{
|
|
4385
4419
|
className: `block ${d ? "text-foreground" : "text-muted-foreground"}`,
|
|
4386
4420
|
style: d ? wt : Po,
|
|
4387
|
-
children:
|
|
4421
|
+
children: l.title
|
|
4388
4422
|
}
|
|
4389
4423
|
),
|
|
4390
|
-
|
|
4424
|
+
l.description && /* @__PURE__ */ e("span", { className: "text-muted-foreground block", style: Nt, children: l.description })
|
|
4391
4425
|
] })
|
|
4392
4426
|
]
|
|
4393
4427
|
},
|
|
4394
|
-
|
|
4428
|
+
i
|
|
4395
4429
|
);
|
|
4396
|
-
}) }) : /* @__PURE__ */ e("div", { className: `flex items-center ${a}`, children: t.map((
|
|
4397
|
-
const c =
|
|
4430
|
+
}) }) : /* @__PURE__ */ e("div", { className: `flex items-center ${a}`, children: t.map((l, i) => {
|
|
4431
|
+
const c = i < r, d = i === r;
|
|
4398
4432
|
return /* @__PURE__ */ s(
|
|
4399
4433
|
"div",
|
|
4400
4434
|
{
|
|
4401
|
-
className: `flex items-center ${
|
|
4435
|
+
className: `flex items-center ${i < t.length - 1 ? "flex-1" : ""}`,
|
|
4402
4436
|
children: [
|
|
4403
4437
|
/* @__PURE__ */ s(
|
|
4404
4438
|
"div",
|
|
4405
4439
|
{
|
|
4406
4440
|
className: "flex flex-col items-center gap-1",
|
|
4407
|
-
onClick: () => n == null ? void 0 : n(
|
|
4441
|
+
onClick: () => n == null ? void 0 : n(i),
|
|
4408
4442
|
children: [
|
|
4409
4443
|
/* @__PURE__ */ e(
|
|
4410
4444
|
"div",
|
|
4411
4445
|
{
|
|
4412
4446
|
className: `w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 transition-colors ${n ? "cursor-pointer" : ""} ${c || d ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground"}`,
|
|
4413
4447
|
style: kt,
|
|
4414
|
-
children: c ? /* @__PURE__ */ e(me, { size: 14 }) :
|
|
4448
|
+
children: c ? /* @__PURE__ */ e(me, { size: 14 }) : i + 1
|
|
4415
4449
|
}
|
|
4416
4450
|
),
|
|
4417
4451
|
/* @__PURE__ */ e(
|
|
@@ -4419,13 +4453,13 @@ function Vo({
|
|
|
4419
4453
|
{
|
|
4420
4454
|
className: `text-center ${d ? "text-foreground" : "text-muted-foreground"}`,
|
|
4421
4455
|
style: d ? wt : Nt,
|
|
4422
|
-
children:
|
|
4456
|
+
children: l.title
|
|
4423
4457
|
}
|
|
4424
4458
|
)
|
|
4425
4459
|
]
|
|
4426
4460
|
}
|
|
4427
4461
|
),
|
|
4428
|
-
|
|
4462
|
+
i < t.length - 1 && /* @__PURE__ */ e(
|
|
4429
4463
|
"div",
|
|
4430
4464
|
{
|
|
4431
4465
|
className: `flex-1 h-px mx-2 mt-[-20px] ${c ? "bg-primary" : "bg-border"}`
|
|
@@ -4433,7 +4467,7 @@ function Vo({
|
|
|
4433
4467
|
)
|
|
4434
4468
|
]
|
|
4435
4469
|
},
|
|
4436
|
-
|
|
4470
|
+
i
|
|
4437
4471
|
);
|
|
4438
4472
|
}) });
|
|
4439
4473
|
}
|
|
@@ -4466,14 +4500,14 @@ function Ja({
|
|
|
4466
4500
|
label: o,
|
|
4467
4501
|
description: n,
|
|
4468
4502
|
size: a = "md",
|
|
4469
|
-
disabled:
|
|
4470
|
-
color:
|
|
4503
|
+
disabled: l,
|
|
4504
|
+
color: i = "primary"
|
|
4471
4505
|
}) {
|
|
4472
4506
|
const c = ra[a], d = oa[a];
|
|
4473
4507
|
return /* @__PURE__ */ s(
|
|
4474
4508
|
"label",
|
|
4475
4509
|
{
|
|
4476
|
-
className: `inline-flex items-start gap-3 ${
|
|
4510
|
+
className: `inline-flex items-start gap-3 ${l ? "opacity-50 pointer-events-none" : "cursor-pointer"}`,
|
|
4477
4511
|
children: [
|
|
4478
4512
|
/* @__PURE__ */ e(
|
|
4479
4513
|
"button",
|
|
@@ -4481,8 +4515,8 @@ function Ja({
|
|
|
4481
4515
|
role: "switch",
|
|
4482
4516
|
"aria-checked": t,
|
|
4483
4517
|
onClick: () => r(!t),
|
|
4484
|
-
disabled:
|
|
4485
|
-
className: `${c.track} rounded-full relative flex-shrink-0 transition-colors cursor-pointer ${t ? na[
|
|
4518
|
+
disabled: l,
|
|
4519
|
+
className: `${c.track} rounded-full relative flex-shrink-0 transition-colors cursor-pointer ${t ? na[i] : "bg-muted"}`,
|
|
4486
4520
|
children: /* @__PURE__ */ e(
|
|
4487
4521
|
"span",
|
|
4488
4522
|
{
|
|
@@ -4517,7 +4551,7 @@ const aa = {
|
|
|
4517
4551
|
sm: "px-1.5 py-0.5",
|
|
4518
4552
|
md: "px-2 py-0.5",
|
|
4519
4553
|
lg: "px-3 py-1.5"
|
|
4520
|
-
},
|
|
4554
|
+
}, ia = {
|
|
4521
4555
|
sm: {
|
|
4522
4556
|
fontFamily: "var(--font-button)",
|
|
4523
4557
|
fontSize: "var(--text-button)",
|
|
@@ -4534,30 +4568,30 @@ const aa = {
|
|
|
4534
4568
|
fontWeight: "var(--weight-button)"
|
|
4535
4569
|
}
|
|
4536
4570
|
};
|
|
4537
|
-
function
|
|
4571
|
+
function la({
|
|
4538
4572
|
children: t,
|
|
4539
4573
|
color: r = "default",
|
|
4540
4574
|
size: o = "md",
|
|
4541
4575
|
icon: n,
|
|
4542
4576
|
closable: a,
|
|
4543
|
-
onClose:
|
|
4544
|
-
className:
|
|
4577
|
+
onClose: l,
|
|
4578
|
+
className: i = ""
|
|
4545
4579
|
}) {
|
|
4546
|
-
const c = aa[r], d = sa[o], f =
|
|
4580
|
+
const c = aa[r], d = sa[o], f = ia[o];
|
|
4547
4581
|
return /* @__PURE__ */ s(
|
|
4548
4582
|
"span",
|
|
4549
4583
|
{
|
|
4550
|
-
className: `inline-flex items-center gap-1 rounded-full border ${c} ${d} ${
|
|
4584
|
+
className: `inline-flex items-center gap-1 rounded-full border ${c} ${d} ${i}`,
|
|
4551
4585
|
style: f,
|
|
4552
4586
|
children: [
|
|
4553
4587
|
n && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: n }),
|
|
4554
4588
|
t,
|
|
4555
|
-
a && /* @__PURE__ */ e("button", { className: "hover:opacity-70 cursor-pointer", onClick:
|
|
4589
|
+
a && /* @__PURE__ */ e("button", { className: "hover:opacity-70 cursor-pointer", onClick: l, children: /* @__PURE__ */ e(J, { size: o === "sm" ? 10 : 12 }) })
|
|
4556
4590
|
]
|
|
4557
4591
|
}
|
|
4558
4592
|
);
|
|
4559
4593
|
}
|
|
4560
|
-
|
|
4594
|
+
la.displayName = "Tag";
|
|
4561
4595
|
const ca = {
|
|
4562
4596
|
fontFamily: "var(--font-label)",
|
|
4563
4597
|
fontSize: "var(--text-label)",
|
|
@@ -4577,19 +4611,19 @@ function fa({
|
|
|
4577
4611
|
placeholder: o,
|
|
4578
4612
|
disabled: n,
|
|
4579
4613
|
maxTags: a,
|
|
4580
|
-
variant:
|
|
4581
|
-
className:
|
|
4614
|
+
variant: l = "default",
|
|
4615
|
+
className: i = ""
|
|
4582
4616
|
}) {
|
|
4583
|
-
const [c, d] =
|
|
4617
|
+
const [c, d] = $(""), f = () => {
|
|
4584
4618
|
const p = c.trim();
|
|
4585
4619
|
!p || t.includes(p) || a && t.length >= a || (r([...t, p]), d(""));
|
|
4586
|
-
},
|
|
4620
|
+
}, m = (p) => {
|
|
4587
4621
|
r(t.filter((g) => g !== p));
|
|
4588
4622
|
};
|
|
4589
4623
|
return /* @__PURE__ */ s(
|
|
4590
4624
|
"div",
|
|
4591
4625
|
{
|
|
4592
|
-
className: `flex flex-wrap items-center gap-1.5 px-3 py-2 rounded-[var(--radius)] border ${ua[
|
|
4626
|
+
className: `flex flex-wrap items-center gap-1.5 px-3 py-2 rounded-[var(--radius)] border ${ua[l]} transition-colors focus-within:border-primary ${n ? "opacity-50 pointer-events-none" : ""} ${i}`,
|
|
4593
4627
|
children: [
|
|
4594
4628
|
t.map((p) => /* @__PURE__ */ s(
|
|
4595
4629
|
"span",
|
|
@@ -4602,7 +4636,7 @@ function fa({
|
|
|
4602
4636
|
"button",
|
|
4603
4637
|
{
|
|
4604
4638
|
className: "hover:text-destructive cursor-pointer",
|
|
4605
|
-
onClick: () =>
|
|
4639
|
+
onClick: () => m(p),
|
|
4606
4640
|
children: /* @__PURE__ */ e(J, { size: 12 })
|
|
4607
4641
|
}
|
|
4608
4642
|
)
|
|
@@ -4637,7 +4671,7 @@ const ma = {
|
|
|
4637
4671
|
fontFamily: "var(--font-label)",
|
|
4638
4672
|
fontSize: "var(--text-label)",
|
|
4639
4673
|
fontWeight: "var(--weight-button)"
|
|
4640
|
-
},
|
|
4674
|
+
}, Ge = {
|
|
4641
4675
|
fontFamily: "var(--font-button)",
|
|
4642
4676
|
fontSize: "var(--text-button)",
|
|
4643
4677
|
fontWeight: "var(--weight-label)"
|
|
@@ -4647,35 +4681,35 @@ function Qa({
|
|
|
4647
4681
|
variant: r = "default",
|
|
4648
4682
|
size: o = "md"
|
|
4649
4683
|
}) {
|
|
4650
|
-
const n = o === "sm" ? "w-6 h-6" : o === "lg" ? "w-10 h-10" : "w-8 h-8", a = o === "sm" ? 12 : o === "lg" ? 18 : 14,
|
|
4651
|
-
return r === "compact" ? /* @__PURE__ */ e("div", { className: "space-y-0", children: t.map((
|
|
4684
|
+
const n = o === "sm" ? "w-6 h-6" : o === "lg" ? "w-10 h-10" : "w-8 h-8", a = o === "sm" ? 12 : o === "lg" ? 18 : 14, l = (i) => i === "completed" ? "bg-chart-2 text-white" : i === "current" ? "bg-primary text-primary-foreground" : i === "error" ? "bg-destructive text-white" : "bg-muted text-muted-foreground";
|
|
4685
|
+
return r === "compact" ? /* @__PURE__ */ e("div", { className: "space-y-0", children: t.map((i, c) => /* @__PURE__ */ s("div", { className: "flex items-start gap-3", children: [
|
|
4652
4686
|
/* @__PURE__ */ s("div", { className: "flex flex-col items-center", children: [
|
|
4653
4687
|
/* @__PURE__ */ e(
|
|
4654
4688
|
"div",
|
|
4655
4689
|
{
|
|
4656
|
-
className: `${n} rounded-full flex items-center justify-center flex-shrink-0 ${
|
|
4657
|
-
|
|
4690
|
+
className: `${n} rounded-full flex items-center justify-center flex-shrink-0 ${l(
|
|
4691
|
+
i.status
|
|
4658
4692
|
)}`,
|
|
4659
|
-
children:
|
|
4693
|
+
children: i.icon || (i.status === "completed" ? /* @__PURE__ */ e(le, { size: a }) : /* @__PURE__ */ e(ut, { size: a }))
|
|
4660
4694
|
}
|
|
4661
4695
|
),
|
|
4662
4696
|
c < t.length - 1 && /* @__PURE__ */ e("div", { className: "w-0.5 flex-1 min-h-4 bg-border" })
|
|
4663
4697
|
] }),
|
|
4664
4698
|
/* @__PURE__ */ s("div", { className: "pb-4 min-w-0", children: [
|
|
4665
4699
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
4666
|
-
/* @__PURE__ */ e("span", { className: "text-foreground", style: $t, children:
|
|
4667
|
-
|
|
4700
|
+
/* @__PURE__ */ e("span", { className: "text-foreground", style: $t, children: i.title }),
|
|
4701
|
+
i.time && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Ge, children: i.time })
|
|
4668
4702
|
] }),
|
|
4669
|
-
|
|
4703
|
+
i.description && /* @__PURE__ */ e(
|
|
4670
4704
|
"p",
|
|
4671
4705
|
{
|
|
4672
4706
|
className: "text-muted-foreground mt-0.5",
|
|
4673
|
-
style:
|
|
4674
|
-
children:
|
|
4707
|
+
style: Ge,
|
|
4708
|
+
children: i.description
|
|
4675
4709
|
}
|
|
4676
4710
|
)
|
|
4677
4711
|
] })
|
|
4678
|
-
] }, c)) }) : /* @__PURE__ */ e("div", { className: "relative", children: t.map((
|
|
4712
|
+
] }, c)) }) : /* @__PURE__ */ e("div", { className: "relative", children: t.map((i, c) => {
|
|
4679
4713
|
const d = r === "alternate" && c % 2 === 1;
|
|
4680
4714
|
return /* @__PURE__ */ s(
|
|
4681
4715
|
"div",
|
|
@@ -4686,10 +4720,10 @@ function Qa({
|
|
|
4686
4720
|
/* @__PURE__ */ e(
|
|
4687
4721
|
"div",
|
|
4688
4722
|
{
|
|
4689
|
-
className: `${n} rounded-full flex items-center justify-center ${
|
|
4690
|
-
|
|
4723
|
+
className: `${n} rounded-full flex items-center justify-center ${l(
|
|
4724
|
+
i.status
|
|
4691
4725
|
)}`,
|
|
4692
|
-
children:
|
|
4726
|
+
children: i.icon || (i.status === "completed" ? /* @__PURE__ */ e(le, { size: a }) : /* @__PURE__ */ e(ut, { size: a }))
|
|
4693
4727
|
}
|
|
4694
4728
|
),
|
|
4695
4729
|
c < t.length - 1 && /* @__PURE__ */ e("div", { className: "w-0.5 flex-1 bg-border mt-1" })
|
|
@@ -4704,20 +4738,20 @@ function Qa({
|
|
|
4704
4738
|
{
|
|
4705
4739
|
className: `flex items-center gap-2 ${d ? "justify-end" : ""}`,
|
|
4706
4740
|
children: [
|
|
4707
|
-
/* @__PURE__ */ e("span", { className: "text-foreground", style: $t, children:
|
|
4708
|
-
|
|
4741
|
+
/* @__PURE__ */ e("span", { className: "text-foreground", style: $t, children: i.title }),
|
|
4742
|
+
i.time && /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: Ge, children: i.time })
|
|
4709
4743
|
]
|
|
4710
4744
|
}
|
|
4711
4745
|
),
|
|
4712
|
-
|
|
4746
|
+
i.description && /* @__PURE__ */ e(
|
|
4713
4747
|
"p",
|
|
4714
4748
|
{
|
|
4715
4749
|
className: "text-muted-foreground mt-0.5",
|
|
4716
4750
|
style: ma,
|
|
4717
|
-
children:
|
|
4751
|
+
children: i.description
|
|
4718
4752
|
}
|
|
4719
4753
|
),
|
|
4720
|
-
|
|
4754
|
+
i.children && /* @__PURE__ */ e("div", { className: "mt-2", children: i.children })
|
|
4721
4755
|
]
|
|
4722
4756
|
}
|
|
4723
4757
|
)
|
|
@@ -4743,15 +4777,15 @@ function pa({
|
|
|
4743
4777
|
placement: o = "top",
|
|
4744
4778
|
className: n = ""
|
|
4745
4779
|
}) {
|
|
4746
|
-
const [a,
|
|
4780
|
+
const [a, l] = $(!1);
|
|
4747
4781
|
return /* @__PURE__ */ s(
|
|
4748
4782
|
"div",
|
|
4749
4783
|
{
|
|
4750
4784
|
className: `relative inline-flex ${n}`,
|
|
4751
|
-
onMouseEnter: () =>
|
|
4752
|
-
onMouseLeave: () =>
|
|
4753
|
-
onFocus: () =>
|
|
4754
|
-
onBlur: () =>
|
|
4785
|
+
onMouseEnter: () => l(!0),
|
|
4786
|
+
onMouseLeave: () => l(!1),
|
|
4787
|
+
onFocus: () => l(!0),
|
|
4788
|
+
onBlur: () => l(!1),
|
|
4755
4789
|
children: [
|
|
4756
4790
|
t,
|
|
4757
4791
|
a && /* @__PURE__ */ e(
|
|
@@ -4779,32 +4813,32 @@ function ga({
|
|
|
4779
4813
|
actions: o,
|
|
4780
4814
|
user: n,
|
|
4781
4815
|
height: a = "72px",
|
|
4782
|
-
showSearch:
|
|
4783
|
-
searchPlaceholder:
|
|
4816
|
+
showSearch: l = !1,
|
|
4817
|
+
searchPlaceholder: i = "Search... (Ctrl+K)",
|
|
4784
4818
|
onSearchClick: c,
|
|
4785
4819
|
notificationCount: d,
|
|
4786
4820
|
onNotificationClick: f,
|
|
4787
|
-
onMobileMenuClick:
|
|
4821
|
+
onMobileMenuClick: m,
|
|
4788
4822
|
onUserClick: p,
|
|
4789
4823
|
onBreadcrumbClick: g,
|
|
4790
|
-
className:
|
|
4824
|
+
className: u = ""
|
|
4791
4825
|
}) {
|
|
4792
|
-
const
|
|
4826
|
+
const N = n != null && n.name ? n.name.split(" ").map((w) => w[0]).join("").slice(0, 2).toUpperCase() : "";
|
|
4793
4827
|
return /* @__PURE__ */ s(
|
|
4794
4828
|
"div",
|
|
4795
4829
|
{
|
|
4796
|
-
className: `bg-card border-b border-border flex items-center px-5 gap-4 ${
|
|
4830
|
+
className: `bg-card border-b border-border flex items-center px-5 gap-4 ${u}`,
|
|
4797
4831
|
style: { height: a },
|
|
4798
4832
|
children: [
|
|
4799
|
-
|
|
4833
|
+
m && /* @__PURE__ */ e(
|
|
4800
4834
|
"button",
|
|
4801
4835
|
{
|
|
4802
4836
|
className: "lg:hidden w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] text-foreground hover:bg-muted/30 transition-colors cursor-pointer",
|
|
4803
|
-
onClick:
|
|
4837
|
+
onClick: m,
|
|
4804
4838
|
children: /* @__PURE__ */ e(nn, { size: 16 })
|
|
4805
4839
|
}
|
|
4806
4840
|
),
|
|
4807
|
-
t && /* @__PURE__ */ e(
|
|
4841
|
+
t && /* @__PURE__ */ e(Qe, { children: typeof t.logo == "string" ? /* @__PURE__ */ e(
|
|
4808
4842
|
"img",
|
|
4809
4843
|
{
|
|
4810
4844
|
src: t.logo,
|
|
@@ -4819,32 +4853,32 @@ function ga({
|
|
|
4819
4853
|
children: t.name.charAt(0).toUpperCase()
|
|
4820
4854
|
}
|
|
4821
4855
|
) }),
|
|
4822
|
-
r && r.length > 0 && /* @__PURE__ */ e("nav", { className: "hidden sm:flex items-center gap-1.5 text-muted-foreground", style: Ae, children: r.map((
|
|
4823
|
-
h > 0 && /* @__PURE__ */ e(
|
|
4824
|
-
|
|
4856
|
+
r && r.length > 0 && /* @__PURE__ */ e("nav", { className: "hidden sm:flex items-center gap-1.5 text-muted-foreground", style: Ae, children: r.map((w, h) => /* @__PURE__ */ s(tt.Fragment, { children: [
|
|
4857
|
+
h > 0 && /* @__PURE__ */ e(ie, { size: 12 }),
|
|
4858
|
+
w.href || g ? /* @__PURE__ */ e(
|
|
4825
4859
|
"span",
|
|
4826
4860
|
{
|
|
4827
4861
|
className: `cursor-pointer ${h === r.length - 1 ? "text-foreground" : "hover:text-foreground"}`,
|
|
4828
|
-
onClick: () => g == null ? void 0 : g(
|
|
4829
|
-
children:
|
|
4862
|
+
onClick: () => g == null ? void 0 : g(w, h),
|
|
4863
|
+
children: w.label
|
|
4830
4864
|
}
|
|
4831
4865
|
) : /* @__PURE__ */ e(
|
|
4832
4866
|
"span",
|
|
4833
4867
|
{
|
|
4834
4868
|
className: h === r.length - 1 ? "text-foreground" : "",
|
|
4835
|
-
children:
|
|
4869
|
+
children: w.label
|
|
4836
4870
|
}
|
|
4837
4871
|
)
|
|
4838
4872
|
] }, h)) }),
|
|
4839
4873
|
/* @__PURE__ */ e("div", { className: "flex-1" }),
|
|
4840
|
-
|
|
4874
|
+
l && /* @__PURE__ */ s(
|
|
4841
4875
|
"div",
|
|
4842
4876
|
{
|
|
4843
4877
|
className: "hidden md:flex items-center gap-2 px-3 h-8 rounded-[var(--radius)] border border-border bg-muted/20 text-muted-foreground w-56 cursor-pointer hover:border-primary/40 transition-colors",
|
|
4844
4878
|
onClick: c,
|
|
4845
4879
|
children: [
|
|
4846
|
-
/* @__PURE__ */ e(
|
|
4847
|
-
/* @__PURE__ */ e("span", { style: Ae, children:
|
|
4880
|
+
/* @__PURE__ */ e(Ee, { size: 14 }),
|
|
4881
|
+
/* @__PURE__ */ e("span", { style: Ae, children: i })
|
|
4848
4882
|
]
|
|
4849
4883
|
}
|
|
4850
4884
|
),
|
|
@@ -4877,7 +4911,7 @@ function ga({
|
|
|
4877
4911
|
{
|
|
4878
4912
|
className: "w-8 h-8 rounded-full bg-primary text-primary-foreground flex items-center justify-center",
|
|
4879
4913
|
style: Ae,
|
|
4880
|
-
children:
|
|
4914
|
+
children: N
|
|
4881
4915
|
}
|
|
4882
4916
|
)
|
|
4883
4917
|
}
|
|
@@ -4895,7 +4929,7 @@ const va = {
|
|
|
4895
4929
|
fontFamily: "var(--font-label)",
|
|
4896
4930
|
fontSize: "var(--text-label)",
|
|
4897
4931
|
fontWeight: "var(--weight-button)"
|
|
4898
|
-
},
|
|
4932
|
+
}, Je = {
|
|
4899
4933
|
fontFamily: "var(--font-button)",
|
|
4900
4934
|
fontSize: "var(--text-button)",
|
|
4901
4935
|
fontWeight: "var(--weight-label)"
|
|
@@ -4906,27 +4940,27 @@ function St({
|
|
|
4906
4940
|
selected: o,
|
|
4907
4941
|
onToggle: n,
|
|
4908
4942
|
search: a,
|
|
4909
|
-
onSearch:
|
|
4910
|
-
searchable:
|
|
4943
|
+
onSearch: l,
|
|
4944
|
+
searchable: i
|
|
4911
4945
|
}) {
|
|
4912
4946
|
return /* @__PURE__ */ s("div", { className: "flex-1 min-w-[180px] rounded-[var(--radius-lg)] border border-border bg-card overflow-hidden", children: [
|
|
4913
4947
|
/* @__PURE__ */ s("div", { className: "px-3 py-2.5 border-b border-border bg-muted/30 flex items-center justify-between", children: [
|
|
4914
4948
|
/* @__PURE__ */ e("span", { className: "text-foreground", style: xa, children: t }),
|
|
4915
|
-
/* @__PURE__ */ s("span", { className: "text-muted-foreground", style:
|
|
4949
|
+
/* @__PURE__ */ s("span", { className: "text-muted-foreground", style: Je, children: [
|
|
4916
4950
|
r.length,
|
|
4917
4951
|
" items"
|
|
4918
4952
|
] })
|
|
4919
4953
|
] }),
|
|
4920
|
-
|
|
4921
|
-
/* @__PURE__ */ e(
|
|
4954
|
+
i && /* @__PURE__ */ s("div", { className: "px-3 py-2 border-b border-border flex items-center gap-2", children: [
|
|
4955
|
+
/* @__PURE__ */ e(Ee, { size: 12, className: "text-muted-foreground" }),
|
|
4922
4956
|
/* @__PURE__ */ e(
|
|
4923
4957
|
"input",
|
|
4924
4958
|
{
|
|
4925
4959
|
value: a,
|
|
4926
|
-
onChange: (c) =>
|
|
4960
|
+
onChange: (c) => l(c.target.value),
|
|
4927
4961
|
placeholder: "Search\\u2026",
|
|
4928
4962
|
className: "flex-1 bg-transparent outline-none text-foreground placeholder:text-muted-foreground",
|
|
4929
|
-
style:
|
|
4963
|
+
style: Je
|
|
4930
4964
|
}
|
|
4931
4965
|
)
|
|
4932
4966
|
] }),
|
|
@@ -4935,7 +4969,7 @@ function St({
|
|
|
4935
4969
|
"div",
|
|
4936
4970
|
{
|
|
4937
4971
|
className: "px-3 py-6 text-center text-muted-foreground",
|
|
4938
|
-
style:
|
|
4972
|
+
style: Je,
|
|
4939
4973
|
children: "No items"
|
|
4940
4974
|
}
|
|
4941
4975
|
),
|
|
@@ -4969,46 +5003,46 @@ function Pa({
|
|
|
4969
5003
|
targetTitle: r = "Selected",
|
|
4970
5004
|
items: o,
|
|
4971
5005
|
defaultTarget: n = [],
|
|
4972
|
-
searchable: a
|
|
5006
|
+
searchable: a,
|
|
5007
|
+
value: l,
|
|
5008
|
+
onChange: i
|
|
4973
5009
|
}) {
|
|
4974
|
-
const [
|
|
5010
|
+
const [c, d] = $(
|
|
4975
5011
|
new Set(n)
|
|
4976
|
-
),
|
|
5012
|
+
), f = l !== void 0 ? new Set(l) : c, m = (S) => {
|
|
5013
|
+
i && i(Array.from(S)), l === void 0 && d(S);
|
|
5014
|
+
}, [p, g] = $(
|
|
4977
5015
|
/* @__PURE__ */ new Set()
|
|
4978
|
-
), [
|
|
5016
|
+
), [u, N] = $(
|
|
4979
5017
|
/* @__PURE__ */ new Set()
|
|
4980
|
-
), [
|
|
4981
|
-
(S) => S.label.toLowerCase().includes(
|
|
4982
|
-
) :
|
|
4983
|
-
(S) => S.label.toLowerCase().includes(
|
|
4984
|
-
) :
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
},
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
l(/* @__PURE__ */ new Set()), u(/* @__PURE__ */ new Set());
|
|
4998
|
-
}, B = (S, N, F) => {
|
|
4999
|
-
const E = new Set(N);
|
|
5000
|
-
E.has(S) ? E.delete(S) : E.add(S), F(E);
|
|
5018
|
+
), [w, h] = $(""), [x, A] = $(""), y = o.filter((S) => !f.has(S.id)), k = o.filter((S) => f.has(S.id)), C = w ? y.filter(
|
|
5019
|
+
(S) => S.label.toLowerCase().includes(w.toLowerCase())
|
|
5020
|
+
) : y, L = x ? k.filter(
|
|
5021
|
+
(S) => S.label.toLowerCase().includes(x.toLowerCase())
|
|
5022
|
+
) : k, D = () => {
|
|
5023
|
+
const S = new Set(f);
|
|
5024
|
+
p.forEach((v) => S.add(v)), m(S), g(/* @__PURE__ */ new Set());
|
|
5025
|
+
}, E = () => {
|
|
5026
|
+
const S = new Set(f);
|
|
5027
|
+
u.forEach((v) => S.delete(v)), m(S), N(/* @__PURE__ */ new Set());
|
|
5028
|
+
}, z = () => {
|
|
5029
|
+
m(new Set(o.filter((S) => !S.disabled).map((S) => S.id))), g(/* @__PURE__ */ new Set());
|
|
5030
|
+
}, W = () => {
|
|
5031
|
+
m(/* @__PURE__ */ new Set()), N(/* @__PURE__ */ new Set());
|
|
5032
|
+
}, H = (S, v, T) => {
|
|
5033
|
+
const q = new Set(v);
|
|
5034
|
+
q.has(S) ? q.delete(S) : q.add(S), T(q);
|
|
5001
5035
|
};
|
|
5002
5036
|
return /* @__PURE__ */ s("div", { className: "flex items-stretch gap-3 flex-wrap", children: [
|
|
5003
5037
|
/* @__PURE__ */ e(
|
|
5004
5038
|
St,
|
|
5005
5039
|
{
|
|
5006
5040
|
title: t,
|
|
5007
|
-
items:
|
|
5008
|
-
selected:
|
|
5009
|
-
onToggle: (S) =>
|
|
5010
|
-
search:
|
|
5011
|
-
onSearch:
|
|
5041
|
+
items: C,
|
|
5042
|
+
selected: p,
|
|
5043
|
+
onToggle: (S) => H(S, p, g),
|
|
5044
|
+
search: w,
|
|
5045
|
+
onSearch: h,
|
|
5012
5046
|
searchable: a
|
|
5013
5047
|
}
|
|
5014
5048
|
),
|
|
@@ -5016,8 +5050,8 @@ function Pa({
|
|
|
5016
5050
|
/* @__PURE__ */ e(
|
|
5017
5051
|
"button",
|
|
5018
5052
|
{
|
|
5019
|
-
onClick:
|
|
5020
|
-
disabled:
|
|
5053
|
+
onClick: z,
|
|
5054
|
+
disabled: y.length === 0,
|
|
5021
5055
|
className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] border border-border text-muted-foreground hover:text-foreground hover:bg-accent disabled:opacity-30 transition-colors cursor-pointer",
|
|
5022
5056
|
children: /* @__PURE__ */ e(ot, { size: 14 })
|
|
5023
5057
|
}
|
|
@@ -5025,17 +5059,17 @@ function Pa({
|
|
|
5025
5059
|
/* @__PURE__ */ e(
|
|
5026
5060
|
"button",
|
|
5027
5061
|
{
|
|
5028
|
-
onClick:
|
|
5029
|
-
disabled:
|
|
5062
|
+
onClick: D,
|
|
5063
|
+
disabled: p.size === 0,
|
|
5030
5064
|
className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] border border-border text-muted-foreground hover:text-foreground hover:bg-accent disabled:opacity-30 transition-colors cursor-pointer",
|
|
5031
|
-
children: /* @__PURE__ */ e(
|
|
5065
|
+
children: /* @__PURE__ */ e(ie, { size: 14 })
|
|
5032
5066
|
}
|
|
5033
5067
|
),
|
|
5034
5068
|
/* @__PURE__ */ e(
|
|
5035
5069
|
"button",
|
|
5036
5070
|
{
|
|
5037
|
-
onClick:
|
|
5038
|
-
disabled:
|
|
5071
|
+
onClick: E,
|
|
5072
|
+
disabled: u.size === 0,
|
|
5039
5073
|
className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] border border-border text-muted-foreground hover:text-foreground hover:bg-accent disabled:opacity-30 transition-colors cursor-pointer",
|
|
5040
5074
|
children: /* @__PURE__ */ e(Se, { size: 14 })
|
|
5041
5075
|
}
|
|
@@ -5043,8 +5077,8 @@ function Pa({
|
|
|
5043
5077
|
/* @__PURE__ */ e(
|
|
5044
5078
|
"button",
|
|
5045
5079
|
{
|
|
5046
|
-
onClick:
|
|
5047
|
-
disabled:
|
|
5080
|
+
onClick: W,
|
|
5081
|
+
disabled: k.length === 0,
|
|
5048
5082
|
className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] border border-border text-muted-foreground hover:text-foreground hover:bg-accent disabled:opacity-30 transition-colors cursor-pointer",
|
|
5049
5083
|
children: /* @__PURE__ */ e(nt, { size: 14 })
|
|
5050
5084
|
}
|
|
@@ -5054,11 +5088,11 @@ function Pa({
|
|
|
5054
5088
|
St,
|
|
5055
5089
|
{
|
|
5056
5090
|
title: r,
|
|
5057
|
-
items:
|
|
5058
|
-
selected:
|
|
5059
|
-
onToggle: (S) =>
|
|
5060
|
-
search:
|
|
5061
|
-
onSearch:
|
|
5091
|
+
items: L,
|
|
5092
|
+
selected: u,
|
|
5093
|
+
onToggle: (S) => H(S, u, N),
|
|
5094
|
+
search: x,
|
|
5095
|
+
onSearch: A,
|
|
5062
5096
|
searchable: a
|
|
5063
5097
|
}
|
|
5064
5098
|
)
|
|
@@ -5075,29 +5109,29 @@ function Jt({
|
|
|
5075
5109
|
expanded: o,
|
|
5076
5110
|
selected: n,
|
|
5077
5111
|
onToggle: a,
|
|
5078
|
-
onSelect:
|
|
5079
|
-
selectable:
|
|
5112
|
+
onSelect: l,
|
|
5113
|
+
selectable: i,
|
|
5080
5114
|
showLines: c
|
|
5081
5115
|
}) {
|
|
5082
|
-
const d = t.children && t.children.length > 0, f = o.has(t.id),
|
|
5116
|
+
const d = t.children && t.children.length > 0, f = o.has(t.id), m = n.has(t.id), p = d ? f ? /* @__PURE__ */ e(Ur, { size: 14, className: "text-chart-5" }) : /* @__PURE__ */ e(Xr, { size: 14, className: "text-chart-5" }) : /* @__PURE__ */ e(Lt, { size: 14, className: "text-muted-foreground" });
|
|
5083
5117
|
return /* @__PURE__ */ s("div", { children: [
|
|
5084
5118
|
/* @__PURE__ */ s(
|
|
5085
5119
|
"div",
|
|
5086
5120
|
{
|
|
5087
5121
|
className: `flex items-center gap-1.5 py-1 px-2 rounded-[var(--radius-sm)] transition-colors
|
|
5088
5122
|
${t.disabled ? "opacity-40 pointer-events-none" : "cursor-pointer hover:bg-accent"}
|
|
5089
|
-
${
|
|
5123
|
+
${m ? "bg-primary/10 text-primary" : "text-foreground"}`,
|
|
5090
5124
|
style: { paddingLeft: `${r * 20 + 8}px`, ...ya },
|
|
5091
5125
|
onClick: () => {
|
|
5092
|
-
d && a(t.id),
|
|
5126
|
+
d && a(t.id), i && l(t.id);
|
|
5093
5127
|
},
|
|
5094
5128
|
children: [
|
|
5095
|
-
d ? /* @__PURE__ */ e("span", { className: "w-4 h-4 flex items-center justify-center flex-shrink-0", children: f ? /* @__PURE__ */ e(
|
|
5096
|
-
|
|
5129
|
+
d ? /* @__PURE__ */ e("span", { className: "w-4 h-4 flex items-center justify-center flex-shrink-0", children: f ? /* @__PURE__ */ e(Ie, { size: 12 }) : /* @__PURE__ */ e(ie, { size: 12 }) }) : /* @__PURE__ */ e("span", { className: "w-4" }),
|
|
5130
|
+
i && /* @__PURE__ */ e(
|
|
5097
5131
|
"span",
|
|
5098
5132
|
{
|
|
5099
|
-
className: `w-4 h-4 rounded-[var(--radius-sm)] border flex items-center justify-center flex-shrink-0 ${
|
|
5100
|
-
children:
|
|
5133
|
+
className: `w-4 h-4 rounded-[var(--radius-sm)] border flex items-center justify-center flex-shrink-0 ${m ? "bg-primary border-primary" : "border-border"}`,
|
|
5134
|
+
children: m && /* @__PURE__ */ e("span", { className: "w-2 h-2 rounded-[1px] bg-primary-foreground" })
|
|
5101
5135
|
}
|
|
5102
5136
|
),
|
|
5103
5137
|
/* @__PURE__ */ e("span", { className: "flex-shrink-0", children: t.icon || p }),
|
|
@@ -5113,8 +5147,8 @@ function Jt({
|
|
|
5113
5147
|
expanded: o,
|
|
5114
5148
|
selected: n,
|
|
5115
5149
|
onToggle: a,
|
|
5116
|
-
onSelect:
|
|
5117
|
-
selectable:
|
|
5150
|
+
onSelect: l,
|
|
5151
|
+
selectable: i,
|
|
5118
5152
|
showLines: c
|
|
5119
5153
|
},
|
|
5120
5154
|
g.id
|
|
@@ -5125,30 +5159,34 @@ function Va({
|
|
|
5125
5159
|
data: t,
|
|
5126
5160
|
selectable: r,
|
|
5127
5161
|
showLines: o,
|
|
5128
|
-
defaultExpanded: n
|
|
5162
|
+
defaultExpanded: n,
|
|
5163
|
+
expandedItems: a,
|
|
5164
|
+
onExpandChange: l,
|
|
5165
|
+
selectedItems: i,
|
|
5166
|
+
onSelect: c
|
|
5129
5167
|
}) {
|
|
5130
|
-
const [
|
|
5168
|
+
const [d, f] = $(
|
|
5131
5169
|
new Set(n || [])
|
|
5132
|
-
), [
|
|
5133
|
-
const
|
|
5134
|
-
|
|
5135
|
-
}
|
|
5136
|
-
const
|
|
5137
|
-
|
|
5138
|
-
}
|
|
5139
|
-
return /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card py-1", children: t.map((
|
|
5170
|
+
), [m, p] = $(/* @__PURE__ */ new Set()), g = a !== void 0 ? new Set(a) : d, u = i !== void 0 ? new Set(i) : m, N = (h) => {
|
|
5171
|
+
const x = new Set(g);
|
|
5172
|
+
x.has(h) ? x.delete(h) : x.add(h), l && l(Array.from(x)), a === void 0 && f(x);
|
|
5173
|
+
}, w = (h) => {
|
|
5174
|
+
const x = new Set(u);
|
|
5175
|
+
x.has(h) ? x.delete(h) : x.add(h), c && c(Array.from(x)), i === void 0 && p(x);
|
|
5176
|
+
};
|
|
5177
|
+
return /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card py-1", children: t.map((h) => /* @__PURE__ */ e(
|
|
5140
5178
|
Jt,
|
|
5141
5179
|
{
|
|
5142
|
-
node:
|
|
5180
|
+
node: h,
|
|
5143
5181
|
level: 0,
|
|
5144
|
-
expanded:
|
|
5145
|
-
selected:
|
|
5146
|
-
onToggle:
|
|
5147
|
-
onSelect:
|
|
5182
|
+
expanded: g,
|
|
5183
|
+
selected: u,
|
|
5184
|
+
onToggle: N,
|
|
5185
|
+
onSelect: w,
|
|
5148
5186
|
selectable: r,
|
|
5149
5187
|
showLines: o
|
|
5150
5188
|
},
|
|
5151
|
-
|
|
5189
|
+
h.id
|
|
5152
5190
|
)) });
|
|
5153
5191
|
}
|
|
5154
5192
|
export {
|
|
@@ -5160,7 +5198,7 @@ export {
|
|
|
5160
5198
|
za as Badge,
|
|
5161
5199
|
Ia as Breadcrumb,
|
|
5162
5200
|
$a as ButtonGroup,
|
|
5163
|
-
|
|
5201
|
+
lo as Card,
|
|
5164
5202
|
uo as CardBody,
|
|
5165
5203
|
fo as CardFooter,
|
|
5166
5204
|
co as CardHeader,
|
|
@@ -5189,11 +5227,11 @@ export {
|
|
|
5189
5227
|
qa as Popover,
|
|
5190
5228
|
Ro as ProgressBar,
|
|
5191
5229
|
_a as RadioGroup,
|
|
5192
|
-
|
|
5230
|
+
Oa as Rating,
|
|
5193
5231
|
Aa as SearchField,
|
|
5194
5232
|
Zo as Sidebar,
|
|
5195
5233
|
G as Skeleton,
|
|
5196
|
-
|
|
5234
|
+
Ua as SkeletonCard,
|
|
5197
5235
|
Xa as SkeletonList,
|
|
5198
5236
|
Ka as SkeletonTable,
|
|
5199
5237
|
Jo as Spinner,
|
|
@@ -5202,7 +5240,7 @@ export {
|
|
|
5202
5240
|
Vo as Stepper,
|
|
5203
5241
|
Ja as Switch,
|
|
5204
5242
|
Ta as Tabs,
|
|
5205
|
-
|
|
5243
|
+
la as Tag,
|
|
5206
5244
|
fa as TagInput,
|
|
5207
5245
|
Qa as Timeline,
|
|
5208
5246
|
Sa as ToastContainer,
|