@hero-design/rn 8.131.2 → 8.131.3

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 (45) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +1 -1
  3. package/src/components/Alert/index.tsx +1 -1
  4. package/src/components/AppCue/index.tsx +1 -1
  5. package/src/components/Attachment/index.tsx +1 -1
  6. package/src/components/BottomNavigation/index.tsx +1 -1
  7. package/src/components/Carousel/index.tsx +1 -1
  8. package/src/components/Chip/index.tsx +1 -1
  9. package/src/components/ContentNavigator/index.tsx +1 -1
  10. package/src/components/Divider/index.tsx +1 -1
  11. package/src/components/Drawer/index.tsx +1 -1
  12. package/src/components/FloatingIsland/index.tsx +1 -1
  13. package/src/components/HeroDesignProvider/index.tsx +1 -1
  14. package/src/components/LocaleProvider/index.tsx +1 -1
  15. package/src/components/PinInput/index.tsx +1 -1
  16. package/src/components/Rate/index.tsx +1 -1
  17. package/src/components/RefreshControl/index.tsx +1 -1
  18. package/src/components/SectionHeading/index.tsx +1 -1
  19. package/src/components/Skeleton/index.tsx +1 -1
  20. package/src/components/Spinner/index.tsx +1 -1
  21. package/src/components/Tag/index.tsx +1 -1
  22. package/src/types.ts +99 -99
  23. package/types/components/Alert/index.d.ts +1 -1
  24. package/types/components/AppCue/index.d.ts +1 -1
  25. package/types/components/Attachment/index.d.ts +1 -1
  26. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -1
  27. package/types/components/BottomNavigation/index.d.ts +1 -1
  28. package/types/components/Carousel/index.d.ts +1 -1
  29. package/types/components/Chip/index.d.ts +1 -1
  30. package/types/components/ContentNavigator/index.d.ts +1 -1
  31. package/types/components/Divider/index.d.ts +1 -1
  32. package/types/components/Drawer/index.d.ts +1 -1
  33. package/types/components/FloatingIsland/index.d.ts +1 -1
  34. package/types/components/HeroDesignProvider/index.d.ts +1 -1
  35. package/types/components/LocaleProvider/index.d.ts +1 -1
  36. package/types/components/PinInput/index.d.ts +1 -1
  37. package/types/components/Rate/index.d.ts +1 -1
  38. package/types/components/RefreshControl/index.d.ts +1 -1
  39. package/types/components/SectionHeading/index.d.ts +1 -1
  40. package/types/components/Skeleton/index.d.ts +1 -1
  41. package/types/components/Spinner/index.d.ts +1 -1
  42. package/types/components/StatusScreens/Error/StyledError.d.ts +1 -1
  43. package/types/components/StatusScreens/Success/StyledSuccess.d.ts +1 -1
  44. package/types/components/Tag/index.d.ts +1 -1
  45. package/types/types.d.ts +89 -43
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.131.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#5158](https://github.com/Thinkei/hero-design/pull/5158) [`83dc767c00d8ba69eb03fbb50335b04e126ad4cd`](https://github.com/Thinkei/hero-design/commit/83dc767c00d8ba69eb03fbb50335b04e126ad4cd) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - Export all component Props types from the package root.
8
+
3
9
  ## 8.131.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.131.2",
3
+ "version": "8.131.3",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -92,7 +92,7 @@ interface BasicAlertProps {
92
92
  actionLabel?: string;
93
93
  }
94
94
 
95
- type AlertProps =
95
+ export type AlertProps =
96
96
  | (BasicAlertProps & {
97
97
  actionLabel?: undefined;
98
98
  })
@@ -18,7 +18,7 @@ import Icon from '../Icon';
18
18
  import { useTheme } from '../../theme';
19
19
  import { calculatePosition, calulateContentMaxWidth } from './utils';
20
20
 
