@jobber/components-native 0.72.3 → 0.72.4-fix-datali-26425b2.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 +3 -6
- package/dist/src/ContentOverlay/ContentOverlay.js +7 -4
- package/dist/src/ContentOverlay/ContentOverlay.style.js +5 -7
- package/dist/src/InputText/InputText.js +1 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/ActionItem/components/ActionItemContainer.style.d.ts +1 -1
- package/dist/types/src/Banner/Banner.style.d.ts +2 -2
- package/dist/types/src/Button/Button.style.d.ts +2 -2
- package/dist/types/src/ButtonGroup/ButtonGroup.style.d.ts +1 -1
- package/dist/types/src/Card/Card.style.d.ts +1 -1
- package/dist/types/src/Checkbox/Checkbox.style.d.ts +2 -2
- package/dist/types/src/Checkbox/CheckboxGroup.style.d.ts +1 -1
- package/dist/types/src/ContentOverlay/ContentOverlay.style.d.ts +5 -7
- package/dist/types/src/Disclosure/Disclosure.style.d.ts +1 -1
- package/dist/types/src/ErrorMessageWrapper/ErrorMessageWrapper.style.d.ts +4 -4
- package/dist/types/src/Form/Form.style.d.ts +1 -1
- package/dist/types/src/Form/components/FormActionBar/FormActionBar.style.d.ts +1 -1
- package/dist/types/src/Form/components/FormBody/FormBody.style.d.ts +1 -1
- package/dist/types/src/Form/components/FormMask/FormMask.style.d.ts +2 -2
- package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.style.d.ts +1 -1
- package/dist/types/src/FormatFile/components/FileView/FileView.style.d.ts +5 -5
- package/dist/types/src/FormatFile/components/MediaView/MediaView.style.d.ts +4 -4
- package/dist/types/src/FormatFile/components/ProgressBar/ProgressBar.style.d.ts +2 -2
- package/dist/types/src/Glimmer/Glimmer.shape.style.d.ts +3 -3
- package/dist/types/src/Glimmer/Glimmer.style.d.ts +2 -2
- package/dist/types/src/InputFieldWrapper/CommonInputStyles.style.d.ts +2 -2
- package/dist/types/src/InputFieldWrapper/InputFieldWrapper.style.d.ts +2 -2
- package/dist/types/src/InputFieldWrapper/components/ClearAction/ClearAction.style.d.ts +1 -1
- package/dist/types/src/InputSearch/InputSearch.style.d.ts +1 -1
- package/dist/types/src/InputTime/InputTime.style.d.ts +1 -1
- package/dist/types/src/ProgressBar/ProgressBar.style.d.ts +4 -4
- package/dist/types/src/Select/Select.style.d.ts +5 -5
- package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.style.d.ts +2 -2
- package/dist/types/src/Switch/Switch.styles.d.ts +1 -1
- package/dist/types/src/TextList/TextList.style.d.ts +1 -1
- package/dist/types/src/Toast/Toast.styles.d.ts +1 -1
- package/package.json +3 -6
- package/src/ContentOverlay/ContentOverlay.style.ts +6 -7
- package/src/ContentOverlay/ContentOverlay.tsx +5 -4
- package/src/Icon/__snapshots__/Icon.test.tsx.snap +1 -1
- package/src/InputText/InputText.tsx +0 -1
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.4-fix-datali-26425b2.9+26425b2e",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -53,17 +53,14 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@testing-library/jest-native": "^5.4.2",
|
|
56
|
-
"@testing-library/react-hooks": "^7.0.2",
|
|
57
56
|
"@testing-library/react-native": "^12.0.1",
|
|
58
57
|
"@types/lodash.chunk": "^4.2.7",
|
|
59
58
|
"@types/lodash.debounce": "^4.0.7",
|
|
60
59
|
"@types/lodash.identity": "^3.0.7",
|
|
61
60
|
"@types/react": "^18.0.28",
|
|
62
|
-
"@types/react-native": "^0.71.6",
|
|
63
61
|
"@types/react-native-uuid": "^1.4.0",
|
|
64
62
|
"metro-react-native-babel-preset": "^0.76.0",
|
|
65
|
-
"react-test-renderer": "^18.2.0"
|
|
66
|
-
"typescript": "^4.9.5"
|
|
63
|
+
"react-test-renderer": "^18.2.0"
|
|
67
64
|
},
|
|
68
65
|
"peerDependencies": {
|
|
69
66
|
"@babel/core": "^7.4.5",
|
|
@@ -82,5 +79,5 @@
|
|
|
82
79
|
"react-native-safe-area-context": "^4.5.2",
|
|
83
80
|
"react-native-svg": ">=12.0.0"
|
|
84
81
|
},
|
|
85
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "26425b2e5ec2a6991dc889a6a916c4085a3ab7e7"
|
|
86
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:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
44
|
+
title: {
|
|
45
45
|
flex: 1,
|
|
46
|
-
flexDirection: "row",
|
|
47
46
|
justifyContent: "center",
|
|
48
|
-
|
|
49
|
-
|
|
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
|
});
|
|
@@ -83,9 +83,7 @@ function InputTextInternal({ invalid, disabled, readonly = false, name, placehol
|
|
|
83
83
|
multiline && hasMiniLabel && styles.multiLineInputWithMini,
|
|
84
84
|
styleOverride === null || styleOverride === void 0 ? void 0 : styleOverride.inputText,
|
|
85
85
|
loading && loadingType === "glimmer" && { color: "transparent" },
|
|
86
|
-
],
|
|
87
|
-
// @ts-expect-error - does exist on 0.71 and up https://github.com/facebook/react-native/pull/39281
|
|
88
|
-
readOnly: readonly, editable: !disabled, keyboardType: keyboard, value: inputTransform(internalValue), autoFocus: autoFocus, autoComplete: autoComplete, multiline: multiline, scrollEnabled: false, textContentType: textContentType, onChangeText: handleChangeText, onSubmitEditing: handleOnSubmitEditing, returnKeyType: returnKeyType, blurOnSubmit: shouldBlurOnSubmit, accessibilityLabel: accessibilityLabel || placeholder, accessibilityHint: accessibilityHint, accessibilityState: { busy: loading }, secureTextEntry: secureTextEntry }, androidA11yProps, { onFocus: event => {
|
|
86
|
+
], readOnly: readonly, editable: !disabled, keyboardType: keyboard, value: inputTransform(internalValue), autoFocus: autoFocus, autoComplete: autoComplete, multiline: multiline, scrollEnabled: false, textContentType: textContentType, onChangeText: handleChangeText, onSubmitEditing: handleOnSubmitEditing, returnKeyType: returnKeyType, blurOnSubmit: shouldBlurOnSubmit, accessibilityLabel: accessibilityLabel || placeholder, accessibilityHint: accessibilityHint, accessibilityState: { busy: loading }, secureTextEntry: secureTextEntry }, androidA11yProps, { onFocus: event => {
|
|
89
87
|
_name && setFocusedInput(_name);
|
|
90
88
|
setFocused(true);
|
|
91
89
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
|