Skip to content

Commit

Permalink
feat(combobox): removed Combobox.Divider
Browse files Browse the repository at this point in the history
  • Loading branch information
Powerplex committed Mar 29, 2024
1 parent d28d684 commit 4922607
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 31 deletions.
4 changes: 0 additions & 4 deletions packages/components/combobox/src/Combobox.doc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ import { Combobox } from '@spark-ui/combobox'
of: Combobox.Label,
description: "Used to render the label of a group. It won't be focusable using arrow keys.",
},
'Combobox.Divider': {
of: Combobox.Divider,
description: 'Used to visually separate items in the select.',
},
}}
/>

Expand Down
2 changes: 0 additions & 2 deletions packages/components/combobox/src/Combobox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,6 @@ export const Grouped: StoryFn = _args => {
<Combobox.Item value="book-3">The Idiot</Combobox.Item>
</Combobox.Group>

<Combobox.Divider />

<Combobox.Group>
<Combobox.Label>Novelties</Combobox.Label>
<Combobox.Item value="book-4">A Picture of Dorian Gray</Combobox.Item>
Expand Down
20 changes: 0 additions & 20 deletions packages/components/combobox/src/ComboboxDivider.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions packages/components/combobox/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Combobox as Root, type ComboboxProps } from './Combobox'
import { ClearButton } from './ComboboxClearButton'
import { ComboboxProvider, useComboboxContext } from './ComboboxContext'
import { Disclosure } from './ComboboxDisclosure'
import { Divider } from './ComboboxDivider'
import { Empty } from './ComboboxEmpty'
import { Group } from './ComboboxGroup'
import { Input } from './ComboboxInput'
Expand All @@ -28,7 +27,6 @@ export const Combobox: FC<ComboboxProps> & {
ItemIndicator: typeof ItemIndicator
Label: typeof Label
Popover: typeof Popover
Divider: typeof Divider
Trigger: typeof Trigger
LeadingIcon: typeof LeadingIcon
Empty: typeof Empty
Expand All @@ -44,7 +42,6 @@ export const Combobox: FC<ComboboxProps> & {
ItemIndicator,
Label,
Popover,
Divider,
Trigger,
LeadingIcon,
Empty,
Expand All @@ -62,7 +59,6 @@ ItemText.displayName = 'Combobox.ItemText'
ItemIndicator.displayName = 'Combobox.ItemIndicator'
Label.displayName = 'Combobox.Label'
Popover.displayName = 'Combobox.Popover'
Divider.displayName = 'Combobox.Divider'
Trigger.displayName = 'Combobox.Trigger'
LeadingIcon.displayName = 'Combobox.LeadingIcon'
Empty.displayName = 'Combobox.Empty'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ describe('Combobox', () => {
<Combobox.Item value="book-1">War and Peace</Combobox.Item>
<Combobox.Item value="book-2">1984</Combobox.Item>
</Combobox.Group>
<Combobox.Divider />
<Combobox.Group>
<Combobox.Label>Novelties</Combobox.Label>
<Combobox.Item value="book-3">Pride and Prejudice</Combobox.Item>
Expand Down

0 comments on commit 4922607

Please sign in to comment.