@hoddy-ui/core 1.0.8 → 1.0.10

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/index.ts CHANGED
@@ -4,14 +4,18 @@ export { default as AlertX } from "./src/Components/AlertX";
4
4
  export { default as Avatar } from "./src/Components/Avatar";
5
5
  export * from "./src/Components/Button";
6
6
  export { default as Button } from "./src/Components/Button";
7
+ export * from "./src/Components/Checkbox";
8
+ export * from "./src/Components/FlashMessage";
9
+ export * from "./src/Components/Grid";
10
+ export * from "./src/Components/Locator";
11
+ export * from "./src/Components/Popup";
12
+ export * from "./src/Components/SafeAreaView";
13
+ export { default as SelectMenu } from "./src/Components/SelectMenu";
7
14
  export { default as Spinner } from "./src/Components/Spinner";
8
15
  export * from "./src/Components/TextField";
9
16
  export { default as TextField } from "./src/Components/TextField";
10
17
  export { default as Typography } from "./src/Components/Typography";
11
- export { default as SafeAreaView } from "./src/Components/SafeAreaView";
12
- export { default as SelectMenu } from "./src/Components/SelectMenu";
13
18
  // Others
14
-
15
19
  export * from "./src/config";
16
20
  export * from "./src/hooks";
17
21
  export * from "./src/theme/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoddy-ui/core",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Core rich react native components written in typescript",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -8,7 +8,7 @@ import {
8
8
  } from "react-native";
9
9
  import { ScaledSheet } from "react-native-size-matters";
10
10
  import { FormWrapperProps } from "../types";
11
- const FormWrapper: React.FC<FormWrapperProps> = ({
11
+ export const FormWrapper: React.FC<FormWrapperProps> = ({
12
12
  children,
13
13
  behavior = "position",
14
14
  contentContainerStyle,
@@ -54,5 +54,3 @@ const FormWrapper: React.FC<FormWrapperProps> = ({
54
54
  </ScrollView>
55
55
  );
56
56
  };
57
-
58
- export default FormWrapper;
@@ -19,7 +19,11 @@ export const GridItem: React.FC<GridItemProps> = ({
19
19
  });
20
20
  return <View children={children} style={[styles.gridItem, style]} />;
21
21
  };
22
- const Grid: React.FC<GridProps> = ({ children, spacing = 1, style = {} }) => {
22
+ export const Grid: React.FC<GridProps> = ({
23
+ children,
24
+ spacing = 1,
25
+ style = {},
26
+ }) => {
23
27
  const styles = ScaledSheet.create({
24
28
  grid: {
25
29
  flexWrap: "wrap",
@@ -29,5 +33,3 @@ const Grid: React.FC<GridProps> = ({ children, spacing = 1, style = {} }) => {
29
33
  });
30
34
  return <View children={children} style={[styles.grid, style]} />;
31
35
  };
32
-
33
- export default Grid;
@@ -44,7 +44,7 @@ export const getPredictionsFromCoords = async (coords: any) => {
44
44
  return p;
45
45
  };
46
46
 
47
- const Locator: React.FC<LocatorProps> = ({
47
+ export const Locator: React.FC<LocatorProps> = ({
48
48
  variant = "contained",
49
49
  onLocationSelected,
50
50
  label,
@@ -225,4 +225,3 @@ const Locator: React.FC<LocatorProps> = ({
225
225
  );
226
226
  };
227
227
 
228
- export default Locator;
@@ -7,7 +7,7 @@ import { PopupProps } from "../types";
7
7
  import { IconButton } from "./Button";
8
8
  import Typography from "./Typography";
9
9
 
10
- const Popup: React.FC<PopupProps> = ({
10
+ export const Popup: React.FC<PopupProps> = ({
11
11
  title,
12
12
  sheet,
13
13
  bare = false,
@@ -95,5 +95,3 @@ const Popup: React.FC<PopupProps> = ({
95
95
  </>
96
96
  );
97
97
  };
98
-
99
- export default Popup;
@@ -12,8 +12,9 @@ const styles = StyleSheet.create({
12
12
  },
13
13
  });
14
14
 
15
- const SafeAreaView: React.FC<SafeAreaViewProps> = ({ children, style }) => {
15
+ export const SafeAreaView: React.FC<SafeAreaViewProps> = ({
16
+ children,
17
+ style,
18
+ }) => {
16
19
  return <Safe style={{ ...styles.droidSafeArea, ...style }}>{children}</Safe>;
17
20
  };
18
-
19
- export default SafeAreaView;
@@ -2,7 +2,9 @@ type apikeys = {
2
2
  GOOGLE_MAP_API_KEY?: string;
3
3
  };
4
4
 
5
- let apiKey: apikeys;
5
+ let apiKey: apikeys = {
6
+ GOOGLE_MAP_API_KEY: "",
7
+ };
6
8
 
7
9
  export function setApiKey(key: apikeys): void {
8
10
  apiKey = key;