Skip to content

Commit 2d2cffd

Browse files
committed
Remove old Select
1 parent 1929327 commit 2d2cffd

File tree

7 files changed

+11
-263
lines changed

7 files changed

+11
-263
lines changed

src/components/input/Select.tsx

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/components/input/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export { default as IconButton } from './IconButton';
55
export { default as Input } from './Input';
66
export { default as InputGroup } from './InputGroup';
77
export { default as OptionButton } from './OptionButton';
8-
export { default as Select } from './Select';
98
export { default as SelectNext } from './SelectNext';
109
export { default as Textarea } from './Textarea';
1110

@@ -16,6 +15,5 @@ export type { IconButtonProps } from './IconButton';
1615
export type { InputProps } from './Input';
1716
export type { InputGroupProps } from './InputGroup';
1817
export type { OptionButtonProps } from './OptionButton';
19-
export type { SelectProps } from './Select';
2018
export type { SelectProps as SelectNextProps } from './SelectNext';
2119
export type { TextareaProps } from './Textarea';

src/components/input/test/Select-test.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export {
4949
Input,
5050
InputGroup,
5151
OptionButton,
52-
Select,
5352
SelectNext,
5453
Textarea,
5554
} from './components/input';
@@ -116,7 +115,6 @@ export type {
116115
InputProps,
117116
InputGroupProps,
118117
OptionButtonProps,
119-
SelectProps,
120118
SelectNextProps,
121119
TextareaProps,
122120
} from './components/input';

src/pattern-library/components/patterns/input/InputGroupPage.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import {
33
Input,
44
IconButton,
55
CopyIcon,
6-
Select,
76
ArrowLeftIcon,
87
ArrowRightIcon,
8+
SelectNext,
99
} from '../../../../';
1010
import Library from '../../Library';
1111

@@ -52,7 +52,7 @@ export default function InputGroupPage() {
5252
<code>IconButton</code>
5353
</li>
5454
<li>
55-
<code>Select</code>
55+
<code>SelectNext</code>
5656
</li>
5757
</ul>
5858
<Library.Demo
@@ -66,12 +66,15 @@ export default function InputGroupPage() {
6666
title="Previous"
6767
variant="dark"
6868
/>
69-
<Select>
70-
<option value="0">Select a fruit</option>
71-
<option value="1">Apple</option>
72-
<option value="2">Banana</option>
73-
<option value="3">Cherries</option>
74-
</Select>
69+
<SelectNext
70+
value="1"
71+
buttonContent="Apple"
72+
onChange={() => {}}
73+
>
74+
<SelectNext.Option value="1">Apple</SelectNext.Option>
75+
<SelectNext.Option value="2">Banana</SelectNext.Option>
76+
<SelectNext.Option value="3">Cherries</SelectNext.Option>
77+
</SelectNext>
7578
<IconButton
7679
icon={ArrowRightIcon}
7780
title="Next"

src/pattern-library/components/patterns/input/SelectPage.tsx

Lines changed: 0 additions & 172 deletions
This file was deleted.

src/pattern-library/routes.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import CloseButtonPage from './components/patterns/input/CloseButtonPage';
2121
import InputGroupPage from './components/patterns/input/InputGroupPage';
2222
import InputPage from './components/patterns/input/InputPage';
2323
import OptionButtonPage from './components/patterns/input/OptionButtonPage';
24-
import SelectPage from './components/patterns/input/SelectPage';
2524
import TextareaPage from './components/patterns/input/TextareaPage';
2625
import CardPage from './components/patterns/layout/CardPage';
2726
import OverlayPage from './components/patterns/layout/OverlayPage';
@@ -202,12 +201,6 @@ const routes: PlaygroundRoute[] = [
202201
component: SelectNextPage,
203202
route: '/input-select-next',
204203
},
205-
{
206-
title: 'Select',
207-
group: 'input',
208-
component: SelectPage,
209-
route: '/input-select',
210-
},
211204
{
212205
title: 'Textarea',
213206
group: 'input',

0 commit comments

Comments
 (0)