@fto-consult/expo-ui 6.5.1 → 6.5.2

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": "6.5.1",
3
+ "version": "6.5.2",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -229,7 +229,7 @@ const TextFieldComponent = React.forwardRef((componentProps,inputRef)=>{
229
229
  }
230
230
  }
231
231
  selectionColor = Colors.isValid(selectionColor)? selectionColor : theme.colors.secondaryOnSurface;
232
- const flattenStyle = StyleSheet.flatten([styles.input,styles.textInput,props.style,styles.w100,style,upperStyle]);
232
+ const flattenStyle = StyleSheet.flatten([{pointerEvents},styles.input,styles.textInput,props.style,styles.w100,style,upperStyle]);
233
233
  fontSize = defaultNumber(fontSize,flattenStyle.fontSize,FONT_SIZE);
234
234
  labelProps = defaultObj(labelProps);
235
235
  const alphaColor = isShadowMode || isNormalMode ? theme.colors.text : Colors.setAlpha(theme.colors.text,theme.ALPHA);
@@ -296,6 +296,7 @@ const TextFieldComponent = React.forwardRef((componentProps,inputRef)=>{
296
296
  const withAutoHeight = typeof autoHeight === 'boolean'? autoHeight : false;
297
297
  const height = withAutoHeight || multiline ? undefined : tHeight;
298
298
  const inputStyle2 = withAutoHeight || multiline ? {minHeight : heightRef.current} : null;
299
+ const containerStyle = StyleSheet.flatten(containerProps.style) || {};
299
300
  const inputProps= {
300
301
  caretHidden : false,
301
302
  ellipsizeMode : "head",
@@ -358,7 +359,6 @@ const TextFieldComponent = React.forwardRef((componentProps,inputRef)=>{
358
359
  isShadowMode && styles.inputShadowMode,
359
360
  multiline && {paddingTop : isFlatMode? 12 : 7},
360
361
  ],
361
- pointerEvents,
362
362
  secureTextEntry,
363
363
  inputMode,
364
364
  autoCapitalize : upper?(isAndroid?'characters':"none"):autoCapitalize,
@@ -399,7 +399,7 @@ const TextFieldComponent = React.forwardRef((componentProps,inputRef)=>{
399
399
  let hasRight = React.isValidElement(right),hasLeft = React.isValidElement(left);
400
400
  enableCopy = enableCopy ? true : false;
401
401
  fieldToCopy = defaultStr(fieldToCopy).toLowerCase().trim();
402
- if(isEditable || isFilter || defaultStr(contentContainerProps.pointerEvents).toLowerCase().contains("none")){
402
+ if(isEditable || isFilter || defaultStr(containerStyle.pointerEvents).toLowerCase().contains("none")){
403
403
  enableCopy = false;
404
404
  }
405
405
  if(enableCopy){
@@ -530,7 +530,7 @@ const TextFieldComponent = React.forwardRef((componentProps,inputRef)=>{
530
530
  {label}
531
531
  </Label> : null}
532
532
  <>
533
- <Surface testID={testID+"_ContentContainer"} pointerEvents={pointerEvents} {...contentContainerProps} elevation={elevation} style={[styles.contentContainer,!left? styles.paddingLeft:null,styles.row,contentContainerStyle,contentContainerProps.style]}>
533
+ <Surface testID={testID+"_ContentContainer"} {...contentContainerProps} elevation={elevation} style={[styles.contentContainer,{pointerEvents},!left? styles.paddingLeft:null,styles.row,contentContainerStyle,contentContainerProps.style]}>
534
534
  {left ? (<View testID={testID+"_Left"} {...leftContainerProps} style={[styles.AdornmentContainer,styles.leftAdornment,leftContainerProps.style,disabledStyle]}>
535
535
  {left}
536
536
  </View>) : null}