@homebound/beam 2.399.0 → 2.399.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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4543,8 +4543,8 @@ function pluralize(count, noun, pluralNoun) {
|
|
|
4543
4543
|
// src/components/Tooltip.tsx
|
|
4544
4544
|
var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
|
|
4545
4545
|
function Tooltip(props) {
|
|
4546
|
-
const { placement, children, title, disabled, delay = 0, bgColor, xss } = props;
|
|
4547
|
-
const state = (0, import_react_stately.useTooltipTriggerState)({ delay, isDisabled: disabled });
|
|
4546
|
+
const { placement, children, title, disabled, delay = 0, closeDelay = 500, bgColor, xss } = props;
|
|
4547
|
+
const state = (0, import_react_stately.useTooltipTriggerState)({ delay, closeDelay, isDisabled: disabled });
|
|
4548
4548
|
const triggerRef = (0, import_react3.useRef)(null);
|
|
4549
4549
|
const { triggerProps, tooltipProps: _tooltipProps } = (0, import_react_aria.useTooltipTrigger)({ isDisabled: disabled }, state, triggerRef);
|
|
4550
4550
|
const { tooltipProps } = (0, import_react_aria.useTooltip)(_tooltipProps, state);
|
|
@@ -4557,7 +4557,7 @@ function Tooltip(props) {
|
|
|
4557
4557
|
...triggerProps,
|
|
4558
4558
|
...!state.isOpen && typeof title === "string" ? { title } : {},
|
|
4559
4559
|
...tid,
|
|
4560
|
-
css: Css.display("contents").addIn(":active", Css.add("pointerEvents", "none").$).$,
|
|
4560
|
+
css: Css.display("contents").addIn(":active:not(:has(a))", Css.add("pointerEvents", "none").$).$,
|
|
4561
4561
|
draggable: true,
|
|
4562
4562
|
onDragStart: (e) => e.preventDefault(),
|
|
4563
4563
|
children
|