@hero-design/rn 8.55.1-rc2.3 → 8.56.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 (84) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +5 -34
  3. package/es/index.js +5385 -4937
  4. package/lib/index.js +5390 -4939
  5. package/package.json +8 -8
  6. package/sonar-project.properties +1 -0
  7. package/src/components/AnimatedScroller/AnimatedFAB.tsx +105 -0
  8. package/src/components/AnimatedScroller/AnimatedScrollable.tsx +55 -0
  9. package/src/components/AnimatedScroller/FlatListWithFAB.tsx +23 -0
  10. package/src/components/AnimatedScroller/ScrollViewWithFAB.tsx +21 -0
  11. package/src/components/AnimatedScroller/SectionListWithFAB.tsx +26 -0
  12. package/src/components/AnimatedScroller/index.tsx +5 -0
  13. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +26 -833
  14. package/src/components/Carousel/__tests__/index.spec.tsx +9 -3
  15. package/src/components/Carousel/index.tsx +19 -6
  16. package/src/components/FAB/FAB.tsx +6 -6
  17. package/src/index.ts +8 -0
  18. package/types/components/Accordion/StyledAccordion.d.ts +5 -5
  19. package/types/components/Alert/StyledAlert.d.ts +5 -5
  20. package/types/components/AnimatedScroller/AnimatedFAB.d.ts +10 -0
  21. package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +16 -0
  22. package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +12 -0
  23. package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +12 -0
  24. package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +12 -0
  25. package/types/components/AnimatedScroller/index.d.ts +4 -0
  26. package/types/components/Attachment/StyledAttachment.d.ts +4 -4
  27. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +3 -3
  28. package/types/components/Avatar/StyledAvatar.d.ts +4 -4
  29. package/types/components/Badge/StyledBadge.d.ts +3 -3
  30. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +7 -7
  31. package/types/components/BottomSheet/StyledBottomSheet.d.ts +8 -8
  32. package/types/components/Box/StyledBox.d.ts +1 -1
  33. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +2 -2
  34. package/types/components/Button/StyledButton.d.ts +5 -5
  35. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +3 -3
  36. package/types/components/Calendar/StyledCalendar.d.ts +9 -9
  37. package/types/components/Card/DataCard/StyledDataCard.d.ts +2 -2
  38. package/types/components/Card/StyledCard.d.ts +1 -1
  39. package/types/components/Carousel/StyledCardCarousel.d.ts +4 -4
  40. package/types/components/Carousel/StyledCarousel.d.ts +9 -9
  41. package/types/components/Checkbox/StyledCheckbox.d.ts +5 -5
  42. package/types/components/Chip/StyledChip.d.ts +4 -4
  43. package/types/components/Collapse/StyledCollapse.d.ts +3 -3
  44. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -1
  45. package/types/components/DatePicker/StyledDatePicker.d.ts +1 -1
  46. package/types/components/Divider/StyledDivider.d.ts +1 -1
  47. package/types/components/Drawer/StyledDrawer.d.ts +7 -7
  48. package/types/components/Empty/StyledEmpty.d.ts +3 -3
  49. package/types/components/Error/StyledError.d.ts +10 -10
  50. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +5 -5
  51. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +3 -3
  52. package/types/components/FAB/StyledFAB.d.ts +4 -4
  53. package/types/components/Icon/HeroIcon/index.d.ts +1 -1
  54. package/types/components/List/StyledBasicListItem.d.ts +4 -4
  55. package/types/components/List/StyledListItem.d.ts +7 -7
  56. package/types/components/PageControl/StyledPageControl.d.ts +2 -2
  57. package/types/components/PinInput/StyledPinInput.d.ts +10 -10
  58. package/types/components/Progress/StyledProgressBar.d.ts +2 -2
  59. package/types/components/Progress/StyledProgressCircle.d.ts +6 -6
  60. package/types/components/Radio/StyledRadio.d.ts +3 -3
  61. package/types/components/Rate/StyledRate.d.ts +2 -2
  62. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +2 -2
  63. package/types/components/RichTextEditor/StyledToolbar.d.ts +3 -3
  64. package/types/components/SectionHeading/StyledHeading.d.ts +3 -3
  65. package/types/components/Select/StyledSelect.d.ts +3 -3
  66. package/types/components/Skeleton/StyledSkeleton.d.ts +2 -2
  67. package/types/components/Spinner/StyledSpinner.d.ts +4 -4
  68. package/types/components/Success/StyledSuccess.d.ts +9 -9
  69. package/types/components/Swipeable/StyledSwipeable.d.ts +1 -1
  70. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +4 -4
  71. package/types/components/Switch/StyledSwitch.d.ts +2 -2
  72. package/types/components/Tabs/StyledScrollableTabs.d.ts +8 -8
  73. package/types/components/Tabs/StyledTabs.d.ts +8 -8
  74. package/types/components/Tag/StyledTag.d.ts +2 -2
  75. package/types/components/TextInput/StyledTextInput.d.ts +13 -13
  76. package/types/components/TimePicker/StyledTimePicker.d.ts +1 -1
  77. package/types/components/Toast/StyledToast.d.ts +6 -6
  78. package/types/components/Toolbar/StyledToolbar.d.ts +5 -5
  79. package/types/components/Typography/Body/StyledBody.d.ts +1 -1
  80. package/types/components/Typography/Caption/StyledCaption.d.ts +1 -1
  81. package/types/components/Typography/Label/StyledLabel.d.ts +1 -1
  82. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  83. package/types/components/Typography/Title/StyledTitle.d.ts +1 -1
  84. package/types/index.d.ts +2 -1
@@ -64,6 +64,14 @@ describe('Carousel', () => {
64
64
  />
65
65
  );
66
66
 
67
+ fireEvent(getByTestId('carousel_flatlist'), 'layout', {
68
+ nativeEvent: {
69
+ layout: {
70
+ width: 300,
71
+ },
72
+ },
73
+ });
74
+
67
75
  expect(getByTestId('carousel')).toBeTruthy();
68
76
 
69
77
  expect(queryByText('Skip')).toBeTruthy();
@@ -96,7 +104,7 @@ describe('Carousel', () => {
96
104
  it('should call skip call back when press skip', () => {
97
105
  const onSkip = jest.fn();
98
106
 
99
- const { queryByText, toJSON } = renderWithTheme(
107
+ const { queryByText } = renderWithTheme(
100
108
  <Carousel
101
109
  testID="carousel"
102
110
  items={carouselData}
@@ -106,8 +114,6 @@ describe('Carousel', () => {
106
114
  />
107
115
  );
108
116
 
109
- expect(toJSON()).toMatchSnapshot();
110
-
111
117
  expect(queryByText('Skip')).toBeTruthy();
112
118
 
113
119
  fireEvent.press(queryByText('Skip'));
@@ -14,7 +14,7 @@ import {
14
14
  ViewProps,
15
15
  ViewStyle,
16
16
  ViewToken,
17
- useWindowDimensions,
17
+ LayoutChangeEvent,
18
18
  } from 'react-native';
19
19
 
20
20
  import { useTheme } from '../../theme';
@@ -112,13 +112,22 @@ const Carousel = ({
112
112
  const internalOnItemIndexChange = useCallback(
113
113
  (index: number) => {
114
114
  setCurrentSlideIndex(index);
115
+
115
116
  if (onItemIndexChange) {
116
117
  onItemIndexChange(index);
117
118
  }
118
119
  },
119
120
  [setCurrentSlideIndex, onItemIndexChange]
120
121
  );
121
- const { width } = useWindowDimensions();
122
+ const [flatListWidth, setFlatListWidth] = useState(0);
123
+ const itemWidth = flatListWidth;
124
+ const flatListOnLayout = useCallback(
125
+ (e: LayoutChangeEvent) => {
126
+ setFlatListWidth(e.nativeEvent.layout.width);
127
+ },
128
+ [setFlatListWidth]
129
+ );
130
+ const width = flatListWidth;
122
131
 
123
132
  const scrollX = useRef(new Animated.Value(0)).current;
124
133
  useEffect(() => {
@@ -133,8 +142,7 @@ const Carousel = ({
133
142
  return () => {
134
143
  clearTimeout(handle);
135
144
  };
136
- }, [currentSlideIndex, carouselRef]);
137
-
145
+ }, [currentSlideIndex, carouselRef, scrollX, width]);
138
146
  const viewConfig = useRef({ viewAreaCoveragePercentThreshold: 50 }).current;
139
147
 
140
148
  const onViewCallBack = useRef(
@@ -167,7 +175,8 @@ const Carousel = ({
167
175
  </StyledPageControlWrapper>
168
176
 
169
177
  <StyledCarouselView>
170
- <FlatList
178
+ <FlatList<CarouselData>
179
+ onLayout={flatListOnLayout}
171
180
  testID={testID ? `${testID}_flatlist` : undefined}
172
181
  horizontal
173
182
  showsHorizontalScrollIndicator={false}
@@ -186,7 +195,6 @@ const Carousel = ({
186
195
  if (!item) return null;
187
196
 
188
197
  const { image, heading, body, content } = item;
189
-
190
198
  return (
191
199
  <CarouselItem
192
200
  image={image}
@@ -197,6 +205,11 @@ const Carousel = ({
197
205
  />
198
206
  );
199
207
  }}
208
+ getItemLayout={(_, index) => ({
209
+ length: itemWidth,
210
+ offset: itemWidth * index,
211
+ index,
212
+ })}
200
213
  />
201
214
  <StyledCarouselFooterWrapper>
202
215
  {renderActions && renderActions(currentSlideIndex)}
@@ -110,21 +110,21 @@ const defaultAnimation: LayoutAnimationConfig = {
110
110
  type: 'easeInEaseOut',
111
111
  property: 'opacity',
112
112
  },
113
- update: { type: 'spring', springDamping: Platform.OS === 'ios' ? 0.7 : 1 },
114
- duration: 400,
113
+ update: {
114
+ type: 'spring',
115
+ springDamping: Platform.OS === 'ios' ? 0.7 : 1.2,
116
+ },
117
+ duration: Platform.OS === 'ios' ? 300 : 400,
115
118
  };
116
119
 
117
120
  const FAB = forwardRef<FABHandles, FABProps>(
118
121
  ({ onPress, title, icon, animated, testID, active, style }, ref) => {
119
122
  const theme = useTheme();
120
-
123
+ const [canAnimate, setCanAnimate] = React.useState(false);
121
124
  const [displayState, setDisplayState] = React.useState({
122
125
  hideTitle: false,
123
126
  hideButton: false,
124
127
  });
125
-
126
- const [canAnimate, setCanAnimate] = React.useState(false);
127
-
128
128
  const isIconOnly = displayState.hideTitle || active || !title;
129
129
 
130
130
  React.useImperativeHandle(
package/src/index.ts CHANGED
@@ -62,6 +62,11 @@ import RefreshControl from './components/RefreshControl';
62
62
  import RichTextEditor from './components/RichTextEditor';
63
63
  import PageControl from './components/PageControl';
64
64
  import Portal from './components/Portal';
65
+ import {
66
+ ScrollViewWithFAB,
67
+ SectionListWithFAB,
68
+ FlatListWithFAB,
69
+ } from './components/AnimatedScroller';
65
70
 
66
71
  export {
67
72
  theme,
@@ -100,6 +105,7 @@ export {
100
105
  Empty,
101
106
  Error,
102
107
  FAB,
108
+ FlatListWithFAB,
103
109
  Icon,
104
110
  Image,
105
111
  HeroDesignProvider,
@@ -113,7 +119,9 @@ export {
113
119
  Spinner,
114
120
  Swipeable,
115
121
  Radio,
122
+ ScrollViewWithFAB,
116
123
  SectionHeading,
124
+ SectionListWithFAB,
117
125
  Select,
118
126
  Success,
119
127
  Switch,
@@ -3,13 +3,13 @@ import { TouchableOpacity, View } from 'react-native';
3
3
  export declare type Variant = 'default' | 'card';
4
4
  export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
5
  theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
6
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
7
  }, {}, {
8
8
  ref?: import("react").Ref<View> | undefined;
9
9
  }>;
10
10
  export declare const StyledItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
13
  } & {
14
14
  themeVariant: Variant;
15
15
  }, {}, {
@@ -17,17 +17,17 @@ export declare const StyledItemWrapper: import("@emotion/native").StyledComponen
17
17
  }>;
18
18
  export declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
19
19
  theme?: import("@emotion/react").Theme | undefined;
20
- as?: import("react").ElementType<any> | undefined;
20
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
21
21
  }, {}, {
22
22
  ref?: import("react").Ref<TouchableOpacity> | undefined;
23
23
  }>;
24
24
  export declare const StyledCollapse: import("@emotion/native").StyledComponent<import("../Collapse").CollapseProps & {
25
25
  theme?: import("@emotion/react").Theme | undefined;
26
- as?: import("react").ElementType<any> | undefined;
26
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
27
27
  }, {}, {}>;
28
28
  export declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
29
29
  theme?: import("@emotion/react").Theme | undefined;
30
- as?: import("react").ElementType<any> | undefined;
30
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
31
31
  }, {}, {
32
32
  ref?: import("react").Ref<View> | undefined;
33
33
  }>;
@@ -3,7 +3,7 @@ import { TouchableOpacity, View } from 'react-native';
3
3
  import type { ViewProps } from 'react-native';
4
4
  declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
5
5
  theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
6
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
7
  } & {
8
8
  themeVariant: 'rounded' | 'unrounded';
9
9
  themeIntent: 'success' | 'info' | 'warning' | 'error' | 'notification';
@@ -12,19 +12,19 @@ declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
12
12
  }>;
13
13
  declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
14
14
  theme?: import("@emotion/react").Theme | undefined;
15
- as?: import("react").ElementType<any> | undefined;
15
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
16
16
  }, {}, {
17
17
  ref?: import("react").Ref<View> | undefined;
18
18
  }>;
19
19
  declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
20
20
  theme?: import("@emotion/react").Theme | undefined;
21
- as?: import("react").ElementType<any> | undefined;
21
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
22
22
  }, {}, {
23
23
  ref?: import("react").Ref<View> | undefined;
24
24
  }>;
25
25
  declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
26
26
  theme?: import("@emotion/react").Theme | undefined;
27
- as?: import("react").ElementType<any> | undefined;
27
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
28
28
  } & {
29
29
  showDivider: boolean;
30
30
  }, {}, {
@@ -32,7 +32,7 @@ declare const ContentContainer: import("@emotion/native").StyledComponent<ViewPr
32
32
  }>;
33
33
  declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
34
34
  theme?: import("@emotion/react").Theme | undefined;
35
- as?: import("react").ElementType<any> | undefined;
35
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
36
36
  }, {}, {
37
37
  ref?: import("react").Ref<TouchableOpacity> | undefined;
38
38
  }>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Animated } from 'react-native';
3
+ import { ActionGroupProps } from '../FAB/ActionGroup';
4
+ import { FABProps } from '../FAB/FAB';
5
+ interface AnimatedFABProps {
6
+ fabProps: FABProps | ActionGroupProps;
7
+ contentOffsetY: Animated.Value;
8
+ }
9
+ declare const AnimatedFAB: ({ fabProps, contentOffsetY }: AnimatedFABProps) => React.JSX.Element;
10
+ export default AnimatedFAB;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { FlatListProps, ScrollViewProps as RnScrollViewProps, SectionListProps } from 'react-native';
3
+ import { FABProps } from '../FAB/FAB';
4
+ import { ActionGroupProps } from '../FAB/ActionGroup';
5
+ export interface AnimatedScrollerProps<T> {
6
+ /**
7
+ * Scroll component, it can be ScrollView, FlatList or SectionList.
8
+ */
9
+ ScrollComponent: React.ReactElement<RnScrollViewProps | FlatListProps<T> | SectionListProps<T>>;
10
+ /**
11
+ * FAB or FAB.ActionGroup props.
12
+ */
13
+ fabProps: FABProps | ActionGroupProps;
14
+ }
15
+ declare function AnimatedScroller<T>({ ScrollComponent, fabProps, }: AnimatedScrollerProps<T>): React.JSX.Element;
16
+ export default AnimatedScroller;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { FlatListProps } from 'react-native';
3
+ import { FABProps } from '../FAB/FAB';
4
+ import { ActionGroupProps } from '../FAB/ActionGroup';
5
+ export interface FlatListWithFABProps<T> extends FlatListProps<T> {
6
+ /**
7
+ * FAB or FAB.ActionGroup props props.
8
+ */
9
+ fabProps: FABProps | ActionGroupProps;
10
+ }
11
+ declare function FlatListWithFAB<T>({ fabProps, ...props }: FlatListWithFABProps<T>): React.JSX.Element;
12
+ export default FlatListWithFAB;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ScrollViewProps } from 'react-native';
3
+ import { ActionGroupProps } from '../FAB/ActionGroup';
4
+ import { FABProps } from '../FAB/FAB';
5
+ export interface ScrollViewWithFABProps extends ScrollViewProps {
6
+ /**
7
+ * FAB or FAB.ActionGroup props props.
8
+ */
9
+ fabProps: FABProps | ActionGroupProps;
10
+ }
11
+ declare const ScrollViewWithFAB: ({ fabProps, ...props }: ScrollViewWithFABProps) => React.JSX.Element;
12
+ export default ScrollViewWithFAB;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { SectionListProps } from 'react-native';
3
+ import { ActionGroupProps } from '../FAB/ActionGroup';
4
+ import { FABProps } from '../FAB/FAB';
5
+ export interface SectionListWithFABProps<T> extends SectionListProps<T> {
6
+ /**
7
+ * FAB or FAB.ActionGroup props props.
8
+ */
9
+ fabProps: FABProps | ActionGroupProps;
10
+ }
11
+ declare function SectionListWithFAB<T>({ fabProps, ...props }: SectionListWithFABProps<T>): React.JSX.Element;
12
+ export default SectionListWithFAB;
@@ -0,0 +1,4 @@
1
+ import ScrollViewWithFAB from './ScrollViewWithFAB';
2
+ import FlatListWithFAB from './FlatListWithFAB';
3
+ import SectionListWithFAB from './SectionListWithFAB';
4
+ export { ScrollViewWithFAB, FlatListWithFAB, SectionListWithFAB };
@@ -2,13 +2,13 @@
2
2
  import { TouchableOpacity, View } from 'react-native';
3
3
  declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
5
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  }, {}, {
7
7
  ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
9
  declare const StyledContentContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
10
  theme?: import("@emotion/react").Theme | undefined;
11
- as?: import("react").ElementType<any> | undefined;
11
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
12
12
  } & {
13
13
  themeHighlighted: boolean;
14
14
  }, {}, {
@@ -16,13 +16,13 @@ declare const StyledContentContainer: import("@emotion/native").StyledComponent<
16
16
  }>;
17
17
  declare const StyledTextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
18
18
  theme?: import("@emotion/react").Theme | undefined;
19
- as?: import("react").ElementType<any> | undefined;
19
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
20
20
  }, {}, {
21
21
  ref?: import("react").Ref<View> | undefined;
22
22
  }>;
23
23
  declare const StyledCTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
24
24
  theme?: import("@emotion/react").Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
25
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
26
26
  }, {}, {
27
27
  ref?: import("react").Ref<TouchableOpacity> | undefined;
28
28
  }>;
@@ -4,7 +4,7 @@ import { AvatarProps } from '../Avatar';
4
4
  declare type ThemeVariant = 'horizontal' | 'vertical';
5
5
  export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
6
6
  theme?: import("@emotion/react").Theme | undefined;
7
- as?: import("react").ElementType<any> | undefined;
7
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
8
8
  } & {
9
9
  themeSize: Required<AvatarProps>['size'];
10
10
  themeAvatarCount: number;
@@ -15,14 +15,14 @@ export declare const StyledWrapper: import("@emotion/native").StyledComponent<im
15
15
  }>;
16
16
  export declare const StyledAvatar: import("@emotion/native").StyledComponent<AvatarProps & {
17
17
  theme?: import("@emotion/react").Theme | undefined;
18
- as?: import("react").ElementType<any> | undefined;
18
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
19
19
  } & {
20
20
  themeIndex: number;
21
21
  themeVariant: ThemeVariant;
22
22
  }, {}, {}>;
23
23
  export declare const StyledSurplusContainer: import("@emotion/native").StyledComponent<import("../../Box").BoxProps & {
24
24
  theme?: import("@emotion/react").Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
25
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
26
26
  } & {
27
27
  themeIndex: number;
28
28
  themeSize: AvatarProps['size'];
@@ -5,7 +5,7 @@ declare type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | '
5
5
  declare type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
6
6
  declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  } & {
10
10
  themeSize: ThemeSize;
11
11
  themeIntent: ThemeIntent;
@@ -14,19 +14,19 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<import("r
14
14
  }>;
15
15
  declare const StyledTextWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
16
16
  theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
17
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
18
18
  }, {}, {
19
19
  ref?: import("react").Ref<View> | undefined;
20
20
  }>;
21
21
  declare const StyledText: import("@emotion/native").StyledComponent<TextProps & {
22
22
  theme?: import("@emotion/react").Theme | undefined;
23
- as?: import("react").ElementType<any> | undefined;
23
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
24
24
  } & {
25
25
  themeSize: ThemeSize;
26
26
  }, {}, {}>;
27
27
  declare const StyledImage: import("@emotion/native").StyledComponent<import("react-native").ImageProps & {
28
28
  theme?: import("@emotion/react").Theme | undefined;
29
- as?: import("react").ElementType<any> | undefined;
29
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
30
30
  } & {
31
31
  themeSize: ThemeSize;
32
32
  }, {}, {
@@ -4,18 +4,18 @@ declare type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info'
4
4
  declare type ThemePadding = 'narrowContent' | 'wideContent';
5
5
  declare const StyledView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
6
6
  theme?: import("@emotion/react").Theme | undefined;
7
- as?: import("react").ElementType<any> | undefined;
7
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
8
8
  } & {
9
9
  themeIntent: ThemeIntent;
10
10
  themePadding: ThemePadding;
11
11
  }, {}, {}>;
12
12
  declare const StyledText: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
13
13
  theme?: import("@emotion/react").Theme | undefined;
14
- as?: import("react").ElementType<any> | undefined;
14
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
15
15
  }, {}, {}>;
16
16
  declare const StyledStatus: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
17
17
  theme?: import("@emotion/react").Theme | undefined;
18
- as?: import("react").ElementType<any> | undefined;
18
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
19
19
  } & {
20
20
  themeIntent: ThemeIntent;
21
21
  }, {}, {}>;
@@ -2,7 +2,7 @@
2
2
  import { View } from 'react-native';
3
3
  declare const BottomNavigationTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
5
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  } & {
7
7
  themeVisibility?: boolean | undefined;
8
8
  }, {}, {
@@ -10,19 +10,19 @@ declare const BottomNavigationTab: import("@emotion/native").StyledComponent<imp
10
10
  }>;
11
11
  declare const BottomNavigationContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
12
12
  theme?: import("@emotion/react").Theme | undefined;
13
- as?: import("react").ElementType<any> | undefined;
13
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
14
14
  }, {}, {
15
15
  ref?: import("react").Ref<View> | undefined;
16
16
  }>;
17
17
  declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
18
18
  theme?: import("@emotion/react").Theme | undefined;
19
- as?: import("react").ElementType<any> | undefined;
19
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
20
20
  }, {}, {
21
21
  ref?: import("react").Ref<View> | undefined;
22
22
  }>;
