@@ -24,36 +24,36 @@ AutoFocus.args = {
24
24
autoFocus : true ,
25
25
} ;
26
26
27
- const Default = Template . bind ( { } ) ;
28
- Default . args = {
27
+ const DefaultInput = Template . bind ( { } ) ;
28
+ DefaultInput . args = {
29
29
label : 'Default text input' ,
30
30
name : 'Default' ,
31
31
} ;
32
32
33
- const DefaultValue = Template . bind ( { } ) ;
34
- DefaultValue . args = {
35
- label : 'Input with default value' ,
33
+ const DefaultValueInput = Template . bind ( { } ) ;
34
+ DefaultValueInput . args = {
35
+ label : 'Default value input ' ,
36
36
name : 'DefaultValue' ,
37
37
defaultValue : 'My default value' ,
38
38
} ;
39
39
40
- const ErrorStory = Template . bind ( { } ) ;
41
- ErrorStory . args = {
42
- label : 'Input with error ' ,
40
+ const ErrorInput = Template . bind ( { } ) ;
41
+ ErrorInput . args = {
42
+ label : 'Error input ' ,
43
43
name : 'InputWithError' ,
44
- errorText : 'This field has an error. ' ,
44
+ errorText : 'Oops! Looks like there\'s an error' ,
45
45
} ;
46
46
47
47
const ForceActiveLabel = Template . bind ( { } ) ;
48
48
ForceActiveLabel . args = {
49
- label : 'Forced active label' ,
49
+ label : 'Force active label' ,
50
50
placeholder : 'My placeholder text' ,
51
51
forceActiveLabel : true ,
52
52
} ;
53
53
54
- const Placeholder = Template . bind ( { } ) ;
55
- Placeholder . args = {
56
- label : 'Input with placeholder ' ,
54
+ const PlaceholderInput = Template . bind ( { } ) ;
55
+ PlaceholderInput . args = {
56
+ label : 'Placeholder input ' ,
57
57
name : 'Placeholder' ,
58
58
placeholder : 'My placeholder text' ,
59
59
} ;
@@ -80,7 +80,7 @@ PrefixedInput.args = {
80
80
const MaxLengthInput = Template . bind ( { } ) ;
81
81
MaxLengthInput . args = {
82
82
label : 'MaxLength input' ,
83
- name : 'MaxLengthInput ' ,
83
+ name : 'MaxLength ' ,
84
84
placeholder : 'My placeholder text' ,
85
85
maxLength : 50 ,
86
86
} ;
@@ -93,7 +93,7 @@ const HintAndErrorInput = (args) => {
93
93
{ ...args }
94
94
onChangeText = { ( value ) => {
95
95
if ( value && value . toLowerCase ( ) === 'oops!' ) {
96
- setError ( 'Oops! Looks like there\'s an error. ' ) ;
96
+ setError ( 'Oops! Looks like there\'s an error' ) ;
97
97
return ;
98
98
}
99
99
setError ( '' ) ;
@@ -104,19 +104,19 @@ const HintAndErrorInput = (args) => {
104
104
} ;
105
105
HintAndErrorInput . args = {
106
106
label : 'HintAndError input' ,
107
- name : 'HintAndErrorInput ' ,
107
+ name : 'HintAndError ' ,
108
108
placeholder : 'My placeholder text' ,
109
- hint : 'Type "Oops!" to see the error. ' ,
109
+ hint : 'Type "Oops!" to see the error' ,
110
110
} ;
111
111
112
112
export default story ;
113
113
export {
114
114
AutoFocus ,
115
- Default ,
116
- DefaultValue ,
117
- ErrorStory ,
115
+ DefaultInput ,
116
+ DefaultValueInput ,
117
+ ErrorInput ,
118
118
ForceActiveLabel ,
119
- Placeholder ,
119
+ PlaceholderInput ,
120
120
AutoGrowInput ,
121
121
PrefixedInput ,
122
122
MaxLengthInput ,
0 commit comments