react-better-html 1.1.199 → 1.1.202

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.mjs CHANGED
@@ -9402,6 +9402,7 @@ var MenuItemComponent = memo27(function MenuItemComponent2({ item, backgroundCol
9402
9402
  if (isCollapsed) setTimeout(setIsOpened.setTrue, 0.1 * 1e3);
9403
9403
  else setIsOpened.toggle();
9404
9404
  } else {
9405
+ setActiveItem(void 0);
9405
9406
  if (item.onClickCloseSideMenu !== false) onClick?.();
9406
9407
  item.onClick?.(item);
9407
9408
  }
@@ -9418,7 +9419,10 @@ var MenuItemComponent = memo27(function MenuItemComponent2({ item, backgroundCol
9418
9419
  const content = /* @__PURE__ */ jsx27(
9419
9420
  Tooltip_default,
9420
9421
  {
9421
- content: /* @__PURE__ */ jsx27(Text_default, { whiteSpace: "nowrap", children: item.text }),
9422
+ content: /* @__PURE__ */ jsxs23(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
9423
+ /* @__PURE__ */ jsx27(Text_default, { whiteSpace: "nowrap", children: item.text }),
9424
+ item.children && /* @__PURE__ */ jsx27(Icon_default, { name: "chevronDown", color: theme2.colors.textSecondary, size: 14 })
9425
+ ] }),
9422
9426
  contentPointerEvents: "none",
9423
9427
  withArrow: true,
9424
9428
  childrenWrapperWidth: "100%",