@lookiero/checkout 1.1.6 → 1.2.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 (103) hide show
  1. package/dist/domain/checkoutBooking/event/createNotificationWhenCheckoutBookingExpired.d.ts +6 -0
  2. package/dist/domain/checkoutBooking/event/createNotificationWhenCheckoutBookingExpired.js +13 -0
  3. package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +10 -0
  4. package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +11 -0
  5. package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +6 -0
  6. package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +7 -0
  7. package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +6 -0
  8. package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +9 -0
  9. package/dist/infrastructure/ui/components/atoms/price/Price.js +1 -1
  10. package/dist/infrastructure/ui/components/layouts/banner/Banner.js +2 -2
  11. package/dist/infrastructure/ui/components/layouts/banner/Banner.style.d.ts +0 -3
  12. package/dist/infrastructure/ui/components/layouts/banner/Banner.style.js +0 -3
  13. package/dist/infrastructure/ui/components/layouts/tabs/Tabs.js +2 -2
  14. package/dist/infrastructure/ui/components/layouts/tabs/Tabs.style.d.ts +0 -6
  15. package/dist/infrastructure/ui/components/layouts/tabs/Tabs.style.js +1 -7
  16. package/dist/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +2 -9
  17. package/dist/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +1 -1
  18. package/dist/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +1 -1
  19. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +1 -1
  20. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +1 -1
  21. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +1 -1
  22. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +1 -1
  23. package/dist/infrastructure/ui/hooks/usePaymentInstrumentUpdateEvents.d.ts +2 -0
  24. package/dist/infrastructure/ui/hooks/usePaymentInstrumentUpdateEvents.js +28 -0
  25. package/dist/infrastructure/ui/hooks/useToast.js +9 -4
  26. package/dist/infrastructure/ui/theme/theme.d.ts +1 -1
  27. package/dist/infrastructure/ui/theme/theme.js +1 -3
  28. package/dist/infrastructure/ui/views/checkout/Checkout.js +1 -1
  29. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.d.ts +7 -0
  30. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.js +25 -0
  31. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.d.ts +16 -0
  32. package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.js +19 -0
  33. package/dist/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +2 -5
  34. package/dist/infrastructure/ui/views/intro/Intro.d.ts +6 -0
  35. package/dist/infrastructure/ui/views/intro/Intro.js +52 -0
  36. package/dist/infrastructure/ui/views/intro/Intro.style.d.ts +52 -0
  37. package/dist/infrastructure/ui/views/intro/Intro.style.js +55 -0
  38. package/dist/infrastructure/ui/views/item/Item.style.d.ts +15 -0
  39. package/dist/infrastructure/ui/views/item/Item.style.js +18 -0
  40. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +1 -1
  41. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +5 -19
  42. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -3
  43. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -3
  44. package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.js +1 -2
  45. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +26 -0
  46. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +44 -0
  47. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.d.ts +45 -0
  48. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.js +53 -0
  49. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +5 -5
  50. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -7
  51. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +1 -8
  52. package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +1 -1
  53. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +1 -2
  54. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +7 -0
  55. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +25 -0
  56. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +16 -0
  57. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +19 -0
  58. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +4 -11
  59. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +0 -3
  60. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +0 -3
  61. package/dist/infrastructure/ui/views/navigation/Navigation.js +1 -1
  62. package/dist/infrastructure/ui/views/navigation/components/header/Header.js +4 -4
  63. package/dist/infrastructure/ui/views/navigation/components/header/Header.style.d.ts +0 -3
  64. package/dist/infrastructure/ui/views/navigation/components/header/Header.style.js +0 -3
  65. package/dist/infrastructure/ui/views/notFound/NotFound.js +2 -3
  66. package/dist/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +4 -4
  67. package/dist/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.d.ts +0 -9
  68. package/dist/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +0 -9
  69. package/dist/infrastructure/ui/views/summary/Summary.js +2 -2
  70. package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +1 -1
  71. package/dist/infrastructure/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +2 -2
  72. package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.js +3 -4
  73. package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +0 -3
  74. package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +0 -3
  75. package/dist/shared/notifications/domain/notification/command/createNotification.d.ts +17 -0
  76. package/dist/shared/notifications/domain/notification/command/createNotification.js +7 -0
  77. package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.d.ts +21 -0
  78. package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.js +22 -0
  79. package/dist/shared/notifications/infrastructure/ui/components/NotificationItem.d.ts +12 -0
  80. package/dist/shared/notifications/infrastructure/ui/components/NotificationItem.js +24 -0
  81. package/dist/shared/notifications/infrastructure/ui/components/Notifications.d.ts +9 -0
  82. package/dist/shared/notifications/infrastructure/ui/components/Notifications.js +20 -0
  83. package/dist/shared/notifications/infrastructure/ui/components/Notifications.style.d.ts +36 -0
  84. package/dist/shared/notifications/infrastructure/ui/components/Notifications.style.js +31 -0
  85. package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.js +4 -11
  86. package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.style.d.ts +0 -3
  87. package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.style.js +0 -3
  88. package/dist/shared/tracking/infrastructure/usePageView.d.ts +13 -0
  89. package/dist/shared/tracking/infrastructure/usePageView.js +27 -0
  90. package/dist/shared/ui/components/atoms/error/Error.js +2 -3
  91. package/dist/shared/ui/components/atoms/field/Field.js +1 -1
  92. package/dist/shared/ui/components/atoms/spinner/Spinner.js +1 -1
  93. package/dist/shared/ui/components/layouts/modal/Modal.js +1 -1
  94. package/dist/shared/ui/components/layouts/sticky/Sticky.style.d.ts +3 -3
  95. package/dist/shared/ui/components/layouts/sticky/Sticky.style.js +4 -7
  96. package/dist/shared/ui/components/molecules/selectField/SelectField.js +2 -2
  97. package/dist/shared/ui/components/molecules/selectField/SelectField.style.d.ts +0 -3
  98. package/dist/shared/ui/components/molecules/selectField/SelectField.style.js +1 -4
  99. package/dist/shared/ui/components/molecules/toast/Toast.js +3 -3
  100. package/dist/shared/ui/components/molecules/toast/Toast.style.d.ts +4 -4
  101. package/dist/shared/ui/components/molecules/toast/Toast.style.js +1 -4
  102. package/dist/shared/ui/hooks/useScreenSize.js +1 -1
  103. package/package.json +5 -5
