opus-toolkit-components 1.5.7 → 1.5.8

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.
@@ -22420,7 +22420,7 @@ function SidebarGroup(_ref) {
22420
22420
  open: open,
22421
22421
  active: activeItem === child.key,
22422
22422
  onClick: () => onItemClick(child.key)
22423
- }, child.id || child.name))
22423
+ }, child.key))
22424
22424
  })]
22425
22425
  });
22426
22426
  }
@@ -22556,9 +22556,9 @@ function Sidebar(_ref) {
22556
22556
  onSearchChange
22557
22557
  } = _ref;
22558
22558
  const [open, setOpen] = (0,external_commonjs_react_commonjs2_react_amd_react_root_React_.useState)(false);
22559
- return /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsxs)("div", {
22559
+ return /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)("div", {
22560
22560
  className: "flex",
22561
- children: [/*#__PURE__*/(0,jsx_runtime_namespaceObject.jsxs)("div", {
22561
+ children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsxs)("div", {
22562
22562
  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
22563
  children: [/*#__PURE__*/(0,jsx_runtime_namespaceObject.jsxs)("div", {
22564
22564
  className: "flex items-center justify-between p-3 pr-0",
@@ -22610,25 +22610,19 @@ function Sidebar(_ref) {
22610
22610
  activeItem: activeItem,
22611
22611
  onItemClick: onItemClick,
22612
22612
  toggleSidebar: setOpen
22613
- }, menu.id || menu.name) : /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(SidebarItem, {
22613
+ }, menu.key) : /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(SidebarItem, {
22614
22614
  menu: menu,
22615
22615
  open: open,
22616
22616
  active: activeItem === menu.key,
22617
22617
  onClick: () => onItemClick(menu.key)
22618
- }, menu.id || menu.name))
22618
+ }, menu.key))
22619
22619
  })]
22620
22620
  }), /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(SidebarProfile, {
22621
22621
  user: user,
22622
22622
  open: open,
22623
22623
  href: "/users/".concat(user.id)
22624
22624
  })]
22625
- }), /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)("div", {
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
- })]
22625
+ })
22632
22626
  });
22633
22627
  }
22634
22628
  ;// ./src/index.js