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.js
CHANGED
|
@@ -9484,6 +9484,7 @@ var MenuItemComponent = (0, import_react30.memo)(function MenuItemComponent2({ i
|
|
|
9484
9484
|
const isCollapsed = sideMenuIsCollapsed && !mediaQuery.size1000;
|
|
9485
9485
|
const onClickElement = (0, import_react30.useCallback)(() => {
|
|
9486
9486
|
if (item.disabled) return;
|
|
9487
|
+
setActiveItem(void 0);
|
|
9487
9488
|
if (item.children) {
|
|
9488
9489
|
setSideMenuIsCollapsed.setFalse();
|
|
9489
9490
|
if (isCollapsed) setTimeout(setIsOpened.setTrue, 0.1 * 1e3);
|
|
@@ -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%",
|