@@ -51,69 +51,69 @@ export default function BasicDemo() {
5151 < div className = "fixed inset-0 z-1100" >
5252 { backdropMotion . state . rendered && < div { ...backdropProps } ref = { backdropRef } className = "fixed inset-0 bg-black/50" /> }
5353 < div { ...positionerProps } className = "fixed inset-0 flex items-center justify-center p-8 pointer-events-none" >
54- { popupMotion . state . rendered && (
55- < div
56- { ...popupProps }
57- ref = { popupRef }
58- className = "w-[28rem] max-w-[90vw] max-h-full bg-surface-0 dark:bg-surface-900 rounded-xl shadow-2xl flex flex-col border border-surface-200 dark:border-surface-700 pointer-events-auto"
59- >
60- < div { ...headerProps } className = "flex items-center justify-between p-5" >
61- < span className = "text-lg font-semibold" > Edit Profile</ span >
62- < button
63- { ...closeProps }
64- className = "inline-flex items-center justify-center w-8 h-8 rounded-full cursor-pointer hover:bg-surface-100 dark:hover:bg-surface-800 focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary transition"
65- >
66- < Times />
67- </ button >
68- </ div >
69- < div { ...contentProps } className = "px-5 pb-5 flex flex-col gap-4 overflow-y-auto" >
70- < div className = "flex flex-col gap-1" >
71- < label htmlFor = "name" className = "text-sm font-semibold" >
72- Name
73- </ label >
74- < input
75- id = "name"
76- defaultValue = "Amanda Miller"
77- className = "w-full px-3 py-2 border border-surface-200 dark:border-surface-700 rounded-lg bg-transparent text-sm focus:outline focus:outline-1 focus:outline-primary"
78- />
79- </ div >
80- < div className = "flex flex-col gap-1" >
81- < label htmlFor = "username" className = "text-sm font-semibold" >
82- Username
83- </ label >
84- < input
85- id = "username"
86- defaultValue = "@amandamiller"
87- className = "w-full px-3 py-2 border border-surface-200 dark:border-surface-700 rounded-lg bg-transparent text-sm focus:outline focus:outline-1 focus:outline-primary"
88- />
89- </ div >
90- < div className = "flex flex-col gap-1" >
91- < label htmlFor = "email" className = "text-sm font-semibold" >
92- Email
93- </ label >
94- < input
95- id = "email"
96- defaultValue = "amanda@example.com"
97- className = "w-full px-3 py-2 border border-surface-200 dark:border-surface-700 rounded-lg bg-transparent text-sm focus:outline focus:outline-1 focus:outline-primary"
98- />
99- </ div >
100- < div className = "flex justify-end gap-2 mt-2" >
54+ { popupMotion . state . rendered && (
55+ < div
56+ { ...popupProps }
57+ ref = { popupRef }
58+ className = "w-[28rem] max-w-[90vw] max-h-full bg-surface-0 dark:bg-surface-900 rounded-xl shadow-2xl flex flex-col border border-surface-200 dark:border-surface-700 pointer-events-auto"
59+ >
60+ < div { ...headerProps } className = "flex items-center justify-between p-5" >
61+ < span className = "text-lg font-semibold" > Edit Profile</ span >
10162 < button
10263 { ...closeProps }
103- className = "px-4 py-2 rounded-lg border border-surface-200 dark:border-surface-700 bg-transparent text-sm font-medium cursor-pointer hover:bg-surface-50 dark:hover:bg-surface-800 focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary transition"
64+ className = "inline-flex items-center justify-center w-8 h-8 rounded-full cursor-pointer hover:bg-surface-100 dark:hover:bg-surface-800 focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary transition"
10465 >
105- Cancel
106- </ button >
107- < button
108- { ...closeProps }
109- className = "px-4 py-2 rounded-lg bg-primary text-primary-contrast text-sm font-medium cursor-pointer hover:bg-primary-emphasis focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary transition"
110- >
111- Save Changes
66+ < Times />
11267 </ button >
11368 </ div >
69+ < div { ...contentProps } className = "px-5 pb-5 flex flex-col gap-4 overflow-y-auto" >
70+ < div className = "flex flex-col gap-1" >
71+ < label htmlFor = "name" className = "text-sm font-semibold" >
72+ Name
73+ </ label >
74+ < input
75+ id = "name"
76+ defaultValue = "Amanda Miller"
77+ className = "w-full px-3 py-2 border border-surface-200 dark:border-surface-700 rounded-lg bg-transparent text-sm focus:outline focus:outline-1 focus:outline-primary"
78+ />
79+ </ div >
80+ < div className = "flex flex-col gap-1" >
81+ < label htmlFor = "username" className = "text-sm font-semibold" >
82+ Username
83+ </ label >
84+ < input
85+ id = "username"
86+ defaultValue = "@amandamiller"
87+ className = "w-full px-3 py-2 border border-surface-200 dark:border-surface-700 rounded-lg bg-transparent text-sm focus:outline focus:outline-1 focus:outline-primary"
88+ />
89+ </ div >
90+ < div className = "flex flex-col gap-1" >
91+ < label htmlFor = "email" className = "text-sm font-semibold" >
92+ Email
93+ </ label >
94+ < input
95+ id = "email"
96+ defaultValue = "amanda@example.com"
97+ className = "w-full px-3 py-2 border border-surface-200 dark:border-surface-700 rounded-lg bg-transparent text-sm focus:outline focus:outline-1 focus:outline-primary"
98+ />
99+ </ div >
100+ < div className = "flex justify-end gap-2 mt-2" >
101+ < button
102+ { ...closeProps }
103+ className = "px-4 py-2 rounded-lg border border-surface-200 dark:border-surface-700 bg-transparent text-sm font-medium cursor-pointer hover:bg-surface-50 dark:hover:bg-surface-800 focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary transition"
104+ >
105+ Cancel
106+ </ button >
107+ < button
108+ { ...closeProps }
109+ className = "px-4 py-2 rounded-lg bg-primary text-primary-contrast text-sm font-medium cursor-pointer hover:bg-primary-emphasis focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-primary transition"
110+ >
111+ Save Changes
112+ </ button >
113+ </ div >
114+ </ div >
114115 </ div >
115- </ div >
116- ) }
116+ ) }
117117 </ div >
118118 </ div > ,
119119 document . body
0 commit comments