@hero-design/rn 8.69.0 → 8.70.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 (33) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +17 -0
  3. package/es/index.js +67 -80
  4. package/lib/index.js +67 -80
  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 +15 -45
  14. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +145 -389
  15. package/src/components/Chip/__tests__/index.spec.tsx +6 -26
  16. package/src/components/Chip/index.tsx +26 -33
  17. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +9 -6
  18. package/src/theme/components/card.ts +1 -0
  19. package/src/theme/components/chip.ts +8 -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/types/components/Card/StyledCard.d.ts +1 -0
  28. package/types/components/Card/index.d.ts +2 -1
  29. package/types/components/Chip/StyledChip.d.ts +1 -19
  30. package/types/components/Chip/index.d.ts +6 -2
  31. package/types/theme/components/card.d.ts +1 -0
  32. package/types/theme/components/chip.d.ts +8 -6
  33. 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,159 +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>
317
- </View>
318
- <View
319
- pointerEvents="box-none"
320
- position="bottom"
321
- style={
322
- [
323
- {
324
- "bottom": 0,
325
- "elevation": 9999,
326
- "flexDirection": "column-reverse",
327
- "left": 0,
328
- "paddingHorizontal": 24,
329
- "paddingVertical": 16,
330
- "position": "absolute",
331
- "right": 0,
332
- "top": 0,
333
- },
334
- undefined,
335
- ]
336
- }
337
- />
338
- </View>
339
- `;
340
-
341
- exports[`Chip renders correctly when selected is true 1`] = `
342
- <View
343
- style={
344
- {
345
- "flex": 1,
346
- }
347
- }
348
- >
349
- <View
350
- accessibilityState={
351
- {
352
- "busy": undefined,
353
- "checked": undefined,
354
- "disabled": undefined,
355
- "expanded": undefined,
356
- "selected": undefined,
357
- }
358
- }
359
- accessibilityValue={
360
- {
361
- "max": undefined,
362
- "min": undefined,
363
- "now": undefined,
364
- "text": undefined,
365
- }
366
- }
367
- accessible={true}
368
- collapsable={false}
369
- focusable={false}
370
- onClick={[Function]}
371
- onResponderGrant={[Function]}
372
- onResponderMove={[Function]}
373
- onResponderRelease={[Function]}
374
- onResponderTerminate={[Function]}
375
- onResponderTerminationRequest={[Function]}
376
- onStartShouldSetResponder={[Function]}
377
- style={
378
- {
379
- "alignItems": "center",
380
- "alignSelf": "flex-start",
381
- "backgroundColor": "#001f23",
382
- "borderColor": "transparent",
383
- "borderRadius": 999,
384
- "borderWidth": 1,
385
- "flexDirection": "row",
386
- "justifyContent": "center",
387
- "opacity": 1,
388
- "paddingHorizontal": 12,
389
- "paddingVertical": 8,
390
- }
391
- }
392
- >
393
270
  <View
271
+ marginLeft="small"
394
272
  style={
395
273
  [
396
- {},
397
- [
398
- {
399
- "marginRight": 8,
400
- },
401
- undefined,
402
- ],
274
+ {
275
+ "marginLeft": 8,
276
+ },
277
+ undefined,
403
278
  ]
404
279
  }
405
280
  >
406
281
  <HeroIcon
407
- name="checkmark"
282
+ name="cancel"
408
283
  style={
409
284
  [
410
285
  {
411
286
  "color": "#001f23",
412
287
  "fontSize": 16,
413
288
  },
414
- [
415
- {
416
- "color": "#ffffff",
417
- },
418
- undefined,
419
- ],
289
+ undefined,
420
290
  ]
421
291
  }
422
- testID="chip-icon-checkmark"
292
+ testID="selected-chip-icon-cancel"
423
293
  themeIntent="text"
424
294
  themeSize="xsmall"
425
295
  />
426
296
  </View>
427
- <Text
428
- allowFontScaling={false}
429
- style={
430
- [
431
- {
432
- "color": "#001f23",
433
- "fontFamily": "BeVietnamPro-Regular",
434
- "fontSize": 14,
435
- "letterSpacing": 0.48,
436
- "lineHeight": 22,
437
- },
438
- [
439
- {
440
- "color": "#ffffff",
441
- },
442
- undefined,
443
- ],
444
- ]
445
- }
446
- themeIntent="body"
447
- themeSelected={true}
448
- themeTypeface="neutral"
449
- themeVariant="small"
450
- >
451
- Cover my bills
452
- </Text>
453
297
  </View>
