@hoddy-ui/next 2.0.34 → 2.0.35

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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode, FC } from 'react';
2
2
  import { ViewStyle, TextStyle, NativeSyntheticEvent, NativeScrollEvent, TextInputProps, TextProps } from 'react-native';
3
+ import * as index from 'index';
3
4
 
4
5
  type ThemeTypes = "dark" | "light";
5
6
  type ThemeModes = "dark" | "light" | "default";
@@ -24,6 +25,10 @@ type extraColorTypes = {
24
25
  };
25
26
  };
26
27
  };
28
+ interface ThemeActionTypes {
29
+ type: ThemeModes;
30
+ payload?: ThemeTypes;
31
+ }
27
32
  interface ThemeState {
28
33
  value: ThemeTypes;
29
34
  mode: ThemeModes;
@@ -51,6 +56,14 @@ interface AvatarProps {
51
56
  size?: number;
52
57
  style?: ViewStyle;
53
58
  }
59
+ interface AnimatorProps {
60
+ style?: ViewStyle;
61
+ duration?: number;
62
+ children: ReactNode;
63
+ delay?: number;
64
+ animationType?: "easeInEaseOut" | "linear" | "spring";
65
+ type?: "fade" | "slideInLeft" | "slideInRight" | "slideInUp" | "slideInDown";
66
+ }
54
67
  interface ButtonProps {
55
68
  color?: colorTypes;
56
69
  variant?: "text" | "outlined" | "contained";
@@ -133,6 +146,26 @@ interface LocatorProps {
133
146
  renderInput?: (props: LocatorInputProps) => ReactNode;
134
147
  country?: string;
135
148
  }
149
+ interface ListProps {
150
+ style?: ViewStyle;
151
+ children: ReactNode;
152
+ }
153
+ interface ListItemTextProps {
154
+ primary: string;
155
+ divider?: boolean;
156
+ primaryProps?: TypographyProps;
157
+ secondaryProps?: TypographyProps;
158
+ secondary?: string;
159
+ style?: ViewStyle;
160
+ }
161
+ interface ListItemProps {
162
+ link?: boolean;
163
+ divider?: boolean;
164
+ onPress?: () => void;
165
+ index?: number;
166
+ style?: ViewStyle;
167
+ children: ReactNode;
168
+ }
136
169
  interface FormWrapperProps {
137
170
  children: ReactNode;
138
171
  behavior?: "position" | "height" | "padding";
@@ -287,6 +320,10 @@ declare const RatingInput: FC<RatingInputProps>;
287
320
  declare const GridItem: React.FC<GridItemProps>;
288
321
  declare const Grid: React.FC<GridProps>;
289
322
 
323
+ type predictionType = {
324
+ id: string;
325
+ description: string;
326
+ };
290
327
  declare const getPredictionsFromCoords: (coords: any) => Promise<{
291
328
  description: any;
292
329
  id: any;
@@ -564,7 +601,7 @@ declare const useColors: () => {
564
601
  text: string;
565
602
  };
566
603
  };
567
- declare const useTheme: () => ThemeTypes;
604
+ declare const useTheme: () => index.ThemeTypes;
568
605
  declare const useNavScreenOptions: (type: "stack" | "tab" | "drawer") => any;
569
606
 
570
607
  declare const UIThemeContext: React.Context<ThemeContext>;
@@ -574,4 +611,4 @@ declare const HoddyUI: {
574
611
  initialize: typeof initialize;
575
612
  };
576
613
 
577
- export { AdaptiveStatusBar, AlertX, Avatar, Button, CheckBox, Divider, FormWrapper, Grid, GridItem, IconButton, LinkButton, Locator, OTPInput, Popup, RatingInput, RatingStars, SafeAreaView, SelectMenu, Spinner, TextField, TextField2, Typography, UIThemeContext, UIThemeProvider, HoddyUI as default, getPredictionsFromCoords, showFlashMessage, useColors, useNavScreenOptions, useTheme };
614
+ export { AdaptiveStatusBar, AlertX, type AlertXProps, type AnimatorProps, Avatar, type AvatarProps, Button, type ButtonProps, CheckBox, type CheckboxProps, Divider, type DividerProps, type FlashMessageProps, FormWrapper, type FormWrapperProps, Grid, GridItem, type GridItemProps, type GridProps, IconButton, type IconButtonProps, LinkButton, type LinkButtonProps, type ListItemProps, type ListItemTextProps, type ListProps, Locator, type LocatorInputProps, type LocatorProps, OTPInput, type OTPInputProps, Popup, type PopupProps, RatingInput, type RatingInputProps, RatingStars, type RatingStarsProps, SafeAreaView, type SafeAreaViewProps, SelectMenu, type SelectMenuProps, Spinner, type SpinnerProps, TextField, TextField2, type TextFieldProps, type ThemeActionTypes, type ThemeContext, type ThemeModes, type ThemeProviderProps, type ThemeState, type ThemeTypes, Typography, type TypographyProps, UIThemeContext, UIThemeProvider, type colorTypes, HoddyUI as default, type extraColorTypes, getPredictionsFromCoords, type locatorLocation, type predictionType, showFlashMessage, useColors, useNavScreenOptions, useTheme };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode, FC } from 'react';
2
2
  import { ViewStyle, TextStyle, NativeSyntheticEvent, NativeScrollEvent, TextInputProps, TextProps } from 'react-native';
3
+ import * as index from 'index';
3
4
 
4
5
  type ThemeTypes = "dark" | "light";
5
6
  type ThemeModes = "dark" | "light" | "default";
@@ -24,6 +25,10 @@ type extraColorTypes = {
24
25
  };
25
26
  };
26
27
  };
