@hero-design/rn 8.110.1 → 8.112.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 (155) hide show
  1. package/.cursor/rules/performance-optimization.mdc +64 -0
  2. package/.cursor/rules/rn-rules.mdc +165 -0
  3. package/.cursor/rules/testing-rules.mdc +114 -0
  4. package/.turbo/turbo-build.log +3 -3
  5. package/CHANGELOG.md +26 -0
  6. package/assets/fonts/BeVietnamPro-BoldItalic.ttf +0 -0
  7. package/assets/fonts/BeVietnamPro-LightItalic.ttf +0 -0
  8. package/assets/fonts/BeVietnamPro-RegularItalic.ttf +0 -0
  9. package/assets/fonts/BeVietnamPro-SemiBoldItalic.ttf +0 -0
  10. package/assets/fonts/Saiga-LightItalic.otf +0 -0
  11. package/assets/fonts/Saiga-MediumItalic.otf +0 -0
  12. package/assets/fonts/Saiga-RegularItalic.otf +0 -0
  13. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  14. package/es/index.js +429 -389
  15. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  16. package/lib/index.js +429 -389
  17. package/package.json +6 -7
  18. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -0
  19. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  20. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
  21. package/src/components/Alert/index.tsx +10 -2
  22. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +70 -0
  23. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  24. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -0
  25. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +31 -0
  26. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +1 -0
  27. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  28. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +8 -0
  29. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -0
  30. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  31. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  32. package/src/components/Button/Button.tsx +10 -4
  33. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  34. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +33 -0
  35. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +13 -0
  36. package/src/components/Calendar/__tests__/__snapshots__/CalendarRangeConnector.spec.tsx.snap +5 -0
  37. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
  38. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
  39. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +16 -0
  40. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +20 -0
  41. package/src/components/Chart/ColumnChart/__tests__/__snapshots__/index.spec.tsx.snap +49 -0
  42. package/src/components/Chart/Line/__tests__/__snapshots__/index.spec.tsx.snap +60 -0
  43. package/src/components/Chart/shared/__tests__/__snapshots__/ChartFrame.spec.tsx.snap +62 -0
  44. package/src/components/Chart/shared/__tests__/__snapshots__/ChartHeader.spec.tsx.snap +2 -0
  45. package/src/components/Chart/shared/__tests__/__snapshots__/EmptyState.spec.tsx.snap +2 -0
  46. package/src/components/Chart/shared/__tests__/__snapshots__/XAxis.spec.tsx.snap +12 -0
  47. package/src/components/Chart/shared/__tests__/__snapshots__/YAxis.spec.tsx.snap +36 -0
  48. package/src/components/Checkbox/__tests__/__snapshots__/DefaultCheckBox.spec.tsx.snap +4 -0
  49. package/src/components/Checkbox/__tests__/__snapshots__/InlineCheckBox.spec.tsx.snap +6 -0
  50. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +19 -0
  51. package/src/components/Chip/index.tsx +9 -8
  52. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  53. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +3 -0
  54. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  55. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +1 -0
  56. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +6 -0
  57. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  58. package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  59. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -0
  60. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  61. package/src/components/FilterTrigger/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  62. package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  63. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  64. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  65. package/src/components/Icon/IconList.ts +8 -0
  66. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -0
  67. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +13 -0
  68. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
  69. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -0
  70. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  71. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +5 -0
  72. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  73. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  74. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -0
  75. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +4 -0
  76. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +10 -0
  77. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
  78. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +2 -0
  79. package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +1 -0
  80. package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +4 -0
  81. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
  82. package/src/components/SegmentedControl/__tests__/__snapshots__/SegmentedItem.spec.tsx.snap +1 -0
  83. package/src/components/SegmentedControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  84. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  85. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
  86. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
  87. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  88. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +24 -0
  89. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +39 -0
  90. package/src/components/Select/index.internal.tsx +13 -0
  91. package/src/components/StatusScreens/Empty/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
  92. package/src/components/StatusScreens/Error/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
  93. package/src/components/StatusScreens/Success/__tests__/__snapshots__/index.spec.tsx.snap +16 -0
  94. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
  95. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  96. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  97. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  98. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +3 -0
  99. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +9 -0
  100. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +4 -0
  101. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +1 -0
  102. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +18 -0
  103. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +10 -0
  104. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +7 -0
  105. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +40 -0
  106. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +3 -0
  107. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +5 -0
  108. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +13 -0
  109. package/src/components/Toolbar/ToolbarGroup.tsx +10 -4
  110. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +6 -0
  111. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +7 -0
  112. package/src/components/Typography/Body/StyledBody.tsx +24 -19
  113. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +229 -0
  114. package/src/components/Typography/Body/__tests__/index.spec.tsx +19 -0
  115. package/src/components/Typography/Body/index.tsx +8 -2
  116. package/src/components/Typography/Caption/StyledCaption.tsx +15 -8
  117. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +219 -0
  118. package/src/components/Typography/Caption/__tests__/index.spec.tsx +19 -0
  119. package/src/components/Typography/Caption/index.tsx +18 -10
  120. package/src/components/Typography/Label/StyledLabel.tsx +16 -6
  121. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +8 -0
  122. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +126 -0
  123. package/src/components/Typography/Label/__tests__/index.spec.tsx +12 -0
  124. package/src/components/Typography/Label/index.tsx +17 -9
  125. package/src/components/Typography/Title/StyledTitle.tsx +22 -8
  126. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +441 -0
  127. package/src/components/Typography/Title/__tests__/index.spec.tsx +23 -0
  128. package/src/components/Typography/Title/index.tsx +8 -2
  129. package/src/index.internal.ts +14 -0
  130. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +24 -10
  131. package/src/theme/components/typography.ts +12 -10
  132. package/src/theme/global/typography.ts +9 -0
  133. package/src/types.internal.ts +14 -1
  134. package/stats/8.111.0/rn-stats.html +4842 -0
  135. package/types/components/Alert/index.d.ts +8 -2
  136. package/types/components/Button/Button.d.ts +8 -4
  137. package/types/components/Chip/index.d.ts +7 -2
  138. package/types/components/Icon/IconList.d.ts +1 -1
  139. package/types/components/Icon/index.d.ts +1 -1
  140. package/types/components/Select/index.internal.d.ts +13 -0
  141. package/types/components/TextInput/StyledTextInput.d.ts +1 -1
  142. package/types/components/TextInput/index.d.ts +1 -1
  143. package/types/components/Toolbar/ToolbarGroup.d.ts +8 -4
  144. package/types/components/Typography/Body/StyledBody.d.ts +1 -0
  145. package/types/components/Typography/Body/index.d.ts +6 -2
  146. package/types/components/Typography/Caption/StyledCaption.d.ts +1 -0
  147. package/types/components/Typography/Caption/index.d.ts +5 -1
  148. package/types/components/Typography/Label/StyledLabel.d.ts +1 -0
  149. package/types/components/Typography/Label/index.d.ts +5 -1
  150. package/types/components/Typography/Title/StyledTitle.d.ts +1 -0
  151. package/types/components/Typography/Title/index.d.ts +6 -2
  152. package/types/index.internal.d.ts +13 -0
  153. package/types/theme/components/typography.d.ts +12 -10
  154. package/types/theme/global/typography.d.ts +3 -0
  155. package/types/types.internal.d.ts +13 -0
