@hero-design/rn 8.72.0 → 8.73.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.
@@ -0,0 +1,13 @@
1
+ import { ViewProps, StyleProp, ViewStyle } from 'react-native';
2
+ export interface MapPinFocussedProps extends ViewProps {
3
+ /**
4
+ * Additional style.
5
+ */
6
+ style?: StyleProp<ViewStyle>;
7
+ /**
8
+ * Testing id of the component.
9
+ */
10
+ testID?: string;
11
+ }
12
+ declare const MapPinFocussed: ({ style, testID, ...nativeProps }: MapPinFocussedProps) => JSX.Element;
13
+ export default MapPinFocussed;
@@ -0,0 +1,32 @@
1
+ import { View } from 'react-native';
2
+ declare type State = 'idle' | 'selected' | 'applied';
3
+ export declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
+ }, {}, {
7
+ ref?: import("react").Ref<View> | undefined;
8
+ }>;
9
+ export declare const StyledContent: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
12
+ } & {
13
+ themeState: State;
14
+ themeIsIcon: boolean;
15
+ }, {}, {
16
+ ref?: import("react").Ref<View> | undefined;
17
+ }>;
18
+ export declare const StyledBadge: import("@emotion/native").StyledComponent<import("../Badge/types").IconBadgeProps & {
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
21
+ }, {}, {}>;
22
+ export declare const StyledImage: import("@emotion/native").StyledComponent<import("react-native").ImageProps & {
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
25
+ }, {}, {
26
+ ref?: import("react").Ref<import("react-native").Image> | undefined;
27
+ }>;
28
+ export declare const StyledFocusIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
29
+ theme?: import("@emotion/react").Theme | undefined;
30
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
31
+ }, {}, {}>;
32
+ export {};
@@ -0,0 +1,5 @@
1
+ import { MapPinProps } from './types';
2
+ declare const _default: (({ style, testID, state, image, icon, ...nativeProps }: MapPinProps) => JSX.Element) & {
3
+ Focussed: ({ style, testID, ...nativeProps }: import("./Focussed").MapPinFocussedProps) => JSX.Element;
4
+ };
5
+ export default _default;
@@ -0,0 +1,38 @@
1
+ import { ViewProps, StyleProp, ViewStyle, ImageProps } from 'react-native';
2
+ import { IconName } from '../Icon';
3
+ interface BaseMapPinProps extends ViewProps {
4
+ /**
5
+ * Additional style.
6
+ */
7
+ style?: StyleProp<ViewStyle>;
8
+ /**
9
+ * Testing id of the component.
10
+ */
11
+ testID?: string;
12
+ /**
13
+ * State of the map pin.
14
+ */
15
+ state?: 'idle' | 'selected' | 'applied';
16
+ }
17
+ interface ImageMapPinProps extends BaseMapPinProps {
18
+ /**
19
+ * Icon to display in the map pin.
20
+ */
21
+ icon?: never;
22
+ /**
23
+ * Image to display in the map pin.
24
+ */
25
+ image: ImageProps;
26
+ }
27
+ interface IconMapPinProps extends BaseMapPinProps {
28
+ /**
29
+ * Icon to display in the map pin.
30
+ */
31
+ icon: IconName;
32
+ /**
33
+ * Image to display in the map pin.
34
+ */
35
+ image?: never;
36
+ }
37
+ export declare type MapPinProps = ImageMapPinProps | IconMapPinProps;
38
+ export {};
package/types/index.d.ts CHANGED
@@ -23,6 +23,7 @@ import Empty from './components/Empty';
23
23
  import Error from './components/Error';
24
24
  import FAB from './components/FAB';
25
25
  import HeroDesignProvider from './components/HeroDesignProvider';
26
+ import MapPin from './components/MapPin';
26
27
  import Icon from './components/Icon';
27
28
  import Image from './components/Image';
28
29
  import List from './components/List';
@@ -51,5 +52,5 @@ import PageControl from './components/PageControl';
51
52
  import Portal from './components/Portal';
52
53
  import { ScrollViewWithFAB, SectionListWithFAB, FlatListWithFAB } from './components/AnimatedScroller';
53
54
  import Search from './components/Search';
54
- export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagLightSystemPalette, swagLightJobsSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Chip, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, FlatListWithFAB, Icon, Image, HeroDesignProvider, List, PinInput, Progress, Portal, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, Search, ScrollViewWithFAB, SectionHeading, SectionListWithFAB, Select, Success, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, Rate, RefreshControl, RichTextEditor, };
55
+ export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagLightSystemPalette, swagLightJobsSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Chip, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, FlatListWithFAB, Icon, Image, HeroDesignProvider, MapPin, List, PinInput, Progress, Portal, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, Search, ScrollViewWithFAB, SectionHeading, SectionListWithFAB, Select, Success, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, Rate, RefreshControl, RichTextEditor, };
55
56
  export * from './types';
@@ -0,0 +1,40 @@
1
+ import type { GlobalTheme } from '../global';
2
+ declare const getMapPinTheme: (theme: GlobalTheme) => {
3
+ sizes: {
4
+ default: number;
5
+ };
6
+ colors: {
7
+ border: {
8
+ idle: string;
9
+ selected: string;
10
+ applied: string;
11
+ };
12
+ badge: string;
13
+ background: string;
14
+ iconBackground: string;
15
+ };
16
+ borderWidths: {
17
+ default: number;
18
+ };
19
+ radii: {
20
+ default: number;
21
+ };
22
+ shadows: {
23
+ offset: {
24
+ width: number;
25
+ height: number;
26
+ };
27
+ opacity: number;
28
+ radius: number;
29
+ elevation: number;
30
+ color: string;
31
+ };
32
+ space: {
33
+ iconTop: number;
34
+ iconRight: number;
35
+ };
36
+ fontSizes: {
37
+ icon: number;
38
+ };
39
+ };
40
+ export default getMapPinTheme;
@@ -46,6 +46,7 @@ import getToolbarTheme from './components/toolbar';
46
46
  import getTypographyTheme from './components/typography';
47
47
  import type { GlobalTheme, Scale, SystemPalette } from './global';
48
48
  import getSearchTheme from './components/search';
49
+ import getMapPinTheme from './components/mapPin';
49
50
  declare type Theme = GlobalTheme & {
50
51
  __hd__: {
51
52
  accordion: ReturnType<typeof getAccordionTheme>;
@@ -72,6 +73,7 @@ declare type Theme = GlobalTheme & {
72
73
  icon: ReturnType<typeof getIconTheme>;
73
74
  image: ReturnType<typeof getImageTheme>;
74
75
  list: ReturnType<typeof getListTheme>;
76
+ mapPin: ReturnType<typeof getMapPinTheme>;
75
77
  pageControl: ReturnType<typeof getPageControlTheme>;
76
78
  pinInput: PinInputThemeType;
77
79
  progress: ReturnType<typeof getProgressTheme>;