@lookiero/checkout 2.4.1-beta.0 → 3.0.0-beta.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.
Files changed (71) hide show
  1. package/dist/infrastructure/ui/Root.d.ts +2 -1
  2. package/dist/infrastructure/ui/Root.js +2 -2
  3. package/dist/infrastructure/ui/components/layouts/layout/Layout.d.ts +11 -0
  4. package/dist/infrastructure/ui/components/layouts/layout/Layout.js +1 -0
  5. package/dist/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +6 -0
  6. package/dist/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +4 -0
  7. package/dist/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +6 -0
  8. package/dist/infrastructure/ui/components/layouts/layout/components/header/Header.js +5 -0
  9. package/dist/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +45 -0
  10. package/dist/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +31 -0
  11. package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +3 -0
  12. package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +15 -0
  13. package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +6 -0
  14. package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +7 -0
  15. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.d.ts +1 -2
  16. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
  17. package/dist/infrastructure/ui/components/templates/footer/Footer.d.ts +3 -0
  18. package/dist/infrastructure/ui/components/templates/footer/Footer.js +13 -0
  19. package/dist/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.d.ts +3 -0
  20. package/dist/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.js +5 -0
  21. package/dist/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.d.ts +9 -0
  22. package/dist/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.js +12 -0
  23. package/dist/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.d.ts +6 -0
  24. package/dist/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +23 -0
  25. package/dist/infrastructure/ui/components/templates/header/header/Header.d.ts +3 -0
  26. package/dist/infrastructure/ui/components/templates/header/header/Header.js +10 -0
  27. package/dist/infrastructure/ui/components/templates/header/header/Header.style.d.ts +9 -0
  28. package/dist/infrastructure/ui/components/templates/header/header/Header.style.js +12 -0
  29. package/dist/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.d.ts +6 -0
  30. package/dist/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +20 -0
  31. package/dist/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.d.ts +26 -0
  32. package/dist/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +34 -0
  33. package/dist/infrastructure/ui/components/templates/header/logo/Logo.d.ts +7 -0
  34. package/dist/infrastructure/ui/components/templates/header/logo/Logo.js +11 -0
  35. package/dist/infrastructure/ui/components/templates/header/logo/Logo.style.d.ts +7 -0
  36. package/dist/infrastructure/ui/components/templates/header/logo/Logo.style.js +8 -0
  37. package/dist/infrastructure/ui/hooks/useSubmitCheckout.js +5 -0
  38. package/dist/infrastructure/ui/routing/CheckoutMiddleware.d.ts +1 -0
  39. package/dist/infrastructure/ui/routing/CheckoutMiddleware.js +4 -3
  40. package/dist/infrastructure/ui/routing/Routing.d.ts +2 -1
  41. package/dist/infrastructure/ui/routing/Routing.js +8 -8
  42. package/dist/infrastructure/ui/views/App.d.ts +0 -4
  43. package/dist/infrastructure/ui/views/App.js +2 -4
  44. package/dist/infrastructure/ui/views/checkout/Checkout.d.ts +2 -0
  45. package/dist/infrastructure/ui/views/checkout/Checkout.js +12 -6
  46. package/dist/infrastructure/ui/views/checkout/Checkout.style.d.ts +3 -0
  47. package/dist/infrastructure/ui/views/checkout/Checkout.style.js +3 -0
  48. package/dist/infrastructure/ui/views/feedback/Feedback.d.ts +2 -0
  49. package/dist/infrastructure/ui/views/feedback/Feedback.js +6 -6
  50. package/dist/infrastructure/ui/views/feedback/Feedback.style.d.ts +3 -0
  51. package/dist/infrastructure/ui/views/feedback/Feedback.style.js +4 -1
  52. package/dist/infrastructure/ui/views/item/Item.d.ts +2 -0
  53. package/dist/infrastructure/ui/views/item/Item.js +37 -4
  54. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +2 -2
  55. package/dist/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.js +2 -4
  56. package/dist/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.d.ts +3 -0
  57. package/dist/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.js +4 -1
  58. package/dist/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +5 -5
  59. package/dist/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.d.ts +6 -0
  60. package/dist/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.js +9 -0
  61. package/dist/infrastructure/ui/views/notFound/NotFound.d.ts +2 -0
  62. package/dist/infrastructure/ui/views/notFound/NotFound.js +9 -10
  63. package/dist/infrastructure/ui/views/notFound/NotFound.style.d.ts +1 -0
  64. package/dist/infrastructure/ui/views/notFound/NotFound.style.js +2 -1
  65. package/dist/infrastructure/ui/views/summary/Summary.d.ts +2 -0
  66. package/dist/infrastructure/ui/views/summary/Summary.js +11 -11
  67. package/dist/infrastructure/ui/views/summary/Summary.style.d.ts +3 -0
  68. package/dist/infrastructure/ui/views/summary/Summary.style.js +4 -1
  69. package/dist/shared/ui/components/layouts/modal/Modal.d.ts +0 -1
  70. package/dist/shared/ui/components/layouts/modal/Modal.js +2 -2
  71. package/package.json +1 -1
@@ -11,36 +11,36 @@ const Item = lazy(() => import("../views/item/Item").then((module) => ({ default
11
11
  const Summary = lazy(() => import("../views/summary/Summary").then((module) => ({ default: module.Summary })));
12
12
  const Checkout = lazy(() => import("../views/checkout/Checkout").then((module) => ({ default: module.Checkout })));
13
13
  const Feedback = lazy(() => import("../views/feedback/Feedback").then((module) => ({ default: module.Feedback })));
14
- const Routing = ({ basePath = "", customer, locale, I18n, getAuthToken, onI18nError, onNotAccessible, onOpenMenu, useRedirect, useRoutes = reactRouterUseRoutes, }) => {
14
+ const Routing = ({ basePath = "", customer, locale, I18n, layout, getAuthToken, onI18nError, onNotAccessible, useRedirect, useRoutes = reactRouterUseRoutes, }) => {
15
15
  return useRoutes([
16
16
  {
17
17
  path: "",
18
18
  element: (React.createElement(BasePathProvider, { basePath: basePath },
19
19
  React.createElement(CheckoutAccessibilityMiddleware, { customerId: customer?.customerId, onNotAccessible: onNotAccessible },
20
20
  React.createElement(I18n, { loader: React.createElement(Spinner, null), locale: locale, onError: onI18nError },
21
- React.createElement(CheckoutMiddleware, { customerId: customer?.customerId },
22
- React.createElement(App, { country: customer?.country, customerId: customer?.customerId, onOpenMenu: onOpenMenu },
21
+ React.createElement(CheckoutMiddleware, { customerId: customer?.customerId, onNotAccessible: onNotAccessible },
22
+ React.createElement(App, null,
23
23
  React.createElement(Outlet, null))))))),
24
24
  children: [
25
25
  {
26
26
  path: Routes.ITEM,
27
27
  element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
28
- React.createElement(Item, { country: customer?.country, customerId: customer?.customerId }))),
28
+ React.createElement(Item, { country: customer?.country, customerId: customer?.customerId, layout: layout }))),
29
29
  },
30
30
  {
31
31
  path: Routes.ITEM_DETAIL,
32
32
  element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
33
- React.createElement(Item, { country: customer?.country, customerId: customer?.customerId }))),
33
+ React.createElement(Item, { country: customer?.country, customerId: customer?.customerId, layout: layout }))),
34
34
  },
35
35
  {
36
36
  path: Routes.SUMMARY,
37
37
  element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
38
- React.createElement(Summary, { country: customer?.country, customerId: customer?.customerId }))),
38
+ React.createElement(Summary, { country: customer?.country, customerId: customer?.customerId, layout: layout }))),
39
39
  },
40
40
  {
41
41
  path: Routes.CHECKOUT,
42
42
  element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
43
- React.createElement(Checkout, { country: customer?.country, customerId: customer?.customerId, useRedirect: useRedirect },
43
+ React.createElement(Checkout, { country: customer?.country, customerId: customer?.customerId, layout: layout, useRedirect: useRedirect },
44
44
  React.createElement(Outlet, null)))),
