@digital-b2c/coreui-kit 0.15.2 → 0.15.4

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
@@ -3464,6 +3464,9 @@ var NavigationMobile = ({
3464
3464
  rightButton
3465
3465
  }) => {
3466
3466
  const [expanded, setExpanded] = React70.useState([]);
3467
+ const [supportsHover] = React70.useState(
3468
+ () => typeof window !== "undefined" && window.matchMedia("(hover: hover)").matches
3469
+ );
3467
3470
  const baseId = React70.useId();
3468
3471
  const toggleExpanded = (index) => {
3469
3472
  setExpanded((prev) => prev.includes(index) ? prev.filter((i) => i !== index) : [...prev, index]);
@@ -3474,14 +3477,14 @@ var NavigationMobile = ({
3474
3477
  const collapseItem = (index) => {
3475
3478
  setExpanded((prev) => prev.filter((i) => i !== index));
3476
3479
  };
3477
- const hoverFocusProps = (index) => ({
3480
+ const hoverFocusProps = (index) => !supportsHover ? {} : {
3478
3481
  onMouseEnter: () => expandItem(index),
3479
3482
  onMouseLeave: () => collapseItem(index),
3480
3483
  onFocus: () => expandItem(index),
3481
3484
  onBlur: (e) => {
3482
3485
  if (!e.currentTarget.contains(e.relatedTarget)) collapseItem(index);
3483
3486
  }
3484
- });
3487
+ };
3485
3488
  const logo = mainLogo ? /* @__PURE__ */ jsxRuntime.jsx(Picture, { className: Navigation_module_default.logoMobile, src: mainLogo, alt: logoAlt }) : null;
3486
3489
  if (isExternal) {
3487
3490
  return /* @__PURE__ */ jsxRuntime.jsxs(