@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
@@ -1,46 +1,46 @@
1
1
  import { ViewStyle } from "react-native";
2
2
  declare const style: {
3
3
  container: {
4
- position: "absolute";
5
- width: string;
6
4
  height: string;
7
5
  overflow: "hidden";
6
+ position: "absolute";
7
+ width: string;
8
8
  };
9
- overlay: {
10
- zIndex: number;
9
+ header: {
10
+ alignItems: "center";
11
+ flexDirection: "row";
12
+ justifyContent: "space-between";
13
+ padding: number;
14
+ };
15
+ modal: {
16
+ "1/4": ViewStyle;
17
+ "1/3": ViewStyle;
18
+ "1/2": ViewStyle;
19
+ "2/3": ViewStyle;
11
20
  backgroundColor: string;
12
21
  position: "absolute";
13
22
  width: string;
14
- height: string;
15
- cursor: string;
23
+ zIndex: number;
16
24
  };
17
- safeArea: {
18
- flex: number;
25
+ overlay: {
26
+ backgroundColor: string;
27
+ cursor: string;
28
+ height: string;
29
+ position: "absolute";
30
+ width: string;
19
31
  zIndex: number;
20
32
  };
21
33
  row: {
22
- flex: number;
23
34
  alignContent: "center";
35
+ flex: number;
24
36
  justifyContent: "center";
25
37
  };
26
38
  rowSmall: {
27
39
  justifyContent: "flex-end";
28
40
  };
29
- modal: {
30
- "1/4": ViewStyle;
31
- "1/3": ViewStyle;
32
- "1/2": ViewStyle;
33
- "2/3": ViewStyle;
34
- backgroundColor: string;
35
- position: "absolute";
36
- width: string;
41
+ safeArea: {
42
+ flex: number;
37
43
  zIndex: number;
38
44
  };
39
- header: {
40
- alignItems: "center";
41
- justifyContent: "space-between";
42
- padding: number;
43
- flexDirection: "row";
44
- };
45
45
  };
46
46
  export { style };
@@ -17,43 +17,43 @@ const modalStylesForColumSize = {
17
17
  };
18
18
  const style = StyleSheet.create({
19
19
  container: {
20
- position: "absolute",
21
- width: "100%",
22
20
  height: "100%",
23
21
  overflow: "hidden",
22
+ position: "absolute",
23
+ width: "100%",
24
+ },
25
+ header: {
26
+ alignItems: "center",
27
+ flexDirection: "row",
28
+ justifyContent: "space-between",
29
+ padding: spaceM,
30
+ },
31
+ modal: {
32
+ backgroundColor: colorBase,
33
+ position: "absolute",
34
+ width: "100%",
35
+ zIndex: 3,
36
+ ...modalStylesForColumSize,
24
37
  },
25
38
  overlay: {
26
- zIndex: 1,
27
39
  backgroundColor: colorOverlay,
40
+ cursor: "pointer",
41
+ height: "100%",
28
42
  position: "absolute",
29
43
  width: "100%",
30
- height: "100%",
31
- cursor: "pointer",
32
- },
33
- safeArea: {
34
- flex: 1,
35
- zIndex: 2,
44
+ zIndex: 1,
36
45
  },
37
46
  row: {
38
- flex: 1,
39
47
  alignContent: "center",
48
+ flex: 1,
40
49
  justifyContent: "center",
41
50
  },
42
51
  rowSmall: {
43
52
  justifyContent: "flex-end",
44
53
  },
45
- modal: {
46
- backgroundColor: colorBase,
47
- position: "absolute",
48
- width: "100%",
49
- zIndex: 3,
50
- ...modalStylesForColumSize,
51
- },
52
- header: {
53
- alignItems: "center",
54
- justifyContent: "space-between",
55
- padding: spaceM,
56
- flexDirection: "row",
54
+ safeArea: {
55
+ flex: 1,
56
+ zIndex: 2,
57
57
  },
58
58
  });
59
59
  export { style };
@@ -1,10 +1,10 @@
1
1
  declare const style: {
2
2
  row: {
3
+ alignItems: "center";
3
4
  flexWrap: "wrap";
5
+ marginHorizontal: string;
4
6
  maxWidth: number;
5
7
  width: string;
6
- alignItems: "center";
7
- marginHorizontal: string;
8
8
  };
9
9
  rowLarge: {
10
10
  maxWidth: number;
@@ -4,11 +4,11 @@ const { spaceXXL, layoutMaxWidth } = theme();
4
4
  const rowLargeMaxWidth = layoutMaxWidth - 2 * spaceXXL;
5
5
  const style = StyleSheet.create({
6
6
  row: {
7
+ alignItems: "center",
7
8
  flexWrap: "wrap",
9
+ marginHorizontal: "auto",
8
10
  maxWidth: layoutMaxWidth,
9
11
  width: "100%",
10
- alignItems: "center",
11
- marginHorizontal: "auto",
12
12
  },
13
13
  rowLarge: {
14
14
  maxWidth: rowLargeMaxWidth,
@@ -2,10 +2,10 @@ import React from "react";
2
2
  import { Pressable, View } from "react-native";
3
3
  import { style } from "./Pagination.style";
4
4
  const Pagination = ({ touchable = true, paginationStyle, paginationItemStyle, paginationActiveItemStyle, count = 0, activeIndex = 0, renderItem, onChange, }) => (React.createElement(View, { style: [style.paginationWrapper, paginationStyle], testID: "slider-pagination" }, Array.from(Array(count).keys()).map((index) => (React.createElement(View, { key: index, style: style.paginationContainer },
5
- React.createElement(Pressable, { onPress: !touchable ? undefined : () => onChange(index), style: [
5
+ React.createElement(Pressable, { testID: "slider-pagination-item", style: [
6
6
  style.paginationItem,
7
7
  activeIndex === index && style.active,
8
8
  paginationItemStyle,
9
9
  activeIndex === index && paginationActiveItemStyle,
10
- ], testID: "slider-pagination-item" }, renderItem?.(index)))))));
10
+ ], onPress: !touchable ? undefined : () => onChange(index) }, renderItem?.(index)))))));
11
11
  export { Pagination };
@@ -1,23 +1,23 @@
1
1
  declare const style: {
2
- paginationWrapper: {
3
- alignItems: "center";
4
- bottom: number;
5
- flexDirection: "row";
6
- justifyContent: "center";
7
- position: "absolute";
8
- width: string;
2
+ active: {
3
+ backgroundColor: string;
9
4
  };
10
5
  paginationContainer: {
11
6
  margin: number;
12
7
  };
13
8
  paginationItem: {
14
- width: number;
15
- height: number;
16
- borderRadius: number;
17
9
  backgroundColor: string;
10
+ borderRadius: number;
11
+ height: number;
12
+ width: number;
18
13
  };
19
- active: {
20
- backgroundColor: string;
14
+ paginationWrapper: {
15
+ alignItems: "center";
16
+ bottom: number;
17
+ flexDirection: "row";
18
+ justifyContent: "center";
19
+ position: "absolute";
20
+ width: string;
21
21
  };
22
22
  };
23
23
  export { style };
@@ -3,25 +3,25 @@ import { theme } from "../../../../theme/theme";
3
3
  const { colorGrayscaleS, colorGrayscaleXL } = theme();
4
4
  const DOT_SIZE = 8;
5
5
  const style = StyleSheet.create({
6
- paginationWrapper: {
7
- alignItems: "center",
8
- bottom: 10,
9
- flexDirection: "row",
10
- justifyContent: "center",
11
- position: "absolute",
12
- width: "100%",
6
+ active: {
7
+ backgroundColor: colorGrayscaleXL,
13
8
  },
14
9
  paginationContainer: {
15
10
  margin: 3,
16
11
  },
17
12
  paginationItem: {
18
- width: DOT_SIZE,
19
- height: DOT_SIZE,
20
- borderRadius: DOT_SIZE / 2,
21
13
  backgroundColor: colorGrayscaleS,
14
+ borderRadius: DOT_SIZE / 2,
15
+ height: DOT_SIZE,
16
+ width: DOT_SIZE,
22
17
  },
23
- active: {
24
- backgroundColor: colorGrayscaleXL,
18
+ paginationWrapper: {
19
+ alignItems: "center",
20
+ bottom: 10,
21
+ flexDirection: "row",
22
+ justifyContent: "center",
23
+ position: "absolute",
24
+ width: "100%",
25
25
  },
26
26
  });
27
27
  export { style };
@@ -120,13 +120,13 @@ const Slider = ({ children, active = 0, loop = false, minDistanceToCapture = 5,
120
120
  widthRef.current = width;
121
121
  fixState();
122
122
  }, [fixState]);
123
- return (React.createElement(View, { style: style.container, onLayout: onLayoutWrapper, testID: "slider" },
123
+ return (React.createElement(View, { style: style.container, testID: "slider", onLayout: onLayoutWrapper },
124
124
  React.createElement(Animated.View, { style: StyleSheet.flatten([
125
125
  {
126
126
  transform: [{ translateX: pan.x }, { translateY: pan.y }],
127
127
  },
128
128
  style.sliderAreaStyle,
129
129
  ]), ...panResponder.panHandlers }, flatennedChildren.map((child, index) => (React.createElement(View, { key: index, style: { width }, testID: "slider-child" }, child)))),
130
- paginationEnabled && (React.createElement(Pagination, { count: count, activeIndex: getActiveIndex(), onChange: (index) => goTo(index), paginationStyle: paginationStyle, paginationItemStyle: paginationItemStyle, paginationActiveItemStyle: paginationActiveItemStyle, renderItem: paginationRenderItem }))));
130
+ paginationEnabled && (React.createElement(Pagination, { activeIndex: getActiveIndex(), count: count, paginationActiveItemStyle: paginationActiveItemStyle, paginationItemStyle: paginationItemStyle, paginationStyle: paginationStyle, renderItem: paginationRenderItem, onChange: (index) => goTo(index) }))));
131
131
  };
132
132
  export { Slider };
@@ -2,6 +2,6 @@ import React from "react";
2
2
  import { TouchableHighlight } from "react-native";
3
3
  import { Icon } from "../../atoms/icon/Icon";
4
4
  import { buttonIconUnderlayColor, style } from "./ButtonIcon.style";
5
- const ButtonIcon = ({ name, style: customStyle, testID = "button-icon", onPress, ...restProps }) => (React.createElement(TouchableHighlight, { style: [style.buttonIcon, customStyle?.button], onPress: onPress, underlayColor: buttonIconUnderlayColor, testID: testID, ...restProps },
5
+ const ButtonIcon = ({ name, style: customStyle, testID = "button-icon", onPress, ...restProps }) => (React.createElement(TouchableHighlight, { style: [style.buttonIcon, customStyle?.button], testID: testID, underlayColor: buttonIconUnderlayColor, onPress: onPress, ...restProps },
6
6
  React.createElement(Icon, { name: name, style: customStyle?.icon })));
7
7
  export { ButtonIcon };
@@ -6,7 +6,7 @@ import { Field } from "../../atoms/field/Field";
6
6
  import { Icon } from "../../atoms/icon/Icon";
7
7
  import { Input } from "../../atoms/input/Input";
8
8
  import { style } from "./InputField.style";
9
- const { colorContent, colorGrayscaleL, colorPrimary, spaceM, iconSize } = theme();
9
+ const { colorBase, colorContent, colorGrayscaleL, colorPrimary, spaceM, iconSize } = theme();
10
10
  const inputPaddingRightWithIcon = iconSize + spaceM * 2;
11
11
  const InputField = ({ label, placeholder, value, multiline = false, minHeight, error, style: customStyle, onChange = () => void 0, icon, ...inputRestProps }) => {
12
12
  const [isFocused, setIsFocused] = useState(false);
@@ -15,14 +15,14 @@ const InputField = ({ label, placeholder, value, multiline = false, minHeight, e
15
15
  const handleOnFocus = useCallback(() => setIsFocused(true), []);
16
16
  const color = error ? colorPrimary : isFocused ? colorContent : colorGrayscaleL;
17
17
  return (React.createElement(View, { style: customStyle?.inputField, testID: "input-field" },
18
- React.createElement(Field, { label: label, isFocused: isFocused || !!value, style: {
18
+ React.createElement(Field, { isFocused: isFocused || !!value, label: label, style: {
19
19
  field: { ...style.field, ...customStyle?.field },
20
20
  fieldText: {
21
21
  color,
22
22
  ...customStyle?.fieldText,
23
23
  },
24
24
  } }),
25
- React.createElement(Input, { value: value, placeholder: placeholder, multiline: multiline, minHeight: minHeight, onChangeText: handleOnChange, onBlur: handleOnBlur, onFocus: handleOnFocus, style: [!!icon ? { paddingRight: inputPaddingRightWithIcon } : {}, { borderColor: color }, customStyle?.input], ...inputRestProps }),
25
+ React.createElement(Input, { minHeight: minHeight, multiline: multiline, placeholder: placeholder, placeholderTextColor: isFocused ? colorGrayscaleL : colorBase, style: [!!icon ? { paddingRight: inputPaddingRightWithIcon } : {}, { borderColor: color }, customStyle?.input], value: value, onBlur: handleOnBlur, onChangeText: handleOnChange, onFocus: handleOnFocus, ...inputRestProps }),
26
26
  !!icon && React.createElement(Icon, { name: icon, style: [style.icon, { color }, customStyle?.icon] }),
27
27
  !!error && React.createElement(Error, { error: error, style: [style.error, customStyle?.error] })));
28
28
  };
@@ -1,12 +1,12 @@
1
1
  declare const style: {
2
+ error: {
3
+ marginLeft: number;
4
+ marginTop: number;
5
+ };
2
6
  field: {
3
7
  position: "absolute";
4
8
  zIndex: number;
5
9
  };
6
- error: {
7
- marginTop: number;
8
- marginLeft: number;
9
- };
10
10
  icon: {
11
11
  position: "absolute";
12
12
  right: number;
@@ -2,14 +2,14 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../theme/theme";
3
3
  const { spaceXS, spaceM, spaceL } = theme();
4
4
  const style = StyleSheet.create({
5
+ error: {
6
+ marginLeft: spaceL,
7
+ marginTop: spaceXS,
8
+ },
5
9
  field: {
6
10
  position: "absolute",
7
11
  zIndex: 4,
8
12
  },
9
- error: {
10
- marginTop: spaceXS,
11
- marginLeft: spaceL,
12
- },
13
13
  icon: {
14
14
  position: "absolute",
15
15
  right: spaceM,
@@ -14,7 +14,7 @@ import { Spinner } from "../../shared/components/atoms/spinner/Spinner";
14
14
  import { style } from "./Intro.style";
15
15
  const Bullet = ({ text }) => (React.createElement(View, { style: style.bullet },
16
16
  React.createElement(Icon, { name: "rounded-tick", style: style.tickIcon }),
17
- React.createElement(Text, { detail: true, level: 2 }, text)));
17
+ React.createElement(Text, { level: 2, detail: true }, text)));
18
18
  const Intro = ({ customerId }) => {
19
19
  const titleText = useI18nMessage({ id: I18nMessages.INTRO_TITLE });
20
20
  const subTitleText = useI18nMessage({ id: I18nMessages.INTRO_SUBTITLE });
@@ -34,15 +34,15 @@ const Intro = ({ customerId }) => {
34
34
  React.createElement(Body, null,
35
35
  React.createElement(View, { style: style.container },
36
36
  React.createElement(View, { style: style.content },
37
- React.createElement(Text, { heading: true, level: 3, style: style.title }, titleText),
38
- React.createElement(Text, { body: true, level: 3, style: style.subtitle }, subTitleText),
37
+ React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
38
+ React.createElement(Text, { level: 3, style: style.subtitle, body: true }, subTitleText),
39
39
  React.createElement(View, { style: style.discountContainer },
40
40
  React.createElement(View, { style: style.discount },
41
- React.createElement(Text, { heading: true, level: 2 },
41
+ React.createElement(Text, { level: 2, heading: true },
42
42
  "- ",
43
43
  fiveItemsDiscount),
44
- React.createElement(Text, { heading: true, level: 3, style: style.percentage }, "%")),
45
- React.createElement(Text, { body: true, level: 3 }, discountText)),
44
+ React.createElement(Text, { level: 3, style: style.percentage, heading: true }, "%")),
45
+ React.createElement(Text, { level: 3, body: true }, discountText)),
46
46
  React.createElement(View, { style: style.description },
47
47
  React.createElement(Bullet, { text: bulletOneText }),
48
48
  React.createElement(Bullet, { text: bulletTwoText }),
@@ -1,4 +1,9 @@
1
1
  declare const style: {
2
+ bullet: {
3
+ alignItems: "center";
4
+ flexDirection: "row";
5
+ marginVertical: number;
6
+ };
2
7
  container: {
3
8
  flex: number;
4
9
  justifyContent: "space-between";
@@ -6,12 +11,17 @@ declare const style: {
6
11
  content: {
7
12
  alignItems: "center";
8
13
  };
9
- title: {
14
+ description: {
15
+ borderWidth: number;
10
16
  marginBottom: number;
11
- textAlign: "center";
17
+ padding: number;
18
+ width: string;
12
19
  };
13
- subtitle: {
14
- textAlign: "center";
20
+ discount: {
21
+ alignItems: "flex-end";
22
+ flexDirection: "row";
23
+ justifyContent: "center";
24
+ marginBottom: number;
15
25
  };
16
26
  discountContainer: {
17
27
  alignItems: "center";
@@ -21,28 +31,18 @@ declare const style: {
21
31
  textAlign: "center";
22
32
  width: string;
23
33
  };
24
- discount: {
25
- alignItems: "flex-end";
26
- flexDirection: "row";
27
- justifyContent: "center";
28
- marginBottom: number;
29
- };
30
34
  percentage: {
31
35
  marginLeft: number;
32
36
  };
33
- description: {
34
- borderWidth: number;
35
- marginBottom: number;
36
- padding: number;
37
- width: string;
38
- };
39
- bullet: {
40
- alignItems: "center";
41
- flexDirection: "row";
42
- marginVertical: number;
37
+ subtitle: {
38
+ textAlign: "center";
43
39
  };
44
40
  tickIcon: {
45
41
  marginRight: number;
46
42
  };
43
+ title: {
44
+ marginBottom: number;
45
+ textAlign: "center";
46
+ };
47
47
  };
48
48
  export { style };
@@ -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 };