@hero-design/rn 7.2.2 → 7.3.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 (244) hide show
  1. package/.expo/packager-info.json +1 -1
  2. package/.expo/prebuild/cached-packages.json +4 -0
  3. package/.expo/xcodebuild-error.log +2 -0
  4. package/.expo/xcodebuild.log +11199 -0
  5. package/.turbo/turbo-build.log +8 -8
  6. package/.turbo/turbo-build:types.log +2 -0
  7. package/.turbo/turbo-test.log +131 -0
  8. package/.turbo/turbo-type-check.log +7 -0
  9. package/es/index.js +2409 -468
  10. package/jest.config.js +1 -1
  11. package/lib/index.js +2430 -484
  12. package/package.json +4 -2
  13. package/playground/components/Avatar.tsx +102 -0
  14. package/playground/components/Badge.tsx +146 -9
  15. package/playground/components/Button.tsx +138 -35
  16. package/playground/components/Card.tsx +36 -1
  17. package/playground/components/Collapse.tsx +99 -0
  18. package/playground/components/Drawer.tsx +32 -0
  19. package/playground/components/FAB.tsx +15 -0
  20. package/playground/components/IconButton.tsx +67 -0
  21. package/playground/components/Progress.tsx +95 -0
  22. package/playground/components/Tabs.tsx +106 -14
  23. package/playground/components/Tag.tsx +45 -0
  24. package/playground/index.tsx +18 -0
  25. package/src/components/Avatar/StyledAvatar.tsx +61 -0
  26. package/src/components/Avatar/__tests__/StyledAvatar.spec.tsx +48 -0
  27. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +87 -0
  28. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +88 -0
  29. package/src/components/Avatar/__tests__/index.spec.tsx +26 -0
  30. package/src/components/Avatar/index.tsx +71 -0
  31. package/src/components/Badge/Status.tsx +77 -0
  32. package/src/components/Badge/StyledBadge.tsx +38 -26
  33. package/src/components/Badge/__tests__/Badge.spec.tsx +16 -0
  34. package/src/components/Badge/__tests__/Status.spec.tsx +27 -0
  35. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +133 -52
  36. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +89 -0
  37. package/src/components/Badge/index.tsx +77 -19
  38. package/src/components/Button/Button.tsx +163 -0
  39. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +58 -0
  40. package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +20 -0
  41. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +101 -0
  42. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +606 -0
  43. package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +24 -0
  44. package/src/components/Button/LoadingIndicator/index.tsx +140 -0
  45. package/src/components/Button/StyledButton.tsx +254 -0
  46. package/src/components/Button/__tests__/Button.spec.tsx +86 -0
  47. package/src/components/Button/__tests__/{index.spec.tsx → IconButton.spec.tsx} +0 -0
  48. package/src/components/Button/__tests__/StyledButton.spec.tsx +154 -0
  49. package/src/components/Button/__tests__/__snapshots__/{index.spec.tsx.snap → IconButton.spec.tsx.snap} +0 -0
  50. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +895 -0
  51. package/src/components/Button/index.tsx +10 -2
  52. package/src/components/Card/StyledCard.tsx +27 -4
  53. package/src/components/Card/__tests__/StyledCard.spec.tsx +15 -3
  54. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +34 -1
  55. package/src/components/Card/__tests__/index.spec.tsx +16 -21
  56. package/src/components/Card/index.tsx +15 -2
  57. package/src/components/Collapse/StyledCollapse.tsx +15 -0
  58. package/src/components/Collapse/__tests__/StyledCollapse.spec.tsx +26 -0
  59. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +37 -0
  60. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +84 -0
  61. package/src/components/Collapse/__tests__/index.spec.tsx +42 -0
  62. package/src/components/Collapse/index.tsx +109 -0
  63. package/src/components/Divider/index.tsx +1 -1
  64. package/src/components/Drawer/StyledDrawer.tsx +39 -0
  65. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +244 -0
  66. package/src/components/Drawer/__tests__/index.spec.tsx +37 -0
  67. package/src/components/Drawer/index.tsx +93 -0
  68. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +78 -62
  69. package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +2 -0
  70. package/src/components/FAB/ActionGroup/index.tsx +13 -0
  71. package/src/components/FAB/FAB.tsx +63 -13
  72. package/src/components/FAB/StyledFAB.tsx +25 -6
  73. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +6 -2
  74. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +7 -3
  75. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +88 -6
  76. package/src/components/FAB/__tests__/index.spec.tsx +16 -0
  77. package/src/components/Progress/ProgressBar.tsx +73 -0
  78. package/src/components/Progress/ProgressCircle.tsx +165 -0
  79. package/src/components/Progress/StyledProgressBar.tsx +21 -0
  80. package/src/components/Progress/StyledProgressCircle.tsx +66 -0
  81. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +641 -0
  82. package/src/components/Progress/__tests__/index.spec.js +46 -0
  83. package/src/components/Progress/index.tsx +6 -0
  84. package/src/components/Progress/types.ts +1 -0
  85. package/src/components/Tabs/ActiveTabIndicator.tsx +37 -0
  86. package/src/components/Tabs/ScrollableTabs.tsx +216 -0
  87. package/src/components/Tabs/StyledScrollableTabs.tsx +60 -0
  88. package/src/components/Tabs/StyledTabs.tsx +30 -44
  89. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +84 -0
  90. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +591 -0
  91. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +317 -224
  92. package/src/components/Tabs/__tests__/index.spec.tsx +22 -21
  93. package/src/components/Tabs/index.tsx +155 -114
  94. package/src/components/Tabs/utils.ts +13 -0
  95. package/src/components/Tag/StyledTag.tsx +35 -0
  96. package/src/components/Tag/__tests__/Tag.spec.tsx +41 -0
  97. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +153 -0
  98. package/src/components/Tag/index.tsx +41 -0
  99. package/src/components/Typography/Text/index.tsx +1 -1
  100. package/src/index.ts +10 -0
  101. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +182 -20
  102. package/src/theme/components/avatar.ts +40 -0
  103. package/src/theme/components/badge.ts +14 -16
  104. package/src/theme/components/button.ts +57 -0
  105. package/src/theme/components/card.ts +8 -2
  106. package/src/theme/components/drawer.ts +24 -0
  107. package/src/theme/components/fab.ts +9 -2
  108. package/src/theme/components/progress.ts +27 -0
  109. package/src/theme/components/tabs.ts +22 -7
  110. package/src/theme/components/tag.ts +39 -0
  111. package/src/theme/global/borders.ts +13 -1
  112. package/src/theme/global/colors.ts +6 -1
  113. package/src/theme/global/index.ts +3 -1
  114. package/src/theme/global/scale.ts +3 -0
  115. package/src/theme/index.ts +16 -1
  116. package/src/utils/hooks.ts +10 -0
  117. package/testUtils/setup.tsx +43 -0
  118. package/types/playground/components/Avatar.d.ts +2 -0
  119. package/types/playground/components/Badge.d.ts +0 -0
  120. package/types/playground/components/BottomNavigation.d.ts +0 -0
  121. package/types/playground/components/Button.d.ts +0 -0
  122. package/types/playground/components/Card.d.ts +0 -0
  123. package/types/playground/components/Collapse.d.ts +2 -0
  124. package/types/playground/components/Divider.d.ts +0 -0
  125. package/types/playground/components/Drawer.d.ts +2 -0
  126. package/types/playground/components/FAB.d.ts +0 -0
  127. package/types/playground/components/Icon.d.ts +0 -0
  128. package/types/playground/components/IconButton.d.ts +2 -0
  129. package/types/playground/components/Progress.d.ts +2 -0
  130. package/types/playground/components/Tabs.d.ts +0 -0
  131. package/types/playground/components/Tag.d.ts +2 -0
  132. package/types/playground/components/Typography.d.ts +0 -0
  133. package/types/playground/index.d.ts +0 -0
  134. package/types/src/components/Avatar/StyledAvatar.d.ts +46 -0
  135. package/types/src/components/{BottomNavigation/__tests__/BottomNavigation.spec.d.ts → Avatar/__tests__/StyledAvatar.spec.d.ts} +0 -0
  136. package/types/src/components/{Card/__tests__/Card.spec.d.ts → Avatar/__tests__/index.spec.d.ts} +0 -0
  137. package/types/src/components/Avatar/index.d.ts +25 -0
  138. package/types/src/components/Badge/Status.d.ts +24 -0
  139. package/types/src/components/Badge/StyledBadge.d.ts +17 -9
  140. package/types/src/components/Badge/__tests__/Badge.spec.d.ts +0 -0
  141. package/types/src/components/{FAB/__tests__/StyledFABContainer.spec.d.ts → Badge/__tests__/Status.spec.d.ts} +0 -0
  142. package/types/src/components/Badge/index.d.ts +17 -7
  143. package/types/src/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  144. package/types/src/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
  145. package/types/src/components/BottomNavigation/index.d.ts +0 -0
  146. package/types/src/components/Button/Button.d.ts +57 -0
  147. package/types/src/components/Button/IconButton.d.ts +0 -0
  148. package/types/src/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +20 -0
  149. package/types/src/components/{FAB/__tests__/StyledFABIcon.spec.d.ts → Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts} +0 -0
  150. package/types/src/components/{Icon/__tests__/Icon.spec.d.ts → Button/LoadingIndicator/__tests__/index.spec.d.ts} +0 -0
  151. package/types/src/components/Button/LoadingIndicator/index.d.ts +26 -0
  152. package/types/src/components/Button/StyledButton.d.ts +40 -0
  153. package/types/src/components/{Tabs/__tests__/Tabs.spec.d.ts → Button/__tests__/Button.spec.d.ts} +0 -0
  154. package/types/src/components/Button/__tests__/IconButton.spec.d.ts +1 -0
  155. package/types/src/components/Button/__tests__/StyledButton.spec.d.ts +1 -0
  156. package/types/src/components/Button/__tests__/index.spec.d.ts +0 -0
  157. package/types/src/components/Button/index.d.ts +8 -4
  158. package/types/src/components/Card/StyledCard.d.ts +9 -1
  159. package/types/src/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
  160. package/types/src/components/Card/__tests__/index.spec.d.ts +0 -0
  161. package/types/src/components/Card/index.d.ts +5 -1
  162. package/types/src/components/Collapse/StyledCollapse.d.ts +15 -0
  163. package/types/src/components/Collapse/__tests__/StyledCollapse.spec.d.ts +1 -0
  164. package/types/src/components/Collapse/__tests__/index.spec.d.ts +1 -0
  165. package/types/src/components/Collapse/index.d.ts +23 -0
  166. package/types/src/components/Divider/StyledDivider.d.ts +0 -0
  167. package/types/src/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
  168. package/types/src/components/Divider/index.d.ts +0 -0
  169. package/types/src/components/Drawer/StyledDrawer.d.ts +25 -0
  170. package/types/src/components/Drawer/__tests__/index.spec.d.ts +1 -0
  171. package/types/src/components/Drawer/index.d.ts +25 -0
  172. package/types/src/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  173. package/types/src/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  174. package/types/src/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  175. package/types/src/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  176. package/types/src/components/FAB/ActionGroup/index.d.ts +5 -1
  177. package/types/src/components/FAB/AnimatedFABIcon.d.ts +0 -0
  178. package/types/src/components/FAB/FAB.d.ts +5 -1
  179. package/types/src/components/FAB/StyledFAB.d.ts +8 -2
  180. package/types/src/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
  181. package/types/src/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
  182. package/types/src/components/FAB/__tests__/index.spec.d.ts +0 -0
  183. package/types/src/components/FAB/index.d.ts +2 -2
  184. package/types/src/components/Icon/HeroIcon/index.d.ts +0 -0
  185. package/types/src/components/Icon/IconList.d.ts +0 -0
  186. package/types/src/components/Icon/__tests__/index.spec.d.ts +0 -0
  187. package/types/src/components/Icon/index.d.ts +0 -0
  188. package/types/src/components/Icon/utils.d.ts +1 -1
  189. package/types/src/components/Progress/ProgressBar.d.ts +18 -0
  190. package/types/src/components/Progress/ProgressCircle.d.ts +18 -0
  191. package/types/src/components/Progress/StyledProgressBar.d.ts +18 -0
  192. package/types/src/components/Progress/StyledProgressCircle.d.ts +38 -0
  193. package/types/src/components/Progress/__tests__/index.spec.d.ts +1 -0
  194. package/types/src/components/Progress/index.d.ts +5 -0
  195. package/types/src/components/Progress/types.d.ts +1 -0
  196. package/types/src/components/Tabs/ActiveTabIndicator.d.ts +8 -0
  197. package/types/src/components/Tabs/ScrollableTabs.d.ts +3 -0
  198. package/types/src/components/Tabs/StyledScrollableTabs.d.ts +61 -0
  199. package/types/src/components/Tabs/StyledTabs.d.ts +22 -22
  200. package/types/src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
  201. package/types/src/components/Tabs/__tests__/index.spec.d.ts +0 -0
  202. package/types/src/components/Tabs/index.d.ts +28 -19
  203. package/types/src/components/Tabs/utils.d.ts +2 -0
  204. package/types/src/components/Tag/StyledTag.d.ts +20 -0
  205. package/types/src/components/Tag/__tests__/Tag.spec.d.ts +1 -0
  206. package/types/src/components/Tag/index.d.ts +21 -0
  207. package/types/src/components/Typography/Text/StyledText.d.ts +0 -0
  208. package/types/src/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
  209. package/types/src/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
  210. package/types/src/components/Typography/Text/index.d.ts +0 -0
  211. package/types/src/components/Typography/index.d.ts +0 -0
  212. package/types/src/index.d.ts +6 -1
  213. package/types/src/testHelpers/renderWithTheme.d.ts +0 -0
  214. package/types/src/theme/__tests__/index.spec.d.ts +0 -0
  215. package/types/src/theme/components/avatar.d.ts +32 -0
  216. package/types/src/theme/components/badge.d.ts +12 -13
  217. package/types/src/theme/components/bottomNavigation.d.ts +0 -0
  218. package/types/src/theme/components/button.d.ts +37 -0
  219. package/types/src/theme/components/card.d.ts +5 -1
  220. package/types/src/theme/components/divider.d.ts +0 -0
  221. package/types/src/theme/components/drawer.d.ts +21 -0
  222. package/types/src/theme/components/fab.d.ts +8 -1
  223. package/types/src/theme/components/icon.d.ts +0 -0
  224. package/types/src/theme/components/progress.d.ts +21 -0
  225. package/types/src/theme/components/tabs.d.ts +14 -2
  226. package/types/src/theme/components/tag.d.ts +30 -0
  227. package/types/src/theme/components/typography.d.ts +0 -0
  228. package/types/src/theme/global/borders.d.ts +7 -1
  229. package/types/src/theme/global/colors.d.ts +6 -1
  230. package/types/src/theme/global/index.d.ts +7 -1
  231. package/types/src/theme/global/scale.d.ts +1 -0
  232. package/types/src/theme/global/space.d.ts +0 -0
  233. package/types/src/theme/global/typography.d.ts +0 -0
  234. package/types/src/theme/index.d.ts +10 -0
  235. package/types/src/types.d.ts +0 -0
  236. package/types/src/utils/__tests__/scale.spec.d.ts +0 -0
  237. package/types/src/utils/helpers.d.ts +0 -0
  238. package/types/src/utils/hooks.d.ts +1 -0
  239. package/types/src/utils/scale.d.ts +0 -0
  240. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +0 -33
  241. package/testUtils/setup.ts +0 -18
  242. package/types/src/components/FAB/StyledFABContainer.d.ts +0 -3
  243. package/types/src/components/FAB/StyledFABIcon.d.ts +0 -3
  244. package/types/src/styled-components.d.ts +0 -6
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { Animated, View } from 'react-native';
3
+ declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
4
+ children?: import("react").ReactNode;
5
+ } & {
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ }, {}, {}>;
9
+ declare const StyledChildWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ }, {}, {
13
+ ref?: import("react").Ref<View> | undefined;
14
+ }>;
15
+ export { StyledWrapper, StyledChildWrapper };
@@ -0,0 +1,23 @@
1
+ import { StyleProp, ViewProps, ViewStyle } from 'react-native';
2
+ import { ReactNode } from 'react';
3
+ interface CollapseProps extends ViewProps {
4
+ children: ReactNode;
5
+ /**
6
+ * Whether the child components will remain mounted when the Collapse is closed.
7
+ */
8
+ keepChildrenMounted?: boolean;
9
+ /**
10
+ * Whether the component is open or closed.
11
+ */
12
+ open?: boolean;
13
+ /**
14
+ * Addditional style.
15
+ */
16
+ style?: StyleProp<ViewStyle>;
17
+ /**
18
+ * Testing id of the component.
19
+ */
20
+ testID?: string;
21
+ }
22
+ declare const Collapse: ({ open, keepChildrenMounted, children, testID, style, }: CollapseProps) => JSX.Element;
23
+ export default Collapse;
File without changes
File without changes
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import { Animated, View } from 'react-native';
3
+ declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
+ } & {
7
+ enableShadow: boolean;
8
+ }, {}, {
9
+ ref?: import("react").Ref<View> | undefined;
10
+ }>;
11
+ declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
12
+ children?: import("react").ReactNode;
13
+ } & {
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ as?: import("react").ElementType<any> | undefined;
16
+ }, {}, {}>;
17
+ declare const StyledDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
18
+ children?: import("react").ReactNode;
19
+ } & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ as?: import("react").ElementType<any> | undefined;
22
+ } & {
23
+ enableShadow: boolean;
24
+ }, {}, {}>;
25
+ export { StyledBackdrop, StyledContainer, StyledDrawerContainer };
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ interface DrawerProps {
3
+ /**
4
+ * Drawer's visibility.
5
+ */
6
+ visible: boolean;
7
+ /**
8
+ * Drawer's content.
9
+ */
10
+ children?: ReactNode;
11
+ /**
12
+ * Enable the drawer's backdrop.
13
+ */
14
+ hasBackdrop?: boolean;
15
+ /**
16
+ * Callback when the drawer is dismissed by interacting outside of the drawer.
17
+ */
18
+ onDismiss?: () => void;
19
+ /**
20
+ * Testing id of the component.
21
+ * */
22
+ testID?: string;
23
+ }
24
+ declare const Drawer: ({ visible, children, hasBackdrop, onDismiss, testID, }: DrawerProps) => JSX.Element;
25
+ export default Drawer;
@@ -13,6 +13,10 @@ export interface ActionGroupProps {
13
13
  * Specify if the FAB button is in active state and the action group is shown.
14
14
  * */
15
15
  active?: boolean;
16
+ /**
17
+ * Title of the floating action button
18
+ */
19
+ fabTitle?: string;
16
20
  /**
17
21
  * Additional style.
18
22
  */
@@ -26,5 +30,5 @@ export interface ActionGroupProps {
26
30
  */
27
31
  testID?: string;
28
32
  }
29
- declare const ActionGroup: ({ headerTitle, onPress, active, style, items, testID, }: ActionGroupProps) => JSX.Element;
33
+ declare const ActionGroup: ({ headerTitle, onPress, active, style, items, testID, fabTitle, }: ActionGroupProps) => JSX.Element;
30
34
  export default ActionGroup;
File without changes
@@ -5,6 +5,10 @@ export interface FABProps {
5
5
  * Name of the Icon.
6
6
  */
7
7
  icon: IconName;
8
+ /**
9
+ * title of the component.
10
+ */
11
+ title?: string;
8
12
  /**
9
13
  * This function is called on pressing the button.
10
14
  */
@@ -26,5 +30,5 @@ export interface FABProps {
26
30
  */
27
31
  testID?: string;
28
32
  }
29
- declare const FAB: ({ onPress, icon, animated, testID, active, style }: FABProps) => JSX.Element;
33
+ declare const FAB: ({ onPress, title, icon, animated, testID, active, style, }: FABProps) => JSX.Element;
30
34
  export default FAB;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TouchableHighlight, TouchableHighlightProps } from 'react-native';
2
+ import { Text, TextProps, TouchableHighlight, TouchableHighlightProps } from 'react-native';
3
3
  import { IconProps } from '../Icon';
4
4
  declare const StyledFABContainer: import("@emotion/native").StyledComponent<TouchableHighlightProps & {
5
5
  theme?: import("@emotion/react").Theme | undefined;
@@ -11,4 +11,10 @@ declare const StyledFABIcon: import("@emotion/native").StyledComponent<IconProps
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
12
  as?: import("react").ElementType<any> | undefined;
13
13
  }, {}, {}>;
14
- export { StyledFABContainer, StyledFABIcon };
14
+ declare const StyledFABText: import("@emotion/native").StyledComponent<TextProps & {
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
+ }, {}, {
18
+ ref?: import("react").Ref<Text> | undefined;
19
+ }>;
20
+ export { StyledFABContainer, StyledFABIcon, StyledFABText };
@@ -1,4 +1,4 @@
1
- declare const _default: (({ onPress, icon, animated, testID, active, style }: import("./FAB").FABProps) => JSX.Element) & {
2
- ActionGroup: ({ headerTitle, onPress, active, style, items, testID, }: import("./ActionGroup").ActionGroupProps) => JSX.Element;
1
+ declare const _default: (({ onPress, title, icon, animated, testID, active, style, }: import("./FAB").FABProps) => JSX.Element) & {
2
+ ActionGroup: ({ headerTitle, onPress, active, style, items, testID, fabTitle, }: import("./ActionGroup").ActionGroupProps) => JSX.Element;
3
3
  };
4
4
  export default _default;
File without changes
File without changes
File without changes
@@ -1,2 +1,2 @@
1
- declare const isHeroIcon: (x: any) => x is "number" | "image" | "menu" | "switch" | "list" | "activate" | "add-person" | "adjustment" | "alignment" | "bank" | "bell" | "billing" | "bookmark" | "box-check" | "box" | "buildings" | "cake" | "calendar-clock" | "calendar" | "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" | "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" | "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" | "survey-outlined" | "switch-outlined" | "sync" | "target-outlined" | "timesheet-outlined" | "transfer" | "trash-bin-outlined" | "unavailable" | "underline" | "unlock-outlined" | "upload-outlined" | "user-outlined" | "video-1-outlined" | "video-2-outlined";
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" | "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" | "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" | "survey-outlined" | "switch-outlined" | "sync" | "target-outlined" | "timesheet-outlined" | "transfer" | "trash-bin-outlined" | "unavailable" | "underline" | "unlock-outlined" | "upload-outlined" | "user-outlined" | "video-1-outlined" | "video-2-outlined";
2
2
  export { isHeroIcon };
@@ -0,0 +1,18 @@
1
+ import { StyleProp, ViewStyle, ViewProps } from 'react-native';
2
+ export interface ProgressBarProps extends ViewProps {
3
+ /**
4
+ * The progress completion percentage: 0-100.
5
+ */
6
+ value: number;
7
+ /**
8
+ * Set intent for your progress.
9
+ */
10
+ intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
11
+ /**
12
+ * Additional style.
13
+ */
14
+ style?: StyleProp<ViewStyle>;
15
+ testID?: string;
16
+ }
17
+ declare const ProgressBar: ({ value, intent, style, testID, ...nativeProps }: ProgressBarProps) => JSX.Element;
18
+ export default ProgressBar;
@@ -0,0 +1,18 @@
1
+ import { ViewProps, StyleProp, ViewStyle } from 'react-native';
2
+ export interface ProgressCircleProps extends ViewProps {
3
+ /**
4
+ * The progress completion percentage: 0-100.
5
+ */
6
+ value: number;
7
+ /**
8
+ * Set intent for your progress.
9
+ */
10
+ intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
11
+ /**
12
+ * Additional style.
13
+ */
14
+ style?: StyleProp<ViewStyle>;
15
+ testID?: string;
16
+ }
17
+ declare const ProgressCircle: ({ value, intent, style, testID, ...nativeProps }: ProgressCircleProps) => JSX.Element;
18
+ export default ProgressCircle;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { Animated, View, ViewProps } from 'react-native';
3
+ import { ThemeIntent } from './types';
4
+ declare const StyledWrapper: import("@emotion/native").StyledComponent<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 StyledInner: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
11
+ children?: import("react").ReactNode;
12
+ } & {
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any> | undefined;
15
+ } & {
16
+ themeIntent: ThemeIntent;
17
+ }, {}, {}>;
18
+ export { StyledWrapper, StyledInner };
@@ -0,0 +1,38 @@
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 & {
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 HalfCircleInnerFG: import("@emotion/native").StyledComponent<ViewProps & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ } & {
14
+ themeIntent: ThemeIntent;
15
+ }, {}, {
16
+ ref?: import("react").Ref<View> | undefined;
17
+ }>;
18
+ declare const HalfCircleInnerBG: import("@emotion/native").StyledComponent<ViewProps & {
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ as?: import("react").ElementType<any> | undefined;
21
+ }, {}, {
22
+ ref?: import("react").Ref<View> | undefined;
23
+ }>;
24
+ declare const DonutCircle: import("@emotion/native").StyledComponent<ViewProps & {
25
+ theme?: import("@emotion/react").Theme | undefined;
26
+ as?: import("react").ElementType<any> | undefined;
27
+ }, {}, {
28
+ ref?: import("react").Ref<View> | undefined;
29
+ }>;
30
+ declare const StrokeEnd: import("@emotion/native").StyledComponent<ViewProps & {
31
+ theme?: import("@emotion/react").Theme | undefined;
32
+ as?: import("react").ElementType<any> | undefined;
33
+ } & {
34
+ themeIntent: ThemeIntent;
35
+ }, {}, {
36
+ ref?: import("react").Ref<View> | undefined;
37
+ }>;
38
+ export { DonutCircle, HalfCircleWrapper, HalfCircleInnerFG, HalfCircleInnerBG, StrokeEnd, };
@@ -0,0 +1,5 @@
1
+ declare const Progress: {
2
+ readonly Circle: ({ value, intent, style, testID, ...nativeProps }: import("./ProgressCircle").ProgressCircleProps) => JSX.Element;
3
+ readonly Bar: ({ value, intent, style, testID, ...nativeProps }: import("./ProgressBar").ProgressBarProps) => JSX.Element;
4
+ };
5
+ export default Progress;
@@ -0,0 +1 @@
1
+ export declare type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info';
@@ -0,0 +1,8 @@
1
+ import { Animated } from 'react-native';
2
+ declare const ActiveTabIndicator: ({ scrollOffsetAnimatedValue, positionAnimatedValue, tabsLength, tabsWidth, }: {
3
+ scrollOffsetAnimatedValue: Animated.Value;
4
+ positionAnimatedValue: Animated.Value;
5
+ tabsLength: number;
6
+ tabsWidth: number;
7
+ }) => JSX.Element;
8
+ export default ActiveTabIndicator;
@@ -0,0 +1,3 @@
1
+ import { TabsProps } from '.';
2
+ declare const ScrollableTab: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: TabsProps) => JSX.Element;
3
+ export default ScrollableTab;
@@ -0,0 +1,61 @@
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,25 +1,12 @@
1
1
  /// <reference types="react" />
