@grupalia/rn-ui-kit 0.26.0 → 0.27.0
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/lib/commonjs/assets/illustrations/my-location.svg +1 -0
- package/lib/commonjs/components/BasePhoneInput.js +115 -0
- package/lib/commonjs/components/BasePhoneInput.js.map +1 -0
- package/lib/commonjs/components/BaseTextInput.js +80 -0
- package/lib/commonjs/components/BaseTextInput.js.map +1 -0
- package/lib/commonjs/components/FormikPhoneInput.js +26 -0
- package/lib/commonjs/components/FormikPhoneInput.js.map +1 -0
- package/lib/commonjs/components/FormikTextInput.js +45 -0
- package/lib/commonjs/components/FormikTextInput.js.map +1 -0
- package/lib/commonjs/components/RetrieveGeolocation.js +147 -0
- package/lib/commonjs/components/RetrieveGeolocation.js.map +1 -0
- package/lib/commonjs/components/index.js +35 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/svgs/MyLocation.js +15 -0
- package/lib/commonjs/components/svgs/MyLocation.js.map +1 -0
- package/lib/commonjs/hooks/useGetGeolocation.js +87 -0
- package/lib/commonjs/hooks/useGetGeolocation.js.map +1 -0
- package/lib/commonjs/utils/index.js +11 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/log.js +20 -0
- package/lib/commonjs/utils/log.js.map +1 -0
- package/lib/module/assets/illustrations/my-location.svg +1 -0
- package/lib/module/components/BasePhoneInput.js +110 -0
- package/lib/module/components/BasePhoneInput.js.map +1 -0
- package/lib/module/components/BaseTextInput.js +74 -0
- package/lib/module/components/BaseTextInput.js.map +1 -0
- package/lib/module/components/FormikPhoneInput.js +21 -0
- package/lib/module/components/FormikPhoneInput.js.map +1 -0
- package/lib/module/components/FormikTextInput.js +39 -0
- package/lib/module/components/FormikTextInput.js.map +1 -0
- package/lib/module/components/RetrieveGeolocation.js +141 -0
- package/lib/module/components/RetrieveGeolocation.js.map +1 -0
- package/lib/module/components/index.js +5 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/svgs/MyLocation.js +10 -0
- package/lib/module/components/svgs/MyLocation.js.map +1 -0
- package/lib/module/hooks/useGetGeolocation.js +82 -0
- package/lib/module/hooks/useGetGeolocation.js.map +1 -0
- package/lib/module/utils/index.js +1 -0
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/log.js +16 -0
- package/lib/module/utils/log.js.map +1 -0
- package/lib/typescript/commonjs/components/BasePhoneInput.d.ts +24 -0
- package/lib/typescript/commonjs/components/BasePhoneInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/BaseTextInput.d.ts +15 -0
- package/lib/typescript/commonjs/components/BaseTextInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/FormikPhoneInput.d.ts +8 -0
- package/lib/typescript/commonjs/components/FormikPhoneInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/FormikTextInput.d.ts +9 -0
- package/lib/typescript/commonjs/components/FormikTextInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/RetrieveGeolocation.d.ts +10 -0
- package/lib/typescript/commonjs/components/RetrieveGeolocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/svgs/MyLocation.d.ts +6 -0
- package/lib/typescript/commonjs/components/svgs/MyLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useGetGeolocation.d.ts +24 -0
- package/lib/typescript/commonjs/hooks/useGetGeolocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/log.d.ts +4 -0
- package/lib/typescript/commonjs/utils/log.d.ts.map +1 -0
- package/lib/typescript/module/components/BasePhoneInput.d.ts +24 -0
- package/lib/typescript/module/components/BasePhoneInput.d.ts.map +1 -0
- package/lib/typescript/module/components/BaseTextInput.d.ts +15 -0
- package/lib/typescript/module/components/BaseTextInput.d.ts.map +1 -0
- package/lib/typescript/module/components/FormikPhoneInput.d.ts +8 -0
- package/lib/typescript/module/components/FormikPhoneInput.d.ts.map +1 -0
- package/lib/typescript/module/components/FormikTextInput.d.ts +9 -0
- package/lib/typescript/module/components/FormikTextInput.d.ts.map +1 -0
- package/lib/typescript/module/components/RetrieveGeolocation.d.ts +10 -0
- package/lib/typescript/module/components/RetrieveGeolocation.d.ts.map +1 -0
- package/lib/typescript/module/components/index.d.ts +5 -0
- package/lib/typescript/module/components/index.d.ts.map +1 -1
- package/lib/typescript/module/components/svgs/MyLocation.d.ts +6 -0
- package/lib/typescript/module/components/svgs/MyLocation.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useGetGeolocation.d.ts +24 -0
- package/lib/typescript/module/hooks/useGetGeolocation.d.ts.map +1 -0
- package/lib/typescript/module/utils/index.d.ts +1 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/utils/log.d.ts +4 -0
- package/lib/typescript/module/utils/log.d.ts.map +1 -0
- package/package.json +7 -4
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import Geolocation from '@react-native-community/geolocation';
|
|
4
|
+
import { useCallback, useState } from 'react';
|
|
5
|
+
import log from "../utils/log.js";
|
|
6
|
+
const CONFIG = {
|
|
7
|
+
skipPermissionRequests: false,
|
|
8
|
+
locationProvider: 'auto'
|
|
9
|
+
};
|
|
10
|
+
Geolocation.setRNConfiguration(CONFIG);
|
|
11
|
+
const HIGH_ACCURACY_OPTIONS = {
|
|
12
|
+
enableHighAccuracy: true,
|
|
13
|
+
timeout: 1000 * 10,
|
|
14
|
+
maximumAge: 1000 * 60 * 5
|
|
15
|
+
};
|
|
16
|
+
const LOW_ACCURACY_OPTIONS = {
|
|
17
|
+
enableHighAccuracy: false,
|
|
18
|
+
timeout: 1000 * 10,
|
|
19
|
+
maximumAge: 1000 * 60 * 5
|
|
20
|
+
};
|
|
21
|
+
function isGeolocationError(error) {
|
|
22
|
+
return typeof error === 'object' && error !== null && 'code' in error && 'TIMEOUT' in error && 'PERMISSION_DENIED' in error && 'POSITION_UNAVAILABLE' in error;
|
|
23
|
+
}
|
|
24
|
+
export default function useGetGeolocation({
|
|
25
|
+
onRetrievedGeolocation,
|
|
26
|
+
onError
|
|
27
|
+
}) {
|
|
28
|
+
const [isRequestingPermission, setIsRequestingPermission] = useState(false);
|
|
29
|
+
const [isRequestingGeolocation, setIsRequestingGeolocation] = useState(false);
|
|
30
|
+
const requestPermission = ({
|
|
31
|
+
onPermissionGranted,
|
|
32
|
+
onPermissionDenied
|
|
33
|
+
}) => {
|
|
34
|
+
log('geolocation', 'requesting authorization');
|
|
35
|
+
setIsRequestingPermission(true);
|
|
36
|
+
Geolocation.requestAuthorization(() => {
|
|
37
|
+
log('geolocation', 'authorization granted');
|
|
38
|
+
onPermissionGranted?.();
|
|
39
|
+
setIsRequestingPermission(false);
|
|
40
|
+
}, error => {
|
|
41
|
+
log('geolocation', 'authorization denied:', error);
|
|
42
|
+
onPermissionDenied?.(error);
|
|
43
|
+
setIsRequestingPermission(false);
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
const getCurrentPositionWithOptions = useCallback(options => new Promise((resolve, reject) => {
|
|
47
|
+
Geolocation.getCurrentPosition(data => resolve(data), error => reject(error), options);
|
|
48
|
+
}), []);
|
|
49
|
+
const getGeolocation = useCallback(async () => {
|
|
50
|
+
setIsRequestingGeolocation(true);
|
|
51
|
+
log('geolocation', 'getting current position with high accuracy');
|
|
52
|
+
try {
|
|
53
|
+
const data = await getCurrentPositionWithOptions(HIGH_ACCURACY_OPTIONS);
|
|
54
|
+
log('geolocation', 'current position retrieved:', data);
|
|
55
|
+
onRetrievedGeolocation(data);
|
|
56
|
+
} catch (error) {
|
|
57
|
+
if (isGeolocationError(error) && error.code === error.TIMEOUT) {
|
|
58
|
+
log('geolocation', 'timeout with high accuracy, retrying with low accuracy');
|
|
59
|
+
try {
|
|
60
|
+
const data = await getCurrentPositionWithOptions(LOW_ACCURACY_OPTIONS);
|
|
61
|
+
log('geolocation', 'current position retrieved with low accuracy:', data);
|
|
62
|
+
onRetrievedGeolocation(data);
|
|
63
|
+
} catch (retryError) {
|
|
64
|
+
log('geolocation', 'error getting current position with low accuracy:', JSON.stringify(retryError));
|
|
65
|
+
onError?.(retryError);
|
|
66
|
+
}
|
|
67
|
+
} else {
|
|
68
|
+
log('geolocation', 'error getting current position:', JSON.stringify(error));
|
|
69
|
+
onError?.(error);
|
|
70
|
+
}
|
|
71
|
+
} finally {
|
|
72
|
+
setIsRequestingGeolocation(false);
|
|
73
|
+
}
|
|
74
|
+
}, [getCurrentPositionWithOptions, onRetrievedGeolocation, onError]);
|
|
75
|
+
return {
|
|
76
|
+
isRequestingPermission,
|
|
77
|
+
isRequestingGeolocation,
|
|
78
|
+
getGeolocation,
|
|
79
|
+
requestPermission
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=useGetGeolocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Geolocation","useCallback","useState","log","CONFIG","skipPermissionRequests","locationProvider","setRNConfiguration","HIGH_ACCURACY_OPTIONS","enableHighAccuracy","timeout","maximumAge","LOW_ACCURACY_OPTIONS","isGeolocationError","error","useGetGeolocation","onRetrievedGeolocation","onError","isRequestingPermission","setIsRequestingPermission","isRequestingGeolocation","setIsRequestingGeolocation","requestPermission","onPermissionGranted","onPermissionDenied","requestAuthorization","getCurrentPositionWithOptions","options","Promise","resolve","reject","getCurrentPosition","data","getGeolocation","code","TIMEOUT","retryError","JSON","stringify"],"sourceRoot":"../../../src","sources":["hooks/useGetGeolocation.ts"],"mappings":";;AAAA,OAAOA,WAAW,MAAoC,qCAAqC;AAC3F,SAASC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAE7C,OAAOC,GAAG,MAAM,iBAAc;AAE9B,MAAMC,MAAM,GAA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,UAAU,CAAC;QACvB;MACF,CAAC,MAAM;QACLjC,GAAG,CAAC,aAAa,EAAE,iCAAiC,EAAEkC,IAAI,CAACC,SAAS,CAACxB,KAAK,CAAC,CAAC;QAC5EG,OAAO,GAAGH,KAAK,CAAC;MAClB;IACF,CAAC,SAAS;MACRO,0BAA0B,CAAC,KAAK,CAAC;IACnC;EACF,CAAC,EAAE,CAACK,6BAA6B,EAAEV,sBAAsB,EAAEC,OAAO,CAAC,CAAC;EAEpE,OAAO;IACLC,sBAAsB;IAAEE,uBAAuB;IAAEa,cAAc;IAAEX;EACnE,CAAC;AACH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;AAAA,cAAc,YAAS;AACvB,cAAc,yBAAsB;AACpC,cAAc,oBAAiB;AAC/B,cAAc,cAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;AAAA,cAAc,YAAS;AACvB,cAAc,yBAAsB;AACpC,cAAc,oBAAiB;AAC/B,cAAc,cAAW;AACzB,cAAc,UAAO","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export default function log(tag, ...args) {
|
|
4
|
+
const formattedArgs = args.map(arg => {
|
|
5
|
+
if (typeof arg === 'object') {
|
|
6
|
+
return JSON.stringify(arg);
|
|
7
|
+
}
|
|
8
|
+
return String(arg);
|
|
9
|
+
});
|
|
10
|
+
const message = formattedArgs.join(' ');
|
|
11
|
+
const logMessage = `[${tag}] ${message}`;
|
|
12
|
+
if (process.env.NODE_ENV !== 'development') {
|
|
13
|
+
console.log(logMessage); // eslint-disable-line no-console
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=log.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["log","tag","args","formattedArgs","map","arg","JSON","stringify","String","message","join","logMessage","process","env","NODE_ENV","console"],"sourceRoot":"../../../src","sources":["utils/log.ts"],"mappings":";;AAEA,eAAe,SAASA,GAAGA,CAACC,GAAW,EAAE,GAAGC,IAAc,EAAQ;EAChE,MAAMC,aAAa,GAAGD,IAAI,CAACE,GAAG,CAAEC,GAAG,IAAK;IACtC,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;MAC3B,OAAOC,IAAI,CAACC,SAAS,CAACF,GAAG,CAAC;IAC5B;IACA,OAAOG,MAAM,CAACH,GAAG,CAAC;EACpB,CAAC,CAAC;EAEF,MAAMI,OAAO,GAAGN,aAAa,CAACO,IAAI,CAAC,GAAG,CAAC;EAEvC,MAAMC,UAAU,GAAG,IAAIV,GAAG,KAAKQ,OAAO,EAAE;EAExC,IAAIG,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,aAAa,EAAE;IAC1CC,OAAO,CAACf,GAAG,CAACW,UAAU,CAAC,CAAC,CAAC;EAC3B;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
interface BasePhoneInputProps {
|
|
4
|
+
value?: string;
|
|
5
|
+
onChangeText?: (value: string) => void;
|
|
6
|
+
label: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
validating?: boolean;
|
|
9
|
+
validated?: boolean | null;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
onBlur?: (e: unknown) => void;
|
|
13
|
+
onFocus?: (e: unknown) => void;
|
|
14
|
+
error?: string;
|
|
15
|
+
touched?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: import("react").ForwardRefExoticComponent<BasePhoneInputProps & {
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
tw?: string | undefined;
|
|
20
|
+
baseClassName?: string | undefined;
|
|
21
|
+
baseTw?: string | undefined;
|
|
22
|
+
} & import("react").RefAttributes<unknown>>;
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=BasePhoneInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasePhoneInput.d.ts","sourceRoot":"","sources":["../../../../src/components/BasePhoneInput.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAWpD,UAAU,mBAAmB;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;;;;;;AAiHD,wBAAsC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextInput } from '../hoc-components';
|
|
3
|
+
interface BaseTextInputProps extends React.ComponentProps<typeof TextInput> {
|
|
4
|
+
label?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
keyboardType?: 'default' | 'numeric' | 'phone-pad';
|
|
10
|
+
error?: string;
|
|
11
|
+
touched?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("nativewind").StyledProps<BaseTextInputProps>, "ref"> & React.RefAttributes<unknown>>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=BaseTextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/BaseTextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAQ,MAAM,mBAAmB,CAAC;AAIpD,UAAU,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;AAsED,wBAAqC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import BasePhoneInput from './BasePhoneInput';
|
|
3
|
+
interface FormikPhoneInputProps extends Omit<React.ComponentProps<typeof BasePhoneInput>, 'value' | 'onChangeText' | 'error' | 'touched'> {
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<import("nativewind").StyledProps<FormikPhoneInputProps>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=FormikPhoneInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormikPhoneInput.d.ts","sourceRoot":"","sources":["../../../../src/components/FormikPhoneInput.tsx"],"names":[],"mappings":";AAGA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,UAAU,qBAAsB,SAAQ,IAAI,CAC1C,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,EAC3C,OAAO,GACL,cAAc,GACd,OAAO,GACP,SAAS,CACZ;IACC,IAAI,EAAE,MAAM,CAAC;CACd;;AAmBD,wBAAwC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import BaseTextInput from './BaseTextInput';
|
|
3
|
+
interface FormikTextInputProps extends Omit<React.ComponentProps<typeof BaseTextInput>, 'value' | 'onChangeText' | 'error' | 'touched' | 'onBlur' | 'onFocus'> {
|
|
4
|
+
name: string;
|
|
5
|
+
trimWhitespace?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("nativewind").StyledProps<FormikTextInputProps>, "ref"> & React.RefAttributes<unknown>>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=FormikTextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormikTextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/FormikTextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,UAAU,oBAAqB,SAAQ,IAAI,CACzC,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,EAC1C,OAAO,GACL,cAAc,GACd,OAAO,GACP,SAAS,GACT,QAAQ,GACR,SAAS,CACZ;IACC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;;AAsCD,wBAAuC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type GeolocationResponse } from '@react-native-community/geolocation';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
onSuccess: (data: GeolocationResponse) => void;
|
|
6
|
+
locationUseExplanation: string;
|
|
7
|
+
}
|
|
8
|
+
export default function RetrieveGeolocation({ onSuccess, isLoading: externalIsLoading, locationUseExplanation }: Props): React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=RetrieveGeolocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetrieveGeolocation.d.ts","sourceRoot":"","sources":["../../../../src/components/RetrieveGeolocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAA8B,MAAM,OAAO,CAAC;AA6DnD,UAAU,KAAK;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC/C,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,EAAE,KAAK,qBAsG3E"}
|
|
@@ -35,4 +35,9 @@ export { default as PhotoPickerModal } from './PhotoPickerModal';
|
|
|
35
35
|
export { default as PressableOpacity } from './PressableOpacity';
|
|
36
36
|
export { default as SignatureApiWebView } from './SignatureApiWebView';
|
|
37
37
|
export { default as Toasts } from './Toasts';
|
|
38
|
+
export { default as BaseTextInput } from './BaseTextInput';
|
|
39
|
+
export { default as BasePhoneInput } from './BasePhoneInput';
|
|
40
|
+
export { default as FormikTextInput } from './FormikTextInput';
|
|
41
|
+
export { default as FormikPhoneInput } from './FormikPhoneInput';
|
|
42
|
+
export { default as RetrieveGeolocation } from './RetrieveGeolocation';
|
|
38
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.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,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import MyLocationSvg from '../../assets/illustrations/my-location.svg';
|
|
3
|
+
type Props = ComponentProps<typeof MyLocationSvg>;
|
|
4
|
+
export default function MyLocation(props: Props): import("react").JSX.Element;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=MyLocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MyLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/svgs/MyLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,aAAa,MAAM,4CAA4C,CAAC;AAEvE,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAElD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,KAAK,+BAI9C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type GeolocationResponse } from '@react-native-community/geolocation';
|
|
2
|
+
interface RequestPermissionError {
|
|
3
|
+
code: number;
|
|
4
|
+
message: string;
|
|
5
|
+
PERMISSION_DENIED: number;
|
|
6
|
+
POSITION_UNAVAILABLE: number;
|
|
7
|
+
TIMEOUT: number;
|
|
8
|
+
}
|
|
9
|
+
interface RequestPermission {
|
|
10
|
+
onPermissionGranted: () => void;
|
|
11
|
+
onPermissionDenied: (error: RequestPermissionError) => void;
|
|
12
|
+
}
|
|
13
|
+
interface Props {
|
|
14
|
+
onRetrievedGeolocation: (data: GeolocationResponse) => void;
|
|
15
|
+
onError?: (error: unknown) => void;
|
|
16
|
+
}
|
|
17
|
+
export default function useGetGeolocation({ onRetrievedGeolocation, onError }: Props): {
|
|
18
|
+
isRequestingPermission: boolean;
|
|
19
|
+
isRequestingGeolocation: boolean;
|
|
20
|
+
getGeolocation: () => Promise<void>;
|
|
21
|
+
requestPermission: ({ onPermissionGranted, onPermissionDenied }: RequestPermission) => void;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useGetGeolocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetGeolocation.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useGetGeolocation.ts"],"names":[],"mappings":"AAAA,OAAoB,EAAE,KAAK,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AA8B5F,UAAU,sBAAsB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,iBAAiB;IACzB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,kBAAkB,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC7D;AAaD,UAAU,KAAK;IACb,sBAAsB,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC5D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,sBAAsB,EAAE,OAAO,EAAE,EAAE,KAAK;;;;qEAIV,iBAAiB;EA0D1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/utils/log.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAehE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
interface BasePhoneInputProps {
|
|
4
|
+
value?: string;
|
|
5
|
+
onChangeText?: (value: string) => void;
|
|
6
|
+
label: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
validating?: boolean;
|
|
9
|
+
validated?: boolean | null;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
onBlur?: (e: unknown) => void;
|
|
13
|
+
onFocus?: (e: unknown) => void;
|
|
14
|
+
error?: string;
|
|
15
|
+
touched?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: import("react").ForwardRefExoticComponent<BasePhoneInputProps & {
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
tw?: string | undefined;
|
|
20
|
+
baseClassName?: string | undefined;
|
|
21
|
+
baseTw?: string | undefined;
|
|
22
|
+
} & import("react").RefAttributes<unknown>>;
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=BasePhoneInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasePhoneInput.d.ts","sourceRoot":"","sources":["../../../../src/components/BasePhoneInput.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAWpD,UAAU,mBAAmB;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;;;;;;AAiHD,wBAAsC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextInput } from '../hoc-components';
|
|
3
|
+
interface BaseTextInputProps extends React.ComponentProps<typeof TextInput> {
|
|
4
|
+
label?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
keyboardType?: 'default' | 'numeric' | 'phone-pad';
|
|
10
|
+
error?: string;
|
|
11
|
+
touched?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("nativewind").StyledProps<BaseTextInputProps>, "ref"> & React.RefAttributes<unknown>>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=BaseTextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/BaseTextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAQ,MAAM,mBAAmB,CAAC;AAIpD,UAAU,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;;AAsED,wBAAqC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import BasePhoneInput from './BasePhoneInput';
|
|
3
|
+
interface FormikPhoneInputProps extends Omit<React.ComponentProps<typeof BasePhoneInput>, 'value' | 'onChangeText' | 'error' | 'touched'> {
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<import("nativewind").StyledProps<FormikPhoneInputProps>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=FormikPhoneInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormikPhoneInput.d.ts","sourceRoot":"","sources":["../../../../src/components/FormikPhoneInput.tsx"],"names":[],"mappings":";AAGA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,UAAU,qBAAsB,SAAQ,IAAI,CAC1C,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,EAC3C,OAAO,GACL,cAAc,GACd,OAAO,GACP,SAAS,CACZ;IACC,IAAI,EAAE,MAAM,CAAC;CACd;;AAmBD,wBAAwC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import BaseTextInput from './BaseTextInput';
|
|
3
|
+
interface FormikTextInputProps extends Omit<React.ComponentProps<typeof BaseTextInput>, 'value' | 'onChangeText' | 'error' | 'touched' | 'onBlur' | 'onFocus'> {
|
|
4
|
+
name: string;
|
|
5
|
+
trimWhitespace?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("nativewind").StyledProps<FormikTextInputProps>, "ref"> & React.RefAttributes<unknown>>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=FormikTextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormikTextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/FormikTextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,UAAU,oBAAqB,SAAQ,IAAI,CACzC,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,EAC1C,OAAO,GACL,cAAc,GACd,OAAO,GACP,SAAS,GACT,QAAQ,GACR,SAAS,CACZ;IACC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;;AAsCD,wBAAuC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type GeolocationResponse } from '@react-native-community/geolocation';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
onSuccess: (data: GeolocationResponse) => void;
|
|
6
|
+
locationUseExplanation: string;
|
|
7
|
+
}
|
|
8
|
+
export default function RetrieveGeolocation({ onSuccess, isLoading: externalIsLoading, locationUseExplanation }: Props): React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=RetrieveGeolocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetrieveGeolocation.d.ts","sourceRoot":"","sources":["../../../../src/components/RetrieveGeolocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAA8B,MAAM,OAAO,CAAC;AA6DnD,UAAU,KAAK;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC/C,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,EAAE,KAAK,qBAsG3E"}
|
|
@@ -35,4 +35,9 @@ export { default as PhotoPickerModal } from './PhotoPickerModal';
|
|
|
35
35
|
export { default as PressableOpacity } from './PressableOpacity';
|
|
36
36
|
export { default as SignatureApiWebView } from './SignatureApiWebView';
|
|
37
37
|
export { default as Toasts } from './Toasts';
|
|
38
|
+
export { default as BaseTextInput } from './BaseTextInput';
|
|
39
|
+
export { default as BasePhoneInput } from './BasePhoneInput';
|
|
40
|
+
export { default as FormikTextInput } from './FormikTextInput';
|
|
41
|
+
export { default as FormikPhoneInput } from './FormikPhoneInput';
|
|
42
|
+
export { default as RetrieveGeolocation } from './RetrieveGeolocation';
|
|
38
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe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gB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import MyLocationSvg from '../../assets/illustrations/my-location.svg';
|
|
3
|
+
type Props = ComponentProps<typeof MyLocationSvg>;
|
|
4
|
+
export default function MyLocation(props: Props): import("react").JSX.Element;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=MyLocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MyLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/svgs/MyLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,aAAa,MAAM,4CAA4C,CAAC;AAEvE,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAElD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,KAAK,+BAI9C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type GeolocationResponse } from '@react-native-community/geolocation';
|
|
2
|
+
interface RequestPermissionError {
|
|
3
|
+
code: number;
|
|
4
|
+
message: string;
|
|
5
|
+
PERMISSION_DENIED: number;
|
|
6
|
+
POSITION_UNAVAILABLE: number;
|
|
7
|
+
TIMEOUT: number;
|
|
8
|
+
}
|
|
9
|
+
interface RequestPermission {
|
|
10
|
+
onPermissionGranted: () => void;
|
|
11
|
+
onPermissionDenied: (error: RequestPermissionError) => void;
|
|
12
|
+
}
|
|
13
|
+
interface Props {
|
|
14
|
+
onRetrievedGeolocation: (data: GeolocationResponse) => void;
|
|
15
|
+
onError?: (error: unknown) => void;
|
|
16
|
+
}
|
|
17
|
+
export default function useGetGeolocation({ onRetrievedGeolocation, onError }: Props): {
|
|
18
|
+
isRequestingPermission: boolean;
|
|
19
|
+
isRequestingGeolocation: boolean;
|
|
20
|
+
getGeolocation: () => Promise<void>;
|
|
21
|
+
requestPermission: ({ onPermissionGranted, onPermissionDenied }: RequestPermission) => void;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useGetGeolocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetGeolocation.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useGetGeolocation.ts"],"names":[],"mappings":"AAAA,OAAoB,EAAE,KAAK,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AA8B5F,UAAU,sBAAsB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,iBAAiB;IACzB,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,kBAAkB,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC7D;AAaD,UAAU,KAAK;IACb,sBAAsB,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC5D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,sBAAsB,EAAE,OAAO,EAAE,EAAE,KAAK;;;;qEAIV,iBAAiB;EA0D1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/utils/log.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAehE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grupalia/rn-ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Grupalia React Native UI Kit",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/module/index.d.ts",
|
|
@@ -22,16 +22,17 @@
|
|
|
22
22
|
"bump-patch-version": "npm version patch --message 'chore(release): bump version'"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
+
"@date-fns/tz": "^1.3.1",
|
|
25
26
|
"@gorhom/bottom-sheet": "^5",
|
|
26
27
|
"@react-native-async-storage/async-storage": "1.23.1",
|
|
27
28
|
"@react-native-community/hooks": "^100.1.0",
|
|
28
29
|
"@react-native-community/netinfo": "11.3.1",
|
|
29
30
|
"@react-navigation/native": "^6.1.18",
|
|
31
|
+
"@react-native-community/geolocation": "^3.4.0",
|
|
30
32
|
"@sentry/react-native": "^6.9.1",
|
|
31
33
|
"@tanstack/react-query": "^5.63.0",
|
|
32
34
|
"clsx": "^2.1.1",
|
|
33
35
|
"date-fns": "^4.1.0",
|
|
34
|
-
"@date-fns/tz": "^1.3.1",
|
|
35
36
|
"expo-constants": "~16.0.1",
|
|
36
37
|
"expo-file-system": "17",
|
|
37
38
|
"expo-linear-gradient": "~13.0.2",
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@babel/core": "^7.20.0",
|
|
56
|
+
"@date-fns/tz": "^1.3.1",
|
|
55
57
|
"@gorhom/bottom-sheet": "^5",
|
|
56
58
|
"@react-native-async-storage/async-storage": "1.23.1",
|
|
57
59
|
"@react-native-community/hooks": "^100.1.0",
|
|
@@ -67,7 +69,6 @@
|
|
|
67
69
|
"chokidar-cli": "^3.0.0",
|
|
68
70
|
"clsx": "^2.1.1",
|
|
69
71
|
"date-fns": "^4.1.0",
|
|
70
|
-
"@date-fns/tz": "^1.3.1",
|
|
71
72
|
"eslint": "^8.29.0",
|
|
72
73
|
"eslint-config-airbnb": "^19.0.4",
|
|
73
74
|
"eslint-plugin-import": "^2.29.1",
|
|
@@ -142,5 +143,7 @@
|
|
|
142
143
|
"node_modules/",
|
|
143
144
|
"lib/"
|
|
144
145
|
],
|
|
145
|
-
"dependencies": {
|
|
146
|
+
"dependencies": {
|
|
147
|
+
"@react-native-community/geolocation": "^3.4.0"
|
|
148
|
+
}
|
|
146
149
|
}
|