@trycompai/design-system 1.0.38 → 1.0.40

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": "@trycompai/design-system",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "Design system for Comp AI - shadcn-style components with Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -85,7 +85,9 @@ const appShellSidebarVariants = cva(
85
85
  },
86
86
  );
87
87
 
88
- const appShellContentVariants = cva('flex flex-1 flex-col overflow-auto bg-background min-h-0 border-l border-border', {
88
+ const appShellContentVariants = cva(
89
+ 'flex flex-1 flex-col overflow-auto overscroll-none bg-background min-h-0 border-l border-border',
90
+ {
89
91
  variants: {
90
92
  padding: {
91
93
  none: '',
@@ -97,7 +99,8 @@ const appShellContentVariants = cva('flex flex-1 flex-col overflow-auto bg-backg
97
99
  defaultVariants: {
98
100
  padding: 'default',
99
101
  },
100
- });
102
+ },
103
+ );
101
104
 
102
105
  const appShellSearchVariants = cva('', {
103
106
  variants: {
@@ -6,7 +6,7 @@ import { Stack } from '../atoms/stack';
6
6
  import { Skeleton } from '../atoms/skeleton';
7
7
  import { Heading } from '../atoms/heading';
8
8
 
9
- const pageLayoutVariants = cva('min-h-full bg-background text-foreground', {
9
+ const pageLayoutVariants = cva('bg-background text-foreground', {
10
10
  variants: {
11
11
  variant: {
12
12
  default: 'flex flex-col',
@@ -18,10 +18,15 @@ const pageLayoutVariants = cva('min-h-full bg-background text-foreground', {
18
18
  default: 'px-1.5 sm:px-2 md:px-3 lg:px-4 py-2 sm:py-3 md:py-4 lg:py-5',
19
19
  lg: 'px-2 sm:px-3 md:px-4 lg:px-6 py-3 sm:py-4 md:py-5 lg:py-6',
20
20
  },
21
+ fillHeight: {
22
+ true: 'min-h-full',
23
+ false: '',
24
+ },
21
25
  },
22
26
  defaultVariants: {
23
27
  variant: 'default',
24
28
  padding: 'none',
29
+ fillHeight: false,
25
30
  },
26
31
  });
27
32
 
@@ -56,6 +61,8 @@ interface PageLayoutProps
56
61
  loadingTitle?: string;
57
62
  /** Header element (e.g., PageHeader) that renders regardless of loading state. */
58
63
  header?: React.ReactNode;
64
+ /** Whether to fill the parent height (min-h-full). Defaults to false. */
65
+ fillHeight?: boolean;
59
66
  }
60
67
 
61
68
  function PageLayoutSkeleton({ title, includeHeader = true }: { title?: string; includeHeader?: boolean }) {
@@ -88,6 +95,7 @@ function PageLayoutSkeleton({ title, includeHeader = true }: { title?: string; i
88
95
  function PageLayout({
89
96
  variant,
90
97
  padding,
98
+ fillHeight = false,
91
99
  container = true,
92
100
  maxWidth,
93
101
  gap = 'lg',
@@ -121,7 +129,7 @@ function PageLayout({
121
129
  data-slot="page-layout"
122
130
  data-variant={variant}
123
131
  data-loading={loading || undefined}
124
- className={pageLayoutVariants({ variant, padding })}
132
+ className={pageLayoutVariants({ variant, padding, fillHeight })}
125
133
  {...props}
126
134
  >
127
135
  {container ? (