@fabio.caffarello/react-design-system 1.5.0 → 1.5.1

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fabio.caffarello/react-design-system",
3
3
  "private": false,
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -46,6 +46,7 @@ function SidebarComponent({
46
46
  "border-r",
47
47
  "border-gray-200",
48
48
  "h-full",
49
+ "w-full",
49
50
  ];
50
51
 
51
52
  const variantClasses = {
@@ -60,18 +61,20 @@ function SidebarComponent({
60
61
  ].filter(Boolean).join(" ");
61
62
 
62
63
  return (
63
- <aside className={classes} {...props}>
64
+ <div className={classes} {...props}>
64
65
  {showHeader && title && (
65
- <SidebarHeader
66
- title={title}
67
- onClose={onClose}
68
- showCloseButton={!!onClose}
69
- />
66
+ <div className="flex-shrink-0">
67
+ <SidebarHeader
68
+ title={title}
69
+ onClose={onClose}
70
+ showCloseButton={!!onClose}
71
+ />
72
+ </div>
70
73
  )}
71
- <nav className="flex-1 overflow-y-auto py-4">
74
+ <div className="flex-1 overflow-y-auto py-4 min-h-0">
72
75
  {children}
73
- </nav>
74
- </aside>
76
+ </div>
77
+ </div>
75
78
  );
76
79
  }
77
80