454
298
  <View
455
299
  pointerEvents="box-none"
@@ -517,10 +361,10 @@ exports[`Chip renders correctly with custom icon 1`] = `
517
361
  "backgroundColor": "#ffffff",
518
362
  "borderColor": "transparent",
519
363
  "borderRadius": 999,
520
- "borderWidth": 1,
521
364
  "elevation": 3,
522
365
  "flexDirection": "row",
523
366
  "justifyContent": "center",
367
+ "marginTop": undefined,
524
368
  "opacity": 1,
525
369
  "paddingHorizontal": 12,
526
370
  "paddingVertical": 8,
@@ -536,15 +380,13 @@ exports[`Chip renders correctly with custom icon 1`] = `
536
380
  testID="chip"
537
381
  >
538
382
  <View
383
+ marginRight="small"
539
384
  style={
540
385
  [
541
- {},
542
- [
543
- {
544
- "marginRight": 8,
545
- },
546
- undefined,
547
- ],
386
+ {
387
+ "marginRight": 8,
388
+ },
389
+ undefined,
548
390
  ]
549
391
  }
550
392
  >
@@ -556,10 +398,7 @@ exports[`Chip renders correctly with custom icon 1`] = `
556
398
  "color": "#001f23",
557
399
  "fontSize": 16,
558
400
  },
559
- [
560
- {},
561
- undefined,
562
- ],
401
+ undefined,
563
402
  ]
564
403
  }
565
404
  testID="chip-icon-charging-station-outlined"
@@ -574,20 +413,16 @@ exports[`Chip renders correctly with custom icon 1`] = `
574
413
  {
575
414
  "color": "#001f23",
576
415
  "fontFamily": "BeVietnamPro-Regular",
577
- "fontSize": 14,
416
+ "fontSize": 16,
578
417
  "letterSpacing": 0.48,
579
- "lineHeight": 22,
418
+ "lineHeight": 24,
580
419
  },
581
- [
582
- {},
583
- undefined,
584
- ],
420
+ undefined,
585
421
  ]
586
422
  }
587
423
  themeIntent="body"
588
- themeSelected={false}
589
424
  themeTypeface="neutral"
590
- themeVariant="small"
425
+ themeVariant="regular"
591
426
  >
592
427
  Cover my bills
593
428
  </Text>
@@ -658,10 +493,10 @@ exports[`Chip renders correctly with custom icon 2`] = `
658
493
  "backgroundColor": "#ece8ef",
659
494
  "borderColor": "transparent",
660
495
  "borderRadius": 999,
661
- "borderWidth": 1,
662
496
  "elevation": 3,
663
497
  "flexDirection": "row",
664
498
  "justifyContent": "center",
499
+ "marginTop": -2,
665
500
  "opacity": 1,
666
501
  "paddingHorizontal": 12,
667
502
  "paddingVertical": 8,
@@ -677,15 +512,13 @@ exports[`Chip renders correctly with custom icon 2`] = `
677
512
  testID="chip"
678
513
  >
679
514
  <View
515
+ marginRight="small"
680
516
  style={
681
517
  [
682
- {},
683
- [
684
- {
685
- "marginRight": 8,
686
- },
687
- undefined,
688
- ],
518
+ {
519
+ "marginRight": 8,
520
+ },
521
+ undefined,
689
522
  ]
690
523
  }
691
524
  >
@@ -697,10 +530,7 @@ exports[`Chip renders correctly with custom icon 2`] = `
697
530
  "color": "#001f23",
698
531
  "fontSize": 16,
699
532
  },
700
- [
701
- {},
702
- undefined,
703
- ],
533
+ undefined,
704
534
  ]
705
535
  }
706
536
  testID="chip-icon-charging-station-outlined"
@@ -715,20 +545,16 @@ exports[`Chip renders correctly with custom icon 2`] = `
715
545
  {
716
546
  "color": "#001f23",
717
547
  "fontFamily": "BeVietnamPro-Regular",
718
- "fontSize": 14,
548
+ "fontSize": 16,
719
549
  "letterSpacing": 0.48,
720
- "lineHeight": 22,
550
+ "lineHeight": 24,
721
551
  },
722
- [
723
- {},
724
- undefined,
725
- ],
552
+ undefined,
726
553
  ]
727
554
  }
728
555
  themeIntent="body"
729
- themeSelected={true}
730
556
  themeTypeface="neutral"
731
- themeVariant="small"
557
+ themeVariant="regular"
732
558
  >
733
559
  Cover my bills
734
560
  </Text>
@@ -796,12 +622,13 @@ exports[`Chip renders correctly with default icon 1`] = `
796
622
  {
797
623
  "alignItems": "center",
798
624
  "alignSelf": "flex-start",
799
- "backgroundColor": "transparent",
800
- "borderColor": "#001f23",
625
+ "backgroundColor": "#ffffff",
626
+ "borderColor": "#bfc1c5",
801
627
  "borderRadius": 999,
802
628
  "borderWidth": 1,
803
629
  "flexDirection": "row",
804
630
  "justifyContent": "center",
631
+ "marginTop": undefined,
805
632
  "opacity": 1,
806
633
  "paddingHorizontal": 12,
807
634
  "paddingVertical": 8,
@@ -816,20 +643,16 @@ exports[`Chip renders correctly with default icon 1`] = `
816
643
  {
817
644
  "color": "#001f23",
818
645
  "fontFamily": "BeVietnamPro-Regular",
819
- "fontSize": 14,
646
+ "fontSize": 16,
820
647
  "letterSpacing": 0.48,
821
- "lineHeight": 22,
648
+ "lineHeight": 24,
822
649
  },
823
- [
824
- {},
825
- undefined,
826
- ],
650
+ undefined,
827
651
  ]
828
652
  }
829
653
  themeIntent="body"
830
- themeSelected={false}
831
654
  themeTypeface="neutral"
832
- themeVariant="small"
655
+ themeVariant="regular"
833
656
  >
834
657
  Cover my bills
835
658
  </Text>
@@ -897,12 +720,13 @@ exports[`Chip renders correctly with default icon 2`] = `
897
720
  {
898
721
  "alignItems": "center",
899
722
  "alignSelf": "flex-start",
900
- "backgroundColor": "#001f23",
901
- "borderColor": "transparent",
723
+ "backgroundColor": "#e8e9ea",
724
+ "borderColor": "#001f23",
902
725
  "borderRadius": 999,
903
- "borderWidth": 1,
726
+ "borderWidth": 2,
904
727
  "flexDirection": "row",
905
728
  "justifyContent": "center",
729
+ "marginTop": -2,
906
730
  "opacity": 1,
907
731
  "paddingHorizontal": 12,
908
732
  "paddingVertical": 8,
@@ -910,66 +734,53 @@ exports[`Chip renders correctly with default icon 2`] = `
910
734
  }
911
735
  testID="chip"
912
736
  >
737
+ <Text
738
+ allowFontScaling={false}
739
+ style={
740
+ [
741
+ {
742
+ "color": "#001f23",
743
+ "fontFamily": "BeVietnamPro-Regular",
744
+ "fontSize": 16,
745
+ "letterSpacing": 0.48,
746
+ "lineHeight": 24,
747
+ },
748
+ undefined,
749
+ ]
750
+ }
751
+ themeIntent="body"
752
+ themeTypeface="neutral"
753
+ themeVariant="regular"
754
+ >
755
+ Cover my bills
756
+ </Text>
913
757
  <View
758
+ marginLeft="small"
914
759
  style={
915
760
  [
916
- {},
917
- [
918
- {
919
- "marginRight": 8,
920
- },
921
- undefined,
922
- ],
761
+ {
762
+ "marginLeft": 8,
763
+ },
764
+ undefined,
923
765
  ]
924
766
  }
925
767
  >
926
768
  <HeroIcon
927
- name="checkmark"
769
+ name="cancel"
928
770
  style={
929
771
  [
930
772
  {
931
773
  "color": "#001f23",
932
774
  "fontSize": 16,
933
775
  },
934
- [
935
- {
936
- "color": "#ffffff",
937
- },
938
- undefined,
939
- ],
776
+ undefined,
940
777
  ]
941
778
  }
942
- testID="chip-icon-checkmark"
779
+ testID="selected-chip-icon-cancel"
943
780
  themeIntent="text"
