@fto-consult/expo-ui 8.70.5 → 8.71.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": "8.70.5",
3
+ "version": "8.71.0",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "react-native-paper-doc": "https://github.com/callstack/react-native-paper/tree/main/docs/docs/guides",
6
6
  "scripts": {
@@ -11,7 +11,7 @@ export const getContentHeight = (innerRef,cb,screenIndent)=>{
11
11
  if(isDecimal(y) && isDecimal(height)){
12
12
  const winHeight = Dimensions.get("window").height;
13
13
  const rHeight = winHeight - defaultDecimal(y) - defaultDecimal(height) - defaultDecimal(screenIndent,20);
14
- result.height = rHeight > 200 ? rHeight : undefined;
14
+ result.height = rHeight > 200 ? (rHeight < winHeight-100? rHeight : Math.max(Math.min(rHeight,winHeight-150),250)) : undefined;
15
15
  }
16
16
  if(typeof cb =='function'){
17
17
  cb(result);
@@ -2,7 +2,7 @@
2
2
  // Use of this source code is governed by a BSD-style
3
3
  // license that can be found in the LICENSE file.
4
4
  import DateLib from "$date";
5
- import React from "$react";
5
+ import React,{useState} from "$react";
6
6
  import {defaultObj,isNonNullString} from "$cutils";
7
7
  import SimpleSelect from "$ecomponents/SimpleSelect";
8
8
  import Provider from "$ecomponents/Dialog/Provider";
@@ -14,7 +14,9 @@ import { View } from "react-native";
14
14
  import Icon from "$ecomponents/Icon";
15
15
 
16
16
  const DateFormatSelector = React.forwardRef((props,ref)=>{
17
- return <SimpleSelect ref={ref} {...selectDateFormatFieldProps(props)}/>
17
+ return <SimpleSelect
18
+ ref={ref} {...selectDateFormatFieldProps(props)}
19
+ />
18
20
  });
19
21
 
20
22
  DateFormatSelector.displayName = "DateFormatSelector";
@@ -70,6 +72,9 @@ export const selectDateFormatFieldProps = ({onAdd:customOnAdd,onAddCustomFormat,
70
72
  if(typeof customOnAdd =='function'){
71
73
  customOnAdd(valueRef.current);
72
74
  }
75
+ if(typeof onAddCustomFormat =="function"){
76
+ onAddCustomFormat(valueRef.current);
77
+ }
73
78
  Provider.close();
74
79
  }
75
80
  }],
@@ -77,11 +82,11 @@ export const selectDateFormatFieldProps = ({onAdd:customOnAdd,onAddCustomFormat,
77
82
  };
78
83
  inputProps = defaultObj(props.inputProps);
79
84
  return {
80
- items : getDateFormatSelectorItems(),
81
85
  getItemValue : ({item})=>item.code,
82
86
  renderItem : dateFormatSelectorRenderItem,
83
87
  showAdd : true,
84
88
  label : "Format de date",
89
+ items : getDateFormatSelectorItems(props),
85
90
  ...props,
86
91
  inputProps : {
87
92
  enableCopy:false,...inputProps,
@@ -93,8 +98,6 @@ export const selectDateFormatFieldProps = ({onAdd:customOnAdd,onAddCustomFormat,
93
98
  },
94
99
  defaultValue : defaultStr(props.defaultValue,props.format),
95
100
  onAdd,
96
- onAdd : undefined,
97
- showAdd : false,
98
101
  }
99
102
  }
100
103
  export const getDateFormatSelectorItems = x=> Object.map(DateLib.sortedFormats,(format)=>{
@@ -1,6 +1,5 @@
1
1
  import SelectField from "./SelectField";
2
2
  import {selectDateFormatFieldProps,getDateFormatSelectorItems} from "$ecomponents/Date/FormatSelector";
3
- import DateLib from "$date";
4
3
 
5
4
  export default class FormFieldSelectDateFormat extends SelectField{
6
5
  constructor(props){
@@ -1,21 +1,22 @@
1
1
  module.exports = {
2
2
  "@fto-consult/expo-ui": {
3
- "name": "@fto-consult/expo-ui",
4
- "version": "8.70.3",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/borispipo/expo-ui.git"
8
- },
9
- "homepage": "https://github.com/borispipo/expo-ui#readme"
3
+ "version": "8.70.6",
4
+ "url": "https://github.com/borispipo/expo-ui#readme",
5
+ "license": "ISC"
10
6
  },
11
7
  "@babel/plugin-proposal-export-namespace-from": {
12
8
  "version": "7.18.9",
13
9
  "url": "https://babel.dev/docs/en/next/babel-plugin-proposal-export-namespace-from",
14
10
  "license": "MIT"
15
11
  },
16
- "@emotion/react": {
17
- "version": "11.11.4",
18
- "url": "https://github.com/emotion-js/emotion/tree/main/packages/react",
12
+ "@emotion/native": {
13
+ "version": "11.11.0",
14
+ "url": "https://emotion.sh",
15
+ "license": "MIT"
16
+ },
17
+ "@expo/html-elements": {
18
+ "version": "0.5.1",
19
+ "url": "https://github.com/expo/expo/tree/main/packages/html-elements",
19
20
  "license": "MIT"
20
21
  },
21
22
  "@expo/metro-config": {
@@ -23,24 +24,49 @@ module.exports = {
23
24
  "url": "https://github.com/expo/expo.git",
24
25
  "license": "MIT"
25
26
  },
27
+ "@expo/vector-icons": {
28
+ "version": "14.0.0",
29
+ "url": "https://expo.github.io/vector-icons",
30
+ "license": "MIT"
31
+ },
26
32
  "@expo/webpack-config": {
27
33
  "version": "19.0.1",
28
34
  "url": "https://github.com/expo/expo-webpack-integrations/tree/main/packages/webpack-config#readme",
29
35
  "license": "MIT"
30
36
  },
31
- "@faker-js/faker": {
32
- "version": "8.4.1",
33
- "url": "https://github.com/faker-js/faker.git",
37
+ "@pchmn/expo-material3-theme": {
38
+ "version": "1.3.2",
39
+ "url": "https://github.com/pchmn/expo-material3-theme#readme",
34
40
  "license": "MIT"
35
41
  },
36
- "@fto-consult/common": {
37
- "version": "4.41.1",
38
- "url": "https://github.com/borispipo/common#readme",
39
- "license": "ISC"
42
+ "@react-native-community/netinfo": {
43
+ "version": "11.1.0",
44
+ "url": "https://github.com/react-native-netinfo/react-native-netinfo#readme",
45
+ "license": "MIT"
46
+ },
47
+ "@react-native/assets-registry": {
48
+ "version": "0.72.0",
49
+ "url": "git@github.com:facebook/react-native.git",
50
+ "license": "MIT"
51
+ },
52
+ "@react-navigation/native": {
53
+ "version": "6.1.17",
54
+ "url": "https://reactnavigation.org",
55
+ "license": "MIT"
56
+ },
57
+ "@react-navigation/native-stack": {
58
+ "version": "6.9.26",
59
+ "url": "https://github.com/software-mansion/react-native-screens#readme",
60
+ "license": "MIT"
61
+ },
62
+ "@react-navigation/stack": {
63
+ "version": "6.3.29",
64
+ "url": "https://reactnavigation.org/docs/stack-navigator/",
65
+ "license": "MIT"
40
66
  },
41
- "apexcharts": {
42
- "version": "3.48.0",
43
- "url": "https://apexcharts.com",
67
+ "@shopify/flash-list": {
68
+ "version": "1.6.3",
69
+ "url": "https://shopify.github.io/flash-list/",
44
70
  "license": "MIT"
45
71
  },
46
72
  "babel-plugin-inline-dotenv": {
@@ -58,48 +84,74 @@ module.exports = {
58
84
  "url": "https://github.com/crypto-browserify/crypto-browserify",
59
85
  "license": "MIT"
60
86
  },
61
- "file-saver": {
62
- "version": "2.0.5",
63
- "url": "https://github.com/eligrey/FileSaver.js#readme",
87
+ "expo": {
88
+ "version": "50.0.15",
89
+ "url": "https://github.com/expo/expo/tree/main/packages/expo",
64
90
  "license": "MIT"
65
91
  },
66
- "google-libphonenumber": {
67
- "version": "3.2.34",
68
- "url": "https://ruimarinho.github.io/google-libphonenumber/",
69
- "license": "(MIT AND Apache-2.0)"
92
+ "expo-camera": {
93
+ "version": "14.1.2",
94
+ "url": "https://docs.expo.dev/versions/latest/sdk/camera/",
95
+ "license": "MIT"
96
+ },
97
+ "expo-clipboard": {
98
+ "version": "5.0.1",
99
+ "url": "https://docs.expo.dev/versions/latest/sdk/clipboard",
100
+ "license": "MIT"
101
+ },
102
+ "expo-document-picker": {
103
+ "version": "11.10.1",
104
+ "url": "https://docs.expo.dev/versions/latest/sdk/document-picker/",
105
+ "license": "MIT"
106
+ },
107
+ "expo-font": {
108
+ "version": "11.10.3",
109
+ "url": "https://docs.expo.dev/versions/latest/sdk/font/",
110
+ "license": "MIT"
111
+ },
112
+ "expo-image-picker": {
113
+ "version": "14.7.1",
114
+ "url": "https://docs.expo.dev/versions/latest/sdk/imagepicker/",
115
+ "license": "MIT"
116
+ },
117
+ "expo-intent-launcher": {
118
+ "version": "10.11.0",
119
+ "url": "https://docs.expo.dev/versions/latest/sdk/intent-launcher/",
120
+ "license": "MIT"
70
121
  },
71
- "html2canvas": {
72
- "version": "1.4.1",
73
- "url": "https://html2canvas.hertzen.com",
122
+ "expo-linking": {
123
+ "version": "6.2.2",
124
+ "url": "https://docs.expo.dev/versions/latest/sdk/linking",
74
125
  "license": "MIT"
75
126
  },
76
- "htmlparser2-without-node-native": {
77
- "version": "3.9.2",
78
- "url": "git://github.com/fb55/htmlparser2.git",
127
+ "expo-sharing": {
128
+ "version": "11.10.0",
129
+ "url": "https://docs.expo.dev/versions/latest/sdk/sharing/",
79
130
  "license": "MIT"
80
131
  },
81
- "is-plain-obj": {
82
- "version": "4.1.0",
132
+ "expo-sqlite": {
133
+ "version": "13.4.0",
134
+ "url": "https://docs.expo.dev/versions/latest/sdk/sqlite/",
83
135
  "license": "MIT"
84
136
  },
85
- "jsbarcode": {
86
- "version": "3.11.6",
87
- "url": "https://github.com/lindell/JsBarcode#readme",
137
+ "expo-status-bar": {
138
+ "version": "1.11.1",
139
+ "url": "https://docs.expo.dev/versions/latest/sdk/status-bar/",
88
140
  "license": "MIT"
89
141
  },
90
- "prop-types": {
91
- "version": "15.8.1",
92
- "url": "https://facebook.github.io/react/",
142
+ "expo-system-ui": {
143
+ "version": "2.9.3",
144
+ "url": "https://docs.expo.dev/versions/latest/sdk/system-ui",
93
145
  "license": "MIT"
94
146
  },
95
- "react-content-loader": {
96
- "version": "6.2.1",
97
- "url": "https://github.com/danilowoz/react-content-loader",
147
+ "expo-web-browser": {
148
+ "version": "12.8.2",
149
+ "url": "https://docs.expo.dev/versions/latest/sdk/webbrowser/",
98
150
  "license": "MIT"
99
151
  },
100
- "react-dom": {
101
- "version": "18.2.0",
102
- "url": "https://reactjs.org/",
152
+ "react-native": {
153
+ "version": "0.73.6",
154
+ "url": "https://reactnative.dev/",
103
155
  "license": "MIT"
104
156
  },
105
157
  "react-native-big-list": {
@@ -107,44 +159,45 @@ module.exports = {
107
159
  "url": "https://marcocesarato.github.io/react-native-big-list-docs/",
108
160
  "license": "GPL-3.0-or-later"
109
161
  },
110
- "react-native-iphone-x-helper": {
111
- "version": "1.3.1",
112
- "url": "https://github.com/ptelad/react-native-iphone-x-helper#readme",
162
+ "react-native-blob-util": {
163
+ "version": "0.18.6",
164
+ "url": "https://github.com/RonRadtke/react-native-blob-util",
113
165
  "license": "MIT"
114
166
  },
115
- "react-native-mime-types": {
116
- "version": "2.5.0",
167
+ "react-native-gesture-handler": {
168
+ "version": "2.14.1",
169
+ "url": "https://github.com/software-mansion/react-native-gesture-handler#readme",
117
170
  "license": "MIT"
118
171
  },
119
- "react-native-paper": {
120
- "version": "5.12.3",
121
- "url": "https://callstack.github.io/react-native-paper",
172
+ "react-native-reanimated": {
173
+ "version": "3.6.2",
174
+ "url": "https://github.com/software-mansion/react-native-reanimated#readme",
122
175
  "license": "MIT"
123
176
  },
124
- "react-native-paper-dates": {
125
- "version": "0.22.6",
126
- "url": "https://github.com/web-ridge/react-native-paper-dates#readme",
177
+ "react-native-safe-area-context": {
178
+ "version": "4.8.2",
179
+ "url": "https://github.com/th3rdwave/react-native-safe-area-context#readme",
127
180
  "license": "MIT"
128
181
  },
129
- "react-native-web": {
130
- "version": "0.19.10",
131
- "url": "git://github.com/necolas/react-native-web.git",
182
+ "react-native-screens": {
183
+ "version": "3.29.0",
184
+ "url": "https://github.com/software-mansion/react-native-screens#readme",
132
185
  "license": "MIT"
133
186
  },
134
- "react-virtuoso": {
135
- "version": "4.7.8",
136
- "url": "https://virtuoso.dev/",
187
+ "react-native-svg": {
188
+ "version": "14.1.0",
189
+ "url": "https://github.com/react-native-community/react-native-svg",
137
190
  "license": "MIT"
138
191
  },
139
- "readable-stream": {
140
- "version": "4.5.2",
141
- "url": "https://github.com/nodejs/readable-stream",
192
+ "react-native-view-shot": {
193
+ "version": "3.8.0",
194
+ "url": "https://github.com/gre/react-native-view-shot",
142
195
  "license": "MIT"
143
196
  },
144
- "sanitize-filename": {
145
- "version": "1.6.3",
146
- "url": "git@github.com:parshap/node-sanitize-filename.git",
147
- "license": "WTFPL OR ISC"
197
+ "react-native-webview": {
198
+ "version": "13.6.4",
199
+ "url": "https://github.com/react-native-webview/react-native-webview#readme",
200
+ "license": "MIT"
148
201
  },
149
202
  "sharp-cli": {
150
203
  "version": "2.1.1",
@@ -156,19 +209,9 @@ module.exports = {
156
209
  "url": "https://github.com/browserify/stream-browserify",
157
210
  "license": "MIT"
158
211
  },
159
- "tippy.js": {
160
- "version": "6.3.7",
161
- "url": "https://atomiks.github.io/tippyjs/",
162
- "license": "MIT"
163
- },
164
212
  "vm": {
165
213
  "version": "0.1.0",
166
214
  "url": "https://github.com/DiegoRBaquero/node-vm#readme",
167
215
  "license": "MIT"
168
- },
169
- "xlsx": {
170
- "version": "0.18.5",
171
- "url": "https://sheetjs.com/",
172
- "license": "Apache-2.0"
173
216
  }
174
217
  };