@@ -46,6 +46,7 @@ exports[`YAxis renders correctly on web 1`] = `
46
46
  [
47
47
  {
48
48
  "color": "#4d6265",
49
+ "fontFamily": "BeVietnamPro-Regular",
49
50
  "fontSize": 10,
50
51
  "letterSpacing": 0,
51
52
  "lineHeight": 14,
@@ -56,6 +57,7 @@ exports[`YAxis renders correctly on web 1`] = `
56
57
  ]
57
58
  }
58
59
  themeIntent="subdued"
60
+ themeIsItalic={false}
59
61
  >
60
62
  0
61
63
  </Text>
@@ -91,6 +93,7 @@ exports[`YAxis renders correctly on web 1`] = `
91
93
  [
92
94
  {
93
95
  "color": "#4d6265",
96
+ "fontFamily": "BeVietnamPro-Regular",
94
97
  "fontSize": 10,
95
98
  "letterSpacing": 0,
96
99
  "lineHeight": 14,
@@ -101,6 +104,7 @@ exports[`YAxis renders correctly on web 1`] = `
101
104
  ]
102
105
  }
103
106
  themeIntent="subdued"
107
+ themeIsItalic={false}
104
108
  >
105
109
  20
106
110
  </Text>
@@ -136,6 +140,7 @@ exports[`YAxis renders correctly on web 1`] = `
136
140
  [
137
141
  {
138
142
  "color": "#4d6265",
143
+ "fontFamily": "BeVietnamPro-Regular",
139
144
  "fontSize": 10,
140
145
  "letterSpacing": 0,
141
146
  "lineHeight": 14,
@@ -146,6 +151,7 @@ exports[`YAxis renders correctly on web 1`] = `
146
151
  ]
