@hero-design/rn 8.98.0 → 8.99.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 (53) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +12 -0
  3. package/babel.config.js +4 -1
  4. package/es/index.js +50 -69
  5. package/lib/index.js +50 -69
  6. package/package.json +39 -19
  7. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +0 -3
  8. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +52 -52
  9. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +87 -87
  10. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  11. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +2 -4
  12. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
  13. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  14. package/src/components/Radio/Radio.tsx +7 -1
  15. package/src/components/Radio/RadioGroup.tsx +1 -0
  16. package/src/components/Radio/__tests__/Radio.spec.tsx +15 -0
  17. package/src/components/Radio/__tests__/RadioGroup.spec.tsx +27 -0
  18. package/src/components/Radio/types.ts +3 -1
  19. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1472 -1496
  20. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +2992 -3040
  21. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1644 -1672
  22. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +2512 -2554
  23. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +6 -6
  24. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +24 -24
  25. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  26. package/src/components/Tabs/ScrollableTabs.tsx +0 -1
  27. package/src/components/Tabs/StyledScrollableTabs.tsx +8 -2
  28. package/src/components/Tabs/index.tsx +0 -1
  29. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +2 -2
  30. package/stats/8.98.1/rn-stats.html +4844 -0
  31. package/stats/8.99.0/rn-stats.html +4842 -0
  32. package/testUtils/setup.tsx +0 -1
  33. package/types/components/Accordion/StyledAccordion.d.ts +3 -5
  34. package/types/components/Alert/StyledAlert.d.ts +3 -5
  35. package/types/components/Attachment/StyledAttachment.d.ts +3 -5
  36. package/types/components/Avatar/StyledAvatar.d.ts +3 -5
  37. package/types/components/BottomSheet/StyledBottomSheet.d.ts +3 -5
  38. package/types/components/Button/StyledButton.d.ts +3 -5
  39. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +3 -5
  40. package/types/components/Calendar/StyledCalendar.d.ts +3 -5
  41. package/types/components/Checkbox/StyledCheckbox.d.ts +3 -5
  42. package/types/components/Chip/StyledChip.d.ts +2 -5
  43. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +2 -5
  44. package/types/components/FAB/StyledFAB.d.ts +2 -2
  45. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +2 -2
  46. package/types/components/List/StyledBasicListItem.d.ts +3 -5
  47. package/types/components/List/StyledListItem.d.ts +3 -5
  48. package/types/components/Radio/Radio.d.ts +6 -1
  49. package/types/components/Radio/types.d.ts +3 -1
  50. package/types/components/RichTextEditor/StyledToolbar.d.ts +3 -5
  51. package/types/components/Swipeable/StyledSwipeable.d.ts +2 -5
  52. package/types/components/Toast/StyledToast.d.ts +3 -5
  53. package/types/components/Toolbar/StyledToolbar.d.ts +3 -5
@@ -29,7 +29,6 @@ jest.mock('../src/utils/scale', () => ({
29
29
  scale: jest.fn((size) => size),
30
30
  }));
31
31
 
32
- jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
33
32
  jest.mock('react-native-pager-view', () => {
34
33
  const RealComponent = jest.requireActual('react-native-pager-view').default;
35
34
  const React = jest.requireActual('react');
@@ -1,4 +1,4 @@
1
- import { TouchableOpacity, View } from 'react-native';
1
+ import { View } from 'react-native';
2
2
  export type Variant = 'default' | 'card';
3
3
  export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
4
  theme?: import("@emotion/react").Theme;
@@ -14,12 +14,10 @@ export declare const StyledItemWrapper: import("@emotion/native").StyledComponen
14
14
  }, {}, {
15
15
  ref?: import("react").Ref<View> | undefined;
16
16
  }>;
17
- export declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
17
+ export declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
18
18
  theme?: import("@emotion/react").Theme;
19
19
  as?: React.ElementType;
20
- }, {}, {
21
- ref?: import("react").Ref<TouchableOpacity> | undefined;
22
- }>;
20
+ }, {}, {}>;
23
21
  export declare const StyledCollapse: import("@emotion/native").StyledComponent<import("../Collapse").CollapseProps & {
24
22
  theme?: import("@emotion/react").Theme;
25
23
  as?: React.ElementType;
@@ -1,4 +1,4 @@
1
- import { TouchableOpacity, View } from 'react-native';
1
+ import { View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  import { TextProps } from '../Typography/Text';
4
4
  import { IconProps } from '../Icon';
@@ -44,10 +44,8 @@ declare const ContentContainer: import("@emotion/native").StyledComponent<ViewPr
44
44
  }, {}, {
45
45
  ref?: import("react").Ref<View> | undefined;
46
46
  }>;
47
- declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
47
+ declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
48
48
  theme?: import("@emotion/react").Theme;
49
49
  as?: React.ElementType;
50
- }, {}, {
51
- ref?: import("react").Ref<TouchableOpacity> | undefined;
52
- }>;
50
+ }, {}, {}>;
53
51
  export { Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, StyledBody, StyledIcon, };
