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