opus-toolkit-components 1.5.8 → 1.5.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.
|
@@ -22416,11 +22416,12 @@ function SidebarGroup(_ref) {
|
|
|
22416
22416
|
}), /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
22417
22417
|
className: "ml-10 mt-1 overflow-hidden transition-all duration-300 ease-in-out ".concat(expanded && open ? "max-h-96 opacity-100" : "max-h-0 opacity-0"),
|
|
22418
22418
|
children: menu.children.map(child => /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(SidebarItem, {
|
|
22419
|
+
// composite unique key
|
|
22419
22420
|
menu: child,
|
|
22420
22421
|
open: open,
|
|
22421
22422
|
active: activeItem === child.key,
|
|
22422
22423
|
onClick: () => onItemClick(child.key)
|
|
22423
|
-
}, child.key))
|
|
22424
|
+
}, "child-".concat(child.key, "-").concat(child.path)))
|
|
22424
22425
|
})]
|
|
22425
22426
|
});
|
|
22426
22427
|
}
|
|
@@ -22605,17 +22606,19 @@ function Sidebar(_ref) {
|
|
|
22605
22606
|
}), /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
22606
22607
|
className: "menu-item-container",
|
|
22607
22608
|
children: menus.map(menu => menu.children ? /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(SidebarGroup, {
|
|
22609
|
+
// composite key
|
|
22608
22610
|
menu: menu,
|
|
22609
22611
|
open: open,
|
|
22610
22612
|
activeItem: activeItem,
|
|
22611
22613
|
onItemClick: onItemClick,
|
|
22612
22614
|
toggleSidebar: setOpen
|
|
22613
|
-
}, menu.key) : /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(SidebarItem, {
|
|
22615
|
+
}, "group-".concat(menu.key, "-").concat(menu.name)) : /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(SidebarItem, {
|
|
22616
|
+
// composite key
|
|
22614
22617
|
menu: menu,
|
|
22615
22618
|
open: open,
|
|
22616
22619
|
active: activeItem === menu.key,
|
|
22617
22620
|
onClick: () => onItemClick(menu.key)
|
|
22618
|
-
}, menu.key))
|
|
22621
|
+
}, "item-".concat(menu.key, "-").concat(menu.name)))
|
|
22619
22622
|
})]
|
|
22620
22623
|
}), /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(SidebarProfile, {
|
|
22621
22624
|
user: user,
|