@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.
- package/.turbo/turbo-build.log +2 -2
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +4117 -3926
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +4111 -3919
- package/package.json +2 -2
- package/playground/package.json +3 -3
- package/playground/src/Alert.tsx +80 -0
- package/playground/src/App.tsx +6 -0
- package/playground/src/MultipleThemes.tsx +34 -0
- package/src/components/Alert/StyledAlert.tsx +48 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +686 -0
- package/src/components/Alert/__tests__/index.spec.tsx +83 -0
- package/src/components/Alert/index.tsx +109 -0
- package/src/components/Icon/HeroIcon/selection.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +22 -0
- package/src/theme/components/alert.ts +32 -0
- package/src/theme/global/colors.ts +1 -0
- package/src/theme/index.ts +3 -0
- package/types/{src/components/Progress/StyledProgressCircle.d.ts → components/Alert/StyledAlert.d.ts} +13 -14
- package/types/{src/components/Avatar → components/Alert}/__tests__/index.spec.d.ts +0 -0
- package/types/components/Alert/index.d.ts +42 -0
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/theme/components/alert.d.ts +23 -0
- package/types/theme/global/colors.d.ts +1 -0
- package/types/theme/global/index.d.ts +1 -0
- package/types/theme/index.d.ts +2 -0
- package/.turbo/turbo-build:types.log +0 -2
- package/.turbo/turbo-test.log +0 -131
- package/.turbo/turbo-type-check.log +0 -7
- package/playground/src/Button.tsx~origin_master +0 -170
- package/types/playground/components/Avatar.d.ts +0 -2
- package/types/playground/components/Badge.d.ts +0 -2
- package/types/playground/components/BottomNavigation.d.ts +0 -2
- package/types/playground/components/Button.d.ts +0 -2
- package/types/playground/components/Card.d.ts +0 -2
- package/types/playground/components/Collapse.d.ts +0 -2
- package/types/playground/components/Divider.d.ts +0 -2
- package/types/playground/components/Drawer.d.ts +0 -2
- package/types/playground/components/FAB.d.ts +0 -2
- package/types/playground/components/Icon.d.ts +0 -2
- package/types/playground/components/IconButton.d.ts +0 -2
- package/types/playground/components/Progress.d.ts +0 -2
- package/types/playground/components/Tabs.d.ts +0 -2
- package/types/playground/components/Tag.d.ts +0 -2
- package/types/playground/components/Typography.d.ts +0 -2
- package/types/playground/index.d.ts +0 -2
- package/types/src/components/Avatar/StyledAvatar.d.ts +0 -46
- package/types/src/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -1
- package/types/src/components/Avatar/index.d.ts +0 -25
- package/types/src/components/Badge/Status.d.ts +0 -24
- package/types/src/components/Badge/StyledBadge.d.ts +0 -28
- package/types/src/components/Badge/__tests__/Badge.spec.d.ts +0 -1
- package/types/src/components/Badge/__tests__/Status.spec.d.ts +0 -1
- package/types/src/components/Badge/index.d.ts +0 -32
- package/types/src/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
- package/types/src/components/BottomNavigation/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/BottomNavigation/index.d.ts +0 -45
- package/types/src/components/Button/Button.d.ts +0 -57
- package/types/src/components/Button/IconButton.d.ts +0 -34
- package/types/src/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -20
- package/types/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -1
- package/types/src/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/Button/LoadingIndicator/index.d.ts +0 -26
- package/types/src/components/Button/StyledButton.d.ts +0 -40
- package/types/src/components/Button/__tests__/Button.spec.d.ts +0 -1
- package/types/src/components/Button/__tests__/IconButton.spec.d.ts +0 -1
- package/types/src/components/Button/__tests__/StyledButton.spec.d.ts +0 -1
- package/types/src/components/Button/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/Button/index.d.ts +0 -8
- package/types/src/components/Card/StyledCard.d.ts +0 -17
- package/types/src/components/Card/__tests__/StyledCard.spec.d.ts +0 -1
- package/types/src/components/Card/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/Card/index.d.ts +0 -22
- package/types/src/components/Collapse/StyledCollapse.d.ts +0 -15
- package/types/src/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -1
- package/types/src/components/Collapse/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/Collapse/index.d.ts +0 -23
- package/types/src/components/Divider/StyledDivider.d.ts +0 -13
- package/types/src/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -1
- package/types/src/components/Divider/index.d.ts +0 -21
- package/types/src/components/Drawer/StyledDrawer.d.ts +0 -25
- package/types/src/components/Drawer/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/Drawer/index.d.ts +0 -25
- package/types/src/components/FAB/ActionGroup/ActionItem.d.ts +0 -12
- package/types/src/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -30
- package/types/src/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -13
- package/types/src/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/FAB/ActionGroup/index.d.ts +0 -34
- package/types/src/components/FAB/AnimatedFABIcon.d.ts +0 -6
- package/types/src/components/FAB/FAB.d.ts +0 -34
- package/types/src/components/FAB/StyledFAB.d.ts +0 -20
- package/types/src/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -1
- package/types/src/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -1
- package/types/src/components/FAB/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/FAB/index.d.ts +0 -4
- package/types/src/components/Icon/HeroIcon/index.d.ts +0 -13
- package/types/src/components/Icon/IconList.d.ts +0 -2
- package/types/src/components/Icon/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/Icon/index.d.ts +0 -27
- package/types/src/components/Icon/utils.d.ts +0 -2
- package/types/src/components/Progress/ProgressBar.d.ts +0 -18
- package/types/src/components/Progress/ProgressCircle.d.ts +0 -18
- package/types/src/components/Progress/StyledProgressBar.d.ts +0 -18
- package/types/src/components/Progress/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/Progress/index.d.ts +0 -5
- package/types/src/components/Progress/types.d.ts +0 -1
- package/types/src/components/Tabs/ActiveTabIndicator.d.ts +0 -8
- package/types/src/components/Tabs/ScrollableTabs.d.ts +0 -3
- package/types/src/components/Tabs/StyledScrollableTabs.d.ts +0 -61
- package/types/src/components/Tabs/StyledTabs.d.ts +0 -55
- package/types/src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -1
- package/types/src/components/Tabs/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/Tabs/index.d.ts +0 -54
- package/types/src/components/Tabs/utils.d.ts +0 -2
- package/types/src/components/Tag/StyledTag.d.ts +0 -20
- package/types/src/components/Tag/__tests__/Tag.spec.d.ts +0 -1
- package/types/src/components/Tag/index.d.ts +0 -21
- package/types/src/components/Typography/Text/StyledText.d.ts +0 -13
- package/types/src/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -1
- package/types/src/components/Typography/Text/__tests__/index.spec.d.ts +0 -1
- package/types/src/components/Typography/Text/index.d.ts +0 -30
- package/types/src/components/Typography/index.d.ts +0 -6
- package/types/src/index.d.ts +0 -19
- package/types/src/testHelpers/renderWithTheme.d.ts +0 -3
- package/types/src/theme/__tests__/index.spec.d.ts +0 -1
- package/types/src/theme/components/avatar.d.ts +0 -32
- package/types/src/theme/components/badge.d.ts +0 -29
- package/types/src/theme/components/bottomNavigation.d.ts +0 -23
- package/types/src/theme/components/button.d.ts +0 -37
- package/types/src/theme/components/card.d.ts +0 -10
- package/types/src/theme/components/divider.d.ts +0 -17
- package/types/src/theme/components/drawer.d.ts +0 -21
- package/types/src/theme/components/fab.d.ts +0 -51
- package/types/src/theme/components/icon.d.ts +0 -19
- package/types/src/theme/components/progress.d.ts +0 -21
- package/types/src/theme/components/tabs.d.ts +0 -27
- package/types/src/theme/components/tag.d.ts +0 -30
- package/types/src/theme/components/typography.d.ts +0 -26
- package/types/src/theme/global/borders.d.ts +0 -11
- package/types/src/theme/global/colors.d.ts +0 -31
- package/types/src/theme/global/index.d.ts +0 -41
- package/types/src/theme/global/scale.d.ts +0 -9
- package/types/src/theme/global/space.d.ts +0 -13
- package/types/src/theme/global/typography.d.ts +0 -21
- package/types/src/theme/index.d.ts +0 -35
- package/types/src/types.d.ts +0 -5
- package/types/src/utils/__tests__/scale.spec.d.ts +0 -1
- package/types/src/utils/helpers.d.ts +0 -2
- package/types/src/utils/hooks.d.ts +0 -1
- 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,
|
package/src/theme/index.ts
CHANGED
|
@@ -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
|
-
|
|
2
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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<
|
|
35
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
37
36
|
}>;
|
|
38
|
-
export {
|
|
37
|
+
export { Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, };
|
|
File without changes
|
|
@@ -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" | "
|
|
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;
|
package/types/theme/index.d.ts
CHANGED
|
@@ -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>;
|
package/.turbo/turbo-test.log
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
[32m@hero-design/rn:test[0m: cache hit, replaying output [2mae9c37bec6e0aef7[0m
|
|
2
|
-
[32m@hero-design/rn:test: [0m$ jest --runInBand
|
|
3
|
-
[32m@hero-design/rn:test: [0mwatchman warning: Recrawled this watch 11 times, most recently because:
|
|
4
|
-
[32m@hero-design/rn:test: [0mMustScanSubDirs UserDroppedTo resolve, please review the information on
|
|
5
|
-
[32m@hero-design/rn:test: [0mhttps://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
|
|
6
|
-
[32m@hero-design/rn:test: [0mTo clear this warning, run:
|
|
7
|
-
[32m@hero-design/rn:test: [0m`watchman watch-del '/Users/hieupham/Documents/workspace/EH/hero-design' ; watchman watch-project '/Users/hieupham/Documents/workspace/EH/hero-design'`
|
|
8
|
-
[32m@hero-design/rn:test: [0m
|
|
9
|
-
[32m@hero-design/rn:test: [0mBrowserslist: caniuse-lite is outdated. Please run:
|
|
10
|
-
[32m@hero-design/rn:test: [0m npx browserslist@latest --update-db
|
|
11
|
-
[32m@hero-design/rn:test: [0m Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
|
|
12
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Button/__tests__/StyledButton.spec.tsx
|
|
13
|
-
[32m@hero-design/rn:test: [0mPASS src/components/BottomNavigation/__tests__/index.spec.tsx
|
|
14
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Button/__tests__/AnimatedLoadingIndicator.spec.tsx
|
|
15
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Button/__tests__/Button.spec.tsx
|
|
16
|
-
[32m@hero-design/rn:test: [0mPASS src/components/FAB/ActionGroup/__tests__/index.spec.tsx
|
|
17
|
-
[32m@hero-design/rn:test: [0m ● Console
|
|
18
|
-
[32m@hero-design/rn:test: [0m
|
|
19
|
-
[32m@hero-design/rn:test: [0m console.error
|
|
20
|
-
[32m@hero-design/rn:test: [0m Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
|
|
21
|
-
[32m@hero-design/rn:test: [0m
|
|
22
|
-
[32m@hero-design/rn:test: [0m Check the render method of `emotion(Icon)`.
|
|
23
|
-
[32m@hero-design/rn:test: [0m at Icon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/Icon/index.tsx:32:3)
|
|
24
|
-
[32m@hero-design/rn:test: [0m 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
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
|
|
26
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponentWrapper
|
|
27
|
-
[32m@hero-design/rn:test: [0m at View
|
|
28
|
-
[32m@hero-design/rn:test: [0m at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
|
|
29
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
|
|
30
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponentWrapper
|
|
31
|
-
[32m@hero-design/rn:test: [0m at AnimatedFABIcon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/AnimatedFABIcon.tsx:12:28)
|
|
32
|
-
[32m@hero-design/rn:test: [0m at View
|
|
33
|
-
[32m@hero-design/rn:test: [0m at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
|
|
34
|
-
[32m@hero-design/rn:test: [0m at TouchableHighlight (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js:45:34)
|
|
35
|
-
[32m@hero-design/rn:test: [0m at TouchableHighlight
|
|
36
|
-
[32m@hero-design/rn:test: [0m 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
|
-
[32m@hero-design/rn:test: [0m at FAB (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/FAB.tsx:35:16)
|
|
38
|
-
[32m@hero-design/rn:test: [0m 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
|
-
[32m@hero-design/rn:test: [0m at View
|
|
40
|
-
[32m@hero-design/rn:test: [0m at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
|
|
41
|
-
[32m@hero-design/rn:test: [0m 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
|
-
[32m@hero-design/rn:test: [0m at ActionGroup (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/ActionGroup/index.tsx:54:3)
|
|
43
|
-
[32m@hero-design/rn:test: [0m 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
|
-
[32m@hero-design/rn:test: [0m
|
|
45
|
-
[32m@hero-design/rn:test: [0m at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
|
|
46
|
-
[32m@hero-design/rn:test: [0m at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
|
|
47
|
-
[32m@hero-design/rn:test: [0m at validateFunctionComponentInDev (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8846:9)
|
|
48
|
-
[32m@hero-design/rn:test: [0m at mountIndeterminateComponent (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8813:7)
|
|
49
|
-
[32m@hero-design/rn:test: [0m at beginWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:9966:16)
|
|
50
|
-
[32m@hero-design/rn:test: [0m at performUnitOfWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13800:12)
|
|
51
|
-
[32m@hero-design/rn:test: [0m at workLoopSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13728:5)
|
|
52
|
-
[32m@hero-design/rn:test: [0m at renderRootSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13691:7)
|
|
53
|
-
[32m@hero-design/rn:test: [0m
|
|
54
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Tabs/__tests__/index.spec.tsx
|
|
55
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Divider/__tests__/StyledDivider.spec.tsx
|
|
56
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Typography/Text/__tests__/StyledText.spec.tsx
|
|
57
|
-
[32m@hero-design/rn:test: [0mPASS src/components/FAB/__tests__/index.spec.tsx
|
|
58
|
-
[32m@hero-design/rn:test: [0m ● Console
|
|
59
|
-
[32m@hero-design/rn:test: [0m
|
|
60
|
-
[32m@hero-design/rn:test: [0m console.error
|
|
61
|
-
[32m@hero-design/rn:test: [0m Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
|
|
62
|
-
[32m@hero-design/rn:test: [0m
|
|
63
|
-
[32m@hero-design/rn:test: [0m Check the render method of `emotion(Icon)`.
|
|
64
|
-
[32m@hero-design/rn:test: [0m at Icon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/Icon/index.tsx:32:3)
|
|
65
|
-
[32m@hero-design/rn:test: [0m 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
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
|
|
67
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponentWrapper
|
|
68
|
-
[32m@hero-design/rn:test: [0m at View
|
|
69
|
-
[32m@hero-design/rn:test: [0m at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
|
|
70
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
|
|
71
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponentWrapper
|
|
72
|
-
[32m@hero-design/rn:test: [0m at AnimatedFABIcon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/AnimatedFABIcon.tsx:12:28)
|
|
73
|
-
[32m@hero-design/rn:test: [0m at View
|
|
74
|
-
[32m@hero-design/rn:test: [0m at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
|
|
75
|
-
[32m@hero-design/rn:test: [0m at TouchableHighlight (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js:45:34)
|
|
76
|
-
[32m@hero-design/rn:test: [0m at TouchableHighlight
|
|
77
|
-
[32m@hero-design/rn:test: [0m 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
|
-
[32m@hero-design/rn:test: [0m at FAB (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/FAB.tsx:35:16)
|
|
79
|
-
[32m@hero-design/rn:test: [0m 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
|
-
[32m@hero-design/rn:test: [0m
|
|
81
|
-
[32m@hero-design/rn:test: [0m at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
|
|
82
|
-
[32m@hero-design/rn:test: [0m at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
|
|
83
|
-
[32m@hero-design/rn:test: [0m at validateFunctionComponentInDev (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8846:9)
|
|
84
|
-
[32m@hero-design/rn:test: [0m at mountIndeterminateComponent (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8813:7)
|
|
85
|
-
[32m@hero-design/rn:test: [0m at beginWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:9966:16)
|
|
86
|
-
[32m@hero-design/rn:test: [0m at performUnitOfWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13800:12)
|
|
87
|
-
[32m@hero-design/rn:test: [0m at workLoopSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13728:5)
|
|
88
|
-
[32m@hero-design/rn:test: [0m at renderRootSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13691:7)
|
|
89
|
-
[32m@hero-design/rn:test: [0m
|
|
90
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Badge/__tests__/Badge.spec.tsx
|
|
91
|
-
[32m@hero-design/rn:test: [0mPASS src/components/FAB/__tests__/AnimatedFABIcon.spec.tsx
|
|
92
|
-
[32m@hero-design/rn:test: [0m ● Console
|
|
93
|
-
[32m@hero-design/rn:test: [0m
|
|
94
|
-
[32m@hero-design/rn:test: [0m console.error
|
|
95
|
-
[32m@hero-design/rn:test: [0m Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
|
|
96
|
-
[32m@hero-design/rn:test: [0m
|
|
97
|
-
[32m@hero-design/rn:test: [0m Check the render method of `emotion(Icon)`.
|
|
98
|
-
[32m@hero-design/rn:test: [0m at Icon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/Icon/index.tsx:32:3)
|
|
99
|
-
[32m@hero-design/rn:test: [0m 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
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
|
|
101
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponentWrapper
|
|
102
|
-
[32m@hero-design/rn:test: [0m at View
|
|
103
|
-
[32m@hero-design/rn:test: [0m at Component (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/jest/mockComponent.js:28:18)
|
|
104
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponent (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js:47:43)
|
|
105
|
-
[32m@hero-design/rn:test: [0m at AnimatedComponentWrapper
|
|
106
|
-
[32m@hero-design/rn:test: [0m at AnimatedFABIcon (/Users/hieupham/Documents/workspace/EH/hero-design/packages/rn/src/components/FAB/AnimatedFABIcon.tsx:12:28)
|
|
107
|
-
[32m@hero-design/rn:test: [0m 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
|
-
[32m@hero-design/rn:test: [0m
|
|
109
|
-
[32m@hero-design/rn:test: [0m at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
|
|
110
|
-
[32m@hero-design/rn:test: [0m at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
|
|
111
|
-
[32m@hero-design/rn:test: [0m at validateFunctionComponentInDev (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8846:9)
|
|
112
|
-
[32m@hero-design/rn:test: [0m at mountIndeterminateComponent (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8813:7)
|
|
113
|
-
[32m@hero-design/rn:test: [0m at beginWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:9966:16)
|
|
114
|
-
[32m@hero-design/rn:test: [0m at performUnitOfWork (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13800:12)
|
|
115
|
-
[32m@hero-design/rn:test: [0m at workLoopSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13728:5)
|
|
116
|
-
[32m@hero-design/rn:test: [0m at renderRootSync (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13691:7)
|
|
117
|
-
[32m@hero-design/rn:test: [0m
|
|
118
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Card/__tests__/index.spec.tsx
|
|
119
|
-
[32m@hero-design/rn:test: [0mPASS src/components/FAB/__tests__/StyledFAB.spec.tsx
|
|
120
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Icon/__tests__/index.spec.tsx
|
|
121
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Button/__tests__/IconButton.spec.tsx
|
|
122
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Card/__tests__/StyledCard.spec.tsx
|
|
123
|
-
[32m@hero-design/rn:test: [0mPASS src/components/Typography/Text/__tests__/index.spec.tsx
|
|
124
|
-
[32m@hero-design/rn:test: [0mPASS src/utils/__tests__/scale.spec.ts
|
|
125
|
-
[32m@hero-design/rn:test: [0mPASS src/theme/__tests__/index.spec.ts
|
|
126
|
-
[32m@hero-design/rn:test: [0m
|
|
127
|
-
[32m@hero-design/rn:test: [0mTest Suites: 19 passed, 19 total
|
|
128
|
-
[32m@hero-design/rn:test: [0mTests: 116 passed, 116 total
|
|
129
|
-
[32m@hero-design/rn:test: [0mSnapshots: 95 passed, 95 total
|
|
130
|
-
[32m@hero-design/rn:test: [0mTime: 7.275 s, estimated 12 s
|
|
131
|
-
[32m@hero-design/rn:test: [0mRan all test suites.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
[33m@hero-design/rn:type-check[0m: cache hit, replaying output [2me749c5e1e8e3a5af[0m
|
|
2
|
-
[33m@hero-design/rn:type-check: [0mwarning 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
|
-
[33m@hero-design/rn:type-check: [0m$ tsc --noEmit --w
|
|
4
|
-
[33m@hero-design/rn:type-check: [0mc10:47:37 AM - Starting compilation in watch mode...
|
|
5
|
-
[33m@hero-design/rn:type-check: [0m
|
|
6
|
-
[33m@hero-design/rn:type-check: [0m
|
|
7
|
-
[33m@hero-design/rn:type-check: [0m10:47:39 AM - Found 0 errors. Watching for file changes.
|