@jobber/components-native 0.48.9-token-test.2 → 0.48.10
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 +3 -3
- package/dist/src/ContentOverlay/ContentOverlay.js +4 -2
- package/dist/src/ContentOverlay/ContentOverlay.style.js +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/ContentOverlay/ContentOverlay.style.d.ts +3 -3
- package/package.json +3 -3
- package/src/ContentOverlay/ContentOverlay.style.ts +3 -3
- package/src/ContentOverlay/ContentOverlay.tsx +11 -1
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"build:clean": "rm -rf ./dist"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jobber/design": "^0.
|
|
39
|
+
"@jobber/design": "^0.48.0",
|
|
40
40
|
"@jobber/hooks": "^2.7.2",
|
|
41
41
|
"@react-native-clipboard/clipboard": "^1.11.2",
|
|
42
42
|
"@react-native-picker/picker": "^2.4.10",
|
|
@@ -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": "
|
|
87
|
+
"gitHead": "00278fda64541bee40f3ec71d46bad3a673bdca2"
|
|
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:
|
|
119
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
});
|