@gv-tech/ui-native 2.29.0 → 2.29.1
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/__contracts.d.ts +0 -1
- package/dist/__contracts.d.ts.map +1 -1
- package/dist/aspect-ratio.d.ts.map +1 -1
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/button-group.d.ts +3 -3
- package/dist/button-group.d.ts.map +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/carousel.d.ts.map +1 -1
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/combobox.d.ts +2 -2
- package/dist/combobox.d.ts.map +1 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/direction.d.ts +1 -1
- package/dist/empty.d.ts +1 -1
- package/dist/empty.d.ts.map +1 -1
- package/dist/field.d.ts +1 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/hooks/use-theme.d.ts.map +1 -1
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/input-group.d.ts +2 -2
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-otp.d.ts +1 -1
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/item.d.ts +10 -10
- package/dist/item.d.ts.map +1 -1
- package/dist/kbd.d.ts.map +1 -1
- package/dist/native-select.d.ts +1 -1
- package/dist/native-select.d.ts.map +1 -1
- package/dist/pagination.d.ts +2 -2
- package/dist/pagination.d.ts.map +1 -1
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-to-top.d.ts +6 -5
- package/dist/scroll-to-top.d.ts.map +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/sidebar.d.ts +8 -8
- package/dist/sidebar.d.ts.map +1 -1
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/slider.d.ts.map +1 -1
- package/dist/sonner.d.ts.map +1 -1
- package/dist/spinner.d.ts +1 -1
- package/dist/spinner.d.ts.map +1 -1
- package/dist/table-of-contents.d.ts +5 -13
- package/dist/table-of-contents.d.ts.map +1 -1
- package/dist/theme-provider.d.ts.map +1 -1
- package/dist/theme-toggle.d.ts +1 -1
- package/dist/theme-toggle.d.ts.map +1 -1
- package/dist/toaster.d.ts.map +1 -1
- package/dist/ui-native.cjs +2 -2
- package/dist/ui-native.esm.js +275 -270
- package/package.json +18 -18
- package/src/__contracts.ts +321 -324
- package/src/aspect-ratio.tsx +1 -0
- package/src/badge.tsx +3 -3
- package/src/breadcrumb.tsx +2 -8
- package/src/button-group.tsx +8 -3
- package/src/button.tsx +4 -3
- package/src/calendar.tsx +8 -5
- package/src/card.tsx +1 -1
- package/src/carousel.tsx +6 -23
- package/src/collapsible.tsx +1 -1
- package/src/combobox.tsx +8 -8
- package/src/command.tsx +1 -0
- package/src/context-menu.tsx +1 -0
- package/src/dialog.tsx +1 -1
- package/src/drawer.tsx +1 -0
- package/src/dropdown-menu.tsx +1 -0
- package/src/empty.tsx +6 -1
- package/src/field.tsx +2 -1
- package/src/form.tsx +9 -9
- package/src/hooks/use-theme.ts +1 -0
- package/src/hooks/use-toast.ts +1 -0
- package/src/hover-card.tsx +1 -0
- package/src/input-group.tsx +7 -2
- package/src/input-otp.tsx +6 -1
- package/src/input.tsx +1 -1
- package/src/item.tsx +9 -3
- package/src/kbd.tsx +1 -0
- package/src/menubar.tsx +1 -0
- package/src/native-select.tsx +2 -1
- package/src/navigation-menu.tsx +18 -6
- package/src/pagination.tsx +5 -2
- package/src/popover.tsx +1 -1
- package/src/progress.tsx +1 -2
- package/src/radio-group.tsx +1 -1
- package/src/scroll-area.tsx +1 -0
- package/src/scroll-to-top.tsx +10 -9
- package/src/search.tsx +2 -1
- package/src/select.tsx +1 -1
- package/src/sidebar.tsx +20 -19
- package/src/skeleton.tsx +4 -2
- package/src/slider.tsx +2 -1
- package/src/sonner.tsx +1 -0
- package/src/spinner.tsx +4 -1
- package/src/switch.tsx +1 -1
- package/src/table-of-contents.tsx +9 -25
- package/src/tabs.tsx +2 -2
- package/src/text.tsx +3 -3
- package/src/theme-provider.tsx +3 -1
- package/src/theme-toggle.tsx +32 -29
- package/src/toaster.tsx +1 -0
- package/src/toggle-group.tsx +2 -2
- package/src/toggle.tsx +3 -2
package/dist/ui-native.esm.js
CHANGED
|
@@ -2,10 +2,10 @@ import * as e from "react";
|
|
|
2
2
|
import { AccessibilityInfo as t, ActivityIndicator as n, Animated as r, Appearance as i, Dimensions as a, Linking as o, Modal as s, Platform as c, Pressable as l, ScrollView as u, StyleSheet as d, Text as f, TextInput as p, TouchableOpacity as m, View as h, useColorScheme as g } from "react-native";
|
|
3
3
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
4
4
|
import { clsx as b } from "clsx";
|
|
5
|
-
import { twMerge as
|
|
6
|
-
import * as
|
|
7
|
-
import { ArrowLeft as
|
|
8
|
-
import
|
|
5
|
+
import { twMerge as ee } from "tailwind-merge";
|
|
6
|
+
import * as x from "@rn-primitives/accordion";
|
|
7
|
+
import { ArrowLeft as te, ArrowRight as S, ArrowUp as ne, Check as C, ChevronDown as w, ChevronLeft as re, ChevronRight as T, ChevronUp as ie, Circle as ae, Coffee as oe, ExternalLink as se, Moon as ce, MoreHorizontal as le, Search as ue, Sun as de, SunMoon as fe, X as E } from "lucide-react-native";
|
|
8
|
+
import D, { Extrapolation as pe, FadeIn as O, FadeInUp as me, FadeOut as k, FadeOutDown as he, Layout as ge, SlideInDown as _e, SlideInLeft as ve, SlideInRight as ye, SlideInUp as be, SlideOutDown as xe, SlideOutLeft as Se, SlideOutRight as Ce, SlideOutUp as we, interpolate as Te, useAnimatedStyle as Ee, useDerivedValue as De, useSharedValue as Oe, withRepeat as ke, withSequence as Ae, withTiming as A } from "react-native-reanimated";
|
|
9
9
|
import { cva as j } from "class-variance-authority";
|
|
10
10
|
import * as M from "@rn-primitives/alert-dialog";
|
|
11
11
|
import * as je from "@rn-primitives/aspect-ratio";
|
|
@@ -47,51 +47,51 @@ function K(t, n = f, r = {}) {
|
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/lib/utils.ts
|
|
49
49
|
function q(...e) {
|
|
50
|
-
return
|
|
50
|
+
return ee(b(e));
|
|
51
51
|
}
|
|
52
52
|
function Ye(e) {
|
|
53
53
|
return e.toString().toLowerCase().trim().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-");
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region src/accordion.tsx
|
|
57
|
-
var Xe = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
|
|
57
|
+
var Xe = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(x.Root, {
|
|
58
58
|
ref: n,
|
|
59
59
|
className: q("web:gap-0", e),
|
|
60
60
|
...t
|
|
61
61
|
}));
|
|
62
|
-
Xe.displayName =
|
|
63
|
-
var Ze = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
|
|
62
|
+
Xe.displayName = x.Root?.displayName || "Accordion";
|
|
63
|
+
var Ze = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(x.Item, {
|
|
64
64
|
ref: n,
|
|
65
65
|
className: q("border-border overflow-hidden border-b", e),
|
|
66
66
|
...t
|
|
67
67
|
}));
|
|
68
|
-
Ze.displayName =
|
|
69
|
-
var Qe = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(
|
|
68
|
+
Ze.displayName = x.Item?.displayName || "AccordionItem";
|
|
69
|
+
var Qe = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(x.Header, {
|
|
70
70
|
ref: n,
|
|
71
71
|
className: q("flex flex-row", e),
|
|
72
72
|
...t
|
|
73
73
|
}));
|
|
74
|
-
Qe.displayName =
|
|
74
|
+
Qe.displayName = x.Header?.displayName || "AccordionHeader";
|
|
75
75
|
var $e = e.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
76
|
-
let { isExpanded: i } =
|
|
76
|
+
let { isExpanded: i } = x.useItemContext(), a = De(() => i ? A(1, { duration: 250 }) : A(0, { duration: 200 })), o = Ee(() => ({
|
|
77
77
|
transform: [{ rotate: `${a.value * -180}deg` }],
|
|
78
|
-
opacity:
|
|
78
|
+
opacity: Te(a.value, [0, 1], [1, .8], pe.CLAMP)
|
|
79
79
|
}));
|
|
80
|
-
return /* @__PURE__ */ v(
|
|
80
|
+
return /* @__PURE__ */ v(x.Header, {
|
|
81
81
|
className: "flex",
|
|
82
|
-
children: /* @__PURE__ */ y(
|
|
82
|
+
children: /* @__PURE__ */ y(x.Trigger, {
|
|
83
83
|
ref: r,
|
|
84
84
|
className: q("flex flex-row items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
|
|
85
85
|
...n,
|
|
86
|
-
children: [/* @__PURE__ */ v(_, { children: t }), /* @__PURE__ */ v(
|
|
86
|
+
children: [/* @__PURE__ */ v(_, { children: t }), /* @__PURE__ */ v(D.View, {
|
|
87
87
|
style: o,
|
|
88
88
|
children: /* @__PURE__ */ v(w, { className: "text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200" })
|
|
89
89
|
})]
|
|
90
90
|
})
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
|
-
$e.displayName =
|
|
94
|
-
var et = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(
|
|
93
|
+
$e.displayName = x.Trigger?.displayName || "AccordionTrigger";
|
|
94
|
+
var et = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(x.Content, {
|
|
95
95
|
ref: r,
|
|
96
96
|
className: q("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all", e),
|
|
97
97
|
...n,
|
|
@@ -100,7 +100,7 @@ var et = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ *
|
|
|
100
100
|
children: t
|
|
101
101
|
})
|
|
102
102
|
}));
|
|
103
|
-
et.displayName =
|
|
103
|
+
et.displayName = x.Content?.displayName || "AccordionContent";
|
|
104
104
|
//#endregion
|
|
105
105
|
//#region src/alert.tsx
|
|
106
106
|
var tt = j("relative w-full rounded-lg border p-4", {
|
|
@@ -137,7 +137,7 @@ var at = j("flex-row items-center justify-center gap-2 rounded-md transition-col
|
|
|
137
137
|
variant: {
|
|
138
138
|
default: "bg-primary shadow-sm",
|
|
139
139
|
destructive: "bg-destructive shadow-sm",
|
|
140
|
-
outline: "border
|
|
140
|
+
outline: "border-input border bg-transparent shadow-sm",
|
|
141
141
|
secondary: "bg-secondary shadow-sm",
|
|
142
142
|
ghost: "bg-transparent",
|
|
143
143
|
link: "bg-transparent"
|
|
@@ -187,9 +187,9 @@ var st = M.Root, ct = M.Trigger, lt = M.Portal, ut = e.forwardRef(({ className:
|
|
|
187
187
|
asChild: !0,
|
|
188
188
|
ref: n,
|
|
189
189
|
...t,
|
|
190
|
-
children: /* @__PURE__ */ v(
|
|
191
|
-
entering:
|
|
192
|
-
exiting:
|
|
190
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
191
|
+
entering: O.duration(150),
|
|
192
|
+
exiting: k.duration(150),
|
|
193
193
|
className: q("z-50 flex items-center justify-center bg-black/60 p-2 backdrop-blur-md", e)
|
|
194
194
|
})
|
|
195
195
|
}));
|
|
@@ -206,9 +206,9 @@ var dt = e.forwardRef(({ className: e, portalHost: t, overlayClassName: n, overl
|
|
|
206
206
|
ref: a,
|
|
207
207
|
asChild: !0,
|
|
208
208
|
...i,
|
|
209
|
-
children: /* @__PURE__ */ v(
|
|
210
|
-
entering:
|
|
211
|
-
exiting:
|
|
209
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
210
|
+
entering: O.duration(150),
|
|
211
|
+
exiting: k.duration(150),
|
|
212
212
|
className: q("border-border bg-background w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg", e),
|
|
213
213
|
children: i.children
|
|
214
214
|
})
|
|
@@ -282,9 +282,9 @@ xt.displayName = N.Fallback?.displayName || "AvatarFallback";
|
|
|
282
282
|
//#region src/badge.tsx
|
|
283
283
|
var St = j("flex-row items-center rounded-md border px-2 py-0.5", {
|
|
284
284
|
variants: { variant: {
|
|
285
|
-
default: "border-transparent
|
|
286
|
-
secondary: "border-transparent
|
|
287
|
-
destructive: "border-transparent
|
|
285
|
+
default: "bg-primary border-transparent",
|
|
286
|
+
secondary: "bg-secondary border-transparent",
|
|
287
|
+
destructive: "bg-destructive border-transparent",
|
|
288
288
|
outline: "border-border bg-transparent"
|
|
289
289
|
} },
|
|
290
290
|
defaultVariants: { variant: "default" }
|
|
@@ -314,9 +314,9 @@ var Tt = e.createContext(void 0), Et = j("text-foreground", {
|
|
|
314
314
|
h4: "text-xl font-semibold tracking-tight",
|
|
315
315
|
body: "text-base leading-7",
|
|
316
316
|
bodySmall: "text-sm leading-6",
|
|
317
|
-
caption: "text-
|
|
317
|
+
caption: "text-muted-foreground text-xs",
|
|
318
318
|
label: "text-sm font-medium",
|
|
319
|
-
overline: "text-xs font-semibold
|
|
319
|
+
overline: "text-muted-foreground text-xs font-semibold tracking-widest uppercase"
|
|
320
320
|
} },
|
|
321
321
|
defaultVariants: { variant: "body" }
|
|
322
322
|
}), Y = e.forwardRef(({ className: e, variant: t = "body", children: n, ...r }, i) => /* @__PURE__ */ v(f, {
|
|
@@ -363,8 +363,6 @@ var At = e.forwardRef(({ asChild: e, className: t, children: n, onPress: r, ...i
|
|
|
363
363
|
At.displayName = "BreadcrumbLink";
|
|
364
364
|
var jt = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ v(h, {
|
|
365
365
|
ref: r,
|
|
366
|
-
role: "link",
|
|
367
|
-
"aria-disabled": !0,
|
|
368
366
|
"aria-current": "page",
|
|
369
367
|
className: q("flex flex-row items-center", e),
|
|
370
368
|
...n,
|
|
@@ -387,7 +385,7 @@ var Nt = ({ className: e, children: t, ...n }) => /* @__PURE__ */ v(h, {
|
|
|
387
385
|
"aria-hidden": !0,
|
|
388
386
|
className: q("flex h-9 w-9 flex-row items-center justify-center", e),
|
|
389
387
|
...n,
|
|
390
|
-
children: t ?? /* @__PURE__ */ v(
|
|
388
|
+
children: t ?? /* @__PURE__ */ v(le, {
|
|
391
389
|
size: 14,
|
|
392
390
|
className: "text-muted-foreground"
|
|
393
391
|
})
|
|
@@ -396,10 +394,8 @@ Nt.displayName = "BreadcrumbEllipsis";
|
|
|
396
394
|
//#endregion
|
|
397
395
|
//#region src/calendar.tsx
|
|
398
396
|
var Pt = e.forwardRef(({ className: t, value: n, onChange: r, showOutsideDays: i, ...a }, o) => {
|
|
399
|
-
let [s, c] = e.useState(n
|
|
400
|
-
return
|
|
401
|
-
n && c(n);
|
|
402
|
-
}, [n]), /* @__PURE__ */ v(h, {
|
|
397
|
+
let [s, c] = e.useState(() => n ?? /* @__PURE__ */ new Date()), [l, u] = e.useState(n);
|
|
398
|
+
return n !== l && (u(n), n && c(n)), /* @__PURE__ */ v(h, {
|
|
403
399
|
ref: o,
|
|
404
400
|
className: q("bg-background overflow-hidden rounded-md", t),
|
|
405
401
|
children: /* @__PURE__ */ v(Pe, {
|
|
@@ -465,42 +461,42 @@ function Ht() {
|
|
|
465
461
|
return t;
|
|
466
462
|
}
|
|
467
463
|
var Ut = e.forwardRef(({ children: t, className: n, opts: r, orientation: i = "horizontal", setApi: o, plugins: s, ...c }, l) => {
|
|
468
|
-
let u = e.useRef(null), [d
|
|
464
|
+
let u = e.useRef(null), [d] = e.useState(!0), [f] = e.useState(!1), [p, m] = e.useState(a.get("window").width), [g] = e.useState(0), _ = e.useCallback(() => {
|
|
469
465
|
u.current?.scrollTo({
|
|
470
|
-
x: (
|
|
466
|
+
x: (g + 1) * p,
|
|
471
467
|
animated: !0
|
|
472
468
|
});
|
|
473
|
-
}, [
|
|
469
|
+
}, [g, p]), y = e.useCallback(() => {
|
|
474
470
|
u.current?.scrollTo({
|
|
475
|
-
x: Math.max(0,
|
|
471
|
+
x: Math.max(0, g - 1) * p,
|
|
476
472
|
animated: !0
|
|
477
473
|
});
|
|
478
|
-
}, [
|
|
474
|
+
}, [g, p]);
|
|
479
475
|
return e.useEffect(() => {
|
|
480
476
|
o && o({
|
|
481
|
-
scrollNext:
|
|
482
|
-
scrollPrev:
|
|
477
|
+
scrollNext: _,
|
|
478
|
+
scrollPrev: y,
|
|
483
479
|
canScrollNext: () => d,
|
|
484
|
-
canScrollPrev: () =>
|
|
480
|
+
canScrollPrev: () => f,
|
|
485
481
|
on: () => {},
|
|
486
482
|
off: () => {}
|
|
487
483
|
});
|
|
488
484
|
}, [
|
|
489
485
|
o,
|
|
490
|
-
|
|
491
|
-
|
|
486
|
+
_,
|
|
487
|
+
y,
|
|
492
488
|
d,
|
|
493
|
-
|
|
489
|
+
f
|
|
494
490
|
]), /* @__PURE__ */ v(Vt.Provider, {
|
|
495
491
|
value: {
|
|
496
492
|
orientation: i,
|
|
497
493
|
scrollRef: u,
|
|
498
|
-
scrollNext:
|
|
499
|
-
scrollPrev:
|
|
494
|
+
scrollNext: _,
|
|
495
|
+
scrollPrev: y,
|
|
500
496
|
canScrollNext: d,
|
|
501
|
-
canScrollPrev:
|
|
502
|
-
itemWidth:
|
|
503
|
-
setItemWidth:
|
|
497
|
+
canScrollPrev: f,
|
|
498
|
+
itemWidth: p,
|
|
499
|
+
setItemWidth: m
|
|
504
500
|
},
|
|
505
501
|
children: /* @__PURE__ */ v(h, {
|
|
506
502
|
ref: l,
|
|
@@ -553,7 +549,7 @@ var Kt = e.forwardRef(({ className: e, variant: t = "outline", size: n = "icon",
|
|
|
553
549
|
disabled: !s,
|
|
554
550
|
onPress: o,
|
|
555
551
|
...r,
|
|
556
|
-
children: /* @__PURE__ */ v(
|
|
552
|
+
children: /* @__PURE__ */ v(te, {
|
|
557
553
|
className: "text-foreground h-4 w-4",
|
|
558
554
|
size: 16
|
|
559
555
|
})
|
|
@@ -570,7 +566,7 @@ var qt = e.forwardRef(({ className: e, variant: t = "outline", size: n = "icon",
|
|
|
570
566
|
disabled: !s,
|
|
571
567
|
onPress: o,
|
|
572
568
|
...r,
|
|
573
|
-
children: /* @__PURE__ */ v(
|
|
569
|
+
children: /* @__PURE__ */ v(S, {
|
|
574
570
|
className: "text-foreground h-4 w-4",
|
|
575
571
|
size: 16
|
|
576
572
|
})
|
|
@@ -620,9 +616,9 @@ var tn = Ie.Root, nn = Ie.Trigger, rn = Ie.Content, an = ({ children: e, classNa
|
|
|
620
616
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
621
617
|
ref: n,
|
|
622
618
|
...t,
|
|
623
|
-
children: /* @__PURE__ */ v(
|
|
624
|
-
entering:
|
|
625
|
-
exiting:
|
|
619
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
620
|
+
entering: O.duration(100),
|
|
621
|
+
exiting: k.duration(100),
|
|
626
622
|
className: q("absolute inset-0 z-50 bg-black/30", e)
|
|
627
623
|
})
|
|
628
624
|
}));
|
|
@@ -663,7 +659,7 @@ var wn = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @
|
|
|
663
659
|
...r,
|
|
664
660
|
children: [/* @__PURE__ */ v(h, {
|
|
665
661
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
666
|
-
children: /* @__PURE__ */ v(P.ItemIndicator, { children: /* @__PURE__ */ v(
|
|
662
|
+
children: /* @__PURE__ */ v(P.ItemIndicator, { children: /* @__PURE__ */ v(ae, {
|
|
667
663
|
size: 8,
|
|
668
664
|
className: "text-foreground fill-current"
|
|
669
665
|
}) })
|
|
@@ -723,9 +719,9 @@ var An = F.Root, jn = F.Trigger, Mn = F.Portal, Nn = F.Close, Pn = e.forwardRef(
|
|
|
723
719
|
asChild: !0,
|
|
724
720
|
ref: r,
|
|
725
721
|
...n,
|
|
726
|
-
children: /* @__PURE__ */ v(
|
|
727
|
-
entering:
|
|
728
|
-
exiting:
|
|
722
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
723
|
+
entering: O.duration(150),
|
|
724
|
+
exiting: k.duration(150),
|
|
729
725
|
className: q("flex items-center justify-center bg-black/60 p-2 backdrop-blur-md", e)
|
|
730
726
|
})
|
|
731
727
|
}));
|
|
@@ -742,13 +738,13 @@ var Fn = e.forwardRef(({ className: e, children: t, portalHost: n, overlayClassN
|
|
|
742
738
|
ref: o,
|
|
743
739
|
asChild: !0,
|
|
744
740
|
...a,
|
|
745
|
-
children: /* @__PURE__ */ y(
|
|
746
|
-
entering:
|
|
747
|
-
exiting:
|
|
741
|
+
children: /* @__PURE__ */ y(D.View, {
|
|
742
|
+
entering: O.duration(150),
|
|
743
|
+
exiting: k.duration(150),
|
|
748
744
|
className: q("border-border bg-background w-full max-w-lg gap-4 rounded-xl border p-6 shadow-lg sm:rounded-lg", e),
|
|
749
745
|
children: [t, /* @__PURE__ */ y(F.Close, {
|
|
750
746
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",
|
|
751
|
-
children: [/* @__PURE__ */ v(
|
|
747
|
+
children: [/* @__PURE__ */ v(E, {
|
|
752
748
|
size: 18,
|
|
753
749
|
className: "text-muted-foreground"
|
|
754
750
|
}), /* @__PURE__ */ v(Y, {
|
|
@@ -809,9 +805,9 @@ var Hn = F.Portal, Un = e.forwardRef(({ className: e, style: t, ...n }, r) => /*
|
|
|
809
805
|
asChild: !0,
|
|
810
806
|
ref: r,
|
|
811
807
|
...n,
|
|
812
|
-
children: /* @__PURE__ */ v(
|
|
813
|
-
entering:
|
|
814
|
-
exiting:
|
|
808
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
809
|
+
entering: O.duration(150),
|
|
810
|
+
exiting: k.duration(150),
|
|
815
811
|
className: q("bg-black/80", e)
|
|
816
812
|
})
|
|
817
813
|
}));
|
|
@@ -825,9 +821,9 @@ var Wn = e.forwardRef(({ className: e, children: t, portalHost: n, overlayClassN
|
|
|
825
821
|
ref: o,
|
|
826
822
|
asChild: !0,
|
|
827
823
|
...a,
|
|
828
|
-
children: /* @__PURE__ */ y(
|
|
829
|
-
entering:
|
|
830
|
-
exiting:
|
|
824
|
+
children: /* @__PURE__ */ y(D.View, {
|
|
825
|
+
entering: _e.duration(200),
|
|
826
|
+
exiting: xe.duration(200),
|
|
831
827
|
className: q("border-border bg-background z-50 flex h-auto flex-col rounded-t-xl border p-6 pb-10 shadow-lg", c.OS === "web" ? "fixed inset-x-0 bottom-0" : "absolute inset-x-0 bottom-0", e),
|
|
832
828
|
children: [/* @__PURE__ */ v(h, { className: "bg-muted mx-auto mb-4 h-1.5 w-12 rounded-full" }), t]
|
|
833
829
|
})
|
|
@@ -873,9 +869,9 @@ var Xn = I.Root, Zn = I.Trigger, Qn = I.Portal, $n = I.Group, er = I.RadioGroup,
|
|
|
873
869
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
874
870
|
ref: n,
|
|
875
871
|
...t,
|
|
876
|
-
children: /* @__PURE__ */ v(
|
|
877
|
-
entering:
|
|
878
|
-
exiting:
|
|
872
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
873
|
+
entering: O.duration(100),
|
|
874
|
+
exiting: k.duration(100),
|
|
879
875
|
className: q("absolute inset-0 z-50 bg-black/30 backdrop-blur-md", e)
|
|
880
876
|
})
|
|
881
877
|
}));
|
|
@@ -927,7 +923,7 @@ var ar = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @
|
|
|
927
923
|
...r,
|
|
928
924
|
children: [/* @__PURE__ */ v(h, {
|
|
929
925
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
930
|
-
children: /* @__PURE__ */ v(I.ItemIndicator, { children: /* @__PURE__ */ v(
|
|
926
|
+
children: /* @__PURE__ */ v(I.ItemIndicator, { children: /* @__PURE__ */ v(ae, {
|
|
931
927
|
size: 8,
|
|
932
928
|
className: "text-foreground fill-current"
|
|
933
929
|
}) })
|
|
@@ -1098,9 +1094,9 @@ var Er = R.Menu, Dr = R.Portal, Or = R.Group, kr = R.RadioGroup, Ar = R.Sub, jr
|
|
|
1098
1094
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
1099
1095
|
ref: n,
|
|
1100
1096
|
...t,
|
|
1101
|
-
children: /* @__PURE__ */ v(
|
|
1102
|
-
entering:
|
|
1103
|
-
exiting:
|
|
1097
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
1098
|
+
entering: O.duration(100),
|
|
1099
|
+
exiting: k.duration(100),
|
|
1104
1100
|
className: q("absolute inset-0 z-50 bg-black/30", e)
|
|
1105
1101
|
})
|
|
1106
1102
|
}));
|
|
@@ -1148,7 +1144,7 @@ var Ir = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @
|
|
|
1148
1144
|
...r,
|
|
1149
1145
|
children: [/* @__PURE__ */ v(h, {
|
|
1150
1146
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1151
|
-
children: /* @__PURE__ */ v(R.ItemIndicator, { children: /* @__PURE__ */ v(
|
|
1147
|
+
children: /* @__PURE__ */ v(R.ItemIndicator, { children: /* @__PURE__ */ v(ae, {
|
|
1152
1148
|
size: 8,
|
|
1153
1149
|
className: "text-foreground fill-current"
|
|
1154
1150
|
}) })
|
|
@@ -1236,9 +1232,9 @@ Gr.displayName = "NavigationMenuTrigger";
|
|
|
1236
1232
|
var Kr = e.forwardRef(({ className: e, children: t, forceMount: n, ...r }, i) => /* @__PURE__ */ v(z.Portal, { children: /* @__PURE__ */ v(z.Content, {
|
|
1237
1233
|
ref: i,
|
|
1238
1234
|
...r,
|
|
1239
|
-
children: /* @__PURE__ */ v(
|
|
1240
|
-
entering:
|
|
1241
|
-
exiting:
|
|
1235
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
1236
|
+
entering: O.duration(150),
|
|
1237
|
+
exiting: k.duration(150),
|
|
1242
1238
|
className: q("bg-popover border-border z-50 overflow-hidden rounded-md border p-4 shadow-md", e),
|
|
1243
1239
|
children: t
|
|
1244
1240
|
})
|
|
@@ -1338,7 +1334,7 @@ var ni = ({ className: e, ...t }) => /* @__PURE__ */ v(h, {
|
|
|
1338
1334
|
"aria-hidden": !0,
|
|
1339
1335
|
className: q("flex h-9 w-9 flex-row items-center justify-center", e),
|
|
1340
1336
|
...t,
|
|
1341
|
-
children: /* @__PURE__ */ v(
|
|
1337
|
+
children: /* @__PURE__ */ v(le, {
|
|
1342
1338
|
size: 16,
|
|
1343
1339
|
className: "text-foreground"
|
|
1344
1340
|
})
|
|
@@ -1411,7 +1407,6 @@ var ci = e.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */ v
|
|
|
1411
1407
|
ref: r,
|
|
1412
1408
|
className: q("bg-muted relative h-2 w-full overflow-hidden rounded-full", e),
|
|
1413
1409
|
accessibilityRole: "progressbar",
|
|
1414
|
-
role: "progressbar",
|
|
1415
1410
|
...n,
|
|
1416
1411
|
children: /* @__PURE__ */ v(h, {
|
|
1417
1412
|
className: "bg-primary h-full rounded-full",
|
|
@@ -1433,7 +1428,7 @@ var ui = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(B.Item, {
|
|
|
1433
1428
|
...t,
|
|
1434
1429
|
children: /* @__PURE__ */ v(B.Indicator, {
|
|
1435
1430
|
className: "flex items-center justify-center",
|
|
1436
|
-
children: /* @__PURE__ */ v(
|
|
1431
|
+
children: /* @__PURE__ */ v(ae, { className: "h-2.5 w-2.5 fill-current text-current" })
|
|
1437
1432
|
})
|
|
1438
1433
|
}));
|
|
1439
1434
|
ui.displayName = B.Item?.displayName || "RadioGroupItem";
|
|
@@ -1477,7 +1472,7 @@ var _i = e.forwardRef(({ className: e, placeholder: t, variant: n = "default", r
|
|
|
1477
1472
|
...i,
|
|
1478
1473
|
children: [/* @__PURE__ */ y(h, {
|
|
1479
1474
|
className: "flex-row items-center gap-2",
|
|
1480
|
-
children: [/* @__PURE__ */ v(
|
|
1475
|
+
children: [/* @__PURE__ */ v(ue, {
|
|
1481
1476
|
className: "text-muted-foreground shrink-0",
|
|
1482
1477
|
size: 18
|
|
1483
1478
|
}), /* @__PURE__ */ v(f, {
|
|
@@ -1541,7 +1536,7 @@ var wi = e.forwardRef(({ className: e, children: t, position: n = "popper", port
|
|
|
1541
1536
|
children: [/* @__PURE__ */ v(V.Overlay, {
|
|
1542
1537
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
1543
1538
|
asChild: !0,
|
|
1544
|
-
children: /* @__PURE__ */ v(
|
|
1539
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
1545
1540
|
className: i,
|
|
1546
1541
|
style: a
|
|
1547
1542
|
})
|
|
@@ -1598,7 +1593,7 @@ Di.displayName = V.Separator?.displayName || "SelectSeparator";
|
|
|
1598
1593
|
//#endregion
|
|
1599
1594
|
//#region src/scroll-to-top.tsx
|
|
1600
1595
|
var Oi = e.forwardRef(({ threshold: n = 240, exitDuration: i = 450, behavior: a, label: o = "Scroll to top", className: s, scrollRef: l, animationDuration: u = 300, ...d }, f) => {
|
|
1601
|
-
let [p, m] = e.useState(!1), [g, _] = e.useState(!1), y = e.
|
|
1596
|
+
let [p, m] = e.useState(!1), [g, _] = e.useState(!1), [y] = e.useState(() => new r.Value(0)), [b] = e.useState(() => new r.Value(20)), ee = () => {
|
|
1602
1597
|
r.parallel([r.timing(y, {
|
|
1603
1598
|
toValue: 1,
|
|
1604
1599
|
duration: u,
|
|
@@ -1608,7 +1603,7 @@ var Oi = e.forwardRef(({ threshold: n = 240, exitDuration: i = 450, behavior: a,
|
|
|
1608
1603
|
duration: u,
|
|
1609
1604
|
useNativeDriver: !0
|
|
1610
1605
|
})]).start();
|
|
1611
|
-
},
|
|
1606
|
+
}, x = () => {
|
|
1612
1607
|
r.parallel([r.timing(y, {
|
|
1613
1608
|
toValue: 0,
|
|
1614
1609
|
duration: u,
|
|
@@ -1620,15 +1615,15 @@ var Oi = e.forwardRef(({ threshold: n = 240, exitDuration: i = 450, behavior: a,
|
|
|
1620
1615
|
})]).start(() => {
|
|
1621
1616
|
g || m(!1);
|
|
1622
1617
|
});
|
|
1623
|
-
},
|
|
1618
|
+
}, te = (e) => {
|
|
1624
1619
|
let t = e.nativeEvent.contentOffset.y;
|
|
1625
1620
|
if (g) {
|
|
1626
1621
|
t <= n && (m(!1), _(!1));
|
|
1627
1622
|
return;
|
|
1628
1623
|
}
|
|
1629
|
-
t > n && !p ? (m(!0),
|
|
1630
|
-
},
|
|
1631
|
-
_(!0),
|
|
1624
|
+
t > n && !p ? (m(!0), ee()) : t <= n && p && x();
|
|
1625
|
+
}, S = () => {
|
|
1626
|
+
_(!0), x(), setTimeout(() => {
|
|
1632
1627
|
if (l?.current) {
|
|
1633
1628
|
let e = l.current;
|
|
1634
1629
|
"scrollToOffset" in e && typeof e.scrollToOffset == "function" ? e.scrollToOffset({
|
|
@@ -1643,8 +1638,8 @@ var Oi = e.forwardRef(({ threshold: n = 240, exitDuration: i = 450, behavior: a,
|
|
|
1643
1638
|
}, i);
|
|
1644
1639
|
};
|
|
1645
1640
|
return e.useImperativeHandle(f, () => ({
|
|
1646
|
-
handleScroll:
|
|
1647
|
-
scrollToTop:
|
|
1641
|
+
handleScroll: te,
|
|
1642
|
+
scrollToTop: S
|
|
1648
1643
|
})), !p && !g ? null : /* @__PURE__ */ v(h, {
|
|
1649
1644
|
pointerEvents: "box-none",
|
|
1650
1645
|
style: {
|
|
@@ -1662,7 +1657,7 @@ var Oi = e.forwardRef(({ threshold: n = 240, exitDuration: i = 450, behavior: a,
|
|
|
1662
1657
|
variant: "outline",
|
|
1663
1658
|
size: "icon",
|
|
1664
1659
|
className: q("bg-background/80 h-12 w-12 rounded-full border-2 shadow-lg", s),
|
|
1665
|
-
onPress:
|
|
1660
|
+
onPress: S,
|
|
1666
1661
|
"aria-label": o,
|
|
1667
1662
|
...d,
|
|
1668
1663
|
children: /* @__PURE__ */ v(ne, {
|
|
@@ -1689,15 +1684,15 @@ var ki = "https://www.buymeacoffee.com", Ai = new Set(["buymeacoffee.com", "www.
|
|
|
1689
1684
|
return t.endsWith("/") ? t.slice(0, -1) : t;
|
|
1690
1685
|
}, Ni = (e) => e.trim().replace(/^@+/, ""), Pi = (e, t) => `${Mi(e)}/${encodeURIComponent(Ni(t))}`;
|
|
1691
1686
|
function Fi({ supportUrl: t = ki, creatorId: n, title: r = "Buy me a coffee", description: i = "Support the project directly from this panel.", open: a, defaultOpen: s = !1, onOpenChange: c, positionClassName: l, buttonClassName: u, panelClassName: d, className: f, ...p }) {
|
|
1692
|
-
let m = a !== void 0, [g, b] = e.useState(s),
|
|
1687
|
+
let m = a !== void 0, [g, b] = e.useState(s), ee = m ? a : g, x = e.useCallback((e) => {
|
|
1693
1688
|
m || b(e), c?.(e);
|
|
1694
|
-
}, [m, c]),
|
|
1689
|
+
}, [m, c]), te = e.useMemo(() => Pi(t, n), [n, t]), S = e.useCallback(async () => {
|
|
1695
1690
|
try {
|
|
1696
|
-
await o.openURL(
|
|
1691
|
+
await o.openURL(te);
|
|
1697
1692
|
} catch (e) {
|
|
1698
1693
|
console.warn("Failed to open external link:", e);
|
|
1699
1694
|
}
|
|
1700
|
-
}, [
|
|
1695
|
+
}, [te]);
|
|
1701
1696
|
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(h, {
|
|
1702
1697
|
style: {
|
|
1703
1698
|
position: "absolute",
|
|
@@ -1710,17 +1705,17 @@ function Fi({ supportUrl: t = ki, creatorId: n, title: r = "Buy me a coffee", de
|
|
|
1710
1705
|
variant: "outline",
|
|
1711
1706
|
size: "icon",
|
|
1712
1707
|
className: q("h-14 w-14 rounded-full border border-black/15 bg-[#ffdd00] shadow-lg", u, f),
|
|
1713
|
-
onPress: () =>
|
|
1708
|
+
onPress: () => x(!0),
|
|
1714
1709
|
"aria-label": "Support this project",
|
|
1715
1710
|
...p,
|
|
1716
|
-
children: /* @__PURE__ */ v(
|
|
1711
|
+
children: /* @__PURE__ */ v(oe, {
|
|
1717
1712
|
size: 24,
|
|
1718
1713
|
className: "text-black"
|
|
1719
1714
|
})
|
|
1720
1715
|
})
|
|
1721
1716
|
}), /* @__PURE__ */ v(An, {
|
|
1722
|
-
open:
|
|
1723
|
-
onOpenChange:
|
|
1717
|
+
open: ee,
|
|
1718
|
+
onOpenChange: x,
|
|
1724
1719
|
children: /* @__PURE__ */ y(Fn, {
|
|
1725
1720
|
className: q("max-w-sm", d),
|
|
1726
1721
|
children: [/* @__PURE__ */ y(In, { children: [/* @__PURE__ */ v(Rn, { children: r }), /* @__PURE__ */ v(zn, { children: i })] }), /* @__PURE__ */ y(h, {
|
|
@@ -1746,12 +1741,12 @@ function Fi({ supportUrl: t = ki, creatorId: n, title: r = "Buy me a coffee", de
|
|
|
1746
1741
|
}), /* @__PURE__ */ y(J, {
|
|
1747
1742
|
variant: "outline",
|
|
1748
1743
|
size: "sm",
|
|
1749
|
-
onPress:
|
|
1744
|
+
onPress: S,
|
|
1750
1745
|
className: "flex flex-row items-center gap-1",
|
|
1751
1746
|
children: [/* @__PURE__ */ v(Y, {
|
|
1752
1747
|
className: "text-xs",
|
|
1753
1748
|
children: "Open Buy Me a Coffee"
|
|
1754
|
-
}), /* @__PURE__ */ v(
|
|
1749
|
+
}), /* @__PURE__ */ v(se, {
|
|
1755
1750
|
size: 12,
|
|
1756
1751
|
className: "text-muted-foreground"
|
|
1757
1752
|
})]
|
|
@@ -1778,29 +1773,29 @@ var Li = F.Root, Ri = F.Trigger, zi = F.Close, Bi = F.Portal, Vi = e.forwardRef(
|
|
|
1778
1773
|
asChild: !0,
|
|
1779
1774
|
ref: n,
|
|
1780
1775
|
...t,
|
|
1781
|
-
children: /* @__PURE__ */ v(
|
|
1782
|
-
entering:
|
|
1783
|
-
exiting:
|
|
1776
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
1777
|
+
entering: O.duration(150),
|
|
1778
|
+
exiting: k.duration(150),
|
|
1784
1779
|
className: q("web:cursor-default absolute inset-0 z-50 bg-black/60 backdrop-blur-md", e)
|
|
1785
1780
|
})
|
|
1786
1781
|
}));
|
|
1787
1782
|
Vi.displayName = F.Overlay?.displayName || "SheetOverlay";
|
|
1788
1783
|
var Hi = e.forwardRef(({ className: e, children: t, side: n = "right", overlayClassName: r, overlayStyle: i, ...a }, o) => {
|
|
1789
1784
|
let s = c.OS === "web", l, u;
|
|
1790
|
-
return s || (n === "bottom" ? (l =
|
|
1785
|
+
return s || (n === "bottom" ? (l = _e, u = xe) : n === "top" ? (l = be, u = we) : n === "left" ? (l = ve, u = Se) : (l = ye, u = Ce)), /* @__PURE__ */ y(Bi, { children: [/* @__PURE__ */ v(Vi, {
|
|
1791
1786
|
className: r,
|
|
1792
1787
|
style: i
|
|
1793
1788
|
}), /* @__PURE__ */ v(F.Content, {
|
|
1794
1789
|
ref: o,
|
|
1795
1790
|
asChild: !0,
|
|
1796
1791
|
...a,
|
|
1797
|
-
children: /* @__PURE__ */ y(
|
|
1792
|
+
children: /* @__PURE__ */ y(D.View, {
|
|
1798
1793
|
entering: l,
|
|
1799
1794
|
exiting: u,
|
|
1800
1795
|
className: q("bg-background web:cursor-default web:duration-200 web:ease-in-out absolute z-50 h-full w-3/4 gap-4 p-6 shadow-lg", n === "right" && "border-border data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right top-0 right-0 border-l", n === "left" && "border-border data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left top-0 left-0 border-r", n === "top" && "border-border data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top top-0 w-full border-b", n === "bottom" && "border-border data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom bottom-0 w-full border-t", e),
|
|
1801
1796
|
children: [t, /* @__PURE__ */ y(F.Close, {
|
|
1802
1797
|
className: q("ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", "web:absolute web:right-4 web:top-4"),
|
|
1803
|
-
children: [/* @__PURE__ */ v(
|
|
1798
|
+
children: [/* @__PURE__ */ v(E, {
|
|
1804
1799
|
size: 24,
|
|
1805
1800
|
className: "text-muted-foreground"
|
|
1806
1801
|
}), /* @__PURE__ */ v(Y, {
|
|
@@ -1837,12 +1832,12 @@ Ki.displayName = F.Description?.displayName || "SheetDescription";
|
|
|
1837
1832
|
//#endregion
|
|
1838
1833
|
//#region src/skeleton.tsx
|
|
1839
1834
|
function qi({ className: t, ...n }) {
|
|
1840
|
-
let r =
|
|
1835
|
+
let r = Oe(.5);
|
|
1841
1836
|
e.useEffect(() => {
|
|
1842
|
-
r.value =
|
|
1843
|
-
}, []);
|
|
1844
|
-
let i =
|
|
1845
|
-
return /* @__PURE__ */ v(
|
|
1837
|
+
r.value = ke(Ae(A(.2, { duration: 500 }), A(.5, { duration: 500 })), -1, !0);
|
|
1838
|
+
}, [r]);
|
|
1839
|
+
let i = Ee(() => ({ opacity: r.value }));
|
|
1840
|
+
return /* @__PURE__ */ v(D.View, {
|
|
1846
1841
|
className: q("bg-muted rounded-md", t),
|
|
1847
1842
|
style: i,
|
|
1848
1843
|
...n
|
|
@@ -1876,10 +1871,10 @@ var Yi = ({ children: e }) => /* @__PURE__ */ v(_, { children: e }), Xi = () =>
|
|
|
1876
1871
|
ref: r,
|
|
1877
1872
|
className: q("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg", t === "default" ? "border-border bg-background" : "border-destructive bg-destructive", e),
|
|
1878
1873
|
...n,
|
|
1879
|
-
children: /* @__PURE__ */ v(
|
|
1880
|
-
entering:
|
|
1881
|
-
exiting:
|
|
1882
|
-
layout:
|
|
1874
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
1875
|
+
entering: me,
|
|
1876
|
+
exiting: he,
|
|
1877
|
+
layout: ge,
|
|
1883
1878
|
className: "w-full flex-row items-center",
|
|
1884
1879
|
children: n.children
|
|
1885
1880
|
})
|
|
@@ -1901,7 +1896,7 @@ var ea = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(U.Close,
|
|
|
1901
1896
|
ref: n,
|
|
1902
1897
|
className: q("text-foreground/50 hover:text-foreground absolute top-1 right-1 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 focus:opacity-100 focus:ring-1 focus:outline-none", e),
|
|
1903
1898
|
...t,
|
|
1904
|
-
children: /* @__PURE__ */ v(
|
|
1899
|
+
children: /* @__PURE__ */ v(E, {
|
|
1905
1900
|
size: 16,
|
|
1906
1901
|
className: "text-muted-foreground"
|
|
1907
1902
|
})
|
|
@@ -1997,7 +1992,7 @@ pa.displayName = W.List?.displayName || "TabsList";
|
|
|
1997
1992
|
var ma = e.forwardRef(({ className: e, ...t }, n) => {
|
|
1998
1993
|
let { value: r } = W.useRootContext();
|
|
1999
1994
|
return /* @__PURE__ */ v(Tt.Provider, {
|
|
2000
|
-
value: q("
|
|
1995
|
+
value: q("native:text-base text-muted-foreground web:transition-all text-sm font-medium", r === t.value && "text-foreground"),
|
|
2001
1996
|
children: /* @__PURE__ */ v(W.Trigger, {
|
|
2002
1997
|
ref: n,
|
|
2003
1998
|
className: q("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center rounded-sm px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50", t.disabled && "opacity-50", r === t.value && "bg-background shadow-foreground/10 shadow-sm", e),
|
|
@@ -2027,7 +2022,7 @@ ga.displayName = "Textarea";
|
|
|
2027
2022
|
//#endregion
|
|
2028
2023
|
//#region src/toggle.tsx
|
|
2029
2024
|
var _a = e.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ v(Tt.Provider, {
|
|
2030
|
-
value: q("
|
|
2025
|
+
value: q("native:text-base text-foreground text-sm font-medium", r.pressed && "text-accent-foreground", e),
|
|
2031
2026
|
children: /* @__PURE__ */ v(Ge.Root, {
|
|
2032
2027
|
ref: i,
|
|
2033
2028
|
className: q(We({
|
|
@@ -2065,7 +2060,7 @@ ya.displayName = Ke.Root?.displayName || "ToggleGroup";
|
|
|
2065
2060
|
var ba = e.forwardRef(({ className: t, children: n, variant: r, size: i, value: a, ...o }, s) => {
|
|
2066
2061
|
let c = e.useContext(va);
|
|
2067
2062
|
return /* @__PURE__ */ v(Tt.Provider, {
|
|
2068
|
-
value: q("
|
|
2063
|
+
value: q("native:text-base text-foreground text-sm font-medium", o.disabled && "web:cursor-not-allowed opacity-50", a === "" && "text-accent-foreground", t),
|
|
2069
2064
|
children: /* @__PURE__ */ v(Ke.Item, {
|
|
2070
2065
|
ref: s,
|
|
2071
2066
|
value: a,
|
|
@@ -2085,9 +2080,9 @@ var xa = G.Root, Sa = G.Trigger, Ca = e.forwardRef(({ className: e, portalHost:
|
|
|
2085
2080
|
hostName: t,
|
|
2086
2081
|
children: /* @__PURE__ */ v(G.Overlay, {
|
|
2087
2082
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
2088
|
-
children: /* @__PURE__ */ v(
|
|
2089
|
-
entering:
|
|
2090
|
-
exiting:
|
|
2083
|
+
children: /* @__PURE__ */ v(D.View, {
|
|
2084
|
+
entering: O,
|
|
2085
|
+
exiting: k,
|
|
2091
2086
|
className: q("border-border bg-popover web:animate-in web:fade-in-0 web:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md border px-3 py-1.5 shadow-md", e),
|
|
2092
2087
|
children: /* @__PURE__ */ v(Y, {
|
|
2093
2088
|
className: "text-popover-foreground native:text-base text-sm",
|
|
@@ -2248,45 +2243,52 @@ function Ba(e) {
|
|
|
2248
2243
|
}
|
|
2249
2244
|
} });
|
|
2250
2245
|
}
|
|
2251
|
-
Ba(
|
|
2252
|
-
function Va({
|
|
2253
|
-
|
|
2254
|
-
t ? t(e) : e === "system" ? i.setColorScheme("unspecified") : i.setColorScheme(e);
|
|
2255
|
-
}, f = () => /* @__PURE__ */ y(h, {
|
|
2246
|
+
Ba(de), Ba(ce), Ba(fe);
|
|
2247
|
+
function Va({ isDark: e, isSystem: t, foreground: n }) {
|
|
2248
|
+
return /* @__PURE__ */ y(h, {
|
|
2256
2249
|
className: "flex h-6 w-6 items-center justify-center",
|
|
2257
2250
|
children: [
|
|
2258
2251
|
/* @__PURE__ */ v(h, {
|
|
2259
|
-
className: q("items-center justify-center transition-all", !
|
|
2260
|
-
children: /* @__PURE__ */ v(
|
|
2252
|
+
className: q("items-center justify-center transition-all", !t && !e ? "rotate-0 opacity-100" : "absolute -rotate-90 opacity-0"),
|
|
2253
|
+
children: /* @__PURE__ */ v(de, {
|
|
2261
2254
|
size: 18,
|
|
2262
|
-
color:
|
|
2255
|
+
color: n
|
|
2263
2256
|
})
|
|
2264
2257
|
}),
|
|
2265
2258
|
/* @__PURE__ */ v(h, {
|
|
2266
|
-
className: q("items-center justify-center transition-all", !
|
|
2267
|
-
children: /* @__PURE__ */ v(
|
|
2259
|
+
className: q("items-center justify-center transition-all", !t && e ? "rotate-0 opacity-100" : "absolute rotate-90 opacity-0"),
|
|
2260
|
+
children: /* @__PURE__ */ v(ce, {
|
|
2268
2261
|
size: 18,
|
|
2269
|
-
color:
|
|
2262
|
+
color: n
|
|
2270
2263
|
})
|
|
2271
2264
|
}),
|
|
2272
2265
|
/* @__PURE__ */ v(h, {
|
|
2273
|
-
className: q("items-center justify-center transition-all",
|
|
2274
|
-
children: /* @__PURE__ */ v(
|
|
2266
|
+
className: q("items-center justify-center transition-all", t ? "rotate-0 opacity-100" : "absolute rotate-90 opacity-0"),
|
|
2267
|
+
children: /* @__PURE__ */ v(fe, {
|
|
2275
2268
|
size: 18,
|
|
2276
|
-
color:
|
|
2269
|
+
color: n
|
|
2277
2270
|
})
|
|
2278
2271
|
})
|
|
2279
2272
|
]
|
|
2280
2273
|
});
|
|
2274
|
+
}
|
|
2275
|
+
function Ha({ variant: e = "binary", onThemeChange: t, customTheme: n, className: r }) {
|
|
2276
|
+
let { theme: a, resolvedTheme: o, tokens: s } = za(), c = n ?? a, l = (n === "system" || !n ? o : n) === "dark", u = c === "system", d = (e) => {
|
|
2277
|
+
t ? t(e) : e === "system" ? i.setColorScheme("unspecified") : i.setColorScheme(e);
|
|
2278
|
+
};
|
|
2281
2279
|
return e === "ternary" ? /* @__PURE__ */ y(Xn, { children: [/* @__PURE__ */ v(Zn, {
|
|
2282
2280
|
className: q("relative h-9 w-9 flex-row items-center justify-center rounded-md bg-transparent transition-colors active:opacity-80", r),
|
|
2283
|
-
children: /* @__PURE__ */ v(
|
|
2281
|
+
children: /* @__PURE__ */ v(Va, {
|
|
2282
|
+
isDark: l,
|
|
2283
|
+
isSystem: u,
|
|
2284
|
+
foreground: s.foreground
|
|
2285
|
+
})
|
|
2284
2286
|
}), /* @__PURE__ */ y(rr, {
|
|
2285
2287
|
align: "end",
|
|
2286
2288
|
children: [
|
|
2287
2289
|
/* @__PURE__ */ y(X, {
|
|
2288
2290
|
onSelect: () => d("light"),
|
|
2289
|
-
children: [/* @__PURE__ */ v(
|
|
2291
|
+
children: [/* @__PURE__ */ v(de, {
|
|
2290
2292
|
size: 14,
|
|
2291
2293
|
color: s.foreground,
|
|
2292
2294
|
className: "mr-2"
|
|
@@ -2294,7 +2296,7 @@ function Va({ variant: e = "binary", onThemeChange: t, customTheme: n, className
|
|
|
2294
2296
|
}),
|
|
2295
2297
|
/* @__PURE__ */ y(X, {
|
|
2296
2298
|
onSelect: () => d("dark"),
|
|
2297
|
-
children: [/* @__PURE__ */ v(
|
|
2299
|
+
children: [/* @__PURE__ */ v(ce, {
|
|
2298
2300
|
size: 14,
|
|
2299
2301
|
color: s.foreground,
|
|
2300
2302
|
className: "mr-2"
|
|
@@ -2302,7 +2304,7 @@ function Va({ variant: e = "binary", onThemeChange: t, customTheme: n, className
|
|
|
2302
2304
|
}),
|
|
2303
2305
|
/* @__PURE__ */ y(X, {
|
|
2304
2306
|
onSelect: () => d("system"),
|
|
2305
|
-
children: [/* @__PURE__ */ v(
|
|
2307
|
+
children: [/* @__PURE__ */ v(fe, {
|
|
2306
2308
|
size: 14,
|
|
2307
2309
|
color: s.foreground,
|
|
2308
2310
|
className: "mr-2"
|
|
@@ -2314,12 +2316,16 @@ function Va({ variant: e = "binary", onThemeChange: t, customTheme: n, className
|
|
|
2314
2316
|
size: "icon",
|
|
2315
2317
|
className: q("relative h-9 w-9", r),
|
|
2316
2318
|
onPress: () => d(c === "dark" ? "light" : "dark"),
|
|
2317
|
-
children: /* @__PURE__ */ v(
|
|
2319
|
+
children: /* @__PURE__ */ v(Va, {
|
|
2320
|
+
isDark: l,
|
|
2321
|
+
isSystem: u,
|
|
2322
|
+
foreground: s.foreground
|
|
2323
|
+
})
|
|
2318
2324
|
});
|
|
2319
2325
|
}
|
|
2320
2326
|
//#endregion
|
|
2321
2327
|
//#region src/toaster.tsx
|
|
2322
|
-
var
|
|
2328
|
+
var Ua = () => {
|
|
2323
2329
|
let { toasts: e } = Ia();
|
|
2324
2330
|
return /* @__PURE__ */ v(Yi, { children: /* @__PURE__ */ v(h, {
|
|
2325
2331
|
className: "pointer-events-none absolute right-6 bottom-6 left-6 z-50 flex flex-col gap-2",
|
|
@@ -2336,13 +2342,13 @@ var Ha = () => {
|
|
|
2336
2342
|
]
|
|
2337
2343
|
}, e))
|
|
2338
2344
|
}) });
|
|
2339
|
-
},
|
|
2340
|
-
function
|
|
2341
|
-
let t = e.useContext(
|
|
2345
|
+
}, Wa = e.createContext(void 0);
|
|
2346
|
+
function Ga() {
|
|
2347
|
+
let t = e.useContext(Wa);
|
|
2342
2348
|
if (!t) throw Error("useTOC must be used within a TableOfContents provider");
|
|
2343
2349
|
return t;
|
|
2344
2350
|
}
|
|
2345
|
-
function
|
|
2351
|
+
function Ka({ children: t, activeId: n }) {
|
|
2346
2352
|
let [r, i] = e.useState([]), [a, o] = e.useState(null), s = e.useRef(null), c = e.useMemo(() => {
|
|
2347
2353
|
let e = n || a;
|
|
2348
2354
|
return r.find((t) => t.id === e)?.text || null;
|
|
@@ -2399,7 +2405,7 @@ function Ga({ children: t, activeId: n }) {
|
|
|
2399
2405
|
d,
|
|
2400
2406
|
f
|
|
2401
2407
|
]);
|
|
2402
|
-
return /* @__PURE__ */ v(
|
|
2408
|
+
return /* @__PURE__ */ v(Wa.Provider, {
|
|
2403
2409
|
value: p,
|
|
2404
2410
|
children: /* @__PURE__ */ v(h, {
|
|
2405
2411
|
className: "flex-1",
|
|
@@ -2407,8 +2413,8 @@ function Ga({ children: t, activeId: n }) {
|
|
|
2407
2413
|
})
|
|
2408
2414
|
});
|
|
2409
2415
|
}
|
|
2410
|
-
function
|
|
2411
|
-
let { registerHeading: a, unregisterHeading: o } =
|
|
2416
|
+
function qa({ children: t, level: n = 2, id: r, className: i }) {
|
|
2417
|
+
let { registerHeading: a, unregisterHeading: o } = Ga(), s = r || Ye(t), c = e.useCallback((e) => {
|
|
2412
2418
|
let { y: r } = e.nativeEvent.layout;
|
|
2413
2419
|
a(s, t, n, r);
|
|
2414
2420
|
}, [
|
|
@@ -2426,8 +2432,8 @@ function Ka({ children: t, level: n = 2, id: r, className: i }) {
|
|
|
2426
2432
|
})
|
|
2427
2433
|
});
|
|
2428
2434
|
}
|
|
2429
|
-
function
|
|
2430
|
-
let { headings: n, activeId: r, scrollToHeading: i } =
|
|
2435
|
+
function Ja({ className: t }) {
|
|
2436
|
+
let { headings: n, activeId: r, scrollToHeading: i } = Ga(), a = e.useMemo(() => n.length === 0 ? 0 : Math.min(...n.map((e) => e.level)), [n]);
|
|
2431
2437
|
return n.length === 0 ? null : /* @__PURE__ */ y(h, {
|
|
2432
2438
|
className: q("space-y-2 p-4", t),
|
|
2433
2439
|
children: [/* @__PURE__ */ v(Y, {
|
|
@@ -2448,8 +2454,8 @@ function qa({ className: t }) {
|
|
|
2448
2454
|
})]
|
|
2449
2455
|
});
|
|
2450
2456
|
}
|
|
2451
|
-
function
|
|
2452
|
-
let { scrollViewRef: n, onScroll: r } =
|
|
2457
|
+
function Ya({ children: e, className: t }) {
|
|
2458
|
+
let { scrollViewRef: n, onScroll: r } = Ga();
|
|
2453
2459
|
return /* @__PURE__ */ v(u, {
|
|
2454
2460
|
ref: n,
|
|
2455
2461
|
onScroll: r,
|
|
@@ -2461,69 +2467,69 @@ function Ja({ children: e, className: t }) {
|
|
|
2461
2467
|
children: e
|
|
2462
2468
|
});
|
|
2463
2469
|
}
|
|
2464
|
-
|
|
2470
|
+
Ka.List = Ja, Ka.Content = Ya, Ka.Heading = qa;
|
|
2465
2471
|
//#endregion
|
|
2466
2472
|
//#region src/button-group.tsx
|
|
2467
|
-
function
|
|
2473
|
+
function Xa({ className: e, orientation: t, ...n }) {
|
|
2468
2474
|
return /* @__PURE__ */ v(h, {
|
|
2469
2475
|
className: q("flex flex-row", e),
|
|
2470
2476
|
...n
|
|
2471
2477
|
});
|
|
2472
2478
|
}
|
|
2473
|
-
function
|
|
2479
|
+
function Za({ className: e, asChild: t, ...n }) {
|
|
2474
2480
|
return /* @__PURE__ */ v(f, {
|
|
2475
2481
|
className: q("text-sm font-medium", e),
|
|
2476
2482
|
...n
|
|
2477
2483
|
});
|
|
2478
2484
|
}
|
|
2479
|
-
function
|
|
2485
|
+
function Qa({ className: e, orientation: t, ...n }) {
|
|
2480
2486
|
return /* @__PURE__ */ v(h, {
|
|
2481
2487
|
className: q("bg-border h-full w-px", e),
|
|
2482
2488
|
...n
|
|
2483
2489
|
});
|
|
2484
2490
|
}
|
|
2485
|
-
var
|
|
2491
|
+
var $a = () => "";
|
|
2486
2492
|
//#endregion
|
|
2487
2493
|
//#region src/direction.tsx
|
|
2488
|
-
function
|
|
2494
|
+
function eo({ children: e }) {
|
|
2489
2495
|
return /* @__PURE__ */ v(_, { children: e });
|
|
2490
2496
|
}
|
|
2491
|
-
function
|
|
2497
|
+
function to() {
|
|
2492
2498
|
return "ltr";
|
|
2493
2499
|
}
|
|
2494
2500
|
//#endregion
|
|
2495
2501
|
//#region src/empty.tsx
|
|
2496
|
-
function
|
|
2502
|
+
function no({ className: e, ...t }) {
|
|
2497
2503
|
return /* @__PURE__ */ v(h, {
|
|
2498
2504
|
className: q("border-border flex w-full items-center justify-center rounded-xl border-2 border-dashed p-6", e),
|
|
2499
2505
|
...t
|
|
2500
2506
|
});
|
|
2501
2507
|
}
|
|
2502
|
-
function
|
|
2508
|
+
function ro({ className: e, ...t }) {
|
|
2503
2509
|
return /* @__PURE__ */ v(h, {
|
|
2504
2510
|
className: q("flex flex-col items-center gap-2", e),
|
|
2505
2511
|
...t
|
|
2506
2512
|
});
|
|
2507
2513
|
}
|
|
2508
|
-
function
|
|
2514
|
+
function io({ className: e, variant: t, ...n }) {
|
|
2509
2515
|
return /* @__PURE__ */ v(h, {
|
|
2510
2516
|
className: q("flex items-center justify-center", e),
|
|
2511
2517
|
...n
|
|
2512
2518
|
});
|
|
2513
2519
|
}
|
|
2514
|
-
function
|
|
2520
|
+
function ao({ className: e, ...t }) {
|
|
2515
2521
|
return /* @__PURE__ */ v(f, {
|
|
2516
2522
|
className: q("text-foreground text-lg font-semibold", e),
|
|
2517
2523
|
...t
|
|
2518
2524
|
});
|
|
2519
2525
|
}
|
|
2520
|
-
function
|
|
2526
|
+
function oo({ className: e, ...t }) {
|
|
2521
2527
|
return /* @__PURE__ */ v(f, {
|
|
2522
2528
|
className: q("text-muted-foreground text-center text-sm", e),
|
|
2523
2529
|
...t
|
|
2524
2530
|
});
|
|
2525
2531
|
}
|
|
2526
|
-
function
|
|
2532
|
+
function so({ className: e, ...t }) {
|
|
2527
2533
|
return /* @__PURE__ */ v(h, {
|
|
2528
2534
|
className: q("mt-4 flex flex-col items-center gap-2", e),
|
|
2529
2535
|
...t
|
|
@@ -2531,7 +2537,7 @@ function oo({ className: e, ...t }) {
|
|
|
2531
2537
|
}
|
|
2532
2538
|
//#endregion
|
|
2533
2539
|
//#region src/spinner.tsx
|
|
2534
|
-
function
|
|
2540
|
+
function co({ className: e, ...t }) {
|
|
2535
2541
|
return /* @__PURE__ */ v(n, {
|
|
2536
2542
|
size: "small",
|
|
2537
2543
|
...t
|
|
@@ -2539,25 +2545,25 @@ function so({ className: e, ...t }) {
|
|
|
2539
2545
|
}
|
|
2540
2546
|
//#endregion
|
|
2541
2547
|
//#region src/field.tsx
|
|
2542
|
-
function
|
|
2548
|
+
function lo({ className: e, orientation: t, ...n }) {
|
|
2543
2549
|
return /* @__PURE__ */ v(h, {
|
|
2544
2550
|
className: q("flex flex-col gap-2", e),
|
|
2545
2551
|
...n
|
|
2546
2552
|
});
|
|
2547
2553
|
}
|
|
2548
|
-
function
|
|
2554
|
+
function uo({ className: e, ...t }) {
|
|
2549
2555
|
return /* @__PURE__ */ v(h, {
|
|
2550
2556
|
className: q("flex flex-col", e),
|
|
2551
2557
|
...t
|
|
2552
2558
|
});
|
|
2553
2559
|
}
|
|
2554
|
-
function
|
|
2560
|
+
function fo({ className: e, ...t }) {
|
|
2555
2561
|
return /* @__PURE__ */ v(f, {
|
|
2556
2562
|
className: q("text-muted-foreground text-sm", e),
|
|
2557
2563
|
...t
|
|
2558
2564
|
});
|
|
2559
2565
|
}
|
|
2560
|
-
function
|
|
2566
|
+
function po({ className: e, errors: t, children: n, ...r }) {
|
|
2561
2567
|
let i = n || t && t[0]?.message;
|
|
2562
2568
|
return i ? /* @__PURE__ */ v(f, {
|
|
2563
2569
|
className: q("text-destructive text-sm", e),
|
|
@@ -2565,25 +2571,25 @@ function fo({ className: e, errors: t, children: n, ...r }) {
|
|
|
2565
2571
|
children: i
|
|
2566
2572
|
}) : null;
|
|
2567
2573
|
}
|
|
2568
|
-
function
|
|
2574
|
+
function mo({ className: e, ...t }) {
|
|
2569
2575
|
return /* @__PURE__ */ v(h, {
|
|
2570
2576
|
className: q("flex flex-col gap-4", e),
|
|
2571
2577
|
...t
|
|
2572
2578
|
});
|
|
2573
2579
|
}
|
|
2574
|
-
function
|
|
2580
|
+
function ho({ className: e, ...t }) {
|
|
2575
2581
|
return /* @__PURE__ */ v(f, {
|
|
2576
2582
|
className: q("text-sm font-medium", e),
|
|
2577
2583
|
...t
|
|
2578
2584
|
});
|
|
2579
2585
|
}
|
|
2580
|
-
function
|
|
2586
|
+
function go({ className: e, variant: t, ...n }) {
|
|
2581
2587
|
return /* @__PURE__ */ v(f, {
|
|
2582
2588
|
className: q("font-medium", t === "label" ? "text-sm" : "text-base", e),
|
|
2583
2589
|
...n
|
|
2584
2590
|
});
|
|
2585
2591
|
}
|
|
2586
|
-
function
|
|
2592
|
+
function _o({ className: e, children: t, ...n }) {
|
|
2587
2593
|
return /* @__PURE__ */ v(h, {
|
|
2588
2594
|
className: q("bg-border my-2 h-px", e),
|
|
2589
2595
|
...n,
|
|
@@ -2593,13 +2599,13 @@ function go({ className: e, children: t, ...n }) {
|
|
|
2593
2599
|
}) : null
|
|
2594
2600
|
});
|
|
2595
2601
|
}
|
|
2596
|
-
function
|
|
2602
|
+
function vo({ className: e, ...t }) {
|
|
2597
2603
|
return /* @__PURE__ */ v(h, {
|
|
2598
2604
|
className: q("flex flex-col gap-4", e),
|
|
2599
2605
|
...t
|
|
2600
2606
|
});
|
|
2601
2607
|
}
|
|
2602
|
-
function
|
|
2608
|
+
function yo({ className: e, ...t }) {
|
|
2603
2609
|
return /* @__PURE__ */ v(f, {
|
|
2604
2610
|
className: q("text-sm font-medium", e),
|
|
2605
2611
|
...t
|
|
@@ -2607,19 +2613,19 @@ function vo({ className: e, ...t }) {
|
|
|
2607
2613
|
}
|
|
2608
2614
|
//#endregion
|
|
2609
2615
|
//#region src/input-group.tsx
|
|
2610
|
-
function
|
|
2616
|
+
function bo({ className: e, ...t }) {
|
|
2611
2617
|
return /* @__PURE__ */ v(h, {
|
|
2612
2618
|
className: q("border-input flex flex-row items-center rounded-md border", e),
|
|
2613
2619
|
...t
|
|
2614
2620
|
});
|
|
2615
2621
|
}
|
|
2616
|
-
function
|
|
2622
|
+
function xo({ className: e, align: t, ...n }) {
|
|
2617
2623
|
return /* @__PURE__ */ v(h, {
|
|
2618
2624
|
className: q("p-2", e),
|
|
2619
2625
|
...n
|
|
2620
2626
|
});
|
|
2621
2627
|
}
|
|
2622
|
-
function
|
|
2628
|
+
function So({ className: e, type: t, variant: n, size: r, ...i }) {
|
|
2623
2629
|
return /* @__PURE__ */ v(J, {
|
|
2624
2630
|
variant: n,
|
|
2625
2631
|
size: r,
|
|
@@ -2627,19 +2633,19 @@ function xo({ className: e, type: t, variant: n, size: r, ...i }) {
|
|
|
2627
2633
|
...i
|
|
2628
2634
|
});
|
|
2629
2635
|
}
|
|
2630
|
-
function
|
|
2636
|
+
function Co({ className: e, ...t }) {
|
|
2631
2637
|
return /* @__PURE__ */ v(f, {
|
|
2632
2638
|
className: q("text-muted-foreground text-sm", e),
|
|
2633
2639
|
...t
|
|
2634
2640
|
});
|
|
2635
2641
|
}
|
|
2636
|
-
function
|
|
2642
|
+
function wo({ className: e, ...t }) {
|
|
2637
2643
|
return /* @__PURE__ */ v(p, {
|
|
2638
2644
|
className: q("text-foreground flex-1 px-3 py-2", e),
|
|
2639
2645
|
...t
|
|
2640
2646
|
});
|
|
2641
2647
|
}
|
|
2642
|
-
function
|
|
2648
|
+
function To({ className: e, ...t }) {
|
|
2643
2649
|
return /* @__PURE__ */ v(p, {
|
|
2644
2650
|
multiline: !0,
|
|
2645
2651
|
className: q("text-foreground flex-1 px-3 py-2", e),
|
|
@@ -2648,7 +2654,7 @@ function wo({ className: e, ...t }) {
|
|
|
2648
2654
|
}
|
|
2649
2655
|
//#endregion
|
|
2650
2656
|
//#region src/native-select.tsx
|
|
2651
|
-
function
|
|
2657
|
+
function Eo({ className: e, size: t, ...n }) {
|
|
2652
2658
|
return /* @__PURE__ */ v(h, {
|
|
2653
2659
|
className: q("border-input rounded-md border p-2", e),
|
|
2654
2660
|
...n,
|
|
@@ -2658,13 +2664,13 @@ function To({ className: e, size: t, ...n }) {
|
|
|
2658
2664
|
})
|
|
2659
2665
|
});
|
|
2660
2666
|
}
|
|
2661
|
-
function
|
|
2667
|
+
function Do({ className: e, ...t }) {
|
|
2662
2668
|
return /* @__PURE__ */ v(h, {
|
|
2663
2669
|
className: e,
|
|
2664
2670
|
...t
|
|
2665
2671
|
});
|
|
2666
2672
|
}
|
|
2667
|
-
function
|
|
2673
|
+
function Oo({ className: e, ...t }) {
|
|
2668
2674
|
return /* @__PURE__ */ v(h, {
|
|
2669
2675
|
className: e,
|
|
2670
2676
|
...t
|
|
@@ -2672,13 +2678,13 @@ function Do({ className: e, ...t }) {
|
|
|
2672
2678
|
}
|
|
2673
2679
|
//#endregion
|
|
2674
2680
|
//#region src/kbd.tsx
|
|
2675
|
-
function
|
|
2681
|
+
function ko({ className: e, ...t }) {
|
|
2676
2682
|
return /* @__PURE__ */ v(f, {
|
|
2677
2683
|
className: q("bg-muted text-muted-foreground rounded-sm px-1 font-mono text-xs", e),
|
|
2678
2684
|
...t
|
|
2679
2685
|
});
|
|
2680
2686
|
}
|
|
2681
|
-
function
|
|
2687
|
+
function Ao({ className: e, ...t }) {
|
|
2682
2688
|
return /* @__PURE__ */ v(h, {
|
|
2683
2689
|
className: q("flex flex-row items-center gap-1", e),
|
|
2684
2690
|
...t
|
|
@@ -2686,62 +2692,62 @@ function ko({ className: e, ...t }) {
|
|
|
2686
2692
|
}
|
|
2687
2693
|
//#endregion
|
|
2688
2694
|
//#region src/item.tsx
|
|
2689
|
-
function
|
|
2695
|
+
function jo({ className: e, variant: t, size: n, ...r }) {
|
|
2690
2696
|
return /* @__PURE__ */ v(h, {
|
|
2691
2697
|
className: q("flex flex-row flex-wrap items-center gap-2 rounded-lg border p-3", e),
|
|
2692
2698
|
...r
|
|
2693
2699
|
});
|
|
2694
2700
|
}
|
|
2695
|
-
function
|
|
2701
|
+
function Mo({ className: e, ...t }) {
|
|
2696
2702
|
return /* @__PURE__ */ v(h, {
|
|
2697
2703
|
className: q("flex flex-row items-center gap-2", e),
|
|
2698
2704
|
...t
|
|
2699
2705
|
});
|
|
2700
2706
|
}
|
|
2701
|
-
function
|
|
2707
|
+
function No({ className: e, ...t }) {
|
|
2702
2708
|
return /* @__PURE__ */ v(h, {
|
|
2703
2709
|
className: q("flex flex-1 flex-col gap-1", e),
|
|
2704
2710
|
...t
|
|
2705
2711
|
});
|
|
2706
2712
|
}
|
|
2707
|
-
function
|
|
2713
|
+
function Po({ className: e, ...t }) {
|
|
2708
2714
|
return /* @__PURE__ */ v(Y, {
|
|
2709
2715
|
variant: "bodySmall",
|
|
2710
2716
|
className: q("text-muted-foreground", e),
|
|
2711
2717
|
...t
|
|
2712
2718
|
});
|
|
2713
2719
|
}
|
|
2714
|
-
function
|
|
2720
|
+
function Fo({ className: e, ...t }) {
|
|
2715
2721
|
return /* @__PURE__ */ v(h, {
|
|
2716
2722
|
className: q("flex w-full flex-row items-center justify-between gap-2", e),
|
|
2717
2723
|
...t
|
|
2718
2724
|
});
|
|
2719
2725
|
}
|
|
2720
|
-
function
|
|
2726
|
+
function Io({ className: e, ...t }) {
|
|
2721
2727
|
return /* @__PURE__ */ v(h, {
|
|
2722
2728
|
className: q("flex flex-col gap-4", e),
|
|
2723
2729
|
...t
|
|
2724
2730
|
});
|
|
2725
2731
|
}
|
|
2726
|
-
function
|
|
2732
|
+
function Lo({ className: e, ...t }) {
|
|
2727
2733
|
return /* @__PURE__ */ v(h, {
|
|
2728
2734
|
className: q("flex w-full flex-row items-center justify-between gap-2", e),
|
|
2729
2735
|
...t
|
|
2730
2736
|
});
|
|
2731
2737
|
}
|
|
2732
|
-
function
|
|
2738
|
+
function Ro({ className: e, variant: t, ...n }) {
|
|
2733
2739
|
return /* @__PURE__ */ v(h, {
|
|
2734
2740
|
className: q("flex shrink-0 items-center justify-center gap-2", e),
|
|
2735
2741
|
...n
|
|
2736
2742
|
});
|
|
2737
2743
|
}
|
|
2738
|
-
function
|
|
2744
|
+
function zo({ className: e, orientation: t, ...n }) {
|
|
2739
2745
|
return /* @__PURE__ */ v(h, {
|
|
2740
2746
|
className: q("bg-border my-2 h-px w-full", e),
|
|
2741
2747
|
...n
|
|
2742
2748
|
});
|
|
2743
2749
|
}
|
|
2744
|
-
function
|
|
2750
|
+
function Bo({ className: e, ...t }) {
|
|
2745
2751
|
return /* @__PURE__ */ v(Y, {
|
|
2746
2752
|
variant: "bodySmall",
|
|
2747
2753
|
className: q("font-medium", e),
|
|
@@ -2750,15 +2756,15 @@ function zo({ className: e, ...t }) {
|
|
|
2750
2756
|
}
|
|
2751
2757
|
//#endregion
|
|
2752
2758
|
//#region src/combobox.tsx
|
|
2753
|
-
var
|
|
2759
|
+
var Vo = e.createContext(null);
|
|
2754
2760
|
function $() {
|
|
2755
|
-
let t = e.useContext(
|
|
2761
|
+
let t = e.useContext(Vo);
|
|
2756
2762
|
if (!t) throw Error("Combobox components must be rendered within a Combobox provider");
|
|
2757
2763
|
return t;
|
|
2758
2764
|
}
|
|
2759
|
-
function
|
|
2765
|
+
function Ho({ className: t, value: n, onValueChange: r, ...i }) {
|
|
2760
2766
|
let [a, o] = e.useState(!1), [s, c] = e.useState(n || ""), [l, u] = e.useState(""), d = n === void 0 ? s : n;
|
|
2761
|
-
return /* @__PURE__ */ v(
|
|
2767
|
+
return /* @__PURE__ */ v(Vo.Provider, {
|
|
2762
2768
|
value: {
|
|
2763
2769
|
open: a,
|
|
2764
2770
|
setOpen: o,
|
|
@@ -2779,7 +2785,7 @@ function Vo({ className: t, value: n, onValueChange: r, ...i }) {
|
|
|
2779
2785
|
})
|
|
2780
2786
|
});
|
|
2781
2787
|
}
|
|
2782
|
-
function
|
|
2788
|
+
function Uo({ className: e, children: t, ...n }) {
|
|
2783
2789
|
let { value: r } = $();
|
|
2784
2790
|
return /* @__PURE__ */ v(h, {
|
|
2785
2791
|
className: e,
|
|
@@ -2790,7 +2796,7 @@ function Ho({ className: e, children: t, ...n }) {
|
|
|
2790
2796
|
})
|
|
2791
2797
|
});
|
|
2792
2798
|
}
|
|
2793
|
-
function
|
|
2799
|
+
function Wo({ className: e, children: t, ...n }) {
|
|
2794
2800
|
return /* @__PURE__ */ v(jn, {
|
|
2795
2801
|
asChild: !0,
|
|
2796
2802
|
children: /* @__PURE__ */ y(l, {
|
|
@@ -2806,19 +2812,19 @@ function Uo({ className: e, children: t, ...n }) {
|
|
|
2806
2812
|
})
|
|
2807
2813
|
});
|
|
2808
2814
|
}
|
|
2809
|
-
function
|
|
2815
|
+
function Go({ className: e, children: t, ...n }) {
|
|
2810
2816
|
let { setValue: r } = $();
|
|
2811
2817
|
return /* @__PURE__ */ v(l, {
|
|
2812
2818
|
className: q("flex items-center justify-center p-1", e),
|
|
2813
2819
|
onPress: () => r(""),
|
|
2814
2820
|
...n,
|
|
2815
|
-
children: t || /* @__PURE__ */ v(
|
|
2821
|
+
children: t || /* @__PURE__ */ v(E, {
|
|
2816
2822
|
size: 14,
|
|
2817
2823
|
className: "text-muted-foreground"
|
|
2818
2824
|
})
|
|
2819
2825
|
});
|
|
2820
2826
|
}
|
|
2821
|
-
function
|
|
2827
|
+
function Ko({ className: e, showClear: t, showTrigger: n, placeholder: r = "Search...", ...i }) {
|
|
2822
2828
|
let { searchQuery: a, setSearchQuery: o } = $();
|
|
2823
2829
|
return /* @__PURE__ */ v(h, {
|
|
2824
2830
|
className: "border-border flex flex-row items-center border-b px-3",
|
|
@@ -2828,12 +2834,11 @@ function Go({ className: e, showClear: t, showTrigger: n, placeholder: r = "Sear
|
|
|
2828
2834
|
placeholderTextColor: "#a1a1aa",
|
|
2829
2835
|
value: a,
|
|
2830
2836
|
onChangeText: o,
|
|
2831
|
-
autoFocus: !0,
|
|
2832
2837
|
...i
|
|
2833
2838
|
})
|
|
2834
2839
|
});
|
|
2835
2840
|
}
|
|
2836
|
-
function
|
|
2841
|
+
function qo({ className: e, side: t, sideOffset: n, align: r, alignOffset: i, anchor: a, ...o }) {
|
|
2837
2842
|
return /* @__PURE__ */ v(Fn, {
|
|
2838
2843
|
className: "p-0",
|
|
2839
2844
|
children: /* @__PURE__ */ v(h, {
|
|
@@ -2842,13 +2847,13 @@ function Ko({ className: e, side: t, sideOffset: n, align: r, alignOffset: i, an
|
|
|
2842
2847
|
})
|
|
2843
2848
|
});
|
|
2844
2849
|
}
|
|
2845
|
-
function
|
|
2850
|
+
function Jo({ className: e, ...t }) {
|
|
2846
2851
|
return /* @__PURE__ */ v(h, {
|
|
2847
2852
|
className: q("max-h-[300px] overflow-hidden", e),
|
|
2848
2853
|
...t
|
|
2849
2854
|
});
|
|
2850
2855
|
}
|
|
2851
|
-
function
|
|
2856
|
+
function Yo({ className: t, children: n, value: r, ...i }) {
|
|
2852
2857
|
let { value: a, setValue: o, searchQuery: s } = $(), c = e.Children.toArray(n).join("").toLowerCase();
|
|
2853
2858
|
if (s && !c.includes(s.toLowerCase()) && !r.toLowerCase().includes(s.toLowerCase())) return null;
|
|
2854
2859
|
let u = a === r;
|
|
@@ -2868,25 +2873,25 @@ function Jo({ className: t, children: n, value: r, ...i }) {
|
|
|
2868
2873
|
})]
|
|
2869
2874
|
});
|
|
2870
2875
|
}
|
|
2871
|
-
function
|
|
2876
|
+
function Xo({ className: e, ...t }) {
|
|
2872
2877
|
return /* @__PURE__ */ v(h, {
|
|
2873
2878
|
className: q("text-foreground overflow-hidden p-1", e),
|
|
2874
2879
|
...t
|
|
2875
2880
|
});
|
|
2876
2881
|
}
|
|
2877
|
-
function
|
|
2882
|
+
function Zo({ className: e, ...t }) {
|
|
2878
2883
|
return /* @__PURE__ */ v(h, {
|
|
2879
2884
|
className: q("text-muted-foreground px-2 py-1.5 text-xs font-semibold", e),
|
|
2880
2885
|
...t
|
|
2881
2886
|
});
|
|
2882
2887
|
}
|
|
2883
|
-
function
|
|
2888
|
+
function Qo({ className: e, ...t }) {
|
|
2884
2889
|
return /* @__PURE__ */ v(h, {
|
|
2885
2890
|
className: e,
|
|
2886
2891
|
...t
|
|
2887
2892
|
});
|
|
2888
2893
|
}
|
|
2889
|
-
function
|
|
2894
|
+
function $o({ className: e, children: t, ...n }) {
|
|
2890
2895
|
let { searchQuery: r } = $();
|
|
2891
2896
|
return r ? /* @__PURE__ */ v(h, {
|
|
2892
2897
|
className: q("py-6 text-center text-sm", e),
|
|
@@ -2897,40 +2902,40 @@ function Qo({ className: e, children: t, ...n }) {
|
|
|
2897
2902
|
})
|
|
2898
2903
|
}) : null;
|
|
2899
2904
|
}
|
|
2900
|
-
function
|
|
2905
|
+
function es({ className: e, ...t }) {
|
|
2901
2906
|
return /* @__PURE__ */ v(h, {
|
|
2902
2907
|
className: q("bg-muted -mx-1 h-px", e),
|
|
2903
2908
|
...t
|
|
2904
2909
|
});
|
|
2905
2910
|
}
|
|
2906
|
-
function
|
|
2911
|
+
function ts({ className: e, ...t }) {
|
|
2907
2912
|
return /* @__PURE__ */ v(h, {
|
|
2908
2913
|
className: q("flex flex-row flex-wrap gap-1", e),
|
|
2909
2914
|
...t
|
|
2910
2915
|
});
|
|
2911
2916
|
}
|
|
2912
|
-
function
|
|
2917
|
+
function ns({ className: e, showRemove: t, children: n, ...r }) {
|
|
2913
2918
|
return /* @__PURE__ */ y(h, {
|
|
2914
2919
|
className: q("bg-secondary text-secondary-foreground flex flex-row items-center rounded-md px-2 py-1", e),
|
|
2915
2920
|
...r,
|
|
2916
|
-
children: [K(n, Y, { className: "text-xs" }), t && /* @__PURE__ */ v(
|
|
2921
|
+
children: [K(n, Y, { className: "text-xs" }), t && /* @__PURE__ */ v(E, {
|
|
2917
2922
|
size: 12,
|
|
2918
2923
|
className: "ml-1 opacity-50"
|
|
2919
2924
|
})]
|
|
2920
2925
|
});
|
|
2921
2926
|
}
|
|
2922
|
-
function
|
|
2927
|
+
function rs({ className: e, ...t }) {
|
|
2923
2928
|
return /* @__PURE__ */ v(p, {
|
|
2924
2929
|
className: q("flex-1 bg-transparent px-2 py-1 outline-none", e),
|
|
2925
2930
|
...t
|
|
2926
2931
|
});
|
|
2927
2932
|
}
|
|
2928
|
-
function
|
|
2933
|
+
function is() {
|
|
2929
2934
|
return e.useRef(null);
|
|
2930
2935
|
}
|
|
2931
2936
|
//#endregion
|
|
2932
2937
|
//#region src/input-otp.tsx
|
|
2933
|
-
function
|
|
2938
|
+
function as({ className: e, containerClassName: t, ...n }) {
|
|
2934
2939
|
return /* @__PURE__ */ v(h, {
|
|
2935
2940
|
className: q("border-destructive/50 rounded-md border border-dashed p-4", t, e),
|
|
2936
2941
|
...n,
|
|
@@ -2940,19 +2945,19 @@ function is({ className: e, containerClassName: t, ...n }) {
|
|
|
2940
2945
|
})
|
|
2941
2946
|
});
|
|
2942
2947
|
}
|
|
2943
|
-
function
|
|
2948
|
+
function os({ className: e, ...t }) {
|
|
2944
2949
|
return /* @__PURE__ */ v(h, {
|
|
2945
2950
|
className: e,
|
|
2946
2951
|
...t
|
|
2947
2952
|
});
|
|
2948
2953
|
}
|
|
2949
|
-
function
|
|
2954
|
+
function ss({ className: e, index: t, ...n }) {
|
|
2950
2955
|
return /* @__PURE__ */ v(h, {
|
|
2951
2956
|
className: e,
|
|
2952
2957
|
...n
|
|
2953
2958
|
});
|
|
2954
2959
|
}
|
|
2955
|
-
function
|
|
2960
|
+
function cs({ className: e, ...t }) {
|
|
2956
2961
|
return /* @__PURE__ */ v(h, {
|
|
2957
2962
|
className: e,
|
|
2958
2963
|
...t
|
|
@@ -2960,13 +2965,13 @@ function ss({ className: e, ...t }) {
|
|
|
2960
2965
|
}
|
|
2961
2966
|
//#endregion
|
|
2962
2967
|
//#region src/sidebar.tsx
|
|
2963
|
-
function
|
|
2968
|
+
function ls({ className: e, defaultOpen: t, open: n, onOpenChange: r, ...i }) {
|
|
2964
2969
|
return /* @__PURE__ */ v(h, {
|
|
2965
2970
|
className: e,
|
|
2966
2971
|
...i
|
|
2967
2972
|
});
|
|
2968
2973
|
}
|
|
2969
|
-
function
|
|
2974
|
+
function us({ className: e, side: t, variant: n, collapsible: r, ...i }) {
|
|
2970
2975
|
return /* @__PURE__ */ v(h, {
|
|
2971
2976
|
className: q("border-destructive/50 rounded-md border border-dashed p-4", e),
|
|
2972
2977
|
...i,
|
|
@@ -2976,14 +2981,8 @@ function ls({ className: e, side: t, variant: n, collapsible: r, ...i }) {
|
|
|
2976
2981
|
})
|
|
2977
2982
|
});
|
|
2978
2983
|
}
|
|
2979
|
-
function us({ className: e, ...t }) {
|
|
2980
|
-
return /* @__PURE__ */ v(l, {
|
|
2981
|
-
className: e,
|
|
2982
|
-
...t
|
|
2983
|
-
});
|
|
2984
|
-
}
|
|
2985
2984
|
function ds({ className: e, ...t }) {
|
|
2986
|
-
return /* @__PURE__ */ v(
|
|
2985
|
+
return /* @__PURE__ */ v(l, {
|
|
2987
2986
|
className: e,
|
|
2988
2987
|
...t
|
|
2989
2988
|
});
|
|
@@ -3030,79 +3029,85 @@ function vs({ className: e, ...t }) {
|
|
|
3030
3029
|
...t
|
|
3031
3030
|
});
|
|
3032
3031
|
}
|
|
3033
|
-
function ys({ className: e,
|
|
3032
|
+
function ys({ className: e, ...t }) {
|
|
3034
3033
|
return /* @__PURE__ */ v(h, {
|
|
3035
3034
|
className: e,
|
|
3036
|
-
...
|
|
3035
|
+
...t
|
|
3037
3036
|
});
|
|
3038
3037
|
}
|
|
3039
3038
|
function bs({ className: e, asChild: t, ...n }) {
|
|
3039
|
+
return /* @__PURE__ */ v(h, {
|
|
3040
|
+
className: e,
|
|
3041
|
+
...n
|
|
3042
|
+
});
|
|
3043
|
+
}
|
|
3044
|
+
function xs({ className: e, asChild: t, ...n }) {
|
|
3040
3045
|
return /* @__PURE__ */ v(l, {
|
|
3041
3046
|
className: e,
|
|
3042
3047
|
...n
|
|
3043
3048
|
});
|
|
3044
3049
|
}
|
|
3045
|
-
function
|
|
3050
|
+
function Ss({ className: e, ...t }) {
|
|
3046
3051
|
return /* @__PURE__ */ v(h, {
|
|
3047
3052
|
className: e,
|
|
3048
3053
|
...t
|
|
3049
3054
|
});
|
|
3050
3055
|
}
|
|
3051
|
-
function
|
|
3056
|
+
function Cs({ className: e, ...t }) {
|
|
3052
3057
|
return /* @__PURE__ */ v(h, {
|
|
3053
3058
|
className: e,
|
|
3054
3059
|
...t
|
|
3055
3060
|
});
|
|
3056
3061
|
}
|
|
3057
|
-
function
|
|
3062
|
+
function ws({ className: e, ...t }) {
|
|
3058
3063
|
return /* @__PURE__ */ v(h, {
|
|
3059
3064
|
className: e,
|
|
3060
3065
|
...t
|
|
3061
3066
|
});
|
|
3062
3067
|
}
|
|
3063
|
-
function
|
|
3068
|
+
function Ts({ className: e, asChild: t, isActive: n, variant: r, size: i, tooltip: a, ...o }) {
|
|
3064
3069
|
return /* @__PURE__ */ v(l, {
|
|
3065
3070
|
className: e,
|
|
3066
3071
|
...o
|
|
3067
3072
|
});
|
|
3068
3073
|
}
|
|
3069
|
-
function
|
|
3074
|
+
function Es({ className: e, asChild: t, showOnHover: n, ...r }) {
|
|
3070
3075
|
return /* @__PURE__ */ v(l, {
|
|
3071
3076
|
className: e,
|
|
3072
3077
|
...r
|
|
3073
3078
|
});
|
|
3074
3079
|
}
|
|
3075
|
-
function
|
|
3080
|
+
function Ds({ className: e, ...t }) {
|
|
3076
3081
|
return /* @__PURE__ */ v(h, {
|
|
3077
3082
|
className: e,
|
|
3078
3083
|
...t
|
|
3079
3084
|
});
|
|
3080
3085
|
}
|
|
3081
|
-
function
|
|
3086
|
+
function Os({ className: e, showIcon: t, ...n }) {
|
|
3082
3087
|
return /* @__PURE__ */ v(h, {
|
|
3083
3088
|
className: e,
|
|
3084
3089
|
...n
|
|
3085
3090
|
});
|
|
3086
3091
|
}
|
|
3087
|
-
function
|
|
3092
|
+
function ks({ className: e, ...t }) {
|
|
3088
3093
|
return /* @__PURE__ */ v(h, {
|
|
3089
3094
|
className: e,
|
|
3090
3095
|
...t
|
|
3091
3096
|
});
|
|
3092
3097
|
}
|
|
3093
|
-
function
|
|
3098
|
+
function As({ className: e, ...t }) {
|
|
3094
3099
|
return /* @__PURE__ */ v(h, {
|
|
3095
3100
|
className: e,
|
|
3096
3101
|
...t
|
|
3097
3102
|
});
|
|
3098
3103
|
}
|
|
3099
|
-
function
|
|
3104
|
+
function js({ className: e, asChild: t, size: n, isActive: r, ...i }) {
|
|
3100
3105
|
return /* @__PURE__ */ v(l, {
|
|
3101
3106
|
className: e,
|
|
3102
3107
|
...i
|
|
3103
3108
|
});
|
|
3104
3109
|
}
|
|
3105
|
-
function
|
|
3110
|
+
function Ms() {
|
|
3106
3111
|
return {
|
|
3107
3112
|
state: "expanded",
|
|
3108
3113
|
open: !0,
|
|
@@ -3115,10 +3120,7 @@ function js() {
|
|
|
3115
3120
|
}
|
|
3116
3121
|
//#endregion
|
|
3117
3122
|
//#region src/attachment.tsx
|
|
3118
|
-
var
|
|
3119
|
-
className: t,
|
|
3120
|
-
children: e
|
|
3121
|
-
}), Ns = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3123
|
+
var Ns = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3122
3124
|
className: t,
|
|
3123
3125
|
children: e
|
|
3124
3126
|
}), Ps = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
@@ -3136,10 +3138,10 @@ var Ms = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
|
3136
3138
|
}), Rs = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3137
3139
|
className: t,
|
|
3138
3140
|
children: e
|
|
3139
|
-
}), zs = ({ children: e, className: t }) => /* @__PURE__ */ v(
|
|
3141
|
+
}), zs = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3140
3142
|
className: t,
|
|
3141
3143
|
children: e
|
|
3142
|
-
}), Bs = ({ children: e, className: t }) => /* @__PURE__ */ v(
|
|
3144
|
+
}), Bs = ({ children: e, className: t }) => /* @__PURE__ */ v(l, {
|
|
3143
3145
|
className: t,
|
|
3144
3146
|
children: e
|
|
3145
3147
|
}), Vs = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
@@ -3181,22 +3183,22 @@ var Ms = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
|
3181
3183
|
}), $s = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3182
3184
|
className: t,
|
|
3183
3185
|
children: e
|
|
3184
|
-
}), ec = ({ children: e
|
|
3186
|
+
}), ec = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3185
3187
|
className: t,
|
|
3186
3188
|
children: e
|
|
3187
|
-
}), nc = ({ children: e, className: t }) => /* @__PURE__ */ v(
|
|
3189
|
+
}), tc = ({ children: e }) => /* @__PURE__ */ v(_, { children: e }), nc = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3188
3190
|
className: t,
|
|
3189
3191
|
children: e
|
|
3190
|
-
}), rc = ({ children: e, className: t }) => /* @__PURE__ */ v(
|
|
3192
|
+
}), rc = ({ children: e, className: t }) => /* @__PURE__ */ v(u, {
|
|
3191
3193
|
className: t,
|
|
3192
3194
|
children: e
|
|
3193
3195
|
}), ic = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3194
3196
|
className: t,
|
|
3195
3197
|
children: e
|
|
3196
|
-
}), ac = ({ children: e, className: t }) => /* @__PURE__ */ v(
|
|
3198
|
+
}), ac = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3197
3199
|
className: t,
|
|
3198
3200
|
children: e
|
|
3199
|
-
}), oc = ({ children: e, className: t }) => /* @__PURE__ */ v(
|
|
3201
|
+
}), oc = ({ children: e, className: t }) => /* @__PURE__ */ v(l, {
|
|
3200
3202
|
className: t,
|
|
3201
3203
|
children: e
|
|
3202
3204
|
}), sc = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
@@ -3214,10 +3216,10 @@ var Ms = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
|
3214
3216
|
}), dc = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3215
3217
|
className: t,
|
|
3216
3218
|
children: e
|
|
3217
|
-
}), fc = ({ children: e, className: t }) => /* @__PURE__ */ v(
|
|
3219
|
+
}), fc = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3218
3220
|
className: t,
|
|
3219
3221
|
children: e
|
|
3220
|
-
}), pc = ({ children: e, className: t }) => /* @__PURE__ */ v(
|
|
3222
|
+
}), pc = ({ children: e, className: t }) => /* @__PURE__ */ v(l, {
|
|
3221
3223
|
className: t,
|
|
3222
3224
|
children: e
|
|
3223
3225
|
}), mc = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
@@ -3229,7 +3231,7 @@ var Ms = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
|
3229
3231
|
}), gc = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3230
3232
|
className: t,
|
|
3231
3233
|
children: e
|
|
3232
|
-
}), _c = ({ children: e, className: t }) => /* @__PURE__ */ v(
|
|
3234
|
+
}), _c = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
3233
3235
|
className: t,
|
|
3234
3236
|
children: e
|
|
3235
3237
|
}), vc = ({ children: e, className: t }) => /* @__PURE__ */ v(l, {
|
|
@@ -3241,6 +3243,9 @@ var Ms = ({ children: e, className: t }) => /* @__PURE__ */ v(h, {
|
|
|
3241
3243
|
}), bc = ({ children: e, className: t }) => /* @__PURE__ */ v(l, {
|
|
3242
3244
|
className: t,
|
|
3243
3245
|
children: e
|
|
3246
|
+
}), xc = ({ children: e, className: t }) => /* @__PURE__ */ v(l, {
|
|
3247
|
+
className: t,
|
|
3248
|
+
children: e
|
|
3244
3249
|
});
|
|
3245
3250
|
//#endregion
|
|
3246
|
-
export { Xe as Accordion, et as AccordionContent, Ze as AccordionItem, $e as AccordionTrigger, nt as Alert, it as AlertDescription, st as AlertDialog, gt as AlertDialogAction, _t as AlertDialogCancel, dt as AlertDialogContent, ht as AlertDialogDescription, pt as AlertDialogFooter, ft as AlertDialogHeader, ut as AlertDialogOverlay, lt as AlertDialogPortal, mt as AlertDialogTitle, ct as AlertDialogTrigger, rt as AlertTitle, vt as AspectRatio,
|
|
3251
|
+
export { Xe as Accordion, et as AccordionContent, Ze as AccordionItem, $e as AccordionTrigger, nt as Alert, it as AlertDescription, st as AlertDialog, gt as AlertDialogAction, _t as AlertDialogCancel, dt as AlertDialogContent, ht as AlertDialogDescription, pt as AlertDialogFooter, ft as AlertDialogHeader, ut as AlertDialogOverlay, lt as AlertDialogPortal, mt as AlertDialogTitle, ct as AlertDialogTrigger, rt as AlertTitle, vt as AspectRatio, Ns as Attachment, zs as AttachmentAction, Rs as AttachmentActions, Fs as AttachmentContent, Ls as AttachmentDescription, Vs as AttachmentGroup, Ps as AttachmentMedia, Is as AttachmentTitle, Bs as AttachmentTrigger, yt as Avatar, xt as AvatarFallback, bt as AvatarImage, wt as Badge, Dt as Breadcrumb, Nt as BreadcrumbEllipsis, kt as BreadcrumbItem, At as BreadcrumbLink, Ot as BreadcrumbList, jt as BreadcrumbPage, Mt as BreadcrumbSeparator, Us as Bubble, Ws as BubbleContent, Hs as BubbleGroup, Gs as BubbleReactions, J as Button, Xa as ButtonGroup, Qa as ButtonGroupSeparator, Za as ButtonGroupText, Pt as Calendar, Ft as Card, zt as CardContent, Rt as CardDescription, Bt as CardFooter, It as CardHeader, Lt as CardTitle, Ut as Carousel, Wt as CarouselContent, Gt as CarouselItem, qt as CarouselNext, Kt as CarouselPrevious, Jt as ChartContainer, Qt as ChartLegend, Xt as ChartLegendContent, $t as ChartStyle, Zt as ChartTooltip, Yt as ChartTooltipContent, en as Checkbox, tn as Collapsible, rn as CollapsibleContent, nn as CollapsibleTrigger, Ho as Combobox, ns as ComboboxChip, ts as ComboboxChips, rs as ComboboxChipsInput, Go as ComboboxClear, Qo as ComboboxCollection, qo as ComboboxContent, $o as ComboboxEmpty, Xo as ComboboxGroup, Ko as ComboboxInput, Yo as ComboboxItem, Zo as ComboboxLabel, Jo as ComboboxList, es as ComboboxSeparator, Wo as ComboboxTrigger, Uo as ComboboxValue, an as Command, on as CommandDialog, ln as CommandEmpty, un as CommandGroup, sn as CommandInput, dn as CommandItem, cn as CommandList, fn as CommandSeparator, pn as CommandShortcut, mn as ContextMenu, Cn as ContextMenuCheckboxItem, xn as ContextMenuContent, _n as ContextMenuGroup, Sn as ContextMenuItem, Tn as ContextMenuLabel, gn as ContextMenuPortal, vn as ContextMenuRadioGroup, wn as ContextMenuRadioItem, En as ContextMenuSeparator, Dn as ContextMenuShortcut, yn as ContextMenuSub, kn as ContextMenuSubContent, On as ContextMenuSubTrigger, hn as ContextMenuTrigger, An as Dialog, Nn as DialogClose, Fn as DialogContent, zn as DialogDescription, Ln as DialogFooter, In as DialogHeader, Rn as DialogTitle, jn as DialogTrigger, eo as DirectionProvider, Bn as Drawer, qn as DrawerClose, Wn as DrawerContent, Yn as DrawerDescription, Kn as DrawerFooter, Gn as DrawerHeader, Un as DrawerOverlay, Hn as DrawerPortal, Jn as DrawerTitle, Vn as DrawerTrigger, Xn as DropdownMenu, ir as DropdownMenuCheckboxItem, rr as DropdownMenuContent, $n as DropdownMenuGroup, X as DropdownMenuItem, or as DropdownMenuLabel, Qn as DropdownMenuPortal, er as DropdownMenuRadioGroup, ar as DropdownMenuRadioItem, sr as DropdownMenuSeparator, cr as DropdownMenuShortcut, tr as DropdownMenuSub, ur as DropdownMenuSubContent, lr as DropdownMenuSubTrigger, Zn as DropdownMenuTrigger, no as Empty, so as EmptyContent, oo as EmptyDescription, ro as EmptyHeader, io as EmptyMedia, ao as EmptyTitle, lo as Field, uo as FieldContent, fo as FieldDescription, po as FieldError, mo as FieldGroup, ho as FieldLabel, go as FieldLegend, _o as FieldSeparator, vo as FieldSet, yo as FieldTitle, fr as Form, vr as FormControl, yr as FormDescription, mr as FormField, gr as FormItem, _r as FormLabel, br as FormMessage, xr as HoverCard, Cr as HoverCardContent, Sr as HoverCardTrigger, wr as Input, bo as InputGroup, xo as InputGroupAddon, So as InputGroupButton, wo as InputGroupInput, Co as InputGroupText, To as InputGroupTextarea, as as InputOTP, os as InputOTPGroup, cs as InputOTPSeparator, ss as InputOTPSlot, jo as Item, Mo as ItemActions, No as ItemContent, Po as ItemDescription, Fo as ItemFooter, Io as ItemGroup, Lo as ItemHeader, Ro as ItemMedia, zo as ItemSeparator, Bo as ItemTitle, ko as Kbd, Ao as KbdGroup, dr as Label, Ks as Marker, Js as MarkerContent, qs as MarkerIcon, Tr as Menubar, Fr as MenubarCheckboxItem, Nr as MenubarContent, Or as MenubarGroup, Pr as MenubarItem, Lr as MenubarLabel, Er as MenubarMenu, Dr as MenubarPortal, kr as MenubarRadioGroup, Ir as MenubarRadioItem, Rr as MenubarSeparator, zr as MenubarShortcut, Ar as MenubarSub, Vr as MenubarSubContent, Br as MenubarSubTrigger, Mr as MenubarTrigger, Xs as Message, Zs as MessageAvatar, Qs as MessageContent, ec as MessageFooter, Ys as MessageGroup, $s as MessageHeader, nc as MessageScroller, oc as MessageScrollerButton, ic as MessageScrollerContent, ac as MessageScrollerItem, tc as MessageScrollerProvider, rc as MessageScrollerViewport, Eo as NativeSelect, Oo as NativeSelectOptGroup, Do as NativeSelectOption, Hr as NavigationMenu, Kr as NavigationMenuContent, Yr as NavigationMenuIndicator, Wr as NavigationMenuItem, qr as NavigationMenuLink, Ur as NavigationMenuList, Gr as NavigationMenuTrigger, Jr as NavigationMenuViewport, Xr as Pagination, Zr as PaginationContent, ni as PaginationEllipsis, Qr as PaginationItem, $r as PaginationLink, ti as PaginationNext, ei as PaginationPrevious, ii as Popover, oi as PopoverAnchor, si as PopoverContent, ai as PopoverTrigger, ci as Progress, sc as Questionnaire, _c as QuestionnaireActions, pc as QuestionnaireChoice, mc as QuestionnaireChoiceDescription, fc as QuestionnaireChoices, dc as QuestionnaireDescription, gc as QuestionnaireError, hc as QuestionnaireInput, lc as QuestionnaireItem, bc as QuestionnaireNext, vc as QuestionnairePrevious, cc as QuestionnaireProgress, yc as QuestionnaireSkip, xc as QuestionnaireSubmit, uc as QuestionnaireTitle, li as RadioGroup, ui as RadioGroupItem, pi as ResizableHandle, fi as ResizablePanel, di as ResizablePanelGroup, mi as ScrollArea, Oi as ScrollToTop, gi as Search, vi as Select, wi as SelectContent, yi as SelectGroup, Ei as SelectItem, Ti as SelectLabel, Ci as SelectScrollDownButton, Si as SelectScrollUpButton, Di as SelectSeparator, xi as SelectTrigger, bi as SelectValue, Ii as Separator, Li as Sheet, zi as SheetClose, Hi as SheetContent, Ki as SheetDescription, Wi as SheetFooter, Ui as SheetHeader, Vi as SheetOverlay, Bi as SheetPortal, Gi as SheetTitle, Ri as SheetTrigger, us as Sidebar, vs as SidebarContent, gs as SidebarFooter, ys as SidebarGroup, xs as SidebarGroupAction, Ss as SidebarGroupContent, bs as SidebarGroupLabel, hs as SidebarHeader, ms as SidebarInput, ps as SidebarInset, Cs as SidebarMenu, Es as SidebarMenuAction, Ds as SidebarMenuBadge, Ts as SidebarMenuButton, ws as SidebarMenuItem, Os as SidebarMenuSkeleton, ks as SidebarMenuSub, js as SidebarMenuSubButton, As as SidebarMenuSubItem, ls as SidebarProvider, fs as SidebarRail, _s as SidebarSeparator, ds as SidebarTrigger, qi as Skeleton, Ji as Slider, na as Sonner, co as Spinner, Fi as SupportFab, ra as Switch, ia as Table, oa as TableBody, da as TableCaption, ua as TableCell, sa as TableFooter, la as TableHead, aa as TableHeader, Ka as TableOfContents, Ya as TableOfContentsContent, qa as TableOfContentsHeading, Ja as TableOfContentsList, ca as TableRow, fa as Tabs, ha as TabsContent, pa as TabsList, ma as TabsTrigger, Y as Text, ga as Textarea, Ra as ThemeProvider, Ha as ThemeToggle, Zi as Toast, Ua as Toaster, _a as Toggle, ya as ToggleGroup, ba as ToggleGroupItem, xa as Tooltip, Ca as TooltipContent, wa as TooltipProvider, Sa as TooltipTrigger, St as badgeVariants, $a as buttonGroupVariants, at as buttonVariants, q as cn, Et as textVariants, Fa as toast, We as toggleVariants, is as useComboboxAnchor, to as useDirection, Z as useFormField, Ms as useSidebar, za as useTheme, Ia as useToast, K as wrapTextChildren };
|