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