@@ -1,6 +1,4 @@
1
- import { Button } from "@lookiero/aurora-next/build/components/atoms/Button/Button";
2
- import { BUTTON_VARIANT } from "@lookiero/aurora-next/build/components/atoms/Button/Button.definition";
3
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
1
+ import { ALIGN, Button, BUTTON_VARIANT, Text } from "@lookiero/aurora";
4
2
  import { useI18nMessage } from "@lookiero/i18n-react";
5
3
  import React from "react";
6
4
  import { View } from "react-native";
@@ -14,21 +12,9 @@ const GetOutOfCheckoutModal = ({ visible, onDismiss, onConfirm }) => {
14
12
  const confirmButtonText = useI18nMessage({ id: I18nMessages.GET_OUT_OF_CHECKOUT_MODAL_CONFIRM_BUTTON });
15
13
  return (React.createElement(Modal, { visible: visible, onClose: onDismiss },
16
14
  React.createElement(View, { style: style.modal },
17
- React.createElement(Text, { level: 1, style: style.modalTitle, body: true }, titleText),
18
- React.createElement(Text, { level: 3, style: style.modalDescription, body: true }, descriptionText),
19
- React.createElement(Button
20
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
21
- // @ts-ignore
22
- , {
23
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24
- // @ts-ignore
25
- style: style.button, onPress: onDismiss }, dismissButtonText),
26
- React.createElement(Button
27
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
28
- // @ts-ignore
29
- , {
30
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
31
- // @ts-ignore
32
- style: [style.button, style.confirmButton], variant: BUTTON_VARIANT.SECONDARY, onPress: onConfirm }, confirmButtonText))));
15
+ React.createElement(Text, { align: ALIGN.CENTER, level: 1 }, titleText),
16
+ React.createElement(Text, { level: 3, style: style.modalDescription }, descriptionText),
17
+ React.createElement(Button, { style: style.button, onPress: onDismiss }, dismissButtonText),
18
+ React.createElement(Button, { style: [style.button, style.confirmButton], variant: BUTTON_VARIANT.SECONDARY, onPress: onConfirm }, confirmButtonText))));
33
19
  };
34
20
  export { GetOutOfCheckoutModal };
@@ -12,8 +12,5 @@ declare const style: {
12
12
  marginVertical: number;
13
13
  textAlign: "center";
14
14
  };
15
- modalTitle: {
16
- textAlign: "center";
17
- };
18
15
  };
19
16
  export { style };
