@hero-design/rn 8.69.0 → 8.71.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 (34) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +23 -0
  3. package/es/index.js +114 -89
  4. package/lib/index.js +114 -89
  5. package/package.json +2 -2
  6. package/src/components/Card/StyledCard.tsx +6 -2
  7. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  8. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
  9. package/src/components/Card/__tests__/index.spec.tsx +12 -0
  10. package/src/components/Card/index.tsx +8 -2
  11. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -0
  12. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +1 -0
  13. package/src/components/Chip/StyledChip.tsx +56 -50
  14. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +302 -336
  15. package/src/components/Chip/__tests__/index.spec.tsx +8 -26
  16. package/src/components/Chip/index.tsx +27 -34
  17. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +13 -6
  18. package/src/theme/components/card.ts +1 -0
  19. package/src/theme/components/chip.ts +12 -6
  20. package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +5 -5
  21. package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +39 -0
  22. package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +5 -5
  23. package/src/theme/global/colors/__tests__/swagLightGlobal.spec.ts +7 -0
  24. package/src/theme/global/colors/swagLight.ts +2 -2
  25. package/src/theme/global/colors/swagLightGlobal.ts +14 -0
  26. package/stats/8.70.0/rn-stats.html +4842 -0
  27. package/stats/8.71.0/rn-stats.html +4842 -0
  28. package/types/components/Card/StyledCard.d.ts +1 -0
  29. package/types/components/Card/index.d.ts +2 -1
  30. package/types/components/Chip/StyledChip.d.ts +2 -20
  31. package/types/components/Chip/index.d.ts +7 -3
  32. package/types/theme/components/card.d.ts +1 -0
  33. package/types/theme/components/chip.d.ts +12 -6
  34. package/types/theme/global/colors/swagLightGlobal.d.ts +3 -0
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Chip does not render icon when variant is outlined 1`] = `
3
+ exports[`Chip does not render selected icon when showSelectedIcon is false 1`] = `
4
4
  <View
5
5
  style={
6
6
  {
@@ -28,7 +28,7 @@ exports[`Chip does not render icon when variant is outlined 1`] = `
28
28
  }
29
29
  accessible={true}
30
30
  collapsable={false}
31
- focusable={true}
31
+ focusable={false}
32
32
  onClick={[Function]}
33
33
  onResponderGrant={[Function]}
34
34
  onResponderMove={[Function]}
@@ -40,18 +40,18 @@ exports[`Chip does not render icon when variant is outlined 1`] = `
40
40
  {
41
41
  "alignItems": "center",
42
42
  "alignSelf": "flex-start",
43
- "backgroundColor": "transparent",
43
+ "backgroundColor": "#e8e9ea",
44
44
  "borderColor": "#001f23",
45
45
  "borderRadius": 999,
46
- "borderWidth": 1,
46
+ "borderWidth": 2,
47
47
  "flexDirection": "row",
48
48
  "justifyContent": "center",
49
+ "marginTop": -2,
49
50
  "opacity": 1,
50
51
  "paddingHorizontal": 12,
51
52
  "paddingVertical": 8,
52
53
  }
53
54
  }
54
- testID="chip"
55
55
  >
56
56
  <Text
57
57
  allowFontScaling={false}
@@ -60,22 +60,18 @@ exports[`Chip does not render icon when variant is outlined 1`] = `
60
60
  {
61
61
  "color": "#001f23",
62
62
  "fontFamily": "BeVietnamPro-Regular",
63
- "fontSize": 14,
63
+ "fontSize": 16,
64
64
  "letterSpacing": 0.48,
65
- "lineHeight": 22,
65
+ "lineHeight": 24,
66
66
  },
67
- [
68
- {},
69
- undefined,
70
- ],
67
+ undefined,
71
68
  ]
72
69
  }
73
70
  themeIntent="body"
74
- themeSelected={false}
75
71
  themeTypeface="neutral"
76
- themeVariant="small"
72
+ themeVariant="regular"
77
73
  >
78
- Cover my bills
74
+ Chip
79
75
  </Text>
80
76
  </View>
81
77
  <View
@@ -101,7 +97,7 @@ exports[`Chip does not render icon when variant is outlined 1`] = `
101
97
  </View>
102
98
  `;
103
99
 
104
- exports[`Chip does not render icon when variant is outlined 2`] = `
100
+ exports[`Chip renders correctly when selected is false 1`] = `
105
101
  <View
106
102
  style={
107
103
  {
@@ -129,7 +125,7 @@ exports[`Chip does not render icon when variant is outlined 2`] = `
129
125
  }
130
126
  accessible={true}
131
127
  collapsable={false}
132
- focusable={true}
128
+ focusable={false}
133
129
  onClick={[Function]}
134
130
  onResponderGrant={[Function]}
135
131
  onResponderMove={[Function]}
@@ -141,53 +137,19 @@ exports[`Chip does not render icon when variant is outlined 2`] = `
141
137
  {
142
138
  "alignItems": "center",
143
139
  "alignSelf": "flex-start",
144
- "backgroundColor": "#001f23",
145
- "borderColor": "transparent",
140
+ "backgroundColor": "#ffffff",
141
+ "borderColor": "#bfc1c5",
146
142
  "borderRadius": 999,
147
143
  "borderWidth": 1,
148
144
  "flexDirection": "row",
149
145
  "justifyContent": "center",
146
+ "marginTop": undefined,
150
147
  "opacity": 1,
151
148
  "paddingHorizontal": 12,
152
149
  "paddingVertical": 8,
153
150
  }
154
151
  }
155
- testID="chip"
156
152
  >
157
- <View
158
- style={
159
- [
160
- {},
161
- [
162
- {
163
- "marginRight": 8,
164
- },
165
- undefined,
166
- ],
167
- ]
168
- }
169
- >
170
- <HeroIcon
171
- name="checkmark"
172
- style={
173
- [
174
- {
175
- "color": "#001f23",
176
- "fontSize": 16,
177
- },
178
- [
179
- {
180
- "color": "#ffffff",
181
- },
182
- undefined,
183
- ],
184
- ]
185
- }
186
- testID="chip-icon-checkmark"
187
- themeIntent="text"
188
- themeSize="xsmall"
189
- />
190
- </View>
191
153
  <Text
192
154
  allowFontScaling={false}
193
155
  style={
@@ -195,22 +157,16 @@ exports[`Chip does not render icon when variant is outlined 2`] = `
195
157
  {
196
158
  "color": "#001f23",
197
159
  "fontFamily": "BeVietnamPro-Regular",
198
- "fontSize": 14,
160
+ "fontSize": 16,
199
161
  "letterSpacing": 0.48,
200
- "lineHeight": 22,
162
+ "lineHeight": 24,
201
163
  },
202
- [
203
- {
204
- "color": "#ffffff",
205
- },
206
- undefined,
207
- ],
164
+ undefined,
208
165
  ]
209
166
  }
210
167
  themeIntent="body"
211
- themeSelected={true}
212
168
  themeTypeface="neutral"
213
- themeVariant="small"
169
+ themeVariant="regular"
214
170
  >
215
171
  Cover my bills
216
172
  </Text>
@@ -238,7 +194,7 @@ exports[`Chip does not render icon when variant is outlined 2`] = `
238
194
  </View>
239
195
  `;
240
196
 
241
- exports[`Chip renders correctly when selected is false 1`] = `
197
+ exports[`Chip renders correctly when selected is true 1`] = `
242
198
  <View
243
199
  style={
244
200
  {
@@ -278,12 +234,13 @@ exports[`Chip renders correctly when selected is false 1`] = `
278
234
  {
279
235
  "alignItems": "center",
280
236
  "alignSelf": "flex-start",
281
- "backgroundColor": "transparent",
237
+ "backgroundColor": "#e8e9ea",
282
238
  "borderColor": "#001f23",
283
239
  "borderRadius": 999,
284
- "borderWidth": 1,
240
+ "borderWidth": 2,
285
241
  "flexDirection": "row",
286
242
  "justifyContent": "center",
243
+ "marginTop": -2,
287
244
  "opacity": 1,
288
245
  "paddingHorizontal": 12,
289
246
  "paddingVertical": 8,
@@ -297,23 +254,46 @@ exports[`Chip renders correctly when selected is false 1`] = `
297
254
  {
298
255
  "color": "#001f23",
299
256
  "fontFamily": "BeVietnamPro-Regular",
300
- "fontSize": 14,
257
+ "fontSize": 16,
301
258
  "letterSpacing": 0.48,
302
- "lineHeight": 22,
259
+ "lineHeight": 24,
303
260
  },
304
- [
305
- {},
306
- undefined,
307
- ],
261
+ undefined,
308
262
  ]
309
263
  }
310
264
  themeIntent="body"
311
- themeSelected={false}
312
265
  themeTypeface="neutral"
313
- themeVariant="small"
266
+ themeVariant="regular"
314
267
  >
315
268
  Cover my bills
316
269
  </Text>
270
+ <View
271
+ marginLeft="small"
272
+ style={
273
+ [
274
+ {
275
+ "marginLeft": 8,
276
+ },
277
+ undefined,
278
+ ]
279
+ }
280
+ >
281
+ <HeroIcon
282
+ name="cancel"
283
+ style={
284
+ [
285
+ {
286
+ "color": "#001f23",
287
+ "fontSize": 16,
288
+ },
289
+ undefined,
290
+ ]
291
+ }
292
+ testID="selected-chip-icon-cancel"
293
+ themeIntent="text"
294
+ themeSize="xsmall"
295
+ />
296
+ </View>
317
297
  </View>
318
298
  <View
319
299
  pointerEvents="box-none"
@@ -338,7 +318,7 @@ exports[`Chip renders correctly when selected is false 1`] = `
338
318
  </View>
339
319
  `;
340
320
 
341
- exports[`Chip renders correctly when selected is true 1`] = `
321
+ exports[`Chip renders correctly with custom icon 1`] = `
342
322
  <View
343
323
  style={
344
324
  {
@@ -366,7 +346,7 @@ exports[`Chip renders correctly when selected is true 1`] = `
366
346
  }
367
347
  accessible={true}
368
348
  collapsable={false}
369
- focusable={false}
349
+ focusable={true}
370
350
  onClick={[Function]}
371
351
  onResponderGrant={[Function]}
372
352
  onResponderMove={[Function]}
@@ -378,48 +358,50 @@ exports[`Chip renders correctly when selected is true 1`] = `
378
358
  {
379
359
  "alignItems": "center",
380
360
  "alignSelf": "flex-start",
381
- "backgroundColor": "#001f23",
361
+ "backgroundColor": "#ffffff",
382
362
  "borderColor": "transparent",
383
363
  "borderRadius": 999,
384
- "borderWidth": 1,
364
+ "elevation": 3,
385
365
  "flexDirection": "row",
386
366
  "justifyContent": "center",
367
+ "marginTop": undefined,
387
368
  "opacity": 1,
388
369
  "paddingHorizontal": 12,
389
370
  "paddingVertical": 8,
371
+ "shadowColor": "#001f23",
372
+ "shadowOffset": {
373
+ "height": 2,
374
+ "width": 0,
375
+ },
376
+ "shadowOpacity": 0.12,
377
+ "shadowRadius": 4,
390
378
  }
391
379
  }
380
+ testID="chip"
392
381
  >
393
382
  <View
383
+ marginRight="small"
394
384
  style={
395
385
  [
396
- {},
397
- [
398
- {
399
- "marginRight": 8,
400
- },
401
- undefined,
402
- ],
386
+ {
387
+ "marginRight": 8,
388
+ },
389
+ undefined,
403
390
  ]
404
391
  }
405
392
  >
406
393
  <HeroIcon
407
- name="checkmark"
394
+ name="charging-station-outlined"
408
395
  style={
409
396
  [
410
397
  {
411
398
  "color": "#001f23",
412
399
  "fontSize": 16,
413
400
  },
414
- [
415
- {
416
- "color": "#ffffff",
417
- },
418
- undefined,
419
- ],
401
+ undefined,
420
402
  ]
421
403
  }
422
- testID="chip-icon-checkmark"
404
+ testID="chip-icon-charging-station-outlined"
423
405
  themeIntent="text"
424
406
  themeSize="xsmall"
425
407
  />
@@ -431,22 +413,16 @@ exports[`Chip renders correctly when selected is true 1`] = `
431
413
  {
432
414
  "color": "#001f23",
433
415
  "fontFamily": "BeVietnamPro-Regular",
434
- "fontSize": 14,
416
+ "fontSize": 16,
435
417
  "letterSpacing": 0.48,
436
- "lineHeight": 22,
418
+ "lineHeight": 24,
437
419
  },
438
- [
439
- {
440
- "color": "#ffffff",
441
- },
442
- undefined,
443
- ],
420
+ undefined,
444
421
  ]
445
422
  }
446
423
  themeIntent="body"
447
- themeSelected={true}
448
424
  themeTypeface="neutral"
449
- themeVariant="small"
425
+ themeVariant="regular"
450
426
  >
451
427
  Cover my bills
452
428
  </Text>
@@ -474,7 +450,7 @@ exports[`Chip renders correctly when selected is true 1`] = `
474
450
  </View>
475
451
  `;
476
452
 
477
- exports[`Chip renders correctly with custom icon 1`] = `
453
+ exports[`Chip renders correctly with custom icon 2`] = `
478
454
  <View
479
455
  style={
480
456
  {
@@ -514,13 +490,13 @@ exports[`Chip renders correctly with custom icon 1`] = `
514
490
  {
515
491
  "alignItems": "center",
516
492
  "alignSelf": "flex-start",
517
- "backgroundColor": "#ffffff",
493
+ "backgroundColor": "#ece8ef",
518
494
  "borderColor": "transparent",
519
495
  "borderRadius": 999,
520
- "borderWidth": 1,
521
496
  "elevation": 3,
522
497
  "flexDirection": "row",
523
498
  "justifyContent": "center",
499
+ "marginTop": undefined,
524
500
  "opacity": 1,
525
501
  "paddingHorizontal": 12,
526
502
  "paddingVertical": 8,
@@ -536,15 +512,13 @@ exports[`Chip renders correctly with custom icon 1`] = `
536
512
  testID="chip"
537
513
  >
538
514
  <View
515
+ marginRight="small"
539
516
  style={
540
517
  [
541
- {},
542
- [
543
- {
544
- "marginRight": 8,
545
- },
546
- undefined,
547
- ],
518
+ {
519
+ "marginRight": 8,
520
+ },
521
+ undefined,
548
522
  ]
549
523
  }
550
524
  >
@@ -556,10 +530,7 @@ exports[`Chip renders correctly with custom icon 1`] = `
556
530
  "color": "#001f23",
557
531
  "fontSize": 16,
558
532
  },
559
- [
560
- {},
561
- undefined,
562
- ],
533
+ undefined,
563
534
  ]
564
535
  }
565
536
  testID="chip-icon-charging-station-outlined"
@@ -574,20 +545,16 @@ exports[`Chip renders correctly with custom icon 1`] = `
574
545
  {
575
546
  "color": "#001f23",
576
547
  "fontFamily": "BeVietnamPro-Regular",
577
- "fontSize": 14,
548
+ "fontSize": 16,
578
549
  "letterSpacing": 0.48,
579
- "lineHeight": 22,
550
+ "lineHeight": 24,
580
551
  },
581
- [
582
- {},
583
- undefined,
584
- ],
552
+ undefined,
585
553
  ]
586
554
  }
