lizaui 9.0.18 → 9.0.19
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/chunks/{tooltip-3bRhDmbE.js → tooltip-DgenLCkC.js} +10 -40
- package/dist/chunks/{tooltip-3bRhDmbE.js.map → tooltip-DgenLCkC.js.map} +1 -1
- package/dist/chunks/{tooltip-CPJWT4m9.js → tooltip-nCIpADfj.js} +10 -40
- package/dist/chunks/{tooltip-CPJWT4m9.js.map → tooltip-nCIpADfj.js.map} +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/table/index.cjs.js +1 -1
- package/dist/table/index.es.js +1 -1
- package/dist/tooltip/index.cjs.js +1 -1
- package/dist/tooltip/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,6 @@ const floatingUi_dom = require("./floating-ui.dom-B9hvXzxg.js");
|
|
|
5
5
|
const ReactDOM = require("react-dom");
|
|
6
6
|
const floatingUi_reactDom = require("./floating-ui.react-dom-CI1b2uK3.js");
|
|
7
7
|
const tailwindMerge = require("tailwind-merge");
|
|
8
|
-
const framerMotion = require("framer-motion");
|
|
9
8
|
const clsx = require("clsx");
|
|
10
9
|
function _interopNamespaceDefault(e) {
|
|
11
10
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -1915,53 +1914,24 @@ const Tooltip = ({ children, content, className, placement = "top", showArrow =
|
|
|
1915
1914
|
const role = useRole(context);
|
|
1916
1915
|
const { getReferenceProps, getFloatingProps } = useInteractions([hover, focus, dismiss, role]);
|
|
1917
1916
|
const mergedClass = tailwindMerge.twMerge(
|
|
1918
|
-
clsx(
|
|
1919
|
-
"bg-content1 font-normal text-sm rounded-md filter-(--filter-drop-shadow-small) flex justify-center items-center z-99 px-2.5 py-1 outline-none box-border subpixel-antialiased normal-case",
|
|
1920
|
-
className
|
|
1921
|
-
)
|
|
1917
|
+
clsx("bg-content1 font-normal text-sm rounded-md filter-(--filter-drop-shadow-small) flex justify-center items-center z-99 px-2.5 py-1 outline-none box-border subpixel-antialiased normal-case", className)
|
|
1922
1918
|
);
|
|
1923
1919
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1924
1920
|
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: refs.setReference, ...getReferenceProps(), children }),
|
|
1925
|
-
|
|
1921
|
+
isOpen && /* @__PURE__ */ jsxRuntime.jsx(FloatingPortal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1926
1922
|
"div",
|
|
1927
1923
|
{
|
|
1928
1924
|
ref: refs.setFloating,
|
|
1929
|
-
style:
|
|
1930
|
-
...floatingStyles,
|
|
1931
|
-
zIndex: 99
|
|
1932
|
-
// Asegura que el tooltip esté por encima de otros elementos
|
|
1933
|
-
},
|
|
1925
|
+
style: floatingStyles,
|
|
1934
1926
|
...getFloatingProps(),
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1941
|
-
framerMotion.motion.div,
|
|
1942
|
-
{
|
|
1943
|
-
initial: { opacity: 0, scale: 0.96, ...initialOffset },
|
|
1944
|
-
animate: { opacity: 1, scale: 1, x: 0, y: 0 },
|
|
1945
|
-
exit: { opacity: 0, scale: 0.98, ...initialOffset },
|
|
1946
|
-
transition: {
|
|
1947
|
-
// Entrada elástica y salida rápida
|
|
1948
|
-
type: "spring",
|
|
1949
|
-
stiffness: 550,
|
|
1950
|
-
damping: 28,
|
|
1951
|
-
mass: 0.6
|
|
1952
|
-
},
|
|
1953
|
-
style: originStyle,
|
|
1954
|
-
className: mergedClass,
|
|
1955
|
-
children: [
|
|
1956
|
-
content,
|
|
1957
|
-
showArrow && /* @__PURE__ */ jsxRuntime.jsx(FloatingArrow, { ref: arrowRef, context, className: "text-content1", fill: "currentColor" })
|
|
1958
|
-
]
|
|
1959
|
-
}
|
|
1960
|
-
);
|
|
1961
|
-
})()
|
|
1927
|
+
className: mergedClass,
|
|
1928
|
+
children: [
|
|
1929
|
+
content,
|
|
1930
|
+
showArrow && /* @__PURE__ */ jsxRuntime.jsx(FloatingArrow, { ref: arrowRef, context, className: "text-content1", fill: "currentColor" })
|
|
1931
|
+
]
|
|
1962
1932
|
}
|
|
1963
|
-
) })
|
|
1933
|
+
) })
|
|
1964
1934
|
] });
|
|
1965
1935
|
};
|
|
1966
1936
|
exports.Tooltip = Tooltip;
|
|
1967
|
-
//# sourceMappingURL=tooltip-
|
|
1937
|
+
//# sourceMappingURL=tooltip-nCIpADfj.js.map
|