@hero-design/rn 7.23.0 → 7.24.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/.turbo/turbo-build.log +2 -2
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +857 -8825
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +858 -8824
- package/package.json +6 -4
- package/rollup.config.js +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -0
- package/src/components/Empty/index.tsx +1 -2
- package/src/components/Icon/HeroIcon/fonts/hero-icons.ttf +0 -0
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -0
- package/src/components/Icon/HeroIcon/index.tsx +3 -7
- package/src/components/Icon/IconList.ts +8 -5
- package/src/components/Icon/index.tsx +1 -0
- package/src/components/RichTextEditor/RichTextEditor.tsx +1 -4
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -4
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Spinner/AnimatedSpinner.tsx +22 -7
- package/src/components/Spinner/StyledSpinner.tsx +16 -11
- package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +3 -1
- package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +42 -31
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +8 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +532 -72
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +8 -4
- package/src/components/Spinner/index.tsx +6 -1
- package/src/components/Swipeable/StyledSwipeable.tsx +11 -0
- package/src/components/Swipeable/SwipeableAction.tsx +45 -0
- package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +37 -0
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +130 -0
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +33 -0
- package/src/components/Swipeable/__tests__/index.spec.tsx +34 -0
- package/src/components/Swipeable/index.tsx +148 -0
- package/src/components/TextInput/StyledTextInput.tsx +6 -12
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +12 -6
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +22 -138
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +114 -124
- package/src/components/TextInput/index.tsx +7 -6
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -0
- package/src/index.ts +4 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +11 -6
- package/src/theme/components/spinner.ts +4 -1
- package/src/theme/components/swipeable.ts +13 -0
- package/src/theme/components/textInput.ts +0 -5
- package/src/theme/getTheme.ts +3 -0
- package/src/theme/global/colors/jobs.ts +0 -1
- package/src/theme/global/colors/work.ts +0 -2
- package/src/types.ts +2 -0
- package/testUtils/setup.tsx +13 -0
- package/types/components/Empty/index.d.ts +1 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +4 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
- package/types/components/Spinner/StyledSpinner.d.ts +1 -0
- package/types/components/Spinner/index.d.ts +5 -1
- package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
- package/types/components/Swipeable/index.d.ts +41 -0
- package/types/components/TextInput/StyledTextInput.d.ts +2 -1
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/index.d.ts +3 -2
- package/types/theme/components/spinner.d.ts +4 -1
- package/types/theme/components/swipeable.d.ts +9 -0
- package/types/theme/components/textInput.d.ts +0 -5
- package/types/theme/getTheme.d.ts +2 -0
- package/types/types.d.ts +2 -1
- package/src/components/Icon/HeroIcon/selection.json +0 -7029
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`StyledSpinnerContainer renders correctly
|
|
3
|
+
exports[`StyledSpinnerContainer renders correctly when intent is $themeIntent, and size is $themeSize 1`] = `
|
|
4
4
|
<View
|
|
5
5
|
style={
|
|
6
6
|
Array [
|
|
@@ -33,13 +33,13 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
|
|
|
33
33
|
Array [
|
|
34
34
|
Object {
|
|
35
35
|
"flexDirection": "row",
|
|
36
|
-
"marginBottom":
|
|
36
|
+
"marginBottom": 4,
|
|
37
37
|
},
|
|
38
38
|
Object {},
|
|
39
39
|
]
|
|
40
40
|
}
|
|
41
41
|
themePosition="top"
|
|
42
|
-
themeSize="
|
|
42
|
+
themeSize="small"
|
|
43
43
|
>
|
|
44
44
|
<View
|
|
45
45
|
collapsable={false}
|
|
@@ -49,15 +49,16 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
|
|
|
49
49
|
Object {
|
|
50
50
|
"backgroundColor": "#001f23",
|
|
51
51
|
"borderRadius": 999,
|
|
52
|
-
"height":
|
|
53
|
-
"opacity":
|
|
54
|
-
"width":
|
|
52
|
+
"height": 8,
|
|
53
|
+
"opacity": 0.9,
|
|
54
|
+
"width": 8,
|
|
55
55
|
},
|
|
56
56
|
Object {},
|
|
57
57
|
]
|
|
58
58
|
}
|
|
59
|
+
themeIntent="primary"
|
|
59
60
|
themePosition="topLeft"
|
|
60
|
-
themeSize="
|
|
61
|
+
themeSize="small"
|
|
61
62
|
/>
|
|
62
63
|
<View
|
|
63
64
|
collapsable={false}
|
|
@@ -67,16 +68,17 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
|
|
|
67
68
|
Object {
|
|
68
69
|
"backgroundColor": "#001f23",
|
|
69
70
|
"borderRadius": 999,
|
|
70
|
-
"height":
|
|
71
|
-
"marginLeft":
|
|
72
|
-
"opacity": 0.
|
|
73
|
-
"width":
|
|
71
|
+
"height": 8,
|
|
72
|
+
"marginLeft": 4,
|
|
73
|
+
"opacity": 0.675,
|
|
74
|
+
"width": 8,
|
|
74
75
|
},
|
|
75
76
|
Object {},
|
|
76
77
|
]
|
|
77
78
|
}
|
|
79
|
+
themeIntent="primary"
|
|
78
80
|
themePosition="topRight"
|
|
79
|
-
themeSize="
|
|
81
|
+
themeSize="small"
|
|
80
82
|
/>
|
|
81
83
|
</View>
|
|
82
84
|
<View
|
|
@@ -92,7 +94,7 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
|
|
|
92
94
|
]
|
|
93
95
|
}
|
|
94
96
|
themePosition="bottom"
|
|
95
|
-
themeSize="
|
|
97
|
+
themeSize="small"
|
|
96
98
|
>
|
|
97
99
|
<View
|
|
98
100
|
collapsable={false}
|
|
@@ -102,15 +104,16 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
|
|
|
102
104
|
Object {
|
|
103
105
|
"backgroundColor": "#001f23",
|
|
104
106
|
"borderRadius": 999,
|
|
105
|
-
"height":
|
|
106
|
-
"opacity": 0.
|
|
107
|
-
"width":
|
|
107
|
+
"height": 8,
|
|
108
|
+
"opacity": 0.45,
|
|
109
|
+
"width": 8,
|
|
108
110
|
},
|
|
109
111
|
Object {},
|
|
110
112
|
]
|
|
111
113
|
}
|
|
114
|
+
themeIntent="primary"
|
|
112
115
|
themePosition="bottomLeft"
|
|
113
|
-
themeSize="
|
|
116
|
+
themeSize="small"
|
|
114
117
|
/>
|
|
115
118
|
<View
|
|
116
119
|
collapsable={false}
|
|
@@ -120,23 +123,24 @@ exports[`StyledSpinnerContainer renders correctly in medium size 1`] = `
|
|
|
120
123
|
Object {
|
|
121
124
|
"backgroundColor": "#001f23",
|
|
122
125
|
"borderRadius": 999,
|
|
123
|
-
"height":
|
|
124
|
-
"marginLeft":
|
|
125
|
-
"opacity": 0.
|
|
126
|
-
"width":
|
|
126
|
+
"height": 8,
|
|
127
|
+
"marginLeft": 4,
|
|
128
|
+
"opacity": 0.225,
|
|
129
|
+
"width": 8,
|
|
127
130
|
},
|
|
128
131
|
Object {},
|
|
129
132
|
]
|
|
130
133
|
}
|
|
134
|
+
themeIntent="primary"
|
|
131
135
|
themePosition="bottomRight"
|
|
132
|
-
themeSize="
|
|
136
|
+
themeSize="small"
|
|
133
137
|
/>
|
|
134
138
|
</View>
|
|
135
139
|
</View>
|
|
136
140
|
</View>
|
|
137
141
|
`;
|
|
138
142
|
|
|
139
|
-
exports[`StyledSpinnerContainer renders correctly
|
|
143
|
+
exports[`StyledSpinnerContainer renders correctly when intent is $themeIntent, and size is $themeSize 2`] = `
|
|
140
144
|
<View
|
|
141
145
|
style={
|
|
142
146
|
Array [
|
|
@@ -183,15 +187,16 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
|
|
|
183
187
|
style={
|
|
184
188
|
Array [
|
|
185
189
|
Object {
|
|
186
|
-
"backgroundColor": "#
|
|
190
|
+
"backgroundColor": "#ffffff",
|
|
187
191
|
"borderRadius": 999,
|
|
188
192
|
"height": 8,
|
|
189
|
-
"opacity":
|
|
193
|
+
"opacity": 0.9,
|
|
190
194
|
"width": 8,
|
|
191
195
|
},
|
|
192
196
|
Object {},
|
|
193
197
|
]
|
|
194
198
|
}
|
|
199
|
+
themeIntent="inverted"
|
|
195
200
|
themePosition="topLeft"
|
|
196
201
|
themeSize="small"
|
|
197
202
|
/>
|
|
@@ -201,16 +206,17 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
|
|
|
201
206
|
style={
|
|
202
207
|
Array [
|
|
203
208
|
Object {
|
|
204
|
-
"backgroundColor": "#
|
|
209
|
+
"backgroundColor": "#ffffff",
|
|
205
210
|
"borderRadius": 999,
|
|
206
211
|
"height": 8,
|
|
207
212
|
"marginLeft": 4,
|
|
208
|
-
"opacity": 0.
|
|
213
|
+
"opacity": 0.675,
|
|
209
214
|
"width": 8,
|
|
210
215
|
},
|
|
211
216
|
Object {},
|
|
212
217
|
]
|
|
213
218
|
}
|
|
219
|
+
themeIntent="inverted"
|
|
214
220
|
themePosition="topRight"
|
|
215
221
|
themeSize="small"
|
|
216
222
|
/>
|
|
@@ -236,15 +242,16 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
|
|
|
236
242
|
style={
|
|
237
243
|
Array [
|
|
238
244
|
Object {
|
|
239
|
-
"backgroundColor": "#
|
|
245
|
+
"backgroundColor": "#ffffff",
|
|
240
246
|
"borderRadius": 999,
|
|
241
247
|
"height": 8,
|
|
242
|
-
"opacity": 0.
|
|
248
|
+
"opacity": 0.45,
|
|
243
249
|
"width": 8,
|
|
244
250
|
},
|
|
245
251
|
Object {},
|
|
246
252
|
]
|
|
247
253
|
}
|
|
254
|
+
themeIntent="inverted"
|
|
248
255
|
themePosition="bottomLeft"
|
|
249
256
|
themeSize="small"
|
|
250
257
|
/>
|
|
@@ -254,16 +261,17 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
|
|
|
254
261
|
style={
|
|
255
262
|
Array [
|
|
256
263
|
Object {
|
|
257
|
-
"backgroundColor": "#
|
|
264
|
+
"backgroundColor": "#ffffff",
|
|
258
265
|
"borderRadius": 999,
|
|
259
266
|
"height": 8,
|
|
260
267
|
"marginLeft": 4,
|
|
261
|
-
"opacity": 0.
|
|
268
|
+
"opacity": 0.225,
|
|
262
269
|
"width": 8,
|
|
263
270
|
},
|
|
264
271
|
Object {},
|
|
265
272
|
]
|
|
266
273
|
}
|
|
274
|
+
themeIntent="inverted"
|
|
267
275
|
themePosition="bottomRight"
|
|
268
276
|
themeSize="small"
|
|
269
277
|
/>
|
|
@@ -272,90 +280,347 @@ exports[`StyledSpinnerContainer renders correctly in small size 1`] = `
|
|
|
272
280
|
</View>
|
|
273
281
|
`;
|
|
274
282
|
|
|
275
|
-
exports[`
|
|
283
|
+
exports[`StyledSpinnerContainer renders correctly when intent is $themeIntent, and size is $themeSize 3`] = `
|
|
276
284
|
<View
|
|
277
285
|
style={
|
|
278
286
|
Array [
|
|
279
287
|
Object {
|
|
280
|
-
"
|
|
281
|
-
"
|
|
288
|
+
"alignItems": "center",
|
|
289
|
+
"height": "100%",
|
|
290
|
+
"justifyContent": "center",
|
|
282
291
|
},
|
|
283
292
|
undefined,
|
|
284
293
|
]
|
|
285
294
|
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
295
|
+
>
|
|
296
|
+
<View
|
|
297
|
+
collapsable={false}
|
|
298
|
+
nativeID="animatedComponent"
|
|
299
|
+
style={
|
|
300
|
+
Object {
|
|
301
|
+
"transform": Array [
|
|
302
|
+
Object {
|
|
303
|
+
"rotate": "0deg",
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
>
|
|
309
|
+
<View
|
|
310
|
+
collapsable={false}
|
|
311
|
+
nativeID="animatedComponent"
|
|
312
|
+
style={
|
|
313
|
+
Array [
|
|
314
|
+
Object {
|
|
315
|
+
"flexDirection": "row",
|
|
316
|
+
"marginBottom": 8,
|
|
317
|
+
},
|
|
318
|
+
Object {},
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
themePosition="top"
|
|
322
|
+
themeSize="medium"
|
|
323
|
+
>
|
|
324
|
+
<View
|
|
325
|
+
collapsable={false}
|
|
326
|
+
nativeID="animatedComponent"
|
|
327
|
+
style={
|
|
328
|
+
Array [
|
|
329
|
+
Object {
|
|
330
|
+
"backgroundColor": "#001f23",
|
|
331
|
+
"borderRadius": 999,
|
|
332
|
+
"height": 16,
|
|
333
|
+
"opacity": 0.9,
|
|
334
|
+
"width": 16,
|
|
335
|
+
},
|
|
336
|
+
Object {},
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
themeIntent="primary"
|
|
340
|
+
themePosition="topLeft"
|
|
341
|
+
themeSize="medium"
|
|
342
|
+
/>
|
|
343
|
+
<View
|
|
344
|
+
collapsable={false}
|
|
345
|
+
nativeID="animatedComponent"
|
|
346
|
+
style={
|
|
347
|
+
Array [
|
|
348
|
+
Object {
|
|
349
|
+
"backgroundColor": "#001f23",
|
|
350
|
+
"borderRadius": 999,
|
|
351
|
+
"height": 16,
|
|
352
|
+
"marginLeft": 8,
|
|
353
|
+
"opacity": 0.675,
|
|
354
|
+
"width": 16,
|
|
355
|
+
},
|
|
356
|
+
Object {},
|
|
357
|
+
]
|
|
358
|
+
}
|
|
359
|
+
themeIntent="primary"
|
|
360
|
+
themePosition="topRight"
|
|
361
|
+
themeSize="medium"
|
|
362
|
+
/>
|
|
363
|
+
</View>
|
|
364
|
+
<View
|
|
365
|
+
collapsable={false}
|
|
366
|
+
nativeID="animatedComponent"
|
|
367
|
+
style={
|
|
368
|
+
Array [
|
|
369
|
+
Object {
|
|
370
|
+
"flexDirection": "row",
|
|
371
|
+
"marginBottom": 0,
|
|
372
|
+
},
|
|
373
|
+
Object {},
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
themePosition="bottom"
|
|
377
|
+
themeSize="medium"
|
|
378
|
+
>
|
|
379
|
+
<View
|
|
380
|
+
collapsable={false}
|
|
381
|
+
nativeID="animatedComponent"
|
|
382
|
+
style={
|
|
383
|
+
Array [
|
|
384
|
+
Object {
|
|
385
|
+
"backgroundColor": "#001f23",
|
|
386
|
+
"borderRadius": 999,
|
|
387
|
+
"height": 16,
|
|
388
|
+
"opacity": 0.45,
|
|
389
|
+
"width": 16,
|
|
390
|
+
},
|
|
391
|
+
Object {},
|
|
392
|
+
]
|
|
393
|
+
}
|
|
394
|
+
themeIntent="primary"
|
|
395
|
+
themePosition="bottomLeft"
|
|
396
|
+
themeSize="medium"
|
|
397
|
+
/>
|
|
398
|
+
<View
|
|
399
|
+
collapsable={false}
|
|
400
|
+
nativeID="animatedComponent"
|
|
401
|
+
style={
|
|
402
|
+
Array [
|
|
403
|
+
Object {
|
|
404
|
+
"backgroundColor": "#001f23",
|
|
405
|
+
"borderRadius": 999,
|
|
406
|
+
"height": 16,
|
|
407
|
+
"marginLeft": 8,
|
|
408
|
+
"opacity": 0.225,
|
|
409
|
+
"width": 16,
|
|
410
|
+
},
|
|
411
|
+
Object {},
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
themeIntent="primary"
|
|
415
|
+
themePosition="bottomRight"
|
|
416
|
+
themeSize="medium"
|
|
417
|
+
/>
|
|
418
|
+
</View>
|
|
419
|
+
</View>
|
|
420
|
+
</View>
|
|
289
421
|
`;
|
|
290
422
|
|
|
291
|
-
exports[`
|
|
423
|
+
exports[`StyledSpinnerContainer renders correctly when intent is $themeIntent, and size is $themeSize 4`] = `
|
|
292
424
|
<View
|
|
293
425
|
style={
|
|
294
426
|
Array [
|
|
295
427
|
Object {
|
|
296
|
-
"
|
|
297
|
-
"
|
|
428
|
+
"alignItems": "center",
|
|
429
|
+
"height": "100%",
|
|
430
|
+
"justifyContent": "center",
|
|
298
431
|
},
|
|
299
432
|
undefined,
|
|
300
433
|
]
|
|
301
434
|
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
435
|
+
>
|
|
436
|
+
<View
|
|
437
|
+
collapsable={false}
|
|
438
|
+
nativeID="animatedComponent"
|
|
439
|
+
style={
|
|
440
|
+
Object {
|
|
441
|
+
"transform": Array [
|
|
442
|
+
Object {
|
|
443
|
+
"rotate": "0deg",
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
>
|
|
449
|
+
<View
|
|
450
|
+
collapsable={false}
|
|
451
|
+
nativeID="animatedComponent"
|
|
452
|
+
style={
|
|
453
|
+
Array [
|
|
454
|
+
Object {
|
|
455
|
+
"flexDirection": "row",
|
|
456
|
+
"marginBottom": 8,
|
|
457
|
+
},
|
|
458
|
+
Object {},
|
|
459
|
+
]
|
|
460
|
+
}
|
|
461
|
+
themePosition="top"
|
|
462
|
+
themeSize="medium"
|
|
463
|
+
>
|
|
464
|
+
<View
|
|
465
|
+
collapsable={false}
|
|
466
|
+
nativeID="animatedComponent"
|
|
467
|
+
style={
|
|
468
|
+
Array [
|
|
469
|
+
Object {
|
|
470
|
+
"backgroundColor": "#ffffff",
|
|
471
|
+
"borderRadius": 999,
|
|
472
|
+
"height": 16,
|
|
473
|
+
"opacity": 0.9,
|
|
474
|
+
"width": 16,
|
|
475
|
+
},
|
|
476
|
+
Object {},
|
|
477
|
+
]
|
|
478
|
+
}
|
|
479
|
+
themeIntent="inverted"
|
|
480
|
+
themePosition="topLeft"
|
|
481
|
+
themeSize="medium"
|
|
482
|
+
/>
|
|
483
|
+
<View
|
|
484
|
+
collapsable={false}
|
|
485
|
+
nativeID="animatedComponent"
|
|
486
|
+
style={
|
|
487
|
+
Array [
|
|
488
|
+
Object {
|
|
489
|
+
"backgroundColor": "#ffffff",
|
|
490
|
+
"borderRadius": 999,
|
|
491
|
+
"height": 16,
|
|
492
|
+
"marginLeft": 8,
|
|
493
|
+
"opacity": 0.675,
|
|
494
|
+
"width": 16,
|
|
495
|
+
},
|
|
496
|
+
Object {},
|
|
497
|
+
]
|
|
498
|
+
}
|
|
499
|
+
themeIntent="inverted"
|
|
500
|
+
themePosition="topRight"
|
|
501
|
+
themeSize="medium"
|
|
502
|
+
/>
|
|
503
|
+
</View>
|
|
504
|
+
<View
|
|
505
|
+
collapsable={false}
|
|
506
|
+
nativeID="animatedComponent"
|
|
507
|
+
style={
|
|
508
|
+
Array [
|
|
509
|
+
Object {
|
|
510
|
+
"flexDirection": "row",
|
|
511
|
+
"marginBottom": 0,
|
|
512
|
+
},
|
|
513
|
+
Object {},
|
|
514
|
+
]
|
|
515
|
+
}
|
|
516
|
+
themePosition="bottom"
|
|
517
|
+
themeSize="medium"
|
|
518
|
+
>
|
|
519
|
+
<View
|
|
520
|
+
collapsable={false}
|
|
521
|
+
nativeID="animatedComponent"
|
|
522
|
+
style={
|
|
523
|
+
Array [
|
|
524
|
+
Object {
|
|
525
|
+
"backgroundColor": "#ffffff",
|
|
526
|
+
"borderRadius": 999,
|
|
527
|
+
"height": 16,
|
|
528
|
+
"opacity": 0.45,
|
|
529
|
+
"width": 16,
|
|
530
|
+
},
|
|
531
|
+
Object {},
|
|
532
|
+
]
|
|
533
|
+
}
|
|
534
|
+
themeIntent="inverted"
|
|
535
|
+
themePosition="bottomLeft"
|
|
536
|
+
themeSize="medium"
|
|
537
|
+
/>
|
|
538
|
+
<View
|
|
539
|
+
collapsable={false}
|
|
540
|
+
nativeID="animatedComponent"
|
|
541
|
+
style={
|
|
542
|
+
Array [
|
|
543
|
+
Object {
|
|
544
|
+
"backgroundColor": "#ffffff",
|
|
545
|
+
"borderRadius": 999,
|
|
546
|
+
"height": 16,
|
|
547
|
+
"marginLeft": 8,
|
|
548
|
+
"opacity": 0.225,
|
|
549
|
+
"width": 16,
|
|
550
|
+
},
|
|
551
|
+
Object {},
|
|
552
|
+
]
|
|
553
|
+
}
|
|
554
|
+
themeIntent="inverted"
|
|
555
|
+
themePosition="bottomRight"
|
|
556
|
+
themeSize="medium"
|
|
557
|
+
/>
|
|
558
|
+
</View>
|
|
559
|
+
</View>
|
|
560
|
+
</View>
|
|
305
561
|
`;
|
|
306
562
|
|
|
307
|
-
exports[`
|
|
563
|
+
exports[`StyledSpinnerDot renders correctly when position is bottomLeft, size is medium, intent is inverted 1`] = `
|
|
308
564
|
<View
|
|
309
565
|
style={
|
|
310
566
|
Array [
|
|
311
567
|
Object {
|
|
312
|
-
"
|
|
313
|
-
"
|
|
568
|
+
"backgroundColor": "#ffffff",
|
|
569
|
+
"borderRadius": 999,
|
|
570
|
+
"height": 16,
|
|
571
|
+
"opacity": 0.45,
|
|
572
|
+
"width": 16,
|
|
314
573
|
},
|
|
315
574
|
undefined,
|
|
316
575
|
]
|
|
317
576
|
}
|
|
318
|
-
|
|
577
|
+
themeIntent="inverted"
|
|
578
|
+
themePosition="bottomLeft"
|
|
319
579
|
themeSize="medium"
|
|
320
580
|
/>
|
|
321
581
|
`;
|
|
322
582
|
|
|
323
|
-
exports[`
|
|
583
|
+
exports[`StyledSpinnerDot renders correctly when position is bottomLeft, size is medium, intent is primary 1`] = `
|
|
324
584
|
<View
|
|
325
585
|
style={
|
|
326
586
|
Array [
|
|
327
587
|
Object {
|
|
328
|
-
"
|
|
329
|
-
"
|
|
588
|
+
"backgroundColor": "#001f23",
|
|
589
|
+
"borderRadius": 999,
|
|
590
|
+
"height": 16,
|
|
591
|
+
"opacity": 0.45,
|
|
592
|
+
"width": 16,
|
|
330
593
|
},
|
|
331
594
|
undefined,
|
|
332
595
|
]
|
|
333
596
|
}
|
|
334
|
-
|
|
335
|
-
|
|
597
|
+
themeIntent="primary"
|
|
598
|
+
themePosition="bottomLeft"
|
|
599
|
+
themeSize="medium"
|
|
336
600
|
/>
|
|
337
601
|
`;
|
|
338
602
|
|
|
339
|
-
exports[`
|
|
603
|
+
exports[`StyledSpinnerDot renders correctly when position is bottomLeft, size is small, intent is inverted 1`] = `
|
|
340
604
|
<View
|
|
341
605
|
style={
|
|
342
606
|
Array [
|
|
343
607
|
Object {
|
|
344
|
-
"backgroundColor": "#
|
|
608
|
+
"backgroundColor": "#ffffff",
|
|
345
609
|
"borderRadius": 999,
|
|
346
|
-
"height":
|
|
347
|
-
"opacity": 0.
|
|
348
|
-
"width":
|
|
610
|
+
"height": 8,
|
|
611
|
+
"opacity": 0.45,
|
|
612
|
+
"width": 8,
|
|
349
613
|
},
|
|
350
614
|
undefined,
|
|
351
615
|
]
|
|
352
616
|
}
|
|
617
|
+
themeIntent="inverted"
|
|
353
618
|
themePosition="bottomLeft"
|
|
354
|
-
themeSize="
|
|
619
|
+
themeSize="small"
|
|
355
620
|
/>
|
|
356
621
|
`;
|
|
357
622
|
|
|
358
|
-
exports[`
|
|
623
|
+
exports[`StyledSpinnerDot renders correctly when position is bottomLeft, size is small, intent is primary 1`] = `
|
|
359
624
|
<View
|
|
360
625
|
style={
|
|
361
626
|
Array [
|
|
@@ -363,18 +628,40 @@ exports[`StyledSpinnerText renders correctly when position is bottomLeft, size i
|
|
|
363
628
|
"backgroundColor": "#001f23",
|
|
364
629
|
"borderRadius": 999,
|
|
365
630
|
"height": 8,
|
|
366
|
-
"opacity": 0.
|
|
631
|
+
"opacity": 0.45,
|
|
367
632
|
"width": 8,
|
|
368
633
|
},
|
|
369
634
|
undefined,
|
|
370
635
|
]
|
|
371
636
|
}
|
|
637
|
+
themeIntent="primary"
|
|
372
638
|
themePosition="bottomLeft"
|
|
373
639
|
themeSize="small"
|
|
374
640
|
/>
|
|
375
641
|
`;
|
|
376
642
|
|
|
377
|
-
exports[`
|
|
643
|
+
exports[`StyledSpinnerDot renders correctly when position is bottomRight, size is medium, intent is inverted 1`] = `
|
|
644
|
+
<View
|
|
645
|
+
style={
|
|
646
|
+
Array [
|
|
647
|
+
Object {
|
|
648
|
+
"backgroundColor": "#ffffff",
|
|
649
|
+
"borderRadius": 999,
|
|
650
|
+
"height": 16,
|
|
651
|
+
"marginLeft": 8,
|
|
652
|
+
"opacity": 0.225,
|
|
653
|
+
"width": 16,
|
|
654
|
+
},
|
|
655
|
+
undefined,
|
|
656
|
+
]
|
|
657
|
+
}
|
|
658
|
+
themeIntent="inverted"
|
|
659
|
+
themePosition="bottomRight"
|
|
660
|
+
themeSize="medium"
|
|
661
|
+
/>
|
|
662
|
+
`;
|
|
663
|
+
|
|
664
|
+
exports[`StyledSpinnerDot renders correctly when position is bottomRight, size is medium, intent is primary 1`] = `
|
|
378
665
|
<View
|
|
379
666
|
style={
|
|
380
667
|
Array [
|
|
@@ -383,18 +670,40 @@ exports[`StyledSpinnerText renders correctly when position is bottomRight, size
|
|
|
383
670
|
"borderRadius": 999,
|
|
384
671
|
"height": 16,
|
|
385
672
|
"marginLeft": 8,
|
|
386
|
-
"opacity": 0.
|
|
673
|
+
"opacity": 0.225,
|
|
387
674
|
"width": 16,
|
|
388
675
|
},
|
|
389
676
|
undefined,
|
|
390
677
|
]
|
|
391
678
|
}
|
|
679
|
+
themeIntent="primary"
|
|
392
680
|
themePosition="bottomRight"
|
|
393
681
|
themeSize="medium"
|
|
394
682
|
/>
|
|
395
683
|
`;
|
|
396
684
|
|
|
397
|
-
exports[`
|
|
685
|
+
exports[`StyledSpinnerDot renders correctly when position is bottomRight, size is small, intent is inverted 1`] = `
|
|
686
|
+
<View
|
|
687
|
+
style={
|
|
688
|
+
Array [
|
|
689
|
+
Object {
|
|
690
|
+
"backgroundColor": "#ffffff",
|
|
691
|
+
"borderRadius": 999,
|
|
692
|
+
"height": 8,
|
|
693
|
+
"marginLeft": 4,
|
|
694
|
+
"opacity": 0.225,
|
|
695
|
+
"width": 8,
|
|
696
|
+
},
|
|
697
|
+
undefined,
|
|
698
|
+
]
|
|
699
|
+
}
|
|
700
|
+
themeIntent="inverted"
|
|
701
|
+
themePosition="bottomRight"
|
|
702
|
+
themeSize="small"
|
|
703
|
+
/>
|
|
704
|
+
`;
|
|
705
|
+
|
|
706
|
+
exports[`StyledSpinnerDot renders correctly when position is bottomRight, size is small, intent is primary 1`] = `
|
|
398
707
|
<View
|
|
399
708
|
style={
|
|
400
709
|
Array [
|
|
@@ -403,18 +712,39 @@ exports[`StyledSpinnerText renders correctly when position is bottomRight, size
|
|
|
403
712
|
"borderRadius": 999,
|
|
404
713
|
"height": 8,
|
|
405
714
|
"marginLeft": 4,
|
|
406
|
-
"opacity": 0.
|
|
715
|
+
"opacity": 0.225,
|
|
407
716
|
"width": 8,
|
|
408
717
|
},
|
|
409
718
|
undefined,
|
|
410
719
|
]
|
|
411
720
|
}
|
|
721
|
+
themeIntent="primary"
|
|
412
722
|
themePosition="bottomRight"
|
|
413
723
|
themeSize="small"
|
|
414
724
|
/>
|
|
415
725
|
`;
|
|
416
726
|
|
|
417
|
-
exports[`
|
|
727
|
+
exports[`StyledSpinnerDot renders correctly when position is topLeft, size is medium, intent is inverted 1`] = `
|
|
728
|
+
<View
|
|
729
|
+
style={
|
|
730
|
+
Array [
|
|
731
|
+
Object {
|
|
732
|
+
"backgroundColor": "#ffffff",
|
|
733
|
+
"borderRadius": 999,
|
|
734
|
+
"height": 16,
|
|
735
|
+
"opacity": 0.9,
|
|
736
|
+
"width": 16,
|
|
737
|
+
},
|
|
738
|
+
undefined,
|
|
739
|
+
]
|
|
740
|
+
}
|
|
741
|
+
themeIntent="inverted"
|
|
742
|
+
themePosition="topLeft"
|
|
743
|
+
themeSize="medium"
|
|
744
|
+
/>
|
|
745
|
+
`;
|
|
746
|
+
|
|
747
|
+
exports[`StyledSpinnerDot renders correctly when position is topLeft, size is medium, intent is primary 1`] = `
|
|
418
748
|
<View
|
|
419
749
|
style={
|
|
420
750
|
Array [
|
|
@@ -422,18 +752,39 @@ exports[`StyledSpinnerText renders correctly when position is topLeft, size is m
|
|
|
422
752
|
"backgroundColor": "#001f23",
|
|
423
753
|
"borderRadius": 999,
|
|
424
754
|
"height": 16,
|
|
425
|
-
"opacity":
|
|
755
|
+
"opacity": 0.9,
|
|
426
756
|
"width": 16,
|
|
427
757
|
},
|
|
428
758
|
undefined,
|
|
429
759
|
]
|
|
430
760
|
}
|
|
761
|
+
themeIntent="primary"
|
|
431
762
|
themePosition="topLeft"
|
|
432
763
|
themeSize="medium"
|
|
433
764
|
/>
|
|
434
765
|
`;
|
|
435
766
|
|
|
436
|
-
exports[`
|
|
767
|
+
exports[`StyledSpinnerDot renders correctly when position is topLeft, size is small, intent is inverted 1`] = `
|
|
768
|
+
<View
|
|
769
|
+
style={
|
|
770
|
+
Array [
|
|
771
|
+
Object {
|
|
772
|
+
"backgroundColor": "#ffffff",
|
|
773
|
+
"borderRadius": 999,
|
|
774
|
+
"height": 8,
|
|
775
|
+
"opacity": 0.9,
|
|
776
|
+
"width": 8,
|
|
777
|
+
},
|
|
778
|
+
undefined,
|
|
779
|
+
]
|
|
780
|
+
}
|
|
781
|
+
themeIntent="inverted"
|
|
782
|
+
themePosition="topLeft"
|
|
783
|
+
themeSize="small"
|
|
784
|
+
/>
|
|
785
|
+
`;
|
|
786
|
+
|
|
787
|
+
exports[`StyledSpinnerDot renders correctly when position is topLeft, size is small, intent is primary 1`] = `
|
|
437
788
|
<View
|
|
438
789
|
style={
|
|
439
790
|
Array [
|
|
@@ -441,18 +792,40 @@ exports[`StyledSpinnerText renders correctly when position is topLeft, size is s
|
|
|
441
792
|
"backgroundColor": "#001f23",
|
|
442
793
|
"borderRadius": 999,
|
|
443
794
|
"height": 8,
|
|
444
|
-
"opacity":
|
|
795
|
+
"opacity": 0.9,
|
|
445
796
|
"width": 8,
|
|
446
797
|
},
|
|
447
798
|
undefined,
|
|
448
799
|
]
|
|
449
800
|
}
|
|
801
|
+
themeIntent="primary"
|
|
450
802
|
themePosition="topLeft"
|
|
451
803
|
themeSize="small"
|
|
452
804
|
/>
|
|
453
805
|
`;
|
|
454
806
|
|
|
455
|
-
exports[`
|
|
807
|
+
exports[`StyledSpinnerDot renders correctly when position is topRight, size is medium, intent is inverted 1`] = `
|
|
808
|
+
<View
|
|
809
|
+
style={
|
|
810
|
+
Array [
|
|
811
|
+
Object {
|
|
812
|
+
"backgroundColor": "#ffffff",
|
|
813
|
+
"borderRadius": 999,
|
|
814
|
+
"height": 16,
|
|
815
|
+
"marginLeft": 8,
|
|
816
|
+
"opacity": 0.675,
|
|
817
|
+
"width": 16,
|
|
818
|
+
},
|
|
819
|
+
undefined,
|
|
820
|
+
]
|
|
821
|
+
}
|
|
822
|
+
themeIntent="inverted"
|
|
823
|
+
themePosition="topRight"
|
|
824
|
+
themeSize="medium"
|
|
825
|
+
/>
|
|
826
|
+
`;
|
|
827
|
+
|
|
828
|
+
exports[`StyledSpinnerDot renders correctly when position is topRight, size is medium, intent is primary 1`] = `
|
|
456
829
|
<View
|
|
457
830
|
style={
|
|
458
831
|
Array [
|
|
@@ -461,18 +834,40 @@ exports[`StyledSpinnerText renders correctly when position is topRight, size is
|
|
|
461
834
|
"borderRadius": 999,
|
|
462
835
|
"height": 16,
|
|
463
836
|
"marginLeft": 8,
|
|
464
|
-
"opacity": 0.
|
|
837
|
+
"opacity": 0.675,
|
|
465
838
|
"width": 16,
|
|
466
839
|
},
|
|
467
840
|
undefined,
|
|
468
841
|
]
|
|
469
842
|
}
|
|
843
|
+
themeIntent="primary"
|
|
470
844
|
themePosition="topRight"
|
|
471
845
|
themeSize="medium"
|
|
472
846
|
/>
|
|
473
847
|
`;
|
|
474
848
|
|
|
475
|
-
exports[`
|
|
849
|
+
exports[`StyledSpinnerDot renders correctly when position is topRight, size is small, intent is inverted 1`] = `
|
|
850
|
+
<View
|
|
851
|
+
style={
|
|
852
|
+
Array [
|
|
853
|
+
Object {
|
|
854
|
+
"backgroundColor": "#ffffff",
|
|
855
|
+
"borderRadius": 999,
|
|
856
|
+
"height": 8,
|
|
857
|
+
"marginLeft": 4,
|
|
858
|
+
"opacity": 0.675,
|
|
859
|
+
"width": 8,
|
|
860
|
+
},
|
|
861
|
+
undefined,
|
|
862
|
+
]
|
|
863
|
+
}
|
|
864
|
+
themeIntent="inverted"
|
|
865
|
+
themePosition="topRight"
|
|
866
|
+
themeSize="small"
|
|
867
|
+
/>
|
|
868
|
+
`;
|
|
869
|
+
|
|
870
|
+
exports[`StyledSpinnerDot renders correctly when position is topRight, size is small, intent is primary 1`] = `
|
|
476
871
|
<View
|
|
477
872
|
style={
|
|
478
873
|
Array [
|
|
@@ -481,13 +876,78 @@ exports[`StyledSpinnerText renders correctly when position is topRight, size is
|
|
|
481
876
|
"borderRadius": 999,
|
|
482
877
|
"height": 8,
|
|
483
878
|
"marginLeft": 4,
|
|
484
|
-
"opacity": 0.
|
|
879
|
+
"opacity": 0.675,
|
|
485
880
|
"width": 8,
|
|
486
881
|
},
|
|
487
882
|
undefined,
|
|
488
883
|
]
|
|
489
884
|
}
|
|
885
|
+
themeIntent="primary"
|
|
490
886
|
themePosition="topRight"
|
|
491
887
|
themeSize="small"
|
|
492
888
|
/>
|
|
493
889
|
`;
|
|
890
|
+
|
|
891
|
+
exports[`StyledSpinnerRow renders correctly when position is bottom, and size is medium 1`] = `
|
|
892
|
+
<View
|
|
893
|
+
style={
|
|
894
|
+
Array [
|
|
895
|
+
Object {
|
|
896
|
+
"flexDirection": "row",
|
|
897
|
+
"marginBottom": 0,
|
|
898
|
+
},
|
|
899
|
+
undefined,
|
|
900
|
+
]
|
|
901
|
+
}
|
|
902
|
+
themePosition="bottom"
|
|
903
|
+
themeSize="medium"
|
|
904
|
+
/>
|
|
905
|
+
`;
|
|
906
|
+
|
|
907
|
+
exports[`StyledSpinnerRow renders correctly when position is bottom, and size is small 1`] = `
|
|
908
|
+
<View
|
|
909
|
+
style={
|
|
910
|
+
Array [
|
|
911
|
+
Object {
|
|
912
|
+
"flexDirection": "row",
|
|
913
|
+
"marginBottom": 0,
|
|
914
|
+
},
|
|
915
|
+
undefined,
|
|
916
|
+
]
|
|
917
|
+
}
|
|
918
|
+
themePosition="bottom"
|
|
919
|
+
themeSize="small"
|
|
920
|
+
/>
|
|
921
|
+
`;
|
|
922
|
+
|
|
923
|
+
exports[`StyledSpinnerRow renders correctly when position is top, and size is medium 1`] = `
|
|
924
|
+
<View
|
|
925
|
+
style={
|
|
926
|
+
Array [
|
|
927
|
+
Object {
|
|
928
|
+
"flexDirection": "row",
|
|
929
|
+
"marginBottom": 8,
|
|
930
|
+
},
|
|
931
|
+
undefined,
|
|
932
|
+
]
|
|
933
|
+
}
|
|
934
|
+
themePosition="top"
|
|
935
|
+
themeSize="medium"
|
|
936
|
+
/>
|
|
937
|
+
`;
|
|
938
|
+
|
|
939
|
+
exports[`StyledSpinnerRow renders correctly when position is top, and size is small 1`] = `
|
|
940
|
+
<View
|
|
941
|
+
style={
|
|
942
|
+
Array [
|
|
943
|
+
Object {
|
|
944
|
+
"flexDirection": "row",
|
|
945
|
+
"marginBottom": 4,
|
|
946
|
+
},
|
|
947
|
+
undefined,
|
|
948
|
+
]
|
|
949
|
+
}
|
|
950
|
+
themePosition="top"
|
|
951
|
+
themeSize="small"
|
|
952
|
+
/>
|
|
953
|
+
`;
|