@fto-consult/expo-ui 8.52.2 → 8.52.4
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.52.
|
3
|
+
"version": "8.52.4",
|
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": {
|
@@ -73,7 +73,7 @@ const Notifications = forwardRef(({testID,items:cItems,menuProps,title,container
|
|
73
73
|
>
|
74
74
|
{title !== false ? (
|
75
75
|
React.isValidElement(title)? title : <Label fontSize={17} textBold primary>
|
76
|
-
Notifications
|
76
|
+
Notifications
|
77
77
|
</Label>
|
78
78
|
) : null}
|
79
79
|
{clearAllButton !== false && (React.isValidElement(clearAllButton)? clearAllButton :
|
@@ -123,16 +123,16 @@ Notifications.displayName = "NotificationsComponents";
|
|
123
123
|
Notifications.propTypes = {
|
124
124
|
...Object.assign({},List.propTypes), ///les props identiques au composant List
|
125
125
|
items : PropTypes.array.isRequired,//les items à afficher dans le menu
|
126
|
-
menuProps : Object.assign({},Menu.propTypes), //les props du composant menu
|
126
|
+
menuProps : PropTypes.shape(Object.assign({},Menu.propTypes)), //les props du composant menu
|
127
127
|
containerProps : PropTypes.object,
|
128
128
|
contentContainerProps : PropTypes.object, //les props du contentContainer, composant wrapper au composant List
|
129
129
|
title : PropTypes.oneOfType([
|
130
130
|
PropTypes.bool, //si false, alors le titre qui s'affiche lorsque le menu est ouvert ne sera pas rendu
|
131
|
-
PropTypes.
|
131
|
+
PropTypes.node, //si un composant react alors il sera utilisé pour substituer le composant title par défaut
|
132
132
|
]),
|
133
133
|
clearAllButton : PropTypes.oneOfType([
|
134
134
|
PropTypes.bool, //si false, alors le bouton clearAll ne sera pas affiché
|
135
|
-
PropTypes.
|
135
|
+
PropTypes.node, //si un composant react alors il sera utilisé pour substituer le composant bouton par défaut
|
136
136
|
])
|
137
137
|
}
|
138
138
|
|