@lookiero/checkout 0.2.24 → 0.2.26

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 (81) hide show
  1. package/README.md +1 -1
  2. package/dist/infrastructure/ui/Root.js +1 -1
  3. package/dist/infrastructure/ui/components/atoms/modal/Modal.style.d.ts +2 -2
  4. package/dist/infrastructure/ui/components/atoms/modal/Modal.style.js +2 -2
  5. package/dist/infrastructure/ui/components/atoms/price/Price.js +2 -2
  6. package/dist/infrastructure/ui/components/atoms/price/Price.style.d.ts +4 -4
  7. package/dist/infrastructure/ui/components/atoms/price/Price.style.js +4 -4
  8. package/dist/infrastructure/ui/components/layouts/body/Body.style.d.ts +3 -3
  9. package/dist/infrastructure/ui/components/layouts/body/Body.style.js +3 -3
  10. package/dist/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestion.js +2 -2
  11. package/dist/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestions.js +1 -1
  12. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +1 -1
  13. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +1 -1
  14. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +3 -3
  15. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +1 -1
  16. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +5 -5
  17. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +5 -5
  18. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +1 -1
  19. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +2 -2
  20. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +2 -2
  21. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +1 -1
  22. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
  23. package/dist/infrastructure/ui/routing/CheckoutMiddleware.js +4 -4
  24. package/dist/infrastructure/ui/routing/Routing.js +2 -2
  25. package/dist/infrastructure/ui/shared/components/atoms/error/Error.js +1 -1
  26. package/dist/infrastructure/ui/shared/components/atoms/field/Field.js +3 -2
  27. package/dist/infrastructure/ui/shared/components/atoms/field/Field.style.d.ts +9 -2
  28. package/dist/infrastructure/ui/shared/components/atoms/field/Field.style.js +9 -2
  29. package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.style.d.ts +3 -3
  30. package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.style.js +3 -3
  31. package/dist/infrastructure/ui/shared/components/atoms/input/Input.js +2 -2
  32. package/dist/infrastructure/ui/shared/components/atoms/input/Input.style.d.ts +4 -4
  33. package/dist/infrastructure/ui/shared/components/atoms/input/Input.style.js +5 -5
  34. package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.js +1 -1
  35. package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.style.d.ts +1 -1
  36. package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.style.js +1 -1
  37. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.js +6 -6
  38. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.style.d.ts +23 -23
  39. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.style.js +22 -22
  40. package/dist/infrastructure/ui/shared/components/layouts/row/Row.style.d.ts +2 -2
  41. package/dist/infrastructure/ui/shared/components/layouts/row/Row.style.js +2 -2
  42. package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.js +2 -2
  43. package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.style.d.ts +12 -12
  44. package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.style.js +12 -12
  45. package/dist/infrastructure/ui/shared/components/layouts/slider/Slider.js +2 -2
  46. package/dist/infrastructure/ui/shared/components/molecules/buttonIcon/ButtonIcon.js +1 -1
  47. package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.js +3 -3
  48. package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.style.d.ts +4 -4
  49. package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.style.js +4 -4
  50. package/dist/infrastructure/ui/views/intro/Intro.js +6 -6
  51. package/dist/infrastructure/ui/views/intro/Intro.style.d.ts +20 -20
  52. package/dist/infrastructure/ui/views/intro/Intro.style.js +21 -21
  53. package/dist/infrastructure/ui/views/item/Item.js +1 -1
  54. package/dist/infrastructure/ui/views/item/Item.style.d.ts +5 -5
  55. package/dist/infrastructure/ui/views/item/Item.style.js +5 -5
  56. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +2 -2
  57. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +6 -6
  58. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +6 -6
  59. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +2 -2
  60. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +7 -7
  61. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +7 -7
  62. package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.js +1 -1
  63. package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.style.d.ts +6 -6
  64. package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.style.js +6 -6
  65. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +4 -4
  66. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +3 -3
  67. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +3 -3
  68. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +3 -3
  69. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +7 -7
  70. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +7 -7
  71. package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +5 -5
  72. package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +5 -5
  73. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +2 -2
  74. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +2 -2
  75. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +4 -4
  76. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +4 -4
  77. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +2 -2
  78. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +4 -4
  79. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +4 -4
  80. package/dist/infrastructure/ui/views/summary/Summary.js +1 -2
  81. package/package.json +3 -2
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## 💡 Prerequisites
7
7
 
