@hero-design/rn 8.110.1 → 8.111.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 (139) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +12 -0
  3. package/assets/fonts/BeVietnamPro-BoldItalic.ttf +0 -0
  4. package/assets/fonts/BeVietnamPro-LightItalic.ttf +0 -0
  5. package/assets/fonts/BeVietnamPro-RegularItalic.ttf +0 -0
  6. package/assets/fonts/BeVietnamPro-SemiBoldItalic.ttf +0 -0
  7. package/assets/fonts/Saiga-LightItalic.otf +0 -0
  8. package/assets/fonts/Saiga-MediumItalic.otf +0 -0
  9. package/assets/fonts/Saiga-RegularItalic.otf +0 -0
  10. package/es/index.js +59 -27
  11. package/lib/index.js +59 -27
  12. package/package.json +1 -1
  13. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -0
  14. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  15. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
  16. package/src/components/Alert/index.tsx +10 -2
  17. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +70 -0
  18. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  19. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -0
  20. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +31 -0
  21. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +1 -0
  22. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  23. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +8 -0
  24. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -0
  25. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  26. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  27. package/src/components/Button/Button.tsx +10 -4
  28. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  29. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +33 -0
  30. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +13 -0
  31. package/src/components/Calendar/__tests__/__snapshots__/CalendarRangeConnector.spec.tsx.snap +5 -0
  32. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
  33. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
  34. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +16 -0
  35. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +20 -0
  36. package/src/components/Chart/ColumnChart/__tests__/__snapshots__/index.spec.tsx.snap +49 -0
  37. package/src/components/Chart/Line/__tests__/__snapshots__/index.spec.tsx.snap +60 -0
  38. package/src/components/Chart/shared/__tests__/__snapshots__/ChartFrame.spec.tsx.snap +62 -0
  39. package/src/components/Chart/shared/__tests__/__snapshots__/ChartHeader.spec.tsx.snap +2 -0
  40. package/src/components/Chart/shared/__tests__/__snapshots__/EmptyState.spec.tsx.snap +2 -0
  41. package/src/components/Chart/shared/__tests__/__snapshots__/XAxis.spec.tsx.snap +12 -0
  42. package/src/components/Chart/shared/__tests__/__snapshots__/YAxis.spec.tsx.snap +36 -0
  43. package/src/components/Checkbox/__tests__/__snapshots__/DefaultCheckBox.spec.tsx.snap +4 -0
  44. package/src/components/Checkbox/__tests__/__snapshots__/InlineCheckBox.spec.tsx.snap +6 -0
  45. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +19 -0
  46. package/src/components/Chip/index.tsx +9 -8
  47. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  48. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +3 -0
  49. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  50. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +1 -0
  51. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +6 -0
  52. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  53. package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  54. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -0
  55. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  56. package/src/components/FilterTrigger/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  57. package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  58. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  59. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -0
  60. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +13 -0
  61. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
  62. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -0
  63. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  64. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +5 -0
  65. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  66. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  67. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -0
  68. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +4 -0
  69. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +10 -0
  70. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
  71. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +2 -0
  72. package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +1 -0
  73. package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +4 -0
  74. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
  75. package/src/components/SegmentedControl/__tests__/__snapshots__/SegmentedItem.spec.tsx.snap +1 -0
  76. package/src/components/SegmentedControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  77. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  78. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
  79. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
  80. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  81. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +24 -0
  82. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +39 -0
  83. package/src/components/StatusScreens/Empty/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
  84. package/src/components/StatusScreens/Error/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
  85. package/src/components/StatusScreens/Success/__tests__/__snapshots__/index.spec.tsx.snap +16 -0
  86. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
  87. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  88. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  89. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  90. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +3 -0
  91. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +9 -0
  92. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +4 -0
  93. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +1 -0
  94. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +18 -0
  95. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +10 -0
  96. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +7 -0
  97. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +40 -0
  98. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +3 -0
  99. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +5 -0
  100. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +13 -0
  101. package/src/components/Toolbar/ToolbarGroup.tsx +10 -4
  102. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +6 -0
  103. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +7 -0
  104. package/src/components/Typography/Body/StyledBody.tsx +24 -19
  105. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +229 -0
  106. package/src/components/Typography/Body/__tests__/index.spec.tsx +19 -0
  107. package/src/components/Typography/Body/index.tsx +8 -2
  108. package/src/components/Typography/Caption/StyledCaption.tsx +15 -8
  109. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +219 -0
  110. package/src/components/Typography/Caption/__tests__/index.spec.tsx +19 -0
  111. package/src/components/Typography/Caption/index.tsx +18 -10
  112. package/src/components/Typography/Label/StyledLabel.tsx +16 -6
  113. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +8 -0
  114. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +126 -0
  115. package/src/components/Typography/Label/__tests__/index.spec.tsx +12 -0
  116. package/src/components/Typography/Label/index.tsx +17 -9
  117. package/src/components/Typography/Title/StyledTitle.tsx +22 -8
  118. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +441 -0
  119. package/src/components/Typography/Title/__tests__/index.spec.tsx +23 -0
  120. package/src/components/Typography/Title/index.tsx +8 -2
  121. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +24 -10
  122. package/src/theme/components/typography.ts +12 -10
  123. package/src/theme/global/typography.ts +9 -0
  124. package/stats/8.111.0/rn-stats.html +4844 -0
  125. package/types/components/Alert/index.d.ts +8 -2
  126. package/types/components/Button/Button.d.ts +8 -4
  127. package/types/components/Chip/index.d.ts +7 -2
  128. package/types/components/TextInput/StyledTextInput.d.ts +1 -1
  129. package/types/components/Toolbar/ToolbarGroup.d.ts +8 -4
  130. package/types/components/Typography/Body/StyledBody.d.ts +1 -0
  131. package/types/components/Typography/Body/index.d.ts +6 -2
  132. package/types/components/Typography/Caption/StyledCaption.d.ts +1 -0
  133. package/types/components/Typography/Caption/index.d.ts +5 -1
  134. package/types/components/Typography/Label/StyledLabel.d.ts +1 -0
  135. package/types/components/Typography/Label/index.d.ts +5 -1
  136. package/types/components/Typography/Title/StyledTitle.d.ts +1 -0
  137. package/types/components/Typography/Title/index.d.ts +6 -2
  138. package/types/theme/components/typography.d.ts +12 -10
  139. package/types/theme/global/typography.d.ts +3 -0