147
152
  }
148
153
  themeIntent="subdued"
154
+ themeIsItalic={false}
149
155
  >
150
156
  40
151
157
  </Text>
@@ -181,6 +187,7 @@ exports[`YAxis renders correctly on web 1`] = `
181
187
  [
182
188
  {
183
189
  "color": "#4d6265",
190
+ "fontFamily": "BeVietnamPro-Regular",
184
191
  "fontSize": 10,
185
192
  "letterSpacing": 0,
186
193
  "lineHeight": 14,
@@ -191,6 +198,7 @@ exports[`YAxis renders correctly on web 1`] = `
191
198
  ]
192
199
  }
193
200
  themeIntent="subdued"
201
+ themeIsItalic={false}
194
202
  >
195
203
  60
196
204
  </Text>
@@ -226,6 +234,7 @@ exports[`YAxis renders correctly on web 1`] = `
226
234
  [
227
235
  {
228
236
  "color": "#4d6265",
237
+ "fontFamily": "BeVietnamPro-Regular",
229
238
  "fontSize": 10,
230
239
  "letterSpacing": 0,
231
240
  "lineHeight": 14,
@@ -236,6 +245,7 @@ exports[`YAxis renders correctly on web 1`] = `
236
245
  ]
237
246
  }
238
247
  themeIntent="subdued"
248
+ themeIsItalic={false}
239
249
  >
240
250
  80
241
251
  </Text>
@@ -271,6 +281,7 @@ exports[`YAxis renders correctly on web 1`] = `
271
281
  [
272
282
  {
273
283
  "color": "#4d6265",
284
+ "fontFamily": "BeVietnamPro-Regular",
274
285
  "fontSize": 10,
275
286
  "letterSpacing": 0,
276
287
  "lineHeight": 14,
@@ -281,6 +292,7 @@ exports[`YAxis renders correctly on web 1`] = `
281
292
  ]
282
293
  }
283
294
  themeIntent="subdued"
295
+ themeIsItalic={false}
284
296
  >
285
297
  100
286
298
  </Text>
@@ -363,6 +375,7 @@ exports[`YAxis should render correctly 1`] = `
363
375
  [
364
376
  {
365
377
  "color": "#4d6265",
378
+ "fontFamily": "BeVietnamPro-Regular",
366
379
  "fontSize": 10,
367
380
  "letterSpacing": 0,
368
381
  "lineHeight": 14,
@@ -373,6 +386,7 @@ exports[`YAxis should render correctly 1`] = `
373
386
  ]
374
387
  }
375
388
  themeIntent="subdued"
389
+ themeIsItalic={false}
376
390
  >
377
391
  0
378
392
  </Text>
@@ -415,6 +429,7 @@ exports[`YAxis should render correctly 1`] = `
415
429
  [
416
430
  {
417
431
  "color": "#4d6265",
432
+ "fontFamily": "BeVietnamPro-Regular",
418
433
  "fontSize": 10,
419
434
  "letterSpacing": 0,
420
435
  "lineHeight": 14,
@@ -425,6 +440,7 @@ exports[`YAxis should render correctly 1`] = `
425
440
  ]
426
441
  }
427
442
  themeIntent="subdued"
443
+ themeIsItalic={false}
428
444
  >
429
445
  20
430
446
  </Text>
@@ -467,6 +483,7 @@ exports[`YAxis should render correctly 1`] = `
467
483
  [
468
484
  {
469
485
  "color": "#4d6265",
486
+ "fontFamily": "BeVietnamPro-Regular",
470
487
  "fontSize": 10,
471
488
  "letterSpacing": 0,
472
489
  "lineHeight": 14,
@@ -477,6 +494,7 @@ exports[`YAxis should render correctly 1`] = `
477
494
  ]
478
495
  }
479
496
  themeIntent="subdued"
497
+ themeIsItalic={false}
480
498
  >
481
499
  40
482
500
  </Text>
@@ -519,6 +537,7 @@ exports[`YAxis should render correctly 1`] = `
519
537
  [
520
538
  {
521
539
  "color": "#4d6265",
540
+ "fontFamily": "BeVietnamPro-Regular",
522
541
  "fontSize": 10,
523
542
  "letterSpacing": 0,
524
543
  "lineHeight": 14,
@@ -529,6 +548,7 @@ exports[`YAxis should render correctly 1`] = `
529
548
  ]
530
549
  }
