@gv-tech/ui-native 2.25.3 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/dialog.d.ts.map +1 -1
- package/dist/drawer.d.ts +3 -1
- package/dist/drawer.d.ts.map +1 -1
- package/dist/sheet.d.ts.map +1 -1
- package/dist/theme-toggle.d.ts.map +1 -1
- package/dist/ui-native.cjs +2 -2
- package/dist/ui-native.esm.js +1017 -1016
- package/package.json +1 -1
- package/src/accordion.tsx +1 -1
- package/src/alert-dialog.tsx +19 -12
- package/src/dialog.tsx +28 -52
- package/src/drawer.tsx +25 -7
- package/src/dropdown-menu.tsx +1 -1
- package/src/sheet.tsx +33 -4
- package/src/theme-toggle.tsx +8 -9
package/dist/ui-native.esm.js
CHANGED
|
@@ -4,41 +4,41 @@ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
|
4
4
|
import { clsx as b } from "clsx";
|
|
5
5
|
import { twMerge as x } from "tailwind-merge";
|
|
6
6
|
import * as S from "@rn-primitives/accordion";
|
|
7
|
-
import { ArrowLeft as ee, ArrowRight as te, ArrowUp as ne, Check as C, ChevronDown as w, ChevronLeft as re, ChevronRight as T, ChevronUp as ie, Circle as
|
|
8
|
-
import
|
|
9
|
-
import { cva as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import { Slot as
|
|
15
|
-
import
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
22
|
-
import { Controller as
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
31
|
-
import * as
|
|
32
|
-
import * as
|
|
33
|
-
import * as
|
|
34
|
-
import { toggleVariants as
|
|
35
|
-
import * as
|
|
36
|
-
import * as
|
|
37
|
-
import * as
|
|
38
|
-
import { theme as
|
|
39
|
-
import { cssInterop as
|
|
7
|
+
import { ArrowLeft as ee, ArrowRight as te, ArrowUp as ne, Check as C, ChevronDown as w, ChevronLeft as re, ChevronRight as T, ChevronUp as ie, Circle as E, Coffee as ae, ExternalLink as oe, Moon as se, MoreHorizontal as ce, Search as le, Sun as ue, SunMoon as de, X as D } from "lucide-react-native";
|
|
8
|
+
import O, { Extrapolation as fe, FadeIn as k, FadeInUp as pe, FadeOut as A, FadeOutDown as me, Layout as he, SlideInDown as ge, SlideInLeft as _e, SlideInRight as ve, SlideInUp as ye, SlideOutDown as be, SlideOutLeft as xe, SlideOutRight as Se, SlideOutUp as Ce, interpolate as we, useAnimatedStyle as Te, useDerivedValue as Ee, useSharedValue as De, withRepeat as Oe, withSequence as ke, withTiming as Ae } from "react-native-reanimated";
|
|
9
|
+
import { cva as j } from "class-variance-authority";
|
|
10
|
+
import * as M from "@rn-primitives/alert-dialog";
|
|
11
|
+
import * as je from "@rn-primitives/aspect-ratio";
|
|
12
|
+
import * as N from "@rn-primitives/avatar";
|
|
13
|
+
import * as Me from "@rn-primitives/slot";
|
|
14
|
+
import { Slot as Ne } from "@rn-primitives/slot";
|
|
15
|
+
import Pe from "@react-native-community/datetimepicker";
|
|
16
|
+
import * as Fe from "@rn-primitives/checkbox";
|
|
17
|
+
import * as Ie from "@rn-primitives/collapsible";
|
|
18
|
+
import * as P from "@rn-primitives/context-menu";
|
|
19
|
+
import * as F from "@rn-primitives/dialog";
|
|
20
|
+
import * as Le from "@radix-ui/react-dropdown-menu";
|
|
21
|
+
import * as I from "@rn-primitives/dropdown-menu";
|
|
22
|
+
import { Controller as Re, FormProvider as ze, useFormContext as Be } from "react-hook-form";
|
|
23
|
+
import * as Ve from "@rn-primitives/label";
|
|
24
|
+
import * as L from "@rn-primitives/hover-card";
|
|
25
|
+
import * as R from "@rn-primitives/menubar";
|
|
26
|
+
import * as z from "@rn-primitives/navigation-menu";
|
|
27
|
+
import * as B from "@rn-primitives/radio-group";
|
|
28
|
+
import * as V from "@rn-primitives/select";
|
|
29
|
+
import * as He from "@rn-primitives/separator";
|
|
30
|
+
import * as H from "@rn-primitives/slider";
|
|
31
|
+
import * as U from "@rn-primitives/toast";
|
|
32
|
+
import * as Ue from "@rn-primitives/switch";
|
|
33
|
+
import * as W from "@rn-primitives/tabs";
|
|
34
|
+
import { toggleVariants as We } from "@gv-tech/ui-core";
|
|
35
|
+
import * as Ge from "@rn-primitives/toggle";
|
|
36
|
+
import * as Ke from "@rn-primitives/toggle-group";
|
|
37
|
+
import * as G from "@rn-primitives/tooltip";
|
|
38
|
+
import { theme as qe } from "@gv-tech/design-tokens";
|
|
39
|
+
import { cssInterop as Je } from "react-native-css-interop";
|
|
40
40
|
//#region src/lib/render-native.tsx
|
|
41
|
-
function
|
|
41
|
+
function K(t, n = f, r = {}) {
|
|
42
42
|
return e.Children.map(t, (e) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ v(n, {
|
|
43
43
|
...r,
|
|
44
44
|
children: e
|
|
@@ -46,64 +46,64 @@ function G(t, n = f, r = {}) {
|
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/lib/utils.ts
|
|
49
|
-
function
|
|
49
|
+
function q(...e) {
|
|
50
50
|
return x(b(e));
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Ye(e) {
|
|
53
53
|
return e.toString().toLowerCase().trim().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-");
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region src/accordion.tsx
|
|
57
|
-
var
|
|
57
|
+
var Xe = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(S.Root, {
|
|
58
58
|
ref: n,
|
|
59
|
-
className:
|
|
59
|
+
className: q("web:gap-0", e),
|
|
60
60
|
...t
|
|
61
61
|
}));
|
|
62
|
-
|
|
63
|
-
var
|
|
62
|
+
Xe.displayName = S.Root?.displayName || "Accordion";
|
|
63
|
+
var Ze = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(S.Item, {
|
|
64
64
|
ref: n,
|
|
65
|
-
className:
|
|
65
|
+
className: q("border-border overflow-hidden border-b", e),
|
|
66
66
|
...t
|
|
67
67
|
}));
|
|
68
|
-
|
|
69
|
-
var
|
|
68
|
+
Ze.displayName = S.Item?.displayName || "AccordionItem";
|
|
69
|
+
var Qe = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(S.Header, {
|
|
70
70
|
ref: n,
|
|
71
|
-
className:
|
|
71
|
+
className: q("flex flex-row", e),
|
|
72
72
|
...t
|
|
73
73
|
}));
|
|
74
|
-
|
|
75
|
-
var
|
|
76
|
-
let { isExpanded: i } = S.useItemContext(), a =
|
|
77
|
-
transform: [{ rotate: `${a.value * 180}deg` }],
|
|
78
|
-
opacity:
|
|
74
|
+
Qe.displayName = S.Header?.displayName || "AccordionHeader";
|
|
75
|
+
var $e = e.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
76
|
+
let { isExpanded: i } = S.useItemContext(), a = Ee(() => i ? Ae(1, { duration: 250 }) : Ae(0, { duration: 200 })), o = Te(() => ({
|
|
77
|
+
transform: [{ rotate: `${a.value * -180}deg` }],
|
|
78
|
+
opacity: we(a.value, [0, 1], [1, .8], fe.CLAMP)
|
|
79
79
|
}));
|
|
80
80
|
return /* @__PURE__ */ v(S.Header, {
|
|
81
81
|
className: "flex",
|
|
82
82
|
children: /* @__PURE__ */ y(S.Trigger, {
|
|
83
83
|
ref: r,
|
|
84
|
-
className:
|
|
84
|
+
className: q("flex flex-row items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
|
|
85
85
|
...n,
|
|
86
|
-
children: [/* @__PURE__ */ v(_, { children: t }), /* @__PURE__ */ v(
|
|
86
|
+
children: [/* @__PURE__ */ v(_, { children: t }), /* @__PURE__ */ v(O.View, {
|
|
87
87
|
style: o,
|
|
88
88
|
children: /* @__PURE__ */ v(w, { className: "text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
89
89
|
})]
|
|
90
90
|
})
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
|
-
|
|
94
|
-
var
|
|
93
|
+
$e.displayName = S.Trigger?.displayName || "AccordionTrigger";
|
|
94
|
+
var et = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(S.Content, {
|
|
95
95
|
ref: r,
|
|
96
|
-
className:
|
|
96
|
+
className: q("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all", e),
|
|
97
97
|
...n,
|
|
98
98
|
children: /* @__PURE__ */ v(h, {
|
|
99
|
-
className:
|
|
99
|
+
className: q("pt-0 pb-4", e),
|
|
100
100
|
children: t
|
|
101
101
|
})
|
|
102
102
|
}));
|
|
103
|
-
|
|
103
|
+
et.displayName = S.Content?.displayName || "AccordionContent";
|
|
104
104
|
//#endregion
|
|
105
105
|
//#region src/alert.tsx
|
|
106
|
-
var
|
|
106
|
+
var tt = j("relative w-full rounded-lg border p-4", {
|
|
107
107
|
variants: { variant: {
|
|
108
108
|
default: "bg-background border-border",
|
|
109
109
|
destructive: "border-destructive/50 bg-destructive/10",
|
|
@@ -111,28 +111,28 @@ var Qe = A("relative w-full rounded-lg border p-4", {
|
|
|
111
111
|
info: "border-blue-500/50 bg-blue-500/10"
|
|
112
112
|
} },
|
|
113
113
|
defaultVariants: { variant: "default" }
|
|
114
|
-
}),
|
|
114
|
+
}), nt = e.forwardRef(({ className: e, variant: t, children: n, ...r }, i) => /* @__PURE__ */ v(h, {
|
|
115
115
|
ref: i,
|
|
116
|
-
className:
|
|
116
|
+
className: q(tt({ variant: t }), e),
|
|
117
117
|
...r,
|
|
118
|
-
children:
|
|
118
|
+
children: K(n)
|
|
119
119
|
}));
|
|
120
|
-
|
|
121
|
-
var
|
|
120
|
+
nt.displayName = "Alert";
|
|
121
|
+
var rt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(f, {
|
|
122
122
|
ref: n,
|
|
123
|
-
className:
|
|
123
|
+
className: q("text-foreground mb-1 leading-none font-medium tracking-tight", e),
|
|
124
124
|
...t
|
|
125
125
|
}));
|
|
126
|
-
|
|
127
|
-
var
|
|
126
|
+
rt.displayName = "AlertTitle";
|
|
127
|
+
var it = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(f, {
|
|
128
128
|
ref: n,
|
|
129
|
-
className:
|
|
129
|
+
className: q("text-muted-foreground text-sm leading-relaxed", e),
|
|
130
130
|
...t
|
|
131
131
|
}));
|
|
132
|
-
|
|
132
|
+
it.displayName = "AlertDescription";
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/button.tsx
|
|
135
|
-
var
|
|
135
|
+
var at = j("flex-row items-center justify-center gap-2 rounded-md transition-colors active:opacity-80", {
|
|
136
136
|
variants: {
|
|
137
137
|
variant: {
|
|
138
138
|
default: "bg-primary shadow-sm",
|
|
@@ -157,7 +157,7 @@ var nt = A("flex-row items-center justify-center gap-2 rounded-md transition-col
|
|
|
157
157
|
variant: "default",
|
|
158
158
|
size: "default"
|
|
159
159
|
}
|
|
160
|
-
}),
|
|
160
|
+
}), ot = j("text-sm font-medium", {
|
|
161
161
|
variants: { variant: {
|
|
162
162
|
default: "text-primary-foreground",
|
|
163
163
|
destructive: "text-destructive-foreground",
|
|
@@ -167,115 +167,120 @@ var nt = A("flex-row items-center justify-center gap-2 rounded-md transition-col
|
|
|
167
167
|
link: "text-primary underline"
|
|
168
168
|
} },
|
|
169
169
|
defaultVariants: { variant: "default" }
|
|
170
|
-
}),
|
|
170
|
+
}), J = e.forwardRef(({ className: e, variant: t, size: n, onPress: r, children: i, disabled: a, ...o }, s) => /* @__PURE__ */ v(l, {
|
|
171
171
|
ref: s,
|
|
172
172
|
onPress: r,
|
|
173
173
|
disabled: a,
|
|
174
|
-
className:
|
|
174
|
+
className: q(at({
|
|
175
175
|
variant: t,
|
|
176
176
|
size: n,
|
|
177
177
|
className: e
|
|
178
178
|
}), a && "opacity-50"),
|
|
179
179
|
...o,
|
|
180
|
-
children:
|
|
180
|
+
children: K(i, f, { className: q(ot({ variant: t })) })
|
|
181
181
|
}));
|
|
182
|
-
|
|
182
|
+
J.displayName = "Button";
|
|
183
183
|
//#endregion
|
|
184
184
|
//#region src/alert-dialog.tsx
|
|
185
|
-
var
|
|
185
|
+
var st = M.Root, ct = M.Trigger, lt = M.Portal, ut = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(M.Overlay, {
|
|
186
186
|
style: d.absoluteFill,
|
|
187
187
|
asChild: !0,
|
|
188
188
|
ref: n,
|
|
189
189
|
...t,
|
|
190
|
-
children: /* @__PURE__ */ v(
|
|
191
|
-
entering:
|
|
192
|
-
exiting:
|
|
193
|
-
className:
|
|
190
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
191
|
+
entering: k.duration(150),
|
|
192
|
+
exiting: A.duration(150),
|
|
193
|
+
className: q("z-50 flex items-center justify-center bg-black/60 p-2 backdrop-blur-md", e)
|
|
194
194
|
})
|
|
195
195
|
}));
|
|
196
|
-
|
|
197
|
-
var
|
|
196
|
+
ut.displayName = M.Overlay?.displayName || "AlertDialogOverlay";
|
|
197
|
+
var dt = e.forwardRef(({ className: e, portalHost: t, overlayClassName: n, overlayStyle: r, ...i }, a) => /* @__PURE__ */ y(lt, {
|
|
198
198
|
hostName: t,
|
|
199
|
-
children: [/* @__PURE__ */ v(
|
|
199
|
+
children: [/* @__PURE__ */ v(ut, {
|
|
200
200
|
className: n,
|
|
201
201
|
style: r
|
|
202
|
-
}), /* @__PURE__ */ v(
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
202
|
+
}), /* @__PURE__ */ v(h, {
|
|
203
|
+
pointerEvents: "box-none",
|
|
204
|
+
className: q("absolute inset-0 z-50 flex items-center justify-center p-4", c.OS === "web" && "fixed"),
|
|
205
|
+
children: /* @__PURE__ */ v(M.Content, {
|
|
206
|
+
ref: a,
|
|
207
|
+
asChild: !0,
|
|
208
|
+
...i,
|
|
209
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
210
|
+
entering: k.duration(150),
|
|
211
|
+
exiting: A.duration(150),
|
|
212
|
+
className: q("border-border bg-background w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg", e),
|
|
213
|
+
children: i.children
|
|
214
|
+
})
|
|
210
215
|
})
|
|
211
216
|
})]
|
|
212
217
|
}));
|
|
213
|
-
|
|
214
|
-
var
|
|
215
|
-
className:
|
|
218
|
+
dt.displayName = M.Content?.displayName || "AlertDialogContent";
|
|
219
|
+
var ft = ({ className: e, ...t }) => /* @__PURE__ */ v(h, {
|
|
220
|
+
className: q("flex flex-col gap-2 text-center sm:text-left", e),
|
|
216
221
|
...t
|
|
217
222
|
});
|
|
218
|
-
|
|
219
|
-
var
|
|
220
|
-
className:
|
|
223
|
+
ft.displayName = "AlertDialogHeader";
|
|
224
|
+
var pt = ({ className: e, ...t }) => /* @__PURE__ */ v(h, {
|
|
225
|
+
className: q("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
221
226
|
...t
|
|
222
227
|
});
|
|
223
|
-
|
|
224
|
-
var
|
|
228
|
+
pt.displayName = "AlertDialogFooter";
|
|
229
|
+
var mt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(M.Title, {
|
|
225
230
|
ref: n,
|
|
226
|
-
className:
|
|
231
|
+
className: q("native:text-xl text-foreground text-lg font-semibold", e),
|
|
227
232
|
...t
|
|
228
233
|
}));
|
|
229
|
-
|
|
230
|
-
var
|
|
234
|
+
mt.displayName = M.Title?.displayName || "AlertDialogTitle";
|
|
235
|
+
var ht = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(M.Description, {
|
|
231
236
|
ref: n,
|
|
232
|
-
className:
|
|
237
|
+
className: q("native:text-base text-muted-foreground text-sm", e),
|
|
233
238
|
...t
|
|
234
239
|
}));
|
|
235
|
-
|
|
236
|
-
var
|
|
240
|
+
ht.displayName = M.Description?.displayName || "AlertDialogDescription";
|
|
241
|
+
var gt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(M.Action, {
|
|
237
242
|
ref: n,
|
|
238
|
-
className:
|
|
243
|
+
className: q(at(), e),
|
|
239
244
|
...t
|
|
240
245
|
}));
|
|
241
|
-
|
|
242
|
-
var
|
|
246
|
+
gt.displayName = M.Action?.displayName || "AlertDialogAction";
|
|
247
|
+
var _t = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(M.Cancel, {
|
|
243
248
|
ref: n,
|
|
244
|
-
className:
|
|
249
|
+
className: q(at({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
245
250
|
...t
|
|
246
251
|
}));
|
|
247
|
-
|
|
252
|
+
_t.displayName = M.Cancel?.displayName || "AlertDialogCancel";
|
|
248
253
|
//#endregion
|
|
249
254
|
//#region src/aspect-ratio.tsx
|
|
250
|
-
var
|
|
255
|
+
var vt = ({ children: e, className: t, ratio: n = 1 }) => /* @__PURE__ */ v(je.Root, {
|
|
251
256
|
ratio: n,
|
|
252
|
-
className:
|
|
257
|
+
className: q("w-full", t),
|
|
253
258
|
children: e
|
|
254
259
|
});
|
|
255
|
-
|
|
260
|
+
vt.displayName = "AspectRatio";
|
|
256
261
|
//#endregion
|
|
257
262
|
//#region src/avatar.tsx
|
|
258
|
-
var
|
|
263
|
+
var yt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(N.Root, {
|
|
259
264
|
ref: n,
|
|
260
|
-
className:
|
|
265
|
+
className: q("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e),
|
|
261
266
|
...t
|
|
262
267
|
}));
|
|
263
|
-
|
|
264
|
-
var
|
|
268
|
+
yt.displayName = N.Root?.displayName || "Avatar";
|
|
269
|
+
var bt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(N.Image, {
|
|
265
270
|
ref: n,
|
|
266
|
-
className:
|
|
271
|
+
className: q("aspect-square h-full w-full", e),
|
|
267
272
|
...t
|
|
268
273
|
}));
|
|
269
|
-
|
|
270
|
-
var
|
|
274
|
+
bt.displayName = N.Image?.displayName || "AvatarImage";
|
|
275
|
+
var xt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(N.Fallback, {
|
|
271
276
|
ref: n,
|
|
272
|
-
className:
|
|
277
|
+
className: q("bg-muted flex h-full w-full items-center justify-center rounded-full", e),
|
|
273
278
|
...t
|
|
274
279
|
}));
|
|
275
|
-
|
|
280
|
+
xt.displayName = N.Fallback?.displayName || "AvatarFallback";
|
|
276
281
|
//#endregion
|
|
277
282
|
//#region src/badge.tsx
|
|
278
|
-
var
|
|
283
|
+
var St = j("flex-row items-center rounded-md border px-2 py-0.5", {
|
|
279
284
|
variants: { variant: {
|
|
280
285
|
default: "border-transparent bg-primary",
|
|
281
286
|
secondary: "border-transparent bg-secondary",
|
|
@@ -283,7 +288,7 @@ var yt = A("flex-row items-center rounded-md border px-2 py-0.5", {
|
|
|
283
288
|
outline: "border-border bg-transparent"
|
|
284
289
|
} },
|
|
285
290
|
defaultVariants: { variant: "default" }
|
|
286
|
-
}),
|
|
291
|
+
}), Ct = j("text-xs font-semibold", {
|
|
287
292
|
variants: { variant: {
|
|
288
293
|
default: "text-primary-foreground",
|
|
289
294
|
secondary: "text-secondary-foreground",
|
|
@@ -292,16 +297,16 @@ var yt = A("flex-row items-center rounded-md border px-2 py-0.5", {
|
|
|
292
297
|
} },
|
|
293
298
|
defaultVariants: { variant: "default" }
|
|
294
299
|
});
|
|
295
|
-
function
|
|
300
|
+
function wt({ className: e, textClassName: t, variant: n, children: r, ...i }) {
|
|
296
301
|
return /* @__PURE__ */ v(h, {
|
|
297
|
-
className:
|
|
302
|
+
className: q(St({ variant: n }), e),
|
|
298
303
|
...i,
|
|
299
|
-
children:
|
|
304
|
+
children: K(r, f, { className: q(Ct({ variant: n }), t) })
|
|
300
305
|
});
|
|
301
306
|
}
|
|
302
307
|
//#endregion
|
|
303
308
|
//#region src/text.tsx
|
|
304
|
-
var
|
|
309
|
+
var Tt = e.createContext(void 0), Et = j("text-foreground", {
|
|
305
310
|
variants: { variant: {
|
|
306
311
|
h1: "text-4xl font-extrabold tracking-tight",
|
|
307
312
|
h2: "text-3xl font-semibold tracking-tight",
|
|
@@ -314,90 +319,90 @@ var St = e.createContext(void 0), Ct = A("text-foreground", {
|
|
|
314
319
|
overline: "text-xs font-semibold uppercase tracking-widest text-muted-foreground"
|
|
315
320
|
} },
|
|
316
321
|
defaultVariants: { variant: "body" }
|
|
317
|
-
}),
|
|
322
|
+
}), Y = e.forwardRef(({ className: e, variant: t = "body", children: n, ...r }, i) => /* @__PURE__ */ v(f, {
|
|
318
323
|
ref: i,
|
|
319
|
-
className:
|
|
324
|
+
className: q(Et({
|
|
320
325
|
variant: t,
|
|
321
326
|
className: e
|
|
322
327
|
})),
|
|
323
328
|
...r,
|
|
324
329
|
children: n
|
|
325
330
|
}));
|
|
326
|
-
|
|
331
|
+
Y.displayName = "Text";
|
|
327
332
|
//#endregion
|
|
328
333
|
//#region src/breadcrumb.tsx
|
|
329
|
-
var
|
|
334
|
+
var Dt = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(h, {
|
|
330
335
|
ref: r,
|
|
331
336
|
"aria-label": "breadcrumb",
|
|
332
|
-
className:
|
|
337
|
+
className: q("flex flex-row", e),
|
|
333
338
|
...n,
|
|
334
339
|
children: t
|
|
335
340
|
}));
|
|
336
|
-
|
|
337
|
-
var
|
|
341
|
+
Dt.displayName = "Breadcrumb";
|
|
342
|
+
var Ot = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(h, {
|
|
338
343
|
ref: r,
|
|
339
|
-
className:
|
|
344
|
+
className: q("text-muted-foreground flex flex-row flex-wrap items-center gap-1.5 break-words sm:gap-2.5", e),
|
|
340
345
|
...n,
|
|
341
346
|
children: t
|
|
342
347
|
}));
|
|
343
|
-
|
|
344
|
-
var
|
|
348
|
+
Ot.displayName = "BreadcrumbList";
|
|
349
|
+
var kt = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(h, {
|
|
345
350
|
ref: r,
|
|
346
|
-
className:
|
|
351
|
+
className: q("flex flex-row items-center gap-1.5", e),
|
|
347
352
|
...n,
|
|
348
353
|
children: t
|
|
349
354
|
}));
|
|
350
|
-
|
|
351
|
-
var
|
|
355
|
+
kt.displayName = "BreadcrumbItem";
|
|
356
|
+
var At = e.forwardRef(({ asChild: e, className: t, children: n, onPress: r, ...i }, a) => /* @__PURE__ */ v(e ? Ne : l, {
|
|
352
357
|
ref: a,
|
|
353
358
|
onPress: r,
|
|
354
|
-
className:
|
|
359
|
+
className: q("hover:text-foreground active:text-foreground flex flex-row items-center transition-colors", t),
|
|
355
360
|
...i,
|
|
356
|
-
children:
|
|
361
|
+
children: K(n, Y, { className: "text-muted-foreground hover:text-foreground text-sm font-medium" })
|
|
357
362
|
}));
|
|
358
|
-
|
|
359
|
-
var
|
|
363
|
+
At.displayName = "BreadcrumbLink";
|
|
364
|
+
var jt = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(h, {
|
|
360
365
|
ref: r,
|
|
361
366
|
role: "link",
|
|
362
367
|
"aria-disabled": !0,
|
|
363
368
|
"aria-current": "page",
|
|
364
|
-
className:
|
|
369
|
+
className: q("flex flex-row items-center", e),
|
|
365
370
|
...n,
|
|
366
|
-
children:
|
|
371
|
+
children: K(t, Y, { className: "text-foreground text-sm font-normal" })
|
|
367
372
|
}));
|
|
368
|
-
|
|
369
|
-
var
|
|
373
|
+
jt.displayName = "BreadcrumbPage";
|
|
374
|
+
var Mt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ v(h, {
|
|
370
375
|
role: "presentation",
|
|
371
376
|
"aria-hidden": !0,
|
|
372
|
-
className:
|
|
377
|
+
className: q("flex flex-row items-center justify-center", t),
|
|
373
378
|
...n,
|
|
374
379
|
children: e ?? /* @__PURE__ */ v(T, {
|
|
375
380
|
size: 14,
|
|
376
381
|
className: "text-muted-foreground"
|
|
377
382
|
})
|
|
378
383
|
});
|
|
379
|
-
|
|
380
|
-
var
|
|
384
|
+
Mt.displayName = "BreadcrumbSeparator";
|
|
385
|
+
var Nt = ({ className: e, children: t, ...n }) => /* @__PURE__ */ v(h, {
|
|
381
386
|
role: "presentation",
|
|
382
387
|
"aria-hidden": !0,
|
|
383
|
-
className:
|
|
388
|
+
className: q("flex h-9 w-9 flex-row items-center justify-center", e),
|
|
384
389
|
...n,
|
|
385
|
-
children: t ?? /* @__PURE__ */ v(
|
|
390
|
+
children: t ?? /* @__PURE__ */ v(ce, {
|
|
386
391
|
size: 14,
|
|
387
392
|
className: "text-muted-foreground"
|
|
388
393
|
})
|
|
389
394
|
});
|
|
390
|
-
|
|
395
|
+
Nt.displayName = "BreadcrumbEllipsis";
|
|
391
396
|
//#endregion
|
|
392
397
|
//#region src/calendar.tsx
|
|
393
|
-
var
|
|
398
|
+
var Pt = e.forwardRef(({ className: t, value: n, onChange: r, showOutsideDays: i, ...a }, o) => {
|
|
394
399
|
let [s, c] = e.useState(n || /* @__PURE__ */ new Date());
|
|
395
400
|
return e.useEffect(() => {
|
|
396
401
|
n && c(n);
|
|
397
402
|
}, [n]), /* @__PURE__ */ v(h, {
|
|
398
403
|
ref: o,
|
|
399
|
-
className:
|
|
400
|
-
children: /* @__PURE__ */ v(
|
|
404
|
+
className: q("bg-background overflow-hidden rounded-md", t),
|
|
405
|
+
children: /* @__PURE__ */ v(Pe, {
|
|
401
406
|
value: s,
|
|
402
407
|
mode: "date",
|
|
403
408
|
display: "inline",
|
|
@@ -411,55 +416,55 @@ var jt = e.forwardRef(({ className: t, value: n, onChange: r, showOutsideDays: i
|
|
|
411
416
|
})
|
|
412
417
|
});
|
|
413
418
|
});
|
|
414
|
-
|
|
419
|
+
Pt.displayName = "Calendar";
|
|
415
420
|
//#endregion
|
|
416
421
|
//#region src/card.tsx
|
|
417
|
-
var
|
|
422
|
+
var Ft = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
418
423
|
ref: n,
|
|
419
|
-
className:
|
|
424
|
+
className: q("border-border bg-card rounded-xl border shadow-sm", e),
|
|
420
425
|
...t
|
|
421
426
|
}));
|
|
422
|
-
|
|
423
|
-
var
|
|
427
|
+
Ft.displayName = "Card";
|
|
428
|
+
var It = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
424
429
|
ref: n,
|
|
425
|
-
className:
|
|
430
|
+
className: q("flex flex-col space-y-1.5 p-6", e),
|
|
426
431
|
...t
|
|
427
432
|
}));
|
|
428
|
-
|
|
429
|
-
var
|
|
433
|
+
It.displayName = "CardHeader";
|
|
434
|
+
var Lt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(f, {
|
|
430
435
|
ref: n,
|
|
431
|
-
className:
|
|
436
|
+
className: q("text-card-foreground text-lg leading-none font-semibold tracking-tight", e),
|
|
432
437
|
...t
|
|
433
438
|
}));
|
|
434
|
-
|
|
435
|
-
var
|
|
439
|
+
Lt.displayName = "CardTitle";
|
|
440
|
+
var Rt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(f, {
|
|
436
441
|
ref: n,
|
|
437
|
-
className:
|
|
442
|
+
className: q("text-muted-foreground text-sm", e),
|
|
438
443
|
...t
|
|
439
444
|
}));
|
|
440
|
-
|
|
441
|
-
var
|
|
445
|
+
Rt.displayName = "CardDescription";
|
|
446
|
+
var zt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
442
447
|
ref: n,
|
|
443
|
-
className:
|
|
448
|
+
className: q("p-6 pt-0", e),
|
|
444
449
|
...t,
|
|
445
|
-
children:
|
|
450
|
+
children: K(t.children, f, { className: "text-sm text-card-foreground" })
|
|
446
451
|
}));
|
|
447
|
-
|
|
448
|
-
var
|
|
452
|
+
zt.displayName = "CardContent";
|
|
453
|
+
var Bt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
449
454
|
ref: n,
|
|
450
|
-
className:
|
|
455
|
+
className: q("flex flex-row items-center p-6 pt-0", e),
|
|
451
456
|
...t
|
|
452
457
|
}));
|
|
453
|
-
|
|
458
|
+
Bt.displayName = "CardFooter";
|
|
454
459
|
//#endregion
|
|
455
460
|
//#region src/carousel.tsx
|
|
456
|
-
var
|
|
457
|
-
function
|
|
458
|
-
let t = e.useContext(
|
|
461
|
+
var Vt = e.createContext(null);
|
|
462
|
+
function Ht() {
|
|
463
|
+
let t = e.useContext(Vt);
|
|
459
464
|
if (!t) throw Error("useCarousel must be used within a <Carousel />");
|
|
460
465
|
return t;
|
|
461
466
|
}
|
|
462
|
-
var
|
|
467
|
+
var Ut = e.forwardRef(({ children: t, className: n, opts: r, orientation: i = "horizontal", setApi: o, plugins: s, ...c }, l) => {
|
|
463
468
|
let u = e.useRef(null), [d, f] = e.useState(!0), [p, m] = e.useState(!1), [g, _] = e.useState(a.get("window").width), [y, b] = e.useState(0), x = e.useCallback(() => {
|
|
464
469
|
u.current?.scrollTo({
|
|
465
470
|
x: (y + 1) * g,
|
|
@@ -486,7 +491,7 @@ var Bt = e.forwardRef(({ children: t, className: n, opts: r, orientation: i = "h
|
|
|
486
491
|
S,
|
|
487
492
|
d,
|
|
488
493
|
p
|
|
489
|
-
]), /* @__PURE__ */ v(
|
|
494
|
+
]), /* @__PURE__ */ v(Vt.Provider, {
|
|
490
495
|
value: {
|
|
491
496
|
orientation: i,
|
|
492
497
|
scrollRef: u,
|
|
@@ -499,15 +504,15 @@ var Bt = e.forwardRef(({ children: t, className: n, opts: r, orientation: i = "h
|
|
|
499
504
|
},
|
|
500
505
|
children: /* @__PURE__ */ v(h, {
|
|
501
506
|
ref: l,
|
|
502
|
-
className:
|
|
507
|
+
className: q("relative", n),
|
|
503
508
|
...c,
|
|
504
509
|
children: t
|
|
505
510
|
})
|
|
506
511
|
});
|
|
507
512
|
});
|
|
508
|
-
|
|
509
|
-
var
|
|
510
|
-
let { scrollRef: i, orientation: o } =
|
|
513
|
+
Ut.displayName = "Carousel";
|
|
514
|
+
var Wt = e.forwardRef(({ children: e, className: t, ...n }, r) => {
|
|
515
|
+
let { scrollRef: i, orientation: o } = Ht();
|
|
511
516
|
return /* @__PURE__ */ v(h, {
|
|
512
517
|
className: "overflow-hidden",
|
|
513
518
|
children: /* @__PURE__ */ v(u, {
|
|
@@ -518,33 +523,33 @@ var Vt = e.forwardRef(({ children: e, className: t, ...n }, r) => {
|
|
|
518
523
|
pagingEnabled: !0,
|
|
519
524
|
snapToInterval: o === "horizontal" ? a.get("window").width : void 0,
|
|
520
525
|
decelerationRate: "fast",
|
|
521
|
-
className:
|
|
526
|
+
className: q("flex", o === "horizontal" ? "flex-row" : "flex-col", t),
|
|
522
527
|
...n,
|
|
523
528
|
children: e
|
|
524
529
|
})
|
|
525
530
|
});
|
|
526
531
|
});
|
|
527
|
-
|
|
528
|
-
var
|
|
529
|
-
let { orientation: i, setItemWidth: a } =
|
|
532
|
+
Wt.displayName = "CarouselContent";
|
|
533
|
+
var Gt = e.forwardRef(({ children: e, className: t, ...n }, r) => {
|
|
534
|
+
let { orientation: i, setItemWidth: a } = Ht();
|
|
530
535
|
return /* @__PURE__ */ v(h, {
|
|
531
536
|
ref: r,
|
|
532
537
|
onLayout: (e) => {
|
|
533
538
|
i === "horizontal" && a(e.nativeEvent.layout.width);
|
|
534
539
|
},
|
|
535
|
-
className:
|
|
540
|
+
className: q("min-w-0 shrink-0 grow-0 basis-full", t),
|
|
536
541
|
...n,
|
|
537
542
|
children: e
|
|
538
543
|
});
|
|
539
544
|
});
|
|
540
|
-
|
|
541
|
-
var
|
|
542
|
-
let { orientation: a, scrollPrev: o, canScrollPrev: s } =
|
|
543
|
-
return /* @__PURE__ */ v(
|
|
545
|
+
Gt.displayName = "CarouselItem";
|
|
546
|
+
var Kt = e.forwardRef(({ className: e, variant: t = "outline", size: n = "icon", ...r }, i) => {
|
|
547
|
+
let { orientation: a, scrollPrev: o, canScrollPrev: s } = Ht();
|
|
548
|
+
return /* @__PURE__ */ v(J, {
|
|
544
549
|
ref: i,
|
|
545
550
|
variant: t,
|
|
546
551
|
size: n,
|
|
547
|
-
className:
|
|
552
|
+
className: q("absolute h-8 w-8 rounded-full", a === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
548
553
|
disabled: !s,
|
|
549
554
|
onPress: o,
|
|
550
555
|
...r,
|
|
@@ -554,14 +559,14 @@ var Ut = e.forwardRef(({ className: e, variant: t = "outline", size: n = "icon",
|
|
|
554
559
|
})
|
|
555
560
|
});
|
|
556
561
|
});
|
|
557
|
-
|
|
558
|
-
var
|
|
559
|
-
let { orientation: a, scrollNext: o, canScrollNext: s } =
|
|
560
|
-
return /* @__PURE__ */ v(
|
|
562
|
+
Kt.displayName = "CarouselPrevious";
|
|
563
|
+
var qt = e.forwardRef(({ className: e, variant: t = "outline", size: n = "icon", ...r }, i) => {
|
|
564
|
+
let { orientation: a, scrollNext: o, canScrollNext: s } = Ht();
|
|
565
|
+
return /* @__PURE__ */ v(J, {
|
|
561
566
|
ref: i,
|
|
562
567
|
variant: t,
|
|
563
568
|
size: n,
|
|
564
|
-
className:
|
|
569
|
+
className: q("absolute h-8 w-8 rounded-full", a === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", e),
|
|
565
570
|
disabled: !s,
|
|
566
571
|
onPress: o,
|
|
567
572
|
...r,
|
|
@@ -571,18 +576,18 @@ var Wt = e.forwardRef(({ className: e, variant: t = "outline", size: n = "icon",
|
|
|
571
576
|
})
|
|
572
577
|
});
|
|
573
578
|
});
|
|
574
|
-
|
|
579
|
+
qt.displayName = "CarouselNext";
|
|
575
580
|
//#endregion
|
|
576
581
|
//#region src/chart.tsx
|
|
577
|
-
var
|
|
582
|
+
var Jt = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
578
583
|
className: t,
|
|
579
584
|
children: e
|
|
580
|
-
}),
|
|
585
|
+
}), Yt = ({ className: e }) => /* @__PURE__ */ v(h, { className: e }), Xt = ({ className: e }) => /* @__PURE__ */ v(h, { className: e }), Zt = ({ children: e }) => /* @__PURE__ */ v(_, { children: e }), Qt = ({ children: e }) => /* @__PURE__ */ v(_, { children: e }), $t = () => null, en = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(Fe.Root, {
|
|
581
586
|
ref: n,
|
|
582
|
-
className:
|
|
587
|
+
className: q("web:peer native:h-[20] native:w-[20] native:rounded border-primary web:ring-offset-background web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 h-4 w-4 shrink-0 rounded-sm border disabled:cursor-not-allowed disabled:opacity-50", t.checked && "bg-primary", e),
|
|
583
588
|
...t,
|
|
584
|
-
children: /* @__PURE__ */ v(
|
|
585
|
-
className:
|
|
589
|
+
children: /* @__PURE__ */ v(Fe.Indicator, {
|
|
590
|
+
className: q("h-full w-full items-center justify-center"),
|
|
586
591
|
children: /* @__PURE__ */ v(C, {
|
|
587
592
|
size: 12,
|
|
588
593
|
strokeWidth: c.OS === "web" ? 2.5 : 3.5,
|
|
@@ -590,123 +595,123 @@ var Gt = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
|
590
595
|
})
|
|
591
596
|
})
|
|
592
597
|
}));
|
|
593
|
-
|
|
598
|
+
en.displayName = Fe.Root?.displayName || "Checkbox";
|
|
594
599
|
//#endregion
|
|
595
600
|
//#region src/collapsible.tsx
|
|
596
|
-
var
|
|
601
|
+
var tn = Ie.Root, nn = Ie.Trigger, rn = Ie.Content, an = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
597
602
|
className: t,
|
|
598
|
-
children:
|
|
599
|
-
}),
|
|
603
|
+
children: K(e)
|
|
604
|
+
}), on = ({ children: e }) => /* @__PURE__ */ v(_, { children: e }), sn = ({ className: e }) => /* @__PURE__ */ v(h, { className: e }), cn = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
600
605
|
className: t,
|
|
601
|
-
children:
|
|
602
|
-
}),
|
|
606
|
+
children: K(e)
|
|
607
|
+
}), ln = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
603
608
|
className: t,
|
|
604
|
-
children:
|
|
605
|
-
}),
|
|
609
|
+
children: K(e)
|
|
610
|
+
}), un = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
606
611
|
className: t,
|
|
607
|
-
children:
|
|
608
|
-
}),
|
|
612
|
+
children: K(e)
|
|
613
|
+
}), dn = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
609
614
|
className: t,
|
|
610
|
-
children:
|
|
611
|
-
}),
|
|
615
|
+
children: K(e)
|
|
616
|
+
}), fn = ({ className: e }) => /* @__PURE__ */ v(h, { className: e }), pn = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
612
617
|
className: t,
|
|
613
|
-
children:
|
|
614
|
-
}),
|
|
618
|
+
children: K(e)
|
|
619
|
+
}), mn = P.Root, hn = P.Trigger, gn = P.Portal, _n = P.Group, vn = P.RadioGroup, yn = P.Sub, bn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(P.Overlay, {
|
|
615
620
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
616
621
|
ref: n,
|
|
617
622
|
...t,
|
|
618
|
-
children: /* @__PURE__ */ v(
|
|
619
|
-
entering:
|
|
620
|
-
exiting:
|
|
621
|
-
className:
|
|
623
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
624
|
+
entering: k.duration(100),
|
|
625
|
+
exiting: A.duration(100),
|
|
626
|
+
className: q("absolute inset-0 z-50 bg-black/30", e)
|
|
622
627
|
})
|
|
623
628
|
}));
|
|
624
|
-
|
|
625
|
-
var
|
|
629
|
+
bn.displayName = "ContextMenuOverlay";
|
|
630
|
+
var xn = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ y(gn, { children: [/* @__PURE__ */ v(bn, {}), /* @__PURE__ */ v(P.Content, {
|
|
626
631
|
ref: r,
|
|
627
|
-
className:
|
|
632
|
+
className: q("bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
628
633
|
...n,
|
|
629
634
|
children: t
|
|
630
635
|
})] }));
|
|
631
|
-
|
|
632
|
-
var
|
|
636
|
+
xn.displayName = "ContextMenuContent";
|
|
637
|
+
var Sn = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ v(P.Item, {
|
|
633
638
|
ref: i,
|
|
634
|
-
className:
|
|
639
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
635
640
|
...r,
|
|
636
|
-
children:
|
|
641
|
+
children: K(t, Y)
|
|
637
642
|
}));
|
|
638
|
-
|
|
639
|
-
var
|
|
643
|
+
Sn.displayName = "ContextMenuItem";
|
|
644
|
+
var Cn = e.forwardRef(({ className: e, children: t, checked: n, onCheckedChange: r, ...i }, a) => /* @__PURE__ */ y(P.CheckboxItem, {
|
|
640
645
|
ref: a,
|
|
641
646
|
checked: !!n,
|
|
642
647
|
onCheckedChange: r || (() => {}),
|
|
643
|
-
className:
|
|
648
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none", e),
|
|
644
649
|
...i,
|
|
645
650
|
children: [/* @__PURE__ */ v(h, {
|
|
646
651
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
647
|
-
children: /* @__PURE__ */ v(
|
|
652
|
+
children: /* @__PURE__ */ v(P.ItemIndicator, { children: /* @__PURE__ */ v(C, {
|
|
648
653
|
size: 14,
|
|
649
654
|
className: "text-foreground"
|
|
650
655
|
}) })
|
|
651
|
-
}),
|
|
656
|
+
}), K(t, Y)]
|
|
652
657
|
}));
|
|
653
|
-
|
|
654
|
-
var
|
|
658
|
+
Cn.displayName = "ContextMenuCheckboxItem";
|
|
659
|
+
var wn = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @__PURE__ */ y(P.RadioItem, {
|
|
655
660
|
ref: i,
|
|
656
661
|
value: n,
|
|
657
|
-
className:
|
|
662
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none", e),
|
|
658
663
|
...r,
|
|
659
664
|
children: [/* @__PURE__ */ v(h, {
|
|
660
665
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
661
|
-
children: /* @__PURE__ */ v(
|
|
666
|
+
children: /* @__PURE__ */ v(P.ItemIndicator, { children: /* @__PURE__ */ v(E, {
|
|
662
667
|
size: 8,
|
|
663
668
|
className: "text-foreground fill-current"
|
|
664
669
|
}) })
|
|
665
|
-
}),
|
|
670
|
+
}), K(t, Y)]
|
|
666
671
|
}));
|
|
667
|
-
|
|
668
|
-
var
|
|
672
|
+
wn.displayName = "ContextMenuRadioItem";
|
|
673
|
+
var Tn = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ v(P.Label, {
|
|
669
674
|
ref: i,
|
|
670
|
-
className:
|
|
675
|
+
className: q("text-foreground px-2 py-1.5 text-sm font-semibold", n && "pl-8", e),
|
|
671
676
|
...r,
|
|
672
|
-
children:
|
|
677
|
+
children: K(t, Y)
|
|
673
678
|
}));
|
|
674
|
-
|
|
675
|
-
var
|
|
679
|
+
Tn.displayName = "ContextMenuLabel";
|
|
680
|
+
var En = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(P.Separator, {
|
|
676
681
|
ref: n,
|
|
677
|
-
className:
|
|
682
|
+
className: q("bg-border -mx-1 my-1 h-px", e),
|
|
678
683
|
...t
|
|
679
684
|
}));
|
|
680
|
-
|
|
681
|
-
var
|
|
682
|
-
className:
|
|
685
|
+
En.displayName = "ContextMenuSeparator";
|
|
686
|
+
var Dn = ({ className: e, children: t, ...n }) => /* @__PURE__ */ v(Y, {
|
|
687
|
+
className: q("text-muted-foreground ml-auto text-xs tracking-widest", e),
|
|
683
688
|
...n,
|
|
684
689
|
children: t
|
|
685
690
|
});
|
|
686
|
-
|
|
687
|
-
var
|
|
691
|
+
Dn.displayName = "ContextMenuShortcut";
|
|
692
|
+
var On = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ y(P.SubTrigger, {
|
|
688
693
|
ref: i,
|
|
689
|
-
className:
|
|
694
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
690
695
|
...r,
|
|
691
696
|
children: [/* @__PURE__ */ v(h, {
|
|
692
697
|
className: "flex flex-row items-center gap-1.5",
|
|
693
|
-
children:
|
|
698
|
+
children: K(t, Y)
|
|
694
699
|
}), /* @__PURE__ */ v(T, {
|
|
695
700
|
size: 14,
|
|
696
701
|
className: "text-foreground ml-auto"
|
|
697
702
|
})]
|
|
698
703
|
}));
|
|
699
|
-
|
|
700
|
-
var
|
|
704
|
+
On.displayName = "ContextMenuSubTrigger";
|
|
705
|
+
var kn = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(P.SubContent, {
|
|
701
706
|
ref: r,
|
|
702
|
-
className:
|
|
707
|
+
className: q("bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
703
708
|
...n,
|
|
704
709
|
children: t
|
|
705
710
|
}));
|
|
706
|
-
|
|
711
|
+
kn.displayName = "ContextMenuSubContent";
|
|
707
712
|
//#endregion
|
|
708
713
|
//#region src/dialog.tsx
|
|
709
|
-
var
|
|
714
|
+
var An = F.Root, jn = F.Trigger, Mn = F.Portal, Nn = F.Close, Pn = e.forwardRef(({ className: e, style: t, ...n }, r) => /* @__PURE__ */ v(F.Overlay, {
|
|
710
715
|
style: [{
|
|
711
716
|
position: c.OS === "web" ? "fixed" : "absolute",
|
|
712
717
|
top: 0,
|
|
@@ -718,285 +723,278 @@ var Dn = P.Root, On = P.Trigger, kn = P.Portal, An = P.Close, jn = e.forwardRef(
|
|
|
718
723
|
asChild: !0,
|
|
719
724
|
ref: r,
|
|
720
725
|
...n,
|
|
721
|
-
children: /* @__PURE__ */ v(
|
|
722
|
-
entering:
|
|
723
|
-
exiting:
|
|
724
|
-
className:
|
|
726
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
727
|
+
entering: k.duration(150),
|
|
728
|
+
exiting: A.duration(150),
|
|
729
|
+
className: q("flex items-center justify-center bg-black/60 p-2 backdrop-blur-md", e)
|
|
725
730
|
})
|
|
726
731
|
}));
|
|
727
|
-
|
|
728
|
-
var
|
|
729
|
-
|
|
732
|
+
Pn.displayName = F.Overlay?.displayName || "DialogOverlay";
|
|
733
|
+
var Fn = e.forwardRef(({ className: e, children: t, portalHost: n, overlayClassName: r, overlayStyle: i, ...a }, o) => /* @__PURE__ */ y(Mn, {
|
|
734
|
+
hostName: n,
|
|
735
|
+
children: [/* @__PURE__ */ v(Pn, {
|
|
736
|
+
className: r,
|
|
737
|
+
style: i
|
|
738
|
+
}), /* @__PURE__ */ v(h, {
|
|
730
739
|
pointerEvents: "box-none",
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
style: a
|
|
749
|
-
}), /* @__PURE__ */ v(l, { children: /* @__PURE__ */ v(P.Content, {
|
|
750
|
-
ref: s,
|
|
751
|
-
...o,
|
|
752
|
-
children: /* @__PURE__ */ v(h, {
|
|
753
|
-
pointerEvents: "box-none",
|
|
754
|
-
className: "absolute inset-0 z-50 flex items-center justify-center",
|
|
755
|
-
style: c.OS === "web" ? { position: "fixed" } : void 0,
|
|
756
|
-
children: /* @__PURE__ */ y(D.View, {
|
|
757
|
-
entering: O.duration(150),
|
|
758
|
-
exiting: k.duration(150),
|
|
759
|
-
className: K("border-border bg-background w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg", t),
|
|
760
|
-
children: [n, /* @__PURE__ */ y(P.Close, {
|
|
761
|
-
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",
|
|
762
|
-
children: [/* @__PURE__ */ v(E, {
|
|
763
|
-
size: 18,
|
|
764
|
-
className: "text-muted-foreground"
|
|
765
|
-
}), /* @__PURE__ */ v(h, {
|
|
766
|
-
className: "sr-only",
|
|
767
|
-
children: /* @__PURE__ */ v(P.Title, { children: "Close" })
|
|
768
|
-
})]
|
|
740
|
+
className: q("absolute inset-0 z-50 flex items-center justify-center p-4", c.OS === "web" && "fixed"),
|
|
741
|
+
children: /* @__PURE__ */ v(F.Content, {
|
|
742
|
+
ref: o,
|
|
743
|
+
asChild: !0,
|
|
744
|
+
...a,
|
|
745
|
+
children: /* @__PURE__ */ y(O.View, {
|
|
746
|
+
entering: k.duration(150),
|
|
747
|
+
exiting: A.duration(150),
|
|
748
|
+
className: q("border-border bg-background w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg", e),
|
|
749
|
+
children: [t, /* @__PURE__ */ y(F.Close, {
|
|
750
|
+
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",
|
|
751
|
+
children: [/* @__PURE__ */ v(D, {
|
|
752
|
+
size: 18,
|
|
753
|
+
className: "text-muted-foreground"
|
|
754
|
+
}), /* @__PURE__ */ v(Y, {
|
|
755
|
+
className: "sr-only",
|
|
756
|
+
children: "Close"
|
|
769
757
|
})]
|
|
770
|
-
})
|
|
758
|
+
})]
|
|
771
759
|
})
|
|
772
|
-
})
|
|
773
|
-
})
|
|
774
|
-
});
|
|
775
|
-
|
|
776
|
-
var
|
|
777
|
-
className:
|
|
760
|
+
})
|
|
761
|
+
})]
|
|
762
|
+
}));
|
|
763
|
+
Fn.displayName = F.Content?.displayName || "DialogContent";
|
|
764
|
+
var In = ({ className: e, ...t }) => /* @__PURE__ */ v(h, {
|
|
765
|
+
className: q("flex flex-col gap-1.5 text-center sm:text-left", e),
|
|
778
766
|
...t
|
|
779
767
|
});
|
|
780
|
-
|
|
781
|
-
var
|
|
782
|
-
className:
|
|
768
|
+
In.displayName = "DialogHeader";
|
|
769
|
+
var Ln = ({ className: e, ...t }) => /* @__PURE__ */ v(h, {
|
|
770
|
+
className: q("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
783
771
|
...t
|
|
784
772
|
});
|
|
785
|
-
|
|
786
|
-
var
|
|
773
|
+
Ln.displayName = "DialogFooter";
|
|
774
|
+
var Rn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(F.Title, {
|
|
787
775
|
ref: n,
|
|
788
|
-
className:
|
|
776
|
+
className: q("native:text-xl text-foreground text-lg leading-none font-semibold tracking-tight", e),
|
|
789
777
|
...t
|
|
790
778
|
}));
|
|
791
|
-
|
|
792
|
-
var
|
|
779
|
+
Rn.displayName = F.Title?.displayName || "DialogTitle";
|
|
780
|
+
var zn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(F.Description, {
|
|
793
781
|
ref: n,
|
|
794
|
-
className:
|
|
782
|
+
className: q("native:text-base text-muted-foreground text-sm", e),
|
|
795
783
|
...t
|
|
796
784
|
}));
|
|
797
|
-
|
|
785
|
+
zn.displayName = F.Description?.displayName || "DialogDescription";
|
|
798
786
|
//#endregion
|
|
799
787
|
//#region src/drawer.tsx
|
|
800
|
-
var
|
|
801
|
-
|
|
802
|
-
|
|
788
|
+
var Bn = ({ children: e, ...t }) => /* @__PURE__ */ v(F.Root, {
|
|
789
|
+
...t,
|
|
790
|
+
children: e
|
|
791
|
+
});
|
|
792
|
+
Bn.displayName = "Drawer";
|
|
793
|
+
var Vn = e.forwardRef(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ v(F.Trigger, {
|
|
803
794
|
ref: r,
|
|
804
795
|
className: t,
|
|
805
796
|
...n,
|
|
806
|
-
children:
|
|
797
|
+
children: K(e)
|
|
807
798
|
}));
|
|
808
|
-
|
|
809
|
-
var
|
|
810
|
-
style:
|
|
799
|
+
Vn.displayName = "DrawerTrigger";
|
|
800
|
+
var Hn = F.Portal, Un = e.forwardRef(({ className: e, style: t, ...n }, r) => /* @__PURE__ */ v(F.Overlay, {
|
|
801
|
+
style: [{
|
|
802
|
+
position: c.OS === "web" ? "fixed" : "absolute",
|
|
803
|
+
top: 0,
|
|
804
|
+
right: 0,
|
|
805
|
+
bottom: 0,
|
|
806
|
+
left: 0,
|
|
807
|
+
zIndex: 50
|
|
808
|
+
}, t],
|
|
811
809
|
asChild: !0,
|
|
812
|
-
ref:
|
|
813
|
-
...
|
|
814
|
-
children: /* @__PURE__ */ v(
|
|
815
|
-
entering:
|
|
816
|
-
exiting:
|
|
817
|
-
className:
|
|
810
|
+
ref: r,
|
|
811
|
+
...n,
|
|
812
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
813
|
+
entering: k.duration(150),
|
|
814
|
+
exiting: A.duration(150),
|
|
815
|
+
className: q("bg-black/80", e)
|
|
818
816
|
})
|
|
819
817
|
}));
|
|
820
|
-
|
|
821
|
-
var
|
|
818
|
+
Un.displayName = "DrawerOverlay";
|
|
819
|
+
var Wn = e.forwardRef(({ className: e, children: t, portalHost: n, overlayClassName: r, overlayStyle: i, ...a }, o) => /* @__PURE__ */ y(Hn, {
|
|
822
820
|
hostName: n,
|
|
823
|
-
children: [/* @__PURE__ */ v(
|
|
821
|
+
children: [/* @__PURE__ */ v(Un, {
|
|
824
822
|
className: r,
|
|
825
823
|
style: i
|
|
826
|
-
}), /* @__PURE__ */ v(
|
|
824
|
+
}), /* @__PURE__ */ v(F.Content, {
|
|
827
825
|
ref: o,
|
|
828
826
|
asChild: !0,
|
|
829
827
|
...a,
|
|
830
|
-
children: /* @__PURE__ */ y(
|
|
831
|
-
entering:
|
|
832
|
-
exiting:
|
|
833
|
-
className:
|
|
828
|
+
children: /* @__PURE__ */ y(O.View, {
|
|
829
|
+
entering: ge.duration(200),
|
|
830
|
+
exiting: be.duration(200),
|
|
831
|
+
className: q("border-border bg-background z-50 flex h-auto flex-col rounded-t-xl border p-6 pb-10 shadow-lg", c.OS === "web" ? "fixed inset-x-0 bottom-0" : "absolute inset-x-0 bottom-0", e),
|
|
834
832
|
children: [/* @__PURE__ */ v(h, { className: "bg-muted mx-auto mb-4 h-1.5 w-12 rounded-full" }), t]
|
|
835
833
|
})
|
|
836
834
|
})]
|
|
837
835
|
}));
|
|
838
|
-
|
|
839
|
-
var
|
|
840
|
-
className:
|
|
836
|
+
Wn.displayName = "DrawerContent";
|
|
837
|
+
var Gn = ({ className: e, children: t, ...n }) => /* @__PURE__ */ v(h, {
|
|
838
|
+
className: q("flex flex-col gap-1.5 text-center sm:text-left", e),
|
|
841
839
|
...n,
|
|
842
|
-
children:
|
|
840
|
+
children: K(t)
|
|
843
841
|
});
|
|
844
|
-
|
|
845
|
-
var
|
|
846
|
-
className:
|
|
842
|
+
Gn.displayName = "DrawerHeader";
|
|
843
|
+
var Kn = ({ className: e, children: t, ...n }) => /* @__PURE__ */ v(h, {
|
|
844
|
+
className: q("mt-auto flex flex-col gap-2", e),
|
|
847
845
|
...n,
|
|
848
|
-
children:
|
|
846
|
+
children: K(t)
|
|
849
847
|
});
|
|
850
|
-
|
|
851
|
-
var
|
|
848
|
+
Kn.displayName = "DrawerFooter";
|
|
849
|
+
var qn = e.forwardRef(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ v(F.Close, {
|
|
852
850
|
ref: r,
|
|
853
851
|
className: t,
|
|
854
852
|
...n,
|
|
855
|
-
children:
|
|
853
|
+
children: K(e)
|
|
856
854
|
}));
|
|
857
|
-
|
|
858
|
-
var
|
|
855
|
+
qn.displayName = "DrawerClose";
|
|
856
|
+
var Jn = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(F.Title, {
|
|
859
857
|
ref: r,
|
|
860
|
-
className:
|
|
858
|
+
className: q("text-foreground text-lg leading-none font-semibold tracking-tight", e),
|
|
861
859
|
...n,
|
|
862
|
-
children:
|
|
860
|
+
children: K(t)
|
|
863
861
|
}));
|
|
864
|
-
|
|
865
|
-
var
|
|
862
|
+
Jn.displayName = "DrawerTitle";
|
|
863
|
+
var Yn = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(F.Description, {
|
|
866
864
|
ref: r,
|
|
867
|
-
className:
|
|
865
|
+
className: q("text-muted-foreground text-sm", e),
|
|
868
866
|
...n,
|
|
869
|
-
children:
|
|
867
|
+
children: K(t)
|
|
870
868
|
}));
|
|
871
|
-
|
|
869
|
+
Yn.displayName = "DrawerDescription";
|
|
872
870
|
//#endregion
|
|
873
871
|
//#region src/dropdown-menu.tsx
|
|
874
|
-
var
|
|
872
|
+
var Xn = I.Root, Zn = I.Trigger, Qn = I.Portal, $n = I.Group, er = I.RadioGroup, tr = I.Sub, nr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(I.Overlay, {
|
|
875
873
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
876
874
|
ref: n,
|
|
877
875
|
...t,
|
|
878
|
-
children: /* @__PURE__ */ v(
|
|
879
|
-
entering:
|
|
880
|
-
exiting:
|
|
881
|
-
className:
|
|
876
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
877
|
+
entering: k.duration(100),
|
|
878
|
+
exiting: A.duration(100),
|
|
879
|
+
className: q("absolute inset-0 z-50 bg-black/30 backdrop-blur-md", e)
|
|
882
880
|
})
|
|
883
881
|
}));
|
|
884
|
-
|
|
885
|
-
var
|
|
882
|
+
nr.displayName = "DropdownMenuOverlay";
|
|
883
|
+
var rr = e.forwardRef(({ className: e, children: t, side: n, ...r }, i) => {
|
|
886
884
|
let a = n === "left" || n === "right" ? "bottom" : n;
|
|
887
|
-
return /* @__PURE__ */ y(
|
|
885
|
+
return /* @__PURE__ */ y(Qn, { children: [/* @__PURE__ */ v(nr, {}), /* @__PURE__ */ v(I.Content, {
|
|
888
886
|
ref: i,
|
|
889
887
|
side: a,
|
|
890
|
-
className:
|
|
888
|
+
className: q("bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
891
889
|
...r,
|
|
892
890
|
children: t
|
|
893
891
|
})] });
|
|
894
892
|
});
|
|
895
|
-
|
|
896
|
-
var X = e.forwardRef(({ className: e, children: t, inset: n, onSelect: r, ...i }, a) => c.OS === "web" ? /* @__PURE__ */ v(
|
|
893
|
+
rr.displayName = "DropdownMenuContent";
|
|
894
|
+
var X = e.forwardRef(({ className: e, children: t, inset: n, onSelect: r, ...i }, a) => c.OS === "web" ? /* @__PURE__ */ v(Le.Item, {
|
|
897
895
|
ref: a,
|
|
898
896
|
onSelect: r,
|
|
899
|
-
className:
|
|
897
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex cursor-default flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none", n && "pl-8", e),
|
|
900
898
|
...i,
|
|
901
899
|
children: t
|
|
902
|
-
}) : /* @__PURE__ */ v(
|
|
900
|
+
}) : /* @__PURE__ */ v(I.Item, {
|
|
903
901
|
ref: a,
|
|
904
902
|
onPress: () => r?.(new Event("select")),
|
|
905
|
-
className:
|
|
903
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
906
904
|
...i,
|
|
907
|
-
children:
|
|
905
|
+
children: K(t, Y)
|
|
908
906
|
}));
|
|
909
907
|
X.displayName = "DropdownMenuItem";
|
|
910
|
-
var
|
|
908
|
+
var ir = e.forwardRef(({ className: e, children: t, checked: n, onCheckedChange: r, ...i }, a) => /* @__PURE__ */ y(I.CheckboxItem, {
|
|
911
909
|
ref: a,
|
|
912
910
|
checked: !!n,
|
|
913
911
|
onCheckedChange: r || (() => {}),
|
|
914
|
-
className:
|
|
912
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none", e),
|
|
915
913
|
...i,
|
|
916
914
|
children: [/* @__PURE__ */ v(h, {
|
|
917
915
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
918
|
-
children: /* @__PURE__ */ v(
|
|
916
|
+
children: /* @__PURE__ */ v(I.ItemIndicator, { children: /* @__PURE__ */ v(C, {
|
|
919
917
|
size: 14,
|
|
920
918
|
className: "text-foreground"
|
|
921
919
|
}) })
|
|
922
|
-
}),
|
|
920
|
+
}), K(t, Y)]
|
|
923
921
|
}));
|
|
924
|
-
|
|
925
|
-
var
|
|
922
|
+
ir.displayName = "DropdownMenuCheckboxItem";
|
|
923
|
+
var ar = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @__PURE__ */ y(I.RadioItem, {
|
|
926
924
|
ref: i,
|
|
927
925
|
value: n,
|
|
928
|
-
className:
|
|
926
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none", e),
|
|
929
927
|
...r,
|
|
930
928
|
children: [/* @__PURE__ */ v(h, {
|
|
931
929
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
932
|
-
children: /* @__PURE__ */ v(
|
|
930
|
+
children: /* @__PURE__ */ v(I.ItemIndicator, { children: /* @__PURE__ */ v(E, {
|
|
933
931
|
size: 8,
|
|
934
932
|
className: "text-foreground fill-current"
|
|
935
933
|
}) })
|
|
936
|
-
}),
|
|
934
|
+
}), K(t, Y)]
|
|
937
935
|
}));
|
|
938
|
-
|
|
939
|
-
var
|
|
936
|
+
ar.displayName = "DropdownMenuRadioItem";
|
|
937
|
+
var or = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ v(I.Label, {
|
|
940
938
|
ref: i,
|
|
941
|
-
className:
|
|
939
|
+
className: q("text-foreground px-2 py-1.5 text-sm font-semibold", n && "pl-8", e),
|
|
942
940
|
...r,
|
|
943
|
-
children:
|
|
941
|
+
children: K(t, Y)
|
|
944
942
|
}));
|
|
945
|
-
|
|
946
|
-
var
|
|
943
|
+
or.displayName = "DropdownMenuLabel";
|
|
944
|
+
var sr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(I.Separator, {
|
|
947
945
|
ref: n,
|
|
948
|
-
className:
|
|
946
|
+
className: q("bg-border -mx-1 my-1 h-px", e),
|
|
949
947
|
...t
|
|
950
948
|
}));
|
|
951
|
-
|
|
952
|
-
var
|
|
953
|
-
className:
|
|
949
|
+
sr.displayName = "DropdownMenuSeparator";
|
|
950
|
+
var cr = ({ className: e, children: t, ...n }) => /* @__PURE__ */ v(Y, {
|
|
951
|
+
className: q("text-muted-foreground ml-auto text-xs tracking-widest", e),
|
|
954
952
|
...n,
|
|
955
953
|
children: t
|
|
956
954
|
});
|
|
957
|
-
|
|
958
|
-
var
|
|
955
|
+
cr.displayName = "DropdownMenuShortcut";
|
|
956
|
+
var lr = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ y(I.SubTrigger, {
|
|
959
957
|
ref: i,
|
|
960
|
-
className:
|
|
958
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
961
959
|
...r,
|
|
962
960
|
children: [/* @__PURE__ */ v(h, {
|
|
963
961
|
className: "flex flex-row items-center gap-1.5",
|
|
964
|
-
children:
|
|
962
|
+
children: K(t, Y)
|
|
965
963
|
}), /* @__PURE__ */ v(T, {
|
|
966
964
|
size: 14,
|
|
967
965
|
className: "text-foreground ml-auto"
|
|
968
966
|
})]
|
|
969
967
|
}));
|
|
970
|
-
|
|
971
|
-
var
|
|
968
|
+
lr.displayName = "DropdownMenuSubTrigger";
|
|
969
|
+
var ur = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(I.SubContent, {
|
|
972
970
|
ref: r,
|
|
973
|
-
className:
|
|
971
|
+
className: q("bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
974
972
|
...n,
|
|
975
973
|
children: t
|
|
976
974
|
}));
|
|
977
|
-
|
|
975
|
+
ur.displayName = "DropdownMenuSubContent";
|
|
978
976
|
//#endregion
|
|
979
977
|
//#region src/label.tsx
|
|
980
|
-
var
|
|
978
|
+
var dr = e.forwardRef(({ className: e, onPress: t, onLongPress: n, onPressIn: r, onPressOut: i, ...a }, o) => /* @__PURE__ */ v(Ve.Root, {
|
|
981
979
|
className: "web:cursor-default",
|
|
982
980
|
onPress: t,
|
|
983
981
|
onLongPress: n,
|
|
984
982
|
onPressIn: r,
|
|
985
983
|
onPressOut: i,
|
|
986
|
-
children: /* @__PURE__ */ v(
|
|
984
|
+
children: /* @__PURE__ */ v(Ve.Text, {
|
|
987
985
|
ref: o,
|
|
988
|
-
className:
|
|
986
|
+
className: q("text-foreground native:text-base web:peer-disabled:cursor-not-allowed web:peer-disabled:opacity-70 text-sm leading-none font-medium", e),
|
|
989
987
|
...a
|
|
990
988
|
})
|
|
991
989
|
}));
|
|
992
|
-
|
|
990
|
+
dr.displayName = Ve.Root?.displayName || "Label";
|
|
993
991
|
//#endregion
|
|
994
992
|
//#region src/form.tsx
|
|
995
|
-
var
|
|
993
|
+
var fr = ze, pr = e.createContext(null), mr = ({ ...e }) => /* @__PURE__ */ v(pr.Provider, {
|
|
996
994
|
value: { name: e.name },
|
|
997
|
-
children: /* @__PURE__ */ v(
|
|
995
|
+
children: /* @__PURE__ */ v(Re, { ...e })
|
|
998
996
|
}), Z = () => {
|
|
999
|
-
let t = e.useContext(
|
|
997
|
+
let t = e.useContext(pr), n = e.useContext(hr), { getFieldState: r, formState: i } = Be();
|
|
1000
998
|
if (!t) throw Error("useFormField should be used within <FormField>");
|
|
1001
999
|
if (!n) throw Error("useFormField should be used within <FormItem>");
|
|
1002
1000
|
let a = r(t.name, i), { id: o } = n;
|
|
@@ -1008,31 +1006,31 @@ var cr = Ie, lr = e.createContext(null), ur = ({ ...e }) => /* @__PURE__ */ v(lr
|
|
|
1008
1006
|
formMessageId: `${o}-form-item-message`,
|
|
1009
1007
|
...a
|
|
1010
1008
|
};
|
|
1011
|
-
},
|
|
1009
|
+
}, hr = e.createContext(null), gr = e.forwardRef(({ className: t, ...n }, r) => {
|
|
1012
1010
|
let i = e.useId();
|
|
1013
|
-
return /* @__PURE__ */ v(
|
|
1011
|
+
return /* @__PURE__ */ v(hr.Provider, {
|
|
1014
1012
|
value: { id: i },
|
|
1015
1013
|
children: /* @__PURE__ */ v(h, {
|
|
1016
1014
|
ref: r,
|
|
1017
|
-
className:
|
|
1015
|
+
className: q("space-y-2", t),
|
|
1018
1016
|
...n
|
|
1019
1017
|
})
|
|
1020
1018
|
});
|
|
1021
1019
|
});
|
|
1022
|
-
|
|
1023
|
-
var
|
|
1020
|
+
gr.displayName = "FormItem";
|
|
1021
|
+
var _r = e.forwardRef(({ className: e, ...t }, n) => {
|
|
1024
1022
|
let { error: r, formItemId: i } = Z();
|
|
1025
|
-
return /* @__PURE__ */ v(
|
|
1023
|
+
return /* @__PURE__ */ v(dr, {
|
|
1026
1024
|
ref: n,
|
|
1027
|
-
className:
|
|
1025
|
+
className: q(r && "text-destructive", e),
|
|
1028
1026
|
nativeID: i,
|
|
1029
1027
|
...t
|
|
1030
1028
|
});
|
|
1031
1029
|
});
|
|
1032
|
-
|
|
1033
|
-
var
|
|
1030
|
+
_r.displayName = "FormLabel";
|
|
1031
|
+
var vr = e.forwardRef(({ ...e }, t) => {
|
|
1034
1032
|
let { error: n, formItemId: r, formDescriptionId: i, formMessageId: a } = Z();
|
|
1035
|
-
return /* @__PURE__ */ v(
|
|
1033
|
+
return /* @__PURE__ */ v(Me.Slot, {
|
|
1036
1034
|
ref: t,
|
|
1037
1035
|
nativeID: r,
|
|
1038
1036
|
"aria-describedby": n ? `${i} ${a}` : `${i}`,
|
|
@@ -1040,264 +1038,264 @@ var mr = e.forwardRef(({ ...e }, t) => {
|
|
|
1040
1038
|
...e
|
|
1041
1039
|
});
|
|
1042
1040
|
});
|
|
1043
|
-
|
|
1044
|
-
var
|
|
1041
|
+
vr.displayName = "FormControl";
|
|
1042
|
+
var yr = e.forwardRef(({ className: e, ...t }, n) => {
|
|
1045
1043
|
let { formDescriptionId: r } = Z();
|
|
1046
1044
|
return /* @__PURE__ */ v(f, {
|
|
1047
1045
|
ref: n,
|
|
1048
1046
|
nativeID: r,
|
|
1049
|
-
className:
|
|
1047
|
+
className: q("text-muted-foreground text-[13px]", e),
|
|
1050
1048
|
...t
|
|
1051
1049
|
});
|
|
1052
1050
|
});
|
|
1053
|
-
|
|
1054
|
-
var
|
|
1051
|
+
yr.displayName = "FormDescription";
|
|
1052
|
+
var br = e.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
1055
1053
|
let { error: i, formMessageId: a } = Z(), o = i ? String(i?.message ?? "") : t;
|
|
1056
1054
|
return o ? /* @__PURE__ */ v(f, {
|
|
1057
1055
|
ref: r,
|
|
1058
1056
|
nativeID: a,
|
|
1059
|
-
className:
|
|
1057
|
+
className: q("text-destructive text-[13px] font-medium", e),
|
|
1060
1058
|
...n,
|
|
1061
1059
|
children: o
|
|
1062
1060
|
}) : null;
|
|
1063
1061
|
});
|
|
1064
|
-
|
|
1062
|
+
br.displayName = "FormMessage";
|
|
1065
1063
|
//#endregion
|
|
1066
1064
|
//#region src/hover-card.tsx
|
|
1067
|
-
var
|
|
1065
|
+
var xr = L.Root, Sr = L.Trigger, Cr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(L.Portal, { children: /* @__PURE__ */ v(L.Content, {
|
|
1068
1066
|
ref: r,
|
|
1069
|
-
className:
|
|
1067
|
+
className: q("bg-popover text-popover-foreground border-border z-50 w-64 rounded-md border p-4 shadow-md", e),
|
|
1070
1068
|
...n,
|
|
1071
1069
|
children: t
|
|
1072
1070
|
}) }));
|
|
1073
|
-
|
|
1071
|
+
Cr.displayName = L.Content?.displayName || "HoverCardContent";
|
|
1074
1072
|
//#endregion
|
|
1075
1073
|
//#region src/input.tsx
|
|
1076
|
-
var
|
|
1074
|
+
var wr = e.forwardRef(({ className: e, placeholderClassName: t, ...n }, r) => /* @__PURE__ */ v(p, {
|
|
1077
1075
|
ref: r,
|
|
1078
|
-
className:
|
|
1079
|
-
placeholderClassName:
|
|
1076
|
+
className: q("border-input text-foreground placeholder:text-muted-foreground focus:border-ring flex h-10 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm transition-colors disabled:opacity-50", e),
|
|
1077
|
+
placeholderClassName: q("text-muted-foreground", t),
|
|
1080
1078
|
...n
|
|
1081
1079
|
}));
|
|
1082
|
-
|
|
1080
|
+
wr.displayName = "Input";
|
|
1083
1081
|
//#endregion
|
|
1084
1082
|
//#region src/menubar.tsx
|
|
1085
|
-
var
|
|
1083
|
+
var Tr = e.forwardRef(({ className: t, children: n, value: r, onValueChange: i, ...a }, o) => {
|
|
1086
1084
|
let [s, c] = e.useState(r || ""), l = r === void 0 ? s : r;
|
|
1087
|
-
return /* @__PURE__ */ v(
|
|
1085
|
+
return /* @__PURE__ */ v(R.Root, {
|
|
1088
1086
|
ref: o,
|
|
1089
1087
|
value: l,
|
|
1090
1088
|
onValueChange: (e) => {
|
|
1091
1089
|
c(e), i?.(e || "");
|
|
1092
1090
|
},
|
|
1093
|
-
className:
|
|
1091
|
+
className: q("bg-background border-border flex flex-row items-center space-x-1 rounded-md border p-1 shadow-sm", t),
|
|
1094
1092
|
...a,
|
|
1095
1093
|
children: n
|
|
1096
1094
|
});
|
|
1097
1095
|
});
|
|
1098
|
-
|
|
1099
|
-
var
|
|
1096
|
+
Tr.displayName = "Menubar";
|
|
1097
|
+
var Er = R.Menu, Dr = R.Portal, Or = R.Group, kr = R.RadioGroup, Ar = R.Sub, jr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(R.Overlay, {
|
|
1100
1098
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
1101
1099
|
ref: n,
|
|
1102
1100
|
...t,
|
|
1103
|
-
children: /* @__PURE__ */ v(
|
|
1104
|
-
entering:
|
|
1105
|
-
exiting:
|
|
1106
|
-
className:
|
|
1101
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
1102
|
+
entering: k.duration(100),
|
|
1103
|
+
exiting: A.duration(100),
|
|
1104
|
+
className: q("absolute inset-0 z-50 bg-black/30", e)
|
|
1107
1105
|
})
|
|
1108
1106
|
}));
|
|
1109
|
-
|
|
1110
|
-
var
|
|
1107
|
+
jr.displayName = "MenubarOverlay";
|
|
1108
|
+
var Mr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(R.Trigger, {
|
|
1111
1109
|
ref: r,
|
|
1112
|
-
className:
|
|
1110
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none", e),
|
|
1113
1111
|
...n,
|
|
1114
|
-
children:
|
|
1112
|
+
children: K(t, Y)
|
|
1115
1113
|
}));
|
|
1116
|
-
|
|
1117
|
-
var
|
|
1114
|
+
Mr.displayName = "MenubarTrigger";
|
|
1115
|
+
var Nr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ y(Dr, { children: [/* @__PURE__ */ v(jr, {}), /* @__PURE__ */ v(R.Content, {
|
|
1118
1116
|
ref: r,
|
|
1119
|
-
className:
|
|
1117
|
+
className: q("bg-popover border-border z-50 min-w-[12rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
1120
1118
|
...n,
|
|
1121
1119
|
children: t
|
|
1122
1120
|
})] }));
|
|
1123
|
-
|
|
1124
|
-
var
|
|
1121
|
+
Nr.displayName = "MenubarContent";
|
|
1122
|
+
var Pr = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ v(R.Item, {
|
|
1125
1123
|
ref: i,
|
|
1126
|
-
className:
|
|
1124
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
1127
1125
|
...r,
|
|
1128
|
-
children:
|
|
1126
|
+
children: K(t, Y)
|
|
1129
1127
|
}));
|
|
1130
|
-
|
|
1131
|
-
var
|
|
1128
|
+
Pr.displayName = "MenubarItem";
|
|
1129
|
+
var Fr = e.forwardRef(({ className: e, children: t, checked: n, onCheckedChange: r, ...i }, a) => /* @__PURE__ */ y(R.CheckboxItem, {
|
|
1132
1130
|
ref: a,
|
|
1133
1131
|
checked: !!n,
|
|
1134
1132
|
onCheckedChange: r || (() => {}),
|
|
1135
|
-
className:
|
|
1133
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none", e),
|
|
1136
1134
|
...i,
|
|
1137
1135
|
children: [/* @__PURE__ */ v(h, {
|
|
1138
1136
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1139
|
-
children: /* @__PURE__ */ v(
|
|
1137
|
+
children: /* @__PURE__ */ v(R.ItemIndicator, { children: /* @__PURE__ */ v(C, {
|
|
1140
1138
|
size: 14,
|
|
1141
1139
|
className: "text-foreground"
|
|
1142
1140
|
}) })
|
|
1143
|
-
}),
|
|
1141
|
+
}), K(t, Y)]
|
|
1144
1142
|
}));
|
|
1145
|
-
|
|
1146
|
-
var
|
|
1143
|
+
Fr.displayName = "MenubarCheckboxItem";
|
|
1144
|
+
var Ir = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @__PURE__ */ y(R.RadioItem, {
|
|
1147
1145
|
ref: i,
|
|
1148
1146
|
value: n,
|
|
1149
|
-
className:
|
|
1147
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none", e),
|
|
1150
1148
|
...r,
|
|
1151
1149
|
children: [/* @__PURE__ */ v(h, {
|
|
1152
1150
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1153
|
-
children: /* @__PURE__ */ v(
|
|
1151
|
+
children: /* @__PURE__ */ v(R.ItemIndicator, { children: /* @__PURE__ */ v(E, {
|
|
1154
1152
|
size: 8,
|
|
1155
1153
|
className: "text-foreground fill-current"
|
|
1156
1154
|
}) })
|
|
1157
|
-
}),
|
|
1155
|
+
}), K(t, Y)]
|
|
1158
1156
|
}));
|
|
1159
|
-
|
|
1160
|
-
var
|
|
1157
|
+
Ir.displayName = "MenubarRadioItem";
|
|
1158
|
+
var Lr = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ v(R.Label, {
|
|
1161
1159
|
ref: i,
|
|
1162
|
-
className:
|
|
1160
|
+
className: q("text-foreground px-2 py-1.5 text-sm font-semibold", n && "pl-8", e),
|
|
1163
1161
|
...r,
|
|
1164
|
-
children:
|
|
1162
|
+
children: K(t, Y)
|
|
1165
1163
|
}));
|
|
1166
|
-
|
|
1167
|
-
var
|
|
1164
|
+
Lr.displayName = "MenubarLabel";
|
|
1165
|
+
var Rr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(R.Separator, {
|
|
1168
1166
|
ref: n,
|
|
1169
|
-
className:
|
|
1167
|
+
className: q("bg-border -mx-1 my-1 h-px", e),
|
|
1170
1168
|
...t
|
|
1171
1169
|
}));
|
|
1172
|
-
|
|
1173
|
-
var
|
|
1174
|
-
className:
|
|
1170
|
+
Rr.displayName = "MenubarSeparator";
|
|
1171
|
+
var zr = ({ className: e, children: t, ...n }) => /* @__PURE__ */ v(Y, {
|
|
1172
|
+
className: q("text-muted-foreground ml-auto text-xs tracking-widest", e),
|
|
1175
1173
|
...n,
|
|
1176
1174
|
children: t
|
|
1177
1175
|
});
|
|
1178
|
-
|
|
1179
|
-
var
|
|
1176
|
+
zr.displayName = "MenubarShortcut";
|
|
1177
|
+
var Br = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ y(R.SubTrigger, {
|
|
1180
1178
|
ref: i,
|
|
1181
|
-
className:
|
|
1179
|
+
className: q("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
1182
1180
|
...r,
|
|
1183
1181
|
children: [/* @__PURE__ */ v(h, {
|
|
1184
1182
|
className: "flex flex-row items-center gap-1.5",
|
|
1185
|
-
children:
|
|
1183
|
+
children: K(t, Y)
|
|
1186
1184
|
}), /* @__PURE__ */ v(T, {
|
|
1187
1185
|
size: 14,
|
|
1188
1186
|
className: "text-foreground ml-auto"
|
|
1189
1187
|
})]
|
|
1190
1188
|
}));
|
|
1191
|
-
|
|
1192
|
-
var
|
|
1189
|
+
Br.displayName = "MenubarSubTrigger";
|
|
1190
|
+
var Vr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(R.SubContent, {
|
|
1193
1191
|
ref: r,
|
|
1194
|
-
className:
|
|
1192
|
+
className: q("bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
1195
1193
|
...n,
|
|
1196
1194
|
children: t
|
|
1197
1195
|
}));
|
|
1198
|
-
|
|
1196
|
+
Vr.displayName = "MenubarSubContent";
|
|
1199
1197
|
//#endregion
|
|
1200
1198
|
//#region src/navigation-menu.tsx
|
|
1201
|
-
var
|
|
1199
|
+
var Hr = e.forwardRef(({ className: e, children: t, value: n, onValueChange: r, dir: i, orientation: a, delayDuration: o, skipDelayDuration: s, ...c }, l) => /* @__PURE__ */ v(z.Root, {
|
|
1202
1200
|
ref: l,
|
|
1203
1201
|
value: n,
|
|
1204
1202
|
onValueChange: r ? (e) => r(e || "") : () => {},
|
|
1205
1203
|
delayDuration: o,
|
|
1206
1204
|
skipDelayDuration: s,
|
|
1207
|
-
className:
|
|
1205
|
+
className: q("relative z-10 flex flex-row items-center justify-center", e),
|
|
1208
1206
|
...c,
|
|
1209
1207
|
children: t
|
|
1210
1208
|
}));
|
|
1211
|
-
|
|
1212
|
-
var
|
|
1209
|
+
Hr.displayName = "NavigationMenu";
|
|
1210
|
+
var Ur = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(z.List, {
|
|
1213
1211
|
ref: r,
|
|
1214
|
-
className:
|
|
1212
|
+
className: q("group flex flex-1 list-none flex-row items-center justify-center gap-1", e),
|
|
1215
1213
|
...n,
|
|
1216
1214
|
children: t
|
|
1217
1215
|
}));
|
|
1218
|
-
|
|
1219
|
-
var
|
|
1216
|
+
Ur.displayName = "NavigationMenuList";
|
|
1217
|
+
var Wr = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @__PURE__ */ v(z.Item, {
|
|
1220
1218
|
ref: i,
|
|
1221
1219
|
value: n || "",
|
|
1222
|
-
className:
|
|
1220
|
+
className: q("relative", e),
|
|
1223
1221
|
...r,
|
|
1224
1222
|
children: t
|
|
1225
1223
|
}));
|
|
1226
|
-
|
|
1227
|
-
var
|
|
1224
|
+
Wr.displayName = "NavigationMenuItem";
|
|
1225
|
+
var Gr = e.forwardRef(({ className: e, children: t, disabled: n, ...r }, i) => /* @__PURE__ */ y(z.Trigger, {
|
|
1228
1226
|
ref: i,
|
|
1229
1227
|
disabled: n,
|
|
1230
|
-
className:
|
|
1228
|
+
className: q("group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center justify-center gap-1 rounded-md px-4 py-2 text-sm font-medium transition-colors disabled:opacity-50", e),
|
|
1231
1229
|
...r,
|
|
1232
1230
|
children: [/* @__PURE__ */ v(_, { children: t }), /* @__PURE__ */ v(w, {
|
|
1233
1231
|
size: 12,
|
|
1234
1232
|
className: "text-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-180"
|
|
1235
1233
|
})]
|
|
1236
1234
|
}));
|
|
1237
|
-
|
|
1238
|
-
var
|
|
1235
|
+
Gr.displayName = "NavigationMenuTrigger";
|
|
1236
|
+
var Kr = e.forwardRef(({ className: e, children: t, forceMount: n, ...r }, i) => /* @__PURE__ */ v(z.Portal, { children: /* @__PURE__ */ v(z.Content, {
|
|
1239
1237
|
ref: i,
|
|
1240
1238
|
...r,
|
|
1241
|
-
children: /* @__PURE__ */ v(
|
|
1242
|
-
entering:
|
|
1243
|
-
exiting:
|
|
1244
|
-
className:
|
|
1239
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
1240
|
+
entering: k.duration(150),
|
|
1241
|
+
exiting: A.duration(150),
|
|
1242
|
+
className: q("bg-popover border-border z-50 overflow-hidden rounded-md border p-4 shadow-md", e),
|
|
1245
1243
|
children: t
|
|
1246
1244
|
})
|
|
1247
1245
|
}) }));
|
|
1248
|
-
|
|
1249
|
-
var
|
|
1246
|
+
Kr.displayName = "NavigationMenuContent";
|
|
1247
|
+
var qr = e.forwardRef(({ className: e, children: t, active: n, onSelect: r, onPress: i, href: a, ...o }, s) => /* @__PURE__ */ v(z.Link, {
|
|
1250
1248
|
ref: s,
|
|
1251
1249
|
active: n,
|
|
1252
1250
|
onPress: (e) => {
|
|
1253
1251
|
i && i(), r && r(e);
|
|
1254
1252
|
},
|
|
1255
|
-
className:
|
|
1253
|
+
className: q("hover:bg-accent hover:text-accent-foreground active:bg-accent active:text-accent-foreground rounded-md px-3 py-2 text-sm font-medium transition-colors", n && "bg-accent text-accent-foreground", e),
|
|
1256
1254
|
...o,
|
|
1257
1255
|
children: t
|
|
1258
1256
|
}));
|
|
1259
|
-
|
|
1260
|
-
var
|
|
1257
|
+
qr.displayName = "NavigationMenuLink";
|
|
1258
|
+
var Jr = e.forwardRef(({ className: e, forceMount: t, ...n }, r) => /* @__PURE__ */ v(h, {
|
|
1261
1259
|
className: "absolute top-full left-0 flex justify-center",
|
|
1262
|
-
children: /* @__PURE__ */ v(
|
|
1260
|
+
children: /* @__PURE__ */ v(z.Viewport, {
|
|
1263
1261
|
ref: r,
|
|
1264
|
-
className:
|
|
1262
|
+
className: q("origin-top-center bg-popover text-popover-foreground border-border relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow-lg md:w-[var(--radix-navigation-menu-viewport-width)]", e),
|
|
1265
1263
|
...n
|
|
1266
1264
|
})
|
|
1267
1265
|
}));
|
|
1268
|
-
|
|
1269
|
-
var
|
|
1266
|
+
Jr.displayName = "NavigationMenuViewport";
|
|
1267
|
+
var Yr = e.forwardRef(({ className: e, forceMount: t, ...n }, r) => /* @__PURE__ */ v(z.Indicator, {
|
|
1270
1268
|
ref: r,
|
|
1271
|
-
className:
|
|
1269
|
+
className: q("z-10 flex h-1.5 items-end justify-center overflow-hidden transition-all duration-200", e),
|
|
1272
1270
|
...n,
|
|
1273
1271
|
children: /* @__PURE__ */ v(h, { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
1274
1272
|
}));
|
|
1275
|
-
|
|
1273
|
+
Yr.displayName = "NavigationMenuIndicator";
|
|
1276
1274
|
//#endregion
|
|
1277
1275
|
//#region src/pagination.tsx
|
|
1278
|
-
var
|
|
1276
|
+
var Xr = ({ className: e, children: t, ...n }) => /* @__PURE__ */ v(h, {
|
|
1279
1277
|
role: "navigation",
|
|
1280
1278
|
"aria-label": "pagination",
|
|
1281
|
-
className:
|
|
1279
|
+
className: q("mx-auto flex w-full flex-row justify-center", e),
|
|
1282
1280
|
...n,
|
|
1283
1281
|
children: t
|
|
1284
1282
|
});
|
|
1285
|
-
|
|
1286
|
-
var
|
|
1283
|
+
Xr.displayName = "Pagination";
|
|
1284
|
+
var Zr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(h, {
|
|
1287
1285
|
ref: r,
|
|
1288
|
-
className:
|
|
1286
|
+
className: q("flex flex-row items-center gap-1", e),
|
|
1289
1287
|
...n,
|
|
1290
1288
|
children: t
|
|
1291
1289
|
}));
|
|
1292
|
-
|
|
1293
|
-
var
|
|
1290
|
+
Zr.displayName = "PaginationContent";
|
|
1291
|
+
var Qr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(h, {
|
|
1294
1292
|
ref: r,
|
|
1295
|
-
className:
|
|
1293
|
+
className: q("", e),
|
|
1296
1294
|
...n,
|
|
1297
1295
|
children: t
|
|
1298
1296
|
}));
|
|
1299
|
-
|
|
1300
|
-
var
|
|
1297
|
+
Qr.displayName = "PaginationItem";
|
|
1298
|
+
var $r = ({ className: e, isActive: t, size: n = "icon", children: r, onPress: i, ...a }) => /* @__PURE__ */ v(J, {
|
|
1301
1299
|
variant: t ? "outline" : "ghost",
|
|
1302
1300
|
size: n,
|
|
1303
1301
|
onPress: i,
|
|
@@ -1305,29 +1303,29 @@ var Yr = ({ className: e, isActive: t, size: n = "icon", children: r, onPress: i
|
|
|
1305
1303
|
...a,
|
|
1306
1304
|
children: r
|
|
1307
1305
|
});
|
|
1308
|
-
|
|
1309
|
-
var
|
|
1306
|
+
$r.displayName = "PaginationLink";
|
|
1307
|
+
var ei = ({ className: e, children: t, onPress: n, ...r }) => /* @__PURE__ */ y($r, {
|
|
1310
1308
|
"aria-label": "Go to previous page",
|
|
1311
1309
|
size: "default",
|
|
1312
|
-
className:
|
|
1310
|
+
className: q("flex flex-row items-center gap-1 pl-2.5", e),
|
|
1313
1311
|
onPress: n,
|
|
1314
1312
|
...r,
|
|
1315
1313
|
children: [/* @__PURE__ */ v(re, {
|
|
1316
1314
|
size: 16,
|
|
1317
1315
|
className: "text-foreground"
|
|
1318
|
-
}), /* @__PURE__ */ v(
|
|
1316
|
+
}), /* @__PURE__ */ v(Y, {
|
|
1319
1317
|
className: "text-sm font-medium",
|
|
1320
1318
|
children: "Previous"
|
|
1321
1319
|
})]
|
|
1322
1320
|
});
|
|
1323
|
-
|
|
1324
|
-
var
|
|
1321
|
+
ei.displayName = "PaginationPrevious";
|
|
1322
|
+
var ti = ({ className: e, children: t, onPress: n, ...r }) => /* @__PURE__ */ y($r, {
|
|
1325
1323
|
"aria-label": "Go to next page",
|
|
1326
1324
|
size: "default",
|
|
1327
|
-
className:
|
|
1325
|
+
className: q("flex flex-row items-center gap-1 pr-2.5", e),
|
|
1328
1326
|
onPress: n,
|
|
1329
1327
|
...r,
|
|
1330
|
-
children: [/* @__PURE__ */ v(
|
|
1328
|
+
children: [/* @__PURE__ */ v(Y, {
|
|
1331
1329
|
className: "text-sm font-medium",
|
|
1332
1330
|
children: "Next"
|
|
1333
1331
|
}), /* @__PURE__ */ v(T, {
|
|
@@ -1335,25 +1333,25 @@ var Zr = ({ className: e, children: t, onPress: n, ...r }) => /* @__PURE__ */ y(
|
|
|
1335
1333
|
className: "text-foreground"
|
|
1336
1334
|
})]
|
|
1337
1335
|
});
|
|
1338
|
-
|
|
1339
|
-
var
|
|
1336
|
+
ti.displayName = "PaginationNext";
|
|
1337
|
+
var ni = ({ className: e, ...t }) => /* @__PURE__ */ v(h, {
|
|
1340
1338
|
"aria-hidden": !0,
|
|
1341
|
-
className:
|
|
1339
|
+
className: q("flex h-9 w-9 flex-row items-center justify-center", e),
|
|
1342
1340
|
...t,
|
|
1343
|
-
children: /* @__PURE__ */ v(
|
|
1341
|
+
children: /* @__PURE__ */ v(ce, {
|
|
1344
1342
|
size: 16,
|
|
1345
1343
|
className: "text-foreground"
|
|
1346
1344
|
})
|
|
1347
1345
|
});
|
|
1348
|
-
|
|
1346
|
+
ni.displayName = "PaginationEllipsis";
|
|
1349
1347
|
//#endregion
|
|
1350
1348
|
//#region src/popover.tsx
|
|
1351
|
-
var
|
|
1349
|
+
var ri = e.createContext({
|
|
1352
1350
|
open: !1,
|
|
1353
1351
|
setOpen: () => {}
|
|
1354
|
-
}),
|
|
1352
|
+
}), ii = e.forwardRef(({ children: t, open: n, onOpenChange: r, ...i }, a) => {
|
|
1355
1353
|
let [o, s] = e.useState(!1), c = n !== void 0, l = c ? n : o, u = c ? r || (() => {}) : s;
|
|
1356
|
-
return /* @__PURE__ */ v(
|
|
1354
|
+
return /* @__PURE__ */ v(ri.Provider, {
|
|
1357
1355
|
value: {
|
|
1358
1356
|
open: l,
|
|
1359
1357
|
setOpen: u
|
|
@@ -1365,9 +1363,9 @@ var $r = e.createContext({
|
|
|
1365
1363
|
})
|
|
1366
1364
|
});
|
|
1367
1365
|
});
|
|
1368
|
-
|
|
1369
|
-
var
|
|
1370
|
-
let { setOpen: i } = e.useContext(
|
|
1366
|
+
ii.displayName = "Popover";
|
|
1367
|
+
var ai = e.forwardRef(({ children: t, ...n }, r) => {
|
|
1368
|
+
let { setOpen: i } = e.useContext(ri);
|
|
1371
1369
|
return /* @__PURE__ */ v(l, {
|
|
1372
1370
|
ref: r,
|
|
1373
1371
|
onPress: () => i(!0),
|
|
@@ -1375,14 +1373,14 @@ var ti = e.forwardRef(({ children: t, ...n }, r) => {
|
|
|
1375
1373
|
children: t
|
|
1376
1374
|
});
|
|
1377
1375
|
});
|
|
1378
|
-
|
|
1379
|
-
var
|
|
1376
|
+
ai.displayName = "PopoverTrigger";
|
|
1377
|
+
var oi = e.forwardRef(({ ...e }, t) => /* @__PURE__ */ v(h, {
|
|
1380
1378
|
ref: t,
|
|
1381
1379
|
...e
|
|
1382
1380
|
}));
|
|
1383
|
-
|
|
1384
|
-
var
|
|
1385
|
-
let { open: a, setOpen: o } = e.useContext(
|
|
1381
|
+
oi.displayName = "PopoverAnchor";
|
|
1382
|
+
var si = e.forwardRef(({ className: t, children: n, ...r }, i) => {
|
|
1383
|
+
let { open: a, setOpen: o } = e.useContext(ri);
|
|
1386
1384
|
return /* @__PURE__ */ v(s, {
|
|
1387
1385
|
visible: a,
|
|
1388
1386
|
transparent: !0,
|
|
@@ -1397,7 +1395,7 @@ var ri = e.forwardRef(({ className: t, children: n, ...r }, i) => {
|
|
|
1397
1395
|
onPress: () => {},
|
|
1398
1396
|
children: /* @__PURE__ */ v(h, {
|
|
1399
1397
|
ref: i,
|
|
1400
|
-
className:
|
|
1398
|
+
className: q("bg-popover border-border mx-4 w-full max-w-sm rounded-md border p-4 shadow-lg", t),
|
|
1401
1399
|
...r,
|
|
1402
1400
|
children: n
|
|
1403
1401
|
})
|
|
@@ -1406,12 +1404,12 @@ var ri = e.forwardRef(({ className: t, children: n, ...r }, i) => {
|
|
|
1406
1404
|
})
|
|
1407
1405
|
});
|
|
1408
1406
|
});
|
|
1409
|
-
|
|
1407
|
+
si.displayName = "PopoverContent";
|
|
1410
1408
|
//#endregion
|
|
1411
1409
|
//#region src/progress.tsx
|
|
1412
|
-
var
|
|
1410
|
+
var ci = e.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */ v(h, {
|
|
1413
1411
|
ref: r,
|
|
1414
|
-
className:
|
|
1412
|
+
className: q("bg-muted relative h-2 w-full overflow-hidden rounded-full", e),
|
|
1415
1413
|
accessibilityRole: "progressbar",
|
|
1416
1414
|
role: "progressbar",
|
|
1417
1415
|
...n,
|
|
@@ -1420,49 +1418,49 @@ var ii = e.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */ v
|
|
|
1420
1418
|
style: { width: `${t || 0}%` }
|
|
1421
1419
|
})
|
|
1422
1420
|
}));
|
|
1423
|
-
|
|
1421
|
+
ci.displayName = "Progress";
|
|
1424
1422
|
//#endregion
|
|
1425
1423
|
//#region src/radio-group.tsx
|
|
1426
|
-
var
|
|
1427
|
-
className:
|
|
1424
|
+
var li = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(B.Root, {
|
|
1425
|
+
className: q("web:grid gap-2", e),
|
|
1428
1426
|
...t,
|
|
1429
1427
|
ref: n
|
|
1430
1428
|
}));
|
|
1431
|
-
|
|
1432
|
-
var
|
|
1429
|
+
li.displayName = B.Root?.displayName || "RadioGroup";
|
|
1430
|
+
var ui = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(B.Item, {
|
|
1433
1431
|
ref: n,
|
|
1434
|
-
className:
|
|
1432
|
+
className: q("native:h-5 native:w-5 border-primary text-primary web:ring-offset-background web:focus:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 aspect-square h-4 w-4 rounded-full border", t.disabled && "web:cursor-not-allowed opacity-50", e),
|
|
1435
1433
|
...t,
|
|
1436
|
-
children: /* @__PURE__ */ v(
|
|
1434
|
+
children: /* @__PURE__ */ v(B.Indicator, {
|
|
1437
1435
|
className: "flex items-center justify-center",
|
|
1438
|
-
children: /* @__PURE__ */ v(
|
|
1436
|
+
children: /* @__PURE__ */ v(E, { className: "h-2.5 w-2.5 fill-current text-current" })
|
|
1439
1437
|
})
|
|
1440
1438
|
}));
|
|
1441
|
-
|
|
1439
|
+
ui.displayName = B.Item?.displayName || "RadioGroupItem";
|
|
1442
1440
|
//#endregion
|
|
1443
1441
|
//#region src/resizable.tsx
|
|
1444
|
-
var
|
|
1442
|
+
var di = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
1445
1443
|
className: t,
|
|
1446
1444
|
children: e
|
|
1447
|
-
}),
|
|
1445
|
+
}), fi = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
1448
1446
|
className: t,
|
|
1449
1447
|
children: e
|
|
1450
|
-
}),
|
|
1448
|
+
}), pi = ({ className: e }) => /* @__PURE__ */ v(h, { className: e }), mi = e.forwardRef(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ v(u, {
|
|
1451
1449
|
ref: r,
|
|
1452
|
-
className:
|
|
1450
|
+
className: q("flex-1", t),
|
|
1453
1451
|
showsVerticalScrollIndicator: !0,
|
|
1454
1452
|
showsHorizontalScrollIndicator: !0,
|
|
1455
1453
|
...n,
|
|
1456
1454
|
children: /* @__PURE__ */ v(h, { children: e })
|
|
1457
1455
|
}));
|
|
1458
|
-
|
|
1459
|
-
var
|
|
1460
|
-
|
|
1456
|
+
mi.displayName = "ScrollArea";
|
|
1457
|
+
var hi = () => null;
|
|
1458
|
+
hi.displayName = "ScrollBar";
|
|
1461
1459
|
//#endregion
|
|
1462
1460
|
//#region src/search.tsx
|
|
1463
|
-
function
|
|
1461
|
+
function gi({ children: t, open: n, onOpenChange: r }) {
|
|
1464
1462
|
let [i, a] = e.useState(!1), o = n !== void 0;
|
|
1465
|
-
return /* @__PURE__ */ v(
|
|
1463
|
+
return /* @__PURE__ */ v(An, {
|
|
1466
1464
|
open: o ? n : i,
|
|
1467
1465
|
onOpenChange: e.useCallback((e) => {
|
|
1468
1466
|
o ? r?.(e) : a(e);
|
|
@@ -1470,24 +1468,24 @@ function fi({ children: t, open: n, onOpenChange: r }) {
|
|
|
1470
1468
|
children: t
|
|
1471
1469
|
});
|
|
1472
1470
|
}
|
|
1473
|
-
var
|
|
1471
|
+
var _i = e.forwardRef(({ className: e, placeholder: t, variant: n = "default", responsive: r = !1, ...i }, a) => {
|
|
1474
1472
|
let o = t || (n === "compact" ? "Search..." : "Search docs...");
|
|
1475
|
-
return /* @__PURE__ */ y(
|
|
1473
|
+
return /* @__PURE__ */ y(J, {
|
|
1476
1474
|
variant: "outline",
|
|
1477
|
-
className:
|
|
1475
|
+
className: q("relative h-12 flex-row justify-start pl-3 text-sm transition-all sm:h-9", n === "default" ? "w-full pr-12" : q("w-12 px-0 sm:w-9 sm:justify-center", r && "md:w-48 md:justify-start md:px-3 md:pr-12"), e),
|
|
1478
1476
|
ref: a,
|
|
1479
1477
|
...i,
|
|
1480
1478
|
children: [/* @__PURE__ */ y(h, {
|
|
1481
1479
|
className: "flex-row items-center gap-2",
|
|
1482
|
-
children: [/* @__PURE__ */ v(
|
|
1480
|
+
children: [/* @__PURE__ */ v(le, {
|
|
1483
1481
|
className: "text-muted-foreground shrink-0",
|
|
1484
1482
|
size: 18
|
|
1485
1483
|
}), /* @__PURE__ */ v(f, {
|
|
1486
|
-
className:
|
|
1484
|
+
className: q("text-muted-foreground truncate", n === "compact" && (r ? "hidden md:flex" : "hidden")),
|
|
1487
1485
|
children: o
|
|
1488
1486
|
})]
|
|
1489
1487
|
}), /* @__PURE__ */ v(h, {
|
|
1490
|
-
className:
|
|
1488
|
+
className: q("bg-muted absolute top-2 right-2 hidden h-6 flex-row items-center gap-1 rounded border px-1.5 opacity-100", n === "default" && c.OS !== "android" && c.OS !== "ios" && "sm:flex", n === "compact" && r && c.OS !== "android" && c.OS !== "ios" && "md:flex"),
|
|
1491
1489
|
children: /* @__PURE__ */ v(f, {
|
|
1492
1490
|
className: "text-muted-foreground font-mono text-[10px] font-medium",
|
|
1493
1491
|
children: "⌘K"
|
|
@@ -1495,12 +1493,12 @@ var pi = e.forwardRef(({ className: e, placeholder: t, variant: n = "default", r
|
|
|
1495
1493
|
})]
|
|
1496
1494
|
});
|
|
1497
1495
|
});
|
|
1498
|
-
|
|
1496
|
+
_i.displayName = "SearchTrigger";
|
|
1499
1497
|
//#endregion
|
|
1500
1498
|
//#region src/select.tsx
|
|
1501
|
-
var
|
|
1499
|
+
var vi = V.Root, yi = V.Group, bi = V.Value, xi = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ y(V.Trigger, {
|
|
1502
1500
|
ref: r,
|
|
1503
|
-
className:
|
|
1501
|
+
className: q("native:h-12 border-input bg-background text-muted-foreground web:ring-offset-background web:focus:outline-none web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2 flex h-10 flex-row items-center justify-between rounded-md border px-3 py-2 text-sm [&>span]:line-clamp-1", n.disabled && "web:cursor-not-allowed opacity-50", e),
|
|
1504
1502
|
...n,
|
|
1505
1503
|
children: [/* @__PURE__ */ v(_, { children: t }), /* @__PURE__ */ v(w, {
|
|
1506
1504
|
size: 16,
|
|
@@ -1508,91 +1506,91 @@ var mi = B.Root, hi = B.Group, gi = B.Value, _i = e.forwardRef(({ className: e,
|
|
|
1508
1506
|
className: "text-foreground opacity-50"
|
|
1509
1507
|
})]
|
|
1510
1508
|
}));
|
|
1511
|
-
|
|
1512
|
-
var
|
|
1509
|
+
xi.displayName = V.Trigger?.displayName || "SelectTrigger";
|
|
1510
|
+
var Si = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(V.ScrollUpButton, {
|
|
1513
1511
|
ref: n,
|
|
1514
|
-
className:
|
|
1512
|
+
className: q("flex cursor-default items-center justify-center py-1", e),
|
|
1515
1513
|
...t,
|
|
1516
1514
|
children: /* @__PURE__ */ v(ie, {
|
|
1517
1515
|
size: 14,
|
|
1518
1516
|
className: "text-foreground"
|
|
1519
1517
|
})
|
|
1520
1518
|
}));
|
|
1521
|
-
|
|
1522
|
-
var
|
|
1519
|
+
Si.displayName = V.ScrollUpButton?.displayName || "SelectScrollUpButton";
|
|
1520
|
+
var Ci = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(V.ScrollDownButton, {
|
|
1523
1521
|
ref: n,
|
|
1524
|
-
className:
|
|
1522
|
+
className: q("flex cursor-default items-center justify-center py-1", e),
|
|
1525
1523
|
...t,
|
|
1526
1524
|
children: /* @__PURE__ */ v(w, {
|
|
1527
1525
|
size: 14,
|
|
1528
1526
|
className: "text-foreground"
|
|
1529
1527
|
})
|
|
1530
1528
|
}));
|
|
1531
|
-
|
|
1532
|
-
var
|
|
1533
|
-
let { open: l } =
|
|
1534
|
-
return /* @__PURE__ */ y(
|
|
1529
|
+
Ci.displayName = V.ScrollDownButton?.displayName || "SelectScrollDownButton";
|
|
1530
|
+
var wi = e.forwardRef(({ className: e, children: t, position: n = "popper", portalHost: r, overlayClassName: i, overlayStyle: a, ...o }, s) => {
|
|
1531
|
+
let { open: l } = V.useRootContext();
|
|
1532
|
+
return /* @__PURE__ */ y(V.Portal, {
|
|
1535
1533
|
hostName: r,
|
|
1536
|
-
children: [/* @__PURE__ */ v(
|
|
1534
|
+
children: [/* @__PURE__ */ v(V.Overlay, {
|
|
1537
1535
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
1538
1536
|
asChild: !0,
|
|
1539
|
-
children: /* @__PURE__ */ v(
|
|
1537
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
1540
1538
|
className: i,
|
|
1541
1539
|
style: a
|
|
1542
1540
|
})
|
|
1543
|
-
}), /* @__PURE__ */ y(
|
|
1541
|
+
}), /* @__PURE__ */ y(V.Content, {
|
|
1544
1542
|
ref: s,
|
|
1545
|
-
className:
|
|
1543
|
+
className: q("border-border bg-popover 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-96 min-w-[8rem] 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", l ? "web:zoom-in-95 web:animate-in web:fade-in-0" : "web:zoom-out-95 web:animate-out web:fade-out-0", e),
|
|
1546
1544
|
position: n,
|
|
1547
1545
|
...o,
|
|
1548
1546
|
children: [
|
|
1549
|
-
/* @__PURE__ */ v(
|
|
1550
|
-
/* @__PURE__ */ v(
|
|
1551
|
-
className:
|
|
1547
|
+
/* @__PURE__ */ v(Si, {}),
|
|
1548
|
+
/* @__PURE__ */ v(V.Viewport, {
|
|
1549
|
+
className: q("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
1552
1550
|
children: t
|
|
1553
1551
|
}),
|
|
1554
|
-
/* @__PURE__ */ v(
|
|
1552
|
+
/* @__PURE__ */ v(Ci, {})
|
|
1555
1553
|
]
|
|
1556
1554
|
})]
|
|
1557
1555
|
});
|
|
1558
1556
|
});
|
|
1559
|
-
|
|
1560
|
-
var
|
|
1557
|
+
wi.displayName = V.Content?.displayName || "SelectContent";
|
|
1558
|
+
var Ti = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(V.Label, {
|
|
1561
1559
|
ref: n,
|
|
1562
|
-
className:
|
|
1560
|
+
className: q("text-popover-foreground py-1.5 pr-2 pl-8 text-sm font-semibold", e),
|
|
1563
1561
|
...t
|
|
1564
1562
|
}));
|
|
1565
|
-
|
|
1566
|
-
var
|
|
1563
|
+
Ti.displayName = V.Label?.displayName || "SelectLabel";
|
|
1564
|
+
var Ei = e.forwardRef(({ className: e, children: t, label: n, ...r }, i) => {
|
|
1567
1565
|
let a = n || (typeof t == "string" ? t : "");
|
|
1568
|
-
return /* @__PURE__ */ y(
|
|
1566
|
+
return /* @__PURE__ */ y(V.Item, {
|
|
1569
1567
|
ref: i,
|
|
1570
1568
|
label: a,
|
|
1571
|
-
className:
|
|
1569
|
+
className: q("web:hover:bg-accent/50 web:focus:bg-accent web:focus:text-accent-foreground web:hover:text-accent-foreground relative flex w-full cursor-default flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:opacity-50", r.disabled && "web:pointer-events-none", e),
|
|
1572
1570
|
...r,
|
|
1573
1571
|
children: [/* @__PURE__ */ v(h, {
|
|
1574
1572
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1575
|
-
children: /* @__PURE__ */ v(
|
|
1573
|
+
children: /* @__PURE__ */ v(V.ItemIndicator, { children: /* @__PURE__ */ v(C, {
|
|
1576
1574
|
size: 14,
|
|
1577
1575
|
strokeWidth: 3,
|
|
1578
1576
|
className: "text-popover-foreground"
|
|
1579
1577
|
}) })
|
|
1580
|
-
}), /* @__PURE__ */ v(
|
|
1578
|
+
}), /* @__PURE__ */ v(V.ItemText, {
|
|
1581
1579
|
className: "text-popover-foreground native:text-base text-sm",
|
|
1582
1580
|
children: t
|
|
1583
1581
|
})]
|
|
1584
1582
|
});
|
|
1585
1583
|
});
|
|
1586
|
-
|
|
1587
|
-
var
|
|
1584
|
+
Ei.displayName = V.Item?.displayName || "SelectItem";
|
|
1585
|
+
var Di = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(V.Separator, {
|
|
1588
1586
|
ref: n,
|
|
1589
|
-
className:
|
|
1587
|
+
className: q("bg-muted -mx-1 my-1 h-px", e),
|
|
1590
1588
|
...t
|
|
1591
1589
|
}));
|
|
1592
|
-
|
|
1590
|
+
Di.displayName = V.Separator?.displayName || "SelectSeparator";
|
|
1593
1591
|
//#endregion
|
|
1594
1592
|
//#region src/scroll-to-top.tsx
|
|
1595
|
-
var
|
|
1593
|
+
var Oi = e.forwardRef(({ threshold: n = 240, exitDuration: i = 450, behavior: a, label: o = "Scroll to top", className: s, scrollRef: l, animationDuration: u = 300, ...d }, f) => {
|
|
1596
1594
|
let [p, m] = e.useState(!1), [g, _] = e.useState(!1), y = e.useRef(new r.Value(0)).current, b = e.useRef(new r.Value(20)).current, x = () => {
|
|
1597
1595
|
r.parallel([r.timing(y, {
|
|
1598
1596
|
toValue: 1,
|
|
@@ -1653,10 +1651,10 @@ var wi = e.forwardRef(({ threshold: n = 240, exitDuration: i = 450, behavior: a,
|
|
|
1653
1651
|
opacity: y,
|
|
1654
1652
|
transform: [{ translateY: b }]
|
|
1655
1653
|
},
|
|
1656
|
-
children: /* @__PURE__ */ v(
|
|
1654
|
+
children: /* @__PURE__ */ v(J, {
|
|
1657
1655
|
variant: "outline",
|
|
1658
1656
|
size: "icon",
|
|
1659
|
-
className:
|
|
1657
|
+
className: q("bg-background/80 h-12 w-12 rounded-full border-2 shadow-lg", s),
|
|
1660
1658
|
onPress: te,
|
|
1661
1659
|
"aria-label": o,
|
|
1662
1660
|
...d,
|
|
@@ -1668,17 +1666,17 @@ var wi = e.forwardRef(({ threshold: n = 240, exitDuration: i = 450, behavior: a,
|
|
|
1668
1666
|
})
|
|
1669
1667
|
});
|
|
1670
1668
|
});
|
|
1671
|
-
|
|
1669
|
+
Oi.displayName = "ScrollToTop";
|
|
1672
1670
|
//#endregion
|
|
1673
1671
|
//#region src/support-fab.tsx
|
|
1674
|
-
var
|
|
1672
|
+
var ki = (e) => {
|
|
1675
1673
|
let t = e.trim();
|
|
1676
1674
|
return t.endsWith("/") ? t.slice(0, -1) : t;
|
|
1677
|
-
},
|
|
1678
|
-
function
|
|
1675
|
+
}, Ai = (e) => e.trim().replace(/^@+/, ""), ji = (e, t) => `${ki(e)}/${encodeURIComponent(Ai(t))}`;
|
|
1676
|
+
function Mi({ supportUrl: t = "https://www.buymeacoffee.com", creatorId: n, title: r = "Buy me a coffee", description: i = "Support the project directly from this panel.", open: a, defaultOpen: s = !1, onOpenChange: c, positionClassName: l, buttonClassName: u, panelClassName: d, className: f, ...p }) {
|
|
1679
1677
|
let m = a !== void 0, [g, b] = e.useState(s), x = m ? a : g, S = e.useCallback((e) => {
|
|
1680
1678
|
m || b(e), c?.(e);
|
|
1681
|
-
}, [m, c]), ee = e.useMemo(() =>
|
|
1679
|
+
}, [m, c]), ee = e.useMemo(() => ji(t, n), [n, t]), te = e.useCallback(async () => {
|
|
1682
1680
|
try {
|
|
1683
1681
|
await o.openURL(ee);
|
|
1684
1682
|
} catch (e) {
|
|
@@ -1693,30 +1691,30 @@ function Oi({ supportUrl: t = "https://www.buymeacoffee.com", creatorId: n, titl
|
|
|
1693
1691
|
zIndex: 50
|
|
1694
1692
|
},
|
|
1695
1693
|
className: l,
|
|
1696
|
-
children: /* @__PURE__ */ v(
|
|
1694
|
+
children: /* @__PURE__ */ v(J, {
|
|
1697
1695
|
variant: "outline",
|
|
1698
1696
|
size: "icon",
|
|
1699
|
-
className:
|
|
1697
|
+
className: q("h-14 w-14 rounded-full border border-black/15 bg-[#ffdd00] shadow-lg", u, f),
|
|
1700
1698
|
onPress: () => S(!0),
|
|
1701
1699
|
"aria-label": "Support this project",
|
|
1702
1700
|
...p,
|
|
1703
|
-
children: /* @__PURE__ */ v(
|
|
1701
|
+
children: /* @__PURE__ */ v(ae, {
|
|
1704
1702
|
size: 24,
|
|
1705
1703
|
className: "text-black"
|
|
1706
1704
|
})
|
|
1707
1705
|
})
|
|
1708
|
-
}), /* @__PURE__ */ v(
|
|
1706
|
+
}), /* @__PURE__ */ v(An, {
|
|
1709
1707
|
open: x,
|
|
1710
1708
|
onOpenChange: S,
|
|
1711
|
-
children: /* @__PURE__ */ y(
|
|
1712
|
-
className:
|
|
1713
|
-
children: [/* @__PURE__ */ y(
|
|
1709
|
+
children: /* @__PURE__ */ y(Fn, {
|
|
1710
|
+
className: q("max-w-sm", d),
|
|
1711
|
+
children: [/* @__PURE__ */ y(In, { children: [/* @__PURE__ */ v(Rn, { children: r }), /* @__PURE__ */ v(zn, { children: i })] }), /* @__PURE__ */ y(h, {
|
|
1714
1712
|
className: "flex flex-col gap-4",
|
|
1715
1713
|
children: [/* @__PURE__ */ v(h, {
|
|
1716
1714
|
className: "overflow-hidden rounded-md border",
|
|
1717
1715
|
children: /* @__PURE__ */ v(h, {
|
|
1718
1716
|
className: "bg-muted flex h-48 items-center justify-center",
|
|
1719
|
-
children: /* @__PURE__ */ y(
|
|
1717
|
+
children: /* @__PURE__ */ y(Y, {
|
|
1720
1718
|
className: "text-muted-foreground text-center text-sm",
|
|
1721
1719
|
children: [
|
|
1722
1720
|
"Embedded support form would appear here on web.",
|
|
@@ -1727,18 +1725,18 @@ function Oi({ supportUrl: t = "https://www.buymeacoffee.com", creatorId: n, titl
|
|
|
1727
1725
|
})
|
|
1728
1726
|
}), /* @__PURE__ */ y(h, {
|
|
1729
1727
|
className: "text-muted-foreground flex items-center justify-between gap-2 text-xs",
|
|
1730
|
-
children: [/* @__PURE__ */ v(
|
|
1728
|
+
children: [/* @__PURE__ */ v(Y, {
|
|
1731
1729
|
className: "text-muted-foreground flex-1 text-xs",
|
|
1732
1730
|
children: "If the embedded checkout is unavailable, open the support page directly."
|
|
1733
|
-
}), /* @__PURE__ */ y(
|
|
1731
|
+
}), /* @__PURE__ */ y(J, {
|
|
1734
1732
|
variant: "outline",
|
|
1735
1733
|
size: "sm",
|
|
1736
1734
|
onPress: te,
|
|
1737
1735
|
className: "flex flex-row items-center gap-1",
|
|
1738
|
-
children: [/* @__PURE__ */ v(
|
|
1736
|
+
children: [/* @__PURE__ */ v(Y, {
|
|
1739
1737
|
className: "text-xs",
|
|
1740
1738
|
children: "Open Buy Me a Coffee"
|
|
1741
|
-
}), /* @__PURE__ */ v(
|
|
1739
|
+
}), /* @__PURE__ */ v(oe, {
|
|
1742
1740
|
size: 12,
|
|
1743
1741
|
className: "text-muted-foreground"
|
|
1744
1742
|
})]
|
|
@@ -1750,47 +1748,47 @@ function Oi({ supportUrl: t = "https://www.buymeacoffee.com", creatorId: n, titl
|
|
|
1750
1748
|
}
|
|
1751
1749
|
//#endregion
|
|
1752
1750
|
//#region src/separator.tsx
|
|
1753
|
-
var
|
|
1751
|
+
var Ni = e.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, i) => /* @__PURE__ */ v(He.Root, {
|
|
1754
1752
|
ref: i,
|
|
1755
1753
|
decorative: n,
|
|
1756
1754
|
orientation: t,
|
|
1757
|
-
className:
|
|
1755
|
+
className: q("bg-border shrink-0", t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", e),
|
|
1758
1756
|
...r
|
|
1759
1757
|
}));
|
|
1760
|
-
|
|
1758
|
+
Ni.displayName = He.Root?.displayName || "Separator";
|
|
1761
1759
|
//#endregion
|
|
1762
1760
|
//#region src/sheet.tsx
|
|
1763
|
-
var
|
|
1761
|
+
var Pi = F.Root, Fi = F.Trigger, Ii = F.Close, Li = F.Portal, Ri = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(F.Overlay, {
|
|
1764
1762
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
1765
1763
|
asChild: !0,
|
|
1766
1764
|
ref: n,
|
|
1767
1765
|
...t,
|
|
1768
|
-
children: /* @__PURE__ */ v(
|
|
1769
|
-
entering:
|
|
1770
|
-
exiting:
|
|
1771
|
-
className:
|
|
1766
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
1767
|
+
entering: k.duration(150),
|
|
1768
|
+
exiting: A.duration(150),
|
|
1769
|
+
className: q("web:cursor-default absolute inset-0 z-50 bg-black/60 backdrop-blur-md", e)
|
|
1772
1770
|
})
|
|
1773
1771
|
}));
|
|
1774
|
-
|
|
1775
|
-
var
|
|
1776
|
-
let s = c.OS === "web", l
|
|
1777
|
-
return /* @__PURE__ */ y(
|
|
1772
|
+
Ri.displayName = F.Overlay?.displayName || "SheetOverlay";
|
|
1773
|
+
var zi = e.forwardRef(({ className: e, children: t, side: n = "right", overlayClassName: r, overlayStyle: i, ...a }, o) => {
|
|
1774
|
+
let s = c.OS === "web", l, u;
|
|
1775
|
+
return s || (n === "bottom" ? (l = ge, u = be) : n === "top" ? (l = ye, u = Ce) : n === "left" ? (l = _e, u = xe) : (l = ve, u = Se)), /* @__PURE__ */ y(Li, { children: [/* @__PURE__ */ v(Ri, {
|
|
1778
1776
|
className: r,
|
|
1779
1777
|
style: i
|
|
1780
|
-
}), /* @__PURE__ */ v(
|
|
1778
|
+
}), /* @__PURE__ */ v(F.Content, {
|
|
1781
1779
|
ref: o,
|
|
1782
1780
|
asChild: !0,
|
|
1783
1781
|
...a,
|
|
1784
|
-
children: /* @__PURE__ */ y(
|
|
1782
|
+
children: /* @__PURE__ */ y(O.View, {
|
|
1785
1783
|
entering: l,
|
|
1786
1784
|
exiting: u,
|
|
1787
|
-
className:
|
|
1788
|
-
children: [t, /* @__PURE__ */ y(
|
|
1789
|
-
className:
|
|
1790
|
-
children: [/* @__PURE__ */ v(
|
|
1785
|
+
className: q("bg-background web:cursor-default web:duration-200 web:ease-in-out absolute z-50 h-full w-3/4 gap-4 p-6 shadow-lg", n === "right" && "border-border data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right top-0 right-0 border-l", n === "left" && "border-border data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left top-0 left-0 border-r", n === "top" && "border-border data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top top-0 w-full border-b", n === "bottom" && "border-border data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom bottom-0 w-full border-t", e),
|
|
1786
|
+
children: [t, /* @__PURE__ */ y(F.Close, {
|
|
1787
|
+
className: q("ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", "web:absolute web:right-4 web:top-4"),
|
|
1788
|
+
children: [/* @__PURE__ */ v(D, {
|
|
1791
1789
|
size: 24,
|
|
1792
1790
|
className: "text-muted-foreground"
|
|
1793
|
-
}), /* @__PURE__ */ v(
|
|
1791
|
+
}), /* @__PURE__ */ v(Y, {
|
|
1794
1792
|
className: "sr-only",
|
|
1795
1793
|
children: "Close"
|
|
1796
1794
|
})]
|
|
@@ -1798,48 +1796,48 @@ var Fi = e.forwardRef(({ className: e, children: t, side: n = "right", overlayCl
|
|
|
1798
1796
|
})
|
|
1799
1797
|
})] });
|
|
1800
1798
|
});
|
|
1801
|
-
|
|
1802
|
-
var
|
|
1803
|
-
className:
|
|
1799
|
+
zi.displayName = F.Content?.displayName || "SheetContent";
|
|
1800
|
+
var Bi = ({ className: e, ...t }) => /* @__PURE__ */ v(h, {
|
|
1801
|
+
className: q("flex flex-col space-y-2 text-center sm:text-left", e),
|
|
1804
1802
|
...t
|
|
1805
1803
|
});
|
|
1806
|
-
|
|
1807
|
-
var
|
|
1808
|
-
className:
|
|
1804
|
+
Bi.displayName = "SheetHeader";
|
|
1805
|
+
var Vi = ({ className: e, ...t }) => /* @__PURE__ */ v(h, {
|
|
1806
|
+
className: q("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
1809
1807
|
...t
|
|
1810
1808
|
});
|
|
1811
|
-
|
|
1812
|
-
var
|
|
1809
|
+
Vi.displayName = "SheetFooter";
|
|
1810
|
+
var Hi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(F.Title, {
|
|
1813
1811
|
ref: n,
|
|
1814
|
-
className:
|
|
1812
|
+
className: q("text-foreground text-lg font-semibold", e),
|
|
1815
1813
|
...t
|
|
1816
1814
|
}));
|
|
1817
|
-
|
|
1818
|
-
var
|
|
1815
|
+
Hi.displayName = F.Title?.displayName || "SheetTitle";
|
|
1816
|
+
var Ui = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(F.Description, {
|
|
1819
1817
|
ref: n,
|
|
1820
|
-
className:
|
|
1818
|
+
className: q("text-muted-foreground text-sm", e),
|
|
1821
1819
|
...t
|
|
1822
1820
|
}));
|
|
1823
|
-
|
|
1821
|
+
Ui.displayName = F.Description?.displayName || "SheetDescription";
|
|
1824
1822
|
//#endregion
|
|
1825
1823
|
//#region src/skeleton.tsx
|
|
1826
|
-
function
|
|
1827
|
-
let r =
|
|
1824
|
+
function Wi({ className: t, ...n }) {
|
|
1825
|
+
let r = De(.5);
|
|
1828
1826
|
e.useEffect(() => {
|
|
1829
|
-
r.value =
|
|
1827
|
+
r.value = Oe(ke(Ae(.2, { duration: 500 }), Ae(.5, { duration: 500 })), -1, !0);
|
|
1830
1828
|
}, []);
|
|
1831
|
-
let i =
|
|
1832
|
-
return /* @__PURE__ */ v(
|
|
1833
|
-
className:
|
|
1829
|
+
let i = Te(() => ({ opacity: r.value }));
|
|
1830
|
+
return /* @__PURE__ */ v(O.View, {
|
|
1831
|
+
className: q("bg-muted rounded-md", t),
|
|
1834
1832
|
style: i,
|
|
1835
1833
|
...n
|
|
1836
1834
|
});
|
|
1837
1835
|
}
|
|
1838
1836
|
//#endregion
|
|
1839
1837
|
//#region src/slider.tsx
|
|
1840
|
-
var
|
|
1838
|
+
var Gi = ({ className: e, value: t, onValueChange: n, defaultValue: r, min: i = 0, max: a = 100, step: o = 1, disabled: s = !1, ...c }) => {
|
|
1841
1839
|
let l = t === void 0 ? i : t[0];
|
|
1842
|
-
return /* @__PURE__ */ y(
|
|
1840
|
+
return /* @__PURE__ */ y(H.Root, {
|
|
1843
1841
|
value: l,
|
|
1844
1842
|
onValueChange: (e) => {
|
|
1845
1843
|
n && n(Array.isArray(e) ? e : [e]);
|
|
@@ -1848,169 +1846,169 @@ var Vi = ({ className: e, value: t, onValueChange: n, defaultValue: r, min: i =
|
|
|
1848
1846
|
max: a,
|
|
1849
1847
|
step: o,
|
|
1850
1848
|
disabled: s,
|
|
1851
|
-
className:
|
|
1849
|
+
className: q("relative flex w-full touch-none items-center select-none", s && "opacity-50", e),
|
|
1852
1850
|
...c,
|
|
1853
|
-
children: [/* @__PURE__ */ v(
|
|
1851
|
+
children: [/* @__PURE__ */ v(H.Track, {
|
|
1854
1852
|
className: "bg-secondary relative h-2 w-full grow rounded-full",
|
|
1855
|
-
children: /* @__PURE__ */ v(
|
|
1856
|
-
}), /* @__PURE__ */ v(
|
|
1853
|
+
children: /* @__PURE__ */ v(H.Range, { className: "bg-primary absolute h-full rounded-full" })
|
|
1854
|
+
}), /* @__PURE__ */ v(H.Thumb, { className: "border-primary bg-background focus-visible:ring-ring block h-5 w-5 rounded-full border-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none" })]
|
|
1857
1855
|
});
|
|
1858
1856
|
};
|
|
1859
|
-
|
|
1857
|
+
Gi.displayName = "Slider";
|
|
1860
1858
|
//#endregion
|
|
1861
1859
|
//#region src/toast.tsx
|
|
1862
|
-
var
|
|
1860
|
+
var Ki = ({ children: e }) => /* @__PURE__ */ v(_, { children: e }), qi = () => null, Ji = e.forwardRef(({ className: e, variant: t = "default", ...n }, r) => /* @__PURE__ */ v(U.Root, {
|
|
1863
1861
|
ref: r,
|
|
1864
|
-
className:
|
|
1862
|
+
className: q("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg", t === "default" ? "border-border bg-background" : "border-destructive bg-destructive", e),
|
|
1865
1863
|
...n,
|
|
1866
|
-
children: /* @__PURE__ */ v(
|
|
1867
|
-
entering:
|
|
1868
|
-
exiting:
|
|
1869
|
-
layout:
|
|
1864
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
1865
|
+
entering: pe,
|
|
1866
|
+
exiting: me,
|
|
1867
|
+
layout: he,
|
|
1870
1868
|
className: "w-full flex-row items-center",
|
|
1871
1869
|
children: n.children
|
|
1872
1870
|
})
|
|
1873
1871
|
}));
|
|
1874
|
-
|
|
1875
|
-
var
|
|
1872
|
+
Ji.displayName = U.Root?.displayName || "Toast";
|
|
1873
|
+
var Yi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(U.Title, {
|
|
1876
1874
|
ref: n,
|
|
1877
|
-
className:
|
|
1875
|
+
className: q("text-foreground text-sm font-semibold", e),
|
|
1878
1876
|
...t
|
|
1879
1877
|
}));
|
|
1880
|
-
|
|
1881
|
-
var
|
|
1878
|
+
Yi.displayName = U.Title?.displayName || "ToastTitle";
|
|
1879
|
+
var Xi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(U.Description, {
|
|
1882
1880
|
ref: n,
|
|
1883
|
-
className:
|
|
1881
|
+
className: q("text-muted-foreground text-sm opacity-90", e),
|
|
1884
1882
|
...t
|
|
1885
1883
|
}));
|
|
1886
|
-
|
|
1887
|
-
var
|
|
1884
|
+
Xi.displayName = U.Description?.displayName || "ToastDescription";
|
|
1885
|
+
var Zi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(U.Close, {
|
|
1888
1886
|
ref: n,
|
|
1889
|
-
className:
|
|
1887
|
+
className: q("text-foreground/50 hover:text-foreground absolute top-1 right-1 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 focus:opacity-100 focus:ring-1 focus:outline-none", e),
|
|
1890
1888
|
...t,
|
|
1891
|
-
children: /* @__PURE__ */ v(
|
|
1889
|
+
children: /* @__PURE__ */ v(D, {
|
|
1892
1890
|
size: 16,
|
|
1893
1891
|
className: "text-muted-foreground"
|
|
1894
1892
|
})
|
|
1895
1893
|
}));
|
|
1896
|
-
|
|
1897
|
-
var
|
|
1894
|
+
Zi.displayName = U.Close?.displayName || "ToastClose";
|
|
1895
|
+
var Qi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(U.Action, {
|
|
1898
1896
|
ref: n,
|
|
1899
|
-
className:
|
|
1897
|
+
className: q("hover:bg-secondary focus:ring-ring inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:ring-1 focus:outline-none disabled:pointer-events-none disabled:opacity-50", e),
|
|
1900
1898
|
...t
|
|
1901
1899
|
}));
|
|
1902
|
-
|
|
1900
|
+
Qi.displayName = U.Action?.displayName || "ToastAction";
|
|
1903
1901
|
//#endregion
|
|
1904
1902
|
//#region src/sonner.tsx
|
|
1905
|
-
var
|
|
1906
|
-
className:
|
|
1903
|
+
var $i = () => /* @__PURE__ */ v(Ki, { children: /* @__PURE__ */ v(qi, {}) }), ea = e.forwardRef(({ className: e, checked: t, onCheckedChange: n, ...r }, i) => /* @__PURE__ */ v(Ue.Root, {
|
|
1904
|
+
className: q("peer focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input inline-flex h-6 w-11 shrink-0 cursor-pointer flex-row items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
1907
1905
|
...r,
|
|
1908
1906
|
checked: t ?? !1,
|
|
1909
1907
|
onCheckedChange: n || (() => {}),
|
|
1910
1908
|
ref: i,
|
|
1911
|
-
children: /* @__PURE__ */ v(
|
|
1909
|
+
children: /* @__PURE__ */ v(Ue.Thumb, { className: q("bg-background pointer-events-none block h-5 w-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") })
|
|
1912
1910
|
}));
|
|
1913
|
-
|
|
1911
|
+
ea.displayName = Ue.Root?.displayName || "Switch";
|
|
1914
1912
|
//#endregion
|
|
1915
1913
|
//#region src/table.tsx
|
|
1916
|
-
var
|
|
1914
|
+
var ta = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
1917
1915
|
ref: n,
|
|
1918
|
-
className:
|
|
1916
|
+
className: q("w-full caption-bottom text-sm", e),
|
|
1919
1917
|
...t
|
|
1920
1918
|
}));
|
|
1921
|
-
|
|
1922
|
-
var
|
|
1919
|
+
ta.displayName = "Table";
|
|
1920
|
+
var na = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
1923
1921
|
ref: n,
|
|
1924
|
-
className:
|
|
1922
|
+
className: q("border-border border-b", e),
|
|
1925
1923
|
...t
|
|
1926
1924
|
}));
|
|
1927
|
-
|
|
1928
|
-
var
|
|
1925
|
+
na.displayName = "TableHeader";
|
|
1926
|
+
var ra = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
1929
1927
|
ref: n,
|
|
1930
|
-
className:
|
|
1928
|
+
className: q("flex-1", e),
|
|
1931
1929
|
...t
|
|
1932
1930
|
}));
|
|
1933
|
-
|
|
1934
|
-
var
|
|
1931
|
+
ra.displayName = "TableBody";
|
|
1932
|
+
var ia = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
1935
1933
|
ref: n,
|
|
1936
|
-
className:
|
|
1934
|
+
className: q("bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
1937
1935
|
...t
|
|
1938
1936
|
}));
|
|
1939
|
-
|
|
1940
|
-
var
|
|
1937
|
+
ia.displayName = "TableFooter";
|
|
1938
|
+
var aa = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
1941
1939
|
ref: n,
|
|
1942
|
-
className:
|
|
1940
|
+
className: q("border-border hover:bg-muted/50 data-[state=selected]:bg-muted flex-row border-b transition-colors", e),
|
|
1943
1941
|
...t
|
|
1944
1942
|
}));
|
|
1945
|
-
|
|
1946
|
-
var
|
|
1943
|
+
aa.displayName = "TableRow";
|
|
1944
|
+
var oa = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(Y, {
|
|
1947
1945
|
ref: n,
|
|
1948
|
-
className:
|
|
1946
|
+
className: q("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0", e),
|
|
1949
1947
|
...t
|
|
1950
1948
|
}));
|
|
1951
|
-
|
|
1952
|
-
var
|
|
1949
|
+
oa.displayName = "TableHead";
|
|
1950
|
+
var sa = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(Y, {
|
|
1953
1951
|
ref: n,
|
|
1954
|
-
className:
|
|
1952
|
+
className: q("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
|
|
1955
1953
|
...t
|
|
1956
1954
|
}));
|
|
1957
|
-
|
|
1958
|
-
var
|
|
1955
|
+
sa.displayName = "TableCell";
|
|
1956
|
+
var ca = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(Y, {
|
|
1959
1957
|
ref: n,
|
|
1960
|
-
className:
|
|
1958
|
+
className: q("text-muted-foreground mt-4 text-sm", e),
|
|
1961
1959
|
...t
|
|
1962
1960
|
}));
|
|
1963
|
-
|
|
1961
|
+
ca.displayName = "TableCaption";
|
|
1964
1962
|
//#endregion
|
|
1965
1963
|
//#region src/tabs.tsx
|
|
1966
|
-
var
|
|
1964
|
+
var la = e.forwardRef((e, t) => /* @__PURE__ */ v(W.Root, {
|
|
1967
1965
|
ref: t,
|
|
1968
1966
|
...e
|
|
1969
1967
|
}));
|
|
1970
|
-
|
|
1971
|
-
var
|
|
1968
|
+
la.displayName = "Tabs";
|
|
1969
|
+
var ua = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(W.List, {
|
|
1972
1970
|
ref: n,
|
|
1973
|
-
className:
|
|
1971
|
+
className: q("bg-muted text-muted-foreground inline-flex h-10 flex-row items-center justify-center rounded-md p-1", e),
|
|
1974
1972
|
...t
|
|
1975
1973
|
}));
|
|
1976
|
-
|
|
1977
|
-
var
|
|
1978
|
-
let { value: r } =
|
|
1979
|
-
return /* @__PURE__ */ v(
|
|
1980
|
-
value:
|
|
1981
|
-
children: /* @__PURE__ */ v(
|
|
1974
|
+
ua.displayName = W.List?.displayName || "TabsList";
|
|
1975
|
+
var da = e.forwardRef(({ className: e, ...t }, n) => {
|
|
1976
|
+
let { value: r } = W.useRootContext();
|
|
1977
|
+
return /* @__PURE__ */ v(Tt.Provider, {
|
|
1978
|
+
value: q("text-sm native:text-base font-medium text-muted-foreground web:transition-all", r === t.value && "text-foreground"),
|
|
1979
|
+
children: /* @__PURE__ */ v(W.Trigger, {
|
|
1982
1980
|
ref: n,
|
|
1983
|
-
className:
|
|
1981
|
+
className: q("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50", t.disabled && "opacity-50", r === t.value && "bg-background shadow-foreground/10 shadow-sm", e),
|
|
1984
1982
|
...t
|
|
1985
1983
|
})
|
|
1986
1984
|
});
|
|
1987
1985
|
});
|
|
1988
|
-
|
|
1989
|
-
var
|
|
1986
|
+
da.displayName = W.Trigger?.displayName || "TabsTrigger";
|
|
1987
|
+
var fa = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(W.Content, {
|
|
1990
1988
|
ref: n,
|
|
1991
|
-
className:
|
|
1989
|
+
className: q("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none", e),
|
|
1992
1990
|
...t
|
|
1993
1991
|
}));
|
|
1994
|
-
|
|
1992
|
+
fa.displayName = W.Content?.displayName || "TabsContent";
|
|
1995
1993
|
//#endregion
|
|
1996
1994
|
//#region src/textarea.tsx
|
|
1997
|
-
var
|
|
1995
|
+
var pa = e.forwardRef(({ className: e, placeholderClassName: t, ...n }, r) => /* @__PURE__ */ v(p, {
|
|
1998
1996
|
ref: r,
|
|
1999
1997
|
multiline: !0,
|
|
2000
1998
|
numberOfLines: n.numberOfLines || 3,
|
|
2001
|
-
className:
|
|
2002
|
-
placeholderClassName:
|
|
1999
|
+
className: q("border-input bg-background text-foreground placeholder:text-muted-foreground focus:border-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-base shadow-sm transition-colors disabled:opacity-50", e),
|
|
2000
|
+
placeholderClassName: q("text-muted-foreground", t),
|
|
2003
2001
|
textAlignVertical: "top",
|
|
2004
2002
|
...n
|
|
2005
2003
|
}));
|
|
2006
|
-
|
|
2004
|
+
pa.displayName = "Textarea";
|
|
2007
2005
|
//#endregion
|
|
2008
2006
|
//#region src/toggle.tsx
|
|
2009
|
-
var
|
|
2010
|
-
value:
|
|
2011
|
-
children: /* @__PURE__ */ v(
|
|
2007
|
+
var ma = e.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ v(Tt.Provider, {
|
|
2008
|
+
value: q("text-sm native:text-base text-foreground font-medium", r.pressed && "text-accent-foreground", e),
|
|
2009
|
+
children: /* @__PURE__ */ v(Ge.Root, {
|
|
2012
2010
|
ref: i,
|
|
2013
|
-
className:
|
|
2011
|
+
className: q(We({
|
|
2014
2012
|
variant: t,
|
|
2015
2013
|
size: n,
|
|
2016
2014
|
className: e
|
|
@@ -2020,20 +2018,20 @@ var ua = e.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__
|
|
|
2020
2018
|
onPressedChange: r.onPressedChange || (() => {})
|
|
2021
2019
|
})
|
|
2022
2020
|
}));
|
|
2023
|
-
|
|
2021
|
+
ma.displayName = Ge.Root?.displayName || "Toggle";
|
|
2024
2022
|
//#endregion
|
|
2025
2023
|
//#region src/toggle-group.tsx
|
|
2026
|
-
var
|
|
2024
|
+
var ha = e.createContext({
|
|
2027
2025
|
size: "default",
|
|
2028
2026
|
variant: "default"
|
|
2029
|
-
}),
|
|
2027
|
+
}), ga = e.forwardRef(({ className: e, variant: t, size: n, children: r, type: i, value: a, onValueChange: o, ...s }, c) => /* @__PURE__ */ v(Ke.Root, {
|
|
2030
2028
|
ref: c,
|
|
2031
2029
|
type: i,
|
|
2032
2030
|
value: a,
|
|
2033
2031
|
onValueChange: o,
|
|
2034
|
-
className:
|
|
2032
|
+
className: q("flex flex-row items-center justify-center gap-1", e),
|
|
2035
2033
|
...s,
|
|
2036
|
-
children: /* @__PURE__ */ v(
|
|
2034
|
+
children: /* @__PURE__ */ v(ha.Provider, {
|
|
2037
2035
|
value: {
|
|
2038
2036
|
variant: t,
|
|
2039
2037
|
size: n
|
|
@@ -2041,15 +2039,15 @@ var da = e.createContext({
|
|
|
2041
2039
|
children: r
|
|
2042
2040
|
})
|
|
2043
2041
|
}));
|
|
2044
|
-
|
|
2045
|
-
var
|
|
2046
|
-
let c = e.useContext(
|
|
2047
|
-
return /* @__PURE__ */ v(
|
|
2048
|
-
value:
|
|
2049
|
-
children: /* @__PURE__ */ v(
|
|
2042
|
+
ga.displayName = Ke.Root?.displayName || "ToggleGroup";
|
|
2043
|
+
var _a = e.forwardRef(({ className: t, children: n, variant: r, size: i, value: a, ...o }, s) => {
|
|
2044
|
+
let c = e.useContext(ha);
|
|
2045
|
+
return /* @__PURE__ */ v(Tt.Provider, {
|
|
2046
|
+
value: q("text-sm native:text-base text-foreground font-medium", o.disabled && "web:cursor-not-allowed opacity-50", a === "" && "text-accent-foreground", t),
|
|
2047
|
+
children: /* @__PURE__ */ v(Ke.Item, {
|
|
2050
2048
|
ref: s,
|
|
2051
2049
|
value: a,
|
|
2052
|
-
className:
|
|
2050
|
+
className: q(We({
|
|
2053
2051
|
variant: c.variant || r,
|
|
2054
2052
|
size: c.size || i
|
|
2055
2053
|
}), t),
|
|
@@ -2058,60 +2056,60 @@ var pa = e.forwardRef(({ className: t, children: n, variant: r, size: i, value:
|
|
|
2058
2056
|
})
|
|
2059
2057
|
});
|
|
2060
2058
|
});
|
|
2061
|
-
|
|
2059
|
+
_a.displayName = Ke.Item?.displayName || "ToggleGroupItem";
|
|
2062
2060
|
//#endregion
|
|
2063
2061
|
//#region src/tooltip.tsx
|
|
2064
|
-
var
|
|
2062
|
+
var va = G.Root, ya = G.Trigger, ba = e.forwardRef(({ className: e, portalHost: t, ...n }, r) => /* @__PURE__ */ v(G.Portal, {
|
|
2065
2063
|
hostName: t,
|
|
2066
|
-
children: /* @__PURE__ */ v(
|
|
2064
|
+
children: /* @__PURE__ */ v(G.Overlay, {
|
|
2067
2065
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
2068
|
-
children: /* @__PURE__ */ v(
|
|
2069
|
-
entering:
|
|
2070
|
-
exiting:
|
|
2071
|
-
className:
|
|
2072
|
-
children: /* @__PURE__ */ v(
|
|
2066
|
+
children: /* @__PURE__ */ v(O.View, {
|
|
2067
|
+
entering: k,
|
|
2068
|
+
exiting: A,
|
|
2069
|
+
className: q("border-border bg-popover web:animate-in web:fade-in-0 web: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 overflow-hidden rounded-md border px-3 py-1.5 shadow-md", e),
|
|
2070
|
+
children: /* @__PURE__ */ v(Y, {
|
|
2073
2071
|
className: "text-popover-foreground native:text-base text-sm",
|
|
2074
2072
|
children: n.children
|
|
2075
2073
|
})
|
|
2076
2074
|
})
|
|
2077
2075
|
})
|
|
2078
2076
|
}));
|
|
2079
|
-
|
|
2080
|
-
var
|
|
2077
|
+
ba.displayName = G.Content?.displayName || "TooltipContent";
|
|
2078
|
+
var xa = ({ children: e }) => /* @__PURE__ */ v(_, { children: e }), Sa = 5, Ca = 1e6, wa = {
|
|
2081
2079
|
ADD_TOAST: "ADD_TOAST",
|
|
2082
2080
|
UPDATE_TOAST: "UPDATE_TOAST",
|
|
2083
2081
|
DISMISS_TOAST: "DISMISS_TOAST",
|
|
2084
2082
|
REMOVE_TOAST: "REMOVE_TOAST"
|
|
2085
|
-
},
|
|
2086
|
-
function
|
|
2087
|
-
return
|
|
2083
|
+
}, Ta = 0;
|
|
2084
|
+
function Ea() {
|
|
2085
|
+
return Ta = (Ta + 1) % (2 ** 53 - 1), Ta.toString();
|
|
2088
2086
|
}
|
|
2089
|
-
var
|
|
2090
|
-
if (
|
|
2087
|
+
var Da = /* @__PURE__ */ new Map(), Oa = (e) => {
|
|
2088
|
+
if (Da.has(e)) return;
|
|
2091
2089
|
let t = setTimeout(() => {
|
|
2092
|
-
|
|
2090
|
+
Da.delete(e), Q({
|
|
2093
2091
|
type: "REMOVE_TOAST",
|
|
2094
2092
|
toastId: e
|
|
2095
2093
|
});
|
|
2096
|
-
},
|
|
2097
|
-
|
|
2098
|
-
},
|
|
2094
|
+
}, Ca);
|
|
2095
|
+
Da.set(e, t);
|
|
2096
|
+
}, ka = (e, t) => {
|
|
2099
2097
|
switch (t.type) {
|
|
2100
|
-
case
|
|
2098
|
+
case wa.ADD_TOAST: return {
|
|
2101
2099
|
...e,
|
|
2102
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
2100
|
+
toasts: [t.toast, ...e.toasts].slice(0, Sa)
|
|
2103
2101
|
};
|
|
2104
|
-
case
|
|
2102
|
+
case wa.UPDATE_TOAST: return {
|
|
2105
2103
|
...e,
|
|
2106
2104
|
toasts: e.toasts.map((e) => e.id === t.toast.id ? {
|
|
2107
2105
|
...e,
|
|
2108
2106
|
...t.toast
|
|
2109
2107
|
} : e)
|
|
2110
2108
|
};
|
|
2111
|
-
case
|
|
2109
|
+
case wa.DISMISS_TOAST: {
|
|
2112
2110
|
let { toastId: n } = t;
|
|
2113
|
-
return n ?
|
|
2114
|
-
|
|
2111
|
+
return n ? Oa(n) : e.toasts.forEach((e) => {
|
|
2112
|
+
Oa(e.id);
|
|
2115
2113
|
}), {
|
|
2116
2114
|
...e,
|
|
2117
2115
|
toasts: e.toasts.map((e) => e.id === n || n === void 0 ? {
|
|
@@ -2120,7 +2118,7 @@ var Ca = /* @__PURE__ */ new Map(), wa = (e) => {
|
|
|
2120
2118
|
} : e)
|
|
2121
2119
|
};
|
|
2122
2120
|
}
|
|
2123
|
-
case
|
|
2121
|
+
case wa.REMOVE_TOAST: return t.toastId === void 0 ? {
|
|
2124
2122
|
...e,
|
|
2125
2123
|
toasts: []
|
|
2126
2124
|
} : {
|
|
@@ -2128,14 +2126,14 @@ var Ca = /* @__PURE__ */ new Map(), wa = (e) => {
|
|
|
2128
2126
|
toasts: e.toasts.filter((e) => e.id !== t.toastId)
|
|
2129
2127
|
};
|
|
2130
2128
|
}
|
|
2131
|
-
},
|
|
2129
|
+
}, Aa = [], ja = { toasts: [] };
|
|
2132
2130
|
function Q(e) {
|
|
2133
|
-
|
|
2134
|
-
e(
|
|
2131
|
+
ja = ka(ja, e), Aa.forEach((e) => {
|
|
2132
|
+
e(ja);
|
|
2135
2133
|
});
|
|
2136
2134
|
}
|
|
2137
|
-
function
|
|
2138
|
-
let t =
|
|
2135
|
+
function Ma({ ...e }) {
|
|
2136
|
+
let t = Ea(), n = (e) => Q({
|
|
2139
2137
|
type: "UPDATE_TOAST",
|
|
2140
2138
|
toast: {
|
|
2141
2139
|
...e,
|
|
@@ -2161,14 +2159,14 @@ function Oa({ ...e }) {
|
|
|
2161
2159
|
update: n
|
|
2162
2160
|
};
|
|
2163
2161
|
}
|
|
2164
|
-
function
|
|
2165
|
-
let [t, n] = e.useState(
|
|
2166
|
-
return e.useEffect(() => (
|
|
2167
|
-
let e =
|
|
2168
|
-
e > -1 &&
|
|
2162
|
+
function Na() {
|
|
2163
|
+
let [t, n] = e.useState(ja);
|
|
2164
|
+
return e.useEffect(() => (Aa.push(n), () => {
|
|
2165
|
+
let e = Aa.indexOf(n);
|
|
2166
|
+
e > -1 && Aa.splice(e, 1);
|
|
2169
2167
|
}), []), {
|
|
2170
2168
|
...t,
|
|
2171
|
-
toast:
|
|
2169
|
+
toast: Ma,
|
|
2172
2170
|
dismiss: (e) => Q({
|
|
2173
2171
|
type: "DISMISS_TOAST",
|
|
2174
2172
|
toastId: e
|
|
@@ -2177,9 +2175,9 @@ function ka() {
|
|
|
2177
2175
|
}
|
|
2178
2176
|
//#endregion
|
|
2179
2177
|
//#region src/theme-provider.tsx
|
|
2180
|
-
var
|
|
2181
|
-
function
|
|
2182
|
-
let o = g(), s = i || "system", c = s === "system" ? o === "dark" ? "dark" : "light" : s, l = c === "dark" ?
|
|
2178
|
+
var Pa = e.createContext(null);
|
|
2179
|
+
function Fa({ children: t, className: n, style: r, value: i, ...a }) {
|
|
2180
|
+
let o = g(), s = i || "system", c = s === "system" ? o === "dark" ? "dark" : "light" : s, l = c === "dark" ? qe.dark : qe.light, u = c === "dark", d = e.useMemo(() => ({
|
|
2183
2181
|
theme: s,
|
|
2184
2182
|
resolvedTheme: c,
|
|
2185
2183
|
tokens: l
|
|
@@ -2188,10 +2186,10 @@ function ja({ children: t, className: n, style: r, value: i, ...a }) {
|
|
|
2188
2186
|
c,
|
|
2189
2187
|
l
|
|
2190
2188
|
]);
|
|
2191
|
-
return /* @__PURE__ */ v(
|
|
2189
|
+
return /* @__PURE__ */ v(Pa.Provider, {
|
|
2192
2190
|
value: d,
|
|
2193
2191
|
children: /* @__PURE__ */ v(h, {
|
|
2194
|
-
className:
|
|
2192
|
+
className: q("flex-1", u ? "dark" : "", n),
|
|
2195
2193
|
style: [{ backgroundColor: l.background }, r],
|
|
2196
2194
|
...a,
|
|
2197
2195
|
children: t
|
|
@@ -2200,20 +2198,20 @@ function ja({ children: t, className: n, style: r, value: i, ...a }) {
|
|
|
2200
2198
|
}
|
|
2201
2199
|
//#endregion
|
|
2202
2200
|
//#region src/hooks/use-theme.ts
|
|
2203
|
-
function
|
|
2204
|
-
let t = e.useContext(
|
|
2201
|
+
function Ia() {
|
|
2202
|
+
let t = e.useContext(Pa);
|
|
2205
2203
|
if (t) return t;
|
|
2206
2204
|
let n = g(), r = n;
|
|
2207
2205
|
return {
|
|
2208
2206
|
theme: n,
|
|
2209
2207
|
resolvedTheme: r,
|
|
2210
|
-
tokens: r === "dark" ?
|
|
2208
|
+
tokens: r === "dark" ? qe.dark : qe.light
|
|
2211
2209
|
};
|
|
2212
2210
|
}
|
|
2213
2211
|
//#endregion
|
|
2214
2212
|
//#region src/lib/iconWithClassName.ts
|
|
2215
|
-
function
|
|
2216
|
-
|
|
2213
|
+
function La(e) {
|
|
2214
|
+
Je(e, { className: {
|
|
2217
2215
|
target: "style",
|
|
2218
2216
|
nativeStyleToProp: {
|
|
2219
2217
|
color: !0,
|
|
@@ -2221,98 +2219,101 @@ function Na(e) {
|
|
|
2221
2219
|
}
|
|
2222
2220
|
} });
|
|
2223
2221
|
}
|
|
2224
|
-
|
|
2225
|
-
function
|
|
2226
|
-
let { theme: a, resolvedTheme: o } =
|
|
2227
|
-
t ? t(e) : e === "system" ? i.setColorScheme(
|
|
2228
|
-
},
|
|
2222
|
+
La(ue), La(se), La(de);
|
|
2223
|
+
function Ra({ variant: e = "binary", onThemeChange: t, customTheme: n, className: r }) {
|
|
2224
|
+
let { theme: a, resolvedTheme: o, tokens: s } = Ia(), c = n ?? a, l = (n === "system" || !n ? o : n) === "dark", u = c === "system", d = (e) => {
|
|
2225
|
+
t ? t(e) : e === "system" ? i.setColorScheme("unspecified") : i.setColorScheme(e);
|
|
2226
|
+
}, f = () => /* @__PURE__ */ y(h, {
|
|
2229
2227
|
className: "flex h-6 w-6 items-center justify-center",
|
|
2230
2228
|
children: [
|
|
2231
2229
|
/* @__PURE__ */ v(h, {
|
|
2232
|
-
className:
|
|
2233
|
-
children: /* @__PURE__ */ v(
|
|
2230
|
+
className: q("items-center justify-center transition-all", !u && !l ? "rotate-0 opacity-100" : "absolute -rotate-90 opacity-0"),
|
|
2231
|
+
children: /* @__PURE__ */ v(ue, {
|
|
2234
2232
|
size: 18,
|
|
2235
|
-
|
|
2233
|
+
color: s.foreground
|
|
2236
2234
|
})
|
|
2237
2235
|
}),
|
|
2238
2236
|
/* @__PURE__ */ v(h, {
|
|
2239
|
-
className:
|
|
2240
|
-
children: /* @__PURE__ */ v(
|
|
2237
|
+
className: q("items-center justify-center transition-all", !u && l ? "rotate-0 opacity-100" : "absolute rotate-90 opacity-0"),
|
|
2238
|
+
children: /* @__PURE__ */ v(se, {
|
|
2241
2239
|
size: 18,
|
|
2242
|
-
|
|
2240
|
+
color: s.foreground
|
|
2243
2241
|
})
|
|
2244
2242
|
}),
|
|
2245
2243
|
/* @__PURE__ */ v(h, {
|
|
2246
|
-
className:
|
|
2247
|
-
children: /* @__PURE__ */ v(
|
|
2244
|
+
className: q("items-center justify-center transition-all", u ? "rotate-0 opacity-100" : "absolute rotate-90 opacity-0"),
|
|
2245
|
+
children: /* @__PURE__ */ v(de, {
|
|
2248
2246
|
size: 18,
|
|
2249
|
-
|
|
2247
|
+
color: s.foreground
|
|
2250
2248
|
})
|
|
2251
2249
|
})
|
|
2252
2250
|
]
|
|
2253
2251
|
});
|
|
2254
|
-
return e === "ternary" ? /* @__PURE__ */ y(
|
|
2255
|
-
className:
|
|
2256
|
-
children: /* @__PURE__ */ v(
|
|
2257
|
-
}), /* @__PURE__ */ y(
|
|
2252
|
+
return e === "ternary" ? /* @__PURE__ */ y(Xn, { children: [/* @__PURE__ */ v(Zn, {
|
|
2253
|
+
className: q("relative h-9 w-9 flex-row items-center justify-center rounded-md bg-transparent transition-colors active:opacity-80", r),
|
|
2254
|
+
children: /* @__PURE__ */ v(f, {})
|
|
2255
|
+
}), /* @__PURE__ */ y(rr, {
|
|
2258
2256
|
align: "end",
|
|
2259
2257
|
children: [
|
|
2260
2258
|
/* @__PURE__ */ y(X, {
|
|
2261
|
-
onSelect: () =>
|
|
2262
|
-
children: [/* @__PURE__ */ v(
|
|
2259
|
+
onSelect: () => d("light"),
|
|
2260
|
+
children: [/* @__PURE__ */ v(ue, {
|
|
2263
2261
|
size: 14,
|
|
2264
|
-
|
|
2265
|
-
|
|
2262
|
+
color: s.foreground,
|
|
2263
|
+
className: "mr-2"
|
|
2264
|
+
}), /* @__PURE__ */ v(Y, { children: "Light" })]
|
|
2266
2265
|
}),
|
|
2267
2266
|
/* @__PURE__ */ y(X, {
|
|
2268
|
-
onSelect: () =>
|
|
2269
|
-
children: [/* @__PURE__ */ v(
|
|
2267
|
+
onSelect: () => d("dark"),
|
|
2268
|
+
children: [/* @__PURE__ */ v(se, {
|
|
2270
2269
|
size: 14,
|
|
2271
|
-
|
|
2272
|
-
|
|
2270
|
+
color: s.foreground,
|
|
2271
|
+
className: "mr-2"
|
|
2272
|
+
}), /* @__PURE__ */ v(Y, { children: "Dark" })]
|
|
2273
2273
|
}),
|
|
2274
2274
|
/* @__PURE__ */ y(X, {
|
|
2275
|
-
onSelect: () =>
|
|
2276
|
-
children: [/* @__PURE__ */ v(
|
|
2275
|
+
onSelect: () => d("system"),
|
|
2276
|
+
children: [/* @__PURE__ */ v(de, {
|
|
2277
2277
|
size: 14,
|
|
2278
|
-
|
|
2279
|
-
|
|
2278
|
+
color: s.foreground,
|
|
2279
|
+
className: "mr-2"
|
|
2280
|
+
}), /* @__PURE__ */ v(Y, { children: "System" })]
|
|
2280
2281
|
})
|
|
2281
2282
|
]
|
|
2282
|
-
})] }) : /* @__PURE__ */ v(
|
|
2283
|
+
})] }) : /* @__PURE__ */ v(J, {
|
|
2283
2284
|
variant: "ghost",
|
|
2284
2285
|
size: "icon",
|
|
2285
|
-
className:
|
|
2286
|
-
onPress: () =>
|
|
2287
|
-
children: /* @__PURE__ */ v(
|
|
2286
|
+
className: q("relative h-9 w-9", r),
|
|
2287
|
+
onPress: () => d(c === "dark" ? "light" : "dark"),
|
|
2288
|
+
children: /* @__PURE__ */ v(f, {})
|
|
2288
2289
|
});
|
|
2289
2290
|
}
|
|
2290
2291
|
//#endregion
|
|
2291
2292
|
//#region src/toaster.tsx
|
|
2292
|
-
var
|
|
2293
|
-
let { toasts: e } =
|
|
2294
|
-
return /* @__PURE__ */ v(
|
|
2293
|
+
var za = () => {
|
|
2294
|
+
let { toasts: e } = Na();
|
|
2295
|
+
return /* @__PURE__ */ v(Ki, { children: /* @__PURE__ */ v(h, {
|
|
2295
2296
|
className: "pointer-events-none absolute right-6 bottom-6 left-6 z-50 flex flex-col gap-2",
|
|
2296
|
-
children: e.map(({ id: e, title: t, description: n, action: r, ...i }) => /* @__PURE__ */ y(
|
|
2297
|
+
children: e.map(({ id: e, title: t, description: n, action: r, ...i }) => /* @__PURE__ */ y(Ji, {
|
|
2297
2298
|
...i,
|
|
2298
2299
|
className: "pointer-events-auto",
|
|
2299
2300
|
children: [
|
|
2300
2301
|
/* @__PURE__ */ y(h, {
|
|
2301
2302
|
className: "flex flex-1 flex-col gap-1",
|
|
2302
|
-
children: [t && /* @__PURE__ */ v(
|
|
2303
|
+
children: [t && /* @__PURE__ */ v(Yi, { children: t }), n && /* @__PURE__ */ v(Xi, { children: n })]
|
|
2303
2304
|
}),
|
|
2304
2305
|
r,
|
|
2305
|
-
/* @__PURE__ */ v(
|
|
2306
|
+
/* @__PURE__ */ v(Zi, {})
|
|
2306
2307
|
]
|
|
2307
2308
|
}, e))
|
|
2308
2309
|
}) });
|
|
2309
|
-
},
|
|
2310
|
-
function
|
|
2311
|
-
let t = e.useContext(
|
|
2310
|
+
}, Ba = e.createContext(void 0);
|
|
2311
|
+
function Va() {
|
|
2312
|
+
let t = e.useContext(Ba);
|
|
2312
2313
|
if (!t) throw Error("useTOC must be used within a TableOfContents provider");
|
|
2313
2314
|
return t;
|
|
2314
2315
|
}
|
|
2315
|
-
function
|
|
2316
|
+
function Ha({ children: t, activeId: n }) {
|
|
2316
2317
|
let [r, i] = e.useState([]), [a, o] = e.useState(null), s = e.useRef(null), c = e.useMemo(() => {
|
|
2317
2318
|
let e = n || a;
|
|
2318
2319
|
return r.find((t) => t.id === e)?.text || null;
|
|
@@ -2369,7 +2370,7 @@ function Ra({ children: t, activeId: n }) {
|
|
|
2369
2370
|
d,
|
|
2370
2371
|
f
|
|
2371
2372
|
]);
|
|
2372
|
-
return /* @__PURE__ */ v(
|
|
2373
|
+
return /* @__PURE__ */ v(Ba.Provider, {
|
|
2373
2374
|
value: p,
|
|
2374
2375
|
children: /* @__PURE__ */ v(h, {
|
|
2375
2376
|
className: "flex-1",
|
|
@@ -2377,8 +2378,8 @@ function Ra({ children: t, activeId: n }) {
|
|
|
2377
2378
|
})
|
|
2378
2379
|
});
|
|
2379
2380
|
}
|
|
2380
|
-
function
|
|
2381
|
-
let { registerHeading: a, unregisterHeading: o } =
|
|
2381
|
+
function Ua({ children: t, level: n = 2, id: r, className: i }) {
|
|
2382
|
+
let { registerHeading: a, unregisterHeading: o } = Va(), s = r || Ye(t), c = e.useCallback((e) => {
|
|
2382
2383
|
let { y: r } = e.nativeEvent.layout;
|
|
2383
2384
|
a(s, t, n, r);
|
|
2384
2385
|
}, [
|
|
@@ -2389,20 +2390,20 @@ function za({ children: t, level: n = 2, id: r, className: i }) {
|
|
|
2389
2390
|
]);
|
|
2390
2391
|
return e.useEffect(() => () => o(s), [s, o]), /* @__PURE__ */ v(h, {
|
|
2391
2392
|
onLayout: c,
|
|
2392
|
-
children: /* @__PURE__ */ v(
|
|
2393
|
+
children: /* @__PURE__ */ v(Y, {
|
|
2393
2394
|
variant: n === 1 ? "h1" : n === 2 ? "h2" : n === 3 ? "h3" : "h4",
|
|
2394
2395
|
className: i,
|
|
2395
2396
|
children: t
|
|
2396
2397
|
})
|
|
2397
2398
|
});
|
|
2398
2399
|
}
|
|
2399
|
-
function
|
|
2400
|
-
let { headings: t, activeId: n, scrollToHeading: r } =
|
|
2400
|
+
function Wa({ className: e }) {
|
|
2401
|
+
let { headings: t, activeId: n, scrollToHeading: r } = Va();
|
|
2401
2402
|
if (t.length === 0) return null;
|
|
2402
2403
|
let i = Math.min(...t.map((e) => e.level));
|
|
2403
2404
|
return /* @__PURE__ */ y(h, {
|
|
2404
|
-
className:
|
|
2405
|
-
children: [/* @__PURE__ */ v(
|
|
2405
|
+
className: q("space-y-2 p-4", e),
|
|
2406
|
+
children: [/* @__PURE__ */ v(Y, {
|
|
2406
2407
|
variant: "overline",
|
|
2407
2408
|
className: "mb-2 font-bold",
|
|
2408
2409
|
children: "On this page"
|
|
@@ -2413,19 +2414,19 @@ function Ba({ className: e }) {
|
|
|
2413
2414
|
style: { paddingLeft: (e.level - i) * 16 },
|
|
2414
2415
|
className: "py-1",
|
|
2415
2416
|
children: /* @__PURE__ */ v(f, {
|
|
2416
|
-
className:
|
|
2417
|
+
className: q("text-sm", t ? "text-primary font-bold" : "text-muted-foreground"),
|
|
2417
2418
|
children: e.text
|
|
2418
2419
|
})
|
|
2419
2420
|
}, e.id);
|
|
2420
2421
|
})]
|
|
2421
2422
|
});
|
|
2422
2423
|
}
|
|
2423
|
-
function
|
|
2424
|
-
let { scrollViewRef: n, onScroll: r } =
|
|
2424
|
+
function Ga({ children: e, className: t }) {
|
|
2425
|
+
let { scrollViewRef: n, onScroll: r } = Va();
|
|
2425
2426
|
return /* @__PURE__ */ v(u, {
|
|
2426
2427
|
ref: n,
|
|
2427
2428
|
onScroll: r,
|
|
2428
|
-
className:
|
|
2429
|
+
className: q("flex-1", t),
|
|
2429
2430
|
...c.OS !== "web" && {
|
|
2430
2431
|
scrollEventThrottle: 16,
|
|
2431
2432
|
contentContainerStyle: { padding: 16 }
|
|
@@ -2433,77 +2434,77 @@ function Va({ children: e, className: t }) {
|
|
|
2433
2434
|
children: e
|
|
2434
2435
|
});
|
|
2435
2436
|
}
|
|
2436
|
-
|
|
2437
|
+
Ha.List = Wa, Ha.Content = Ga, Ha.Heading = Ua;
|
|
2437
2438
|
//#endregion
|
|
2438
2439
|
//#region src/button-group.tsx
|
|
2439
|
-
function
|
|
2440
|
+
function Ka({ className: e, orientation: t, ...n }) {
|
|
2440
2441
|
return /* @__PURE__ */ v(h, {
|
|
2441
|
-
className:
|
|
2442
|
+
className: q("flex flex-row", e),
|
|
2442
2443
|
...n
|
|
2443
2444
|
});
|
|
2444
2445
|
}
|
|
2445
|
-
function
|
|
2446
|
+
function qa({ className: e, asChild: t, ...n }) {
|
|
2446
2447
|
return /* @__PURE__ */ v(f, {
|
|
2447
|
-
className:
|
|
2448
|
+
className: q("text-sm font-medium", e),
|
|
2448
2449
|
...n
|
|
2449
2450
|
});
|
|
2450
2451
|
}
|
|
2451
|
-
function
|
|
2452
|
+
function Ja({ className: e, orientation: t, ...n }) {
|
|
2452
2453
|
return /* @__PURE__ */ v(h, {
|
|
2453
|
-
className:
|
|
2454
|
+
className: q("bg-border h-full w-px", e),
|
|
2454
2455
|
...n
|
|
2455
2456
|
});
|
|
2456
2457
|
}
|
|
2457
|
-
var
|
|
2458
|
+
var Ya = () => "";
|
|
2458
2459
|
//#endregion
|
|
2459
2460
|
//#region src/direction.tsx
|
|
2460
|
-
function
|
|
2461
|
+
function Xa({ children: e }) {
|
|
2461
2462
|
return /* @__PURE__ */ v(_, { children: e });
|
|
2462
2463
|
}
|
|
2463
|
-
function
|
|
2464
|
+
function Za() {
|
|
2464
2465
|
return "ltr";
|
|
2465
2466
|
}
|
|
2466
2467
|
//#endregion
|
|
2467
2468
|
//#region src/empty.tsx
|
|
2468
|
-
function
|
|
2469
|
+
function Qa({ className: e, ...t }) {
|
|
2469
2470
|
return /* @__PURE__ */ v(h, {
|
|
2470
|
-
className:
|
|
2471
|
+
className: q("border-border flex w-full items-center justify-center rounded-xl border-2 border-dashed p-6", e),
|
|
2471
2472
|
...t
|
|
2472
2473
|
});
|
|
2473
2474
|
}
|
|
2474
|
-
function
|
|
2475
|
+
function $a({ className: e, ...t }) {
|
|
2475
2476
|
return /* @__PURE__ */ v(h, {
|
|
2476
|
-
className:
|
|
2477
|
+
className: q("flex flex-col items-center gap-2", e),
|
|
2477
2478
|
...t
|
|
2478
2479
|
});
|
|
2479
2480
|
}
|
|
2480
|
-
function
|
|
2481
|
+
function eo({ className: e, variant: t, ...n }) {
|
|
2481
2482
|
return /* @__PURE__ */ v(h, {
|
|
2482
|
-
className:
|
|
2483
|
+
className: q("flex items-center justify-center", e),
|
|
2483
2484
|
...n
|
|
2484
2485
|
});
|
|
2485
2486
|
}
|
|
2486
|
-
function
|
|
2487
|
+
function to({ className: e, ...t }) {
|
|
2487
2488
|
return /* @__PURE__ */ v(f, {
|
|
2488
|
-
className:
|
|
2489
|
+
className: q("text-foreground text-lg font-semibold", e),
|
|
2489
2490
|
...t
|
|
2490
2491
|
});
|
|
2491
2492
|
}
|
|
2492
|
-
function
|
|
2493
|
+
function no({ className: e, ...t }) {
|
|
2493
2494
|
return /* @__PURE__ */ v(f, {
|
|
2494
|
-
className:
|
|
2495
|
+
className: q("text-muted-foreground text-center text-sm", e),
|
|
2495
2496
|
...t
|
|
2496
2497
|
});
|
|
2497
2498
|
}
|
|
2498
|
-
function
|
|
2499
|
+
function ro({ className: e, ...t }) {
|
|
2499
2500
|
return /* @__PURE__ */ v(h, {
|
|
2500
|
-
className:
|
|
2501
|
+
className: q("mt-4 flex flex-col items-center gap-2", e),
|
|
2501
2502
|
...t
|
|
2502
2503
|
});
|
|
2503
2504
|
}
|
|
2504
2505
|
//#endregion
|
|
2505
2506
|
//#region src/spinner.tsx
|
|
2506
|
-
function
|
|
2507
|
+
function io({ className: e, ...t }) {
|
|
2507
2508
|
return /* @__PURE__ */ v(n, {
|
|
2508
2509
|
size: "small",
|
|
2509
2510
|
...t
|
|
@@ -2511,53 +2512,53 @@ function eo({ className: e, ...t }) {
|
|
|
2511
2512
|
}
|
|
2512
2513
|
//#endregion
|
|
2513
2514
|
//#region src/field.tsx
|
|
2514
|
-
function
|
|
2515
|
+
function ao({ className: e, orientation: t, ...n }) {
|
|
2515
2516
|
return /* @__PURE__ */ v(h, {
|
|
2516
|
-
className:
|
|
2517
|
+
className: q("flex flex-col gap-2", e),
|
|
2517
2518
|
...n
|
|
2518
2519
|
});
|
|
2519
2520
|
}
|
|
2520
|
-
function
|
|
2521
|
+
function oo({ className: e, ...t }) {
|
|
2521
2522
|
return /* @__PURE__ */ v(h, {
|
|
2522
|
-
className:
|
|
2523
|
+
className: q("flex flex-col", e),
|
|
2523
2524
|
...t
|
|
2524
2525
|
});
|
|
2525
2526
|
}
|
|
2526
|
-
function
|
|
2527
|
+
function so({ className: e, ...t }) {
|
|
2527
2528
|
return /* @__PURE__ */ v(f, {
|
|
2528
|
-
className:
|
|
2529
|
+
className: q("text-muted-foreground text-sm", e),
|
|
2529
2530
|
...t
|
|
2530
2531
|
});
|
|
2531
2532
|
}
|
|
2532
|
-
function
|
|
2533
|
+
function co({ className: e, errors: t, children: n, ...r }) {
|
|
2533
2534
|
let i = n || t && t[0]?.message;
|
|
2534
2535
|
return i ? /* @__PURE__ */ v(f, {
|
|
2535
|
-
className:
|
|
2536
|
+
className: q("text-destructive text-sm", e),
|
|
2536
2537
|
...r,
|
|
2537
2538
|
children: i
|
|
2538
2539
|
}) : null;
|
|
2539
2540
|
}
|
|
2540
|
-
function
|
|
2541
|
+
function lo({ className: e, ...t }) {
|
|
2541
2542
|
return /* @__PURE__ */ v(h, {
|
|
2542
|
-
className:
|
|
2543
|
+
className: q("flex flex-col gap-4", e),
|
|
2543
2544
|
...t
|
|
2544
2545
|
});
|
|
2545
2546
|
}
|
|
2546
|
-
function
|
|
2547
|
+
function uo({ className: e, ...t }) {
|
|
2547
2548
|
return /* @__PURE__ */ v(f, {
|
|
2548
|
-
className:
|
|
2549
|
+
className: q("text-sm font-medium", e),
|
|
2549
2550
|
...t
|
|
2550
2551
|
});
|
|
2551
2552
|
}
|
|
2552
|
-
function
|
|
2553
|
+
function fo({ className: e, variant: t, ...n }) {
|
|
2553
2554
|
return /* @__PURE__ */ v(f, {
|
|
2554
|
-
className:
|
|
2555
|
+
className: q("font-medium", t === "label" ? "text-sm" : "text-base", e),
|
|
2555
2556
|
...n
|
|
2556
2557
|
});
|
|
2557
2558
|
}
|
|
2558
|
-
function
|
|
2559
|
+
function po({ className: e, children: t, ...n }) {
|
|
2559
2560
|
return /* @__PURE__ */ v(h, {
|
|
2560
|
-
className:
|
|
2561
|
+
className: q("bg-border my-2 h-px", e),
|
|
2561
2562
|
...n,
|
|
2562
2563
|
children: t ? /* @__PURE__ */ v(f, {
|
|
2563
2564
|
className: "bg-background absolute px-2 text-xs",
|
|
@@ -2565,64 +2566,64 @@ function co({ className: e, children: t, ...n }) {
|
|
|
2565
2566
|
}) : null
|
|
2566
2567
|
});
|
|
2567
2568
|
}
|
|
2568
|
-
function
|
|
2569
|
+
function mo({ className: e, ...t }) {
|
|
2569
2570
|
return /* @__PURE__ */ v(h, {
|
|
2570
|
-
className:
|
|
2571
|
+
className: q("flex flex-col gap-4", e),
|
|
2571
2572
|
...t
|
|
2572
2573
|
});
|
|
2573
2574
|
}
|
|
2574
|
-
function
|
|
2575
|
+
function ho({ className: e, ...t }) {
|
|
2575
2576
|
return /* @__PURE__ */ v(f, {
|
|
2576
|
-
className:
|
|
2577
|
+
className: q("text-sm font-medium", e),
|
|
2577
2578
|
...t
|
|
2578
2579
|
});
|
|
2579
2580
|
}
|
|
2580
2581
|
//#endregion
|
|
2581
2582
|
//#region src/input-group.tsx
|
|
2582
|
-
function
|
|
2583
|
+
function go({ className: e, ...t }) {
|
|
2583
2584
|
return /* @__PURE__ */ v(h, {
|
|
2584
|
-
className:
|
|
2585
|
+
className: q("border-input flex flex-row items-center rounded-md border", e),
|
|
2585
2586
|
...t
|
|
2586
2587
|
});
|
|
2587
2588
|
}
|
|
2588
|
-
function
|
|
2589
|
+
function _o({ className: e, align: t, ...n }) {
|
|
2589
2590
|
return /* @__PURE__ */ v(h, {
|
|
2590
|
-
className:
|
|
2591
|
+
className: q("p-2", e),
|
|
2591
2592
|
...n
|
|
2592
2593
|
});
|
|
2593
2594
|
}
|
|
2594
|
-
function
|
|
2595
|
-
return /* @__PURE__ */ v(
|
|
2595
|
+
function vo({ className: e, type: t, variant: n, size: r, ...i }) {
|
|
2596
|
+
return /* @__PURE__ */ v(J, {
|
|
2596
2597
|
variant: n,
|
|
2597
2598
|
size: r,
|
|
2598
2599
|
className: e,
|
|
2599
2600
|
...i
|
|
2600
2601
|
});
|
|
2601
2602
|
}
|
|
2602
|
-
function
|
|
2603
|
+
function yo({ className: e, ...t }) {
|
|
2603
2604
|
return /* @__PURE__ */ v(f, {
|
|
2604
|
-
className:
|
|
2605
|
+
className: q("text-muted-foreground text-sm", e),
|
|
2605
2606
|
...t
|
|
2606
2607
|
});
|
|
2607
2608
|
}
|
|
2608
|
-
function
|
|
2609
|
+
function bo({ className: e, ...t }) {
|
|
2609
2610
|
return /* @__PURE__ */ v(p, {
|
|
2610
|
-
className:
|
|
2611
|
+
className: q("text-foreground flex-1 px-3 py-2", e),
|
|
2611
2612
|
...t
|
|
2612
2613
|
});
|
|
2613
2614
|
}
|
|
2614
|
-
function
|
|
2615
|
+
function xo({ className: e, ...t }) {
|
|
2615
2616
|
return /* @__PURE__ */ v(p, {
|
|
2616
2617
|
multiline: !0,
|
|
2617
|
-
className:
|
|
2618
|
+
className: q("text-foreground flex-1 px-3 py-2", e),
|
|
2618
2619
|
...t
|
|
2619
2620
|
});
|
|
2620
2621
|
}
|
|
2621
2622
|
//#endregion
|
|
2622
2623
|
//#region src/native-select.tsx
|
|
2623
|
-
function
|
|
2624
|
+
function So({ className: e, size: t, ...n }) {
|
|
2624
2625
|
return /* @__PURE__ */ v(h, {
|
|
2625
|
-
className:
|
|
2626
|
+
className: q("border-input rounded-md border p-2", e),
|
|
2626
2627
|
...n,
|
|
2627
2628
|
children: /* @__PURE__ */ v(f, {
|
|
2628
2629
|
className: "text-muted-foreground",
|
|
@@ -2630,13 +2631,13 @@ function vo({ className: e, size: t, ...n }) {
|
|
|
2630
2631
|
})
|
|
2631
2632
|
});
|
|
2632
2633
|
}
|
|
2633
|
-
function
|
|
2634
|
+
function Co({ className: e, ...t }) {
|
|
2634
2635
|
return /* @__PURE__ */ v(h, {
|
|
2635
2636
|
className: e,
|
|
2636
2637
|
...t
|
|
2637
2638
|
});
|
|
2638
2639
|
}
|
|
2639
|
-
function
|
|
2640
|
+
function wo({ className: e, ...t }) {
|
|
2640
2641
|
return /* @__PURE__ */ v(h, {
|
|
2641
2642
|
className: e,
|
|
2642
2643
|
...t
|
|
@@ -2644,91 +2645,91 @@ function bo({ className: e, ...t }) {
|
|
|
2644
2645
|
}
|
|
2645
2646
|
//#endregion
|
|
2646
2647
|
//#region src/kbd.tsx
|
|
2647
|
-
function
|
|
2648
|
+
function To({ className: e, ...t }) {
|
|
2648
2649
|
return /* @__PURE__ */ v(f, {
|
|
2649
|
-
className:
|
|
2650
|
+
className: q("bg-muted text-muted-foreground rounded-sm px-1 font-mono text-xs", e),
|
|
2650
2651
|
...t
|
|
2651
2652
|
});
|
|
2652
2653
|
}
|
|
2653
|
-
function
|
|
2654
|
+
function Eo({ className: e, ...t }) {
|
|
2654
2655
|
return /* @__PURE__ */ v(h, {
|
|
2655
|
-
className:
|
|
2656
|
+
className: q("flex flex-row items-center gap-1", e),
|
|
2656
2657
|
...t
|
|
2657
2658
|
});
|
|
2658
2659
|
}
|
|
2659
2660
|
//#endregion
|
|
2660
2661
|
//#region src/item.tsx
|
|
2661
|
-
function
|
|
2662
|
+
function Do({ className: e, variant: t, size: n, ...r }) {
|
|
2662
2663
|
return /* @__PURE__ */ v(h, {
|
|
2663
|
-
className:
|
|
2664
|
+
className: q("flex flex-row flex-wrap items-center gap-2 rounded-lg border p-3", e),
|
|
2664
2665
|
...r
|
|
2665
2666
|
});
|
|
2666
2667
|
}
|
|
2667
|
-
function
|
|
2668
|
+
function Oo({ className: e, ...t }) {
|
|
2668
2669
|
return /* @__PURE__ */ v(h, {
|
|
2669
|
-
className:
|
|
2670
|
+
className: q("flex flex-row items-center gap-2", e),
|
|
2670
2671
|
...t
|
|
2671
2672
|
});
|
|
2672
2673
|
}
|
|
2673
|
-
function
|
|
2674
|
+
function ko({ className: e, ...t }) {
|
|
2674
2675
|
return /* @__PURE__ */ v(h, {
|
|
2675
|
-
className:
|
|
2676
|
+
className: q("flex flex-1 flex-col gap-1", e),
|
|
2676
2677
|
...t
|
|
2677
2678
|
});
|
|
2678
2679
|
}
|
|
2679
|
-
function
|
|
2680
|
+
function Ao({ className: e, ...t }) {
|
|
2680
2681
|
return /* @__PURE__ */ v(f, {
|
|
2681
|
-
className:
|
|
2682
|
+
className: q("text-muted-foreground text-sm", e),
|
|
2682
2683
|
...t
|
|
2683
2684
|
});
|
|
2684
2685
|
}
|
|
2685
|
-
function
|
|
2686
|
+
function jo({ className: e, ...t }) {
|
|
2686
2687
|
return /* @__PURE__ */ v(h, {
|
|
2687
|
-
className:
|
|
2688
|
+
className: q("flex w-full flex-row items-center justify-between gap-2", e),
|
|
2688
2689
|
...t
|
|
2689
2690
|
});
|
|
2690
2691
|
}
|
|
2691
|
-
function
|
|
2692
|
+
function Mo({ className: e, ...t }) {
|
|
2692
2693
|
return /* @__PURE__ */ v(h, {
|
|
2693
|
-
className:
|
|
2694
|
+
className: q("flex flex-col gap-4", e),
|
|
2694
2695
|
...t
|
|
2695
2696
|
});
|
|
2696
2697
|
}
|
|
2697
|
-
function
|
|
2698
|
+
function No({ className: e, ...t }) {
|
|
2698
2699
|
return /* @__PURE__ */ v(h, {
|
|
2699
|
-
className:
|
|
2700
|
+
className: q("flex w-full flex-row items-center justify-between gap-2", e),
|
|
2700
2701
|
...t
|
|
2701
2702
|
});
|
|
2702
2703
|
}
|
|
2703
|
-
function
|
|
2704
|
+
function Po({ className: e, variant: t, ...n }) {
|
|
2704
2705
|
return /* @__PURE__ */ v(h, {
|
|
2705
|
-
className:
|
|
2706
|
+
className: q("flex shrink-0 items-center justify-center gap-2", e),
|
|
2706
2707
|
...n
|
|
2707
2708
|
});
|
|
2708
2709
|
}
|
|
2709
|
-
function
|
|
2710
|
+
function Fo({ className: e, orientation: t, ...n }) {
|
|
2710
2711
|
return /* @__PURE__ */ v(h, {
|
|
2711
|
-
className:
|
|
2712
|
+
className: q("bg-border my-2 h-px w-full", e),
|
|
2712
2713
|
...n
|
|
2713
2714
|
});
|
|
2714
2715
|
}
|
|
2715
|
-
function
|
|
2716
|
+
function Io({ className: e, ...t }) {
|
|
2716
2717
|
return /* @__PURE__ */ v(f, {
|
|
2717
|
-
className:
|
|
2718
|
+
className: q("text-sm font-medium", e),
|
|
2718
2719
|
...t
|
|
2719
2720
|
});
|
|
2720
2721
|
}
|
|
2721
2722
|
//#endregion
|
|
2722
2723
|
//#region src/combobox.tsx
|
|
2723
|
-
var
|
|
2724
|
+
var Lo = e.createContext(null);
|
|
2724
2725
|
function $() {
|
|
2725
|
-
let t = e.useContext(
|
|
2726
|
+
let t = e.useContext(Lo);
|
|
2726
2727
|
if (!t) throw Error("Combobox components must be rendered within a Combobox provider");
|
|
2727
2728
|
return t;
|
|
2728
2729
|
}
|
|
2729
|
-
function
|
|
2730
|
+
function Ro({ className: t, value: n, onValueChange: r, ...i }) {
|
|
2730
2731
|
let [a, o] = e.useState(!1), [s, c] = e.useState(n || ""), [l, u] = e.useState(""), d = n === void 0 ? s : n;
|
|
2731
|
-
return /* @__PURE__ */ v(
|
|
2732
|
+
return /* @__PURE__ */ v(Lo.Provider, {
|
|
2732
2733
|
value: {
|
|
2733
2734
|
open: a,
|
|
2734
2735
|
setOpen: o,
|
|
@@ -2739,36 +2740,36 @@ function Po({ className: t, value: n, onValueChange: r, ...i }) {
|
|
|
2739
2740
|
searchQuery: l,
|
|
2740
2741
|
setSearchQuery: u
|
|
2741
2742
|
},
|
|
2742
|
-
children: /* @__PURE__ */ v(
|
|
2743
|
+
children: /* @__PURE__ */ v(An, {
|
|
2743
2744
|
open: a,
|
|
2744
2745
|
onOpenChange: o,
|
|
2745
2746
|
children: /* @__PURE__ */ v(h, {
|
|
2746
|
-
className:
|
|
2747
|
+
className: q("relative", t),
|
|
2747
2748
|
...i
|
|
2748
2749
|
})
|
|
2749
2750
|
})
|
|
2750
2751
|
});
|
|
2751
2752
|
}
|
|
2752
|
-
function
|
|
2753
|
+
function zo({ className: e, children: t, ...n }) {
|
|
2753
2754
|
let { value: r } = $();
|
|
2754
2755
|
return /* @__PURE__ */ v(h, {
|
|
2755
2756
|
className: e,
|
|
2756
2757
|
...n,
|
|
2757
|
-
children: /* @__PURE__ */ v(
|
|
2758
|
+
children: /* @__PURE__ */ v(Y, {
|
|
2758
2759
|
className: "text-sm",
|
|
2759
2760
|
children: t || r || "Select an item..."
|
|
2760
2761
|
})
|
|
2761
2762
|
});
|
|
2762
2763
|
}
|
|
2763
|
-
function
|
|
2764
|
-
return /* @__PURE__ */ v(
|
|
2764
|
+
function Bo({ className: e, children: t, ...n }) {
|
|
2765
|
+
return /* @__PURE__ */ v(jn, {
|
|
2765
2766
|
asChild: !0,
|
|
2766
2767
|
children: /* @__PURE__ */ y(l, {
|
|
2767
|
-
className:
|
|
2768
|
+
className: q("border-input bg-background text-foreground flex h-10 w-full flex-row items-center justify-between rounded-md border px-3 py-2 text-sm", e),
|
|
2768
2769
|
...n,
|
|
2769
2770
|
children: [/* @__PURE__ */ v(h, {
|
|
2770
2771
|
className: "flex-1 flex-row items-center",
|
|
2771
|
-
children:
|
|
2772
|
+
children: K(t, Y)
|
|
2772
2773
|
}), /* @__PURE__ */ v(w, {
|
|
2773
2774
|
size: 16,
|
|
2774
2775
|
className: "text-muted-foreground opacity-50"
|
|
@@ -2776,24 +2777,24 @@ function Io({ className: e, children: t, ...n }) {
|
|
|
2776
2777
|
})
|
|
2777
2778
|
});
|
|
2778
2779
|
}
|
|
2779
|
-
function
|
|
2780
|
+
function Vo({ className: e, children: t, ...n }) {
|
|
2780
2781
|
let { setValue: r } = $();
|
|
2781
2782
|
return /* @__PURE__ */ v(l, {
|
|
2782
|
-
className:
|
|
2783
|
+
className: q("flex items-center justify-center p-1", e),
|
|
2783
2784
|
onPress: () => r(""),
|
|
2784
2785
|
...n,
|
|
2785
|
-
children: t || /* @__PURE__ */ v(
|
|
2786
|
+
children: t || /* @__PURE__ */ v(D, {
|
|
2786
2787
|
size: 14,
|
|
2787
2788
|
className: "text-muted-foreground"
|
|
2788
2789
|
})
|
|
2789
2790
|
});
|
|
2790
2791
|
}
|
|
2791
|
-
function
|
|
2792
|
+
function Ho({ className: e, showClear: t, showTrigger: n, placeholder: r = "Search...", ...i }) {
|
|
2792
2793
|
let { searchQuery: a, setSearchQuery: o } = $();
|
|
2793
2794
|
return /* @__PURE__ */ v(h, {
|
|
2794
2795
|
className: "border-border flex flex-row items-center border-b px-3",
|
|
2795
2796
|
children: /* @__PURE__ */ v(p, {
|
|
2796
|
-
className:
|
|
2797
|
+
className: q("flex h-12 w-full rounded-md bg-transparent py-3 text-sm outline-none", e),
|
|
2797
2798
|
placeholder: r,
|
|
2798
2799
|
placeholderTextColor: "#a1a1aa",
|
|
2799
2800
|
value: a,
|
|
@@ -2803,32 +2804,32 @@ function Ro({ className: e, showClear: t, showTrigger: n, placeholder: r = "Sear
|
|
|
2803
2804
|
})
|
|
2804
2805
|
});
|
|
2805
2806
|
}
|
|
2806
|
-
function
|
|
2807
|
-
return /* @__PURE__ */ v(
|
|
2807
|
+
function Uo({ className: e, side: t, sideOffset: n, align: r, alignOffset: i, anchor: a, ...o }) {
|
|
2808
|
+
return /* @__PURE__ */ v(Fn, {
|
|
2808
2809
|
className: "p-0",
|
|
2809
2810
|
children: /* @__PURE__ */ v(h, {
|
|
2810
|
-
className:
|
|
2811
|
+
className: q("bg-popover flex max-h-96 w-full flex-col overflow-hidden rounded-md", e),
|
|
2811
2812
|
...o
|
|
2812
2813
|
})
|
|
2813
2814
|
});
|
|
2814
2815
|
}
|
|
2815
|
-
function
|
|
2816
|
+
function Wo({ className: e, ...t }) {
|
|
2816
2817
|
return /* @__PURE__ */ v(h, {
|
|
2817
|
-
className:
|
|
2818
|
+
className: q("max-h-[300px] overflow-hidden", e),
|
|
2818
2819
|
...t
|
|
2819
2820
|
});
|
|
2820
2821
|
}
|
|
2821
|
-
function
|
|
2822
|
+
function Go({ className: t, children: n, value: r, ...i }) {
|
|
2822
2823
|
let { value: a, setValue: o, searchQuery: s } = $(), c = e.Children.toArray(n).join("").toLowerCase();
|
|
2823
2824
|
if (s && !c.includes(s.toLowerCase()) && !r.toLowerCase().includes(s.toLowerCase())) return null;
|
|
2824
2825
|
let u = a === r;
|
|
2825
2826
|
return /* @__PURE__ */ y(l, {
|
|
2826
|
-
className:
|
|
2827
|
+
className: q("active:bg-accent relative flex w-full flex-row items-center rounded-sm py-2.5 pr-8 pl-2 text-sm outline-none", u && "bg-accent", t),
|
|
2827
2828
|
onPress: () => o(r),
|
|
2828
2829
|
...i,
|
|
2829
2830
|
children: [/* @__PURE__ */ v(h, {
|
|
2830
2831
|
className: "flex-1",
|
|
2831
|
-
children:
|
|
2832
|
+
children: K(n, Y, { className: u ? "font-semibold" : "" })
|
|
2832
2833
|
}), u && /* @__PURE__ */ v(h, {
|
|
2833
2834
|
className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
2834
2835
|
children: /* @__PURE__ */ v(C, {
|
|
@@ -2838,71 +2839,71 @@ function Vo({ className: t, children: n, value: r, ...i }) {
|
|
|
2838
2839
|
})]
|
|
2839
2840
|
});
|
|
2840
2841
|
}
|
|
2841
|
-
function
|
|
2842
|
+
function Ko({ className: e, ...t }) {
|
|
2842
2843
|
return /* @__PURE__ */ v(h, {
|
|
2843
|
-
className:
|
|
2844
|
+
className: q("text-foreground overflow-hidden p-1", e),
|
|
2844
2845
|
...t
|
|
2845
2846
|
});
|
|
2846
2847
|
}
|
|
2847
|
-
function
|
|
2848
|
+
function qo({ className: e, ...t }) {
|
|
2848
2849
|
return /* @__PURE__ */ v(h, {
|
|
2849
|
-
className:
|
|
2850
|
+
className: q("text-muted-foreground px-2 py-1.5 text-xs font-semibold", e),
|
|
2850
2851
|
...t
|
|
2851
2852
|
});
|
|
2852
2853
|
}
|
|
2853
|
-
function
|
|
2854
|
+
function Jo({ className: e, ...t }) {
|
|
2854
2855
|
return /* @__PURE__ */ v(h, {
|
|
2855
2856
|
className: e,
|
|
2856
2857
|
...t
|
|
2857
2858
|
});
|
|
2858
2859
|
}
|
|
2859
|
-
function
|
|
2860
|
+
function Yo({ className: e, children: t, ...n }) {
|
|
2860
2861
|
let { searchQuery: r } = $();
|
|
2861
2862
|
return r ? /* @__PURE__ */ v(h, {
|
|
2862
|
-
className:
|
|
2863
|
+
className: q("py-6 text-center text-sm", e),
|
|
2863
2864
|
...n,
|
|
2864
|
-
children: /* @__PURE__ */ v(
|
|
2865
|
+
children: /* @__PURE__ */ v(Y, {
|
|
2865
2866
|
className: "text-muted-foreground text-center",
|
|
2866
2867
|
children: t || "No results found."
|
|
2867
2868
|
})
|
|
2868
2869
|
}) : null;
|
|
2869
2870
|
}
|
|
2870
|
-
function
|
|
2871
|
+
function Xo({ className: e, ...t }) {
|
|
2871
2872
|
return /* @__PURE__ */ v(h, {
|
|
2872
|
-
className:
|
|
2873
|
+
className: q("bg-muted -mx-1 h-px", e),
|
|
2873
2874
|
...t
|
|
2874
2875
|
});
|
|
2875
2876
|
}
|
|
2876
|
-
function
|
|
2877
|
+
function Zo({ className: e, ...t }) {
|
|
2877
2878
|
return /* @__PURE__ */ v(h, {
|
|
2878
|
-
className:
|
|
2879
|
+
className: q("flex flex-row flex-wrap gap-1", e),
|
|
2879
2880
|
...t
|
|
2880
2881
|
});
|
|
2881
2882
|
}
|
|
2882
|
-
function
|
|
2883
|
+
function Qo({ className: e, showRemove: t, children: n, ...r }) {
|
|
2883
2884
|
return /* @__PURE__ */ y(h, {
|
|
2884
|
-
className:
|
|
2885
|
+
className: q("bg-secondary text-secondary-foreground flex flex-row items-center rounded-md px-2 py-1", e),
|
|
2885
2886
|
...r,
|
|
2886
|
-
children: [
|
|
2887
|
+
children: [K(n, Y, { className: "text-xs" }), t && /* @__PURE__ */ v(D, {
|
|
2887
2888
|
size: 12,
|
|
2888
2889
|
className: "ml-1 opacity-50"
|
|
2889
2890
|
})]
|
|
2890
2891
|
});
|
|
2891
2892
|
}
|
|
2892
|
-
function
|
|
2893
|
+
function $o({ className: e, ...t }) {
|
|
2893
2894
|
return /* @__PURE__ */ v(p, {
|
|
2894
|
-
className:
|
|
2895
|
+
className: q("flex-1 bg-transparent px-2 py-1 outline-none", e),
|
|
2895
2896
|
...t
|
|
2896
2897
|
});
|
|
2897
2898
|
}
|
|
2898
|
-
function
|
|
2899
|
+
function es() {
|
|
2899
2900
|
return e.useRef(null);
|
|
2900
2901
|
}
|
|
2901
2902
|
//#endregion
|
|
2902
2903
|
//#region src/input-otp.tsx
|
|
2903
|
-
function
|
|
2904
|
+
function ts({ className: e, containerClassName: t, ...n }) {
|
|
2904
2905
|
return /* @__PURE__ */ v(h, {
|
|
2905
|
-
className:
|
|
2906
|
+
className: q("border-destructive/50 rounded-md border border-dashed p-4", t, e),
|
|
2906
2907
|
...n,
|
|
2907
2908
|
children: /* @__PURE__ */ v(f, {
|
|
2908
2909
|
className: "text-destructive font-mono text-xs",
|
|
@@ -2910,19 +2911,19 @@ function Zo({ className: e, containerClassName: t, ...n }) {
|
|
|
2910
2911
|
})
|
|
2911
2912
|
});
|
|
2912
2913
|
}
|
|
2913
|
-
function
|
|
2914
|
+
function ns({ className: e, ...t }) {
|
|
2914
2915
|
return /* @__PURE__ */ v(h, {
|
|
2915
2916
|
className: e,
|
|
2916
2917
|
...t
|
|
2917
2918
|
});
|
|
2918
2919
|
}
|
|
2919
|
-
function
|
|
2920
|
+
function rs({ className: e, index: t, ...n }) {
|
|
2920
2921
|
return /* @__PURE__ */ v(h, {
|
|
2921
2922
|
className: e,
|
|
2922
2923
|
...n
|
|
2923
2924
|
});
|
|
2924
2925
|
}
|
|
2925
|
-
function
|
|
2926
|
+
function is({ className: e, ...t }) {
|
|
2926
2927
|
return /* @__PURE__ */ v(h, {
|
|
2927
2928
|
className: e,
|
|
2928
2929
|
...t
|
|
@@ -2930,15 +2931,15 @@ function es({ className: e, ...t }) {
|
|
|
2930
2931
|
}
|
|
2931
2932
|
//#endregion
|
|
2932
2933
|
//#region src/sidebar.tsx
|
|
2933
|
-
function
|
|
2934
|
+
function as({ className: e, defaultOpen: t, open: n, onOpenChange: r, ...i }) {
|
|
2934
2935
|
return /* @__PURE__ */ v(h, {
|
|
2935
2936
|
className: e,
|
|
2936
2937
|
...i
|
|
2937
2938
|
});
|
|
2938
2939
|
}
|
|
2939
|
-
function
|
|
2940
|
+
function os({ className: e, side: t, variant: n, collapsible: r, ...i }) {
|
|
2940
2941
|
return /* @__PURE__ */ v(h, {
|
|
2941
|
-
className:
|
|
2942
|
+
className: q("border-destructive/50 rounded-md border border-dashed p-4", e),
|
|
2942
2943
|
...i,
|
|
2943
2944
|
children: /* @__PURE__ */ v(f, {
|
|
2944
2945
|
className: "text-destructive font-mono text-xs",
|
|
@@ -2946,133 +2947,133 @@ function ns({ className: e, side: t, variant: n, collapsible: r, ...i }) {
|
|
|
2946
2947
|
})
|
|
2947
2948
|
});
|
|
2948
2949
|
}
|
|
2949
|
-
function
|
|
2950
|
+
function ss({ className: e, ...t }) {
|
|
2950
2951
|
return /* @__PURE__ */ v(l, {
|
|
2951
2952
|
className: e,
|
|
2952
2953
|
...t
|
|
2953
2954
|
});
|
|
2954
2955
|
}
|
|
2955
|
-
function
|
|
2956
|
+
function cs({ className: e, ...t }) {
|
|
2956
2957
|
return /* @__PURE__ */ v(h, {
|
|
2957
2958
|
className: e,
|
|
2958
2959
|
...t
|
|
2959
2960
|
});
|
|
2960
2961
|
}
|
|
2961
|
-
function
|
|
2962
|
+
function ls({ className: e, ...t }) {
|
|
2962
2963
|
return /* @__PURE__ */ v(h, {
|
|
2963
2964
|
className: e,
|
|
2964
2965
|
...t
|
|
2965
2966
|
});
|
|
2966
2967
|
}
|
|
2967
|
-
function
|
|
2968
|
+
function us({ className: e, ...t }) {
|
|
2968
2969
|
return /* @__PURE__ */ v(h, {
|
|
2969
2970
|
className: e,
|
|
2970
2971
|
...t
|
|
2971
2972
|
});
|
|
2972
2973
|
}
|
|
2973
|
-
function
|
|
2974
|
+
function ds({ className: e, ...t }) {
|
|
2974
2975
|
return /* @__PURE__ */ v(h, {
|
|
2975
2976
|
className: e,
|
|
2976
2977
|
...t
|
|
2977
2978
|
});
|
|
2978
2979
|
}
|
|
2979
|
-
function
|
|
2980
|
+
function fs({ className: e, ...t }) {
|
|
2980
2981
|
return /* @__PURE__ */ v(h, {
|
|
2981
2982
|
className: e,
|
|
2982
2983
|
...t
|
|
2983
2984
|
});
|
|
2984
2985
|
}
|
|
2985
|
-
function
|
|
2986
|
+
function ps({ className: e, ...t }) {
|
|
2986
2987
|
return /* @__PURE__ */ v(h, {
|
|
2987
2988
|
className: e,
|
|
2988
2989
|
...t
|
|
2989
2990
|
});
|
|
2990
2991
|
}
|
|
2991
|
-
function
|
|
2992
|
+
function ms({ className: e, ...t }) {
|
|
2992
2993
|
return /* @__PURE__ */ v(h, {
|
|
2993
2994
|
className: e,
|
|
2994
2995
|
...t
|
|
2995
2996
|
});
|
|
2996
2997
|
}
|
|
2997
|
-
function
|
|
2998
|
+
function hs({ className: e, ...t }) {
|
|
2998
2999
|
return /* @__PURE__ */ v(h, {
|
|
2999
3000
|
className: e,
|
|
3000
3001
|
...t
|
|
3001
3002
|
});
|
|
3002
3003
|
}
|
|
3003
|
-
function
|
|
3004
|
+
function gs({ className: e, asChild: t, ...n }) {
|
|
3004
3005
|
return /* @__PURE__ */ v(h, {
|
|
3005
3006
|
className: e,
|
|
3006
3007
|
...n
|
|
3007
3008
|
});
|
|
3008
3009
|
}
|
|
3009
|
-
function
|
|
3010
|
+
function _s({ className: e, asChild: t, ...n }) {
|
|
3010
3011
|
return /* @__PURE__ */ v(l, {
|
|
3011
3012
|
className: e,
|
|
3012
3013
|
...n
|
|
3013
3014
|
});
|
|
3014
3015
|
}
|
|
3015
|
-
function
|
|
3016
|
+
function vs({ className: e, ...t }) {
|
|
3016
3017
|
return /* @__PURE__ */ v(h, {
|
|
3017
3018
|
className: e,
|
|
3018
3019
|
...t
|
|
3019
3020
|
});
|
|
3020
3021
|
}
|
|
3021
|
-
function
|
|
3022
|
+
function ys({ className: e, ...t }) {
|
|
3022
3023
|
return /* @__PURE__ */ v(h, {
|
|
3023
3024
|
className: e,
|
|
3024
3025
|
...t
|
|
3025
3026
|
});
|
|
3026
3027
|
}
|
|
3027
|
-
function
|
|
3028
|
+
function bs({ className: e, ...t }) {
|
|
3028
3029
|
return /* @__PURE__ */ v(h, {
|
|
3029
3030
|
className: e,
|
|
3030
3031
|
...t
|
|
3031
3032
|
});
|
|
3032
3033
|
}
|
|
3033
|
-
function
|
|
3034
|
+
function xs({ className: e, asChild: t, isActive: n, variant: r, size: i, tooltip: a, ...o }) {
|
|
3034
3035
|
return /* @__PURE__ */ v(l, {
|
|
3035
3036
|
className: e,
|
|
3036
3037
|
...o
|
|
3037
3038
|
});
|
|
3038
3039
|
}
|
|
3039
|
-
function
|
|
3040
|
+
function Ss({ className: e, asChild: t, showOnHover: n, ...r }) {
|
|
3040
3041
|
return /* @__PURE__ */ v(l, {
|
|
3041
3042
|
className: e,
|
|
3042
3043
|
...r
|
|
3043
3044
|
});
|
|
3044
3045
|
}
|
|
3045
|
-
function
|
|
3046
|
+
function Cs({ className: e, ...t }) {
|
|
3046
3047
|
return /* @__PURE__ */ v(h, {
|
|
3047
3048
|
className: e,
|
|
3048
3049
|
...t
|
|
3049
3050
|
});
|
|
3050
3051
|
}
|
|
3051
|
-
function
|
|
3052
|
+
function ws({ className: e, showIcon: t, ...n }) {
|
|
3052
3053
|
return /* @__PURE__ */ v(h, {
|
|
3053
3054
|
className: e,
|
|
3054
3055
|
...n
|
|
3055
3056
|
});
|
|
3056
3057
|
}
|
|
3057
|
-
function
|
|
3058
|
+
function Ts({ className: e, ...t }) {
|
|
3058
3059
|
return /* @__PURE__ */ v(h, {
|
|
3059
3060
|
className: e,
|
|
3060
3061
|
...t
|
|
3061
3062
|
});
|
|
3062
3063
|
}
|
|
3063
|
-
function
|
|
3064
|
+
function Es({ className: e, ...t }) {
|
|
3064
3065
|
return /* @__PURE__ */ v(h, {
|
|
3065
3066
|
className: e,
|
|
3066
3067
|
...t
|
|
3067
3068
|
});
|
|
3068
3069
|
}
|
|
3069
|
-
function
|
|
3070
|
+
function Ds({ className: e, asChild: t, size: n, isActive: r, ...i }) {
|
|
3070
3071
|
return /* @__PURE__ */ v(l, {
|
|
3071
3072
|
className: e,
|
|
3072
3073
|
...i
|
|
3073
3074
|
});
|
|
3074
3075
|
}
|
|
3075
|
-
function
|
|
3076
|
+
function Os() {
|
|
3076
3077
|
return {
|
|
3077
3078
|
state: "expanded",
|
|
3078
3079
|
open: !0,
|
|
@@ -3084,4 +3085,4 @@ function ws() {
|
|
|
3084
3085
|
};
|
|
3085
3086
|
}
|
|
3086
3087
|
//#endregion
|
|
3087
|
-
export {
|
|
3088
|
+
export { Xe as Accordion, et as AccordionContent, Ze as AccordionItem, $e as AccordionTrigger, nt as Alert, it as AlertDescription, st as AlertDialog, gt as AlertDialogAction, _t as AlertDialogCancel, dt as AlertDialogContent, ht as AlertDialogDescription, pt as AlertDialogFooter, ft as AlertDialogHeader, ut as AlertDialogOverlay, lt as AlertDialogPortal, mt as AlertDialogTitle, ct as AlertDialogTrigger, rt as AlertTitle, vt as AspectRatio, yt as Avatar, xt as AvatarFallback, bt as AvatarImage, wt as Badge, Dt as Breadcrumb, Nt as BreadcrumbEllipsis, kt as BreadcrumbItem, At as BreadcrumbLink, Ot as BreadcrumbList, jt as BreadcrumbPage, Mt as BreadcrumbSeparator, J as Button, Ka as ButtonGroup, Ja as ButtonGroupSeparator, qa as ButtonGroupText, Pt as Calendar, Ft as Card, zt as CardContent, Rt as CardDescription, Bt as CardFooter, It as CardHeader, Lt as CardTitle, Ut as Carousel, Wt as CarouselContent, Gt as CarouselItem, qt as CarouselNext, Kt as CarouselPrevious, Jt as ChartContainer, Qt as ChartLegend, Xt as ChartLegendContent, $t as ChartStyle, Zt as ChartTooltip, Yt as ChartTooltipContent, en as Checkbox, tn as Collapsible, rn as CollapsibleContent, nn as CollapsibleTrigger, Ro as Combobox, Qo as ComboboxChip, Zo as ComboboxChips, $o as ComboboxChipsInput, Vo as ComboboxClear, Jo as ComboboxCollection, Uo as ComboboxContent, Yo as ComboboxEmpty, Ko as ComboboxGroup, Ho as ComboboxInput, Go as ComboboxItem, qo as ComboboxLabel, Wo as ComboboxList, Xo as ComboboxSeparator, Bo as ComboboxTrigger, zo as ComboboxValue, an as Command, on as CommandDialog, ln as CommandEmpty, un as CommandGroup, sn as CommandInput, dn as CommandItem, cn as CommandList, fn as CommandSeparator, pn as CommandShortcut, mn as ContextMenu, Cn as ContextMenuCheckboxItem, xn as ContextMenuContent, _n as ContextMenuGroup, Sn as ContextMenuItem, Tn as ContextMenuLabel, gn as ContextMenuPortal, vn as ContextMenuRadioGroup, wn as ContextMenuRadioItem, En as ContextMenuSeparator, Dn as ContextMenuShortcut, yn as ContextMenuSub, kn as ContextMenuSubContent, On as ContextMenuSubTrigger, hn as ContextMenuTrigger, An as Dialog, Nn as DialogClose, Fn as DialogContent, zn as DialogDescription, Ln as DialogFooter, In as DialogHeader, Rn as DialogTitle, jn as DialogTrigger, Xa as DirectionProvider, Bn as Drawer, qn as DrawerClose, Wn as DrawerContent, Yn as DrawerDescription, Kn as DrawerFooter, Gn as DrawerHeader, Un as DrawerOverlay, Hn as DrawerPortal, Jn as DrawerTitle, Vn as DrawerTrigger, Xn as DropdownMenu, ir as DropdownMenuCheckboxItem, rr as DropdownMenuContent, $n as DropdownMenuGroup, X as DropdownMenuItem, or as DropdownMenuLabel, Qn as DropdownMenuPortal, er as DropdownMenuRadioGroup, ar as DropdownMenuRadioItem, sr as DropdownMenuSeparator, cr as DropdownMenuShortcut, tr as DropdownMenuSub, ur as DropdownMenuSubContent, lr as DropdownMenuSubTrigger, Zn as DropdownMenuTrigger, Qa as Empty, ro as EmptyContent, no as EmptyDescription, $a as EmptyHeader, eo as EmptyMedia, to as EmptyTitle, ao as Field, oo as FieldContent, so as FieldDescription, co as FieldError, lo as FieldGroup, uo as FieldLabel, fo as FieldLegend, po as FieldSeparator, mo as FieldSet, ho as FieldTitle, fr as Form, vr as FormControl, yr as FormDescription, mr as FormField, gr as FormItem, _r as FormLabel, br as FormMessage, xr as HoverCard, Cr as HoverCardContent, Sr as HoverCardTrigger, wr as Input, go as InputGroup, _o as InputGroupAddon, vo as InputGroupButton, bo as InputGroupInput, yo as InputGroupText, xo as InputGroupTextarea, ts as InputOTP, ns as InputOTPGroup, is as InputOTPSeparator, rs as InputOTPSlot, Do as Item, Oo as ItemActions, ko as ItemContent, Ao as ItemDescription, jo as ItemFooter, Mo as ItemGroup, No as ItemHeader, Po as ItemMedia, Fo as ItemSeparator, Io as ItemTitle, To as Kbd, Eo as KbdGroup, dr as Label, Tr as Menubar, Fr as MenubarCheckboxItem, Nr as MenubarContent, Or as MenubarGroup, Pr as MenubarItem, Lr as MenubarLabel, Er as MenubarMenu, Dr as MenubarPortal, kr as MenubarRadioGroup, Ir as MenubarRadioItem, Rr as MenubarSeparator, zr as MenubarShortcut, Ar as MenubarSub, Vr as MenubarSubContent, Br as MenubarSubTrigger, Mr as MenubarTrigger, So as NativeSelect, wo as NativeSelectOptGroup, Co as NativeSelectOption, Hr as NavigationMenu, Kr as NavigationMenuContent, Yr as NavigationMenuIndicator, Wr as NavigationMenuItem, qr as NavigationMenuLink, Ur as NavigationMenuList, Gr as NavigationMenuTrigger, Jr as NavigationMenuViewport, Xr as Pagination, Zr as PaginationContent, ni as PaginationEllipsis, Qr as PaginationItem, $r as PaginationLink, ti as PaginationNext, ei as PaginationPrevious, ii as Popover, oi as PopoverAnchor, si as PopoverContent, ai as PopoverTrigger, ci as Progress, li as RadioGroup, ui as RadioGroupItem, pi as ResizableHandle, fi as ResizablePanel, di as ResizablePanelGroup, mi as ScrollArea, Oi as ScrollToTop, gi as Search, vi as Select, wi as SelectContent, yi as SelectGroup, Ei as SelectItem, Ti as SelectLabel, Ci as SelectScrollDownButton, Si as SelectScrollUpButton, Di as SelectSeparator, xi as SelectTrigger, bi as SelectValue, Ni as Separator, Pi as Sheet, Ii as SheetClose, zi as SheetContent, Ui as SheetDescription, Vi as SheetFooter, Bi as SheetHeader, Ri as SheetOverlay, Li as SheetPortal, Hi as SheetTitle, Fi as SheetTrigger, os as Sidebar, ms as SidebarContent, fs as SidebarFooter, hs as SidebarGroup, _s as SidebarGroupAction, vs as SidebarGroupContent, gs as SidebarGroupLabel, ds as SidebarHeader, us as SidebarInput, ls as SidebarInset, ys as SidebarMenu, Ss as SidebarMenuAction, Cs as SidebarMenuBadge, xs as SidebarMenuButton, bs as SidebarMenuItem, ws as SidebarMenuSkeleton, Ts as SidebarMenuSub, Ds as SidebarMenuSubButton, Es as SidebarMenuSubItem, as as SidebarProvider, cs as SidebarRail, ps as SidebarSeparator, ss as SidebarTrigger, Wi as Skeleton, Gi as Slider, $i as Sonner, io as Spinner, Mi as SupportFab, ea as Switch, ta as Table, ra as TableBody, ca as TableCaption, sa as TableCell, ia as TableFooter, oa as TableHead, na as TableHeader, Ha as TableOfContents, Ga as TableOfContentsContent, Ua as TableOfContentsHeading, Wa as TableOfContentsList, aa as TableRow, la as Tabs, fa as TabsContent, ua as TabsList, da as TabsTrigger, Y as Text, pa as Textarea, Fa as ThemeProvider, Ra as ThemeToggle, Ji as Toast, za as Toaster, ma as Toggle, ga as ToggleGroup, _a as ToggleGroupItem, va as Tooltip, ba as TooltipContent, xa as TooltipProvider, ya as TooltipTrigger, St as badgeVariants, Ya as buttonGroupVariants, at as buttonVariants, q as cn, Et as textVariants, Ma as toast, We as toggleVariants, es as useComboboxAnchor, Za as useDirection, Z as useFormField, Os as useSidebar, Ia as useTheme, Na as useToast, K as wrapTextChildren };
|