@saas-ui/react 3.0.0-next.28 → 3.0.0-next.29

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.
@@ -1,7 +1,7 @@
1
1
  import { type HTMLChakraProps, type SlotRecipeProps } from '@chakra-ui/react/styled-system';
2
2
  declare const useAppShellStyles: () => Record<string, import("@chakra-ui/react").SystemStyleObject>;
3
3
  export { useAppShellStyles };
4
- export interface AppShellProps extends HTMLChakraProps<'div'> {
4
+ export interface AppShellBaseProps {
5
5
  /**
6
6
  * The top header navigation
7
7
  */
@@ -18,12 +18,8 @@ export interface AppShellProps extends HTMLChakraProps<'div'> {
18
18
  * The footer
19
19
  */
20
20
  footer?: React.ReactNode;
21
- /**
22
- * The main content
23
- */
24
- children: React.ReactNode;
25
21
  }
26
- export interface AppShellRootProps extends Omit<AppShellProps, 'position'>, SlotRecipeProps<'suiAppShell'> {
22
+ export interface AppShellRootProps extends HTMLChakraProps<'div'>, SlotRecipeProps<'suiAppShell'> {
27
23
  }
28
24
  /**
29
25
  * The App Shell defines the main structure of your app.
@@ -37,4 +33,6 @@ export declare const AppShellContent: import("react").ForwardRefExoticComponent<
37
33
  export interface AppShellMainProps extends HTMLChakraProps<'div'> {
38
34
  }
39
35
  export declare const AppShellMain: import("react").ForwardRefExoticComponent<AppShellMainProps & import("react").RefAttributes<HTMLDivElement>>;
40
- export declare const AppShell: import("react").ForwardRefExoticComponent<AppShellRootProps & import("react").RefAttributes<HTMLDivElement>>;
36
+ export interface AppShellProps extends AppShellBaseProps, HTMLChakraProps<'div'> {
37
+ }
38
+ export declare const AppShell: import("react").ForwardRefExoticComponent<AppShellProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,11 +1,6 @@
1
- export declare const appShellSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"content" | "root" | "main", {
2
- position: {
3
- static: {
4
- root: {
5
- height: "100dvh";
6
- };
7
- };
8
- fullscreen: {
1
+ export declare const appShellSlotRecipe: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "content" | "main", {
2
+ fullscreen: {
3
+ true: {
9
4
  root: {
10
5
  position: "fixed";
11
6
  inset: number;
@@ -6,6 +6,7 @@ export const appShellSlotRecipe = defineSlotRecipe({
6
6
  root: {
7
7
  display: 'flex',
8
8
  flexDirection: 'column',
9
+ height: '100dvh',
9
10
  },
10
11
  content: {
11
12
  display: 'flex',
@@ -21,13 +22,8 @@ export const appShellSlotRecipe = defineSlotRecipe({
21
22
  },
22
23
  },
23
24
  variants: {
24
- position: {
25
- static: {
26
- root: {
27
- height: '100dvh',
28
- },
29
- },
30
- fullscreen: {
25
+ fullscreen: {
26
+ true: {
31
27
  root: {
32
28
  position: 'fixed',
33
29
  inset: 0,
@@ -39,7 +35,7 @@ export const appShellSlotRecipe = defineSlotRecipe({
39
35
  },
40
36
  },
41
37
  defaultVariants: {
42
- position: 'static',
38
+ fullscreen: false,
43
39
  variant: 'plain',
44
40
  },
45
41
  });