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