@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
@@ -1,61 +0,0 @@
1
- /// <reference types="react" />
2
- import { Animated, View } from 'react-native';
3
- import PagerView from 'react-native-pager-view';
4
- declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
7
- }, {}, {
8
- ref?: import("react").Ref<View> | undefined;
9
- }>;
10
- declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
- theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
13
- }, {}, {
14
- ref?: import("react").Ref<View> | undefined;
15
- }>;
16
- declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native-pager-view").PagerViewProps & {
17
- theme?: import("@emotion/react").Theme | undefined;
18
- as?: import("react").ElementType<any> | undefined;
19
- }, {}, {
20
- ref?: import("react").Ref<PagerView> | undefined;
21
- }>;
22
- declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
23
- theme?: import("@emotion/react").Theme | undefined;
24
- as?: import("react").ElementType<any> | undefined;
25
- } & {
26
- themeInsets: {
27
- top: number;
28
- right: number;
29
- bottom: number;
30
- left: number;
31
- };
32
- }, {}, {
33
- ref?: import("react").Ref<View> | undefined;
34
- }>;
35
- declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
36
- children?: import("react").ReactNode;
37
- } & {
38
- theme?: import("@emotion/react").Theme | undefined;
39
- as?: import("react").ElementType<any> | undefined;
40
- }, {}, {}>;
41
- declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
42
- theme?: import("@emotion/react").Theme | undefined;
43
- as?: import("react").ElementType<any> | undefined;
44
- }, {}, {
45
- ref?: import("react").Ref<View> | undefined;
46
- }>;
47
- declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
48
- children?: import("react").ReactNode;
49
- } & {
50
- theme?: import("@emotion/react").Theme | undefined;
51
- as?: import("react").ElementType<any> | undefined;
52
- } & {
53
- themeActive: boolean;
54
- }, {}, {}>;
55
- declare const HeaderTabItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
56
- theme?: import("@emotion/react").Theme | undefined;
57
- as?: import("react").ElementType<any> | undefined;
58
- }, {}, {
59
- ref?: import("react").Ref<View> | undefined;
60
- }>;
61
- export { HeaderTabItem, TabScreen, TabContainer, HeaderTabWrapper, ContentWrapper, HeaderTabItemOutlineWrapper, HeaderTabItemOutline, HeaderTabItemWrapper, };
@@ -1,55 +0,0 @@
1
- /// <reference types="react" />
2
- import { Animated, View } from 'react-native';
3
- import PagerView from 'react-native-pager-view';
4
- declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
7
- }, {}, {
8
- ref?: import("react").Ref<View> | undefined;
9
- }>;
10
- declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
- theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
13
- } & {
14
- themeInsets: {
15
- top: number;
16
- right: number;
17
- bottom: number;
18
- left: number;
19
- };
20
- }, {}, {
21
- ref?: import("react").Ref<View> | undefined;
22
- }>;
23
- declare const HeaderTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
24
- theme?: import("@emotion/react").Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
26
- }, {}, {
27
- ref?: import("react").Ref<View> | undefined;
28
- }>;
29
- declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
30
- theme?: import("@emotion/react").Theme | undefined;
31
- as?: import("react").ElementType<any> | undefined;
32
- }, {}, {
33
- ref?: import("react").Ref<View> | undefined;
34
- }>;
35
- declare const ContentWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-pager-view").PagerViewProps & import("react").RefAttributes<PagerView>> & {
36
- children?: import("react").ReactNode;
37
- } & {
38
- theme?: import("@emotion/react").Theme | undefined;
39
- as?: import("react").ElementType<any> | undefined;
40
- }, {}, {}>;
41
- declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
42
- theme?: import("@emotion/react").Theme | undefined;
43
- as?: import("react").ElementType<any> | undefined;
44
- }, {}, {
45
- ref?: import("react").Ref<View> | undefined;
46
- }>;
47
- declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
48
- children?: import("react").ReactNode;
49
- } & {
50
- theme?: import("@emotion/react").Theme | undefined;
51
- as?: import("react").ElementType<any> | undefined;
52
- } & {
53
- themeWidth: number;
54
- }, {}, {}>;
55
- export { TabContainer, HeaderTabWrapper, HeaderTab, HeaderTabItem, ContentWrapper, TabScreen, StyledIndicator, };
@@ -1 +0,0 @@
1
- export {};
@@ -1,54 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
- import { IconName } from '../Icon';
4
- export declare type ItemType = string | IconName | ((props: {
5
- color: string;
6
- }) => ReactNode);
7
- export declare type TabType = {
8
- key: string;
9
- activeItem: ItemType;
10
- inactiveItem?: ItemType;
11
- component: ReactNode;
12
- testID?: string;
13
- showBadge?: boolean;
14
- };
15
- export interface TabsProps extends ViewProps {
16
- /**
17
- * Callback which is called on tab press, receiving key of upcoming active Tab.
18
- */
19
- onTabPress: (key: string) => void;
20
- /**
21
- * Current selected tab key.
22
- */
23
- selectedTabKey: string;
24
- /**
25
- * List of Tabs to be rendered. Each Tab must have an unique key.
26
- */
27
- tabs: TabType[];
28
- /**
29
- * Style for the container of Tab.
30
- */
31
- containerStyle?: StyleProp<ViewStyle>;
32
- /**
33
- * Style for the tab navigation bar.
34
- */
35
- barStyle?: StyleProp<ViewStyle>;
36
- /**
37
- * Whether inactive screen should be removed and unmounted in React.
38
- * Defaults value is `false`.
39
- */
40
- lazy?: boolean;
41
- /**
42
- * Only work when lazy is `true`. You can specify how many adjacent screens should be preloaded.
43
- * Defaults value is `1`.
44
- */
45
- lazyPreloadDistance?: number;
46
- /**
47
- * Testing id of the component.
48
- */
49
- testID?: string;
50
- }
51
- declare const _default: (({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: TabsProps) => JSX.Element) & {
52
- Scroll: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: TabsProps) => JSX.Element;
53
- };
54
- export default _default;
@@ -1,2 +0,0 @@
1
- import { Animated } from 'react-native';
2
- export declare const useAnimatedValueArray: (initialValues: number[]) => Animated.Value[];
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import { View, Text } from 'react-native';
3
- declare type ThemeIntent = 'success' | 'warning' | 'danger' | 'info';
4
- declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
7
- } & {
8
- themeIntent: ThemeIntent;
9
- }, {}, {
10
- ref?: import("react").Ref<View> | undefined;
11
- }>;
12
- declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
13
- theme?: import("@emotion/react").Theme | undefined;
14
- as?: import("react").ElementType<any> | undefined;
15
- } & {
16
- themeIntent: ThemeIntent;
17
- }, {}, {
18
- ref?: import("react").Ref<Text> | undefined;
19
- }>;
20
- export { StyledView, StyledText };
@@ -1 +0,0 @@
1
- export {};
@@ -1,21 +0,0 @@
1
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
2
- interface TagProps extends ViewProps {
3
- /**
4
- * Content of the Tag.
5
- */
6
- content: string;
7
- /**
8
- * Visual intent color to apply to Tag.
9
- */
10
- intent?: 'success' | 'warning' | 'danger' | 'info';
11
- /**
12
- * Additional style.
13
- */
14
- style?: StyleProp<ViewStyle>;
15
- /**
16
- * Testing id of the component.
17
- */
18
- testID?: string;
19
- }
20
- declare const Tag: ({ content, intent, style, testID, ...nativeProps }: TagProps) => JSX.Element;
21
- export default Tag;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { Text } from 'react-native';
3
- declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
4
- theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
6
- } & {
7
- themeFontSize: 'small' | 'medium' | 'large' | 'xlarge';
8
- themeFontWeight: 'light' | 'regular' | 'semi-bold';
9
- themeIntent: 'body' | 'subdued' | 'primary';
10
- }, {}, {
11
- ref?: import("react").Ref<Text> | undefined;
12
- }>;
13
- export { StyledText };
@@ -1,30 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
3
- export interface TextProps extends NativeTextProps {
4
- /**
5
- * Text content.
6
- */
7
- children: ReactNode;
8
- /**
9
- * Size of the text.
10
- */
11
- fontSize?: 'small' | 'medium' | 'large' | 'xlarge';
12
- /**
13
- * Font weight of the text.
14
- */
15
- fontWeight?: 'light' | 'regular' | 'semi-bold';
16
- /**
17
- * Visual intent color to apply to the text.
18
- */
19
- intent?: 'body' | 'subdued' | 'primary';
20
- /**
21
- * Addditional style.
22
- */
23
- style?: StyleProp<TextStyle>;
24
- /**
25
- * Testing id of the component.
26
- */
27
- testID?: string;
28
- }
29
- declare const Text: ({ children, fontSize, fontWeight, intent, ...nativeProps }: TextProps) => JSX.Element;
30
- export default Text;
@@ -1,6 +0,0 @@
1
- import Text from './Text';
2
- interface TypographyProps {
3
- Text: typeof Text;
4
- }
5
- declare const Typography: TypographyProps;
6
- export default Typography;
@@ -1,19 +0,0 @@
1
- import { ThemeProvider, useTheme } from '@emotion/react';
2
- import theme, { getTheme } from './theme';
3
- import { scale } from './utils/scale';
4
- import Avatar from './components/Avatar';
5
- import Badge from './components/Badge';
6
- import BottomNavigation from './components/BottomNavigation';
7
- import Button from './components/Button';
8
- import Card from './components/Card';
9
- import Collapse from './components/Collapse';
10
- import Divider from './components/Divider';
11
- import Drawer from './components/Drawer';
12
- import FAB from './components/FAB';
13
- import Icon from './components/Icon';
14
- import Progress from './components/Progress';
15
- import Tabs from './components/Tabs';
16
- import Tag from './components/Tag';
17
- import Typography from './components/Typography';
18
- export { theme, getTheme, useTheme, scale, ThemeProvider, Avatar, Badge, BottomNavigation, Button, Card, Collapse, Divider, Drawer, FAB, Icon, Progress, Tabs, Tag, Typography, };
19
- export * from './types';
@@ -1,3 +0,0 @@
1
- import { RenderOptions } from '@testing-library/react-native';
2
- declare const renderWithTheme: (ui: JSX.Element, options?: RenderOptions | undefined) => import("@testing-library/react-native").RenderAPI;
3
- export default renderWithTheme;
@@ -1 +0,0 @@
1
- export {};
@@ -1,32 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getAvatarTheme: (theme: GlobalTheme) => {
3
- colors: {
4
- primary: string;
5
- info: string;
6
- danger: string;
7
- success: string;
8
- warning: string;
9
- };
10
- sizes: {
11
- small: number;
12
- medium: number;
13
- large: number;
14
- xlarge: number;
15
- };
16
- radii: {
17
- small: number;
18
- medium: number;
19
- large: number;
20
- xlarge: number;
21
- };
22
- borderWidths: {
23
- default: number;
24
- };
25
- fontSizes: {
26
- small: number;
27
- medium: number;
28
- large: number;
29
- xlarge: number;
30
- };
31
- };
32
- export default getAvatarTheme;
@@ -1,29 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getBadgeTheme: (theme: GlobalTheme) => {
3
- colors: {
4
- danger: string;
5
- info: string;
6
- success: string;
7
- warning: string;
8
- archived: string;
9
- text: string;
10
- };
11
- fonts: {
12
- default: string;
13
- };
14
- fontSizes: {
15
- default: number;
16
- };
17
- sizes: {
18
- height: number;
19
- minWidth: number;
20
- statusHeight: number;
21
- statusWidth: number;
22
- };
23
- space: {
24
- horizontalPadding: number;
25
- statusPositionTop: number;
26
- statusPositionRight: number;
27
- };
28
- };
29
- export default getBadgeTheme;
@@ -1,23 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getBottomNavigationTheme: (theme: GlobalTheme) => {
3
- colors: {
4
- shadow: string;
5
- background: string;
6
- };
7
- shadows: {
8
- offset: {
9
- width: number;
10
- height: number;
11
- };
12
- opacity: number;
13
- radius: number;
14
- elevation: number;
15
- };
16
- sizes: {
17
- height: number;
18
- };
19
- space: {
20
- titleMarginTop: number;
21
- };
22
- };
23
- export default getBottomNavigationTheme;
@@ -1,37 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getButtonTheme: (theme: GlobalTheme) => {
3
- borderWidth: {
4
- default: number;
5
- };
6
- fonts: {
7
- default: string;
8
- };
9
- fontSize: {
10
- default: number;
11
- };
12
- sizes: {
13
- iconSize: number;
14
- };
15
- radii: {
16
- default: number;
17
- };
18
- colors: {
19
- primary: string;
20
- pressedPrimary: string;
21
- secondary: string;
22
- pressedSecondary: string;
23
- defaultText: string;
24
- disabledText: string;
25
- disabledBorder: string;
26
- disabledBackground: string;
27
- invertedText: string;
28
- };
29
- lineHeight: {
30
- default: number;
31
- };
32
- space: {
33
- buttonPadding: number;
34
- iconPadding: number;
35
- };
36
- };
37
- export default getButtonTheme;
@@ -1,10 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getCardTheme: (theme: GlobalTheme) => {
3
- colors: {
4
- dataCardIndicator: string;
5
- };
6
- radii: {
7
- default: number;
8
- };
9
- };
10
- export default getCardTheme;
@@ -1,17 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getDividerTheme: (theme: GlobalTheme) => {
3
- colors: {
4
- default: string;
5
- };
6
- space: {
7
- xsmall: number;
8
- small: number;
9
- medium: number;
10
- large: number;
11
- xlarge: number;
12
- };
13
- borderWidths: {
14
- default: number;
15
- };
16
- };
17
- export default getDividerTheme;
@@ -1,21 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getDrawerTheme: (theme: GlobalTheme) => {
3
- colors: {
4
- shadow: string;
5
- background: string;
6
- backdrop: string;
7
- };
8
- radii: {
9
- default: number;
10
- };
11
- shadows: {
12
- offset: {
13
- width: number;
14
- height: number;
15
- };
16
- opacity: number;
17
- radius: number;
18
- elevation: number;
19
- };
20
- };
21
- export default getDrawerTheme;
@@ -1,51 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getFABTheme: (theme: GlobalTheme) => {
3
- radii: {
4
- actionItem: number;
5
- };
6
- fonts: {
7
- header: string;
8
- actionItemText: string;
9
- title: string;
10
- };
11
- fontSizes: {
12
- header: number;
13
- actionItemText: number;
14
- title: number;
15
- };
16
- colors: {
17
- buttonBackground: string;
18
- icon: string;
19
- headerText: string;
20
- actionItemBackground: string;
21
- backdropBackground: string;
22
- titleText: string;
23
- };
24
- sizes: {
25
- width: number;
26
- height: number;
27
- };
28
- lineHeights: {
29
- header: number;
30
- actionItemText: number;
31
- title: number;
32
- icon: number;
33
- };
34
- space: {
35
- actionItemPaddingLeft: number;
36
- actionItemPaddingRight: number;
37
- actionItemPaddingTop: number;
38
- actionItemPaddingBottom: number;
39
- actionItemMargin: number;
40
- actionItemMarginRight: number;
41
- actionItemTextPaddingLeft: number;
42
- buttonMarginTop: number;
43
- buttonMarginRight: number;
44
- headerTextMarginRight: number;
45
- headerTextMarginBottom: number;
46
- containerPaddingHorizontal: number;
47
- containerPaddingVertical: number;
48
- titleMarginHorizontal: number;
49
- };
50
- };
51
- export default getFABTheme;
@@ -1,19 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getIconTheme: (theme: GlobalTheme) => {
3
- colors: {
4
- text: string;
5
- primary: string;
6
- info: string;
7
- danger: string;
8
- success: string;
9
- warning: string;
10
- };
11
- sizes: {
12
- xsmall: number;
13
- small: number;
14
- medium: number;
15
- large: number;
16
- xlarge: number;
17
- };
18
- };
19
- export default getIconTheme;
@@ -1,21 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getProgressTheme: (theme: GlobalTheme) => {
3
- colors: {
4
- primary: string;
5
- success: string;
6
- warning: string;
7
- danger: string;
8
- info: string;
9
- background: string;
10
- innerBackground: string;
11
- };
12
- sizes: {
13
- radius: number;
14
- strokeWidth: number;
15
- barHeight: number;
16
- };
17
- radii: {
18
- default: number;
19
- };
20
- };
21
- export default getProgressTheme;
@@ -1,27 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getTabsTheme: (theme: GlobalTheme) => {
3
- borderWidths: {
4
- headerBottom: number;
5
- };
6
- colors: {
7
- active: string;
8
- inactive: string;
9
- activeBackground: string;
10
- headerBottom: string;
11
- text: string;
12
- };
13
- space: {
14
- flatListHorizontalPadding: number;
15
- itemHorizontalPadding: number;
16
- itemVerticalPadding: number;
17
- outlineHorizontalPadding: number;
18
- outlineVerticalPadding: number;
19
- };
20
- radii: {
21
- outline: number;
22
- };
23
- sizes: {
24
- indicator: number;
25
- };
26
- };
27
- export default getTabsTheme;
@@ -1,30 +0,0 @@
1
- import { GlobalTheme } from '../global';
2
- declare const getTagTheme: (theme: GlobalTheme) => {
3
- borderWidths: {
4
- default: number;
5
- };
6
- colors: {
7
- danger: string;
8
- dangerBackground: string;
9
- info: string;
10
- infoBackground: string;
11
- success: string;
12
- successBackground: string;
13
- warning: string;
14
- warningBackground: string;
15
- };
16
- fonts: {
17
- default: string;
18
- };
19
- fontSizes: {
20
- default: number;
21
- };
22
- space: {
23
- horizontalPadding: number;
24
- verticalPadding: number;
25
- };
26
- radii: {
27
- default: number;
28
- };
29
- };
30
- export default getTagTheme;