Skip to content

Commit

Permalink
feat!: Delete deprecated Dropdown component (#2644)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Use Select instead
  • Loading branch information
brandonlenz authored Oct 25, 2023
1 parent 67c1114 commit 59dffd1
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 100 deletions.
61 changes: 0 additions & 61 deletions src/components/forms/Dropdown/Dropdown.stories.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions src/components/forms/Dropdown/Dropdown.test.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/components/forms/Dropdown/Dropdown.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions src/components/forms/Form/Form.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { Form } from './Form'

import { Alert } from '../../Alert/Alert'
import { Button } from '../../Button/Button'
import { Dropdown } from '../Dropdown/Dropdown'
import { ErrorMessage } from '../ErrorMessage/ErrorMessage'
import { Fieldset } from '../Fieldset/Fieldset'
import { FormGroup } from '../FormGroup/FormGroup'
import { Label } from '../Label/Label'
import { RequiredMarker } from '../Label/RequiredMarker'
import { TextInput } from '../TextInput/TextInput'
import { Textarea } from '../Textarea/Textarea'
import { Select } from '../Select/Select'

export default {
title: 'Components/Form templates',
Expand Down Expand Up @@ -129,7 +129,7 @@ export const addressForm = (): React.ReactElement => (
<Label htmlFor="state" requiredMarker>
State, territory, or military post
</Label>
<Dropdown id="state" name="state" required>
<Select id="state" name="state" required>
<option>- Select -</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
Expand Down Expand Up @@ -188,7 +188,7 @@ export const addressForm = (): React.ReactElement => (
<option value="AE">AE - Armed Forces Europe</option>
<option value="AE">AE - Armed Forces Middle East</option>
<option value="AP">AP - Armed Forces Pacific</option>
</Dropdown>
</Select>

<Label htmlFor="zip">ZIP Code</Label>
<TextInput
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export { DateInput } from './components/forms/DateInput/DateInput'
export { DateInputGroup } from './components/forms/DateInputGroup/DateInputGroup'
export { DatePicker } from './components/forms/DatePicker/DatePicker'
export { DateRangePicker } from './components/forms/DateRangePicker/DateRangePicker'
export { Dropdown } from './components/forms/Dropdown/Dropdown'
export { ErrorMessage } from './components/forms/ErrorMessage/ErrorMessage'
export { Fieldset } from './components/forms/Fieldset/Fieldset'
export { FileInput } from './components/forms/FileInput/FileInput'
Expand Down

0 comments on commit 59dffd1

Please sign in to comment.