@hoddy-ui/next 2.5.74 → 2.5.76
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 -4
- package/dist/index.d.ts +3 -4
- 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, ViewProps, ScrollView, View, TextInput } from 'react-native';
|
|
3
3
|
|
|
4
4
|
type ThemeTypes = "dark" | "light";
|
|
5
5
|
type ThemeModes = "dark" | "light" | "default";
|
|
@@ -241,9 +241,8 @@ interface TypographyProps extends TextProps {
|
|
|
241
241
|
fontSize?: number;
|
|
242
242
|
fontWeight?: 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
243
243
|
}
|
|
244
|
-
interface SafeAreaViewProps {
|
|
244
|
+
interface SafeAreaViewProps extends ViewProps {
|
|
245
245
|
children: ReactNode;
|
|
246
|
-
style?: ViewStyle;
|
|
247
246
|
}
|
|
248
247
|
interface SelectMenuProps {
|
|
249
248
|
open: boolean;
|
|
@@ -439,7 +438,7 @@ declare const Locator: React.FC<LocatorProps>;
|
|
|
439
438
|
|
|
440
439
|
declare const Popup: React.FC<PopupProps>;
|
|
441
440
|
|
|
442
|
-
declare const SafeAreaView: React.
|
|
441
|
+
declare const SafeAreaView: React.ForwardRefExoticComponent<SafeAreaViewProps & React.RefAttributes<View>>;
|
|
443
442
|
|
|
444
443
|
declare const Divider: FC<DividerProps>;
|
|
445
444
|
|
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, ViewProps, ScrollView, View, TextInput } from 'react-native';
|
|
3
3
|
|
|
4
4
|
type ThemeTypes = "dark" | "light";
|
|
5
5
|
type ThemeModes = "dark" | "light" | "default";
|
|
@@ -241,9 +241,8 @@ interface TypographyProps extends TextProps {
|
|
|
241
241
|
fontSize?: number;
|
|
242
242
|
fontWeight?: 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
243
243
|
}
|
|
244
|
-
interface SafeAreaViewProps {
|
|
244
|
+
interface SafeAreaViewProps extends ViewProps {
|
|
245
245
|
children: ReactNode;
|
|
246
|
-
style?: ViewStyle;
|
|
247
246
|
}
|
|
248
247
|
interface SelectMenuProps {
|
|
249
248
|
open: boolean;
|
|
@@ -439,7 +438,7 @@ declare const Locator: React.FC<LocatorProps>;
|
|
|
439
438
|
|
|
440
439
|
declare const Popup: React.FC<PopupProps>;
|
|
441
440
|
|
|
442
|
-
declare const SafeAreaView: React.
|
|
441
|
+
declare const SafeAreaView: React.ForwardRefExoticComponent<SafeAreaViewProps & React.RefAttributes<View>>;
|
|
443
442
|
|
|
444
443
|
declare const Divider: FC<DividerProps>;
|
|
445
444
|
|
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, ...rest }, 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], ...rest }, children);
|
|
2194
|
+
}
|
|
2195
|
+
);
|
|
2197
2196
|
|
|
2198
2197
|
// ../src/Components/Divider.tsx
|
|
2199
2198
|
var import_react19 = __toESM(require("react"));
|