@hero-design/rn 8.36.3 → 8.38.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.
@@ -9,6 +9,7 @@ export type ActionGroupHandles = {
9
9
  };
10
10
  export interface ActionGroupProps {
11
11
  /**
12
+ * @deprecated headerTitle will be removed in the next major release.
12
13
  * Title of the action group header.
13
14
  */
14
15
  headerTitle?: string;
@@ -16,6 +17,10 @@ export interface ActionGroupProps {
16
17
  * This function is called on pressing the FAB button.
17
18
  * */
18
19
  onPress?: () => void;
20
+ /**
21
+ * This function is called on pressing the FAB backdrop.
22
+ * */
23
+ onBackdropPress?: () => void;
19
24
  /**
20
25
  * Specify if the FAB button is in active state and the action group is shown.
21
26
  * */
@@ -0,0 +1,3 @@
1
+ import { ThemeProviderProps } from '../../theme/ThemeProvider';
2
+ declare const HeroDesignProvider: ({ theme, children }: ThemeProviderProps) => JSX.Element;
3
+ export default HeroDesignProvider;
package/types/index.d.ts CHANGED
@@ -21,6 +21,7 @@ import Drawer from './components/Drawer';
21
21
  import Empty from './components/Empty';
22
22
  import Error from './components/Error';
23
23
  import FAB from './components/FAB';
24
+ import HeroDesignProvider from './components/HeroDesignProvider';
24
25
  import Icon from './components/Icon';
25
26
  import Image from './components/Image';
26
27
  import List from './components/List';
@@ -48,5 +49,5 @@ import RefreshControl from './components/RefreshControl';
48
49
  import RichTextEditor from './components/RichTextEditor';
49
50
  import PageControl from './components/PageControl';
50
51
  import Portal from './components/Portal';
51
- export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, Icon, Image, List, Modal, PinInput, Progress, Portal, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, SectionHeading, Select, Success, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, Rate, RefreshControl, RichTextEditor, };
52
+ export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, Icon, Image, HeroDesignProvider, List, Modal, PinInput, Progress, Portal, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, SectionHeading, Select, Success, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, Rate, RefreshControl, RichTextEditor, };
52
53
  export * from './types';
@@ -4,12 +4,10 @@ declare const getFABTheme: (theme: GlobalTheme) => {
4
4
  actionItem: number;
5
5
  };
6
6
  fonts: {
7
- header: string;
8
7
  actionItemText: string;
9
8
  title: string;
10
9
  };
11
10
  fontSizes: {
12
- header: number;
13
11
  actionItemText: number;
14
12
  title: number;
15
13
  };
@@ -18,7 +16,6 @@ declare const getFABTheme: (theme: GlobalTheme) => {
18
16
  buttonPressedBackground: string;
19
17
  buttonActiveBackground: string;
20
18
  icon: string;
21
- headerText: string;
22
19
  actionItemBackground: string;
23
20
  actionItemPressedBackground: string;
24
21
  backdropBackground: string;
@@ -32,7 +29,6 @@ declare const getFABTheme: (theme: GlobalTheme) => {
32
29
  iconContainerHeight: number;
33
30
  };
34
31
  lineHeights: {
35
- header: number;
36
32
  actionItemText: number;
37
33
  title: number;
38
34
  icon: number;
@@ -54,8 +50,6 @@ declare const getFABTheme: (theme: GlobalTheme) => {
54
50
  actionItemTextPaddingLeft: number;
55
51
  buttonMarginTop: number;
56
52
  buttonMarginRight: number;
57
- headerTextMarginRight: number;
58
- headerTextMarginBottom: number;
59
53
  containerPadding: number;
60
54
  titleMarginHorizontal: number;
61
55
  };