@fto-consult/expo-ui 7.13.6 → 7.14.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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.14.0",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"scripts": {
|
6
6
|
"clear-npx-cache": "npx clear-npx-cache",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"delete-node-modules": "rimraf ./**/node_modules",
|
47
47
|
"dev": "npx expo start --no-dev --minify -c",
|
48
48
|
"modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'",
|
49
|
-
"update": "npm i @fto-consult/electron-gen@latest pdfmake@latest expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest fs-extra@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @fto-consult/common@latest @react-navigation/stack react-native-blob-util react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@
|
49
|
+
"update": "npm i @fto-consult/electron-gen@latest pdfmake@latest expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest fs-extra@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @fto-consult/common@latest @react-navigation/stack react-native-blob-util react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@5 react-native-paper-dates@latest @react-navigation/native@latest @react-navigation/native-stack@latest react-virtuoso@latest tippy.js@latest websql@latest xlsx@latest react-native-web@latest react-dom@latest && npx expo install --fix && npm run update-apexchart && npm run update-pdfmake && npm run find-licenses"
|
50
50
|
},
|
51
51
|
"bin": {
|
52
52
|
"expo-ui": "./bin/index.js"
|
@@ -113,7 +113,7 @@
|
|
113
113
|
"react-native-get-random-values": "~1.9.0",
|
114
114
|
"react-native-iphone-x-helper": "^1.3.1",
|
115
115
|
"react-native-mime-types": "^2.4.0",
|
116
|
-
"react-native-paper": "^
|
116
|
+
"react-native-paper": "^5.11.5",
|
117
117
|
"react-native-paper-dates": "^0.21.7",
|
118
118
|
"react-native-reanimated": "~3.3.0",
|
119
119
|
"react-native-safe-area-context": "4.6.3",
|
@@ -13,6 +13,7 @@ import PropTypes from "prop-types";
|
|
13
13
|
import {flatMode } from '$ecomponents/TextField/utils';
|
14
14
|
import {defaultStr} from "$cutils";
|
15
15
|
import Surface from "$ecomponents/Surface";
|
16
|
+
import {isObj,defaultObj} from "$cutils";
|
16
17
|
|
17
18
|
const ChipComponent = React.forwardRef(({
|
18
19
|
mode = flatMode,
|
@@ -177,7 +178,7 @@ const ChipComponent = React.forwardRef(({
|
|
177
178
|
{userSelect:"none"},
|
178
179
|
styles.text,
|
179
180
|
{
|
180
|
-
...theme.fonts
|
181
|
+
...(defaultObj(theme.fonts?.regular,theme.fonts?.default)),
|
181
182
|
color: textColor,
|
182
183
|
marginHorizontal : 4,
|
183
184
|
marginLeft: avatar || icon || selected ? 4 : 8,
|
@@ -25,7 +25,7 @@ const DrawerItem = ({icon,iconProps,borderRadius,color,minimized,contentContaine
|
|
25
25
|
const contentColor = active ? theme.colors.primary : Colors.isValid(color)? color : Colors.isValid(style.color)? style.color : Colors.setAlpha(theme.colors.text,ALPHA);
|
26
26
|
const backgroundColor = getBackgroundColor(active);
|
27
27
|
const fontWeight = active ? '400': 'normal';
|
28
|
-
const font = theme.fonts.medium;
|
28
|
+
const font = defaultObj(theme.fonts.medium,theme.fonts.default);
|
29
29
|
contentContainerProps = defaultObj(contentContainerProps);
|
30
30
|
contentProps = defaultObj(contentProps);
|
31
31
|
labelProps = defaultObj(labelProps);
|
package/src/context/Provider.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from "$react";
|
2
2
|
import appConfig from "$capp/config";
|
3
|
-
import {MD3LightTheme,MD3DarkTheme} from "react-native-paper";
|
3
|
+
import {MD3LightTheme,MD3DarkTheme,configureFonts} from "react-native-paper";
|
4
4
|
import { useMaterial3Theme,isDynamicThemeSupported} from '@pchmn/expo-material3-theme';
|
5
5
|
import { useColorScheme } from 'react-native';
|
6
6
|
import {colorsAlias,Colors} from "$theme";
|
@@ -183,7 +183,7 @@ const Provider = ({children,getTableData,handleHelpScreen,navigation,swrConfig,a
|
|
183
183
|
if(!isObj(theme)) return;
|
184
184
|
const isDark = theme.dark || theme.isDark || isDynamicThemeSupported && isColorShemeDark ;
|
185
185
|
const elevation = defaultObj(theme.elevation,isDark ? pTheme.dark?.elevation : pTheme.light?.elevation)
|
186
|
-
const newTheme = isDark ? { ...MD3DarkTheme, colors: pTheme.dark } : { ...MD3LightTheme, colors: pTheme.light };
|
186
|
+
const newTheme = isDark ? { ...MD3DarkTheme,fonts:configureFonts(), colors: pTheme.dark } : { ...MD3LightTheme,fonts:configureFonts(), colors: pTheme.light };
|
187
187
|
if(isElectron() && typeof window.ELECTRON =='object' && typeof ELECTRON.setThemeToDark =="function" && typeof ELECTRON.setThemeToLight =="function"){
|
188
188
|
if(isDark){
|
189
189
|
ELECTRON.setThemeToDark();
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module.exports = {
|
2
2
|
"@fto-consult/expo-ui": {
|
3
3
|
"name": "@fto-consult/expo-ui",
|
4
|
-
"version": "7.13.
|
4
|
+
"version": "7.13.7",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
7
|
"url": "git+https://github.com/borispipo/expo-ui.git"
|
@@ -19,7 +19,7 @@ module.exports = {
|
|
19
19
|
"license": "MIT"
|
20
20
|
},
|
21
21
|
"@emotion/react": {
|
22
|
-
"version": "11.11.
|
22
|
+
"version": "11.11.3",
|
23
23
|
"url": "https://github.com/emotion-js/emotion/tree/main/packages/react",
|
24
24
|
"license": "MIT"
|
25
25
|
},
|
@@ -44,7 +44,7 @@ module.exports = {
|
|
44
44
|
"license": "MIT"
|
45
45
|
},
|
46
46
|
"@faker-js/faker": {
|
47
|
-
"version": "8.
|
47
|
+
"version": "8.3.1",
|
48
48
|
"url": "https://github.com/faker-js/faker.git",
|
49
49
|
"license": "MIT"
|
50
50
|
},
|
@@ -263,7 +263,7 @@ module.exports = {
|
|
263
263
|
"license": "MIT"
|
264
264
|
},
|
265
265
|
"react-native-paper": {
|
266
|
-
"version": "
|
266
|
+
"version": "5.11.5",
|
267
267
|
"url": "https://callstack.github.io/react-native-paper",
|
268
268
|
"license": "MIT"
|
269
269
|
},
|
@@ -313,7 +313,7 @@ module.exports = {
|
|
313
313
|
"license": "WTFPL OR ISC"
|
314
314
|
},
|
315
315
|
"sharp-cli": {
|
316
|
-
"version": "2.1.
|
316
|
+
"version": "2.1.1",
|
317
317
|
"url": "https://github.com/vseventer/sharp-cli",
|
318
318
|
"license": "MIT"
|
319
319
|
},
|