Commit Graph

168 Commits (master)

Author SHA1 Message Date
Simon Selg 8559c1818c refactor(input): move autoresize to didUpdate
It needs to be there because it also needs to be called when value is changed from outside by setting the value property
2016-08-04 03:41:24 +02:00
Simon Selg 75487fb9a7 fix(input): only remove resize event listerner if it exists 2016-08-04 03:40:10 +02:00
Simon Selg 1809d67813 fix(multiline input): autoresize after initial render too 2016-08-04 03:34:28 +02:00
Javi Velasco f2dbfb53cd Fix #547 2016-08-02 21:51:13 +02:00
Ben Fox-Moore 9cc56e1937 Only add Input auto-resize handler to multiline inputs 2016-07-21 15:15:35 +02:00
Per Bergqwist ae6109c6fd All props are now commented 2016-07-19 21:18:33 +02:00
normano64 10b69b5c8c Moved modules to separate files. 2016-07-18 17:25:48 +02:00
Randy Coulman 68ee32f3ec Document the label theme for the input component
The `input` component has a `label` theme setting, but it wasn’t
documented.
2016-07-11 11:34:25 -07:00
Javi Velasco 0513cb72e9 Fixes #616 2016-07-10 13:42:35 +02:00
Ben Fox-Moore 4ea305cff2 Fix Number.isNaN TypeError on IE 2016-07-07 15:20:33 +02:00
ixrock febf8b5237 get rid of declaration duplicates in components/ 2016-06-26 15:02:54 +03:00
Javi Velasco 8d65961be2 Restyle a ternary 2016-06-25 12:27:02 +02:00
Simon Selg 5b97b95c62 Add autoresize to multiline inputs
This fixes #278
2016-06-25 12:27:02 +02:00
Olivier Louvignes d06dd78fdd chore(eslint): fix propTypes order 2016-06-09 19:21:22 +02: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
Olivier Louvignes c850245694 feat(datepicker,timepicker): add support for `name` prop 2016-06-06 19:37:51 +02:00
Javi Velasco 419f16f63f Plain SASS imports 🎨 2016-06-04 22:06:59 +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 6329c5d11d Make tests pass 2016-05-25 00:25:43 +02:00
Javi Velasco 243644c144 Migrate input to themr 2016-05-21 18:57:49 +02:00
Javi Velasco 547aceb4e4 Merge branch 'dev'
* dev:
  Get rid of jsx extensions 🔮
  Fix linter error for layouts
  Fix #407
  Fix #425
  Fix #442
  Fix checking if key exists in Autocomplete
  Remove App from components index
  Add inputClassName prop to DatePicker and TimePicker
  Adapt pickers to calculate position with scroll
  Update linting
  Remove unneeded App
  Refactor Overlay into two components and make activable components render only when needed
  Use sass lint
  Lint spec files
  Bugfix: style for svg icons in button
  Reduce list unneeded markup
  Update documentation dependencies
  Update dependencies, linter and rules
  updates package.json to work with react 15
  Make drawer compliant with material design guidelines.
2016-04-10 21:54:47 +02:00
Javi Velasco 0cb8d8bdb2 Get rid of jsx extensions 🔮 2016-04-10 21:23:04 +02:00
Javi Velasco c3ef6bd25a Update linting 2016-04-10 17:49:23 +02:00
Javi Velasco beeb6ab40a Use sass lint 2016-04-10 12:20:59 +02:00
Javi Velasco 1bebb149c8 Merge pull request #439 from csmcanarney/patch-1
Revert input error color
2016-04-09 20:44:05 +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
Calvin McAnarney 27e59dfdc7 Revert input error color 2016-04-06 22:04:57 +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 fe9312aad0 Fixed Dropdown readme example and updated properties. 2016-03-25 10:27:53 -04:00
Keren Chandran 94280ce85a Updated Input doc and Example 2016-03-25 09:53:24 -04:00
Keren Chandran 19249d8756 Forgot to add required attribute to actual input element 2016-03-20 17:35:40 -04:00
Keren Chandran a022b2060a Merge branch 'dev' of https://github.com/react-toolbox/react-toolbox into input-required
# Conflicts:
#	components/input/Input.jsx
#	components/input/style.scss
2016-03-17 20:54:29 -04:00
Javi Velasco 3164ed71b2 Merge pull request #371 from KerenChandran/dev
Added hint attribute to input field.
2016-03-17 08:37:10 +01:00
Keren Chandran c2374ad29f Removed Error styling when input field is in focus 2016-03-12 19:33:18 -05:00
Keren Chandran cc32e5a1bd Created required behaviour for input 2016-03-12 19:05:19 -05:00
Keren Chandran 4dcb2d0b61 Changed HTML element from label to span 2016-03-10 08:45:51 -05:00
Keren Chandran d2202e1a9f Added hint attribute to input field. 2016-03-09 23:23:35 -05:00
Tobias Bales 5029b0d03e Fix label for number inputs with 0 as value
For an

   <Input type="number" label="label text"/>

