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.
@@ -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
- /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: isOpen && /* @__PURE__ */ jsxRuntime.jsx(FloatingPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
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
- children: (() => {
1932
- const delta = 8;
1933
- const isVertical = placement === "top" || placement === "bottom";
1934
- const initialOffset = isVertical ? { y: placement === "top" ? delta : -delta } : { x: placement === "left" ? delta : -delta };
1935
- const originStyle = placement === "top" ? { transformOrigin: "bottom center" } : placement === "bottom" ? { transformOrigin: "top center" } : placement === "left" ? { transformOrigin: "center right" } : { transformOrigin: "center left" };
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-e0piaL-j.js.map
1937
+ //# sourceMappingURL=tooltip-nCIpADfj.js.map