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