@lookiero/checkout 9.7.0-beta.2 → 9.7.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 (26) hide show
  1. package/dist/src/ExpoRoot.js +1 -1
  2. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +1 -0
  3. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +2 -1
  4. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +1 -0
  5. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +2 -1
  6. package/dist/src/version.d.ts +1 -1
  7. package/dist/src/version.js +1 -1
  8. package/package.json +1 -1
  9. package/src/ExpoRoot.tsx +1 -1
  10. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +2 -1
  11. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +2 -1
  12. package/dist/public/public/assets/adaptive-icon.png +0 -0
  13. package/dist/public/public/assets/favicon.png +0 -0
  14. package/dist/public/public/assets/icon.png +0 -0
  15. package/dist/public/public/assets/splash.png +0 -0
  16. package/dist/public/public/images/not-found.png +0 -0
  17. package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.d.ts +0 -15
  18. package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.js +0 -16
  19. package/dist/src/shared/ui/components/atoms/field/Field.d.ts +0 -14
  20. package/dist/src/shared/ui/components/atoms/field/Field.js +0 -26
  21. package/dist/src/shared/ui/components/atoms/field/Field.style.d.ts +0 -16
  22. package/dist/src/shared/ui/components/atoms/field/Field.style.js +0 -19
  23. package/dist/src/shared/ui/components/molecules/inputField/InputField.d.ts +0 -24
  24. package/dist/src/shared/ui/components/molecules/inputField/InputField.js +0 -28
  25. package/dist/src/shared/ui/components/molecules/inputField/InputField.style.d.ts +0 -29
  26. package/dist/src/shared/ui/components/molecules/inputField/InputField.style.js +0 -37
@@ -24,7 +24,7 @@ const order = {
24
24
  coupon: "MYLOOKIERO",
25
25
  };
26
26
  const customer = {
27
- customerId: "74cb4f76-3f14-4983-81a6-2ee2a9a275d4",
27
+ customerId: "9413fe3a-09fc-4264-905e-040bb7b4ca75",
28
28
  country: Country.ES,
29
29
  segment: Segment.WOMEN,
30
30
  };
@@ -5,6 +5,7 @@ declare const style: {
5
5
  };
6
6
  inputContainer: {
7
7
  alignItems?: "flex-start" | undefined;
8
+ paddingLeft?: number | undefined;
8
9
  height: number;
9
10
  };
