@fto-consult/expo-ui 8.5.0 → 8.6.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/babel.config.alias.js +0 -3
- package/package.json +1 -1
- package/App.js +0 -19
- package/docs/components/DocVersion/index.js +0 -21
- package/docs/navigation/drawerItems/index.js +0 -16
- package/docs/navigation/drawerSections.js +0 -14
- package/docs/screens/Datagrid/index.js +0 -12
- package/docs/screens/Home/index.js +0 -32
- package/docs/screens/Introduction/index.js +0 -13
- package/docs/screens/index.js +0 -8
- package/index.js +0 -1
package/babel.config.alias.js
CHANGED
@@ -17,9 +17,6 @@ module.exports = (opts)=>{
|
|
17
17
|
const cpath = fs.existsSync(euCommon)? path.resolve(euCommon,"babel.config.alias") : "@fto-consult/common/babel.config.alias";
|
18
18
|
const r = require(`${cpath}`)(opts);
|
19
19
|
const expo = path.resolve(expoUI,"src");
|
20
|
-
r.$edocs = path.resolve(expoUI,"docs");//l'alias de la documentation
|
21
|
-
r["$edocs-components"] = path.resolve(r.$edocs,"components");
|
22
|
-
r["$edocs-screens"] = path.resolve(r.$edocs,"screens");
|
23
20
|
r["$ecomponents"] = r["$expo-components"] = path.resolve(expo,"components");
|
24
21
|
r["$econfirm"] = path.resolve(r["$expo-components"],"Dialog","confirm");
|
25
22
|
r["$confirm"] = r["$confirm"] || r["$econfirm"];
|
package/package.json
CHANGED
package/App.js
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
import AppEntry from "./src";
|
2
|
-
import {disableAuth} from "$cauth";
|
3
|
-
import { registerRootComponent } from 'expo';
|
4
|
-
export default function MainExpoApp(props){
|
5
|
-
return <AppEntry
|
6
|
-
navigation={{
|
7
|
-
screens : require("./docs/screens").default,
|
8
|
-
drawerItems:require("./docs/navigation/drawerItems").default,
|
9
|
-
drawerSections : require("./docs/navigation/drawerSections")?.default,
|
10
|
-
}}
|
11
|
-
init ={({appConfig})=>{
|
12
|
-
disableAuth();
|
13
|
-
return Promise.resolve("test ted")
|
14
|
-
}}
|
15
|
-
{...props}
|
16
|
-
/>
|
17
|
-
}
|
18
|
-
|
19
|
-
registerRootComponent(MainExpoApp);
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import {H6} from "$ecomponents/Typography";
|
2
|
-
import appConfig from "$capp/config";
|
3
|
-
import Label from "$ecomponents/Label";
|
4
|
-
import Chip from "$ecomponents/Chip";
|
5
|
-
import View from "$ecomponents/View";
|
6
|
-
import { StyleSheet } from "react-native";
|
7
|
-
import theme from "$theme";
|
8
|
-
|
9
|
-
export default function DocVersionComponent(props){
|
10
|
-
return <Label fontSize={12} primary style = {[styles.label,props.style]} children={`Version ${appConfig.version}`} textBold
|
11
|
-
{...props}/>
|
12
|
-
}
|
13
|
-
|
14
|
-
const styles = StyleSheet.create({
|
15
|
-
label : {
|
16
|
-
borderRadius : 5,
|
17
|
-
padding : 2,
|
18
|
-
flexGrow : 0,
|
19
|
-
flex : 0,
|
20
|
-
}
|
21
|
-
})
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import Introdoction from "../../screens/Introduction";
|
2
|
-
import Datagrid from "../../screens/Datagrid";
|
3
|
-
export default [
|
4
|
-
{
|
5
|
-
text : "Introduction",
|
6
|
-
icon : "alpha-i-box",
|
7
|
-
drawerSection : "introduction",
|
8
|
-
routeName : Introdoction.screenName,
|
9
|
-
},
|
10
|
-
{
|
11
|
-
text : "Datagrid",
|
12
|
-
icon : "table",
|
13
|
-
drawerSection : "components",
|
14
|
-
routeName : Datagrid.screenName,
|
15
|
-
}
|
16
|
-
]
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import Screen from "$eScreen";
|
2
|
-
import Test from "$ecomponents/Datagrid/Test";
|
3
|
-
import React from "$react";
|
4
|
-
|
5
|
-
export default function DatagridScreen(props){
|
6
|
-
return <Screen{...props} contentContainerStyle={[{flex:1}]}>
|
7
|
-
<Test/>
|
8
|
-
</Screen>
|
9
|
-
};
|
10
|
-
|
11
|
-
DatagridScreen.screenName = "datagrid/test";
|
12
|
-
DatagridScreen.authRequired = false;
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import Screen from "$escreen";
|
2
|
-
import View from "$ecomponents/View";
|
3
|
-
import Label from "$ecomponents/Label";
|
4
|
-
import appConfig from "$capp/config";
|
5
|
-
import theme from "$theme";
|
6
|
-
import Link from "$ecomponents/Link";
|
7
|
-
import {StyleSheet} from "react-native";
|
8
|
-
import {H1,H2,H3,H4,H5,Paragraph} from "$ecomponents/Typography";
|
9
|
-
export default function ExpoUIHomeScreen (props){
|
10
|
-
return <Screen {...props}>
|
11
|
-
<View style={theme.styles.p1}>
|
12
|
-
<View testID="DocTestID" style={[theme.styles.alignItemsCenter]}>
|
13
|
-
<H3 textBold primary style={theme.styles.h3}>Développez rapidement des applications mobile, web et desktop.</H3>
|
14
|
-
</View>
|
15
|
-
<View style={[theme.styles.row,theme.styles.flexWrap,theme.styles.rowGap05]}>
|
16
|
-
<H5 primary textBold>{`${appConfig.name?.toLowerCase()}, version ${appConfig.version}, `}</H5>
|
17
|
-
<Paragraph>Un framework Prêt à l'emploi multiplateforme (Mobile, web et desktop) construit sur la base du framework</Paragraph>
|
18
|
-
<Link routeName={"https://docs.expo.dev/"}>
|
19
|
-
<H4 textBold>Expo</H4>
|
20
|
-
</Link>
|
21
|
-
</View>
|
22
|
-
</View>
|
23
|
-
</Screen>
|
24
|
-
}
|
25
|
-
|
26
|
-
ExpoUIHomeScreen.screenName = "Home";
|
27
|
-
|
28
|
-
ExpoUIHomeScreen.authRequired = true;
|
29
|
-
|
30
|
-
const styles = StyleSheet.create({
|
31
|
-
|
32
|
-
})
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import Screen from "$escreen";
|
2
|
-
import DocVersion from "$edocs/components/DocVersion";
|
3
|
-
import View from "$ecomponents/View";
|
4
|
-
|
5
|
-
export default function DocIntrodoctionScreen(props){
|
6
|
-
return <Screen {...props}>
|
7
|
-
<View>
|
8
|
-
<DocVersion/>
|
9
|
-
</View>
|
10
|
-
</Screen>
|
11
|
-
}
|
12
|
-
|
13
|
-
DocIntrodoctionScreen.screenName = "introduction";
|
package/docs/screens/index.js
DELETED
package/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {default} from "./App";
|