@lookiero/checkout 6.4.0 → 6.5.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 (108) hide show
  1. package/dist/public/public/assets/adaptive-icon.png +0 -0
  2. package/dist/public/public/assets/favicon.png +0 -0
  3. package/dist/public/public/assets/icon.png +0 -0
  4. package/dist/public/public/assets/splash.png +0 -0
  5. package/dist/public/public/images/not-found.png +0 -0
  6. package/dist/src/ExpoRoot.js +1 -1
  7. package/dist/src/infrastructure/ui/Root.d.ts +1 -1
  8. package/dist/src/infrastructure/ui/components/templates/header/Header.js +3 -6
  9. package/dist/src/infrastructure/ui/components/templates/header/Header.style.d.ts +3 -2
  10. package/dist/src/infrastructure/ui/components/templates/header/Header.style.js +4 -3
  11. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +6 -7
  12. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.d.ts +2 -1
  13. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.js +2 -1
  14. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +2 -1
  15. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +8 -0
  16. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +11 -0
  17. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -1
  18. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.d.ts +8 -0
  19. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.js +11 -0
  20. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.d.ts +1 -0
  21. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.js +1 -0
  22. package/dist/src/infrastructure/ui/routing/Routing.d.ts +1 -1
  23. package/dist/src/infrastructure/ui/views/checkout/Checkout.d.ts +1 -1
  24. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +9 -9
  25. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +5 -18
  26. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +7 -21
  27. package/dist/src/infrastructure/ui/views/feedback/Feedback.d.ts +1 -1
  28. package/dist/src/infrastructure/ui/views/feedback/Feedback.js +2 -1
  29. package/dist/src/infrastructure/ui/views/feedback/Feedback.style.d.ts +0 -3
  30. package/dist/src/infrastructure/ui/views/feedback/Feedback.style.js +0 -4
  31. package/dist/src/infrastructure/ui/views/item/Item.d.ts +1 -1
  32. package/dist/src/infrastructure/ui/views/item/Item.js +4 -4
  33. package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +4 -4
  34. package/dist/src/infrastructure/ui/views/item/Item.style.js +5 -6
  35. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +3 -4
  36. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.d.ts +1 -0
  37. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.js +1 -0
  38. package/dist/src/infrastructure/ui/views/return/Return.d.ts +1 -1
  39. package/dist/src/infrastructure/ui/views/return/Return.js +0 -1
  40. package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +0 -3
  41. package/dist/src/infrastructure/ui/views/return/Return.style.js +1 -5
  42. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +2 -2
  43. package/dist/src/infrastructure/ui/views/summary/Summary.d.ts +1 -1
  44. package/dist/src/infrastructure/ui/views/summary/Summary.js +20 -18
  45. package/dist/src/infrastructure/ui/views/summary/Summary.style.d.ts +4 -4
  46. package/dist/src/infrastructure/ui/views/summary/Summary.style.js +7 -8
  47. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.d.ts +13 -0
  48. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +33 -0
  49. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.d.ts +18 -0
  50. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.js +21 -0
  51. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.d.ts +2 -14
  52. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +15 -28
  53. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +0 -15
  54. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +1 -16
  55. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -1
  56. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +2 -2
  57. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +6 -2
  58. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +10 -1
  59. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +13 -4
  60. package/dist/src/version.d.ts +1 -1
  61. package/dist/src/version.js +1 -1
  62. package/package.json +1 -1
  63. package/src/ExpoRoot.tsx +1 -1
  64. package/src/infrastructure/ui/Root.tsx +1 -1
  65. package/src/infrastructure/ui/components/templates/header/Header.style.ts +4 -3
  66. package/src/infrastructure/ui/components/templates/header/Header.tsx +7 -11
  67. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.ts +2 -1
  68. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +10 -11
  69. package/src/infrastructure/ui/{views/summary/components/stickyPricing/StickyPricing.style.ts → components/templates/header/defaultHeader/DefaultHeader.style.ts} +5 -4
  70. package/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.tsx +2 -1
  71. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.ts +14 -0
  72. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -1
  73. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.ts +1 -0
  74. package/src/infrastructure/ui/routing/Routing.tsx +1 -1
  75. package/src/infrastructure/ui/views/checkout/Checkout.style.ts +7 -21
  76. package/src/infrastructure/ui/views/checkout/Checkout.tsx +13 -22
  77. package/src/infrastructure/ui/views/feedback/Feedback.style.ts +0 -4
  78. package/src/infrastructure/ui/views/feedback/Feedback.tsx +3 -2
  79. package/src/infrastructure/ui/views/item/Item.style.ts +5 -6
  80. package/src/infrastructure/ui/views/item/Item.tsx +21 -21
  81. package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.ts +1 -0
  82. package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.tsx +11 -13
  83. package/src/infrastructure/ui/views/return/Return.style.ts +1 -5
  84. package/src/infrastructure/ui/views/return/Return.tsx +1 -2
  85. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +2 -1
  86. package/src/infrastructure/ui/views/summary/Summary.style.ts +8 -7
  87. package/src/infrastructure/ui/views/summary/Summary.tsx +52 -55
  88. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.ts +24 -0
  89. package/src/infrastructure/ui/views/summary/components/{pricing/Pricing.test.tsx → collapsiblePricing/CollapsiblePricing.test.tsx} +2 -7
  90. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +81 -0
  91. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.ts +1 -16
  92. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +34 -94
  93. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.ts +13 -4
  94. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +6 -2
  95. package/src/infrastructure/ui/components/layouts/layout/Layout.ts +0 -25
  96. package/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.test.tsx +0 -40
  97. package/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.tsx +0 -9
  98. package/src/infrastructure/ui/components/layouts/layout/components/footer/__snapshots__/Footer.test.tsx.snap +0 -36
  99. package/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.ts +0 -21
  100. package/src/infrastructure/ui/components/layouts/layout/components/header/Header.test.tsx +0 -26
  101. package/src/infrastructure/ui/components/layouts/layout/components/header/Header.tsx +0 -10
  102. package/src/infrastructure/ui/components/layouts/layout/components/header/__snapshots__/Header.test.tsx.snap +0 -45
  103. package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.ts +0 -15
  104. package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.test.tsx +0 -66
  105. package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.tsx +0 -45
  106. package/src/infrastructure/ui/components/layouts/layout/dummyLayout/__snapshots__/DummyLayout.test.tsx.snap +0 -1349
  107. package/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.tsx +0 -46
  108. /package/src/infrastructure/ui/views/summary/components/{pricing → collapsiblePricing}/__snapshots__/Pricing.test.tsx.snap +0 -0
@@ -10,10 +10,10 @@ import { i18n } from "@lookiero/i18n-react";
10
10
  import { PaymentsQueryProvider, setPaymentsBridge } from "@lookiero/payments-front";
11
11
  import { Locale } from "@lookiero/sty-psp-locale";
12
12
  import { Segment } from "@lookiero/sty-psp-segment";
13
+ import { DummyLayout } from "@lookiero/sty-psp-ui";
13
14
  // import { bootstrap as checkoutMockBootstrap } from "./infrastructure/delivery/bootstrap.mock";
14
15
  import { bootstrap as checkoutBootstrap } from "./infrastructure/delivery/bootstrap";
15
16
  import { root } from "./infrastructure/ui/Root";
16
- import { DummyLayout } from "./infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout";
17
17
  import { fetchTranslations } from "./infrastructure/ui/i18n/fetchTranslations";
18
18
  import { translationExternalEndpoint } from "./infrastructure/ui/i18n/translationEndpoint";
19
19
  import { Router } from "./infrastructure/ui/routing/router/Router";
@@ -3,11 +3,11 @@ import { useRoutes as reactRouterUseRoutes } from "react-router-native";
3
3
  import { I18n } from "@lookiero/i18n-react";
4
4
  import { MessagingRoot } from "@lookiero/messaging-react/bootstrap";
5
5
  import { SentryEnvironment, SentryLoggerFunctionArgs } from "@lookiero/sty-psp-logging";
6
+ import { Layout } from "@lookiero/sty-psp-ui";
6
7
  import { Customer } from "../../projection/shared/customer";
7
8
  import { Order } from "../../projection/shared/order";
8
9
  import { Subscription } from "../../projection/shared/subscription";
9
10
  import { KameleoonEnvironment } from "../ab-testing/kameleoonEnvironment";
