@hoddy-ui/next 2.0.58 → 2.0.60

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,6 +1,5 @@
1
1
  import React, { ReactNode, FC } from 'react';
2
2
  import { ViewStyle, TextStyle, NativeSyntheticEvent, NativeScrollEvent, TextInputProps, TextProps, StyleProp, TextInput } from 'react-native';
3
- import * as index from 'index';
4
3
 
5
4
  type ThemeTypes = "dark" | "light";
6
5
  type ThemeModes = "dark" | "light" | "default";
@@ -35,7 +34,7 @@ interface ThemeState {
35
34
  }
36
35
  interface ThemeContext {
37
36
  themeState: ThemeState;
38
- themeDispatch?: any;
37
+ themeDispatch?: (action: ThemeActionTypes) => void;
39
38
  }
40
39
  interface ThemeProviderProps {
41
40
  children: ReactNode;
@@ -189,6 +188,7 @@ interface PopupProps {
189
188
  open: boolean;
190
189
  onClose?: () => void;
191
190
  style?: ViewStyle;
191
+ disableAutoKeyboardManagement?: boolean;
192
192
  onModalShow?: () => void;
193
193
  onModalHide?: () => void;
194
194
  }
@@ -224,6 +224,7 @@ interface TextFieldProps extends TextInputProps {
224
224
  }[];
225
225
  onFocus?: () => void;
226
226
  onBlur?: () => void;
227
+ selectMenuProps?: Partial<SelectMenuProps>;
227
228
  }
228
229
  interface TypographyProps extends TextProps {
229
230
  children: ReactNode;
@@ -257,6 +258,8 @@ interface SelectMenuProps {
257
258
  label?: string;
258
259
  secondary?: string;
259
260
  helperText?: string;
261
+ searchEnabled?: boolean;
262
+ searchPlaceholder?: string;
260
263
  }
261
264
  interface OTPInputProps {
262
265
  length?: number;
@@ -377,7 +380,7 @@ declare const Button: React.FC<ButtonProps>;
377
380
 
378
381
  declare const CheckBox: FC<CheckboxProps>;
379
382
 
380
- declare let showFlashMessage: (msg: FlashMessageProps) => void;
383
+ declare const showFlashMessage: (msg: FlashMessageProps) => void;
381
384
 
382
385
  declare const FormWrapper: React.FC<FormWrapperProps>;
383
386
 
@@ -684,7 +687,11 @@ declare const useColors: () => {
684
687
  text: string;
685
688
  };
686
689
  };
687
- declare const useTheme: () => index.ThemeTypes;
690
+ declare const useTheme: () => ThemeTypes;
691
+ declare const useThemeContext: () => {
692
+ theme: ThemeState;
693
+ setTheme: (theme: ThemeModes) => void;
694
+ };
688
695
  declare const useNavScreenOptions: (type: "stack" | "tab" | "drawer") => any;
689
696
 
690
697
  declare const UIThemeContext: React.Context<ThemeContext>;
@@ -694,4 +701,4 @@ declare const HoddyUI: {
694
701
  initialize: typeof initialize;
695
702
  };
696
703
 
697
- export { AdaptiveStatusBar, AlertX, type AlertXProps, type AnimationType, 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, getLocationFromPlaceId, getPredictionsFromCoords, getPredictionsFromQuery, type locatorLocation, type predictionType, showFlashMessage, useColors, useNavScreenOptions, useTheme };
704
+ export { AdaptiveStatusBar, AlertX, type AlertXProps, type AnimationType, 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, getLocationFromPlaceId, getPredictionsFromCoords, getPredictionsFromQuery, type locatorLocation, type predictionType, showFlashMessage, useColors, useNavScreenOptions, useTheme, useThemeContext };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import React, { ReactNode, FC } from 'react';
2
2
  import { ViewStyle, TextStyle, NativeSyntheticEvent, NativeScrollEvent, TextInputProps, TextProps, StyleProp, TextInput } from 'react-native';
3
- import * as index from 'index';
4
3
 
5
4
  type ThemeTypes = "dark" | "light";
6
5
  type ThemeModes = "dark" | "light" | "default";
@@ -35,7 +34,7 @@ interface ThemeState {
35
34
  }
36
35
  interface ThemeContext {
37
36
  themeState: ThemeState;
38
- themeDispatch?: any;
37
+ themeDispatch?: (action: ThemeActionTypes) => void;
39
38
  }
40
39
  interface ThemeProviderProps {
41
40
  children: ReactNode;
@@ -189,6 +188,7 @@ interface PopupProps {
189
188
  open: boolean;
190
189
  onClose?: () => void;
191
190
  style?: ViewStyle;
191
+ disableAutoKeyboardManagement?: boolean;
192
192
  onModalShow?: () => void;
193
193
  onModalHide?: () => void;
194
194
  }
@@ -224,6 +224,7 @@ interface TextFieldProps extends TextInputProps {
224
224
  }[];
225
225
  onFocus?: () => void;
226
226
  onBlur?: () => void;
227
+ selectMenuProps?: Partial<SelectMenuProps>;
227
228
  }
228
229
  interface TypographyProps extends TextProps {
229
230
  children: ReactNode;
@@ -257,6 +258,8 @@ interface SelectMenuProps {
257
258
  label?: string;
258
259
  secondary?: string;
259
260
  helperText?: string;
261
+ searchEnabled?: boolean;
262
+ searchPlaceholder?: string;
260
263
  }
261
264
  interface OTPInputProps {
262
265
  length?: number;
@@ -377,7 +380,7 @@ declare const Button: React.FC<ButtonProps>;
377
380
 
378
381
  declare const CheckBox: FC<CheckboxProps>;
379
382
 
380
- declare let showFlashMessage: (msg: FlashMessageProps) => void;
383
+ declare const showFlashMessage: (msg: FlashMessageProps) => void;
381
384
 
382
385
  declare const FormWrapper: React.FC<FormWrapperProps>;
383
386
 
@@ -684,7 +687,11 @@ declare const useColors: () => {
684
687
  text: string;
685
688
  };
686
689
  };
687
- declare const useTheme: () => index.ThemeTypes;
690
+ declare const useTheme: () => ThemeTypes;
691
+ declare const useThemeContext: () => {
692
+ theme: ThemeState;
693
+ setTheme: (theme: ThemeModes) => void;
694
+ };
688
695
  declare const useNavScreenOptions: (type: "stack" | "tab" | "drawer") => any;
689
696
 
690
697
  declare const UIThemeContext: React.Context<ThemeContext>;
@@ -694,4 +701,4 @@ declare const HoddyUI: {
694
701
  initialize: typeof initialize;
695
702
  };
696
703
 
697
- export { AdaptiveStatusBar, AlertX, type AlertXProps, type AnimationType, 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, getLocationFromPlaceId, getPredictionsFromCoords, getPredictionsFromQuery, type locatorLocation, type predictionType, showFlashMessage, useColors, useNavScreenOptions, useTheme };
704
+ export { AdaptiveStatusBar, AlertX, type AlertXProps, type AnimationType, 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, getLocationFromPlaceId, getPredictionsFromCoords, getPredictionsFromQuery, type locatorLocation, type predictionType, showFlashMessage, useColors, useNavScreenOptions, useTheme, useThemeContext };