@hoddy-ui/next 2.5.94 → 2.5.96
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/components/AdaptiveStatusBarNext.tsx +1 -5
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4,15 +4,11 @@ import { Platform, StatusBar } from "react-native";
|
|
|
4
4
|
import { useColors, useTheme } from "../../src/hooks";
|
|
5
5
|
|
|
6
6
|
const AdaptiveStatusBar = ({ translucent = false }) => {
|
|
7
|
-
const [focused, setFocused] = useState(false);
|
|
8
7
|
const colors = useColors();
|
|
9
8
|
const theme = useTheme();
|
|
10
9
|
const statusbarHandler = () => {
|
|
11
10
|
StatusBar.setBarStyle(theme === "dark" ? "light-content" : "dark-content");
|
|
12
11
|
if (Platform.OS === "android") {
|
|
13
|
-
StatusBar.setBackgroundColor(
|
|
14
|
-
translucent ? "transparent" : colors.white[1]
|
|
15
|
-
);
|
|
16
12
|
StatusBar.setTranslucent(true);
|
|
17
13
|
}
|
|
18
14
|
};
|
|
@@ -20,7 +16,7 @@ const AdaptiveStatusBar = ({ translucent = false }) => {
|
|
|
20
16
|
useFocusEffect(
|
|
21
17
|
React.useCallback(() => {
|
|
22
18
|
statusbarHandler();
|
|
23
|
-
}, [theme])
|
|
19
|
+
}, [theme]),
|
|
24
20
|
);
|
|
25
21
|
|
|
26
22
|
React.useEffect(() => {
|
package/dist/index.js
CHANGED
|
@@ -519,7 +519,6 @@ var ConfigureSystemUI = () => {
|
|
|
519
519
|
NavigationBar.setStyle("dark");
|
|
520
520
|
}
|
|
521
521
|
} else {
|
|
522
|
-
NavigationBar.setBackgroundColorAsync(colors2.white[1]);
|
|
523
522
|
if (theme === "dark") {
|
|
524
523
|
NavigationBar.setButtonStyleAsync("light");
|
|
525
524
|
} else {
|
|
@@ -651,15 +650,11 @@ var useNavScreenOptions = (type) => {
|
|
|
651
650
|
|
|
652
651
|
// components/AdaptiveStatusBarNext.tsx
|
|
653
652
|
var AdaptiveStatusBar = ({ translucent = false }) => {
|
|
654
|
-
const [focused, setFocused] = (0, import_react5.useState)(false);
|
|
655
653
|
const colors2 = useColors();
|
|
656
654
|
const theme = useTheme();
|
|
657
655
|
const statusbarHandler = () => {
|
|
658
656
|
import_react_native5.StatusBar.setBarStyle(theme === "dark" ? "light-content" : "dark-content");
|
|
659
657
|
if (import_react_native5.Platform.OS === "android") {
|
|
660
|
-
import_react_native5.StatusBar.setBackgroundColor(
|
|
661
|
-
translucent ? "transparent" : colors2.white[1]
|
|
662
|
-
);
|
|
663
658
|
import_react_native5.StatusBar.setTranslucent(true);
|
|
664
659
|
}
|
|
665
660
|
};
|
|
@@ -1718,7 +1713,7 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1718
1713
|
alignSelf: "stretch",
|
|
1719
1714
|
paddingLeft: inputPadding,
|
|
1720
1715
|
paddingRight: (0, import_react_native_size_matters13.moderateScale)(10),
|
|
1721
|
-
...isFloating ? {
|
|
1716
|
+
...isFloating ? { marginTop: "13@ms", fontFamily: getFontFamily(400) } : {},
|
|
1722
1717
|
color: disabled ? colors2.textSecondary.main : colors2.dark.main,
|
|
1723
1718
|
zIndex: 10
|
|
1724
1719
|
},
|
|
@@ -1877,6 +1872,7 @@ var TextFieldBase = import_react16.default.forwardRef(
|
|
|
1877
1872
|
placeholder: labelOpen ? placeholder : "",
|
|
1878
1873
|
selectTextOnFocus: !disabled,
|
|
1879
1874
|
onSubmitEditing,
|
|
1875
|
+
verticalAlign: "middle",
|
|
1880
1876
|
multiline,
|
|
1881
1877
|
textAlignVertical: multiline ? "top" : "center",
|
|
1882
1878
|
...formProps,
|