@hoddy-ui/core 2.5.49 → 2.5.53

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.
@@ -4,15 +4,11 @@ import { Platform, StatusBar } from "react-native";
4
4
  import { useColors, useTheme } from "../../src/hooks";
5
5
 
6
6
  const AdaptiveStatusBar = ({ translucent = false }) => {
7
- const [focused, setFocused] = useState(false);
8
7
  const colors = useColors();
9
8
  const theme = useTheme();
10
9
  const statusbarHandler = () => {
11
10
  StatusBar.setBarStyle(theme === "dark" ? "light-content" : "dark-content");
12
11
  if (Platform.OS === "android") {
13
- StatusBar.setBackgroundColor(
14
- translucent ? "transparent" : colors.white[1]
15
- );
16
12
  StatusBar.setTranslucent(true);
17
13
  }
18
14
  };
@@ -20,7 +16,7 @@ const AdaptiveStatusBar = ({ translucent = false }) => {
20
16
  useFocusEffect(
21
17
  React.useCallback(() => {
22
18
  statusbarHandler();
23
- }, [theme])
19
+ }, [theme]),
24
20
  );
25
21
 
26
22
  React.useEffect(() => {
@@ -226,6 +226,7 @@ interface TextFieldProps extends TextInputProps {
226
226
  onFocus?: () => void;
227
227
  onBlur?: () => void;
228
228
  selectMenuProps?: Partial<SelectMenuProps>;
229
+ labelAlwaysOpen?: boolean;
229
230
  }
230
231
  interface TypographyProps extends TextProps {
231
232
  children: ReactNode;
@@ -274,6 +275,7 @@ interface RatingStarsProps {
274
275
  rating: number;
275
276
  size: number;
276
277
  color?: colorTypes | (string & {});
278
+ inactiveColor?: colorTypes | (string & {});
277
279
  }
278
280
  interface RatingInputProps {
279
281
  rating?: number;
@@ -447,7 +449,12 @@ declare const SelectMenu: React.FC<SelectMenuProps>;
447
449
 
448
450
  declare const Spinner: React.FC<SpinnerProps>;
449
451
 
450
- declare const TextField: React.FC<TextFieldProps>;
452
+ type TextFieldLabelVariant = "floating" | "external";
453
+ interface TextFieldBaseProps extends TextFieldProps {
454
+ labelVariant: TextFieldLabelVariant;
455
+ }
456
+ declare const TextFieldBase: React.ForwardRefExoticComponent<TextFieldBaseProps & React.RefAttributes<TextInput>>;
457
+ declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<TextInput>>;
451
458
  declare const TextField2: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<TextInput>>;
452
459
 
453
460
  declare const Typography: React.FC<TypographyProps>;
@@ -866,4 +873,4 @@ declare const HoddyUI: {
866
873
  initialize: typeof initialize;
867
874
  };
868
875
 
869
- export { AdaptiveStatusBar, AlertX, type AlertXProps, type AnimationType, Animator, 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, useAppState, useBlinkAnimation, useColors, useFadeAnimation, useFloatAnimation, useGrowAnimation, useNavScreenOptions, useRollAnimation, useSlideAnimation, useTheme, useThemeContext, useThrownUpAnimation };
876
+ export { AdaptiveStatusBar, AlertX, type AlertXProps, type AnimationType, Animator, 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, TextFieldBase, type TextFieldBaseProps, type TextFieldLabelVariant, 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, useAppState, useBlinkAnimation, useColors, useFadeAnimation, useFloatAnimation, useGrowAnimation, useNavScreenOptions, useRollAnimation, useSlideAnimation, useTheme, useThemeContext, useThrownUpAnimation };
@@ -226,6 +226,7 @@ interface TextFieldProps extends TextInputProps {
226
226
  onFocus?: () => void;
227
227
  onBlur?: () => void;
228
228
  selectMenuProps?: Partial<SelectMenuProps>;
229
+ labelAlwaysOpen?: boolean;
229
230
  }
230
231
  interface TypographyProps extends TextProps {
231
232
  children: ReactNode;
@@ -274,6 +275,7 @@ interface RatingStarsProps {
274
275
  rating: number;
275
276
  size: number;
276
277
  color?: colorTypes | (string & {});
278
+ inactiveColor?: colorTypes | (string & {});
277
279
  }
278
280
  interface RatingInputProps {
279
281
  rating?: number;
@@ -447,7 +449,12 @@ declare const SelectMenu: React.FC<SelectMenuProps>;
447
449
 
448
450
  declare const Spinner: React.FC<SpinnerProps>;
449
451
 
450
- declare const TextField: React.FC<TextFieldProps>;
452
+ type TextFieldLabelVariant = "floating" | "external";
453
+ interface TextFieldBaseProps extends TextFieldProps {
454
+ labelVariant: TextFieldLabelVariant;
455
+ }
456
+ declare const TextFieldBase: React.ForwardRefExoticComponent<TextFieldBaseProps & React.RefAttributes<TextInput>>;
457
+ declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<TextInput>>;
451
458
  declare const TextField2: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<TextInput>>;
452
459
 
453
460
  declare const Typography: React.FC<TypographyProps>;
@@ -866,4 +873,4 @@ declare const HoddyUI: {
866
873
  initialize: typeof initialize;
867
874
  };
868
875
 
869
- export { AdaptiveStatusBar, AlertX, type AlertXProps, type AnimationType, Animator, 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, useAppState, useBlinkAnimation, useColors, useFadeAnimation, useFloatAnimation, useGrowAnimation, useNavScreenOptions, useRollAnimation, useSlideAnimation, useTheme, useThemeContext, useThrownUpAnimation };
876
+ export { AdaptiveStatusBar, AlertX, type AlertXProps, type AnimationType, Animator, 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, TextFieldBase, type TextFieldBaseProps, type TextFieldLabelVariant, 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, useAppState, useBlinkAnimation, useColors, useFadeAnimation, useFloatAnimation, useGrowAnimation, useNavScreenOptions, useRollAnimation, useSlideAnimation, useTheme, useThemeContext, useThrownUpAnimation };