@@ -28,8 +28,8 @@ interface CommandDialogProps extends DialogProps {}
28
28
const CommandDialog = ( { children, ...props } : CommandDialogProps ) => {
29
29
return (
30
30
< Dialog { ...props } >
31
- < DialogContent className = " overflow-hidden p-0" >
32
- < Command className = " [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5" >
31
+ < DialogContent className = ' overflow-hidden p-0' >
32
+ < Command className = ' [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5' >
33
33
{ children }
34
34
</ Command >
35
35
</ DialogContent >
@@ -41,12 +41,12 @@ const CommandInput = React.forwardRef<
41
41
React . ElementRef < typeof CommandPrimitive . Input > ,
42
42
React . ComponentPropsWithoutRef < typeof CommandPrimitive . Input >
43
43
> ( ( { className, ...props } , ref ) => (
44
- < div className = " flex items-center border-b px-3" cmdk-input-wrapper = "" >
45
- < MagnifyingGlassIcon className = " mr-2 h-4 w-4 shrink-0 opacity-50" />
44
+ < div className = ' flex items-center border-b px-3' cmdk-input-wrapper = '' >
45
+ < MagnifyingGlassIcon className = ' mr-2 h-4 w-4 shrink-0 opacity-50' />
46
46
< CommandPrimitive . Input
47
47
ref = { ref }
48
48
className = { cn (
49
- "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50" ,
49
+ "flex h-10 w-full rounded-md bg-card py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50" ,
50
50
className
51
51
) }
52
52
{ ...props }
@@ -75,7 +75,7 @@ const CommandEmpty = React.forwardRef<
75
75
> ( ( props , ref ) => (
76
76
< CommandPrimitive . Empty
77
77
ref = { ref }
78
- className = " py-6 text-center text-sm"
78
+ className = ' py-6 text-center text-sm'
79
79
{ ...props }
80
80
/>
81
81
) ) ;
@@ -117,8 +117,8 @@ const CommandItem = React.forwardRef<
117
117
< CommandPrimitive . Item
118
118
ref = { ref }
119
119
className = { cn (
120
- ' relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50' ,
121
- props . disabled ? ' opacity-50 pointer-events-none' : '' ,
120
+ " relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50" ,
121
+ props . disabled ? " opacity-50 pointer-events-none" : "" ,
122
122
className
123
123
) }
124
124
{ ...props }
0 commit comments