@@ -105,6 +105,7 @@ exports[`AvatarStack allow rendering custom surplus 1`] = `
105
105
  ]
106
106
  }
107
107
  themeIntent="body"
108
+ themeIsItalic={false}
108
109
  themeSize="small"
109
110
  themeTypeface="neutral"
110
111
  themeVariant="regular"
@@ -194,6 +195,7 @@ exports[`AvatarStack allow rendering custom surplus 1`] = `
194
195
  ]
195
196
  }
196
197
  themeIntent="body"
198
+ themeIsItalic={false}
197
199
  themeSize="small"
198
200
  themeTypeface="neutral"
199
201
  themeVariant="regular"
@@ -283,6 +285,7 @@ exports[`AvatarStack allow rendering custom surplus 1`] = `
283
285
  ]
284
286
  }
285
287
  themeIntent="body"
288
+ themeIsItalic={false}
286
289
  themeSize="small"
287
290
  themeTypeface="neutral"
288
291
  themeVariant="regular"
@@ -372,6 +375,7 @@ exports[`AvatarStack allow rendering custom surplus 1`] = `
372
375
  ]
373
376
  }
374
377
  themeIntent="body"
378
+ themeIsItalic={false}
375
379
  themeSize="small"
376
380
  themeTypeface="neutral"
377
381
  themeVariant="regular"
@@ -461,6 +465,7 @@ exports[`AvatarStack allow rendering custom surplus 1`] = `
461
465
  ]
462
466
  }
463
467
  themeIntent="body"
468
+ themeIsItalic={false}
464
469
  themeSize="small"
465
470
  themeTypeface="neutral"
466
471
  themeVariant="regular"
@@ -509,6 +514,7 @@ exports[`AvatarStack allow rendering custom surplus 1`] = `
509
514
  ]
510
515
  }
511
516
  themeIntent="body"
517
+ themeIsItalic={false}
512
518
  themeTypeface="neutral"
513
519
  themeVariant="regular"
514
520
  >
@@ -645,6 +651,7 @@ exports[`AvatarStack does not render surplus when max is equal or larger than th
645
651
  ]
646
652
  }
647
653
  themeIntent="body"
654
+ themeIsItalic={false}
648
655
  themeSize="small"
649
656
  themeTypeface="neutral"
650
657
  themeVariant="regular"
@@ -734,6 +741,7 @@ exports[`AvatarStack does not render surplus when max is equal or larger than th
734
741
  ]
735
742
  }
736
743
  themeIntent="body"
744
+ themeIsItalic={false}
737
745
  themeSize="small"
738
746
  themeTypeface="neutral"
739
747
  themeVariant="regular"
@@ -823,6 +831,7 @@ exports[`AvatarStack does not render surplus when max is equal or larger than th
823
831
  ]
824
832
  }
825
833
  themeIntent="body"
834
+ themeIsItalic={false}
826
835
  themeSize="small"
827
836
  themeTypeface="neutral"
828
837
  themeVariant="regular"
@@ -912,6 +921,7 @@ exports[`AvatarStack does not render surplus when max is equal or larger than th
912
921
  ]
