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