@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.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { clsx } from 'clsx';
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
3
|
+
import * as React39 from 'react';
|
|
4
|
+
import React39__default from 'react';
|
|
5
5
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
6
6
|
import { ChevronDown, ArrowLeft, ArrowRight, Check, X, Search, ChevronRight, Circle, Dot, ChevronUp, PanelLeft, MoreHorizontal, ChevronLeft, GripVertical } from 'lucide-react';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -46,8 +46,8 @@ function cn(...inputs) {
|
|
|
46
46
|
}
|
|
47
47
|
var MOBILE_BREAKPOINT = 768;
|
|
48
48
|
function useIsMobile() {
|
|
49
|
-
const [isMobile, setIsMobile] =
|
|
50
|
-
|
|
49
|
+
const [isMobile, setIsMobile] = React39.useState(void 0);
|
|
50
|
+
React39.useEffect(() => {
|
|
51
51
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
52
52
|
const onChange = () => {
|
|
53
53
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -158,8 +158,8 @@ function toast({ ...props }) {
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
function useToast() {
|
|
161
|
-
const [state, setState] =
|
|
162
|
-
|
|
161
|
+
const [state, setState] = React39.useState(memoryState);
|
|
162
|
+
React39.useEffect(() => {
|
|
163
163
|
listeners.push(setState);
|
|
164
164
|
return () => {
|
|
165
165
|
const index = listeners.indexOf(setState);
|
|
@@ -175,7 +175,7 @@ function useToast() {
|
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
177
|
var Accordion = AccordionPrimitive.Root;
|
|
178
|
-
var AccordionItem =
|
|
178
|
+
var AccordionItem = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
179
179
|
AccordionPrimitive.Item,
|
|
180
180
|
{
|
|
181
181
|
ref,
|
|
@@ -184,7 +184,7 @@ var AccordionItem = React36.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
184
184
|
}
|
|
185
185
|
));
|
|
186
186
|
AccordionItem.displayName = "AccordionItem";
|
|
187
|
-
var AccordionTrigger =
|
|
187
|
+
var AccordionTrigger = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
188
188
|
AccordionPrimitive.Trigger,
|
|
189
189
|
{
|
|
190
190
|
ref,
|
|
@@ -200,7 +200,7 @@ var AccordionTrigger = React36.forwardRef(({ className, children, ...props }, re
|
|
|
200
200
|
}
|
|
201
201
|
) }));
|
|
202
202
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
203
|
-
var AccordionContent =
|
|
203
|
+
var AccordionContent = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
204
204
|
AccordionPrimitive.Content,
|
|
205
205
|
{
|
|
206
206
|
ref,
|
|
@@ -224,7 +224,7 @@ var alertVariants = cva(
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
|
-
var Alert =
|
|
227
|
+
var Alert = React39.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
228
228
|
"div",
|
|
229
229
|
{
|
|
230
230
|
ref,
|
|
@@ -234,7 +234,7 @@ var Alert = React36.forwardRef(({ className, variant, ...props }, ref) => /* @__
|
|
|
234
234
|
}
|
|
235
235
|
));
|
|
236
236
|
Alert.displayName = "Alert";
|
|
237
|
-
var AlertTitle =
|
|
237
|
+
var AlertTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
238
238
|
"h5",
|
|
239
239
|
{
|
|
240
240
|
ref,
|
|
@@ -243,7 +243,7 @@ var AlertTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
243
243
|
}
|
|
244
244
|
));
|
|
245
245
|
AlertTitle.displayName = "AlertTitle";
|
|
246
|
-
var AlertDescription =
|
|
246
|
+
var AlertDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
247
247
|
"div",
|
|
248
248
|
{
|
|
249
249
|
ref,
|
|
@@ -253,7 +253,7 @@ var AlertDescription = React36.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
253
253
|
));
|
|
254
254
|
AlertDescription.displayName = "AlertDescription";
|
|
255
255
|
var buttonVariants = cva(
|
|
256
|
-
"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",
|
|
256
|
+
"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",
|
|
257
257
|
{
|
|
258
258
|
variants: {
|
|
259
259
|
variant: {
|
|
@@ -277,14 +277,16 @@ var buttonVariants = cva(
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
);
|
|
280
|
-
var Button =
|
|
281
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
280
|
+
var Button = React39.forwardRef(
|
|
281
|
+
({ className, variant, size, asChild = false, disabled, ...props }, ref) => {
|
|
282
282
|
const Comp = asChild ? Slot : "button";
|
|
283
283
|
return /* @__PURE__ */ jsx(
|
|
284
284
|
Comp,
|
|
285
285
|
{
|
|
286
286
|
className: cn(buttonVariants({ variant, size, className })),
|
|
287
287
|
ref,
|
|
288
|
+
disabled: asChild ? void 0 : disabled,
|
|
289
|
+
"aria-disabled": disabled ? "true" : void 0,
|
|
288
290
|
...props
|
|
289
291
|
}
|
|
290
292
|
);
|
|
@@ -294,7 +296,7 @@ Button.displayName = "Button";
|
|
|
294
296
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
295
297
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
296
298
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
297
|
-
var AlertDialogOverlay =
|
|
299
|
+
var AlertDialogOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
298
300
|
AlertDialogPrimitive.Overlay,
|
|
299
301
|
{
|
|
300
302
|
className: cn(
|
|
@@ -306,7 +308,7 @@ var AlertDialogOverlay = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
306
308
|
}
|
|
307
309
|
));
|
|
308
310
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
309
|
-
var AlertDialogContent =
|
|
311
|
+
var AlertDialogContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
310
312
|
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
311
313
|
/* @__PURE__ */ jsx(
|
|
312
314
|
AlertDialogPrimitive.Content,
|
|
@@ -349,7 +351,7 @@ var AlertDialogFooter = ({
|
|
|
349
351
|
}
|
|
350
352
|
);
|
|
351
353
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
352
|
-
var AlertDialogTitle =
|
|
354
|
+
var AlertDialogTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
353
355
|
AlertDialogPrimitive.Title,
|
|
354
356
|
{
|
|
355
357
|
ref,
|
|
@@ -358,7 +360,7 @@ var AlertDialogTitle = React36.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
358
360
|
}
|
|
359
361
|
));
|
|
360
362
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
361
|
-
var AlertDialogDescription =
|
|
363
|
+
var AlertDialogDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
362
364
|
AlertDialogPrimitive.Description,
|
|
363
365
|
{
|
|
364
366
|
ref,
|
|
@@ -367,7 +369,7 @@ var AlertDialogDescription = React36.forwardRef(({ className, ...props }, ref) =
|
|
|
367
369
|
}
|
|
368
370
|
));
|
|
369
371
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
370
|
-
var AlertDialogAction =
|
|
372
|
+
var AlertDialogAction = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
371
373
|
AlertDialogPrimitive.Action,
|
|
372
374
|
{
|
|
373
375
|
ref,
|
|
@@ -376,7 +378,7 @@ var AlertDialogAction = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
376
378
|
}
|
|
377
379
|
));
|
|
378
380
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
379
|
-
var AlertDialogCancel =
|
|
381
|
+
var AlertDialogCancel = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
380
382
|
AlertDialogPrimitive.Cancel,
|
|
381
383
|
{
|
|
382
384
|
ref,
|
|
@@ -389,7 +391,7 @@ var AlertDialogCancel = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
389
391
|
}
|
|
390
392
|
));
|
|
391
393
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
392
|
-
var AnimatedBackground =
|
|
394
|
+
var AnimatedBackground = React39.forwardRef(
|
|
393
395
|
({ className, variant = "default", showOrbs = true, showGrid = false, children, ...props }, ref) => {
|
|
394
396
|
const isDashboard = variant === "dashboard";
|
|
395
397
|
return /* @__PURE__ */ jsxs(
|
|
@@ -447,7 +449,7 @@ var AnimatedBackground = React36.forwardRef(
|
|
|
447
449
|
}
|
|
448
450
|
);
|
|
449
451
|
AnimatedBackground.displayName = "AnimatedBackground";
|
|
450
|
-
var GradientOrb =
|
|
452
|
+
var GradientOrb = React39.forwardRef(
|
|
451
453
|
({
|
|
452
454
|
className,
|
|
453
455
|
color = "blue",
|
|
@@ -502,7 +504,7 @@ var GradientOrb = React36.forwardRef(
|
|
|
502
504
|
);
|
|
503
505
|
GradientOrb.displayName = "GradientOrb";
|
|
504
506
|
var AspectRatio = AspectRatioPrimitive.Root;
|
|
505
|
-
var Avatar =
|
|
507
|
+
var Avatar = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
506
508
|
AvatarPrimitive.Root,
|
|
507
509
|
{
|
|
508
510
|
ref,
|
|
@@ -514,7 +516,7 @@ var Avatar = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
514
516
|
}
|
|
515
517
|
));
|
|
516
518
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
517
|
-
var AvatarImage =
|
|
519
|
+
var AvatarImage = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
518
520
|
AvatarPrimitive.Image,
|
|
519
521
|
{
|
|
520
522
|
ref,
|
|
@@ -523,7 +525,7 @@ var AvatarImage = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
523
525
|
}
|
|
524
526
|
));
|
|
525
527
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
526
|
-
var AvatarFallback =
|
|
528
|
+
var AvatarFallback = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
527
529
|
AvatarPrimitive.Fallback,
|
|
528
530
|
{
|
|
529
531
|
ref,
|
|
@@ -554,9 +556,9 @@ var badgeVariants = cva(
|
|
|
554
556
|
function Badge({ className, variant, ...props }) {
|
|
555
557
|
return /* @__PURE__ */ jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
556
558
|
}
|
|
557
|
-
var Breadcrumb =
|
|
559
|
+
var Breadcrumb = React39.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
558
560
|
Breadcrumb.displayName = "Breadcrumb";
|
|
559
|
-
var BreadcrumbList =
|
|
561
|
+
var BreadcrumbList = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
560
562
|
"ol",
|
|
561
563
|
{
|
|
562
564
|
ref,
|
|
@@ -568,7 +570,7 @@ var BreadcrumbList = React36.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
568
570
|
}
|
|
569
571
|
));
|
|
570
572
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
571
|
-
var BreadcrumbItem =
|
|
573
|
+
var BreadcrumbItem = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
572
574
|
"li",
|
|
573
575
|
{
|
|
574
576
|
ref,
|
|
@@ -577,7 +579,7 @@ var BreadcrumbItem = React36.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
577
579
|
}
|
|
578
580
|
));
|
|
579
581
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
580
|
-
var BreadcrumbLink =
|
|
582
|
+
var BreadcrumbLink = React39.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
581
583
|
const Comp = asChild ? Slot : "a";
|
|
582
584
|
return /* @__PURE__ */ jsx(
|
|
583
585
|
Comp,
|
|
@@ -589,7 +591,7 @@ var BreadcrumbLink = React36.forwardRef(({ asChild, className, ...props }, ref)
|
|
|
589
591
|
);
|
|
590
592
|
});
|
|
591
593
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
592
|
-
var BreadcrumbPage =
|
|
594
|
+
var BreadcrumbPage = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
593
595
|
"span",
|
|
594
596
|
{
|
|
595
597
|
ref,
|
|
@@ -685,7 +687,7 @@ function Calendar({
|
|
|
685
687
|
);
|
|
686
688
|
}
|
|
687
689
|
Calendar.displayName = "Calendar";
|
|
688
|
-
var Card =
|
|
690
|
+
var Card = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
689
691
|
"div",
|
|
690
692
|
{
|
|
691
693
|
ref,
|
|
@@ -697,7 +699,7 @@ var Card = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
697
699
|
}
|
|
698
700
|
));
|
|
699
701
|
Card.displayName = "Card";
|
|
700
|
-
var CardHeader =
|
|
702
|
+
var CardHeader = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
701
703
|
"div",
|
|
702
704
|
{
|
|
703
705
|
ref,
|
|
@@ -706,7 +708,7 @@ var CardHeader = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
706
708
|
}
|
|
707
709
|
));
|
|
708
710
|
CardHeader.displayName = "CardHeader";
|
|
709
|
-
var CardTitle =
|
|
711
|
+
var CardTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
710
712
|
"h3",
|
|
711
713
|
{
|
|
712
714
|
ref,
|
|
@@ -718,7 +720,7 @@ var CardTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
718
720
|
}
|
|
719
721
|
));
|
|
720
722
|
CardTitle.displayName = "CardTitle";
|
|
721
|
-
var CardDescription =
|
|
723
|
+
var CardDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
722
724
|
"p",
|
|
723
725
|
{
|
|
724
726
|
ref,
|
|
@@ -727,9 +729,9 @@ var CardDescription = React36.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
727
729
|
}
|
|
728
730
|
));
|
|
729
731
|
CardDescription.displayName = "CardDescription";
|
|
730
|
-
var CardContent =
|
|
732
|
+
var CardContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex-1 p-6 pt-0", className), ...props }));
|
|
731
733
|
CardContent.displayName = "CardContent";
|
|
732
|
-
var CardFooter =
|
|
734
|
+
var CardFooter = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
733
735
|
"div",
|
|
734
736
|
{
|
|
735
737
|
ref,
|
|
@@ -738,15 +740,15 @@ var CardFooter = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
738
740
|
}
|
|
739
741
|
));
|
|
740
742
|
CardFooter.displayName = "CardFooter";
|
|
741
|
-
var CarouselContext =
|
|
743
|
+
var CarouselContext = React39.createContext(null);
|
|
742
744
|
function useCarousel() {
|
|
743
|
-
const context =
|
|
745
|
+
const context = React39.useContext(CarouselContext);
|
|
744
746
|
if (!context) {
|
|
745
747
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
746
748
|
}
|
|
747
749
|
return context;
|
|
748
750
|
}
|
|
749
|
-
var Carousel =
|
|
751
|
+
var Carousel = React39.forwardRef(
|
|
750
752
|
({
|
|
751
753
|
orientation = "horizontal",
|
|
752
754
|
opts,
|
|
@@ -763,22 +765,22 @@ var Carousel = React36.forwardRef(
|
|
|
763
765
|
},
|
|
764
766
|
plugins
|
|
765
767
|
);
|
|
766
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
767
|
-
const [canScrollNext, setCanScrollNext] =
|
|
768
|
-
const onSelect =
|
|
768
|
+
const [canScrollPrev, setCanScrollPrev] = React39.useState(false);
|
|
769
|
+
const [canScrollNext, setCanScrollNext] = React39.useState(false);
|
|
770
|
+
const onSelect = React39.useCallback((api2) => {
|
|
769
771
|
if (!api2) {
|
|
770
772
|
return;
|
|
771
773
|
}
|
|
772
774
|
setCanScrollPrev(api2.canScrollPrev());
|
|
773
775
|
setCanScrollNext(api2.canScrollNext());
|
|
774
776
|
}, []);
|
|
775
|
-
const scrollPrev =
|
|
777
|
+
const scrollPrev = React39.useCallback(() => {
|
|
776
778
|
api?.scrollPrev();
|
|
777
779
|
}, [api]);
|
|
778
|
-
const scrollNext =
|
|
780
|
+
const scrollNext = React39.useCallback(() => {
|
|
779
781
|
api?.scrollNext();
|
|
780
782
|
}, [api]);
|
|
781
|
-
const handleKeyDown =
|
|
783
|
+
const handleKeyDown = React39.useCallback(
|
|
782
784
|
(event) => {
|
|
783
785
|
if (event.key === "ArrowLeft") {
|
|
784
786
|
event.preventDefault();
|
|
@@ -790,13 +792,13 @@ var Carousel = React36.forwardRef(
|
|
|
790
792
|
},
|
|
791
793
|
[scrollPrev, scrollNext]
|
|
792
794
|
);
|
|
793
|
-
|
|
795
|
+
React39.useEffect(() => {
|
|
794
796
|
if (!api || !setApi) {
|
|
795
797
|
return;
|
|
796
798
|
}
|
|
797
799
|
setApi(api);
|
|
798
800
|
}, [api, setApi]);
|
|
799
|
-
|
|
801
|
+
React39.useEffect(() => {
|
|
800
802
|
if (!api) {
|
|
801
803
|
return;
|
|
802
804
|
}
|
|
@@ -837,7 +839,7 @@ var Carousel = React36.forwardRef(
|
|
|
837
839
|
}
|
|
838
840
|
);
|
|
839
841
|
Carousel.displayName = "Carousel";
|
|
840
|
-
var CarouselContent =
|
|
842
|
+
var CarouselContent = React39.forwardRef(({ className, ...props }, ref) => {
|
|
841
843
|
const { carouselRef, orientation } = useCarousel();
|
|
842
844
|
return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
843
845
|
"div",
|
|
@@ -853,7 +855,7 @@ var CarouselContent = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
853
855
|
) });
|
|
854
856
|
});
|
|
855
857
|
CarouselContent.displayName = "CarouselContent";
|
|
856
|
-
var CarouselItem =
|
|
858
|
+
var CarouselItem = React39.forwardRef(({ className, ...props }, ref) => {
|
|
857
859
|
const { orientation } = useCarousel();
|
|
858
860
|
return /* @__PURE__ */ jsx(
|
|
859
861
|
"div",
|
|
@@ -871,7 +873,7 @@ var CarouselItem = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
871
873
|
);
|
|
872
874
|
});
|
|
873
875
|
CarouselItem.displayName = "CarouselItem";
|
|
874
|
-
var CarouselPrevious =
|
|
876
|
+
var CarouselPrevious = React39.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
875
877
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
876
878
|
return /* @__PURE__ */ jsxs(
|
|
877
879
|
Button,
|
|
@@ -895,7 +897,7 @@ var CarouselPrevious = React36.forwardRef(({ className, variant = "outline", siz
|
|
|
895
897
|
);
|
|
896
898
|
});
|
|
897
899
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
898
|
-
var CarouselNext =
|
|
900
|
+
var CarouselNext = React39.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
899
901
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
900
902
|
return /* @__PURE__ */ jsxs(
|
|
901
903
|
Button,
|
|
@@ -920,16 +922,16 @@ var CarouselNext = React36.forwardRef(({ className, variant = "outline", size =
|
|
|
920
922
|
});
|
|
921
923
|
CarouselNext.displayName = "CarouselNext";
|
|
922
924
|
var THEMES = { light: "", dark: ".dark" };
|
|
923
|
-
var ChartContext =
|
|
925
|
+
var ChartContext = React39.createContext(null);
|
|
924
926
|
function useChart() {
|
|
925
|
-
const context =
|
|
927
|
+
const context = React39.useContext(ChartContext);
|
|
926
928
|
if (!context) {
|
|
927
929
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
928
930
|
}
|
|
929
931
|
return context;
|
|
930
932
|
}
|
|
931
|
-
var ChartContainer =
|
|
932
|
-
const uniqueId =
|
|
933
|
+
var ChartContainer = React39.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
934
|
+
const uniqueId = React39.useId();
|
|
933
935
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
934
936
|
return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
|
|
935
937
|
"div",
|
|
@@ -975,7 +977,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
975
977
|
);
|
|
976
978
|
};
|
|
977
979
|
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
978
|
-
var ChartTooltipContent =
|
|
980
|
+
var ChartTooltipContent = React39.forwardRef(
|
|
979
981
|
({
|
|
980
982
|
active,
|
|
981
983
|
payload,
|
|
@@ -992,7 +994,7 @@ var ChartTooltipContent = React36.forwardRef(
|
|
|
992
994
|
labelKey
|
|
993
995
|
}, ref) => {
|
|
994
996
|
const { config } = useChart();
|
|
995
|
-
const tooltipLabel =
|
|
997
|
+
const tooltipLabel = React39.useMemo(() => {
|
|
996
998
|
if (hideLabel || !payload?.length) {
|
|
997
999
|
return null;
|
|
998
1000
|
}
|
|
@@ -1088,7 +1090,7 @@ var ChartTooltipContent = React36.forwardRef(
|
|
|
1088
1090
|
);
|
|
1089
1091
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
1090
1092
|
var ChartLegend = RechartsPrimitive.Legend;
|
|
1091
|
-
var ChartLegendContent =
|
|
1093
|
+
var ChartLegendContent = React39.forwardRef(
|
|
1092
1094
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
1093
1095
|
const { config } = useChart();
|
|
1094
1096
|
if (!payload?.length) {
|
|
@@ -1146,7 +1148,7 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1146
1148
|
}
|
|
1147
1149
|
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
1148
1150
|
}
|
|
1149
|
-
var Checkbox =
|
|
1151
|
+
var Checkbox = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1150
1152
|
CheckboxPrimitive.Root,
|
|
1151
1153
|
{
|
|
1152
1154
|
ref,
|
|
@@ -1172,7 +1174,7 @@ var Dialog = DialogPrimitive.Root;
|
|
|
1172
1174
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1173
1175
|
var DialogPortal = DialogPrimitive.Portal;
|
|
1174
1176
|
var DialogClose = DialogPrimitive.Close;
|
|
1175
|
-
var DialogOverlay =
|
|
1177
|
+
var DialogOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1176
1178
|
DialogPrimitive.Overlay,
|
|
1177
1179
|
{
|
|
1178
1180
|
ref,
|
|
@@ -1184,7 +1186,7 @@ var DialogOverlay = React36.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1184
1186
|
}
|
|
1185
1187
|
));
|
|
1186
1188
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1187
|
-
var DialogContent =
|
|
1189
|
+
var DialogContent = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
1188
1190
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
1189
1191
|
/* @__PURE__ */ jsxs(
|
|
1190
1192
|
DialogPrimitive.Content,
|
|
@@ -1240,7 +1242,7 @@ var DialogFooter = ({
|
|
|
1240
1242
|
}
|
|
1241
1243
|
);
|
|
1242
1244
|
DialogFooter.displayName = "DialogFooter";
|
|
1243
|
-
var DialogTitle =
|
|
1245
|
+
var DialogTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1244
1246
|
DialogPrimitive.Title,
|
|
1245
1247
|
{
|
|
1246
1248
|
ref,
|
|
@@ -1252,7 +1254,7 @@ var DialogTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1252
1254
|
}
|
|
1253
1255
|
));
|
|
1254
1256
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1255
|
-
var DialogDescription =
|
|
1257
|
+
var DialogDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1256
1258
|
DialogPrimitive.Description,
|
|
1257
1259
|
{
|
|
1258
1260
|
ref,
|
|
@@ -1261,7 +1263,7 @@ var DialogDescription = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1261
1263
|
}
|
|
1262
1264
|
));
|
|
1263
1265
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1264
|
-
var Command =
|
|
1266
|
+
var Command = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1265
1267
|
Command$1,
|
|
1266
1268
|
{
|
|
1267
1269
|
ref,
|
|
@@ -1282,7 +1284,7 @@ var CommandDialog = ({ children, ...props }) => {
|
|
|
1282
1284
|
}
|
|
1283
1285
|
) }) });
|
|
1284
1286
|
};
|
|
1285
|
-
var CommandInput =
|
|
1287
|
+
var CommandInput = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1286
1288
|
/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
1287
1289
|
/* @__PURE__ */ jsx(
|
|
1288
1290
|
Command$1.Input,
|
|
@@ -1297,7 +1299,7 @@ var CommandInput = React36.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1297
1299
|
)
|
|
1298
1300
|
] }));
|
|
1299
1301
|
CommandInput.displayName = Command$1.Input.displayName;
|
|
1300
|
-
var CommandList =
|
|
1302
|
+
var CommandList = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1301
1303
|
Command$1.List,
|
|
1302
1304
|
{
|
|
1303
1305
|
ref,
|
|
@@ -1306,7 +1308,7 @@ var CommandList = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1306
1308
|
}
|
|
1307
1309
|
));
|
|
1308
1310
|
CommandList.displayName = Command$1.List.displayName;
|
|
1309
|
-
var CommandEmpty =
|
|
1311
|
+
var CommandEmpty = React39.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
1310
1312
|
Command$1.Empty,
|
|
1311
1313
|
{
|
|
1312
1314
|
ref,
|
|
@@ -1315,7 +1317,7 @@ var CommandEmpty = React36.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
|
1315
1317
|
}
|
|
1316
1318
|
));
|
|
1317
1319
|
CommandEmpty.displayName = Command$1.Empty.displayName;
|
|
1318
|
-
var CommandGroup =
|
|
1320
|
+
var CommandGroup = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1319
1321
|
Command$1.Group,
|
|
1320
1322
|
{
|
|
1321
1323
|
ref,
|
|
@@ -1327,7 +1329,7 @@ var CommandGroup = React36.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1327
1329
|
}
|
|
1328
1330
|
));
|
|
1329
1331
|
CommandGroup.displayName = Command$1.Group.displayName;
|
|
1330
|
-
var CommandSeparator =
|
|
1332
|
+
var CommandSeparator = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1331
1333
|
Command$1.Separator,
|
|
1332
1334
|
{
|
|
1333
1335
|
ref,
|
|
@@ -1336,7 +1338,7 @@ var CommandSeparator = React36.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1336
1338
|
}
|
|
1337
1339
|
));
|
|
1338
1340
|
CommandSeparator.displayName = Command$1.Separator.displayName;
|
|
1339
|
-
var CommandItem =
|
|
1341
|
+
var CommandItem = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1340
1342
|
Command$1.Item,
|
|
1341
1343
|
{
|
|
1342
1344
|
ref,
|
|
@@ -1370,7 +1372,7 @@ var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
|
1370
1372
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
1371
1373
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
1372
1374
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
1373
|
-
var ContextMenuSubTrigger =
|
|
1375
|
+
var ContextMenuSubTrigger = React39.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1374
1376
|
ContextMenuPrimitive.SubTrigger,
|
|
1375
1377
|
{
|
|
1376
1378
|
ref,
|
|
@@ -1387,7 +1389,7 @@ var ContextMenuSubTrigger = React36.forwardRef(({ className, inset, children, ..
|
|
|
1387
1389
|
}
|
|
1388
1390
|
));
|
|
1389
1391
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
1390
|
-
var ContextMenuSubContent =
|
|
1392
|
+
var ContextMenuSubContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1391
1393
|
ContextMenuPrimitive.SubContent,
|
|
1392
1394
|
{
|
|
1393
1395
|
ref,
|
|
@@ -1399,7 +1401,7 @@ var ContextMenuSubContent = React36.forwardRef(({ className, ...props }, ref) =>
|
|
|
1399
1401
|
}
|
|
1400
1402
|
));
|
|
1401
1403
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
1402
|
-
var ContextMenuContent =
|
|
1404
|
+
var ContextMenuContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
1403
1405
|
ContextMenuPrimitive.Content,
|
|
1404
1406
|
{
|
|
1405
1407
|
ref,
|
|
@@ -1411,7 +1413,7 @@ var ContextMenuContent = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1411
1413
|
}
|
|
1412
1414
|
) }));
|
|
1413
1415
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
1414
|
-
var ContextMenuItem =
|
|
1416
|
+
var ContextMenuItem = React39.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1415
1417
|
ContextMenuPrimitive.Item,
|
|
1416
1418
|
{
|
|
1417
1419
|
ref,
|
|
@@ -1424,7 +1426,7 @@ var ContextMenuItem = React36.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
1424
1426
|
}
|
|
1425
1427
|
));
|
|
1426
1428
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
1427
|
-
var ContextMenuCheckboxItem =
|
|
1429
|
+
var ContextMenuCheckboxItem = React39.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1428
1430
|
ContextMenuPrimitive.CheckboxItem,
|
|
1429
1431
|
{
|
|
1430
1432
|
ref,
|
|
@@ -1441,7 +1443,7 @@ var ContextMenuCheckboxItem = React36.forwardRef(({ className, children, checked
|
|
|
1441
1443
|
}
|
|
1442
1444
|
));
|
|
1443
1445
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
1444
|
-
var ContextMenuRadioItem =
|
|
1446
|
+
var ContextMenuRadioItem = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1445
1447
|
ContextMenuPrimitive.RadioItem,
|
|
1446
1448
|
{
|
|
1447
1449
|
ref,
|
|
@@ -1457,7 +1459,7 @@ var ContextMenuRadioItem = React36.forwardRef(({ className, children, ...props }
|
|
|
1457
1459
|
}
|
|
1458
1460
|
));
|
|
1459
1461
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
1460
|
-
var ContextMenuLabel =
|
|
1462
|
+
var ContextMenuLabel = React39.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1461
1463
|
ContextMenuPrimitive.Label,
|
|
1462
1464
|
{
|
|
1463
1465
|
ref,
|
|
@@ -1470,7 +1472,7 @@ var ContextMenuLabel = React36.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1470
1472
|
}
|
|
1471
1473
|
));
|
|
1472
1474
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
1473
|
-
var ContextMenuSeparator =
|
|
1475
|
+
var ContextMenuSeparator = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1474
1476
|
ContextMenuPrimitive.Separator,
|
|
1475
1477
|
{
|
|
1476
1478
|
ref,
|
|
@@ -1509,7 +1511,7 @@ Drawer.displayName = "Drawer";
|
|
|
1509
1511
|
var DrawerTrigger = Drawer$1.Trigger;
|
|
1510
1512
|
var DrawerPortal = Drawer$1.Portal;
|
|
1511
1513
|
var DrawerClose = Drawer$1.Close;
|
|
1512
|
-
var DrawerOverlay =
|
|
1514
|
+
var DrawerOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1513
1515
|
Drawer$1.Overlay,
|
|
1514
1516
|
{
|
|
1515
1517
|
ref,
|
|
@@ -1518,7 +1520,7 @@ var DrawerOverlay = React36.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1518
1520
|
}
|
|
1519
1521
|
));
|
|
1520
1522
|
DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
|
|
1521
|
-
var DrawerContent =
|
|
1523
|
+
var DrawerContent = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
1522
1524
|
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
1523
1525
|
/* @__PURE__ */ jsxs(
|
|
1524
1526
|
Drawer$1.Content,
|
|
@@ -1559,7 +1561,7 @@ var DrawerFooter = ({
|
|
|
1559
1561
|
}
|
|
1560
1562
|
);
|
|
1561
1563
|
DrawerFooter.displayName = "DrawerFooter";
|
|
1562
|
-
var DrawerTitle =
|
|
1564
|
+
var DrawerTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1563
1565
|
Drawer$1.Title,
|
|
1564
1566
|
{
|
|
1565
1567
|
ref,
|
|
@@ -1571,7 +1573,7 @@ var DrawerTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1571
1573
|
}
|
|
1572
1574
|
));
|
|
1573
1575
|
DrawerTitle.displayName = Drawer$1.Title.displayName;
|
|
1574
|
-
var DrawerDescription =
|
|
1576
|
+
var DrawerDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1575
1577
|
Drawer$1.Description,
|
|
1576
1578
|
{
|
|
1577
1579
|
ref,
|
|
@@ -1586,7 +1588,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
1586
1588
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1587
1589
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1588
1590
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1589
|
-
var DropdownMenuSubTrigger =
|
|
1591
|
+
var DropdownMenuSubTrigger = React39.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1590
1592
|
DropdownMenuPrimitive.SubTrigger,
|
|
1591
1593
|
{
|
|
1592
1594
|
ref,
|
|
@@ -1603,7 +1605,7 @@ var DropdownMenuSubTrigger = React36.forwardRef(({ className, inset, children, .
|
|
|
1603
1605
|
}
|
|
1604
1606
|
));
|
|
1605
1607
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1606
|
-
var DropdownMenuSubContent =
|
|
1608
|
+
var DropdownMenuSubContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1607
1609
|
DropdownMenuPrimitive.SubContent,
|
|
1608
1610
|
{
|
|
1609
1611
|
ref,
|
|
@@ -1615,7 +1617,7 @@ var DropdownMenuSubContent = React36.forwardRef(({ className, ...props }, ref) =
|
|
|
1615
1617
|
}
|
|
1616
1618
|
));
|
|
1617
1619
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1618
|
-
var DropdownMenuContent =
|
|
1620
|
+
var DropdownMenuContent = React39.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
1619
1621
|
DropdownMenuPrimitive.Content,
|
|
1620
1622
|
{
|
|
1621
1623
|
ref,
|
|
@@ -1628,7 +1630,7 @@ var DropdownMenuContent = React36.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1628
1630
|
}
|
|
1629
1631
|
) }));
|
|
1630
1632
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1631
|
-
var DropdownMenuItem =
|
|
1633
|
+
var DropdownMenuItem = React39.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1632
1634
|
DropdownMenuPrimitive.Item,
|
|
1633
1635
|
{
|
|
1634
1636
|
ref,
|
|
@@ -1641,7 +1643,7 @@ var DropdownMenuItem = React36.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1641
1643
|
}
|
|
1642
1644
|
));
|
|
1643
1645
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1644
|
-
var DropdownMenuCheckboxItem =
|
|
1646
|
+
var DropdownMenuCheckboxItem = React39.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1645
1647
|
DropdownMenuPrimitive.CheckboxItem,
|
|
1646
1648
|
{
|
|
1647
1649
|
ref,
|
|
@@ -1658,7 +1660,7 @@ var DropdownMenuCheckboxItem = React36.forwardRef(({ className, children, checke
|
|
|
1658
1660
|
}
|
|
1659
1661
|
));
|
|
1660
1662
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1661
|
-
var DropdownMenuRadioItem =
|
|
1663
|
+
var DropdownMenuRadioItem = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1662
1664
|
DropdownMenuPrimitive.RadioItem,
|
|
1663
1665
|
{
|
|
1664
1666
|
ref,
|
|
@@ -1674,7 +1676,7 @@ var DropdownMenuRadioItem = React36.forwardRef(({ className, children, ...props
|
|
|
1674
1676
|
}
|
|
1675
1677
|
));
|
|
1676
1678
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1677
|
-
var DropdownMenuLabel =
|
|
1679
|
+
var DropdownMenuLabel = React39.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1678
1680
|
DropdownMenuPrimitive.Label,
|
|
1679
1681
|
{
|
|
1680
1682
|
ref,
|
|
@@ -1687,7 +1689,7 @@ var DropdownMenuLabel = React36.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1687
1689
|
}
|
|
1688
1690
|
));
|
|
1689
1691
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1690
|
-
var DropdownMenuSeparator =
|
|
1692
|
+
var DropdownMenuSeparator = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1691
1693
|
DropdownMenuPrimitive.Separator,
|
|
1692
1694
|
{
|
|
1693
1695
|
ref,
|
|
@@ -1712,7 +1714,7 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
1712
1714
|
var labelVariants = cva(
|
|
1713
1715
|
"text-base font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1714
1716
|
);
|
|
1715
|
-
var Label3 =
|
|
1717
|
+
var Label3 = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1716
1718
|
LabelPrimitive.Root,
|
|
1717
1719
|
{
|
|
1718
1720
|
ref,
|
|
@@ -1722,7 +1724,7 @@ var Label3 = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1722
1724
|
));
|
|
1723
1725
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
1724
1726
|
var Form = FormProvider;
|
|
1725
|
-
var FormFieldContext =
|
|
1727
|
+
var FormFieldContext = React39.createContext(
|
|
1726
1728
|
{}
|
|
1727
1729
|
);
|
|
1728
1730
|
var FormField = ({
|
|
@@ -1731,8 +1733,8 @@ var FormField = ({
|
|
|
1731
1733
|
return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
|
|
1732
1734
|
};
|
|
1733
1735
|
var useFormField = () => {
|
|
1734
|
-
const fieldContext =
|
|
1735
|
-
const itemContext =
|
|
1736
|
+
const fieldContext = React39.useContext(FormFieldContext);
|
|
1737
|
+
const itemContext = React39.useContext(FormItemContext);
|
|
1736
1738
|
const { getFieldState, formState } = useFormContext();
|
|
1737
1739
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
1738
1740
|
if (!fieldContext) {
|
|
@@ -1748,15 +1750,15 @@ var useFormField = () => {
|
|
|
1748
1750
|
...fieldState
|
|
1749
1751
|
};
|
|
1750
1752
|
};
|
|
1751
|
-
var FormItemContext =
|
|
1753
|
+
var FormItemContext = React39.createContext(
|
|
1752
1754
|
{}
|
|
1753
1755
|
);
|
|
1754
|
-
var FormItem =
|
|
1755
|
-
const id =
|
|
1756
|
+
var FormItem = React39.forwardRef(({ className, ...props }, ref) => {
|
|
1757
|
+
const id = React39.useId();
|
|
1756
1758
|
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
1757
1759
|
});
|
|
1758
1760
|
FormItem.displayName = "FormItem";
|
|
1759
|
-
var FormLabel =
|
|
1761
|
+
var FormLabel = React39.forwardRef(({ className, ...props }, ref) => {
|
|
1760
1762
|
const { error, formItemId } = useFormField();
|
|
1761
1763
|
return /* @__PURE__ */ jsx(
|
|
1762
1764
|
Label3,
|
|
@@ -1769,7 +1771,7 @@ var FormLabel = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
1769
1771
|
);
|
|
1770
1772
|
});
|
|
1771
1773
|
FormLabel.displayName = "FormLabel";
|
|
1772
|
-
var FormControl =
|
|
1774
|
+
var FormControl = React39.forwardRef(({ ...props }, ref) => {
|
|
1773
1775
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
1774
1776
|
return /* @__PURE__ */ jsx(
|
|
1775
1777
|
Slot,
|
|
@@ -1783,7 +1785,7 @@ var FormControl = React36.forwardRef(({ ...props }, ref) => {
|
|
|
1783
1785
|
);
|
|
1784
1786
|
});
|
|
1785
1787
|
FormControl.displayName = "FormControl";
|
|
1786
|
-
var FormDescription =
|
|
1788
|
+
var FormDescription = React39.forwardRef(({ className, ...props }, ref) => {
|
|
1787
1789
|
const { formDescriptionId } = useFormField();
|
|
1788
1790
|
return /* @__PURE__ */ jsx(
|
|
1789
1791
|
"p",
|
|
@@ -1796,7 +1798,7 @@ var FormDescription = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
1796
1798
|
);
|
|
1797
1799
|
});
|
|
1798
1800
|
FormDescription.displayName = "FormDescription";
|
|
1799
|
-
var FormMessage =
|
|
1801
|
+
var FormMessage = React39.forwardRef(({ className, children, ...props }, ref) => {
|
|
1800
1802
|
const { error, formMessageId } = useFormField();
|
|
1801
1803
|
const body = error ? String(error?.message) : children;
|
|
1802
1804
|
if (!body) {
|
|
@@ -1815,31 +1817,31 @@ var FormMessage = React36.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1815
1817
|
});
|
|
1816
1818
|
FormMessage.displayName = "FormMessage";
|
|
1817
1819
|
var glassCardVariants = cva(
|
|
1818
|
-
"rounded-2xl border backdrop-blur-
|
|
1820
|
+
"rounded-2xl border backdrop-blur-glass transition-all duration-300",
|
|
1819
1821
|
{
|
|
1820
1822
|
variants: {
|
|
1821
1823
|
variant: {
|
|
1822
1824
|
default: [
|
|
1823
|
-
"bg-
|
|
1824
|
-
"dark:bg-white/5 dark:border-white/10 dark:shadow-lg"
|
|
1825
|
+
"bg-glass border-glass-border shadow-glass"
|
|
1825
1826
|
],
|
|
1826
1827
|
elevated: [
|
|
1827
|
-
"bg-
|
|
1828
|
-
|
|
1828
|
+
"bg-glass-elevated border-glass-border shadow-glass-elevated"
|
|
1829
|
+
],
|
|
1830
|
+
subtle: [
|
|
1831
|
+
"bg-glass-subtle border-glass-border-subtle"
|
|
1829
1832
|
],
|
|
1830
1833
|
interactive: [
|
|
1831
|
-
"bg-
|
|
1832
|
-
"hover:bg-
|
|
1833
|
-
"dark:bg-white/5 dark:border-white/10 dark:shadow-lg",
|
|
1834
|
-
"dark:hover:bg-white/10 dark:hover:border-white/20 dark:hover:shadow-[0_8px_32px_rgba(139,92,246,0.15)]"
|
|
1834
|
+
"bg-glass border-glass-border shadow-glass cursor-pointer",
|
|
1835
|
+
"hover:bg-glass-elevated hover:shadow-glass-elevated hover:-translate-y-0.5"
|
|
1835
1836
|
],
|
|
1836
1837
|
hero: [
|
|
1837
|
-
"bg-gradient-to-br from-
|
|
1838
|
-
"dark:from-white/10 dark:via-white/5 dark:to-purple-900/10 dark:border-white/10"
|
|
1838
|
+
"bg-gradient-to-br from-glass-elevated via-glass to-primary/5 border-glass-border shadow-glass-elevated"
|
|
1839
1839
|
],
|
|
1840
1840
|
stat: [
|
|
1841
|
-
"bg-
|
|
1842
|
-
|
|
1841
|
+
"bg-glass-subtle border-glass-border-subtle"
|
|
1842
|
+
],
|
|
1843
|
+
auth: [
|
|
1844
|
+
"bg-glass border-glass-border shadow-glass-elevated backdrop-blur-glass-strong"
|
|
1843
1845
|
]
|
|
1844
1846
|
},
|
|
1845
1847
|
padding: {
|
|
@@ -1855,7 +1857,7 @@ var glassCardVariants = cva(
|
|
|
1855
1857
|
}
|
|
1856
1858
|
}
|
|
1857
1859
|
);
|
|
1858
|
-
var GlassCard =
|
|
1860
|
+
var GlassCard = React39.forwardRef(
|
|
1859
1861
|
({ className, variant, padding, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1860
1862
|
"div",
|
|
1861
1863
|
{
|
|
@@ -1866,7 +1868,7 @@ var GlassCard = React36.forwardRef(
|
|
|
1866
1868
|
)
|
|
1867
1869
|
);
|
|
1868
1870
|
GlassCard.displayName = "GlassCard";
|
|
1869
|
-
var GlassCardHeader =
|
|
1871
|
+
var GlassCardHeader = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1870
1872
|
"div",
|
|
1871
1873
|
{
|
|
1872
1874
|
ref,
|
|
@@ -1875,30 +1877,30 @@ var GlassCardHeader = React36.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1875
1877
|
}
|
|
1876
1878
|
));
|
|
1877
1879
|
GlassCardHeader.displayName = "GlassCardHeader";
|
|
1878
|
-
var GlassCardTitle =
|
|
1880
|
+
var GlassCardTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1879
1881
|
"h3",
|
|
1880
1882
|
{
|
|
1881
1883
|
ref,
|
|
1882
1884
|
className: cn(
|
|
1883
|
-
"text-lg font-semibold leading-none tracking-tight",
|
|
1885
|
+
"text-lg font-semibold leading-none tracking-tight text-glass-foreground",
|
|
1884
1886
|
className
|
|
1885
1887
|
),
|
|
1886
1888
|
...props
|
|
1887
1889
|
}
|
|
1888
1890
|
));
|
|
1889
1891
|
GlassCardTitle.displayName = "GlassCardTitle";
|
|
1890
|
-
var GlassCardDescription =
|
|
1892
|
+
var GlassCardDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1891
1893
|
"p",
|
|
1892
1894
|
{
|
|
1893
1895
|
ref,
|
|
1894
|
-
className: cn("text-sm text-
|
|
1896
|
+
className: cn("text-sm text-glass-foreground-muted", className),
|
|
1895
1897
|
...props
|
|
1896
1898
|
}
|
|
1897
1899
|
));
|
|
1898
1900
|
GlassCardDescription.displayName = "GlassCardDescription";
|
|
1899
|
-
var GlassCardContent =
|
|
1901
|
+
var GlassCardContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1900
1902
|
GlassCardContent.displayName = "GlassCardContent";
|
|
1901
|
-
var GlassCardFooter =
|
|
1903
|
+
var GlassCardFooter = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1902
1904
|
"div",
|
|
1903
1905
|
{
|
|
1904
1906
|
ref,
|
|
@@ -1907,9 +1909,162 @@ var GlassCardFooter = React36.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1907
1909
|
}
|
|
1908
1910
|
));
|
|
1909
1911
|
GlassCardFooter.displayName = "GlassCardFooter";
|
|
1912
|
+
var glassHeaderVariants = cva(
|
|
1913
|
+
"rounded-2xl border border-glass-border backdrop-blur-glass shadow-glass transition-all duration-300",
|
|
1914
|
+
{
|
|
1915
|
+
variants: {
|
|
1916
|
+
variant: {
|
|
1917
|
+
default: "bg-glass",
|
|
1918
|
+
elevated: "bg-glass-elevated shadow-glass-elevated",
|
|
1919
|
+
transparent: "bg-transparent border-transparent shadow-none"
|
|
1920
|
+
},
|
|
1921
|
+
sticky: {
|
|
1922
|
+
true: "sticky top-0 z-50",
|
|
1923
|
+
false: ""
|
|
1924
|
+
},
|
|
1925
|
+
padding: {
|
|
1926
|
+
none: "",
|
|
1927
|
+
sm: "px-4 py-2",
|
|
1928
|
+
default: "px-4 py-3",
|
|
1929
|
+
lg: "px-6 py-4"
|
|
1930
|
+
}
|
|
1931
|
+
},
|
|
1932
|
+
defaultVariants: {
|
|
1933
|
+
variant: "default",
|
|
1934
|
+
sticky: false,
|
|
1935
|
+
padding: "default"
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
);
|
|
1939
|
+
var GlassHeader = React39.forwardRef(
|
|
1940
|
+
({ className, variant, sticky, padding, as: Component = "header", ...props }, ref) => {
|
|
1941
|
+
return /* @__PURE__ */ jsx(
|
|
1942
|
+
Component,
|
|
1943
|
+
{
|
|
1944
|
+
ref,
|
|
1945
|
+
className: cn(glassHeaderVariants({ variant, sticky, padding, className })),
|
|
1946
|
+
...props
|
|
1947
|
+
}
|
|
1948
|
+
);
|
|
1949
|
+
}
|
|
1950
|
+
);
|
|
1951
|
+
GlassHeader.displayName = "GlassHeader";
|
|
1952
|
+
var glassOverlayVariants = cva(
|
|
1953
|
+
"fixed inset-0 transition-all duration-300",
|
|
1954
|
+
{
|
|
1955
|
+
variants: {
|
|
1956
|
+
variant: {
|
|
1957
|
+
subtle: "bg-black/20",
|
|
1958
|
+
default: "bg-black/40",
|
|
1959
|
+
dark: "bg-black/60",
|
|
1960
|
+
light: "bg-white/40"
|
|
1961
|
+
},
|
|
1962
|
+
blur: {
|
|
1963
|
+
none: "",
|
|
1964
|
+
sm: "backdrop-blur-sm",
|
|
1965
|
+
default: "backdrop-blur-glass",
|
|
1966
|
+
strong: "backdrop-blur-glass-strong"
|
|
1967
|
+
}
|
|
1968
|
+
},
|
|
1969
|
+
defaultVariants: {
|
|
1970
|
+
variant: "default",
|
|
1971
|
+
blur: "default"
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
);
|
|
1975
|
+
var GlassOverlay = React39.forwardRef(
|
|
1976
|
+
({ className, variant, blur, open = true, onClose, ...props }, ref) => {
|
|
1977
|
+
if (!open) return null;
|
|
1978
|
+
return /* @__PURE__ */ jsx(
|
|
1979
|
+
"div",
|
|
1980
|
+
{
|
|
1981
|
+
ref,
|
|
1982
|
+
role: "presentation",
|
|
1983
|
+
"aria-hidden": "true",
|
|
1984
|
+
onClick: onClose,
|
|
1985
|
+
className: cn(glassOverlayVariants({ variant, blur, className })),
|
|
1986
|
+
...props
|
|
1987
|
+
}
|
|
1988
|
+
);
|
|
1989
|
+
}
|
|
1990
|
+
);
|
|
1991
|
+
GlassOverlay.displayName = "GlassOverlay";
|
|
1992
|
+
var glassTabsContainerVariants = cva(
|
|
1993
|
+
"flex gap-1 rounded-lg bg-glass-subtle p-1 backdrop-blur-glass",
|
|
1994
|
+
{
|
|
1995
|
+
variants: {
|
|
1996
|
+
size: {
|
|
1997
|
+
sm: "p-0.5",
|
|
1998
|
+
default: "p-1",
|
|
1999
|
+
lg: "p-1.5"
|
|
2000
|
+
}
|
|
2001
|
+
},
|
|
2002
|
+
defaultVariants: {
|
|
2003
|
+
size: "default"
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
);
|
|
2007
|
+
var glassTabVariants = cva(
|
|
2008
|
+
"flex items-center justify-center rounded-md font-medium transition-all",
|
|
2009
|
+
{
|
|
2010
|
+
variants: {
|
|
2011
|
+
size: {
|
|
2012
|
+
sm: "px-3 py-1.5 text-xs",
|
|
2013
|
+
default: "px-4 py-2.5 text-sm",
|
|
2014
|
+
lg: "px-5 py-3 text-base"
|
|
2015
|
+
},
|
|
2016
|
+
state: {
|
|
2017
|
+
active: "bg-glass text-glass-foreground shadow-sm",
|
|
2018
|
+
inactive: "text-glass-foreground-muted hover:text-glass-foreground"
|
|
2019
|
+
}
|
|
2020
|
+
},
|
|
2021
|
+
defaultVariants: {
|
|
2022
|
+
size: "default",
|
|
2023
|
+
state: "inactive"
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
);
|
|
2027
|
+
var GlassTabs = React39.forwardRef(
|
|
2028
|
+
({ className, tabs, activeTab, onTabChange, size, ...props }, ref) => {
|
|
2029
|
+
return /* @__PURE__ */ jsx(
|
|
2030
|
+
"div",
|
|
2031
|
+
{
|
|
2032
|
+
ref,
|
|
2033
|
+
role: "tablist",
|
|
2034
|
+
className: cn(glassTabsContainerVariants({ size, className })),
|
|
2035
|
+
...props,
|
|
2036
|
+
children: tabs.map((tab) => /* @__PURE__ */ jsxs(
|
|
2037
|
+
"button",
|
|
2038
|
+
{
|
|
2039
|
+
role: "tab",
|
|
2040
|
+
type: "button",
|
|
2041
|
+
"aria-selected": activeTab === tab.id,
|
|
2042
|
+
"aria-disabled": tab.disabled,
|
|
2043
|
+
disabled: tab.disabled,
|
|
2044
|
+
onClick: () => !tab.disabled && onTabChange(tab.id),
|
|
2045
|
+
className: cn(
|
|
2046
|
+
glassTabVariants({
|
|
2047
|
+
size,
|
|
2048
|
+
state: activeTab === tab.id ? "active" : "inactive"
|
|
2049
|
+
}),
|
|
2050
|
+
"flex-1",
|
|
2051
|
+
tab.disabled && "cursor-not-allowed opacity-50"
|
|
2052
|
+
),
|
|
2053
|
+
children: [
|
|
2054
|
+
tab.icon && /* @__PURE__ */ jsx("span", { className: "mr-2", children: tab.icon }),
|
|
2055
|
+
tab.label
|
|
2056
|
+
]
|
|
2057
|
+
},
|
|
2058
|
+
tab.id
|
|
2059
|
+
))
|
|
2060
|
+
}
|
|
2061
|
+
);
|
|
2062
|
+
}
|
|
2063
|
+
);
|
|
2064
|
+
GlassTabs.displayName = "GlassTabs";
|
|
1910
2065
|
var HoverCard = HoverCardPrimitive.Root;
|
|
1911
2066
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
1912
|
-
var HoverCardContent =
|
|
2067
|
+
var HoverCardContent = React39.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1913
2068
|
HoverCardPrimitive.Content,
|
|
1914
2069
|
{
|
|
1915
2070
|
ref,
|
|
@@ -1923,16 +2078,35 @@ var HoverCardContent = React36.forwardRef(({ className, align = "center", sideOf
|
|
|
1923
2078
|
}
|
|
1924
2079
|
));
|
|
1925
2080
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
1926
|
-
var
|
|
1927
|
-
|
|
2081
|
+
var inputVariants = cva(
|
|
2082
|
+
"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",
|
|
2083
|
+
{
|
|
2084
|
+
variants: {
|
|
2085
|
+
variant: {
|
|
2086
|
+
default: [
|
|
2087
|
+
"border border-input bg-background text-foreground",
|
|
2088
|
+
"file:text-foreground placeholder:text-muted-foreground",
|
|
2089
|
+
"focus-visible:ring-ring"
|
|
2090
|
+
],
|
|
2091
|
+
glass: [
|
|
2092
|
+
"border border-white/10 bg-white/5 text-white",
|
|
2093
|
+
"placeholder:text-slate-500 focus:border-primary",
|
|
2094
|
+
"focus-visible:ring-0 focus-visible:ring-offset-0"
|
|
2095
|
+
]
|
|
2096
|
+
}
|
|
2097
|
+
},
|
|
2098
|
+
defaultVariants: {
|
|
2099
|
+
variant: "default"
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
);
|
|
2103
|
+
var Input = React39.forwardRef(
|
|
2104
|
+
({ className, type, variant, ...props }, ref) => {
|
|
1928
2105
|
return /* @__PURE__ */ jsx(
|
|
1929
2106
|
"input",
|
|
1930
2107
|
{
|
|
1931
2108
|
type,
|
|
1932
|
-
className: cn(
|
|
1933
|
-
"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",
|
|
1934
|
-
className
|
|
1935
|
-
),
|
|
2109
|
+
className: cn(inputVariants({ variant, className })),
|
|
1936
2110
|
ref,
|
|
1937
2111
|
...props
|
|
1938
2112
|
}
|
|
@@ -1940,7 +2114,7 @@ var Input = React36.forwardRef(
|
|
|
1940
2114
|
}
|
|
1941
2115
|
);
|
|
1942
2116
|
Input.displayName = "Input";
|
|
1943
|
-
var InputOTP =
|
|
2117
|
+
var InputOTP = React39.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1944
2118
|
OTPInput,
|
|
1945
2119
|
{
|
|
1946
2120
|
ref,
|
|
@@ -1953,10 +2127,10 @@ var InputOTP = React36.forwardRef(({ className, containerClassName, ...props },
|
|
|
1953
2127
|
}
|
|
1954
2128
|
));
|
|
1955
2129
|
InputOTP.displayName = "InputOTP";
|
|
1956
|
-
var InputOTPGroup =
|
|
2130
|
+
var InputOTPGroup = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
1957
2131
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
1958
|
-
var InputOTPSlot =
|
|
1959
|
-
const inputOTPContext =
|
|
2132
|
+
var InputOTPSlot = React39.forwardRef(({ index, className, ...props }, ref) => {
|
|
2133
|
+
const inputOTPContext = React39.useContext(OTPInputContext);
|
|
1960
2134
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
1961
2135
|
return /* @__PURE__ */ jsxs(
|
|
1962
2136
|
"div",
|
|
@@ -1976,7 +2150,7 @@ var InputOTPSlot = React36.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
1976
2150
|
);
|
|
1977
2151
|
});
|
|
1978
2152
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
1979
|
-
var InputOTPSeparator =
|
|
2153
|
+
var InputOTPSeparator = React39.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx(Dot, {}) }));
|
|
1980
2154
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
1981
2155
|
var sizes = {
|
|
1982
2156
|
sm: { height: 24 },
|
|
@@ -2011,7 +2185,7 @@ var MenubarGroup = MenubarPrimitive.Group;
|
|
|
2011
2185
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
2012
2186
|
var MenubarSub = MenubarPrimitive.Sub;
|
|
2013
2187
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
2014
|
-
var Menubar =
|
|
2188
|
+
var Menubar = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2015
2189
|
MenubarPrimitive.Root,
|
|
2016
2190
|
{
|
|
2017
2191
|
ref,
|
|
@@ -2023,7 +2197,7 @@ var Menubar = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2023
2197
|
}
|
|
2024
2198
|
));
|
|
2025
2199
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
2026
|
-
var MenubarTrigger =
|
|
2200
|
+
var MenubarTrigger = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2027
2201
|
MenubarPrimitive.Trigger,
|
|
2028
2202
|
{
|
|
2029
2203
|
ref,
|
|
@@ -2035,7 +2209,7 @@ var MenubarTrigger = React36.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2035
2209
|
}
|
|
2036
2210
|
));
|
|
2037
2211
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
2038
|
-
var MenubarSubTrigger =
|
|
2212
|
+
var MenubarSubTrigger = React39.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2039
2213
|
MenubarPrimitive.SubTrigger,
|
|
2040
2214
|
{
|
|
2041
2215
|
ref,
|
|
@@ -2052,7 +2226,7 @@ var MenubarSubTrigger = React36.forwardRef(({ className, inset, children, ...pro
|
|
|
2052
2226
|
}
|
|
2053
2227
|
));
|
|
2054
2228
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
2055
|
-
var MenubarSubContent =
|
|
2229
|
+
var MenubarSubContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2056
2230
|
MenubarPrimitive.SubContent,
|
|
2057
2231
|
{
|
|
2058
2232
|
ref,
|
|
@@ -2064,7 +2238,7 @@ var MenubarSubContent = React36.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2064
2238
|
}
|
|
2065
2239
|
));
|
|
2066
2240
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
2067
|
-
var MenubarContent =
|
|
2241
|
+
var MenubarContent = React39.forwardRef(
|
|
2068
2242
|
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2069
2243
|
MenubarPrimitive.Content,
|
|
2070
2244
|
{
|
|
@@ -2081,7 +2255,7 @@ var MenubarContent = React36.forwardRef(
|
|
|
2081
2255
|
) })
|
|
2082
2256
|
);
|
|
2083
2257
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
2084
|
-
var MenubarItem =
|
|
2258
|
+
var MenubarItem = React39.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2085
2259
|
MenubarPrimitive.Item,
|
|
2086
2260
|
{
|
|
2087
2261
|
ref,
|
|
@@ -2094,7 +2268,7 @@ var MenubarItem = React36.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
2094
2268
|
}
|
|
2095
2269
|
));
|
|
2096
2270
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
2097
|
-
var MenubarCheckboxItem =
|
|
2271
|
+
var MenubarCheckboxItem = React39.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2098
2272
|
MenubarPrimitive.CheckboxItem,
|
|
2099
2273
|
{
|
|
2100
2274
|
ref,
|
|
@@ -2111,7 +2285,7 @@ var MenubarCheckboxItem = React36.forwardRef(({ className, children, checked, ..
|
|
|
2111
2285
|
}
|
|
2112
2286
|
));
|
|
2113
2287
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
2114
|
-
var MenubarRadioItem =
|
|
2288
|
+
var MenubarRadioItem = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2115
2289
|
MenubarPrimitive.RadioItem,
|
|
2116
2290
|
{
|
|
2117
2291
|
ref,
|
|
@@ -2127,7 +2301,7 @@ var MenubarRadioItem = React36.forwardRef(({ className, children, ...props }, re
|
|
|
2127
2301
|
}
|
|
2128
2302
|
));
|
|
2129
2303
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
2130
|
-
var MenubarLabel =
|
|
2304
|
+
var MenubarLabel = React39.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2131
2305
|
MenubarPrimitive.Label,
|
|
2132
2306
|
{
|
|
2133
2307
|
ref,
|
|
@@ -2140,7 +2314,7 @@ var MenubarLabel = React36.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
2140
2314
|
}
|
|
2141
2315
|
));
|
|
2142
2316
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
2143
|
-
var MenubarSeparator =
|
|
2317
|
+
var MenubarSeparator = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2144
2318
|
MenubarPrimitive.Separator,
|
|
2145
2319
|
{
|
|
2146
2320
|
ref,
|
|
@@ -2165,7 +2339,7 @@ var MenubarShortcut = ({
|
|
|
2165
2339
|
);
|
|
2166
2340
|
};
|
|
2167
2341
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
2168
|
-
var NavigationMenu =
|
|
2342
|
+
var NavigationMenu = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2169
2343
|
NavigationMenuPrimitive.Root,
|
|
2170
2344
|
{
|
|
2171
2345
|
ref,
|
|
@@ -2181,7 +2355,7 @@ var NavigationMenu = React36.forwardRef(({ className, children, ...props }, ref)
|
|
|
2181
2355
|
}
|
|
2182
2356
|
));
|
|
2183
2357
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
2184
|
-
var NavigationMenuList =
|
|
2358
|
+
var NavigationMenuList = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2185
2359
|
NavigationMenuPrimitive.List,
|
|
2186
2360
|
{
|
|
2187
2361
|
ref,
|
|
@@ -2197,7 +2371,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
2197
2371
|
var navigationMenuTriggerStyle = cva(
|
|
2198
2372
|
"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"
|
|
2199
2373
|
);
|
|
2200
|
-
var NavigationMenuTrigger =
|
|
2374
|
+
var NavigationMenuTrigger = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2201
2375
|
NavigationMenuPrimitive.Trigger,
|
|
2202
2376
|
{
|
|
2203
2377
|
ref,
|
|
@@ -2217,7 +2391,7 @@ var NavigationMenuTrigger = React36.forwardRef(({ className, children, ...props
|
|
|
2217
2391
|
}
|
|
2218
2392
|
));
|
|
2219
2393
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
2220
|
-
var NavigationMenuContent =
|
|
2394
|
+
var NavigationMenuContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2221
2395
|
NavigationMenuPrimitive.Content,
|
|
2222
2396
|
{
|
|
2223
2397
|
ref,
|
|
@@ -2230,7 +2404,7 @@ var NavigationMenuContent = React36.forwardRef(({ className, ...props }, ref) =>
|
|
|
2230
2404
|
));
|
|
2231
2405
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
2232
2406
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
2233
|
-
var NavigationMenuViewport =
|
|
2407
|
+
var NavigationMenuViewport = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx(
|
|
2234
2408
|
NavigationMenuPrimitive.Viewport,
|
|
2235
2409
|
{
|
|
2236
2410
|
className: cn(
|
|
@@ -2242,7 +2416,7 @@ var NavigationMenuViewport = React36.forwardRef(({ className, ...props }, ref) =
|
|
|
2242
2416
|
}
|
|
2243
2417
|
) }));
|
|
2244
2418
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
2245
|
-
var NavigationMenuIndicator =
|
|
2419
|
+
var NavigationMenuIndicator = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2246
2420
|
NavigationMenuPrimitive.Indicator,
|
|
2247
2421
|
{
|
|
2248
2422
|
ref,
|
|
@@ -2328,7 +2502,7 @@ function Pagination({
|
|
|
2328
2502
|
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" })
|
|
2329
2503
|
}
|
|
2330
2504
|
),
|
|
2331
|
-
getVisiblePages().map((page, index) => /* @__PURE__ */ jsx(
|
|
2505
|
+
getVisiblePages().map((page, index) => /* @__PURE__ */ jsx(React39__default.Fragment, { children: page === "ellipsis" ? /* @__PURE__ */ jsx("div", { className: "flex h-9 w-9 items-center justify-center", children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4 text-gray-400" }) }) : /* @__PURE__ */ jsx(
|
|
2332
2506
|
Button,
|
|
2333
2507
|
{
|
|
2334
2508
|
variant: currentPage === page ? "default" : "outline",
|
|
@@ -2354,7 +2528,7 @@ function Pagination({
|
|
|
2354
2528
|
}
|
|
2355
2529
|
var Popover = PopoverPrimitive.Root;
|
|
2356
2530
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
2357
|
-
var PopoverContent =
|
|
2531
|
+
var PopoverContent = React39.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2358
2532
|
PopoverPrimitive.Content,
|
|
2359
2533
|
{
|
|
2360
2534
|
ref,
|
|
@@ -2368,7 +2542,7 @@ var PopoverContent = React36.forwardRef(({ className, align = "center", sideOffs
|
|
|
2368
2542
|
}
|
|
2369
2543
|
) }));
|
|
2370
2544
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
2371
|
-
var Progress =
|
|
2545
|
+
var Progress = React39.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2372
2546
|
ProgressPrimitive.Root,
|
|
2373
2547
|
{
|
|
2374
2548
|
ref,
|
|
@@ -2387,7 +2561,7 @@ var Progress = React36.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2387
2561
|
}
|
|
2388
2562
|
));
|
|
2389
2563
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2390
|
-
var RadioGroup4 =
|
|
2564
|
+
var RadioGroup4 = React39.forwardRef(({ className, ...props }, ref) => {
|
|
2391
2565
|
return /* @__PURE__ */ jsx(
|
|
2392
2566
|
RadioGroupPrimitive.Root,
|
|
2393
2567
|
{
|
|
@@ -2398,7 +2572,7 @@ var RadioGroup4 = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
2398
2572
|
);
|
|
2399
2573
|
});
|
|
2400
2574
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
2401
|
-
var RadioGroupItem =
|
|
2575
|
+
var RadioGroupItem = React39.forwardRef(({ className, ...props }, ref) => {
|
|
2402
2576
|
return /* @__PURE__ */ jsx(
|
|
2403
2577
|
RadioGroupPrimitive.Item,
|
|
2404
2578
|
{
|
|
@@ -2442,7 +2616,7 @@ var ResizableHandle = ({
|
|
|
2442
2616
|
children: withHandle && /* @__PURE__ */ jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx(GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
2443
2617
|
}
|
|
2444
2618
|
);
|
|
2445
|
-
var ScrollArea =
|
|
2619
|
+
var ScrollArea = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2446
2620
|
ScrollAreaPrimitive.Root,
|
|
2447
2621
|
{
|
|
2448
2622
|
ref,
|
|
@@ -2456,7 +2630,7 @@ var ScrollArea = React36.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2456
2630
|
}
|
|
2457
2631
|
));
|
|
2458
2632
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2459
|
-
var ScrollBar =
|
|
2633
|
+
var ScrollBar = React39.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2460
2634
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
2461
2635
|
{
|
|
2462
2636
|
ref,
|
|
@@ -2475,7 +2649,7 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
|
2475
2649
|
var Select = SelectPrimitive.Root;
|
|
2476
2650
|
var SelectGroup = SelectPrimitive.Group;
|
|
2477
2651
|
var SelectValue = SelectPrimitive.Value;
|
|
2478
|
-
var SelectTrigger =
|
|
2652
|
+
var SelectTrigger = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2479
2653
|
SelectPrimitive.Trigger,
|
|
2480
2654
|
{
|
|
2481
2655
|
ref,
|
|
@@ -2491,7 +2665,7 @@ var SelectTrigger = React36.forwardRef(({ className, children, ...props }, ref)
|
|
|
2491
2665
|
}
|
|
2492
2666
|
));
|
|
2493
2667
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2494
|
-
var SelectScrollUpButton =
|
|
2668
|
+
var SelectScrollUpButton = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2495
2669
|
SelectPrimitive.ScrollUpButton,
|
|
2496
2670
|
{
|
|
2497
2671
|
ref,
|
|
@@ -2504,7 +2678,7 @@ var SelectScrollUpButton = React36.forwardRef(({ className, ...props }, ref) =>
|
|
|
2504
2678
|
}
|
|
2505
2679
|
));
|
|
2506
2680
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
2507
|
-
var SelectScrollDownButton =
|
|
2681
|
+
var SelectScrollDownButton = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2508
2682
|
SelectPrimitive.ScrollDownButton,
|
|
2509
2683
|
{
|
|
2510
2684
|
ref,
|
|
@@ -2517,7 +2691,7 @@ var SelectScrollDownButton = React36.forwardRef(({ className, ...props }, ref) =
|
|
|
2517
2691
|
}
|
|
2518
2692
|
));
|
|
2519
2693
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
2520
|
-
var SelectContent =
|
|
2694
|
+
var SelectContent = React39.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
2521
2695
|
SelectPrimitive.Content,
|
|
2522
2696
|
{
|
|
2523
2697
|
ref,
|
|
@@ -2545,7 +2719,7 @@ var SelectContent = React36.forwardRef(({ className, children, position = "poppe
|
|
|
2545
2719
|
}
|
|
2546
2720
|
) }));
|
|
2547
2721
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2548
|
-
var SelectLabel =
|
|
2722
|
+
var SelectLabel = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2549
2723
|
SelectPrimitive.Label,
|
|
2550
2724
|
{
|
|
2551
2725
|
ref,
|
|
@@ -2554,7 +2728,7 @@ var SelectLabel = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2554
2728
|
}
|
|
2555
2729
|
));
|
|
2556
2730
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2557
|
-
var SelectItem =
|
|
2731
|
+
var SelectItem = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2558
2732
|
SelectPrimitive.Item,
|
|
2559
2733
|
{
|
|
2560
2734
|
ref,
|
|
@@ -2570,7 +2744,7 @@ var SelectItem = React36.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2570
2744
|
}
|
|
2571
2745
|
));
|
|
2572
2746
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2573
|
-
var SelectSeparator =
|
|
2747
|
+
var SelectSeparator = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2574
2748
|
SelectPrimitive.Separator,
|
|
2575
2749
|
{
|
|
2576
2750
|
ref,
|
|
@@ -2579,15 +2753,26 @@ var SelectSeparator = React36.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2579
2753
|
}
|
|
2580
2754
|
));
|
|
2581
2755
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
2582
|
-
var
|
|
2583
|
-
|
|
2756
|
+
var separatorVariants = cva("shrink-0", {
|
|
2757
|
+
variants: {
|
|
2758
|
+
variant: {
|
|
2759
|
+
default: "bg-border",
|
|
2760
|
+
glass: "bg-glass-border"
|
|
2761
|
+
}
|
|
2762
|
+
},
|
|
2763
|
+
defaultVariants: {
|
|
2764
|
+
variant: "default"
|
|
2765
|
+
}
|
|
2766
|
+
});
|
|
2767
|
+
var Separator5 = React39.forwardRef(
|
|
2768
|
+
({ className, orientation = "horizontal", variant, decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2584
2769
|
SeparatorPrimitive.Root,
|
|
2585
2770
|
{
|
|
2586
2771
|
ref,
|
|
2587
2772
|
decorative,
|
|
2588
2773
|
orientation,
|
|
2589
2774
|
className: cn(
|
|
2590
|
-
|
|
2775
|
+
separatorVariants({ variant }),
|
|
2591
2776
|
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
2592
2777
|
className
|
|
2593
2778
|
),
|
|
@@ -2600,7 +2785,7 @@ var Sheet = DialogPrimitive.Root;
|
|
|
2600
2785
|
var SheetTrigger = DialogPrimitive.Trigger;
|
|
2601
2786
|
var SheetClose = DialogPrimitive.Close;
|
|
2602
2787
|
var SheetPortal = DialogPrimitive.Portal;
|
|
2603
|
-
var SheetOverlay =
|
|
2788
|
+
var SheetOverlay = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2604
2789
|
DialogPrimitive.Overlay,
|
|
2605
2790
|
{
|
|
2606
2791
|
className: cn(
|
|
@@ -2628,7 +2813,7 @@ var sheetVariants = cva(
|
|
|
2628
2813
|
}
|
|
2629
2814
|
}
|
|
2630
2815
|
);
|
|
2631
|
-
var SheetContent =
|
|
2816
|
+
var SheetContent = React39.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
2632
2817
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
2633
2818
|
/* @__PURE__ */ jsxs(
|
|
2634
2819
|
DialogPrimitive.Content,
|
|
@@ -2681,7 +2866,7 @@ var SheetFooter = ({
|
|
|
2681
2866
|
}
|
|
2682
2867
|
);
|
|
2683
2868
|
SheetFooter.displayName = "SheetFooter";
|
|
2684
|
-
var SheetTitle =
|
|
2869
|
+
var SheetTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2685
2870
|
DialogPrimitive.Title,
|
|
2686
2871
|
{
|
|
2687
2872
|
ref,
|
|
@@ -2690,7 +2875,7 @@ var SheetTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2690
2875
|
}
|
|
2691
2876
|
));
|
|
2692
2877
|
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
2693
|
-
var SheetDescription =
|
|
2878
|
+
var SheetDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2694
2879
|
DialogPrimitive.Description,
|
|
2695
2880
|
{
|
|
2696
2881
|
ref,
|
|
@@ -2711,10 +2896,55 @@ function Skeleton({
|
|
|
2711
2896
|
}
|
|
2712
2897
|
);
|
|
2713
2898
|
}
|
|
2714
|
-
var TooltipProvider = TooltipPrimitive.Provider;
|
|
2715
|
-
|
|
2716
|
-
var
|
|
2717
|
-
var
|
|
2899
|
+
var TooltipProvider = React39.forwardRef(({ delayDuration = 0, ...props }, _ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { delayDuration, ...props }));
|
|
2900
|
+
TooltipProvider.displayName = "TooltipProvider";
|
|
2901
|
+
var TooltipContext = React39.createContext(null);
|
|
2902
|
+
var Tooltip2 = ({ children, open, onOpenChange, ...props }) => {
|
|
2903
|
+
const [clickedOpen, setClickedOpen] = React39.useState(false);
|
|
2904
|
+
const isControlled = open !== void 0;
|
|
2905
|
+
const isOpen = isControlled ? open : clickedOpen || void 0;
|
|
2906
|
+
const handleOpenChange = (newOpen) => {
|
|
2907
|
+
if (clickedOpen && !newOpen) {
|
|
2908
|
+
return;
|
|
2909
|
+
}
|
|
2910
|
+
onOpenChange?.(newOpen);
|
|
2911
|
+
};
|
|
2912
|
+
React39.useEffect(() => {
|
|
2913
|
+
if (!clickedOpen) return;
|
|
2914
|
+
const handleClickOutside = () => {
|
|
2915
|
+
setClickedOpen(false);
|
|
2916
|
+
};
|
|
2917
|
+
const timeoutId = setTimeout(() => {
|
|
2918
|
+
document.addEventListener("click", handleClickOutside);
|
|
2919
|
+
}, 0);
|
|
2920
|
+
return () => {
|
|
2921
|
+
clearTimeout(timeoutId);
|
|
2922
|
+
document.removeEventListener("click", handleClickOutside);
|
|
2923
|
+
};
|
|
2924
|
+
}, [clickedOpen]);
|
|
2925
|
+
return /* @__PURE__ */ jsx(TooltipContext.Provider, { value: { clickedOpen, setClickedOpen }, children: /* @__PURE__ */ jsx(
|
|
2926
|
+
TooltipPrimitive.Root,
|
|
2927
|
+
{
|
|
2928
|
+
open: isOpen,
|
|
2929
|
+
onOpenChange: handleOpenChange,
|
|
2930
|
+
...props,
|
|
2931
|
+
children
|
|
2932
|
+
}
|
|
2933
|
+
) });
|
|
2934
|
+
};
|
|
2935
|
+
var TooltipTrigger = React39.forwardRef(({ onClick, ...props }, ref) => {
|
|
2936
|
+
const context = React39.useContext(TooltipContext);
|
|
2937
|
+
const handleClick = (e) => {
|
|
2938
|
+
if (context) {
|
|
2939
|
+
e.stopPropagation();
|
|
2940
|
+
context.setClickedOpen((prev) => !prev);
|
|
2941
|
+
}
|
|
2942
|
+
onClick?.(e);
|
|
2943
|
+
};
|
|
2944
|
+
return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { ref, onClick: handleClick, ...props });
|
|
2945
|
+
});
|
|
2946
|
+
TooltipTrigger.displayName = "TooltipTrigger";
|
|
2947
|
+
var TooltipContent = React39.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2718
2948
|
TooltipPrimitive.Content,
|
|
2719
2949
|
{
|
|
2720
2950
|
ref,
|
|
@@ -2733,15 +2963,15 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
2733
2963
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2734
2964
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2735
2965
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2736
|
-
var SidebarContext =
|
|
2966
|
+
var SidebarContext = React39.createContext(null);
|
|
2737
2967
|
function useSidebar() {
|
|
2738
|
-
const context =
|
|
2968
|
+
const context = React39.useContext(SidebarContext);
|
|
2739
2969
|
if (!context) {
|
|
2740
2970
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
2741
2971
|
}
|
|
2742
2972
|
return context;
|
|
2743
2973
|
}
|
|
2744
|
-
var SidebarProvider =
|
|
2974
|
+
var SidebarProvider = React39.forwardRef(
|
|
2745
2975
|
({
|
|
2746
2976
|
defaultOpen = true,
|
|
2747
2977
|
open: openProp,
|
|
@@ -2752,10 +2982,10 @@ var SidebarProvider = React36.forwardRef(
|
|
|
2752
2982
|
...props
|
|
2753
2983
|
}, ref) => {
|
|
2754
2984
|
const isMobile = useIsMobile();
|
|
2755
|
-
const [openMobile, setOpenMobile] =
|
|
2756
|
-
const [_open, _setOpen] =
|
|
2985
|
+
const [openMobile, setOpenMobile] = React39.useState(false);
|
|
2986
|
+
const [_open, _setOpen] = React39.useState(defaultOpen);
|
|
2757
2987
|
const open = openProp ?? _open;
|
|
2758
|
-
const setOpen =
|
|
2988
|
+
const setOpen = React39.useCallback(
|
|
2759
2989
|
(value) => {
|
|
2760
2990
|
if (setOpenProp) {
|
|
2761
2991
|
return setOpenProp?.(
|
|
@@ -2767,10 +2997,10 @@ var SidebarProvider = React36.forwardRef(
|
|
|
2767
2997
|
},
|
|
2768
2998
|
[setOpenProp, open]
|
|
2769
2999
|
);
|
|
2770
|
-
const toggleSidebar =
|
|
3000
|
+
const toggleSidebar = React39.useCallback(() => {
|
|
2771
3001
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2772
3002
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2773
|
-
|
|
3003
|
+
React39.useEffect(() => {
|
|
2774
3004
|
const handleKeyDown = (event) => {
|
|
2775
3005
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2776
3006
|
event.preventDefault();
|
|
@@ -2781,7 +3011,7 @@ var SidebarProvider = React36.forwardRef(
|
|
|
2781
3011
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2782
3012
|
}, [toggleSidebar]);
|
|
2783
3013
|
const state = open ? "expanded" : "collapsed";
|
|
2784
|
-
const contextValue =
|
|
3014
|
+
const contextValue = React39.useMemo(
|
|
2785
3015
|
() => ({
|
|
2786
3016
|
state,
|
|
2787
3017
|
open,
|
|
@@ -2813,7 +3043,7 @@ var SidebarProvider = React36.forwardRef(
|
|
|
2813
3043
|
}
|
|
2814
3044
|
);
|
|
2815
3045
|
SidebarProvider.displayName = "SidebarProvider";
|
|
2816
|
-
var Sidebar =
|
|
3046
|
+
var Sidebar = React39.forwardRef(
|
|
2817
3047
|
({
|
|
2818
3048
|
side = "left",
|
|
2819
3049
|
variant = "sidebar",
|
|
@@ -2900,7 +3130,7 @@ var Sidebar = React36.forwardRef(
|
|
|
2900
3130
|
}
|
|
2901
3131
|
);
|
|
2902
3132
|
Sidebar.displayName = "Sidebar";
|
|
2903
|
-
var SidebarTrigger =
|
|
3133
|
+
var SidebarTrigger = React39.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
2904
3134
|
const { toggleSidebar } = useSidebar();
|
|
2905
3135
|
return /* @__PURE__ */ jsxs(
|
|
2906
3136
|
Button,
|
|
@@ -2923,7 +3153,7 @@ var SidebarTrigger = React36.forwardRef(({ className, onClick, ...props }, ref)
|
|
|
2923
3153
|
);
|
|
2924
3154
|
});
|
|
2925
3155
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
2926
|
-
var SidebarRail =
|
|
3156
|
+
var SidebarRail = React39.forwardRef(({ className, ...props }, ref) => {
|
|
2927
3157
|
const { toggleSidebar } = useSidebar();
|
|
2928
3158
|
return /* @__PURE__ */ jsx(
|
|
2929
3159
|
"button",
|
|
@@ -2948,7 +3178,7 @@ var SidebarRail = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
2948
3178
|
);
|
|
2949
3179
|
});
|
|
2950
3180
|
SidebarRail.displayName = "SidebarRail";
|
|
2951
|
-
var SidebarInset =
|
|
3181
|
+
var SidebarInset = React39.forwardRef(({ className, ...props }, ref) => {
|
|
2952
3182
|
return /* @__PURE__ */ jsx(
|
|
2953
3183
|
"main",
|
|
2954
3184
|
{
|
|
@@ -2963,7 +3193,7 @@ var SidebarInset = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
2963
3193
|
);
|
|
2964
3194
|
});
|
|
2965
3195
|
SidebarInset.displayName = "SidebarInset";
|
|
2966
|
-
var SidebarInput =
|
|
3196
|
+
var SidebarInput = React39.forwardRef(({ className, ...props }, ref) => {
|
|
2967
3197
|
return /* @__PURE__ */ jsx(
|
|
2968
3198
|
Input,
|
|
2969
3199
|
{
|
|
@@ -2978,7 +3208,7 @@ var SidebarInput = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
2978
3208
|
);
|
|
2979
3209
|
});
|
|
2980
3210
|
SidebarInput.displayName = "SidebarInput";
|
|
2981
|
-
var SidebarHeader =
|
|
3211
|
+
var SidebarHeader = React39.forwardRef(({ className, ...props }, ref) => {
|
|
2982
3212
|
return /* @__PURE__ */ jsx(
|
|
2983
3213
|
"div",
|
|
2984
3214
|
{
|
|
@@ -2990,7 +3220,7 @@ var SidebarHeader = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
2990
3220
|
);
|
|
2991
3221
|
});
|
|
2992
3222
|
SidebarHeader.displayName = "SidebarHeader";
|
|
2993
|
-
var SidebarFooter =
|
|
3223
|
+
var SidebarFooter = React39.forwardRef(({ className, ...props }, ref) => {
|
|
2994
3224
|
return /* @__PURE__ */ jsx(
|
|
2995
3225
|
"div",
|
|
2996
3226
|
{
|
|
@@ -3002,7 +3232,7 @@ var SidebarFooter = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3002
3232
|
);
|
|
3003
3233
|
});
|
|
3004
3234
|
SidebarFooter.displayName = "SidebarFooter";
|
|
3005
|
-
var SidebarSeparator =
|
|
3235
|
+
var SidebarSeparator = React39.forwardRef(({ className, ...props }, ref) => {
|
|
3006
3236
|
return /* @__PURE__ */ jsx(
|
|
3007
3237
|
Separator5,
|
|
3008
3238
|
{
|
|
@@ -3014,7 +3244,7 @@ var SidebarSeparator = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3014
3244
|
);
|
|
3015
3245
|
});
|
|
3016
3246
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3017
|
-
var SidebarContent =
|
|
3247
|
+
var SidebarContent = React39.forwardRef(({ className, ...props }, ref) => {
|
|
3018
3248
|
return /* @__PURE__ */ jsx(
|
|
3019
3249
|
"div",
|
|
3020
3250
|
{
|
|
@@ -3029,7 +3259,7 @@ var SidebarContent = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3029
3259
|
);
|
|
3030
3260
|
});
|
|
3031
3261
|
SidebarContent.displayName = "SidebarContent";
|
|
3032
|
-
var SidebarGroup =
|
|
3262
|
+
var SidebarGroup = React39.forwardRef(({ className, ...props }, ref) => {
|
|
3033
3263
|
return /* @__PURE__ */ jsx(
|
|
3034
3264
|
"div",
|
|
3035
3265
|
{
|
|
@@ -3041,7 +3271,7 @@ var SidebarGroup = React36.forwardRef(({ className, ...props }, ref) => {
|
|
|
3041
3271
|
);
|
|
3042
3272
|
});
|
|
3043
3273
|
SidebarGroup.displayName = "SidebarGroup";
|
|
3044
|
-
var SidebarGroupLabel =
|
|
3274
|
+
var SidebarGroupLabel = React39.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3045
3275
|
const Comp = asChild ? Slot : "div";
|
|
3046
3276
|
return /* @__PURE__ */ jsx(
|
|
3047
3277
|
Comp,
|
|
@@ -3058,7 +3288,7 @@ var SidebarGroupLabel = React36.forwardRef(({ className, asChild = false, ...pro
|
|
|
3058
3288
|
);
|
|
3059
3289
|
});
|
|
3060
3290
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
3061
|
-
var SidebarGroupAction =
|
|
3291
|
+
var SidebarGroupAction = React39.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3062
3292
|
const Comp = asChild ? Slot : "button";
|
|
3063
3293
|
return /* @__PURE__ */ jsx(
|
|
3064
3294
|
Comp,
|
|
@@ -3077,7 +3307,7 @@ var SidebarGroupAction = React36.forwardRef(({ className, asChild = false, ...pr
|
|
|
3077
3307
|
);
|
|
3078
3308
|
});
|
|
3079
3309
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
3080
|
-
var SidebarGroupContent =
|
|
3310
|
+
var SidebarGroupContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3081
3311
|
"div",
|
|
3082
3312
|
{
|
|
3083
3313
|
ref,
|
|
@@ -3087,7 +3317,7 @@ var SidebarGroupContent = React36.forwardRef(({ className, ...props }, ref) => /
|
|
|
3087
3317
|
}
|
|
3088
3318
|
));
|
|
3089
3319
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
3090
|
-
var SidebarMenu =
|
|
3320
|
+
var SidebarMenu = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3091
3321
|
"ul",
|
|
3092
3322
|
{
|
|
3093
3323
|
ref,
|
|
@@ -3097,7 +3327,7 @@ var SidebarMenu = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3097
3327
|
}
|
|
3098
3328
|
));
|
|
3099
3329
|
SidebarMenu.displayName = "SidebarMenu";
|
|
3100
|
-
var SidebarMenuItem =
|
|
3330
|
+
var SidebarMenuItem = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3101
3331
|
"li",
|
|
3102
3332
|
{
|
|
3103
3333
|
ref,
|
|
@@ -3127,7 +3357,7 @@ var sidebarMenuButtonVariants = cva(
|
|
|
3127
3357
|
}
|
|
3128
3358
|
}
|
|
3129
3359
|
);
|
|
3130
|
-
var SidebarMenuButton =
|
|
3360
|
+
var SidebarMenuButton = React39.forwardRef(
|
|
3131
3361
|
({
|
|
3132
3362
|
asChild = false,
|
|
3133
3363
|
isActive = false,
|
|
@@ -3173,7 +3403,7 @@ var SidebarMenuButton = React36.forwardRef(
|
|
|
3173
3403
|
}
|
|
3174
3404
|
);
|
|
3175
3405
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
3176
|
-
var SidebarMenuAction =
|
|
3406
|
+
var SidebarMenuAction = React39.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
3177
3407
|
const Comp = asChild ? Slot : "button";
|
|
3178
3408
|
return /* @__PURE__ */ jsx(
|
|
3179
3409
|
Comp,
|
|
@@ -3196,7 +3426,7 @@ var SidebarMenuAction = React36.forwardRef(({ className, asChild = false, showOn
|
|
|
3196
3426
|
);
|
|
3197
3427
|
});
|
|
3198
3428
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
3199
|
-
var SidebarMenuBadge =
|
|
3429
|
+
var SidebarMenuBadge = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3200
3430
|
"div",
|
|
3201
3431
|
{
|
|
3202
3432
|
ref,
|
|
@@ -3214,8 +3444,8 @@ var SidebarMenuBadge = React36.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3214
3444
|
}
|
|
3215
3445
|
));
|
|
3216
3446
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
3217
|
-
var SidebarMenuSkeleton =
|
|
3218
|
-
const width =
|
|
3447
|
+
var SidebarMenuSkeleton = React39.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
3448
|
+
const width = React39.useMemo(() => {
|
|
3219
3449
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
3220
3450
|
}, []);
|
|
3221
3451
|
return /* @__PURE__ */ jsxs(
|
|
@@ -3248,7 +3478,7 @@ var SidebarMenuSkeleton = React36.forwardRef(({ className, showIcon = false, ...
|
|
|
3248
3478
|
);
|
|
3249
3479
|
});
|
|
3250
3480
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
3251
|
-
var SidebarMenuSub =
|
|
3481
|
+
var SidebarMenuSub = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3252
3482
|
"ul",
|
|
3253
3483
|
{
|
|
3254
3484
|
ref,
|
|
@@ -3262,9 +3492,9 @@ var SidebarMenuSub = React36.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
3262
3492
|
}
|
|
3263
3493
|
));
|
|
3264
3494
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
3265
|
-
var SidebarMenuSubItem =
|
|
3495
|
+
var SidebarMenuSubItem = React39.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, ...props }));
|
|
3266
3496
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
3267
|
-
var SidebarMenuSubButton =
|
|
3497
|
+
var SidebarMenuSubButton = React39.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
3268
3498
|
const Comp = asChild ? Slot : "a";
|
|
3269
3499
|
return /* @__PURE__ */ jsx(
|
|
3270
3500
|
Comp,
|
|
@@ -3303,7 +3533,7 @@ function SimpleTabs({ tabs, activeTab, onTabChange }) {
|
|
|
3303
3533
|
);
|
|
3304
3534
|
}) });
|
|
3305
3535
|
}
|
|
3306
|
-
var Slider =
|
|
3536
|
+
var Slider = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3307
3537
|
SliderPrimitive.Root,
|
|
3308
3538
|
{
|
|
3309
3539
|
ref,
|
|
@@ -3394,7 +3624,7 @@ function StatusBadge({
|
|
|
3394
3624
|
}
|
|
3395
3625
|
);
|
|
3396
3626
|
}
|
|
3397
|
-
var Switch =
|
|
3627
|
+
var Switch = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3398
3628
|
SwitchPrimitives.Root,
|
|
3399
3629
|
{
|
|
3400
3630
|
className: cn(
|
|
@@ -3414,7 +3644,7 @@ var Switch = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
3414
3644
|
}
|
|
3415
3645
|
));
|
|
3416
3646
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
3417
|
-
var Table =
|
|
3647
|
+
var Table = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
|
|
3418
3648
|
"table",
|
|
3419
3649
|
{
|
|
3420
3650
|
ref,
|
|
@@ -3423,9 +3653,9 @@ var Table = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
3423
3653
|
}
|
|
3424
3654
|
) }));
|
|
3425
3655
|
Table.displayName = "Table";
|
|
3426
|
-
var TableHeader =
|
|
3656
|
+
var TableHeader = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
3427
3657
|
TableHeader.displayName = "TableHeader";
|
|
3428
|
-
var TableBody =
|
|
3658
|
+
var TableBody = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3429
3659
|
"tbody",
|
|
3430
3660
|
{
|
|
3431
3661
|
ref,
|
|
@@ -3434,7 +3664,7 @@ var TableBody = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3434
3664
|
}
|
|
3435
3665
|
));
|
|
3436
3666
|
TableBody.displayName = "TableBody";
|
|
3437
|
-
var TableFooter =
|
|
3667
|
+
var TableFooter = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3438
3668
|
"tfoot",
|
|
3439
3669
|
{
|
|
3440
3670
|
ref,
|
|
@@ -3446,7 +3676,7 @@ var TableFooter = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3446
3676
|
}
|
|
3447
3677
|
));
|
|
3448
3678
|
TableFooter.displayName = "TableFooter";
|
|
3449
|
-
var TableRow =
|
|
3679
|
+
var TableRow = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3450
3680
|
"tr",
|
|
3451
3681
|
{
|
|
3452
3682
|
ref,
|
|
@@ -3458,7 +3688,7 @@ var TableRow = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3458
3688
|
}
|
|
3459
3689
|
));
|
|
3460
3690
|
TableRow.displayName = "TableRow";
|
|
3461
|
-
var TableHead =
|
|
3691
|
+
var TableHead = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3462
3692
|
"th",
|
|
3463
3693
|
{
|
|
3464
3694
|
ref,
|
|
@@ -3470,7 +3700,7 @@ var TableHead = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3470
3700
|
}
|
|
3471
3701
|
));
|
|
3472
3702
|
TableHead.displayName = "TableHead";
|
|
3473
|
-
var TableCell =
|
|
3703
|
+
var TableCell = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3474
3704
|
"td",
|
|
3475
3705
|
{
|
|
3476
3706
|
ref,
|
|
@@ -3479,7 +3709,7 @@ var TableCell = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3479
3709
|
}
|
|
3480
3710
|
));
|
|
3481
3711
|
TableCell.displayName = "TableCell";
|
|
3482
|
-
var TableCaption =
|
|
3712
|
+
var TableCaption = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3483
3713
|
"caption",
|
|
3484
3714
|
{
|
|
3485
3715
|
ref,
|
|
@@ -3489,7 +3719,7 @@ var TableCaption = React36.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3489
3719
|
));
|
|
3490
3720
|
TableCaption.displayName = "TableCaption";
|
|
3491
3721
|
var Tabs = TabsPrimitive.Root;
|
|
3492
|
-
var TabsList =
|
|
3722
|
+
var TabsList = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "overflow-x-auto pb-1 hide-scrollbar", children: /* @__PURE__ */ jsx(
|
|
3493
3723
|
TabsPrimitive.List,
|
|
3494
3724
|
{
|
|
3495
3725
|
ref,
|
|
@@ -3501,7 +3731,7 @@ var TabsList = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3501
3731
|
}
|
|
3502
3732
|
) }));
|
|
3503
3733
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3504
|
-
var TabsTrigger =
|
|
3734
|
+
var TabsTrigger = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3505
3735
|
TabsPrimitive.Trigger,
|
|
3506
3736
|
{
|
|
3507
3737
|
ref,
|
|
@@ -3513,7 +3743,7 @@ var TabsTrigger = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3513
3743
|
}
|
|
3514
3744
|
));
|
|
3515
3745
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3516
|
-
var TabsContent =
|
|
3746
|
+
var TabsContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3517
3747
|
TabsPrimitive.Content,
|
|
3518
3748
|
{
|
|
3519
3749
|
ref,
|
|
@@ -3525,7 +3755,7 @@ var TabsContent = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3525
3755
|
}
|
|
3526
3756
|
));
|
|
3527
3757
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
3528
|
-
var Textarea =
|
|
3758
|
+
var Textarea = React39.forwardRef(
|
|
3529
3759
|
({ className, ...props }, ref) => {
|
|
3530
3760
|
return /* @__PURE__ */ jsx(
|
|
3531
3761
|
"textarea",
|
|
@@ -3542,12 +3772,12 @@ var Textarea = React36.forwardRef(
|
|
|
3542
3772
|
);
|
|
3543
3773
|
Textarea.displayName = "Textarea";
|
|
3544
3774
|
var ToastProvider = ToastPrimitives.Provider;
|
|
3545
|
-
var ToastViewport =
|
|
3775
|
+
var ToastViewport = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3546
3776
|
ToastPrimitives.Viewport,
|
|
3547
3777
|
{
|
|
3548
3778
|
ref,
|
|
3549
3779
|
className: cn(
|
|
3550
|
-
"fixed top-0 z-[
|
|
3780
|
+
"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]",
|
|
3551
3781
|
className
|
|
3552
3782
|
),
|
|
3553
3783
|
...props
|
|
@@ -3568,7 +3798,7 @@ var toastVariants = cva(
|
|
|
3568
3798
|
}
|
|
3569
3799
|
}
|
|
3570
3800
|
);
|
|
3571
|
-
var Toast =
|
|
3801
|
+
var Toast = React39.forwardRef(({ className, variant, ...props }, ref) => {
|
|
3572
3802
|
return /* @__PURE__ */ jsx(
|
|
3573
3803
|
ToastPrimitives.Root,
|
|
3574
3804
|
{
|
|
@@ -3579,7 +3809,7 @@ var Toast = React36.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
3579
3809
|
);
|
|
3580
3810
|
});
|
|
3581
3811
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
3582
|
-
var ToastAction =
|
|
3812
|
+
var ToastAction = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3583
3813
|
ToastPrimitives.Action,
|
|
3584
3814
|
{
|
|
3585
3815
|
ref,
|
|
@@ -3591,7 +3821,7 @@ var ToastAction = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3591
3821
|
}
|
|
3592
3822
|
));
|
|
3593
3823
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
3594
|
-
var ToastClose =
|
|
3824
|
+
var ToastClose = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3595
3825
|
ToastPrimitives.Close,
|
|
3596
3826
|
{
|
|
3597
3827
|
ref,
|
|
@@ -3605,7 +3835,7 @@ var ToastClose = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3605
3835
|
}
|
|
3606
3836
|
));
|
|
3607
3837
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
3608
|
-
var ToastTitle =
|
|
3838
|
+
var ToastTitle = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3609
3839
|
ToastPrimitives.Title,
|
|
3610
3840
|
{
|
|
3611
3841
|
ref,
|
|
@@ -3614,7 +3844,7 @@ var ToastTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3614
3844
|
}
|
|
3615
3845
|
));
|
|
3616
3846
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
3617
|
-
var ToastDescription =
|
|
3847
|
+
var ToastDescription = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3618
3848
|
ToastPrimitives.Description,
|
|
3619
3849
|
{
|
|
3620
3850
|
ref,
|
|
@@ -3659,7 +3889,7 @@ var toggleVariants = cva(
|
|
|
3659
3889
|
}
|
|
3660
3890
|
}
|
|
3661
3891
|
);
|
|
3662
|
-
var Toggle =
|
|
3892
|
+
var Toggle = React39.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3663
3893
|
TogglePrimitive.Root,
|
|
3664
3894
|
{
|
|
3665
3895
|
ref,
|
|
@@ -3668,11 +3898,11 @@ var Toggle = React36.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
3668
3898
|
}
|
|
3669
3899
|
));
|
|
3670
3900
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
3671
|
-
var ToggleGroupContext =
|
|
3901
|
+
var ToggleGroupContext = React39.createContext({
|
|
3672
3902
|
size: "default",
|
|
3673
3903
|
variant: "default"
|
|
3674
3904
|
});
|
|
3675
|
-
var ToggleGroup =
|
|
3905
|
+
var ToggleGroup = React39.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3676
3906
|
ToggleGroupPrimitive.Root,
|
|
3677
3907
|
{
|
|
3678
3908
|
ref,
|
|
@@ -3682,8 +3912,8 @@ var ToggleGroup = React36.forwardRef(({ className, variant, size, children, ...p
|
|
|
3682
3912
|
}
|
|
3683
3913
|
));
|
|
3684
3914
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
3685
|
-
var ToggleGroupItem =
|
|
3686
|
-
const context =
|
|
3915
|
+
var ToggleGroupItem = React39.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
3916
|
+
const context = React39.useContext(ToggleGroupContext);
|
|
3687
3917
|
return /* @__PURE__ */ jsx(
|
|
3688
3918
|
ToggleGroupPrimitive.Item,
|
|
3689
3919
|
{
|
|
@@ -3702,6 +3932,6 @@ var ToggleGroupItem = React36.forwardRef(({ className, children, variant, size,
|
|
|
3702
3932
|
});
|
|
3703
3933
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
3704
3934
|
|
|
3705
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnimatedBackground, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GlassCard, GlassCardContent, GlassCardDescription, GlassCardFooter, GlassCardHeader, GlassCardTitle, GradientOrb, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, Logo, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup4 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator5 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleTabs, Skeleton, Slider, StatusBadge, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip2 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, glassCardVariants, navigationMenuTriggerStyle, statusBadgeVariants, statusLabels, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast };
|
|
3935
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnimatedBackground, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GlassCard, GlassCardContent, GlassCardDescription, GlassCardFooter, GlassCardHeader, GlassCardTitle, GlassHeader, GlassOverlay, GlassTabs, GradientOrb, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, Logo, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup4 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator5 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleTabs, Skeleton, Slider, StatusBadge, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip2 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, glassCardVariants, glassHeaderVariants, glassOverlayVariants, glassTabVariants, glassTabsContainerVariants, inputVariants, navigationMenuTriggerStyle, separatorVariants, statusBadgeVariants, statusLabels, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast };
|
|
3706
3936
|
//# sourceMappingURL=index.js.map
|
|
3707
3937
|
//# sourceMappingURL=index.js.map
|