New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fremtind/jkl-tooltip-react

Package Overview
Dependencies
Maintainers
0
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fremtind/jkl-tooltip-react - npm Package Compare versions

Comparing version

to
4.6.1

8

build/cjs/Tooltip.js

@@ -43,3 +43,4 @@ "use strict";

delay = 250,
triggerOn = "hover"
triggerOn = "hover",
onOpenChange
}) => {

@@ -52,3 +53,6 @@ const [isOpen, setOpen] = (0, import_react2.useState)(initialOpen);

open: isOpen,
onOpenChange: setOpen,
onOpenChange: (open) => {
onOpenChange == null ? void 0 : onOpenChange(open);
setOpen(open);
},
placement,

@@ -55,0 +59,0 @@ whileElementsMounted: import_react.autoUpdate,

@@ -20,3 +20,4 @@ import {

delay = 250,
triggerOn = "hover"
triggerOn = "hover",
onOpenChange
}) => {

@@ -29,3 +30,6 @@ const [isOpen, setOpen] = useState(initialOpen);

open: isOpen,
onOpenChange: setOpen,
onOpenChange: (open) => {
onOpenChange == null ? void 0 : onOpenChange(open);
setOpen(open);
},
placement,

@@ -32,0 +36,0 @@ whileElementsMounted: autoUpdate,

@@ -33,3 +33,3 @@ import { type Placement } from "@floating-ui/react";

}
export declare const useTooltip: ({ initialOpen, placement, delay, triggerOn, }: TooltipProps) => {
export declare const useTooltip: ({ initialOpen, placement, delay, triggerOn, onOpenChange, }: TooltipProps) => {
getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;

@@ -36,0 +36,0 @@ getFloatingProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;

{
"name": "@fremtind/jkl-tooltip-react",
"version": "4.6.0",
"version": "4.6.1",
"publishConfig": {

@@ -60,3 +60,3 @@ "access": "public"

},
"gitHead": "1c88a93c93e77ece10741bf0c8e52d342837a103"
"gitHead": "02d0e3a7c81da10ec75b2dc59b0d54d269ba9c87"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet