@hero-design/rn 8.42.3 → 8.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +11 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +670 -499
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +1109 -937
  7. package/package.json +7 -7
  8. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +197 -211
  9. package/src/components/BottomSheet/index.tsx +1 -1
  10. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
  11. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +0 -20
  12. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -70
  13. package/src/components/Button/StyledButton.tsx +4 -0
  14. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +16 -42
  15. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +10 -0
  16. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  17. package/src/components/Carousel/__tests__/index.spec.tsx +8 -10
  18. package/src/components/Chip/StyledChip.tsx +121 -0
  19. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +943 -0
  20. package/src/components/Chip/__tests__/index.spec.tsx +136 -0
  21. package/src/components/Chip/index.tsx +82 -0
  22. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -0
  23. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +417 -399
  24. package/src/components/Error/__tests__/index.spec.tsx +9 -6
  25. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  26. package/src/components/Icon/IconList.ts +1 -0
  27. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +8 -10
  28. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +367 -451
  29. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -10
  30. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +357 -419
  31. package/src/components/Success/__tests__/index.spec.tsx +9 -6
  32. package/src/components/Tabs/__tests__/SceneView.spec.tsx +19 -23
  33. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +417 -399
  34. package/src/index.ts +2 -0
  35. package/src/testHelpers/renderWithTheme.tsx +1 -7
  36. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +38 -1
  37. package/src/theme/components/button.ts +0 -1
  38. package/src/theme/components/chip.ts +47 -0
  39. package/src/theme/getTheme.ts +3 -0
  40. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -3
  41. package/types/components/Chip/StyledChip.d.ts +31 -0
  42. package/types/components/Chip/index.d.ts +26 -0
  43. package/types/components/Icon/IconList.d.ts +1 -1
  44. package/types/components/Icon/index.d.ts +1 -1
  45. package/types/components/Icon/utils.d.ts +1 -1
  46. package/types/index.d.ts +2 -1
  47. package/types/theme/components/button.d.ts +0 -1
  48. package/types/theme/components/chip.d.ts +40 -0
  49. package/types/theme/getTheme.d.ts +2 -0
  50. package/.turbo/turbo-publish:npm.log +0 -0