913
922
  }
914
923
  themeIntent="body"
924
+ themeIsItalic={false}
915
925
  themeSize="small"
916
926
  themeTypeface="neutral"
917
927
  themeVariant="regular"
@@ -1049,6 +1059,7 @@ exports[`AvatarStack does not render surplus when total is equal to the number o
1049
1059
  ]
1050
1060
  }
1051
1061
  themeIntent="body"
1062
+ themeIsItalic={false}
1052
1063
  themeSize="small"
1053
1064
  themeTypeface="neutral"
1054
1065
  themeVariant="regular"
@@ -1138,6 +1149,7 @@ exports[`AvatarStack does not render surplus when total is equal to the number o
1138
1149
  ]
1139
1150
  }
1140
1151
  themeIntent="body"
1152
+ themeIsItalic={false}
1141
1153
  themeSize="small"
1142
1154
  themeTypeface="neutral"
1143
1155
  themeVariant="regular"
@@ -1227,6 +1239,7 @@ exports[`AvatarStack does not render surplus when total is equal to the number o
1227
1239
  ]
1228
1240
  }
1229
1241
  themeIntent="body"
1242
+ themeIsItalic={false}
1230
1243
  themeSize="small"
1231
1244
  themeTypeface="neutral"
1232
1245
  themeVariant="regular"
@@ -1316,6 +1329,7 @@ exports[`AvatarStack does not render surplus when total is equal to the number o
1316
1329
  ]
1317
1330
  }
1318
1331
  themeIntent="body"
1332
+ themeIsItalic={false}
1319
1333
  themeSize="small"
1320
1334
  themeTypeface="neutral"
1321
1335
  themeVariant="regular"
@@ -1453,6 +1467,7 @@ exports[`AvatarStack render correctly surplus when both max and total are set 1`
1453
1467
  ]
1454
1468
  }
1455
1469
  themeIntent="body"
1470
+ themeIsItalic={false}
1456
1471
  themeSize="small"
1457
1472
  themeTypeface="neutral"
1458
1473
  themeVariant="regular"
@@ -1542,6 +1557,7 @@ exports[`AvatarStack render correctly surplus when both max and total are set 1`
1542
1557
  ]
1543
1558
  }
1544
1559
  themeIntent="body"
1560
+ themeIsItalic={false}
1545
1561
  themeSize="small"
1546
1562
  themeTypeface="neutral"
1547
1563
  themeVariant="regular"
@@ -1590,6 +1606,7 @@ exports[`AvatarStack render correctly surplus when both max and total are set 1`
1590
1606
  ]
1591
1607
  }
1592
1608
  themeIntent="body"
1609
+ themeIsItalic={false}
1593
1610
  themeTypeface="neutral"
1594
1611
  themeVariant="regular"
1595
1612
  >
@@ -1727,6 +1744,7 @@ exports[`AvatarStack renders correctly when variant is horizontal 1`] = `
1727
1744
  ]
1728
1745
  }
1729
1746
  themeIntent="body"
1747
+ themeIsItalic={false}
1730
1748
  themeSize="small"
1731
1749
  themeTypeface="neutral"
1732
1750
  themeVariant="regular"
@@ -1816,6 +1834,7 @@ exports[`AvatarStack renders correctly when variant is horizontal 1`] = `
1816
1834
  ]
1817
1835
  }
1818
1836
  themeIntent="body"
1837
+ themeIsItalic={false}
1819
1838
  themeSize="small"
1820
1839
  themeTypeface="neutral"
1821
1840
  themeVariant="regular"
@@ -1905,6 +1924,7 @@ exports[`AvatarStack renders correctly when variant is horizontal 1`] = `
1905
1924
  ]
1906
1925
  }
1907
1926
  themeIntent="body"
1927
+ themeIsItalic={false}
1908
1928
  themeSize="small"
1909
1929
  themeTypeface="neutral"
1910
1930
  themeVariant="regular"
@@ -1994,6 +2014,7 @@ exports[`AvatarStack renders correctly when variant is horizontal 1`] = `
1994
2014
  ]
1995
2015
  }
1996
2016
  themeIntent="body"
2017
+ themeIsItalic={false}
1997
2018
  themeSize="small"
1998
2019
  themeTypeface="neutral"
1999
2020
  themeVariant="regular"
@@ -2083,6 +2104,7 @@ exports[`AvatarStack renders correctly when variant is horizontal 1`] = `
2083
2104
  ]
2084
2105
  }
2085
2106
  themeIntent="body"
2107
+ themeIsItalic={false}
2086
2108
  themeSize="small"
2087
2109
  themeTypeface="neutral"
2088
2110
  themeVariant="regular"
@@ -2221,6 +2243,7 @@ exports[`AvatarStack renders correctly when variant is vertical 1`] = `
2221
2243
  ]
