@fto-consult/expo-ui 1.0.32 → 1.0.34
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 +2 -2
- package/src/auth/Login.js +1 -1
- package/src/components/AppBar/index.js +1 -2
- package/src/components/Drawer/DrawerItems/DrawerItem.js +1 -3
- package/src/components/Drawer/DrawerItems/utils.js +1 -1
- package/src/components/ErrorBoundary/ErrorMessage.js +2 -3
- package/src/components/Form/List/List.js +1 -1
- package/src/components/Link/index.js +1 -1
- package/src/index.js +1 -1
- package/src/layouts/Screen/FormData/FormData.js +2 -2
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.34",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@emotion/native": "^11.10.0",
|
|
61
61
|
"@expo/metro-config": "^0.4.0",
|
|
62
62
|
"@expo/webpack-config": "^0.17.2",
|
|
63
|
-
"@fto-consult/common": "^1.1.
|
|
63
|
+
"@fto-consult/common": "^1.1.9",
|
|
64
64
|
"@gorhom/portal": "^1.0.14",
|
|
65
65
|
"@react-native-async-storage/async-storage": "~1.17.3",
|
|
66
66
|
"@react-native-community/netinfo": "9.3.0",
|
package/src/auth/Login.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "$react";
|
|
2
2
|
import {isNonNullString,defaultNumber,defaultStr,uniqid,extendObj,isFunction} from "$utils";
|
|
3
|
-
import {navigate} from "$
|
|
3
|
+
import {navigate} from "$cnavigation";
|
|
4
4
|
import FormData from "$ecomponents/Form/FormData/FormData";
|
|
5
5
|
import {getForm} from "$ecomponents/Form/utils";
|
|
6
6
|
import Button from "$ecomponents/Button";
|
|
@@ -5,10 +5,9 @@ import APP from "$capp/instance"
|
|
|
5
5
|
import {isSplitedActions,renderSplitedActions,splitActions,TITLE_FONT_SIZE} from "./utils";
|
|
6
6
|
import theme,{Colors,flattenStyle} from "$theme";
|
|
7
7
|
import {StyleSheet} from "react-native";
|
|
8
|
-
import {goBack as navGoBack} from "$
|
|
8
|
+
import {goBack as navGoBack,useNavigation,useRoute,useScreenOptions } from "$cnavigation";
|
|
9
9
|
import PropTypes from "prop-types";
|
|
10
10
|
import { Dimensions,TouchableWithoutFeedback} from "react-native";
|
|
11
|
-
import { useNavigation,useRoute,useScreenOptions } from "$enavigation/utils";
|
|
12
11
|
import Content from "./Content";
|
|
13
12
|
import Icon from "$ecomponents/Icon";
|
|
14
13
|
import {Elevations} from "$ecomponents/Surface";
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import {isNonNullString,defaultStr,uniqid} from "$utils";
|
|
2
2
|
import PropTypes from "prop-types"
|
|
3
3
|
import _DrawerItem from "./_DrawerItem";
|
|
4
|
-
import {navigate} from "$
|
|
4
|
+
import {navigate,setActiveRoute} from "$cnavigation";
|
|
5
5
|
import { useDrawer } from "../Provider";
|
|
6
|
-
|
|
7
|
-
import {setActiveRoute} from "$enavigation/utils";
|
|
8
6
|
import { setActiveItem,getOnPressAction,closeDrawer as nCloseDrawer,previousActiveItemRef,activeItemRef} from "./utils";
|
|
9
7
|
import React from "$react";
|
|
10
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {navigate} from "$
|
|
1
|
+
import {navigate} from "$cnavigation";
|
|
2
2
|
import {defaultObj,isPromise,isObj,isNonNullString,isFunction} from "$utils";
|
|
3
3
|
import {open as openPreloader,close as closePreloader} from "$epreloader";
|
|
4
4
|
import React from "$react";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import Types from 'prop-types';
|
|
3
|
-
import {StyleSheet,View,
|
|
3
|
+
import {StyleSheet,View,useWindowDimensions} from "react-native";
|
|
4
4
|
import ScrollView from "$ecomponents/ScrollView";
|
|
5
5
|
import {Paragraph,Button,List } from "react-native-paper";
|
|
6
6
|
import Portal from "$ecomponents/Portal";
|
|
7
7
|
import theme from "$theme";
|
|
8
|
-
import {navigationRef,sanitizeName} from "$
|
|
9
|
-
import {isMobileNative} from "$cplatform";
|
|
8
|
+
import {navigationRef,sanitizeName} from "$cnavigation";
|
|
10
9
|
import Expandable from "$ecomponents/Expandable";
|
|
11
10
|
import Label from "$ecomponents/Label";
|
|
12
11
|
|
|
@@ -12,7 +12,7 @@ import {StyleSheet} from "react-native";
|
|
|
12
12
|
import {List} from "react-native-paper";
|
|
13
13
|
import FlashList from "$ecomponents/List";
|
|
14
14
|
import Surface from "$ecomponents/Surface";
|
|
15
|
-
import {navigate} from "$
|
|
15
|
+
import {navigate} from "$cnavigation";
|
|
16
16
|
import { handleBeforeSaveCallback } from "$ecomponents/Form/FormData/utils";
|
|
17
17
|
import theme from "$theme";
|
|
18
18
|
|
package/src/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {navigationRef} from "$cnavigation"
|
|
|
7
7
|
import NetInfo from '$utils/NetInfo';
|
|
8
8
|
import Auth from "$cauth";
|
|
9
9
|
import {isNativeMobile} from "$cplatform";
|
|
10
|
-
import Navigation from "
|
|
10
|
+
import Navigation from "./navigation";
|
|
11
11
|
import {set as setSession,get as getSession} from "$session";
|
|
12
12
|
import { showConfirm } from "$ecomponents/Dialog";
|
|
13
13
|
import {close as closePreloader, isVisible as isPreloaderVisible} from "$epreloader";
|
|
@@ -3,10 +3,10 @@ import FormDataActions from "$ecomponents/Form/FormData/FormDataActions";
|
|
|
3
3
|
import React from "$react";
|
|
4
4
|
import {defaultObj,isObj,defaultStr} from "$utils";
|
|
5
5
|
import ScreenContainer from "../Screen";
|
|
6
|
-
import {useRoute} from "$
|
|
6
|
+
import {useRoute} from "$cnavigation";
|
|
7
7
|
import {Form as FormLoader} from "$ecomponents/ContentLoader";
|
|
8
8
|
import HeavyScreen from "$ecomponents/HeavyScreen";
|
|
9
|
-
import {goBack,getScreenProps} from "$
|
|
9
|
+
import {goBack,getScreenProps} from "$cnavigation";
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
export default class FormDataLayout extends FormDataActions {
|