@firecms/core 3.0.0-canary.100 → 3.0.0-canary.102
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 -14
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-canary.
|
|
4
|
+
"version": "3.0.0-canary.102",
|
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@firecms/formex": "^3.0.0-canary.
|
|
50
|
-
"@firecms/ui": "^3.0.0-canary.
|
|
49
|
+
"@firecms/formex": "^3.0.0-canary.102",
|
|
50
|
+
"@firecms/ui": "^3.0.0-canary.102",
|
|
51
51
|
"@hello-pangea/dnd": "^16.6.0",
|
|
52
52
|
"@radix-ui/react-portal": "^1.1.1",
|
|
53
53
|
"clsx": "^2.1.1",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"dist",
|
|
101
101
|
"src"
|
|
102
102
|
],
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "db22751d03517d639f4b23a26aa1fff81b11ee8d",
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
package/src/app/Scaffold.tsx
CHANGED
|
@@ -79,6 +79,7 @@ export const Scaffold = React.memo<PropsWithChildren<ScaffoldProps>>(
|
|
|
79
79
|
|
|
80
80
|
const computedDrawerOpen: boolean = drawerOpen || Boolean(largeLayout && autoOpenDrawer && onHover);
|
|
81
81
|
|
|
82
|
+
const hasAppBar = Boolean(appBarChildren.length > 0);
|
|
82
83
|
return (
|
|
83
84
|
<AppContext.Provider value={{
|
|
84
85
|
logo,
|
|
@@ -115,9 +116,11 @@ export const Scaffold = React.memo<PropsWithChildren<ScaffoldProps>>(
|
|
|
115
116
|
|
|
116
117
|
<main
|
|
117
118
|
className="flex flex-col flex-grow overflow-auto">
|
|
118
|
-
<DrawerHeader/>
|
|
119
|
+
{hasAppBar && <DrawerHeader/>}
|
|
119
120
|
<div
|
|
120
|
-
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"
|
|
121
|
+
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", {
|
|
122
|
+
"lg:mt-4": !hasAppBar
|
|
123
|
+
})}>
|
|
121
124
|
|
|
122
125
|
<ErrorBoundary>
|
|
123
126
|
{otherChildren}
|
|
@@ -234,18 +237,6 @@ function DrawerWrapper(props: {
|
|
|
234
237
|
|
|
235
238
|
{innerDrawer}
|
|
236
239
|
|
|
237
|
-
{/*<div*/}
|
|
238
|
-
{/* className={`z-20 absolute right-0 top-4 ${*/}
|
|
239
|
-
{/* props.open ? "opacity-100" : "opacity-0 invisible"*/}
|
|
240
|
-
{/* } transition-opacity duration-1000 ease-in-out`}>*/}
|
|
241
|
-
{/* <IconButton*/}
|
|
242
|
-
{/* aria-label="Close drawer"*/}
|
|
243
|
-
{/* onClick={() => props.setDrawerOpen(false)}*/}
|
|
244
|
-
{/* >*/}
|
|
245
|
-
{/* <ChevronLeftIcon/>*/}
|
|
246
|
-
{/* </IconButton>*/}
|
|
247
|
-
{/*</div>*/}
|
|
248
|
-
|
|
249
240
|
</div>
|
|
250
241
|
);
|
|
251
242
|
}
|