2222
2244
  }
2223
2245
  themeIntent="body"
2246
+ themeIsItalic={false}
2224
2247
  themeSize="small"
2225
2248
  themeTypeface="neutral"
2226
2249
  themeVariant="regular"
@@ -2310,6 +2333,7 @@ exports[`AvatarStack renders correctly when variant is vertical 1`] = `
2310
2333
  ]
2311
2334
  }
2312
2335
  themeIntent="body"
2336
+ themeIsItalic={false}
2313
2337
  themeSize="small"
2314
2338
  themeTypeface="neutral"
2315
2339
  themeVariant="regular"
@@ -2399,6 +2423,7 @@ exports[`AvatarStack renders correctly when variant is vertical 1`] = `
2399
2423
  ]
2400
2424
  }
2401
2425
  themeIntent="body"
2426
+ themeIsItalic={false}
2402
2427
  themeSize="small"
2403
2428
  themeTypeface="neutral"
2404
2429
  themeVariant="regular"
@@ -2488,6 +2513,7 @@ exports[`AvatarStack renders correctly when variant is vertical 1`] = `
2488
2513
  ]
2489
2514
  }
2490
2515
  themeIntent="body"
2516
+ themeIsItalic={false}
2491
2517
  themeSize="small"
2492
2518
  themeTypeface="neutral"
2493
2519
  themeVariant="regular"
@@ -2577,6 +2603,7 @@ exports[`AvatarStack renders correctly when variant is vertical 1`] = `
2577
2603
  ]
2578
2604
  }
2579
2605
  themeIntent="body"
2606
+ themeIsItalic={false}
2580
2607
  themeSize="small"
2581
2608
  themeTypeface="neutral"
2582
2609
  themeVariant="regular"
@@ -2715,6 +2742,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
2715
2742
  ]
2716
2743
  }
2717
2744
  themeIntent="body"
2745
+ themeIsItalic={false}
2718
2746
  themeSize="medium"
2719
2747
  themeTypeface="neutral"
2720
2748
  themeVariant="regular"
@@ -2804,6 +2832,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
2804
2832
  ]
2805
2833
  }
2806
2834
  themeIntent="body"
2835
+ themeIsItalic={false}
2807
2836
  themeSize="medium"
2808
2837
  themeTypeface="neutral"
2809
2838
  themeVariant="regular"
@@ -2893,6 +2922,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
2893
2922
  ]
2894
2923
  }
2895
2924
  themeIntent="body"
2925
+ themeIsItalic={false}
2896
2926
  themeSize="medium"
2897
2927
  themeTypeface="neutral"
2898
2928
  themeVariant="regular"
@@ -2983,6 +3013,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
2983
3013
  ]
2984
3014
  }
2985
3015
  themeIntent="body"
3016
+ themeIsItalic={false}
2986
3017
  themeSize="medium"
2987
3018
  themeTypeface="neutral"
2988
3019
  themeVariant="regular"
@@ -152,6 +152,7 @@ exports[`StyledText renders correct style 1`] = `
152
152
  ]
153
153
  }
154
154
  themeIntent="body"
155
+ themeIsItalic={false}
155
156
  themeSize="small"
156
157
  themeTypeface="neutral"
157
158
  themeVariant="regular"
@@ -86,6 +86,7 @@ exports[`Avatar fallbacks to title when there image failed to load 1`] = `
86
86
  ]
87
87
  }
88
88
  themeIntent="body"
89
+ themeIsItalic={false}
89
90
  themeSize="small"
90
91
  themeTypeface="neutral"
91
92
  themeVariant="regular"
@@ -318,6 +319,7 @@ exports[`Avatar shows title when there is no source 1`] = `
318
319
  ]
319
320
  }
320
321
  themeIntent="body"
322
+ themeIsItalic={false}
321
323
  themeSize="small"
322
324
  themeTypeface="neutral"
323
325
  themeVariant="regular"
@@ -61,6 +61,7 @@ exports[`Badge has danger style when intent is danger 1`] = `
61
61
  }
62
62
  themeFontWeight="regular"
63
63
  themeIntent="body"
64
+ themeIsItalic={false}
64
65
  themeSize="medium"
65
66
  >
66
67
  DECLINED
@@ -150,6 +151,7 @@ exports[`Badge has info style when intent is info 1`] = `
150
151
  }
151
152
  themeFontWeight="regular"
152
153
  themeIntent="body"
154
+ themeIsItalic={false}
153
155
  themeSize="medium"
154
156
  >
155
157
  SUBMITTED
@@ -239,6 +241,7 @@ exports[`Badge has info style when intent is primary 1`] = `
239
241
  }
