@hero-design/rn 7.25.1 → 7.27.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 (166) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/assets/fonts/BeVietnamPro-Bold.ttf +0 -0
  3. package/assets/fonts/{be-vietnam-pro-light.ttf → BeVietnamPro-Light.ttf} +0 -0
  4. package/assets/fonts/{be-vietnam-pro-regular.ttf → BeVietnamPro-Regular.ttf} +0 -0
  5. package/assets/fonts/{be-vietnam-pro-semibold.ttf → BeVietnamPro-SemiBold.ttf} +0 -0
  6. package/assets/fonts/RebondGrotesque-Light.otf +0 -0
  7. package/assets/fonts/RebondGrotesque-Regular.otf +0 -0
  8. package/assets/fonts/RebondGrotesque-SemiBold.otf +0 -0
  9. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  10. package/es/index.js +9212 -12310
  11. package/jest.config.js +6 -2
  12. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  13. package/lib/index.js +9212 -12309
  14. package/package.json +4 -4
  15. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -0
  16. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  17. package/src/components/Accordion/index.tsx +1 -1
  18. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +11 -0
  19. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  20. package/src/components/Avatar/{index.tsx → Avatar.tsx} +33 -18
  21. package/src/components/Avatar/AvatarStack/StyledAvatarStack.tsx +29 -0
  22. package/src/components/Avatar/AvatarStack/__tests__/StyledAvatarStack.spec.tsx +33 -0
  23. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +80 -0
  24. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +552 -0
  25. package/src/components/Avatar/AvatarStack/__tests__/index.spec.tsx +59 -0
  26. package/src/components/Avatar/AvatarStack/index.tsx +61 -0
  27. package/src/components/Avatar/AvatarStack/utils.ts +22 -0
  28. package/src/components/Avatar/StyledAvatar.tsx +6 -25
  29. package/src/components/Avatar/__tests__/StyledAvatar.spec.tsx +3 -19
  30. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -24
  31. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +118 -20
  32. package/src/components/Avatar/__tests__/index.spec.tsx +25 -8
  33. package/src/components/Avatar/index.ts +6 -0
  34. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -0
  35. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  36. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  37. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  38. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +11 -0
  39. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
  40. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
  41. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  42. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  43. package/src/components/Card/index.tsx +18 -7
  44. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  45. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -0
  46. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  48. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +3 -0
  49. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  50. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -0
  51. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  52. package/src/components/Icon/IconList.ts +11 -0
  53. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -0
  54. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +54 -31
  55. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
  56. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +5 -1
  57. package/src/components/Progress/ProgressBar.tsx +19 -2
  58. package/src/components/Progress/ProgressCircle.tsx +30 -9
  59. package/src/components/Progress/StyledProgressBar.tsx +14 -7
  60. package/src/components/Progress/StyledProgressCircle.tsx +35 -24
  61. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +337 -30
  62. package/src/components/Progress/__tests__/index.spec.js +15 -0
  63. package/src/components/Progress/constants.ts +16 -0
  64. package/src/components/Progress/types.ts +7 -1
  65. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -0
  66. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -0
  67. package/src/components/RichTextEditor/RichTextEditor.tsx +1 -1
  68. package/src/components/RichTextEditor/__mocks__/heroEditorApp.ts +2 -0
  69. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +36 -25
  70. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +8 -4
  71. package/src/components/RichTextEditor/heroEditorApp.ts +3 -0
  72. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  73. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  74. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
  75. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
  76. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +22 -0
  77. package/src/components/Select/MultiSelect/index.tsx +40 -15
  78. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  79. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
  80. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +46 -0
  81. package/src/components/Select/SingleSelect/index.tsx +5 -2
  82. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -0
  83. package/src/components/Select/types.ts +15 -6
  84. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
  85. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  86. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  87. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  88. package/src/components/Tabs/ScrollableTabs.tsx +2 -0
  89. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +1 -1
  90. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2 -0
  91. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
  92. package/src/components/Tabs/__tests__/index.spec.tsx +1 -1
  93. package/src/components/Tabs/index.tsx +7 -0
  94. package/src/components/Tag/StyledTag.tsx +42 -11
  95. package/src/components/Tag/__tests__/Tag.spec.tsx +28 -0
  96. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +135 -0
  97. package/src/components/Tag/index.tsx +15 -3
  98. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +22 -0
  99. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +31 -0
  100. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
  101. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +3 -0
  102. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +13 -0
  103. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +6 -0
  104. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -0
  105. package/src/components/Typography/Text/StyledText.tsx +6 -2
  106. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +22 -0
  107. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +63 -0
  108. package/src/components/Typography/Text/index.tsx +8 -0
  109. package/src/index.ts +2 -1
  110. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +86 -22
  111. package/src/theme/components/avatar.ts +29 -5
  112. package/src/theme/components/badge.ts +1 -1
  113. package/src/theme/components/button.ts +2 -2
  114. package/src/theme/components/empty.ts +2 -2
  115. package/src/theme/components/fab.ts +3 -3
  116. package/src/theme/components/pinInput.ts +2 -2
  117. package/src/theme/components/progress.ts +37 -9
  118. package/src/theme/components/tag.ts +2 -1
  119. package/src/theme/components/toolbar.ts +1 -1
  120. package/src/theme/components/typography.ts +1 -7
  121. package/src/theme/global/colors/global.ts +12 -3
  122. package/src/theme/global/colors/types.ts +5 -0
  123. package/src/theme/global/scale.ts +6 -2
  124. package/src/theme/global/typography.ts +23 -5
  125. package/src/utils/hooks.ts +18 -1
  126. package/types/components/Avatar/Avatar.d.ts +33 -0
  127. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +17 -0
  128. package/types/components/Avatar/AvatarStack/index.d.ts +23 -0
  129. package/types/components/Avatar/AvatarStack/utils.d.ts +4 -0
  130. package/types/components/Avatar/StyledAvatar.d.ts +2 -12
  131. package/types/components/Avatar/index.d.ts +6 -25
  132. package/types/components/Card/index.d.ts +1 -1
  133. package/types/components/Icon/IconList.d.ts +1 -1
  134. package/types/components/Icon/index.d.ts +1 -1
  135. package/types/components/Icon/utils.d.ts +1 -1
  136. package/types/components/Progress/ProgressBar.d.ts +1 -1
  137. package/types/components/Progress/ProgressCircle.d.ts +4 -2
  138. package/types/components/Progress/StyledProgressBar.d.ts +2 -0
  139. package/types/components/Progress/StyledProgressCircle.d.ts +2 -0
  140. package/types/components/Progress/constants.d.ts +15 -0
  141. package/types/components/Progress/index.d.ts +1 -1
  142. package/types/components/Progress/types.d.ts +1 -1
  143. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +2 -0
  144. package/types/components/RichTextEditor/heroEditorApp.d.ts +2 -0
  145. package/types/components/Select/MultiSelect/index.d.ts +5 -2
  146. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  147. package/types/components/Select/index.d.ts +1 -1
  148. package/types/components/Select/types.d.ts +15 -3
  149. package/types/components/Tabs/ScrollableTabs.d.ts +1 -1
  150. package/types/components/Tabs/index.d.ts +7 -2
  151. package/types/components/Tag/StyledTag.d.ts +3 -0
  152. package/types/components/Tag/index.d.ts +7 -2
  153. package/types/components/Typography/Text/StyledText.d.ts +1 -0
  154. package/types/components/Typography/Text/index.d.ts +7 -1
  155. package/types/index.d.ts +2 -2
  156. package/types/theme/components/avatar.d.ts +4 -2
  157. package/types/theme/components/progress.d.ts +30 -9
  158. package/types/theme/components/tag.d.ts +1 -0
  159. package/types/theme/components/typography.d.ts +1 -5
  160. package/types/theme/global/colors/types.d.ts +5 -0
  161. package/types/theme/global/index.d.ts +5 -0
  162. package/types/theme/global/scale.d.ts +4 -1
  163. package/types/theme/global/typography.d.ts +9 -2
  164. package/types/utils/hooks.d.ts +2 -0
  165. package/src/components/Accordion/utils.tsx +0 -11
  166. package/types/components/Accordion/utils.d.ts +0 -1
