@douglasneuroinformatics/libui 3.5.0 → 3.5.1
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/components.d.ts +5 -1
- package/dist/components.js +8 -2
- package/dist/components.js.map +1 -1
- package/dist/douglasneuroinformatics-libui-3.5.1.tgz +0 -0
- package/package.json +1 -1
- package/src/components/Tooltip/TooltipRoot.tsx +14 -2
- package/dist/douglasneuroinformatics-libui-3.5.0.tgz +0 -0
package/dist/components.d.ts
CHANGED
|
@@ -1470,11 +1470,15 @@ type TooltipRootProps = {
|
|
|
1470
1470
|
children: React$1.ReactNode;
|
|
1471
1471
|
/** The duration from when the mouse enters a tooltip trigger until the tooltip opens. */
|
|
1472
1472
|
delayDuration?: number;
|
|
1473
|
+
/** Event handler called when the open state of the tooltip changes. */
|
|
1474
|
+
onOpenChange?: (open: boolean) => void;
|
|
1475
|
+
/** The controlled open state of the tooltip. Must be used in conjunction with onOpenChange. */
|
|
1476
|
+
open?: boolean;
|
|
1473
1477
|
/** How much time a user has to enter another trigger without incurring a delay again. */
|
|
1474
1478
|
skipDelayDuration?: number;
|
|
1475
1479
|
};
|
|
1476
1480
|
|
|
1477
|
-
declare const Tooltip: (({ children, delayDuration, skipDelayDuration }: TooltipRootProps) => react_jsx_runtime.JSX.Element) & {
|
|
1481
|
+
declare const Tooltip: (({ children, delayDuration, onOpenChange, open, skipDelayDuration }: TooltipRootProps) => react_jsx_runtime.JSX.Element) & {
|
|
1478
1482
|
Content: React$1.ForwardRefExoticComponent<TooltipContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1479
1483
|
Trigger: React$1.ForwardRefExoticComponent<TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1480
1484
|
};
|
package/dist/components.js
CHANGED
|
@@ -4282,8 +4282,14 @@ var TooltipContent = React54.forwardRef(
|
|
|
4282
4282
|
import "react";
|
|
4283
4283
|
import { Provider, Root as Root21 } from "@radix-ui/react-tooltip";
|
|
4284
4284
|
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
4285
|
-
var TooltipRoot = ({
|
|
4286
|
-
|
|
4285
|
+
var TooltipRoot = ({
|
|
4286
|
+
children,
|
|
4287
|
+
delayDuration = 0,
|
|
4288
|
+
onOpenChange,
|
|
4289
|
+
open,
|
|
4290
|
+
skipDelayDuration = 300
|
|
4291
|
+
}) => {
|
|
4292
|
+
return /* @__PURE__ */ jsx180(Provider, { delayDuration, skipDelayDuration, children: /* @__PURE__ */ jsx180(Root21, { open, onOpenChange, children }) });
|
|
4287
4293
|
};
|
|
4288
4294
|
|
|
4289
4295
|
// src/components/Tooltip/TooltipTrigger.tsx
|