21
- interface AppCueProps {
21
+ export interface AppCueProps {
22
22
  /*
23
23
  * The content of the App Cue.
24
24
  */
@@ -12,7 +12,7 @@ import Icon from '../Icon';
12
12
  import Typography from '../Typography';
13
13
  import type { ImageProps } from '../Image';
14
14
 
15
- interface AttachmentProps {
15
+ export interface AttachmentProps {
16
16
  /**
17
17
  * Attachment filename.
18
18
  */
@@ -36,7 +36,7 @@ export type BottomNavigationTabType = {
36
36
  testID?: string;
37
37
  };
38
38
  };
39
- interface BottomNavigationProps extends ViewProps {
39
+ export interface BottomNavigationProps extends ViewProps {
40
40
  /**
41
41
  * Callback which is called on tab press, receiving key of upcoming active Tab.
42
42
  */
@@ -22,7 +22,7 @@ import {
22
22
  } from './StyledCarousel';
23
23
  import type { CarouselData } from './types';
24
24
 
25
- interface CarouselProps extends ViewProps {
25
+ export interface CarouselProps extends ViewProps {
26
26
  /**
27
27
  * Additional style.
28
28
  */
@@ -14,7 +14,7 @@ type DeprecatedVariant = 'outlined' | 'filled';
14
14
 
15
15
  type ValidVariant = 'selection' | 'filter' | 'compact' | 'compact-outlined';
16
16
 
17
- interface ChipProps extends ViewProps {
17
+ export interface ChipProps extends ViewProps {
18
18
  /**
19
19
  * The label of the chip.
20
20
  */
@@ -6,7 +6,7 @@ import Button from '../Button';
6
6
  import Typography from '../Typography';
7
7
  import { useTheme } from '../../theme';
8
8
 
9
- interface ContentNavigatorProps {
9
+ export interface ContentNavigatorProps {
10
10
  /**
11
11
  * The navigator's content value.
12
12
  */
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
3
  import { StyledDivider } from './StyledDivider';
4
4
 
5
- interface DividerProps extends ViewProps {
5
+ export interface DividerProps extends ViewProps {
6
6
  /**
7
7
  * Horizontal margin size. There is no margin by default.
8
8
  */
@@ -12,7 +12,7 @@ import {
12
12
 
13
13
  const BACKDROP_OPACITY = 0.56;
14
14
 
15
- interface DrawerProps {
15
+ export interface DrawerProps {
16
16
  /**
17
17
  * Drawer's visibility.
18
18
  */
@@ -9,7 +9,7 @@ import {
9
9
  } from './StyledFloatingIsland';
10
10
  import type { IconName } from '../Icon';
11
11
 
12
- interface FloatingIslandProps extends TouchableOpacityProps {
12
+ export interface FloatingIslandProps extends TouchableOpacityProps {
13
13
  /**
14
14
  * Callback that is called when the floating island is pressed.
15
15
  */
@@ -7,7 +7,7 @@ import LocaleProvider from '../LocaleProvider';
7
7
  import type { LocaleValues } from '../../locales/types';
8
8
  import enAULocale from '../../locales/en_AU';
9
9
 
10
- interface HeroDesignProviderProps extends ThemeProviderProps {
10
+ export interface HeroDesignProviderProps extends ThemeProviderProps {
11
11
  locale?: LocaleValues;
12
12
  }
13
13
 
@@ -4,7 +4,7 @@ import { LocaleContext } from './context';
4
4
  import { getDateFnsLocale } from './utils';
5
5
  import type { LocaleValues } from '../../locales/types';
6
6
 
7
- interface LocaleProviderProps {
7
+ export interface LocaleProviderProps {
8
8
  locale: LocaleValues;
9
9
  }
10
10
 
@@ -22,7 +22,7 @@ import {
22
22
  } from './StyledPinInput';
23
23
  import type { State } from './StyledPinInput';
24
24
 
25
- interface PinInputProps {
25
+ export interface PinInputProps {
26
26
  /**
27
27
  * The value to show for the input.
28
28
  */
@@ -8,7 +8,7 @@ interface RateOption<T extends string | number> {
8
8
  value: T;
9
9
  }
10
10
 
11
- interface RateProps<T extends string | number> extends ViewProps {
11
+ export interface RateProps<T extends string | number> extends ViewProps {
12
12
  /**
13
13
  * Options for rate component.
14
14
  */
@@ -3,7 +3,7 @@ import type { RefreshControlProps as NativeRefreshControlProps } from 'react-nat
3
3
  import { RefreshControl as NativeRefreshControl } from 'react-native';
4
4
  import { useTheme } from '../../theme';
5
5
 
6
- type RefreshControlProps = Omit<
6
+ export type RefreshControlProps = Omit<
7
7
  NativeRefreshControlProps,
8
8
  'colors' | 'tintColor'
9
9
  >;
@@ -11,7 +11,7 @@ import {
11
11
  import type { IconName, IconProps } from '../Icon';
12
12
  import { useDeprecation } from '../../utils/hooks';
13
13
 
14
- interface SectionHeadingProps extends ViewProps {
14
+ export interface SectionHeadingProps extends ViewProps {
15
15
  /**
16
16
  * Heading text.
17
17
  */
@@ -12,7 +12,7 @@ import type { Theme } from '../../theme';
12
12
  import { useTheme } from '../../theme';
13
13
  import { StyledContainer, StyledGradientContainer } from './StyledSkeleton';
14
14
 
15
- interface SkeletonProps extends ViewProps {
15
+ export interface SkeletonProps extends ViewProps {
16
16
  /**
17
17
  * Intent of the component.
18
18
  */
@@ -4,7 +4,7 @@ import type { ViewProps } from 'react-native';
4
4
  import { StyledSpinnerContainer, StyledView } from './StyledSpinner';
5
5
  import { AnimatedSpinner } from './AnimatedSpinner';
6
6
 
7
- interface SpinnerProps extends ViewProps {
7
+ export interface SpinnerProps extends ViewProps {
8
8
  /**
9
9
  * Size of Spinner.
10
10
  */
@@ -5,7 +5,7 @@ import { StyledText, StyledView, StyledTagIcon } from './StyledTag';
5
5
  import { useDeprecation } from '../../utils/hooks';
6
6
  import type { IconName } from '../Icon';
7
7
 
8
- interface TagProps extends ViewProps {
8
+ export interface TagProps extends ViewProps {
9
9
  /**
10
10
  * Content of the Tag.
11
11
  */
package/src/types.ts CHANGED
@@ -1,119 +1,119 @@
1
- import type { BottomNavigationTabType } from './components/BottomNavigation';
2
- import type { IconName, IconProps } from './components/Icon';
3
- import type { SingleSelectProps, MultiSelectProps } from './components/Select';
4
- import type { TabType } from './components/Tabs';
5
- import type { TextInputProps, TextInputHandles } from './components/TextInput';
6
- import type {
1
+ export type {
2
+ BottomNavigationTabType,
3
+ BottomNavigationProps,
4
+ } from './components/BottomNavigation';
5
+ export type { IconName, IconProps } from './components/Icon';
6
+ export type { SingleSelectProps, MultiSelectProps } from './components/Select';
7
+ export type { TabType, TabsHeaderProps, TabsProps } from './components/Tabs';
8
+ export type { TextInputProps, TextInputHandles } from './components/TextInput';
9
+ export type {
7
10
  RichTextEditorRef,
8
11
  RichTextEditorProps,
9
12
  } from './components/RichTextEditor';
10
- import type { Theme } from './theme';
11
- import type {
13
+ export type { Theme } from './theme';
14
+ export type {
12
15
  ListRenderOptionInfo,
13
16
  SectionListRenderOptionInfo,
14
17
  SelectOptionType,
15
18
  } from './components/Select/types';
16
- import type { SwipeableProps } from './components/Swipeable';
17
- import type { TextProps } from './components/Typography/Text';
18
- import type { CardCarouselHandles } from './components/Carousel/CardCarousel';
19
- import type { FABHandles } from './components/FAB/FAB';
20
- import type {
19
+ export type { SwipeableProps } from './components/Swipeable';
20
+ export type { TextProps } from './components/Typography/Text';
21
+ export type {
22
+ CardCarouselHandles,
23
+ CardCarouselProps,
24
+ } from './components/Carousel/CardCarousel';
25
+ export type { FABHandles, FABProps } from './components/FAB/FAB';
26
+ export type {
21
27
  ActionGroupHandles,
22
28
  ActionGroupProps,
23
29
  } from './components/FAB/ActionGroup';
24
- import type { ActionItemProps } from './components/FAB/ActionGroup/ActionItem';
25
- import type { SliderRangeValue } from './components/Slider/RangeSlider';
26
- import type { CalendarDateRange } from './components/Calendar/CalendarRange';
27
- import type {
30
+ export type { ActionItemProps } from './components/FAB/ActionGroup/ActionItem';
31
+ export type { SliderRangeValue } from './components/Slider/RangeSlider';
32
+ export type { CalendarDateRange } from './components/Calendar/CalendarRange';
33
+ export type {
28
34
  LocaleCode,
29
35
  LocaleValues,
30
36
  DateTimeFormats,
31
37
  } from './locales/types';
32
- import type { ColumnChartProps } from './components/Chart/ColumnChart';
33
- import type { LineChartProps } from './components/Chart/Line';
34
- import type { Scale, SystemPalette } from './theme/global';
35
- import type {
38
+ export type { ColumnChartProps } from './components/Chart/ColumnChart';
39
+ export type { LineChartProps } from './components/Chart/Line';
40
+ export type { Scale, SystemPalette } from './theme/global';
41
+ export type {
36
42
  BrandSystemPalette,
37
43
  GlobalSystemPalette,
38
44
  } from './theme/global/colors/types';
39
- import type { ToolbarItemProps } from './components/Toolbar/ToolbarItem';
40
- import type { CheckboxProps } from './components/Checkbox';
41
- import type { SwitchOptionType } from './components/Switch/SelectorSwitch';
42
- import type { BoxProps } from './components/Box';
43
- import type { BodyProps } from './components/Typography/Body';
44
- import type { ToolbarButtonName } from './components/RichTextEditor/types';
45
- import type { ListItemProps } from './components/List/ListItem';
46
- import type { IconButtonProps } from './components/Button/IconButton';
47
- import type { BadgeProps } from './components/Badge';
48
- import type { ToastProps } from './components/Toast/types';
49
- import type { Space } from './theme/global/space';
50
- import type { CaptionProps } from './components/Typography/Caption';
51
- import type { Radii } from './theme/global/borders';
52
- import type { TitleProps } from './components/Typography/Title';
53
- import type {
54
- CarouselData,
55
- CarouselImageProps,
56
- } from './components/Carousel/types';
57
- import type { PinInputHandler } from './components/PinInput';
58
- import type { ThemeScale } from './components/Box/types';
59
- import type { TimePickerProps } from './components/TimePicker/types';
60
- import type { DatePickerProps } from './components/DatePicker/types';
61
- import type { SegmentedControlItemConfig } from './components/SegmentedControl/types';
62
- import type { ProgressSegmentedBarProps } from './components/Progress/SegmentedBar/types';
63
-
45
+ export type { ToolbarItemProps } from './components/Toolbar/ToolbarItem';
46
+ export type { CheckboxProps } from './components/Checkbox';
47
+ export type { SwitchOptionType } from './components/Switch/SelectorSwitch';
48
+ export type { BoxProps } from './components/Box';
49
+ export type { BodyProps } from './components/Typography/Body';
50
+ export type { ToolbarButtonName } from './components/RichTextEditor/types';
51
+ export type { ListItemProps } from './components/List/ListItem';
52
+ export type { IconButtonProps } from './components/Button/IconButton';
53
+ export type { BadgeProps } from './components/Badge';
54
+ export type {
55
+ ToastProps,
56
+ ToastContainerProps,
57
+ ToastItemProps,
58
+ } from './components/Toast/types';
59
+ export type { Space } from './theme/global/space';
60
+ export type { CaptionProps } from './components/Typography/Caption';
61
+ export type { Radii } from './theme/global/borders';
62
+ export type { TitleProps } from './components/Typography/Title';
64
63
  export type {
65
- Space,
66
- CaptionProps,
67
- Radii,
68
- TitleProps,
69
64
  CarouselData,
70
65
  CarouselImageProps,
71
- PinInputHandler,
72
- ThemeScale,
73
- ToastProps,
74
- ActionGroupProps,
75
- ToolbarItemProps,
76
- BottomNavigationTabType,
77
- IconName,
78
- SingleSelectProps,
79
- MultiSelectProps,
80
- ListRenderOptionInfo,
81
- SectionListRenderOptionInfo,
82
- SelectOptionType,
83
- SwipeableProps,
84
- RichTextEditorProps,
85
- RichTextEditorRef,
86
- TabType,
87
- TextInputProps,
88
- TextProps,
89
- TextInputHandles,
90
- Theme,
91
- CardCarouselHandles,
92
- FABHandles,
93
- ActionGroupHandles,
94
- ActionItemProps,
95
- SliderRangeValue,
96
- CalendarDateRange,
97
- LocaleCode,
98
- LocaleValues,
99
- DateTimeFormats,
100
- ColumnChartProps,
101
- LineChartProps,
102
- Scale,
103
- SystemPalette,
104
- BrandSystemPalette,
105
- GlobalSystemPalette,
106
- IconProps,
107
- CheckboxProps,
108
- SwitchOptionType,
109
- BoxProps,
110
- BodyProps,
111
- ToolbarButtonName,
112
- ListItemProps,
113
- IconButtonProps,
114
- BadgeProps,
115
- TimePickerProps,
116
- DatePickerProps,
117
- SegmentedControlItemConfig,
118
- ProgressSegmentedBarProps,
119
- };
66
+ } from './components/Carousel/types';
67
+ export type { PinInputHandler, PinInputProps } from './components/PinInput';
68
+ export type { ThemeScale } from './components/Box/types';
69
+ export type { TimePickerProps } from './components/TimePicker/types';
70
+ export type { DatePickerProps } from './components/DatePicker/types';
71
+ export type { SegmentedControlItemConfig } from './components/SegmentedControl/types';
72
+ export type { ProgressSegmentedBarProps } from './components/Progress/SegmentedBar/types';
73
+ export type { DragableDrawerProps } from './components/Drawer/DragableDrawer';
74
+ export type { DragableScrollViewProps } from './components/Drawer/DragableDrawer/DragableScrollView';
75
+ export type { PortalHostProps } from './components/Portal/PortalHost';
76
+ export type { PortalProviderProps } from './components/Portal/PortalProvider';
77
+ export type { ToolbarGroupProps } from './components/Toolbar/ToolbarGroup';
78
+ export type { InlineCheckboxProps } from './components/Checkbox/InlineCheckBox';
79
+ export type { EditorToolbarProps } from './components/RichTextEditor/EditorToolbar';
80
+ export type { RichTextEditorInputProps } from './components/RichTextEditor/RichTextEditorInput';
81
+ export type { AccordionProps } from './components/Accordion';
82
+ export type { AlertProps } from './components/Alert';
83
+ export type { AppCueProps } from './components/AppCue';
84
+ export type { AttachmentProps } from './components/Attachment';
85
+ export type { AvatarProps } from './components/Avatar/Avatar';
86
+ export type { AvatarStackProps } from './components/Avatar/AvatarStack';
87
+ export type { BottomSheetProps } from './components/BottomSheet';
88
+ export type { ButtonProps } from './components/Button/Button';
89
+ export type { CalendarProps } from './components/Calendar/types';
90
+ export type { CardProps } from './components/Card';
91
+ export type { CarouselProps } from './components/Carousel';
92
+ export type { ChipProps } from './components/Chip';
93
+ export type { CollapseProps } from './components/Collapse';
94
+ export type { ContentNavigatorProps } from './components/ContentNavigator';
95
+ export type { DividerProps } from './components/Divider';
96
+ export type { DrawerProps } from './components/Drawer';
97
+ export type { FilterTriggerProps } from './components/FilterTrigger';
98
+ export type { FloatingIslandProps } from './components/FloatingIsland';
99
+ export type { HeroDesignProviderProps } from './components/HeroDesignProvider';
100
+ export type { ImageProps } from './components/Image';
101
+ export type { InlineLoaderProps } from './components/InlineLoader';
102
+ export type { LabelProps } from './components/Typography/Label';
103
+ export type { LocaleProviderProps } from './components/LocaleProvider';
104
+ export type { MapPinProps } from './components/MapPin/types';
105
+ export type { ModalProps } from './components/Modal';
106
+ export type { PageControlProps } from './components/PageControl';
107
+ export type { ProgressBarProps } from './components/Progress/ProgressBar';
108
+ export type { ProgressCircleProps } from './components/Progress/ProgressCircle';
109
+ export type { ProgressStepProps } from './components/Progress/ProgressStep';
110
+ export type { RadioGroupProps } from './components/Radio/RadioGroup';
111
+ export type { RateProps } from './components/Rate';
112
+ export type { RefreshControlProps } from './components/RefreshControl';
113
+ export type { SectionHeadingProps } from './components/SectionHeading';
114
+ export type { SegmentedControlProps } from './components/SegmentedControl';
115
+ export type { SingleSliderProps } from './components/Slider/SingleSlider';
116
+ export type { SkeletonProps } from './components/Skeleton';
117
+ export type { SpinnerProps } from './components/Spinner';
118
+ export type { SwitchProps } from './components/Switch';
119
+ export type { TagProps } from './components/Tag';
@@ -52,7 +52,7 @@ interface BasicAlertProps {
52
52
  */
53
53
  actionLabel?: string;
54
54
  }
55
- type AlertProps = (BasicAlertProps & {
55
+ export type AlertProps = (BasicAlertProps & {
56
56
  actionLabel?: undefined;
57
57
  }) | (BasicAlertProps & {
58
58
  onClose: () => void;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { StyleProp, ViewStyle } from 'react-native';
3
3
  import type { Placement } from './StyledAppCue';
4
- interface AppCueProps {
4
+ export interface AppCueProps {
5
5
  content: string | React.ReactElement;
6
6
  target: React.ReactElement<{
7
7
  onPress?: () => void;
@@ -3,7 +3,7 @@ import type { ReactElement } from 'react';
3
3
  import type { StyleProp, ViewStyle } from 'react-native';
4
4
  import type { IconProps } from '../Icon';
5
5
  import type { ImageProps } from '../Image';
6
- interface AttachmentProps {
6
+ export interface AttachmentProps {
7
7
  /**
8
8
  * Attachment filename.
9
9
  */
@@ -44,7 +44,7 @@ declare const BottomBarItem: import("@emotion/native").StyledComponent<import("r
44
44
  }, {}, {
45
45
  ref?: import("react").Ref<View> | undefined;
46
46
  }>;
47
- declare const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../Typography/Label").LabelProps & {
47
+ declare const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../..").LabelProps & {
48
48
  theme?: import("@emotion/react").Theme;
49
49
  as?: React.ElementType;
50
50
  }, {}, {}>;
@@ -19,7 +19,7 @@ export type BottomNavigationTabType = {
19
19
  testID?: string;
20
20
  };
21
21
  };
22
- interface BottomNavigationProps extends ViewProps {
22
+ export interface BottomNavigationProps extends ViewProps {
23
23
  /**
24
24
  * Callback which is called on tab press, receiving key of upcoming active Tab.
25
25
  */
@@ -2,7 +2,7 @@ import type { Dispatch, ReactElement, SetStateAction } from 'react';
2
2
  import React from 'react';
3
3
  import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
4
4
  import type { CarouselData } from './types';
5
- interface CarouselProps extends ViewProps {
5
+ export interface CarouselProps extends ViewProps {
6
6
  /**
7
7
  * Additional style.
8
8
  */
@@ -7,7 +7,7 @@ import type { IconName } from '../Icon';
7
7
  */
8
8
  type DeprecatedVariant = 'outlined' | 'filled';
9
9
  type ValidVariant = 'selection' | 'filter' | 'compact' | 'compact-outlined';
10
- interface ChipProps extends ViewProps {
10
+ export interface ChipProps extends ViewProps {
11
11
  /**
12
12
  * The label of the chip.
13
13
  */
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ReactElement } from 'react';
3
3
  import type { StyleProp, ViewStyle } from 'react-native';
4
- interface ContentNavigatorProps {
4
+ export interface ContentNavigatorProps {
5
5
  /**
6
6
  * The navigator's content value.
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
3
- interface DividerProps extends ViewProps {
3
+ export interface DividerProps extends ViewProps {
4
4
  /**
5
5
  * Horizontal margin size. There is no margin by default.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
- interface DrawerProps {
2
+ export interface DrawerProps {
3
3
  /**
4
4
  * Drawer's visibility.
5
5
  */
@@ -2,7 +2,7 @@ import type { ReactNode } from 'react';
2
2
  import React from 'react';
3
3
  import type { TouchableOpacityProps } from 'react-native';
4
4
  import type { IconName } from '../Icon';
5
- interface FloatingIslandProps extends TouchableOpacityProps {
5
+ export interface FloatingIslandProps extends TouchableOpacityProps {
6
6
  /**
7
7
  * Callback that is called when the floating island is pressed.
8
8
  */
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ThemeProviderProps } from '../../theme/ThemeProvider';
3
3
  import type { LocaleValues } from '../../locales/types';
4
- interface HeroDesignProviderProps extends ThemeProviderProps {
4
+ export interface HeroDesignProviderProps extends ThemeProviderProps {
5
5
  locale?: LocaleValues;
6
6
  }
7
7
  declare const HeroDesignProvider: ({ theme, locale, children, }: HeroDesignProviderProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { LocaleValues } from '../../locales/types';
3
- interface LocaleProviderProps {
3
+ export interface LocaleProviderProps {
4
4
  locale: LocaleValues;
5
5
  }
6
6
  declare const LocaleProvider: (props: React.PropsWithChildren<LocaleProviderProps>) => React.JSX.Element;
@@ -2,7 +2,7 @@ import type { ComponentProps } from 'react';
2
2
  import React from 'react';
3
3
  import type { StyleProp, ViewStyle, TextInput } from 'react-native';
4
4
  import type { State } from './StyledPinInput';
5
- interface PinInputProps {
5
+ export interface PinInputProps {
6
6
  /**
7
7
  * The value to show for the input.
8
8
  */
@@ -3,7 +3,7 @@ import type { ViewProps } from 'react-native';
3
3
  interface RateOption<T extends string | number> {
4
4
  value: T;
5
5
  }
6
- interface RateProps<T extends string | number> extends ViewProps {
6
+ export interface RateProps<T extends string | number> extends ViewProps {
7
7
  /**
8
8
  * Options for rate component.
9
9
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { RefreshControlProps as NativeRefreshControlProps } from 'react-native';
3
- type RefreshControlProps = Omit<NativeRefreshControlProps, 'colors' | 'tintColor'>;
3
+ export type RefreshControlProps = Omit<NativeRefreshControlProps, 'colors' | 'tintColor'>;
4
4
  declare const RefreshControl: ({ ...props }: RefreshControlProps) => React.JSX.Element;
5
5
  export default RefreshControl;
@@ -1,7 +1,7 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
3
3
  import type { IconName, IconProps } from '../Icon';
4
- interface SectionHeadingProps extends ViewProps {
4
+ export interface SectionHeadingProps extends ViewProps {
5
5
  /**
6
6
  * Heading text.
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { ViewProps } from 'react-native';
3
- interface SkeletonProps extends ViewProps {
3
+ export interface SkeletonProps extends ViewProps {
4
4
  /**
5
5
  * Intent of the component.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { ViewProps } from 'react-native';
3
- interface SpinnerProps extends ViewProps {
3
+ export interface SpinnerProps extends ViewProps {
4
4
  /**
5
5
  * Size of Spinner.
6
6
  */
@@ -24,7 +24,7 @@ declare const StyledErrorButtonContainer: import("@emotion/native").StyledCompon
24
24
  }, {}, {
25
25
  ref?: import("react").Ref<View> | undefined;
26
26
  }>;
27
- declare const StyledErrorButtonSecondary: import("@emotion/native").StyledComponent<import("../../Button/Button").ButtonProps & {
27
+ declare const StyledErrorButtonSecondary: import("@emotion/native").StyledComponent<import("../../..").ButtonProps & {
28
28
  theme?: import("@emotion/react").Theme;
29
29
  as?: React.ElementType;
30
30
  }, {}, {}>;
@@ -44,7 +44,7 @@ declare const StyledSuccessButtonContainer: import("@emotion/native").StyledComp
44
44
  }, {}, {
45
45
  ref?: import("react").Ref<View> | undefined;
46
46
  }>;
47
- declare const StyledSuccessButtonSecondary: import("@emotion/native").StyledComponent<import("../../Button/Button").ButtonProps & {
47
+ declare const StyledSuccessButtonSecondary: import("@emotion/native").StyledComponent<import("../../..").ButtonProps & {
48
48
  theme?: import("@emotion/react").Theme;
49
49
  as?: React.ElementType;
50
50
  }, {}, {}>;
@@ -1,7 +1,7 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
3
3
  import type { IconName } from '../Icon';
4
- interface TagProps extends ViewProps {
4
+ export interface TagProps extends ViewProps {
5
5
  /**
6
6
  * Content of the Tag.
7
7
  */
package/types/types.d.ts CHANGED
@@ -1,43 +1,89 @@
1
- import type { BottomNavigationTabType } from './components/BottomNavigation';
2
- import type { IconName, IconProps } from './components/Icon';
3
- import type { SingleSelectProps, MultiSelectProps } from './components/Select';
4
- import type { TabType } from './components/Tabs';
5
- import type { TextInputProps, TextInputHandles } from './components/TextInput';
6
- import type { RichTextEditorRef, RichTextEditorProps } from './components/RichTextEditor';
7
- import type { Theme } from './theme';
8
- import type { ListRenderOptionInfo, SectionListRenderOptionInfo, SelectOptionType } from './components/Select/types';
9
- import type { SwipeableProps } from './components/Swipeable';
10
- import type { TextProps } from './components/Typography/Text';
11
- import type { CardCarouselHandles } from './components/Carousel/CardCarousel';
12
- import type { FABHandles } from './components/FAB/FAB';
13
- import type { ActionGroupHandles, ActionGroupProps } from './components/FAB/ActionGroup';
14
- import type { ActionItemProps } from './components/FAB/ActionGroup/ActionItem';
15
- import type { SliderRangeValue } from './components/Slider/RangeSlider';
16
- import type { CalendarDateRange } from './components/Calendar/CalendarRange';
17
- import type { LocaleCode, LocaleValues, DateTimeFormats } from './locales/types';
18
- import type { ColumnChartProps } from './components/Chart/ColumnChart';
19
- import type { LineChartProps } from './components/Chart/Line';
20
- import type { Scale, SystemPalette } from './theme/global';
21
- import type { BrandSystemPalette, GlobalSystemPalette } from './theme/global/colors/types';
22
- import type { ToolbarItemProps } from './components/Toolbar/ToolbarItem';
23
- import type { CheckboxProps } from './components/Checkbox';
24
- import type { SwitchOptionType } from './components/Switch/SelectorSwitch';
25
- import type { BoxProps } from './components/Box';
26
- import type { BodyProps } from './components/Typography/Body';
27
- import type { ToolbarButtonName } from './components/RichTextEditor/types';
28
- import type { ListItemProps } from './components/List/ListItem';
29
- import type { IconButtonProps } from './components/Button/IconButton';
30
- import type { BadgeProps } from './components/Badge';
31
- import type { ToastProps } from './components/Toast/types';
32
- import type { Space } from './theme/global/space';
33
- import type { CaptionProps } from './components/Typography/Caption';
34
- import type { Radii } from './theme/global/borders';
35
- import type { TitleProps } from './components/Typography/Title';
36
- import type { CarouselData, CarouselImageProps } from './components/Carousel/types';
37
- import type { PinInputHandler } from './components/PinInput';
38
- import type { ThemeScale } from './components/Box/types';
39
- import type { TimePickerProps } from './components/TimePicker/types';
40
- import type { DatePickerProps } from './components/DatePicker/types';
41
- import type { SegmentedControlItemConfig } from './components/SegmentedControl/types';
42
- import type { ProgressSegmentedBarProps } from './components/Progress/SegmentedBar/types';
43
- export type { Space, CaptionProps, Radii, TitleProps, CarouselData, CarouselImageProps, PinInputHandler, ThemeScale, ToastProps, ActionGroupProps, ToolbarItemProps, BottomNavigationTabType, IconName, SingleSelectProps, MultiSelectProps, ListRenderOptionInfo, SectionListRenderOptionInfo, SelectOptionType, SwipeableProps, RichTextEditorProps, RichTextEditorRef, TabType, TextInputProps, TextProps, TextInputHandles, Theme, CardCarouselHandles, FABHandles, ActionGroupHandles, ActionItemProps, SliderRangeValue, CalendarDateRange, LocaleCode, LocaleValues, DateTimeFormats, ColumnChartProps, LineChartProps, Scale, SystemPalette, BrandSystemPalette, GlobalSystemPalette, IconProps, CheckboxProps, SwitchOptionType, BoxProps, BodyProps, ToolbarButtonName, ListItemProps, IconButtonProps, BadgeProps, TimePickerProps, DatePickerProps, SegmentedControlItemConfig, ProgressSegmentedBarProps, };
1
+ export type { BottomNavigationTabType, BottomNavigationProps, } from './components/BottomNavigation';
2
+ export type { IconName, IconProps } from './components/Icon';
3
+ export type { SingleSelectProps, MultiSelectProps } from './components/Select';
4
+ export type { TabType, TabsHeaderProps, TabsProps } from './components/Tabs';
5
+ export type { TextInputProps, TextInputHandles } from './components/TextInput';
6
+ export type { RichTextEditorRef, RichTextEditorProps, } from './components/RichTextEditor';
7
+ export type { Theme } from './theme';
8
+ export type { ListRenderOptionInfo, SectionListRenderOptionInfo, SelectOptionType, } from './components/Select/types';
9
+ export type { SwipeableProps } from './components/Swipeable';
10
+ export type { TextProps } from './components/Typography/Text';
11
+ export type { CardCarouselHandles, CardCarouselProps, } from './components/Carousel/CardCarousel';
12
+ export type { FABHandles, FABProps } from './components/FAB/FAB';
13
+ export type { ActionGroupHandles, ActionGroupProps, } from './components/FAB/ActionGroup';
14
+ export type { ActionItemProps } from './components/FAB/ActionGroup/ActionItem';
15
+ export type { SliderRangeValue } from './components/Slider/RangeSlider';
16
+ export type { CalendarDateRange } from './components/Calendar/CalendarRange';
17
+ export type { LocaleCode, LocaleValues, DateTimeFormats, } from './locales/types';
18
+ export type { ColumnChartProps } from './components/Chart/ColumnChart';
19
+ export type { LineChartProps } from './components/Chart/Line';
20
+ export type { Scale, SystemPalette } from './theme/global';
21
+ export type { BrandSystemPalette, GlobalSystemPalette, } from './theme/global/colors/types';
22
+ export type { ToolbarItemProps } from './components/Toolbar/ToolbarItem';
23
+ export type { CheckboxProps } from './components/Checkbox';
24
+ export type { SwitchOptionType } from './components/Switch/SelectorSwitch';
25
+ export type { BoxProps } from './components/Box';
26
+ export type { BodyProps } from './components/Typography/Body';
27
+ export type { ToolbarButtonName } from './components/RichTextEditor/types';
28
+ export type { ListItemProps } from './components/List/ListItem';
29
+ export type { IconButtonProps } from './components/Button/IconButton';
30
+ export type { BadgeProps } from './components/Badge';
31
+ export type { ToastProps, ToastContainerProps, ToastItemProps, } from './components/Toast/types';
32
+ export type { Space } from './theme/global/space';
33
+ export type { CaptionProps } from './components/Typography/Caption';
34
+ export type { Radii } from './theme/global/borders';
35
+ export type { TitleProps } from './components/Typography/Title';
36
+ export type { CarouselData, CarouselImageProps, } from './components/Carousel/types';
37
+ export type { PinInputHandler, PinInputProps } from './components/PinInput';
38
+ export type { ThemeScale } from './components/Box/types';
39
+ export type { TimePickerProps } from './components/TimePicker/types';
40
+ export type { DatePickerProps } from './components/DatePicker/types';
41
+ export type { SegmentedControlItemConfig } from './components/SegmentedControl/types';
42
+ export type { ProgressSegmentedBarProps } from './components/Progress/SegmentedBar/types';
43
+ export type { DragableDrawerProps } from './components/Drawer/DragableDrawer';
44
+ export type { DragableScrollViewProps } from './components/Drawer/DragableDrawer/DragableScrollView';
45
+ export type { PortalHostProps } from './components/Portal/PortalHost';
46
+ export type { PortalProviderProps } from './components/Portal/PortalProvider';
47
+ export type { ToolbarGroupProps } from './components/Toolbar/ToolbarGroup';
48
+ export type { InlineCheckboxProps } from './components/Checkbox/InlineCheckBox';
49
+ export type { EditorToolbarProps } from './components/RichTextEditor/EditorToolbar';
50
+ export type { RichTextEditorInputProps } from './components/RichTextEditor/RichTextEditorInput';
51
+ export type { AccordionProps } from './components/Accordion';
52
+ export type { AlertProps } from './components/Alert';
53
+ export type { AppCueProps } from './components/AppCue';
54
+ export type { AttachmentProps } from './components/Attachment';
55
+ export type { AvatarProps } from './components/Avatar/Avatar';
56
+ export type { AvatarStackProps } from './components/Avatar/AvatarStack';
57
+ export type { BottomSheetProps } from './components/BottomSheet';
58
+ export type { ButtonProps } from './components/Button/Button';
59
+ export type { CalendarProps } from './components/Calendar/types';
60
+ export type { CardProps } from './components/Card';
61
+ export type { CarouselProps } from './components/Carousel';
62
+ export type { ChipProps } from './components/Chip';
63
+ export type { CollapseProps } from './components/Collapse';
64
+ export type { ContentNavigatorProps } from './components/ContentNavigator';
65
+ export type { DividerProps } from './components/Divider';
66
+ export type { DrawerProps } from './components/Drawer';
67
+ export type { FilterTriggerProps } from './components/FilterTrigger';
68
+ export type { FloatingIslandProps } from './components/FloatingIsland';
69
+ export type { HeroDesignProviderProps } from './components/HeroDesignProvider';
70
+ export type { ImageProps } from './components/Image';
71
+ export type { InlineLoaderProps } from './components/InlineLoader';
72
+ export type { LabelProps } from './components/Typography/Label';
73
+ export type { LocaleProviderProps } from './components/LocaleProvider';
74
+ export type { MapPinProps } from './components/MapPin/types';
75
+ export type { ModalProps } from './components/Modal';
76
+ export type { PageControlProps } from './components/PageControl';
77
+ export type { ProgressBarProps } from './components/Progress/ProgressBar';
78
+ export type { ProgressCircleProps } from './components/Progress/ProgressCircle';
79
+ export type { ProgressStepProps } from './components/Progress/ProgressStep';
80
+ export type { RadioGroupProps } from './components/Radio/RadioGroup';
81
+ export type { RateProps } from './components/Rate';
82
+ export type { RefreshControlProps } from './components/RefreshControl';
83
+ export type { SectionHeadingProps } from './components/SectionHeading';
84
+ export type { SegmentedControlProps } from './components/SegmentedControl';
85
+ export type { SingleSliderProps } from './components/Slider/SingleSlider';
86
+ export type { SkeletonProps } from './components/Skeleton';
87
+ export type { SpinnerProps } from './components/Spinner';
88
+ export type { SwitchProps } from './components/Switch';
89
+ export type { TagProps } from './components/Tag';