@draftbit/core 46.2.4-dedb7a.0 → 46.2.4-f941fc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +25 -5
  2. package/lib/commonjs/components/DeprecatedButton.js +4 -22
  3. package/lib/commonjs/components/TabView/TabView.js +102 -0
  4. package/lib/commonjs/components/TabView/TabViewItem.js +26 -0
  5. package/lib/commonjs/components/TabView/index.js +23 -0
  6. package/lib/commonjs/index.js +14 -0
  7. package/lib/commonjs/mappings/NumberInput.js +149 -146
  8. package/lib/commonjs/mappings/TabView.js +79 -0
  9. package/lib/commonjs/mappings/TextArea.js +193 -188
  10. package/lib/commonjs/mappings/TextField.js +8 -3
  11. package/lib/commonjs/mappings/TextInput.js +180 -178
  12. package/lib/module/components/TabView/TabView.js +87 -0
  13. package/lib/module/components/TabView/TabViewItem.js +18 -0
  14. package/lib/module/components/TabView/index.js +2 -0
  15. package/lib/module/index.js +1 -0
  16. package/lib/module/mappings/NumberInput.js +149 -146
  17. package/lib/module/mappings/TabView.js +70 -0
  18. package/lib/module/mappings/TextArea.js +193 -188
  19. package/lib/module/mappings/TextField.js +8 -3
  20. package/lib/module/mappings/TextInput.js +180 -178
  21. package/lib/typescript/src/components/TabView/TabView.d.ts +19 -0
  22. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +10 -0
  23. package/lib/typescript/src/components/TabView/index.d.ts +2 -0
  24. package/lib/typescript/src/index.d.ts +1 -0
  25. package/lib/typescript/src/mappings/TabView.d.ts +111 -0
  26. package/lib/typescript/src/mappings/TextArea.d.ts +42 -42
  27. package/lib/typescript/src/mappings/TextField.d.ts +118 -118
  28. package/package.json +4 -2
  29. package/src/components/TabView/TabView.js +34 -0
  30. package/src/components/TabView/TabView.tsx +97 -0
  31. package/src/components/TabView/TabViewItem.js +5 -0
  32. package/src/components/TabView/TabViewItem.tsx +21 -0
  33. package/src/components/TabView/index.js +2 -0
  34. package/src/components/TabView/index.ts +2 -0
  35. package/src/index.js +1 -0
  36. package/src/index.tsx +1 -0
  37. package/src/mappings/NumberInput.js +163 -160
  38. package/src/mappings/NumberInput.ts +168 -165
  39. package/src/mappings/TabView.js +73 -0
  40. package/src/mappings/TabView.ts +80 -0
  41. package/src/mappings/TextArea.js +220 -213
  42. package/src/mappings/TextArea.ts +227 -219
  43. package/src/mappings/TextField.js +9 -2
  44. package/src/mappings/TextField.ts +11 -3
  45. package/src/mappings/TextInput.js +208 -205
  46. package/src/mappings/TextInput.ts +215 -212
@@ -1,4 +1,166 @@
1
1
  import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, StylesPanelSections, } from "@draftbit/types";
