@fto-consult/expo-ui 1.0.4 → 1.0.6
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/babel.config.alias.js +4 -0
- package/package.json +2 -2
- package/src/App.js +3 -3
- package/src/auth/Login.js +1 -1
- package/src/components/Drawer/DrawerItems/utils.js +1 -1
- package/src/components/Drawer/DrawerLayout/index.js +1 -1
- package/src/components/Drawer/index.js +1 -1
- package/src/components/ErrorBoundary/index.js +1 -1
- package/src/components/Hashtag/index.js +1 -1
- package/src/index.js +1 -1
package/babel.config.alias.js
CHANGED
|
@@ -17,6 +17,10 @@ module.exports = (opts)=>{
|
|
|
17
17
|
r["$escreen"] = path.resolve(expo,"layouts/Screen");
|
|
18
18
|
r["$screens"] = r["$screens"] || path.resolve(expo,"screens");
|
|
19
19
|
r["$expo"] = r["$expo-ui"] = expo;
|
|
20
|
+
r["$epreloader"] = path.resolve(expo,"components/Preloader");
|
|
21
|
+
r["$eform"] = path.resolve(expo,"components","Form");
|
|
22
|
+
r["$eform-data"] = path.resolve(expo,"components","Form","FormData");
|
|
23
|
+
r["$eform-manager"] = path.resolve(expo,"components","Form/utils/FormManager");
|
|
20
24
|
if(typeof opts.mutator =='function'){
|
|
21
25
|
opts.mutator(r);
|
|
22
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@emotion/native": "^11.10.0",
|
|
27
27
|
"@expo/metro-config": "^0.4.0",
|
|
28
28
|
"@expo/webpack-config": "^0.17.2",
|
|
29
|
-
"@fto-consult/common": "^1.0.
|
|
29
|
+
"@fto-consult/common": "^1.0.12",
|
|
30
30
|
"@gorhom/portal": "^1.0.14",
|
|
31
31
|
"@react-native-async-storage/async-storage": "~1.17.3",
|
|
32
32
|
"@react-native-community/netinfo": "9.3.0",
|
package/src/App.js
CHANGED
|
@@ -4,14 +4,14 @@ import React from 'react';
|
|
|
4
4
|
import {updateTheme,defaultTheme} from "$theme";
|
|
5
5
|
import { AppRegistry} from 'react-native';
|
|
6
6
|
import {Provider as PaperProvider } from 'react-native-paper';
|
|
7
|
-
import App from '
|
|
7
|
+
import App from './index';
|
|
8
8
|
import {Portal } from 'react-native-paper';
|
|
9
|
-
import {PreloaderProvider} from "$
|
|
9
|
+
import {PreloaderProvider} from "$epreloader";
|
|
10
10
|
import DropdownAlert from '$ecomponents/Dialog/DropdownAlert';
|
|
11
11
|
import {notificationRef} from "$notify";
|
|
12
12
|
import BottomSheetProvider from "$ecomponents/BottomSheet/Provider";
|
|
13
13
|
import DialogProvider from "$ecomponents/Dialog/Provider";
|
|
14
|
-
import { DialogProvider as FormDataDialogProvider } from '
|
|
14
|
+
import { DialogProvider as FormDataDialogProvider } from '$eform/FormData';
|
|
15
15
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
16
16
|
import { PreferencesContext } from './Preferences';
|
|
17
17
|
import {AuthProvider} from '$cauth';
|
package/src/auth/Login.js
CHANGED
|
@@ -7,7 +7,7 @@ import Button from "$ecomponents/Button";
|
|
|
7
7
|
import notify from "$notify";
|
|
8
8
|
import {StyleSheet} from "react-native";
|
|
9
9
|
import { useAuth } from "$cauth/AuthProvider";
|
|
10
|
-
import Preloader from "$
|
|
10
|
+
import Preloader from "$epreloader";
|
|
11
11
|
import Dimensions from "$cplatform/dimensions";
|
|
12
12
|
import theme from "$theme";
|
|
13
13
|
import Label from "$ecomponents/Label";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {navigate} from "$enavigation/utils";
|
|
2
2
|
import {defaultObj,isPromise,isObj,isNonNullString,isFunction} from "$utils";
|
|
3
|
-
import {open as openPreloader,close as closePreloader} from "$
|
|
3
|
+
import {open as openPreloader,close as closePreloader} from "$epreloader";
|
|
4
4
|
import React from "$react";
|
|
5
5
|
import theme,{Colors} from "$theme";
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ import View from "$ecomponents/View";
|
|
|
13
13
|
import {defaultStr} from "$utils";
|
|
14
14
|
import theme,{Colors} from "$theme";
|
|
15
15
|
import {isMobileMedia} from "$cplatform/dimensions";
|
|
16
|
-
import Preloader from "$
|
|
16
|
+
import Preloader from "$epreloader";
|
|
17
17
|
import {Elevations} from "$ecomponents/Surface";
|
|
18
18
|
|
|
19
19
|
const MIN_SWIPE_DISTANCE = 3;
|
|
@@ -9,7 +9,7 @@ import theme,{Colors,flattenStyle} from "$theme";
|
|
|
9
9
|
import DrawerItems from './DrawerItems';
|
|
10
10
|
import {isDesktopMedia} from "$cplatform/dimensions";
|
|
11
11
|
import {isMobileNative} from "$cplatform";
|
|
12
|
-
import {open,close} from "$
|
|
12
|
+
import {open,close} from "$epreloader";
|
|
13
13
|
import {DRAWER_POSITIONS,DRAWER_TYPES,MINIMIZED_WIDTH,DRAWER_WIDTH,MINIMIZED_ICON_SIZE,ICON_SIZE} from './utils';
|
|
14
14
|
import Icon,{MENU_ICON} from "$ecomponents/Icon";
|
|
15
15
|
import apiSession from "./session";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {isNonNullString,defaultObj} from "$utils";
|
|
2
2
|
//import dataFileManager from "$database/dataFileManager";
|
|
3
|
-
import {open as showPreloader,close as hidePreloader} from "$
|
|
3
|
+
import {open as showPreloader,close as hidePreloader} from "$epreloader";
|
|
4
4
|
import Label from "$ecomponents/Label";
|
|
5
5
|
import templates from "$ecomponents/Form/Fields/sprintfSelectors";
|
|
6
6
|
import Tooltip from "$ecomponents/Tooltip";
|
package/src/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {isNativeMobile} from "$cplatform";
|
|
|
10
10
|
import Navigation from "$enavigation";
|
|
11
11
|
import {set as setSession,get as getSession} from "$session";
|
|
12
12
|
import { showConfirm } from "$ecomponents/Dialog";
|
|
13
|
-
import {close as closePreloader, isVisible as isPreloaderVisible} from "$
|
|
13
|
+
import {close as closePreloader, isVisible as isPreloaderVisible} from "$epreloader";
|
|
14
14
|
import SplashScreen from "$ecomponents/SplashScreen";
|
|
15
15
|
import {notify} from "$ecomponents/Dialog";
|
|
16
16
|
import {decycle} from "$utils/json";
|