@@ -1,4 +1,4 @@
1
- import { TouchableOpacity, View } from 'react-native';
1
+ import { View } from 'react-native';
2
2
  declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
3
  theme?: import("@emotion/react").Theme;
4
4
  as?: React.ElementType;
@@ -19,10 +19,8 @@ declare const StyledTextContainer: import("@emotion/native").StyledComponent<imp
19
19
  }, {}, {
20
20
  ref?: import("react").Ref<View> | undefined;
21
21
  }>;
22
- declare const StyledCTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
22
+ declare const StyledCTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
23
23
  theme?: import("@emotion/react").Theme;
24
24
  as?: React.ElementType;
25
- }, {}, {
26
- ref?: import("react").Ref<TouchableOpacity> | undefined;
27
- }>;
25
+ }, {}, {}>;
28
26
  export { StyledContainer, StyledContentContainer, StyledCTAWrapper, StyledTextContainer, };
@@ -1,16 +1,14 @@
1
- import { View, Image, TouchableOpacity } from 'react-native';
1
+ import { View, Image } from 'react-native';
2
2
  import { TextProps } from '../Typography/Text';
3
3
  type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
4
4
  type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
5
- declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
5
+ declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
6
6
  theme?: import("@emotion/react").Theme;
7
7
  as?: React.ElementType;
8
8
  } & {
9
9
  themeSize: ThemeSize;
10
10
  themeIntent: ThemeIntent;
11
- }, {}, {
12
- ref?: import("react").Ref<TouchableOpacity> | undefined;
13
- }>;
11
+ }, {}, {}>;
14
12
  declare const StyledTextWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
15
13
  theme?: import("@emotion/react").Theme;
16
14
  as?: React.ElementType;
@@ -1,5 +1,5 @@
1
1
  import type { ViewProps } from 'react-native';
2
- import { Animated, KeyboardAvoidingView, KeyboardAvoidingViewProps, SafeAreaView, TouchableOpacity, View } from 'react-native';
2
+ import { Animated, KeyboardAvoidingView, KeyboardAvoidingViewProps, SafeAreaView, View } from 'react-native';
3
3
  declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
4
4
  theme?: import("@emotion/react").Theme;
5
5
  as?: React.ElementType;
@@ -52,10 +52,8 @@ declare const StyledIconWrapper: import("@emotion/native").StyledComponent<ViewP
52
52
  }, {}, {
53
53
  ref?: import("react").Ref<View> | undefined;
54
54
  }>;
55
- declare const StyledFloatingHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
55
+ declare const StyledFloatingHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
56
56
  theme?: import("@emotion/react").Theme;
57
57
  as?: React.ElementType;
58
- }, {}, {
59
- ref?: import("react").Ref<TouchableOpacity> | undefined;
60
- }>;
58
+ }, {}, {}>;
61
59
  export { StyledBackdrop, StyledBottomSheet, StyledFloatingBottomSheet, StyledFloatingHeaderWrapper, StyledFloatingWrapper, StyledFooter, StyledHeader, StyledHeaderWrapper, StyledIconWrapper, StyledKeyboardAvoidingView, StyledWrapper, };
@@ -1,8 +1,8 @@
1
1
  import type { Theme } from '@emotion/react';
2
- import { TouchableHighlight, View } from 'react-native';
2
+ import { View } from 'react-native';
3
3
  type Intent = 'primary' | 'secondary' | 'danger' | 'white';