10
- import { Layout } from "./components/layouts/layout/Layout";
11
11
  interface RootFunctionArgs {
12
12
  readonly Messaging: MessagingRoot;
13
13
  readonly I18n: I18n;
@@ -1,8 +1,5 @@
1
- import React, { useMemo } from "react";
2
- import { Platform, SafeAreaView, View } from "react-native";
1
+ import React from "react";
2
+ import { View } from "react-native";
3
3
  import { style } from "./Header.style";
4
- const Header = ({ children, style: customStyle, ...props }) => {
5
- const Component = useMemo(() => (Platform.OS === "android" ? SafeAreaView : View), []);
6
- return (React.createElement(Component, { ...props, style: [style.header, customStyle] }, children));
7
- };
4
+ const Header = ({ children, style: customStyle, ...props }) => (React.createElement(View, { ...props, style: [style.header, customStyle] }, children));
8
5
  export { Header };
@@ -1,4 +1,4 @@
1
- export declare const HEADER_HEIGHT: number;
1
+ declare const HEADER_HEIGHT = 48;
2
2
  declare const style: {
3
3
  header: {
4
4
  alignItems: "center";
@@ -6,10 +6,11 @@ declare const style: {
6
6
  flexDirection: "row";
7
7
  flexGrow: number;
8
8
  flexWrap: "nowrap";
9
+ height: number;
9
10
  justifyContent: "space-between";
10
11
  overflow: "visible";
11
12
  paddingHorizontal: number;
12
13
  width: "100%";
13
14
  };
14
15
  };
15
- export { style };
16
+ export { style, HEADER_HEIGHT };
@@ -1,7 +1,7 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorBgBase, space2, space12 } = theme();
4
- export const HEADER_HEIGHT = space12;
3
+ const { colorBgBase, space2 } = theme();
4
+ const HEADER_HEIGHT = 48;
5
5
  const style = StyleSheet.create({
6
6
  header: {
7
7
  alignItems: "center",
@@ -9,10 +9,11 @@ const style = StyleSheet.create({
9
9
  flexDirection: "row",
10
10
  flexGrow: 0,
11
11
  flexWrap: "nowrap",
12
+ height: HEADER_HEIGHT,
12
13
  justifyContent: "space-between",
13
14
  overflow: "visible",
14
15
  paddingHorizontal: space2,
15
16
  width: "100%",
16
17
  },
17
18
  });
18
- export { style };
19
+ export { style, HEADER_HEIGHT };
@@ -1,16 +1,15 @@
1
1
  import React from "react";
2
- import { Box, ButtonIcon, Text } from "@lookiero/aurora";
2
+ import { ButtonIcon, Text } from "@lookiero/aurora";
3
3
  import { useI18nMessage } from "@lookiero/i18n-react";
4
4
  import { I18nMessages } from "../../../../i18n/i18n";
5
5
  import { Header } from "../Header";
6
6
  import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
7
- import style from "./CheckoutHeader.style";
7
+ import { style } from "./CheckoutHeader.style";
8
8
  const CheckoutHeader = ({ onBack }) => {
9
9
  const title = useI18nMessage({ id: I18nMessages.HEADER_COMPLETE_CHECKOUT_TITLE });
10
- return (React.createElement(Box, null,
11
- React.createElement(Header, { testID: "checkout-header" },
12
- React.createElement(ButtonIcon, { name: "arrow_left", style: style.button, testID: "arrow-left-button-icon", onPress: onBack }),
13
- React.createElement(Text, { level: 3, action: true }, title),
14
- React.createElement(ButtonIconPlaceholder, null))));
10
+ return (React.createElement(Header, { testID: "checkout-header" },
11
+ React.createElement(ButtonIcon, { name: "arrow_left", style: style.button, testID: "arrow-left-button-icon", onPress: onBack }),
12
+ React.createElement(Text, { level: 3, action: true }, title),
13
+ React.createElement(ButtonIconPlaceholder, null)));
15
14
  };
16
15
  export { CheckoutHeader };
@@ -1,7 +1,8 @@
1
1
  declare const style: {
2
2
  button: {
3
+ alignSelf: "auto";
3
4
  height: number;
4
5
  width: number;
5
6
  };
6
7
  };
7
- export default style;
8
+ export { style };
@@ -3,8 +3,9 @@ import { theme } from "@lookiero/sty-psp-ui";
3
3
  const { space10 } = theme();
4
4
  const style = StyleSheet.create({
5
5
  button: {
6
+ alignSelf: "auto",
6
7
  height: space10,
7
8
  width: space10,
8
9
  },
9
10
  });
10
- export default style;
11
+ export { style };
@@ -3,8 +3,9 @@ import { ButtonIcon } from "@lookiero/aurora";
3
3
  import { Header } from "../Header";
4
4
  import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
5
5
  import { Logo } from "../logo/Logo";
6
+ import { style } from "./DefaultHeader.style";
6
7
  const DefaultHeader = ({ onPressMenu }) => (React.createElement(Header, { testID: "default-header" },
7
8
  React.createElement(Logo, null),
8
9
  React.createElement(ButtonIconPlaceholder, null),
9
- React.createElement(ButtonIcon, { name: "menu", testID: "menu-button-icon", onPress: onPressMenu })));
10
+ React.createElement(ButtonIcon, { name: "menu", style: style.button, testID: "menu-button-icon", onPress: onPressMenu })));
10
11
  export { DefaultHeader };
@@ -0,0 +1,8 @@
1
+ declare const style: {
2
+ button: {
3
+ alignSelf: "auto";
4
+ height: number;
5
+ width: number;
6
+ };
7
+ };
8
+ export { style };
@@ -0,0 +1,11 @@
1
+ import { StyleSheet } from "react-native";
2
+ import { theme } from "@lookiero/sty-psp-ui";
3
+ const { space10 } = theme();
4
+ const style = StyleSheet.create({
5
+ button: {
6
+ alignSelf: "auto",
7
+ height: space10,
8
+ width: space10,
9
+ },
10
+ });
11
+ export { style };
@@ -4,11 +4,12 @@ import { useI18nMessage } from "@lookiero/i18n-react";
4
4
  import { I18nMessages } from "../../../../i18n/i18n";
5
5
  import { Header } from "../Header";
6
6
  import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
7
+ import { style } from "./ItemDetailHeader.style";
7
8
  const ItemDetailHeader = ({ onBack }) => {
8
9
  const title = useI18nMessage({ id: I18nMessages.HEADER_CHECKOUT_TITLE });
9
10
  return (React.createElement(Header, { testID: "item-detail-header" },
10
11
  React.createElement(ButtonIconPlaceholder, null),
11
12
  React.createElement(Text, { level: 3, action: true }, title),
12
- React.createElement(ButtonIcon, { name: "close", testID: "close-button-icon", onPress: onBack })));
13
+ React.createElement(ButtonIcon, { name: "close", style: style.button, testID: "close-button-icon", onPress: onBack })));
13
14
  };
