@lookiero/checkout 11.1.0 → 11.3.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/src/Expo.js +2 -8
- package/dist/src/ExpoRoot.d.ts +1 -5
- package/dist/src/ExpoRoot.js +7 -6
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +3 -2
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +8 -6
- package/dist/src/infrastructure/ui/components/atoms/price/Price.js +3 -2
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.js +18 -16
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +7 -5
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +4 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +26 -22
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.js +11 -9
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.d.ts +3 -3
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.js +18 -13
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +4 -5
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.d.ts +3 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +14 -5
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.js +5 -5
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.js +5 -5
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.js +5 -5
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +2 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +25 -23
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +5 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +11 -9
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.d.ts +1 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.js +13 -11
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +5 -5
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +3 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +23 -18
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +4 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.d.ts +4 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.js +11 -6
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.d.ts +2 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +5 -4
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.d.ts +2 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.js +15 -12
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +4 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +3 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +18 -13
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +10 -5
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.d.ts +10 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.js +16 -4
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +12 -10
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +30 -28
- package/dist/src/infrastructure/ui/components/templates/header/Header.js +6 -3
- package/dist/src/infrastructure/ui/components/templates/header/Header.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/Header.style.js +17 -15
- package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.js +6 -3
- package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.js +10 -8
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +6 -4
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.js +10 -8
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +6 -4
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.js +10 -8
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +7 -5
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.d.ts +2 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.js +11 -9
- package/dist/src/infrastructure/ui/views/App.js +8 -6
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +12 -10
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +63 -61
- package/dist/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +4 -3
- package/dist/src/infrastructure/ui/views/feedback/Feedback.js +3 -2
- package/dist/src/infrastructure/ui/views/feedback/Feedback.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/feedback/Feedback.style.js +13 -11
- package/dist/src/infrastructure/ui/views/item/Item.js +4 -2
- package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/Item.style.js +21 -19
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +3 -2
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +11 -9
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +7 -6
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +3 -1
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +26 -22
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +2 -1
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.js +28 -26
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +7 -6
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +6 -3
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +23 -18
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +13 -6
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +2 -1
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +34 -28
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +5 -3
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +11 -9
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +7 -7
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.d.ts +5 -1
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.js +27 -18
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +3 -2
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +17 -15
- package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.js +3 -2
- package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.js +19 -17
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +6 -5
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.d.ts +2 -1
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.js +13 -7
- package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.js +3 -2
- package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.js +17 -15
- package/dist/src/infrastructure/ui/views/return/components/price/Price.js +3 -2
- package/dist/src/infrastructure/ui/views/return/components/price/Price.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/return/components/price/Price.style.js +18 -16
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +10 -9
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.d.ts +4 -1
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.js +35 -30
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +12 -8
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +50 -48
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +7 -6
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.d.ts +4 -1
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +43 -38
- package/dist/src/infrastructure/ui/views/summary/Summary.js +12 -10
- package/dist/src/infrastructure/ui/views/summary/Summary.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/summary/Summary.style.js +72 -70
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +5 -3
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.js +20 -18
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +9 -5
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +15 -13
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +19 -7
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +29 -27
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +3 -3
- package/src/Expo.tsx +2 -10
- package/src/ExpoRoot.tsx +8 -10
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +8 -6
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +4 -2
- package/src/infrastructure/ui/components/atoms/price/Price.style.ts +18 -16
- package/src/infrastructure/ui/components/atoms/price/Price.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +34 -31
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +9 -5
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.ts +11 -9
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.ts +19 -13
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.ts +16 -5
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.tsx +6 -6
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.tsx +5 -5
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.tsx +5 -5
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.tsx +5 -5
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +26 -24
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +3 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.ts +11 -9
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +6 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.ts +13 -11
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.ts +24 -18
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +6 -5
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.ts +11 -6
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +5 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.ts +15 -12
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +8 -6
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.ts +19 -13
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +5 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.ts +16 -4
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +24 -14
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.ts +12 -10
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +31 -29
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +4 -2
- package/src/infrastructure/ui/components/templates/header/Header.style.ts +18 -16
- package/src/infrastructure/ui/components/templates/header/Header.tsx +11 -7
- package/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.ts +10 -8
- package/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.tsx +7 -3
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.ts +10 -8
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +7 -4
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +31 -80
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.ts +10 -8
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +7 -4
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +31 -80
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.ts +11 -9
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +8 -5
- package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +62 -160
- package/src/infrastructure/ui/views/App.tsx +12 -10
- package/src/infrastructure/ui/views/checkout/Checkout.style.ts +63 -61
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +16 -12
- package/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.tsx +4 -3
- package/src/infrastructure/ui/views/feedback/Feedback.style.ts +13 -11
- package/src/infrastructure/ui/views/feedback/Feedback.tsx +5 -2
- package/src/infrastructure/ui/views/item/Item.style.ts +21 -19
- package/src/infrastructure/ui/views/item/Item.tsx +6 -2
- package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.ts +11 -9
- package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +5 -2
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.ts +26 -22
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +8 -6
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.ts +28 -26
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +3 -1
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +23 -18
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +9 -6
- package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.ts +37 -29
- package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.tsx +13 -6
- package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.ts +11 -9
- package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +6 -3
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.ts +29 -18
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +8 -9
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.ts +18 -15
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +4 -2
- package/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.ts +19 -17
- package/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.tsx +4 -2
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.ts +15 -8
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.tsx +7 -6
- package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.ts +17 -15
- package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.tsx +4 -2
- package/src/infrastructure/ui/views/return/components/price/Price.style.ts +18 -16
- package/src/infrastructure/ui/views/return/components/price/Price.tsx +4 -2
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.ts +36 -31
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +11 -9
- package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +11 -12
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +50 -48
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +13 -10
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +56 -50
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +8 -6
- package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +18 -0
- package/src/infrastructure/ui/views/summary/Summary.style.ts +84 -82
- package/src/infrastructure/ui/views/summary/Summary.tsx +17 -13
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.ts +20 -18
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +6 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +22 -6
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.ts +15 -13
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +15 -10
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.ts +29 -27
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +22 -8
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +36 -0
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import React, { FC, useCallback } from "react";
|
|
1
|
+
import React, { FC, useCallback, useMemo } from "react";
|
|
2
2
|
import { StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import { generatePath, useNavigate } from "react-router-native";
|
|
4
|
-
import {
|
|
4
|
+
import { Text } from "@lookiero/aurora";
|
|
5
5
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
6
|
+
import { ButtonIcon } from "@lookiero/sty-psp-ui";
|
|
6
7
|
import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
7
8
|
import { useStaticInfo } from "../../../../hooks/useStaticInfo";
|
|
8
9
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
9
10
|
import { Routes } from "../../../../routing/routes";
|
|
10
11
|
import { Header } from "../Header";
|
|
11
12
|
import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
|
|
12
|
-
import style from "./ItemHeader.style";
|
|
13
|
+
import { style as itemHeaderStyle } from "./ItemHeader.style";
|
|
13
14
|
|
|
14
15
|
interface OnNextItemFunctionArgs {
|
|
15
16
|
readonly from: string;
|
|
@@ -35,6 +36,8 @@ interface ItemHeaderProps {
|
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
const ItemHeader: FC<ItemHeaderProps> = ({ items, item, onNext, onPrevious }) => {
|
|
39
|
+
const style = useMemo(() => itemHeaderStyle(), []);
|
|
40
|
+
|
|
38
41
|
const title = useI18nMessage({ domain: DOMAIN, id: I18nMessages.HEADER_CHECKOUT_TITLE });
|
|
39
42
|
const itemIndex = items.indexOf(item);
|
|
40
43
|
const isFirstItem = itemIndex === 0;
|
|
@@ -63,7 +66,7 @@ const ItemHeader: FC<ItemHeaderProps> = ({ items, item, onNext, onPrevious }) =>
|
|
|
63
66
|
{!isFirstItem ? (
|
|
64
67
|
<ButtonIcon
|
|
65
68
|
name="arrow_left"
|
|
66
|
-
style={style.button}
|
|
69
|
+
style={{ button: style.button }}
|
|
67
70
|
testID="arrow-left-button-icon"
|
|
68
71
|
onPress={navigateToPreviousItem}
|
|
69
72
|
/>
|
|
@@ -76,7 +79,7 @@ const ItemHeader: FC<ItemHeaderProps> = ({ items, item, onNext, onPrevious }) =>
|
|
|
76
79
|
{!isLastItem ? (
|
|
77
80
|
<ButtonIcon
|
|
78
81
|
name="arrow_right"
|
|
79
|
-
style={style.button}
|
|
82
|
+
style={{ button: style.button }}
|
|
80
83
|
testID="arrow-right-button-icon"
|
|
81
84
|
onPress={navigateToNextItem}
|
|
82
85
|
/>
|
|
@@ -50,7 +50,6 @@ exports[`ItemHeader template matches the snapshot 1`] = `
|
|
|
50
50
|
testID="item-header"
|
|
51
51
|
>
|
|
52
52
|
<View
|
|
53
|
-
accessibilityRole="button"
|
|
54
53
|
accessibilityState={
|
|
55
54
|
{
|
|
56
55
|
"busy": undefined,
|
|
@@ -71,9 +70,7 @@ exports[`ItemHeader template matches the snapshot 1`] = `
|
|
|
71
70
|
accessible={true}
|
|
72
71
|
collapsable={false}
|
|
73
72
|
focusable={true}
|
|
74
|
-
onBlur={[Function]}
|
|
75
73
|
onClick={[Function]}
|
|
76
|
-
onFocus={[Function]}
|
|
77
74
|
onResponderGrant={[Function]}
|
|
78
75
|
onResponderMove={[Function]}
|
|
79
76
|
onResponderRelease={[Function]}
|
|
@@ -81,93 +78,47 @@ exports[`ItemHeader template matches the snapshot 1`] = `
|
|
|
81
78
|
onResponderTerminationRequest={[Function]}
|
|
82
79
|
onStartShouldSetResponder={[Function]}
|
|
83
80
|
style={
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"left": 0,
|
|
93
|
-
"right": 0,
|
|
94
|
-
"top": 0,
|
|
95
|
-
},
|
|
96
|
-
"alignSelf": "auto",
|
|
97
|
-
"container": {
|
|
98
|
-
"overflow": "hidden",
|
|
99
|
-
},
|
|
100
|
-
"height": 40,
|
|
101
|
-
"overflow": "visible",
|
|
102
|
-
"padding": 8,
|
|
103
|
-
"pressed": {
|
|
104
|
-
"bottom": 0,
|
|
105
|
-
"left": 0,
|
|
106
|
-
"right": 0,
|
|
107
|
-
"top": 0,
|
|
108
|
-
},
|
|
109
|
-
"width": 40,
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
{
|
|
113
|
-
"opacity": 1,
|
|
114
|
-
},
|
|
115
|
-
]
|
|
81
|
+
{
|
|
82
|
+
"alignSelf": "auto",
|
|
83
|
+
"flexGrow": 0,
|
|
84
|
+
"height": 40,
|
|
85
|
+
"opacity": 1,
|
|
86
|
+
"padding": 8,
|
|
87
|
+
"width": 40,
|
|
88
|
+
}
|
|
116
89
|
}
|
|
117
90
|
testID="arrow-left-button-icon"
|
|
118
91
|
>
|
|
119
|
-
<
|
|
92
|
+
<Text
|
|
93
|
+
accessibilityElementsHidden={true}
|
|
94
|
+
allowFontScaling={false}
|
|
95
|
+
importantForAccessibility="no"
|
|
96
|
+
selectable={false}
|
|
120
97
|
style={
|
|
121
98
|
[
|
|
122
99
|
{
|
|
123
|
-
"
|
|
100
|
+
"color": "#0C0A0A",
|
|
101
|
+
"fontFamily": "auroraicons",
|
|
102
|
+
"fontSize": 24,
|
|
103
|
+
"fontStyle": "normal",
|
|
104
|
+
"fontWeight": "normal",
|
|
105
|
+
"height": 24,
|
|
106
|
+
"letterSpacing": -0.2,
|
|
107
|
+
"lineHeight": 24,
|
|
108
|
+
"minHeight": 24,
|
|
109
|
+
"minWidth": 24,
|
|
110
|
+
"paddingBottom": 0,
|
|
111
|
+
"paddingLeft": 0,
|
|
112
|
+
"paddingRight": 0,
|
|
113
|
+
"paddingTop": 0,
|
|
114
|
+
"width": 24,
|
|
124
115
|
},
|
|
125
116
|
]
|
|
126
117
|
}
|
|
118
|
+
testID="icon"
|
|
127
119
|
>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
allowFontScaling={false}
|
|
131
|
-
importantForAccessibility="no"
|
|
132
|
-
selectable={false}
|
|
133
|
-
style={
|
|
134
|
-
[
|
|
135
|
-
{
|
|
136
|
-
"color": "#0C0A0A",
|
|
137
|
-
"fontFamily": "auroraicons",
|
|
138
|
-
"fontSize": 24,
|
|
139
|
-
"fontStyle": "normal",
|
|
140
|
-
"fontWeight": "normal",
|
|
141
|
-
"height": 24,
|
|
142
|
-
"width": 24,
|
|
143
|
-
},
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
>
|
|
147
|
-
|
|
148
|
-
</Text>
|
|
149
|
-
<View
|
|
150
|
-
collapsable={false}
|
|
151
|
-
style={
|
|
152
|
-
{
|
|
153
|
-
"backgroundColor": "#F45545",
|
|
154
|
-
"borderColor": "#FFFFFF",
|
|
155
|
-
"borderRadius": 9999,
|
|
156
|
-
"borderWidth": 2,
|
|
157
|
-
"height": 10,
|
|
158
|
-
"position": "absolute",
|
|
159
|
-
"right": 0,
|
|
160
|
-
"top": 0,
|
|
161
|
-
"transform": [
|
|
162
|
-
{
|
|
163
|
-
"scale": 0,
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
"width": 10,
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
/>
|
|
170
|
-
</View>
|
|
120
|
+
|
|
121
|
+
</Text>
|
|
171
122
|
</View>
|
|
172
123
|
<Text
|
|
173
124
|
allowFontScaling={false}
|
|
@@ -191,7 +142,6 @@ exports[`ItemHeader template matches the snapshot 1`] = `
|
|
|
191
142
|
header.checkout_title
|
|
192
143
|
</Text>
|
|
193
144
|
<View
|
|
194
|
-
accessibilityRole="button"
|
|
195
145
|
accessibilityState={
|
|
196
146
|
{
|
|
197
147
|
"busy": undefined,
|
|
@@ -212,9 +162,7 @@ exports[`ItemHeader template matches the snapshot 1`] = `
|
|
|
212
162
|
accessible={true}
|
|
213
163
|
collapsable={false}
|
|
214
164
|
focusable={true}
|
|
215
|
-
onBlur={[Function]}
|
|
216
165
|
onClick={[Function]}
|
|
217
|
-
onFocus={[Function]}
|
|
218
166
|
onResponderGrant={[Function]}
|
|
219
167
|
onResponderMove={[Function]}
|
|
220
168
|
onResponderRelease={[Function]}
|
|
@@ -222,93 +170,47 @@ exports[`ItemHeader template matches the snapshot 1`] = `
|
|
|
222
170
|
onResponderTerminationRequest={[Function]}
|
|
223
171
|
onStartShouldSetResponder={[Function]}
|
|
224
172
|
style={
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
"left": 0,
|
|
234
|
-
"right": 0,
|
|
235
|
-
"top": 0,
|
|
236
|
-
},
|
|
237
|
-
"alignSelf": "auto",
|
|
238
|
-
"container": {
|
|
239
|
-
"overflow": "hidden",
|
|
240
|
-
},
|
|
241
|
-
"height": 40,
|
|
242
|
-
"overflow": "visible",
|
|
243
|
-
"padding": 8,
|
|
244
|
-
"pressed": {
|
|
245
|
-
"bottom": 0,
|
|
246
|
-
"left": 0,
|
|
247
|
-
"right": 0,
|
|
248
|
-
"top": 0,
|
|
249
|
-
},
|
|
250
|
-
"width": 40,
|
|
251
|
-
},
|
|
252
|
-
],
|
|
253
|
-
{
|
|
254
|
-
"opacity": 1,
|
|
255
|
-
},
|
|
256
|
-
]
|
|
173
|
+
{
|
|
174
|
+
"alignSelf": "auto",
|
|
175
|
+
"flexGrow": 0,
|
|
176
|
+
"height": 40,
|
|
177
|
+
"opacity": 1,
|
|
178
|
+
"padding": 8,
|
|
179
|
+
"width": 40,
|
|
180
|
+
}
|
|
257
181
|
}
|
|
258
182
|
testID="arrow-right-button-icon"
|
|
259
183
|
>
|
|
260
|
-
<
|
|
184
|
+
<Text
|
|
185
|
+
accessibilityElementsHidden={true}
|
|
186
|
+
allowFontScaling={false}
|
|
187
|
+
importantForAccessibility="no"
|
|
188
|
+
selectable={false}
|
|
261
189
|
style={
|
|
262
190
|
[
|
|
263
191
|
{
|
|
264
|
-
"
|
|
192
|
+
"color": "#0C0A0A",
|
|
193
|
+
"fontFamily": "auroraicons",
|
|
194
|
+
"fontSize": 24,
|
|
195
|
+
"fontStyle": "normal",
|
|
196
|
+
"fontWeight": "normal",
|
|
197
|
+
"height": 24,
|
|
198
|
+
"letterSpacing": -0.2,
|
|
199
|
+
"lineHeight": 24,
|
|
200
|
+
"minHeight": 24,
|
|
201
|
+
"minWidth": 24,
|
|
202
|
+
"paddingBottom": 0,
|
|
203
|
+
"paddingLeft": 0,
|
|
204
|
+
"paddingRight": 0,
|
|
205
|
+
"paddingTop": 0,
|
|
206
|
+
"width": 24,
|
|
265
207
|
},
|
|
266
208
|
]
|
|
267
209
|
}
|
|
210
|
+
testID="icon"
|
|
268
211
|
>
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
allowFontScaling={false}
|
|
272
|
-
importantForAccessibility="no"
|
|
273
|
-
selectable={false}
|
|
274
|
-
style={
|
|
275
|
-
[
|
|
276
|
-
{
|
|
277
|
-
"color": "#0C0A0A",
|
|
278
|
-
"fontFamily": "auroraicons",
|
|
279
|
-
"fontSize": 24,
|
|
280
|
-
"fontStyle": "normal",
|
|
281
|
-
"fontWeight": "normal",
|
|
282
|
-
"height": 24,
|
|
283
|
-
"width": 24,
|
|
284
|
-
},
|
|
285
|
-
]
|
|
286
|
-
}
|
|
287
|
-
>
|
|
288
|
-
|
|
289
|
-
</Text>
|
|
290
|
-
<View
|
|
291
|
-
collapsable={false}
|
|
292
|
-
style={
|
|
293
|
-
{
|
|
294
|
-
"backgroundColor": "#F45545",
|
|
295
|
-
"borderColor": "#FFFFFF",
|
|
296
|
-
"borderRadius": 9999,
|
|
297
|
-
"borderWidth": 2,
|
|
298
|
-
"height": 10,
|
|
299
|
-
"position": "absolute",
|
|
300
|
-
"right": 0,
|
|
301
|
-
"top": 0,
|
|
302
|
-
"transform": [
|
|
303
|
-
{
|
|
304
|
-
"scale": 0,
|
|
305
|
-
},
|
|
306
|
-
],
|
|
307
|
-
"width": 10,
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
/>
|
|
311
|
-
</View>
|
|
212
|
+
|
|
213
|
+
</Text>
|
|
312
214
|
</View>
|
|
313
215
|
</View>
|
|
314
216
|
</View>
|
|
@@ -7,19 +7,21 @@ import { theme } from "@lookiero/sty-psp-ui";
|
|
|
7
7
|
import { MESSAGING_CONTEXT_ID } from "../../delivery/baseBootstrap";
|
|
8
8
|
import { DOMAIN } from "../i18n/i18n";
|
|
9
9
|
|
|
10
|
-
const { colorBgBase } = theme();
|
|
11
|
-
|
|
12
10
|
interface AppProps {
|
|
13
11
|
readonly children: JSX.Element;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
|
-
const App: FC<AppProps> = ({ children }) =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
const App: FC<AppProps> = ({ children }) => {
|
|
15
|
+
const { colorBgBase } = theme();
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<SafeAreaProvider>
|
|
19
|
+
<StatusBar backgroundColor={colorBgBase} barStyle="dark-content" translucent />
|
|
20
|
+
<Notifications contextId={MESSAGING_CONTEXT_ID} domain={DOMAIN} portalHostName="Checkout" />
|
|
21
|
+
<PortalHost name="Checkout" />
|
|
22
|
+
{children}
|
|
23
|
+
</SafeAreaProvider>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
24
26
|
|
|
25
27
|
export { App };
|
|
@@ -2,67 +2,69 @@ import { StyleSheet, Platform } from "react-native";
|
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
import { HEADER_HEIGHT } from "../../components/templates/header/Header.style";
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const style = () => {
|
|
6
|
+
const { borderRadius4, colorBgPrimaryLight, colorBgBase, space2, space3, space4, space6, space12, space16 } = theme();
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
});
|
|
8
|
+
return StyleSheet.create({
|
|
9
|
+
contentWrapper: {
|
|
10
|
+
backgroundColor: colorBgBase,
|
|
11
|
+
flexGrow: 0,
|
|
12
|
+
paddingHorizontal: space6,
|
|
13
|
+
paddingVertical: space6,
|
|
14
|
+
},
|
|
15
|
+
desktopContentWrapper: {
|
|
16
|
+
borderRadius: borderRadius4,
|
|
17
|
+
paddingVertical: space12,
|
|
18
|
+
},
|
|
19
|
+
desktopLayoutSpacing: {
|
|
20
|
+
paddingVertical: space12,
|
|
21
|
+
},
|
|
22
|
+
desktopListSpacing: {
|
|
23
|
+
paddingRight: space16,
|
|
24
|
+
},
|
|
25
|
+
desktopResume: {
|
|
26
|
+
borderRadius: borderRadius4,
|
|
27
|
+
},
|
|
28
|
+
header: {
|
|
29
|
+
height: HEADER_HEIGHT,
|
|
30
|
+
},
|
|
31
|
+
paymentSelector: {
|
|
32
|
+
marginTop: space6,
|
|
33
|
+
},
|
|
34
|
+
paymentSelectorNL: {
|
|
35
|
+
marginBottom: space6,
|
|
36
|
+
},
|
|
37
|
+
princingWrapper: {
|
|
38
|
+
padding: space6,
|
|
39
|
+
},
|
|
40
|
+
princingWrapperSmall: {
|
|
41
|
+
backgroundColor: colorBgPrimaryLight,
|
|
42
|
+
paddingBottom: space2,
|
|
43
|
+
},
|
|
44
|
+
resume: {
|
|
45
|
+
overflow: "hidden",
|
|
46
|
+
backgroundColor: colorBgBase,
|
|
47
|
+
...Platform.select({
|
|
48
|
+
web: {
|
|
49
|
+
position: "sticky",
|
|
50
|
+
top: space12,
|
|
51
|
+
alignSelf: "flex-start",
|
|
52
|
+
},
|
|
53
|
+
}),
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
55
|
+
} as any,
|
|
56
|
+
scrollView: {
|
|
57
|
+
backgroundColor: colorBgPrimaryLight,
|
|
58
|
+
flex: 1,
|
|
59
|
+
},
|
|
60
|
+
sticky: {
|
|
61
|
+
paddingBottom: space4,
|
|
62
|
+
paddingTop: space3,
|
|
63
|
+
},
|
|
64
|
+
title: {
|
|
65
|
+
marginBottom: space4,
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
};
|
|
67
69
|
|
|
68
70
|
export { style };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { FC, useCallback, useMemo, useState } from "react";
|
|
2
2
|
import { LayoutRectangle, Platform, ScrollView, View } from "react-native";
|
|
3
3
|
import { useNavigate } from "react-router-native";
|
|
4
|
-
import { Box, Button, Layout as AuroraLayout, Spinner, Text
|
|
4
|
+
import { Box, Button, Layout as AuroraLayout, Spinner, Text } from "@lookiero/aurora";
|
|
5
5
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
6
6
|
import { QueryStatus } from "@lookiero/messaging-react";
|
|
7
7
|
import { Country } from "@lookiero/sty-psp-locale";
|
|
8
|
-
import { Layout as UiLayout, Sticky } from "@lookiero/sty-psp-ui";
|
|
8
|
+
import { Layout as UiLayout, Sticky, useScreenSize } from "@lookiero/sty-psp-ui";
|
|
9
9
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
10
10
|
import { OrderProjection } from "../../../../projection/order/order";
|
|
11
11
|
import { SubscriptionProjection } from "../../../../projection/subscription/subscription";
|
|
@@ -23,7 +23,7 @@ import { DOMAIN, I18nMessages } from "../../i18n/i18n";
|
|
|
23
23
|
import { Routes } from "../../routing/routes";
|
|
24
24
|
import { ProductVariant } from "../shared/components/productVariant/ProductVariant";
|
|
25
25
|
import { Pricing } from "../summary/components/pricing/Pricing";
|
|
26
|
-
import { style } from "./Checkout.style";
|
|
26
|
+
import { style as checkoutStyle } from "./Checkout.style";
|
|
27
27
|
import { DeliveryBanner } from "./components/deliveryBanner/DeliveryBanner";
|
|
28
28
|
import { PaymentInstrument } from "./components/paymentInstrument/PaymentInstrument";
|
|
29
29
|
|
|
@@ -48,9 +48,13 @@ const Checkout: FC<CheckoutProps> = ({
|
|
|
48
48
|
customer: { customerId, country, segment },
|
|
49
49
|
basePath,
|
|
50
50
|
} = useStaticInfo();
|
|
51
|
+
const screenSize = useScreenSize();
|
|
52
|
+
const isDektopScreen = screenSize === "L";
|
|
53
|
+
|
|
54
|
+
const style = useMemo(() => checkoutStyle(), []);
|
|
55
|
+
|
|
51
56
|
const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.CHECKOUT_TITLE });
|
|
52
57
|
const submitButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.CHECKOUT_PAY_BUTTON });
|
|
53
|
-
const { screen } = useDevice();
|
|
54
58
|
const [pricingHeight, setPricingHeight] = useState(0);
|
|
55
59
|
const handleOnPricingLayout = useCallback(({ height }: LayoutRectangle) => setPricingHeight(height), []);
|
|
56
60
|
|
|
@@ -131,11 +135,11 @@ const Checkout: FC<CheckoutProps> = ({
|
|
|
131
135
|
{hasReplacedCheckoutItem && <DeliveryBanner />}
|
|
132
136
|
|
|
133
137
|
<AuroraLayout
|
|
134
|
-
fullWidth={!
|
|
135
|
-
style={[
|
|
138
|
+
fullWidth={!isDektopScreen}
|
|
139
|
+
style={[isDektopScreen && style.desktopLayoutSpacing, !isDektopScreen && { paddingBottom: pricingHeight }]}
|
|
136
140
|
>
|
|
137
|
-
<Box size={{ L: "2/3" }} style={
|
|
138
|
-
<View style={[style.contentWrapper,
|
|
141
|
+
<Box size={{ L: "2/3" }} style={isDektopScreen && style.desktopListSpacing}>
|
|
142
|
+
<View style={[style.contentWrapper, isDektopScreen && style.desktopContentWrapper]}>
|
|
139
143
|
{country === Country.NL && (
|
|
140
144
|
<View style={style.paymentSelectorNL}>
|
|
141
145
|
<PaymentInstrument useRedirect={useRedirect} />
|
|
@@ -173,12 +177,12 @@ const Checkout: FC<CheckoutProps> = ({
|
|
|
173
177
|
</View>
|
|
174
178
|
</Box>
|
|
175
179
|
|
|
176
|
-
<Box size={{ L: "1/3" }} style={[style.resume,
|
|
180
|
+
<Box size={{ L: "1/3" }} style={[style.resume, isDektopScreen && style.desktopResume]}>
|
|
177
181
|
{pricing ? (
|
|
178
|
-
<View style={[style.princingWrapper, !
|
|
182
|
+
<View style={[style.princingWrapper, !isDektopScreen && style.princingWrapperSmall]}>
|
|
179
183
|
<Pricing pricing={pricing} totalCheckoutItemsKept={checkoutItemsKept?.length || 0} />
|
|
180
184
|
|
|
181
|
-
{
|
|
185
|
+
{isDektopScreen ? (
|
|
182
186
|
<Button
|
|
183
187
|
busy={checkoutFlowStatus === "loading"}
|
|
184
188
|
testID="confirm-checkout-button"
|
|
@@ -193,7 +197,7 @@ const Checkout: FC<CheckoutProps> = ({
|
|
|
193
197
|
</AuroraLayout>
|
|
194
198
|
</ScrollView>
|
|
195
199
|
|
|
196
|
-
{pricing && !
|
|
200
|
+
{pricing && !isDektopScreen ? (
|
|
197
201
|
<Sticky style={style.sticky} onLayout={Platform.OS !== "web" ? handleOnPricingLayout : undefined}>
|
|
198
202
|
<Body>
|
|
199
203
|
<Button
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ALIGN, InfoBox, INFOBOX_TYPE
|
|
2
|
+
import { ALIGN, InfoBox, INFOBOX_TYPE } from "@lookiero/aurora";
|
|
3
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
4
|
+
import { useScreenSize } from "@lookiero/sty-psp-ui";
|
|
4
5
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
5
6
|
|
|
6
7
|
const DeliveryBanner = () => {
|
|
7
|
-
const
|
|
8
|
+
const screenSize = useScreenSize();
|
|
8
9
|
|
|
9
10
|
return (
|
|
10
11
|
<InfoBox
|
|
11
|
-
contentAlign={
|
|
12
|
+
contentAlign={screenSize === "L" ? ALIGN.CENTER : undefined}
|
|
12
13
|
testID="delivery-banner"
|
|
13
14
|
text={useI18nMessage({ domain: DOMAIN, id: I18nMessages.CHECKOUT_DELIVERY_BANNER })}
|
|
14
15
|
type={INFOBOX_TYPE.SQUARED}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const style = () => {
|
|
5
|
+
const { space3, space6, space8 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
container: {
|
|
9
|
+
justifyContent: "flex-start",
|
|
10
|
+
paddingHorizontal: space6,
|
|
11
|
+
paddingVertical: space8,
|
|
12
|
+
},
|
|
13
|
+
containerDesktop: {
|
|
14
|
+
paddingHorizontal: space3,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
};
|
|
16
18
|
|
|
17
19
|
export { style };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC, useCallback, useEffect, useRef } from "react";
|
|
1
|
+
import React, { FC, useCallback, useEffect, useMemo, useRef } from "react";
|
|
2
2
|
import { Spinner } from "@lookiero/aurora";
|
|
3
3
|
import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
|
|
4
4
|
import { useLogger } from "@lookiero/sty-psp-logging";
|
|
@@ -15,7 +15,7 @@ import { useTrackPressContinue } from "../../../tracking/useTrackPressContinue";
|
|
|
15
15
|
import { Body } from "../../components/layouts/body/Body";
|
|
16
16
|
import { CheckoutQuestionFeedbackProvider } from "../../components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionFeedback";
|
|
17
17
|
import { useStaticInfo } from "../../hooks/useStaticInfo";
|
|
18
|
-
import { style } from "./Feedback.style";
|
|
18
|
+
import { style as feedbackStyle } from "./Feedback.style";
|
|
19
19
|
import { CheckoutQuestionsForm } from "./components/checkoutQuestionsForm/CheckoutQuestionsForm";
|
|
20
20
|
|
|
21
21
|
interface HandleOnChangedFeedbackFunctionArgs {
|
|
@@ -38,6 +38,9 @@ const Feedback: FC<FeedbackProps> = ({ layout: Layout }) => {
|
|
|
38
38
|
const {
|
|
39
39
|
customer: { customerId, country, segment },
|
|
40
40
|
} = useStaticInfo();
|
|
41
|
+
|
|
42
|
+
const style = useMemo(() => feedbackStyle(), []);
|
|
43
|
+
|
|
41
44
|
const [checkout, checkoutStatus] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
|
|
42
45
|
const [checkoutQuestions, checkoutQuestionsStatus] = useListCheckoutQuestionsByCheckoutId({
|
|
43
46
|
checkoutId: checkout?.id as string,
|