@@ -15,8 +15,5 @@ const style = StyleSheet.create({
15
15
  marginVertical: spaceXL,
16
16
  textAlign: "center",
17
17
  },
18
- modalTitle: {
19
- textAlign: "center",
20
- },
21
18
  });
22
19
  export { style };
@@ -1,5 +1,4 @@
1
- import { Button } from "@lookiero/aurora-next/build/components/atoms/Button/Button";
2
- import { BUTTON_VARIANT } from "@lookiero/aurora-next/build/components/atoms/Button/Button.definition";
1
+ import { Button, BUTTON_VARIANT } from "@lookiero/aurora";
3
2
  import { useI18nMessage } from "@lookiero/i18n-react";
4
3
  import React, { useMemo } from "react";
5
4
  import { View } from "react-native";
@@ -0,0 +1,26 @@
1
+ import { FC } from "react";
2
+ import { ImageStyle, StyleProp } from "react-native";
3
+ import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
4
+ import { ColorProjection, MediaProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
5
+ import { Country } from "../../../../../../projection/shared/country";
6
+ import { PriceProjection } from "../../../../../../projection/shared/price";
7
+ import { SizeProjection } from "../../../../../../projection/shared/size";
8
+ interface ProductVariantStyle {
9
+ readonly image: StyleProp<ImageStyle>;
10
+ }
11
+ interface ProductVariantProps {
12
+ readonly media: MediaProjection[];
13
+ readonly brand: string;
14
+ readonly name: string;
15
+ readonly price: PriceProjection;
16
+ readonly size: SizeProjection;
17
+ readonly color: ColorProjection;
18
+ readonly status?: CheckoutItemStatus;
19
+ readonly discarded?: boolean;
20
+ readonly country: Country;
21
+ readonly style?: Partial<ProductVariantStyle>;
22
+ readonly onPress?: () => void;
23
+ }
24
+ declare const ProductVariant: FC<ProductVariantProps>;
25
+ export type { ProductVariantStyle };
26
+ export { ProductVariant };
@@ -0,0 +1,44 @@
1
+ import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
2
+ import { useI18nMessage } from "@lookiero/i18n-react";
3
+ import React from "react";
4
+ import { Image, Pressable, View } from "react-native";
5
+ import Svg, { Line } from "react-native-svg";
6
+ import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
7
+ import { size } from "../../../../../../projection/shared/size";
8
+ import { Icon } from "../../../../../../shared/ui/components/atoms/icon/Icon";
9
+ import { Price } from "../../../../components/atoms/price/Price";
10
+ import { useMediaImage } from "../../../../hooks/useMediaImage";
11
+ import { COLOR_I18N_PREFIX, I18nMessages } from "../../../../i18n/i18n";
12
+ import { theme } from "../../../../theme/theme";
13
+ import { IMAGE_WIDTH, style } from "./ProductVariant.style";
14
+ const { colorContent } = theme();
15
+ const ProductVariant = ({ media, brand, name, price, size: sizeProjection, color, status, discarded, country, style: customStyle, onPress, }) => {
16
+ const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
17
+ const colorLabel = useI18nMessage({ id: color.label, prefix: COLOR_I18N_PREFIX });
18
+ const sizeChangeText = useI18nMessage({ id: I18nMessages.PRODUCT_VARIANT_SIZE_CHANGE });
19
+ const cdnImageUrl = useMediaImage();
20
+ return (React.createElement(Pressable, { pointerEvents: onPress ? "auto" : "none", style: style.container, testID: "product-variant", onPress: onPress },
21
+ React.createElement(View, { style: style.row },
22
+ React.createElement(View, null,
23
+ React.createElement(Image, { resizeMode: "contain", style: [style.media, customStyle?.image], testID: "product-variant-media", source: {
24
+ uri: cdnImageUrl({
25
+ url: media[0]?.url,
26
+ width: IMAGE_WIDTH,
27
+ }),
28
+ } }),
29
+ discarded && (React.createElement(Svg, { preserveAspectRatio: "none", stroke: colorContent, style: style.discarded, testID: "discarded", viewBox: "0 0 100 100" },
30
+ React.createElement(Line, { vectorEffect: "non-scaling-stroke", x1: "100", x2: "0", y1: "0", y2: "100" })))),
31
+ React.createElement(View, { style: style.descriptionContainer },
32
+ React.createElement(View, null,
33
+ React.createElement(Text, { level: 2, style: style.brand, detail: true }, brand),
34
+ React.createElement(Text, { level: 2, detail: true }, name),
35
+ React.createElement(Text, { level: 2, style: style.priceAndColor, detail: true },
36
+ sizeProjection.unique ? uniqueText : size({ size: sizeProjection, country }),
37
+ " / ",
38
+ colorLabel),
39
+ status === CheckoutItemStatus.REPLACED && (React.createElement(View, { style: style.sizeChange },
40
+ React.createElement(Text, { level: 3, style: style.sizeChangeText, detail: true }, sizeChangeText)))),
41
+ React.createElement(Price, { price: price, variant: "detail" }))),
42
+ onPress && React.createElement(Icon, { name: "arrow-right" })));
43
+ };
44
+ export { ProductVariant };
@@ -0,0 +1,45 @@
1
+ declare const IMAGE_WIDTH = 96;
2
+ declare const style: {
3
+ brand: {
4
+ color: string;
5
+ };
6
+ container: {
7
+ flexDirection: "row";
8
+ justifyContent: "space-between";
9
+ };
10
+ descriptionContainer: {
11
+ justifyContent: "space-between";
12
+ marginLeft: number;
13
+ };
14
+ discarded: {
15
+ height: string;
16
+ left: number;
17
+ position: "absolute";
18
+ top: number;
19
+ width: string;
20
+ zIndex: number;
21
+ };
22
+ media: {
23
+ borderColor: string;
24
+ borderWidth: number;
25
+ height: number;
26
+ width: number;
27
+ };
28
+ priceAndColor: {
29
+ color: string;
30
+ };
31
+ row: {
32
+ flexDirection: "row";
33
+ };
34
+ sizeChange: {
35
+ width?: string | undefined;
36
+ backgroundColor: string;
37
+ marginTop: number;
38
+ paddingHorizontal: number;
39
+ paddingVertical: number;
40
+ };
41
+ sizeChangeText: {
42
+ textTransform: "uppercase";
43
+ };
44
+ };
45
+ export { style, IMAGE_WIDTH };
@@ -0,0 +1,53 @@
1
+ import { Platform, StyleSheet } from "react-native";
2
+ import { theme } from "../../../../theme/theme";
3
+ const { borderSize, colorGrayscaleL, colorInfo, spaceXS, spaceS, spaceM } = theme();
4
+ const IMAGE_WIDTH = 96;
5
+ const IMAGE_HEIGHT = 120;
6
+ const style = StyleSheet.create({
7
+ brand: {
8
+ color: colorGrayscaleL,
9
+ },
10
+ container: {
11
+ flexDirection: "row",
12
+ justifyContent: "space-between",
13
+ },
14
+ descriptionContainer: {
15
+ justifyContent: "space-between",
16
+ marginLeft: spaceS,
17
+ },
18
+ discarded: {
19
+ height: "100%",
20
+ left: 0,
21
+ position: "absolute",
22
+ top: 0,
23
+ width: "100%",
24
+ zIndex: 10,
25
+ },
26
+ media: {
27
+ borderColor: colorGrayscaleL,
28
+ borderWidth: borderSize,
29
+ height: IMAGE_HEIGHT,
30
+ width: IMAGE_WIDTH,
31
+ },
32
+ priceAndColor: {
33
+ color: colorGrayscaleL,
34
+ },
35
+ row: {
36
+ flexDirection: "row",
37
+ },
38
+ sizeChange: {
39
+ backgroundColor: colorInfo,
40
+ marginTop: spaceM,
41
+ paddingHorizontal: spaceS,
42
+ paddingVertical: spaceXS,
43
+ ...Platform.select({
44
+ web: {
45
+ width: "fit-content",
46
+ },
47
+ }),
48
+ },
49
+ sizeChangeText: {
50
+ textTransform: "uppercase",
51
+ },
52
+ });
53
+ export { style, IMAGE_WIDTH };
@@ -1,4 +1,4 @@
1
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
1
+ import { COLOR, Text } from "@lookiero/aurora";
2
2
  import { useI18nMessage } from "@lookiero/i18n-react";
3
3
  import React from "react";
4
4
  import { View } from "react-native";
@@ -12,17 +12,17 @@ const ProductVariantDescription = ({ brand, name, price, size: sizeProjection, c
12
12
  const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
13
13
  const colorLabel = useI18nMessage({ id: color.name, prefix: COLOR_I18N_PREFIX });
14
14
  return (React.createElement(View, { style: style.container },
15
- React.createElement(Text, { level: 3, style: style.brand, detail: true }, brand),
16
- React.createElement(Text, { level: 2, style: style.name, body: true }, name),
15
+ React.createElement(Text, { color: COLOR.GRAYSCALE_L, level: 3, detail: true, upperCase: true }, brand),
16
+ React.createElement(Text, { level: 2, style: style.name }, name),
17
17
  React.createElement(Price, { price: price }),
18
18
  React.createElement(Text, { level: 2, style: style.size, detail: true },
19
19
  sizeText,
20
20
  ":",
21
21
  " ",
22
- React.createElement(Text, { style: style.text }, sizeProjection.unique ? uniqueText : size({ size: sizeProjection, country }))),
22
+ React.createElement(Text, { color: COLOR.GRAYSCALE_L }, sizeProjection.unique ? uniqueText : size({ size: sizeProjection, country }))),
23
23
  React.createElement(Text, { level: 2, detail: true },
24
24
  colorText,
25
25
  ": ",
26
- React.createElement(Text, { style: style.text }, colorLabel))));
26
+ React.createElement(Text, { color: COLOR.GRAYSCALE_L }, colorLabel))));
27
27
  };
