@lumx/react 3.6.5-alpha.1 → 3.6.5-alpha.3

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/index.js CHANGED
@@ -12851,7 +12851,7 @@ Toolbar.defaultProps = DEFAULT_PROPS$10;
12851
12851
  /**
12852
12852
  * Add ref and ARIA attribute(s) in tooltip children or wrapped children.
12853
12853
  * Button, IconButton, Icon and React HTML elements don't need to be wrapped but any other kind of children (array, fragment, custom components)
12854
- * will be wrapped in a <span>.
12854
+ * will be wrapped.
12855
12855
  *
12856
12856
  * @param children Original tooltip anchor.
12857
12857
  * @param setAnchorElement Set tooltip anchor element.
@@ -12884,7 +12884,7 @@ const useInjectTooltipRef = (children, setAnchorElement, isOpen, id, label) => {
12884
12884
  ref: ref,
12885
12885
  "aria-describedby": isOpen ? id : undefined
12886
12886
  }, children);
12887
- }, [element, children, setAnchorElement, isOpen, id, ref, label]);
12887
+ }, [element, children, isOpen, id, ref, label]);
12888
12888
  };
12889
12889
 
12890
12890
  /** Return true if the browser does not support pointer hover */
@@ -12895,8 +12895,13 @@ const browserDoesNotSupportHover = () => {
12895
12895
 
12896
12896
  /** Check if the focus is visible on the given element */
12897
12897
  const isFocusVisible = element => {
12898
- var _element$matches;
12899
- return element === null || element === void 0 ? void 0 : (_element$matches = element.matches) === null || _element$matches === void 0 ? void 0 : _element$matches.call(element, ':focus-visible, [data-focus-visible-added]');
12898
+ try {
12899
+ var _element$matches;
12900
+ return element === null || element === void 0 ? void 0 : (_element$matches = element.matches) === null || _element$matches === void 0 ? void 0 : _element$matches.call(element, ':focus-visible, [data-focus-visible-added]');
12901
+ } catch (_ignored) {
12902
+ // Can fail on non browser env
12903
+ return false;
12904
+ }
12900
12905
  };
12901
12906
 
12902
12907
  /**