28
+ interface ThemeActionTypes {
29
+ type: ThemeModes;
30
+ payload?: ThemeTypes;
31
+ }
27
32
  interface ThemeState {
28
33
  value: ThemeTypes;
29
34
  mode: ThemeModes;
@@ -51,6 +56,14 @@ interface AvatarProps {
51
56
  size?: number;
52
57
  style?: ViewStyle;
53
58
  }
59
+ interface AnimatorProps {
60
+ style?: ViewStyle;
61
+ duration?: number;
62
+ children: ReactNode;
63
+ delay?: number;
64
+ animationType?: "easeInEaseOut" | "linear" | "spring";
65
+ type?: "fade" | "slideInLeft" | "slideInRight" | "slideInUp" | "slideInDown";
66
+ }
54
67
  interface ButtonProps {
55
68
  color?: colorTypes;
56
69
  variant?: "text" | "outlined" | "contained";
@@ -133,6 +146,26 @@ interface LocatorProps {
133
146
  renderInput?: (props: LocatorInputProps) => ReactNode;
134
147
  country?: string;
135
148
  }
149
+ interface ListProps {
150
+ style?: ViewStyle;
151
+ children: ReactNode;
152
+ }
153
+ interface ListItemTextProps {
154
+ primary: string;
155
+ divider?: boolean;
156
+ primaryProps?: TypographyProps;
157
+ secondaryProps?: TypographyProps;
158
+ secondary?: string;
159
+ style?: ViewStyle;
160
+ }
161
+ interface ListItemProps {
162
+ link?: boolean;
163
+ divider?: boolean;
164
+ onPress?: () => void;
165
+ index?: number;
166
+ style?: ViewStyle;
167
+ children: ReactNode;
168
+ }
136
169
  interface FormWrapperProps {
137
170
  children: ReactNode;
138
171
  behavior?: "position" | "height" | "padding";
@@ -287,6 +320,10 @@ declare const RatingInput: FC<RatingInputProps>;
287
320
  declare const GridItem: React.FC<GridItemProps>;
288
321
  declare const Grid: React.FC<GridProps>;
289
322
 
323
+ type predictionType = {
324
+ id: string;
325
+ description: string;
326
+ };
290
327
  declare const getPredictionsFromCoords: (coords: any) => Promise<{
291
328
  description: any;
292
329
  id: any;
@@ -564,7 +601,7 @@ declare const useColors: () => {
564
601
  text: string;
565
602
  };
566
603
  };
567
- declare const useTheme: () => ThemeTypes;
604
+ declare const useTheme: () => index.ThemeTypes;
568
605
  declare const useNavScreenOptions: (type: "stack" | "tab" | "drawer") => any;
569
606
 
570
607
  declare const UIThemeContext: React.Context<ThemeContext>;
@@ -574,4 +611,4 @@ declare const HoddyUI: {
574
611
  initialize: typeof initialize;
575
612
  };
576
613
 
577
- export { AdaptiveStatusBar, AlertX, Avatar, Button, CheckBox, Divider, FormWrapper, Grid, GridItem, IconButton, LinkButton, Locator, OTPInput, Popup, RatingInput, RatingStars, SafeAreaView, SelectMenu, Spinner, TextField, TextField2, Typography, UIThemeContext, UIThemeProvider, HoddyUI as default, getPredictionsFromCoords, showFlashMessage, useColors, useNavScreenOptions, useTheme };
614
+ export { AdaptiveStatusBar, AlertX, type AlertXProps, type AnimatorProps, Avatar, type AvatarProps, Button, type ButtonProps, CheckBox, type CheckboxProps, Divider, type DividerProps, type FlashMessageProps, FormWrapper, type FormWrapperProps, Grid, GridItem, type GridItemProps, type GridProps, IconButton, type IconButtonProps, LinkButton, type LinkButtonProps, type ListItemProps, type ListItemTextProps, type ListProps, Locator, type LocatorInputProps, type LocatorProps, OTPInput, type OTPInputProps, Popup, type PopupProps, RatingInput, type RatingInputProps, RatingStars, type RatingStarsProps, SafeAreaView, type SafeAreaViewProps, SelectMenu, type SelectMenuProps, Spinner, type SpinnerProps, TextField, TextField2, type TextFieldProps, type ThemeActionTypes, type ThemeContext, type ThemeModes, type ThemeProviderProps, type ThemeState, type ThemeTypes, Typography, type TypographyProps, UIThemeContext, UIThemeProvider, type colorTypes, HoddyUI as default, type extraColorTypes, getPredictionsFromCoords, type locatorLocation, type predictionType, showFlashMessage, useColors, useNavScreenOptions, useTheme };