8
- - Node.js ^14.20.0 || ^18.9.0
8
+ - Node.js ^14.20.0 || ^16.13.0 || ^18.9.0
9
9
  - NPM >= 8
10
10
 
11
11
  ## 🚀 Getting Started
@@ -8,6 +8,6 @@ const root = ({ Messaging, I18n, development }) =>
8
8
  const handleOnI18nError = useCallback(() => void 0, []);
9
9
  return (React.createElement(Messaging, { includeReactQueryDevTools: Platform.OS === "web" },
10
10
  React.createElement(Router, null,
11
- React.createElement(Routing, { onNotAccessible: onNotAccessible, customerId: customerId, locale: locale, I18n: I18n, onI18nError: development ? undefined : handleOnI18nError }))));
11
+ React.createElement(Routing, { I18n: I18n, customerId: customerId, locale: locale, onI18nError: development ? undefined : handleOnI18nError, onNotAccessible: onNotAccessible }))));
12
12
  };
13
13
  export { root };
@@ -1,12 +1,13 @@
1
1
  declare const style: {
2
2
  centeredView: {
3
+ backgroundColor: string;
3
4
  flex: number;
4
5
  justifyContent: "center";
5
- backgroundColor: string;
6
6
  paddingHorizontal: number;
7
7
  };
8
8
  modalView: {
9
9
  backgroundColor: string;
10
+ elevation: number;
10
11
  padding: number;
11
12
  shadowColor: string;
12
13
  shadowOffset: {
@@ -15,7 +16,6 @@ declare const style: {
15
16
  };
16
17
  shadowOpacity: number;
17
18
  shadowRadius: number;
18
- elevation: number;
19
19
  };
20
20
  };
21
21
  export { style };
@@ -3,13 +3,14 @@ import { theme } from "../../../theme/theme";
3
3
  const { colorBase, colorContent, colorOverlay, spaceXL } = theme();
4
4
  const style = StyleSheet.create({
5
5
  centeredView: {
6
+ backgroundColor: colorOverlay,
6
7
  flex: 1,
7
8
  justifyContent: "center",
8
- backgroundColor: colorOverlay,
9
9
  paddingHorizontal: spaceXL,
10
10
  },
11
11
  modalView: {
12
12
  backgroundColor: colorBase,
13
+ elevation: 5,
13
14
  padding: spaceXL,
14
15
  shadowColor: colorContent,
15
16
  shadowOffset: {
@@ -18,7 +19,6 @@ const style = StyleSheet.create({
18
19
  },
19
20
  shadowOpacity: 0.25,
20
21
  shadowRadius: 4,
21
- elevation: 5,
22
22
  },
23
23
  });
24
24
  export { style };
@@ -16,7 +16,7 @@ const Price = ({ price }) => {
16
16
  currency: price.currency,
17
17
  });
18
18
  return (React.createElement(View, { style: style.price, testID: "price" },
19
- React.createElement(Text, { body: true, level: 3, style: isDiscounted && style.priceTextDiscounted, testID: "price-text" }, productPrice),
20
- isDiscounted && (React.createElement(Text, { body: true, level: 3, style: style.discountedPriceText, testID: "discounted-price-text" }, productDiscountedPrice))));
19
+ React.createElement(Text, { level: 3, style: isDiscounted && style.priceTextDiscounted, testID: "price-text", body: true }, productPrice),
20
+ isDiscounted && (React.createElement(Text, { level: 3, style: style.discountedPriceText, testID: "discounted-price-text", body: true }, productDiscountedPrice))));
21
21
  };
22
22
  export { Price };