14
15
  export { ItemDetailHeader };
@@ -0,0 +1,8 @@
1
+ declare const style: {
2
+ button: {
3
+ alignSelf: "auto";
4
+ height: number;
5
+ width: number;
6
+ };
7
+ };
8
+ export { style };
@@ -0,0 +1,11 @@
1
+ import { StyleSheet } from "react-native";
2
+ import { theme } from "@lookiero/sty-psp-ui";
3
+ const { space10 } = theme();
4
+ const style = StyleSheet.create({
5
+ button: {
6
+ alignSelf: "auto",
7
+ height: space10,
8
+ width: space10,
9
+ },
10
+ });
11
+ export { style };
@@ -1,5 +1,6 @@
1
1
  declare const style: {
2
2
  button: {
3
+ alignSelf: "auto";
3
4
  height: number;
4
5
  width: number;
5
6
  };
@@ -3,6 +3,7 @@ import { theme } from "@lookiero/sty-psp-ui";
3
3
  const { space10 } = theme();
4
4
  const style = StyleSheet.create({
5
5
  button: {
6
+ alignSelf: "auto",
6
7
  height: space10,
7
8
  width: space10,
8
9
  },
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  import { useRoutes as reactRouterUseRoutes } from "react-router-native";
3
3
  import { I18n } from "@lookiero/i18n-react";
4
+ import { Layout } from "@lookiero/sty-psp-ui";
4
5
  import { Customer } from "../../../projection/shared/customer";
5
6
  import { Order } from "../../../projection/shared/order";
6
7
  import { Subscription } from "../../../projection/shared/subscription";
7
8
  import { KameleoonEnvironment } from "../../ab-testing/kameleoonEnvironment";
8
- import { Layout } from "../components/layouts/layout/Layout";
9
9
  interface RoutingProps {
10
10
  readonly basePath?: string;
11
11
  readonly customer: Customer;
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from "react";
2
- import { Layout as LocalLayout } from "../../components/layouts/layout/Layout";
2
+ import { Layout as LocalLayout } from "@lookiero/sty-psp-ui";
3
3
  interface CheckoutProps {
4
4
  readonly children?: ReactNode;
5
5
  readonly layout: LocalLayout;
@@ -1,7 +1,7 @@
1
1
  import React, { useCallback, useMemo } from "react";
2
2
  import { View } from "react-native";
3
3
  import { useNavigate } from "react-router-native";
4
- import { Box, Layout, Spinner, Text, useDevice } from "@lookiero/aurora";
4
+ import { Box, Button, Layout, Spinner, Text, useDevice } from "@lookiero/aurora";
5
5
  import { useI18nMessage } from "@lookiero/i18n-react";
6
6
  import { QueryStatus } from "@lookiero/messaging-react";
7
7
  import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
@@ -65,22 +65,22 @@ const Checkout = ({ children, layout: LocalLayout, useRedirect }) => {
65
65
  return React.createElement(Spinner, null);
66
66
  }
67
67
  return (React.createElement(LocalLayout, { header: React.createElement(CheckoutHeader, { onBack: handleOnBack }), style: {
68
- header: style.header,
69
68
  scrollView: style.scrollView,
70
69
  } },
71
70
  hasReplacedCheckoutItem && React.createElement(DeliveryBanner, null),
72
71
  React.createElement(Layout, { fullWidth: !screen.L, style: screen.L && style.desktopLayoutSpacing },
73
- React.createElement(Box, { size: { L: "2/3" }, style: screen.L ? style.desktopListSpacing : undefined },
74
- React.createElement(View, { style: [style.contentWrapper, screen.L ? style.contentWrapper : undefined] },
75
- React.createElement(View, { style: style.paymentSelector },
76
- React.createElement(PaymentInstrument, { useRedirect: useRedirect })),
72
+ React.createElement(Box, { size: { L: "2/3" }, style: screen.L && style.desktopListSpacing },
73
+ React.createElement(View, { style: [style.contentWrapper, screen.L && style.desktopContentWrapper] },
77
74
  React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
78
75
  checkoutItemsKept?.map((checkoutItem) => (React.createElement(View, { key: checkoutItem.id, testID: "checkout-items-kept" },
79
76
  React.createElement(ProductVariant, { brand: checkoutItem.productVariant.brand, color: checkoutItem.productVariant.color, country: country, media: checkoutItem.productVariant.media, name: checkoutItem.productVariant.name, price: checkoutItem.price, status: checkoutItem.status, size: checkoutItem.status === CheckoutItemStatus.REPLACED && checkoutItem.replacedFor
80
77
  ? checkoutItem.replacedFor.size
81
- : checkoutItem.productVariant.size })))))),
82
- React.createElement(Box, { size: { L: "1/3" }, style: [style.resume, screen.L ? style.desktopResume : undefined] }, pricing ? (React.createElement(View, { style: style.princingWrapper },
83
- React.createElement(Pricing, { balanceDiscount: pricing.balanceDiscount, collapsible: false, discount: pricing.discount, discountPercentage: pricing.discountPercentage, pendingToPay: pricing.pendingToPay, service: pricing.service, submitButtonText: submitButtonText, subtotal: pricing.subtotal, totalCheckoutItemsKept: checkoutItemsKept?.length || 0, onSubmit: handleOnSubmit }))) : null)),
78
+ : checkoutItem.productVariant.size })))),
79
+ React.createElement(View, { style: style.paymentSelector },
80
+ React.createElement(PaymentInstrument, { useRedirect: useRedirect })))),
81
+ React.createElement(Box, { size: { L: "1/3" }, style: [style.resume, screen.L && style.desktopResume] }, pricing ? (React.createElement(View, { style: style.princingWrapper },
82
+ React.createElement(Pricing, { pricing: pricing, totalCheckoutItemsKept: checkoutItemsKept?.length || 0 }),
83
+ React.createElement(Button, { testID: "confirm-checkout-button", onPress: handleOnSubmit }, submitButtonText))) : null)),
84
84
  children));
