@lookiero/checkout 3.8.0 → 3.9.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/infrastructure/projection/checkout/checkout.js +14 -0
  2. package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +7 -5
  3. package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/useScrollViewRef.d.ts +15 -0
  4. package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/useScrollViewRef.js +14 -0
  5. package/dist/infrastructure/ui/components/organisms/checkoutQuestions/CheckoutQuestion.js +1 -1
  6. package/dist/infrastructure/ui/components/organisms/checkoutQuestions/components/CheckoutQuestionItem.d.ts +0 -1
  7. package/dist/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +2 -2
  8. package/dist/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +3 -3
  9. package/dist/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +2 -2
  10. package/dist/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestion.js +1 -1
  11. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +0 -1
  12. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +2 -2
  13. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +2 -2
  14. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +2 -2
  15. package/dist/infrastructure/ui/components/templates/header/Header.style.d.ts +1 -0
  16. package/dist/infrastructure/ui/components/templates/header/Header.style.js +3 -1
  17. package/dist/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +1 -1
  18. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +4 -6
  19. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +3 -10
  20. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +3 -10
  21. package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.js +3 -4
  22. package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.style.d.ts +0 -3
  23. package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.style.js +3 -6
  24. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +2 -1
  25. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +4 -3
  26. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +9 -15
  27. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +3 -0
  28. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +3 -0
  29. package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +0 -1
  30. package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +0 -1
  31. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +2 -3
  32. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -3
  33. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -3
  34. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +3 -4
  35. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +3 -10
  36. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +3 -10
  37. package/dist/infrastructure/ui/views/item/views/productVariant/ProductVariant.js +2 -1
  38. package/dist/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.d.ts +0 -4
  39. package/dist/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.js +0 -4
  40. package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.js +7 -8
  41. package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +0 -6
  42. package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +0 -6
  43. package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.js +3 -4
  44. package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.style.d.ts +3 -10
  45. package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.style.js +3 -10
  46. package/dist/shared/ui/components/atoms/input/Input.js +2 -2
  47. package/dist/shared/ui/components/layouts/carousel/Carousel.d.ts +11 -0
  48. package/dist/shared/ui/components/layouts/carousel/Carousel.js +31 -0
  49. package/dist/shared/ui/components/layouts/carousel/Carousel.style.d.ts +24 -0
  50. package/dist/shared/ui/components/layouts/carousel/Carousel.style.js +25 -0
  51. package/dist/shared/ui/components/layouts/carousel/Carousel2.d.ts +30 -0
  52. package/dist/shared/ui/components/layouts/carousel/Carousel2.js +79 -0
  53. package/dist/shared/ui/components/layouts/carousel/DragComponent.d.ts +3 -0
  54. package/dist/shared/ui/components/layouts/carousel/DragComponent.js +48 -0
  55. package/dist/shared/ui/components/layouts/modal/Modal.js +1 -1
  56. package/dist/shared/ui/components/layouts/slider/Bullets.d.ts +10 -0
  57. package/dist/shared/ui/components/layouts/slider/Bullets.js +28 -0
  58. package/dist/shared/ui/components/layouts/slider/Bullets.style.d.ts +12 -0
  59. package/dist/shared/ui/components/layouts/slider/Bullets.style.js +15 -0
  60. package/dist/shared/ui/components/layouts/slider/Bullets2.d.ts +10 -0
  61. package/dist/shared/ui/components/layouts/slider/Bullets2.js +30 -0
  62. package/dist/shared/ui/components/layouts/slider/Slider.d.ts +0 -5
  63. package/dist/shared/ui/components/layouts/slider/Slider.js +4 -4
  64. package/dist/shared/ui/components/layouts/slider/SliderDots.d.ts +8 -0
  65. package/dist/shared/ui/components/layouts/slider/SliderDots.js +16 -0
  66. package/dist/shared/ui/components/layouts/slider/SliderDots.style.d.ts +12 -0
  67. package/dist/shared/ui/components/layouts/slider/SliderDots.style.js +15 -0
  68. package/dist/shared/ui/components/layouts/sticky/Sticky.js +1 -3
  69. package/dist/shared/ui/components/layouts/sticky/Sticky.style.d.ts +3 -0
  70. package/dist/shared/ui/components/layouts/sticky/Sticky.style.js +3 -2
  71. package/dist/shared/ui/components/molecules/selectField/SelectField.js +3 -3
  72. package/package.json +8 -1