@@ -1,13 +1,13 @@
1
1
  declare const style: {
2
+ discountedPriceText: {
3
+ color: string;
4
+ marginLeft: number;
5
+ };
2
6
  price: {
3
7
  flexDirection: "row";
4
8
  };
5
9
  priceTextDiscounted: {
6
10
  textDecorationLine: "line-through";
7
11
  };
8
- discountedPriceText: {
9
- marginLeft: number;
10
- color: string;
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 { colorPrimary, spaceS } = theme();
4
4
  const style = StyleSheet.create({
5
+ discountedPriceText: {
6
+ color: colorPrimary,
7
+ marginLeft: spaceS,
8
+ },
5
9
  price: {
6
10
  flexDirection: "row",
7
11
  },
8
12
  priceTextDiscounted: {
9
13
  textDecorationLine: "line-through",
10
14
  },
11
- discountedPriceText: {
12
- marginLeft: spaceS,
13
- color: colorPrimary,
14
- },
15
15
  });
16
16
  export { style };
@@ -1,10 +1,10 @@
1
1
  declare const style: {
2
+ column: {
3
+ paddingHorizontal: number;
4
+ };
2
5
  row: {
3
6
  flex: number;
4
7
  justifyContent: "center";
5
8
  };
6
- column: {
7
- paddingHorizontal: number;
8
- };
9
9
  };
10
10
  export { style };
@@ -2,12 +2,12 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../../theme/theme";
3
3
  const { spaceXL } = theme();
4
4
  const style = StyleSheet.create({
5
+ column: {
6
+ paddingHorizontal: spaceXL,
7
+ },
5
8
  row: {
6
9
  flex: 1,
7
10
  justifyContent: "center",
8
11
  },
9
- column: {
10
- paddingHorizontal: spaceXL,
11
- },
12
12
  });
13
13
  export { style };
@@ -2,7 +2,7 @@ import React, { memo } from "react";
2
2
  import { useReturnQuestionItem } from "./behaviors/useReturnQuestionItem";
3
3
  const ReturnQuestion = ({ returnQuestion, returnQuestionParentId, portalHostName, }) => {
4
4
  const Item = useReturnQuestionItem({ type: returnQuestion.type });
5
- return (React.createElement(Item, { returnQuestion: returnQuestion, returnQuestionParentId: returnQuestionParentId, portalHostName: portalHostName },
6
- React.createElement(React.Fragment, null, returnQuestion.children?.map((childReturnQuestion) => (React.createElement(ReturnQuestion, { key: childReturnQuestion.id, returnQuestion: childReturnQuestion, returnQuestionParentId: returnQuestion.id, portalHostName: portalHostName }))))));
5
+ return (React.createElement(Item, { portalHostName: portalHostName, returnQuestion: returnQuestion, returnQuestionParentId: returnQuestionParentId },
6
+ React.createElement(React.Fragment, null, returnQuestion.children?.map((childReturnQuestion) => (React.createElement(ReturnQuestion, { key: childReturnQuestion.id, portalHostName: portalHostName, returnQuestion: childReturnQuestion, returnQuestionParentId: returnQuestion.id }))))));
7
7
  };
8
8
  export default memo(ReturnQuestion);
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import ReturnQuestion from "./ReturnQuestion";
3
- const ReturnQuestions = ({ returnQuestions, portalHostName }) => (React.createElement(React.Fragment, null, returnQuestions.map((returnQuestion) => (React.createElement(ReturnQuestion, { key: returnQuestion.id, returnQuestion: returnQuestion, returnQuestionParentId: "", portalHostName: portalHostName })))));
3
+ const ReturnQuestions = ({ returnQuestions, portalHostName }) => (React.createElement(React.Fragment, null, returnQuestions.map((returnQuestion) => (React.createElement(ReturnQuestion, { key: returnQuestion.id, portalHostName: portalHostName, returnQuestion: returnQuestion, returnQuestionParentId: "" })))));
4
4
  export { ReturnQuestions };
@@ -1,7 +1,7 @@
1
1
  declare const style: {
2
2
  title: {
3
- marginTop: number;
4
3
  marginBottom: number;
4
+ marginTop: number;
5
5
  textAlign: "center";
6
6
  };
7
7
  };
@@ -3,8 +3,8 @@ import { theme } from "../../../../../theme/theme";
3
3
  const { spaceL, spaceXXXL } = theme();
4
4
  const style = StyleSheet.create({
5
5
  title: {
6
- marginTop: spaceXXXL,
7
6
  marginBottom: spaceL,
7
+ marginTop: spaceXXXL,
8
8
  textAlign: "center",
9
9
  },
10
10
  });
@@ -26,10 +26,10 @@ const HostSelectReturnQuestionItem = ({ returnQuestion, children, portalHostName
26
26
  const handleOnBackButtonPress = useCallback(() => deepestReturnQuestionWithFeedback &&
27
27
  onChange({ returnQuestionId: deepestReturnQuestionWithFeedback.id, returnQuestionFeedback: undefined }), [deepestReturnQuestionWithFeedback, onChange]);
28
28
  return (React.createElement(React.Fragment, null,
29
- React.createElement(TouchableHighlight, { style: style.container, onPress: handleOnPress, underlayColor: containerUnderlayColor },
29
+ React.createElement(TouchableHighlight, { style: style.container, underlayColor: containerUnderlayColor, onPress: handleOnPress },
30
30
  React.createElement(View, { pointerEvents: "none" },
31
- React.createElement(InputField, { label: placeholderText || "", value: inputValue, icon: "arrow-down", editable: false }))),
32
- React.createElement(Modal, { visible: modalVisible, onClose: handleOnModalClose, portalHostName: portalHostName, header: deepestReturnQuestionWithFeedback && (React.createElement(ButtonIcon, { name: "arrow-left", onPress: handleOnBackButtonPress, testID: "modal-back-button" })), scroll: true },
31
+ React.createElement(InputField, { editable: false, icon: "arrow-down", label: placeholderText || "", value: inputValue }))),
32
+ React.createElement(Modal, { portalHostName: portalHostName, visible: modalVisible, header: deepestReturnQuestionWithFeedback && (React.createElement(ButtonIcon, { name: "arrow-left", testID: "modal-back-button", onPress: handleOnBackButtonPress })), scroll: true, onClose: handleOnModalClose },
33
33
  React.createElement(View, { style: style.modalContent }, children))));
34
34
  };
35
35
  export { HostSelectReturnQuestionItem };
@@ -22,6 +22,6 @@ const HostStackReturnQuestionItem = ({ returnQuestion, children, portalHostName,
22
22
  titleText && (React.createElement(Text, { level: 2, style: style.title }, titleText)),
23
23
  feedbackReturnQuestion ? (React.createElement(React.Fragment, null,
24
24
  React.createElement(Text, { level: 3, style: style.feedback }, feedbackText),
25
- feedbackReturnQuestion.children?.map((childReturnQuestion) => (React.createElement(ReturnQuestion, { key: childReturnQuestion.id, returnQuestion: childReturnQuestion, returnQuestionParentId: feedbackReturnQuestion.id, portalHostName: portalHostName }))))) : (children))));
25
+ feedbackReturnQuestion.children?.map((childReturnQuestion) => (React.createElement(ReturnQuestion, { key: childReturnQuestion.id, portalHostName: portalHostName, returnQuestion: childReturnQuestion, returnQuestionParentId: feedbackReturnQuestion.id }))))) : (children))));
26
26
  };
