@acvl/frontend-components 0.0.56 → 0.0.57

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 ElementType, type JSXElementConstructor, type ReactNode } from "react";
2
2
  import { type Authentication, type Branding, type DashboardHeaderProps, type Navigation, type Session } from "@toolpad/core";
3
3
  import type { SidebarFooterProps } from "@toolpad/core/DashboardLayout";
4
- import type { Theme } from "@mui/material/styles";
4
+ import type { CSSObject, Theme } from "@mui/material/styles";
5
5
  import { type DetachedPage } from "./PageHeader";
6
6
  /**
7
7
  * Cascarón de la aplicación construido sobre Toolpad: barra superior, menú de
@@ -42,6 +42,16 @@ export interface MainLayoutProps {
42
42
  * la página es más larga que el viewport.
43
43
  */
44
44
  pageBackgroundColor?: string;
45
+ /**
46
+ * Estilos extra para el `DashboardLayout`. Se aplican después de los del
47
+ * layout, así que pueden sobreescribirlos (ej. el ancho mínimo del sidebar
48
+ * o el tamaño de fuente del encabezado en un proyecto concreto).
49
+ *
50
+ * `DashboardLayout` fusiona este objeto con spread (`{ ...sx }`), por eso se
51
+ * admite solo la variante objeto de `sx`: un array o una función de tema se
52
+ * romperían en silencio.
53
+ */
54
+ sx?: CSSObject;
45
55
  /** Overrides de slots del layout. */
46
56
  slots?: {
47
57
  /** Barra superior del dashboard. Por defecto la de Toolpad. */