@@ -15,7 +15,6 @@ import {
1515} from "react-stately" ;
1616
1717import Button , { ButtonProps } from "~/components/Button" ;
18- import Card from "~/components/Card" ;
1918import IconButton , { IconButtonProps } from "~/components/IconButton" ;
2019import Text from "~/components/Text" ;
2120import Title from "~/components/Title" ;
@@ -101,7 +100,13 @@ function Panel(props: DialogPanelProps) {
101100 return (
102101 < Form
103102 { ...dialogProps }
104- className = { cn ( "outline-hidden rounded-lg w-full max-w-lg" , "bg-white dark:bg-mist-900" ) }
103+ className = { cn (
104+ "w-full max-w-lg rounded-xl p-4" ,
105+ "outline-hidden" ,
106+ "bg-white dark:bg-mist-900" ,
107+ "border border-mist-200 dark:border-mist-800" ,
108+ "shadow-overlay" ,
109+ ) }
105110 method = { method ?? "POST" }
106111 onSubmit = { ( event ) => {
107112 if ( onSubmit ) {
@@ -112,25 +117,23 @@ function Panel(props: DialogPanelProps) {
112117 } }
113118 ref = { ref }
114119 >
115- < Card className = "w-full max-w-lg" variant = "flat" >
116- { children }
117- < div className = "mt-6 flex justify-end gap-4" >
118- { variant === "unactionable" ? (
119- < Button onPress = { close } > Close</ Button >
120- ) : (
121- < >
122- < Button onPress = { close } > Cancel</ Button >
123- < Button
124- isDisabled = { isDisabled }
125- type = "submit"
126- variant = { variant === "destructive" ? "danger" : "heavy" }
127- >
128- Confirm
129- </ Button >
130- </ >
131- ) }
132- </ div >
133- </ Card >
120+ < div className = "flex flex-col gap-4" > { children } </ div >
121+ < div className = "mt-5 flex justify-end gap-3" >
122+ { variant === "unactionable" ? (
123+ < Button onPress = { close } > Close</ Button >
124+ ) : (
125+ < >
126+ < Button onPress = { close } > Cancel</ Button >
127+ < Button
128+ isDisabled = { isDisabled }
129+ type = "submit"
130+ variant = { variant === "destructive" ? "danger" : "heavy" }
131+ >
132+ Confirm
133+ </ Button >
134+ </ >
135+ ) }
136+ </ div >
134137 </ Form >
135138 ) ;
136139}
@@ -155,17 +158,20 @@ function DModal(props: DModalProps) {
155158 { ...underlayProps }
156159 aria-hidden = "true"
157160 className = { cn (
158- "fixed inset-0 h-screen w-screen z-20 " ,
161+ "fixed inset-0 z-20 h-screen w-screen" ,
159162 "flex items-center justify-center" ,
160- "bg-mist-900/15 dark:bg-mist-900/30 " ,
163+ "bg-mist-900/30 dark:bg-mist-950/60 " ,
161164 "entering:animate-in exiting:animate-out" ,
162165 "entering:fade-in entering:duration-100 entering:ease-out" ,
163166 "exiting:fade-out exiting:duration-50 exiting:ease-in" ,
164167 ) }
165168 />
166169 < div
167170 { ...modalProps }
168- className = { cn ( "fixed inset-0 h-screen w-screen z-20" , "flex items-center justify-center" ) }
171+ className = { cn (
172+ "fixed inset-0 z-20 h-screen w-screen" ,
173+ "flex items-center justify-center p-4" ,
174+ ) }
169175 >
170176 { children }
171177 </ div >
0 commit comments