Commit Graph

200 Commits (master)

Author SHA1 Message Date
Craig Cartmell d8a73eef88 Merge branch 'show-chips-if-not-in-source' into dev 2016-11-30 15:51:15 +00:00
Craig Cartmell 3237ad0828 Tidy up 2016-11-30 15:05:52 +00:00
Craig Cartmell e301116066 Added logic to show selected chips even if they don't exist in source (showSelectedWhenNotInSource). Object is now accepted in value prop and should match source. WIP. 2016-11-30 13:43:15 +00:00
James Browne 9d732f4b19 Removes onQueryChange from props that are passed down to the Input element in Autocomplete 2016-11-25 10:59:10 +00:00
Alexandre Borela 5c79ef0be6 Pass event to selection. 2016-11-24 12:30:36 -02:00
James Browne fb263f4072 Adds type definitions. Makes it possible to hide the Chips. 2016-11-24 11:09:39 +00:00
James Browne 8052a7794f Adds a hook to get the autocomplete query value. 2016-11-23 17:39:04 +00:00
Alexandre Borela 4cd756de83 Fix code style. 2016-11-22 09:56:58 -02:00
Alexandre Borela f7a3b6d85b Extract reused logic. 2016-11-22 08:20:43 -02:00
Alexandre Borela a1ad40e841 Fix Autocomplete mouse selection. 2016-11-22 08:12:11 -02:00
Javi Velasco 6fb1bcd0c6 Fix #983 2016-11-20 11:51:43 +01:00
Javi Velasco 173cff00d8 Fix #904 2016-11-18 18:47:39 +01:00
Javi Velasco 1fefbae412 Fix #883 2016-11-06 13:02:22 +01:00
Javi Velasco d0a9032fe7 Fix #877 2016-11-06 12:36:31 +01:00
Javi Velasco 57320a0fb5 Pass linter 2016-11-01 17:01:39 +01:00
Justin Schultz 466aac254f Moves the enter check to onKeyDown 2016-10-28 14:21:01 -06:00
Sebastian Gronewold 9931ac42be Pass currently active suggestion to onBlur handler 2016-10-23 18:32:32 +02:00
Sebastian Gronewold b2ad4180f9 Add event to autocomplete onBlur 2016-10-22 15:28:03 +02:00
Panjie Setiawan Wicaksono 3e170c579b ts def typo fix and addtions 2016-10-18 22:44:01 +07:00
Nathan Ducrey 9edc8bd32d Add onBlur and onFocus props in Autocomplete component 2016-09-14 10:25:38 +02:00
Javi Velasco bbee9ef7c1 Fix #770 2016-09-06 22:19:28 +02:00
Javi Velasco d86e4a5956 Fix #755 2016-09-03 14:25:12 +02:00
Per Bergqwist def8643a0a Import React namespace, fix problem with @types 2016-09-02 09:18:33 +02:00
Per Bergqwist 34313b823e Fixed errors for Typescript 2.0.2 2016-08-31 08:41:16 +02:00
David Cho-Lerat 0ea3849771 Update readme.md
The 'direction' property value is 'down', not 'bottom'
2016-08-25 21:46:02 +02:00
Javi Velasco abf91d3d24 Fix #711 2016-08-22 22:39:44 +02:00
Justin Schultz a61aa5cb8a Fix #697 - Autocomplete KeyUp enter fix 2016-08-15 16:00:11 -06:00
Per Bergqwist 213411ba55 Fixes for typescript definitions, typos etc. 2016-08-10 09:35:51 +02:00
Weiler 01711e6658 Fixes linting errors 2016-08-06 18:37:16 -07:00
Weiler 0bce911718 Fixes Autocomplete error when provided value prop that is not in source option while preserving value text 2016-08-06 18:08:41 -07:00
Javi Velasco a825208e83 Remove some bind usage in render functions and undo passing down Dropdown theme to Input 2016-08-06 22:44:05 +02:00
Javi Velasco 19543a7e3c Merge branch 'therealparmesh-master' into dev
* therealparmesh-master:
  Fixed Autocomplete such that it does not error when provided with a value prop that does not exist in the source prop.
  1.0.3 release
