@lookiero/checkout 0.2.23 → 0.2.25

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 (84) hide show
  1. package/dist/infrastructure/ui/Root.js +1 -1
  2. package/dist/infrastructure/ui/components/atoms/modal/Modal.style.d.ts +2 -2
  3. package/dist/infrastructure/ui/components/atoms/modal/Modal.style.js +2 -2
  4. package/dist/infrastructure/ui/components/atoms/price/Price.js +2 -2
  5. package/dist/infrastructure/ui/components/atoms/price/Price.style.d.ts +4 -4
  6. package/dist/infrastructure/ui/components/atoms/price/Price.style.js +4 -4
  7. package/dist/infrastructure/ui/components/layouts/body/Body.style.d.ts +3 -3
  8. package/dist/infrastructure/ui/components/layouts/body/Body.style.js +3 -3
  9. package/dist/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestion.js +2 -2
  10. package/dist/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestions.js +1 -1
  11. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +1 -1
  12. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +1 -1
  13. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +14 -10
  14. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +13 -19
  15. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +4 -10
  16. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +5 -14
  17. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +1 -1
  18. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +2 -2
  19. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +2 -2
  20. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +1 -1
  21. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
  22. package/dist/infrastructure/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.d.ts +10 -1
  23. package/dist/infrastructure/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.js +41 -14
  24. package/dist/infrastructure/ui/routing/CheckoutMiddleware.js +4 -4
  25. package/dist/infrastructure/ui/routing/Routing.js +2 -2
  26. package/dist/infrastructure/ui/shared/components/atoms/error/Error.js +1 -1
  27. package/dist/infrastructure/ui/shared/components/atoms/field/Field.js +3 -2
  28. package/dist/infrastructure/ui/shared/components/atoms/field/Field.style.d.ts +9 -2
  29. package/dist/infrastructure/ui/shared/components/atoms/field/Field.style.js +9 -2
  30. package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.style.d.ts +3 -3
  31. package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.style.js +3 -3
  32. package/dist/infrastructure/ui/shared/components/atoms/input/Input.js +2 -2
  33. package/dist/infrastructure/ui/shared/components/atoms/input/Input.style.d.ts +4 -4
  34. package/dist/infrastructure/ui/shared/components/atoms/input/Input.style.js +5 -5
  35. package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.js +1 -1
  36. package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.style.d.ts +1 -1
  37. package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.style.js +1 -1
  38. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.d.ts +1 -0
  39. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.js +12 -10
  40. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.style.d.ts +23 -26
  41. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.style.js +22 -25
  42. package/dist/infrastructure/ui/shared/components/layouts/row/Row.style.d.ts +2 -2
  43. package/dist/infrastructure/ui/shared/components/layouts/row/Row.style.js +2 -2
  44. package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.js +2 -2
  45. package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.style.d.ts +12 -12
  46. package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.style.js +12 -12
  47. package/dist/infrastructure/ui/shared/components/layouts/slider/Slider.js +2 -2
  48. package/dist/infrastructure/ui/shared/components/molecules/buttonIcon/ButtonIcon.d.ts +5 -3
  49. package/dist/infrastructure/ui/shared/components/molecules/buttonIcon/ButtonIcon.js +1 -1
  50. package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.js +3 -3
  51. package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.style.d.ts +4 -4
  52. package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.style.js +4 -4
  53. package/dist/infrastructure/ui/views/intro/Intro.js +6 -6
  54. package/dist/infrastructure/ui/views/intro/Intro.style.d.ts +20 -20
  55. package/dist/infrastructure/ui/views/intro/Intro.style.js +21 -21
  56. package/dist/infrastructure/ui/views/item/Item.js +1 -1
  57. package/dist/infrastructure/ui/views/item/Item.style.d.ts +5 -5
  58. package/dist/infrastructure/ui/views/item/Item.style.js +5 -5
  59. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +2 -2
  60. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +6 -6
  61. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +6 -6
  62. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +2 -2
  63. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +7 -7
  64. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +7 -7
  65. package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.js +1 -1
  66. package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.style.d.ts +6 -6
  67. package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.style.js +6 -6
  68. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +4 -4
  69. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +3 -3
  70. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +3 -3
  71. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +3 -3
  72. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +7 -7
  73. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +7 -7
  74. package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +5 -5
  75. package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +5 -5
  76. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +7 -14
  77. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +2 -2
  78. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +4 -4
  79. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +4 -4
  80. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +2 -2
  81. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +4 -4
  82. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +4 -4
  83. package/dist/infrastructure/ui/views/summary/Summary.js +1 -2
  84. package/package.json +2 -1