944
781
  themeSize="xsmall"
945
782
  />
946
783
  </View>
947
- <Text
948
- allowFontScaling={false}
949
- style={
950
- [
951
- {
952
- "color": "#001f23",
953
- "fontFamily": "BeVietnamPro-Regular",
954
- "fontSize": 14,
955
- "letterSpacing": 0.48,
956
- "lineHeight": 22,
957
- },
958
- [
959
- {
960
- "color": "#ffffff",
961
- },
962
- undefined,
963
- ],
964
- ]
965
- }
966
- themeIntent="body"
967
- themeSelected={true}
968
- themeTypeface="neutral"
969
- themeVariant="small"
970
- >
971
- Cover my bills
972
- </Text>
973
784
  </View>
974
785
  <View
975
786
  pointerEvents="box-none"
@@ -1037,10 +848,10 @@ exports[`Chip renders correctly with variant filled and selected false 1`] = `
1037
848
  "backgroundColor": "#ffffff",
1038
849
  "borderColor": "transparent",
1039
850
  "borderRadius": 999,
1040
- "borderWidth": 1,
1041
851
  "elevation": 3,
1042
852
  "flexDirection": "row",
1043
853
  "justifyContent": "center",
854
+ "marginTop": undefined,
1044
855
  "opacity": 1,
1045
856
  "paddingHorizontal": 12,
1046
857
  "paddingVertical": 8,
@@ -1062,20 +873,16 @@ exports[`Chip renders correctly with variant filled and selected false 1`] = `
1062
873
  {
1063
874
  "color": "#001f23",
1064
875
  "fontFamily": "BeVietnamPro-Regular",
1065
- "fontSize": 14,
876
+ "fontSize": 16,
1066
877
  "letterSpacing": 0.48,
1067
- "lineHeight": 22,
878
+ "lineHeight": 24,
1068
879
  },
1069
- [
1070
- {},
1071
- undefined,
1072
- ],
880
+ undefined,
1073
881
  ]
1074
882
  }
1075
883
  themeIntent="body"
1076
- themeSelected={false}
1077
884
  themeTypeface="neutral"
1078
- themeVariant="small"
885
+ themeVariant="regular"
1079
886
  >
1080
887
  Cover my bills
1081
888
  </Text>
@@ -1146,10 +953,10 @@ exports[`Chip renders correctly with variant filled and selected true 1`] = `
1146
953
  "backgroundColor": "#ece8ef",
1147
954
  "borderColor": "transparent",
1148
955
  "borderRadius": 999,
1149
- "borderWidth": 1,
1150
956
  "elevation": 3,
1151
957
  "flexDirection": "row",
1152
958
  "justifyContent": "center",
959
+ "marginTop": -2,
1153
960
  "opacity": 1,
1154
961
  "paddingHorizontal": 12,
1155
962
  "paddingVertical": 8,
@@ -1164,38 +971,6 @@ exports[`Chip renders correctly with variant filled and selected true 1`] = `
1164
971
  }
1165
972
  testID="chip"
1166
973
  >
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
974
  <Text
1200
975
  allowFontScaling={false}
