opus-toolkit-components 1.5.7 → 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.
|
|
22424
|
+
}, "child-".concat(child.key, "-").concat(child.path)))
|
|
22424
22425
|
})]
|
|
22425
22426
|
});
|
|
22426
22427
|
}
|
|
@@ -22556,9 +22557,9 @@ function Sidebar(_ref) {
|
|
|
22556
22557
|
onSearchChange
|
|
22557
22558
|
} = _ref;
|
|
22558
22559
|
const [open, setOpen] = (0,external_commonjs_react_commonjs2_react_amd_react_root_React_.useState)(false);
|
|
22559
|
-
return /*#__PURE__*/(0,jsx_runtime_namespaceObject.
|
|
22560
|
+
return /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
22560
22561
|
className: "flex",
|
|
22561
|
-
children:
|
|
22562
|
+
children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
22562
22563
|
className: " ".concat(open ? "w-[20rem]" : "w-[3rem]", " transition-width flex min-h-screen flex-col rounded bg-[--color-primary-bg] text-[--color-text-strong] duration-300 ease-in-out"),
|
|
22563
22564
|
children: [/*#__PURE__*/(0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
22564
22565
|
className: "flex items-center justify-between p-3 pr-0",
|
|
@@ -22605,30 +22606,26 @@ 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.
|
|
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.
|
|
22621
|
+
}, "item-".concat(menu.key, "-").concat(menu.name)))
|
|
22619
22622
|
})]
|
|
22620
22623
|
}), /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(SidebarProfile, {
|
|
22621
22624
|
user: user,
|
|
22622
22625
|
open: open,
|
|
22623
22626
|
href: "/users/".concat(user.id)
|
|
22624
22627
|
})]
|
|
22625
|
-
})
|
|
22626
|
-
className: "flex-1 p-6",
|
|
22627
|
-
children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)("h1", {
|
|
22628
|
-
className: "text-2xl font-bold text-[--color-text-strong]",
|
|
22629
|
-
children: "Dashboard Content"
|
|
22630
|
-
})
|
|
22631
|
-
})]
|
|
22628
|
+
})
|
|
22632
22629
|
});
|
|
22633
22630
|
}
|
|
22634
22631
|
;// ./src/index.js
|