@draftbit/core 46.2.0 → 46.2.1-327d47.2
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/CardBlock.js +15 -5
- package/lib/commonjs/components/CardBlock.js.map +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +2 -4
- package/lib/commonjs/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +23 -6
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +1 -1
- package/lib/commonjs/components/Checkbox/context.js +1 -1
- package/lib/commonjs/components/Checkbox/context.js.map +1 -1
- package/lib/commonjs/components/CircleImage.js +17 -3
- package/lib/commonjs/components/CircleImage.js.map +1 -1
- package/lib/commonjs/components/Config.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +7 -8
- package/lib/commonjs/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +1 -1
- package/lib/commonjs/components/DeprecatedButton.js +4 -20
- package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
- package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -14
- package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
- package/lib/commonjs/components/DeprecatedFAB.js +21 -4
- package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
- package/lib/commonjs/components/HeaderLarge.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +17 -5
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/components/Swiper/SwiperItem.js.map +1 -1
- package/lib/commonjs/components/Text.js +38 -11
- package/lib/commonjs/components/Text.js.map +1 -1
- package/lib/commonjs/mappings/ActionSheetItem.js.map +1 -1
- package/lib/commonjs/mappings/BlurView.js.map +1 -1
- package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
- package/lib/commonjs/mappings/Checkbox.js.map +1 -1
- package/lib/commonjs/mappings/NumberInput.js +241 -0
- package/lib/commonjs/mappings/NumberInput.js.map +1 -0
- package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
- package/lib/commonjs/mappings/Text.js +33 -26
- package/lib/commonjs/mappings/Text.js.map +1 -1
- package/lib/commonjs/mappings/TextArea.js +192 -2
- package/lib/commonjs/mappings/TextArea.js.map +1 -1
- package/lib/commonjs/mappings/TextField.js +191 -2
- package/lib/commonjs/mappings/TextField.js.map +1 -1
- package/lib/commonjs/mappings/TextInput.js +180 -29
- package/lib/commonjs/mappings/TextInput.js.map +1 -1
- package/lib/commonjs/mappings/Video.js.map +1 -1
- package/lib/commonjs/styles/DarkTheme.js.map +1 -1
- package/lib/module/components/DatePicker/DatePickerComponent.js.map +1 -1
- package/lib/module/mappings/NumberInput.js +231 -0
- package/lib/module/mappings/NumberInput.js.map +1 -0
- package/lib/module/mappings/Surface.js.map +1 -1
- package/lib/module/mappings/Text.js +33 -26
- package/lib/module/mappings/Text.js.map +1 -1
- package/lib/module/mappings/TextArea.js +193 -3
- package/lib/module/mappings/TextArea.js.map +1 -1
- package/lib/module/mappings/TextField.js +192 -3
- package/lib/module/mappings/TextField.js.map +1 -1
- package/lib/module/mappings/TextInput.js +180 -29
- package/lib/module/mappings/TextInput.js.map +1 -1
- package/lib/typescript/src/mappings/NumberInput.d.ts +297 -0
- package/lib/typescript/src/mappings/Text.d.ts +24 -10
- package/lib/typescript/src/mappings/TextArea.d.ts +12 -11
- package/lib/typescript/src/mappings/TextField.d.ts +4 -4
- package/lib/typescript/src/mappings/TextInput.d.ts +3 -254
- package/package.json +2 -2
- package/src/mappings/NumberInput.js +248 -0
- package/src/mappings/NumberInput.ts +267 -0
- package/src/mappings/Text.js +33 -26
- package/src/mappings/Text.ts +34 -27
- package/src/mappings/TextArea.js +221 -3
- package/src/mappings/TextArea.ts +227 -3
- package/src/mappings/TextField.js +220 -3
- package/src/mappings/TextField.ts +227 -3
- package/src/mappings/TextInput.js +208 -31
- package/src/mappings/TextInput.ts +214 -34
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
export declare const SEED_DATA_PROPS: {
|
|
2
|
+
style: {
|
|
3
|
+
group: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
editable: boolean;
|
|
7
|
+
required: boolean;
|
|
8
|
+
formType: string;
|
|
9
|
+
propType: string;
|
|
10
|
+
defaultValue: null;
|
|
11
|
+
};
|
|
12
|
+
clearButtonMode: {
|
|
13
|
+
group: string;
|
|
14
|
+
label: string;
|
|
15
|
+
description: string;
|
|
16
|
+
editable: boolean;
|
|
17
|
+
required: boolean;
|
|
18
|
+
options: string[];
|
|
19
|
+
defaultValue: null;
|
|
20
|
+
formType: string;
|
|
21
|
+
propType: string;
|
|
22
|
+
};
|
|
23
|
+
clearTextOnFocus: {
|
|
24
|
+
group: string;
|
|
25
|
+
label: string;
|
|
26
|
+
description: string;
|
|
27
|
+
editable: boolean;
|
|
28
|
+
required: boolean;
|
|
29
|
+
defaultValue: null;
|
|
30
|
+
formType: string;
|
|
31
|
+
propType: string;
|
|
32
|
+
};
|
|
33
|
+
enablesReturnKeyAutomatically: {
|
|
34
|
+
group: string;
|
|
35
|
+
label: string;
|
|
36
|
+
description: string;
|
|
37
|
+
editable: boolean;
|
|
38
|
+
required: boolean;
|
|
39
|
+
defaultValue: null;
|
|
40
|
+
formType: string;
|
|
41
|
+
propType: string;
|
|
42
|
+
};
|
|
43
|
+
underlineColorAndroid: {
|
|
44
|
+
group: string;
|
|
45
|
+
label: string;
|
|
46
|
+
description: string;
|
|
47
|
+
editable: boolean;
|
|
48
|
+
required: boolean;
|
|
49
|
+
defaultValue: null;
|
|
50
|
+
formType: string;
|
|
51
|
+
propType: string;
|
|
52
|
+
};
|
|
53
|
+
fieldName: {
|
|
54
|
+
defaultValue: string;
|
|
55
|
+
handlerPropName: string;
|
|
56
|
+
group: string;
|
|
57
|
+
label: string;
|
|
58
|
+
description: string;
|
|
59
|
+
formType: string;
|
|
60
|
+
propType: string;
|
|
61
|
+
valuePropName: string;
|
|
62
|
+
editable: boolean;
|
|
63
|
+
required: boolean;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare const SEED_DATA: {
|
|
67
|
+
name: string;
|
|
68
|
+
tag: string;
|
|
69
|
+
description: string;
|
|
70
|
+
category: string;
|
|
71
|
+
preview_image_url: string;
|
|
72
|
+
supports_list_render: boolean;
|
|
73
|
+
layout: {
|
|
74
|
+
borderLeftWidth: number;
|
|
75
|
+
borderRightWidth: number;
|
|
76
|
+
borderTopWidth: number;
|
|
77
|
+
borderBottomWidth: number;
|
|
78
|
+
borderColor: string;
|
|
79
|
+
paddingLeft: number;
|
|
80
|
+
paddingRight: number;
|
|
81
|
+
paddingTop: number;
|
|
82
|
+
paddingBottom: number;
|
|
83
|
+
borderRadius: number;
|
|
84
|
+
};
|
|
85
|
+
triggers: string[];
|
|
86
|
+
props: {
|
|
87
|
+
allowFontScaling: {
|
|
88
|
+
group: string;
|
|
89
|
+
label: string;
|
|
90
|
+
description: string;
|
|
91
|
+
editable: boolean;
|
|
92
|
+
required: boolean;
|
|
93
|
+
defaultValue: null;
|
|
94
|
+
formType: string;
|
|
95
|
+
propType: string;
|
|
96
|
+
};
|
|
97
|
+
autoFocus: {
|
|
98
|
+
group: string;
|
|
99
|
+
label: string;
|
|
100
|
+
description: string;
|
|
101
|
+
editable: boolean;
|
|
102
|
+
required: boolean;
|
|
103
|
+
defaultValue: null;
|
|
104
|
+
formType: string;
|
|
105
|
+
propType: string;
|
|
106
|
+
};
|
|
107
|
+
caretHidden: {
|
|
108
|
+
group: string;
|
|
109
|
+
label: string;
|
|
110
|
+
description: string;
|
|
111
|
+
editable: boolean;
|
|
112
|
+
required: boolean;
|
|
113
|
+
defaultValue: null;
|
|
114
|
+
formType: string;
|
|
115
|
+
propType: string;
|
|
116
|
+
};
|
|
117
|
+
contextMenuHidden: {
|
|
118
|
+
group: string;
|
|
119
|
+
label: string;
|
|
120
|
+
description: string;
|
|
121
|
+
editable: boolean;
|
|
122
|
+
required: boolean;
|
|
123
|
+
defaultValue: null;
|
|
124
|
+
formType: string;
|
|
125
|
+
propType: string;
|
|
126
|
+
};
|
|
127
|
+
editable: {
|
|
128
|
+
group: string;
|
|
129
|
+
label: string;
|
|
130
|
+
description: string;
|
|
131
|
+
editable: boolean;
|
|
132
|
+
required: boolean;
|
|
133
|
+
defaultValue: boolean;
|
|
134
|
+
formType: string;
|
|
135
|
+
propType: string;
|
|
136
|
+
};
|
|
137
|
+
keyboardAppearance: {
|
|
138
|
+
group: string;
|
|
139
|
+
label: string;
|
|
140
|
+
description: string;
|
|
141
|
+
editable: boolean;
|
|
142
|
+
required: boolean;
|
|
143
|
+
defaultValue: null;
|
|
144
|
+
options: string[];
|
|
145
|
+
formType: string;
|
|
146
|
+
propType: string;
|
|
147
|
+
};
|
|
148
|
+
keyboardType: {
|
|
149
|
+
group: string;
|
|
150
|
+
label: string;
|
|
151
|
+
description: string;
|
|
152
|
+
editable: boolean;
|
|
153
|
+
required: boolean;
|
|
154
|
+
defaultValue: null;
|
|
155
|
+
options: string[];
|
|
156
|
+
formType: string;
|
|
157
|
+
propType: string;
|
|
158
|
+
};
|
|
159
|
+
maxLength: {
|
|
160
|
+
group: string;
|
|
161
|
+
label: string;
|
|
162
|
+
description: string;
|
|
163
|
+
editable: boolean;
|
|
164
|
+
required: boolean;
|
|
165
|
+
defaultValue: null;
|
|
166
|
+
min: number;
|
|
167
|
+
step: number;
|
|
168
|
+
precision: number;
|
|
169
|
+
formType: string;
|
|
170
|
+
propType: string;
|
|
171
|
+
};
|
|
172
|
+
placeholder: {
|
|
173
|
+
group: string;
|
|
174
|
+
label: string;
|
|
175
|
+
description: string;
|
|
176
|
+
editable: boolean;
|
|
177
|
+
required: boolean;
|
|
178
|
+
defaultValue: string;
|
|
179
|
+
formType: string;
|
|
180
|
+
propType: string;
|
|
181
|
+
};
|
|
182
|
+
placeholderTextColor: {
|
|
183
|
+
group: string;
|
|
184
|
+
label: string;
|
|
185
|
+
description: string;
|
|
186
|
+
editable: boolean;
|
|
187
|
+
required: boolean;
|
|
188
|
+
defaultValue: null;
|
|
189
|
+
formType: string;
|
|
190
|
+
propType: string;
|
|
191
|
+
};
|
|
192
|
+
returnKeyLabel: {
|
|
193
|
+
group: string;
|
|
194
|
+
label: string;
|
|
195
|
+
description: string;
|
|
196
|
+
editable: boolean;
|
|
197
|
+
required: boolean;
|
|
198
|
+
defaultValue: null;
|
|
199
|
+
formType: string;
|
|
200
|
+
propType: string;
|
|
201
|
+
};
|
|
202
|
+
returnKeyType: {
|
|
203
|
+
group: string;
|
|
204
|
+
label: string;
|
|
205
|
+
description: string;
|
|
206
|
+
editable: boolean;
|
|
207
|
+
required: boolean;
|
|
208
|
+
defaultValue: null;
|
|
209
|
+
options: string[];
|
|
210
|
+
formType: string;
|
|
211
|
+
propType: string;
|
|
212
|
+
};
|
|
213
|
+
selectionColor: {
|
|
214
|
+
group: string;
|
|
215
|
+
label: string;
|
|
216
|
+
description: string;
|
|
217
|
+
editable: boolean;
|
|
218
|
+
required: boolean;
|
|
219
|
+
defaultValue: null;
|
|
220
|
+
formType: string;
|
|
221
|
+
propType: string;
|
|
222
|
+
};
|
|
223
|
+
selectTextOnFocus: {
|
|
224
|
+
group: string;
|
|
225
|
+
label: string;
|
|
226
|
+
description: string;
|
|
227
|
+
editable: boolean;
|
|
228
|
+
required: boolean;
|
|
229
|
+
defaultValue: null;
|
|
230
|
+
formType: string;
|
|
231
|
+
propType: string;
|
|
232
|
+
};
|
|
233
|
+
style: {
|
|
234
|
+
group: string;
|
|
235
|
+
label: string;
|
|
236
|
+
description: string;
|
|
237
|
+
editable: boolean;
|
|
238
|
+
required: boolean;
|
|
239
|
+
formType: string;
|
|
240
|
+
propType: string;
|
|
241
|
+
defaultValue: null;
|
|
242
|
+
};
|
|
243
|
+
clearButtonMode: {
|
|
244
|
+
group: string;
|
|
245
|
+
label: string;
|
|
246
|
+
description: string;
|
|
247
|
+
editable: boolean;
|
|
248
|
+
required: boolean;
|
|
249
|
+
options: string[];
|
|
250
|
+
defaultValue: null;
|
|
251
|
+
formType: string;
|
|
252
|
+
propType: string;
|
|
253
|
+
};
|
|
254
|
+
clearTextOnFocus: {
|
|
255
|
+
group: string;
|
|
256
|
+
label: string;
|
|
257
|
+
description: string;
|
|
258
|
+
editable: boolean;
|
|
259
|
+
required: boolean;
|
|
260
|
+
defaultValue: null;
|
|
261
|
+
formType: string;
|
|
262
|
+
propType: string;
|
|
263
|
+
};
|
|
264
|
+
enablesReturnKeyAutomatically: {
|
|
265
|
+
group: string;
|
|
266
|
+
label: string;
|
|
267
|
+
description: string;
|
|
268
|
+
editable: boolean;
|
|
269
|
+
required: boolean;
|
|
270
|
+
defaultValue: null;
|
|
271
|
+
formType: string;
|
|
272
|
+
propType: string;
|
|
273
|
+
};
|
|
274
|
+
underlineColorAndroid: {
|
|
275
|
+
group: string;
|
|
276
|
+
label: string;
|
|
277
|
+
description: string;
|
|
278
|
+
editable: boolean;
|
|
279
|
+
required: boolean;
|
|
280
|
+
defaultValue: null;
|
|
281
|
+
formType: string;
|
|
282
|
+
propType: string;
|
|
283
|
+
};
|
|
284
|
+
fieldName: {
|
|
285
|
+
defaultValue: string;
|
|
286
|
+
handlerPropName: string;
|
|
287
|
+
group: string;
|
|
288
|
+
label: string;
|
|
289
|
+
description: string;
|
|
290
|
+
formType: string;
|
|
291
|
+
propType: string;
|
|
292
|
+
valuePropName: string;
|
|
293
|
+
editable: boolean;
|
|
294
|
+
required: boolean;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
}[];
|
|
@@ -28,6 +28,17 @@ export declare const SEED_DATA: ({
|
|
|
28
28
|
propType: string;
|
|
29
29
|
defaultValue: null;
|
|
30
30
|
};
|
|
31
|
+
accessibilityHint: {
|
|
32
|
+
group: string;
|
|
33
|
+
name: string;
|
|
34
|
+
label: string;
|
|
35
|
+
description: string;
|
|
36
|
+
editable: boolean;
|
|
37
|
+
required: boolean;
|
|
38
|
+
formType: string;
|
|
39
|
+
propType: string;
|
|
40
|
+
defaultValue: null;
|
|
41
|
+
};
|
|
31
42
|
accessibilityRole: {
|
|
32
43
|
group: string;
|
|
33
44
|
name: string;
|
|
@@ -119,7 +130,7 @@ export declare const SEED_DATA: ({
|
|
|
119
130
|
propType: string;
|
|
120
131
|
defaultValue: null;
|
|
121
132
|
};
|
|
122
|
-
|
|
133
|
+
nativeID: {
|
|
123
134
|
group: string;
|
|
124
135
|
name: string;
|
|
125
136
|
label: string;
|
|
@@ -128,10 +139,6 @@ export declare const SEED_DATA: ({
|
|
|
128
139
|
required: boolean;
|
|
129
140
|
formType: string;
|
|
130
141
|
propType: string;
|
|
131
|
-
min: number;
|
|
132
|
-
step: number;
|
|
133
|
-
precision: number;
|
|
134
|
-
max: number;
|
|
135
142
|
defaultValue: null;
|
|
136
143
|
};
|
|
137
144
|
numberOfLines: {
|
|
@@ -225,6 +232,17 @@ export declare const SEED_DATA: ({
|
|
|
225
232
|
propType: string;
|
|
226
233
|
defaultValue: null;
|
|
227
234
|
};
|
|
235
|
+
accessibilityHint: {
|
|
236
|
+
group: string;
|
|
237
|
+
name: string;
|
|
238
|
+
label: string;
|
|
239
|
+
description: string;
|
|
240
|
+
editable: boolean;
|
|
241
|
+
required: boolean;
|
|
242
|
+
formType: string;
|
|
243
|
+
propType: string;
|
|
244
|
+
defaultValue: null;
|
|
245
|
+
};
|
|
228
246
|
accessibilityRole: {
|
|
229
247
|
group: string;
|
|
230
248
|
name: string;
|
|
@@ -316,7 +334,7 @@ export declare const SEED_DATA: ({
|
|
|
316
334
|
propType: string;
|
|
317
335
|
defaultValue: null;
|
|
318
336
|
};
|
|
319
|
-
|
|
337
|
+
nativeID: {
|
|
320
338
|
group: string;
|
|
321
339
|
name: string;
|
|
322
340
|
label: string;
|
|
@@ -325,10 +343,6 @@ export declare const SEED_DATA: ({
|
|
|
325
343
|
required: boolean;
|
|
326
344
|
formType: string;
|
|
327
345
|
propType: string;
|
|
328
|
-
min: number;
|
|
329
|
-
step: number;
|
|
330
|
-
precision: number;
|
|
331
|
-
max: number;
|
|
332
346
|
defaultValue: null;
|
|
333
347
|
};
|
|
334
348
|
numberOfLines: {
|
|
@@ -120,23 +120,13 @@ export declare const SEED_DATA: {
|
|
|
120
120
|
formType: string;
|
|
121
121
|
propType: string;
|
|
122
122
|
};
|
|
123
|
-
disabled: {
|
|
124
|
-
group: string;
|
|
125
|
-
label: string;
|
|
126
|
-
description: string;
|
|
127
|
-
formType: string;
|
|
128
|
-
propType: string;
|
|
129
|
-
defaultValue: null;
|
|
130
|
-
editable: boolean;
|
|
131
|
-
required: boolean;
|
|
132
|
-
};
|
|
133
123
|
editable: {
|
|
134
124
|
group: string;
|
|
135
125
|
label: string;
|
|
136
126
|
description: string;
|
|
137
127
|
editable: boolean;
|
|
138
128
|
required: boolean;
|
|
139
|
-
defaultValue:
|
|
129
|
+
defaultValue: boolean;
|
|
140
130
|
formType: string;
|
|
141
131
|
propType: string;
|
|
142
132
|
};
|
|
@@ -236,5 +226,16 @@ export declare const SEED_DATA: {
|
|
|
236
226
|
formType: string;
|
|
237
227
|
propType: string;
|
|
238
228
|
};
|
|
229
|
+
textAlignVertical: {
|
|
230
|
+
group: string;
|
|
231
|
+
label: string;
|
|
232
|
+
description: string;
|
|
233
|
+
options: string[];
|
|
234
|
+
editable: boolean;
|
|
235
|
+
required: boolean;
|
|
236
|
+
defaultValue: string;
|
|
237
|
+
formType: string;
|
|
238
|
+
propType: string;
|
|
239
|
+
};
|
|
239
240
|
};
|
|
240
241
|
};
|
|
@@ -178,7 +178,7 @@ export declare const SEED_DATA: ({
|
|
|
178
178
|
description: string;
|
|
179
179
|
formType: string;
|
|
180
180
|
propType: string;
|
|
181
|
-
defaultValue:
|
|
181
|
+
defaultValue: boolean;
|
|
182
182
|
editable: boolean;
|
|
183
183
|
required: boolean;
|
|
184
184
|
};
|
|
@@ -188,7 +188,7 @@ export declare const SEED_DATA: ({
|
|
|
188
188
|
description: string;
|
|
189
189
|
editable: boolean;
|
|
190
190
|
required: boolean;
|
|
191
|
-
defaultValue:
|
|
191
|
+
defaultValue: boolean;
|
|
192
192
|
formType: string;
|
|
193
193
|
propType: string;
|
|
194
194
|
};
|
|
@@ -481,7 +481,7 @@ export declare const SEED_DATA: ({
|
|
|
481
481
|
description: string;
|
|
482
482
|
formType: string;
|
|
483
483
|
propType: string;
|
|
484
|
-
defaultValue:
|
|
484
|
+
defaultValue: boolean;
|
|
485
485
|
editable: boolean;
|
|
486
486
|
required: boolean;
|
|
487
487
|
};
|
|
@@ -491,7 +491,7 @@ export declare const SEED_DATA: ({
|
|
|
491
491
|
description: string;
|
|
492
492
|
editable: boolean;
|
|
493
493
|
required: boolean;
|
|
494
|
-
defaultValue:
|
|
494
|
+
defaultValue: boolean;
|
|
495
495
|
formType: string;
|
|
496
496
|
propType: string;
|
|
497
497
|
};
|