@lincros-ui/components 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +278 -217
- package/dist/index.js.map +1 -1
- package/package.json +11 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as React37 from 'react';
|
|
2
|
+
import React37__default, { memo, useMemo, useCallback, useState, useRef, useEffect } from 'react';
|
|
3
3
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
4
|
import { ChevronDown, ArrowLeft, ArrowRight, Check, X, Search, ChevronRight, Circle, Minimize2, Maximize2, Dot, ChevronUp, PanelLeft, Clock, AlertCircle, CheckCircle, Shield, AlertTriangle, Users, RefreshCw, Home, ExternalLink, LogIn, Server, Key, MoreHorizontal, ChevronLeft, Phone, Video, Info, MoreVertical, Paperclip, Smile, Mic, Send, GripVertical, Loader2, Bot, User, Building2, UserCheck, ClipboardList, ChevronsLeft, ChevronsRight, Bold, Italic, List, ListOrdered, Quote, Code, Link2, Image, Plus, LayoutGrid, MessageSquare, FileJson, Activity, Database, Hash, Copy, Zap, Network, Timer, Eye, Workflow, GitBranch, Terminal, Pause, Play, Filter, Trash2, Download, FileText, History, MessageCircle, QrCode, TrendingUp, TrendingDown, BarChart3, XCircle, CheckCircle2, Wifi, WifiOff, Monitor, Navigation, Bell, Settings, UserCog, Car, LogOut, TestTube, Save, Bug, MapPin, CheckCheck } from 'lucide-react';
|
|
5
5
|
import { clsx } from 'clsx';
|
|
@@ -69,7 +69,7 @@ function cn(...inputs) {
|
|
|
69
69
|
return twMerge(clsx(inputs));
|
|
70
70
|
}
|
|
71
71
|
var Accordion = AccordionPrimitive.Root;
|
|
72
|
-
var AccordionItem =
|
|
72
|
+
var AccordionItem = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
73
73
|
AccordionPrimitive.Item,
|
|
74
74
|
{
|
|
75
75
|
ref,
|
|
@@ -78,7 +78,7 @@ var AccordionItem = React36.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
78
78
|
}
|
|
79
79
|
));
|
|
80
80
|
AccordionItem.displayName = "AccordionItem";
|
|
81
|
-
var AccordionTrigger =
|
|
81
|
+
var AccordionTrigger = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
82
82
|
AccordionPrimitive.Trigger,
|
|
83
83
|
{
|
|
84
84
|
ref,
|
|
@@ -94,7 +94,7 @@ var AccordionTrigger = React36.forwardRef(({ className, children, ...props }, re
|
|
|
94
94
|
}
|
|
95
95
|
) }));
|
|
96
96
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
97
|
-
var AccordionContent =
|
|
97
|
+
var AccordionContent = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
98
98
|
AccordionPrimitive.Content,
|
|
99
99
|
{
|
|
100
100
|
ref,
|
|
@@ -147,7 +147,7 @@ var AlertIcons = {
|
|
|
147
147
|
] })
|
|
148
148
|
};
|
|
149
149
|
var CloseIcon = () => /* @__PURE__ */ jsx("svg", { className: "icon-size", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M18 6L6 18M6 6l12 12", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
150
|
-
var Alert =
|
|
150
|
+
var Alert = React37.forwardRef(
|
|
151
151
|
({ className, variant, size, icon, closable, onClose, children, ...props }, ref) => {
|
|
152
152
|
const defaultIcon = variant && AlertIcons[variant];
|
|
153
153
|
const displayIcon = icon !== void 0 ? icon : defaultIcon;
|
|
@@ -176,7 +176,7 @@ var Alert = React36.forwardRef(
|
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
178
|
Alert.displayName = "Alert";
|
|
179
|
-
var AlertTitle =
|
|
179
|
+
var AlertTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
180
180
|
"h5",
|
|
181
181
|
{
|
|
182
182
|
ref,
|
|
@@ -185,7 +185,7 @@ var AlertTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
185
185
|
}
|
|
186
186
|
));
|
|
187
187
|
AlertTitle.displayName = "AlertTitle";
|
|
188
|
-
var AlertDescription =
|
|
188
|
+
var AlertDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
189
189
|
"div",
|
|
190
190
|
{
|
|
191
191
|
ref,
|
|
@@ -253,7 +253,7 @@ var LoadingSpinner = () => /* @__PURE__ */ jsxs("svg", { className: "icon-size a
|
|
|
253
253
|
}
|
|
254
254
|
)
|
|
255
255
|
] });
|
|
256
|
-
var Button =
|
|
256
|
+
var Button = React37.forwardRef(
|
|
257
257
|
({
|
|
258
258
|
className,
|
|
259
259
|
variant,
|
|
@@ -300,7 +300,7 @@ Button.displayName = "Button";
|
|
|
300
300
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
301
301
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
302
302
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
303
|
-
var AlertDialogOverlay =
|
|
303
|
+
var AlertDialogOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
304
304
|
AlertDialogPrimitive.Overlay,
|
|
305
305
|
{
|
|
306
306
|
className: cn(
|
|
@@ -312,7 +312,7 @@ var AlertDialogOverlay = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
312
312
|
}
|
|
313
313
|
));
|
|
314
314
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
315
|
-
var AlertDialogContent =
|
|
315
|
+
var AlertDialogContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
316
316
|
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
317
317
|
/* @__PURE__ */ jsx(
|
|
318
318
|
AlertDialogPrimitive.Content,
|
|
@@ -355,7 +355,7 @@ var AlertDialogFooter = ({
|
|
|
355
355
|
}
|
|
356
356
|
);
|
|
357
357
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
358
|
-
var AlertDialogTitle =
|
|
358
|
+
var AlertDialogTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
359
359
|
AlertDialogPrimitive.Title,
|
|
360
360
|
{
|
|
361
361
|
ref,
|
|
@@ -364,7 +364,7 @@ var AlertDialogTitle = React36.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
364
364
|
}
|
|
365
365
|
));
|
|
366
366
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
367
|
-
var AlertDialogDescription =
|
|
367
|
+
var AlertDialogDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
368
368
|
AlertDialogPrimitive.Description,
|
|
369
369
|
{
|
|
370
370
|
ref,
|
|
@@ -373,7 +373,7 @@ var AlertDialogDescription = React36.forwardRef(({ className, ...props }, ref) =
|
|
|
373
373
|
}
|
|
374
374
|
));
|
|
375
375
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
376
|
-
var AlertDialogAction =
|
|
376
|
+
var AlertDialogAction = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
377
377
|
AlertDialogPrimitive.Action,
|
|
378
378
|
{
|
|
379
379
|
ref,
|
|
@@ -382,7 +382,7 @@ var AlertDialogAction = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
382
382
|
}
|
|
383
383
|
));
|
|
384
384
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
385
|
-
var AlertDialogCancel =
|
|
385
|
+
var AlertDialogCancel = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
386
386
|
AlertDialogPrimitive.Cancel,
|
|
387
387
|
{
|
|
388
388
|
ref,
|
|
@@ -396,7 +396,7 @@ var AlertDialogCancel = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
396
396
|
));
|
|
397
397
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
398
398
|
var AspectRatio = AspectRatioPrimitive.Root;
|
|
399
|
-
var Avatar =
|
|
399
|
+
var Avatar = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
400
400
|
AvatarPrimitive.Root,
|
|
401
401
|
{
|
|
402
402
|
ref,
|
|
@@ -408,7 +408,7 @@ var Avatar = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
408
408
|
}
|
|
409
409
|
));
|
|
410
410
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
411
|
-
var AvatarImage =
|
|
411
|
+
var AvatarImage = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
412
412
|
AvatarPrimitive.Image,
|
|
413
413
|
{
|
|
414
414
|
ref,
|
|
@@ -417,7 +417,7 @@ var AvatarImage = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
417
417
|
}
|
|
418
418
|
));
|
|
419
419
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
420
|
-
var AvatarFallback =
|
|
420
|
+
var AvatarFallback = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
421
421
|
AvatarPrimitive.Fallback,
|
|
422
422
|
{
|
|
423
423
|
ref,
|
|
@@ -490,7 +490,7 @@ var StatusDot = ({ variant }) => {
|
|
|
490
490
|
const dotColor = variant.includes("success") ? "bg-acorde-success" : variant.includes("warning") ? "bg-acorde-warning" : variant.includes("error") ? "bg-acorde-error" : variant.includes("info") ? "bg-acorde-info" : variant.includes("acorde") ? "bg-acorde-primary" : "bg-muted-foreground";
|
|
491
491
|
return /* @__PURE__ */ jsx("span", { className: `w-2 h-2 rounded-full ${dotColor} mr-1` });
|
|
492
492
|
};
|
|
493
|
-
var Badge =
|
|
493
|
+
var Badge = React37.forwardRef(
|
|
494
494
|
({
|
|
495
495
|
className,
|
|
496
496
|
variant,
|
|
@@ -525,7 +525,7 @@ var Badge = React36.forwardRef(
|
|
|
525
525
|
}
|
|
526
526
|
);
|
|
527
527
|
Badge.displayName = "Badge";
|
|
528
|
-
var CountBadge =
|
|
528
|
+
var CountBadge = React37.forwardRef(
|
|
529
529
|
({ count: count2, max = 99, showZero = false, ...props }, ref) => {
|
|
530
530
|
if (count2 === 0 && !showZero) return null;
|
|
531
531
|
const displayCount = count2 > max ? `${max}+` : count2.toString();
|
|
@@ -542,7 +542,7 @@ var CountBadge = React36.forwardRef(
|
|
|
542
542
|
}
|
|
543
543
|
);
|
|
544
544
|
CountBadge.displayName = "CountBadge";
|
|
545
|
-
var StatusBadge =
|
|
545
|
+
var StatusBadge = React37.forwardRef(
|
|
546
546
|
({ status, ...props }, ref) => {
|
|
547
547
|
const statusConfig = {
|
|
548
548
|
online: { variant: "success", text: "Online" },
|
|
@@ -565,7 +565,7 @@ var StatusBadge = React36.forwardRef(
|
|
|
565
565
|
}
|
|
566
566
|
);
|
|
567
567
|
StatusBadge.displayName = "StatusBadge";
|
|
568
|
-
var NotificationBadge =
|
|
568
|
+
var NotificationBadge = React37.forwardRef(
|
|
569
569
|
({ position = "top-right", className, ...props }, ref) => {
|
|
570
570
|
const positionClasses = {
|
|
571
571
|
"top-right": "-top-1 -right-1",
|
|
@@ -589,7 +589,7 @@ var NotificationBadge = React36.forwardRef(
|
|
|
589
589
|
}
|
|
590
590
|
);
|
|
591
591
|
NotificationBadge.displayName = "NotificationBadge";
|
|
592
|
-
var BadgeGroup =
|
|
592
|
+
var BadgeGroup = React37.forwardRef(
|
|
593
593
|
({ className, spacing = "md", ...props }, ref) => {
|
|
594
594
|
const spacingClasses = {
|
|
595
595
|
sm: "gap-1",
|
|
@@ -607,9 +607,9 @@ var BadgeGroup = React36.forwardRef(
|
|
|
607
607
|
}
|
|
608
608
|
);
|
|
609
609
|
BadgeGroup.displayName = "BadgeGroup";
|
|
610
|
-
var Breadcrumb =
|
|
610
|
+
var Breadcrumb = React37.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
611
611
|
Breadcrumb.displayName = "Breadcrumb";
|
|
612
|
-
var BreadcrumbList =
|
|
612
|
+
var BreadcrumbList = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
613
613
|
"ol",
|
|
614
614
|
{
|
|
615
615
|
ref,
|
|
@@ -621,7 +621,7 @@ var BreadcrumbList = React36.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
621
621
|
}
|
|
622
622
|
));
|
|
623
623
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
624
|
-
var BreadcrumbItem =
|
|
624
|
+
var BreadcrumbItem = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
625
625
|
"li",
|
|
626
626
|
{
|
|
627
627
|
ref,
|
|
@@ -630,7 +630,7 @@ var BreadcrumbItem = React36.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
630
630
|
}
|
|
631
631
|
));
|
|
632
632
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
633
|
-
var BreadcrumbLink =
|
|
633
|
+
var BreadcrumbLink = React37.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
634
634
|
const Comp = asChild ? Slot : "a";
|
|
635
635
|
return /* @__PURE__ */ jsx(
|
|
636
636
|
Comp,
|
|
@@ -642,7 +642,7 @@ var BreadcrumbLink = React36.forwardRef(({ asChild, className, ...props }, ref)
|
|
|
642
642
|
);
|
|
643
643
|
});
|
|
644
644
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
645
|
-
var BreadcrumbPage =
|
|
645
|
+
var BreadcrumbPage = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
646
646
|
"span",
|
|
647
647
|
{
|
|
648
648
|
ref,
|
|
@@ -779,7 +779,7 @@ var cardVariants = cva(
|
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
);
|
|
782
|
-
var Card =
|
|
782
|
+
var Card = React37.forwardRef(
|
|
783
783
|
({ className, variant, size, elevation, interactive, asChild = false, ...props }, ref) => {
|
|
784
784
|
const Comp = asChild ? Slot : "div";
|
|
785
785
|
return /* @__PURE__ */ jsx(
|
|
@@ -793,7 +793,7 @@ var Card = React36.forwardRef(
|
|
|
793
793
|
}
|
|
794
794
|
);
|
|
795
795
|
Card.displayName = "Card";
|
|
796
|
-
var CardHeader =
|
|
796
|
+
var CardHeader = React37.forwardRef(
|
|
797
797
|
({ className, variant = "default", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
798
798
|
"div",
|
|
799
799
|
{
|
|
@@ -812,7 +812,7 @@ var CardHeader = React36.forwardRef(
|
|
|
812
812
|
)
|
|
813
813
|
);
|
|
814
814
|
CardHeader.displayName = "CardHeader";
|
|
815
|
-
var CardTitle =
|
|
815
|
+
var CardTitle = React37.forwardRef(
|
|
816
816
|
({ className, level = "h3", size = "default", ...props }, ref) => {
|
|
817
817
|
const Comp = level;
|
|
818
818
|
return /* @__PURE__ */ jsx(
|
|
@@ -835,7 +835,7 @@ var CardTitle = React36.forwardRef(
|
|
|
835
835
|
}
|
|
836
836
|
);
|
|
837
837
|
CardTitle.displayName = "CardTitle";
|
|
838
|
-
var CardDescription =
|
|
838
|
+
var CardDescription = React37.forwardRef(
|
|
839
839
|
({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
840
840
|
"p",
|
|
841
841
|
{
|
|
@@ -854,7 +854,7 @@ var CardDescription = React36.forwardRef(
|
|
|
854
854
|
)
|
|
855
855
|
);
|
|
856
856
|
CardDescription.displayName = "CardDescription";
|
|
857
|
-
var CardContent =
|
|
857
|
+
var CardContent = React37.forwardRef(
|
|
858
858
|
({ className, noPadding = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
859
859
|
"div",
|
|
860
860
|
{
|
|
@@ -868,7 +868,7 @@ var CardContent = React36.forwardRef(
|
|
|
868
868
|
)
|
|
869
869
|
);
|
|
870
870
|
CardContent.displayName = "CardContent";
|
|
871
|
-
var CardFooter =
|
|
871
|
+
var CardFooter = React37.forwardRef(
|
|
872
872
|
({ className, variant = "default", justify = "start", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
873
873
|
"div",
|
|
874
874
|
{
|
|
@@ -894,7 +894,7 @@ var CardFooter = React36.forwardRef(
|
|
|
894
894
|
)
|
|
895
895
|
);
|
|
896
896
|
CardFooter.displayName = "CardFooter";
|
|
897
|
-
var CardWithIcon =
|
|
897
|
+
var CardWithIcon = React37.forwardRef(
|
|
898
898
|
({ icon, iconPosition = "top", children, ...props }, ref) => /* @__PURE__ */ jsxs(Card, { ...props, ref, children: [
|
|
899
899
|
icon && iconPosition === "top" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
900
900
|
/* @__PURE__ */ jsx("div", { className: "flex justify-center mb-4", children: /* @__PURE__ */ jsx("div", { className: "p-3 rounded-full bg-primary/10 text-primary", children: icon }) }),
|
|
@@ -908,15 +908,15 @@ var CardWithIcon = React36.forwardRef(
|
|
|
908
908
|
] })
|
|
909
909
|
);
|
|
910
910
|
CardWithIcon.displayName = "CardWithIcon";
|
|
911
|
-
var CarouselContext =
|
|
911
|
+
var CarouselContext = React37.createContext(null);
|
|
912
912
|
function useCarousel() {
|
|
913
|
-
const context =
|
|
913
|
+
const context = React37.useContext(CarouselContext);
|
|
914
914
|
if (!context) {
|
|
915
915
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
916
916
|
}
|
|
917
917
|
return context;
|
|
918
918
|
}
|
|
919
|
-
var Carousel =
|
|
919
|
+
var Carousel = React37.forwardRef(
|
|
920
920
|
({
|
|
921
921
|
orientation = "horizontal",
|
|
922
922
|
opts,
|
|
@@ -933,22 +933,22 @@ var Carousel = React36.forwardRef(
|
|
|
933
933
|
},
|
|
934
934
|
plugins
|
|
935
935
|
);
|
|
936
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
937
|
-
const [canScrollNext, setCanScrollNext] =
|
|
938
|
-
const onSelect =
|
|
936
|
+
const [canScrollPrev, setCanScrollPrev] = React37.useState(false);
|
|
937
|
+
const [canScrollNext, setCanScrollNext] = React37.useState(false);
|
|
938
|
+
const onSelect = React37.useCallback((api2) => {
|
|
939
939
|
if (!api2) {
|
|
940
940
|
return;
|
|
941
941
|
}
|
|
942
942
|
setCanScrollPrev(api2.canScrollPrev());
|
|
943
943
|
setCanScrollNext(api2.canScrollNext());
|
|
944
944
|
}, []);
|
|
945
|
-
const scrollPrev =
|
|
945
|
+
const scrollPrev = React37.useCallback(() => {
|
|
946
946
|
api?.scrollPrev();
|
|
947
947
|
}, [api]);
|
|
948
|
-
const scrollNext =
|
|
948
|
+
const scrollNext = React37.useCallback(() => {
|
|
949
949
|
api?.scrollNext();
|
|
950
950
|
}, [api]);
|
|
951
|
-
const handleKeyDown =
|
|
951
|
+
const handleKeyDown = React37.useCallback(
|
|
952
952
|
(event) => {
|
|
953
953
|
if (event.key === "ArrowLeft") {
|
|
954
954
|
event.preventDefault();
|
|
@@ -960,13 +960,13 @@ var Carousel = React36.forwardRef(
|
|
|
960
960
|
},
|
|
961
961
|
[scrollPrev, scrollNext]
|
|
962
962
|
);
|
|
963
|
-
|
|
963
|
+
React37.useEffect(() => {
|
|
964
964
|
if (!api || !setApi) {
|
|
965
965
|
return;
|
|
966
966
|
}
|
|
967
967
|
setApi(api);
|
|
968
968
|
}, [api, setApi]);
|
|
969
|
-
|
|
969
|
+
React37.useEffect(() => {
|
|
970
970
|
if (!api) {
|
|
971
971
|
return;
|
|
972
972
|
}
|
|
@@ -1007,7 +1007,7 @@ var Carousel = React36.forwardRef(
|
|
|
1007
1007
|
}
|
|
1008
1008
|
);
|
|
1009
1009
|
Carousel.displayName = "Carousel";
|
|
1010
|
-
var CarouselContent =
|
|
1010
|
+
var CarouselContent = React37.forwardRef(({ className, ...props }, ref) => {
|
|
1011
1011
|
const { carouselRef, orientation } = useCarousel();
|
|
1012
1012
|
return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
1013
1013
|
"div",
|
|
@@ -1023,7 +1023,7 @@ var CarouselContent = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
1023
1023
|
) });
|
|
1024
1024
|
});
|
|
1025
1025
|
CarouselContent.displayName = "CarouselContent";
|
|
1026
|
-
var CarouselItem =
|
|
1026
|
+
var CarouselItem = React37.forwardRef(({ className, ...props }, ref) => {
|
|
1027
1027
|
const { orientation } = useCarousel();
|
|
1028
1028
|
return /* @__PURE__ */ jsx(
|
|
1029
1029
|
"div",
|
|
@@ -1041,7 +1041,7 @@ var CarouselItem = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
1041
1041
|
);
|
|
1042
1042
|
});
|
|
1043
1043
|
CarouselItem.displayName = "CarouselItem";
|
|
1044
|
-
var CarouselPrevious =
|
|
1044
|
+
var CarouselPrevious = React37.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1045
1045
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1046
1046
|
return /* @__PURE__ */ jsxs(
|
|
1047
1047
|
Button,
|
|
@@ -1065,7 +1065,7 @@ var CarouselPrevious = React36.forwardRef(({ className, variant = "outline", siz
|
|
|
1065
1065
|
);
|
|
1066
1066
|
});
|
|
1067
1067
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1068
|
-
var CarouselNext =
|
|
1068
|
+
var CarouselNext = React37.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1069
1069
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1070
1070
|
return /* @__PURE__ */ jsxs(
|
|
1071
1071
|
Button,
|
|
@@ -1090,16 +1090,16 @@ var CarouselNext = React36.forwardRef(({ className, variant = "outline", size =
|
|
|
1090
1090
|
});
|
|
1091
1091
|
CarouselNext.displayName = "CarouselNext";
|
|
1092
1092
|
var THEMES = { light: "", dark: ".dark" };
|
|
1093
|
-
var ChartContext =
|
|
1093
|
+
var ChartContext = React37.createContext(null);
|
|
1094
1094
|
function useChart() {
|
|
1095
|
-
const context =
|
|
1095
|
+
const context = React37.useContext(ChartContext);
|
|
1096
1096
|
if (!context) {
|
|
1097
1097
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
1098
1098
|
}
|
|
1099
1099
|
return context;
|
|
1100
1100
|
}
|
|
1101
|
-
var ChartContainer =
|
|
1102
|
-
const uniqueId =
|
|
1101
|
+
var ChartContainer = React37.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
1102
|
+
const uniqueId = React37.useId();
|
|
1103
1103
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1104
1104
|
return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
|
|
1105
1105
|
"div",
|
|
@@ -1145,7 +1145,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
1145
1145
|
);
|
|
1146
1146
|
};
|
|
1147
1147
|
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
1148
|
-
var ChartTooltipContent =
|
|
1148
|
+
var ChartTooltipContent = React37.forwardRef(
|
|
1149
1149
|
({
|
|
1150
1150
|
active,
|
|
1151
1151
|
payload,
|
|
@@ -1162,7 +1162,7 @@ var ChartTooltipContent = React36.forwardRef(
|
|
|
1162
1162
|
labelKey
|
|
1163
1163
|
}, ref) => {
|
|
1164
1164
|
const { config } = useChart();
|
|
1165
|
-
const tooltipLabel =
|
|
1165
|
+
const tooltipLabel = React37.useMemo(() => {
|
|
1166
1166
|
if (hideLabel || !payload?.length) {
|
|
1167
1167
|
return null;
|
|
1168
1168
|
}
|
|
@@ -1258,7 +1258,7 @@ var ChartTooltipContent = React36.forwardRef(
|
|
|
1258
1258
|
);
|
|
1259
1259
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
1260
1260
|
var ChartLegend = RechartsPrimitive.Legend;
|
|
1261
|
-
var ChartLegendContent =
|
|
1261
|
+
var ChartLegendContent = React37.forwardRef(
|
|
1262
1262
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
1263
1263
|
const { config } = useChart();
|
|
1264
1264
|
if (!payload?.length) {
|
|
@@ -1316,7 +1316,7 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
1318
1318
|
}
|
|
1319
|
-
var ScrollArea =
|
|
1319
|
+
var ScrollArea = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1320
1320
|
ScrollAreaPrimitive.Root,
|
|
1321
1321
|
{
|
|
1322
1322
|
ref,
|
|
@@ -1330,7 +1330,7 @@ var ScrollArea = React36.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1330
1330
|
}
|
|
1331
1331
|
));
|
|
1332
1332
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
1333
|
-
var ScrollBar =
|
|
1333
|
+
var ScrollBar = React37.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1334
1334
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
1335
1335
|
{
|
|
1336
1336
|
ref,
|
|
@@ -1458,7 +1458,7 @@ var ChatLayout = ({
|
|
|
1458
1458
|
/* @__PURE__ */ jsx(ChatInput, { children: input })
|
|
1459
1459
|
] });
|
|
1460
1460
|
};
|
|
1461
|
-
var Checkbox =
|
|
1461
|
+
var Checkbox = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1462
1462
|
CheckboxPrimitive.Root,
|
|
1463
1463
|
{
|
|
1464
1464
|
ref,
|
|
@@ -1484,7 +1484,7 @@ var Dialog = DialogPrimitive.Root;
|
|
|
1484
1484
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1485
1485
|
var DialogPortal = DialogPrimitive.Portal;
|
|
1486
1486
|
var DialogClose = DialogPrimitive.Close;
|
|
1487
|
-
var DialogOverlay =
|
|
1487
|
+
var DialogOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1488
1488
|
DialogPrimitive.Overlay,
|
|
1489
1489
|
{
|
|
1490
1490
|
ref,
|
|
@@ -1496,7 +1496,7 @@ var DialogOverlay = React36.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1496
1496
|
}
|
|
1497
1497
|
));
|
|
1498
1498
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1499
|
-
var DialogContent =
|
|
1499
|
+
var DialogContent = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
1500
1500
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
1501
1501
|
/* @__PURE__ */ jsxs(
|
|
1502
1502
|
DialogPrimitive.Content,
|
|
@@ -1546,7 +1546,7 @@ var DialogFooter = ({
|
|
|
1546
1546
|
}
|
|
1547
1547
|
);
|
|
1548
1548
|
DialogFooter.displayName = "DialogFooter";
|
|
1549
|
-
var DialogTitle =
|
|
1549
|
+
var DialogTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1550
1550
|
DialogPrimitive.Title,
|
|
1551
1551
|
{
|
|
1552
1552
|
ref,
|
|
@@ -1558,7 +1558,7 @@ var DialogTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1558
1558
|
}
|
|
1559
1559
|
));
|
|
1560
1560
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1561
|
-
var DialogDescription =
|
|
1561
|
+
var DialogDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1562
1562
|
DialogPrimitive.Description,
|
|
1563
1563
|
{
|
|
1564
1564
|
ref,
|
|
@@ -1567,7 +1567,7 @@ var DialogDescription = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1567
1567
|
}
|
|
1568
1568
|
));
|
|
1569
1569
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1570
|
-
var Command =
|
|
1570
|
+
var Command = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1571
1571
|
Command$1,
|
|
1572
1572
|
{
|
|
1573
1573
|
ref,
|
|
@@ -1582,7 +1582,7 @@ Command.displayName = Command$1.displayName;
|
|
|
1582
1582
|
var CommandDialog = ({ children, ...props }) => {
|
|
1583
1583
|
return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx(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 }) }) });
|
|
1584
1584
|
};
|
|
1585
|
-
var CommandInput =
|
|
1585
|
+
var CommandInput = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1586
1586
|
/* @__PURE__ */ jsx(Search, { className: "mr-2 icon-size shrink-0 opacity-50" }),
|
|
1587
1587
|
/* @__PURE__ */ jsx(
|
|
1588
1588
|
Command$1.Input,
|
|
@@ -1597,7 +1597,7 @@ var CommandInput = React36.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1597
1597
|
)
|
|
1598
1598
|
] }));
|
|
1599
1599
|
CommandInput.displayName = Command$1.Input.displayName;
|
|
1600
|
-
var CommandList =
|
|
1600
|
+
var CommandList = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1601
1601
|
Command$1.List,
|
|
1602
1602
|
{
|
|
1603
1603
|
ref,
|
|
@@ -1606,7 +1606,7 @@ var CommandList = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1606
1606
|
}
|
|
1607
1607
|
));
|
|
1608
1608
|
CommandList.displayName = Command$1.List.displayName;
|
|
1609
|
-
var CommandEmpty =
|
|
1609
|
+
var CommandEmpty = React37.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
1610
1610
|
Command$1.Empty,
|
|
1611
1611
|
{
|
|
1612
1612
|
ref,
|
|
@@ -1615,7 +1615,7 @@ var CommandEmpty = React36.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
|
1615
1615
|
}
|
|
1616
1616
|
));
|
|
1617
1617
|
CommandEmpty.displayName = Command$1.Empty.displayName;
|
|
1618
|
-
var CommandGroup =
|
|
1618
|
+
var CommandGroup = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1619
1619
|
Command$1.Group,
|
|
1620
1620
|
{
|
|
1621
1621
|
ref,
|
|
@@ -1627,7 +1627,7 @@ var CommandGroup = React36.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1627
1627
|
}
|
|
1628
1628
|
));
|
|
1629
1629
|
CommandGroup.displayName = Command$1.Group.displayName;
|
|
1630
|
-
var CommandSeparator =
|
|
1630
|
+
var CommandSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1631
1631
|
Command$1.Separator,
|
|
1632
1632
|
{
|
|
1633
1633
|
ref,
|
|
@@ -1636,7 +1636,7 @@ var CommandSeparator = React36.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1636
1636
|
}
|
|
1637
1637
|
));
|
|
1638
1638
|
CommandSeparator.displayName = Command$1.Separator.displayName;
|
|
1639
|
-
var CommandItem =
|
|
1639
|
+
var CommandItem = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1640
1640
|
Command$1.Item,
|
|
1641
1641
|
{
|
|
1642
1642
|
ref,
|
|
@@ -1670,7 +1670,7 @@ var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
|
1670
1670
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
1671
1671
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
1672
1672
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
1673
|
-
var ContextMenuSubTrigger =
|
|
1673
|
+
var ContextMenuSubTrigger = React37.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1674
1674
|
ContextMenuPrimitive.SubTrigger,
|
|
1675
1675
|
{
|
|
1676
1676
|
ref,
|
|
@@ -1687,7 +1687,7 @@ var ContextMenuSubTrigger = React36.forwardRef(({ className, inset, children, ..
|
|
|
1687
1687
|
}
|
|
1688
1688
|
));
|
|
1689
1689
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
1690
|
-
var ContextMenuSubContent =
|
|
1690
|
+
var ContextMenuSubContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1691
1691
|
ContextMenuPrimitive.SubContent,
|
|
1692
1692
|
{
|
|
1693
1693
|
ref,
|
|
@@ -1699,7 +1699,7 @@ var ContextMenuSubContent = React36.forwardRef(({ className, ...props }, ref) =>
|
|
|
1699
1699
|
}
|
|
1700
1700
|
));
|
|
1701
1701
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
1702
|
-
var ContextMenuContent =
|
|
1702
|
+
var ContextMenuContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
1703
1703
|
ContextMenuPrimitive.Content,
|
|
1704
1704
|
{
|
|
1705
1705
|
ref,
|
|
@@ -1711,7 +1711,7 @@ var ContextMenuContent = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1711
1711
|
}
|
|
1712
1712
|
) }));
|
|
1713
1713
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
1714
|
-
var ContextMenuItem =
|
|
1714
|
+
var ContextMenuItem = React37.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1715
1715
|
ContextMenuPrimitive.Item,
|
|
1716
1716
|
{
|
|
1717
1717
|
ref,
|
|
@@ -1724,7 +1724,7 @@ var ContextMenuItem = React36.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
1724
1724
|
}
|
|
1725
1725
|
));
|
|
1726
1726
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
1727
|
-
var ContextMenuCheckboxItem =
|
|
1727
|
+
var ContextMenuCheckboxItem = React37.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1728
1728
|
ContextMenuPrimitive.CheckboxItem,
|
|
1729
1729
|
{
|
|
1730
1730
|
ref,
|
|
@@ -1741,7 +1741,7 @@ var ContextMenuCheckboxItem = React36.forwardRef(({ className, children, checked
|
|
|
1741
1741
|
}
|
|
1742
1742
|
));
|
|
1743
1743
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
1744
|
-
var ContextMenuRadioItem =
|
|
1744
|
+
var ContextMenuRadioItem = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1745
1745
|
ContextMenuPrimitive.RadioItem,
|
|
1746
1746
|
{
|
|
1747
1747
|
ref,
|
|
@@ -1757,7 +1757,7 @@ var ContextMenuRadioItem = React36.forwardRef(({ className, children, ...props }
|
|
|
1757
1757
|
}
|
|
1758
1758
|
));
|
|
1759
1759
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
1760
|
-
var ContextMenuLabel =
|
|
1760
|
+
var ContextMenuLabel = React37.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1761
1761
|
ContextMenuPrimitive.Label,
|
|
1762
1762
|
{
|
|
1763
1763
|
ref,
|
|
@@ -1770,7 +1770,7 @@ var ContextMenuLabel = React36.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1770
1770
|
}
|
|
1771
1771
|
));
|
|
1772
1772
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
1773
|
-
var ContextMenuSeparator =
|
|
1773
|
+
var ContextMenuSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1774
1774
|
ContextMenuPrimitive.Separator,
|
|
1775
1775
|
{
|
|
1776
1776
|
ref,
|
|
@@ -1795,7 +1795,7 @@ var ContextMenuShortcut = ({
|
|
|
1795
1795
|
);
|
|
1796
1796
|
};
|
|
1797
1797
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
1798
|
-
var DialogMaximizableContent =
|
|
1798
|
+
var DialogMaximizableContent = React37.forwardRef(({ className, children, onMaximizeChange, isMaximized = false, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPrimitive.Portal, { children: [
|
|
1799
1799
|
/* @__PURE__ */ jsx(
|
|
1800
1800
|
DialogPrimitive.Overlay,
|
|
1801
1801
|
{
|
|
@@ -1853,7 +1853,7 @@ Drawer.displayName = "Drawer";
|
|
|
1853
1853
|
var DrawerTrigger = Drawer$1.Trigger;
|
|
1854
1854
|
var DrawerPortal = Drawer$1.Portal;
|
|
1855
1855
|
var DrawerClose = Drawer$1.Close;
|
|
1856
|
-
var DrawerOverlay =
|
|
1856
|
+
var DrawerOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1857
1857
|
Drawer$1.Overlay,
|
|
1858
1858
|
{
|
|
1859
1859
|
ref,
|
|
@@ -1862,7 +1862,7 @@ var DrawerOverlay = React36.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1862
1862
|
}
|
|
1863
1863
|
));
|
|
1864
1864
|
DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
|
|
1865
|
-
var DrawerContent =
|
|
1865
|
+
var DrawerContent = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
1866
1866
|
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
1867
1867
|
/* @__PURE__ */ jsxs(
|
|
1868
1868
|
Drawer$1.Content,
|
|
@@ -1903,7 +1903,7 @@ var DrawerFooter = ({
|
|
|
1903
1903
|
}
|
|
1904
1904
|
);
|
|
1905
1905
|
DrawerFooter.displayName = "DrawerFooter";
|
|
1906
|
-
var DrawerTitle =
|
|
1906
|
+
var DrawerTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1907
1907
|
Drawer$1.Title,
|
|
1908
1908
|
{
|
|
1909
1909
|
ref,
|
|
@@ -1915,7 +1915,7 @@ var DrawerTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1915
1915
|
}
|
|
1916
1916
|
));
|
|
1917
1917
|
DrawerTitle.displayName = Drawer$1.Title.displayName;
|
|
1918
|
-
var DrawerDescription =
|
|
1918
|
+
var DrawerDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1919
1919
|
Drawer$1.Description,
|
|
1920
1920
|
{
|
|
1921
1921
|
ref,
|
|
@@ -1930,7 +1930,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
1930
1930
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1931
1931
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1932
1932
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1933
|
-
var DropdownMenuSubTrigger =
|
|
1933
|
+
var DropdownMenuSubTrigger = React37.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1934
1934
|
DropdownMenuPrimitive.SubTrigger,
|
|
1935
1935
|
{
|
|
1936
1936
|
ref,
|
|
@@ -1947,7 +1947,7 @@ var DropdownMenuSubTrigger = React36.forwardRef(({ className, inset, children, .
|
|
|
1947
1947
|
}
|
|
1948
1948
|
));
|
|
1949
1949
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1950
|
-
var DropdownMenuSubContent =
|
|
1950
|
+
var DropdownMenuSubContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1951
1951
|
DropdownMenuPrimitive.SubContent,
|
|
1952
1952
|
{
|
|
1953
1953
|
ref,
|
|
@@ -1959,7 +1959,7 @@ var DropdownMenuSubContent = React36.forwardRef(({ className, ...props }, ref) =
|
|
|
1959
1959
|
}
|
|
1960
1960
|
));
|
|
1961
1961
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1962
|
-
var DropdownMenuContent =
|
|
1962
|
+
var DropdownMenuContent = React37.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
1963
1963
|
DropdownMenuPrimitive.Content,
|
|
1964
1964
|
{
|
|
1965
1965
|
ref,
|
|
@@ -1972,7 +1972,7 @@ var DropdownMenuContent = React36.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1972
1972
|
}
|
|
1973
1973
|
) }));
|
|
1974
1974
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1975
|
-
var DropdownMenuItem =
|
|
1975
|
+
var DropdownMenuItem = React37.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1976
1976
|
DropdownMenuPrimitive.Item,
|
|
1977
1977
|
{
|
|
1978
1978
|
ref,
|
|
@@ -1985,7 +1985,7 @@ var DropdownMenuItem = React36.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1985
1985
|
}
|
|
1986
1986
|
));
|
|
1987
1987
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1988
|
-
var DropdownMenuCheckboxItem =
|
|
1988
|
+
var DropdownMenuCheckboxItem = React37.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1989
1989
|
DropdownMenuPrimitive.CheckboxItem,
|
|
1990
1990
|
{
|
|
1991
1991
|
ref,
|
|
@@ -2002,7 +2002,7 @@ var DropdownMenuCheckboxItem = React36.forwardRef(({ className, children, checke
|
|
|
2002
2002
|
}
|
|
2003
2003
|
));
|
|
2004
2004
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
2005
|
-
var DropdownMenuRadioItem =
|
|
2005
|
+
var DropdownMenuRadioItem = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2006
2006
|
DropdownMenuPrimitive.RadioItem,
|
|
2007
2007
|
{
|
|
2008
2008
|
ref,
|
|
@@ -2018,7 +2018,7 @@ var DropdownMenuRadioItem = React36.forwardRef(({ className, children, ...props
|
|
|
2018
2018
|
}
|
|
2019
2019
|
));
|
|
2020
2020
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
2021
|
-
var DropdownMenuLabel =
|
|
2021
|
+
var DropdownMenuLabel = React37.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2022
2022
|
DropdownMenuPrimitive.Label,
|
|
2023
2023
|
{
|
|
2024
2024
|
ref,
|
|
@@ -2031,7 +2031,7 @@ var DropdownMenuLabel = React36.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2031
2031
|
}
|
|
2032
2032
|
));
|
|
2033
2033
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
2034
|
-
var DropdownMenuSeparator =
|
|
2034
|
+
var DropdownMenuSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2035
2035
|
DropdownMenuPrimitive.Separator,
|
|
2036
2036
|
{
|
|
2037
2037
|
ref,
|
|
@@ -2056,7 +2056,7 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
2056
2056
|
var labelVariants = cva(
|
|
2057
2057
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2058
2058
|
);
|
|
2059
|
-
var Label3 =
|
|
2059
|
+
var Label3 = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2060
2060
|
LabelPrimitive.Root,
|
|
2061
2061
|
{
|
|
2062
2062
|
ref,
|
|
@@ -2066,18 +2066,18 @@ var Label3 = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2066
2066
|
));
|
|
2067
2067
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2068
2068
|
var Form = FormProvider;
|
|
2069
|
-
var FormFieldContext =
|
|
2069
|
+
var FormFieldContext = React37.createContext(
|
|
2070
2070
|
{}
|
|
2071
2071
|
);
|
|
2072
2072
|
var FormField = ({
|
|
2073
2073
|
...props
|
|
2074
2074
|
}) => {
|
|
2075
|
-
const value =
|
|
2075
|
+
const value = React37.useMemo(() => ({ name: props.name }), [props.name]);
|
|
2076
2076
|
return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
|
|
2077
2077
|
};
|
|
2078
2078
|
var useFormField = () => {
|
|
2079
|
-
const fieldContext =
|
|
2080
|
-
const itemContext =
|
|
2079
|
+
const fieldContext = React37.useContext(FormFieldContext);
|
|
2080
|
+
const itemContext = React37.useContext(FormItemContext);
|
|
2081
2081
|
const { getFieldState, formState } = useFormContext();
|
|
2082
2082
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
2083
2083
|
if (!fieldContext) {
|
|
@@ -2093,16 +2093,16 @@ var useFormField = () => {
|
|
|
2093
2093
|
...fieldState
|
|
2094
2094
|
};
|
|
2095
2095
|
};
|
|
2096
|
-
var FormItemContext =
|
|
2096
|
+
var FormItemContext = React37.createContext(
|
|
2097
2097
|
{}
|
|
2098
2098
|
);
|
|
2099
|
-
var FormItem =
|
|
2100
|
-
const id =
|
|
2101
|
-
const value =
|
|
2099
|
+
var FormItem = React37.forwardRef(({ className, ...props }, ref) => {
|
|
2100
|
+
const id = React37.useId();
|
|
2101
|
+
const value = React37.useMemo(() => ({ id }), [id]);
|
|
2102
2102
|
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value, children: /* @__PURE__ */ jsx("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
2103
2103
|
});
|
|
2104
2104
|
FormItem.displayName = "FormItem";
|
|
2105
|
-
var FormLabel =
|
|
2105
|
+
var FormLabel = React37.forwardRef(({ className, ...props }, ref) => {
|
|
2106
2106
|
const { error, formItemId } = useFormField();
|
|
2107
2107
|
return /* @__PURE__ */ jsx(
|
|
2108
2108
|
Label3,
|
|
@@ -2115,7 +2115,7 @@ var FormLabel = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
2115
2115
|
);
|
|
2116
2116
|
});
|
|
2117
2117
|
FormLabel.displayName = "FormLabel";
|
|
2118
|
-
var FormControl =
|
|
2118
|
+
var FormControl = React37.forwardRef(({ ...props }, ref) => {
|
|
2119
2119
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
2120
2120
|
return /* @__PURE__ */ jsx(
|
|
2121
2121
|
Slot,
|
|
@@ -2129,7 +2129,7 @@ var FormControl = React36.forwardRef(({ ...props }, ref) => {
|
|
|
2129
2129
|
);
|
|
2130
2130
|
});
|
|
2131
2131
|
FormControl.displayName = "FormControl";
|
|
2132
|
-
var FormDescription =
|
|
2132
|
+
var FormDescription = React37.forwardRef(({ className, ...props }, ref) => {
|
|
2133
2133
|
const { formDescriptionId } = useFormField();
|
|
2134
2134
|
return /* @__PURE__ */ jsx(
|
|
2135
2135
|
"p",
|
|
@@ -2142,7 +2142,7 @@ var FormDescription = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
2142
2142
|
);
|
|
2143
2143
|
});
|
|
2144
2144
|
FormDescription.displayName = "FormDescription";
|
|
2145
|
-
var FormMessage =
|
|
2145
|
+
var FormMessage = React37.forwardRef(({ className, children, ...props }, ref) => {
|
|
2146
2146
|
const { error, formMessageId } = useFormField();
|
|
2147
2147
|
const body = error ? String(error?.message) : children;
|
|
2148
2148
|
if (!body) {
|
|
@@ -2162,7 +2162,7 @@ var FormMessage = React36.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2162
2162
|
FormMessage.displayName = "FormMessage";
|
|
2163
2163
|
var HoverCard = HoverCardPrimitive.Root;
|
|
2164
2164
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
2165
|
-
var HoverCardContent =
|
|
2165
|
+
var HoverCardContent = React37.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2166
2166
|
HoverCardPrimitive.Content,
|
|
2167
2167
|
{
|
|
2168
2168
|
ref,
|
|
@@ -2218,7 +2218,7 @@ var ValidationIcon = ({ variant }) => {
|
|
|
2218
2218
|
return null;
|
|
2219
2219
|
}
|
|
2220
2220
|
};
|
|
2221
|
-
var Input =
|
|
2221
|
+
var Input = React37.forwardRef(
|
|
2222
2222
|
({
|
|
2223
2223
|
className,
|
|
2224
2224
|
variant,
|
|
@@ -2270,7 +2270,7 @@ var Input = React36.forwardRef(
|
|
|
2270
2270
|
}
|
|
2271
2271
|
);
|
|
2272
2272
|
Input.displayName = "Input";
|
|
2273
|
-
var InputWithLabel =
|
|
2273
|
+
var InputWithLabel = React37.forwardRef(
|
|
2274
2274
|
({ label, id, ...props }, ref) => {
|
|
2275
2275
|
const inputId = id || `input-${Math.random().toString(36).substr(2, 9)}`;
|
|
2276
2276
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
@@ -2287,7 +2287,7 @@ var InputWithLabel = React36.forwardRef(
|
|
|
2287
2287
|
}
|
|
2288
2288
|
);
|
|
2289
2289
|
InputWithLabel.displayName = "InputWithLabel";
|
|
2290
|
-
var InputOTP =
|
|
2290
|
+
var InputOTP = React37.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2291
2291
|
OTPInput,
|
|
2292
2292
|
{
|
|
2293
2293
|
ref,
|
|
@@ -2300,10 +2300,10 @@ var InputOTP = React36.forwardRef(({ className, containerClassName, ...props },
|
|
|
2300
2300
|
}
|
|
2301
2301
|
));
|
|
2302
2302
|
InputOTP.displayName = "InputOTP";
|
|
2303
|
-
var InputOTPGroup =
|
|
2303
|
+
var InputOTPGroup = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
2304
2304
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
2305
|
-
var InputOTPSlot =
|
|
2306
|
-
const inputOTPContext =
|
|
2305
|
+
var InputOTPSlot = React37.forwardRef(({ index, className, ...props }, ref) => {
|
|
2306
|
+
const inputOTPContext = React37.useContext(OTPInputContext);
|
|
2307
2307
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
2308
2308
|
return /* @__PURE__ */ jsxs(
|
|
2309
2309
|
"div",
|
|
@@ -2323,14 +2323,75 @@ var InputOTPSlot = React36.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
2323
2323
|
);
|
|
2324
2324
|
});
|
|
2325
2325
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
2326
|
-
var InputOTPSeparator =
|
|
2326
|
+
var InputOTPSeparator = React37.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx(Dot, {}) }));
|
|
2327
2327
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
2328
|
+
var loadingVariants = cva(
|
|
2329
|
+
"flex flex-col items-center justify-center gap-2",
|
|
2330
|
+
{
|
|
2331
|
+
variants: {
|
|
2332
|
+
size: {
|
|
2333
|
+
sm: "[&_svg]:h-4 [&_svg]:w-4 [&_p]:text-xs",
|
|
2334
|
+
md: "[&_svg]:h-8 [&_svg]:w-8 [&_p]:text-sm",
|
|
2335
|
+
lg: "[&_svg]:h-12 [&_svg]:w-12 [&_p]:text-base",
|
|
2336
|
+
xl: "[&_svg]:h-16 [&_svg]:w-16 [&_p]:text-lg"
|
|
2337
|
+
}
|
|
2338
|
+
},
|
|
2339
|
+
defaultVariants: {
|
|
2340
|
+
size: "md"
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
);
|
|
2344
|
+
var Loading = React37.forwardRef(
|
|
2345
|
+
({ className, size, description, ...props }, ref) => {
|
|
2346
|
+
return /* @__PURE__ */ jsxs(
|
|
2347
|
+
"div",
|
|
2348
|
+
{
|
|
2349
|
+
className: cn(loadingVariants({ size, className })),
|
|
2350
|
+
ref,
|
|
2351
|
+
...props,
|
|
2352
|
+
children: [
|
|
2353
|
+
/* @__PURE__ */ jsxs(
|
|
2354
|
+
"svg",
|
|
2355
|
+
{
|
|
2356
|
+
className: "animate-spin text-primary",
|
|
2357
|
+
viewBox: "0 0 24 24",
|
|
2358
|
+
fill: "none",
|
|
2359
|
+
children: [
|
|
2360
|
+
/* @__PURE__ */ jsx(
|
|
2361
|
+
"circle",
|
|
2362
|
+
{
|
|
2363
|
+
className: "opacity-25",
|
|
2364
|
+
cx: "12",
|
|
2365
|
+
cy: "12",
|
|
2366
|
+
r: "10",
|
|
2367
|
+
stroke: "currentColor",
|
|
2368
|
+
strokeWidth: "4"
|
|
2369
|
+
}
|
|
2370
|
+
),
|
|
2371
|
+
/* @__PURE__ */ jsx(
|
|
2372
|
+
"path",
|
|
2373
|
+
{
|
|
2374
|
+
className: "opacity-75",
|
|
2375
|
+
fill: "currentColor",
|
|
2376
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
2377
|
+
}
|
|
2378
|
+
)
|
|
2379
|
+
]
|
|
2380
|
+
}
|
|
2381
|
+
),
|
|
2382
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: description })
|
|
2383
|
+
]
|
|
2384
|
+
}
|
|
2385
|
+
);
|
|
2386
|
+
}
|
|
2387
|
+
);
|
|
2388
|
+
Loading.displayName = "Loading";
|
|
2328
2389
|
var MenubarMenu = MenubarPrimitive.Menu;
|
|
2329
2390
|
var MenubarGroup = MenubarPrimitive.Group;
|
|
2330
2391
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
2331
2392
|
var MenubarSub = MenubarPrimitive.Sub;
|
|
2332
2393
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
2333
|
-
var Menubar =
|
|
2394
|
+
var Menubar = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2334
2395
|
MenubarPrimitive.Root,
|
|
2335
2396
|
{
|
|
2336
2397
|
ref,
|
|
@@ -2342,7 +2403,7 @@ var Menubar = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2342
2403
|
}
|
|
2343
2404
|
));
|
|
2344
2405
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
2345
|
-
var MenubarTrigger =
|
|
2406
|
+
var MenubarTrigger = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2346
2407
|
MenubarPrimitive.Trigger,
|
|
2347
2408
|
{
|
|
2348
2409
|
ref,
|
|
@@ -2354,7 +2415,7 @@ var MenubarTrigger = React36.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2354
2415
|
}
|
|
2355
2416
|
));
|
|
2356
2417
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
2357
|
-
var MenubarSubTrigger =
|
|
2418
|
+
var MenubarSubTrigger = React37.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2358
2419
|
MenubarPrimitive.SubTrigger,
|
|
2359
2420
|
{
|
|
2360
2421
|
ref,
|
|
@@ -2371,7 +2432,7 @@ var MenubarSubTrigger = React36.forwardRef(({ className, inset, children, ...pro
|
|
|
2371
2432
|
}
|
|
2372
2433
|
));
|
|
2373
2434
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
2374
|
-
var MenubarSubContent =
|
|
2435
|
+
var MenubarSubContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2375
2436
|
MenubarPrimitive.SubContent,
|
|
2376
2437
|
{
|
|
2377
2438
|
ref,
|
|
@@ -2383,7 +2444,7 @@ var MenubarSubContent = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2383
2444
|
}
|
|
2384
2445
|
));
|
|
2385
2446
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
2386
|
-
var MenubarContent =
|
|
2447
|
+
var MenubarContent = React37.forwardRef(
|
|
2387
2448
|
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2388
2449
|
MenubarPrimitive.Content,
|
|
2389
2450
|
{
|
|
@@ -2400,7 +2461,7 @@ var MenubarContent = React36.forwardRef(
|
|
|
2400
2461
|
) })
|
|
2401
2462
|
);
|
|
2402
2463
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
2403
|
-
var MenubarItem =
|
|
2464
|
+
var MenubarItem = React37.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2404
2465
|
MenubarPrimitive.Item,
|
|
2405
2466
|
{
|
|
2406
2467
|
ref,
|
|
@@ -2413,7 +2474,7 @@ var MenubarItem = React36.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
2413
2474
|
}
|
|
2414
2475
|
));
|
|
2415
2476
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
2416
|
-
var MenubarCheckboxItem =
|
|
2477
|
+
var MenubarCheckboxItem = React37.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2417
2478
|
MenubarPrimitive.CheckboxItem,
|
|
2418
2479
|
{
|
|
2419
2480
|
ref,
|
|
@@ -2430,7 +2491,7 @@ var MenubarCheckboxItem = React36.forwardRef(({ className, children, checked, ..
|
|
|
2430
2491
|
}
|
|
2431
2492
|
));
|
|
2432
2493
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
2433
|
-
var MenubarRadioItem =
|
|
2494
|
+
var MenubarRadioItem = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2434
2495
|
MenubarPrimitive.RadioItem,
|
|
2435
2496
|
{
|
|
2436
2497
|
ref,
|
|
@@ -2446,7 +2507,7 @@ var MenubarRadioItem = React36.forwardRef(({ className, children, ...props }, re
|
|
|
2446
2507
|
}
|
|
2447
2508
|
));
|
|
2448
2509
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
2449
|
-
var MenubarLabel =
|
|
2510
|
+
var MenubarLabel = React37.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2450
2511
|
MenubarPrimitive.Label,
|
|
2451
2512
|
{
|
|
2452
2513
|
ref,
|
|
@@ -2459,7 +2520,7 @@ var MenubarLabel = React36.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
2459
2520
|
}
|
|
2460
2521
|
));
|
|
2461
2522
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
2462
|
-
var MenubarSeparator =
|
|
2523
|
+
var MenubarSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2463
2524
|
MenubarPrimitive.Separator,
|
|
2464
2525
|
{
|
|
2465
2526
|
ref,
|
|
@@ -2794,7 +2855,7 @@ var MessageInput = ({
|
|
|
2794
2855
|
] })
|
|
2795
2856
|
] });
|
|
2796
2857
|
};
|
|
2797
|
-
var NavigationMenu =
|
|
2858
|
+
var NavigationMenu = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2798
2859
|
NavigationMenuPrimitive.Root,
|
|
2799
2860
|
{
|
|
2800
2861
|
ref,
|
|
@@ -2810,7 +2871,7 @@ var NavigationMenu = React36.forwardRef(({ className, children, ...props }, ref)
|
|
|
2810
2871
|
}
|
|
2811
2872
|
));
|
|
2812
2873
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
2813
|
-
var NavigationMenuList =
|
|
2874
|
+
var NavigationMenuList = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2814
2875
|
NavigationMenuPrimitive.List,
|
|
2815
2876
|
{
|
|
2816
2877
|
ref,
|
|
@@ -2826,7 +2887,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
2826
2887
|
var navigationMenuTriggerStyle = cva(
|
|
2827
2888
|
"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 hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
2828
2889
|
);
|
|
2829
|
-
var NavigationMenuTrigger =
|
|
2890
|
+
var NavigationMenuTrigger = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2830
2891
|
NavigationMenuPrimitive.Trigger,
|
|
2831
2892
|
{
|
|
2832
2893
|
ref,
|
|
@@ -2846,7 +2907,7 @@ var NavigationMenuTrigger = React36.forwardRef(({ className, children, ...props
|
|
|
2846
2907
|
}
|
|
2847
2908
|
));
|
|
2848
2909
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
2849
|
-
var NavigationMenuContent =
|
|
2910
|
+
var NavigationMenuContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2850
2911
|
NavigationMenuPrimitive.Content,
|
|
2851
2912
|
{
|
|
2852
2913
|
ref,
|
|
@@ -2859,7 +2920,7 @@ var NavigationMenuContent = React36.forwardRef(({ className, ...props }, ref) =>
|
|
|
2859
2920
|
));
|
|
2860
2921
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
2861
2922
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
2862
|
-
var NavigationMenuViewport =
|
|
2923
|
+
var NavigationMenuViewport = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx(
|
|
2863
2924
|
NavigationMenuPrimitive.Viewport,
|
|
2864
2925
|
{
|
|
2865
2926
|
className: cn(
|
|
@@ -2871,7 +2932,7 @@ var NavigationMenuViewport = React36.forwardRef(({ className, ...props }, ref) =
|
|
|
2871
2932
|
}
|
|
2872
2933
|
) }));
|
|
2873
2934
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
2874
|
-
var NavigationMenuIndicator =
|
|
2935
|
+
var NavigationMenuIndicator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2875
2936
|
NavigationMenuPrimitive.Indicator,
|
|
2876
2937
|
{
|
|
2877
2938
|
ref,
|
|
@@ -2894,7 +2955,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
2894
2955
|
}
|
|
2895
2956
|
);
|
|
2896
2957
|
Pagination.displayName = "Pagination";
|
|
2897
|
-
var PaginationContent =
|
|
2958
|
+
var PaginationContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2898
2959
|
"ul",
|
|
2899
2960
|
{
|
|
2900
2961
|
ref,
|
|
@@ -2903,7 +2964,7 @@ var PaginationContent = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2903
2964
|
}
|
|
2904
2965
|
));
|
|
2905
2966
|
PaginationContent.displayName = "PaginationContent";
|
|
2906
|
-
var PaginationItem =
|
|
2967
|
+
var PaginationItem = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("", className), ...props }));
|
|
2907
2968
|
PaginationItem.displayName = "PaginationItem";
|
|
2908
2969
|
var PaginationLink = ({
|
|
2909
2970
|
className,
|
|
@@ -2977,7 +3038,7 @@ var PaginationEllipsis = ({
|
|
|
2977
3038
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
2978
3039
|
var Popover = PopoverPrimitive.Root;
|
|
2979
3040
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
2980
|
-
var PopoverContent =
|
|
3041
|
+
var PopoverContent = React37.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2981
3042
|
PopoverPrimitive.Content,
|
|
2982
3043
|
{
|
|
2983
3044
|
ref,
|
|
@@ -2991,7 +3052,7 @@ var PopoverContent = React36.forwardRef(({ className, align = "center", sideOffs
|
|
|
2991
3052
|
}
|
|
2992
3053
|
) }));
|
|
2993
3054
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
2994
|
-
var Progress =
|
|
3055
|
+
var Progress = React37.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2995
3056
|
ProgressPrimitive.Root,
|
|
2996
3057
|
{
|
|
2997
3058
|
ref,
|
|
@@ -3010,7 +3071,7 @@ var Progress = React36.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
3010
3071
|
}
|
|
3011
3072
|
));
|
|
3012
3073
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
3013
|
-
var RadioGroup4 =
|
|
3074
|
+
var RadioGroup4 = React37.forwardRef(({ className, ...props }, ref) => {
|
|
3014
3075
|
return /* @__PURE__ */ jsx(
|
|
3015
3076
|
RadioGroupPrimitive.Root,
|
|
3016
3077
|
{
|
|
@@ -3021,7 +3082,7 @@ var RadioGroup4 = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3021
3082
|
);
|
|
3022
3083
|
});
|
|
3023
3084
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
3024
|
-
var RadioGroupItem =
|
|
3085
|
+
var RadioGroupItem = React37.forwardRef(({ className, ...props }, ref) => {
|
|
3025
3086
|
return /* @__PURE__ */ jsx(
|
|
3026
3087
|
RadioGroupPrimitive.Item,
|
|
3027
3088
|
{
|
|
@@ -3068,7 +3129,7 @@ var ResizableHandle = ({
|
|
|
3068
3129
|
var Select = SelectPrimitive.Root;
|
|
3069
3130
|
var SelectGroup = SelectPrimitive.Group;
|
|
3070
3131
|
var SelectValue = SelectPrimitive.Value;
|
|
3071
|
-
var SelectTrigger =
|
|
3132
|
+
var SelectTrigger = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3072
3133
|
SelectPrimitive.Trigger,
|
|
3073
3134
|
{
|
|
3074
3135
|
ref,
|
|
@@ -3084,7 +3145,7 @@ var SelectTrigger = React36.forwardRef(({ className, children, ...props }, ref)
|
|
|
3084
3145
|
}
|
|
3085
3146
|
));
|
|
3086
3147
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
3087
|
-
var SelectScrollUpButton =
|
|
3148
|
+
var SelectScrollUpButton = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3088
3149
|
SelectPrimitive.ScrollUpButton,
|
|
3089
3150
|
{
|
|
3090
3151
|
ref,
|
|
@@ -3097,7 +3158,7 @@ var SelectScrollUpButton = React36.forwardRef(({ className, ...props }, ref) =>
|
|
|
3097
3158
|
}
|
|
3098
3159
|
));
|
|
3099
3160
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
3100
|
-
var SelectScrollDownButton =
|
|
3161
|
+
var SelectScrollDownButton = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3101
3162
|
SelectPrimitive.ScrollDownButton,
|
|
3102
3163
|
{
|
|
3103
3164
|
ref,
|
|
@@ -3110,7 +3171,7 @@ var SelectScrollDownButton = React36.forwardRef(({ className, ...props }, ref) =
|
|
|
3110
3171
|
}
|
|
3111
3172
|
));
|
|
3112
3173
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
3113
|
-
var SelectContent =
|
|
3174
|
+
var SelectContent = React37.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
3114
3175
|
SelectPrimitive.Content,
|
|
3115
3176
|
{
|
|
3116
3177
|
ref,
|
|
@@ -3138,7 +3199,7 @@ var SelectContent = React36.forwardRef(({ className, children, position = "poppe
|
|
|
3138
3199
|
}
|
|
3139
3200
|
) }));
|
|
3140
3201
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
3141
|
-
var SelectLabel =
|
|
3202
|
+
var SelectLabel = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3142
3203
|
SelectPrimitive.Label,
|
|
3143
3204
|
{
|
|
3144
3205
|
ref,
|
|
@@ -3147,7 +3208,7 @@ var SelectLabel = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3147
3208
|
}
|
|
3148
3209
|
));
|
|
3149
3210
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
3150
|
-
var SelectItem =
|
|
3211
|
+
var SelectItem = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3151
3212
|
SelectPrimitive.Item,
|
|
3152
3213
|
{
|
|
3153
3214
|
ref,
|
|
@@ -3163,7 +3224,7 @@ var SelectItem = React36.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
3163
3224
|
}
|
|
3164
3225
|
));
|
|
3165
3226
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
3166
|
-
var SelectSeparator =
|
|
3227
|
+
var SelectSeparator = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3167
3228
|
SelectPrimitive.Separator,
|
|
3168
3229
|
{
|
|
3169
3230
|
ref,
|
|
@@ -3172,7 +3233,7 @@ var SelectSeparator = React36.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3172
3233
|
}
|
|
3173
3234
|
));
|
|
3174
3235
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
3175
|
-
var Separator5 =
|
|
3236
|
+
var Separator5 = React37.forwardRef(
|
|
3176
3237
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3177
3238
|
SeparatorPrimitive.Root,
|
|
3178
3239
|
{
|
|
@@ -3193,7 +3254,7 @@ var Sheet = DialogPrimitive.Root;
|
|
|
3193
3254
|
var SheetTrigger = DialogPrimitive.Trigger;
|
|
3194
3255
|
var SheetClose = DialogPrimitive.Close;
|
|
3195
3256
|
var SheetPortal = DialogPrimitive.Portal;
|
|
3196
|
-
var SheetOverlay =
|
|
3257
|
+
var SheetOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3197
3258
|
DialogPrimitive.Overlay,
|
|
3198
3259
|
{
|
|
3199
3260
|
className: cn(
|
|
@@ -3221,7 +3282,7 @@ var sheetVariants = cva(
|
|
|
3221
3282
|
}
|
|
3222
3283
|
}
|
|
3223
3284
|
);
|
|
3224
|
-
var SheetContent =
|
|
3285
|
+
var SheetContent = React37.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
3225
3286
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
3226
3287
|
/* @__PURE__ */ jsxs(
|
|
3227
3288
|
DialogPrimitive.Content,
|
|
@@ -3268,7 +3329,7 @@ var SheetFooter = ({
|
|
|
3268
3329
|
}
|
|
3269
3330
|
);
|
|
3270
3331
|
SheetFooter.displayName = "SheetFooter";
|
|
3271
|
-
var SheetTitle =
|
|
3332
|
+
var SheetTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3272
3333
|
DialogPrimitive.Title,
|
|
3273
3334
|
{
|
|
3274
3335
|
ref,
|
|
@@ -3277,7 +3338,7 @@ var SheetTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3277
3338
|
}
|
|
3278
3339
|
));
|
|
3279
3340
|
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
3280
|
-
var SheetDescription =
|
|
3341
|
+
var SheetDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3281
3342
|
DialogPrimitive.Description,
|
|
3282
3343
|
{
|
|
3283
3344
|
ref,
|
|
@@ -3288,8 +3349,8 @@ var SheetDescription = React36.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3288
3349
|
SheetDescription.displayName = DialogPrimitive.Description.displayName;
|
|
3289
3350
|
var MOBILE_BREAKPOINT = 768;
|
|
3290
3351
|
function useIsMobile() {
|
|
3291
|
-
const [isMobile, setIsMobile] =
|
|
3292
|
-
|
|
3352
|
+
const [isMobile, setIsMobile] = React37.useState(void 0);
|
|
3353
|
+
React37.useEffect(() => {
|
|
3293
3354
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
3294
3355
|
const onChange = () => {
|
|
3295
3356
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -3315,7 +3376,7 @@ function Skeleton({
|
|
|
3315
3376
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3316
3377
|
var Tooltip2 = TooltipPrimitive.Root;
|
|
3317
3378
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3318
|
-
var TooltipContent =
|
|
3379
|
+
var TooltipContent = React37.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3319
3380
|
TooltipPrimitive.Content,
|
|
3320
3381
|
{
|
|
3321
3382
|
ref,
|
|
@@ -3334,15 +3395,15 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
3334
3395
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
3335
3396
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
3336
3397
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
3337
|
-
var SidebarContext =
|
|
3398
|
+
var SidebarContext = React37.createContext(null);
|
|
3338
3399
|
function useSidebar() {
|
|
3339
|
-
const context =
|
|
3400
|
+
const context = React37.useContext(SidebarContext);
|
|
3340
3401
|
if (!context) {
|
|
3341
3402
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
3342
3403
|
}
|
|
3343
3404
|
return context;
|
|
3344
3405
|
}
|
|
3345
|
-
var SidebarProvider =
|
|
3406
|
+
var SidebarProvider = React37.forwardRef(
|
|
3346
3407
|
({
|
|
3347
3408
|
defaultOpen = true,
|
|
3348
3409
|
open: openProp,
|
|
@@ -3353,10 +3414,10 @@ var SidebarProvider = React36.forwardRef(
|
|
|
3353
3414
|
...props
|
|
3354
3415
|
}, ref) => {
|
|
3355
3416
|
const isMobile = useIsMobile();
|
|
3356
|
-
const [openMobile, setOpenMobile] =
|
|
3357
|
-
const [_open, _setOpen] =
|
|
3417
|
+
const [openMobile, setOpenMobile] = React37.useState(false);
|
|
3418
|
+
const [_open, _setOpen] = React37.useState(defaultOpen);
|
|
3358
3419
|
const open = openProp ?? _open;
|
|
3359
|
-
const setOpen =
|
|
3420
|
+
const setOpen = React37.useCallback(
|
|
3360
3421
|
(value) => {
|
|
3361
3422
|
const openState = typeof value === "function" ? value(open) : value;
|
|
3362
3423
|
if (setOpenProp) {
|
|
@@ -3368,10 +3429,10 @@ var SidebarProvider = React36.forwardRef(
|
|
|
3368
3429
|
},
|
|
3369
3430
|
[setOpenProp, open]
|
|
3370
3431
|
);
|
|
3371
|
-
const toggleSidebar =
|
|
3432
|
+
const toggleSidebar = React37.useCallback(() => {
|
|
3372
3433
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
3373
3434
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
3374
|
-
|
|
3435
|
+
React37.useEffect(() => {
|
|
3375
3436
|
const handleKeyDown = (event) => {
|
|
3376
3437
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
3377
3438
|
event.preventDefault();
|
|
@@ -3382,7 +3443,7 @@ var SidebarProvider = React36.forwardRef(
|
|
|
3382
3443
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
3383
3444
|
}, [toggleSidebar]);
|
|
3384
3445
|
const state = open ? "expanded" : "collapsed";
|
|
3385
|
-
const contextValue =
|
|
3446
|
+
const contextValue = React37.useMemo(
|
|
3386
3447
|
() => ({
|
|
3387
3448
|
state,
|
|
3388
3449
|
open,
|
|
@@ -3414,7 +3475,7 @@ var SidebarProvider = React36.forwardRef(
|
|
|
3414
3475
|
}
|
|
3415
3476
|
);
|
|
3416
3477
|
SidebarProvider.displayName = "SidebarProvider";
|
|
3417
|
-
var Sidebar =
|
|
3478
|
+
var Sidebar = React37.forwardRef(
|
|
3418
3479
|
({
|
|
3419
3480
|
side = "left",
|
|
3420
3481
|
variant = "sidebar",
|
|
@@ -3501,7 +3562,7 @@ var Sidebar = React36.forwardRef(
|
|
|
3501
3562
|
}
|
|
3502
3563
|
);
|
|
3503
3564
|
Sidebar.displayName = "Sidebar";
|
|
3504
|
-
var SidebarTrigger =
|
|
3565
|
+
var SidebarTrigger = React37.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
3505
3566
|
const { toggleSidebar } = useSidebar();
|
|
3506
3567
|
return /* @__PURE__ */ jsxs(
|
|
3507
3568
|
Button,
|
|
@@ -3524,7 +3585,7 @@ var SidebarTrigger = React36.forwardRef(({ className, onClick, ...props }, ref)
|
|
|
3524
3585
|
);
|
|
3525
3586
|
});
|
|
3526
3587
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
3527
|
-
var SidebarRail =
|
|
3588
|
+
var SidebarRail = React37.forwardRef(({ className, ...props }, ref) => {
|
|
3528
3589
|
const { toggleSidebar } = useSidebar();
|
|
3529
3590
|
return /* @__PURE__ */ jsx(
|
|
3530
3591
|
"button",
|
|
@@ -3549,7 +3610,7 @@ var SidebarRail = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3549
3610
|
);
|
|
3550
3611
|
});
|
|
3551
3612
|
SidebarRail.displayName = "SidebarRail";
|
|
3552
|
-
var SidebarInset =
|
|
3613
|
+
var SidebarInset = React37.forwardRef(({ className, ...props }, ref) => {
|
|
3553
3614
|
return /* @__PURE__ */ jsx(
|
|
3554
3615
|
"main",
|
|
3555
3616
|
{
|
|
@@ -3564,7 +3625,7 @@ var SidebarInset = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3564
3625
|
);
|
|
3565
3626
|
});
|
|
3566
3627
|
SidebarInset.displayName = "SidebarInset";
|
|
3567
|
-
var SidebarInput =
|
|
3628
|
+
var SidebarInput = React37.forwardRef(({ className, ...props }, ref) => {
|
|
3568
3629
|
return /* @__PURE__ */ jsx(
|
|
3569
3630
|
Input,
|
|
3570
3631
|
{
|
|
@@ -3579,7 +3640,7 @@ var SidebarInput = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3579
3640
|
);
|
|
3580
3641
|
});
|
|
3581
3642
|
SidebarInput.displayName = "SidebarInput";
|
|
3582
|
-
var SidebarHeader =
|
|
3643
|
+
var SidebarHeader = React37.forwardRef(({ className, ...props }, ref) => {
|
|
3583
3644
|
return /* @__PURE__ */ jsx(
|
|
3584
3645
|
"div",
|
|
3585
3646
|
{
|
|
@@ -3591,7 +3652,7 @@ var SidebarHeader = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3591
3652
|
);
|
|
3592
3653
|
});
|
|
3593
3654
|
SidebarHeader.displayName = "SidebarHeader";
|
|
3594
|
-
var SidebarFooter =
|
|
3655
|
+
var SidebarFooter = React37.forwardRef(({ className, ...props }, ref) => {
|
|
3595
3656
|
return /* @__PURE__ */ jsx(
|
|
3596
3657
|
"div",
|
|
3597
3658
|
{
|
|
@@ -3603,7 +3664,7 @@ var SidebarFooter = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3603
3664
|
);
|
|
3604
3665
|
});
|
|
3605
3666
|
SidebarFooter.displayName = "SidebarFooter";
|
|
3606
|
-
var SidebarSeparator =
|
|
3667
|
+
var SidebarSeparator = React37.forwardRef(({ className, ...props }, ref) => {
|
|
3607
3668
|
return /* @__PURE__ */ jsx(
|
|
3608
3669
|
Separator5,
|
|
3609
3670
|
{
|
|
@@ -3615,7 +3676,7 @@ var SidebarSeparator = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3615
3676
|
);
|
|
3616
3677
|
});
|
|
3617
3678
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3618
|
-
var SidebarContent =
|
|
3679
|
+
var SidebarContent = React37.forwardRef(({ className, ...props }, ref) => {
|
|
3619
3680
|
return /* @__PURE__ */ jsx(
|
|
3620
3681
|
"div",
|
|
3621
3682
|
{
|
|
@@ -3630,7 +3691,7 @@ var SidebarContent = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3630
3691
|
);
|
|
3631
3692
|
});
|
|
3632
3693
|
SidebarContent.displayName = "SidebarContent";
|
|
3633
|
-
var SidebarGroup =
|
|
3694
|
+
var SidebarGroup = React37.forwardRef(({ className, ...props }, ref) => {
|
|
3634
3695
|
return /* @__PURE__ */ jsx(
|
|
3635
3696
|
"div",
|
|
3636
3697
|
{
|
|
@@ -3642,7 +3703,7 @@ var SidebarGroup = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3642
3703
|
);
|
|
3643
3704
|
});
|
|
3644
3705
|
SidebarGroup.displayName = "SidebarGroup";
|
|
3645
|
-
var SidebarGroupLabel =
|
|
3706
|
+
var SidebarGroupLabel = React37.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3646
3707
|
const Comp = asChild ? Slot : "div";
|
|
3647
3708
|
return /* @__PURE__ */ jsx(
|
|
3648
3709
|
Comp,
|
|
@@ -3659,7 +3720,7 @@ var SidebarGroupLabel = React36.forwardRef(({ className, asChild = false, ...pro
|
|
|
3659
3720
|
);
|
|
3660
3721
|
});
|
|
3661
3722
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
3662
|
-
var SidebarGroupAction =
|
|
3723
|
+
var SidebarGroupAction = React37.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3663
3724
|
const Comp = asChild ? Slot : "button";
|
|
3664
3725
|
return /* @__PURE__ */ jsx(
|
|
3665
3726
|
Comp,
|
|
@@ -3678,7 +3739,7 @@ var SidebarGroupAction = React36.forwardRef(({ className, asChild = false, ...pr
|
|
|
3678
3739
|
);
|
|
3679
3740
|
});
|
|
3680
3741
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
3681
|
-
var SidebarGroupContent =
|
|
3742
|
+
var SidebarGroupContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3682
3743
|
"div",
|
|
3683
3744
|
{
|
|
3684
3745
|
ref,
|
|
@@ -3688,7 +3749,7 @@ var SidebarGroupContent = React36.forwardRef(({ className, ...props }, ref) => /
|
|
|
3688
3749
|
}
|
|
3689
3750
|
));
|
|
3690
3751
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
3691
|
-
var SidebarMenu =
|
|
3752
|
+
var SidebarMenu = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3692
3753
|
"ul",
|
|
3693
3754
|
{
|
|
3694
3755
|
ref,
|
|
@@ -3698,7 +3759,7 @@ var SidebarMenu = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3698
3759
|
}
|
|
3699
3760
|
));
|
|
3700
3761
|
SidebarMenu.displayName = "SidebarMenu";
|
|
3701
|
-
var SidebarMenuItem =
|
|
3762
|
+
var SidebarMenuItem = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3702
3763
|
"li",
|
|
3703
3764
|
{
|
|
3704
3765
|
ref,
|
|
@@ -3728,7 +3789,7 @@ var sidebarMenuButtonVariants = cva(
|
|
|
3728
3789
|
}
|
|
3729
3790
|
}
|
|
3730
3791
|
);
|
|
3731
|
-
var SidebarMenuButton =
|
|
3792
|
+
var SidebarMenuButton = React37.forwardRef(
|
|
3732
3793
|
({
|
|
3733
3794
|
asChild = false,
|
|
3734
3795
|
isActive = false,
|
|
@@ -3774,7 +3835,7 @@ var SidebarMenuButton = React36.forwardRef(
|
|
|
3774
3835
|
}
|
|
3775
3836
|
);
|
|
3776
3837
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
3777
|
-
var SidebarMenuAction =
|
|
3838
|
+
var SidebarMenuAction = React37.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
3778
3839
|
const Comp = asChild ? Slot : "button";
|
|
3779
3840
|
return /* @__PURE__ */ jsx(
|
|
3780
3841
|
Comp,
|
|
@@ -3797,7 +3858,7 @@ var SidebarMenuAction = React36.forwardRef(({ className, asChild = false, showOn
|
|
|
3797
3858
|
);
|
|
3798
3859
|
});
|
|
3799
3860
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
3800
|
-
var SidebarMenuBadge =
|
|
3861
|
+
var SidebarMenuBadge = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3801
3862
|
"div",
|
|
3802
3863
|
{
|
|
3803
3864
|
ref,
|
|
@@ -3815,8 +3876,8 @@ var SidebarMenuBadge = React36.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3815
3876
|
}
|
|
3816
3877
|
));
|
|
3817
3878
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
3818
|
-
var SidebarMenuSkeleton =
|
|
3819
|
-
const width =
|
|
3879
|
+
var SidebarMenuSkeleton = React37.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
3880
|
+
const width = React37.useMemo(() => {
|
|
3820
3881
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
3821
3882
|
}, []);
|
|
3822
3883
|
return /* @__PURE__ */ jsxs(
|
|
@@ -3849,7 +3910,7 @@ var SidebarMenuSkeleton = React36.forwardRef(({ className, showIcon = false, ...
|
|
|
3849
3910
|
);
|
|
3850
3911
|
});
|
|
3851
3912
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
3852
|
-
var SidebarMenuSub =
|
|
3913
|
+
var SidebarMenuSub = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3853
3914
|
"ul",
|
|
3854
3915
|
{
|
|
3855
3916
|
ref,
|
|
@@ -3863,9 +3924,9 @@ var SidebarMenuSub = React36.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
3863
3924
|
}
|
|
3864
3925
|
));
|
|
3865
3926
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
3866
|
-
var SidebarMenuSubItem =
|
|
3927
|
+
var SidebarMenuSubItem = React37.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, ...props }));
|
|
3867
3928
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
3868
|
-
var SidebarMenuSubButton =
|
|
3929
|
+
var SidebarMenuSubButton = React37.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
3869
3930
|
const Comp = asChild ? Slot : "a";
|
|
3870
3931
|
return /* @__PURE__ */ jsx(
|
|
3871
3932
|
Comp,
|
|
@@ -3887,7 +3948,7 @@ var SidebarMenuSubButton = React36.forwardRef(({ asChild = false, size = "md", i
|
|
|
3887
3948
|
);
|
|
3888
3949
|
});
|
|
3889
3950
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
3890
|
-
var CustomSidebarMenuSub =
|
|
3951
|
+
var CustomSidebarMenuSub = React37__default.forwardRef(({ className, level = 1, ...props }, ref) => {
|
|
3891
3952
|
const customClass = `sidebar-menu-sub-level-${level}`;
|
|
3892
3953
|
return /* @__PURE__ */ jsx(
|
|
3893
3954
|
SidebarMenuSub,
|
|
@@ -3900,7 +3961,7 @@ var CustomSidebarMenuSub = React36__default.forwardRef(({ className, level = 1,
|
|
|
3900
3961
|
);
|
|
3901
3962
|
});
|
|
3902
3963
|
CustomSidebarMenuSub.displayName = "CustomSidebarMenuSub";
|
|
3903
|
-
var CustomSidebarMenuSubItem =
|
|
3964
|
+
var CustomSidebarMenuSubItem = React37__default.forwardRef(({ className, ...props }, ref) => {
|
|
3904
3965
|
return /* @__PURE__ */ jsx(
|
|
3905
3966
|
SidebarMenuSubItem,
|
|
3906
3967
|
{
|
|
@@ -3911,7 +3972,7 @@ var CustomSidebarMenuSubItem = React36__default.forwardRef(({ className, ...prop
|
|
|
3911
3972
|
);
|
|
3912
3973
|
});
|
|
3913
3974
|
CustomSidebarMenuSubItem.displayName = "CustomSidebarMenuSubItem";
|
|
3914
|
-
var CustomSidebarMenuSubButton =
|
|
3975
|
+
var CustomSidebarMenuSubButton = React37__default.forwardRef(({ className, ...props }, ref) => {
|
|
3915
3976
|
return /* @__PURE__ */ jsx(
|
|
3916
3977
|
SidebarMenuSubButton,
|
|
3917
3978
|
{
|
|
@@ -3922,7 +3983,7 @@ var CustomSidebarMenuSubButton = React36__default.forwardRef(({ className, ...pr
|
|
|
3922
3983
|
);
|
|
3923
3984
|
});
|
|
3924
3985
|
CustomSidebarMenuSubButton.displayName = "CustomSidebarMenuSubButton";
|
|
3925
|
-
var Slider =
|
|
3986
|
+
var Slider = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3926
3987
|
SliderPrimitive.Root,
|
|
3927
3988
|
{
|
|
3928
3989
|
ref,
|
|
@@ -3952,7 +4013,7 @@ var sizeVariants = {
|
|
|
3952
4013
|
thumb: "h-7 w-7 data-[state=checked]:translate-x-6"
|
|
3953
4014
|
}
|
|
3954
4015
|
};
|
|
3955
|
-
var Switch =
|
|
4016
|
+
var Switch = React37.forwardRef(({ className, size = "md", ...props }, ref) => {
|
|
3956
4017
|
const sizeClasses = sizeVariants[size];
|
|
3957
4018
|
return /* @__PURE__ */ jsx(
|
|
3958
4019
|
SwitchPrimitives.Root,
|
|
@@ -4038,7 +4099,7 @@ var SortIcon = ({ sorted }) => {
|
|
|
4038
4099
|
if (!sorted) return /* @__PURE__ */ jsx("svg", { className: "ml-2 icon-size opacity-50", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M8 9l4-4 4 4M16 15l-4 4-4-4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
4039
4100
|
return sorted === "asc" ? /* @__PURE__ */ jsx("svg", { className: "ml-2 icon-size text-primary", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M8 15l4-4 4 4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) : /* @__PURE__ */ jsx("svg", { className: "ml-2 icon-size text-primary", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M8 9l4-4 4 4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
4040
4101
|
};
|
|
4041
|
-
var Table =
|
|
4102
|
+
var Table = React37.forwardRef(
|
|
4042
4103
|
({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
|
|
4043
4104
|
"table",
|
|
4044
4105
|
{
|
|
@@ -4049,7 +4110,7 @@ var Table = React36.forwardRef(
|
|
|
4049
4110
|
) })
|
|
4050
4111
|
);
|
|
4051
4112
|
Table.displayName = "Table";
|
|
4052
|
-
var TableHeader =
|
|
4113
|
+
var TableHeader = React37.forwardRef(
|
|
4053
4114
|
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4054
4115
|
"thead",
|
|
4055
4116
|
{
|
|
@@ -4060,7 +4121,7 @@ var TableHeader = React36.forwardRef(
|
|
|
4060
4121
|
)
|
|
4061
4122
|
);
|
|
4062
4123
|
TableHeader.displayName = "TableHeader";
|
|
4063
|
-
var TableBody =
|
|
4124
|
+
var TableBody = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4064
4125
|
"tbody",
|
|
4065
4126
|
{
|
|
4066
4127
|
ref,
|
|
@@ -4069,7 +4130,7 @@ var TableBody = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4069
4130
|
}
|
|
4070
4131
|
));
|
|
4071
4132
|
TableBody.displayName = "TableBody";
|
|
4072
|
-
var TableFooter =
|
|
4133
|
+
var TableFooter = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4073
4134
|
"tfoot",
|
|
4074
4135
|
{
|
|
4075
4136
|
ref,
|
|
@@ -4081,7 +4142,7 @@ var TableFooter = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4081
4142
|
}
|
|
4082
4143
|
));
|
|
4083
4144
|
TableFooter.displayName = "TableFooter";
|
|
4084
|
-
var TableRow =
|
|
4145
|
+
var TableRow = React37.forwardRef(
|
|
4085
4146
|
({ className, variant, selected, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4086
4147
|
"tr",
|
|
4087
4148
|
{
|
|
@@ -4096,7 +4157,7 @@ var TableRow = React36.forwardRef(
|
|
|
4096
4157
|
)
|
|
4097
4158
|
);
|
|
4098
4159
|
TableRow.displayName = "TableRow";
|
|
4099
|
-
var TableHead =
|
|
4160
|
+
var TableHead = React37.forwardRef(
|
|
4100
4161
|
({ className, sortable, sorted = false, onSort, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4101
4162
|
"th",
|
|
4102
4163
|
{
|
|
@@ -4116,7 +4177,7 @@ var TableHead = React36.forwardRef(
|
|
|
4116
4177
|
)
|
|
4117
4178
|
);
|
|
4118
4179
|
TableHead.displayName = "TableHead";
|
|
4119
|
-
var TableCell =
|
|
4180
|
+
var TableCell = React37.forwardRef(
|
|
4120
4181
|
({ className, variant = "default", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4121
4182
|
"td",
|
|
4122
4183
|
{
|
|
@@ -4135,7 +4196,7 @@ var TableCell = React36.forwardRef(
|
|
|
4135
4196
|
)
|
|
4136
4197
|
);
|
|
4137
4198
|
TableCell.displayName = "TableCell";
|
|
4138
|
-
var TableCaption =
|
|
4199
|
+
var TableCaption = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4139
4200
|
"caption",
|
|
4140
4201
|
{
|
|
4141
4202
|
ref,
|
|
@@ -4145,7 +4206,7 @@ var TableCaption = React36.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4145
4206
|
));
|
|
4146
4207
|
TableCaption.displayName = "TableCaption";
|
|
4147
4208
|
var Tabs = TabsPrimitive.Root;
|
|
4148
|
-
var TabsList =
|
|
4209
|
+
var TabsList = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4149
4210
|
TabsPrimitive.List,
|
|
4150
4211
|
{
|
|
4151
4212
|
ref,
|
|
@@ -4157,7 +4218,7 @@ var TabsList = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4157
4218
|
}
|
|
4158
4219
|
));
|
|
4159
4220
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
4160
|
-
var TabsTrigger =
|
|
4221
|
+
var TabsTrigger = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4161
4222
|
TabsPrimitive.Trigger,
|
|
4162
4223
|
{
|
|
4163
4224
|
ref,
|
|
@@ -4169,7 +4230,7 @@ var TabsTrigger = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4169
4230
|
}
|
|
4170
4231
|
));
|
|
4171
4232
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4172
|
-
var TabsContent =
|
|
4233
|
+
var TabsContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4173
4234
|
TabsPrimitive.Content,
|
|
4174
4235
|
{
|
|
4175
4236
|
ref,
|
|
@@ -4181,7 +4242,7 @@ var TabsContent = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4181
4242
|
}
|
|
4182
4243
|
));
|
|
4183
4244
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
4184
|
-
var Textarea =
|
|
4245
|
+
var Textarea = React37.forwardRef(
|
|
4185
4246
|
({ className, ...props }, ref) => {
|
|
4186
4247
|
return /* @__PURE__ */ jsx(
|
|
4187
4248
|
"textarea",
|
|
@@ -4217,7 +4278,7 @@ var toggleVariants = cva(
|
|
|
4217
4278
|
}
|
|
4218
4279
|
}
|
|
4219
4280
|
);
|
|
4220
|
-
var Toggle =
|
|
4281
|
+
var Toggle = React37.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4221
4282
|
TogglePrimitive.Root,
|
|
4222
4283
|
{
|
|
4223
4284
|
ref,
|
|
@@ -4226,12 +4287,12 @@ var Toggle = React36.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
4226
4287
|
}
|
|
4227
4288
|
));
|
|
4228
4289
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
4229
|
-
var ToggleGroupContext =
|
|
4290
|
+
var ToggleGroupContext = React37.createContext({
|
|
4230
4291
|
size: "default",
|
|
4231
4292
|
variant: "default"
|
|
4232
4293
|
});
|
|
4233
|
-
var ToggleGroup =
|
|
4234
|
-
const contextValue =
|
|
4294
|
+
var ToggleGroup = React37.forwardRef(({ className, variant, size, children, ...props }, ref) => {
|
|
4295
|
+
const contextValue = React37.useMemo(() => ({ variant, size }), [variant, size]);
|
|
4235
4296
|
return /* @__PURE__ */ jsx(
|
|
4236
4297
|
ToggleGroupPrimitive.Root,
|
|
4237
4298
|
{
|
|
@@ -4243,8 +4304,8 @@ var ToggleGroup = React36.forwardRef(({ className, variant, size, children, ...p
|
|
|
4243
4304
|
);
|
|
4244
4305
|
});
|
|
4245
4306
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
4246
|
-
var ToggleGroupItem =
|
|
4247
|
-
const context =
|
|
4307
|
+
var ToggleGroupItem = React37.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
4308
|
+
const context = React37.useContext(ToggleGroupContext);
|
|
4248
4309
|
return /* @__PURE__ */ jsx(
|
|
4249
4310
|
ToggleGroupPrimitive.Item,
|
|
4250
4311
|
{
|
|
@@ -4262,7 +4323,7 @@ var ToggleGroupItem = React36.forwardRef(({ className, children, variant, size,
|
|
|
4262
4323
|
);
|
|
4263
4324
|
});
|
|
4264
4325
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
4265
|
-
var TooltipButton =
|
|
4326
|
+
var TooltipButton = React37__default.forwardRef(
|
|
4266
4327
|
({ tooltip, icon, children, variant = "outline", size, className, showTextOnMobile = true, ...props }, ref) => {
|
|
4267
4328
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4268
4329
|
/* @__PURE__ */ jsxs(Tooltip2, { children: [
|
|
@@ -4401,8 +4462,8 @@ function toast({ ...props }) {
|
|
|
4401
4462
|
};
|
|
4402
4463
|
}
|
|
4403
4464
|
function useToast() {
|
|
4404
|
-
const [state, setState] =
|
|
4405
|
-
|
|
4465
|
+
const [state, setState] = React37.useState(memoryState);
|
|
4466
|
+
React37.useEffect(() => {
|
|
4406
4467
|
listeners.push(setState);
|
|
4407
4468
|
return () => {
|
|
4408
4469
|
const index = listeners.indexOf(setState);
|
|
@@ -4917,7 +4978,7 @@ function ControlSidebar({
|
|
|
4917
4978
|
} = useSidebarState(routePaths);
|
|
4918
4979
|
const { state } = useSidebar();
|
|
4919
4980
|
const isCollapsed = state === "collapsed";
|
|
4920
|
-
const [internalTime, setInternalTime] =
|
|
4981
|
+
const [internalTime, setInternalTime] = React37__default.useState(/* @__PURE__ */ new Date());
|
|
4921
4982
|
const currentTenantId = getCurrentTenantId();
|
|
4922
4983
|
console.log(currentTenantId);
|
|
4923
4984
|
const isMasterTenant = currentTenantId === "master";
|
|
@@ -5055,7 +5116,7 @@ function ControlSidebar({
|
|
|
5055
5116
|
]
|
|
5056
5117
|
}
|
|
5057
5118
|
];
|
|
5058
|
-
|
|
5119
|
+
React37__default.useEffect(() => {
|
|
5059
5120
|
if (!currentTime) {
|
|
5060
5121
|
const timer = setInterval(() => {
|
|
5061
5122
|
setInternalTime(/* @__PURE__ */ new Date());
|
|
@@ -11417,7 +11478,7 @@ var WebhookMetricsMapper = class {
|
|
|
11417
11478
|
}
|
|
11418
11479
|
};
|
|
11419
11480
|
var ToastProvider = ToastPrimitives.Provider;
|
|
11420
|
-
var ToastViewport =
|
|
11481
|
+
var ToastViewport = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11421
11482
|
ToastPrimitives.Viewport,
|
|
11422
11483
|
{
|
|
11423
11484
|
ref,
|
|
@@ -11465,7 +11526,7 @@ var AlertIcons2 = {
|
|
|
11465
11526
|
/* @__PURE__ */ jsx("path", { d: "M12 16v-4M12 8h.01", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
11466
11527
|
] })
|
|
11467
11528
|
};
|
|
11468
|
-
var Toast =
|
|
11529
|
+
var Toast = React37.forwardRef(({ className, variant, icon, children, ...props }, ref) => {
|
|
11469
11530
|
const defaultIcon = variant && AlertIcons2[variant];
|
|
11470
11531
|
const displayIcon = icon !== void 0 ? icon : defaultIcon;
|
|
11471
11532
|
return /* @__PURE__ */ jsx(
|
|
@@ -11482,7 +11543,7 @@ var Toast = React36.forwardRef(({ className, variant, icon, children, ...props }
|
|
|
11482
11543
|
);
|
|
11483
11544
|
});
|
|
11484
11545
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
11485
|
-
var ToastAction =
|
|
11546
|
+
var ToastAction = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11486
11547
|
ToastPrimitives.Action,
|
|
11487
11548
|
{
|
|
11488
11549
|
ref,
|
|
@@ -11494,7 +11555,7 @@ var ToastAction = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
11494
11555
|
}
|
|
11495
11556
|
));
|
|
11496
11557
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
11497
|
-
var ToastClose =
|
|
11558
|
+
var ToastClose = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11498
11559
|
ToastPrimitives.Close,
|
|
11499
11560
|
{
|
|
11500
11561
|
ref,
|
|
@@ -11508,7 +11569,7 @@ var ToastClose = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
11508
11569
|
}
|
|
11509
11570
|
));
|
|
11510
11571
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
11511
|
-
var ToastTitle =
|
|
11572
|
+
var ToastTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11512
11573
|
ToastPrimitives.Title,
|
|
11513
11574
|
{
|
|
11514
11575
|
ref,
|
|
@@ -11517,7 +11578,7 @@ var ToastTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
11517
11578
|
}
|
|
11518
11579
|
));
|
|
11519
11580
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
11520
|
-
var ToastDescription =
|
|
11581
|
+
var ToastDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11521
11582
|
ToastPrimitives.Description,
|
|
11522
11583
|
{
|
|
11523
11584
|
ref,
|
|
@@ -11543,6 +11604,6 @@ function Toaster() {
|
|
|
11543
11604
|
] });
|
|
11544
11605
|
}
|
|
11545
11606
|
|
|
11546
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BadgeGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CardWithIcon, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, ChatContainer, ChatHeader, ChatInput, ChatLayout, ChatMessages, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CountBadge, CustomSidebarMenuSub, CustomSidebarMenuSubButton, CustomSidebarMenuSubItem, DEFAULT_WEBHOOK_CONFIG, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogMaximizableContent, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EventInspector, FilterBar_default as FilterBar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputWithLabel, Label3 as Label, MCPCategoryToNodeType, MCPSubtypeToIcon, MainLayout, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBubble, MessageHistory, MessageInput, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotificationBadge, PageHeader, Pagination, PaginationContent, PaginationControls, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, ProtectedRoute, QRCodeModal, RadioGroup4 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RichTextEditor, RichTextRenderer, SSOError_default as SSOError, SSOLoadingOverlay_default as SSOLoadingOverlay, SSOLoginButton_default as SSOLoginButton, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SendMessageModal, Separator5 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, StandardPageLayout, StatusBadge, StatusIndicator_default as StatusIndicator, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip2 as Tooltip, TooltipButton, TooltipContent, TooltipProvider, TooltipTrigger, TypingIndicator, ViewToggle_default as ViewToggle, WEBHOOK_TEST_EVENTS, WebhookConfigModal, WebhookEventCard, WebhookEventMapper, WebhookFlowLink, WebhookLogsViewer, WebhookMetricsChart, WebhookMetricsMapper, WebhookSubscriptionMapper, WebhookTestModal, WebhookTimeline, WhatsAppHealthMonitor, badgeVariants, beautifyString, buttonVariants, calculateProcessingTime, capitalizeFirst, cn, formatDate, formatDateTime, formatEventType, formatLocalDate, formatLocalDateTime, formatLocalTime, formatStatus, formatTime, getEventTypeVariant, getMetricColor, getNodeBorderStyles, getNodeIconColor, getNodeIconTextColor, getStatusVariant, getTimelineColor, isValidWebhookPayload, navigationMenuTriggerStyle, sanitizeWebhookUrl, toCamelCase, toSnakeCase, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast, validateUrl };
|
|
11607
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BadgeGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CardWithIcon, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, ChatContainer, ChatHeader, ChatInput, ChatLayout, ChatMessages, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CountBadge, CustomSidebarMenuSub, CustomSidebarMenuSubButton, CustomSidebarMenuSubItem, DEFAULT_WEBHOOK_CONFIG, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogMaximizableContent, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EventInspector, FilterBar_default as FilterBar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputWithLabel, Label3 as Label, Loading, MCPCategoryToNodeType, MCPSubtypeToIcon, MainLayout, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBubble, MessageHistory, MessageInput, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotificationBadge, PageHeader, Pagination, PaginationContent, PaginationControls, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, ProtectedRoute, QRCodeModal, RadioGroup4 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RichTextEditor, RichTextRenderer, SSOError_default as SSOError, SSOLoadingOverlay_default as SSOLoadingOverlay, SSOLoginButton_default as SSOLoginButton, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SendMessageModal, Separator5 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, StandardPageLayout, StatusBadge, StatusIndicator_default as StatusIndicator, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip2 as Tooltip, TooltipButton, TooltipContent, TooltipProvider, TooltipTrigger, TypingIndicator, ViewToggle_default as ViewToggle, WEBHOOK_TEST_EVENTS, WebhookConfigModal, WebhookEventCard, WebhookEventMapper, WebhookFlowLink, WebhookLogsViewer, WebhookMetricsChart, WebhookMetricsMapper, WebhookSubscriptionMapper, WebhookTestModal, WebhookTimeline, WhatsAppHealthMonitor, badgeVariants, beautifyString, buttonVariants, calculateProcessingTime, capitalizeFirst, cn, formatDate, formatDateTime, formatEventType, formatLocalDate, formatLocalDateTime, formatLocalTime, formatStatus, formatTime, getEventTypeVariant, getMetricColor, getNodeBorderStyles, getNodeIconColor, getNodeIconTextColor, getStatusVariant, getTimelineColor, isValidWebhookPayload, loadingVariants, navigationMenuTriggerStyle, sanitizeWebhookUrl, toCamelCase, toSnakeCase, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast, validateUrl };
|
|
11547
11608
|
//# sourceMappingURL=index.js.map
|
|
11548
11609
|
//# sourceMappingURL=index.js.map
|