@lookiero/checkout 9.14.0 → 10.0.0-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/fake-dependencies/@lookiero/payments-front/index.d.ts +8 -6
- package/dist/fake-dependencies/@lookiero/payments-front/index.js +7 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -2
- package/dist/pact.config.d.ts +21 -0
- package/dist/pact.config.js +16 -0
- package/dist/public/public/assets/adaptive-icon.png +0 -0
- package/dist/public/public/assets/favicon.png +0 -0
- package/dist/public/public/assets/icon.png +0 -0
- package/dist/public/public/assets/splash.png +0 -0
- package/dist/public/public/images/not-found.png +0 -0
- package/dist/src/Expo.js +0 -2
- package/dist/src/ExpoRoot.js +19 -15
- package/dist/src/infrastructure/domain/checkoutBooking/react/useBlockCheckoutBooking.d.ts +1 -1
- package/dist/src/infrastructure/domain/checkoutBooking/react/useBlockCheckoutBooking.js +2 -0
- package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.js +55 -0
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +116 -0
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.js +56 -0
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +13 -0
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +19 -0
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.js +56 -0
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.js +57 -0
- package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.js +55 -0
- package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.js +120 -0
- package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.js +55 -0
- package/dist/src/infrastructure/projection/pricing/react/useViewPricingByCheckoutId.d.ts +1 -1
- package/dist/src/infrastructure/projection/pricing/react/useViewPricingByCheckoutId.js +2 -1
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.js +55 -0
- package/dist/src/infrastructure/tracking/tracking.d.ts +2 -2
- package/dist/src/infrastructure/tracking/useTrackCheckout.d.ts +10 -17
- package/dist/src/infrastructure/tracking/useTrackCheckout.js +27 -12
- package/dist/src/infrastructure/ui/Root.d.ts +6 -6
- package/dist/src/infrastructure/ui/Root.js +2 -3
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +1 -2
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +2 -3
- package/dist/src/infrastructure/ui/components/atoms/price/Price.js +0 -3
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.d.ts +22 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +1 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +5 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +6 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +4 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +20 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +4 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +43 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +12 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +14 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +3 -7
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +2 -18
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +2 -14
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +1 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +1 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +3 -4
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +1 -0
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +3 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +2 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +4 -4
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +2 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +2 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +1 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +4 -5
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +6 -6
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +3 -4
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +1 -0
- package/dist/src/infrastructure/ui/components/templates/footer/Footer.d.ts +3 -0
- package/dist/src/infrastructure/ui/components/templates/footer/Footer.js +13 -0
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +2 -2
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +21 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +8 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +12 -0
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +4 -4
- package/dist/src/infrastructure/ui/hooks/useCheckoutFlow.d.ts +26 -0
- package/dist/src/infrastructure/ui/hooks/useCheckoutFlow.js +135 -0
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.d.ts +12 -0
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.js +64 -0
- package/dist/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.d.ts +3 -2
- package/dist/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.js +17 -26
- package/dist/src/infrastructure/ui/hooks/useStaticInfo.d.ts +2 -0
- package/dist/src/infrastructure/ui/hooks/useStaticInfo.js +2 -2
- package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.d.ts +1 -1
- package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.js +22 -55
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.d.ts +10 -0
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.js +17 -0
- package/dist/src/infrastructure/ui/i18n/i18n.d.ts +2 -2
- package/dist/src/infrastructure/ui/i18n/i18n.js +2 -2
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.d.ts +20 -0
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.js +27 -0
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +10 -0
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +27 -0
- package/dist/src/infrastructure/ui/routing/CheckoutMiddleware.js +3 -14
- package/dist/src/infrastructure/ui/routing/Routing.d.ts +5 -5
- package/dist/src/infrastructure/ui/routing/Routing.js +8 -18
- package/dist/src/infrastructure/ui/routing/routes.d.ts +0 -1
- package/dist/src/infrastructure/ui/routing/routes.js +0 -1
- package/dist/src/infrastructure/ui/test/render.js +3 -7
- package/dist/src/infrastructure/ui/views/App.js +5 -7
- package/dist/src/infrastructure/ui/views/App.style.d.ts +6 -0
- package/dist/src/infrastructure/ui/views/App.style.js +8 -0
- package/dist/src/infrastructure/ui/views/checkout/Checkout.d.ts +7 -2
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +24 -15
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +3 -0
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +3 -0
- package/dist/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.js +16 -16
- package/dist/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +2 -2
- package/dist/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.js +7 -7
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +2 -2
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +7 -0
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +11 -0
- package/dist/src/infrastructure/ui/views/item/Item.js +1 -3
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +3 -3
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +5 -11
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +4 -4
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +3 -3
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -1
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +1 -2
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +2 -2
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +12 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +64 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +12 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +16 -0
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +4 -4
- package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +40 -0
- package/dist/src/infrastructure/ui/views/return/Return.style.js +44 -0
- package/dist/src/infrastructure/ui/views/return/components/price/Price.js +0 -3
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +3 -3
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +6 -6
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -1
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +1 -2
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +4 -4
- package/dist/src/infrastructure/ui/views/summary/Summary.js +5 -6
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +2 -3
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +6 -8
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +14 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +28 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +7 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +11 -0
- package/dist/src/infrastructure/ui/views/summaryTabs/SummaryTabs.js +1 -3
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +5 -5
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +26 -0
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +21 -0
- package/dist/src/projection/customer/customer.d.ts +2 -0
- package/dist/src/projection/order/order.d.ts +1 -1
- package/dist/src/projection/shared/country.d.ts +14 -0
- package/dist/src/projection/shared/country.js +15 -0
- package/dist/src/projection/shared/customer.d.ts +9 -0
- package/dist/src/projection/shared/customer.js +1 -0
- package/dist/src/projection/shared/locale.d.ts +12 -0
- package/dist/src/projection/shared/locale.js +13 -0
- package/dist/src/projection/shared/order.d.ts +6 -0
- package/dist/src/projection/shared/order.js +1 -0
- package/dist/src/projection/shared/price.d.ts +11 -0
- package/dist/src/projection/shared/price.js +1 -0
- package/dist/src/projection/shared/size.d.ts +21 -0
- package/dist/src/projection/shared/size.js +4 -0
- package/dist/src/projection/shared/subscription.d.ts +2 -0
- package/dist/src/projection/shared/subscription.js +1 -0
- package/dist/src/projection/subscription/subscription.d.ts +1 -1
- package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.d.ts +15 -0
- package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.js +16 -0
- package/dist/src/shared/ui/components/atoms/error/Error.d.ts +11 -0
- package/dist/src/shared/ui/components/atoms/error/Error.js +6 -0
- package/dist/src/shared/ui/components/atoms/field/Field.d.ts +14 -0
- package/dist/src/shared/ui/components/atoms/field/Field.js +29 -0
- package/dist/src/shared/ui/components/atoms/field/Field.style.d.ts +16 -0
- package/dist/src/shared/ui/components/atoms/field/Field.style.js +19 -0
- package/dist/src/shared/ui/components/molecules/inputField/InputField.d.ts +24 -0
- package/dist/src/shared/ui/components/molecules/inputField/InputField.js +28 -0
- package/dist/src/shared/ui/components/molecules/inputField/InputField.style.d.ts +29 -0
- package/dist/src/shared/ui/components/molecules/inputField/InputField.style.js +37 -0
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/fake-dependencies/@lookiero/payments-front/index.tsx +32 -9
- package/index.ts +11 -5
- package/jest.config.js +2 -2
- package/package.json +9 -9
- package/src/Expo.tsx +0 -3
- package/src/ExpoRoot.tsx +44 -38
- package/src/infrastructure/domain/checkoutBooking/react/useBlockCheckoutBooking.ts +4 -1
- package/src/infrastructure/projection/pricing/react/useViewPricingByCheckoutId.ts +3 -2
- package/src/infrastructure/tracking/tracking.ts +2 -2
- package/src/infrastructure/tracking/useTrackCheckout.ts +66 -56
- package/src/infrastructure/ui/Root.tsx +9 -9
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +2 -3
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +2 -3
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/__snapshots__/FiveItemsDiscountBanner.test.tsx.snap +1 -1
- package/src/infrastructure/ui/components/atoms/price/Price.tsx +0 -3
- package/src/infrastructure/ui/components/atoms/price/__snapshots__/Price.test.tsx.snap +3 -3
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +4 -25
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +7 -13
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +1 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +1 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +1 -0
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +2 -4
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +3 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +2 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +5 -5
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +2 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +2 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +1 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +5 -6
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +7 -7
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +1 -0
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +2 -4
- package/src/infrastructure/ui/components/templates/footer/Footer.test.tsx +15 -0
- package/src/infrastructure/ui/components/templates/footer/Footer.tsx +19 -0
- package/src/infrastructure/ui/components/templates/footer/__snapshots__/Footer.test.tsx.snap +1127 -0
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +2 -2
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +1 -1
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -2
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +1 -1
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +5 -4
- package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +1 -1
- package/src/infrastructure/ui/hooks/{useSubmitCheckout.test.ts → useCheckoutFlow.test.ts} +1 -1
- package/src/infrastructure/ui/hooks/useCheckoutFlow.tsx +212 -0
- package/src/infrastructure/ui/hooks/usePaymentInstrumentEvents.ts +18 -60
- package/src/infrastructure/ui/hooks/useStaticInfo.tsx +4 -2
- package/src/infrastructure/ui/i18n/i18n.ts +2 -3
- package/src/infrastructure/ui/routing/CheckoutMiddleware.test.tsx +3 -3
- package/src/infrastructure/ui/routing/CheckoutMiddleware.tsx +3 -17
- package/src/infrastructure/ui/routing/Routing.tsx +25 -39
- package/src/infrastructure/ui/routing/routes.ts +0 -1
- package/src/infrastructure/ui/test/render.tsx +4 -10
- package/src/infrastructure/ui/views/App.tsx +5 -14
- package/src/infrastructure/ui/views/checkout/Checkout.style.ts +3 -0
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +55 -18
- package/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.test.tsx +116 -121
- package/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.tsx +2 -2
- package/src/infrastructure/ui/views/checkout/components/deliveryBanner/__snapshots__/DeliveryBanner.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.tsx +8 -8
- package/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.tsx +2 -2
- package/src/infrastructure/ui/views/item/Item.tsx +1 -2
- package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +3 -3
- package/src/infrastructure/ui/views/item/components/banner/__snapshots__/CustomerDecissionBanner.test.tsx.snap +3 -3
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +5 -11
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +88 -160
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +4 -4
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +128 -244
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +1 -2
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +3 -3
- package/src/infrastructure/ui/views/item/components/productVariantDescription/__snapshots__/ProductVariantDescription.test.tsx.snap +8 -10
- package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +30 -30
- package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +2 -2
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +4 -4
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +41 -75
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +102 -105
- package/src/infrastructure/ui/views/return/components/price/Price.tsx +0 -3
- package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap +3 -3
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +3 -3
- package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +1 -1
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +1 -2
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +6 -6
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +4 -4
- package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +30 -30
- package/src/infrastructure/ui/views/summary/Summary.tsx +5 -6
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +2 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +82 -154
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +6 -8
- package/src/infrastructure/ui/views/summaryTabs/SummaryTabs.tsx +1 -2
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +5 -5
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +62 -62
- package/src/projection/customer/customer.ts +2 -0
- package/src/projection/order/order.ts +1 -1
- package/src/projection/subscription/subscription.ts +1 -1
- package/src/infrastructure/ui/hooks/useSubmitCheckout.ts +0 -169
- package/src/infrastructure/ui/routing/useBasePath.test.tsx +0 -19
- package/src/infrastructure/ui/routing/useBasePath.tsx +0 -24
- package/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.tsx +0 -125
|
@@ -148,14 +148,24 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
148
148
|
"right": 0,
|
|
149
149
|
"top": 0,
|
|
150
150
|
},
|
|
151
|
+
"alignContent": "center",
|
|
151
152
|
"alignSelf": "flex-start",
|
|
153
|
+
"backgroundColor": "#FFFFFF",
|
|
154
|
+
"borderColor": "#0C0A0A",
|
|
155
|
+
"borderRadius": 9999,
|
|
156
|
+
"borderStyle": "solid",
|
|
157
|
+
"borderWidth": 2,
|
|
152
158
|
"container": {
|
|
153
159
|
"overflow": "hidden",
|
|
154
160
|
},
|
|
155
161
|
"flex": 1,
|
|
156
162
|
"height": 48,
|
|
163
|
+
"justifyContent": "center",
|
|
157
164
|
"marginRight": 8,
|
|
158
165
|
"overflow": "hidden",
|
|
166
|
+
"paddingLeft": 24,
|
|
167
|
+
"paddingRight": 24,
|
|
168
|
+
"position": "relative",
|
|
159
169
|
"pressed": {
|
|
160
170
|
"bottom": 0,
|
|
161
171
|
"left": 0,
|
|
@@ -172,105 +182,55 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
172
182
|
}
|
|
173
183
|
testID="size-selector"
|
|
174
184
|
>
|
|
175
|
-
<
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
0,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
startPoint={
|
|
189
|
-
[
|
|
190
|
-
0,
|
|
191
|
-
1,
|
|
192
|
-
]
|
|
185
|
+
<View
|
|
186
|
+
collapsable={false}
|
|
187
|
+
pointerEvents="none"
|
|
188
|
+
style={
|
|
189
|
+
{
|
|
190
|
+
"backgroundColor": "#B7B3B3",
|
|
191
|
+
"height": 48,
|
|
192
|
+
"left": 0,
|
|
193
|
+
"opacity": 0.7,
|
|
194
|
+
"position": "absolute",
|
|
195
|
+
"top": 0,
|
|
196
|
+
"width": "0%",
|
|
197
|
+
}
|
|
193
198
|
}
|
|
199
|
+
/>
|
|
200
|
+
<View
|
|
194
201
|
style={
|
|
195
202
|
[
|
|
196
203
|
{
|
|
197
|
-
"
|
|
198
|
-
"
|
|
204
|
+
"alignItems": "center",
|
|
205
|
+
"flexDirection": "row",
|
|
199
206
|
"justifyContent": "center",
|
|
200
|
-
"overflow": "hidden",
|
|
201
|
-
"paddingLeft": 24,
|
|
202
|
-
"paddingRight": 24,
|
|
203
|
-
"position": "relative",
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"borderColor": "#0C0A0A",
|
|
207
|
-
"borderStyle": "solid",
|
|
208
|
-
"borderWidth": 2,
|
|
209
|
-
"height": 64,
|
|
210
|
-
"paddingLeft": 24,
|
|
211
|
-
"paddingRight": 24,
|
|
212
|
-
},
|
|
213
|
-
undefined,
|
|
214
|
-
{
|
|
215
|
-
"height": 48,
|
|
216
|
-
},
|
|
217
|
-
false,
|
|
218
|
-
{
|
|
219
|
-
"borderRadius": 9999,
|
|
220
207
|
},
|
|
221
208
|
]
|
|
222
209
|
}
|
|
223
210
|
>
|
|
224
|
-
<
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
style={
|
|
228
|
-
{
|
|
229
|
-
"backgroundColor": "#B7B3B3",
|
|
230
|
-
"height": 48,
|
|
231
|
-
"left": 0,
|
|
232
|
-
"opacity": 0.7,
|
|
233
|
-
"position": "absolute",
|
|
234
|
-
"top": 0,
|
|
235
|
-
"width": "0%",
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
/>
|
|
239
|
-
<View
|
|
211
|
+
<Text
|
|
212
|
+
allowFontScaling={false}
|
|
213
|
+
selectable={false}
|
|
240
214
|
style={
|
|
241
215
|
[
|
|
242
216
|
{
|
|
243
|
-
"
|
|
244
|
-
"
|
|
245
|
-
"
|
|
217
|
+
"color": "#0C0C0A",
|
|
218
|
+
"fontFamily": "AreaNormal-Extrabold",
|
|
219
|
+
"fontSize": 15,
|
|
220
|
+
"letterSpacing": -0.2,
|
|
221
|
+
"lineHeight": 20,
|
|
222
|
+
"paddingBottom": 0,
|
|
223
|
+
"paddingLeft": 0,
|
|
224
|
+
"paddingRight": 0,
|
|
225
|
+
"paddingTop": 2,
|
|
226
|
+
"textAlign": "center",
|
|
246
227
|
},
|
|
247
228
|
]
|
|
248
229
|
}
|
|
249
230
|
>
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
style={
|
|
254
|
-
[
|
|
255
|
-
{
|
|
256
|
-
"color": "#0C0C0A",
|
|
257
|
-
"fontFamily": "AreaNormal-Extrabold",
|
|
258
|
-
"fontSize": 15,
|
|
259
|
-
"letterSpacing": -0.2,
|
|
260
|
-
"lineHeight": 20,
|
|
261
|
-
"paddingBottom": 0,
|
|
262
|
-
"paddingLeft": 0,
|
|
263
|
-
"paddingRight": 0,
|
|
264
|
-
"paddingTop": 0,
|
|
265
|
-
"textAlign": "center",
|
|
266
|
-
},
|
|
267
|
-
]
|
|
268
|
-
}
|
|
269
|
-
>
|
|
270
|
-
item.change_size_button
|
|
271
|
-
</Text>
|
|
272
|
-
</View>
|
|
273
|
-
</ViewManagerAdapter_ExpoLinearGradient>
|
|
231
|
+
item.change_size_button
|
|
232
|
+
</Text>
|
|
233
|
+
</View>
|
|
274
234
|
</View>
|
|
275
235
|
<View
|
|
276
236
|
accessibilityRole="button"
|
|
@@ -317,13 +277,23 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
317
277
|
"right": 0,
|
|
318
278
|
"top": 0,
|
|
319
279
|
},
|
|
280
|
+
"alignContent": "center",
|
|
320
281
|
"alignSelf": "flex-start",
|
|
282
|
+
"backgroundColor": "#FFFFFF",
|
|
283
|
+
"borderColor": "#0C0A0A",
|
|
284
|
+
"borderRadius": 9999,
|
|
285
|
+
"borderStyle": "solid",
|
|
286
|
+
"borderWidth": 2,
|
|
321
287
|
"container": {
|
|
322
288
|
"overflow": "hidden",
|
|
323
289
|
},
|
|
324
290
|
"flex": 1,
|
|
325
291
|
"height": 48,
|
|
292
|
+
"justifyContent": "center",
|
|
326
293
|
"overflow": "hidden",
|
|
294
|
+
"paddingLeft": 24,
|
|
295
|
+
"paddingRight": 24,
|
|
296
|
+
"position": "relative",
|
|
327
297
|
"pressed": {
|
|
328
298
|
"bottom": 0,
|
|
329
299
|
"left": 0,
|
|
@@ -340,105 +310,55 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
340
310
|
}
|
|
341
311
|
testID="return-button"
|
|
342
312
|
>
|
|
343
|
-
<
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
0,
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
startPoint={
|
|
357
|
-
[
|
|
358
|
-
0,
|
|
359
|
-
1,
|
|
360
|
-
]
|
|
313
|
+
<View
|
|
314
|
+
collapsable={false}
|
|
315
|
+
pointerEvents="none"
|
|
316
|
+
style={
|
|
317
|
+
{
|
|
318
|
+
"backgroundColor": "#B7B3B3",
|
|
319
|
+
"height": 48,
|
|
320
|
+
"left": 0,
|
|
321
|
+
"opacity": 0.7,
|
|
322
|
+
"position": "absolute",
|
|
323
|
+
"top": 0,
|
|
324
|
+
"width": "0%",
|
|
325
|
+
}
|
|
361
326
|
}
|
|
327
|
+
/>
|
|
328
|
+
<View
|
|
362
329
|
style={
|
|
363
330
|
[
|
|
364
331
|
{
|
|
365
|
-
"
|
|
366
|
-
"
|
|
332
|
+
"alignItems": "center",
|
|
333
|
+
"flexDirection": "row",
|
|
367
334
|
"justifyContent": "center",
|
|
368
|
-
"overflow": "hidden",
|
|
369
|
-
"paddingLeft": 24,
|
|
370
|
-
"paddingRight": 24,
|
|
371
|
-
"position": "relative",
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"borderColor": "#0C0A0A",
|
|
375
|
-
"borderStyle": "solid",
|
|
376
|
-
"borderWidth": 2,
|
|
377
|
-
"height": 64,
|
|
378
|
-
"paddingLeft": 24,
|
|
379
|
-
"paddingRight": 24,
|
|
380
|
-
},
|
|
381
|
-
undefined,
|
|
382
|
-
{
|
|
383
|
-
"height": 48,
|
|
384
|
-
},
|
|
385
|
-
false,
|
|
386
|
-
{
|
|
387
|
-
"borderRadius": 9999,
|
|
388
335
|
},
|
|
389
336
|
]
|
|
390
337
|
}
|
|
391
338
|
>
|
|
392
|
-
<
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
style={
|
|
396
|
-
{
|
|
397
|
-
"backgroundColor": "#B7B3B3",
|
|
398
|
-
"height": 48,
|
|
399
|
-
"left": 0,
|
|
400
|
-
"opacity": 0.7,
|
|
401
|
-
"position": "absolute",
|
|
402
|
-
"top": 0,
|
|
403
|
-
"width": "0%",
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
/>
|
|
407
|
-
<View
|
|
339
|
+
<Text
|
|
340
|
+
allowFontScaling={false}
|
|
341
|
+
selectable={false}
|
|
408
342
|
style={
|
|
409
343
|
[
|
|
410
344
|
{
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
345
|
+
"color": "#0C0C0A",
|
|
346
|
+
"fontFamily": "AreaNormal-Extrabold",
|
|
347
|
+
"fontSize": 15,
|
|
348
|
+
"letterSpacing": -0.2,
|
|
349
|
+
"lineHeight": 20,
|
|
350
|
+
"paddingBottom": 0,
|
|
351
|
+
"paddingLeft": 0,
|
|
352
|
+
"paddingRight": 0,
|
|
353
|
+
"paddingTop": 2,
|
|
354
|
+
"textAlign": "center",
|
|
414
355
|
},
|
|
415
356
|
]
|
|
416
357
|
}
|
|
417
358
|
>
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
style={
|
|
422
|
-
[
|
|
423
|
-
{
|
|
424
|
-
"color": "#0C0C0A",
|
|
425
|
-
"fontFamily": "AreaNormal-Extrabold",
|
|
426
|
-
"fontSize": 15,
|
|
427
|
-
"letterSpacing": -0.2,
|
|
428
|
-
"lineHeight": 20,
|
|
429
|
-
"paddingBottom": 0,
|
|
430
|
-
"paddingLeft": 0,
|
|
431
|
-
"paddingRight": 0,
|
|
432
|
-
"paddingTop": 0,
|
|
433
|
-
"textAlign": "center",
|
|
434
|
-
},
|
|
435
|
-
]
|
|
436
|
-
}
|
|
437
|
-
>
|
|
438
|
-
item.return_button
|
|
439
|
-
</Text>
|
|
440
|
-
</View>
|
|
441
|
-
</ViewManagerAdapter_ExpoLinearGradient>
|
|
359
|
+
item.return_button
|
|
360
|
+
</Text>
|
|
361
|
+
</View>
|
|
442
362
|
</View>
|
|
443
363
|
</View>
|
|
444
364
|
<View
|
|
@@ -486,12 +406,19 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
486
406
|
"right": 0,
|
|
487
407
|
"top": 0,
|
|
488
408
|
},
|
|
409
|
+
"alignContent": "center",
|
|
489
410
|
"alignSelf": "flex-start",
|
|
411
|
+
"backgroundColor": "#0C0A0A",
|
|
412
|
+
"borderRadius": 9999,
|
|
490
413
|
"container": {
|
|
491
414
|
"overflow": "hidden",
|
|
492
415
|
},
|
|
493
416
|
"height": 48,
|
|
417
|
+
"justifyContent": "center",
|
|
494
418
|
"overflow": "hidden",
|
|
419
|
+
"paddingLeft": 24,
|
|
420
|
+
"paddingRight": 24,
|
|
421
|
+
"position": "relative",
|
|
495
422
|
"pressed": {
|
|
496
423
|
"bottom": 0,
|
|
497
424
|
"left": 0,
|
|
@@ -508,98 +435,55 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
508
435
|
}
|
|
509
436
|
testID="keep-button"
|
|
510
437
|
>
|
|
511
|
-
<
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
0,
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
startPoint={
|
|
525
|
-
[
|
|
526
|
-
0,
|
|
527
|
-
1,
|
|
528
|
-
]
|
|
438
|
+
<View
|
|
439
|
+
collapsable={false}
|
|
440
|
+
pointerEvents="none"
|
|
441
|
+
style={
|
|
442
|
+
{
|
|
443
|
+
"backgroundColor": "#716A6B",
|
|
444
|
+
"height": 48,
|
|
445
|
+
"left": 0,
|
|
446
|
+
"opacity": 0.7,
|
|
447
|
+
"position": "absolute",
|
|
448
|
+
"top": 0,
|
|
449
|
+
"width": "0%",
|
|
450
|
+
}
|
|
529
451
|
}
|
|
452
|
+
/>
|
|
453
|
+
<View
|
|
530
454
|
style={
|
|
531
455
|
[
|
|
532
456
|
{
|
|
533
|
-
"
|
|
534
|
-
"
|
|
457
|
+
"alignItems": "center",
|
|
458
|
+
"flexDirection": "row",
|
|
535
459
|
"justifyContent": "center",
|
|
536
|
-
"overflow": "hidden",
|
|
537
|
-
"paddingLeft": 24,
|
|
538
|
-
"paddingRight": 24,
|
|
539
|
-
"position": "relative",
|
|
540
|
-
},
|
|
541
|
-
{},
|
|
542
|
-
undefined,
|
|
543
|
-
{
|
|
544
|
-
"height": 48,
|
|
545
|
-
},
|
|
546
|
-
false,
|
|
547
|
-
{
|
|
548
|
-
"borderRadius": 9999,
|
|
549
460
|
},
|
|
550
461
|
]
|
|
551
462
|
}
|
|
552
463
|
>
|
|
553
|
-
<
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
style={
|
|
557
|
-
{
|
|
558
|
-
"backgroundColor": "#716A6B",
|
|
559
|
-
"height": 48,
|
|
560
|
-
"left": 0,
|
|
561
|
-
"opacity": 0.7,
|
|
562
|
-
"position": "absolute",
|
|
563
|
-
"top": 0,
|
|
564
|
-
"width": "0%",
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
/>
|
|
568
|
-
<View
|
|
464
|
+
<Text
|
|
465
|
+
allowFontScaling={false}
|
|
466
|
+
selectable={false}
|
|
569
467
|
style={
|
|
570
468
|
[
|
|
571
469
|
{
|
|
572
|
-
"
|
|
573
|
-
"
|
|
574
|
-
"
|
|
470
|
+
"color": "#FFFFFF",
|
|
471
|
+
"fontFamily": "AreaNormal-Extrabold",
|
|
472
|
+
"fontSize": 15,
|
|
473
|
+
"letterSpacing": -0.2,
|
|
474
|
+
"lineHeight": 20,
|
|
475
|
+
"paddingBottom": 0,
|
|
476
|
+
"paddingLeft": 0,
|
|
477
|
+
"paddingRight": 0,
|
|
478
|
+
"paddingTop": 2,
|
|
479
|
+
"textAlign": "center",
|
|
575
480
|
},
|
|
576
481
|
]
|
|
577
482
|
}
|
|
578
483
|
>
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
style={
|
|
583
|
-
[
|
|
584
|
-
{
|
|
585
|
-
"color": "#FFFFFF",
|
|
586
|
-
"fontFamily": "AreaNormal-Extrabold",
|
|
587
|
-
"fontSize": 15,
|
|
588
|
-
"letterSpacing": -0.2,
|
|
589
|
-
"lineHeight": 20,
|
|
590
|
-
"paddingBottom": 0,
|
|
591
|
-
"paddingLeft": 0,
|
|
592
|
-
"paddingRight": 0,
|
|
593
|
-
"paddingTop": 0,
|
|
594
|
-
"textAlign": "center",
|
|
595
|
-
},
|
|
596
|
-
]
|
|
597
|
-
}
|
|
598
|
-
>
|
|
599
|
-
item.keep_button
|
|
600
|
-
</Text>
|
|
601
|
-
</View>
|
|
602
|
-
</ViewManagerAdapter_ExpoLinearGradient>
|
|
484
|
+
item.keep_button
|
|
485
|
+
</Text>
|
|
486
|
+
</View>
|
|
603
487
|
</View>
|
|
604
488
|
</View>
|
|
605
489
|
</View>
|
|
@@ -904,7 +788,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
904
788
|
"paddingBottom": 0,
|
|
905
789
|
"paddingLeft": 0,
|
|
906
790
|
"paddingRight": 0,
|
|
907
|
-
"paddingTop":
|
|
791
|
+
"paddingTop": 2,
|
|
908
792
|
},
|
|
909
793
|
]
|
|
910
794
|
}
|
|
@@ -962,7 +846,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
962
846
|
"paddingBottom": 0,
|
|
963
847
|
"paddingLeft": 0,
|
|
964
848
|
"paddingRight": 0,
|
|
965
|
-
"paddingTop":
|
|
849
|
+
"paddingTop": 2,
|
|
966
850
|
},
|
|
967
851
|
]
|
|
968
852
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const {
|
|
4
|
+
const { space4, space6 } = theme();
|
|
5
5
|
|
|
6
6
|
const style = StyleSheet.create({
|
|
7
7
|
brand: {
|
|
8
8
|
flex: 1,
|
|
9
|
-
gap: space1,
|
|
10
9
|
},
|
|
11
10
|
container: {
|
|
12
11
|
width: "100%",
|
|
@@ -7,7 +7,7 @@ import { useScreenSize } from "@lookiero/sty-psp-ui";
|
|
|
7
7
|
import { PriceProjection } from "../../../../../../projection/price/price";
|
|
8
8
|
import { SizeProjection, size } from "../../../../../../projection/size/size";
|
|
9
9
|
import { Price } from "../../../../components/atoms/price/Price";
|
|
10
|
-
import {
|
|
10
|
+
import { I18nMessages } from "../../../../i18n/i18n";
|
|
11
11
|
import { style } from "./ProductVariantDescription.style";
|
|
12
12
|
|
|
13
13
|
interface ProductVariantDescriptionProps {
|
|
@@ -24,8 +24,8 @@ const ProductVariantDescription: FC<ProductVariantDescriptionProps> = ({
|
|
|
24
24
|
size: sizeProjection,
|
|
25
25
|
country,
|
|
26
26
|
}) => {
|
|
27
|
-
const sizeText = useI18nMessage({
|
|
28
|
-
const uniqueText = useI18nMessage({
|
|
27
|
+
const sizeText = useI18nMessage({ id: I18nMessages.ITEM_SIZE });
|
|
28
|
+
const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
|
|
29
29
|
const screenDevice = useScreenSize();
|
|
30
30
|
const isDesktopScreen = screenDevice !== "S";
|
|
31
31
|
|
|
@@ -54,7 +54,6 @@ exports[`ProductVariantDescription component matches the snapshot for a non-uniq
|
|
|
54
54
|
style={
|
|
55
55
|
{
|
|
56
56
|
"flex": 1,
|
|
57
|
-
"gap": 4,
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
>
|
|
@@ -72,7 +71,7 @@ exports[`ProductVariantDescription component matches the snapshot for a non-uniq
|
|
|
72
71
|
"paddingBottom": 0,
|
|
73
72
|
"paddingLeft": 0,
|
|
74
73
|
"paddingRight": 0,
|
|
75
|
-
"paddingTop":
|
|
74
|
+
"paddingTop": 4,
|
|
76
75
|
},
|
|
77
76
|
]
|
|
78
77
|
}
|
|
@@ -93,7 +92,7 @@ exports[`ProductVariantDescription component matches the snapshot for a non-uniq
|
|
|
93
92
|
"paddingBottom": 0,
|
|
94
93
|
"paddingLeft": 0,
|
|
95
94
|
"paddingRight": 0,
|
|
96
|
-
"paddingTop":
|
|
95
|
+
"paddingTop": 4,
|
|
97
96
|
},
|
|
98
97
|
]
|
|
99
98
|
}
|
|
@@ -123,7 +122,7 @@ exports[`ProductVariantDescription component matches the snapshot for a non-uniq
|
|
|
123
122
|
"paddingBottom": 0,
|
|
124
123
|
"paddingLeft": 0,
|
|
125
124
|
"paddingRight": 0,
|
|
126
|
-
"paddingTop":
|
|
125
|
+
"paddingTop": 4,
|
|
127
126
|
},
|
|
128
127
|
]
|
|
129
128
|
}
|
|
@@ -147,7 +146,7 @@ exports[`ProductVariantDescription component matches the snapshot for a non-uniq
|
|
|
147
146
|
"paddingBottom": 0,
|
|
148
147
|
"paddingLeft": 0,
|
|
149
148
|
"paddingRight": 0,
|
|
150
|
-
"paddingTop":
|
|
149
|
+
"paddingTop": 4,
|
|
151
150
|
},
|
|
152
151
|
]
|
|
153
152
|
}
|
|
@@ -212,7 +211,6 @@ exports[`ProductVariantDescription component matches the snapshot for an unique
|
|
|
212
211
|
style={
|
|
213
212
|
{
|
|
214
213
|
"flex": 1,
|
|
215
|
-
"gap": 4,
|
|
216
214
|
}
|
|
217
215
|
}
|
|
218
216
|
>
|
|
@@ -230,7 +228,7 @@ exports[`ProductVariantDescription component matches the snapshot for an unique
|
|
|
230
228
|
"paddingBottom": 0,
|
|
231
229
|
"paddingLeft": 0,
|
|
232
230
|
"paddingRight": 0,
|
|
233
|
-
"paddingTop":
|
|
231
|
+
"paddingTop": 4,
|
|
234
232
|
},
|
|
235
233
|
]
|
|
236
234
|
}
|
|
@@ -251,7 +249,7 @@ exports[`ProductVariantDescription component matches the snapshot for an unique
|
|
|
251
249
|
"paddingBottom": 0,
|
|
252
250
|
"paddingLeft": 0,
|
|
253
251
|
"paddingRight": 0,
|
|
254
|
-
"paddingTop":
|
|
252
|
+
"paddingTop": 4,
|
|
255
253
|
},
|
|
256
254
|
]
|
|
257
255
|
}
|
|
@@ -281,7 +279,7 @@ exports[`ProductVariantDescription component matches the snapshot for an unique
|
|
|
281
279
|
"paddingBottom": 0,
|
|
282
280
|
"paddingLeft": 0,
|
|
283
281
|
"paddingRight": 0,
|
|
284
|
-
"paddingTop":
|
|
282
|
+
"paddingTop": 4,
|
|
285
283
|
},
|
|
286
284
|
]
|
|
287
285
|
}
|
|
@@ -305,7 +303,7 @@ exports[`ProductVariantDescription component matches the snapshot for an unique
|
|
|
305
303
|
"paddingBottom": 0,
|
|
306
304
|
"paddingLeft": 0,
|
|
307
305
|
"paddingRight": 0,
|
|
308
|
-
"paddingTop":
|
|
306
|
+
"paddingTop": 4,
|
|
309
307
|
},
|
|
310
308
|
]
|
|
311
309
|
}
|