@lookiero/checkout 0.5.0-beta.1 → 0.5.0-beta.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.
@@ -139,7 +139,7 @@ const Item = ({ customerId }) => {
139
139
  React.createElement(SafeAreaScrollView, { scrollerPaddingTop: Platform.OS === "web" || Platform.OS === "android" ? HEADER_HEIGHT : 0, style: { safeAreaView: style.container }, footer: !customerDecissionMade && (React.createElement(ItemActions, { keepButtonLoading: keepCheckoutItemStatus === CommandStatus.LOADING, productVariantSelected: productVariantSelected, productVariants: bookedProductsVariants?.productVariants || [], returnButtonLoading: returnCheckoutItemStatus === CommandStatus.LOADING, sizeSelectorDisabled: replaceCheckoutItemStatus === CommandStatus.LOADING, onKeep: handleOnKeep, onLayout: handleOnStickyLayout, onReplace: handleOnReplace, onReturn: handleOnReturn, onSizeSelectorPress: handleOnShowSizeWithoutStockModal })) },
140
140
  React.createElement(Body, null,
141
141
  customerDecissionMade && (React.createElement(CustomerDecissionBanner, { checkoutItemStatus: checkoutItem.status, onPress: handleOnBannerPress })),
142
- React.createElement(View, { style: [style.container, { paddingBottom: Platform.OS === "web" ? spaceXL : stickyHeight }] },
142
+ React.createElement(View, { style: [style.content, { paddingBottom: Platform.OS === "web" ? spaceXL : stickyHeight }] },
143
143
  React.createElement(View, { style: style.sliderContainer },
144
144
  React.createElement(ProductVariantSlider, { producVariantMedia: media })),
145
145
  React.createElement(ProductVariantDescription, { brand: brand, color: color, name: name, price: price, size: productVariantSelected.size }),
@@ -1,6 +1,8 @@
1
1
  declare const style: {
2
2
  container: {
3
3
  flex: number;
4
+ };
5
+ content: {
4
6
  paddingHorizontal: number;
5
7
  };
6
8
  feedbackContainer: {
@@ -4,6 +4,8 @@ const { borderSize, colorGrayscaleM, spaceXL } = theme();
4
4
  const style = StyleSheet.create({
5
5
  container: {
6
6
  flex: 1,
7
+ },
8
+ content: {
7
9
  paddingHorizontal: spaceXL,
8
10
  },
9
11
  feedbackContainer: {
@@ -1,12 +1,10 @@
1
1
  import React, { useCallback } from "react";
2
2
  import { View } from "react-native";
3
- import { useSafeAreaInsets } from "react-native-safe-area-context";
4
3
  import { theme } from "../../../../../infrastructure/ui/theme/theme";
5
4
  import { style } from "./Sticky.style";
6
5
  const { spaceXL } = theme();
7
6
  const Sticky = ({ children, style: customStyle, onLayout }) => {
8
- const { bottom: safeAreaInsetBottom } = useSafeAreaInsets();
9
7
  const handleOnLayout = useCallback(({ nativeEvent: { layout: { width, height }, }, }) => onLayout?.({ width, height }), [onLayout]);
10
- return (React.createElement(View, { style: [style.sticky, { paddingBottom: safeAreaInsetBottom + spaceXL }, customStyle], onLayout: handleOnLayout }, children));
8
+ return (React.createElement(View, { style: [style.sticky, { paddingBottom: spaceXL }, customStyle], onLayout: handleOnLayout }, children));
11
9
  };
12
10
  export { Sticky };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.5.0-beta.1",
3
+ "version": "0.5.0-beta.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [