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.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9489,6 +9489,7 @@ var MenuItemComponent = (0, import_react30.memo)(function MenuItemComponent2({ i
|
|
|
9489
9489
|
if (isCollapsed) setTimeout(setIsOpened.setTrue, 0.1 * 1e3);
|
|
9490
9490
|
else setIsOpened.toggle();
|
|
9491
9491
|
} else {
|
|
9492
|
+
setActiveItem(void 0);
|
|
9492
9493
|
if (item.onClickCloseSideMenu !== false) onClick?.();
|
|
9493
9494
|
item.onClick?.(item);
|
|
9494
9495
|
}
|
|
@@ -9505,7 +9506,10 @@ var MenuItemComponent = (0, import_react30.memo)(function MenuItemComponent2({ i
|
|
|
9505
9506
|
const content = /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
9506
9507
|
Tooltip_default,
|
|
9507
9508
|
{
|
|
9508
|
-
content: /* @__PURE__ */ (0, import_jsx_runtime28.
|
|
9509
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
|
|
9510
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Text_default, { whiteSpace: "nowrap", children: item.text }),
|
|
9511
|
+
item.children && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon_default, { name: "chevronDown", color: theme2.colors.textSecondary, size: 14 })
|
|
9512
|
+
] }),
|
|
9509
9513
|
contentPointerEvents: "none",
|
|
9510
9514
|
withArrow: true,
|
|
9511
9515
|
childrenWrapperWidth: "100%",
|