2016-08-06 19:34:25 +02:00
Javi Velasco 40934393ab Change name from create to allowCreate in Autocomplete and fix linter warnings 2016-08-06 19:28:30 +02:00
Parmesh Krishen 59b01e640f Fixed Autocomplete such that it does not error when provided with a value prop that does not exist in the source prop. 2016-08-02 17:47:32 -05:00
Che' Jansen 3461a1fba3 Add create option to autocomplete 2016-07-28 12:53:09 +10:00
Javi Velasco 462990c171 Merge pull request #646 from farwayer/autocomplete-activate-fix
Fix autocomplete activating on react>=15.1 if no direction
2016-07-24 13:22:54 +02:00
Javi Velasco b226fcd258 Merge with dev 2016-07-24 13:17:16 +02:00
farawayer f3b460eabd fix autocomplete activating on react>=15.1 if no direction 2016-07-15 20:34:14 +03:00
Javi Velasco 3e29844e63 Update to react 15.2.0 2016-07-04 22:03:57 +02:00
ixrock febf8b5237 get rid of declaration duplicates in components/ 2016-06-26 15:02:54 +03:00
Javi Velasco 0bc5b1d776 Merge pull request #569 from ro-savage/autocomplete-autoselect-first-option
Feature - Autocomplete - Added autoselect first option on enter
2016-06-19 21:13:17 +02:00
Jake Klingler afe5bf1ba3 add 'suggestionMatch' prop to Autocomplete component to determine how suggestions are matched 2016-06-15 11:16:11 -06:00
Ro Savage 7bffe8a6f0 Added autoselect first option on enter 2016-06-15 14:02:14 +12:00
Robert Parker f8c1a3fd0d Update typings to external modules (no more 'declare module ...') to get the definitions working automatically with npm 2016-06-07 15:00:41 -07:00
Javi Velasco 419f16f63f Plain SASS imports 🎨 2016-06-04 22:06:59 +02:00
Javi Velasco 78790132f0 Merge with dev 2016-06-03 23:49:35 +02:00
Javi Velasco 73c115fac7 Better PropType syntax and delete required className api 2016-06-03 23:44:33 +02:00
yuristrelets 19566ddb31 fix receive props for Autocomplete component
For multiple=false components value is broken, because it isn't extracted from Map.
2016-06-03 17:06:52 +03:00
Javi Velasco 1386a1551d Destructuring React for some components 2016-05-29 12:47:27 +02:00
Javi Velasco d04c181fdf Better readmes for autocomplete avatar chip and input 2016-05-28 17:58:43 +02:00
Javi Velasco 85e248c0c4 Autoinject Autocomplete, Avatar, Chip and Input 2016-05-28 17:44:29 +02:00
Javi Velasco 92b170fce5 Migrate autocomplete 2016-05-21 19:48:53 +02:00
Javi Velasco 563868b90e Merge pull request #484 from lucaas/fix-483-autocomplete-unintuitive-filter-behaviour-with-multiple-false
Fix #483: Autocomplete unintuitive filter behavior with multiple=false
2016-05-21 19:11:36 +02:00
Lucas Correia cb4b73647f Refactor autocomplete suggestions method to make it more readable 2016-05-20 16:23:43 +02:00
Lucas Correia c70618471c Clear autocomplete query input when pressing backspace and showing all suggestions 2016-05-20 15:35:20 +02:00
Lucas Correia 5dfee66632 Add showSuggestionsWhenValueIsSet prop, used to control autocomplete filter behaviour when multiple=false 2016-05-20 15:24:06 +02:00
Lauri Lüüs 12e572f7fe Autocomplete element size
Suggestion element will render font size based on body size, so these elements getting to small. 
This change will make suggestion element to be consistent size of other elements.
2016-04-28 02:09:27 +03:00
Lucas Correia a4810d8e73 Change autocomplete filter behaviour when multiple=false
Adds a showAllSuggestions state, which is set to true initially.
It is set to false when the input is changed, and is used to control if
the shown suggestions should be filtered based when the multiple prop is false.
Once a value is set, the state will be reset to true.
2016-04-27 15:50:26 +02:00
Javi Velasco 0cb8d8bdb2 Get rid of jsx extensions 🔮 2016-04-10 21:23:04 +02:00
Javi Velasco ee4cc5437d Fix #425 2016-04-10 19:15:29 +02:00
Javi Velasco e45b0cbff8 Fix checking if key exists in Autocomplete 2016-04-10 19:00:13 +02:00
Javi Velasco c3ef6bd25a Update linting 2016-04-10 17:49:23 +02:00
Keren Chandran ccf88af87d Changed Icon Prop type to String or Element instead of Any. Also fixed an inappropriate example for checkbox. 2016-04-06 21:24:31 -04:00
Keren Chandran cdd6ee5f05 Merge branch 'dev' of https://github.com/react-toolbox/react-toolbox into update-docs
# Conflicts:
#	components/autocomplete/readme.md
#	components/dropdown/readme.md
2016-04-06 20:50:12 -04:00
Javi Velasco 079eb7663f Merge pull request #433 from ro-savage/autocomplete-add-selected-position
Add prop to autocomplete to place labels below or above input
2016-04-05 21:35:19 +02:00
Ro Savage d41a77cf37 Add prop to autocomplete to place labels below or above input 2016-04-05 17:26:37 +12:00
Lucas Correia ae8b22a174 Merge branch 'dev' into add-chip-component 2016-04-04 11:41:04 +02:00
Lucas Correia dff8a07949 Use children instead of special label and avatar props in Chip component 2016-04-04 11:24:30 +02:00
Lucas Correia 08675d69d2 Add onDeleteClick property 2016-04-04 10:27:41 +02:00
Javi Velasco 5e40156304 Merge pull request #427 from emiloberg/default-values-in-configs
Added !default to all config values
2016-04-04 09:48:21 +02:00
Lucas Correia 620b494574 Update autocomplete component to use chips 2016-04-02 13:41:58 +02:00
Emil Öberg 37f8f4c992 Added !default to all config values as per #424
This way, all config values can be overridden with custom style
2016-04-02 00:47:39 +02:00
Keren Chandran 84946681f0 Sorted Appbar's properties. Updated Autocomplete's doc and example 2016-03-25 08:12:57 -04:00
Keren Chandran 9d2fe8fd98 Fixed Object Single Selection Bug 2016-03-24 20:31:36 -04:00
Javi Velasco 36e3a86c2e Merge pull request #399 from KerenChandran/autocomplete-show-selected
Renders Selected Item when multiple=false
2016-03-24 18:08:34 +01:00
Keren Chandran bef1adf8fc Renders Selected Item when multiple=false 2016-03-22 21:52:32 -04:00
Lucas Correia acde309b3b Add default statements to color variables
This is necessary for them to be configurable via toolbox-loader
2016-03-22 14:25:26 +01:00
Javi Velasco 5184e872da Merge pull request #370 from arhamahmed/dev
fixes #369
2016-03-09 22:14:18 +01:00
Arham Ahmed 0b16eefabc fixes #369 2016-03-09 11:52:36 -05:00
Juan Carlos Sanchez Cardenas f81056f21b Changed the set state key to countries instead of value 2016-03-09 11:57:31 +01:00
Juan Carlos Sanchez Cardenas 01e2eabd6f Fixes small typos in AutoComplete documentation 2016-03-08 14:50:05 +01:00
Juan Peri 96e868bd9c Allowing array of pairs key-value as input for autocomplete 2016-02-09 11:20:35 +01:00
Javi Velasco 3c6b7afcc1 Fixe autocomplete 2016-01-06 12:56:30 +01:00
Araphel f6047f880f Bebel 6 Integrated, Stage-0 added, React updated 2015-12-23 14:21:41 -07:00
Javi Velasco 802f50f4b3 Use full Toolbox input in autocomplete 2015-12-20 17:50:57 +01:00
Javi Velasco 40888bbb1d Change webkit scrollbar removal for a mixin 2015-12-19 14:08:30 +01:00
Peter Fern 58e4e1e46c Replace `overflow-y: scroll` with `overflow-y: auto`
A number of components used `overflow-y`: scroll, which forces
scrollbars to be always visible. To work around this, `commons.scss` hid
webkit scrollbars globally. There are two problems with this: on
non-webkit browsers, scrollbars are visible even when they are
unnecessary; and scrollbars are hidden in webkit browsers, even on
elements where they may be desirable.

