@jobber/components-native 0.48.8 → 0.48.9

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.48.8",
3
+ "version": "0.48.9",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -84,5 +84,5 @@
84
84
  "react-native-reanimated": "^2.17.0",
85
85
  "react-native-safe-area-context": "^4.5.2"
86
86
  },
87
- "gitHead": "969b9462d2a1bc28cc4727434842fff06d2f5547"
87
+ "gitHead": "7f6c0fb7177ea6a47259b962efa9c59ab054feab"
88
88
  }
@@ -115,8 +115,10 @@ function ContentOverlayInternal({ children, title, accessibilityLabel, fullScree
115
115
  ];
116
116
  return (React.createElement(View, { onLayout: handleHeaderLayout, testID: "ATL-Overlay-Header" },
117
117
  React.createElement(View, { style: headerStyles },
118
- React.createElement(View, { style: showDismiss ? styles.titleWithDismiss : styles.titleWithoutDimiss },
119
- React.createElement(Heading, { level: "subtitle", variation: loading ? "subdued" : "heading" }, title)),
118
+ React.createElement(View, { style: shouldShowDismiss
119
+ ? styles.titleWithDismiss
120
+ : styles.titleWithoutDismiss },
121
+ React.createElement(Heading, { level: "subtitle", variation: loading ? "subdued" : "heading", align: shouldShowDismiss ? "start" : "center" }, title)),
120
122
  shouldShowDismiss && (React.createElement(View, { style: styles.dismissButton,
121
123
  // @ts-expect-error tsc-ci
122
124
  ref: overlayHeader, accessibilityLabel: accessibilityLabel || closeOverlayA11YLabel, accessible: true },
@@ -28,7 +28,7 @@ export const styles = StyleSheet.create({
28
28
  zIndex: tokens["elevation-base"],
29
29
  borderTopLeftRadius: modalBorderRadius,
30
30
  borderTopRightRadius: modalBorderRadius,
31
- height: tokens["space-extravagant"],
31
+ minHeight: tokens["space-extravagant"],
32
32
  },
33
33
  headerShadow: Object.assign({}, tokens["shadow-base"]),
34
34
  childrenStyle: {
@@ -41,17 +41,17 @@ export const styles = StyleSheet.create({
41
41
  hiddenContent: {
42
42
  opacity: 0,
43
43
  },
44
- titleWithoutDimiss: {
44
+ titleWithoutDismiss: {
45
45
  flex: 1,
46
46
  flexDirection: "row",
47
47
  justifyContent: "center",
48
48
  paddingTop: tokens["space-base"],
49
+ paddingHorizontal: tokens["space-base"],
49
50
  },
50
51
  titleWithDismiss: {
51
52
  flex: 1,
52
53
  justifyContent: "center",
53
54
  paddingLeft: tokens["space-base"],
54
55
  paddingRight: tokens["space-smaller"],
55
- flexGrow: 1,
56
56
  },
57
57
  });