@ctlyst.id/internal-ui 4.1.8 → 4.1.9

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 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)(import_react77.AccordionPanel, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5240
- NavItem,
5239
+ !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5240
+ import_react77.Fade,
5241
5241
  {
5242
- mt: "1",
5243
- "data-test-id": `CTA_Sidebar-accordion-item-${submenu.id}`,
5244
- isActive: active === submenu.navLink,
5245
- isChild: true,
5246
- ...itemStyles,
5247
- onClick: () => setActive(submenu.navLink),
5248
- children: submenu.title
5249
- },
5250
- submenu.id
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
  }) })