2
- import { View, FlatList } from 'react-native';
3
- declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
- theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
6
- } & {
7
- themeVisibility?: boolean | undefined;
8
- }, {}, {
9
- ref?: import("react").Ref<View> | undefined;
10
- }>;
2
+ import { Animated, View } from 'react-native';
3
+ import PagerView from 'react-native-pager-view';
11
4
  declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
12
5
  theme?: import("@emotion/react").Theme | undefined;
13
6
  as?: import("react").ElementType<any> | undefined;
14
7
  }, {}, {
15
8
  ref?: import("react").Ref<View> | undefined;
16
9
  }>;
17
- declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
18
- theme?: import("@emotion/react").Theme | undefined;
19
- as?: import("react").ElementType<any> | undefined;
20
- }, {}, {
21
- ref?: import("react").Ref<View> | undefined;
22
- }>;
23
10
  declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
24
11
  theme?: import("@emotion/react").Theme | undefined;
25
12
  as?: import("react").ElementType<any> | undefined;
@@ -33,23 +20,36 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
33
20
  }, {}, {
34
21
  ref?: import("react").Ref<View> | undefined;
35
22
  }>;
36
- declare const StyledFlatList: new <T>() => FlatList<T>;
37
- declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
23
+ declare const HeaderTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
38
24
  theme?: import("@emotion/react").Theme | undefined;