28
28
  export { ProductVariantDescription };
@@ -1,8 +1,4 @@
1
1
  declare const style: {
2
- brand: {
3
- color: string;
4
- textTransform: "uppercase";
5
- };
6
2
  container: {
7
3
  width: string;
8
4
  };
@@ -12,8 +8,5 @@ declare const style: {
12
8
  size: {
13
9
  marginVertical: number;
14
10
  };
15
- text: {
16
- color: string;
17
- };
18
11
  };
19
12
  export { style };
@@ -1,11 +1,7 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../theme/theme";
3
- const { colorGrayscaleL, spaceS, spaceL } = theme();
3
+ const { spaceS, spaceL } = theme();
4
4
  const style = StyleSheet.create({
5
- brand: {
6
- color: colorGrayscaleL,
7
- textTransform: "uppercase",
8
- },
9
5
  container: {
10
6
  width: "100%",
11
7
  },
@@ -15,8 +11,5 @@ const style = StyleSheet.create({
15
11
  size: {
16
12
  marginVertical: spaceL,
17
13
  },
18
- text: {
19
- color: colorGrayscaleL,
20
- },
21
14
  });
22
15
  export { style };
@@ -1,4 +1,4 @@
1
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
1
+ import { Text } from "@lookiero/aurora";
2
2
  import { useI18nMessage } from "@lookiero/i18n-react";
3
3
  import React from "react";
4
4
  import { View } from "react-native";
@@ -1,6 +1,5 @@
1
1
  import { PortalHost } from "@gorhom/portal";
2
- import { Button } from "@lookiero/aurora-next/build/components/atoms/Button/Button";
3
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
2
+ import { Button, Text } from "@lookiero/aurora";
4
3
  import { useI18nMessage } from "@lookiero/i18n-react";
5
4
  import React, { useCallback } from "react";
6
5
  import { View } from "react-native";
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface SizeChangeModalProps {
3
+ readonly visible: boolean;
4
+ readonly onDismiss: () => void;
5
+ }
6
+ declare const SizeChangeModal: FC<SizeChangeModalProps>;
7
+ export { SizeChangeModal };
@@ -0,0 +1,25 @@
1
+ import { Button } from "@lookiero/aurora-next/build/components/atoms/Button/Button";
2
+ import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
3
+ import { useI18nMessage } from "@lookiero/i18n-react";
4
+ import React from "react";
5
+ import { View } from "react-native";
6
+ import { Modal } from "../../../../../../shared/ui/components/layouts/modal/Modal";
7
+ import { I18nMessages } from "../../../../i18n/i18n";
8
+ import { style } from "./SizeChangeModal.style";
9
+ const SizeChangeModal = ({ visible, onDismiss }) => {
10
+ const titleText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_TITLE });
11
+ const descriptionText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_DESCRIPTION });
12
+ const buttonText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_BUTTON });
13
+ return (React.createElement(Modal, { visible: visible, onClose: onDismiss },
14
+ React.createElement(View, { style: style.modal },
15
+ React.createElement(Text, { level: 1, style: style.modalTitle, body: true }, titleText),
16
+ React.createElement(Text, { level: 3, style: style.modalDescription, body: true }, descriptionText),
17
+ React.createElement(Button
18
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19
+ // @ts-ignore
20
+ , {
21
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
22
+ // @ts-ignore
23
+ style: style.button, onPress: onDismiss }, buttonText))));
24
+ };
25
+ export { SizeChangeModal };
@@ -0,0 +1,16 @@
1
+ declare const style: {
2
+ button: {
3
+ flex: number;
4
+ };
5
+ modal: {
6
+ padding: number;
7
+ };
8
+ modalDescription: {
9
+ marginVertical: number;
10
+ textAlign: "center";
11
+ };
12
+ modalTitle: {
13
+ textAlign: "center";
14
+ };
15
+ };
16
+ export { style };
@@ -0,0 +1,19 @@
1
+ import { StyleSheet } from "react-native";
2
+ import { theme } from "../../../../theme/theme";
3
+ const { spaceXL } = theme();
4
+ const style = StyleSheet.create({
5
+ button: {
6
+ flex: 0,
7
+ },
8
+ modal: {
9
+ padding: spaceXL,
10
+ },
11
+ modalDescription: {
12
+ marginVertical: spaceXL,
13
+ textAlign: "center",
14
+ },
15
+ modalTitle: {
16
+ textAlign: "center",
17
+ },
18
+ });
19
+ export { style };
@@ -1,5 +1,4 @@
1
- import { Button } from "@lookiero/aurora-next/build/components/atoms/Button/Button";
2
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
1
+ import { ALIGN, Button, Text } from "@lookiero/aurora";
3
2
  import { useI18nMessage } from "@lookiero/i18n-react";
