@inf-monkeys-tech/monkeys-design 1.0.49 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/agent-workbench/index.js +492 -192
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +452 -152
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/components/primitives/index.d.mts +2 -2
- package/dist/components/primitives/index.d.ts +2 -2
- package/dist/components/primitives/index.js +183 -183
- package/dist/components/primitives/index.js.map +1 -1
- package/dist/components/primitives/index.mjs +171 -171
- package/dist/components/primitives/index.mjs.map +1 -1
- package/dist/index.js +714 -538
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +292 -116
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
2
|
-
import * as
|
|
2
|
+
import * as React15 from 'react';
|
|
3
3
|
import { useImperativeHandle, forwardRef, useState, useCallback, useMemo, useRef, useEffect } from 'react';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -34,7 +34,7 @@ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
|
34
34
|
function cn(...parts) {
|
|
35
35
|
return twMerge(parts.filter(Boolean).join(" "));
|
|
36
36
|
}
|
|
37
|
-
var Avatar =
|
|
37
|
+
var Avatar = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
38
38
|
AvatarPrimitive.Root,
|
|
39
39
|
{
|
|
40
40
|
ref,
|
|
@@ -43,9 +43,9 @@ var Avatar = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
43
43
|
}
|
|
44
44
|
));
|
|
45
45
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
46
|
-
var AvatarImage =
|
|
46
|
+
var AvatarImage = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AvatarPrimitive.Image, { ref, className: cn("aspect-square h-full w-full", className), ...props }));
|
|
47
47
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
48
|
-
var AvatarFallback =
|
|
48
|
+
var AvatarFallback = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
49
49
|
AvatarPrimitive.Fallback,
|
|
50
50
|
{
|
|
51
51
|
ref,
|
|
@@ -60,8 +60,8 @@ var useAutosizeTextArea = ({
|
|
|
60
60
|
maxHeight = Number.MAX_SAFE_INTEGER,
|
|
61
61
|
minHeight = 0
|
|
62
62
|
}) => {
|
|
63
|
-
const [init, setInit] =
|
|
64
|
-
|
|
63
|
+
const [init, setInit] = React15.useState(true);
|
|
64
|
+
React15.useEffect(() => {
|
|
65
65
|
const offsetBorder = 2;
|
|
66
66
|
if (textAreaRef) {
|
|
67
67
|
if (init) {
|
|
@@ -81,7 +81,7 @@ var useAutosizeTextArea = ({
|
|
|
81
81
|
}
|
|
82
82
|
}, [textAreaRef, triggerAutoSize]);
|
|
83
83
|
};
|
|
84
|
-
var AutosizeTextarea =
|
|
84
|
+
var AutosizeTextarea = React15.forwardRef(
|
|
85
85
|
({
|
|
86
86
|
maxHeight = Number.MAX_SAFE_INTEGER,
|
|
87
87
|
minHeight = 52,
|
|
@@ -94,10 +94,10 @@ var AutosizeTextarea = React14.forwardRef(
|
|
|
94
94
|
onCompositionEnd: propsOnCompositionEnd,
|
|
95
95
|
...props
|
|
96
96
|
}, ref) => {
|
|
97
|
-
const textAreaRef =
|
|
98
|
-
const [triggerAutoSize, setTriggerAutoSize] =
|
|
99
|
-
const [isComposing, setIsComposing] =
|
|
100
|
-
const [compositionValue, setCompositionValue] =
|
|
97
|
+
const textAreaRef = React15.useRef(null);
|
|
98
|
+
const [triggerAutoSize, setTriggerAutoSize] = React15.useState("");
|
|
99
|
+
const [isComposing, setIsComposing] = React15.useState(false);
|
|
100
|
+
const [compositionValue, setCompositionValue] = React15.useState("");
|
|
101
101
|
useAutosizeTextArea({
|
|
102
102
|
textAreaRef: textAreaRef.current,
|
|
103
103
|
triggerAutoSize,
|
|
@@ -110,10 +110,10 @@ var AutosizeTextarea = React14.forwardRef(
|
|
|
110
110
|
maxHeight,
|
|
111
111
|
minHeight
|
|
112
112
|
}));
|
|
113
|
-
|
|
113
|
+
React15.useEffect(() => {
|
|
114
114
|
setTriggerAutoSize(value);
|
|
115
115
|
}, [props?.defaultValue, value]);
|
|
116
|
-
const handleKeyDown =
|
|
116
|
+
const handleKeyDown = React15.useCallback((e) => {
|
|
117
117
|
if (e.key === "ArrowUp" && triggerAutoSize.length <= 0 && !(e.metaKey || e.altKey || e.ctrlKey)) {
|
|
118
118
|
e.preventDefault();
|
|
119
119
|
return;
|
|
@@ -179,13 +179,13 @@ var alertVariants = cva(
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
);
|
|
182
|
-
var Alert =
|
|
182
|
+
var Alert = React15.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
183
183
|
Alert.displayName = "Alert";
|
|
184
|
-
var AlertTitle =
|
|
184
|
+
var AlertTitle = React15.forwardRef(
|
|
185
185
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("h5", { ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })
|
|
186
186
|
);
|
|
187
187
|
AlertTitle.displayName = "AlertTitle";
|
|
188
|
-
var AlertDescription =
|
|
188
|
+
var AlertDescription = React15.forwardRef(
|
|
189
189
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })
|
|
190
190
|
);
|
|
191
191
|
AlertDescription.displayName = "AlertDescription";
|
|
@@ -204,11 +204,11 @@ var badgeVariants = ({
|
|
|
204
204
|
(!variant || variant === "default") && "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
205
205
|
className
|
|
206
206
|
);
|
|
207
|
-
var Badge =
|
|
207
|
+
var Badge = React15.forwardRef(({ className, variant, shape, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: badgeVariants({ variant, shape, className }), ...props }));
|
|
208
208
|
Badge.displayName = "Badge";
|
|
209
|
-
var RoundedBadge =
|
|
209
|
+
var RoundedBadge = React15.forwardRef((props, ref) => /* @__PURE__ */ jsx(Badge, { ref, shape: "rounded", ...props }));
|
|
210
210
|
RoundedBadge.displayName = "RoundedBadge";
|
|
211
|
-
var Separator =
|
|
211
|
+
var Separator = React15.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
212
212
|
SeparatorPrimitive.Root,
|
|
213
213
|
{
|
|
214
214
|
ref,
|
|
@@ -326,7 +326,7 @@ function Calendar({ className, classNames, components, showOutsideDays = true, .
|
|
|
326
326
|
);
|
|
327
327
|
}
|
|
328
328
|
Calendar.displayName = "Calendar";
|
|
329
|
-
var Card =
|
|
329
|
+
var Card = React15.forwardRef(({ className, appearance = "standard", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
330
330
|
"div",
|
|
331
331
|
{
|
|
332
332
|
ref,
|
|
@@ -339,21 +339,21 @@ var Card = React14.forwardRef(({ className, appearance = "standard", ...props },
|
|
|
339
339
|
}
|
|
340
340
|
));
|
|
341
341
|
Card.displayName = "Card";
|
|
342
|
-
var CardHeader =
|
|
342
|
+
var CardHeader = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props }));
|
|
343
343
|
CardHeader.displayName = "CardHeader";
|
|
344
|
-
var CardAction =
|
|
344
|
+
var CardAction = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("ml-auto flex items-center gap-2", className), ...props }));
|
|
345
345
|
CardAction.displayName = "CardAction";
|
|
346
|
-
var CardTitle =
|
|
346
|
+
var CardTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("text-2xl font-semibold leading-none tracking-tight", className), ...props }));
|
|
347
347
|
CardTitle.displayName = "CardTitle";
|
|
348
|
-
var CardDescription =
|
|
348
|
+
var CardDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
349
349
|
CardDescription.displayName = "CardDescription";
|
|
350
|
-
var CardContent =
|
|
350
|
+
var CardContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
351
351
|
CardContent.displayName = "CardContent";
|
|
352
|
-
var CardFooter =
|
|
352
|
+
var CardFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center p-6 pt-0", className), ...props }));
|
|
353
353
|
CardFooter.displayName = "CardFooter";
|
|
354
354
|
var PolymorphicSlot = Slot;
|
|
355
355
|
var Accordion = AccordionPrimitive.Root;
|
|
356
|
-
var AccordionItem =
|
|
356
|
+
var AccordionItem = React15.forwardRef(({ className, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
357
357
|
AccordionPrimitive.Item,
|
|
358
358
|
{
|
|
359
359
|
ref,
|
|
@@ -366,7 +366,7 @@ var AccordionItem = React14.forwardRef(({ className, style, ...props }, ref) =>
|
|
|
366
366
|
}
|
|
367
367
|
));
|
|
368
368
|
AccordionItem.displayName = "AccordionItem";
|
|
369
|
-
var AccordionTrigger =
|
|
369
|
+
var AccordionTrigger = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
370
370
|
AccordionPrimitive.Trigger,
|
|
371
371
|
{
|
|
372
372
|
ref,
|
|
@@ -388,7 +388,7 @@ var AccordionTrigger = React14.forwardRef(({ className, children, ...props }, re
|
|
|
388
388
|
}
|
|
389
389
|
) }));
|
|
390
390
|
AccordionTrigger.displayName = "AccordionTrigger";
|
|
391
|
-
var AccordionContent =
|
|
391
|
+
var AccordionContent = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
392
392
|
AccordionPrimitive.Content,
|
|
393
393
|
{
|
|
394
394
|
ref,
|
|
@@ -398,7 +398,7 @@ var AccordionContent = React14.forwardRef(({ className, children, ...props }, re
|
|
|
398
398
|
}
|
|
399
399
|
));
|
|
400
400
|
AccordionContent.displayName = "AccordionContent";
|
|
401
|
-
var Checkbox =
|
|
401
|
+
var Checkbox = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
402
402
|
CheckboxPrimitive.Root,
|
|
403
403
|
{
|
|
404
404
|
ref,
|
|
@@ -433,7 +433,7 @@ var buttonVariants = cva(
|
|
|
433
433
|
defaultVariants: { variant: "default", size: "default" }
|
|
434
434
|
}
|
|
435
435
|
);
|
|
436
|
-
var Button =
|
|
436
|
+
var Button = React15.forwardRef(
|
|
437
437
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
438
438
|
const Component = asChild ? Slot : "button";
|
|
439
439
|
return /* @__PURE__ */ jsx(
|
|
@@ -450,7 +450,7 @@ Button.displayName = "Button";
|
|
|
450
450
|
var Popover = PopoverPrimitive.Root;
|
|
451
451
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
452
452
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
453
|
-
var PopoverContent =
|
|
453
|
+
var PopoverContent = React15.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
454
454
|
PopoverPrimitive.Content,
|
|
455
455
|
{
|
|
456
456
|
ref,
|
|
@@ -464,7 +464,7 @@ var PopoverContent = React14.forwardRef(({ className, align = "center", sideOffs
|
|
|
464
464
|
}
|
|
465
465
|
) }));
|
|
466
466
|
PopoverContent.displayName = "PopoverContent";
|
|
467
|
-
var ScrollArea =
|
|
467
|
+
var ScrollArea = React15.forwardRef(
|
|
468
468
|
({
|
|
469
469
|
className,
|
|
470
470
|
children,
|
|
@@ -508,7 +508,7 @@ var ScrollArea = React14.forwardRef(
|
|
|
508
508
|
)
|
|
509
509
|
);
|
|
510
510
|
ScrollArea.displayName = "ScrollArea";
|
|
511
|
-
var ScrollBar =
|
|
511
|
+
var ScrollBar = React15.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
512
512
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
513
513
|
{
|
|
514
514
|
ref,
|
|
@@ -524,7 +524,7 @@ var ScrollBar = React14.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
524
524
|
}
|
|
525
525
|
));
|
|
526
526
|
ScrollBar.displayName = "ScrollBar";
|
|
527
|
-
var Switch =
|
|
527
|
+
var Switch = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
528
528
|
SwitchPrimitive.Root,
|
|
529
529
|
{
|
|
530
530
|
ref,
|
|
@@ -537,9 +537,9 @@ var Switch = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
537
537
|
}
|
|
538
538
|
));
|
|
539
539
|
Switch.displayName = "Switch";
|
|
540
|
-
var Tabs =
|
|
540
|
+
var Tabs = React15.forwardRef(({ variant = "default", ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.Root, { ref, "data-variant": variant, ...props }));
|
|
541
541
|
Tabs.displayName = "Tabs";
|
|
542
|
-
var TabsList =
|
|
542
|
+
var TabsList = React15.forwardRef(({ className, gap, style, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
543
543
|
TabsPrimitive.List,
|
|
544
544
|
{
|
|
545
545
|
ref,
|
|
@@ -552,7 +552,7 @@ var TabsList = React14.forwardRef(({ className, gap, style, ...props }, ref) =>
|
|
|
552
552
|
}
|
|
553
553
|
));
|
|
554
554
|
TabsList.displayName = "TabsList";
|
|
555
|
-
var TabsTrigger =
|
|
555
|
+
var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
556
556
|
TabsPrimitive.Trigger,
|
|
557
557
|
{
|
|
558
558
|
ref,
|
|
@@ -564,7 +564,7 @@ var TabsTrigger = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
564
564
|
}
|
|
565
565
|
));
|
|
566
566
|
TabsTrigger.displayName = "TabsTrigger";
|
|
567
|
-
var TabsContent =
|
|
567
|
+
var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
568
568
|
TabsPrimitive.Content,
|
|
569
569
|
{
|
|
570
570
|
ref,
|
|
@@ -579,7 +579,7 @@ TabsContent.displayName = "TabsContent";
|
|
|
579
579
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
580
580
|
var Tooltip = TooltipPrimitive.Root;
|
|
581
581
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
582
|
-
var TooltipContent =
|
|
582
|
+
var TooltipContent = React15.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
583
583
|
TooltipPrimitive.Content,
|
|
584
584
|
{
|
|
585
585
|
ref,
|
|
@@ -592,13 +592,13 @@ var TooltipContent = React14.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
592
592
|
}
|
|
593
593
|
) }));
|
|
594
594
|
TooltipContent.displayName = "TooltipContent";
|
|
595
|
-
var CarouselContext =
|
|
595
|
+
var CarouselContext = React15.createContext(null);
|
|
596
596
|
function useCarousel() {
|
|
597
|
-
const context =
|
|
597
|
+
const context = React15.useContext(CarouselContext);
|
|
598
598
|
if (!context) throw new Error("useCarousel must be used within a <Carousel />");
|
|
599
599
|
return context;
|
|
600
600
|
}
|
|
601
|
-
var Carousel =
|
|
601
|
+
var Carousel = React15.forwardRef(
|
|
602
602
|
({
|
|
603
603
|
orientation = "horizontal",
|
|
604
604
|
opts,
|
|
@@ -614,19 +614,19 @@ var Carousel = React14.forwardRef(
|
|
|
614
614
|
{ ...opts, axis: orientation === "horizontal" ? "x" : "y" },
|
|
615
615
|
plugins
|
|
616
616
|
);
|
|
617
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
618
|
-
const [canScrollNext, setCanScrollNext] =
|
|
619
|
-
const onSelect =
|
|
617
|
+
const [canScrollPrev, setCanScrollPrev] = React15.useState(false);
|
|
618
|
+
const [canScrollNext, setCanScrollNext] = React15.useState(false);
|
|
619
|
+
const onSelect = React15.useCallback((currentApi) => {
|
|
620
620
|
if (!currentApi) return;
|
|
621
621
|
setCanScrollPrev(currentApi.canScrollPrev());
|
|
622
622
|
setCanScrollNext(currentApi.canScrollNext());
|
|
623
623
|
}, []);
|
|
624
|
-
const scrollPrev =
|
|
625
|
-
const scrollNext =
|
|
626
|
-
|
|
624
|
+
const scrollPrev = React15.useCallback(() => api?.scrollPrev(), [api]);
|
|
625
|
+
const scrollNext = React15.useCallback(() => api?.scrollNext(), [api]);
|
|
626
|
+
React15.useEffect(() => {
|
|
627
627
|
if (api && setApi) setApi(api);
|
|
628
628
|
}, [api, setApi]);
|
|
629
|
-
|
|
629
|
+
React15.useEffect(() => {
|
|
630
630
|
if (!api) return;
|
|
631
631
|
onSelect(api);
|
|
632
632
|
api.on("reInit", onSelect);
|
|
@@ -678,7 +678,7 @@ var Carousel = React14.forwardRef(
|
|
|
678
678
|
}
|
|
679
679
|
);
|
|
680
680
|
Carousel.displayName = "Carousel";
|
|
681
|
-
var CarouselContent =
|
|
681
|
+
var CarouselContent = React15.forwardRef(
|
|
682
682
|
({ className, ...props }, ref) => {
|
|
683
683
|
const { carouselRef, orientation } = useCarousel();
|
|
684
684
|
return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
@@ -692,7 +692,7 @@ var CarouselContent = React14.forwardRef(
|
|
|
692
692
|
}
|
|
693
693
|
);
|
|
694
694
|
CarouselContent.displayName = "CarouselContent";
|
|
695
|
-
var CarouselItem =
|
|
695
|
+
var CarouselItem = React15.forwardRef(
|
|
696
696
|
({ className, ...props }, ref) => {
|
|
697
697
|
const { orientation } = useCarousel();
|
|
698
698
|
return /* @__PURE__ */ jsx(
|
|
@@ -712,7 +712,7 @@ var CarouselItem = React14.forwardRef(
|
|
|
712
712
|
}
|
|
713
713
|
);
|
|
714
714
|
CarouselItem.displayName = "CarouselItem";
|
|
715
|
-
var CarouselPrevious =
|
|
715
|
+
var CarouselPrevious = React15.forwardRef(
|
|
716
716
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
717
717
|
const { orientation, scrollPrev, canScrollPrev, previousLabel } = useCarousel();
|
|
718
718
|
return /* @__PURE__ */ jsxs(
|
|
@@ -738,7 +738,7 @@ var CarouselPrevious = React14.forwardRef(
|
|
|
738
738
|
}
|
|
739
739
|
);
|
|
740
740
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
741
|
-
var CarouselNext =
|
|
741
|
+
var CarouselNext = React15.forwardRef(
|
|
742
742
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
743
743
|
const { orientation, scrollNext, canScrollNext, nextLabel } = useCarousel();
|
|
744
744
|
return /* @__PURE__ */ jsxs(
|
|
@@ -767,7 +767,7 @@ CarouselNext.displayName = "CarouselNext";
|
|
|
767
767
|
var Collapsible = CollapsiblePrimitive.Root;
|
|
768
768
|
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
769
769
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
770
|
-
var Input =
|
|
770
|
+
var Input = React15.forwardRef(({ className, appearance = "standard", type, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
771
771
|
"input",
|
|
772
772
|
{
|
|
773
773
|
ref,
|
|
@@ -782,7 +782,7 @@ var Input = React14.forwardRef(({ className, appearance = "standard", type, ...p
|
|
|
782
782
|
}
|
|
783
783
|
));
|
|
784
784
|
Input.displayName = "Input";
|
|
785
|
-
var Textarea =
|
|
785
|
+
var Textarea = React15.forwardRef(({ className, appearance = "standard", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
786
786
|
"textarea",
|
|
787
787
|
{
|
|
788
788
|
ref,
|
|
@@ -796,7 +796,7 @@ var Textarea = React14.forwardRef(({ className, appearance = "standard", ...prop
|
|
|
796
796
|
}
|
|
797
797
|
));
|
|
798
798
|
Textarea.displayName = "Textarea";
|
|
799
|
-
var FloatingPopoverContext =
|
|
799
|
+
var FloatingPopoverContext = React15.createContext(null);
|
|
800
800
|
function FloatingPopover({
|
|
801
801
|
open: controlledOpen,
|
|
802
802
|
defaultOpen = false,
|
|
@@ -805,9 +805,9 @@ function FloatingPopover({
|
|
|
805
805
|
offset: offset$1 = 8,
|
|
806
806
|
children
|
|
807
807
|
}) {
|
|
808
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
808
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React15.useState(defaultOpen);
|
|
809
809
|
const open = controlledOpen ?? uncontrolledOpen;
|
|
810
|
-
const setOpen =
|
|
810
|
+
const setOpen = React15.useCallback((next) => {
|
|
811
811
|
onOpenChange?.(next);
|
|
812
812
|
if (controlledOpen === void 0) setUncontrolledOpen(next);
|
|
813
813
|
}, [controlledOpen, onOpenChange]);
|
|
@@ -822,18 +822,18 @@ function FloatingPopover({
|
|
|
822
822
|
const dismiss = useDismiss(context, { outsidePressEvent: "pointerdown" });
|
|
823
823
|
const role = useRole(context, { role: "dialog" });
|
|
824
824
|
const { getReferenceProps, getFloatingProps } = useInteractions([click, dismiss, role]);
|
|
825
|
-
const value =
|
|
825
|
+
const value = React15.useMemo(
|
|
826
826
|
() => ({ open, floatingStyles, getReferenceProps, getFloatingProps, context, refs }),
|
|
827
827
|
[context, floatingStyles, getFloatingProps, getReferenceProps, open, refs]
|
|
828
828
|
);
|
|
829
829
|
return /* @__PURE__ */ jsx(FloatingPopoverContext.Provider, { value, children });
|
|
830
830
|
}
|
|
831
831
|
function useFloatingPopoverContext() {
|
|
832
|
-
const context =
|
|
832
|
+
const context = React15.useContext(FloatingPopoverContext);
|
|
833
833
|
if (!context) throw new Error("FloatingPopover components must be used within <FloatingPopover>");
|
|
834
834
|
return context;
|
|
835
835
|
}
|
|
836
|
-
var FloatingPopoverTrigger =
|
|
836
|
+
var FloatingPopoverTrigger = React15.forwardRef(
|
|
837
837
|
({ asChild, ...props }, forwardedRef) => {
|
|
838
838
|
const context = useFloatingPopoverContext();
|
|
839
839
|
const Component = asChild ? Slot : "button";
|
|
@@ -854,7 +854,7 @@ var FloatingPopoverTrigger = React14.forwardRef(
|
|
|
854
854
|
}
|
|
855
855
|
);
|
|
856
856
|
FloatingPopoverTrigger.displayName = "FloatingPopoverTrigger";
|
|
857
|
-
var FloatingPopoverContent =
|
|
857
|
+
var FloatingPopoverContent = React15.forwardRef(
|
|
858
858
|
({ className, style, portal = true, ...props }, forwardedRef) => {
|
|
859
859
|
const context = useFloatingPopoverContext();
|
|
860
860
|
if (!context.open) return null;
|
|
@@ -947,7 +947,7 @@ Indicator2.displayName = "Indicator";
|
|
|
947
947
|
var HoverCard = HoverCardPrimitive.Root;
|
|
948
948
|
var HoverCardPortal = HoverCardPrimitive.Portal;
|
|
949
949
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
950
|
-
var HoverCardContent =
|
|
950
|
+
var HoverCardContent = React15.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
951
951
|
HoverCardPrimitive.Content,
|
|
952
952
|
{
|
|
953
953
|
ref,
|
|
@@ -961,7 +961,7 @@ var HoverCardContent = React14.forwardRef(({ className, align = "center", sideOf
|
|
|
961
961
|
}
|
|
962
962
|
));
|
|
963
963
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
964
|
-
var InputOTP =
|
|
964
|
+
var InputOTP = React15.forwardRef(
|
|
965
965
|
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
966
966
|
OTPInput,
|
|
967
967
|
{
|
|
@@ -973,12 +973,12 @@ var InputOTP = React14.forwardRef(
|
|
|
973
973
|
)
|
|
974
974
|
);
|
|
975
975
|
InputOTP.displayName = "InputOTP";
|
|
976
|
-
var InputOTPGroup =
|
|
976
|
+
var InputOTPGroup = React15.forwardRef(
|
|
977
977
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center", className), ...props })
|
|
978
978
|
);
|
|
979
979
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
980
|
-
var InputOTPSlot =
|
|
981
|
-
const inputOTPContext =
|
|
980
|
+
var InputOTPSlot = React15.forwardRef(({ index, className, ...props }, ref) => {
|
|
981
|
+
const inputOTPContext = React15.useContext(OTPInputContext);
|
|
982
982
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
983
983
|
return /* @__PURE__ */ jsxs(
|
|
984
984
|
"div",
|
|
@@ -998,7 +998,7 @@ var InputOTPSlot = React14.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
998
998
|
);
|
|
999
999
|
});
|
|
1000
1000
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
1001
|
-
var InputOTPSeparator =
|
|
1001
|
+
var InputOTPSeparator = React15.forwardRef(
|
|
1002
1002
|
({ ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx(Dot, {}) })
|
|
1003
1003
|
);
|
|
1004
1004
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
@@ -1107,32 +1107,32 @@ function InputGroupText({ className, ...props }) {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
);
|
|
1109
1109
|
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1110
|
+
var InputGroupInput = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1111
|
+
Input,
|
|
1112
|
+
{
|
|
1113
|
+
ref,
|
|
1114
|
+
"data-slot": "input-group-control",
|
|
1115
|
+
className: cn(
|
|
1116
|
+
"flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",
|
|
1117
|
+
className
|
|
1118
|
+
),
|
|
1119
|
+
...props
|
|
1120
|
+
}
|
|
1121
|
+
));
|
|
1122
|
+
InputGroupInput.displayName = "InputGroupInput";
|
|
1123
|
+
var InputGroupTextarea = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1124
|
+
Textarea,
|
|
1125
|
+
{
|
|
1126
|
+
ref,
|
|
1127
|
+
"data-slot": "input-group-control",
|
|
1128
|
+
className: cn(
|
|
1129
|
+
"flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",
|
|
1130
|
+
className
|
|
1131
|
+
),
|
|
1132
|
+
...props
|
|
1133
|
+
}
|
|
1134
|
+
));
|
|
1135
|
+
InputGroupTextarea.displayName = "InputGroupTextarea";
|
|
1136
1136
|
var menuItemClassName = "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0";
|
|
1137
1137
|
var menuContentClassName = "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-menu-surface p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2";
|
|
1138
1138
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
@@ -1141,42 +1141,42 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
1141
1141
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1142
1142
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1143
1143
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1144
|
-
var DropdownMenuSubTrigger =
|
|
1144
|
+
var DropdownMenuSubTrigger = React15.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(DropdownMenuPrimitive.SubTrigger, { ref, className: cn(menuItemClassName, "data-[state=open]:bg-accent", inset && "pl-8", className), ...props, children: [
|
|
1145
1145
|
children,
|
|
1146
1146
|
/* @__PURE__ */ jsx(ChevronRight, { "aria-hidden": "true", className: "ml-auto" })
|
|
1147
1147
|
] }));
|
|
1148
1148
|
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
1149
|
-
var DropdownMenuSubContent =
|
|
1149
|
+
var DropdownMenuSubContent = React15.forwardRef(
|
|
1150
1150
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.SubContent, { ref, className: cn(menuContentClassName, className), ...props })
|
|
1151
1151
|
);
|
|
1152
1152
|
DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
|
|
1153
|
-
var DropdownMenuContent =
|
|
1153
|
+
var DropdownMenuContent = React15.forwardRef(
|
|
1154
1154
|
({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.Content, { ref, sideOffset, className: cn(menuContentClassName, className), ...props }) })
|
|
1155
1155
|
);
|
|
1156
1156
|
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
1157
|
-
var DropdownMenuItem =
|
|
1157
|
+
var DropdownMenuItem = React15.forwardRef(
|
|
1158
1158
|
({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Item, { ref, className: cn(menuItemClassName, inset && "pl-8", className), ...props })
|
|
1159
1159
|
);
|
|
1160
1160
|
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
1161
|
-
var DropdownMenuCheckboxItem =
|
|
1161
|
+
var DropdownMenuCheckboxItem = React15.forwardRef(
|
|
1162
1162
|
({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(DropdownMenuPrimitive.CheckboxItem, { ref, className: cn(menuItemClassName, "pl-8", className), checked, ...props, children: [
|
|
1163
1163
|
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { "aria-hidden": "true", className: "h-4 w-4" }) }) }),
|
|
1164
1164
|
children
|
|
1165
1165
|
] })
|
|
1166
1166
|
);
|
|
1167
1167
|
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
1168
|
-
var DropdownMenuRadioItem =
|
|
1168
|
+
var DropdownMenuRadioItem = React15.forwardRef(
|
|
1169
1169
|
({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DropdownMenuPrimitive.RadioItem, { ref, className: cn(menuItemClassName, "pl-8", className), ...props, children: [
|
|
1170
1170
|
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { "aria-hidden": "true", className: "h-2 w-2 fill-current" }) }) }),
|
|
1171
1171
|
children
|
|
1172
1172
|
] })
|
|
1173
1173
|
);
|
|
1174
1174
|
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
1175
|
-
var DropdownMenuLabel =
|
|
1175
|
+
var DropdownMenuLabel = React15.forwardRef(
|
|
1176
1176
|
({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Label, { ref, className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className), ...props })
|
|
1177
1177
|
);
|
|
1178
1178
|
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
1179
|
-
var DropdownMenuSeparator =
|
|
1179
|
+
var DropdownMenuSeparator = React15.forwardRef(
|
|
1180
1180
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props })
|
|
1181
1181
|
);
|
|
1182
1182
|
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
@@ -1185,22 +1185,22 @@ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
|
1185
1185
|
var Select = SelectPrimitive.Root;
|
|
1186
1186
|
var SelectGroup = SelectPrimitive.Group;
|
|
1187
1187
|
var SelectValue = SelectPrimitive.Value;
|
|
1188
|
-
var SelectTrigger =
|
|
1189
|
-
({ className, children, iconClassName, size = "default", ...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, { ref, className: cn("flex h-10 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-control-surface px-3 py-2 text-left text-sm shadow-sm ring-offset-control-surface data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:min-w-0 [&>span]:flex-1 [&>span]:text-left", size === "sm" && "h-8 px-2 py-1 text-xs", className), ...props, children: [
|
|
1188
|
+
var SelectTrigger = React15.forwardRef(
|
|
1189
|
+
({ className, children, iconClassName, size = "default", ...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, { ref, className: cn("flex h-10 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-control-surface px-3 py-2 text-left text-sm text-foreground shadow-sm ring-offset-control-surface data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:min-w-0 [&>span]:flex-1 [&>span]:text-left", size === "sm" && "h-8 px-2 py-1 text-xs", className), ...props, children: [
|
|
1190
1190
|
children,
|
|
1191
1191
|
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true", className: cn("h-4 w-4 opacity-50", iconClassName) }) })
|
|
1192
1192
|
] })
|
|
1193
1193
|
);
|
|
1194
1194
|
SelectTrigger.displayName = "SelectTrigger";
|
|
1195
|
-
var SelectScrollUpButton =
|
|
1195
|
+
var SelectScrollUpButton = React15.forwardRef(
|
|
1196
1196
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.ScrollUpButton, { ref, className: cn("flex cursor-default items-center justify-center py-1", className), ...props, children: /* @__PURE__ */ jsx(ChevronUp, { "aria-hidden": "true", className: "h-4 w-4" }) })
|
|
1197
1197
|
);
|
|
1198
1198
|
SelectScrollUpButton.displayName = "SelectScrollUpButton";
|
|
1199
|
-
var SelectScrollDownButton =
|
|
1199
|
+
var SelectScrollDownButton = React15.forwardRef(
|
|
1200
1200
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, { ref, className: cn("flex cursor-default items-center justify-center py-1", className), ...props, children: /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": "true", className: "h-4 w-4" }) })
|
|
1201
1201
|
);
|
|
1202
1202
|
SelectScrollDownButton.displayName = "SelectScrollDownButton";
|
|
1203
|
-
var SelectContent =
|
|
1203
|
+
var SelectContent = React15.forwardRef(
|
|
1204
1204
|
({ className, children, position = "popper", viewportClassName, disableTriggerViewportSizing = false, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, { ref, position, className: cn(menuContentClassName, "relative max-h-[var(--radix-select-content-available-height)] overflow-y-auto overflow-x-hidden", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className), ...props, children: [
|
|
1205
1205
|
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
1206
1206
|
/* @__PURE__ */ jsx(SelectPrimitive.Viewport, { className: cn("p-1", position === "popper" && "w-full min-w-[var(--radix-select-trigger-width)]", position === "popper" && !disableTriggerViewportSizing && "h-[var(--radix-select-trigger-height)]", viewportClassName), children }),
|
|
@@ -1208,11 +1208,11 @@ var SelectContent = React14.forwardRef(
|
|
|
1208
1208
|
] }) })
|
|
1209
1209
|
);
|
|
1210
1210
|
SelectContent.displayName = "SelectContent";
|
|
1211
|
-
var SelectLabel =
|
|
1211
|
+
var SelectLabel = React15.forwardRef(
|
|
1212
1212
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Label, { ref, className: cn("px-2 py-1.5 text-sm font-semibold", className), ...props })
|
|
1213
1213
|
);
|
|
1214
1214
|
SelectLabel.displayName = "SelectLabel";
|
|
1215
|
-
var SelectItem =
|
|
1215
|
+
var SelectItem = React15.forwardRef(
|
|
1216
1216
|
({ className, children, indicatorClassName, itemText, hideIndicator = false, ...props }, ref) => /* @__PURE__ */ jsxs(SelectPrimitive.Item, { ref, className: cn(menuItemClassName, "w-full", hideIndicator ? "px-2" : "pl-8 pr-2", className), ...props, children: [
|
|
1217
1217
|
!hideIndicator ? /* @__PURE__ */ jsx("span", { className: cn("absolute left-2 flex h-3.5 w-3.5 items-center justify-center", indicatorClassName), children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { "aria-hidden": "true", className: "h-4 w-4" }) }) }) : null,
|
|
1218
1218
|
itemText ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -1222,7 +1222,7 @@ var SelectItem = React14.forwardRef(
|
|
|
1222
1222
|
] })
|
|
1223
1223
|
);
|
|
1224
1224
|
SelectItem.displayName = "SelectItem";
|
|
1225
|
-
var SelectSeparator =
|
|
1225
|
+
var SelectSeparator = React15.forwardRef(
|
|
1226
1226
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props })
|
|
1227
1227
|
);
|
|
1228
1228
|
SelectSeparator.displayName = "SelectSeparator";
|
|
@@ -1245,11 +1245,11 @@ var mediaPreviewFrameClassName = ({
|
|
|
1245
1245
|
aspectRatio === "9:16" && "aspect-[9/16]",
|
|
1246
1246
|
className
|
|
1247
1247
|
);
|
|
1248
|
-
var MediaPreviewFrame =
|
|
1248
|
+
var MediaPreviewFrame = React15.forwardRef(
|
|
1249
1249
|
({ aspectRatio = "square", maxSquareHeight = true, className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: mediaPreviewFrameClassName({ aspectRatio, maxSquareHeight, className }), ...props })
|
|
1250
1250
|
);
|
|
1251
1251
|
MediaPreviewFrame.displayName = "MediaPreviewFrame";
|
|
1252
|
-
var MediaPreviewImage =
|
|
1252
|
+
var MediaPreviewImage = React15.forwardRef(
|
|
1253
1253
|
({ fit = "contain", className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1254
1254
|
"img",
|
|
1255
1255
|
{
|
|
@@ -1264,7 +1264,7 @@ var Dialog = DialogPrimitive.Root;
|
|
|
1264
1264
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
1265
1265
|
var DialogPortal = DialogPrimitive.Portal;
|
|
1266
1266
|
var DialogClose = DialogPrimitive.Close;
|
|
1267
|
-
var DialogOverlay =
|
|
1267
|
+
var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1268
1268
|
DialogPrimitive.Overlay,
|
|
1269
1269
|
{
|
|
1270
1270
|
ref,
|
|
@@ -1274,7 +1274,7 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
1274
1274
|
}
|
|
1275
1275
|
));
|
|
1276
1276
|
DialogOverlay.displayName = "DialogOverlay";
|
|
1277
|
-
var DialogContent =
|
|
1277
|
+
var DialogContent = React15.forwardRef(
|
|
1278
1278
|
({ className, children, showCloseButton = true, closeLabel = "Close", overlayClassName, overlayStyle, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
1279
1279
|
/* @__PURE__ */ jsx(DialogOverlay, { className: overlayClassName, style: overlayStyle }),
|
|
1280
1280
|
/* @__PURE__ */ jsxs(
|
|
@@ -1296,7 +1296,7 @@ var DialogContent = React14.forwardRef(
|
|
|
1296
1296
|
] })
|
|
1297
1297
|
);
|
|
1298
1298
|
DialogContent.displayName = "DialogContent";
|
|
1299
|
-
var DialogContentNoAnimation =
|
|
1299
|
+
var DialogContentNoAnimation = React15.forwardRef(
|
|
1300
1300
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogContent, { ref, className: cn("duration-0 data-[state=open]:animate-none data-[state=closed]:animate-none", className), ...props })
|
|
1301
1301
|
);
|
|
1302
1302
|
DialogContentNoAnimation.displayName = "DialogContentNoAnimation";
|
|
@@ -1304,12 +1304,12 @@ var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { cla
|
|
|
1304
1304
|
DialogHeader.displayName = "DialogHeader";
|
|
1305
1305
|
var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
1306
1306
|
DialogFooter.displayName = "DialogFooter";
|
|
1307
|
-
var DialogTitle =
|
|
1307
|
+
var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn("text-lg font-semibold leading-none tracking-tight", className), ...props }));
|
|
1308
1308
|
DialogTitle.displayName = "DialogTitle";
|
|
1309
|
-
var DialogDescription =
|
|
1309
|
+
var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
1310
1310
|
DialogDescription.displayName = "DialogDescription";
|
|
1311
1311
|
var AlertDialog = ({ onOpenChange, open, ...props }) => {
|
|
1312
|
-
|
|
1312
|
+
React15.useEffect(() => {
|
|
1313
1313
|
if (open !== false || typeof document === "undefined") return void 0;
|
|
1314
1314
|
const cleanup = () => {
|
|
1315
1315
|
if (!document.querySelector('[data-state="open"][role="dialog"], [data-state="open"][role="alertdialog"]')) {
|
|
@@ -1320,7 +1320,7 @@ var AlertDialog = ({ onOpenChange, open, ...props }) => {
|
|
|
1320
1320
|
const timer = window.setTimeout(cleanup, 300);
|
|
1321
1321
|
return () => window.clearTimeout(timer);
|
|
1322
1322
|
}, [open]);
|
|
1323
|
-
const handleOpenChange =
|
|
1323
|
+
const handleOpenChange = React15.useCallback((next) => {
|
|
1324
1324
|
onOpenChange?.(next);
|
|
1325
1325
|
if (!next && typeof document !== "undefined") requestAnimationFrame(() => {
|
|
1326
1326
|
if (!document.querySelector('[data-state="open"][role="dialog"], [data-state="open"][role="alertdialog"]')) document.body.style.pointerEvents = "";
|
|
@@ -1330,20 +1330,20 @@ var AlertDialog = ({ onOpenChange, open, ...props }) => {
|
|
|
1330
1330
|
};
|
|
1331
1331
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
1332
1332
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
1333
|
-
var AlertDialogOverlay =
|
|
1333
|
+
var AlertDialogOverlay = React15.forwardRef(({ className, style, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Overlay, { ref, className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), "data-monkeys-overlay": true, style: { pointerEvents: "auto", ...style }, ...props }));
|
|
1334
1334
|
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
1335
|
-
var AlertDialogContent =
|
|
1335
|
+
var AlertDialogContent = React15.forwardRef(({ className, style, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
1336
1336
|
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
1337
1337
|
/* @__PURE__ */ jsx(AlertDialogPrimitive.Content, { ref, className: cn("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border bg-dialog-surface p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", className), "data-monkeys-dialog-content": true, style: { pointerEvents: "auto", ...style }, ...props })
|
|
1338
1338
|
] }));
|
|
1339
1339
|
AlertDialogContent.displayName = "AlertDialogContent";
|
|
1340
1340
|
var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
1341
1341
|
var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
1342
|
-
var AlertDialogTitle =
|
|
1343
|
-
var AlertDialogDescription =
|
|
1344
|
-
var AlertDialogAction =
|
|
1345
|
-
var AlertDialogDangerAction =
|
|
1346
|
-
var AlertDialogCancel =
|
|
1342
|
+
var AlertDialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
|
|
1343
|
+
var AlertDialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
1344
|
+
var AlertDialogAction = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
|
|
1345
|
+
var AlertDialogDangerAction = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants({ variant: "destructive" }), className), ...props }));
|
|
1346
|
+
var AlertDialogCancel = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Cancel, { ref, className: cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className), ...props }));
|
|
1347
1347
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1348
1348
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1349
1349
|
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
@@ -1373,7 +1373,7 @@ var isValidPillValue = (value, type) => {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
return true;
|
|
1375
1375
|
};
|
|
1376
|
-
var PillInput =
|
|
1376
|
+
var PillInput = React15.forwardRef(
|
|
1377
1377
|
({
|
|
1378
1378
|
value = [],
|
|
1379
1379
|
onChange,
|
|
@@ -1384,9 +1384,9 @@ var PillInput = React14.forwardRef(
|
|
|
1384
1384
|
messages: messageOverrides
|
|
1385
1385
|
}, forwardedRef) => {
|
|
1386
1386
|
const messages = { ...defaultMessages, ...messageOverrides };
|
|
1387
|
-
const [inputValue, setInputValue] =
|
|
1388
|
-
const localRef =
|
|
1389
|
-
const setInputRef =
|
|
1387
|
+
const [inputValue, setInputValue] = React15.useState("");
|
|
1388
|
+
const localRef = React15.useRef(null);
|
|
1389
|
+
const setInputRef = React15.useCallback(
|
|
1390
1390
|
(node) => {
|
|
1391
1391
|
localRef.current = node;
|
|
1392
1392
|
if (typeof forwardedRef === "function") forwardedRef(node);
|
|
@@ -1394,13 +1394,13 @@ var PillInput = React14.forwardRef(
|
|
|
1394
1394
|
},
|
|
1395
1395
|
[forwardedRef]
|
|
1396
1396
|
);
|
|
1397
|
-
const removePill =
|
|
1397
|
+
const removePill = React15.useCallback(
|
|
1398
1398
|
(index) => {
|
|
1399
1399
|
if (!disabled) onChange(value.filter((_, currentIndex) => currentIndex !== index));
|
|
1400
1400
|
},
|
|
1401
1401
|
[disabled, onChange, value]
|
|
1402
1402
|
);
|
|
1403
|
-
const addPill =
|
|
1403
|
+
const addPill = React15.useCallback(
|
|
1404
1404
|
(candidate) => {
|
|
1405
1405
|
const trimmed = candidate.trim();
|
|
1406
1406
|
if (!isValidPillValue(trimmed, fieldType)) return;
|
|
@@ -1464,7 +1464,7 @@ var PillInput = React14.forwardRef(
|
|
|
1464
1464
|
}
|
|
1465
1465
|
);
|
|
1466
1466
|
PillInput.displayName = "PillInput";
|
|
1467
|
-
var Progress =
|
|
1467
|
+
var Progress = React15.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1468
1468
|
ProgressPrimitive.Root,
|
|
1469
1469
|
{
|
|
1470
1470
|
ref,
|
|
@@ -1503,39 +1503,39 @@ var ResizableHandle = ({
|
|
|
1503
1503
|
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" }) })
|
|
1504
1504
|
}
|
|
1505
1505
|
);
|
|
1506
|
-
var Sidebar =
|
|
1506
|
+
var Sidebar = React15.forwardRef(
|
|
1507
1507
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("aside", { ref, className: cn("flex h-full min-h-0 flex-col rounded-xl border bg-card text-card-foreground shadow", className), ...props })
|
|
1508
1508
|
);
|
|
1509
1509
|
Sidebar.displayName = "Sidebar";
|
|
1510
|
-
var SidebarHeader =
|
|
1510
|
+
var SidebarHeader = React15.forwardRef(
|
|
1511
1511
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex shrink-0 flex-col gap-3 p-4", className), ...props })
|
|
1512
1512
|
);
|
|
1513
1513
|
SidebarHeader.displayName = "SidebarHeader";
|
|
1514
|
-
var SidebarContent =
|
|
1514
|
+
var SidebarContent = React15.forwardRef(
|
|
1515
1515
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("min-h-0 flex-1 p-2 pt-0", className), ...props })
|
|
1516
1516
|
);
|
|
1517
1517
|
SidebarContent.displayName = "SidebarContent";
|
|
1518
|
-
var SidebarFooter =
|
|
1518
|
+
var SidebarFooter = React15.forwardRef(
|
|
1519
1519
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("shrink-0 p-4 pt-2", className), ...props })
|
|
1520
1520
|
);
|
|
1521
1521
|
SidebarFooter.displayName = "SidebarFooter";
|
|
1522
|
-
var SidebarGroup =
|
|
1522
|
+
var SidebarGroup = React15.forwardRef(
|
|
1523
1523
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex flex-col gap-2", className), ...props })
|
|
1524
1524
|
);
|
|
1525
1525
|
SidebarGroup.displayName = "SidebarGroup";
|
|
1526
|
-
var SidebarGroupLabel =
|
|
1526
|
+
var SidebarGroupLabel = React15.forwardRef(
|
|
1527
1527
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("px-2 text-xs font-medium text-muted-foreground", className), ...props })
|
|
1528
1528
|
);
|
|
1529
1529
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
1530
|
-
var SidebarMenu =
|
|
1530
|
+
var SidebarMenu = React15.forwardRef(
|
|
1531
1531
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("ul", { ref, className: cn("flex flex-col gap-1", className), ...props })
|
|
1532
1532
|
);
|
|
1533
1533
|
SidebarMenu.displayName = "SidebarMenu";
|
|
1534
|
-
var SidebarMenuItem =
|
|
1534
|
+
var SidebarMenuItem = React15.forwardRef(
|
|
1535
1535
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("min-w-0", className), ...props })
|
|
1536
1536
|
);
|
|
1537
1537
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
1538
|
-
var SidebarMenuButton =
|
|
1538
|
+
var SidebarMenuButton = React15.forwardRef(
|
|
1539
1539
|
({ className, isActive, type = "button", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1540
1540
|
"button",
|
|
1541
1541
|
{
|
|
@@ -1552,7 +1552,7 @@ var SidebarMenuButton = React14.forwardRef(
|
|
|
1552
1552
|
)
|
|
1553
1553
|
);
|
|
1554
1554
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
1555
|
-
var Label3 =
|
|
1555
|
+
var Label3 = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1556
1556
|
LabelPrimitive.Root,
|
|
1557
1557
|
{
|
|
1558
1558
|
ref,
|
|
@@ -1565,7 +1565,7 @@ var Sheet = DialogPrimitive.Root;
|
|
|
1565
1565
|
var SheetTrigger = DialogPrimitive.Trigger;
|
|
1566
1566
|
var SheetClose = DialogPrimitive.Close;
|
|
1567
1567
|
var SheetPortal = DialogPrimitive.Portal;
|
|
1568
|
-
var SheetOverlay =
|
|
1568
|
+
var SheetOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1569
1569
|
DialogPrimitive.Overlay,
|
|
1570
1570
|
{
|
|
1571
1571
|
ref,
|
|
@@ -1583,7 +1583,7 @@ var sideClassNames = {
|
|
|
1583
1583
|
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
1584
1584
|
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm"
|
|
1585
1585
|
};
|
|
1586
|
-
var SheetContent =
|
|
1586
|
+
var SheetContent = React15.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
1587
1587
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
1588
1588
|
/* @__PURE__ */ jsxs(
|
|
1589
1589
|
DialogPrimitive.Content,
|
|
@@ -1608,9 +1608,9 @@ var SheetContent = React14.forwardRef(({ side = "right", className, children, ..
|
|
|
1608
1608
|
SheetContent.displayName = "SheetContent";
|
|
1609
1609
|
var SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
1610
1610
|
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
1611
|
-
var SheetTitle =
|
|
1611
|
+
var SheetTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, { ref, className: cn("text-lg font-semibold text-foreground", className), ...props }));
|
|
1612
1612
|
SheetTitle.displayName = "SheetTitle";
|
|
1613
|
-
var SheetDescription =
|
|
1613
|
+
var SheetDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
|
|
1614
1614
|
SheetDescription.displayName = "SheetDescription";
|
|
1615
1615
|
var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
|
|
1616
1616
|
var getStepPrecision = (step) => {
|
|
@@ -1638,7 +1638,7 @@ var normalizeSliderNumber = (value, options) => {
|
|
|
1638
1638
|
return nextValue;
|
|
1639
1639
|
};
|
|
1640
1640
|
var formatSliderNumber = (value) => isFiniteNumber(value) ? `${value}` : "NaN";
|
|
1641
|
-
var Slider =
|
|
1641
|
+
var Slider = React15.forwardRef(
|
|
1642
1642
|
({
|
|
1643
1643
|
className,
|
|
1644
1644
|
value,
|
|
@@ -1653,19 +1653,19 @@ var Slider = React14.forwardRef(
|
|
|
1653
1653
|
onEditableValueCommit,
|
|
1654
1654
|
...props
|
|
1655
1655
|
}, ref) => {
|
|
1656
|
-
const inputRef =
|
|
1656
|
+
const inputRef = React15.useRef(null);
|
|
1657
1657
|
const currentValue = value?.[0];
|
|
1658
1658
|
const hasCurrentValue = isFiniteNumber(currentValue);
|
|
1659
1659
|
const hasRange = isFiniteNumber(min) && isFiniteNumber(max);
|
|
1660
1660
|
const useEnhancedLayout = Boolean(editableValue || showRangeLabels);
|
|
1661
|
-
const [isEditingValue, setIsEditingValue] =
|
|
1662
|
-
const [draftValue, setDraftValue] =
|
|
1661
|
+
const [isEditingValue, setIsEditingValue] = React15.useState(false);
|
|
1662
|
+
const [draftValue, setDraftValue] = React15.useState(hasCurrentValue ? String(currentValue) : "");
|
|
1663
1663
|
const showEditingLayout = useEnhancedLayout && isEditingValue;
|
|
1664
|
-
|
|
1664
|
+
React15.useEffect(() => {
|
|
1665
1665
|
if (isEditingValue) return;
|
|
1666
1666
|
setDraftValue(hasCurrentValue ? String(currentValue) : "");
|
|
1667
1667
|
}, [currentValue, hasCurrentValue, isEditingValue]);
|
|
1668
|
-
|
|
1668
|
+
React15.useEffect(() => {
|
|
1669
1669
|
if (!isEditingValue) return;
|
|
1670
1670
|
const rafId = window.requestAnimationFrame(() => {
|
|
1671
1671
|
inputRef.current?.focus();
|
|
@@ -1673,11 +1673,11 @@ var Slider = React14.forwardRef(
|
|
|
1673
1673
|
});
|
|
1674
1674
|
return () => window.cancelAnimationFrame(rafId);
|
|
1675
1675
|
}, [isEditingValue]);
|
|
1676
|
-
const cancelEditingValue =
|
|
1676
|
+
const cancelEditingValue = React15.useCallback(() => {
|
|
1677
1677
|
setDraftValue(hasCurrentValue ? String(currentValue) : "");
|
|
1678
1678
|
setIsEditingValue(false);
|
|
1679
1679
|
}, [currentValue, hasCurrentValue]);
|
|
1680
|
-
const commitEditingValue =
|
|
1680
|
+
const commitEditingValue = React15.useCallback(() => {
|
|
1681
1681
|
if (!editableValue || !onEditableValueCommit) {
|
|
1682
1682
|
setIsEditingValue(false);
|
|
1683
1683
|
return;
|
|
@@ -1787,7 +1787,7 @@ var Slider = React14.forwardRef(
|
|
|
1787
1787
|
}
|
|
1788
1788
|
);
|
|
1789
1789
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
1790
|
-
var StatusState =
|
|
1790
|
+
var StatusState = React15.forwardRef(
|
|
1791
1791
|
({ title, description, presentation = "panel", className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1792
1792
|
"div",
|
|
1793
1793
|
{
|
|
@@ -2020,26 +2020,26 @@ function SkeletonTable({
|
|
|
2020
2020
|
Array.from({ length: rows }).map((_, rowIndex) => /* @__PURE__ */ jsx("div", { className: cn("flex px-4 py-3", rowIndex !== rows - 1 && "border-b"), children: Array.from({ length: actualColumns }).map((_2, colIndex) => /* @__PURE__ */ jsx("div", { className: "px-2", style: { width: getColumnWidth(colIndex) }, children: showCheckbox && colIndex === 0 ? /* @__PURE__ */ jsx(Skeleton, { className: "size-4 rounded" }) : /* @__PURE__ */ jsx(Skeleton, { className: "h-4 rounded", style: { width: `${60 + Math.random() * 30}%` } }) }, colIndex)) }, rowIndex))
|
|
2021
2021
|
] });
|
|
2022
2022
|
}
|
|
2023
|
-
var Table =
|
|
2023
|
+
var Table = React15.forwardRef(({ className, container = true, containerClassName, containerProps, density = "compact", ...props }, ref) => {
|
|
2024
2024
|
const table = /* @__PURE__ */ jsx("table", { ref, "data-density": density, className: cn("w-full caption-bottom text-sm", className), ...props });
|
|
2025
2025
|
if (!container) return table;
|
|
2026
2026
|
const { className: nestedClassName, ...rest } = containerProps ?? {};
|
|
2027
2027
|
return /* @__PURE__ */ jsx("div", { className: cn("relative w-full overflow-auto", containerClassName, nestedClassName), ...rest, children: table });
|
|
2028
2028
|
});
|
|
2029
2029
|
Table.displayName = "Table";
|
|
2030
|
-
var TableHeader =
|
|
2030
|
+
var TableHeader = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
2031
2031
|
TableHeader.displayName = "TableHeader";
|
|
2032
|
-
var TableBody =
|
|
2032
|
+
var TableBody = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
2033
2033
|
TableBody.displayName = "TableBody";
|
|
2034
|
-
var TableFooter =
|
|
2034
|
+
var TableFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tfoot", { ref, className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className), ...props }));
|
|
2035
2035
|
TableFooter.displayName = "TableFooter";
|
|
2036
|
-
var TableRow =
|
|
2036
|
+
var TableRow = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tr", { ref, className: cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className), ...props }));
|
|
2037
2037
|
TableRow.displayName = "TableRow";
|
|
2038
|
-
var TableHead =
|
|
2038
|
+
var TableHead = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("th", { ref, className: cn("h-10 px-2 text-left align-middle font-medium text-muted-foreground [[data-density=comfortable]_&]:h-12 [[data-density=comfortable]_&]:px-4 [&:has([role=checkbox])]:pr-0", className), ...props }));
|
|
2039
2039
|
TableHead.displayName = "TableHead";
|
|
2040
|
-
var TableCell =
|
|
2040
|
+
var TableCell = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("td", { ref, className: cn("p-2 align-middle [[data-density=comfortable]_&]:p-4 [&:has([role=checkbox])]:pr-0", className), ...props }));
|
|
2041
2041
|
TableCell.displayName = "TableCell";
|
|
2042
|
-
var TableCaption =
|
|
2042
|
+
var TableCaption = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("caption", { ref, className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
|
|
2043
2043
|
TableCaption.displayName = "TableCaption";
|
|
2044
2044
|
var toggleClassName = (input = {}) => cn(
|
|
2045
2045
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
@@ -2048,7 +2048,7 @@ var toggleClassName = (input = {}) => cn(
|
|
|
2048
2048
|
input.className
|
|
2049
2049
|
);
|
|
2050
2050
|
var toggleVariants = toggleClassName;
|
|
2051
|
-
var Toggle =
|
|
2051
|
+
var Toggle = React15.forwardRef(({
|
|
2052
2052
|
pressed,
|
|
2053
2053
|
defaultPressed = false,
|
|
2054
2054
|
onPressedChange,
|
|
@@ -2060,7 +2060,7 @@ var Toggle = React14.forwardRef(({
|
|
|
2060
2060
|
type = "button",
|
|
2061
2061
|
...props
|
|
2062
2062
|
}, ref) => {
|
|
2063
|
-
const [uncontrolledPressed, setUncontrolledPressed] =
|
|
2063
|
+
const [uncontrolledPressed, setUncontrolledPressed] = React15.useState(defaultPressed);
|
|
2064
2064
|
const resolvedPressed = pressed ?? uncontrolledPressed;
|
|
2065
2065
|
return /* @__PURE__ */ jsx(
|
|
2066
2066
|
"button",
|
|
@@ -2083,14 +2083,14 @@ var Toggle = React14.forwardRef(({
|
|
|
2083
2083
|
);
|
|
2084
2084
|
});
|
|
2085
2085
|
Toggle.displayName = "Toggle";
|
|
2086
|
-
var ToggleGroupContext =
|
|
2086
|
+
var ToggleGroupContext = React15.createContext({
|
|
2087
2087
|
size: "default",
|
|
2088
2088
|
variant: "default"
|
|
2089
2089
|
});
|
|
2090
|
-
var ToggleGroup =
|
|
2090
|
+
var ToggleGroup = React15.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx(ToggleGroupPrimitive.Root, { ref, className: cn("flex items-center justify-center gap-1", className), ...props, children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { variant, size }, children }) }));
|
|
2091
2091
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
2092
|
-
var ToggleGroupItem =
|
|
2093
|
-
const context =
|
|
2092
|
+
var ToggleGroupItem = React15.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
2093
|
+
const context = React15.useContext(ToggleGroupContext);
|
|
2094
2094
|
return /* @__PURE__ */ jsx(
|
|
2095
2095
|
ToggleGroupPrimitive.Item,
|
|
2096
2096
|
{
|