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