4
3
  import React from "react";
5
4
  import { View } from "react-native";
@@ -12,14 +11,8 @@ const SizeWithoutStockModal = ({ visible, onDismiss }) => {
12
11
  const buttonText = useI18nMessage({ id: I18nMessages.SIZE_WITHOUT_STOCK_MODAL_BUTTON });
13
12
  return (React.createElement(Modal, { visible: visible, onClose: onDismiss },
14
13
  React.createElement(View, { style: style.modal },
15
- React.createElement(Text, { level: 1, style: style.modalTitle, body: true }, titleText),
16
- React.createElement(Text, { level: 3, style: style.modalDescription, body: true }, descriptionText),
17
- React.createElement(Button
18
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19
- // @ts-ignore
20
- , {
21
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
22
- // @ts-ignore
23
- style: style.button, onPress: onDismiss }, buttonText))));
14
+ React.createElement(Text, { align: ALIGN.CENTER, level: 1 }, titleText),
15
+ React.createElement(Text, { level: 3, style: style.modalDescription }, descriptionText),
16
+ React.createElement(Button, { style: style.button, onPress: onDismiss }, buttonText))));
24
17
  };
25
18
  export { SizeWithoutStockModal };
@@ -9,8 +9,5 @@ declare const style: {
9
9
  marginVertical: number;
10
10
  textAlign: "center";
11
11
  };
