@hero-design/rn 7.4.0 → 7.5.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/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +4117 -3926
  4. package/lib/assets/fonts/hero-icons.ttf +0 -0
  5. package/lib/index.js +4111 -3919
  6. package/package.json +2 -2
  7. package/playground/package.json +3 -3
  8. package/playground/src/Alert.tsx +80 -0
  9. package/playground/src/App.tsx +6 -0
  10. package/playground/src/MultipleThemes.tsx +34 -0
  11. package/src/components/Alert/StyledAlert.tsx +48 -0
  12. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +686 -0
  13. package/src/components/Alert/__tests__/index.spec.tsx +83 -0
  14. package/src/components/Alert/index.tsx +109 -0
  15. package/src/components/Icon/HeroIcon/selection.json +1 -1
  16. package/src/components/Icon/IconList.ts +2 -0
  17. package/src/index.ts +2 -0
  18. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +22 -0
  19. package/src/theme/components/alert.ts +32 -0
  20. package/src/theme/global/colors.ts +1 -0
  21. package/src/theme/index.ts +3 -0
  22. package/types/{src/components/Progress/StyledProgressCircle.d.ts → components/Alert/StyledAlert.d.ts} +13 -14
  23. package/types/{src/components/Avatar → components/Alert}/__tests__/index.spec.d.ts +0 -0
  24. package/types/components/Alert/index.d.ts +42 -0
  25. package/types/components/Icon/IconList.d.ts +1 -1
  26. package/types/components/Icon/utils.d.ts +1 -1
  27. package/types/index.d.ts +2 -1
  28. package/types/theme/components/alert.d.ts +23 -0
  29. package/types/theme/global/colors.d.ts +1 -0
  30. package/types/theme/global/index.d.ts +1 -0
  31. package/types/theme/index.d.ts +2 -0
  32. package/.turbo/turbo-build:types.log +0 -2
  33. package/.turbo/turbo-test.log +0 -131
  34. package/.turbo/turbo-type-check.log +0 -7
  35. package/playground/src/Button.tsx~origin_master +0 -170
  36. package/types/playground/components/Avatar.d.ts +0 -2
  37. package/types/playground/components/Badge.d.ts +0 -2
  38. package/types/playground/components/BottomNavigation.d.ts +0 -2
  39. package/types/playground/components/Button.d.ts +0 -2
  40. package/types/playground/components/Card.d.ts +0 -2
  41. package/types/playground/components/Collapse.d.ts +0 -2
  42. package/types/playground/components/Divider.d.ts +0 -2
  43. package/types/playground/components/Drawer.d.ts +0 -2
  44. package/types/playground/components/FAB.d.ts +0 -2
  45. package/types/playground/components/Icon.d.ts +0 -2
  46. package/types/playground/components/IconButton.d.ts +0 -2
  47. package/types/playground/components/Progress.d.ts +0 -2
  48. package/types/playground/components/Tabs.d.ts +0 -2
  49. package/types/playground/components/Tag.d.ts +0 -2
  50. package/types/playground/components/Typography.d.ts +0 -2
  51. package/types/playground/index.d.ts +0 -2
  52. package/types/src/components/Avatar/StyledAvatar.d.ts +0 -46
  53. package/types/src/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -1
  54. package/types/src/components/Avatar/index.d.ts +0 -25
  55. package/types/src/components/Badge/Status.d.ts +0 -24
  56. package/types/src/components/Badge/StyledBadge.d.ts +0 -28
  57. package/types/src/components/Badge/__tests__/Badge.spec.d.ts +0 -1
  58. package/types/src/components/Badge/__tests__/Status.spec.d.ts +0 -1
  59. package/types/src/components/Badge/index.d.ts +0 -32
  60. package/types/src/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
  61. package/types/src/components/BottomNavigation/__tests__/index.spec.d.ts +0 -1
  62. package/types/src/components/BottomNavigation/index.d.ts +0 -45
  63. package/types/src/components/Button/Button.d.ts +0 -57
  64. package/types/src/components/Button/IconButton.d.ts +0 -34
  65. package/types/src/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -20
  66. package/types/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -1
  67. package/types/src/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -1
  68. package/types/src/components/Button/LoadingIndicator/index.d.ts +0 -26
  69. package/types/src/components/Button/StyledButton.d.ts +0 -40
  70. package/types/src/components/Button/__tests__/Button.spec.d.ts +0 -1
  71. package/types/src/components/Button/__tests__/IconButton.spec.d.ts +0 -1
  72. package/types/src/components/Button/__tests__/StyledButton.spec.d.ts +0 -1
  73. package/types/src/components/Button/__tests__/index.spec.d.ts +0 -1
  74. package/types/src/components/Button/index.d.ts +0 -8
  75. package/types/src/components/Card/StyledCard.d.ts +0 -17
  76. package/types/src/components/Card/__tests__/StyledCard.spec.d.ts +0 -1
  77. package/types/src/components/Card/__tests__/index.spec.d.ts +0 -1
  78. package/types/src/components/Card/index.d.ts +0 -22
  79. package/types/src/components/Collapse/StyledCollapse.d.ts +0 -15
  80. package/types/src/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -1
  81. package/types/src/components/Collapse/__tests__/index.spec.d.ts +0 -1
  82. package/types/src/components/Collapse/index.d.ts +0 -23
  83. package/types/src/components/Divider/StyledDivider.d.ts +0 -13
  84. package/types/src/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -1
  85. package/types/src/components/Divider/index.d.ts +0 -21
  86. package/types/src/components/Drawer/StyledDrawer.d.ts +0 -25
  87. package/types/src/components/Drawer/__tests__/index.spec.d.ts +0 -1
  88. package/types/src/components/Drawer/index.d.ts +0 -25
  89. package/types/src/components/FAB/ActionGroup/ActionItem.d.ts +0 -12
  90. package/types/src/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -30
  91. package/types/src/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -13
  92. package/types/src/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -1
  93. package/types/src/components/FAB/ActionGroup/index.d.ts +0 -34
  94. package/types/src/components/FAB/AnimatedFABIcon.d.ts +0 -6
  95. package/types/src/components/FAB/FAB.d.ts +0 -34
  96. package/types/src/components/FAB/StyledFAB.d.ts +0 -20
  97. package/types/src/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -1
  98. package/types/src/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -1
  99. package/types/src/components/FAB/__tests__/index.spec.d.ts +0 -1
  100. package/types/src/components/FAB/index.d.ts +0 -4
  101. package/types/src/components/Icon/HeroIcon/index.d.ts +0 -13
  102. package/types/src/components/Icon/IconList.d.ts +0 -2
  103. package/types/src/components/Icon/__tests__/index.spec.d.ts +0 -1
  104. package/types/src/components/Icon/index.d.ts +0 -27
  105. package/types/src/components/Icon/utils.d.ts +0 -2
  106. package/types/src/components/Progress/ProgressBar.d.ts +0 -18
  107. package/types/src/components/Progress/ProgressCircle.d.ts +0 -18
  108. package/types/src/components/Progress/StyledProgressBar.d.ts +0 -18
  109. package/types/src/components/Progress/__tests__/index.spec.d.ts +0 -1
  110. package/types/src/components/Progress/index.d.ts +0 -5
  111. package/types/src/components/Progress/types.d.ts +0 -1
  112. package/types/src/components/Tabs/ActiveTabIndicator.d.ts +0 -8
  113. package/types/src/components/Tabs/ScrollableTabs.d.ts +0 -3
  114. package/types/src/components/Tabs/StyledScrollableTabs.d.ts +0 -61
  115. package/types/src/components/Tabs/StyledTabs.d.ts +0 -55
  116. package/types/src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -1
  117. package/types/src/components/Tabs/__tests__/index.spec.d.ts +0 -1
  118. package/types/src/components/Tabs/index.d.ts +0 -54
  119. package/types/src/components/Tabs/utils.d.ts +0 -2
  120. package/types/src/components/Tag/StyledTag.d.ts +0 -20
  121. package/types/src/components/Tag/__tests__/Tag.spec.d.ts +0 -1
  122. package/types/src/components/Tag/index.d.ts +0 -21
  123. package/types/src/components/Typography/Text/StyledText.d.ts +0 -13
  124. package/types/src/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -1
  125. package/types/src/components/Typography/Text/__tests__/index.spec.d.ts +0 -1
  126. package/types/src/components/Typography/Text/index.d.ts +0 -30
  127. package/types/src/components/Typography/index.d.ts +0 -6
  128. package/types/src/index.d.ts +0 -19
  129. package/types/src/testHelpers/renderWithTheme.d.ts +0 -3
  130. package/types/src/theme/__tests__/index.spec.d.ts +0 -1
  131. package/types/src/theme/components/avatar.d.ts +0 -32
  132. package/types/src/theme/components/badge.d.ts +0 -29
  133. package/types/src/theme/components/bottomNavigation.d.ts +0 -23
  134. package/types/src/theme/components/button.d.ts +0 -37
  135. package/types/src/theme/components/card.d.ts +0 -10
  136. package/types/src/theme/components/divider.d.ts +0 -17
  137. package/types/src/theme/components/drawer.d.ts +0 -21
  138. package/types/src/theme/components/fab.d.ts +0 -51
  139. package/types/src/theme/components/icon.d.ts +0 -19
  140. package/types/src/theme/components/progress.d.ts +0 -21
  141. package/types/src/theme/components/tabs.d.ts +0 -27
  142. package/types/src/theme/components/tag.d.ts +0 -30
  143. package/types/src/theme/components/typography.d.ts +0 -26
  144. package/types/src/theme/global/borders.d.ts +0 -11
  145. package/types/src/theme/global/colors.d.ts +0 -31
  146. package/types/src/theme/global/index.d.ts +0 -41
  147. package/types/src/theme/global/scale.d.ts +0 -9
  148. package/types/src/theme/global/space.d.ts +0 -13
  149. package/types/src/theme/global/typography.d.ts +0 -21
  150. package/types/src/theme/index.d.ts +0 -35
  151. package/types/src/types.d.ts +0 -5
  152. package/types/src/utils/__tests__/scale.spec.d.ts +0 -1
  153. package/types/src/utils/helpers.d.ts +0 -2
  154. package/types/src/utils/hooks.d.ts +0 -1
  155. package/types/src/utils/scale.d.ts +0 -3
