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