531
550
  themeIntent="subdued"
551
+ themeIsItalic={false}
532
552
  >
533
553
  60
534
554
  </Text>
@@ -571,6 +591,7 @@ exports[`YAxis should render correctly 1`] = `
571
591
  [
572
592
  {
573
593
  "color": "#4d6265",
594
+ "fontFamily": "BeVietnamPro-Regular",
574
595
  "fontSize": 10,
575
596
  "letterSpacing": 0,
576
597
  "lineHeight": 14,
@@ -581,6 +602,7 @@ exports[`YAxis should render correctly 1`] = `
581
602
  ]
582
603
  }
583
604
  themeIntent="subdued"
605
+ themeIsItalic={false}
584
606
  >
585
607
  80
586
608
  </Text>
@@ -623,6 +645,7 @@ exports[`YAxis should render correctly 1`] = `
623
645
  [
624
646
  {
625
647
  "color": "#4d6265",
648
+ "fontFamily": "BeVietnamPro-Regular",
626
649
  "fontSize": 10,
627
650
  "letterSpacing": 0,
628
651
  "lineHeight": 14,
@@ -633,6 +656,7 @@ exports[`YAxis should render correctly 1`] = `
633
656
  ]
634
657
  }
635
658
  themeIntent="subdued"
659
+ themeIsItalic={false}
636
660
  >
637
661
  100
638
662
  </Text>
@@ -715,6 +739,7 @@ exports[`YAxis should render correctly with labels 1`] = `
715
739
  [
716
740
  {
717
741
  "color": "#4d6265",
742
+ "fontFamily": "BeVietnamPro-Regular",
718
743
  "fontSize": 10,
719
744
  "letterSpacing": 0,
720
745
  "lineHeight": 14,
@@ -725,6 +750,7 @@ exports[`YAxis should render correctly with labels 1`] = `
725
750
  ]
726
751
  }
727
752
  themeIntent="subdued"
753
+ themeIsItalic={false}
728
754
  >
729
755
  Label 1
730
756
  </Text>
@@ -767,6 +793,7 @@ exports[`YAxis should render correctly with labels 1`] = `
767
793
  [
768
794
  {
769
795
  "color": "#4d6265",
796
+ "fontFamily": "BeVietnamPro-Regular",
770
797
  "fontSize": 10,
771
798
  "letterSpacing": 0,
772
799
  "lineHeight": 14,
@@ -777,6 +804,7 @@ exports[`YAxis should render correctly with labels 1`] = `
777
804
  ]
778
805
  }
779
806
  themeIntent="subdued"
807
+ themeIsItalic={false}
780
808
  >
781
809
  Label 2
782
810
  </Text>
@@ -819,6 +847,7 @@ exports[`YAxis should render correctly with labels 1`] = `
819
847
  [
820
848
  {
821
849
  "color": "#4d6265",
850
+ "fontFamily": "BeVietnamPro-Regular",
822
851
  "fontSize": 10,
823
852
  "letterSpacing": 0,
824
853
  "lineHeight": 14,
@@ -829,6 +858,7 @@ exports[`YAxis should render correctly with labels 1`] = `
829
858
  ]
830
859
  }
831
860
  themeIntent="subdued"
861
+ themeIsItalic={false}
832
862
  >
833
863
  Label 3
834
864
  </Text>
@@ -871,6 +901,7 @@ exports[`YAxis should render correctly with labels 1`] = `
871
901
  [
872
902
  {
873
903
  "color": "#4d6265",
904
+ "fontFamily": "BeVietnamPro-Regular",
874
905
  "fontSize": 10,
875
906
  "letterSpacing": 0,
876
907
  "lineHeight": 14,
@@ -881,6 +912,7 @@ exports[`YAxis should render correctly with labels 1`] = `
881
912
  ]
882
913
  }
883
914
  themeIntent="subdued"
915
+ themeIsItalic={false}
884
916
  >
885
917
  Label 4
886
918
  </Text>
@@ -923,6 +955,7 @@ exports[`YAxis should render correctly with labels 1`] = `
923
955
  [
924
956
  {
925
957
  "color": "#4d6265",
958
+ "fontFamily": "BeVietnamPro-Regular",
926
959
  "fontSize": 10,
927
960
  "letterSpacing": 0,
928
961
  "lineHeight": 14,
@@ -933,6 +966,7 @@ exports[`YAxis should render correctly with labels 1`] = `
933
966
  ]
934
967
  }
935
968
  themeIntent="subdued"