Instead, we use `overflow-y: auto`, and hide webkit scrollbars on
specific components when necessary.  Unfortunately, this requires using
element selectors, but this is the trade-off for better supporting
non-webkit browsers and allowing scrollbars on regular elements (like
body).

Fixes #218
2015-12-19 14:08:30 +01:00
Javi Velasco 2e0b9fcb5c Merge with master 2015-11-28 20:26:11 +01:00
Javi Velasco da0f1a631e Remove jsx extension from imports in components 2015-11-28 20:24:46 +01:00
Javi Velasco 4affcc8636 Merge branch 'deep-restructure' of github.com:soyjavi/react-toolbox into deep-restructure
* 'deep-restructure' of github.com:soyjavi/react-toolbox:
  Using the new interface for all form fields components.
  New interface for onChange event (value, event)
  New interface for onChange event (value, event)
2015-11-26 01:54:00 +01:00
Javi Velasco c9061e27e1 Use classNames in Autocomplete 2015-11-25 20:35:56 +01:00
@soyjavi 51ca0fab20 New interface for onChange event (value, event) 2015-11-25 20:56:12 +07:00
Miguel Ping 726a7772ee Fix array check on autocomplete 2015-11-24 12:59:19 +00:00
Nathan Marks f3d047e820 Remove jsx extension from component index files, replace with js 2015-11-22 17:49:46 -05:00
Javi Velasco cfebdb55f4 Rename most components index to actual components 2015-11-22 21:41:28 +01:00
Javi Velasco 1611b491fa Rename some components to new naming approach 2015-11-22 19:20:05 +01:00
Javi Velasco 364e270da1 Better imports organization. Fixes #140 2015-11-21 14:26:17 +01:00
Enzo Martin addc7f312b Remove all `unquote` calls
- Use SASS RGBA directly when modifying the opacity
2015-11-19 12:21:51 +01:00
Stan 1cf41fe8de [autocomplete] Fix #134 2015-11-19 11:02:10 +01:00
@soyjavi 477b770edd New property 'maxLength' 2015-11-18 15:19:58 +07:00