@ctlyst.id/internal-ui 4.1.7 → 4.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +21 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -658,10 +658,10 @@ type SubMenuItem = {
|
|
658
658
|
navLink: string;
|
659
659
|
navHost: string;
|
660
660
|
title: string;
|
661
|
-
id:
|
661
|
+
id: number;
|
662
662
|
};
|
663
663
|
type MenuItem = {
|
664
|
-
id:
|
664
|
+
id: number;
|
665
665
|
icon?: string | null;
|
666
666
|
navLink: string;
|
667
667
|
navHost?: string;
|
package/dist/index.d.ts
CHANGED
@@ -658,10 +658,10 @@ type SubMenuItem = {
|
|
658
658
|
navLink: string;
|
659
659
|
navHost: string;
|
660
660
|
title: string;
|
661
|
-
id:
|
661
|
+
id: number;
|
662
662
|
};
|
663
663
|
type MenuItem = {
|
664
|
-
id:
|
664
|
+
id: number;
|
665
665
|
icon?: string | null;
|
666
666
|
navLink: string;
|
667
667
|
navHost?: string;
|
package/dist/index.js
CHANGED
@@ -5236,19 +5236,28 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
5236
5236
|
) }) }) })
|
5237
5237
|
] });
|
5238
5238
|
} }, item.id),
|
5239
|
-
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5240
|
-
|
5239
|
+
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5240
|
+
import_react77.Fade,
|
5241
5241
|
{
|
5242
|
-
|
5243
|
-
|
5244
|
-
|
5245
|
-
|
5246
|
-
|
5247
|
-
|
5248
|
-
|
5249
|
-
|
5250
|
-
|
5251
|
-
|
5242
|
+
in: true,
|
5243
|
+
transition: {
|
5244
|
+
enter: { duration: 0.5 }
|
5245
|
+
},
|
5246
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.AccordionPanel, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5247
|
+
NavItem,
|
5248
|
+
{
|
5249
|
+
mt: "1",
|
5250
|
+
"data-test-id": `CTA_Sidebar-accordion-item-${submenu.id}`,
|
5251
|
+
isActive: active === submenu.navLink,
|
5252
|
+
isChild: true,
|
5253
|
+
...itemStyles,
|
5254
|
+
onClick: () => setActive(submenu.navLink),
|
5255
|
+
children: submenu.title
|
5256
|
+
},
|
5257
|
+
submenu.id
|
5258
|
+
)) })
|
5259
|
+
}
|
5260
|
+
)
|
5252
5261
|
] });
|
5253
5262
|
} }, item.id);
|
5254
5263
|
}) })
|