@pactor-app/ui 1.46.0 → 1.47.0
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/{chunk-QB2RZXDD.js → chunk-7VDIDB3K.js} +818 -874
- package/dist/{chunk-FU4P7CAM.js → chunk-B2Y6JC36.js} +281 -84
- package/dist/{chunk-XA7J5SGA.js → chunk-F7GQYNTG.js} +230 -355
- package/dist/{chunk-HU2RFIWH.js → chunk-OBSD66BK.js} +82 -7
- package/dist/{chunk-JV2V4HCI.js → chunk-RLAOCITX.js} +2 -2
- package/dist/{chunk-7OBUSV5S.js → chunk-YHTRCBKF.js} +184 -59
- package/dist/components/index.cjs +1242 -1113
- package/dist/components/index.d.cts +36 -4
- package/dist/components/index.d.ts +36 -4
- package/dist/components/index.js +6 -6
- package/dist/index.cjs +1349 -1145
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/interaction/index.cjs +80 -5
- package/dist/interaction/index.d.cts +26 -0
- package/dist/interaction/index.d.ts +26 -0
- package/dist/interaction/index.js +1 -1
- package/dist/layout/index.cjs +435 -154
- package/dist/layout/index.js +3 -3
- package/dist/ui/index.js +10 -10
- package/package.json +6 -6
- package/styles.css +9 -0
|
@@ -312,16 +312,133 @@ function Input({ className, type, ...props }) {
|
|
|
312
312
|
);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
+
// src/ui/dropdown-menu.tsx
|
|
316
|
+
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
317
|
+
import { ChevronRightIcon } from "lucide-react";
|
|
318
|
+
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
319
|
+
function DropdownMenu({
|
|
320
|
+
...props
|
|
321
|
+
}) {
|
|
322
|
+
return /* @__PURE__ */ jsx7(MenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
323
|
+
}
|
|
324
|
+
function DropdownMenuTrigger({
|
|
325
|
+
...props
|
|
326
|
+
}) {
|
|
327
|
+
return /* @__PURE__ */ jsx7(MenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
328
|
+
}
|
|
329
|
+
function DropdownMenuContent({
|
|
330
|
+
className,
|
|
331
|
+
align = "start",
|
|
332
|
+
side = "bottom",
|
|
333
|
+
sideOffset = 4,
|
|
334
|
+
...props
|
|
335
|
+
}) {
|
|
336
|
+
return /* @__PURE__ */ jsx7(MenuPrimitive.Portal, { children: /* @__PURE__ */ jsx7(
|
|
337
|
+
MenuPrimitive.Positioner,
|
|
338
|
+
{
|
|
339
|
+
align,
|
|
340
|
+
side,
|
|
341
|
+
sideOffset,
|
|
342
|
+
className: "isolate z-50",
|
|
343
|
+
children: /* @__PURE__ */ jsx7(
|
|
344
|
+
MenuPrimitive.Popup,
|
|
345
|
+
{
|
|
346
|
+
"data-slot": "dropdown-menu-content",
|
|
347
|
+
className: cn(
|
|
348
|
+
"z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md shadow-(color:--shadow-color) duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fill-mode-forwards data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
349
|
+
className
|
|
350
|
+
),
|
|
351
|
+
...props
|
|
352
|
+
}
|
|
353
|
+
)
|
|
354
|
+
}
|
|
355
|
+
) });
|
|
356
|
+
}
|
|
357
|
+
function DropdownMenuItem({
|
|
358
|
+
className,
|
|
359
|
+
variant = "default",
|
|
360
|
+
...props
|
|
361
|
+
}) {
|
|
362
|
+
return /* @__PURE__ */ jsx7(
|
|
363
|
+
MenuPrimitive.Item,
|
|
364
|
+
{
|
|
365
|
+
"data-slot": "dropdown-menu-item",
|
|
366
|
+
"data-variant": variant,
|
|
367
|
+
className: cn(
|
|
368
|
+
"relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-(--menu-hover-background) focus:text-(--menu-hover-foreground) data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
369
|
+
className
|
|
370
|
+
),
|
|
371
|
+
...props
|
|
372
|
+
}
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
function DropdownMenuSeparator({
|
|
376
|
+
className,
|
|
377
|
+
...props
|
|
378
|
+
}) {
|
|
379
|
+
return /* @__PURE__ */ jsx7(
|
|
380
|
+
MenuPrimitive.Separator,
|
|
381
|
+
{
|
|
382
|
+
"data-slot": "dropdown-menu-separator",
|
|
383
|
+
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
384
|
+
...props
|
|
385
|
+
}
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
function DropdownMenuSub({
|
|
389
|
+
...props
|
|
390
|
+
}) {
|
|
391
|
+
return /* @__PURE__ */ jsx7(MenuPrimitive.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
|
|
392
|
+
}
|
|
393
|
+
function DropdownMenuSubTrigger({
|
|
394
|
+
className,
|
|
395
|
+
children,
|
|
396
|
+
...props
|
|
397
|
+
}) {
|
|
398
|
+
return /* @__PURE__ */ jsxs3(
|
|
399
|
+
MenuPrimitive.SubmenuTrigger,
|
|
400
|
+
{
|
|
401
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
402
|
+
className: cn(
|
|
403
|
+
"flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-(--menu-hover-background) focus:text-(--menu-hover-foreground) data-open:bg-(--menu-active-background) data-open:text-(--menu-active-foreground) [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
404
|
+
className
|
|
405
|
+
),
|
|
406
|
+
...props,
|
|
407
|
+
children: [
|
|
408
|
+
children,
|
|
409
|
+
/* @__PURE__ */ jsx7(ChevronRightIcon, { className: "ml-auto" })
|
|
410
|
+
]
|
|
411
|
+
}
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
function DropdownMenuSubContent({
|
|
415
|
+
className,
|
|
416
|
+
sideOffset = 2,
|
|
417
|
+
...props
|
|
418
|
+
}) {
|
|
419
|
+
return /* @__PURE__ */ jsx7(MenuPrimitive.Portal, { children: /* @__PURE__ */ jsx7(MenuPrimitive.Positioner, { sideOffset, className: "isolate z-50", children: /* @__PURE__ */ jsx7(
|
|
420
|
+
MenuPrimitive.Popup,
|
|
421
|
+
{
|
|
422
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
423
|
+
className: cn(
|
|
424
|
+
"z-50 min-w-32 origin-(--transform-origin) overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md shadow-(color:--shadow-color) duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fill-mode-forwards data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
425
|
+
className
|
|
426
|
+
),
|
|
427
|
+
...props
|
|
428
|
+
}
|
|
429
|
+
) }) });
|
|
430
|
+
}
|
|
431
|
+
|
|
315
432
|
// src/ui/separator.tsx
|
|
316
433
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
317
|
-
import { jsx as
|
|
434
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
318
435
|
function Separator({
|
|
319
436
|
className,
|
|
320
437
|
orientation = "horizontal",
|
|
321
438
|
decorative: _decorative,
|
|
322
439
|
...props
|
|
323
440
|
}) {
|
|
324
|
-
return /* @__PURE__ */
|
|
441
|
+
return /* @__PURE__ */ jsx8(
|
|
325
442
|
SeparatorPrimitive,
|
|
326
443
|
{
|
|
327
444
|
"data-slot": "separator",
|
|
@@ -339,32 +456,32 @@ function Separator({
|
|
|
339
456
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
340
457
|
import { XIcon } from "lucide-react";
|
|
341
458
|
import { cva } from "class-variance-authority";
|
|
342
|
-
import { jsx as
|
|
459
|
+
import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
343
460
|
function Sheet({
|
|
344
461
|
...props
|
|
345
462
|
}) {
|
|
346
|
-
return /* @__PURE__ */
|
|
463
|
+
return /* @__PURE__ */ jsx9(DialogPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
347
464
|
}
|
|
348
465
|
function SheetTrigger({
|
|
349
466
|
...props
|
|
350
467
|
}) {
|
|
351
|
-
return /* @__PURE__ */
|
|
468
|
+
return /* @__PURE__ */ jsx9(DialogPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
352
469
|
}
|
|
353
470
|
function SheetClose({
|
|
354
471
|
...props
|
|
355
472
|
}) {
|
|
356
|
-
return /* @__PURE__ */
|
|
473
|
+
return /* @__PURE__ */ jsx9(DialogPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
357
474
|
}
|
|
358
475
|
function SheetPortal({
|
|
359
476
|
...props
|
|
360
477
|
}) {
|
|
361
|
-
return /* @__PURE__ */
|
|
478
|
+
return /* @__PURE__ */ jsx9(DialogPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
362
479
|
}
|
|
363
480
|
function SheetOverlay({
|
|
364
481
|
className,
|
|
365
482
|
...props
|
|
366
483
|
}) {
|
|
367
|
-
return /* @__PURE__ */
|
|
484
|
+
return /* @__PURE__ */ jsx9(
|
|
368
485
|
DialogPrimitive.Backdrop,
|
|
369
486
|
{
|
|
370
487
|
"data-slot": "sheet-overlay",
|
|
@@ -398,9 +515,9 @@ function SheetContent({
|
|
|
398
515
|
side = "right",
|
|
399
516
|
...props
|
|
400
517
|
}) {
|
|
401
|
-
return /* @__PURE__ */
|
|
402
|
-
/* @__PURE__ */
|
|
403
|
-
/* @__PURE__ */
|
|
518
|
+
return /* @__PURE__ */ jsxs4(SheetPortal, { "data-slot": "sheet-portal", children: [
|
|
519
|
+
/* @__PURE__ */ jsx9(SheetOverlay, {}),
|
|
520
|
+
/* @__PURE__ */ jsxs4(
|
|
404
521
|
DialogPrimitive.Popup,
|
|
405
522
|
{
|
|
406
523
|
"data-slot": "sheet-content",
|
|
@@ -408,11 +525,11 @@ function SheetContent({
|
|
|
408
525
|
...props,
|
|
409
526
|
children: [
|
|
410
527
|
children,
|
|
411
|
-
/* @__PURE__ */
|
|
528
|
+
/* @__PURE__ */ jsxs4(
|
|
412
529
|
DialogPrimitive.Close,
|
|
413
530
|
{
|
|
414
531
|
"data-slot": "sheet-close",
|
|
415
|
-
render: /* @__PURE__ */
|
|
532
|
+
render: /* @__PURE__ */ jsx9(
|
|
416
533
|
"button",
|
|
417
534
|
{
|
|
418
535
|
type: "button",
|
|
@@ -420,8 +537,8 @@ function SheetContent({
|
|
|
420
537
|
}
|
|
421
538
|
),
|
|
422
539
|
children: [
|
|
423
|
-
/* @__PURE__ */
|
|
424
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ jsx9(XIcon, {}),
|
|
541
|
+
/* @__PURE__ */ jsx9("span", { className: "sr-only", children: "Close" })
|
|
425
542
|
]
|
|
426
543
|
}
|
|
427
544
|
)
|
|
@@ -431,7 +548,7 @@ function SheetContent({
|
|
|
431
548
|
] });
|
|
432
549
|
}
|
|
433
550
|
function SheetHeader({ className, ...props }) {
|
|
434
|
-
return /* @__PURE__ */
|
|
551
|
+
return /* @__PURE__ */ jsx9(
|
|
435
552
|
"div",
|
|
436
553
|
{
|
|
437
554
|
"data-slot": "sheet-header",
|
|
@@ -441,7 +558,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
441
558
|
);
|
|
442
559
|
}
|
|
443
560
|
function SheetFooter({ className, ...props }) {
|
|
444
|
-
return /* @__PURE__ */
|
|
561
|
+
return /* @__PURE__ */ jsx9(
|
|
445
562
|
"div",
|
|
446
563
|
{
|
|
447
564
|
"data-slot": "sheet-footer",
|
|
@@ -454,7 +571,7 @@ function SheetTitle({
|
|
|
454
571
|
className,
|
|
455
572
|
...props
|
|
456
573
|
}) {
|
|
457
|
-
return /* @__PURE__ */
|
|
574
|
+
return /* @__PURE__ */ jsx9(
|
|
458
575
|
DialogPrimitive.Title,
|
|
459
576
|
{
|
|
460
577
|
"data-slot": "sheet-title",
|
|
@@ -467,7 +584,7 @@ function SheetDescription({
|
|
|
467
584
|
className,
|
|
468
585
|
...props
|
|
469
586
|
}) {
|
|
470
|
-
return /* @__PURE__ */
|
|
587
|
+
return /* @__PURE__ */ jsx9(
|
|
471
588
|
DialogPrimitive.Description,
|
|
472
589
|
{
|
|
473
590
|
"data-slot": "sheet-description",
|
|
@@ -505,7 +622,7 @@ function useIsMobile() {
|
|
|
505
622
|
}
|
|
506
623
|
|
|
507
624
|
// src/ui/sidebar.tsx
|
|
508
|
-
import { jsx as
|
|
625
|
+
import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
509
626
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
510
627
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
511
628
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
@@ -569,7 +686,7 @@ function SidebarProvider({
|
|
|
569
686
|
}),
|
|
570
687
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
571
688
|
);
|
|
572
|
-
return /* @__PURE__ */
|
|
689
|
+
return /* @__PURE__ */ jsx10(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx10(TooltipProvider, { delay: 0, children: /* @__PURE__ */ jsx10(
|
|
573
690
|
"div",
|
|
574
691
|
{
|
|
575
692
|
"data-slot": "sidebar-wrapper",
|
|
@@ -593,7 +710,7 @@ function SidebarRoot({
|
|
|
593
710
|
}) {
|
|
594
711
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
595
712
|
if (collapsible === "none") {
|
|
596
|
-
return /* @__PURE__ */
|
|
713
|
+
return /* @__PURE__ */ jsx10(
|
|
597
714
|
"div",
|
|
598
715
|
{
|
|
599
716
|
"data-slot": "sidebar",
|
|
@@ -607,7 +724,7 @@ function SidebarRoot({
|
|
|
607
724
|
);
|
|
608
725
|
}
|
|
609
726
|
if (isMobile) {
|
|
610
|
-
return /* @__PURE__ */
|
|
727
|
+
return /* @__PURE__ */ jsx10(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs5(
|
|
611
728
|
SheetContent,
|
|
612
729
|
{
|
|
613
730
|
"data-sidebar": "sidebar",
|
|
@@ -619,16 +736,16 @@ function SidebarRoot({
|
|
|
619
736
|
},
|
|
620
737
|
side,
|
|
621
738
|
children: [
|
|
622
|
-
/* @__PURE__ */
|
|
623
|
-
/* @__PURE__ */
|
|
624
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ jsxs5(SheetHeader, { className: "sr-only", children: [
|
|
740
|
+
/* @__PURE__ */ jsx10(SheetTitle, { children: "Sidebar" }),
|
|
741
|
+
/* @__PURE__ */ jsx10(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
625
742
|
] }),
|
|
626
|
-
/* @__PURE__ */
|
|
743
|
+
/* @__PURE__ */ jsx10("div", { className: "flex h-full w-full flex-col", children })
|
|
627
744
|
]
|
|
628
745
|
}
|
|
629
746
|
) });
|
|
630
747
|
}
|
|
631
|
-
return /* @__PURE__ */
|
|
748
|
+
return /* @__PURE__ */ jsxs5(
|
|
632
749
|
"div",
|
|
633
750
|
{
|
|
634
751
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -638,7 +755,7 @@ function SidebarRoot({
|
|
|
638
755
|
"data-side": side,
|
|
639
756
|
"data-slot": "sidebar",
|
|
640
757
|
children: [
|
|
641
|
-
/* @__PURE__ */
|
|
758
|
+
/* @__PURE__ */ jsx10(
|
|
642
759
|
"div",
|
|
643
760
|
{
|
|
644
761
|
"data-slot": "sidebar-gap",
|
|
@@ -650,7 +767,7 @@ function SidebarRoot({
|
|
|
650
767
|
)
|
|
651
768
|
}
|
|
652
769
|
),
|
|
653
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ jsx10(
|
|
654
771
|
"div",
|
|
655
772
|
{
|
|
656
773
|
"data-slot": "sidebar-container",
|
|
@@ -666,7 +783,7 @@ function SidebarRoot({
|
|
|
666
783
|
className
|
|
667
784
|
),
|
|
668
785
|
...props,
|
|
669
|
-
children: /* @__PURE__ */
|
|
786
|
+
children: /* @__PURE__ */ jsx10(
|
|
670
787
|
"div",
|
|
671
788
|
{
|
|
672
789
|
"data-sidebar": "sidebar",
|
|
@@ -687,7 +804,7 @@ function SidebarTrigger({
|
|
|
687
804
|
...props
|
|
688
805
|
}) {
|
|
689
806
|
const { toggleSidebar } = useSidebar();
|
|
690
|
-
return /* @__PURE__ */
|
|
807
|
+
return /* @__PURE__ */ jsxs5(
|
|
691
808
|
Button,
|
|
692
809
|
{
|
|
693
810
|
"data-sidebar": "trigger",
|
|
@@ -701,15 +818,15 @@ function SidebarTrigger({
|
|
|
701
818
|
},
|
|
702
819
|
...props,
|
|
703
820
|
children: [
|
|
704
|
-
/* @__PURE__ */
|
|
705
|
-
/* @__PURE__ */
|
|
821
|
+
/* @__PURE__ */ jsx10(PanelLeftIcon, {}),
|
|
822
|
+
/* @__PURE__ */ jsx10("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
706
823
|
]
|
|
707
824
|
}
|
|
708
825
|
);
|
|
709
826
|
}
|
|
710
827
|
function SidebarRail({ className, ...props }) {
|
|
711
828
|
const { toggleSidebar } = useSidebar();
|
|
712
|
-
return /* @__PURE__ */
|
|
829
|
+
return /* @__PURE__ */ jsx10(
|
|
713
830
|
"button",
|
|
714
831
|
{
|
|
715
832
|
"data-sidebar": "rail",
|
|
@@ -732,7 +849,7 @@ function SidebarRail({ className, ...props }) {
|
|
|
732
849
|
);
|
|
733
850
|
}
|
|
734
851
|
function SidebarInset({ className, ...props }) {
|
|
735
|
-
return /* @__PURE__ */
|
|
852
|
+
return /* @__PURE__ */ jsx10(
|
|
736
853
|
"main",
|
|
737
854
|
{
|
|
738
855
|
"data-slot": "sidebar-inset",
|
|
@@ -751,7 +868,7 @@ function SidebarInput({
|
|
|
751
868
|
className,
|
|
752
869
|
...props
|
|
753
870
|
}) {
|
|
754
|
-
return /* @__PURE__ */
|
|
871
|
+
return /* @__PURE__ */ jsx10(
|
|
755
872
|
Input,
|
|
756
873
|
{
|
|
757
874
|
"data-slot": "sidebar-input",
|
|
@@ -762,7 +879,7 @@ function SidebarInput({
|
|
|
762
879
|
);
|
|
763
880
|
}
|
|
764
881
|
function SidebarHeader({ className, ...props }) {
|
|
765
|
-
return /* @__PURE__ */
|
|
882
|
+
return /* @__PURE__ */ jsx10(
|
|
766
883
|
"div",
|
|
767
884
|
{
|
|
768
885
|
"data-slot": "sidebar-header",
|
|
@@ -773,7 +890,7 @@ function SidebarHeader({ className, ...props }) {
|
|
|
773
890
|
);
|
|
774
891
|
}
|
|
775
892
|
function SidebarFooter({ className, ...props }) {
|
|
776
|
-
return /* @__PURE__ */
|
|
893
|
+
return /* @__PURE__ */ jsx10(
|
|
777
894
|
"div",
|
|
778
895
|
{
|
|
779
896
|
"data-slot": "sidebar-footer",
|
|
@@ -787,7 +904,7 @@ function SidebarSeparator({
|
|
|
787
904
|
className,
|
|
788
905
|
...props
|
|
789
906
|
}) {
|
|
790
|
-
return /* @__PURE__ */
|
|
907
|
+
return /* @__PURE__ */ jsx10(
|
|
791
908
|
Separator,
|
|
792
909
|
{
|
|
793
910
|
"data-slot": "sidebar-separator",
|
|
@@ -798,7 +915,7 @@ function SidebarSeparator({
|
|
|
798
915
|
);
|
|
799
916
|
}
|
|
800
917
|
function SidebarContent({ className, ...props }) {
|
|
801
|
-
return /* @__PURE__ */
|
|
918
|
+
return /* @__PURE__ */ jsx10(
|
|
802
919
|
"div",
|
|
803
920
|
{
|
|
804
921
|
"data-slot": "sidebar-content",
|
|
@@ -812,7 +929,7 @@ function SidebarContent({ className, ...props }) {
|
|
|
812
929
|
);
|
|
813
930
|
}
|
|
814
931
|
function SidebarGroup({ className, ...props }) {
|
|
815
|
-
return /* @__PURE__ */
|
|
932
|
+
return /* @__PURE__ */ jsx10(
|
|
816
933
|
"div",
|
|
817
934
|
{
|
|
818
935
|
"data-slot": "sidebar-group",
|
|
@@ -849,7 +966,7 @@ function SidebarGroupLabel({
|
|
|
849
966
|
if (asChild) {
|
|
850
967
|
return renderAsChild(children, "sidebar-group-label", cls, props);
|
|
851
968
|
}
|
|
852
|
-
return /* @__PURE__ */
|
|
969
|
+
return /* @__PURE__ */ jsx10(
|
|
853
970
|
"div",
|
|
854
971
|
{
|
|
855
972
|
"data-slot": "sidebar-group-label",
|
|
@@ -875,7 +992,7 @@ function SidebarGroupAction({
|
|
|
875
992
|
if (asChild) {
|
|
876
993
|
return renderAsChild(children, "sidebar-group-action", cls, props);
|
|
877
994
|
}
|
|
878
|
-
return /* @__PURE__ */
|
|
995
|
+
return /* @__PURE__ */ jsx10(
|
|
879
996
|
"button",
|
|
880
997
|
{
|
|
881
998
|
"data-slot": "sidebar-group-action",
|
|
@@ -890,7 +1007,7 @@ function SidebarGroupContent({
|
|
|
890
1007
|
className,
|
|
891
1008
|
...props
|
|
892
1009
|
}) {
|
|
893
|
-
return /* @__PURE__ */
|
|
1010
|
+
return /* @__PURE__ */ jsx10(
|
|
894
1011
|
"div",
|
|
895
1012
|
{
|
|
896
1013
|
"data-slot": "sidebar-group-content",
|
|
@@ -901,7 +1018,7 @@ function SidebarGroupContent({
|
|
|
901
1018
|
);
|
|
902
1019
|
}
|
|
903
1020
|
function SidebarMenu({ className, ...props }) {
|
|
904
|
-
return /* @__PURE__ */
|
|
1021
|
+
return /* @__PURE__ */ jsx10(
|
|
905
1022
|
"ul",
|
|
906
1023
|
{
|
|
907
1024
|
"data-slot": "sidebar-menu",
|
|
@@ -912,7 +1029,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
912
1029
|
);
|
|
913
1030
|
}
|
|
914
1031
|
function SidebarMenuItem({ className, ...props }) {
|
|
915
|
-
return /* @__PURE__ */
|
|
1032
|
+
return /* @__PURE__ */ jsx10(
|
|
916
1033
|
"li",
|
|
917
1034
|
{
|
|
918
1035
|
"data-slot": "sidebar-menu-item",
|
|
@@ -959,7 +1076,7 @@ function SidebarMenuButton({
|
|
|
959
1076
|
"data-size": size,
|
|
960
1077
|
"data-active": isActive,
|
|
961
1078
|
...props
|
|
962
|
-
}) : /* @__PURE__ */
|
|
1079
|
+
}) : /* @__PURE__ */ jsx10(
|
|
963
1080
|
"button",
|
|
964
1081
|
{
|
|
965
1082
|
"data-slot": "sidebar-menu-button",
|
|
@@ -979,9 +1096,9 @@ function SidebarMenuButton({
|
|
|
979
1096
|
children: tooltip
|
|
980
1097
|
};
|
|
981
1098
|
}
|
|
982
|
-
return /* @__PURE__ */
|
|
983
|
-
/* @__PURE__ */
|
|
984
|
-
/* @__PURE__ */
|
|
1099
|
+
return /* @__PURE__ */ jsxs5(Tooltip, { children: [
|
|
1100
|
+
/* @__PURE__ */ jsx10(TooltipTrigger, { render: button }),
|
|
1101
|
+
/* @__PURE__ */ jsx10(
|
|
985
1102
|
TooltipContent,
|
|
986
1103
|
{
|
|
987
1104
|
side: "right",
|
|
@@ -1012,7 +1129,7 @@ function SidebarMenuAction({
|
|
|
1012
1129
|
if (asChild) {
|
|
1013
1130
|
return renderAsChild(children, "sidebar-menu-action", cls, props);
|
|
1014
1131
|
}
|
|
1015
|
-
return /* @__PURE__ */
|
|
1132
|
+
return /* @__PURE__ */ jsx10(
|
|
1016
1133
|
"button",
|
|
1017
1134
|
{
|
|
1018
1135
|
"data-slot": "sidebar-menu-action",
|
|
@@ -1027,7 +1144,7 @@ function SidebarMenuBadge({
|
|
|
1027
1144
|
className,
|
|
1028
1145
|
...props
|
|
1029
1146
|
}) {
|
|
1030
|
-
return /* @__PURE__ */
|
|
1147
|
+
return /* @__PURE__ */ jsx10(
|
|
1031
1148
|
"div",
|
|
1032
1149
|
{
|
|
1033
1150
|
"data-slot": "sidebar-menu-badge",
|
|
@@ -1053,7 +1170,7 @@ function SidebarMenuSkeleton({
|
|
|
1053
1170
|
const width = React.useMemo(() => {
|
|
1054
1171
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
1055
1172
|
}, []);
|
|
1056
|
-
return /* @__PURE__ */
|
|
1173
|
+
return /* @__PURE__ */ jsxs5(
|
|
1057
1174
|
"div",
|
|
1058
1175
|
{
|
|
1059
1176
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -1061,14 +1178,14 @@ function SidebarMenuSkeleton({
|
|
|
1061
1178
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
1062
1179
|
...props,
|
|
1063
1180
|
children: [
|
|
1064
|
-
showIcon && /* @__PURE__ */
|
|
1181
|
+
showIcon && /* @__PURE__ */ jsx10(
|
|
1065
1182
|
Skeleton,
|
|
1066
1183
|
{
|
|
1067
1184
|
className: "size-4 rounded-md",
|
|
1068
1185
|
"data-sidebar": "menu-skeleton-icon"
|
|
1069
1186
|
}
|
|
1070
1187
|
),
|
|
1071
|
-
/* @__PURE__ */
|
|
1188
|
+
/* @__PURE__ */ jsx10(
|
|
1072
1189
|
Skeleton,
|
|
1073
1190
|
{
|
|
1074
1191
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
@@ -1083,7 +1200,7 @@ function SidebarMenuSkeleton({
|
|
|
1083
1200
|
);
|
|
1084
1201
|
}
|
|
1085
1202
|
function SidebarMenuSub({ className, ...props }) {
|
|
1086
|
-
return /* @__PURE__ */
|
|
1203
|
+
return /* @__PURE__ */ jsx10(
|
|
1087
1204
|
"ul",
|
|
1088
1205
|
{
|
|
1089
1206
|
"data-slot": "sidebar-menu-sub",
|
|
@@ -1101,7 +1218,7 @@ function SidebarMenuSubItem({
|
|
|
1101
1218
|
className,
|
|
1102
1219
|
...props
|
|
1103
1220
|
}) {
|
|
1104
|
-
return /* @__PURE__ */
|
|
1221
|
+
return /* @__PURE__ */ jsx10(
|
|
1105
1222
|
"li",
|
|
1106
1223
|
{
|
|
1107
1224
|
"data-slot": "sidebar-menu-sub-item",
|
|
@@ -1137,7 +1254,7 @@ function SidebarMenuSubButton({
|
|
|
1137
1254
|
}
|
|
1138
1255
|
return (
|
|
1139
1256
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1140
|
-
/* @__PURE__ */
|
|
1257
|
+
/* @__PURE__ */ jsx10(
|
|
1141
1258
|
"a",
|
|
1142
1259
|
{
|
|
1143
1260
|
"data-slot": "sidebar-menu-sub-button",
|
|
@@ -1173,6 +1290,14 @@ export {
|
|
|
1173
1290
|
PopoverTrigger,
|
|
1174
1291
|
PopoverContent,
|
|
1175
1292
|
Input,
|
|
1293
|
+
DropdownMenu,
|
|
1294
|
+
DropdownMenuTrigger,
|
|
1295
|
+
DropdownMenuContent,
|
|
1296
|
+
DropdownMenuItem,
|
|
1297
|
+
DropdownMenuSeparator,
|
|
1298
|
+
DropdownMenuSub,
|
|
1299
|
+
DropdownMenuSubTrigger,
|
|
1300
|
+
DropdownMenuSubContent,
|
|
1176
1301
|
useIsMobile,
|
|
1177
1302
|
Separator,
|
|
1178
1303
|
Sheet,
|