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