WIP

WIP

WIP

WIP

WIP

WIP: Remove trailing newlines

WIP

WIP

WIP

WIP

WIP

WIP

WIP

WIP: All tests pass

WIP

WIP

WIP
This commit is contained in:
Andy Hanson
2016-11-28 11:16:06 -08:00
parent cd4debea25
commit 89fa98a712
1473 changed files with 77478 additions and 76346 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ export = ReactSelectClass;
declare namespace ReactSelectClass {
export interface AutocompleteResult {
/** the search-results to be displayed */
data: Option[],
data: Option[];
/** Should be set to true, if and only if a longer query with the same prefix
* would return a subset of the results
* If set to true, more specific queries will not be sent to the server.
@@ -197,7 +197,7 @@ declare namespace ReactSelectClass {
/**
* optional style to apply to the menu container
*/
menuContainerStyle?: {}
menuContainerStyle?: {};
/**
* renders a custom menu with options
*/
@@ -205,7 +205,7 @@ declare namespace ReactSelectClass {
/**
* optional style to apply to the menu
*/
menuStyle?: {}
menuStyle?: {};
/**
* multi-value input
* @default false
+49 -49
View File
@@ -14,64 +14,64 @@ declare module "react-select" {
// Import React
import React = require("react");
interface Option{
label : string;
value : string;
interface Option {
label: string;
value: string;
}
interface ReactSelectProps extends React.Props<ReactSelectClass>{
addLabelText? : string;
allowCreate? : boolean;
autoload? : boolean;
backspaceRemoves? : boolean;
cacheAsyncResults? : boolean;
className? : string;
clearable? : boolean;
clearAllText? : string;
clearValueText? : string;
delimiter? : string;
disabled? : boolean;
filterOption? : (option : Option,filterString : string)=>Option;
filterOptions? : (options:Array<Option>,filterString : string,values : Array<Object>)=>Array<Option>;
ignoreCase? : boolean; // default true whether to perform case-insensitive filtering
inputProps? : Object;
isLoading? : boolean;
labelKey? : string;
matchPos? : string;
matchProp? : string;
multi? : boolean;
name? : string;
newOptionCreator? : ()=>Option;
noResultsText? : string;
onBlur? : (event : Event)=>void;
onChange? : (newValue : string)=>void;
onFocus? : (event : Event)=>void;
onInputChange? : (inputValue : string)=>void;
onOptionLabelClick? : (value : string, event : Event)=>void;
optionRenderer? : ()=>void;
options? : Array<Option>;
placeholder? : string;
searchable? : boolean;
searchingText? : string;
searchPromptText? : string;
value? : Option;
valueKey? : string;
valueRenderer? : ()=>void;
interface ReactSelectProps extends React.Props<ReactSelectClass> {
addLabelText?: string;
allowCreate?: boolean;
autoload?: boolean;
backspaceRemoves?: boolean;
cacheAsyncResults?: boolean;
className?: string;
clearable?: boolean;
clearAllText?: string;
clearValueText?: string;
delimiter?: string;
disabled?: boolean;
filterOption?: (option: Option, filterString: string) => Option;
filterOptions?: (options: Array<Option>, filterString: string, values: Array<Object>) => Array<Option>;
ignoreCase?: boolean; // default true whether to perform case-insensitive filtering
inputProps?: Object;
isLoading?: boolean;
labelKey?: string;
matchPos?: string;
matchProp?: string;
multi?: boolean;
name?: string;
newOptionCreator?: () => Option;
noResultsText?: string;
onBlur?: (event: Event) => void;
onChange?: (newValue: string) => void;
onFocus?: (event: Event) => void;
onInputChange?: (inputValue: string) => void;
onOptionLabelClick?: (value: string, event: Event) => void;
optionRenderer?: () => void;
options?: Array<Option>;
placeholder?: string;
searchable?: boolean;
searchingText?: string;
searchPromptText?: string;
value?: Option;
valueKey?: string;
valueRenderer?: () => void;
}
interface ReactAsyncSelectProps extends React.Props<ReactSelectClass>{
cache? : any;
loadOptions? : ()=>void;
ignoreAccents? : boolean;
isLoading? : boolean;
loadingPlaceholder? : string;
interface ReactAsyncSelectProps extends React.Props<ReactSelectClass> {
cache?: any;
loadOptions?: () => void;
ignoreAccents?: boolean;
isLoading?: boolean;
loadingPlaceholder?: string;
}
interface ReactSelect extends React.ReactElement<ReactSelectProps> { }
interface ReactSelectClass extends React.ComponentClass<ReactSelectProps>{}
interface ReactSelectClass extends React.ComponentClass<ReactSelectProps> { }
interface SelectWithAsync extends ReactSelectClass {
Async? : ReactAsyncSelectProps;
Async?: ReactAsyncSelectProps;
}
var ReactSelect: SelectWithAsync;