@hoddy-ui/core 1.0.97 → 1.0.99

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoddy-ui/core",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
4
4
  "description": "Core rich react native components written in typescript",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -15,7 +15,7 @@ const AdaptiveStatusBar = ({ translucent = false }) => {
15
15
  );
16
16
  if (Platform.OS === "android") {
17
17
  StatusBar.setBackgroundColor(
18
- colors.white[1] + (translucent ? "0" : "")
18
+ translucent ? "transparent" : colors.white[1]
19
19
  );
20
20
  StatusBar.setTranslucent(true);
21
21
  }
@@ -121,8 +121,8 @@ const Button: React.FC<ButtonProps> = forwardRef(
121
121
  ? null
122
122
  : translucent
123
123
  ? translucent === "dark"
124
- ? colors.white[3] + "2"
125
- : colors.black[3] + "2"
124
+ ? colors.white[3] + "22"
125
+ : colors.black[3] + "22"
126
126
  : loading
127
127
  ? colors[color].light
128
128
  : disabled
@@ -59,7 +59,7 @@ const SelectMenu: React.FC<SelectMenuProps> = ({
59
59
  style={{
60
60
  ...styles.option,
61
61
  backgroundColor:
62
- item.value === value ? colors.blue.light + "2" : colors.white[2],
62
+ item.value === value ? colors.blue.light + "22" : colors.white[2],
63
63
  }}
64
64
  onPress={() => {
65
65
  onChange(item.value);
@@ -24,7 +24,7 @@ const Spinner: React.FC<SpinnerProps> = ({
24
24
  alignItems: "center",
25
25
  justifyContent: "center",
26
26
  position: fullscreen ? "absolute" : "relative",
27
- backgroundColor: fullscreen ? colors.white[1] + "d" : undefined,
27
+ backgroundColor: fullscreen ? colors.white[1] + "dd" : undefined,
28
28
  ...style,
29
29
  },
30
30
  content: {
@@ -43,13 +43,13 @@ const ConfigureSystemUI = () => {
43
43
  useEffect(() => {
44
44
  if (colors) {
45
45
  SystemUI.setBackgroundColorAsync(colors.white[1]);
46
- NavigationBar.setBackgroundColorAsync(colors.white[1]);
47
- }
48
- if (Platform.OS === "android") {
49
- if (theme === "dark") {
50
- NavigationBar.setButtonStyleAsync("light");
51
- } else {
52
- NavigationBar.setButtonStyleAsync("dark");
46
+ if (Platform.OS === "android") {
47
+ NavigationBar.setBackgroundColorAsync(colors.white[1]);
48
+ if (theme === "dark") {
49
+ NavigationBar.setButtonStyleAsync("light");
50
+ } else {
51
+ NavigationBar.setButtonStyleAsync("dark");
52
+ }
53
53
  }
54
54
  }
55
55
  }, [colors, theme]);