-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4702 from JedWatson/remove-option-base
Remove OptionBase type
- Loading branch information
Showing
57 changed files
with
267 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'react-select': patch | ||
'@react-select/docs': patch | ||
--- | ||
|
||
The Option generic is no longer required to extend the OptionBase type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { Component } from 'react'; | ||
|
||
import { Props, defaultProps } from 'react-select/src/Select'; | ||
import { GroupBase, OptionBase } from 'react-select'; | ||
import { GroupBase } from 'react-select'; | ||
|
||
export default class Select extends Component< | ||
Props<OptionBase, boolean, GroupBase<OptionBase>> | ||
Props<unknown, boolean, GroupBase<unknown>> | ||
> { | ||
defaultProps = defaultProps; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, ClearIndicatorProps, OptionBase } from 'react-select'; | ||
import { GroupBase, ClearIndicatorProps } from 'react-select'; | ||
|
||
export default class ClearIndicator< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<ClearIndicatorProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { ControlProps, GroupBase, OptionBase } from 'react-select'; | ||
import { ControlProps, GroupBase } from 'react-select'; | ||
|
||
export default class Control< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<ControlProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, DropdownIndicatorProps, OptionBase } from 'react-select'; | ||
import { GroupBase, DropdownIndicatorProps } from 'react-select'; | ||
|
||
export default class DropdownIndicator< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<DropdownIndicatorProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, GroupProps, OptionBase } from 'react-select'; | ||
import { GroupBase, GroupProps } from 'react-select'; | ||
|
||
export default class Group< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<GroupProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, IndicatorsContainerProps, OptionBase } from 'react-select'; | ||
import { GroupBase, IndicatorsContainerProps } from 'react-select'; | ||
|
||
export default class IndicatorsContainer< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<IndicatorsContainerProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { DropdownIndicatorProps, GroupBase, OptionBase } from 'react-select'; | ||
import { DropdownIndicatorProps, GroupBase } from 'react-select'; | ||
|
||
export default class DropdownIndicator< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<DropdownIndicatorProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, InputProps, OptionBase } from 'react-select'; | ||
import { GroupBase, InputProps } from 'react-select'; | ||
|
||
export default class Input< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<InputProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, LoadingIndicatorProps, OptionBase } from 'react-select'; | ||
import { GroupBase, LoadingIndicatorProps } from 'react-select'; | ||
|
||
export default class LoadingIndicator< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<LoadingIndicatorProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, NoticeProps, OptionBase } from 'react-select'; | ||
import { GroupBase, NoticeProps } from 'react-select'; | ||
|
||
export default class LoadingMessage< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<NoticeProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, MenuProps, OptionBase } from 'react-select'; | ||
import { GroupBase, MenuProps } from 'react-select'; | ||
|
||
export default class Menu< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<MenuProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, MenuListProps, OptionBase } from 'react-select'; | ||
import { GroupBase, MenuListProps } from 'react-select'; | ||
|
||
export default class MenuList< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<MenuListProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, MultiValueProps, OptionBase } from 'react-select'; | ||
import { GroupBase, MultiValueProps } from 'react-select'; | ||
|
||
export default class MultiValue< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<MultiValueProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, MultiValueGenericProps, OptionBase } from 'react-select'; | ||
import { GroupBase, MultiValueGenericProps } from 'react-select'; | ||
|
||
export default class MultiValueContainer< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<MultiValueGenericProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, MultiValueGenericProps, OptionBase } from 'react-select'; | ||
import { GroupBase, MultiValueGenericProps } from 'react-select'; | ||
|
||
export default class MultiValueLabel< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<MultiValueGenericProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, MultiValueGenericProps, OptionBase } from 'react-select'; | ||
import { GroupBase, MultiValueGenericProps } from 'react-select'; | ||
|
||
export default class MultiValueRemove< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<MultiValueGenericProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, NoticeProps, OptionBase } from 'react-select'; | ||
import { GroupBase, NoticeProps } from 'react-select'; | ||
|
||
export default class NoOptionsMessage< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<NoticeProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, OptionBase, OptionProps } from 'react-select'; | ||
import { GroupBase, OptionProps } from 'react-select'; | ||
|
||
export default class Option< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<OptionProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, OptionBase, PlaceholderProps } from 'react-select'; | ||
import { GroupBase, PlaceholderProps } from 'react-select'; | ||
|
||
export default class Placeholder< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<PlaceholderProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { ContainerProps, GroupBase, OptionBase } from 'react-select'; | ||
import { ContainerProps, GroupBase } from 'react-select'; | ||
|
||
export default class SelectContainer< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<ContainerProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, OptionBase, SingleValueProps } from 'react-select'; | ||
import { GroupBase, SingleValueProps } from 'react-select'; | ||
|
||
export default class SingleValue< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<SingleValueProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { Component } from 'react'; | ||
import { GroupBase, OptionBase, ValueContainerProps } from 'react-select'; | ||
import { GroupBase, ValueContainerProps } from 'react-select'; | ||
|
||
export default class ValueContainer< | ||
Option extends OptionBase, | ||
Option, | ||
IsMulti extends boolean, | ||
Group extends GroupBase<Option> | ||
> extends Component<ValueContainerProps<Option, IsMulti, Group>> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.