@hoddy-ui/core 2.5.29 → 2.5.30
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/next/dist/index.d.mts +11 -5
- package/next/dist/index.d.ts +11 -5
- package/next/dist/index.js +242 -220
- package/next/dist/index.js.map +1 -1
- package/next/dist/index.mjs +206 -185
- package/next/dist/index.mjs.map +1 -1
- package/next/package.json +1 -1
- package/package.json +1 -1
- package/src/Components/Popup.tsx +5 -1
- package/src/hooks.ts +0 -2
- package/src/theme/index.tsx +1 -1
- package/src/types.ts +1 -1
package/next/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?:
|
|
37
|
+
themeDispatch?: (action: ThemeActionTypes) => void;
|
|
39
38
|
}
|
|
40
39
|
interface ThemeProviderProps {
|
|
41
40
|
children: ReactNode;
|
|
@@ -224,6 +223,7 @@ interface TextFieldProps extends TextInputProps {
|
|
|
224
223
|
}[];
|
|
225
224
|
onFocus?: () => void;
|
|
226
225
|
onBlur?: () => void;
|
|
226
|
+
selectMenuProps?: Partial<SelectMenuProps>;
|
|
227
227
|
}
|
|
228
228
|
interface TypographyProps extends TextProps {
|
|
229
229
|
children: ReactNode;
|
|
@@ -257,6 +257,8 @@ interface SelectMenuProps {
|
|
|
257
257
|
label?: string;
|
|
258
258
|
secondary?: string;
|
|
259
259
|
helperText?: string;
|
|
260
|
+
searchEnabled?: boolean;
|
|
261
|
+
searchPlaceholder?: string;
|
|
260
262
|
}
|
|
261
263
|
interface OTPInputProps {
|
|
262
264
|
length?: number;
|
|
@@ -377,7 +379,7 @@ declare const Button: React.FC<ButtonProps>;
|
|
|
377
379
|
|
|
378
380
|
declare const CheckBox: FC<CheckboxProps>;
|
|
379
381
|
|
|
380
|
-
declare
|
|
382
|
+
declare const showFlashMessage: (msg: FlashMessageProps) => void;
|
|
381
383
|
|
|
382
384
|
declare const FormWrapper: React.FC<FormWrapperProps>;
|
|
383
385
|
|
|
@@ -684,7 +686,11 @@ declare const useColors: () => {
|
|
|
684
686
|
text: string;
|
|
685
687
|
};
|
|
686
688
|
};
|
|
687
|
-
declare const useTheme: () =>
|
|
689
|
+
declare const useTheme: () => ThemeTypes;
|
|
690
|
+
declare const useThemeContext: () => {
|
|
691
|
+
theme: ThemeState;
|
|
692
|
+
setTheme: (theme: ThemeModes) => void;
|
|
693
|
+
};
|
|
688
694
|
declare const useNavScreenOptions: (type: "stack" | "tab" | "drawer") => any;
|
|
689
695
|
|
|
690
696
|
declare const UIThemeContext: React.Context<ThemeContext>;
|
|
@@ -694,4 +700,4 @@ declare const HoddyUI: {
|
|
|
694
700
|
initialize: typeof initialize;
|
|
695
701
|
};
|
|
696
702
|
|
|
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 };
|
|
703
|
+
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/next/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?:
|
|
37
|
+
themeDispatch?: (action: ThemeActionTypes) => void;
|
|
39
38
|
}
|
|
40
39
|
interface ThemeProviderProps {
|
|
41
40
|
children: ReactNode;
|
|
@@ -224,6 +223,7 @@ interface TextFieldProps extends TextInputProps {
|
|
|
224
223
|
}[];
|
|
225
224
|
onFocus?: () => void;
|
|
226
225
|
onBlur?: () => void;
|
|
226
|
+
selectMenuProps?: Partial<SelectMenuProps>;
|
|
227
227
|
}
|
|
228
228
|
interface TypographyProps extends TextProps {
|
|
229
229
|
children: ReactNode;
|
|
@@ -257,6 +257,8 @@ interface SelectMenuProps {
|
|
|
257
257
|
label?: string;
|
|
258
258
|
secondary?: string;
|
|
259
259
|
helperText?: string;
|
|
260
|
+
searchEnabled?: boolean;
|
|
261
|
+
searchPlaceholder?: string;
|
|
260
262
|
}
|
|
261
263
|
interface OTPInputProps {
|
|
262
264
|
length?: number;
|
|
@@ -377,7 +379,7 @@ declare const Button: React.FC<ButtonProps>;
|
|
|
377
379
|
|
|
378
380
|
declare const CheckBox: FC<CheckboxProps>;
|
|
379
381
|
|
|
380
|
-
declare
|
|
382
|
+
declare const showFlashMessage: (msg: FlashMessageProps) => void;
|
|
381
383
|
|
|
382
384
|
declare const FormWrapper: React.FC<FormWrapperProps>;
|
|
383
385
|
|
|
@@ -684,7 +686,11 @@ declare const useColors: () => {
|
|
|
684
686
|
text: string;
|
|
685
687
|
};
|
|
686
688
|
};
|
|
687
|
-
declare const useTheme: () =>
|
|
689
|
+
declare const useTheme: () => ThemeTypes;
|
|
690
|
+
declare const useThemeContext: () => {
|
|
691
|
+
theme: ThemeState;
|
|
692
|
+
setTheme: (theme: ThemeModes) => void;
|
|
693
|
+
};
|
|
688
694
|
declare const useNavScreenOptions: (type: "stack" | "tab" | "drawer") => any;
|
|
689
695
|
|
|
690
696
|
declare const UIThemeContext: React.Context<ThemeContext>;
|
|
@@ -694,4 +700,4 @@ declare const HoddyUI: {
|
|
|
694
700
|
initialize: typeof initialize;
|
|
695
701
|
};
|
|
696
702
|
|
|
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 };
|
|
703
|
+
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 };
|