@fto-consult/expo-ui 2.4.7 → 2.4.8

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": "2.4.7",
3
+ "version": "2.4.8",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@ import {FAB,Text,Card,withTheme} from "react-native-paper";
11
11
  import colorFn from 'color';
12
12
  import PropTypes from "prop-types";
13
13
  import Action from "$ecomponents/Form/Action";
14
- import theme,{ disabledStyle,StylePropTypes,Colors,cursorNotAllowed } from '$theme';
14
+ import theme,{ disabledStyle,StylePropTypes,cursorPointer,Colors,cursorNotAllowed } from '$theme';
15
15
  import {defaultStr} from "$utils";
16
16
 
17
17
 
@@ -279,6 +279,7 @@ const _FabItem = function({children,label,disabled:customDisabled,pointerEvents,
279
279
  style = StyleSheet.flatten(style) || {};
280
280
  color = Colors.isValid(color)? color : style.color;
281
281
  backgroundColor = Colors.isValid(backgroundColor)? backgroundColor : style.backgroundColor;
282
+ const cursorStyle = disabled? cursorNotAllowed : cursorPointer;
282
283
  const _onPress = ()=>{
283
284
  if(onPress){
284
285
  onPress();
@@ -312,7 +313,7 @@ const _FabItem = function({children,label,disabled:customDisabled,pointerEvents,
312
313
  accessibilityComponentType="button"
313
314
  accessibilityRole="button"
314
315
  >
315
- <Text testID={testID+"_Label"} style={{ color}}>
316
+ <Text testID={testID+"_Label"} style={StyleSheet.flatten([{ color},cursorStyle])}>
316
317
  {label}
317
318
  </Text>
318
319
  </Card>
@@ -328,7 +329,7 @@ const _FabItem = function({children,label,disabled:customDisabled,pointerEvents,
328
329
  [
329
330
  style,
330
331
  dStyle,
331
- disabled? cursorNotAllowed : null,
332
+ cursorStyle,
332
333
  {
333
334
  transform: [{ scale}],
334
335
  opacity,