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