@hero-design/rn 0.0.0-mainIsReactNative-20260826163045 → 0.0.0-mainIsReactNative-2

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 (89) hide show
  1. package/es/index.js +42700 -929
  2. package/lib/index.js +44030 -0
  3. package/package.json +4 -5
  4. package/src/components/Slider/SingleSlider.tsx +25 -2
  5. package/types/components/Accordion/StyledAccordion.d.ts +26 -12
  6. package/types/components/Alert/StyledAlert.d.ts +46 -17
  7. package/types/components/AppCue/StyledAppCue.d.ts +22 -9
  8. package/types/components/Attachment/StyledAttachment.d.ts +22 -9
  9. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +29 -8
  10. package/types/components/Avatar/StyledAvatar.d.ts +29 -10
  11. package/types/components/Badge/StyledBadge.d.ts +44 -17
  12. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +44 -15
  13. package/types/components/BottomSheet/StyledBottomSheet.d.ts +58 -33
  14. package/types/components/Box/StyledBox.d.ts +8 -2
  15. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +16 -4
  16. package/types/components/Button/StyledButton.d.ts +55 -17
  17. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +14 -8
  18. package/types/components/Calendar/StyledCalendar.d.ts +59 -23
  19. package/types/components/Card/DataCard/StyledDataCard.d.ts +18 -6
  20. package/types/components/Card/StyledCard.d.ts +9 -2
  21. package/types/components/Card/index.d.ts +5 -2
  22. package/types/components/Carousel/StyledCardCarousel.d.ts +24 -10
  23. package/types/components/Carousel/StyledCarousel.d.ts +53 -26
  24. package/types/components/Chart/ChartSelect/StyledChartSelect.d.ts +6 -2
  25. package/types/components/Chart/ColumnChart/StyledColumnChart.d.ts +6 -2
  26. package/types/components/Chart/StyledChart.d.ts +8 -6
  27. package/types/components/Checkbox/StyledDefaultCheckBox.d.ts +31 -13
  28. package/types/components/Checkbox/StyledInlineCheckBox.d.ts +43 -13
  29. package/types/components/Checkbox/utils.d.ts +1 -1
  30. package/types/components/Chip/StyledChip.d.ts +12 -6
  31. package/types/components/Collapse/StyledCollapse.d.ts +15 -7
  32. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +6 -2
  33. package/types/components/DatePicker/StyledDatePicker.d.ts +7 -2
  34. package/types/components/Divider/StyledDivider.d.ts +10 -2
  35. package/types/components/Drawer/StyledDrawer.d.ts +44 -17
  36. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +28 -16
  37. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +14 -9
  38. package/types/components/FAB/Pair/StyledFAB.d.ts +13 -6
  39. package/types/components/FAB/StyledFAB.d.ts +22 -12
  40. package/types/components/FilterTrigger/StyledFilterTrigger.d.ts +20 -9
  41. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +17 -11
  42. package/types/components/Icon/HeroIcon/index.d.ts +10 -2
  43. package/types/components/InlineLoader/StyledInlineLoader.d.ts +15 -4
  44. package/types/components/List/StyledBasicListItem.d.ts +23 -9
  45. package/types/components/List/StyledListGroup.d.ts +8 -2
  46. package/types/components/List/StyledListItem.d.ts +44 -15
  47. package/types/components/MapPin/StyledMapPin.d.ts +37 -17
  48. package/types/components/PageControl/StyledPageControl.d.ts +10 -5
  49. package/types/components/PinInput/StyledPinInput.d.ts +59 -23
  50. package/types/components/Portal/reducer.d.ts +3 -6
  51. package/types/components/Progress/SegmentedBar/StyledLegend.d.ts +18 -12
  52. package/types/components/Progress/SegmentedBar/StyledSegmentedBar.d.ts +19 -12
  53. package/types/components/Progress/StyledProgressBar.d.ts +16 -5
  54. package/types/components/Progress/StyledProgressCircle.d.ts +12 -4
  55. package/types/components/Progress/StyledStep.d.ts +22 -12
  56. package/types/components/Radio/StyledRadio.d.ts +26 -9
  57. package/types/components/Rate/StyledRate.d.ts +9 -6
  58. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -2
  59. package/types/components/RichTextEditor/StyledToolbar.d.ts +17 -7
  60. package/types/components/Search/StyledSearch.d.ts +42 -15
  61. package/types/components/SectionHeading/StyledHeading.d.ts +19 -6
  62. package/types/components/SectionList/StyledSectionList.d.ts +27 -9
  63. package/types/components/SegmentedControl/StyledSegmentedControl.d.ts +25 -15
  64. package/types/components/Select/StyledSelect.d.ts +16 -7
  65. package/types/components/Skeleton/StyledSkeleton.d.ts +15 -6
  66. package/types/components/Slider/StyledRangeSlider.d.ts +8 -2
  67. package/types/components/Spinner/StyledSpinner.d.ts +29 -8
  68. package/types/components/StatusScreens/Empty/StyledEmpty.d.ts +24 -10
  69. package/types/components/StatusScreens/Error/StyledError.d.ts +53 -30
  70. package/types/components/StatusScreens/Success/StyledSuccess.d.ts +53 -30
  71. package/types/components/Swipeable/StyledSwipeable.d.ts +6 -3
  72. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +18 -11
  73. package/types/components/Switch/StyledSwitch.d.ts +12 -5
  74. package/types/components/Tabs/StyledScrollableTabs.d.ts +59 -30
  75. package/types/components/Tabs/StyledTabs.d.ts +39 -13
  76. package/types/components/Tag/StyledTag.d.ts +22 -8
  77. package/types/components/TextInput/AssistiveInfoTrigger/StyledAssistiveInfoTrigger.d.ts +10 -5
  78. package/types/components/TextInput/StyledTextInput.d.ts +91 -33
  79. package/types/components/TextInput/index.d.ts +1 -1
  80. package/types/components/TimePicker/StyledTimePicker.d.ts +7 -2
  81. package/types/components/Toast/StyledToast.d.ts +56 -24
  82. package/types/components/Toolbar/StyledToolbar.d.ts +59 -25
  83. package/types/components/Typography/Body/StyledBody.d.ts +13 -2
  84. package/types/components/Typography/Caption/StyledCaption.d.ts +11 -2
  85. package/types/components/Typography/Label/StyledLabel.d.ts +11 -2
  86. package/types/components/Typography/Text/StyledText.d.ts +11 -2
  87. package/types/components/Typography/Title/StyledTitle.d.ts +13 -2
  88. package/types/index.d.ts +70 -8818
  89. package/types/testHelpers/renderWithTheme.d.ts +10 -11
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "0.0.0-mainIsReactNative-20260826163045",
3
+ "version": "0.0.0-mainIsReactNative-2",
4
4
  "license": "MIT",
