@draftbit/core 46.2.0 → 46.2.1-de631b.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 (36) hide show
  1. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +1 -1
  2. package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -14
  3. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
  4. package/lib/commonjs/mappings/ActionSheetItem.js.map +1 -1
  5. package/lib/commonjs/mappings/BlurView.js.map +1 -1
  6. package/lib/commonjs/mappings/NumberInput.js +241 -0
  7. package/lib/commonjs/mappings/NumberInput.js.map +1 -0
  8. package/lib/commonjs/mappings/RadioButton.js.map +1 -1
  9. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
  10. package/lib/commonjs/mappings/TextArea.js +181 -2
  11. package/lib/commonjs/mappings/TextArea.js.map +1 -1
  12. package/lib/commonjs/mappings/TextField.js +191 -2
  13. package/lib/commonjs/mappings/TextField.js.map +1 -1
  14. package/lib/commonjs/mappings/TextInput.js +180 -29
  15. package/lib/commonjs/mappings/TextInput.js.map +1 -1
  16. package/lib/module/mappings/NumberInput.js +231 -0
  17. package/lib/module/mappings/NumberInput.js.map +1 -0
  18. package/lib/module/mappings/TextArea.js +182 -3
  19. package/lib/module/mappings/TextArea.js.map +1 -1
  20. package/lib/module/mappings/TextField.js +192 -3
  21. package/lib/module/mappings/TextField.js.map +1 -1
  22. package/lib/module/mappings/TextInput.js +180 -29
  23. package/lib/module/mappings/TextInput.js.map +1 -1
  24. package/lib/typescript/src/mappings/NumberInput.d.ts +297 -0
  25. package/lib/typescript/src/mappings/TextArea.d.ts +1 -11
  26. package/lib/typescript/src/mappings/TextField.d.ts +4 -4
  27. package/lib/typescript/src/mappings/TextInput.d.ts +3 -254
  28. package/package.json +3 -3
  29. package/src/mappings/NumberInput.js +248 -0
  30. package/src/mappings/NumberInput.ts +267 -0
  31. package/src/mappings/TextArea.js +210 -3
  32. package/src/mappings/TextArea.ts +216 -3
  33. package/src/mappings/TextField.js +220 -3
  34. package/src/mappings/TextField.ts +227 -3
  35. package/src/mappings/TextInput.js +208 -31
  36. 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
+ }[];
@@ -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: null;
129
+ defaultValue: boolean;
140
130
  formType: string;
141
131
  propType: string;
142
132
  };
@@ -178,7 +178,7 @@ export declare const SEED_DATA: ({
178
178
  description: string;
179
179
  formType: string;
180
180
  propType: string;
181
- defaultValue: null;
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: null;
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: null;
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: null;
494
+ defaultValue: boolean;
495
495
  formType: string;
496
496
  propType: string;
497
497
  };
@@ -63,7 +63,7 @@ export declare const SEED_DATA_PROPS: {
63
63
  required: boolean;
64
64
  };
65
65
  };
