@quantlife/qlui 0.0.5 → 0.0.7
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/components/ui/drawer.d.ts +4 -1
- package/dist/components/ui/sheet.d.ts +3 -1
- package/dist/index.js +293 -287
- package/dist/qlui.css +1 -1
- package/dist/stories/button.stories.d.ts +1 -0
- package/dist/stories/drawer.stories.d.ts +10 -1
- package/dist/stories/input.stories.d.ts +1 -0
- package/dist/stories/pagination.stories.d.ts +1 -0
- package/dist/stories/sheet.stories.d.ts +10 -1
- package/dist/stories/standard-table.stories.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,32 +8,32 @@ import { Command as k } from "cmdk";
|
|
|
8
8
|
import { Controller as A, FormProvider as j, useFormContext as M, useFormState as te } from "react-hook-form";
|
|
9
9
|
import { useTheme as ne } from "next-themes";
|
|
10
10
|
import { Toaster as N, toast as P } from "sonner";
|
|
11
|
-
import { flexRender as
|
|
12
|
-
import { Drawer as
|
|
13
|
-
import * as
|
|
14
|
-
import { useDropzone as
|
|
15
|
-
import { OTPInput as
|
|
11
|
+
import { flexRender as re, getCoreRowModel as ie, getExpandedRowModel as ae, getFilteredRowModel as F, getPaginationRowModel as I, getSortedRowModel as oe, useReactTable as se } from "@tanstack/react-table";
|
|
12
|
+
import { Drawer as L } from "vaul";
|
|
13
|
+
import * as ce from "react-accessible-tree";
|
|
14
|
+
import { useDropzone as le } from "react-dropzone";
|
|
15
|
+
import { OTPInput as ue, OTPInputContext as de } from "input-otp";
|
|
16
16
|
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
|
|
17
|
-
var
|
|
17
|
+
var fe = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
18
18
|
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
|
|
19
|
-
function
|
|
19
|
+
function pe(e, t, n = []) {
|
|
20
20
|
if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
|
|
21
21
|
return {
|
|
22
|
-
name:
|
|
22
|
+
name: fe(e),
|
|
23
23
|
size: 24,
|
|
24
24
|
node: t,
|
|
25
25
|
...n.length > 0 ? { aliases: n } : {}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
|
|
29
|
-
var
|
|
29
|
+
var me = (e) => {
|
|
30
30
|
let t = "", n = !1;
|
|
31
31
|
for (let r of e) r === "-" || r === "_" || r <= " " ? n = t.length > 0 : (t.length === 0 ? t += r.toLowerCase() : t += n ? r.toUpperCase() : r, n = !1);
|
|
32
32
|
return t;
|
|
33
|
-
},
|
|
34
|
-
let t =
|
|
33
|
+
}, he = (e) => {
|
|
34
|
+
let t = me(e);
|
|
35
35
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
36
|
-
},
|
|
36
|
+
}, ge = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), R = {
|
|
37
37
|
xmlns: "http://www.w3.org/2000/svg",
|
|
38
38
|
width: 24,
|
|
39
39
|
height: 24,
|
|
@@ -45,22 +45,22 @@ var pe = (e) => {
|
|
|
45
45
|
"stroke-linejoin": "round"
|
|
46
46
|
};
|
|
47
47
|
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
|
|
48
|
-
function
|
|
48
|
+
function _e(e) {
|
|
49
49
|
return e != null;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ??
|
|
51
|
+
function ve(e, t = {}) {
|
|
52
|
+
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? R.width, a = e.size ?? e.height ?? R.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? ge(...c) : ge("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? R["stroke-width"]) * Number(e.size ?? e.width ?? R.width) / Number(t.size ?? t.width ?? R.width) : t.strokeWidth ?? R["stroke-width"];
|
|
53
53
|
return [
|
|
54
54
|
"svg",
|
|
55
55
|
{
|
|
56
|
-
...Object.entries(
|
|
56
|
+
...Object.entries(R).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
|
|
57
57
|
..."color" in t && t.color && { [r("stroke")]: t.color },
|
|
58
|
-
..."size" in t &&
|
|
58
|
+
..."size" in t && _e(t.size) && {
|
|
59
59
|
[r("width")]: t.size,
|
|
60
60
|
[r("height")]: t.size
|
|
61
61
|
},
|
|
62
|
-
..."width" in t &&
|
|
63
|
-
..."height" in t &&
|
|
62
|
+
..."width" in t && _e(t.width) && { [r("width")]: t.width },
|
|
63
|
+
..."height" in t && _e(t.height) && { [r("height")]: t.height },
|
|
64
64
|
[r("stroke-width")]: u,
|
|
65
65
|
...l && { [r("class")]: l },
|
|
66
66
|
[r("viewBox")]: `0 0 ${i} ${a}`,
|
|
@@ -81,8 +81,8 @@ function _e(e, t = {}) {
|
|
|
81
81
|
];
|
|
82
82
|
}
|
|
83
83
|
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function ye(e, t = {}) {
|
|
85
|
+
return ve(e, {
|
|
86
86
|
...t,
|
|
87
87
|
attributeNames: {
|
|
88
88
|
...t.attributeNames,
|
|
@@ -95,22 +95,22 @@ function ve(e, t = {}) {
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
|
|
98
|
-
var
|
|
98
|
+
var be = (e) => {
|
|
99
99
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
100
100
|
return !1;
|
|
101
|
-
},
|
|
101
|
+
}, xe = t({}), Se = () => i(xe), Ce = r(({ color: e, size: t, width: r, height: i, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
|
|
102
102
|
node: u,
|
|
103
103
|
aliases: [],
|
|
104
104
|
size: 24
|
|
105
105
|
}, ...f }, p) => {
|
|
106
|
-
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } =
|
|
106
|
+
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = Se() ?? {}, b = !!l || be(f), [x, ee, S = []] = ye(d, {
|
|
107
107
|
color: e ?? v,
|
|
108
108
|
width: r ?? t ?? m,
|
|
109
109
|
height: i ?? t ?? m,
|
|
110
110
|
strokeWidth: a ?? h,
|
|
111
111
|
absoluteStrokeWidth: o ?? g,
|
|
112
112
|
nonScalingStroke: s ?? _,
|
|
113
|
-
className:
|
|
113
|
+
className: ge(y, c),
|
|
114
114
|
hasA11yProp: b,
|
|
115
115
|
attributes: f
|
|
116
116
|
});
|
|
@@ -120,17 +120,17 @@ var ye = (e) => {
|
|
|
120
120
|
}, [...S.map(([e, t]) => n(e, t)), ...Array.isArray(l) ? l : [l]]);
|
|
121
121
|
});
|
|
122
122
|
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
|
|
123
|
-
function
|
|
124
|
-
let a = typeof e == "string" ?
|
|
123
|
+
function z(e, t = [], i = []) {
|
|
124
|
+
let a = typeof e == "string" ? pe(e, t, i) : e, o = r(({ className: e, ...t }, r) => n(Ce, {
|
|
125
125
|
ref: r,
|
|
126
126
|
icon: a,
|
|
127
127
|
className: e,
|
|
128
128
|
...t
|
|
129
129
|
}));
|
|
130
|
-
return a.name && (o.displayName =
|
|
130
|
+
return a.name && (o.displayName = he(a.name)), o;
|
|
131
131
|
}
|
|
132
132
|
// node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/arrow-up-down.mjs
|
|
133
|
-
var
|
|
133
|
+
var we = {
|
|
134
134
|
name: "arrow-up-down",
|
|
135
135
|
size: 24,
|
|
136
136
|
node: [
|
|
@@ -152,8 +152,8 @@ var Ce = {
|
|
|
152
152
|
}]
|
|
153
153
|
]
|
|
154
154
|
};
|
|
155
|
-
|
|
156
|
-
var
|
|
155
|
+
we.node;
|
|
156
|
+
var Te = z(we), Ee = {
|
|
157
157
|
name: "arrow-up",
|
|
158
158
|
size: 24,
|
|
159
159
|
node: [["path", {
|
|
@@ -164,8 +164,8 @@ var we = B(Ce), Te = {
|
|
|
164
164
|
key: "x0mq9r"
|
|
165
165
|
}]]
|
|
166
166
|
};
|
|
167
|
-
|
|
168
|
-
var
|
|
167
|
+
Ee.node;
|
|
168
|
+
var De = z(Ee), Oe = {
|
|
169
169
|
name: "bot",
|
|
170
170
|
size: 24,
|
|
171
171
|
node: [
|
|
@@ -199,8 +199,8 @@ var Ee = B(Te), De = {
|
|
|
199
199
|
}]
|
|
200
200
|
]
|
|
201
201
|
};
|
|
202
|
-
|
|
203
|
-
var
|
|
202
|
+
Oe.node;
|
|
203
|
+
var ke = z(Oe), Ae = {
|
|
204
204
|
name: "calendar",
|
|
205
205
|
size: 24,
|
|
206
206
|
node: [
|
|
@@ -226,8 +226,8 @@ var Oe = B(De), ke = {
|
|
|
226
226
|
}]
|
|
227
227
|
]
|
|
228
228
|
};
|
|
229
|
-
|
|
230
|
-
var
|
|
229
|
+
Ae.node;
|
|
230
|
+
var je = z(Ae), Me = {
|
|
231
231
|
name: "check",
|
|
232
232
|
size: 24,
|
|
233
233
|
node: [["path", {
|
|
@@ -235,8 +235,8 @@ var Ae = B(ke), je = {
|
|
|
235
235
|
key: "1gmf2c"
|
|
236
236
|
}]]
|
|
237
237
|
};
|
|
238
|
-
|
|
239
|
-
var
|
|
238
|
+
Me.node;
|
|
239
|
+
var Ne = z(Me), Pe = {
|
|
240
240
|
name: "chevron-down",
|
|
241
241
|
size: 24,
|
|
242
242
|
node: [["path", {
|
|
@@ -244,8 +244,8 @@ var Me = B(je), Ne = {
|
|
|
244
244
|
key: "qrunsl"
|
|
245
245
|
}]]
|
|
246
246
|
};
|
|
247
|
-
|
|
248
|
-
var
|
|
247
|
+
Pe.node;
|
|
248
|
+
var Fe = z(Pe), Ie = {
|
|
249
249
|
name: "chevron-left",
|
|
250
250
|
size: 24,
|
|
251
251
|
node: [["path", {
|
|
@@ -253,8 +253,8 @@ var Pe = B(Ne), Fe = {
|
|
|
253
253
|
key: "1wnfg3"
|
|
254
254
|
}]]
|
|
255
255
|
};
|
|
256
|
-
|
|
257
|
-
var
|
|
256
|
+
Ie.node;
|
|
257
|
+
var Le = z(Ie), Re = {
|
|
258
258
|
name: "chevron-right",
|
|
259
259
|
size: 24,
|
|
260
260
|
node: [["path", {
|
|
@@ -262,8 +262,8 @@ var Ie = B(Fe), Le = {
|
|
|
262
262
|
key: "mthhwq"
|
|
263
263
|
}]]
|
|
264
264
|
};
|
|
265
|
-
|
|
266
|
-
var
|
|
265
|
+
Re.node;
|
|
266
|
+
var ze = z(Re), Be = {
|
|
267
267
|
name: "chevron-up",
|
|
268
268
|
size: 24,
|
|
269
269
|
node: [["path", {
|
|
@@ -271,8 +271,8 @@ var Re = B(Le), ze = {
|
|
|
271
271
|
key: "153udz"
|
|
272
272
|
}]]
|
|
273
273
|
};
|
|
274
|
-
|
|
275
|
-
var
|
|
274
|
+
Be.node;
|
|
275
|
+
var Ve = z(Be), He = {
|
|
276
276
|
name: "chevrons-up-down",
|
|
277
277
|
size: 24,
|
|
278
278
|
node: [["path", {
|
|
@@ -283,8 +283,8 @@ var Be = B(ze), Ve = {
|
|
|
283
283
|
key: "sgt6xg"
|
|
284
284
|
}]]
|
|
285
285
|
};
|
|
286
|
-
|
|
287
|
-
var
|
|
286
|
+
He.node;
|
|
287
|
+
var Ue = z(He), We = {
|
|
288
288
|
name: "circle-check",
|
|
289
289
|
size: 24,
|
|
290
290
|
node: [["circle", {
|
|
@@ -298,8 +298,8 @@ var He = B(Ve), Ue = {
|
|
|
298
298
|
}]],
|
|
299
299
|
aliases: ["check-circle-2"]
|
|
300
300
|
};
|
|
301
|
-
|
|
302
|
-
var
|
|
301
|
+
We.node;
|
|
302
|
+
var Ge = z(We), Ke = {
|
|
303
303
|
name: "circle",
|
|
304
304
|
size: 24,
|
|
305
305
|
node: [["circle", {
|
|
@@ -309,8 +309,8 @@ var We = B(Ue), Ge = {
|
|
|
309
309
|
key: "1mglay"
|
|
310
310
|
}]]
|
|
311
311
|
};
|
|
312
|
-
|
|
313
|
-
var
|
|
312
|
+
Ke.node;
|
|
313
|
+
var qe = z(Ke), Je = {
|
|
314
314
|
name: "cloud-upload",
|
|
315
315
|
size: 24,
|
|
316
316
|
node: [
|
|
@@ -329,8 +329,8 @@ var Ke = B(Ge), qe = {
|
|
|
329
329
|
],
|
|
330
330
|
aliases: ["upload-cloud"]
|
|
331
331
|
};
|
|
332
|
-
|
|
333
|
-
var
|
|
332
|
+
Je.node;
|
|
333
|
+
var Ye = z(Je), Xe = {
|
|
334
334
|
name: "ellipsis",
|
|
335
335
|
size: 24,
|
|
336
336
|
node: [
|
|
@@ -355,8 +355,8 @@ var Je = B(qe), Ye = {
|
|
|
355
355
|
],
|
|
356
356
|
aliases: ["more-horizontal"]
|
|
357
357
|
};
|
|
358
|
-
|
|
359
|
-
var
|
|
358
|
+
Xe.node;
|
|
359
|
+
var Ze = z(Xe), Qe = {
|
|
360
360
|
name: "eye",
|
|
361
361
|
size: 24,
|
|
362
362
|
node: [["path", {
|
|
@@ -369,8 +369,8 @@ var Xe = B(Ye), Ze = {
|
|
|
369
369
|
key: "1v7zrd"
|
|
370
370
|
}]]
|
|
371
371
|
};
|
|
372
|
-
|
|
373
|
-
var
|
|
372
|
+
Qe.node;
|
|
373
|
+
var $e = z(Qe), et = {
|
|
374
374
|
name: "file",
|
|
375
375
|
size: 24,
|
|
376
376
|
node: [["path", {
|
|
@@ -381,8 +381,8 @@ var Qe = B(Ze), $e = {
|
|
|
381
381
|
key: "wfsgrz"
|
|
382
382
|
}]]
|
|
383
383
|
};
|
|
384
|
-
|
|
385
|
-
var
|
|
384
|
+
et.node;
|
|
385
|
+
var tt = z(et), nt = {
|
|
386
386
|
name: "folder",
|
|
387
387
|
size: 24,
|
|
388
388
|
node: [["path", {
|
|
@@ -390,8 +390,8 @@ var et = B($e), tt = {
|
|
|
390
390
|
key: "1kt360"
|
|
391
391
|
}]]
|
|
392
392
|
};
|
|
393
|
-
|
|
394
|
-
var
|
|
393
|
+
nt.node;
|
|
394
|
+
var rt = z(nt), it = {
|
|
395
395
|
name: "inbox",
|
|
396
396
|
size: 24,
|
|
397
397
|
node: [["polyline", {
|
|
@@ -402,8 +402,8 @@ var nt = B(tt), rt = {
|
|
|
402
402
|
key: "oot6mr"
|
|
403
403
|
}]]
|
|
404
404
|
};
|
|
405
|
-
|
|
406
|
-
var
|
|
405
|
+
it.node;
|
|
406
|
+
var at = z(it), ot = {
|
|
407
407
|
name: "info",
|
|
408
408
|
size: 24,
|
|
409
409
|
node: [
|
|
@@ -423,8 +423,8 @@ var it = B(rt), at = {
|
|
|
423
423
|
}]
|
|
424
424
|
]
|
|
425
425
|
};
|
|
426
|
-
|
|
427
|
-
var
|
|
426
|
+
ot.node;
|
|
427
|
+
var st = z(ot), ct = {
|
|
428
428
|
name: "loader-circle",
|
|
429
429
|
size: 24,
|
|
430
430
|
node: [["path", {
|
|
@@ -433,8 +433,8 @@ var ot = B(at), st = {
|
|
|
433
433
|
}]],
|
|
434
434
|
aliases: ["loader-2"]
|
|
435
435
|
};
|
|
436
|
-
|
|
437
|
-
var
|
|
436
|
+
ct.node;
|
|
437
|
+
var B = z(ct), lt = {
|
|
438
438
|
name: "minus",
|
|
439
439
|
size: 24,
|
|
440
440
|
node: [["path", {
|
|
@@ -442,8 +442,8 @@ var V = B(st), ct = {
|
|
|
442
442
|
key: "1ays0h"
|
|
443
443
|
}]]
|
|
444
444
|
};
|
|
445
|
-
|
|
446
|
-
var
|
|
445
|
+
lt.node;
|
|
446
|
+
var ut = z(lt), dt = {
|
|
447
447
|
name: "octagon-x",
|
|
448
448
|
size: 24,
|
|
449
449
|
node: [
|
|
@@ -462,8 +462,8 @@ var lt = B(ct), ut = {
|
|
|
462
462
|
],
|
|
463
463
|
aliases: ["x-octagon"]
|
|
464
464
|
};
|
|
465
|
-
|
|
466
|
-
var
|
|
465
|
+
dt.node;
|
|
466
|
+
var ft = z(dt), pt = {
|
|
467
467
|
name: "search",
|
|
468
468
|
size: 24,
|
|
469
469
|
node: [["path", {
|
|
@@ -476,8 +476,8 @@ var dt = B(ut), ft = {
|
|
|
476
476
|
key: "4ej97u"
|
|
477
477
|
}]]
|
|
478
478
|
};
|
|
479
|
-
|
|
480
|
-
var
|
|
479
|
+
pt.node;
|
|
480
|
+
var mt = z(pt), ht = {
|
|
481
481
|
name: "square",
|
|
482
482
|
size: 24,
|
|
483
483
|
node: [["rect", {
|
|
@@ -489,8 +489,8 @@ var pt = B(ft), mt = {
|
|
|
489
489
|
key: "afitv7"
|
|
490
490
|
}]]
|
|
491
491
|
};
|
|
492
|
-
|
|
493
|
-
var
|
|
492
|
+
ht.node;
|
|
493
|
+
var gt = z(ht), _t = {
|
|
494
494
|
name: "trash",
|
|
495
495
|
size: 24,
|
|
496
496
|
node: [
|
|
@@ -517,8 +517,8 @@ var ht = B(mt), gt = {
|
|
|
517
517
|
],
|
|
518
518
|
aliases: ["trash-2"]
|
|
519
519
|
};
|
|
520
|
-
|
|
521
|
-
var
|
|
520
|
+
_t.node;
|
|
521
|
+
var vt = z(_t), yt = {
|
|
522
522
|
name: "trending-down",
|
|
523
523
|
size: 24,
|
|
524
524
|
node: [["path", {
|
|
@@ -529,8 +529,8 @@ var _t = B(gt), vt = {
|
|
|
529
529
|
key: "x473p"
|
|
530
530
|
}]]
|
|
531
531
|
};
|
|
532
|
-
|
|
533
|
-
var
|
|
532
|
+
yt.node;
|
|
533
|
+
var bt = z(yt), xt = {
|
|
534
534
|
name: "trending-up",
|
|
535
535
|
size: 24,
|
|
536
536
|
node: [["path", {
|
|
@@ -541,8 +541,8 @@ var yt = B(vt), bt = {
|
|
|
541
541
|
key: "1t1m79"
|
|
542
542
|
}]]
|
|
543
543
|
};
|
|
544
|
-
|
|
545
|
-
var
|
|
544
|
+
xt.node;
|
|
545
|
+
var St = z(xt), Ct = {
|
|
546
546
|
name: "triangle-alert",
|
|
547
547
|
size: 24,
|
|
548
548
|
node: [
|
|
@@ -561,8 +561,8 @@ var xt = B(bt), St = {
|
|
|
561
561
|
],
|
|
562
562
|
aliases: ["alert-triangle"]
|
|
563
563
|
};
|
|
564
|
-
|
|
565
|
-
var
|
|
564
|
+
Ct.node;
|
|
565
|
+
var wt = z(Ct), Tt = {
|
|
566
566
|
name: "user",
|
|
567
567
|
size: 24,
|
|
568
568
|
node: [["path", {
|
|
@@ -575,8 +575,8 @@ var Ct = B(St), wt = {
|
|
|
575
575
|
key: "17ys0d"
|
|
576
576
|
}]]
|
|
577
577
|
};
|
|
578
|
-
|
|
579
|
-
var
|
|
578
|
+
Tt.node;
|
|
579
|
+
var Et = z(Tt), Dt = {
|
|
580
580
|
name: "wrench",
|
|
581
581
|
size: 24,
|
|
582
582
|
node: [["path", {
|
|
@@ -584,8 +584,8 @@ var Tt = B(wt), Et = {
|
|
|
584
584
|
key: "1ngwbx"
|
|
585
585
|
}]]
|
|
586
586
|
};
|
|
587
|
-
|
|
588
|
-
var
|
|
587
|
+
Dt.node;
|
|
588
|
+
var Ot = z(Dt), kt = {
|
|
589
589
|
name: "x",
|
|
590
590
|
size: 24,
|
|
591
591
|
node: [["path", {
|
|
@@ -596,8 +596,8 @@ var Dt = B(Et), Ot = {
|
|
|
596
596
|
key: "d8bk6v"
|
|
597
597
|
}]]
|
|
598
598
|
};
|
|
599
|
-
|
|
600
|
-
var
|
|
599
|
+
kt.node;
|
|
600
|
+
var V = z(kt);
|
|
601
601
|
// src/components/ui/accordion.tsx
|
|
602
602
|
function At({ ...e }) {
|
|
603
603
|
return /* @__PURE__ */ T(o.Root, {
|
|
@@ -619,7 +619,7 @@ function Mt({ className: e, children: t, ...n }) {
|
|
|
619
619
|
"data-slot": "accordion-trigger",
|
|
620
620
|
className: a("flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", e),
|
|
621
621
|
...n,
|
|
622
|
-
children: [t, /* @__PURE__ */ T(
|
|
622
|
+
children: [t, /* @__PURE__ */ T(Fe, { className: "pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200" })]
|
|
623
623
|
})
|
|
624
624
|
});
|
|
625
625
|
}
|
|
@@ -709,7 +709,7 @@ function Ht({ className: e, ...t }) {
|
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
711
|
// src/components/ui/button.tsx
|
|
712
|
-
var Ut = Rt("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
712
|
+
var Ut = Rt("inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
713
713
|
variants: {
|
|
714
714
|
variant: {
|
|
715
715
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -909,7 +909,7 @@ function an({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
909
909
|
className: a(e),
|
|
910
910
|
...n
|
|
911
911
|
}),
|
|
912
|
-
Chevron: ({ className: e, orientation: t, ...n }) => T(t === "left" ?
|
|
912
|
+
Chevron: ({ className: e, orientation: t, ...n }) => T(t === "left" ? Le : t === "right" ? ze : Fe, {
|
|
913
913
|
className: a("size-4", e),
|
|
914
914
|
...n
|
|
915
915
|
}),
|
|
@@ -1002,7 +1002,7 @@ function mn({ className: e, ...t }) {
|
|
|
1002
1002
|
children: /* @__PURE__ */ T(l.Indicator, {
|
|
1003
1003
|
"data-slot": "checkbox-indicator",
|
|
1004
1004
|
className: "grid place-content-center text-current transition-none",
|
|
1005
|
-
children: /* @__PURE__ */ T(
|
|
1005
|
+
children: /* @__PURE__ */ T(Ne, { className: "size-3.5" })
|
|
1006
1006
|
})
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
@@ -1067,7 +1067,7 @@ function Cn({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
1067
1067
|
children: [t, n && /* @__PURE__ */ E(d.Close, {
|
|
1068
1068
|
"data-slot": "dialog-close",
|
|
1069
1069
|
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1070
|
-
children: [/* @__PURE__ */ T(
|
|
1070
|
+
children: [/* @__PURE__ */ T(V, {}), /* @__PURE__ */ T("span", {
|
|
1071
1071
|
className: "sr-only",
|
|
1072
1072
|
children: "Close"
|
|
1073
1073
|
})]
|
|
@@ -1148,19 +1148,19 @@ function Nn({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
1148
1148
|
"data-slot": "dropdown-menu-item",
|
|
1149
1149
|
"data-inset": t,
|
|
1150
1150
|
"data-variant": n,
|
|
1151
|
-
className: a("relative flex cursor-
|
|
1151
|
+
className: a("relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!", e),
|
|
1152
1152
|
...r
|
|
1153
1153
|
});
|
|
1154
1154
|
}
|
|
1155
1155
|
function Pn({ className: e, children: t, checked: n, ...r }) {
|
|
1156
1156
|
return /* @__PURE__ */ E(f.CheckboxItem, {
|
|
1157
1157
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1158
|
-
className: a("relative flex cursor-
|
|
1158
|
+
className: a("relative flex cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1159
1159
|
checked: n,
|
|
1160
1160
|
...r,
|
|
1161
1161
|
children: [/* @__PURE__ */ T("span", {
|
|
1162
1162
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
1163
|
-
children: /* @__PURE__ */ T(f.ItemIndicator, { children: /* @__PURE__ */ T(
|
|
1163
|
+
children: /* @__PURE__ */ T(f.ItemIndicator, { children: /* @__PURE__ */ T(Ne, { className: "size-4" }) })
|
|
1164
1164
|
}), t]
|
|
1165
1165
|
});
|
|
1166
1166
|
}
|
|
@@ -1173,11 +1173,11 @@ function Fn({ ...e }) {
|
|
|
1173
1173
|
function In({ className: e, children: t, ...n }) {
|
|
1174
1174
|
return /* @__PURE__ */ E(f.RadioItem, {
|
|
1175
1175
|
"data-slot": "dropdown-menu-radio-item",
|
|
1176
|
-
className: a("relative flex cursor-
|
|
1176
|
+
className: a("relative flex cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1177
1177
|
...n,
|
|
1178
1178
|
children: [/* @__PURE__ */ T("span", {
|
|
1179
1179
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
1180
|
-
children: /* @__PURE__ */ T(f.ItemIndicator, { children: /* @__PURE__ */ T(
|
|
1180
|
+
children: /* @__PURE__ */ T(f.ItemIndicator, { children: /* @__PURE__ */ T(qe, { className: "size-2 fill-current" }) })
|
|
1181
1181
|
}), t]
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
@@ -1213,9 +1213,9 @@ function Vn({ className: e, inset: t, children: n, ...r }) {
|
|
|
1213
1213
|
return /* @__PURE__ */ E(f.SubTrigger, {
|
|
1214
1214
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1215
1215
|
"data-inset": t,
|
|
1216
|
-
className: a("flex cursor-
|
|
1216
|
+
className: a("flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", e),
|
|
1217
1217
|
...r,
|
|
1218
|
-
children: [n, /* @__PURE__ */ T(
|
|
1218
|
+
children: [n, /* @__PURE__ */ T(ze, { className: "ml-auto size-4" })]
|
|
1219
1219
|
});
|
|
1220
1220
|
}
|
|
1221
1221
|
function Hn({ className: e, ...t }) {
|
|
@@ -1230,7 +1230,7 @@ function Un({ className: e, type: t, ...n }) {
|
|
|
1230
1230
|
return /* @__PURE__ */ T("input", {
|
|
1231
1231
|
type: t,
|
|
1232
1232
|
"data-slot": "input",
|
|
1233
|
-
className: a("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,background-color,border-color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30 dark:hover:bg-input/40 hover:border-ring/50 hover:bg-muted/40", "focus-visible:border-ring focus-visible:ring-[
|
|
1233
|
+
className: a("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,background-color,border-color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30 dark:hover:bg-input/40 hover:border-ring/50 hover:bg-muted/40", "focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/30", "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", e),
|
|
1234
1234
|
...n
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
@@ -1320,7 +1320,7 @@ function er({ className: e, ...t }) {
|
|
|
1320
1320
|
children: /* @__PURE__ */ T(_.Indicator, {
|
|
1321
1321
|
"data-slot": "radio-group-indicator",
|
|
1322
1322
|
className: "relative flex items-center justify-center",
|
|
1323
|
-
children: /* @__PURE__ */ T(
|
|
1323
|
+
children: /* @__PURE__ */ T(qe, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
|
|
1324
1324
|
})
|
|
1325
1325
|
});
|
|
1326
1326
|
}
|
|
@@ -1347,11 +1347,11 @@ function ir({ className: e, size: t = "default", children: n, ...r }) {
|
|
|
1347
1347
|
return /* @__PURE__ */ E(v.Trigger, {
|
|
1348
1348
|
"data-slot": "select-trigger",
|
|
1349
1349
|
"data-size": t,
|
|
1350
|
-
className: a("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", e),
|
|
1350
|
+
className: a("flex w-fit cursor-pointer items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", e),
|
|
1351
1351
|
...r,
|
|
1352
1352
|
children: [n, /* @__PURE__ */ T(v.Icon, {
|
|
1353
1353
|
asChild: !0,
|
|
1354
|
-
children: /* @__PURE__ */ T(
|
|
1354
|
+
children: /* @__PURE__ */ T(Fe, { className: "size-4 opacity-50" })
|
|
1355
1355
|
})]
|
|
1356
1356
|
});
|
|
1357
1357
|
}
|
|
@@ -1387,7 +1387,7 @@ function sr({ className: e, children: t, ...n }) {
|
|
|
1387
1387
|
children: [/* @__PURE__ */ T("span", {
|
|
1388
1388
|
"data-slot": "select-item-indicator",
|
|
1389
1389
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
1390
|
-
children: /* @__PURE__ */ T(v.ItemIndicator, { children: /* @__PURE__ */ T(
|
|
1390
|
+
children: /* @__PURE__ */ T(v.ItemIndicator, { children: /* @__PURE__ */ T(Ne, { className: "size-4" }) })
|
|
1391
1391
|
}), /* @__PURE__ */ T(v.ItemText, { children: t })]
|
|
1392
1392
|
});
|
|
1393
1393
|
}
|
|
@@ -1403,7 +1403,7 @@ function lr({ className: e, ...t }) {
|
|
|
1403
1403
|
"data-slot": "select-scroll-up-button",
|
|
1404
1404
|
className: a("flex cursor-default items-center justify-center py-1", e),
|
|
1405
1405
|
...t,
|
|
1406
|
-
children: /* @__PURE__ */ T(
|
|
1406
|
+
children: /* @__PURE__ */ T(Ve, { className: "size-4" })
|
|
1407
1407
|
});
|
|
1408
1408
|
}
|
|
1409
1409
|
function ur({ className: e, ...t }) {
|
|
@@ -1411,7 +1411,7 @@ function ur({ className: e, ...t }) {
|
|
|
1411
1411
|
"data-slot": "select-scroll-down-button",
|
|
1412
1412
|
className: a("flex cursor-default items-center justify-center py-1", e),
|
|
1413
1413
|
...t,
|
|
1414
|
-
children: /* @__PURE__ */ T(
|
|
1414
|
+
children: /* @__PURE__ */ T(Fe, { className: "size-4" })
|
|
1415
1415
|
});
|
|
1416
1416
|
}
|
|
1417
1417
|
// src/components/ui/separator.tsx
|
|
@@ -1452,18 +1452,21 @@ function hr({ ...e }) {
|
|
|
1452
1452
|
function gr({ className: e, ...t }) {
|
|
1453
1453
|
return /* @__PURE__ */ T(d.Overlay, {
|
|
1454
1454
|
"data-slot": "sheet-overlay",
|
|
1455
|
-
className: a("fixed inset-0 z-
|
|
1455
|
+
className: a("fixed inset-0 z-[110] bg-black/50 backdrop-blur-[2px] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", e),
|
|
1456
1456
|
...t
|
|
1457
1457
|
});
|
|
1458
1458
|
}
|
|
1459
|
-
function _r({ className: e, children: t, side: n = "right", showCloseButton: r = !0,
|
|
1459
|
+
function _r({ className: e, children: t, side: n = "right", showCloseButton: r = !0, maskClosable: i = !0, onInteractOutside: o, ...s }) {
|
|
1460
1460
|
return /* @__PURE__ */ E(hr, { children: [/* @__PURE__ */ T(gr, {}), /* @__PURE__ */ E(d.Content, {
|
|
1461
1461
|
"data-slot": "sheet-content",
|
|
1462
|
-
className: a("fixed z-
|
|
1463
|
-
|
|
1462
|
+
className: a("fixed z-[110] flex flex-col gap-4 bg-background/80 shadow-xl backdrop-blur-md", "data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:ease-out", "data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:duration-200 data-[state=closed]:ease-in", n === "right" && "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=closed]:duration-200 data-[state=open]:slide-in-from-right data-[state=open]:duration-300 sm:max-w-sm", n === "left" && "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=closed]:duration-200 data-[state=open]:slide-in-from-left data-[state=open]:duration-300 sm:max-w-sm", n === "top" && "inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=closed]:duration-200 data-[state=open]:slide-in-from-top data-[state=open]:duration-250", n === "bottom" && "inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=closed]:duration-200 data-[state=open]:slide-in-from-bottom data-[state=open]:duration-250", e),
|
|
1463
|
+
onInteractOutside: (e) => {
|
|
1464
|
+
i || e.preventDefault(), o?.(e);
|
|
1465
|
+
},
|
|
1466
|
+
...s,
|
|
1464
1467
|
children: [t, r && /* @__PURE__ */ E(d.Close, {
|
|
1465
|
-
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary",
|
|
1466
|
-
children: [/* @__PURE__ */ T(
|
|
1468
|
+
className: "absolute top-4 right-4 cursor-pointer rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary",
|
|
1469
|
+
children: [/* @__PURE__ */ T(V, { className: "size-4" }), /* @__PURE__ */ T("span", {
|
|
1467
1470
|
className: "sr-only",
|
|
1468
1471
|
children: "Close"
|
|
1469
1472
|
})]
|
|
@@ -1563,7 +1566,7 @@ function Tr({ className: e, ...t }) {
|
|
|
1563
1566
|
function Er({ className: e, ...t }) {
|
|
1564
1567
|
return /* @__PURE__ */ T("thead", {
|
|
1565
1568
|
"data-slot": "table-header",
|
|
1566
|
-
className: a("[&_tr]:border-b", e),
|
|
1569
|
+
className: a("[&_tr]:border-b [&_tr]:border-border sticky top-0 z-10 bg-muted/60 backdrop-blur-sm", e),
|
|
1567
1570
|
...t
|
|
1568
1571
|
});
|
|
1569
1572
|
}
|
|
@@ -1584,14 +1587,14 @@ function Or({ className: e, ...t }) {
|
|
|
1584
1587
|
function kr({ className: e, ...t }) {
|
|
1585
1588
|
return /* @__PURE__ */ T("tr", {
|
|
1586
1589
|
"data-slot": "table-row",
|
|
1587
|
-
className: a("border-b transition-colors hover:bg-muted/
|
|
1590
|
+
className: a("border-b border-border transition-colors odd:bg-muted/40 hover:bg-muted/60 has-aria-expanded:bg-muted/60 data-[state=selected]:bg-muted", e),
|
|
1588
1591
|
...t
|
|
1589
1592
|
});
|
|
1590
1593
|
}
|
|
1591
1594
|
function Ar({ className: e, ...t }) {
|
|
1592
1595
|
return /* @__PURE__ */ T("th", {
|
|
1593
1596
|
"data-slot": "table-head",
|
|
1594
|
-
className: a("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
1597
|
+
className: a("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
1595
1598
|
...t
|
|
1596
1599
|
});
|
|
1597
1600
|
}
|
|
@@ -1637,7 +1640,7 @@ function Fr({ className: e, variant: t = "default", ...n }) {
|
|
|
1637
1640
|
function Ir({ className: e, ...t }) {
|
|
1638
1641
|
return /* @__PURE__ */ T(S.Trigger, {
|
|
1639
1642
|
"data-slot": "tabs-trigger",
|
|
1640
|
-
className: a("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent", "data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", e),
|
|
1643
|
+
className: a("relative inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent", "data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", e),
|
|
1641
1644
|
...t
|
|
1642
1645
|
});
|
|
1643
1646
|
}
|
|
@@ -2058,41 +2061,41 @@ var Wr = (e, t) => {
|
|
|
2058
2061
|
Ji,
|
|
2059
2062
|
Ui,
|
|
2060
2063
|
{ position: [X, J] }
|
|
2061
|
-
],
|
|
2064
|
+
], re = () => ["no-repeat", { repeat: [
|
|
2062
2065
|
"",
|
|
2063
2066
|
"x",
|
|
2064
2067
|
"y",
|
|
2065
2068
|
"space",
|
|
2066
2069
|
"round"
|
|
2067
|
-
] }],
|
|
2070
|
+
] }], ie = () => [
|
|
2068
2071
|
"auto",
|
|
2069
2072
|
"cover",
|
|
2070
2073
|
"contain",
|
|
2071
2074
|
Yi,
|
|
2072
2075
|
zi,
|
|
2073
2076
|
{ size: [X, J] }
|
|
2074
|
-
],
|
|
2077
|
+
], ae = () => [
|
|
2075
2078
|
ji,
|
|
2076
2079
|
Ki,
|
|
2077
2080
|
Y
|
|
2078
|
-
],
|
|
2081
|
+
], F = () => [
|
|
2079
2082
|
"",
|
|
2080
2083
|
"none",
|
|
2081
2084
|
"full",
|
|
2082
2085
|
l,
|
|
2083
2086
|
X,
|
|
2084
2087
|
J
|
|
2085
|
-
],
|
|
2088
|
+
], I = () => [
|
|
2086
2089
|
"",
|
|
2087
2090
|
G,
|
|
2088
2091
|
Ki,
|
|
2089
2092
|
Y
|
|
2090
|
-
],
|
|
2093
|
+
], oe = () => [
|
|
2091
2094
|
"solid",
|
|
2092
2095
|
"dashed",
|
|
2093
2096
|
"dotted",
|
|
2094
2097
|
"double"
|
|
2095
|
-
],
|
|
2098
|
+
], se = () => [
|
|
2096
2099
|
"normal",
|
|
2097
2100
|
"multiply",
|
|
2098
2101
|
"screen",
|
|
@@ -2109,32 +2112,32 @@ var Wr = (e, t) => {
|
|
|
2109
2112
|
"saturation",
|
|
2110
2113
|
"color",
|
|
2111
2114
|
"luminosity"
|
|
2112
|
-
],
|
|
2115
|
+
], L = () => [
|
|
2113
2116
|
G,
|
|
2114
2117
|
ji,
|
|
2115
2118
|
Ji,
|
|
2116
2119
|
Ui
|
|
2117
|
-
],
|
|
2120
|
+
], ce = () => [
|
|
2118
2121
|
"",
|
|
2119
2122
|
"none",
|
|
2120
2123
|
m,
|
|
2121
2124
|
X,
|
|
2122
2125
|
J
|
|
2123
|
-
],
|
|
2126
|
+
], le = () => [
|
|
2124
2127
|
"none",
|
|
2125
2128
|
G,
|
|
2126
2129
|
X,
|
|
2127
2130
|
J
|
|
2128
|
-
],
|
|
2131
|
+
], ue = () => [
|
|
2129
2132
|
"none",
|
|
2130
2133
|
G,
|
|
2131
2134
|
X,
|
|
2132
2135
|
J
|
|
2133
|
-
],
|
|
2136
|
+
], de = () => [
|
|
2134
2137
|
G,
|
|
2135
2138
|
X,
|
|
2136
2139
|
J
|
|
2137
|
-
],
|
|
2140
|
+
], fe = () => [
|
|
2138
2141
|
W,
|
|
2139
2142
|
"full",
|
|
2140
2143
|
...C()
|
|
@@ -2557,7 +2560,7 @@ var Wr = (e, t) => {
|
|
|
2557
2560
|
"line-through",
|
|
2558
2561
|
"no-underline"
|
|
2559
2562
|
],
|
|
2560
|
-
"text-decoration-style": [{ decoration: [...
|
|
2563
|
+
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
|
|
2561
2564
|
"text-decoration-thickness": [{ decoration: [
|
|
2562
2565
|
G,
|
|
2563
2566
|
"from-font",
|
|
@@ -2653,8 +2656,8 @@ var Wr = (e, t) => {
|
|
|
2653
2656
|
"content"
|
|
2654
2657
|
] }],
|
|
2655
2658
|
"bg-position": [{ bg: P() }],
|
|
2656
|
-
"bg-repeat": [{ bg:
|
|
2657
|
-
"bg-size": [{ bg:
|
|
2659
|
+
"bg-repeat": [{ bg: re() }],
|
|
2660
|
+
"bg-size": [{ bg: ie() }],
|
|
2658
2661
|
"bg-image": [{ bg: [
|
|
2659
2662
|
"none",
|
|
2660
2663
|
{
|
|
@@ -2689,49 +2692,49 @@ var Wr = (e, t) => {
|
|
|
2689
2692
|
Wi
|
|
2690
2693
|
] }],
|
|
2691
2694
|
"bg-color": [{ bg: N() }],
|
|
2692
|
-
"gradient-from-pos": [{ from:
|
|
2693
|
-
"gradient-via-pos": [{ via:
|
|
2694
|
-
"gradient-to-pos": [{ to:
|
|
2695
|
+
"gradient-from-pos": [{ from: ae() }],
|
|
2696
|
+
"gradient-via-pos": [{ via: ae() }],
|
|
2697
|
+
"gradient-to-pos": [{ to: ae() }],
|
|
2695
2698
|
"gradient-from": [{ from: N() }],
|
|
2696
2699
|
"gradient-via": [{ via: N() }],
|
|
2697
2700
|
"gradient-to": [{ to: N() }],
|
|
2698
|
-
rounded: [{ rounded:
|
|
2699
|
-
"rounded-s": [{ "rounded-s":
|
|
2700
|
-
"rounded-e": [{ "rounded-e":
|
|
2701
|
-
"rounded-t": [{ "rounded-t":
|
|
2702
|
-
"rounded-r": [{ "rounded-r":
|
|
2703
|
-
"rounded-b": [{ "rounded-b":
|
|
2704
|
-
"rounded-l": [{ "rounded-l":
|
|
2705
|
-
"rounded-ss": [{ "rounded-ss":
|
|
2706
|
-
"rounded-se": [{ "rounded-se":
|
|
2707
|
-
"rounded-ee": [{ "rounded-ee":
|
|
2708
|
-
"rounded-es": [{ "rounded-es":
|
|
2709
|
-
"rounded-tl": [{ "rounded-tl":
|
|
2710
|
-
"rounded-tr": [{ "rounded-tr":
|
|
2711
|
-
"rounded-br": [{ "rounded-br":
|
|
2712
|
-
"rounded-bl": [{ "rounded-bl":
|
|
2713
|
-
"border-w": [{ border:
|
|
2714
|
-
"border-w-x": [{ "border-x":
|
|
2715
|
-
"border-w-y": [{ "border-y":
|
|
2716
|
-
"border-w-s": [{ "border-s":
|
|
2717
|
-
"border-w-e": [{ "border-e":
|
|
2718
|
-
"border-w-bs": [{ "border-bs":
|
|
2719
|
-
"border-w-be": [{ "border-be":
|
|
2720
|
-
"border-w-t": [{ "border-t":
|
|
2721
|
-
"border-w-r": [{ "border-r":
|
|
2722
|
-
"border-w-b": [{ "border-b":
|
|
2723
|
-
"border-w-l": [{ "border-l":
|
|
2724
|
-
"divide-x": [{ "divide-x":
|
|
2701
|
+
rounded: [{ rounded: F() }],
|
|
2702
|
+
"rounded-s": [{ "rounded-s": F() }],
|
|
2703
|
+
"rounded-e": [{ "rounded-e": F() }],
|
|
2704
|
+
"rounded-t": [{ "rounded-t": F() }],
|
|
2705
|
+
"rounded-r": [{ "rounded-r": F() }],
|
|
2706
|
+
"rounded-b": [{ "rounded-b": F() }],
|
|
2707
|
+
"rounded-l": [{ "rounded-l": F() }],
|
|
2708
|
+
"rounded-ss": [{ "rounded-ss": F() }],
|
|
2709
|
+
"rounded-se": [{ "rounded-se": F() }],
|
|
2710
|
+
"rounded-ee": [{ "rounded-ee": F() }],
|
|
2711
|
+
"rounded-es": [{ "rounded-es": F() }],
|
|
2712
|
+
"rounded-tl": [{ "rounded-tl": F() }],
|
|
2713
|
+
"rounded-tr": [{ "rounded-tr": F() }],
|
|
2714
|
+
"rounded-br": [{ "rounded-br": F() }],
|
|
2715
|
+
"rounded-bl": [{ "rounded-bl": F() }],
|
|
2716
|
+
"border-w": [{ border: I() }],
|
|
2717
|
+
"border-w-x": [{ "border-x": I() }],
|
|
2718
|
+
"border-w-y": [{ "border-y": I() }],
|
|
2719
|
+
"border-w-s": [{ "border-s": I() }],
|
|
2720
|
+
"border-w-e": [{ "border-e": I() }],
|
|
2721
|
+
"border-w-bs": [{ "border-bs": I() }],
|
|
2722
|
+
"border-w-be": [{ "border-be": I() }],
|
|
2723
|
+
"border-w-t": [{ "border-t": I() }],
|
|
2724
|
+
"border-w-r": [{ "border-r": I() }],
|
|
2725
|
+
"border-w-b": [{ "border-b": I() }],
|
|
2726
|
+
"border-w-l": [{ "border-l": I() }],
|
|
2727
|
+
"divide-x": [{ "divide-x": I() }],
|
|
2725
2728
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
2726
|
-
"divide-y": [{ "divide-y":
|
|
2729
|
+
"divide-y": [{ "divide-y": I() }],
|
|
2727
2730
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
2728
2731
|
"border-style": [{ border: [
|
|
2729
|
-
...
|
|
2732
|
+
...oe(),
|
|
2730
2733
|
"hidden",
|
|
2731
2734
|
"none"
|
|
2732
2735
|
] }],
|
|
2733
2736
|
"divide-style": [{ divide: [
|
|
2734
|
-
...
|
|
2737
|
+
...oe(),
|
|
2735
2738
|
"hidden",
|
|
2736
2739
|
"none"
|
|
2737
2740
|
] }],
|
|
@@ -2748,7 +2751,7 @@ var Wr = (e, t) => {
|
|
|
2748
2751
|
"border-color-l": [{ "border-l": N() }],
|
|
2749
2752
|
"divide-color": [{ divide: N() }],
|
|
2750
2753
|
"outline-style": [{ outline: [
|
|
2751
|
-
...
|
|
2754
|
+
...oe(),
|
|
2752
2755
|
"none",
|
|
2753
2756
|
"hidden"
|
|
2754
2757
|
] }],
|
|
@@ -2780,12 +2783,12 @@ var Wr = (e, t) => {
|
|
|
2780
2783
|
Gi
|
|
2781
2784
|
] }],
|
|
2782
2785
|
"inset-shadow-color": [{ "inset-shadow": N() }],
|
|
2783
|
-
"ring-w": [{ ring:
|
|
2786
|
+
"ring-w": [{ ring: I() }],
|
|
2784
2787
|
"ring-w-inset": ["ring-inset"],
|
|
2785
2788
|
"ring-color": [{ ring: N() }],
|
|
2786
2789
|
"ring-offset-w": [{ "ring-offset": [G, Y] }],
|
|
2787
2790
|
"ring-offset-color": [{ "ring-offset": N() }],
|
|
2788
|
-
"inset-ring-w": [{ "inset-ring":
|
|
2791
|
+
"inset-ring-w": [{ "inset-ring": I() }],
|
|
2789
2792
|
"inset-ring-color": [{ "inset-ring": N() }],
|
|
2790
2793
|
"text-shadow": [{ "text-shadow": [
|
|
2791
2794
|
"none",
|
|
@@ -2800,11 +2803,11 @@ var Wr = (e, t) => {
|
|
|
2800
2803
|
J
|
|
2801
2804
|
] }],
|
|
2802
2805
|
"mix-blend": [{ "mix-blend": [
|
|
2803
|
-
...
|
|
2806
|
+
...se(),
|
|
2804
2807
|
"plus-darker",
|
|
2805
2808
|
"plus-lighter"
|
|
2806
2809
|
] }],
|
|
2807
|
-
"bg-blend": [{ "bg-blend":
|
|
2810
|
+
"bg-blend": [{ "bg-blend": se() }],
|
|
2808
2811
|
"mask-clip": [{ "mask-clip": [
|
|
2809
2812
|
"border",
|
|
2810
2813
|
"padding",
|
|
@@ -2820,37 +2823,37 @@ var Wr = (e, t) => {
|
|
|
2820
2823
|
"exclude"
|
|
2821
2824
|
] }],
|
|
2822
2825
|
"mask-image-linear-pos": [{ "mask-linear": [G] }],
|
|
2823
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
2824
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
2826
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": L() }],
|
|
2827
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": L() }],
|
|
2825
2828
|
"mask-image-linear-from-color": [{ "mask-linear-from": N() }],
|
|
2826
2829
|
"mask-image-linear-to-color": [{ "mask-linear-to": N() }],
|
|
2827
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
2828
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
2830
|
+
"mask-image-t-from-pos": [{ "mask-t-from": L() }],
|
|
2831
|
+
"mask-image-t-to-pos": [{ "mask-t-to": L() }],
|
|
2829
2832
|
"mask-image-t-from-color": [{ "mask-t-from": N() }],
|
|
2830
2833
|
"mask-image-t-to-color": [{ "mask-t-to": N() }],
|
|
2831
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
2832
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
2834
|
+
"mask-image-r-from-pos": [{ "mask-r-from": L() }],
|
|
2835
|
+
"mask-image-r-to-pos": [{ "mask-r-to": L() }],
|
|
2833
2836
|
"mask-image-r-from-color": [{ "mask-r-from": N() }],
|
|
2834
2837
|
"mask-image-r-to-color": [{ "mask-r-to": N() }],
|
|
2835
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
2836
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
2838
|
+
"mask-image-b-from-pos": [{ "mask-b-from": L() }],
|
|
2839
|
+
"mask-image-b-to-pos": [{ "mask-b-to": L() }],
|
|
2837
2840
|
"mask-image-b-from-color": [{ "mask-b-from": N() }],
|
|
2838
2841
|
"mask-image-b-to-color": [{ "mask-b-to": N() }],
|
|
2839
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
2840
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
2842
|
+
"mask-image-l-from-pos": [{ "mask-l-from": L() }],
|
|
2843
|
+
"mask-image-l-to-pos": [{ "mask-l-to": L() }],
|
|
2841
2844
|
"mask-image-l-from-color": [{ "mask-l-from": N() }],
|
|
2842
2845
|
"mask-image-l-to-color": [{ "mask-l-to": N() }],
|
|
2843
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
2844
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
2846
|
+
"mask-image-x-from-pos": [{ "mask-x-from": L() }],
|
|
2847
|
+
"mask-image-x-to-pos": [{ "mask-x-to": L() }],
|
|
2845
2848
|
"mask-image-x-from-color": [{ "mask-x-from": N() }],
|
|
2846
2849
|
"mask-image-x-to-color": [{ "mask-x-to": N() }],
|
|
2847
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
2848
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
2850
|
+
"mask-image-y-from-pos": [{ "mask-y-from": L() }],
|
|
2851
|
+
"mask-image-y-to-pos": [{ "mask-y-to": L() }],
|
|
2849
2852
|
"mask-image-y-from-color": [{ "mask-y-from": N() }],
|
|
2850
2853
|
"mask-image-y-to-color": [{ "mask-y-to": N() }],
|
|
2851
2854
|
"mask-image-radial": [{ "mask-radial": [X, J] }],
|
|
2852
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
2853
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
2855
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": L() }],
|
|
2856
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": L() }],
|
|
2854
2857
|
"mask-image-radial-from-color": [{ "mask-radial-from": N() }],
|
|
2855
2858
|
"mask-image-radial-to-color": [{ "mask-radial-to": N() }],
|
|
2856
2859
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
@@ -2860,8 +2863,8 @@ var Wr = (e, t) => {
|
|
|
2860
2863
|
}] }],
|
|
2861
2864
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
2862
2865
|
"mask-image-conic-pos": [{ "mask-conic": [G] }],
|
|
2863
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
2864
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
2866
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": L() }],
|
|
2867
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": L() }],
|
|
2865
2868
|
"mask-image-conic-from-color": [{ "mask-conic-from": N() }],
|
|
2866
2869
|
"mask-image-conic-to-color": [{ "mask-conic-to": N() }],
|
|
2867
2870
|
"mask-mode": [{ mask: [
|
|
@@ -2878,8 +2881,8 @@ var Wr = (e, t) => {
|
|
|
2878
2881
|
"view"
|
|
2879
2882
|
] }],
|
|
2880
2883
|
"mask-position": [{ mask: P() }],
|
|
2881
|
-
"mask-repeat": [{ mask:
|
|
2882
|
-
"mask-size": [{ mask:
|
|
2884
|
+
"mask-repeat": [{ mask: re() }],
|
|
2885
|
+
"mask-size": [{ mask: ie() }],
|
|
2883
2886
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
2884
2887
|
"mask-image": [{ mask: [
|
|
2885
2888
|
"none",
|
|
@@ -2892,7 +2895,7 @@ var Wr = (e, t) => {
|
|
|
2892
2895
|
X,
|
|
2893
2896
|
J
|
|
2894
2897
|
] }],
|
|
2895
|
-
blur: [{ blur:
|
|
2898
|
+
blur: [{ blur: ce() }],
|
|
2896
2899
|
brightness: [{ brightness: [
|
|
2897
2900
|
G,
|
|
2898
2901
|
X,
|
|
@@ -2945,7 +2948,7 @@ var Wr = (e, t) => {
|
|
|
2945
2948
|
X,
|
|
2946
2949
|
J
|
|
2947
2950
|
] }],
|
|
2948
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
2951
|
+
"backdrop-blur": [{ "backdrop-blur": ce() }],
|
|
2949
2952
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
2950
2953
|
G,
|
|
2951
2954
|
X,
|
|
@@ -3038,18 +3041,18 @@ var Wr = (e, t) => {
|
|
|
3038
3041
|
J
|
|
3039
3042
|
] }],
|
|
3040
3043
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
3041
|
-
rotate: [{ rotate:
|
|
3042
|
-
"rotate-x": [{ "rotate-x":
|
|
3043
|
-
"rotate-y": [{ "rotate-y":
|
|
3044
|
-
"rotate-z": [{ "rotate-z":
|
|
3045
|
-
scale: [{ scale:
|
|
3046
|
-
"scale-x": [{ "scale-x":
|
|
3047
|
-
"scale-y": [{ "scale-y":
|
|
3048
|
-
"scale-z": [{ "scale-z":
|
|
3044
|
+
rotate: [{ rotate: le() }],
|
|
3045
|
+
"rotate-x": [{ "rotate-x": le() }],
|
|
3046
|
+
"rotate-y": [{ "rotate-y": le() }],
|
|
3047
|
+
"rotate-z": [{ "rotate-z": le() }],
|
|
3048
|
+
scale: [{ scale: ue() }],
|
|
3049
|
+
"scale-x": [{ "scale-x": ue() }],
|
|
3050
|
+
"scale-y": [{ "scale-y": ue() }],
|
|
3051
|
+
"scale-z": [{ "scale-z": ue() }],
|
|
3049
3052
|
"scale-3d": ["scale-3d"],
|
|
3050
|
-
skew: [{ skew:
|
|
3051
|
-
"skew-x": [{ "skew-x":
|
|
3052
|
-
"skew-y": [{ "skew-y":
|
|
3053
|
+
skew: [{ skew: de() }],
|
|
3054
|
+
"skew-x": [{ "skew-x": de() }],
|
|
3055
|
+
"skew-y": [{ "skew-y": de() }],
|
|
3053
3056
|
transform: [{ transform: [
|
|
3054
3057
|
X,
|
|
3055
3058
|
J,
|
|
@@ -3060,10 +3063,10 @@ var Wr = (e, t) => {
|
|
|
3060
3063
|
] }],
|
|
3061
3064
|
"transform-origin": [{ origin: x() }],
|
|
3062
3065
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
3063
|
-
translate: [{ translate:
|
|
3064
|
-
"translate-x": [{ "translate-x":
|
|
3065
|
-
"translate-y": [{ "translate-y":
|
|
3066
|
-
"translate-z": [{ "translate-z":
|
|
3066
|
+
translate: [{ translate: fe() }],
|
|
3067
|
+
"translate-x": [{ "translate-x": fe() }],
|
|
3068
|
+
"translate-y": [{ "translate-y": fe() }],
|
|
3069
|
+
"translate-z": [{ "translate-z": fe() }],
|
|
3067
3070
|
"translate-none": ["translate-none"],
|
|
3068
3071
|
zoom: [{ zoom: [
|
|
3069
3072
|
K,
|
|
@@ -3504,7 +3507,7 @@ function ua({ className: e, ...t }) {
|
|
|
3504
3507
|
return /* @__PURE__ */ E("div", {
|
|
3505
3508
|
"data-slot": "command-input-wrapper",
|
|
3506
3509
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
3507
|
-
children: [/* @__PURE__ */ T(
|
|
3510
|
+
children: [/* @__PURE__ */ T(mt, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ T(k.Input, {
|
|
3508
3511
|
"data-slot": "command-input",
|
|
3509
3512
|
className: a("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
3510
3513
|
...t
|
|
@@ -3542,7 +3545,7 @@ function ma({ className: e, ...t }) {
|
|
|
3542
3545
|
function ha({ className: e, ...t }) {
|
|
3543
3546
|
return /* @__PURE__ */ T(k.Item, {
|
|
3544
3547
|
"data-slot": "command-item",
|
|
3545
|
-
className: a("relative flex cursor-
|
|
3548
|
+
className: a("relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", e),
|
|
3546
3549
|
...t
|
|
3547
3550
|
});
|
|
3548
3551
|
}
|
|
@@ -3567,7 +3570,7 @@ function _a({ options: t, value: n, onChange: r, placeholder: i = "请选择..."
|
|
|
3567
3570
|
"aria-expanded": d,
|
|
3568
3571
|
disabled: l,
|
|
3569
3572
|
className: $("w-[200px] justify-between", u),
|
|
3570
|
-
children: [n ? t.find((e) => e.value === n)?.label ?? n : i, /* @__PURE__ */ T(
|
|
3573
|
+
children: [n ? t.find((e) => e.value === n)?.label ?? n : i, /* @__PURE__ */ T(Ue, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })]
|
|
3571
3574
|
})
|
|
3572
3575
|
}), /* @__PURE__ */ T(qn, {
|
|
3573
3576
|
className: "w-[200px] p-0",
|
|
@@ -3583,7 +3586,7 @@ function _a({ options: t, value: n, onChange: r, placeholder: i = "请选择..."
|
|
|
3583
3586
|
onSelect: (e) => {
|
|
3584
3587
|
r?.(e === n ? "" : e), f(!1);
|
|
3585
3588
|
},
|
|
3586
|
-
children: [/* @__PURE__ */ T(
|
|
3589
|
+
children: [/* @__PURE__ */ T(Ne, { className: $("mr-2 h-4 w-4", n === e.value ? "opacity-100" : "opacity-0") }), e.label]
|
|
3587
3590
|
}, e.value)) })] }) })] })
|
|
3588
3591
|
})]
|
|
3589
3592
|
});
|
|
@@ -3619,7 +3622,7 @@ function ya({ options: t, value: n = [], onChange: r, placeholder: i = "请选
|
|
|
3619
3622
|
className: "font-normal",
|
|
3620
3623
|
children: ["+", f.length - c]
|
|
3621
3624
|
})] })
|
|
3622
|
-
}), /* @__PURE__ */ T(
|
|
3625
|
+
}), /* @__PURE__ */ T(Ue, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })]
|
|
3623
3626
|
})
|
|
3624
3627
|
}), /* @__PURE__ */ T(qn, {
|
|
3625
3628
|
className: "w-[240px] p-0",
|
|
@@ -3637,7 +3640,7 @@ function ya({ options: t, value: n = [], onChange: r, placeholder: i = "请选
|
|
|
3637
3640
|
className: "flex flex-1 items-center justify-between gap-2",
|
|
3638
3641
|
children: [e.label, /* @__PURE__ */ T("span", {
|
|
3639
3642
|
className: "flex items-center gap-1",
|
|
3640
|
-
children: t && /* @__PURE__ */ T(
|
|
3643
|
+
children: t && /* @__PURE__ */ T(Ne, { className: "h-4 w-4" })
|
|
3641
3644
|
})]
|
|
3642
3645
|
})
|
|
3643
3646
|
}, e.value);
|
|
@@ -3650,7 +3653,7 @@ function ya({ options: t, value: n = [], onChange: r, placeholder: i = "请选
|
|
|
3650
3653
|
className: "h-11 w-full justify-start text-muted-foreground",
|
|
3651
3654
|
onClick: () => r?.([]),
|
|
3652
3655
|
children: [
|
|
3653
|
-
/* @__PURE__ */ T(
|
|
3656
|
+
/* @__PURE__ */ T(V, { className: "mr-2 h-4 w-4" }),
|
|
3654
3657
|
"清空已选(",
|
|
3655
3658
|
f.length,
|
|
3656
3659
|
")"
|
|
@@ -3676,7 +3679,7 @@ function xa({ value: t, onChange: n, placeholder: r = "选择日期", disabled:
|
|
|
3676
3679
|
variant: "outline",
|
|
3677
3680
|
disabled: i,
|
|
3678
3681
|
className: $("w-[200px] justify-start font-normal", !t && "text-muted-foreground", a),
|
|
3679
|
-
children: [/* @__PURE__ */ T(
|
|
3682
|
+
children: [/* @__PURE__ */ T(je, { className: "mr-2 h-4 w-4" }), t ? ba(t) : r]
|
|
3680
3683
|
})
|
|
3681
3684
|
}), /* @__PURE__ */ T(qn, {
|
|
3682
3685
|
className: "w-auto p-0",
|
|
@@ -3702,7 +3705,7 @@ function Sa({ value: t, onChange: n, placeholder: r = "选择日期范围", disa
|
|
|
3702
3705
|
variant: "outline",
|
|
3703
3706
|
disabled: i,
|
|
3704
3707
|
className: $("w-[280px] justify-start font-normal", !c && "text-muted-foreground", a),
|
|
3705
|
-
children: [/* @__PURE__ */ T(
|
|
3708
|
+
children: [/* @__PURE__ */ T(je, { className: "mr-2 h-4 w-4" }), c || r]
|
|
3706
3709
|
})
|
|
3707
3710
|
}), /* @__PURE__ */ T(qn, {
|
|
3708
3711
|
className: "w-auto p-0",
|
|
@@ -3793,11 +3796,11 @@ var Na = ({ ...e }) => {
|
|
|
3793
3796
|
theme: t,
|
|
3794
3797
|
className: "toaster group",
|
|
3795
3798
|
icons: {
|
|
3796
|
-
success: /* @__PURE__ */ T(
|
|
3797
|
-
info: /* @__PURE__ */ T(
|
|
3798
|
-
warning: /* @__PURE__ */ T(
|
|
3799
|
-
error: /* @__PURE__ */ T(
|
|
3800
|
-
loading: /* @__PURE__ */ T(
|
|
3799
|
+
success: /* @__PURE__ */ T(Ge, { className: "size-4" }),
|
|
3800
|
+
info: /* @__PURE__ */ T(st, { className: "size-4" }),
|
|
3801
|
+
warning: /* @__PURE__ */ T(wt, { className: "size-4" }),
|
|
3802
|
+
error: /* @__PURE__ */ T(ft, { className: "size-4" }),
|
|
3803
|
+
loading: /* @__PURE__ */ T(B, { className: "size-4 animate-spin" })
|
|
3801
3804
|
},
|
|
3802
3805
|
style: {
|
|
3803
3806
|
"--normal-bg": "var(--popover)",
|
|
@@ -3818,7 +3821,7 @@ function Pa(t) {
|
|
|
3818
3821
|
}
|
|
3819
3822
|
// src/components/ui/standard-table.tsx
|
|
3820
3823
|
function Fa({ columns: t, data: n, searchable: r, searchPlaceholder: i = "搜索...", enableSorting: a = !0, renderExpanded: o, pageSize: s = 10, className: c, loading: l = !1, emptyDescription: u = "暂无数据", manualPagination: d = !1, pageCount: f, pageIndex: p, onPaginationChange: m, paginationExtra: h, mobileCard: g = !0, renderMobileCard: _ }) {
|
|
3821
|
-
let [v, y] = e.useState([]), [b, x] = e.useState(""), [ee, S] = e.useState({}), C = Pa("(max-width: 767px)") && g, D =
|
|
3824
|
+
let [v, y] = e.useState([]), [b, x] = e.useState(""), [ee, S] = e.useState({}), C = Pa("(max-width: 767px)") && g, D = se({
|
|
3822
3825
|
data: n,
|
|
3823
3826
|
columns: t,
|
|
3824
3827
|
state: d ? {
|
|
@@ -3834,11 +3837,11 @@ function Fa({ columns: t, data: n, searchable: r, searchPlaceholder: i = "搜索
|
|
|
3834
3837
|
},
|
|
3835
3838
|
onSortingChange: y,
|
|
3836
3839
|
onGlobalFilterChange: x,
|
|
3837
|
-
getCoreRowModel:
|
|
3838
|
-
getSortedRowModel: a ?
|
|
3839
|
-
getFilteredRowModel:
|
|
3840
|
-
getPaginationRowModel: d ? void 0 :
|
|
3841
|
-
getExpandedRowModel: o ?
|
|
3840
|
+
getCoreRowModel: ie(),
|
|
3841
|
+
getSortedRowModel: a ? oe() : void 0,
|
|
3842
|
+
getFilteredRowModel: F(),
|
|
3843
|
+
getPaginationRowModel: d ? void 0 : I(),
|
|
3844
|
+
getExpandedRowModel: o ? ae() : void 0,
|
|
3842
3845
|
getRowCanExpand: o ? () => !0 : void 0,
|
|
3843
3846
|
manualPagination: d,
|
|
3844
3847
|
pageCount: d ? Math.max(1, f ?? 1) : void 0,
|
|
@@ -3871,24 +3874,26 @@ function Fa({ columns: t, data: n, searchable: r, searchPlaceholder: i = "搜索
|
|
|
3871
3874
|
/* @__PURE__ */ T(H, {
|
|
3872
3875
|
variant: "outline",
|
|
3873
3876
|
size: "sm",
|
|
3874
|
-
className: "min-h-9",
|
|
3877
|
+
className: "min-h-9 cursor-pointer",
|
|
3875
3878
|
onClick: () => d ? m?.(A - 1, s) : D.previousPage(),
|
|
3876
3879
|
disabled: A <= 0,
|
|
3877
|
-
|
|
3880
|
+
"aria-label": "上一页",
|
|
3881
|
+
children: /* @__PURE__ */ T(Le, { className: "size-4" })
|
|
3878
3882
|
}),
|
|
3879
3883
|
/* @__PURE__ */ T(H, {
|
|
3880
3884
|
variant: "outline",
|
|
3881
3885
|
size: "sm",
|
|
3882
|
-
className: "min-h-9",
|
|
3886
|
+
className: "min-h-9 cursor-pointer",
|
|
3883
3887
|
onClick: () => d ? m?.(A + 1, s) : D.nextPage(),
|
|
3884
3888
|
disabled: A >= k - 1,
|
|
3885
|
-
|
|
3889
|
+
"aria-label": "下一页",
|
|
3890
|
+
children: /* @__PURE__ */ T(ze, { className: "size-4" })
|
|
3886
3891
|
})
|
|
3887
3892
|
]
|
|
3888
3893
|
})]
|
|
3889
3894
|
});
|
|
3890
3895
|
return /* @__PURE__ */ E("div", {
|
|
3891
|
-
className: $("space-y-2", c),
|
|
3896
|
+
className: $("space-y-2 rounded-lg border border-border/50 bg-card/50 p-3 backdrop-blur-sm", c),
|
|
3892
3897
|
children: [r && /* @__PURE__ */ T(Un, {
|
|
3893
3898
|
value: b,
|
|
3894
3899
|
onChange: (e) => x(e.target.value),
|
|
@@ -3899,7 +3904,7 @@ function Fa({ columns: t, data: n, searchable: r, searchPlaceholder: i = "搜索
|
|
|
3899
3904
|
children: [
|
|
3900
3905
|
l && /* @__PURE__ */ E("div", {
|
|
3901
3906
|
className: "flex items-center justify-center gap-2 py-4 text-sm text-muted-foreground",
|
|
3902
|
-
children: [/* @__PURE__ */ T(
|
|
3907
|
+
children: [/* @__PURE__ */ T(B, { className: "size-4 animate-spin" }), "加载中..."]
|
|
3903
3908
|
}),
|
|
3904
3909
|
O.length ? /* @__PURE__ */ T("div", {
|
|
3905
3910
|
className: "flex flex-col gap-2",
|
|
@@ -3912,7 +3917,7 @@ function Fa({ columns: t, data: n, searchable: r, searchPlaceholder: i = "搜索
|
|
|
3912
3917
|
children: typeof n.column.columnDef.header == "string" ? n.column.columnDef.header : n.column.id
|
|
3913
3918
|
}), /* @__PURE__ */ T("dd", {
|
|
3914
3919
|
className: "break-all",
|
|
3915
|
-
children: n.column.columnDef.meta?.cardCell ? n.column.columnDef.meta.cardCell(t.original) :
|
|
3920
|
+
children: n.column.columnDef.meta?.cardCell ? n.column.columnDef.meta.cardCell(t.original) : re(n.column.columnDef.cell, n.getContext())
|
|
3916
3921
|
})] }, n.id))
|
|
3917
3922
|
}), o && /* @__PURE__ */ E("details", {
|
|
3918
3923
|
className: "mt-2",
|
|
@@ -3935,20 +3940,20 @@ function Fa({ columns: t, data: n, searchable: r, searchPlaceholder: i = "搜索
|
|
|
3935
3940
|
className: $("relative rounded-md border overflow-x-auto", l && "pointer-events-none opacity-60"),
|
|
3936
3941
|
children: [l && /* @__PURE__ */ T("div", {
|
|
3937
3942
|
className: "absolute inset-0 z-10 flex items-center justify-center bg-background/40",
|
|
3938
|
-
children: /* @__PURE__ */ T(
|
|
3943
|
+
children: /* @__PURE__ */ T(B, { className: "size-5 animate-spin text-muted-foreground" })
|
|
3939
3944
|
}), /* @__PURE__ */ E(Tr, { children: [/* @__PURE__ */ T(Er, { children: D.getHeaderGroups().map((e) => /* @__PURE__ */ E(kr, { children: [o && /* @__PURE__ */ T(Ar, { className: "w-8" }), e.headers.map((e) => /* @__PURE__ */ T(Ar, {
|
|
3940
3945
|
className: $(e.column.columnDef.meta?.hideBelowMd && "hidden md:table-cell"),
|
|
3941
3946
|
children: e.isPlaceholder ? null : e.column.getCanSort() ? /* @__PURE__ */ E("button", {
|
|
3942
3947
|
className: "flex items-center gap-1",
|
|
3943
3948
|
onClick: e.column.getToggleSortingHandler(),
|
|
3944
|
-
children: [
|
|
3945
|
-
}) :
|
|
3946
|
-
}, e.id))] }, e.id)) }), /* @__PURE__ */ T(Dr, { children: O.length ? O.map((t) => /* @__PURE__ */ E(e.Fragment, { children: [/* @__PURE__ */ E(kr, { children: [o && /* @__PURE__ */ T(jr, { children: /* @__PURE__ */ T(
|
|
3949
|
+
children: [re(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ T(Te, { className: "h-3 w-3 opacity-50" })]
|
|
3950
|
+
}) : re(e.column.columnDef.header, e.getContext())
|
|
3951
|
+
}, e.id))] }, e.id)) }), /* @__PURE__ */ T(Dr, { children: O.length ? O.map((t) => /* @__PURE__ */ E(e.Fragment, { children: [/* @__PURE__ */ E(kr, { children: [o && /* @__PURE__ */ T(jr, { children: /* @__PURE__ */ T(ze, {
|
|
3947
3952
|
className: $("h-4 w-4 cursor-pointer transition-transform", t.getIsExpanded() && "rotate-90"),
|
|
3948
3953
|
onClick: t.getToggleExpandedHandler()
|
|
3949
3954
|
}) }), t.getVisibleCells().map((e) => /* @__PURE__ */ T(jr, {
|
|
3950
3955
|
className: $(e.column.columnDef.meta?.hideBelowMd && "hidden md:table-cell"),
|
|
3951
|
-
children:
|
|
3956
|
+
children: re(e.column.columnDef.cell, e.getContext())
|
|
3952
3957
|
}, e.id))] }), o && t.getIsExpanded() && /* @__PURE__ */ T(kr, { children: /* @__PURE__ */ T(jr, {
|
|
3953
3958
|
colSpan: t.getVisibleCells().length + 1,
|
|
3954
3959
|
className: "bg-muted/40",
|
|
@@ -3962,43 +3967,44 @@ function Fa({ columns: t, data: n, searchable: r, searchPlaceholder: i = "搜索
|
|
|
3962
3967
|
});
|
|
3963
3968
|
}
|
|
3964
3969
|
// src/components/ui/drawer.tsx
|
|
3965
|
-
function Ia({
|
|
3966
|
-
return /* @__PURE__ */ T(
|
|
3970
|
+
function Ia({ maskClosable: e = !0, ...t }) {
|
|
3971
|
+
return /* @__PURE__ */ T(L.Root, {
|
|
3967
3972
|
"data-slot": "drawer",
|
|
3968
|
-
|
|
3973
|
+
dismissible: e,
|
|
3974
|
+
...t
|
|
3969
3975
|
});
|
|
3970
3976
|
}
|
|
3971
3977
|
function La({ ...e }) {
|
|
3972
|
-
return /* @__PURE__ */ T(
|
|
3978
|
+
return /* @__PURE__ */ T(L.Trigger, {
|
|
3973
3979
|
"data-slot": "drawer-trigger",
|
|
3974
3980
|
...e
|
|
3975
3981
|
});
|
|
3976
3982
|
}
|
|
3977
3983
|
function Ra({ ...e }) {
|
|
3978
|
-
return /* @__PURE__ */ T(
|
|
3984
|
+
return /* @__PURE__ */ T(L.Portal, {
|
|
3979
3985
|
"data-slot": "drawer-portal",
|
|
3980
3986
|
...e
|
|
3981
3987
|
});
|
|
3982
3988
|
}
|
|
3983
3989
|
function za({ ...e }) {
|
|
3984
|
-
return /* @__PURE__ */ T(
|
|
3990
|
+
return /* @__PURE__ */ T(L.Close, {
|
|
3985
3991
|
"data-slot": "drawer-close",
|
|
3986
3992
|
...e
|
|
3987
3993
|
});
|
|
3988
3994
|
}
|
|
3989
3995
|
function Ba({ className: e, ...t }) {
|
|
3990
|
-
return /* @__PURE__ */ T(
|
|
3996
|
+
return /* @__PURE__ */ T(L.Overlay, {
|
|
3991
3997
|
"data-slot": "drawer-overlay",
|
|
3992
|
-
className: a("fixed inset-0 z-
|
|
3998
|
+
className: a("fixed inset-0 z-[110] bg-black/50 backdrop-blur-[2px] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", e),
|
|
3993
3999
|
...t
|
|
3994
4000
|
});
|
|
3995
4001
|
}
|
|
3996
4002
|
function Va({ className: e, children: t, ...n }) {
|
|
3997
4003
|
return /* @__PURE__ */ E(Ra, {
|
|
3998
4004
|
"data-slot": "drawer-portal",
|
|
3999
|
-
children: [/* @__PURE__ */ T(Ba, {}), /* @__PURE__ */ E(
|
|
4005
|
+
children: [/* @__PURE__ */ T(Ba, {}), /* @__PURE__ */ E(L.Content, {
|
|
4000
4006
|
"data-slot": "drawer-content",
|
|
4001
|
-
className: a("group/drawer-content fixed z-
|
|
4007
|
+
className: a("group/drawer-content fixed z-[110] flex h-auto flex-col bg-background/80 shadow-xl backdrop-blur-md transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=top]:border-border data-[vaul-drawer-direction=top]:data-[state=closed]:slide-out-to-top data-[vaul-drawer-direction=top]:data-[state=open]:slide-in-from-top", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=bottom]:border-border data-[vaul-drawer-direction=bottom]:data-[state=closed]:slide-out-to-bottom data-[vaul-drawer-direction=bottom]:data-[state=open]:slide-in-from-bottom", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:border-border data-[vaul-drawer-direction=right]:data-[state=closed]:slide-out-to-right data-[vaul-drawer-direction=right]:data-[state=open]:slide-in-from-right data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:border-border data-[vaul-drawer-direction=left]:data-[state=closed]:slide-out-to-left data-[vaul-drawer-direction=left]:data-[state=open]:slide-in-from-left data-[vaul-drawer-direction=left]:sm:max-w-sm", e),
|
|
4002
4008
|
...n,
|
|
4003
4009
|
children: [/* @__PURE__ */ T("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), t]
|
|
4004
4010
|
})]
|
|
@@ -4019,14 +4025,14 @@ function Ua({ className: e, ...t }) {
|
|
|
4019
4025
|
});
|
|
4020
4026
|
}
|
|
4021
4027
|
function Wa({ className: e, ...t }) {
|
|
4022
|
-
return /* @__PURE__ */ T(
|
|
4028
|
+
return /* @__PURE__ */ T(L.Title, {
|
|
4023
4029
|
"data-slot": "drawer-title",
|
|
4024
4030
|
className: a("font-semibold text-foreground", e),
|
|
4025
4031
|
...t
|
|
4026
4032
|
});
|
|
4027
4033
|
}
|
|
4028
4034
|
function Ga({ className: e, ...t }) {
|
|
4029
|
-
return /* @__PURE__ */ T(
|
|
4035
|
+
return /* @__PURE__ */ T(L.Description, {
|
|
4030
4036
|
"data-slot": "drawer-description",
|
|
4031
4037
|
className: a("text-sm text-muted-foreground", e),
|
|
4032
4038
|
...t
|
|
@@ -4050,7 +4056,7 @@ var qa = (e, t) => {
|
|
|
4050
4056
|
let e = n.children && qa(n.children, t);
|
|
4051
4057
|
if (e) return e;
|
|
4052
4058
|
}
|
|
4053
|
-
}, Ja =
|
|
4059
|
+
}, Ja = ce.ReactAccessibleTree ?? ce.default ?? ce;
|
|
4054
4060
|
function Ya({ data: t, defaultExpandedIds: n, onSelect: r, className: i }) {
|
|
4055
4061
|
let a = e.useMemo(() => n ? new Set(n) : null, [n]), [o, s] = e.useState(() => Ka(t, a));
|
|
4056
4062
|
return e.useEffect(() => {
|
|
@@ -4065,8 +4071,8 @@ function Ya({ data: t, defaultExpandedIds: n, onSelect: r, className: i }) {
|
|
|
4065
4071
|
return /* @__PURE__ */ T("span", {
|
|
4066
4072
|
className: "flex items-center gap-1.5",
|
|
4067
4073
|
children: n ? /* @__PURE__ */ E(w, { children: [
|
|
4068
|
-
/* @__PURE__ */ T(
|
|
4069
|
-
/* @__PURE__ */ T(
|
|
4074
|
+
/* @__PURE__ */ T(ze, { className: $("h-3 w-3 text-muted-foreground transition-transform", e.expanded && "rotate-90") }),
|
|
4075
|
+
/* @__PURE__ */ T(rt, { className: "h-3.5 w-3.5 text-muted-foreground" }),
|
|
4070
4076
|
/* @__PURE__ */ T("span", {
|
|
4071
4077
|
className: "font-medium",
|
|
4072
4078
|
children: i
|
|
@@ -4078,7 +4084,7 @@ function Ya({ data: t, defaultExpandedIds: n, onSelect: r, className: i }) {
|
|
|
4078
4084
|
let n = qa(t, String(e.id));
|
|
4079
4085
|
n && r?.(n);
|
|
4080
4086
|
},
|
|
4081
|
-
children: [/* @__PURE__ */ T(
|
|
4087
|
+
children: [/* @__PURE__ */ T(tt, { className: "h-3.5 w-3.5 text-muted-foreground" }), i]
|
|
4082
4088
|
})
|
|
4083
4089
|
});
|
|
4084
4090
|
}
|
|
@@ -4094,7 +4100,7 @@ function Xa({ accept: t, maxFiles: n = 1, maxSize: r, onFilesChange: i, classNam
|
|
|
4094
4100
|
o,
|
|
4095
4101
|
n,
|
|
4096
4102
|
i
|
|
4097
|
-
]), { getRootProps: l, getInputProps: u, isDragActive: d } =
|
|
4103
|
+
]), { getRootProps: l, getInputProps: u, isDragActive: d } = le({
|
|
4098
4104
|
onDrop: c,
|
|
4099
4105
|
accept: t,
|
|
4100
4106
|
maxFiles: n,
|
|
@@ -4110,7 +4116,7 @@ function Xa({ accept: t, maxFiles: n = 1, maxSize: r, onFilesChange: i, classNam
|
|
|
4110
4116
|
className: $("flex flex-col items-center justify-center gap-2 rounded-lg border border-dashed p-8 text-sm cursor-pointer", d ? "border-primary bg-primary/5" : "border-border text-muted-foreground"),
|
|
4111
4117
|
children: [
|
|
4112
4118
|
/* @__PURE__ */ T("input", { ...u() }),
|
|
4113
|
-
/* @__PURE__ */ T(
|
|
4119
|
+
/* @__PURE__ */ T(Ye, { className: "h-6 w-6" }),
|
|
4114
4120
|
d ? /* @__PURE__ */ T("p", { children: "松开即上传" }) : /* @__PURE__ */ T("p", { children: "拖拽文件到此处,或点击选择" })
|
|
4115
4121
|
]
|
|
4116
4122
|
}), o.map((e) => /* @__PURE__ */ E("div", {
|
|
@@ -4123,7 +4129,7 @@ function Xa({ accept: t, maxFiles: n = 1, maxSize: r, onFilesChange: i, classNam
|
|
|
4123
4129
|
size: "icon-sm",
|
|
4124
4130
|
onClick: () => f(e),
|
|
4125
4131
|
"aria-label": `移除 ${e.name}`,
|
|
4126
|
-
children: /* @__PURE__ */ T(
|
|
4132
|
+
children: /* @__PURE__ */ T(V, { className: "h-3.5 w-3.5" })
|
|
4127
4133
|
})]
|
|
4128
4134
|
}, e.name))]
|
|
4129
4135
|
});
|
|
@@ -4168,11 +4174,11 @@ function Qa({ page: e, total: t = 0, pageSize: n = 10, onChange: r, className: i
|
|
|
4168
4174
|
disabled: e <= 1,
|
|
4169
4175
|
onClick: () => r(e - 1),
|
|
4170
4176
|
"aria-label": "上一页",
|
|
4171
|
-
children: /* @__PURE__ */ T(
|
|
4177
|
+
children: /* @__PURE__ */ T(Le, { className: "h-4 w-4" })
|
|
4172
4178
|
}),
|
|
4173
4179
|
Za(e, a).map((t, n) => t === "…" ? /* @__PURE__ */ T("span", {
|
|
4174
4180
|
className: "flex h-8 w-8 items-center justify-center text-muted-foreground",
|
|
4175
|
-
children: /* @__PURE__ */ T(
|
|
4181
|
+
children: /* @__PURE__ */ T(Ze, { className: "h-4 w-4" })
|
|
4176
4182
|
}, `e${n}`) : /* @__PURE__ */ T(H, {
|
|
4177
4183
|
variant: t === e ? "default" : "outline",
|
|
4178
4184
|
size: "icon-sm",
|
|
@@ -4186,7 +4192,7 @@ function Qa({ page: e, total: t = 0, pageSize: n = 10, onChange: r, className: i
|
|
|
4186
4192
|
disabled: e >= a,
|
|
4187
4193
|
onClick: () => r(e + 1),
|
|
4188
4194
|
"aria-label": "下一页",
|
|
4189
|
-
children: /* @__PURE__ */ T(
|
|
4195
|
+
children: /* @__PURE__ */ T(ze, { className: "h-4 w-4" })
|
|
4190
4196
|
}),
|
|
4191
4197
|
t > 0 && /* @__PURE__ */ E("span", {
|
|
4192
4198
|
className: "ml-2 text-sm text-muted-foreground",
|
|
@@ -4212,7 +4218,7 @@ function $a({ steps: t, current: n, onChange: r, className: i }) {
|
|
|
4212
4218
|
disabled: !r,
|
|
4213
4219
|
onClick: () => r?.(a),
|
|
4214
4220
|
className: $("flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-medium", o && "bg-primary text-primary-foreground", s && "border-2 border-primary text-primary", !o && !s && "border border-border text-muted-foreground"),
|
|
4215
|
-
children: o ? /* @__PURE__ */ T(
|
|
4221
|
+
children: o ? /* @__PURE__ */ T(Ne, { className: "h-3.5 w-3.5" }) : a + 1
|
|
4216
4222
|
}), /* @__PURE__ */ T("span", {
|
|
4217
4223
|
className: $("text-sm", s ? "font-medium text-foreground" : "text-muted-foreground"),
|
|
4218
4224
|
children: i
|
|
@@ -4288,7 +4294,7 @@ function ro({ description: e = "暂无数据", icon: t, action: n, className: r
|
|
|
4288
4294
|
children: [
|
|
4289
4295
|
/* @__PURE__ */ T("div", {
|
|
4290
4296
|
className: "text-muted-foreground/60",
|
|
4291
|
-
children: t ?? /* @__PURE__ */ T(
|
|
4297
|
+
children: t ?? /* @__PURE__ */ T(at, { className: "h-10 w-10" })
|
|
4292
4298
|
}),
|
|
4293
4299
|
/* @__PURE__ */ T("div", {
|
|
4294
4300
|
className: "text-sm text-muted-foreground",
|
|
@@ -4327,7 +4333,7 @@ function ao({ className: e, color: t = "default", bordered: n = !0, closable: r,
|
|
|
4327
4333
|
onClick: (e) => {
|
|
4328
4334
|
e.stopPropagation(), i?.(e);
|
|
4329
4335
|
},
|
|
4330
|
-
children: /* @__PURE__ */ T(
|
|
4336
|
+
children: /* @__PURE__ */ T(V, { className: "size-3" })
|
|
4331
4337
|
})]
|
|
4332
4338
|
});
|
|
4333
4339
|
}
|
|
@@ -4370,7 +4376,7 @@ function so({ title: e, value: t, precision: n, prefix: r, suffix: i, direction:
|
|
|
4370
4376
|
className: "text-sm font-normal text-muted-foreground",
|
|
4371
4377
|
children: i
|
|
4372
4378
|
}),
|
|
4373
|
-
a && (a === "up" ? /* @__PURE__ */ T(
|
|
4379
|
+
a && (a === "up" ? /* @__PURE__ */ T(St, { className: "h-4 w-4 self-center text-success" }) : /* @__PURE__ */ T(bt, { className: "h-4 w-4 self-center text-destructive" }))
|
|
4374
4380
|
]
|
|
4375
4381
|
})]
|
|
4376
4382
|
});
|
|
@@ -4391,7 +4397,7 @@ function lo({ onConfirm: e, title: t = "确定删除?", description: n = "删
|
|
|
4391
4397
|
return /* @__PURE__ */ E(Wt, { children: [/* @__PURE__ */ T(Gt, {
|
|
4392
4398
|
asChild: !0,
|
|
4393
4399
|
children: /* @__PURE__ */ T(co, {
|
|
4394
|
-
icon: /* @__PURE__ */ T(
|
|
4400
|
+
icon: /* @__PURE__ */ T(vt, { className: "h-3.5 w-3.5" }),
|
|
4395
4401
|
danger: !0,
|
|
4396
4402
|
children: r
|
|
4397
4403
|
})
|
|
@@ -4402,7 +4408,7 @@ function lo({ onConfirm: e, title: t = "确定删除?", description: n = "删
|
|
|
4402
4408
|
}
|
|
4403
4409
|
function uo({ onClick: e, label: t = "详情" }) {
|
|
4404
4410
|
return /* @__PURE__ */ T(co, {
|
|
4405
|
-
icon: /* @__PURE__ */ T(
|
|
4411
|
+
icon: /* @__PURE__ */ T($e, { className: "h-3.5 w-3.5" }),
|
|
4406
4412
|
onClick: e,
|
|
4407
4413
|
children: t
|
|
4408
4414
|
});
|
|
@@ -4449,7 +4455,7 @@ function fo({ mode: t = "multiple", value: n, onChange: r, onSearch: i, options:
|
|
|
4449
4455
|
className: "rounded-full hover:bg-muted-foreground/20",
|
|
4450
4456
|
onClick: () => y(e),
|
|
4451
4457
|
"aria-label": `移除 ${e}`,
|
|
4452
|
-
children: /* @__PURE__ */ T(
|
|
4458
|
+
children: /* @__PURE__ */ T(V, { className: "h-3 w-3" })
|
|
4453
4459
|
})]
|
|
4454
4460
|
}, e)), /* @__PURE__ */ E(Gn, {
|
|
4455
4461
|
open: l,
|
|
@@ -4463,9 +4469,9 @@ function fo({ mode: t = "multiple", value: n, onChange: r, onSearch: i, options:
|
|
|
4463
4469
|
role: "combobox",
|
|
4464
4470
|
className: "gap-1 font-normal",
|
|
4465
4471
|
children: [
|
|
4466
|
-
h && /* @__PURE__ */ T(
|
|
4472
|
+
h && /* @__PURE__ */ T(B, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
4467
4473
|
t === "single" && v[0] ? b(v[0]) : o,
|
|
4468
|
-
/* @__PURE__ */ T(
|
|
4474
|
+
/* @__PURE__ */ T(Ue, { className: "h-3.5 w-3.5 opacity-50" })
|
|
4469
4475
|
]
|
|
4470
4476
|
})
|
|
4471
4477
|
}), /* @__PURE__ */ T(qn, {
|
|
@@ -4477,7 +4483,7 @@ function fo({ mode: t = "multiple", value: n, onChange: r, onSearch: i, options:
|
|
|
4477
4483
|
placeholder: o
|
|
4478
4484
|
}), /* @__PURE__ */ T(da, { children: h ? /* @__PURE__ */ T("div", {
|
|
4479
4485
|
className: "flex items-center justify-center py-6",
|
|
4480
|
-
children: /* @__PURE__ */ T(
|
|
4486
|
+
children: /* @__PURE__ */ T(B, { className: "h-4 w-4 animate-spin" })
|
|
4481
4487
|
}) : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(fa, { children: "未找到结果" }), /* @__PURE__ */ T(pa, { children: _.map((e) => /* @__PURE__ */ E(ha, {
|
|
4482
4488
|
value: e.value,
|
|
4483
4489
|
onSelect: () => y(e.value),
|
|
@@ -4536,7 +4542,7 @@ function _o({ options: e, value: t, onChange: n, loading: r, disabled: i, placeh
|
|
|
4536
4542
|
disabled: i || r,
|
|
4537
4543
|
children: [/* @__PURE__ */ E(ir, {
|
|
4538
4544
|
className: o,
|
|
4539
|
-
children: [/* @__PURE__ */ T(rr, { placeholder: r ? "加载中..." : a }), r && /* @__PURE__ */ T(
|
|
4545
|
+
children: [/* @__PURE__ */ T(rr, { placeholder: r ? "加载中..." : a }), r && /* @__PURE__ */ T(B, { className: "h-3.5 w-3.5 animate-spin" })]
|
|
4540
4546
|
}), /* @__PURE__ */ T(ar, { children: e.map((e) => /* @__PURE__ */ T(sr, {
|
|
4541
4547
|
value: e,
|
|
4542
4548
|
children: e.toUpperCase()
|
|
@@ -4634,7 +4640,7 @@ function So({ options: e, value: t, onChange: n, loading: r, disabled: i, placeh
|
|
|
4634
4640
|
disabled: i || r,
|
|
4635
4641
|
children: [/* @__PURE__ */ E(ir, {
|
|
4636
4642
|
className: o,
|
|
4637
|
-
children: [/* @__PURE__ */ T(rr, { placeholder: r ? "加载中..." : a }), r && /* @__PURE__ */ T(
|
|
4643
|
+
children: [/* @__PURE__ */ T(rr, { placeholder: r ? "加载中..." : a }), r && /* @__PURE__ */ T(B, { className: "h-3.5 w-3.5 animate-spin" })]
|
|
4638
4644
|
}), /* @__PURE__ */ T(ar, { children: e.map((e) => /* @__PURE__ */ T(sr, {
|
|
4639
4645
|
value: e.value,
|
|
4640
4646
|
children: e.label
|
|
@@ -4649,7 +4655,7 @@ function Co({ options: e, value: t, onChange: n, loading: r, disabled: i, placeh
|
|
|
4649
4655
|
disabled: i || r,
|
|
4650
4656
|
children: [/* @__PURE__ */ E(ir, {
|
|
4651
4657
|
className: o,
|
|
4652
|
-
children: [/* @__PURE__ */ T(rr, { placeholder: r ? "加载中..." : a }), r && /* @__PURE__ */ T(
|
|
4658
|
+
children: [/* @__PURE__ */ T(rr, { placeholder: r ? "加载中..." : a }), r && /* @__PURE__ */ T(B, { className: "h-3.5 w-3.5 animate-spin" })]
|
|
4653
4659
|
}), /* @__PURE__ */ T(ar, { children: e.map((e) => /* @__PURE__ */ T(sr, {
|
|
4654
4660
|
value: e,
|
|
4655
4661
|
children: e
|
|
@@ -4690,7 +4696,7 @@ function Do({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
4690
4696
|
}
|
|
4691
4697
|
// src/components/ui/input-otp.tsx
|
|
4692
4698
|
function Oo({ className: e, containerClassName: t, ...n }) {
|
|
4693
|
-
return /* @__PURE__ */ T(
|
|
4699
|
+
return /* @__PURE__ */ T(ue, {
|
|
4694
4700
|
"data-slot": "input-otp",
|
|
4695
4701
|
containerClassName: a("flex items-center gap-2 has-disabled:opacity-50", t),
|
|
4696
4702
|
className: a("disabled:cursor-not-allowed", e),
|
|
@@ -4705,7 +4711,7 @@ function ko({ className: e, ...t }) {
|
|
|
4705
4711
|
});
|
|
4706
4712
|
}
|
|
4707
4713
|
function Ao({ index: t, className: n, ...r }) {
|
|
4708
|
-
let { char: i, hasFakeCaret: o, isActive: s } = e.useContext(
|
|
4714
|
+
let { char: i, hasFakeCaret: o, isActive: s } = e.useContext(de)?.slots[t] ?? {};
|
|
4709
4715
|
return /* @__PURE__ */ E("div", {
|
|
4710
4716
|
"data-slot": "input-otp-slot",
|
|
4711
4717
|
"data-active": s,
|
|
@@ -4722,14 +4728,14 @@ function jo({ ...e }) {
|
|
|
4722
4728
|
"data-slot": "input-otp-separator",
|
|
4723
4729
|
role: "separator",
|
|
4724
4730
|
...e,
|
|
4725
|
-
children: /* @__PURE__ */ T(
|
|
4731
|
+
children: /* @__PURE__ */ T(ut, {})
|
|
4726
4732
|
});
|
|
4727
4733
|
}
|
|
4728
4734
|
// src/components/ui/chat-message.tsx
|
|
4729
4735
|
var Mo = {
|
|
4730
|
-
user: /* @__PURE__ */ T(
|
|
4731
|
-
assistant: /* @__PURE__ */ T(
|
|
4732
|
-
system: /* @__PURE__ */ T(
|
|
4736
|
+
user: /* @__PURE__ */ T(Et, { className: "h-4 w-4" }),
|
|
4737
|
+
assistant: /* @__PURE__ */ T(ke, { className: "h-4 w-4" }),
|
|
4738
|
+
system: /* @__PURE__ */ T(Ot, { className: "h-4 w-4" })
|
|
4733
4739
|
};
|
|
4734
4740
|
function No({ role: e = "assistant", avatar: t, children: n, streaming: r = !1, className: i }) {
|
|
4735
4741
|
let o = e === "user";
|
|
@@ -4776,7 +4782,7 @@ function Po({ placeholder: t = "输入消息,Enter 发送,Shift+Enter 换行
|
|
|
4776
4782
|
variant: "outline",
|
|
4777
4783
|
"aria-label": "停止生成",
|
|
4778
4784
|
onClick: () => o?.(),
|
|
4779
|
-
children: /* @__PURE__ */ T(
|
|
4785
|
+
children: /* @__PURE__ */ T(gt, { className: "h-4 w-4" })
|
|
4780
4786
|
}) : /* @__PURE__ */ T(H, {
|
|
4781
4787
|
type: "button",
|
|
4782
4788
|
size: "icon",
|
|
@@ -4785,7 +4791,7 @@ function Po({ placeholder: t = "输入消息,Enter 发送,Shift+Enter 换行
|
|
|
4785
4791
|
onClick: () => {
|
|
4786
4792
|
d && (i?.(l.trim()), u(""));
|
|
4787
4793
|
},
|
|
4788
|
-
children: /* @__PURE__ */ T(
|
|
4794
|
+
children: /* @__PURE__ */ T(De, { className: "h-4 w-4" })
|
|
4789
4795
|
})]
|
|
4790
4796
|
});
|
|
4791
4797
|
}
|
|
@@ -4854,7 +4860,7 @@ function Ro({ variant: e = "dots", label: t = "思考中...", className: n }) {
|
|
|
4854
4860
|
role: "status",
|
|
4855
4861
|
"aria-label": t,
|
|
4856
4862
|
className: a("flex items-center gap-2 text-sm text-muted-foreground", n),
|
|
4857
|
-
children: [e === "spinner" ? /* @__PURE__ */ T(
|
|
4863
|
+
children: [e === "spinner" ? /* @__PURE__ */ T(B, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ T("span", {
|
|
4858
4864
|
className: "flex items-center gap-1",
|
|
4859
4865
|
"aria-hidden": "true",
|
|
4860
4866
|
children: [
|