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