587
555
  themeIntent="body"
588
- themeSelected={false}
589
556
  themeTypeface="neutral"
590
- themeVariant="small"
557
+ themeVariant="regular"
591
558
  >
592
559
  Cover my bills
593
560
  </Text>
@@ -615,7 +582,7 @@ exports[`Chip renders correctly with custom icon 1`] = `
615
582
  </View>
616
583
  `;
617
584
 
618
- exports[`Chip renders correctly with custom icon 2`] = `
585
+ exports[`Chip renders correctly with default icon 1`] = `
619
586
  <View
620
587
  style={
621
588
  {
@@ -655,59 +622,20 @@ exports[`Chip renders correctly with custom icon 2`] = `
655
622
  {
656
623
  "alignItems": "center",
657
624
  "alignSelf": "flex-start",
658
- "backgroundColor": "#ece8ef",
659
- "borderColor": "transparent",
625
+ "backgroundColor": "#ffffff",
626
+ "borderColor": "#bfc1c5",
660
627
  "borderRadius": 999,
661
628
  "borderWidth": 1,
662
- "elevation": 3,
663
629
  "flexDirection": "row",
664
630
  "justifyContent": "center",
631
+ "marginTop": undefined,
665
632
  "opacity": 1,
666
633
  "paddingHorizontal": 12,
667
634
  "paddingVertical": 8,
668
- "shadowColor": "#001f23",
669
- "shadowOffset": {
670
- "height": 2,
671
- "width": 0,
672
- },
673
- "shadowOpacity": 0.12,
674
- "shadowRadius": 4,
675
635
  }
676
636
  }
677
637
  testID="chip"
678
638
  >
679
- <View
680
- style={
681
- [
682
- {},
683
- [
684
- {
685
- "marginRight": 8,
686
- },
687
- undefined,
688
- ],
689
- ]
690
- }
691
- >
692
- <HeroIcon
693
- name="charging-station-outlined"
694
- style={
695
- [
696
- {
697
- "color": "#001f23",
698
- "fontSize": 16,
699
- },
700
- [
701
- {},
702
- undefined,
703
- ],
704
- ]
705
- }
706
- testID="chip-icon-charging-station-outlined"
707
- themeIntent="text"
708
- themeSize="xsmall"
709
- />
710
- </View>
711
639
  <Text
712
640
  allowFontScaling={false}
713
641
  style={
@@ -715,20 +643,16 @@ exports[`Chip renders correctly with custom icon 2`] = `
715
643
  {
716
644
  "color": "#001f23",
717
645
  "fontFamily": "BeVietnamPro-Regular",
718
- "fontSize": 14,
646
+ "fontSize": 16,
719
647
  "letterSpacing": 0.48,
720
- "lineHeight": 22,
648
+ "lineHeight": 24,
721
649
  },
722
- [
723
- {},
724
- undefined,
725
- ],
650
+ undefined,
726
651
  ]
727
652
  }
