@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.
- package/README.md +1 -1
- package/dist/infrastructure/ui/Root.js +1 -1
- package/dist/infrastructure/ui/components/atoms/modal/Modal.style.d.ts +2 -2
- package/dist/infrastructure/ui/components/atoms/modal/Modal.style.js +2 -2
- package/dist/infrastructure/ui/components/atoms/price/Price.js +2 -2
- package/dist/infrastructure/ui/components/atoms/price/Price.style.d.ts +4 -4
- package/dist/infrastructure/ui/components/atoms/price/Price.style.js +4 -4
- package/dist/infrastructure/ui/components/layouts/body/Body.style.d.ts +3 -3
- package/dist/infrastructure/ui/components/layouts/body/Body.style.js +3 -3
- package/dist/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestion.js +2 -2
- package/dist/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestions.js +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +3 -3
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +5 -5
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +5 -5
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +2 -2
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +2 -2
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
- package/dist/infrastructure/ui/routing/CheckoutMiddleware.js +4 -4
- package/dist/infrastructure/ui/routing/Routing.js +2 -2
- package/dist/infrastructure/ui/shared/components/atoms/error/Error.js +1 -1
- package/dist/infrastructure/ui/shared/components/atoms/field/Field.js +3 -2
- package/dist/infrastructure/ui/shared/components/atoms/field/Field.style.d.ts +9 -2
- package/dist/infrastructure/ui/shared/components/atoms/field/Field.style.js +9 -2
- package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.style.d.ts +3 -3
- package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.style.js +3 -3
- package/dist/infrastructure/ui/shared/components/atoms/input/Input.js +2 -2
- package/dist/infrastructure/ui/shared/components/atoms/input/Input.style.d.ts +4 -4
- package/dist/infrastructure/ui/shared/components/atoms/input/Input.style.js +5 -5
- package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.js +1 -1
- package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.style.d.ts +1 -1
- package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.style.js +1 -1
- package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.js +6 -6
- package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.style.d.ts +23 -23
- package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.style.js +22 -22
- package/dist/infrastructure/ui/shared/components/layouts/row/Row.style.d.ts +2 -2
- package/dist/infrastructure/ui/shared/components/layouts/row/Row.style.js +2 -2
- package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.js +2 -2
- package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.style.d.ts +12 -12
- package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.style.js +12 -12
- package/dist/infrastructure/ui/shared/components/layouts/slider/Slider.js +2 -2
- package/dist/infrastructure/ui/shared/components/molecules/buttonIcon/ButtonIcon.js +1 -1
- package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.js +3 -3
- package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.style.d.ts +4 -4
- package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.style.js +4 -4
- package/dist/infrastructure/ui/views/intro/Intro.js +6 -6
- package/dist/infrastructure/ui/views/intro/Intro.style.d.ts +20 -20
- package/dist/infrastructure/ui/views/intro/Intro.style.js +21 -21
- package/dist/infrastructure/ui/views/item/Item.js +1 -1
- package/dist/infrastructure/ui/views/item/Item.style.d.ts +5 -5
- package/dist/infrastructure/ui/views/item/Item.style.js +5 -5
- package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +2 -2
- package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +6 -6
- package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +6 -6
- package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +2 -2
- package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +7 -7
- package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +7 -7
- package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.js +1 -1
- package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.style.d.ts +6 -6
- package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.style.js +6 -6
- package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +4 -4
- package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +3 -3
- package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +3 -3
- package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +3 -3
- package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +7 -7
- package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +7 -7
- package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +5 -5
- package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +5 -5
- package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +2 -2
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +2 -2
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +4 -4
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +4 -4
- package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +2 -2
- package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +4 -4
- package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +4 -4
- package/dist/infrastructure/ui/views/summary/Summary.js +1 -2
- package/package.json +3 -2
|
@@ -2,18 +2,18 @@ import { StyleSheet } from "react-native";
|
|
|
2
2
|
import { theme } from "../../../../theme/theme";
|
|
3
3
|
const { spaceXL } = theme();
|
|
4
4
|
const style = StyleSheet.create({
|
|
5
|
-
modalTitle: {
|
|
6
|
-
textAlign: "center",
|
|
7
|
-
},
|
|
8
|
-
modalDescription: {
|
|
9
|
-
marginVertical: spaceXL,
|
|
10
|
-
textAlign: "center",
|
|
11
|
-
},
|
|
12
5
|
button: {
|
|
13
6
|
flex: 0,
|
|
14
7
|
},
|
|
15
8
|
confirmButton: {
|
|
16
9
|
marginTop: spaceXL,
|
|
17
10
|
},
|
|
11
|
+
modalDescription: {
|
|
12
|
+
marginVertical: spaceXL,
|
|
13
|
+
textAlign: "center",
|
|
14
|
+
},
|
|
15
|
+
modalTitle: {
|
|
16
|
+
textAlign: "center",
|
|
17
|
+
},
|
|
18
18
|
});
|
|
19
19
|
export { style };
|
package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.js
CHANGED
|
@@ -16,7 +16,7 @@ const ProductVariantActions = ({ sizes, size, onKeep, onReplace, onReturn }) =>
|
|
|
16
16
|
React.createElement(Button, { onPress: onKeep }, keepButtonText),
|
|
17
17
|
React.createElement(View, { style: style.row },
|
|
18
18
|
!size.unique && (React.createElement(View, { style: style.dropdownContainer },
|
|
19
|
-
React.createElement(InputField, {
|
|
19
|
+
React.createElement(InputField, { disabled: disabledSizeSelector, icon: "arrow-down", label: sizeSelectorLabelText, name: "size-selector", options: sizeSelectorOptions, testID: "size-selector", value: size.id, onChange: onReplace }))),
|
|
20
20
|
React.createElement(View, { style: style.returnButtonContainer },
|
|
21
21
|
React.createElement(Button, { variant: BUTTON_VARIANT.SECONDARY, onPress: onReturn }, returnButtonText)))));
|
|
22
22
|
};
|
|
@@ -2,18 +2,18 @@ declare const style: {
|
|
|
2
2
|
container: {
|
|
3
3
|
width: string;
|
|
4
4
|
};
|
|
5
|
-
row: {
|
|
6
|
-
alignItems: "center";
|
|
7
|
-
flexDirection: "row";
|
|
8
|
-
marginTop: number;
|
|
9
|
-
};
|
|
10
5
|
dropdownContainer: {
|
|
11
6
|
flex: number;
|
|
12
|
-
zIndex: number;
|
|
13
7
|
marginRight: number;
|
|
8
|
+
zIndex: number;
|
|
14
9
|
};
|
|
15
10
|
returnButtonContainer: {
|
|
16
11
|
flex: number;
|
|
17
12
|
};
|
|
13
|
+
row: {
|
|
14
|
+
alignItems: "center";
|
|
15
|
+
flexDirection: "row";
|
|
16
|
+
marginTop: number;
|
|
17
|
+
};
|
|
18
18
|
};
|
|
19
19
|
export { style };
|
|
@@ -5,18 +5,18 @@ const style = StyleSheet.create({
|
|
|
5
5
|
container: {
|
|
6
6
|
width: "100%",
|
|
7
7
|
},
|
|
8
|
-
row: {
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
flexDirection: "row",
|
|
11
|
-
marginTop: spaceL,
|
|
12
|
-
},
|
|
13
8
|
dropdownContainer: {
|
|
14
9
|
flex: 1,
|
|
15
|
-
zIndex: 4,
|
|
16
10
|
marginRight: spaceL,
|
|
11
|
+
zIndex: 4,
|
|
17
12
|
},
|
|
18
13
|
returnButtonContainer: {
|
|
19
14
|
flex: 1,
|
|
20
15
|
},
|
|
16
|
+
row: {
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
flexDirection: "row",
|
|
19
|
+
marginTop: spaceL,
|
|
20
|
+
},
|
|
21
21
|
});
|
|
22
22
|
export { style };
|
|
@@ -11,14 +11,14 @@ const ProductVariantDescription = ({ brand, name, price, size, color }) => {
|
|
|
11
11
|
const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
|
|
12
12
|
const colorLabel = useI18nMessage({ id: color.label, prefix: COLOR_I18N_PREFIX });
|
|
13
13
|
return (React.createElement(View, { style: style.container },
|
|
14
|
-
React.createElement(Text, {
|
|
15
|
-
React.createElement(Text, {
|
|
14
|
+
React.createElement(Text, { level: 3, style: style.brand, detail: true }, brand),
|
|
15
|
+
React.createElement(Text, { level: 2, style: style.name, body: true }, name),
|
|
16
16
|
React.createElement(Price, { price: price }),
|
|
17
|
-
React.createElement(Text, {
|
|
17
|
+
React.createElement(Text, { level: 2, style: style.size, detail: true },
|
|
18
18
|
sizeText,
|
|
19
19
|
": ",
|
|
20
20
|
React.createElement(Text, { style: style.text }, size.unique ? uniqueText : size.lookiero)),
|
|
21
|
-
React.createElement(Text, {
|
|
21
|
+
React.createElement(Text, { level: 2, detail: true },
|
|
22
22
|
colorText,
|
|
23
23
|
": ",
|
|
24
24
|
React.createElement(Text, { style: style.text }, colorLabel))));
|
|
@@ -2,13 +2,13 @@ import { StyleSheet } from "react-native";
|
|
|
2
2
|
import { theme } from "../../../../theme/theme";
|
|
3
3
|
const { colorGrayscaleL, spaceS, spaceL } = theme();
|
|
4
4
|
const style = StyleSheet.create({
|
|
5
|
-
container: {
|
|
6
|
-
width: "100%",
|
|
7
|
-
},
|
|
8
5
|
brand: {
|
|
9
6
|
color: colorGrayscaleL,
|
|
10
7
|
textTransform: "uppercase",
|
|
11
8
|
},
|
|
9
|
+
container: {
|
|
10
|
+
width: "100%",
|
|
11
|
+
},
|
|
12
12
|
name: {
|
|
13
13
|
marginVertical: spaceS,
|
|
14
14
|
},
|
package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js
CHANGED
|
@@ -7,16 +7,16 @@ const ProductVariantSlider = ({ producVariantMedia }) => {
|
|
|
7
7
|
const cdnImageUrl = useMediaImage();
|
|
8
8
|
const [active, setActive] = useState(0);
|
|
9
9
|
const handleOnActiveChanged = useCallback((activeIndex) => setActive(activeIndex), []);
|
|
10
|
-
return (React.createElement(Slider, { active: active,
|
|
10
|
+
return (React.createElement(Slider, { active: active, paginationActiveItemStyle: style.paginationActiveItemStyle, paginationItemStyle: style.paginationItemStyle, paginationStyle: style.paginationStyle, paginationRenderItem: (index) => (React.createElement(Image, { key: producVariantMedia[index]?.perspective, resizeMode: "contain", style: style.paginationImage, testID: "product-variant-pagination-image", source: {
|
|
11
11
|
uri: cdnImageUrl({
|
|
12
12
|
url: producVariantMedia[index]?.url,
|
|
13
13
|
width: 80,
|
|
14
14
|
}),
|
|
15
|
-
},
|
|
15
|
+
} })), onChanged: handleOnActiveChanged }, producVariantMedia.map((media) => (React.createElement(Image, { key: media.perspective, style: style.image, testID: "product-variant-image", source: {
|
|
16
16
|
uri: cdnImageUrl({
|
|
17
17
|
url: media.url,
|
|
18
18
|
width: 200,
|
|
19
19
|
}),
|
|
20
|
-
}
|
|
20
|
+
} })))));
|
|
21
21
|
};
|
|
22
22
|
export { ProductVariantSlider };
|
|
@@ -2,14 +2,12 @@ declare const style: {
|
|
|
2
2
|
image: {
|
|
3
3
|
flex: number;
|
|
4
4
|
};
|
|
5
|
+
paginationActiveItemStyle: {
|
|
6
|
+
borderColor: string;
|
|
7
|
+
};
|
|
5
8
|
paginationImage: {
|
|
6
9
|
flex: number;
|
|
7
10
|
};
|
|
8
|
-
paginationStyle: {
|
|
9
|
-
bottom: number;
|
|
10
|
-
marginTop: number;
|
|
11
|
-
position: "relative";
|
|
12
|
-
};
|
|
13
11
|
paginationItemStyle: {
|
|
14
12
|
backgroundColor: string;
|
|
15
13
|
borderColor: string;
|
|
@@ -18,8 +16,10 @@ declare const style: {
|
|
|
18
16
|
height: number;
|
|
19
17
|
width: number;
|
|
20
18
|
};
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
paginationStyle: {
|
|
20
|
+
bottom: number;
|
|
21
|
+
marginTop: number;
|
|
22
|
+
position: "relative";
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
export { style };
|
|
@@ -6,14 +6,12 @@ const style = StyleSheet.create({
|
|
|
6
6
|
image: {
|
|
7
7
|
flex: 1,
|
|
8
8
|
},
|
|
9
|
+
paginationActiveItemStyle: {
|
|
10
|
+
borderColor: colorContent,
|
|
11
|
+
},
|
|
9
12
|
paginationImage: {
|
|
10
13
|
flex: 1,
|
|
11
14
|
},
|
|
12
|
-
paginationStyle: {
|
|
13
|
-
bottom: 0,
|
|
14
|
-
marginTop: spaceM,
|
|
15
|
-
position: "relative",
|
|
16
|
-
},
|
|
17
15
|
paginationItemStyle: {
|
|
18
16
|
backgroundColor: colorBase,
|
|
19
17
|
borderColor: colorGrayscaleL,
|
|
@@ -22,8 +20,10 @@ const style = StyleSheet.create({
|
|
|
22
20
|
height: PAGINATION_SIZE,
|
|
23
21
|
width: PAGINATION_SIZE,
|
|
24
22
|
},
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
paginationStyle: {
|
|
24
|
+
bottom: 0,
|
|
25
|
+
marginTop: spaceM,
|
|
26
|
+
position: "relative",
|
|
27
27
|
},
|
|
28
28
|
});
|
|
29
29
|
export { style };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const style: {
|
|
2
|
+
title: {
|
|
3
|
+
marginBottom: number;
|
|
4
|
+
marginTop: number;
|
|
5
|
+
};
|
|
2
6
|
titleContainer: {
|
|
3
|
-
flexDirection: "row";
|
|
4
7
|
alignItems: "center";
|
|
8
|
+
flexDirection: "row";
|
|
5
9
|
justifyContent: "space-between";
|
|
6
10
|
};
|
|
7
|
-
title: {
|
|
8
|
-
marginTop: number;
|
|
9
|
-
marginBottom: number;
|
|
10
|
-
};
|
|
11
11
|
};
|
|
12
12
|
export { style };
|
|
@@ -2,14 +2,14 @@ import { StyleSheet } from "react-native";
|
|
|
2
2
|
import { theme } from "../../../../theme/theme";
|
|
3
3
|
const { spaceL, spaceXL } = theme();
|
|
4
4
|
const style = StyleSheet.create({
|
|
5
|
+
title: {
|
|
6
|
+
marginBottom: spaceL,
|
|
7
|
+
marginTop: spaceXL,
|
|
8
|
+
},
|
|
5
9
|
titleContainer: {
|
|
6
|
-
flexDirection: "row",
|
|
7
10
|
alignItems: "center",
|
|
11
|
+
flexDirection: "row",
|
|
8
12
|
justifyContent: "space-between",
|
|
9
13
|
},
|
|
10
|
-
title: {
|
|
11
|
-
marginTop: spaceXL,
|
|
12
|
-
marginBottom: spaceL,
|
|
13
|
-
},
|
|
14
14
|
});
|
|
15
15
|
export { style };
|
package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js
CHANGED
|
@@ -24,7 +24,7 @@ const returnQuestionItems = {
|
|
|
24
24
|
const ReturnQuestionsForm = ({ feedback, returnQuestions, onClose, visible }) => (React.createElement(ReturnQuestionFeedbackProvider, { feedback: feedback },
|
|
25
25
|
React.createElement(ReturnQuestionItemProvider, { returnQuestionItems: returnQuestionItems },
|
|
26
26
|
React.createElement(PortalHost, { name: RETURN_QUESTION_FORM_PORTAL_HOST_NAME }),
|
|
27
|
-
React.createElement(Modal, {
|
|
27
|
+
React.createElement(Modal, { portalHostName: RETURN_QUESTION_FORM_PORTAL_HOST_NAME, visible: visible, scroll: true, onClose: onClose },
|
|
28
28
|
React.createElement(View, { style: style.returnQuestionsContainer },
|
|
29
|
-
React.createElement(ReturnQuestions, {
|
|
29
|
+
React.createElement(ReturnQuestions, { portalHostName: RETURN_QUESTION_FORM_PORTAL_HOST_NAME, returnQuestions: returnQuestions }))))));
|
|
30
30
|
export { ReturnQuestionsForm };
|
|
@@ -10,8 +10,8 @@ const SizeChangeModal = ({ visible, onDismiss }) => {
|
|
|
10
10
|
const descriptionText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_DESCRIPTION });
|
|
11
11
|
const buttonText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_BUTTON });
|
|
12
12
|
return (React.createElement(Modal, { visible: visible },
|
|
13
|
-
React.createElement(Text, {
|
|
14
|
-
React.createElement(Text, {
|
|
13
|
+
React.createElement(Text, { level: 1, style: style.modalTitle, body: true }, titleText),
|
|
14
|
+
React.createElement(Text, { level: 3, style: style.modalDescription, body: true }, descriptionText),
|
|
15
15
|
React.createElement(Button
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
17
17
|
// @ts-ignore
|
package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare const style: {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
button: {
|
|
3
|
+
flex: number;
|
|
4
4
|
};
|
|
5
5
|
modalDescription: {
|
|
6
6
|
marginVertical: number;
|
|
7
7
|
textAlign: "center";
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
modalTitle: {
|
|
10
|
+
textAlign: "center";
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export { style };
|
package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js
CHANGED
|
@@ -2,15 +2,15 @@ import { StyleSheet } from "react-native";
|
|
|
2
2
|
import { theme } from "../../../../theme/theme";
|
|
3
3
|
const { spaceXL } = theme();
|
|
4
4
|
const style = StyleSheet.create({
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
button: {
|
|
6
|
+
flex: 0,
|
|
7
7
|
},
|
|
8
8
|
modalDescription: {
|
|
9
9
|
marginVertical: spaceXL,
|
|
10
10
|
textAlign: "center",
|
|
11
11
|
},
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
modalTitle: {
|
|
13
|
+
textAlign: "center",
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
16
|
export { style };
|
package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js
CHANGED
|
@@ -10,8 +10,8 @@ const SizeWithoutStockModal = ({ visible, onDismiss }) => {
|
|
|
10
10
|
const descriptionText = useI18nMessage({ id: I18nMessages.SIZE_WITHOUT_STOCK_MODAL_DESCRIPTION });
|
|
11
11
|
const buttonText = useI18nMessage({ id: I18nMessages.SIZE_WITHOUT_STOCK_MODAL_BUTTON });
|
|
12
12
|
return (React.createElement(Modal, { visible: visible },
|
|
13
|
-
React.createElement(Text, {
|
|
14
|
-
React.createElement(Text, {
|
|
13
|
+
React.createElement(Text, { level: 1, style: style.modalTitle, body: true }, titleText),
|
|
14
|
+
React.createElement(Text, { level: 3, style: style.modalDescription, body: true }, descriptionText),
|
|
15
15
|
React.createElement(Button
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
17
17
|
// @ts-ignore
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare const style: {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
button: {
|
|
3
|
+
flex: number;
|
|
4
4
|
};
|
|
5
5
|
modalDescription: {
|
|
6
6
|
marginVertical: number;
|
|
7
7
|
textAlign: "center";
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
modalTitle: {
|
|
10
|
+
textAlign: "center";
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export { style };
|
|
@@ -2,15 +2,15 @@ import { StyleSheet } from "react-native";
|
|
|
2
2
|
import { theme } from "../../../../theme/theme";
|
|
3
3
|
const { spaceXL } = theme();
|
|
4
4
|
const style = StyleSheet.create({
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
button: {
|
|
6
|
+
flex: 0,
|
|
7
7
|
},
|
|
8
8
|
modalDescription: {
|
|
9
9
|
marginVertical: spaceXL,
|
|
10
10
|
textAlign: "center",
|
|
11
11
|
},
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
modalTitle: {
|
|
13
|
+
textAlign: "center",
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
16
|
export { style };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": "^14.20.0 || ^18.9.0"
|
|
10
|
+
"node": "^14.20.0 || ^16.13.0 || ^18.9.0"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"start": "expo start",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"eslint-plugin-prettier": "^4.2.1",
|
|
68
68
|
"eslint-plugin-react": "^7.31.8",
|
|
69
69
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
70
|
+
"eslint-plugin-react-native": "^4.0.0",
|
|
70
71
|
"expo": "~46.0.8",
|
|
71
72
|
"expo-status-bar": "~1.4.0",
|
|
72
73
|
"husky": "^8.0.1",
|