lizaui 9.0.18 → 9.0.20
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/calendar/index.cjs.js +4 -3
- package/dist/calendar/index.cjs.js.map +1 -1
- package/dist/calendar/index.es.js +4 -3
- package/dist/calendar/index.es.js.map +1 -1
- 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/calendar/date-picker/date-picker.style.d.ts.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 @@ import { i as isShadowRoot, d as isHTMLElement, e as isElement, g as getWindow,
|
|
|
5
5
|
import * as ReactDOM from "react-dom";
|
|
6
6
|
import { u as useFloating$1, o as offset, f as flip, s as shift, a as arrow } from "./floating-ui.react-dom-BUZLdP4-.js";
|
|
7
7
|
import { twMerge } from "tailwind-merge";
|
|
8
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
9
8
|
import clsx from "clsx";
|
|
10
9
|
var candidateSelectors = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"];
|
|
11
10
|
var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
|
|
@@ -1897,55 +1896,26 @@ const Tooltip = ({ children, content, className, placement = "top", showArrow =
|
|
|
1897
1896
|
const role = useRole(context);
|
|
1898
1897
|
const { getReferenceProps, getFloatingProps } = useInteractions([hover, focus, dismiss, role]);
|
|
1899
1898
|
const mergedClass = twMerge(
|
|
1900
|
-
clsx(
|
|
1901
|
-
"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",
|
|
1902
|
-
className
|
|
1903
|
-
)
|
|
1899
|
+
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)
|
|
1904
1900
|
);
|
|
1905
1901
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1906
1902
|
/* @__PURE__ */ jsx("div", { ref: refs.setReference, ...getReferenceProps(), children }),
|
|
1907
|
-
|
|
1903
|
+
isOpen && /* @__PURE__ */ jsx(FloatingPortal, { children: /* @__PURE__ */ jsxs(
|
|
1908
1904
|
"div",
|
|
1909
1905
|
{
|
|
1910
1906
|
ref: refs.setFloating,
|
|
1911
|
-
style:
|
|
1912
|
-
...floatingStyles,
|
|
1913
|
-
zIndex: 99
|
|
1914
|
-
// Asegura que el tooltip esté por encima de otros elementos
|
|
1915
|
-
},
|
|
1907
|
+
style: floatingStyles,
|
|
1916
1908
|
...getFloatingProps(),
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
return /* @__PURE__ */ jsxs(
|
|
1923
|
-
motion.div,
|
|
1924
|
-
{
|
|
1925
|
-
initial: { opacity: 0, scale: 0.96, ...initialOffset },
|
|
1926
|
-
animate: { opacity: 1, scale: 1, x: 0, y: 0 },
|
|
1927
|
-
exit: { opacity: 0, scale: 0.98, ...initialOffset },
|
|
1928
|
-
transition: {
|
|
1929
|
-
// Entrada elástica y salida rápida
|
|
1930
|
-
type: "spring",
|
|
1931
|
-
stiffness: 550,
|
|
1932
|
-
damping: 28,
|
|
1933
|
-
mass: 0.6
|
|
1934
|
-
},
|
|
1935
|
-
style: originStyle,
|
|
1936
|
-
className: mergedClass,
|
|
1937
|
-
children: [
|
|
1938
|
-
content,
|
|
1939
|
-
showArrow && /* @__PURE__ */ jsx(FloatingArrow, { ref: arrowRef, context, className: "text-content1", fill: "currentColor" })
|
|
1940
|
-
]
|
|
1941
|
-
}
|
|
1942
|
-
);
|
|
1943
|
-
})()
|
|
1909
|
+
className: mergedClass,
|
|
1910
|
+
children: [
|
|
1911
|
+
content,
|
|
1912
|
+
showArrow && /* @__PURE__ */ jsx(FloatingArrow, { ref: arrowRef, context, className: "text-content1", fill: "currentColor" })
|
|
1913
|
+
]
|
|
1944
1914
|
}
|
|
1945
|
-
) })
|
|
1915
|
+
) })
|
|
1946
1916
|
] });
|
|
1947
1917
|
};
|
|
1948
1918
|
export {
|
|
1949
1919
|
Tooltip as T
|
|
1950
1920
|
};
|
|
1951
|
-
//# sourceMappingURL=tooltip-
|
|
1921
|
+
//# sourceMappingURL=tooltip-DgenLCkC.js.map
|