@firecms/ui 3.0.0-canary.220 → 3.0.0-canary.221
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/components/Dialog.d.ts +2 -1
- package/dist/index.es.js +88 -78
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +88 -78
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Dialog.tsx +3 -1
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@firecms/ui",
|
3
3
|
"type": "module",
|
4
|
-
"version": "3.0.0-canary.
|
4
|
+
"version": "3.0.0-canary.221",
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
6
6
|
"funding": {
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
@@ -115,7 +115,7 @@
|
|
115
115
|
"index.css",
|
116
116
|
"tailwind.config.js"
|
117
117
|
],
|
118
|
-
"gitHead": "
|
118
|
+
"gitHead": "2734014b372cfc49275621a9a6113e8f3cb3ee4e",
|
119
119
|
"publishConfig": {
|
120
120
|
"access": "public"
|
121
121
|
}
|
@@ -9,6 +9,7 @@ export type DialogProps = {
|
|
9
9
|
onOpenChange?: (open: boolean) => void;
|
10
10
|
children: React.ReactNode;
|
11
11
|
className?: string;
|
12
|
+
containerClassName?: string;
|
12
13
|
fullWidth?: boolean;
|
13
14
|
fullHeight?: boolean;
|
14
15
|
fullScreen?: boolean;
|
@@ -41,6 +42,7 @@ export const Dialog = ({
|
|
41
42
|
onOpenChange,
|
42
43
|
children,
|
43
44
|
className,
|
45
|
+
containerClassName,
|
44
46
|
fullWidth = true,
|
45
47
|
fullHeight,
|
46
48
|
fullScreen,
|
@@ -73,7 +75,7 @@ export const Dialog = ({
|
|
73
75
|
onOpenChange={onOpenChange}>
|
74
76
|
<DialogPrimitive.Portal>
|
75
77
|
|
76
|
-
<div className={"fixed inset-0 z-30"}>
|
78
|
+
<div className={cls("fixed inset-0 z-30", containerClassName)}>
|
77
79
|
|
78
80
|
<DialogPrimitive.Overlay
|
79
81
|
className={cls("fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black bg-opacity-50 dark:bg-opacity-60 backdrop-blur-sm ",
|