@jobber/components-native 0.73.1 → 0.73.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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.73.1",
3
+ "version": "0.73.2",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -79,5 +79,5 @@
79
79
  "react-native-safe-area-context": "^4.5.2",
80
80
  "react-native-svg": ">=12.0.0"
81
81
  },
82
- "gitHead": "8fe1e021751c7f5e27f6f33f00b88b87b2c5b0d8"
82
+ "gitHead": "3f58a9109fa4ae2a15ebf8280390a35f7c706fe5"
83
83
  }
@@ -115,10 +115,13 @@ 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: shouldShowDismiss
119
- ? styles.titleWithDismiss
120
- : styles.titleWithoutDismiss },
121
- React.createElement(Heading, { level: "subtitle", variation: loading ? "subdued" : "heading", align: shouldShowDismiss ? "start" : "center" }, title)),
118
+ React.createElement(View, { style: [
119
+ styles.title,
120
+ shouldShowDismiss
121
+ ? styles.titleWithDismiss
122
+ : styles.titleWithoutDismiss,
123
+ ] },
124
+ React.createElement(Heading, { level: "subtitle", variation: loading ? "subdued" : "heading", align: "start" }, title)),
122
125
  shouldShowDismiss && (React.createElement(View, { style: styles.dismissButton,
123
126
  // @ts-expect-error tsc-ci
124
127
  ref: overlayHeader, accessibilityLabel: accessibilityLabel || closeOverlayA11YLabel, accessible: true },
@@ -41,17 +41,15 @@ export const styles = StyleSheet.create({
41
41
  hiddenContent: {
42
42
  opacity: 0,
43
43
  },
44
- titleWithoutDismiss: {
44
+ title: {
45
45
  flex: 1,
46
- flexDirection: "row",
47
46
  justifyContent: "center",
48
- paddingTop: tokens["space-base"],
49
- paddingHorizontal: tokens["space-base"],
47
+ paddingLeft: tokens["space-base"],
48
+ },
49
+ titleWithoutDismiss: {
50
+ paddingRight: tokens["space-base"],
50
51
  },
51
52
  titleWithDismiss: {
52
- flex: 1,
53
- justifyContent: "center",
54
- paddingLeft: tokens["space-base"],
55
53
  paddingRight: tokens["space-smaller"],
56
54
  },
57
55
  });