2
+ const NUMBER_INPUT_PROPS = {
3
+ allowFontScaling: {
4
+ group: GROUPS.advanced,
5
+ label: "Allow Font Scaling",
6
+ description: "Whether fonts should scale to respect Text Size in the user's accessibility settings. (Default: true)",
7
+ editable: true,
8
+ required: false,
9
+ defaultValue: null,
10
+ formType: FORM_TYPES.boolean,
11
+ propType: PROP_TYPES.BOOLEAN,
12
+ },
13
+ autoFocus: {
14
+ group: GROUPS.basic,
15
+ label: "Auto Focus",
16
+ description: "Focuses the input on load in and brings up the keyboard",
17
+ editable: true,
18
+ required: false,
19
+ defaultValue: null,
20
+ formType: FORM_TYPES.boolean,
21
+ propType: PROP_TYPES.BOOLEAN,
22
+ },
23
+ caretHidden: {
24
+ group: GROUPS.advanced,
25
+ label: "Hide Caret",
26
+ description: "Hides the caret(the line small line underneath each showing where you're editing/typing",
27
+ editable: true,
28
+ required: false,
29
+ defaultValue: null,
30
+ formType: FORM_TYPES.boolean,
31
+ propType: PROP_TYPES.BOOLEAN,
32
+ },
33
+ contextMenuHidden: {
34
+ group: GROUPS.advanced,
35
+ label: "Hide Context Menu",
36
+ description: "Hides the system context menu (Default: false)",
37
+ editable: true,
38
+ required: false,
39
+ defaultValue: null,
40
+ formType: FORM_TYPES.boolean,
41
+ propType: PROP_TYPES.BOOLEAN,
42
+ },
43
+ editable: {
44
+ group: GROUPS.advanced,
45
+ label: "Editable",
46
+ description: "If false, the text is not editable",
47
+ editable: true,
48
+ required: false,
49
+ defaultValue: true,
50
+ formType: FORM_TYPES.boolean,
51
+ propType: PROP_TYPES.BOOLEAN,
52
+ },
53
+ keyboardAppearance: {
54
+ group: GROUPS.advanced,
55
+ label: "Keyboard Appearance",
56
+ description: "Determines the color of the keyboard.(iOS Only)",
57
+ editable: true,
58
+ required: false,
59
+ defaultValue: null,
60
+ options: ["default", "light", "dark"],
61
+ formType: FORM_TYPES.flatArray,
62
+ propType: PROP_TYPES.STRING,
63
+ },
64
+ keyboardType: {
65
+ group: GROUPS.advanced,
66
+ label: "Keyboard Type",
67
+ description: "Determines what keyboard is given to the user.",
68
+ editable: true,
69
+ required: false,
70
+ defaultValue: null,
71
+ options: ["numeric", "numbers-and-punctuation", "number-pad"],
72
+ formType: FORM_TYPES.flatArray,
73
+ propType: PROP_TYPES.STRING,
74
+ },
75
+ maxLength: {
76
+ group: GROUPS.basic,
77
+ label: "Max Length",
78
+ description: "Limits the input to a set number of characters.",
79
+ editable: true,
80
+ required: false,
81
+ defaultValue: null,
82
+ min: 0,
83
+ step: 1,
84
+ precision: 0,
85
+ formType: FORM_TYPES.number,
86
+ propType: PROP_TYPES.NUMBER,
87
+ },
88
+ placeholder: {
89
+ group: GROUPS.basic,
90
+ label: "Placeholder Text",
91
+ description: "The text that is shown on load when no value is available.",
92
+ editable: true,
93
+ required: false,
94
+ defaultValue: "Enter a number...",
95
+ formType: FORM_TYPES.string,
96
+ propType: PROP_TYPES.STRING,
97
+ },
98
+ placeholderTextColor: {
99
+ group: GROUPS.basic,
100
+ label: "Placeholder Text Color",
101
+ description: "The color of the placeholder text.",
102
+ editable: true,
103
+ required: false,
104
+ defaultValue: null,
105
+ formType: FORM_TYPES.color,
106
+ propType: PROP_TYPES.STRING,
107
+ },
108
+ returnKeyLabel: {
109
+ group: GROUPS.advanced,
110
+ label: "Return Key Label",
111
+ description: "(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)",
112
+ editable: true,
113
+ required: false,
114
+ defaultValue: null,
115
+ formType: FORM_TYPES.string,
116
+ propType: PROP_TYPES.STRING,
117
+ },
118
+ returnKeyType: {
119
+ group: GROUPS.advanced,
120
+ label: "Return Key Type",
121
+ description: "Determines how the return key should look like",
122
+ editable: true,
123
+ required: false,
124
+ defaultValue: null,
125
+ options: [
126
+ "done",
127
+ "go",
128
+ "next",
129
+ "search",
130
+ "send",
131
+ "none",
132
+ "previous",
133
+ "default",
134
+ "emergency-call",
135
+ "google",
136
+ "join",
137
+ "route",
138
+ "yahoo",
139
+ ],
140
+ formType: FORM_TYPES.flatArray,
141
+ propType: PROP_TYPES.STRING,
142
+ },
143
+ selectionColor: {
144
+ group: GROUPS.advanced,
145
+ label: "Selection Color",
146
+ description: "Color of the highlighted portion when selecting.",
147
+ editable: true,
148
+ required: false,
149
+ defaultValue: null,
150
+ formType: FORM_TYPES.color,
151
+ propType: PROP_TYPES.STRING,
152
+ },
153
+ selectTextOnFocus: {
154
+ group: GROUPS.advanced,
155
+ label: "Select Text on Focus",
156
+ description: "If true, all the text will automatically be selected on focus",
157
+ editable: true,
158
+ required: false,
159
+ defaultValue: null,
160
+ formType: FORM_TYPES.boolean,
161
+ propType: PROP_TYPES.BOOLEAN,
162
+ },
163
+ };
2
164
  export const SEED_DATA_PROPS = {
3
165
  style: {
4
166
  group: GROUPS.basic,
@@ -89,166 +251,7 @@ export const SEED_DATA = [
89
251
  triggers: [Triggers.OnChangeText],
90
252
  props: {
91
253
  ...SEED_DATA_PROPS,
92
- allowFontScaling: {
93
- group: GROUPS.advanced,
94
- label: "Allow Font Scaling",
95
- description: "Whether fonts should scale to respect Text Size in the user's accessibility settings. (Default: true)",
96
- editable: true,
97
- required: false,
98
- defaultValue: null,
99
- formType: FORM_TYPES.boolean,
100
- propType: PROP_TYPES.BOOLEAN,
101
- },
102
- autoFocus: {
103
- group: GROUPS.basic,
104
- label: "Auto Focus",
105
- description: "Focuses the input on load in and brings up the keyboard",
106
- editable: true,
107
- required: false,
108
- defaultValue: null,
109
- formType: FORM_TYPES.boolean,
110
- propType: PROP_TYPES.BOOLEAN,
111
- },
112
- caretHidden: {
113
- group: GROUPS.advanced,
114
- label: "Hide Caret",
115
- description: "Hides the caret(the line small line underneath each showing where you're editing/typing",
116
- editable: true,
117
- required: false,
118
- defaultValue: null,
119
- formType: FORM_TYPES.boolean,
120
- propType: PROP_TYPES.BOOLEAN,
121
- },
122
- contextMenuHidden: {
123
- group: GROUPS.advanced,
124
- label: "Hide Context Menu",
125
- description: "Hides the system context menu (Default: false)",
126
- editable: true,
127
- required: false,
128
- defaultValue: null,
129
- formType: FORM_TYPES.boolean,
130
- propType: PROP_TYPES.BOOLEAN,
131
- },
132
- editable: {
133
- group: GROUPS.advanced,
134
- label: "Editable",
135
- description: "If false, the text is not editable",
136
- editable: true,
137
- required: false,
138
- defaultValue: true,
139
- formType: FORM_TYPES.boolean,
140
- propType: PROP_TYPES.BOOLEAN,
141
- },
142
- keyboardAppearance: {
143
- group: GROUPS.advanced,
144
- label: "Keyboard Appearance",
145
- description: "Determines the color of the keyboard.(iOS Only)",
146
- editable: true,
147
- required: false,
148
- defaultValue: null,
149
- options: ["default", "light", "dark"],
150
- formType: FORM_TYPES.flatArray,
151
- propType: PROP_TYPES.STRING,
152
- },
153
- keyboardType: {
154
- group: GROUPS.advanced,
155
- label: "Keyboard Type",
156
- description: "Determines what keyboard is given to the user.",
157
- editable: true,
158
- required: false,
159
- defaultValue: null,
160
- options: ["numeric", "numbers-and-punctuation", "number-pad"],
161
- formType: FORM_TYPES.flatArray,
162
- propType: PROP_TYPES.STRING,
163
- },
164
- maxLength: {
165
- group: GROUPS.basic,
166
- label: "Max Length",
167
- description: "Limits the input to a set number of characters.",
168
- editable: true,
169
- required: false,
170
- defaultValue: null,
171
- min: 0,
172
- step: 1,
173
- precision: 0,
174
- formType: FORM_TYPES.number,
175
- propType: PROP_TYPES.NUMBER,
176
- },
177
- placeholder: {
178
- group: GROUPS.basic,
179
- label: "Placeholder Text",
180
- description: "The text that is shown on load when no value is available.",
181
- editable: true,
182
- required: false,
183
- defaultValue: "Enter a number...",
184
- formType: FORM_TYPES.string,
185
- propType: PROP_TYPES.STRING,
186
- },
187
- placeholderTextColor: {
188
- group: GROUPS.basic,
189
- label: "Placeholder Text Color",
190
- description: "The color of the placeholder text.",
191
- editable: true,
192
- required: false,
193
- defaultValue: null,
194
- formType: FORM_TYPES.color,
195
- propType: PROP_TYPES.STRING,
196
- },
197
- returnKeyLabel: {
198
- group: GROUPS.advanced,
199
- label: "Return Key Label",
200
- description: "(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)",
201
- editable: true,
202
- required: false,
203
- defaultValue: null,
204
- formType: FORM_TYPES.string,
205
- propType: PROP_TYPES.STRING,
206
- },
207
- returnKeyType: {
208
- group: GROUPS.advanced,
209
- label: "Return Key Type",
210
- description: "Determines how the return key should look like",
211
- editable: true,
212
- required: false,
213
- defaultValue: null,
214
- options: [
215
- "done",
216
- "go",
217
- "next",
218
- "search",
219
- "send",
220
- "none",
221
- "previous",
222
- "default",
223
- "emergency-call",
224
- "google",
225
- "join",
226
- "route",
227
- "yahoo",
228
- ],
229
- formType: FORM_TYPES.flatArray,
230
- propType: PROP_TYPES.STRING,
231
- },
232
- selectionColor: {
233
- group: GROUPS.advanced,
234
- label: "Selection Color",
235
- description: "Color of the highlighted portion when selecting.",
236
- editable: true,
237
- required: false,
238
- defaultValue: null,
239
- formType: FORM_TYPES.color,
240
- propType: PROP_TYPES.STRING,
241
- },
242
- selectTextOnFocus: {
243
- group: GROUPS.advanced,
244
- label: "Select Text on Focus",
245
- description: "If true, all the text will automatically be selected on focus",
246
- editable: true,
247
- required: false,
248
- defaultValue: null,
249
- formType: FORM_TYPES.boolean,
250
- propType: PROP_TYPES.BOOLEAN,
251
- },
254
+ ...NUMBER_INPUT_PROPS,
252
255
  },
253
256
  },
254
257
  ];
@@ -8,6 +8,173 @@ import {
8
8
  StylesPanelSections,
9
9
  } from "@draftbit/types";
10
10
 
11
+ const NUMBER_INPUT_PROPS = {
12
+ allowFontScaling: {
13
+ group: GROUPS.advanced,
14
+ label: "Allow Font Scaling",
15
+ description:
16
+ "Whether fonts should scale to respect Text Size in the user's accessibility settings. (Default: true)",
17
+ editable: true,
18
+ required: false,
19
+ defaultValue: null,
20
+ formType: FORM_TYPES.boolean,
21
+ propType: PROP_TYPES.BOOLEAN,
22
+ },
23
+ autoFocus: {
24
+ group: GROUPS.basic,
25
+ label: "Auto Focus",
26
+ description: "Focuses the input on load in and brings up the keyboard",
27
+ editable: true,
28
+ required: false,
29
+ defaultValue: null,
30
+ formType: FORM_TYPES.boolean,
31
+ propType: PROP_TYPES.BOOLEAN,
32
+ },
33
+ caretHidden: {
34
+ group: GROUPS.advanced,
35
+ label: "Hide Caret",
36
+ description:
37
+ "Hides the caret(the line small line underneath each showing where you're editing/typing",
38
+ editable: true,
39
+ required: false,
40
+ defaultValue: null,
41
+ formType: FORM_TYPES.boolean,
42
+ propType: PROP_TYPES.BOOLEAN,
43
+ },
44
+ contextMenuHidden: {
45
+ group: GROUPS.advanced,
46
+ label: "Hide Context Menu",
47
+ description: "Hides the system context menu (Default: false)",
48
+ editable: true,
49
+ required: false,
50
+ defaultValue: null,
51
+ formType: FORM_TYPES.boolean,
52
+ propType: PROP_TYPES.BOOLEAN,
53
+ },
54
+ editable: {
55
+ group: GROUPS.advanced,
56
+ label: "Editable",
57
+ description: "If false, the text is not editable",
58
+ editable: true,
59
+ required: false,
60
+ defaultValue: true,
61
+ formType: FORM_TYPES.boolean,
62
+ propType: PROP_TYPES.BOOLEAN,
63
+ },
64
+ keyboardAppearance: {
65
+ group: GROUPS.advanced,
66
+ label: "Keyboard Appearance",
67
+ description: "Determines the color of the keyboard.(iOS Only)",
68
+ editable: true,
69
+ required: false,
70
+ defaultValue: null,
71
+ options: ["default", "light", "dark"],
72
+ formType: FORM_TYPES.flatArray,
73
+ propType: PROP_TYPES.STRING,
74
+ },
75
+ keyboardType: {
76
+ group: GROUPS.advanced,
77
+ label: "Keyboard Type",
78
+ description: "Determines what keyboard is given to the user.",
79
+ editable: true,
80
+ required: false,
81
+ defaultValue: null,
82
+ options: ["numeric", "numbers-and-punctuation", "number-pad"],
83
+ formType: FORM_TYPES.flatArray,
84
+ propType: PROP_TYPES.STRING,
85
+ },
86
+ maxLength: {
87
+ group: GROUPS.basic,
88
+ label: "Max Length",
89
+ description: "Limits the input to a set number of characters.",
90
+ editable: true,
91
+ required: false,
92
+ defaultValue: null,
93
+ min: 0,
94
+ step: 1,
95
+ precision: 0,
96
+ formType: FORM_TYPES.number,
97
+ propType: PROP_TYPES.NUMBER,
98
+ },
99
+ placeholder: {
100
+ group: GROUPS.basic,
101
+ label: "Placeholder Text",
102
+ description: "The text that is shown on load when no value is available.",
103
+ editable: true,
104
+ required: false,
105
+ defaultValue: "Enter a number...",
106
+ formType: FORM_TYPES.string,
107
+ propType: PROP_TYPES.STRING,
108
+ },
109
+ placeholderTextColor: {
110
+ group: GROUPS.basic,
111
+ label: "Placeholder Text Color",
112
+ description: "The color of the placeholder text.",
113
+ editable: true,
114
+ required: false,
115
+ defaultValue: null,
116
+ formType: FORM_TYPES.color,
117
+ propType: PROP_TYPES.STRING,
118
+ },
119
+ returnKeyLabel: {
120
+ group: GROUPS.advanced,
121
+ label: "Return Key Label",
122
+ description:
123
+ "(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)",
124
+ editable: true,
125
+ required: false,
126
+ defaultValue: null,
127
+ formType: FORM_TYPES.string,
128
+ propType: PROP_TYPES.STRING,
129
+ },
130
+ returnKeyType: {
131
+ group: GROUPS.advanced,
132
+ label: "Return Key Type",
133
+ description: "Determines how the return key should look like",
134
+ editable: true,
135
+ required: false,
136
+ defaultValue: null,
137
+ options: [
138
+ "done",
139
+ "go",
140
+ "next",
141
+ "search",
142
+ "send",
143
+ "none",
144
+ "previous",
145
+ "default",
146
+ "emergency-call",
147
+ "google",
148
+ "join",
149
+ "route",
150
+ "yahoo",
151
+ ],
152
+ formType: FORM_TYPES.flatArray,
153
+ propType: PROP_TYPES.STRING,
154
+ },
155
+ selectionColor: {
156
+ group: GROUPS.advanced,
157
+ label: "Selection Color",
158
+ description: "Color of the highlighted portion when selecting.",
159
+ editable: true,
160
+ required: false,
161
+ defaultValue: null,
162
+ formType: FORM_TYPES.color,
163
+ propType: PROP_TYPES.STRING,
164
+ },
165
+ selectTextOnFocus: {
166
+ group: GROUPS.advanced,
167
+ label: "Select Text on Focus",
168
+ description:
169
+ "If true, all the text will automatically be selected on focus",
170
+ editable: true,
171
+ required: false,
172
+ defaultValue: null,
173
+ formType: FORM_TYPES.boolean,
174
+ propType: PROP_TYPES.BOOLEAN,
175
+ },
176
+ };
177
+
11
178
  export const SEED_DATA_PROPS = {
12
179
  style: {
13
180
  group: GROUPS.basic,
@@ -104,171 +271,7 @@ export const SEED_DATA = [
104
271
  triggers: [Triggers.OnChangeText],
105
272
  props: {
106
273
  ...SEED_DATA_PROPS,
107
- allowFontScaling: {
108
- group: GROUPS.advanced,
109
- label: "Allow Font Scaling",
110
- description:
111
- "Whether fonts should scale to respect Text Size in the user's accessibility settings. (Default: true)",
112
- editable: true,
113
- required: false,
114
- defaultValue: null,
115
- formType: FORM_TYPES.boolean,
116
- propType: PROP_TYPES.BOOLEAN,
117
- },
118
- autoFocus: {
119
- group: GROUPS.basic,
120
- label: "Auto Focus",
121
- description: "Focuses the input on load in and brings up the keyboard",
122
- editable: true,
123
- required: false,
124
- defaultValue: null,
125
- formType: FORM_TYPES.boolean,
126
- propType: PROP_TYPES.BOOLEAN,
127
- },
128
- caretHidden: {
129
- group: GROUPS.advanced,
130
- label: "Hide Caret",
131
- description:
132
- "Hides the caret(the line small line underneath each showing where you're editing/typing",
133
- editable: true,
134
- required: false,
135
- defaultValue: null,
136
- formType: FORM_TYPES.boolean,
137
- propType: PROP_TYPES.BOOLEAN,
138
- },
139
- contextMenuHidden: {
140
- group: GROUPS.advanced,
141
- label: "Hide Context Menu",
142
- description: "Hides the system context menu (Default: false)",
143
- editable: true,
144
- required: false,
145
- defaultValue: null,
146
- formType: FORM_TYPES.boolean,
147
- propType: PROP_TYPES.BOOLEAN,
148
- },
149
- editable: {
150
- group: GROUPS.advanced,
151
- label: "Editable",
152
- description: "If false, the text is not editable",
153
- editable: true,
154
- required: false,
155
- defaultValue: true,
156
- formType: FORM_TYPES.boolean,
157
- propType: PROP_TYPES.BOOLEAN,
158
- },
159
- keyboardAppearance: {
160
- group: GROUPS.advanced,
161
- label: "Keyboard Appearance",
162
- description: "Determines the color of the keyboard.(iOS Only)",
163
- editable: true,
164
- required: false,
165
- defaultValue: null,
166
- options: ["default", "light", "dark"],
167
- formType: FORM_TYPES.flatArray,
168
- propType: PROP_TYPES.STRING,
169
- },
170
- keyboardType: {
171
- group: GROUPS.advanced,
172
- label: "Keyboard Type",
173
- description: "Determines what keyboard is given to the user.",
174
- editable: true,
175
- required: false,
176
- defaultValue: null,
177
- options: ["numeric", "numbers-and-punctuation", "number-pad"],
178
- formType: FORM_TYPES.flatArray,
179
- propType: PROP_TYPES.STRING,
180
- },
181
- maxLength: {
182
- group: GROUPS.basic,
183
- label: "Max Length",
184
- description: "Limits the input to a set number of characters.",
185
- editable: true,
186
- required: false,
187
- defaultValue: null,
188
- min: 0,
189
- step: 1,
190
- precision: 0,
191
- formType: FORM_TYPES.number,
192
- propType: PROP_TYPES.NUMBER,
193
- },
194
- placeholder: {
195
- group: GROUPS.basic,
196
- label: "Placeholder Text",
197
- description:
198
- "The text that is shown on load when no value is available.",
199
- editable: true,
200
- required: false,
201
- defaultValue: "Enter a number...",
202
- formType: FORM_TYPES.string,
203
- propType: PROP_TYPES.STRING,
204
- },
205
- placeholderTextColor: {
206
- group: GROUPS.basic,
207
- label: "Placeholder Text Color",
208
- description: "The color of the placeholder text.",
209
- editable: true,
210
- required: false,
211
- defaultValue: null,
212
- formType: FORM_TYPES.color,
213
- propType: PROP_TYPES.STRING,
214
- },
215
- returnKeyLabel: {
216
- group: GROUPS.advanced,
217
- label: "Return Key Label",
218
- description:
219
- "(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)",
220
- editable: true,
221
- required: false,
222
- defaultValue: null,
223
- formType: FORM_TYPES.string,
224
- propType: PROP_TYPES.STRING,
225
- },
226
- returnKeyType: {
227
- group: GROUPS.advanced,
228
- label: "Return Key Type",
229
- description: "Determines how the return key should look like",
230
- editable: true,
231
- required: false,
232
- defaultValue: null,
233
- options: [
234
- "done",
235
- "go",
236
- "next",
237
- "search",
238
- "send",
239
- "none",
240
- "previous",
241
- "default",
242
- "emergency-call",
243
- "google",
244
- "join",
245
- "route",
246
- "yahoo",
247
- ],
248
- formType: FORM_TYPES.flatArray,
249
- propType: PROP_TYPES.STRING,
250
- },
251
- selectionColor: {
252
- group: GROUPS.advanced,
253
- label: "Selection Color",
254
- description: "Color of the highlighted portion when selecting.",
255
- editable: true,
256
- required: false,
257
- defaultValue: null,
258
- formType: FORM_TYPES.color,
259
- propType: PROP_TYPES.STRING,
260
- },
261
- selectTextOnFocus: {
262
- group: GROUPS.advanced,
263
- label: "Select Text on Focus",
264
- description:
265
- "If true, all the text will automatically be selected on focus",
266
- editable: true,
267
- required: false,
268
- defaultValue: null,
269
- formType: FORM_TYPES.boolean,
270
- propType: PROP_TYPES.BOOLEAN,
271
- },
274
+ ...NUMBER_INPUT_PROPS,
272
275
  },
273
276
  },
274
277
  ];