@danxbot/ui 5.0.0 → 5.1.0
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.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/types/components/Popover.d.ts +19 -1
- package/package.json +1 -1
|
@@ -83,13 +83,31 @@ export interface TooltipProps {
|
|
|
83
83
|
* so a preview card of one shows an unexplained button.
|
|
84
84
|
*/
|
|
85
85
|
defaultOpen?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the pointer can move off the trigger and onto the popup itself
|
|
88
|
+
* without the tooltip closing. Base UI calls the underlying prop
|
|
89
|
+
* `disableHoverablePopup`, worded as the thing being turned OFF; this is
|
|
90
|
+
* worded as the thing being asked for, because every call site reads as a
|
|
91
|
+
* question about the popup ("can this be entered?"), never about a flag
|
|
92
|
+
* named after its own negation.
|
|
93
|
+
*
|
|
94
|
+
* DEFAULT TRUE — unchanged behaviour for every tooltip that already
|
|
95
|
+
* exists. Content plain enough to live in a tooltip (see `content`'s own
|
|
96
|
+
* doc: "anything interactive belongs in a Popover") is rarely worth
|
|
97
|
+
* entering anyway, so this defaults to permissive and call sites opt OUT
|
|
98
|
+
* where entering would be actively wrong — a short label sitting directly
|
|
99
|
+
* over other interactive controls, where the extra hoverable margin just
|
|
100
|
+
* steals hover/click targets from whatever is underneath it.
|
|
101
|
+
* @default true
|
|
102
|
+
*/
|
|
103
|
+
enterable?: boolean;
|
|
86
104
|
}
|
|
87
105
|
/**
|
|
88
106
|
* Hover delay is set once on `TooltipProvider`, not per tooltip — that is where
|
|
89
107
|
* Base UI keeps it, and it is the right place: the delay only means anything
|
|
90
108
|
* relative to the OTHER tooltips nearby.
|
|
91
109
|
*/
|
|
92
|
-
export declare function Tooltip({ content, children, side, className, defaultOpen }: TooltipProps): import("react").JSX.Element;
|
|
110
|
+
export declare function Tooltip({ content, children, side, className, defaultOpen, enterable, }: TooltipProps): import("react").JSX.Element;
|
|
93
111
|
/**
|
|
94
112
|
* Share hover timing across every tooltip beneath it.
|
|
95
113
|
*
|