728
653
  themeIntent="body"
729
- themeSelected={true}
730
654
  themeTypeface="neutral"
731
- themeVariant="small"
655
+ themeVariant="regular"
732
656
  >
733
657
  Cover my bills
734
658
  </Text>
@@ -756,7 +680,7 @@ exports[`Chip renders correctly with custom icon 2`] = `
756
680
  </View>
757
681
  `;
758
682
 
759
- exports[`Chip renders correctly with default icon 1`] = `
683
+ exports[`Chip renders correctly with default icon 2`] = `
760
684
  <View
761
685
  style={
762
686
  {
@@ -796,12 +720,13 @@ exports[`Chip renders correctly with default icon 1`] = `
796
720
  {
797
721
  "alignItems": "center",
798
722
  "alignSelf": "flex-start",
799
- "backgroundColor": "transparent",
723
+ "backgroundColor": "#e8e9ea",
800
724
  "borderColor": "#001f23",
801
725
  "borderRadius": 999,
802
- "borderWidth": 1,
726
+ "borderWidth": 2,
803
727
  "flexDirection": "row",
804
728
  "justifyContent": "center",
729
+ "marginTop": -2,
805
730
  "opacity": 1,
806
731
  "paddingHorizontal": 12,
807
732
  "paddingVertical": 8,
@@ -816,23 +741,46 @@ exports[`Chip renders correctly with default icon 1`] = `
816
741
  {
817
742
  "color": "#001f23",
818
743
  "fontFamily": "BeVietnamPro-Regular",
819
- "fontSize": 14,
744
+ "fontSize": 16,
820
745
  "letterSpacing": 0.48,
821
- "lineHeight": 22,
746
+ "lineHeight": 24,
822
747
  },
823
- [
824
- {},
825
- undefined,
826
- ],
748
+ undefined,
827
749
  ]
828
750
  }
829
751
  themeIntent="body"
830
- themeSelected={false}
831
752
  themeTypeface="neutral"
832
- themeVariant="small"
753
+ themeVariant="regular"
833
754
  >
834
755
  Cover my bills
835
756
  </Text>
757
+ <View
758
+ marginLeft="small"
759
+ style={
760
+ [
761
+ {
762
+ "marginLeft": 8,
763
+ },
764
+ undefined,
765
+ ]
766
+ }
767
+ >
768
+ <HeroIcon
769
+ name="cancel"
770
+ style={
771
+ [
772
+ {
773
+ "color": "#001f23",
774
+ "fontSize": 16,
775
+ },
776
+ undefined,
777
+ ]
778
+ }
779
+ testID="selected-chip-icon-cancel"
780
+ themeIntent="text"
781
+ themeSize="xsmall"
782
+ />
783
+ </View>
836
784
  </View>
837
785
  <View
838
786
  pointerEvents="box-none"
@@ -857,7 +805,7 @@ exports[`Chip renders correctly with default icon 1`] = `
857
805
  </View>
858
806
  `;
859
807
 
860
- exports[`Chip renders correctly with default icon 2`] = `
808
+ exports[`Chip renders correctly with variant compact and selected false 1`] = `
861
809
  <View
