@firecms/core 3.0.0-canary.62 → 3.0.0-canary.63

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.
@@ -8,6 +8,10 @@ export interface ScaffoldProps {
8
8
  * Open the drawer on hover
9
9
  */
10
10
  autoOpenDrawer?: boolean;
11
+ /**
12
+ * Logo to be displayed in the top bar and drawer.
13
+ * Note that this has no effect if you are using a custom AppBar or Drawer.
14
+ */
11
15
  logo?: string;
12
16
  className?: string;
13
17
  style?: React.CSSProperties;
@@ -3,7 +3,7 @@ import React from "react";
3
3
  * This context represents the state of the app in terms of layout.
4
4
  * @group Core
5
5
  */
6
- export type DrawerState = {
6
+ export type AppState = {
7
7
  hasDrawer: boolean;
8
8
  drawerHovered: boolean;
9
9
  drawerOpen: boolean;
@@ -12,5 +12,5 @@ export type DrawerState = {
12
12
  autoOpenDrawer?: boolean;
13
13
  logo?: string;
14
14
  };
15
- export declare const AppContext: React.Context<DrawerState>;
16
- export declare function useApp(): DrawerState;
15
+ export declare const AppContext: React.Context<AppState>;
16
+ export declare function useApp(): AppState;
@@ -7,7 +7,7 @@ export type NavigationRoutesProps = {
7
7
  * In case you need to override the home page
8
8
  */
9
9
  homePage?: React.ReactNode;
10
- customRoutes?: React.ReactNode[];
10
+ children?: React.ReactNode | React.ReactNode[];
11
11
  };
12
12
  /**
13
13
  * This component is in charge of rendering
package/dist/index.es.js CHANGED
@@ -16315,7 +16315,7 @@ function qd(e) {
16315
16315
  /* @__PURE__ */ n(
16316
16316
  "div",
16317
16317
  {
16318
- className: `absolute right-0 top-4 ${e.open ? "opacity-100" : "opacity-0 invisible"} transition-opacity duration-200 ease-in-out`,
16318
+ className: `z-20 absolute right-0 top-4 ${e.open ? "opacity-100" : "opacity-0 invisible"} transition-opacity duration-200 ease-in-out`,
16319
16319
  children: /* @__PURE__ */ n(
16320
16320
  de,
16321
16321
  {
@@ -16573,7 +16573,7 @@ function Hd({ logo: e }) {
16573
16573
  const fm = S.memo(
16574
16574
  function({
16575
16575
  homePage: t = /* @__PURE__ */ n(Cc, {}),
16576
- customRoutes: r
16576
+ children: r
16577
16577
  }) {
16578
16578
  const i = Ar(), a = _e();
16579
16579
  if (!a)