12
- modalTitle: {
13
- textAlign: "center";
14
- };
15
12
  };
16
13
  export { style };
@@ -12,8 +12,5 @@ const style = StyleSheet.create({
12
12
  marginVertical: spaceXL,
13
13
  textAlign: "center",
14
14
  },
15
- modalTitle: {
16
- textAlign: "center",
17
- },
18
15
  });
19
16
  export { style };
@@ -1,4 +1,4 @@
1
- import { usePortal } from "@lookiero/aurora-next/build/contexts/Portal/Portal";
1
+ import { usePortal } from "@lookiero/aurora";
2
2
  import React, { useCallback, useState } from "react";
3
3
  import { Platform } from "react-native";
4
4
  import { useTrackPressBack } from "../../../../shared/tracking/infrastructure/useTrackPressBack";
@@ -1,4 +1,4 @@
1
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
1
+ import { Text } from "@lookiero/aurora";
2
2
  import { useI18nMessage } from "@lookiero/i18n-react";
3
3
  import React, { useCallback } from "react";
4
4
  import { View } from "react-native";
@@ -38,7 +38,7 @@ const ItemHeader = ({ items, item, onNext, onPrevious }) => {
38
38
  }, [basePath, item.id, itemIndex, items, navigate, onNext]);
39
39
  return (React.createElement(View, { style: style.header, testID: "item-header" },
40
40
  !isFirstItem ? (React.createElement(ButtonIcon, { name: "arrow-left", testID: "arrow-left-button-icon", onPress: navigateToPreviousItem })) : (React.createElement(ButtonIconPlaceholder, null)),
41
- React.createElement(Text, { level: 3, style: style.title, detail: true }, title),
41
+ React.createElement(Text, { level: 3, detail: true, upperCase: true }, title),
42
42
  !isLastItem ? (React.createElement(ButtonIcon, { name: "arrow-right", testID: "arrow-right-button-icon", onPress: navigateToNextItem })) : (React.createElement(ButtonIconPlaceholder, null))));