@@ -0,0 +1,943 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Chip does not render icon when variant is outlined 1`] = `
4
+ <View
5
+ accessible={true}
6
+ collapsable={false}
7
+ focusable={true}
8
+ onClick={[Function]}
9
+ onResponderGrant={[Function]}
10
+ onResponderMove={[Function]}
11
+ onResponderRelease={[Function]}
12
+ onResponderTerminate={[Function]}
13
+ onResponderTerminationRequest={[Function]}
14
+ onStartShouldSetResponder={[Function]}
15
+ style={
16
+ {
17
+ "alignItems": "center",
18
+ "alignSelf": "flex-start",
19
+ "backgroundColor": "transparent",
20
+ "borderColor": "#001f23",
21
+ "borderRadius": 999,
22
+ "borderWidth": 1,
23
+ "flexDirection": "row",
24
+ "justifyContent": "center",
25
+ "opacity": 1,
26
+ "paddingHorizontal": 12,
27
+ "paddingVertical": 8,
28
+ }
29
+ }
30
+ testID="chip"
31
+ >
32
+ <Text
33
+ allowFontScaling={false}
34
+ style={
35
+ [
36
+ {
37
+ "color": "#001f23",
38
+ "fontFamily": "BeVietnamPro-Regular",
39
+ "fontSize": 14,
40
+ "letterSpacing": 0.48,
41
+ "lineHeight": 22,
42
+ },
43
+ [
44
+ {},
45
+ undefined,
46
+ ],
47
+ ]
48
+ }
49
+ themeIntent="body"
50
+ themeSelected={false}
51
+ themeTypeface="neutral"
52
+ themeVariant="small"
53
+ >
54
+ Cover my bills
55
+ </Text>
56
+ </View>
57
+ `;
58
+
59
+ exports[`Chip does not render icon when variant is outlined 2`] = `
60
+ <View
61
+ accessible={true}
62
+ collapsable={false}
63
+ focusable={true}
64
+ onClick={[Function]}
65
+ onResponderGrant={[Function]}
66
+ onResponderMove={[Function]}
67
+ onResponderRelease={[Function]}
68
+ onResponderTerminate={[Function]}
69
+ onResponderTerminationRequest={[Function]}
70
+ onStartShouldSetResponder={[Function]}
71
+ style={
72
+ {
73
+ "alignItems": "center",
74
+ "alignSelf": "flex-start",
75
+ "backgroundColor": "#001f23",
76
+ "borderColor": "transparent",
77
+ "borderRadius": 999,
78
+ "borderWidth": 1,
79
+ "flexDirection": "row",
80
+ "justifyContent": "center",
81
+ "opacity": 1,
82
+ "paddingHorizontal": 12,
83
+ "paddingVertical": 8,
84
+ }
85
+ }
86
+ testID="chip"
87
+ >
88
+ <View
89
+ style={
90
+ [
91
+ {},
92
+ [
93
+ {
94
+ "marginRight": 8,
95
+ },
96
+ undefined,
97
+ ],
98
+ ]
99
+ }
100
+ >
101
+ <HeroIcon
102
+ name="checkmark"
103
+ style={
104
+ [
105
+ {
106
+ "color": "#001f23",
107
+ "fontSize": 16,
108
+ },
109
+ [
110
+ {
111
+ "color": "#ffffff",
112
+ },
113
+ undefined,
114
+ ],
115
+ ]
116
+ }
117
+ testID="chip-icon-checkmark"
118
+ themeIntent="text"
119
+ themeSize="xsmall"
120
+ />
121
+ </View>
122
+ <Text
123
+ allowFontScaling={false}
124
+ style={
125
+ [
126
+ {
127
+ "color": "#001f23",
128
+ "fontFamily": "BeVietnamPro-Regular",
129
+ "fontSize": 14,
130
+ "letterSpacing": 0.48,
131
+ "lineHeight": 22,
132
+ },
133
+ [
134
+ {
135
+ "color": "#ffffff",
136
+ },
137
+ undefined,
138
+ ],
139
+ ]
140
+ }
141
+ themeIntent="body"
142
+ themeSelected={true}
143
+ themeTypeface="neutral"
144
+ themeVariant="small"
145
+ >
146
+ Cover my bills
147
+ </Text>
148
+ </View>
149
+ `;
150
+
151
+ exports[`Chip renders correctly when selected is false 1`] = `
152
+ <View
153
+ accessible={true}
154
+ collapsable={false}
155
+ focusable={false}
156
+ onClick={[Function]}
157
+ onResponderGrant={[Function]}
158
+ onResponderMove={[Function]}
159
+ onResponderRelease={[Function]}
160
+ onResponderTerminate={[Function]}
161
+ onResponderTerminationRequest={[Function]}
162
+ onStartShouldSetResponder={[Function]}
163
+ style={
164
+ {
165
+ "alignItems": "center",
166
+ "alignSelf": "flex-start",
167
+ "backgroundColor": "transparent",
168
+ "borderColor": "#001f23",
169
+ "borderRadius": 999,
170
+ "borderWidth": 1,
171
+ "flexDirection": "row",
172
+ "justifyContent": "center",
173
+ "opacity": 1,
174
+ "paddingHorizontal": 12,
175
+ "paddingVertical": 8,
176
+ }
177
+ }
178
+ >
179
+ <Text
180
+ allowFontScaling={false}
181
+ style={
182
+ [
183
+ {
184
+ "color": "#001f23",
185
+ "fontFamily": "BeVietnamPro-Regular",
186
+ "fontSize": 14,
187
+ "letterSpacing": 0.48,
188
+ "lineHeight": 22,
189
+ },
190
+ [
191
+ {},
192
+ undefined,
193
+ ],
194
+ ]
195
+ }
196
+ themeIntent="body"
197
+ themeSelected={false}
198
+ themeTypeface="neutral"
199
+ themeVariant="small"
200
+ >
201
+ Cover my bills
202
+ </Text>
203
+ </View>
204
+ `;
205
+
206
+ exports[`Chip renders correctly when selected is true 1`] = `
207
+ <View
208
+ accessible={true}
209
+ collapsable={false}
210
+ focusable={false}
211
+ onClick={[Function]}
212
+ onResponderGrant={[Function]}
213
+ onResponderMove={[Function]}
214
+ onResponderRelease={[Function]}
215
+ onResponderTerminate={[Function]}
216
+ onResponderTerminationRequest={[Function]}
217
+ onStartShouldSetResponder={[Function]}
218
+ style={
219
+ {
220
+ "alignItems": "center",
221
+ "alignSelf": "flex-start",
222
+ "backgroundColor": "#001f23",
223
+ "borderColor": "transparent",
224
+ "borderRadius": 999,
225
+ "borderWidth": 1,
226
+ "flexDirection": "row",
227
+ "justifyContent": "center",
228
+ "opacity": 1,
229
+ "paddingHorizontal": 12,
230
+ "paddingVertical": 8,
231
+ }
232
+ }
233
+ >
234
+ <View
235
+ style={
236
+ [
237
+ {},
238
+ [
239
+ {
240
+ "marginRight": 8,
241
+ },
242
+ undefined,
243
+ ],
244
+ ]
245
+ }
246
+ >
247
+ <HeroIcon
248
+ name="checkmark"
249
+ style={
250
+ [
251
+ {
252
+ "color": "#001f23",
253
+ "fontSize": 16,
254
+ },
255
+ [
256
+ {
257
+ "color": "#ffffff",
258
+ },
259
+ undefined,
260
+ ],
261
+ ]
262
+ }
263
+ testID="chip-icon-checkmark"
264
+ themeIntent="text"
265
+ themeSize="xsmall"
266
+ />
267
+ </View>
268
+ <Text
269
+ allowFontScaling={false}
270
+ style={
271
+ [
272
+ {
273
+ "color": "#001f23",
274
+ "fontFamily": "BeVietnamPro-Regular",
275
+ "fontSize": 14,
276
+ "letterSpacing": 0.48,
277
+ "lineHeight": 22,
278
+ },
279
+ [
280
+ {
281
+ "color": "#ffffff",
282
+ },
283
+ undefined,
284
+ ],
285
+ ]
286
+ }
287
+ themeIntent="body"
288
+ themeSelected={true}
289
+ themeTypeface="neutral"
290
+ themeVariant="small"
291
+ >
292
+ Cover my bills
293
+ </Text>
294
+ </View>
295
+ `;
296
+
297
+ exports[`Chip renders correctly with custom icon 1`] = `
298
+ <View
299
+ accessible={true}
300
+ collapsable={false}
301
+ focusable={true}
302
+ onClick={[Function]}
303
+ onResponderGrant={[Function]}
304
+ onResponderMove={[Function]}
305
+ onResponderRelease={[Function]}
306
+ onResponderTerminate={[Function]}
307
+ onResponderTerminationRequest={[Function]}
308
+ onStartShouldSetResponder={[Function]}
309
+ style={
310
+ {
311
+ "alignItems": "center",
312
+ "alignSelf": "flex-start",
313
+ "backgroundColor": "#ffffff",
314
+ "borderColor": "transparent",
315
+ "borderRadius": 999,
316
+ "borderWidth": 1,
317
+ "elevation": 3,
318
+ "flexDirection": "row",
319
+ "justifyContent": "center",
320
+ "opacity": 1,
321
+ "paddingHorizontal": 12,
322
+ "paddingVertical": 8,
323
+ "shadowColor": "#001f23",
324
+ "shadowOffset": {
325
+ "height": 2,
326
+ "width": 0,
327
+ },
328
+ "shadowOpacity": 0.12,
329
+ "shadowRadius": 4,
330
+ }
331
+ }
332
+ testID="chip"
333
+ >
334
+ <View
335
+ style={
336
+ [
337
+ {},
338
+ [
339
+ {
340
+ "marginRight": 8,
341
+ },
342
+ undefined,
343
+ ],
344
+ ]
345
+ }
346
+ >
347
+ <HeroIcon
348
+ name="charging-station-outlined"
349
+ style={
350
+ [
351
+ {
352
+ "color": "#001f23",
353
+ "fontSize": 16,
354
+ },
355
+ [
356
+ {},
357
+ undefined,
358
+ ],
359
+ ]
360
+ }
361
+ testID="chip-icon-charging-station-outlined"
362
+ themeIntent="text"
363
+ themeSize="xsmall"
364
+ />
365
+ </View>
366
+ <Text
367
+ allowFontScaling={false}
368
+ style={
369
+ [
370
+ {
371
+ "color": "#001f23",
372
+ "fontFamily": "BeVietnamPro-Regular",
373
+ "fontSize": 14,
374
+ "letterSpacing": 0.48,
375
+ "lineHeight": 22,
376
+ },
377
+ [
378
+ {},
379
+ undefined,
380
+ ],
381
+ ]
382
+ }
383
+ themeIntent="body"
384
+ themeSelected={false}
385
+ themeTypeface="neutral"
386
+ themeVariant="small"
387
+ >
388
+ Cover my bills
389
+ </Text>
390
+ </View>
391
+ `;
392
+
393
+ exports[`Chip renders correctly with custom icon 2`] = `
394
+ <View
395
+ accessible={true}
396
+ collapsable={false}
397
+ focusable={true}
398
+ onClick={[Function]}
399
+ onResponderGrant={[Function]}
400
+ onResponderMove={[Function]}
401
+ onResponderRelease={[Function]}
402
+ onResponderTerminate={[Function]}
403
+ onResponderTerminationRequest={[Function]}
404
+ onStartShouldSetResponder={[Function]}
405
+ style={
406
+ {
407
+ "alignItems": "center",
408
+ "alignSelf": "flex-start",
409
+ "backgroundColor": "#ece8ef",
410
+ "borderColor": "transparent",
411
+ "borderRadius": 999,
412
+ "borderWidth": 1,
413
+ "elevation": 3,
414
+ "flexDirection": "row",
415
+ "justifyContent": "center",
416
+ "opacity": 1,
417
+ "paddingHorizontal": 12,
418
+ "paddingVertical": 8,
419
+ "shadowColor": "#001f23",
420
+ "shadowOffset": {
421
+ "height": 2,
422
+ "width": 0,
423
+ },
424
+ "shadowOpacity": 0.12,
425
+ "shadowRadius": 4,
426
+ }
427
+ }
428
+ testID="chip"
429
+ >
430
+ <View
431
+ style={
432
+ [
433
+ {},
434
+ [
435
+ {
436
+ "marginRight": 8,
437
+ },
438
+ undefined,
439
+ ],
440
+ ]
441
+ }
442
+ >
443
+ <HeroIcon
444
+ name="charging-station-outlined"
445
+ style={
446
+ [
447
+ {
448
+ "color": "#001f23",
449
+ "fontSize": 16,
450
+ },
451
+ [
452
+ {},
453
+ undefined,
454
+ ],
455
+ ]
456
+ }
457
+ testID="chip-icon-charging-station-outlined"
458
+ themeIntent="text"
459
+ themeSize="xsmall"
460
+ />
461
+ </View>
462
+ <Text
463
+ allowFontScaling={false}
464
+ style={
465
+ [
466
+ {
467
+ "color": "#001f23",
468
+ "fontFamily": "BeVietnamPro-Regular",
469
+ "fontSize": 14,
470
+ "letterSpacing": 0.48,
471
+ "lineHeight": 22,
472
+ },
473
+ [
474
+ {},
475
+ undefined,
476
+ ],
477
+ ]
478
+ }
479
+ themeIntent="body"
480
+ themeSelected={true}
481
+ themeTypeface="neutral"
482
+ themeVariant="small"
483
+ >
484
+ Cover my bills
485
+ </Text>
486
+ </View>
487
+ `;
488
+
489
+ exports[`Chip renders correctly with default icon 1`] = `
490
+ <View
491
+ accessible={true}
492
+ collapsable={false}
493
+ focusable={true}
494
+ onClick={[Function]}
495
+ onResponderGrant={[Function]}
496
+ onResponderMove={[Function]}
497
+ onResponderRelease={[Function]}
498
+ onResponderTerminate={[Function]}
499
+ onResponderTerminationRequest={[Function]}
500
+ onStartShouldSetResponder={[Function]}
501
+ style={
502
+ {
503
+ "alignItems": "center",
504
+ "alignSelf": "flex-start",
505
+ "backgroundColor": "transparent",
506
+ "borderColor": "#001f23",
507
+ "borderRadius": 999,
508
+ "borderWidth": 1,
509
+ "flexDirection": "row",
510
+ "justifyContent": "center",
511
+ "opacity": 1,
512
+ "paddingHorizontal": 12,
513
+ "paddingVertical": 8,
514
+ }
515
+ }
516
+ testID="chip"
517
+ >
518
+ <Text
519
+ allowFontScaling={false}
520
+ style={
521
+ [
522
+ {
523
+ "color": "#001f23",
524
+ "fontFamily": "BeVietnamPro-Regular",
525
+ "fontSize": 14,
526
+ "letterSpacing": 0.48,
527
+ "lineHeight": 22,
528
+ },
529
+ [
530
+ {},
531
+ undefined,
532
+ ],
533
+ ]
534
+ }
535
+ themeIntent="body"
536
+ themeSelected={false}
537
+ themeTypeface="neutral"
538
+ themeVariant="small"
539
+ >
540
+ Cover my bills
541
+ </Text>
542
+ </View>
543
+ `;
544
+
545
+ exports[`Chip renders correctly with default icon 2`] = `
546
+ <View
547
+ accessible={true}
548
+ collapsable={false}
549
+ focusable={true}
550
+ onClick={[Function]}
551
+ onResponderGrant={[Function]}
552
+ onResponderMove={[Function]}
553
+ onResponderRelease={[Function]}
554
+ onResponderTerminate={[Function]}
555
+ onResponderTerminationRequest={[Function]}
556
+ onStartShouldSetResponder={[Function]}
557
+ style={
558
+ {
559
+ "alignItems": "center",
560
+ "alignSelf": "flex-start",
561
+ "backgroundColor": "#001f23",
562
+ "borderColor": "transparent",
563
+ "borderRadius": 999,
564
+ "borderWidth": 1,
565
+ "flexDirection": "row",
566
+ "justifyContent": "center",
567
+ "opacity": 1,
568
+ "paddingHorizontal": 12,
569
+ "paddingVertical": 8,
570
+ }
571
+ }
572
+ testID="chip"
573
+ >
574
+ <View
575
+ style={
576
+ [
577
+ {},
578
+ [
579
+ {
580
+ "marginRight": 8,
581
+ },
582
+ undefined,
583
+ ],
584
+ ]
585
+ }
586
+ >
587
+ <HeroIcon
588
+ name="checkmark"
589
+ style={
590
+ [
591
+ {
592
+ "color": "#001f23",
593
+ "fontSize": 16,
594
+ },
595
+ [
596
+ {
597
+ "color": "#ffffff",
598
+ },
599
+ undefined,
600
+ ],
601
+ ]
602
+ }
603
+ testID="chip-icon-checkmark"
604
+ themeIntent="text"
605
+ themeSize="xsmall"
606
+ />
607
+ </View>
608
+ <Text
609
+ allowFontScaling={false}
610
+ style={
611
+ [
612
+ {
613
+ "color": "#001f23",
614
+ "fontFamily": "BeVietnamPro-Regular",
615
+ "fontSize": 14,
616
+ "letterSpacing": 0.48,
617
+ "lineHeight": 22,
618
+ },
619
+ [
620
+ {
621
+ "color": "#ffffff",
622
+ },
623
+ undefined,
624
+ ],
625
+ ]
626
+ }
627
+ themeIntent="body"
628
+ themeSelected={true}
629
+ themeTypeface="neutral"
630
+ themeVariant="small"
631
+ >
632
+ Cover my bills
633
+ </Text>
634
+ </View>
635
+ `;
636
+
637
+ exports[`Chip renders correctly with variant filled and selected false 1`] = `
638
+ <View
639
+ accessible={true}
640
+ collapsable={false}
641
+ focusable={false}
642
+ onClick={[Function]}
643
+ onResponderGrant={[Function]}
644
+ onResponderMove={[Function]}
645
+ onResponderRelease={[Function]}
646
+ onResponderTerminate={[Function]}
647
+ onResponderTerminationRequest={[Function]}
648
+ onStartShouldSetResponder={[Function]}
649
+ style={
650
+ {
651
+ "alignItems": "center",
652
+ "alignSelf": "flex-start",
653
+ "backgroundColor": "#ffffff",
654
+ "borderColor": "transparent",
655
+ "borderRadius": 999,
656
+ "borderWidth": 1,
657
+ "elevation": 3,
658
+ "flexDirection": "row",
659
+ "justifyContent": "center",
660
+ "opacity": 1,
661
+ "paddingHorizontal": 12,
662
+ "paddingVertical": 8,
663
+ "shadowColor": "#001f23",
664
+ "shadowOffset": {
665
+ "height": 2,
666
+ "width": 0,
667
+ },
668
+ "shadowOpacity": 0.12,
669
+ "shadowRadius": 4,
670
+ }
671
+ }
672
+ testID="chip"
673
+ >
674
+ <Text
675
+ allowFontScaling={false}
676
+ style={
677
+ [
678
+ {
679
+ "color": "#001f23",
680
+ "fontFamily": "BeVietnamPro-Regular",
681
+ "fontSize": 14,
682
+ "letterSpacing": 0.48,
683
+ "lineHeight": 22,
684
+ },
685
+ [
686
+ {},
687
+ undefined,
688
+ ],
689
+ ]
690
+ }
691
+ themeIntent="body"
692
+ themeSelected={false}
693
+ themeTypeface="neutral"
694
+ themeVariant="small"
695
+ >
696
+ Cover my bills
697
+ </Text>
698
+ </View>
699
+ `;
700
+
701
+ exports[`Chip renders correctly with variant filled and selected true 1`] = `
702
+ <View
703
+ accessible={true}
704
+ collapsable={false}
705
+ focusable={false}
706
+ onClick={[Function]}
707
+ onResponderGrant={[Function]}
708
+ onResponderMove={[Function]}
709
+ onResponderRelease={[Function]}
710
+ onResponderTerminate={[Function]}
711
+ onResponderTerminationRequest={[Function]}
712
+ onStartShouldSetResponder={[Function]}
713
+ style={
714
+ {
715
+ "alignItems": "center",
716
+ "alignSelf": "flex-start",
717
+ "backgroundColor": "#ece8ef",
718
+ "borderColor": "transparent",
719
+ "borderRadius": 999,
720
+ "borderWidth": 1,
721
+ "elevation": 3,
722
+ "flexDirection": "row",
723
+ "justifyContent": "center",
724
+ "opacity": 1,
725
+ "paddingHorizontal": 12,
726
+ "paddingVertical": 8,
727
+ "shadowColor": "#001f23",
728
+ "shadowOffset": {
729
+ "height": 2,
730
+ "width": 0,
731
+ },
732
+ "shadowOpacity": 0.12,
733
+ "shadowRadius": 4,
734
+ }
735
+ }
736
+ testID="chip"
737
+ >
738
+ <View
739
+ style={
740
+ [
741
+ {},
742
+ [
743
+ {
744
+ "marginRight": 8,
745
+ },
746
+ undefined,
747
+ ],
748
+ ]
749
+ }
750
+ >
751
+ <HeroIcon
752
+ name="checkmark"
753
+ style={
754
+ [
755
+ {
756
+ "color": "#001f23",
757
+ "fontSize": 16,
758
+ },
759
+ [
760
+ {},
761
+ undefined,
762
+ ],
763
+ ]
764
+ }
765
+ testID="chip-icon-checkmark"
766
+ themeIntent="text"
767
+ themeSize="xsmall"
768
+ />
769
+ </View>
770
+ <Text
771
+ allowFontScaling={false}
772
+ style={
773
+ [
774
+ {
775
+ "color": "#001f23",
776
+ "fontFamily": "BeVietnamPro-Regular",
777
+ "fontSize": 14,
778
+ "letterSpacing": 0.48,
779
+ "lineHeight": 22,
780
+ },
781
+ [
782
+ {},
783
+ undefined,
784
+ ],
785
+ ]
786
+ }
787
+ themeIntent="body"
788
+ themeSelected={true}
789
+ themeTypeface="neutral"
790
+ themeVariant="small"
791
+ >
792
+ Cover my bills
793
+ </Text>
794
+ </View>
795
+ `;
796
+
797
+ exports[`Chip renders correctly with variant outlined and selected false 1`] = `
798
+ <View
799
+ accessible={true}
800
+ collapsable={false}
801
+ focusable={false}
802
+ onClick={[Function]}
803
+ onResponderGrant={[Function]}
804
+ onResponderMove={[Function]}
805
+ onResponderRelease={[Function]}
806
+ onResponderTerminate={[Function]}
807
+ onResponderTerminationRequest={[Function]}
808
+ onStartShouldSetResponder={[Function]}
809
+ style={
810
+ {
811
+ "alignItems": "center",
812
+ "alignSelf": "flex-start",
813
+ "backgroundColor": "transparent",
814
+ "borderColor": "#001f23",
815
+ "borderRadius": 999,
816
+ "borderWidth": 1,
817
+ "flexDirection": "row",
818
+ "justifyContent": "center",
819
+ "opacity": 1,
820
+ "paddingHorizontal": 12,
821
+ "paddingVertical": 8,
822
+ }
823
+ }
824
+ testID="chip"
825
+ >
826
+ <Text
827
+ allowFontScaling={false}
828
+ style={
829
+ [
830
+ {
831
+ "color": "#001f23",
832
+ "fontFamily": "BeVietnamPro-Regular",
833
+ "fontSize": 14,
834
+ "letterSpacing": 0.48,
835
+ "lineHeight": 22,
836
+ },
837
+ [
838
+ {},
839
+ undefined,
840
+ ],
841
+ ]
842
+ }
843
+ themeIntent="body"
844
+ themeSelected={false}
845
+ themeTypeface="neutral"
846
+ themeVariant="small"
847
+ >
848
+ Cover my bills
849
+ </Text>
850
+ </View>
851
+ `;
852
+
853
+ exports[`Chip renders correctly with variant outlined and selected true 1`] = `
854
+ <View
855
+ accessible={true}
856
+ collapsable={false}
857
+ focusable={false}
858
+ onClick={[Function]}
859
+ onResponderGrant={[Function]}
860
+ onResponderMove={[Function]}
861
+ onResponderRelease={[Function]}
862
+ onResponderTerminate={[Function]}
863
+ onResponderTerminationRequest={[Function]}
864
+ onStartShouldSetResponder={[Function]}
865
+ style={
866
+ {
867
+ "alignItems": "center",
868
+ "alignSelf": "flex-start",
869
+ "backgroundColor": "#001f23",
870
+ "borderColor": "transparent",
871
+ "borderRadius": 999,
872
+ "borderWidth": 1,
873
+ "flexDirection": "row",
874
+ "justifyContent": "center",
875
+ "opacity": 1,
876
+ "paddingHorizontal": 12,
877
+ "paddingVertical": 8,
878
+ }
879
+ }
880
+ testID="chip"
881
+ >
882
+ <View
883
+ style={
884
+ [
885
+ {},
886
+ [
887
+ {
888
+ "marginRight": 8,
889
+ },
890
+ undefined,
891
+ ],
892
+ ]
893
+ }
894
+ >
895
+ <HeroIcon
896
+ name="checkmark"
897
+ style={
898
+ [
899
+ {
900
+ "color": "#001f23",
901
+ "fontSize": 16,
902
+ },
903
+ [
904
+ {
905
+ "color": "#ffffff",
906
+ },
907
+ undefined,
908
+ ],
909
+ ]
910
+ }
911
+ testID="chip-icon-checkmark"
912
+ themeIntent="text"
913
+ themeSize="xsmall"
914
+ />
915
+ </View>
916
+ <Text
917
+ allowFontScaling={false}
918
+ style={
919
+ [
920
+ {
921
+ "color": "#001f23",
922
+ "fontFamily": "BeVietnamPro-Regular",
923
+ "fontSize": 14,
924
+ "letterSpacing": 0.48,
925
+ "lineHeight": 22,
926
+ },
927
+ [
928
+ {
929
+ "color": "#ffffff",
930
+ },
931
+ undefined,
932
+ ],
933
+ ]
934
+ }
935
+ themeIntent="body"
936
+ themeSelected={true}
937
+ themeTypeface="neutral"
938
+ themeVariant="small"
939
+ >
940
+ Cover my bills
941
+ </Text>
942
+ </View>
943
+ `;