969
+ themeIsItalic={false}
936
970
  >
937
971
  Label 5
938
972
  </Text>
@@ -975,6 +1009,7 @@ exports[`YAxis should render correctly with labels 1`] = `
975
1009
  [
976
1010
  {
977
1011
  "color": "#4d6265",
1012
+ "fontFamily": "BeVietnamPro-Regular",
978
1013
  "fontSize": 10,
979
1014
  "letterSpacing": 0,
980
1015
  "lineHeight": 14,
@@ -985,6 +1020,7 @@ exports[`YAxis should render correctly with labels 1`] = `
985
1020
  ]
986
1021
  }
987
1022
  themeIntent="subdued"
1023
+ themeIsItalic={false}
988
1024
  />
989
1025
  </View>
990
1026
  </RNSVGGroup>
@@ -289,6 +289,7 @@ exports[`Checkbox renders correctly when disabled is false and readonly is false
289
289
  ]
290
290
  }
291
291
  themeIntent="body"
292
+ themeIsItalic={false}
292
293
  themeTypeface="neutral"
293
294
  themeVariant="small"
294
295
  >
@@ -414,6 +415,7 @@ exports[`Checkbox renders correctly when disabled is false and readonly is true
414
415
  ]
415
416
  }
416
417
  themeIntent="body"
418
+ themeIsItalic={false}
417
419
  themeTypeface="neutral"
418
420
  themeVariant="small"
419
421
  >
@@ -539,6 +541,7 @@ exports[`Checkbox renders correctly when disabled is true and readonly is false
539
541
  ]
540
542
  }
541
543
  themeIntent="subdued"
544
+ themeIsItalic={false}
542
545
  themeTypeface="neutral"
543
546
  themeVariant="small"
544
547
  >
@@ -664,6 +667,7 @@ exports[`Checkbox renders correctly when disabled is true and readonly is true 1
664
667
  ]
665
668
  }
666
669
  themeIntent="subdued"
670
+ themeIsItalic={false}
667
671
  themeTypeface="neutral"
668
672
  themeVariant="small"
669
673
  >
@@ -323,6 +323,7 @@ exports[`InlineCheckbox renders correctly when disabled is false and readonly is
323
323
  ]
324
324
  }
325
325
  themeIntent="body"
326
+ themeIsItalic={false}
326
327
  themeTypeface="neutral"
327
328
  themeVariant="small"
328
329
  >
@@ -450,6 +451,7 @@ exports[`InlineCheckbox renders correctly when disabled is false and readonly is
450
451
  ]
451
452
  }
452
453
  themeIntent="body"
454
+ themeIsItalic={false}
453
455
  themeTypeface="neutral"
454
456
  themeVariant="small"
455
457
  >
@@ -577,6 +579,7 @@ exports[`InlineCheckbox renders correctly when disabled is true and readonly is
577
579
  ]
578
580
  }
579
581
  themeIntent="subdued"
582
+ themeIsItalic={false}
580
583
  themeTypeface="neutral"
581
584
  themeVariant="small"
582
585
  >
@@ -704,6 +707,7 @@ exports[`InlineCheckbox renders correctly when disabled is true and readonly is
704
707
  ]
705
708
  }
706
709
  themeIntent="subdued"
710
+ themeIsItalic={false}
707
711
  themeTypeface="neutral"
708
712
  themeVariant="small"
709
713
  >
@@ -831,6 +835,7 @@ exports[`InlineCheckbox renders correctly when size is large 1`] = `
831
835
  ]
832
836
  }
833
837
  themeIntent="body"
838
+ themeIsItalic={false}
834
839
  themeTypeface="neutral"
835
840
  themeVariant="regular"
836
841
  >
@@ -958,6 +963,7 @@ exports[`InlineCheckbox renders correctly when size is medium 1`] = `
958
963
  ]
959
964
  }
960
965
  themeIntent="body"
966
+ themeIsItalic={false}
961
967
  themeTypeface="neutral"
962
968
  themeVariant="small"
963
969
  >
@@ -67,6 +67,7 @@ exports[`Chip does not render selected icon when showSelectedIcon is false 1`] =
67
67
  ]
68
68
  }
69
69
  themeIntent="body"
70
+ themeIsItalic={false}
70
71
  themeTypeface="neutral"
71
72
  themeVariant="small"
72
73
  >