240
242
  themeFontWeight="regular"
241
243
  themeIntent="body"
244
+ themeIsItalic={false}
242
245
  themeSize="medium"
243
246
  >
244
247
  PRIMARY
@@ -328,6 +331,7 @@ exports[`Badge has outlined style when variant is outlined 1`] = `
328
331
  }
329
332
  themeFontWeight="regular"
330
333
  themeIntent="body"
334
+ themeIsItalic={false}
331
335
  themeSize="medium"
332
336
  >
333
337
  OUTLINED
@@ -417,6 +421,7 @@ exports[`Badge has small style when size is small 1`] = `
417
421
  }
418
422
  themeFontWeight="regular"
419
423
  themeIntent="body"
424
+ themeIsItalic={false}
420
425
  themeSize="small"
421
426
  >
422
427
  SMALL
@@ -506,6 +511,7 @@ exports[`Badge has success style when intent is success 1`] = `
506
511
  }
507
512
  themeFontWeight="regular"
508
513
  themeIntent="body"
514
+ themeIsItalic={false}
509
515
  themeSize="medium"
510
516
  >
511
517
  APPROVED
@@ -595,6 +601,7 @@ exports[`Badge has warning style when intent is warning 1`] = `
595
601
  }
596
602
  themeFontWeight="regular"
597
603
  themeIntent="body"
604
+ themeIsItalic={false}
598
605
  themeSize="medium"
599
606
  >
600
607
  PENDING
@@ -762,6 +769,7 @@ exports[`Badge renders correctly with custom props 1`] = `
762
769
  }
763
770
  themeFontWeight="regular"
764
771
  themeIntent="body"
772
+ themeIsItalic={false}
765
773
  themeSize="medium"
766
774
  >
767
775
  50+
@@ -94,6 +94,7 @@ exports[`Status Badge renders correctly with intent 1`] = `
94
94
  ]
95
95
  }
96
96
  themeIntent="body"
97
+ themeIsItalic={false}
97
98
  themeTypeface="neutral"
98
99
  themeVariant="small"
99
100
  >
@@ -173,6 +173,7 @@ exports[`BottomNavigation renders correctly 1`] = `
173
173
  }
174
174
  themeFontWeight="semi-bold"
175
175
  themeIntent="primary"
176
+ themeIsItalic={false}
176
177
  >
177
178
  Home
178
179
  </Text>
@@ -243,6 +244,7 @@ exports[`BottomNavigation renders correctly 1`] = `
243
244
  }
244
245
  themeFontWeight="semi-bold"
245
246
  themeIntent="body"
247
+ themeIsItalic={false}
246
248
  >
247
249
  Feed
248
250
  </Text>
@@ -313,6 +315,7 @@ exports[`BottomNavigation renders correctly 1`] = `
313
315
  }
314
316
  themeFontWeight="semi-bold"
315
317
  themeIntent="body"
318
+ themeIsItalic={false}
316
319
  >
317
320
  Alerts
318
321
  </Text>
@@ -383,6 +386,7 @@ exports[`BottomNavigation renders correctly 1`] = `
383
386
  }
384
387
  themeFontWeight="semi-bold"
385
388
  themeIntent="body"
389
+ themeIsItalic={false}
386
390
  >
387
391
  Profile
388
392
  </Text>
@@ -214,6 +214,7 @@ exports[`BottomSheet renders correctly with open state 1`] = `
214
214
  ]
215
215
  }
216
216
  themeIntent="body"
217
+ themeIsItalic={false}
217
218
  themeTypeface="neutral"
218
219
  themeVariant="regular-bold"
219
220
  >
@@ -554,6 +555,7 @@ exports[`BottomSheet renders floating BottomSheet correctly 1`] = `
554
555
  ]
555
556
  }
556
557
  themeIntent="body"
558
+ themeIsItalic={false}
557
559
  themeTypeface="neutral"
558
560
  themeVariant="regular-bold"
559
561
  >
@@ -16,6 +16,13 @@ import {
16
16
  StyledSmallButtonText,
17
17
  } from './StyledButton';
18
18
 