862
810
  style={
863
811
  {
@@ -885,7 +833,7 @@ exports[`Chip renders correctly with default icon 2`] = `
885
833
  }
886
834
  accessible={true}
887
835
  collapsable={false}
888
- focusable={true}
836
+ focusable={false}
889
837
  onClick={[Function]}
890
838
  onResponderGrant={[Function]}
891
839
  onResponderMove={[Function]}
@@ -897,53 +845,132 @@ exports[`Chip renders correctly with default icon 2`] = `
897
845
  {
898
846
  "alignItems": "center",
899
847
  "alignSelf": "flex-start",
900
- "backgroundColor": "#001f23",
848
+ "backgroundColor": "#ffffff",
901
849
  "borderColor": "transparent",
902
850
  "borderRadius": 999,
903
- "borderWidth": 1,
851
+ "elevation": 3,
904
852
  "flexDirection": "row",
905
853
  "justifyContent": "center",
854
+ "marginTop": undefined,
906
855
  "opacity": 1,
907
- "paddingHorizontal": 12,
908
- "paddingVertical": 8,
856
+ "paddingHorizontal": 8,
857
+ "paddingVertical": 4,
858
+ "shadowColor": "#001f23",
859
+ "shadowOffset": {
860
+ "height": 2,
861
+ "width": 0,
862
+ },
863
+ "shadowOpacity": 0.12,
864
+ "shadowRadius": 4,
909
865
  }
910
866
  }
911
867
  testID="chip"
912
868
  >
913
- <View
869
+ <Text
870
+ allowFontScaling={false}
914
871
  style={
915
872
  [
916
- {},
917
- [
918
- {
919
- "marginRight": 8,
920
- },
921
- undefined,
922
- ],
873
+ {
874
+ "color": "#001f23",
875
+ "fontFamily": "BeVietnamPro-Regular",
876
+ "fontSize": 16,
877
+ "letterSpacing": 0.48,
878
+ "lineHeight": 24,
879
+ },
880
+ undefined,
923
881
  ]
924
882
  }
883
+ themeIntent="body"
884
+ themeTypeface="neutral"
885
+ themeVariant="regular"
925
886
  >
926
- <HeroIcon
927
- name="checkmark"
928
- style={
929
- [
930
- {
931
- "color": "#001f23",
932
- "fontSize": 16,
933
- },
934
- [
935
- {
936
- "color": "#ffffff",
937
- },
938
- undefined,
939
- ],
940
- ]
941
- }
942
- testID="chip-icon-checkmark"
943
- themeIntent="text"
944
- themeSize="xsmall"
945
- />
946
- </View>
887
+ Cover my bills
888
+ </Text>
889
+ </View>
890
+ <View
891
+ pointerEvents="box-none"
892
+ position="bottom"
893
+ style={
894
+ [
895
+ {
896
+ "bottom": 0,
897
+ "elevation": 9999,
898
+ "flexDirection": "column-reverse",
899
+ "left": 0,
900
+ "paddingHorizontal": 24,
901
+ "paddingVertical": 16,
902
+ "position": "absolute",
903
+ "right": 0,
904
+ "top": 0,
905
+ },
906
+ undefined,
907
+ ]
908
+ }
909
+ />
910
+ </View>
911
+ `;
912
+
913
+ exports[`Chip renders correctly with variant compact and selected true 1`] = `
914
+ <View
915
+ style={
916
+ {
917
+ "flex": 1,
918
+ }
919
+ }
920
+ >
921
+ <View
922
+ accessibilityState={
923
+ {
924
+ "busy": undefined,
925
+ "checked": undefined,
926
+ "disabled": undefined,
927
+ "expanded": undefined,
928
+ "selected": undefined,
929
+ }
930
+ }
931
+ accessibilityValue={
932
+ {
933
+ "max": undefined,
934
+ "min": undefined,
935
+ "now": undefined,
936
+ "text": undefined,
937
+ }
938
+ }
939
+ accessible={true}
940
+ collapsable={false}
941
+ focusable={false}
942
+ onClick={[Function]}
943
+ onResponderGrant={[Function]}
944
+ onResponderMove={[Function]}
945
+ onResponderRelease={[Function]}
946
+ onResponderTerminate={[Function]}
947
+ onResponderTerminationRequest={[Function]}
948
+ onStartShouldSetResponder={[Function]}
949
+ style={
950
+ {
951
+ "alignItems": "center",
952
+ "alignSelf": "flex-start",
953
+ "backgroundColor": "#f6f6f7",
954
+ "borderColor": "transparent",
955
+ "borderRadius": 999,
956
+ "elevation": 3,
957
+ "flexDirection": "row",
958
+ "justifyContent": "center",
959
+ "marginTop": undefined,
960
+ "opacity": 1,
961
+ "paddingHorizontal": 8,
962
+ "paddingVertical": 4,
963
+ "shadowColor": "#001f23",
964
+ "shadowOffset": {
965
+ "height": 2,
966
+ "width": 0,
967
+ },
968
+ "shadowOpacity": 0.12,
969
+ "shadowRadius": 4,
970
+ }
971
+ }
972
+ testID="chip"
973
+ >
947
974
  <Text
948
975
  allowFontScaling={false}
949
976
  style={
@@ -951,22 +978,16 @@ exports[`Chip renders correctly with default icon 2`] = `
951
978
  {
952
979
  "color": "#001f23",
953
980
  "fontFamily": "BeVietnamPro-Regular",
954
- "fontSize": 14,
981
+ "fontSize": 16,
955
982
  "letterSpacing": 0.48,
956
- "lineHeight": 22,
983
+ "lineHeight": 24,
957
984
  },
958
- [
959
- {
960
- "color": "#ffffff",
961
- },
962
- undefined,
963
- ],
985
+ undefined,
964
986
  ]
965
987
  }
966
988
  themeIntent="body"
967
- themeSelected={true}
968
989
  themeTypeface="neutral"
969
- themeVariant="small"
990
+ themeVariant="regular"
970
991
  >
971
992
  Cover my bills
972
993
  </Text>
@@ -1037,10 +1058,10 @@ exports[`Chip renders correctly with variant filled and selected false 1`] = `
1037
1058
  "backgroundColor": "#ffffff",
1038
1059
  "borderColor": "transparent",
1039
1060
  "borderRadius": 999,
1040
- "borderWidth": 1,
1041
1061
  "elevation": 3,
1042
1062
  "flexDirection": "row",
1043
1063
  "justifyContent": "center",
1064
+ "marginTop": undefined,
1044
1065
  "opacity": 1,
1045
1066
  "paddingHorizontal": 12,
1046
1067
  "paddingVertical": 8,
@@ -1062,20 +1083,16 @@ exports[`Chip renders correctly with variant filled and selected false 1`] = `
1062
1083
  {
1063
1084
  "color": "#001f23",
1064
1085
  "fontFamily": "BeVietnamPro-Regular",
1065
- "fontSize": 14,
1086
+ "fontSize": 16,
1066
1087
  "letterSpacing": 0.48,
1067
- "lineHeight": 22,
1088
+ "lineHeight": 24,
1068
1089
  },
1069
- [
1070
- {},
1071
- undefined,
1072
- ],
1090
+ undefined,
1073
1091
  ]
1074
1092
  }
1075
1093
  themeIntent="body"
1076
- themeSelected={false}
1077
1094
  themeTypeface="neutral"
1078
- themeVariant="small"
1095
+ themeVariant="regular"
1079
1096
  >
1080
1097
  Cover my bills
1081
1098
  </Text>
@@ -1146,10 +1163,10 @@ exports[`Chip renders correctly with variant filled and selected true 1`] = `
1146
1163
  "backgroundColor": "#ece8ef",
1147
1164
  "borderColor": "transparent",
1148
1165
  "borderRadius": 999,
1149
- "borderWidth": 1,
1150
1166
  "elevation": 3,
1151
1167
  "flexDirection": "row",
1152
1168
  "justifyContent": "center",
1169
+ "marginTop": undefined,
1153
1170
  "opacity": 1,
1154
1171
  "paddingHorizontal": 12,
1155
1172
  "paddingVertical": 8,
@@ -1164,38 +1181,6 @@ exports[`Chip renders correctly with variant filled and selected true 1`] = `
1164
1181
  }
1165
1182
  testID="chip"
1166
1183
  >
1167
- <View
1168
- style={
1169
- [
1170
- {},
1171
- [
1172
- {
1173
- "marginRight": 8,
1174
- },
1175
- undefined,
1176
- ],
1177
- ]
1178
- }
1179
- >
1180
- <HeroIcon
1181
- name="checkmark"
1182
- style={
1183
- [
1184
- {
1185
- "color": "#001f23",
1186
- "fontSize": 16,
1187
- },
1188
- [
1189
- {},
1190
- undefined,
1191
- ],
1192
- ]
1193
- }
1194
- testID="chip-icon-checkmark"
1195
- themeIntent="text"
1196
- themeSize="xsmall"
1197
- />
1198
- </View>
1199
1184
  <Text
1200
1185
  allowFontScaling={false}
1201
1186
  style={
@@ -1203,20 +1188,16 @@ exports[`Chip renders correctly with variant filled and selected true 1`] = `
1203
1188
  {
1204
1189
  "color": "#001f23",
1205
1190
  "fontFamily": "BeVietnamPro-Regular",
1206
- "fontSize": 14,
1191
+ "fontSize": 16,
1207
1192
  "letterSpacing": 0.48,
1208
- "lineHeight": 22,
1193
+ "lineHeight": 24,
1209
1194
  },
1210
- [
1211
- {},
1212
- undefined,
1213
- ],
1195
+ undefined,
1214
1196
  ]
1215
1197
  }