10
11
  inputField: {
@@ -1,6 +1,6 @@
1
1
  import { Platform, StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { space2, space4 } = theme();
3
+ const { fontInputPaddingLeft, space2, space4 } = theme();
4
4
  const INPUT_HEIGHT = 96;
5
5
  const style = StyleSheet.create({
6
6
  input: {
@@ -17,6 +17,7 @@ const style = StyleSheet.create({
17
17
  ...Platform.select({
18
18
  android: {
19
19
  alignItems: "flex-start",
20
+ paddingLeft: fontInputPaddingLeft,
20
21
  },
21
22
  }),
22
23
  },
@@ -5,6 +5,7 @@ declare const style: {
5
5
  };
6
6
  inputContainer: {
7
7
  alignItems?: "flex-start" | undefined;
8
+ paddingLeft?: number | undefined;
8
9
  height: number;
9
10
  };
10
11
  inputField: {
@@ -1,6 +1,6 @@
1
1
  import { Platform, StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorBgBase, space2, space4, space6 } = theme();
3
+ const { colorBgBase, fontInputPaddingLeft, space2, space4, space6 } = theme();
4
4
  const INPUT_HEIGHT = 96;
5
5
  const style = StyleSheet.create({
6
6
  input: {
@@ -17,6 +17,7 @@ const style = StyleSheet.create({
17
17
  ...Platform.select({
18
18
  android: {
19
19
  alignItems: "flex-start",
20
+ paddingLeft: fontInputPaddingLeft,
20
21
  },
21
22
  }),
22
23
  },
@@ -1 +1 @@
1
- export declare const VERSION = "9.7.0-beta.2";
1
+ export declare const VERSION = "9.7.0";
@@ -1 +1 @@
1
- export const VERSION = "9.7.0-beta.2";
1
+ export const VERSION = "9.7.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "9.7.0-beta.2",
3
+ "version": "9.7.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": "false",
package/src/ExpoRoot.tsx CHANGED
@@ -32,7 +32,7 @@ const order: Order = {
32
32
  };
33
33
 
34
34
  const customer: Customer = {
35
- customerId: "74cb4f76-3f14-4983-81a6-2ee2a9a275d4",
35
+ customerId: "9413fe3a-09fc-4264-905e-040bb7b4ca75",
36
36
  country: Country.ES,
37
37
  segment: Segment.WOMEN,
38
38
  };
@@ -1,7 +1,7 @@
1
1
  import { Platform, StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { space2, space4 } = theme();
4
+ const { fontInputPaddingLeft, space2, space4 } = theme();
5
5
 
6
6
  const INPUT_HEIGHT = 96;
7
7
 
@@ -20,6 +20,7 @@ const style = StyleSheet.create({
20
20
  ...Platform.select({
21
21
  android: {
22
22
  alignItems: "flex-start",
23
+ paddingLeft: fontInputPaddingLeft,
23
24
  },
24
25
  }),
25
26
  },
@@ -1,7 +1,7 @@
1
1
  import { Platform, StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { colorBgBase, space2, space4, space6 } = theme();
4
+ const { colorBgBase, fontInputPaddingLeft, space2, space4, space6 } = theme();
5
5
 
6
6
  const INPUT_HEIGHT = 96;
7
7
 
@@ -20,6 +20,7 @@ const style = StyleSheet.create({
20
20
  ...Platform.select({
21
21
  android: {
22
22
  alignItems: "flex-start",
23
+ paddingLeft: fontInputPaddingLeft,
23
24
  },
24
25
  }),
25
26
  },
Binary file
@@ -1,15 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- import { StyleProp, ViewStyle } from "react-native";
3
- declare enum AspectRatioViewResizeDirection {
4
- VERTICAL = "VERTICAL",
5
- HORIZONTAL = "HORIZONTAL"
6
- }
7
- interface AspectRatioViewProps {
8
- readonly aspectRatio?: number;
9
- readonly resizeDirection?: AspectRatioViewResizeDirection;
10
- readonly multiplier?: number;
11
- readonly children: ReactNode;
12
- readonly style?: StyleProp<ViewStyle>;
13
- }
14
- declare const AspectRatioView: FC<AspectRatioViewProps>;
15
- export { AspectRatioView, AspectRatioViewResizeDirection };
@@ -1,16 +0,0 @@
1
- import React, { useCallback, useState } from "react";
2
- import { View } from "react-native";
3
- var AspectRatioViewResizeDirection;
4
- (function (AspectRatioViewResizeDirection) {
5
- AspectRatioViewResizeDirection["VERTICAL"] = "VERTICAL";
6
- AspectRatioViewResizeDirection["HORIZONTAL"] = "HORIZONTAL";
7
- })(AspectRatioViewResizeDirection || (AspectRatioViewResizeDirection = {}));
8
- const AspectRatioView = ({ aspectRatio = 1, resizeDirection = AspectRatioViewResizeDirection.HORIZONTAL, multiplier = 1, style: customStyle = {}, children, }) => {
9
- const [{ width, height }, setDimension] = useState({});
10
- const handleOnLayout = useCallback(({ nativeEvent: { layout } }) => setDimension(resizeDirection === AspectRatioViewResizeDirection.HORIZONTAL
11
- ? { width: layout.width * multiplier, height: layout.width * aspectRatio }
12
- : { width: layout.height * aspectRatio, height: layout.height }), [aspectRatio, multiplier, resizeDirection]);
13
- return (React.createElement(View, { onLayout: handleOnLayout },
14
- React.createElement(View, { style: [{ width, height }, customStyle] }, children)));
15
- };
16
- export { AspectRatioView, AspectRatioViewResizeDirection };
@@ -1,14 +0,0 @@
1
- import { FC } from "react";
2
- import { StyleProp, TextStyle, ViewStyle } from "react-native";
3
- type FieldStyle = {
4
- readonly field: StyleProp<ViewStyle>;
5
- readonly fieldText: StyleProp<TextStyle>;
6
- };
7
- interface FieldProps {
8
- readonly label: string;
9
- readonly isFocused?: boolean;
10
- readonly style?: FieldStyle;
11
- }
12
- declare const Field: FC<FieldProps>;
13
- export type { FieldStyle };
14
- export { Field };
@@ -1,26 +0,0 @@
1
- import { animated, useSpring } from "@react-spring/native";
2
- import React, { useCallback, useState } from "react";
3
- import { View } from "react-native";
4
- import { Text } from "@lookiero/aurora";
5
- import { theme } from "@lookiero/sty-psp-ui";
6
- import { style } from "./Field.style";
7
- const SCALE = 0.75;
8
- const { space1, space4 } = theme();
9
- const Field = ({ label, isFocused = false, style: customStyle }) => {
10
- const [width, setWidth] = useState(0);
11
- const handleOnLayout = useCallback(({ nativeEvent: { layout } }) => setWidth(layout.width), []);
12
- const springs = useSpring(isFocused
13
- ? { scale: SCALE, translateY: -14, translateX: -(((1 - SCALE) * width) / 2 + space1) }
14
- : { scale: 1, translateY: space4, translateX: 0 });
15
- return (React.createElement(animated.View, { pointerEvents: "none", style: [
16
- {
17
- transform: [{ scale: springs.scale }, { translateY: springs.translateY }, { translateX: springs.translateX }],
18
- },
19
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
20
- // @ts-ignore
21
- customStyle?.field,
22
- ], onLayout: handleOnLayout },
23
- React.createElement(Text, { level: 1, numberOfLines: 1, style: [style.fieldText, customStyle?.fieldText], detail: true }, label),
24
- React.createElement(View, { style: [style.fieldBackground, { opacity: isFocused ? 1 : 0 }] })));
25
- };
26
- export { Field };
@@ -1,16 +0,0 @@
1
- declare const style: {
2
- fieldBackground: {
3
- backgroundColor: string;
4
- height: "100%";
5
- position: "absolute";
6
- width: "100%";
7
- zIndex: number;
8
- };
9
- fieldText: {
10
- flexWrap: "nowrap";
11
- overflow: "hidden";
12
- paddingHorizontal: number;
13
- zIndex: number;
14
- };
15
- };
16
- export { style };
@@ -1,19 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorBgBase, space1 } = theme();
4
- const style = StyleSheet.create({
5
- fieldBackground: {
6
- backgroundColor: colorBgBase,
7
- height: "100%",
8
- position: "absolute",
9
- width: "100%",
10
- zIndex: 0,
11
- },
12
- fieldText: {
13
- flexWrap: "nowrap",
14
- overflow: "hidden",
15
- paddingHorizontal: space1,
16
- zIndex: 1,
17
- },
18
- });
19
- export { style };
@@ -1,24 +0,0 @@
1
- import { FC } from "react";
2
- import { StyleProp, TextStyle, ViewStyle } from "react-native";
3
- import { IconName, InputProperties } from "@lookiero/aurora";
4
- import { ErrorStyle } from "@lookiero/sty-psp-ui";
5
- import { FieldStyle } from "../../atoms/field/Field";
6
- type IconStyle = StyleProp<TextStyle>;
7
- type InputFieldStyle = FieldStyle & {
8
- readonly inputField: StyleProp<ViewStyle>;
9
- readonly error: ErrorStyle;
10
- readonly icon: IconStyle;
11
- };
12
- interface InputFieldBaseProps {
13
- readonly label: string;
14
- readonly multiline?: boolean;
15
- readonly error?: string | null;
16
- readonly style?: Partial<InputFieldStyle>;
17
- readonly onChange?: (value: string) => void;
18
- readonly icon?: IconName;
19
- }
20
- interface InputFieldProps extends Omit<InputProperties, keyof InputFieldBaseProps>, InputFieldBaseProps {
21
- }
22
- declare const InputField: FC<InputFieldProps>;
23
- export type { InputFieldStyle };
24
- export { InputField };
@@ -1,28 +0,0 @@
1
- import React, { useCallback, useState } from "react";
2
- import { View } from "react-native";
3
- import { COLOR, Icon, Input } from "@lookiero/aurora";
4
- import { Error, theme } from "@lookiero/sty-psp-ui";
5
- import { Field } from "../../atoms/field/Field";
6
- import { style } from "./InputField.style";
7
- const { colorBgBase, colorBorderInput, colorBorderInputError, colorBorderInputFocus, colorText, colorTextError, colorTextMedium, iconSize, space6, } = theme();
8
- const inputPaddingRightWithIcon = iconSize + space6;
9
- const InputField = ({ label, placeholder, value, multiline = false, error, style: customStyle, onChange = () => void 0, icon, testID = "input", ...inputRestProps }) => {
10
- const [isFocused, setIsFocused] = useState(false);
11
- const handleOnChange = useCallback((text) => onChange(text), [onChange]);
12
- const handleOnBlur = useCallback(() => setIsFocused(false), []);
13
- const handleOnFocus = useCallback(() => setIsFocused(true), []);
14
- const borderColor = error ? colorBorderInputError : isFocused ? colorBorderInputFocus : colorBorderInput;
15
- const color = error ? colorTextError : isFocused ? colorText : colorTextMedium;
16
- return (React.createElement(View, { style: [style.inputField, { borderColor }, customStyle?.inputField], testID: "input-field" },
17
- React.createElement(Field, { isFocused: isFocused || !!value, label: label, style: {
18
- field: [style.field, customStyle?.field],
19
- fieldText: [{ color }, customStyle?.fieldText],
20
- } }),
21
- React.createElement(Input, { autoCapitalize: "sentences", multiline: multiline, multilineMaxHeight: 242, placeholder: placeholder, placeholderTextColor: isFocused ? colorTextMedium : colorBgBase, style: [!!icon && { paddingRight: inputPaddingRightWithIcon }, style.input, { color }], testID: testID, value: value, onBlur: handleOnBlur,
22
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
23
- // @ts-ignore
24
- onChange: handleOnChange, onFocus: handleOnFocus, ...inputRestProps }),
25
- !!icon && React.createElement(Icon, { color: COLOR.GRAYSCALE_L, name: icon, style: [style.icon, customStyle?.icon], testID: "icon" }),
26
- !!error && React.createElement(Error, { error: error, style: [style.error, customStyle?.error] })));
27
- };
28
- export { InputField };
@@ -1,29 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- declare const style: StyleSheet.NamedStyles<any> | StyleSheet.NamedStyles<{
3
- error: {
4
- marginLeft: number;
5
- marginTop: number;
6
- };
7
- field: {
8
- left: number;
9
- maxWidth: "100%";
10
- position: "absolute";
11
- zIndex: number;
12
- };
13
- icon: {
14
- height: number;
15
- position: "absolute";
16
- right: number;
17
- top: number;
18
- width: number;
19
- zIndex: number;
20
- };
21
- input: {
22
- textOverflow?: string | undefined;
23
- };
24
- inputField: {
25
- borderRadius: number;
26
- borderWidth: number;
27
- };
28
- }>;
29
- export { style };
@@ -1,37 +0,0 @@
1
- import { StyleSheet, Platform } from "react-native";
2
- import { theme } from "@lookiero/sty-psp-ui";
3
- const { space1, space4, space6, borderRadius2, borderWidth1 } = theme();
4
- const style = StyleSheet.create({
5
- error: {
6
- marginLeft: space6,
7
- marginTop: space1,
8
- },
9
- field: {
10
- left: space4,
11
- maxWidth: "100%",
12
- position: "absolute",
13
- zIndex: 4,
14
- },
15
- icon: {
16
- height: 16,
17
- position: "absolute",
18
- right: space4,
19
- top: space4,
20
- width: 16,
21
- zIndex: 4,
22
- },
23
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24
- // @ts-ignore
25
- input: {
26
- ...Platform.select({
27
- web: {
28
- textOverflow: "ellipsis",
29
- },
30
- }),
31
- },
32
- inputField: {
33
- borderRadius: borderRadius2,
34
- borderWidth: borderWidth1,
35
- },
36
- });
37
- export { style };