39
25
  as?: import("react").ElementType<any> | undefined;
40
26
  }, {}, {
41
27
  ref?: import("react").Ref<View> | undefined;
42
28
  }>;
43
- declare const StyledHeaderTabIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
29
+ declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
44
30
  theme?: import("@emotion/react").Theme | undefined;
45
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;
46
37
  } & {
47
- themeActive: boolean;
38
+ theme?: import("@emotion/react").Theme | undefined;
39
+ as?: import("react").ElementType<any> | undefined;
48
40
  }, {}, {}>;
49
- declare const StyledHeaderTabText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
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
50
  theme?: import("@emotion/react").Theme | undefined;
51
51
  as?: import("react").ElementType<any> | undefined;
52
52
  } & {
53
- themeActive: boolean;
53
+ themeWidth: number;
54
54
  }, {}, {}>;
55
- export { StyledFlatList, HeaderTabItem, TabScreen, TabContainer, HeaderTabWrapper, ContentWrapper, StyledHeaderTabIcon, StyledHeaderTabText, };
55
+ export { TabContainer, HeaderTabWrapper, HeaderTab, HeaderTabItem, ContentWrapper, TabScreen, StyledIndicator, };
@@ -1,23 +1,22 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
3
  import { IconName } from '../Icon';
4
+ export declare type ItemType = string | IconName | ((props: {
5
+ color: string;
6
+ }) => ReactNode);
4
7
  export declare type TabType = {
5
8
  key: string;
6
- title: string;
7
- icon: IconName;
9
+ activeItem: ItemType;
10
+ inactiveItem?: ItemType;
8
11
  component: ReactNode;
9
12
  testID?: string;
13
+ showBadge?: boolean;
10
14
  };
