@draftbit/core 46.2.2-da5d03.1 → 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/CardContainerRating.js +0 -1
- package/lib/commonjs/constants.js +1 -1
- 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/components/CardContainerRating.js +1 -2
- package/lib/module/constants.js +0 -1
- 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 +3 -3
- package/src/components/CardContainerRating.js +0 -1
- package/src/components/CardContainerRating.tsx +0 -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
|
@@ -38,79 +38,6 @@ export declare const SEED_DATA: ({
|
|
|
38
38
|
editable: boolean;
|
|
39
39
|
required: boolean;
|
|
40
40
|
};
|
|
41
|
-
label: {
|
|
42
|
-
group: string;
|
|
43
|
-
label: string;
|
|
44
|
-
description: string;
|
|
45
|
-
formType: string;
|
|
46
|
-
propType: string;
|
|
47
|
-
defaultValue: null;
|
|
48
|
-
editable: boolean;
|
|
49
|
-
required: boolean;
|
|
50
|
-
};
|
|
51
|
-
assistiveText: {
|
|
52
|
-
group: string;
|
|
53
|
-
label: string;
|
|
54
|
-
description: string;
|
|
55
|
-
formType: string;
|
|
56
|
-
propType: string;
|
|
57
|
-
defaultValue: null;
|
|
58
|
-
editable: boolean;
|
|
59
|
-
required: boolean;
|
|
60
|
-
};
|
|
61
|
-
error: {
|
|
62
|
-
group: string;
|
|
63
|
-
label: string;
|
|
64
|
-
description: string;
|
|
65
|
-
formType: string;
|
|
66
|
-
propType: string;
|
|
67
|
-
defaultValue: null;
|
|
68
|
-
editable: boolean;
|
|
69
|
-
required: boolean;
|
|
70
|
-
};
|
|
71
|
-
leftIconName: {
|
|
72
|
-
group: string;
|
|
73
|
-
label: string;
|
|
74
|
-
description: string;
|
|
75
|
-
formType: string;
|
|
76
|
-
propType: string;
|
|
77
|
-
defaultValue: null;
|
|
78
|
-
editable: boolean;
|
|
79
|
-
required: boolean;
|
|
80
|
-
};
|
|
81
|
-
leftIconMode: {
|
|
82
|
-
group: string;
|
|
83
|
-
label: string;
|
|
84
|
-
description: string;
|
|
85
|
-
formType: string;
|
|
86
|
-
propType: string;
|
|
87
|
-
defaultValue: null;
|
|
88
|
-
options: string[];
|
|
89
|
-
editable: boolean;
|
|
90
|
-
required: boolean;
|
|
91
|
-
};
|
|
92
|
-
rightIconName: {
|
|
93
|
-
group: string;
|
|
94
|
-
label: string;
|
|
95
|
-
description: string;
|
|
96
|
-
formType: string;
|
|
97
|
-
propType: string;
|
|
98
|
-
defaultValue: null;
|
|
99
|
-
editable: boolean;
|
|
100
|
-
required: boolean;
|
|
101
|
-
};
|
|
102
|
-
fieldName: {
|
|
103
|
-
handlerPropName: string;
|
|
104
|
-
defaultValue: string;
|
|
105
|
-
group: string;
|
|
106
|
-
label: string;
|
|
107
|
-
description: string;
|
|
108
|
-
formType: string;
|
|
109
|
-
propType: string;
|
|
110
|
-
valuePropName: string;
|
|
111
|
-
editable: boolean;
|
|
112
|
-
required: boolean;
|
|
113
|
-
};
|
|
114
41
|
allowFontScaling: {
|
|
115
42
|
group: string;
|
|
116
43
|
label: string;
|
|
@@ -288,74 +215,58 @@ export declare const SEED_DATA: ({
|
|
|
288
215
|
formType: string;
|
|
289
216
|
propType: string;
|
|
290
217
|
};
|
|
291
|
-
|
|
292
|
-
layout: {};
|
|
293
|
-
stylesPanelSections?: undefined;
|
|
294
|
-
} | {
|
|
295
|
-
name: string;
|
|
296
|
-
tag: string;
|
|
297
|
-
description: string;
|
|
298
|
-
category: string;
|
|
299
|
-
stylesPanelSections: string[];
|
|
300
|
-
preview_image_url: string;
|
|
301
|
-
supports_list_render: boolean;
|
|
302
|
-
triggers: string[];
|
|
303
|
-
props: {
|
|
304
|
-
placeholder: {
|
|
305
|
-
defaultValue: string;
|
|
218
|
+
label: {
|
|
306
219
|
group: string;
|
|
307
220
|
label: string;
|
|
308
221
|
description: string;
|
|
309
|
-
editable: boolean;
|
|
310
|
-
required: boolean;
|
|
311
222
|
formType: string;
|
|
312
223
|
propType: string;
|
|
224
|
+
defaultValue: null;
|
|
225
|
+
editable: boolean;
|
|
226
|
+
required: boolean;
|
|
313
227
|
};
|
|
314
|
-
|
|
228
|
+
assistiveText: {
|
|
229
|
+
group: string;
|
|
315
230
|
label: string;
|
|
316
231
|
description: string;
|
|
317
232
|
formType: string;
|
|
318
233
|
propType: string;
|
|
319
|
-
defaultValue:
|
|
320
|
-
options: string[];
|
|
234
|
+
defaultValue: null;
|
|
321
235
|
editable: boolean;
|
|
322
236
|
required: boolean;
|
|
323
|
-
group: string;
|
|
324
237
|
};
|
|
325
|
-
|
|
238
|
+
error: {
|
|
239
|
+
group: string;
|
|
326
240
|
label: string;
|
|
327
241
|
description: string;
|
|
328
|
-
group: string;
|
|
329
242
|
formType: string;
|
|
330
243
|
propType: string;
|
|
331
|
-
defaultValue:
|
|
244
|
+
defaultValue: null;
|
|
332
245
|
editable: boolean;
|
|
333
246
|
required: boolean;
|
|
334
247
|
};
|
|
335
|
-
|
|
248
|
+
leftIconName: {
|
|
249
|
+
group: string;
|
|
336
250
|
label: string;
|
|
337
251
|
description: string;
|
|
338
252
|
formType: string;
|
|
339
253
|
propType: string;
|
|
340
|
-
group: string;
|
|
341
254
|
defaultValue: null;
|
|
342
255
|
editable: boolean;
|
|
343
256
|
required: boolean;
|
|
344
|
-
step: number;
|
|
345
257
|
};
|
|
346
|
-
|
|
347
|
-
handlerPropName: string;
|
|
258
|
+
leftIconMode: {
|
|
348
259
|
group: string;
|
|
349
260
|
label: string;
|
|
350
261
|
description: string;
|
|
351
262
|
formType: string;
|
|
352
263
|
propType: string;
|
|
353
|
-
defaultValue:
|
|
354
|
-
|
|
264
|
+
defaultValue: null;
|
|
265
|
+
options: string[];
|
|
355
266
|
editable: boolean;
|
|
356
267
|
required: boolean;
|
|
357
268
|
};
|
|
358
|
-
|
|
269
|
+
rightIconName: {
|
|
359
270
|
group: string;
|
|
360
271
|
label: string;
|
|
361
272
|
description: string;
|
|
@@ -365,54 +276,72 @@ export declare const SEED_DATA: ({
|
|
|
365
276
|
editable: boolean;
|
|
366
277
|
required: boolean;
|
|
367
278
|
};
|
|
368
|
-
|
|
279
|
+
fieldName: {
|
|
280
|
+
handlerPropName: string;
|
|
281
|
+
defaultValue: string;
|
|
369
282
|
group: string;
|
|
370
283
|
label: string;
|
|
371
284
|
description: string;
|
|
372
285
|
formType: string;
|
|
373
286
|
propType: string;
|
|
374
|
-
|
|
287
|
+
valuePropName: string;
|
|
375
288
|
editable: boolean;
|
|
376
289
|
required: boolean;
|
|
377
290
|
};
|
|
378
|
-
|
|
379
|
-
|
|
291
|
+
};
|
|
292
|
+
layout: {};
|
|
293
|
+
stylesPanelSections?: undefined;
|
|
294
|
+
} | {
|
|
295
|
+
name: string;
|
|
296
|
+
tag: string;
|
|
297
|
+
description: string;
|
|
298
|
+
category: string;
|
|
299
|
+
stylesPanelSections: string[];
|
|
300
|
+
preview_image_url: string;
|
|
301
|
+
supports_list_render: boolean;
|
|
302
|
+
triggers: string[];
|
|
303
|
+
props: {
|
|
304
|
+
type: {
|
|
380
305
|
label: string;
|
|
381
306
|
description: string;
|
|
382
307
|
formType: string;
|
|
383
308
|
propType: string;
|
|
384
|
-
defaultValue:
|
|
309
|
+
defaultValue: string;
|
|
310
|
+
options: string[];
|
|
385
311
|
editable: boolean;
|
|
386
312
|
required: boolean;
|
|
387
|
-
};
|
|
388
|
-
leftIconName: {
|
|
389
313
|
group: string;
|
|
314
|
+
};
|
|
315
|
+
multiline: {
|
|
390
316
|
label: string;
|
|
391
317
|
description: string;
|
|
318
|
+
group: string;
|
|
392
319
|
formType: string;
|
|
393
320
|
propType: string;
|
|
394
|
-
defaultValue:
|
|
321
|
+
defaultValue: boolean;
|
|
395
322
|
editable: boolean;
|
|
396
323
|
required: boolean;
|
|
397
324
|
};
|
|
398
|
-
|
|
399
|
-
group: string;
|
|
325
|
+
numberOfLines: {
|
|
400
326
|
label: string;
|
|
401
327
|
description: string;
|
|
402
328
|
formType: string;
|
|
403
329
|
propType: string;
|
|
330
|
+
group: string;
|
|
404
331
|
defaultValue: null;
|
|
405
|
-
options: string[];
|
|
406
332
|
editable: boolean;
|
|
407
333
|
required: boolean;
|
|
334
|
+
step: number;
|
|
408
335
|
};
|
|
409
|
-
|
|
336
|
+
fieldName: {
|
|
337
|
+
handlerPropName: string;
|
|
410
338
|
group: string;
|
|
411
339
|
label: string;
|
|
412
340
|
description: string;
|
|
413
341
|
formType: string;
|
|
414
342
|
propType: string;
|
|
415
|
-
defaultValue:
|
|
343
|
+
defaultValue: string;
|
|
344
|
+
valuePropName: string;
|
|
416
345
|
editable: boolean;
|
|
417
346
|
required: boolean;
|
|
418
347
|
};
|
|
@@ -532,6 +461,16 @@ export declare const SEED_DATA: ({
|
|
|
532
461
|
formType: string;
|
|
533
462
|
propType: string;
|
|
534
463
|
};
|
|
464
|
+
placeholder: {
|
|
465
|
+
group: string;
|
|
466
|
+
label: string;
|
|
467
|
+
description: string;
|
|
468
|
+
editable: boolean;
|
|
469
|
+
required: boolean;
|
|
470
|
+
defaultValue: string;
|
|
471
|
+
formType: string;
|
|
472
|
+
propType: string;
|
|
473
|
+
};
|
|
535
474
|
placeholderTextColor: {
|
|
536
475
|
group: string;
|
|
537
476
|
label: string;
|
|
@@ -593,6 +532,67 @@ export declare const SEED_DATA: ({
|
|
|
593
532
|
formType: string;
|
|
594
533
|
propType: string;
|
|
595
534
|
};
|
|
535
|
+
label: {
|
|
536
|
+
group: string;
|
|
537
|
+
label: string;
|
|
538
|
+
description: string;
|
|
539
|
+
formType: string;
|
|
540
|
+
propType: string;
|
|
541
|
+
defaultValue: null;
|
|
542
|
+
editable: boolean;
|
|
543
|
+
required: boolean;
|
|
544
|
+
};
|
|
545
|
+
assistiveText: {
|
|
546
|
+
group: string;
|
|
547
|
+
label: string;
|
|
548
|
+
description: string;
|
|
549
|
+
formType: string;
|
|
550
|
+
propType: string;
|
|
551
|
+
defaultValue: null;
|
|
552
|
+
editable: boolean;
|
|
553
|
+
required: boolean;
|
|
554
|
+
};
|
|
555
|
+
error: {
|
|
556
|
+
group: string;
|
|
557
|
+
label: string;
|
|
558
|
+
description: string;
|
|
559
|
+
formType: string;
|
|
560
|
+
propType: string;
|
|
561
|
+
defaultValue: null;
|
|
562
|
+
editable: boolean;
|
|
563
|
+
required: boolean;
|
|
564
|
+
};
|
|
565
|
+
leftIconName: {
|
|
566
|
+
group: string;
|
|
567
|
+
label: string;
|
|
568
|
+
description: string;
|
|
569
|
+
formType: string;
|
|
570
|
+
propType: string;
|
|
571
|
+
defaultValue: null;
|
|
572
|
+
editable: boolean;
|
|
573
|
+
required: boolean;
|
|
574
|
+
};
|
|
575
|
+
leftIconMode: {
|
|
576
|
+
group: string;
|
|
577
|
+
label: string;
|
|
578
|
+
description: string;
|
|
579
|
+
formType: string;
|
|
580
|
+
propType: string;
|
|
581
|
+
defaultValue: null;
|
|
582
|
+
options: string[];
|
|
583
|
+
editable: boolean;
|
|
584
|
+
required: boolean;
|
|
585
|
+
};
|
|
586
|
+
rightIconName: {
|
|
587
|
+
group: string;
|
|
588
|
+
label: string;
|
|
589
|
+
description: string;
|
|
590
|
+
formType: string;
|
|
591
|
+
propType: string;
|
|
592
|
+
defaultValue: null;
|
|
593
|
+
editable: boolean;
|
|
594
|
+
required: boolean;
|
|
595
|
+
};
|
|
596
596
|
};
|
|
597
597
|
layout: {};
|
|
598
598
|
})[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.2.
|
|
3
|
+
"version": "46.2.4-dedb7a.0+dedb7a5d",
|
|
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.2.
|
|
44
|
+
"@draftbit/types": "^46.2.3",
|
|
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": "
|
|
82
|
+
"gitHead": "dedb7a5ddf0c05da6f0df9e49b2a927b6ec0a69d"
|
|
83
83
|
}
|
|
@@ -7,7 +7,6 @@ import Elevation from "./Elevation";
|
|
|
7
7
|
import StarRating from "./StarRating";
|
|
8
8
|
import { withTheme } from "../theming";
|
|
9
9
|
import Config from "./Config";
|
|
10
|
-
// Hello! I'm a comment!
|
|
11
10
|
const ICON_CONTAINER_SIZE = Config.cardIconSize * 2;
|
|
12
11
|
const ICON_CONTAINER_PADDING = Config.cardIconSize / 2 - 1;
|
|
13
12
|
const CardContainerRating = ({ Icon, icon, image = Config.cardImageUrl, title, leftDescription, rightDescription, rating, aspectRatio = 1.5, elevation = 2, numColumns = 3, theme: { colors, roundness, typography }, style, onPress, ...rest }) => {
|