lizaui 10.0.52 → 10.0.53
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-lliYrsG3.js → tooltip-CnDSIV5X.js} +5 -4
- package/dist/chunks/{tooltip-lliYrsG3.js.map → tooltip-CnDSIV5X.js.map} +1 -1
- package/dist/chunks/{tooltip-DDlb4iAU.js → tooltip-Dvd1t8AT.js} +5 -4
- package/dist/chunks/{tooltip-DDlb4iAU.js.map → tooltip-Dvd1t8AT.js.map} +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -0
- 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 +2 -2
|
@@ -4,8 +4,8 @@ import { useLayoutEffect, useState, useRef } from "react";
|
|
|
4
4
|
import { i as isShadowRoot, d as isHTMLElement, e as isElement, g as getWindow, j as getOverflowAncestors, k as getComputedStyle$1, m as isWebKit, n as isLastTraversableNode, p as getParentNode, q as isNode, r as autoUpdate } from "./floating-ui.dom-C7Lh1ndC.js";
|
|
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-R77lw8hC.js";
|
|
7
|
-
import { twMerge } from "tailwind-merge";
|
|
8
7
|
import clsx from "clsx";
|
|
8
|
+
import { twMerge } from "tailwind-merge";
|
|
9
9
|
var candidateSelectors = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"];
|
|
10
10
|
var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
|
|
11
11
|
var NoElement = typeof Element === "undefined";
|
|
@@ -1913,7 +1913,8 @@ const Tooltip = ({
|
|
|
1913
1913
|
content,
|
|
1914
1914
|
className,
|
|
1915
1915
|
placement = "top",
|
|
1916
|
-
showArrow = true
|
|
1916
|
+
showArrow = true,
|
|
1917
|
+
classNameWrapper = ""
|
|
1917
1918
|
}) => {
|
|
1918
1919
|
const [isOpen, setIsOpen] = useState(false);
|
|
1919
1920
|
const arrowRef = useRef(null);
|
|
@@ -1941,7 +1942,7 @@ const Tooltip = ({
|
|
|
1941
1942
|
} = useInteractions([hover, focus, dismiss, role]);
|
|
1942
1943
|
const mergedClass = twMerge(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));
|
|
1943
1944
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1944
|
-
/* @__PURE__ */ jsx("div", { ref: refs.setReference, ...getReferenceProps(), children }),
|
|
1945
|
+
/* @__PURE__ */ jsx("div", { ref: refs.setReference, ...getReferenceProps(), className: classNameWrapper, children }),
|
|
1945
1946
|
isOpen && /* @__PURE__ */ jsx(FloatingPortal, { children: /* @__PURE__ */ jsxs("div", { ref: refs.setFloating, style: floatingStyles, ...getFloatingProps(), className: mergedClass, children: [
|
|
1946
1947
|
content,
|
|
1947
1948
|
showArrow && /* @__PURE__ */ jsx(FloatingArrow, { ref: arrowRef, context, className: "text-content1", fill: "currentColor" })
|
|
@@ -1951,4 +1952,4 @@ const Tooltip = ({
|
|
|
1951
1952
|
export {
|
|
1952
1953
|
Tooltip as T
|
|
1953
1954
|
};
|
|
1954
|
-
//# sourceMappingURL=tooltip-
|
|
1955
|
+
//# sourceMappingURL=tooltip-CnDSIV5X.js.map
|