@draftbit/core 47.0.1-ed6e56.2 → 47.1.1-1883fa.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/Button.js +3 -3
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -3
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -2
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -2
- package/lib/commonjs/components/DatePicker/DatePicker.js +0 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.js +9 -3
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +1 -0
- package/lib/commonjs/components/DeprecatedButton.js +3 -27
- package/lib/commonjs/components/DeprecatedFAB.js +1 -2
- package/lib/commonjs/components/Pressable.js +37 -0
- package/lib/commonjs/components/Swiper/Swiper.js +2 -0
- package/lib/commonjs/components/Touchable.js +8 -3
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/mappings/Button.js +39 -10
- package/lib/commonjs/mappings/DatePicker.js +1 -1
- package/lib/commonjs/mappings/FlashList.js +79 -2
- package/lib/commonjs/mappings/FlatList.js +27 -0
- package/lib/commonjs/mappings/ScrollView.js +6 -0
- package/lib/commonjs/mappings/Swiper.js +2 -0
- package/lib/commonjs/mappings/TextField.js +2 -2
- package/lib/commonjs/mappings/Touchable.js +47 -7
- package/lib/module/components/Button.js +3 -3
- package/lib/module/components/Checkbox/Checkbox.js +2 -3
- package/lib/module/components/Checkbox/CheckboxGroupRow.js +2 -3
- package/lib/module/components/Checkbox/CheckboxRow.js +2 -3
- package/lib/module/components/DatePicker/DatePicker.js +0 -1
- package/lib/module/components/DatePicker/DatePickerComponent.js +9 -3
- package/lib/module/components/DatePicker/DatePickerComponent.web.js +1 -0
- package/lib/module/components/DeprecatedButton.js +4 -28
- package/lib/module/components/DeprecatedFAB.js +2 -3
- package/lib/module/components/Pressable.js +30 -0
- package/lib/module/components/Swiper/Swiper.js +2 -0
- package/lib/module/components/Touchable.js +8 -3
- package/lib/module/index.js +1 -0
- package/lib/module/mappings/Button.js +40 -11
- package/lib/module/mappings/DatePicker.js +1 -1
- package/lib/module/mappings/FlashList.js +80 -3
- package/lib/module/mappings/FlatList.js +28 -1
- package/lib/module/mappings/ScrollView.js +7 -1
- package/lib/module/mappings/Swiper.js +3 -1
- package/lib/module/mappings/TextField.js +2 -2
- package/lib/module/mappings/Touchable.js +49 -9
- package/lib/typescript/src/components/Button.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +2 -2
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -1
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -1
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -1
- package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +0 -2
- package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -1
- package/lib/typescript/src/components/DeprecatedButton.d.ts +2 -2
- package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -1
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +2 -2
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -1
- package/lib/typescript/src/components/Pressable.d.ts +10 -0
- package/lib/typescript/src/components/Pressable.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -1
- package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -1
- package/lib/typescript/src/components/Touchable.d.ts +5 -6
- package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Button.d.ts +113 -4
- package/lib/typescript/src/mappings/Button.d.ts.map +1 -1
- package/lib/typescript/src/mappings/DatePicker.d.ts +1 -1
- package/lib/typescript/src/mappings/FlashList.d.ts +183 -2
- package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/FlatList.d.ts +73 -0
- package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/ScrollView.d.ts +21 -0
- package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Swiper.d.ts +11 -0
- package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Touchable.d.ts +59 -5
- package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/components/Button.js +3 -3
- package/src/components/Button.tsx +14 -4
- package/src/components/Checkbox/Checkbox.js +2 -3
- package/src/components/Checkbox/Checkbox.tsx +5 -7
- package/src/components/Checkbox/CheckboxGroupRow.js +2 -3
- package/src/components/Checkbox/CheckboxGroupRow.tsx +3 -3
- package/src/components/Checkbox/CheckboxRow.js +2 -3
- package/src/components/Checkbox/CheckboxRow.tsx +3 -3
- package/src/components/DatePicker/DatePicker.js +1 -1
- package/src/components/DatePicker/DatePicker.tsx +0 -1
- package/src/components/DatePicker/DatePickerComponent.js +5 -3
- package/src/components/DatePicker/DatePickerComponent.tsx +11 -3
- package/src/components/DatePicker/DatePickerComponent.web.js +1 -1
- package/src/components/DatePicker/DatePickerComponent.web.tsx +1 -0
- package/src/components/DatePicker/DatePickerComponentType.ts +0 -9
- package/src/components/DeprecatedButton.js +4 -16
- package/src/components/DeprecatedButton.tsx +7 -31
- package/src/components/DeprecatedFAB.js +2 -3
- package/src/components/DeprecatedFAB.tsx +5 -5
- package/src/components/Pressable.js +12 -0
- package/src/components/Pressable.tsx +44 -0
- package/src/components/Swiper/Swiper.js +2 -2
- package/src/components/Swiper/Swiper.tsx +3 -0
- package/src/components/Touchable.js +3 -3
- package/src/components/Touchable.tsx +11 -7
- package/src/index.js +1 -0
- package/src/index.tsx +1 -0
- package/src/mappings/Button.js +39 -10
- package/src/mappings/Button.ts +41 -10
- package/src/mappings/DatePicker.js +1 -1
- package/src/mappings/DatePicker.ts +1 -1
- package/src/mappings/FlashList.js +111 -31
- package/src/mappings/FlashList.ts +120 -30
- package/src/mappings/FlatList.js +28 -1
- package/src/mappings/FlatList.ts +34 -0
- package/src/mappings/ScrollView.js +7 -1
- package/src/mappings/ScrollView.ts +9 -0
- package/src/mappings/Swiper.js +3 -1
- package/src/mappings/Swiper.ts +4 -0
- package/src/mappings/TextField.js +2 -2
- package/src/mappings/TextField.ts +2 -2
- package/src/mappings/Touchable.js +50 -7
- package/src/mappings/Touchable.ts +53 -6
- package/lib/commonjs/components/DatePicker/DatePickerInput.js +0 -133
- package/lib/module/components/DatePicker/DatePickerInput.js +0 -123
- package/lib/typescript/src/components/DatePicker/DatePickerInput.d.ts +0 -18
- package/lib/typescript/src/components/DatePicker/DatePickerInput.d.ts.map +0 -1
- package/src/components/DatePicker/DatePickerInput.js +0 -97
- package/src/components/DatePicker/DatePickerInput.tsx +0 -195
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SEED_DATA: {
|
|
1
|
+
export declare const SEED_DATA: ({
|
|
2
2
|
name: string;
|
|
3
3
|
tag: string;
|
|
4
4
|
description: string;
|
|
@@ -8,7 +8,136 @@ export declare const SEED_DATA: {
|
|
|
8
8
|
layout: {
|
|
9
9
|
flex: number;
|
|
10
10
|
};
|
|
11
|
+
triggers: string[];
|
|
11
12
|
props: {
|
|
13
|
+
onRefresh: {
|
|
14
|
+
label: string;
|
|
15
|
+
description: string;
|
|
16
|
+
editable: boolean;
|
|
17
|
+
required: boolean;
|
|
18
|
+
formType: string;
|
|
19
|
+
propType: string;
|
|
20
|
+
defaultValue: null;
|
|
21
|
+
group: string;
|
|
22
|
+
};
|
|
23
|
+
onEndReached: {
|
|
24
|
+
label: string;
|
|
25
|
+
description: string;
|
|
26
|
+
editable: boolean;
|
|
27
|
+
required: boolean;
|
|
28
|
+
formType: string;
|
|
29
|
+
propType: string;
|
|
30
|
+
defaultValue: null;
|
|
31
|
+
group: string;
|
|
32
|
+
};
|
|
33
|
+
numColumns: {
|
|
34
|
+
label: string;
|
|
35
|
+
description: string;
|
|
36
|
+
group: string;
|
|
37
|
+
formType: string;
|
|
38
|
+
propType: string;
|
|
39
|
+
defaultValue: number;
|
|
40
|
+
editable: boolean;
|
|
41
|
+
required: boolean;
|
|
42
|
+
};
|
|
43
|
+
estimatedItemSize: {
|
|
44
|
+
label: string;
|
|
45
|
+
description: string;
|
|
46
|
+
formType: string;
|
|
47
|
+
propType: string;
|
|
48
|
+
group: string;
|
|
49
|
+
defaultValue: null;
|
|
50
|
+
editable: boolean;
|
|
51
|
+
required: boolean;
|
|
52
|
+
step: number;
|
|
53
|
+
};
|
|
54
|
+
initialNumToRender: {
|
|
55
|
+
label: string;
|
|
56
|
+
description: string;
|
|
57
|
+
formType: string;
|
|
58
|
+
propType: string;
|
|
59
|
+
group: string;
|
|
60
|
+
defaultValue: null;
|
|
61
|
+
editable: boolean;
|
|
62
|
+
required: boolean;
|
|
63
|
+
step: number;
|
|
64
|
+
};
|
|
65
|
+
onEndReachedThreshold: {
|
|
66
|
+
label: string;
|
|
67
|
+
description: string;
|
|
68
|
+
formType: string;
|
|
69
|
+
propType: string;
|
|
70
|
+
group: string;
|
|
71
|
+
defaultValue: null;
|
|
72
|
+
editable: boolean;
|
|
73
|
+
required: boolean;
|
|
74
|
+
step: number;
|
|
75
|
+
};
|
|
76
|
+
refreshColor: {
|
|
77
|
+
group: string;
|
|
78
|
+
label: string;
|
|
79
|
+
description: string;
|
|
80
|
+
editable: boolean;
|
|
81
|
+
required: boolean;
|
|
82
|
+
defaultValue: null;
|
|
83
|
+
formType: string;
|
|
84
|
+
propType: string;
|
|
85
|
+
};
|
|
86
|
+
showsHorizontalScrollIndicator: {
|
|
87
|
+
label: string;
|
|
88
|
+
description: string;
|
|
89
|
+
formType: string;
|
|
90
|
+
propType: string;
|
|
91
|
+
defaultValue: boolean;
|
|
92
|
+
editable: boolean;
|
|
93
|
+
required: boolean;
|
|
94
|
+
group: string;
|
|
95
|
+
};
|
|
96
|
+
showsVerticalScrollIndicator: {
|
|
97
|
+
label: string;
|
|
98
|
+
description: string;
|
|
99
|
+
formType: string;
|
|
100
|
+
propType: string;
|
|
101
|
+
defaultValue: boolean;
|
|
102
|
+
editable: boolean;
|
|
103
|
+
required: boolean;
|
|
104
|
+
group: string;
|
|
105
|
+
};
|
|
106
|
+
horizontal?: undefined;
|
|
107
|
+
inverted?: undefined;
|
|
108
|
+
};
|
|
109
|
+
} | {
|
|
110
|
+
name: string;
|
|
111
|
+
tag: string;
|
|
112
|
+
description: string;
|
|
113
|
+
packageName: string;
|
|
114
|
+
category: string;
|
|
115
|
+
stylesPanelSections: string[];
|
|
116
|
+
layout: {
|
|
117
|
+
flex: number;
|
|
118
|
+
};
|
|
119
|
+
triggers: string[];
|
|
120
|
+
props: {
|
|
121
|
+
onRefresh: {
|
|
122
|
+
label: string;
|
|
123
|
+
description: string;
|
|
124
|
+
editable: boolean;
|
|
125
|
+
required: boolean;
|
|
126
|
+
formType: string;
|
|
127
|
+
propType: string;
|
|
128
|
+
defaultValue: null;
|
|
129
|
+
group: string;
|
|
130
|
+
};
|
|
131
|
+
onEndReached: {
|
|
132
|
+
label: string;
|
|
133
|
+
description: string;
|
|
134
|
+
editable: boolean;
|
|
135
|
+
required: boolean;
|
|
136
|
+
formType: string;
|
|
137
|
+
propType: string;
|
|
138
|
+
defaultValue: null;
|
|
139
|
+
group: string;
|
|
140
|
+
};
|
|
12
141
|
estimatedItemSize: {
|
|
13
142
|
label: string;
|
|
14
143
|
description: string;
|
|
@@ -50,6 +179,58 @@ export declare const SEED_DATA: {
|
|
|
50
179
|
editable: boolean;
|
|
51
180
|
required: boolean;
|
|
52
181
|
};
|
|
182
|
+
initialNumToRender: {
|
|
183
|
+
label: string;
|
|
184
|
+
description: string;
|
|
185
|
+
formType: string;
|
|
186
|
+
propType: string;
|
|
187
|
+
group: string;
|
|
188
|
+
defaultValue: null;
|
|
189
|
+
editable: boolean;
|
|
190
|
+
required: boolean;
|
|
191
|
+
step: number;
|
|
192
|
+
};
|
|
193
|
+
onEndReachedThreshold: {
|
|
194
|
+
label: string;
|
|
195
|
+
description: string;
|
|
196
|
+
formType: string;
|
|
197
|
+
propType: string;
|
|
198
|
+
group: string;
|
|
199
|
+
defaultValue: null;
|
|
200
|
+
editable: boolean;
|
|
201
|
+
required: boolean;
|
|
202
|
+
step: number;
|
|
203
|
+
};
|
|
204
|
+
refreshColor: {
|
|
205
|
+
group: string;
|
|
206
|
+
label: string;
|
|
207
|
+
description: string;
|
|
208
|
+
editable: boolean;
|
|
209
|
+
required: boolean;
|
|
210
|
+
defaultValue: null;
|
|
211
|
+
formType: string;
|
|
212
|
+
propType: string;
|
|
213
|
+
};
|
|
214
|
+
showsHorizontalScrollIndicator: {
|
|
215
|
+
label: string;
|
|
216
|
+
description: string;
|
|
217
|
+
formType: string;
|
|
218
|
+
propType: string;
|
|
219
|
+
defaultValue: boolean;
|
|
220
|
+
editable: boolean;
|
|
221
|
+
required: boolean;
|
|
222
|
+
group: string;
|
|
223
|
+
};
|
|
224
|
+
showsVerticalScrollIndicator: {
|
|
225
|
+
label: string;
|
|
226
|
+
description: string;
|
|
227
|
+
formType: string;
|
|
228
|
+
propType: string;
|
|
229
|
+
defaultValue: boolean;
|
|
230
|
+
editable: boolean;
|
|
231
|
+
required: boolean;
|
|
232
|
+
group: string;
|
|
233
|
+
};
|
|
53
234
|
};
|
|
54
|
-
};
|
|
235
|
+
})[];
|
|
55
236
|
//# sourceMappingURL=FlashList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlashList.d.ts","sourceRoot":"","sources":["../../../../src/mappings/FlashList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FlashList.d.ts","sourceRoot":"","sources":["../../../../src/mappings/FlashList.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqHrB,CAAC"}
|
|
@@ -7,7 +7,28 @@ export declare const SEED_DATA: {
|
|
|
7
7
|
layout: {
|
|
8
8
|
flex: number;
|
|
9
9
|
};
|
|
10
|
+
triggers: string[];
|
|
10
11
|
props: {
|
|
12
|
+
onRefresh: {
|
|
13
|
+
label: string;
|
|
14
|
+
description: string;
|
|
15
|
+
editable: boolean;
|
|
16
|
+
required: boolean;
|
|
17
|
+
formType: string;
|
|
18
|
+
propType: string;
|
|
19
|
+
defaultValue: null;
|
|
20
|
+
group: string;
|
|
21
|
+
};
|
|
22
|
+
onEndReached: {
|
|
23
|
+
label: string;
|
|
24
|
+
description: string;
|
|
25
|
+
editable: boolean;
|
|
26
|
+
required: boolean;
|
|
27
|
+
formType: string;
|
|
28
|
+
propType: string;
|
|
29
|
+
defaultValue: null;
|
|
30
|
+
group: string;
|
|
31
|
+
};
|
|
11
32
|
horizontal: {
|
|
12
33
|
label: string;
|
|
13
34
|
description: string;
|
|
@@ -38,6 +59,58 @@ export declare const SEED_DATA: {
|
|
|
38
59
|
editable: boolean;
|
|
39
60
|
required: boolean;
|
|
40
61
|
};
|
|
62
|
+
initialNumToRender: {
|
|
63
|
+
label: string;
|
|
64
|
+
description: string;
|
|
65
|
+
formType: string;
|
|
66
|
+
propType: string;
|
|
67
|
+
group: string;
|
|
68
|
+
defaultValue: null;
|
|
69
|
+
editable: boolean;
|
|
70
|
+
required: boolean;
|
|
71
|
+
step: number;
|
|
72
|
+
};
|
|
73
|
+
onEndReachedThreshold: {
|
|
74
|
+
label: string;
|
|
75
|
+
description: string;
|
|
76
|
+
formType: string;
|
|
77
|
+
propType: string;
|
|
78
|
+
group: string;
|
|
79
|
+
defaultValue: null;
|
|
80
|
+
editable: boolean;
|
|
81
|
+
required: boolean;
|
|
82
|
+
step: number;
|
|
83
|
+
};
|
|
84
|
+
refreshColor: {
|
|
85
|
+
group: string;
|
|
86
|
+
label: string;
|
|
87
|
+
description: string;
|
|
88
|
+
editable: boolean;
|
|
89
|
+
required: boolean;
|
|
90
|
+
defaultValue: null;
|
|
91
|
+
formType: string;
|
|
92
|
+
propType: string;
|
|
93
|
+
};
|
|
94
|
+
showsHorizontalScrollIndicator: {
|
|
95
|
+
label: string;
|
|
96
|
+
description: string;
|
|
97
|
+
formType: string;
|
|
98
|
+
propType: string;
|
|
99
|
+
defaultValue: boolean;
|
|
100
|
+
editable: boolean;
|
|
101
|
+
required: boolean;
|
|
102
|
+
group: string;
|
|
103
|
+
};
|
|
104
|
+
showsVerticalScrollIndicator: {
|
|
105
|
+
label: string;
|
|
106
|
+
description: string;
|
|
107
|
+
formType: string;
|
|
108
|
+
propType: string;
|
|
109
|
+
defaultValue: boolean;
|
|
110
|
+
editable: boolean;
|
|
111
|
+
required: boolean;
|
|
112
|
+
group: string;
|
|
113
|
+
};
|
|
41
114
|
};
|
|
42
115
|
};
|
|
43
116
|
//# sourceMappingURL=FlatList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlatList.d.ts","sourceRoot":"","sources":["../../../../src/mappings/FlatList.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FlatList.d.ts","sourceRoot":"","sources":["../../../../src/mappings/FlatList.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDrB,CAAC"}
|
|
@@ -5,7 +5,18 @@ export declare const SEED_DATA: {
|
|
|
5
5
|
category: string;
|
|
6
6
|
stylesPanelSections: string[];
|
|
7
7
|
layout: {};
|
|
8
|
+
triggers: string[];
|
|
8
9
|
props: {
|
|
10
|
+
onRefresh: {
|
|
11
|
+
label: string;
|
|
12
|
+
description: string;
|
|
13
|
+
editable: boolean;
|
|
14
|
+
required: boolean;
|
|
15
|
+
formType: string;
|
|
16
|
+
propType: string;
|
|
17
|
+
defaultValue: null;
|
|
18
|
+
group: string;
|
|
19
|
+
};
|
|
9
20
|
horizontal: {
|
|
10
21
|
label: string;
|
|
11
22
|
description: string;
|
|
@@ -46,6 +57,16 @@ export declare const SEED_DATA: {
|
|
|
46
57
|
required: boolean;
|
|
47
58
|
group: string;
|
|
48
59
|
};
|
|
60
|
+
refreshColor: {
|
|
61
|
+
group: string;
|
|
62
|
+
label: string;
|
|
63
|
+
description: string;
|
|
64
|
+
editable: boolean;
|
|
65
|
+
required: boolean;
|
|
66
|
+
defaultValue: null;
|
|
67
|
+
formType: string;
|
|
68
|
+
propType: string;
|
|
69
|
+
};
|
|
49
70
|
};
|
|
50
71
|
};
|
|
51
72
|
//# sourceMappingURL=ScrollView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ScrollView.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ScrollView.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCrB,CAAC"}
|
|
@@ -7,7 +7,18 @@ export declare const SEED_DATA: {
|
|
|
7
7
|
height: number;
|
|
8
8
|
width: string;
|
|
9
9
|
};
|
|
10
|
+
triggers: string[];
|
|
10
11
|
props: {
|
|
12
|
+
onIndexChanged: {
|
|
13
|
+
label: string;
|
|
14
|
+
description: string;
|
|
15
|
+
editable: boolean;
|
|
16
|
+
required: boolean;
|
|
17
|
+
formType: string;
|
|
18
|
+
propType: string;
|
|
19
|
+
defaultValue: null;
|
|
20
|
+
group: string;
|
|
21
|
+
};
|
|
11
22
|
from: {
|
|
12
23
|
label: string;
|
|
13
24
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Swiper.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Swiper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Swiper.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Swiper.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DrB,CAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export declare const SEED_DATA: {
|
|
2
|
-
name: string;
|
|
3
|
-
tag: string;
|
|
4
|
-
description: string;
|
|
5
|
-
category: string;
|
|
6
2
|
stylesPanelSections: string[];
|
|
7
3
|
layout: {};
|
|
8
4
|
triggers: string[];
|
|
@@ -17,6 +13,64 @@ export declare const SEED_DATA: {
|
|
|
17
13
|
defaultValue: null;
|
|
18
14
|
group: string;
|
|
19
15
|
};
|
|
16
|
+
onLongPress: {
|
|
17
|
+
label: string;
|
|
18
|
+
description: string;
|
|
19
|
+
editable: boolean;
|
|
20
|
+
required: boolean;
|
|
21
|
+
formType: string;
|
|
22
|
+
propType: string;
|
|
23
|
+
defaultValue: null;
|
|
24
|
+
group: string;
|
|
25
|
+
};
|
|
26
|
+
activeOpacity: {
|
|
27
|
+
label: string;
|
|
28
|
+
description: string;
|
|
29
|
+
formType: string;
|
|
30
|
+
propType: string;
|
|
31
|
+
group: string;
|
|
32
|
+
defaultValue: null;
|
|
33
|
+
editable: boolean;
|
|
34
|
+
required: boolean;
|
|
35
|
+
step: number;
|
|
36
|
+
};
|
|
37
|
+
disabledOpacity: {
|
|
38
|
+
label: string;
|
|
39
|
+
description: string;
|
|
40
|
+
formType: string;
|
|
41
|
+
propType: string;
|
|
42
|
+
group: string;
|
|
43
|
+
defaultValue: null;
|
|
44
|
+
editable: boolean;
|
|
45
|
+
required: boolean;
|
|
46
|
+
step: number;
|
|
47
|
+
};
|
|
48
|
+
delayLongPress: {
|
|
49
|
+
label: string;
|
|
50
|
+
description: string;
|
|
51
|
+
formType: string;
|
|
52
|
+
propType: string;
|
|
53
|
+
group: string;
|
|
54
|
+
defaultValue: null;
|
|
55
|
+
editable: boolean;
|
|
56
|
+
required: boolean;
|
|
57
|
+
step: number;
|
|
58
|
+
};
|
|
59
|
+
hitSlop: {
|
|
60
|
+
label: string;
|
|
61
|
+
description: string;
|
|
62
|
+
formType: string;
|
|
63
|
+
propType: string;
|
|
64
|
+
group: string;
|
|
65
|
+
defaultValue: null;
|
|
66
|
+
editable: boolean;
|
|
67
|
+
required: boolean;
|
|
68
|
+
step: number;
|
|
69
|
+
};
|
|
20
70
|
};
|
|
21
|
-
|
|
71
|
+
name: string;
|
|
72
|
+
tag: string;
|
|
73
|
+
description: string;
|
|
74
|
+
category: string;
|
|
75
|
+
}[];
|
|
22
76
|
//# sourceMappingURL=Touchable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Touchable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Touchable.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Touchable.ts"],"names":[],"mappings":"AAsDA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAerB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "47.
|
|
3
|
+
"version": "47.1.1-1883fa.2+1883fa4",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@date-io/date-fns": "^1.3.13",
|
|
43
43
|
"@draftbit/react-theme-provider": "^2.1.1",
|
|
44
|
-
"@draftbit/types": "^47.
|
|
45
|
-
"@material-ui/core": "^4.
|
|
46
|
-
"@material-ui/pickers": "^3.
|
|
44
|
+
"@draftbit/types": "^47.1.1-1883fa.2+1883fa4",
|
|
45
|
+
"@material-ui/core": "^4.11.0",
|
|
46
|
+
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.4",
|
|
48
48
|
"@react-native-picker/picker": "2.4.8",
|
|
49
49
|
"@shopify/flash-list": "1.3.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"lodash.isnumber": "^3.0.3",
|
|
54
54
|
"lodash.omit": "^4.5.0",
|
|
55
55
|
"lodash.tonumber": "^4.0.3",
|
|
56
|
-
"react-native-modal-datetime-picker": "^
|
|
56
|
+
"react-native-modal-datetime-picker": "^13.0.0",
|
|
57
57
|
"react-native-svg": "13.4.0",
|
|
58
58
|
"react-native-typography": "^1.4.1",
|
|
59
59
|
"react-native-web-swiper": "^2.2.3"
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
]
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "1883fa44605deb2fd7f248b170c8503e0bc4c768"
|
|
95
95
|
}
|
package/src/components/Button.js
CHANGED
|
@@ -7,7 +7,7 @@ const CONSTANTS = {
|
|
|
7
7
|
padding: 8,
|
|
8
8
|
icon: 24,
|
|
9
9
|
};
|
|
10
|
-
function Base({ Icon, icon, title,
|
|
10
|
+
function Base({ Icon, icon, title, loading, disabled, style, activeOpacity, disabledOpacity, ...props }) {
|
|
11
11
|
const { color, fontFamily, fontWeight, fontSize, lineHeight, letterSpacing, textTransform, textAlign, textDecorationLine, textDecorationColor, textDecorationStyle, ...buttonStyles } = StyleSheet.flatten(style || {});
|
|
12
12
|
const titleStyles = {
|
|
13
13
|
color,
|
|
@@ -28,11 +28,11 @@ function Base({ Icon, icon, title, onPress, loading, disabled, style, ...props }
|
|
|
28
28
|
if (textAlign === "right") {
|
|
29
29
|
buttonStyles.justifyContent = "flex-end";
|
|
30
30
|
}
|
|
31
|
-
return (React.createElement(Pressable, {
|
|
31
|
+
return (React.createElement(Pressable, { disabled: disabled || loading, style: ({ pressed }) => {
|
|
32
32
|
return [
|
|
33
33
|
styles.base,
|
|
34
34
|
{
|
|
35
|
-
opacity: pressed
|
|
35
|
+
opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1,
|
|
36
36
|
},
|
|
37
37
|
buttonStyles,
|
|
38
38
|
];
|
|
@@ -2,10 +2,10 @@ import * as React from "react";
|
|
|
2
2
|
import {
|
|
3
3
|
Text,
|
|
4
4
|
Pressable,
|
|
5
|
+
PressableProps,
|
|
5
6
|
Platform,
|
|
6
7
|
StyleSheet,
|
|
7
8
|
TextStyle,
|
|
8
|
-
PressableProps,
|
|
9
9
|
ActivityIndicator,
|
|
10
10
|
} from "react-native";
|
|
11
11
|
|
|
@@ -27,6 +27,11 @@ type BaseProps = {
|
|
|
27
27
|
loading: boolean;
|
|
28
28
|
style?: TextStyle;
|
|
29
29
|
onPress: () => void;
|
|
30
|
+
onLongPress?: () => void;
|
|
31
|
+
activeOpacity?: number;
|
|
32
|
+
disabledOpacity?: number;
|
|
33
|
+
delayLongPress?: number;
|
|
34
|
+
hitSlop?: number;
|
|
30
35
|
icon?: string;
|
|
31
36
|
} & PressableProps &
|
|
32
37
|
IconSlot;
|
|
@@ -37,6 +42,11 @@ type Props = {
|
|
|
37
42
|
loading: boolean;
|
|
38
43
|
style?: TextStyle;
|
|
39
44
|
onPress: () => void;
|
|
45
|
+
onLongPress?: () => void;
|
|
46
|
+
activeOpacity?: number;
|
|
47
|
+
disabledOpacity?: number;
|
|
48
|
+
delayLongPress?: number;
|
|
49
|
+
hitSlop?: number;
|
|
40
50
|
icon?: string;
|
|
41
51
|
theme: Theme;
|
|
42
52
|
} & PressableProps &
|
|
@@ -46,10 +56,11 @@ function Base({
|
|
|
46
56
|
Icon,
|
|
47
57
|
icon,
|
|
48
58
|
title,
|
|
49
|
-
onPress,
|
|
50
59
|
loading,
|
|
51
60
|
disabled,
|
|
52
61
|
style,
|
|
62
|
+
activeOpacity,
|
|
63
|
+
disabledOpacity,
|
|
53
64
|
...props
|
|
54
65
|
}: BaseProps): JSX.Element {
|
|
55
66
|
const {
|
|
@@ -91,13 +102,12 @@ function Base({
|
|
|
91
102
|
|
|
92
103
|
return (
|
|
93
104
|
<Pressable
|
|
94
|
-
onPress={onPress}
|
|
95
105
|
disabled={disabled || loading}
|
|
96
106
|
style={({ pressed }) => {
|
|
97
107
|
return [
|
|
98
108
|
styles.base,
|
|
99
109
|
{
|
|
100
|
-
opacity: pressed
|
|
110
|
+
opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1,
|
|
101
111
|
},
|
|
102
112
|
buttonStyles,
|
|
103
113
|
];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { View, StyleSheet, } from "react-native";
|
|
2
|
+
import { View, StyleSheet, Pressable, } from "react-native";
|
|
3
3
|
import { useTheme } from "../../theming";
|
|
4
|
-
import Touchable from "../Touchable";
|
|
5
4
|
import { usePrevious } from "../../hooks";
|
|
6
5
|
const Checkbox = ({ Icon, status, disabled = false, onPress, onCheck, onUncheck, color, uncheckedColor, defaultValue, checkedIcon = "MaterialCommunityIcons/checkbox-marked", uncheckedIcon = "MaterialCommunityIcons/checkbox-blank-outline", size = 24, style, ...rest }) => {
|
|
7
6
|
const [internalValue, setInternalValue] = React.useState(status || defaultValue || false);
|
|
@@ -33,7 +32,7 @@ const Checkbox = ({ Icon, status, disabled = false, onPress, onCheck, onUncheck,
|
|
|
33
32
|
onUncheck === null || onUncheck === void 0 ? void 0 : onUncheck();
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
|
-
return (React.createElement(
|
|
35
|
+
return (React.createElement(Pressable, { ...rest, onPress: handlePress, disabled: disabled, accessibilityState: { disabled }, accessibilityRole: "button", accessibilityLiveRegion: "polite", style: [styles.container, style, { width: size, height: size }] },
|
|
37
36
|
React.createElement(Icon, { style: styles.icon, name: internalValue ? checkedIcon : uncheckedIcon, size: size, color: checkboxColor }),
|
|
38
37
|
React.createElement(View, { style: [StyleSheet.absoluteFill, styles.fillContainer] },
|
|
39
38
|
React.createElement(View, { style: [
|
|
@@ -2,14 +2,14 @@ import * as React from "react";
|
|
|
2
2
|
import {
|
|
3
3
|
View,
|
|
4
4
|
StyleSheet,
|
|
5
|
-
|
|
5
|
+
Pressable,
|
|
6
|
+
PressableProps,
|
|
6
7
|
StyleProp,
|
|
7
8
|
ViewStyle,
|
|
8
9
|
} from "react-native";
|
|
9
10
|
import { useTheme } from "../../theming";
|
|
10
11
|
import type { IconSlot } from "../../interfaces/Icon";
|
|
11
12
|
|
|
12
|
-
import Touchable from "../Touchable";
|
|
13
13
|
import { usePrevious } from "../../hooks";
|
|
14
14
|
|
|
15
15
|
export interface CheckboxProps {
|
|
@@ -27,9 +27,7 @@ export interface CheckboxProps {
|
|
|
27
27
|
style?: StyleProp<ViewStyle>;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
const Checkbox: React.FC<
|
|
31
|
-
CheckboxProps & TouchableHighlightProps & IconSlot
|
|
32
|
-
> = ({
|
|
30
|
+
const Checkbox: React.FC<CheckboxProps & PressableProps & IconSlot> = ({
|
|
33
31
|
Icon,
|
|
34
32
|
status,
|
|
35
33
|
disabled = false,
|
|
@@ -87,7 +85,7 @@ const Checkbox: React.FC<
|
|
|
87
85
|
};
|
|
88
86
|
|
|
89
87
|
return (
|
|
90
|
-
<
|
|
88
|
+
<Pressable
|
|
91
89
|
{...rest}
|
|
92
90
|
onPress={handlePress}
|
|
93
91
|
disabled={disabled}
|
|
@@ -111,7 +109,7 @@ const Checkbox: React.FC<
|
|
|
111
109
|
]}
|
|
112
110
|
/>
|
|
113
111
|
</View>
|
|
114
|
-
</
|
|
112
|
+
</Pressable>
|
|
115
113
|
);
|
|
116
114
|
};
|
|
117
115
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { StyleSheet, View, Platform, } from "react-native";
|
|
2
|
+
import { StyleSheet, View, Platform, Pressable, } from "react-native";
|
|
3
3
|
import Checkbox from "./Checkbox";
|
|
4
4
|
import Text from "../Text";
|
|
5
5
|
import { useCheckboxGroupContext } from "./context";
|
|
6
6
|
import { Direction as GroupDirection } from "./context";
|
|
7
|
-
import Touchable from "../Touchable";
|
|
8
7
|
import { extractStyles } from "../../utilities";
|
|
9
8
|
export var Direction;
|
|
10
9
|
(function (Direction) {
|
|
@@ -41,7 +40,7 @@ const CheckboxGroupRow = ({ Icon, label = "Label", status, value, onPress, label
|
|
|
41
40
|
}
|
|
42
41
|
};
|
|
43
42
|
const { textStyles, viewStyles } = extractStyles(style);
|
|
44
|
-
return (React.createElement(
|
|
43
|
+
return (React.createElement(Pressable, { onPress: handlePress, style: [styles.mainParent, { flexDirection: direction }, viewStyles], disabled: disabled, ...rest },
|
|
45
44
|
React.createElement(View, { style: [
|
|
46
45
|
styles.label,
|
|
47
46
|
{
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
TextStyle,
|
|
7
7
|
View,
|
|
8
8
|
Platform,
|
|
9
|
+
Pressable,
|
|
9
10
|
} from "react-native";
|
|
10
11
|
import Checkbox, { CheckboxProps } from "./Checkbox";
|
|
11
12
|
import Text from "../Text";
|
|
12
13
|
import { useCheckboxGroupContext } from "./context";
|
|
13
14
|
import type { IconSlot } from "../../interfaces/Icon";
|
|
14
15
|
import { Direction as GroupDirection } from "./context";
|
|
15
|
-
import Touchable from "../Touchable";
|
|
16
16
|
import { extractStyles } from "../../utilities";
|
|
17
17
|
|
|
18
18
|
export enum Direction {
|
|
@@ -92,7 +92,7 @@ const CheckboxGroupRow: React.FC<CheckboxGroupRowProps & IconSlot> = ({
|
|
|
92
92
|
const { textStyles, viewStyles } = extractStyles(style);
|
|
93
93
|
|
|
94
94
|
return (
|
|
95
|
-
<
|
|
95
|
+
<Pressable
|
|
96
96
|
onPress={handlePress}
|
|
97
97
|
style={[styles.mainParent, { flexDirection: direction }, viewStyles]}
|
|
98
98
|
disabled={disabled}
|
|
@@ -125,7 +125,7 @@ const CheckboxGroupRow: React.FC<CheckboxGroupRowProps & IconSlot> = ({
|
|
|
125
125
|
uncheckedColor={uncheckedColor}
|
|
126
126
|
/>
|
|
127
127
|
</View>
|
|
128
|
-
</
|
|
128
|
+
</Pressable>
|
|
129
129
|
);
|
|
130
130
|
};
|
|
131
131
|
|