1201
976
  style={
@@ -1203,20 +978,16 @@ exports[`Chip renders correctly with variant filled and selected true 1`] = `
1203
978
  {
1204
979
  "color": "#001f23",
1205
980
  "fontFamily": "BeVietnamPro-Regular",
1206
- "fontSize": 14,
981
+ "fontSize": 16,
1207
982
  "letterSpacing": 0.48,
1208
- "lineHeight": 22,
983
+ "lineHeight": 24,
1209
984
  },
1210
- [
1211
- {},
1212
- undefined,
1213
- ],
985
+ undefined,
1214
986
  ]
1215
987
  }
1216
988
  themeIntent="body"
1217
- themeSelected={true}
1218
989
  themeTypeface="neutral"
1219
- themeVariant="small"
990
+ themeVariant="regular"
1220
991
  >
1221
992
  Cover my bills
1222
993
  </Text>
@@ -1284,12 +1055,13 @@ exports[`Chip renders correctly with variant outlined and selected false 1`] = `
1284
1055
  {
1285
1056
  "alignItems": "center",
1286
1057
  "alignSelf": "flex-start",
1287
- "backgroundColor": "transparent",
1288
- "borderColor": "#001f23",
1058
+ "backgroundColor": "#ffffff",
1059
+ "borderColor": "#bfc1c5",
1289
1060
  "borderRadius": 999,
1290
1061
  "borderWidth": 1,
1291
1062
  "flexDirection": "row",
1292
1063
  "justifyContent": "center",
1064
+ "marginTop": undefined,
1293
1065
  "opacity": 1,
1294
1066
  "paddingHorizontal": 12,
1295
1067
  "paddingVertical": 8,
@@ -1304,20 +1076,16 @@ exports[`Chip renders correctly with variant outlined and selected false 1`] = `
1304
1076
  {
1305
1077
  "color": "#001f23",
1306
1078
  "fontFamily": "BeVietnamPro-Regular",
1307
- "fontSize": 14,
1079
+ "fontSize": 16,
1308
1080
  "letterSpacing": 0.48,
1309
- "lineHeight": 22,
1081
+ "lineHeight": 24,
1310
1082
  },
1311
- [
1312
- {},
1313
- undefined,
1314
- ],
1083
+ undefined,
1315
1084
  ]
1316
1085
  }
1317
1086
  themeIntent="body"
1318
- themeSelected={false}
1319
1087
  themeTypeface="neutral"
1320
- themeVariant="small"
1088
+ themeVariant="regular"
1321
1089
  >
1322
1090
  Cover my bills
1323
1091
  </Text>
@@ -1385,12 +1153,13 @@ exports[`Chip renders correctly with variant outlined and selected true 1`] = `
1385
1153
  {
1386
1154
  "alignItems": "center",
1387
1155
  "alignSelf": "flex-start",
1388
- "backgroundColor": "#001f23",
1389
- "borderColor": "transparent",
1156
+ "backgroundColor": "#e8e9ea",
1157
+ "borderColor": "#001f23",
1390
1158
  "borderRadius": 999,
1391
- "borderWidth": 1,
1159
+ "borderWidth": 2,
1392
1160
  "flexDirection": "row",
1393
1161
  "justifyContent": "center",
1162
+ "marginTop": -2,
1394
1163
  "opacity": 1,
1395
1164
  "paddingHorizontal": 12,
1396
1165
  "paddingVertical": 8,
@@ -1398,66 +1167,53 @@ exports[`Chip renders correctly with variant outlined and selected true 1`] = `
1398
1167
  }
1399
1168
  testID="chip"
1400
1169
  >
1170
+ <Text
1171
+ allowFontScaling={false}
1172
+ style={
1173
+ [
1174
+ {
1175
+ "color": "#001f23",
1176
+ "fontFamily": "BeVietnamPro-Regular",
1177
+ "fontSize": 16,
1178
+ "letterSpacing": 0.48,
1179
+ "lineHeight": 24,
1180
+ },
1181
+ undefined,
1182
+ ]
1183
+ }
1184
+ themeIntent="body"
1185
+ themeTypeface="neutral"
1186
+ themeVariant="regular"
1187
+ >
1188
+ Cover my bills
1189
+ </Text>
1401
1190
  <View
1191
+ marginLeft="small"
1402
1192
  style={
1403
1193
  [
1404
- {},
1405
- [
1406
- {
1407
- "marginRight": 8,
1408
- },
1409
- undefined,
1410
- ],
1194
+ {
1195
+ "marginLeft": 8,
1196
+ },
1197
+ undefined,
1411
1198
  ]
1412
1199
  }
1413
1200
  >
1414
1201
  <HeroIcon
1415
- name="checkmark"
1202
+ name="cancel"
1416
1203
  style={
1417
1204
  [
1418
1205
  {
1419
1206
  "color": "#001f23",
1420
1207
  "fontSize": 16,
1421
1208
  },
1422
- [
1423
- {
1424
- "color": "#ffffff",
1425
- },
1426
- undefined,
1427
- ],
1209
+ undefined,
1428
1210
  ]
1429
1211
  }
1430
- testID="chip-icon-checkmark"
1212
+ testID="selected-chip-icon-cancel"
1431
1213
  themeIntent="text"
1432
1214
  themeSize="xsmall"
1433
1215
  />
1434
1216
  </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
1217
  </View>
1462
1218
  <View
1463
1219
  pointerEvents="box-none"