react-better-html 1.1.199 → 1.1.201-beta
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.mjs
CHANGED
|
@@ -9397,6 +9397,7 @@ var MenuItemComponent = memo27(function MenuItemComponent2({ item, backgroundCol
|
|
|
9397
9397
|
const isCollapsed = sideMenuIsCollapsed && !mediaQuery.size1000;
|
|
9398
9398
|
const onClickElement = useCallback16(() => {
|
|
9399
9399
|
if (item.disabled) return;
|
|
9400
|
+
setActiveItem(void 0);
|
|
9400
9401
|
if (item.children) {
|
|
9401
9402
|
setSideMenuIsCollapsed.setFalse();
|
|
9402
9403
|
if (isCollapsed) setTimeout(setIsOpened.setTrue, 0.1 * 1e3);
|
|
@@ -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__ */
|
|
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%",
|