@gv-tech/ui-native 2.30.1 → 2.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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.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 +913 -1077
- 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 +26 -23
- 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,85 +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
|
-
className:
|
|
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),
|
|
1454
1474
|
...t,
|
|
1455
1475
|
children: /* @__PURE__ */ v(ae, {
|
|
1456
1476
|
size: 14,
|
|
1457
1477
|
className: "text-foreground"
|
|
1458
1478
|
})
|
|
1459
1479
|
});
|
|
1460
|
-
|
|
1461
|
-
var
|
|
1462
|
-
className:
|
|
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),
|
|
1463
1483
|
...t,
|
|
1464
1484
|
children: /* @__PURE__ */ v(C, {
|
|
1465
1485
|
size: 14,
|
|
1466
1486
|
className: "text-foreground"
|
|
1467
1487
|
})
|
|
1468
1488
|
});
|
|
1469
|
-
|
|
1470
|
-
var
|
|
1471
|
-
let { open: l } =
|
|
1472
|
-
return /* @__PURE__ */
|
|
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, {
|
|
1473
1493
|
hostName: r,
|
|
1474
|
-
children: [/* @__PURE__ */ v(
|
|
1494
|
+
children: /* @__PURE__ */ y($t, { children: [/* @__PURE__ */ v(B.Overlay, {
|
|
1475
1495
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
1476
1496
|
asChild: !0,
|
|
1477
1497
|
children: /* @__PURE__ */ v(E.View, {
|
|
1478
1498
|
className: i,
|
|
1479
1499
|
style: a
|
|
1480
1500
|
})
|
|
1481
|
-
}), /* @__PURE__ */ y(
|
|
1501
|
+
}), /* @__PURE__ */ y(B.Content, {
|
|
1482
1502
|
ref: s,
|
|
1483
|
-
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),
|
|
1484
1504
|
position: n,
|
|
1485
1505
|
...o,
|
|
1486
1506
|
children: [
|
|
1487
|
-
/* @__PURE__ */ v(
|
|
1488
|
-
/* @__PURE__ */ v(
|
|
1489
|
-
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)]"),
|
|
1490
1510
|
children: t
|
|
1491
1511
|
}),
|
|
1492
|
-
/* @__PURE__ */ v(
|
|
1512
|
+
/* @__PURE__ */ v(si, {})
|
|
1493
1513
|
]
|
|
1494
|
-
})]
|
|
1514
|
+
})] })
|
|
1495
1515
|
});
|
|
1496
1516
|
});
|
|
1497
|
-
|
|
1498
|
-
var
|
|
1517
|
+
ci.displayName = B.Content?.displayName || "SelectContent";
|
|
1518
|
+
var li = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(B.Label, {
|
|
1499
1519
|
ref: n,
|
|
1500
|
-
className:
|
|
1520
|
+
className: q("text-foreground py-1.5 pr-2 pl-8 text-sm font-semibold", e),
|
|
1501
1521
|
...t
|
|
1502
1522
|
}));
|
|
1503
|
-
|
|
1504
|
-
var
|
|
1523
|
+
li.displayName = B.Label?.displayName || "SelectLabel";
|
|
1524
|
+
var ui = e.forwardRef(({ className: e, children: t, label: n, ...r }, i) => {
|
|
1505
1525
|
let a = n || (typeof t == "string" ? t : "");
|
|
1506
|
-
return /* @__PURE__ */ y(
|
|
1526
|
+
return /* @__PURE__ */ y(B.Item, {
|
|
1507
1527
|
ref: i,
|
|
1508
1528
|
label: a,
|
|
1509
|
-
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),
|
|
1510
1530
|
...r,
|
|
1511
1531
|
children: [/* @__PURE__ */ v(h, {
|
|
1512
1532
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1513
|
-
children: /* @__PURE__ */ v(
|
|
1533
|
+
children: /* @__PURE__ */ v(B.ItemIndicator, { children: /* @__PURE__ */ v(S, {
|
|
1514
1534
|
size: 14,
|
|
1515
1535
|
strokeWidth: 3,
|
|
1516
1536
|
className: "text-foreground"
|
|
1517
1537
|
}) })
|
|
1518
|
-
}), /* @__PURE__ */ v(
|
|
1538
|
+
}), /* @__PURE__ */ v(B.ItemText, { className: "text-foreground native:text-base text-sm" })]
|
|
1519
1539
|
});
|
|
1520
1540
|
});
|
|
1521
|
-
|
|
1522
|
-
var
|
|
1541
|
+
ui.displayName = B.Item?.displayName || "SelectItem";
|
|
1542
|
+
var di = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(B.Separator, {
|
|
1523
1543
|
ref: n,
|
|
1524
|
-
className:
|
|
1544
|
+
className: q("bg-muted -mx-1 my-1 h-px", e),
|
|
1525
1545
|
...t
|
|
1526
1546
|
}));
|
|
1527
|
-
|
|
1547
|
+
di.displayName = B.Separator?.displayName || "SelectSeparator";
|
|
1528
1548
|
// src/scroll-to-top.tsx
|
|
1529
|
-
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) => {
|
|
1530
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 = () => {
|
|
1531
1551
|
r.parallel([r.timing(y, {
|
|
1532
1552
|
toValue: 1,
|
|
@@ -1583,10 +1603,10 @@ var ui = e.forwardRef(({ threshold: n = 240, exitDuration: i = 450, behavior: a,
|
|
|
1583
1603
|
opacity: y,
|
|
1584
1604
|
transform: [{ translateY: b }]
|
|
1585
1605
|
},
|
|
1586
|
-
children: /* @__PURE__ */ v(
|
|
1606
|
+
children: /* @__PURE__ */ v(J, {
|
|
1587
1607
|
variant: "outline",
|
|
1588
1608
|
size: "icon",
|
|
1589
|
-
className:
|
|
1609
|
+
className: q("bg-background/80 h-12 w-12 rounded-full border-2 shadow-lg", s),
|
|
1590
1610
|
onPress: ne,
|
|
1591
1611
|
"aria-label": o,
|
|
1592
1612
|
...d,
|
|
@@ -1598,24 +1618,24 @@ var ui = e.forwardRef(({ threshold: n = 240, exitDuration: i = 450, behavior: a,
|
|
|
1598
1618
|
})
|
|
1599
1619
|
});
|
|
1600
1620
|
});
|
|
1601
|
-
|
|
1621
|
+
fi.displayName = "ScrollToTop";
|
|
1602
1622
|
// src/support-fab.tsx
|
|
1603
|
-
var
|
|
1623
|
+
var pi = "https://www.buymeacoffee.com", mi = /* @__PURE__ */ new Set(["buymeacoffee.com", "www.buymeacoffee.com"]), hi = (e) => {
|
|
1604
1624
|
let t = e.trim();
|
|
1605
1625
|
try {
|
|
1606
1626
|
let n = new URL(t), r = n.hostname.toLowerCase();
|
|
1607
|
-
return n.protocol !== "https:" || !
|
|
1627
|
+
return n.protocol !== "https:" || !mi.has(r) ? (console.warn(`Invalid supportUrl: ${e}. Falling back to default.`), pi) : t;
|
|
1608
1628
|
} catch {
|
|
1609
|
-
return console.warn(`Invalid supportUrl: ${e}. Falling back to default.`),
|
|
1629
|
+
return console.warn(`Invalid supportUrl: ${e}. Falling back to default.`), pi;
|
|
1610
1630
|
}
|
|
1611
|
-
},
|
|
1612
|
-
let t =
|
|
1631
|
+
}, gi = (e) => {
|
|
1632
|
+
let t = hi(e);
|
|
1613
1633
|
return t.endsWith("/") ? t.slice(0, -1) : t;
|
|
1614
|
-
},
|
|
1615
|
-
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 }) {
|
|
1616
1636
|
let m = a !== void 0, [g, b] = e.useState(s), ee = m ? a : g, x = e.useCallback((e) => {
|
|
1617
1637
|
m || b(e), c?.(e);
|
|
1618
|
-
}, [m, c]), te = e.useMemo(() =>
|
|
1638
|
+
}, [m, c]), te = e.useMemo(() => vi(t, n), [n, t]), ne = e.useCallback(async () => {
|
|
1619
1639
|
try {
|
|
1620
1640
|
await o.openURL(te);
|
|
1621
1641
|
} catch (e) {
|
|
@@ -1629,10 +1649,10 @@ function _i({ supportUrl: t = di, creatorId: n, title: r = "Buy me a coffee", de
|
|
|
1629
1649
|
zIndex: 50
|
|
1630
1650
|
},
|
|
1631
1651
|
className: l,
|
|
1632
|
-
children: /* @__PURE__ */ v(
|
|
1652
|
+
children: /* @__PURE__ */ v(J, {
|
|
1633
1653
|
variant: "outline",
|
|
1634
1654
|
size: "icon",
|
|
1635
|
-
className:
|
|
1655
|
+
className: q("h-14 w-14 rounded-full border border-black/15 bg-[#ffdd00] shadow-lg", u, f),
|
|
1636
1656
|
onPress: () => x(!0),
|
|
1637
1657
|
"aria-label": "Support this project",
|
|
1638
1658
|
...p,
|
|
@@ -1646,14 +1666,14 @@ function _i({ supportUrl: t = di, creatorId: n, title: r = "Buy me a coffee", de
|
|
|
1646
1666
|
open: ee,
|
|
1647
1667
|
onOpenChange: x,
|
|
1648
1668
|
children: /* @__PURE__ */ y(Sn, {
|
|
1649
|
-
className:
|
|
1669
|
+
className: q("max-w-sm", d),
|
|
1650
1670
|
children: [/* @__PURE__ */ y(Cn, { children: [/* @__PURE__ */ v(Tn, { children: r }), /* @__PURE__ */ v(En, { children: i })] }), /* @__PURE__ */ y(h, {
|
|
1651
1671
|
className: "flex flex-col gap-4",
|
|
1652
1672
|
children: [/* @__PURE__ */ v(h, {
|
|
1653
1673
|
className: "overflow-hidden rounded-md border",
|
|
1654
1674
|
children: /* @__PURE__ */ v(h, {
|
|
1655
1675
|
className: "bg-muted flex h-48 items-center justify-center",
|
|
1656
|
-
children: /* @__PURE__ */ y(
|
|
1676
|
+
children: /* @__PURE__ */ y(Y, {
|
|
1657
1677
|
className: "text-muted-foreground text-center text-sm",
|
|
1658
1678
|
children: [
|
|
1659
1679
|
"Embedded support form would appear here on web.",
|
|
@@ -1664,15 +1684,15 @@ function _i({ supportUrl: t = di, creatorId: n, title: r = "Buy me a coffee", de
|
|
|
1664
1684
|
})
|
|
1665
1685
|
}), /* @__PURE__ */ y(h, {
|
|
1666
1686
|
className: "text-muted-foreground flex items-center justify-between gap-2 text-xs",
|
|
1667
|
-
children: [/* @__PURE__ */ v(
|
|
1687
|
+
children: [/* @__PURE__ */ v(Y, {
|
|
1668
1688
|
className: "text-muted-foreground flex-1 text-xs",
|
|
1669
1689
|
children: "If the embedded checkout is unavailable, open the support page directly."
|
|
1670
|
-
}), /* @__PURE__ */ y(
|
|
1690
|
+
}), /* @__PURE__ */ y(J, {
|
|
1671
1691
|
variant: "outline",
|
|
1672
1692
|
size: "sm",
|
|
1673
1693
|
onPress: ne,
|
|
1674
1694
|
className: "flex flex-row items-center gap-1",
|
|
1675
|
-
children: [/* @__PURE__ */ v(
|
|
1695
|
+
children: [/* @__PURE__ */ v(Y, {
|
|
1676
1696
|
className: "text-xs",
|
|
1677
1697
|
children: "Open Buy Me a Coffee"
|
|
1678
1698
|
}), /* @__PURE__ */ v(ce, {
|
|
@@ -1686,16 +1706,16 @@ function _i({ supportUrl: t = di, creatorId: n, title: r = "Buy me a coffee", de
|
|
|
1686
1706
|
})] });
|
|
1687
1707
|
}
|
|
1688
1708
|
// src/separator.tsx
|
|
1689
|
-
var
|
|
1709
|
+
var bi = e.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, i) => /* @__PURE__ */ v(He.Root, {
|
|
1690
1710
|
ref: i,
|
|
1691
1711
|
decorative: n,
|
|
1692
1712
|
orientation: t,
|
|
1693
|
-
className:
|
|
1713
|
+
className: q("bg-border shrink-0", t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", e),
|
|
1694
1714
|
...r
|
|
1695
1715
|
}));
|
|
1696
|
-
|
|
1716
|
+
bi.displayName = He.Root?.displayName || "Separator";
|
|
1697
1717
|
// src/sheet.tsx
|
|
1698
|
-
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, {
|
|
1699
1719
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
1700
1720
|
asChild: !0,
|
|
1701
1721
|
ref: n,
|
|
@@ -1703,29 +1723,29 @@ var yi = N.Root, bi = N.Trigger, xi = N.Close, Si = N.Portal, Ci = e.forwardRef(
|
|
|
1703
1723
|
children: /* @__PURE__ */ v(E.View, {
|
|
1704
1724
|
entering: D.duration(150),
|
|
1705
1725
|
exiting: O.duration(150),
|
|
1706
|
-
className:
|
|
1726
|
+
className: q("web:cursor-default absolute inset-0 z-50 bg-black/60 backdrop-blur-md", e)
|
|
1707
1727
|
})
|
|
1708
1728
|
}));
|
|
1709
|
-
|
|
1710
|
-
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) => {
|
|
1711
1731
|
let s = c.OS === "web", l, u;
|
|
1712
|
-
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, {
|
|
1713
1733
|
className: r,
|
|
1714
1734
|
style: i
|
|
1715
|
-
}), /* @__PURE__ */ v(
|
|
1735
|
+
}), /* @__PURE__ */ v(P.Content, {
|
|
1716
1736
|
ref: o,
|
|
1717
1737
|
asChild: !0,
|
|
1718
1738
|
...a,
|
|
1719
1739
|
children: /* @__PURE__ */ y(E.View, {
|
|
1720
1740
|
entering: l,
|
|
1721
1741
|
exiting: u,
|
|
1722
|
-
className:
|
|
1723
|
-
children: [t, /* @__PURE__ */ y(
|
|
1724
|
-
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"),
|
|
1725
1745
|
children: [/* @__PURE__ */ v(T, {
|
|
1726
1746
|
size: 24,
|
|
1727
1747
|
className: "text-muted-foreground"
|
|
1728
|
-
}), /* @__PURE__ */ v(
|
|
1748
|
+
}), /* @__PURE__ */ v(Y, {
|
|
1729
1749
|
className: "sr-only",
|
|
1730
1750
|
children: "Close"
|
|
1731
1751
|
})]
|
|
@@ -1733,46 +1753,46 @@ var wi = e.forwardRef(({ className: e, children: t, side: n = "right", overlayCl
|
|
|
1733
1753
|
})
|
|
1734
1754
|
})] });
|
|
1735
1755
|
});
|
|
1736
|
-
|
|
1737
|
-
var
|
|
1738
|
-
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),
|
|
1739
1759
|
...t
|
|
1740
1760
|
});
|
|
1741
|
-
|
|
1742
|
-
var
|
|
1743
|
-
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),
|
|
1744
1764
|
...t
|
|
1745
1765
|
});
|
|
1746
|
-
|
|
1747
|
-
var
|
|
1766
|
+
Oi.displayName = "SheetFooter";
|
|
1767
|
+
var ki = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(P.Title, {
|
|
1748
1768
|
ref: n,
|
|
1749
|
-
className:
|
|
1769
|
+
className: q("text-foreground text-lg font-semibold", e),
|
|
1750
1770
|
...t
|
|
1751
1771
|
}));
|
|
1752
|
-
|
|
1753
|
-
var
|
|
1772
|
+
ki.displayName = P.Title?.displayName || "SheetTitle";
|
|
1773
|
+
var Ai = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(P.Description, {
|
|
1754
1774
|
ref: n,
|
|
1755
|
-
className:
|
|
1775
|
+
className: q("text-muted-foreground text-sm", e),
|
|
1756
1776
|
...t
|
|
1757
1777
|
}));
|
|
1758
|
-
|
|
1778
|
+
Ai.displayName = P.Description?.displayName || "SheetDescription";
|
|
1759
1779
|
// src/skeleton.tsx
|
|
1760
|
-
function
|
|
1780
|
+
function ji({ className: t, ...n }) {
|
|
1761
1781
|
let r = ke(.5);
|
|
1762
1782
|
e.useEffect(() => {
|
|
1763
|
-
r.value = Ae(je(
|
|
1783
|
+
r.value = Ae(je(k(.2, { duration: 500 }), k(.5, { duration: 500 })), -1, !0);
|
|
1764
1784
|
}, [r]);
|
|
1765
1785
|
let i = De(() => ({ opacity: r.value }));
|
|
1766
1786
|
return /* @__PURE__ */ v(E.View, {
|
|
1767
|
-
className:
|
|
1787
|
+
className: q("bg-muted rounded-md", t),
|
|
1768
1788
|
style: i,
|
|
1769
1789
|
...n
|
|
1770
1790
|
});
|
|
1771
1791
|
}
|
|
1772
1792
|
// src/slider.tsx
|
|
1773
|
-
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 }) => {
|
|
1774
1794
|
let l = t === void 0 ? i : t[0];
|
|
1775
|
-
return /* @__PURE__ */ y(
|
|
1795
|
+
return /* @__PURE__ */ y(Ue.Root, {
|
|
1776
1796
|
value: l,
|
|
1777
1797
|
onValueChange: (e) => {
|
|
1778
1798
|
n && n(Array.isArray(e) ? e : [e]);
|
|
@@ -1781,85 +1801,85 @@ var Ai = ({ className: e, value: t, onValueChange: n, defaultValue: r, min: i =
|
|
|
1781
1801
|
max: a,
|
|
1782
1802
|
step: o,
|
|
1783
1803
|
disabled: s,
|
|
1784
|
-
className:
|
|
1804
|
+
className: q("relative flex w-full touch-none items-center select-none", s && "opacity-50", e),
|
|
1785
1805
|
...c,
|
|
1786
|
-
children: [/* @__PURE__ */ v(
|
|
1806
|
+
children: [/* @__PURE__ */ v(Ue.Track, {
|
|
1787
1807
|
className: "bg-secondary relative h-2 w-full grow rounded-full",
|
|
1788
|
-
children: /* @__PURE__ */ v(
|
|
1789
|
-
}), /* @__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" })]
|
|
1790
1810
|
});
|
|
1791
1811
|
};
|
|
1792
|
-
|
|
1812
|
+
Mi.displayName = "Slider";
|
|
1793
1813
|
// src/switch.tsx
|
|
1794
|
-
var
|
|
1814
|
+
var Ni = e.forwardRef(({ className: e, checked: t, onCheckedChange: n, ...r }, i) => {
|
|
1795
1815
|
let a = t ?? !1, o = { dataSet: { state: a ? "checked" : "unchecked" } };
|
|
1796
|
-
return /* @__PURE__ */ v(
|
|
1816
|
+
return /* @__PURE__ */ v(We.Root, {
|
|
1797
1817
|
ref: i,
|
|
1798
1818
|
checked: a,
|
|
1799
1819
|
onCheckedChange: n || (() => {}),
|
|
1800
|
-
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),
|
|
1801
1821
|
...r,
|
|
1802
1822
|
...o,
|
|
1803
|
-
children: /* @__PURE__ */ v(
|
|
1823
|
+
children: /* @__PURE__ */ v(We.Thumb, {
|
|
1804
1824
|
...o,
|
|
1805
|
-
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")
|
|
1806
1826
|
})
|
|
1807
1827
|
});
|
|
1808
1828
|
});
|
|
1809
|
-
|
|
1829
|
+
Ni.displayName = We.Root.displayName;
|
|
1810
1830
|
// src/table.tsx
|
|
1811
|
-
var
|
|
1831
|
+
var Pi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
1812
1832
|
ref: n,
|
|
1813
|
-
className:
|
|
1833
|
+
className: q("w-full caption-bottom text-sm", e),
|
|
1814
1834
|
...t
|
|
1815
1835
|
}));
|
|
1816
|
-
|
|
1817
|
-
var
|
|
1836
|
+
Pi.displayName = "Table";
|
|
1837
|
+
var Fi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
1818
1838
|
ref: n,
|
|
1819
|
-
className:
|
|
1839
|
+
className: q("border-border border-b", e),
|
|
1820
1840
|
...t
|
|
1821
1841
|
}));
|
|
1822
|
-
|
|
1823
|
-
var
|
|
1842
|
+
Fi.displayName = "TableHeader";
|
|
1843
|
+
var Ii = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
1824
1844
|
ref: n,
|
|
1825
|
-
className:
|
|
1845
|
+
className: q("flex-1", e),
|
|
1826
1846
|
...t
|
|
1827
1847
|
}));
|
|
1828
|
-
|
|
1829
|
-
var
|
|
1848
|
+
Ii.displayName = "TableBody";
|
|
1849
|
+
var Li = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
1830
1850
|
ref: n,
|
|
1831
|
-
className:
|
|
1851
|
+
className: q("bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
1832
1852
|
...t
|
|
1833
1853
|
}));
|
|
1834
|
-
|
|
1835
|
-
var
|
|
1854
|
+
Li.displayName = "TableFooter";
|
|
1855
|
+
var Ri = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(h, {
|
|
1836
1856
|
ref: n,
|
|
1837
|
-
className:
|
|
1857
|
+
className: q("border-border hover:bg-muted/50 data-[state=selected]:bg-muted flex-row border-b transition-colors", e),
|
|
1838
1858
|
...t
|
|
1839
1859
|
}));
|
|
1840
|
-
|
|
1841
|
-
var
|
|
1860
|
+
Ri.displayName = "TableRow";
|
|
1861
|
+
var zi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(Y, {
|
|
1842
1862
|
ref: n,
|
|
1843
|
-
className:
|
|
1863
|
+
className: q("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0", e),
|
|
1844
1864
|
...t
|
|
1845
1865
|
}));
|
|
1846
|
-
|
|
1847
|
-
var
|
|
1866
|
+
zi.displayName = "TableHead";
|
|
1867
|
+
var Bi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(Y, {
|
|
1848
1868
|
ref: n,
|
|
1849
|
-
className:
|
|
1869
|
+
className: q("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
|
|
1850
1870
|
...t
|
|
1851
1871
|
}));
|
|
1852
|
-
|
|
1853
|
-
var
|
|
1872
|
+
Bi.displayName = "TableCell";
|
|
1873
|
+
var Vi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(Y, {
|
|
1854
1874
|
ref: n,
|
|
1855
|
-
className:
|
|
1875
|
+
className: q("text-muted-foreground mt-4 text-sm", e),
|
|
1856
1876
|
...t
|
|
1857
1877
|
}));
|
|
1858
|
-
|
|
1878
|
+
Vi.displayName = "TableCaption";
|
|
1859
1879
|
// src/tabs.tsx
|
|
1860
|
-
var
|
|
1880
|
+
var Hi = e.forwardRef(({ value: t, defaultValue: n, onValueChange: r, ...i }, a) => {
|
|
1861
1881
|
let [o, s] = e.useState(n ?? ""), c = t ?? o;
|
|
1862
|
-
return /* @__PURE__ */ v(
|
|
1882
|
+
return /* @__PURE__ */ v(V.Root, {
|
|
1863
1883
|
ref: a,
|
|
1864
1884
|
value: c,
|
|
1865
1885
|
onValueChange: (e) => {
|
|
@@ -1868,147 +1888,169 @@ var Bi = e.forwardRef(({ value: t, defaultValue: n, onValueChange: r, ...i }, a)
|
|
|
1868
1888
|
...i
|
|
1869
1889
|
});
|
|
1870
1890
|
});
|
|
1871
|
-
|
|
1872
|
-
var
|
|
1891
|
+
Hi.displayName = "Tabs";
|
|
1892
|
+
var Ui = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(V.List, {
|
|
1873
1893
|
ref: n,
|
|
1874
|
-
className:
|
|
1894
|
+
className: q("bg-muted text-muted-foreground inline-flex h-10 flex-row items-center justify-center rounded-md p-1", e),
|
|
1875
1895
|
...t
|
|
1876
1896
|
}));
|
|
1877
|
-
|
|
1878
|
-
var
|
|
1879
|
-
let { value: r } =
|
|
1880
|
-
return /* @__PURE__ */ v(
|
|
1881
|
-
value:
|
|
1882
|
-
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, {
|
|
1883
1903
|
ref: n,
|
|
1884
|
-
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),
|
|
1885
1905
|
...t
|
|
1886
1906
|
})
|
|
1887
1907
|
});
|
|
1888
1908
|
});
|
|
1889
|
-
|
|
1890
|
-
var
|
|
1909
|
+
Wi.displayName = V.Trigger?.displayName || "TabsTrigger";
|
|
1910
|
+
var Gi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(V.Content, {
|
|
1891
1911
|
ref: n,
|
|
1892
|
-
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),
|
|
1893
1913
|
...t
|
|
1894
1914
|
}));
|
|
1895
|
-
|
|
1915
|
+
Gi.displayName = V.Content?.displayName || "TabsContent";
|
|
1896
1916
|
// src/textarea.tsx
|
|
1897
|
-
var
|
|
1917
|
+
var Ki = e.forwardRef(({ className: e, placeholderClassName: t, ...n }, r) => /* @__PURE__ */ v(p, {
|
|
1898
1918
|
ref: r,
|
|
1899
1919
|
multiline: !0,
|
|
1900
1920
|
numberOfLines: n.numberOfLines || 3,
|
|
1901
|
-
className:
|
|
1902
|
-
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),
|
|
1903
1923
|
textAlignVertical: "top",
|
|
1904
1924
|
...n
|
|
1905
1925
|
}));
|
|
1906
|
-
|
|
1926
|
+
Ki.displayName = "Textarea";
|
|
1907
1927
|
// src/toggle.tsx
|
|
1908
|
-
var
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
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";
|
|
1923
1962
|
// src/toggle-group.tsx
|
|
1924
|
-
var
|
|
1963
|
+
var Yi = e.createContext({
|
|
1925
1964
|
size: "default",
|
|
1926
1965
|
variant: "default"
|
|
1927
|
-
}),
|
|
1966
|
+
}), Xi = e.forwardRef(({ className: e, variant: t, size: n, children: r, type: i, value: a, onValueChange: o, ...s }, c) => /* @__PURE__ */ v(H.Root, {
|
|
1928
1967
|
ref: c,
|
|
1929
1968
|
type: i,
|
|
1930
1969
|
value: a,
|
|
1931
1970
|
onValueChange: o,
|
|
1932
|
-
className:
|
|
1971
|
+
className: q("flex flex-row items-center justify-center gap-1", e),
|
|
1933
1972
|
...s,
|
|
1934
|
-
children: /* @__PURE__ */ v(
|
|
1973
|
+
children: /* @__PURE__ */ v(Yi.Provider, {
|
|
1935
1974
|
value: {
|
|
1936
1975
|
variant: t,
|
|
1937
|
-
size: n
|
|
1976
|
+
size: n,
|
|
1977
|
+
type: i,
|
|
1978
|
+
value: a
|
|
1938
1979
|
},
|
|
1939
1980
|
children: r
|
|
1940
1981
|
})
|
|
1941
1982
|
}));
|
|
1942
|
-
|
|
1943
|
-
var
|
|
1944
|
-
let c = e.useContext(
|
|
1945
|
-
return /* @__PURE__ */ v(
|
|
1946
|
-
value:
|
|
1947
|
-
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, {
|
|
1948
1989
|
ref: s,
|
|
1949
1990
|
value: a,
|
|
1950
|
-
className:
|
|
1991
|
+
className: q(qi({
|
|
1951
1992
|
variant: c.variant || r,
|
|
1952
1993
|
size: c.size || i
|
|
1953
|
-
}), t),
|
|
1994
|
+
}), l && "bg-muted border-primary", t),
|
|
1954
1995
|
...o,
|
|
1996
|
+
dataSet: { state: u },
|
|
1955
1997
|
children: n
|
|
1956
1998
|
})
|
|
1957
1999
|
});
|
|
1958
2000
|
});
|
|
1959
|
-
|
|
2001
|
+
Zi.displayName = H.Item?.displayName || "ToggleGroupItem";
|
|
1960
2002
|
// src/tooltip.tsx
|
|
1961
|
-
var
|
|
2003
|
+
var Qi = U.Root, $i = U.Trigger, ea = e.forwardRef(({ className: e, portalHost: t, ...n }, r) => /* @__PURE__ */ v(U.Portal, {
|
|
1962
2004
|
hostName: t,
|
|
1963
|
-
children: /* @__PURE__ */ v(
|
|
2005
|
+
children: /* @__PURE__ */ v(U.Overlay, {
|
|
1964
2006
|
style: c.OS === "web" ? void 0 : d.absoluteFill,
|
|
1965
2007
|
children: /* @__PURE__ */ v(E.View, {
|
|
1966
2008
|
entering: D,
|
|
1967
2009
|
exiting: O,
|
|
1968
|
-
className:
|
|
1969
|
-
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, {
|
|
1970
2012
|
className: "text-popover-foreground native:text-base text-sm",
|
|
1971
2013
|
children: n.children
|
|
1972
2014
|
})
|
|
1973
2015
|
})
|
|
1974
2016
|
})
|
|
1975
2017
|
}));
|
|
1976
|
-
|
|
1977
|
-
var
|
|
2018
|
+
ea.displayName = U.Content?.displayName || "TooltipContent";
|
|
2019
|
+
var ta = ({ children: e }) => e, na = 5, ra = 1e6, ia = {
|
|
1978
2020
|
ADD_TOAST: "ADD_TOAST",
|
|
1979
2021
|
UPDATE_TOAST: "UPDATE_TOAST",
|
|
1980
2022
|
DISMISS_TOAST: "DISMISS_TOAST",
|
|
1981
2023
|
REMOVE_TOAST: "REMOVE_TOAST"
|
|
1982
|
-
},
|
|
1983
|
-
function
|
|
1984
|
-
return
|
|
2024
|
+
}, aa = 0;
|
|
2025
|
+
function oa() {
|
|
2026
|
+
return aa = (aa + 1) % (2 ** 53 - 1), aa.toString();
|
|
1985
2027
|
}
|
|
1986
|
-
var
|
|
1987
|
-
if (
|
|
2028
|
+
var sa = /* @__PURE__ */ new Map(), ca = (e) => {
|
|
2029
|
+
if (sa.has(e)) return;
|
|
1988
2030
|
let t = setTimeout(() => {
|
|
1989
|
-
|
|
2031
|
+
sa.delete(e), Q({
|
|
1990
2032
|
type: "REMOVE_TOAST",
|
|
1991
2033
|
toastId: e
|
|
1992
2034
|
});
|
|
1993
|
-
},
|
|
1994
|
-
|
|
1995
|
-
},
|
|
2035
|
+
}, ra);
|
|
2036
|
+
sa.set(e, t);
|
|
2037
|
+
}, la = (e, t) => {
|
|
1996
2038
|
switch (t.type) {
|
|
1997
|
-
case
|
|
2039
|
+
case ia.ADD_TOAST: return {
|
|
1998
2040
|
...e,
|
|
1999
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
2041
|
+
toasts: [t.toast, ...e.toasts].slice(0, na)
|
|
2000
2042
|
};
|
|
2001
|
-
case
|
|
2043
|
+
case ia.UPDATE_TOAST: return {
|
|
2002
2044
|
...e,
|
|
2003
2045
|
toasts: e.toasts.map((e) => e.id === t.toast.id ? {
|
|
2004
2046
|
...e,
|
|
2005
2047
|
...t.toast
|
|
2006
2048
|
} : e)
|
|
2007
2049
|
};
|
|
2008
|
-
case
|
|
2050
|
+
case ia.DISMISS_TOAST: {
|
|
2009
2051
|
let { toastId: n } = t;
|
|
2010
|
-
return n ?
|
|
2011
|
-
|
|
2052
|
+
return n ? ca(n) : e.toasts.forEach((e) => {
|
|
2053
|
+
ca(e.id);
|
|
2012
2054
|
}), {
|
|
2013
2055
|
...e,
|
|
2014
2056
|
toasts: e.toasts.map((e) => e.id === n || n === void 0 ? {
|
|
@@ -2017,7 +2059,7 @@ var ia = /* @__PURE__ */ new Map(), aa = (e) => {
|
|
|
2017
2059
|
} : e)
|
|
2018
2060
|
};
|
|
2019
2061
|
}
|
|
2020
|
-
case
|
|
2062
|
+
case ia.REMOVE_TOAST: return t.toastId === void 0 ? {
|
|
2021
2063
|
...e,
|
|
2022
2064
|
toasts: []
|
|
2023
2065
|
} : {
|
|
@@ -2025,24 +2067,24 @@ var ia = /* @__PURE__ */ new Map(), aa = (e) => {
|
|
|
2025
2067
|
toasts: e.toasts.filter((e) => e.id !== t.toastId)
|
|
2026
2068
|
};
|
|
2027
2069
|
}
|
|
2028
|
-
},
|
|
2029
|
-
function
|
|
2030
|
-
|
|
2031
|
-
e(
|
|
2070
|
+
}, ua = [], da = { toasts: [] };
|
|
2071
|
+
function Q(e) {
|
|
2072
|
+
da = la(da, e), ua.forEach((e) => {
|
|
2073
|
+
e(da);
|
|
2032
2074
|
});
|
|
2033
2075
|
}
|
|
2034
|
-
function
|
|
2035
|
-
let t =
|
|
2076
|
+
function fa({ ...e }) {
|
|
2077
|
+
let t = oa(), n = (e) => Q({
|
|
2036
2078
|
type: "UPDATE_TOAST",
|
|
2037
2079
|
toast: {
|
|
2038
2080
|
...e,
|
|
2039
2081
|
id: t
|
|
2040
2082
|
}
|
|
2041
|
-
}), r = () =>
|
|
2083
|
+
}), r = () => Q({
|
|
2042
2084
|
type: "DISMISS_TOAST",
|
|
2043
2085
|
toastId: t
|
|
2044
2086
|
});
|
|
2045
|
-
return
|
|
2087
|
+
return Q({
|
|
2046
2088
|
type: "ADD_TOAST",
|
|
2047
2089
|
toast: {
|
|
2048
2090
|
...e,
|
|
@@ -2058,24 +2100,24 @@ function la({ ...e }) {
|
|
|
2058
2100
|
update: n
|
|
2059
2101
|
};
|
|
2060
2102
|
}
|
|
2061
|
-
function
|
|
2062
|
-
let [t, n] = e.useState(
|
|
2063
|
-
return e.useEffect(() => (
|
|
2064
|
-
let e =
|
|
2065
|
-
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);
|
|
2066
2108
|
}), []), {
|
|
2067
2109
|
...t,
|
|
2068
|
-
toast:
|
|
2069
|
-
dismiss: (e) =>
|
|
2110
|
+
toast: fa,
|
|
2111
|
+
dismiss: (e) => Q({
|
|
2070
2112
|
type: "DISMISS_TOAST",
|
|
2071
2113
|
toastId: e
|
|
2072
2114
|
})
|
|
2073
2115
|
};
|
|
2074
2116
|
}
|
|
2075
2117
|
// src/toast.tsx
|
|
2076
|
-
var
|
|
2118
|
+
var ma = ({ children: e }) => e, ha = e.forwardRef(({ className: e, variant: t = "default", ...n }, r) => /* @__PURE__ */ v(W.Root, {
|
|
2077
2119
|
ref: r,
|
|
2078
|
-
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),
|
|
2079
2121
|
...n,
|
|
2080
2122
|
children: /* @__PURE__ */ v(E.View, {
|
|
2081
2123
|
entering: he,
|
|
@@ -2085,39 +2127,39 @@ var da = ({ children: e }) => e, fa = e.forwardRef(({ className: e, variant: t =
|
|
|
2085
2127
|
children: n.children
|
|
2086
2128
|
})
|
|
2087
2129
|
}));
|
|
2088
|
-
|
|
2089
|
-
var
|
|
2130
|
+
ha.displayName = W.Root?.displayName || "Toast";
|
|
2131
|
+
var ga = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(W.Title, {
|
|
2090
2132
|
ref: n,
|
|
2091
|
-
className:
|
|
2133
|
+
className: q("text-foreground text-sm font-semibold", e),
|
|
2092
2134
|
...t
|
|
2093
2135
|
}));
|
|
2094
|
-
|
|
2095
|
-
var
|
|
2136
|
+
ga.displayName = W.Title?.displayName || "ToastTitle";
|
|
2137
|
+
var _a = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(W.Description, {
|
|
2096
2138
|
ref: n,
|
|
2097
|
-
className:
|
|
2139
|
+
className: q("text-muted-foreground text-sm opacity-90", e),
|
|
2098
2140
|
...t
|
|
2099
2141
|
}));
|
|
2100
|
-
|
|
2101
|
-
var
|
|
2142
|
+
_a.displayName = W.Description?.displayName || "ToastDescription";
|
|
2143
|
+
var va = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(W.Close, {
|
|
2102
2144
|
ref: n,
|
|
2103
|
-
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),
|
|
2104
2146
|
...t,
|
|
2105
2147
|
children: /* @__PURE__ */ v(T, {
|
|
2106
2148
|
size: 16,
|
|
2107
2149
|
className: "text-muted-foreground"
|
|
2108
2150
|
})
|
|
2109
2151
|
}));
|
|
2110
|
-
|
|
2111
|
-
var
|
|
2152
|
+
va.displayName = W.Close?.displayName || "ToastClose";
|
|
2153
|
+
var ya = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ v(W.Action, {
|
|
2112
2154
|
ref: n,
|
|
2113
|
-
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),
|
|
2114
2156
|
...t
|
|
2115
2157
|
}));
|
|
2116
|
-
|
|
2158
|
+
ya.displayName = W.Action?.displayName || "ToastAction";
|
|
2117
2159
|
// src/theme-provider.tsx
|
|
2118
|
-
var
|
|
2119
|
-
function
|
|
2120
|
-
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";
|
|
2121
2163
|
e.useEffect(() => {
|
|
2122
2164
|
typeof document < "u" && (document.documentElement.classList.toggle("dark", d), document.body && document.body.classList.toggle("dark", d));
|
|
2123
2165
|
try {
|
|
@@ -2133,10 +2175,10 @@ function va({ children: t, className: n, style: r, value: a, ...o }) {
|
|
|
2133
2175
|
l,
|
|
2134
2176
|
u
|
|
2135
2177
|
]);
|
|
2136
|
-
return /* @__PURE__ */ v(
|
|
2178
|
+
return /* @__PURE__ */ v(ba.Provider, {
|
|
2137
2179
|
value: f,
|
|
2138
2180
|
children: /* @__PURE__ */ v(h, {
|
|
2139
|
-
className:
|
|
2181
|
+
className: q("flex-1", d ? "dark" : "", n),
|
|
2140
2182
|
style: [{ backgroundColor: u.background }, r],
|
|
2141
2183
|
...o,
|
|
2142
2184
|
children: t
|
|
@@ -2144,19 +2186,19 @@ function va({ children: t, className: n, style: r, value: a, ...o }) {
|
|
|
2144
2186
|
});
|
|
2145
2187
|
}
|
|
2146
2188
|
// src/hooks/use-theme.ts
|
|
2147
|
-
function
|
|
2148
|
-
let t = e.useContext(
|
|
2189
|
+
function Sa() {
|
|
2190
|
+
let t = e.useContext(ba), n = g();
|
|
2149
2191
|
if (t) return t;
|
|
2150
2192
|
let r = n;
|
|
2151
2193
|
return {
|
|
2152
2194
|
theme: n,
|
|
2153
2195
|
resolvedTheme: r,
|
|
2154
|
-
tokens: r === "dark" ?
|
|
2196
|
+
tokens: r === "dark" ? G.dark : G.light
|
|
2155
2197
|
};
|
|
2156
2198
|
}
|
|
2157
2199
|
// src/lib/iconWithClassName.ts
|
|
2158
|
-
function
|
|
2159
|
-
|
|
2200
|
+
function Ca(e) {
|
|
2201
|
+
Ke(e, { className: {
|
|
2160
2202
|
target: "style",
|
|
2161
2203
|
nativeStyleToProp: {
|
|
2162
2204
|
color: !0,
|
|
@@ -2164,27 +2206,27 @@ function ba(e) {
|
|
|
2164
2206
|
}
|
|
2165
2207
|
} });
|
|
2166
2208
|
}
|
|
2167
|
-
|
|
2168
|
-
function
|
|
2209
|
+
Ca(fe), Ca(le), Ca(pe);
|
|
2210
|
+
function wa({ isDark: e, isSystem: t, foreground: n }) {
|
|
2169
2211
|
return /* @__PURE__ */ y(h, {
|
|
2170
2212
|
className: "flex h-6 w-6 items-center justify-center",
|
|
2171
2213
|
children: [
|
|
2172
2214
|
/* @__PURE__ */ v(h, {
|
|
2173
|
-
className:
|
|
2215
|
+
className: q("items-center justify-center transition-all", !t && !e ? "rotate-0 opacity-100" : "absolute -rotate-90 opacity-0"),
|
|
2174
2216
|
children: /* @__PURE__ */ v(fe, {
|
|
2175
2217
|
size: 18,
|
|
2176
2218
|
color: n
|
|
2177
2219
|
})
|
|
2178
2220
|
}),
|
|
2179
2221
|
/* @__PURE__ */ v(h, {
|
|
2180
|
-
className:
|
|
2222
|
+
className: q("items-center justify-center transition-all", !t && e ? "rotate-0 opacity-100" : "absolute rotate-90 opacity-0"),
|
|
2181
2223
|
children: /* @__PURE__ */ v(le, {
|
|
2182
2224
|
size: 18,
|
|
2183
2225
|
color: n
|
|
2184
2226
|
})
|
|
2185
2227
|
}),
|
|
2186
2228
|
/* @__PURE__ */ v(h, {
|
|
2187
|
-
className:
|
|
2229
|
+
className: q("items-center justify-center transition-all", t ? "rotate-0 opacity-100" : "absolute rotate-90 opacity-0"),
|
|
2188
2230
|
children: /* @__PURE__ */ v(pe, {
|
|
2189
2231
|
size: 18,
|
|
2190
2232
|
color: n
|
|
@@ -2193,51 +2235,51 @@ function xa({ isDark: e, isSystem: t, foreground: n }) {
|
|
|
2193
2235
|
]
|
|
2194
2236
|
});
|
|
2195
2237
|
}
|
|
2196
|
-
function
|
|
2197
|
-
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) => {
|
|
2198
2240
|
t ? t(e) : e === "system" ? i.setColorScheme("unspecified") : i.setColorScheme(e);
|
|
2199
2241
|
};
|
|
2200
|
-
return e === "ternary" ? /* @__PURE__ */ y(
|
|
2201
|
-
className:
|
|
2202
|
-
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, {
|
|
2203
2245
|
isDark: l,
|
|
2204
2246
|
isSystem: u,
|
|
2205
2247
|
foreground: s.foreground
|
|
2206
2248
|
})
|
|
2207
|
-
}), /* @__PURE__ */ y(
|
|
2249
|
+
}), /* @__PURE__ */ y(Gn, {
|
|
2208
2250
|
align: "end",
|
|
2209
2251
|
children: [
|
|
2210
|
-
/* @__PURE__ */ y(
|
|
2252
|
+
/* @__PURE__ */ y(X, {
|
|
2211
2253
|
onSelect: () => d("light"),
|
|
2212
2254
|
children: [/* @__PURE__ */ v(fe, {
|
|
2213
2255
|
size: 14,
|
|
2214
2256
|
color: s.foreground,
|
|
2215
2257
|
className: "mr-2"
|
|
2216
|
-
}), /* @__PURE__ */ v(
|
|
2258
|
+
}), /* @__PURE__ */ v(Y, { children: "Light" })]
|
|
2217
2259
|
}),
|
|
2218
|
-
/* @__PURE__ */ y(
|
|
2260
|
+
/* @__PURE__ */ y(X, {
|
|
2219
2261
|
onSelect: () => d("dark"),
|
|
2220
2262
|
children: [/* @__PURE__ */ v(le, {
|
|
2221
2263
|
size: 14,
|
|
2222
2264
|
color: s.foreground,
|
|
2223
2265
|
className: "mr-2"
|
|
2224
|
-
}), /* @__PURE__ */ v(
|
|
2266
|
+
}), /* @__PURE__ */ v(Y, { children: "Dark" })]
|
|
2225
2267
|
}),
|
|
2226
|
-
/* @__PURE__ */ y(
|
|
2268
|
+
/* @__PURE__ */ y(X, {
|
|
2227
2269
|
onSelect: () => d("system"),
|
|
2228
2270
|
children: [/* @__PURE__ */ v(pe, {
|
|
2229
2271
|
size: 14,
|
|
2230
2272
|
color: s.foreground,
|
|
2231
2273
|
className: "mr-2"
|
|
2232
|
-
}), /* @__PURE__ */ v(
|
|
2274
|
+
}), /* @__PURE__ */ v(Y, { children: "System" })]
|
|
2233
2275
|
})
|
|
2234
2276
|
]
|
|
2235
|
-
})] }) : /* @__PURE__ */ v(
|
|
2277
|
+
})] }) : /* @__PURE__ */ v(J, {
|
|
2236
2278
|
variant: "ghost",
|
|
2237
2279
|
size: "icon",
|
|
2238
|
-
className:
|
|
2280
|
+
className: q("relative h-9 w-9", r),
|
|
2239
2281
|
onPress: () => d(c === "dark" ? "light" : "dark"),
|
|
2240
|
-
children: /* @__PURE__ */ v(
|
|
2282
|
+
children: /* @__PURE__ */ v(wa, {
|
|
2241
2283
|
isDark: l,
|
|
2242
2284
|
isSystem: u,
|
|
2243
2285
|
foreground: s.foreground
|
|
@@ -2245,30 +2287,30 @@ function Sa({ variant: e = "binary", onThemeChange: t, customTheme: n, className
|
|
|
2245
2287
|
});
|
|
2246
2288
|
}
|
|
2247
2289
|
// src/toaster.tsx
|
|
2248
|
-
var
|
|
2249
|
-
let { toasts: e } =
|
|
2250
|
-
return /* @__PURE__ */ v(
|
|
2290
|
+
var Ea = () => {
|
|
2291
|
+
let { toasts: e } = pa();
|
|
2292
|
+
return /* @__PURE__ */ v(ma, { children: /* @__PURE__ */ v(h, {
|
|
2251
2293
|
className: "pointer-events-none absolute right-6 bottom-6 left-6 z-50 flex flex-col gap-2",
|
|
2252
|
-
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, {
|
|
2253
2295
|
...i,
|
|
2254
2296
|
className: "pointer-events-auto",
|
|
2255
2297
|
children: [
|
|
2256
2298
|
/* @__PURE__ */ y(h, {
|
|
2257
2299
|
className: "flex flex-1 flex-col gap-1",
|
|
2258
|
-
children: [t && /* @__PURE__ */ v(
|
|
2300
|
+
children: [t && /* @__PURE__ */ v(ga, { children: t }), n && /* @__PURE__ */ v(_a, { children: n })]
|
|
2259
2301
|
}),
|
|
2260
2302
|
r,
|
|
2261
|
-
/* @__PURE__ */ v(
|
|
2303
|
+
/* @__PURE__ */ v(va, {})
|
|
2262
2304
|
]
|
|
2263
2305
|
}, e))
|
|
2264
2306
|
}) });
|
|
2265
|
-
},
|
|
2266
|
-
function
|
|
2267
|
-
let t = e.useContext(
|
|
2307
|
+
}, Da = e.createContext(void 0);
|
|
2308
|
+
function Oa() {
|
|
2309
|
+
let t = e.useContext(Da);
|
|
2268
2310
|
if (!t) throw Error("useTOC must be used within a TableOfContents provider");
|
|
2269
2311
|
return t;
|
|
2270
2312
|
}
|
|
2271
|
-
function
|
|
2313
|
+
function ka({ children: t, activeId: n }) {
|
|
2272
2314
|
let [r, i] = e.useState([]), [a, o] = e.useState(null), s = e.useRef(null), c = e.useMemo(() => {
|
|
2273
2315
|
let e = n || a;
|
|
2274
2316
|
return r.find((t) => t.id === e)?.text || null;
|
|
@@ -2325,7 +2367,7 @@ function Q({ children: t, activeId: n }) {
|
|
|
2325
2367
|
d,
|
|
2326
2368
|
f
|
|
2327
2369
|
]);
|
|
2328
|
-
return /* @__PURE__ */ v(
|
|
2370
|
+
return /* @__PURE__ */ v(Da.Provider, {
|
|
2329
2371
|
value: p,
|
|
2330
2372
|
children: /* @__PURE__ */ v(h, {
|
|
2331
2373
|
className: "flex-1",
|
|
@@ -2333,8 +2375,8 @@ function Q({ children: t, activeId: n }) {
|
|
|
2333
2375
|
})
|
|
2334
2376
|
});
|
|
2335
2377
|
}
|
|
2336
|
-
function
|
|
2337
|
-
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) => {
|
|
2338
2380
|
let { y: r } = e.nativeEvent.layout;
|
|
2339
2381
|
a(s, t, n, r);
|
|
2340
2382
|
}, [
|
|
@@ -2345,18 +2387,18 @@ function Ea({ children: t, level: n = 2, id: r, className: i }) {
|
|
|
2345
2387
|
]);
|
|
2346
2388
|
return e.useEffect(() => () => o(s), [s, o]), /* @__PURE__ */ v(h, {
|
|
2347
2389
|
onLayout: c,
|
|
2348
|
-
children: /* @__PURE__ */ v(
|
|
2390
|
+
children: /* @__PURE__ */ v(Y, {
|
|
2349
2391
|
variant: n === 1 ? "h1" : n === 2 ? "h2" : n === 3 ? "h3" : "h4",
|
|
2350
2392
|
className: i,
|
|
2351
2393
|
children: t
|
|
2352
2394
|
})
|
|
2353
2395
|
});
|
|
2354
2396
|
}
|
|
2355
|
-
function
|
|
2356
|
-
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]);
|
|
2357
2399
|
return n.length === 0 ? null : /* @__PURE__ */ y(h, {
|
|
2358
|
-
className:
|
|
2359
|
-
children: [/* @__PURE__ */ v(
|
|
2400
|
+
className: q("space-y-2 p-4", t),
|
|
2401
|
+
children: [/* @__PURE__ */ v(Y, {
|
|
2360
2402
|
variant: "overline",
|
|
2361
2403
|
className: "mb-2 font-bold",
|
|
2362
2404
|
children: "On this page"
|
|
@@ -2367,19 +2409,19 @@ function Da({ className: t }) {
|
|
|
2367
2409
|
style: { paddingLeft: n },
|
|
2368
2410
|
className: "py-1",
|
|
2369
2411
|
children: /* @__PURE__ */ v(f, {
|
|
2370
|
-
className:
|
|
2412
|
+
className: q("text-sm", t ? "text-primary font-bold" : "text-muted-foreground"),
|
|
2371
2413
|
children: e.text
|
|
2372
2414
|
})
|
|
2373
2415
|
}, e.id);
|
|
2374
2416
|
})]
|
|
2375
2417
|
});
|
|
2376
2418
|
}
|
|
2377
|
-
function
|
|
2378
|
-
let { scrollViewRef: n, onScroll: r } =
|
|
2419
|
+
function Ma({ children: e, className: t }) {
|
|
2420
|
+
let { scrollViewRef: n, onScroll: r } = Oa();
|
|
2379
2421
|
return /* @__PURE__ */ v(u, {
|
|
2380
2422
|
ref: n,
|
|
2381
2423
|
onScroll: r,
|
|
2382
|
-
className:
|
|
2424
|
+
className: q("flex-1", t),
|
|
2383
2425
|
...c.OS !== "web" && {
|
|
2384
2426
|
scrollEventThrottle: 16,
|
|
2385
2427
|
contentContainerStyle: { padding: 16 }
|
|
@@ -2387,133 +2429,133 @@ function Oa({ children: e, className: t }) {
|
|
|
2387
2429
|
children: e
|
|
2388
2430
|
});
|
|
2389
2431
|
}
|
|
2390
|
-
|
|
2432
|
+
ka.List = ja, ka.Content = Ma, ka.Heading = Aa;
|
|
2391
2433
|
// src/button-group.tsx
|
|
2392
|
-
var
|
|
2434
|
+
var Na = A("flex w-fit items-stretch", {
|
|
2393
2435
|
variants: { orientation: {
|
|
2394
2436
|
horizontal: "flex-row",
|
|
2395
2437
|
vertical: "flex-col"
|
|
2396
2438
|
} },
|
|
2397
2439
|
defaultVariants: { orientation: "horizontal" }
|
|
2398
2440
|
});
|
|
2399
|
-
function
|
|
2441
|
+
function Pa({ className: e, orientation: t = "horizontal", ...n }) {
|
|
2400
2442
|
return /* @__PURE__ */ v(h, {
|
|
2401
|
-
className:
|
|
2443
|
+
className: q(Na({ orientation: t }), e),
|
|
2402
2444
|
...n
|
|
2403
2445
|
});
|
|
2404
2446
|
}
|
|
2405
|
-
function
|
|
2447
|
+
function Fa({ className: e, asChild: t, ...n }) {
|
|
2406
2448
|
return /* @__PURE__ */ v(f, {
|
|
2407
|
-
className:
|
|
2449
|
+
className: q("bg-muted text-foreground rounded-lg border px-2.5 text-sm font-medium", e),
|
|
2408
2450
|
...n
|
|
2409
2451
|
});
|
|
2410
2452
|
}
|
|
2411
|
-
function
|
|
2412
|
-
return /* @__PURE__ */ v(
|
|
2453
|
+
function Ia({ className: e, orientation: t = "vertical", ...n }) {
|
|
2454
|
+
return /* @__PURE__ */ v(bi, {
|
|
2413
2455
|
orientation: t,
|
|
2414
|
-
className:
|
|
2456
|
+
className: q("bg-border", e),
|
|
2415
2457
|
...n
|
|
2416
2458
|
});
|
|
2417
2459
|
}
|
|
2418
2460
|
// src/direction.tsx
|
|
2419
|
-
function
|
|
2461
|
+
function La({ children: e }) {
|
|
2420
2462
|
return e;
|
|
2421
2463
|
}
|
|
2422
|
-
function
|
|
2464
|
+
function Ra() {
|
|
2423
2465
|
return "ltr";
|
|
2424
2466
|
}
|
|
2425
2467
|
// src/empty.tsx
|
|
2426
|
-
function
|
|
2468
|
+
function za({ className: e, ...t }) {
|
|
2427
2469
|
return /* @__PURE__ */ v(h, {
|
|
2428
|
-
className:
|
|
2470
|
+
className: q("border-border flex w-full items-center justify-center rounded-xl border-2 border-dashed p-6", e),
|
|
2429
2471
|
...t
|
|
2430
2472
|
});
|
|
2431
2473
|
}
|
|
2432
|
-
function
|
|
2474
|
+
function Ba({ className: e, ...t }) {
|
|
2433
2475
|
return /* @__PURE__ */ v(h, {
|
|
2434
|
-
className:
|
|
2476
|
+
className: q("flex flex-col items-center gap-2", e),
|
|
2435
2477
|
...t
|
|
2436
2478
|
});
|
|
2437
2479
|
}
|
|
2438
|
-
function
|
|
2480
|
+
function Va({ className: e, variant: t, ...n }) {
|
|
2439
2481
|
return /* @__PURE__ */ v(h, {
|
|
2440
|
-
className:
|
|
2482
|
+
className: q("flex items-center justify-center", e),
|
|
2441
2483
|
...n
|
|
2442
2484
|
});
|
|
2443
2485
|
}
|
|
2444
|
-
function
|
|
2486
|
+
function Ha({ className: e, ...t }) {
|
|
2445
2487
|
return /* @__PURE__ */ v(f, {
|
|
2446
|
-
className:
|
|
2488
|
+
className: q("text-foreground text-lg font-semibold", e),
|
|
2447
2489
|
...t
|
|
2448
2490
|
});
|
|
2449
2491
|
}
|
|
2450
|
-
function
|
|
2492
|
+
function Ua({ className: e, ...t }) {
|
|
2451
2493
|
return /* @__PURE__ */ v(f, {
|
|
2452
|
-
className:
|
|
2494
|
+
className: q("text-muted-foreground text-center text-sm", e),
|
|
2453
2495
|
...t
|
|
2454
2496
|
});
|
|
2455
2497
|
}
|
|
2456
|
-
function
|
|
2498
|
+
function Wa({ className: e, ...t }) {
|
|
2457
2499
|
return /* @__PURE__ */ v(h, {
|
|
2458
|
-
className:
|
|
2500
|
+
className: q("mt-4 flex flex-col items-center gap-2", e),
|
|
2459
2501
|
...t
|
|
2460
2502
|
});
|
|
2461
2503
|
}
|
|
2462
2504
|
// src/spinner.tsx
|
|
2463
|
-
function
|
|
2505
|
+
function Ga({ className: e, ...t }) {
|
|
2464
2506
|
return /* @__PURE__ */ v(n, {
|
|
2465
2507
|
size: "small",
|
|
2466
2508
|
...t
|
|
2467
2509
|
});
|
|
2468
2510
|
}
|
|
2469
2511
|
// src/field.tsx
|
|
2470
|
-
function
|
|
2512
|
+
function Ka({ className: e, orientation: t, ...n }) {
|
|
2471
2513
|
return /* @__PURE__ */ v(h, {
|
|
2472
|
-
className:
|
|
2514
|
+
className: q("flex flex-col gap-2", e),
|
|
2473
2515
|
...n
|
|
2474
2516
|
});
|
|
2475
2517
|
}
|
|
2476
|
-
function
|
|
2518
|
+
function qa({ className: e, ...t }) {
|
|
2477
2519
|
return /* @__PURE__ */ v(h, {
|
|
2478
|
-
className:
|
|
2520
|
+
className: q("flex flex-col", e),
|
|
2479
2521
|
...t
|
|
2480
2522
|
});
|
|
2481
2523
|
}
|
|
2482
|
-
function
|
|
2524
|
+
function Ja({ className: e, ...t }) {
|
|
2483
2525
|
return /* @__PURE__ */ v(f, {
|
|
2484
|
-
className:
|
|
2526
|
+
className: q("text-muted-foreground text-sm", e),
|
|
2485
2527
|
...t
|
|
2486
2528
|
});
|
|
2487
2529
|
}
|
|
2488
|
-
function
|
|
2530
|
+
function Ya({ className: e, errors: t, children: n, ...r }) {
|
|
2489
2531
|
let i = n || t && t[0]?.message;
|
|
2490
2532
|
return i ? /* @__PURE__ */ v(f, {
|
|
2491
|
-
className:
|
|
2533
|
+
className: q("text-destructive text-sm", e),
|
|
2492
2534
|
...r,
|
|
2493
2535
|
children: i
|
|
2494
2536
|
}) : null;
|
|
2495
2537
|
}
|
|
2496
|
-
function
|
|
2538
|
+
function Xa({ className: e, ...t }) {
|
|
2497
2539
|
return /* @__PURE__ */ v(h, {
|
|
2498
|
-
className:
|
|
2540
|
+
className: q("flex flex-col gap-4", e),
|
|
2499
2541
|
...t
|
|
2500
2542
|
});
|
|
2501
2543
|
}
|
|
2502
|
-
function
|
|
2544
|
+
function Za({ className: e, ...t }) {
|
|
2503
2545
|
return /* @__PURE__ */ v(f, {
|
|
2504
|
-
className:
|
|
2546
|
+
className: q("text-sm font-medium", e),
|
|
2505
2547
|
...t
|
|
2506
2548
|
});
|
|
2507
2549
|
}
|
|
2508
|
-
function
|
|
2550
|
+
function Qa({ className: e, variant: t, ...n }) {
|
|
2509
2551
|
return /* @__PURE__ */ v(f, {
|
|
2510
|
-
className:
|
|
2552
|
+
className: q("font-medium", t === "label" ? "text-sm" : "text-base", e),
|
|
2511
2553
|
...n
|
|
2512
2554
|
});
|
|
2513
2555
|
}
|
|
2514
|
-
function
|
|
2556
|
+
function $a({ className: e, children: t, ...n }) {
|
|
2515
2557
|
return /* @__PURE__ */ v(h, {
|
|
2516
|
-
className:
|
|
2558
|
+
className: q("bg-border my-2 h-px", e),
|
|
2517
2559
|
...n,
|
|
2518
2560
|
children: t ? /* @__PURE__ */ v(f, {
|
|
2519
2561
|
className: "bg-background absolute px-2 text-xs",
|
|
@@ -2521,167 +2563,144 @@ function Ya({ className: e, children: t, ...n }) {
|
|
|
2521
2563
|
}) : null
|
|
2522
2564
|
});
|
|
2523
2565
|
}
|
|
2524
|
-
function
|
|
2566
|
+
function eo({ className: e, ...t }) {
|
|
2525
2567
|
return /* @__PURE__ */ v(h, {
|
|
2526
|
-
className:
|
|
2568
|
+
className: q("flex flex-col gap-4", e),
|
|
2527
2569
|
...t
|
|
2528
2570
|
});
|
|
2529
2571
|
}
|
|
2530
|
-
function
|
|
2572
|
+
function to({ className: e, ...t }) {
|
|
2531
2573
|
return /* @__PURE__ */ v(f, {
|
|
2532
|
-
className:
|
|
2574
|
+
className: q("text-sm font-medium", e),
|
|
2533
2575
|
...t
|
|
2534
2576
|
});
|
|
2535
2577
|
}
|
|
2536
2578
|
// src/input-group.tsx
|
|
2537
|
-
function
|
|
2579
|
+
function no({ className: e, ...t }) {
|
|
2538
2580
|
return /* @__PURE__ */ v(h, {
|
|
2539
|
-
className:
|
|
2581
|
+
className: q("border-input flex flex-row items-center rounded-md border", e),
|
|
2540
2582
|
...t
|
|
2541
2583
|
});
|
|
2542
2584
|
}
|
|
2543
|
-
function
|
|
2585
|
+
function ro({ className: e, align: t, ...n }) {
|
|
2544
2586
|
return /* @__PURE__ */ v(h, {
|
|
2545
|
-
className:
|
|
2587
|
+
className: q("p-2", e),
|
|
2546
2588
|
...n
|
|
2547
2589
|
});
|
|
2548
2590
|
}
|
|
2549
|
-
function
|
|
2550
|
-
return /* @__PURE__ */ v(
|
|
2591
|
+
function io({ className: e, type: t, variant: n, size: r, ...i }) {
|
|
2592
|
+
return /* @__PURE__ */ v(J, {
|
|
2551
2593
|
variant: n,
|
|
2552
2594
|
size: r,
|
|
2553
2595
|
className: e,
|
|
2554
2596
|
...i
|
|
2555
2597
|
});
|
|
2556
2598
|
}
|
|
2557
|
-
function
|
|
2599
|
+
function ao({ className: e, ...t }) {
|
|
2558
2600
|
return /* @__PURE__ */ v(f, {
|
|
2559
|
-
className:
|
|
2601
|
+
className: q("text-muted-foreground text-sm", e),
|
|
2560
2602
|
...t
|
|
2561
2603
|
});
|
|
2562
2604
|
}
|
|
2563
|
-
function
|
|
2605
|
+
function oo({ className: e, ...t }) {
|
|
2564
2606
|
return /* @__PURE__ */ v(p, {
|
|
2565
|
-
className:
|
|
2607
|
+
className: q("text-foreground flex-1 px-3 py-2", e),
|
|
2566
2608
|
...t
|
|
2567
2609
|
});
|
|
2568
2610
|
}
|
|
2569
|
-
function
|
|
2611
|
+
function so({ className: e, ...t }) {
|
|
2570
2612
|
return /* @__PURE__ */ v(p, {
|
|
2571
2613
|
multiline: !0,
|
|
2572
|
-
className:
|
|
2573
|
-
...t
|
|
2574
|
-
});
|
|
2575
|
-
}
|
|
2576
|
-
// src/native-select.tsx
|
|
2577
|
-
function io({ className: e, size: t, ...n }) {
|
|
2578
|
-
return /* @__PURE__ */ v(h, {
|
|
2579
|
-
className: G("border-input rounded-md border p-2", e),
|
|
2580
|
-
...n,
|
|
2581
|
-
children: /* @__PURE__ */ v(f, {
|
|
2582
|
-
className: "text-muted-foreground",
|
|
2583
|
-
children: "Select Not Implemented (Use Picker)"
|
|
2584
|
-
})
|
|
2585
|
-
});
|
|
2586
|
-
}
|
|
2587
|
-
function ao({ className: e, ...t }) {
|
|
2588
|
-
return /* @__PURE__ */ v(h, {
|
|
2589
|
-
className: e,
|
|
2590
|
-
...t
|
|
2591
|
-
});
|
|
2592
|
-
}
|
|
2593
|
-
function oo({ className: e, ...t }) {
|
|
2594
|
-
return /* @__PURE__ */ v(h, {
|
|
2595
|
-
className: e,
|
|
2614
|
+
className: q("text-foreground flex-1 px-3 py-2", e),
|
|
2596
2615
|
...t
|
|
2597
2616
|
});
|
|
2598
2617
|
}
|
|
2599
2618
|
// src/kbd.tsx
|
|
2600
|
-
function
|
|
2619
|
+
function co({ className: e, ...t }) {
|
|
2601
2620
|
return /* @__PURE__ */ v(f, {
|
|
2602
|
-
className:
|
|
2621
|
+
className: q("bg-muted text-muted-foreground rounded-sm px-1 font-mono text-xs", e),
|
|
2603
2622
|
...t
|
|
2604
2623
|
});
|
|
2605
2624
|
}
|
|
2606
|
-
function
|
|
2625
|
+
function lo({ className: e, ...t }) {
|
|
2607
2626
|
return /* @__PURE__ */ v(h, {
|
|
2608
|
-
className:
|
|
2627
|
+
className: q("flex flex-row items-center gap-1", e),
|
|
2609
2628
|
...t
|
|
2610
2629
|
});
|
|
2611
2630
|
}
|
|
2612
2631
|
// src/item.tsx
|
|
2613
|
-
function
|
|
2632
|
+
function uo({ className: e, variant: t, size: n, ...r }) {
|
|
2614
2633
|
return /* @__PURE__ */ v(h, {
|
|
2615
|
-
className:
|
|
2634
|
+
className: q("flex flex-row flex-wrap items-center gap-2 rounded-lg border p-3", e),
|
|
2616
2635
|
...r
|
|
2617
2636
|
});
|
|
2618
2637
|
}
|
|
2619
|
-
function
|
|
2638
|
+
function fo({ className: e, ...t }) {
|
|
2620
2639
|
return /* @__PURE__ */ v(h, {
|
|
2621
|
-
className:
|
|
2640
|
+
className: q("flex flex-row items-center gap-2", e),
|
|
2622
2641
|
...t
|
|
2623
2642
|
});
|
|
2624
2643
|
}
|
|
2625
|
-
function
|
|
2644
|
+
function po({ className: e, ...t }) {
|
|
2626
2645
|
return /* @__PURE__ */ v(h, {
|
|
2627
|
-
className:
|
|
2646
|
+
className: q("flex flex-1 flex-col gap-1", e),
|
|
2628
2647
|
...t
|
|
2629
2648
|
});
|
|
2630
2649
|
}
|
|
2631
|
-
function
|
|
2632
|
-
return /* @__PURE__ */ v(
|
|
2650
|
+
function mo({ className: e, ...t }) {
|
|
2651
|
+
return /* @__PURE__ */ v(Y, {
|
|
2633
2652
|
variant: "bodySmall",
|
|
2634
|
-
className:
|
|
2653
|
+
className: q("text-muted-foreground", e),
|
|
2635
2654
|
...t
|
|
2636
2655
|
});
|
|
2637
2656
|
}
|
|
2638
|
-
function
|
|
2657
|
+
function ho({ className: e, ...t }) {
|
|
2639
2658
|
return /* @__PURE__ */ v(h, {
|
|
2640
|
-
className:
|
|
2659
|
+
className: q("flex w-full flex-row items-center justify-between gap-2", e),
|
|
2641
2660
|
...t
|
|
2642
2661
|
});
|
|
2643
2662
|
}
|
|
2644
|
-
function
|
|
2663
|
+
function go({ className: e, ...t }) {
|
|
2645
2664
|
return /* @__PURE__ */ v(h, {
|
|
2646
|
-
className:
|
|
2665
|
+
className: q("flex flex-col gap-4", e),
|
|
2647
2666
|
...t
|
|
2648
2667
|
});
|
|
2649
2668
|
}
|
|
2650
|
-
function
|
|
2669
|
+
function _o({ className: e, ...t }) {
|
|
2651
2670
|
return /* @__PURE__ */ v(h, {
|
|
2652
|
-
className:
|
|
2671
|
+
className: q("flex w-full flex-row items-center justify-between gap-2", e),
|
|
2653
2672
|
...t
|
|
2654
2673
|
});
|
|
2655
2674
|
}
|
|
2656
|
-
function
|
|
2675
|
+
function vo({ className: e, variant: t, ...n }) {
|
|
2657
2676
|
return /* @__PURE__ */ v(h, {
|
|
2658
|
-
className:
|
|
2677
|
+
className: q("flex shrink-0 items-center justify-center gap-2", e),
|
|
2659
2678
|
...n
|
|
2660
2679
|
});
|
|
2661
2680
|
}
|
|
2662
|
-
function
|
|
2681
|
+
function yo({ className: e, orientation: t, ...n }) {
|
|
2663
2682
|
return /* @__PURE__ */ v(h, {
|
|
2664
|
-
className:
|
|
2683
|
+
className: q("bg-border my-2 h-px w-full", e),
|
|
2665
2684
|
...n
|
|
2666
2685
|
});
|
|
2667
2686
|
}
|
|
2668
|
-
function
|
|
2669
|
-
return /* @__PURE__ */ v(
|
|
2687
|
+
function bo({ className: e, ...t }) {
|
|
2688
|
+
return /* @__PURE__ */ v(Y, {
|
|
2670
2689
|
variant: "bodySmall",
|
|
2671
|
-
className:
|
|
2690
|
+
className: q("font-medium", e),
|
|
2672
2691
|
...t
|
|
2673
2692
|
});
|
|
2674
2693
|
}
|
|
2675
2694
|
// src/combobox.tsx
|
|
2676
|
-
var
|
|
2695
|
+
var xo = e.createContext(null);
|
|
2677
2696
|
function $() {
|
|
2678
|
-
let t = e.useContext(
|
|
2697
|
+
let t = e.useContext(xo);
|
|
2679
2698
|
if (!t) throw Error("Combobox components must be rendered within a Combobox provider");
|
|
2680
2699
|
return t;
|
|
2681
2700
|
}
|
|
2682
|
-
function
|
|
2701
|
+
function So({ className: t, value: n, onValueChange: r, ...i }) {
|
|
2683
2702
|
let [a, o] = e.useState(!1), [s, c] = e.useState(n || ""), [l, u] = e.useState(""), d = n === void 0 ? s : n;
|
|
2684
|
-
return /* @__PURE__ */ v(
|
|
2703
|
+
return /* @__PURE__ */ v(xo.Provider, {
|
|
2685
2704
|
value: {
|
|
2686
2705
|
open: a,
|
|
2687
2706
|
setOpen: o,
|
|
@@ -2696,32 +2715,32 @@ function xo({ className: t, value: n, onValueChange: r, ...i }) {
|
|
|
2696
2715
|
open: a,
|
|
2697
2716
|
onOpenChange: o,
|
|
2698
2717
|
children: /* @__PURE__ */ v(h, {
|
|
2699
|
-
className:
|
|
2718
|
+
className: q("relative", t),
|
|
2700
2719
|
...i
|
|
2701
2720
|
})
|
|
2702
2721
|
})
|
|
2703
2722
|
});
|
|
2704
2723
|
}
|
|
2705
|
-
function
|
|
2724
|
+
function Co({ className: e, children: t, ...n }) {
|
|
2706
2725
|
let { value: r } = $();
|
|
2707
2726
|
return /* @__PURE__ */ v(h, {
|
|
2708
2727
|
className: e,
|
|
2709
2728
|
...n,
|
|
2710
|
-
children: /* @__PURE__ */ v(
|
|
2729
|
+
children: /* @__PURE__ */ v(Y, {
|
|
2711
2730
|
className: "text-sm",
|
|
2712
2731
|
children: t || r || "Select an item..."
|
|
2713
2732
|
})
|
|
2714
2733
|
});
|
|
2715
2734
|
}
|
|
2716
|
-
function
|
|
2735
|
+
function wo({ className: e, children: t, ...n }) {
|
|
2717
2736
|
return /* @__PURE__ */ v(vn, {
|
|
2718
2737
|
asChild: !0,
|
|
2719
2738
|
children: /* @__PURE__ */ y(l, {
|
|
2720
|
-
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),
|
|
2721
2740
|
...n,
|
|
2722
2741
|
children: [/* @__PURE__ */ v(h, {
|
|
2723
2742
|
className: "flex-1 flex-row items-center",
|
|
2724
|
-
children:
|
|
2743
|
+
children: K(t, Y)
|
|
2725
2744
|
}), /* @__PURE__ */ v(C, {
|
|
2726
2745
|
size: 16,
|
|
2727
2746
|
className: "text-muted-foreground opacity-50"
|
|
@@ -2729,10 +2748,10 @@ function Co({ className: e, children: t, ...n }) {
|
|
|
2729
2748
|
})
|
|
2730
2749
|
});
|
|
2731
2750
|
}
|
|
2732
|
-
function
|
|
2751
|
+
function To({ className: e, children: t, ...n }) {
|
|
2733
2752
|
let { setValue: r } = $();
|
|
2734
2753
|
return /* @__PURE__ */ v(l, {
|
|
2735
|
-
className:
|
|
2754
|
+
className: q("flex items-center justify-center p-1", e),
|
|
2736
2755
|
onPress: () => r(""),
|
|
2737
2756
|
...n,
|
|
2738
2757
|
children: t || /* @__PURE__ */ v(T, {
|
|
@@ -2741,12 +2760,12 @@ function wo({ className: e, children: t, ...n }) {
|
|
|
2741
2760
|
})
|
|
2742
2761
|
});
|
|
2743
2762
|
}
|
|
2744
|
-
function
|
|
2763
|
+
function Eo({ className: e, showClear: t, showTrigger: n, placeholder: r = "Search...", ...i }) {
|
|
2745
2764
|
let { searchQuery: a, setSearchQuery: o } = $();
|
|
2746
2765
|
return /* @__PURE__ */ v(h, {
|
|
2747
2766
|
className: "border-border flex flex-row items-center border-b px-3",
|
|
2748
2767
|
children: /* @__PURE__ */ v(p, {
|
|
2749
|
-
className:
|
|
2768
|
+
className: q("flex h-12 w-full rounded-md bg-transparent py-3 text-sm outline-none", e),
|
|
2750
2769
|
placeholder: r,
|
|
2751
2770
|
placeholderTextColor: "#a1a1aa",
|
|
2752
2771
|
value: a,
|
|
@@ -2755,32 +2774,32 @@ function To({ className: e, showClear: t, showTrigger: n, placeholder: r = "Sear
|
|
|
2755
2774
|
})
|
|
2756
2775
|
});
|
|
2757
2776
|
}
|
|
2758
|
-
function
|
|
2777
|
+
function Do({ className: e, side: t, sideOffset: n, align: r, alignOffset: i, anchor: a, ...o }) {
|
|
2759
2778
|
return /* @__PURE__ */ v(Sn, {
|
|
2760
2779
|
className: "p-0",
|
|
2761
2780
|
children: /* @__PURE__ */ v(h, {
|
|
2762
|
-
className:
|
|
2781
|
+
className: q("bg-popover flex max-h-96 w-full flex-col overflow-hidden rounded-md", e),
|
|
2763
2782
|
...o
|
|
2764
2783
|
})
|
|
2765
2784
|
});
|
|
2766
2785
|
}
|
|
2767
|
-
function
|
|
2786
|
+
function Oo({ className: e, ...t }) {
|
|
2768
2787
|
return /* @__PURE__ */ v(h, {
|
|
2769
|
-
className:
|
|
2788
|
+
className: q("max-h-[300px] overflow-hidden", e),
|
|
2770
2789
|
...t
|
|
2771
2790
|
});
|
|
2772
2791
|
}
|
|
2773
|
-
function
|
|
2792
|
+
function ko({ className: t, children: n, value: r, ...i }) {
|
|
2774
2793
|
let { value: a, setValue: o, searchQuery: s } = $(), c = e.Children.toArray(n).join("").toLowerCase();
|
|
2775
2794
|
if (s && !c.includes(s.toLowerCase()) && !r.toLowerCase().includes(s.toLowerCase())) return null;
|
|
2776
2795
|
let u = a === r;
|
|
2777
2796
|
return /* @__PURE__ */ y(l, {
|
|
2778
|
-
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),
|
|
2779
2798
|
onPress: () => o(r),
|
|
2780
2799
|
...i,
|
|
2781
2800
|
children: [/* @__PURE__ */ v(h, {
|
|
2782
2801
|
className: "flex-1",
|
|
2783
|
-
children:
|
|
2802
|
+
children: K(n, Y, { className: u ? "font-semibold" : "" })
|
|
2784
2803
|
}), u && /* @__PURE__ */ v(h, {
|
|
2785
2804
|
className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
2786
2805
|
children: /* @__PURE__ */ v(S, {
|
|
@@ -2790,247 +2809,64 @@ function Oo({ className: t, children: n, value: r, ...i }) {
|
|
|
2790
2809
|
})]
|
|
2791
2810
|
});
|
|
2792
2811
|
}
|
|
2793
|
-
function
|
|
2812
|
+
function Ao({ className: e, ...t }) {
|
|
2794
2813
|
return /* @__PURE__ */ v(h, {
|
|
2795
|
-
className:
|
|
2814
|
+
className: q("text-foreground overflow-hidden p-1", e),
|
|
2796
2815
|
...t
|
|
2797
2816
|
});
|
|
2798
2817
|
}
|
|
2799
|
-
function
|
|
2818
|
+
function jo({ className: e, ...t }) {
|
|
2800
2819
|
return /* @__PURE__ */ v(h, {
|
|
2801
|
-
className:
|
|
2820
|
+
className: q("text-muted-foreground px-2 py-1.5 text-xs font-semibold", e),
|
|
2802
2821
|
...t
|
|
2803
2822
|
});
|
|
2804
2823
|
}
|
|
2805
|
-
function
|
|
2824
|
+
function Mo({ className: e, ...t }) {
|
|
2806
2825
|
return /* @__PURE__ */ v(h, {
|
|
2807
2826
|
className: e,
|
|
2808
2827
|
...t
|
|
2809
2828
|
});
|
|
2810
2829
|
}
|
|
2811
|
-
function
|
|
2830
|
+
function No({ className: e, children: t, ...n }) {
|
|
2812
2831
|
let { searchQuery: r } = $();
|
|
2813
2832
|
return r ? /* @__PURE__ */ v(h, {
|
|
2814
|
-
className:
|
|
2833
|
+
className: q("py-6 text-center text-sm", e),
|
|
2815
2834
|
...n,
|
|
2816
|
-
children: /* @__PURE__ */ v(
|
|
2835
|
+
children: /* @__PURE__ */ v(Y, {
|
|
2817
2836
|
className: "text-muted-foreground text-center",
|
|
2818
2837
|
children: t || "No results found."
|
|
2819
2838
|
})
|
|
2820
2839
|
}) : null;
|
|
2821
2840
|
}
|
|
2822
|
-
function
|
|
2841
|
+
function Po({ className: e, ...t }) {
|
|
2823
2842
|
return /* @__PURE__ */ v(h, {
|
|
2824
|
-
className:
|
|
2843
|
+
className: q("bg-muted -mx-1 h-px", e),
|
|
2825
2844
|
...t
|
|
2826
2845
|
});
|
|
2827
2846
|
}
|
|
2828
|
-
function
|
|
2847
|
+
function Fo({ className: e, ...t }) {
|
|
2829
2848
|
return /* @__PURE__ */ v(h, {
|
|
2830
|
-
className:
|
|
2849
|
+
className: q("flex flex-row flex-wrap gap-1", e),
|
|
2831
2850
|
...t
|
|
2832
2851
|
});
|
|
2833
2852
|
}
|
|
2834
|
-
function
|
|
2853
|
+
function Io({ className: e, showRemove: t, children: n, ...r }) {
|
|
2835
2854
|
return /* @__PURE__ */ y(h, {
|
|
2836
|
-
className:
|
|
2855
|
+
className: q("bg-secondary text-secondary-foreground flex flex-row items-center rounded-md px-2 py-1", e),
|
|
2837
2856
|
...r,
|
|
2838
|
-
children: [
|
|
2857
|
+
children: [K(n, Y, { className: "text-xs" }), t && /* @__PURE__ */ v(T, {
|
|
2839
2858
|
size: 12,
|
|
2840
2859
|
className: "ml-1 opacity-50"
|
|
2841
2860
|
})]
|
|
2842
2861
|
});
|
|
2843
2862
|
}
|
|
2844
|
-
function
|
|
2863
|
+
function Lo({ className: e, ...t }) {
|
|
2845
2864
|
return /* @__PURE__ */ v(p, {
|
|
2846
|
-
className:
|
|
2865
|
+
className: q("flex-1 bg-transparent px-2 py-1 outline-none", e),
|
|
2847
2866
|
...t
|
|
2848
2867
|
});
|
|
2849
2868
|
}
|
|
2850
|
-
function
|
|
2869
|
+
function Ro() {
|
|
2851
2870
|
return e.useRef(null);
|
|
2852
2871
|
}
|
|
2853
|
-
|
|
2854
|
-
function Ro({ className: e, containerClassName: t, ...n }) {
|
|
2855
|
-
return /* @__PURE__ */ v(h, {
|
|
2856
|
-
className: G("border-destructive/50 rounded-md border border-dashed p-4", t, e),
|
|
2857
|
-
...n,
|
|
2858
|
-
children: /* @__PURE__ */ v(f, {
|
|
2859
|
-
className: "text-destructive font-mono text-xs",
|
|
2860
|
-
children: "InputOTP (Not Implemented)"
|
|
2861
|
-
})
|
|
2862
|
-
});
|
|
2863
|
-
}
|
|
2864
|
-
function zo({ className: e, ...t }) {
|
|
2865
|
-
return /* @__PURE__ */ v(h, {
|
|
2866
|
-
className: e,
|
|
2867
|
-
...t
|
|
2868
|
-
});
|
|
2869
|
-
}
|
|
2870
|
-
function Bo({ className: e, index: t, ...n }) {
|
|
2871
|
-
return /* @__PURE__ */ v(h, {
|
|
2872
|
-
className: e,
|
|
2873
|
-
...n
|
|
2874
|
-
});
|
|
2875
|
-
}
|
|
2876
|
-
function Vo({ className: e, ...t }) {
|
|
2877
|
-
return /* @__PURE__ */ v(h, {
|
|
2878
|
-
className: e,
|
|
2879
|
-
...t
|
|
2880
|
-
});
|
|
2881
|
-
}
|
|
2882
|
-
// src/sidebar.tsx
|
|
2883
|
-
function Ho({ className: e, defaultOpen: t, open: n, onOpenChange: r, ...i }) {
|
|
2884
|
-
return /* @__PURE__ */ v(h, {
|
|
2885
|
-
className: e,
|
|
2886
|
-
...i
|
|
2887
|
-
});
|
|
2888
|
-
}
|
|
2889
|
-
function Uo({ className: e, side: t, variant: n, collapsible: r, ...i }) {
|
|
2890
|
-
return /* @__PURE__ */ v(h, {
|
|
2891
|
-
className: G("border-destructive/50 rounded-md border border-dashed p-4", e),
|
|
2892
|
-
...i,
|
|
2893
|
-
children: /* @__PURE__ */ v(f, {
|
|
2894
|
-
className: "text-destructive font-mono text-xs",
|
|
2895
|
-
children: "Sidebar (Not Implemented)"
|
|
2896
|
-
})
|
|
2897
|
-
});
|
|
2898
|
-
}
|
|
2899
|
-
function Wo({ className: e, ...t }) {
|
|
2900
|
-
return /* @__PURE__ */ v(l, {
|
|
2901
|
-
className: e,
|
|
2902
|
-
...t
|
|
2903
|
-
});
|
|
2904
|
-
}
|
|
2905
|
-
function Go({ className: e, ...t }) {
|
|
2906
|
-
return /* @__PURE__ */ v(h, {
|
|
2907
|
-
className: e,
|
|
2908
|
-
...t
|
|
2909
|
-
});
|
|
2910
|
-
}
|
|
2911
|
-
function Ko({ className: e, ...t }) {
|
|
2912
|
-
return /* @__PURE__ */ v(h, {
|
|
2913
|
-
className: e,
|
|
2914
|
-
...t
|
|
2915
|
-
});
|
|
2916
|
-
}
|
|
2917
|
-
function qo({ className: e, ...t }) {
|
|
2918
|
-
return /* @__PURE__ */ v(h, {
|
|
2919
|
-
className: e,
|
|
2920
|
-
...t
|
|
2921
|
-
});
|
|
2922
|
-
}
|
|
2923
|
-
function Jo({ className: e, ...t }) {
|
|
2924
|
-
return /* @__PURE__ */ v(h, {
|
|
2925
|
-
className: e,
|
|
2926
|
-
...t
|
|
2927
|
-
});
|
|
2928
|
-
}
|
|
2929
|
-
function Yo({ className: e, ...t }) {
|
|
2930
|
-
return /* @__PURE__ */ v(h, {
|
|
2931
|
-
className: e,
|
|
2932
|
-
...t
|
|
2933
|
-
});
|
|
2934
|
-
}
|
|
2935
|
-
function Xo({ className: e, ...t }) {
|
|
2936
|
-
return /* @__PURE__ */ v(h, {
|
|
2937
|
-
className: e,
|
|
2938
|
-
...t
|
|
2939
|
-
});
|
|
2940
|
-
}
|
|
2941
|
-
function Zo({ className: e, ...t }) {
|
|
2942
|
-
return /* @__PURE__ */ v(h, {
|
|
2943
|
-
className: e,
|
|
2944
|
-
...t
|
|
2945
|
-
});
|
|
2946
|
-
}
|
|
2947
|
-
function Qo({ className: e, ...t }) {
|
|
2948
|
-
return /* @__PURE__ */ v(h, {
|
|
2949
|
-
className: e,
|
|
2950
|
-
...t
|
|
2951
|
-
});
|
|
2952
|
-
}
|
|
2953
|
-
function $o({ className: e, asChild: t, ...n }) {
|
|
2954
|
-
return /* @__PURE__ */ v(h, {
|
|
2955
|
-
className: e,
|
|
2956
|
-
...n
|
|
2957
|
-
});
|
|
2958
|
-
}
|
|
2959
|
-
function es({ className: e, asChild: t, ...n }) {
|
|
2960
|
-
return /* @__PURE__ */ v(l, {
|
|
2961
|
-
className: e,
|
|
2962
|
-
...n
|
|
2963
|
-
});
|
|
2964
|
-
}
|
|
2965
|
-
function ts({ className: e, ...t }) {
|
|
2966
|
-
return /* @__PURE__ */ v(h, {
|
|
2967
|
-
className: e,
|
|
2968
|
-
...t
|
|
2969
|
-
});
|
|
2970
|
-
}
|
|
2971
|
-
function ns({ className: e, ...t }) {
|
|
2972
|
-
return /* @__PURE__ */ v(h, {
|
|
2973
|
-
className: e,
|
|
2974
|
-
...t
|
|
2975
|
-
});
|
|
2976
|
-
}
|
|
2977
|
-
function rs({ className: e, ...t }) {
|
|
2978
|
-
return /* @__PURE__ */ v(h, {
|
|
2979
|
-
className: e,
|
|
2980
|
-
...t
|
|
2981
|
-
});
|
|
2982
|
-
}
|
|
2983
|
-
function is({ className: e, asChild: t, isActive: n, variant: r, size: i, tooltip: a, ...o }) {
|
|
2984
|
-
return /* @__PURE__ */ v(l, {
|
|
2985
|
-
className: e,
|
|
2986
|
-
...o
|
|
2987
|
-
});
|
|
2988
|
-
}
|
|
2989
|
-
function as({ className: e, asChild: t, showOnHover: n, ...r }) {
|
|
2990
|
-
return /* @__PURE__ */ v(l, {
|
|
2991
|
-
className: e,
|
|
2992
|
-
...r
|
|
2993
|
-
});
|
|
2994
|
-
}
|
|
2995
|
-
function os({ className: e, ...t }) {
|
|
2996
|
-
return /* @__PURE__ */ v(h, {
|
|
2997
|
-
className: e,
|
|
2998
|
-
...t
|
|
2999
|
-
});
|
|
3000
|
-
}
|
|
3001
|
-
function ss({ className: e, showIcon: t, ...n }) {
|
|
3002
|
-
return /* @__PURE__ */ v(h, {
|
|
3003
|
-
className: e,
|
|
3004
|
-
...n
|
|
3005
|
-
});
|
|
3006
|
-
}
|
|
3007
|
-
function cs({ className: e, ...t }) {
|
|
3008
|
-
return /* @__PURE__ */ v(h, {
|
|
3009
|
-
className: e,
|
|
3010
|
-
...t
|
|
3011
|
-
});
|
|
3012
|
-
}
|
|
3013
|
-
function ls({ className: e, ...t }) {
|
|
3014
|
-
return /* @__PURE__ */ v(h, {
|
|
3015
|
-
className: e,
|
|
3016
|
-
...t
|
|
3017
|
-
});
|
|
3018
|
-
}
|
|
3019
|
-
function us({ className: e, asChild: t, size: n, isActive: r, ...i }) {
|
|
3020
|
-
return /* @__PURE__ */ v(l, {
|
|
3021
|
-
className: e,
|
|
3022
|
-
...i
|
|
3023
|
-
});
|
|
3024
|
-
}
|
|
3025
|
-
function ds() {
|
|
3026
|
-
return {
|
|
3027
|
-
state: "expanded",
|
|
3028
|
-
open: !0,
|
|
3029
|
-
setOpen: () => {},
|
|
3030
|
-
openMobile: !1,
|
|
3031
|
-
setOpenMobile: () => {},
|
|
3032
|
-
isMobile: !1,
|
|
3033
|
-
toggleSidebar: () => {}
|
|
3034
|
-
};
|
|
3035
|
-
}
|
|
3036
|
-
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 };
|