43
43
  };
44
44
  const ItemDetailHeader = ({ onBack }) => {
@@ -50,7 +50,7 @@ const ItemDetailHeader = ({ onBack }) => {
50
50
  }, [navigate, onBack]);
51
51
  return (React.createElement(View, { style: style.header, testID: "item-detail-header" },
52
52
  React.createElement(ButtonIconPlaceholder, null),
53
- React.createElement(Text, { level: 3, style: style.title, detail: true }, title),
53
+ React.createElement(Text, { level: 3, detail: true, upperCase: true }, title),
54
54
  React.createElement(ButtonIcon, { name: "close", testID: "close-button-icon", onPress: handleOnBack })));
55
55
  };
56
56
  const CheckoutHeader = ({ onBack }) => {
@@ -63,7 +63,7 @@ const CheckoutHeader = ({ onBack }) => {
63
63
  }, [basePath, navigate, onBack]);
64
64
  return (React.createElement(View, { style: style.header, testID: "checkout-header" },
65
65
  React.createElement(ButtonIcon, { name: "arrow-left", testID: "arrow-left-button-icon", onPress: handleOnBack }),
66
- React.createElement(Text, { level: 3, style: style.title, detail: true }, title),
66
+ React.createElement(Text, { level: 3, detail: true, upperCase: true }, title),
67
67
  React.createElement(ButtonIconPlaceholder, null)));
68
68
  };
69
69
  const Header = ({ customerId, menu: Menu, menuVisible, onOpenMenu, onCloseMenu, onBack, onNext, onPrevious, style: customStyle, }) => {
@@ -27,8 +27,5 @@ declare const style: {
27
27
  position: "absolute";
28
28
  top: number;
29
29
  };
30
- title: {
31
- textTransform: "uppercase";
32
- };
33
30
  };
34
31
  export { style, HEADER_HEIGHT };
@@ -30,8 +30,5 @@ const style = StyleSheet.create({
30
30
  position: "absolute",
31
31
  top: 0,
32
32
  },
33
- title: {
34
- textTransform: "uppercase",
35
- },
36
33
  });
37
34
  export { style, HEADER_HEIGHT };
@@ -1,5 +1,4 @@
1
- import { Button } from "@lookiero/aurora-next/build/components/atoms/Button/Button";
2
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
1
+ import { Button, Text } from "@lookiero/aurora";
3
2
  import { useI18nMessage } from "@lookiero/i18n-react";
4
3
  import { QueryStatus } from "@lookiero/messaging-react";
5
4
  import React, { useCallback } from "react";
@@ -37,7 +36,7 @@ const NotFound = ({ customerId, country }) => {
37
36
  React.createElement(Body, { style: { column: style.bodyColumn } },
38
37
  React.createElement(AspectRatioView, { aspectRatio: 1.25 },
39
38
  React.createElement(Image, { resizeMode: "contain", source: require("../../../../public/images/not-found.png"), style: style.image, testID: "not-found-image" })),
40
- React.createElement(Text, { level: 1, style: style.description, body: true }, descriptionText),
39
+ React.createElement(Text, { level: 1, style: style.description }, descriptionText),
41
40
  React.createElement(Button, { onPress: handleOnPress }, buttonText))));
42
41
  };
43
42
  export { NotFound };
@@ -1,4 +1,4 @@
1
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
1
+ import { COLOR, Text } from "@lookiero/aurora";
2
2
  import { useI18nMessage } from "@lookiero/i18n-react";
3
3
  import React from "react";
4
4
  import { Image, Pressable, View } from "react-native";
@@ -30,14 +30,14 @@ const ProductVariant = ({ media, brand, name, price, size: sizeProjection, color
30
30
  React.createElement(Line, { vectorEffect: "non-scaling-stroke", x1: "100", x2: "0", y1: "0", y2: "100" })))),
31
31
  React.createElement(View, { style: style.descriptionContainer },
32
32
  React.createElement(View, null,
33
- React.createElement(Text, { level: 2, style: style.brand, detail: true }, brand),
33
+ React.createElement(Text, { color: COLOR.GRAYSCALE_L, level: 2, detail: true }, brand),
34
34
  React.createElement(Text, { level: 2, detail: true }, name),
35
- React.createElement(Text, { level: 2, style: style.priceAndColor, detail: true },
35
+ React.createElement(Text, { color: COLOR.GRAYSCALE_L, level: 2, detail: true },
36
36
  sizeProjection.unique ? uniqueText : size({ size: sizeProjection, country }),
37
37
  " / ",
38
38
  colorLabel),
39
39
  status === CheckoutItemStatus.REPLACED && (React.createElement(View, { style: style.sizeChange },
40
- React.createElement(Text, { level: 3, style: style.sizeChangeText, detail: true }, sizeChangeText)))),
40
+ React.createElement(Text, { level: 3, detail: true, upperCase: true }, sizeChangeText)))),
41
41
  React.createElement(Price, { price: price, variant: "detail" }))),
