@viglet/viglet-design-system 2026.2.55 → 2026.3.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/dist/{breadcrumb.context-C20vyfmC.js → breadcrumb.context-C7VCfh49.js} +324 -324
- package/dist/breadcrumb.context-Td6Tjc_z.cjs +7 -0
- package/dist/components/app-footer.d.ts +1 -1
- package/dist/components/app-footer.d.ts.map +1 -1
- package/dist/components/app-switcher.d.ts +1 -1
- package/dist/components/app-switcher.d.ts.map +1 -1
- package/dist/components/backend-status.d.ts +2 -2
- package/dist/components/backend-status.d.ts.map +1 -1
- package/dist/components/language-select.d.ts +1 -1
- package/dist/components/language-select.d.ts.map +1 -1
- package/dist/components/language-switcher.d.ts +1 -1
- package/dist/components/language-switcher.d.ts.map +1 -1
- package/dist/components/login/login.d.ts +11 -11
- package/dist/components/login/login.d.ts.map +1 -1
- package/dist/components/mode-toggle.d.ts +2 -2
- package/dist/components/mode-toggle.d.ts.map +1 -1
- package/dist/components/nav-secondary.d.ts +1 -1
- package/dist/components/nav-secondary.d.ts.map +1 -1
- package/dist/components/router/gradient-button-link.d.ts +1 -1
- package/dist/components/router/gradient-button-link.d.ts.map +1 -1
- package/dist/components/router/loading-provider.d.ts +1 -1
- package/dist/components/router/loading-provider.d.ts.map +1 -1
- package/dist/components/router/nav-main.d.ts +1 -1
- package/dist/components/router/nav-main.d.ts.map +1 -1
- package/dist/components/router/nav-user.d.ts +2 -1
- package/dist/components/router/nav-user.d.ts.map +1 -1
- package/dist/components/router/sticky.page.header.d.ts.map +1 -1
- package/dist/components/router/sub.page.header.d.ts.map +1 -1
- package/dist/components/startup-first/startup-first.d.ts +11 -11
- package/dist/components/startup-first/startup-first.d.ts.map +1 -1
- package/dist/components/theme-provider.d.ts +1 -1
- package/dist/components/theme-provider.d.ts.map +1 -1
- package/dist/components/ui/avatar.d.ts +3 -3
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +7 -7
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +7 -7
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts +10 -10
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/drawer.d.ts +10 -10
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +15 -15
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/floating-formulas-bg.d.ts +1 -1
- package/dist/components/ui/floating-formulas-bg.d.ts.map +1 -1
- package/dist/components/ui/form-actions.d.ts +4 -4
- package/dist/components/ui/form-actions.d.ts.map +1 -1
- package/dist/components/ui/form.d.ts +7 -7
- package/dist/components/ui/form.d.ts.map +1 -1
- package/dist/components/ui/glass-card.d.ts +1 -1
- package/dist/components/ui/glass-card.d.ts.map +1 -1
- package/dist/components/ui/gradient-button.d.ts +1 -1
- package/dist/components/ui/gradient-button.d.ts.map +1 -1
- package/dist/components/ui/gradient-switch.d.ts +1 -1
- package/dist/components/ui/gradient-switch.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/label.d.ts +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts +8 -8
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/pagination.d.ts +5 -5
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts +7 -7
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/progress.d.ts +1 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/pulse-ring.d.ts +1 -1
- package/dist/components/ui/pulse-ring.d.ts.map +1 -1
- package/dist/components/ui/resizable.d.ts +3 -3
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/section-card.d.ts +4 -4
- package/dist/components/ui/section-card.d.ts.map +1 -1
- package/dist/components/ui/select.d.ts +10 -10
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/separator.d.ts +1 -1
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/sheet.d.ts +8 -8
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sidebar.d.ts +23 -23
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/slider.d.ts +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/sonner.d.ts +1 -1
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/stepper.d.ts +3 -3
- package/dist/components/ui/stepper.d.ts.map +1 -1
- package/dist/components/ui/sticky-save-bar.d.ts +2 -2
- package/dist/components/ui/sticky-save-bar.d.ts.map +1 -1
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/table.d.ts +8 -8
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts +4 -4
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/textarea.d.ts +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +2 -2
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/tooltip.d.ts +4 -4
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/user-avatar.d.ts +1 -1
- package/dist/components/ui/user-avatar.d.ts.map +1 -1
- package/dist/components/ui/user-menu.d.ts +1 -1
- package/dist/components/ui/user-menu.d.ts.map +1 -1
- package/dist/components/viglet-app-switcher.d.ts +1 -1
- package/dist/components/viglet-app-switcher.d.ts.map +1 -1
- package/dist/contexts/breadcrumb.context.d.ts +1 -1
- package/dist/contexts/breadcrumb.context.d.ts.map +1 -1
- package/dist/contexts/user.context.d.ts +1 -1
- package/dist/contexts/user.context.d.ts.map +1 -1
- package/dist/floating-formulas-bg.cjs.js +1 -1
- package/dist/i18n-DN_2YzjB.cjs +1 -0
- package/dist/i18n.cjs.js +1 -1
- package/dist/i18n.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +557 -557
- package/dist/{chunk-Bmb41Sf3.cjs → rolldown-runtime-CMqjfN_6.cjs} +1 -1
- package/dist/router.cjs.js +1 -1
- package/dist/router.es.js +384 -384
- package/dist/viglet-design-system.css +1 -1
- package/dist/vite.cjs.js +10 -2
- package/dist/vite.es.js +10 -2
- package/package.json +2 -2
- package/dist/breadcrumb.context-sGIkawm9.cjs +0 -7
- package/dist/i18n-DHez5YdJ.cjs +0 -1
- /package/dist/{i18n-DFQANHU9.js → i18n-C94rDRaM.js} +0 -0
|
@@ -8,22 +8,22 @@ import { Slot as h } from "@radix-ui/react-slot";
|
|
|
8
8
|
import { cva as g } from "class-variance-authority";
|
|
9
9
|
import * as _ from "@radix-ui/react-dialog";
|
|
10
10
|
import * as v from "@radix-ui/react-dropdown-menu";
|
|
11
|
-
import { useTranslation as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
11
|
+
import { useTranslation as ee } from "react-i18next";
|
|
12
|
+
import * as y from "@radix-ui/react-select";
|
|
13
|
+
import * as te from "@radix-ui/react-separator";
|
|
14
|
+
import * as b from "@radix-ui/react-tooltip";
|
|
15
15
|
//#region src/lib/utils.ts
|
|
16
|
-
function
|
|
16
|
+
function x(...n) {
|
|
17
17
|
return t(e(n));
|
|
18
18
|
}
|
|
19
|
-
var
|
|
19
|
+
var ne = (e, t = 10) => {
|
|
20
20
|
if (!e || e.length <= t) return e ?? "";
|
|
21
21
|
let n = t - 3, r = Math.ceil(n / 2), i = Math.floor(n / 2);
|
|
22
22
|
return e.substring(0, r) + "..." + e.substring(e.length - i);
|
|
23
|
-
},
|
|
23
|
+
}, re = (e) => {
|
|
24
24
|
let t = e.split("_")[1]?.toUpperCase();
|
|
25
25
|
return !t?.length || t.length !== 2 ? "🌐" : t.split("").map((e) => String.fromCodePoint((e.codePointAt(0) ?? 0) + 127397)).join("");
|
|
26
|
-
},
|
|
26
|
+
}, S = (e) => {
|
|
27
27
|
let t = 0;
|
|
28
28
|
for (let n = 0; n < e.length; n++) t = (e.codePointAt(n) ?? 0) + ((t << 5) - t);
|
|
29
29
|
let n = Math.abs(t) % 360;
|
|
@@ -40,10 +40,10 @@ var te = (e, t = 10) => {
|
|
|
40
40
|
border: `hsl(${n}, 50%, 25%)`
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
},
|
|
44
|
-
let t =
|
|
43
|
+
}, ie = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ae = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), oe = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), se = (e) => {
|
|
44
|
+
let t = oe(e);
|
|
45
45
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
46
|
-
},
|
|
46
|
+
}, C = {
|
|
47
47
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48
48
|
width: 24,
|
|
49
49
|
height: 24,
|
|
@@ -53,48 +53,31 @@ var te = (e, t = 10) => {
|
|
|
53
53
|
strokeWidth: 2,
|
|
54
54
|
strokeLinecap: "round",
|
|
55
55
|
strokeLinejoin: "round"
|
|
56
|
-
},
|
|
56
|
+
}, ce = (e) => {
|
|
57
57
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
58
58
|
return !1;
|
|
59
|
-
},
|
|
60
|
-
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } =
|
|
59
|
+
}, le = r({}), ue = () => s(le), de = a(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: r, className: a = "", children: o, iconNode: s, ...c }, l) => {
|
|
60
|
+
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = ue() ?? {}, h = r ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
|
|
61
61
|
return i("svg", {
|
|
62
62
|
ref: l,
|
|
63
|
-
...
|
|
64
|
-
width: t ?? u ??
|
|
65
|
-
height: t ?? u ??
|
|
63
|
+
...C,
|
|
64
|
+
width: t ?? u ?? C.width,
|
|
65
|
+
height: t ?? u ?? C.height,
|
|
66
66
|
stroke: e ?? p,
|
|
67
67
|
strokeWidth: h,
|
|
68
|
-
className:
|
|
69
|
-
...!o && !
|
|
68
|
+
className: ie("lucide", m, a),
|
|
69
|
+
...!o && !ce(c) && { "aria-hidden": "true" },
|
|
70
70
|
...c
|
|
71
71
|
}, [...s.map(([e, t]) => i(e, t)), ...Array.isArray(o) ? o : [o]]);
|
|
72
|
-
}),
|
|
73
|
-
let n = a(({ className: n, ...r }, a) => i(
|
|
72
|
+
}), w = (e, t) => {
|
|
73
|
+
let n = a(({ className: n, ...r }, a) => i(de, {
|
|
74
74
|
ref: a,
|
|
75
75
|
iconNode: t,
|
|
76
|
-
className:
|
|
76
|
+
className: ie(`lucide-${ae(se(e))}`, `lucide-${e}`, n),
|
|
77
77
|
...r
|
|
78
78
|
}));
|
|
79
|
-
return n.displayName =
|
|
80
|
-
},
|
|
81
|
-
d: "M20 6 9 17l-5-5",
|
|
82
|
-
key: "1gmf2c"
|
|
83
|
-
}]]), O = E("chevron-down", [["path", {
|
|
84
|
-
d: "m6 9 6 6 6-6",
|
|
85
|
-
key: "qrunsl"
|
|
86
|
-
}]]), k = E("chevron-right", [["path", {
|
|
87
|
-
d: "m9 18 6-6-6-6",
|
|
88
|
-
key: "mthhwq"
|
|
89
|
-
}]]), ue = E("chevron-up", [["path", {
|
|
90
|
-
d: "m18 15-6-6-6 6",
|
|
91
|
-
key: "153udz"
|
|
92
|
-
}]]), de = E("circle", [["circle", {
|
|
93
|
-
cx: "12",
|
|
94
|
-
cy: "12",
|
|
95
|
-
r: "10",
|
|
96
|
-
key: "1mglay"
|
|
97
|
-
}]]), fe = E("ellipsis", [
|
|
79
|
+
return n.displayName = se(e), n;
|
|
80
|
+
}, T = w("ellipsis", [
|
|
98
81
|
["circle", {
|
|
99
82
|
cx: "12",
|
|
100
83
|
cy: "12",
|
|
@@ -113,7 +96,34 @@ var te = (e, t = 10) => {
|
|
|
113
96
|
r: "1",
|
|
114
97
|
key: "1pcz8c"
|
|
115
98
|
}]
|
|
116
|
-
]),
|
|
99
|
+
]), fe = w("panel-left", [["rect", {
|
|
100
|
+
width: "18",
|
|
101
|
+
height: "18",
|
|
102
|
+
x: "3",
|
|
103
|
+
y: "3",
|
|
104
|
+
rx: "2",
|
|
105
|
+
key: "afitv7"
|
|
106
|
+
}], ["path", {
|
|
107
|
+
d: "M9 3v18",
|
|
108
|
+
key: "fh3hqa"
|
|
109
|
+
}]]), E = w("check", [["path", {
|
|
110
|
+
d: "M20 6 9 17l-5-5",
|
|
111
|
+
key: "1gmf2c"
|
|
112
|
+
}]]), D = w("chevron-down", [["path", {
|
|
113
|
+
d: "m6 9 6 6 6-6",
|
|
114
|
+
key: "qrunsl"
|
|
115
|
+
}]]), O = w("chevron-right", [["path", {
|
|
116
|
+
d: "m9 18 6-6-6-6",
|
|
117
|
+
key: "mthhwq"
|
|
118
|
+
}]]), pe = w("chevron-up", [["path", {
|
|
119
|
+
d: "m18 15-6-6-6 6",
|
|
120
|
+
key: "153udz"
|
|
121
|
+
}]]), me = w("circle", [["circle", {
|
|
122
|
+
cx: "12",
|
|
123
|
+
cy: "12",
|
|
124
|
+
r: "10",
|
|
125
|
+
key: "1mglay"
|
|
126
|
+
}]]), he = w("globe", [
|
|
117
127
|
["circle", {
|
|
118
128
|
cx: "12",
|
|
119
129
|
cy: "12",
|
|
@@ -128,7 +138,7 @@ var te = (e, t = 10) => {
|
|
|
128
138
|
d: "M2 12h20",
|
|
129
139
|
key: "9i4pu4"
|
|
130
140
|
}]
|
|
131
|
-
]),
|
|
141
|
+
]), ge = w("menu", [
|
|
132
142
|
["path", {
|
|
133
143
|
d: "M4 5h16",
|
|
134
144
|
key: "1tepv9"
|
|
@@ -141,7 +151,7 @@ var te = (e, t = 10) => {
|
|
|
141
151
|
d: "M4 19h16",
|
|
142
152
|
key: "1djgab"
|
|
143
153
|
}]
|
|
144
|
-
]),
|
|
154
|
+
]), _e = w("monitor", [
|
|
145
155
|
["rect", {
|
|
146
156
|
width: "20",
|
|
147
157
|
height: "14",
|
|
@@ -164,20 +174,10 @@ var te = (e, t = 10) => {
|
|
|
164
174
|
y2: "21",
|
|
165
175
|
key: "vw1qmm"
|
|
166
176
|
}]
|
|
167
|
-
]),
|
|
177
|
+
]), ve = w("moon", [["path", {
|
|
168
178
|
d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
|
|
169
179
|
key: "kfwtm"
|
|
170
|
-
}]]),
|
|
171
|
-
width: "18",
|
|
172
|
-
height: "18",
|
|
173
|
-
x: "3",
|
|
174
|
-
y: "3",
|
|
175
|
-
rx: "2",
|
|
176
|
-
key: "afitv7"
|
|
177
|
-
}], ["path", {
|
|
178
|
-
d: "M9 3v18",
|
|
179
|
-
key: "fh3hqa"
|
|
180
|
-
}]]), ve = E("sun", [
|
|
180
|
+
}]]), k = w("sun", [
|
|
181
181
|
["circle", {
|
|
182
182
|
cx: "12",
|
|
183
183
|
cy: "12",
|
|
@@ -216,7 +216,7 @@ var te = (e, t = 10) => {
|
|
|
216
216
|
d: "m19.07 4.93-1.41 1.41",
|
|
217
217
|
key: "1shlcs"
|
|
218
218
|
}]
|
|
219
|
-
]),
|
|
219
|
+
]), A = w("x", [["path", {
|
|
220
220
|
d: "M18 6 6 18",
|
|
221
221
|
key: "1bl5f8"
|
|
222
222
|
}], ["path", {
|
|
@@ -225,30 +225,30 @@ var te = (e, t = 10) => {
|
|
|
225
225
|
}]]);
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region src/components/ui/avatar.tsx
|
|
228
|
-
function
|
|
228
|
+
function ye({ className: e, ...t }) {
|
|
229
229
|
return /* @__PURE__ */ f(m.Root, {
|
|
230
230
|
"data-slot": "avatar",
|
|
231
|
-
className:
|
|
231
|
+
className: x("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
|
|
232
232
|
...t
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function be({ className: e, ...t }) {
|
|
236
236
|
return /* @__PURE__ */ f(m.Image, {
|
|
237
237
|
"data-slot": "avatar-image",
|
|
238
|
-
className:
|
|
238
|
+
className: x("aspect-square size-full", e),
|
|
239
239
|
...t
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function xe({ className: e, ...t }) {
|
|
243
243
|
return /* @__PURE__ */ f(m.Fallback, {
|
|
244
244
|
"data-slot": "avatar-fallback",
|
|
245
|
-
className:
|
|
245
|
+
className: x("bg-muted flex size-full items-center justify-center rounded-full", e),
|
|
246
246
|
...t
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region src/components/ui/badge.tsx
|
|
251
|
-
var
|
|
251
|
+
var Se = g("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
252
252
|
variants: { variant: {
|
|
253
253
|
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
254
254
|
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
@@ -257,71 +257,71 @@ var Ce = g("inline-flex items-center justify-center rounded-full border px-2 py-
|
|
|
257
257
|
} },
|
|
258
258
|
defaultVariants: { variant: "default" }
|
|
259
259
|
});
|
|
260
|
-
function
|
|
260
|
+
function j({ className: e, variant: t, asChild: n = !1, ...r }) {
|
|
261
261
|
return /* @__PURE__ */ f(n ? h : "span", {
|
|
262
262
|
"data-slot": "badge",
|
|
263
|
-
className:
|
|
263
|
+
className: x(Se({ variant: t }), e),
|
|
264
264
|
...r
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region src/components/ui/breadcrumb.tsx
|
|
269
|
-
function
|
|
269
|
+
function Ce({ ...e }) {
|
|
270
270
|
return /* @__PURE__ */ f("nav", {
|
|
271
271
|
"aria-label": "breadcrumb",
|
|
272
272
|
"data-slot": "breadcrumb",
|
|
273
273
|
...e
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function we({ className: e, ...t }) {
|
|
277
277
|
return /* @__PURE__ */ f("ol", {
|
|
278
278
|
"data-slot": "breadcrumb-list",
|
|
279
|
-
className:
|
|
279
|
+
className: x("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", e),
|
|
280
280
|
...t
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Te({ className: e, ...t }) {
|
|
284
284
|
return /* @__PURE__ */ f("li", {
|
|
285
285
|
"data-slot": "breadcrumb-item",
|
|
286
|
-
className:
|
|
286
|
+
className: x("inline-flex items-center gap-1.5", e),
|
|
287
287
|
...t
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Ee({ asChild: e, className: t, ...n }) {
|
|
291
291
|
return /* @__PURE__ */ f(e ? h : "a", {
|
|
292
292
|
"data-slot": "breadcrumb-link",
|
|
293
|
-
className:
|
|
293
|
+
className: x("hover:text-foreground transition-colors", t),
|
|
294
294
|
...n
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function De({ className: e, ...t }) {
|
|
298
298
|
return /* @__PURE__ */ f("span", {
|
|
299
299
|
"data-slot": "breadcrumb-page",
|
|
300
300
|
role: "link",
|
|
301
301
|
"aria-disabled": "true",
|
|
302
302
|
"aria-current": "page",
|
|
303
|
-
className:
|
|
303
|
+
className: x("text-foreground font-normal", e),
|
|
304
304
|
...t
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Oe({ children: e, className: t, ...n }) {
|
|
308
308
|
return /* @__PURE__ */ f("li", {
|
|
309
309
|
"data-slot": "breadcrumb-separator",
|
|
310
310
|
role: "presentation",
|
|
311
311
|
"aria-hidden": "true",
|
|
312
|
-
className:
|
|
312
|
+
className: x("[&>svg]:size-3.5", t),
|
|
313
313
|
...n,
|
|
314
|
-
children: e ?? /* @__PURE__ */ f(
|
|
314
|
+
children: e ?? /* @__PURE__ */ f(O, {})
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function ke({ className: e, ...t }) {
|
|
318
318
|
return /* @__PURE__ */ p("span", {
|
|
319
319
|
"data-slot": "breadcrumb-ellipsis",
|
|
320
320
|
role: "presentation",
|
|
321
321
|
"aria-hidden": "true",
|
|
322
|
-
className:
|
|
322
|
+
className: x("flex size-9 items-center justify-center", e),
|
|
323
323
|
...t,
|
|
324
|
-
children: [/* @__PURE__ */ f(
|
|
324
|
+
children: [/* @__PURE__ */ f(T, { className: "size-4" }), /* @__PURE__ */ f("span", {
|
|
325
325
|
className: "sr-only",
|
|
326
326
|
children: "More"
|
|
327
327
|
})]
|
|
@@ -329,99 +329,99 @@ function Ae({ className: e, ...t }) {
|
|
|
329
329
|
}
|
|
330
330
|
//#endregion
|
|
331
331
|
//#region src/components/ui/card.tsx
|
|
332
|
-
function
|
|
332
|
+
function Ae({ className: e, ...t }) {
|
|
333
333
|
return /* @__PURE__ */ f("div", {
|
|
334
334
|
"data-slot": "card",
|
|
335
|
-
className:
|
|
335
|
+
className: x("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", e),
|
|
336
336
|
...t
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function je({ className: e, ...t }) {
|
|
340
340
|
return /* @__PURE__ */ f("div", {
|
|
341
341
|
"data-slot": "card-header",
|
|
342
|
-
className:
|
|
342
|
+
className: x("@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),
|
|
343
343
|
...t
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Me({ className: e, ...t }) {
|
|
347
347
|
return /* @__PURE__ */ f("div", {
|
|
348
348
|
"data-slot": "card-title",
|
|
349
|
-
className:
|
|
349
|
+
className: x("leading-none font-semibold", e),
|
|
350
350
|
...t
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Ne({ className: e, ...t }) {
|
|
354
354
|
return /* @__PURE__ */ f("div", {
|
|
355
355
|
"data-slot": "card-description",
|
|
356
|
-
className:
|
|
356
|
+
className: x("text-muted-foreground text-sm", e),
|
|
357
357
|
...t
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Pe({ className: e, ...t }) {
|
|
361
361
|
return /* @__PURE__ */ f("div", {
|
|
362
362
|
"data-slot": "card-action",
|
|
363
|
-
className:
|
|
363
|
+
className: x("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
364
364
|
...t
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Fe({ className: e, ...t }) {
|
|
368
368
|
return /* @__PURE__ */ f("div", {
|
|
369
369
|
"data-slot": "card-content",
|
|
370
|
-
className:
|
|
370
|
+
className: x("px-6", e),
|
|
371
371
|
...t
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Ie({ className: e, ...t }) {
|
|
375
375
|
return /* @__PURE__ */ f("div", {
|
|
376
376
|
"data-slot": "card-footer",
|
|
377
|
-
className:
|
|
377
|
+
className: x("flex items-center px-6 [.border-t]:pt-6", e),
|
|
378
378
|
...t
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
//#endregion
|
|
382
382
|
//#region src/components/ui/dialog.tsx
|
|
383
|
-
function
|
|
383
|
+
function Le({ ...e }) {
|
|
384
384
|
return /* @__PURE__ */ f(_.Root, {
|
|
385
385
|
"data-slot": "dialog",
|
|
386
386
|
...e
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Re({ ...e }) {
|
|
390
390
|
return /* @__PURE__ */ f(_.Trigger, {
|
|
391
391
|
"data-slot": "dialog-trigger",
|
|
392
392
|
...e
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function ze({ ...e }) {
|
|
396
396
|
return /* @__PURE__ */ f(_.Portal, {
|
|
397
397
|
"data-slot": "dialog-portal",
|
|
398
398
|
...e
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function Be({ ...e }) {
|
|
402
402
|
return /* @__PURE__ */ f(_.Close, {
|
|
403
403
|
"data-slot": "dialog-close",
|
|
404
404
|
...e
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Ve({ className: e, ...t }) {
|
|
408
408
|
return /* @__PURE__ */ f(_.Overlay, {
|
|
409
409
|
"data-slot": "dialog-overlay",
|
|
410
|
-
className:
|
|
410
|
+
className: x("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
411
411
|
...t
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
return /* @__PURE__ */ p(
|
|
414
|
+
function He({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
415
|
+
return /* @__PURE__ */ p(ze, {
|
|
416
416
|
"data-slot": "dialog-portal",
|
|
417
|
-
children: [/* @__PURE__ */ f(
|
|
417
|
+
children: [/* @__PURE__ */ f(Ve, {}), /* @__PURE__ */ p(_.Content, {
|
|
418
418
|
"data-slot": "dialog-content",
|
|
419
|
-
className:
|
|
419
|
+
className: x("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 p-6 shadow-lg duration-200 sm:max-w-lg", e),
|
|
420
420
|
...r,
|
|
421
421
|
children: [t, n && /* @__PURE__ */ p(_.Close, {
|
|
422
422
|
"data-slot": "dialog-close",
|
|
423
423
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
424
|
-
children: [/* @__PURE__ */ f(
|
|
424
|
+
children: [/* @__PURE__ */ f(A, {}), /* @__PURE__ */ f("span", {
|
|
425
425
|
className: "sr-only",
|
|
426
426
|
children: "Close"
|
|
427
427
|
})]
|
|
@@ -429,153 +429,153 @@ function Ue({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
429
429
|
})]
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Ue({ className: e, ...t }) {
|
|
433
433
|
return /* @__PURE__ */ f("div", {
|
|
434
434
|
"data-slot": "dialog-header",
|
|
435
|
-
className:
|
|
435
|
+
className: x("flex flex-col gap-2 text-center sm:text-left", e),
|
|
436
436
|
...t
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function We({ className: e, ...t }) {
|
|
440
440
|
return /* @__PURE__ */ f("div", {
|
|
441
441
|
"data-slot": "dialog-footer",
|
|
442
|
-
className:
|
|
442
|
+
className: x("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
443
443
|
...t
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Ge({ className: e, ...t }) {
|
|
447
447
|
return /* @__PURE__ */ f(_.Title, {
|
|
448
448
|
"data-slot": "dialog-title",
|
|
449
|
-
className:
|
|
449
|
+
className: x("text-lg leading-none font-semibold", e),
|
|
450
450
|
...t
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ke({ className: e, ...t }) {
|
|
454
454
|
return /* @__PURE__ */ f(_.Description, {
|
|
455
455
|
"data-slot": "dialog-description",
|
|
456
|
-
className:
|
|
456
|
+
className: x("text-muted-foreground text-sm", e),
|
|
457
457
|
...t
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
//#endregion
|
|
461
461
|
//#region src/components/ui/dropdown-menu.tsx
|
|
462
|
-
function
|
|
462
|
+
function qe({ ...e }) {
|
|
463
463
|
return /* @__PURE__ */ f(v.Root, {
|
|
464
464
|
"data-slot": "dropdown-menu",
|
|
465
465
|
...e
|
|
466
466
|
});
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function Je({ ...e }) {
|
|
469
469
|
return /* @__PURE__ */ f(v.Portal, {
|
|
470
470
|
"data-slot": "dropdown-menu-portal",
|
|
471
471
|
...e
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function M({ ...e }) {
|
|
475
475
|
return /* @__PURE__ */ f(v.Trigger, {
|
|
476
476
|
"data-slot": "dropdown-menu-trigger",
|
|
477
477
|
...e
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function N({ className: e, sideOffset: t = 4, ...n }) {
|
|
481
481
|
return /* @__PURE__ */ f(v.Portal, { children: /* @__PURE__ */ f(v.Content, {
|
|
482
482
|
"data-slot": "dropdown-menu-content",
|
|
483
483
|
sideOffset: t,
|
|
484
|
-
className:
|
|
484
|
+
className: x("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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 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 p-1 shadow-md", e),
|
|
485
485
|
...n
|
|
486
486
|
}) });
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Ye({ ...e }) {
|
|
489
489
|
return /* @__PURE__ */ f(v.Group, {
|
|
490
490
|
"data-slot": "dropdown-menu-group",
|
|
491
491
|
...e
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function P({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
495
495
|
return /* @__PURE__ */ f(v.Item, {
|
|
496
496
|
"data-slot": "dropdown-menu-item",
|
|
497
497
|
"data-inset": t,
|
|
498
498
|
"data-variant": n,
|
|
499
|
-
className:
|
|
499
|
+
className: x("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
500
500
|
...r
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Xe({ className: e, children: t, checked: n, ...r }) {
|
|
504
504
|
return /* @__PURE__ */ p(v.CheckboxItem, {
|
|
505
505
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
506
|
-
className:
|
|
506
|
+
className: x("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
507
507
|
checked: n,
|
|
508
508
|
...r,
|
|
509
509
|
children: [/* @__PURE__ */ f("span", {
|
|
510
510
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
511
|
-
children: /* @__PURE__ */ f(v.ItemIndicator, { children: /* @__PURE__ */ f(
|
|
511
|
+
children: /* @__PURE__ */ f(v.ItemIndicator, { children: /* @__PURE__ */ f(E, { className: "size-4" }) })
|
|
512
512
|
}), t]
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Ze({ ...e }) {
|
|
516
516
|
return /* @__PURE__ */ f(v.RadioGroup, {
|
|
517
517
|
"data-slot": "dropdown-menu-radio-group",
|
|
518
518
|
...e
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Qe({ className: e, children: t, ...n }) {
|
|
522
522
|
return /* @__PURE__ */ p(v.RadioItem, {
|
|
523
523
|
"data-slot": "dropdown-menu-radio-item",
|
|
524
|
-
className:
|
|
524
|
+
className: x("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
525
525
|
...n,
|
|
526
526
|
children: [/* @__PURE__ */ f("span", {
|
|
527
527
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
528
|
-
children: /* @__PURE__ */ f(v.ItemIndicator, { children: /* @__PURE__ */ f(
|
|
528
|
+
children: /* @__PURE__ */ f(v.ItemIndicator, { children: /* @__PURE__ */ f(me, { className: "size-2 fill-current" }) })
|
|
529
529
|
}), t]
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function $e({ className: e, inset: t, ...n }) {
|
|
533
533
|
return /* @__PURE__ */ f(v.Label, {
|
|
534
534
|
"data-slot": "dropdown-menu-label",
|
|
535
535
|
"data-inset": t,
|
|
536
|
-
className:
|
|
536
|
+
className: x("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", e),
|
|
537
537
|
...n
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function et({ className: e, ...t }) {
|
|
541
541
|
return /* @__PURE__ */ f(v.Separator, {
|
|
542
542
|
"data-slot": "dropdown-menu-separator",
|
|
543
|
-
className:
|
|
543
|
+
className: x("bg-border -mx-1 my-1 h-px", e),
|
|
544
544
|
...t
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function tt({ className: e, ...t }) {
|
|
548
548
|
return /* @__PURE__ */ f("span", {
|
|
549
549
|
"data-slot": "dropdown-menu-shortcut",
|
|
550
|
-
className:
|
|
550
|
+
className: x("text-muted-foreground ml-auto text-xs tracking-widest", e),
|
|
551
551
|
...t
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function nt({ ...e }) {
|
|
555
555
|
return /* @__PURE__ */ f(v.Sub, {
|
|
556
556
|
"data-slot": "dropdown-menu-sub",
|
|
557
557
|
...e
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function rt({ className: e, inset: t, children: n, ...r }) {
|
|
561
561
|
return /* @__PURE__ */ p(v.SubTrigger, {
|
|
562
562
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
563
563
|
"data-inset": t,
|
|
564
|
-
className:
|
|
564
|
+
className: x("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
565
565
|
...r,
|
|
566
|
-
children: [n, /* @__PURE__ */ f(
|
|
566
|
+
children: [n, /* @__PURE__ */ f(O, { className: "ml-auto size-4" })]
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function it({ className: e, ...t }) {
|
|
570
570
|
return /* @__PURE__ */ f(v.SubContent, {
|
|
571
571
|
"data-slot": "dropdown-menu-sub-content",
|
|
572
|
-
className:
|
|
572
|
+
className: x("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", e),
|
|
573
573
|
...t
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
//#endregion
|
|
577
577
|
//#region src/components/ui/gradient-button.tsx
|
|
578
|
-
var
|
|
578
|
+
var F = g("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-200 cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-[3px]", {
|
|
579
579
|
variants: {
|
|
580
580
|
variant: {
|
|
581
581
|
default: [
|
|
@@ -659,8 +659,8 @@ var P = g("inline-flex items-center justify-center gap-2 whitespace-nowrap round
|
|
|
659
659
|
size: "default"
|
|
660
660
|
}
|
|
661
661
|
});
|
|
662
|
-
function
|
|
663
|
-
let o =
|
|
662
|
+
function I({ className: e, variant: t, size: n, asChild: r = !1, loading: i = !1, ...a }) {
|
|
663
|
+
let o = x(F({
|
|
664
664
|
variant: t,
|
|
665
665
|
size: n,
|
|
666
666
|
className: e
|
|
@@ -692,256 +692,256 @@ function F({ className: e, variant: t, size: n, asChild: r = !1, loading: i = !1
|
|
|
692
692
|
}
|
|
693
693
|
//#endregion
|
|
694
694
|
//#region src/components/ui/input.tsx
|
|
695
|
-
function
|
|
695
|
+
function L({ className: e, type: t, ...n }) {
|
|
696
696
|
return /* @__PURE__ */ f("input", {
|
|
697
697
|
type: t,
|
|
698
698
|
"data-slot": "input",
|
|
699
|
-
className:
|
|
699
|
+
className: x("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent pl-3 pr-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", e),
|
|
700
700
|
...n
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
703
|
//#endregion
|
|
704
704
|
//#region src/components/ui/select.tsx
|
|
705
|
-
function
|
|
706
|
-
return /* @__PURE__ */ f(
|
|
705
|
+
function at({ ...e }) {
|
|
706
|
+
return /* @__PURE__ */ f(y.Root, {
|
|
707
707
|
"data-slot": "select",
|
|
708
708
|
...e
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
return /* @__PURE__ */ f(
|
|
711
|
+
function ot({ ...e }) {
|
|
712
|
+
return /* @__PURE__ */ f(y.Group, {
|
|
713
713
|
"data-slot": "select-group",
|
|
714
714
|
...e
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
return /* @__PURE__ */ f(
|
|
717
|
+
function st({ ...e }) {
|
|
718
|
+
return /* @__PURE__ */ f(y.Value, {
|
|
719
719
|
"data-slot": "select-value",
|
|
720
720
|
...e
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
return /* @__PURE__ */ p(
|
|
723
|
+
function ct({ className: e, size: t = "default", children: n, ...r }) {
|
|
724
|
+
return /* @__PURE__ */ p(y.Trigger, {
|
|
725
725
|
"data-slot": "select-trigger",
|
|
726
726
|
"data-size": t,
|
|
727
|
-
className:
|
|
727
|
+
className: x("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
728
728
|
...r,
|
|
729
|
-
children: [n, /* @__PURE__ */ f(
|
|
729
|
+
children: [n, /* @__PURE__ */ f(y.Icon, {
|
|
730
730
|
asChild: !0,
|
|
731
|
-
children: /* @__PURE__ */ f(
|
|
731
|
+
children: /* @__PURE__ */ f(D, { className: "size-4 opacity-50" })
|
|
732
732
|
})]
|
|
733
733
|
});
|
|
734
734
|
}
|
|
735
|
-
function
|
|
736
|
-
return /* @__PURE__ */ f(
|
|
735
|
+
function lt({ className: e, children: t, position: n = "popper", align: r = "center", ...i }) {
|
|
736
|
+
return /* @__PURE__ */ f(y.Portal, { children: /* @__PURE__ */ p(y.Content, {
|
|
737
737
|
"data-slot": "select-content",
|
|
738
|
-
className:
|
|
738
|
+
className: x("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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 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 shadow-md", 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),
|
|
739
739
|
position: n,
|
|
740
740
|
align: r,
|
|
741
741
|
...i,
|
|
742
742
|
children: [
|
|
743
|
-
/* @__PURE__ */ f(
|
|
744
|
-
/* @__PURE__ */ f(
|
|
745
|
-
className:
|
|
743
|
+
/* @__PURE__ */ f(R, {}),
|
|
744
|
+
/* @__PURE__ */ f(y.Viewport, {
|
|
745
|
+
className: x("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
|
|
746
746
|
children: t
|
|
747
747
|
}),
|
|
748
|
-
/* @__PURE__ */ f(
|
|
748
|
+
/* @__PURE__ */ f(z, {})
|
|
749
749
|
]
|
|
750
750
|
}) });
|
|
751
751
|
}
|
|
752
|
-
function
|
|
753
|
-
return /* @__PURE__ */ f(
|
|
752
|
+
function ut({ className: e, ...t }) {
|
|
753
|
+
return /* @__PURE__ */ f(y.Label, {
|
|
754
754
|
"data-slot": "select-label",
|
|
755
|
-
className:
|
|
755
|
+
className: x("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
756
756
|
...t
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
|
-
function
|
|
760
|
-
return /* @__PURE__ */ p(
|
|
759
|
+
function dt({ className: e, children: t, ...n }) {
|
|
760
|
+
return /* @__PURE__ */ p(y.Item, {
|
|
761
761
|
"data-slot": "select-item",
|
|
762
|
-
className:
|
|
762
|
+
className: x("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground 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 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
763
763
|
...n,
|
|
764
764
|
children: [/* @__PURE__ */ f("span", {
|
|
765
765
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
766
|
-
children: /* @__PURE__ */ f(
|
|
767
|
-
}), /* @__PURE__ */ f(
|
|
766
|
+
children: /* @__PURE__ */ f(y.ItemIndicator, { children: /* @__PURE__ */ f(E, { className: "size-4" }) })
|
|
767
|
+
}), /* @__PURE__ */ f(y.ItemText, { children: t })]
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
|
-
function
|
|
771
|
-
return /* @__PURE__ */ f(
|
|
770
|
+
function ft({ className: e, ...t }) {
|
|
771
|
+
return /* @__PURE__ */ f(y.Separator, {
|
|
772
772
|
"data-slot": "select-separator",
|
|
773
|
-
className:
|
|
773
|
+
className: x("bg-border pointer-events-none -mx-1 my-1 h-px", e),
|
|
774
774
|
...t
|
|
775
775
|
});
|
|
776
776
|
}
|
|
777
|
-
function
|
|
778
|
-
return /* @__PURE__ */ f(
|
|
777
|
+
function R({ className: e, ...t }) {
|
|
778
|
+
return /* @__PURE__ */ f(y.ScrollUpButton, {
|
|
779
779
|
"data-slot": "select-scroll-up-button",
|
|
780
|
-
className:
|
|
780
|
+
className: x("flex cursor-default items-center justify-center py-1", e),
|
|
781
781
|
...t,
|
|
782
|
-
children: /* @__PURE__ */ f(
|
|
782
|
+
children: /* @__PURE__ */ f(pe, { className: "size-4" })
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
|
-
function
|
|
786
|
-
return /* @__PURE__ */ f(
|
|
785
|
+
function z({ className: e, ...t }) {
|
|
786
|
+
return /* @__PURE__ */ f(y.ScrollDownButton, {
|
|
787
787
|
"data-slot": "select-scroll-down-button",
|
|
788
|
-
className:
|
|
788
|
+
className: x("flex cursor-default items-center justify-center py-1", e),
|
|
789
789
|
...t,
|
|
790
|
-
children: /* @__PURE__ */ f(
|
|
790
|
+
children: /* @__PURE__ */ f(D, { className: "size-4" })
|
|
791
791
|
});
|
|
792
792
|
}
|
|
793
793
|
//#endregion
|
|
794
794
|
//#region src/components/ui/separator.tsx
|
|
795
|
-
function
|
|
796
|
-
return /* @__PURE__ */ f(
|
|
795
|
+
function B({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
796
|
+
return /* @__PURE__ */ f(te.Root, {
|
|
797
797
|
"data-slot": "separator",
|
|
798
798
|
decorative: n,
|
|
799
799
|
orientation: t,
|
|
800
|
-
className:
|
|
800
|
+
className: x("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", e),
|
|
801
801
|
...r
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
//#endregion
|
|
805
805
|
//#region src/components/ui/sheet.tsx
|
|
806
|
-
function
|
|
806
|
+
function V({ ...e }) {
|
|
807
807
|
return /* @__PURE__ */ f(_.Root, {
|
|
808
808
|
"data-slot": "sheet",
|
|
809
809
|
...e
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function pt({ ...e }) {
|
|
813
813
|
return /* @__PURE__ */ f(_.Trigger, {
|
|
814
814
|
"data-slot": "sheet-trigger",
|
|
815
815
|
...e
|
|
816
816
|
});
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function mt({ ...e }) {
|
|
819
819
|
return /* @__PURE__ */ f(_.Close, {
|
|
820
820
|
"data-slot": "sheet-close",
|
|
821
821
|
...e
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function ht({ ...e }) {
|
|
825
825
|
return /* @__PURE__ */ f(_.Portal, {
|
|
826
826
|
"data-slot": "sheet-portal",
|
|
827
827
|
...e
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function gt({ className: e, ...t }) {
|
|
831
831
|
return /* @__PURE__ */ f(_.Overlay, {
|
|
832
832
|
"data-slot": "sheet-overlay",
|
|
833
|
-
className:
|
|
833
|
+
className: x("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
834
834
|
...t
|
|
835
835
|
});
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
return /* @__PURE__ */ p(
|
|
837
|
+
function H({ className: e, children: t, side: n = "right", ...r }) {
|
|
838
|
+
return /* @__PURE__ */ p(ht, { children: [/* @__PURE__ */ f(gt, {}), /* @__PURE__ */ p(_.Content, {
|
|
839
839
|
"data-slot": "sheet-content",
|
|
840
|
-
className:
|
|
840
|
+
className: x("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
|
|
841
841
|
...r,
|
|
842
842
|
children: [t, /* @__PURE__ */ p(_.Close, {
|
|
843
843
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
|
|
844
|
-
children: [/* @__PURE__ */ f(
|
|
844
|
+
children: [/* @__PURE__ */ f(A, { className: "size-4" }), /* @__PURE__ */ f("span", {
|
|
845
845
|
className: "sr-only",
|
|
846
846
|
children: "Close"
|
|
847
847
|
})]
|
|
848
848
|
})]
|
|
849
849
|
})] });
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function U({ className: e, ...t }) {
|
|
852
852
|
return /* @__PURE__ */ f("div", {
|
|
853
853
|
"data-slot": "sheet-header",
|
|
854
|
-
className:
|
|
854
|
+
className: x("flex flex-col gap-1.5 p-4", e),
|
|
855
855
|
...t
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function _t({ className: e, ...t }) {
|
|
859
859
|
return /* @__PURE__ */ f("div", {
|
|
860
860
|
"data-slot": "sheet-footer",
|
|
861
|
-
className:
|
|
861
|
+
className: x("mt-auto flex flex-col gap-2 p-4", e),
|
|
862
862
|
...t
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function W({ className: e, ...t }) {
|
|
866
866
|
return /* @__PURE__ */ f(_.Title, {
|
|
867
867
|
"data-slot": "sheet-title",
|
|
868
|
-
className:
|
|
868
|
+
className: x("text-foreground font-semibold", e),
|
|
869
869
|
...t
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function G({ className: e, ...t }) {
|
|
873
873
|
return /* @__PURE__ */ f(_.Description, {
|
|
874
874
|
"data-slot": "sheet-description",
|
|
875
|
-
className:
|
|
875
|
+
className: x("text-muted-foreground text-sm", e),
|
|
876
876
|
...t
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
879
|
//#endregion
|
|
880
880
|
//#region src/components/ui/skeleton.tsx
|
|
881
|
-
function
|
|
881
|
+
function K({ className: e, ...t }) {
|
|
882
882
|
return /* @__PURE__ */ f("div", {
|
|
883
883
|
"data-slot": "skeleton",
|
|
884
|
-
className:
|
|
884
|
+
className: x("bg-accent animate-pulse rounded-md", e),
|
|
885
885
|
...t
|
|
886
886
|
});
|
|
887
887
|
}
|
|
888
888
|
//#endregion
|
|
889
889
|
//#region src/components/ui/tooltip.tsx
|
|
890
|
-
function
|
|
891
|
-
return /* @__PURE__ */ f(
|
|
890
|
+
function q({ delayDuration: e = 0, ...t }) {
|
|
891
|
+
return /* @__PURE__ */ f(b.Provider, {
|
|
892
892
|
"data-slot": "tooltip-provider",
|
|
893
893
|
delayDuration: e,
|
|
894
894
|
...t
|
|
895
895
|
});
|
|
896
896
|
}
|
|
897
|
-
function
|
|
898
|
-
return /* @__PURE__ */ f(
|
|
897
|
+
function vt({ ...e }) {
|
|
898
|
+
return /* @__PURE__ */ f(q, { children: /* @__PURE__ */ f(b.Root, {
|
|
899
899
|
"data-slot": "tooltip",
|
|
900
900
|
...e
|
|
901
901
|
}) });
|
|
902
902
|
}
|
|
903
|
-
function
|
|
904
|
-
return /* @__PURE__ */ f(
|
|
903
|
+
function yt({ ...e }) {
|
|
904
|
+
return /* @__PURE__ */ f(b.Trigger, {
|
|
905
905
|
"data-slot": "tooltip-trigger",
|
|
906
906
|
...e
|
|
907
907
|
});
|
|
908
908
|
}
|
|
909
|
-
function
|
|
910
|
-
return /* @__PURE__ */ f(
|
|
909
|
+
function bt({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
910
|
+
return /* @__PURE__ */ f(b.Portal, { children: /* @__PURE__ */ p(b.Content, {
|
|
911
911
|
"data-slot": "tooltip-content",
|
|
912
912
|
sideOffset: t,
|
|
913
|
-
className:
|
|
913
|
+
className: x("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", e),
|
|
914
914
|
...r,
|
|
915
|
-
children: [n, /* @__PURE__ */ f(
|
|
915
|
+
children: [n, /* @__PURE__ */ f(b.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
|
|
916
916
|
}) });
|
|
917
917
|
}
|
|
918
918
|
//#endregion
|
|
919
919
|
//#region src/hooks/use-mobile.ts
|
|
920
|
-
var
|
|
921
|
-
function
|
|
920
|
+
var J = 768;
|
|
921
|
+
function xt() {
|
|
922
922
|
let [e, t] = n.useState(void 0);
|
|
923
923
|
return n.useEffect(() => {
|
|
924
|
-
let e = window.matchMedia(`(max-width: ${
|
|
925
|
-
t(window.innerWidth <
|
|
924
|
+
let e = window.matchMedia(`(max-width: ${J - 1}px)`), n = () => {
|
|
925
|
+
t(window.innerWidth < J);
|
|
926
926
|
};
|
|
927
|
-
return e.addEventListener("change", n), t(window.innerWidth <
|
|
927
|
+
return e.addEventListener("change", n), t(window.innerWidth < J), () => e.removeEventListener("change", n);
|
|
928
928
|
}, []), !!e;
|
|
929
929
|
}
|
|
930
930
|
//#endregion
|
|
931
931
|
//#region src/components/ui/sidebar.tsx
|
|
932
|
-
var
|
|
933
|
-
function
|
|
934
|
-
let e = n.useContext(
|
|
932
|
+
var St = "sidebar_state", Ct = 3600 * 24 * 7, wt = "16rem", Tt = "18rem", Et = "3rem", Dt = "b", Y = n.createContext(null);
|
|
933
|
+
function X() {
|
|
934
|
+
let e = n.useContext(Y);
|
|
935
935
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
936
936
|
return e;
|
|
937
937
|
}
|
|
938
|
-
function
|
|
939
|
-
return n.useContext(
|
|
938
|
+
function Ot() {
|
|
939
|
+
return n.useContext(Y);
|
|
940
940
|
}
|
|
941
|
-
function
|
|
942
|
-
let c =
|
|
941
|
+
function kt({ defaultOpen: e = !0, open: t, onOpenChange: r, className: i, style: a, children: o, ...s }) {
|
|
942
|
+
let c = xt(), [l, u] = n.useState(!1), [d, p] = n.useState(e), m = t ?? d, h = n.useCallback((e) => {
|
|
943
943
|
let t = typeof e == "function" ? e(m) : e;
|
|
944
|
-
r ? r(t) : p(t), document.cookie = `${
|
|
944
|
+
r ? r(t) : p(t), document.cookie = `${St}=${t}; path=/; max-age=${Ct}`;
|
|
945
945
|
}, [r, m]), g = n.useCallback(() => c ? u((e) => !e) : h((e) => !e), [
|
|
946
946
|
c,
|
|
947
947
|
h,
|
|
@@ -949,7 +949,7 @@ function At({ defaultOpen: e = !0, open: t, onOpenChange: r, className: i, style
|
|
|
949
949
|
]);
|
|
950
950
|
n.useEffect(() => {
|
|
951
951
|
let e = (e) => {
|
|
952
|
-
e.key ===
|
|
952
|
+
e.key === Dt && (e.metaKey || e.ctrlKey) && (e.preventDefault(), g());
|
|
953
953
|
};
|
|
954
954
|
return globalThis.addEventListener("keydown", e), () => globalThis.removeEventListener("keydown", e);
|
|
955
955
|
}, [g]);
|
|
@@ -970,52 +970,52 @@ function At({ defaultOpen: e = !0, open: t, onOpenChange: r, className: i, style
|
|
|
970
970
|
u,
|
|
971
971
|
g
|
|
972
972
|
]);
|
|
973
|
-
return /* @__PURE__ */ f(
|
|
973
|
+
return /* @__PURE__ */ f(Y.Provider, {
|
|
974
974
|
value: v,
|
|
975
|
-
children: /* @__PURE__ */ f(
|
|
975
|
+
children: /* @__PURE__ */ f(q, {
|
|
976
976
|
delayDuration: 0,
|
|
977
977
|
children: /* @__PURE__ */ f("div", {
|
|
978
978
|
"data-slot": "sidebar-wrapper",
|
|
979
979
|
style: {
|
|
980
|
-
"--sidebar-width":
|
|
981
|
-
"--sidebar-width-icon":
|
|
980
|
+
"--sidebar-width": wt,
|
|
981
|
+
"--sidebar-width-icon": Et,
|
|
982
982
|
...a
|
|
983
983
|
},
|
|
984
|
-
className:
|
|
984
|
+
className: x("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", i),
|
|
985
985
|
...s,
|
|
986
986
|
children: o
|
|
987
987
|
})
|
|
988
988
|
})
|
|
989
989
|
});
|
|
990
990
|
}
|
|
991
|
-
function
|
|
992
|
-
let { isMobile: s, state: c, openMobile: l, setOpenMobile: u } =
|
|
991
|
+
function At({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", position: r = "fixed", className: i, children: a, ...o }) {
|
|
992
|
+
let { isMobile: s, state: c, openMobile: l, setOpenMobile: u } = X();
|
|
993
993
|
return n === "none" ? /* @__PURE__ */ f("div", {
|
|
994
994
|
"data-slot": "sidebar",
|
|
995
|
-
className:
|
|
995
|
+
className: x("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", i),
|
|
996
996
|
...o,
|
|
997
997
|
children: a
|
|
998
|
-
}) : s ? /* @__PURE__ */ f(
|
|
998
|
+
}) : s ? /* @__PURE__ */ f(V, {
|
|
999
999
|
open: l,
|
|
1000
1000
|
onOpenChange: u,
|
|
1001
1001
|
...o,
|
|
1002
|
-
children: /* @__PURE__ */ p(
|
|
1002
|
+
children: /* @__PURE__ */ p(H, {
|
|
1003
1003
|
"data-sidebar": "sidebar",
|
|
1004
1004
|
"data-slot": "sidebar",
|
|
1005
1005
|
"data-mobile": "true",
|
|
1006
1006
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
1007
|
-
style: { "--sidebar-width":
|
|
1007
|
+
style: { "--sidebar-width": Tt },
|
|
1008
1008
|
side: e,
|
|
1009
|
-
children: [/* @__PURE__ */ p(
|
|
1009
|
+
children: [/* @__PURE__ */ p(U, {
|
|
1010
1010
|
className: "sr-only",
|
|
1011
|
-
children: [/* @__PURE__ */ f(
|
|
1011
|
+
children: [/* @__PURE__ */ f(W, { children: "Sidebar" }), /* @__PURE__ */ f(G, { children: "Displays the mobile sidebar." })]
|
|
1012
1012
|
}), /* @__PURE__ */ f("div", {
|
|
1013
1013
|
className: "flex h-full w-full flex-col",
|
|
1014
1014
|
children: a
|
|
1015
1015
|
})]
|
|
1016
1016
|
})
|
|
1017
1017
|
}) : /* @__PURE__ */ p("div", {
|
|
1018
|
-
className:
|
|
1018
|
+
className: x("group peer text-sidebar-foreground hidden md:block", r === "absolute" && "relative"),
|
|
1019
1019
|
"data-state": c,
|
|
1020
1020
|
"data-collapsible": c === "collapsed" ? n : "",
|
|
1021
1021
|
"data-variant": t,
|
|
@@ -1023,10 +1023,10 @@ function jt({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
1023
1023
|
"data-slot": "sidebar",
|
|
1024
1024
|
children: [/* @__PURE__ */ f("div", {
|
|
1025
1025
|
"data-slot": "sidebar-gap",
|
|
1026
|
-
className:
|
|
1026
|
+
className: x("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
1027
1027
|
}), /* @__PURE__ */ f("div", {
|
|
1028
1028
|
"data-slot": "sidebar-container",
|
|
1029
|
-
className:
|
|
1029
|
+
className: x("inset-y-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", r === "absolute" ? "h-full" : "h-svh", r === "absolute" ? "absolute" : "fixed", e === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", i),
|
|
1030
1030
|
...o,
|
|
1031
1031
|
children: /* @__PURE__ */ f("div", {
|
|
1032
1032
|
"data-sidebar": "sidebar",
|
|
@@ -1037,28 +1037,28 @@ function jt({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
1037
1037
|
})]
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
let r =
|
|
1040
|
+
function jt({ className: e, onClick: t, ...n }) {
|
|
1041
|
+
let r = Ot();
|
|
1042
1042
|
if (!r) return null;
|
|
1043
1043
|
let { toggleSidebar: i, isMobile: a } = r;
|
|
1044
|
-
return /* @__PURE__ */ p(
|
|
1044
|
+
return /* @__PURE__ */ p(I, {
|
|
1045
1045
|
"data-sidebar": "trigger",
|
|
1046
1046
|
"data-slot": "sidebar-trigger",
|
|
1047
1047
|
variant: "ghost",
|
|
1048
1048
|
size: "icon",
|
|
1049
|
-
className:
|
|
1049
|
+
className: x("size-7", e),
|
|
1050
1050
|
onClick: (e) => {
|
|
1051
1051
|
t?.(e), i();
|
|
1052
1052
|
},
|
|
1053
1053
|
...n,
|
|
1054
|
-
children: [f(a ?
|
|
1054
|
+
children: [f(a ? ge : fe, {}), /* @__PURE__ */ f("span", {
|
|
1055
1055
|
className: "sr-only",
|
|
1056
1056
|
children: "Toggle Sidebar"
|
|
1057
1057
|
})]
|
|
1058
1058
|
});
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1061
|
-
let { toggleSidebar: n } =
|
|
1060
|
+
function Mt({ className: e, ...t }) {
|
|
1061
|
+
let { toggleSidebar: n } = X();
|
|
1062
1062
|
return /* @__PURE__ */ f("button", {
|
|
1063
1063
|
"data-sidebar": "rail",
|
|
1064
1064
|
"data-slot": "sidebar-rail",
|
|
@@ -1066,106 +1066,106 @@ function Nt({ className: e, ...t }) {
|
|
|
1066
1066
|
tabIndex: -1,
|
|
1067
1067
|
onClick: n,
|
|
1068
1068
|
title: "Toggle Sidebar",
|
|
1069
|
-
className:
|
|
1069
|
+
className: x("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", e),
|
|
1070
1070
|
...t
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function Nt({ className: e, ...t }) {
|
|
1074
1074
|
return /* @__PURE__ */ f("main", {
|
|
1075
1075
|
"data-slot": "sidebar-inset",
|
|
1076
|
-
className:
|
|
1076
|
+
className: x("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", e),
|
|
1077
1077
|
...t
|
|
1078
1078
|
});
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1081
|
-
return /* @__PURE__ */ f(
|
|
1080
|
+
function Pt({ className: e, ...t }) {
|
|
1081
|
+
return /* @__PURE__ */ f(L, {
|
|
1082
1082
|
"data-slot": "sidebar-input",
|
|
1083
1083
|
"data-sidebar": "input",
|
|
1084
|
-
className:
|
|
1084
|
+
className: x("bg-background h-8 w-full shadow-none", e),
|
|
1085
1085
|
...t
|
|
1086
1086
|
});
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function Ft({ className: e, ...t }) {
|
|
1089
1089
|
return /* @__PURE__ */ f("div", {
|
|
1090
1090
|
"data-slot": "sidebar-header",
|
|
1091
1091
|
"data-sidebar": "header",
|
|
1092
|
-
className:
|
|
1092
|
+
className: x("flex flex-col gap-2 p-2", e),
|
|
1093
1093
|
...t
|
|
1094
1094
|
});
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function It({ className: e, ...t }) {
|
|
1097
1097
|
return /* @__PURE__ */ f("div", {
|
|
1098
1098
|
"data-slot": "sidebar-footer",
|
|
1099
1099
|
"data-sidebar": "footer",
|
|
1100
|
-
className:
|
|
1100
|
+
className: x("flex flex-col gap-2 p-2", e),
|
|
1101
1101
|
...t
|
|
1102
1102
|
});
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return /* @__PURE__ */ f(
|
|
1104
|
+
function Lt({ className: e, ...t }) {
|
|
1105
|
+
return /* @__PURE__ */ f(B, {
|
|
1106
1106
|
"data-slot": "sidebar-separator",
|
|
1107
1107
|
"data-sidebar": "separator",
|
|
1108
|
-
className:
|
|
1108
|
+
className: x("bg-sidebar-border mx-2 w-auto", e),
|
|
1109
1109
|
...t
|
|
1110
1110
|
});
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function Rt({ className: e, ...t }) {
|
|
1113
1113
|
return /* @__PURE__ */ f("div", {
|
|
1114
1114
|
"data-slot": "sidebar-content",
|
|
1115
1115
|
"data-sidebar": "content",
|
|
1116
|
-
className:
|
|
1116
|
+
className: x("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
|
|
1117
1117
|
...t
|
|
1118
1118
|
});
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function zt({ className: e, ...t }) {
|
|
1121
1121
|
return /* @__PURE__ */ f("div", {
|
|
1122
1122
|
"data-slot": "sidebar-group",
|
|
1123
1123
|
"data-sidebar": "group",
|
|
1124
|
-
className:
|
|
1124
|
+
className: x("relative flex w-full min-w-0 flex-col p-2", e),
|
|
1125
1125
|
...t
|
|
1126
1126
|
});
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function Bt({ className: e, asChild: t = !1, ...n }) {
|
|
1129
1129
|
return /* @__PURE__ */ f(t ? h : "div", {
|
|
1130
1130
|
"data-slot": "sidebar-group-label",
|
|
1131
1131
|
"data-sidebar": "group-label",
|
|
1132
|
-
className:
|
|
1132
|
+
className: x("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", e),
|
|
1133
1133
|
...n
|
|
1134
1134
|
});
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function Vt({ className: e, asChild: t = !1, ...n }) {
|
|
1137
1137
|
return /* @__PURE__ */ f(t ? h : "button", {
|
|
1138
1138
|
"data-slot": "sidebar-group-action",
|
|
1139
1139
|
"data-sidebar": "group-action",
|
|
1140
|
-
className:
|
|
1140
|
+
className: x("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "group-data-[collapsible=icon]:hidden", e),
|
|
1141
1141
|
...n
|
|
1142
1142
|
});
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function Ht({ className: e, ...t }) {
|
|
1145
1145
|
return /* @__PURE__ */ f("div", {
|
|
1146
1146
|
"data-slot": "sidebar-group-content",
|
|
1147
1147
|
"data-sidebar": "group-content",
|
|
1148
|
-
className:
|
|
1148
|
+
className: x("w-full text-sm", e),
|
|
1149
1149
|
...t
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function Ut({ className: e, ...t }) {
|
|
1153
1153
|
return /* @__PURE__ */ f("ul", {
|
|
1154
1154
|
"data-slot": "sidebar-menu",
|
|
1155
1155
|
"data-sidebar": "menu",
|
|
1156
|
-
className:
|
|
1156
|
+
className: x("flex w-full min-w-0 flex-col gap-1", e),
|
|
1157
1157
|
...t
|
|
1158
1158
|
});
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function Wt({ className: e, ...t }) {
|
|
1161
1161
|
return /* @__PURE__ */ f("li", {
|
|
1162
1162
|
"data-slot": "sidebar-menu-item",
|
|
1163
1163
|
"data-sidebar": "menu-item",
|
|
1164
|
-
className:
|
|
1164
|
+
className: x("group/menu-item relative", e),
|
|
1165
1165
|
...t
|
|
1166
1166
|
});
|
|
1167
1167
|
}
|
|
1168
|
-
var
|
|
1168
|
+
var Gt = g("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
|
|
1169
1169
|
variants: {
|
|
1170
1170
|
variant: {
|
|
1171
1171
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -1182,93 +1182,93 @@ var Kt = g("peer/menu-button flex w-full items-center gap-2 overflow-hidden roun
|
|
|
1182
1182
|
size: "default"
|
|
1183
1183
|
}
|
|
1184
1184
|
});
|
|
1185
|
-
function
|
|
1186
|
-
let s = e ? h : "button", { isMobile: c, state: l } =
|
|
1185
|
+
function Kt({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
|
|
1186
|
+
let s = e ? h : "button", { isMobile: c, state: l } = X(), u = /* @__PURE__ */ f(s, {
|
|
1187
1187
|
"data-slot": "sidebar-menu-button",
|
|
1188
1188
|
"data-sidebar": "menu-button",
|
|
1189
1189
|
"data-size": r,
|
|
1190
1190
|
"data-active": t,
|
|
1191
|
-
className:
|
|
1191
|
+
className: x(Gt({
|
|
1192
1192
|
variant: n,
|
|
1193
1193
|
size: r
|
|
1194
1194
|
}), a),
|
|
1195
1195
|
...o
|
|
1196
1196
|
});
|
|
1197
|
-
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ p(
|
|
1197
|
+
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ p(vt, { children: [/* @__PURE__ */ f(yt, {
|
|
1198
1198
|
asChild: !0,
|
|
1199
1199
|
children: u
|
|
1200
|
-
}), /* @__PURE__ */ f(
|
|
1200
|
+
}), /* @__PURE__ */ f(bt, {
|
|
1201
1201
|
side: "right",
|
|
1202
1202
|
align: "center",
|
|
1203
1203
|
hidden: l !== "collapsed" || c,
|
|
1204
1204
|
...i
|
|
1205
1205
|
})] })) : u;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function qt({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
1208
1208
|
return /* @__PURE__ */ f(t ? h : "button", {
|
|
1209
1209
|
"data-slot": "sidebar-menu-action",
|
|
1210
1210
|
"data-sidebar": "menu-action",
|
|
1211
|
-
className:
|
|
1211
|
+
className: x("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", n && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", e),
|
|
1212
1212
|
...r
|
|
1213
1213
|
});
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Jt({ className: e, ...t }) {
|
|
1216
1216
|
return /* @__PURE__ */ f("div", {
|
|
1217
1217
|
"data-slot": "sidebar-menu-badge",
|
|
1218
1218
|
"data-sidebar": "menu-badge",
|
|
1219
|
-
className:
|
|
1219
|
+
className: x("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", e),
|
|
1220
1220
|
...t
|
|
1221
1221
|
});
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function Yt({ className: e, showIcon: t = !1, ...r }) {
|
|
1224
1224
|
let i = n.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
1225
1225
|
return /* @__PURE__ */ p("div", {
|
|
1226
1226
|
"data-slot": "sidebar-menu-skeleton",
|
|
1227
1227
|
"data-sidebar": "menu-skeleton",
|
|
1228
|
-
className:
|
|
1228
|
+
className: x("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
1229
1229
|
...r,
|
|
1230
|
-
children: [t && /* @__PURE__ */ f(
|
|
1230
|
+
children: [t && /* @__PURE__ */ f(K, {
|
|
1231
1231
|
className: "size-4 rounded-md",
|
|
1232
1232
|
"data-sidebar": "menu-skeleton-icon"
|
|
1233
|
-
}), /* @__PURE__ */ f(
|
|
1233
|
+
}), /* @__PURE__ */ f(K, {
|
|
1234
1234
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
1235
1235
|
"data-sidebar": "menu-skeleton-text",
|
|
1236
1236
|
style: { "--skeleton-width": i }
|
|
1237
1237
|
})]
|
|
1238
1238
|
});
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1240
|
+
function Xt({ className: e, ...t }) {
|
|
1241
1241
|
return /* @__PURE__ */ f("ul", {
|
|
1242
1242
|
"data-slot": "sidebar-menu-sub",
|
|
1243
1243
|
"data-sidebar": "menu-sub",
|
|
1244
|
-
className:
|
|
1244
|
+
className: x("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", e),
|
|
1245
1245
|
...t
|
|
1246
1246
|
});
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function Zt({ className: e, ...t }) {
|
|
1249
1249
|
return /* @__PURE__ */ f("li", {
|
|
1250
1250
|
"data-slot": "sidebar-menu-sub-item",
|
|
1251
1251
|
"data-sidebar": "menu-sub-item",
|
|
1252
|
-
className:
|
|
1252
|
+
className: x("group/menu-sub-item relative", e),
|
|
1253
1253
|
...t
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Qt({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
1257
1257
|
return /* @__PURE__ */ f(e ? h : "a", {
|
|
1258
1258
|
"data-slot": "sidebar-menu-sub-button",
|
|
1259
1259
|
"data-sidebar": "menu-sub-button",
|
|
1260
1260
|
"data-size": t,
|
|
1261
1261
|
"data-active": n,
|
|
1262
|
-
className:
|
|
1262
|
+
className: x("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", t === "sm" && "text-xs", t === "md" && "text-sm", "group-data-[collapsible=icon]:hidden", r),
|
|
1263
1263
|
...i
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
1266
|
//#endregion
|
|
1267
1267
|
//#region src/components/badge-colorful.tsx
|
|
1268
|
-
var
|
|
1268
|
+
var $t = ({ text: e, href: t, onClick: n, className: r, prefix: i }) => {
|
|
1269
1269
|
if (!e) return null;
|
|
1270
|
-
let a =
|
|
1271
|
-
return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ p(
|
|
1270
|
+
let a = S(e);
|
|
1271
|
+
return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ p(j, {
|
|
1272
1272
|
variant: "outline",
|
|
1273
1273
|
title: e,
|
|
1274
1274
|
onClick: () => t && n?.(t),
|
|
@@ -1295,7 +1295,7 @@ var en = ({ text: e, href: t, onClick: n, className: r, prefix: i }) => {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
`
|
|
1297
1297
|
})] });
|
|
1298
|
-
},
|
|
1298
|
+
}, en = {
|
|
1299
1299
|
AR: "SA",
|
|
1300
1300
|
BN: "BD",
|
|
1301
1301
|
CA: "ES",
|
|
@@ -1337,22 +1337,22 @@ var en = ({ text: e, href: t, onClick: n, className: r, prefix: i }) => {
|
|
|
1337
1337
|
UR: "PK",
|
|
1338
1338
|
VI: "VN",
|
|
1339
1339
|
ZH: "CN"
|
|
1340
|
-
},
|
|
1340
|
+
}, tn = { UK: "GB" };
|
|
1341
1341
|
function nn(e) {
|
|
1342
1342
|
if (!e) return "";
|
|
1343
1343
|
let t = e.trim().replaceAll("-", "_").toUpperCase().split("_");
|
|
1344
1344
|
if (t.length > 1 && t[1].length === 2) {
|
|
1345
1345
|
let e = t[1];
|
|
1346
|
-
return (
|
|
1346
|
+
return (tn[e] || e).toLowerCase();
|
|
1347
1347
|
}
|
|
1348
|
-
let n = t[0], r =
|
|
1349
|
-
return r ? r.toLowerCase() : (
|
|
1348
|
+
let n = t[0], r = en[n];
|
|
1349
|
+
return r ? r.toLowerCase() : (tn[n] || n).toLowerCase();
|
|
1350
1350
|
}
|
|
1351
1351
|
var rn = ({ locale: e, className: t }) => {
|
|
1352
1352
|
let [n, r] = u(!1), i = nn(e);
|
|
1353
1353
|
return c(() => {
|
|
1354
1354
|
r(!1);
|
|
1355
|
-
}, [i]), /* @__PURE__ */ p(
|
|
1355
|
+
}, [i]), /* @__PURE__ */ p(j, {
|
|
1356
1356
|
variant: "secondary",
|
|
1357
1357
|
className: `font-mono gap-2 py-1 pl-1 pr-2 w-fit ${t}`,
|
|
1358
1358
|
children: [!n && i ? /* @__PURE__ */ f("img", {
|
|
@@ -1360,7 +1360,7 @@ var rn = ({ locale: e, className: t }) => {
|
|
|
1360
1360
|
alt: i,
|
|
1361
1361
|
onError: () => r(!0),
|
|
1362
1362
|
className: "w-5 h-3.5 object-cover rounded-sm shadow-sm"
|
|
1363
|
-
}) : /* @__PURE__ */ f(
|
|
1363
|
+
}) : /* @__PURE__ */ f(he, { className: "w-3.5 h-3.5 text-muted-foreground" }), /* @__PURE__ */ f("span", {
|
|
1364
1364
|
className: "text-xs font-bold uppercase tracking-tight leading-none",
|
|
1365
1365
|
children: e
|
|
1366
1366
|
})]
|
|
@@ -1400,33 +1400,33 @@ var Z = () => {
|
|
|
1400
1400
|
//#endregion
|
|
1401
1401
|
//#region src/components/mode-toggle.tsx
|
|
1402
1402
|
function sn() {
|
|
1403
|
-
let { setTheme: e } = Z(), { t } =
|
|
1404
|
-
return /* @__PURE__ */ p(
|
|
1403
|
+
let { setTheme: e } = Z(), { t } = ee();
|
|
1404
|
+
return /* @__PURE__ */ p(qe, { children: [/* @__PURE__ */ f(M, {
|
|
1405
1405
|
asChild: !0,
|
|
1406
|
-
children: /* @__PURE__ */ p(
|
|
1406
|
+
children: /* @__PURE__ */ p(I, {
|
|
1407
1407
|
variant: "outline",
|
|
1408
1408
|
size: "sm",
|
|
1409
1409
|
children: [
|
|
1410
|
-
/* @__PURE__ */ f(
|
|
1411
|
-
/* @__PURE__ */ f(
|
|
1410
|
+
/* @__PURE__ */ f(k, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
|
|
1411
|
+
/* @__PURE__ */ f(ve, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
|
|
1412
1412
|
/* @__PURE__ */ f("span", {
|
|
1413
1413
|
className: "sr-only",
|
|
1414
1414
|
children: t("theme.toggle")
|
|
1415
1415
|
})
|
|
1416
1416
|
]
|
|
1417
1417
|
})
|
|
1418
|
-
}), /* @__PURE__ */ p(
|
|
1418
|
+
}), /* @__PURE__ */ p(N, {
|
|
1419
1419
|
align: "end",
|
|
1420
1420
|
children: [
|
|
1421
|
-
/* @__PURE__ */ f(
|
|
1421
|
+
/* @__PURE__ */ f(P, {
|
|
1422
1422
|
onClick: () => e("light"),
|
|
1423
1423
|
children: t("theme.light")
|
|
1424
1424
|
}),
|
|
1425
|
-
/* @__PURE__ */ f(
|
|
1425
|
+
/* @__PURE__ */ f(P, {
|
|
1426
1426
|
onClick: () => e("dark"),
|
|
1427
1427
|
children: t("theme.dark")
|
|
1428
1428
|
}),
|
|
1429
|
-
/* @__PURE__ */ f(
|
|
1429
|
+
/* @__PURE__ */ f(P, {
|
|
1430
1430
|
onClick: () => e("system"),
|
|
1431
1431
|
children: t("theme.system")
|
|
1432
1432
|
})
|
|
@@ -1437,21 +1437,21 @@ var Q = [
|
|
|
1437
1437
|
{
|
|
1438
1438
|
value: "light",
|
|
1439
1439
|
labelKey: "theme.light",
|
|
1440
|
-
icon:
|
|
1440
|
+
icon: k
|
|
1441
1441
|
},
|
|
1442
1442
|
{
|
|
1443
1443
|
value: "dark",
|
|
1444
1444
|
labelKey: "theme.dark",
|
|
1445
|
-
icon:
|
|
1445
|
+
icon: ve
|
|
1446
1446
|
},
|
|
1447
1447
|
{
|
|
1448
1448
|
value: "system",
|
|
1449
1449
|
labelKey: "theme.system",
|
|
1450
|
-
icon:
|
|
1450
|
+
icon: _e
|
|
1451
1451
|
}
|
|
1452
1452
|
];
|
|
1453
1453
|
function cn() {
|
|
1454
|
-
let { theme: e, setTheme: t } = Z(), { t: n } =
|
|
1454
|
+
let { theme: e, setTheme: t } = Z(), { t: n } = ee(), r = Q.find((t) => t.value === e) ?? Q[2];
|
|
1455
1455
|
function i() {
|
|
1456
1456
|
let n = Q[(Q.findIndex((t) => t.value === e) + 1) % Q.length];
|
|
1457
1457
|
t(n.value);
|
|
@@ -1498,4 +1498,4 @@ var un = () => {
|
|
|
1498
1498
|
return e;
|
|
1499
1499
|
}, dn = () => s($);
|
|
1500
1500
|
//#endregion
|
|
1501
|
-
export {
|
|
1501
|
+
export { ot as $, be as $t, kt as A, Ue as At, yt as B, je as Bt, Jt as C, rt as Ct, Xt as D, He as Dt, Yt as E, Be as Et, Ot as F, Ae as Ft, G, Ee as Gt, V as H, Ce as Ht, xt as I, Pe as It, W as J, Oe as Jt, _t as K, we as Kt, vt as L, Fe as Lt, Lt as M, ze as Mt, jt as N, Ge as Nt, Qt as O, Ke as Ot, X as P, Re as Pt, lt as Q, xe as Qt, bt as R, Ne as Rt, qt as S, it as St, Wt as T, Le as Tt, mt as U, ke as Ut, K as V, Me as Vt, H as W, Te as Wt, B as X, Se as Xt, pt as Y, j as Yt, at as Z, ye as Zt, Bt as _, Ze as _t, cn as a, x as an, ct as at, Nt as b, tt as bt, rn as c, ne as cn, I as ct, At as d, Xe as dt, O as en, dt as et, Rt as f, N as ft, Ht as g, Je as gt, Vt as h, $e as ht, sn as i, w as in, ft as it, Mt as j, Ve as jt, Zt as k, We as kt, nn as l, F as lt, zt as m, P as mt, un as n, E as nn, z as nt, on as o, re as on, st as ot, It as p, Ye as pt, U as q, De as qt, dn as r, T as rn, R as rt, Z as s, S as sn, L as st, ln as t, D as tn, ut as tt, $t as u, qe as ut, Ft as v, Qe as vt, Kt as w, M as wt, Ut as x, nt as xt, Pt as y, et as yt, q as z, Ie as zt };
|