@togo-framework/ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +5 -0
- package/README.md +45 -0
- package/dist/chunk-KD4MPGYQ.js +211 -0
- package/dist/chunk-KD4MPGYQ.js.map +1 -0
- package/dist/chunk-XXP2ZYPY.js +2192 -0
- package/dist/chunk-XXP2ZYPY.js.map +1 -0
- package/dist/index.d.ts +3872 -0
- package/dist/index.js +16145 -0
- package/dist/index.js.map +1 -0
- package/dist/shadcn.css +527 -0
- package/dist/shadcn.d.ts +757 -0
- package/dist/shadcn.js +505 -0
- package/dist/shadcn.js.map +1 -0
- package/dist/styles.css +527 -0
- package/dist/theme/index.d.ts +184 -0
- package/dist/theme/index.js +36 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/tokens.primitive.css +63 -0
- package/dist/theme/tokens.semantic.css +45 -0
- package/package.json +123 -0
- package/public/fonts/ibm-plex-sans/ibm-plex-sans.woff2 +0 -0
- package/public/fonts/jetbrains-mono/jetbrains-mono.woff2 +0 -0
- package/public/fonts/lusail/Lusail-Bold.woff2 +0 -0
- package/public/fonts/lusail/Lusail-Light.woff2 +0 -0
- package/public/fonts/lusail/Lusail-Medium.woff2 +0 -0
- package/public/fonts/lusail/Lusail-Regular.woff2 +0 -0
- package/public/fonts/sora/sora.woff2 +0 -0
|
@@ -0,0 +1,2192 @@
|
|
|
1
|
+
// src/components/ui/accordion.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
4
|
+
import { ChevronDown } from "lucide-react";
|
|
5
|
+
|
|
6
|
+
// src/lib/utils.ts
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
|
+
import { twMerge } from "tailwind-merge";
|
|
9
|
+
function cn(...inputs) {
|
|
10
|
+
return twMerge(clsx(inputs));
|
|
11
|
+
}
|
|
12
|
+
function formatRelativeTime(isoString) {
|
|
13
|
+
const diff = Date.now() - new Date(isoString).getTime();
|
|
14
|
+
const mins = Math.floor(diff / 6e4);
|
|
15
|
+
if (mins < 1) return "just now";
|
|
16
|
+
if (mins < 60) return `${mins}m ago`;
|
|
17
|
+
const hours = Math.floor(mins / 60);
|
|
18
|
+
if (hours < 24) return `${hours}h ago`;
|
|
19
|
+
return `${Math.floor(hours / 24)}d ago`;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// src/components/ui/accordion.tsx
|
|
23
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
24
|
+
var Accordion = AccordionPrimitive.Root;
|
|
25
|
+
var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Item, { ref, className: cn("border-b", className), ...props }));
|
|
26
|
+
AccordionItem.displayName = "AccordionItem";
|
|
27
|
+
var AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
28
|
+
AccordionPrimitive.Trigger,
|
|
29
|
+
{
|
|
30
|
+
ref,
|
|
31
|
+
className: cn(
|
|
32
|
+
"flex flex-1 items-center justify-between rounded-sm py-4 font-medium transition-all duration-fast ease-standard hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 [&[data-state=open]>svg]:rotate-180",
|
|
33
|
+
className
|
|
34
|
+
),
|
|
35
|
+
...props,
|
|
36
|
+
children: [
|
|
37
|
+
children,
|
|
38
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-base ease-standard" })
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
) }));
|
|
42
|
+
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
43
|
+
var AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
44
|
+
AccordionPrimitive.Content,
|
|
45
|
+
{
|
|
46
|
+
ref,
|
|
47
|
+
className: "overflow-hidden text-sm transition-all duration-fast ease-standard data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
48
|
+
...props,
|
|
49
|
+
children: /* @__PURE__ */ jsx("div", { className: cn("pb-4 pt-0", className), children })
|
|
50
|
+
}
|
|
51
|
+
));
|
|
52
|
+
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
53
|
+
|
|
54
|
+
// src/components/ui/alert.tsx
|
|
55
|
+
import * as React2 from "react";
|
|
56
|
+
import { cva } from "class-variance-authority";
|
|
57
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
58
|
+
var alertVariants = cva(
|
|
59
|
+
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 rtl:[&>svg~*]:pl-0 rtl:[&>svg~*]:pr-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 rtl:[&>svg]:left-auto rtl:[&>svg]:right-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
60
|
+
{
|
|
61
|
+
variants: {
|
|
62
|
+
variant: {
|
|
63
|
+
default: "bg-background text-foreground",
|
|
64
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
defaultVariants: {
|
|
68
|
+
variant: "default"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
var Alert = React2.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx2("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
73
|
+
Alert.displayName = "Alert";
|
|
74
|
+
var AlertTitle = React2.forwardRef(
|
|
75
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx2("h5", { ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
76
|
+
);
|
|
77
|
+
AlertTitle.displayName = "AlertTitle";
|
|
78
|
+
var AlertDescription = React2.forwardRef(
|
|
79
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx2("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
|
|
80
|
+
);
|
|
81
|
+
AlertDescription.displayName = "AlertDescription";
|
|
82
|
+
|
|
83
|
+
// src/components/ui/alert-dialog.tsx
|
|
84
|
+
import * as React4 from "react";
|
|
85
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
86
|
+
|
|
87
|
+
// src/components/ui/button.tsx
|
|
88
|
+
import * as React3 from "react";
|
|
89
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
90
|
+
import { cva as cva2 } from "class-variance-authority";
|
|
91
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
92
|
+
var buttonVariants = cva2(
|
|
93
|
+
// Prism v2: token-driven motion (duration-fast/ease-standard), tactile press
|
|
94
|
+
// feedback (active:scale), elevation on solid variants, token focus ring.
|
|
95
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-fast ease-standard active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
96
|
+
{
|
|
97
|
+
variants: {
|
|
98
|
+
variant: {
|
|
99
|
+
default: "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90 hover:shadow-md",
|
|
100
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90 hover:shadow-md",
|
|
101
|
+
outline: "border border-input bg-background shadow-xs hover:bg-primary/10 hover:text-primary hover:border-primary/40",
|
|
102
|
+
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
103
|
+
ghost: "hover:bg-primary/10 hover:text-primary",
|
|
104
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
105
|
+
},
|
|
106
|
+
size: {
|
|
107
|
+
default: "h-10 px-4 py-2",
|
|
108
|
+
sm: "h-9 rounded-md px-3",
|
|
109
|
+
lg: "h-11 rounded-md px-8",
|
|
110
|
+
icon: "h-10 w-10"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
defaultVariants: {
|
|
114
|
+
variant: "default",
|
|
115
|
+
size: "default"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
var Button = React3.forwardRef(
|
|
120
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
121
|
+
const Comp = asChild ? Slot : "button";
|
|
122
|
+
return /* @__PURE__ */ jsx3(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
Button.displayName = "Button";
|
|
126
|
+
|
|
127
|
+
// src/components/ui/alert-dialog.tsx
|
|
128
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
129
|
+
var AlertDialog = AlertDialogPrimitive.Root;
|
|
130
|
+
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
131
|
+
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
132
|
+
var AlertDialogOverlay = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
|
|
133
|
+
AlertDialogPrimitive.Overlay,
|
|
134
|
+
{
|
|
135
|
+
className: cn(
|
|
136
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
137
|
+
className
|
|
138
|
+
),
|
|
139
|
+
...props,
|
|
140
|
+
ref
|
|
141
|
+
}
|
|
142
|
+
));
|
|
143
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
144
|
+
var AlertDialogContent = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs2(AlertDialogPortal, { children: [
|
|
145
|
+
/* @__PURE__ */ jsx4(AlertDialogOverlay, {}),
|
|
146
|
+
/* @__PURE__ */ jsx4(
|
|
147
|
+
AlertDialogPrimitive.Content,
|
|
148
|
+
{
|
|
149
|
+
ref,
|
|
150
|
+
className: cn(
|
|
151
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
152
|
+
className
|
|
153
|
+
),
|
|
154
|
+
...props
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
] }));
|
|
158
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
159
|
+
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx4("div", { className: cn("flex flex-col space-y-2 text-center sm:text-start", className), ...props });
|
|
160
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
161
|
+
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx4("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
162
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
163
|
+
var AlertDialogTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(AlertDialogPrimitive.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
|
|
164
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
165
|
+
var AlertDialogDescription = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(AlertDialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
166
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
167
|
+
var AlertDialogAction = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
|
|
168
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
169
|
+
var AlertDialogCancel = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
|
|
170
|
+
AlertDialogPrimitive.Cancel,
|
|
171
|
+
{
|
|
172
|
+
ref,
|
|
173
|
+
className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className),
|
|
174
|
+
...props
|
|
175
|
+
}
|
|
176
|
+
));
|
|
177
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
178
|
+
|
|
179
|
+
// src/components/ui/aspect-ratio.tsx
|
|
180
|
+
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
181
|
+
var AspectRatio = AspectRatioPrimitive.Root;
|
|
182
|
+
|
|
183
|
+
// src/components/ui/avatar.tsx
|
|
184
|
+
import * as React5 from "react";
|
|
185
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
186
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
187
|
+
var Avatar = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
188
|
+
AvatarPrimitive.Root,
|
|
189
|
+
{
|
|
190
|
+
ref,
|
|
191
|
+
className: cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className),
|
|
192
|
+
...props
|
|
193
|
+
}
|
|
194
|
+
));
|
|
195
|
+
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
196
|
+
var AvatarImage = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(AvatarPrimitive.Image, { ref, className: cn("aspect-square h-full w-full", className), ...props }));
|
|
197
|
+
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
198
|
+
var AvatarFallback = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
199
|
+
AvatarPrimitive.Fallback,
|
|
200
|
+
{
|
|
201
|
+
ref,
|
|
202
|
+
className: cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className),
|
|
203
|
+
...props
|
|
204
|
+
}
|
|
205
|
+
));
|
|
206
|
+
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
207
|
+
|
|
208
|
+
// src/components/ui/badge.tsx
|
|
209
|
+
import { cva as cva3 } from "class-variance-authority";
|
|
210
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
211
|
+
var badgeVariants = cva3(
|
|
212
|
+
"inline-flex items-center gap-1 whitespace-nowrap rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-all duration-fast ease-standard focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 [&_svg]:size-3 [&_svg]:shrink-0",
|
|
213
|
+
{
|
|
214
|
+
variants: {
|
|
215
|
+
variant: {
|
|
216
|
+
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
217
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
218
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
219
|
+
outline: "text-foreground"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
defaultVariants: {
|
|
223
|
+
variant: "default"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
var Badge = ({ className, variant, ...props }) => {
|
|
228
|
+
return /* @__PURE__ */ jsx6("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
229
|
+
};
|
|
230
|
+
Badge.displayName = "Badge";
|
|
231
|
+
|
|
232
|
+
// src/components/ui/breadcrumb.tsx
|
|
233
|
+
import * as React6 from "react";
|
|
234
|
+
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
235
|
+
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
236
|
+
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
237
|
+
var Breadcrumb = React6.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx7("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
238
|
+
Breadcrumb.displayName = "Breadcrumb";
|
|
239
|
+
var BreadcrumbList = React6.forwardRef(
|
|
240
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx7("ol", { ref, className: cn("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", className), ...props })
|
|
241
|
+
);
|
|
242
|
+
BreadcrumbList.displayName = "BreadcrumbList";
|
|
243
|
+
var BreadcrumbItem = React6.forwardRef(
|
|
244
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx7("li", { ref, className: cn("inline-flex items-center gap-1.5", className), ...props })
|
|
245
|
+
);
|
|
246
|
+
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
247
|
+
var BreadcrumbLink = React6.forwardRef(
|
|
248
|
+
({ asChild, className, ...props }, ref) => {
|
|
249
|
+
const Comp = asChild ? Slot2 : "a";
|
|
250
|
+
return /* @__PURE__ */ jsx7(Comp, { ref, className: cn("rounded-sm transition-colors duration-fast ease-standard hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", className), ...props });
|
|
251
|
+
}
|
|
252
|
+
);
|
|
253
|
+
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
254
|
+
var BreadcrumbPage = React6.forwardRef(
|
|
255
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx7("span", { ref, role: "link", "aria-disabled": "true", "aria-current": "page", className: cn("font-normal text-foreground", className), ...props })
|
|
256
|
+
);
|
|
257
|
+
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
258
|
+
var BreadcrumbSeparator = ({ children, className, ...props }) => /* @__PURE__ */ jsx7("li", { role: "presentation", "aria-hidden": "true", className: cn("[&>svg]:size-3.5 [&>svg]:rtl:rotate-180", className), ...props, children: children ?? /* @__PURE__ */ jsx7(ChevronRight, {}) });
|
|
259
|
+
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
260
|
+
var BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs3("span", { role: "presentation", "aria-hidden": "true", className: cn("flex h-9 w-9 items-center justify-center", className), ...props, children: [
|
|
261
|
+
/* @__PURE__ */ jsx7(MoreHorizontal, { className: "h-4 w-4" }),
|
|
262
|
+
/* @__PURE__ */ jsx7("span", { className: "sr-only", children: "More" })
|
|
263
|
+
] });
|
|
264
|
+
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
|
265
|
+
|
|
266
|
+
// src/components/ui/calendar.tsx
|
|
267
|
+
import { ChevronLeft, ChevronRight as ChevronRight2 } from "lucide-react";
|
|
268
|
+
import { DayPicker } from "react-day-picker";
|
|
269
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
270
|
+
var Calendar = ({ className, classNames, showOutsideDays = true, ...props }) => {
|
|
271
|
+
return /* @__PURE__ */ jsx8(
|
|
272
|
+
DayPicker,
|
|
273
|
+
{
|
|
274
|
+
showOutsideDays,
|
|
275
|
+
className: cn("p-3", className),
|
|
276
|
+
classNames: {
|
|
277
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
278
|
+
month: "space-y-4",
|
|
279
|
+
caption: "flex justify-center pt-1 relative items-center",
|
|
280
|
+
caption_label: "text-sm font-medium",
|
|
281
|
+
nav: "space-x-1 flex items-center",
|
|
282
|
+
nav_button: cn(
|
|
283
|
+
buttonVariants({ variant: "outline" }),
|
|
284
|
+
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
285
|
+
),
|
|
286
|
+
nav_button_previous: "absolute left-1 rtl:left-auto rtl:right-1",
|
|
287
|
+
nav_button_next: "absolute right-1 rtl:right-auto rtl:left-1",
|
|
288
|
+
table: "w-full border-collapse space-y-1",
|
|
289
|
+
head_row: "flex",
|
|
290
|
+
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
291
|
+
row: "flex w-full mt-2",
|
|
292
|
+
cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md rtl:[&:has([aria-selected].day-range-end)]:rounded-r-none rtl:[&:has([aria-selected].day-range-end)]:rounded-l-md [&:has([aria-selected].day-outside)]:bg-primary/10 [&:has([aria-selected])]:bg-primary/10 first:[&:has([aria-selected])]:rounded-l-md rtl:first:[&:has([aria-selected])]:rounded-l-none rtl:first:[&:has([aria-selected])]:rounded-r-md last:[&:has([aria-selected])]:rounded-r-md rtl:last:[&:has([aria-selected])]:rounded-r-none rtl:last:[&:has([aria-selected])]:rounded-l-md focus-within:relative focus-within:z-20",
|
|
293
|
+
day: cn(buttonVariants({ variant: "ghost" }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
|
|
294
|
+
day_range_end: "day-range-end",
|
|
295
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
296
|
+
day_today: "bg-primary/10 text-accent-foreground",
|
|
297
|
+
day_outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-primary/10 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
298
|
+
day_disabled: "text-muted-foreground opacity-50",
|
|
299
|
+
day_range_middle: "aria-selected:bg-primary/10 aria-selected:text-accent-foreground",
|
|
300
|
+
day_hidden: "invisible",
|
|
301
|
+
...classNames
|
|
302
|
+
},
|
|
303
|
+
components: {
|
|
304
|
+
IconLeft: ({ ..._props }) => /* @__PURE__ */ jsx8(ChevronLeft, { className: "h-4 w-4 rtl:rotate-180" }),
|
|
305
|
+
IconRight: ({ ..._props }) => /* @__PURE__ */ jsx8(ChevronRight2, { className: "h-4 w-4 rtl:rotate-180" })
|
|
306
|
+
},
|
|
307
|
+
...props
|
|
308
|
+
}
|
|
309
|
+
);
|
|
310
|
+
};
|
|
311
|
+
Calendar.displayName = "Calendar";
|
|
312
|
+
|
|
313
|
+
// src/components/ui/card.tsx
|
|
314
|
+
import * as React7 from "react";
|
|
315
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
316
|
+
var Card = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, className: cn("rounded-lg border bg-card text-card-foreground shadow-sm transition-shadow duration-base ease-standard", className), ...props }));
|
|
317
|
+
Card.displayName = "Card";
|
|
318
|
+
var CardHeader = React7.forwardRef(
|
|
319
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })
|
|
320
|
+
);
|
|
321
|
+
CardHeader.displayName = "CardHeader";
|
|
322
|
+
var CardTitle = React7.forwardRef(
|
|
323
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx9("h3", { ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props })
|
|
324
|
+
);
|
|
325
|
+
CardTitle.displayName = "CardTitle";
|
|
326
|
+
var CardDescription = React7.forwardRef(
|
|
327
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx9("p", { ref, className: cn("text-sm text-muted-foreground", className), ...props })
|
|
328
|
+
);
|
|
329
|
+
CardDescription.displayName = "CardDescription";
|
|
330
|
+
var CardContent = React7.forwardRef(
|
|
331
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, className: cn("p-6 pt-0", className), ...props })
|
|
332
|
+
);
|
|
333
|
+
CardContent.displayName = "CardContent";
|
|
334
|
+
var CardFooter = React7.forwardRef(
|
|
335
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx9("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props })
|
|
336
|
+
);
|
|
337
|
+
CardFooter.displayName = "CardFooter";
|
|
338
|
+
|
|
339
|
+
// src/components/ui/carousel.tsx
|
|
340
|
+
import * as React8 from "react";
|
|
341
|
+
import useEmblaCarousel from "embla-carousel-react";
|
|
342
|
+
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
343
|
+
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
344
|
+
var CarouselContext = React8.createContext(null);
|
|
345
|
+
var useCarousel = () => {
|
|
346
|
+
const context = React8.useContext(CarouselContext);
|
|
347
|
+
if (!context) throw new Error("useCarousel must be used within a <Carousel />");
|
|
348
|
+
return context;
|
|
349
|
+
};
|
|
350
|
+
var Carousel = React8.forwardRef(
|
|
351
|
+
({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }, ref) => {
|
|
352
|
+
const [carouselRef, api] = useEmblaCarousel({ ...opts, axis: orientation === "horizontal" ? "x" : "y" }, plugins);
|
|
353
|
+
const [canScrollPrev, setCanScrollPrev] = React8.useState(false);
|
|
354
|
+
const [canScrollNext, setCanScrollNext] = React8.useState(false);
|
|
355
|
+
const onSelect = React8.useCallback((api2) => {
|
|
356
|
+
if (!api2) return;
|
|
357
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
358
|
+
setCanScrollNext(api2.canScrollNext());
|
|
359
|
+
}, []);
|
|
360
|
+
const scrollPrev = React8.useCallback(() => {
|
|
361
|
+
api?.scrollPrev();
|
|
362
|
+
}, [api]);
|
|
363
|
+
const scrollNext = React8.useCallback(() => {
|
|
364
|
+
api?.scrollNext();
|
|
365
|
+
}, [api]);
|
|
366
|
+
const handleKeyDown = React8.useCallback(
|
|
367
|
+
(event) => {
|
|
368
|
+
if (event.key === "ArrowLeft") {
|
|
369
|
+
event.preventDefault();
|
|
370
|
+
scrollPrev();
|
|
371
|
+
} else if (event.key === "ArrowRight") {
|
|
372
|
+
event.preventDefault();
|
|
373
|
+
scrollNext();
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
[scrollPrev, scrollNext]
|
|
377
|
+
);
|
|
378
|
+
React8.useEffect(() => {
|
|
379
|
+
if (!api || !setApi) return;
|
|
380
|
+
setApi(api);
|
|
381
|
+
}, [api, setApi]);
|
|
382
|
+
React8.useEffect(() => {
|
|
383
|
+
if (!api) return;
|
|
384
|
+
onSelect(api);
|
|
385
|
+
api.on("reInit", onSelect);
|
|
386
|
+
api.on("select", onSelect);
|
|
387
|
+
return () => {
|
|
388
|
+
api?.off("select", onSelect);
|
|
389
|
+
};
|
|
390
|
+
}, [api, onSelect]);
|
|
391
|
+
return /* @__PURE__ */ jsx10(
|
|
392
|
+
CarouselContext.Provider,
|
|
393
|
+
{
|
|
394
|
+
value: { carouselRef, api, opts, orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"), scrollPrev, scrollNext, canScrollPrev, canScrollNext },
|
|
395
|
+
children: /* @__PURE__ */ jsx10("div", { ref, onKeyDownCapture: handleKeyDown, className: cn("relative", className), role: "region", "aria-roledescription": "carousel", ...props, children })
|
|
396
|
+
}
|
|
397
|
+
);
|
|
398
|
+
}
|
|
399
|
+
);
|
|
400
|
+
Carousel.displayName = "Carousel";
|
|
401
|
+
var CarouselContent = React8.forwardRef(
|
|
402
|
+
({ className, ...props }, ref) => {
|
|
403
|
+
const { carouselRef, orientation } = useCarousel();
|
|
404
|
+
return /* @__PURE__ */ jsx10("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx10("div", { ref, className: cn("flex", orientation === "horizontal" ? "-ms-4" : "-mt-4 flex-col", className), ...props }) });
|
|
405
|
+
}
|
|
406
|
+
);
|
|
407
|
+
CarouselContent.displayName = "CarouselContent";
|
|
408
|
+
var CarouselItem = React8.forwardRef(
|
|
409
|
+
({ className, ...props }, ref) => {
|
|
410
|
+
const { orientation } = useCarousel();
|
|
411
|
+
return /* @__PURE__ */ jsx10("div", { ref, role: "group", "aria-roledescription": "slide", className: cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "ps-4" : "pt-4", className), ...props });
|
|
412
|
+
}
|
|
413
|
+
);
|
|
414
|
+
CarouselItem.displayName = "CarouselItem";
|
|
415
|
+
var CarouselPrevious = React8.forwardRef(
|
|
416
|
+
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
417
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
418
|
+
return /* @__PURE__ */ jsxs4(Button, { ref, variant, size, className: cn("absolute h-8 w-8 rounded-full", orientation === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className), disabled: !canScrollPrev, onClick: scrollPrev, ...props, children: [
|
|
419
|
+
/* @__PURE__ */ jsx10(ArrowLeft, { className: "h-4 w-4" }),
|
|
420
|
+
/* @__PURE__ */ jsx10("span", { className: "sr-only", children: "Previous slide" })
|
|
421
|
+
] });
|
|
422
|
+
}
|
|
423
|
+
);
|
|
424
|
+
CarouselPrevious.displayName = "CarouselPrevious";
|
|
425
|
+
var CarouselNext = React8.forwardRef(
|
|
426
|
+
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
427
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
428
|
+
return /* @__PURE__ */ jsxs4(Button, { ref, variant, size, className: cn("absolute h-8 w-8 rounded-full", orientation === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className), disabled: !canScrollNext, onClick: scrollNext, ...props, children: [
|
|
429
|
+
/* @__PURE__ */ jsx10(ArrowRight, { className: "h-4 w-4" }),
|
|
430
|
+
/* @__PURE__ */ jsx10("span", { className: "sr-only", children: "Next slide" })
|
|
431
|
+
] });
|
|
432
|
+
}
|
|
433
|
+
);
|
|
434
|
+
CarouselNext.displayName = "CarouselNext";
|
|
435
|
+
|
|
436
|
+
// src/components/ui/chart.tsx
|
|
437
|
+
import * as React9 from "react";
|
|
438
|
+
import * as RechartsPrimitive from "recharts";
|
|
439
|
+
import { Fragment, jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
440
|
+
var THEMES = { light: "", dark: ".dark" };
|
|
441
|
+
var ChartContext = React9.createContext(null);
|
|
442
|
+
var useChart = () => {
|
|
443
|
+
const context = React9.useContext(ChartContext);
|
|
444
|
+
if (!context) throw new Error("useChart must be used within a <ChartContainer />");
|
|
445
|
+
return context;
|
|
446
|
+
};
|
|
447
|
+
var ChartContainer = React9.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
448
|
+
const uniqueId = React9.useId();
|
|
449
|
+
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
450
|
+
return /* @__PURE__ */ jsx11(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs5(
|
|
451
|
+
"div",
|
|
452
|
+
{
|
|
453
|
+
"data-chart": chartId,
|
|
454
|
+
ref,
|
|
455
|
+
className: cn("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none", className),
|
|
456
|
+
...props,
|
|
457
|
+
children: [
|
|
458
|
+
/* @__PURE__ */ jsx11(ChartStyle, { id: chartId, config }),
|
|
459
|
+
/* @__PURE__ */ jsx11(RechartsPrimitive.ResponsiveContainer, { children })
|
|
460
|
+
]
|
|
461
|
+
}
|
|
462
|
+
) });
|
|
463
|
+
});
|
|
464
|
+
ChartContainer.displayName = "Chart";
|
|
465
|
+
var ChartStyle = ({ id, config }) => {
|
|
466
|
+
const colorConfig = Object.entries(config).filter(([, c]) => c.theme || c.color);
|
|
467
|
+
if (!colorConfig.length) return null;
|
|
468
|
+
return /* @__PURE__ */ jsx11("style", { dangerouslySetInnerHTML: {
|
|
469
|
+
__html: Object.entries(THEMES).map(
|
|
470
|
+
([theme, prefix]) => `
|
|
471
|
+
${prefix} [data-chart=${id}] {
|
|
472
|
+
${colorConfig.map(([key, itemConfig]) => {
|
|
473
|
+
const color = itemConfig.theme?.[theme] || itemConfig.color;
|
|
474
|
+
return color ? ` --color-${key}: ${color};` : null;
|
|
475
|
+
}).join("\n")}
|
|
476
|
+
}`
|
|
477
|
+
).join("\n")
|
|
478
|
+
} });
|
|
479
|
+
};
|
|
480
|
+
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
481
|
+
var ChartTooltipContent = React9.forwardRef(({ active, payload, className, indicator = "dot", hideLabel = false, hideIndicator = false, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey }, ref) => {
|
|
482
|
+
const { config } = useChart();
|
|
483
|
+
const tooltipLabel = React9.useMemo(() => {
|
|
484
|
+
if (hideLabel || !payload?.length) return null;
|
|
485
|
+
const [item] = payload;
|
|
486
|
+
const key = `${labelKey || item.dataKey || item.name || "value"}`;
|
|
487
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
488
|
+
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
489
|
+
if (labelFormatter) return /* @__PURE__ */ jsx11("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) });
|
|
490
|
+
if (!value) return null;
|
|
491
|
+
return /* @__PURE__ */ jsx11("div", { className: cn("font-medium", labelClassName), children: value });
|
|
492
|
+
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
493
|
+
if (!active || !payload?.length) return null;
|
|
494
|
+
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
495
|
+
return /* @__PURE__ */ jsxs5("div", { ref, className: cn("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", className), children: [
|
|
496
|
+
!nestLabel ? tooltipLabel : null,
|
|
497
|
+
/* @__PURE__ */ jsx11("div", { className: "grid gap-1.5", children: payload.map((item, index) => {
|
|
498
|
+
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
499
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
500
|
+
const indicatorColor = color || item.payload.fill || item.color;
|
|
501
|
+
return /* @__PURE__ */ jsx11("div", { className: cn("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", indicator === "dot" && "items-center"), children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
502
|
+
itemConfig?.icon ? /* @__PURE__ */ jsx11(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx11("div", { className: cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", { "h-2.5 w-2.5": indicator === "dot", "w-1": indicator === "line", "w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed", "my-0.5": nestLabel && indicator === "dashed" }), style: { "--color-bg": indicatorColor, "--color-border": indicatorColor } }),
|
|
503
|
+
/* @__PURE__ */ jsxs5("div", { className: cn("flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"), children: [
|
|
504
|
+
/* @__PURE__ */ jsxs5("div", { className: "grid gap-1.5", children: [
|
|
505
|
+
nestLabel ? tooltipLabel : null,
|
|
506
|
+
/* @__PURE__ */ jsx11("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name })
|
|
507
|
+
] }),
|
|
508
|
+
item.value && /* @__PURE__ */ jsx11("span", { className: "font-mono font-medium tabular-nums text-foreground", children: item.value.toLocaleString() })
|
|
509
|
+
] })
|
|
510
|
+
] }) }, item.dataKey);
|
|
511
|
+
}) })
|
|
512
|
+
] });
|
|
513
|
+
});
|
|
514
|
+
ChartTooltipContent.displayName = "ChartTooltip";
|
|
515
|
+
var ChartLegend = RechartsPrimitive.Legend;
|
|
516
|
+
var ChartLegendContent = React9.forwardRef(({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
517
|
+
const { config } = useChart();
|
|
518
|
+
if (!payload?.length) return null;
|
|
519
|
+
return /* @__PURE__ */ jsx11("div", { ref, className: cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.map((item) => {
|
|
520
|
+
const key = `${nameKey || item.dataKey || "value"}`;
|
|
521
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
522
|
+
return /* @__PURE__ */ jsxs5("div", { className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"), children: [
|
|
523
|
+
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx11(itemConfig.icon, {}) : /* @__PURE__ */ jsx11("div", { className: "h-2 w-2 shrink-0 rounded-[2px]", style: { backgroundColor: item.color } }),
|
|
524
|
+
itemConfig?.label
|
|
525
|
+
] }, item.value);
|
|
526
|
+
}) });
|
|
527
|
+
});
|
|
528
|
+
ChartLegendContent.displayName = "ChartLegend";
|
|
529
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
530
|
+
if (typeof payload !== "object" || payload === null) return void 0;
|
|
531
|
+
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
532
|
+
let configLabelKey = key;
|
|
533
|
+
if (key in payload && typeof payload[key] === "string") {
|
|
534
|
+
configLabelKey = payload[key];
|
|
535
|
+
} else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
|
|
536
|
+
configLabelKey = payloadPayload[key];
|
|
537
|
+
}
|
|
538
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
// src/components/ui/checkbox.tsx
|
|
542
|
+
import * as React10 from "react";
|
|
543
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
544
|
+
import { Check } from "lucide-react";
|
|
545
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
546
|
+
var Checkbox = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
547
|
+
CheckboxPrimitive.Root,
|
|
548
|
+
{
|
|
549
|
+
ref,
|
|
550
|
+
className: cn(
|
|
551
|
+
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background transition-all duration-fast ease-standard hover:border-ring/50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
552
|
+
className
|
|
553
|
+
),
|
|
554
|
+
...props,
|
|
555
|
+
children: /* @__PURE__ */ jsx12(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: /* @__PURE__ */ jsx12(Check, { className: "h-4 w-4 transition-transform duration-fast ease-standard" }) })
|
|
556
|
+
}
|
|
557
|
+
));
|
|
558
|
+
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
559
|
+
|
|
560
|
+
// src/components/ui/collapsible.tsx
|
|
561
|
+
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
562
|
+
var Collapsible = CollapsiblePrimitive.Root;
|
|
563
|
+
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
564
|
+
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
565
|
+
|
|
566
|
+
// src/components/ui/command.tsx
|
|
567
|
+
import * as React12 from "react";
|
|
568
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
569
|
+
import { Search } from "lucide-react";
|
|
570
|
+
|
|
571
|
+
// src/components/ui/dialog.tsx
|
|
572
|
+
import * as React11 from "react";
|
|
573
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
574
|
+
import { X } from "lucide-react";
|
|
575
|
+
import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
576
|
+
var Dialog = DialogPrimitive.Root;
|
|
577
|
+
var DialogTrigger = DialogPrimitive.Trigger;
|
|
578
|
+
var DialogPortal = DialogPrimitive.Portal;
|
|
579
|
+
var DialogClose = DialogPrimitive.Close;
|
|
580
|
+
var DialogOverlay = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
581
|
+
DialogPrimitive.Overlay,
|
|
582
|
+
{
|
|
583
|
+
ref,
|
|
584
|
+
className: cn(
|
|
585
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
586
|
+
className
|
|
587
|
+
),
|
|
588
|
+
...props
|
|
589
|
+
}
|
|
590
|
+
));
|
|
591
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
592
|
+
var DialogContent = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(DialogPortal, { children: [
|
|
593
|
+
/* @__PURE__ */ jsx13(DialogOverlay, {}),
|
|
594
|
+
/* @__PURE__ */ jsxs6(
|
|
595
|
+
DialogPrimitive.Content,
|
|
596
|
+
{
|
|
597
|
+
ref,
|
|
598
|
+
className: cn(
|
|
599
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
600
|
+
className
|
|
601
|
+
),
|
|
602
|
+
...props,
|
|
603
|
+
children: [
|
|
604
|
+
children,
|
|
605
|
+
/* @__PURE__ */ jsxs6(DialogPrimitive.Close, { className: "absolute right-4 rtl:right-auto rtl:left-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity duration-fast ease-standard data-[state=open]:bg-primary/10 data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
606
|
+
/* @__PURE__ */ jsx13(X, { className: "h-4 w-4" }),
|
|
607
|
+
/* @__PURE__ */ jsx13("span", { className: "sr-only", children: "Close" })
|
|
608
|
+
] })
|
|
609
|
+
]
|
|
610
|
+
}
|
|
611
|
+
)
|
|
612
|
+
] }));
|
|
613
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
614
|
+
var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx13("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-start", className), ...props });
|
|
615
|
+
DialogHeader.displayName = "DialogHeader";
|
|
616
|
+
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx13("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
617
|
+
DialogFooter.displayName = "DialogFooter";
|
|
618
|
+
var DialogTitle = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
619
|
+
DialogPrimitive.Title,
|
|
620
|
+
{
|
|
621
|
+
ref,
|
|
622
|
+
className: cn("text-lg font-semibold leading-none tracking-tight", className),
|
|
623
|
+
...props
|
|
624
|
+
}
|
|
625
|
+
));
|
|
626
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
627
|
+
var DialogDescription = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(DialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
628
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
629
|
+
|
|
630
|
+
// src/components/ui/command.tsx
|
|
631
|
+
import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
632
|
+
var Command = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
633
|
+
CommandPrimitive,
|
|
634
|
+
{
|
|
635
|
+
ref,
|
|
636
|
+
className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className),
|
|
637
|
+
...props
|
|
638
|
+
}
|
|
639
|
+
));
|
|
640
|
+
Command.displayName = CommandPrimitive.displayName;
|
|
641
|
+
var CommandDialog = ({ children, ...props }) => /* @__PURE__ */ jsx14(Dialog, { ...props, children: /* @__PURE__ */ jsx14(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx14(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
|
|
642
|
+
var CommandInput = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs7("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
643
|
+
/* @__PURE__ */ jsx14(Search, { className: "me-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
644
|
+
/* @__PURE__ */ jsx14(
|
|
645
|
+
CommandPrimitive.Input,
|
|
646
|
+
{
|
|
647
|
+
ref,
|
|
648
|
+
className: cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
649
|
+
...props
|
|
650
|
+
}
|
|
651
|
+
)
|
|
652
|
+
] }));
|
|
653
|
+
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
654
|
+
var CommandInputPrimitive = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
655
|
+
CommandPrimitive.Input,
|
|
656
|
+
{
|
|
657
|
+
ref,
|
|
658
|
+
className: cn("flex h-full w-full rounded-md bg-transparent text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
659
|
+
...props
|
|
660
|
+
}
|
|
661
|
+
));
|
|
662
|
+
CommandInputPrimitive.displayName = "CommandInputPrimitive";
|
|
663
|
+
var CommandList = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(CommandPrimitive.List, { ref, className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className), ...props }));
|
|
664
|
+
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
665
|
+
var CommandEmpty = React12.forwardRef((props, ref) => /* @__PURE__ */ jsx14(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
666
|
+
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
667
|
+
var CommandGroup = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(CommandPrimitive.Group, { ref, className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className), ...props }));
|
|
668
|
+
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
669
|
+
var CommandSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(CommandPrimitive.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), ...props }));
|
|
670
|
+
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
671
|
+
var CommandItem = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(CommandPrimitive.Item, { ref, className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-primary/10 data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50", className), ...props }));
|
|
672
|
+
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
673
|
+
var CommandShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx14("span", { className: cn("ms-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
674
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
675
|
+
|
|
676
|
+
// src/components/ui/context-menu.tsx
|
|
677
|
+
import * as React13 from "react";
|
|
678
|
+
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
679
|
+
import { Check as Check2, ChevronRight as ChevronRight3, Circle } from "lucide-react";
|
|
680
|
+
import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
681
|
+
var ContextMenu = ContextMenuPrimitive.Root;
|
|
682
|
+
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
683
|
+
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
684
|
+
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
685
|
+
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
686
|
+
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
687
|
+
var ContextMenuSubTrigger = React13.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs8(ContextMenuPrimitive.SubTrigger, { ref, className: cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-primary/10 data-[state=open]:text-accent-foreground focus:bg-primary/10 focus:text-primary", inset && "ps-8", className), ...props, children: [
|
|
688
|
+
children,
|
|
689
|
+
/* @__PURE__ */ jsx15(ChevronRight3, { className: "ms-auto h-4 w-4 rtl:rotate-180" })
|
|
690
|
+
] }));
|
|
691
|
+
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
692
|
+
var ContextMenuSubContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(ContextMenuPrimitive.SubContent, { ref, className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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", className), ...props }));
|
|
693
|
+
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
694
|
+
var ContextMenuContent = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx15(ContextMenuPrimitive.Content, { ref, className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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", className), ...props }) }));
|
|
695
|
+
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
696
|
+
var ContextMenuItem = React13.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx15(ContextMenuPrimitive.Item, { ref, className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-primary", inset && "ps-8", className), ...props }));
|
|
697
|
+
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
698
|
+
var ContextMenuCheckboxItem = React13.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs8(ContextMenuPrimitive.CheckboxItem, { ref, className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 ps-8 pe-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-primary", className), checked, ...props, children: [
|
|
699
|
+
/* @__PURE__ */ jsx15("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx15(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx15(Check2, { className: "h-4 w-4" }) }) }),
|
|
700
|
+
children
|
|
701
|
+
] }));
|
|
702
|
+
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
703
|
+
var ContextMenuRadioItem = React13.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs8(ContextMenuPrimitive.RadioItem, { ref, className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 ps-8 pe-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-primary", className), ...props, children: [
|
|
704
|
+
/* @__PURE__ */ jsx15("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx15(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx15(Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
705
|
+
children
|
|
706
|
+
] }));
|
|
707
|
+
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
708
|
+
var ContextMenuLabel = React13.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx15(ContextMenuPrimitive.Label, { ref, className: cn("px-2 py-1.5 text-sm font-semibold text-foreground", inset && "ps-8", className), ...props }));
|
|
709
|
+
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
710
|
+
var ContextMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(ContextMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-border", className), ...props }));
|
|
711
|
+
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
712
|
+
var ContextMenuShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx15("span", { className: cn("ms-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
713
|
+
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
714
|
+
|
|
715
|
+
// src/components/ui/directional-arrow.tsx
|
|
716
|
+
import { ArrowLeft as ArrowLeft2, ArrowRight as ArrowRight2 } from "lucide-react";
|
|
717
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
718
|
+
var DirectionalArrow = ({ isRTL = false, size = 16, className }) => {
|
|
719
|
+
const IconComponent = isRTL ? ArrowLeft2 : ArrowRight2;
|
|
720
|
+
return /* @__PURE__ */ jsx16(IconComponent, { size, className, "aria-hidden": "true" });
|
|
721
|
+
};
|
|
722
|
+
DirectionalArrow.displayName = "DirectionalArrow";
|
|
723
|
+
|
|
724
|
+
// src/components/ui/drawer.tsx
|
|
725
|
+
import * as React14 from "react";
|
|
726
|
+
import { Drawer as DrawerPrimitive } from "vaul";
|
|
727
|
+
import { jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
728
|
+
var Drawer = ({ shouldScaleBackground = true, ...props }) => /* @__PURE__ */ jsx17(DrawerPrimitive.Root, { shouldScaleBackground, ...props });
|
|
729
|
+
Drawer.displayName = "Drawer";
|
|
730
|
+
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
731
|
+
var DrawerPortal = DrawerPrimitive.Portal;
|
|
732
|
+
var DrawerClose = DrawerPrimitive.Close;
|
|
733
|
+
var DrawerOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(DrawerPrimitive.Overlay, { ref, className: cn("fixed inset-0 z-50 bg-black/80", className), ...props }));
|
|
734
|
+
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
735
|
+
var DrawerContent = React14.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(DrawerPortal, { children: [
|
|
736
|
+
/* @__PURE__ */ jsx17(DrawerOverlay, {}),
|
|
737
|
+
/* @__PURE__ */ jsxs9(
|
|
738
|
+
DrawerPrimitive.Content,
|
|
739
|
+
{
|
|
740
|
+
ref,
|
|
741
|
+
className: cn("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background", className),
|
|
742
|
+
...props,
|
|
743
|
+
children: [
|
|
744
|
+
/* @__PURE__ */ jsx17("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
745
|
+
children
|
|
746
|
+
]
|
|
747
|
+
}
|
|
748
|
+
)
|
|
749
|
+
] }));
|
|
750
|
+
DrawerContent.displayName = "DrawerContent";
|
|
751
|
+
var DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ jsx17("div", { className: cn("grid gap-1.5 p-4 text-center sm:text-start", className), ...props });
|
|
752
|
+
DrawerHeader.displayName = "DrawerHeader";
|
|
753
|
+
var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ jsx17("div", { className: cn("mt-auto flex flex-col gap-2 p-4", className), ...props });
|
|
754
|
+
DrawerFooter.displayName = "DrawerFooter";
|
|
755
|
+
var DrawerTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(DrawerPrimitive.Title, { ref, className: cn("text-lg font-semibold leading-none tracking-tight", className), ...props }));
|
|
756
|
+
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
757
|
+
var DrawerDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(DrawerPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
758
|
+
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
759
|
+
|
|
760
|
+
// src/components/ui/dropdown-menu.tsx
|
|
761
|
+
import * as React15 from "react";
|
|
762
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
763
|
+
import { Check as Check3, ChevronRight as ChevronRight4, Circle as Circle2 } from "lucide-react";
|
|
764
|
+
import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
765
|
+
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
766
|
+
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
767
|
+
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
768
|
+
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
769
|
+
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
770
|
+
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
771
|
+
var DropdownMenuSubTrigger = React15.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs10(DropdownMenuPrimitive.SubTrigger, { ref, className: cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-primary/10 focus:bg-primary/10", inset && "ps-8", className), ...props, children: [
|
|
772
|
+
children,
|
|
773
|
+
/* @__PURE__ */ jsx18(ChevronRight4, { className: "ms-auto h-4 w-4 rtl:rotate-180" })
|
|
774
|
+
] }));
|
|
775
|
+
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
776
|
+
var DropdownMenuSubContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(DropdownMenuPrimitive.SubContent, { ref, className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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", className), ...props }));
|
|
777
|
+
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
778
|
+
var DropdownMenuContent = React15.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx18(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx18(DropdownMenuPrimitive.Content, { ref, sideOffset, className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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", className), ...props }) }));
|
|
779
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
780
|
+
var DropdownMenuItem = React15.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx18(DropdownMenuPrimitive.Item, { ref, className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors duration-fast ease-standard data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-primary", inset && "ps-8", className), ...props }));
|
|
781
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
782
|
+
var DropdownMenuCheckboxItem = React15.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs10(DropdownMenuPrimitive.CheckboxItem, { ref, className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 ps-8 pe-2 text-sm outline-none transition-colors duration-fast ease-standard data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-primary", className), checked, ...props, children: [
|
|
783
|
+
/* @__PURE__ */ jsx18("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx18(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx18(Check3, { className: "h-4 w-4" }) }) }),
|
|
784
|
+
children
|
|
785
|
+
] }));
|
|
786
|
+
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
787
|
+
var DropdownMenuRadioItem = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(DropdownMenuPrimitive.RadioItem, { ref, className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 ps-8 pe-2 text-sm outline-none transition-colors duration-fast ease-standard data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-primary", className), ...props, children: [
|
|
788
|
+
/* @__PURE__ */ jsx18("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx18(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx18(Circle2, { className: "h-2 w-2 fill-current" }) }) }),
|
|
789
|
+
children
|
|
790
|
+
] }));
|
|
791
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
792
|
+
var DropdownMenuLabel = React15.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx18(DropdownMenuPrimitive.Label, { ref, className: cn("px-2 py-1.5 text-sm font-semibold", inset && "ps-8", className), ...props }));
|
|
793
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
794
|
+
var DropdownMenuSeparator = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx18(DropdownMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
795
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
796
|
+
var DropdownMenuShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx18("span", { className: cn("ms-auto text-xs tracking-widest opacity-60", className), ...props });
|
|
797
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
798
|
+
|
|
799
|
+
// src/components/ui/form.tsx
|
|
800
|
+
import * as React17 from "react";
|
|
801
|
+
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
802
|
+
import { Controller, FormProvider, useFormContext } from "react-hook-form";
|
|
803
|
+
|
|
804
|
+
// src/components/ui/label.tsx
|
|
805
|
+
import * as React16 from "react";
|
|
806
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
807
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
808
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
809
|
+
var labelVariants = cva4(
|
|
810
|
+
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
811
|
+
);
|
|
812
|
+
var Label3 = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(LabelPrimitive.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
813
|
+
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
814
|
+
|
|
815
|
+
// src/components/ui/form.tsx
|
|
816
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
817
|
+
var Form = FormProvider;
|
|
818
|
+
var FormFieldContext = React17.createContext({});
|
|
819
|
+
var FormField = ({ ...props }) => /* @__PURE__ */ jsx20(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx20(Controller, { ...props }) });
|
|
820
|
+
var useFormField = () => {
|
|
821
|
+
const fieldContext = React17.useContext(FormFieldContext);
|
|
822
|
+
const itemContext = React17.useContext(FormItemContext);
|
|
823
|
+
const { getFieldState, formState } = useFormContext();
|
|
824
|
+
const fieldState = getFieldState(fieldContext.name, formState);
|
|
825
|
+
if (!fieldContext) throw new Error("useFormField should be used within <FormField>");
|
|
826
|
+
const { id } = itemContext;
|
|
827
|
+
return {
|
|
828
|
+
id,
|
|
829
|
+
name: fieldContext.name,
|
|
830
|
+
formItemId: `${id}-form-item`,
|
|
831
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
832
|
+
formMessageId: `${id}-form-item-message`,
|
|
833
|
+
...fieldState
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
var FormItemContext = React17.createContext({});
|
|
837
|
+
var FormItem = React17.forwardRef(
|
|
838
|
+
({ className, ...props }, ref) => {
|
|
839
|
+
const id = React17.useId();
|
|
840
|
+
return /* @__PURE__ */ jsx20(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx20("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
841
|
+
}
|
|
842
|
+
);
|
|
843
|
+
FormItem.displayName = "FormItem";
|
|
844
|
+
var FormLabel = React17.forwardRef(({ className, ...props }, ref) => {
|
|
845
|
+
const { error, formItemId } = useFormField();
|
|
846
|
+
return /* @__PURE__ */ jsx20(Label3, { ref, className: cn("transition-colors duration-fast ease-standard", error && "text-destructive", className), htmlFor: formItemId, ...props });
|
|
847
|
+
});
|
|
848
|
+
FormLabel.displayName = "FormLabel";
|
|
849
|
+
var FormControl = React17.forwardRef(
|
|
850
|
+
({ ...props }, ref) => {
|
|
851
|
+
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
852
|
+
return /* @__PURE__ */ jsx20(
|
|
853
|
+
Slot3,
|
|
854
|
+
{
|
|
855
|
+
ref,
|
|
856
|
+
id: formItemId,
|
|
857
|
+
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
858
|
+
"aria-invalid": !!error,
|
|
859
|
+
...props
|
|
860
|
+
}
|
|
861
|
+
);
|
|
862
|
+
}
|
|
863
|
+
);
|
|
864
|
+
FormControl.displayName = "FormControl";
|
|
865
|
+
var FormDescription = React17.forwardRef(
|
|
866
|
+
({ className, ...props }, ref) => {
|
|
867
|
+
const { formDescriptionId } = useFormField();
|
|
868
|
+
return /* @__PURE__ */ jsx20("p", { ref, id: formDescriptionId, className: cn("text-sm text-muted-foreground", className), ...props });
|
|
869
|
+
}
|
|
870
|
+
);
|
|
871
|
+
FormDescription.displayName = "FormDescription";
|
|
872
|
+
var FormMessage = React17.forwardRef(
|
|
873
|
+
({ className, children, ...props }, ref) => {
|
|
874
|
+
const { error, formMessageId } = useFormField();
|
|
875
|
+
const body = error ? String(error?.message) : children;
|
|
876
|
+
if (!body) return null;
|
|
877
|
+
return /* @__PURE__ */ jsx20("p", { ref, id: formMessageId, className: cn("text-sm font-medium text-destructive", className), ...props, children: body });
|
|
878
|
+
}
|
|
879
|
+
);
|
|
880
|
+
FormMessage.displayName = "FormMessage";
|
|
881
|
+
|
|
882
|
+
// src/components/ui/hover-card.tsx
|
|
883
|
+
import * as React18 from "react";
|
|
884
|
+
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
885
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
886
|
+
var HoverCard = HoverCardPrimitive.Root;
|
|
887
|
+
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
888
|
+
var HoverCardContent = React18.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
889
|
+
HoverCardPrimitive.Content,
|
|
890
|
+
{
|
|
891
|
+
ref,
|
|
892
|
+
align,
|
|
893
|
+
sideOffset,
|
|
894
|
+
className: cn(
|
|
895
|
+
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",
|
|
896
|
+
className
|
|
897
|
+
),
|
|
898
|
+
...props
|
|
899
|
+
}
|
|
900
|
+
));
|
|
901
|
+
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
902
|
+
|
|
903
|
+
// src/components/ui/input.tsx
|
|
904
|
+
import * as React19 from "react";
|
|
905
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
906
|
+
var Input = React19.forwardRef(
|
|
907
|
+
({ className, type, ...props }, ref) => {
|
|
908
|
+
return /* @__PURE__ */ jsx22(
|
|
909
|
+
"input",
|
|
910
|
+
{
|
|
911
|
+
type,
|
|
912
|
+
className: cn(
|
|
913
|
+
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background transition-colors duration-fast ease-standard hover:border-ring/50 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
914
|
+
className
|
|
915
|
+
),
|
|
916
|
+
ref,
|
|
917
|
+
...props
|
|
918
|
+
}
|
|
919
|
+
);
|
|
920
|
+
}
|
|
921
|
+
);
|
|
922
|
+
Input.displayName = "Input";
|
|
923
|
+
|
|
924
|
+
// src/components/ui/input-otp.tsx
|
|
925
|
+
import * as React20 from "react";
|
|
926
|
+
import { OTPInput, OTPInputContext } from "input-otp";
|
|
927
|
+
import { Dot } from "lucide-react";
|
|
928
|
+
import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
929
|
+
var InputOTP = React20.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
930
|
+
OTPInput,
|
|
931
|
+
{
|
|
932
|
+
ref,
|
|
933
|
+
containerClassName: cn("flex items-center gap-2 has-[:disabled]:opacity-50", containerClassName),
|
|
934
|
+
className: cn("disabled:cursor-not-allowed", className),
|
|
935
|
+
...props
|
|
936
|
+
}
|
|
937
|
+
));
|
|
938
|
+
InputOTP.displayName = "InputOTP";
|
|
939
|
+
var InputOTPGroup = React20.forwardRef(
|
|
940
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx23("div", { ref, className: cn("flex items-center", className), ...props })
|
|
941
|
+
);
|
|
942
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
943
|
+
var InputOTPSlot = React20.forwardRef(({ index, className, ...props }, ref) => {
|
|
944
|
+
const inputOTPContext = React20.useContext(OTPInputContext);
|
|
945
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
946
|
+
return /* @__PURE__ */ jsxs11(
|
|
947
|
+
"div",
|
|
948
|
+
{
|
|
949
|
+
ref,
|
|
950
|
+
className: cn(
|
|
951
|
+
"relative flex h-10 w-10 items-center justify-center border-y border-e border-input text-sm transition-all duration-fast ease-standard hover:border-ring/50 first:rounded-s-md first:border-s last:rounded-e-md",
|
|
952
|
+
isActive && "z-10 ring-2 ring-ring ring-offset-2 ring-offset-background",
|
|
953
|
+
className
|
|
954
|
+
),
|
|
955
|
+
...props,
|
|
956
|
+
children: [
|
|
957
|
+
char,
|
|
958
|
+
hasFakeCaret && /* @__PURE__ */ jsx23("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx23("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
959
|
+
]
|
|
960
|
+
}
|
|
961
|
+
);
|
|
962
|
+
});
|
|
963
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
964
|
+
var InputOTPSeparator = React20.forwardRef(
|
|
965
|
+
({ ...props }, ref) => /* @__PURE__ */ jsx23("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx23(Dot, {}) })
|
|
966
|
+
);
|
|
967
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
968
|
+
|
|
969
|
+
// src/components/ui/linkify-text.tsx
|
|
970
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
971
|
+
var URL_REGEX = /(https?:\/\/[^\s<]+)|(www\.[^\s<]+\.[a-zA-Z]{2,}[^\s<]*)|((?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+(?:com|org|net|io|dev|co|me|info|biz|gov|edu|app|ai|uk|de|fr|sa|qa|ae|eg|ps|jo)\b(?:\/[^\s<]*)?)/gi;
|
|
972
|
+
var LinkifyText = ({ children, className }) => {
|
|
973
|
+
if (!children) return null;
|
|
974
|
+
const parts = [];
|
|
975
|
+
let lastIndex = 0;
|
|
976
|
+
let match;
|
|
977
|
+
URL_REGEX.lastIndex = 0;
|
|
978
|
+
while ((match = URL_REGEX.exec(children)) !== null) {
|
|
979
|
+
const url = match[0];
|
|
980
|
+
const index = match.index;
|
|
981
|
+
if (index > lastIndex) parts.push(children.slice(lastIndex, index));
|
|
982
|
+
const href = /^https?:\/\//i.test(url) ? url : `https://${url}`;
|
|
983
|
+
parts.push(
|
|
984
|
+
/* @__PURE__ */ jsx24(
|
|
985
|
+
"a",
|
|
986
|
+
{
|
|
987
|
+
href,
|
|
988
|
+
target: "_blank",
|
|
989
|
+
rel: "noopener noreferrer",
|
|
990
|
+
className: "text-primary underline underline-offset-2 hover:text-primary/80 transition-colors duration-fast ease-standard",
|
|
991
|
+
onClick: (e) => e.stopPropagation(),
|
|
992
|
+
children: url
|
|
993
|
+
},
|
|
994
|
+
index
|
|
995
|
+
)
|
|
996
|
+
);
|
|
997
|
+
lastIndex = index + url.length;
|
|
998
|
+
}
|
|
999
|
+
if (lastIndex < children.length) parts.push(children.slice(lastIndex));
|
|
1000
|
+
return /* @__PURE__ */ jsx24("span", { className, children: parts });
|
|
1001
|
+
};
|
|
1002
|
+
LinkifyText.displayName = "LinkifyText";
|
|
1003
|
+
|
|
1004
|
+
// src/components/ui/menubar.tsx
|
|
1005
|
+
import * as React21 from "react";
|
|
1006
|
+
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
1007
|
+
import { Check as Check4, ChevronRight as ChevronRight5, Circle as Circle3 } from "lucide-react";
|
|
1008
|
+
import { jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1009
|
+
var MenubarMenu = MenubarPrimitive.Menu;
|
|
1010
|
+
var MenubarGroup = MenubarPrimitive.Group;
|
|
1011
|
+
var MenubarPortal = MenubarPrimitive.Portal;
|
|
1012
|
+
var MenubarSub = MenubarPrimitive.Sub;
|
|
1013
|
+
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
1014
|
+
var Menubar = React21.forwardRef(
|
|
1015
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx25(MenubarPrimitive.Root, { ref, className: cn("flex h-10 items-center space-x-1 rounded-md border bg-background p-1", className), ...props })
|
|
1016
|
+
);
|
|
1017
|
+
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
1018
|
+
var MenubarTrigger = React21.forwardRef(
|
|
1019
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx25(MenubarPrimitive.Trigger, { ref, className: cn("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none data-[state=open]:bg-primary/10 data-[state=open]:text-primary focus:bg-primary/10 focus:text-primary", className), ...props })
|
|
1020
|
+
);
|
|
1021
|
+
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
1022
|
+
var MenubarSubTrigger = React21.forwardRef(
|
|
1023
|
+
({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs12(MenubarPrimitive.SubTrigger, { ref, className: cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-primary/10 data-[state=open]:text-primary focus:bg-primary/10 focus:text-primary", inset && "ps-8", className), ...props, children: [
|
|
1024
|
+
children,
|
|
1025
|
+
/* @__PURE__ */ jsx25(ChevronRight5, { className: "ms-auto h-4 w-4 rtl:rotate-180" })
|
|
1026
|
+
] })
|
|
1027
|
+
);
|
|
1028
|
+
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
1029
|
+
var MenubarSubContent = React21.forwardRef(
|
|
1030
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx25(MenubarPrimitive.SubContent, { ref, className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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", className), ...props })
|
|
1031
|
+
);
|
|
1032
|
+
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
1033
|
+
var MenubarContent = React21.forwardRef(
|
|
1034
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx25(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx25(MenubarPrimitive.Content, { ref, align, alignOffset, sideOffset, className: cn("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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", className), ...props }) })
|
|
1035
|
+
);
|
|
1036
|
+
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
1037
|
+
var MenubarItem = React21.forwardRef(
|
|
1038
|
+
({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx25(MenubarPrimitive.Item, { ref, className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-primary", inset && "ps-8", className), ...props })
|
|
1039
|
+
);
|
|
1040
|
+
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
1041
|
+
var MenubarCheckboxItem = React21.forwardRef(
|
|
1042
|
+
({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs12(MenubarPrimitive.CheckboxItem, { ref, className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 ps-8 pe-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-primary", className), checked, ...props, children: [
|
|
1043
|
+
/* @__PURE__ */ jsx25("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx25(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx25(Check4, { className: "h-4 w-4" }) }) }),
|
|
1044
|
+
children
|
|
1045
|
+
] })
|
|
1046
|
+
);
|
|
1047
|
+
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
1048
|
+
var MenubarRadioItem = React21.forwardRef(
|
|
1049
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs12(MenubarPrimitive.RadioItem, { ref, className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 ps-8 pe-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-primary", className), ...props, children: [
|
|
1050
|
+
/* @__PURE__ */ jsx25("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx25(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx25(Circle3, { className: "h-2 w-2 fill-current" }) }) }),
|
|
1051
|
+
children
|
|
1052
|
+
] })
|
|
1053
|
+
);
|
|
1054
|
+
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
1055
|
+
var MenubarLabel = React21.forwardRef(
|
|
1056
|
+
({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx25(MenubarPrimitive.Label, { ref, className: cn("px-2 py-1.5 text-sm font-semibold", inset && "ps-8", className), ...props })
|
|
1057
|
+
);
|
|
1058
|
+
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
1059
|
+
var MenubarSeparator = React21.forwardRef(
|
|
1060
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx25(MenubarPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props })
|
|
1061
|
+
);
|
|
1062
|
+
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
1063
|
+
var MenubarShortcut = ({ className, ...props }) => /* @__PURE__ */ jsx25("span", { className: cn("ms-auto text-xs tracking-widest text-muted-foreground", className), ...props });
|
|
1064
|
+
MenubarShortcut.displayName = "MenubarShortcut";
|
|
1065
|
+
|
|
1066
|
+
// src/components/ui/native-select.tsx
|
|
1067
|
+
import * as React22 from "react";
|
|
1068
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1069
|
+
var NativeSelect = React22.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
1070
|
+
"select",
|
|
1071
|
+
{
|
|
1072
|
+
ref,
|
|
1073
|
+
className: cn(
|
|
1074
|
+
"flex h-9 w-full appearance-none rounded-md border border-input bg-background px-3 pe-8 text-sm text-foreground ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1075
|
+
// chevron rendered as an inline SVG background, anchored to the end edge
|
|
1076
|
+
"bg-[length:1rem] bg-no-repeat bg-[right_0.5rem_center] rtl:bg-[left_0.5rem_center]",
|
|
1077
|
+
"bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22/%3E%3C/svg%3E')]",
|
|
1078
|
+
className
|
|
1079
|
+
),
|
|
1080
|
+
...props,
|
|
1081
|
+
children
|
|
1082
|
+
}
|
|
1083
|
+
));
|
|
1084
|
+
NativeSelect.displayName = "NativeSelect";
|
|
1085
|
+
|
|
1086
|
+
// src/components/ui/navigation-menu.tsx
|
|
1087
|
+
import * as React23 from "react";
|
|
1088
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
1089
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
1090
|
+
import { ChevronDown as ChevronDown2 } from "lucide-react";
|
|
1091
|
+
import { jsx as jsx27, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1092
|
+
var NavigationMenu = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(NavigationMenuPrimitive.Root, { ref, className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className), ...props, children: [
|
|
1093
|
+
children,
|
|
1094
|
+
/* @__PURE__ */ jsx27(NavigationMenuViewport, {})
|
|
1095
|
+
] }));
|
|
1096
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1097
|
+
var NavigationMenuList = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(NavigationMenuPrimitive.List, { ref, className: cn("group flex flex-1 list-none items-center justify-center space-x-1", className), ...props }));
|
|
1098
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
1099
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
1100
|
+
var navigationMenuTriggerStyle = cva5(
|
|
1101
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors duration-fast ease-standard hover:bg-primary/10 hover:text-primary focus:bg-primary/10 focus:text-primary focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-primary/10 data-[state=open]:bg-primary/10"
|
|
1102
|
+
);
|
|
1103
|
+
var NavigationMenuTrigger = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(NavigationMenuPrimitive.Trigger, { ref, className: cn(navigationMenuTriggerStyle(), "group", className), ...props, children: [
|
|
1104
|
+
children,
|
|
1105
|
+
" ",
|
|
1106
|
+
/* @__PURE__ */ jsx27(ChevronDown2, { className: "relative top-[1px] ms-1 h-3 w-3 transition duration-fast ease-standard group-data-[state=open]:rotate-180", "aria-hidden": "true" })
|
|
1107
|
+
] }));
|
|
1108
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
1109
|
+
var NavigationMenuContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(NavigationMenuPrimitive.Content, { ref, className: cn("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto", className), ...props }));
|
|
1110
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1111
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
1112
|
+
var NavigationMenuViewport = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx27(
|
|
1113
|
+
NavigationMenuPrimitive.Viewport,
|
|
1114
|
+
{
|
|
1115
|
+
className: cn("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]", className),
|
|
1116
|
+
ref,
|
|
1117
|
+
...props
|
|
1118
|
+
}
|
|
1119
|
+
) }));
|
|
1120
|
+
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1121
|
+
var NavigationMenuIndicator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(NavigationMenuPrimitive.Indicator, { ref, className: cn("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", className), ...props, children: /* @__PURE__ */ jsx27("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" }) }));
|
|
1122
|
+
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1123
|
+
|
|
1124
|
+
// src/components/ui/pagination.tsx
|
|
1125
|
+
import * as React24 from "react";
|
|
1126
|
+
import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight6, MoreHorizontal as MoreHorizontal2 } from "lucide-react";
|
|
1127
|
+
import { jsx as jsx28, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1128
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx28("nav", { role: "navigation", "aria-label": "pagination", className: cn("mx-auto flex w-full justify-center", className), ...props });
|
|
1129
|
+
Pagination.displayName = "Pagination";
|
|
1130
|
+
var PaginationContent = React24.forwardRef(
|
|
1131
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx28("ul", { ref, className: cn("flex flex-row items-center gap-1", className), ...props })
|
|
1132
|
+
);
|
|
1133
|
+
PaginationContent.displayName = "PaginationContent";
|
|
1134
|
+
var PaginationItem = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx28("li", { ref, className: cn("", className), ...props }));
|
|
1135
|
+
PaginationItem.displayName = "PaginationItem";
|
|
1136
|
+
var PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @__PURE__ */ jsx28(
|
|
1137
|
+
"a",
|
|
1138
|
+
{
|
|
1139
|
+
"aria-current": isActive ? "page" : void 0,
|
|
1140
|
+
className: cn(buttonVariants({ variant: isActive ? "outline" : "ghost", size }), className),
|
|
1141
|
+
...props
|
|
1142
|
+
}
|
|
1143
|
+
);
|
|
1144
|
+
PaginationLink.displayName = "PaginationLink";
|
|
1145
|
+
var PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ jsxs14(PaginationLink, { "aria-label": "Go to previous page", size: "default", className: cn("gap-1 ps-2.5", className), ...props, children: [
|
|
1146
|
+
/* @__PURE__ */ jsx28(ChevronLeft2, { className: "h-4 w-4 rtl:rotate-180" }),
|
|
1147
|
+
/* @__PURE__ */ jsx28("span", { children: "Previous" })
|
|
1148
|
+
] });
|
|
1149
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
1150
|
+
var PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxs14(PaginationLink, { "aria-label": "Go to next page", size: "default", className: cn("gap-1 pe-2.5", className), ...props, children: [
|
|
1151
|
+
/* @__PURE__ */ jsx28("span", { children: "Next" }),
|
|
1152
|
+
/* @__PURE__ */ jsx28(ChevronRight6, { className: "h-4 w-4 rtl:rotate-180" })
|
|
1153
|
+
] });
|
|
1154
|
+
PaginationNext.displayName = "PaginationNext";
|
|
1155
|
+
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs14("span", { "aria-hidden": true, className: cn("flex h-9 w-9 items-center justify-center", className), ...props, children: [
|
|
1156
|
+
/* @__PURE__ */ jsx28(MoreHorizontal2, { className: "h-4 w-4" }),
|
|
1157
|
+
/* @__PURE__ */ jsx28("span", { className: "sr-only", children: "More pages" })
|
|
1158
|
+
] });
|
|
1159
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
1160
|
+
|
|
1161
|
+
// src/components/ui/popover.tsx
|
|
1162
|
+
import * as React25 from "react";
|
|
1163
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1164
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1165
|
+
var Popover = PopoverPrimitive.Root;
|
|
1166
|
+
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
1167
|
+
var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx29(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx29(
|
|
1168
|
+
PopoverPrimitive.Content,
|
|
1169
|
+
{
|
|
1170
|
+
ref,
|
|
1171
|
+
align,
|
|
1172
|
+
sideOffset,
|
|
1173
|
+
className: cn(
|
|
1174
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",
|
|
1175
|
+
className
|
|
1176
|
+
),
|
|
1177
|
+
...props
|
|
1178
|
+
}
|
|
1179
|
+
) }));
|
|
1180
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1181
|
+
|
|
1182
|
+
// src/components/ui/progress.tsx
|
|
1183
|
+
import * as React26 from "react";
|
|
1184
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
1185
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1186
|
+
var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
1187
|
+
ProgressPrimitive.Root,
|
|
1188
|
+
{
|
|
1189
|
+
ref,
|
|
1190
|
+
className: cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className),
|
|
1191
|
+
...props,
|
|
1192
|
+
children: /* @__PURE__ */ jsx30(
|
|
1193
|
+
ProgressPrimitive.Indicator,
|
|
1194
|
+
{
|
|
1195
|
+
className: "h-full w-full flex-1 bg-primary transition-all duration-base ease-standard",
|
|
1196
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
1197
|
+
}
|
|
1198
|
+
)
|
|
1199
|
+
}
|
|
1200
|
+
));
|
|
1201
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
1202
|
+
|
|
1203
|
+
// src/components/ui/radio-group.tsx
|
|
1204
|
+
import * as React27 from "react";
|
|
1205
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
1206
|
+
import { Circle as Circle4 } from "lucide-react";
|
|
1207
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1208
|
+
var RadioGroup4 = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(RadioGroupPrimitive.Root, { className: cn("grid gap-2", className), ...props, ref }));
|
|
1209
|
+
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
1210
|
+
var RadioGroupItem = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
1211
|
+
RadioGroupPrimitive.Item,
|
|
1212
|
+
{
|
|
1213
|
+
ref,
|
|
1214
|
+
className: cn(
|
|
1215
|
+
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background transition-all duration-fast ease-standard hover:border-ring/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1216
|
+
className
|
|
1217
|
+
),
|
|
1218
|
+
...props,
|
|
1219
|
+
children: /* @__PURE__ */ jsx31(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx31(Circle4, { className: "h-2.5 w-2.5 fill-current text-current transition-transform duration-fast ease-standard" }) })
|
|
1220
|
+
}
|
|
1221
|
+
));
|
|
1222
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
1223
|
+
|
|
1224
|
+
// src/components/ui/resizable.tsx
|
|
1225
|
+
import { GripVertical } from "lucide-react";
|
|
1226
|
+
import * as ResizablePrimitive from "react-resizable-panels";
|
|
1227
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1228
|
+
var ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */ jsx32(
|
|
1229
|
+
ResizablePrimitive.PanelGroup,
|
|
1230
|
+
{
|
|
1231
|
+
className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
1232
|
+
...props
|
|
1233
|
+
}
|
|
1234
|
+
);
|
|
1235
|
+
var ResizablePanel = ResizablePrimitive.Panel;
|
|
1236
|
+
var ResizableHandle = ({
|
|
1237
|
+
withHandle,
|
|
1238
|
+
className,
|
|
1239
|
+
...props
|
|
1240
|
+
}) => /* @__PURE__ */ jsx32(
|
|
1241
|
+
ResizablePrimitive.PanelResizeHandle,
|
|
1242
|
+
{
|
|
1243
|
+
className: cn(
|
|
1244
|
+
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
1245
|
+
className
|
|
1246
|
+
),
|
|
1247
|
+
...props,
|
|
1248
|
+
children: withHandle && /* @__PURE__ */ jsx32("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx32(GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
1249
|
+
}
|
|
1250
|
+
);
|
|
1251
|
+
|
|
1252
|
+
// src/components/ui/scroll-area.tsx
|
|
1253
|
+
import * as React28 from "react";
|
|
1254
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
1255
|
+
import { jsx as jsx33, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1256
|
+
var ScrollArea = React28.forwardRef(
|
|
1257
|
+
({ className, children, dir, viewportRef, ...props }, ref) => /* @__PURE__ */ jsxs15(ScrollAreaPrimitive.Root, { ref, dir, className: cn("relative overflow-hidden", className), ...props, children: [
|
|
1258
|
+
/* @__PURE__ */ jsx33(ScrollAreaPrimitive.Viewport, { ref: viewportRef, dir, className: "h-full w-full rounded-[inherit]", children }),
|
|
1259
|
+
/* @__PURE__ */ jsx33(ScrollBar, {}),
|
|
1260
|
+
/* @__PURE__ */ jsx33(ScrollAreaPrimitive.Corner, {})
|
|
1261
|
+
] })
|
|
1262
|
+
);
|
|
1263
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
1264
|
+
var ScrollBar = React28.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx33(
|
|
1265
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
1266
|
+
{
|
|
1267
|
+
ref,
|
|
1268
|
+
orientation,
|
|
1269
|
+
className: cn(
|
|
1270
|
+
"flex touch-none select-none transition-colors duration-fast ease-standard",
|
|
1271
|
+
orientation === "vertical" && "h-full w-2.5 border-l rtl:border-l-0 rtl:border-r border-l-transparent rtl:border-r-transparent p-[1px]",
|
|
1272
|
+
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
1273
|
+
className
|
|
1274
|
+
),
|
|
1275
|
+
...props,
|
|
1276
|
+
children: /* @__PURE__ */ jsx33(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1277
|
+
}
|
|
1278
|
+
));
|
|
1279
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
1280
|
+
|
|
1281
|
+
// src/components/ui/select.tsx
|
|
1282
|
+
import * as React29 from "react";
|
|
1283
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1284
|
+
import { Check as Check5, ChevronDown as ChevronDown3, ChevronUp } from "lucide-react";
|
|
1285
|
+
import { jsx as jsx34, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1286
|
+
var Select = SelectPrimitive.Root;
|
|
1287
|
+
var SelectGroup = SelectPrimitive.Group;
|
|
1288
|
+
var SelectValue = SelectPrimitive.Value;
|
|
1289
|
+
var SelectTrigger = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
1290
|
+
SelectPrimitive.Trigger,
|
|
1291
|
+
{
|
|
1292
|
+
ref,
|
|
1293
|
+
className: cn(
|
|
1294
|
+
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
1295
|
+
className
|
|
1296
|
+
),
|
|
1297
|
+
...props,
|
|
1298
|
+
children: [
|
|
1299
|
+
children,
|
|
1300
|
+
/* @__PURE__ */ jsx34(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx34(ChevronDown3, { className: "h-4 w-4 opacity-50" }) })
|
|
1301
|
+
]
|
|
1302
|
+
}
|
|
1303
|
+
));
|
|
1304
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1305
|
+
var SelectScrollUpButton = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1306
|
+
SelectPrimitive.ScrollUpButton,
|
|
1307
|
+
{
|
|
1308
|
+
ref,
|
|
1309
|
+
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1310
|
+
...props,
|
|
1311
|
+
children: /* @__PURE__ */ jsx34(ChevronUp, { className: "h-4 w-4" })
|
|
1312
|
+
}
|
|
1313
|
+
));
|
|
1314
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1315
|
+
var SelectScrollDownButton = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
1316
|
+
SelectPrimitive.ScrollDownButton,
|
|
1317
|
+
{
|
|
1318
|
+
ref,
|
|
1319
|
+
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
1320
|
+
...props,
|
|
1321
|
+
children: /* @__PURE__ */ jsx34(ChevronDown3, { className: "h-4 w-4" })
|
|
1322
|
+
}
|
|
1323
|
+
));
|
|
1324
|
+
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1325
|
+
var SelectContent = React29.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx34(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs16(
|
|
1326
|
+
SelectPrimitive.Content,
|
|
1327
|
+
{
|
|
1328
|
+
ref,
|
|
1329
|
+
className: cn(
|
|
1330
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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",
|
|
1331
|
+
position === "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",
|
|
1332
|
+
className
|
|
1333
|
+
),
|
|
1334
|
+
position,
|
|
1335
|
+
...props,
|
|
1336
|
+
children: [
|
|
1337
|
+
/* @__PURE__ */ jsx34(SelectScrollUpButton, {}),
|
|
1338
|
+
/* @__PURE__ */ jsx34(
|
|
1339
|
+
SelectPrimitive.Viewport,
|
|
1340
|
+
{
|
|
1341
|
+
className: cn(
|
|
1342
|
+
"p-1",
|
|
1343
|
+
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
1344
|
+
),
|
|
1345
|
+
children
|
|
1346
|
+
}
|
|
1347
|
+
),
|
|
1348
|
+
/* @__PURE__ */ jsx34(SelectScrollDownButton, {})
|
|
1349
|
+
]
|
|
1350
|
+
}
|
|
1351
|
+
) }));
|
|
1352
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1353
|
+
var SelectLabel = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(SelectPrimitive.Label, { ref, className: cn("py-1.5 ps-8 pe-2 text-sm font-semibold", className), ...props }));
|
|
1354
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1355
|
+
var SelectItem = React29.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
1356
|
+
SelectPrimitive.Item,
|
|
1357
|
+
{
|
|
1358
|
+
ref,
|
|
1359
|
+
className: cn(
|
|
1360
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 ps-8 pe-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-primary",
|
|
1361
|
+
className
|
|
1362
|
+
),
|
|
1363
|
+
...props,
|
|
1364
|
+
children: [
|
|
1365
|
+
/* @__PURE__ */ jsx34("span", { className: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx34(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx34(Check5, { className: "h-4 w-4" }) }) }),
|
|
1366
|
+
/* @__PURE__ */ jsx34(SelectPrimitive.ItemText, { children })
|
|
1367
|
+
]
|
|
1368
|
+
}
|
|
1369
|
+
));
|
|
1370
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1371
|
+
var SelectSeparator = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
|
|
1372
|
+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1373
|
+
|
|
1374
|
+
// src/components/ui/separator.tsx
|
|
1375
|
+
import * as React30 from "react";
|
|
1376
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
1377
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
1378
|
+
var Separator5 = React30.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
1379
|
+
SeparatorPrimitive.Root,
|
|
1380
|
+
{
|
|
1381
|
+
ref,
|
|
1382
|
+
decorative,
|
|
1383
|
+
orientation,
|
|
1384
|
+
className: cn(
|
|
1385
|
+
"shrink-0 bg-border",
|
|
1386
|
+
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
1387
|
+
className
|
|
1388
|
+
),
|
|
1389
|
+
...props
|
|
1390
|
+
}
|
|
1391
|
+
));
|
|
1392
|
+
Separator5.displayName = SeparatorPrimitive.Root.displayName;
|
|
1393
|
+
|
|
1394
|
+
// src/components/ui/sheet.tsx
|
|
1395
|
+
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
1396
|
+
import { cva as cva6 } from "class-variance-authority";
|
|
1397
|
+
import { X as X2 } from "lucide-react";
|
|
1398
|
+
import * as React31 from "react";
|
|
1399
|
+
import { jsx as jsx36, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1400
|
+
var Sheet = SheetPrimitive.Root;
|
|
1401
|
+
var SheetTrigger = SheetPrimitive.Trigger;
|
|
1402
|
+
var SheetClose = SheetPrimitive.Close;
|
|
1403
|
+
var SheetPortal = SheetPrimitive.Portal;
|
|
1404
|
+
var SheetOverlay = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
1405
|
+
SheetPrimitive.Overlay,
|
|
1406
|
+
{
|
|
1407
|
+
className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className),
|
|
1408
|
+
...props,
|
|
1409
|
+
ref
|
|
1410
|
+
}
|
|
1411
|
+
));
|
|
1412
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
1413
|
+
var sheetVariants = cva6(
|
|
1414
|
+
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
1415
|
+
{
|
|
1416
|
+
variants: {
|
|
1417
|
+
side: {
|
|
1418
|
+
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
1419
|
+
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
1420
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
1421
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
1422
|
+
}
|
|
1423
|
+
},
|
|
1424
|
+
defaultVariants: { side: "right" }
|
|
1425
|
+
}
|
|
1426
|
+
);
|
|
1427
|
+
var SheetContent = React31.forwardRef(
|
|
1428
|
+
({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs17(SheetPortal, { children: [
|
|
1429
|
+
/* @__PURE__ */ jsx36(SheetOverlay, {}),
|
|
1430
|
+
/* @__PURE__ */ jsxs17(SheetPrimitive.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children: [
|
|
1431
|
+
children,
|
|
1432
|
+
/* @__PURE__ */ jsxs17(SheetPrimitive.Close, { className: "absolute end-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity duration-fast ease-standard data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
1433
|
+
/* @__PURE__ */ jsx36(X2, { className: "h-4 w-4" }),
|
|
1434
|
+
/* @__PURE__ */ jsx36("span", { className: "sr-only", children: "Close" })
|
|
1435
|
+
] })
|
|
1436
|
+
] })
|
|
1437
|
+
] })
|
|
1438
|
+
);
|
|
1439
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
1440
|
+
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx36("div", { className: cn("flex flex-col space-y-2 text-center sm:text-start", className), ...props });
|
|
1441
|
+
SheetHeader.displayName = "SheetHeader";
|
|
1442
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx36("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
1443
|
+
SheetFooter.displayName = "SheetFooter";
|
|
1444
|
+
var SheetTitle = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(SheetPrimitive.Title, { ref, className: cn("text-lg font-semibold text-foreground", className), ...props }));
|
|
1445
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
1446
|
+
var SheetDescription = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx36(SheetPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
1447
|
+
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
1448
|
+
|
|
1449
|
+
// src/components/ui/sidebar.tsx
|
|
1450
|
+
import * as React34 from "react";
|
|
1451
|
+
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
1452
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
1453
|
+
import { PanelLeft } from "lucide-react";
|
|
1454
|
+
|
|
1455
|
+
// src/hooks/use-mobile.ts
|
|
1456
|
+
import * as React32 from "react";
|
|
1457
|
+
var MOBILE_BREAKPOINT = 768;
|
|
1458
|
+
function useIsMobile() {
|
|
1459
|
+
const [isMobile, setIsMobile] = React32.useState(void 0);
|
|
1460
|
+
React32.useEffect(() => {
|
|
1461
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
1462
|
+
const onChange = () => {
|
|
1463
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
1464
|
+
};
|
|
1465
|
+
mql.addEventListener("change", onChange);
|
|
1466
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
1467
|
+
return () => mql.removeEventListener("change", onChange);
|
|
1468
|
+
}, []);
|
|
1469
|
+
return !!isMobile;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
// src/components/ui/skeleton.tsx
|
|
1473
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
1474
|
+
var Skeleton = ({ className, ...props }) => {
|
|
1475
|
+
return /* @__PURE__ */ jsx37("div", { "aria-hidden": "true", className: cn("motion-safe:animate-pulse rounded-md bg-muted", className), ...props });
|
|
1476
|
+
};
|
|
1477
|
+
Skeleton.displayName = "Skeleton";
|
|
1478
|
+
|
|
1479
|
+
// src/components/ui/tooltip.tsx
|
|
1480
|
+
import * as React33 from "react";
|
|
1481
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
1482
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
1483
|
+
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1484
|
+
var Tooltip2 = TooltipPrimitive.Root;
|
|
1485
|
+
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
1486
|
+
var TooltipContent = React33.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
1487
|
+
TooltipPrimitive.Content,
|
|
1488
|
+
{
|
|
1489
|
+
ref,
|
|
1490
|
+
sideOffset,
|
|
1491
|
+
className: cn(
|
|
1492
|
+
"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",
|
|
1493
|
+
className
|
|
1494
|
+
),
|
|
1495
|
+
...props
|
|
1496
|
+
}
|
|
1497
|
+
));
|
|
1498
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
1499
|
+
|
|
1500
|
+
// src/components/ui/sidebar.tsx
|
|
1501
|
+
import { jsx as jsx39, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1502
|
+
var SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
1503
|
+
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
1504
|
+
var SIDEBAR_WIDTH = "16rem";
|
|
1505
|
+
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
1506
|
+
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
1507
|
+
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
1508
|
+
var SidebarContext = React34.createContext(null);
|
|
1509
|
+
function useSidebar() {
|
|
1510
|
+
const context = React34.useContext(SidebarContext);
|
|
1511
|
+
if (!context) throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
1512
|
+
return context;
|
|
1513
|
+
}
|
|
1514
|
+
function useOptionalSidebar() {
|
|
1515
|
+
return React34.useContext(SidebarContext);
|
|
1516
|
+
}
|
|
1517
|
+
var SidebarProvider = React34.forwardRef(({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }, ref) => {
|
|
1518
|
+
const isMobile = useIsMobile();
|
|
1519
|
+
const [openMobile, setOpenMobile] = React34.useState(false);
|
|
1520
|
+
const [_open, _setOpen] = React34.useState(defaultOpen);
|
|
1521
|
+
const open = openProp ?? _open;
|
|
1522
|
+
const setOpen = React34.useCallback(
|
|
1523
|
+
(value) => {
|
|
1524
|
+
const openState = typeof value === "function" ? value(open) : value;
|
|
1525
|
+
if (setOpenProp) {
|
|
1526
|
+
setOpenProp(openState);
|
|
1527
|
+
} else {
|
|
1528
|
+
_setOpen(openState);
|
|
1529
|
+
}
|
|
1530
|
+
document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
1531
|
+
},
|
|
1532
|
+
[setOpenProp, open]
|
|
1533
|
+
);
|
|
1534
|
+
const toggleSidebar = React34.useCallback(
|
|
1535
|
+
() => isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2),
|
|
1536
|
+
[isMobile, setOpen, setOpenMobile]
|
|
1537
|
+
);
|
|
1538
|
+
React34.useEffect(() => {
|
|
1539
|
+
const handleKeyDown = (event) => {
|
|
1540
|
+
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
1541
|
+
event.preventDefault();
|
|
1542
|
+
toggleSidebar();
|
|
1543
|
+
}
|
|
1544
|
+
};
|
|
1545
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
1546
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
1547
|
+
}, [toggleSidebar]);
|
|
1548
|
+
const state = open ? "expanded" : "collapsed";
|
|
1549
|
+
const contextValue = React34.useMemo(
|
|
1550
|
+
() => ({ state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar }),
|
|
1551
|
+
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
1552
|
+
);
|
|
1553
|
+
return /* @__PURE__ */ jsx39(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx39(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx39("div", { style: { "--sidebar-width": SIDEBAR_WIDTH, "--sidebar-width-icon": SIDEBAR_WIDTH_ICON, ...style }, className: cn("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar", className), ref, ...props, children }) }) });
|
|
1554
|
+
});
|
|
1555
|
+
SidebarProvider.displayName = "SidebarProvider";
|
|
1556
|
+
var Sidebar = React34.forwardRef(({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, ...props }, ref) => {
|
|
1557
|
+
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
1558
|
+
if (collapsible === "none") {
|
|
1559
|
+
return /* @__PURE__ */ jsx39("div", { className: cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", className), ref, ...props, children });
|
|
1560
|
+
}
|
|
1561
|
+
if (isMobile) {
|
|
1562
|
+
return /* @__PURE__ */ jsx39(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsx39(SheetContent, { "data-sidebar": "sidebar", "data-mobile": "true", className: "w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden", style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE }, side, children: /* @__PURE__ */ jsx39("div", { className: "flex h-full w-full flex-col", children }) }) });
|
|
1563
|
+
}
|
|
1564
|
+
return /* @__PURE__ */ jsxs18("div", { ref, className: "group peer hidden text-sidebar-foreground md:block", "data-state": state, "data-collapsible": state === "collapsed" ? collapsible : "", "data-variant": variant, "data-side": side, children: [
|
|
1565
|
+
/* @__PURE__ */ jsx39("div", { className: cn("relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)") }),
|
|
1566
|
+
/* @__PURE__ */ jsx39("div", { className: cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", className), ...props, children: /* @__PURE__ */ jsx39("div", { "data-sidebar": "sidebar", className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow", children }) })
|
|
1567
|
+
] });
|
|
1568
|
+
});
|
|
1569
|
+
Sidebar.displayName = "Sidebar";
|
|
1570
|
+
var SidebarTrigger = React34.forwardRef(
|
|
1571
|
+
({ className, onClick, ...props }, ref) => {
|
|
1572
|
+
const sidebar = useOptionalSidebar();
|
|
1573
|
+
if (!sidebar) return null;
|
|
1574
|
+
const { toggleSidebar } = sidebar;
|
|
1575
|
+
return /* @__PURE__ */ jsxs18(Button, { ref, "data-sidebar": "trigger", variant: "ghost", size: "icon", className: cn("h-7 w-7", className), onClick: (event) => {
|
|
1576
|
+
onClick?.(event);
|
|
1577
|
+
toggleSidebar();
|
|
1578
|
+
}, ...props, children: [
|
|
1579
|
+
/* @__PURE__ */ jsx39(PanelLeft, {}),
|
|
1580
|
+
/* @__PURE__ */ jsx39("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
1581
|
+
] });
|
|
1582
|
+
}
|
|
1583
|
+
);
|
|
1584
|
+
SidebarTrigger.displayName = "SidebarTrigger";
|
|
1585
|
+
var SidebarRail = React34.forwardRef(
|
|
1586
|
+
({ className, ...props }, ref) => {
|
|
1587
|
+
const { toggleSidebar } = useSidebar();
|
|
1588
|
+
return /* @__PURE__ */ jsx39("button", { ref, "data-sidebar": "rail", "aria-label": "Toggle Sidebar", tabIndex: -1, onClick: toggleSidebar, title: "Toggle Sidebar", className: cn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all duration-fast ease-standard ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex", "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", className), ...props });
|
|
1589
|
+
}
|
|
1590
|
+
);
|
|
1591
|
+
SidebarRail.displayName = "SidebarRail";
|
|
1592
|
+
var SidebarInset = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39("main", { ref, className: cn("relative flex min-h-svh flex-1 flex-col bg-background", "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow", className), ...props }));
|
|
1593
|
+
SidebarInset.displayName = "SidebarInset";
|
|
1594
|
+
var SidebarInput = React34.forwardRef(
|
|
1595
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx39(Input, { ref, "data-sidebar": "input", className: cn("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring", className), ...props })
|
|
1596
|
+
);
|
|
1597
|
+
SidebarInput.displayName = "SidebarInput";
|
|
1598
|
+
var SidebarHeader = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39("div", { ref, "data-sidebar": "header", className: cn("flex flex-col gap-2 p-2", className), ...props }));
|
|
1599
|
+
SidebarHeader.displayName = "SidebarHeader";
|
|
1600
|
+
var SidebarFooter = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39("div", { ref, "data-sidebar": "footer", className: cn("flex flex-col gap-2 p-2", className), ...props }));
|
|
1601
|
+
SidebarFooter.displayName = "SidebarFooter";
|
|
1602
|
+
var SidebarSeparator = React34.forwardRef(
|
|
1603
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx39(Separator5, { ref, "data-sidebar": "separator", className: cn("mx-2 w-auto bg-sidebar-border", className), ...props })
|
|
1604
|
+
);
|
|
1605
|
+
SidebarSeparator.displayName = "SidebarSeparator";
|
|
1606
|
+
var SidebarContent = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39("div", { ref, "data-sidebar": "content", className: cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className), ...props }));
|
|
1607
|
+
SidebarContent.displayName = "SidebarContent";
|
|
1608
|
+
var SidebarGroup = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39("div", { ref, "data-sidebar": "group", className: cn("relative flex w-full min-w-0 flex-col p-2", className), ...props }));
|
|
1609
|
+
SidebarGroup.displayName = "SidebarGroup";
|
|
1610
|
+
var SidebarGroupLabel = React34.forwardRef(
|
|
1611
|
+
({ className, asChild = false, ...props }, ref) => {
|
|
1612
|
+
const Comp = asChild ? Slot4 : "div";
|
|
1613
|
+
return /* @__PURE__ */ jsx39(Comp, { ref, "data-sidebar": "group-label", className: cn("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", className), ...props });
|
|
1614
|
+
}
|
|
1615
|
+
);
|
|
1616
|
+
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
1617
|
+
var SidebarGroupAction = React34.forwardRef(
|
|
1618
|
+
({ className, asChild = false, ...props }, ref) => {
|
|
1619
|
+
const Comp = asChild ? Slot4 : "button";
|
|
1620
|
+
return /* @__PURE__ */ jsx39(Comp, { ref, "data-sidebar": "group-action", className: cn("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform duration-fast ease-standard hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 after:md:hidden", "group-data-[collapsible=icon]:hidden", className), ...props });
|
|
1621
|
+
}
|
|
1622
|
+
);
|
|
1623
|
+
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
1624
|
+
var SidebarGroupContent = React34.forwardRef(
|
|
1625
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx39("div", { ref, "data-sidebar": "group-content", className: cn("w-full text-sm", className), ...props })
|
|
1626
|
+
);
|
|
1627
|
+
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
1628
|
+
var SidebarMenu = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39("ul", { ref, "data-sidebar": "menu", className: cn("flex w-full min-w-0 flex-col gap-1", className), ...props }));
|
|
1629
|
+
SidebarMenu.displayName = "SidebarMenu";
|
|
1630
|
+
var SidebarMenuItem = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39("li", { ref, "data-sidebar": "menu-item", className: cn("group/menu-item relative", className), ...props }));
|
|
1631
|
+
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
1632
|
+
var sidebarMenuButtonVariants = cva7(
|
|
1633
|
+
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
1634
|
+
{
|
|
1635
|
+
variants: {
|
|
1636
|
+
variant: {
|
|
1637
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
1638
|
+
outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
1639
|
+
},
|
|
1640
|
+
size: { default: "h-8 text-sm", sm: "h-7 text-xs", lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0" }
|
|
1641
|
+
},
|
|
1642
|
+
defaultVariants: { variant: "default", size: "default" }
|
|
1643
|
+
}
|
|
1644
|
+
);
|
|
1645
|
+
var SidebarMenuButton = React34.forwardRef(({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className, ...props }, ref) => {
|
|
1646
|
+
const Comp = asChild ? Slot4 : "button";
|
|
1647
|
+
const { isMobile, state } = useSidebar();
|
|
1648
|
+
const button = /* @__PURE__ */ jsx39(Comp, { ref, "data-sidebar": "menu-button", "data-size": size, "data-active": isActive, className: cn(sidebarMenuButtonVariants({ variant, size }), className), ...props });
|
|
1649
|
+
if (!tooltip) return button;
|
|
1650
|
+
if (typeof tooltip === "string") tooltip = { children: tooltip };
|
|
1651
|
+
return /* @__PURE__ */ jsxs18(Tooltip2, { children: [
|
|
1652
|
+
/* @__PURE__ */ jsx39(TooltipTrigger, { asChild: true, children: button }),
|
|
1653
|
+
/* @__PURE__ */ jsx39(TooltipContent, { side: "right", align: "center", hidden: state !== "collapsed" || isMobile, ...tooltip })
|
|
1654
|
+
] });
|
|
1655
|
+
});
|
|
1656
|
+
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
1657
|
+
var SidebarMenuAction = React34.forwardRef(
|
|
1658
|
+
({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
1659
|
+
const Comp = asChild ? Slot4 : "button";
|
|
1660
|
+
return /* @__PURE__ */ jsx39(Comp, { ref, "data-sidebar": "menu-action", className: cn("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform duration-fast ease-standard peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 after:md:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0", className), ...props });
|
|
1661
|
+
}
|
|
1662
|
+
);
|
|
1663
|
+
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
1664
|
+
var SidebarMenuBadge = React34.forwardRef(
|
|
1665
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx39("div", { ref, "data-sidebar": "menu-badge", className: cn("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", className), ...props })
|
|
1666
|
+
);
|
|
1667
|
+
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
1668
|
+
var SidebarMenuSkeleton = React34.forwardRef(
|
|
1669
|
+
({ className, showIcon = false, ...props }, ref) => {
|
|
1670
|
+
const width = React34.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
1671
|
+
return /* @__PURE__ */ jsxs18("div", { ref, "data-sidebar": "menu-skeleton", className: cn("flex h-8 items-center gap-2 rounded-md px-2", className), ...props, children: [
|
|
1672
|
+
showIcon && /* @__PURE__ */ jsx39(Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }),
|
|
1673
|
+
/* @__PURE__ */ jsx39(Skeleton, { className: "h-4 max-w-(--skeleton-width) flex-1", "data-sidebar": "menu-skeleton-text", style: { "--skeleton-width": width } })
|
|
1674
|
+
] });
|
|
1675
|
+
}
|
|
1676
|
+
);
|
|
1677
|
+
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
1678
|
+
var SidebarMenuSub = React34.forwardRef(
|
|
1679
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx39("ul", { ref, "data-sidebar": "menu-sub", className: cn("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", className), ...props })
|
|
1680
|
+
);
|
|
1681
|
+
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
1682
|
+
var SidebarMenuSubItem = React34.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx39("li", { ref, ...props }));
|
|
1683
|
+
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
1684
|
+
var SidebarMenuSubButton = React34.forwardRef(
|
|
1685
|
+
({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
1686
|
+
const Comp = asChild ? Slot4 : "a";
|
|
1687
|
+
return /* @__PURE__ */ jsx39(Comp, { ref, "data-sidebar": "menu-sub-button", "data-size": size, "data-active": isActive, className: cn("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", size === "sm" && "text-xs", size === "md" && "text-sm", "group-data-[collapsible=icon]:hidden", className), ...props });
|
|
1688
|
+
}
|
|
1689
|
+
);
|
|
1690
|
+
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
1691
|
+
|
|
1692
|
+
// src/components/ui/slider.tsx
|
|
1693
|
+
import * as React35 from "react";
|
|
1694
|
+
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
1695
|
+
import { jsx as jsx40, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1696
|
+
var Slider = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs19(
|
|
1697
|
+
SliderPrimitive.Root,
|
|
1698
|
+
{
|
|
1699
|
+
ref,
|
|
1700
|
+
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
1701
|
+
...props,
|
|
1702
|
+
children: [
|
|
1703
|
+
/* @__PURE__ */ jsx40(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ jsx40(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
1704
|
+
/* @__PURE__ */ jsx40(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-all duration-fast ease-standard hover:border-ring/50 hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
|
|
1705
|
+
]
|
|
1706
|
+
}
|
|
1707
|
+
));
|
|
1708
|
+
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
1709
|
+
|
|
1710
|
+
// src/components/ui/sonner.tsx
|
|
1711
|
+
import { Toaster as Sonner, toast } from "sonner";
|
|
1712
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
1713
|
+
var Toaster = ({ theme = "system", ...props }) => {
|
|
1714
|
+
return /* @__PURE__ */ jsx41(
|
|
1715
|
+
Sonner,
|
|
1716
|
+
{
|
|
1717
|
+
theme,
|
|
1718
|
+
className: "toaster group",
|
|
1719
|
+
toastOptions: {
|
|
1720
|
+
classNames: {
|
|
1721
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
1722
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
1723
|
+
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
1724
|
+
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
1725
|
+
}
|
|
1726
|
+
},
|
|
1727
|
+
...props
|
|
1728
|
+
}
|
|
1729
|
+
);
|
|
1730
|
+
};
|
|
1731
|
+
Toaster.displayName = "Toaster";
|
|
1732
|
+
|
|
1733
|
+
// src/components/ui/switch.tsx
|
|
1734
|
+
import * as React36 from "react";
|
|
1735
|
+
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
1736
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
1737
|
+
var Switch = React36.forwardRef(({ className, dir: propDirRaw, ...props }, ref) => {
|
|
1738
|
+
const propDir = propDirRaw === "rtl" ? "rtl" : propDirRaw === "ltr" ? "ltr" : void 0;
|
|
1739
|
+
const [resolvedDir, setResolvedDir] = React36.useState(propDir ?? "ltr");
|
|
1740
|
+
React36.useEffect(() => {
|
|
1741
|
+
if (propDir) {
|
|
1742
|
+
setResolvedDir(propDir);
|
|
1743
|
+
return;
|
|
1744
|
+
}
|
|
1745
|
+
if (typeof document !== "undefined") {
|
|
1746
|
+
const d = document.documentElement.getAttribute("dir") === "rtl" ? "rtl" : "ltr";
|
|
1747
|
+
setResolvedDir(d);
|
|
1748
|
+
}
|
|
1749
|
+
}, [propDir]);
|
|
1750
|
+
return /* @__PURE__ */ jsx42(
|
|
1751
|
+
SwitchPrimitives.Root,
|
|
1752
|
+
{
|
|
1753
|
+
dir: resolvedDir,
|
|
1754
|
+
className: cn(
|
|
1755
|
+
"peer relative inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-fast ease-standard data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
|
|
1756
|
+
className
|
|
1757
|
+
),
|
|
1758
|
+
...props,
|
|
1759
|
+
ref,
|
|
1760
|
+
children: /* @__PURE__ */ jsx42(
|
|
1761
|
+
SwitchPrimitives.Thumb,
|
|
1762
|
+
{
|
|
1763
|
+
className: cn(
|
|
1764
|
+
"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0",
|
|
1765
|
+
"absolute top-1/2 -translate-y-1/2",
|
|
1766
|
+
"start-0 transition-[inset-inline-start] duration-fast ease-standard",
|
|
1767
|
+
"data-[state=checked]:start-[1.25rem] data-[state=unchecked]:start-0"
|
|
1768
|
+
)
|
|
1769
|
+
}
|
|
1770
|
+
)
|
|
1771
|
+
}
|
|
1772
|
+
);
|
|
1773
|
+
});
|
|
1774
|
+
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
1775
|
+
|
|
1776
|
+
// src/components/ui/table.tsx
|
|
1777
|
+
import * as React37 from "react";
|
|
1778
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
1779
|
+
var Table = React37.forwardRef(
|
|
1780
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx43("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx43("table", { ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })
|
|
1781
|
+
);
|
|
1782
|
+
Table.displayName = "Table";
|
|
1783
|
+
var TableHeader = React37.forwardRef(
|
|
1784
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx43("thead", { ref, className: cn("[&_tr]:border-b", className), ...props })
|
|
1785
|
+
);
|
|
1786
|
+
TableHeader.displayName = "TableHeader";
|
|
1787
|
+
var TableBody = React37.forwardRef(
|
|
1788
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx43("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props })
|
|
1789
|
+
);
|
|
1790
|
+
TableBody.displayName = "TableBody";
|
|
1791
|
+
var TableFooter = React37.forwardRef(
|
|
1792
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx43("tfoot", { ref, className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props })
|
|
1793
|
+
);
|
|
1794
|
+
TableFooter.displayName = "TableFooter";
|
|
1795
|
+
var TableRow = React37.forwardRef(
|
|
1796
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
1797
|
+
"tr",
|
|
1798
|
+
{
|
|
1799
|
+
ref,
|
|
1800
|
+
className: cn("border-b transition-colors duration-fast ease-standard data-[state=selected]:bg-muted hover:bg-muted/50", className),
|
|
1801
|
+
...props
|
|
1802
|
+
}
|
|
1803
|
+
)
|
|
1804
|
+
);
|
|
1805
|
+
TableRow.displayName = "TableRow";
|
|
1806
|
+
var TableHead = React37.forwardRef(
|
|
1807
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
1808
|
+
"th",
|
|
1809
|
+
{
|
|
1810
|
+
ref,
|
|
1811
|
+
className: cn(
|
|
1812
|
+
"h-12 px-4 text-start align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pe-0",
|
|
1813
|
+
className
|
|
1814
|
+
),
|
|
1815
|
+
...props
|
|
1816
|
+
}
|
|
1817
|
+
)
|
|
1818
|
+
);
|
|
1819
|
+
TableHead.displayName = "TableHead";
|
|
1820
|
+
var TableCell = React37.forwardRef(
|
|
1821
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx43("td", { ref, className: cn("p-4 align-middle [&:has([role=checkbox])]:pe-0", className), ...props })
|
|
1822
|
+
);
|
|
1823
|
+
TableCell.displayName = "TableCell";
|
|
1824
|
+
var TableCaption = React37.forwardRef(
|
|
1825
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx43("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props })
|
|
1826
|
+
);
|
|
1827
|
+
TableCaption.displayName = "TableCaption";
|
|
1828
|
+
|
|
1829
|
+
// src/components/ui/tabs.tsx
|
|
1830
|
+
import * as React38 from "react";
|
|
1831
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
1832
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
1833
|
+
var Tabs = TabsPrimitive.Root;
|
|
1834
|
+
var TabsList = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
1835
|
+
TabsPrimitive.List,
|
|
1836
|
+
{
|
|
1837
|
+
ref,
|
|
1838
|
+
className: cn(
|
|
1839
|
+
"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
|
|
1840
|
+
className
|
|
1841
|
+
),
|
|
1842
|
+
...props
|
|
1843
|
+
}
|
|
1844
|
+
));
|
|
1845
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
1846
|
+
var TabsTrigger = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
1847
|
+
TabsPrimitive.Trigger,
|
|
1848
|
+
{
|
|
1849
|
+
ref,
|
|
1850
|
+
className: cn(
|
|
1851
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all duration-fast ease-standard data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
1852
|
+
className
|
|
1853
|
+
),
|
|
1854
|
+
...props
|
|
1855
|
+
}
|
|
1856
|
+
));
|
|
1857
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
1858
|
+
var TabsContent = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
1859
|
+
TabsPrimitive.Content,
|
|
1860
|
+
{
|
|
1861
|
+
ref,
|
|
1862
|
+
className: cn(
|
|
1863
|
+
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
1864
|
+
className
|
|
1865
|
+
),
|
|
1866
|
+
...props
|
|
1867
|
+
}
|
|
1868
|
+
));
|
|
1869
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
1870
|
+
|
|
1871
|
+
// src/components/ui/textarea.tsx
|
|
1872
|
+
import * as React39 from "react";
|
|
1873
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
1874
|
+
var Textarea = React39.forwardRef(({ className, ...props }, ref) => {
|
|
1875
|
+
return /* @__PURE__ */ jsx45(
|
|
1876
|
+
"textarea",
|
|
1877
|
+
{
|
|
1878
|
+
className: cn(
|
|
1879
|
+
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background transition-colors duration-fast ease-standard hover:border-ring/50 placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1880
|
+
className
|
|
1881
|
+
),
|
|
1882
|
+
ref,
|
|
1883
|
+
...props
|
|
1884
|
+
}
|
|
1885
|
+
);
|
|
1886
|
+
});
|
|
1887
|
+
Textarea.displayName = "Textarea";
|
|
1888
|
+
|
|
1889
|
+
// src/components/ui/toggle.tsx
|
|
1890
|
+
import * as React40 from "react";
|
|
1891
|
+
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
1892
|
+
import { cva as cva8 } from "class-variance-authority";
|
|
1893
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
1894
|
+
var toggleVariants = cva8(
|
|
1895
|
+
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors duration-fast ease-standard hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-primary/10 data-[state=on]:text-accent-foreground",
|
|
1896
|
+
{
|
|
1897
|
+
variants: {
|
|
1898
|
+
variant: {
|
|
1899
|
+
default: "bg-transparent",
|
|
1900
|
+
outline: "border border-input bg-transparent hover:border-ring/50 hover:bg-primary/10 hover:text-primary"
|
|
1901
|
+
},
|
|
1902
|
+
size: {
|
|
1903
|
+
default: "h-10 px-3",
|
|
1904
|
+
sm: "h-9 px-2.5",
|
|
1905
|
+
lg: "h-11 px-5"
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
defaultVariants: { variant: "default", size: "default" }
|
|
1909
|
+
}
|
|
1910
|
+
);
|
|
1911
|
+
var Toggle = React40.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx46(TogglePrimitive.Root, { ref, className: cn(toggleVariants({ variant, size, className })), ...props }));
|
|
1912
|
+
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
1913
|
+
|
|
1914
|
+
// src/components/ui/toggle-group.tsx
|
|
1915
|
+
import * as React41 from "react";
|
|
1916
|
+
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
1917
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
1918
|
+
var ToggleGroupContext = React41.createContext({
|
|
1919
|
+
size: "default",
|
|
1920
|
+
variant: "default"
|
|
1921
|
+
});
|
|
1922
|
+
var ToggleGroup = React41.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx47(ToggleGroupPrimitive.Root, { ref, className: cn("flex items-center justify-center gap-1", className), ...props, children: /* @__PURE__ */ jsx47(ToggleGroupContext.Provider, { value: { variant, size }, children }) }));
|
|
1923
|
+
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
1924
|
+
var ToggleGroupItem = React41.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
1925
|
+
const context = React41.useContext(ToggleGroupContext);
|
|
1926
|
+
return /* @__PURE__ */ jsx47(
|
|
1927
|
+
ToggleGroupPrimitive.Item,
|
|
1928
|
+
{
|
|
1929
|
+
ref,
|
|
1930
|
+
className: cn(toggleVariants({ variant: context.variant || variant, size: context.size || size }), className),
|
|
1931
|
+
...props,
|
|
1932
|
+
children
|
|
1933
|
+
}
|
|
1934
|
+
);
|
|
1935
|
+
});
|
|
1936
|
+
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
1937
|
+
|
|
1938
|
+
export {
|
|
1939
|
+
cn,
|
|
1940
|
+
formatRelativeTime,
|
|
1941
|
+
Accordion,
|
|
1942
|
+
AccordionItem,
|
|
1943
|
+
AccordionTrigger,
|
|
1944
|
+
AccordionContent,
|
|
1945
|
+
Alert,
|
|
1946
|
+
AlertTitle,
|
|
1947
|
+
AlertDescription,
|
|
1948
|
+
buttonVariants,
|
|
1949
|
+
Button,
|
|
1950
|
+
AlertDialog,
|
|
1951
|
+
AlertDialogTrigger,
|
|
1952
|
+
AlertDialogPortal,
|
|
1953
|
+
AlertDialogOverlay,
|
|
1954
|
+
AlertDialogContent,
|
|
1955
|
+
AlertDialogHeader,
|
|
1956
|
+
AlertDialogFooter,
|
|
1957
|
+
AlertDialogTitle,
|
|
1958
|
+
AlertDialogDescription,
|
|
1959
|
+
AlertDialogAction,
|
|
1960
|
+
AlertDialogCancel,
|
|
1961
|
+
AspectRatio,
|
|
1962
|
+
Avatar,
|
|
1963
|
+
AvatarImage,
|
|
1964
|
+
AvatarFallback,
|
|
1965
|
+
badgeVariants,
|
|
1966
|
+
Badge,
|
|
1967
|
+
Breadcrumb,
|
|
1968
|
+
BreadcrumbList,
|
|
1969
|
+
BreadcrumbItem,
|
|
1970
|
+
BreadcrumbLink,
|
|
1971
|
+
BreadcrumbPage,
|
|
1972
|
+
BreadcrumbSeparator,
|
|
1973
|
+
BreadcrumbEllipsis,
|
|
1974
|
+
Calendar,
|
|
1975
|
+
Card,
|
|
1976
|
+
CardHeader,
|
|
1977
|
+
CardTitle,
|
|
1978
|
+
CardDescription,
|
|
1979
|
+
CardContent,
|
|
1980
|
+
CardFooter,
|
|
1981
|
+
Carousel,
|
|
1982
|
+
CarouselContent,
|
|
1983
|
+
CarouselItem,
|
|
1984
|
+
CarouselPrevious,
|
|
1985
|
+
CarouselNext,
|
|
1986
|
+
ChartContainer,
|
|
1987
|
+
ChartStyle,
|
|
1988
|
+
ChartTooltip,
|
|
1989
|
+
ChartTooltipContent,
|
|
1990
|
+
ChartLegend,
|
|
1991
|
+
ChartLegendContent,
|
|
1992
|
+
Checkbox,
|
|
1993
|
+
Collapsible,
|
|
1994
|
+
CollapsibleTrigger2 as CollapsibleTrigger,
|
|
1995
|
+
CollapsibleContent2 as CollapsibleContent,
|
|
1996
|
+
Dialog,
|
|
1997
|
+
DialogTrigger,
|
|
1998
|
+
DialogPortal,
|
|
1999
|
+
DialogClose,
|
|
2000
|
+
DialogOverlay,
|
|
2001
|
+
DialogContent,
|
|
2002
|
+
DialogHeader,
|
|
2003
|
+
DialogFooter,
|
|
2004
|
+
DialogTitle,
|
|
2005
|
+
DialogDescription,
|
|
2006
|
+
Command,
|
|
2007
|
+
CommandDialog,
|
|
2008
|
+
CommandInput,
|
|
2009
|
+
CommandInputPrimitive,
|
|
2010
|
+
CommandList,
|
|
2011
|
+
CommandEmpty,
|
|
2012
|
+
CommandGroup,
|
|
2013
|
+
CommandSeparator,
|
|
2014
|
+
CommandItem,
|
|
2015
|
+
CommandShortcut,
|
|
2016
|
+
ContextMenu,
|
|
2017
|
+
ContextMenuTrigger,
|
|
2018
|
+
ContextMenuGroup,
|
|
2019
|
+
ContextMenuPortal,
|
|
2020
|
+
ContextMenuSub,
|
|
2021
|
+
ContextMenuRadioGroup,
|
|
2022
|
+
ContextMenuSubTrigger,
|
|
2023
|
+
ContextMenuSubContent,
|
|
2024
|
+
ContextMenuContent,
|
|
2025
|
+
ContextMenuItem,
|
|
2026
|
+
ContextMenuCheckboxItem,
|
|
2027
|
+
ContextMenuRadioItem,
|
|
2028
|
+
ContextMenuLabel,
|
|
2029
|
+
ContextMenuSeparator,
|
|
2030
|
+
ContextMenuShortcut,
|
|
2031
|
+
DirectionalArrow,
|
|
2032
|
+
Drawer,
|
|
2033
|
+
DrawerTrigger,
|
|
2034
|
+
DrawerPortal,
|
|
2035
|
+
DrawerClose,
|
|
2036
|
+
DrawerOverlay,
|
|
2037
|
+
DrawerContent,
|
|
2038
|
+
DrawerHeader,
|
|
2039
|
+
DrawerFooter,
|
|
2040
|
+
DrawerTitle,
|
|
2041
|
+
DrawerDescription,
|
|
2042
|
+
DropdownMenu,
|
|
2043
|
+
DropdownMenuTrigger,
|
|
2044
|
+
DropdownMenuGroup,
|
|
2045
|
+
DropdownMenuPortal,
|
|
2046
|
+
DropdownMenuSub,
|
|
2047
|
+
DropdownMenuRadioGroup,
|
|
2048
|
+
DropdownMenuSubTrigger,
|
|
2049
|
+
DropdownMenuSubContent,
|
|
2050
|
+
DropdownMenuContent,
|
|
2051
|
+
DropdownMenuItem,
|
|
2052
|
+
DropdownMenuCheckboxItem,
|
|
2053
|
+
DropdownMenuRadioItem,
|
|
2054
|
+
DropdownMenuLabel,
|
|
2055
|
+
DropdownMenuSeparator,
|
|
2056
|
+
DropdownMenuShortcut,
|
|
2057
|
+
Label3 as Label,
|
|
2058
|
+
Form,
|
|
2059
|
+
FormField,
|
|
2060
|
+
useFormField,
|
|
2061
|
+
FormItem,
|
|
2062
|
+
FormLabel,
|
|
2063
|
+
FormControl,
|
|
2064
|
+
FormDescription,
|
|
2065
|
+
FormMessage,
|
|
2066
|
+
HoverCard,
|
|
2067
|
+
HoverCardTrigger,
|
|
2068
|
+
HoverCardContent,
|
|
2069
|
+
Input,
|
|
2070
|
+
InputOTP,
|
|
2071
|
+
InputOTPGroup,
|
|
2072
|
+
InputOTPSlot,
|
|
2073
|
+
InputOTPSeparator,
|
|
2074
|
+
LinkifyText,
|
|
2075
|
+
MenubarMenu,
|
|
2076
|
+
MenubarGroup,
|
|
2077
|
+
MenubarPortal,
|
|
2078
|
+
MenubarSub,
|
|
2079
|
+
MenubarRadioGroup,
|
|
2080
|
+
Menubar,
|
|
2081
|
+
MenubarTrigger,
|
|
2082
|
+
MenubarSubTrigger,
|
|
2083
|
+
MenubarSubContent,
|
|
2084
|
+
MenubarContent,
|
|
2085
|
+
MenubarItem,
|
|
2086
|
+
MenubarCheckboxItem,
|
|
2087
|
+
MenubarRadioItem,
|
|
2088
|
+
MenubarLabel,
|
|
2089
|
+
MenubarSeparator,
|
|
2090
|
+
MenubarShortcut,
|
|
2091
|
+
NativeSelect,
|
|
2092
|
+
NavigationMenu,
|
|
2093
|
+
NavigationMenuList,
|
|
2094
|
+
NavigationMenuItem,
|
|
2095
|
+
navigationMenuTriggerStyle,
|
|
2096
|
+
NavigationMenuTrigger,
|
|
2097
|
+
NavigationMenuContent,
|
|
2098
|
+
NavigationMenuLink,
|
|
2099
|
+
NavigationMenuViewport,
|
|
2100
|
+
NavigationMenuIndicator,
|
|
2101
|
+
Pagination,
|
|
2102
|
+
PaginationContent,
|
|
2103
|
+
PaginationItem,
|
|
2104
|
+
PaginationLink,
|
|
2105
|
+
PaginationPrevious,
|
|
2106
|
+
PaginationNext,
|
|
2107
|
+
PaginationEllipsis,
|
|
2108
|
+
Popover,
|
|
2109
|
+
PopoverTrigger,
|
|
2110
|
+
PopoverContent,
|
|
2111
|
+
Progress,
|
|
2112
|
+
RadioGroup4 as RadioGroup,
|
|
2113
|
+
RadioGroupItem,
|
|
2114
|
+
ResizablePanelGroup,
|
|
2115
|
+
ResizablePanel,
|
|
2116
|
+
ResizableHandle,
|
|
2117
|
+
ScrollArea,
|
|
2118
|
+
ScrollBar,
|
|
2119
|
+
Select,
|
|
2120
|
+
SelectGroup,
|
|
2121
|
+
SelectValue,
|
|
2122
|
+
SelectTrigger,
|
|
2123
|
+
SelectScrollUpButton,
|
|
2124
|
+
SelectScrollDownButton,
|
|
2125
|
+
SelectContent,
|
|
2126
|
+
SelectLabel,
|
|
2127
|
+
SelectItem,
|
|
2128
|
+
SelectSeparator,
|
|
2129
|
+
Separator5 as Separator,
|
|
2130
|
+
Sheet,
|
|
2131
|
+
SheetTrigger,
|
|
2132
|
+
SheetClose,
|
|
2133
|
+
SheetPortal,
|
|
2134
|
+
SheetOverlay,
|
|
2135
|
+
SheetContent,
|
|
2136
|
+
SheetHeader,
|
|
2137
|
+
SheetFooter,
|
|
2138
|
+
SheetTitle,
|
|
2139
|
+
SheetDescription,
|
|
2140
|
+
Skeleton,
|
|
2141
|
+
TooltipProvider,
|
|
2142
|
+
Tooltip2 as Tooltip,
|
|
2143
|
+
TooltipTrigger,
|
|
2144
|
+
TooltipContent,
|
|
2145
|
+
useSidebar,
|
|
2146
|
+
useOptionalSidebar,
|
|
2147
|
+
SidebarProvider,
|
|
2148
|
+
Sidebar,
|
|
2149
|
+
SidebarTrigger,
|
|
2150
|
+
SidebarRail,
|
|
2151
|
+
SidebarInset,
|
|
2152
|
+
SidebarInput,
|
|
2153
|
+
SidebarHeader,
|
|
2154
|
+
SidebarFooter,
|
|
2155
|
+
SidebarSeparator,
|
|
2156
|
+
SidebarContent,
|
|
2157
|
+
SidebarGroup,
|
|
2158
|
+
SidebarGroupLabel,
|
|
2159
|
+
SidebarGroupAction,
|
|
2160
|
+
SidebarGroupContent,
|
|
2161
|
+
SidebarMenu,
|
|
2162
|
+
SidebarMenuItem,
|
|
2163
|
+
SidebarMenuButton,
|
|
2164
|
+
SidebarMenuAction,
|
|
2165
|
+
SidebarMenuBadge,
|
|
2166
|
+
SidebarMenuSkeleton,
|
|
2167
|
+
SidebarMenuSub,
|
|
2168
|
+
SidebarMenuSubItem,
|
|
2169
|
+
SidebarMenuSubButton,
|
|
2170
|
+
Slider,
|
|
2171
|
+
toast,
|
|
2172
|
+
Toaster,
|
|
2173
|
+
Switch,
|
|
2174
|
+
Table,
|
|
2175
|
+
TableHeader,
|
|
2176
|
+
TableBody,
|
|
2177
|
+
TableFooter,
|
|
2178
|
+
TableRow,
|
|
2179
|
+
TableHead,
|
|
2180
|
+
TableCell,
|
|
2181
|
+
TableCaption,
|
|
2182
|
+
Tabs,
|
|
2183
|
+
TabsList,
|
|
2184
|
+
TabsTrigger,
|
|
2185
|
+
TabsContent,
|
|
2186
|
+
Textarea,
|
|
2187
|
+
toggleVariants,
|
|
2188
|
+
Toggle,
|
|
2189
|
+
ToggleGroup,
|
|
2190
|
+
ToggleGroupItem
|
|
2191
|
+
};
|
|
2192
|
+
//# sourceMappingURL=chunk-XXP2ZYPY.js.map
|