@homebound/beam 2.415.4 → 2.415.5
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 +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4090,7 +4090,16 @@ function Tooltip(props) {
|
|
|
4090
4090
|
] });
|
|
4091
4091
|
}
|
|
4092
4092
|
function Popper(props) {
|
|
4093
|
-
const {
|
|
4093
|
+
const {
|
|
4094
|
+
triggerRef,
|
|
4095
|
+
content,
|
|
4096
|
+
placement = "auto",
|
|
4097
|
+
xss,
|
|
4098
|
+
bgColor = "rgba(36, 36, 36, 1)" /* Gray900 */,
|
|
4099
|
+
onMouseEnter,
|
|
4100
|
+
onMouseLeave,
|
|
4101
|
+
...ariaProps
|
|
4102
|
+
} = props;
|
|
4094
4103
|
const popperRef = useRef2(null);
|
|
4095
4104
|
const [arrowRef, setArrowRef] = useState2(null);
|
|
4096
4105
|
const targetElement = triggerRef.current ? triggerRef.current.children[0] ?? triggerRef.current.parentElement : null;
|
|
@@ -4108,6 +4117,7 @@ function Popper(props) {
|
|
|
4108
4117
|
ref: popperRef,
|
|
4109
4118
|
style: styles.popper,
|
|
4110
4119
|
...attributes.popper,
|
|
4120
|
+
...ariaProps,
|
|
4111
4121
|
onMouseEnter,
|
|
4112
4122
|
onMouseLeave,
|
|
4113
4123
|
css: {
|
|
@@ -14377,7 +14387,7 @@ function Modal(props) {
|
|
|
14377
14387
|
onClose: closeModal,
|
|
14378
14388
|
isDismissable: true,
|
|
14379
14389
|
shouldCloseOnInteractOutside: (el) => {
|
|
14380
|
-
return allowClosing && !(el.closest(".tribute-container") || el.closest("[role='dialog']") || el.closest("[role='alert']"));
|
|
14390
|
+
return allowClosing && !(el.closest(".tribute-container") || el.closest("[role='dialog']") || el.closest("[role='alert']") || el.closest("[role='tooltip']"));
|
|
14381
14391
|
}
|
|
14382
14392
|
},
|
|
14383
14393
|
ref
|