19
+ /**
20
+ * @deprecated Use 'primary' | 'secondary' | 'danger' | 'inverted' instead.
21
+ */
22
+ type DeprecatedIntent = 'white';
23
+
24
+ type ValidIntent = 'primary' | 'secondary' | 'danger' | 'inverted';
25
+
19
26
  export interface ButtonProps {
20
27
  /**
21
28
  * Helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.
@@ -35,9 +42,10 @@ export interface ButtonProps {
35
42
  icon?: IconName | ReactNode;
36
43
  /**
37
44
  * Visual intent color to apply to button. It is required for `filled`, `outlined` and `text` variants.
38
- * intent['white'] - @deprecated
45
+ *
46
+ * ⚠️ 'white' intent is deprecated and will be removed in the next major release. Please use 'primary' | 'secondary' | 'danger' | 'inverted' instead.
39
47
  */
40
- intent?: 'primary' | 'secondary' | 'danger' | 'white' | 'inverted';
48
+ intent?: ValidIntent | DeprecatedIntent;
41
49
  /**
42
50
  * Loading state of button.
43
51
  */
@@ -64,8 +72,6 @@ export interface ButtonProps {
64
72
  text?: ReactChild;
65
73
  /**
66
74
  * Button type.
67
- *
68
- * variant['filled-secondary' | 'filled-danger' | 'outlined-secondary' | 'outlined-danger'] - @deprecated
69
75
  */
70
76
  variant?:
71
77
  | 'filled'
@@ -99,6 +99,7 @@ exports[`UtilityButton snapshot has intent primary style 1`] = `
99
99
  ]
100
100
  }
101
101
  themeIntent="body"
102
+ themeIsItalic={false}
102
103
  themeTypeface="neutral"
103
104
  themeVariant="regular"
104
105
  >
@@ -227,6 +228,7 @@ exports[`UtilityButton snapshot has intent text style 1`] = `
227
228
  ]
228
229
  }
229
230
  themeIntent="body"
231
+ themeIsItalic={false}
230
232
  themeTypeface="neutral"
231
233
  themeVariant="regular"
232
234
  >
@@ -104,6 +104,7 @@ exports[`Button allows render custom icon 1`] = `
104
104
  }
105
105
  themeButtonVariant="filled-primary"
106
106
  themeIntent="body"
107
+ themeIsItalic={false}
107
108
  themeLevel="h5"
108
109
  themeTypeface="neutral"
109
110
  >
@@ -236,6 +237,7 @@ exports[`Button renders correctly 1`] = `
236
237
  }
237
238
  themeButtonVariant="filled-primary"
238
239
  themeIntent="body"
240
+ themeIsItalic={false}
239
241
  themeLevel="h5"
240
242
  themeTypeface="neutral"
241
243
  >
@@ -517,6 +519,7 @@ exports[`Button renders correctly 3`] = `
517
519
  }
518
520
  themeButtonVariant="filled-primary"
519
521
  themeIntent="body"
522
+ themeIsItalic={false}
520
523
  themeLevel="h5"
521
524
  themeTypeface="neutral"
522
525
  >
@@ -621,6 +624,7 @@ exports[`Button renders correctly 4`] = `
621
624
  }
622
625
  themeButtonVariant="filled-white"
623
626
  themeIntent="body"
627
+ themeIsItalic={false}
624
628
  themeLevel="h5"
625
629
  themeTypeface="neutral"
626
630
  >
@@ -902,6 +906,7 @@ exports[`Button renders correctly 6`] = `
902
906
  }
903
907
  themeButtonVariant="filled-white"
904
908
  themeIntent="body"
909
+ themeIsItalic={false}
905
910
  themeLevel="h5"
906
911
  themeTypeface="neutral"
907
912
  >
@@ -1008,6 +1013,7 @@ exports[`Button renders correctly 7`] = `
1008
1013
  }
1009
1014
  themeButtonVariant="outlined-primary"
1010
1015
  themeIntent="body"
1016
+ themeIsItalic={false}
1011
1017
  themeLevel="h5"
1012
1018
  themeTypeface="neutral"
1013
1019
  >
@@ -1293,6 +1299,7 @@ exports[`Button renders correctly 9`] = `
1293
1299
  }
1294
1300
  themeButtonVariant="outlined-primary"
1295
1301
  themeIntent="body"
1302
+ themeIsItalic={false}
1296
1303
  themeLevel="h5"
1297
1304
  themeTypeface="neutral"
1298
1305
  >
@@ -1399,6 +1406,7 @@ exports[`Button renders correctly 10`] = `
1399
1406
  }
1400
1407
  themeButtonVariant="outlined-white"
1401
1408
  themeIntent="body"
1409
+ themeIsItalic={false}
1402
1410
  themeLevel="h5"
1403
1411
  themeTypeface="neutral"
1404
1412
  >
@@ -1684,6 +1692,7 @@ exports[`Button renders correctly 12`] = `
1684
1692
  }
1685
1693
  themeButtonVariant="outlined-white"
1686
1694
  themeIntent="body"
1695
+ themeIsItalic={false}
1687
1696
  themeLevel="h5"
1688
1697
  themeTypeface="neutral"
1689
1698
  >
@@ -1789,6 +1798,7 @@ exports[`Button renders correctly 13`] = `
1789
1798
  themeButtonVariant="text-primary"
1790
1799
  themeIntent="body"
1791
1800
  themeIsCompact={false}
1801
+ themeIsItalic={false}
1792
1802
  themeIsPressed={false}
1793
1803
  themeTypeface="neutral"
1794
1804
  themeVariant="regular-bold"
@@ -2072,6 +2082,7 @@ exports[`Button renders correctly 15`] = `
2072
2082
  themeButtonVariant="text-primary"
2073
2083
  themeIntent="body"
2074
2084
  themeIsCompact={false}
2085
+ themeIsItalic={false}
2075
2086
  themeIsPressed={false}
2076
2087
  themeTypeface="neutral"
2077
2088
  themeVariant="regular-bold"
@@ -2178,6 +2189,7 @@ exports[`Button renders correctly 16`] = `
2178
2189
  themeButtonVariant="text-secondary"
2179
2190
  themeIntent="body"
2180
2191
  themeIsCompact={false}
2192
+ themeIsItalic={false}
2181
2193
  themeIsPressed={false}
2182
2194
  themeTypeface="neutral"
2183
2195
  themeVariant="regular-bold"
@@ -2461,6 +2473,7 @@ exports[`Button renders correctly 18`] = `
2461
2473
  themeButtonVariant="text-secondary"
2462
2474
  themeIntent="body"
2463
2475
  themeIsCompact={false}
2476
+ themeIsItalic={false}
2464
2477
  themeIsPressed={false}
2465
2478
  themeTypeface="neutral"
2466
2479
  themeVariant="regular-bold"
@@ -2567,6 +2580,7 @@ exports[`Button renders correctly 19`] = `
2567
2580
  themeButtonVariant="text-danger"
2568
2581
  themeIntent="body"
2569
2582
  themeIsCompact={false}
2583
+ themeIsItalic={false}
2570
2584
  themeIsPressed={false}
2571
2585
  themeTypeface="neutral"
2572
2586
  themeVariant="regular-bold"
@@ -2850,6 +2864,7 @@ exports[`Button renders correctly 21`] = `
2850
2864
  themeButtonVariant="text-danger"
2851
2865
  themeIntent="body"
2852
2866
  themeIsCompact={false}
2867
+ themeIsItalic={false}
2853
2868
  themeIsPressed={false}
2854
2869
  themeTypeface="neutral"
2855
2870
  themeVariant="regular-bold"
@@ -2956,6 +2971,7 @@ exports[`Button renders correctly 22`] = `
2956
2971
  themeButtonVariant="text-white"
2957
2972
  themeIntent="body"
2958
2973
  themeIsCompact={false}
2974
+ themeIsItalic={false}
2959
2975
  themeIsPressed={false}
2960
2976
  themeTypeface="neutral"
2961
2977
  themeVariant="regular-bold"
@@ -3239,6 +3255,7 @@ exports[`Button renders correctly 24`] = `
3239
3255
  themeButtonVariant="text-white"
3240
3256
  themeIntent="body"
3241
3257
  themeIsCompact={false}
3258
+ themeIsItalic={false}
3242
3259
  themeIsPressed={false}
3243
3260
  themeTypeface="neutral"
3244
3261
  themeVariant="regular-bold"
@@ -3345,6 +3362,7 @@ exports[`Button renders correctly 25`] = `
3345
3362
  themeButtonVariant="text-primary"
3346
3363
  themeIntent="body"
3347
3364
  themeIsCompact={false}
3365
+ themeIsItalic={false}
3348
3366
  themeIsPressed={false}
3349
3367
  themeTypeface="neutral"
3350
3368
  themeVariant="regular-bold"
@@ -3627,6 +3645,7 @@ exports[`Button renders correctly 27`] = `
3627
3645
  themeButtonVariant="text-danger"
3628
3646
  themeIntent="body"
3629
3647
  themeIsCompact={false}
3648
+ themeIsItalic={false}
3630
3649
  themeIsPressed={false}
3631
3650
  themeTypeface="neutral"
3632
3651
  themeVariant="regular-bold"
@@ -3910,6 +3929,7 @@ exports[`Button renders correctly 29`] = `
3910
3929
  themeButtonVariant="text-primary"
3911
3930
  themeIntent="body"
3912
3931
  themeIsCompact={false}
3932
+ themeIsItalic={false}
3913
3933
  themeIsPressed={false}
3914
3934
  themeTypeface="neutral"
3915
3935
  themeVariant="regular-bold"
@@ -4021,6 +4041,7 @@ exports[`Button renders correctly 30`] = `
4021
4041
  }
4022
4042
  themeButtonVariant="filled-primary"
4023
4043
  themeIntent="body"
4044
+ themeIsItalic={false}
4024
4045
  themeTypeface="neutral"
4025
4046
  themeVariant="small-bold"
4026
4047
  >
@@ -4309,6 +4330,7 @@ exports[`Button renders correctly 32`] = `
4309
4330
  }
4310
4331
  themeButtonVariant="filled-primary"
4311
4332
  themeIntent="body"
4333
+ themeIsItalic={false}
4312
4334
  themeTypeface="neutral"
4313
4335
  themeVariant="small-bold"
4314
4336
  >
@@ -4421,6 +4443,7 @@ exports[`Button renders correctly 33`] = `
4421
4443
  }
4422
4444
  themeButtonVariant="outlined-primary"
4423
4445
  themeIntent="body"
4446
+ themeIsItalic={false}
4424
4447
  themeTypeface="neutral"
4425
4448
  themeVariant="small-bold"
4426
4449
  >
@@ -4713,6 +4736,7 @@ exports[`Button renders correctly 35`] = `
4713
4736
  }
4714
4737
  themeButtonVariant="outlined-primary"
4715
4738
  themeIntent="body"
4739
+ themeIsItalic={false}
4716
4740
  themeTypeface="neutral"
4717
4741
  themeVariant="small-bold"
4718
4742
  >
@@ -4820,6 +4844,7 @@ exports[`Button renders correctly 36`] = `
4820
4844
  themeButtonVariant="text-primary"
4821
4845
  themeIntent="body"
4822
4846
  themeIsCompact={true}
4847
+ themeIsItalic={false}
4823
4848
  themeIsPressed={false}
4824
4849
  themeTypeface="neutral"
4825
4850
  themeVariant="small-bold"
@@ -5107,6 +5132,7 @@ exports[`Button renders correctly 38`] = `
5107
5132
  themeButtonVariant="text-primary"
5108
5133
  themeIntent="body"
5109
5134
  themeIsCompact={true}
5135
+ themeIsItalic={false}
5110
5136
  themeIsPressed={false}
5111
5137
  themeTypeface="neutral"
5112
5138
  themeVariant="small-bold"
@@ -5215,6 +5241,7 @@ exports[`Button renders correctly 39`] = `
5215
5241
  themeButtonVariant="text-secondary"
5216
5242
  themeIntent="body"
5217
5243
  themeIsCompact={true}
5244
+ themeIsItalic={false}
5218
5245
  themeIsPressed={false}
5219
5246
  themeTypeface="neutral"
5220
5247
  themeVariant="small-bold"
@@ -5502,6 +5529,7 @@ exports[`Button renders correctly 41`] = `
5502
5529
  themeButtonVariant="text-secondary"
5503
5530
  themeIntent="body"
5504
5531
  themeIsCompact={true}
5532
+ themeIsItalic={false}
5505
5533
  themeIsPressed={false}
5506
5534
  themeTypeface="neutral"
5507
5535
  themeVariant="small-bold"
@@ -5610,6 +5638,7 @@ exports[`Button renders correctly 42`] = `
5610
5638
  themeButtonVariant="text-danger"
5611
5639
  themeIntent="body"
5612
5640
  themeIsCompact={true}
5641
+ themeIsItalic={false}
5613
5642
  themeIsPressed={false}
5614
5643
  themeTypeface="neutral"
5615
5644
  themeVariant="small-bold"
@@ -5897,6 +5926,7 @@ exports[`Button renders correctly 44`] = `
5897
5926
  themeButtonVariant="text-danger"
5898
5927
  themeIntent="body"
5899
5928
  themeIsCompact={true}
5929
+ themeIsItalic={false}
5900
5930
  themeIsPressed={false}
5901
5931
  themeTypeface="neutral"
5902
5932
  themeVariant="small-bold"
@@ -6005,6 +6035,7 @@ exports[`Button renders correctly 45`] = `
6005
6035
  themeButtonVariant="text-primary"
6006
6036
  themeIntent="body"
6007
6037
  themeIsCompact={true}
6038
+ themeIsItalic={false}
6008
6039
  themeIsPressed={false}
6009
6040
  themeTypeface="neutral"
6010
6041
  themeVariant="small-bold"
@@ -6291,6 +6322,7 @@ exports[`Button renders correctly 47`] = `
6291
6322
  themeButtonVariant="text-danger"
6292
6323
  themeIntent="body"
6293
6324
  themeIsCompact={true}
6325
+ themeIsItalic={false}
6294
6326
  themeIsPressed={false}
6295
6327
  themeTypeface="neutral"
6296
6328
  themeVariant="small-bold"
@@ -6578,6 +6610,7 @@ exports[`Button renders correctly 49`] = `
6578
6610
  themeButtonVariant="text-primary"
6579
6611
  themeIntent="body"
6580
6612
  themeIsCompact={true}
6613
+ themeIsItalic={false}
6581
6614
  themeIsPressed={false}
6582
6615
  themeTypeface="neutral"
6583
6616
  themeVariant="small-bold"