@firecms/ui 3.0.0-canary.86 → 3.0.0-canary.88
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/index.umd.js
CHANGED
@@ -17247,7 +17247,7 @@
|
|
17247
17247
|
{
|
17248
17248
|
className: cls(
|
17249
17249
|
"fixed inset-0 transition-opacity z-20 ease-in-out duration-200 backdrop-blur-sm",
|
17250
|
-
"bg-
|
17250
|
+
"bg-white bg-opacity-80",
|
17251
17251
|
"dark:bg-gray-900 dark:bg-opacity-60",
|
17252
17252
|
displayed && open ? "opacity-100" : "opacity-0"
|
17253
17253
|
),
|
@@ -17640,6 +17640,7 @@
|
|
17640
17640
|
}
|
17641
17641
|
const Tooltip = ({
|
17642
17642
|
open,
|
17643
|
+
defaultOpen,
|
17643
17644
|
side = "bottom",
|
17644
17645
|
delayDuration = 200,
|
17645
17646
|
sideOffset,
|
@@ -17649,12 +17650,13 @@
|
|
17649
17650
|
className,
|
17650
17651
|
style,
|
17651
17652
|
tooltipClassName,
|
17653
|
+
tooltipStyle,
|
17652
17654
|
children
|
17653
17655
|
}) => {
|
17654
17656
|
useInjectStyles("Tooltip", styles);
|
17655
17657
|
if (!title)
|
17656
17658
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
17657
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Provider, { delayDuration, children: /* @__PURE__ */ jsxRuntime.jsxs(TooltipPrimitive__namespace.Root, { open, onOpenChange, children: [
|
17659
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Provider, { delayDuration, children: /* @__PURE__ */ jsxRuntime.jsxs(TooltipPrimitive__namespace.Root, { open, onOpenChange, defaultOpen, children: [
|
17658
17660
|
/* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className, style, children }) }),
|
17659
17661
|
/* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
17660
17662
|
TooltipPrimitive__namespace.Content,
|
@@ -17665,6 +17667,7 @@
|
|
17665
17667
|
"z-50 rounded px-3 py-2 text-xs leading-none bg-slate-700 dark:bg-slate-800 bg-opacity-90 font-medium text-slate-50 shadow-2xl select-none duration-400 ease-in transform opacity-100",
|
17666
17668
|
tooltipClassName
|
17667
17669
|
),
|
17670
|
+
style: tooltipStyle,
|
17668
17671
|
sideOffset: sideOffset === void 0 ? 4 : sideOffset,
|
17669
17672
|
align,
|
17670
17673
|
side,
|