4
4
  type ThemeVariant = 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'filled-white' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'outlined-white' | 'text-primary' | 'text-secondary' | 'text-danger' | 'text-white';
5
- declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
5
+ declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & import("react").RefAttributes<View> & {
6
6
  theme?: Theme;
7
7
  as?: React.ElementType;
8
8
  } & {
@@ -11,9 +11,7 @@ declare const StyledButtonContainer: import("@emotion/native").StyledComponent<i
11
11
  loading?: boolean;
12
12
  themeInlineText?: boolean;
13
13
  themeIsCompact?: boolean;
14
- }, {}, {
15
- ref?: import("react").Ref<TouchableHighlight> | undefined;
16
- }>;
14
+ }, {}, {}>;
17
15
  declare const StyledButtonText: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
18
16
  theme?: Theme;
19
17
  as?: React.ElementType;
@@ -1,10 +1,8 @@
1
- import { TouchableOpacity, View } from 'react-native';
2
- export declare const ButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
1
+ import { View } from 'react-native';
2
+ export declare const ButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
3
3
  theme?: import("@emotion/react").Theme;
4
4
  as?: React.ElementType;
5
- }, {}, {
6
- ref?: import("react").Ref<TouchableOpacity> | undefined;
7
- }>;
5
+ }, {}, {}>;
8
6
  export declare const IconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
7
  theme?: import("@emotion/react").Theme;
10
8
  as?: React.ElementType;
@@ -1,4 +1,4 @@
1
- import { TouchableOpacity, View } from 'react-native';
1
+ import { View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
4
4
  theme?: import("@emotion/react").Theme;
@@ -20,15 +20,13 @@ declare const StyledCalendarDayNameCell: import("@emotion/native").StyledCompone
20
20
  }, {}, {
21
21
  ref?: import("react").Ref<View> | undefined;
22
22
  }>;
23
- declare const StyledCalendarCell: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
23
+ declare const StyledCalendarCell: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
24
24
  theme?: import("@emotion/react").Theme;
25
25
  as?: React.ElementType;
26
26
  } & {
27
27
  variant?: "default" | "current" | "selected" | "highlighted";
28
28
  themeItemWidth?: number;
29
- }, {}, {
30
- ref?: import("react").Ref<TouchableOpacity> | undefined;
31
- }>;
29
+ }, {}, {}>;
32
30
  declare const StyledCalendarRow: import("@emotion/native").StyledComponent<ViewProps & {
33
31
  theme?: import("@emotion/react").Theme;
34
32
  as?: React.ElementType;
@@ -1,13 +1,11 @@
1
- import { TouchableOpacity, View } from 'react-native';
1
+ import { View } from 'react-native';
2
2
  type CheckboxThemeState = 'default' | 'checked' | 'disabled' | 'readonly';
3
- export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
3
+ export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
4
4
  theme?: import("@emotion/react").Theme;
5
5
  as?: React.ElementType;
6
6
  } & {
7
7
  themeState: CheckboxThemeState;
8
- }, {}, {
9
- ref?: import("react").Ref<TouchableOpacity> | undefined;
10
- }>;
8
+ }, {}, {}>;
11
9
  export declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
12
10
  theme?: import("@emotion/react").Theme;
13
11
  as?: React.ElementType;
@@ -1,14 +1,11 @@
1
- import { TouchableOpacity } from 'react-native';
2
1
  type StyledChipWrapperProps = {
3
2
  themeVariant?: 'selection' | 'filter' | 'compact' | 'compact-outlined';
4
3
  themeSelected?: boolean;
5
4
  };
6
- declare const StyledChipWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
5
+ declare const StyledChipWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<import("react-native").View> & {
7
6
  theme?: import("@emotion/react").Theme;
8
7
  as?: React.ElementType;
9
- } & StyledChipWrapperProps, {}, {
10
- ref?: import("react").Ref<TouchableOpacity> | undefined;
11
- }>;
8
+ } & StyledChipWrapperProps, {}, {}>;
12
9
  declare const StyledChipIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
13
10
  theme?: import("@emotion/react").Theme;
14
11
  as?: React.ElementType;
@@ -1,12 +1,9 @@
1
- import { TouchableOpacity } from 'react-native';
2
1
  import type { TouchableOpacityProps } from 'react-native';
3
2
  import type { IconProps } from '../../Icon';
4
- declare const StyledActionItem: import("@emotion/native").StyledComponent<TouchableOpacityProps & {
3
+ declare const StyledActionItem: import("@emotion/native").StyledComponent<TouchableOpacityProps & import("react").RefAttributes<import("react-native").View> & {
5
4
  theme?: import("@emotion/react").Theme;
6
5
  as?: React.ElementType;
7
- }, {}, {
8
- ref?: import("react").Ref<TouchableOpacity> | undefined;
9
- }>;
6
+ }, {}, {}>;
10
7
  declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("../../Typography/Body").BodyProps & {
11
8
  theme?: import("@emotion/react").Theme;
12
9
  as?: React.ElementType;
@@ -1,6 +1,6 @@
1
- import { TextProps, Animated, TouchableOpacity } from 'react-native';
1
+ import { TextProps, Animated } from 'react-native';
2
2
  import type { IconProps } from '../Icon';
3
- declare const StyledFAB: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").TouchableOpacityProps & import("react").RefAttributes<TouchableOpacity>> & {
3
+ declare const StyledFAB: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").TouchableOpacityProps & import("react").RefAttributes<import("react-native").View>> & {
4
4
  theme?: import("@emotion/react").Theme;
5
5
  as?: React.ElementType;
6
6
  } & {
@@ -1,8 +1,8 @@
1
- declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
1
+ declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<import("react-native").View> & {
2
2
  theme?: import("@emotion/react").Theme;
3
3
  as?: React.ElementType;
4
4
  }, {}, {
5
- ref?: import("react").Ref<import("react-native").TouchableOpacity> | undefined;
5
+ ref?: import("react").Ref<any> | undefined;
6
6
  }>;
7
7
  declare const StyledPrefixWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
8
8
  theme?: import("@emotion/react").Theme;
@@ -1,4 +1,4 @@
1
- import { TouchableHighlight, View } from 'react-native';
1
+ import { View } from 'react-native';
2
2
  declare const StyledPrefixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
3
  theme?: import("@emotion/react").Theme;
4
4
  as?: React.ElementType;
@@ -17,13 +17,11 @@ declare const StyledTitleContainer: import("@emotion/native").StyledComponent<im
17
17
  }, {}, {
18
18
  ref?: import("react").Ref<View> | undefined;
19
19
  }>;
20
- declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
20
+ declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & import("react").RefAttributes<View> & {
21
21
  theme?: import("@emotion/react").Theme;
22
22
  as?: React.ElementType;
23
23
  } & {
24
24
  themeSelected?: boolean;
25
25
  themeDisabled?: boolean;
26
- }, {}, {
27
- ref?: import("react").Ref<TouchableHighlight> | undefined;
28
- }>;
26
+ }, {}, {}>;
29
27
  export { StyledListItemContainer, StyledPrefixContainer, StyledTitleContainer, StyledSuffixContainer, };
@@ -1,15 +1,13 @@
1
- import { TouchableHighlight, View } from 'react-native';
1
+ import { View } from 'react-native';
2
2
  export type Variant = 'full-width' | 'card';
3
3
  export type LeadingStatusIntent = 'success' | 'warning' | 'danger' | 'info' | 'archived';
4
- declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
4
+ declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & import("react").RefAttributes<View> & {
5
5
  theme?: import("@emotion/react").Theme;
6
6
  as?: React.ElementType;
7
7
  } & {
8
8
  themeSelected?: boolean;
9
9
  themeVariant?: Variant;
10
- }, {}, {
11
- ref?: import("react").Ref<TouchableHighlight> | undefined;
12
- }>;
10
+ }, {}, {}>;
13
11
  declare const StyledContentContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
14
12
  theme?: import("@emotion/react").Theme;
15
13
  as?: React.ElementType;