23
23
  declare const BottomBarWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
24
24
  theme?: import("@emotion/react").Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
25
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
26
26
  } & {
27
27
  themeInsets: {
28
28
  top: number;
@@ -35,18 +35,18 @@ declare const BottomBarWrapper: import("@emotion/native").StyledComponent<import
35
35
  }>;
36
36
  declare const BottomBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
37
37
  theme?: import("@emotion/react").Theme | undefined;
38
- as?: import("react").ElementType<any> | undefined;
38
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
39
39
  }, {}, {
40
40
  ref?: import("react").Ref<View> | undefined;
41
41
  }>;
42
42
  declare const BottomBarItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
43
43
  theme?: import("@emotion/react").Theme | undefined;
44
- as?: import("react").ElementType<any> | undefined;
44
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
45
45
  }, {}, {
46
46
  ref?: import("react").Ref<View> | undefined;
47
47
  }>;
48
48
  declare const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
49
49
  theme?: import("@emotion/react").Theme | undefined;
50
- as?: import("react").ElementType<any> | undefined;
50
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
51
51
  }, {}, {}>;
52
52
  export { BottomBar, BottomBarItem, BottomNavigationTab, BottomNavigationContainer, BottomBarWrapper, ContentWrapper, StyledBottomBarText, };
@@ -3,45 +3,45 @@ import { Animated, KeyboardAvoidingView, KeyboardAvoidingViewProps, SafeAreaView
3
3
  import type { ViewProps } from 'react-native';
4
4
  declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
5
5
  theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any> | undefined;
6
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
7
  }, {}, {
8
8
  ref?: import("react").Ref<View> | undefined;
9
9
  }>;
