@lookiero/checkout 4.0.1-beta.1 → 4.0.2
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/shared/tracking/infrastructure/useTrackCheckout.js +10 -8
- package/dist/shared/tracking/tracking.d.ts +10 -8
- package/package.json +1 -1
- package/dist/domain/checkoutBooking/event/createNotificationWhenCheckoutBookingExpired.d.ts +0 -6
- package/dist/domain/checkoutBooking/event/createNotificationWhenCheckoutBookingExpired.js +0 -13
- package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +0 -10
- package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +0 -11
- package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +0 -6
- package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +0 -7
- package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -6
- package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +0 -9
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.d.ts +0 -13
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.js +0 -19
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.ts.d.ts +0 -6
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.ts.js +0 -7
- package/dist/infrastructure/ui/components/templates/header/header/Header.d.ts +0 -3
- package/dist/infrastructure/ui/components/templates/header/header/Header.js +0 -10
- package/dist/infrastructure/ui/components/templates/header/header/Header.style.d.ts +0 -9
- package/dist/infrastructure/ui/components/templates/header/header/Header.style.js +0 -12
- package/dist/infrastructure/ui/components/templates/safeAreaScrollView/SafeAreaScrollView.d.ts +0 -13
- package/dist/infrastructure/ui/components/templates/safeAreaScrollView/SafeAreaScrollView.js +0 -19
- package/dist/infrastructure/ui/components/templates/safeAreaScrollView/SafeAreaScrollView.style.ts.d.ts +0 -6
- package/dist/infrastructure/ui/components/templates/safeAreaScrollView/SafeAreaScrollView.style.ts.js +0 -7
- package/dist/infrastructure/ui/hooks/usePaymentInstrumentUpdateEvents.d.ts +0 -2
- package/dist/infrastructure/ui/hooks/usePaymentInstrumentUpdateEvents.js +0 -28
- package/dist/infrastructure/ui/hooks/useToast.d.ts +0 -11
- package/dist/infrastructure/ui/hooks/useToast.js +0 -49
- package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.d.ts +0 -7
- package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.js +0 -25
- package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.d.ts +0 -16
- package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.js +0 -19
- package/dist/infrastructure/ui/views/intro/Intro.d.ts +0 -6
- package/dist/infrastructure/ui/views/intro/Intro.js +0 -52
- package/dist/infrastructure/ui/views/intro/Intro.style.d.ts +0 -52
- package/dist/infrastructure/ui/views/intro/Intro.style.js +0 -55
- package/dist/infrastructure/ui/views/item/Item.style.d.ts +0 -15
- package/dist/infrastructure/ui/views/item/Item.style.js +0 -18
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +0 -26
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +0 -44
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.d.ts +0 -45
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.js +0 -53
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +0 -7
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +0 -25
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +0 -16
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +0 -19
- package/dist/infrastructure/ui/views/navigation/Navigation.d.ts +0 -21
- package/dist/infrastructure/ui/views/navigation/Navigation.js +0 -45
- package/dist/infrastructure/ui/views/navigation/Navigation.style.d.ts +0 -5
- package/dist/infrastructure/ui/views/navigation/Navigation.style.js +0 -30
- package/dist/infrastructure/ui/views/navigation/components/header/Header.d.ts +0 -46
- package/dist/infrastructure/ui/views/navigation/components/header/Header.js +0 -120
- package/dist/infrastructure/ui/views/navigation/components/header/Header.style.d.ts +0 -31
- package/dist/infrastructure/ui/views/navigation/components/header/Header.style.js +0 -34
- package/dist/infrastructure/ui/views/navigation/components/header/Logo.d.ts +0 -7
- package/dist/infrastructure/ui/views/navigation/components/header/Logo.js +0 -11
- package/dist/infrastructure/ui/views/navigation/components/header/Logo.style.d.ts +0 -7
- package/dist/infrastructure/ui/views/navigation/components/header/Logo.style.js +0 -8
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +0 -12
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +0 -24
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +0 -15
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +0 -18
- package/dist/shared/notifications/domain/notification/command/createNotification.d.ts +0 -17
- package/dist/shared/notifications/domain/notification/command/createNotification.js +0 -7
- package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.d.ts +0 -21
- package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.js +0 -22
- package/dist/shared/notifications/infrastructure/ui/components/NotificationItem.d.ts +0 -12
- package/dist/shared/notifications/infrastructure/ui/components/NotificationItem.js +0 -24
- package/dist/shared/notifications/infrastructure/ui/components/Notifications.d.ts +0 -9
- package/dist/shared/notifications/infrastructure/ui/components/Notifications.js +0 -20
- package/dist/shared/notifications/infrastructure/ui/components/Notifications.style.d.ts +0 -36
- package/dist/shared/notifications/infrastructure/ui/components/Notifications.style.js +0 -31
- package/dist/shared/tracking/infrastructure/usePageView.d.ts +0 -13
- package/dist/shared/tracking/infrastructure/usePageView.js +0 -27
- package/dist/shared/ui/components/atoms/error/Error.style.d.ts +0 -6
- package/dist/shared/ui/components/atoms/error/Error.style.js +0 -9
- package/dist/shared/ui/components/layouts/slider/Bullets.d.ts +0 -10
- package/dist/shared/ui/components/layouts/slider/Bullets.js +0 -29
- package/dist/shared/ui/components/layouts/slider/Bullets.style.d.ts +0 -12
- package/dist/shared/ui/components/layouts/slider/Bullets.style.js +0 -15
- package/dist/shared/ui/components/layouts/slider/Pagination.d.ts +0 -14
- package/dist/shared/ui/components/layouts/slider/Pagination.js +0 -11
- package/dist/shared/ui/components/layouts/slider/Pagination.style.d.ts +0 -23
- package/dist/shared/ui/components/layouts/slider/Pagination.style.js +0 -27
- package/dist/shared/ui/components/layouts/slider/Slider.d.ts +0 -15
- package/dist/shared/ui/components/layouts/slider/Slider.js +0 -132
- package/dist/shared/ui/components/layouts/slider/Slider.style.d.ts +0 -11
- package/dist/shared/ui/components/layouts/slider/Slider.style.js +0 -12
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
3
|
-
import Svg, { Path } from "react-native-svg";
|
|
4
|
-
import { theme } from "../../../../theme/theme";
|
|
5
|
-
import { style } from "./Logo.style";
|
|
6
|
-
const { colorContent } = theme();
|
|
7
|
-
const Logo = ({ style: customStyle }) => (React.createElement(View, { style: [style.logo, customStyle] },
|
|
8
|
-
React.createElement(Svg, { fill: "none", viewBox: "0 0 217 54" },
|
|
9
|
-
React.createElement(Path, { d: "M153.446 25.0277C153.345 25.0277 152.341 24.902 151.939 24.7261C151.588 24.5753 150.583 23.9973 150.935 23.4946C151.035 23.3439 151.236 23.2433 151.437 23.1931C152.24 22.9417 153.094 22.9669 153.923 23.0925C153.998 23.0925 154.073 23.1177 154.124 23.1679C154.174 23.2182 154.199 23.2936 154.224 23.369C154.274 23.5952 154.35 23.8465 154.35 24.0978C154.299 24.6256 153.973 25.0277 153.446 25.0277Z", fill: colorContent }),
|
|
10
|
-
React.createElement(Path, { d: "M216.987 31.2774C216.962 30.825 216.786 30.5486 216.61 30.1465C216.46 29.7946 216.585 29.7444 216.686 29.5936C216.937 29.1412 216.61 28.5129 216.535 28.0606C216.485 27.6836 216.359 27.4323 215.983 27.2815C215.857 27.2312 215.782 27.2312 215.706 27.2312C215.706 27.2312 215.706 27.2312 215.681 27.2312C215.631 27.2564 215.581 27.4072 215.531 27.5077C215.455 27.6836 215.38 27.8847 215.229 28.0857L215.129 28.2114H214.953C214.376 28.2114 213.823 28.0606 213.246 28.136C212.693 28.2114 212.141 28.337 211.589 28.4878C209.68 28.9904 207.898 29.9203 206.366 31.1769C205.864 31.579 205.387 32.0565 204.985 32.5842C204.659 33.0115 204.483 33.6649 204.006 33.9916C203.755 34.1675 203.453 34.2429 203.027 34.2429C202.675 34.2429 202.324 34.1926 201.997 34.1424C201.872 34.1173 201.746 34.1173 201.621 34.0921C199.838 33.9162 198.13 33.3633 196.398 32.4083C195.996 32.1821 195.62 31.956 195.243 31.7046C194.339 31.1266 193.485 30.5989 192.381 30.3475C191.979 30.2721 191.602 30.2219 191.201 30.2219C190.146 30.247 189.117 30.624 188.087 31.3779C188.062 31.4031 187.936 31.5287 187.836 31.6292C187.359 32.1067 187.058 32.4083 186.756 32.4334H186.731H186.706C186.455 32.3832 186.455 32.0816 186.455 31.8806C186.455 31.7549 186.455 31.6292 186.455 31.5036C186.455 31.3779 186.455 31.2271 186.43 31.1015C186.405 30.8753 186.355 30.6994 186.154 30.5737C186.003 30.4732 185.802 30.4732 185.626 30.4732C185.526 30.4732 185.4 30.4732 185.275 30.4983C184.848 30.5486 184.446 30.6742 184.17 30.9004C183.894 31.1266 183.743 31.4031 183.593 31.7046C183.517 31.8806 183.417 32.0816 183.291 32.2827C182.99 32.735 182.639 33.1874 182.312 33.6146C180.379 36.0775 178.119 37.6608 175.232 38.5404C172.972 39.2441 171.038 39.5959 169.331 39.621C167.975 39.6462 166.745 39.4451 165.69 39.0681C164.711 38.6912 164.058 38.2891 163.632 37.8116C163.406 37.5351 163.205 37.2838 163.28 37.0074C163.355 36.7309 163.657 36.6053 164.008 36.5047C164.209 36.4293 164.41 36.3791 164.636 36.3037C165.665 35.9519 166.72 35.6251 167.599 35.0723L167.624 35.0471C168.503 34.5194 169.683 33.7905 170.034 32.9109C170.235 32.4083 170.361 31.78 170.135 31.2523C169.959 30.8502 169.632 30.6491 169.256 30.4481C168.754 30.1968 168.251 29.9454 167.699 29.8198C167.272 29.7193 166.845 29.669 166.469 29.6941C164.736 29.7193 163.154 31.1769 162.05 32.3832C161.397 33.0869 160.945 34.1675 160.167 34.7204C159.74 35.022 159.263 35.2733 158.811 35.5246C158.61 35.6251 158.409 35.7257 158.208 35.8513C156.827 36.6304 155.371 37.2587 153.739 37.8116C153.513 37.887 153.262 37.9624 153.036 38.0629C151.981 38.4399 150.876 38.842 149.671 38.842C149.47 38.842 149.244 38.842 149.044 38.8168C148.115 38.7163 147.487 38.3896 147.186 37.8116C146.482 36.4796 147.738 34.3434 148.918 32.6094C148.993 32.5088 149.069 32.4083 149.169 32.2827C149.47 31.8806 149.897 31.3277 149.797 30.9507C149.747 30.7748 149.596 30.6491 149.32 30.4983C149.119 30.3978 148.868 30.3475 148.617 30.3475C147.914 30.3475 147.16 30.7496 146.909 31.202C146.784 31.4282 146.784 31.7046 146.683 31.9308C146.558 32.2324 146.382 32.5088 146.206 32.7853C145.855 33.3382 145.428 33.8659 144.951 34.2932C144.172 35.022 143.294 35.7005 142.44 36.3791L141.913 36.7812C140.959 37.5351 139.854 38.2639 138.347 39.1435L138.096 39.2943C137.519 39.6462 136.866 40.0231 136.213 40.1739C136.088 40.1991 135.962 40.2242 135.836 40.2242C135.259 40.2242 134.907 39.9226 134.556 39.621L134.456 39.5456C133.527 38.7414 132.823 37.7864 132.146 36.8566C131.166 35.5246 130.237 34.268 128.756 33.4387C128.204 33.1371 127.551 32.8858 126.848 32.735C126.797 32.735 126.722 32.7099 126.597 32.7099C125.919 32.6345 125.417 32.5591 125.291 32.2073C125.191 31.8806 125.366 31.6795 127.827 30.5486C128.003 30.4732 128.128 30.4229 128.153 30.3978C128.706 30.0962 129.283 29.7695 129.81 29.4679C130.564 29.0407 131.342 28.5883 132.146 28.2114C132.472 28.0606 132.798 27.8595 133.125 27.6836C134.23 27.0553 135.385 26.5778 136.514 25.9747C137.469 25.4469 138.473 25.0699 139.452 24.5924C139.678 24.4919 139.904 24.3914 140.18 24.2909C141.084 23.939 142.189 23.4867 141.762 23.1599C141.536 22.984 141.285 22.8332 141.235 22.8081C140.959 22.6573 140.733 22.5819 140.507 22.5819C140.356 22.5819 140.205 22.6071 140.004 22.6573C139.276 22.8584 138.649 23.3107 137.996 23.6626C137.318 24.0395 136.59 24.3663 135.912 24.7181C134.757 25.2961 133.627 25.8993 132.497 26.5024C131.995 26.7789 131.468 27.0553 130.965 27.3066C129.158 28.2616 127.199 29.2418 124.638 30.4983C124.111 30.7496 123.584 30.9758 123.056 31.202C122.529 31.4282 122.002 31.6795 121.474 31.9308C121.424 31.9559 121.349 32.0062 121.274 32.0313C120.822 32.2575 120.119 32.6345 119.616 32.6345C119.165 32.6345 118.888 32.3832 118.863 31.9811C118.813 31.3025 119.24 30.825 119.466 30.247C119.717 29.5685 119.993 28.915 120.244 28.2365C120.771 26.9045 121.299 25.5977 121.851 24.2909C122.479 22.783 123.132 21.2751 123.835 19.7672C124.462 18.385 125.14 16.9776 126.145 15.7964C126.27 15.6456 126.396 15.4446 126.32 15.2435C126.245 15.0676 125.994 14.8917 125.617 14.7912C125.442 14.7409 125.266 14.7158 125.09 14.7409C124.588 14.7409 124.161 14.9671 123.91 15.3692C123.132 16.5504 122.504 17.8321 121.876 19.0635C120.445 21.9536 118.637 24.6678 116.603 27.2061C114.017 30.4481 111.331 33.7905 106.736 35.5246C103.899 36.6053 100.936 37.2336 97.9228 36.6053C97.4959 36.5047 97.0691 36.1529 96.7427 35.8513C96.4665 35.6 96.2405 35.1979 95.889 35.0974C95.5124 34.9969 95.0102 35.2482 94.734 34.9215C94.5834 34.7204 94.5332 34.3183 94.4578 34.067C94.3825 33.8157 93.7548 33.69 93.5037 33.69C93.3531 33.69 93.2024 33.7152 93.0518 33.7152C92.9011 33.7152 92.7756 33.7403 92.65 33.7403C92.0223 33.7403 91.4197 33.6649 90.8171 33.5895C90.3652 33.5392 89.8881 33.4638 89.4361 33.4387C89.3106 33.4387 89.1851 33.4387 89.0344 33.4387C87.2266 33.4638 85.5443 34.2429 83.9123 34.9969C83.611 35.1476 83.3097 35.2733 83.0084 35.399C82.7322 35.5246 82.4811 35.6503 82.2049 35.7508C80.4473 36.555 78.6144 37.3843 76.4551 37.4346C76.3798 37.4346 76.3045 37.4346 76.2291 37.4346C75.2248 37.4346 74.4966 37.1833 73.7434 36.9068C73.4923 36.8063 73.2161 36.7309 72.9399 36.6304C72.0862 36.3791 71.0317 36.4545 70.1529 36.5047C69.249 36.555 68.2949 36.7058 67.4914 37.1582C66.5624 37.7111 65.784 38.4399 65.0308 39.1435L64.7546 39.42C63.8256 40.2745 62.9468 41.2295 62.1182 42.1342C61.365 42.9635 60.5615 43.818 59.7329 44.6222C57.7493 46.5071 56.0671 48.0903 54.1839 49.5982C52.7026 50.7794 50.4679 52.3627 48.0575 52.5889C47.932 52.5889 47.8064 52.614 47.6809 52.614C45.2956 52.6643 43.0609 50.9553 41.8808 49.2213C40.6756 47.4872 40.0479 45.5772 39.8722 43.24C39.6713 40.7771 39.596 38.6912 39.7968 36.555C39.8973 35.3487 39.9224 34.1424 40.1232 32.9612C40.3492 31.78 40.6756 30.5989 41.002 29.4428C41.4791 27.7339 42.0817 25.9747 43.4124 24.7181C43.8142 24.3411 44.241 24.0395 44.6428 23.738C45.3458 23.2353 45.9735 22.5819 46.6263 22.029C48.2584 20.6217 49.8402 19.1892 51.2965 17.5808C54.0584 14.5399 56.4186 11.1722 57.9251 7.32713C58.3017 6.37214 59.7078 2.55216 59.4065 1.59716C59.1554 -0.0363804 57.7745 -0.0363804 57.5234 0.0138825C56.1424 0.290328 55.1381 1.34585 54.1839 2.30084C53.2047 3.28097 52.3008 4.33649 51.4722 5.46741C50.2921 7.05069 49.2376 8.73449 48.3086 10.4686C47.3042 12.3283 46.2999 14.188 45.3709 16.0729C44.4921 17.7316 43.5631 19.3651 42.8349 21.074C42.3579 22.1798 41.8306 23.3861 41.002 24.316C39.37 25.4972 37.7128 26.6281 36.8591 27.2061C33.6453 29.2166 30.582 30.9004 27.5188 32.3078C26.1379 32.9361 24.1543 33.8157 22.7482 34.3686C19.8105 35.5246 17.2244 36.4545 14.2114 37.3843C11.6001 38.1885 9.11435 38.6409 6.37754 38.8168C4.49441 38.9174 2.6866 38.666 0.828577 38.5655C0.778361 38.5655 0.753252 38.5655 0.703035 38.5655C0.401735 38.5655 0.15065 38.6912 0.0502168 38.8671C-0.0502168 39.0681 0 39.2943 0.200867 39.5456C0.753252 40.1991 2.13421 40.2493 2.93768 40.3499C6.5784 40.752 10.5706 39.998 14.0607 38.9676C20.2374 37.1582 26.2634 34.8209 31.963 31.78C33.4193 31.001 34.9509 30.1214 36.357 29.2418C36.7838 28.9904 37.2609 28.6135 37.7379 28.337C38.6921 27.6836 39.8219 27.0805 39.7968 27.3066C39.8722 27.382 39.5457 28.0354 39.1189 29.3423C39.0436 29.7193 38.9431 30.0962 38.8929 30.3224C38.3405 32.4334 38.0644 34.6199 37.9388 36.7812C37.8133 38.9425 37.7379 41.0787 37.9137 43.24C38.1397 45.728 38.667 48.3919 40.2488 50.4024C40.6254 50.8799 41.0774 51.3574 41.5544 51.7595C42.5588 52.6391 43.764 53.2925 45.0445 53.6947C45.7224 53.9208 46.4506 54.0214 47.2289 53.9962C49.79 53.946 51.5225 53.0412 53.6567 51.7595C54.2844 51.3826 55.6151 50.3522 56.1926 49.8244C56.3433 49.6987 60.6368 45.9793 62.1935 44.3458C62.7961 43.7175 63.3736 43.064 63.926 42.4106C64.3529 41.908 64.9555 41.2295 65.7087 41.2043C65.8594 41.2043 65.8091 41.1792 65.9598 41.2797C66.3866 41.5562 66.3113 42.1844 66.2862 42.5614V42.6368C66.1858 43.5667 66.236 44.2955 66.6377 45.0494C67.2403 46.1301 68.1442 46.683 69.2992 46.6578C71.9356 46.6076 75.3001 43.7175 76.1036 41.8326C76.3296 41.33 76.4049 40.9027 76.3798 40.5258C76.3798 40.4755 76.3296 40.3499 76.3045 40.2745C76.1538 39.8724 76.0032 39.4451 76.2542 39.1938C76.5304 38.9174 77.2084 38.842 78.2378 38.7917C78.5391 38.7666 78.8655 38.7666 78.9911 38.7414C81.075 38.2639 82.9582 37.2587 84.766 36.3037L85.0422 36.1529C85.9712 35.6503 87.1513 35.0471 88.3314 35.022C88.482 35.022 88.6076 35.022 88.7582 35.0471C89.1348 35.0974 89.3859 35.223 89.4864 35.4492C89.7374 36.0272 88.5071 37.2587 88.2309 37.7362C87.7539 38.5153 87.3773 39.3697 87.2015 40.2745C86.9253 41.7823 87.4777 43.5415 88.8587 44.195C89.4613 44.4965 90.1894 44.5468 90.8673 44.4714C92.7756 44.2955 94.5834 43.2148 95.663 41.6316C96.115 40.9781 96.4414 40.2493 96.6925 39.4954C96.9687 38.7414 97.044 38.2388 97.973 38.2639C99.0024 38.2891 100.007 38.4147 101.036 38.3393C103.045 38.1885 105.003 37.6608 106.861 36.9068C109.874 35.7257 112.486 34.1675 114.745 31.9057C116.503 30.1465 116.302 29.5182 117.231 29.4931C117.357 29.4931 117.482 29.5433 117.583 29.6439C117.733 29.8198 117.708 30.0962 117.633 30.3475C117.407 31.2523 116.955 32.1319 116.578 32.9361C115.398 35.3236 112.561 41.531 112.084 42.1844C111.732 42.6619 111.255 43.3908 111.381 44.019C111.431 44.2955 111.707 44.4211 112.184 44.4211C112.712 44.4211 113.314 44.195 113.565 44.019C114.067 43.6421 114.369 42.9133 114.62 42.2598C114.695 42.0588 114.796 41.8577 114.871 41.6567C115.222 40.8776 115.574 40.0734 115.9 39.2692C116.302 38.2891 116.729 37.2587 117.206 36.3037C117.658 35.3738 118.637 34.8712 119.566 34.444C120.37 34.067 121.249 34.0419 122.102 34.0167C122.353 34.0167 122.604 33.9916 122.855 33.9916C123.031 33.9916 123.207 33.9665 123.358 33.9665C125.868 33.9162 127.927 34.7455 129.183 36.2534C129.66 36.8315 130.112 37.4597 130.564 38.0378C131.217 38.9174 131.894 39.8472 132.673 40.6766C133.451 41.531 134.179 41.908 135.058 41.908H135.159C136.037 41.8829 136.966 41.6316 137.92 41.1541C139.05 40.6012 140.155 39.8975 141.185 39.1435C141.913 38.6158 142.54 38.0126 143.193 37.4095C143.444 37.1582 143.645 36.9822 143.947 36.9822C144.348 36.9822 144.574 37.3592 144.65 37.5351C144.75 37.7111 144.8 37.9372 144.85 38.1383C144.901 38.3142 144.926 38.4901 145.001 38.6158C145.152 38.9174 145.353 39.2441 145.679 39.5205C146.332 40.0985 147.386 40.375 148.767 40.3499C149.596 40.3247 150.55 40.2242 151.579 39.998C153.262 39.621 154.919 38.8922 156.45 38.1885C157.154 37.8618 157.857 37.51 158.534 37.1582C158.961 36.932 159.514 36.4293 160.041 36.4293C160.744 36.4293 160.87 37.3843 161.146 37.8618C161.522 38.465 162.025 38.9928 162.627 39.3949C163.33 39.8472 164.134 40.1488 164.912 40.4252C165.715 40.7017 166.544 40.9027 167.398 40.9781C168.854 41.1038 170.411 40.9279 171.867 40.752C173.223 40.576 174.529 40.1991 175.784 39.7216C177.391 39.1184 179.098 38.465 180.504 37.4849C180.931 37.1833 181.308 36.6807 181.86 36.6807C182.011 36.6807 182.262 36.7309 182.463 37.0325C182.689 37.4095 182.563 37.7864 182.438 38.1132C182.312 38.465 182.262 38.7163 182.438 38.9174C182.588 39.0933 182.99 39.2943 183.291 39.2943C183.316 39.2943 183.342 39.2943 183.342 39.2943C183.367 39.2943 183.417 39.2441 183.467 39.2189C183.568 39.1687 183.693 39.0933 183.844 39.0681C183.869 39.0681 183.919 39.0681 183.944 39.0681C184.07 39.0681 184.195 39.0933 184.296 39.1184C184.346 39.1435 184.421 39.1435 184.446 39.1435C184.923 39.1184 185.049 38.8922 185.275 38.3896C185.325 38.2639 185.4 38.1383 185.451 38.0126C186.204 36.6555 187.434 34.6953 188.916 33.1371C189.142 32.8858 189.418 32.6848 189.669 32.4334C189.895 32.2073 190.071 31.9811 190.347 31.8303C191.301 31.2774 192.406 32.0565 193.159 32.6094C193.31 32.7099 193.435 32.8104 193.561 32.8858C194.565 33.5392 195.645 34.0167 196.775 34.4188C197.955 34.8461 199.11 35.1979 200.365 35.3487C200.993 35.4241 201.646 35.4492 202.298 35.4492C202.801 35.4492 203.403 35.399 203.83 35.7257C204.131 35.9519 204.207 36.2786 204.257 36.5299C204.282 36.6053 204.282 36.6807 204.332 36.7561C204.433 37.0576 204.684 37.3341 204.91 37.5854C205.362 38.088 205.989 38.4399 206.818 38.6912C207.496 38.8922 208.224 38.9928 209.002 38.9676C210.258 38.9425 211.563 38.6409 212.643 38.088C215.054 36.7309 217.188 34.2178 216.987 31.2774ZM163.606 34.1675C163.632 34.1424 163.657 34.0921 163.682 34.0167C163.933 33.5392 164.611 32.3832 165.59 31.78C165.791 31.6544 166.695 31.1769 167.348 31.1769C167.624 31.1769 167.85 31.2523 168 31.4031C168.151 31.5538 168.226 31.7549 168.201 32.0313V32.0565V32.0816C167.975 33.0869 167.046 33.9413 165.615 34.4188C165.54 34.444 165.464 34.4691 165.389 34.4942C165.012 34.645 164.561 34.7958 164.209 34.8209C164.159 34.8209 164.109 34.8209 164.058 34.8209C163.807 34.7958 163.606 34.7455 163.531 34.5696C163.456 34.3937 163.556 34.2429 163.606 34.1675ZM45.1198 20.0939C46.1493 17.9577 48.7354 12.7555 50.6939 9.89054C50.8696 9.61409 51.0956 9.28739 51.3216 8.91041C51.3216 8.88528 51.3467 8.88528 51.3467 8.86015C51.6229 8.38265 51.9493 7.93029 52.2757 7.50305C53.4056 5.84438 54.7614 4.03491 55.7156 3.20558C55.9918 3.00452 56.2177 2.87887 56.3684 2.8286C56.4939 2.77834 56.5944 2.72808 56.7199 2.72808C57.3476 2.72808 57.3225 3.3815 57.1216 4.08518C57.0212 4.78886 56.4939 7.17634 54.1086 10.6696C54.0082 10.8455 53.8826 10.9963 53.7822 11.122C53.3303 11.8508 52.6774 12.8309 51.8489 13.9618C50.5934 15.6708 49.2125 17.3043 47.7311 18.8122C47.3545 19.2143 46.9527 19.6164 46.5259 20.0185C45.848 20.7976 44.6428 21.5767 44.6428 21.3253C44.5423 21.1746 45.0194 20.3201 45.1198 20.0939ZM73.9694 42.0337C73.5425 42.8127 72.7893 43.5918 71.9105 44.1447C71.8352 44.195 71.7347 44.2452 71.6594 44.3206C71.2074 44.6222 70.6551 45.0243 70.0525 45.0243C69.952 45.0243 69.8516 45.0243 69.7763 44.9992C68.5711 44.7479 68.4706 43.2651 68.4204 42.486V42.3101C68.4455 40.9781 69.5754 38.465 71.559 38.4399C71.5841 38.4399 71.6343 38.4399 71.6594 38.4399C72.6135 38.465 73.4421 38.8922 73.9192 39.621C74.346 40.3499 74.3711 41.2797 73.9694 42.0337ZM94.6838 39.3697C94.5834 39.6964 93.5288 42.5866 91.3946 42.863C91.2942 42.863 91.2188 42.8881 91.1184 42.8881C90.5409 42.8881 90.0639 42.6871 89.7626 42.2598C89.0344 41.2797 89.3357 39.3949 89.6621 38.666C90.5911 36.5299 91.7461 35.4241 93.1271 35.3738H93.1522C93.8552 35.3738 94.1816 36.0524 94.4076 36.5801C94.4829 36.7309 94.5332 36.8566 94.5834 36.9571C95.1358 37.8116 94.9349 38.6158 94.6838 39.3697ZM206.944 32.6596C207.772 31.579 208.827 30.8502 209.957 30.0962C210.735 29.5685 211.639 28.9653 212.769 28.9402C212.894 28.9402 213.02 28.9402 213.145 28.9653C213.723 29.0156 214.3 29.4428 214.15 30.0962C214.074 30.4229 213.823 30.6994 213.597 30.9507C211.94 32.6094 209.68 33.6146 207.345 33.7152C207.169 33.7152 206.994 33.7151 206.868 33.6146C206.542 33.3382 206.743 32.9361 206.944 32.6596ZM213.848 34.5445L213.798 34.6199C212.518 36.4042 210.936 37.3592 209.253 37.3843C209.178 37.3843 209.103 37.3843 209.028 37.3843C208.952 37.3843 208.877 37.4095 208.802 37.4095C207.873 37.4346 207.044 36.8063 206.667 36.2032C206.517 35.9519 206.341 35.6251 206.492 35.3236C206.743 34.8461 207.873 34.8461 208.324 34.7455C209.58 34.4691 210.835 34.2178 211.94 33.5141C212.492 33.1623 213.045 32.6596 213.748 32.6345C213.873 32.6345 213.999 32.6596 214.099 32.7099C214.25 32.7853 214.376 32.8858 214.426 33.0366C214.602 33.489 214.225 34.0419 213.848 34.5445Z", fill: colorContent }))));
|
|
11
|
-
export { Logo };
|
package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
3
|
-
import { Country } from "../../../../../../projection/shared/country";
|
|
4
|
-
interface CheckoutItemsTabsProps {
|
|
5
|
-
readonly checkoutItemsKept: CheckoutItemProjection[];
|
|
6
|
-
readonly checkoutItemsReturned: CheckoutItemProjection[];
|
|
7
|
-
readonly country: Country;
|
|
8
|
-
readonly onPressItem: (checkoutItemId: string) => void;
|
|
9
|
-
readonly onChanged?: (index: number) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const CheckoutItemsTabs: FC<CheckoutItemsTabsProps>;
|
|
12
|
-
export { CheckoutItemsTabs };
|
package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Text } from "@lookiero/aurora";
|
|
2
|
-
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
3
|
-
import React, { useCallback } from "react";
|
|
4
|
-
import { View } from "react-native";
|
|
5
|
-
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
6
|
-
import { Tabs } from "../../../../components/layouts/tabs/Tabs";
|
|
7
|
-
import { I18nMessages } from "../../../../i18n/i18n";
|
|
8
|
-
import { ProductVariant } from "../../../shared/components/productVariant/ProductVariant";
|
|
9
|
-
import { style } from "./CheckoutItemsTabs.style";
|
|
10
|
-
const CheckoutItem = ({ checkoutItemStatus, checkoutItemProductVariant, checkoutItemPrice, country, discarded = false, testID, style: customStyle, onPress, }) => (React.createElement(View, { style: style.checkoutItem, testID: testID },
|
|
11
|
-
React.createElement(ProductVariant, { brand: checkoutItemProductVariant.brand, color: checkoutItemProductVariant.color, country: country, discarded: discarded, media: checkoutItemProductVariant.media, name: checkoutItemProductVariant.name, price: checkoutItemPrice, size: checkoutItemProductVariant.size, status: checkoutItemStatus, style: customStyle, onPress: onPress })));
|
|
12
|
-
const CheckoutItemsTabs = ({ checkoutItemsKept, checkoutItemsReturned, country, onPressItem, onChanged, }) => {
|
|
13
|
-
const keepTabText = useI18nMessage({ id: I18nMessages.SUMMARY_KEEP_TAB });
|
|
14
|
-
const returnTabText = useI18nMessage({ id: I18nMessages.SUMMARY_RETURN_TAB });
|
|
15
|
-
const keepEmptyText = useI18nMessage({ id: I18nMessages.SUMMARY_KEEP_EMPTY });
|
|
16
|
-
const returnEmptyText = useI18nMessage({ id: I18nMessages.SUMMARY_RETURN_EMPTY });
|
|
17
|
-
const handleOnPressItem = useCallback((checkoutItemId) => onPressItem(checkoutItemId), [onPressItem]);
|
|
18
|
-
return (React.createElement(Tabs, { style: { sliderContainer: style.sliderContainer }, tabLabels: [`${keepTabText} (${checkoutItemsKept.length})`, `${returnTabText} (${checkoutItemsReturned.length})`], onChanged: onChanged },
|
|
19
|
-
React.createElement(React.Fragment, null, checkoutItemsKept.length === 0 ? (React.createElement(Text, { style: style.emptyText }, keepEmptyText)) : (checkoutItemsKept.map((checkoutItem) => (React.createElement(CheckoutItem, { key: checkoutItem.id, checkoutItemPrice: checkoutItem.price, checkoutItemStatus: checkoutItem.status, country: country, testID: "keep-checkout-item", checkoutItemProductVariant: checkoutItem.status === CheckoutItemStatus.REPLACED && checkoutItem.replacedFor
|
|
20
|
-
? checkoutItem.replacedFor
|
|
21
|
-
: checkoutItem.productVariant, onPress: () => handleOnPressItem(checkoutItem.id) }))))),
|
|
22
|
-
React.createElement(React.Fragment, null, checkoutItemsReturned.length === 0 ? (React.createElement(Text, { style: style.emptyText }, returnEmptyText)) : (checkoutItemsReturned.map((checkoutItem) => (React.createElement(CheckoutItem, { key: checkoutItem.id, checkoutItemPrice: checkoutItem.price, checkoutItemProductVariant: checkoutItem.productVariant, checkoutItemStatus: checkoutItem.status, country: country, style: { image: style.returnCheckoutItem }, testID: "return-checkout-item", discarded: true, onPress: () => handleOnPressItem(checkoutItem.id) })))))));
|
|
23
|
-
};
|
|
24
|
-
export { CheckoutItemsTabs };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare const style: {
|
|
2
|
-
checkoutItem: {
|
|
3
|
-
paddingVertical: number;
|
|
4
|
-
};
|
|
5
|
-
emptyText: {
|
|
6
|
-
paddingTop: number;
|
|
7
|
-
};
|
|
8
|
-
returnCheckoutItem: {
|
|
9
|
-
borderColor: string;
|
|
10
|
-
};
|
|
11
|
-
sliderContainer: {
|
|
12
|
-
paddingHorizontal: number;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export { style };
|
package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from "react-native";
|
|
2
|
-
import { theme } from "../../../../theme/theme";
|
|
3
|
-
const { colorContent, spaceM, spaceXL } = theme();
|
|
4
|
-
const style = StyleSheet.create({
|
|
5
|
-
checkoutItem: {
|
|
6
|
-
paddingVertical: spaceM,
|
|
7
|
-
},
|
|
8
|
-
emptyText: {
|
|
9
|
-
paddingTop: spaceM,
|
|
10
|
-
},
|
|
11
|
-
returnCheckoutItem: {
|
|
12
|
-
borderColor: colorContent,
|
|
13
|
-
},
|
|
14
|
-
sliderContainer: {
|
|
15
|
-
paddingHorizontal: spaceXL,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
export { style };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Command } from "@lookiero/messaging";
|
|
2
|
-
import { NotificationLevel } from "../model/notification";
|
|
3
|
-
declare const CREATE_NOTIFICATION = "create_notification";
|
|
4
|
-
interface CreateNotificationPayload {
|
|
5
|
-
readonly aggregateId: string;
|
|
6
|
-
readonly level: NotificationLevel;
|
|
7
|
-
readonly bodyI18nKey: string;
|
|
8
|
-
readonly titleI18nKey: string | undefined;
|
|
9
|
-
}
|
|
10
|
-
interface CreateNotification extends Command<typeof CREATE_NOTIFICATION>, CreateNotificationPayload {
|
|
11
|
-
}
|
|
12
|
-
interface CreateNotificationFunction {
|
|
13
|
-
(payload: CreateNotificationPayload): CreateNotification;
|
|
14
|
-
}
|
|
15
|
-
declare const createNotification: CreateNotificationFunction;
|
|
16
|
-
export type { CreateNotification };
|
|
17
|
-
export { CREATE_NOTIFICATION, createNotification };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { command } from "@lookiero/messaging";
|
|
2
|
-
const CREATE_NOTIFICATION = "create_notification";
|
|
3
|
-
const createNotification = ({ aggregateId, ...payload }) => ({
|
|
4
|
-
...command({ aggregateId, name: CREATE_NOTIFICATION }),
|
|
5
|
-
...payload,
|
|
6
|
-
});
|
|
7
|
-
export { CREATE_NOTIFICATION, createNotification };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CommandStatus } from "@lookiero/messaging-react";
|
|
2
|
-
import { Logger } from "../../../../../logging/Logger";
|
|
3
|
-
import { NotificationLevel } from "../../../../domain/notification/model/notification";
|
|
4
|
-
interface CreateNotificationFunctionArgs {
|
|
5
|
-
readonly aggregateId?: string;
|
|
6
|
-
readonly level: NotificationLevel;
|
|
7
|
-
readonly bodyI18nKey: string;
|
|
8
|
-
readonly titleI18nKey?: string;
|
|
9
|
-
}
|
|
10
|
-
interface CreateNotificationFunction {
|
|
11
|
-
(args: CreateNotificationFunctionArgs): Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
interface UseCreateNotificationFunctionArgs {
|
|
14
|
-
readonly contextId: string;
|
|
15
|
-
readonly logger: Logger;
|
|
16
|
-
}
|
|
17
|
-
interface UseCreateNotificationFunction {
|
|
18
|
-
(args: UseCreateNotificationFunctionArgs): [create: CreateNotificationFunction, status: CommandStatus];
|
|
19
|
-
}
|
|
20
|
-
declare const useCreateNotification: UseCreateNotificationFunction;
|
|
21
|
-
export { useCreateNotification };
|
package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { useCommand } from "@lookiero/messaging-react";
|
|
2
|
-
import { useCallback } from "react";
|
|
3
|
-
import { v4 as uuid } from "uuid";
|
|
4
|
-
import { createNotification } from "../../../../domain/notification/command/createNotification";
|
|
5
|
-
const useCreateNotification = ({ contextId, logger }) => {
|
|
6
|
-
const [commandBus, status] = useCommand({ contextId });
|
|
7
|
-
const create = useCallback(async ({ aggregateId, level, titleI18nKey, bodyI18nKey }) => {
|
|
8
|
-
try {
|
|
9
|
-
await commandBus(createNotification({
|
|
10
|
-
aggregateId: aggregateId || uuid(),
|
|
11
|
-
level,
|
|
12
|
-
titleI18nKey,
|
|
13
|
-
bodyI18nKey,
|
|
14
|
-
}));
|
|
15
|
-
}
|
|
16
|
-
catch (error) {
|
|
17
|
-
logger.captureException(error);
|
|
18
|
-
}
|
|
19
|
-
}, [commandBus, logger]);
|
|
20
|
-
return [create, status];
|
|
21
|
-
};
|
|
22
|
-
export { useCreateNotification };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { ToastStyle } from "../../../../ui/components/molecules/toast/Toast";
|
|
3
|
-
import { NotificationProjection } from "../../../projection/notification/notification";
|
|
4
|
-
interface NotificationItemProps {
|
|
5
|
-
readonly notification: NotificationProjection;
|
|
6
|
-
readonly onRemove: (notificationId: string) => void;
|
|
7
|
-
readonly autoHideTimeout?: number;
|
|
8
|
-
readonly testID?: string;
|
|
9
|
-
readonly style?: ToastStyle;
|
|
10
|
-
}
|
|
11
|
-
declare const NotificationItem: FC<NotificationItemProps>;
|
|
12
|
-
export { NotificationItem };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { useCallback, useEffect } from "react";
|
|
4
|
-
import { Toast, ToastVariant } from "../../../../ui/components/molecules/toast/Toast";
|
|
5
|
-
import { NotificationLevel } from "../../../domain/notification/model/notification";
|
|
6
|
-
const toastVariantForNotificationLevel = {
|
|
7
|
-
[NotificationLevel.INFO]: ToastVariant.INFO,
|
|
8
|
-
[NotificationLevel.ERROR]: ToastVariant.ERROR,
|
|
9
|
-
[NotificationLevel.SUCCESS]: ToastVariant.SUCCESS,
|
|
10
|
-
};
|
|
11
|
-
const NotificationItem = ({ notification, onRemove, autoHideTimeout, testID = "notification-item", style: customStyle, }) => {
|
|
12
|
-
const title = useI18nMessage({ id: notification.titleI18nKey }) || undefined;
|
|
13
|
-
const body = useI18nMessage({ id: notification.bodyI18nKey || "" });
|
|
14
|
-
const handleOnClose = useCallback(() => onRemove(notification.id), [notification.id, onRemove]);
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
if (!autoHideTimeout) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const hideTimeout = setTimeout(handleOnClose, autoHideTimeout);
|
|
20
|
-
return () => clearTimeout(hideTimeout);
|
|
21
|
-
}, [autoHideTimeout, handleOnClose]);
|
|
22
|
-
return (React.createElement(Toast, { body: body, style: customStyle, testID: testID, title: title, variant: toastVariantForNotificationLevel[notification.level], onClose: handleOnClose }));
|
|
23
|
-
};
|
|
24
|
-
export { NotificationItem };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { NotificationProjection } from "../../../projection/notification/notification";
|
|
3
|
-
interface NotificationsProps {
|
|
4
|
-
readonly notifications?: NotificationProjection[];
|
|
5
|
-
readonly onRemove: (notificationId: string) => void;
|
|
6
|
-
readonly autoHideTimeout?: number;
|
|
7
|
-
}
|
|
8
|
-
declare const Notifications: FC<NotificationsProps>;
|
|
9
|
-
export { Notifications };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
3
|
-
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
4
|
-
import { Column } from "../../../../ui/components/layouts/column/Column";
|
|
5
|
-
import { Row } from "../../../../ui/components/layouts/row/Row";
|
|
6
|
-
import { Stack } from "../../../../ui/components/layouts/stack/Stack";
|
|
7
|
-
import { useScreenSize } from "../../../../ui/hooks/useScreenSize";
|
|
8
|
-
import { NotificationItem } from "./NotificationItem";
|
|
9
|
-
import { style } from "./Notifications.style";
|
|
10
|
-
const NOTIFICATIONS_AUTOHIDE_TIMEOUT = 10000;
|
|
11
|
-
const Notifications = ({ notifications = [], onRemove, autoHideTimeout = NOTIFICATIONS_AUTOHIDE_TIMEOUT, }) => {
|
|
12
|
-
const { top: safeAreaInsetTop } = useSafeAreaInsets();
|
|
13
|
-
const screenSize = useScreenSize();
|
|
14
|
-
const isSmallDevice = screenSize === "S";
|
|
15
|
-
return (React.createElement(View, { pointerEvents: "box-none", style: style.notifications, testID: "notifications" },
|
|
16
|
-
React.createElement(Row, { style: [style.row, isSmallDevice && style.rowSmall, { paddingTop: safeAreaInsetTop }] },
|
|
17
|
-
React.createElement(Column, null,
|
|
18
|
-
React.createElement(Stack, null, notifications.map((notification) => (React.createElement(NotificationItem, { key: notification.id, autoHideTimeout: autoHideTimeout, notification: notification, style: { toast: style.toast }, testID: notification.id, onRemove: onRemove }))))))));
|
|
19
|
-
};
|
|
20
|
-
export { Notifications };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from "react-native";
|
|
2
|
-
declare const style: StyleSheet.NamedStyles<any> | StyleSheet.NamedStyles<{
|
|
3
|
-
notifications: {
|
|
4
|
-
flexDirection: "column";
|
|
5
|
-
top: number;
|
|
6
|
-
width: string;
|
|
7
|
-
zIndex: number;
|
|
8
|
-
left: number;
|
|
9
|
-
} | {
|
|
10
|
-
flexDirection: "column";
|
|
11
|
-
top: number;
|
|
12
|
-
width: string;
|
|
13
|
-
zIndex: number;
|
|
14
|
-
position: "fixed";
|
|
15
|
-
left: number;
|
|
16
|
-
} | {
|
|
17
|
-
flexDirection: "column";
|
|
18
|
-
top: number;
|
|
19
|
-
width: string;
|
|
20
|
-
zIndex: number;
|
|
21
|
-
position: "absolute";
|
|
22
|
-
left: number;
|
|
23
|
-
};
|
|
24
|
-
row: {
|
|
25
|
-
flex: number;
|
|
26
|
-
justifyContent: "center";
|
|
27
|
-
};
|
|
28
|
-
rowSmall: {
|
|
29
|
-
paddingLeft: number;
|
|
30
|
-
paddingRight: number;
|
|
31
|
-
};
|
|
32
|
-
toast: {
|
|
33
|
-
marginTop: number;
|
|
34
|
-
};
|
|
35
|
-
}>;
|
|
36
|
-
export { style };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Platform, StyleSheet } from "react-native";
|
|
2
|
-
import { theme } from "../../../../../infrastructure/ui/theme/theme";
|
|
3
|
-
const { spaceM } = theme();
|
|
4
|
-
const style = StyleSheet.create({
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
notifications: {
|
|
8
|
-
left: 0,
|
|
9
|
-
...Platform.select({
|
|
10
|
-
web: { position: "fixed" },
|
|
11
|
-
ios: { position: "absolute" },
|
|
12
|
-
android: { position: "absolute" },
|
|
13
|
-
}),
|
|
14
|
-
flexDirection: "column",
|
|
15
|
-
top: 0,
|
|
16
|
-
width: "100%",
|
|
17
|
-
zIndex: 20,
|
|
18
|
-
},
|
|
19
|
-
row: {
|
|
20
|
-
flex: 1,
|
|
21
|
-
justifyContent: "center",
|
|
22
|
-
},
|
|
23
|
-
rowSmall: {
|
|
24
|
-
paddingLeft: spaceM,
|
|
25
|
-
paddingRight: spaceM,
|
|
26
|
-
},
|
|
27
|
-
toast: {
|
|
28
|
-
marginTop: spaceM,
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
export { style };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TrackingPage } from "../../../infrastructure/tracking/tracking";
|
|
2
|
-
import { Country } from "../../../projection/shared/country";
|
|
3
|
-
interface UsePageViewFunctionArgs {
|
|
4
|
-
readonly page: TrackingPage;
|
|
5
|
-
readonly country: Country;
|
|
6
|
-
readonly checkoutId?: string;
|
|
7
|
-
readonly checkoutItemId?: string;
|
|
8
|
-
}
|
|
9
|
-
interface UsePageViewFunction {
|
|
10
|
-
(agrs: UsePageViewFunctionArgs): void;
|
|
11
|
-
}
|
|
12
|
-
declare const usePageView: UsePageViewFunction;
|
|
13
|
-
export { usePageView };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect } from "react";
|
|
2
|
-
import { PROJECT } from "../../../infrastructure/tracking/tracking";
|
|
3
|
-
import { TrackingEvent, TrackingEventCategory } from "../tracking";
|
|
4
|
-
import { useEmitUserEvent } from "./useEmitUserEvent";
|
|
5
|
-
const usePageView = ({ page, country, checkoutId, checkoutItemId }) => {
|
|
6
|
-
const emitUserEvent = useEmitUserEvent();
|
|
7
|
-
useLayoutEffect(() => {
|
|
8
|
-
if (!checkoutId) {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
const baseTrackingEvent = {
|
|
12
|
-
event: TrackingEvent.PAGEVIEW,
|
|
13
|
-
eventCategory: TrackingEventCategory.NAVIGATION,
|
|
14
|
-
section: `${PROJECT}_${page}`,
|
|
15
|
-
store: country,
|
|
16
|
-
checkoutId,
|
|
17
|
-
};
|
|
18
|
-
const pageViewTrackingEvent = checkoutItemId
|
|
19
|
-
? {
|
|
20
|
-
...baseTrackingEvent,
|
|
21
|
-
checkoutItemId,
|
|
22
|
-
}
|
|
23
|
-
: baseTrackingEvent;
|
|
24
|
-
emitUserEvent(pageViewTrackingEvent);
|
|
25
|
-
}, [checkoutId, checkoutItemId, country, emitUserEvent, page]);
|
|
26
|
-
};
|
|
27
|
-
export { usePageView };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
interface BulletsProps {
|
|
3
|
-
readonly activeIndex: number;
|
|
4
|
-
readonly onChange: (index: number) => void;
|
|
5
|
-
readonly count: number;
|
|
6
|
-
readonly maxBullets?: number;
|
|
7
|
-
readonly testID?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const Bullets: FC<BulletsProps>;
|
|
10
|
-
export { Bullets };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { animated, useSpring } from "@react-spring/native";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { TouchableHighlight, View } from "react-native";
|
|
4
|
-
import { theme } from "../../../../../infrastructure/ui/theme/theme";
|
|
5
|
-
import { style } from "./Bullets.style";
|
|
6
|
-
const { colorContent, colorGrayscaleM } = theme();
|
|
7
|
-
const colorTransparent = "rgba(0,0,0,0)";
|
|
8
|
-
const MAX = 7;
|
|
9
|
-
const DIAMETER_MAX = 8;
|
|
10
|
-
const DIAMETER_MIN = 2;
|
|
11
|
-
const Bullet = ({ index, activeIndex, maxBullets, onChange }) => {
|
|
12
|
-
const pivot = Math.floor(maxBullets / 2) + 1;
|
|
13
|
-
const delta = Math.abs(index - activeIndex);
|
|
14
|
-
const diameter = delta > 1 ? DIAMETER_MAX - delta * DIAMETER_MIN : DIAMETER_MAX;
|
|
15
|
-
const color = delta === 0 ? colorContent : colorGrayscaleM;
|
|
16
|
-
const springs = useSpring({ diameter, color });
|
|
17
|
-
return delta >= pivot ? null : (React.createElement(TouchableHighlight, { underlayColor: colorTransparent, onPress: () => onChange(index) },
|
|
18
|
-
React.createElement(animated.View, { accessibilityState: { selected: delta === 0 }, testID: "bullet", style: [
|
|
19
|
-
style.bullet,
|
|
20
|
-
{
|
|
21
|
-
width: springs.diameter,
|
|
22
|
-
height: springs.diameter,
|
|
23
|
-
backgroundColor: springs.color,
|
|
24
|
-
borderRadius: springs.diameter,
|
|
25
|
-
},
|
|
26
|
-
] })));
|
|
27
|
-
};
|
|
28
|
-
const Bullets = ({ activeIndex, count, maxBullets = MAX, onChange, testID = "bullets" }) => (React.createElement(View, { style: style.bullets, testID: testID }, [...Array(count).keys()].map((index) => (React.createElement(Bullet, { key: index, activeIndex: activeIndex, index: index, maxBullets: maxBullets, onChange: onChange })))));
|
|
29
|
-
export { Bullets };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from "react-native";
|
|
2
|
-
import { theme } from "../../../../../infrastructure/ui/theme/theme";
|
|
3
|
-
const { spaceM } = theme();
|
|
4
|
-
const style = StyleSheet.create({
|
|
5
|
-
bullet: {
|
|
6
|
-
marginHorizontal: 3,
|
|
7
|
-
},
|
|
8
|
-
bullets: {
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
flexDirection: "row",
|
|
11
|
-
justifyContent: "center",
|
|
12
|
-
paddingVertical: spaceM,
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
export { style };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
interface PaginationProps {
|
|
4
|
-
readonly touchable?: boolean;
|
|
5
|
-
readonly paginationStyle?: StyleProp<ViewStyle>;
|
|
6
|
-
readonly paginationItemStyle?: StyleProp<ViewStyle>;
|
|
7
|
-
readonly paginationActiveItemStyle?: StyleProp<ViewStyle>;
|
|
8
|
-
readonly count?: number;
|
|
9
|
-
readonly activeIndex?: number;
|
|
10
|
-
readonly onChange: (index: number) => void;
|
|
11
|
-
readonly renderItem?: (index: number) => ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare const Pagination: FC<PaginationProps>;
|
|
14
|
-
export { Pagination };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Pressable, View } from "react-native";
|
|
3
|
-
import { style } from "./Pagination.style";
|
|
4
|
-
const Pagination = ({ touchable = true, paginationStyle, paginationItemStyle, paginationActiveItemStyle, count = 0, activeIndex = 0, renderItem, onChange, }) => (React.createElement(View, { style: [style.paginationWrapper, paginationStyle], testID: "slider-pagination" }, Array.from(Array(count).keys()).map((index) => (React.createElement(View, { key: index, style: style.paginationContainer },
|
|
5
|
-
React.createElement(Pressable, { testID: "slider-pagination-item", style: [
|
|
6
|
-
style.paginationItem,
|
|
7
|
-
activeIndex === index && style.active,
|
|
8
|
-
paginationItemStyle,
|
|
9
|
-
activeIndex === index && paginationActiveItemStyle,
|
|
10
|
-
], onPress: !touchable ? undefined : () => onChange(index) }, renderItem?.(index)))))));
|
|
11
|
-
export { Pagination };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare const style: {
|
|
2
|
-
active: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
};
|
|
5
|
-
paginationContainer: {
|
|
6
|
-
margin: number;
|
|
7
|
-
};
|
|
8
|
-
paginationItem: {
|
|
9
|
-
backgroundColor: string;
|
|
10
|
-
borderRadius: number;
|
|
11
|
-
height: number;
|
|
12
|
-
width: number;
|
|
13
|
-
};
|
|
14
|
-
paginationWrapper: {
|
|
15
|
-
alignItems: "center";
|
|
16
|
-
bottom: number;
|
|
17
|
-
flexDirection: "row";
|
|
18
|
-
justifyContent: "center";
|
|
19
|
-
position: "absolute";
|
|
20
|
-
width: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export { style };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from "react-native";
|
|
2
|
-
import { theme } from "../../../../../infrastructure/ui/theme/theme";
|
|
3
|
-
const { colorGrayscaleS, colorGrayscaleXL } = theme();
|
|
4
|
-
const DOT_SIZE = 8;
|
|
5
|
-
const style = StyleSheet.create({
|
|
6
|
-
active: {
|
|
7
|
-
backgroundColor: colorGrayscaleXL,
|
|
8
|
-
},
|
|
9
|
-
paginationContainer: {
|
|
10
|
-
margin: 3,
|
|
11
|
-
},
|
|
12
|
-
paginationItem: {
|
|
13
|
-
backgroundColor: colorGrayscaleS,
|
|
14
|
-
borderRadius: DOT_SIZE / 2,
|
|
15
|
-
height: DOT_SIZE,
|
|
16
|
-
width: DOT_SIZE,
|
|
17
|
-
},
|
|
18
|
-
paginationWrapper: {
|
|
19
|
-
alignItems: "center",
|
|
20
|
-
bottom: 10,
|
|
21
|
-
flexDirection: "row",
|
|
22
|
-
justifyContent: "center",
|
|
23
|
-
position: "absolute",
|
|
24
|
-
width: "100%",
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
export { style };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
interface SliderProps {
|
|
3
|
-
readonly children: ReactNode[];
|
|
4
|
-
readonly active?: number;
|
|
5
|
-
readonly loop?: boolean;
|
|
6
|
-
readonly minDistanceToCapture?: number;
|
|
7
|
-
readonly minDistanceForAction?: number;
|
|
8
|
-
readonly gesturesEnabled?: boolean;
|
|
9
|
-
readonly paginationEnabled?: boolean;
|
|
10
|
-
readonly onSliderStart?: () => void;
|
|
11
|
-
readonly onSliderEnd?: () => void;
|
|
12
|
-
readonly onChanged?: (index: number) => void;
|
|
13
|
-
}
|
|
14
|
-
declare const Slider: FC<SliderProps>;
|
|
15
|
-
export { Slider };
|