@hero-design/rn 8.0.2 → 8.2.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 (79) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/es/index.js +55 -48
  4. package/jest.config.js +1 -1
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +55 -48
  7. package/package.json +10 -11
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +0 -8
  9. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
  10. package/src/components/Alert/StyledAlert.tsx +4 -2
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +120 -5
  12. package/src/components/Alert/__tests__/index.spec.tsx +14 -0
  13. package/src/components/Alert/index.tsx +13 -3
  14. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  15. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +5 -1
  16. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +45 -9
  17. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +0 -1
  18. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +16 -2
  19. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +0 -6
  20. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +0 -2
  21. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +1 -278
  22. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -70
  23. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  24. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +0 -1
  25. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +5 -10
  26. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +0 -5
  27. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +0 -3
  28. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +30 -6
  29. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +0 -1
  30. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  31. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +20 -4
  32. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +6 -0
  33. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -4
  34. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  35. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  36. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -14
  37. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +0 -2
  38. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  39. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  40. package/src/components/Icon/IconList.ts +2 -0
  41. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  42. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +10 -2
  43. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +30 -7
  44. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +0 -4
  45. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +0 -4
  46. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +0 -11
  47. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +10 -2
  48. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +15 -3
  49. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +0 -7
  50. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +5 -1
  51. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +60 -19
  52. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +533 -3057
  53. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -2
  54. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +5 -1
  55. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +60 -19
  56. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +485 -2745
  57. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +1 -1
  58. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +0 -7
  59. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +0 -28
  60. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
  61. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +0 -3
  62. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +0 -3
  63. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  64. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +0 -1
  65. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
  66. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +0 -11
  67. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +0 -2
  68. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  69. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
  70. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +11 -1
  71. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +18 -5
  72. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +0 -13
  73. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +30 -6
  74. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +30 -6
  75. package/types/components/Alert/StyledAlert.d.ts +1 -0
  76. package/types/components/Alert/index.d.ts +5 -1
  77. package/types/components/Icon/IconList.d.ts +1 -1
  78. package/types/components/Icon/index.d.ts +1 -1
  79. package/types/components/Icon/utils.d.ts +1 -1
@@ -87,7 +87,7 @@ describe('rendering', () => {
87
87
  );
88
88
 
89
89
  expect(toJSON()).toMatchSnapshot();
90
- expect(queryAllByText('Allow notifications')).toHaveLength(2);
90
+ expect(queryAllByText('Allow notifications')).toHaveLength(1);
91
91
  expect(getByTestId('text-input').props.value).toBe('Monday, Tuesday');
92
92
  });
93
93
 
@@ -199,7 +199,7 @@ describe('rendering', () => {
199
199
  });
200
200
 
201
201
  it('allows custom footer', () => {
202
- const { getByText } = renderWithTheme(
202
+ const { getByText, queryByText } = renderWithTheme(
203
203
  <MultiSelect<string, CustomOptionType>
204
204
  label="Choose collaborators"
205
205
  footerLabel={({ value: _value, closeModal: _closeModal }) => (
@@ -214,6 +214,11 @@ describe('rendering', () => {
214
214
  />
215
215
  );
216
216
 
217
+ expect(getByText('Choose collaborators')).toBeTruthy();
218
+
219
+ expect(queryByText('Clear all')).toBeNull();
220
+
221
+ fireEvent(getByText('Choose collaborators'), 'press');
217
222
  expect(getByText('Clear all')).toBeTruthy();
218
223
  expect(getByText('Save')).toBeTruthy();
219
224
  });
@@ -2,10 +2,14 @@
2
2
 
3
3
  exports[`Option renders correctly 1`] = `
4
4
  <View
5
+ accessibilityState={
6
+ Object {
7
+ "disabled": false,
8
+ }
9
+ }
5
10
  accessible={true}
6
11
  collapsable={false}
7
12
  focusable={true}
8
- nativeID="animatedComponent"
9
13
  onClick={[Function]}
10
14
  onResponderGrant={[Function]}
11
15
  onResponderMove={[Function]}
@@ -187,10 +187,14 @@ exports[`OptionList render isLoading correctly 1`] = `
187
187
  }
188
188
  />
189
189
  <View
190
+ accessibilityState={
191
+ Object {
192
+ "disabled": false,
193
+ }
194
+ }
190
195
  accessible={true}
191
196
  collapsable={false}
192
197
  focusable={true}
193
- nativeID="animatedComponent"
194
198
  onClick={[Function]}
195
199
  onResponderGrant={[Function]}
196
200
  onResponderMove={[Function]}
@@ -406,10 +410,14 @@ exports[`OptionList render isLoading correctly 1`] = `
406
410
  }
407
411
  />
408
412
  <View
413
+ accessibilityState={
414
+ Object {
415
+ "disabled": false,
416
+ }
417
+ }
409
418
  accessible={true}
410
419
  collapsable={false}
411
420
  focusable={true}
412
- nativeID="animatedComponent"
413
421
  onClick={[Function]}
414
422
  onResponderGrant={[Function]}
415
423
  onResponderMove={[Function]}
@@ -517,10 +525,14 @@ exports[`OptionList render isLoading correctly 1`] = `
517
525
  >
518
526
  <View>
519
527
  <View
528
+ accessibilityState={
529
+ Object {
530
+ "disabled": false,
531
+ }
532
+ }
520
533
  accessible={true}
521
534
  collapsable={false}
522
535
  focusable={true}
523
- nativeID="animatedComponent"
524
536
  onClick={[Function]}
525
537
  onResponderGrant={[Function]}
526
538
  onResponderMove={[Function]}
@@ -654,7 +666,6 @@ exports[`OptionList render isLoading correctly 1`] = `
654
666
  >
655
667
  <View
656
668
  collapsable={false}
657
- nativeID="animatedComponent"
658
669
  style={
659
670
  Object {
660
671
  "transform": Array [
@@ -667,7 +678,6 @@ exports[`OptionList render isLoading correctly 1`] = `
667
678
  >
668
679
  <View
669
680
  collapsable={false}
670
- nativeID="animatedComponent"
671
681
  style={
672
682
  Array [
673
683
  Object {
@@ -682,7 +692,6 @@ exports[`OptionList render isLoading correctly 1`] = `
682
692
  >
683
693
  <View
684
694
  collapsable={false}
685
- nativeID="animatedComponent"
686
695
  style={
687
696
  Array [
688
697
  Object {
@@ -701,7 +710,6 @@ exports[`OptionList render isLoading correctly 1`] = `
701
710
  />
702
711
  <View
703
712
  collapsable={false}
704
- nativeID="animatedComponent"
705
713
  style={
706
714
  Array [
707
715
  Object {
@@ -722,7 +730,6 @@ exports[`OptionList render isLoading correctly 1`] = `
722
730
  </View>
723
731
  <View
724
732
  collapsable={false}
725
- nativeID="animatedComponent"
726
733
  style={
727
734
  Array [
728
735
  Object {
@@ -737,7 +744,6 @@ exports[`OptionList render isLoading correctly 1`] = `
737
744
  >
738
745
  <View
739
746
  collapsable={false}
740
- nativeID="animatedComponent"
741
747
  style={
742
748
  Array [
743
749
  Object {
@@ -756,7 +762,6 @@ exports[`OptionList render isLoading correctly 1`] = `
756
762
  />
757
763
  <View
758
764
  collapsable={false}
759
- nativeID="animatedComponent"
760
765
  style={
761
766
  Array [
762
767
  Object {
@@ -959,10 +964,14 @@ exports[`OptionList renders correctly 1`] = `
959
964
  }
960
965
  />
961
966
  <View
967
+ accessibilityState={
968
+ Object {
969
+ "disabled": false,
970
+ }
971
+ }
962
972
  accessible={true}
963
973
  collapsable={false}
964
974
  focusable={true}
965
- nativeID="animatedComponent"
966
975
  onClick={[Function]}
967
976
  onResponderGrant={[Function]}
968
977
  onResponderMove={[Function]}
@@ -1178,10 +1187,14 @@ exports[`OptionList renders correctly 1`] = `
1178
1187
  }
1179
1188
  />
1180
1189
  <View
1190
+ accessibilityState={
1191
+ Object {
1192
+ "disabled": false,
1193
+ }
1194
+ }
1181
1195
  accessible={true}
1182
1196
  collapsable={false}
1183
1197
  focusable={true}
1184
- nativeID="animatedComponent"
1185
1198
  onClick={[Function]}
1186
1199
  onResponderGrant={[Function]}
1187
1200
  onResponderMove={[Function]}
@@ -1289,10 +1302,14 @@ exports[`OptionList renders correctly 1`] = `
1289
1302
  >
1290
1303
  <View>
1291
1304
  <View
1305
+ accessibilityState={
1306
+ Object {
1307
+ "disabled": false,
1308
+ }
1309
+ }
1292
1310
  accessible={true}
1293
1311
  collapsable={false}
1294
1312
  focusable={true}
1295
- nativeID="animatedComponent"
1296
1313
  onClick={[Function]}
1297
1314
  onResponderGrant={[Function]}
1298
1315
  onResponderMove={[Function]}
@@ -1571,10 +1588,14 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1571
1588
  }
1572
1589
  />
1573
1590
  <View
1591
+ accessibilityState={
1592
+ Object {
1593
+ "disabled": false,
1594
+ }
1595
+ }
1574
1596
  accessible={true}
1575
1597
  collapsable={false}
1576
1598
  focusable={true}
1577
- nativeID="animatedComponent"
1578
1599
  onClick={[Function]}
1579
1600
  onResponderGrant={[Function]}
1580
1601
  onResponderMove={[Function]}
@@ -1790,10 +1811,14 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1790
1811
  }
1791
1812
  />
1792
1813
  <View
1814
+ accessibilityState={
1815
+ Object {
1816
+ "disabled": false,
1817
+ }
1818
+ }
1793
1819
  accessible={true}
1794
1820
  collapsable={false}
1795
1821
  focusable={true}
1796
- nativeID="animatedComponent"
1797
1822
  onClick={[Function]}
1798
1823
  onResponderGrant={[Function]}
1799
1824
  onResponderMove={[Function]}
@@ -1901,10 +1926,14 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
1901
1926
  >
1902
1927
  <View>
1903
1928
  <View
1929
+ accessibilityState={
1930
+ Object {
1931
+ "disabled": false,
1932
+ }
1933
+ }
1904
1934
  accessible={true}
1905
1935
  collapsable={false}
1906
1936
  focusable={true}
1907
- nativeID="animatedComponent"
1908
1937
  onClick={[Function]}
1909
1938
  onResponderGrant={[Function]}
1910
1939
  onResponderMove={[Function]}
@@ -2183,10 +2212,14 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2183
2212
  }
2184
2213
  />
2185
2214
  <View
2215
+ accessibilityState={
2216
+ Object {
2217
+ "disabled": false,
2218
+ }
2219
+ }
2186
2220
  accessible={true}
2187
2221
  collapsable={false}
2188
2222
  focusable={true}
2189
- nativeID="animatedComponent"
2190
2223
  onClick={[Function]}
2191
2224
  onResponderGrant={[Function]}
2192
2225
  onResponderMove={[Function]}
@@ -2402,10 +2435,14 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2402
2435
  }
2403
2436
  />
2404
2437
  <View
2438
+ accessibilityState={
2439
+ Object {
2440
+ "disabled": false,
2441
+ }
2442
+ }
2405
2443
  accessible={true}
2406
2444
  collapsable={false}
2407
2445
  focusable={true}
2408
- nativeID="animatedComponent"
2409
2446
  onClick={[Function]}
2410
2447
  onResponderGrant={[Function]}
2411
2448
  onResponderMove={[Function]}
@@ -2513,10 +2550,14 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
2513
2550
  >
2514
2551
  <View>
2515
2552
  <View
2553
+ accessibilityState={
2554
+ Object {
2555
+ "disabled": false,
2556
+ }
2557
+ }
2516
2558
  accessible={true}
2517
2559
  collapsable={false}
2518
2560
  focusable={true}
2519
- nativeID="animatedComponent"
2520
2561
  onClick={[Function]}
2521
2562
  onResponderGrant={[Function]}
2522
2563
  onResponderMove={[Function]}