| 157 | } |
| 158 | |
| 159 | function DropdownMenuCheckboxItem({ |
| 160 | className, |
| 161 | children, |
| 162 | checked, |
| 163 | ...props |
| 164 | }: MenuPrimitive.CheckboxItem.Props) { |
| 165 | return ( |
| 166 | <MenuPrimitive.CheckboxItem |
| 167 | data-slot="dropdown-menu-checkbox-item" |
| 168 | className={cn( |
| 169 | "focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-none py-2 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", |
| 170 | className |
| 171 | )} |
| 172 | checked={checked} |
| 173 | {...props} |
| 174 | > |
| 175 | <span |
| 176 | className="pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none" |
| 177 | data-slot="dropdown-menu-checkbox-item-indicator" |
| 178 | > |
| 179 | <MenuPrimitive.CheckboxItemIndicator> |
| 180 | <HugeiconsIcon icon={Tick02Icon} strokeWidth={2} /> |
| 181 | </MenuPrimitive.CheckboxItemIndicator> |
| 182 | </span> |
| 183 | {children} |
| 184 | </MenuPrimitive.CheckboxItem> |
| 185 | ); |
| 186 | } |
| 187 | |
| 188 | function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props) { |
| 189 | return ( |