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