@@ -2,6 +2,11 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../theme/theme";
3
3
  const { borderSize, colorAccent, spaceXS, spaceS, spaceM, spaceL, spaceXL } = theme();
4
4
  const style = StyleSheet.create({
5
+ bullet: {
6
+ alignItems: "center",
7
+ flexDirection: "row",
8
+ marginVertical: spaceS,
9
+ },
5
10
  container: {
6
11
  flex: 1,
7
12
  justifyContent: "space-between",
@@ -9,12 +14,17 @@ const style = StyleSheet.create({
9
14
  content: {
10
15
  alignItems: "center",
11
16
  },
12
- title: {
13
- marginBottom: spaceM,
14
- textAlign: "center",
17
+ description: {
18
+ borderWidth: borderSize,
19
+ marginBottom: spaceXL,
20
+ padding: spaceM,
21
+ width: "100%",
15
22
  },
16
- subtitle: {
17
- textAlign: "center",
23
+ discount: {
24
+ alignItems: "flex-end",
25
+ flexDirection: "row",
26
+ justifyContent: "center",
27
+ marginBottom: spaceS,
18
28
  },
19
29
  discountContainer: {
20
30
  alignItems: "center",
@@ -24,28 +34,18 @@ const style = StyleSheet.create({
24
34
  textAlign: "center",
25
35
  width: "100%",
26
36
  },
27
- discount: {
28
- alignItems: "flex-end",
29
- flexDirection: "row",
30
- justifyContent: "center",
31
- marginBottom: spaceS,
32
- },
33
37
  percentage: {
34
38
  marginLeft: spaceXS,
35
39
  },
36
- description: {
37
- borderWidth: borderSize,
38
- marginBottom: spaceXL,
39
- padding: spaceM,
40
- width: "100%",
41
- },
42
- bullet: {
43
- alignItems: "center",
44
- flexDirection: "row",
45
- marginVertical: spaceS,
40
+ subtitle: {
41
+ textAlign: "center",
46
42
  },
47
43
  tickIcon: {
48
44
  marginRight: spaceS,
49
45
  },
46
+ title: {
47
+ marginBottom: spaceM,
48
+ textAlign: "center",
49
+ },
50
50
  });
51
51
  export { style };
@@ -33,7 +33,7 @@ const Item = ({ customerId }) => {
33
33
  React.createElement(Body, null,
34
34
  React.createElement(View, { style: style.sliderContainer },
35
35
  React.createElement(ProductVariantSlider, { producVariantMedia: media })),
36
- React.createElement(ProductVariantDescription, { brand: brand, name: name, price: price, size: size, color: color }),
36
+ React.createElement(ProductVariantDescription, { brand: brand, color: color, name: name, price: price, size: size }),
37
37
  Object.entries(feedback).length !== 0 && (React.createElement(View, { style: style.feedbackContainer },
38
38
  React.createElement(ReturnQuestionsFeedback, { feedback: feedback, returnQuestions: returnQuestions, onEditFeedback: handleOnEditFeedback }))),
39
39
  React.createElement(View, { style: { flexDirection: "row", justifyContent: "center" } },
@@ -1,12 +1,12 @@
1
1
  declare const style: {
2
- sliderContainer: {
3
- minHeight: number;
4
- marginBottom: number;
5
- };
6
2
  feedbackContainer: {
7
- marginVertical: number;
8
3
  borderTopColor: string;
9
4
  borderTopWidth: number;
5
+ marginVertical: number;
6
+ };
7
+ sliderContainer: {
8
+ marginBottom: number;
9
+ minHeight: number;
10
10
  };
11
11
  };
12
12
  export { style };
@@ -2,14 +2,14 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../theme/theme";
3
3
  const { borderSize, colorGrayscaleM, spaceXL } = theme();
4
4
  const style = StyleSheet.create({
5
- sliderContainer: {
6
- minHeight: 500,
7
- marginBottom: spaceXL,
8
- },
9
5
  feedbackContainer: {
10
- marginVertical: spaceXL,
11
6
  borderTopColor: colorGrayscaleM,
12
7
  borderTopWidth: borderSize,
8
+ marginVertical: spaceXL,
9
+ },
10
+ sliderContainer: {
11
+ marginBottom: spaceXL,
12
+ minHeight: 500,
13
13
  },
14
14
  });
15
15
  export { style };
@@ -14,8 +14,8 @@ const CustomerDecissionBanner = ({ checkoutItemStatus, onPress }) => {
14
14
  const decissionText = useI18nMessage({ id: i18nMessageForCheckoutItemStatus[checkoutItemStatus] });
15
15
  const bannerButtonText = useI18nMessage({ id: I18nMessages.ITEM_BANNER_BUTTON });
16
16
  return (React.createElement(View, { style: style.container },
17
- React.createElement(Text, { detail: true, level: 2, style: style.decissionText }, decissionText),
17
+ React.createElement(Text, { level: 2, style: style.decissionText, detail: true }, decissionText),
18
18
  React.createElement(Pressable, { onPress: onPress },
19
- React.createElement(Text, { detail: true, level: 2, style: style.buttonText }, bannerButtonText))));
19
+ React.createElement(Text, { level: 2, style: style.buttonText, detail: true }, bannerButtonText))));
20
20
  };
21
21
  export { CustomerDecissionBanner };
@@ -1,17 +1,17 @@
1
1
  declare const style: {
2
+ buttonText: {
3
+ textDecorationLine: "underline";
4
+ };
2
5
  container: {
3
6
  alignItems: "center";
4
7
  backgroundColor: string;
5
- paddingTop: number;
6
- paddingHorizontal: number;
7
8
  paddingBottom: number;
9
+ paddingHorizontal: number;
10
+ paddingTop: number;
8
11
  };
9
12
  decissionText: {
10
- textAlign: "center";
11
13
  marginBottom: number;
12
- };
13
- buttonText: {
14
- textDecorationLine: "underline";
14
+ textAlign: "center";
15
15
  };
16
16
  };
17
17
  export { style };
@@ -2,19 +2,19 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../theme/theme";
3
3
  const { colorInfo, spaceM, spaceL } = theme();
4
4
  const style = StyleSheet.create({
5
+ buttonText: {
6
+ textDecorationLine: "underline",
7
+ },
5
8
  container: {
6
9
  alignItems: "center",
7
10
  backgroundColor: colorInfo,
8
- paddingTop: spaceM,
9
- paddingHorizontal: spaceL,
10
11
  paddingBottom: spaceL,
12
+ paddingHorizontal: spaceL,
13
+ paddingTop: spaceM,
11
14
  },
12
15
  decissionText: {
13
- textAlign: "center",
14
16
  marginBottom: spaceM,
15
- },
16
- buttonText: {
17
- textDecorationLine: "underline",
17
+ textAlign: "center",
18
18
  },
19
19
  });
20
20
  export { style };
@@ -12,8 +12,8 @@ const GetOutOfCheckoutModal = ({ visible, onDismiss, onConfirm }) => {
12
12
  const dismissButtonText = useI18nMessage({ id: I18nMessages.GET_OUT_OF_CHECKOUT_MODAL_DISMISS_BUTTON });
13
13
  const confirmButtonText = useI18nMessage({ id: I18nMessages.GET_OUT_OF_CHECKOUT_MODAL_CONFIRM_BUTTON });
14
14
  return (React.createElement(Modal, { visible: visible },
15
- React.createElement(Text, { body: true, level: 1, style: style.modalTitle }, titleText),
16
- React.createElement(Text, { body: true, level: 3, style: style.modalDescription }, descriptionText),
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
17
  React.createElement(Button
18
18
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19
19
  // @ts-ignore
@@ -1,16 +1,16 @@
1
1
  declare const style: {
2
- modalTitle: {
3
- textAlign: "center";
4
- };
5
- modalDescription: {
6
- marginVertical: number;
7
- textAlign: "center";
8
- };
9
2
  button: {
10
3
  flex: number;
11
4
  };
12
5
  confirmButton: {
13
6
  marginTop: number;
14
7
  };
8
+ modalDescription: {
9
+ marginVertical: number;
10
+ textAlign: "center";
11
+ };
12
+ modalTitle: {
13
+ textAlign: "center";
14
+ };
15
15
  };
16
16
  export { style };
@@ -2,18 +2,18 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../theme/theme";
3
3
  const { spaceXL } = theme();
4
4
  const style = StyleSheet.create({
5
- modalTitle: {
6
- textAlign: "center",
7
- },
8
- modalDescription: {
9
- marginVertical: spaceXL,
10
- textAlign: "center",
11
- },
12
5
  button: {
13
6
  flex: 0,
14
7
  },
15
8
  confirmButton: {
16
9
  marginTop: spaceXL,
17
10
  },
11
+ modalDescription: {
12
+ marginVertical: spaceXL,
13
+ textAlign: "center",
14
+ },
15
+ modalTitle: {
16
+ textAlign: "center",
17
+ },
18
18
  });
19
19
  export { style };
@@ -16,7 +16,7 @@ const ProductVariantActions = ({ sizes, size, onKeep, onReplace, onReturn }) =>
16
16
  React.createElement(Button, { onPress: onKeep }, keepButtonText),
17
17
  React.createElement(View, { style: style.row },
18
18
  !size.unique && (React.createElement(View, { style: style.dropdownContainer },
19
- React.createElement(InputField, { label: sizeSelectorLabelText, value: size.id, name: "size-selector", icon: "arrow-down", onChange: onReplace, options: sizeSelectorOptions, disabled: disabledSizeSelector, testID: "size-selector" }))),
19
+ React.createElement(InputField, { disabled: disabledSizeSelector, icon: "arrow-down", label: sizeSelectorLabelText, name: "size-selector", options: sizeSelectorOptions, testID: "size-selector", value: size.id, onChange: onReplace }))),
20
20
  React.createElement(View, { style: style.returnButtonContainer },
21
21
  React.createElement(Button, { variant: BUTTON_VARIANT.SECONDARY, onPress: onReturn }, returnButtonText)))));
22
22
  };
@@ -2,18 +2,18 @@ declare const style: {
2
2
  container: {
3
3
  width: string;
4
4
  };
5
- row: {
6
- alignItems: "center";
7
- flexDirection: "row";
8
- marginTop: number;
9
- };
10
5
  dropdownContainer: {
11
6
  flex: number;
12
- zIndex: number;
13
7
  marginRight: number;
8
+ zIndex: number;
14
9
  };
15
10
  returnButtonContainer: {
16
11
  flex: number;
17
12
  };
13
+ row: {
14
+ alignItems: "center";
15
+ flexDirection: "row";
16
+ marginTop: number;
17
+ };
18
18
  };
19
19
  export { style };
@@ -5,18 +5,18 @@ const style = StyleSheet.create({
5
5
  container: {
6
6
  width: "100%",
7
7
  },
8
- row: {
9
- alignItems: "center",
10
- flexDirection: "row",
11
- marginTop: spaceL,
12
- },
13
8
  dropdownContainer: {
14
9
  flex: 1,
15
- zIndex: 4,
16
10
  marginRight: spaceL,
11
+ zIndex: 4,
17
12
  },
18
13
  returnButtonContainer: {
19
14
  flex: 1,
20
15
  },
16
+ row: {
17
+ alignItems: "center",
18
+ flexDirection: "row",
19
+ marginTop: spaceL,
20
+ },
21
21
  });
22
22
  export { style };
@@ -11,14 +11,14 @@ const ProductVariantDescription = ({ brand, name, price, size, color }) => {
11
11
  const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
12
12
  const colorLabel = useI18nMessage({ id: color.label, prefix: COLOR_I18N_PREFIX });
13
13
  return (React.createElement(View, { style: style.container },
14
- React.createElement(Text, { detail: true, level: 3, style: style.brand }, brand),
15
- React.createElement(Text, { body: true, level: 2, style: style.name }, name),
14
+ React.createElement(Text, { level: 3, style: style.brand, detail: true }, brand),
15
+ React.createElement(Text, { level: 2, style: style.name, body: true }, name),
16
16
  React.createElement(Price, { price: price }),
17
- React.createElement(Text, { detail: true, level: 2, style: style.size },
17
+ React.createElement(Text, { level: 2, style: style.size, detail: true },
18
18
  sizeText,
19
19
  ": ",
20
20
  React.createElement(Text, { style: style.text }, size.unique ? uniqueText : size.lookiero)),
21
- React.createElement(Text, { detail: true, level: 2 },
21
+ React.createElement(Text, { level: 2, detail: true },
22
22
  colorText,
23
23
  ": ",
24
24
  React.createElement(Text, { style: style.text }, colorLabel))));
@@ -1,11 +1,11 @@
1
1
  declare const style: {
2
- container: {
3
- width: string;
4
- };
5
2
  brand: {
6
3
  color: string;
7
4
  textTransform: "uppercase";
8
5
  };
6
+ container: {
7
+ width: string;
8
+ };
9
9
  name: {
10
10
  marginVertical: number;
11
11
  };
@@ -2,13 +2,13 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../theme/theme";
3
3
  const { colorGrayscaleL, spaceS, spaceL } = theme();
4
4
  const style = StyleSheet.create({
5
- container: {
6
- width: "100%",
7
- },
8
5
  brand: {
9
6
  color: colorGrayscaleL,
10
7
  textTransform: "uppercase",
11
8
  },
9
+ container: {
10
+ width: "100%",
11
+ },
12
12
  name: {
13
13
  marginVertical: spaceS,
14
14
  },
@@ -7,16 +7,16 @@ const ProductVariantSlider = ({ producVariantMedia }) => {
7
7
  const cdnImageUrl = useMediaImage();
8
8
  const [active, setActive] = useState(0);
9
9
  const handleOnActiveChanged = useCallback((activeIndex) => setActive(activeIndex), []);
10
- return (React.createElement(Slider, { active: active, onChanged: handleOnActiveChanged, paginationStyle: style.paginationStyle, paginationItemStyle: style.paginationItemStyle, paginationActiveItemStyle: style.paginationActiveItemStyle, paginationRenderItem: (index) => (React.createElement(Image, { key: producVariantMedia[index]?.perspective, style: style.paginationImage, resizeMode: "contain", source: {
10
+ return (React.createElement(Slider, { active: active, paginationActiveItemStyle: style.paginationActiveItemStyle, paginationItemStyle: style.paginationItemStyle, paginationStyle: style.paginationStyle, paginationRenderItem: (index) => (React.createElement(Image, { key: producVariantMedia[index]?.perspective, resizeMode: "contain", style: style.paginationImage, testID: "product-variant-pagination-image", source: {
11
11
  uri: cdnImageUrl({
12
12
  url: producVariantMedia[index]?.url,
13
13
  width: 80,
14
14
  }),
15
- }, testID: "product-variant-pagination-image" })) }, producVariantMedia.map((media) => (React.createElement(Image, { key: media.perspective, style: style.image, source: {
15
+ } })), onChanged: handleOnActiveChanged }, producVariantMedia.map((media) => (React.createElement(Image, { key: media.perspective, style: style.image, testID: "product-variant-image", source: {
16
16
  uri: cdnImageUrl({
17
17
  url: media.url,
18
18
  width: 200,
19
19
  }),
20
- }, testID: "product-variant-image" })))));
20
+ } })))));
21
21
  };
22
22
  export { ProductVariantSlider };
@@ -2,14 +2,12 @@ declare const style: {
2
2
  image: {
3
3
  flex: number;
4
4
  };
5
+ paginationActiveItemStyle: {
6
+ borderColor: string;
7
+ };
5
8
  paginationImage: {
6
9
  flex: number;
7
10
  };
8
- paginationStyle: {
9
- bottom: number;
10
- marginTop: number;
11
- position: "relative";
12
- };
13
11
  paginationItemStyle: {
14
12
  backgroundColor: string;
15
13
  borderColor: string;
@@ -18,8 +16,10 @@ declare const style: {
18
16
  height: number;
19
17
  width: number;
20
18
  };
21
- paginationActiveItemStyle: {
22
- borderColor: string;
19
+ paginationStyle: {
20
+ bottom: number;
21
+ marginTop: number;
22
+ position: "relative";
23
23
  };
24
24
  };
25
25
  export { style };
@@ -6,14 +6,12 @@ const style = StyleSheet.create({
6
6
  image: {
7
7
  flex: 1,
8
8
  },
9
+ paginationActiveItemStyle: {
10
+ borderColor: colorContent,
11
+ },
9
12
  paginationImage: {
10
13
  flex: 1,
11
14
  },
12
- paginationStyle: {
13
- bottom: 0,
14
- marginTop: spaceM,
15
- position: "relative",
16
- },
17
15
  paginationItemStyle: {
18
16
  backgroundColor: colorBase,
19
17
  borderColor: colorGrayscaleL,
@@ -22,8 +20,10 @@ const style = StyleSheet.create({
22
20
  height: PAGINATION_SIZE,
23
21
  width: PAGINATION_SIZE,
24
22
  },
25
- paginationActiveItemStyle: {
26
- borderColor: colorContent,
23
+ paginationStyle: {
24
+ bottom: 0,
25
+ marginTop: spaceM,
26
+ position: "relative",
27
27
  },
28
28
  });
29
29
  export { style };
@@ -1,12 +1,12 @@
1
1
  declare const style: {
2
+ title: {
3
+ marginBottom: number;
4
+ marginTop: number;
5
+ };
2
6
  titleContainer: {
3
- flexDirection: "row";
4
7
  alignItems: "center";
8
+ flexDirection: "row";
5
9
  justifyContent: "space-between";
6
10
  };
7
- title: {
8
- marginTop: number;
9
- marginBottom: number;
10
- };
11
11
  };
12
12
  export { style };
@@ -2,14 +2,14 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../theme/theme";
3
3
  const { spaceL, spaceXL } = theme();
4
4
  const style = StyleSheet.create({
5
+ title: {
6
+ marginBottom: spaceL,
7
+ marginTop: spaceXL,
8
+ },
5
9
  titleContainer: {
6
- flexDirection: "row",
7
10
  alignItems: "center",
11
+ flexDirection: "row",
8
12
  justifyContent: "space-between",
9
13
  },
10
- title: {
11
- marginTop: spaceXL,
12
- marginBottom: spaceL,
13
- },
14
14
  });
15
15
  export { style };
@@ -1,7 +1,6 @@
1
1
  import { PortalHost } from "@gorhom/portal";
2
2
  import React from "react";
3
- import { ScrollView, View } from "react-native";
4
- import { useSafeAreaInsets } from "react-native-safe-area-context";
3
+ import { View } from "react-native";
5
4
  import { ReturnQuestionType, } from "../../../../../../projection/returnQuestion/returnQuestion";
6
5
  import { ReturnQuestions } from "../../../../components/organisms/returnQuestions/ReturnQuestions";
7
6
  import { ReturnQuestionFeedbackProvider } from "../../../../components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback";
@@ -12,9 +11,7 @@ import { HostStackReturnQuestionItem } from "../../../../components/organisms/re
12
11
  import { OptionReturnQuestionItem } from "../../../../components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem";
13
12
  import { TextareaReturnQuestionItem } from "../../../../components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem";
14
13
  import { Modal } from "../../../../shared/components/layouts/modal/Modal";
15
- import { theme } from "../../../../theme/theme";
16
14
  import { style } from "./ReturnQuestionsForm.style";
17
- const { spaceXL } = theme();
18
15
  const RETURN_QUESTION_FORM_PORTAL_HOST_NAME = "return-question-form-portal";
19
16
  const returnQuestionItems = {
20
17
  [ReturnQuestionType.HOST_DEFAULT]: HostDefaultReturnQuestionItem,
@@ -24,14 +21,10 @@ const returnQuestionItems = {
24
21
  [ReturnQuestionType.TEXTAREA]: TextareaReturnQuestionItem,
25
22
  [ReturnQuestionType.OPTION]: OptionReturnQuestionItem,
26
23
  };
27
- const ReturnQuestionsForm = ({ feedback, returnQuestions, onClose, visible }) => {
28
- const { bottom: safeAreaInsetBottom } = useSafeAreaInsets();
29
- return (React.createElement(ReturnQuestionFeedbackProvider, { feedback: feedback },
30
- React.createElement(ReturnQuestionItemProvider, { returnQuestionItems: returnQuestionItems },
31
- React.createElement(PortalHost, { name: RETURN_QUESTION_FORM_PORTAL_HOST_NAME }),
32
- React.createElement(Modal, { visible: visible, onClose: onClose, portalHostName: RETURN_QUESTION_FORM_PORTAL_HOST_NAME },
33
- React.createElement(ScrollView, null,
34
- React.createElement(View, { style: [style.returnQuestionsContainer, { paddingBottom: spaceXL + safeAreaInsetBottom }] },
35
- React.createElement(ReturnQuestions, { returnQuestions: returnQuestions, portalHostName: RETURN_QUESTION_FORM_PORTAL_HOST_NAME })))))));
36
- };
24
+ const ReturnQuestionsForm = ({ feedback, returnQuestions, onClose, visible }) => (React.createElement(ReturnQuestionFeedbackProvider, { feedback: feedback },
25
+ React.createElement(ReturnQuestionItemProvider, { returnQuestionItems: returnQuestionItems },
26
+ React.createElement(PortalHost, { name: RETURN_QUESTION_FORM_PORTAL_HOST_NAME }),
27
+ React.createElement(Modal, { portalHostName: RETURN_QUESTION_FORM_PORTAL_HOST_NAME, visible: visible, scroll: true, onClose: onClose },
28
+ React.createElement(View, { style: style.returnQuestionsContainer },
29
+ React.createElement(ReturnQuestions, { portalHostName: RETURN_QUESTION_FORM_PORTAL_HOST_NAME, returnQuestions: returnQuestions }))))));
37
30
  export { ReturnQuestionsForm };
@@ -10,8 +10,8 @@ const SizeChangeModal = ({ visible, onDismiss }) => {
10
10
  const descriptionText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_DESCRIPTION });
11
11
  const buttonText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_BUTTON });
12
12
  return (React.createElement(Modal, { visible: visible },
13
- React.createElement(Text, { body: true, level: 1, style: style.modalTitle }, titleText),
14
- React.createElement(Text, { body: true, level: 3, style: style.modalDescription }, descriptionText),
13
+ React.createElement(Text, { level: 1, style: style.modalTitle, body: true }, titleText),
14
+ React.createElement(Text, { level: 3, style: style.modalDescription, body: true }, descriptionText),
15
15
  React.createElement(Button
16
16
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
17
17
  // @ts-ignore
@@ -1,13 +1,13 @@
1
1
  declare const style: {
2
- modalTitle: {
3
- textAlign: "center";
2
+ button: {
3
+ flex: number;
4
4
  };
5
5
  modalDescription: {
6
6
  marginVertical: number;
7
7
  textAlign: "center";
8
8
  };
9
- button: {
10
- flex: number;
9
+ modalTitle: {
10
+ textAlign: "center";
11
11
  };
12
12
  };
13
13
  export { style };
@@ -2,15 +2,15 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../theme/theme";
3
3
  const { spaceXL } = theme();
4
4
  const style = StyleSheet.create({
5
- modalTitle: {
6
- textAlign: "center",
5
+ button: {
6
+ flex: 0,
7
7
  },
8
8
  modalDescription: {
9
9
  marginVertical: spaceXL,
10
10
  textAlign: "center",
11
11
  },
12
- button: {
13
- flex: 0,
12
+ modalTitle: {
13
+ textAlign: "center",
14
14
  },
15
15
  });
16
16
  export { style };
@@ -10,8 +10,8 @@ const SizeWithoutStockModal = ({ visible, onDismiss }) => {
10
10
  const descriptionText = useI18nMessage({ id: I18nMessages.SIZE_WITHOUT_STOCK_MODAL_DESCRIPTION });
11
11
  const buttonText = useI18nMessage({ id: I18nMessages.SIZE_WITHOUT_STOCK_MODAL_BUTTON });
12
12
  return (React.createElement(Modal, { visible: visible },
13
- React.createElement(Text, { body: true, level: 1, style: style.modalTitle }, titleText),
14
- React.createElement(Text, { body: true, level: 3, style: style.modalDescription }, descriptionText),
13
+ React.createElement(Text, { level: 1, style: style.modalTitle, body: true }, titleText),
14
+ React.createElement(Text, { level: 3, style: style.modalDescription, body: true }, descriptionText),
15
15
  React.createElement(Button
16
16
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
17
17
  // @ts-ignore
@@ -1,13 +1,13 @@
1
1
  declare const style: {
2
- modalTitle: {
3
- textAlign: "center";
2
+ button: {
3
+ flex: number;
4
4
  };
5
5
  modalDescription: {
6
6
  marginVertical: number;
7
7
  textAlign: "center";
8
8
  };
9
- button: {
10
- flex: number;
9
+ modalTitle: {
10
+ textAlign: "center";
11
11
  };
12
12
  };
13
13
  export { style };
@@ -2,15 +2,15 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../theme/theme";
3
3
  const { spaceXL } = theme();
4
4
  const style = StyleSheet.create({
5
- modalTitle: {
6
- textAlign: "center",
5
+ button: {
6
+ flex: 0,
7
7
  },
8
8
  modalDescription: {
9
9
  marginVertical: spaceXL,
10
10
  textAlign: "center",
11
11
  },
12
- button: {
13
- flex: 0,
12
+ modalTitle: {
13
+ textAlign: "center",
14
14
  },
15
15
  });
16
16
  export { style };
@@ -11,9 +11,8 @@ const Summary = () => {
11
11
  };
12
12
  const styles = StyleSheet.create({
13
13
  container: {
14
- flex: 1,
15
- backgroundColor: "#fff",
16
14
  alignItems: "center",
15
+ flex: 1,
17
16
  justifyContent: "center",
18
17
  },
19
18
  });