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