@brighthr/component-tooltip
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -18,3 +18,4 @@ // src/index.tsx | ||
useTransitionStyles, | ||
useClick | ||
useClick, | ||
FloatingPortal | ||
} from "@floating-ui/react"; | ||
@@ -81,3 +82,3 @@ var Tooltip = ({ | ||
Icon ? /* @__PURE__ */ React.createElement(Icon, { className: "w-6", "data-testid": "tool-tip-icon" }) : label | ||
), visible && /* @__PURE__ */ React.createElement( | ||
), visible && /* @__PURE__ */ React.createElement(FloatingPortal, null, /* @__PURE__ */ React.createElement( | ||
"div", | ||
@@ -92,6 +93,9 @@ { | ||
{ | ||
className: cn(`p-2 rounded-[4px] text-sm ${width}`, { | ||
"bg-neutral-700 text-white": darkBackground, | ||
"bg-white shadow-lg": whiteBackground | ||
}), | ||
className: cn( | ||
`p-2 rounded-[4px] text-sm ${width}`, | ||
{ | ||
"bg-neutral-700 text-white": darkBackground, | ||
"bg-white text-black shadow-lg": whiteBackground | ||
} | ||
), | ||
style: transitionStyles | ||
@@ -114,3 +118,3 @@ }, | ||
) | ||
)); | ||
))); | ||
}; | ||
@@ -117,0 +121,0 @@ var src_default = Tooltip; |
{ | ||
"name": "@brighthr/component-tooltip", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"license": "MIT", | ||
@@ -27,3 +27,3 @@ "type": "module", | ||
}, | ||
"gitHead": "0dba297b12f62dc853ab167543535322a9014fce" | ||
"gitHead": "d9d135a496a31fc849878cba30d7b5234ac4271e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18729
234