66
- export declare const SEED_DATA: ({
66
+ export declare const SEED_DATA: {
67
67
  name: string;
68
68
  tag: string;
69
69
  description: string;
@@ -273,23 +273,13 @@ export declare const SEED_DATA: ({
273
273
  formType: string;
274
274
  propType: string;
275
275
  };
276
- disabled: {
277
- group: string;
278
- label: string;
279
- description: string;
280
- formType: string;
281
- propType: string;
282
- defaultValue: null;
283
- editable: boolean;
284
- required: boolean;
285
- };
286
276
  editable: {
287
277
  group: string;
288
278
  label: string;
289
279
  description: string;
290
280
  editable: boolean;
291
281
  required: boolean;
292
- defaultValue: null;
282
+ defaultValue: boolean;
293
283
  formType: string;
294
284
  propType: string;
295
285
  };
@@ -400,245 +390,4 @@ export declare const SEED_DATA: ({
400
390
  propType: string;
401
391
  };
402
392
  };
403
- } | {
404
- name: string;
405
- tag: string;
406
- description: string;
407
- category: string;
408
- preview_image_url: string;
409
- supports_list_render: boolean;
410
- layout: {
411
- borderLeftWidth: number;
412
- borderRightWidth: number;
413
- borderTopWidth: number;
414
- borderBottomWidth: number;
415
- borderColor: string;
416
- paddingLeft: number;
417
- paddingRight: number;
418
- paddingTop: number;
419
- paddingBottom: number;
420
- borderRadius: number;
421
- };
422
- triggers: string[];
423
- props: {
424
- fieldName: {
425
- handlerPropName: string;
426
- group: string;
427
- label: string;
428
- description: string;
429
- formType: string;
430
- propType: string;
431
- defaultValue: string;
432
- valuePropName: string;
433
- editable: boolean;
434
- required: boolean;
435
- };
436
- allowFontScaling: {
437
- group: string;
438
- label: string;
439
- description: string;
440
- editable: boolean;
441
- required: boolean;
442
- defaultValue: null;
443
- formType: string;
444
- propType: string;
445
- };
446
- autoFocus: {
447
- group: string;
448
- label: string;
449
- description: string;
450
- editable: boolean;
451
- required: boolean;
452
- defaultValue: null;
453
- formType: string;
454
- propType: string;
455
- };
456
- caretHidden: {
457
- group: string;
458
- label: string;
459
- description: string;
460
- editable: boolean;
461
- required: boolean;
462
- defaultValue: null;
463
- formType: string;
464
- propType: string;
465
- };
466
- contextMenuHidden: {
467
- group: string;
468
- label: string;
469
- description: string;
470
- editable: boolean;
471
- required: boolean;
472
- defaultValue: null;
473
- formType: string;
474
- propType: string;
475
- };
476
- disabled: {
477
- group: string;
478
- label: string;
479
- description: string;
480
- formType: string;
481
- propType: string;
482
- defaultValue: null;
483
- editable: boolean;
484
- required: boolean;
485
- };
486
- editable: {
487
- group: string;
488
- label: string;
489
- description: string;
490
- editable: boolean;
491
- required: boolean;
492
- defaultValue: null;
493
- formType: string;
494
- propType: string;
495
- };
496
- keyboardAppearance: {
497
- group: string;
498
- label: string;
499
- description: string;
500
- editable: boolean;
501
- required: boolean;
502
- defaultValue: null;
503
- options: string[];
504
- formType: string;
505
- propType: string;
506
- };
507
- keyboardType: {
508
- group: string;
509
- label: string;
510
- description: string;
511
- editable: boolean;
512
- required: boolean;
513
- defaultValue: null;
514
- options: string[];
515
- formType: string;
516
- propType: string;
517
- };
518
- maxLength: {
519
- group: string;
520
- label: string;
521
- description: string;
522
- editable: boolean;
523
- required: boolean;
524
- defaultValue: null;
525
- min: number;
526
- step: number;
527
- precision: number;
528
- formType: string;
529
- propType: string;
530
- };
531
- placeholder: {
532
- group: string;
533
- label: string;
534
- description: string;
535
- editable: boolean;
536
- required: boolean;
537
- defaultValue: string;
538
- formType: string;
539
- propType: string;
540
- };
541
- placeholderTextColor: {
542
- group: string;
543
- label: string;
544
- description: string;
545
- editable: boolean;
546
- required: boolean;
547
- defaultValue: null;
548
- formType: string;
549
- propType: string;
550
- };
551
- returnKeyLabel: {
552
- group: string;
553
- label: string;
554
- description: string;
555
- editable: boolean;
556
- required: boolean;
557
- defaultValue: null;
558
- formType: string;
559
- propType: string;
560
- };
561
- returnKeyType: {
562
- group: string;
563
- label: string;
564
- description: string;
565
- editable: boolean;
566
- required: boolean;
567
- defaultValue: null;
568
- options: string[];
569
- formType: string;
570
- propType: string;
571
- };
572
- selectionColor: {
573
- group: string;
574
- label: string;
575
- description: string;
576
- editable: boolean;
577
- required: boolean;
578
- defaultValue: null;
579
- formType: string;
580
- propType: string;
581
- };
582
- selectTextOnFocus: {
583
- group: string;
584
- label: string;
585
- description: string;
586
- editable: boolean;
587
- required: boolean;
588
- defaultValue: null;
589
- formType: string;
590
- propType: string;
591
- };
592
- style: {
593
- group: string;
594
- label: string;
595
- description: string;
596
- editable: boolean;
597
- required: boolean;
598
- formType: string;
599
- propType: string;
600
- defaultValue: null;
601
- };
602
- clearButtonMode: {
603
- group: string;
604
- label: string;
605
- description: string;
606
- editable: boolean;
607
- required: boolean;
608
- options: string[];
609
- defaultValue: null;
610
- formType: string;
611
- propType: string;
612
- };
613
- clearTextOnFocus: {
614
- group: string;
615
- label: string;
616
- description: string;
617
- editable: boolean;
618
- required: boolean;
619
- defaultValue: null;
620
- formType: string;
621
- propType: string;
622
- };
623
- enablesReturnKeyAutomatically: {
624
- group: string;
625
- label: string;
626
- description: string;
627
- editable: boolean;
628
- required: boolean;
629
- defaultValue: null;
630
- formType: string;
631
- propType: string;
632
- };
633
- underlineColorAndroid: {
634
- group: string;
635
- label: string;
636
- description: string;
637
- editable: boolean;
638
- required: boolean;
639
- defaultValue: null;
640
- formType: string;
641
- propType: string;
642
- };
643
- };
644
- })[];
393
+ }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.2.0",
3
+ "version": "46.2.1-de631b.0+de631bf2",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@date-io/date-fns": "^1.3.13",
43
43
  "@draftbit/react-theme-provider": "^2.1.1",
44
- "@draftbit/types": "^46.1.4",
44
+ "@draftbit/types": "^46.2.1-de631b.0+de631bf2",
45
45
  "@material-ui/core": "^4.11.0",
46
46
  "@material-ui/pickers": "^3.2.10",
47
47
  "@react-native-community/slider": "4.2.3",
@@ -79,5 +79,5 @@
79
79
  ]
80
80
  ]
81
81
  },
82
- "gitHead": "6928bf4d50679f6627255134daab0fb074881036"
82
+ "gitHead": "de631bf2173e01c451099324b4f2d92cfbce2820"
83
83
  }