@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 CHANGED
@@ -4467,7 +4467,16 @@ function Tooltip(props) {
4467
4467
  ] });
4468
4468
  }
4469
4469
  function Popper(props) {
4470
- const { triggerRef, content, placement = "auto", xss, bgColor = "rgba(36, 36, 36, 1)" /* Gray900 */, onMouseEnter, onMouseLeave } = props;
4470
+ const {
4471
+ triggerRef,
4472
+ content,
4473
+ placement = "auto",
4474
+ xss,
4475
+ bgColor = "rgba(36, 36, 36, 1)" /* Gray900 */,
4476
+ onMouseEnter,
4477
+ onMouseLeave,
4478
+ ...ariaProps
4479
+ } = props;
4471
4480
  const popperRef = (0, import_react3.useRef)(null);
4472
4481
  const [arrowRef, setArrowRef] = (0, import_react3.useState)(null);
4473
4482
  const targetElement = triggerRef.current ? triggerRef.current.children[0] ?? triggerRef.current.parentElement : null;
@@ -4485,6 +4494,7 @@ function Popper(props) {
4485
4494
  ref: popperRef,
4486
4495
  style: styles.popper,
4487
4496
  ...attributes.popper,
4497
+ ...ariaProps,
4488
4498
  onMouseEnter,
4489
4499
  onMouseLeave,
4490
4500
  css: {
@@ -14736,7 +14746,7 @@ function Modal(props) {
14736
14746
  onClose: closeModal,
14737
14747
  isDismissable: true,
14738
14748
  shouldCloseOnInteractOutside: (el) => {
14739
- return allowClosing && !(el.closest(".tribute-container") || el.closest("[role='dialog']") || el.closest("[role='alert']"));
14749
+ return allowClosing && !(el.closest(".tribute-container") || el.closest("[role='dialog']") || el.closest("[role='alert']") || el.closest("[role='tooltip']"));
14740
14750
  }
14741
14751
  },
14742
14752
  ref