@appolabs/ui 0.1.8 → 0.1.9
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.cjs +382 -227
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +378 -229
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { clsx } from 'clsx';
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
3
|
+
import * as React40 from 'react';
|
|
4
|
+
import React40__default from 'react';
|
|
5
5
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
6
|
-
import { ChevronDown, ArrowLeft, ArrowRight, Check, Search, ChevronRight, Circle, Dot, ChevronUp, PanelLeft,
|
|
6
|
+
import { ChevronDown, X, ArrowLeft, ArrowRight, Check, Search, ChevronRight, Circle, Dot, ChevronUp, PanelLeft, MoreHorizontal, ChevronLeft, GripVertical } from 'lucide-react';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import { cva } from 'class-variance-authority';
|
|
9
9
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
@@ -46,8 +46,8 @@ function cn(...inputs) {
|
|
|
46
46
|
}
|
|
47
47
|
var MOBILE_BREAKPOINT = 768;
|
|
48
48
|
function useIsMobile() {
|
|
49
|
-
const [isMobile, setIsMobile] =
|
|
50
|
-
|
|
49
|
+
const [isMobile, setIsMobile] = React40.useState(void 0);
|
|
50
|
+
React40.useEffect(() => {
|
|
51
51
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
52
52
|
const onChange = () => {
|
|
53
53
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -158,8 +158,8 @@ function toast({ ...props }) {
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
function useToast() {
|
|
161
|
-
const [state, setState] =
|
|
162
|
-
|
|
161
|
+
const [state, setState] = React40.useState(memoryState);
|
|
162
|
+
React40.useEffect(() => {
|
|
163
163
|
listeners.push(setState);
|
|
164
164
|
return () => {
|
|
165
165
|
const index = listeners.indexOf(setState);
|
|
@@ -175,7 +175,7 @@ function useToast() {
|
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
177
|
var Accordion = AccordionPrimitive.Root;
|
|
178
|
-
var AccordionItem =
|
|
178
|
+
var AccordionItem = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
179
179
|
AccordionPrimitive.Item,
|
|
180
180
|
{
|
|
181
181
|
ref,
|
|
@@ -184,7 +184,7 @@ var AccordionItem = React39.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
184
184
|
}
|
|
185
185
|
));
|
|
186
186
|
AccordionItem.displayName = "AccordionItem";
|
|
187
|
-
var AccordionTrigger =
|
|
187
|
+
var AccordionTrigger = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
188
188
|
AccordionPrimitive.Trigger,
|
|
189
189
|
{
|
|
190
190
|
ref,
|
|
@@ -200,7 +200,7 @@ var AccordionTrigger = React39.forwardRef(({ className, children, ...props }, re
|
|
|
200
200
|
}
|
|
201
201
|
) }));
|
|
202
202
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
203
|
-
var AccordionContent =
|
|
203
|
+
var AccordionContent = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
204
204
|
AccordionPrimitive.Content,
|
|
205
205
|
{
|
|
206
206
|
ref,
|
|
@@ -224,7 +224,7 @@ var alertVariants = cva(
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
|
-
var Alert =
|
|
227
|
+
var Alert = React40.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
228
228
|
"div",
|
|
229
229
|
{
|
|
230
230
|
ref,
|
|
@@ -234,7 +234,7 @@ var Alert = React39.forwardRef(({ className, variant, ...props }, ref) => /* @__
|
|
|
234
234
|
}
|
|
235
235
|
));
|
|
236
236
|
Alert.displayName = "Alert";
|
|
237
|
-
var AlertTitle =
|
|
237
|
+
var AlertTitle = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
238
238
|
"h5",
|
|
239
239
|
{
|
|
240
240
|
ref,
|
|
@@ -243,7 +243,7 @@ var AlertTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
243
243
|
}
|
|
244
244
|
));
|
|
245
245
|
AlertTitle.displayName = "AlertTitle";
|
|
246
|
-
var AlertDescription =
|
|
246
|
+
var AlertDescription = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
247
247
|
"div",
|
|
248
248
|
{
|
|
249
249
|
ref,
|
|
@@ -277,7 +277,7 @@ var buttonVariants = cva(
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
);
|
|
280
|
-
var Button =
|
|
280
|
+
var Button = React40.forwardRef(
|
|
281
281
|
({ className, variant, size, asChild = false, disabled, ...props }, ref) => {
|
|
282
282
|
const Comp = asChild ? Slot : "button";
|
|
283
283
|
return /* @__PURE__ */ jsx(
|
|
@@ -296,7 +296,7 @@ Button.displayName = "Button";
|
|
|
296
296
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
297
297
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
298
298
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
299
|
-
var AlertDialogOverlay =
|
|
299
|
+
var AlertDialogOverlay = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
300
300
|
AlertDialogPrimitive.Overlay,
|
|
301
301
|
{
|
|
302
302
|
className: cn(
|
|
@@ -308,7 +308,7 @@ var AlertDialogOverlay = React39.forwardRef(({ className, ...props }, ref) => /*
|
|
|
308
308
|
}
|
|
309
309
|
));
|
|
310
310
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
311
|
-
var AlertDialogContent =
|
|
311
|
+
var AlertDialogContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
312
312
|
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
313
313
|
/* @__PURE__ */ jsx(
|
|
314
314
|
AlertDialogPrimitive.Content,
|
|
@@ -351,7 +351,7 @@ var AlertDialogFooter = ({
|
|
|
351
351
|
}
|
|
352
352
|
);
|
|
353
353
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
354
|
-
var AlertDialogTitle =
|
|
354
|
+
var AlertDialogTitle = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
355
355
|
AlertDialogPrimitive.Title,
|
|
356
356
|
{
|
|
357
357
|
ref,
|
|
@@ -360,7 +360,7 @@ var AlertDialogTitle = React39.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
360
360
|
}
|
|
361
361
|
));
|
|
362
362
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
363
|
-
var AlertDialogDescription =
|
|
363
|
+
var AlertDialogDescription = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
364
364
|
AlertDialogPrimitive.Description,
|
|
365
365
|
{
|
|
366
366
|
ref,
|
|
@@ -369,7 +369,7 @@ var AlertDialogDescription = React39.forwardRef(({ className, ...props }, ref) =
|
|
|
369
369
|
}
|
|
370
370
|
));
|
|
371
371
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
372
|
-
var AlertDialogAction =
|
|
372
|
+
var AlertDialogAction = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
373
373
|
AlertDialogPrimitive.Action,
|
|
374
374
|
{
|
|
375
375
|
ref,
|
|
@@ -378,7 +378,7 @@ var AlertDialogAction = React39.forwardRef(({ className, ...props }, ref) => /*
|
|
|
378
378
|
}
|
|
379
379
|
));
|
|
380
380
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
381
|
-
var AlertDialogCancel =
|
|
381
|
+
var AlertDialogCancel = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
382
382
|
AlertDialogPrimitive.Cancel,
|
|
383
383
|
{
|
|
384
384
|
ref,
|
|
@@ -391,7 +391,7 @@ var AlertDialogCancel = React39.forwardRef(({ className, ...props }, ref) => /*
|
|
|
391
391
|
}
|
|
392
392
|
));
|
|
393
393
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
394
|
-
var AnimatedBackground =
|
|
394
|
+
var AnimatedBackground = React40.forwardRef(
|
|
395
395
|
({ className, variant = "default", showOrbs = true, showGrid = false, children, ...props }, ref) => {
|
|
396
396
|
const isDashboard = variant === "dashboard";
|
|
397
397
|
return /* @__PURE__ */ jsxs(
|
|
@@ -449,7 +449,7 @@ var AnimatedBackground = React39.forwardRef(
|
|
|
449
449
|
}
|
|
450
450
|
);
|
|
451
451
|
AnimatedBackground.displayName = "AnimatedBackground";
|
|
452
|
-
var GradientOrb =
|
|
452
|
+
var GradientOrb = React40.forwardRef(
|
|
453
453
|
({
|
|
454
454
|
className,
|
|
455
455
|
color = "blue",
|
|
@@ -504,7 +504,7 @@ var GradientOrb = React39.forwardRef(
|
|
|
504
504
|
);
|
|
505
505
|
GradientOrb.displayName = "GradientOrb";
|
|
506
506
|
var AspectRatio = AspectRatioPrimitive.Root;
|
|
507
|
-
var Avatar =
|
|
507
|
+
var Avatar = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
508
508
|
AvatarPrimitive.Root,
|
|
509
509
|
{
|
|
510
510
|
ref,
|
|
@@ -516,7 +516,7 @@ var Avatar = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
516
516
|
}
|
|
517
517
|
));
|
|
518
518
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
519
|
-
var AvatarImage =
|
|
519
|
+
var AvatarImage = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
520
520
|
AvatarPrimitive.Image,
|
|
521
521
|
{
|
|
522
522
|
ref,
|
|
@@ -525,7 +525,7 @@ var AvatarImage = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
525
525
|
}
|
|
526
526
|
));
|
|
527
527
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
528
|
-
var AvatarFallback =
|
|
528
|
+
var AvatarFallback = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
529
529
|
AvatarPrimitive.Fallback,
|
|
530
530
|
{
|
|
531
531
|
ref,
|
|
@@ -556,9 +556,144 @@ var badgeVariants = cva(
|
|
|
556
556
|
function Badge({ className, variant, ...props }) {
|
|
557
557
|
return /* @__PURE__ */ jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
558
558
|
}
|
|
559
|
-
var
|
|
559
|
+
var bannerVariants = cva(
|
|
560
|
+
"rounded-xl border p-4",
|
|
561
|
+
{
|
|
562
|
+
variants: {
|
|
563
|
+
variant: {
|
|
564
|
+
info: "border-blue-200 bg-blue-50 dark:border-blue-900/50 dark:bg-blue-900/20",
|
|
565
|
+
warning: "border-amber-200 bg-amber-50 dark:border-amber-900/50 dark:bg-amber-900/20",
|
|
566
|
+
destructive: "border-red-200 bg-red-50 dark:border-red-900/50 dark:bg-red-900/20",
|
|
567
|
+
success: "border-emerald-200 bg-emerald-50 dark:border-emerald-900/50 dark:bg-emerald-900/20"
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
defaultVariants: {
|
|
571
|
+
variant: "info"
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
);
|
|
575
|
+
var bannerIconVariants = cva(
|
|
576
|
+
"mt-0.5 h-5 w-5 flex-shrink-0",
|
|
577
|
+
{
|
|
578
|
+
variants: {
|
|
579
|
+
variant: {
|
|
580
|
+
info: "text-blue-600 dark:text-blue-400",
|
|
581
|
+
warning: "text-amber-600 dark:text-amber-400",
|
|
582
|
+
destructive: "text-red-600 dark:text-red-400",
|
|
583
|
+
success: "text-emerald-600 dark:text-emerald-400"
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
defaultVariants: {
|
|
587
|
+
variant: "info"
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
);
|
|
591
|
+
var bannerTitleVariants = cva(
|
|
592
|
+
"font-medium",
|
|
593
|
+
{
|
|
594
|
+
variants: {
|
|
595
|
+
variant: {
|
|
596
|
+
info: "text-blue-900 dark:text-blue-100",
|
|
597
|
+
warning: "text-amber-900 dark:text-amber-100",
|
|
598
|
+
destructive: "text-red-900 dark:text-red-100",
|
|
599
|
+
success: "text-emerald-900 dark:text-emerald-100"
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
defaultVariants: {
|
|
603
|
+
variant: "info"
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
);
|
|
607
|
+
var bannerDescriptionVariants = cva(
|
|
608
|
+
"mt-1 text-sm",
|
|
609
|
+
{
|
|
610
|
+
variants: {
|
|
611
|
+
variant: {
|
|
612
|
+
info: "text-blue-700 dark:text-blue-300",
|
|
613
|
+
warning: "text-amber-700 dark:text-amber-300",
|
|
614
|
+
destructive: "text-red-700 dark:text-red-300",
|
|
615
|
+
success: "text-emerald-700 dark:text-emerald-300"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
defaultVariants: {
|
|
619
|
+
variant: "info"
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
);
|
|
623
|
+
var bannerDismissVariants = cva(
|
|
624
|
+
"h-8 w-8 inline-flex items-center justify-center rounded-md transition-colors",
|
|
625
|
+
{
|
|
626
|
+
variants: {
|
|
627
|
+
variant: {
|
|
628
|
+
info: "text-blue-700 hover:text-blue-900 hover:bg-blue-100 dark:text-blue-300 dark:hover:text-blue-100 dark:hover:bg-blue-800/50",
|
|
629
|
+
warning: "text-amber-700 hover:text-amber-900 hover:bg-amber-100 dark:text-amber-300 dark:hover:text-amber-100 dark:hover:bg-amber-800/50",
|
|
630
|
+
destructive: "text-red-700 hover:text-red-900 hover:bg-red-100 dark:text-red-300 dark:hover:text-red-100 dark:hover:bg-red-800/50",
|
|
631
|
+
success: "text-emerald-700 hover:text-emerald-900 hover:bg-emerald-100 dark:text-emerald-300 dark:hover:text-emerald-100 dark:hover:bg-emerald-800/50"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
defaultVariants: {
|
|
635
|
+
variant: "info"
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
);
|
|
639
|
+
var Banner = React40.forwardRef(
|
|
640
|
+
({ className, variant, icon, onDismiss, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
641
|
+
"div",
|
|
642
|
+
{
|
|
643
|
+
ref,
|
|
644
|
+
role: "status",
|
|
645
|
+
className: cn(bannerVariants({ variant }), className),
|
|
646
|
+
...props,
|
|
647
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
648
|
+
icon && /* @__PURE__ */ jsx("div", { className: cn(bannerIconVariants({ variant })), children: icon }),
|
|
649
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 min-w-0", children }),
|
|
650
|
+
onDismiss && /* @__PURE__ */ jsxs(
|
|
651
|
+
"button",
|
|
652
|
+
{
|
|
653
|
+
type: "button",
|
|
654
|
+
onClick: onDismiss,
|
|
655
|
+
className: cn(bannerDismissVariants({ variant }), "flex-shrink-0"),
|
|
656
|
+
children: [
|
|
657
|
+
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
658
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Dismiss" })
|
|
659
|
+
]
|
|
660
|
+
}
|
|
661
|
+
)
|
|
662
|
+
] })
|
|
663
|
+
}
|
|
664
|
+
)
|
|
665
|
+
);
|
|
666
|
+
Banner.displayName = "Banner";
|
|
667
|
+
var BannerTitle = React40.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
668
|
+
"p",
|
|
669
|
+
{
|
|
670
|
+
ref,
|
|
671
|
+
className: cn(bannerTitleVariants({ variant }), className),
|
|
672
|
+
...props
|
|
673
|
+
}
|
|
674
|
+
));
|
|
675
|
+
BannerTitle.displayName = "BannerTitle";
|
|
676
|
+
var BannerDescription = React40.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
677
|
+
"p",
|
|
678
|
+
{
|
|
679
|
+
ref,
|
|
680
|
+
className: cn(bannerDescriptionVariants({ variant }), className),
|
|
681
|
+
...props
|
|
682
|
+
}
|
|
683
|
+
));
|
|
684
|
+
BannerDescription.displayName = "BannerDescription";
|
|
685
|
+
var BannerActions = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
686
|
+
"div",
|
|
687
|
+
{
|
|
688
|
+
ref,
|
|
689
|
+
className: cn("mt-3 flex flex-wrap items-center gap-2", className),
|
|
690
|
+
...props
|
|
691
|
+
}
|
|
692
|
+
));
|
|
693
|
+
BannerActions.displayName = "BannerActions";
|
|
694
|
+
var Breadcrumb = React40.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
560
695
|
Breadcrumb.displayName = "Breadcrumb";
|
|
561
|
-
var BreadcrumbList =
|
|
696
|
+
var BreadcrumbList = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
562
697
|
"ol",
|
|
563
698
|
{
|
|
564
699
|
ref,
|
|
@@ -570,7 +705,7 @@ var BreadcrumbList = React39.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
570
705
|
}
|
|
571
706
|
));
|
|
572
707
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
573
|
-
var BreadcrumbItem =
|
|
708
|
+
var BreadcrumbItem = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
574
709
|
"li",
|
|
575
710
|
{
|
|
576
711
|
ref,
|
|
@@ -579,7 +714,7 @@ var BreadcrumbItem = React39.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
579
714
|
}
|
|
580
715
|
));
|
|
581
716
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
582
|
-
var BreadcrumbLink =
|
|
717
|
+
var BreadcrumbLink = React40.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
583
718
|
const Comp = asChild ? Slot : "a";
|
|
584
719
|
return /* @__PURE__ */ jsx(
|
|
585
720
|
Comp,
|
|
@@ -591,7 +726,7 @@ var BreadcrumbLink = React39.forwardRef(({ asChild, className, ...props }, ref)
|
|
|
591
726
|
);
|
|
592
727
|
});
|
|
593
728
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
594
|
-
var BreadcrumbPage =
|
|
729
|
+
var BreadcrumbPage = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
595
730
|
"span",
|
|
596
731
|
{
|
|
597
732
|
ref,
|
|
@@ -687,7 +822,7 @@ function Calendar({
|
|
|
687
822
|
);
|
|
688
823
|
}
|
|
689
824
|
Calendar.displayName = "Calendar";
|
|
690
|
-
var Card =
|
|
825
|
+
var Card = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
691
826
|
"div",
|
|
692
827
|
{
|
|
693
828
|
ref,
|
|
@@ -699,7 +834,7 @@ var Card = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
699
834
|
}
|
|
700
835
|
));
|
|
701
836
|
Card.displayName = "Card";
|
|
702
|
-
var CardHeader =
|
|
837
|
+
var CardHeader = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
703
838
|
"div",
|
|
704
839
|
{
|
|
705
840
|
ref,
|
|
@@ -708,7 +843,7 @@ var CardHeader = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
708
843
|
}
|
|
709
844
|
));
|
|
710
845
|
CardHeader.displayName = "CardHeader";
|
|
711
|
-
var CardTitle =
|
|
846
|
+
var CardTitle = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
712
847
|
"h3",
|
|
713
848
|
{
|
|
714
849
|
ref,
|
|
@@ -720,7 +855,7 @@ var CardTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
720
855
|
}
|
|
721
856
|
));
|
|
722
857
|
CardTitle.displayName = "CardTitle";
|
|
723
|
-
var CardDescription =
|
|
858
|
+
var CardDescription = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
724
859
|
"p",
|
|
725
860
|
{
|
|
726
861
|
ref,
|
|
@@ -729,9 +864,9 @@ var CardDescription = React39.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
729
864
|
}
|
|
730
865
|
));
|
|
731
866
|
CardDescription.displayName = "CardDescription";
|
|
732
|
-
var CardContent =
|
|
867
|
+
var CardContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex-1 p-6 pt-0", className), ...props }));
|
|
733
868
|
CardContent.displayName = "CardContent";
|
|
734
|
-
var CardFooter =
|
|
869
|
+
var CardFooter = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
735
870
|
"div",
|
|
736
871
|
{
|
|
737
872
|
ref,
|
|
@@ -740,15 +875,15 @@ var CardFooter = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
740
875
|
}
|
|
741
876
|
));
|
|
742
877
|
CardFooter.displayName = "CardFooter";
|
|
743
|
-
var CarouselContext =
|
|
878
|
+
var CarouselContext = React40.createContext(null);
|
|
744
879
|
function useCarousel() {
|
|
745
|
-
const context =
|
|
880
|
+
const context = React40.useContext(CarouselContext);
|
|
746
881
|
if (!context) {
|
|
747
882
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
748
883
|
}
|
|
749
884
|
return context;
|
|
750
885
|
}
|
|
751
|
-
var Carousel =
|
|
886
|
+
var Carousel = React40.forwardRef(
|
|
752
887
|
({
|
|
753
888
|
orientation = "horizontal",
|
|
754
889
|
opts,
|
|
@@ -765,22 +900,22 @@ var Carousel = React39.forwardRef(
|
|
|
765
900
|
},
|
|
766
901
|
plugins
|
|
767
902
|
);
|
|
768
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
769
|
-
const [canScrollNext, setCanScrollNext] =
|
|
770
|
-
const onSelect =
|
|
903
|
+
const [canScrollPrev, setCanScrollPrev] = React40.useState(false);
|
|
904
|
+
const [canScrollNext, setCanScrollNext] = React40.useState(false);
|
|
905
|
+
const onSelect = React40.useCallback((api2) => {
|
|
771
906
|
if (!api2) {
|
|
772
907
|
return;
|
|
773
908
|
}
|
|
774
909
|
setCanScrollPrev(api2.canScrollPrev());
|
|
775
910
|
setCanScrollNext(api2.canScrollNext());
|
|
776
911
|
}, []);
|
|
777
|
-
const scrollPrev =
|
|
912
|
+
const scrollPrev = React40.useCallback(() => {
|
|
778
913
|
api?.scrollPrev();
|
|
779
914
|
}, [api]);
|
|
780
|
-
const scrollNext =
|
|
915
|
+
const scrollNext = React40.useCallback(() => {
|
|
781
916
|
api?.scrollNext();
|
|
782
917
|
}, [api]);
|
|
783
|
-
const handleKeyDown =
|
|
918
|
+
const handleKeyDown = React40.useCallback(
|
|
784
919
|
(event) => {
|
|
785
920
|
if (event.key === "ArrowLeft") {
|
|
786
921
|
event.preventDefault();
|
|
@@ -792,13 +927,13 @@ var Carousel = React39.forwardRef(
|
|
|
792
927
|
},
|
|
793
928
|
[scrollPrev, scrollNext]
|
|
794
929
|
);
|
|
795
|
-
|
|
930
|
+
React40.useEffect(() => {
|
|
796
931
|
if (!api || !setApi) {
|
|
797
932
|
return;
|
|
798
933
|
}
|
|
799
934
|
setApi(api);
|
|
800
935
|
}, [api, setApi]);
|
|
801
|
-
|
|
936
|
+
React40.useEffect(() => {
|
|
802
937
|
if (!api) {
|
|
803
938
|
return;
|
|
804
939
|
}
|
|
@@ -839,7 +974,7 @@ var Carousel = React39.forwardRef(
|
|
|
839
974
|
}
|
|
840
975
|
);
|
|
841
976
|
Carousel.displayName = "Carousel";
|
|
842
|
-
var CarouselContent =
|
|
977
|
+
var CarouselContent = React40.forwardRef(({ className, ...props }, ref) => {
|
|
843
978
|
const { carouselRef, orientation } = useCarousel();
|
|
844
979
|
return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
845
980
|
"div",
|
|
@@ -855,7 +990,7 @@ var CarouselContent = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
855
990
|
) });
|
|
856
991
|
});
|
|
857
992
|
CarouselContent.displayName = "CarouselContent";
|
|
858
|
-
var CarouselItem =
|
|
993
|
+
var CarouselItem = React40.forwardRef(({ className, ...props }, ref) => {
|
|
859
994
|
const { orientation } = useCarousel();
|
|
860
995
|
return /* @__PURE__ */ jsx(
|
|
861
996
|
"div",
|
|
@@ -873,7 +1008,7 @@ var CarouselItem = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
873
1008
|
);
|
|
874
1009
|
});
|
|
875
1010
|
CarouselItem.displayName = "CarouselItem";
|
|
876
|
-
var CarouselPrevious =
|
|
1011
|
+
var CarouselPrevious = React40.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
877
1012
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
878
1013
|
return /* @__PURE__ */ jsxs(
|
|
879
1014
|
Button,
|
|
@@ -897,7 +1032,7 @@ var CarouselPrevious = React39.forwardRef(({ className, variant = "outline", siz
|
|
|
897
1032
|
);
|
|
898
1033
|
});
|
|
899
1034
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
900
|
-
var CarouselNext =
|
|
1035
|
+
var CarouselNext = React40.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
901
1036
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
902
1037
|
return /* @__PURE__ */ jsxs(
|
|
903
1038
|
Button,
|
|
@@ -922,16 +1057,16 @@ var CarouselNext = React39.forwardRef(({ className, variant = "outline", size =
|
|
|
922
1057
|
});
|
|
923
1058
|
CarouselNext.displayName = "CarouselNext";
|
|
924
1059
|
var THEMES = { light: "", dark: ".dark" };
|
|
925
|
-
var ChartContext =
|
|
1060
|
+
var ChartContext = React40.createContext(null);
|
|
926
1061
|
function useChart() {
|
|
927
|
-
const context =
|
|
1062
|
+
const context = React40.useContext(ChartContext);
|
|
928
1063
|
if (!context) {
|
|
929
1064
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
930
1065
|
}
|
|
931
1066
|
return context;
|
|
932
1067
|
}
|
|
933
|
-
var ChartContainer =
|
|
934
|
-
const uniqueId =
|
|
1068
|
+
var ChartContainer = React40.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
1069
|
+
const uniqueId = React40.useId();
|
|
935
1070
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
936
1071
|
return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
|
|
937
1072
|
"div",
|
|
@@ -977,7 +1112,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
977
1112
|
);
|
|
978
1113
|
};
|
|
979
1114
|
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
980
|
-
var ChartTooltipContent =
|
|
1115
|
+
var ChartTooltipContent = React40.forwardRef(
|
|
981
1116
|
({
|
|
982
1117
|
active,
|
|
983
1118
|
payload,
|
|
@@ -994,7 +1129,7 @@ var ChartTooltipContent = React39.forwardRef(
|
|
|
994
1129
|
labelKey
|
|
995
1130
|
}, ref) => {
|
|
996
1131
|
const { config } = useChart();
|
|
997
|
-
const tooltipLabel =
|
|
1132
|
+
const tooltipLabel = React40.useMemo(() => {
|
|
998
1133
|
if (hideLabel || !payload?.length) {
|
|
999
1134
|
return null;
|
|
1000
1135
|
}
|
|
@@ -1090,7 +1225,7 @@ var ChartTooltipContent = React39.forwardRef(
|
|
|
1090
1225
|
);
|
|
1091
1226
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
1092
1227
|
var ChartLegend = RechartsPrimitive.Legend;
|
|
1093
|
-
var ChartLegendContent =
|
|
1228
|
+
var ChartLegendContent = React40.forwardRef(
|
|
1094
1229
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
1095
1230
|
const { config } = useChart();
|
|
1096
1231
|
if (!payload?.length) {
|
|
@@ -1148,7 +1283,7 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1148
1283
|
}
|
|
1149
1284
|
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
1150
1285
|
}
|
|
1151
|
-
var Checkbox =
|
|
1286
|
+
var Checkbox = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1152
1287
|
CheckboxPrimitive.Root,
|
|
1153
1288
|
{
|
|
1154
1289
|
ref,
|
|
@@ -1174,7 +1309,7 @@ var Dialog = DialogPrimitive.Root;
|
|
|
1174
1309
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1175
1310
|
var DialogPortal = DialogPrimitive.Portal;
|
|
1176
1311
|
var DialogClose = DialogPrimitive.Close;
|
|
1177
|
-
var DialogOverlay =
|
|
1312
|
+
var DialogOverlay = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1178
1313
|
DialogPrimitive.Overlay,
|
|
1179
1314
|
{
|
|
1180
1315
|
ref,
|
|
@@ -1186,8 +1321,8 @@ var DialogOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1186
1321
|
}
|
|
1187
1322
|
));
|
|
1188
1323
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1189
|
-
var DialogContent =
|
|
1190
|
-
const handleAnimationEnd =
|
|
1324
|
+
var DialogContent = React40.forwardRef(({ className, children, onCloseComplete, onAnimationEnd, ...props }, ref) => {
|
|
1325
|
+
const handleAnimationEnd = React40.useCallback(
|
|
1191
1326
|
(e) => {
|
|
1192
1327
|
onAnimationEnd?.(e);
|
|
1193
1328
|
if (e.currentTarget.getAttribute("data-state") === "closed") {
|
|
@@ -1203,7 +1338,7 @@ var DialogContent = React39.forwardRef(({ className, children, onCloseComplete,
|
|
|
1203
1338
|
{
|
|
1204
1339
|
ref,
|
|
1205
1340
|
className: cn(
|
|
1206
|
-
"fixed left-[50%] top-[50%] z-50
|
|
1341
|
+
"fixed left-[50%] top-[50%] z-50 flex max-h-[85vh] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col gap-4 border bg-background shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
1207
1342
|
className
|
|
1208
1343
|
),
|
|
1209
1344
|
onAnimationEnd: handleAnimationEnd,
|
|
@@ -1221,13 +1356,27 @@ var DialogHeader = ({
|
|
|
1221
1356
|
"div",
|
|
1222
1357
|
{
|
|
1223
1358
|
className: cn(
|
|
1224
|
-
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
1359
|
+
"flex flex-shrink-0 flex-col space-y-1.5 px-6 pt-6 text-center sm:text-left",
|
|
1225
1360
|
className
|
|
1226
1361
|
),
|
|
1227
1362
|
...props
|
|
1228
1363
|
}
|
|
1229
1364
|
);
|
|
1230
1365
|
DialogHeader.displayName = "DialogHeader";
|
|
1366
|
+
var DialogBody = ({
|
|
1367
|
+
className,
|
|
1368
|
+
...props
|
|
1369
|
+
}) => /* @__PURE__ */ jsx(
|
|
1370
|
+
"div",
|
|
1371
|
+
{
|
|
1372
|
+
className: cn(
|
|
1373
|
+
"flex-1 overflow-y-auto px-6",
|
|
1374
|
+
className
|
|
1375
|
+
),
|
|
1376
|
+
...props
|
|
1377
|
+
}
|
|
1378
|
+
);
|
|
1379
|
+
DialogBody.displayName = "DialogBody";
|
|
1231
1380
|
var DialogFooter = ({
|
|
1232
1381
|
className,
|
|
1233
1382
|
...props
|
|
@@ -1235,14 +1384,14 @@ var DialogFooter = ({
|
|
|
1235
1384
|
"div",
|
|
1236
1385
|
{
|
|
1237
1386
|
className: cn(
|
|
1238
|
-
"flex flex-col-reverse sm:flex-row sm:justify-end
|
|
1387
|
+
"flex flex-shrink-0 flex-col-reverse gap-2 px-6 pb-6 sm:flex-row sm:justify-end",
|
|
1239
1388
|
className
|
|
1240
1389
|
),
|
|
1241
1390
|
...props
|
|
1242
1391
|
}
|
|
1243
1392
|
);
|
|
1244
1393
|
DialogFooter.displayName = "DialogFooter";
|
|
1245
|
-
var DialogTitle =
|
|
1394
|
+
var DialogTitle = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1246
1395
|
DialogPrimitive.Title,
|
|
1247
1396
|
{
|
|
1248
1397
|
ref,
|
|
@@ -1254,7 +1403,7 @@ var DialogTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1254
1403
|
}
|
|
1255
1404
|
));
|
|
1256
1405
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1257
|
-
var DialogDescription =
|
|
1406
|
+
var DialogDescription = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1258
1407
|
DialogPrimitive.Description,
|
|
1259
1408
|
{
|
|
1260
1409
|
ref,
|
|
@@ -1263,7 +1412,7 @@ var DialogDescription = React39.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1263
1412
|
}
|
|
1264
1413
|
));
|
|
1265
1414
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1266
|
-
var Command =
|
|
1415
|
+
var Command = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1267
1416
|
Command$1,
|
|
1268
1417
|
{
|
|
1269
1418
|
ref,
|
|
@@ -1284,7 +1433,7 @@ var CommandDialog = ({ children, ...props }) => {
|
|
|
1284
1433
|
}
|
|
1285
1434
|
) }) });
|
|
1286
1435
|
};
|
|
1287
|
-
var CommandInput =
|
|
1436
|
+
var CommandInput = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1288
1437
|
/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1289
1438
|
/* @__PURE__ */ jsx(
|
|
1290
1439
|
Command$1.Input,
|
|
@@ -1299,7 +1448,7 @@ var CommandInput = React39.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1299
1448
|
)
|
|
1300
1449
|
] }));
|
|
1301
1450
|
CommandInput.displayName = Command$1.Input.displayName;
|
|
1302
|
-
var CommandList =
|
|
1451
|
+
var CommandList = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1303
1452
|
Command$1.List,
|
|
1304
1453
|
{
|
|
1305
1454
|
ref,
|
|
@@ -1308,7 +1457,7 @@ var CommandList = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1308
1457
|
}
|
|
1309
1458
|
));
|
|
1310
1459
|
CommandList.displayName = Command$1.List.displayName;
|
|
1311
|
-
var CommandEmpty =
|
|
1460
|
+
var CommandEmpty = React40.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
1312
1461
|
Command$1.Empty,
|
|
1313
1462
|
{
|
|
1314
1463
|
ref,
|
|
@@ -1317,7 +1466,7 @@ var CommandEmpty = React39.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
|
1317
1466
|
}
|
|
1318
1467
|
));
|
|
1319
1468
|
CommandEmpty.displayName = Command$1.Empty.displayName;
|
|
1320
|
-
var CommandGroup =
|
|
1469
|
+
var CommandGroup = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1321
1470
|
Command$1.Group,
|
|
1322
1471
|
{
|
|
1323
1472
|
ref,
|
|
@@ -1329,7 +1478,7 @@ var CommandGroup = React39.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1329
1478
|
}
|
|
1330
1479
|
));
|
|
1331
1480
|
CommandGroup.displayName = Command$1.Group.displayName;
|
|
1332
|
-
var CommandSeparator =
|
|
1481
|
+
var CommandSeparator = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1333
1482
|
Command$1.Separator,
|
|
1334
1483
|
{
|
|
1335
1484
|
ref,
|
|
@@ -1338,7 +1487,7 @@ var CommandSeparator = React39.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1338
1487
|
}
|
|
1339
1488
|
));
|
|
1340
1489
|
CommandSeparator.displayName = Command$1.Separator.displayName;
|
|
1341
|
-
var CommandItem =
|
|
1490
|
+
var CommandItem = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1342
1491
|
Command$1.Item,
|
|
1343
1492
|
{
|
|
1344
1493
|
ref,
|
|
@@ -1372,7 +1521,7 @@ var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
|
1372
1521
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
1373
1522
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
1374
1523
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
1375
|
-
var ContextMenuSubTrigger =
|
|
1524
|
+
var ContextMenuSubTrigger = React40.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1376
1525
|
ContextMenuPrimitive.SubTrigger,
|
|
1377
1526
|
{
|
|
1378
1527
|
ref,
|
|
@@ -1389,7 +1538,7 @@ var ContextMenuSubTrigger = React39.forwardRef(({ className, inset, children, ..
|
|
|
1389
1538
|
}
|
|
1390
1539
|
));
|
|
1391
1540
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
1392
|
-
var ContextMenuSubContent =
|
|
1541
|
+
var ContextMenuSubContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1393
1542
|
ContextMenuPrimitive.SubContent,
|
|
1394
1543
|
{
|
|
1395
1544
|
ref,
|
|
@@ -1401,7 +1550,7 @@ var ContextMenuSubContent = React39.forwardRef(({ className, ...props }, ref) =>
|
|
|
1401
1550
|
}
|
|
1402
1551
|
));
|
|
1403
1552
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
1404
|
-
var ContextMenuContent =
|
|
1553
|
+
var ContextMenuContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
1405
1554
|
ContextMenuPrimitive.Content,
|
|
1406
1555
|
{
|
|
1407
1556
|
ref,
|
|
@@ -1413,7 +1562,7 @@ var ContextMenuContent = React39.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1413
1562
|
}
|
|
1414
1563
|
) }));
|
|
1415
1564
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
1416
|
-
var ContextMenuItem =
|
|
1565
|
+
var ContextMenuItem = React40.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1417
1566
|
ContextMenuPrimitive.Item,
|
|
1418
1567
|
{
|
|
1419
1568
|
ref,
|
|
@@ -1426,7 +1575,7 @@ var ContextMenuItem = React39.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
1426
1575
|
}
|
|
1427
1576
|
));
|
|
1428
1577
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
1429
|
-
var ContextMenuCheckboxItem =
|
|
1578
|
+
var ContextMenuCheckboxItem = React40.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1430
1579
|
ContextMenuPrimitive.CheckboxItem,
|
|
1431
1580
|
{
|
|
1432
1581
|
ref,
|
|
@@ -1443,7 +1592,7 @@ var ContextMenuCheckboxItem = React39.forwardRef(({ className, children, checked
|
|
|
1443
1592
|
}
|
|
1444
1593
|
));
|
|
1445
1594
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
1446
|
-
var ContextMenuRadioItem =
|
|
1595
|
+
var ContextMenuRadioItem = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1447
1596
|
ContextMenuPrimitive.RadioItem,
|
|
1448
1597
|
{
|
|
1449
1598
|
ref,
|
|
@@ -1459,7 +1608,7 @@ var ContextMenuRadioItem = React39.forwardRef(({ className, children, ...props }
|
|
|
1459
1608
|
}
|
|
1460
1609
|
));
|
|
1461
1610
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
1462
|
-
var ContextMenuLabel =
|
|
1611
|
+
var ContextMenuLabel = React40.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1463
1612
|
ContextMenuPrimitive.Label,
|
|
1464
1613
|
{
|
|
1465
1614
|
ref,
|
|
@@ -1472,7 +1621,7 @@ var ContextMenuLabel = React39.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1472
1621
|
}
|
|
1473
1622
|
));
|
|
1474
1623
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
1475
|
-
var ContextMenuSeparator =
|
|
1624
|
+
var ContextMenuSeparator = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1476
1625
|
ContextMenuPrimitive.Separator,
|
|
1477
1626
|
{
|
|
1478
1627
|
ref,
|
|
@@ -1511,7 +1660,7 @@ Drawer.displayName = "Drawer";
|
|
|
1511
1660
|
var DrawerTrigger = Drawer$1.Trigger;
|
|
1512
1661
|
var DrawerPortal = Drawer$1.Portal;
|
|
1513
1662
|
var DrawerClose = Drawer$1.Close;
|
|
1514
|
-
var DrawerOverlay =
|
|
1663
|
+
var DrawerOverlay = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1515
1664
|
Drawer$1.Overlay,
|
|
1516
1665
|
{
|
|
1517
1666
|
ref,
|
|
@@ -1520,7 +1669,7 @@ var DrawerOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1520
1669
|
}
|
|
1521
1670
|
));
|
|
1522
1671
|
DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
|
|
1523
|
-
var DrawerContent =
|
|
1672
|
+
var DrawerContent = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
1524
1673
|
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
1525
1674
|
/* @__PURE__ */ jsxs(
|
|
1526
1675
|
Drawer$1.Content,
|
|
@@ -1561,7 +1710,7 @@ var DrawerFooter = ({
|
|
|
1561
1710
|
}
|
|
1562
1711
|
);
|
|
1563
1712
|
DrawerFooter.displayName = "DrawerFooter";
|
|
1564
|
-
var DrawerTitle =
|
|
1713
|
+
var DrawerTitle = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1565
1714
|
Drawer$1.Title,
|
|
1566
1715
|
{
|
|
1567
1716
|
ref,
|
|
@@ -1573,7 +1722,7 @@ var DrawerTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1573
1722
|
}
|
|
1574
1723
|
));
|
|
1575
1724
|
DrawerTitle.displayName = Drawer$1.Title.displayName;
|
|
1576
|
-
var DrawerDescription =
|
|
1725
|
+
var DrawerDescription = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1577
1726
|
Drawer$1.Description,
|
|
1578
1727
|
{
|
|
1579
1728
|
ref,
|
|
@@ -1588,7 +1737,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
1588
1737
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1589
1738
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1590
1739
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1591
|
-
var DropdownMenuSubTrigger =
|
|
1740
|
+
var DropdownMenuSubTrigger = React40.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1592
1741
|
DropdownMenuPrimitive.SubTrigger,
|
|
1593
1742
|
{
|
|
1594
1743
|
ref,
|
|
@@ -1605,7 +1754,7 @@ var DropdownMenuSubTrigger = React39.forwardRef(({ className, inset, children, .
|
|
|
1605
1754
|
}
|
|
1606
1755
|
));
|
|
1607
1756
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1608
|
-
var DropdownMenuSubContent =
|
|
1757
|
+
var DropdownMenuSubContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1609
1758
|
DropdownMenuPrimitive.SubContent,
|
|
1610
1759
|
{
|
|
1611
1760
|
ref,
|
|
@@ -1617,7 +1766,7 @@ var DropdownMenuSubContent = React39.forwardRef(({ className, ...props }, ref) =
|
|
|
1617
1766
|
}
|
|
1618
1767
|
));
|
|
1619
1768
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1620
|
-
var DropdownMenuContent =
|
|
1769
|
+
var DropdownMenuContent = React40.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
1621
1770
|
DropdownMenuPrimitive.Content,
|
|
1622
1771
|
{
|
|
1623
1772
|
ref,
|
|
@@ -1630,7 +1779,7 @@ var DropdownMenuContent = React39.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1630
1779
|
}
|
|
1631
1780
|
) }));
|
|
1632
1781
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1633
|
-
var DropdownMenuItem =
|
|
1782
|
+
var DropdownMenuItem = React40.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1634
1783
|
DropdownMenuPrimitive.Item,
|
|
1635
1784
|
{
|
|
1636
1785
|
ref,
|
|
@@ -1643,7 +1792,7 @@ var DropdownMenuItem = React39.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1643
1792
|
}
|
|
1644
1793
|
));
|
|
1645
1794
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1646
|
-
var DropdownMenuCheckboxItem =
|
|
1795
|
+
var DropdownMenuCheckboxItem = React40.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1647
1796
|
DropdownMenuPrimitive.CheckboxItem,
|
|
1648
1797
|
{
|
|
1649
1798
|
ref,
|
|
@@ -1660,7 +1809,7 @@ var DropdownMenuCheckboxItem = React39.forwardRef(({ className, children, checke
|
|
|
1660
1809
|
}
|
|
1661
1810
|
));
|
|
1662
1811
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1663
|
-
var DropdownMenuRadioItem =
|
|
1812
|
+
var DropdownMenuRadioItem = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1664
1813
|
DropdownMenuPrimitive.RadioItem,
|
|
1665
1814
|
{
|
|
1666
1815
|
ref,
|
|
@@ -1676,7 +1825,7 @@ var DropdownMenuRadioItem = React39.forwardRef(({ className, children, ...props
|
|
|
1676
1825
|
}
|
|
1677
1826
|
));
|
|
1678
1827
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1679
|
-
var DropdownMenuLabel =
|
|
1828
|
+
var DropdownMenuLabel = React40.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1680
1829
|
DropdownMenuPrimitive.Label,
|
|
1681
1830
|
{
|
|
1682
1831
|
ref,
|
|
@@ -1689,7 +1838,7 @@ var DropdownMenuLabel = React39.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1689
1838
|
}
|
|
1690
1839
|
));
|
|
1691
1840
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1692
|
-
var DropdownMenuSeparator =
|
|
1841
|
+
var DropdownMenuSeparator = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1693
1842
|
DropdownMenuPrimitive.Separator,
|
|
1694
1843
|
{
|
|
1695
1844
|
ref,
|
|
@@ -1714,7 +1863,7 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
1714
1863
|
var labelVariants = cva(
|
|
1715
1864
|
"text-base font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1716
1865
|
);
|
|
1717
|
-
var Label3 =
|
|
1866
|
+
var Label3 = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1718
1867
|
LabelPrimitive.Root,
|
|
1719
1868
|
{
|
|
1720
1869
|
ref,
|
|
@@ -1724,7 +1873,7 @@ var Label3 = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1724
1873
|
));
|
|
1725
1874
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
1726
1875
|
var Form = FormProvider;
|
|
1727
|
-
var FormFieldContext =
|
|
1876
|
+
var FormFieldContext = React40.createContext(
|
|
1728
1877
|
{}
|
|
1729
1878
|
);
|
|
1730
1879
|
var FormField = ({
|
|
@@ -1733,8 +1882,8 @@ var FormField = ({
|
|
|
1733
1882
|
return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
|
|
1734
1883
|
};
|
|
1735
1884
|
var useFormField = () => {
|
|
1736
|
-
const fieldContext =
|
|
1737
|
-
const itemContext =
|
|
1885
|
+
const fieldContext = React40.useContext(FormFieldContext);
|
|
1886
|
+
const itemContext = React40.useContext(FormItemContext);
|
|
1738
1887
|
const { getFieldState, formState } = useFormContext();
|
|
1739
1888
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
1740
1889
|
if (!fieldContext) {
|
|
@@ -1750,15 +1899,15 @@ var useFormField = () => {
|
|
|
1750
1899
|
...fieldState
|
|
1751
1900
|
};
|
|
1752
1901
|
};
|
|
1753
|
-
var FormItemContext =
|
|
1902
|
+
var FormItemContext = React40.createContext(
|
|
1754
1903
|
{}
|
|
1755
1904
|
);
|
|
1756
|
-
var FormItem =
|
|
1757
|
-
const id =
|
|
1905
|
+
var FormItem = React40.forwardRef(({ className, ...props }, ref) => {
|
|
1906
|
+
const id = React40.useId();
|
|
1758
1907
|
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
1759
1908
|
});
|
|
1760
1909
|
FormItem.displayName = "FormItem";
|
|
1761
|
-
var FormLabel =
|
|
1910
|
+
var FormLabel = React40.forwardRef(({ className, ...props }, ref) => {
|
|
1762
1911
|
const { error, formItemId } = useFormField();
|
|
1763
1912
|
return /* @__PURE__ */ jsx(
|
|
1764
1913
|
Label3,
|
|
@@ -1771,7 +1920,7 @@ var FormLabel = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
1771
1920
|
);
|
|
1772
1921
|
});
|
|
1773
1922
|
FormLabel.displayName = "FormLabel";
|
|
1774
|
-
var FormControl =
|
|
1923
|
+
var FormControl = React40.forwardRef(({ ...props }, ref) => {
|
|
1775
1924
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
1776
1925
|
return /* @__PURE__ */ jsx(
|
|
1777
1926
|
Slot,
|
|
@@ -1785,7 +1934,7 @@ var FormControl = React39.forwardRef(({ ...props }, ref) => {
|
|
|
1785
1934
|
);
|
|
1786
1935
|
});
|
|
1787
1936
|
FormControl.displayName = "FormControl";
|
|
1788
|
-
var FormDescription =
|
|
1937
|
+
var FormDescription = React40.forwardRef(({ className, ...props }, ref) => {
|
|
1789
1938
|
const { formDescriptionId } = useFormField();
|
|
1790
1939
|
return /* @__PURE__ */ jsx(
|
|
1791
1940
|
"p",
|
|
@@ -1798,7 +1947,7 @@ var FormDescription = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
1798
1947
|
);
|
|
1799
1948
|
});
|
|
1800
1949
|
FormDescription.displayName = "FormDescription";
|
|
1801
|
-
var FormMessage =
|
|
1950
|
+
var FormMessage = React40.forwardRef(({ className, children, ...props }, ref) => {
|
|
1802
1951
|
const { error, formMessageId } = useFormField();
|
|
1803
1952
|
const body = error ? String(error?.message) : children;
|
|
1804
1953
|
if (!body) {
|
|
@@ -1857,7 +2006,7 @@ var glassCardVariants = cva(
|
|
|
1857
2006
|
}
|
|
1858
2007
|
}
|
|
1859
2008
|
);
|
|
1860
|
-
var GlassCard =
|
|
2009
|
+
var GlassCard = React40.forwardRef(
|
|
1861
2010
|
({ className, variant, padding, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1862
2011
|
"div",
|
|
1863
2012
|
{
|
|
@@ -1868,7 +2017,7 @@ var GlassCard = React39.forwardRef(
|
|
|
1868
2017
|
)
|
|
1869
2018
|
);
|
|
1870
2019
|
GlassCard.displayName = "GlassCard";
|
|
1871
|
-
var GlassCardHeader =
|
|
2020
|
+
var GlassCardHeader = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1872
2021
|
"div",
|
|
1873
2022
|
{
|
|
1874
2023
|
ref,
|
|
@@ -1877,7 +2026,7 @@ var GlassCardHeader = React39.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1877
2026
|
}
|
|
1878
2027
|
));
|
|
1879
2028
|
GlassCardHeader.displayName = "GlassCardHeader";
|
|
1880
|
-
var GlassCardTitle =
|
|
2029
|
+
var GlassCardTitle = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1881
2030
|
"h3",
|
|
1882
2031
|
{
|
|
1883
2032
|
ref,
|
|
@@ -1889,7 +2038,7 @@ var GlassCardTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1889
2038
|
}
|
|
1890
2039
|
));
|
|
1891
2040
|
GlassCardTitle.displayName = "GlassCardTitle";
|
|
1892
|
-
var GlassCardDescription =
|
|
2041
|
+
var GlassCardDescription = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1893
2042
|
"p",
|
|
1894
2043
|
{
|
|
1895
2044
|
ref,
|
|
@@ -1898,9 +2047,9 @@ var GlassCardDescription = React39.forwardRef(({ className, ...props }, ref) =>
|
|
|
1898
2047
|
}
|
|
1899
2048
|
));
|
|
1900
2049
|
GlassCardDescription.displayName = "GlassCardDescription";
|
|
1901
|
-
var GlassCardContent =
|
|
2050
|
+
var GlassCardContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1902
2051
|
GlassCardContent.displayName = "GlassCardContent";
|
|
1903
|
-
var GlassCardFooter =
|
|
2052
|
+
var GlassCardFooter = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1904
2053
|
"div",
|
|
1905
2054
|
{
|
|
1906
2055
|
ref,
|
|
@@ -1936,7 +2085,7 @@ var glassHeaderVariants = cva(
|
|
|
1936
2085
|
}
|
|
1937
2086
|
}
|
|
1938
2087
|
);
|
|
1939
|
-
var GlassHeader =
|
|
2088
|
+
var GlassHeader = React40.forwardRef(
|
|
1940
2089
|
({ className, variant, sticky, padding, as: Component = "header", ...props }, ref) => {
|
|
1941
2090
|
return /* @__PURE__ */ jsx(
|
|
1942
2091
|
Component,
|
|
@@ -1972,7 +2121,7 @@ var glassOverlayVariants = cva(
|
|
|
1972
2121
|
}
|
|
1973
2122
|
}
|
|
1974
2123
|
);
|
|
1975
|
-
var GlassOverlay =
|
|
2124
|
+
var GlassOverlay = React40.forwardRef(
|
|
1976
2125
|
({ className, variant, blur, open = true, onClose, ...props }, ref) => {
|
|
1977
2126
|
if (!open) return null;
|
|
1978
2127
|
return /* @__PURE__ */ jsx(
|
|
@@ -2024,7 +2173,7 @@ var glassTabVariants = cva(
|
|
|
2024
2173
|
}
|
|
2025
2174
|
}
|
|
2026
2175
|
);
|
|
2027
|
-
var GlassTabs =
|
|
2176
|
+
var GlassTabs = React40.forwardRef(
|
|
2028
2177
|
({ className, tabs, activeTab, onTabChange, size, ...props }, ref) => {
|
|
2029
2178
|
return /* @__PURE__ */ jsx(
|
|
2030
2179
|
"div",
|
|
@@ -2064,7 +2213,7 @@ var GlassTabs = React39.forwardRef(
|
|
|
2064
2213
|
GlassTabs.displayName = "GlassTabs";
|
|
2065
2214
|
var HoverCard = HoverCardPrimitive.Root;
|
|
2066
2215
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
2067
|
-
var HoverCardContent =
|
|
2216
|
+
var HoverCardContent = React40.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2068
2217
|
HoverCardPrimitive.Content,
|
|
2069
2218
|
{
|
|
2070
2219
|
ref,
|
|
@@ -2100,7 +2249,7 @@ var inputVariants = cva(
|
|
|
2100
2249
|
}
|
|
2101
2250
|
}
|
|
2102
2251
|
);
|
|
2103
|
-
var Input =
|
|
2252
|
+
var Input = React40.forwardRef(
|
|
2104
2253
|
({ className, type, variant, ...props }, ref) => {
|
|
2105
2254
|
return /* @__PURE__ */ jsx(
|
|
2106
2255
|
"input",
|
|
@@ -2114,7 +2263,7 @@ var Input = React39.forwardRef(
|
|
|
2114
2263
|
}
|
|
2115
2264
|
);
|
|
2116
2265
|
Input.displayName = "Input";
|
|
2117
|
-
var InputOTP =
|
|
2266
|
+
var InputOTP = React40.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2118
2267
|
OTPInput,
|
|
2119
2268
|
{
|
|
2120
2269
|
ref,
|
|
@@ -2127,10 +2276,10 @@ var InputOTP = React39.forwardRef(({ className, containerClassName, ...props },
|
|
|
2127
2276
|
}
|
|
2128
2277
|
));
|
|
2129
2278
|
InputOTP.displayName = "InputOTP";
|
|
2130
|
-
var InputOTPGroup =
|
|
2279
|
+
var InputOTPGroup = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
2131
2280
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
2132
|
-
var InputOTPSlot =
|
|
2133
|
-
const inputOTPContext =
|
|
2281
|
+
var InputOTPSlot = React40.forwardRef(({ index, className, ...props }, ref) => {
|
|
2282
|
+
const inputOTPContext = React40.useContext(OTPInputContext);
|
|
2134
2283
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
2135
2284
|
return /* @__PURE__ */ jsxs(
|
|
2136
2285
|
"div",
|
|
@@ -2150,7 +2299,7 @@ var InputOTPSlot = React39.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
2150
2299
|
);
|
|
2151
2300
|
});
|
|
2152
2301
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
2153
|
-
var InputOTPSeparator =
|
|
2302
|
+
var InputOTPSeparator = React40.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx(Dot, {}) }));
|
|
2154
2303
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
2155
2304
|
var sizes = {
|
|
2156
2305
|
sm: { height: 24 },
|
|
@@ -2185,7 +2334,7 @@ var MenubarGroup = MenubarPrimitive.Group;
|
|
|
2185
2334
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
2186
2335
|
var MenubarSub = MenubarPrimitive.Sub;
|
|
2187
2336
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
2188
|
-
var Menubar =
|
|
2337
|
+
var Menubar = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2189
2338
|
MenubarPrimitive.Root,
|
|
2190
2339
|
{
|
|
2191
2340
|
ref,
|
|
@@ -2197,7 +2346,7 @@ var Menubar = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2197
2346
|
}
|
|
2198
2347
|
));
|
|
2199
2348
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
2200
|
-
var MenubarTrigger =
|
|
2349
|
+
var MenubarTrigger = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2201
2350
|
MenubarPrimitive.Trigger,
|
|
2202
2351
|
{
|
|
2203
2352
|
ref,
|
|
@@ -2209,7 +2358,7 @@ var MenubarTrigger = React39.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2209
2358
|
}
|
|
2210
2359
|
));
|
|
2211
2360
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
2212
|
-
var MenubarSubTrigger =
|
|
2361
|
+
var MenubarSubTrigger = React40.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2213
2362
|
MenubarPrimitive.SubTrigger,
|
|
2214
2363
|
{
|
|
2215
2364
|
ref,
|
|
@@ -2226,7 +2375,7 @@ var MenubarSubTrigger = React39.forwardRef(({ className, inset, children, ...pro
|
|
|
2226
2375
|
}
|
|
2227
2376
|
));
|
|
2228
2377
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
2229
|
-
var MenubarSubContent =
|
|
2378
|
+
var MenubarSubContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2230
2379
|
MenubarPrimitive.SubContent,
|
|
2231
2380
|
{
|
|
2232
2381
|
ref,
|
|
@@ -2238,7 +2387,7 @@ var MenubarSubContent = React39.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2238
2387
|
}
|
|
2239
2388
|
));
|
|
2240
2389
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
2241
|
-
var MenubarContent =
|
|
2390
|
+
var MenubarContent = React40.forwardRef(
|
|
2242
2391
|
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2243
2392
|
MenubarPrimitive.Content,
|
|
2244
2393
|
{
|
|
@@ -2255,7 +2404,7 @@ var MenubarContent = React39.forwardRef(
|
|
|
2255
2404
|
) })
|
|
2256
2405
|
);
|
|
2257
2406
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
2258
|
-
var MenubarItem =
|
|
2407
|
+
var MenubarItem = React40.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2259
2408
|
MenubarPrimitive.Item,
|
|
2260
2409
|
{
|
|
2261
2410
|
ref,
|
|
@@ -2268,7 +2417,7 @@ var MenubarItem = React39.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
2268
2417
|
}
|
|
2269
2418
|
));
|
|
2270
2419
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
2271
|
-
var MenubarCheckboxItem =
|
|
2420
|
+
var MenubarCheckboxItem = React40.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2272
2421
|
MenubarPrimitive.CheckboxItem,
|
|
2273
2422
|
{
|
|
2274
2423
|
ref,
|
|
@@ -2285,7 +2434,7 @@ var MenubarCheckboxItem = React39.forwardRef(({ className, children, checked, ..
|
|
|
2285
2434
|
}
|
|
2286
2435
|
));
|
|
2287
2436
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
2288
|
-
var MenubarRadioItem =
|
|
2437
|
+
var MenubarRadioItem = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2289
2438
|
MenubarPrimitive.RadioItem,
|
|
2290
2439
|
{
|
|
2291
2440
|
ref,
|
|
@@ -2301,7 +2450,7 @@ var MenubarRadioItem = React39.forwardRef(({ className, children, ...props }, re
|
|
|
2301
2450
|
}
|
|
2302
2451
|
));
|
|
2303
2452
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
2304
|
-
var MenubarLabel =
|
|
2453
|
+
var MenubarLabel = React40.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2305
2454
|
MenubarPrimitive.Label,
|
|
2306
2455
|
{
|
|
2307
2456
|
ref,
|
|
@@ -2314,7 +2463,7 @@ var MenubarLabel = React39.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
2314
2463
|
}
|
|
2315
2464
|
));
|
|
2316
2465
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
2317
|
-
var MenubarSeparator =
|
|
2466
|
+
var MenubarSeparator = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2318
2467
|
MenubarPrimitive.Separator,
|
|
2319
2468
|
{
|
|
2320
2469
|
ref,
|
|
@@ -2339,7 +2488,7 @@ var MenubarShortcut = ({
|
|
|
2339
2488
|
);
|
|
2340
2489
|
};
|
|
2341
2490
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
2342
|
-
var NavigationMenu =
|
|
2491
|
+
var NavigationMenu = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2343
2492
|
NavigationMenuPrimitive.Root,
|
|
2344
2493
|
{
|
|
2345
2494
|
ref,
|
|
@@ -2355,7 +2504,7 @@ var NavigationMenu = React39.forwardRef(({ className, children, ...props }, ref)
|
|
|
2355
2504
|
}
|
|
2356
2505
|
));
|
|
2357
2506
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
2358
|
-
var NavigationMenuList =
|
|
2507
|
+
var NavigationMenuList = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2359
2508
|
NavigationMenuPrimitive.List,
|
|
2360
2509
|
{
|
|
2361
2510
|
ref,
|
|
@@ -2371,7 +2520,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
2371
2520
|
var navigationMenuTriggerStyle = cva(
|
|
2372
2521
|
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-base 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"
|
|
2373
2522
|
);
|
|
2374
|
-
var NavigationMenuTrigger =
|
|
2523
|
+
var NavigationMenuTrigger = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2375
2524
|
NavigationMenuPrimitive.Trigger,
|
|
2376
2525
|
{
|
|
2377
2526
|
ref,
|
|
@@ -2391,7 +2540,7 @@ var NavigationMenuTrigger = React39.forwardRef(({ className, children, ...props
|
|
|
2391
2540
|
}
|
|
2392
2541
|
));
|
|
2393
2542
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
2394
|
-
var NavigationMenuContent =
|
|
2543
|
+
var NavigationMenuContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2395
2544
|
NavigationMenuPrimitive.Content,
|
|
2396
2545
|
{
|
|
2397
2546
|
ref,
|
|
@@ -2404,7 +2553,7 @@ var NavigationMenuContent = React39.forwardRef(({ className, ...props }, ref) =>
|
|
|
2404
2553
|
));
|
|
2405
2554
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
2406
2555
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
2407
|
-
var NavigationMenuViewport =
|
|
2556
|
+
var NavigationMenuViewport = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx(
|
|
2408
2557
|
NavigationMenuPrimitive.Viewport,
|
|
2409
2558
|
{
|
|
2410
2559
|
className: cn(
|
|
@@ -2416,7 +2565,7 @@ var NavigationMenuViewport = React39.forwardRef(({ className, ...props }, ref) =
|
|
|
2416
2565
|
}
|
|
2417
2566
|
) }));
|
|
2418
2567
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
2419
|
-
var NavigationMenuIndicator =
|
|
2568
|
+
var NavigationMenuIndicator = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2420
2569
|
NavigationMenuPrimitive.Indicator,
|
|
2421
2570
|
{
|
|
2422
2571
|
ref,
|
|
@@ -2502,7 +2651,7 @@ function Pagination({
|
|
|
2502
2651
|
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" })
|
|
2503
2652
|
}
|
|
2504
2653
|
),
|
|
2505
|
-
getVisiblePages().map((page, index) => /* @__PURE__ */ jsx(
|
|
2654
|
+
getVisiblePages().map((page, index) => /* @__PURE__ */ jsx(React40__default.Fragment, { children: page === "ellipsis" ? /* @__PURE__ */ jsx("div", { className: "flex h-9 w-9 items-center justify-center", children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4 text-gray-400" }) }) : /* @__PURE__ */ jsx(
|
|
2506
2655
|
Button,
|
|
2507
2656
|
{
|
|
2508
2657
|
variant: currentPage === page ? "default" : "outline",
|
|
@@ -2528,7 +2677,7 @@ function Pagination({
|
|
|
2528
2677
|
}
|
|
2529
2678
|
var Popover = PopoverPrimitive.Root;
|
|
2530
2679
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
2531
|
-
var PopoverContent =
|
|
2680
|
+
var PopoverContent = React40.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2532
2681
|
PopoverPrimitive.Content,
|
|
2533
2682
|
{
|
|
2534
2683
|
ref,
|
|
@@ -2542,7 +2691,7 @@ var PopoverContent = React39.forwardRef(({ className, align = "center", sideOffs
|
|
|
2542
2691
|
}
|
|
2543
2692
|
) }));
|
|
2544
2693
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
2545
|
-
var Progress =
|
|
2694
|
+
var Progress = React40.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2546
2695
|
ProgressPrimitive.Root,
|
|
2547
2696
|
{
|
|
2548
2697
|
ref,
|
|
@@ -2561,7 +2710,7 @@ var Progress = React39.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2561
2710
|
}
|
|
2562
2711
|
));
|
|
2563
2712
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2564
|
-
var RadioGroup4 =
|
|
2713
|
+
var RadioGroup4 = React40.forwardRef(({ className, ...props }, ref) => {
|
|
2565
2714
|
return /* @__PURE__ */ jsx(
|
|
2566
2715
|
RadioGroupPrimitive.Root,
|
|
2567
2716
|
{
|
|
@@ -2572,7 +2721,7 @@ var RadioGroup4 = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
2572
2721
|
);
|
|
2573
2722
|
});
|
|
2574
2723
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
2575
|
-
var RadioGroupItem =
|
|
2724
|
+
var RadioGroupItem = React40.forwardRef(({ className, ...props }, ref) => {
|
|
2576
2725
|
return /* @__PURE__ */ jsx(
|
|
2577
2726
|
RadioGroupPrimitive.Item,
|
|
2578
2727
|
{
|
|
@@ -2616,7 +2765,7 @@ var ResizableHandle = ({
|
|
|
2616
2765
|
children: withHandle && /* @__PURE__ */ jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx(GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
2617
2766
|
}
|
|
2618
2767
|
);
|
|
2619
|
-
var ScrollArea =
|
|
2768
|
+
var ScrollArea = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2620
2769
|
ScrollAreaPrimitive.Root,
|
|
2621
2770
|
{
|
|
2622
2771
|
ref,
|
|
@@ -2630,7 +2779,7 @@ var ScrollArea = React39.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2630
2779
|
}
|
|
2631
2780
|
));
|
|
2632
2781
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2633
|
-
var ScrollBar =
|
|
2782
|
+
var ScrollBar = React40.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2634
2783
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2635
2784
|
{
|
|
2636
2785
|
ref,
|
|
@@ -2649,7 +2798,7 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
|
2649
2798
|
var Select = SelectPrimitive.Root;
|
|
2650
2799
|
var SelectGroup = SelectPrimitive.Group;
|
|
2651
2800
|
var SelectValue = SelectPrimitive.Value;
|
|
2652
|
-
var SelectTrigger =
|
|
2801
|
+
var SelectTrigger = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2653
2802
|
SelectPrimitive.Trigger,
|
|
2654
2803
|
{
|
|
2655
2804
|
ref,
|
|
@@ -2665,7 +2814,7 @@ var SelectTrigger = React39.forwardRef(({ className, children, ...props }, ref)
|
|
|
2665
2814
|
}
|
|
2666
2815
|
));
|
|
2667
2816
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2668
|
-
var SelectScrollUpButton =
|
|
2817
|
+
var SelectScrollUpButton = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2669
2818
|
SelectPrimitive.ScrollUpButton,
|
|
2670
2819
|
{
|
|
2671
2820
|
ref,
|
|
@@ -2678,7 +2827,7 @@ var SelectScrollUpButton = React39.forwardRef(({ className, ...props }, ref) =>
|
|
|
2678
2827
|
}
|
|
2679
2828
|
));
|
|
2680
2829
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2681
|
-
var SelectScrollDownButton =
|
|
2830
|
+
var SelectScrollDownButton = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2682
2831
|
SelectPrimitive.ScrollDownButton,
|
|
2683
2832
|
{
|
|
2684
2833
|
ref,
|
|
@@ -2691,7 +2840,7 @@ var SelectScrollDownButton = React39.forwardRef(({ className, ...props }, ref) =
|
|
|
2691
2840
|
}
|
|
2692
2841
|
));
|
|
2693
2842
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2694
|
-
var SelectContent =
|
|
2843
|
+
var SelectContent = React40.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
2695
2844
|
SelectPrimitive.Content,
|
|
2696
2845
|
{
|
|
2697
2846
|
ref,
|
|
@@ -2719,7 +2868,7 @@ var SelectContent = React39.forwardRef(({ className, children, position = "poppe
|
|
|
2719
2868
|
}
|
|
2720
2869
|
) }));
|
|
2721
2870
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2722
|
-
var SelectLabel =
|
|
2871
|
+
var SelectLabel = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2723
2872
|
SelectPrimitive.Label,
|
|
2724
2873
|
{
|
|
2725
2874
|
ref,
|
|
@@ -2728,7 +2877,7 @@ var SelectLabel = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2728
2877
|
}
|
|
2729
2878
|
));
|
|
2730
2879
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2731
|
-
var SelectItem =
|
|
2880
|
+
var SelectItem = React40.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2732
2881
|
SelectPrimitive.Item,
|
|
2733
2882
|
{
|
|
2734
2883
|
ref,
|
|
@@ -2744,7 +2893,7 @@ var SelectItem = React39.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2744
2893
|
}
|
|
2745
2894
|
));
|
|
2746
2895
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2747
|
-
var SelectSeparator =
|
|
2896
|
+
var SelectSeparator = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2748
2897
|
SelectPrimitive.Separator,
|
|
2749
2898
|
{
|
|
2750
2899
|
ref,
|
|
@@ -2764,7 +2913,7 @@ var separatorVariants = cva("shrink-0", {
|
|
|
2764
2913
|
variant: "default"
|
|
2765
2914
|
}
|
|
2766
2915
|
});
|
|
2767
|
-
var Separator5 =
|
|
2916
|
+
var Separator5 = React40.forwardRef(
|
|
2768
2917
|
({ className, orientation = "horizontal", variant, decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2769
2918
|
SeparatorPrimitive.Root,
|
|
2770
2919
|
{
|
|
@@ -2785,7 +2934,7 @@ var Sheet = DialogPrimitive.Root;
|
|
|
2785
2934
|
var SheetTrigger = DialogPrimitive.Trigger;
|
|
2786
2935
|
var SheetClose = DialogPrimitive.Close;
|
|
2787
2936
|
var SheetPortal = DialogPrimitive.Portal;
|
|
2788
|
-
var SheetOverlay =
|
|
2937
|
+
var SheetOverlay = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2789
2938
|
DialogPrimitive.Overlay,
|
|
2790
2939
|
{
|
|
2791
2940
|
className: cn(
|
|
@@ -2813,7 +2962,7 @@ var sheetVariants = cva(
|
|
|
2813
2962
|
}
|
|
2814
2963
|
}
|
|
2815
2964
|
);
|
|
2816
|
-
var SheetContent =
|
|
2965
|
+
var SheetContent = React40.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
2817
2966
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
2818
2967
|
/* @__PURE__ */ jsx(
|
|
2819
2968
|
DialogPrimitive.Content,
|
|
@@ -2854,7 +3003,7 @@ var SheetFooter = ({
|
|
|
2854
3003
|
}
|
|
2855
3004
|
);
|
|
2856
3005
|
SheetFooter.displayName = "SheetFooter";
|
|
2857
|
-
var SheetTitle =
|
|
3006
|
+
var SheetTitle = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2858
3007
|
DialogPrimitive.Title,
|
|
2859
3008
|
{
|
|
2860
3009
|
ref,
|
|
@@ -2863,7 +3012,7 @@ var SheetTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2863
3012
|
}
|
|
2864
3013
|
));
|
|
2865
3014
|
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
2866
|
-
var SheetDescription =
|
|
3015
|
+
var SheetDescription = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2867
3016
|
DialogPrimitive.Description,
|
|
2868
3017
|
{
|
|
2869
3018
|
ref,
|
|
@@ -2884,11 +3033,11 @@ function Skeleton({
|
|
|
2884
3033
|
}
|
|
2885
3034
|
);
|
|
2886
3035
|
}
|
|
2887
|
-
var TooltipProvider =
|
|
3036
|
+
var TooltipProvider = React40.forwardRef(({ delayDuration = 0, ...props }, _ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { delayDuration, ...props }));
|
|
2888
3037
|
TooltipProvider.displayName = "TooltipProvider";
|
|
2889
|
-
var TooltipContext =
|
|
3038
|
+
var TooltipContext = React40.createContext(null);
|
|
2890
3039
|
var Tooltip2 = ({ children, open, onOpenChange, ...props }) => {
|
|
2891
|
-
const [clickedOpen, setClickedOpen] =
|
|
3040
|
+
const [clickedOpen, setClickedOpen] = React40.useState(false);
|
|
2892
3041
|
const isControlled = open !== void 0;
|
|
2893
3042
|
const isOpen = isControlled ? open : clickedOpen || void 0;
|
|
2894
3043
|
const handleOpenChange = (newOpen) => {
|
|
@@ -2897,7 +3046,7 @@ var Tooltip2 = ({ children, open, onOpenChange, ...props }) => {
|
|
|
2897
3046
|
}
|
|
2898
3047
|
onOpenChange?.(newOpen);
|
|
2899
3048
|
};
|
|
2900
|
-
|
|
3049
|
+
React40.useEffect(() => {
|
|
2901
3050
|
if (!clickedOpen) return;
|
|
2902
3051
|
const handleClickOutside = () => {
|
|
2903
3052
|
setClickedOpen(false);
|
|
@@ -2920,8 +3069,8 @@ var Tooltip2 = ({ children, open, onOpenChange, ...props }) => {
|
|
|
2920
3069
|
}
|
|
2921
3070
|
) });
|
|
2922
3071
|
};
|
|
2923
|
-
var TooltipTrigger =
|
|
2924
|
-
const context =
|
|
3072
|
+
var TooltipTrigger = React40.forwardRef(({ onClick, ...props }, ref) => {
|
|
3073
|
+
const context = React40.useContext(TooltipContext);
|
|
2925
3074
|
const handleClick = (e) => {
|
|
2926
3075
|
if (context) {
|
|
2927
3076
|
e.stopPropagation();
|
|
@@ -2932,7 +3081,7 @@ var TooltipTrigger = React39.forwardRef(({ onClick, ...props }, ref) => {
|
|
|
2932
3081
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { ref, onClick: handleClick, ...props });
|
|
2933
3082
|
});
|
|
2934
3083
|
TooltipTrigger.displayName = "TooltipTrigger";
|
|
2935
|
-
var TooltipContent =
|
|
3084
|
+
var TooltipContent = React40.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2936
3085
|
TooltipPrimitive.Content,
|
|
2937
3086
|
{
|
|
2938
3087
|
ref,
|
|
@@ -2951,15 +3100,15 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
2951
3100
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2952
3101
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2953
3102
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2954
|
-
var SidebarContext =
|
|
3103
|
+
var SidebarContext = React40.createContext(null);
|
|
2955
3104
|
function useSidebar() {
|
|
2956
|
-
const context =
|
|
3105
|
+
const context = React40.useContext(SidebarContext);
|
|
2957
3106
|
if (!context) {
|
|
2958
3107
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2959
3108
|
}
|
|
2960
3109
|
return context;
|
|
2961
3110
|
}
|
|
2962
|
-
var SidebarProvider =
|
|
3111
|
+
var SidebarProvider = React40.forwardRef(
|
|
2963
3112
|
({
|
|
2964
3113
|
defaultOpen = true,
|
|
2965
3114
|
open: openProp,
|
|
@@ -2970,10 +3119,10 @@ var SidebarProvider = React39.forwardRef(
|
|
|
2970
3119
|
...props
|
|
2971
3120
|
}, ref) => {
|
|
2972
3121
|
const isMobile = useIsMobile();
|
|
2973
|
-
const [openMobile, setOpenMobile] =
|
|
2974
|
-
const [_open, _setOpen] =
|
|
3122
|
+
const [openMobile, setOpenMobile] = React40.useState(false);
|
|
3123
|
+
const [_open, _setOpen] = React40.useState(defaultOpen);
|
|
2975
3124
|
const open = openProp ?? _open;
|
|
2976
|
-
const setOpen =
|
|
3125
|
+
const setOpen = React40.useCallback(
|
|
2977
3126
|
(value) => {
|
|
2978
3127
|
if (setOpenProp) {
|
|
2979
3128
|
return setOpenProp?.(
|
|
@@ -2985,10 +3134,10 @@ var SidebarProvider = React39.forwardRef(
|
|
|
2985
3134
|
},
|
|
2986
3135
|
[setOpenProp, open]
|
|
2987
3136
|
);
|
|
2988
|
-
const toggleSidebar =
|
|
3137
|
+
const toggleSidebar = React40.useCallback(() => {
|
|
2989
3138
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2990
3139
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2991
|
-
|
|
3140
|
+
React40.useEffect(() => {
|
|
2992
3141
|
const handleKeyDown = (event) => {
|
|
2993
3142
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2994
3143
|
event.preventDefault();
|
|
@@ -2999,7 +3148,7 @@ var SidebarProvider = React39.forwardRef(
|
|
|
2999
3148
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
3000
3149
|
}, [toggleSidebar]);
|
|
3001
3150
|
const state = open ? "expanded" : "collapsed";
|
|
3002
|
-
const contextValue =
|
|
3151
|
+
const contextValue = React40.useMemo(
|
|
3003
3152
|
() => ({
|
|
3004
3153
|
state,
|
|
3005
3154
|
open,
|
|
@@ -3031,7 +3180,7 @@ var SidebarProvider = React39.forwardRef(
|
|
|
3031
3180
|
}
|
|
3032
3181
|
);
|
|
3033
3182
|
SidebarProvider.displayName = "SidebarProvider";
|
|
3034
|
-
var Sidebar =
|
|
3183
|
+
var Sidebar = React40.forwardRef(
|
|
3035
3184
|
({
|
|
3036
3185
|
side = "left",
|
|
3037
3186
|
variant = "sidebar",
|
|
@@ -3118,7 +3267,7 @@ var Sidebar = React39.forwardRef(
|
|
|
3118
3267
|
}
|
|
3119
3268
|
);
|
|
3120
3269
|
Sidebar.displayName = "Sidebar";
|
|
3121
|
-
var SidebarTrigger =
|
|
3270
|
+
var SidebarTrigger = React40.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
3122
3271
|
const { toggleSidebar } = useSidebar();
|
|
3123
3272
|
return /* @__PURE__ */ jsxs(
|
|
3124
3273
|
Button,
|
|
@@ -3141,7 +3290,7 @@ var SidebarTrigger = React39.forwardRef(({ className, onClick, ...props }, ref)
|
|
|
3141
3290
|
);
|
|
3142
3291
|
});
|
|
3143
3292
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
3144
|
-
var SidebarRail =
|
|
3293
|
+
var SidebarRail = React40.forwardRef(({ className, ...props }, ref) => {
|
|
3145
3294
|
const { toggleSidebar } = useSidebar();
|
|
3146
3295
|
return /* @__PURE__ */ jsx(
|
|
3147
3296
|
"button",
|
|
@@ -3166,7 +3315,7 @@ var SidebarRail = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
3166
3315
|
);
|
|
3167
3316
|
});
|
|
3168
3317
|
SidebarRail.displayName = "SidebarRail";
|
|
3169
|
-
var SidebarInset =
|
|
3318
|
+
var SidebarInset = React40.forwardRef(({ className, ...props }, ref) => {
|
|
3170
3319
|
return /* @__PURE__ */ jsx(
|
|
3171
3320
|
"main",
|
|
3172
3321
|
{
|
|
@@ -3181,7 +3330,7 @@ var SidebarInset = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
3181
3330
|
);
|
|
3182
3331
|
});
|
|
3183
3332
|
SidebarInset.displayName = "SidebarInset";
|
|
3184
|
-
var SidebarInput =
|
|
3333
|
+
var SidebarInput = React40.forwardRef(({ className, ...props }, ref) => {
|
|
3185
3334
|
return /* @__PURE__ */ jsx(
|
|
3186
3335
|
Input,
|
|
3187
3336
|
{
|
|
@@ -3196,7 +3345,7 @@ var SidebarInput = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
3196
3345
|
);
|
|
3197
3346
|
});
|
|
3198
3347
|
SidebarInput.displayName = "SidebarInput";
|
|
3199
|
-
var SidebarHeader =
|
|
3348
|
+
var SidebarHeader = React40.forwardRef(({ className, ...props }, ref) => {
|
|
3200
3349
|
return /* @__PURE__ */ jsx(
|
|
3201
3350
|
"div",
|
|
3202
3351
|
{
|
|
@@ -3208,7 +3357,7 @@ var SidebarHeader = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
3208
3357
|
);
|
|
3209
3358
|
});
|
|
3210
3359
|
SidebarHeader.displayName = "SidebarHeader";
|
|
3211
|
-
var SidebarFooter =
|
|
3360
|
+
var SidebarFooter = React40.forwardRef(({ className, ...props }, ref) => {
|
|
3212
3361
|
return /* @__PURE__ */ jsx(
|
|
3213
3362
|
"div",
|
|
3214
3363
|
{
|
|
@@ -3220,7 +3369,7 @@ var SidebarFooter = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
3220
3369
|
);
|
|
3221
3370
|
});
|
|
3222
3371
|
SidebarFooter.displayName = "SidebarFooter";
|
|
3223
|
-
var SidebarSeparator =
|
|
3372
|
+
var SidebarSeparator = React40.forwardRef(({ className, ...props }, ref) => {
|
|
3224
3373
|
return /* @__PURE__ */ jsx(
|
|
3225
3374
|
Separator5,
|
|
3226
3375
|
{
|
|
@@ -3232,7 +3381,7 @@ var SidebarSeparator = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
3232
3381
|
);
|
|
3233
3382
|
});
|
|
3234
3383
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3235
|
-
var SidebarContent =
|
|
3384
|
+
var SidebarContent = React40.forwardRef(({ className, ...props }, ref) => {
|
|
3236
3385
|
return /* @__PURE__ */ jsx(
|
|
3237
3386
|
"div",
|
|
3238
3387
|
{
|
|
@@ -3247,7 +3396,7 @@ var SidebarContent = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
3247
3396
|
);
|
|
3248
3397
|
});
|
|
3249
3398
|
SidebarContent.displayName = "SidebarContent";
|
|
3250
|
-
var SidebarGroup =
|
|
3399
|
+
var SidebarGroup = React40.forwardRef(({ className, ...props }, ref) => {
|
|
3251
3400
|
return /* @__PURE__ */ jsx(
|
|
3252
3401
|
"div",
|
|
3253
3402
|
{
|
|
@@ -3259,7 +3408,7 @@ var SidebarGroup = React39.forwardRef(({ className, ...props }, ref) => {
|
|
|
3259
3408
|
);
|
|
3260
3409
|
});
|
|
3261
3410
|
SidebarGroup.displayName = "SidebarGroup";
|
|
3262
|
-
var SidebarGroupLabel =
|
|
3411
|
+
var SidebarGroupLabel = React40.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3263
3412
|
const Comp = asChild ? Slot : "div";
|
|
3264
3413
|
return /* @__PURE__ */ jsx(
|
|
3265
3414
|
Comp,
|
|
@@ -3276,7 +3425,7 @@ var SidebarGroupLabel = React39.forwardRef(({ className, asChild = false, ...pro
|
|
|
3276
3425
|
);
|
|
3277
3426
|
});
|
|
3278
3427
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
3279
|
-
var SidebarGroupAction =
|
|
3428
|
+
var SidebarGroupAction = React40.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3280
3429
|
const Comp = asChild ? Slot : "button";
|
|
3281
3430
|
return /* @__PURE__ */ jsx(
|
|
3282
3431
|
Comp,
|
|
@@ -3295,7 +3444,7 @@ var SidebarGroupAction = React39.forwardRef(({ className, asChild = false, ...pr
|
|
|
3295
3444
|
);
|
|
3296
3445
|
});
|
|
3297
3446
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
3298
|
-
var SidebarGroupContent =
|
|
3447
|
+
var SidebarGroupContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3299
3448
|
"div",
|
|
3300
3449
|
{
|
|
3301
3450
|
ref,
|
|
@@ -3305,7 +3454,7 @@ var SidebarGroupContent = React39.forwardRef(({ className, ...props }, ref) => /
|
|
|
3305
3454
|
}
|
|
3306
3455
|
));
|
|
3307
3456
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
3308
|
-
var SidebarMenu =
|
|
3457
|
+
var SidebarMenu = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3309
3458
|
"ul",
|
|
3310
3459
|
{
|
|
3311
3460
|
ref,
|
|
@@ -3315,7 +3464,7 @@ var SidebarMenu = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3315
3464
|
}
|
|
3316
3465
|
));
|
|
3317
3466
|
SidebarMenu.displayName = "SidebarMenu";
|
|
3318
|
-
var SidebarMenuItem =
|
|
3467
|
+
var SidebarMenuItem = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3319
3468
|
"li",
|
|
3320
3469
|
{
|
|
3321
3470
|
ref,
|
|
@@ -3345,7 +3494,7 @@ var sidebarMenuButtonVariants = cva(
|
|
|
3345
3494
|
}
|
|
3346
3495
|
}
|
|
3347
3496
|
);
|
|
3348
|
-
var SidebarMenuButton =
|
|
3497
|
+
var SidebarMenuButton = React40.forwardRef(
|
|
3349
3498
|
({
|
|
3350
3499
|
asChild = false,
|
|
3351
3500
|
isActive = false,
|
|
@@ -3391,7 +3540,7 @@ var SidebarMenuButton = React39.forwardRef(
|
|
|
3391
3540
|
}
|
|
3392
3541
|
);
|
|
3393
3542
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
3394
|
-
var SidebarMenuAction =
|
|
3543
|
+
var SidebarMenuAction = React40.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
3395
3544
|
const Comp = asChild ? Slot : "button";
|
|
3396
3545
|
return /* @__PURE__ */ jsx(
|
|
3397
3546
|
Comp,
|
|
@@ -3414,7 +3563,7 @@ var SidebarMenuAction = React39.forwardRef(({ className, asChild = false, showOn
|
|
|
3414
3563
|
);
|
|
3415
3564
|
});
|
|
3416
3565
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
3417
|
-
var SidebarMenuBadge =
|
|
3566
|
+
var SidebarMenuBadge = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3418
3567
|
"div",
|
|
3419
3568
|
{
|
|
3420
3569
|
ref,
|
|
@@ -3432,8 +3581,8 @@ var SidebarMenuBadge = React39.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3432
3581
|
}
|
|
3433
3582
|
));
|
|
3434
3583
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
3435
|
-
var SidebarMenuSkeleton =
|
|
3436
|
-
const width =
|
|
3584
|
+
var SidebarMenuSkeleton = React40.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
3585
|
+
const width = React40.useMemo(() => {
|
|
3437
3586
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
3438
3587
|
}, []);
|
|
3439
3588
|
return /* @__PURE__ */ jsxs(
|
|
@@ -3466,7 +3615,7 @@ var SidebarMenuSkeleton = React39.forwardRef(({ className, showIcon = false, ...
|
|
|
3466
3615
|
);
|
|
3467
3616
|
});
|
|
3468
3617
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
3469
|
-
var SidebarMenuSub =
|
|
3618
|
+
var SidebarMenuSub = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3470
3619
|
"ul",
|
|
3471
3620
|
{
|
|
3472
3621
|
ref,
|
|
@@ -3480,9 +3629,9 @@ var SidebarMenuSub = React39.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
3480
3629
|
}
|
|
3481
3630
|
));
|
|
3482
3631
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
3483
|
-
var SidebarMenuSubItem =
|
|
3632
|
+
var SidebarMenuSubItem = React40.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, ...props }));
|
|
3484
3633
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
3485
|
-
var SidebarMenuSubButton =
|
|
3634
|
+
var SidebarMenuSubButton = React40.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
3486
3635
|
const Comp = asChild ? Slot : "a";
|
|
3487
3636
|
return /* @__PURE__ */ jsx(
|
|
3488
3637
|
Comp,
|
|
@@ -3521,7 +3670,7 @@ function SimpleTabs({ tabs, activeTab, onTabChange }) {
|
|
|
3521
3670
|
);
|
|
3522
3671
|
}) });
|
|
3523
3672
|
}
|
|
3524
|
-
var Slider =
|
|
3673
|
+
var Slider = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3525
3674
|
SliderPrimitive.Root,
|
|
3526
3675
|
{
|
|
3527
3676
|
ref,
|
|
@@ -3612,7 +3761,7 @@ function StatusBadge({
|
|
|
3612
3761
|
}
|
|
3613
3762
|
);
|
|
3614
3763
|
}
|
|
3615
|
-
var Switch =
|
|
3764
|
+
var Switch = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3616
3765
|
SwitchPrimitives.Root,
|
|
3617
3766
|
{
|
|
3618
3767
|
className: cn(
|
|
@@ -3632,7 +3781,7 @@ var Switch = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
3632
3781
|
}
|
|
3633
3782
|
));
|
|
3634
3783
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
3635
|
-
var Table =
|
|
3784
|
+
var Table = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
|
|
3636
3785
|
"table",
|
|
3637
3786
|
{
|
|
3638
3787
|
ref,
|
|
@@ -3641,9 +3790,9 @@ var Table = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
3641
3790
|
}
|
|
3642
3791
|
) }));
|
|
3643
3792
|
Table.displayName = "Table";
|
|
3644
|
-
var TableHeader =
|
|
3793
|
+
var TableHeader = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
3645
3794
|
TableHeader.displayName = "TableHeader";
|
|
3646
|
-
var TableBody =
|
|
3795
|
+
var TableBody = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3647
3796
|
"tbody",
|
|
3648
3797
|
{
|
|
3649
3798
|
ref,
|
|
@@ -3652,7 +3801,7 @@ var TableBody = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3652
3801
|
}
|
|
3653
3802
|
));
|
|
3654
3803
|
TableBody.displayName = "TableBody";
|
|
3655
|
-
var TableFooter =
|
|
3804
|
+
var TableFooter = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3656
3805
|
"tfoot",
|
|
3657
3806
|
{
|
|
3658
3807
|
ref,
|
|
@@ -3664,7 +3813,7 @@ var TableFooter = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3664
3813
|
}
|
|
3665
3814
|
));
|
|
3666
3815
|
TableFooter.displayName = "TableFooter";
|
|
3667
|
-
var TableRow =
|
|
3816
|
+
var TableRow = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3668
3817
|
"tr",
|
|
3669
3818
|
{
|
|
3670
3819
|
ref,
|
|
@@ -3676,7 +3825,7 @@ var TableRow = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3676
3825
|
}
|
|
3677
3826
|
));
|
|
3678
3827
|
TableRow.displayName = "TableRow";
|
|
3679
|
-
var TableHead =
|
|
3828
|
+
var TableHead = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3680
3829
|
"th",
|
|
3681
3830
|
{
|
|
3682
3831
|
ref,
|
|
@@ -3688,7 +3837,7 @@ var TableHead = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3688
3837
|
}
|
|
3689
3838
|
));
|
|
3690
3839
|
TableHead.displayName = "TableHead";
|
|
3691
|
-
var TableCell =
|
|
3840
|
+
var TableCell = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3692
3841
|
"td",
|
|
3693
3842
|
{
|
|
3694
3843
|
ref,
|
|
@@ -3697,7 +3846,7 @@ var TableCell = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3697
3846
|
}
|
|
3698
3847
|
));
|
|
3699
3848
|
TableCell.displayName = "TableCell";
|
|
3700
|
-
var TableCaption =
|
|
3849
|
+
var TableCaption = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3701
3850
|
"caption",
|
|
3702
3851
|
{
|
|
3703
3852
|
ref,
|
|
@@ -3707,7 +3856,7 @@ var TableCaption = React39.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3707
3856
|
));
|
|
3708
3857
|
TableCaption.displayName = "TableCaption";
|
|
3709
3858
|
var Tabs = TabsPrimitive.Root;
|
|
3710
|
-
var TabsList =
|
|
3859
|
+
var TabsList = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "overflow-x-auto pb-1 hide-scrollbar", children: /* @__PURE__ */ jsx(
|
|
3711
3860
|
TabsPrimitive.List,
|
|
3712
3861
|
{
|
|
3713
3862
|
ref,
|
|
@@ -3719,7 +3868,7 @@ var TabsList = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3719
3868
|
}
|
|
3720
3869
|
) }));
|
|
3721
3870
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3722
|
-
var TabsTrigger =
|
|
3871
|
+
var TabsTrigger = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3723
3872
|
TabsPrimitive.Trigger,
|
|
3724
3873
|
{
|
|
3725
3874
|
ref,
|
|
@@ -3731,7 +3880,7 @@ var TabsTrigger = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3731
3880
|
}
|
|
3732
3881
|
));
|
|
3733
3882
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3734
|
-
var TabsContent =
|
|
3883
|
+
var TabsContent = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3735
3884
|
TabsPrimitive.Content,
|
|
3736
3885
|
{
|
|
3737
3886
|
ref,
|
|
@@ -3743,7 +3892,7 @@ var TabsContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3743
3892
|
}
|
|
3744
3893
|
));
|
|
3745
3894
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
3746
|
-
var Textarea =
|
|
3895
|
+
var Textarea = React40.forwardRef(
|
|
3747
3896
|
({ className, ...props }, ref) => {
|
|
3748
3897
|
return /* @__PURE__ */ jsx(
|
|
3749
3898
|
"textarea",
|
|
@@ -3760,12 +3909,12 @@ var Textarea = React39.forwardRef(
|
|
|
3760
3909
|
);
|
|
3761
3910
|
Textarea.displayName = "Textarea";
|
|
3762
3911
|
var ToastProvider = ToastPrimitives.Provider;
|
|
3763
|
-
var ToastViewport =
|
|
3912
|
+
var ToastViewport = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3764
3913
|
ToastPrimitives.Viewport,
|
|
3765
3914
|
{
|
|
3766
3915
|
ref,
|
|
3767
3916
|
className: cn(
|
|
3768
|
-
"fixed top-0 z-[9999] flex max-h-screen w-full flex-col-reverse
|
|
3917
|
+
"fixed top-0 z-[9999] flex max-h-screen w-full flex-col-reverse px-4 pt-[max(1rem,env(safe-area-inset-top))] pb-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col sm:pt-4 sm:pb-[max(1rem,env(safe-area-inset-bottom))] sm:pr-[max(1rem,env(safe-area-inset-right))] md:max-w-[420px]",
|
|
3769
3918
|
className
|
|
3770
3919
|
),
|
|
3771
3920
|
...props
|
|
@@ -3773,12 +3922,12 @@ var ToastViewport = React39.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3773
3922
|
));
|
|
3774
3923
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
3775
3924
|
var toastVariants = cva(
|
|
3776
|
-
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-
|
|
3925
|
+
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-2xl border p-4 pr-8 shadow-glass backdrop-blur-glass transition-all duration-300 data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
3777
3926
|
{
|
|
3778
3927
|
variants: {
|
|
3779
3928
|
variant: {
|
|
3780
|
-
default: "
|
|
3781
|
-
destructive: "destructive group
|
|
3929
|
+
default: "bg-glass border-glass-border text-glass-foreground",
|
|
3930
|
+
destructive: "destructive group bg-destructive/90 border-destructive/50 text-destructive-foreground backdrop-blur-glass-strong"
|
|
3782
3931
|
}
|
|
3783
3932
|
},
|
|
3784
3933
|
defaultVariants: {
|
|
@@ -3786,7 +3935,7 @@ var toastVariants = cva(
|
|
|
3786
3935
|
}
|
|
3787
3936
|
}
|
|
3788
3937
|
);
|
|
3789
|
-
var Toast =
|
|
3938
|
+
var Toast = React40.forwardRef(({ className, variant, ...props }, ref) => {
|
|
3790
3939
|
return /* @__PURE__ */ jsx(
|
|
3791
3940
|
ToastPrimitives.Root,
|
|
3792
3941
|
{
|
|
@@ -3797,24 +3946,24 @@ var Toast = React39.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
3797
3946
|
);
|
|
3798
3947
|
});
|
|
3799
3948
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
3800
|
-
var ToastAction =
|
|
3949
|
+
var ToastAction = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3801
3950
|
ToastPrimitives.Action,
|
|
3802
3951
|
{
|
|
3803
3952
|
ref,
|
|
3804
3953
|
className: cn(
|
|
3805
|
-
"inline-flex h-8 shrink-0 items-center justify-center rounded-
|
|
3954
|
+
"inline-flex h-8 shrink-0 items-center justify-center rounded-lg border border-glass-border bg-glass-subtle px-3 text-sm font-medium text-glass-foreground transition-all duration-200 hover:bg-glass-elevated focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive-foreground/30 group-[.destructive]:text-destructive-foreground group-[.destructive]:hover:bg-destructive-foreground/10 group-[.destructive]:focus:ring-destructive",
|
|
3806
3955
|
className
|
|
3807
3956
|
),
|
|
3808
3957
|
...props
|
|
3809
3958
|
}
|
|
3810
3959
|
));
|
|
3811
3960
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
3812
|
-
var ToastClose =
|
|
3961
|
+
var ToastClose = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3813
3962
|
ToastPrimitives.Close,
|
|
3814
3963
|
{
|
|
3815
3964
|
ref,
|
|
3816
3965
|
className: cn(
|
|
3817
|
-
"absolute right-2 top-2 rounded-
|
|
3966
|
+
"absolute right-2 top-2 rounded-lg p-1 text-glass-foreground-muted opacity-0 transition-all duration-200 hover:text-glass-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-destructive-foreground/70 group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
|
|
3818
3967
|
className
|
|
3819
3968
|
),
|
|
3820
3969
|
"toast-close": "",
|
|
@@ -3823,20 +3972,20 @@ var ToastClose = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3823
3972
|
}
|
|
3824
3973
|
));
|
|
3825
3974
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
3826
|
-
var ToastTitle =
|
|
3975
|
+
var ToastTitle = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3827
3976
|
ToastPrimitives.Title,
|
|
3828
3977
|
{
|
|
3829
3978
|
ref,
|
|
3830
|
-
className: cn("text-
|
|
3979
|
+
className: cn("text-sm font-semibold", className),
|
|
3831
3980
|
...props
|
|
3832
3981
|
}
|
|
3833
3982
|
));
|
|
3834
3983
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
3835
|
-
var ToastDescription =
|
|
3984
|
+
var ToastDescription = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3836
3985
|
ToastPrimitives.Description,
|
|
3837
3986
|
{
|
|
3838
3987
|
ref,
|
|
3839
|
-
className: cn("text-
|
|
3988
|
+
className: cn("text-sm text-glass-foreground-muted group-[.destructive]:text-destructive-foreground/90", className),
|
|
3840
3989
|
...props
|
|
3841
3990
|
}
|
|
3842
3991
|
));
|
|
@@ -3877,7 +4026,7 @@ var toggleVariants = cva(
|
|
|
3877
4026
|
}
|
|
3878
4027
|
}
|
|
3879
4028
|
);
|
|
3880
|
-
var Toggle =
|
|
4029
|
+
var Toggle = React40.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3881
4030
|
TogglePrimitive.Root,
|
|
3882
4031
|
{
|
|
3883
4032
|
ref,
|
|
@@ -3886,11 +4035,11 @@ var Toggle = React39.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
3886
4035
|
}
|
|
3887
4036
|
));
|
|
3888
4037
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
3889
|
-
var ToggleGroupContext =
|
|
4038
|
+
var ToggleGroupContext = React40.createContext({
|
|
3890
4039
|
size: "default",
|
|
3891
4040
|
variant: "default"
|
|
3892
4041
|
});
|
|
3893
|
-
var ToggleGroup =
|
|
4042
|
+
var ToggleGroup = React40.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3894
4043
|
ToggleGroupPrimitive.Root,
|
|
3895
4044
|
{
|
|
3896
4045
|
ref,
|
|
@@ -3900,8 +4049,8 @@ var ToggleGroup = React39.forwardRef(({ className, variant, size, children, ...p
|
|
|
3900
4049
|
}
|
|
3901
4050
|
));
|
|
3902
4051
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
3903
|
-
var ToggleGroupItem =
|
|
3904
|
-
const context =
|
|
4052
|
+
var ToggleGroupItem = React40.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
4053
|
+
const context = React40.useContext(ToggleGroupContext);
|
|
3905
4054
|
return /* @__PURE__ */ jsx(
|
|
3906
4055
|
ToggleGroupPrimitive.Item,
|
|
3907
4056
|
{
|
|
@@ -3920,6 +4069,6 @@ var ToggleGroupItem = React39.forwardRef(({ className, children, variant, size,
|
|
|
3920
4069
|
});
|
|
3921
4070
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
3922
4071
|
|
|
3923
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnimatedBackground, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, 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, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, 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, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GlassCard, GlassCardContent, GlassCardDescription, GlassCardFooter, GlassCardHeader, GlassCardTitle, GlassHeader, GlassOverlay, GlassTabs, GradientOrb, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, Logo, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup4 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, 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, SimpleTabs, Skeleton, Slider, StatusBadge, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip2 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, glassCardVariants, glassHeaderVariants, glassOverlayVariants, glassTabVariants, glassTabsContainerVariants, inputVariants, navigationMenuTriggerStyle, separatorVariants, statusBadgeVariants, statusLabels, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast };
|
|
4072
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnimatedBackground, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BannerActions, BannerDescription, BannerTitle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, 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, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, 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, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GlassCard, GlassCardContent, GlassCardDescription, GlassCardFooter, GlassCardHeader, GlassCardTitle, GlassHeader, GlassOverlay, GlassTabs, GradientOrb, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, Logo, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup4 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, 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, SimpleTabs, Skeleton, Slider, StatusBadge, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip2 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, bannerVariants, buttonVariants, cn, glassCardVariants, glassHeaderVariants, glassOverlayVariants, glassTabVariants, glassTabsContainerVariants, inputVariants, navigationMenuTriggerStyle, separatorVariants, statusBadgeVariants, statusLabels, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast };
|
|
3924
4073
|
//# sourceMappingURL=index.js.map
|
|
3925
4074
|
//# sourceMappingURL=index.js.map
|