@@ -0,0 +1,15 @@
1
+ import { StyleSheet } from "react-native";
2
+ import { theme } from "../../../../../infrastructure/ui/theme/theme";
3
+ const { spaceM } = theme();
4
+ const style = StyleSheet.create({
5
+ sliderDot: {
6
+ marginHorizontal: 3,
7
+ },
8
+ sliderDots: {
9
+ alignItems: "center",
10
+ flexDirection: "row",
11
+ justifyContent: "center",
12
+ paddingVertical: spaceM,
13
+ },
14
+ });
15
+ export { style };
@@ -1,10 +1,8 @@
1
1
  import React, { useCallback } from "react";
2
2
  import { View } from "react-native";
3
- import { theme } from "../../../../../infrastructure/ui/theme/theme";
4
3
  import { style } from "./Sticky.style";
5
- const { spaceXL } = theme();
6
4
  const Sticky = ({ children, style: customStyle, onLayout }) => {
7
5
  const handleOnLayout = useCallback(({ nativeEvent: { layout: { width, height }, }, }) => onLayout?.({ width, height }), [onLayout]);
8
- return (React.createElement(View, { style: [style.sticky, { paddingBottom: spaceXL }, customStyle], onLayout: handleOnLayout }, children));
6
+ return (React.createElement(View, { style: [style.sticky, customStyle], onLayout: handleOnLayout }, children));
9
7
  };
10
8
  export { Sticky };