@@ -1,5 +1,6 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
+ import type { IconName } from '../Icon';
3
4
  export interface RadioProps {
4
5
  /**
5
6
  * Whether the radio is checked.
@@ -33,6 +34,10 @@ export interface RadioProps {
33
34
  * Children to be rendered inside the component.
34
35
  */
35
36
  children?: ReactNode;
37
+ /**
38
+ * Prefix to be rendered before the radio text.
39
+ */
40
+ prefix?: IconName | ReactElement;
36
41
  }
37
- declare const Radio: ({ text, checked, onPress, style, subText, testID, inactiveIntent, children, }: RadioProps) => ReactElement;
42
+ declare const Radio: ({ text, checked, onPress, style, subText, testID, inactiveIntent, children, prefix, }: RadioProps) => ReactElement;
38
43
  export default Radio;
@@ -1,8 +1,10 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { IconName } from '../Icon';
2
3
  export type OptionType<T> = {
3
4
  value: T;
4
5
  text: string;
5
6
  subText?: string;
6
7
  key?: string;
7
8
  children?: ReactNode;
9
+ prefix?: IconName | ReactElement;
8
10
  };
@@ -1,12 +1,10 @@
1
- import { TouchableOpacity, View } from 'react-native';
2
- export declare const StyledToolbarButton: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
1
+ import { View } from 'react-native';
2
+ export declare const StyledToolbarButton: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
3
3
  theme?: import("@emotion/react").Theme;
4
4
  as?: React.ElementType;
5
5
  } & {
6
6
  selected: boolean;
7
- }, {}, {
8
- ref?: import("react").Ref<TouchableOpacity> | undefined;
9
- }>;
7
+ }, {}, {}>;
10
8
  export declare const StyledToolbar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
9
  theme?: import("@emotion/react").Theme;
12
10
  as?: React.ElementType;
@@ -1,10 +1,7 @@
1
- import { TouchableOpacity } from 'react-native';
2
1
  export type ActionIntent = 'primary' | 'success' | 'danger';
3
- export declare const StyledRectButton: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
2
+ export declare const StyledRectButton: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<import("react-native").View> & {
4
3
  theme?: import("@emotion/react").Theme;
5
4
  as?: React.ElementType;
6
5
  } & {
7
6
  themeIntent: ActionIntent;
8
- }, {}, {
9
- ref?: import("react").Ref<TouchableOpacity> | undefined;
10
- }>;
7
+ }, {}, {}>;
@@ -1,4 +1,4 @@
1
- import { Animated, TouchableOpacity, View } from 'react-native';
1
+ import { Animated, View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  import { IntentType } from './types';
4
4
  import { TextProps } from '../Typography/Text';
@@ -38,12 +38,10 @@ declare const ContentContainer: import("@emotion/native").StyledComponent<ViewPr
38
38
  }, {}, {
39
39
  ref?: import("react").Ref<View> | undefined;
40
40
  }>;
41
- declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
41
+ declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
42
42
  theme?: import("@emotion/react").Theme;
43
43
  as?: React.ElementType;
44
- }, {}, {
45
- ref?: import("react").Ref<TouchableOpacity> | undefined;
46
- }>;
44
+ }, {}, {}>;
47
45
  declare const StyledBody: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
48
46
  theme?: import("@emotion/react").Theme;
49
47
  as?: React.ElementType;
@@ -1,4 +1,4 @@
1
- import { TextInput, TouchableOpacity, View } from 'react-native';
1
+ import { TextInput, View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  import { BodyProps } from '../Typography/Body';
4
4
  export type ToolbarMessageState = 'default' | 'filled' | 'disabled' | 'readonly';
@@ -16,12 +16,10 @@ declare const ToolbarGroupWrapper: import("@emotion/native").StyledComponent<Vie
16
16
  }, {}, {
17
17
  ref?: import("react").Ref<View> | undefined;
18
18
  }>;
19
- declare const ToolbarItemWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
19
+ declare const ToolbarItemWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
20
20
  theme?: import("@emotion/react").Theme;
21
21
  as?: React.ElementType;
22
- }, {}, {
23
- ref?: import("react").Ref<TouchableOpacity> | undefined;
24
- }>;
22
+ }, {}, {}>;
25
23
  declare const IconButtonWrapper: import("@emotion/native").StyledComponent<ViewProps & {
26
24
  theme?: import("@emotion/react").Theme;
27
25
  as?: React.ElementType;