@@ -163,6 +164,7 @@ exports[`Chip renders correctly when selected is false 1`] = `
163
164
  ]
164
165
  }
165
166
  themeIntent="body"
167
+ themeIsItalic={false}
166
168
  themeTypeface="neutral"
167
169
  themeVariant="small"
168
170
  >
@@ -259,6 +261,7 @@ exports[`Chip renders correctly when selected is true 1`] = `
259
261
  ]
260
262
  }
261
263
  themeIntent="body"
264
+ themeIsItalic={false}
262
265
  themeTypeface="neutral"
263
266
  themeVariant="small"
264
267
  >
@@ -427,6 +430,7 @@ exports[`Chip renders correctly with custom icon 1`] = `
427
430
  ]
428
431
  }
429
432
  themeIntent="body"
433
+ themeIsItalic={false}
430
434
  themeTypeface="neutral"
431
435
  themeVariant="small"
432
436
  >
@@ -563,6 +567,7 @@ exports[`Chip renders correctly with custom icon 2`] = `
563
567
  ]
564
568
  }
565
569
  themeIntent="body"
570
+ themeIsItalic={false}
566
571
  themeTypeface="neutral"
567
572
  themeVariant="small"
568
573
  >
@@ -660,6 +665,7 @@ exports[`Chip renders correctly with default icon 1`] = `
660
665
  ]
661
666
  }
662
667
  themeIntent="body"
668
+ themeIsItalic={false}
663
669
  themeTypeface="neutral"
664
670
  themeVariant="small"
665
671
  >
@@ -757,6 +763,7 @@ exports[`Chip renders correctly with default icon 2`] = `
757
763
  ]
758
764
  }
759
765
  themeIntent="body"
766
+ themeIsItalic={false}
760
767
  themeTypeface="neutral"
761
768
  themeVariant="small"
762
769
  >
@@ -893,6 +900,7 @@ exports[`Chip renders correctly with variant compact and selected false 1`] = `
893
900
  ]
894
901
  }
895
902
  themeIntent="body"
903
+ themeIsItalic={false}
896
904
  themeTypeface="neutral"
897
905
  themeVariant="small"
898
906
  >
@@ -997,6 +1005,7 @@ exports[`Chip renders correctly with variant compact and selected true 1`] = `
997
1005
  ]
998
1006
  }
999
1007
  themeIntent="body"
1008
+ themeIsItalic={false}
1000
1009
  themeTypeface="neutral"
1001
1010
  themeVariant="small"
1002
1011
  >
@@ -1094,6 +1103,7 @@ exports[`Chip renders correctly with variant compact-outlined and selected false
1094
1103
  ]
1095
1104
  }
1096
1105
  themeIntent="body"
1106
+ themeIsItalic={false}
1097
1107
  themeTypeface="neutral"
1098
1108
  themeVariant="small"
1099
1109
  >
@@ -1191,6 +1201,7 @@ exports[`Chip renders correctly with variant compact-outlined and selected true
1191
1201
  ]
1192
1202
  }
1193
1203
  themeIntent="body"
1204
+ themeIsItalic={false}
1194
1205
  themeTypeface="neutral"
1195
1206
  themeVariant="small"
1196
1207
  >
@@ -1327,6 +1338,7 @@ exports[`Chip renders correctly with variant filled and selected false 1`] = `
1327
1338
  ]
1328
1339
  }
1329
1340
  themeIntent="body"
1341
+ themeIsItalic={false}
1330
1342
  themeTypeface="neutral"
1331
1343
  themeVariant="small"
1332
1344
  >
@@ -1431,6 +1443,7 @@ exports[`Chip renders correctly with variant filled and selected true 1`] = `
1431
1443
  ]
1432
1444
  }
1433
1445
  themeIntent="body"
1446
+ themeIsItalic={false}
1434
1447
  themeTypeface="neutral"
1435
1448
  themeVariant="small"
1436
1449
  >
@@ -1535,6 +1548,7 @@ exports[`Chip renders correctly with variant filter and selected false 1`] = `
1535
1548
  ]
1536
1549
  }
1537
1550
  themeIntent="body"
1551
+ themeIsItalic={false}
1538
1552
  themeTypeface="neutral"
1539
1553
  themeVariant="small"
1540
1554
  >
@@ -1639,6 +1653,7 @@ exports[`Chip renders correctly with variant filter and selected true 1`] = `
1639
1653
  ]
1640
1654
  }
1641
1655
  themeIntent="body"
1656
+ themeIsItalic={false}
1642
1657
  themeTypeface="neutral"
1643
1658
  themeVariant="small"
1644
1659
  >
