@hoddy-ui/core 2.5.29 → 2.5.31
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/Components/SelectMenu.tsx +6 -1
- package/src/hooks.ts +0 -2
- package/src/theme/index.tsx +1 -1
- package/src/types.ts +1 -1
package/next/package.json
CHANGED
package/package.json
CHANGED
package/src/Components/Popup.tsx
CHANGED
|
@@ -38,6 +38,7 @@ export const Popup: React.FC<PopupProps> = ({
|
|
|
38
38
|
style,
|
|
39
39
|
onModalShow,
|
|
40
40
|
onModalHide,
|
|
41
|
+
disableAutoKeyboardManagement = false,
|
|
41
42
|
}) => {
|
|
42
43
|
const theme = useTheme();
|
|
43
44
|
const colors = useColors();
|
|
@@ -186,7 +187,10 @@ export const Popup: React.FC<PopupProps> = ({
|
|
|
186
187
|
keyboardVerticalOffset || keyboardVerticalOffsetValue
|
|
187
188
|
}
|
|
188
189
|
>
|
|
189
|
-
<TouchableWithoutFeedback
|
|
190
|
+
<TouchableWithoutFeedback
|
|
191
|
+
onPress={Keyboard.dismiss}
|
|
192
|
+
disabled={disableAutoKeyboardManagement}
|
|
193
|
+
>
|
|
190
194
|
<View style={styles.root}>
|
|
191
195
|
{modalOpen && (
|
|
192
196
|
<Pressable
|
|
@@ -91,7 +91,12 @@ const SelectMenu: React.FC<SelectMenuProps> = ({
|
|
|
91
91
|
[value, colors]
|
|
92
92
|
);
|
|
93
93
|
return (
|
|
94
|
-
<Popup
|
|
94
|
+
<Popup
|
|
95
|
+
open={open}
|
|
96
|
+
onClose={onClose}
|
|
97
|
+
title={label}
|
|
98
|
+
disableAutoKeyboardManagement
|
|
99
|
+
>
|
|
95
100
|
<View style={styles.content}>
|
|
96
101
|
<View style={styles.header}>
|
|
97
102
|
{helperText && (
|
package/src/hooks.ts
CHANGED
|
@@ -22,10 +22,8 @@ export const useThemeContext = () => {
|
|
|
22
22
|
const setTheme = (theme: ThemeModes) => {
|
|
23
23
|
if (theme === "default") {
|
|
24
24
|
themeDispatch?.({ type: "default", payload: colorScheme });
|
|
25
|
-
AsyncStorage.setItem("theme", "default");
|
|
26
25
|
} else {
|
|
27
26
|
themeDispatch?.({ type: theme });
|
|
28
|
-
AsyncStorage.setItem("theme", theme);
|
|
29
27
|
}
|
|
30
28
|
};
|
|
31
29
|
return { theme, setTheme };
|
package/src/theme/index.tsx
CHANGED