@@ -124,6 +124,7 @@ exports[`OptionList render isLoading correctly 1`] = `
124
124
  themeFontSize="large"
125
125
  themeFontWeight="regular"
126
126
  themeIntent="body"
127
+ themeTypeface="neutral"
127
128
  >
128
129
  A
129
130
  </Text>
@@ -228,6 +229,7 @@ exports[`OptionList render isLoading correctly 1`] = `
228
229
  themeFontSize="large"
229
230
  themeFontWeight="regular"
230
231
  themeIntent="body"
232
+ themeTypeface="neutral"
231
233
  >
232
234
  A1
233
235
  </Text>
@@ -342,6 +344,7 @@ exports[`OptionList render isLoading correctly 1`] = `
342
344
  themeFontSize="large"
343
345
  themeFontWeight="regular"
344
346
  themeIntent="body"
347
+ themeTypeface="neutral"
345
348
  >
346
349
  B
347
350
  </Text>
@@ -446,6 +449,7 @@ exports[`OptionList render isLoading correctly 1`] = `
446
449
  themeFontSize="large"
447
450
  themeFontWeight="regular"
448
451
  themeIntent="body"
452
+ themeTypeface="neutral"
449
453
  >
450
454
  B1
451
455
  </Text>
@@ -557,6 +561,7 @@ exports[`OptionList render isLoading correctly 1`] = `
557
561
  themeFontSize="large"
558
562
  themeFontWeight="regular"
559
563
  themeIntent="body"
564
+ themeTypeface="neutral"
560
565
  >
561
566
  B2
562
567
  </Text>
@@ -887,6 +892,7 @@ exports[`OptionList renders correctly 1`] = `
887
892
  themeFontSize="large"
888
893
  themeFontWeight="regular"
889
894
  themeIntent="body"
895
+ themeTypeface="neutral"
890
896
  >
891
897
  A
892
898
  </Text>
@@ -991,6 +997,7 @@ exports[`OptionList renders correctly 1`] = `
991
997
  themeFontSize="large"
992
998
  themeFontWeight="regular"
993
999
  themeIntent="body"
1000
+ themeTypeface="neutral"
994
1001
  >
995
1002
  A1
996
1003
  </Text>
@@ -1105,6 +1112,7 @@ exports[`OptionList renders correctly 1`] = `
1105
1112
  themeFontSize="large"
1106
1113
  themeFontWeight="regular"
1107
1114
  themeIntent="body"
1115
+ themeTypeface="neutral"
1108
1116
  >
1109
1117
  B
1110
1118
  </Text>
@@ -1209,6 +1217,7 @@ exports[`OptionList renders correctly 1`] = `
1209
1217
  themeFontSize="large"
1210
1218
  themeFontWeight="regular"
1211
1219
  themeIntent="body"
1220
+ themeTypeface="neutral"
1212
1221
  >
1213
1222
  B1
1214
1223
  </Text>
@@ -1320,6 +1329,7 @@ exports[`OptionList renders correctly 1`] = `
1320
1329
  themeFontSize="large"
1321
1330
  themeFontWeight="regular"
1322
1331
  themeIntent="body"
1332
+ themeTypeface="neutral"
1323
1333
  >
1324
1334
  B2
1325
1335
  </Text>
@@ -1490,6 +1500,7 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1490
1500
  themeFontSize="large"
1491
1501
  themeFontWeight="regular"
1492
1502
  themeIntent="body"
1503
+ themeTypeface="neutral"
1493
1504
  >
1494
1505
  A
1495
1506
  </Text>
@@ -1594,6 +1605,7 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1594
1605
  themeFontSize="large"
1595
1606
  themeFontWeight="regular"
1596
1607
  themeIntent="body"
1608
+ themeTypeface="neutral"
1597
1609
  >
1598
1610
  A1
1599
1611
  </Text>
@@ -1708,6 +1720,7 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1708
1720
  themeFontSize="large"
1709
1721
  themeFontWeight="regular"
1710
1722
  themeIntent="body"
1723
+ themeTypeface="neutral"
1711
1724
  >
1712
1725
  B
1713
1726
  </Text>
@@ -1812,6 +1825,7 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1812
1825
  themeFontSize="large"
1813
1826
  themeFontWeight="regular"
1814
1827
  themeIntent="body"
1828
+ themeTypeface="neutral"
1815
1829
  >
1816
1830
  B1
1817
1831
  </Text>
@@ -1923,6 +1937,7 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1923
1937
  themeFontSize="large"
1924
1938
  themeFontWeight="regular"
1925
1939
  themeIntent="body"
1940
+ themeTypeface="neutral"
1926
1941
  >
1927
1942
  B2
1928
1943
  </Text>
@@ -2093,6 +2108,7 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2093
2108
  themeFontSize="large"
2094
2109
  themeFontWeight="regular"
2095
2110
  themeIntent="body"
2111
+ themeTypeface="neutral"
2096
2112
  >
2097
2113
  A
2098
2114
  </Text>
@@ -2197,6 +2213,7 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2197
2213
  themeFontSize="large"
2198
2214
  themeFontWeight="regular"
2199
2215
  themeIntent="body"
2216
+ themeTypeface="neutral"
2200
2217
  >
2201
2218
  A1
2202
2219
  </Text>
@@ -2311,6 +2328,7 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2311
2328
  themeFontSize="large"
2312
2329
  themeFontWeight="regular"
2313
2330
  themeIntent="body"
2331
+ themeTypeface="neutral"
2314
2332
  >
2315
2333
  B
2316
2334
  </Text>
@@ -2415,6 +2433,7 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2415
2433
  themeFontSize="large"
2416
2434
  themeFontWeight="regular"
2417
2435
  themeIntent="body"
2436
+ themeTypeface="neutral"
2418
2437
  >
2419
2438
  B1
2420
2439
  </Text>
@@ -2526,6 +2545,7 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2526
2545
  themeFontSize="large"
2527
2546
  themeFontWeight="regular"
2528
2547
  themeIntent="body"
2548
+ themeTypeface="neutral"
2529
2549
  >
2530
2550
  B2
2531
2551
  </Text>
@@ -125,6 +125,7 @@ Array [
125
125
  themeFontSize="medium"
126
126
  themeFontWeight="regular"
127
127
  themeIntent="body"
128
+ themeTypeface="neutral"
128
129
  themeVariant="default"
129
130
  >
130
131
  Choose collaborators
@@ -334,6 +335,7 @@ Array [
334
335
  themeFontSize="large"
335
336
  themeFontWeight="semi-bold"
336
337
  themeIntent="body"
338
+ themeTypeface="neutral"
337
339
  >
338
340
  Choose collaborators
339
341
  </Text>
@@ -517,6 +519,7 @@ Array [
517
519
  themeFontSize="large"
518
520
  themeFontWeight="regular"
519
521
  themeIntent="body"
522
+ themeTypeface="neutral"
520
523
  >
521
524
  D
522
525
  </Text>
@@ -627,6 +630,7 @@ Array [
627
630
  themeFontSize="large"
628
631
  themeFontWeight="semi-bold"
629
632
  themeIntent="body"
633
+ themeTypeface="neutral"
630
634
  >
631
635
  Daniel
632
636
  </Text>
@@ -646,6 +650,7 @@ Array [
646
650
  themeFontSize="large"
647
651
  themeFontWeight="regular"
648
652
  themeIntent="subdued"
653
+ themeTypeface="neutral"
649
654
  >
650
655
  Senior Developer
651
656
  </Text>
@@ -764,6 +769,7 @@ Array [
764
769
  themeFontSize="large"
765
770
  themeFontWeight="semi-bold"
766
771
  themeIntent="body"
772
+ themeTypeface="neutral"
767
773
  >
768
774
  Daemon
769
775
  </Text>
@@ -783,6 +789,7 @@ Array [
783
789
  themeFontSize="large"
784
790
  themeFontWeight="regular"
785
791
  themeIntent="subdued"
792
+ themeTypeface="neutral"
786
793
  >
787
794
  Manager
788
795
  </Text>
@@ -906,6 +913,7 @@ Array [
906
913
  themeFontSize="large"
907
914
  themeFontWeight="regular"
908
915
  themeIntent="body"
916
+ themeTypeface="neutral"
909
917
  >
910
918
  J
911
919
  </Text>
@@ -1016,6 +1024,7 @@ Array [
1016
1024
  themeFontSize="large"
1017
1025
  themeFontWeight="semi-bold"
1018
1026
  themeIntent="body"
1027
+ themeTypeface="neutral"
1019
1028
  >
1020
1029
  Jennifer
1021
1030
  </Text>
@@ -1035,6 +1044,7 @@ Array [
1035
1044
  themeFontSize="large"
1036
1045
  themeFontWeight="regular"
1037
1046
  themeIntent="subdued"
1047
+ themeTypeface="neutral"
1038
1048
  >
1039
1049
  UX Designer
1040
1050
  </Text>
@@ -1153,6 +1163,7 @@ Array [
1153
1163
  themeFontSize="large"
1154
1164
  themeFontWeight="semi-bold"
1155
1165
  themeIntent="body"
1166
+ themeTypeface="neutral"
1156
1167
  >
1157
1168
  Josh
1158
1169
  </Text>
@@ -1172,6 +1183,7 @@ Array [
1172
1183
  themeFontSize="large"
1173
1184
  themeFontWeight="regular"
1174
1185
  themeIntent="subdued"
1186
+ themeTypeface="neutral"
1175
1187
  >
1176
1188
  Junior Developer
1177
1189
  </Text>
@@ -1352,6 +1364,7 @@ Array [
1352
1364
  themeFontSize="small"
1353
1365
  themeFontWeight="regular"
1354
1366
  themeIntent="body"
1367
+ themeTypeface="neutral"
1355
1368
  themeVariant="filled"
1356
1369
  >
1357
1370
  Allow notifications
@@ -1579,6 +1592,7 @@ Array [
1579
1592
  themeFontSize="large"
1580
1593
  themeFontWeight="semi-bold"
1581
1594
  themeIntent="body"
1595
+ themeTypeface="neutral"
1582
1596
  >
1583
1597
  Allow notifications
1584
1598
  </Text>
@@ -1819,6 +1833,7 @@ Array [
1819
1833
  themeFontSize="large"
1820
1834
  themeFontWeight="regular"
1821
1835
  themeIntent="body"
1836
+ themeTypeface="neutral"
1822
1837
  >
1823
1838
  Monday
1824
1839
  </Text>
@@ -1940,6 +1955,7 @@ Array [
1940
1955
  themeFontSize="large"
1941
1956
  themeFontWeight="regular"
1942
1957
  themeIntent="body"
1958
+ themeTypeface="neutral"
1943
1959
  >
1944
1960
  Tuesday
1945
1961
  </Text>
@@ -2061,6 +2077,7 @@ Array [
2061
2077
  themeFontSize="large"
2062
2078
  themeFontWeight="regular"
2063
2079
  themeIntent="body"
2080
+ themeTypeface="neutral"
2064
2081
  >
2065
2082
  Wednesday
2066
2083
  </Text>
@@ -2182,6 +2199,7 @@ Array [
2182
2199
  themeFontSize="large"
2183
2200
  themeFontWeight="regular"
2184
2201
  themeIntent="body"
2202
+ themeTypeface="neutral"
2185
2203
  >
2186
2204
  Thursday
2187
2205
  </Text>
@@ -2303,6 +2321,7 @@ Array [
2303
2321
  themeFontSize="large"
2304
2322
  themeFontWeight="regular"
2305
2323
  themeIntent="body"
2324
+ themeTypeface="neutral"
2306
2325
  >
2307
2326
  Friday
2308
2327
  </Text>
@@ -2424,6 +2443,7 @@ Array [
2424
2443
  themeFontSize="large"
2425
2444
  themeFontWeight="regular"
2426
2445
  themeIntent="body"
2446
+ themeTypeface="neutral"
2427
2447
  >
2428
2448
  Saturday
2429
2449
  </Text>
@@ -2546,6 +2566,7 @@ Array [
2546
2566
  themeFontSize="large"
2547
2567
  themeFontWeight="regular"
2548
2568
  themeIntent="body"
2569
+ themeTypeface="neutral"
2549
2570
  >
2550
2571
  Sunday
2551
2572
  </Text>
@@ -2726,6 +2747,7 @@ Array [
2726
2747
  themeFontSize="small"
2727
2748
  themeFontWeight="regular"
2728
2749
  themeIntent="body"
2750
+ themeTypeface="neutral"
2729
2751
  themeVariant="filled"
2730
2752
  >
2731
2753
  Allow notifications
@@ -2950,6 +2972,7 @@ Array [
2950
2972
  themeFontSize="large"
2951
2973
  themeFontWeight="semi-bold"
2952
2974
  themeIntent="body"
2975
+ themeTypeface="neutral"
2953
2976
  >
2954
2977
  Allow notifications
2955
2978
  </Text>
@@ -3186,6 +3209,7 @@ Array [
3186
3209
  themeFontSize="large"
3187
3210
  themeFontWeight="regular"
3188
3211
  themeIntent="body"
3212
+ themeTypeface="neutral"
3189
3213
  >
3190
3214
  Monday
3191
3215
  </Text>
@@ -3305,6 +3329,7 @@ Array [
3305
3329
  themeFontSize="large"
3306
3330
  themeFontWeight="regular"
3307
3331
  themeIntent="body"
3332
+ themeTypeface="neutral"
3308
3333
  >
3309
3334
  Tuesday
3310
3335
  </Text>
@@ -3424,6 +3449,7 @@ Array [
3424
3449
  themeFontSize="large"
3425
3450
  themeFontWeight="regular"
3426
3451
  themeIntent="body"
3452
+ themeTypeface="neutral"
3427
3453
  >
3428
3454
  Wednesday
3429
3455
  </Text>
@@ -3543,6 +3569,7 @@ Array [
3543
3569
  themeFontSize="large"
3544
3570
  themeFontWeight="regular"
3545
3571
  themeIntent="body"
3572
+ themeTypeface="neutral"
3546
3573
  >
3547
3574
  Thursday
3548
3575
  </Text>
@@ -3662,6 +3689,7 @@ Array [
3662
3689
  themeFontSize="large"
3663
3690
  themeFontWeight="regular"
3664
3691
  themeIntent="body"
3692
+ themeTypeface="neutral"
3665
3693
  >
3666
3694
  Friday
3667
3695
  </Text>
@@ -3781,6 +3809,7 @@ Array [
3781
3809
  themeFontSize="large"
3782
3810
  themeFontWeight="regular"
3783
3811
  themeIntent="body"
3812
+ themeTypeface="neutral"
3784
3813
  >
3785
3814
  Saturday
3786
3815
  </Text>
@@ -3901,6 +3930,7 @@ Array [
3901
3930
  themeFontSize="large"
3902
3931
  themeFontWeight="regular"
3903
3932
  themeIntent="body"
3933
+ themeTypeface="neutral"
3904
3934
  >
3905
3935
  Sunday
3906
3936
  </Text>
@@ -4083,6 +4113,7 @@ Array [
4083
4113
  themeFontSize="small"
4084
4114
  themeFontWeight="regular"
4085
4115
  themeIntent="body"
4116
+ themeTypeface="neutral"
4086
4117
  themeVariant="readonly"
4087
4118
  >
4088
4119
  Allow notifications
@@ -4324,6 +4355,7 @@ Array [
4324
4355
  themeFontSize="large"
4325
4356
  themeFontWeight="semi-bold"
4326
4357
  themeIntent="body"
4358
+ themeTypeface="neutral"
4327
4359
  >
4328
4360
  Allow notifications
4329
4361
  </Text>
@@ -4564,6 +4596,7 @@ Array [
4564
4596
  themeFontSize="large"
4565
4597
  themeFontWeight="regular"
4566
4598
  themeIntent="body"
4599
+ themeTypeface="neutral"
4567
4600
  >
4568
4601
  Monday
4569
4602
  </Text>
@@ -4685,6 +4718,7 @@ Array [
4685
4718
  themeFontSize="large"
4686
4719
  themeFontWeight="regular"
4687
4720
  themeIntent="body"
4721
+ themeTypeface="neutral"
4688
4722
  >
4689
4723
  Tuesday
4690
4724
  </Text>
@@ -4806,6 +4840,7 @@ Array [
4806
4840
  themeFontSize="large"
4807
4841
  themeFontWeight="regular"
4808
4842
  themeIntent="body"
4843
+ themeTypeface="neutral"
4809
4844
  >
4810
4845
  Wednesday
4811
4846
  </Text>
@@ -4927,6 +4962,7 @@ Array [
4927
4962
  themeFontSize="large"
4928
4963
  themeFontWeight="regular"
4929
4964
  themeIntent="body"
4965
+ themeTypeface="neutral"
4930
4966
  >
4931
4967
  Thursday
4932
4968
  </Text>
@@ -5048,6 +5084,7 @@ Array [
5048
5084
  themeFontSize="large"
5049
5085
  themeFontWeight="regular"
5050
5086
  themeIntent="body"
5087
+ themeTypeface="neutral"
5051
5088
  >
5052
5089
  Friday
5053
5090
  </Text>
@@ -5169,6 +5206,7 @@ Array [
5169
5206
  themeFontSize="large"
5170
5207
  themeFontWeight="regular"
5171
5208
  themeIntent="body"
5209
+ themeTypeface="neutral"
5172
5210
  >
5173
5211
  Saturday
5174
5212
  </Text>
@@ -5291,6 +5329,7 @@ Array [
5291
5329
  themeFontSize="large"
5292
5330
  themeFontWeight="regular"
5293
5331
  themeIntent="body"
5332
+ themeTypeface="neutral"
5294
5333
  >
5295
5334
  Sunday
5296
5335
  </Text>
@@ -5471,6 +5510,7 @@ Array [
5471
5510
  themeFontSize="small"
5472
5511
  themeFontWeight="regular"
5473
5512
  themeIntent="body"
5513
+ themeTypeface="neutral"
5474
5514
  themeVariant="filled"
5475
5515
  >
5476
5516
  Allow notifications
@@ -5695,6 +5735,7 @@ Array [
5695
5735
  themeFontSize="large"
5696
5736
  themeFontWeight="semi-bold"
5697
5737
  themeIntent="body"
5738
+ themeTypeface="neutral"
5698
5739
  >
5699
5740
  Allow notifications
5700
5741
  </Text>
@@ -5870,6 +5911,7 @@ Array [
5870
5911
  themeFontSize="large"
5871
5912
  themeFontWeight="regular"
5872
5913
  themeIntent="body"
5914
+ themeTypeface="neutral"
5873
5915
  >
5874
5916
  A
5875
5917
  </Text>
@@ -5972,6 +6014,7 @@ Array [
5972
6014
  themeFontSize="large"
5973
6015
  themeFontWeight="regular"
5974
6016
  themeIntent="body"
6017
+ themeTypeface="neutral"
5975
6018
  >
5976
6019
  A1
5977
6020
  </Text>
@@ -6086,6 +6129,7 @@ Array [
6086
6129
  themeFontSize="large"
6087
6130
  themeFontWeight="regular"
6088
6131
  themeIntent="body"
6132
+ themeTypeface="neutral"
6089
6133
  >
6090
6134
  B
6091
6135
  </Text>
@@ -6188,6 +6232,7 @@ Array [
6188
6232
  themeFontSize="large"
6189
6233
  themeFontWeight="regular"
6190
6234
  themeIntent="body"
6235
+ themeTypeface="neutral"
6191
6236
  >
6192
6237
  B1
6193
6238
  </Text>
@@ -6297,6 +6342,7 @@ Array [
6297
6342
  themeFontSize="large"
6298
6343
  themeFontWeight="regular"
6299
6344
  themeIntent="body"
6345
+ themeTypeface="neutral"
6300
6346
  >
6301
6347
  B2
6302
6348
  </Text>
@@ -41,6 +41,7 @@ const SingleSelect = <V, T extends OptionType<V>>({
41
41
  inputProps,
42
42
  onConfirm,
43
43
  onDimiss,
44
+ onDismiss,
44
45
  onEndReached,
45
46
  onQueryChange,
46
47
  options,
@@ -50,6 +51,7 @@ const SingleSelect = <V, T extends OptionType<V>>({
50
51
  error,
51
52
  editable = true,
52
53
  disabled = false,
54
+ required,
53
55
  numberOfLines,
54
56
  style,
55
57
  testID,
@@ -75,6 +77,7 @@ const SingleSelect = <V, T extends OptionType<V>>({
75
77
  }
76
78
  <View pointerEvents="none">
77
79
  <TextInput
80
+ numberOfLines={numberOfLines}
78
81
  {...inputProps}
79
82
  label={label}
80
83
  value={displayedValue}
@@ -83,7 +86,7 @@ const SingleSelect = <V, T extends OptionType<V>>({
83
86
  error={error}
84
87
  editable={editable}
85
88
  disabled={disabled}
86
- numberOfLines={numberOfLines}
89
+ required={required}
87
90
  pointerEvents="none"
88
91
  style={style}
89
92
  testID={testID}
@@ -99,7 +102,7 @@ const SingleSelect = <V, T extends OptionType<V>>({
99
102
  <BottomSheet
100
103
  open={open}
101
104
  onRequestClose={() => setOpen(false)}
102
- onDismiss={onDimiss}
105
+ onDismiss={onDismiss || onDimiss}
103
106
  header={label}
104
107
  style={{
105
108
  paddingBottom: isKeyboardVisible ? keyboardHeight : 0,
@@ -22,6 +22,7 @@ exports[`FooterText has correct style 1`] = `
22
22
  themeFontSize="medium"
23
23
  themeFontWeight="regular"
24
24
  themeIntent="body"
25
+ themeTypeface="neutral"
25
26
  >
26
27
  Confirm
27
28
  </Text>
@@ -39,10 +39,7 @@ export type SectionListRenderOptionInfo<
39
39
  };
40
40
 
41
41
  export interface SelectProps<V, T extends OptionType<V>>
42
- extends Pick<
43
- TextInputProps,
44
- 'editable' | 'disabled' | 'numberOfLines' | 'error'
45
- > {
42
+ extends Pick<TextInputProps, 'editable' | 'disabled' | 'error' | 'required'> {
46
43
  /**
47
44
  * An array of options to be selected.
48
45
  */
@@ -67,9 +64,14 @@ export interface SelectProps<V, T extends OptionType<V>>
67
64
  */
68
65
  onQueryChange?: (value: string) => void;
69
66
  /**
70
- * Event handler when selection dismiss
67
+ * @deprecated due to typo.
68
+ * Please use onDismiss instead.
71
69
  */
72
70
  onDimiss?: () => void;
71
+ /**
72
+ * Event handler when selection dismiss
73
+ */
74
+ onDismiss?: () => void;
73
75
  /**
74
76
  * Event handler when end of the list reached
75
77
  */
@@ -80,8 +82,10 @@ export interface SelectProps<V, T extends OptionType<V>>
80
82
  loading?: boolean;
81
83
  /**
82
84
  * Props that are passed to TextInput.
85
+ * Required is deprecated and will be removed in the next major release.
86
+ * Please use the outer required instead.
83
87
  */
84
- inputProps?: Pick<TextInputProps, 'loading' | 'required'>;
88
+ inputProps?: Pick<TextInputProps, 'loading' | 'required' | 'numberOfLines'>;
85
89
  /**
86
90
  * Field label.
87
91
  */
@@ -94,4 +98,9 @@ export interface SelectProps<V, T extends OptionType<V>>
94
98
  * Testing id of the component.
95
99
  */
96
100
  testID?: string;
101
+ /**
102
+ * @deprecated
103
+ * Please use inputProps.numberOfLines instead.
104
+ */
105
+ numberOfLines?: number;
97
106
  }
@@ -37,6 +37,7 @@ exports[`rendering renders correctly when intent is danger 1`] = `
37
37
  themeFontSize="medium"
38
38
  themeFontWeight="regular"
39
39
  themeIntent="body"
40
+ themeTypeface="neutral"
40
41
  >
41
42
  Action title
42
43
  </Text>
@@ -80,6 +81,7 @@ exports[`rendering renders correctly when intent is primary 1`] = `
80
81
  themeFontSize="medium"
81
82
  themeFontWeight="regular"
82
83
  themeIntent="body"
84
+ themeTypeface="neutral"
83
85
  >
84
86
  Action title
85
87
  </Text>
@@ -123,6 +125,7 @@ exports[`rendering renders correctly when intent is success 1`] = `
123
125
  themeFontSize="medium"
124
126
  themeFontWeight="regular"
125
127
  themeIntent="body"
128
+ themeTypeface="neutral"
126
129
  >
127
130
  Action title
128
131
  </Text>
@@ -25,6 +25,7 @@ exports[`Swipeable renders correctly 1`] = `
25
25
  themeFontSize="medium"
26
26
  themeFontWeight="regular"
27
27
  themeIntent="body"
28
+ themeTypeface="neutral"
28
29
  >
29
30
  Swipeable Item
30
31
  </Text>
@@ -100,6 +100,7 @@ exports[`Option renders correctly when selected 1`] = `
100
100
  themeFontSize="large"
101
101
  themeFontWeight="regular"
102
102
  themeIntent="body"
103
+ themeTypeface="neutral"
103
104
  >
104
105
  My Dashboard
105
106
  </Text>
@@ -55,6 +55,7 @@ exports[`SelectorSwitch renders correctly 1`] = `
55
55
  themeFontSize="large"
56
56
  themeFontWeight="regular"
57
57
  themeIntent="body"
58
+ themeTypeface="neutral"
58
59
  >
59
60
  My Dashboard
60
61
  </Text>
@@ -63,6 +63,7 @@ const ScrollableTab = ({
63
63
  barStyle,
64
64
  lazy = false,
65
65
  lazyPreloadDistance = 1,
66
+ swipeEnabled = true,
66
67
  testID: componentTestID,
67
68
  }: TabsProps) => {
68
69
  const flatListRef = React.useRef<FlatList>(null);
@@ -195,6 +196,7 @@ const ScrollableTab = ({
195
196
  onTabPress(selectedItem.key);
196
197
  }
197
198
  }}
199
+ scrollEnabled={swipeEnabled}
198
200
  >
199
201
  {tabs.map((tab, index) => {
200
202
  const { key, component, testID } = tab;
@@ -92,7 +92,7 @@ describe('Tabs.Scroll', () => {
92
92
 
93
93
  it('renders correctly with lazy preloaded', () => {
94
94
  const { getByText, queryByText, getByTestId } = renderWithTheme(
95
- <TestTabsComponent lazy lazyPreloadDistance={1} />
95
+ <TestTabsComponent lazy lazyPreloadDistance={1} swipeEnabled={false} />
96
96
  );
97
97
 
98
98
  expect(getByText('Work Screen')).toBeDefined();