lizaui 9.0.17 → 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-DC9HhJqz.js → tooltip-DgenLCkC.js} +9 -35
- package/dist/chunks/{tooltip-e0piaL-j.js.map → tooltip-DgenLCkC.js.map} +1 -1
- package/dist/chunks/{tooltip-e0piaL-j.js → tooltip-nCIpADfj.js} +9 -35
- package/dist/chunks/{tooltip-DC9HhJqz.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,49 +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
1925
|
style: floatingStyles,
|
|
1930
1926
|
...getFloatingProps(),
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1937
|
-
framerMotion.motion.div,
|
|
1938
|
-
{
|
|
1939
|
-
initial: { opacity: 0, scale: 0.96, ...initialOffset },
|
|
1940
|
-
animate: { opacity: 1, scale: 1, x: 0, y: 0 },
|
|
1941
|
-
exit: { opacity: 0, scale: 0.98, ...initialOffset },
|
|
1942
|
-
transition: {
|
|
1943
|
-
// Entrada elástica y salida rápida
|
|
1944
|
-
type: "spring",
|
|
1945
|
-
stiffness: 550,
|
|
1946
|
-
damping: 28,
|
|
1947
|
-
mass: 0.6
|
|
1948
|
-
},
|
|
1949
|
-
style: originStyle,
|
|
1950
|
-
className: mergedClass,
|
|
1951
|
-
children: [
|
|
1952
|
-
content,
|
|
1953
|
-
showArrow && /* @__PURE__ */ jsxRuntime.jsx(FloatingArrow, { ref: arrowRef, context, className: "text-content1", fill: "currentColor" })
|
|
1954
|
-
]
|
|
1955
|
-
}
|
|
1956
|
-
);
|
|
1957
|
-
})()
|
|
1927
|
+
className: mergedClass,
|
|
1928
|
+
children: [
|
|
1929
|
+
content,
|
|
1930
|
+
showArrow && /* @__PURE__ */ jsxRuntime.jsx(FloatingArrow, { ref: arrowRef, context, className: "text-content1", fill: "currentColor" })
|
|
1931
|
+
]
|
|
1958
1932
|
}
|
|
1959
|
-
) })
|
|
1933
|
+
) })
|
|
1960
1934
|
] });
|
|
1961
1935
|
};
|
|
1962
1936
|
exports.Tooltip = Tooltip;
|
|
1963
|
-
//# sourceMappingURL=tooltip-
|
|
1937
|
+
//# sourceMappingURL=tooltip-nCIpADfj.js.map
|