@@ -125,6 +125,7 @@ const IconList = [
125
125
  'stopwatch',
126
126
  'suitcase',
127
127
  'survey',
128
+ 'swag',
128
129
  'switch',
129
130
  'tag',
130
131
  'target',
@@ -299,6 +300,7 @@ const IconList = [
299
300
  'video-1-outlined',
300
301
  'video-2-outlined',
301
302
  'wallet-outlined',
303
+ 'warning',
302
304
  ] as const;
303
305
 
304
306
  export default IconList;
package/src/index.ts CHANGED
@@ -2,6 +2,7 @@ import { ThemeProvider, useTheme } from '@emotion/react';
2
2
  import theme, { getTheme } from './theme';
3
3
  import { scale } from './utils/scale';
4
4
 
5
+ import Alert from './components/Alert';
5
6
  import Avatar from './components/Avatar';
6
7
  import Badge from './components/Badge';
7
8
  import BottomNavigation from './components/BottomNavigation';
@@ -29,6 +30,7 @@ export {
29
30
  useTheme,
30
31
  scale,
31
32
  ThemeProvider,
33
+ Alert,
32
34
  Avatar,
33
35
  Badge,
34
36
  BottomNavigation,
@@ -3,6 +3,27 @@
3
3
  exports[`theme returns correct theme object 1`] = `
4
4
  Object {
5
5
  "__hd__": Object {
6
+ "alert": Object {
7
+ "borderWidths": Object {
8
+ "base": 1,
9
+ },
10
+ "colors": Object {
11
+ "divider": "#fafbfb",
12
+ "error": "#de350b",
13
+ "info": "#1dbeee",
14
+ "success": "#01b39c",
15
+ "warning": "#ffa234",
16
+ },
17
+ "radii": Object {
18
+ "default": 16,
19
+ },
20
+ "sizes": Object {
21
+ "height": 48,
22
+ },
23
+ "space": Object {
24
+ "padding": 16,
25
+ },
26
+ },
6
27
  "avatar": Object {
7
28
  "borderWidths": Object {
8
29
  "default": 1,
@@ -429,6 +450,7 @@ Object {
429
450
  "info": "#4568fb",
430
451
  "infoBackground": "#ecf0ff",
431
452
  "infoLight": "#d1d9fe",
453
+ "infoMediumLight": "#1dbeee",
432
454
  "invertedText": "#ffffff",
433
455
  "outline": "#dadbde",
434
456
  "platformBackground": "#ffffff",
@@ -0,0 +1,32 @@
1
+ import { scale } from '../../utils/scale';
2
+ import { GlobalTheme } from '../global';
3
+
4
+ const getAlertTheme = (theme: GlobalTheme) => {
5
+ const colors = {
6
+ success: theme.colors.success,
7
+ warning: theme.colors.warning,
8
+ error: theme.colors.danger,
9
+ info: theme.colors.infoMediumLight,
10
+ divider: theme.colors.backgroundLight,
11
+ };
12
+
13
+ const sizes = {
14
+ height: scale(48),
15
+ };
16
+
17
+ const space = {
18
+ padding: theme.space.medium,
19
+ };
20
+
21
+ const radii = {
22
+ default: theme.radii.xlarge,
23
+ };
24
+
25
+ const borderWidths = {
26
+ base: theme.borderWidths.base,
27
+ };
28
+
29
+ return { colors, radii, sizes, space, borderWidths };
30
+ };
31
+
32
+ export default getAlertTheme;
@@ -8,6 +8,7 @@ const systemPalette = {
8
8
  secondary: palette.dodgerBlue,
9
9
  secondaryLight: palette.dodgerBlueLight75,
10
10
  info: palette.dodgerBlue,
11
+ infoMediumLight: palette.blue,
11
12
  infoLight: palette.dodgerBlueLight75,
12
13
  infoBackground: palette.dodgerBlueLight90,
13
14
  success: palette.green,
@@ -7,6 +7,7 @@ import {
7
7
  defaultSystemPalette,
8
8
  } from './global';
9
9
 
10
+ import getAlertTheme from './components/alert';
10
11
  import getAvatarTheme from './components/avatar';
11
12
  import getBadgeTheme from './components/badge';
12
13
  import getBottomNavigationTheme from './components/bottomNavigation';
@@ -28,6 +29,7 @@ import getTypographyTheme from './components/typography';
28
29
 
29
30
  type Theme = GlobalTheme & {
30
31
  __hd__: {
32
+ alert: ReturnType<typeof getAlertTheme>;
31
33
  avatar: ReturnType<typeof getAvatarTheme>;
32
34
  badge: ReturnType<typeof getBadgeTheme>;
33
35
  bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
@@ -58,6 +60,7 @@ const getTheme = (
58
60
  ...globalTheme,
59
61
  __hd__: {
60
62
  avatar: getAvatarTheme(globalTheme),
63
+ alert: getAlertTheme(globalTheme),
61
64
  badge: getBadgeTheme(globalTheme),
62
65
  bottomNavigation: getBottomNavigationTheme(globalTheme),
63
66
  bottomSheet: getBottomSheetTheme(globalTheme),
@@ -1,38 +1,37 @@
1
- /// <reference types="react" />
2
- import { View, ViewProps } from 'react-native';
3
- import { ThemeIntent } from './types';
4
- declare const HalfCircleWrapper: import("@emotion/native").StyledComponent<ViewProps & {
1
+ import { TouchableOpacity, View, ViewProps } from 'react-native';
2
+ declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
5
3
  theme?: import("@emotion/react").Theme | undefined;
6
4
  as?: import("react").ElementType<any> | undefined;
5
+ } & {
6
+ themeVariant: 'default' | 'round';
7
+ themeIntent: 'success' | 'info' | 'warning' | 'error';
7
8
  }, {}, {
8
9
  ref?: import("react").Ref<View> | undefined;
9
10
  }>;
10
- declare const HalfCircleInnerFG: import("@emotion/native").StyledComponent<ViewProps & {
11
+ declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
11
12
  theme?: import("@emotion/react").Theme | undefined;
12
13
  as?: import("react").ElementType<any> | undefined;
13
- } & {
14
- themeIntent: ThemeIntent;
15
14
  }, {}, {
16
15
  ref?: import("react").Ref<View> | undefined;
17
16
  }>;
18
- declare const HalfCircleInnerBG: import("@emotion/native").StyledComponent<ViewProps & {
17
+ declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
19
18
  theme?: import("@emotion/react").Theme | undefined;
20
19
  as?: import("react").ElementType<any> | undefined;
21
20
  }, {}, {
22
21
  ref?: import("react").Ref<View> | undefined;
23
22
  }>;
24
- declare const DonutCircle: import("@emotion/native").StyledComponent<ViewProps & {
23
+ declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
25
24
  theme?: import("@emotion/react").Theme | undefined;
26
25
  as?: import("react").ElementType<any> | undefined;
26
+ } & {
27
+ showDivider: boolean;
27
28
  }, {}, {
28
29
  ref?: import("react").Ref<View> | undefined;
29
30
  }>;
30
- declare const StrokeEnd: import("@emotion/native").StyledComponent<ViewProps & {
31
+ declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
31
32
  theme?: import("@emotion/react").Theme | undefined;
32
33
  as?: import("react").ElementType<any> | undefined;
33
- } & {
34
- themeIntent: ThemeIntent;
35
34
  }, {}, {
36
- ref?: import("react").Ref<View> | undefined;
35
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
37
36
  }>;
38
- export { DonutCircle, HalfCircleWrapper, HalfCircleInnerFG, HalfCircleInnerBG, StrokeEnd, };
37
+ export { Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, };
@@ -0,0 +1,42 @@
1
+ import { ReactElement } from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ import { IconName } from '../Icon';
4
+ interface AlertProps {
5
+ /**
6
+ * Alert title.
7
+ */
8
+ title?: string | ReactElement;
9
+ /**
10
+ * Alert content.
11
+ */
12
+ content: string | ReactElement;
13
+ /**
14
+ * Icon name of the alert.
15
+ * - undefined: use default icon according to Alert intent.
16
+ * - null: no icon at all.
17
+ * - IconName: an icon identifier from hero-design icon list.
18
+ */
19
+ icon?: null | IconName;
20
+ /**
21
+ * Visual intent color to apply to alert.
22
+ */
23
+ intent?: 'success' | 'info' | 'warning' | 'error';
24
+ /**
25
+ * Closing callback. When onClose is available, an X button will be rendered on the right side of alert. The callback will be called when user clicks on X button.
26
+ */
27
+ onClose?: () => void;
28
+ /**
29
+ * Use rounded variant.
30
+ */
31
+ variant?: 'default' | 'round';
32
+ /**
33
+ * Addtional style.
34
+ */
35
+ style?: StyleProp<ViewStyle>;
36
+ /**
37
+ * Testing id of the component.
38
+ */
39
+ testID?: string;
40
+ }
41
+ declare const Alert: ({ content, icon, title, intent, onClose, variant, style, testID, }: AlertProps) => JSX.Element;
42
+ export default Alert;
@@ -1,2 +1,2 @@
1
- declare const IconList: readonly ["activate", "add-person", "adjustment", "alignment", "bank", "bell", "billing", "bookmark", "box-check", "box", "buildings", "cake", "calendar-clock", "calendar", "candy-box-menu", "carat-down-small", "carat-down", "carat-left", "carat-right", "carat-up", "circle-add", "circle-cancel", "circle-check", "circle-down", "circle-info", "circle-left", "circle-ok", "circle-pencil", "circle-question", "circle-remove", "circle-right", "circle-up", "circle-warning", "clock", "cloud-download", "cloud-upload", "cog", "coin", "contacts", "credit-card", "diamond", "direction-arrows", "directory", "document", "dollar-coin-shine", "double-buildings", "edit-template", "envelope", "expense", "eye-circle", "eye-invisible", "eye", "face-meh", "face-sad", "face-smiley", "feed", "feedbacks", "file-certified", "file-clone", "file-copy", "file-csv", "file-dispose", "file-doc", "file-excel", "file-export", "file-lock", "file-pdf", "file-powerpoint", "file-search", "file-secured", "file-sheets", "file-slide", "file-verified", "file-word", "file", "folder-user", "folder", "funnel-filter", "global-dollar", "globe", "graduation-cap", "graph", "happy-sun", "health-bag", "heart", "home", "image", "import", "incident-siren", "instapay", "list", "loading", "loading-2", "location", "lock", "media-content", "menu", "moneybag", "moon", "multiple-stars", "multiple-users", "node", "open-folder", "paperclip", "payment-summary", "pencil", "phone", "piggy-bank", "plane", "play-circle", "print", "raising-hands", "reply", "reschedule", "rostering", "save", "schedule", "search-person", "send", "speaker", "star-medal", "star", "steps-circle", "stopwatch", "suitcase", "survey", "switch", "tag", "target", "teams", "timesheet", "touch-id", "trash-bin", "unlock", "user", "video-1", "video-2", "activate-outlined", "add-person-outlined", "add-section-outlined", "add-time-outlined", "add", "adjustment-outlined", "alignment-2-outlined", "alignment-outlined", "all-caps", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "at-sign", "bell-outlined", "billing-outlined", "body-outlined", "bold", "bookmark-outlined", "box-check-outlined", "box-outlined", "bullet-points", "cake-outlined", "calendar-dates-outlined", "calendar-star-outlined", "camera-outlined", "cancel", "checkmark", "circle-add-outlined", "circle-cancel-outlined", "circle-down-outlined", "circle-info-outlined", "circle-left-outlined", "circle-ok-outlined", "circle-question-outlined", "circle-remove-outlined", "circle-right-outlined", "circle-up-outlined", "circle-warning-outlined", "clock-2-outlined", "clock-outlined", "cog-outlined", "coin-outlined", "comment-outlined", "contacts-outlined", "credit-card-outlined", "direction-arrows-outlined", "directory-outlined", "document-outlined", "dollar-coin-shine-outlined", "dollar-sign", "double-buildings-outlined", "double-left-arrows", "double-right-arrows", "download-outlined", "edit-template-outlined", "email-outlined", "enter-arrow", "envelope-outlined", "expense-outlined", "external-link", "eye-invisible-outlined", "eye-outlined", "face-id", "face-meh-outlined", "face-open-smiley-outlined", "face-sad-outlined", "face-smiley-outlined", "feed-outlined", "file-certified-outlined", "file-clone-outlined", "file-copy-outlined", "file-dispose-outlined", "file-download-outlined", "file-export-outlined", "file-lock-outlined", "file-outlined", "file-search-outlined", "file-secured-outlined", "file-verified-outlined", "folder-outlined", "folder-user-outlined", "funnel-filter-outline", "graph-outlined", "happy-sun-outlined", "health-bag-outlined", "heart-outlined", "home-outlined", "image-outlined", "import-outlined", "instapay-outlined", "italic", "link-1", "link-2", "list-outlined", "location-outlined", "lock-outlined", "locked-file-outlined", "log-out", "media-content-outlined", "menu-close", "menu-expand", "menu-fold-outlined", "menu-unfold-outlined", "moneybag-outlined", "moon-outlined", "more-horizontal", "more-vertical", "multiple-folders-outlined", "multiple-users-outlined", "node-outlined", "number-points", "number", "payment-summary-outlined", "payslip-outlined", "pencil-outlined", "percentage", "phone-outlined", "piggy-bank-outlined", "plane-outlined", "play-circle-outlined", "print-outlined", "qr-code-outlined", "re-assign", "redeem", "refresh", "remove", "reply-outlined", "restart", "return-arrow", "rostering-outlined", "save-outlined", "schedule-outlined", "search-outlined", "send-outlined", "share-1", "share-2", "single-down-arrow", "single-left-arrow", "single-right-arrow", "single-up-arrow", "speaker-outlined", "star-outlined", "stopwatch-outlined", "strikethrough", "suitcase-outlined", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "transfer", "trash-bin-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-circle-outlined", "user-outlined", "user-rectangle-outlined", "video-1-outlined", "video-2-outlined", "wallet-outlined"];
1
+ declare const IconList: readonly ["activate", "add-person", "adjustment", "alignment", "bank", "bell", "billing", "bookmark", "box-check", "box", "buildings", "cake", "calendar-clock", "calendar", "candy-box-menu", "carat-down-small", "carat-down", "carat-left", "carat-right", "carat-up", "circle-add", "circle-cancel", "circle-check", "circle-down", "circle-info", "circle-left", "circle-ok", "circle-pencil", "circle-question", "circle-remove", "circle-right", "circle-up", "circle-warning", "clock", "cloud-download", "cloud-upload", "cog", "coin", "contacts", "credit-card", "diamond", "direction-arrows", "directory", "document", "dollar-coin-shine", "double-buildings", "edit-template", "envelope", "expense", "eye-circle", "eye-invisible", "eye", "face-meh", "face-sad", "face-smiley", "feed", "feedbacks", "file-certified", "file-clone", "file-copy", "file-csv", "file-dispose", "file-doc", "file-excel", "file-export", "file-lock", "file-pdf", "file-powerpoint", "file-search", "file-secured", "file-sheets", "file-slide", "file-verified", "file-word", "file", "folder-user", "folder", "funnel-filter", "global-dollar", "globe", "graduation-cap", "graph", "happy-sun", "health-bag", "heart", "home", "image", "import", "incident-siren", "instapay", "list", "loading", "loading-2", "location", "lock", "media-content", "menu", "moneybag", "moon", "multiple-stars", "multiple-users", "node", "open-folder", "paperclip", "payment-summary", "pencil", "phone", "piggy-bank", "plane", "play-circle", "print", "raising-hands", "reply", "reschedule", "rostering", "save", "schedule", "search-person", "send", "speaker", "star-medal", "star", "steps-circle", "stopwatch", "suitcase", "survey", "swag", "switch", "tag", "target", "teams", "timesheet", "touch-id", "trash-bin", "unlock", "user", "video-1", "video-2", "activate-outlined", "add-person-outlined", "add-section-outlined", "add-time-outlined", "add", "adjustment-outlined", "alignment-2-outlined", "alignment-outlined", "all-caps", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "at-sign", "bell-outlined", "billing-outlined", "body-outlined", "bold", "bookmark-outlined", "box-check-outlined", "box-outlined", "bullet-points", "cake-outlined", "calendar-dates-outlined", "calendar-star-outlined", "camera-outlined", "cancel", "checkmark", "circle-add-outlined", "circle-cancel-outlined", "circle-down-outlined", "circle-info-outlined", "circle-left-outlined", "circle-ok-outlined", "circle-question-outlined", "circle-remove-outlined", "circle-right-outlined", "circle-up-outlined", "circle-warning-outlined", "clock-2-outlined", "clock-outlined", "cog-outlined", "coin-outlined", "comment-outlined", "contacts-outlined", "credit-card-outlined", "direction-arrows-outlined", "directory-outlined", "document-outlined", "dollar-coin-shine-outlined", "dollar-sign", "double-buildings-outlined", "double-left-arrows", "double-right-arrows", "download-outlined", "edit-template-outlined", "email-outlined", "enter-arrow", "envelope-outlined", "expense-outlined", "external-link", "eye-invisible-outlined", "eye-outlined", "face-id", "face-meh-outlined", "face-open-smiley-outlined", "face-sad-outlined", "face-smiley-outlined", "feed-outlined", "file-certified-outlined", "file-clone-outlined", "file-copy-outlined", "file-dispose-outlined", "file-download-outlined", "file-export-outlined", "file-lock-outlined", "file-outlined", "file-search-outlined", "file-secured-outlined", "file-verified-outlined", "folder-outlined", "folder-user-outlined", "funnel-filter-outline", "graph-outlined", "happy-sun-outlined", "health-bag-outlined", "heart-outlined", "home-outlined", "image-outlined", "import-outlined", "instapay-outlined", "italic", "link-1", "link-2", "list-outlined", "location-outlined", "lock-outlined", "locked-file-outlined", "log-out", "media-content-outlined", "menu-close", "menu-expand", "menu-fold-outlined", "menu-unfold-outlined", "moneybag-outlined", "moon-outlined", "more-horizontal", "more-vertical", "multiple-folders-outlined", "multiple-users-outlined", "node-outlined", "number-points", "number", "payment-summary-outlined", "payslip-outlined", "pencil-outlined", "percentage", "phone-outlined", "piggy-bank-outlined", "plane-outlined", "play-circle-outlined", "print-outlined", "qr-code-outlined", "re-assign", "redeem", "refresh", "remove", "reply-outlined", "restart", "return-arrow", "rostering-outlined", "save-outlined", "schedule-outlined", "search-outlined", "send-outlined", "share-1", "share-2", "single-down-arrow", "single-left-arrow", "single-right-arrow", "single-up-arrow", "speaker-outlined", "star-outlined", "stopwatch-outlined", "strikethrough", "suitcase-outlined", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "transfer", "trash-bin-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-circle-outlined", "user-outlined", "user-rectangle-outlined", "video-1-outlined", "video-2-outlined", "wallet-outlined", "warning"];
2
2
  export default IconList;
@@ -1,2 +1,2 @@
1
- declare const isHeroIcon: (x: any) => x is "number" | "image" | "menu" | "switch" | "list" | "bold" | "activate" | "add-person" | "adjustment" | "alignment" | "bank" | "bell" | "billing" | "bookmark" | "box-check" | "box" | "buildings" | "cake" | "calendar-clock" | "calendar" | "candy-box-menu" | "carat-down-small" | "carat-down" | "carat-left" | "carat-right" | "carat-up" | "circle-add" | "circle-cancel" | "circle-check" | "circle-down" | "circle-info" | "circle-left" | "circle-ok" | "circle-pencil" | "circle-question" | "circle-remove" | "circle-right" | "circle-up" | "circle-warning" | "clock" | "cloud-download" | "cloud-upload" | "cog" | "coin" | "contacts" | "credit-card" | "diamond" | "direction-arrows" | "directory" | "document" | "dollar-coin-shine" | "double-buildings" | "edit-template" | "envelope" | "expense" | "eye-circle" | "eye-invisible" | "eye" | "face-meh" | "face-sad" | "face-smiley" | "feed" | "feedbacks" | "file-certified" | "file-clone" | "file-copy" | "file-csv" | "file-dispose" | "file-doc" | "file-excel" | "file-export" | "file-lock" | "file-pdf" | "file-powerpoint" | "file-search" | "file-secured" | "file-sheets" | "file-slide" | "file-verified" | "file-word" | "file" | "folder-user" | "folder" | "funnel-filter" | "global-dollar" | "globe" | "graduation-cap" | "graph" | "happy-sun" | "health-bag" | "heart" | "home" | "import" | "incident-siren" | "instapay" | "loading" | "loading-2" | "location" | "lock" | "media-content" | "moneybag" | "moon" | "multiple-stars" | "multiple-users" | "node" | "open-folder" | "paperclip" | "payment-summary" | "pencil" | "phone" | "piggy-bank" | "plane" | "play-circle" | "print" | "raising-hands" | "reply" | "reschedule" | "rostering" | "save" | "schedule" | "search-person" | "send" | "speaker" | "star-medal" | "star" | "steps-circle" | "stopwatch" | "suitcase" | "survey" | "tag" | "target" | "teams" | "timesheet" | "touch-id" | "trash-bin" | "unlock" | "user" | "video-1" | "video-2" | "activate-outlined" | "add-person-outlined" | "add-section-outlined" | "add-time-outlined" | "add" | "adjustment-outlined" | "alignment-2-outlined" | "alignment-outlined" | "all-caps" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "at-sign" | "bell-outlined" | "billing-outlined" | "body-outlined" | "bookmark-outlined" | "box-check-outlined" | "box-outlined" | "bullet-points" | "cake-outlined" | "calendar-dates-outlined" | "calendar-star-outlined" | "camera-outlined" | "cancel" | "checkmark" | "circle-add-outlined" | "circle-cancel-outlined" | "circle-down-outlined" | "circle-info-outlined" | "circle-left-outlined" | "circle-ok-outlined" | "circle-question-outlined" | "circle-remove-outlined" | "circle-right-outlined" | "circle-up-outlined" | "circle-warning-outlined" | "clock-2-outlined" | "clock-outlined" | "cog-outlined" | "coin-outlined" | "comment-outlined" | "contacts-outlined" | "credit-card-outlined" | "direction-arrows-outlined" | "directory-outlined" | "document-outlined" | "dollar-coin-shine-outlined" | "dollar-sign" | "double-buildings-outlined" | "double-left-arrows" | "double-right-arrows" | "download-outlined" | "edit-template-outlined" | "email-outlined" | "enter-arrow" | "envelope-outlined" | "expense-outlined" | "external-link" | "eye-invisible-outlined" | "eye-outlined" | "face-id" | "face-meh-outlined" | "face-open-smiley-outlined" | "face-sad-outlined" | "face-smiley-outlined" | "feed-outlined" | "file-certified-outlined" | "file-clone-outlined" | "file-copy-outlined" | "file-dispose-outlined" | "file-download-outlined" | "file-export-outlined" | "file-lock-outlined" | "file-outlined" | "file-search-outlined" | "file-secured-outlined" | "file-verified-outlined" | "folder-outlined" | "folder-user-outlined" | "funnel-filter-outline" | "graph-outlined" | "happy-sun-outlined" | "health-bag-outlined" | "heart-outlined" | "home-outlined" | "image-outlined" | "import-outlined" | "instapay-outlined" | "italic" | "link-1" | "link-2" | "list-outlined" | "location-outlined" | "lock-outlined" | "locked-file-outlined" | "log-out" | "media-content-outlined" | "menu-close" | "menu-expand" | "menu-fold-outlined" | "menu-unfold-outlined" | "moneybag-outlined" | "moon-outlined" | "more-horizontal" | "more-vertical" | "multiple-folders-outlined" | "multiple-users-outlined" | "node-outlined" | "number-points" | "payment-summary-outlined" | "payslip-outlined" | "pencil-outlined" | "percentage" | "phone-outlined" | "piggy-bank-outlined" | "plane-outlined" | "play-circle-outlined" | "print-outlined" | "qr-code-outlined" | "re-assign" | "redeem" | "refresh" | "remove" | "reply-outlined" | "restart" | "return-arrow" | "rostering-outlined" | "save-outlined" | "schedule-outlined" | "search-outlined" | "send-outlined" | "share-1" | "share-2" | "single-down-arrow" | "single-left-arrow" | "single-right-arrow" | "single-up-arrow" | "speaker-outlined" | "star-outlined" | "stopwatch-outlined" | "strikethrough" | "suitcase-outlined" | "survey-outlined" | "switch-outlined" | "sync" | "target-outlined" | "timesheet-outlined" | "transfer" | "trash-bin-outlined" | "unavailable" | "underline" | "unlock-outlined" | "upload-outlined" | "user-circle-outlined" | "user-outlined" | "user-rectangle-outlined" | "video-1-outlined" | "video-2-outlined" | "wallet-outlined";
1
+ declare const isHeroIcon: (x: any) => x is "number" | "activate" | "add-person" | "adjustment" | "alignment" | "bank" | "bell" | "billing" | "bookmark" | "box-check" | "box" | "buildings" | "cake" | "calendar-clock" | "calendar" | "candy-box-menu" | "carat-down-small" | "carat-down" | "carat-left" | "carat-right" | "carat-up" | "circle-add" | "circle-cancel" | "circle-check" | "circle-down" | "circle-info" | "circle-left" | "circle-ok" | "circle-pencil" | "circle-question" | "circle-remove" | "circle-right" | "circle-up" | "circle-warning" | "clock" | "cloud-download" | "cloud-upload" | "cog" | "coin" | "contacts" | "credit-card" | "diamond" | "direction-arrows" | "directory" | "document" | "dollar-coin-shine" | "double-buildings" | "edit-template" | "envelope" | "expense" | "eye-circle" | "eye-invisible" | "eye" | "face-meh" | "face-sad" | "face-smiley" | "feed" | "feedbacks" | "file-certified" | "file-clone" | "file-copy" | "file-csv" | "file-dispose" | "file-doc" | "file-excel" | "file-export" | "file-lock" | "file-pdf" | "file-powerpoint" | "file-search" | "file-secured" | "file-sheets" | "file-slide" | "file-verified" | "file-word" | "file" | "folder-user" | "folder" | "funnel-filter" | "global-dollar" | "globe" | "graduation-cap" | "graph" | "happy-sun" | "health-bag" | "heart" | "home" | "image" | "import" | "incident-siren" | "instapay" | "list" | "loading" | "loading-2" | "location" | "lock" | "media-content" | "menu" | "moneybag" | "moon" | "multiple-stars" | "multiple-users" | "node" | "open-folder" | "paperclip" | "payment-summary" | "pencil" | "phone" | "piggy-bank" | "plane" | "play-circle" | "print" | "raising-hands" | "reply" | "reschedule" | "rostering" | "save" | "schedule" | "search-person" | "send" | "speaker" | "star-medal" | "star" | "steps-circle" | "stopwatch" | "suitcase" | "survey" | "swag" | "switch" | "tag" | "target" | "teams" | "timesheet" | "touch-id" | "trash-bin" | "unlock" | "user" | "video-1" | "video-2" | "activate-outlined" | "add-person-outlined" | "add-section-outlined" | "add-time-outlined" | "add" | "adjustment-outlined" | "alignment-2-outlined" | "alignment-outlined" | "all-caps" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "at-sign" | "bell-outlined" | "billing-outlined" | "body-outlined" | "bold" | "bookmark-outlined" | "box-check-outlined" | "box-outlined" | "bullet-points" | "cake-outlined" | "calendar-dates-outlined" | "calendar-star-outlined" | "camera-outlined" | "cancel" | "checkmark" | "circle-add-outlined" | "circle-cancel-outlined" | "circle-down-outlined" | "circle-info-outlined" | "circle-left-outlined" | "circle-ok-outlined" | "circle-question-outlined" | "circle-remove-outlined" | "circle-right-outlined" | "circle-up-outlined" | "circle-warning-outlined" | "clock-2-outlined" | "clock-outlined" | "cog-outlined" | "coin-outlined" | "comment-outlined" | "contacts-outlined" | "credit-card-outlined" | "direction-arrows-outlined" | "directory-outlined" | "document-outlined" | "dollar-coin-shine-outlined" | "dollar-sign" | "double-buildings-outlined" | "double-left-arrows" | "double-right-arrows" | "download-outlined" | "edit-template-outlined" | "email-outlined" | "enter-arrow" | "envelope-outlined" | "expense-outlined" | "external-link" | "eye-invisible-outlined" | "eye-outlined" | "face-id" | "face-meh-outlined" | "face-open-smiley-outlined" | "face-sad-outlined" | "face-smiley-outlined" | "feed-outlined" | "file-certified-outlined" | "file-clone-outlined" | "file-copy-outlined" | "file-dispose-outlined" | "file-download-outlined" | "file-export-outlined" | "file-lock-outlined" | "file-outlined" | "file-search-outlined" | "file-secured-outlined" | "file-verified-outlined" | "folder-outlined" | "folder-user-outlined" | "funnel-filter-outline" | "graph-outlined" | "happy-sun-outlined" | "health-bag-outlined" | "heart-outlined" | "home-outlined" | "image-outlined" | "import-outlined" | "instapay-outlined" | "italic" | "link-1" | "link-2" | "list-outlined" | "location-outlined" | "lock-outlined" | "locked-file-outlined" | "log-out" | "media-content-outlined" | "menu-close" | "menu-expand" | "menu-fold-outlined" | "menu-unfold-outlined" | "moneybag-outlined" | "moon-outlined" | "more-horizontal" | "more-vertical" | "multiple-folders-outlined" | "multiple-users-outlined" | "node-outlined" | "number-points" | "payment-summary-outlined" | "payslip-outlined" | "pencil-outlined" | "percentage" | "phone-outlined" | "piggy-bank-outlined" | "plane-outlined" | "play-circle-outlined" | "print-outlined" | "qr-code-outlined" | "re-assign" | "redeem" | "refresh" | "remove" | "reply-outlined" | "restart" | "return-arrow" | "rostering-outlined" | "save-outlined" | "schedule-outlined" | "search-outlined" | "send-outlined" | "share-1" | "share-2" | "single-down-arrow" | "single-left-arrow" | "single-right-arrow" | "single-up-arrow" | "speaker-outlined" | "star-outlined" | "stopwatch-outlined" | "strikethrough" | "suitcase-outlined" | "survey-outlined" | "switch-outlined" | "sync" | "target-outlined" | "timesheet-outlined" | "transfer" | "trash-bin-outlined" | "unavailable" | "underline" | "unlock-outlined" | "upload-outlined" | "user-circle-outlined" | "user-outlined" | "user-rectangle-outlined" | "video-1-outlined" | "video-2-outlined" | "wallet-outlined" | "warning";
2
2
  export { isHeroIcon };
package/types/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ThemeProvider, useTheme } from '@emotion/react';
2
2
  import theme, { getTheme } from './theme';
3
3
  import { scale } from './utils/scale';
4
+ import Alert from './components/Alert';
4
5
  import Avatar from './components/Avatar';
5
6
  import Badge from './components/Badge';
6
7
  import BottomNavigation from './components/BottomNavigation';
@@ -21,5 +22,5 @@ import Tabs from './components/Tabs';
21
22
  import Tag from './components/Tag';
22
23
  import TextInput from './components/TextInput';
23
24
  import Typography from './components/Typography';
24
- export { theme, getTheme, useTheme, scale, ThemeProvider, Avatar, Badge, BottomNavigation, BottomSheet, Button, Card, Collapse, ContentNavigator, Divider, Drawer, FAB, Icon, Progress, Spinner, Radio, SectionHeading, Tabs, Tag, TextInput, Typography, };
25
+ export { theme, getTheme, useTheme, scale, ThemeProvider, Alert, Avatar, Badge, BottomNavigation, BottomSheet, Button, Card, Collapse, ContentNavigator, Divider, Drawer, FAB, Icon, Progress, Spinner, Radio, SectionHeading, Tabs, Tag, TextInput, Typography, };
25
26
  export * from './types';
@@ -0,0 +1,23 @@
1
+ import { GlobalTheme } from '../global';
2
+ declare const getAlertTheme: (theme: GlobalTheme) => {
3
+ colors: {
4
+ success: string;
5
+ warning: string;
6
+ error: string;
7
+ info: string;
8
+ divider: string;
9
+ };
10
+ radii: {
11
+ default: number;
12
+ };
13
+ sizes: {
14
+ height: number;
15
+ };
16
+ space: {
17
+ padding: number;
18
+ };
19
+ borderWidths: {
20
+ base: number;
21
+ };
22
+ };
23
+ export default getAlertTheme;
@@ -6,6 +6,7 @@ declare const systemPalette: {
6
6
  secondary: string;
7
7
  secondaryLight: string;
8
8
  info: string;
9
+ infoMediumLight: string;
9
10
  infoLight: string;
10
11
  infoBackground: string;
11
12
  success: string;
@@ -9,6 +9,7 @@ declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
9
9
  secondary: string;
10
10
  secondaryLight: string;
11
11
  info: string;
12
+ infoMediumLight: string;
12
13
  infoLight: string;
13
14
  infoBackground: string;
14
15
  success: string;
@@ -1,4 +1,5 @@
1
1
  import { GlobalTheme, Scale, SystemPalette } from './global';
2
+ import getAlertTheme from './components/alert';
2
3
  import getAvatarTheme from './components/avatar';
3
4
  import getBadgeTheme from './components/badge';
4
5
  import getBottomNavigationTheme from './components/bottomNavigation';
@@ -19,6 +20,7 @@ import getTextInputTheme from './components/textInput';
19
20
  import getTypographyTheme from './components/typography';
20
21
  declare type Theme = GlobalTheme & {
21
22
  __hd__: {
23
+ alert: ReturnType<typeof getAlertTheme>;
22
24
  avatar: ReturnType<typeof getAvatarTheme>;
23
25
  badge: ReturnType<typeof getBadgeTheme>;
24
26
  bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
@@ -1,2 +0,0 @@
1
- @hero-design/rn:build:types: cache hit, replaying output 87e4ecd1c5f30b61
2
- @hero-design/rn:build:types: $ tsc --noEmit false --emitDeclarationOnly
@@ -1,131 +0,0 @@
1
- @hero-design/rn:test: cache hit, replaying output ae9c37bec6e0aef7
2
- @hero-design/rn:test: $ jest --runInBand
3
- @hero-design/rn:test: watchman warning: Recrawled this watch 11 times, most recently because:
4
- @hero-design/rn:test: MustScanSubDirs UserDroppedTo resolve, please review the information on
5
- @hero-design/rn:test: https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
6
- @hero-design/rn:test: To clear this warning, run:
7
- @hero-design/rn:test: `watchman watch-del '/Users/hieupham/Documents/workspace/EH/hero-design' ; watchman watch-project '/Users/hieupham/Documents/workspace/EH/hero-design'`
8
- @hero-design/rn:test: 
9
- @hero-design/rn:test: Browserslist: caniuse-lite is outdated. Please run:
10
- @hero-design/rn:test:  npx browserslist@latest --update-db
11
- @hero-design/rn:test:  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
12
- @hero-design/rn:test: PASS src/components/Button/__tests__/StyledButton.spec.tsx
13
- @hero-design/rn:test: PASS src/components/BottomNavigation/__tests__/index.spec.tsx
14
- @hero-design/rn:test: PASS src/components/Button/__tests__/AnimatedLoadingIndicator.spec.tsx
15
- @hero-design/rn:test: PASS src/components/Button/__tests__/Button.spec.tsx
16
- @hero-design/rn:test: PASS src/components/FAB/ActionGroup/__tests__/index.spec.tsx
17
- @hero-design/rn:test:  ● Console
18
- @hero-design/rn:test: 
19
- @hero-design/rn:test:  console.error
20
- @hero-design/rn:test:  Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
21
- @hero-design/rn:test: 
22
- @hero-design/rn:test:  Check the render method of `emotion(Icon)`.
23
- @hero-design/rn:test:  at Icon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/Icon/index.tsx:32:3)
24
- @hero-design/rn:test:  at /Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/@emotion/primitives-core/dist/emotion-primitives-core.cjs.dev.js:208:45
25
- @hero-design/rn:test:  at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
26
- @hero-design/rn:test:  at AnimatedComponentWrapper
27
- @hero-design/rn:test:  at View
28
- @hero-design/rn:test:  at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
29
- @hero-design/rn:test:  at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
30
- @hero-design/rn:test:  at AnimatedComponentWrapper
31
- @hero-design/rn:test:  at AnimatedFABIcon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/AnimatedFABIcon.tsx:12:28)
32
- @hero-design/rn:test:  at View
33
- @hero-design/rn:test:  at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
34
- @hero-design/rn:test:  at TouchableHighlight (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js:45:34)
35
- @hero-design/rn:test:  at TouchableHighlight
36
- @hero-design/rn:test:  at /Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/@emotion/primitives-core/dist/emotion-primitives-core.cjs.dev.js:208:45
37
- @hero-design/rn:test:  at FAB (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/FAB.tsx:35:16)
38
- @hero-design/rn:test:  at /Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/@emotion/primitives-core/dist/emotion-primitives-core.cjs.dev.js:208:45
39
- @hero-design/rn:test:  at View
40
- @hero-design/rn:test:  at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
41
- @hero-design/rn:test:  at /Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/@emotion/primitives-core/dist/emotion-primitives-core.cjs.dev.js:208:45
42
- @hero-design/rn:test:  at ActionGroup (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/ActionGroup/index.tsx:54:3)
43
- @hero-design/rn:test:  at ThemeProvider (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/@emotion/react/dist/emotion-element-ae8cc4ba.cjs.dev.js:126:21)
44
- @hero-design/rn:test: 
45
- @hero-design/rn:test:  at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
46
- @hero-design/rn:test:  at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
47
- @hero-design/rn:test:  at validateFunctionComponentInDev (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8846:9)
48
- @hero-design/rn:test:  at mountIndeterminateComponent (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8813:7)
49
- @hero-design/rn:test:  at beginWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:9966:16)
50
- @hero-design/rn:test:  at performUnitOfWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13800:12)
51
- @hero-design/rn:test:  at workLoopSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13728:5)
52
- @hero-design/rn:test:  at renderRootSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13691:7)
53
- @hero-design/rn:test: 
54
- @hero-design/rn:test: PASS src/components/Tabs/__tests__/index.spec.tsx
55
- @hero-design/rn:test: PASS src/components/Divider/__tests__/StyledDivider.spec.tsx
56
- @hero-design/rn:test: PASS src/components/Typography/Text/__tests__/StyledText.spec.tsx
57
- @hero-design/rn:test: PASS src/components/FAB/__tests__/index.spec.tsx
58
- @hero-design/rn:test:  ● Console
59
- @hero-design/rn:test: 
60
- @hero-design/rn:test:  console.error
61
- @hero-design/rn:test:  Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
62
- @hero-design/rn:test: 
63
- @hero-design/rn:test:  Check the render method of `emotion(Icon)`.
64
- @hero-design/rn:test:  at Icon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/Icon/index.tsx:32:3)
65
- @hero-design/rn:test:  at /Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/@emotion/primitives-core/dist/emotion-primitives-core.cjs.dev.js:208:45
66
- @hero-design/rn:test:  at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
67
- @hero-design/rn:test:  at AnimatedComponentWrapper
68
- @hero-design/rn:test:  at View
69
- @hero-design/rn:test:  at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
70
- @hero-design/rn:test:  at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
71
- @hero-design/rn:test:  at AnimatedComponentWrapper
72
- @hero-design/rn:test:  at AnimatedFABIcon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/AnimatedFABIcon.tsx:12:28)
73
- @hero-design/rn:test:  at View
74
- @hero-design/rn:test:  at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
75
- @hero-design/rn:test:  at TouchableHighlight (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js:45:34)
76
- @hero-design/rn:test:  at TouchableHighlight
77
- @hero-design/rn:test:  at /Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/@emotion/primitives-core/dist/emotion-primitives-core.cjs.dev.js:208:45
78
- @hero-design/rn:test:  at FAB (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/FAB.tsx:35:16)
79
- @hero-design/rn:test:  at ThemeProvider (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/@emotion/react/dist/emotion-element-ae8cc4ba.cjs.dev.js:126:21)
80
- @hero-design/rn:test: 
81
- @hero-design/rn:test:  at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
82
- @hero-design/rn:test:  at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
83
- @hero-design/rn:test:  at validateFunctionComponentInDev (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8846:9)
84
- @hero-design/rn:test:  at mountIndeterminateComponent (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8813:7)
85
- @hero-design/rn:test:  at beginWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:9966:16)
86
- @hero-design/rn:test:  at performUnitOfWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13800:12)
87
- @hero-design/rn:test:  at workLoopSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13728:5)
88
- @hero-design/rn:test:  at renderRootSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13691:7)
89
- @hero-design/rn:test: 
90
- @hero-design/rn:test: PASS src/components/Badge/__tests__/Badge.spec.tsx
91
- @hero-design/rn:test: PASS src/components/FAB/__tests__/AnimatedFABIcon.spec.tsx
92
- @hero-design/rn:test:  ● Console
93
- @hero-design/rn:test: 
94
- @hero-design/rn:test:  console.error
95
- @hero-design/rn:test:  Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
96
- @hero-design/rn:test: 
97
- @hero-design/rn:test:  Check the render method of `emotion(Icon)`.
98
- @hero-design/rn:test:  at Icon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/Icon/index.tsx:32:3)
99
- @hero-design/rn:test:  at /Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/@emotion/primitives-core/dist/emotion-primitives-core.cjs.dev.js:208:45
100
- @hero-design/rn:test:  at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
101
- @hero-design/rn:test:  at AnimatedComponentWrapper
102
- @hero-design/rn:test:  at View
103
- @hero-design/rn:test:  at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
104
- @hero-design/rn:test:  at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
105
- @hero-design/rn:test:  at AnimatedComponentWrapper
106
- @hero-design/rn:test:  at AnimatedFABIcon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/AnimatedFABIcon.tsx:12:28)
107
- @hero-design/rn:test:  at ThemeProvider (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/@emotion/react/dist/emotion-element-ae8cc4ba.cjs.dev.js:126:21)
108
- @hero-design/rn:test: 
109
- @hero-design/rn:test:  at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
110
- @hero-design/rn:test:  at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
111
- @hero-design/rn:test:  at validateFunctionComponentInDev (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8846:9)
112
- @hero-design/rn:test:  at mountIndeterminateComponent (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8813:7)
113
- @hero-design/rn:test:  at beginWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:9966:16)
114
- @hero-design/rn:test:  at performUnitOfWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13800:12)
115
- @hero-design/rn:test:  at workLoopSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13728:5)
116
- @hero-design/rn:test:  at renderRootSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13691:7)
117
- @hero-design/rn:test: 
118
- @hero-design/rn:test: PASS src/components/Card/__tests__/index.spec.tsx
119
- @hero-design/rn:test: PASS src/components/FAB/__tests__/StyledFAB.spec.tsx
120
- @hero-design/rn:test: PASS src/components/Icon/__tests__/index.spec.tsx
121
- @hero-design/rn:test: PASS src/components/Button/__tests__/IconButton.spec.tsx
122
- @hero-design/rn:test: PASS src/components/Card/__tests__/StyledCard.spec.tsx
123
- @hero-design/rn:test: PASS src/components/Typography/Text/__tests__/index.spec.tsx
124
- @hero-design/rn:test: PASS src/utils/__tests__/scale.spec.ts
125
- @hero-design/rn:test: PASS src/theme/__tests__/index.spec.ts
126
- @hero-design/rn:test: 
127
- @hero-design/rn:test: Test Suites: 19 passed, 19 total
128
- @hero-design/rn:test: Tests: 116 passed, 116 total
129
- @hero-design/rn:test: Snapshots: 95 passed, 95 total
130
- @hero-design/rn:test: Time: 7.275 s, estimated 12 s
131
- @hero-design/rn:test: Ran all test suites.
@@ -1,7 +0,0 @@
1
- @hero-design/rn:type-check: cache hit, replaying output e749c5e1e8e3a5af
2
- @hero-design/rn:type-check: warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
3
- @hero-design/rn:type-check: $ tsc --noEmit --w
4
- @hero-design/rn:type-check: c10:47:37 AM - Starting compilation in watch mode...
5
- @hero-design/rn:type-check: 
6
- @hero-design/rn:type-check: 
7
- @hero-design/rn:type-check: 10:47:39 AM - Found 0 errors. Watching for file changes.