@lookiero/checkout 0.4.6-beta.0 → 0.4.6-beta.1

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.
@@ -9,7 +9,7 @@ const SafeAreaScrollView = ({ children, footer, edges = ["top", "bottom", "left"
9
9
  React.createElement(ScrollView, { contentContainerStyle: [
10
10
  {
11
11
  paddingTop: safeAreaInsetTop + scrollerPaddingTop,
12
- paddingBottom: safeAreaInsetBottom + Platform.OS === "android" ? spaceXXXL : 0,
12
+ paddingBottom: safeAreaInsetBottom + (Platform.OS === "android" ? spaceXXXL : 0),
13
13
  },
14
14
  customStyle?.scrollView,
15
15
  ] }, children),
@@ -8,6 +8,7 @@ import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checko
8
8
  import { useCreateNotification } from "../../../../shared/notifications";
9
9
  import { NotificationLevel } from "../../../../shared/notifications/domain/notification/model/notification";
10
10
  import { Spinner } from "../../../../shared/ui/components/atoms/spinner/Spinner";
11
+ import { Toast, ToastVariant } from "../../../../shared/ui/components/molecules/toast/Toast";
11
12
  import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
12
13
  import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
13
14
  import { useViewFiveItemsDiscountByCustomerId } from "../../../projection/checkout/react/useViewFiveItemsDiscountByCustomerId";
@@ -55,6 +56,7 @@ const Summary = ({ customerId }) => {
55
56
  React.createElement(Body, { style: { row: { paddingBottom: pricingHeight || spaceXL } } },
56
57
  fiveItemsDiscount !== 0 && React.createElement(FiveItemsDiscountBanner, { fiveItemsDiscount: fiveItemsDiscount }),
57
58
  React.createElement(View, { style: style.content },
59
+ React.createElement(Toast, { body: "Toast body", title: "Toast title", variant: ToastVariant.ERROR, onClose: () => void 0 }),
58
60
  React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
59
61
  React.createElement(Text, { level: 3, style: style.description, body: true }, descriptionText)),
60
62
  React.createElement(CheckoutItemsTabs, { checkoutItemsKept: checkoutItemsKept || [], checkoutItemsReturned: checkoutItemsReturned || [], onPressItem: handleOnPressItem }))));
@@ -16,8 +16,8 @@ const NotificationItem = ({ notification, onRemove, autoHideTimeout, testID = "n
16
16
  if (!autoHideTimeout) {
17
17
  return;
18
18
  }
19
- const hideTimeout = setTimeout(handleOnClose, autoHideTimeout);
20
- return () => clearTimeout(hideTimeout);
19
+ // const hideTimeout = setTimeout(handleOnClose, autoHideTimeout);
20
+ // return () => clearTimeout(hideTimeout);
21
21
  }, [autoHideTimeout, handleOnClose]);
22
22
  return (React.createElement(Toast, { body: body, style: customStyle, testID: testID, title: title, variant: toastVariantForNotificationLevel[notification.level], onClose: handleOnClose }));
23
23
  };
@@ -1,17 +1,20 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  declare const style: StyleSheet.NamedStyles<any> | StyleSheet.NamedStyles<{
3
3
  notifications: {
4
+ flexDirection: "column";
4
5
  top: number;
5
6
  width: string;
6
7
  zIndex: number;
7
8
  left: number;
8
9
  } | {
10
+ flexDirection: "column";
9
11
  top: number;
10
12
  width: string;
11
13
  zIndex: number;
12
- position: "sticky";
14
+ position: "fixed";
13
15
  left: number;
14
16
  } | {
17
+ flexDirection: "column";
15
18
  top: number;
16
19
  width: string;
17
20
  zIndex: number;
@@ -7,10 +7,11 @@ const style = StyleSheet.create({
7
7
  notifications: {
8
8
  left: 0,
9
9
  ...Platform.select({
10
- web: { position: "sticky" },
10
+ web: { position: "fixed" },
11
11
  ios: { position: "absolute" },
12
12
  android: { position: "absolute" },
13
13
  }),
14
+ flexDirection: "column",
14
15
  top: 0,
15
16
  width: "100%",
16
17
  zIndex: 20,
@@ -29,6 +29,7 @@ declare const style: {
29
29
  shadowOffset: typeof import("@lookiero/aurora-next/build/theming/theme.default").DefaultTheme.$elevationOffset;
30
30
  shadowOpacity: number;
31
31
  shadowRadius: number;
32
+ width: string;
32
33
  };
33
34
  };
34
35
  export { style };
@@ -32,6 +32,7 @@ const style = StyleSheet.create({
32
32
  shadowOffset: elevationOffset,
33
33
  shadowOpacity: elevationOpacityM,
34
34
  shadowRadius: elevationRadius,
35
+ width: "100%",
35
36
  },
36
37
  });
37
38
  export { style };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.4.6-beta.0",
3
+ "version": "0.4.6-beta.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [