@hero-design/rn 8.42.3 → 8.43.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 (50) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +11 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +670 -499
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +1109 -937
  7. package/package.json +7 -7
  8. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +197 -211
  9. package/src/components/BottomSheet/index.tsx +1 -1
  10. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
  11. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +0 -20
  12. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -70
  13. package/src/components/Button/StyledButton.tsx +4 -0
  14. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +16 -42
  15. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +10 -0
  16. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  17. package/src/components/Carousel/__tests__/index.spec.tsx +8 -10
  18. package/src/components/Chip/StyledChip.tsx +121 -0
  19. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +943 -0
  20. package/src/components/Chip/__tests__/index.spec.tsx +136 -0
  21. package/src/components/Chip/index.tsx +82 -0
  22. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -0
  23. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +417 -399
  24. package/src/components/Error/__tests__/index.spec.tsx +9 -6
  25. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  26. package/src/components/Icon/IconList.ts +1 -0
  27. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +8 -10
  28. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +367 -451
  29. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -10
  30. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +357 -419
  31. package/src/components/Success/__tests__/index.spec.tsx +9 -6
  32. package/src/components/Tabs/__tests__/SceneView.spec.tsx +19 -23
  33. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +417 -399
  34. package/src/index.ts +2 -0
  35. package/src/testHelpers/renderWithTheme.tsx +1 -7
  36. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +38 -1
  37. package/src/theme/components/button.ts +0 -1
  38. package/src/theme/components/chip.ts +47 -0
  39. package/src/theme/getTheme.ts +3 -0
  40. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -3
  41. package/types/components/Chip/StyledChip.d.ts +31 -0
  42. package/types/components/Chip/index.d.ts +26 -0
  43. package/types/components/Icon/IconList.d.ts +1 -1
  44. package/types/components/Icon/index.d.ts +1 -1
  45. package/types/components/Icon/utils.d.ts +1 -1
  46. package/types/index.d.ts +2 -1
  47. package/types/theme/components/button.d.ts +0 -1
  48. package/types/theme/components/chip.d.ts +40 -0
  49. package/types/theme/getTheme.d.ts +2 -0
  50. package/.turbo/turbo-publish:npm.log +0 -0
@@ -3,6 +3,7 @@ import { fireEvent } from '@testing-library/react-native';
3
3
  import renderWithTheme from '../../../testHelpers/renderWithTheme';
4
4
  import Success from '..';
5
5
  import Image from '../../Image';
6
+ import Portal from '../../Portal';
6
7
 
7
8
  const title = `We’re sorry, something went wrong`;
8
9
  const description = 'Please try again later';
@@ -46,12 +47,14 @@ describe('Success', () => {
46
47
  });
47
48
  it('renders full screen success page correctly', () => {
48
49
  const { toJSON, getByText, getByTestId } = renderWithTheme(
49
- <Success
50
- variant="full-screen"
51
- title={title}
52
- description={description}
53
- image="path_to_image"
54
- />
50
+ <Portal.Provider>
51
+ <Success
52
+ variant="full-screen"
53
+ title={title}
54
+ description={description}
55
+ image="path_to_image"
56
+ />
57
+ </Portal.Provider>
55
58
  );
56
59
 
57
60
  expect(getByText(title)).toBeTruthy();
@@ -3,7 +3,7 @@ import { ThemeProvider } from '@emotion/react';
3
3
  import renderWithTheme from '../../../testHelpers/renderWithTheme';
4
4
  import ScenceView from '../SceneView';
5
5
  import Typography from '../../Typography';
6
- import { Portal, theme } from '../../../index';
6
+ import { theme } from '../../../index';
7
7
 
8
8
  describe('ScenceView', () => {
9
9
  describe('lazy', () => {
@@ -25,17 +25,15 @@ describe('ScenceView', () => {
25
25
 
26
26
  rerender(
27
27
  <ThemeProvider theme={theme}>
28
- <Portal.Provider>
29
- <ScenceView
30
- testID="scene-view"
31
- index={0}
32
- selectedIndex={2}
33
- lazy
34
- lazyPreloadDistance={1}
35
- >
36
- <Typography.Body variant="small">Scene 1</Typography.Body>
37
- </ScenceView>
38
- </Portal.Provider>
28
+ <ScenceView
29
+ testID="scene-view"
30
+ index={0}
31
+ selectedIndex={2}
32
+ lazy
33
+ lazyPreloadDistance={1}
34
+ >
35
+ <Typography.Body variant="small">Scene 1</Typography.Body>
36
+ </ScenceView>
39
37
  </ThemeProvider>
40
38
  );
41
39
  expect(toJSON()).toMatchSnapshot();
@@ -60,17 +58,15 @@ describe('ScenceView', () => {
60
58
 
61
59
  rerender(
62
60
  <ThemeProvider theme={theme}>
63
- <Portal.Provider>
64
- <ScenceView
65
- testID="scene-view"
66
- index={2}
67
- selectedIndex={1}
68
- lazy
69
- lazyPreloadDistance={1}
70
- >
71
- <Typography.Body variant="small">Scene 1</Typography.Body>
72
- </ScenceView>
73
- </Portal.Provider>
61
+ <ScenceView
62
+ testID="scene-view"
63
+ index={2}
64
+ selectedIndex={1}
65
+ lazy
66
+ lazyPreloadDistance={1}
67
+ >
68
+ <Typography.Body variant="small">Scene 1</Typography.Body>
69
+ </ScenceView>
74
70
  </ThemeProvider>
75
71
  );
76
72
  expect(toJSON()).toMatchSnapshot();