85
85
  };
86
86
  export { Checkout };
@@ -2,13 +2,12 @@ declare const style: {
2
2
  contentWrapper: {
3
3
  backgroundColor: string;
4
4
  flexGrow: number;
5
- padding: number;
6
- };
7
- deliveryBannerContainer: {
8
- marginBottom: number;
5
+ paddingHorizontal: number;
6
+ paddingVertical: number;
9
7
  };
10
8
  desktopContentWrapper: {
11
9
  borderRadius: number;
10
+ paddingVertical: number;
12
11
  };
13
12
  desktopLayoutSpacing: {
14
13
  paddingVertical: number;
@@ -19,20 +18,8 @@ declare const style: {
19
18
  desktopResume: {
20
19
  borderRadius: number;
21
20
  };
22
- header: {
23
- backgroundColor: string;
24
- height: number;
25
- };
26
- mobileInfo: {
27
- paddingHorizontal: number;
28
- paddingTop: number;
29
- };
30
21
  paymentSelector: {
31
- marginBottom: number;
32
- };
33
- pricingContainer: {
34
- paddingHorizontal: number;
35
- paddingVertical: number;
22
+ marginTop: number;
36
23
  };
37
24
  princingWrapper: {
38
25
  padding: number;
@@ -42,7 +29,7 @@ declare const style: {
42
29
  backgroundColor: string;
43
30
  };
44
31
  title: {
45
- marginVertical: number;
32
+ marginBottom: number;
46
33
  };
47
34
  };
48
35
  export { style };
@@ -1,18 +1,16 @@
1
1
  import { StyleSheet, Platform } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- import { HEADER_HEIGHT } from "../../components/templates/header/Header.style";
4
- const { borderRadius4, colorBgPrimaryLight, colorBgBase, space4, space6, space8, space12, space16 } = theme();
3
+ const { borderRadius4, colorBgPrimaryLight, colorBgBase, space4, space6, space12, space16, space24 } = theme();
5
4
  const style = StyleSheet.create({
6
5
  contentWrapper: {
7
6
  backgroundColor: colorBgBase,
8
7
  flexGrow: 0,
9
- padding: space6,
10
- },
11
- deliveryBannerContainer: {
12
- marginBottom: space6,
8
+ paddingHorizontal: space6,
9
+ paddingVertical: space6,
13
10
  },
14
11
  desktopContentWrapper: {
15
12
  borderRadius: borderRadius4,
13
+ paddingVertical: space12,
16
14
  },
17
15
  desktopLayoutSpacing: {
18
16
  paddingVertical: space12,
@@ -23,20 +21,8 @@ const style = StyleSheet.create({
23
21
  desktopResume: {
24
22
  borderRadius: borderRadius4,
25
23
  },
26
- header: {
27
- backgroundColor: colorBgBase,
28
- height: HEADER_HEIGHT,
29
- },
30
- mobileInfo: {
31
- paddingHorizontal: space6,
32
- paddingTop: space6,
33
- },
34
24
  paymentSelector: {
35
- marginBottom: space4,
36
- },
37
- pricingContainer: {
38
- paddingHorizontal: space6,
39
- paddingVertical: space8,
25
+ marginTop: space6,
40
26
  },
41
27
  princingWrapper: {
42
28
  padding: space6,
@@ -47,7 +33,7 @@ const style = StyleSheet.create({
47
33
  ...Platform.select({
48
34
  web: {
49
35
  position: "sticky",
50
- top: space12,
36
+ top: space24,
51
37
  alignSelf: "flex-start",
52
38
  },
53
39
  }),
@@ -57,7 +43,7 @@ const style = StyleSheet.create({
57
43
  backgroundColor: colorBgPrimaryLight,
58
44
  },
59
45
  title: {
60
- marginVertical: space4,
46
+ marginBottom: space4,
61
47
  },
62
48
  });
63
49
  export { style };
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { Layout } from "../../components/layouts/layout/Layout";
2
+ import { Layout } from "@lookiero/sty-psp-ui";
3
3
  interface FeedbackProps {
4
4
  readonly layout: Layout;
5
5
  }
@@ -12,6 +12,7 @@ import { useTrackPageView } from "../../../tracking/useTrackPageView";
12
12
  import { useTrackPressContinue } from "../../../tracking/useTrackPressContinue";
13
13
  import { Body } from "../../components/layouts/body/Body";
14
14
  import { CheckoutQuestionFeedbackProvider } from "../../components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionFeedback";
15
+ import { DefaultHeader } from "../../components/templates/header/defaultHeader/DefaultHeader";
15
16
  import { useStaticInfo } from "../../hooks/useStaticInfo";
16
17
  import { style } from "./Feedback.style";
17
18
  import { CheckoutQuestionsForm } from "./components/checkoutQuestionsForm/CheckoutQuestionsForm";
@@ -78,7 +79,7 @@ const Feedback = ({ layout: Layout }) => {
78
79
  if (!dependenciesLoaded)
79
80
  return React.createElement(Spinner, null);
80
81
  return (React.createElement(CheckoutQuestionFeedbackProvider, { feedback: {}, onChanged: handleOnChangedFeedback },
81
- React.createElement(Layout, { style: { header: style.header, scrollView: style.container } },
82
+ React.createElement(Layout, { header: React.createElement(DefaultHeader, null), style: { scrollView: style.container } },
82
83
  React.createElement(Body, { style: { column: style.bodyColumn } },
83
84
  React.createElement(CheckoutQuestionsForm, { checkoutQuestions: checkoutQuestions || [], submitButtonDisabled: giveCheckoutFeedbackStatus === CommandStatus.LOADING, onSubmit: handleOnSubmit })))));
84
85
  };
@@ -6,8 +6,5 @@ declare const style: {
6
6
  container: {
7
7
  paddingBottom: number;
8
8
  };
9
- header: {
10
- height: number;
11
- };
12
9
  };
13
10
  export { style };
@@ -1,6 +1,5 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- import { HEADER_HEIGHT } from "../../components/templates/header/Header.style";
4
3
  const { space8, space10 } = theme();
5
4
  const style = StyleSheet.create({
6
5
  bodyColumn: {
@@ -10,8 +9,5 @@ const style = StyleSheet.create({
10
9
  container: {
11
10
  paddingBottom: space10,
12
11
  },
13
- header: {
14
- height: HEADER_HEIGHT,
15
- },
16
12
  });
17
13
  export { style };
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { Layout } from "../../components/layouts/layout/Layout";
2
+ import { Layout } from "@lookiero/sty-psp-ui";
3
3
  interface ItemProps {
4
4
  readonly layout: Layout;
5
5
  }
@@ -1,4 +1,5 @@
1
1
  import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
2
+ import { View } from "react-native";
2
3
  import { generatePath, useMatch, useNavigate, useParams } from "react-router-native";
3
4
  import { Box, Spinner } from "@lookiero/aurora";
4
5
  import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
@@ -169,11 +170,10 @@ const Item = ({ layout: Layout }) => {
169
170
  return React.createElement(Spinner, { testID: "spinner" });
170
171
  }
171
172
  return (React.createElement(ReturnQuestionFeedbackProvider, { key: checkoutItem.id, feedback: checkoutItem.feedbacks || {} },
172
- React.createElement(Layout, { header: header, scrollEnabled: !itemWithoutCustomerDecission, style: {
173
- header: fiveItemsDiscount !== 0 ? style.headerWithDoubleHeight : style.header,
174
- scrollView: { height: itemWithoutCustomerDecission ? "100%" : "auto" },
173
+ React.createElement(Layout, { header: header, style: {
175
174
  safeAreaView: isDesktopScreen ? style.safeAreaView : null,
176
- } }, itemWithoutCustomerDecission ? (React.createElement(ItemWithoutCustomerDecission, { bookedProductsVariants: bookedProductsVariants, checkoutId: checkout.id, checkoutItem: checkoutItem, currentProductVariant: currentProductVariant, onReturn: redirectToReturnPage ? goToReturnPage : showReturnQuestions })) : (React.createElement(ItemWithCustomerDecission, { checkoutId: checkout.id, checkoutItem: checkoutItem, currentProductVariant: currentProductVariant, returnQuestions: returnQuestions, onEditFeedback: redirectToReturnPage ? goToReturnPage : showReturnQuestions }))),
175
+ } },
176
+ React.createElement(View, { style: [style.content, fiveItemsDiscount !== 0 && style.fiveItemsDiscountPadding] }, itemWithoutCustomerDecission ? (React.createElement(ItemWithoutCustomerDecission, { bookedProductsVariants: bookedProductsVariants, checkoutId: checkout.id, checkoutItem: checkoutItem, currentProductVariant: currentProductVariant, onReturn: redirectToReturnPage ? goToReturnPage : showReturnQuestions })) : (React.createElement(ItemWithCustomerDecission, { checkoutId: checkout.id, checkoutItem: checkoutItem, currentProductVariant: currentProductVariant, returnQuestions: returnQuestions, onEditFeedback: redirectToReturnPage ? goToReturnPage : showReturnQuestions })))),
177
177
  !redirectToReturnPage ? (React.createElement(ReturnQuestionsForm, { returnQuestions: returnQuestions, visible: returnQuestionsVisible, onClose: hideReturnQuestions, onSubmit: returnItem })) : null));
178
178
  };
179
179
  export { Item };
@@ -1,9 +1,9 @@
1
1
  declare const style: {
2
- header: {
3
- height: number;
2
+ content: {
3
+ flex: number;
4
4
  };
5
- headerWithDoubleHeight: {
6
- height: number;
5
+ fiveItemsDiscountPadding: {
6
+ paddingTop: number;
7
7
  };
8
8
  headerWrapper: {
9
9
  display: "flex";
@@ -1,13 +1,12 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- import { HEADER_HEIGHT } from "../../components/templates/header/Header.style";
4
- const { colorBgPrimaryLight } = theme();
3
+ const { colorBgPrimaryLight, space12 } = theme();
5
4
  const style = StyleSheet.create({
6
- header: {
7
- height: HEADER_HEIGHT,
5
+ content: {
6
+ flex: 1,
8
7
  },
9
- headerWithDoubleHeight: {
10
- height: HEADER_HEIGHT * 2,
8
+ fiveItemsDiscountPadding: {
9
+ paddingTop: space12,
11
10
  },
12
11
  headerWrapper: {
13
12
  display: "flex",
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useState } from "react";
2
- import { Platform, ScrollView } from "react-native";
2
+ import { Platform } from "react-native";
3
3
  import { Spinner } from "@lookiero/aurora";
4
4
  import { CommandStatus } from "@lookiero/messaging-react";
5
5
  import { useLogger } from "@lookiero/sty-psp-logging";
@@ -63,9 +63,8 @@ const ItemWithoutCustomerDecission = ({ checkoutId, checkoutItem, bookedProducts
63
63
  }
64
64
  return (React.createElement(React.Fragment, null,
65
65
  React.createElement(SizeWithoutStockModal, { visible: sizeWithoutStockModalVisible, onDismiss: handleOnHideSizeWithoutStockModal }),
66
- React.createElement(ScrollView, { showsVerticalScrollIndicator: false },
67
- React.createElement(Body, { style: { row: style.container } },
68
- React.createElement(ProductVariant, { checkoutId: checkoutId, checkoutItem: checkoutItem, country: country, currentProductVariant: currentProductVariant, segment: segment, style: { content: { paddingBottom: Platform.OS === "web" ? space6 : stickyHeight } } }))),
66
+ React.createElement(Body, { style: { row: style.container } },
67
+ React.createElement(ProductVariant, { checkoutId: checkoutId, checkoutItem: checkoutItem, country: country, currentProductVariant: currentProductVariant, segment: segment, style: { content: { paddingBottom: Platform.OS === "web" ? space6 : stickyHeight } } })),
69
68
  React.createElement(ItemActions, { country: country, currentProductVariant: currentProductVariant, productVariants: bookedProductsVariants?.productVariants, onKeep: handleOnKeep, onLayout: handleOnStickyLayout, onReplace: handleOnReplace, onReturn: onReturn, onShowSizeWithoutStockModal: handleOnShowSizeWithoutStockModal })));
70
69
  };
71
70
  export { ItemWithoutCustomerDecission };
@@ -1,5 +1,6 @@
1
1
  declare const style: {
2
2
  container: {
3
+ justifyContent: "flex-start";
3
4
  paddingBottom: number;
4
5
  paddingHorizontal: number;
5
6
  };
@@ -3,6 +3,7 @@ import { theme } from "@lookiero/sty-psp-ui";
3
3
  const { space10 } = theme();
4
4
  const style = StyleSheet.create({
5
5
  container: {
6
+ justifyContent: "flex-start",
6
7
  paddingBottom: space10,
7
8
  paddingHorizontal: 0,
8
9
  },
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { Layout as LocalLayout } from "../../components/layouts/layout/Layout";
2
+ import { Layout as LocalLayout } from "@lookiero/sty-psp-ui";
3
3
  interface ReturnProps {
4
4
  readonly layout: LocalLayout;
5
5
  }
@@ -111,7 +111,6 @@ const ReturnForm = ({ checkout, checkoutItem, country, segment, layout: LocalLay
111
111
  return (React.createElement(ReturnQuestionItemProvider, { returnQuestionItems: returnQuestionItems },
112
112
  React.createElement(PortalHost, { name: "return-question-form-portal" }),
113
113
  React.createElement(LocalLayout, { header: header, scrollEnabled: false, style: {
114
- header: style.header,
115
114
  safeAreaView: style.safeAreaView,
116
115
  scrollView: style.scrollView,
117
116
  } },
@@ -9,9 +9,6 @@ declare const style: {
9
9
  desktopLayoutSpacing: {
10
10
  paddingVertical: number;
11
11
  };
12
- header: {
13
- height: number;
14
- };
15
12
  headerWrapper: {
16
13
  display: "flex";
17
14
  flexDirection: "column";
@@ -1,7 +1,6 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- import { HEADER_HEIGHT } from "../../components/templates/header/Header.style";
4
- const { borderRadius5, colorBgPrimaryLight, colorBgBase, colorTextMedium, space2, space4, space6, space8 } = theme();
3
+ const { borderRadius5, colorBgPrimaryLight, colorBgBase, colorTextMedium, space4, space6, space8 } = theme();
5
4
  const style = StyleSheet.create({
6
5
  description: {
7
6
  color: colorTextMedium,
@@ -13,9 +12,6 @@ const style = StyleSheet.create({
13
12
  desktopLayoutSpacing: {
14
13
  paddingVertical: space8,
15
14
  },
16
- header: {
17
- height: HEADER_HEIGHT - space2,
18
- },
19
15
  headerWrapper: {
20
16
  display: "flex",
21
17
  flexDirection: "column",
@@ -1,12 +1,12 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorBgSurface, borderRadius3, borderRadiusFull, borderWidth2, colorBorderInput, space05, space1, space2, space4, } = theme();
3
+ const { colorBgSurface, borderRadius3, borderRadiusFull, borderWidth2, colorBorderInput, colorBgPrimaryLight, space05, space1, space2, space4, } = theme();
4
4
  const IMAGE_WIDTH = 104;
5
5
  const IMAGE_HEIGHT = 132;
6
6
  const style = StyleSheet.create({
7
7
  container: {
8
8
  alignItems: "flex-end",
9
- borderBottomColor: colorBorderInput,
9
+ borderBottomColor: colorBgPrimaryLight,
10
10
  borderBottomWidth: 1,
11
11
  flexDirection: "row",
12
12
  justifyContent: "space-between",