@@ -105,7 +105,7 @@ export const Dialog = memo(({ children, className, showCloseButton = true, onClo
105105 < RadixDialog . Portal >
106106 < RadixDialog . Overlay asChild >
107107 < motion . div
108- className = { classNames ( ' fixed inset-0 z-[9999] bg-black/70 dark:bg-black/ 80 backdrop-blur-sm' ) }
108+ className = " fixed inset-0 z-[9999] bg-black/80 backdrop-blur-sm"
109109 initial = "closed"
110110 animate = "open"
111111 exit = "closed"
@@ -116,7 +116,7 @@ export const Dialog = memo(({ children, className, showCloseButton = true, onClo
116116 < RadixDialog . Content asChild >
117117 < motion . div
118118 className = { classNames (
119- 'fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white dark:bg-gray-950 rounded-lg shadow-xl border border-codinit-elements-borderColor z-[9999] w-[520px] focus:outline-none' ,
119+ 'fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white dark:bg-gray-900 border border-gray-200 dark: border-gray-700 rounded-2xl shadow-2xl z-[9999] w-[520px] focus:outline-none' ,
120120 className ,
121121 ) }
122122 initial = "closed"
@@ -130,7 +130,7 @@ export const Dialog = memo(({ children, className, showCloseButton = true, onClo
130130 < RadixDialog . Close asChild onClick = { onClose } >
131131 < IconButton
132132 icon = "i-ph:x"
133- className = "absolute top-3 right-3 text-codinit-elements-textTertiary hover:text-codinit-elements-textSecondary "
133+ className = "absolute top-3 right-3 text-muted-foreground hover:text-foreground "
134134 />
135135 </ RadixDialog . Close >
136136 ) }
@@ -208,7 +208,7 @@ export function ConfirmationDialog({
208208 return (
209209 < RadixDialog . Root open = { isOpen } onOpenChange = { onClose } >
210210 < Dialog showCloseButton = { false } >
211- < div className = "p-6 bg-white dark:bg-gray-950 relative z-10" >
211+ < div className = "p-6 relative z-10" >
212212 < DialogTitle > { title } </ DialogTitle >
213213 < DialogDescription className = "mb-4" > { description } </ DialogDescription >
214214 < div className = "flex justify-end space-x-2" >
@@ -221,8 +221,8 @@ export function ConfirmationDialog({
221221 disabled = { isLoading }
222222 className = {
223223 variant === 'destructive'
224- ? 'bg-red-500 text-white hover:bg-red-600 '
225- : 'bg-codinit-elements-item-backgroundAccent text-codinit-elements-item-contentAccent hover:bg-codinit-elements-button- primary-backgroundHover '
224+ ? 'bg-destructive text-destructive-foreground hover:bg-destructive/90 '
225+ : 'bg-primary text-primary-foreground hover:bg-primary/90 '
226226 }
227227 >
228228 { isLoading ? (
@@ -346,9 +346,7 @@ export function SelectionDialog({
346346 key = { item . id }
347347 className = { classNames (
348348 'flex items-start space-x-3 p-2 rounded-md transition-colors' ,
349- selectedItems . includes ( item . id )
350- ? 'bg-codinit-elements-item-backgroundAccent'
351- : 'bg-codinit-elements-bg-depth-2 hover:bg-codinit-elements-item-backgroundActive' ,
349+ selectedItems . includes ( item . id ) ? 'bg-accent text-accent-foreground' : 'hover:bg-accent/50' ,
352350 ) }
353351 style = { {
354352 ...style ,
@@ -362,18 +360,10 @@ export function SelectionDialog({
362360 onCheckedChange = { ( ) => handleToggleItem ( item . id ) }
363361 />
364362 < div className = "grid gap-1.5 leading-none" >
365- < Label
366- htmlFor = { `item-${ item . id } ` }
367- className = { classNames (
368- 'text-sm font-medium cursor-pointer' ,
369- selectedItems . includes ( item . id )
370- ? 'text-codinit-elements-item-contentAccent'
371- : 'text-codinit-elements-textPrimary' ,
372- ) }
373- >
363+ < Label htmlFor = { `item-${ item . id } ` } className = "text-sm font-medium cursor-pointer" >
374364 { item . label }
375365 </ Label >
376- { item . description && < p className = "text-xs text-codinit-elements-textSecondary " > { item . description } </ p > }
366+ { item . description && < p className = "text-xs text-muted-foreground " > { item . description } </ p > }
377367 </ div >
378368 </ div >
379369 ) ;
@@ -382,30 +372,25 @@ export function SelectionDialog({
382372 return (
383373 < RadixDialog . Root open = { isOpen } onOpenChange = { onClose } >
384374 < Dialog showCloseButton = { false } >
385- < div className = "p-6 bg-white dark:bg-gray-950 relative z-10" >
375+ < div className = "p-6 relative z-10" >
386376 < DialogTitle > { title } </ DialogTitle >
387377 < DialogDescription className = "mt-2 mb-4" >
388378 Select the items you want to include and click{ ' ' }
389- < span className = "text-codinit-elements-item-contentAccent font-medium" > { confirmLabel } </ span > .
379+ < span className = "text-primary font-medium" > { confirmLabel } </ span > .
390380 </ DialogDescription >
391381
392382 < div className = "py-4" >
393383 < div className = "flex items-center justify-between mb-4" >
394- < span className = "text-sm font-medium text-codinit-elements-textSecondary " >
384+ < span className = "text-sm font-medium text-muted-foreground " >
395385 { selectedItems . length } of { items . length } selected
396386 </ span >
397- < Button
398- variant = "ghost"
399- size = "sm"
400- onClick = { handleSelectAll }
401- className = "text-xs h-8 px-2 text-codinit-elements-textPrimary hover:text-codinit-elements-item-contentAccent hover:bg-codinit-elements-item-backgroundAccent bg-codinit-elements-bg-depth-2 dark:bg-transparent"
402- >
387+ < Button variant = "ghost" size = "sm" onClick = { handleSelectAll } className = "text-xs h-8 px-2" >
403388 { selectAll ? 'Deselect All' : 'Select All' }
404389 </ Button >
405390 </ div >
406391
407392 < div
408- className = "pr-2 border rounded-md border-codinit-elements-borderColor bg-codinit-elements-bg-depth-2 "
393+ className = "pr-2 border rounded-md border-border bg-muted/50 "
409394 style = { {
410395 maxHeight,
411396 } }
@@ -416,28 +401,24 @@ export function SelectionDialog({
416401 width = "100%"
417402 itemCount = { items . length }
418403 itemSize = { 60 }
419- className = "scrollbar-thin scrollbar-thumb-rounded scrollbar-thumb-codinit-elements-bg-depth-3 "
404+ className = "scrollbar-thin scrollbar-thumb-rounded scrollbar-thumb-muted-foreground/30 "
420405 >
421406 { ItemRenderer }
422407 </ FixedSizeList >
423408 ) : (
424- < div className = "text-center py-4 text-sm text-codinit-elements-textTertiary " > No items to display</ div >
409+ < div className = "text-center py-4 text-sm text-muted-foreground " > No items to display</ div >
425410 ) }
426411 </ div >
427412 </ div >
428413
429414 < div className = "flex justify-between mt-6" >
430- < Button
431- variant = "outline"
432- onClick = { onClose }
433- className = "border-codinit-elements-borderColor text-codinit-elements-textPrimary hover:bg-codinit-elements-item-backgroundActive"
434- >
415+ < Button variant = "outline" onClick = { onClose } >
435416 Cancel
436417 </ Button >
437418 < Button
438419 onClick = { handleConfirm }
439420 disabled = { selectedItems . length === 0 }
440- className = "bg-accent-500 text-white hover:bg-accent-600 disabled:opacity-50 disabled:pointer-events-none"
421+ className = "bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50 disabled:pointer-events-none"
441422 >
442423 { confirmLabel }
443424 </ Button >
@@ -447,61 +428,3 @@ export function SelectionDialog({
447428 </ RadixDialog . Root >
448429 ) ;
449430}
450-
451- const DialogTrigger = RadixDialog . Trigger ;
452-
453- const DialogPortal = RadixDialog . Portal ;
454-
455- const DialogOverlay = React . forwardRef <
456- React . ElementRef < typeof RadixDialog . Overlay > ,
457- React . ComponentPropsWithoutRef < typeof RadixDialog . Overlay >
458- > ( ( { className, ...props } , ref ) => (
459- < RadixDialog . Overlay
460- ref = { ref }
461- className = { classNames (
462- 'fixed inset-0 z-[101] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0' ,
463- className ,
464- ) }
465- { ...props }
466- />
467- ) ) ;
468- DialogOverlay . displayName = RadixDialog . Overlay . displayName ;
469-
470- const DialogContent = React . forwardRef <
471- React . ElementRef < typeof RadixDialog . Content > ,
472- React . ComponentPropsWithoutRef < typeof RadixDialog . Content >
473- > ( ( { className, children, ...props } , ref ) => (
474- < DialogPortal >
475- < DialogOverlay />
476- < RadixDialog . Content
477- ref = { ref }
478- className = { classNames (
479- 'fixed left-1/2 top-1/2 z-[101] grid max-h-[calc(100%-4rem)] w-full -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto border bg-background p-6 shadow-lg shadow-black/5 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:max-w-[400px] sm:rounded-xl' ,
480- className ,
481- ) }
482- { ...props }
483- >
484- { children }
485- < RadixDialog . Close className = "group absolute right-3 top-3 flex size-7 items-center justify-center rounded-lg outline-offset-2 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring/70 disabled:pointer-events-none" >
486- < div className = "i-ph:x w-4 h-4 opacity-60 transition-opacity group-hover:opacity-100" />
487- < span className = "sr-only" > Close</ span >
488- </ RadixDialog . Close >
489- </ RadixDialog . Content >
490- </ DialogPortal >
491- ) ) ;
492- DialogContent . displayName = RadixDialog . Content . displayName ;
493-
494- const DialogHeader = ( { className, ...props } : React . HTMLAttributes < HTMLDivElement > ) => (
495- < div className = { classNames ( 'flex flex-col space-y-1.5 text-center sm:text-left' , className ) } { ...props } />
496- ) ;
497- DialogHeader . displayName = 'DialogHeader' ;
498-
499- const DialogFooter = ( { className, ...props } : React . HTMLAttributes < HTMLDivElement > ) => (
500- < div
501- className = { classNames ( 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-3' , className ) }
502- { ...props }
503- />
504- ) ;
505- DialogFooter . displayName = 'DialogFooter' ;
506-
507- export { DialogContent , DialogHeader , DialogFooter , DialogOverlay , DialogPortal , DialogTrigger } ;
0 commit comments