@jobber/components-native 0.107.1 → 0.107.2-CLEANUPfi-da441ea.0

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.107.1",
3
+ "version": "0.107.2-CLEANUPfi-da441ea.0+da441eae",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -124,5 +124,5 @@
124
124
  "react-native-screens": ">=4.18.0",
125
125
  "react-native-svg": ">=12.0.0"
126
126
  },
127
- "gitHead": "c5da7c5d3db964c4803ccf359bc4e59ed63f668d"
127
+ "gitHead": "da441eaeb2d14f744f1991450e7ac919446ff5e5"
128
128
  }
@@ -23,7 +23,7 @@ import { useIsScreenReaderEnabled } from "../hooks";
23
23
  import { IconButton } from "../IconButton";
24
24
  import { Heading } from "../Heading";
25
25
  import { useAtlantisI18n } from "../hooks/useAtlantisI18n";
26
- import { useAtlantisTheme } from "../AtlantisThemeContext";
26
+ import { AtlantisThemeContextProvider, useAtlantisTheme, } from "../AtlantisThemeContext";
27
27
  /**
28
28
  * Signals whether keyboard handling inside a ContentOverlay is delegated to
29
29
  * a keyboard-aware scroll view (e.g. BottomSheetKeyboardAwareScrollView).
@@ -54,7 +54,7 @@ export function ContentOverlay({ children, title, accessibilityLabel, fullScreen
54
54
  const [currentPosition, setCurrentPosition] = useState(-1);
55
55
  const styles = useStyles();
56
56
  const { t } = useAtlantisI18n();
57
- const { tokens } = useAtlantisTheme();
57
+ const { theme, tokens } = useAtlantisTheme();
58
58
  const isScreenReaderEnabled = useIsScreenReaderEnabled();
59
59
  const behavior = computeContentOverlayBehavior({
60
60
  fullScreen,
@@ -175,11 +175,12 @@ export function ContentOverlay({ children, title, accessibilityLabel, fullScreen
175
175
  return (React.createElement(Backdrop, Object.assign({}, props, { pressBehavior: isCloseableOnOverlayTap ? "close" : "none" })));
176
176
  }, [isCloseableOnOverlayTap]);
177
177
  return (React.createElement(BottomSheetModal, { ref: bottomSheetModalRef, containerComponent: Platform.OS === "ios" ? Container : undefined, onChange: handleChange, style: sheetStyle, backgroundStyle: backgroundStyle, handleStyle: styles.handleWrapper, handleIndicatorStyle: handleIndicatorStyles, backdropComponent: backdropComponent, snapPoints: snapPoints, enablePanDownToClose: effectiveIsDraggable, enableContentPanningGesture: effectiveIsDraggable, enableHandlePanningGesture: effectiveIsDraggable, enableDynamicSizing: behavior.initialHeight === "contentHeight", keyboardBehavior: "interactive", keyboardBlurBehavior: "restore", topInset: topInset, onDismiss: () => onClose === null || onClose === void 0 ? void 0 : onClose() },
178
- React.createElement(ContentOverlayKeyboardContext.Provider, { value: scrollEnabled }, scrollEnabled ? (React.createElement(BottomSheetKeyboardAwareScrollView, { ref: scrollViewRef, contentContainerStyle: { paddingBottom: insets.bottom }, keyboardShouldPersistTaps: keyboardShouldPersistTaps ? "handled" : "never", showsVerticalScrollIndicator: false, onScroll: handleOnScroll, stickyHeaderIndices: [0], bottomOffset: KEYBOARD_TOP_PADDING_AUTO_SCROLL },
179
- renderHeader(),
180
- React.createElement(View, { testID: "ATL-Overlay-Children" }, children))) : (React.createElement(BottomSheetView, null,
181
- renderHeader(),
182
- React.createElement(View, { style: { paddingBottom: insets.bottom }, testID: "ATL-Overlay-Children" }, children))))));
178
+ React.createElement(AtlantisThemeContextProvider, { dangerouslyOverrideTheme: theme },
179
+ React.createElement(ContentOverlayKeyboardContext.Provider, { value: scrollEnabled }, scrollEnabled ? (React.createElement(BottomSheetKeyboardAwareScrollView, { ref: scrollViewRef, contentContainerStyle: { paddingBottom: insets.bottom }, keyboardShouldPersistTaps: keyboardShouldPersistTaps ? "handled" : "never", showsVerticalScrollIndicator: false, onScroll: handleOnScroll, stickyHeaderIndices: [0], bottomOffset: KEYBOARD_TOP_PADDING_AUTO_SCROLL },
180
+ renderHeader(),
181
+ React.createElement(View, { testID: "ATL-Overlay-Children" }, children))) : (React.createElement(BottomSheetView, null,
182
+ renderHeader(),
183
+ React.createElement(View, { style: { paddingBottom: insets.bottom }, testID: "ATL-Overlay-Children" }, children)))))));
183
184
  }
184
185
  function Backdrop(bottomSheetBackdropProps) {
185
186
  const styles = useStyles();