10
10
  declare const StyledKeyboardAvoidingView: import("@emotion/native").StyledComponent<KeyboardAvoidingViewProps & {
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
13
  }, {}, {
14
14
  ref?: import("react").Ref<KeyboardAvoidingView> | undefined;
15
15
  }>;
16
16
  declare const StyledBottomSheet: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<SafeAreaView>> & {
17
17
  theme?: import("@emotion/react").Theme | undefined;
18
- as?: import("react").ElementType<any> | undefined;
18
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
19
19
  }, {}, {}>;
20
20
  declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
21
21
  theme?: import("@emotion/react").Theme | undefined;
22
- as?: import("react").ElementType<any> | undefined;
22
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
23
23
  }, {}, {}>;
24
24
  declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<ViewProps & {
25
25
  theme?: import("@emotion/react").Theme | undefined;
26
- as?: import("react").ElementType<any> | undefined;
26
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
27
27
  }, {}, {
28
28
  ref?: import("react").Ref<View> | undefined;
29
29
  }>;
30
30
  declare const StyledHeader: import("@emotion/native").StyledComponent<ViewProps & {
31
31
  theme?: import("@emotion/react").Theme | undefined;
32
- as?: import("react").ElementType<any> | undefined;
32
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
33
33
  }, {}, {
34
34
  ref?: import("react").Ref<View> | undefined;
35
35
  }>;
