@hoddy-ui/next 2.5.74 → 2.5.75
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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +13 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode, FC } from 'react';
|
|
2
|
-
import { ViewStyle, TextStyle, NativeSyntheticEvent, NativeScrollEvent, TextInputProps, TextProps, StyleProp, ScrollView, TextInput } from 'react-native';
|
|
2
|
+
import { ViewStyle, TextStyle, NativeSyntheticEvent, NativeScrollEvent, TextInputProps, TextProps, StyleProp, ScrollView, View, TextInput } from 'react-native';
|
|
3
3
|
|
|
4
4
|
type ThemeTypes = "dark" | "light";
|
|
5
5
|
type ThemeModes = "dark" | "light" | "default";
|
|
@@ -243,7 +243,7 @@ interface TypographyProps extends TextProps {
|
|
|
243
243
|
}
|
|
244
244
|
interface SafeAreaViewProps {
|
|
245
245
|
children: ReactNode;
|
|
246
|
-
style?: ViewStyle
|
|
246
|
+
style?: StyleProp<ViewStyle>;
|
|
247
247
|
}
|
|
248
248
|
interface SelectMenuProps {
|
|
249
249
|
open: boolean;
|
|
@@ -439,7 +439,7 @@ declare const Locator: React.FC<LocatorProps>;
|
|
|
439
439
|
|
|
440
440
|
declare const Popup: React.FC<PopupProps>;
|
|
441
441
|
|
|
442
|
-
declare const SafeAreaView: React.
|
|
442
|
+
declare const SafeAreaView: React.ForwardRefExoticComponent<SafeAreaViewProps & React.RefAttributes<View>>;
|
|
443
443
|
|
|
444
444
|
declare const Divider: FC<DividerProps>;
|
|
445
445
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode, FC } from 'react';
|
|
2
|
-
import { ViewStyle, TextStyle, NativeSyntheticEvent, NativeScrollEvent, TextInputProps, TextProps, StyleProp, ScrollView, TextInput } from 'react-native';
|
|
2
|
+
import { ViewStyle, TextStyle, NativeSyntheticEvent, NativeScrollEvent, TextInputProps, TextProps, StyleProp, ScrollView, View, TextInput } from 'react-native';
|
|
3
3
|
|
|
4
4
|
type ThemeTypes = "dark" | "light";
|
|
5
5
|
type ThemeModes = "dark" | "light" | "default";
|
|
@@ -243,7 +243,7 @@ interface TypographyProps extends TextProps {
|
|
|
243
243
|
}
|
|
244
244
|
interface SafeAreaViewProps {
|
|
245
245
|
children: ReactNode;
|
|
246
|
-
style?: ViewStyle
|
|
246
|
+
style?: StyleProp<ViewStyle>;
|
|
247
247
|
}
|
|
248
248
|
interface SelectMenuProps {
|
|
249
249
|
open: boolean;
|
|
@@ -439,7 +439,7 @@ declare const Locator: React.FC<LocatorProps>;
|
|
|
439
439
|
|
|
440
440
|
declare const Popup: React.FC<PopupProps>;
|
|
441
441
|
|
|
442
|
-
declare const SafeAreaView: React.
|
|
442
|
+
declare const SafeAreaView: React.ForwardRefExoticComponent<SafeAreaViewProps & React.RefAttributes<View>>;
|
|
443
443
|
|
|
444
444
|
declare const Divider: FC<DividerProps>;
|
|
445
445
|
|
package/dist/index.js
CHANGED
|
@@ -2180,20 +2180,19 @@ var Locator = ({
|
|
|
2180
2180
|
var import_react18 = __toESM(require("react"));
|
|
2181
2181
|
var import_react_native_safe_area_context6 = require("react-native-safe-area-context");
|
|
2182
2182
|
var import_react_native18 = require("react-native");
|
|
2183
|
-
var SafeAreaView = (
|
|
2184
|
-
children,
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
}
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
};
|
|
2183
|
+
var SafeAreaView = (0, import_react18.forwardRef)(
|
|
2184
|
+
({ children, style }, ref) => {
|
|
2185
|
+
const { top, bottom } = (0, import_react_native_safe_area_context6.useSafeAreaInsets)();
|
|
2186
|
+
const styles = import_react_native18.StyleSheet.create({
|
|
2187
|
+
root: {
|
|
2188
|
+
paddingTop: top,
|
|
2189
|
+
paddingBottom: bottom,
|
|
2190
|
+
flex: 1
|
|
2191
|
+
}
|
|
2192
|
+
});
|
|
2193
|
+
return /* @__PURE__ */ import_react18.default.createElement(import_react_native18.View, { ref, style: [styles.root, style] }, children);
|
|
2194
|
+
}
|
|
2195
|
+
);
|
|
2197
2196
|
|
|
2198
2197
|
// ../src/Components/Divider.tsx
|
|
2199
2198
|
var import_react19 = __toESM(require("react"));
|