1216
1198
  themeIntent="body"
1217
- themeSelected={true}
1218
1199
  themeTypeface="neutral"
1219
- themeVariant="small"
1200
+ themeVariant="regular"
1220
1201
  >
1221
1202
  Cover my bills
1222
1203
  </Text>
@@ -1284,12 +1265,13 @@ exports[`Chip renders correctly with variant outlined and selected false 1`] = `
1284
1265
  {
1285
1266
  "alignItems": "center",
1286
1267
  "alignSelf": "flex-start",
1287
- "backgroundColor": "transparent",
1288
- "borderColor": "#001f23",
1268
+ "backgroundColor": "#ffffff",
1269
+ "borderColor": "#bfc1c5",
1289
1270
  "borderRadius": 999,
1290
1271
  "borderWidth": 1,
1291
1272
  "flexDirection": "row",
1292
1273
  "justifyContent": "center",
1274
+ "marginTop": undefined,
1293
1275
  "opacity": 1,
1294
1276
  "paddingHorizontal": 12,
1295
1277
  "paddingVertical": 8,
@@ -1304,20 +1286,16 @@ exports[`Chip renders correctly with variant outlined and selected false 1`] = `
1304
1286
  {
1305
1287
  "color": "#001f23",
1306
1288
  "fontFamily": "BeVietnamPro-Regular",
1307
- "fontSize": 14,
1289
+ "fontSize": 16,
1308
1290
  "letterSpacing": 0.48,
1309
- "lineHeight": 22,
1291
+ "lineHeight": 24,
1310
1292
  },
