@rific/auto-paper 0.13.2 → 0.13.3

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/README.md CHANGED
@@ -413,7 +413,7 @@ function SettingsScreen() {
413
413
 
414
414
  ### `Appbar`
415
415
 
416
- A thin wrapper around `react-native-paper`'s `Appbar` that automatically syncs `StatusBar` background color and bar style to the current theme surface color (no `StatusBar` under `<Provider statusBar={false}>`).
416
+ A thin wrapper around `react-native-paper`'s `Appbar` that automatically syncs the `StatusBar` bar style to the current theme (React Native 0.88 removed `StatusBar`'s Android-only `backgroundColor`, which edge-to-edge already ignored, so 0.13.3 stopped passing it) (no `StatusBar` under `<Provider statusBar={false}>`).
417
417
 
418
418
  ```tsx
419
419
  import { Appbar } from '@rific/auto-paper'
package/dist/index.js CHANGED
@@ -628,7 +628,7 @@ function ThemeProviderBody({ children, defaults, expoBlur, fontFamily, maskedVie
628
628
  }, [theme, onReady]);
629
629
  if (!theme) return null;
630
630
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_native_paper2.Provider, { theme, children: [
631
- statusBar && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native2.StatusBar, { backgroundColor: theme.colors.background, barStyle: theme.dark ? "light-content" : "dark-content", ...statusBarProps }),
631
+ statusBar && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native2.StatusBar, { barStyle: theme.dark ? "light-content" : "dark-content", ...statusBarProps }),
632
632
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusBarEnabledContext.Provider, { value: statusBar, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PaperDefaultsContext.Provider, { value: defaults ?? {}, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NavBarContext.Provider, { value: { navigationBar, onNavBarChange }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BlurModuleContext.Provider, { value: expoBlur, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ReanimatedModuleContext.Provider, { value: reanimated, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MaskedViewModuleContext.Provider, { value: maskedView, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_paper2.Portal.Host, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native2.View, { style: [styles.flex, { backgroundColor: theme.colors.background }, style], children }) }) }) }) }) }) }) })
633
633
  ] });
634
634
  }
@@ -643,7 +643,7 @@ function Header({ style, ...props }) {
643
643
  const theme = (0, import_react_native_paper3.useTheme)();
644
644
  const statusBar = useStatusBarEnabled();
645
645
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
646
- statusBar && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_native3.StatusBar, { backgroundColor: theme.colors.surface, barStyle: theme.dark ? "light-content" : "dark-content" }),
646
+ statusBar && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_native3.StatusBar, { barStyle: theme.dark ? "light-content" : "dark-content" }),
647
647
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_native_paper3.Appbar.Header, { ...defaults.AppbarHeader, ...props, style })
648
648
  ] });
649
649
  }
package/dist/index.mjs CHANGED
@@ -542,7 +542,7 @@ function ThemeProviderBody({ children, defaults, expoBlur, fontFamily, maskedVie
542
542
  }, [theme, onReady]);
543
543
  if (!theme) return null;
544
544
  return /* @__PURE__ */ jsxs(PaperProvider, { theme, children: [
545
- statusBar && /* @__PURE__ */ jsx(StatusBar, { backgroundColor: theme.colors.background, barStyle: theme.dark ? "light-content" : "dark-content", ...statusBarProps }),
545
+ statusBar && /* @__PURE__ */ jsx(StatusBar, { barStyle: theme.dark ? "light-content" : "dark-content", ...statusBarProps }),
546
546
  /* @__PURE__ */ jsx(StatusBarEnabledContext.Provider, { value: statusBar, children: /* @__PURE__ */ jsx(PaperDefaultsContext.Provider, { value: defaults ?? {}, children: /* @__PURE__ */ jsx(NavBarContext.Provider, { value: { navigationBar, onNavBarChange }, children: /* @__PURE__ */ jsx(BlurModuleContext.Provider, { value: expoBlur, children: /* @__PURE__ */ jsx(ReanimatedModuleContext.Provider, { value: reanimated, children: /* @__PURE__ */ jsx(MaskedViewModuleContext.Provider, { value: maskedView, children: /* @__PURE__ */ jsx(Portal.Host, { children: /* @__PURE__ */ jsx(View, { style: [styles.flex, { backgroundColor: theme.colors.background }, style], children }) }) }) }) }) }) }) })
547
547
  ] });
548
548
  }
@@ -557,7 +557,7 @@ function Header({ style, ...props }) {
557
557
  const theme = useTheme();
558
558
  const statusBar = useStatusBarEnabled();
559
559
  return /* @__PURE__ */ jsxs2(Fragment, { children: [
560
- statusBar && /* @__PURE__ */ jsx2(StatusBar2, { backgroundColor: theme.colors.surface, barStyle: theme.dark ? "light-content" : "dark-content" }),
560
+ statusBar && /* @__PURE__ */ jsx2(StatusBar2, { barStyle: theme.dark ? "light-content" : "dark-content" }),
561
561
  /* @__PURE__ */ jsx2(PaperAppbar.Header, { ...defaults.AppbarHeader, ...props, style })
562
562
  ] });
563
563
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rific/auto-paper",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "Adaptive react-native-paper theming: triadic palette from a seed color + system/light/dark appearance",
5
5
  "keywords": [
6
6
  "react-native",
@@ -69,8 +69,8 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@infinitetoken/eslint-config": "0.2.0",
72
- "@infinitetoken/jest-config": "^0.4.0",
73
- "@infinitetoken/tsconfig": "^0.5.0",
72
+ "@infinitetoken/jest-config": "^0.5.0",
73
+ "@infinitetoken/tsconfig": "^0.6.0",
74
74
  "@react-native-masked-view/masked-view": "^0.3.2",
75
75
  "@reduxjs/toolkit": "^2.0.0",
76
76
  "@rific/core": "^0.3.0",
@@ -81,16 +81,16 @@
81
81
  "eslint": "^9.39.4",
82
82
  "eslint-plugin-react-hooks": "^7.1.1",
83
83
  "eslint-plugin-react-native": "^5.0.0",
84
- "expo-blur": "^57.0.3",
85
- "expo-navigation-bar": "^57.0.3",
84
+ "expo-blur": "^58.0.3",
85
+ "expo-navigation-bar": "^58.0.4",
86
86
  "jest": "^30.0.0",
87
87
  "jest-environment-jsdom": "^30.0.0",
88
88
  "prettier": "^3.8.3",
89
89
  "react": "^19.0.0",
90
90
  "react-dom": "^19.0.0",
91
- "react-native": "^0.86.3",
91
+ "react-native": "^0.88.0",
92
92
  "react-native-paper": "^5.12.0",
93
- "react-native-safe-area-context": "^5.5.2",
93
+ "react-native-safe-area-context": "^5.10.1",
94
94
  "tsup": "^8.0.0",
95
95
  "typescript": "^6.0.3"
96
96
  },
@@ -109,7 +109,7 @@ function ThemeProviderBody({ children, defaults, expoBlur, fontFamily, maskedVie
109
109
 
110
110
  return (
111
111
  <PaperProvider theme={theme}>
112
- {statusBar && <StatusBar backgroundColor={theme.colors.background} barStyle={theme.dark ? 'light-content' : 'dark-content'} {...statusBarProps} />}
112
+ {statusBar && <StatusBar barStyle={theme.dark ? 'light-content' : 'dark-content'} {...statusBarProps} />}
113
113
  <StatusBarEnabledContext.Provider value={statusBar}>
114
114
  <PaperDefaultsContext.Provider value={defaults ?? {}}>
115
115
  <NavBarContext.Provider value={{ navigationBar, onNavBarChange }}>
@@ -11,7 +11,7 @@ function Header({ style, ...props }: AppbarHeaderProps) {
11
11
  const statusBar = useStatusBarEnabled()
12
12
  return (
13
13
  <>
14
- {statusBar && <StatusBar backgroundColor={theme.colors.surface} barStyle={theme.dark ? 'light-content' : 'dark-content'} />}
14
+ {statusBar && <StatusBar barStyle={theme.dark ? 'light-content' : 'dark-content'} />}
15
15
  <PaperAppbar.Header {...defaults.AppbarHeader} {...props} style={style} />
16
16
  </>
17
17
  )