@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 CHANGED
@@ -658,10 +658,10 @@ type SubMenuItem = {
658
658
  navLink: string;
659
659
  navHost: string;
660
660
  title: string;
661
- id: string;
661
+ id: number;
662
662
  };
663
663
  type MenuItem = {
664
- id: string;
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: string;
661
+ id: number;
662
662
  };
663
663
  type MenuItem = {
664
- id: string;
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)(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
  }) })