Commit Graph

23 Commits

Author SHA1 Message Date
Anton
7eeeebf310 Add the closeOnSelect property (#20444) 2017-10-10 12:56:16 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Per Svensson
e9f670010b Default export and removing namespace (#19863)
* Default export

* Correct imports for tests

* Update react-virtualized-select-tests.tsx

* Correct imports and cleaning
2017-09-25 12:18:03 -07:00
Arthur Ozga
197c0670ea Merge pull request #19573 from begincalendar/fix-19536
[react-select] Fix #19536 - OnValueClickHandler string "value" type to Option<TValue> "option" type
2017-09-14 14:25:18 -07:00
Arthur Ozga
90dc2c5273 Merge pull request #19677 from ninjaferret/react-select-deleteremoves-prop
[react-select] add the deleteRemoves property in ReactSelectProps
2017-09-14 13:57:25 -07:00
Larry Ruckman
ffbb5c78fd [react-select] FilterOption should return boolean value 2017-09-13 08:23:51 -07:00
Ian Johnson
c6a4dd4997 Add the deleteRemoves property 2017-09-11 18:19:08 +01:00
Matt
5a412fbc87 Fix: OnValueClickHandler type now gets Option<TValue> as first parameter, not a
string value.
2017-09-06 09:54:08 +10:00
Matt
ae611d0aa6 Add: Some test cases. 2017-09-06 09:54:07 +10:00
Matt
2f8cdc2380 Add: Some test cases. 2017-09-04 16:21:22 +10:00
Matt
a1cb788233 Fix: All usages of the "Option" and "Options" types now consistently utilise
generics.
2017-09-04 15:15:37 +10:00
onatm
af8ee1ebca add onNewOptionClick prop to ReactCreatableSelectProps 2017-08-29 20:38:18 +01:00
Ian Tan
279a617246 Add index type to Option 2017-08-24 13:44:17 +08:00
Ian Tan
be0c9d5d57 Make keyboard and focus handlers accept HTMLInputElement as type parameter 2017-08-24 11:54:20 +08:00
Andy
924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
Walton, Reese
751d76cfc5 noResultsText can be React Component 2017-08-08 19:06:21 -04:00
Giedrius Grabauskas
1e211cd0d4 react-select: Fixed renderer handlers return types. (#18574)
* Fixed renderer handlers return types.

* Added tests to render null or false elements.

* Updated tests.

* Updated naming.

* Created and implemented type `HandlerRendererResult`.
2017-08-02 12:03:24 -07:00
Martynas Žilinskas
edbbc0dd56 [react-select] Fixed and updated (#18287)
* Added tslint. Fixed some dtslint errors.

* Changed from empty style object to React.CSSProperties.

* Changed from any to dictionary props.

* Created prop handlers types.

* Fixed props return types and Handlers return types.

* Added options. Added missing focus method in ReactSelect.

* Rewritten tests.
2017-07-31 14:54:59 -07:00
Tanguy Krotoff
ea9de8a518 Replace React.Component<(.*), (any|void|\{\}|null)> by React.Component<$1>
+ many manual adjustments
2017-06-19 13:35:50 +02:00
Tanguy Krotoff
eeb262e1d8 Update react to TypeScript 2.3 2017-06-19 13:34:54 +02:00
Walter Rumsby
a2415a9ba3 [react-select] Update types for loadOptions to support Async options with Promises (#16664)
* Update types for loadOptions to support Async options with Promises

As per https://github.com/JedWatson/react-select#async-options-with-promises

* Add test

* Updates based on PR comments
2017-06-08 18:16:04 -07:00
Vito
789f03ed80 add undocumented prop instanceId to react-select (#15891) 2017-04-20 11:54:28 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00