@hoddy-ui/next 2.0.41 → 2.0.43
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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");
|
|
@@ -918,7 +921,7 @@ var Popup = ({
|
|
|
918
921
|
...style
|
|
919
922
|
},
|
|
920
923
|
content: {
|
|
921
|
-
paddingHorizontal: bare ? void 0 : "
|
|
924
|
+
paddingHorizontal: bare ? void 0 : "15@ms"
|
|
922
925
|
// flex: 1,
|
|
923
926
|
},
|
|
924
927
|
title: {
|
|
@@ -929,7 +932,7 @@ var Popup = ({
|
|
|
929
932
|
},
|
|
930
933
|
titleIcon: {
|
|
931
934
|
position: "absolute",
|
|
932
|
-
left: "
|
|
935
|
+
left: "15@ms"
|
|
933
936
|
},
|
|
934
937
|
backdrop: {
|
|
935
938
|
position: "absolute",
|