5
- "main": "src/index.ts",
5
+ "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "types": "types/index.d.ts",
8
+ "react-native": "src/index.ts",
8
9
  "typesVersions": {
9
10
  "*": {
10
- "locales/*": [
11
- "types/locales/*"
12
- ]
11
+ "locales/*": ["types/locales/*"]
13
12
  }
14
13
  },
15
14
  "scripts": {
@@ -1,8 +1,31 @@
1
- import RnSlider from '@react-native-community/slider';
2
1
  import React from 'react';
3
2
  import type { StyleProp, ViewStyle } from 'react-native';
3
+ import { Platform, Text, View } from 'react-native';
4
4
  import { useTheme } from '../../theme';
5
5
 
6
+ type RnSliderType = typeof import('@react-native-community/slider').default;
7
+
8
+ const LINKING_ERROR =
9
+ `The package '@react-native-community/slider' doesn't seem to be linked. Make sure: \n\n` +
10
+ Platform.select({ ios: `- You have run 'pod install'\n`, default: '' }) +
11
+ `- You rebuilt the app after installing the package\n`;
12
+
13
+ let RnSlider: RnSliderType | null = null;
14
+ try {
15
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
16
+ RnSlider = require('@react-native-community/slider').default;
17
+ } catch {
18
+ // package not linked — SliderComponent will render the linking error
19
+ }
20
+
21
+ const SliderComponent: React.ComponentType<React.ComponentProps<RnSliderType>> =
22
+ RnSlider ??
23
+ (() => (
24
+ <View>
25
+ <Text>{LINKING_ERROR}</Text>
26
+ </View>
27
+ ));
28
+
6
29
  export interface SingleSliderProps {
7
30
  /**
8
31
  * Minimum value of the slider.
@@ -70,7 +93,7 @@ const Slider = ({
70
93
  const { selectedTrack, thumb, unselectedTrack } = theme.__hd__.slider.colors;
71
94
 
72
95
  return (
73
- <RnSlider
96
+ <SliderComponent
74
97
  minimumValue={minimumValue}
75
98
  maximumValue={maximumValue}
76
99
  step={step}
@@ -1,16 +1,30 @@
1
+ import { View } from 'react-native';
1
2
  export type Variant = 'default' | 'card';
2
- export declare const StyledWrapper: import("@emotion/native").StyledComponent<any, {}, {
3
- ref?: React.Ref<InstanceType<C>>;
3
+ export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
+ theme?: import("@emotion/react").Theme;
5
+ as?: React.ElementType;
6
+ }, {}, {
7
+ ref?: import("react").Ref<View> | undefined;
4
8
  }>;
5
- export declare const StyledItemWrapper: import("@emotion/native").StyledComponent<any, {}, {
6
- ref?: React.Ref<InstanceType<C>>;
9
+ export declare const StyledItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
+ theme?: import("@emotion/react").Theme;
11
+ as?: React.ElementType;
12
+ } & {
13
+ themeVariant: Variant;
14
+ }, {}, {
15
+ ref?: import("react").Ref<View> | undefined;
7
16
  }>;
8
- export declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<any, {}, {
9
- ref?: React.Ref<InstanceType<C>>;
10
- }>;
11
- export declare const StyledCollapse: import("@emotion/native").StyledComponent<any, {}, {
12
- ref?: React.Ref<InstanceType<C>>;
13
- }>;
14
- export declare const Spacer: import("@emotion/native").StyledComponent<any, {}, {
15
- ref?: React.Ref<InstanceType<C>>;
17
+ export declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
18
+ theme?: import("@emotion/react").Theme;
19
+ as?: React.ElementType;
20
+ }, {}, {}>;
21
+ export declare const StyledCollapse: import("@emotion/native").StyledComponent<import("../Collapse").CollapseProps & {
22
+ theme?: import("@emotion/react").Theme;
23
+ as?: React.ElementType;
24
+ }, {}, {}>;
25
+ export declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
26
+ theme?: import("@emotion/react").Theme;
27
+ as?: React.ElementType;
28
+ }, {}, {
29
+ ref?: import("react").Ref<View> | undefined;
16
30
  }>;
@@ -1,22 +1,51 @@
1
- declare const Container: import("@emotion/native").StyledComponent<any, {}, {
2
- ref?: React.Ref<InstanceType<C>>;
1
+ import { View } from 'react-native';
2
+ import type { ViewProps } from 'react-native';
3
+ import type { TextProps } from '../Typography/Text';
4
+ import type { IconProps } from '../Icon';
5
+ type ThemeIntent = 'success' | 'info' | 'warning' | 'error' | 'notification';
6
+ declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
7
+ theme?: import("@emotion/react").Theme;
8
+ as?: React.ElementType;
9
+ } & {
10
+ themeVariant: "rounded" | "unrounded";
11
+ themeIntent: ThemeIntent;
12
+ }, {}, {
13
+ ref?: import("react").Ref<View> | undefined;
3
14
  }>;
4
- declare const IconContainer: import("@emotion/native").StyledComponent<any, {}, {
5
- ref?: React.Ref<InstanceType<C>>;
15
+ declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
16
+ theme?: import("@emotion/react").Theme;
17
+ as?: React.ElementType;
18
+ }, {}, {
19
+ ref?: import("react").Ref<View> | undefined;
6
20
  }>;
7
- declare const StyledIcon: import("@emotion/native").StyledComponent<any, {}, {
8
- ref?: React.Ref<InstanceType<C>>;
21
+ declare const StyledIcon: import("@emotion/native").StyledComponent<IconProps & {
22
+ theme?: import("@emotion/react").Theme;
23
+ as?: React.ElementType;
24
+ } & {
25
+ themeIntent: ThemeIntent;
26
+ }, {}, {}>;
27
+ declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
28
+ theme?: import("@emotion/react").Theme;
29
+ as?: React.ElementType;
30
+ }, {}, {
31
+ ref?: import("react").Ref<View> | undefined;
9
32
  }>;
10
- declare const TextContainer: import("@emotion/native").StyledComponent<any, {}, {
11
- ref?: React.Ref<InstanceType<C>>;
12
- }>;
13
- declare const StyledBody: import("@emotion/native").StyledComponent<any, {}, {
14
- ref?: React.Ref<InstanceType<C>>;
15
- }>;
16
- declare const ContentContainer: import("@emotion/native").StyledComponent<any, {}, {
17
- ref?: React.Ref<InstanceType<C>>;
18
- }>;
19
- declare const CTAWrapper: import("@emotion/native").StyledComponent<any, {}, {
20
- ref?: React.Ref<InstanceType<C>>;
33
+ declare const StyledBody: import("@emotion/native").StyledComponent<import("../..").BodyProps & {
34
+ theme?: import("@emotion/react").Theme;
35
+ as?: React.ElementType;
36
+ } & TextProps & {
37
+ themeIntent: ThemeIntent;
38
+ }, {}, {}>;
39
+ declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
40
+ theme?: import("@emotion/react").Theme;
41
+ as?: React.ElementType;
42
+ } & {
43
+ showDivider: boolean;
44
+ }, {}, {
45
+ ref?: import("react").Ref<View> | undefined;
21
46
  }>;
47
+ declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
48
+ theme?: import("@emotion/react").Theme;
49
+ as?: React.ElementType;
50
+ }, {}, {}>;
22
51
  export { Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, StyledBody, StyledIcon, };
@@ -1,13 +1,26 @@
1
+ import { View, Animated } from 'react-native';
1
2
  export type Placement = 'top' | 'bottom' | 'right' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
2
- export declare const StyledContent: import("@emotion/native").StyledComponent<any, {}, {
3
- ref?: React.Ref<InstanceType<C>>;
3
+ export declare const StyledContent: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
+ theme?: import("@emotion/react").Theme;
5
+ as?: React.ElementType;
6
+ }, {}, {
7
+ ref?: import("react").Ref<View> | undefined;
4
8
  }>;
5
- export declare const StyledModalContainer: import("@emotion/native").StyledComponent<any, {}, {
6
- ref?: React.Ref<InstanceType<C>>;
9
+ export declare const StyledModalContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
+ theme?: import("@emotion/react").Theme;
11
+ as?: React.ElementType;
12
+ }, {}, {
13
+ ref?: import("react").Ref<View> | undefined;
7
14
  }>;
8
- export declare const StyledContentPositioner: import("@emotion/native").StyledComponent<any, {}, {
9
- ref?: React.Ref<InstanceType<C>>;
10
- }>;
11
- export declare const StyledIconContainer: import("@emotion/native").StyledComponent<any, {}, {
12
- ref?: React.Ref<InstanceType<C>>;
15
+ export declare const StyledContentPositioner: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
16
+ theme?: import("@emotion/react").Theme;
17
+ as?: React.ElementType;
18
+ }, {}, {
19
+ ref?: import("react").Ref<View> | undefined;
13
20
  }>;
21
+ export declare const StyledIconContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
22
+ theme?: import("@emotion/react").Theme;
23
+ as?: React.ElementType;
24
+ } & {
25
+ themePlacement: Placement;
26
+ }, {}, {}>;
@@ -1,13 +1,26 @@
1
- declare const StyledContainer: import("@emotion/native").StyledComponent<any, {}, {
2
- ref?: React.Ref<InstanceType<C>>;
1
+ import { View } from 'react-native';
2
+ declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: React.ElementType;
5
+ }, {}, {
6
+ ref?: import("react").Ref<View> | undefined;
3
7
  }>;
4
- declare const StyledContentContainer: import("@emotion/native").StyledComponent<any, {}, {
5
- ref?: React.Ref<InstanceType<C>>;
8
+ declare const StyledContentContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
+ theme?: import("@emotion/react").Theme;
10
+ as?: React.ElementType;
11
+ } & {
12
+ themeHighlighted: boolean;
13
+ }, {}, {
14
+ ref?: import("react").Ref<View> | undefined;
6
15
  }>;
7
- declare const StyledTextContainer: import("@emotion/native").StyledComponent<any, {}, {
8
- ref?: React.Ref<InstanceType<C>>;
9
- }>;
10
- declare const StyledCTAWrapper: import("@emotion/native").StyledComponent<any, {}, {
11
- ref?: React.Ref<InstanceType<C>>;
16
+ declare const StyledTextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
17
+ theme?: import("@emotion/react").Theme;
18
+ as?: React.ElementType;
19
+ }, {}, {
20
+ ref?: import("react").Ref<View> | undefined;
12
21
  }>;
22
+ declare const StyledCTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
23
+ theme?: import("@emotion/react").Theme;
24
+ as?: React.ElementType;
25
+ }, {}, {}>;
13
26
  export { StyledContainer, StyledContentContainer, StyledCTAWrapper, StyledTextContainer, };
@@ -1,9 +1,30 @@
1
- export declare const StyledWrapper: import("@emotion/native").StyledComponent<any, {}, {
2
- ref?: React.Ref<InstanceType<C>>;
3
- }>;
4
- export declare const StyledAvatar: import("@emotion/native").StyledComponent<any, {}, {
5
- ref?: React.Ref<InstanceType<C>>;
6
- }>;
7
- export declare const StyledSurplusContainer: import("@emotion/native").StyledComponent<any, {}, {
8
- ref?: React.Ref<InstanceType<C>>;
1
+ import { View } from 'react-native';
2
+ import type { AvatarProps } from '../Avatar';
3
+ type ThemeVariant = 'horizontal' | 'vertical';
4
+ export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
+ theme?: import("@emotion/react").Theme;
6
+ as?: React.ElementType;
7
+ } & {
8
+ themeSize: Required<AvatarProps>["size"];
9
+ themeAvatarCount: number;
10
+ themeVariant: ThemeVariant;
11
+ themeHasSurplus: boolean;
12
+ }, {}, {
13
+ ref?: import("react").Ref<View> | undefined;
9
14
  }>;
15
+ export declare const StyledAvatar: import("@emotion/native").StyledComponent<AvatarProps & {
16
+ theme?: import("@emotion/react").Theme;
17
+ as?: React.ElementType;
18
+ } & {
19
+ themeIndex: number;
20
+ themeVariant: ThemeVariant;
21
+ }, {}, {}>;
22
+ export declare const StyledSurplusContainer: import("@emotion/native").StyledComponent<import("../../Box").BoxProps & {
23
+ theme?: import("@emotion/react").Theme;
24
+ as?: React.ElementType;
25
+ } & {
26
+ themeIndex: number;
27
+ themeSize: AvatarProps["size"];
28
+ themeVariant: ThemeVariant;
29
+ }, {}, {}>;
30
+ export {};
@@ -1,13 +1,32 @@
1
- declare const StyledWrapper: import("@emotion/native").StyledComponent<any, {}, {
2
- ref?: React.Ref<InstanceType<C>>;
1
+ import { View, Image } from 'react-native';
2
+ import type { TextProps } from '../Typography/Text';
3
+ type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
4
+ type ThemeIntent = 'neutral' | 'primary' | 'info' | 'danger' | 'success' | 'warning';
5
+ declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
6
+ theme?: import("@emotion/react").Theme;
7
+ as?: React.ElementType;
8
+ } & {
9
+ themeSize: ThemeSize;
10
+ themeIntent: ThemeIntent;
11
+ }, {}, {}>;
12
+ declare const StyledTextWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
13
+ theme?: import("@emotion/react").Theme;
14
+ as?: React.ElementType;
15
+ }, {}, {
16
+ ref?: import("react").Ref<View> | undefined;
3
17
  }>;
4
- declare const StyledTextWrapper: import("@emotion/native").StyledComponent<any, {}, {
5
- ref?: React.Ref<InstanceType<C>>;
6
- }>;
7
- declare const StyledText: import("@emotion/native").StyledComponent<any, {}, {
8
- ref?: React.Ref<InstanceType<C>>;
9
- }>;
10
- declare const StyledImage: import("@emotion/native").StyledComponent<any, {}, {
11
- ref?: React.Ref<InstanceType<C>>;
18
+ declare const StyledText: import("@emotion/native").StyledComponent<import("../..").BodyProps & {
19
+ theme?: import("@emotion/react").Theme;
20
+ as?: React.ElementType;
21
+ } & TextProps & {
22
+ themeSize: ThemeSize;
23
+ }, {}, {}>;
24
+ declare const StyledImage: import("@emotion/native").StyledComponent<import("react-native").ImageProps & {
25
+ theme?: import("@emotion/react").Theme;
26
+ as?: React.ElementType;
27
+ } & {
28
+ themeSize: ThemeSize;
29
+ }, {}, {
30
+ ref?: import("react").Ref<Image> | undefined;
12
31
  }>;
13
32
  export { StyledWrapper, StyledImage, StyledTextWrapper, StyledText };
@@ -1,19 +1,46 @@
1
- declare const StyledView: import("@emotion/native").StyledComponent<any, {}, {
2
- ref?: React.Ref<InstanceType<C>>;
3
- }>;
4
- declare const StyledText: import("@emotion/native").StyledComponent<any, {}, {
5
- ref?: React.Ref<InstanceType<C>>;
6
- }>;
7
- declare const StyledStatus: import("@emotion/native").StyledComponent<any, {}, {
8
- ref?: React.Ref<InstanceType<C>>;
9
- }>;
10
- declare const StyledCount: import("@emotion/native").StyledComponent<any, {}, {
11
- ref?: React.Ref<InstanceType<C>>;
12
- }>;
13
- declare const StyledCountText: import("@emotion/native").StyledComponent<any, {}, {
14
- ref?: React.Ref<InstanceType<C>>;
15
- }>;
16
- declare const StyledIcon: import("@emotion/native").StyledComponent<any, {}, {
17
- ref?: React.Ref<InstanceType<C>>;
1
+ import { Animated, View } from 'react-native';
2
+ type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived' | 'neutral';
3
+ type ThemePadding = 'narrowContent' | 'wideContent';
4
+ type ThemeSize = 'medium' | 'small';
5
+ type ThemeVariant = 'filled' | 'outlined';
6
+ declare const StyledView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
7
+ theme?: import("@emotion/react").Theme;
8
+ as?: React.ElementType;
9
+ } & {
10
+ themeIntent: ThemeIntent;
11
+ themePadding: ThemePadding;
12
+ themeSize: ThemeSize;
13
+ themeVariant: ThemeVariant;
14
+ themeIsStringBadge: boolean;
15
+ }, {}, {}>;
16
+ declare const StyledText: import("@emotion/native").StyledComponent<import("../..").CaptionProps & {
17
+ theme?: import("@emotion/react").Theme;
18
+ as?: React.ElementType;
19
+ } & {
20
+ themeSize: ThemeSize;
21
+ themeIntent: ThemeIntent;
22
+ themeIsStringBadge: boolean;
23
+ }, {}, {}>;
24
+ declare const StyledStatus: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
25
+ theme?: import("@emotion/react").Theme;
26
+ as?: React.ElementType;
27
+ } & {
28
+ themeIntent: ThemeIntent;
29
+ }, {}, {}>;
30
+ declare const StyledCount: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
31
+ theme?: import("@emotion/react").Theme;
32
+ as?: React.ElementType;
33
+ }, {}, {
34
+ ref?: import("react").Ref<View> | undefined;
18
35
  }>;
36
+ declare const StyledCountText: import("@emotion/native").StyledComponent<import("../..").TextProps & {
37
+ theme?: import("@emotion/react").Theme;
38
+ as?: React.ElementType;
39
+ }, {}, {}>;
40
+ declare const StyledIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
41
+ theme?: import("@emotion/react").Theme;
42
+ as?: React.ElementType;
43
+ } & {
44
+ themeSize: ThemeSize;
45
+ }, {}, {}>;
19
46
  export { StyledCountText, StyledView, StyledText, StyledStatus, StyledIcon, StyledCount, };
@@ -1,22 +1,51 @@
1
- declare const BottomNavigationTab: import("@emotion/native").StyledComponent<any, {}, {
2
- ref?: React.Ref<InstanceType<C>>;
1
+ import { View } from 'react-native';
2
+ declare const BottomNavigationTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: React.ElementType;
5
+ } & {
6
+ themeVisibility?: boolean;
7
+ }, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
3
9
  }>;
4
- declare const BottomNavigationContainer: import("@emotion/native").StyledComponent<any, {}, {
5
- ref?: React.Ref<InstanceType<C>>;
10
+ declare const BottomNavigationContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
+ theme?: import("@emotion/react").Theme;
12
+ as?: React.ElementType;
13
+ }, {}, {
14
+ ref?: import("react").Ref<View> | undefined;
6
15
  }>;
7
- declare const ContentWrapper: import("@emotion/native").StyledComponent<any, {}, {
8
- ref?: React.Ref<InstanceType<C>>;
16
+ declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
17
+ theme?: import("@emotion/react").Theme;
18
+ as?: React.ElementType;
19
+ }, {}, {
20
+ ref?: import("react").Ref<View> | undefined;
9
21
  }>;
10
- declare const BottomBarWrapper: import("@emotion/native").StyledComponent<any, {}, {
11
- ref?: React.Ref<InstanceType<C>>;
22
+ declare const BottomBarWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
23
+ theme?: import("@emotion/react").Theme;
24
+ as?: React.ElementType;
25
+ } & {
26
+ themeInsets: {
27
+ top: number;
28
+ right: number;
29
+ bottom: number;
30
+ left: number;
31
+ };
32
+ }, {}, {
33
+ ref?: import("react").Ref<View> | undefined;
12
34
  }>;
13
- declare const BottomBar: import("@emotion/native").StyledComponent<any, {}, {
14
- ref?: React.Ref<InstanceType<C>>;
35
+ declare const BottomBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
36
+ theme?: import("@emotion/react").Theme;
37
+ as?: React.ElementType;
38
+ }, {}, {
39
+ ref?: import("react").Ref<View> | undefined;
15
40
  }>;
16
- declare const BottomBarItem: import("@emotion/native").StyledComponent<any, {}, {
17
- ref?: React.Ref<InstanceType<C>>;
18
- }>;
19
- declare const StyledBottomBarText: import("@emotion/native").StyledComponent<any, {}, {
20
- ref?: React.Ref<InstanceType<C>>;
41
+ declare const BottomBarItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
42
+ theme?: import("@emotion/react").Theme;
43
+ as?: React.ElementType;
44
+ }, {}, {
45
+ ref?: import("react").Ref<View> | undefined;
21
46
  }>;
47
+ declare const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../..").LabelProps & {
48
+ theme?: import("@emotion/react").Theme;
49
+ as?: React.ElementType;
50
+ }, {}, {}>;
22
51
  export { BottomBar, BottomBarItem, BottomNavigationTab, BottomNavigationContainer, BottomBarWrapper, ContentWrapper, StyledBottomBarText, };
@@ -1,34 +1,59 @@
1
- declare const StyledWrapper: import("@emotion/native").StyledComponent<any, {}, {
2
- ref?: React.Ref<InstanceType<C>>;
3
- }>;
4
- declare const StyledKeyboardAvoidingView: import("@emotion/native").StyledComponent<any, {}, {
5
- ref?: React.Ref<InstanceType<C>>;
6
- }>;
7
- declare const StyledFloatingWrapper: import("@emotion/native").StyledComponent<any, {}, {
8
- ref?: React.Ref<InstanceType<C>>;
9
- }>;
10
- declare const StyledFloatingBottomSheet: import("@emotion/native").StyledComponent<any, {}, {
11
- ref?: React.Ref<InstanceType<C>>;
12
- }>;
13
- declare const StyledBottomSheet: import("@emotion/native").StyledComponent<any, {}, {
14
- ref?: React.Ref<InstanceType<C>>;
15
- }>;
16
- declare const StyledBackdrop: import("@emotion/native").StyledComponent<any, {}, {
17
- ref?: React.Ref<InstanceType<C>>;
18
- }>;
19
- declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<any, {}, {
20
- ref?: React.Ref<InstanceType<C>>;
21
- }>;
22
- declare const StyledHeader: import("@emotion/native").StyledComponent<any, {}, {
23
- ref?: React.Ref<InstanceType<C>>;
24
- }>;
25
- declare const StyledFooter: import("@emotion/native").StyledComponent<any, {}, {
26
- ref?: React.Ref<InstanceType<C>>;
27
- }>;
28
- declare const StyledIconWrapper: import("@emotion/native").StyledComponent<any, {}, {
29
- ref?: React.Ref<InstanceType<C>>;
30
- }>;
31
- declare const StyledFloatingHeaderWrapper: import("@emotion/native").StyledComponent<any, {}, {
32
- ref?: React.Ref<InstanceType<C>>;
33
- }>;
1
+ import type { ViewProps, KeyboardAvoidingViewProps } from 'react-native';
2
+ import { Animated, KeyboardAvoidingView, View } from 'react-native';
3
+ declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
4
+ theme?: import("@emotion/react").Theme;
5
+ as?: React.ElementType;
6
+ }, {}, {
7
+ ref?: import("react").Ref<View> | undefined;
8
+ }>;
9
+ declare const StyledKeyboardAvoidingView: import("@emotion/native").StyledComponent<KeyboardAvoidingViewProps & {
10
+ theme?: import("@emotion/react").Theme;
11
+ as?: React.ElementType;
12
+ }, {}, {
13
+ ref?: import("react").Ref<KeyboardAvoidingView> | undefined;
14
+ }>;
15
+ declare const StyledFloatingWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-safe-area-context").NativeSafeAreaViewProps & import("react").RefAttributes<import("react").Component<import("react-native-safe-area-context/lib/typescript/src/specs/NativeSafeAreaView").NativeProps, {}, any> & import("react-native").NativeMethods>> & {
16
+ theme?: import("@emotion/react").Theme;
17
+ as?: React.ElementType;
18
+ }, {}, {}>;
19
+ declare const StyledFloatingBottomSheet: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
20
+ theme?: import("@emotion/react").Theme;
21
+ as?: React.ElementType;
22
+ }, {}, {}>;
23
+ declare const StyledBottomSheet: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-safe-area-context").NativeSafeAreaViewProps & import("react").RefAttributes<import("react").Component<import("react-native-safe-area-context/lib/typescript/src/specs/NativeSafeAreaView").NativeProps, {}, any> & import("react-native").NativeMethods>> & {
24
+ theme?: import("@emotion/react").Theme;
25
+ as?: React.ElementType;
26
+ }, {}, {}>;
27
+ declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
28
+ theme?: import("@emotion/react").Theme;
29
+ as?: React.ElementType;
30
+ }, {}, {}>;
31
+ declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<ViewProps & {
32
+ theme?: import("@emotion/react").Theme;
33
+ as?: React.ElementType;
34
+ }, {}, {
35
+ ref?: import("react").Ref<View> | undefined;
36
+ }>;
37
+ declare const StyledHeader: import("@emotion/native").StyledComponent<ViewProps & {
38
+ theme?: import("@emotion/react").Theme;
39
+ as?: React.ElementType;
40
+ }, {}, {
41
+ ref?: import("react").Ref<View> | undefined;
42
+ }>;
43
+ declare const StyledFooter: import("@emotion/native").StyledComponent<ViewProps & {
44
+ theme?: import("@emotion/react").Theme;
45
+ as?: React.ElementType;
46
+ }, {}, {
47
+ ref?: import("react").Ref<View> | undefined;
48
+ }>;
49
+ declare const StyledIconWrapper: import("@emotion/native").StyledComponent<ViewProps & {
50
+ theme?: import("@emotion/react").Theme;
51
+ as?: React.ElementType;
52
+ }, {}, {
53
+ ref?: import("react").Ref<View> | undefined;
54
+ }>;
55
+ declare const StyledFloatingHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & import("react").RefAttributes<View> & {
56
+ theme?: import("@emotion/react").Theme;
57
+ as?: React.ElementType;
58
+ }, {}, {}>;
34
59
  export { StyledBackdrop, StyledBottomSheet, StyledFloatingBottomSheet, StyledFloatingHeaderWrapper, StyledFloatingWrapper, StyledFooter, StyledHeader, StyledHeaderWrapper, StyledIconWrapper, StyledKeyboardAvoidingView, StyledWrapper, };
@@ -1,4 +1,10 @@
1
- declare const StyledBox: import("@emotion/native").StyledComponent<any, {}, {
2
- ref?: React.Ref<InstanceType<C>>;
1
+ import type { Theme } from '@emotion/react';
2
+ import { View } from 'react-native';
3
+ import type { FlexStyleProps, StyleProps } from './types';
4
+ declare const StyledBox: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
+ theme?: Theme;
6
+ as?: React.ElementType;
7
+ } & StyleProps & FlexStyleProps, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
3
9
  }>;
4
10
  export { StyledBox };
@@ -1,7 +1,19 @@
1
- declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<any, {}, {
2
- ref?: React.Ref<InstanceType<C>>;
1
+ import type { ViewProps } from 'react-native';
2
+ import { View } from 'react-native';
3
+ type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'filled-white' | 'filled-inverted' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'outlined-white' | 'outlined-inverted' | 'text-primary' | 'text-secondary' | 'text-danger' | 'text-white' | 'text-inverted';
4
+ declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
5
+ theme?: import("@emotion/react").Theme;
6
+ as?: React.ElementType;
7
+ }, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
3
9
  }>;
4
- declare const StyledLoadingDot: import("@emotion/native").StyledComponent<any, {}, {
5
- ref?: React.Ref<InstanceType<C>>;
10
+ declare const StyledLoadingDot: import("@emotion/native").StyledComponent<ViewProps & {
11
+ theme?: import("@emotion/react").Theme;
12
+ as?: React.ElementType;
13
+ } & {
14
+ size?: number;
15
+ themeVariant: ThemeVariant;
16
+ }, {}, {
17
+ ref?: import("react").Ref<View> | undefined;
6
18
  }>;
7
19
  export { StyledLoadingDot, StyledLoadingIndicatorWrapper };