@hero-design/rn 8.30.1 → 8.30.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.
@@ -1,6 +1,12 @@
1
+ import React from 'react';
1
2
  import type { StyleProp, ViewStyle } from 'react-native';
2
3
  import type { IconName } from '../../Icon';
3
4
  import type { ActionItemProps } from './ActionItem';
5
+ export declare type ActionGroupHandles = {
6
+ showFAB: () => void;
7
+ collapseFAB: () => void;
8
+ hideFAB: () => void;
9
+ };
4
10
  export interface ActionGroupProps {
5
11
  /**
6
12
  * Title of the action group header.
@@ -35,5 +41,5 @@ export interface ActionGroupProps {
35
41
  */
36
42
  testID?: string;
37
43
  }
38
- declare const ActionGroup: ({ headerTitle, onPress, active, style, items, testID, fabTitle, fabIcon, }: ActionGroupProps) => JSX.Element;
44
+ declare const ActionGroup: React.ForwardRefExoticComponent<ActionGroupProps & React.RefAttributes<ActionGroupHandles>>;
39
45
  export default ActionGroup;
@@ -1,5 +1,11 @@
1
- import type { StyleProp, ViewStyle } from 'react-native';
1
+ import React from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
2
3
  import type { IconName } from '../Icon';
4
+ export declare type FABHandles = {
5
+ show: () => void;
6
+ collapse: () => void;
7
+ hide: () => void;
8
+ };
3
9
  export interface FABProps {
4
10
  /**
5
11
  * Name of the Icon.
@@ -30,5 +36,5 @@ export interface FABProps {
30
36
  */
31
37
  testID?: string;
32
38
  }
33
- declare const FAB: ({ onPress, title, icon, animated, testID, active, style, }: FABProps) => JSX.Element;
39
+ declare const FAB: React.ForwardRefExoticComponent<FABProps & React.RefAttributes<FABHandles>>;
34
40
  export default FAB;
@@ -1,4 +1,5 @@
1
- declare const _default: (({ onPress, title, icon, animated, testID, active, style, }: import("./FAB").FABProps) => JSX.Element) & {
2
- ActionGroup: ({ headerTitle, onPress, active, style, items, testID, fabTitle, fabIcon, }: import("./ActionGroup").ActionGroupProps) => JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const _default: import("react").ForwardRefExoticComponent<import("./FAB").FABProps & import("react").RefAttributes<import("./FAB").FABHandles>> & {
3
+ ActionGroup: import("react").ForwardRefExoticComponent<import("./ActionGroup").ActionGroupProps & import("react").RefAttributes<import("./ActionGroup").ActionGroupHandles>>;
3
4
  };
4
5
  export default _default;
@@ -9,6 +9,7 @@ interface Space {
9
9
  xxsmall: number;
10
10
  xxxlarge: number;
11
11
  xxxxlarge: number;
12
+ '5xlarge': number;
12
13
  }
13
14
  declare const getSpace: (baseSpace: number) => Space;
14
15
  export { getSpace };
package/types/types.d.ts CHANGED
@@ -9,4 +9,6 @@ import type { ListRenderOptionInfo, SectionListRenderOptionInfo } from './compon
9
9
  import { SwipeableProps } from './components/Swipeable';
10
10
  import { TextProps } from './components/Typography/Text';
11
11
  import { CardCarouselHandles } from './components/Carousel/CardCarousel';
12
- export type { BottomNavigationTabType, IconName, SingleSelectProps, MultiSelectProps, ListRenderOptionInfo, SectionListRenderOptionInfo, SwipeableProps, RichTextEditorProps, RichTextEditorRef, TabType, TextInputProps, TextProps, TextInputHandles, Theme, CardCarouselHandles, };
12
+ import { FABHandles } from './components/FAB/FAB';
13
+ import { ActionGroupHandles } from './components/FAB/ActionGroup';
14
+ export type { BottomNavigationTabType, IconName, SingleSelectProps, MultiSelectProps, ListRenderOptionInfo, SectionListRenderOptionInfo, SwipeableProps, RichTextEditorProps, RichTextEditorRef, TabType, TextInputProps, TextProps, TextInputHandles, Theme, CardCarouselHandles, FABHandles, ActionGroupHandles, };