@quantlife/qlui 0.0.0-stage → 0.0.2
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/README.md +123 -2
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/action-buttons.d.ts +23 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/base-pair-selector.d.ts +19 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/chat-input.d.ts +18 -0
- package/dist/components/ui/chat-list.d.ts +14 -0
- package/dist/components/ui/chat-message.d.ts +15 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/combobox.d.ts +31 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/date-picker-int.d.ts +11 -0
- package/dist/components/ui/date-picker.d.ts +20 -0
- package/dist/components/ui/descriptions.d.ts +15 -0
- package/dist/components/ui/dialog.d.ts +17 -0
- package/dist/components/ui/digital-pair-selector.d.ts +14 -0
- package/dist/components/ui/drawer.d.ts +13 -0
- package/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/empty.d.ts +9 -0
- package/dist/components/ui/exchange-select.d.ts +13 -0
- package/dist/components/ui/file-tree.d.ts +14 -0
- package/dist/components/ui/file-upload.d.ts +10 -0
- package/dist/components/ui/form.d.ts +24 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/inline-completion.d.ts +12 -0
- package/dist/components/ui/input-otp.d.ts +11 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/mobile-card-list.d.ts +17 -0
- package/dist/components/ui/monaco-editor.d.ts +27 -0
- package/dist/components/ui/pagination.d.ts +10 -0
- package/dist/components/ui/pair-select.d.ts +17 -0
- package/dist/components/ui/period-select.d.ts +13 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/segmented.d.ts +16 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/standard-table.d.ts +46 -0
- package/dist/components/ui/statistic.d.ts +13 -0
- package/dist/components/ui/steps.d.ts +9 -0
- package/dist/components/ui/stream-text.d.ts +10 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +24 -0
- package/dist/components/ui/tag.d.ts +10 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/thinking-loader.d.ts +10 -0
- package/dist/components/ui/timeline.d.ts +15 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/hooks/use-confirm.d.ts +1 -0
- package/dist/hooks/use-media-query.d.ts +2 -0
- package/dist/hooks/use-toast.d.ts +1 -0
- package/dist/index.d.ts +69 -0
- package/dist/index.js +4869 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/providers/confirm-provider.d.ts +14 -0
- package/dist/providers/theme-provider.d.ts +15 -0
- package/dist/providers/toast-provider.d.ts +15 -0
- package/dist/qlui.css +3 -0
- package/dist/stories/accordion.stories.d.ts +21 -0
- package/dist/stories/action-buttons.stories.d.ts +16 -0
- package/dist/stories/alert-dialog.stories.d.ts +19 -0
- package/dist/stories/alert.stories.d.ts +16 -0
- package/dist/stories/aspect-ratio.stories.d.ts +17 -0
- package/dist/stories/badge.stories.d.ts +16 -0
- package/dist/stories/base-pair-selector.stories.d.ts +16 -0
- package/dist/stories/button.stories.d.ts +16 -0
- package/dist/stories/calendar.stories.d.ts +16 -0
- package/dist/stories/card.stories.d.ts +16 -0
- package/dist/stories/chat-input.stories.d.ts +17 -0
- package/dist/stories/chat-list.stories.d.ts +19 -0
- package/dist/stories/chat-message.stories.d.ts +19 -0
- package/dist/stories/checkbox.stories.d.ts +16 -0
- package/dist/stories/collapsible.stories.d.ts +16 -0
- package/dist/stories/combobox.stories.d.ts +20 -0
- package/dist/stories/command.stories.d.ts +16 -0
- package/dist/stories/date-picker-int.stories.d.ts +16 -0
- package/dist/stories/date-picker.stories.d.ts +17 -0
- package/dist/stories/descriptions.stories.d.ts +16 -0
- package/dist/stories/dialog.stories.d.ts +16 -0
- package/dist/stories/digital-pair-selector.stories.d.ts +16 -0
- package/dist/stories/drawer.stories.d.ts +16 -0
- package/dist/stories/dropdown-menu.stories.d.ts +16 -0
- package/dist/stories/empty.stories.d.ts +16 -0
- package/dist/stories/exchange-select.stories.d.ts +16 -0
- package/dist/stories/file-tree.stories.d.ts +16 -0
- package/dist/stories/file-upload.stories.d.ts +16 -0
- package/dist/stories/form.stories.d.ts +17 -0
- package/dist/stories/hover-card.stories.d.ts +18 -0
- package/dist/stories/inline-completion.stories.d.ts +17 -0
- package/dist/stories/input-otp.stories.d.ts +17 -0
- package/dist/stories/input.stories.d.ts +16 -0
- package/dist/stories/label.stories.d.ts +16 -0
- package/dist/stories/mobile-card-list.stories.d.ts +16 -0
- package/dist/stories/monaco-editor.stories.d.ts +16 -0
- package/dist/stories/pagination.stories.d.ts +16 -0
- package/dist/stories/pair-select.stories.d.ts +16 -0
- package/dist/stories/period-select.stories.d.ts +16 -0
- package/dist/stories/popover.stories.d.ts +16 -0
- package/dist/stories/progress.stories.d.ts +16 -0
- package/dist/stories/radio-group.stories.d.ts +16 -0
- package/dist/stories/segmented.stories.d.ts +16 -0
- package/dist/stories/select.stories.d.ts +16 -0
- package/dist/stories/separator.stories.d.ts +16 -0
- package/dist/stories/sheet.stories.d.ts +16 -0
- package/dist/stories/skeleton.stories.d.ts +16 -0
- package/dist/stories/slider.stories.d.ts +16 -0
- package/dist/stories/sonner.stories.d.ts +17 -0
- package/dist/stories/standard-table.stories.d.ts +18 -0
- package/dist/stories/statistic.stories.d.ts +16 -0
- package/dist/stories/steps.stories.d.ts +16 -0
- package/dist/stories/stream-text.stories.d.ts +17 -0
- package/dist/stories/switch.stories.d.ts +16 -0
- package/dist/stories/table.stories.d.ts +16 -0
- package/dist/stories/tabs.stories.d.ts +24 -0
- package/dist/stories/tag.stories.d.ts +8 -0
- package/dist/stories/textarea.stories.d.ts +16 -0
- package/dist/stories/thinking-loader.stories.d.ts +17 -0
- package/dist/stories/timeline.stories.d.ts +16 -0
- package/dist/stories/tooltip.stories.d.ts +16 -0
- package/package.json +70 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,4869 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createContext as t, createElement as n, forwardRef as r, useContext as i } from "react";
|
|
3
|
+
import { cn as a } from "cn";
|
|
4
|
+
import { Accordion as o, AlertDialog as s, AspectRatio as c, Checkbox as l, Collapsible as u, Dialog as d, DropdownMenu as f, HoverCard as p, Label as m, Popover as h, Progress as g, RadioGroup as _, Select as v, Separator as y, Slider as b, Slot as x, Switch as ee, Tabs as S, Tooltip as C } from "radix-ui";
|
|
5
|
+
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
6
|
+
import { DayPicker as D, getDefaultClassNames as O } from "react-day-picker";
|
|
7
|
+
import { Command as k } from "cmdk";
|
|
8
|
+
import { Controller as A, FormProvider as j, useFormContext as M, useFormState as te } from "react-hook-form";
|
|
9
|
+
import { useTheme as ne } from "next-themes";
|
|
10
|
+
import { Toaster as N, toast as P } from "sonner";
|
|
11
|
+
import { flexRender as F, getCoreRowModel as re, getExpandedRowModel as ie, getFilteredRowModel as I, getPaginationRowModel as L, getSortedRowModel as ae, useReactTable as oe } from "@tanstack/react-table";
|
|
12
|
+
import { Drawer as R } from "vaul";
|
|
13
|
+
import * as se from "react-accessible-tree";
|
|
14
|
+
import { useDropzone as ce } from "react-dropzone";
|
|
15
|
+
import { OTPInput as le, OTPInputContext as ue } from "input-otp";
|
|
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 de = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
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 fe(e, t, n = []) {
|
|
20
|
+
if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
|
|
21
|
+
return {
|
|
22
|
+
name: de(e),
|
|
23
|
+
size: 24,
|
|
24
|
+
node: t,
|
|
25
|
+
...n.length > 0 ? { aliases: n } : {}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
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 pe = (e) => {
|
|
30
|
+
let t = "", n = !1;
|
|
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
|
+
return t;
|
|
33
|
+
}, me = (e) => {
|
|
34
|
+
let t = pe(e);
|
|
35
|
+
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
36
|
+
}, he = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), z = {
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
width: 24,
|
|
39
|
+
height: 24,
|
|
40
|
+
viewBox: "0 0 24 24",
|
|
41
|
+
fill: "none",
|
|
42
|
+
stroke: "currentColor",
|
|
43
|
+
"stroke-width": 2,
|
|
44
|
+
"stroke-linecap": "round",
|
|
45
|
+
"stroke-linejoin": "round"
|
|
46
|
+
};
|
|
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 ge(e) {
|
|
49
|
+
return e != null;
|
|
50
|
+
}
|
|
51
|
+
function _e(e, t = {}) {
|
|
52
|
+
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? z.width, a = e.size ?? e.height ?? z.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 ? he(...c) : he("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? z["stroke-width"]) * Number(e.size ?? e.width ?? z.width) / Number(t.size ?? t.width ?? z.width) : t.strokeWidth ?? z["stroke-width"];
|
|
53
|
+
return [
|
|
54
|
+
"svg",
|
|
55
|
+
{
|
|
56
|
+
...Object.entries(z).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
|
|
57
|
+
..."color" in t && t.color && { [r("stroke")]: t.color },
|
|
58
|
+
..."size" in t && ge(t.size) && {
|
|
59
|
+
[r("width")]: t.size,
|
|
60
|
+
[r("height")]: t.size
|
|
61
|
+
},
|
|
62
|
+
..."width" in t && ge(t.width) && { [r("width")]: t.width },
|
|
63
|
+
..."height" in t && ge(t.height) && { [r("height")]: t.height },
|
|
64
|
+
[r("stroke-width")]: u,
|
|
65
|
+
...l && { [r("class")]: l },
|
|
66
|
+
[r("viewBox")]: `0 0 ${i} ${a}`,
|
|
67
|
+
...t.hasA11yProp === !1 ? { [r("aria-hidden")]: "true" } : {},
|
|
68
|
+
..."attributes" in t && t.attributes
|
|
69
|
+
},
|
|
70
|
+
e.node.map((e) => {
|
|
71
|
+
let [n, i, a] = e, o = t.nonScalingStroke ? {
|
|
72
|
+
[r("vector-effect")]: "non-scaling-stroke",
|
|
73
|
+
...i
|
|
74
|
+
} : i;
|
|
75
|
+
return a ? [
|
|
76
|
+
n,
|
|
77
|
+
o,
|
|
78
|
+
a
|
|
79
|
+
] : [n, o];
|
|
80
|
+
})
|
|
81
|
+
];
|
|
82
|
+
}
|
|
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 ve(e, t = {}) {
|
|
85
|
+
return _e(e, {
|
|
86
|
+
...t,
|
|
87
|
+
attributeNames: {
|
|
88
|
+
...t.attributeNames,
|
|
89
|
+
class: "className",
|
|
90
|
+
"stroke-width": "strokeWidth",
|
|
91
|
+
"stroke-linecap": "strokeLinecap",
|
|
92
|
+
"stroke-linejoin": "strokeLinejoin",
|
|
93
|
+
"vector-effect": "vectorEffect"
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
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 ye = (e) => {
|
|
99
|
+
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
100
|
+
return !1;
|
|
101
|
+
}, be = t({}), xe = () => i(be), Se = r(({ color: e, size: t, width: r, height: i, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
|
|
102
|
+
node: u,
|
|
103
|
+
aliases: [],
|
|
104
|
+
size: 24
|
|
105
|
+
}, ...f }, p) => {
|
|
106
|
+
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = xe() ?? {}, b = !!l || ye(f), [x, ee, S = []] = ve(d, {
|
|
107
|
+
color: e ?? v,
|
|
108
|
+
width: r ?? t ?? m,
|
|
109
|
+
height: i ?? t ?? m,
|
|
110
|
+
strokeWidth: a ?? h,
|
|
111
|
+
absoluteStrokeWidth: o ?? g,
|
|
112
|
+
nonScalingStroke: s ?? _,
|
|
113
|
+
className: he(y, c),
|
|
114
|
+
hasA11yProp: b,
|
|
115
|
+
attributes: f
|
|
116
|
+
});
|
|
117
|
+
return n(x, {
|
|
118
|
+
ref: p,
|
|
119
|
+
...ee
|
|
120
|
+
}, [...S.map(([e, t]) => n(e, t)), ...Array.isArray(l) ? l : [l]]);
|
|
121
|
+
});
|
|
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 B(e, t = [], i = []) {
|
|
124
|
+
let a = typeof e == "string" ? fe(e, t, i) : e, o = r(({ className: e, ...t }, r) => n(Se, {
|
|
125
|
+
ref: r,
|
|
126
|
+
icon: a,
|
|
127
|
+
className: e,
|
|
128
|
+
...t
|
|
129
|
+
}));
|
|
130
|
+
return a.name && (o.displayName = me(a.name)), o;
|
|
131
|
+
}
|
|
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 Ce = {
|
|
134
|
+
name: "arrow-up-down",
|
|
135
|
+
size: 24,
|
|
136
|
+
node: [
|
|
137
|
+
["path", {
|
|
138
|
+
d: "m21 16-4 4-4-4",
|
|
139
|
+
key: "f6ql7i"
|
|
140
|
+
}],
|
|
141
|
+
["path", {
|
|
142
|
+
d: "M17 20V4",
|
|
143
|
+
key: "1ejh1v"
|
|
144
|
+
}],
|
|
145
|
+
["path", {
|
|
146
|
+
d: "m3 8 4-4 4 4",
|
|
147
|
+
key: "11wl7u"
|
|
148
|
+
}],
|
|
149
|
+
["path", {
|
|
150
|
+
d: "M7 4v16",
|
|
151
|
+
key: "1glfcx"
|
|
152
|
+
}]
|
|
153
|
+
]
|
|
154
|
+
};
|
|
155
|
+
Ce.node;
|
|
156
|
+
var we = B(Ce), Te = {
|
|
157
|
+
name: "arrow-up",
|
|
158
|
+
size: 24,
|
|
159
|
+
node: [["path", {
|
|
160
|
+
d: "m5 12 7-7 7 7",
|
|
161
|
+
key: "hav0vg"
|
|
162
|
+
}], ["path", {
|
|
163
|
+
d: "M12 19V5",
|
|
164
|
+
key: "x0mq9r"
|
|
165
|
+
}]]
|
|
166
|
+
};
|
|
167
|
+
Te.node;
|
|
168
|
+
var Ee = B(Te), De = {
|
|
169
|
+
name: "bot",
|
|
170
|
+
size: 24,
|
|
171
|
+
node: [
|
|
172
|
+
["path", {
|
|
173
|
+
d: "M12 8V4H8",
|
|
174
|
+
key: "hb8ula"
|
|
175
|
+
}],
|
|
176
|
+
["rect", {
|
|
177
|
+
width: "16",
|
|
178
|
+
height: "12",
|
|
179
|
+
x: "4",
|
|
180
|
+
y: "8",
|
|
181
|
+
rx: "2",
|
|
182
|
+
key: "enze0r"
|
|
183
|
+
}],
|
|
184
|
+
["path", {
|
|
185
|
+
d: "M2 14h2",
|
|
186
|
+
key: "vft8re"
|
|
187
|
+
}],
|
|
188
|
+
["path", {
|
|
189
|
+
d: "M20 14h2",
|
|
190
|
+
key: "4cs60a"
|
|
191
|
+
}],
|
|
192
|
+
["path", {
|
|
193
|
+
d: "M15 13v2",
|
|
194
|
+
key: "1xurst"
|
|
195
|
+
}],
|
|
196
|
+
["path", {
|
|
197
|
+
d: "M9 13v2",
|
|
198
|
+
key: "rq6x2g"
|
|
199
|
+
}]
|
|
200
|
+
]
|
|
201
|
+
};
|
|
202
|
+
De.node;
|
|
203
|
+
var Oe = B(De), ke = {
|
|
204
|
+
name: "calendar",
|
|
205
|
+
size: 24,
|
|
206
|
+
node: [
|
|
207
|
+
["path", {
|
|
208
|
+
d: "M8 2v3",
|
|
209
|
+
key: "1ioesn"
|
|
210
|
+
}],
|
|
211
|
+
["path", {
|
|
212
|
+
d: "M16 2v3",
|
|
213
|
+
key: "otl347"
|
|
214
|
+
}],
|
|
215
|
+
["rect", {
|
|
216
|
+
x: "3",
|
|
217
|
+
y: "3",
|
|
218
|
+
width: "18",
|
|
219
|
+
height: "18",
|
|
220
|
+
rx: "2",
|
|
221
|
+
key: "h1oib"
|
|
222
|
+
}],
|
|
223
|
+
["path", {
|
|
224
|
+
d: "M3 9h18",
|
|
225
|
+
key: "1pudct"
|
|
226
|
+
}]
|
|
227
|
+
]
|
|
228
|
+
};
|
|
229
|
+
ke.node;
|
|
230
|
+
var Ae = B(ke), je = {
|
|
231
|
+
name: "check",
|
|
232
|
+
size: 24,
|
|
233
|
+
node: [["path", {
|
|
234
|
+
d: "M20 6 9 17l-5-5",
|
|
235
|
+
key: "1gmf2c"
|
|
236
|
+
}]]
|
|
237
|
+
};
|
|
238
|
+
je.node;
|
|
239
|
+
var Me = B(je), Ne = {
|
|
240
|
+
name: "chevron-down",
|
|
241
|
+
size: 24,
|
|
242
|
+
node: [["path", {
|
|
243
|
+
d: "m6 9 6 6 6-6",
|
|
244
|
+
key: "qrunsl"
|
|
245
|
+
}]]
|
|
246
|
+
};
|
|
247
|
+
Ne.node;
|
|
248
|
+
var Pe = B(Ne), Fe = {
|
|
249
|
+
name: "chevron-left",
|
|
250
|
+
size: 24,
|
|
251
|
+
node: [["path", {
|
|
252
|
+
d: "m15 18-6-6 6-6",
|
|
253
|
+
key: "1wnfg3"
|
|
254
|
+
}]]
|
|
255
|
+
};
|
|
256
|
+
Fe.node;
|
|
257
|
+
var Ie = B(Fe), Le = {
|
|
258
|
+
name: "chevron-right",
|
|
259
|
+
size: 24,
|
|
260
|
+
node: [["path", {
|
|
261
|
+
d: "m9 18 6-6-6-6",
|
|
262
|
+
key: "mthhwq"
|
|
263
|
+
}]]
|
|
264
|
+
};
|
|
265
|
+
Le.node;
|
|
266
|
+
var Re = B(Le), ze = {
|
|
267
|
+
name: "chevron-up",
|
|
268
|
+
size: 24,
|
|
269
|
+
node: [["path", {
|
|
270
|
+
d: "m18 15-6-6-6 6",
|
|
271
|
+
key: "153udz"
|
|
272
|
+
}]]
|
|
273
|
+
};
|
|
274
|
+
ze.node;
|
|
275
|
+
var Be = B(ze), Ve = {
|
|
276
|
+
name: "chevrons-up-down",
|
|
277
|
+
size: 24,
|
|
278
|
+
node: [["path", {
|
|
279
|
+
d: "m7 15 5 5 5-5",
|
|
280
|
+
key: "1hf1tw"
|
|
281
|
+
}], ["path", {
|
|
282
|
+
d: "m7 9 5-5 5 5",
|
|
283
|
+
key: "sgt6xg"
|
|
284
|
+
}]]
|
|
285
|
+
};
|
|
286
|
+
Ve.node;
|
|
287
|
+
var He = B(Ve), Ue = {
|
|
288
|
+
name: "circle-check",
|
|
289
|
+
size: 24,
|
|
290
|
+
node: [["circle", {
|
|
291
|
+
cx: "12",
|
|
292
|
+
cy: "12",
|
|
293
|
+
r: "10",
|
|
294
|
+
key: "1mglay"
|
|
295
|
+
}], ["path", {
|
|
296
|
+
d: "m16 9-5.5 5.5L8 12",
|
|
297
|
+
key: "xofnsj"
|
|
298
|
+
}]],
|
|
299
|
+
aliases: ["check-circle-2"]
|
|
300
|
+
};
|
|
301
|
+
Ue.node;
|
|
302
|
+
var We = B(Ue), Ge = {
|
|
303
|
+
name: "circle",
|
|
304
|
+
size: 24,
|
|
305
|
+
node: [["circle", {
|
|
306
|
+
cx: "12",
|
|
307
|
+
cy: "12",
|
|
308
|
+
r: "10",
|
|
309
|
+
key: "1mglay"
|
|
310
|
+
}]]
|
|
311
|
+
};
|
|
312
|
+
Ge.node;
|
|
313
|
+
var Ke = B(Ge), qe = {
|
|
314
|
+
name: "cloud-upload",
|
|
315
|
+
size: 24,
|
|
316
|
+
node: [
|
|
317
|
+
["path", {
|
|
318
|
+
d: "M12 13v8",
|
|
319
|
+
key: "1l5pq0"
|
|
320
|
+
}],
|
|
321
|
+
["path", {
|
|
322
|
+
d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",
|
|
323
|
+
key: "1pljnt"
|
|
324
|
+
}],
|
|
325
|
+
["path", {
|
|
326
|
+
d: "m8 17 4-4 4 4",
|
|
327
|
+
key: "1quai1"
|
|
328
|
+
}]
|
|
329
|
+
],
|
|
330
|
+
aliases: ["upload-cloud"]
|
|
331
|
+
};
|
|
332
|
+
qe.node;
|
|
333
|
+
var Je = B(qe), Ye = {
|
|
334
|
+
name: "ellipsis",
|
|
335
|
+
size: 24,
|
|
336
|
+
node: [
|
|
337
|
+
["circle", {
|
|
338
|
+
cx: "12",
|
|
339
|
+
cy: "12",
|
|
340
|
+
r: "1",
|
|
341
|
+
key: "41hilf"
|
|
342
|
+
}],
|
|
343
|
+
["circle", {
|
|
344
|
+
cx: "19",
|
|
345
|
+
cy: "12",
|
|
346
|
+
r: "1",
|
|
347
|
+
key: "1wjl8i"
|
|
348
|
+
}],
|
|
349
|
+
["circle", {
|
|
350
|
+
cx: "5",
|
|
351
|
+
cy: "12",
|
|
352
|
+
r: "1",
|
|
353
|
+
key: "1pcz8c"
|
|
354
|
+
}]
|
|
355
|
+
],
|
|
356
|
+
aliases: ["more-horizontal"]
|
|
357
|
+
};
|
|
358
|
+
Ye.node;
|
|
359
|
+
var Xe = B(Ye), Ze = {
|
|
360
|
+
name: "eye",
|
|
361
|
+
size: 24,
|
|
362
|
+
node: [["path", {
|
|
363
|
+
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
364
|
+
key: "1nclc0"
|
|
365
|
+
}], ["circle", {
|
|
366
|
+
cx: "12",
|
|
367
|
+
cy: "12",
|
|
368
|
+
r: "3",
|
|
369
|
+
key: "1v7zrd"
|
|
370
|
+
}]]
|
|
371
|
+
};
|
|
372
|
+
Ze.node;
|
|
373
|
+
var Qe = B(Ze), $e = {
|
|
374
|
+
name: "file",
|
|
375
|
+
size: 24,
|
|
376
|
+
node: [["path", {
|
|
377
|
+
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
378
|
+
key: "1oefj6"
|
|
379
|
+
}], ["path", {
|
|
380
|
+
d: "M14 2v5a1 1 0 0 0 1 1h5",
|
|
381
|
+
key: "wfsgrz"
|
|
382
|
+
}]]
|
|
383
|
+
};
|
|
384
|
+
$e.node;
|
|
385
|
+
var et = B($e), tt = {
|
|
386
|
+
name: "folder",
|
|
387
|
+
size: 24,
|
|
388
|
+
node: [["path", {
|
|
389
|
+
d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
|
|
390
|
+
key: "1kt360"
|
|
391
|
+
}]]
|
|
392
|
+
};
|
|
393
|
+
tt.node;
|
|
394
|
+
var nt = B(tt), rt = {
|
|
395
|
+
name: "inbox",
|
|
396
|
+
size: 24,
|
|
397
|
+
node: [["polyline", {
|
|
398
|
+
points: "22 12 16 12 14 15 10 15 8 12 2 12",
|
|
399
|
+
key: "o97t9d"
|
|
400
|
+
}], ["path", {
|
|
401
|
+
d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",
|
|
402
|
+
key: "oot6mr"
|
|
403
|
+
}]]
|
|
404
|
+
};
|
|
405
|
+
rt.node;
|
|
406
|
+
var it = B(rt), at = {
|
|
407
|
+
name: "info",
|
|
408
|
+
size: 24,
|
|
409
|
+
node: [
|
|
410
|
+
["circle", {
|
|
411
|
+
cx: "12",
|
|
412
|
+
cy: "12",
|
|
413
|
+
r: "10",
|
|
414
|
+
key: "1mglay"
|
|
415
|
+
}],
|
|
416
|
+
["path", {
|
|
417
|
+
d: "M12 16v-4",
|
|
418
|
+
key: "1dtifu"
|
|
419
|
+
}],
|
|
420
|
+
["path", {
|
|
421
|
+
d: "M12 8h.01",
|
|
422
|
+
key: "e9boi3"
|
|
423
|
+
}]
|
|
424
|
+
]
|
|
425
|
+
};
|
|
426
|
+
at.node;
|
|
427
|
+
var ot = B(at), st = {
|
|
428
|
+
name: "loader-circle",
|
|
429
|
+
size: 24,
|
|
430
|
+
node: [["path", {
|
|
431
|
+
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
432
|
+
key: "13zald"
|
|
433
|
+
}]],
|
|
434
|
+
aliases: ["loader-2"]
|
|
435
|
+
};
|
|
436
|
+
st.node;
|
|
437
|
+
var V = B(st), ct = {
|
|
438
|
+
name: "minus",
|
|
439
|
+
size: 24,
|
|
440
|
+
node: [["path", {
|
|
441
|
+
d: "M5 12h14",
|
|
442
|
+
key: "1ays0h"
|
|
443
|
+
}]]
|
|
444
|
+
};
|
|
445
|
+
ct.node;
|
|
446
|
+
var lt = B(ct), ut = {
|
|
447
|
+
name: "octagon-x",
|
|
448
|
+
size: 24,
|
|
449
|
+
node: [
|
|
450
|
+
["path", {
|
|
451
|
+
d: "m15 9-6 6",
|
|
452
|
+
key: "1uzhvr"
|
|
453
|
+
}],
|
|
454
|
+
["path", {
|
|
455
|
+
d: "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",
|
|
456
|
+
key: "2d38gg"
|
|
457
|
+
}],
|
|
458
|
+
["path", {
|
|
459
|
+
d: "m9 9 6 6",
|
|
460
|
+
key: "z0biqf"
|
|
461
|
+
}]
|
|
462
|
+
],
|
|
463
|
+
aliases: ["x-octagon"]
|
|
464
|
+
};
|
|
465
|
+
ut.node;
|
|
466
|
+
var dt = B(ut), ft = {
|
|
467
|
+
name: "search",
|
|
468
|
+
size: 24,
|
|
469
|
+
node: [["path", {
|
|
470
|
+
d: "m21 21-4.34-4.34",
|
|
471
|
+
key: "14j7rj"
|
|
472
|
+
}], ["circle", {
|
|
473
|
+
cx: "11",
|
|
474
|
+
cy: "11",
|
|
475
|
+
r: "8",
|
|
476
|
+
key: "4ej97u"
|
|
477
|
+
}]]
|
|
478
|
+
};
|
|
479
|
+
ft.node;
|
|
480
|
+
var pt = B(ft), mt = {
|
|
481
|
+
name: "square",
|
|
482
|
+
size: 24,
|
|
483
|
+
node: [["rect", {
|
|
484
|
+
width: "18",
|
|
485
|
+
height: "18",
|
|
486
|
+
x: "3",
|
|
487
|
+
y: "3",
|
|
488
|
+
rx: "2",
|
|
489
|
+
key: "afitv7"
|
|
490
|
+
}]]
|
|
491
|
+
};
|
|
492
|
+
mt.node;
|
|
493
|
+
var ht = B(mt), gt = {
|
|
494
|
+
name: "trash",
|
|
495
|
+
size: 24,
|
|
496
|
+
node: [
|
|
497
|
+
["path", {
|
|
498
|
+
d: "M10 11v6",
|
|
499
|
+
key: "nco0om"
|
|
500
|
+
}],
|
|
501
|
+
["path", {
|
|
502
|
+
d: "M14 11v6",
|
|
503
|
+
key: "outv1u"
|
|
504
|
+
}],
|
|
505
|
+
["path", {
|
|
506
|
+
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",
|
|
507
|
+
key: "miytrc"
|
|
508
|
+
}],
|
|
509
|
+
["path", {
|
|
510
|
+
d: "M3 6h18",
|
|
511
|
+
key: "d0wm0j"
|
|
512
|
+
}],
|
|
513
|
+
["path", {
|
|
514
|
+
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
515
|
+
key: "e791ji"
|
|
516
|
+
}]
|
|
517
|
+
],
|
|
518
|
+
aliases: ["trash-2"]
|
|
519
|
+
};
|
|
520
|
+
gt.node;
|
|
521
|
+
var _t = B(gt), vt = {
|
|
522
|
+
name: "trending-down",
|
|
523
|
+
size: 24,
|
|
524
|
+
node: [["path", {
|
|
525
|
+
d: "M16 17h6v-6",
|
|
526
|
+
key: "t6n2it"
|
|
527
|
+
}], ["path", {
|
|
528
|
+
d: "m22 17-8.5-8.5-5 5L2 7",
|
|
529
|
+
key: "x473p"
|
|
530
|
+
}]]
|
|
531
|
+
};
|
|
532
|
+
vt.node;
|
|
533
|
+
var yt = B(vt), bt = {
|
|
534
|
+
name: "trending-up",
|
|
535
|
+
size: 24,
|
|
536
|
+
node: [["path", {
|
|
537
|
+
d: "M16 7h6v6",
|
|
538
|
+
key: "box55l"
|
|
539
|
+
}], ["path", {
|
|
540
|
+
d: "m22 7-8.5 8.5-5-5L2 17",
|
|
541
|
+
key: "1t1m79"
|
|
542
|
+
}]]
|
|
543
|
+
};
|
|
544
|
+
bt.node;
|
|
545
|
+
var xt = B(bt), St = {
|
|
546
|
+
name: "triangle-alert",
|
|
547
|
+
size: 24,
|
|
548
|
+
node: [
|
|
549
|
+
["path", {
|
|
550
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
551
|
+
key: "wmoenq"
|
|
552
|
+
}],
|
|
553
|
+
["path", {
|
|
554
|
+
d: "M12 9v4",
|
|
555
|
+
key: "juzpu7"
|
|
556
|
+
}],
|
|
557
|
+
["path", {
|
|
558
|
+
d: "M12 17h.01",
|
|
559
|
+
key: "p32p05"
|
|
560
|
+
}]
|
|
561
|
+
],
|
|
562
|
+
aliases: ["alert-triangle"]
|
|
563
|
+
};
|
|
564
|
+
St.node;
|
|
565
|
+
var Ct = B(St), wt = {
|
|
566
|
+
name: "user",
|
|
567
|
+
size: 24,
|
|
568
|
+
node: [["path", {
|
|
569
|
+
d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",
|
|
570
|
+
key: "975kel"
|
|
571
|
+
}], ["circle", {
|
|
572
|
+
cx: "12",
|
|
573
|
+
cy: "7",
|
|
574
|
+
r: "4",
|
|
575
|
+
key: "17ys0d"
|
|
576
|
+
}]]
|
|
577
|
+
};
|
|
578
|
+
wt.node;
|
|
579
|
+
var Tt = B(wt), Et = {
|
|
580
|
+
name: "wrench",
|
|
581
|
+
size: 24,
|
|
582
|
+
node: [["path", {
|
|
583
|
+
d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
|
|
584
|
+
key: "1ngwbx"
|
|
585
|
+
}]]
|
|
586
|
+
};
|
|
587
|
+
Et.node;
|
|
588
|
+
var Dt = B(Et), Ot = {
|
|
589
|
+
name: "x",
|
|
590
|
+
size: 24,
|
|
591
|
+
node: [["path", {
|
|
592
|
+
d: "M18 6 6 18",
|
|
593
|
+
key: "1bl5f8"
|
|
594
|
+
}], ["path", {
|
|
595
|
+
d: "m6 6 12 12",
|
|
596
|
+
key: "d8bk6v"
|
|
597
|
+
}]]
|
|
598
|
+
};
|
|
599
|
+
Ot.node;
|
|
600
|
+
var kt = B(Ot);
|
|
601
|
+
// src/components/ui/accordion.tsx
|
|
602
|
+
function At({ ...e }) {
|
|
603
|
+
return /* @__PURE__ */ T(o.Root, {
|
|
604
|
+
"data-slot": "accordion",
|
|
605
|
+
...e
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
function jt({ className: e, ...t }) {
|
|
609
|
+
return /* @__PURE__ */ T(o.Item, {
|
|
610
|
+
"data-slot": "accordion-item",
|
|
611
|
+
className: a("border-b last:border-b-0", e),
|
|
612
|
+
...t
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
function Mt({ className: e, children: t, ...n }) {
|
|
616
|
+
return /* @__PURE__ */ T(o.Header, {
|
|
617
|
+
className: "flex",
|
|
618
|
+
children: /* @__PURE__ */ E(o.Trigger, {
|
|
619
|
+
"data-slot": "accordion-trigger",
|
|
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
|
+
...n,
|
|
622
|
+
children: [t, /* @__PURE__ */ T(Pe, { className: "pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200" })]
|
|
623
|
+
})
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
function Nt({ className: e, children: t, ...n }) {
|
|
627
|
+
return /* @__PURE__ */ T(o.Content, {
|
|
628
|
+
"data-slot": "accordion-content",
|
|
629
|
+
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
630
|
+
...n,
|
|
631
|
+
children: /* @__PURE__ */ T("div", {
|
|
632
|
+
className: a("pt-0 pb-4", e),
|
|
633
|
+
children: t
|
|
634
|
+
})
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
// node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
638
|
+
function Pt(e) {
|
|
639
|
+
var t, n, r = "";
|
|
640
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
641
|
+
else if (typeof e == "object") {
|
|
642
|
+
if (Array.isArray(e)) {
|
|
643
|
+
var i = e.length;
|
|
644
|
+
for (t = 0; t < i; t++) e[t] && (n = Pt(e[t])) && (r && (r += " "), r += n);
|
|
645
|
+
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
646
|
+
}
|
|
647
|
+
return r;
|
|
648
|
+
}
|
|
649
|
+
function Ft() {
|
|
650
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Pt(e)) && (r && (r += " "), r += t);
|
|
651
|
+
return r;
|
|
652
|
+
}
|
|
653
|
+
// node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
654
|
+
var It = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Lt = Ft, Rt = (e, t) => (n) => {
|
|
655
|
+
if (t?.variants == null) return Lt(e, n?.class, n?.className);
|
|
656
|
+
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
657
|
+
let t = n?.[e], a = i?.[e];
|
|
658
|
+
if (t === null) return null;
|
|
659
|
+
let o = It(t) || It(a);
|
|
660
|
+
return r[e][o];
|
|
661
|
+
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
662
|
+
let [n, r] = t;
|
|
663
|
+
return r === void 0 || (e[n] = r), e;
|
|
664
|
+
}, {});
|
|
665
|
+
return Lt(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
666
|
+
let { class: n, className: r, ...a } = t;
|
|
667
|
+
return Object.entries(a).every((e) => {
|
|
668
|
+
let [t, n] = e;
|
|
669
|
+
return Array.isArray(n) ? n.includes({
|
|
670
|
+
...i,
|
|
671
|
+
...o
|
|
672
|
+
}[t]) : {
|
|
673
|
+
...i,
|
|
674
|
+
...o
|
|
675
|
+
}[t] === n;
|
|
676
|
+
}) ? [
|
|
677
|
+
...e,
|
|
678
|
+
n,
|
|
679
|
+
r
|
|
680
|
+
] : e;
|
|
681
|
+
}, []), n?.class, n?.className);
|
|
682
|
+
}, zt = Rt("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
|
|
683
|
+
variants: { variant: {
|
|
684
|
+
default: "bg-card text-card-foreground",
|
|
685
|
+
destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"
|
|
686
|
+
} },
|
|
687
|
+
defaultVariants: { variant: "default" }
|
|
688
|
+
});
|
|
689
|
+
function Bt({ className: e, variant: t, ...n }) {
|
|
690
|
+
return /* @__PURE__ */ T("div", {
|
|
691
|
+
"data-slot": "alert",
|
|
692
|
+
role: "alert",
|
|
693
|
+
className: a(zt({ variant: t }), e),
|
|
694
|
+
...n
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
function Vt({ className: e, ...t }) {
|
|
698
|
+
return /* @__PURE__ */ T("div", {
|
|
699
|
+
"data-slot": "alert-title",
|
|
700
|
+
className: a("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", e),
|
|
701
|
+
...t
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
function Ht({ className: e, ...t }) {
|
|
705
|
+
return /* @__PURE__ */ T("div", {
|
|
706
|
+
"data-slot": "alert-description",
|
|
707
|
+
className: a("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed", e),
|
|
708
|
+
...t
|
|
709
|
+
});
|
|
710
|
+
}
|
|
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", {
|
|
713
|
+
variants: {
|
|
714
|
+
variant: {
|
|
715
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
716
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
|
|
717
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
|
|
718
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
719
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
720
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
721
|
+
},
|
|
722
|
+
size: {
|
|
723
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
724
|
+
xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
725
|
+
sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
|
|
726
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
727
|
+
icon: "size-9",
|
|
728
|
+
"icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
|
|
729
|
+
"icon-sm": "size-8",
|
|
730
|
+
"icon-lg": "size-10"
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
defaultVariants: {
|
|
734
|
+
variant: "default",
|
|
735
|
+
size: "default"
|
|
736
|
+
}
|
|
737
|
+
});
|
|
738
|
+
function H({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }) {
|
|
739
|
+
let o = r ? x.Root : "button";
|
|
740
|
+
return /* @__PURE__ */ T(o, {
|
|
741
|
+
"data-slot": "button",
|
|
742
|
+
"data-variant": t,
|
|
743
|
+
"data-size": n,
|
|
744
|
+
className: a(Ut({
|
|
745
|
+
variant: t,
|
|
746
|
+
size: n,
|
|
747
|
+
className: e
|
|
748
|
+
})),
|
|
749
|
+
...i
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
// src/components/ui/alert-dialog.tsx
|
|
753
|
+
function Wt({ ...e }) {
|
|
754
|
+
return /* @__PURE__ */ T(s.Root, {
|
|
755
|
+
"data-slot": "alert-dialog",
|
|
756
|
+
...e
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
function Gt({ ...e }) {
|
|
760
|
+
return /* @__PURE__ */ T(s.Trigger, {
|
|
761
|
+
"data-slot": "alert-dialog-trigger",
|
|
762
|
+
...e
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
function Kt({ ...e }) {
|
|
766
|
+
return /* @__PURE__ */ T(s.Portal, {
|
|
767
|
+
"data-slot": "alert-dialog-portal",
|
|
768
|
+
...e
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
function qt({ className: e, ...t }) {
|
|
772
|
+
return /* @__PURE__ */ T(s.Overlay, {
|
|
773
|
+
"data-slot": "alert-dialog-overlay",
|
|
774
|
+
className: a("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", e),
|
|
775
|
+
...t
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
function Jt({ className: e, size: t = "default", ...n }) {
|
|
779
|
+
return /* @__PURE__ */ E(Kt, { children: [/* @__PURE__ */ T(qt, {}), /* @__PURE__ */ T(s.Content, {
|
|
780
|
+
"data-slot": "alert-dialog-content",
|
|
781
|
+
"data-size": t,
|
|
782
|
+
className: a("group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[size=default]:sm:max-w-lg", e),
|
|
783
|
+
...n
|
|
784
|
+
})] });
|
|
785
|
+
}
|
|
786
|
+
function Yt({ className: e, ...t }) {
|
|
787
|
+
return /* @__PURE__ */ T("div", {
|
|
788
|
+
"data-slot": "alert-dialog-header",
|
|
789
|
+
className: a("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", e),
|
|
790
|
+
...t
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
function Xt({ className: e, ...t }) {
|
|
794
|
+
return /* @__PURE__ */ T("div", {
|
|
795
|
+
"data-slot": "alert-dialog-footer",
|
|
796
|
+
className: a("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
|
|
797
|
+
...t
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
function Zt({ className: e, ...t }) {
|
|
801
|
+
return /* @__PURE__ */ T(s.Title, {
|
|
802
|
+
"data-slot": "alert-dialog-title",
|
|
803
|
+
className: a("text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
|
|
804
|
+
...t
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
function Qt({ className: e, ...t }) {
|
|
808
|
+
return /* @__PURE__ */ T(s.Description, {
|
|
809
|
+
"data-slot": "alert-dialog-description",
|
|
810
|
+
className: a("text-sm text-muted-foreground", e),
|
|
811
|
+
...t
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
function $t({ className: e, ...t }) {
|
|
815
|
+
return /* @__PURE__ */ T("div", {
|
|
816
|
+
"data-slot": "alert-dialog-media",
|
|
817
|
+
className: a("mb-2 inline-flex size-16 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8", e),
|
|
818
|
+
...t
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
function en({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
822
|
+
return /* @__PURE__ */ T(H, {
|
|
823
|
+
variant: t,
|
|
824
|
+
size: n,
|
|
825
|
+
asChild: !0,
|
|
826
|
+
children: /* @__PURE__ */ T(s.Action, {
|
|
827
|
+
"data-slot": "alert-dialog-action",
|
|
828
|
+
className: a(e),
|
|
829
|
+
...r
|
|
830
|
+
})
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
function tn({ className: e, variant: t = "outline", size: n = "default", ...r }) {
|
|
834
|
+
return /* @__PURE__ */ T(H, {
|
|
835
|
+
variant: t,
|
|
836
|
+
size: n,
|
|
837
|
+
asChild: !0,
|
|
838
|
+
children: /* @__PURE__ */ T(s.Cancel, {
|
|
839
|
+
"data-slot": "alert-dialog-cancel",
|
|
840
|
+
className: a(e),
|
|
841
|
+
...r
|
|
842
|
+
})
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
// src/components/ui/badge.tsx
|
|
846
|
+
var nn = Rt("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3", {
|
|
847
|
+
variants: { variant: {
|
|
848
|
+
default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
849
|
+
secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
850
|
+
destructive: "bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",
|
|
851
|
+
outline: "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
852
|
+
ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
853
|
+
link: "text-primary underline-offset-4 [a&]:hover:underline"
|
|
854
|
+
} },
|
|
855
|
+
defaultVariants: { variant: "default" }
|
|
856
|
+
});
|
|
857
|
+
function rn({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
858
|
+
let i = n ? x.Root : "span";
|
|
859
|
+
return /* @__PURE__ */ T(i, {
|
|
860
|
+
"data-slot": "badge",
|
|
861
|
+
"data-variant": t,
|
|
862
|
+
className: a(nn({ variant: t }), e),
|
|
863
|
+
...r
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
// src/components/ui/calendar.tsx
|
|
867
|
+
function an({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", formatters: o, components: s, ...c }) {
|
|
868
|
+
let l = O();
|
|
869
|
+
return /* @__PURE__ */ T(D, {
|
|
870
|
+
showOutsideDays: n,
|
|
871
|
+
className: a("group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
|
|
872
|
+
captionLayout: r,
|
|
873
|
+
formatters: {
|
|
874
|
+
formatMonthDropdown: (e) => e.toLocaleString("default", { month: "short" }),
|
|
875
|
+
...o
|
|
876
|
+
},
|
|
877
|
+
classNames: {
|
|
878
|
+
root: a("w-fit", l.root),
|
|
879
|
+
months: a("relative flex flex-col gap-4 md:flex-row", l.months),
|
|
880
|
+
month: a("flex w-full flex-col gap-4", l.month),
|
|
881
|
+
nav: a("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", l.nav),
|
|
882
|
+
button_previous: a(Ut({ variant: i }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", l.button_previous),
|
|
883
|
+
button_next: a(Ut({ variant: i }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", l.button_next),
|
|
884
|
+
month_caption: a("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", l.month_caption),
|
|
885
|
+
dropdowns: a("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", l.dropdowns),
|
|
886
|
+
dropdown_root: a("relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50", l.dropdown_root),
|
|
887
|
+
dropdown: a("absolute inset-0 bg-popover opacity-0", l.dropdown),
|
|
888
|
+
caption_label: a("font-medium select-none", r === "label" ? "text-sm" : "flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground", l.caption_label),
|
|
889
|
+
month_grid: a("w-full border-collapse", l.month_grid),
|
|
890
|
+
weekdays: a("flex", l.weekdays),
|
|
891
|
+
weekday: a("flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none", l.weekday),
|
|
892
|
+
week: a("mt-2 flex w-full", l.week),
|
|
893
|
+
week_number_header: a("w-(--cell-size) select-none", l.week_number_header),
|
|
894
|
+
week_number: a("text-[0.8rem] text-muted-foreground select-none", l.week_number),
|
|
895
|
+
day: a("group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md", c.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md", l.day),
|
|
896
|
+
range_start: a("rounded-l-md bg-accent", l.range_start),
|
|
897
|
+
range_middle: a("rounded-none", l.range_middle),
|
|
898
|
+
range_end: a("rounded-r-md bg-accent", l.range_end),
|
|
899
|
+
today: a("rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none", l.today),
|
|
900
|
+
outside: a("text-muted-foreground aria-selected:text-muted-foreground", l.outside),
|
|
901
|
+
disabled: a("text-muted-foreground opacity-50", l.disabled),
|
|
902
|
+
hidden: a("invisible", l.hidden),
|
|
903
|
+
...t
|
|
904
|
+
},
|
|
905
|
+
components: {
|
|
906
|
+
Root: ({ className: e, rootRef: t, ...n }) => /* @__PURE__ */ T("div", {
|
|
907
|
+
"data-slot": "calendar",
|
|
908
|
+
ref: t,
|
|
909
|
+
className: a(e),
|
|
910
|
+
...n
|
|
911
|
+
}),
|
|
912
|
+
Chevron: ({ className: e, orientation: t, ...n }) => T(t === "left" ? Ie : t === "right" ? Re : Pe, {
|
|
913
|
+
className: a("size-4", e),
|
|
914
|
+
...n
|
|
915
|
+
}),
|
|
916
|
+
DayButton: on,
|
|
917
|
+
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ T("td", {
|
|
918
|
+
...t,
|
|
919
|
+
children: /* @__PURE__ */ T("div", {
|
|
920
|
+
className: "flex size-(--cell-size) items-center justify-center text-center",
|
|
921
|
+
children: e
|
|
922
|
+
})
|
|
923
|
+
}),
|
|
924
|
+
...s
|
|
925
|
+
},
|
|
926
|
+
...c
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
function on({ className: t, day: n, modifiers: r, ...i }) {
|
|
930
|
+
let o = O(), s = e.useRef(null);
|
|
931
|
+
return e.useEffect(() => {
|
|
932
|
+
r.focused && s.current?.focus();
|
|
933
|
+
}, [r.focused]), /* @__PURE__ */ T(H, {
|
|
934
|
+
ref: s,
|
|
935
|
+
variant: "ghost",
|
|
936
|
+
size: "icon",
|
|
937
|
+
"data-day": n.date.toLocaleDateString(),
|
|
938
|
+
"data-selected-single": r.selected && !r.range_start && !r.range_end && !r.range_middle,
|
|
939
|
+
"data-range-start": r.range_start,
|
|
940
|
+
"data-range-end": r.range_end,
|
|
941
|
+
"data-range-middle": r.range_middle,
|
|
942
|
+
className: a("flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70", o.day, t),
|
|
943
|
+
...i
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
// src/components/ui/card.tsx
|
|
947
|
+
function sn({ className: e, ...t }) {
|
|
948
|
+
return /* @__PURE__ */ T("div", {
|
|
949
|
+
"data-slot": "card",
|
|
950
|
+
className: a("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm", e),
|
|
951
|
+
...t
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
function cn({ className: e, ...t }) {
|
|
955
|
+
return /* @__PURE__ */ T("div", {
|
|
956
|
+
"data-slot": "card-header",
|
|
957
|
+
className: a("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", e),
|
|
958
|
+
...t
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
function ln({ className: e, ...t }) {
|
|
962
|
+
return /* @__PURE__ */ T("div", {
|
|
963
|
+
"data-slot": "card-title",
|
|
964
|
+
className: a("leading-none font-semibold", e),
|
|
965
|
+
...t
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
function un({ className: e, ...t }) {
|
|
969
|
+
return /* @__PURE__ */ T("div", {
|
|
970
|
+
"data-slot": "card-description",
|
|
971
|
+
className: a("text-sm text-muted-foreground", e),
|
|
972
|
+
...t
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
function dn({ className: e, ...t }) {
|
|
976
|
+
return /* @__PURE__ */ T("div", {
|
|
977
|
+
"data-slot": "card-action",
|
|
978
|
+
className: a("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
979
|
+
...t
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
function fn({ className: e, ...t }) {
|
|
983
|
+
return /* @__PURE__ */ T("div", {
|
|
984
|
+
"data-slot": "card-content",
|
|
985
|
+
className: a("px-6", e),
|
|
986
|
+
...t
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
function pn({ className: e, ...t }) {
|
|
990
|
+
return /* @__PURE__ */ T("div", {
|
|
991
|
+
"data-slot": "card-footer",
|
|
992
|
+
className: a("flex items-center px-6 [.border-t]:pt-6", e),
|
|
993
|
+
...t
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
// src/components/ui/checkbox.tsx
|
|
997
|
+
function mn({ className: e, ...t }) {
|
|
998
|
+
return /* @__PURE__ */ T(l.Root, {
|
|
999
|
+
"data-slot": "checkbox",
|
|
1000
|
+
className: a("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-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-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary", e),
|
|
1001
|
+
...t,
|
|
1002
|
+
children: /* @__PURE__ */ T(l.Indicator, {
|
|
1003
|
+
"data-slot": "checkbox-indicator",
|
|
1004
|
+
className: "grid place-content-center text-current transition-none",
|
|
1005
|
+
children: /* @__PURE__ */ T(Me, { className: "size-3.5" })
|
|
1006
|
+
})
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
// src/components/ui/collapsible.tsx
|
|
1010
|
+
function hn({ ...e }) {
|
|
1011
|
+
return /* @__PURE__ */ T(u.Root, {
|
|
1012
|
+
"data-slot": "collapsible",
|
|
1013
|
+
...e
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
function gn({ ...e }) {
|
|
1017
|
+
return /* @__PURE__ */ T(u.CollapsibleTrigger, {
|
|
1018
|
+
"data-slot": "collapsible-trigger",
|
|
1019
|
+
...e
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
function _n({ ...e }) {
|
|
1023
|
+
return /* @__PURE__ */ T(u.CollapsibleContent, {
|
|
1024
|
+
"data-slot": "collapsible-content",
|
|
1025
|
+
...e
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
// src/components/ui/dialog.tsx
|
|
1029
|
+
function vn({ ...e }) {
|
|
1030
|
+
return /* @__PURE__ */ T(d.Root, {
|
|
1031
|
+
"data-slot": "dialog",
|
|
1032
|
+
...e
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
function yn({ ...e }) {
|
|
1036
|
+
return /* @__PURE__ */ T(d.Trigger, {
|
|
1037
|
+
"data-slot": "dialog-trigger",
|
|
1038
|
+
...e
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
function bn({ ...e }) {
|
|
1042
|
+
return /* @__PURE__ */ T(d.Portal, {
|
|
1043
|
+
"data-slot": "dialog-portal",
|
|
1044
|
+
...e
|
|
1045
|
+
});
|
|
1046
|
+
}
|
|
1047
|
+
function xn({ ...e }) {
|
|
1048
|
+
return /* @__PURE__ */ T(d.Close, {
|
|
1049
|
+
"data-slot": "dialog-close",
|
|
1050
|
+
...e
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
function Sn({ className: e, ...t }) {
|
|
1054
|
+
return /* @__PURE__ */ T(d.Overlay, {
|
|
1055
|
+
"data-slot": "dialog-overlay",
|
|
1056
|
+
className: a("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", e),
|
|
1057
|
+
...t
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
function Cn({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
1061
|
+
return /* @__PURE__ */ E(bn, {
|
|
1062
|
+
"data-slot": "dialog-portal",
|
|
1063
|
+
children: [/* @__PURE__ */ T(Sn, {}), /* @__PURE__ */ E(d.Content, {
|
|
1064
|
+
"data-slot": "dialog-content",
|
|
1065
|
+
className: a("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg", e),
|
|
1066
|
+
...r,
|
|
1067
|
+
children: [t, n && /* @__PURE__ */ E(d.Close, {
|
|
1068
|
+
"data-slot": "dialog-close",
|
|
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(kt, {}), /* @__PURE__ */ T("span", {
|
|
1071
|
+
className: "sr-only",
|
|
1072
|
+
children: "Close"
|
|
1073
|
+
})]
|
|
1074
|
+
})]
|
|
1075
|
+
})]
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
function wn({ className: e, ...t }) {
|
|
1079
|
+
return /* @__PURE__ */ T("div", {
|
|
1080
|
+
"data-slot": "dialog-header",
|
|
1081
|
+
className: a("flex flex-col gap-2 text-center sm:text-left", e),
|
|
1082
|
+
...t
|
|
1083
|
+
});
|
|
1084
|
+
}
|
|
1085
|
+
function Tn({ className: e, showCloseButton: t = !1, children: n, ...r }) {
|
|
1086
|
+
return /* @__PURE__ */ E("div", {
|
|
1087
|
+
"data-slot": "dialog-footer",
|
|
1088
|
+
className: a("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
1089
|
+
...r,
|
|
1090
|
+
children: [n, t && /* @__PURE__ */ T(d.Close, {
|
|
1091
|
+
asChild: !0,
|
|
1092
|
+
children: /* @__PURE__ */ T(H, {
|
|
1093
|
+
variant: "outline",
|
|
1094
|
+
children: "Close"
|
|
1095
|
+
})
|
|
1096
|
+
})]
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
function En({ className: e, ...t }) {
|
|
1100
|
+
return /* @__PURE__ */ T(d.Title, {
|
|
1101
|
+
"data-slot": "dialog-title",
|
|
1102
|
+
className: a("text-lg leading-none font-semibold", e),
|
|
1103
|
+
...t
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
function Dn({ className: e, ...t }) {
|
|
1107
|
+
return /* @__PURE__ */ T(d.Description, {
|
|
1108
|
+
"data-slot": "dialog-description",
|
|
1109
|
+
className: a("text-sm text-muted-foreground", e),
|
|
1110
|
+
...t
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
// src/components/ui/dropdown-menu.tsx
|
|
1114
|
+
function On({ ...e }) {
|
|
1115
|
+
return /* @__PURE__ */ T(f.Root, {
|
|
1116
|
+
"data-slot": "dropdown-menu",
|
|
1117
|
+
...e
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
function kn({ ...e }) {
|
|
1121
|
+
return /* @__PURE__ */ T(f.Portal, {
|
|
1122
|
+
"data-slot": "dropdown-menu-portal",
|
|
1123
|
+
...e
|
|
1124
|
+
});
|
|
1125
|
+
}
|
|
1126
|
+
function An({ ...e }) {
|
|
1127
|
+
return /* @__PURE__ */ T(f.Trigger, {
|
|
1128
|
+
"data-slot": "dropdown-menu-trigger",
|
|
1129
|
+
...e
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
function jn({ className: e, sideOffset: t = 4, ...n }) {
|
|
1133
|
+
return /* @__PURE__ */ T(f.Portal, { children: /* @__PURE__ */ T(f.Content, {
|
|
1134
|
+
"data-slot": "dropdown-menu-content",
|
|
1135
|
+
sideOffset: t,
|
|
1136
|
+
className: a("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
|
|
1137
|
+
...n
|
|
1138
|
+
}) });
|
|
1139
|
+
}
|
|
1140
|
+
function Mn({ ...e }) {
|
|
1141
|
+
return /* @__PURE__ */ T(f.Group, {
|
|
1142
|
+
"data-slot": "dropdown-menu-group",
|
|
1143
|
+
...e
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1146
|
+
function Nn({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
1147
|
+
return /* @__PURE__ */ T(f.Item, {
|
|
1148
|
+
"data-slot": "dropdown-menu-item",
|
|
1149
|
+
"data-inset": t,
|
|
1150
|
+
"data-variant": n,
|
|
1151
|
+
className: a("relative flex cursor-default 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
|
+
...r
|
|
1153
|
+
});
|
|
1154
|
+
}
|
|
1155
|
+
function Pn({ className: e, children: t, checked: n, ...r }) {
|
|
1156
|
+
return /* @__PURE__ */ E(f.CheckboxItem, {
|
|
1157
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
1158
|
+
className: a("relative flex cursor-default 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
|
+
checked: n,
|
|
1160
|
+
...r,
|
|
1161
|
+
children: [/* @__PURE__ */ T("span", {
|
|
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(Me, { className: "size-4" }) })
|
|
1164
|
+
}), t]
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
function Fn({ ...e }) {
|
|
1168
|
+
return /* @__PURE__ */ T(f.RadioGroup, {
|
|
1169
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
1170
|
+
...e
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
function In({ className: e, children: t, ...n }) {
|
|
1174
|
+
return /* @__PURE__ */ E(f.RadioItem, {
|
|
1175
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
1176
|
+
className: a("relative flex cursor-default 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
|
+
...n,
|
|
1178
|
+
children: [/* @__PURE__ */ T("span", {
|
|
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(Ke, { className: "size-2 fill-current" }) })
|
|
1181
|
+
}), t]
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
function Ln({ className: e, inset: t, ...n }) {
|
|
1185
|
+
return /* @__PURE__ */ T(f.Label, {
|
|
1186
|
+
"data-slot": "dropdown-menu-label",
|
|
1187
|
+
"data-inset": t,
|
|
1188
|
+
className: a("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", e),
|
|
1189
|
+
...n
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
function Rn({ className: e, ...t }) {
|
|
1193
|
+
return /* @__PURE__ */ T(f.Separator, {
|
|
1194
|
+
"data-slot": "dropdown-menu-separator",
|
|
1195
|
+
className: a("-mx-1 my-1 h-px bg-border", e),
|
|
1196
|
+
...t
|
|
1197
|
+
});
|
|
1198
|
+
}
|
|
1199
|
+
function zn({ className: e, ...t }) {
|
|
1200
|
+
return /* @__PURE__ */ T("span", {
|
|
1201
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
1202
|
+
className: a("ml-auto text-xs tracking-widest text-muted-foreground", e),
|
|
1203
|
+
...t
|
|
1204
|
+
});
|
|
1205
|
+
}
|
|
1206
|
+
function Bn({ ...e }) {
|
|
1207
|
+
return /* @__PURE__ */ T(f.Sub, {
|
|
1208
|
+
"data-slot": "dropdown-menu-sub",
|
|
1209
|
+
...e
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
function Vn({ className: e, inset: t, children: n, ...r }) {
|
|
1213
|
+
return /* @__PURE__ */ E(f.SubTrigger, {
|
|
1214
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
1215
|
+
"data-inset": t,
|
|
1216
|
+
className: a("flex cursor-default 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
|
+
...r,
|
|
1218
|
+
children: [n, /* @__PURE__ */ T(Re, { className: "ml-auto size-4" })]
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
function Hn({ className: e, ...t }) {
|
|
1222
|
+
return /* @__PURE__ */ T(f.SubContent, {
|
|
1223
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
1224
|
+
className: a("z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
|
|
1225
|
+
...t
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
// src/components/ui/input.tsx
|
|
1229
|
+
function Un({ className: e, type: t, ...n }) {
|
|
1230
|
+
return /* @__PURE__ */ T("input", {
|
|
1231
|
+
type: t,
|
|
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,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", "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50", "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", e),
|
|
1234
|
+
...n
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
// src/components/ui/label.tsx
|
|
1238
|
+
function Wn({ className: e, ...t }) {
|
|
1239
|
+
return /* @__PURE__ */ T(m.Root, {
|
|
1240
|
+
"data-slot": "label",
|
|
1241
|
+
className: a("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
1242
|
+
...t
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
// src/components/ui/popover.tsx
|
|
1246
|
+
function Gn({ ...e }) {
|
|
1247
|
+
return /* @__PURE__ */ T(h.Root, {
|
|
1248
|
+
"data-slot": "popover",
|
|
1249
|
+
...e
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
function Kn({ ...e }) {
|
|
1253
|
+
return /* @__PURE__ */ T(h.Trigger, {
|
|
1254
|
+
"data-slot": "popover-trigger",
|
|
1255
|
+
...e
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
function qn({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
1259
|
+
return /* @__PURE__ */ T(h.Portal, { children: /* @__PURE__ */ T(h.Content, {
|
|
1260
|
+
"data-slot": "popover-content",
|
|
1261
|
+
align: t,
|
|
1262
|
+
sideOffset: n,
|
|
1263
|
+
className: a("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
|
|
1264
|
+
...r
|
|
1265
|
+
}) });
|
|
1266
|
+
}
|
|
1267
|
+
function Jn({ ...e }) {
|
|
1268
|
+
return /* @__PURE__ */ T(h.Anchor, {
|
|
1269
|
+
"data-slot": "popover-anchor",
|
|
1270
|
+
...e
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1273
|
+
function Yn({ className: e, ...t }) {
|
|
1274
|
+
return /* @__PURE__ */ T("div", {
|
|
1275
|
+
"data-slot": "popover-header",
|
|
1276
|
+
className: a("flex flex-col gap-1 text-sm", e),
|
|
1277
|
+
...t
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
function Xn({ className: e, ...t }) {
|
|
1281
|
+
return /* @__PURE__ */ T("div", {
|
|
1282
|
+
"data-slot": "popover-title",
|
|
1283
|
+
className: a("font-medium", e),
|
|
1284
|
+
...t
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
function Zn({ className: e, ...t }) {
|
|
1288
|
+
return /* @__PURE__ */ T("p", {
|
|
1289
|
+
"data-slot": "popover-description",
|
|
1290
|
+
className: a("text-muted-foreground", e),
|
|
1291
|
+
...t
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
// src/components/ui/progress.tsx
|
|
1295
|
+
function Qn({ className: e, value: t, ...n }) {
|
|
1296
|
+
return /* @__PURE__ */ T(g.Root, {
|
|
1297
|
+
"data-slot": "progress",
|
|
1298
|
+
className: a("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", e),
|
|
1299
|
+
...n,
|
|
1300
|
+
children: /* @__PURE__ */ T(g.Indicator, {
|
|
1301
|
+
"data-slot": "progress-indicator",
|
|
1302
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
1303
|
+
style: { transform: `translateX(-${100 - (t || 0)}%)` }
|
|
1304
|
+
})
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
// src/components/ui/radio-group.tsx
|
|
1308
|
+
function $n({ className: e, ...t }) {
|
|
1309
|
+
return /* @__PURE__ */ T(_.Root, {
|
|
1310
|
+
"data-slot": "radio-group",
|
|
1311
|
+
className: a("grid gap-3", e),
|
|
1312
|
+
...t
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
function er({ className: e, ...t }) {
|
|
1316
|
+
return /* @__PURE__ */ T(_.Item, {
|
|
1317
|
+
"data-slot": "radio-group-item",
|
|
1318
|
+
className: a("aspect-square size-4 shrink-0 rounded-full border border-input text-primary 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 dark:bg-input/30 dark:aria-invalid:ring-destructive/40", e),
|
|
1319
|
+
...t,
|
|
1320
|
+
children: /* @__PURE__ */ T(_.Indicator, {
|
|
1321
|
+
"data-slot": "radio-group-indicator",
|
|
1322
|
+
className: "relative flex items-center justify-center",
|
|
1323
|
+
children: /* @__PURE__ */ T(Ke, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
|
|
1324
|
+
})
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
// src/components/ui/select.tsx
|
|
1328
|
+
function tr({ ...e }) {
|
|
1329
|
+
return /* @__PURE__ */ T(v.Root, {
|
|
1330
|
+
"data-slot": "select",
|
|
1331
|
+
...e
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
function nr({ ...e }) {
|
|
1335
|
+
return /* @__PURE__ */ T(v.Group, {
|
|
1336
|
+
"data-slot": "select-group",
|
|
1337
|
+
...e
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
function rr({ ...e }) {
|
|
1341
|
+
return /* @__PURE__ */ T(v.Value, {
|
|
1342
|
+
"data-slot": "select-value",
|
|
1343
|
+
...e
|
|
1344
|
+
});
|
|
1345
|
+
}
|
|
1346
|
+
function ir({ className: e, size: t = "default", children: n, ...r }) {
|
|
1347
|
+
return /* @__PURE__ */ E(v.Trigger, {
|
|
1348
|
+
"data-slot": "select-trigger",
|
|
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),
|
|
1351
|
+
...r,
|
|
1352
|
+
children: [n, /* @__PURE__ */ T(v.Icon, {
|
|
1353
|
+
asChild: !0,
|
|
1354
|
+
children: /* @__PURE__ */ T(Pe, { className: "size-4 opacity-50" })
|
|
1355
|
+
})]
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
function ar({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
|
|
1359
|
+
return /* @__PURE__ */ T(v.Portal, { children: /* @__PURE__ */ E(v.Content, {
|
|
1360
|
+
"data-slot": "select-content",
|
|
1361
|
+
className: a("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
|
|
1362
|
+
position: n,
|
|
1363
|
+
align: r,
|
|
1364
|
+
...i,
|
|
1365
|
+
children: [
|
|
1366
|
+
/* @__PURE__ */ T(lr, {}),
|
|
1367
|
+
/* @__PURE__ */ T(v.Viewport, {
|
|
1368
|
+
className: a("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
|
|
1369
|
+
children: t
|
|
1370
|
+
}),
|
|
1371
|
+
/* @__PURE__ */ T(ur, {})
|
|
1372
|
+
]
|
|
1373
|
+
}) });
|
|
1374
|
+
}
|
|
1375
|
+
function or({ className: e, ...t }) {
|
|
1376
|
+
return /* @__PURE__ */ T(v.Label, {
|
|
1377
|
+
"data-slot": "select-label",
|
|
1378
|
+
className: a("px-2 py-1.5 text-xs text-muted-foreground", e),
|
|
1379
|
+
...t
|
|
1380
|
+
});
|
|
1381
|
+
}
|
|
1382
|
+
function sr({ className: e, children: t, ...n }) {
|
|
1383
|
+
return /* @__PURE__ */ E(v.Item, {
|
|
1384
|
+
"data-slot": "select-item",
|
|
1385
|
+
className: a("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 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 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
1386
|
+
...n,
|
|
1387
|
+
children: [/* @__PURE__ */ T("span", {
|
|
1388
|
+
"data-slot": "select-item-indicator",
|
|
1389
|
+
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
1390
|
+
children: /* @__PURE__ */ T(v.ItemIndicator, { children: /* @__PURE__ */ T(Me, { className: "size-4" }) })
|
|
1391
|
+
}), /* @__PURE__ */ T(v.ItemText, { children: t })]
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
function cr({ className: e, ...t }) {
|
|
1395
|
+
return /* @__PURE__ */ T(v.Separator, {
|
|
1396
|
+
"data-slot": "select-separator",
|
|
1397
|
+
className: a("pointer-events-none -mx-1 my-1 h-px bg-border", e),
|
|
1398
|
+
...t
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
function lr({ className: e, ...t }) {
|
|
1402
|
+
return /* @__PURE__ */ T(v.ScrollUpButton, {
|
|
1403
|
+
"data-slot": "select-scroll-up-button",
|
|
1404
|
+
className: a("flex cursor-default items-center justify-center py-1", e),
|
|
1405
|
+
...t,
|
|
1406
|
+
children: /* @__PURE__ */ T(Be, { className: "size-4" })
|
|
1407
|
+
});
|
|
1408
|
+
}
|
|
1409
|
+
function ur({ className: e, ...t }) {
|
|
1410
|
+
return /* @__PURE__ */ T(v.ScrollDownButton, {
|
|
1411
|
+
"data-slot": "select-scroll-down-button",
|
|
1412
|
+
className: a("flex cursor-default items-center justify-center py-1", e),
|
|
1413
|
+
...t,
|
|
1414
|
+
children: /* @__PURE__ */ T(Pe, { className: "size-4" })
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
// src/components/ui/separator.tsx
|
|
1418
|
+
function dr({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
1419
|
+
return /* @__PURE__ */ T(y.Root, {
|
|
1420
|
+
"data-slot": "separator",
|
|
1421
|
+
decorative: n,
|
|
1422
|
+
orientation: t,
|
|
1423
|
+
className: a("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", e),
|
|
1424
|
+
...r
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
// src/components/ui/sheet.tsx
|
|
1428
|
+
function fr({ ...e }) {
|
|
1429
|
+
return /* @__PURE__ */ T(d.Root, {
|
|
1430
|
+
"data-slot": "sheet",
|
|
1431
|
+
...e
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
function pr({ ...e }) {
|
|
1435
|
+
return /* @__PURE__ */ T(d.Trigger, {
|
|
1436
|
+
"data-slot": "sheet-trigger",
|
|
1437
|
+
...e
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
function mr({ ...e }) {
|
|
1441
|
+
return /* @__PURE__ */ T(d.Close, {
|
|
1442
|
+
"data-slot": "sheet-close",
|
|
1443
|
+
...e
|
|
1444
|
+
});
|
|
1445
|
+
}
|
|
1446
|
+
function hr({ ...e }) {
|
|
1447
|
+
return /* @__PURE__ */ T(d.Portal, {
|
|
1448
|
+
"data-slot": "sheet-portal",
|
|
1449
|
+
...e
|
|
1450
|
+
});
|
|
1451
|
+
}
|
|
1452
|
+
function gr({ className: e, ...t }) {
|
|
1453
|
+
return /* @__PURE__ */ T(d.Overlay, {
|
|
1454
|
+
"data-slot": "sheet-overlay",
|
|
1455
|
+
className: a("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", e),
|
|
1456
|
+
...t
|
|
1457
|
+
});
|
|
1458
|
+
}
|
|
1459
|
+
function _r({ className: e, children: t, side: n = "right", showCloseButton: r = !0, ...i }) {
|
|
1460
|
+
return /* @__PURE__ */ E(hr, { children: [/* @__PURE__ */ T(gr, {}), /* @__PURE__ */ E(d.Content, {
|
|
1461
|
+
"data-slot": "sheet-content",
|
|
1462
|
+
className: a("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500", n === "right" && "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right 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=open]:slide-in-from-left sm:max-w-sm", n === "top" && "inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top", n === "bottom" && "inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom", e),
|
|
1463
|
+
...i,
|
|
1464
|
+
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(kt, { className: "size-4" }), /* @__PURE__ */ T("span", {
|
|
1467
|
+
className: "sr-only",
|
|
1468
|
+
children: "Close"
|
|
1469
|
+
})]
|
|
1470
|
+
})]
|
|
1471
|
+
})] });
|
|
1472
|
+
}
|
|
1473
|
+
function vr({ className: e, ...t }) {
|
|
1474
|
+
return /* @__PURE__ */ T("div", {
|
|
1475
|
+
"data-slot": "sheet-header",
|
|
1476
|
+
className: a("flex flex-col gap-1.5 p-4", e),
|
|
1477
|
+
...t
|
|
1478
|
+
});
|
|
1479
|
+
}
|
|
1480
|
+
function yr({ className: e, ...t }) {
|
|
1481
|
+
return /* @__PURE__ */ T("div", {
|
|
1482
|
+
"data-slot": "sheet-footer",
|
|
1483
|
+
className: a("mt-auto flex flex-col gap-2 p-4", e),
|
|
1484
|
+
...t
|
|
1485
|
+
});
|
|
1486
|
+
}
|
|
1487
|
+
function br({ className: e, ...t }) {
|
|
1488
|
+
return /* @__PURE__ */ T(d.Title, {
|
|
1489
|
+
"data-slot": "sheet-title",
|
|
1490
|
+
className: a("font-semibold text-foreground", e),
|
|
1491
|
+
...t
|
|
1492
|
+
});
|
|
1493
|
+
}
|
|
1494
|
+
function xr({ className: e, ...t }) {
|
|
1495
|
+
return /* @__PURE__ */ T(d.Description, {
|
|
1496
|
+
"data-slot": "sheet-description",
|
|
1497
|
+
className: a("text-sm text-muted-foreground", e),
|
|
1498
|
+
...t
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
// src/components/ui/skeleton.tsx
|
|
1502
|
+
function Sr({ className: e, ...t }) {
|
|
1503
|
+
return /* @__PURE__ */ T("div", {
|
|
1504
|
+
"data-slot": "skeleton",
|
|
1505
|
+
className: a("animate-pulse rounded-md bg-accent", e),
|
|
1506
|
+
...t
|
|
1507
|
+
});
|
|
1508
|
+
}
|
|
1509
|
+
// src/components/ui/slider.tsx
|
|
1510
|
+
function Cr({ className: t, defaultValue: n, value: r, min: i = 0, max: o = 100, ...s }) {
|
|
1511
|
+
let c = e.useMemo(() => Array.isArray(r) ? r : Array.isArray(n) ? n : [i, o], [
|
|
1512
|
+
r,
|
|
1513
|
+
n,
|
|
1514
|
+
i,
|
|
1515
|
+
o
|
|
1516
|
+
]);
|
|
1517
|
+
return /* @__PURE__ */ E(b.Root, {
|
|
1518
|
+
"data-slot": "slider",
|
|
1519
|
+
defaultValue: n,
|
|
1520
|
+
value: r,
|
|
1521
|
+
min: i,
|
|
1522
|
+
max: o,
|
|
1523
|
+
className: a("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", t),
|
|
1524
|
+
...s,
|
|
1525
|
+
children: [/* @__PURE__ */ T(b.Track, {
|
|
1526
|
+
"data-slot": "slider-track",
|
|
1527
|
+
className: a("relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
|
|
1528
|
+
children: /* @__PURE__ */ T(b.Range, {
|
|
1529
|
+
"data-slot": "slider-range",
|
|
1530
|
+
className: a("absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
1531
|
+
})
|
|
1532
|
+
}), Array.from({ length: c.length }, (e, t) => /* @__PURE__ */ T(b.Thumb, {
|
|
1533
|
+
"data-slot": "slider-thumb",
|
|
1534
|
+
className: "block size-4 shrink-0 rounded-full border border-primary bg-white shadow-sm ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
1535
|
+
}, t))]
|
|
1536
|
+
});
|
|
1537
|
+
}
|
|
1538
|
+
// src/components/ui/switch.tsx
|
|
1539
|
+
function wr({ className: e, size: t = "default", ...n }) {
|
|
1540
|
+
return /* @__PURE__ */ T(ee.Root, {
|
|
1541
|
+
"data-slot": "switch",
|
|
1542
|
+
"data-size": t,
|
|
1543
|
+
className: a("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80", e),
|
|
1544
|
+
...n,
|
|
1545
|
+
children: /* @__PURE__ */ T(ee.Thumb, {
|
|
1546
|
+
"data-slot": "switch-thumb",
|
|
1547
|
+
className: a("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")
|
|
1548
|
+
})
|
|
1549
|
+
});
|
|
1550
|
+
}
|
|
1551
|
+
// src/components/ui/table.tsx
|
|
1552
|
+
function Tr({ className: e, ...t }) {
|
|
1553
|
+
return /* @__PURE__ */ T("div", {
|
|
1554
|
+
"data-slot": "table-container",
|
|
1555
|
+
className: "relative w-full overflow-x-auto",
|
|
1556
|
+
children: /* @__PURE__ */ T("table", {
|
|
1557
|
+
"data-slot": "table",
|
|
1558
|
+
className: a("w-full caption-bottom text-sm", e),
|
|
1559
|
+
...t
|
|
1560
|
+
})
|
|
1561
|
+
});
|
|
1562
|
+
}
|
|
1563
|
+
function Er({ className: e, ...t }) {
|
|
1564
|
+
return /* @__PURE__ */ T("thead", {
|
|
1565
|
+
"data-slot": "table-header",
|
|
1566
|
+
className: a("[&_tr]:border-b", e),
|
|
1567
|
+
...t
|
|
1568
|
+
});
|
|
1569
|
+
}
|
|
1570
|
+
function Dr({ className: e, ...t }) {
|
|
1571
|
+
return /* @__PURE__ */ T("tbody", {
|
|
1572
|
+
"data-slot": "table-body",
|
|
1573
|
+
className: a("[&_tr:last-child]:border-0", e),
|
|
1574
|
+
...t
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
function Or({ className: e, ...t }) {
|
|
1578
|
+
return /* @__PURE__ */ T("tfoot", {
|
|
1579
|
+
"data-slot": "table-footer",
|
|
1580
|
+
className: a("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
1581
|
+
...t
|
|
1582
|
+
});
|
|
1583
|
+
}
|
|
1584
|
+
function kr({ className: e, ...t }) {
|
|
1585
|
+
return /* @__PURE__ */ T("tr", {
|
|
1586
|
+
"data-slot": "table-row",
|
|
1587
|
+
className: a("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", e),
|
|
1588
|
+
...t
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1591
|
+
function Ar({ className: e, ...t }) {
|
|
1592
|
+
return /* @__PURE__ */ T("th", {
|
|
1593
|
+
"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),
|
|
1595
|
+
...t
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
function jr({ className: e, ...t }) {
|
|
1599
|
+
return /* @__PURE__ */ T("td", {
|
|
1600
|
+
"data-slot": "table-cell",
|
|
1601
|
+
className: a("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
1602
|
+
...t
|
|
1603
|
+
});
|
|
1604
|
+
}
|
|
1605
|
+
function Mr({ className: e, ...t }) {
|
|
1606
|
+
return /* @__PURE__ */ T("caption", {
|
|
1607
|
+
"data-slot": "table-caption",
|
|
1608
|
+
className: a("mt-4 text-sm text-muted-foreground", e),
|
|
1609
|
+
...t
|
|
1610
|
+
});
|
|
1611
|
+
}
|
|
1612
|
+
// src/components/ui/tabs.tsx
|
|
1613
|
+
function Nr({ className: e, orientation: t = "horizontal", ...n }) {
|
|
1614
|
+
return /* @__PURE__ */ T(S.Root, {
|
|
1615
|
+
"data-slot": "tabs",
|
|
1616
|
+
"data-orientation": t,
|
|
1617
|
+
orientation: t,
|
|
1618
|
+
className: a("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col", e),
|
|
1619
|
+
...n
|
|
1620
|
+
});
|
|
1621
|
+
}
|
|
1622
|
+
var Pr = Rt("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none", {
|
|
1623
|
+
variants: { variant: {
|
|
1624
|
+
default: "bg-muted",
|
|
1625
|
+
line: "gap-1 bg-transparent"
|
|
1626
|
+
} },
|
|
1627
|
+
defaultVariants: { variant: "default" }
|
|
1628
|
+
});
|
|
1629
|
+
function Fr({ className: e, variant: t = "default", ...n }) {
|
|
1630
|
+
return /* @__PURE__ */ T(S.List, {
|
|
1631
|
+
"data-slot": "tabs-list",
|
|
1632
|
+
"data-variant": t,
|
|
1633
|
+
className: a(Pr({ variant: t }), e),
|
|
1634
|
+
...n
|
|
1635
|
+
});
|
|
1636
|
+
}
|
|
1637
|
+
function Ir({ className: e, ...t }) {
|
|
1638
|
+
return /* @__PURE__ */ T(S.Trigger, {
|
|
1639
|
+
"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),
|
|
1641
|
+
...t
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
function Lr({ className: e, ...t }) {
|
|
1645
|
+
return /* @__PURE__ */ T(S.Content, {
|
|
1646
|
+
"data-slot": "tabs-content",
|
|
1647
|
+
className: a("flex-1 outline-none", e),
|
|
1648
|
+
...t
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1651
|
+
function Rr({ children: e, rightExtra: t, className: n }) {
|
|
1652
|
+
return /* @__PURE__ */ E("div", {
|
|
1653
|
+
className: a("flex items-center justify-between gap-2", n),
|
|
1654
|
+
children: [/* @__PURE__ */ T("div", {
|
|
1655
|
+
className: "flex min-w-0 flex-1 items-center",
|
|
1656
|
+
children: e
|
|
1657
|
+
}), t ? /* @__PURE__ */ T("div", {
|
|
1658
|
+
className: "flex shrink-0 items-center gap-2",
|
|
1659
|
+
children: t
|
|
1660
|
+
}) : null]
|
|
1661
|
+
});
|
|
1662
|
+
}
|
|
1663
|
+
// src/components/ui/textarea.tsx
|
|
1664
|
+
function zr({ className: e, ...t }) {
|
|
1665
|
+
return /* @__PURE__ */ T("textarea", {
|
|
1666
|
+
"data-slot": "textarea",
|
|
1667
|
+
className: a("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground 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 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40", e),
|
|
1668
|
+
...t
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1671
|
+
// src/components/ui/tooltip.tsx
|
|
1672
|
+
function Br({ delayDuration: e = 0, ...t }) {
|
|
1673
|
+
return /* @__PURE__ */ T(C.Provider, {
|
|
1674
|
+
"data-slot": "tooltip-provider",
|
|
1675
|
+
delayDuration: e,
|
|
1676
|
+
...t
|
|
1677
|
+
});
|
|
1678
|
+
}
|
|
1679
|
+
function Vr({ ...e }) {
|
|
1680
|
+
return /* @__PURE__ */ T(C.Root, {
|
|
1681
|
+
"data-slot": "tooltip",
|
|
1682
|
+
...e
|
|
1683
|
+
});
|
|
1684
|
+
}
|
|
1685
|
+
function Hr({ ...e }) {
|
|
1686
|
+
return /* @__PURE__ */ T(C.Trigger, {
|
|
1687
|
+
"data-slot": "tooltip-trigger",
|
|
1688
|
+
...e
|
|
1689
|
+
});
|
|
1690
|
+
}
|
|
1691
|
+
function Ur({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
1692
|
+
return /* @__PURE__ */ T(C.Portal, { children: /* @__PURE__ */ E(C.Content, {
|
|
1693
|
+
"data-slot": "tooltip-content",
|
|
1694
|
+
sideOffset: t,
|
|
1695
|
+
className: a("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", e),
|
|
1696
|
+
...r,
|
|
1697
|
+
children: [n, /* @__PURE__ */ T(C.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })]
|
|
1698
|
+
}) });
|
|
1699
|
+
}
|
|
1700
|
+
// node_modules/.pnpm/tailwind-merge@3.7.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
1701
|
+
var Wr = (e, t) => {
|
|
1702
|
+
let n = Array(e.length + t.length);
|
|
1703
|
+
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
1704
|
+
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
1705
|
+
return n;
|
|
1706
|
+
}, Gr = (e, t) => ({
|
|
1707
|
+
classGroupId: e,
|
|
1708
|
+
validator: t
|
|
1709
|
+
}), Kr = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
1710
|
+
nextPart: e,
|
|
1711
|
+
validators: t,
|
|
1712
|
+
classGroupId: n
|
|
1713
|
+
}), qr = "-", Jr = [], Yr = "arbitrary..", Xr = (e) => {
|
|
1714
|
+
let t = $r(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
1715
|
+
return {
|
|
1716
|
+
getClassGroupId: (e) => {
|
|
1717
|
+
if (e.startsWith("[") && e.endsWith("]")) return Qr(e);
|
|
1718
|
+
let n = e.split(qr);
|
|
1719
|
+
return Zr(n, +(n[0] === "" && n.length > 1), t);
|
|
1720
|
+
},
|
|
1721
|
+
getConflictingClassGroupIds: (e, t) => {
|
|
1722
|
+
if (t) {
|
|
1723
|
+
let t = r[e], i = n[e];
|
|
1724
|
+
return t ? i ? Wr(i, t) : t : i || Jr;
|
|
1725
|
+
}
|
|
1726
|
+
return n[e] || Jr;
|
|
1727
|
+
}
|
|
1728
|
+
};
|
|
1729
|
+
}, Zr = (e, t, n) => {
|
|
1730
|
+
if (e.length - t === 0) return n.classGroupId;
|
|
1731
|
+
let r = e[t], i = n.nextPart.get(r);
|
|
1732
|
+
if (i) {
|
|
1733
|
+
let n = Zr(e, t + 1, i);
|
|
1734
|
+
if (n) return n;
|
|
1735
|
+
}
|
|
1736
|
+
let a = n.validators;
|
|
1737
|
+
if (a === null) return;
|
|
1738
|
+
let o = t === 0 ? e.join(qr) : e.slice(t).join(qr), s = a.length;
|
|
1739
|
+
for (let e = 0; e < s; e++) {
|
|
1740
|
+
let t = a[e];
|
|
1741
|
+
if (t.validator(o)) return t.classGroupId;
|
|
1742
|
+
}
|
|
1743
|
+
}, Qr = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
1744
|
+
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
1745
|
+
return r ? Yr + r : void 0;
|
|
1746
|
+
})(), $r = (e) => {
|
|
1747
|
+
let { theme: t, classGroups: n } = e;
|
|
1748
|
+
return ei(n, t);
|
|
1749
|
+
}, ei = (e, t) => {
|
|
1750
|
+
let n = Kr();
|
|
1751
|
+
for (let r in e) {
|
|
1752
|
+
let i = e[r];
|
|
1753
|
+
ti(i, n, r, t);
|
|
1754
|
+
}
|
|
1755
|
+
return n;
|
|
1756
|
+
}, ti = (e, t, n, r) => {
|
|
1757
|
+
let i = e.length;
|
|
1758
|
+
for (let a = 0; a < i; a++) {
|
|
1759
|
+
let i = e[a];
|
|
1760
|
+
ni(i, t, n, r);
|
|
1761
|
+
}
|
|
1762
|
+
}, ni = (e, t, n, r) => {
|
|
1763
|
+
typeof e == "string" ? ri(e, t, n) : typeof e == "function" ? ii(e, t, n, r) : ai(e, t, n, r);
|
|
1764
|
+
}, ri = (e, t, n) => {
|
|
1765
|
+
let r = e === "" ? t : oi(t, e);
|
|
1766
|
+
r.classGroupId = n;
|
|
1767
|
+
}, ii = (e, t, n, r) => {
|
|
1768
|
+
si(e) ? ti(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Gr(n, e)));
|
|
1769
|
+
}, ai = (e, t, n, r) => {
|
|
1770
|
+
let i = Object.entries(e), a = i.length;
|
|
1771
|
+
for (let e = 0; e < a; e++) {
|
|
1772
|
+
let [a, o] = i[e];
|
|
1773
|
+
ti(o, oi(t, a), n, r);
|
|
1774
|
+
}
|
|
1775
|
+
}, oi = (e, t) => {
|
|
1776
|
+
let n = e, r = t.split(qr), i = r.length;
|
|
1777
|
+
for (let e = 0; e < i; e++) {
|
|
1778
|
+
let t = r[e], i = n.nextPart.get(t);
|
|
1779
|
+
i || (i = Kr(), n.nextPart.set(t, i)), n = i;
|
|
1780
|
+
}
|
|
1781
|
+
return n;
|
|
1782
|
+
}, si = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ci = (e) => {
|
|
1783
|
+
if (e < 1) return {
|
|
1784
|
+
get: () => void 0,
|
|
1785
|
+
set: () => {}
|
|
1786
|
+
};
|
|
1787
|
+
let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {
|
|
1788
|
+
n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));
|
|
1789
|
+
};
|
|
1790
|
+
return {
|
|
1791
|
+
get(e) {
|
|
1792
|
+
let t = n[e];
|
|
1793
|
+
if (t !== void 0) return t;
|
|
1794
|
+
if ((t = r[e]) !== void 0) return i(e, t), t;
|
|
1795
|
+
},
|
|
1796
|
+
set(e, t) {
|
|
1797
|
+
e in n ? n[e] = t : i(e, t);
|
|
1798
|
+
}
|
|
1799
|
+
};
|
|
1800
|
+
}, li = "!", ui = ":", di = [], fi = (e, t, n, r, i) => ({
|
|
1801
|
+
modifiers: e,
|
|
1802
|
+
hasImportantModifier: t,
|
|
1803
|
+
baseClassName: n,
|
|
1804
|
+
maybePostfixModifierPosition: r,
|
|
1805
|
+
isExternal: i
|
|
1806
|
+
}), pi = (e) => {
|
|
1807
|
+
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
1808
|
+
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
1809
|
+
for (let s = 0; s < o; s++) {
|
|
1810
|
+
let o = e[s];
|
|
1811
|
+
if (n === 0 && r === 0) {
|
|
1812
|
+
if (o === ui) {
|
|
1813
|
+
t.push(e.slice(i, s)), i = s + 1;
|
|
1814
|
+
continue;
|
|
1815
|
+
}
|
|
1816
|
+
if (o === "/") {
|
|
1817
|
+
a = s;
|
|
1818
|
+
continue;
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
1822
|
+
}
|
|
1823
|
+
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
1824
|
+
s.endsWith(li) ? (c = s.slice(0, -1), l = !0) : s.startsWith(li) && (c = s.slice(1), l = !0);
|
|
1825
|
+
let u = a && a > i ? a - i : void 0;
|
|
1826
|
+
return fi(t, l, c, u);
|
|
1827
|
+
};
|
|
1828
|
+
if (t) {
|
|
1829
|
+
let e = t + ui, n = r;
|
|
1830
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : fi(di, !1, t, void 0, !0);
|
|
1831
|
+
}
|
|
1832
|
+
if (n) {
|
|
1833
|
+
let e = r;
|
|
1834
|
+
r = (t) => n({
|
|
1835
|
+
className: t,
|
|
1836
|
+
parseClassName: e
|
|
1837
|
+
});
|
|
1838
|
+
}
|
|
1839
|
+
return r;
|
|
1840
|
+
}, mi = (e) => {
|
|
1841
|
+
let t = /* @__PURE__ */ new Map();
|
|
1842
|
+
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
1843
|
+
t.set(e, 1e6 + n);
|
|
1844
|
+
}), (e) => {
|
|
1845
|
+
let n = [], r = [];
|
|
1846
|
+
for (let i = 0; i < e.length; i++) {
|
|
1847
|
+
let a = e[i], o = a[0] === "[", s = t.has(a);
|
|
1848
|
+
o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);
|
|
1849
|
+
}
|
|
1850
|
+
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
1851
|
+
};
|
|
1852
|
+
}, hi = (e) => ({
|
|
1853
|
+
cache: ci(e.cacheSize),
|
|
1854
|
+
parseClassName: pi(e),
|
|
1855
|
+
sortModifiers: mi(e),
|
|
1856
|
+
postfixLookupClassGroupIds: gi(e),
|
|
1857
|
+
...Xr(e)
|
|
1858
|
+
}), gi = (e) => {
|
|
1859
|
+
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
1860
|
+
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
1861
|
+
return t;
|
|
1862
|
+
}, _i = /\s+/, vi = (e, t) => {
|
|
1863
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(_i), l = "";
|
|
1864
|
+
for (let e = c.length - 1; e >= 0; --e) {
|
|
1865
|
+
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
1866
|
+
if (u) {
|
|
1867
|
+
l = t + (l.length > 0 ? " " + l : l);
|
|
1868
|
+
continue;
|
|
1869
|
+
}
|
|
1870
|
+
let h = !!m, g;
|
|
1871
|
+
if (h) {
|
|
1872
|
+
g = r(p.substring(0, m));
|
|
1873
|
+
let e = g && o[g] ? r(p) : void 0;
|
|
1874
|
+
e && e !== g && (g = e, h = !1);
|
|
1875
|
+
} else g = r(p);
|
|
1876
|
+
if (!g) {
|
|
1877
|
+
if (!h || (g = r(p), !g)) {
|
|
1878
|
+
l = t + (l.length > 0 ? " " + l : l);
|
|
1879
|
+
continue;
|
|
1880
|
+
}
|
|
1881
|
+
h = !1;
|
|
1882
|
+
}
|
|
1883
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + li : _, y = v + g;
|
|
1884
|
+
if (s.indexOf(y) > -1) continue;
|
|
1885
|
+
s.push(y);
|
|
1886
|
+
let b = i(g, h);
|
|
1887
|
+
for (let e = 0; e < b.length; ++e) {
|
|
1888
|
+
let t = b[e];
|
|
1889
|
+
s.push(v + t);
|
|
1890
|
+
}
|
|
1891
|
+
l = t + (l.length > 0 ? " " + l : l);
|
|
1892
|
+
}
|
|
1893
|
+
return l;
|
|
1894
|
+
}, yi = (...e) => {
|
|
1895
|
+
let t = 0, n, r, i = "";
|
|
1896
|
+
for (; t < e.length;) (n = e[t++]) && (r = bi(n)) && (i && (i += " "), i += r);
|
|
1897
|
+
return i;
|
|
1898
|
+
}, bi = (e) => {
|
|
1899
|
+
if (typeof e == "string") return e;
|
|
1900
|
+
let t, n = "";
|
|
1901
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = bi(e[r])) && (n && (n += " "), n += t);
|
|
1902
|
+
return n;
|
|
1903
|
+
}, xi = (e, ...t) => {
|
|
1904
|
+
let n, r, i, a, o = (o) => (n = hi(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
1905
|
+
let t = r(e);
|
|
1906
|
+
if (t) return t;
|
|
1907
|
+
let a = vi(e, n);
|
|
1908
|
+
return i(e, a), a;
|
|
1909
|
+
};
|
|
1910
|
+
return a = o, (...e) => a(yi(...e));
|
|
1911
|
+
}, Si = [], U = (e) => {
|
|
1912
|
+
let t = (t) => t[e] || Si;
|
|
1913
|
+
return t.isThemeGetter = !0, t.themeKey = e, t;
|
|
1914
|
+
}, Ci = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, wi = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ti = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ei = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Di = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Oi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, ki = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ai = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, W = (e) => Ti.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), K = (e) => !!e && Number.isInteger(Number(e)), ji = (e) => e.endsWith("%") && G(e.slice(0, -1)), q = (e) => Ei.test(e), Mi = () => !0, Ni = (e) => Di.test(e) && !Oi.test(e), Pi = () => !1, Fi = (e) => ki.test(e), Ii = (e) => Ai.test(e), Li = (e) => !J(e) && !X(e), Ri = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), zi = (e) => Z(e, ta, Pi), J = (e) => Ci.test(e), Y = (e) => Z(e, na, Ni), Bi = (e) => Z(e, ra, G), Vi = (e) => Z(e, aa, Mi), Hi = (e) => Z(e, ia, Pi), Ui = (e) => Z(e, $i, Pi), Wi = (e) => Z(e, ea, Ii), Gi = (e) => Z(e, oa, Fi), X = (e) => wi.test(e), Ki = (e) => Q(e, na), qi = (e) => Q(e, ia), Ji = (e) => Q(e, $i), Yi = (e) => Q(e, ta), Xi = (e) => Q(e, ea), Zi = (e) => Q(e, oa, !0), Qi = (e) => Q(e, aa, !0), Z = (e, t, n) => {
|
|
1915
|
+
let r = Ci.exec(e);
|
|
1916
|
+
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
1917
|
+
}, Q = (e, t, n = !1) => {
|
|
1918
|
+
let r = wi.exec(e);
|
|
1919
|
+
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1920
|
+
}, $i = (e) => e === "position" || e === "percentage", ea = (e) => e === "image" || e === "url", ta = (e) => e === "length" || e === "size" || e === "bg-size", na = (e) => e === "length", ra = (e) => e === "number", ia = (e) => e === "family-name", aa = (e) => e === "number" || e === "weight", oa = (e) => e === "shadow", sa = /*#__PURE__*/ xi(() => {
|
|
1921
|
+
let e = U("color"), t = U("font"), n = U("text"), r = U("font-weight"), i = U("tracking"), a = U("leading"), o = U("breakpoint"), s = U("container"), c = U("spacing"), l = U("radius"), u = U("shadow"), d = U("inset-shadow"), f = U("text-shadow"), p = U("drop-shadow"), m = U("blur"), h = U("perspective"), g = U("aspect"), _ = U("ease"), v = U("animate"), y = () => [
|
|
1922
|
+
"auto",
|
|
1923
|
+
"avoid",
|
|
1924
|
+
"all",
|
|
1925
|
+
"avoid-page",
|
|
1926
|
+
"page",
|
|
1927
|
+
"left",
|
|
1928
|
+
"right",
|
|
1929
|
+
"column"
|
|
1930
|
+
], b = () => [
|
|
1931
|
+
"center",
|
|
1932
|
+
"top",
|
|
1933
|
+
"bottom",
|
|
1934
|
+
"left",
|
|
1935
|
+
"right",
|
|
1936
|
+
"top-left",
|
|
1937
|
+
"left-top",
|
|
1938
|
+
"top-right",
|
|
1939
|
+
"right-top",
|
|
1940
|
+
"bottom-right",
|
|
1941
|
+
"right-bottom",
|
|
1942
|
+
"bottom-left",
|
|
1943
|
+
"left-bottom"
|
|
1944
|
+
], x = () => [
|
|
1945
|
+
...b(),
|
|
1946
|
+
X,
|
|
1947
|
+
J
|
|
1948
|
+
], ee = () => [
|
|
1949
|
+
"auto",
|
|
1950
|
+
"hidden",
|
|
1951
|
+
"clip",
|
|
1952
|
+
"visible",
|
|
1953
|
+
"scroll"
|
|
1954
|
+
], S = () => [
|
|
1955
|
+
"auto",
|
|
1956
|
+
"contain",
|
|
1957
|
+
"none"
|
|
1958
|
+
], C = () => [
|
|
1959
|
+
X,
|
|
1960
|
+
J,
|
|
1961
|
+
c
|
|
1962
|
+
], w = () => [
|
|
1963
|
+
W,
|
|
1964
|
+
"full",
|
|
1965
|
+
"auto",
|
|
1966
|
+
...C()
|
|
1967
|
+
], T = () => [
|
|
1968
|
+
K,
|
|
1969
|
+
"none",
|
|
1970
|
+
"subgrid",
|
|
1971
|
+
X,
|
|
1972
|
+
J
|
|
1973
|
+
], E = () => [
|
|
1974
|
+
"auto",
|
|
1975
|
+
{ span: [
|
|
1976
|
+
"full",
|
|
1977
|
+
K,
|
|
1978
|
+
X,
|
|
1979
|
+
J
|
|
1980
|
+
] },
|
|
1981
|
+
K,
|
|
1982
|
+
X,
|
|
1983
|
+
J
|
|
1984
|
+
], D = () => [
|
|
1985
|
+
K,
|
|
1986
|
+
"auto",
|
|
1987
|
+
X,
|
|
1988
|
+
J
|
|
1989
|
+
], O = () => [
|
|
1990
|
+
"auto",
|
|
1991
|
+
"min",
|
|
1992
|
+
"max",
|
|
1993
|
+
"fr",
|
|
1994
|
+
X,
|
|
1995
|
+
J
|
|
1996
|
+
], k = () => [
|
|
1997
|
+
"start",
|
|
1998
|
+
"end",
|
|
1999
|
+
"center",
|
|
2000
|
+
"between",
|
|
2001
|
+
"around",
|
|
2002
|
+
"evenly",
|
|
2003
|
+
"stretch",
|
|
2004
|
+
"baseline",
|
|
2005
|
+
"center-safe",
|
|
2006
|
+
"end-safe"
|
|
2007
|
+
], A = () => [
|
|
2008
|
+
"start",
|
|
2009
|
+
"end",
|
|
2010
|
+
"center",
|
|
2011
|
+
"stretch",
|
|
2012
|
+
"center-safe",
|
|
2013
|
+
"end-safe"
|
|
2014
|
+
], j = () => ["auto", ...C()], M = () => [
|
|
2015
|
+
W,
|
|
2016
|
+
"auto",
|
|
2017
|
+
"full",
|
|
2018
|
+
"dvw",
|
|
2019
|
+
"dvh",
|
|
2020
|
+
"lvw",
|
|
2021
|
+
"lvh",
|
|
2022
|
+
"svw",
|
|
2023
|
+
"svh",
|
|
2024
|
+
"min",
|
|
2025
|
+
"max",
|
|
2026
|
+
"fit",
|
|
2027
|
+
...C()
|
|
2028
|
+
], te = () => [
|
|
2029
|
+
s,
|
|
2030
|
+
W,
|
|
2031
|
+
"screen",
|
|
2032
|
+
"full",
|
|
2033
|
+
"dvw",
|
|
2034
|
+
"lvw",
|
|
2035
|
+
"svw",
|
|
2036
|
+
"min",
|
|
2037
|
+
"max",
|
|
2038
|
+
"fit",
|
|
2039
|
+
...C()
|
|
2040
|
+
], ne = () => [
|
|
2041
|
+
W,
|
|
2042
|
+
"screen",
|
|
2043
|
+
"full",
|
|
2044
|
+
"lh",
|
|
2045
|
+
"dvh",
|
|
2046
|
+
"lvh",
|
|
2047
|
+
"svh",
|
|
2048
|
+
"min",
|
|
2049
|
+
"max",
|
|
2050
|
+
"fit",
|
|
2051
|
+
...C()
|
|
2052
|
+
], N = () => [
|
|
2053
|
+
e,
|
|
2054
|
+
X,
|
|
2055
|
+
J
|
|
2056
|
+
], P = () => [
|
|
2057
|
+
...b(),
|
|
2058
|
+
Ji,
|
|
2059
|
+
Ui,
|
|
2060
|
+
{ position: [X, J] }
|
|
2061
|
+
], F = () => ["no-repeat", { repeat: [
|
|
2062
|
+
"",
|
|
2063
|
+
"x",
|
|
2064
|
+
"y",
|
|
2065
|
+
"space",
|
|
2066
|
+
"round"
|
|
2067
|
+
] }], re = () => [
|
|
2068
|
+
"auto",
|
|
2069
|
+
"cover",
|
|
2070
|
+
"contain",
|
|
2071
|
+
Yi,
|
|
2072
|
+
zi,
|
|
2073
|
+
{ size: [X, J] }
|
|
2074
|
+
], ie = () => [
|
|
2075
|
+
ji,
|
|
2076
|
+
Ki,
|
|
2077
|
+
Y
|
|
2078
|
+
], I = () => [
|
|
2079
|
+
"",
|
|
2080
|
+
"none",
|
|
2081
|
+
"full",
|
|
2082
|
+
l,
|
|
2083
|
+
X,
|
|
2084
|
+
J
|
|
2085
|
+
], L = () => [
|
|
2086
|
+
"",
|
|
2087
|
+
G,
|
|
2088
|
+
Ki,
|
|
2089
|
+
Y
|
|
2090
|
+
], ae = () => [
|
|
2091
|
+
"solid",
|
|
2092
|
+
"dashed",
|
|
2093
|
+
"dotted",
|
|
2094
|
+
"double"
|
|
2095
|
+
], oe = () => [
|
|
2096
|
+
"normal",
|
|
2097
|
+
"multiply",
|
|
2098
|
+
"screen",
|
|
2099
|
+
"overlay",
|
|
2100
|
+
"darken",
|
|
2101
|
+
"lighten",
|
|
2102
|
+
"color-dodge",
|
|
2103
|
+
"color-burn",
|
|
2104
|
+
"hard-light",
|
|
2105
|
+
"soft-light",
|
|
2106
|
+
"difference",
|
|
2107
|
+
"exclusion",
|
|
2108
|
+
"hue",
|
|
2109
|
+
"saturation",
|
|
2110
|
+
"color",
|
|
2111
|
+
"luminosity"
|
|
2112
|
+
], R = () => [
|
|
2113
|
+
G,
|
|
2114
|
+
ji,
|
|
2115
|
+
Ji,
|
|
2116
|
+
Ui
|
|
2117
|
+
], se = () => [
|
|
2118
|
+
"",
|
|
2119
|
+
"none",
|
|
2120
|
+
m,
|
|
2121
|
+
X,
|
|
2122
|
+
J
|
|
2123
|
+
], ce = () => [
|
|
2124
|
+
"none",
|
|
2125
|
+
G,
|
|
2126
|
+
X,
|
|
2127
|
+
J
|
|
2128
|
+
], le = () => [
|
|
2129
|
+
"none",
|
|
2130
|
+
G,
|
|
2131
|
+
X,
|
|
2132
|
+
J
|
|
2133
|
+
], ue = () => [
|
|
2134
|
+
G,
|
|
2135
|
+
X,
|
|
2136
|
+
J
|
|
2137
|
+
], de = () => [
|
|
2138
|
+
W,
|
|
2139
|
+
"full",
|
|
2140
|
+
...C()
|
|
2141
|
+
];
|
|
2142
|
+
return {
|
|
2143
|
+
cacheSize: 500,
|
|
2144
|
+
theme: {
|
|
2145
|
+
animate: [
|
|
2146
|
+
"spin",
|
|
2147
|
+
"ping",
|
|
2148
|
+
"pulse",
|
|
2149
|
+
"bounce"
|
|
2150
|
+
],
|
|
2151
|
+
aspect: ["video"],
|
|
2152
|
+
blur: [q],
|
|
2153
|
+
breakpoint: [q],
|
|
2154
|
+
color: [Mi],
|
|
2155
|
+
container: [q],
|
|
2156
|
+
"drop-shadow": [q],
|
|
2157
|
+
ease: [
|
|
2158
|
+
"in",
|
|
2159
|
+
"out",
|
|
2160
|
+
"in-out"
|
|
2161
|
+
],
|
|
2162
|
+
font: [Li],
|
|
2163
|
+
"font-weight": [
|
|
2164
|
+
"thin",
|
|
2165
|
+
"extralight",
|
|
2166
|
+
"light",
|
|
2167
|
+
"normal",
|
|
2168
|
+
"medium",
|
|
2169
|
+
"semibold",
|
|
2170
|
+
"bold",
|
|
2171
|
+
"extrabold",
|
|
2172
|
+
"black"
|
|
2173
|
+
],
|
|
2174
|
+
"inset-shadow": [q],
|
|
2175
|
+
leading: [
|
|
2176
|
+
"none",
|
|
2177
|
+
"tight",
|
|
2178
|
+
"snug",
|
|
2179
|
+
"normal",
|
|
2180
|
+
"relaxed",
|
|
2181
|
+
"loose"
|
|
2182
|
+
],
|
|
2183
|
+
perspective: [
|
|
2184
|
+
"dramatic",
|
|
2185
|
+
"near",
|
|
2186
|
+
"normal",
|
|
2187
|
+
"midrange",
|
|
2188
|
+
"distant",
|
|
2189
|
+
"none"
|
|
2190
|
+
],
|
|
2191
|
+
radius: [q],
|
|
2192
|
+
shadow: [q],
|
|
2193
|
+
spacing: ["px", G],
|
|
2194
|
+
text: [q],
|
|
2195
|
+
"text-shadow": [q],
|
|
2196
|
+
tracking: [
|
|
2197
|
+
"tighter",
|
|
2198
|
+
"tight",
|
|
2199
|
+
"normal",
|
|
2200
|
+
"wide",
|
|
2201
|
+
"wider",
|
|
2202
|
+
"widest"
|
|
2203
|
+
]
|
|
2204
|
+
},
|
|
2205
|
+
classGroups: {
|
|
2206
|
+
aspect: [{ aspect: [
|
|
2207
|
+
"auto",
|
|
2208
|
+
"square",
|
|
2209
|
+
W,
|
|
2210
|
+
J,
|
|
2211
|
+
X,
|
|
2212
|
+
g
|
|
2213
|
+
] }],
|
|
2214
|
+
container: ["container"],
|
|
2215
|
+
"container-type": [{ "@container": [
|
|
2216
|
+
"",
|
|
2217
|
+
"normal",
|
|
2218
|
+
"size",
|
|
2219
|
+
X,
|
|
2220
|
+
J
|
|
2221
|
+
] }],
|
|
2222
|
+
"container-named": [Ri],
|
|
2223
|
+
columns: [{ columns: [
|
|
2224
|
+
G,
|
|
2225
|
+
"auto",
|
|
2226
|
+
J,
|
|
2227
|
+
X,
|
|
2228
|
+
s
|
|
2229
|
+
] }],
|
|
2230
|
+
"break-after": [{ "break-after": y() }],
|
|
2231
|
+
"break-before": [{ "break-before": y() }],
|
|
2232
|
+
"break-inside": [{ "break-inside": [
|
|
2233
|
+
"auto",
|
|
2234
|
+
"avoid",
|
|
2235
|
+
"avoid-page",
|
|
2236
|
+
"avoid-column"
|
|
2237
|
+
] }],
|
|
2238
|
+
"box-decoration": [{ "box-decoration": ["slice", "clone"] }],
|
|
2239
|
+
box: [{ box: ["border", "content"] }],
|
|
2240
|
+
display: [
|
|
2241
|
+
"block",
|
|
2242
|
+
"inline-block",
|
|
2243
|
+
"inline",
|
|
2244
|
+
"flex",
|
|
2245
|
+
"inline-flex",
|
|
2246
|
+
"table",
|
|
2247
|
+
"inline-table",
|
|
2248
|
+
"table-caption",
|
|
2249
|
+
"table-cell",
|
|
2250
|
+
"table-column",
|
|
2251
|
+
"table-column-group",
|
|
2252
|
+
"table-footer-group",
|
|
2253
|
+
"table-header-group",
|
|
2254
|
+
"table-row-group",
|
|
2255
|
+
"table-row",
|
|
2256
|
+
"flow-root",
|
|
2257
|
+
"grid",
|
|
2258
|
+
"inline-grid",
|
|
2259
|
+
"contents",
|
|
2260
|
+
"list-item",
|
|
2261
|
+
"hidden"
|
|
2262
|
+
],
|
|
2263
|
+
sr: ["sr-only", "not-sr-only"],
|
|
2264
|
+
float: [{ float: [
|
|
2265
|
+
"right",
|
|
2266
|
+
"left",
|
|
2267
|
+
"none",
|
|
2268
|
+
"start",
|
|
2269
|
+
"end"
|
|
2270
|
+
] }],
|
|
2271
|
+
clear: [{ clear: [
|
|
2272
|
+
"left",
|
|
2273
|
+
"right",
|
|
2274
|
+
"both",
|
|
2275
|
+
"none",
|
|
2276
|
+
"start",
|
|
2277
|
+
"end"
|
|
2278
|
+
] }],
|
|
2279
|
+
isolation: ["isolate", "isolation-auto"],
|
|
2280
|
+
"object-fit": [{ object: [
|
|
2281
|
+
"contain",
|
|
2282
|
+
"cover",
|
|
2283
|
+
"fill",
|
|
2284
|
+
"none",
|
|
2285
|
+
"scale-down"
|
|
2286
|
+
] }],
|
|
2287
|
+
"object-position": [{ object: x() }],
|
|
2288
|
+
overflow: [{ overflow: ee() }],
|
|
2289
|
+
"overflow-x": [{ "overflow-x": ee() }],
|
|
2290
|
+
"overflow-y": [{ "overflow-y": ee() }],
|
|
2291
|
+
overscroll: [{ overscroll: S() }],
|
|
2292
|
+
"overscroll-x": [{ "overscroll-x": S() }],
|
|
2293
|
+
"overscroll-y": [{ "overscroll-y": S() }],
|
|
2294
|
+
position: [
|
|
2295
|
+
"static",
|
|
2296
|
+
"fixed",
|
|
2297
|
+
"absolute",
|
|
2298
|
+
"relative",
|
|
2299
|
+
"sticky"
|
|
2300
|
+
],
|
|
2301
|
+
inset: [{ inset: w() }],
|
|
2302
|
+
"inset-x": [{ "inset-x": w() }],
|
|
2303
|
+
"inset-y": [{ "inset-y": w() }],
|
|
2304
|
+
start: [{
|
|
2305
|
+
"inset-s": w(),
|
|
2306
|
+
start: w()
|
|
2307
|
+
}],
|
|
2308
|
+
end: [{
|
|
2309
|
+
"inset-e": w(),
|
|
2310
|
+
end: w()
|
|
2311
|
+
}],
|
|
2312
|
+
"inset-bs": [{ "inset-bs": w() }],
|
|
2313
|
+
"inset-be": [{ "inset-be": w() }],
|
|
2314
|
+
top: [{ top: w() }],
|
|
2315
|
+
right: [{ right: w() }],
|
|
2316
|
+
bottom: [{ bottom: w() }],
|
|
2317
|
+
left: [{ left: w() }],
|
|
2318
|
+
visibility: [
|
|
2319
|
+
"visible",
|
|
2320
|
+
"invisible",
|
|
2321
|
+
"collapse"
|
|
2322
|
+
],
|
|
2323
|
+
z: [{ z: [
|
|
2324
|
+
K,
|
|
2325
|
+
"auto",
|
|
2326
|
+
X,
|
|
2327
|
+
J
|
|
2328
|
+
] }],
|
|
2329
|
+
basis: [{ basis: [
|
|
2330
|
+
W,
|
|
2331
|
+
"full",
|
|
2332
|
+
"auto",
|
|
2333
|
+
s,
|
|
2334
|
+
...C()
|
|
2335
|
+
] }],
|
|
2336
|
+
"flex-direction": [{ flex: [
|
|
2337
|
+
"row",
|
|
2338
|
+
"row-reverse",
|
|
2339
|
+
"col",
|
|
2340
|
+
"col-reverse"
|
|
2341
|
+
] }],
|
|
2342
|
+
"flex-wrap": [{ flex: [
|
|
2343
|
+
"nowrap",
|
|
2344
|
+
"wrap",
|
|
2345
|
+
"wrap-reverse"
|
|
2346
|
+
] }],
|
|
2347
|
+
flex: [{ flex: [
|
|
2348
|
+
G,
|
|
2349
|
+
W,
|
|
2350
|
+
"auto",
|
|
2351
|
+
"initial",
|
|
2352
|
+
"none",
|
|
2353
|
+
J
|
|
2354
|
+
] }],
|
|
2355
|
+
grow: [{ grow: [
|
|
2356
|
+
"",
|
|
2357
|
+
G,
|
|
2358
|
+
X,
|
|
2359
|
+
J
|
|
2360
|
+
] }],
|
|
2361
|
+
shrink: [{ shrink: [
|
|
2362
|
+
"",
|
|
2363
|
+
G,
|
|
2364
|
+
X,
|
|
2365
|
+
J
|
|
2366
|
+
] }],
|
|
2367
|
+
order: [{ order: [
|
|
2368
|
+
K,
|
|
2369
|
+
"first",
|
|
2370
|
+
"last",
|
|
2371
|
+
"none",
|
|
2372
|
+
X,
|
|
2373
|
+
J
|
|
2374
|
+
] }],
|
|
2375
|
+
"grid-cols": [{ "grid-cols": T() }],
|
|
2376
|
+
"col-start-end": [{ col: E() }],
|
|
2377
|
+
"col-start": [{ "col-start": D() }],
|
|
2378
|
+
"col-end": [{ "col-end": D() }],
|
|
2379
|
+
"grid-rows": [{ "grid-rows": T() }],
|
|
2380
|
+
"row-start-end": [{ row: E() }],
|
|
2381
|
+
"row-start": [{ "row-start": D() }],
|
|
2382
|
+
"row-end": [{ "row-end": D() }],
|
|
2383
|
+
"grid-flow": [{ "grid-flow": [
|
|
2384
|
+
"row",
|
|
2385
|
+
"col",
|
|
2386
|
+
"dense",
|
|
2387
|
+
"row-dense",
|
|
2388
|
+
"col-dense"
|
|
2389
|
+
] }],
|
|
2390
|
+
"auto-cols": [{ "auto-cols": O() }],
|
|
2391
|
+
"auto-rows": [{ "auto-rows": O() }],
|
|
2392
|
+
gap: [{ gap: C() }],
|
|
2393
|
+
"gap-x": [{ "gap-x": C() }],
|
|
2394
|
+
"gap-y": [{ "gap-y": C() }],
|
|
2395
|
+
"justify-content": [{ justify: [...k(), "normal"] }],
|
|
2396
|
+
"justify-items": [{ "justify-items": [...A(), "normal"] }],
|
|
2397
|
+
"justify-self": [{ "justify-self": ["auto", ...A()] }],
|
|
2398
|
+
"align-content": [{ content: ["normal", ...k()] }],
|
|
2399
|
+
"align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
|
|
2400
|
+
"align-self": [{ self: [
|
|
2401
|
+
"auto",
|
|
2402
|
+
...A(),
|
|
2403
|
+
{ baseline: ["", "last"] }
|
|
2404
|
+
] }],
|
|
2405
|
+
"place-content": [{ "place-content": k() }],
|
|
2406
|
+
"place-items": [{ "place-items": [...A(), "baseline"] }],
|
|
2407
|
+
"place-self": [{ "place-self": ["auto", ...A()] }],
|
|
2408
|
+
p: [{ p: C() }],
|
|
2409
|
+
px: [{ px: C() }],
|
|
2410
|
+
py: [{ py: C() }],
|
|
2411
|
+
ps: [{ ps: C() }],
|
|
2412
|
+
pe: [{ pe: C() }],
|
|
2413
|
+
pbs: [{ pbs: C() }],
|
|
2414
|
+
pbe: [{ pbe: C() }],
|
|
2415
|
+
pt: [{ pt: C() }],
|
|
2416
|
+
pr: [{ pr: C() }],
|
|
2417
|
+
pb: [{ pb: C() }],
|
|
2418
|
+
pl: [{ pl: C() }],
|
|
2419
|
+
m: [{ m: j() }],
|
|
2420
|
+
mx: [{ mx: j() }],
|
|
2421
|
+
my: [{ my: j() }],
|
|
2422
|
+
ms: [{ ms: j() }],
|
|
2423
|
+
me: [{ me: j() }],
|
|
2424
|
+
mbs: [{ mbs: j() }],
|
|
2425
|
+
mbe: [{ mbe: j() }],
|
|
2426
|
+
mt: [{ mt: j() }],
|
|
2427
|
+
mr: [{ mr: j() }],
|
|
2428
|
+
mb: [{ mb: j() }],
|
|
2429
|
+
ml: [{ ml: j() }],
|
|
2430
|
+
"space-x": [{ "space-x": C() }],
|
|
2431
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
2432
|
+
"space-y": [{ "space-y": C() }],
|
|
2433
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
2434
|
+
size: [{ size: M() }],
|
|
2435
|
+
"inline-size": [{ inline: ["auto", ...te()] }],
|
|
2436
|
+
"min-inline-size": [{ "min-inline": ["auto", ...te()] }],
|
|
2437
|
+
"max-inline-size": [{ "max-inline": ["none", ...te()] }],
|
|
2438
|
+
"block-size": [{ block: ["auto", ...ne()] }],
|
|
2439
|
+
"min-block-size": [{ "min-block": ["auto", ...ne()] }],
|
|
2440
|
+
"max-block-size": [{ "max-block": ["none", ...ne()] }],
|
|
2441
|
+
w: [{ w: [
|
|
2442
|
+
s,
|
|
2443
|
+
"screen",
|
|
2444
|
+
...M()
|
|
2445
|
+
] }],
|
|
2446
|
+
"min-w": [{ "min-w": [
|
|
2447
|
+
s,
|
|
2448
|
+
"screen",
|
|
2449
|
+
"none",
|
|
2450
|
+
...M()
|
|
2451
|
+
] }],
|
|
2452
|
+
"max-w": [{ "max-w": [
|
|
2453
|
+
s,
|
|
2454
|
+
"screen",
|
|
2455
|
+
"none",
|
|
2456
|
+
"prose",
|
|
2457
|
+
{ screen: [o] },
|
|
2458
|
+
...M()
|
|
2459
|
+
] }],
|
|
2460
|
+
h: [{ h: [
|
|
2461
|
+
"screen",
|
|
2462
|
+
"lh",
|
|
2463
|
+
...M()
|
|
2464
|
+
] }],
|
|
2465
|
+
"min-h": [{ "min-h": [
|
|
2466
|
+
"screen",
|
|
2467
|
+
"lh",
|
|
2468
|
+
"none",
|
|
2469
|
+
...M()
|
|
2470
|
+
] }],
|
|
2471
|
+
"max-h": [{ "max-h": [
|
|
2472
|
+
"screen",
|
|
2473
|
+
"lh",
|
|
2474
|
+
"none",
|
|
2475
|
+
...M()
|
|
2476
|
+
] }],
|
|
2477
|
+
"font-size": [{ text: [
|
|
2478
|
+
"base",
|
|
2479
|
+
n,
|
|
2480
|
+
Ki,
|
|
2481
|
+
Y
|
|
2482
|
+
] }],
|
|
2483
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
2484
|
+
"font-style": ["italic", "not-italic"],
|
|
2485
|
+
"font-weight": [{ font: [
|
|
2486
|
+
r,
|
|
2487
|
+
Qi,
|
|
2488
|
+
Vi
|
|
2489
|
+
] }],
|
|
2490
|
+
"font-stretch": [{ "font-stretch": [
|
|
2491
|
+
"ultra-condensed",
|
|
2492
|
+
"extra-condensed",
|
|
2493
|
+
"condensed",
|
|
2494
|
+
"semi-condensed",
|
|
2495
|
+
"normal",
|
|
2496
|
+
"semi-expanded",
|
|
2497
|
+
"expanded",
|
|
2498
|
+
"extra-expanded",
|
|
2499
|
+
"ultra-expanded",
|
|
2500
|
+
ji,
|
|
2501
|
+
J
|
|
2502
|
+
] }],
|
|
2503
|
+
"font-family": [{ font: [
|
|
2504
|
+
qi,
|
|
2505
|
+
Hi,
|
|
2506
|
+
t
|
|
2507
|
+
] }],
|
|
2508
|
+
"font-features": [{ "font-features": [J] }],
|
|
2509
|
+
"fvn-normal": ["normal-nums"],
|
|
2510
|
+
"fvn-ordinal": ["ordinal"],
|
|
2511
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
2512
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
2513
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
2514
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
2515
|
+
tracking: [{ tracking: [
|
|
2516
|
+
i,
|
|
2517
|
+
X,
|
|
2518
|
+
J
|
|
2519
|
+
] }],
|
|
2520
|
+
"line-clamp": [{ "line-clamp": [
|
|
2521
|
+
G,
|
|
2522
|
+
"none",
|
|
2523
|
+
X,
|
|
2524
|
+
Bi
|
|
2525
|
+
] }],
|
|
2526
|
+
leading: [{ leading: [
|
|
2527
|
+
"none",
|
|
2528
|
+
a,
|
|
2529
|
+
...C()
|
|
2530
|
+
] }],
|
|
2531
|
+
"list-image": [{ "list-image": [
|
|
2532
|
+
"none",
|
|
2533
|
+
X,
|
|
2534
|
+
J
|
|
2535
|
+
] }],
|
|
2536
|
+
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
2537
|
+
"list-style-type": [{ list: [
|
|
2538
|
+
"disc",
|
|
2539
|
+
"decimal",
|
|
2540
|
+
"none",
|
|
2541
|
+
X,
|
|
2542
|
+
J
|
|
2543
|
+
] }],
|
|
2544
|
+
"text-alignment": [{ text: [
|
|
2545
|
+
"left",
|
|
2546
|
+
"center",
|
|
2547
|
+
"right",
|
|
2548
|
+
"justify",
|
|
2549
|
+
"start",
|
|
2550
|
+
"end"
|
|
2551
|
+
] }],
|
|
2552
|
+
"placeholder-color": [{ placeholder: N() }],
|
|
2553
|
+
"text-color": [{ text: N() }],
|
|
2554
|
+
"text-decoration": [
|
|
2555
|
+
"underline",
|
|
2556
|
+
"overline",
|
|
2557
|
+
"line-through",
|
|
2558
|
+
"no-underline"
|
|
2559
|
+
],
|
|
2560
|
+
"text-decoration-style": [{ decoration: [...ae(), "wavy"] }],
|
|
2561
|
+
"text-decoration-thickness": [{ decoration: [
|
|
2562
|
+
G,
|
|
2563
|
+
"from-font",
|
|
2564
|
+
"auto",
|
|
2565
|
+
X,
|
|
2566
|
+
Y
|
|
2567
|
+
] }],
|
|
2568
|
+
"text-decoration-color": [{ decoration: N() }],
|
|
2569
|
+
"underline-offset": [{ "underline-offset": [
|
|
2570
|
+
G,
|
|
2571
|
+
"auto",
|
|
2572
|
+
X,
|
|
2573
|
+
J
|
|
2574
|
+
] }],
|
|
2575
|
+
"text-transform": [
|
|
2576
|
+
"uppercase",
|
|
2577
|
+
"lowercase",
|
|
2578
|
+
"capitalize",
|
|
2579
|
+
"normal-case"
|
|
2580
|
+
],
|
|
2581
|
+
"text-overflow": [
|
|
2582
|
+
"truncate",
|
|
2583
|
+
"text-ellipsis",
|
|
2584
|
+
"text-clip"
|
|
2585
|
+
],
|
|
2586
|
+
"text-wrap": [{ text: [
|
|
2587
|
+
"wrap",
|
|
2588
|
+
"nowrap",
|
|
2589
|
+
"balance",
|
|
2590
|
+
"pretty"
|
|
2591
|
+
] }],
|
|
2592
|
+
indent: [{ indent: C() }],
|
|
2593
|
+
"tab-size": [{ tab: [
|
|
2594
|
+
K,
|
|
2595
|
+
X,
|
|
2596
|
+
J
|
|
2597
|
+
] }],
|
|
2598
|
+
"vertical-align": [{ align: [
|
|
2599
|
+
"baseline",
|
|
2600
|
+
"top",
|
|
2601
|
+
"middle",
|
|
2602
|
+
"bottom",
|
|
2603
|
+
"text-top",
|
|
2604
|
+
"text-bottom",
|
|
2605
|
+
"sub",
|
|
2606
|
+
"super",
|
|
2607
|
+
X,
|
|
2608
|
+
J
|
|
2609
|
+
] }],
|
|
2610
|
+
whitespace: [{ whitespace: [
|
|
2611
|
+
"normal",
|
|
2612
|
+
"nowrap",
|
|
2613
|
+
"pre",
|
|
2614
|
+
"pre-line",
|
|
2615
|
+
"pre-wrap",
|
|
2616
|
+
"break-spaces"
|
|
2617
|
+
] }],
|
|
2618
|
+
break: [{ break: [
|
|
2619
|
+
"normal",
|
|
2620
|
+
"words",
|
|
2621
|
+
"all",
|
|
2622
|
+
"keep"
|
|
2623
|
+
] }],
|
|
2624
|
+
wrap: [{ wrap: [
|
|
2625
|
+
"break-word",
|
|
2626
|
+
"anywhere",
|
|
2627
|
+
"normal"
|
|
2628
|
+
] }],
|
|
2629
|
+
hyphens: [{ hyphens: [
|
|
2630
|
+
"none",
|
|
2631
|
+
"manual",
|
|
2632
|
+
"auto"
|
|
2633
|
+
] }],
|
|
2634
|
+
content: [{ content: [
|
|
2635
|
+
"none",
|
|
2636
|
+
X,
|
|
2637
|
+
J
|
|
2638
|
+
] }],
|
|
2639
|
+
"bg-attachment": [{ bg: [
|
|
2640
|
+
"fixed",
|
|
2641
|
+
"local",
|
|
2642
|
+
"scroll"
|
|
2643
|
+
] }],
|
|
2644
|
+
"bg-clip": [{ "bg-clip": [
|
|
2645
|
+
"border",
|
|
2646
|
+
"padding",
|
|
2647
|
+
"content",
|
|
2648
|
+
"text"
|
|
2649
|
+
] }],
|
|
2650
|
+
"bg-origin": [{ "bg-origin": [
|
|
2651
|
+
"border",
|
|
2652
|
+
"padding",
|
|
2653
|
+
"content"
|
|
2654
|
+
] }],
|
|
2655
|
+
"bg-position": [{ bg: P() }],
|
|
2656
|
+
"bg-repeat": [{ bg: F() }],
|
|
2657
|
+
"bg-size": [{ bg: re() }],
|
|
2658
|
+
"bg-image": [{ bg: [
|
|
2659
|
+
"none",
|
|
2660
|
+
{
|
|
2661
|
+
linear: [
|
|
2662
|
+
{ to: [
|
|
2663
|
+
"t",
|
|
2664
|
+
"tr",
|
|
2665
|
+
"r",
|
|
2666
|
+
"br",
|
|
2667
|
+
"b",
|
|
2668
|
+
"bl",
|
|
2669
|
+
"l",
|
|
2670
|
+
"tl"
|
|
2671
|
+
] },
|
|
2672
|
+
K,
|
|
2673
|
+
X,
|
|
2674
|
+
J
|
|
2675
|
+
],
|
|
2676
|
+
radial: [
|
|
2677
|
+
"",
|
|
2678
|
+
X,
|
|
2679
|
+
J
|
|
2680
|
+
],
|
|
2681
|
+
conic: [
|
|
2682
|
+
"",
|
|
2683
|
+
K,
|
|
2684
|
+
X,
|
|
2685
|
+
J
|
|
2686
|
+
]
|
|
2687
|
+
},
|
|
2688
|
+
Xi,
|
|
2689
|
+
Wi
|
|
2690
|
+
] }],
|
|
2691
|
+
"bg-color": [{ bg: N() }],
|
|
2692
|
+
"gradient-from-pos": [{ from: ie() }],
|
|
2693
|
+
"gradient-via-pos": [{ via: ie() }],
|
|
2694
|
+
"gradient-to-pos": [{ to: ie() }],
|
|
2695
|
+
"gradient-from": [{ from: N() }],
|
|
2696
|
+
"gradient-via": [{ via: N() }],
|
|
2697
|
+
"gradient-to": [{ to: N() }],
|
|
2698
|
+
rounded: [{ rounded: I() }],
|
|
2699
|
+
"rounded-s": [{ "rounded-s": I() }],
|
|
2700
|
+
"rounded-e": [{ "rounded-e": I() }],
|
|
2701
|
+
"rounded-t": [{ "rounded-t": I() }],
|
|
2702
|
+
"rounded-r": [{ "rounded-r": I() }],
|
|
2703
|
+
"rounded-b": [{ "rounded-b": I() }],
|
|
2704
|
+
"rounded-l": [{ "rounded-l": I() }],
|
|
2705
|
+
"rounded-ss": [{ "rounded-ss": I() }],
|
|
2706
|
+
"rounded-se": [{ "rounded-se": I() }],
|
|
2707
|
+
"rounded-ee": [{ "rounded-ee": I() }],
|
|
2708
|
+
"rounded-es": [{ "rounded-es": I() }],
|
|
2709
|
+
"rounded-tl": [{ "rounded-tl": I() }],
|
|
2710
|
+
"rounded-tr": [{ "rounded-tr": I() }],
|
|
2711
|
+
"rounded-br": [{ "rounded-br": I() }],
|
|
2712
|
+
"rounded-bl": [{ "rounded-bl": I() }],
|
|
2713
|
+
"border-w": [{ border: L() }],
|
|
2714
|
+
"border-w-x": [{ "border-x": L() }],
|
|
2715
|
+
"border-w-y": [{ "border-y": L() }],
|
|
2716
|
+
"border-w-s": [{ "border-s": L() }],
|
|
2717
|
+
"border-w-e": [{ "border-e": L() }],
|
|
2718
|
+
"border-w-bs": [{ "border-bs": L() }],
|
|
2719
|
+
"border-w-be": [{ "border-be": L() }],
|
|
2720
|
+
"border-w-t": [{ "border-t": L() }],
|
|
2721
|
+
"border-w-r": [{ "border-r": L() }],
|
|
2722
|
+
"border-w-b": [{ "border-b": L() }],
|
|
2723
|
+
"border-w-l": [{ "border-l": L() }],
|
|
2724
|
+
"divide-x": [{ "divide-x": L() }],
|
|
2725
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
2726
|
+
"divide-y": [{ "divide-y": L() }],
|
|
2727
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
2728
|
+
"border-style": [{ border: [
|
|
2729
|
+
...ae(),
|
|
2730
|
+
"hidden",
|
|
2731
|
+
"none"
|
|
2732
|
+
] }],
|
|
2733
|
+
"divide-style": [{ divide: [
|
|
2734
|
+
...ae(),
|
|
2735
|
+
"hidden",
|
|
2736
|
+
"none"
|
|
2737
|
+
] }],
|
|
2738
|
+
"border-color": [{ border: N() }],
|
|
2739
|
+
"border-color-x": [{ "border-x": N() }],
|
|
2740
|
+
"border-color-y": [{ "border-y": N() }],
|
|
2741
|
+
"border-color-s": [{ "border-s": N() }],
|
|
2742
|
+
"border-color-e": [{ "border-e": N() }],
|
|
2743
|
+
"border-color-bs": [{ "border-bs": N() }],
|
|
2744
|
+
"border-color-be": [{ "border-be": N() }],
|
|
2745
|
+
"border-color-t": [{ "border-t": N() }],
|
|
2746
|
+
"border-color-r": [{ "border-r": N() }],
|
|
2747
|
+
"border-color-b": [{ "border-b": N() }],
|
|
2748
|
+
"border-color-l": [{ "border-l": N() }],
|
|
2749
|
+
"divide-color": [{ divide: N() }],
|
|
2750
|
+
"outline-style": [{ outline: [
|
|
2751
|
+
...ae(),
|
|
2752
|
+
"none",
|
|
2753
|
+
"hidden"
|
|
2754
|
+
] }],
|
|
2755
|
+
"outline-offset": [{ "outline-offset": [
|
|
2756
|
+
G,
|
|
2757
|
+
X,
|
|
2758
|
+
J
|
|
2759
|
+
] }],
|
|
2760
|
+
"outline-w": [{ outline: [
|
|
2761
|
+
"",
|
|
2762
|
+
G,
|
|
2763
|
+
Ki,
|
|
2764
|
+
Y
|
|
2765
|
+
] }],
|
|
2766
|
+
"outline-color": [{ outline: N() }],
|
|
2767
|
+
shadow: [{ shadow: [
|
|
2768
|
+
"",
|
|
2769
|
+
"inner",
|
|
2770
|
+
"none",
|
|
2771
|
+
u,
|
|
2772
|
+
Zi,
|
|
2773
|
+
Gi
|
|
2774
|
+
] }],
|
|
2775
|
+
"shadow-color": [{ shadow: N() }],
|
|
2776
|
+
"inset-shadow": [{ "inset-shadow": [
|
|
2777
|
+
"none",
|
|
2778
|
+
d,
|
|
2779
|
+
Zi,
|
|
2780
|
+
Gi
|
|
2781
|
+
] }],
|
|
2782
|
+
"inset-shadow-color": [{ "inset-shadow": N() }],
|
|
2783
|
+
"ring-w": [{ ring: L() }],
|
|
2784
|
+
"ring-w-inset": ["ring-inset"],
|
|
2785
|
+
"ring-color": [{ ring: N() }],
|
|
2786
|
+
"ring-offset-w": [{ "ring-offset": [G, Y] }],
|
|
2787
|
+
"ring-offset-color": [{ "ring-offset": N() }],
|
|
2788
|
+
"inset-ring-w": [{ "inset-ring": L() }],
|
|
2789
|
+
"inset-ring-color": [{ "inset-ring": N() }],
|
|
2790
|
+
"text-shadow": [{ "text-shadow": [
|
|
2791
|
+
"none",
|
|
2792
|
+
f,
|
|
2793
|
+
Zi,
|
|
2794
|
+
Gi
|
|
2795
|
+
] }],
|
|
2796
|
+
"text-shadow-color": [{ "text-shadow": N() }],
|
|
2797
|
+
opacity: [{ opacity: [
|
|
2798
|
+
G,
|
|
2799
|
+
X,
|
|
2800
|
+
J
|
|
2801
|
+
] }],
|
|
2802
|
+
"mix-blend": [{ "mix-blend": [
|
|
2803
|
+
...oe(),
|
|
2804
|
+
"plus-darker",
|
|
2805
|
+
"plus-lighter"
|
|
2806
|
+
] }],
|
|
2807
|
+
"bg-blend": [{ "bg-blend": oe() }],
|
|
2808
|
+
"mask-clip": [{ "mask-clip": [
|
|
2809
|
+
"border",
|
|
2810
|
+
"padding",
|
|
2811
|
+
"content",
|
|
2812
|
+
"fill",
|
|
2813
|
+
"stroke",
|
|
2814
|
+
"view"
|
|
2815
|
+
] }, "mask-no-clip"],
|
|
2816
|
+
"mask-composite": [{ mask: [
|
|
2817
|
+
"add",
|
|
2818
|
+
"subtract",
|
|
2819
|
+
"intersect",
|
|
2820
|
+
"exclude"
|
|
2821
|
+
] }],
|
|
2822
|
+
"mask-image-linear-pos": [{ "mask-linear": [G] }],
|
|
2823
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": R() }],
|
|
2824
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": R() }],
|
|
2825
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": N() }],
|
|
2826
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": N() }],
|
|
2827
|
+
"mask-image-t-from-pos": [{ "mask-t-from": R() }],
|
|
2828
|
+
"mask-image-t-to-pos": [{ "mask-t-to": R() }],
|
|
2829
|
+
"mask-image-t-from-color": [{ "mask-t-from": N() }],
|
|
2830
|
+
"mask-image-t-to-color": [{ "mask-t-to": N() }],
|
|
2831
|
+
"mask-image-r-from-pos": [{ "mask-r-from": R() }],
|
|
2832
|
+
"mask-image-r-to-pos": [{ "mask-r-to": R() }],
|
|
2833
|
+
"mask-image-r-from-color": [{ "mask-r-from": N() }],
|
|
2834
|
+
"mask-image-r-to-color": [{ "mask-r-to": N() }],
|
|
2835
|
+
"mask-image-b-from-pos": [{ "mask-b-from": R() }],
|
|
2836
|
+
"mask-image-b-to-pos": [{ "mask-b-to": R() }],
|
|
2837
|
+
"mask-image-b-from-color": [{ "mask-b-from": N() }],
|
|
2838
|
+
"mask-image-b-to-color": [{ "mask-b-to": N() }],
|
|
2839
|
+
"mask-image-l-from-pos": [{ "mask-l-from": R() }],
|
|
2840
|
+
"mask-image-l-to-pos": [{ "mask-l-to": R() }],
|
|
2841
|
+
"mask-image-l-from-color": [{ "mask-l-from": N() }],
|
|
2842
|
+
"mask-image-l-to-color": [{ "mask-l-to": N() }],
|
|
2843
|
+
"mask-image-x-from-pos": [{ "mask-x-from": R() }],
|
|
2844
|
+
"mask-image-x-to-pos": [{ "mask-x-to": R() }],
|
|
2845
|
+
"mask-image-x-from-color": [{ "mask-x-from": N() }],
|
|
2846
|
+
"mask-image-x-to-color": [{ "mask-x-to": N() }],
|
|
2847
|
+
"mask-image-y-from-pos": [{ "mask-y-from": R() }],
|
|
2848
|
+
"mask-image-y-to-pos": [{ "mask-y-to": R() }],
|
|
2849
|
+
"mask-image-y-from-color": [{ "mask-y-from": N() }],
|
|
2850
|
+
"mask-image-y-to-color": [{ "mask-y-to": N() }],
|
|
2851
|
+
"mask-image-radial": [{ "mask-radial": [X, J] }],
|
|
2852
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": R() }],
|
|
2853
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": R() }],
|
|
2854
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": N() }],
|
|
2855
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": N() }],
|
|
2856
|
+
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
2857
|
+
"mask-image-radial-size": [{ "mask-radial": [{
|
|
2858
|
+
closest: ["side", "corner"],
|
|
2859
|
+
farthest: ["side", "corner"]
|
|
2860
|
+
}] }],
|
|
2861
|
+
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
2862
|
+
"mask-image-conic-pos": [{ "mask-conic": [G] }],
|
|
2863
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": R() }],
|
|
2864
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": R() }],
|
|
2865
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": N() }],
|
|
2866
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": N() }],
|
|
2867
|
+
"mask-mode": [{ mask: [
|
|
2868
|
+
"alpha",
|
|
2869
|
+
"luminance",
|
|
2870
|
+
"match"
|
|
2871
|
+
] }],
|
|
2872
|
+
"mask-origin": [{ "mask-origin": [
|
|
2873
|
+
"border",
|
|
2874
|
+
"padding",
|
|
2875
|
+
"content",
|
|
2876
|
+
"fill",
|
|
2877
|
+
"stroke",
|
|
2878
|
+
"view"
|
|
2879
|
+
] }],
|
|
2880
|
+
"mask-position": [{ mask: P() }],
|
|
2881
|
+
"mask-repeat": [{ mask: F() }],
|
|
2882
|
+
"mask-size": [{ mask: re() }],
|
|
2883
|
+
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
2884
|
+
"mask-image": [{ mask: [
|
|
2885
|
+
"none",
|
|
2886
|
+
X,
|
|
2887
|
+
J
|
|
2888
|
+
] }],
|
|
2889
|
+
filter: [{ filter: [
|
|
2890
|
+
"",
|
|
2891
|
+
"none",
|
|
2892
|
+
X,
|
|
2893
|
+
J
|
|
2894
|
+
] }],
|
|
2895
|
+
blur: [{ blur: se() }],
|
|
2896
|
+
brightness: [{ brightness: [
|
|
2897
|
+
G,
|
|
2898
|
+
X,
|
|
2899
|
+
J
|
|
2900
|
+
] }],
|
|
2901
|
+
contrast: [{ contrast: [
|
|
2902
|
+
G,
|
|
2903
|
+
X,
|
|
2904
|
+
J
|
|
2905
|
+
] }],
|
|
2906
|
+
"drop-shadow": [{ "drop-shadow": [
|
|
2907
|
+
"",
|
|
2908
|
+
"none",
|
|
2909
|
+
p,
|
|
2910
|
+
Zi,
|
|
2911
|
+
Gi
|
|
2912
|
+
] }],
|
|
2913
|
+
"drop-shadow-color": [{ "drop-shadow": N() }],
|
|
2914
|
+
grayscale: [{ grayscale: [
|
|
2915
|
+
"",
|
|
2916
|
+
G,
|
|
2917
|
+
X,
|
|
2918
|
+
J
|
|
2919
|
+
] }],
|
|
2920
|
+
"hue-rotate": [{ "hue-rotate": [
|
|
2921
|
+
G,
|
|
2922
|
+
X,
|
|
2923
|
+
J
|
|
2924
|
+
] }],
|
|
2925
|
+
invert: [{ invert: [
|
|
2926
|
+
"",
|
|
2927
|
+
G,
|
|
2928
|
+
X,
|
|
2929
|
+
J
|
|
2930
|
+
] }],
|
|
2931
|
+
saturate: [{ saturate: [
|
|
2932
|
+
G,
|
|
2933
|
+
X,
|
|
2934
|
+
J
|
|
2935
|
+
] }],
|
|
2936
|
+
sepia: [{ sepia: [
|
|
2937
|
+
"",
|
|
2938
|
+
G,
|
|
2939
|
+
X,
|
|
2940
|
+
J
|
|
2941
|
+
] }],
|
|
2942
|
+
"backdrop-filter": [{ "backdrop-filter": [
|
|
2943
|
+
"",
|
|
2944
|
+
"none",
|
|
2945
|
+
X,
|
|
2946
|
+
J
|
|
2947
|
+
] }],
|
|
2948
|
+
"backdrop-blur": [{ "backdrop-blur": se() }],
|
|
2949
|
+
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
2950
|
+
G,
|
|
2951
|
+
X,
|
|
2952
|
+
J
|
|
2953
|
+
] }],
|
|
2954
|
+
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
2955
|
+
G,
|
|
2956
|
+
X,
|
|
2957
|
+
J
|
|
2958
|
+
] }],
|
|
2959
|
+
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
2960
|
+
"",
|
|
2961
|
+
G,
|
|
2962
|
+
X,
|
|
2963
|
+
J
|
|
2964
|
+
] }],
|
|
2965
|
+
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
2966
|
+
G,
|
|
2967
|
+
X,
|
|
2968
|
+
J
|
|
2969
|
+
] }],
|
|
2970
|
+
"backdrop-invert": [{ "backdrop-invert": [
|
|
2971
|
+
"",
|
|
2972
|
+
G,
|
|
2973
|
+
X,
|
|
2974
|
+
J
|
|
2975
|
+
] }],
|
|
2976
|
+
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
2977
|
+
G,
|
|
2978
|
+
X,
|
|
2979
|
+
J
|
|
2980
|
+
] }],
|
|
2981
|
+
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
2982
|
+
G,
|
|
2983
|
+
X,
|
|
2984
|
+
J
|
|
2985
|
+
] }],
|
|
2986
|
+
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
2987
|
+
"",
|
|
2988
|
+
G,
|
|
2989
|
+
X,
|
|
2990
|
+
J
|
|
2991
|
+
] }],
|
|
2992
|
+
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
2993
|
+
"border-spacing": [{ "border-spacing": C() }],
|
|
2994
|
+
"border-spacing-x": [{ "border-spacing-x": C() }],
|
|
2995
|
+
"border-spacing-y": [{ "border-spacing-y": C() }],
|
|
2996
|
+
"table-layout": [{ table: ["auto", "fixed"] }],
|
|
2997
|
+
caption: [{ caption: ["top", "bottom"] }],
|
|
2998
|
+
transition: [{ transition: [
|
|
2999
|
+
"",
|
|
3000
|
+
"all",
|
|
3001
|
+
"colors",
|
|
3002
|
+
"opacity",
|
|
3003
|
+
"shadow",
|
|
3004
|
+
"transform",
|
|
3005
|
+
"none",
|
|
3006
|
+
X,
|
|
3007
|
+
J
|
|
3008
|
+
] }],
|
|
3009
|
+
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
3010
|
+
duration: [{ duration: [
|
|
3011
|
+
G,
|
|
3012
|
+
"initial",
|
|
3013
|
+
X,
|
|
3014
|
+
J
|
|
3015
|
+
] }],
|
|
3016
|
+
ease: [{ ease: [
|
|
3017
|
+
"linear",
|
|
3018
|
+
"initial",
|
|
3019
|
+
_,
|
|
3020
|
+
X,
|
|
3021
|
+
J
|
|
3022
|
+
] }],
|
|
3023
|
+
delay: [{ delay: [
|
|
3024
|
+
G,
|
|
3025
|
+
X,
|
|
3026
|
+
J
|
|
3027
|
+
] }],
|
|
3028
|
+
animate: [{ animate: [
|
|
3029
|
+
"none",
|
|
3030
|
+
v,
|
|
3031
|
+
X,
|
|
3032
|
+
J
|
|
3033
|
+
] }],
|
|
3034
|
+
backface: [{ backface: ["hidden", "visible"] }],
|
|
3035
|
+
perspective: [{ perspective: [
|
|
3036
|
+
h,
|
|
3037
|
+
X,
|
|
3038
|
+
J
|
|
3039
|
+
] }],
|
|
3040
|
+
"perspective-origin": [{ "perspective-origin": x() }],
|
|
3041
|
+
rotate: [{ rotate: ce() }],
|
|
3042
|
+
"rotate-x": [{ "rotate-x": ce() }],
|
|
3043
|
+
"rotate-y": [{ "rotate-y": ce() }],
|
|
3044
|
+
"rotate-z": [{ "rotate-z": ce() }],
|
|
3045
|
+
scale: [{ scale: le() }],
|
|
3046
|
+
"scale-x": [{ "scale-x": le() }],
|
|
3047
|
+
"scale-y": [{ "scale-y": le() }],
|
|
3048
|
+
"scale-z": [{ "scale-z": le() }],
|
|
3049
|
+
"scale-3d": ["scale-3d"],
|
|
3050
|
+
skew: [{ skew: ue() }],
|
|
3051
|
+
"skew-x": [{ "skew-x": ue() }],
|
|
3052
|
+
"skew-y": [{ "skew-y": ue() }],
|
|
3053
|
+
transform: [{ transform: [
|
|
3054
|
+
X,
|
|
3055
|
+
J,
|
|
3056
|
+
"",
|
|
3057
|
+
"none",
|
|
3058
|
+
"gpu",
|
|
3059
|
+
"cpu"
|
|
3060
|
+
] }],
|
|
3061
|
+
"transform-origin": [{ origin: x() }],
|
|
3062
|
+
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
3063
|
+
translate: [{ translate: de() }],
|
|
3064
|
+
"translate-x": [{ "translate-x": de() }],
|
|
3065
|
+
"translate-y": [{ "translate-y": de() }],
|
|
3066
|
+
"translate-z": [{ "translate-z": de() }],
|
|
3067
|
+
"translate-none": ["translate-none"],
|
|
3068
|
+
zoom: [{ zoom: [
|
|
3069
|
+
K,
|
|
3070
|
+
X,
|
|
3071
|
+
J
|
|
3072
|
+
] }],
|
|
3073
|
+
accent: [{ accent: N() }],
|
|
3074
|
+
appearance: [{ appearance: ["none", "auto"] }],
|
|
3075
|
+
"caret-color": [{ caret: N() }],
|
|
3076
|
+
"color-scheme": [{ scheme: [
|
|
3077
|
+
"normal",
|
|
3078
|
+
"dark",
|
|
3079
|
+
"light",
|
|
3080
|
+
"light-dark",
|
|
3081
|
+
"only-dark",
|
|
3082
|
+
"only-light"
|
|
3083
|
+
] }],
|
|
3084
|
+
cursor: [{ cursor: [
|
|
3085
|
+
"auto",
|
|
3086
|
+
"default",
|
|
3087
|
+
"pointer",
|
|
3088
|
+
"wait",
|
|
3089
|
+
"text",
|
|
3090
|
+
"move",
|
|
3091
|
+
"help",
|
|
3092
|
+
"not-allowed",
|
|
3093
|
+
"none",
|
|
3094
|
+
"context-menu",
|
|
3095
|
+
"progress",
|
|
3096
|
+
"cell",
|
|
3097
|
+
"crosshair",
|
|
3098
|
+
"vertical-text",
|
|
3099
|
+
"alias",
|
|
3100
|
+
"copy",
|
|
3101
|
+
"no-drop",
|
|
3102
|
+
"grab",
|
|
3103
|
+
"grabbing",
|
|
3104
|
+
"all-scroll",
|
|
3105
|
+
"col-resize",
|
|
3106
|
+
"row-resize",
|
|
3107
|
+
"n-resize",
|
|
3108
|
+
"e-resize",
|
|
3109
|
+
"s-resize",
|
|
3110
|
+
"w-resize",
|
|
3111
|
+
"ne-resize",
|
|
3112
|
+
"nw-resize",
|
|
3113
|
+
"se-resize",
|
|
3114
|
+
"sw-resize",
|
|
3115
|
+
"ew-resize",
|
|
3116
|
+
"ns-resize",
|
|
3117
|
+
"nesw-resize",
|
|
3118
|
+
"nwse-resize",
|
|
3119
|
+
"zoom-in",
|
|
3120
|
+
"zoom-out",
|
|
3121
|
+
X,
|
|
3122
|
+
J
|
|
3123
|
+
] }],
|
|
3124
|
+
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
3125
|
+
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
3126
|
+
resize: [{ resize: [
|
|
3127
|
+
"none",
|
|
3128
|
+
"",
|
|
3129
|
+
"y",
|
|
3130
|
+
"x"
|
|
3131
|
+
] }],
|
|
3132
|
+
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
3133
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": N() }],
|
|
3134
|
+
"scrollbar-track-color": [{ "scrollbar-track": N() }],
|
|
3135
|
+
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
3136
|
+
"auto",
|
|
3137
|
+
"stable",
|
|
3138
|
+
"both"
|
|
3139
|
+
] }],
|
|
3140
|
+
"scrollbar-w": [{ scrollbar: [
|
|
3141
|
+
"auto",
|
|
3142
|
+
"thin",
|
|
3143
|
+
"none"
|
|
3144
|
+
] }],
|
|
3145
|
+
"scroll-m": [{ "scroll-m": C() }],
|
|
3146
|
+
"scroll-mx": [{ "scroll-mx": C() }],
|
|
3147
|
+
"scroll-my": [{ "scroll-my": C() }],
|
|
3148
|
+
"scroll-ms": [{ "scroll-ms": C() }],
|
|
3149
|
+
"scroll-me": [{ "scroll-me": C() }],
|
|
3150
|
+
"scroll-mbs": [{ "scroll-mbs": C() }],
|
|
3151
|
+
"scroll-mbe": [{ "scroll-mbe": C() }],
|
|
3152
|
+
"scroll-mt": [{ "scroll-mt": C() }],
|
|
3153
|
+
"scroll-mr": [{ "scroll-mr": C() }],
|
|
3154
|
+
"scroll-mb": [{ "scroll-mb": C() }],
|
|
3155
|
+
"scroll-ml": [{ "scroll-ml": C() }],
|
|
3156
|
+
"scroll-p": [{ "scroll-p": C() }],
|
|
3157
|
+
"scroll-px": [{ "scroll-px": C() }],
|
|
3158
|
+
"scroll-py": [{ "scroll-py": C() }],
|
|
3159
|
+
"scroll-ps": [{ "scroll-ps": C() }],
|
|
3160
|
+
"scroll-pe": [{ "scroll-pe": C() }],
|
|
3161
|
+
"scroll-pbs": [{ "scroll-pbs": C() }],
|
|
3162
|
+
"scroll-pbe": [{ "scroll-pbe": C() }],
|
|
3163
|
+
"scroll-pt": [{ "scroll-pt": C() }],
|
|
3164
|
+
"scroll-pr": [{ "scroll-pr": C() }],
|
|
3165
|
+
"scroll-pb": [{ "scroll-pb": C() }],
|
|
3166
|
+
"scroll-pl": [{ "scroll-pl": C() }],
|
|
3167
|
+
"snap-align": [{ snap: [
|
|
3168
|
+
"start",
|
|
3169
|
+
"end",
|
|
3170
|
+
"center",
|
|
3171
|
+
"align-none"
|
|
3172
|
+
] }],
|
|
3173
|
+
"snap-stop": [{ snap: ["normal", "always"] }],
|
|
3174
|
+
"snap-type": [{ snap: [
|
|
3175
|
+
"none",
|
|
3176
|
+
"x",
|
|
3177
|
+
"y",
|
|
3178
|
+
"both"
|
|
3179
|
+
] }],
|
|
3180
|
+
"snap-strictness": [{ snap: ["mandatory", "proximity"] }],
|
|
3181
|
+
touch: [{ touch: [
|
|
3182
|
+
"auto",
|
|
3183
|
+
"none",
|
|
3184
|
+
"manipulation"
|
|
3185
|
+
] }],
|
|
3186
|
+
"touch-x": [{ "touch-pan": [
|
|
3187
|
+
"x",
|
|
3188
|
+
"left",
|
|
3189
|
+
"right"
|
|
3190
|
+
] }],
|
|
3191
|
+
"touch-y": [{ "touch-pan": [
|
|
3192
|
+
"y",
|
|
3193
|
+
"up",
|
|
3194
|
+
"down"
|
|
3195
|
+
] }],
|
|
3196
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
3197
|
+
select: [{ select: [
|
|
3198
|
+
"none",
|
|
3199
|
+
"text",
|
|
3200
|
+
"all",
|
|
3201
|
+
"auto"
|
|
3202
|
+
] }],
|
|
3203
|
+
"will-change": [{ "will-change": [
|
|
3204
|
+
"auto",
|
|
3205
|
+
"scroll",
|
|
3206
|
+
"contents",
|
|
3207
|
+
"transform",
|
|
3208
|
+
X,
|
|
3209
|
+
J
|
|
3210
|
+
] }],
|
|
3211
|
+
fill: [{ fill: ["none", ...N()] }],
|
|
3212
|
+
"stroke-w": [{ stroke: [
|
|
3213
|
+
G,
|
|
3214
|
+
Ki,
|
|
3215
|
+
Y,
|
|
3216
|
+
Bi
|
|
3217
|
+
] }],
|
|
3218
|
+
stroke: [{ stroke: ["none", ...N()] }],
|
|
3219
|
+
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
3220
|
+
},
|
|
3221
|
+
conflictingClassGroups: {
|
|
3222
|
+
"container-named": ["container-type"],
|
|
3223
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
3224
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
3225
|
+
inset: [
|
|
3226
|
+
"inset-x",
|
|
3227
|
+
"inset-y",
|
|
3228
|
+
"inset-bs",
|
|
3229
|
+
"inset-be",
|
|
3230
|
+
"start",
|
|
3231
|
+
"end",
|
|
3232
|
+
"top",
|
|
3233
|
+
"right",
|
|
3234
|
+
"bottom",
|
|
3235
|
+
"left"
|
|
3236
|
+
],
|
|
3237
|
+
"inset-x": [
|
|
3238
|
+
"start",
|
|
3239
|
+
"end",
|
|
3240
|
+
"right",
|
|
3241
|
+
"left"
|
|
3242
|
+
],
|
|
3243
|
+
"inset-y": [
|
|
3244
|
+
"inset-bs",
|
|
3245
|
+
"inset-be",
|
|
3246
|
+
"top",
|
|
3247
|
+
"bottom"
|
|
3248
|
+
],
|
|
3249
|
+
flex: [
|
|
3250
|
+
"basis",
|
|
3251
|
+
"grow",
|
|
3252
|
+
"shrink"
|
|
3253
|
+
],
|
|
3254
|
+
gap: ["gap-x", "gap-y"],
|
|
3255
|
+
p: [
|
|
3256
|
+
"px",
|
|
3257
|
+
"py",
|
|
3258
|
+
"ps",
|
|
3259
|
+
"pe",
|
|
3260
|
+
"pbs",
|
|
3261
|
+
"pbe",
|
|
3262
|
+
"pt",
|
|
3263
|
+
"pr",
|
|
3264
|
+
"pb",
|
|
3265
|
+
"pl"
|
|
3266
|
+
],
|
|
3267
|
+
px: [
|
|
3268
|
+
"ps",
|
|
3269
|
+
"pe",
|
|
3270
|
+
"pr",
|
|
3271
|
+
"pl"
|
|
3272
|
+
],
|
|
3273
|
+
py: [
|
|
3274
|
+
"pbs",
|
|
3275
|
+
"pbe",
|
|
3276
|
+
"pt",
|
|
3277
|
+
"pb"
|
|
3278
|
+
],
|
|
3279
|
+
m: [
|
|
3280
|
+
"mx",
|
|
3281
|
+
"my",
|
|
3282
|
+
"ms",
|
|
3283
|
+
"me",
|
|
3284
|
+
"mbs",
|
|
3285
|
+
"mbe",
|
|
3286
|
+
"mt",
|
|
3287
|
+
"mr",
|
|
3288
|
+
"mb",
|
|
3289
|
+
"ml"
|
|
3290
|
+
],
|
|
3291
|
+
mx: [
|
|
3292
|
+
"ms",
|
|
3293
|
+
"me",
|
|
3294
|
+
"mr",
|
|
3295
|
+
"ml"
|
|
3296
|
+
],
|
|
3297
|
+
my: [
|
|
3298
|
+
"mbs",
|
|
3299
|
+
"mbe",
|
|
3300
|
+
"mt",
|
|
3301
|
+
"mb"
|
|
3302
|
+
],
|
|
3303
|
+
size: ["w", "h"],
|
|
3304
|
+
"font-size": ["leading"],
|
|
3305
|
+
"fvn-normal": [
|
|
3306
|
+
"fvn-ordinal",
|
|
3307
|
+
"fvn-slashed-zero",
|
|
3308
|
+
"fvn-figure",
|
|
3309
|
+
"fvn-spacing",
|
|
3310
|
+
"fvn-fraction"
|
|
3311
|
+
],
|
|
3312
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
3313
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
3314
|
+
"fvn-figure": ["fvn-normal"],
|
|
3315
|
+
"fvn-spacing": ["fvn-normal"],
|
|
3316
|
+
"fvn-fraction": ["fvn-normal"],
|
|
3317
|
+
"line-clamp": ["display", "overflow"],
|
|
3318
|
+
rounded: [
|
|
3319
|
+
"rounded-s",
|
|
3320
|
+
"rounded-e",
|
|
3321
|
+
"rounded-t",
|
|
3322
|
+
"rounded-r",
|
|
3323
|
+
"rounded-b",
|
|
3324
|
+
"rounded-l",
|
|
3325
|
+
"rounded-ss",
|
|
3326
|
+
"rounded-se",
|
|
3327
|
+
"rounded-ee",
|
|
3328
|
+
"rounded-es",
|
|
3329
|
+
"rounded-tl",
|
|
3330
|
+
"rounded-tr",
|
|
3331
|
+
"rounded-br",
|
|
3332
|
+
"rounded-bl"
|
|
3333
|
+
],
|
|
3334
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
3335
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
3336
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
3337
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
3338
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
3339
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
3340
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
3341
|
+
"border-w": [
|
|
3342
|
+
"border-w-x",
|
|
3343
|
+
"border-w-y",
|
|
3344
|
+
"border-w-s",
|
|
3345
|
+
"border-w-e",
|
|
3346
|
+
"border-w-bs",
|
|
3347
|
+
"border-w-be",
|
|
3348
|
+
"border-w-t",
|
|
3349
|
+
"border-w-r",
|
|
3350
|
+
"border-w-b",
|
|
3351
|
+
"border-w-l"
|
|
3352
|
+
],
|
|
3353
|
+
"border-w-x": [
|
|
3354
|
+
"border-w-s",
|
|
3355
|
+
"border-w-e",
|
|
3356
|
+
"border-w-r",
|
|
3357
|
+
"border-w-l"
|
|
3358
|
+
],
|
|
3359
|
+
"border-w-y": [
|
|
3360
|
+
"border-w-bs",
|
|
3361
|
+
"border-w-be",
|
|
3362
|
+
"border-w-t",
|
|
3363
|
+
"border-w-b"
|
|
3364
|
+
],
|
|
3365
|
+
"border-color": [
|
|
3366
|
+
"border-color-x",
|
|
3367
|
+
"border-color-y",
|
|
3368
|
+
"border-color-s",
|
|
3369
|
+
"border-color-e",
|
|
3370
|
+
"border-color-bs",
|
|
3371
|
+
"border-color-be",
|
|
3372
|
+
"border-color-t",
|
|
3373
|
+
"border-color-r",
|
|
3374
|
+
"border-color-b",
|
|
3375
|
+
"border-color-l"
|
|
3376
|
+
],
|
|
3377
|
+
"border-color-x": [
|
|
3378
|
+
"border-color-s",
|
|
3379
|
+
"border-color-e",
|
|
3380
|
+
"border-color-r",
|
|
3381
|
+
"border-color-l"
|
|
3382
|
+
],
|
|
3383
|
+
"border-color-y": [
|
|
3384
|
+
"border-color-bs",
|
|
3385
|
+
"border-color-be",
|
|
3386
|
+
"border-color-t",
|
|
3387
|
+
"border-color-b"
|
|
3388
|
+
],
|
|
3389
|
+
translate: [
|
|
3390
|
+
"translate-x",
|
|
3391
|
+
"translate-y",
|
|
3392
|
+
"translate-none"
|
|
3393
|
+
],
|
|
3394
|
+
"translate-none": [
|
|
3395
|
+
"translate",
|
|
3396
|
+
"translate-x",
|
|
3397
|
+
"translate-y",
|
|
3398
|
+
"translate-z"
|
|
3399
|
+
],
|
|
3400
|
+
"scroll-m": [
|
|
3401
|
+
"scroll-mx",
|
|
3402
|
+
"scroll-my",
|
|
3403
|
+
"scroll-ms",
|
|
3404
|
+
"scroll-me",
|
|
3405
|
+
"scroll-mbs",
|
|
3406
|
+
"scroll-mbe",
|
|
3407
|
+
"scroll-mt",
|
|
3408
|
+
"scroll-mr",
|
|
3409
|
+
"scroll-mb",
|
|
3410
|
+
"scroll-ml"
|
|
3411
|
+
],
|
|
3412
|
+
"scroll-mx": [
|
|
3413
|
+
"scroll-ms",
|
|
3414
|
+
"scroll-me",
|
|
3415
|
+
"scroll-mr",
|
|
3416
|
+
"scroll-ml"
|
|
3417
|
+
],
|
|
3418
|
+
"scroll-my": [
|
|
3419
|
+
"scroll-mbs",
|
|
3420
|
+
"scroll-mbe",
|
|
3421
|
+
"scroll-mt",
|
|
3422
|
+
"scroll-mb"
|
|
3423
|
+
],
|
|
3424
|
+
"scroll-p": [
|
|
3425
|
+
"scroll-px",
|
|
3426
|
+
"scroll-py",
|
|
3427
|
+
"scroll-ps",
|
|
3428
|
+
"scroll-pe",
|
|
3429
|
+
"scroll-pbs",
|
|
3430
|
+
"scroll-pbe",
|
|
3431
|
+
"scroll-pt",
|
|
3432
|
+
"scroll-pr",
|
|
3433
|
+
"scroll-pb",
|
|
3434
|
+
"scroll-pl"
|
|
3435
|
+
],
|
|
3436
|
+
"scroll-px": [
|
|
3437
|
+
"scroll-ps",
|
|
3438
|
+
"scroll-pe",
|
|
3439
|
+
"scroll-pr",
|
|
3440
|
+
"scroll-pl"
|
|
3441
|
+
],
|
|
3442
|
+
"scroll-py": [
|
|
3443
|
+
"scroll-pbs",
|
|
3444
|
+
"scroll-pbe",
|
|
3445
|
+
"scroll-pt",
|
|
3446
|
+
"scroll-pb"
|
|
3447
|
+
],
|
|
3448
|
+
touch: [
|
|
3449
|
+
"touch-x",
|
|
3450
|
+
"touch-y",
|
|
3451
|
+
"touch-pz"
|
|
3452
|
+
],
|
|
3453
|
+
"touch-x": ["touch"],
|
|
3454
|
+
"touch-y": ["touch"],
|
|
3455
|
+
"touch-pz": ["touch"]
|
|
3456
|
+
},
|
|
3457
|
+
conflictingClassGroupModifiers: { "font-size": ["leading"] },
|
|
3458
|
+
postfixLookupClassGroups: ["container-type"],
|
|
3459
|
+
orderSensitiveModifiers: [
|
|
3460
|
+
"*",
|
|
3461
|
+
"**",
|
|
3462
|
+
"after",
|
|
3463
|
+
"backdrop",
|
|
3464
|
+
"before",
|
|
3465
|
+
"details-content",
|
|
3466
|
+
"file",
|
|
3467
|
+
"first-letter",
|
|
3468
|
+
"first-line",
|
|
3469
|
+
"marker",
|
|
3470
|
+
"placeholder",
|
|
3471
|
+
"selection"
|
|
3472
|
+
]
|
|
3473
|
+
};
|
|
3474
|
+
});
|
|
3475
|
+
// src/lib/utils.ts
|
|
3476
|
+
function $(...e) {
|
|
3477
|
+
return sa(Ft(e));
|
|
3478
|
+
}
|
|
3479
|
+
// src/components/ui/command.tsx
|
|
3480
|
+
function ca({ className: e, ...t }) {
|
|
3481
|
+
return /* @__PURE__ */ T(k, {
|
|
3482
|
+
"data-slot": "command",
|
|
3483
|
+
className: a("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", e),
|
|
3484
|
+
...t
|
|
3485
|
+
});
|
|
3486
|
+
}
|
|
3487
|
+
function la({ title: e = "Command Palette", description: t = "Search for a command to run...", children: n, className: r, showCloseButton: i = !0, ...o }) {
|
|
3488
|
+
return /* @__PURE__ */ E(vn, {
|
|
3489
|
+
...o,
|
|
3490
|
+
children: [/* @__PURE__ */ E(wn, {
|
|
3491
|
+
className: "sr-only",
|
|
3492
|
+
children: [/* @__PURE__ */ T(En, { children: e }), /* @__PURE__ */ T(Dn, { children: t })]
|
|
3493
|
+
}), /* @__PURE__ */ T(Cn, {
|
|
3494
|
+
className: a("overflow-hidden p-0", r),
|
|
3495
|
+
showCloseButton: i,
|
|
3496
|
+
children: /* @__PURE__ */ T(ca, {
|
|
3497
|
+
className: "**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
3498
|
+
children: n
|
|
3499
|
+
})
|
|
3500
|
+
})]
|
|
3501
|
+
});
|
|
3502
|
+
}
|
|
3503
|
+
function ua({ className: e, ...t }) {
|
|
3504
|
+
return /* @__PURE__ */ E("div", {
|
|
3505
|
+
"data-slot": "command-input-wrapper",
|
|
3506
|
+
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
3507
|
+
children: [/* @__PURE__ */ T(pt, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ T(k.Input, {
|
|
3508
|
+
"data-slot": "command-input",
|
|
3509
|
+
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
|
+
...t
|
|
3511
|
+
})]
|
|
3512
|
+
});
|
|
3513
|
+
}
|
|
3514
|
+
function da({ className: e, ...t }) {
|
|
3515
|
+
return /* @__PURE__ */ T(k.List, {
|
|
3516
|
+
"data-slot": "command-list",
|
|
3517
|
+
className: a("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", e),
|
|
3518
|
+
...t
|
|
3519
|
+
});
|
|
3520
|
+
}
|
|
3521
|
+
function fa({ ...e }) {
|
|
3522
|
+
return /* @__PURE__ */ T(k.Empty, {
|
|
3523
|
+
"data-slot": "command-empty",
|
|
3524
|
+
className: "py-6 text-center text-sm",
|
|
3525
|
+
...e
|
|
3526
|
+
});
|
|
3527
|
+
}
|
|
3528
|
+
function pa({ className: e, ...t }) {
|
|
3529
|
+
return /* @__PURE__ */ T(k.Group, {
|
|
3530
|
+
"data-slot": "command-group",
|
|
3531
|
+
className: a("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", e),
|
|
3532
|
+
...t
|
|
3533
|
+
});
|
|
3534
|
+
}
|
|
3535
|
+
function ma({ className: e, ...t }) {
|
|
3536
|
+
return /* @__PURE__ */ T(k.Separator, {
|
|
3537
|
+
"data-slot": "command-separator",
|
|
3538
|
+
className: a("-mx-1 h-px bg-border", e),
|
|
3539
|
+
...t
|
|
3540
|
+
});
|
|
3541
|
+
}
|
|
3542
|
+
function ha({ className: e, ...t }) {
|
|
3543
|
+
return /* @__PURE__ */ T(k.Item, {
|
|
3544
|
+
"data-slot": "command-item",
|
|
3545
|
+
className: a("relative flex cursor-default 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
|
+
...t
|
|
3547
|
+
});
|
|
3548
|
+
}
|
|
3549
|
+
function ga({ className: e, ...t }) {
|
|
3550
|
+
return /* @__PURE__ */ T("span", {
|
|
3551
|
+
"data-slot": "command-shortcut",
|
|
3552
|
+
className: a("ml-auto text-xs tracking-widest text-muted-foreground", e),
|
|
3553
|
+
...t
|
|
3554
|
+
});
|
|
3555
|
+
}
|
|
3556
|
+
// src/components/ui/combobox.tsx
|
|
3557
|
+
function _a({ options: t, value: n, onChange: r, placeholder: i = "请选择...", searchPlaceholder: a = "搜索...", onSearch: o, loading: s = !1, emptyText: c = "未找到结果", disabled: l, className: u }) {
|
|
3558
|
+
let [d, f] = e.useState(!1);
|
|
3559
|
+
return /* @__PURE__ */ E(Gn, {
|
|
3560
|
+
open: d,
|
|
3561
|
+
onOpenChange: f,
|
|
3562
|
+
children: [/* @__PURE__ */ T(Kn, {
|
|
3563
|
+
asChild: !0,
|
|
3564
|
+
children: /* @__PURE__ */ E(H, {
|
|
3565
|
+
variant: "outline",
|
|
3566
|
+
role: "combobox",
|
|
3567
|
+
"aria-expanded": d,
|
|
3568
|
+
disabled: l,
|
|
3569
|
+
className: $("w-[200px] justify-between", u),
|
|
3570
|
+
children: [n ? t.find((e) => e.value === n)?.label ?? n : i, /* @__PURE__ */ T(He, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })]
|
|
3571
|
+
})
|
|
3572
|
+
}), /* @__PURE__ */ T(qn, {
|
|
3573
|
+
className: "w-[200px] p-0",
|
|
3574
|
+
children: /* @__PURE__ */ E(ca, { children: [/* @__PURE__ */ T(ua, {
|
|
3575
|
+
placeholder: a,
|
|
3576
|
+
onValueChange: o
|
|
3577
|
+
}), /* @__PURE__ */ T(da, { children: s ? /* @__PURE__ */ T("div", {
|
|
3578
|
+
className: "py-6 text-center text-sm text-muted-foreground",
|
|
3579
|
+
children: "加载中..."
|
|
3580
|
+
}) : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(fa, { children: c }), /* @__PURE__ */ T(pa, { children: t.map((e) => /* @__PURE__ */ E(ha, {
|
|
3581
|
+
value: e.value,
|
|
3582
|
+
disabled: e.disabled,
|
|
3583
|
+
onSelect: (e) => {
|
|
3584
|
+
r?.(e === n ? "" : e), f(!1);
|
|
3585
|
+
},
|
|
3586
|
+
children: [/* @__PURE__ */ T(Me, { className: $("mr-2 h-4 w-4", n === e.value ? "opacity-100" : "opacity-0") }), e.label]
|
|
3587
|
+
}, e.value)) })] }) })] })
|
|
3588
|
+
})]
|
|
3589
|
+
});
|
|
3590
|
+
}
|
|
3591
|
+
var va = _a;
|
|
3592
|
+
// src/components/ui/date-picker.tsx
|
|
3593
|
+
function ya(e) {
|
|
3594
|
+
return e ? e.toLocaleDateString("zh-CN") : "";
|
|
3595
|
+
}
|
|
3596
|
+
function ba({ value: t, onChange: n, placeholder: r = "选择日期", disabled: i, className: a }) {
|
|
3597
|
+
let [o, s] = e.useState(!1);
|
|
3598
|
+
return /* @__PURE__ */ E(Gn, {
|
|
3599
|
+
open: o,
|
|
3600
|
+
onOpenChange: s,
|
|
3601
|
+
children: [/* @__PURE__ */ T(Kn, {
|
|
3602
|
+
asChild: !0,
|
|
3603
|
+
children: /* @__PURE__ */ E(H, {
|
|
3604
|
+
variant: "outline",
|
|
3605
|
+
disabled: i,
|
|
3606
|
+
className: $("w-[200px] justify-start font-normal", !t && "text-muted-foreground", a),
|
|
3607
|
+
children: [/* @__PURE__ */ T(Ae, { className: "mr-2 h-4 w-4" }), t ? ya(t) : r]
|
|
3608
|
+
})
|
|
3609
|
+
}), /* @__PURE__ */ T(qn, {
|
|
3610
|
+
className: "w-auto p-0",
|
|
3611
|
+
align: "start",
|
|
3612
|
+
children: /* @__PURE__ */ T(an, {
|
|
3613
|
+
mode: "single",
|
|
3614
|
+
selected: t,
|
|
3615
|
+
onSelect: (e) => {
|
|
3616
|
+
n?.(e), s(!1);
|
|
3617
|
+
}
|
|
3618
|
+
})
|
|
3619
|
+
})]
|
|
3620
|
+
});
|
|
3621
|
+
}
|
|
3622
|
+
function xa({ value: t, onChange: n, placeholder: r = "选择日期范围", disabled: i, className: a }) {
|
|
3623
|
+
let [o, s] = e.useState(!1), c = t?.from ? `${ya(t.from)}${t.to ? ` ~ ${ya(t.to)}` : ""}` : "";
|
|
3624
|
+
return /* @__PURE__ */ E(Gn, {
|
|
3625
|
+
open: o,
|
|
3626
|
+
onOpenChange: s,
|
|
3627
|
+
children: [/* @__PURE__ */ T(Kn, {
|
|
3628
|
+
asChild: !0,
|
|
3629
|
+
children: /* @__PURE__ */ E(H, {
|
|
3630
|
+
variant: "outline",
|
|
3631
|
+
disabled: i,
|
|
3632
|
+
className: $("w-[280px] justify-start font-normal", !c && "text-muted-foreground", a),
|
|
3633
|
+
children: [/* @__PURE__ */ T(Ae, { className: "mr-2 h-4 w-4" }), c || r]
|
|
3634
|
+
})
|
|
3635
|
+
}), /* @__PURE__ */ T(qn, {
|
|
3636
|
+
className: "w-auto p-0",
|
|
3637
|
+
align: "start",
|
|
3638
|
+
children: /* @__PURE__ */ T(an, {
|
|
3639
|
+
mode: "range",
|
|
3640
|
+
numberOfMonths: 2,
|
|
3641
|
+
selected: t,
|
|
3642
|
+
defaultMonth: t?.from,
|
|
3643
|
+
onSelect: (e) => {
|
|
3644
|
+
n?.(e), e?.to && s(!1);
|
|
3645
|
+
}
|
|
3646
|
+
})
|
|
3647
|
+
})]
|
|
3648
|
+
});
|
|
3649
|
+
}
|
|
3650
|
+
// src/components/ui/form.tsx
|
|
3651
|
+
var Sa = j, Ca = e.createContext({}), wa = ({ ...e }) => /* @__PURE__ */ T(Ca.Provider, {
|
|
3652
|
+
value: { name: e.name },
|
|
3653
|
+
children: /* @__PURE__ */ T(A, { ...e })
|
|
3654
|
+
}), Ta = () => {
|
|
3655
|
+
let t = e.useContext(Ca), n = e.useContext(Ea), { getFieldState: r } = M(), i = te({ name: t.name }), a = r(t.name, i);
|
|
3656
|
+
if (!t) throw Error("useFormField should be used within <FormField>");
|
|
3657
|
+
let { id: o } = n;
|
|
3658
|
+
return {
|
|
3659
|
+
id: o,
|
|
3660
|
+
name: t.name,
|
|
3661
|
+
formItemId: `${o}-form-item`,
|
|
3662
|
+
formDescriptionId: `${o}-form-item-description`,
|
|
3663
|
+
formMessageId: `${o}-form-item-message`,
|
|
3664
|
+
...a
|
|
3665
|
+
};
|
|
3666
|
+
}, Ea = e.createContext({});
|
|
3667
|
+
function Da({ className: t, ...n }) {
|
|
3668
|
+
let r = e.useId();
|
|
3669
|
+
return /* @__PURE__ */ T(Ea.Provider, {
|
|
3670
|
+
value: { id: r },
|
|
3671
|
+
children: /* @__PURE__ */ T("div", {
|
|
3672
|
+
"data-slot": "form-item",
|
|
3673
|
+
className: a("grid gap-2", t),
|
|
3674
|
+
...n
|
|
3675
|
+
})
|
|
3676
|
+
});
|
|
3677
|
+
}
|
|
3678
|
+
function Oa({ className: e, ...t }) {
|
|
3679
|
+
let { error: n, formItemId: r } = Ta();
|
|
3680
|
+
return /* @__PURE__ */ T(Wn, {
|
|
3681
|
+
"data-slot": "form-label",
|
|
3682
|
+
"data-error": !!n,
|
|
3683
|
+
className: a("data-[error=true]:text-destructive", e),
|
|
3684
|
+
htmlFor: r,
|
|
3685
|
+
...t
|
|
3686
|
+
});
|
|
3687
|
+
}
|
|
3688
|
+
function ka({ ...e }) {
|
|
3689
|
+
let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = Ta();
|
|
3690
|
+
return /* @__PURE__ */ T(x.Root, {
|
|
3691
|
+
"data-slot": "form-control",
|
|
3692
|
+
id: n,
|
|
3693
|
+
"aria-describedby": t ? `${r} ${i}` : `${r}`,
|
|
3694
|
+
"aria-invalid": !!t,
|
|
3695
|
+
...e
|
|
3696
|
+
});
|
|
3697
|
+
}
|
|
3698
|
+
function Aa({ className: e, ...t }) {
|
|
3699
|
+
let { formDescriptionId: n } = Ta();
|
|
3700
|
+
return /* @__PURE__ */ T("p", {
|
|
3701
|
+
"data-slot": "form-description",
|
|
3702
|
+
id: n,
|
|
3703
|
+
className: a("text-sm text-muted-foreground", e),
|
|
3704
|
+
...t
|
|
3705
|
+
});
|
|
3706
|
+
}
|
|
3707
|
+
function ja({ className: e, ...t }) {
|
|
3708
|
+
let { error: n, formMessageId: r } = Ta(), i = n ? String(n?.message ?? "") : t.children;
|
|
3709
|
+
return i ? /* @__PURE__ */ T("p", {
|
|
3710
|
+
"data-slot": "form-message",
|
|
3711
|
+
id: r,
|
|
3712
|
+
className: a("text-sm text-destructive", e),
|
|
3713
|
+
...t,
|
|
3714
|
+
children: i
|
|
3715
|
+
}) : null;
|
|
3716
|
+
}
|
|
3717
|
+
// src/components/ui/sonner.tsx
|
|
3718
|
+
var Ma = ({ ...e }) => {
|
|
3719
|
+
let { theme: t = "system" } = ne();
|
|
3720
|
+
return /* @__PURE__ */ T(N, {
|
|
3721
|
+
theme: t,
|
|
3722
|
+
className: "toaster group",
|
|
3723
|
+
icons: {
|
|
3724
|
+
success: /* @__PURE__ */ T(We, { className: "size-4" }),
|
|
3725
|
+
info: /* @__PURE__ */ T(ot, { className: "size-4" }),
|
|
3726
|
+
warning: /* @__PURE__ */ T(Ct, { className: "size-4" }),
|
|
3727
|
+
error: /* @__PURE__ */ T(dt, { className: "size-4" }),
|
|
3728
|
+
loading: /* @__PURE__ */ T(V, { className: "size-4 animate-spin" })
|
|
3729
|
+
},
|
|
3730
|
+
style: {
|
|
3731
|
+
"--normal-bg": "var(--popover)",
|
|
3732
|
+
"--normal-text": "var(--popover-foreground)",
|
|
3733
|
+
"--normal-border": "var(--border)",
|
|
3734
|
+
"--border-radius": "var(--radius)"
|
|
3735
|
+
},
|
|
3736
|
+
...e
|
|
3737
|
+
});
|
|
3738
|
+
};
|
|
3739
|
+
// src/hooks/use-media-query.ts
|
|
3740
|
+
function Na(t) {
|
|
3741
|
+
let [n, r] = e.useState(() => typeof window < "u" && window.matchMedia(t).matches);
|
|
3742
|
+
return e.useEffect(() => {
|
|
3743
|
+
let e = window.matchMedia(t), n = (e) => r(e.matches);
|
|
3744
|
+
return e.addEventListener("change", n), r(e.matches), () => e.removeEventListener("change", n);
|
|
3745
|
+
}, [t]), n;
|
|
3746
|
+
}
|
|
3747
|
+
// src/components/ui/standard-table.tsx
|
|
3748
|
+
function Pa({ 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: _ }) {
|
|
3749
|
+
let [v, y] = e.useState([]), [b, x] = e.useState(""), [ee, S] = e.useState({}), C = Na("(max-width: 767px)") && g, D = oe({
|
|
3750
|
+
data: n,
|
|
3751
|
+
columns: t,
|
|
3752
|
+
state: d ? {
|
|
3753
|
+
sorting: v,
|
|
3754
|
+
globalFilter: b,
|
|
3755
|
+
pagination: {
|
|
3756
|
+
pageIndex: p ?? 0,
|
|
3757
|
+
pageSize: s
|
|
3758
|
+
}
|
|
3759
|
+
} : {
|
|
3760
|
+
sorting: v,
|
|
3761
|
+
globalFilter: b
|
|
3762
|
+
},
|
|
3763
|
+
onSortingChange: y,
|
|
3764
|
+
onGlobalFilterChange: x,
|
|
3765
|
+
getCoreRowModel: re(),
|
|
3766
|
+
getSortedRowModel: a ? ae() : void 0,
|
|
3767
|
+
getFilteredRowModel: I(),
|
|
3768
|
+
getPaginationRowModel: d ? void 0 : L(),
|
|
3769
|
+
getExpandedRowModel: o ? ie() : void 0,
|
|
3770
|
+
getRowCanExpand: o ? () => !0 : void 0,
|
|
3771
|
+
manualPagination: d,
|
|
3772
|
+
pageCount: d ? Math.max(1, f ?? 1) : void 0,
|
|
3773
|
+
onPaginationChange: d ? (e) => {
|
|
3774
|
+
let t = typeof e == "function" ? e({
|
|
3775
|
+
pageIndex: p ?? 0,
|
|
3776
|
+
pageSize: s
|
|
3777
|
+
}) : e;
|
|
3778
|
+
m?.(t.pageIndex, t.pageSize);
|
|
3779
|
+
} : void 0,
|
|
3780
|
+
initialState: d ? void 0 : { pagination: { pageSize: s } }
|
|
3781
|
+
}), O = D.getRowModel().rows, k = d ? Math.max(1, f ?? 1) : Math.max(1, D.getPageCount()), A = d ? p ?? 0 : D.getState().pagination.pageIndex, j = /* @__PURE__ */ E("div", {
|
|
3782
|
+
className: "flex flex-wrap items-center justify-between gap-2",
|
|
3783
|
+
children: [/* @__PURE__ */ T("span", {
|
|
3784
|
+
className: "text-sm text-muted-foreground",
|
|
3785
|
+
children: h
|
|
3786
|
+
}), /* @__PURE__ */ E("div", {
|
|
3787
|
+
className: "flex items-center gap-2",
|
|
3788
|
+
children: [
|
|
3789
|
+
/* @__PURE__ */ E("span", {
|
|
3790
|
+
className: "text-sm text-muted-foreground",
|
|
3791
|
+
children: [
|
|
3792
|
+
"第 ",
|
|
3793
|
+
A + 1,
|
|
3794
|
+
" / ",
|
|
3795
|
+
k,
|
|
3796
|
+
" 页"
|
|
3797
|
+
]
|
|
3798
|
+
}),
|
|
3799
|
+
/* @__PURE__ */ T(H, {
|
|
3800
|
+
variant: "outline",
|
|
3801
|
+
size: "sm",
|
|
3802
|
+
className: "min-h-9",
|
|
3803
|
+
onClick: () => d ? m?.(A - 1, s) : D.previousPage(),
|
|
3804
|
+
disabled: A <= 0,
|
|
3805
|
+
children: "上一页"
|
|
3806
|
+
}),
|
|
3807
|
+
/* @__PURE__ */ T(H, {
|
|
3808
|
+
variant: "outline",
|
|
3809
|
+
size: "sm",
|
|
3810
|
+
className: "min-h-9",
|
|
3811
|
+
onClick: () => d ? m?.(A + 1, s) : D.nextPage(),
|
|
3812
|
+
disabled: A >= k - 1,
|
|
3813
|
+
children: "下一页"
|
|
3814
|
+
})
|
|
3815
|
+
]
|
|
3816
|
+
})]
|
|
3817
|
+
});
|
|
3818
|
+
return /* @__PURE__ */ E("div", {
|
|
3819
|
+
className: $("space-y-2", c),
|
|
3820
|
+
children: [r && /* @__PURE__ */ T(Un, {
|
|
3821
|
+
value: b,
|
|
3822
|
+
onChange: (e) => x(e.target.value),
|
|
3823
|
+
placeholder: i,
|
|
3824
|
+
className: "max-w-sm"
|
|
3825
|
+
}), C ? /* @__PURE__ */ E("div", {
|
|
3826
|
+
className: "space-y-2",
|
|
3827
|
+
children: [
|
|
3828
|
+
l && /* @__PURE__ */ E("div", {
|
|
3829
|
+
className: "flex items-center justify-center gap-2 py-4 text-sm text-muted-foreground",
|
|
3830
|
+
children: [/* @__PURE__ */ T(V, { className: "size-4 animate-spin" }), "加载中..."]
|
|
3831
|
+
}),
|
|
3832
|
+
O.length ? /* @__PURE__ */ T("div", {
|
|
3833
|
+
className: "flex flex-col gap-2",
|
|
3834
|
+
children: O.map((t) => /* @__PURE__ */ E("div", {
|
|
3835
|
+
className: "rounded-lg border bg-card p-3",
|
|
3836
|
+
children: [_ ? _(t.original) : /* @__PURE__ */ T("dl", {
|
|
3837
|
+
className: "grid grid-cols-[auto_1fr] gap-x-3 gap-y-1.5 text-sm",
|
|
3838
|
+
children: t.getVisibleCells().filter((e) => !e.column.columnDef.meta?.cardHidden).map((n) => /* @__PURE__ */ E(e.Fragment, { children: [/* @__PURE__ */ T("dt", {
|
|
3839
|
+
className: "whitespace-nowrap text-muted-foreground",
|
|
3840
|
+
children: typeof n.column.columnDef.header == "string" ? n.column.columnDef.header : n.column.id
|
|
3841
|
+
}), /* @__PURE__ */ T("dd", {
|
|
3842
|
+
className: "break-all",
|
|
3843
|
+
children: n.column.columnDef.meta?.cardCell ? n.column.columnDef.meta.cardCell(t.original) : F(n.column.columnDef.cell, n.getContext())
|
|
3844
|
+
})] }, n.id))
|
|
3845
|
+
}), o && /* @__PURE__ */ E("details", {
|
|
3846
|
+
className: "mt-2",
|
|
3847
|
+
children: [/* @__PURE__ */ T("summary", {
|
|
3848
|
+
className: "cursor-pointer text-xs text-muted-foreground min-h-9 flex items-center",
|
|
3849
|
+
children: "详情"
|
|
3850
|
+
}), /* @__PURE__ */ T("div", {
|
|
3851
|
+
className: "pt-2 text-sm",
|
|
3852
|
+
children: o(t.original)
|
|
3853
|
+
})]
|
|
3854
|
+
})]
|
|
3855
|
+
}, t.id))
|
|
3856
|
+
}) : !l && /* @__PURE__ */ T("div", {
|
|
3857
|
+
className: "rounded-lg border border-dashed p-8 text-center text-sm text-muted-foreground",
|
|
3858
|
+
children: u
|
|
3859
|
+
}),
|
|
3860
|
+
j
|
|
3861
|
+
]
|
|
3862
|
+
}) : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E("div", {
|
|
3863
|
+
className: $("relative rounded-md border overflow-x-auto", l && "pointer-events-none opacity-60"),
|
|
3864
|
+
children: [l && /* @__PURE__ */ T("div", {
|
|
3865
|
+
className: "absolute inset-0 z-10 flex items-center justify-center bg-background/40",
|
|
3866
|
+
children: /* @__PURE__ */ T(V, { className: "size-5 animate-spin text-muted-foreground" })
|
|
3867
|
+
}), /* @__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, {
|
|
3868
|
+
className: $(e.column.columnDef.meta?.hideBelowMd && "hidden md:table-cell"),
|
|
3869
|
+
children: e.isPlaceholder ? null : e.column.getCanSort() ? /* @__PURE__ */ E("button", {
|
|
3870
|
+
className: "flex items-center gap-1",
|
|
3871
|
+
onClick: e.column.getToggleSortingHandler(),
|
|
3872
|
+
children: [F(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ T(we, { className: "h-3 w-3 opacity-50" })]
|
|
3873
|
+
}) : F(e.column.columnDef.header, e.getContext())
|
|
3874
|
+
}, 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(Re, {
|
|
3875
|
+
className: $("h-4 w-4 cursor-pointer transition-transform", t.getIsExpanded() && "rotate-90"),
|
|
3876
|
+
onClick: t.getToggleExpandedHandler()
|
|
3877
|
+
}) }), t.getVisibleCells().map((e) => /* @__PURE__ */ T(jr, {
|
|
3878
|
+
className: $(e.column.columnDef.meta?.hideBelowMd && "hidden md:table-cell"),
|
|
3879
|
+
children: F(e.column.columnDef.cell, e.getContext())
|
|
3880
|
+
}, e.id))] }), o && t.getIsExpanded() && /* @__PURE__ */ T(kr, { children: /* @__PURE__ */ T(jr, {
|
|
3881
|
+
colSpan: t.getVisibleCells().length + 1,
|
|
3882
|
+
className: "bg-muted/40",
|
|
3883
|
+
children: o(t.original)
|
|
3884
|
+
}) })] }, t.id)) : /* @__PURE__ */ T(kr, { children: /* @__PURE__ */ T(jr, {
|
|
3885
|
+
colSpan: t.length + +!!o,
|
|
3886
|
+
className: "h-24 text-center text-muted-foreground",
|
|
3887
|
+
children: u
|
|
3888
|
+
}) }) })] })]
|
|
3889
|
+
}), j] })]
|
|
3890
|
+
});
|
|
3891
|
+
}
|
|
3892
|
+
// src/components/ui/drawer.tsx
|
|
3893
|
+
function Fa({ ...e }) {
|
|
3894
|
+
return /* @__PURE__ */ T(R.Root, {
|
|
3895
|
+
"data-slot": "drawer",
|
|
3896
|
+
...e
|
|
3897
|
+
});
|
|
3898
|
+
}
|
|
3899
|
+
function Ia({ ...e }) {
|
|
3900
|
+
return /* @__PURE__ */ T(R.Trigger, {
|
|
3901
|
+
"data-slot": "drawer-trigger",
|
|
3902
|
+
...e
|
|
3903
|
+
});
|
|
3904
|
+
}
|
|
3905
|
+
function La({ ...e }) {
|
|
3906
|
+
return /* @__PURE__ */ T(R.Portal, {
|
|
3907
|
+
"data-slot": "drawer-portal",
|
|
3908
|
+
...e
|
|
3909
|
+
});
|
|
3910
|
+
}
|
|
3911
|
+
function Ra({ ...e }) {
|
|
3912
|
+
return /* @__PURE__ */ T(R.Close, {
|
|
3913
|
+
"data-slot": "drawer-close",
|
|
3914
|
+
...e
|
|
3915
|
+
});
|
|
3916
|
+
}
|
|
3917
|
+
function za({ className: e, ...t }) {
|
|
3918
|
+
return /* @__PURE__ */ T(R.Overlay, {
|
|
3919
|
+
"data-slot": "drawer-overlay",
|
|
3920
|
+
className: a("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", e),
|
|
3921
|
+
...t
|
|
3922
|
+
});
|
|
3923
|
+
}
|
|
3924
|
+
function Ba({ className: e, children: t, ...n }) {
|
|
3925
|
+
return /* @__PURE__ */ E(La, {
|
|
3926
|
+
"data-slot": "drawer-portal",
|
|
3927
|
+
children: [/* @__PURE__ */ T(za, {}), /* @__PURE__ */ E(R.Content, {
|
|
3928
|
+
"data-slot": "drawer-content",
|
|
3929
|
+
className: a("group/drawer-content fixed z-50 flex h-auto flex-col bg-background", "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=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=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]: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]:sm:max-w-sm", e),
|
|
3930
|
+
...n,
|
|
3931
|
+
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]
|
|
3932
|
+
})]
|
|
3933
|
+
});
|
|
3934
|
+
}
|
|
3935
|
+
function Va({ className: e, ...t }) {
|
|
3936
|
+
return /* @__PURE__ */ T("div", {
|
|
3937
|
+
"data-slot": "drawer-header",
|
|
3938
|
+
className: a("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", e),
|
|
3939
|
+
...t
|
|
3940
|
+
});
|
|
3941
|
+
}
|
|
3942
|
+
function Ha({ className: e, ...t }) {
|
|
3943
|
+
return /* @__PURE__ */ T("div", {
|
|
3944
|
+
"data-slot": "drawer-footer",
|
|
3945
|
+
className: a("mt-auto flex flex-col gap-2 p-4", e),
|
|
3946
|
+
...t
|
|
3947
|
+
});
|
|
3948
|
+
}
|
|
3949
|
+
function Ua({ className: e, ...t }) {
|
|
3950
|
+
return /* @__PURE__ */ T(R.Title, {
|
|
3951
|
+
"data-slot": "drawer-title",
|
|
3952
|
+
className: a("font-semibold text-foreground", e),
|
|
3953
|
+
...t
|
|
3954
|
+
});
|
|
3955
|
+
}
|
|
3956
|
+
function Wa({ className: e, ...t }) {
|
|
3957
|
+
return /* @__PURE__ */ T(R.Description, {
|
|
3958
|
+
"data-slot": "drawer-description",
|
|
3959
|
+
className: a("text-sm text-muted-foreground", e),
|
|
3960
|
+
...t
|
|
3961
|
+
});
|
|
3962
|
+
}
|
|
3963
|
+
// src/components/ui/file-tree.tsx
|
|
3964
|
+
function Ga(e, t) {
|
|
3965
|
+
return e.map((e) => {
|
|
3966
|
+
let n = e.children ?? [];
|
|
3967
|
+
return {
|
|
3968
|
+
id: e.id,
|
|
3969
|
+
title: e.name,
|
|
3970
|
+
children: n.length ? Ga(n, t) : [],
|
|
3971
|
+
expanded: !t || t.has(e.id)
|
|
3972
|
+
};
|
|
3973
|
+
});
|
|
3974
|
+
}
|
|
3975
|
+
var Ka = (e, t) => {
|
|
3976
|
+
for (let n of e) {
|
|
3977
|
+
if (n.id === t) return n;
|
|
3978
|
+
let e = n.children && Ka(n.children, t);
|
|
3979
|
+
if (e) return e;
|
|
3980
|
+
}
|
|
3981
|
+
}, qa = se.ReactAccessibleTree ?? se.default ?? se;
|
|
3982
|
+
function Ja({ data: t, defaultExpandedIds: n, onSelect: r, className: i }) {
|
|
3983
|
+
let a = e.useMemo(() => n ? new Set(n) : null, [n]), [o, s] = e.useState(() => Ga(t, a));
|
|
3984
|
+
return e.useEffect(() => {
|
|
3985
|
+
s(Ga(t, a));
|
|
3986
|
+
}, [t, a]), /* @__PURE__ */ T("div", {
|
|
3987
|
+
className: $("text-sm", i),
|
|
3988
|
+
children: /* @__PURE__ */ T(qa, {
|
|
3989
|
+
treeData: o,
|
|
3990
|
+
onChange: s,
|
|
3991
|
+
onRenderItem: (e) => {
|
|
3992
|
+
let n = e.children && e.children.length > 0, i = String(e.title);
|
|
3993
|
+
return /* @__PURE__ */ T("span", {
|
|
3994
|
+
className: "flex items-center gap-1.5",
|
|
3995
|
+
children: n ? /* @__PURE__ */ E(w, { children: [
|
|
3996
|
+
/* @__PURE__ */ T(Re, { className: $("h-3 w-3 text-muted-foreground transition-transform", e.expanded && "rotate-90") }),
|
|
3997
|
+
/* @__PURE__ */ T(nt, { className: "h-3.5 w-3.5 text-muted-foreground" }),
|
|
3998
|
+
/* @__PURE__ */ T("span", {
|
|
3999
|
+
className: "font-medium",
|
|
4000
|
+
children: i
|
|
4001
|
+
})
|
|
4002
|
+
] }) : /* @__PURE__ */ E("button", {
|
|
4003
|
+
type: "button",
|
|
4004
|
+
className: "flex items-center gap-1.5 hover:text-primary",
|
|
4005
|
+
onClick: () => {
|
|
4006
|
+
let n = Ka(t, String(e.id));
|
|
4007
|
+
n && r?.(n);
|
|
4008
|
+
},
|
|
4009
|
+
children: [/* @__PURE__ */ T(et, { className: "h-3.5 w-3.5 text-muted-foreground" }), i]
|
|
4010
|
+
})
|
|
4011
|
+
});
|
|
4012
|
+
}
|
|
4013
|
+
})
|
|
4014
|
+
});
|
|
4015
|
+
}
|
|
4016
|
+
// src/components/ui/file-upload.tsx
|
|
4017
|
+
function Ya({ accept: t, maxFiles: n = 1, maxSize: r, onFilesChange: i, className: a }) {
|
|
4018
|
+
let [o, s] = e.useState([]), c = e.useCallback((e) => {
|
|
4019
|
+
let t = n === 1 ? e.slice(0, 1) : [...o, ...e].slice(0, n);
|
|
4020
|
+
s(t), i?.(t);
|
|
4021
|
+
}, [
|
|
4022
|
+
o,
|
|
4023
|
+
n,
|
|
4024
|
+
i
|
|
4025
|
+
]), { getRootProps: l, getInputProps: u, isDragActive: d } = ce({
|
|
4026
|
+
onDrop: c,
|
|
4027
|
+
accept: t,
|
|
4028
|
+
maxFiles: n,
|
|
4029
|
+
maxSize: r
|
|
4030
|
+
}), f = (e) => {
|
|
4031
|
+
let t = o.filter((t) => t !== e);
|
|
4032
|
+
s(t), i?.(t);
|
|
4033
|
+
};
|
|
4034
|
+
return /* @__PURE__ */ E("div", {
|
|
4035
|
+
className: $("space-y-2", a),
|
|
4036
|
+
children: [/* @__PURE__ */ E("div", {
|
|
4037
|
+
...l(),
|
|
4038
|
+
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"),
|
|
4039
|
+
children: [
|
|
4040
|
+
/* @__PURE__ */ T("input", { ...u() }),
|
|
4041
|
+
/* @__PURE__ */ T(Je, { className: "h-6 w-6" }),
|
|
4042
|
+
d ? /* @__PURE__ */ T("p", { children: "松开即上传" }) : /* @__PURE__ */ T("p", { children: "拖拽文件到此处,或点击选择" })
|
|
4043
|
+
]
|
|
4044
|
+
}), o.map((e) => /* @__PURE__ */ E("div", {
|
|
4045
|
+
className: "flex items-center justify-between rounded-md border px-3 py-1.5 text-sm",
|
|
4046
|
+
children: [/* @__PURE__ */ T("span", {
|
|
4047
|
+
className: "truncate",
|
|
4048
|
+
children: e.name
|
|
4049
|
+
}), /* @__PURE__ */ T(H, {
|
|
4050
|
+
variant: "ghost",
|
|
4051
|
+
size: "icon-sm",
|
|
4052
|
+
onClick: () => f(e),
|
|
4053
|
+
"aria-label": `移除 ${e.name}`,
|
|
4054
|
+
children: /* @__PURE__ */ T(kt, { className: "h-3.5 w-3.5" })
|
|
4055
|
+
})]
|
|
4056
|
+
}, e.name))]
|
|
4057
|
+
});
|
|
4058
|
+
}
|
|
4059
|
+
// src/components/ui/pagination.tsx
|
|
4060
|
+
function Xa(e, t) {
|
|
4061
|
+
return t <= 7 ? Array.from({ length: t }, (e, t) => t + 1) : e <= 4 ? [
|
|
4062
|
+
1,
|
|
4063
|
+
2,
|
|
4064
|
+
3,
|
|
4065
|
+
4,
|
|
4066
|
+
5,
|
|
4067
|
+
"…",
|
|
4068
|
+
t
|
|
4069
|
+
] : e >= t - 3 ? [
|
|
4070
|
+
1,
|
|
4071
|
+
"…",
|
|
4072
|
+
t - 4,
|
|
4073
|
+
t - 3,
|
|
4074
|
+
t - 2,
|
|
4075
|
+
t - 1,
|
|
4076
|
+
t
|
|
4077
|
+
] : [
|
|
4078
|
+
1,
|
|
4079
|
+
"…",
|
|
4080
|
+
e - 1,
|
|
4081
|
+
e,
|
|
4082
|
+
e + 1,
|
|
4083
|
+
"…",
|
|
4084
|
+
t
|
|
4085
|
+
];
|
|
4086
|
+
}
|
|
4087
|
+
function Za({ page: e, total: t = 0, pageSize: n = 10, onChange: r, className: i }) {
|
|
4088
|
+
let a = Math.max(1, Math.ceil(t / n));
|
|
4089
|
+
return /* @__PURE__ */ E("nav", {
|
|
4090
|
+
className: $("flex items-center gap-1", i),
|
|
4091
|
+
"aria-label": "分页",
|
|
4092
|
+
children: [
|
|
4093
|
+
/* @__PURE__ */ T(H, {
|
|
4094
|
+
variant: "outline",
|
|
4095
|
+
size: "icon-sm",
|
|
4096
|
+
disabled: e <= 1,
|
|
4097
|
+
onClick: () => r(e - 1),
|
|
4098
|
+
"aria-label": "上一页",
|
|
4099
|
+
children: /* @__PURE__ */ T(Ie, { className: "h-4 w-4" })
|
|
4100
|
+
}),
|
|
4101
|
+
Xa(e, a).map((t, n) => t === "…" ? /* @__PURE__ */ T("span", {
|
|
4102
|
+
className: "flex h-8 w-8 items-center justify-center text-muted-foreground",
|
|
4103
|
+
children: /* @__PURE__ */ T(Xe, { className: "h-4 w-4" })
|
|
4104
|
+
}, `e${n}`) : /* @__PURE__ */ T(H, {
|
|
4105
|
+
variant: t === e ? "default" : "outline",
|
|
4106
|
+
size: "icon-sm",
|
|
4107
|
+
onClick: () => r(t),
|
|
4108
|
+
"aria-current": t === e ? "page" : void 0,
|
|
4109
|
+
children: t
|
|
4110
|
+
}, t)),
|
|
4111
|
+
/* @__PURE__ */ T(H, {
|
|
4112
|
+
variant: "outline",
|
|
4113
|
+
size: "icon-sm",
|
|
4114
|
+
disabled: e >= a,
|
|
4115
|
+
onClick: () => r(e + 1),
|
|
4116
|
+
"aria-label": "下一页",
|
|
4117
|
+
children: /* @__PURE__ */ T(Re, { className: "h-4 w-4" })
|
|
4118
|
+
}),
|
|
4119
|
+
t > 0 && /* @__PURE__ */ E("span", {
|
|
4120
|
+
className: "ml-2 text-sm text-muted-foreground",
|
|
4121
|
+
children: [
|
|
4122
|
+
"共 ",
|
|
4123
|
+
t,
|
|
4124
|
+
" 条"
|
|
4125
|
+
]
|
|
4126
|
+
})
|
|
4127
|
+
]
|
|
4128
|
+
});
|
|
4129
|
+
}
|
|
4130
|
+
// src/components/ui/steps.tsx
|
|
4131
|
+
function Qa({ steps: t, current: n, onChange: r, className: i }) {
|
|
4132
|
+
return /* @__PURE__ */ T("ol", {
|
|
4133
|
+
className: $("flex w-full items-center", i),
|
|
4134
|
+
children: t.map((i, a) => {
|
|
4135
|
+
let o = a < n, s = a === n;
|
|
4136
|
+
return /* @__PURE__ */ E(e.Fragment, { children: [/* @__PURE__ */ E("li", {
|
|
4137
|
+
className: "flex items-center gap-2",
|
|
4138
|
+
children: [/* @__PURE__ */ T("button", {
|
|
4139
|
+
type: "button",
|
|
4140
|
+
disabled: !r,
|
|
4141
|
+
onClick: () => r?.(a),
|
|
4142
|
+
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"),
|
|
4143
|
+
children: o ? /* @__PURE__ */ T(Me, { className: "h-3.5 w-3.5" }) : a + 1
|
|
4144
|
+
}), /* @__PURE__ */ T("span", {
|
|
4145
|
+
className: $("text-sm", s ? "font-medium text-foreground" : "text-muted-foreground"),
|
|
4146
|
+
children: i
|
|
4147
|
+
})]
|
|
4148
|
+
}), a < t.length - 1 && /* @__PURE__ */ T("li", { className: $("mx-3 h-px flex-1", a < n ? "bg-primary" : "bg-border") })] }, i);
|
|
4149
|
+
})
|
|
4150
|
+
});
|
|
4151
|
+
}
|
|
4152
|
+
// src/components/ui/timeline.tsx
|
|
4153
|
+
function $a({ title: e, description: t, time: n, dot: r, className: i }) {
|
|
4154
|
+
return /* @__PURE__ */ E("div", {
|
|
4155
|
+
className: $("relative flex gap-4 pb-6 pl-1", i),
|
|
4156
|
+
children: [/* @__PURE__ */ E("div", {
|
|
4157
|
+
className: "flex flex-col items-center",
|
|
4158
|
+
children: [/* @__PURE__ */ T("div", {
|
|
4159
|
+
className: "flex h-3 w-3 items-center justify-center rounded-full border-2 border-primary bg-background",
|
|
4160
|
+
children: r
|
|
4161
|
+
}), /* @__PURE__ */ T("div", { className: "w-px flex-1 bg-border" })]
|
|
4162
|
+
}), /* @__PURE__ */ E("div", {
|
|
4163
|
+
className: "flex-1 pb-1",
|
|
4164
|
+
children: [/* @__PURE__ */ E("div", {
|
|
4165
|
+
className: "flex items-center justify-between",
|
|
4166
|
+
children: [/* @__PURE__ */ T("div", {
|
|
4167
|
+
className: "text-sm font-medium",
|
|
4168
|
+
children: e
|
|
4169
|
+
}), n && /* @__PURE__ */ T("div", {
|
|
4170
|
+
className: "text-xs text-muted-foreground",
|
|
4171
|
+
children: n
|
|
4172
|
+
})]
|
|
4173
|
+
}), t && /* @__PURE__ */ T("div", {
|
|
4174
|
+
className: "mt-1 text-sm text-muted-foreground",
|
|
4175
|
+
children: t
|
|
4176
|
+
})]
|
|
4177
|
+
})]
|
|
4178
|
+
});
|
|
4179
|
+
}
|
|
4180
|
+
function eo({ children: e, className: t }) {
|
|
4181
|
+
return /* @__PURE__ */ T("div", {
|
|
4182
|
+
className: $("w-full", t),
|
|
4183
|
+
children: e
|
|
4184
|
+
});
|
|
4185
|
+
}
|
|
4186
|
+
// src/components/ui/descriptions.tsx
|
|
4187
|
+
function to({ title: e, items: t, column: n = 2, bordered: r, className: i }) {
|
|
4188
|
+
return /* @__PURE__ */ E("div", {
|
|
4189
|
+
className: $("w-full", i),
|
|
4190
|
+
children: [e && /* @__PURE__ */ T("div", {
|
|
4191
|
+
className: "mb-3 text-sm font-semibold",
|
|
4192
|
+
children: e
|
|
4193
|
+
}), /* @__PURE__ */ T("dl", {
|
|
4194
|
+
className: $("grid gap-x-6 gap-y-2", r && "divide-border rounded-md border border-border"),
|
|
4195
|
+
children: t.map((e, t) => /* @__PURE__ */ E("div", {
|
|
4196
|
+
className: $("flex flex-col gap-1 py-1.5", r && "border-b border-border px-3 last:border-b-0"),
|
|
4197
|
+
style: {
|
|
4198
|
+
gridColumn: `span ${e.span ?? 1} / span ${e.span ?? 1}`,
|
|
4199
|
+
gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))`
|
|
4200
|
+
},
|
|
4201
|
+
children: [/* @__PURE__ */ T("dt", {
|
|
4202
|
+
className: "text-xs text-muted-foreground",
|
|
4203
|
+
children: e.label
|
|
4204
|
+
}), /* @__PURE__ */ T("dd", {
|
|
4205
|
+
className: "text-sm",
|
|
4206
|
+
children: e.children
|
|
4207
|
+
})]
|
|
4208
|
+
}, t))
|
|
4209
|
+
})]
|
|
4210
|
+
});
|
|
4211
|
+
}
|
|
4212
|
+
// src/components/ui/empty.tsx
|
|
4213
|
+
function no({ description: e = "暂无数据", icon: t, action: n, className: r }) {
|
|
4214
|
+
return /* @__PURE__ */ E("div", {
|
|
4215
|
+
className: $("flex flex-col items-center justify-center gap-3 rounded-lg border border-dashed p-10 text-center", r),
|
|
4216
|
+
children: [
|
|
4217
|
+
/* @__PURE__ */ T("div", {
|
|
4218
|
+
className: "text-muted-foreground/60",
|
|
4219
|
+
children: t ?? /* @__PURE__ */ T(it, { className: "h-10 w-10" })
|
|
4220
|
+
}),
|
|
4221
|
+
/* @__PURE__ */ T("div", {
|
|
4222
|
+
className: "text-sm text-muted-foreground",
|
|
4223
|
+
children: e
|
|
4224
|
+
}),
|
|
4225
|
+
n && /* @__PURE__ */ T("div", {
|
|
4226
|
+
className: "mt-1",
|
|
4227
|
+
children: n
|
|
4228
|
+
})
|
|
4229
|
+
]
|
|
4230
|
+
});
|
|
4231
|
+
}
|
|
4232
|
+
// src/components/ui/tag.tsx
|
|
4233
|
+
var ro = {
|
|
4234
|
+
default: "border-border bg-muted text-foreground",
|
|
4235
|
+
success: "border-transparent bg-emerald-500/15 text-emerald-600 dark:text-emerald-400",
|
|
4236
|
+
processing: "border-transparent bg-blue-500/15 text-blue-600 dark:text-blue-400",
|
|
4237
|
+
error: "border-transparent bg-red-500/15 text-red-600 dark:text-red-400",
|
|
4238
|
+
warning: "border-transparent bg-amber-500/15 text-amber-600 dark:text-amber-400"
|
|
4239
|
+
};
|
|
4240
|
+
function io({ className: e, color: t = "default", bordered: n = !0, closable: r, onClose: i, children: a, style: o, ...s }) {
|
|
4241
|
+
let c = t in ro;
|
|
4242
|
+
return /* @__PURE__ */ E("span", {
|
|
4243
|
+
"data-slot": "tag",
|
|
4244
|
+
className: $("inline-flex w-fit items-center gap-1 rounded-md px-2 py-0.5 text-xs font-medium whitespace-nowrap [&>svg]:size-3", c ? ro[t] : "border-transparent bg-muted", n && "border", e),
|
|
4245
|
+
style: c ? o : {
|
|
4246
|
+
color: t,
|
|
4247
|
+
...o
|
|
4248
|
+
},
|
|
4249
|
+
...s,
|
|
4250
|
+
children: [a, r && /* @__PURE__ */ T("span", {
|
|
4251
|
+
role: "button",
|
|
4252
|
+
tabIndex: 0,
|
|
4253
|
+
"aria-label": "关闭",
|
|
4254
|
+
className: "ml-0.5 inline-flex min-h-6 min-w-6 cursor-pointer items-center justify-center rounded-sm opacity-60 hover:opacity-100 focus-visible:outline-2 focus-visible:outline-ring",
|
|
4255
|
+
onClick: (e) => {
|
|
4256
|
+
e.stopPropagation(), i?.(e);
|
|
4257
|
+
},
|
|
4258
|
+
children: /* @__PURE__ */ T(kt, { className: "size-3" })
|
|
4259
|
+
})]
|
|
4260
|
+
});
|
|
4261
|
+
}
|
|
4262
|
+
// src/components/ui/segmented.tsx
|
|
4263
|
+
function ao({ options: t, value: n, defaultValue: r, onChange: i, disabled: a, className: o }) {
|
|
4264
|
+
let s = e.useMemo(() => t.map((e) => typeof e == "string" ? {
|
|
4265
|
+
label: e,
|
|
4266
|
+
value: e
|
|
4267
|
+
} : e), [t]), [c, l] = e.useState(r), u = n ?? c;
|
|
4268
|
+
return /* @__PURE__ */ T("div", {
|
|
4269
|
+
role: "radiogroup",
|
|
4270
|
+
className: $("inline-flex items-center rounded-lg bg-muted p-0.5", a && "opacity-50 pointer-events-none", o),
|
|
4271
|
+
children: s.map((e) => /* @__PURE__ */ T("button", {
|
|
4272
|
+
type: "button",
|
|
4273
|
+
role: "radio",
|
|
4274
|
+
"aria-checked": u === e.value,
|
|
4275
|
+
disabled: e.disabled,
|
|
4276
|
+
onClick: () => {
|
|
4277
|
+
l(e.value), i?.(e.value);
|
|
4278
|
+
},
|
|
4279
|
+
className: $("rounded-md px-3 py-1 text-sm transition-colors", u === e.value ? "bg-background shadow-sm font-medium" : "text-muted-foreground hover:text-foreground", e.disabled && "opacity-40 pointer-events-none"),
|
|
4280
|
+
children: e.label
|
|
4281
|
+
}, e.value))
|
|
4282
|
+
});
|
|
4283
|
+
}
|
|
4284
|
+
// src/components/ui/statistic.tsx
|
|
4285
|
+
function oo({ title: e, value: t, precision: n, prefix: r, suffix: i, direction: a, className: o }) {
|
|
4286
|
+
let s = n != null && typeof t == "number" ? t.toFixed(n) : t;
|
|
4287
|
+
return /* @__PURE__ */ E("div", {
|
|
4288
|
+
className: $("flex flex-col gap-1", o),
|
|
4289
|
+
children: [/* @__PURE__ */ T("div", {
|
|
4290
|
+
className: "text-xs text-muted-foreground",
|
|
4291
|
+
children: e
|
|
4292
|
+
}), /* @__PURE__ */ E("div", {
|
|
4293
|
+
className: "flex items-baseline gap-1 text-2xl font-semibold tabular-nums",
|
|
4294
|
+
children: [
|
|
4295
|
+
r,
|
|
4296
|
+
s,
|
|
4297
|
+
i && /* @__PURE__ */ T("span", {
|
|
4298
|
+
className: "text-sm font-normal text-muted-foreground",
|
|
4299
|
+
children: i
|
|
4300
|
+
}),
|
|
4301
|
+
a && (a === "up" ? /* @__PURE__ */ T(xt, { className: "h-4 w-4 self-center text-success" }) : /* @__PURE__ */ T(yt, { className: "h-4 w-4 self-center text-destructive" }))
|
|
4302
|
+
]
|
|
4303
|
+
})]
|
|
4304
|
+
});
|
|
4305
|
+
}
|
|
4306
|
+
// src/components/ui/action-buttons.tsx
|
|
4307
|
+
function so({ icon: e, onClick: t, children: n, danger: r, disabled: i, loading: a, ...o }) {
|
|
4308
|
+
return /* @__PURE__ */ E(H, {
|
|
4309
|
+
variant: "ghost",
|
|
4310
|
+
size: "sm",
|
|
4311
|
+
className: $("h-7 gap-1 px-2", r && "text-destructive hover:text-destructive"),
|
|
4312
|
+
onClick: t,
|
|
4313
|
+
disabled: i || a,
|
|
4314
|
+
...o,
|
|
4315
|
+
children: [e, n]
|
|
4316
|
+
});
|
|
4317
|
+
}
|
|
4318
|
+
function co({ onConfirm: e, title: t = "确定删除?", description: n = "删除后不可恢复", label: r = "删除" }) {
|
|
4319
|
+
return /* @__PURE__ */ E(Wt, { children: [/* @__PURE__ */ T(Gt, {
|
|
4320
|
+
asChild: !0,
|
|
4321
|
+
children: /* @__PURE__ */ T(so, {
|
|
4322
|
+
icon: /* @__PURE__ */ T(_t, { className: "h-3.5 w-3.5" }),
|
|
4323
|
+
danger: !0,
|
|
4324
|
+
children: r
|
|
4325
|
+
})
|
|
4326
|
+
}), /* @__PURE__ */ E(Jt, { children: [/* @__PURE__ */ E(Yt, { children: [/* @__PURE__ */ T(Zt, { children: t }), /* @__PURE__ */ T(Qt, { children: n })] }), /* @__PURE__ */ E(Xt, { children: [/* @__PURE__ */ T(tn, { children: "取消" }), /* @__PURE__ */ T(en, {
|
|
4327
|
+
onClick: e,
|
|
4328
|
+
children: "确定"
|
|
4329
|
+
})] })] })] });
|
|
4330
|
+
}
|
|
4331
|
+
function lo({ onClick: e, label: t = "详情" }) {
|
|
4332
|
+
return /* @__PURE__ */ T(so, {
|
|
4333
|
+
icon: /* @__PURE__ */ T(Qe, { className: "h-3.5 w-3.5" }),
|
|
4334
|
+
onClick: e,
|
|
4335
|
+
children: t
|
|
4336
|
+
});
|
|
4337
|
+
}
|
|
4338
|
+
// src/components/ui/base-pair-selector.tsx
|
|
4339
|
+
function uo({ mode: t = "multiple", value: n, onChange: r, onSearch: i, options: a, placeholder: o = "搜索品种...", disabled: s, className: c }) {
|
|
4340
|
+
let [l, u] = e.useState(!1), [d, f] = e.useState(""), [p, m] = e.useState([]), [h, g] = e.useState(!1), _ = e.useMemo(() => i && d ? p : a ?? [], [
|
|
4341
|
+
i,
|
|
4342
|
+
d,
|
|
4343
|
+
p,
|
|
4344
|
+
a
|
|
4345
|
+
]);
|
|
4346
|
+
e.useEffect(() => {
|
|
4347
|
+
if (!i || !l) return;
|
|
4348
|
+
let e = setTimeout(async () => {
|
|
4349
|
+
g(!0);
|
|
4350
|
+
try {
|
|
4351
|
+
m(await i(d));
|
|
4352
|
+
} finally {
|
|
4353
|
+
g(!1);
|
|
4354
|
+
}
|
|
4355
|
+
}, 300);
|
|
4356
|
+
return () => clearTimeout(e);
|
|
4357
|
+
}, [
|
|
4358
|
+
d,
|
|
4359
|
+
l,
|
|
4360
|
+
i
|
|
4361
|
+
]);
|
|
4362
|
+
let v = e.useMemo(() => n ? Array.isArray(n) ? n : [n] : [], [n]), y = (e) => {
|
|
4363
|
+
if (t === "single") {
|
|
4364
|
+
r?.(e), u(!1);
|
|
4365
|
+
return;
|
|
4366
|
+
}
|
|
4367
|
+
let n = v.includes(e) ? v.filter((t) => t !== e) : [...v, e];
|
|
4368
|
+
r?.(n);
|
|
4369
|
+
}, b = (e) => _.find((t) => t.value === e)?.label ?? e;
|
|
4370
|
+
return /* @__PURE__ */ E("div", {
|
|
4371
|
+
className: $("flex flex-wrap items-center gap-1", c),
|
|
4372
|
+
children: [t === "multiple" && v.map((e) => /* @__PURE__ */ E(rn, {
|
|
4373
|
+
variant: "secondary",
|
|
4374
|
+
className: "gap-1 pr-1",
|
|
4375
|
+
children: [b(e), /* @__PURE__ */ T("button", {
|
|
4376
|
+
type: "button",
|
|
4377
|
+
className: "rounded-full hover:bg-muted-foreground/20",
|
|
4378
|
+
onClick: () => y(e),
|
|
4379
|
+
"aria-label": `移除 ${e}`,
|
|
4380
|
+
children: /* @__PURE__ */ T(kt, { className: "h-3 w-3" })
|
|
4381
|
+
})]
|
|
4382
|
+
}, e)), /* @__PURE__ */ E(Gn, {
|
|
4383
|
+
open: l,
|
|
4384
|
+
onOpenChange: u,
|
|
4385
|
+
children: [/* @__PURE__ */ T(Kn, {
|
|
4386
|
+
asChild: !0,
|
|
4387
|
+
children: /* @__PURE__ */ E(H, {
|
|
4388
|
+
variant: "outline",
|
|
4389
|
+
size: t === "multiple" ? "sm" : "default",
|
|
4390
|
+
disabled: s,
|
|
4391
|
+
role: "combobox",
|
|
4392
|
+
className: "gap-1 font-normal",
|
|
4393
|
+
children: [
|
|
4394
|
+
h && /* @__PURE__ */ T(V, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
4395
|
+
t === "single" && v[0] ? b(v[0]) : o,
|
|
4396
|
+
/* @__PURE__ */ T(He, { className: "h-3.5 w-3.5 opacity-50" })
|
|
4397
|
+
]
|
|
4398
|
+
})
|
|
4399
|
+
}), /* @__PURE__ */ T(qn, {
|
|
4400
|
+
className: "w-[240px] p-0",
|
|
4401
|
+
align: "start",
|
|
4402
|
+
children: /* @__PURE__ */ E(ca, { children: [/* @__PURE__ */ T(ua, {
|
|
4403
|
+
value: d,
|
|
4404
|
+
onValueChange: f,
|
|
4405
|
+
placeholder: o
|
|
4406
|
+
}), /* @__PURE__ */ T(da, { children: h ? /* @__PURE__ */ T("div", {
|
|
4407
|
+
className: "flex items-center justify-center py-6",
|
|
4408
|
+
children: /* @__PURE__ */ T(V, { className: "h-4 w-4 animate-spin" })
|
|
4409
|
+
}) : /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(fa, { children: "未找到结果" }), /* @__PURE__ */ T(pa, { children: _.map((e) => /* @__PURE__ */ E(ha, {
|
|
4410
|
+
value: e.value,
|
|
4411
|
+
onSelect: () => y(e.value),
|
|
4412
|
+
children: [e.label, v.includes(e.value) && /* @__PURE__ */ T("span", {
|
|
4413
|
+
className: "ml-auto text-primary",
|
|
4414
|
+
children: "✓"
|
|
4415
|
+
})]
|
|
4416
|
+
}, e.value)) })] }) })] })
|
|
4417
|
+
})]
|
|
4418
|
+
})]
|
|
4419
|
+
});
|
|
4420
|
+
}
|
|
4421
|
+
// src/components/ui/date-picker-int.tsx
|
|
4422
|
+
function fo(e) {
|
|
4423
|
+
let t = e.getFullYear(), n = String(e.getMonth() + 1).padStart(2, "0"), r = String(e.getDate()).padStart(2, "0");
|
|
4424
|
+
return t * 1e4 + Number(n) * 100 + Number(r);
|
|
4425
|
+
}
|
|
4426
|
+
function po(e) {
|
|
4427
|
+
let t = Math.floor(e / 1e4), n = Math.floor(e % 1e4 / 100) - 1, r = e % 100;
|
|
4428
|
+
return new Date(t, n, r);
|
|
4429
|
+
}
|
|
4430
|
+
function mo({ value: e, onChange: t, placeholder: n = "选择日期", disabled: r, className: i }) {
|
|
4431
|
+
return /* @__PURE__ */ T(ba, {
|
|
4432
|
+
value: e ? po(e) : void 0,
|
|
4433
|
+
onChange: (e) => t?.(e ? fo(e) : void 0),
|
|
4434
|
+
placeholder: n,
|
|
4435
|
+
disabled: r,
|
|
4436
|
+
className: i
|
|
4437
|
+
});
|
|
4438
|
+
}
|
|
4439
|
+
// src/components/ui/digital-pair-selector.tsx
|
|
4440
|
+
function ho({ mode: e = "multiple", value: t, onChange: n, onSearch: r, options: i, placeholder: a = "搜索数字货币...", disabled: o, className: s }) {
|
|
4441
|
+
let c = r ? async (e) => (await r(e)).map((e) => ({
|
|
4442
|
+
...e,
|
|
4443
|
+
label: e.label.toUpperCase()
|
|
4444
|
+
})) : void 0, l = i?.map((e) => ({
|
|
4445
|
+
...e,
|
|
4446
|
+
label: e.label.toUpperCase()
|
|
4447
|
+
}));
|
|
4448
|
+
return /* @__PURE__ */ T(uo, {
|
|
4449
|
+
mode: e,
|
|
4450
|
+
value: t,
|
|
4451
|
+
onChange: n,
|
|
4452
|
+
onSearch: c,
|
|
4453
|
+
options: l,
|
|
4454
|
+
placeholder: a,
|
|
4455
|
+
disabled: o,
|
|
4456
|
+
className: s
|
|
4457
|
+
});
|
|
4458
|
+
}
|
|
4459
|
+
// src/components/ui/exchange-select.tsx
|
|
4460
|
+
function go({ options: e, value: t, onChange: n, loading: r, disabled: i, placeholder: a = "选择交易所", className: o }) {
|
|
4461
|
+
return /* @__PURE__ */ E(tr, {
|
|
4462
|
+
value: t,
|
|
4463
|
+
onValueChange: n,
|
|
4464
|
+
disabled: i || r,
|
|
4465
|
+
children: [/* @__PURE__ */ E(ir, {
|
|
4466
|
+
className: o,
|
|
4467
|
+
children: [/* @__PURE__ */ T(rr, { placeholder: r ? "加载中..." : a }), r && /* @__PURE__ */ T(V, { className: "h-3.5 w-3.5 animate-spin" })]
|
|
4468
|
+
}), /* @__PURE__ */ T(ar, { children: e.map((e) => /* @__PURE__ */ T(sr, {
|
|
4469
|
+
value: e,
|
|
4470
|
+
children: e.toUpperCase()
|
|
4471
|
+
}, e)) })]
|
|
4472
|
+
});
|
|
4473
|
+
}
|
|
4474
|
+
// src/components/ui/mobile-card-list.tsx
|
|
4475
|
+
function _o({ dataSource: e, rowKey: t, titleRender: n, statusRender: r, bodyRender: i, actionsRender: a, extraTagRender: o, onCardClick: s, className: c }) {
|
|
4476
|
+
return e.length ? /* @__PURE__ */ T("div", {
|
|
4477
|
+
className: $("flex flex-col gap-3", c),
|
|
4478
|
+
children: e.map((e) => {
|
|
4479
|
+
let c = r?.(e);
|
|
4480
|
+
return /* @__PURE__ */ E("div", {
|
|
4481
|
+
className: $("rounded-lg border bg-card p-3 shadow-sm", s && "cursor-pointer transition-colors hover:bg-accent/50"),
|
|
4482
|
+
onClick: () => s?.(e),
|
|
4483
|
+
children: [
|
|
4484
|
+
/* @__PURE__ */ E("div", {
|
|
4485
|
+
className: "flex items-center justify-between gap-2",
|
|
4486
|
+
children: [/* @__PURE__ */ T("span", {
|
|
4487
|
+
className: "truncate text-sm font-medium",
|
|
4488
|
+
children: n(e)
|
|
4489
|
+
}), /* @__PURE__ */ E("div", {
|
|
4490
|
+
className: "flex shrink-0 items-center gap-1.5",
|
|
4491
|
+
children: [o?.(e), c && /* @__PURE__ */ T(rn, {
|
|
4492
|
+
variant: c.variant ?? "secondary",
|
|
4493
|
+
children: c.text
|
|
4494
|
+
})]
|
|
4495
|
+
})]
|
|
4496
|
+
}),
|
|
4497
|
+
/* @__PURE__ */ T("div", {
|
|
4498
|
+
className: "mt-2 text-sm text-muted-foreground",
|
|
4499
|
+
children: i(e)
|
|
4500
|
+
}),
|
|
4501
|
+
/* @__PURE__ */ T("div", {
|
|
4502
|
+
className: "mt-2 flex items-center gap-1",
|
|
4503
|
+
onClick: (e) => e.stopPropagation(),
|
|
4504
|
+
children: a(e)
|
|
4505
|
+
})
|
|
4506
|
+
]
|
|
4507
|
+
}, t(e));
|
|
4508
|
+
})
|
|
4509
|
+
}) : /* @__PURE__ */ T("div", {
|
|
4510
|
+
className: "py-8 text-center text-sm text-muted-foreground",
|
|
4511
|
+
children: "暂无数据"
|
|
4512
|
+
});
|
|
4513
|
+
}
|
|
4514
|
+
// src/components/ui/monaco-editor.tsx
|
|
4515
|
+
var vo = e.lazy(() => import("@monaco-editor/react")), yo = {
|
|
4516
|
+
tabSize: 4,
|
|
4517
|
+
minimap: { enabled: !1 },
|
|
4518
|
+
automaticLayout: !0,
|
|
4519
|
+
scrollBeyondLastLine: !1,
|
|
4520
|
+
wordWrap: "on",
|
|
4521
|
+
padding: {
|
|
4522
|
+
top: 8,
|
|
4523
|
+
bottom: 8
|
|
4524
|
+
},
|
|
4525
|
+
smoothScrolling: !0,
|
|
4526
|
+
fontLigatures: !0,
|
|
4527
|
+
bracketPairColorization: { enabled: !0 },
|
|
4528
|
+
guides: {
|
|
4529
|
+
bracketPairs: !0,
|
|
4530
|
+
indentation: !0
|
|
4531
|
+
}
|
|
4532
|
+
};
|
|
4533
|
+
function bo({ value: t, onChange: n, language: r = "python", height: i = 300, width: a = "100%", fontSize: o = 14, tabSize: s = 4, readOnly: c, onMount: l, options: u }) {
|
|
4534
|
+
return /* @__PURE__ */ T(e.Suspense, {
|
|
4535
|
+
fallback: /* @__PURE__ */ T("div", {
|
|
4536
|
+
className: "flex h-full items-center justify-center bg-muted text-sm text-muted-foreground",
|
|
4537
|
+
children: "编辑器加载中..."
|
|
4538
|
+
}),
|
|
4539
|
+
children: /* @__PURE__ */ T(vo, {
|
|
4540
|
+
height: i,
|
|
4541
|
+
width: a,
|
|
4542
|
+
language: r,
|
|
4543
|
+
value: t,
|
|
4544
|
+
onChange: (e) => n?.(e ?? ""),
|
|
4545
|
+
theme: "vs-dark",
|
|
4546
|
+
onMount: (e, t) => l?.(e, t),
|
|
4547
|
+
options: {
|
|
4548
|
+
...yo,
|
|
4549
|
+
...u,
|
|
4550
|
+
fontSize: o,
|
|
4551
|
+
tabSize: s,
|
|
4552
|
+
readOnly: c
|
|
4553
|
+
}
|
|
4554
|
+
})
|
|
4555
|
+
});
|
|
4556
|
+
}
|
|
4557
|
+
// src/components/ui/pair-select.tsx
|
|
4558
|
+
function xo({ options: e, value: t, onChange: n, loading: r, disabled: i, placeholder: a = "选择交易对", className: o }) {
|
|
4559
|
+
return /* @__PURE__ */ E(tr, {
|
|
4560
|
+
value: t,
|
|
4561
|
+
onValueChange: n,
|
|
4562
|
+
disabled: i || r,
|
|
4563
|
+
children: [/* @__PURE__ */ E(ir, {
|
|
4564
|
+
className: o,
|
|
4565
|
+
children: [/* @__PURE__ */ T(rr, { placeholder: r ? "加载中..." : a }), r && /* @__PURE__ */ T(V, { className: "h-3.5 w-3.5 animate-spin" })]
|
|
4566
|
+
}), /* @__PURE__ */ T(ar, { children: e.map((e) => /* @__PURE__ */ T(sr, {
|
|
4567
|
+
value: e.value,
|
|
4568
|
+
children: e.label
|
|
4569
|
+
}, e.value)) })]
|
|
4570
|
+
});
|
|
4571
|
+
}
|
|
4572
|
+
// src/components/ui/period-select.tsx
|
|
4573
|
+
function So({ options: e, value: t, onChange: n, loading: r, disabled: i, placeholder: a = "选择K线周期", className: o }) {
|
|
4574
|
+
return /* @__PURE__ */ E(tr, {
|
|
4575
|
+
value: t,
|
|
4576
|
+
onValueChange: n,
|
|
4577
|
+
disabled: i || r,
|
|
4578
|
+
children: [/* @__PURE__ */ E(ir, {
|
|
4579
|
+
className: o,
|
|
4580
|
+
children: [/* @__PURE__ */ T(rr, { placeholder: r ? "加载中..." : a }), r && /* @__PURE__ */ T(V, { className: "h-3.5 w-3.5 animate-spin" })]
|
|
4581
|
+
}), /* @__PURE__ */ T(ar, { children: e.map((e) => /* @__PURE__ */ T(sr, {
|
|
4582
|
+
value: e,
|
|
4583
|
+
children: e
|
|
4584
|
+
}, e)) })]
|
|
4585
|
+
});
|
|
4586
|
+
}
|
|
4587
|
+
// src/components/ui/aspect-ratio.tsx
|
|
4588
|
+
function Co({ ...e }) {
|
|
4589
|
+
return /* @__PURE__ */ T(c.Root, {
|
|
4590
|
+
"data-slot": "aspect-ratio",
|
|
4591
|
+
...e
|
|
4592
|
+
});
|
|
4593
|
+
}
|
|
4594
|
+
// src/components/ui/hover-card.tsx
|
|
4595
|
+
function wo({ ...e }) {
|
|
4596
|
+
return /* @__PURE__ */ T(p.Root, {
|
|
4597
|
+
"data-slot": "hover-card",
|
|
4598
|
+
...e
|
|
4599
|
+
});
|
|
4600
|
+
}
|
|
4601
|
+
function To({ ...e }) {
|
|
4602
|
+
return /* @__PURE__ */ T(p.Trigger, {
|
|
4603
|
+
"data-slot": "hover-card-trigger",
|
|
4604
|
+
...e
|
|
4605
|
+
});
|
|
4606
|
+
}
|
|
4607
|
+
function Eo({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
4608
|
+
return /* @__PURE__ */ T(p.Portal, {
|
|
4609
|
+
"data-slot": "hover-card-portal",
|
|
4610
|
+
children: /* @__PURE__ */ T(p.Content, {
|
|
4611
|
+
"data-slot": "hover-card-content",
|
|
4612
|
+
align: t,
|
|
4613
|
+
sideOffset: n,
|
|
4614
|
+
className: a("z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", e),
|
|
4615
|
+
...r
|
|
4616
|
+
})
|
|
4617
|
+
});
|
|
4618
|
+
}
|
|
4619
|
+
// src/components/ui/input-otp.tsx
|
|
4620
|
+
function Do({ className: e, containerClassName: t, ...n }) {
|
|
4621
|
+
return /* @__PURE__ */ T(le, {
|
|
4622
|
+
"data-slot": "input-otp",
|
|
4623
|
+
containerClassName: a("flex items-center gap-2 has-disabled:opacity-50", t),
|
|
4624
|
+
className: a("disabled:cursor-not-allowed", e),
|
|
4625
|
+
...n
|
|
4626
|
+
});
|
|
4627
|
+
}
|
|
4628
|
+
function Oo({ className: e, ...t }) {
|
|
4629
|
+
return /* @__PURE__ */ T("div", {
|
|
4630
|
+
"data-slot": "input-otp-group",
|
|
4631
|
+
className: a("flex items-center", e),
|
|
4632
|
+
...t
|
|
4633
|
+
});
|
|
4634
|
+
}
|
|
4635
|
+
function ko({ index: t, className: n, ...r }) {
|
|
4636
|
+
let { char: i, hasFakeCaret: o, isActive: s } = e.useContext(ue)?.slots[t] ?? {};
|
|
4637
|
+
return /* @__PURE__ */ E("div", {
|
|
4638
|
+
"data-slot": "input-otp-slot",
|
|
4639
|
+
"data-active": s,
|
|
4640
|
+
className: a("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-[3px] data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40", n),
|
|
4641
|
+
...r,
|
|
4642
|
+
children: [i, o && /* @__PURE__ */ T("div", {
|
|
4643
|
+
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
4644
|
+
children: /* @__PURE__ */ T("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" })
|
|
4645
|
+
})]
|
|
4646
|
+
});
|
|
4647
|
+
}
|
|
4648
|
+
function Ao({ ...e }) {
|
|
4649
|
+
return /* @__PURE__ */ T("div", {
|
|
4650
|
+
"data-slot": "input-otp-separator",
|
|
4651
|
+
role: "separator",
|
|
4652
|
+
...e,
|
|
4653
|
+
children: /* @__PURE__ */ T(lt, {})
|
|
4654
|
+
});
|
|
4655
|
+
}
|
|
4656
|
+
// src/components/ui/chat-message.tsx
|
|
4657
|
+
var jo = {
|
|
4658
|
+
user: /* @__PURE__ */ T(Tt, { className: "h-4 w-4" }),
|
|
4659
|
+
assistant: /* @__PURE__ */ T(Oe, { className: "h-4 w-4" }),
|
|
4660
|
+
system: /* @__PURE__ */ T(Dt, { className: "h-4 w-4" })
|
|
4661
|
+
};
|
|
4662
|
+
function Mo({ role: e = "assistant", avatar: t, children: n, streaming: r = !1, className: i }) {
|
|
4663
|
+
let o = e === "user";
|
|
4664
|
+
return /* @__PURE__ */ E("div", {
|
|
4665
|
+
"data-slot": "chat-message",
|
|
4666
|
+
"data-role": e,
|
|
4667
|
+
className: a("flex w-full items-start gap-3", o && "flex-row-reverse", i),
|
|
4668
|
+
children: [/* @__PURE__ */ T("div", {
|
|
4669
|
+
className: a("flex h-8 w-8 shrink-0 items-center justify-center rounded-full border bg-muted text-muted-foreground", e === "assistant" && "bg-primary text-primary-foreground", e === "system" && "border-dashed"),
|
|
4670
|
+
"aria-hidden": "true",
|
|
4671
|
+
children: t ?? jo[e]
|
|
4672
|
+
}), /* @__PURE__ */ T("div", {
|
|
4673
|
+
className: a("max-w-[80%] rounded-lg border bg-background px-3 py-2 text-sm leading-relaxed text-foreground", o && "bg-primary text-primary-foreground", e === "system" && "border-dashed bg-muted/50 text-muted-foreground"),
|
|
4674
|
+
children: /* @__PURE__ */ E("div", {
|
|
4675
|
+
className: a("[&>*:first-child]:mt-0 [&>*:last-child]:mb-0", "prose prose-sm max-w-none dark:prose-invert"),
|
|
4676
|
+
children: [n, r && /* @__PURE__ */ T("span", {
|
|
4677
|
+
"data-slot": "chat-message-cursor",
|
|
4678
|
+
className: "ml-0.5 inline-block h-4 w-[2px] translate-y-[3px] animate-pulse bg-foreground align-baseline"
|
|
4679
|
+
})]
|
|
4680
|
+
})
|
|
4681
|
+
})]
|
|
4682
|
+
});
|
|
4683
|
+
}
|
|
4684
|
+
// src/components/ui/chat-input.tsx
|
|
4685
|
+
function No({ placeholder: t = "输入消息,Enter 发送,Shift+Enter 换行", disabled: n = !1, loading: r = !1, onSubmit: i, onStop: o, className: s, defaultValue: c = "" }) {
|
|
4686
|
+
let [l, u] = e.useState(c), d = !n && !r && l.trim().length > 0;
|
|
4687
|
+
return /* @__PURE__ */ E("div", {
|
|
4688
|
+
"data-slot": "chat-input",
|
|
4689
|
+
className: a("flex items-end gap-2 rounded-lg border bg-background p-2 focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50", n && "opacity-50", s),
|
|
4690
|
+
children: [/* @__PURE__ */ T("textarea", {
|
|
4691
|
+
"data-slot": "chat-input-textarea",
|
|
4692
|
+
className: "max-h-[160px] min-h-[36px] w-full resize-none bg-transparent px-2 py-1.5 text-sm text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed",
|
|
4693
|
+
placeholder: t,
|
|
4694
|
+
disabled: n,
|
|
4695
|
+
value: l,
|
|
4696
|
+
rows: 1,
|
|
4697
|
+
onChange: (e) => u(e.target.value),
|
|
4698
|
+
onKeyDown: (e) => {
|
|
4699
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), d && (i?.(l.trim()), u("")));
|
|
4700
|
+
}
|
|
4701
|
+
}), r ? /* @__PURE__ */ T(H, {
|
|
4702
|
+
type: "button",
|
|
4703
|
+
size: "icon",
|
|
4704
|
+
variant: "outline",
|
|
4705
|
+
"aria-label": "停止生成",
|
|
4706
|
+
onClick: () => o?.(),
|
|
4707
|
+
children: /* @__PURE__ */ T(ht, { className: "h-4 w-4" })
|
|
4708
|
+
}) : /* @__PURE__ */ T(H, {
|
|
4709
|
+
type: "button",
|
|
4710
|
+
size: "icon",
|
|
4711
|
+
"aria-label": "发送",
|
|
4712
|
+
disabled: !d,
|
|
4713
|
+
onClick: () => {
|
|
4714
|
+
d && (i?.(l.trim()), u(""));
|
|
4715
|
+
},
|
|
4716
|
+
children: /* @__PURE__ */ T(Ee, { className: "h-4 w-4" })
|
|
4717
|
+
})]
|
|
4718
|
+
});
|
|
4719
|
+
}
|
|
4720
|
+
// src/components/ui/chat-list.tsx
|
|
4721
|
+
function Po({ messages: t = [], autoScroll: n = !0, emptyDescription: r = "暂无消息,发送第一条开始对话", footer: i, className: o }) {
|
|
4722
|
+
let s = e.useRef(null);
|
|
4723
|
+
return e.useEffect(() => {
|
|
4724
|
+
n && s.current?.scrollIntoView({
|
|
4725
|
+
behavior: "smooth",
|
|
4726
|
+
block: "end"
|
|
4727
|
+
});
|
|
4728
|
+
}, [
|
|
4729
|
+
n,
|
|
4730
|
+
t.length,
|
|
4731
|
+
i
|
|
4732
|
+
]), /* @__PURE__ */ E("div", {
|
|
4733
|
+
"data-slot": "chat-list",
|
|
4734
|
+
className: a("flex flex-col gap-4 overflow-y-auto rounded-lg border bg-background p-4", o),
|
|
4735
|
+
children: [t.length === 0 && !i ? /* @__PURE__ */ T(no, { description: r }) : /* @__PURE__ */ E(w, { children: [t.map((e, t) => /* @__PURE__ */ T("div", {
|
|
4736
|
+
"data-slot": "chat-list-item",
|
|
4737
|
+
children: e
|
|
4738
|
+
}, t)), i && /* @__PURE__ */ T("div", {
|
|
4739
|
+
"data-slot": "chat-list-footer",
|
|
4740
|
+
className: "px-11",
|
|
4741
|
+
children: i
|
|
4742
|
+
})] }), /* @__PURE__ */ T("div", { ref: s })]
|
|
4743
|
+
});
|
|
4744
|
+
}
|
|
4745
|
+
// src/components/ui/inline-completion.tsx
|
|
4746
|
+
function Fo({ text: t, completion: n = "", onAccept: r, className: i }) {
|
|
4747
|
+
return e.useEffect(() => {
|
|
4748
|
+
if (!n || !r) return;
|
|
4749
|
+
let e = (e) => {
|
|
4750
|
+
e.key === "Tab" && (e.preventDefault(), r(n));
|
|
4751
|
+
};
|
|
4752
|
+
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
4753
|
+
}, [n, r]), /* @__PURE__ */ E("div", {
|
|
4754
|
+
"data-slot": "inline-completion",
|
|
4755
|
+
className: a("inline font-mono text-sm leading-6", i),
|
|
4756
|
+
children: [/* @__PURE__ */ T("span", {
|
|
4757
|
+
className: "text-foreground",
|
|
4758
|
+
children: t
|
|
4759
|
+
}), /* @__PURE__ */ T("span", {
|
|
4760
|
+
"data-slot": "inline-completion-ghost",
|
|
4761
|
+
className: "whitespace-pre text-muted-foreground/60",
|
|
4762
|
+
children: n
|
|
4763
|
+
})]
|
|
4764
|
+
});
|
|
4765
|
+
}
|
|
4766
|
+
// src/components/ui/stream-text.tsx
|
|
4767
|
+
function Io({ text: e = "", streaming: t = !1, className: n }) {
|
|
4768
|
+
return /* @__PURE__ */ E("span", {
|
|
4769
|
+
"data-slot": "stream-text",
|
|
4770
|
+
"data-streaming": t,
|
|
4771
|
+
className: a("whitespace-pre-wrap break-words text-sm leading-relaxed text-foreground", n),
|
|
4772
|
+
children: [e, t && /* @__PURE__ */ T("span", {
|
|
4773
|
+
"data-slot": "stream-text-cursor",
|
|
4774
|
+
className: "ml-0.5 inline-block h-4 w-[2px] translate-y-[3px] animate-pulse bg-foreground"
|
|
4775
|
+
})]
|
|
4776
|
+
});
|
|
4777
|
+
}
|
|
4778
|
+
// src/components/ui/thinking-loader.tsx
|
|
4779
|
+
function Lo({ variant: e = "dots", label: t = "思考中...", className: n }) {
|
|
4780
|
+
return /* @__PURE__ */ E("div", {
|
|
4781
|
+
"data-slot": "thinking-loader",
|
|
4782
|
+
role: "status",
|
|
4783
|
+
"aria-label": t,
|
|
4784
|
+
className: a("flex items-center gap-2 text-sm text-muted-foreground", n),
|
|
4785
|
+
children: [e === "spinner" ? /* @__PURE__ */ T(V, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ T("span", {
|
|
4786
|
+
className: "flex items-center gap-1",
|
|
4787
|
+
"aria-hidden": "true",
|
|
4788
|
+
children: [
|
|
4789
|
+
0,
|
|
4790
|
+
150,
|
|
4791
|
+
300
|
|
4792
|
+
].map((e) => /* @__PURE__ */ T("span", {
|
|
4793
|
+
className: "h-1.5 w-1.5 animate-bounce rounded-full bg-muted-foreground/70",
|
|
4794
|
+
style: { animationDelay: `${e}ms` }
|
|
4795
|
+
}, e))
|
|
4796
|
+
}), /* @__PURE__ */ T("span", { children: t })]
|
|
4797
|
+
});
|
|
4798
|
+
}
|
|
4799
|
+
// src/providers/theme-provider.tsx
|
|
4800
|
+
var Ro = e.createContext(null);
|
|
4801
|
+
function zo({ children: t, defaultTheme: n = "light", storageKey: r = "ql-ui-theme" }) {
|
|
4802
|
+
let [i, a] = e.useState(() => typeof window > "u" ? n : localStorage.getItem(r) ?? n);
|
|
4803
|
+
e.useEffect(() => {
|
|
4804
|
+
document.documentElement.classList.toggle("dark", i === "dark"), localStorage.setItem(r, i);
|
|
4805
|
+
}, [i, r]);
|
|
4806
|
+
let o = e.useCallback((e) => a(e), []), s = e.useCallback(() => a((e) => e === "dark" ? "light" : "dark"), []);
|
|
4807
|
+
return /* @__PURE__ */ T(Ro.Provider, {
|
|
4808
|
+
value: {
|
|
4809
|
+
theme: i,
|
|
4810
|
+
setTheme: o,
|
|
4811
|
+
toggleTheme: s
|
|
4812
|
+
},
|
|
4813
|
+
children: t
|
|
4814
|
+
});
|
|
4815
|
+
}
|
|
4816
|
+
function Bo() {
|
|
4817
|
+
let t = e.useContext(Ro);
|
|
4818
|
+
if (!t) throw Error("useTheme 必须在 ThemeProvider 内使用");
|
|
4819
|
+
return t;
|
|
4820
|
+
}
|
|
4821
|
+
// src/providers/confirm-provider.tsx
|
|
4822
|
+
var Vo = e.createContext(null);
|
|
4823
|
+
function Ho({ children: t }) {
|
|
4824
|
+
let [n, r] = e.useState(!1), [i, a] = e.useState({}), o = e.useRef(null), s = e.useCallback((e) => (a(e), r(!0), new Promise((e) => {
|
|
4825
|
+
o.current = e;
|
|
4826
|
+
})), []), c = (e) => {
|
|
4827
|
+
r(!1), o.current?.(e), o.current = null;
|
|
4828
|
+
};
|
|
4829
|
+
return /* @__PURE__ */ E(Vo.Provider, {
|
|
4830
|
+
value: s,
|
|
4831
|
+
children: [t, /* @__PURE__ */ T(Wt, {
|
|
4832
|
+
open: n,
|
|
4833
|
+
onOpenChange: (e) => {
|
|
4834
|
+
e || c(!1);
|
|
4835
|
+
},
|
|
4836
|
+
children: /* @__PURE__ */ E(Jt, { children: [/* @__PURE__ */ E(Yt, { children: [/* @__PURE__ */ T(Zt, { children: i.title ?? "确认操作" }), /* @__PURE__ */ T(Qt, { children: i.content ?? "是否继续?" })] }), /* @__PURE__ */ E(Xt, { children: [/* @__PURE__ */ T(tn, {
|
|
4837
|
+
onClick: () => c(!1),
|
|
4838
|
+
children: i.cancelText ?? "取消"
|
|
4839
|
+
}), /* @__PURE__ */ T(en, {
|
|
4840
|
+
className: i.danger ? "bg-destructive text-white hover:bg-destructive/90" : void 0,
|
|
4841
|
+
onClick: () => c(!0),
|
|
4842
|
+
children: i.okText ?? "确定"
|
|
4843
|
+
})] })] })
|
|
4844
|
+
})]
|
|
4845
|
+
});
|
|
4846
|
+
}
|
|
4847
|
+
function Uo() {
|
|
4848
|
+
let t = e.useContext(Vo);
|
|
4849
|
+
if (!t) throw Error("useConfirm 必须在 ConfirmProvider 内使用");
|
|
4850
|
+
return t;
|
|
4851
|
+
}
|
|
4852
|
+
// src/providers/toast-provider.tsx
|
|
4853
|
+
function Wo({ children: e, position: t = "top-center", richColors: n = !0 }) {
|
|
4854
|
+
return /* @__PURE__ */ E(w, { children: [e, /* @__PURE__ */ T(N, {
|
|
4855
|
+
position: t,
|
|
4856
|
+
richColors: n
|
|
4857
|
+
})] });
|
|
4858
|
+
}
|
|
4859
|
+
function Go() {
|
|
4860
|
+
return e.useMemo(() => ({
|
|
4861
|
+
success: (e, t) => P.success(e, t),
|
|
4862
|
+
error: (e, t) => P.error(e, t),
|
|
4863
|
+
warning: (e, t) => P.warning(e, t),
|
|
4864
|
+
info: (e, t) => P.info(e, t),
|
|
4865
|
+
loading: (e, t) => P.loading(e, t),
|
|
4866
|
+
dismiss: (e) => P.dismiss(e)
|
|
4867
|
+
}), []);
|
|
4868
|
+
}
|
|
4869
|
+
export { At as Accordion, Nt as AccordionContent, jt as AccordionItem, Mt as AccordionTrigger, so as ActionButton, Bt as Alert, Ht as AlertDescription, Wt as AlertDialog, en as AlertDialogAction, tn as AlertDialogCancel, Jt as AlertDialogContent, Qt as AlertDialogDescription, Xt as AlertDialogFooter, Yt as AlertDialogHeader, $t as AlertDialogMedia, qt as AlertDialogOverlay, Kt as AlertDialogPortal, Zt as AlertDialogTitle, Gt as AlertDialogTrigger, Vt as AlertTitle, Co as AspectRatio, rn as Badge, uo as BasePairSelector, H as Button, an as Calendar, on as CalendarDayButton, sn as Card, dn as CardAction, fn as CardContent, un as CardDescription, pn as CardFooter, cn as CardHeader, ln as CardTitle, No as ChatInput, Po as ChatList, Mo as ChatMessage, mn as Checkbox, hn as Collapsible, _n as CollapsibleContent, gn as CollapsibleTrigger, _a as Combobox, ca as Command, la as CommandDialog, fa as CommandEmpty, pa as CommandGroup, ua as CommandInput, ha as CommandItem, da as CommandList, ma as CommandSeparator, ga as CommandShortcut, Ho as ConfirmProvider, ba as DatePicker, mo as DatePickerInt, co as DeleteButton, to as Descriptions, lo as DetailButton, vn as Dialog, xn as DialogClose, Cn as DialogContent, Dn as DialogDescription, Tn as DialogFooter, wn as DialogHeader, Sn as DialogOverlay, bn as DialogPortal, En as DialogTitle, yn as DialogTrigger, ho as DigitalPairSelector, Fa as Drawer, Ra as DrawerClose, Ba as DrawerContent, Wa as DrawerDescription, Ha as DrawerFooter, Va as DrawerHeader, za as DrawerOverlay, La as DrawerPortal, Ua as DrawerTitle, Ia as DrawerTrigger, On as DropdownMenu, Pn as DropdownMenuCheckboxItem, jn as DropdownMenuContent, Mn as DropdownMenuGroup, Nn as DropdownMenuItem, Ln as DropdownMenuLabel, kn as DropdownMenuPortal, Fn as DropdownMenuRadioGroup, In as DropdownMenuRadioItem, Rn as DropdownMenuSeparator, zn as DropdownMenuShortcut, Bn as DropdownMenuSub, Hn as DropdownMenuSubContent, Vn as DropdownMenuSubTrigger, An as DropdownMenuTrigger, no as Empty, go as ExchangeSelect, Ja as FileTree, Ya as FileUpload, Sa as Form, ka as FormControl, Aa as FormDescription, wa as FormField, Da as FormItem, Oa as FormLabel, ja as FormMessage, wo as HoverCard, Eo as HoverCardContent, To as HoverCardTrigger, Fo as InlineCompletion, Un as Input, Do as InputOTP, Oo as InputOTPGroup, Ao as InputOTPSeparator, ko as InputOTPSlot, Wn as Label, _o as MobileCardList, bo as MonacoEditor, Za as Pagination, xo as PairSelect, So as PeriodSelect, Gn as Popover, Jn as PopoverAnchor, qn as PopoverContent, Zn as PopoverDescription, Yn as PopoverHeader, Xn as PopoverTitle, Kn as PopoverTrigger, Qn as Progress, $n as RadioGroup, er as RadioGroupItem, xa as RangePicker, va as SearchableSelect, ao as Segmented, tr as Select, ar as SelectContent, nr as SelectGroup, sr as SelectItem, or as SelectLabel, ur as SelectScrollDownButton, lr as SelectScrollUpButton, cr as SelectSeparator, ir as SelectTrigger, rr as SelectValue, dr as Separator, fr as Sheet, mr as SheetClose, _r as SheetContent, xr as SheetDescription, yr as SheetFooter, vr as SheetHeader, br as SheetTitle, pr as SheetTrigger, Sr as Skeleton, Cr as Slider, Pa as StandardTable, oo as Statistic, Qa as Steps, Io as StreamText, wr as Switch, Tr as Table, Dr as TableBody, Mr as TableCaption, jr as TableCell, Or as TableFooter, Ar as TableHead, Er as TableHeader, kr as TableRow, Nr as Tabs, Rr as TabsBar, Lr as TabsContent, Fr as TabsList, Ir as TabsTrigger, io as Tag, zr as Textarea, zo as ThemeProvider, Lo as ThinkingLoader, eo as Timeline, $a as TimelineItem, Wo as ToastProvider, Ma as Toaster, Vr as Tooltip, Ur as TooltipContent, Br as TooltipProvider, Hr as TooltipTrigger, nn as badgeVariants, Ut as buttonVariants, $ as cn, Pr as tabsListVariants, Uo as useConfirm, Ta as useFormField, Na as useMediaQuery, Bo as useTheme, Go as useToast };
|