@appolabs/ui 0.1.5 → 0.1.6
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/README.md +181 -0
- package/dist/index.cjs +473 -234
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -8
- package/dist/index.d.ts +59 -8
- package/dist/index.js +465 -235
- package/dist/index.js.map +1 -1
- package/dist/tailwind/preset.cjs +18 -0
- package/dist/tailwind/preset.js +18 -0
- package/package.json +1 -1
- package/src/styles/variables.css +24 -0
- package/tailwind/preset.ts +18 -0
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var clsx = require('clsx');
|
|
4
4
|
var tailwindMerge = require('tailwind-merge');
|
|
5
|
-
var
|
|
5
|
+
var React39 = require('react');
|
|
6
6
|
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
7
7
|
var lucideReact = require('lucide-react');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -62,7 +62,7 @@ function _interopNamespace(e) {
|
|
|
62
62
|
return Object.freeze(n);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var React39__namespace = /*#__PURE__*/_interopNamespace(React39);
|
|
66
66
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
67
67
|
var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
|
|
68
68
|
var AspectRatioPrimitive__namespace = /*#__PURE__*/_interopNamespace(AspectRatioPrimitive);
|
|
@@ -98,8 +98,8 @@ function cn(...inputs) {
|
|
|
98
98
|
}
|
|
99
99
|
var MOBILE_BREAKPOINT = 768;
|
|
100
100
|
function useIsMobile() {
|
|
101
|
-
const [isMobile, setIsMobile] =
|
|
102
|
-
|
|
101
|
+
const [isMobile, setIsMobile] = React39__namespace.useState(void 0);
|
|
102
|
+
React39__namespace.useEffect(() => {
|
|
103
103
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
104
104
|
const onChange = () => {
|
|
105
105
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -210,8 +210,8 @@ function toast({ ...props }) {
|
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
function useToast() {
|
|
213
|
-
const [state, setState] =
|
|
214
|
-
|
|
213
|
+
const [state, setState] = React39__namespace.useState(memoryState);
|
|
214
|
+
React39__namespace.useEffect(() => {
|
|
215
215
|
listeners.push(setState);
|
|
216
216
|
return () => {
|
|
217
217
|
const index = listeners.indexOf(setState);
|
|
@@ -227,7 +227,7 @@ function useToast() {
|
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
229
|
var Accordion = AccordionPrimitive__namespace.Root;
|
|
230
|
-
var AccordionItem =
|
|
230
|
+
var AccordionItem = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
231
231
|
AccordionPrimitive__namespace.Item,
|
|
232
232
|
{
|
|
233
233
|
ref,
|
|
@@ -236,7 +236,7 @@ var AccordionItem = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
236
236
|
}
|
|
237
237
|
));
|
|
238
238
|
AccordionItem.displayName = "AccordionItem";
|
|
239
|
-
var AccordionTrigger =
|
|
239
|
+
var AccordionTrigger = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
240
240
|
AccordionPrimitive__namespace.Trigger,
|
|
241
241
|
{
|
|
242
242
|
ref,
|
|
@@ -252,7 +252,7 @@ var AccordionTrigger = React36__namespace.forwardRef(({ className, children, ...
|
|
|
252
252
|
}
|
|
253
253
|
) }));
|
|
254
254
|
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
255
|
-
var AccordionContent =
|
|
255
|
+
var AccordionContent = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
256
256
|
AccordionPrimitive__namespace.Content,
|
|
257
257
|
{
|
|
258
258
|
ref,
|
|
@@ -276,7 +276,7 @@ var alertVariants = classVarianceAuthority.cva(
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
);
|
|
279
|
-
var Alert =
|
|
279
|
+
var Alert = React39__namespace.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
280
280
|
"div",
|
|
281
281
|
{
|
|
282
282
|
ref,
|
|
@@ -286,7 +286,7 @@ var Alert = React36__namespace.forwardRef(({ className, variant, ...props }, ref
|
|
|
286
286
|
}
|
|
287
287
|
));
|
|
288
288
|
Alert.displayName = "Alert";
|
|
289
|
-
var AlertTitle =
|
|
289
|
+
var AlertTitle = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
290
290
|
"h5",
|
|
291
291
|
{
|
|
292
292
|
ref,
|
|
@@ -295,7 +295,7 @@ var AlertTitle = React36__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
295
295
|
}
|
|
296
296
|
));
|
|
297
297
|
AlertTitle.displayName = "AlertTitle";
|
|
298
|
-
var AlertDescription =
|
|
298
|
+
var AlertDescription = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
299
299
|
"div",
|
|
300
300
|
{
|
|
301
301
|
ref,
|
|
@@ -305,7 +305,7 @@ var AlertDescription = React36__namespace.forwardRef(({ className, ...props }, r
|
|
|
305
305
|
));
|
|
306
306
|
AlertDescription.displayName = "AlertDescription";
|
|
307
307
|
var buttonVariants = classVarianceAuthority.cva(
|
|
308
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-base font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
308
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-base font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
309
309
|
{
|
|
310
310
|
variants: {
|
|
311
311
|
variant: {
|
|
@@ -329,14 +329,16 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
);
|
|
332
|
-
var Button =
|
|
333
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
332
|
+
var Button = React39__namespace.forwardRef(
|
|
333
|
+
({ className, variant, size, asChild = false, disabled, ...props }, ref) => {
|
|
334
334
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
335
335
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
336
336
|
Comp,
|
|
337
337
|
{
|
|
338
338
|
className: cn(buttonVariants({ variant, size, className })),
|
|
339
339
|
ref,
|
|
340
|
+
disabled: asChild ? void 0 : disabled,
|
|
341
|
+
"aria-disabled": disabled ? "true" : void 0,
|
|
340
342
|
...props
|
|
341
343
|
}
|
|
342
344
|
);
|
|
@@ -346,7 +348,7 @@ Button.displayName = "Button";
|
|
|
346
348
|
var AlertDialog = AlertDialogPrimitive__namespace.Root;
|
|
347
349
|
var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
|
|
348
350
|
var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
|
|
349
|
-
var AlertDialogOverlay =
|
|
351
|
+
var AlertDialogOverlay = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
350
352
|
AlertDialogPrimitive__namespace.Overlay,
|
|
351
353
|
{
|
|
352
354
|
className: cn(
|
|
@@ -358,7 +360,7 @@ var AlertDialogOverlay = React36__namespace.forwardRef(({ className, ...props },
|
|
|
358
360
|
}
|
|
359
361
|
));
|
|
360
362
|
AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
|
|
361
|
-
var AlertDialogContent =
|
|
363
|
+
var AlertDialogContent = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
362
364
|
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
363
365
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
364
366
|
AlertDialogPrimitive__namespace.Content,
|
|
@@ -401,7 +403,7 @@ var AlertDialogFooter = ({
|
|
|
401
403
|
}
|
|
402
404
|
);
|
|
403
405
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
404
|
-
var AlertDialogTitle =
|
|
406
|
+
var AlertDialogTitle = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
405
407
|
AlertDialogPrimitive__namespace.Title,
|
|
406
408
|
{
|
|
407
409
|
ref,
|
|
@@ -410,7 +412,7 @@ var AlertDialogTitle = React36__namespace.forwardRef(({ className, ...props }, r
|
|
|
410
412
|
}
|
|
411
413
|
));
|
|
412
414
|
AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
|
|
413
|
-
var AlertDialogDescription =
|
|
415
|
+
var AlertDialogDescription = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
414
416
|
AlertDialogPrimitive__namespace.Description,
|
|
415
417
|
{
|
|
416
418
|
ref,
|
|
@@ -419,7 +421,7 @@ var AlertDialogDescription = React36__namespace.forwardRef(({ className, ...prop
|
|
|
419
421
|
}
|
|
420
422
|
));
|
|
421
423
|
AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
|
|
422
|
-
var AlertDialogAction =
|
|
424
|
+
var AlertDialogAction = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
423
425
|
AlertDialogPrimitive__namespace.Action,
|
|
424
426
|
{
|
|
425
427
|
ref,
|
|
@@ -428,7 +430,7 @@ var AlertDialogAction = React36__namespace.forwardRef(({ className, ...props },
|
|
|
428
430
|
}
|
|
429
431
|
));
|
|
430
432
|
AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
|
|
431
|
-
var AlertDialogCancel =
|
|
433
|
+
var AlertDialogCancel = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
432
434
|
AlertDialogPrimitive__namespace.Cancel,
|
|
433
435
|
{
|
|
434
436
|
ref,
|
|
@@ -441,7 +443,7 @@ var AlertDialogCancel = React36__namespace.forwardRef(({ className, ...props },
|
|
|
441
443
|
}
|
|
442
444
|
));
|
|
443
445
|
AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
|
|
444
|
-
var AnimatedBackground =
|
|
446
|
+
var AnimatedBackground = React39__namespace.forwardRef(
|
|
445
447
|
({ className, variant = "default", showOrbs = true, showGrid = false, children, ...props }, ref) => {
|
|
446
448
|
const isDashboard = variant === "dashboard";
|
|
447
449
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -499,7 +501,7 @@ var AnimatedBackground = React36__namespace.forwardRef(
|
|
|
499
501
|
}
|
|
500
502
|
);
|
|
501
503
|
AnimatedBackground.displayName = "AnimatedBackground";
|
|
502
|
-
var GradientOrb =
|
|
504
|
+
var GradientOrb = React39__namespace.forwardRef(
|
|
503
505
|
({
|
|
504
506
|
className,
|
|
505
507
|
color = "blue",
|
|
@@ -554,7 +556,7 @@ var GradientOrb = React36__namespace.forwardRef(
|
|
|
554
556
|
);
|
|
555
557
|
GradientOrb.displayName = "GradientOrb";
|
|
556
558
|
var AspectRatio = AspectRatioPrimitive__namespace.Root;
|
|
557
|
-
var Avatar =
|
|
559
|
+
var Avatar = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
558
560
|
AvatarPrimitive__namespace.Root,
|
|
559
561
|
{
|
|
560
562
|
ref,
|
|
@@ -566,7 +568,7 @@ var Avatar = React36__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
566
568
|
}
|
|
567
569
|
));
|
|
568
570
|
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
569
|
-
var AvatarImage =
|
|
571
|
+
var AvatarImage = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
570
572
|
AvatarPrimitive__namespace.Image,
|
|
571
573
|
{
|
|
572
574
|
ref,
|
|
@@ -575,7 +577,7 @@ var AvatarImage = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
575
577
|
}
|
|
576
578
|
));
|
|
577
579
|
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
578
|
-
var AvatarFallback =
|
|
580
|
+
var AvatarFallback = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
579
581
|
AvatarPrimitive__namespace.Fallback,
|
|
580
582
|
{
|
|
581
583
|
ref,
|
|
@@ -606,9 +608,9 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
606
608
|
function Badge({ className, variant, ...props }) {
|
|
607
609
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
608
610
|
}
|
|
609
|
-
var Breadcrumb =
|
|
611
|
+
var Breadcrumb = React39__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
610
612
|
Breadcrumb.displayName = "Breadcrumb";
|
|
611
|
-
var BreadcrumbList =
|
|
613
|
+
var BreadcrumbList = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
612
614
|
"ol",
|
|
613
615
|
{
|
|
614
616
|
ref,
|
|
@@ -620,7 +622,7 @@ var BreadcrumbList = React36__namespace.forwardRef(({ className, ...props }, ref
|
|
|
620
622
|
}
|
|
621
623
|
));
|
|
622
624
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
623
|
-
var BreadcrumbItem =
|
|
625
|
+
var BreadcrumbItem = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
624
626
|
"li",
|
|
625
627
|
{
|
|
626
628
|
ref,
|
|
@@ -629,7 +631,7 @@ var BreadcrumbItem = React36__namespace.forwardRef(({ className, ...props }, ref
|
|
|
629
631
|
}
|
|
630
632
|
));
|
|
631
633
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
632
|
-
var BreadcrumbLink =
|
|
634
|
+
var BreadcrumbLink = React39__namespace.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
633
635
|
const Comp = asChild ? reactSlot.Slot : "a";
|
|
634
636
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
635
637
|
Comp,
|
|
@@ -641,7 +643,7 @@ var BreadcrumbLink = React36__namespace.forwardRef(({ asChild, className, ...pro
|
|
|
641
643
|
);
|
|
642
644
|
});
|
|
643
645
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
644
|
-
var BreadcrumbPage =
|
|
646
|
+
var BreadcrumbPage = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
645
647
|
"span",
|
|
646
648
|
{
|
|
647
649
|
ref,
|
|
@@ -737,7 +739,7 @@ function Calendar({
|
|
|
737
739
|
);
|
|
738
740
|
}
|
|
739
741
|
Calendar.displayName = "Calendar";
|
|
740
|
-
var Card =
|
|
742
|
+
var Card = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
741
743
|
"div",
|
|
742
744
|
{
|
|
743
745
|
ref,
|
|
@@ -749,7 +751,7 @@ var Card = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
749
751
|
}
|
|
750
752
|
));
|
|
751
753
|
Card.displayName = "Card";
|
|
752
|
-
var CardHeader =
|
|
754
|
+
var CardHeader = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
753
755
|
"div",
|
|
754
756
|
{
|
|
755
757
|
ref,
|
|
@@ -758,7 +760,7 @@ var CardHeader = React36__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
758
760
|
}
|
|
759
761
|
));
|
|
760
762
|
CardHeader.displayName = "CardHeader";
|
|
761
|
-
var CardTitle =
|
|
763
|
+
var CardTitle = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
762
764
|
"h3",
|
|
763
765
|
{
|
|
764
766
|
ref,
|
|
@@ -770,7 +772,7 @@ var CardTitle = React36__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
770
772
|
}
|
|
771
773
|
));
|
|
772
774
|
CardTitle.displayName = "CardTitle";
|
|
773
|
-
var CardDescription =
|
|
775
|
+
var CardDescription = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
774
776
|
"p",
|
|
775
777
|
{
|
|
776
778
|
ref,
|
|
@@ -779,9 +781,9 @@ var CardDescription = React36__namespace.forwardRef(({ className, ...props }, re
|
|
|
779
781
|
}
|
|
780
782
|
));
|
|
781
783
|
CardDescription.displayName = "CardDescription";
|
|
782
|
-
var CardContent =
|
|
784
|
+
var CardContent = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex-1 p-6 pt-0", className), ...props }));
|
|
783
785
|
CardContent.displayName = "CardContent";
|
|
784
|
-
var CardFooter =
|
|
786
|
+
var CardFooter = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
785
787
|
"div",
|
|
786
788
|
{
|
|
787
789
|
ref,
|
|
@@ -790,15 +792,15 @@ var CardFooter = React36__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
790
792
|
}
|
|
791
793
|
));
|
|
792
794
|
CardFooter.displayName = "CardFooter";
|
|
793
|
-
var CarouselContext =
|
|
795
|
+
var CarouselContext = React39__namespace.createContext(null);
|
|
794
796
|
function useCarousel() {
|
|
795
|
-
const context =
|
|
797
|
+
const context = React39__namespace.useContext(CarouselContext);
|
|
796
798
|
if (!context) {
|
|
797
799
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
798
800
|
}
|
|
799
801
|
return context;
|
|
800
802
|
}
|
|
801
|
-
var Carousel =
|
|
803
|
+
var Carousel = React39__namespace.forwardRef(
|
|
802
804
|
({
|
|
803
805
|
orientation = "horizontal",
|
|
804
806
|
opts,
|
|
@@ -815,22 +817,22 @@ var Carousel = React36__namespace.forwardRef(
|
|
|
815
817
|
},
|
|
816
818
|
plugins
|
|
817
819
|
);
|
|
818
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
819
|
-
const [canScrollNext, setCanScrollNext] =
|
|
820
|
-
const onSelect =
|
|
820
|
+
const [canScrollPrev, setCanScrollPrev] = React39__namespace.useState(false);
|
|
821
|
+
const [canScrollNext, setCanScrollNext] = React39__namespace.useState(false);
|
|
822
|
+
const onSelect = React39__namespace.useCallback((api2) => {
|
|
821
823
|
if (!api2) {
|
|
822
824
|
return;
|
|
823
825
|
}
|
|
824
826
|
setCanScrollPrev(api2.canScrollPrev());
|
|
825
827
|
setCanScrollNext(api2.canScrollNext());
|
|
826
828
|
}, []);
|
|
827
|
-
const scrollPrev =
|
|
829
|
+
const scrollPrev = React39__namespace.useCallback(() => {
|
|
828
830
|
api?.scrollPrev();
|
|
829
831
|
}, [api]);
|
|
830
|
-
const scrollNext =
|
|
832
|
+
const scrollNext = React39__namespace.useCallback(() => {
|
|
831
833
|
api?.scrollNext();
|
|
832
834
|
}, [api]);
|
|
833
|
-
const handleKeyDown =
|
|
835
|
+
const handleKeyDown = React39__namespace.useCallback(
|
|
834
836
|
(event) => {
|
|
835
837
|
if (event.key === "ArrowLeft") {
|
|
836
838
|
event.preventDefault();
|
|
@@ -842,13 +844,13 @@ var Carousel = React36__namespace.forwardRef(
|
|
|
842
844
|
},
|
|
843
845
|
[scrollPrev, scrollNext]
|
|
844
846
|
);
|
|
845
|
-
|
|
847
|
+
React39__namespace.useEffect(() => {
|
|
846
848
|
if (!api || !setApi) {
|
|
847
849
|
return;
|
|
848
850
|
}
|
|
849
851
|
setApi(api);
|
|
850
852
|
}, [api, setApi]);
|
|
851
|
-
|
|
853
|
+
React39__namespace.useEffect(() => {
|
|
852
854
|
if (!api) {
|
|
853
855
|
return;
|
|
854
856
|
}
|
|
@@ -889,7 +891,7 @@ var Carousel = React36__namespace.forwardRef(
|
|
|
889
891
|
}
|
|
890
892
|
);
|
|
891
893
|
Carousel.displayName = "Carousel";
|
|
892
|
-
var CarouselContent =
|
|
894
|
+
var CarouselContent = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
893
895
|
const { carouselRef, orientation } = useCarousel();
|
|
894
896
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
895
897
|
"div",
|
|
@@ -905,7 +907,7 @@ var CarouselContent = React36__namespace.forwardRef(({ className, ...props }, re
|
|
|
905
907
|
) });
|
|
906
908
|
});
|
|
907
909
|
CarouselContent.displayName = "CarouselContent";
|
|
908
|
-
var CarouselItem =
|
|
910
|
+
var CarouselItem = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
909
911
|
const { orientation } = useCarousel();
|
|
910
912
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
911
913
|
"div",
|
|
@@ -923,7 +925,7 @@ var CarouselItem = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
923
925
|
);
|
|
924
926
|
});
|
|
925
927
|
CarouselItem.displayName = "CarouselItem";
|
|
926
|
-
var CarouselPrevious =
|
|
928
|
+
var CarouselPrevious = React39__namespace.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
927
929
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
928
930
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
929
931
|
Button,
|
|
@@ -947,7 +949,7 @@ var CarouselPrevious = React36__namespace.forwardRef(({ className, variant = "ou
|
|
|
947
949
|
);
|
|
948
950
|
});
|
|
949
951
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
950
|
-
var CarouselNext =
|
|
952
|
+
var CarouselNext = React39__namespace.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
951
953
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
952
954
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
953
955
|
Button,
|
|
@@ -972,16 +974,16 @@ var CarouselNext = React36__namespace.forwardRef(({ className, variant = "outlin
|
|
|
972
974
|
});
|
|
973
975
|
CarouselNext.displayName = "CarouselNext";
|
|
974
976
|
var THEMES = { light: "", dark: ".dark" };
|
|
975
|
-
var ChartContext =
|
|
977
|
+
var ChartContext = React39__namespace.createContext(null);
|
|
976
978
|
function useChart() {
|
|
977
|
-
const context =
|
|
979
|
+
const context = React39__namespace.useContext(ChartContext);
|
|
978
980
|
if (!context) {
|
|
979
981
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
980
982
|
}
|
|
981
983
|
return context;
|
|
982
984
|
}
|
|
983
|
-
var ChartContainer =
|
|
984
|
-
const uniqueId =
|
|
985
|
+
var ChartContainer = React39__namespace.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
986
|
+
const uniqueId = React39__namespace.useId();
|
|
985
987
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
986
988
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
987
989
|
"div",
|
|
@@ -1027,7 +1029,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
1027
1029
|
);
|
|
1028
1030
|
};
|
|
1029
1031
|
var ChartTooltip = RechartsPrimitive__namespace.Tooltip;
|
|
1030
|
-
var ChartTooltipContent =
|
|
1032
|
+
var ChartTooltipContent = React39__namespace.forwardRef(
|
|
1031
1033
|
({
|
|
1032
1034
|
active,
|
|
1033
1035
|
payload,
|
|
@@ -1044,7 +1046,7 @@ var ChartTooltipContent = React36__namespace.forwardRef(
|
|
|
1044
1046
|
labelKey
|
|
1045
1047
|
}, ref) => {
|
|
1046
1048
|
const { config } = useChart();
|
|
1047
|
-
const tooltipLabel =
|
|
1049
|
+
const tooltipLabel = React39__namespace.useMemo(() => {
|
|
1048
1050
|
if (hideLabel || !payload?.length) {
|
|
1049
1051
|
return null;
|
|
1050
1052
|
}
|
|
@@ -1140,7 +1142,7 @@ var ChartTooltipContent = React36__namespace.forwardRef(
|
|
|
1140
1142
|
);
|
|
1141
1143
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
1142
1144
|
var ChartLegend = RechartsPrimitive__namespace.Legend;
|
|
1143
|
-
var ChartLegendContent =
|
|
1145
|
+
var ChartLegendContent = React39__namespace.forwardRef(
|
|
1144
1146
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
1145
1147
|
const { config } = useChart();
|
|
1146
1148
|
if (!payload?.length) {
|
|
@@ -1198,7 +1200,7 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1198
1200
|
}
|
|
1199
1201
|
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
1200
1202
|
}
|
|
1201
|
-
var Checkbox =
|
|
1203
|
+
var Checkbox = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1202
1204
|
CheckboxPrimitive__namespace.Root,
|
|
1203
1205
|
{
|
|
1204
1206
|
ref,
|
|
@@ -1224,7 +1226,7 @@ var Dialog = DialogPrimitive__namespace.Root;
|
|
|
1224
1226
|
var DialogTrigger = DialogPrimitive__namespace.Trigger;
|
|
1225
1227
|
var DialogPortal = DialogPrimitive__namespace.Portal;
|
|
1226
1228
|
var DialogClose = DialogPrimitive__namespace.Close;
|
|
1227
|
-
var DialogOverlay =
|
|
1229
|
+
var DialogOverlay = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1228
1230
|
DialogPrimitive__namespace.Overlay,
|
|
1229
1231
|
{
|
|
1230
1232
|
ref,
|
|
@@ -1236,7 +1238,7 @@ var DialogOverlay = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1236
1238
|
}
|
|
1237
1239
|
));
|
|
1238
1240
|
DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
1239
|
-
var DialogContent =
|
|
1241
|
+
var DialogContent = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
1240
1242
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
1241
1243
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1242
1244
|
DialogPrimitive__namespace.Content,
|
|
@@ -1292,7 +1294,7 @@ var DialogFooter = ({
|
|
|
1292
1294
|
}
|
|
1293
1295
|
);
|
|
1294
1296
|
DialogFooter.displayName = "DialogFooter";
|
|
1295
|
-
var DialogTitle =
|
|
1297
|
+
var DialogTitle = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1296
1298
|
DialogPrimitive__namespace.Title,
|
|
1297
1299
|
{
|
|
1298
1300
|
ref,
|
|
@@ -1304,7 +1306,7 @@ var DialogTitle = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1304
1306
|
}
|
|
1305
1307
|
));
|
|
1306
1308
|
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
1307
|
-
var DialogDescription =
|
|
1309
|
+
var DialogDescription = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1308
1310
|
DialogPrimitive__namespace.Description,
|
|
1309
1311
|
{
|
|
1310
1312
|
ref,
|
|
@@ -1313,7 +1315,7 @@ var DialogDescription = React36__namespace.forwardRef(({ className, ...props },
|
|
|
1313
1315
|
}
|
|
1314
1316
|
));
|
|
1315
1317
|
DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
1316
|
-
var Command =
|
|
1318
|
+
var Command = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1317
1319
|
cmdk.Command,
|
|
1318
1320
|
{
|
|
1319
1321
|
ref,
|
|
@@ -1334,7 +1336,7 @@ var CommandDialog = ({ children, ...props }) => {
|
|
|
1334
1336
|
}
|
|
1335
1337
|
) }) });
|
|
1336
1338
|
};
|
|
1337
|
-
var CommandInput =
|
|
1339
|
+
var CommandInput = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1338
1340
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1339
1341
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1340
1342
|
cmdk.Command.Input,
|
|
@@ -1349,7 +1351,7 @@ var CommandInput = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1349
1351
|
)
|
|
1350
1352
|
] }));
|
|
1351
1353
|
CommandInput.displayName = cmdk.Command.Input.displayName;
|
|
1352
|
-
var CommandList =
|
|
1354
|
+
var CommandList = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1353
1355
|
cmdk.Command.List,
|
|
1354
1356
|
{
|
|
1355
1357
|
ref,
|
|
@@ -1358,7 +1360,7 @@ var CommandList = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1358
1360
|
}
|
|
1359
1361
|
));
|
|
1360
1362
|
CommandList.displayName = cmdk.Command.List.displayName;
|
|
1361
|
-
var CommandEmpty =
|
|
1363
|
+
var CommandEmpty = React39__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1362
1364
|
cmdk.Command.Empty,
|
|
1363
1365
|
{
|
|
1364
1366
|
ref,
|
|
@@ -1367,7 +1369,7 @@ var CommandEmpty = React36__namespace.forwardRef((props, ref) => /* @__PURE__ */
|
|
|
1367
1369
|
}
|
|
1368
1370
|
));
|
|
1369
1371
|
CommandEmpty.displayName = cmdk.Command.Empty.displayName;
|
|
1370
|
-
var CommandGroup =
|
|
1372
|
+
var CommandGroup = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1371
1373
|
cmdk.Command.Group,
|
|
1372
1374
|
{
|
|
1373
1375
|
ref,
|
|
@@ -1379,7 +1381,7 @@ var CommandGroup = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1379
1381
|
}
|
|
1380
1382
|
));
|
|
1381
1383
|
CommandGroup.displayName = cmdk.Command.Group.displayName;
|
|
1382
|
-
var CommandSeparator =
|
|
1384
|
+
var CommandSeparator = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1383
1385
|
cmdk.Command.Separator,
|
|
1384
1386
|
{
|
|
1385
1387
|
ref,
|
|
@@ -1388,7 +1390,7 @@ var CommandSeparator = React36__namespace.forwardRef(({ className, ...props }, r
|
|
|
1388
1390
|
}
|
|
1389
1391
|
));
|
|
1390
1392
|
CommandSeparator.displayName = cmdk.Command.Separator.displayName;
|
|
1391
|
-
var CommandItem =
|
|
1393
|
+
var CommandItem = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1392
1394
|
cmdk.Command.Item,
|
|
1393
1395
|
{
|
|
1394
1396
|
ref,
|
|
@@ -1422,7 +1424,7 @@ var ContextMenuGroup = ContextMenuPrimitive__namespace.Group;
|
|
|
1422
1424
|
var ContextMenuPortal = ContextMenuPrimitive__namespace.Portal;
|
|
1423
1425
|
var ContextMenuSub = ContextMenuPrimitive__namespace.Sub;
|
|
1424
1426
|
var ContextMenuRadioGroup = ContextMenuPrimitive__namespace.RadioGroup;
|
|
1425
|
-
var ContextMenuSubTrigger =
|
|
1427
|
+
var ContextMenuSubTrigger = React39__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1426
1428
|
ContextMenuPrimitive__namespace.SubTrigger,
|
|
1427
1429
|
{
|
|
1428
1430
|
ref,
|
|
@@ -1439,7 +1441,7 @@ var ContextMenuSubTrigger = React36__namespace.forwardRef(({ className, inset, c
|
|
|
1439
1441
|
}
|
|
1440
1442
|
));
|
|
1441
1443
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive__namespace.SubTrigger.displayName;
|
|
1442
|
-
var ContextMenuSubContent =
|
|
1444
|
+
var ContextMenuSubContent = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1443
1445
|
ContextMenuPrimitive__namespace.SubContent,
|
|
1444
1446
|
{
|
|
1445
1447
|
ref,
|
|
@@ -1451,7 +1453,7 @@ var ContextMenuSubContent = React36__namespace.forwardRef(({ className, ...props
|
|
|
1451
1453
|
}
|
|
1452
1454
|
));
|
|
1453
1455
|
ContextMenuSubContent.displayName = ContextMenuPrimitive__namespace.SubContent.displayName;
|
|
1454
|
-
var ContextMenuContent =
|
|
1456
|
+
var ContextMenuContent = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1455
1457
|
ContextMenuPrimitive__namespace.Content,
|
|
1456
1458
|
{
|
|
1457
1459
|
ref,
|
|
@@ -1463,7 +1465,7 @@ var ContextMenuContent = React36__namespace.forwardRef(({ className, ...props },
|
|
|
1463
1465
|
}
|
|
1464
1466
|
) }));
|
|
1465
1467
|
ContextMenuContent.displayName = ContextMenuPrimitive__namespace.Content.displayName;
|
|
1466
|
-
var ContextMenuItem =
|
|
1468
|
+
var ContextMenuItem = React39__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1467
1469
|
ContextMenuPrimitive__namespace.Item,
|
|
1468
1470
|
{
|
|
1469
1471
|
ref,
|
|
@@ -1476,7 +1478,7 @@ var ContextMenuItem = React36__namespace.forwardRef(({ className, inset, ...prop
|
|
|
1476
1478
|
}
|
|
1477
1479
|
));
|
|
1478
1480
|
ContextMenuItem.displayName = ContextMenuPrimitive__namespace.Item.displayName;
|
|
1479
|
-
var ContextMenuCheckboxItem =
|
|
1481
|
+
var ContextMenuCheckboxItem = React39__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1480
1482
|
ContextMenuPrimitive__namespace.CheckboxItem,
|
|
1481
1483
|
{
|
|
1482
1484
|
ref,
|
|
@@ -1493,7 +1495,7 @@ var ContextMenuCheckboxItem = React36__namespace.forwardRef(({ className, childr
|
|
|
1493
1495
|
}
|
|
1494
1496
|
));
|
|
1495
1497
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
1496
|
-
var ContextMenuRadioItem =
|
|
1498
|
+
var ContextMenuRadioItem = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1497
1499
|
ContextMenuPrimitive__namespace.RadioItem,
|
|
1498
1500
|
{
|
|
1499
1501
|
ref,
|
|
@@ -1509,7 +1511,7 @@ var ContextMenuRadioItem = React36__namespace.forwardRef(({ className, children,
|
|
|
1509
1511
|
}
|
|
1510
1512
|
));
|
|
1511
1513
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive__namespace.RadioItem.displayName;
|
|
1512
|
-
var ContextMenuLabel =
|
|
1514
|
+
var ContextMenuLabel = React39__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1513
1515
|
ContextMenuPrimitive__namespace.Label,
|
|
1514
1516
|
{
|
|
1515
1517
|
ref,
|
|
@@ -1522,7 +1524,7 @@ var ContextMenuLabel = React36__namespace.forwardRef(({ className, inset, ...pro
|
|
|
1522
1524
|
}
|
|
1523
1525
|
));
|
|
1524
1526
|
ContextMenuLabel.displayName = ContextMenuPrimitive__namespace.Label.displayName;
|
|
1525
|
-
var ContextMenuSeparator =
|
|
1527
|
+
var ContextMenuSeparator = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1526
1528
|
ContextMenuPrimitive__namespace.Separator,
|
|
1527
1529
|
{
|
|
1528
1530
|
ref,
|
|
@@ -1561,7 +1563,7 @@ Drawer.displayName = "Drawer";
|
|
|
1561
1563
|
var DrawerTrigger = vaul.Drawer.Trigger;
|
|
1562
1564
|
var DrawerPortal = vaul.Drawer.Portal;
|
|
1563
1565
|
var DrawerClose = vaul.Drawer.Close;
|
|
1564
|
-
var DrawerOverlay =
|
|
1566
|
+
var DrawerOverlay = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1565
1567
|
vaul.Drawer.Overlay,
|
|
1566
1568
|
{
|
|
1567
1569
|
ref,
|
|
@@ -1570,7 +1572,7 @@ var DrawerOverlay = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1570
1572
|
}
|
|
1571
1573
|
));
|
|
1572
1574
|
DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
|
|
1573
|
-
var DrawerContent =
|
|
1575
|
+
var DrawerContent = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { children: [
|
|
1574
1576
|
/* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
|
|
1575
1577
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1576
1578
|
vaul.Drawer.Content,
|
|
@@ -1611,7 +1613,7 @@ var DrawerFooter = ({
|
|
|
1611
1613
|
}
|
|
1612
1614
|
);
|
|
1613
1615
|
DrawerFooter.displayName = "DrawerFooter";
|
|
1614
|
-
var DrawerTitle =
|
|
1616
|
+
var DrawerTitle = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1615
1617
|
vaul.Drawer.Title,
|
|
1616
1618
|
{
|
|
1617
1619
|
ref,
|
|
@@ -1623,7 +1625,7 @@ var DrawerTitle = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1623
1625
|
}
|
|
1624
1626
|
));
|
|
1625
1627
|
DrawerTitle.displayName = vaul.Drawer.Title.displayName;
|
|
1626
|
-
var DrawerDescription =
|
|
1628
|
+
var DrawerDescription = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1627
1629
|
vaul.Drawer.Description,
|
|
1628
1630
|
{
|
|
1629
1631
|
ref,
|
|
@@ -1638,7 +1640,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
1638
1640
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
1639
1641
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
1640
1642
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
1641
|
-
var DropdownMenuSubTrigger =
|
|
1643
|
+
var DropdownMenuSubTrigger = React39__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1642
1644
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
1643
1645
|
{
|
|
1644
1646
|
ref,
|
|
@@ -1655,7 +1657,7 @@ var DropdownMenuSubTrigger = React36__namespace.forwardRef(({ className, inset,
|
|
|
1655
1657
|
}
|
|
1656
1658
|
));
|
|
1657
1659
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
1658
|
-
var DropdownMenuSubContent =
|
|
1660
|
+
var DropdownMenuSubContent = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1659
1661
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
1660
1662
|
{
|
|
1661
1663
|
ref,
|
|
@@ -1667,7 +1669,7 @@ var DropdownMenuSubContent = React36__namespace.forwardRef(({ className, ...prop
|
|
|
1667
1669
|
}
|
|
1668
1670
|
));
|
|
1669
1671
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
1670
|
-
var DropdownMenuContent =
|
|
1672
|
+
var DropdownMenuContent = React39__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1671
1673
|
DropdownMenuPrimitive__namespace.Content,
|
|
1672
1674
|
{
|
|
1673
1675
|
ref,
|
|
@@ -1680,7 +1682,7 @@ var DropdownMenuContent = React36__namespace.forwardRef(({ className, sideOffset
|
|
|
1680
1682
|
}
|
|
1681
1683
|
) }));
|
|
1682
1684
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
1683
|
-
var DropdownMenuItem =
|
|
1685
|
+
var DropdownMenuItem = React39__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1684
1686
|
DropdownMenuPrimitive__namespace.Item,
|
|
1685
1687
|
{
|
|
1686
1688
|
ref,
|
|
@@ -1693,7 +1695,7 @@ var DropdownMenuItem = React36__namespace.forwardRef(({ className, inset, ...pro
|
|
|
1693
1695
|
}
|
|
1694
1696
|
));
|
|
1695
1697
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
1696
|
-
var DropdownMenuCheckboxItem =
|
|
1698
|
+
var DropdownMenuCheckboxItem = React39__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1697
1699
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
1698
1700
|
{
|
|
1699
1701
|
ref,
|
|
@@ -1710,7 +1712,7 @@ var DropdownMenuCheckboxItem = React36__namespace.forwardRef(({ className, child
|
|
|
1710
1712
|
}
|
|
1711
1713
|
));
|
|
1712
1714
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
1713
|
-
var DropdownMenuRadioItem =
|
|
1715
|
+
var DropdownMenuRadioItem = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1714
1716
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
1715
1717
|
{
|
|
1716
1718
|
ref,
|
|
@@ -1726,7 +1728,7 @@ var DropdownMenuRadioItem = React36__namespace.forwardRef(({ className, children
|
|
|
1726
1728
|
}
|
|
1727
1729
|
));
|
|
1728
1730
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
1729
|
-
var DropdownMenuLabel =
|
|
1731
|
+
var DropdownMenuLabel = React39__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1730
1732
|
DropdownMenuPrimitive__namespace.Label,
|
|
1731
1733
|
{
|
|
1732
1734
|
ref,
|
|
@@ -1739,7 +1741,7 @@ var DropdownMenuLabel = React36__namespace.forwardRef(({ className, inset, ...pr
|
|
|
1739
1741
|
}
|
|
1740
1742
|
));
|
|
1741
1743
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
1742
|
-
var DropdownMenuSeparator =
|
|
1744
|
+
var DropdownMenuSeparator = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1743
1745
|
DropdownMenuPrimitive__namespace.Separator,
|
|
1744
1746
|
{
|
|
1745
1747
|
ref,
|
|
@@ -1764,7 +1766,7 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
1764
1766
|
var labelVariants = classVarianceAuthority.cva(
|
|
1765
1767
|
"text-base font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1766
1768
|
);
|
|
1767
|
-
var Label3 =
|
|
1769
|
+
var Label3 = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1768
1770
|
LabelPrimitive__namespace.Root,
|
|
1769
1771
|
{
|
|
1770
1772
|
ref,
|
|
@@ -1774,7 +1776,7 @@ var Label3 = React36__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1774
1776
|
));
|
|
1775
1777
|
Label3.displayName = LabelPrimitive__namespace.Root.displayName;
|
|
1776
1778
|
var Form = reactHookForm.FormProvider;
|
|
1777
|
-
var FormFieldContext =
|
|
1779
|
+
var FormFieldContext = React39__namespace.createContext(
|
|
1778
1780
|
{}
|
|
1779
1781
|
);
|
|
1780
1782
|
var FormField = ({
|
|
@@ -1783,8 +1785,8 @@ var FormField = ({
|
|
|
1783
1785
|
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
|
|
1784
1786
|
};
|
|
1785
1787
|
var useFormField = () => {
|
|
1786
|
-
const fieldContext =
|
|
1787
|
-
const itemContext =
|
|
1788
|
+
const fieldContext = React39__namespace.useContext(FormFieldContext);
|
|
1789
|
+
const itemContext = React39__namespace.useContext(FormItemContext);
|
|
1788
1790
|
const { getFieldState, formState } = reactHookForm.useFormContext();
|
|
1789
1791
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
1790
1792
|
if (!fieldContext) {
|
|
@@ -1800,15 +1802,15 @@ var useFormField = () => {
|
|
|
1800
1802
|
...fieldState
|
|
1801
1803
|
};
|
|
1802
1804
|
};
|
|
1803
|
-
var FormItemContext =
|
|
1805
|
+
var FormItemContext = React39__namespace.createContext(
|
|
1804
1806
|
{}
|
|
1805
1807
|
);
|
|
1806
|
-
var FormItem =
|
|
1807
|
-
const id =
|
|
1808
|
+
var FormItem = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1809
|
+
const id = React39__namespace.useId();
|
|
1808
1810
|
return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
1809
1811
|
});
|
|
1810
1812
|
FormItem.displayName = "FormItem";
|
|
1811
|
-
var FormLabel =
|
|
1813
|
+
var FormLabel = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1812
1814
|
const { error, formItemId } = useFormField();
|
|
1813
1815
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1814
1816
|
Label3,
|
|
@@ -1821,7 +1823,7 @@ var FormLabel = React36__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
1821
1823
|
);
|
|
1822
1824
|
});
|
|
1823
1825
|
FormLabel.displayName = "FormLabel";
|
|
1824
|
-
var FormControl =
|
|
1826
|
+
var FormControl = React39__namespace.forwardRef(({ ...props }, ref) => {
|
|
1825
1827
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
1826
1828
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1827
1829
|
reactSlot.Slot,
|
|
@@ -1835,7 +1837,7 @@ var FormControl = React36__namespace.forwardRef(({ ...props }, ref) => {
|
|
|
1835
1837
|
);
|
|
1836
1838
|
});
|
|
1837
1839
|
FormControl.displayName = "FormControl";
|
|
1838
|
-
var FormDescription =
|
|
1840
|
+
var FormDescription = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
1839
1841
|
const { formDescriptionId } = useFormField();
|
|
1840
1842
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1841
1843
|
"p",
|
|
@@ -1848,7 +1850,7 @@ var FormDescription = React36__namespace.forwardRef(({ className, ...props }, re
|
|
|
1848
1850
|
);
|
|
1849
1851
|
});
|
|
1850
1852
|
FormDescription.displayName = "FormDescription";
|
|
1851
|
-
var FormMessage =
|
|
1853
|
+
var FormMessage = React39__namespace.forwardRef(({ className, children, ...props }, ref) => {
|
|
1852
1854
|
const { error, formMessageId } = useFormField();
|
|
1853
1855
|
const body = error ? String(error?.message) : children;
|
|
1854
1856
|
if (!body) {
|
|
@@ -1867,31 +1869,31 @@ var FormMessage = React36__namespace.forwardRef(({ className, children, ...props
|
|
|
1867
1869
|
});
|
|
1868
1870
|
FormMessage.displayName = "FormMessage";
|
|
1869
1871
|
var glassCardVariants = classVarianceAuthority.cva(
|
|
1870
|
-
"rounded-2xl border backdrop-blur-
|
|
1872
|
+
"rounded-2xl border backdrop-blur-glass transition-all duration-300",
|
|
1871
1873
|
{
|
|
1872
1874
|
variants: {
|
|
1873
1875
|
variant: {
|
|
1874
1876
|
default: [
|
|
1875
|
-
"bg-
|
|
1876
|
-
"dark:bg-white/5 dark:border-white/10 dark:shadow-lg"
|
|
1877
|
+
"bg-glass border-glass-border shadow-glass"
|
|
1877
1878
|
],
|
|
1878
1879
|
elevated: [
|
|
1879
|
-
"bg-
|
|
1880
|
-
|
|
1880
|
+
"bg-glass-elevated border-glass-border shadow-glass-elevated"
|
|
1881
|
+
],
|
|
1882
|
+
subtle: [
|
|
1883
|
+
"bg-glass-subtle border-glass-border-subtle"
|
|
1881
1884
|
],
|
|
1882
1885
|
interactive: [
|
|
1883
|
-
"bg-
|
|
1884
|
-
"hover:bg-
|
|
1885
|
-
"dark:bg-white/5 dark:border-white/10 dark:shadow-lg",
|
|
1886
|
-
"dark:hover:bg-white/10 dark:hover:border-white/20 dark:hover:shadow-[0_8px_32px_rgba(139,92,246,0.15)]"
|
|
1886
|
+
"bg-glass border-glass-border shadow-glass cursor-pointer",
|
|
1887
|
+
"hover:bg-glass-elevated hover:shadow-glass-elevated hover:-translate-y-0.5"
|
|
1887
1888
|
],
|
|
1888
1889
|
hero: [
|
|
1889
|
-
"bg-gradient-to-br from-
|
|
1890
|
-
"dark:from-white/10 dark:via-white/5 dark:to-purple-900/10 dark:border-white/10"
|
|
1890
|
+
"bg-gradient-to-br from-glass-elevated via-glass to-primary/5 border-glass-border shadow-glass-elevated"
|
|
1891
1891
|
],
|
|
1892
1892
|
stat: [
|
|
1893
|
-
"bg-
|
|
1894
|
-
|
|
1893
|
+
"bg-glass-subtle border-glass-border-subtle"
|
|
1894
|
+
],
|
|
1895
|
+
auth: [
|
|
1896
|
+
"bg-glass border-glass-border shadow-glass-elevated backdrop-blur-glass-strong"
|
|
1895
1897
|
]
|
|
1896
1898
|
},
|
|
1897
1899
|
padding: {
|
|
@@ -1907,7 +1909,7 @@ var glassCardVariants = classVarianceAuthority.cva(
|
|
|
1907
1909
|
}
|
|
1908
1910
|
}
|
|
1909
1911
|
);
|
|
1910
|
-
var GlassCard =
|
|
1912
|
+
var GlassCard = React39__namespace.forwardRef(
|
|
1911
1913
|
({ className, variant, padding, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1912
1914
|
"div",
|
|
1913
1915
|
{
|
|
@@ -1918,7 +1920,7 @@ var GlassCard = React36__namespace.forwardRef(
|
|
|
1918
1920
|
)
|
|
1919
1921
|
);
|
|
1920
1922
|
GlassCard.displayName = "GlassCard";
|
|
1921
|
-
var GlassCardHeader =
|
|
1923
|
+
var GlassCardHeader = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1922
1924
|
"div",
|
|
1923
1925
|
{
|
|
1924
1926
|
ref,
|
|
@@ -1927,30 +1929,30 @@ var GlassCardHeader = React36__namespace.forwardRef(({ className, ...props }, re
|
|
|
1927
1929
|
}
|
|
1928
1930
|
));
|
|
1929
1931
|
GlassCardHeader.displayName = "GlassCardHeader";
|
|
1930
|
-
var GlassCardTitle =
|
|
1932
|
+
var GlassCardTitle = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1931
1933
|
"h3",
|
|
1932
1934
|
{
|
|
1933
1935
|
ref,
|
|
1934
1936
|
className: cn(
|
|
1935
|
-
"text-lg font-semibold leading-none tracking-tight",
|
|
1937
|
+
"text-lg font-semibold leading-none tracking-tight text-glass-foreground",
|
|
1936
1938
|
className
|
|
1937
1939
|
),
|
|
1938
1940
|
...props
|
|
1939
1941
|
}
|
|
1940
1942
|
));
|
|
1941
1943
|
GlassCardTitle.displayName = "GlassCardTitle";
|
|
1942
|
-
var GlassCardDescription =
|
|
1944
|
+
var GlassCardDescription = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1943
1945
|
"p",
|
|
1944
1946
|
{
|
|
1945
1947
|
ref,
|
|
1946
|
-
className: cn("text-sm text-
|
|
1948
|
+
className: cn("text-sm text-glass-foreground-muted", className),
|
|
1947
1949
|
...props
|
|
1948
1950
|
}
|
|
1949
1951
|
));
|
|
1950
1952
|
GlassCardDescription.displayName = "GlassCardDescription";
|
|
1951
|
-
var GlassCardContent =
|
|
1953
|
+
var GlassCardContent = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1952
1954
|
GlassCardContent.displayName = "GlassCardContent";
|
|
1953
|
-
var GlassCardFooter =
|
|
1955
|
+
var GlassCardFooter = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1954
1956
|
"div",
|
|
1955
1957
|
{
|
|
1956
1958
|
ref,
|
|
@@ -1959,9 +1961,162 @@ var GlassCardFooter = React36__namespace.forwardRef(({ className, ...props }, re
|
|
|
1959
1961
|
}
|
|
1960
1962
|
));
|
|
1961
1963
|
GlassCardFooter.displayName = "GlassCardFooter";
|
|
1964
|
+
var glassHeaderVariants = classVarianceAuthority.cva(
|
|
1965
|
+
"rounded-2xl border border-glass-border backdrop-blur-glass shadow-glass transition-all duration-300",
|
|
1966
|
+
{
|
|
1967
|
+
variants: {
|
|
1968
|
+
variant: {
|
|
1969
|
+
default: "bg-glass",
|
|
1970
|
+
elevated: "bg-glass-elevated shadow-glass-elevated",
|
|
1971
|
+
transparent: "bg-transparent border-transparent shadow-none"
|
|
1972
|
+
},
|
|
1973
|
+
sticky: {
|
|
1974
|
+
true: "sticky top-0 z-50",
|
|
1975
|
+
false: ""
|
|
1976
|
+
},
|
|
1977
|
+
padding: {
|
|
1978
|
+
none: "",
|
|
1979
|
+
sm: "px-4 py-2",
|
|
1980
|
+
default: "px-4 py-3",
|
|
1981
|
+
lg: "px-6 py-4"
|
|
1982
|
+
}
|
|
1983
|
+
},
|
|
1984
|
+
defaultVariants: {
|
|
1985
|
+
variant: "default",
|
|
1986
|
+
sticky: false,
|
|
1987
|
+
padding: "default"
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
);
|
|
1991
|
+
var GlassHeader = React39__namespace.forwardRef(
|
|
1992
|
+
({ className, variant, sticky, padding, as: Component = "header", ...props }, ref) => {
|
|
1993
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1994
|
+
Component,
|
|
1995
|
+
{
|
|
1996
|
+
ref,
|
|
1997
|
+
className: cn(glassHeaderVariants({ variant, sticky, padding, className })),
|
|
1998
|
+
...props
|
|
1999
|
+
}
|
|
2000
|
+
);
|
|
2001
|
+
}
|
|
2002
|
+
);
|
|
2003
|
+
GlassHeader.displayName = "GlassHeader";
|
|
2004
|
+
var glassOverlayVariants = classVarianceAuthority.cva(
|
|
2005
|
+
"fixed inset-0 transition-all duration-300",
|
|
2006
|
+
{
|
|
2007
|
+
variants: {
|
|
2008
|
+
variant: {
|
|
2009
|
+
subtle: "bg-black/20",
|
|
2010
|
+
default: "bg-black/40",
|
|
2011
|
+
dark: "bg-black/60",
|
|
2012
|
+
light: "bg-white/40"
|
|
2013
|
+
},
|
|
2014
|
+
blur: {
|
|
2015
|
+
none: "",
|
|
2016
|
+
sm: "backdrop-blur-sm",
|
|
2017
|
+
default: "backdrop-blur-glass",
|
|
2018
|
+
strong: "backdrop-blur-glass-strong"
|
|
2019
|
+
}
|
|
2020
|
+
},
|
|
2021
|
+
defaultVariants: {
|
|
2022
|
+
variant: "default",
|
|
2023
|
+
blur: "default"
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
);
|
|
2027
|
+
var GlassOverlay = React39__namespace.forwardRef(
|
|
2028
|
+
({ className, variant, blur, open = true, onClose, ...props }, ref) => {
|
|
2029
|
+
if (!open) return null;
|
|
2030
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2031
|
+
"div",
|
|
2032
|
+
{
|
|
2033
|
+
ref,
|
|
2034
|
+
role: "presentation",
|
|
2035
|
+
"aria-hidden": "true",
|
|
2036
|
+
onClick: onClose,
|
|
2037
|
+
className: cn(glassOverlayVariants({ variant, blur, className })),
|
|
2038
|
+
...props
|
|
2039
|
+
}
|
|
2040
|
+
);
|
|
2041
|
+
}
|
|
2042
|
+
);
|
|
2043
|
+
GlassOverlay.displayName = "GlassOverlay";
|
|
2044
|
+
var glassTabsContainerVariants = classVarianceAuthority.cva(
|
|
2045
|
+
"flex gap-1 rounded-lg bg-glass-subtle p-1 backdrop-blur-glass",
|
|
2046
|
+
{
|
|
2047
|
+
variants: {
|
|
2048
|
+
size: {
|
|
2049
|
+
sm: "p-0.5",
|
|
2050
|
+
default: "p-1",
|
|
2051
|
+
lg: "p-1.5"
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2054
|
+
defaultVariants: {
|
|
2055
|
+
size: "default"
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
);
|
|
2059
|
+
var glassTabVariants = classVarianceAuthority.cva(
|
|
2060
|
+
"flex items-center justify-center rounded-md font-medium transition-all",
|
|
2061
|
+
{
|
|
2062
|
+
variants: {
|
|
2063
|
+
size: {
|
|
2064
|
+
sm: "px-3 py-1.5 text-xs",
|
|
2065
|
+
default: "px-4 py-2.5 text-sm",
|
|
2066
|
+
lg: "px-5 py-3 text-base"
|
|
2067
|
+
},
|
|
2068
|
+
state: {
|
|
2069
|
+
active: "bg-glass text-glass-foreground shadow-sm",
|
|
2070
|
+
inactive: "text-glass-foreground-muted hover:text-glass-foreground"
|
|
2071
|
+
}
|
|
2072
|
+
},
|
|
2073
|
+
defaultVariants: {
|
|
2074
|
+
size: "default",
|
|
2075
|
+
state: "inactive"
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
);
|
|
2079
|
+
var GlassTabs = React39__namespace.forwardRef(
|
|
2080
|
+
({ className, tabs, activeTab, onTabChange, size, ...props }, ref) => {
|
|
2081
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2082
|
+
"div",
|
|
2083
|
+
{
|
|
2084
|
+
ref,
|
|
2085
|
+
role: "tablist",
|
|
2086
|
+
className: cn(glassTabsContainerVariants({ size, className })),
|
|
2087
|
+
...props,
|
|
2088
|
+
children: tabs.map((tab) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2089
|
+
"button",
|
|
2090
|
+
{
|
|
2091
|
+
role: "tab",
|
|
2092
|
+
type: "button",
|
|
2093
|
+
"aria-selected": activeTab === tab.id,
|
|
2094
|
+
"aria-disabled": tab.disabled,
|
|
2095
|
+
disabled: tab.disabled,
|
|
2096
|
+
onClick: () => !tab.disabled && onTabChange(tab.id),
|
|
2097
|
+
className: cn(
|
|
2098
|
+
glassTabVariants({
|
|
2099
|
+
size,
|
|
2100
|
+
state: activeTab === tab.id ? "active" : "inactive"
|
|
2101
|
+
}),
|
|
2102
|
+
"flex-1",
|
|
2103
|
+
tab.disabled && "cursor-not-allowed opacity-50"
|
|
2104
|
+
),
|
|
2105
|
+
children: [
|
|
2106
|
+
tab.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mr-2", children: tab.icon }),
|
|
2107
|
+
tab.label
|
|
2108
|
+
]
|
|
2109
|
+
},
|
|
2110
|
+
tab.id
|
|
2111
|
+
))
|
|
2112
|
+
}
|
|
2113
|
+
);
|
|
2114
|
+
}
|
|
2115
|
+
);
|
|
2116
|
+
GlassTabs.displayName = "GlassTabs";
|
|
1962
2117
|
var HoverCard = HoverCardPrimitive__namespace.Root;
|
|
1963
2118
|
var HoverCardTrigger = HoverCardPrimitive__namespace.Trigger;
|
|
1964
|
-
var HoverCardContent =
|
|
2119
|
+
var HoverCardContent = React39__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1965
2120
|
HoverCardPrimitive__namespace.Content,
|
|
1966
2121
|
{
|
|
1967
2122
|
ref,
|
|
@@ -1975,16 +2130,35 @@ var HoverCardContent = React36__namespace.forwardRef(({ className, align = "cent
|
|
|
1975
2130
|
}
|
|
1976
2131
|
));
|
|
1977
2132
|
HoverCardContent.displayName = HoverCardPrimitive__namespace.Content.displayName;
|
|
1978
|
-
var
|
|
1979
|
-
|
|
2133
|
+
var inputVariants = classVarianceAuthority.cva(
|
|
2134
|
+
"flex h-10 w-full rounded-md px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-base file:font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
2135
|
+
{
|
|
2136
|
+
variants: {
|
|
2137
|
+
variant: {
|
|
2138
|
+
default: [
|
|
2139
|
+
"border border-input bg-background text-foreground",
|
|
2140
|
+
"file:text-foreground placeholder:text-muted-foreground",
|
|
2141
|
+
"focus-visible:ring-ring"
|
|
2142
|
+
],
|
|
2143
|
+
glass: [
|
|
2144
|
+
"border border-white/10 bg-white/5 text-white",
|
|
2145
|
+
"placeholder:text-slate-500 focus:border-primary",
|
|
2146
|
+
"focus-visible:ring-0 focus-visible:ring-offset-0"
|
|
2147
|
+
]
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2150
|
+
defaultVariants: {
|
|
2151
|
+
variant: "default"
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
);
|
|
2155
|
+
var Input = React39__namespace.forwardRef(
|
|
2156
|
+
({ className, type, variant, ...props }, ref) => {
|
|
1980
2157
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1981
2158
|
"input",
|
|
1982
2159
|
{
|
|
1983
2160
|
type,
|
|
1984
|
-
className: cn(
|
|
1985
|
-
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-base file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1986
|
-
className
|
|
1987
|
-
),
|
|
2161
|
+
className: cn(inputVariants({ variant, className })),
|
|
1988
2162
|
ref,
|
|
1989
2163
|
...props
|
|
1990
2164
|
}
|
|
@@ -1992,7 +2166,7 @@ var Input = React36__namespace.forwardRef(
|
|
|
1992
2166
|
}
|
|
1993
2167
|
);
|
|
1994
2168
|
Input.displayName = "Input";
|
|
1995
|
-
var InputOTP =
|
|
2169
|
+
var InputOTP = React39__namespace.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1996
2170
|
inputOtp.OTPInput,
|
|
1997
2171
|
{
|
|
1998
2172
|
ref,
|
|
@@ -2005,10 +2179,10 @@ var InputOTP = React36__namespace.forwardRef(({ className, containerClassName, .
|
|
|
2005
2179
|
}
|
|
2006
2180
|
));
|
|
2007
2181
|
InputOTP.displayName = "InputOTP";
|
|
2008
|
-
var InputOTPGroup =
|
|
2182
|
+
var InputOTPGroup = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
2009
2183
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
2010
|
-
var InputOTPSlot =
|
|
2011
|
-
const inputOTPContext =
|
|
2184
|
+
var InputOTPSlot = React39__namespace.forwardRef(({ index, className, ...props }, ref) => {
|
|
2185
|
+
const inputOTPContext = React39__namespace.useContext(inputOtp.OTPInputContext);
|
|
2012
2186
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
2013
2187
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2014
2188
|
"div",
|
|
@@ -2028,7 +2202,7 @@ var InputOTPSlot = React36__namespace.forwardRef(({ index, className, ...props }
|
|
|
2028
2202
|
);
|
|
2029
2203
|
});
|
|
2030
2204
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
2031
|
-
var InputOTPSeparator =
|
|
2205
|
+
var InputOTPSeparator = React39__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Dot, {}) }));
|
|
2032
2206
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
2033
2207
|
var sizes = {
|
|
2034
2208
|
sm: { height: 24 },
|
|
@@ -2063,7 +2237,7 @@ var MenubarGroup = MenubarPrimitive__namespace.Group;
|
|
|
2063
2237
|
var MenubarPortal = MenubarPrimitive__namespace.Portal;
|
|
2064
2238
|
var MenubarSub = MenubarPrimitive__namespace.Sub;
|
|
2065
2239
|
var MenubarRadioGroup = MenubarPrimitive__namespace.RadioGroup;
|
|
2066
|
-
var Menubar =
|
|
2240
|
+
var Menubar = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2067
2241
|
MenubarPrimitive__namespace.Root,
|
|
2068
2242
|
{
|
|
2069
2243
|
ref,
|
|
@@ -2075,7 +2249,7 @@ var Menubar = React36__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2075
2249
|
}
|
|
2076
2250
|
));
|
|
2077
2251
|
Menubar.displayName = MenubarPrimitive__namespace.Root.displayName;
|
|
2078
|
-
var MenubarTrigger =
|
|
2252
|
+
var MenubarTrigger = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2079
2253
|
MenubarPrimitive__namespace.Trigger,
|
|
2080
2254
|
{
|
|
2081
2255
|
ref,
|
|
@@ -2087,7 +2261,7 @@ var MenubarTrigger = React36__namespace.forwardRef(({ className, ...props }, ref
|
|
|
2087
2261
|
}
|
|
2088
2262
|
));
|
|
2089
2263
|
MenubarTrigger.displayName = MenubarPrimitive__namespace.Trigger.displayName;
|
|
2090
|
-
var MenubarSubTrigger =
|
|
2264
|
+
var MenubarSubTrigger = React39__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2091
2265
|
MenubarPrimitive__namespace.SubTrigger,
|
|
2092
2266
|
{
|
|
2093
2267
|
ref,
|
|
@@ -2104,7 +2278,7 @@ var MenubarSubTrigger = React36__namespace.forwardRef(({ className, inset, child
|
|
|
2104
2278
|
}
|
|
2105
2279
|
));
|
|
2106
2280
|
MenubarSubTrigger.displayName = MenubarPrimitive__namespace.SubTrigger.displayName;
|
|
2107
|
-
var MenubarSubContent =
|
|
2281
|
+
var MenubarSubContent = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2108
2282
|
MenubarPrimitive__namespace.SubContent,
|
|
2109
2283
|
{
|
|
2110
2284
|
ref,
|
|
@@ -2116,7 +2290,7 @@ var MenubarSubContent = React36__namespace.forwardRef(({ className, ...props },
|
|
|
2116
2290
|
}
|
|
2117
2291
|
));
|
|
2118
2292
|
MenubarSubContent.displayName = MenubarPrimitive__namespace.SubContent.displayName;
|
|
2119
|
-
var MenubarContent =
|
|
2293
|
+
var MenubarContent = React39__namespace.forwardRef(
|
|
2120
2294
|
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2121
2295
|
MenubarPrimitive__namespace.Content,
|
|
2122
2296
|
{
|
|
@@ -2133,7 +2307,7 @@ var MenubarContent = React36__namespace.forwardRef(
|
|
|
2133
2307
|
) })
|
|
2134
2308
|
);
|
|
2135
2309
|
MenubarContent.displayName = MenubarPrimitive__namespace.Content.displayName;
|
|
2136
|
-
var MenubarItem =
|
|
2310
|
+
var MenubarItem = React39__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2137
2311
|
MenubarPrimitive__namespace.Item,
|
|
2138
2312
|
{
|
|
2139
2313
|
ref,
|
|
@@ -2146,7 +2320,7 @@ var MenubarItem = React36__namespace.forwardRef(({ className, inset, ...props },
|
|
|
2146
2320
|
}
|
|
2147
2321
|
));
|
|
2148
2322
|
MenubarItem.displayName = MenubarPrimitive__namespace.Item.displayName;
|
|
2149
|
-
var MenubarCheckboxItem =
|
|
2323
|
+
var MenubarCheckboxItem = React39__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2150
2324
|
MenubarPrimitive__namespace.CheckboxItem,
|
|
2151
2325
|
{
|
|
2152
2326
|
ref,
|
|
@@ -2163,7 +2337,7 @@ var MenubarCheckboxItem = React36__namespace.forwardRef(({ className, children,
|
|
|
2163
2337
|
}
|
|
2164
2338
|
));
|
|
2165
2339
|
MenubarCheckboxItem.displayName = MenubarPrimitive__namespace.CheckboxItem.displayName;
|
|
2166
|
-
var MenubarRadioItem =
|
|
2340
|
+
var MenubarRadioItem = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2167
2341
|
MenubarPrimitive__namespace.RadioItem,
|
|
2168
2342
|
{
|
|
2169
2343
|
ref,
|
|
@@ -2179,7 +2353,7 @@ var MenubarRadioItem = React36__namespace.forwardRef(({ className, children, ...
|
|
|
2179
2353
|
}
|
|
2180
2354
|
));
|
|
2181
2355
|
MenubarRadioItem.displayName = MenubarPrimitive__namespace.RadioItem.displayName;
|
|
2182
|
-
var MenubarLabel =
|
|
2356
|
+
var MenubarLabel = React39__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2183
2357
|
MenubarPrimitive__namespace.Label,
|
|
2184
2358
|
{
|
|
2185
2359
|
ref,
|
|
@@ -2192,7 +2366,7 @@ var MenubarLabel = React36__namespace.forwardRef(({ className, inset, ...props }
|
|
|
2192
2366
|
}
|
|
2193
2367
|
));
|
|
2194
2368
|
MenubarLabel.displayName = MenubarPrimitive__namespace.Label.displayName;
|
|
2195
|
-
var MenubarSeparator =
|
|
2369
|
+
var MenubarSeparator = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2196
2370
|
MenubarPrimitive__namespace.Separator,
|
|
2197
2371
|
{
|
|
2198
2372
|
ref,
|
|
@@ -2217,7 +2391,7 @@ var MenubarShortcut = ({
|
|
|
2217
2391
|
);
|
|
2218
2392
|
};
|
|
2219
2393
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
2220
|
-
var NavigationMenu =
|
|
2394
|
+
var NavigationMenu = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2221
2395
|
NavigationMenuPrimitive__namespace.Root,
|
|
2222
2396
|
{
|
|
2223
2397
|
ref,
|
|
@@ -2233,7 +2407,7 @@ var NavigationMenu = React36__namespace.forwardRef(({ className, children, ...pr
|
|
|
2233
2407
|
}
|
|
2234
2408
|
));
|
|
2235
2409
|
NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
2236
|
-
var NavigationMenuList =
|
|
2410
|
+
var NavigationMenuList = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2237
2411
|
NavigationMenuPrimitive__namespace.List,
|
|
2238
2412
|
{
|
|
2239
2413
|
ref,
|
|
@@ -2249,7 +2423,7 @@ var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
|
2249
2423
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
2250
2424
|
"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"
|
|
2251
2425
|
);
|
|
2252
|
-
var NavigationMenuTrigger =
|
|
2426
|
+
var NavigationMenuTrigger = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2253
2427
|
NavigationMenuPrimitive__namespace.Trigger,
|
|
2254
2428
|
{
|
|
2255
2429
|
ref,
|
|
@@ -2269,7 +2443,7 @@ var NavigationMenuTrigger = React36__namespace.forwardRef(({ className, children
|
|
|
2269
2443
|
}
|
|
2270
2444
|
));
|
|
2271
2445
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
2272
|
-
var NavigationMenuContent =
|
|
2446
|
+
var NavigationMenuContent = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2273
2447
|
NavigationMenuPrimitive__namespace.Content,
|
|
2274
2448
|
{
|
|
2275
2449
|
ref,
|
|
@@ -2282,7 +2456,7 @@ var NavigationMenuContent = React36__namespace.forwardRef(({ className, ...props
|
|
|
2282
2456
|
));
|
|
2283
2457
|
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
2284
2458
|
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
2285
|
-
var NavigationMenuViewport =
|
|
2459
|
+
var NavigationMenuViewport = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2286
2460
|
NavigationMenuPrimitive__namespace.Viewport,
|
|
2287
2461
|
{
|
|
2288
2462
|
className: cn(
|
|
@@ -2294,7 +2468,7 @@ var NavigationMenuViewport = React36__namespace.forwardRef(({ className, ...prop
|
|
|
2294
2468
|
}
|
|
2295
2469
|
) }));
|
|
2296
2470
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
2297
|
-
var NavigationMenuIndicator =
|
|
2471
|
+
var NavigationMenuIndicator = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2298
2472
|
NavigationMenuPrimitive__namespace.Indicator,
|
|
2299
2473
|
{
|
|
2300
2474
|
ref,
|
|
@@ -2380,7 +2554,7 @@ function Pagination({
|
|
|
2380
2554
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4" })
|
|
2381
2555
|
}
|
|
2382
2556
|
),
|
|
2383
|
-
getVisiblePages().map((page, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2557
|
+
getVisiblePages().map((page, index) => /* @__PURE__ */ jsxRuntime.jsx(React39__namespace.default.Fragment, { children: page === "ellipsis" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-9 w-9 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "h-4 w-4 text-gray-400" }) }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2384
2558
|
Button,
|
|
2385
2559
|
{
|
|
2386
2560
|
variant: currentPage === page ? "default" : "outline",
|
|
@@ -2406,7 +2580,7 @@ function Pagination({
|
|
|
2406
2580
|
}
|
|
2407
2581
|
var Popover = PopoverPrimitive__namespace.Root;
|
|
2408
2582
|
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
2409
|
-
var PopoverContent =
|
|
2583
|
+
var PopoverContent = React39__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2410
2584
|
PopoverPrimitive__namespace.Content,
|
|
2411
2585
|
{
|
|
2412
2586
|
ref,
|
|
@@ -2420,7 +2594,7 @@ var PopoverContent = React36__namespace.forwardRef(({ className, align = "center
|
|
|
2420
2594
|
}
|
|
2421
2595
|
) }));
|
|
2422
2596
|
PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
|
|
2423
|
-
var Progress =
|
|
2597
|
+
var Progress = React39__namespace.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2424
2598
|
ProgressPrimitive__namespace.Root,
|
|
2425
2599
|
{
|
|
2426
2600
|
ref,
|
|
@@ -2439,7 +2613,7 @@ var Progress = React36__namespace.forwardRef(({ className, value, ...props }, re
|
|
|
2439
2613
|
}
|
|
2440
2614
|
));
|
|
2441
2615
|
Progress.displayName = ProgressPrimitive__namespace.Root.displayName;
|
|
2442
|
-
var RadioGroup4 =
|
|
2616
|
+
var RadioGroup4 = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
2443
2617
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2444
2618
|
RadioGroupPrimitive__namespace.Root,
|
|
2445
2619
|
{
|
|
@@ -2450,7 +2624,7 @@ var RadioGroup4 = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2450
2624
|
);
|
|
2451
2625
|
});
|
|
2452
2626
|
RadioGroup4.displayName = RadioGroupPrimitive__namespace.Root.displayName;
|
|
2453
|
-
var RadioGroupItem =
|
|
2627
|
+
var RadioGroupItem = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
2454
2628
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2455
2629
|
RadioGroupPrimitive__namespace.Item,
|
|
2456
2630
|
{
|
|
@@ -2494,7 +2668,7 @@ var ResizableHandle = ({
|
|
|
2494
2668
|
children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
2495
2669
|
}
|
|
2496
2670
|
);
|
|
2497
|
-
var ScrollArea =
|
|
2671
|
+
var ScrollArea = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2498
2672
|
ScrollAreaPrimitive__namespace.Root,
|
|
2499
2673
|
{
|
|
2500
2674
|
ref,
|
|
@@ -2508,7 +2682,7 @@ var ScrollArea = React36__namespace.forwardRef(({ className, children, ...props
|
|
|
2508
2682
|
}
|
|
2509
2683
|
));
|
|
2510
2684
|
ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
|
|
2511
|
-
var ScrollBar =
|
|
2685
|
+
var ScrollBar = React39__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2512
2686
|
ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
|
|
2513
2687
|
{
|
|
2514
2688
|
ref,
|
|
@@ -2527,7 +2701,7 @@ ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displ
|
|
|
2527
2701
|
var Select = SelectPrimitive__namespace.Root;
|
|
2528
2702
|
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
2529
2703
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
2530
|
-
var SelectTrigger =
|
|
2704
|
+
var SelectTrigger = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2531
2705
|
SelectPrimitive__namespace.Trigger,
|
|
2532
2706
|
{
|
|
2533
2707
|
ref,
|
|
@@ -2543,7 +2717,7 @@ var SelectTrigger = React36__namespace.forwardRef(({ className, children, ...pro
|
|
|
2543
2717
|
}
|
|
2544
2718
|
));
|
|
2545
2719
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
2546
|
-
var SelectScrollUpButton =
|
|
2720
|
+
var SelectScrollUpButton = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2547
2721
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
2548
2722
|
{
|
|
2549
2723
|
ref,
|
|
@@ -2556,7 +2730,7 @@ var SelectScrollUpButton = React36__namespace.forwardRef(({ className, ...props
|
|
|
2556
2730
|
}
|
|
2557
2731
|
));
|
|
2558
2732
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
2559
|
-
var SelectScrollDownButton =
|
|
2733
|
+
var SelectScrollDownButton = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2560
2734
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
2561
2735
|
{
|
|
2562
2736
|
ref,
|
|
@@ -2569,7 +2743,7 @@ var SelectScrollDownButton = React36__namespace.forwardRef(({ className, ...prop
|
|
|
2569
2743
|
}
|
|
2570
2744
|
));
|
|
2571
2745
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
2572
|
-
var SelectContent =
|
|
2746
|
+
var SelectContent = React39__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2573
2747
|
SelectPrimitive__namespace.Content,
|
|
2574
2748
|
{
|
|
2575
2749
|
ref,
|
|
@@ -2597,7 +2771,7 @@ var SelectContent = React36__namespace.forwardRef(({ className, children, positi
|
|
|
2597
2771
|
}
|
|
2598
2772
|
) }));
|
|
2599
2773
|
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
2600
|
-
var SelectLabel =
|
|
2774
|
+
var SelectLabel = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2601
2775
|
SelectPrimitive__namespace.Label,
|
|
2602
2776
|
{
|
|
2603
2777
|
ref,
|
|
@@ -2606,7 +2780,7 @@ var SelectLabel = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2606
2780
|
}
|
|
2607
2781
|
));
|
|
2608
2782
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
2609
|
-
var SelectItem =
|
|
2783
|
+
var SelectItem = React39__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2610
2784
|
SelectPrimitive__namespace.Item,
|
|
2611
2785
|
{
|
|
2612
2786
|
ref,
|
|
@@ -2622,7 +2796,7 @@ var SelectItem = React36__namespace.forwardRef(({ className, children, ...props
|
|
|
2622
2796
|
}
|
|
2623
2797
|
));
|
|
2624
2798
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
2625
|
-
var SelectSeparator =
|
|
2799
|
+
var SelectSeparator = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2626
2800
|
SelectPrimitive__namespace.Separator,
|
|
2627
2801
|
{
|
|
2628
2802
|
ref,
|
|
@@ -2631,15 +2805,26 @@ var SelectSeparator = React36__namespace.forwardRef(({ className, ...props }, re
|
|
|
2631
2805
|
}
|
|
2632
2806
|
));
|
|
2633
2807
|
SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
|
|
2634
|
-
var
|
|
2635
|
-
|
|
2808
|
+
var separatorVariants = classVarianceAuthority.cva("shrink-0", {
|
|
2809
|
+
variants: {
|
|
2810
|
+
variant: {
|
|
2811
|
+
default: "bg-border",
|
|
2812
|
+
glass: "bg-glass-border"
|
|
2813
|
+
}
|
|
2814
|
+
},
|
|
2815
|
+
defaultVariants: {
|
|
2816
|
+
variant: "default"
|
|
2817
|
+
}
|
|
2818
|
+
});
|
|
2819
|
+
var Separator5 = React39__namespace.forwardRef(
|
|
2820
|
+
({ className, orientation = "horizontal", variant, decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2636
2821
|
SeparatorPrimitive__namespace.Root,
|
|
2637
2822
|
{
|
|
2638
2823
|
ref,
|
|
2639
2824
|
decorative,
|
|
2640
2825
|
orientation,
|
|
2641
2826
|
className: cn(
|
|
2642
|
-
|
|
2827
|
+
separatorVariants({ variant }),
|
|
2643
2828
|
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
2644
2829
|
className
|
|
2645
2830
|
),
|
|
@@ -2652,7 +2837,7 @@ var Sheet = DialogPrimitive__namespace.Root;
|
|
|
2652
2837
|
var SheetTrigger = DialogPrimitive__namespace.Trigger;
|
|
2653
2838
|
var SheetClose = DialogPrimitive__namespace.Close;
|
|
2654
2839
|
var SheetPortal = DialogPrimitive__namespace.Portal;
|
|
2655
|
-
var SheetOverlay =
|
|
2840
|
+
var SheetOverlay = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2656
2841
|
DialogPrimitive__namespace.Overlay,
|
|
2657
2842
|
{
|
|
2658
2843
|
className: cn(
|
|
@@ -2680,7 +2865,7 @@ var sheetVariants = classVarianceAuthority.cva(
|
|
|
2680
2865
|
}
|
|
2681
2866
|
}
|
|
2682
2867
|
);
|
|
2683
|
-
var SheetContent =
|
|
2868
|
+
var SheetContent = React39__namespace.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
2684
2869
|
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
2685
2870
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2686
2871
|
DialogPrimitive__namespace.Content,
|
|
@@ -2733,7 +2918,7 @@ var SheetFooter = ({
|
|
|
2733
2918
|
}
|
|
2734
2919
|
);
|
|
2735
2920
|
SheetFooter.displayName = "SheetFooter";
|
|
2736
|
-
var SheetTitle =
|
|
2921
|
+
var SheetTitle = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2737
2922
|
DialogPrimitive__namespace.Title,
|
|
2738
2923
|
{
|
|
2739
2924
|
ref,
|
|
@@ -2742,7 +2927,7 @@ var SheetTitle = React36__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2742
2927
|
}
|
|
2743
2928
|
));
|
|
2744
2929
|
SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
2745
|
-
var SheetDescription =
|
|
2930
|
+
var SheetDescription = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2746
2931
|
DialogPrimitive__namespace.Description,
|
|
2747
2932
|
{
|
|
2748
2933
|
ref,
|
|
@@ -2763,10 +2948,55 @@ function Skeleton({
|
|
|
2763
2948
|
}
|
|
2764
2949
|
);
|
|
2765
2950
|
}
|
|
2766
|
-
var TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
2767
|
-
|
|
2768
|
-
var
|
|
2769
|
-
var
|
|
2951
|
+
var TooltipProvider = React39__namespace.forwardRef(({ delayDuration = 0, ...props }, _ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Provider, { delayDuration, ...props }));
|
|
2952
|
+
TooltipProvider.displayName = "TooltipProvider";
|
|
2953
|
+
var TooltipContext = React39__namespace.createContext(null);
|
|
2954
|
+
var Tooltip2 = ({ children, open, onOpenChange, ...props }) => {
|
|
2955
|
+
const [clickedOpen, setClickedOpen] = React39__namespace.useState(false);
|
|
2956
|
+
const isControlled = open !== void 0;
|
|
2957
|
+
const isOpen = isControlled ? open : clickedOpen || void 0;
|
|
2958
|
+
const handleOpenChange = (newOpen) => {
|
|
2959
|
+
if (clickedOpen && !newOpen) {
|
|
2960
|
+
return;
|
|
2961
|
+
}
|
|
2962
|
+
onOpenChange?.(newOpen);
|
|
2963
|
+
};
|
|
2964
|
+
React39__namespace.useEffect(() => {
|
|
2965
|
+
if (!clickedOpen) return;
|
|
2966
|
+
const handleClickOutside = () => {
|
|
2967
|
+
setClickedOpen(false);
|
|
2968
|
+
};
|
|
2969
|
+
const timeoutId = setTimeout(() => {
|
|
2970
|
+
document.addEventListener("click", handleClickOutside);
|
|
2971
|
+
}, 0);
|
|
2972
|
+
return () => {
|
|
2973
|
+
clearTimeout(timeoutId);
|
|
2974
|
+
document.removeEventListener("click", handleClickOutside);
|
|
2975
|
+
};
|
|
2976
|
+
}, [clickedOpen]);
|
|
2977
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TooltipContext.Provider, { value: { clickedOpen, setClickedOpen }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2978
|
+
TooltipPrimitive__namespace.Root,
|
|
2979
|
+
{
|
|
2980
|
+
open: isOpen,
|
|
2981
|
+
onOpenChange: handleOpenChange,
|
|
2982
|
+
...props,
|
|
2983
|
+
children
|
|
2984
|
+
}
|
|
2985
|
+
) });
|
|
2986
|
+
};
|
|
2987
|
+
var TooltipTrigger = React39__namespace.forwardRef(({ onClick, ...props }, ref) => {
|
|
2988
|
+
const context = React39__namespace.useContext(TooltipContext);
|
|
2989
|
+
const handleClick = (e) => {
|
|
2990
|
+
if (context) {
|
|
2991
|
+
e.stopPropagation();
|
|
2992
|
+
context.setClickedOpen((prev) => !prev);
|
|
2993
|
+
}
|
|
2994
|
+
onClick?.(e);
|
|
2995
|
+
};
|
|
2996
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Trigger, { ref, onClick: handleClick, ...props });
|
|
2997
|
+
});
|
|
2998
|
+
TooltipTrigger.displayName = "TooltipTrigger";
|
|
2999
|
+
var TooltipContent = React39__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2770
3000
|
TooltipPrimitive__namespace.Content,
|
|
2771
3001
|
{
|
|
2772
3002
|
ref,
|
|
@@ -2785,15 +3015,15 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
2785
3015
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2786
3016
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2787
3017
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2788
|
-
var SidebarContext =
|
|
3018
|
+
var SidebarContext = React39__namespace.createContext(null);
|
|
2789
3019
|
function useSidebar() {
|
|
2790
|
-
const context =
|
|
3020
|
+
const context = React39__namespace.useContext(SidebarContext);
|
|
2791
3021
|
if (!context) {
|
|
2792
3022
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2793
3023
|
}
|
|
2794
3024
|
return context;
|
|
2795
3025
|
}
|
|
2796
|
-
var SidebarProvider =
|
|
3026
|
+
var SidebarProvider = React39__namespace.forwardRef(
|
|
2797
3027
|
({
|
|
2798
3028
|
defaultOpen = true,
|
|
2799
3029
|
open: openProp,
|
|
@@ -2804,10 +3034,10 @@ var SidebarProvider = React36__namespace.forwardRef(
|
|
|
2804
3034
|
...props
|
|
2805
3035
|
}, ref) => {
|
|
2806
3036
|
const isMobile = useIsMobile();
|
|
2807
|
-
const [openMobile, setOpenMobile] =
|
|
2808
|
-
const [_open, _setOpen] =
|
|
3037
|
+
const [openMobile, setOpenMobile] = React39__namespace.useState(false);
|
|
3038
|
+
const [_open, _setOpen] = React39__namespace.useState(defaultOpen);
|
|
2809
3039
|
const open = openProp ?? _open;
|
|
2810
|
-
const setOpen =
|
|
3040
|
+
const setOpen = React39__namespace.useCallback(
|
|
2811
3041
|
(value) => {
|
|
2812
3042
|
if (setOpenProp) {
|
|
2813
3043
|
return setOpenProp?.(
|
|
@@ -2819,10 +3049,10 @@ var SidebarProvider = React36__namespace.forwardRef(
|
|
|
2819
3049
|
},
|
|
2820
3050
|
[setOpenProp, open]
|
|
2821
3051
|
);
|
|
2822
|
-
const toggleSidebar =
|
|
3052
|
+
const toggleSidebar = React39__namespace.useCallback(() => {
|
|
2823
3053
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2824
3054
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2825
|
-
|
|
3055
|
+
React39__namespace.useEffect(() => {
|
|
2826
3056
|
const handleKeyDown = (event) => {
|
|
2827
3057
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2828
3058
|
event.preventDefault();
|
|
@@ -2833,7 +3063,7 @@ var SidebarProvider = React36__namespace.forwardRef(
|
|
|
2833
3063
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2834
3064
|
}, [toggleSidebar]);
|
|
2835
3065
|
const state = open ? "expanded" : "collapsed";
|
|
2836
|
-
const contextValue =
|
|
3066
|
+
const contextValue = React39__namespace.useMemo(
|
|
2837
3067
|
() => ({
|
|
2838
3068
|
state,
|
|
2839
3069
|
open,
|
|
@@ -2865,7 +3095,7 @@ var SidebarProvider = React36__namespace.forwardRef(
|
|
|
2865
3095
|
}
|
|
2866
3096
|
);
|
|
2867
3097
|
SidebarProvider.displayName = "SidebarProvider";
|
|
2868
|
-
var Sidebar =
|
|
3098
|
+
var Sidebar = React39__namespace.forwardRef(
|
|
2869
3099
|
({
|
|
2870
3100
|
side = "left",
|
|
2871
3101
|
variant = "sidebar",
|
|
@@ -2952,7 +3182,7 @@ var Sidebar = React36__namespace.forwardRef(
|
|
|
2952
3182
|
}
|
|
2953
3183
|
);
|
|
2954
3184
|
Sidebar.displayName = "Sidebar";
|
|
2955
|
-
var SidebarTrigger =
|
|
3185
|
+
var SidebarTrigger = React39__namespace.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
2956
3186
|
const { toggleSidebar } = useSidebar();
|
|
2957
3187
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2958
3188
|
Button,
|
|
@@ -2975,7 +3205,7 @@ var SidebarTrigger = React36__namespace.forwardRef(({ className, onClick, ...pro
|
|
|
2975
3205
|
);
|
|
2976
3206
|
});
|
|
2977
3207
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
2978
|
-
var SidebarRail =
|
|
3208
|
+
var SidebarRail = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
2979
3209
|
const { toggleSidebar } = useSidebar();
|
|
2980
3210
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2981
3211
|
"button",
|
|
@@ -3000,7 +3230,7 @@ var SidebarRail = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3000
3230
|
);
|
|
3001
3231
|
});
|
|
3002
3232
|
SidebarRail.displayName = "SidebarRail";
|
|
3003
|
-
var SidebarInset =
|
|
3233
|
+
var SidebarInset = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3004
3234
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3005
3235
|
"main",
|
|
3006
3236
|
{
|
|
@@ -3015,7 +3245,7 @@ var SidebarInset = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3015
3245
|
);
|
|
3016
3246
|
});
|
|
3017
3247
|
SidebarInset.displayName = "SidebarInset";
|
|
3018
|
-
var SidebarInput =
|
|
3248
|
+
var SidebarInput = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3019
3249
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3020
3250
|
Input,
|
|
3021
3251
|
{
|
|
@@ -3030,7 +3260,7 @@ var SidebarInput = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3030
3260
|
);
|
|
3031
3261
|
});
|
|
3032
3262
|
SidebarInput.displayName = "SidebarInput";
|
|
3033
|
-
var SidebarHeader =
|
|
3263
|
+
var SidebarHeader = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3034
3264
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3035
3265
|
"div",
|
|
3036
3266
|
{
|
|
@@ -3042,7 +3272,7 @@ var SidebarHeader = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3042
3272
|
);
|
|
3043
3273
|
});
|
|
3044
3274
|
SidebarHeader.displayName = "SidebarHeader";
|
|
3045
|
-
var SidebarFooter =
|
|
3275
|
+
var SidebarFooter = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3046
3276
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3047
3277
|
"div",
|
|
3048
3278
|
{
|
|
@@ -3054,7 +3284,7 @@ var SidebarFooter = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3054
3284
|
);
|
|
3055
3285
|
});
|
|
3056
3286
|
SidebarFooter.displayName = "SidebarFooter";
|
|
3057
|
-
var SidebarSeparator =
|
|
3287
|
+
var SidebarSeparator = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3058
3288
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3059
3289
|
Separator5,
|
|
3060
3290
|
{
|
|
@@ -3066,7 +3296,7 @@ var SidebarSeparator = React36__namespace.forwardRef(({ className, ...props }, r
|
|
|
3066
3296
|
);
|
|
3067
3297
|
});
|
|
3068
3298
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3069
|
-
var SidebarContent =
|
|
3299
|
+
var SidebarContent = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3070
3300
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3071
3301
|
"div",
|
|
3072
3302
|
{
|
|
@@ -3081,7 +3311,7 @@ var SidebarContent = React36__namespace.forwardRef(({ className, ...props }, ref
|
|
|
3081
3311
|
);
|
|
3082
3312
|
});
|
|
3083
3313
|
SidebarContent.displayName = "SidebarContent";
|
|
3084
|
-
var SidebarGroup =
|
|
3314
|
+
var SidebarGroup = React39__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
3085
3315
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3086
3316
|
"div",
|
|
3087
3317
|
{
|
|
@@ -3093,7 +3323,7 @@ var SidebarGroup = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3093
3323
|
);
|
|
3094
3324
|
});
|
|
3095
3325
|
SidebarGroup.displayName = "SidebarGroup";
|
|
3096
|
-
var SidebarGroupLabel =
|
|
3326
|
+
var SidebarGroupLabel = React39__namespace.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3097
3327
|
const Comp = asChild ? reactSlot.Slot : "div";
|
|
3098
3328
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3099
3329
|
Comp,
|
|
@@ -3110,7 +3340,7 @@ var SidebarGroupLabel = React36__namespace.forwardRef(({ className, asChild = fa
|
|
|
3110
3340
|
);
|
|
3111
3341
|
});
|
|
3112
3342
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
3113
|
-
var SidebarGroupAction =
|
|
3343
|
+
var SidebarGroupAction = React39__namespace.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3114
3344
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
3115
3345
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3116
3346
|
Comp,
|
|
@@ -3129,7 +3359,7 @@ var SidebarGroupAction = React36__namespace.forwardRef(({ className, asChild = f
|
|
|
3129
3359
|
);
|
|
3130
3360
|
});
|
|
3131
3361
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
3132
|
-
var SidebarGroupContent =
|
|
3362
|
+
var SidebarGroupContent = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3133
3363
|
"div",
|
|
3134
3364
|
{
|
|
3135
3365
|
ref,
|
|
@@ -3139,7 +3369,7 @@ var SidebarGroupContent = React36__namespace.forwardRef(({ className, ...props }
|
|
|
3139
3369
|
}
|
|
3140
3370
|
));
|
|
3141
3371
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
3142
|
-
var SidebarMenu =
|
|
3372
|
+
var SidebarMenu = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3143
3373
|
"ul",
|
|
3144
3374
|
{
|
|
3145
3375
|
ref,
|
|
@@ -3149,7 +3379,7 @@ var SidebarMenu = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3149
3379
|
}
|
|
3150
3380
|
));
|
|
3151
3381
|
SidebarMenu.displayName = "SidebarMenu";
|
|
3152
|
-
var SidebarMenuItem =
|
|
3382
|
+
var SidebarMenuItem = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3153
3383
|
"li",
|
|
3154
3384
|
{
|
|
3155
3385
|
ref,
|
|
@@ -3179,7 +3409,7 @@ var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
|
3179
3409
|
}
|
|
3180
3410
|
}
|
|
3181
3411
|
);
|
|
3182
|
-
var SidebarMenuButton =
|
|
3412
|
+
var SidebarMenuButton = React39__namespace.forwardRef(
|
|
3183
3413
|
({
|
|
3184
3414
|
asChild = false,
|
|
3185
3415
|
isActive = false,
|
|
@@ -3225,7 +3455,7 @@ var SidebarMenuButton = React36__namespace.forwardRef(
|
|
|
3225
3455
|
}
|
|
3226
3456
|
);
|
|
3227
3457
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
3228
|
-
var SidebarMenuAction =
|
|
3458
|
+
var SidebarMenuAction = React39__namespace.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
3229
3459
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
3230
3460
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3231
3461
|
Comp,
|
|
@@ -3248,7 +3478,7 @@ var SidebarMenuAction = React36__namespace.forwardRef(({ className, asChild = fa
|
|
|
3248
3478
|
);
|
|
3249
3479
|
});
|
|
3250
3480
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
3251
|
-
var SidebarMenuBadge =
|
|
3481
|
+
var SidebarMenuBadge = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3252
3482
|
"div",
|
|
3253
3483
|
{
|
|
3254
3484
|
ref,
|
|
@@ -3266,8 +3496,8 @@ var SidebarMenuBadge = React36__namespace.forwardRef(({ className, ...props }, r
|
|
|
3266
3496
|
}
|
|
3267
3497
|
));
|
|
3268
3498
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
3269
|
-
var SidebarMenuSkeleton =
|
|
3270
|
-
const width =
|
|
3499
|
+
var SidebarMenuSkeleton = React39__namespace.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
3500
|
+
const width = React39__namespace.useMemo(() => {
|
|
3271
3501
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
3272
3502
|
}, []);
|
|
3273
3503
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -3300,7 +3530,7 @@ var SidebarMenuSkeleton = React36__namespace.forwardRef(({ className, showIcon =
|
|
|
3300
3530
|
);
|
|
3301
3531
|
});
|
|
3302
3532
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
3303
|
-
var SidebarMenuSub =
|
|
3533
|
+
var SidebarMenuSub = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3304
3534
|
"ul",
|
|
3305
3535
|
{
|
|
3306
3536
|
ref,
|
|
@@ -3314,9 +3544,9 @@ var SidebarMenuSub = React36__namespace.forwardRef(({ className, ...props }, ref
|
|
|
3314
3544
|
}
|
|
3315
3545
|
));
|
|
3316
3546
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
3317
|
-
var SidebarMenuSubItem =
|
|
3547
|
+
var SidebarMenuSubItem = React39__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, ...props }));
|
|
3318
3548
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
3319
|
-
var SidebarMenuSubButton =
|
|
3549
|
+
var SidebarMenuSubButton = React39__namespace.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
3320
3550
|
const Comp = asChild ? reactSlot.Slot : "a";
|
|
3321
3551
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3322
3552
|
Comp,
|
|
@@ -3355,7 +3585,7 @@ function SimpleTabs({ tabs, activeTab, onTabChange }) {
|
|
|
3355
3585
|
);
|
|
3356
3586
|
}) });
|
|
3357
3587
|
}
|
|
3358
|
-
var Slider =
|
|
3588
|
+
var Slider = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3359
3589
|
SliderPrimitive__namespace.Root,
|
|
3360
3590
|
{
|
|
3361
3591
|
ref,
|
|
@@ -3446,7 +3676,7 @@ function StatusBadge({
|
|
|
3446
3676
|
}
|
|
3447
3677
|
);
|
|
3448
3678
|
}
|
|
3449
|
-
var Switch =
|
|
3679
|
+
var Switch = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3450
3680
|
SwitchPrimitives__namespace.Root,
|
|
3451
3681
|
{
|
|
3452
3682
|
className: cn(
|
|
@@ -3466,7 +3696,7 @@ var Switch = React36__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3466
3696
|
}
|
|
3467
3697
|
));
|
|
3468
3698
|
Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
|
|
3469
|
-
var Table =
|
|
3699
|
+
var Table = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3470
3700
|
"table",
|
|
3471
3701
|
{
|
|
3472
3702
|
ref,
|
|
@@ -3475,9 +3705,9 @@ var Table = React36__namespace.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3475
3705
|
}
|
|
3476
3706
|
) }));
|
|
3477
3707
|
Table.displayName = "Table";
|
|
3478
|
-
var TableHeader =
|
|
3708
|
+
var TableHeader = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
3479
3709
|
TableHeader.displayName = "TableHeader";
|
|
3480
|
-
var TableBody =
|
|
3710
|
+
var TableBody = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3481
3711
|
"tbody",
|
|
3482
3712
|
{
|
|
3483
3713
|
ref,
|
|
@@ -3486,7 +3716,7 @@ var TableBody = React36__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
3486
3716
|
}
|
|
3487
3717
|
));
|
|
3488
3718
|
TableBody.displayName = "TableBody";
|
|
3489
|
-
var TableFooter =
|
|
3719
|
+
var TableFooter = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3490
3720
|
"tfoot",
|
|
3491
3721
|
{
|
|
3492
3722
|
ref,
|
|
@@ -3498,7 +3728,7 @@ var TableFooter = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3498
3728
|
}
|
|
3499
3729
|
));
|
|
3500
3730
|
TableFooter.displayName = "TableFooter";
|
|
3501
|
-
var TableRow =
|
|
3731
|
+
var TableRow = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3502
3732
|
"tr",
|
|
3503
3733
|
{
|
|
3504
3734
|
ref,
|
|
@@ -3510,7 +3740,7 @@ var TableRow = React36__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
3510
3740
|
}
|
|
3511
3741
|
));
|
|
3512
3742
|
TableRow.displayName = "TableRow";
|
|
3513
|
-
var TableHead =
|
|
3743
|
+
var TableHead = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3514
3744
|
"th",
|
|
3515
3745
|
{
|
|
3516
3746
|
ref,
|
|
@@ -3522,7 +3752,7 @@ var TableHead = React36__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
3522
3752
|
}
|
|
3523
3753
|
));
|
|
3524
3754
|
TableHead.displayName = "TableHead";
|
|
3525
|
-
var TableCell =
|
|
3755
|
+
var TableCell = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3526
3756
|
"td",
|
|
3527
3757
|
{
|
|
3528
3758
|
ref,
|
|
@@ -3531,7 +3761,7 @@ var TableCell = React36__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
3531
3761
|
}
|
|
3532
3762
|
));
|
|
3533
3763
|
TableCell.displayName = "TableCell";
|
|
3534
|
-
var TableCaption =
|
|
3764
|
+
var TableCaption = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3535
3765
|
"caption",
|
|
3536
3766
|
{
|
|
3537
3767
|
ref,
|
|
@@ -3541,7 +3771,7 @@ var TableCaption = React36__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3541
3771
|
));
|
|
3542
3772
|
TableCaption.displayName = "TableCaption";
|
|
3543
3773
|
var Tabs = TabsPrimitive__namespace.Root;
|
|
3544
|
-
var TabsList =
|
|
3774
|
+
var TabsList = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-x-auto pb-1 hide-scrollbar", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3545
3775
|
TabsPrimitive__namespace.List,
|
|
3546
3776
|
{
|
|
3547
3777
|
ref,
|
|
@@ -3553,7 +3783,7 @@ var TabsList = React36__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
3553
3783
|
}
|
|
3554
3784
|
) }));
|
|
3555
3785
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
3556
|
-
var TabsTrigger =
|
|
3786
|
+
var TabsTrigger = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3557
3787
|
TabsPrimitive__namespace.Trigger,
|
|
3558
3788
|
{
|
|
3559
3789
|
ref,
|
|
@@ -3565,7 +3795,7 @@ var TabsTrigger = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3565
3795
|
}
|
|
3566
3796
|
));
|
|
3567
3797
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
3568
|
-
var TabsContent =
|
|
3798
|
+
var TabsContent = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3569
3799
|
TabsPrimitive__namespace.Content,
|
|
3570
3800
|
{
|
|
3571
3801
|
ref,
|
|
@@ -3577,7 +3807,7 @@ var TabsContent = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3577
3807
|
}
|
|
3578
3808
|
));
|
|
3579
3809
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
3580
|
-
var Textarea =
|
|
3810
|
+
var Textarea = React39__namespace.forwardRef(
|
|
3581
3811
|
({ className, ...props }, ref) => {
|
|
3582
3812
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3583
3813
|
"textarea",
|
|
@@ -3594,12 +3824,12 @@ var Textarea = React36__namespace.forwardRef(
|
|
|
3594
3824
|
);
|
|
3595
3825
|
Textarea.displayName = "Textarea";
|
|
3596
3826
|
var ToastProvider = ToastPrimitives__namespace.Provider;
|
|
3597
|
-
var ToastViewport =
|
|
3827
|
+
var ToastViewport = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3598
3828
|
ToastPrimitives__namespace.Viewport,
|
|
3599
3829
|
{
|
|
3600
3830
|
ref,
|
|
3601
3831
|
className: cn(
|
|
3602
|
-
"fixed top-0 z-[
|
|
3832
|
+
"fixed top-0 z-[9999] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
|
|
3603
3833
|
className
|
|
3604
3834
|
),
|
|
3605
3835
|
...props
|
|
@@ -3620,7 +3850,7 @@ var toastVariants = classVarianceAuthority.cva(
|
|
|
3620
3850
|
}
|
|
3621
3851
|
}
|
|
3622
3852
|
);
|
|
3623
|
-
var Toast =
|
|
3853
|
+
var Toast = React39__namespace.forwardRef(({ className, variant, ...props }, ref) => {
|
|
3624
3854
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3625
3855
|
ToastPrimitives__namespace.Root,
|
|
3626
3856
|
{
|
|
@@ -3631,7 +3861,7 @@ var Toast = React36__namespace.forwardRef(({ className, variant, ...props }, ref
|
|
|
3631
3861
|
);
|
|
3632
3862
|
});
|
|
3633
3863
|
Toast.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
3634
|
-
var ToastAction =
|
|
3864
|
+
var ToastAction = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3635
3865
|
ToastPrimitives__namespace.Action,
|
|
3636
3866
|
{
|
|
3637
3867
|
ref,
|
|
@@ -3643,7 +3873,7 @@ var ToastAction = React36__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3643
3873
|
}
|
|
3644
3874
|
));
|
|
3645
3875
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
3646
|
-
var ToastClose =
|
|
3876
|
+
var ToastClose = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3647
3877
|
ToastPrimitives__namespace.Close,
|
|
3648
3878
|
{
|
|
3649
3879
|
ref,
|
|
@@ -3657,7 +3887,7 @@ var ToastClose = React36__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
3657
3887
|
}
|
|
3658
3888
|
));
|
|
3659
3889
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
3660
|
-
var ToastTitle =
|
|
3890
|
+
var ToastTitle = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3661
3891
|
ToastPrimitives__namespace.Title,
|
|
3662
3892
|
{
|
|
3663
3893
|
ref,
|
|
@@ -3666,7 +3896,7 @@ var ToastTitle = React36__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
3666
3896
|
}
|
|
3667
3897
|
));
|
|
3668
3898
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
3669
|
-
var ToastDescription =
|
|
3899
|
+
var ToastDescription = React39__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3670
3900
|
ToastPrimitives__namespace.Description,
|
|
3671
3901
|
{
|
|
3672
3902
|
ref,
|
|
@@ -3711,7 +3941,7 @@ var toggleVariants = classVarianceAuthority.cva(
|
|
|
3711
3941
|
}
|
|
3712
3942
|
}
|
|
3713
3943
|
);
|
|
3714
|
-
var Toggle =
|
|
3944
|
+
var Toggle = React39__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3715
3945
|
TogglePrimitive__namespace.Root,
|
|
3716
3946
|
{
|
|
3717
3947
|
ref,
|
|
@@ -3720,11 +3950,11 @@ var Toggle = React36__namespace.forwardRef(({ className, variant, size, ...props
|
|
|
3720
3950
|
}
|
|
3721
3951
|
));
|
|
3722
3952
|
Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
|
|
3723
|
-
var ToggleGroupContext =
|
|
3953
|
+
var ToggleGroupContext = React39__namespace.createContext({
|
|
3724
3954
|
size: "default",
|
|
3725
3955
|
variant: "default"
|
|
3726
3956
|
});
|
|
3727
|
-
var ToggleGroup =
|
|
3957
|
+
var ToggleGroup = React39__namespace.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3728
3958
|
ToggleGroupPrimitive__namespace.Root,
|
|
3729
3959
|
{
|
|
3730
3960
|
ref,
|
|
@@ -3734,8 +3964,8 @@ var ToggleGroup = React36__namespace.forwardRef(({ className, variant, size, chi
|
|
|
3734
3964
|
}
|
|
3735
3965
|
));
|
|
3736
3966
|
ToggleGroup.displayName = ToggleGroupPrimitive__namespace.Root.displayName;
|
|
3737
|
-
var ToggleGroupItem =
|
|
3738
|
-
const context =
|
|
3967
|
+
var ToggleGroupItem = React39__namespace.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
3968
|
+
const context = React39__namespace.useContext(ToggleGroupContext);
|
|
3739
3969
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3740
3970
|
ToggleGroupPrimitive__namespace.Item,
|
|
3741
3971
|
{
|
|
@@ -3880,6 +4110,9 @@ exports.GlassCardDescription = GlassCardDescription;
|
|
|
3880
4110
|
exports.GlassCardFooter = GlassCardFooter;
|
|
3881
4111
|
exports.GlassCardHeader = GlassCardHeader;
|
|
3882
4112
|
exports.GlassCardTitle = GlassCardTitle;
|
|
4113
|
+
exports.GlassHeader = GlassHeader;
|
|
4114
|
+
exports.GlassOverlay = GlassOverlay;
|
|
4115
|
+
exports.GlassTabs = GlassTabs;
|
|
3883
4116
|
exports.GradientOrb = GradientOrb;
|
|
3884
4117
|
exports.HoverCard = HoverCard;
|
|
3885
4118
|
exports.HoverCardContent = HoverCardContent;
|
|
@@ -4008,7 +4241,13 @@ exports.badgeVariants = badgeVariants;
|
|
|
4008
4241
|
exports.buttonVariants = buttonVariants;
|
|
4009
4242
|
exports.cn = cn;
|
|
4010
4243
|
exports.glassCardVariants = glassCardVariants;
|
|
4244
|
+
exports.glassHeaderVariants = glassHeaderVariants;
|
|
4245
|
+
exports.glassOverlayVariants = glassOverlayVariants;
|
|
4246
|
+
exports.glassTabVariants = glassTabVariants;
|
|
4247
|
+
exports.glassTabsContainerVariants = glassTabsContainerVariants;
|
|
4248
|
+
exports.inputVariants = inputVariants;
|
|
4011
4249
|
exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
|
|
4250
|
+
exports.separatorVariants = separatorVariants;
|
|
4012
4251
|
exports.statusBadgeVariants = statusBadgeVariants;
|
|
4013
4252
|
exports.statusLabels = statusLabels;
|
|
4014
4253
|
exports.toast = toast;
|