45
45
  children: [
46
46
  {
@@ -52,7 +52,7 @@ const Routing = ({ basePath = "", customer, locale, I18n, getAuthToken, onI18nEr
52
52
  {
53
53
  path: Routes.FEEDBACK,
54
54
  element: (React.createElement(Suspense, { fallback: React.createElement(Spinner, null) },
55
- React.createElement(Feedback, { country: customer?.country, customerId: customer?.customerId }))),
55
+ React.createElement(Feedback, { country: customer?.country, customerId: customer?.customerId, layout: layout }))),
56
56
  },
57
57
  {
58
58
  path: "*",
@@ -1,10 +1,6 @@
1
1
  import { FC } from "react";
2
- import { Country } from "../../../projection/shared/country";
3
2
  interface AppProps {
4
3
  readonly children: JSX.Element;
5
- readonly customerId: string;
6
- readonly country: Country;
7
- readonly onOpenMenu: () => void;
8
4
  }
9
5
  declare const App: FC<AppProps>;
10
6
  export { App };
@@ -6,12 +6,10 @@ import { SafeAreaProvider } from "react-native-safe-area-context";
6
6
  import { Notifications } from "../../../shared/notifications/infrastructure/ui/views/Notifications";
7
7
  import { MESSAGING_CONTEXT_ID } from "../../delivery/baseBootstrap";
8
8
  import { theme } from "../theme/theme";
9
- import { Navigation } from "./navigation/Navigation";
10
9
  const { colorBase } = theme();
11
- const App = ({ children, customerId, country, onOpenMenu }) => (React.createElement(SafeAreaProvider, null,
10
+ const App = ({ children }) => (React.createElement(SafeAreaProvider, null,
12
11
  React.createElement(PortalProvider, null,
13
12
  React.createElement(StatusBar, { backgroundColor: colorBase, barStyle: "dark-content", translucent: true }),
14
13
  React.createElement(Notifications, { contextId: MESSAGING_CONTEXT_ID }),
15
- React.createElement(Navigation, { country: country, customerId: customerId, onOpenMenu: onOpenMenu },
16
- React.createElement(AuroraPortalProvider, null, children)))));
14
+ React.createElement(AuroraPortalProvider, null, children))));
17
15
  export { App };
@@ -1,9 +1,11 @@
1
1
  import { FC, ReactNode } from "react";
2
2
  import { Country } from "../../../../projection/shared/country";
3
+ import { Layout } from "../../components/layouts/layout/Layout";
3
4
  interface CheckoutProps {
4
5
  readonly children?: ReactNode;
5
6
  readonly customerId: string;
6
7
  readonly country: Country;
8
+ readonly layout: Layout;
7
9
  readonly useRedirect: () => Record<string, string>;
8
10
  }
9
11
  declare const Checkout: FC<CheckoutProps>;
@@ -2,27 +2,27 @@ import { Text } from "@lookiero/aurora";
2
2
  import { useI18nMessage } from "@lookiero/i18n-react";
3
3
  import { QueryStatus } from "@lookiero/messaging-react";
4
4
  import React, { useCallback, useMemo } from "react";
5
- import { View } from "react-native";
5
+ import { ScrollView, View } from "react-native";
6
6
  import { useNavigate } from "react-router-native";
7
7
  import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
8
8
  import { useTrackPageView } from "../../../../shared/tracking/infrastructure/useTrackPageView";
9
+ import { useTrackPressBack } from "../../../../shared/tracking/infrastructure/useTrackPressBack";
9
10
  import { useTrackPressContinue } from "../../../../shared/tracking/infrastructure/useTrackPressContinue";
10
11
  import { Spinner } from "../../../../shared/ui/components/atoms/spinner/Spinner";
11
12
  import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
12
13
  import { useViewPricingByCheckoutId } from "../../../projection/pricing/react/useViewPricingByCheckoutId";
13
14
  import { TrackingPage } from "../../../tracking/tracking";
14
15
  import { Body } from "../../components/layouts/body/Body";
15
- import { SafeAreaScrollView } from "../../components/templates/SafeAreaScrollView";
16
+ import { CheckoutHeader } from "../../components/templates/header/checkoutHeader/CheckoutHeader";
16
17
  import { I18nMessages } from "../../i18n/i18n";
17
18
  import { Routes } from "../../routing/routes";
18
19
  import { useBasePath } from "../../routing/useBasePath";
19
- import { HEADER_HEIGHT } from "../navigation/components/header/Header.style";
20
20
  import { ProductVariant } from "../shared/components/productVariant/ProductVariant";
21
21
  import { Pricing } from "../summary/components/pricing/Pricing";
22
22
  import { style } from "./Checkout.style";
23
23
  import { DeliveryBanner } from "./components/deliveryBanner/DeliveryBanner";
24
24
  import { PaymentInstrument } from "./components/paymentInstrument/PaymentInstrument";
25
- const Checkout = ({ children, customerId, country, useRedirect }) => {
25
+ const Checkout = ({ children, customerId, country, layout: Layout, useRedirect }) => {
26
26
  const titleText = useI18nMessage({ id: I18nMessages.CHECKOUT_TITLE });
27
27
  const [checkout, checkoutStatus] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
28
28
  const [pricing, pricingStatus] = useViewPricingByCheckoutId({ checkoutId: checkout?.id });
@@ -44,13 +44,19 @@ const Checkout = ({ children, customerId, country, useRedirect }) => {
44
44
  }, [basePath, navigate, trackPressContinue]);
45
45
  const checkoutItemsKept = useMemo(() => checkout?.items.filter((checkoutItem) => checkoutItem.status === CheckoutItemStatus.KEPT || checkoutItem.status === CheckoutItemStatus.REPLACED), [checkout?.items]);
46
46
  const hasReplacedCheckoutItem = useMemo(() => checkout?.items.some((checkoutItem) => checkoutItem.status === CheckoutItemStatus.REPLACED), [checkout?.items]);
47
+ const trackPressBack = useTrackPressBack();
48
+ const handleOnBack = useCallback(() => trackPressBack({
49
+ page: TrackingPage.CHECKOUT,
50
+ country,
51
+ checkoutId: checkout?.id,
52
+ }), [checkout?.id, country, trackPressBack]);
47
53
  const dependenciesLoadedStatuses = [QueryStatus.ERROR, QueryStatus.SUCCESS];
48
54
  const dependenciesLoaded = (dependenciesLoadedStatuses.includes(checkoutStatus) || checkout) &&
49
55
  dependenciesLoadedStatuses.includes(pricingStatus);
50
56
  if (!dependenciesLoaded)
51
57
  return React.createElement(Spinner, null);
52
- return (React.createElement(React.Fragment, null,
53
- React.createElement(SafeAreaScrollView, { scrollerPaddingTop: HEADER_HEIGHT },
58
+ return (React.createElement(Layout, { header: React.createElement(CheckoutHeader, { onBack: handleOnBack }) },
59
+ React.createElement(ScrollView, { contentContainerStyle: style.container, showsVerticalScrollIndicator: false },
54
60
  React.createElement(Body, { style: { column: style.bodyColumn } },
55
61
  hasReplacedCheckoutItem && (React.createElement(View, { style: style.deliveryBannerContainer },
56
62
  React.createElement(DeliveryBanner, null))),
@@ -5,6 +5,9 @@ declare const style: {
5
5
  checkoutItemKept: {
6
6
  paddingVertical: number;
7
7
  };
8
+ container: {
9
+ paddingBottom: number;
10
+ };
8
11
  deliveryBannerContainer: {
9
12
  marginBottom: number;
10
13
  };
@@ -8,6 +8,9 @@ const style = StyleSheet.create({
8
8
  checkoutItemKept: {
9
9
  paddingVertical: spaceM,
10
10
  },
11
+ container: {
12
+ paddingBottom: spaceXXL,
13
+ },
11
14
  deliveryBannerContainer: {
12
15
  marginBottom: spaceXXL,
13
16
  },
@@ -1,8 +1,10 @@
1
1
  import { FC } from "react";
2
2
  import { Country } from "../../../../projection/shared/country";
3
+ import { Layout } from "../../components/layouts/layout/Layout";
3
4
  interface FeedbackProps {
4
5
  readonly customerId: string;
5
6
  readonly country: Country;
7
+ readonly layout: Layout;
6
8
  }
7
9
  declare const Feedback: FC<FeedbackProps>;
8
10
  export { Feedback };
@@ -1,5 +1,6 @@
1
1
  import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
2
2
  import React, { useCallback, useEffect, useRef } from "react";
3
+ import { ScrollView } from "react-native";
3
4
  import { CheckoutQuestionType } from "../../../../projection/checkoutQuestion/checkoutQuestion";
4
5
  import { useLogger } from "../../../../shared/logging/useLogger";
5
6
  import { useTrackChangeFeedback } from "../../../../shared/tracking/infrastructure/useTrackChangeFeedback";
@@ -12,11 +13,9 @@ import { useListCheckoutQuestionsByCheckoutId } from "../../../projection/checko
12
13
  import { TrackingPage } from "../../../tracking/tracking";
13
14
  import { Body } from "../../components/layouts/body/Body";
14
15
  import { CheckoutQuestionFeedbackProvider } from "../../components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionFeedback";
15
- import { SafeAreaScrollView } from "../../components/templates/SafeAreaScrollView";
16
- import { HEADER_HEIGHT } from "../navigation/components/header/Header.style";
17
16
  import { style } from "./Feedback.style";
18
17
  import { CheckoutQuestionsForm } from "./components/checkoutQuestionsForm/CheckoutQuestionsForm";
19
- const Feedback = ({ customerId, country }) => {
18
+ const Feedback = ({ customerId, country, layout: Layout }) => {
20
19
  const logger = useLogger();
21
20
  const [checkout, checkoutStatus] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
22
21
  const [checkoutQuestions, checkoutQuestionsStatus] = useListCheckoutQuestionsByCheckoutId({
@@ -75,8 +74,9 @@ const Feedback = ({ customerId, country }) => {
75
74
  if (!dependenciesLoaded)
76
75
  return React.createElement(Spinner, null);
77
76
  return (React.createElement(CheckoutQuestionFeedbackProvider, { feedback: {}, onChanged: handleOnChangedFeedback },
78
- React.createElement(SafeAreaScrollView, { scrollerPaddingTop: HEADER_HEIGHT },
79
- React.createElement(Body, { style: { column: style.bodyColumn } },
80
- React.createElement(CheckoutQuestionsForm, { checkoutQuestions: checkoutQuestions || [], submitButtonDisabled: giveCheckoutFeedbackStatus === CommandStatus.LOADING, onSubmit: handleOnSubmit })))));
77
+ React.createElement(Layout, null,
78
+ React.createElement(ScrollView, { contentContainerStyle: style.container, showsVerticalScrollIndicator: false },
79
+ React.createElement(Body, { style: { column: style.bodyColumn } },
80
+ React.createElement(CheckoutQuestionsForm, { checkoutQuestions: checkoutQuestions || [], submitButtonDisabled: giveCheckoutFeedbackStatus === CommandStatus.LOADING, onSubmit: handleOnSubmit }))))));
81
81
  };
82
82
  export { Feedback };
@@ -2,5 +2,8 @@ declare const style: {
2
2
  bodyColumn: {
3
3
  paddingHorizontal: number;
4
4
  };
5
+ container: {
6
+ paddingBottom: number;
7
+ };
5
8
  };
6
9
  export { style };
@@ -1,9 +1,12 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../theme/theme";
3
- const { spaceXL } = theme();
3
+ const { spaceXL, spaceXXL } = theme();
4
4
  const style = StyleSheet.create({
5
5
  bodyColumn: {
6
6
  paddingHorizontal: spaceXL,
7
7
  },
8
+ container: {
9
+ paddingBottom: spaceXXL,
10
+ },
8
11
  });
9
12
  export { style };
@@ -1,8 +1,10 @@
1
1
  import { FC } from "react";
2
2
  import { Country } from "../../../../projection/shared/country";
3
+ import { Layout } from "../../components/layouts/layout/Layout";
3
4
  interface ItemProps {
4
5
  readonly customerId: string;
5
6
  readonly country: Country;
7
+ readonly layout: Layout;
6
8
  }
7
9
  declare const Item: FC<ItemProps>;
8
10
  export { Item };
@@ -1,9 +1,12 @@
1
1
  import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
2
2
  import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
3
- import { useParams } from "react-router-native";
3
+ import { useMatch, useParams } from "react-router-native";
4
4
  import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
5
5
  import { useLogger } from "../../../../shared/logging/useLogger";
6
6
  import { useTrackItemPageView } from "../../../../shared/tracking/infrastructure/useTrackItemPageView";
7
+ import { useTrackPressBack } from "../../../../shared/tracking/infrastructure/useTrackPressBack";
8
+ import { useTrackPressNext } from "../../../../shared/tracking/infrastructure/useTrackPressNext";
9
+ import { useTrackPressPrevious } from "../../../../shared/tracking/infrastructure/useTrackPressPrevious";
7
10
  import { useTrackReturnItem } from "../../../../shared/tracking/infrastructure/useTrackReturnItem";
8
11
  import { Spinner } from "../../../../shared/ui/components/atoms/spinner/Spinner";
9
12
  import { useBookCheckoutBookingForCheckoutItem } from "../../../domain/checkoutBooking/react/useBookCheckoutBookingForCheckoutItem";
@@ -14,10 +17,14 @@ import { useViewIsSizeChangeEnabledByCheckoutId } from "../../../projection/chec
14
17
  import { useListReturnQuestionsByCheckoutItemId } from "../../../projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId";
15
18
  import { TrackingPage } from "../../../tracking/tracking";
16
19
  import { ReturnQuestionFeedbackProvider } from "../../components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback";
20
+ import { ItemDetailHeader } from "../../components/templates/header/itemDetailHeader/ItemDetailHeader";
21
+ import { ItemHeader } from "../../components/templates/header/itemHeader/ItemHeader";
22
+ import { Routes } from "../../routing/routes";
23
+ import { useBasePath } from "../../routing/useBasePath";
17
24
  import { ReturnQuestionsForm } from "./components/returnQuestionsForm/ReturnQuestionsForm";
18
25
  import { ItemWithCustomerDecission, } from "./views/itemWithCustomerDecission/ItemWithCustomerDecission";
19
26
  import { ItemWithoutCustomerDecission, } from "./views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission";
20
- const Item = ({ customerId, country }) => {
27
+ const Item = ({ customerId, country, layout: Layout }) => {
21
28
  const logger = useLogger();
22
29
  const { id } = useParams();
23
30
  const [checkout, checkoutStatus] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
@@ -90,6 +97,31 @@ const Item = ({ customerId, country }) => {
90
97
  replaceableFor,
91
98
  unique: checkoutItem.productVariant.size.unique,
92
99
  });
100
+ const trackPressNext = useTrackPressNext();
101
+ const handleOnNext = useCallback(({ from, to }) => trackPressNext({
102
+ page: TrackingPage.ITEM,
103
+ country,
104
+ checkoutId: checkout?.id,
105
+ from,
106
+ to,
107
+ }), [checkout?.id, country, trackPressNext]);
108
+ const trackPressPrevious = useTrackPressPrevious();
109
+ const handleOnPrevious = useCallback(({ from, to }) => trackPressPrevious({
110
+ page: TrackingPage.ITEM,
111
+ country,
112
+ checkoutId: checkout?.id,
113
+ from,
114
+ to,
115
+ }), [checkout?.id, country, trackPressPrevious]);
116
+ const trackPressBack = useTrackPressBack();
117
+ const handleOnBack = useCallback(() => trackPressBack({
118
+ page: TrackingPage.ITEM,
119
+ country,
120
+ checkoutId: checkout?.id,
121
+ }), [checkout?.id, country, trackPressBack]);
122
+ const basePath = useBasePath();
123
+ const itemDetailRouteMatch = useMatch(`${basePath}/${Routes.ITEM_DETAIL}`);
124
+ const header = useMemo(() => itemDetailRouteMatch ? (React.createElement(ItemDetailHeader, { onBack: handleOnBack })) : (React.createElement(ItemHeader, { item: checkoutItem, items: checkout?.items, onNext: handleOnNext, onPrevious: handleOnPrevious })), [checkout?.items, checkoutItem, handleOnBack, handleOnNext, handleOnPrevious, itemDetailRouteMatch]);
93
125
  const dependenciesLoaded = checkoutStatus !== QueryStatus.LOADING &&
94
126
  checkout &&
95
127
  checkoutItem &&
@@ -103,7 +135,8 @@ const Item = ({ customerId, country }) => {
103
135
  return React.createElement(Spinner, null);
104
136
  }
105
137
  return (React.createElement(ReturnQuestionFeedbackProvider, { feedback: checkoutItem.feedbacks || {} },
106
- checkoutItem.status === CheckoutItemStatus.INITIAL ? (React.createElement(ItemWithoutCustomerDecission, { bookedProductsVariants: bookedProductsVariants, checkoutId: checkout.id, checkoutItem: checkoutItem, country: country, currentProductVariant: currentProductVariant, onReturn: showReturnQuestions })) : (React.createElement(ItemWithCustomerDecission, { checkoutId: checkout.id, checkoutItem: checkoutItem, country: country, currentProductVariant: currentProductVariant, returnQuestions: returnQuestions, onEditFeedback: showReturnQuestions })),
107
- React.createElement(ReturnQuestionsForm, { returnQuestions: returnQuestions, visible: returnQuestionsVisible, onClose: hideReturnQuestions, onSubmit: returnItem })));
138
+ React.createElement(Layout, { header: header },
139
+ checkoutItem.status === CheckoutItemStatus.INITIAL ? (React.createElement(ItemWithoutCustomerDecission, { bookedProductsVariants: bookedProductsVariants, checkoutId: checkout.id, checkoutItem: checkoutItem, country: country, currentProductVariant: currentProductVariant, onReturn: showReturnQuestions })) : (React.createElement(ItemWithCustomerDecission, { checkoutId: checkout.id, checkoutItem: checkoutItem, country: country, currentProductVariant: currentProductVariant, returnQuestions: returnQuestions, onEditFeedback: showReturnQuestions })),
140
+ React.createElement(ReturnQuestionsForm, { returnQuestions: returnQuestions, visible: returnQuestionsVisible, onClose: hideReturnQuestions, onSubmit: returnItem }))));
108
141
  };
109
142
  export { Item };
@@ -12,7 +12,7 @@ import { HostDefaultReturnQuestionItem } from "../../../../components/organisms/
12
12
  import { HostSelectReturnQuestionItem } from "../../../../components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem";
13
13
  import { HostStackReturnQuestionItem } from "../../../../components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem";
14
14
  import { OptionReturnQuestionItem } from "../../../../components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem";
15
- import { TEXTAREA_MIN_HEIGHT, TextareaReturnQuestionItem, } from "../../../../components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem";
15
+ import { TextareaReturnQuestionItem } from "../../../../components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem";
16
16
  import { I18nMessages } from "../../../../i18n/i18n";
17
17
  import { style } from "./ReturnQuestionsForm.style";
18
18
  const RETURN_QUESTION_FORM_PORTAL_HOST_NAME = "return-question-form-portal";
@@ -31,7 +31,7 @@ const ReturnQuestionsForm = ({ returnQuestions, visible, onSubmit, onClose }) =>
31
31
  const handleOnSubmit = useCallback(() => onSubmit(feedback), [feedback, onSubmit]);
32
32
  return (React.createElement(ReturnQuestionItemProvider, { returnQuestionItems: returnQuestionItems },
33
33
  React.createElement(PortalHost, { name: RETURN_QUESTION_FORM_PORTAL_HOST_NAME }),
34
- React.createElement(Modal, { extraScrollHeight: TEXTAREA_MIN_HEIGHT, portalHostName: RETURN_QUESTION_FORM_PORTAL_HOST_NAME, testID: "return-questions-form-modal", visible: visible, scroll: true, showCloseButton: true, onClose: onClose },
34
+ React.createElement(Modal, { portalHostName: RETURN_QUESTION_FORM_PORTAL_HOST_NAME, testID: "return-questions-form-modal", visible: visible, scroll: true, showCloseButton: true, onClose: onClose },
35
35
  React.createElement(View, { style: style.returnQuestionsContainer },
36
36
  React.createElement(Text, { level: 2, style: style.title }, titleText),
37
37
  React.createElement(ReturnQuestions, { portalHostName: RETURN_QUESTION_FORM_PORTAL_HOST_NAME, returnQuestions: returnQuestions }),
@@ -1,6 +1,6 @@
1
1
  import { CommandStatus } from "@lookiero/messaging-react";
2
2
  import React, { useCallback } from "react";
3
- import { View } from "react-native";
3
+ import { ScrollView, View } from "react-native";
4
4
  import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
5
5
  import { useLogger } from "../../../../../../shared/logging/useLogger";
6
6
  import { useTrackResetItem } from "../../../../../../shared/tracking/infrastructure/useTrackResetItem";
@@ -8,8 +8,6 @@ import { Spinner } from "../../../../../../shared/ui/components/atoms/spinner/Sp
8
8
  import { useResetCheckoutItem } from "../../../../../domain/checkoutItem/react/useResetCheckoutItem";
9
9
  import { TrackingPage } from "../../../../../tracking/tracking";
10
10
  import { Body } from "../../../../components/layouts/body/Body";
11
- import { SafeAreaScrollView } from "../../../../components/templates/SafeAreaScrollView";
12
- import { HEADER_HEIGHT } from "../../../navigation/components/header/Header.style";
13
11
  import { CustomerDecissionBanner, } from "../../components/banner/CustomerDecissionBanner";
14
12
  import { ReturnQuestionsFeedback } from "../../components/returnQuestionsFeedback/ReturnQuestionsFeedback";
15
13
  import { ProductVariant } from "../../views/productVariant/ProductVariant";
@@ -36,7 +34,7 @@ const ItemWithCustomerDecission = ({ country, checkoutId, checkoutItem, returnQu
36
34
  if (!dependenciesLoaded) {
37
35
  return React.createElement(Spinner, null);
38
36
  }
39
- return (React.createElement(SafeAreaScrollView, { scrollerPaddingTop: HEADER_HEIGHT },
37
+ return (React.createElement(ScrollView, { contentContainerStyle: style.container, showsVerticalScrollIndicator: false },
40
38
  React.createElement(Body, null,
41
39
  React.createElement(CustomerDecissionBanner, { checkoutItemStatus: checkoutItem.status, onPress: resetItem }),
42
40
  React.createElement(ProductVariant, { checkoutId: checkoutId, checkoutItem: checkoutItem, country: country, currentProductVariant: currentProductVariant }, checkoutItem.status === CheckoutItemStatus.RETURNED && (React.createElement(View, { style: style.feedbackContainer },
@@ -1,4 +1,7 @@
1
1
  declare const style: {
2
+ container: {
3
+ paddingBottom: number;
4
+ };
2
5
  feedbackContainer: {
3
6
  borderTopColor: string;
4
7
  borderTopWidth: number;
@@ -1,7 +1,10 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../theme/theme";
3
- const { borderSize, colorGrayscaleM, spaceXL } = theme();
3
+ const { borderSize, colorGrayscaleM, spaceXL, spaceXXL } = theme();
4
4
  const style = StyleSheet.create({
5
+ container: {
6
+ paddingBottom: spaceXXL,
7
+ },
5
8
  feedbackContainer: {
6
9
  borderTopColor: colorGrayscaleM,
7
10
  borderTopWidth: borderSize,
@@ -1,6 +1,6 @@
1
1
  import { CommandStatus } from "@lookiero/messaging-react";
2
2
  import React, { useCallback, useState } from "react";
3
- import { Platform } from "react-native";
3
+ import { Platform, ScrollView } from "react-native";
4
4
  import "../../../../../../projection/checkout/viewFirstAvailableCheckoutByCustomerId";
5
5
  import { useLogger } from "../../../../../../shared/logging/useLogger";
6
6
  import { useTrackKeepItem } from "../../../../../../shared/tracking/infrastructure/useTrackKeepItem";
@@ -10,11 +10,10 @@ import { useKeepCheckoutItem } from "../../../../../domain/checkoutItem/react/us
10
10
  import { useReplaceCheckoutItem } from "../../../../../domain/checkoutItem/react/useReplaceCheckoutItem";
11
11
  import { TrackingPage } from "../../../../../tracking/tracking";
12
12
  import { Body } from "../../../../components/layouts/body/Body";
13
- import { SafeAreaScrollView } from "../../../../components/templates/SafeAreaScrollView";
14
- import { HEADER_HEIGHT } from "../../../navigation/components/header/Header.style";
15
13
  import { ItemActions } from "../../components/itemActions/ItemActions";
16
14
  import { SizeWithoutStockModal } from "../../components/sizeWithoutStockModal/SizeWithoutStockModal";
17
15
  import { ProductVariant } from "../productVariant/ProductVariant";
16
+ import { style } from "./ItemWithoutCustomerDecission.style";
18
17
  const ItemWithoutCustomerDecission = ({ country, checkoutId, checkoutItem, bookedProductsVariants, currentProductVariant, onReturn, }) => {
19
18
  const logger = useLogger();
20
19
  /* KeepCheckoutItem */
@@ -58,8 +57,9 @@ const ItemWithoutCustomerDecission = ({ country, checkoutId, checkoutItem, booke
58
57
  }
59
58
  return (React.createElement(React.Fragment, null,
60
59
  React.createElement(SizeWithoutStockModal, { visible: sizeWithoutStockModalVisible, onDismiss: handleOnHideSizeWithoutStockModal }),
61
- React.createElement(SafeAreaScrollView, { scrollerPaddingTop: HEADER_HEIGHT, footer: React.createElement(ItemActions, { country: country, currentProductVariant: currentProductVariant, productVariants: bookedProductsVariants?.productVariants, onKeep: handleOnKeep, onLayout: handleOnStickyLayout, onReplace: handleOnReplace, onReturn: onReturn, onSizeSelectorPress: handleOnShowSizeWithoutStockModal }) },
60
+ React.createElement(ScrollView, { contentContainerStyle: style.container, showsVerticalScrollIndicator: false },
62
61
  React.createElement(Body, null,
63
- React.createElement(ProductVariant, { checkoutId: checkoutId, checkoutItem: checkoutItem, country: country, currentProductVariant: currentProductVariant, style: { content: { paddingBottom: Platform.OS === "web" ? 0 : stickyHeight } } })))));
62
+ React.createElement(ProductVariant, { checkoutId: checkoutId, checkoutItem: checkoutItem, country: country, currentProductVariant: currentProductVariant, style: { content: { paddingBottom: Platform.OS === "web" ? 0 : stickyHeight } } }))),
63
+ React.createElement(ItemActions, { country: country, currentProductVariant: currentProductVariant, productVariants: bookedProductsVariants?.productVariants, onKeep: handleOnKeep, onLayout: handleOnStickyLayout, onReplace: handleOnReplace, onReturn: onReturn, onSizeSelectorPress: handleOnShowSizeWithoutStockModal })));
64
64
  };
65
65
  export { ItemWithoutCustomerDecission };
@@ -0,0 +1,6 @@
1
+ declare const style: {
2
+ container: {
3
+ paddingBottom: number;
4
+ };
5
+ };
6
+ export { style };
@@ -0,0 +1,9 @@
1
+ import { StyleSheet } from "react-native";
2
+ import { theme } from "../../../../theme/theme";
3
+ const { spaceXXL } = theme();
4
+ const style = StyleSheet.create({
5
+ container: {
6
+ paddingBottom: spaceXXL,
7
+ },
8
+ });
9
+ export { style };
@@ -1,8 +1,10 @@
1
1
  import { FC } from "react";
2
2
  import { Country } from "../../../../projection/shared/country";
3
+ import { Layout } from "../../components/layouts/layout/Layout";
3
4
  interface NotFoundProps {
4
5
  readonly customerId: string;
5
6
  readonly country: Country;
7
+ readonly layout: Layout;
6
8
  }
7
9
  declare const NotFound: FC<NotFoundProps>;
8
10
  export { NotFound };
@@ -2,7 +2,7 @@ import { Button, Text } from "@lookiero/aurora";
2
2
  import { useI18nMessage } from "@lookiero/i18n-react";
3
3
  import { QueryStatus } from "@lookiero/messaging-react";
4
4
  import React, { useCallback } from "react";
5
- import { Image } from "react-native";
5
+ import { Image, ScrollView } from "react-native";
6
6
  import { useNavigate } from "react-router-native";
7
7
  import { useTrackPageView } from "../../../../shared/tracking/infrastructure/useTrackPageView";
8
8
  import { AspectRatioView } from "../../../../shared/ui/components/atoms/aspectRatioView/AspectRatioView";
@@ -10,13 +10,11 @@ import { Spinner } from "../../../../shared/ui/components/atoms/spinner/Spinner"
10
10
  import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
11
11
  import { TrackingPage } from "../../../tracking/tracking";
12
12
  import { Body } from "../../components/layouts/body/Body";
13
- import { SafeAreaScrollView } from "../../components/templates/SafeAreaScrollView";
14
13
  import { I18nMessages } from "../../i18n/i18n";
15
14
  import { Routes } from "../../routing/routes";
16
15
  import { useBasePath } from "../../routing/useBasePath";
17
- import { HEADER_HEIGHT } from "../navigation/components/header/Header.style";
18
16
  import { style } from "./NotFound.style";
19
- const NotFound = ({ customerId, country }) => {
17
+ const NotFound = ({ customerId, country, layout: Layout }) => {
20
18
  const descriptionText = useI18nMessage({ id: I18nMessages.NOT_FOUND_DESCRIPTION });
21
19
  const buttonText = useI18nMessage({ id: I18nMessages.NOT_FOUND_BUTTON });
22
20
  const [checkout, checkoutStatus] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
@@ -32,11 +30,12 @@ const NotFound = ({ customerId, country }) => {
32
30
  const dependenciesLoaded = dependenciesLoadedStatuses.includes(checkoutStatus);
33
31
  if (!dependenciesLoaded)
34
32
  return React.createElement(Spinner, null);
35
- return (React.createElement(SafeAreaScrollView, { scrollerPaddingTop: HEADER_HEIGHT, style: { scrollView: style.container } },
36
- React.createElement(Body, { style: { column: style.bodyColumn } },
37
- React.createElement(AspectRatioView, { aspectRatio: 1.25 },
38
- React.createElement(Image, { resizeMode: "contain", source: require("../../../../public/images/not-found.png"), style: style.image, testID: "not-found-image" })),
39
- React.createElement(Text, { level: 1, style: style.description }, descriptionText),
40
- React.createElement(Button, { onPress: handleOnPress }, buttonText))));
33
+ return (React.createElement(Layout, null,
34
+ React.createElement(ScrollView, { contentContainerStyle: style.container, showsVerticalScrollIndicator: false },
35
+ React.createElement(Body, { style: { column: style.bodyColumn } },
36
+ React.createElement(AspectRatioView, { aspectRatio: 1.25 },
37
+ React.createElement(Image, { resizeMode: "contain", source: require("../../../../public/images/not-found.png"), style: style.image, testID: "not-found-image" })),
38
+ React.createElement(Text, { level: 1, style: style.description }, descriptionText),
39
+ React.createElement(Button, { onPress: handleOnPress }, buttonText)))));
41
40
  };
42
41
  export { NotFound };
@@ -4,6 +4,7 @@ declare const style: {
4
4
  };
5
5
  container: {
6
6
  flex: number;
7
+ paddingBottom: number;
7
8
  };
8
9
  description: {
9
10
  marginBottom: number;
@@ -1,12 +1,13 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../theme/theme";
3
- const { spaceXL } = theme();
3
+ const { spaceXL, spaceXXL } = theme();
4
4
  const style = StyleSheet.create({
5
5
  bodyColumn: {
6
6
  paddingHorizontal: spaceXL,
7
7
  },
8
8
  container: {
9
9
  flex: 1,
10
+ paddingBottom: spaceXXL,
10
11
  },
11
12
  description: {
12
13
  marginBottom: spaceXL,
@@ -1,8 +1,10 @@
1
1
  import { FC } from "react";
2
2
  import { Country } from "../../../../projection/shared/country";
3
+ import { Layout } from "../../components/layouts/layout/Layout";
3
4
  interface SummaryProps {
4
5
  readonly customerId: string;
5
6
  readonly country: Country;
7
+ readonly layout: Layout;
6
8
  }
7
9
  declare const Summary: FC<SummaryProps>;
8
10
  export { Summary };
@@ -2,7 +2,7 @@ import { Text } from "@lookiero/aurora";
2
2
  import { useI18nMessage } from "@lookiero/i18n-react";
3
3
  import { QueryStatus } from "@lookiero/messaging-react";
4
4
  import React, { useCallback, useMemo, useState } from "react";
5
- import { Platform, View } from "react-native";
5
+ import { Platform, ScrollView, View } from "react-native";
6
6
  import { generatePath, useNavigate } from "react-router-native";
7
7
  import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
8
8
  import { useTrackPageView } from "../../../../shared/tracking/infrastructure/useTrackPageView";
@@ -16,16 +16,14 @@ import { useViewFiveItemsDiscountByCustomerId } from "../../../projection/checko
16
16
  import { useViewPricingByCheckoutId } from "../../../projection/pricing/react/useViewPricingByCheckoutId";
17
17
  import { TrackingPage } from "../../../tracking/tracking";
18
18
  import { Body } from "../../components/layouts/body/Body";
19
- import { SafeAreaScrollView } from "../../components/templates/SafeAreaScrollView";
20
19
  import { I18nMessages } from "../../i18n/i18n";
21
20
  import { Routes } from "../../routing/routes";
22
21
  import { useBasePath } from "../../routing/useBasePath";
23
- import { HEADER_HEIGHT } from "../navigation/components/header/Header.style";
24
22
  import { style } from "./Summary.style";
25
23
  import { CheckoutItemsTabs } from "./components/checkoutItemsTabs/CheckoutItemsTabs";
26
24
  import { FiveItemsDiscountBanner } from "./components/fiveItemsDiscountBanner/FiveItemsDiscountBanner";
27
25
  import { StickyPricing } from "./components/stickyPricing/StickyPricing";
28
- const Summary = ({ customerId, country }) => {
26
+ const Summary = ({ customerId, country, layout: Layout }) => {
29
27
  const titleText = useI18nMessage({ id: I18nMessages.SUMMARY_TITLE });
30
28
  const descriptionText = useI18nMessage({ id: I18nMessages.SUMMARY_DESCRIPTION });
31
29
  const [pricingHeight, setPricingHeight] = useState(0);
@@ -83,12 +81,14 @@ const Summary = ({ customerId, country }) => {
83
81
  dependenciesLoadedStatuses.includes(fiveItemsDiscountStatus);
84
82
  if (!dependenciesLoaded)
85
83
  return React.createElement(Spinner, null);
86
- return (React.createElement(SafeAreaScrollView, { scrollerPaddingTop: HEADER_HEIGHT, footer: pricing && (React.createElement(StickyPricing, { collapsed: pricingCollapsed, pricing: pricing, totalCheckoutItemsKept: checkoutItemsKept?.length || 0, onLayout: Platform.OS !== "web" ? handleOnPricingLayout : undefined, onPress: handleOnPressPricing, onSubmit: handleOnSubmit })) },
87
- React.createElement(Body, { style: { row: { paddingBottom: pricingHeight } } },
88
- fiveItemsDiscount !== 0 && React.createElement(FiveItemsDiscountBanner, { fiveItemsDiscount: fiveItemsDiscount }),
89
- React.createElement(View, { style: style.content },
90
- React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
91
- React.createElement(Text, { level: 3, style: style.description }, descriptionText)),
92
- React.createElement(CheckoutItemsTabs, { checkoutItemsKept: checkoutItemsKept || [], checkoutItemsReturned: checkoutItemsReturned || [], country: country, onChanged: handleOnChangedTab, onPressItem: handleOnPressItem }))));
84
+ return (React.createElement(Layout, null,
85
+ React.createElement(ScrollView, { contentContainerStyle: style.container, showsVerticalScrollIndicator: false },
86
+ React.createElement(Body, { style: { row: { paddingBottom: pricingHeight } } },
87
+ fiveItemsDiscount !== 0 && React.createElement(FiveItemsDiscountBanner, { fiveItemsDiscount: fiveItemsDiscount }),
88
+ React.createElement(View, { style: style.content },
89
+ React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
90
+ React.createElement(Text, { level: 3, style: style.description }, descriptionText)),
91
+ React.createElement(CheckoutItemsTabs, { checkoutItemsKept: checkoutItemsKept || [], checkoutItemsReturned: checkoutItemsReturned || [], country: country, onChanged: handleOnChangedTab, onPressItem: handleOnPressItem }))),
92
+ pricing && (React.createElement(StickyPricing, { collapsed: pricingCollapsed, pricing: pricing, totalCheckoutItemsKept: checkoutItemsKept?.length || 0, onLayout: Platform.OS !== "web" ? handleOnPricingLayout : undefined, onPress: handleOnPressPricing, onSubmit: handleOnSubmit }))));
93
93
  };
94
94
  export { Summary };
@@ -1,4 +1,7 @@
1
1
  declare const style: {
2
+ container: {
3
+ paddingBottom: number;
4
+ };
2
5
  content: {
3
6
  paddingHorizontal: number;
4
7
  };