@@ -1736,6 +1751,7 @@ exports[`Chip renders correctly with variant outlined and selected false 1`] = `
1736
1751
  ]
1737
1752
  }
1738
1753
  themeIntent="body"
1754
+ themeIsItalic={false}
1739
1755
  themeTypeface="neutral"
1740
1756
  themeVariant="small"
1741
1757
  >
@@ -1833,6 +1849,7 @@ exports[`Chip renders correctly with variant outlined and selected true 1`] = `
1833
1849
  ]
1834
1850
  }
1835
1851
  themeIntent="body"
1852
+ themeIsItalic={false}
1836
1853
  themeTypeface="neutral"
1837
1854
  themeVariant="small"
1838
1855
  >
@@ -1962,6 +1979,7 @@ exports[`Chip renders correctly with variant selection and selected false 1`] =
1962
1979
  ]
1963
1980
  }
1964
1981
  themeIntent="body"
1982
+ themeIsItalic={false}
1965
1983
  themeTypeface="neutral"
1966
1984
  themeVariant="small"
1967
1985
  >
@@ -2059,6 +2077,7 @@ exports[`Chip renders correctly with variant selection and selected true 1`] = `
2059
2077
  ]
2060
2078
  }
2061
2079
  themeIntent="body"
2080
+ themeIsItalic={false}
2062
2081
  themeTypeface="neutral"
2063
2082
  themeVariant="small"
2064
2083
  >
@@ -7,6 +7,13 @@ import Typography from '../Typography';
7
7
  import { StyledChipIcon, StyledChipWrapper } from './StyledChip';
8
8
  import { useDeprecation } from '../../utils/hooks';
9
9
 
10
+ /**
11
+ * @deprecated Use 'selection' | 'filter' | 'compact' | 'compact-outlined' instead.
12
+ */
13
+ type DeprecatedVariant = 'outlined' | 'filled';
14
+
15
+ type ValidVariant = 'selection' | 'filter' | 'compact' | 'compact-outlined';
16
+
10
17
  export interface ChipProps extends ViewProps {
11
18
  /**
12
19
  * The label of the chip.
@@ -15,15 +22,9 @@ export interface ChipProps extends ViewProps {
15
22
  /**
16
23
  * Variant of the chip.
17
24
  *
18
- * variant['outlined' | 'filled'] - @deprecated
25
+ * ⚠️ 'outlined' | 'filled' variants are deprecated and will be removed in the next major release. Please use 'selection' | 'filter' | 'compact' | 'compact-outlined' instead.
19
26
  */
20
- variant?:
21
- | 'selection'
22
- | 'filter'
23
- | 'compact'
24
- | 'compact-outlined'
25
- | 'outlined'
26
- | 'filled';
27
+ variant?: ValidVariant | DeprecatedVariant;
27
28
  /**
28
29
  * Whether the chip is selected.
29
30
  */
@@ -88,6 +88,7 @@ exports[`rendering renders correctly 1`] = `
88
88
  }
89
89
  testID="content-navigator-value"
90
90
  themeIntent="body"
91
+ themeIsItalic={false}
91
92
  themeTypeface="neutral"
92
93
  themeVariant="small-bold"
93
94
  >
@@ -255,6 +256,7 @@ exports[`rendering renders correctly when icon buttons are disabled 1`] = `
255
256
  }
256
257
  testID="content-navigator-value"
257
258
  themeIntent="body"
259
+ themeIsItalic={false}
258
260
  themeTypeface="neutral"
259
261
  themeVariant="small-bold"
260
262
  >
@@ -422,6 +424,7 @@ exports[`rendering renders correctly with large 1`] = `
422
424
  }
423
425
  testID="content-navigator-value"
424
426
  themeIntent="body"
427
+ themeIsItalic={false}
425
428
  themeLevel="h5"
426
429
  themeTypeface="neutral"
427
430
  >
@@ -162,6 +162,7 @@ exports[`DatePicker renders DatePickerAndroid when OS is android 1`] = `
162
162
  }
163
163
  testID="input-label-text"
164
164
  themeIntent="body"
165
+ themeIsItalic={false}
165
166
  themeTypeface="neutral"
166
167
  themeVariant="regular"
167
168
  >
@@ -451,6 +452,7 @@ exports[`DatePicker renders DatePickerIOS when OS is iOS 1`] = `
451
452
  }
452
453
  testID="input-label-text"
453
454
  themeIntent="body"
455
+ themeIsItalic={false}
454
456
  themeTypeface="neutral"
455
457
  themeVariant="regular"
456
458
  >
@@ -740,6 +742,7 @@ exports[`DatePicker renders variant Calendar 1`] = `
740
742
  }
741
743
  testID="input-label-text"
742
744
  themeIntent="body"
745
+ themeIsItalic={false}
743
746
  themeTypeface="neutral"
744
747
  themeVariant="regular"
745
748
  >
@@ -162,6 +162,7 @@ exports[`DatePickerAndroid renders correctly 1`] = `
162
162
  }
163
163
  testID="input-label-text"
164
164
  themeIntent="body"
165
+ themeIsItalic={false}
165
166
  themeTypeface="neutral"
166
167
  themeVariant="regular"
167
168
  >
@@ -162,6 +162,7 @@ exports[`DatePickerCalendar renders correctly 1`] = `
162
162
  }
163
163
  testID="input-label-text"
164
164
  themeIntent="body"
165
+ themeIsItalic={false}
165
166
  themeTypeface="neutral"
166
167
  themeVariant="regular"
167
168
  >
@@ -162,6 +162,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
162
162
  }
163
163
  testID="input-label-text"
164
164
  themeIntent="body"
165
+ themeIsItalic={false}
165
166
  themeTypeface="neutral"
166
167
  themeVariant="regular"
167
168
  >
@@ -451,6 +452,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
451
452
  ]
452
453
  }
453
454
  themeIntent="body"
455
+ themeIsItalic={false}
454
456
  themeTypeface="neutral"
455
457
  themeVariant="regular-bold"
456
458
  >
@@ -632,6 +634,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
632
634
  themeButtonVariant="text-primary"
633
635
  themeIntent="body"
634
636
  themeIsCompact={false}
637
+ themeIsItalic={false}
635
638
  themeIsPressed={false}
636
639
  themeTypeface="neutral"
637
640
  themeVariant="regular-bold"
@@ -834,6 +837,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
834
837
  }
835
838
  testID="input-label-text"
836
839
  themeIntent="body"
840
+ themeIsItalic={false}
837
841
  themeTypeface="neutral"
838
842
  themeVariant="regular"
839
843
  >
@@ -1123,6 +1127,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
1123
1127
  ]
1124
1128
  }
1125
1129
  themeIntent="body"
1130
+ themeIsItalic={false}
1126
1131
  themeTypeface="neutral"
1127
1132
  themeVariant="regular-bold"
1128
1133
  >
@@ -1304,6 +1309,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
1304
1309
  themeButtonVariant="text-primary"
1305
1310
  themeIntent="body"
1306
1311
  themeIsCompact={false}
1312
+ themeIsItalic={false}
1307
1313
  themeIsPressed={false}
1308
1314
  themeTypeface="neutral"
1309
1315
  themeVariant="regular-bold"
@@ -160,6 +160,7 @@ exports[`ActionGroup has active false 1`] = `
160
160
  ]
161
161
  }
162
162
  themeIntent="body"
163
+ themeIsItalic={false}
163
164
  themeTypeface="neutral"
164
165
  themeVariant="regular"
165
166
  >
@@ -555,6 +556,7 @@ exports[`ActionGroup has active true 1`] = `
555
556
  ]
556
557
  }
557
558
  themeIntent="body"
559
+ themeIsItalic={false}
558
560
  themeTypeface="neutral"
559
561
  themeVariant="regular"
560
562
  >
@@ -674,6 +676,7 @@ exports[`ActionGroup has active true 1`] = `
674
676
  ]
675
677
  }
676
678
  themeIntent="body"
679
+ themeIsItalic={false}
677
680
  themeTypeface="neutral"
678
681
  themeVariant="regular"
679
682
  >
@@ -793,6 +796,7 @@ exports[`ActionGroup has active true 1`] = `
793
796
  ]
794
797
  }
795
798
  themeIntent="body"
799
+ themeIsItalic={false}
796
800
  themeTypeface="neutral"
797
801
  themeVariant="regular"
798
802
  >
@@ -912,6 +916,7 @@ exports[`ActionGroup has active true 1`] = `
912
916
  ]
913
917
  }
914
918
  themeIntent="body"
919
+ themeIsItalic={false}
915
920
  themeTypeface="neutral"
916
921
  themeVariant="regular"
917
922
  >
@@ -1031,6 +1036,7 @@ exports[`ActionGroup has active true 1`] = `
1031
1036
  ]
1032
1037
  }
1033
1038
  themeIntent="body"
1039
+ themeIsItalic={false}
1034
1040
  themeTypeface="neutral"
1035
1041
  themeVariant="regular"
1036
1042
  >