the label would overlay the value when it was set to 0 (the integer)
since the checking logic checked for javascript "trueishness".
Now the check is explicit against null, undefined, empty string and NaN.
2016-03-06 14:09:41 +01:00
Rodion ef0fe1108e renderInput() method never used
removing unused method
2016-03-04 18:16:31 +01:00
Tucker Connelly 0227b0d2d0 Change error PropType to node on Input 2016-02-23 17:55:27 -05:00
Juan Peri 998b5a44b7 Enable Element to behave as Icon 2016-01-20 00:01:20 +01:00
Javi Velasco 027fc12600 Add missing variable for chevron 2015-12-20 17:51:46 +01:00
Javi Velasco 2c7d308271 Use Input component in dropdowns and make it homogeneous 2015-12-20 17:01:02 +01:00
avijohnson ffa5044e20 Add maxLength attribute to input component 2015-12-16 14:25:01 -08:00
Cem Turan 89b41f3663 Input was missing html5 type property 2015-12-05 10:49:29 +01:00
Matt Brookes cfad0eae81 Typo 2015-12-03 20:52:37 +00:00
Javi Velasco 27b7bef158 Fix typos in input examples and update example in input readme 2015-12-03 20:44:23 +01:00
Javi Velasco 083586304b Fixes #180 2015-12-03 00:48:32 +01:00
Javi Velasco 1c57370651 New approach for Tooltips 2015-11-29 12:39:55 +01:00
Javi Velasco de921b0438 Make label red in case of error for Input 2015-11-29 01:31:40 +01:00
Javi Velasco f23a3c691f Fixes in Input component 2015-11-29 01:25:21 +01:00
Javi Velasco da0f1a631e Remove jsx extension from imports in components 2015-11-28 20:24:46 +01:00
@soyjavi e9566d0e59 New interface for onChange event (value, event) 2015-11-25 17:40:14 +07:00
@soyjavi fd0e565013 New interface for onChange event (value, event) 2015-11-25 17:24:06 +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 7bc8721caa Merge pull request #125 from jonathanp/refactor-classname-generation
Proposal to change class list generation in components
2015-11-21 19:59:50 +01:00
jpersson f5134d256c Replace dependency `classnames-minimal` with `classnames` 2015-11-21 13:04:09 -05:00
Javi Velasco e8325e5122 Solve conflicts 2015-11-21 13:02:46 +01:00
@soyjavi ef6bd0899d New property delay in milliseconds. 2015-11-21 11:27:33 +07:00
jpersson e76cec03f0 Merge branch 'master' into refactor-classname-generation 2015-11-19 14:26:09 -05:00
Enzo Martin addc7f312b Remove all `unquote` calls
- Use SASS RGBA directly when modifying the opacity
2015-11-19 12:21:51 +01:00
@soyjavi 477b770edd New property 'maxLength' 2015-11-18 15:19:58 +07:00
jpersson 76a7e913ea Refactor class list generation in `Input` component 2015-11-17 20:28:25 -05:00
Javi Velasco 54ad233dd6 Fix scss linter errors and bugfix in snackbar 2015-11-18 01:15:07 +01:00
Javi Velasco b61619b6a3 Merge master and solve conflicts 2015-11-11 10:28:01 +01:00
@soyjavi f4d2db466d Merge branch 'master' of https://github.com/react-toolbox/react-toolbox
* 'master' of https://github.com/react-toolbox/react-toolbox:
  Proper import path for documentation files
  Proper link for donations
2015-11-10 18:58:40 +07:00
@soyjavi 34cef32038 New rule for <Input> (type: date or time) 2015-11-10 18:58:35 +07:00
Javi Velasco 67ab8746a9 Proper import path for documentation files 2015-11-10 11:07:43 +01:00
Javi Velasco 24be10da65 Update with master 2015-11-08 18:06:39 +01:00
Javi Velasco 703d4c6130 Extract state from autocomplete 2015-11-08 16:49:00 +01:00
Javi Velasco f5957bc043 Stateless input 2015-11-07 23:38:26 +01:00
@soyjavi 147088bfa3 Alphabetical Order for properties and methods 2015-11-07 09:36:51 +07:00
@soyjavi d0c8e4afdf Control visibility with JavaScript (decoupled way for any kind of element or <Component>) 2015-11-06 00:44:10 +07:00
Javi Velasco a049d99341 Add input docs 2015-11-01 08:41:40 +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 4a9d8cfa40 Improvements for build 2015-10-23 01:26:12 +02: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 6f9b8809b6 Csscomb for inputs 2015-10-21 01:53:01 +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 7ff854f40f fix es6 class react this bind 2015-10-20 17:06:26 +08:00
ustccjw 9ad9f357a3 use es6 classes & remove react-addons-pure-render-mixin 2015-10-20 13:40:51 +08:00
Javi Velasco 4e739067ca Fix linter errors in input scss 2015-10-12 12:53:42 +02:00
@soyjavi d516ff23a7 New property 'icon' 2015-10-12 15:10:49 +07:00
Javi Velasco c9b6f1237a Migrate to React 0.14 and migrate date picker to sass 2015-10-11 19:07:29 +02:00
Javi Velasco dd864dcc22 Migrate progressbar and slider to sass 2015-10-10 11:25:47 +02:00
Javi Velasco 5167b355ae Add some todos for input and autocomplete 2015-10-09 19:55:11 +02:00
Javi Velasco e8bab3de45 Migrate input to SCSS 2015-10-09 19:48:30 +02:00
Javi Velasco e87523b0b3 Rewrite component tests in ES6 2015-09-21 10:10:44 +02:00
Javi Velasco e223c5973e rewrite input in es6 2015-09-20 22:21:11 +02:00
Javi Velasco 6aca3d6866 Port autocomplete to ES6 and bugfixes 2015-09-13 22:05:24 +02:00
Javi Velasco 7a0c47f211 Merge with master 2015-09-03 21:24:45 +02:00