@firecms/ui 3.0.0-canary.87 → 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.
@@ -1,6 +1,7 @@
|
|
1
1
|
import React from "react";
|
2
2
|
export type TooltipProps = {
|
3
3
|
open?: boolean;
|
4
|
+
defaultOpen?: boolean;
|
4
5
|
onOpenChange?: (open: boolean) => void;
|
5
6
|
side?: "top" | "bottom" | "left" | "right";
|
6
7
|
align?: "start" | "center" | "end";
|
@@ -13,4 +14,4 @@ export type TooltipProps = {
|
|
13
14
|
children: React.ReactNode;
|
14
15
|
style?: React.CSSProperties;
|
15
16
|
};
|
16
|
-
export declare const Tooltip: ({ open, side, delayDuration, sideOffset, align, onOpenChange, title, className, style, tooltipClassName, tooltipStyle, children }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
17
|
+
export declare const Tooltip: ({ open, defaultOpen, side, delayDuration, sideOffset, align, onOpenChange, title, className, style, tooltipClassName, tooltipStyle, children }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.es.js
CHANGED
@@ -17630,6 +17630,7 @@ function TextField({
|
|
17630
17630
|
}
|
17631
17631
|
const Tooltip = ({
|
17632
17632
|
open,
|
17633
|
+
defaultOpen,
|
17633
17634
|
side = "bottom",
|
17634
17635
|
delayDuration = 200,
|
17635
17636
|
sideOffset,
|
@@ -17645,7 +17646,7 @@ const Tooltip = ({
|
|
17645
17646
|
useInjectStyles("Tooltip", styles);
|
17646
17647
|
if (!title)
|
17647
17648
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
17648
|
-
return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ jsxs(TooltipPrimitive.Root, { open, onOpenChange, children: [
|
17649
|
+
return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ jsxs(TooltipPrimitive.Root, { open, onOpenChange, defaultOpen, children: [
|
17649
17650
|
/* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className, style, children }) }),
|
17650
17651
|
/* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
17651
17652
|
TooltipPrimitive.Content,
|