@fto-consult/expo-ui 6.28.1 → 6.29.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/app.config.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@FTO-CONSULT/EXPO-UI",
3
- "version": "6.26.8",
3
+ "version": "6.28.1",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "bin": {
6
6
  "expo-ui": "./bin/index.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.28.1",
3
+ "version": "6.29.0",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -68,7 +68,7 @@
68
68
  "@expo/html-elements": "^0.5.1",
69
69
  "@expo/vector-icons": "^13.0.0",
70
70
  "@faker-js/faker": "^8.0.2",
71
- "@fto-consult/common": "^3.29.5",
71
+ "@fto-consult/common": "^3.29.8",
72
72
  "@pchmn/expo-material3-theme": "^1.3.1",
73
73
  "@react-native-async-storage/async-storage": "1.18.2",
74
74
  "@react-native-community/datetimepicker": "7.2.0",
@@ -7,7 +7,7 @@ import React from "$react";
7
7
  import { faker } from '@faker-js/faker';
8
8
  export default function TestDatagridComponent({count,...props}){
9
9
  const data = React.useMemo(()=>{
10
- count = typeof count =='number' && count > 10 ? count : 100;
10
+ count = typeof count =='number' && count > 5 ? count : 100;
11
11
  return faker.helpers.multiple(createRandomUser, {
12
12
  count,
13
13
  });
@@ -14,7 +14,6 @@ import DialogTitle from './DialogTitle';
14
14
  import {MAX_WIDTH,SCREEN_INDENT,MIN_HEIGHT} from "./utils";
15
15
  import {isMobileOrTabletMedia,isMobileMedia} from "$cplatform/dimensions";
16
16
  import Platform,{isMobileNative} from "$cplatform";
17
- import Portal from "$ecomponents/Portal";
18
17
  import Icon,{BACK_ICON} from "$ecomponents/Icon";
19
18
  import {ACTION_ICON_SIZE} from "$ecomponents/AppBar";
20
19
  import DialogFooter from "./DialogFooter";
@@ -183,8 +182,7 @@ const DialogComponent = React.forwardRef((props,ref)=>{
183
182
  {content}
184
183
  </ScrollView>
185
184
  }
186
- return <Portal>
187
- <ModalComponent
185
+ return <ModalComponent
188
186
  onDismiss={(e)=>{
189
187
  return handleBack(e,false);
190
188
  }}
@@ -272,8 +270,7 @@ const DialogComponent = React.forwardRef((props,ref)=>{
272
270
  /> : null}
273
271
  </Surface>
274
272
  </DialogContent>
275
- </ModalComponent>
276
- </Portal>
273
+ </ModalComponent>
277
274
  });
278
275
  export default DialogComponent;
279
276
 
@@ -0,0 +1,13 @@
1
+ /***
2
+ * MIT License
3
+ Copyright (c) 2020 Mo Gorhom
4
+ @see : https://github.com/gorhom/react-native-portal
5
+ */
6
+
7
+ export {default} from "./Portal";
8
+
9
+ export {default as PortalHost} from "./PortalHost";
10
+
11
+ export {default as PortalProvider} from "./PortalProvider";
12
+
13
+ export * from "./hooks";
@@ -1,13 +1,4 @@
1
- /***
2
- * MIT License
3
- Copyright (c) 2020 Mo Gorhom
4
- @see : https://github.com/gorhom/react-native-portal
5
- */
1
+ import {Portal} from "react-native-paper";
6
2
 
7
- export {default} from "./Portal";
8
-
9
- export {default as PortalHost} from "./PortalHost";
10
-
11
- export {default as PortalProvider} from "./PortalProvider";
12
-
13
- export * from "./hooks";
3
+ export default Portal;
4
+ export const PortalHost = Portal.Host;
@@ -289,7 +289,7 @@ const SimpleSelect = React.forwardRef((props,ref)=>{
289
289
  rippleColor={undefined}
290
290
  onLayout={onLayout}
291
291
  >
292
- <>{anchor}</>
292
+ {anchor}
293
293
  </Pressable>
294
294
  const getItemLayout = typeof listProps.itemHeight ==='number' && listProps.itemHeight ? (data, index) => (
295
295
  {length: listProps.itemHeight, offset: listProps.itemHeight * index, index}
package/src/index.js CHANGED
@@ -27,7 +27,6 @@ import DialogProvider from "$ecomponents/Dialog/Provider";
27
27
  import SimpleSelect from '$ecomponents/SimpleSelect';
28
28
  import {Provider as AlertProvider} from '$ecomponents/Dialog/confirm/Alert';
29
29
  import { DialogProvider as FormDataDialogProvider } from '$eform/FormData';
30
- import {PortalProvider,CustomPortal} from '$ecomponents/Portal';
31
30
  import ErrorBoundaryProvider from "$ecomponents/ErrorBoundary/Provider";
32
31
  import notify, {notificationRef} from "$notify";
33
32
  import DropdownAlert from '$ecomponents/Dialog/DropdownAlert';
@@ -283,7 +282,7 @@ function App({init:initApp,initialRouteName:appInitialRouteName,render,onMount})
283
282
  },
284
283
  }}
285
284
  >
286
- <PortalProvider>
285
+ <Portal.Host testID="RN_NativePaperPortalHost">
287
286
  <ErrorBoundaryProvider/>
288
287
  <PreloaderProvider/>
289
288
  <DialogProvider responsive testID={"RN_MainAppDialogProvider"}/>
@@ -291,17 +290,15 @@ function App({init:initApp,initialRouteName:appInitialRouteName,render,onMount})
291
290
  <FormDataDialogProvider/>
292
291
  <BottomSheetProvider/>
293
292
  <DropdownAlert ref={notificationRef}/>
294
- <Portal.Host testID="RN_NativePaperPortalHost">
295
- <ErrorBoundary>
296
- <StatusBar/>
297
- <SplashScreen isLoaded={isLoaded}>
298
- <PreferencesContext.Provider value={preferences}>
299
- {React.isValidElement(content) && content || child}
300
- </PreferencesContext.Provider>
301
- </SplashScreen>
302
- </ErrorBoundary>
303
- </Portal.Host>
304
- </PortalProvider>
293
+ <ErrorBoundary>
294
+ <StatusBar/>
295
+ <SplashScreen isLoaded={isLoaded}>
296
+ <PreferencesContext.Provider value={preferences}>
297
+ {React.isValidElement(content) && content || child}
298
+ </PreferencesContext.Provider>
299
+ </SplashScreen>
300
+ </ErrorBoundary>
301
+ </Portal.Host>
305
302
  </PaperProvider>
306
303
  </GestureHandlerRootView>
307
304
  </AuthProvider>;
@@ -1 +1 @@
1
- module.exports = {"@fto-consult/expo-ui":{"name":"@fto-consult/expo-ui","version":"6.28.0","repository":{"type":"git","url":"git+https://github.com/borispipo/expo-ui.git"},"homepage":"https://github.com/borispipo/expo-ui#readme"},"@emotion/native":{"version":"11.11.0","url":"https://emotion.sh","license":"MIT"},"@emotion/react":{"version":"11.11.1","url":"https://github.com/emotion-js/emotion/tree/main/packages/react","license":"MIT"},"@expo/html-elements":{"version":"0.5.1","url":"https://github.com/expo/expo/tree/main/packages/html-elements","license":"MIT"},"@expo/metro-config":{"version":"0.10.7","url":"https://github.com/expo/expo.git","license":"MIT"},"@expo/vector-icons":{"version":"13.0.0","url":"https://expo.github.io/vector-icons","license":"MIT"},"@expo/webpack-config":{"version":"19.0.0","url":"https://github.com/expo/expo-cli.git","license":"MIT"},"@faker-js/faker":{"version":"8.0.2","url":"https://github.com/faker-js/faker.git","license":"MIT"},"@fto-consult/common":{"version":"3.29.5","url":"https://github.com/borispipo/common#readme","license":"ISC"},"@pchmn/expo-material3-theme":{"version":"1.3.1","url":"https://github.com/pchmn/expo-material3-theme#readme","license":"MIT"},"@react-native-async-storage/async-storage":{"version":"1.18.2","url":"https://github.com/react-native-async-storage/async-storage#readme","license":"MIT"},"@react-native-community/datetimepicker":{"version":"7.2.0","url":"https://github.com/react-native-community/datetimepicker#readme","license":"MIT"},"@react-native-community/netinfo":{"version":"9.3.10","url":"https://github.com/react-native-netinfo/react-native-netinfo#readme","license":"MIT"},"@react-native/assets-registry":{"version":"0.72.0","url":"git@github.com:facebook/react-native.git","license":"MIT"},"@react-navigation/native":{"version":"6.1.7","url":"https://reactnavigation.org","license":"MIT"},"@react-navigation/native-stack":{"version":"6.9.13","url":"https://github.com/software-mansion/react-native-screens#readme","license":"MIT"},"@shopify/flash-list":{"version":"1.4.3","url":"https://shopify.github.io/flash-list/","license":"MIT"},"apexcharts":{"version":"3.42.0","url":"https://apexcharts.com","license":"MIT"},"babel-plugin-inline-dotenv":{"version":"1.7.0","url":"https://github.com/brysgo/babel-plugin-inline-dotenv#readme","license":"ISC"},"babel-plugin-module-resolver":{"version":"5.0.0","url":"https://github.com/tleunen/babel-plugin-module-resolver.git","license":"MIT"},"expo":{"version":"49.0.8","url":"https://github.com/expo/expo/tree/main/packages/expo","license":"MIT"},"expo-camera":{"version":"13.4.2","url":"https://docs.expo.dev/versions/latest/sdk/camera/","license":"MIT"},"expo-clipboard":{"version":"4.3.1","url":"https://docs.expo.dev/versions/latest/sdk/clipboard","license":"MIT"},"expo-font":{"version":"11.4.0","url":"https://docs.expo.dev/versions/latest/sdk/font/","license":"MIT"},"expo-image-picker":{"version":"14.3.2","url":"https://docs.expo.dev/versions/latest/sdk/imagepicker/","license":"MIT"},"expo-linking":{"version":"5.0.2","url":"https://docs.expo.dev/versions/latest/sdk/linking","license":"MIT"},"expo-sqlite":{"version":"11.3.2","url":"https://docs.expo.dev/versions/latest/sdk/sqlite/","license":"MIT"},"expo-status-bar":{"version":"1.6.0","url":"https://docs.expo.dev/versions/latest/sdk/status-bar/","license":"MIT"},"expo-system-ui":{"version":"2.4.0","url":"https://docs.expo.dev/versions/latest/sdk/system-ui","license":"MIT"},"expo-web-browser":{"version":"12.3.2","url":"https://docs.expo.dev/versions/latest/sdk/webbrowser/","license":"MIT"},"file-saver":{"version":"2.0.5","url":"https://github.com/eligrey/FileSaver.js#readme","license":"MIT"},"fs-extra":{"version":"11.1.1","url":"https://github.com/jprichardson/node-fs-extra","license":"MIT"},"google-libphonenumber":{"version":"3.2.33","url":"https://ruimarinho.github.io/google-libphonenumber/","license":"(MIT AND Apache-2.0)"},"htmlparser2-without-node-native":{"version":"3.9.2","url":"git://github.com/fb55/htmlparser2.git","license":"MIT"},"pdfmake":{"version":"0.2.7","url":"http://pdfmake.org","license":"MIT"},"process":{"version":"0.11.10","url":"git://github.com/shtylman/node-process.git","license":"MIT"},"prop-types":{"version":"15.8.1","url":"https://facebook.github.io/react/","license":"MIT"},"react":{"version":"18.2.0","url":"https://reactjs.org/","license":"MIT"},"react-content-loader":{"version":"6.2.1","url":"https://github.com/danilowoz/react-content-loader","license":"MIT"},"react-dom":{"version":"18.2.0","url":"https://reactjs.org/","license":"MIT"},"react-native":{"version":"0.72.4","license":"MIT"},"react-native-big-list":{"version":"1.6.1","url":"https://marcocesarato.github.io/react-native-big-list-docs/","license":"GPL-3.0-or-later"},"react-native-blob-util":{"version":"0.18.6","url":"https://github.com/RonRadtke/react-native-blob-util","license":"MIT"},"react-native-gesture-handler":{"version":"2.12.1","url":"https://github.com/software-mansion/react-native-gesture-handler#readme","license":"MIT"},"react-native-iphone-x-helper":{"version":"1.3.1","url":"https://github.com/ptelad/react-native-iphone-x-helper#readme","license":"MIT"},"react-native-mime-types":{"version":"2.4.0","license":"MIT"},"react-native-paper":{"version":"5.10.3","url":"https://callstack.github.io/react-native-paper","license":"MIT"},"react-native-paper-dates":{"version":"0.18.14","url":"https://github.com/web-ridge/react-native-paper-dates#readme","license":"MIT"},"react-native-reanimated":{"version":"3.3.0","url":"https://github.com/software-mansion/react-native-reanimated#readme","license":"MIT"},"react-native-safe-area-context":{"version":"4.6.3","url":"https://github.com/th3rdwave/react-native-safe-area-context#readme","license":"MIT"},"react-native-screens":{"version":"3.22.1","url":"https://github.com/software-mansion/react-native-screens#readme","license":"MIT"},"react-native-svg":{"version":"13.9.0","url":"https://github.com/react-native-community/react-native-svg","license":"MIT"},"react-native-web":{"version":"0.19.7","url":"git://github.com/necolas/react-native-web.git","license":"MIT"},"react-native-webview":{"version":"13.2.2","url":"https://github.com/react-native-webview/react-native-webview#readme","license":"MIT"},"react-virtuoso":{"version":"4.5.0","url":"https://virtuoso.dev/","license":"MIT"},"sharp-cli":{"version":"4.1.1","url":"https://github.com/vseventer/sharp-cli","license":"MIT"},"tippy.js":{"version":"6.3.7","url":"https://atomiks.github.io/tippyjs/","license":"MIT"},"uninstall":{"version":"0.0.0","license":"MIT"},"websql":{"version":"2.0.3","url":"git://github.com/nolanlawson/node-websql.git","license":"Apache-2.0"},"xlsx":{"version":"0.18.5","url":"https://sheetjs.com/","license":"Apache-2.0"}};
1
+ module.exports = {"@FTO-CONSULT/EXPO-UI":{"name":"@FTO-CONSULT/EXPO-UI","version":"6.28.1","homepage":"https://github.com/borispipo/expo-ui#readme"}};
@@ -3,8 +3,6 @@ import Test from "$ecomponents/Datagrid/Test";
3
3
  import React from "$react";
4
4
 
5
5
  export default function HomeScreen(props){
6
- React.useEffect(()=>{
7
- },[])
8
6
  return <Screen{...props} contentContainerStyle={[{flex:1}]}>
9
7
  <Test/>
10
8
  </Screen>