ferns-ui 1.9.1 → 1.11.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/dist/Accordion.js +1 -1
- package/dist/Accordion.js.map +1 -1
- package/dist/Accordion.test.d.ts +1 -0
- package/dist/Accordion.test.js +71 -0
- package/dist/Accordion.test.js.map +1 -0
- package/dist/AddressField.test.d.ts +1 -0
- package/dist/AddressField.test.js +65 -0
- package/dist/AddressField.test.js.map +1 -0
- package/dist/Avatar.js +2 -2
- package/dist/Avatar.js.map +1 -1
- package/dist/Avatar.test.d.ts +1 -0
- package/dist/Avatar.test.js +131 -0
- package/dist/Avatar.test.js.map +1 -0
- package/dist/Badge.d.ts +1 -1
- package/dist/Badge.js +3 -3
- package/dist/Badge.js.map +1 -1
- package/dist/Badge.test.d.ts +1 -0
- package/dist/Badge.test.js +76 -0
- package/dist/Badge.test.js.map +1 -0
- package/dist/Box.test.d.ts +1 -0
- package/dist/Box.test.js +528 -0
- package/dist/Box.test.js.map +1 -0
- package/dist/Common.d.ts +100 -1
- package/dist/Common.js.map +1 -1
- package/dist/DateTimeField.js +15 -2
- package/dist/DateTimeField.js.map +1 -1
- package/dist/InfoModalIcon.js +1 -1
- package/dist/InfoModalIcon.js.map +1 -1
- package/dist/SectionDivider.d.ts +2 -0
- package/dist/SectionDivider.js +12 -0
- package/dist/SectionDivider.js.map +1 -0
- package/dist/Slider.d.ts +3 -0
- package/dist/Slider.js +94 -0
- package/dist/Slider.js.map +1 -0
- package/dist/Text.js +2 -0
- package/dist/Text.js.map +1 -1
- package/dist/TextField.test.js +9 -9
- package/dist/TextField.test.js.map +1 -1
- package/dist/Tooltip.js +2 -0
- package/dist/Tooltip.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/setupTests.js +40 -2
- package/dist/setupTests.js.map +1 -1
- package/dist/test-utils.js.map +1 -1
- package/package.json +2 -1
- package/src/Accordion.test.tsx +104 -0
- package/src/Accordion.tsx +1 -0
- package/src/AddressField.test.tsx +89 -0
- package/src/Avatar.test.tsx +163 -0
- package/src/Avatar.tsx +2 -0
- package/src/Badge.test.tsx +116 -0
- package/src/Badge.tsx +3 -1
- package/src/Box.test.tsx +665 -0
- package/src/Common.ts +114 -1
- package/src/DateTimeField.tsx +15 -2
- package/src/InfoModalIcon.tsx +1 -0
- package/src/SectionDivider.tsx +18 -0
- package/src/Slider.tsx +205 -0
- package/src/Text.tsx +2 -0
- package/src/TextField.test.tsx +59 -71
- package/src/Tooltip.tsx +2 -0
- package/src/__snapshots__/Accordion.test.tsx.snap +120 -0
- package/src/__snapshots__/AddressField.test.tsx.snap +464 -0
- package/src/__snapshots__/Avatar.test.tsx.snap +78 -0
- package/src/__snapshots__/Badge.test.tsx.snap +44 -0
- package/src/__snapshots__/Box.test.tsx.snap +159 -0
- package/src/__snapshots__/TextArea.test.tsx.snap +12 -0
- package/src/__snapshots__/TextField.test.tsx.snap +38 -1
- package/src/index.tsx +2 -0
- package/src/setupTests.ts +45 -2
- package/src/test-utils.tsx +1 -0
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`AddressField renders correctly with default props 1`] = `
|
|
4
|
+
[
|
|
5
|
+
<View
|
|
6
|
+
style={
|
|
7
|
+
{
|
|
8
|
+
"marginBottom": 16,
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
>
|
|
12
|
+
<View
|
|
13
|
+
style={
|
|
14
|
+
{
|
|
15
|
+
"flexDirection": "column",
|
|
16
|
+
"width": "100%",
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
>
|
|
20
|
+
<Text
|
|
21
|
+
style={
|
|
22
|
+
{
|
|
23
|
+
"color": "#1C1C1C",
|
|
24
|
+
"fontSize": 14,
|
|
25
|
+
"fontWeight": 600,
|
|
26
|
+
"lineHeight": 22.4,
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
>
|
|
30
|
+
Street Address
|
|
31
|
+
</Text>
|
|
32
|
+
<View
|
|
33
|
+
style={
|
|
34
|
+
{
|
|
35
|
+
"alignItems": "center",
|
|
36
|
+
"backgroundColor": "#FFFFFF",
|
|
37
|
+
"borderColor": "#9A9A9A",
|
|
38
|
+
"borderRadius": 4,
|
|
39
|
+
"borderWidth": 1,
|
|
40
|
+
"flexDirection": "row",
|
|
41
|
+
"overflow": "hidden",
|
|
42
|
+
"paddingHorizontal": 12,
|
|
43
|
+
"paddingVertical": 8,
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
>
|
|
47
|
+
<TextInput
|
|
48
|
+
accessibilityHint="Enter text here"
|
|
49
|
+
accessibilityState={
|
|
50
|
+
{
|
|
51
|
+
"disabled": undefined,
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
aria-label="Text input field"
|
|
55
|
+
autoCapitalize="sentences"
|
|
56
|
+
autoCorrect={true}
|
|
57
|
+
blurOnSubmit={true}
|
|
58
|
+
keyboardType="default"
|
|
59
|
+
numberOfLines={1}
|
|
60
|
+
onBlur={[Function]}
|
|
61
|
+
onChangeText={[Function]}
|
|
62
|
+
onContentSizeChange={[Function]}
|
|
63
|
+
onFocus={[Function]}
|
|
64
|
+
onSubmitEditing={[Function]}
|
|
65
|
+
placeholder="Enter an address"
|
|
66
|
+
placeholderTextColor="#686868"
|
|
67
|
+
secureTextEntry={false}
|
|
68
|
+
style={
|
|
69
|
+
{
|
|
70
|
+
"color": "#1C1C1C",
|
|
71
|
+
"flex": 1,
|
|
72
|
+
"fontFamily": "text",
|
|
73
|
+
"fontSize": 16,
|
|
74
|
+
"gap": 10,
|
|
75
|
+
"height": 20,
|
|
76
|
+
"paddingVertical": 0,
|
|
77
|
+
"width": "100%",
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
testID="test-address-address1"
|
|
81
|
+
textContentType="none"
|
|
82
|
+
underlineColorAndroid="transparent"
|
|
83
|
+
value="123 Main St"
|
|
84
|
+
/>
|
|
85
|
+
</View>
|
|
86
|
+
</View>
|
|
87
|
+
</View>,
|
|
88
|
+
<View
|
|
89
|
+
style={
|
|
90
|
+
{
|
|
91
|
+
"marginBottom": 16,
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
>
|
|
95
|
+
<View
|
|
96
|
+
style={
|
|
97
|
+
{
|
|
98
|
+
"flexDirection": "column",
|
|
99
|
+
"width": "100%",
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
>
|
|
103
|
+
<Text
|
|
104
|
+
style={
|
|
105
|
+
{
|
|
106
|
+
"color": "#1C1C1C",
|
|
107
|
+
"fontSize": 14,
|
|
108
|
+
"fontWeight": 600,
|
|
109
|
+
"lineHeight": 22.4,
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
>
|
|
113
|
+
Apt, suite, etc
|
|
114
|
+
</Text>
|
|
115
|
+
<View
|
|
116
|
+
style={
|
|
117
|
+
{
|
|
118
|
+
"alignItems": "center",
|
|
119
|
+
"backgroundColor": "#FFFFFF",
|
|
120
|
+
"borderColor": "#9A9A9A",
|
|
121
|
+
"borderRadius": 4,
|
|
122
|
+
"borderWidth": 1,
|
|
123
|
+
"flexDirection": "row",
|
|
124
|
+
"overflow": "hidden",
|
|
125
|
+
"paddingHorizontal": 12,
|
|
126
|
+
"paddingVertical": 8,
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
>
|
|
130
|
+
<TextInput
|
|
131
|
+
accessibilityHint="Enter text here"
|
|
132
|
+
accessibilityState={
|
|
133
|
+
{
|
|
134
|
+
"disabled": undefined,
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
aria-label="Text input field"
|
|
138
|
+
autoCapitalize="sentences"
|
|
139
|
+
autoCorrect={true}
|
|
140
|
+
blurOnSubmit={true}
|
|
141
|
+
keyboardType="default"
|
|
142
|
+
numberOfLines={1}
|
|
143
|
+
onBlur={[Function]}
|
|
144
|
+
onChangeText={[Function]}
|
|
145
|
+
onContentSizeChange={[Function]}
|
|
146
|
+
onFocus={[Function]}
|
|
147
|
+
onSubmitEditing={[Function]}
|
|
148
|
+
placeholderTextColor="#686868"
|
|
149
|
+
secureTextEntry={false}
|
|
150
|
+
style={
|
|
151
|
+
{
|
|
152
|
+
"color": "#1C1C1C",
|
|
153
|
+
"flex": 1,
|
|
154
|
+
"fontFamily": "text",
|
|
155
|
+
"fontSize": 16,
|
|
156
|
+
"gap": 10,
|
|
157
|
+
"height": 20,
|
|
158
|
+
"paddingVertical": 0,
|
|
159
|
+
"width": "100%",
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
testID="test-address-address2"
|
|
163
|
+
textContentType="none"
|
|
164
|
+
underlineColorAndroid="transparent"
|
|
165
|
+
value="Apt 4B"
|
|
166
|
+
/>
|
|
167
|
+
</View>
|
|
168
|
+
</View>
|
|
169
|
+
</View>,
|
|
170
|
+
<View
|
|
171
|
+
style={
|
|
172
|
+
{
|
|
173
|
+
"marginBottom": 16,
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
>
|
|
177
|
+
<View
|
|
178
|
+
style={
|
|
179
|
+
{
|
|
180
|
+
"flexDirection": "column",
|
|
181
|
+
"width": "100%",
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
>
|
|
185
|
+
<Text
|
|
186
|
+
style={
|
|
187
|
+
{
|
|
188
|
+
"color": "#1C1C1C",
|
|
189
|
+
"fontSize": 14,
|
|
190
|
+
"fontWeight": 600,
|
|
191
|
+
"lineHeight": 22.4,
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
>
|
|
195
|
+
City
|
|
196
|
+
</Text>
|
|
197
|
+
<View
|
|
198
|
+
style={
|
|
199
|
+
{
|
|
200
|
+
"alignItems": "center",
|
|
201
|
+
"backgroundColor": "#FFFFFF",
|
|
202
|
+
"borderColor": "#9A9A9A",
|
|
203
|
+
"borderRadius": 4,
|
|
204
|
+
"borderWidth": 1,
|
|
205
|
+
"flexDirection": "row",
|
|
206
|
+
"overflow": "hidden",
|
|
207
|
+
"paddingHorizontal": 12,
|
|
208
|
+
"paddingVertical": 8,
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
>
|
|
212
|
+
<TextInput
|
|
213
|
+
accessibilityHint="Enter text here"
|
|
214
|
+
accessibilityState={
|
|
215
|
+
{
|
|
216
|
+
"disabled": undefined,
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
aria-label="Text input field"
|
|
220
|
+
autoCapitalize="sentences"
|
|
221
|
+
autoCorrect={true}
|
|
222
|
+
blurOnSubmit={true}
|
|
223
|
+
keyboardType="default"
|
|
224
|
+
numberOfLines={1}
|
|
225
|
+
onBlur={[Function]}
|
|
226
|
+
onChangeText={[Function]}
|
|
227
|
+
onContentSizeChange={[Function]}
|
|
228
|
+
onFocus={[Function]}
|
|
229
|
+
onSubmitEditing={[Function]}
|
|
230
|
+
placeholderTextColor="#686868"
|
|
231
|
+
secureTextEntry={false}
|
|
232
|
+
style={
|
|
233
|
+
{
|
|
234
|
+
"color": "#1C1C1C",
|
|
235
|
+
"flex": 1,
|
|
236
|
+
"fontFamily": "text",
|
|
237
|
+
"fontSize": 16,
|
|
238
|
+
"gap": 10,
|
|
239
|
+
"height": 20,
|
|
240
|
+
"paddingVertical": 0,
|
|
241
|
+
"width": "100%",
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
testID="test-address-city"
|
|
245
|
+
textContentType="none"
|
|
246
|
+
underlineColorAndroid="transparent"
|
|
247
|
+
value="Springfield"
|
|
248
|
+
/>
|
|
249
|
+
</View>
|
|
250
|
+
</View>
|
|
251
|
+
</View>,
|
|
252
|
+
<View
|
|
253
|
+
style={
|
|
254
|
+
{
|
|
255
|
+
"marginBottom": 16,
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
>
|
|
259
|
+
<View>
|
|
260
|
+
<Text
|
|
261
|
+
style={
|
|
262
|
+
{
|
|
263
|
+
"color": "#1C1C1C",
|
|
264
|
+
"fontSize": 14,
|
|
265
|
+
"fontWeight": 600,
|
|
266
|
+
"lineHeight": 22.4,
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
>
|
|
270
|
+
State
|
|
271
|
+
</Text>
|
|
272
|
+
<View
|
|
273
|
+
style={
|
|
274
|
+
[
|
|
275
|
+
{
|
|
276
|
+
"alignItems": "center",
|
|
277
|
+
"alignSelf": "stretch",
|
|
278
|
+
"borderRadius": 4,
|
|
279
|
+
"borderWidth": 1,
|
|
280
|
+
"flexDirection": "row",
|
|
281
|
+
"justifyContent": "center",
|
|
282
|
+
"minHeight": 40,
|
|
283
|
+
"width": "100%",
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"backgroundColor": "#FFFFFF",
|
|
287
|
+
"borderColor": "#9A9A9A",
|
|
288
|
+
},
|
|
289
|
+
false,
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
>
|
|
293
|
+
<View
|
|
294
|
+
accessibilityState={
|
|
295
|
+
{
|
|
296
|
+
"busy": undefined,
|
|
297
|
+
"checked": undefined,
|
|
298
|
+
"disabled": undefined,
|
|
299
|
+
"expanded": undefined,
|
|
300
|
+
"selected": undefined,
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
accessibilityValue={
|
|
304
|
+
{
|
|
305
|
+
"max": undefined,
|
|
306
|
+
"min": undefined,
|
|
307
|
+
"now": undefined,
|
|
308
|
+
"text": undefined,
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
accessible={true}
|
|
312
|
+
activeOpacity={1}
|
|
313
|
+
collapsable={false}
|
|
314
|
+
focusable={true}
|
|
315
|
+
onBlur={[Function]}
|
|
316
|
+
onClick={[Function]}
|
|
317
|
+
onFocus={[Function]}
|
|
318
|
+
onResponderGrant={[Function]}
|
|
319
|
+
onResponderMove={[Function]}
|
|
320
|
+
onResponderRelease={[Function]}
|
|
321
|
+
onResponderTerminate={[Function]}
|
|
322
|
+
onResponderTerminationRequest={[Function]}
|
|
323
|
+
onStartShouldSetResponder={[Function]}
|
|
324
|
+
style={
|
|
325
|
+
{
|
|
326
|
+
"alignItems": "center",
|
|
327
|
+
"flexDirection": "row",
|
|
328
|
+
"justifyContent": "center",
|
|
329
|
+
"minHeight": 40,
|
|
330
|
+
"width": "95%",
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
testID="ios_touchable_wrapper"
|
|
334
|
+
>
|
|
335
|
+
<View
|
|
336
|
+
style={
|
|
337
|
+
{
|
|
338
|
+
"flexDirection": "row",
|
|
339
|
+
"justifyContent": "space-between",
|
|
340
|
+
"pointerEvents": "box-only",
|
|
341
|
+
"width": "100%",
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
>
|
|
345
|
+
<TextInput
|
|
346
|
+
readOnly={true}
|
|
347
|
+
style={
|
|
348
|
+
{
|
|
349
|
+
"color": "#1C1C1C",
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
testID="text_input"
|
|
353
|
+
value="Please select an option."
|
|
354
|
+
/>
|
|
355
|
+
<View
|
|
356
|
+
style={
|
|
357
|
+
{
|
|
358
|
+
"pointerEvents": "none",
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
testID="icon_container"
|
|
362
|
+
>
|
|
363
|
+
<View
|
|
364
|
+
brand={false}
|
|
365
|
+
color="#1C1C1C"
|
|
366
|
+
duotone={false}
|
|
367
|
+
light={false}
|
|
368
|
+
name="angle-down"
|
|
369
|
+
regular={false}
|
|
370
|
+
sharp={false}
|
|
371
|
+
size={12}
|
|
372
|
+
solid={true}
|
|
373
|
+
thin={false}
|
|
374
|
+
/>
|
|
375
|
+
</View>
|
|
376
|
+
</View>
|
|
377
|
+
</View>
|
|
378
|
+
</View>
|
|
379
|
+
</View>
|
|
380
|
+
</View>,
|
|
381
|
+
<View
|
|
382
|
+
style={
|
|
383
|
+
{
|
|
384
|
+
"marginBottom": 16,
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
>
|
|
388
|
+
<View
|
|
389
|
+
style={
|
|
390
|
+
{
|
|
391
|
+
"flexDirection": "column",
|
|
392
|
+
"width": "100%",
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
>
|
|
396
|
+
<Text
|
|
397
|
+
style={
|
|
398
|
+
{
|
|
399
|
+
"color": "#1C1C1C",
|
|
400
|
+
"fontSize": 14,
|
|
401
|
+
"fontWeight": 600,
|
|
402
|
+
"lineHeight": 22.4,
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
>
|
|
406
|
+
Zipcode
|
|
407
|
+
</Text>
|
|
408
|
+
<View
|
|
409
|
+
style={
|
|
410
|
+
{
|
|
411
|
+
"alignItems": "center",
|
|
412
|
+
"backgroundColor": "#FFFFFF",
|
|
413
|
+
"borderColor": "#9A9A9A",
|
|
414
|
+
"borderRadius": 4,
|
|
415
|
+
"borderWidth": 1,
|
|
416
|
+
"flexDirection": "row",
|
|
417
|
+
"overflow": "hidden",
|
|
418
|
+
"paddingHorizontal": 12,
|
|
419
|
+
"paddingVertical": 8,
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
>
|
|
423
|
+
<TextInput
|
|
424
|
+
accessibilityHint="Enter text here"
|
|
425
|
+
accessibilityState={
|
|
426
|
+
{
|
|
427
|
+
"disabled": undefined,
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
aria-label="Text input field"
|
|
431
|
+
autoCapitalize="sentences"
|
|
432
|
+
autoCorrect={true}
|
|
433
|
+
blurOnSubmit={true}
|
|
434
|
+
keyboardType="default"
|
|
435
|
+
numberOfLines={1}
|
|
436
|
+
onBlur={[Function]}
|
|
437
|
+
onChangeText={[Function]}
|
|
438
|
+
onContentSizeChange={[Function]}
|
|
439
|
+
onFocus={[Function]}
|
|
440
|
+
onSubmitEditing={[Function]}
|
|
441
|
+
placeholderTextColor="#686868"
|
|
442
|
+
secureTextEntry={false}
|
|
443
|
+
style={
|
|
444
|
+
{
|
|
445
|
+
"color": "#1C1C1C",
|
|
446
|
+
"flex": 1,
|
|
447
|
+
"fontFamily": "text",
|
|
448
|
+
"fontSize": 16,
|
|
449
|
+
"gap": 10,
|
|
450
|
+
"height": 20,
|
|
451
|
+
"paddingVertical": 0,
|
|
452
|
+
"width": "100%",
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
testID="test-address-zip"
|
|
456
|
+
textContentType="none"
|
|
457
|
+
underlineColorAndroid="transparent"
|
|
458
|
+
value="62701"
|
|
459
|
+
/>
|
|
460
|
+
</View>
|
|
461
|
+
</View>
|
|
462
|
+
</View>,
|
|
463
|
+
]
|
|
464
|
+
`;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Avatar renders correctly with default props 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
accessibilityHint="Avatar image"
|
|
6
|
+
aria-label="John Doe's avatar"
|
|
7
|
+
aria-role="image"
|
|
8
|
+
style={
|
|
9
|
+
{
|
|
10
|
+
"height": 56,
|
|
11
|
+
"position": "relative",
|
|
12
|
+
"width": 56,
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
>
|
|
16
|
+
<View
|
|
17
|
+
accessibilityState={
|
|
18
|
+
{
|
|
19
|
+
"busy": undefined,
|
|
20
|
+
"checked": undefined,
|
|
21
|
+
"disabled": undefined,
|
|
22
|
+
"expanded": undefined,
|
|
23
|
+
"selected": undefined,
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
accessibilityValue={
|
|
27
|
+
{
|
|
28
|
+
"max": undefined,
|
|
29
|
+
"min": undefined,
|
|
30
|
+
"now": undefined,
|
|
31
|
+
"text": undefined,
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
accessible={true}
|
|
35
|
+
aria-role="button"
|
|
36
|
+
collapsable={false}
|
|
37
|
+
focusable={true}
|
|
38
|
+
onBlur={[Function]}
|
|
39
|
+
onClick={[Function]}
|
|
40
|
+
onFocus={[Function]}
|
|
41
|
+
onResponderGrant={[Function]}
|
|
42
|
+
onResponderMove={[Function]}
|
|
43
|
+
onResponderRelease={[Function]}
|
|
44
|
+
onResponderTerminate={[Function]}
|
|
45
|
+
onResponderTerminationRequest={[Function]}
|
|
46
|
+
onStartShouldSetResponder={[Function]}
|
|
47
|
+
style={
|
|
48
|
+
{
|
|
49
|
+
"borderRadius": 1,
|
|
50
|
+
"cursor": "auto",
|
|
51
|
+
"overflow": "hidden",
|
|
52
|
+
"position": "relative",
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
>
|
|
56
|
+
<Image
|
|
57
|
+
accessibilityIgnoresInvertColors={true}
|
|
58
|
+
onError={[Function]}
|
|
59
|
+
source={
|
|
60
|
+
{
|
|
61
|
+
"cache": "force-cache",
|
|
62
|
+
"uri": "https://example.com/avatar.jpg",
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
style={
|
|
66
|
+
{
|
|
67
|
+
"borderColor": "transparent",
|
|
68
|
+
"borderRadius": 28,
|
|
69
|
+
"borderWidth": 0,
|
|
70
|
+
"height": 56,
|
|
71
|
+
"overflow": "hidden",
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
testID="avatar-image"
|
|
75
|
+
/>
|
|
76
|
+
</View>
|
|
77
|
+
</View>
|
|
78
|
+
`;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Badge renders correctly with default props 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
style={
|
|
6
|
+
{
|
|
7
|
+
"alignItems": "flex-start",
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
>
|
|
11
|
+
<View
|
|
12
|
+
style={
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
"alignItems": "center",
|
|
16
|
+
"backgroundColor": "#2B6072",
|
|
17
|
+
"borderRadius": 4,
|
|
18
|
+
"flexDirection": "row",
|
|
19
|
+
"height": "auto",
|
|
20
|
+
"justifyContent": "center",
|
|
21
|
+
"paddingHorizontal": 8,
|
|
22
|
+
"paddingVertical": 4,
|
|
23
|
+
"width": "auto",
|
|
24
|
+
},
|
|
25
|
+
false,
|
|
26
|
+
false,
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
>
|
|
30
|
+
<Text
|
|
31
|
+
style={
|
|
32
|
+
{
|
|
33
|
+
"color": "#FFFFFF",
|
|
34
|
+
"fontFamily": "text",
|
|
35
|
+
"fontSize": 10,
|
|
36
|
+
"fontWeight": "700",
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
>
|
|
40
|
+
Test
|
|
41
|
+
</Text>
|
|
42
|
+
</View>
|
|
43
|
+
</View>
|
|
44
|
+
`;
|