@ctlyst.id/internal-ui 4.1.8 → 4.1.9
Sign up to get free protection for your applications and to get access to all the features.
- 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.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
|
}) })
|