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