Javi Velasco
a1e6dd2379
Merge pull request #848 from rrott/fix/766-input_hint_text
...
Updated to show hint on input if label is empty
2016-10-22 16:51:58 +02:00
Matthew
8d62c8fe55
* Fixed trailing comma.
2016-10-13 13:19:06 +08:00
Matthew
a50c1c406e
* Added multiline height, see #811
2016-10-13 08:15:33 +08:00
Roman Rott
1fa9a0a58d
Updated to show hint on input if lable is empty
2016-10-09 14:37:43 +03: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
Per Bergqwist
213411ba55
Fixes for typescript definitions, typos etc.
2016-08-10 09:35:51 +02:00
Javi Velasco
77b0a4a57d
Fix linter warnings
2016-08-07 21:23:14 +02:00
Javi Velasco
ea3917e10c
Change method name to match lib convention
2016-08-06 18:30:08 +02:00
Javi Velasco
beb0ca4465
Merge branch 'multiline-maxlength-fix' of https://github.com/SimonSelg/react-toolbox into SimonSelg-multiline-maxlength-fix
...
* 'multiline-maxlength-fix' of https://github.com/SimonSelg/react-toolbox :
feat(dist): add newest build
doc(input): add note about handleChange implementation
fix(input): don't remove the maxLenght attribute from inputs
feat(input): prevent insertion of characters if maxLength is reached
fix(input): always recalculate size
feat(input): set the default row amount for multiline inputs to 1
feat(input): implement maxLength in js rather then using the maxlength prop of the input field
refactor(input): move autoresize to didUpdate
fix(input): only remove resize event listerner if it exists
docs(input): fix multiline example and add maxLength to it
fix(multiline input): autoresize after initial render too
2016-08-06 18:25:17 +02:00
Simon Selg
f29e570d29
doc(input): add note about handleChange implementation
2016-08-04 22:15:59 +02:00
Simon Selg
6f03fb553a
fix(input): don't remove the maxLenght attribute from inputs
...
We still rely on it when using non-multiline inputs (=> the input element is used), only when using textareas we use our custom maxlength logic.
2016-08-04 22:15:58 +02:00
Simon Selg
70823afcb3
feat(input): prevent insertion of characters if maxLength is reached
...
Previously we'd let the user insert a character, and then, if the resulting string was to long remove it again (through onChange). That creates unnessesary DOM modifications and store updates, and more importantly, diverges from the behavior of the native maxlength attribute of <textarea>.
Now we prevent the characters from beeing inserted in the first place if the length reaches maxlenght.
2016-08-04 22:15:58 +02:00
Simon Selg
d1fcc14cb1
fix(input): always recalculate size
...
The assumstion that an equal amount of characters consume the same size is wrong as not all fonts are monospaced.
2016-08-04 22:15:58 +02:00
Javi Velasco
023a7323b8
Fixes #663
2016-08-04 20:48:52 +02:00
Simon Selg
056cd6ddb1
feat(input): set the default row amount for multiline inputs to 1
2016-08-04 03:46:20 +02:00
Simon Selg
a8dbad121f
feat(input): implement maxLength in js rather then using the maxlength prop of the input field
...
This is explained in #685 . Fixes #685 therefore.
2016-08-04 03:45:38 +02:00
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