@jobber/components-native 0.91.3-JOB-142285-bc02eef.1 → 0.91.4
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 +2 -2
- package/dist/src/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/src/Chip/Chip.style.js +1 -1
- package/dist/src/ContentOverlay/ContentOverlay.js +3 -5
- package/dist/src/Menu/Menu.js +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +1 -1
- package/dist/types/src/ContentOverlay/UNSAFE_WrappedModalize.d.ts +1 -1
- package/dist/types/src/ErrorMessageWrapper/context/types.d.ts +1 -1
- package/dist/types/src/Form/context/AtlantisFormContext.d.ts +1 -1
- package/dist/types/src/Form/context/types.d.ts +2 -2
- package/dist/types/src/Form/hooks/useFormViewRefs.d.ts +2 -2
- package/dist/types/src/Form/hooks/useInternalForm.d.ts +3 -3
- package/dist/types/src/Form/types.d.ts +3 -3
- package/dist/types/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +1 -1
- package/dist/types/src/Menu/types.d.ts +6 -2
- package/package.json +2 -2
- package/src/ButtonGroup/ButtonGroup.tsx +1 -1
- package/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.tsx +1 -1
- package/src/Chip/Chip.style.ts +1 -1
- package/src/ContentOverlay/ContentOverlay.tsx +2 -3
- package/src/ErrorMessageWrapper/context/ErrorMessageProvider.tsx +2 -2
- package/src/ErrorMessageWrapper/context/types.ts +1 -1
- package/src/Form/context/types.ts +2 -2
- package/src/Form/hooks/useFormViewRefs.ts +4 -5
- package/src/Form/hooks/useInternalForm.ts +3 -3
- package/src/Form/types.ts +3 -3
- package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.tsx +1 -1
- package/src/Menu/Menu.tsx +2 -2
- package/src/Menu/types.ts +7 -2
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.91.
|
|
3
|
+
"version": "0.91.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"react-native-safe-area-context": "^5.4.0",
|
|
95
95
|
"react-native-svg": ">=12.0.0"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "953deb18e2cf5a920ab5e23295e15aefd3865c0f"
|
|
98
98
|
}
|
|
@@ -9,7 +9,7 @@ import { useAtlantisI18n } from "../hooks/useAtlantisI18n";
|
|
|
9
9
|
export function ButtonGroup({ children, showCancelInBottomSheet, bottomSheetHeading, onOpenBottomSheet, onCloseBottomSheet, allowTapWhenOffline = false, }) {
|
|
10
10
|
const { t } = useAtlantisI18n();
|
|
11
11
|
const { handlePress } = usePreventTapWhenOffline();
|
|
12
|
-
const secondaryActionsRef = useRef();
|
|
12
|
+
const secondaryActionsRef = useRef(null);
|
|
13
13
|
const { primaryActions, secondaryActions } = getActions(children);
|
|
14
14
|
const styles = useStyles();
|
|
15
15
|
return (React.createElement(View, { style: styles.buttonGroup },
|
|
@@ -10,7 +10,7 @@ export const useStyles = buildThemedStyles(tokens => {
|
|
|
10
10
|
justifyContent: "center",
|
|
11
11
|
marginHorizontal: tokens["space-smaller"],
|
|
12
12
|
marginTop: tokens["space-small"],
|
|
13
|
-
paddingHorizontal: tokens["space-
|
|
13
|
+
paddingHorizontal: tokens["space-small"],
|
|
14
14
|
},
|
|
15
15
|
iconLeft: {
|
|
16
16
|
marginHorizontal: tokens["space-smallest"],
|
|
@@ -26,8 +26,8 @@ function ContentOverlayInternal({ children, title, accessibilityLabel, fullScree
|
|
|
26
26
|
const isFullScreenOrTopPosition = fullScreen || (!adjustToContentHeight && position === "top");
|
|
27
27
|
const shouldShowDismiss = showDismiss || isScreenReaderEnabled || isFullScreenOrTopPosition;
|
|
28
28
|
const [showHeaderShadow, setShowHeaderShadow] = useState(false);
|
|
29
|
-
const overlayHeader = useRef();
|
|
30
|
-
const internalRef = useRef();
|
|
29
|
+
const overlayHeader = useRef(null);
|
|
30
|
+
const internalRef = useRef(null);
|
|
31
31
|
const [modalizeMethods, setModalizeMethods] = useState();
|
|
32
32
|
const callbackInternalRef = useCallback((instance) => {
|
|
33
33
|
if (instance && !internalRef.current) {
|
|
@@ -124,9 +124,7 @@ function ContentOverlayInternal({ children, title, accessibilityLabel, fullScree
|
|
|
124
124
|
: styles.titleWithoutDismiss,
|
|
125
125
|
] },
|
|
126
126
|
React.createElement(Heading, { level: "subtitle", variation: loading ? "subdued" : "heading", align: "start" }, title)),
|
|
127
|
-
shouldShowDismiss && (React.createElement(View, { style: styles.dismissButton,
|
|
128
|
-
// @ts-expect-error tsc-ci
|
|
129
|
-
ref: overlayHeader, accessibilityLabel: accessibilityLabel || closeOverlayA11YLabel, accessible: true },
|
|
127
|
+
shouldShowDismiss && (React.createElement(View, { style: styles.dismissButton, ref: overlayHeader, accessibilityLabel: accessibilityLabel || closeOverlayA11YLabel, accessible: true },
|
|
130
128
|
React.createElement(IconButton, { name: "cross", customColor: loading ? tokens["color-disabled"] : tokens["color-heading"], onPress: () => onCloseController(), accessibilityLabel: closeOverlayA11YLabel, testID: "ATL-Overlay-CloseButton" }))))));
|
|
131
129
|
}
|
|
132
130
|
function renderChildren() {
|
package/dist/src/Menu/Menu.js
CHANGED
|
@@ -14,8 +14,8 @@ import { useAtlantisTheme } from "../AtlantisThemeContext";
|
|
|
14
14
|
export function Menu({ menuOptions, customActivator }) {
|
|
15
15
|
const [open, setOpen] = useState(false);
|
|
16
16
|
const [menuPosition, setMenuPosition] = useState();
|
|
17
|
-
const activatorLayout = useRef();
|
|
18
|
-
const menuButtonRef = useRef();
|
|
17
|
+
const activatorLayout = useRef(null);
|
|
18
|
+
const menuButtonRef = useRef(null);
|
|
19
19
|
const screenInfo = useScreenInformation();
|
|
20
20
|
const { t } = useAtlantisI18n();
|
|
21
21
|
const styles = useStyles();
|