39 Commits

Author SHA1 Message Date
Hamdi Wanis
00cc575020 fix: textInput label wrong position in RTL (#721) 2019-01-07 10:35:50 +01:00
Luís
60afd02df0 fix: TextInput align top with multiline (#651) 2018-11-13 14:32:16 +01:00
Satyajit Sahoo
f295272bf8 fix: use exact types when possible 2018-11-08 17:26:19 +01:00
Satyajit Sahoo
0294209504 fix: merge types with the props of the component used internally 2018-11-08 17:26:19 +01:00
Satyajit Sahoo
e31a33e92d fix: fix textinput not animating on changing error. fixes #611 2018-11-06 15:40:25 +01:00
Satyajit Sahoo
5265fb4e52 chore: upgrade deps 2018-11-05 15:10:54 +01:00
Satyajit Sahoo
b980c365f7 fix: grow text input to fill available space. fixes #612 2018-10-18 16:56:58 +02:00
Satyajit Sahoo
5a51af4378 fix: fix helper text not shown the first time it's visible 2018-10-18 16:54:26 +02:00
Bruno Castro
56840ee6bf fix: don't update TextInput content if it's not editable (#608)
Prevent component to update current value when it isn't editable

Resolves #589
2018-10-18 16:20:47 +02:00
Andrew Durber
0697fb6ee2 fix: Always show error outline when including when unfocused (#595) (#598)
### Motivation

TextInput with outline in an error state should correctly indicate an error when unfocused. This would also close #595 

### Test plan

It could also be possible to add a different prop `keepOutline` (not 100% on the name) instead of relying on the error state. However I'm unsure how that might be useful. 

![focused-cropped](https://user-images.githubusercontent.com/5732291/46907418-eea13e00-cf09-11e8-8a16-725ef016f88c.png)
![unfocused-cropped](https://user-images.githubusercontent.com/5732291/46907419-eea13e00-cf09-11e8-9539-95020b73ec71.png)
2018-10-13 19:24:55 +02:00
Grzegorz Gawrysiak
526b8c1544 fix: Fix flow issues with ref (#551) 2018-10-04 12:19:25 +02:00
Kacper Wiszczuk
768094119c feat: add custom render to TextInput component 2018-09-26 15:56:40 +02:00
Satyajit Sahoo
70f37b8785 fix: get label's background color from backgroundColor style of input 2018-09-04 19:59:40 +02:00
Satyajit Sahoo
f1522237ba docs: update examples to be runnable 2018-09-03 17:20:53 +02:00
Satyajit Sahoo
389163200c fix: remove flex: 1 from input, it messes up height 2018-09-03 00:06:09 +02:00
Kacper
0e7d0cd88d BREAKING: TextInput RTL support (#499)
- [x] - [Working RTL](https://i.imgur.com/sXYWKZi.png)
- [x] - [Working LTR](https://i.imgur.com/SjV0k8Z.png)
2018-09-01 12:50:02 +02:00
Satyajit Sahoo
f1cde8a3fc BREAKING: TextInput redesign (#522) 2018-09-01 00:31:40 +02:00
Jakub Kłobus
2c27321968 refactor: use @callstack/react-theme-provider 2018-07-25 15:02:43 +02:00
Julian Hundeloh
1795dc2553 fix: prevent focus and blur if disabled (#431) 2018-06-28 14:32:58 +02:00
Satyajit Sahoo
1d511ccfc7 BREAKING: use static properties for related components 2018-05-26 02:16:11 +02:00
Satyajit Sahoo
cc6408b882 fix: properly respect value and focused state. fixes #388 2018-05-26 01:47:25 +02:00
Grzegorz Gawrysiak
9fd6db4ec7 refactor: change the flow typing for functions (#351) 2018-05-06 17:23:53 +02:00
K. P. Sroka
7c054c0028 feat: implement helper and error text support in TextInput (#243) 2018-05-05 18:06:14 +02:00
Satyajit Sahoo
1dbe3e2dea docs: document methods on TextInput and Searchbar 2018-04-30 14:27:43 +02:00
Satyajit Sahoo
d90cd76cb9 fix: allow using TextInput as uncontrolled component 2018-04-19 01:16:12 +02:00
Satyajit Sahoo
1fabaae6f5 refactor: flow tweaks 2018-04-18 10:38:58 +02:00
Satyajit Sahoo
a8137337ac refactor: don't use deprecated React lifecycles. closes #285 2018-04-05 12:07:20 +02:00
Grzegorz Gawrysiak
97eb2a3d64 fix: do not require the TextInput numberOfLines prop 2018-03-06 14:54:31 +01:00
Grzegorz Gawrysiak
adb97b3e9b fix: do not require the TextInput multiline prop 2018-03-06 14:53:24 +01:00
Clayton Ray
c3fedbd51b docs: add imports to doc examples - closes #223 (#256) 2018-03-02 15:35:37 +01:00
Michał Pierzchała
3e1cfa8e93 chore: use eslint-config-callstack-io (#250) 2018-02-26 13:17:25 +01:00
Satyajit Sahoo
72f7567a08 docs: add screenshots for radio, checkbox and toolbar 2018-02-22 16:37:03 +01:00
K. P. Sroka
144388439d docs: Adding screenshots for TextInput (#233) 2018-02-06 16:56:26 +01:00
Satyajit Sahoo
105d337a19 docs: update documentation (#228) 2018-02-01 16:28:10 +01:00
Satyajit Sahoo
1ea7def251 fix: fix flow typing with withTheme (#213)
There seems to be some issue with defaultProps after this change, but it's better than not typechecking props at all
2017-12-20 11:57:24 +01:00
lukewalczak
230f8ca2ef docs: set js inside component for proper highlight 2017-11-08 09:26:42 +05:30
Satyajit Sahoo
bb51586351 chore: upgrade flow and dependencies (#200) 2017-11-07 11:21:17 +01:00
Luke Walczak
497ae55256 docs: Add missing example usage
* docs: documented modal and switch usage

* docs: documented checkbox

* docs: documented checkbox

* docs: documented radio button

* docs: refactor component usage description

* docs: documented typography styles

* docs: documented search bar

* docs: documented fab

* docs: documented divider

* docs: documented icon

* docs: documented paper

* docs: documented toolbar

* docs: documented card

* docs: proptypes refactor

* docs: documented drawer section

* docs: fix state in drawer section

* docs: documented drawer item

* docs: documented grid view

* docs: documented touchable ripple

* docs: remove static proptypes

* docs: fix typography

* docs: update icon component
2017-10-19 14:29:17 +02:00
Ahmed Elhanafy
c6a59d3cac feat: add TextInput component (#85) 2017-10-18 11:33:03 +02:00