@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 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.FC<SafeAreaViewProps>;
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.FC<SafeAreaViewProps>;
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
- style
2186
- }) => {
2187
- const { top, bottom } = (0, import_react_native_safe_area_context6.useSafeAreaInsets)();
2188
- const styles = import_react_native18.StyleSheet.create({
2189
- root: {
2190
- paddingTop: top,
2191
- paddingBottom: bottom,
2192
- flex: 1
2193
- }
2194
- });
2195
- return /* @__PURE__ */ import_react18.default.createElement(import_react_native18.View, { style: [styles.root, style] }, children);
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"));