@vendure-io/ui 2.0.0-beta.4 → 2.0.0-beta.5
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure-io/ui",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.5",
|
|
4
4
|
"description": "React component library for Vendure, built on shadcn/ui and Tailwind v4",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://github.com/vendurehq/design/tree/main/packages/ui",
|
|
@@ -17,13 +17,14 @@ import type * as React from 'react';
|
|
|
17
17
|
// The sidebar slot is deliberately unopinionated: drop the full `Sidebar` atom in
|
|
18
18
|
// for a real app, or use `AppShellSidebar` for a lightweight rail. Content owns a
|
|
19
19
|
// header + main anatomy so every consumer gets the same scroll boundary and skip
|
|
20
|
-
// link target without coupling the design system to a router or auth provider.
|
|
20
|
+
// link target without coupling the design system to a router or auth provider. The
|
|
21
|
+
// shell is viewport-bound so the canvas inset remains visible while main scrolls.
|
|
21
22
|
|
|
22
23
|
function AppShell({ className, ...props }: React.ComponentProps<'div'>) {
|
|
23
24
|
return (
|
|
24
25
|
<div
|
|
25
26
|
data-slot="app-shell"
|
|
26
|
-
className={cn('bg-background text-foreground flex
|
|
27
|
+
className={cn('bg-background text-foreground flex h-svh w-full overflow-hidden', className)}
|
|
27
28
|
{...props}
|
|
28
29
|
/>
|
|
29
30
|
);
|
|
@@ -78,7 +79,7 @@ function AppShellMain({ className, id = 'main-content', ...props }: React.Compon
|
|
|
78
79
|
id={id}
|
|
79
80
|
tabIndex={-1}
|
|
80
81
|
data-slot="app-shell-main"
|
|
81
|
-
className={cn('min-w-0 flex-1 overflow-auto outline-none', className)}
|
|
82
|
+
className={cn('min-h-0 min-w-0 flex-1 overflow-auto outline-none', className)}
|
|
82
83
|
{...props}
|
|
83
84
|
/>
|
|
84
85
|
);
|