@lookiero/checkout 0.2.26 → 0.2.27-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.
- package/dist/infrastructure/delivery/_mock/bootstrap.mock.d.ts +6 -0
- package/dist/infrastructure/delivery/_mock/bootstrap.mock.js +34 -0
- package/dist/infrastructure/delivery/_mock/checkout.mock.d.ts +9 -0
- package/dist/infrastructure/delivery/_mock/checkout.mock.js +46 -0
- package/dist/infrastructure/domain/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +15 -0
- package/dist/infrastructure/domain/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +15 -0
- package/dist/infrastructure/domain/react/useSetCheckoutIntroShown.d.ts +10 -0
- package/dist/infrastructure/domain/react/useSetCheckoutIntroShown.js +9 -0
- package/dist/infrastructure/domain/react/useUpdateUiSetting.d.ts +14 -0
- package/dist/infrastructure/domain/react/useUpdateUiSetting.js +15 -0
- package/dist/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +17 -7
- package/dist/infrastructure/projection/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +36 -0
- package/dist/infrastructure/projection/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +30 -0
- package/dist/infrastructure/projection/httpFirstAvailableCheckoutByCustomerIdView.d.ts +60 -0
- package/dist/infrastructure/projection/httpFirstAvailableCheckoutByCustomerIdView.js +54 -0
- package/dist/infrastructure/projection/httpFiveItemsDiscountByCustomerIdView.d.ts +12 -0
- package/dist/infrastructure/projection/httpFiveItemsDiscountByCustomerIdView.js +7 -0
- package/dist/infrastructure/projection/httpIsCheckoutEnabledByCustomerIdView.d.ts +12 -0
- package/dist/infrastructure/projection/httpIsCheckoutEnabledByCustomerIdView.js +7 -0
- package/dist/infrastructure/projection/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +10 -0
- package/dist/infrastructure/projection/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +9 -0
- package/dist/infrastructure/projection/react/useViewCheckoutIntroShown.d.ts +2 -0
- package/dist/infrastructure/projection/react/useViewCheckoutIntroShown.js +6 -0
- package/dist/infrastructure/projection/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +10 -0
- package/dist/infrastructure/projection/react/useViewFirstAvailableCheckoutByCustomerId.js +9 -0
- package/dist/infrastructure/projection/react/useViewFiveItemsDiscountByCustomerId.d.ts +10 -0
- package/dist/infrastructure/projection/react/useViewFiveItemsDiscountByCustomerId.js +9 -0
- package/dist/infrastructure/projection/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +10 -0
- package/dist/infrastructure/projection/react/useViewIsCheckoutAccessibleByCustomerId.js +9 -0
- package/dist/infrastructure/projection/react/useViewUiSettingByKey.d.ts +10 -0
- package/dist/infrastructure/projection/react/useViewUiSettingByKey.js +12 -0
- package/dist/infrastructure/projection/storageUiSettingByKeyView.d.ts +13 -0
- package/dist/infrastructure/projection/storageUiSettingByKeyView.js +15 -0
- package/dist/infrastructure/ui/components/atoms/spinner/Spinner.d.ts +3 -0
- package/dist/infrastructure/ui/components/atoms/spinner/Spinner.js +8 -0
- package/dist/infrastructure/ui/components/atoms/spinner/Spinner.style.d.ts +9 -0
- package/dist/infrastructure/ui/components/atoms/spinner/Spinner.style.js +10 -0
- package/dist/infrastructure/ui/components/layouts/slider/Pagination.d.ts +14 -0
- package/dist/infrastructure/ui/components/layouts/slider/Pagination.js +11 -0
- package/dist/infrastructure/ui/components/layouts/slider/Pagination.style.d.ts +23 -0
- package/dist/infrastructure/ui/components/layouts/slider/Pagination.style.js +27 -0
- package/dist/infrastructure/ui/components/layouts/slider/Slider.d.ts +20 -0
- package/dist/infrastructure/ui/components/layouts/slider/Slider.js +132 -0
- package/dist/infrastructure/ui/components/layouts/slider/Slider.style.d.ts +11 -0
- package/dist/infrastructure/ui/components/layouts/slider/Slider.style.js +12 -0
- package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.d.ts +15 -0
- package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.js +20 -0
- package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.style.d.ts +6 -0
- package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.style.js +9 -0
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +1 -1
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.d.ts +10 -0
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.js +11 -0
- package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.d.ts +4 -3
- package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.js +3 -3
- package/dist/infrastructure/ui/views/item/components/actions/Actions.d.ts +11 -0
- package/dist/infrastructure/ui/views/item/components/actions/Actions.js +24 -0
- package/dist/infrastructure/ui/views/item/components/actions/Actions.style.d.ts +20 -0
- package/dist/infrastructure/ui/views/item/components/actions/Actions.style.js +23 -0
- package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +16 -14
- package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +3 -0
- package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +3 -0
- package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +1 -1
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +11 -9
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +3 -0
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +3 -0
- package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +11 -9
- package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +3 -0
- package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +3 -0
- package/dist/infrastructure/ui/views/summary/Summary.js +5 -2
- package/package.json +5 -3
package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js
CHANGED
|
@@ -2,22 +2,24 @@ import { Button } from "@lookiero/aurora-next/build/components/atoms/Button/Butt
|
|
|
2
2
|
import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
|
|
3
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
4
4
|
import React from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { View } from "react-native";
|
|
6
6
|
import { I18nMessages } from "../../../../i18n/i18n";
|
|
7
|
+
import { Modal } from "../../../../shared/components/layouts/modal/Modal";
|
|
7
8
|
import { style } from "./SizeWithoutStockModal.style";
|
|
8
9
|
const SizeWithoutStockModal = ({ visible, onDismiss }) => {
|
|
9
10
|
const titleText = useI18nMessage({ id: I18nMessages.SIZE_WITHOUT_STOCK_MODAL_TITLE });
|
|
10
11
|
const descriptionText = useI18nMessage({ id: I18nMessages.SIZE_WITHOUT_STOCK_MODAL_DESCRIPTION });
|
|
11
12
|
const buttonText = useI18nMessage({ id: I18nMessages.SIZE_WITHOUT_STOCK_MODAL_BUTTON });
|
|
12
|
-
return (React.createElement(Modal, { visible: visible },
|
|
13
|
-
React.createElement(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
, {
|
|
13
|
+
return (React.createElement(Modal, { visible: visible, onClose: onDismiss },
|
|
14
|
+
React.createElement(View, { style: style.modal },
|
|
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
|
+
React.createElement(Button
|
|
19
18
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
20
19
|
// @ts-ignore
|
|
21
|
-
|
|
20
|
+
, {
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
style: style.button, onPress: onDismiss }, buttonText))));
|
|
22
24
|
};
|
|
23
25
|
export { SizeWithoutStockModal };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
|
|
2
2
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
3
|
-
import React from "react";
|
|
3
|
+
import React, { useState } from "react";
|
|
4
4
|
import { StyleSheet, View } from "react-native";
|
|
5
5
|
import { SafeAreaScrollView } from "../../components/templates/SafeAreaScrollView";
|
|
6
|
+
import { SizeWithoutStockModal } from "../item/components/sizeWithoutStockModal/SizeWithoutStockModal";
|
|
6
7
|
const Summary = () => {
|
|
7
8
|
const summaryText = useI18nMessage({ id: "summary" });
|
|
9
|
+
const [modalVisible, setModalVisible] = useState(true);
|
|
8
10
|
return (React.createElement(SafeAreaScrollView, null,
|
|
9
11
|
React.createElement(View, { style: styles.container },
|
|
10
|
-
React.createElement(Text, { heading: true, level: 3 }, summaryText)
|
|
12
|
+
React.createElement(Text, { heading: true, level: 3 }, summaryText),
|
|
13
|
+
React.createElement(SizeWithoutStockModal, { visible: modalVisible, onDismiss: () => setModalVisible(false) }))));
|
|
11
14
|
};
|
|
12
15
|
const styles = StyleSheet.create({
|
|
13
16
|
container: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.27-beta.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -31,8 +31,10 @@
|
|
|
31
31
|
"@lookiero/messaging-react": "^8.0.0",
|
|
32
32
|
"@react-spring/native": "^9.5.5",
|
|
33
33
|
"react-native-safe-area-context": "^4.4.1",
|
|
34
|
-
"react-
|
|
35
|
-
"react-router
|
|
34
|
+
"react-intl": "^6.0.5",
|
|
35
|
+
"react-router": "^6.4.2",
|
|
36
|
+
"react-router-dom": "^6.4.2",
|
|
37
|
+
"react-router-native": "^6.4.2",
|
|
36
38
|
"tiny-invariant": "^1.2.0",
|
|
37
39
|
"uuid": "^9.0.0"
|
|
38
40
|
},
|