@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.
Files changed (70) hide show
  1. package/dist/infrastructure/delivery/_mock/bootstrap.mock.d.ts +6 -0
  2. package/dist/infrastructure/delivery/_mock/bootstrap.mock.js +34 -0
  3. package/dist/infrastructure/delivery/_mock/checkout.mock.d.ts +9 -0
  4. package/dist/infrastructure/delivery/_mock/checkout.mock.js +46 -0
  5. package/dist/infrastructure/domain/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +15 -0
  6. package/dist/infrastructure/domain/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +15 -0
  7. package/dist/infrastructure/domain/react/useSetCheckoutIntroShown.d.ts +10 -0
  8. package/dist/infrastructure/domain/react/useSetCheckoutIntroShown.js +9 -0
  9. package/dist/infrastructure/domain/react/useUpdateUiSetting.d.ts +14 -0
  10. package/dist/infrastructure/domain/react/useUpdateUiSetting.js +15 -0
  11. package/dist/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +17 -7
  12. package/dist/infrastructure/projection/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +36 -0
  13. package/dist/infrastructure/projection/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +30 -0
  14. package/dist/infrastructure/projection/httpFirstAvailableCheckoutByCustomerIdView.d.ts +60 -0
  15. package/dist/infrastructure/projection/httpFirstAvailableCheckoutByCustomerIdView.js +54 -0
  16. package/dist/infrastructure/projection/httpFiveItemsDiscountByCustomerIdView.d.ts +12 -0
  17. package/dist/infrastructure/projection/httpFiveItemsDiscountByCustomerIdView.js +7 -0
  18. package/dist/infrastructure/projection/httpIsCheckoutEnabledByCustomerIdView.d.ts +12 -0
  19. package/dist/infrastructure/projection/httpIsCheckoutEnabledByCustomerIdView.js +7 -0
  20. package/dist/infrastructure/projection/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +10 -0
  21. package/dist/infrastructure/projection/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +9 -0
  22. package/dist/infrastructure/projection/react/useViewCheckoutIntroShown.d.ts +2 -0
  23. package/dist/infrastructure/projection/react/useViewCheckoutIntroShown.js +6 -0
  24. package/dist/infrastructure/projection/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +10 -0
  25. package/dist/infrastructure/projection/react/useViewFirstAvailableCheckoutByCustomerId.js +9 -0
  26. package/dist/infrastructure/projection/react/useViewFiveItemsDiscountByCustomerId.d.ts +10 -0
  27. package/dist/infrastructure/projection/react/useViewFiveItemsDiscountByCustomerId.js +9 -0
  28. package/dist/infrastructure/projection/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +10 -0
  29. package/dist/infrastructure/projection/react/useViewIsCheckoutAccessibleByCustomerId.js +9 -0
  30. package/dist/infrastructure/projection/react/useViewUiSettingByKey.d.ts +10 -0
  31. package/dist/infrastructure/projection/react/useViewUiSettingByKey.js +12 -0
  32. package/dist/infrastructure/projection/storageUiSettingByKeyView.d.ts +13 -0
  33. package/dist/infrastructure/projection/storageUiSettingByKeyView.js +15 -0
  34. package/dist/infrastructure/ui/components/atoms/spinner/Spinner.d.ts +3 -0
  35. package/dist/infrastructure/ui/components/atoms/spinner/Spinner.js +8 -0
  36. package/dist/infrastructure/ui/components/atoms/spinner/Spinner.style.d.ts +9 -0
  37. package/dist/infrastructure/ui/components/atoms/spinner/Spinner.style.js +10 -0
  38. package/dist/infrastructure/ui/components/layouts/slider/Pagination.d.ts +14 -0
  39. package/dist/infrastructure/ui/components/layouts/slider/Pagination.js +11 -0
  40. package/dist/infrastructure/ui/components/layouts/slider/Pagination.style.d.ts +23 -0
  41. package/dist/infrastructure/ui/components/layouts/slider/Pagination.style.js +27 -0
  42. package/dist/infrastructure/ui/components/layouts/slider/Slider.d.ts +20 -0
  43. package/dist/infrastructure/ui/components/layouts/slider/Slider.js +132 -0
  44. package/dist/infrastructure/ui/components/layouts/slider/Slider.style.d.ts +11 -0
  45. package/dist/infrastructure/ui/components/layouts/slider/Slider.style.js +12 -0
  46. package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.d.ts +15 -0
  47. package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.js +20 -0
  48. package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.style.d.ts +6 -0
  49. package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.style.js +9 -0
  50. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +1 -1
  51. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.d.ts +10 -0
  52. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.js +11 -0
  53. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.d.ts +4 -3
  54. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.js +3 -3
  55. package/dist/infrastructure/ui/views/item/components/actions/Actions.d.ts +11 -0
  56. package/dist/infrastructure/ui/views/item/components/actions/Actions.js +24 -0
  57. package/dist/infrastructure/ui/views/item/components/actions/Actions.style.d.ts +20 -0
  58. package/dist/infrastructure/ui/views/item/components/actions/Actions.style.js +23 -0
  59. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +16 -14
  60. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +3 -0
  61. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +3 -0
  62. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +1 -1
  63. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +11 -9
  64. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +3 -0
  65. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +3 -0
  66. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +11 -9
  67. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +3 -0
  68. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +3 -0
  69. package/dist/infrastructure/ui/views/summary/Summary.js +5 -2
  70. package/package.json +5 -3
@@ -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 { Modal } from "../../../../components/atoms/modal/Modal";
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(Text, { level: 1, style: style.modalTitle, body: true }, titleText),
14
- React.createElement(Text, { level: 3, style: style.modalDescription, body: true }, descriptionText),
15
- React.createElement(Button
16
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
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
- style: style.button, onPress: onDismiss }, buttonText)));
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 };
@@ -2,6 +2,9 @@ declare const style: {
2
2
  button: {
3
3
  flex: number;
4
4
  };
5
+ modal: {
6
+ padding: number;
7
+ };
5
8
  modalDescription: {
6
9
  marginVertical: number;
7
10
  textAlign: "center";
@@ -5,6 +5,9 @@ const style = StyleSheet.create({
5
5
  button: {
6
6
  flex: 0,
7
7
  },
8
+ modal: {
9
+ padding: spaceXL,
10
+ },
8
11
  modalDescription: {
9
12
  marginVertical: spaceXL,
10
13
  textAlign: "center",
@@ -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.26",
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-router-dom": "^6.4.1",
35
- "react-router-native": "^6.3.0",
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
  },