@firecms/core 3.0.0-canary.100 → 3.0.0-canary.101
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/dist/index.es.js +5 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/app/Scaffold.tsx +5 -2
package/dist/index.es.js
CHANGED
|
@@ -19566,6 +19566,7 @@ const Scaffold = React__default.memo(
|
|
|
19566
19566
|
setDrawerOpen(false);
|
|
19567
19567
|
}, []);
|
|
19568
19568
|
const computedDrawerOpen = drawerOpen || Boolean(largeLayout && autoOpenDrawer && onHover);
|
|
19569
|
+
const hasAppBar = Boolean(appBarChildren);
|
|
19569
19570
|
return /* @__PURE__ */ jsx(AppContext.Provider, { value: {
|
|
19570
19571
|
logo,
|
|
19571
19572
|
hasDrawer: includeDrawer,
|
|
@@ -19606,11 +19607,13 @@ const Scaffold = React__default.memo(
|
|
|
19606
19607
|
{
|
|
19607
19608
|
className: "flex flex-col flex-grow overflow-auto",
|
|
19608
19609
|
children: [
|
|
19609
|
-
/* @__PURE__ */ jsx(DrawerHeader, {}),
|
|
19610
|
+
hasAppBar && /* @__PURE__ */ jsx(DrawerHeader, {}),
|
|
19610
19611
|
/* @__PURE__ */ jsx(
|
|
19611
19612
|
"div",
|
|
19612
19613
|
{
|
|
19613
|
-
className: cls(defaultBorderMixin, "flex-grow overflow-auto lg:m-0 lg:mx-4 lg:mb-4 lg:rounded-lg lg:border lg:border-solid m-0 mt-1"
|
|
19614
|
+
className: cls(defaultBorderMixin, "flex-grow overflow-auto lg:m-0 lg:mx-4 lg:mb-4 lg:rounded-lg lg:border lg:border-solid m-0 mt-1", {
|
|
19615
|
+
"lg:mt-4": !hasAppBar
|
|
19616
|
+
}),
|
|
19614
19617
|
children: /* @__PURE__ */ jsx(ErrorBoundary, { children: otherChildren })
|
|
19615
19618
|
}
|
|
19616
19619
|
)
|