diff --git a/packages/dataviews/src/dropdown-menu-helper.js b/packages/dataviews/src/dropdown-menu-helper.js deleted file mode 100644 index ce0ace8f61e55..0000000000000 --- a/packages/dataviews/src/dropdown-menu-helper.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * WordPress dependencies - */ -import { - Icon, - privateApis as componentsPrivateApis, -} from '@wordpress/components'; -import { forwardRef } from '@wordpress/element'; -import { SVG, Circle } from '@wordpress/primitives'; - -/** - * Internal dependencies - */ -import { unlock } from './lock-unlock'; - -const { DropdownMenuItemV2: DropdownMenuItem } = unlock( - componentsPrivateApis -); - -const radioCheck = ( - - - -); - -/** - * A custom implementation of a radio menu item using the standard menu item - * component, which allows deselecting selected values. - */ -export const DropdownMenuRadioItemCustom = forwardRef( - function DropdownMenuRadioItemCustom( - { checked, name, value, hideOnClick, onChange, onClick, ...props }, - ref - ) { - const onClickHandler = ( e ) => { - onClick?.( e ); - onChange?.( { ...e, target: { ...e.target, value } } ); - }; - return ( - - ) : ( - - ) - } - onClick={ onClickHandler } - { ...props } - /> - ); - } -);