@ctlyst.id/internal-ui 4.1.15 → 4.1.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -675,7 +675,7 @@ interface SidebarMenuProps {
|
|
675
675
|
menu: MenuItem[];
|
676
676
|
isCollapse: boolean;
|
677
677
|
active: string | undefined;
|
678
|
-
setActive: (active: string) => void;
|
678
|
+
setActive: (active: string, fromParent?: boolean) => void;
|
679
679
|
itemStyles?: NavItemProps;
|
680
680
|
mappingIcon?: Map<string, JSX.Element>;
|
681
681
|
}
|
package/dist/index.d.ts
CHANGED
@@ -675,7 +675,7 @@ interface SidebarMenuProps {
|
|
675
675
|
menu: MenuItem[];
|
676
676
|
isCollapse: boolean;
|
677
677
|
active: string | undefined;
|
678
|
-
setActive: (active: string) => void;
|
678
|
+
setActive: (active: string, fromParent?: boolean) => void;
|
679
679
|
itemStyles?: NavItemProps;
|
680
680
|
mappingIcon?: Map<string, JSX.Element>;
|
681
681
|
}
|
package/dist/index.js
CHANGED
@@ -5159,7 +5159,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
5159
5159
|
isActive,
|
5160
5160
|
bg: activeParent,
|
5161
5161
|
"data-test-id": `CTA_nav-item-${item.title}`,
|
5162
|
-
onClick: () => setActive(item.children.length > 0 ? item.children[0].navLink : item.navLink),
|
5162
|
+
onClick: () => setActive(item.children.length > 0 ? item.children[0].navLink : item.navLink, true),
|
5163
5163
|
position: "relative",
|
5164
5164
|
...itemStyles,
|
5165
5165
|
children: [
|