@@ -5,6 +5,7 @@ declare const style: StyleSheet.NamedStyles<any> | StyleSheet.NamedStyles<{
5
5
  backgroundColor: string;
6
6
  bottom: number;
7
7
  elevation: number;
8
+ paddingBottom: number;
8
9
  paddingTop: number;
9
10
  shadowColor: string;
10
11
  shadowOffset: {
@@ -20,6 +21,7 @@ declare const style: StyleSheet.NamedStyles<any> | StyleSheet.NamedStyles<{
20
21
  backgroundColor: string;
21
22
  bottom: number;
22
23
  elevation: number;
24
+ paddingBottom: number;
23
25
  paddingTop: number;
24
26
  shadowColor: string;
25
27
  shadowOffset: {
@@ -35,6 +37,7 @@ declare const style: StyleSheet.NamedStyles<any> | StyleSheet.NamedStyles<{
35
37
  backgroundColor: string;
36
38
  bottom: number;
37
39
  elevation: number;
40
+ paddingBottom: number;
38
41
  paddingTop: number;
39
42
  shadowColor: string;
40
43
  shadowOffset: {
@@ -1,6 +1,6 @@
1
1
  import { Platform, StyleSheet } from "react-native";
2
2
  import { theme } from "../../../../../infrastructure/ui/theme/theme";
3
- const { colorBase, elevationColor, elevationLayerL, elevationOffset, elevationOpacityM, elevationRadius, spaceXL } = theme();
3
+ const { colorBase, elevationColor, elevationLayerL, elevationOffset, elevationOpacityM, elevationRadius, spaceM, spaceL, } = theme();
4
4
  const style = StyleSheet.create({
5
5
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
6
  // @ts-ignore
@@ -8,7 +8,8 @@ const style = StyleSheet.create({
8
8
  backgroundColor: colorBase,
9
9
  bottom: 0,
10
10
  elevation: elevationLayerL,
11
- paddingTop: spaceXL,
11
+ paddingBottom: spaceL,
12
+ paddingTop: spaceM,
12
13
  shadowColor: elevationColor,
13
14
  shadowOffset: elevationOffset,
14
15
  shadowOpacity: elevationOpacityM,
@@ -6,7 +6,7 @@ import { Modal } from "../../layouts/modal/Modal";
6
6
  import { InputField } from "../inputField/InputField";
7
7
  import { style } from "./SelectField.style";
8
8
  const { colorGrayscaleS } = theme();
9
- const SelectField = ({ title, placeholder, value, options, style: customStyle, onChange = () => void 0, testID, ...touchableRestProps }) => {
9
+ const SelectField = ({ title, placeholder, value, options, style: customStyle, onChange = () => void 0, ...touchableRestProps }) => {
10
10
  const [modalVisible, setModalVisible] = useState(false);
11
11
  const handleOnPressSelectField = useCallback(() => setModalVisible(true), []);
12
12
  const handleOnModalClose = useCallback(() => setModalVisible(false), []);
@@ -16,13 +16,13 @@ const SelectField = ({ title, placeholder, value, options, style: customStyle, o
16
16
  }, [handleOnModalClose, onChange]);
17
17
  const selectedValue = useMemo(() => options.find((option) => option.value === value), [options, value]);
18
18
  return (React.createElement(React.Fragment, null,
19
- React.createElement(TouchableHighlight, { accessibilityLabel: testID, style: customStyle?.selectField, testID: testID, underlayColor: colorGrayscaleS, accessible: true, onPress: handleOnPressSelectField, ...touchableRestProps },
19
+ React.createElement(TouchableHighlight, { style: customStyle?.selectField, underlayColor: colorGrayscaleS, onPress: handleOnPressSelectField, ...touchableRestProps },
20
20
  React.createElement(View, { pointerEvents: "none" },
21
21
  React.createElement(InputField, { editable: false, icon: "arrow-down", label: placeholder, style: customStyle?.inputField, value: selectedValue?.label }))),
22
22
  React.createElement(Modal, { testID: "select-field-modal", visible: modalVisible, scroll: true, showCloseButton: true, onClose: handleOnModalClose },
23
23
  React.createElement(View, { style: [style.modalContent, customStyle?.modalContent] },
24
24
  title && (React.createElement(Text, { level: 2, style: style.modalTitle }, title)),
25
- options.map(({ label, value: optionValue }) => (React.createElement(TouchableHighlight, { key: optionValue, accessibilityLabel: optionValue, disabled: value === optionValue, style: [style.option, customStyle?.option], testID: optionValue, underlayColor: colorGrayscaleS, accessible: true, onPress: value !== optionValue ? () => handleOnPressOption(optionValue) : undefined },
25
+ options.map(({ label, value: optionValue }) => (React.createElement(TouchableHighlight, { key: optionValue, disabled: value === optionValue, style: [style.option, customStyle?.option], underlayColor: colorGrayscaleS, onPress: value !== optionValue ? () => handleOnPressOption(optionValue) : undefined },
26
26
  React.createElement(Text, { color: value === optionValue ? COLOR.GRAYSCALE_M : COLOR.CONTENT, level: 3, style: [style.optionText, customStyle?.optionText] }, label))))))));
27
27
  };
28
28
  export { SelectField };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "3.8.0",
3
+ "version": "3.9.0-beta.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -57,8 +57,11 @@
57
57
  "react": "^18.2.0",
58
58
  "react-dom": "^18.2.0",
59
59
  "react-native": "^0.71.4",
60
+ "react-native-gesture-handler": "^2.12.0",
60
61
  "react-native-get-random-values": "^1.8.0",
61
62
  "react-native-web": "^0.18.11",
63
+ "react-native-reanimated": "^3.3.0",
64
+ "react-native-reanimated-carousel": "^3.4.0",
62
65
  "react-router-dom": "^6.8.1",
63
66
  "react-router-native": "^6.8.1"
64
67
  },
@@ -77,6 +80,7 @@
77
80
  "@pact-foundation/pact-node": "^10.17.6",
78
81
  "@react-native-firebase/analytics": "10.5.1",
79
82
  "@react-native-firebase/app": "10.5.0",
83
+ "@testing-library/jest-native": "^5.4.2",
80
84
  "@testing-library/react-native": "^11.5.0",
81
85
  "@trivago/prettier-plugin-sort-imports": "^3.3.0",
82
86
  "@types/jest": "^29.2.4",
@@ -115,8 +119,11 @@
115
119
  "react-error-overlay": "^6.0.9",
116
120
  "react-native": "^0.71.3",
117
121
  "react-native-adjust": "^4.33.0",
122
+ "react-native-gesture-handler": "^2.12.0",
118
123
  "react-native-get-random-values": "^1.8.0",
119
124
  "react-native-web": "^0.18.11",
125
+ "react-native-reanimated": "^3.3.0",
126
+ "react-native-reanimated-carousel": "^3.4.0",
120
127
  "react-router-dom": "^6.8.1",
121
128
  "react-router-native": "^6.8.1",
122
129
  "react-test-renderer": "^18.0.0",