42
42
  onPress && React.createElement(Icon, { name: "arrow-right" })));
43
43
  };
@@ -1,8 +1,5 @@
1
1
  declare const IMAGE_WIDTH = 96;
2
2
  declare const style: {
3
- brand: {
4
- color: string;
5
- };
6
3
  container: {
7
4
  flexDirection: "row";
8
5
  justifyContent: "space-between";
@@ -25,9 +22,6 @@ declare const style: {
25
22
  height: number;
26
23
  width: number;
27
24
  };
28
- priceAndColor: {
29
- color: string;
30
- };
31
25
  row: {
32
26
  flexDirection: "row";
33
27
  };
@@ -38,8 +32,5 @@ declare const style: {
38
32
  paddingHorizontal: number;
39
33
  paddingVertical: number;
40
34
  };
41
- sizeChangeText: {
42
- textTransform: "uppercase";
43
- };
44
35
  };
45
36
  export { style, IMAGE_WIDTH };
@@ -4,9 +4,6 @@ const { borderSize, colorGrayscaleL, colorInfo, spaceXS, spaceS, spaceM } = them
4
4
  const IMAGE_WIDTH = 96;
5
5
  const IMAGE_HEIGHT = 120;
6
6
  const style = StyleSheet.create({
7
- brand: {
8
- color: colorGrayscaleL,
9
- },
10
7
  container: {
11
8
  flexDirection: "row",
12
9
  justifyContent: "space-between",
@@ -29,9 +26,6 @@ const style = StyleSheet.create({
29
26
  height: IMAGE_HEIGHT,
30
27
  width: IMAGE_WIDTH,
31
28
  },
32
- priceAndColor: {
33
- color: colorGrayscaleL,
34
- },
35
29
  row: {
36
30
  flexDirection: "row",
37
31
  },
@@ -46,8 +40,5 @@ const style = StyleSheet.create({
46
40
  },
47
41
  }),
48
42
  },
49
- sizeChangeText: {
50
- textTransform: "uppercase",
51
- },
52
43
  });
53
44
  export { style, IMAGE_WIDTH };
@@ -1,4 +1,4 @@
1
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
1
+ 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";
@@ -90,7 +90,7 @@ const Summary = ({ customerId, country }) => {
90
90
  fiveItemsDiscount !== 0 && React.createElement(FiveItemsDiscountBanner, { fiveItemsDiscount: fiveItemsDiscount }),
91
91
  React.createElement(View, { style: style.content },
92
92
  React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
93
- React.createElement(Text, { level: 3, style: style.description, body: true }, descriptionText)),
93
+ React.createElement(Text, { level: 3, style: style.description }, descriptionText)),
94
94
  React.createElement(CheckoutItemsTabs, { checkoutItemsKept: checkoutItemsKept || [], checkoutItemsReturned: checkoutItemsReturned || [], country: country, onChanged: handleOnChangedTab, onPressItem: handleOnPressItem }))));
95
95
  };
96
96
  export { Summary };
@@ -1,4 +1,4 @@
1
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
1
+ import { Text } from "@lookiero/aurora";
2
2
  import { useI18nMessage } from "@lookiero/i18n-react";
3
3
  import React, { useCallback } from "react";
4
4
  import { View } from "react-native";
@@ -1,4 +1,4 @@
1
- import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
1
+ import { Text } from "@lookiero/aurora";
2
2
  import { useI18nMessage } from "@lookiero/i18n-react";
3
3
  import React from "react";
4
4
  import { View } from "react-native";
@@ -10,6 +10,6 @@ const FiveItemsDiscountBanner = ({ fiveItemsDiscount }) => {
10
10
  values: { discount: fiveItemsDiscount.toString() },
11
11
  });
12
12
  return (React.createElement(View, { style: style.container },
13
- React.createElement(Text, { level: 3, body: true }, bannerText)));
13
+ React.createElement(Text, { level: 3 }, bannerText)));
14
14
  };
15
15
  export { FiveItemsDiscountBanner };