36
36
  declare const StyledFooter: import("@emotion/native").StyledComponent<ViewProps & {
37
37
  theme?: import("@emotion/react").Theme | undefined;
38
- as?: import("react").ElementType<any> | undefined;
38
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
39
39
  }, {}, {
40
40
  ref?: import("react").Ref<View> | undefined;
41
41
  }>;
42
42
  declare const StyledIconWrapper: import("@emotion/native").StyledComponent<ViewProps & {
43
43
  theme?: import("@emotion/react").Theme | undefined;
44
- as?: import("react").ElementType<any> | undefined;
44
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
45
45
  }, {}, {
46
46
  ref?: import("react").Ref<View> | undefined;
47
47
  }>;
@@ -9,7 +9,7 @@ export declare const getThemeValue: (theme: Theme, key: keyof StyleProps, props:
9
9
  } | undefined;
10
10
  declare const StyledBox: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
11
  theme?: Theme | undefined;
12
- as?: import("react").ElementType<any> | undefined;
12
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
13
  } & StyleProps & FlexStyleProps, {}, {
14
14
  ref?: import("react").Ref<View> | undefined;
15
15
  }>;
@@ -5,13 +5,13 @@ import { View } from 'react-native';
5
5
  declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
6
6
  declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
7
7
  theme?: Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  }, {}, {
10
10
  ref?: import("react").Ref<View> | undefined;
11
11
  }>;
