@fto-consult/expo-ui 8.81.1 → 8.81.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": "8.81.1",
3
+ "version": "8.81.2",
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": {
@@ -138,10 +138,11 @@ export default class DrawerLayout extends React.PureComponent {
138
138
  icon = {this.state.portalProps?.closeIcon || !this.isPositionRight() == 'left'? 'chevron-left' : 'chevron-right'}
139
139
  {...defaultObj(this.state.portalProps.closeIconProps)}
140
140
  />;
141
+ const titleContainerProps = defaultObj(this.state.portalProps?.titleContainerProps);
141
142
  return <>
142
- <HStack style={[styles.portalTitle]} testID={testID+"_TitleContainer"}>
143
+ <HStack testID={testID+"_TitleContainer"} {...titleContainerProps} style={[styles.portalTitle,titleContainerProps.style]}>
143
144
  {isPositionRight? icon : null}
144
- <Label {...titleProps} style={[styles.portalTitleText]} testID={testID+"_DrawerLayoutTitle"}>
145
+ <Label testID={testID+"_DrawerLayoutTitle"} {...titleProps} style={[styles.portalTitleText,titleProps.style]} >
145
146
  {title}
146
147
  </Label>
147
148
  {!isPositionRight ? icon : null}
@@ -516,7 +517,12 @@ const styles = StyleSheet.create({
516
517
  justifyContent : 'space-between',
517
518
  alignItems : 'center',
518
519
  paddingHorizontal : 10,
519
- }
520
+ flexWrap : 'nowrap',
521
+ },
522
+ portalTitleText : {
523
+ fontSize : 16,
524
+ fontWeight : 'bold',
525
+ },
520
526
  });
521
527
  const posPropType = PropTypes.oneOf(['left', 'right']);
522
528
  DrawerLayout.propTypes = {
@@ -563,6 +569,9 @@ DrawerLayout.propTypes = {
563
569
  drawerPosition : posPropType,
564
570
  position : posPropType,
565
571
  drawerWidth : PropTypes.number,
572
+ titleContainerProps : PropTypes.shape({
573
+ ...defaultObj(HStack.propTypes),
574
+ }),
566
575
  }),
567
576
  }
568
577