@c-rex/ui 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/sidebar.tsx +10 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c-rex/ui",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src"
package/src/sidebar.tsx CHANGED
@@ -192,7 +192,7 @@ const Sidebar = React.forwardRef<
192
192
 
193
193
  if (collapsible === "none") {
194
194
  return (
195
- <div
195
+ <aside
196
196
  className={cn(
197
197
  "flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",
198
198
  className,
@@ -201,7 +201,7 @@ const Sidebar = React.forwardRef<
201
201
  {...props}
202
202
  >
203
203
  {children}
204
- </div>
204
+ </aside>
205
205
  );
206
206
  }
207
207
 
@@ -506,12 +506,14 @@ const SidebarMenu = React.forwardRef<
506
506
  HTMLUListElement,
507
507
  React.ComponentProps<"ul">
508
508
  >(({ className, ...props }, ref) => (
509
- <ul
510
- ref={ref}
511
- data-sidebar="menu"
512
- className={cn("flex w-full min-w-0 flex-col gap-1", className)}
513
- {...props}
514
- />
509
+ <nav>
510
+ <ul
511
+ ref={ref}
512
+ data-sidebar="menu"
513
+ className={cn("flex w-full min-w-0 flex-col gap-1", className)}
514
+ {...props}
515
+ />
516
+ </nav>
515
517
  ));
516
518
  SidebarMenu.displayName = "SidebarMenu";
517
519