11
- interface TabsProps extends ViewProps {
15
+ export interface TabsProps extends ViewProps {
12
16
  /**
13
17
  * Callback which is called on tab press, receiving key of upcoming active Tab.
14
18
  */
15
19
  onTabPress: (key: string) => void;
16
- /**
17
- * Whether inactive tabs should be removed and unmounted in React.
18
- * Defaults to `false`.
19
- */
20
- renderActiveTabOnly?: boolean;
21
20
  /**
22
21
  * Current selected tab key.
23
22
  */
@@ -25,21 +24,31 @@ interface TabsProps extends ViewProps {
25
24
  /**
26
25
  * List of Tabs to be rendered. Each Tab must have an unique key.
27
26
  */
28
- tabs: {
29
- key: string;
30
- title: string;
31
- icon: IconName;
32
- component: ReactNode;
33
- testID?: string;
34
- }[];
27
+ tabs: TabType[];
35
28
  /**
36
- * Addditional style.
29
+ * Style for the container of Tab.
37
30
  */
38
- style?: StyleProp<ViewStyle>;
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;
39
46
  /**
40
47
  * Testing id of the component.
41
48
  */
42
49
  testID?: string;
43
50
  }
44
- declare const Tabs: ({ onTabPress, renderActiveTabOnly, selectedTabKey, tabs, ...nativeProps }: TabsProps) => JSX.Element;
45
- export default Tabs;
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;
@@ -0,0 +1,2 @@
1
+ import { Animated } from 'react-native';
2
+ export declare const useAnimatedValueArray: (initialValues: number[]) => Animated.Value[];
@@ -0,0 +1,20 @@
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 };
@@ -0,0 +1 @@
1
+ export {};