12
12
  declare const StyledLoadingDot: import("@emotion/native").StyledComponent<ViewProps & {
13
13
  theme?: Theme | undefined;
14
- as?: import("react").ElementType<any> | undefined;
14
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
15
15
  } & {
16
16
  size?: number | undefined;
17
17
  themeVariant: ThemeVariant;
@@ -5,7 +5,7 @@ declare type Intent = 'primary' | 'secondary' | 'danger';
5
5
  declare type ThemeVariant = 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
6
6
  declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
7
7
  theme?: Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
9
  } & {
10
10
  disabled?: boolean | undefined;
11
11
  themeButtonVariant: ThemeVariant;
@@ -15,21 +15,21 @@ declare const StyledButtonContainer: import("@emotion/native").StyledComponent<i
15
15
  }>;
16
16
  declare const StyledButtonText: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
17
17
  theme?: Theme | undefined;
18
- as?: import("react").ElementType<any> | undefined;
18
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
19
19
  } & {
20
20
  disabled?: boolean | undefined;
21
21
  themeButtonVariant: ThemeVariant;
22
22
  }, {}, {}>;
23
23
  declare const StyledButtonTitleOfVariantText: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
24
24
  theme?: Theme | undefined;
25
- as?: import("react").ElementType<any> | undefined;
25
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
26
26
  } & {
27
27
  disabled?: boolean | undefined;
28
28
  themeButtonVariant: 'text-primary' | 'text-secondary' | 'text-danger';
29
29
  }, {}, {}>;
