@lumx/react 4.24.0-next.2 → 4.24.0
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/index.js +3 -5
- package/index.js.map +1 -1
- package/package.json +3 -4
package/index.js
CHANGED
|
@@ -19244,12 +19244,11 @@ const SideNavigation = forwardRef((props, ref) => {
|
|
|
19244
19244
|
theme = defaultTheme,
|
|
19245
19245
|
...forwardedProps
|
|
19246
19246
|
} = props;
|
|
19247
|
-
const content = Children.toArray(children).filter(isComponent(SideNavigationItem));
|
|
19248
19247
|
return /*#__PURE__*/jsx("ul", {
|
|
19249
19248
|
ref: ref,
|
|
19250
19249
|
...forwardedProps,
|
|
19251
19250
|
className: classNames.join(className, theme === Theme$1.dark && 'lumx-color-font-light-N', CLASSNAME$l),
|
|
19252
|
-
children:
|
|
19251
|
+
children: children
|
|
19253
19252
|
});
|
|
19254
19253
|
});
|
|
19255
19254
|
SideNavigation.displayName = COMPONENT_NAME$m;
|
|
@@ -19302,8 +19301,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
19302
19301
|
closeMode = DEFAULT_PROPS$n.closeMode,
|
|
19303
19302
|
...forwardedProps
|
|
19304
19303
|
} = props;
|
|
19305
|
-
const
|
|
19306
|
-
const hasContent = !isEmpty(content);
|
|
19304
|
+
const hasContent = !isEmpty(Children.toArray(children));
|
|
19307
19305
|
const shouldSplitActions = Boolean(onActionClick);
|
|
19308
19306
|
const showChildren = hasContent && isOpen;
|
|
19309
19307
|
|
|
@@ -19375,7 +19373,7 @@ const SideNavigationItem = forwardRef((props, ref) => {
|
|
|
19375
19373
|
}), (closeMode === 'hide' || showChildren) && /*#__PURE__*/jsx("ul", {
|
|
19376
19374
|
className: element$a('children'),
|
|
19377
19375
|
id: contentId,
|
|
19378
|
-
children:
|
|
19376
|
+
children: children
|
|
19379
19377
|
})]
|
|
19380
19378
|
});
|
|
19381
19379
|
});
|