Commit Graph

67 Commits (324cce3dcc2cbfb44945ed00bbd3744587624f83)

Author SHA1 Message Date
Keren Chandran fe9312aad0 Fixed Dropdown readme example and updated properties. 2016-03-25 10:27:53 -04:00
Javi Velasco bdd37556c9 Merge pull request #398 from lucaas/add-default-to-sass-color-variables
Fix #397 Color sass variables missing !default not configurable
2016-03-24 18:03:34 +01:00
Tomasz Kasperek 9dcd1d6750 Introduce close() method 2016-03-23 12:35:24 +01: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
Tobias Bales c812d4c176 Correctly handle zero as dropdown value
This is only an issue if the dropdown item with the value 0
is not the first item still better to properly handle it I think.
2016-03-10 11:13:39 +01:00
Javi Velasco 993afbce39 Fix #356 2016-03-05 21:37:07 +01:00
Rodion c1f2b83865 Dropdown doesn't close on click outside fix
Hi there,

Dropdown component doesn't close on click outside in my app. 
I debugged a little bit problem and found that componentWillUpdate uses incorrect.
It accepts nextProps and nextState and not prevState and nextState
https://facebook.github.io/react/docs/component-specs.html#updating-componentwillupdate
2016-03-04 18:16:31 +01:00
Juan Peri 29edd204a5 dropdown accepts string or number as value 2016-02-15 18:18:16 +01:00
Cyril Sobierajewicz 68b23d2919 cleanup listeners on document before unmount 2016-02-11 17:06:37 +01:00
Javi Velasco d7e5aea79a Merge pull request #275 from epilgrim/feature/close_dropdown_on_click_outside_the_element
close dropdown when click event is triggered outside the component
2016-01-23 15:59:23 +01:00
Juan Peri 160fb47fb1 Removing event from dropdown when not active anymore 2016-01-23 09:42:56 +01:00
Juan Peri 21a68606b1 close dropdown when click event is triggered outside the component 2016-01-22 18:06:32 +01:00
Boris Mikhaylov 9ce68aeceb propagate events in Dropdown 2016-01-22 14:43:33 +01:00
Javi Velasco 6cc95c5bc1 Bugfix in dropdown errored styling 2015-12-20 18:50:25 +01:00
Javi Velasco b037994375 Fixes #157 2015-12-20 18:17:50 +01:00
Javi Velasco 802f50f4b3 Use full Toolbox input in autocomplete 2015-12-20 17:50:57 +01:00
Javi Velasco 2c7d308271 Use Input component in dropdowns and make it homogeneous 2015-12-20 17:01:02 +01:00
Javi Velasco 60f55ebfef Fixes #188 2015-12-19 22:07:49 +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 da0f1a631e Remove jsx extension from imports in components 2015-11-28 20:24:46 +01:00
Javi Velasco 1370e2a2c9 Use ClassNames in Dropdown 2015-11-28 15:39:09 +01:00
@soyjavi 0837999d08 New interface for onChange event (value, event) 2015-11-25 20:48:29 +07: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 e8325e5122 Solve conflicts 2015-11-21 13:02:46 +01:00
Javi Velasco 1bfd44e60f Update eslint and plugins and add some rules to make it pass 2015-11-21 12:56:57 +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
Javi Velasco 459036719e Refactor dropdown and put value state out 2015-11-12 00:12:33 +01:00
Javi Velasco 67ab8746a9 Proper import path for documentation files 2015-11-10 11:07:43 +01:00
Javi Velasco 7c7ed76fc4 Add documentation and fixes for dropdown 2015-10-31 22:37:26 +01:00
@soyjavi 2423d09a4f Rename component doc to readme.md 2015-10-28 22:09:09 +07:00
ustccjw 4fb976a00d update webpack dev, test and build & update eslint rule 2015-10-23 16:11:40 +08:00
Javi Velasco 7c43f935a1 Babel to stage 2 and remove decorators 2015-10-22 01:31:17 +02:00
Javi Velasco ec6e72bbd9 Resolve linter errors 2015-10-21 12:25:10 +02:00
ustccjw 6c278f25d0 use autobind-decorator 2015-10-21 14:13:24 +08:00
ustccjw 227727e860 fix conflict 2015-10-21 10:58:11 +08:00
Javi Velasco 786dd59c4c More refactoring for sass variables 2015-10-21 01:06:04 +02:00
Javi Velasco da2c85c588 Remove unneeded css variables 2015-10-20 21:38:33 +02:00
Javi Velasco 33a508ca0a Setup new file structure for sass files 2015-10-20 21:15:21 +02:00
ustccjw 9ad9f357a3 use es6 classes & remove react-addons-pure-render-mixin 2015-10-20 13:40:51 +08:00
Javi Velasco c9b6f1237a Migrate to React 0.14 and migrate date picker to sass 2015-10-11 19:07:29 +02:00
@soyjavi 736846a5a6 Uniform styles in <Autocomplete> and <Dropdown> 2015-10-10 10:26:21 +07:00
@soyjavi dfa754fc97 Better transition between values and selected value 2015-10-09 20:58:47 +07:00
@soyjavi 39f4d54064 Dropdown SaSS 2015-10-09 20:55:00 +07:00
Javi Velasco f27be7abe8 Rewrite dropdown in ES6 2015-09-19 17:42:57 +02:00
Javi Velasco 44cab7f311 Rewrite ripple in ES6 and update its dependencies 2015-09-18 19:21:54 +02:00
Javi Velasco 763ed46c43 Fixes in react proptypes for some components 2015-09-07 01:59:25 +02:00
Javi Jimenez Villar 910277d8b0 String convention 2015-07-29 10:46:05 +07:00