@@ -43,7 +43,7 @@ import { cn } from '@/server/cn';
4343const  contextMenuSubTriggerVariants  =  cva ( 
4444  [ 
4545    'group relative flex cursor-pointer select-none items-center gap-2 rounded px-2 py-1.5 text-sm outline-none' , 
46-     'data-disabled:opacity-50 data-disabled:pointer-events-none' , 
46+     'data-[ disabled] :opacity-50 data-[ disabled] :pointer-events-none' , 
4747  ] , 
4848  { 
4949    defaultVariants : { 
@@ -57,15 +57,15 @@ const contextMenuSubTriggerVariants = cva(
5757      variant : { 
5858        default : [ 
5959          'focus:bg-accent focus:text-accent-foreground' , 
60-           'data-state- open:bg-accent data-state- open:text-accent-foreground' , 
61-           'data-highlighted:bg-accent data-highlighted:text-accent-foreground' , 
62-           'data-highlighted:data-state- open:bg-accent data-highlighted:data-state- open:text-accent-foreground' , 
60+           'data-[ state= open] :bg-accent data-[ state= open] :text-accent-foreground' , 
61+           'data-[ highlighted] :bg-accent data-[ highlighted] :text-accent-foreground' , 
62+           'data-[ highlighted] :data-[ state= open] :bg-accent data-[ highlighted] :data-[ state= open] :text-accent-foreground' , 
6363        ] , 
6464        destructive : [ 
6565          'focus:bg-destructive-foreground focus:text-destructive' , 
66-           'data-state- open:bg-destructive-foreground data-state- open:text-destructive' , 
67-           'data-highlighted:bg-destructive-foreground data-highlighted:text-destructive' , 
68-           'data-highlighted:data-state- open:bg-destructive-foreground data-highlighted:data-state- open:text-destructive' , 
66+           'data-[ state= open] :bg-destructive-foreground data-[ state= open] :text-destructive' , 
67+           'data-[ highlighted] :bg-destructive-foreground data-[ highlighted] :text-destructive' , 
68+           'data-[ highlighted] :data-[ state= open] :bg-destructive-foreground data-[ highlighted] :data-[ state= open] :text-destructive' , 
6969        ] , 
7070      } , 
7171    } , 
@@ -79,7 +79,7 @@ type ContextMenuSubTriggerVariantsProps = VariantProps<
7979const  contextMenuItemVariants  =  cva ( 
8080  [ 
8181    'group relative flex cursor-pointer select-none items-center gap-2 rounded px-2 py-1.5 text-sm outline-none' , 
82-     'data-disabled:opacity-50 data-disabled:pointer-events-none' , 
82+     'data-[ disabled] :opacity-50 data-[ disabled] :pointer-events-none' , 
8383  ] , 
8484  { 
8585    defaultVariants : { 
@@ -93,12 +93,12 @@ const contextMenuItemVariants = cva(
9393      variant : { 
9494        default : [ 
9595          'focus:bg-accent focus:text-accent-foreground' , 
96-           'data-highlighted:bg-accent data-highlighted:text-accent-foreground' , 
96+           'data-[ highlighted] :bg-accent data-[ highlighted] :text-accent-foreground' , 
9797        ] , 
9898        destructive : [ 
9999          'text-destructive' , 
100100          'focus:bg-destructive-foreground focus:text-destructive' , 
101-           'data-highlighted:bg-destructive-foreground data-highlighted:text-destructive' , 
101+           'data-[ highlighted] :bg-destructive-foreground data-[ highlighted] :text-destructive' , 
102102        ] , 
103103      } , 
104104    } , 
@@ -112,7 +112,7 @@ type ContextMenuItemVariantsProps = VariantProps<
112112const  contextMenuCheckboxItemVariants  =  cva ( 
113113  [ 
114114    'group relative flex cursor-pointer select-none items-center gap-2 rounded px-2 py-1.5 pl-8 text-sm outline-none' , 
115-     'data-disabled:opacity-50 data-disabled:pointer-events-none' , 
115+     'data-[ disabled] :opacity-50 data-[ disabled] :pointer-events-none' , 
116116  ] , 
117117  { 
118118    defaultVariants : { 
@@ -122,12 +122,12 @@ const contextMenuCheckboxItemVariants = cva(
122122      variant : { 
123123        default : [ 
124124          'focus:bg-accent focus:text-accent-foreground' , 
125-           'data-highlighted:bg-accent data-highlighted:text-accent-foreground' , 
125+           'data-[ highlighted] :bg-accent data-[ highlighted] :text-accent-foreground' , 
126126        ] , 
127127        destructive : [ 
128128          'text-destructive' , 
129129          'focus:bg-destructive-foreground focus:text-destructive' , 
130-           'data-highlighted:bg-destructive-foreground data-highlighted:text-destructive' , 
130+           'data-[ highlighted] :bg-destructive-foreground data-[ highlighted] :text-destructive' , 
131131        ] , 
132132      } , 
133133    } , 
@@ -141,7 +141,7 @@ type ContextMenuCheckboxItemVariantsProps = VariantProps<
141141const  contextMenuRadioItemVariants  =  cva ( 
142142  [ 
143143    'group relative flex cursor-pointer select-none items-center gap-2 rounded px-2 py-1.5 pl-8 text-sm outline-none' , 
144-     'data-disabled:opacity-50 data-disabled:pointer-events-none' , 
144+     'data-[ disabled] :opacity-50 data-[ disabled] :pointer-events-none' , 
145145  ] , 
146146  { 
147147    defaultVariants : { 
@@ -151,12 +151,12 @@ const contextMenuRadioItemVariants = cva(
151151      variant : { 
152152        default : [ 
153153          'focus:bg-accent focus:text-accent-foreground' , 
154-           'data-highlighted:bg-accent data-highlighted:text-accent-foreground' , 
154+           'data-[ highlighted] :bg-accent data-[ highlighted] :text-accent-foreground' , 
155155        ] , 
156156        destructive : [ 
157157          'text-destructive' , 
158158          'focus:bg-destructive-foreground focus:text-destructive' , 
159-           'data-highlighted:bg-destructive-foreground data-highlighted:text-destructive' , 
159+           'data-[ highlighted] :bg-destructive-foreground data-[ highlighted] :text-destructive' , 
160160        ] , 
161161      } , 
162162    } , 
@@ -267,16 +267,16 @@ export const ContextMenuSubContent = React.forwardRef<
267267      className = { cn ( 
268268        'bg-popover text-popover-foreground relative z-40 min-w-[8rem] rounded-md border p-1 shadow-lg will-change-[opacity,transform]' , 
269269        [ 
270-           'data-state- open:data-side- top:animate-slide-in-from-bottom' , 
271-           'data-state- open:data-side- bottom:animate-slide-in-from-top' , 
272-           'data-state- open:data-side- left:animate-slide-in-from-right' , 
273-           'data-state- open:data-side- right:animate-slide-in-from-left' , 
270+           'data-[ state= open] :data-[ side= top] :animate-slide-in-from-bottom' , 
271+           'data-[ state= open] :data-[ side= bottom] :animate-slide-in-from-top' , 
272+           'data-[ state= open] :data-[ side= left] :animate-slide-in-from-right' , 
273+           'data-[ state= open] :data-[ side= right] :animate-slide-in-from-left' , 
274274        ] , 
275275        [ 
276-           'data-state- closed:data-side- top:animate-slide-out-to-bottom' , 
277-           'data-state- closed:data-side- bottom:animate-slide-out-to-top' , 
278-           'data-state- closed:data-side- left:animate-slide-out-to-right' , 
279-           'data-state- closed:data-side- right:animate-slide-out-to-left' , 
276+           'data-[ state= closed] :data-[ side= top] :animate-slide-out-to-bottom' , 
277+           'data-[ state= closed] :data-[ side= bottom] :animate-slide-out-to-top' , 
278+           'data-[ state= closed] :data-[ side= left] :animate-slide-out-to-right' , 
279+           'data-[ state= closed] :data-[ side= right] :animate-slide-out-to-left' , 
280280        ] , 
281281        className , 
282282      ) } 
0 commit comments