diff --git a/packages/react/src/components/DropdownSelector/Divider.tsx b/packages/react/src/components/DropdownSelector/Divider.tsx deleted file mode 100644 index 1be948a58..000000000 --- a/packages/react/src/components/DropdownSelector/Divider.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import styled from 'styled-components' - -/** - * 水平方向の直線 - */ -export const Divider = styled.div.attrs({ role: 'separator' })` - display: flex; - - &:before { - content: ''; - display: block; - width: 100%; - height: 1px; - background: #00000014; - } -` diff --git a/packages/react/src/components/DropdownSelector/Divider/index.css b/packages/react/src/components/DropdownSelector/Divider/index.css new file mode 100644 index 000000000..12055dfa2 --- /dev/null +++ b/packages/react/src/components/DropdownSelector/Divider/index.css @@ -0,0 +1,11 @@ +.charcoal-menu-group-divider { + display: flex; +} + +.charcoal-menu-group-divider::before { + content: ''; + display: block; + width: 100%; + height: 1px; + background: #00000014; +} diff --git a/packages/react/src/components/DropdownSelector/Divider/index.tsx b/packages/react/src/components/DropdownSelector/Divider/index.tsx new file mode 100644 index 000000000..b75a8b478 --- /dev/null +++ b/packages/react/src/components/DropdownSelector/Divider/index.tsx @@ -0,0 +1,5 @@ +import './index.css' + +export function Divider() { + return
+} diff --git a/packages/react/src/components/DropdownSelector/DropdownMenuItem.tsx b/packages/react/src/components/DropdownSelector/DropdownMenuItem.tsx deleted file mode 100644 index 882e4f199..000000000 --- a/packages/react/src/components/DropdownSelector/DropdownMenuItem.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import styled from 'styled-components' -import MenuItem, { MenuItemProps } from './MenuItem' -import { MenuListContext } from './MenuList/MenuListContext' -import { useContext } from 'react' -import Icon from '../Icon' - -export type DropdownMenuItemProps = Omit