@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. */
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ import * as _emotion_styled from '@emotion/styled';
18
18
  import * as _mui_system from '@mui/system';
19
19
  import { Breadcrumb, PageHeaderProps, Navigation, Branding, Session, Authentication, DashboardHeaderProps } from '@toolpad/core';
20
20
  import { SidebarFooterProps } from '@toolpad/core/DashboardLayout';
21
- import { Theme } from '@mui/material/styles';
21
+ import { Theme, CSSObject } from '@mui/material/styles';
22
22
  import { UseFormReturn } from 'react-hook-form';
23
23
 
24
24
  interface NormalOrIconProps {
@@ -1296,6 +1296,16 @@ interface MainLayoutProps {
1296
1296
  * la página es más larga que el viewport.
1297
1297
  */
1298
1298
  pageBackgroundColor?: string;
1299
+ /**
1300
+ * Estilos extra para el `DashboardLayout`. Se aplican después de los del
1301
+ * layout, así que pueden sobreescribirlos (ej. el ancho mínimo del sidebar
1302
+ * o el tamaño de fuente del encabezado en un proyecto concreto).
1303
+ *
1304
+ * `DashboardLayout` fusiona este objeto con spread (`{ ...sx }`), por eso se
1305
+ * admite solo la variante objeto de `sx`: un array o una función de tema se
1306
+ * romperían en silencio.
1307
+ */
1308
+ sx?: CSSObject;
1299
1309
  /** Overrides de slots del layout. */
1300
1310
  slots?: {
1301
1311
  /** Barra superior del dashboard. Por defecto la de Toolpad. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acvl/frontend-components",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "description": "Component library for ACV frontend projects.",
5
5
  "homepage": "https://github.com/ACV-Logistics/acv-frontend-components#readme",
6
6
  "access": "public",