@7onic-ui/react 0.3.7 → 0.3.9

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
@@ -2530,7 +2530,7 @@ var DropdownMenuContent = React17.forwardRef(({ className, sideOffset = 4, radiu
2530
2530
  onCloseAutoFocus?.(e);
2531
2531
  },
2532
2532
  className: cn(
2533
- "z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg",
2533
+ "z-popover min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg",
2534
2534
  flush ? "py-1" : "p-1",
2535
2535
  contentRadiusMap[radius],
2536
2536
  className
@@ -2669,7 +2669,7 @@ var DropdownMenuSubContent = React17.forwardRef(({ className, ...props }, ref) =
2669
2669
  {
2670
2670
  ref,
2671
2671
  className: cn(
2672
- "z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg",
2672
+ "z-popover min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg",
2673
2673
  flush ? "py-1" : "p-1",
2674
2674
  contentRadiusMap[radius],
2675
2675
  className
@@ -2872,7 +2872,7 @@ var SelectContent = React18.forwardRef(({ className, children, position = "poppe
2872
2872
  onCloseAutoFocus?.(e);
2873
2873
  },
2874
2874
  className: cn(
2875
- "relative z-dropdown min-w-[var(--radix-select-trigger-width)] overflow-hidden border border-border bg-background text-foreground shadow-lg",
2875
+ "relative z-popover min-w-[var(--radix-select-trigger-width)] overflow-hidden border border-border bg-background text-foreground shadow-lg",
2876
2876
  flush ? "py-1" : "p-1",
2877
2877
  contentRadiusMap2[contentRadius],
2878
2878
  position === "popper" && "max-h-[var(--radix-select-content-available-height)]",
@@ -4029,7 +4029,8 @@ var tabsTriggerVariants = (0, import_class_variance_authority20.cva)(
4029
4029
  [
4030
4030
  "inline-flex items-center justify-center gap-2 whitespace-nowrap",
4031
4031
  "transition-all duration-micro ease-out cursor-pointer",
4032
- "focus-visible:focus-ring",
4032
+ // Keyboard-only focus ring: see pointer tracking in TabsTrigger
4033
+ "[&:focus-visible:not([data-pointer-focus])]:focus-ring",
4033
4034
  "disabled:pointer-events-none disabled:text-text-subtle disabled:opacity-50"
4034
4035
  ].join(" "),
4035
4036
  {
@@ -4133,9 +4134,10 @@ var pillItemRadiusClasses = {
4133
4134
  "3xl": "rounded-2xl",
4134
4135
  full: "rounded-full"
4135
4136
  };
4136
- var TabsTrigger = React24.forwardRef(({ className, children, ...props }, ref) => {
4137
+ var TabsTrigger = React24.forwardRef(({ className, children, onPointerDown, onKeyDown, onBlur, ...props }, ref) => {
4137
4138
  const { variant, size, fitted, color, radius } = useTabsStyleContext();
4138
4139
  const resolvedSize = size || "default";
4140
+ const [pointerFocus, setPointerFocus] = React24.useState(false);
4139
4141
  return /* @__PURE__ */ React24.createElement(
4140
4142
  TabsPrimitive.Trigger,
4141
4143
  {
@@ -4148,6 +4150,19 @@ var TabsTrigger = React24.forwardRef(({ className, children, ...props }, ref) =>
4148
4150
  variant === "pill" && pillItemRadiusClasses[radius || "md"],
4149
4151
  className
4150
4152
  ),
4153
+ "data-pointer-focus": pointerFocus ? "" : void 0,
4154
+ onPointerDown: (event) => {
4155
+ setPointerFocus(true);
4156
+ onPointerDown?.(event);
4157
+ },
4158
+ onKeyDown: (event) => {
4159
+ setPointerFocus(false);
4160
+ onKeyDown?.(event);
4161
+ },
4162
+ onBlur: (event) => {
4163
+ setPointerFocus(false);
4164
+ onBlur?.(event);
4165
+ },
4151
4166
  ...props
4152
4167
  },
4153
4168
  children
@@ -5589,7 +5604,7 @@ var ANIMATION_CLASSES3 = {
5589
5604
  right: "data-[state=open]:animate-popover-right-enter data-[state=closed]:animate-popover-right-exit"
5590
5605
  };
5591
5606
  var popoverContentVariants = (0, import_class_variance_authority25.cva)(
5592
- "relative z-popover font-normal select-none w-auto max-w-[calc(100vw-16px)] outline-none",
5607
+ "relative z-popover flex flex-col font-normal select-none w-auto max-w-[calc(100vw-16px)] max-h-[var(--radix-popover-content-available-height)] outline-none",
5593
5608
  {
5594
5609
  variants: {
5595
5610
  variant: {
@@ -5646,7 +5661,7 @@ var PopoverContent = React30.forwardRef(({ className, variant = "default", size,
5646
5661
  },
5647
5662
  closeIcon || /* @__PURE__ */ React30.createElement(DefaultCloseIcon3, { className: "icon-sm" })
5648
5663
  ),
5649
- children,
5664
+ /* @__PURE__ */ React30.createElement("div", { className: "min-h-0 overflow-y-auto -m-1 p-1" }, children),
5650
5665
  showArrow && variant === "default" && /* @__PURE__ */ React30.createElement(
5651
5666
  "div",
5652
5667
  {