30
30
  declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
31
31
  theme?: Theme | undefined;
32
- as?: import("react").ElementType<any> | undefined;
32
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
33
33
  } & {
34
34
  themePosition: 'left' | 'right';
35
35
  }, {}, {
@@ -37,7 +37,7 @@ declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent
37
37
  }>;
38
38
  declare const StyledButtonIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
39
39
  theme?: Theme | undefined;
40
- as?: import("react").ElementType<any> | undefined;
40
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
41
41
  } & {
42
42
  disabled?: boolean | undefined;
43
43
  themeButtonVariant: ThemeVariant;
@@ -2,17 +2,17 @@
2
2
  import { View, TouchableOpacity } from 'react-native';
3
3
  export declare const ButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
5
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  }, {}, {
7
7
  ref?: import("react").Ref<TouchableOpacity> | undefined;
8
8
  }>;
9
9
  export declare const IconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
10
  theme?: import("@emotion/react").Theme | undefined;
11
- as?: import("react").ElementType<any> | undefined;
11
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
12
12
  }, {}, {
13
13
  ref?: import("react").Ref<View> | undefined;
14
14
  }>;
15
15
  export declare const ButtonText: import("@emotion/native").StyledComponent<import("../../Typography/Body").BodyProps & {
16
16
  theme?: import("@emotion/react").Theme | undefined;
17
- as?: import("react").ElementType<any> | undefined;
17
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
18
18
  }, {}, {}>;