11"use client" ;
22
33import { Radio as RadioPrimitive } from "@base-ui/react/radio" ;
4+ import { CheckIcon } from "lucide-react" ;
45import { useMemo , useState } from "react" ;
56import {
67 ProviderInstanceId ,
@@ -223,7 +224,7 @@ export function AddProviderInstanceDialog({ open, onOpenChange }: AddProviderIns
223224 < Dialog open = { open } onOpenChange = { onOpenChange } >
224225 < DialogPopup className = "max-w-xl overflow-hidden" >
225226 < div className = "flex min-h-0 flex-col overflow-hidden" >
226- < DialogHeader className = "border-b border-border/70" >
227+ < DialogHeader >
227228 < DialogTitle > Add provider instance</ DialogTitle >
228229 < DialogDescription >
229230 Configure an additional provider instance — for example, a second Codex install
@@ -239,41 +240,37 @@ export function AddProviderInstanceDialog({ open, onOpenChange }: AddProviderIns
239240
240241 < div
241242 data-slot = "dialog-panel"
242- className = "space-y-4 border-b border-border/70 bg-foreground/[0.025] px-6 py-5"
243+ className = "space-y-4 bg-zinc-25/80 px-6 py-5 ring-1 ring-black/5 dark:bg-white/2 dark:ring-white/ 5"
243244 >
244245 < AnimatedHeight >
245246 < div className = { cn ( "grid gap-2" , wizardStep !== 0 && "hidden" ) } >
246- < span
247- id = "add-instance-driver-label"
248- className = "text-xs font-medium text-foreground"
249- >
247+ < div id = "add-instance-driver-label" className = "text-sm font-medium text-foreground" >
250248 Driver
251- </ span >
249+ </ div >
252250 < RadioGroup
253251 value = { driver }
254252 onValueChange = { ( value ) => setDriver ( ProviderDriverKind . make ( value ) ) }
255253 aria-labelledby = "add-instance-driver-label"
256- className = "grid grid-cols-2 gap-2.5 "
254+ className = "grid grid-cols-1 gap-2 sm:grid-cols-2 "
257255 >
258256 { DRIVER_OPTIONS . map ( ( option ) => {
259257 const IconComponent = option . icon ;
260- const isSelected = option . value === driver ;
261258 return (
262259 < RadioPrimitive . Root
263260 key = { option . value }
264261 value = { option . value }
265- className = { cn (
266- "relative flex cursor-pointer items-center gap-3 rounded-lg border px-3 py-3 text-left outline-none transition-[background-color,border-color,box-shadow]" ,
267- "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background" ,
268- isSelected
269- ? "border-primary bg-background shadow-sm ring-2 ring-primary/35"
270- : "border-border bg-background hover:border-foreground/20 hover:bg-muted/50" ,
271- ) }
262+ className = "relative flex cursor-pointer items-center gap-3 rounded-lg bg-card px-3 py-3 text-left text-muted-foreground outline-none ring-1 ring-black/5 hover:bg-zinc-50 focus-visible:ring-2 focus-visible:ring-ring data-checked:bg-primary/8 data-checked:text-foreground data-checked:ring-2 data-checked:ring-primary data-checked:hover:bg-primary/8 dark:bg-white/3 dark:ring-white/5 dark:hover:bg-white/5 dark:data-checked:bg-primary/15 dark:data-checked:ring-primary dark:data-checked:hover:bg-primary/15"
272263 >
273- < IconComponent className = "size-5 shrink-0" aria-hidden />
264+ < IconComponent className = "size-4 shrink-0" aria-hidden />
274265 < span className = "min-w-0 flex-1 truncate text-sm font-medium text-foreground" >
275266 { option . label }
276267 </ span >
268+ < RadioPrimitive . Indicator
269+ className = "grid size-5 shrink-0 place-items-center rounded-full bg-primary text-primary-foreground"
270+ aria-hidden
271+ >
272+ < CheckIcon className = "size-3.5 shrink-0" />
273+ </ RadioPrimitive . Indicator >
277274 { option . badgeLabel ? (
278275 < Badge variant = "warning" size = "sm" >
279276 { option . badgeLabel }
@@ -290,11 +287,11 @@ export function AddProviderInstanceDialog({ open, onOpenChange }: AddProviderIns
290287 value = { option . value }
291288 disabled
292289 className = { cn (
293- "relative flex cursor-not-allowed items-center gap-3 rounded-lg border border-border bg-background px-3 py-3 text-left opacity-55 outline-none" ,
290+ "relative flex cursor-not-allowed items-center gap-3 rounded-lg bg-card/60 px-3 py-3 text-left opacity-55 outline-none ring-1 ring-black/5 dark:bg-white/2 dark:ring-white/5 " ,
294291 ) }
295292 >
296293 < IconComponent
297- className = "size-5 shrink-0 text-muted-foreground"
294+ className = "size-4 shrink-0 text-muted-foreground"
298295 aria-hidden
299296 />
300297 < span className = "min-w-0 flex-1 truncate text-sm font-medium text-foreground" >
@@ -409,7 +406,7 @@ export function AddProviderInstanceDialog({ open, onOpenChange }: AddProviderIns
409406 </ AnimatedHeight >
410407 </ div >
411408
412- < DialogFooter className = "border-t bg-transparent ">
409+ < DialogFooter variant = "bare ">
413410 < Button
414411 variant = "outline"
415412 size = "sm"
0 commit comments