@skyvexsoftware/stratos-sdk 0.21.0 → 0.21.1
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/ui/tooltip.js +6 -1
- package/package.json +1 -1
package/dist/ui/tooltip.js
CHANGED
|
@@ -5,6 +5,11 @@ import { cn } from "../utils/cn";
|
|
|
5
5
|
const TooltipProvider = TooltipPrimitive.Provider;
|
|
6
6
|
const Tooltip = TooltipPrimitive.Root;
|
|
7
7
|
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
8
|
-
const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (
|
|
8
|
+
const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (
|
|
9
|
+
// Portalled like Popover and Select, so a tooltip inside a Dialog or any
|
|
10
|
+
// overflow-hidden container isn't clipped at that container's edge.
|
|
11
|
+
_jsx(TooltipPrimitive.Portal, { children: _jsx(TooltipPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn(
|
|
12
|
+
// Matches the web platform's tooltip: a dark chip, snappy fade and zoom.
|
|
13
|
+
"z-50 max-w-72 text-balance rounded-md bg-zinc-900 px-2.5 py-1.5 text-xs text-white shadow-lg dark:bg-zinc-800 dark:text-zinc-100 dark:ring-1 dark:ring-white/10", "ease-out-strong data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=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 origin-[var(--radix-tooltip-content-transform-origin)] duration-[125ms]", className), ...props }) })));
|
|
9
14
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
10
15
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|