@hoddy-ui/next 2.0.42 → 2.0.44

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
@@ -294,6 +294,7 @@ type configProps = {
294
294
  googleMapApiKey?: string;
295
295
  colors?: extraColorTypes;
296
296
  fontFamily?: string;
297
+ edgeToEdge?: boolean;
297
298
  };
298
299
  declare function initialize(config: configProps): void;
299
300
 
package/dist/index.d.ts CHANGED
@@ -294,6 +294,7 @@ type configProps = {
294
294
  googleMapApiKey?: string;
295
295
  colors?: extraColorTypes;
296
296
  fontFamily?: string;
297
+ edgeToEdge?: boolean;
297
298
  };
298
299
  declare function initialize(config: configProps): void;
299
300
 
package/dist/index.js CHANGED
@@ -213,7 +213,8 @@ function colors(theme) {
213
213
 
214
214
  // ../src/config/KeyManager.ts
215
215
  var config = {
216
- GOOGLE_MAP_API_KEY: ""
216
+ GOOGLE_MAP_API_KEY: "",
217
+ EDGE_TO_EDGE: false
217
218
  };
218
219
  function setConfig(key) {
219
220
  config = key;
@@ -227,7 +228,8 @@ function initialize(config2) {
227
228
  try {
228
229
  setConfig({
229
230
  GOOGLE_MAP_API_KEY: config2.googleMapApiKey,
230
- DEFAULT_FONT_FAMILY: config2.fontFamily
231
+ DEFAULT_FONT_FAMILY: config2.fontFamily,
232
+ EDGE_TO_EDGE: config2.edgeToEdge ?? false
231
233
  });
232
234
  if (config2.colors)
233
235
  setExtraColors(config2.colors);
@@ -399,10 +401,11 @@ function themeReducer(state, { type, payload }) {
399
401
  var ConfigureSystemUI = () => {
400
402
  const theme = useTheme();
401
403
  const colors2 = useColors();
404
+ const config2 = getConfig();
402
405
  (0, import_react3.useEffect)(() => {
403
406
  if (colors2) {
404
407
  SystemUI.setBackgroundColorAsync(colors2.white[1]);
405
- if (import_react_native3.Platform.OS === "android") {
408
+ if (import_react_native3.Platform.OS === "android" && !config2.EDGE_TO_EDGE) {
406
409
  NavigationBar.setBackgroundColorAsync(colors2.white[1]);
407
410
  if (theme === "dark") {
408
411
  NavigationBar.setButtonStyleAsync("light");
@@ -1620,7 +1623,7 @@ var TextField2 = import_react16.default.forwardRef(
1620
1623
  height,
1621
1624
  overflow: "hidden",
1622
1625
  flexDirection: "row",
1623
- borderColor: error ? colors2.error.main : focused ? colors2[color].main : colors2.white[5],
1626
+ borderColor: error ? colors2.error.main : focused ? colors2[color].main : colors2.white[4],
1624
1627
  borderWidth: error ? 1 : focused ? 2 : 1,
1625
1628
  width: "100%",
1626
1629
  borderRadius: rounded ? 30 : 10,