@popgrids/ui 0.0.21 → 0.0.23
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/dialog.cjs +12 -12
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.js +12 -12
- package/dist/dialog.js.map +1 -1
- package/dist/dropdown-menu.cjs +126 -92
- package/dist/dropdown-menu.cjs.map +1 -1
- package/dist/dropdown-menu.d.cts +18 -20
- package/dist/dropdown-menu.d.ts +18 -20
- package/dist/dropdown-menu.js +127 -93
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/index.cjs +180 -132
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +181 -133
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/section-header.cjs +30 -29
- package/dist/section-header.cjs.map +1 -1
- package/dist/section-header.js +30 -29
- package/dist/section-header.js.map +1 -1
- package/dist/tag.cjs +0 -1
- package/dist/tag.cjs.map +1 -1
- package/dist/tag.js +0 -1
- package/dist/tag.js.map +1 -1
- package/dist/tooltip.cjs +40 -18
- package/dist/tooltip.cjs.map +1 -1
- package/dist/tooltip.d.cts +1 -3
- package/dist/tooltip.d.ts +1 -3
- package/dist/tooltip.js +40 -18
- package/dist/tooltip.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -588,17 +588,6 @@ function DialogContent({
|
|
|
588
588
|
"data-slot": "dialog-content",
|
|
589
589
|
className: "group/popup pointer-events-none flex h-full max-h-full min-h-0 w-full max-w-full justify-center overflow-hidden transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0",
|
|
590
590
|
children: [
|
|
591
|
-
showCloseButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
592
|
-
DialogClose,
|
|
593
|
-
{
|
|
594
|
-
className: cn("pointer-events-auto fixed top-[15px] z-50 transition-all", { "left-5": closePosition === "top-left", "right-5": closePosition === "top-right", "group-data-closed/popup:duration-pop-hover group-data-open/popup:duration-pop-hover group-data-open/popup:ease-pop-hover group-data-closed/popup:ease-out group-data-ending-style/popup:scale-[0.96] group-data-ending-style/popup:opacity-0 group-data-starting-style/popup:scale-[0.96] group-data-starting-style/popup:opacity-0": !bottom, " group-data-starting-style/popup-scale-[0.96] group-data-ending-style/popup-scale-100 group-data-open/popup:animate-in group-data-closed/popup:animate-out group-data-closed/popup:duration-200 group-data-closed/popup:ease-[cubic-bezier(1,0,0.72,0.32)] group-data-ending-style/popup:translate-y-1/2 group-data-open/popup:duration-pop-hover group-data-open/popup:ease-[cubic-bezier(0.32,0.72,0,1)] group-data-starting-style/popup:translate-y-1/2": bottom }),
|
|
595
|
-
"aria-label": "Close",
|
|
596
|
-
children: [
|
|
597
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" }),
|
|
598
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "before:bg-tint-700-reversed relative block before:absolute before:-inset-1.5 before:rounded-full before:backdrop-blur-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-primary-foreground text-background relative z-10 flex size-10 items-center justify-center rounded-full", children: /* @__PURE__ */ jsxRuntime.jsx(icons.XClose, { className: "size-[18px]" }) }) })
|
|
599
|
-
]
|
|
600
|
-
}
|
|
601
|
-
),
|
|
602
591
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
603
592
|
"div",
|
|
604
593
|
{
|
|
@@ -606,13 +595,24 @@ function DialogContent({
|
|
|
606
595
|
"bg-background pointer-events-auto fixed top-1/2 left-1/2 flex h-full max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col rounded-xl shadow-2xl transition-all",
|
|
607
596
|
{
|
|
608
597
|
"group-data-closed/popup:duration-pop-hover group-data-open/popup:duration-pop-hover group-data-open/popup:ease-pop-hover group-data-closed/popup:ease-out group-data-ending-style/popup:scale-[0.96] group-data-ending-style/popup:opacity-0 group-data-starting-style/popup:scale-[0.96] group-data-starting-style/popup:opacity-0": !bottom,
|
|
609
|
-
"group-data-open/popup:slide-in-from-bottom group-data-closed/popup:slide-out-to-bottom group-data-starting-style/popup-scale-100 group-data-ending-style/popup-scale-100 group-data-open/popup:animate-in group-data-closed/popup:animate-out top-auto bottom-0 h-full translate-y-0 rounded-b-none group-data-closed/popup:duration-200 group-data-
|
|
598
|
+
"group-data-open/popup:slide-in-from-bottom group-data-closed/popup:slide-out-to-bottom group-data-starting-style/popup-scale-100 group-data-ending-style/popup-scale-100 group-data-open/popup:animate-in group-data-closed/popup:animate-out top-auto bottom-0 h-full translate-y-0 rounded-b-none group-data-closed/popup:duration-200 group-data-ending-style/popup:translate-y-full group-data-open/popup:duration-300 group-data-open/popup:ease-[cubic-bezier(0.32,0.72,0,1)] group-data-closed/popup:ease-[cubic-bezier(0.32,0.72,0,1)] group-data-starting-style/popup:translate-y-full": bottom
|
|
610
599
|
},
|
|
611
600
|
className
|
|
612
601
|
),
|
|
613
602
|
...props,
|
|
614
603
|
children
|
|
615
604
|
}
|
|
605
|
+
),
|
|
606
|
+
showCloseButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
607
|
+
DialogClose,
|
|
608
|
+
{
|
|
609
|
+
className: cn("pointer-events-auto fixed top-[7px] z-50 transition-all", { "left-4": closePosition === "top-left", "right-4": closePosition === "top-right", "group-data-closed/popup:duration-pop-hover group-data-open/popup:duration-pop-hover group-data-open/popup:ease-pop-hover group-data-closed/popup:ease-out group-data-ending-style/popup:scale-[0.96] group-data-ending-style/popup:opacity-0 group-data-starting-style/popup:scale-[0.96] group-data-starting-style/popup:opacity-0": !bottom, " group-data-starting-style/popup-scale-[0.96] group-data-ending-style/popup-scale-100 group-data-open/popup:animate-in group-data-closed/popup:animate-out group-data-closed/popup:duration-200 group-data-closed/popup:ease-[cubic-bezier(1,0,0.72,0.32)] group-data-ending-style/popup:translate-y-1/2 group-data-open/popup:duration-pop-hover group-data-open/popup:ease-[cubic-bezier(0.32,0.72,0,1)] group-data-starting-style/popup:translate-y-1/2": bottom }),
|
|
610
|
+
"aria-label": "Close",
|
|
611
|
+
children: [
|
|
612
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" }),
|
|
613
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "before:bg-tint-700-reversed relative block before:absolute before:-inset-1.5 before:rounded-full before:backdrop-blur-sm", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-primary-foreground text-background relative z-10 flex size-10 items-center justify-center rounded-full", children: /* @__PURE__ */ jsxRuntime.jsx(icons.XClose, { className: "size-[18px]" }) }) })
|
|
614
|
+
]
|
|
615
|
+
}
|
|
616
616
|
)
|
|
617
617
|
]
|
|
618
618
|
}
|
|
@@ -692,28 +692,53 @@ function DropdownMenuTrigger({ ...props }) {
|
|
|
692
692
|
return /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
693
693
|
}
|
|
694
694
|
function DropdownMenuContent({
|
|
695
|
-
|
|
695
|
+
align = "start",
|
|
696
|
+
alignOffset = 0,
|
|
697
|
+
side = "bottom",
|
|
696
698
|
sideOffset = 4,
|
|
697
|
-
|
|
698
|
-
children,
|
|
699
|
+
className,
|
|
699
700
|
...props
|
|
700
701
|
}) {
|
|
701
|
-
return /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
702
|
-
menu.Menu.
|
|
702
|
+
return /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
703
|
+
menu.Menu.Positioner,
|
|
703
704
|
{
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
705
|
+
className: "isolate z-50 outline-none",
|
|
706
|
+
align,
|
|
707
|
+
alignOffset,
|
|
708
|
+
side,
|
|
709
|
+
sideOffset,
|
|
710
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
711
|
+
menu.Menu.Popup,
|
|
712
|
+
{
|
|
713
|
+
"data-slot": "dropdown-menu-content",
|
|
714
|
+
className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-white dark:ring-gray-700 bg-popover text-popover-foreground data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-xs p-1 shadow-xl ring-1 duration-100 outline-none data-closed:overflow-hidden", className),
|
|
715
|
+
...props
|
|
716
|
+
}
|
|
717
|
+
)
|
|
711
718
|
}
|
|
712
|
-
) })
|
|
719
|
+
) });
|
|
713
720
|
}
|
|
714
721
|
function DropdownMenuGroup({ ...props }) {
|
|
715
722
|
return /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
716
723
|
}
|
|
724
|
+
function DropdownMenuLabel({
|
|
725
|
+
className,
|
|
726
|
+
inset,
|
|
727
|
+
...props
|
|
728
|
+
}) {
|
|
729
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
730
|
+
menu.Menu.GroupLabel,
|
|
731
|
+
{
|
|
732
|
+
"data-slot": "dropdown-menu-label",
|
|
733
|
+
"data-inset": inset,
|
|
734
|
+
className: cn(
|
|
735
|
+
"text-muted-foreground px-2 py-1.5 text-xs font-medium data-inset:pl-8",
|
|
736
|
+
className
|
|
737
|
+
),
|
|
738
|
+
...props
|
|
739
|
+
}
|
|
740
|
+
);
|
|
741
|
+
}
|
|
717
742
|
function DropdownMenuItem({
|
|
718
743
|
className,
|
|
719
744
|
inset,
|
|
@@ -727,91 +752,140 @@ function DropdownMenuItem({
|
|
|
727
752
|
"data-inset": inset,
|
|
728
753
|
"data-variant": variant,
|
|
729
754
|
className: cn(
|
|
730
|
-
"
|
|
755
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground group/dropdown-menu-item relative flex cursor-default items-center gap-2 rounded-xs px-2 py-1.5 text-sm font-medium outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
731
756
|
className
|
|
732
757
|
),
|
|
733
758
|
...props
|
|
734
759
|
}
|
|
735
760
|
);
|
|
736
761
|
}
|
|
762
|
+
function DropdownMenuSub({ ...props }) {
|
|
763
|
+
return /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
|
|
764
|
+
}
|
|
765
|
+
function DropdownMenuSubTrigger({
|
|
766
|
+
className,
|
|
767
|
+
inset,
|
|
768
|
+
children,
|
|
769
|
+
...props
|
|
770
|
+
}) {
|
|
771
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
772
|
+
menu.Menu.SubmenuTrigger,
|
|
773
|
+
{
|
|
774
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
775
|
+
"data-inset": inset,
|
|
776
|
+
className: cn(
|
|
777
|
+
"focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-popup-open:bg-accent data-popup-open:text-accent-foreground flex cursor-default items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
778
|
+
className
|
|
779
|
+
),
|
|
780
|
+
...props,
|
|
781
|
+
children: [
|
|
782
|
+
children,
|
|
783
|
+
/* @__PURE__ */ jsxRuntime.jsx(icons.ChevronRight, { className: "ml-auto" })
|
|
784
|
+
]
|
|
785
|
+
}
|
|
786
|
+
);
|
|
787
|
+
}
|
|
788
|
+
function DropdownMenuSubContent({
|
|
789
|
+
align = "start",
|
|
790
|
+
alignOffset = -3,
|
|
791
|
+
side = "right",
|
|
792
|
+
sideOffset = 0,
|
|
793
|
+
className,
|
|
794
|
+
...props
|
|
795
|
+
}) {
|
|
796
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
797
|
+
DropdownMenuContent,
|
|
798
|
+
{
|
|
799
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
800
|
+
className: cn(
|
|
801
|
+
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-white dark:ring-gray-700 bg-popover text-popover-foreground w-auto min-w-[96px] rounded-sm p-1 shadow-lg ring-1 duration-100",
|
|
802
|
+
className
|
|
803
|
+
),
|
|
804
|
+
align,
|
|
805
|
+
alignOffset,
|
|
806
|
+
side,
|
|
807
|
+
sideOffset,
|
|
808
|
+
...props
|
|
809
|
+
}
|
|
810
|
+
);
|
|
811
|
+
}
|
|
737
812
|
function DropdownMenuCheckboxItem({
|
|
738
813
|
className,
|
|
739
814
|
children,
|
|
740
815
|
checked,
|
|
816
|
+
inset,
|
|
741
817
|
...props
|
|
742
818
|
}) {
|
|
743
819
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
744
820
|
menu.Menu.CheckboxItem,
|
|
745
821
|
{
|
|
746
822
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
823
|
+
"data-inset": inset,
|
|
747
824
|
className: cn(
|
|
748
|
-
"
|
|
825
|
+
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
749
826
|
className
|
|
750
827
|
),
|
|
751
828
|
checked,
|
|
752
829
|
...props,
|
|
753
830
|
children: [
|
|
754
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
755
|
-
|
|
831
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
832
|
+
"span",
|
|
756
833
|
{
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
834
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
835
|
+
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
836
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.CheckboxItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
837
|
+
icons.Check,
|
|
838
|
+
{}
|
|
839
|
+
) })
|
|
760
840
|
}
|
|
761
|
-
)
|
|
841
|
+
),
|
|
762
842
|
children
|
|
763
843
|
]
|
|
764
844
|
}
|
|
765
845
|
);
|
|
766
846
|
}
|
|
767
847
|
function DropdownMenuRadioGroup({ ...props }) {
|
|
768
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
848
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
849
|
+
menu.Menu.RadioGroup,
|
|
850
|
+
{
|
|
851
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
852
|
+
...props
|
|
853
|
+
}
|
|
854
|
+
);
|
|
769
855
|
}
|
|
770
856
|
function DropdownMenuRadioItem({
|
|
771
857
|
className,
|
|
772
858
|
children,
|
|
859
|
+
inset,
|
|
773
860
|
...props
|
|
774
861
|
}) {
|
|
775
862
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
776
863
|
menu.Menu.RadioItem,
|
|
777
864
|
{
|
|
778
865
|
"data-slot": "dropdown-menu-radio-item",
|
|
866
|
+
"data-inset": inset,
|
|
779
867
|
className: cn(
|
|
780
|
-
"
|
|
868
|
+
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
781
869
|
className
|
|
782
870
|
),
|
|
783
871
|
...props,
|
|
784
872
|
children: [
|
|
785
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
786
|
-
|
|
873
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
874
|
+
"span",
|
|
787
875
|
{
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
876
|
+
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
877
|
+
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
878
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.RadioItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
879
|
+
icons.Check,
|
|
880
|
+
{}
|
|
881
|
+
) })
|
|
791
882
|
}
|
|
792
|
-
)
|
|
883
|
+
),
|
|
793
884
|
children
|
|
794
885
|
]
|
|
795
886
|
}
|
|
796
887
|
);
|
|
797
888
|
}
|
|
798
|
-
function DropdownMenuLabel({
|
|
799
|
-
className,
|
|
800
|
-
inset,
|
|
801
|
-
children,
|
|
802
|
-
...props
|
|
803
|
-
}) {
|
|
804
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
805
|
-
menu.Menu.GroupLabel,
|
|
806
|
-
{
|
|
807
|
-
"data-slot": "dropdown-menu-label",
|
|
808
|
-
"data-inset": inset,
|
|
809
|
-
className: cn("px-2 py-1.5 text-sm font-medium data-inset:pl-8", className),
|
|
810
|
-
...props,
|
|
811
|
-
children
|
|
812
|
-
}
|
|
813
|
-
);
|
|
814
|
-
}
|
|
815
889
|
function DropdownMenuSeparator({
|
|
816
890
|
className,
|
|
817
891
|
...props
|
|
@@ -825,62 +899,22 @@ function DropdownMenuSeparator({
|
|
|
825
899
|
}
|
|
826
900
|
);
|
|
827
901
|
}
|
|
828
|
-
function DropdownMenuShortcut({
|
|
829
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
830
|
-
"span",
|
|
831
|
-
{
|
|
832
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
833
|
-
className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
834
|
-
...props
|
|
835
|
-
}
|
|
836
|
-
);
|
|
837
|
-
}
|
|
838
|
-
function DropdownMenuSub({ ...props }) {
|
|
839
|
-
return /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
|
|
840
|
-
}
|
|
841
|
-
function DropdownMenuSubTrigger({
|
|
902
|
+
function DropdownMenuShortcut({
|
|
842
903
|
className,
|
|
843
|
-
inset,
|
|
844
|
-
children,
|
|
845
904
|
...props
|
|
846
905
|
}) {
|
|
847
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
848
|
-
|
|
906
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
907
|
+
"span",
|
|
849
908
|
{
|
|
850
|
-
"data-slot": "dropdown-menu-
|
|
851
|
-
"data-inset": inset,
|
|
909
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
852
910
|
className: cn(
|
|
853
|
-
"
|
|
911
|
+
"text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest",
|
|
854
912
|
className
|
|
855
913
|
),
|
|
856
|
-
...props
|
|
857
|
-
children: [
|
|
858
|
-
children,
|
|
859
|
-
/* @__PURE__ */ jsxRuntime.jsx(icons.ChevronRight, { className: "ml-auto size-4" })
|
|
860
|
-
]
|
|
914
|
+
...props
|
|
861
915
|
}
|
|
862
916
|
);
|
|
863
917
|
}
|
|
864
|
-
function DropdownMenuSubContent({
|
|
865
|
-
className,
|
|
866
|
-
sideOffset = 4,
|
|
867
|
-
positionerProps,
|
|
868
|
-
children,
|
|
869
|
-
...props
|
|
870
|
-
}) {
|
|
871
|
-
return /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.Positioner, { sideOffset, ...positionerProps, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
872
|
-
menu.Menu.Popup,
|
|
873
|
-
{
|
|
874
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
875
|
-
className: cn(
|
|
876
|
-
"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 z-50 min-w-32 origin-(--transform-origin) overflow-hidden rounded-2xl border p-1 shadow-lg",
|
|
877
|
-
className
|
|
878
|
-
),
|
|
879
|
-
...props,
|
|
880
|
-
children
|
|
881
|
-
}
|
|
882
|
-
) }) });
|
|
883
|
-
}
|
|
884
918
|
function Footer({
|
|
885
919
|
theme = "template",
|
|
886
920
|
logo,
|
|
@@ -1144,37 +1178,59 @@ function NotificationBadge({
|
|
|
1144
1178
|
});
|
|
1145
1179
|
}
|
|
1146
1180
|
var SectionFlourish = () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center self-stretch py-8 text-xl", children: "\u2726" });
|
|
1147
|
-
function TooltipProvider({
|
|
1148
|
-
|
|
1181
|
+
function TooltipProvider({
|
|
1182
|
+
delay = 0,
|
|
1183
|
+
...props
|
|
1184
|
+
}) {
|
|
1185
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1186
|
+
tooltip.Tooltip.Provider,
|
|
1187
|
+
{
|
|
1188
|
+
"data-slot": "tooltip-provider",
|
|
1189
|
+
delay,
|
|
1190
|
+
...props
|
|
1191
|
+
}
|
|
1192
|
+
);
|
|
1149
1193
|
}
|
|
1150
1194
|
function Tooltip({ ...props }) {
|
|
1151
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1195
|
+
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Root, { "data-slot": "tooltip", ...props });
|
|
1152
1196
|
}
|
|
1153
1197
|
function TooltipTrigger({ ...props }) {
|
|
1154
1198
|
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
1155
1199
|
}
|
|
1156
1200
|
function TooltipContent({
|
|
1157
1201
|
className,
|
|
1202
|
+
side = "top",
|
|
1203
|
+
sideOffset = 4,
|
|
1204
|
+
align = "center",
|
|
1205
|
+
alignOffset = 0,
|
|
1158
1206
|
children,
|
|
1159
|
-
positionerProps,
|
|
1160
1207
|
...props
|
|
1161
1208
|
}) {
|
|
1162
|
-
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1163
|
-
tooltip.Tooltip.
|
|
1209
|
+
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1210
|
+
tooltip.Tooltip.Positioner,
|
|
1164
1211
|
{
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1212
|
+
align,
|
|
1213
|
+
alignOffset,
|
|
1214
|
+
side,
|
|
1215
|
+
sideOffset,
|
|
1216
|
+
className: "isolate z-50",
|
|
1217
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1218
|
+
tooltip.Tooltip.Popup,
|
|
1219
|
+
{
|
|
1220
|
+
"data-slot": "tooltip-content",
|
|
1221
|
+
className: cn(
|
|
1222
|
+
"data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-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 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md px-3 py-1.5 text-xs",
|
|
1223
|
+
className
|
|
1224
|
+
),
|
|
1225
|
+
...props,
|
|
1226
|
+
children: [
|
|
1227
|
+
children,
|
|
1228
|
+
/* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Arrow, { className: "flex data-[side=bottom]:-top-[6px] data-[side=bottom]:rotate-0 data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:-bottom-[6px] data-[side=top]:rotate-180", children: /* @__PURE__ */ jsxRuntime.jsx(TooltipArrow, {}) })
|
|
1229
|
+
]
|
|
1230
|
+
}
|
|
1231
|
+
)
|
|
1176
1232
|
}
|
|
1177
|
-
) })
|
|
1233
|
+
) });
|
|
1178
1234
|
}
|
|
1179
1235
|
var TooltipArrow = (props) => {
|
|
1180
1236
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1259,16 +1315,8 @@ function SectionHeader({
|
|
|
1259
1315
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1260
1316
|
TooltipContent,
|
|
1261
1317
|
{
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
alignOffset: 5,
|
|
1265
|
-
collisionAvoidance: {
|
|
1266
|
-
side: "shift",
|
|
1267
|
-
align: "shift",
|
|
1268
|
-
fallbackAxisSide: "none"
|
|
1269
|
-
},
|
|
1270
|
-
collisionPadding: 16
|
|
1271
|
-
},
|
|
1318
|
+
sideOffset: 2,
|
|
1319
|
+
alignOffset: 5,
|
|
1272
1320
|
children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: description })
|
|
1273
1321
|
}
|
|
1274
1322
|
)
|