1311
- [
1312
- {},
1313
- undefined,
1314
- ],
1293
+ undefined,
1315
1294
  ]
1316
1295
  }
1317
1296
  themeIntent="body"
1318
- themeSelected={false}
1319
1297
  themeTypeface="neutral"
1320
- themeVariant="small"
1298
+ themeVariant="regular"
1321
1299
  >
1322
1300
  Cover my bills
1323
1301
  </Text>
@@ -1385,12 +1363,13 @@ exports[`Chip renders correctly with variant outlined and selected true 1`] = `
1385
1363
  {
1386
1364
  "alignItems": "center",
1387
1365
  "alignSelf": "flex-start",
1388
- "backgroundColor": "#001f23",
1389
- "borderColor": "transparent",
1366
+ "backgroundColor": "#e8e9ea",
1367
+ "borderColor": "#001f23",
1390
1368
  "borderRadius": 999,
1391
- "borderWidth": 1,
1369
+ "borderWidth": 2,
1392
1370
  "flexDirection": "row",
1393
1371
  "justifyContent": "center",
1372
+ "marginTop": -2,
1394
1373
  "opacity": 1,
1395
1374
  "paddingHorizontal": 12,
1396
1375
  "paddingVertical": 8,
@@ -1398,66 +1377,53 @@ exports[`Chip renders correctly with variant outlined and selected true 1`] = `
1398
1377
  }
1399
1378
  testID="chip"
1400
1379
  >
1380
+ <Text
1381
+ allowFontScaling={false}
1382
+ style={
1383
+ [
1384
+ {
1385
+ "color": "#001f23",
1386
+ "fontFamily": "BeVietnamPro-Regular",
1387
+ "fontSize": 16,
1388
+ "letterSpacing": 0.48,
1389
+ "lineHeight": 24,
1390
+ },
1391
+ undefined,
1392
+ ]
1393
+ }
1394
+ themeIntent="body"
1395
+ themeTypeface="neutral"
1396
+ themeVariant="regular"
1397
+ >
1398
+ Cover my bills
1399
+ </Text>
1401
1400
  <View
1401
+ marginLeft="small"
1402
1402
  style={
1403
1403
  [
1404
- {},
1405
- [
1406
- {
1407
- "marginRight": 8,
1408
- },
1409
- undefined,
1410
- ],
1404
+ {
1405
+ "marginLeft": 8,
1406
+ },
1407
+ undefined,
1411
1408
  ]
1412
1409
  }
1413
1410
  >
1414
1411
  <HeroIcon
1415
- name="checkmark"
1412
+ name="cancel"
1416
1413
  style={
1417
1414
  [
1418
1415
  {
1419
1416
  "color": "#001f23",
1420
1417
  "fontSize": 16,
1421
1418
  },
1422
- [
1423
- {
1424
- "color": "#ffffff",
1425
- },
1426
- undefined,
1427
- ],
1419
+ undefined,
1428
1420
  ]
1429
1421
  }
1430
- testID="chip-icon-checkmark"
1422
+ testID="selected-chip-icon-cancel"
1431
1423
  themeIntent="text"
1432
1424
  themeSize="xsmall"
1433
1425
  />
1434
1426
  </View>
1435
- <Text
1436
- allowFontScaling={false}
1437
- style={
1438
- [
1439
- {
1440
- "color": "#001f23",
1441
- "fontFamily": "BeVietnamPro-Regular",
1442
- "fontSize": 14,
1443
- "letterSpacing": 0.48,
1444
- "lineHeight": 22,
1445
- },
1446
- [
1447
- {
1448
- "color": "#ffffff",
1449
- },
1450
- undefined,
1451
- ],
1452
- ]
1453
- }
1454
- themeIntent="body"
1455
- themeSelected={true}
1456
- themeTypeface="neutral"
1457
- themeVariant="small"
1458
- >
1459
- Cover my bills
1460
- </Text>
1461
1427
  </View>
1462
1428
  <View
1463
1429
  pointerEvents="box-none"