@lookiero/checkout 0.2.15 → 0.2.16
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/dist/infrastructure/ui/components/atoms/modal/Modal.d.ts +7 -0
- package/dist/infrastructure/ui/components/atoms/modal/Modal.js +7 -0
- package/dist/infrastructure/ui/components/atoms/modal/Modal.style.d.ts +23 -0
- package/dist/infrastructure/ui/components/atoms/modal/Modal.style.js +26 -0
- package/dist/infrastructure/ui/i18n/i18n.d.ts +4 -1
- package/dist/infrastructure/ui/i18n/i18n.js +3 -0
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +7 -0
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +17 -0
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +11 -0
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Modal as RNModal, View } from "react-native";
|
|
3
|
+
import { style } from "./Modal.style";
|
|
4
|
+
const Modal = ({ children, visible }) => (React.createElement(RNModal, { transparent: true, visible: visible },
|
|
5
|
+
React.createElement(View, { style: style.centeredView },
|
|
6
|
+
React.createElement(View, { style: style.modalView }, children))));
|
|
7
|
+
export { Modal };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const style: {
|
|
2
|
+
centeredView: {
|
|
3
|
+
flex: number;
|
|
4
|
+
justifyContent: "center";
|
|
5
|
+
alignItems: "center";
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
paddingHorizontal: number;
|
|
8
|
+
};
|
|
9
|
+
modalView: {
|
|
10
|
+
alignItems: "center";
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
padding: number;
|
|
13
|
+
shadowColor: string;
|
|
14
|
+
shadowOffset: {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
};
|
|
18
|
+
shadowOpacity: number;
|
|
19
|
+
shadowRadius: number;
|
|
20
|
+
elevation: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export { style };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { StyleSheet } from "react-native";
|
|
2
|
+
import { theme } from "../../../theme/theme";
|
|
3
|
+
const { colorBase, colorContent, colorOverlay, spaceXL } = theme();
|
|
4
|
+
const style = StyleSheet.create({
|
|
5
|
+
centeredView: {
|
|
6
|
+
flex: 1,
|
|
7
|
+
justifyContent: "center",
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
backgroundColor: colorOverlay,
|
|
10
|
+
paddingHorizontal: spaceXL,
|
|
11
|
+
},
|
|
12
|
+
modalView: {
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
backgroundColor: colorBase,
|
|
15
|
+
padding: spaceXL,
|
|
16
|
+
shadowColor: colorContent,
|
|
17
|
+
shadowOffset: {
|
|
18
|
+
width: 0,
|
|
19
|
+
height: 2,
|
|
20
|
+
},
|
|
21
|
+
shadowOpacity: 0.25,
|
|
22
|
+
shadowRadius: 4,
|
|
23
|
+
elevation: 5,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
export { style };
|
|
@@ -15,6 +15,9 @@ declare enum I18nMessages {
|
|
|
15
15
|
ITEM_BANNER_CUSTOMER_KEPT_DECISSION = "item.banner_customer_kept_decission",
|
|
16
16
|
ITEM_BANNER_CUSTOMER_REPLACED_DECISSION = "item.banner_customer_replaced_decission",
|
|
17
17
|
ITEM_BANNER_CUSTOMER_RETURNED_DECISSION = "item.banner_customer_returned_decission",
|
|
18
|
-
ITEM_BANNER_BUTTON = "item.banner_button"
|
|
18
|
+
ITEM_BANNER_BUTTON = "item.banner_button",
|
|
19
|
+
SIZE_CHANGE_MODAL_TITLE = "size_change_modal.title",
|
|
20
|
+
SIZE_CHANGE_MODAL_DESCRIPTION = "size_change_modal.description",
|
|
21
|
+
SIZE_CHANGE_MODAL_BUTTON = "size_change_modal.button"
|
|
19
22
|
}
|
|
20
23
|
export { I18nMessages };
|
|
@@ -17,5 +17,8 @@ var I18nMessages;
|
|
|
17
17
|
I18nMessages["ITEM_BANNER_CUSTOMER_REPLACED_DECISSION"] = "item.banner_customer_replaced_decission";
|
|
18
18
|
I18nMessages["ITEM_BANNER_CUSTOMER_RETURNED_DECISSION"] = "item.banner_customer_returned_decission";
|
|
19
19
|
I18nMessages["ITEM_BANNER_BUTTON"] = "item.banner_button";
|
|
20
|
+
I18nMessages["SIZE_CHANGE_MODAL_TITLE"] = "size_change_modal.title";
|
|
21
|
+
I18nMessages["SIZE_CHANGE_MODAL_DESCRIPTION"] = "size_change_modal.description";
|
|
22
|
+
I18nMessages["SIZE_CHANGE_MODAL_BUTTON"] = "size_change_modal.button";
|
|
20
23
|
})(I18nMessages || (I18nMessages = {}));
|
|
21
24
|
export { I18nMessages };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Button } from "@lookiero/aurora-next/build/components/atoms/Button/Button";
|
|
2
|
+
import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
|
|
3
|
+
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Modal } from "../../../../components/atoms/modal/Modal";
|
|
6
|
+
import { I18nMessages } from "../../../../i18n/i18n";
|
|
7
|
+
import { style } from "./SizeChangeModal.style";
|
|
8
|
+
const SizeChangeModal = ({ visible, onDismiss }) => {
|
|
9
|
+
const titleText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_TITLE });
|
|
10
|
+
const descriptionText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_DESCRIPTION });
|
|
11
|
+
const buttonText = useI18nMessage({ id: I18nMessages.SIZE_CHANGE_MODAL_BUTTON });
|
|
12
|
+
return (React.createElement(Modal, { visible: visible },
|
|
13
|
+
React.createElement(Text, { body: true, level: 1, style: style.modalTitle }, titleText),
|
|
14
|
+
React.createElement(Text, { body: true, level: 3, style: style.modalDescription }, descriptionText),
|
|
15
|
+
React.createElement(Button, { onPress: onDismiss }, buttonText)));
|
|
16
|
+
};
|
|
17
|
+
export { SizeChangeModal };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StyleSheet } from "react-native";
|
|
2
|
+
import { theme } from "../../../../theme/theme";
|
|
3
|
+
const { spaceL, spaceXL } = theme();
|
|
4
|
+
const style = StyleSheet.create({
|
|
5
|
+
modalTitle: {
|
|
6
|
+
marginBottom: spaceXL,
|
|
7
|
+
textAlign: "center",
|
|
8
|
+
},
|
|
9
|
+
modalDescription: {
|
|
10
|
+
marginBottom: spaceL,
|
|
11
|
+
textAlign: "center",
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
export { style };
|