27
27
  export { HostStackReturnQuestionItem };
@@ -1,12 +1,12 @@
1
1
  declare const style: {
2
- title: {
3
- marginVertical: number;
4
- textAlign: "center";
5
- };
6
2
  feedback: {
7
3
  color: string;
8
- marginVertical: number;
9
4
  lineHeight: number;
5
+ marginVertical: number;
6
+ };
7
+ title: {
8
+ marginVertical: number;
9
+ textAlign: "center";
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 { colorGrayscaleL, spaceM, spaceL } = theme();
4
4
  const style = StyleSheet.create({
5
- title: {
6
- marginVertical: spaceL,
7
- textAlign: "center",
8
- },
9
5
  feedback: {
10
6
  color: colorGrayscaleL,
11
- marginVertical: spaceM,
12
7
  lineHeight: 24,
8
+ marginVertical: spaceM,
9
+ },
10
+ title: {
11
+ marginVertical: spaceL,
12
+ textAlign: "center",
13
13
  },
14
14
  });
15
15
  export { style };
@@ -9,7 +9,7 @@ const OptionReturnQuestionItem = ({ returnQuestion, returnQuestionParentId, }) =
9
9
  const { onChange } = useReturnQuestionFeedbackForId({ id: returnQuestionParentId });
10
10
  const optionText = useI18nMessage({ id: returnQuestion.name, prefix: RETURN_QUESTIONS_PREFIX });
11
11
  const handleOnPress = useCallback(() => onChange({ returnQuestionId: returnQuestionParentId, returnQuestionFeedback: returnQuestion.id }), [onChange, returnQuestion.id, returnQuestionParentId]);
12
- return (React.createElement(TouchableHighlight, { style: style.container, onPress: handleOnPress, underlayColor: containerUnderlayColor },
12
+ return (React.createElement(TouchableHighlight, { style: style.container, underlayColor: containerUnderlayColor, onPress: handleOnPress },
13
13
  React.createElement(Text, { level: 3, style: style.text }, optionText)));
14
14
  };
15
15
  export { OptionReturnQuestionItem };
@@ -1,9 +1,9 @@
1
1
  declare const containerUnderlayColor: string;
2
2
  declare const style: {
3
3
  container: {
4
- paddingVertical: number;
5
- borderBottomWidth: number;
6
4
  borderBottomColor: string;
5
+ borderBottomWidth: number;
6
+ paddingVertical: number;
7
7
  };
8
8
  text: {
9
9
  lineHeight: number;
@@ -4,9 +4,9 @@ const { spaceM, colorGrayscaleS } = theme();
4
4
  const containerUnderlayColor = colorGrayscaleS;
5
5
  const style = StyleSheet.create({
6
6
  container: {
7
- paddingVertical: spaceM,
8
- borderBottomWidth: 1,
9
7
  borderBottomColor: colorGrayscaleS,
8
+ borderBottomWidth: 1,
9
+ paddingVertical: spaceM,
10
10
  },
11
11
  text: {
12
12
  lineHeight: 24,
@@ -21,7 +21,7 @@ const ReturnQuestionFeedbackItem = ({ returnQuestion }) => {
21
21
  }), [intl]);
22
22
  const feedback = feedbackForReturnQuestion({ feedback: returnQuestionFeedback, returnQuestion, translate }).join(" / ");
23
23
  return (React.createElement(View, { style: style.container },
24
- React.createElement(Text, { detail: true, level: 2, style: style.title }, titleText),
24
+ React.createElement(Text, { level: 2, style: style.title, detail: true }, titleText),
25
25
  React.createElement(Text, { level: 3 }, feedback || unansweredText)));
26
26
  };
27
27
  export { ReturnQuestionFeedbackItem };
@@ -8,6 +8,6 @@ const TextareaReturnQuestionItem = ({ returnQuestion, returnQuestionParentId, })
8
8
  const placeholderText = useI18nMessage({ id: returnQuestion.placeholder, prefix: RETURN_QUESTIONS_PREFIX });
9
9
  const { feedback, onChange } = useReturnQuestionFeedbackForId({ id: returnQuestionParentId });
10
10
  const handleOnChange = useCallback((value) => onChange({ returnQuestionId: returnQuestionParentId, returnQuestionFeedback: value }), [onChange, returnQuestionParentId]);
11
- return (React.createElement(InputField, { multiline: true, label: placeholderText, placeholder: placeholderText, minHeight: TEXTAREA_MIN_HEIGHT, value: feedback, onChange: handleOnChange }));
11
+ return (React.createElement(InputField, { label: placeholderText, minHeight: TEXTAREA_MIN_HEIGHT, placeholder: placeholderText, value: feedback, multiline: true, onChange: handleOnChange }));
12
12
  };
13
13
  export { TextareaReturnQuestionItem };
@@ -21,21 +21,21 @@ const CheckoutMiddleware = ({ customerId, loader = React.createElement(Spinner,
21
21
  }
22
22
  if (!checkoutIntroShown) {
23
23
  if (!introRouteMatch) {
24
- return React.createElement(Navigate, { replace: true, to: Routes.INTRO });
24
+ return React.createElement(Navigate, { to: Routes.INTRO, replace: true });
25
25
  }
26
26
  }
27
27
  else {
28
28
  if (itemRouteMatch) {
29
29
  const checkoutItem = checkout?.items.find((item) => item.id === itemRouteMatch.params.id);
30
30
  if (!checkoutItem) {
31
- return React.createElement(Navigate, { replace: true, to: Routes.CHECKOUT });
31
+ return React.createElement(Navigate, { to: Routes.CHECKOUT, replace: true });
32
32
  }
33
33
  }
34
34
  if (firstItemWithoutCustomerDecision && !itemRouteMatch) {
35
- return React.createElement(Navigate, { replace: true, to: generatePath(Routes.ITEM, { id: firstItemWithoutCustomerDecision.id }) });
35
+ return React.createElement(Navigate, { to: generatePath(Routes.ITEM, { id: firstItemWithoutCustomerDecision.id }), replace: true });
36
36
  }
37
37
  if (firstItemWithoutCustomerDecision === undefined && !summaryRouteMatch) {
38
- return React.createElement(Navigate, { replace: true, to: Routes.SUMMARY });
38
+ return React.createElement(Navigate, { to: Routes.SUMMARY, replace: true });
39
39
  }
40
40
  }
41
41
  return React.createElement(Outlet, null);
@@ -16,7 +16,7 @@ const Routing = ({ onNotAccessible, customerId, locale, I18n, onI18nError }) =>
16
16
  children: [
17
17
  {
18
18
  path: "",
19
- element: (React.createElement(I18n, { locale: locale, loader: React.createElement(Spinner, null), onError: onI18nError },
19
+ element: (React.createElement(I18n, { loader: React.createElement(Spinner, null), locale: locale, onError: onI18nError },
20
20
  React.createElement(Outlet, null))),
21
21
  children: [
22
22
  {
@@ -52,7 +52,7 @@ const Routing = ({ onNotAccessible, customerId, locale, I18n, onI18nError }) =>
52
52
  },
53
53
  {
54
54
  path: "*",
55
- element: React.createElement(Navigate, { replace: true, to: Routes.CHECKOUT }),
55
+ element: React.createElement(Navigate, { to: Routes.CHECKOUT, replace: true }),
56
56
  },
57
57
  ]);
58
58
  return routes;
@@ -1,5 +1,5 @@
1
1
  import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
2
2
  import React from "react";
3
3
  import { style } from "./Error.style";
4
- const Error = ({ error, style: customStyle }) => (React.createElement(Text, { detail: true, level: 2, style: [style.error, customStyle] }, error));
4
+ const Error = ({ error, style: customStyle }) => (React.createElement(Text, { level: 2, style: [style.error, customStyle], detail: true }, error));
5
5
  export { Error };
@@ -1,13 +1,13 @@
1
1
  import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
2
2
  import { animated, useSpring } from "@react-spring/native";
3
3
  import React from "react";
4
+ import { View } from "react-native";
4
5
  import { theme } from "../../../../theme/theme";
5
6
  import { style } from "./Field.style";
6
7
  const { spaceM } = theme();
7
8
  const Field = ({ label, isFocused = false, style: customStyle }) => {
8
9
  const springs = useSpring(isFocused ? { scale: 0.75, translateY: -14, translateX: 0 } : { scale: 1, translateY: spaceM, translateX: spaceM });
9
10
  return (React.createElement(animated.View, { pointerEvents: "none", style: [
10
- style.field,
11
11
  customStyle?.field,
12
12
  {
13
13
  transform: [
@@ -23,6 +23,7 @@ const Field = ({ label, isFocused = false, style: customStyle }) => {
23
23
  ],
24
24
  },
25
25
  ] },
26
- React.createElement(Text, { detail: true, level: 1, style: customStyle?.fieldText }, label)));
26
+ React.createElement(Text, { level: 1, style: [style.fieldText, customStyle?.fieldText], detail: true }, label),
27
+ React.createElement(View, { style: [style.fieldBackground, { opacity: isFocused ? 1 : 0 }] })));
27
28
  };
28
29
  export { Field };
@@ -1,7 +1,14 @@
1
1
  declare const style: {
2
- field: {
3
- paddingHorizontal: number;
2
+ fieldBackground: {
4
3
  backgroundColor: string;
4
+ height: string;
5
+ position: "absolute";
6
+ width: string;
7
+ zIndex: number;
8
+ };
9
+ fieldText: {
10
+ paddingHorizontal: number;
11
+ zIndex: number;
5
12
  };
6
13
  };
7
14
  export { style };
@@ -2,9 +2,16 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../theme/theme";
3
3
  const { colorBase, spaceS } = theme();
4
4
  const style = StyleSheet.create({
5
- field: {
6
- paddingHorizontal: spaceS,
5
+ fieldBackground: {
7
6
  backgroundColor: colorBase,
7
+ height: "100%",
8
+ position: "absolute",
9
+ width: "100%",
10
+ zIndex: 0,
11
+ },
12
+ fieldText: {
13
+ paddingHorizontal: spaceS,
14
+ zIndex: 1,
8
15
  },
9
16
  });
10
17
  export { style };
@@ -1,13 +1,13 @@
1
1
  declare const style: {
2
2
  icon: {
3
3
  fontFamily: string;
4
+ fontSize: number;
4
5
  fontStyle: "normal";
5
6
  fontWeight: "normal";
7
+ height: number;
8
+ minHeight: number;
6
9
  minWidth: number;
7
10
  width: number;
8
- minHeight: number;
9
- height: number;
10
- fontSize: number;
11
11
  };
12
12
  };
13
13
  export { style };
@@ -4,13 +4,13 @@ const { iconFamily, iconSize } = theme();
4
4
  const style = StyleSheet.create({
5
5
  icon: {
6
6
  fontFamily: iconFamily,
7
+ fontSize: iconSize,
7
8
  fontStyle: "normal",
8
9
  fontWeight: "normal",
10
+ height: iconSize,
11
+ minHeight: iconSize,
9
12
  minWidth: iconSize,
10
13
  width: iconSize,
11
- minHeight: iconSize,
12
- height: iconSize,
13
- fontSize: iconSize,
14
14
  },
15
15
  });
16
16
  export { style };
@@ -4,7 +4,7 @@ import { theme } from "../../../../theme/theme";
4
4
  import { style } from "./Input.style";
5
5
  const DEFAULT_HEIGHT = 56;
6
6
  const { colorGrayscaleL } = theme();
7
- const Input = ({ minHeight = DEFAULT_HEIGHT, style: customStyle, onChange, onContentSizeChange, ...restOfProps }) => {
7
+ const Input = ({ minHeight = DEFAULT_HEIGHT, style: customStyle, placeholderTextColor = colorGrayscaleL, onChange, onContentSizeChange, ...restOfProps }) => {
8
8
  const [height, setHeight] = useState(minHeight);
9
9
  // When content height has became smaller the onContentSizeChange does in fact triggered but the internal height is incorrect.
10
10
  const handleOnContentSizeChange = useCallback((event) => {
@@ -24,6 +24,6 @@ const Input = ({ minHeight = DEFAULT_HEIGHT, style: customStyle, onChange, onCon
24
24
  element.style.height = `${Math.max(minHeight, element.scrollHeight)}px`;
25
25
  });
26
26
  }, [minHeight, onChange]);
27
- return (React.createElement(TextInput, { ...restOfProps, style: [style.input, customStyle, { height }], placeholderTextColor: colorGrayscaleL, textAlignVertical: "top", onContentSizeChange: handleOnContentSizeChange, onChange: handleOnChange, testID: "input" }));
27
+ return (React.createElement(TextInput, { ...restOfProps, placeholderTextColor: placeholderTextColor, style: [style.input, customStyle, { height }], testID: "input", textAlignVertical: "top", onChange: handleOnChange, onContentSizeChange: handleOnContentSizeChange }));
28
28
  };
29
29
  export { Input };
@@ -1,18 +1,18 @@
1
1
  declare const style: {
2
2
  input: {
3
3
  lineHeight?: number | undefined;
4
- paddingHorizontal: number;
5
- paddingTop: number;
6
- paddingBottom: number;
7
4
  borderWidth: number;
8
5
  color: string;
9
6
  fontFamily: string;
10
7
  fontSize: number;
11
8
  letterSpacing: number;
12
9
  outlineStyle: string;
13
- whiteSpace: string;
14
10
  overflow: "hidden";
11
+ paddingBottom: number;
12
+ paddingHorizontal: number;
13
+ paddingTop: number;
15
14
  textOverflow: string;
15
+ whiteSpace: string;
16
16
  };
17
17
  };
18
18
  export { style };
@@ -1,21 +1,21 @@
1
1
  import { Platform, StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../theme/theme";
3
3
  const { borderSize, colorContent, fontBodySize3, fontBodyHeight3, fontBodyLetterSpacing3, fontMap, spaceM } = theme();
4
+ // paddingVertical not working in multiline mode
4
5
  const style = StyleSheet.create({
5
6
  input: {
6
- // paddingVertical not working in multiline mode
7
- paddingHorizontal: spaceM,
8
- paddingTop: spaceM,
9
- paddingBottom: spaceM,
10
7
  borderWidth: borderSize,
11
8
  color: colorContent,
12
9
  fontFamily: fontMap.Body,
13
10
  fontSize: fontBodySize3,
14
11
  letterSpacing: fontBodyLetterSpacing3,
15
12
  outlineStyle: "none",
16
- whiteSpace: "nowrap",
17
13
  overflow: "hidden",
14
+ paddingBottom: spaceM,
15
+ paddingHorizontal: spaceM,
16
+ paddingTop: spaceM,
18
17
  textOverflow: "ellipsis",
18
+ whiteSpace: "nowrap",
19
19
  ...Platform.select({
20
20
  web: {
21
21
  lineHeight: fontBodyHeight3,
@@ -4,5 +4,5 @@ import { theme } from "../../../../theme/theme";
4
4
  import { style } from "./Spinner.style";
5
5
  const { colorPrimary } = theme();
6
6
  const Spinner = () => (React.createElement(View, { style: style.container },
7
- React.createElement(ActivityIndicator, { size: "large", color: colorPrimary })));
7
+ React.createElement(ActivityIndicator, { color: colorPrimary, size: "large" })));
8
8
  export { Spinner };
@@ -1,8 +1,8 @@
1
1
  declare const style: {
2
2
  container: {
3
+ alignItems: "center";
3
4
  display: "flex";
4
5
  flex: number;
5
- alignItems: "center";
6
6
  justifyContent: "center";
7
7
  };
8
8
  };
@@ -1,9 +1,9 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  const style = StyleSheet.create({
3
3
  container: {
4
+ alignItems: "center",
4
5
  display: "flex",
5
6
  flex: 1,
6
- alignItems: "center",
7
7
  justifyContent: "center",
8
8
  },
9
9
  });
@@ -38,12 +38,12 @@ const Modal = ({ children, visible, header, portalHostName, onClose, size = { M:
38
38
  unique: true,
39
39
  });
40
40
  const ModalContentView = useMemo(() => (scroll ? ScrollView : View), [scroll]);
41
- return (React.createElement(Portal, { hostName: portalHostName }, transitions(({ modalOpacity, overlayOpacity, modalTranslateY, modalScale }, item) => item && (React.createElement(View, { style: style.container, pointerEvents: visible ? "auto" : "none", testID: "modal" },
41
+ return (React.createElement(Portal, { hostName: portalHostName }, transitions(({ modalOpacity, overlayOpacity, modalTranslateY, modalScale }, item) => item && (React.createElement(View, { pointerEvents: visible ? "auto" : "none", style: style.container, testID: "modal" },
42
42
  React.createElement(TouchableWithoutFeedback, { onPress: visible ? onClose : undefined },
43
43
  React.createElement(animated.View, { style: [style.overlay, { opacity: overlayOpacity }, customStyle?.overlay] })),
44
- React.createElement(SafeAreaView, { edges: ["right", "top", "left"], style: style.safeArea, pointerEvents: "box-none" },
45
- React.createElement(Row, { style: [style.row, isSmallDevice && style.rowSmall, customStyle?.row], pointerEvents: "box-none" },
46
- React.createElement(animated.View, { style: [
44
+ React.createElement(SafeAreaView, { edges: ["right", "top", "left"], pointerEvents: "box-none", style: style.safeArea },
45
+ React.createElement(Row, { pointerEvents: "box-none", style: [style.row, isSmallDevice && style.rowSmall, customStyle?.row] },
46
+ React.createElement(animated.View, { pointerEvents: visible ? "auto" : "none", style: [
47
47
  style.modal,
48
48
  columnSizeForScreenSize && style.modal[columnSizeForScreenSize],
49
49
  {
@@ -52,10 +52,10 @@ const Modal = ({ children, visible, header, portalHostName, onClose, size = { M:
52
52
  maxHeight: screenSizeWithoutInsets,
53
53
  },
54
54
  customStyle?.modal,
55
- ], onLayout: handleOnModalLayout, pointerEvents: visible ? "auto" : "none" },
55
+ ], onLayout: handleOnModalLayout },
56
56
  (header || onClose) && (React.createElement(View, { style: [style.header, customStyle?.header] },
57
57
  React.createElement(View, null, header),
58
- onClose && (React.createElement(ButtonIcon, { style: { button: customStyle?.closeButton }, name: "close", onPress: onClose })))),
58
+ onClose && (React.createElement(ButtonIcon, { name: "close", style: { button: customStyle?.closeButton }, onPress: onClose })))),
59
59
  React.createElement(ModalContentView, null,
60
60
  React.createElement(View, { style: { paddingBottom: safeAreaInsetBottom } }, children))))))))));
61
61
  };