@lookiero/checkout 11.0.0 → 11.2.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/ExpoRoot.js +13 -8
- 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 +3 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +23 -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 +2 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +13 -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 +3 -2
- 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 +3 -2
- 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 +2 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.js +8 -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 +3 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.js +14 -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 +3 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.js +8 -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 +2 -1
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +2 -1
- 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/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 +3 -2
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +24 -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 +3 -2
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +20 -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 +3 -2
- 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 +5 -5
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.d.ts +2 -1
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.js +24 -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 +3 -2
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.js +32 -30
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +3 -2
- 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 +3 -2
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +40 -38
- package/dist/src/infrastructure/ui/views/summary/Summary.js +3 -2
- 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 +3 -2
- 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 +11 -2
- 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 -4
- package/src/ExpoRoot.tsx +13 -8
- 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 +31 -31
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +4 -2
- 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 +15 -5
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.tsx +5 -6
- 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 +4 -2
- 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 +4 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.ts +8 -6
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +3 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.ts +14 -12
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +6 -4
- 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 +8 -4
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +4 -2
- 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 +3 -1
- 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 +4 -2
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.ts +10 -8
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +4 -2
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.ts +11 -9
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +4 -2
- 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 +4 -1
- 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 +24 -22
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +4 -2
- 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/itemActions/__snapshots__/ItemActions.test.tsx.snap +8 -0
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +20 -18
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +5 -2
- 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 +4 -2
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.ts +25 -18
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +6 -6
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +8 -0
- 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/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +8 -0
- 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 +33 -31
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +4 -2
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +50 -48
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +4 -3
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +52 -50
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +4 -2
- package/src/infrastructure/ui/views/summary/Summary.style.ts +84 -82
- package/src/infrastructure/ui/views/summary/Summary.tsx +6 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.ts +20 -18
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +4 -2
- 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 +14 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC, useCallback } from "react";
|
|
1
|
+
import React, { FC, useCallback, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
3
|
import { Spinner } from "@lookiero/aurora";
|
|
4
4
|
import { CommandStatus } from "@lookiero/messaging-react";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "../../components/banner/CustomerDecissionBanner";
|
|
20
20
|
import { ReturnQuestionsFeedback } from "../../components/returnQuestionsFeedback/ReturnQuestionsFeedback";
|
|
21
21
|
import { ProductVariant } from "../../views/productVariant/ProductVariant";
|
|
22
|
-
import { style } from "./ItemWithCustomerDecission.style";
|
|
22
|
+
import { style as itemWithCustomerDecissionStyle } from "./ItemWithCustomerDecission.style";
|
|
23
23
|
|
|
24
24
|
interface CheckoutItemWithCustomerDecission extends CheckoutItemProjection {
|
|
25
25
|
readonly status: Exclude<CheckoutItemStatus, CheckoutItemStatus.INITIAL>;
|
|
@@ -40,6 +40,8 @@ const ItemWithCustomerDecission: FC<ItemWithCustomerDecissionProps> = ({
|
|
|
40
40
|
currentProductVariant,
|
|
41
41
|
onEditFeedback,
|
|
42
42
|
}) => {
|
|
43
|
+
const style = useMemo(() => itemWithCustomerDecissionStyle(), []);
|
|
44
|
+
|
|
43
45
|
const screenSize = useScreenSize();
|
|
44
46
|
const isMobile = screenSize === "S";
|
|
45
47
|
const logger = useLogger();
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
4
|
+
const style = () => {
|
|
5
|
+
const { space6, space10 } = theme();
|
|
6
|
+
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
container: {
|
|
9
|
+
paddingBottom: space10,
|
|
10
|
+
paddingHorizontal: 0,
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
return {
|
|
15
|
+
...styles,
|
|
16
|
+
productVariantPaddingBottom: space6,
|
|
17
|
+
};
|
|
18
|
+
};
|
|
12
19
|
|
|
13
20
|
export { style };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React, { FC, useCallback, useState } from "react";
|
|
1
|
+
import React, { FC, useCallback, useMemo, useState } from "react";
|
|
2
2
|
import { LayoutRectangle, Platform, ScrollView } from "react-native";
|
|
3
3
|
import { Spinner } from "@lookiero/aurora";
|
|
4
4
|
import { CommandStatus } from "@lookiero/messaging-react";
|
|
5
5
|
import { useLogger } from "@lookiero/sty-psp-logging";
|
|
6
|
-
import { theme } from "@lookiero/sty-psp-ui";
|
|
7
6
|
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
8
7
|
import {
|
|
9
8
|
BookedProductsVariantsProjection,
|
|
@@ -21,7 +20,7 @@ import { useStaticInfo } from "../../../../hooks/useStaticInfo";
|
|
|
21
20
|
import { ItemActions } from "../../components/itemActions/ItemActions";
|
|
22
21
|
import { SizeWithoutStockModal } from "../../components/sizeWithoutStockModal/SizeWithoutStockModal";
|
|
23
22
|
import { ProductVariant } from "../productVariant/ProductVariant";
|
|
24
|
-
import { style } from "./ItemWithoutCustomerDecission.style";
|
|
23
|
+
import { style as itemWithoutCustomerDecissionStyle } from "./ItemWithoutCustomerDecission.style";
|
|
25
24
|
|
|
26
25
|
interface CheckoutItemWithoutCustomerDecission extends CheckoutItemProjection {
|
|
27
26
|
readonly status: CheckoutItemStatus.INITIAL;
|
|
@@ -35,8 +34,6 @@ interface ItemWithoutCustomerDecissionProps {
|
|
|
35
34
|
readonly onReturn: () => void;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
|
-
const { space6 } = theme();
|
|
39
|
-
|
|
40
37
|
const ItemWithoutCustomerDecission: FC<ItemWithoutCustomerDecissionProps> = ({
|
|
41
38
|
checkoutId,
|
|
42
39
|
checkoutItem,
|
|
@@ -49,6 +46,8 @@ const ItemWithoutCustomerDecission: FC<ItemWithoutCustomerDecissionProps> = ({
|
|
|
49
46
|
customer: { country, segment },
|
|
50
47
|
} = useStaticInfo();
|
|
51
48
|
|
|
49
|
+
const style = useMemo(() => itemWithoutCustomerDecissionStyle(), []);
|
|
50
|
+
|
|
52
51
|
/* KeepCheckoutItem */
|
|
53
52
|
const [keepCheckoutItem, keepCheckoutItemStatus] = useKeepCheckoutItem({ checkoutItemId: checkoutItem.id, logger });
|
|
54
53
|
const trackKeepItem = useTrackKeepItem({
|
|
@@ -112,7 +111,9 @@ const ItemWithoutCustomerDecission: FC<ItemWithoutCustomerDecissionProps> = ({
|
|
|
112
111
|
country={country}
|
|
113
112
|
currentProductVariant={currentProductVariant}
|
|
114
113
|
segment={segment}
|
|
115
|
-
style={{
|
|
114
|
+
style={{
|
|
115
|
+
content: { paddingBottom: Platform.OS === "web" ? style.productVariantPaddingBottom : stickyHeight },
|
|
116
|
+
}}
|
|
116
117
|
/>
|
|
117
118
|
</Body>
|
|
118
119
|
</ScrollView>
|
|
@@ -1,21 +1,23 @@
|
|
|
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 { space6, space12, colorBgBase, borderRadius4 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
container: {
|
|
9
|
+
backgroundColor: colorBgBase,
|
|
10
|
+
},
|
|
11
|
+
content: {
|
|
12
|
+
paddingVertical: space6,
|
|
13
|
+
},
|
|
14
|
+
largeContainer: {
|
|
15
|
+
borderRadius: borderRadius4,
|
|
16
|
+
marginTop: space12,
|
|
17
|
+
padding: space12,
|
|
18
|
+
paddingBottom: 0,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
};
|
|
20
22
|
|
|
21
23
|
export { style };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC, ReactNode, useCallback, useEffect } from "react";
|
|
1
|
+
import React, { FC, ReactNode, useCallback, useEffect, useMemo } from "react";
|
|
2
2
|
import { StyleProp, View, ViewStyle } from "react-native";
|
|
3
3
|
import { Country } from "@lookiero/sty-psp-locale";
|
|
4
4
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
@@ -13,7 +13,7 @@ import { TrackingPage } from "../../../../../tracking/tracking";
|
|
|
13
13
|
import { useTrackImageView } from "../../../../../tracking/useTrackImageView";
|
|
14
14
|
import { ProductVariantDescription } from "../../components/productVariantDescription/ProductVariantDescription";
|
|
15
15
|
import { ProductVariantSlider } from "../../components/productVariantSlider/ProductVariantSlider";
|
|
16
|
-
import { style } from "./ProductVariant.style";
|
|
16
|
+
import { style as productVariantStyle } from "./ProductVariant.style";
|
|
17
17
|
|
|
18
18
|
type ProductVariantStyle = "content";
|
|
19
19
|
|
|
@@ -41,6 +41,8 @@ const ProductVariant: FC<ProductVariantProps> = ({
|
|
|
41
41
|
const screenSize = useScreenSize();
|
|
42
42
|
const isDesktopScreen = screenSize !== "S";
|
|
43
43
|
|
|
44
|
+
const style = useMemo(() => productVariantStyle(), []);
|
|
45
|
+
|
|
44
46
|
const trackImageView = useTrackImageView({
|
|
45
47
|
page: TrackingPage.ITEM,
|
|
46
48
|
country,
|
|
@@ -1,22 +1,24 @@
|
|
|
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 { colorTextError, colorTextMedium, space2 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
discountedPercentage: {
|
|
9
|
+
color: colorTextError,
|
|
10
|
+
},
|
|
11
|
+
discountedPriceInfo: {
|
|
12
|
+
alignItems: "flex-end",
|
|
13
|
+
marginLeft: space2,
|
|
14
|
+
},
|
|
15
|
+
discountedPriceText: {
|
|
16
|
+
color: colorTextMedium,
|
|
17
|
+
},
|
|
18
|
+
price: {
|
|
19
|
+
flexDirection: "row",
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
};
|
|
21
23
|
|
|
22
24
|
export { style };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
3
|
import { Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nNumber } from "@lookiero/i18n-react";
|
|
5
5
|
import { PriceProjection } from "../../../../../../projection/price/price";
|
|
6
6
|
import { DOMAIN } from "../../../../i18n/i18n";
|
|
7
|
-
import { style } from "./Price.style";
|
|
7
|
+
import { style as priceStyle } from "./Price.style";
|
|
8
8
|
|
|
9
9
|
interface PriceProps {
|
|
10
10
|
readonly price: PriceProjection;
|
|
@@ -27,6 +27,8 @@ const Price: FC<PriceProps> = ({ price, withPercentage = false }) => {
|
|
|
27
27
|
|
|
28
28
|
const priceValue = isDiscounted ? productDiscountedPrice : productPrice;
|
|
29
29
|
|
|
30
|
+
const style = useMemo(() => priceStyle(), []);
|
|
31
|
+
|
|
30
32
|
return (
|
|
31
33
|
<View style={style.price} testID="price">
|
|
32
34
|
{isDiscounted && (
|
|
@@ -1,38 +1,40 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const { borderRadius2, borderWidth1, colorBgBase, colorBorderInput, space2, space4 } = theme();
|
|
5
|
-
|
|
6
4
|
const IMAGE_SIZE = 35;
|
|
7
5
|
|
|
8
|
-
const style =
|
|
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
|
-
|
|
6
|
+
const style = () => {
|
|
7
|
+
const { borderRadius2, borderWidth1, colorBgBase, colorBorderInput, space2, space4 } = theme();
|
|
8
|
+
|
|
9
|
+
return StyleSheet.create({
|
|
10
|
+
content: {
|
|
11
|
+
flexDirection: "row",
|
|
12
|
+
},
|
|
13
|
+
image: {
|
|
14
|
+
borderRadius: borderRadius2,
|
|
15
|
+
width: IMAGE_SIZE,
|
|
16
|
+
},
|
|
17
|
+
info: {
|
|
18
|
+
flex: 1,
|
|
19
|
+
marginLeft: space2,
|
|
20
|
+
},
|
|
21
|
+
mobileWrapper: {
|
|
22
|
+
borderBottomWidth: borderWidth1,
|
|
23
|
+
borderColor: colorBorderInput,
|
|
24
|
+
},
|
|
25
|
+
price: {
|
|
26
|
+
justifyContent: "flex-end",
|
|
27
|
+
},
|
|
28
|
+
row: {
|
|
29
|
+
flex: 1,
|
|
30
|
+
justifyContent: "center",
|
|
31
|
+
},
|
|
32
|
+
wrapper: {
|
|
33
|
+
backgroundColor: colorBgBase,
|
|
34
|
+
flexDirection: "row",
|
|
35
|
+
padding: space4,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
};
|
|
37
39
|
|
|
38
40
|
export { style, IMAGE_SIZE };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { Image } from "react-native";
|
|
3
3
|
import { COLOR, Text, View, useDevice } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
@@ -9,7 +9,7 @@ import { size } from "../../../../../../projection/size/size";
|
|
|
9
9
|
import { useMediaImage } from "../../../../hooks/useMediaImage";
|
|
10
10
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
11
11
|
import { Price } from "../price/Price";
|
|
12
|
-
import { IMAGE_SIZE, style } from "./ProductVariantPreview.style";
|
|
12
|
+
import { IMAGE_SIZE, style as productVariantPreviewStyle } from "./ProductVariantPreview.style";
|
|
13
13
|
|
|
14
14
|
interface ProductVariantPreviewProps {
|
|
15
15
|
readonly item: CheckoutItemProjection;
|
|
@@ -30,6 +30,8 @@ const ProductVariantPreview: FC<ProductVariantPreviewProps> = ({ item, country }
|
|
|
30
30
|
|
|
31
31
|
const mainImage = media.find((mediaElement) => mediaElement.perspective === "MAIN");
|
|
32
32
|
|
|
33
|
+
const style = useMemo(() => productVariantPreviewStyle(), []);
|
|
34
|
+
|
|
33
35
|
return (
|
|
34
36
|
<View style={[style.wrapper, !screen.S && style.mobileWrapper]} testID="product-variant-preview">
|
|
35
37
|
<Row style={style.row}>
|
|
@@ -2,54 +2,56 @@ import { StyleSheet } 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 { borderRadius5, colorBgPrimaryLight, colorBgBase, colorTextMedium, space1, space4, space6, space8 } = 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
|
-
});
|
|
8
|
+
return StyleSheet.create({
|
|
9
|
+
background: {
|
|
10
|
+
backgroundColor: colorBgPrimaryLight,
|
|
11
|
+
},
|
|
12
|
+
description: {
|
|
13
|
+
color: colorTextMedium,
|
|
14
|
+
},
|
|
15
|
+
desktopInfo: {
|
|
16
|
+
borderTopLeftRadius: borderRadius5,
|
|
17
|
+
borderTopRightRadius: borderRadius5,
|
|
18
|
+
},
|
|
19
|
+
desktopLayoutSpacing: {
|
|
20
|
+
paddingVertical: space8,
|
|
21
|
+
},
|
|
22
|
+
header: {
|
|
23
|
+
height: HEADER_HEIGHT,
|
|
24
|
+
},
|
|
25
|
+
headerWrapper: {
|
|
26
|
+
display: "flex",
|
|
27
|
+
flexDirection: "column",
|
|
28
|
+
},
|
|
29
|
+
info: {
|
|
30
|
+
backgroundColor: colorBgBase,
|
|
31
|
+
gap: space1,
|
|
32
|
+
paddingBottom: space4,
|
|
33
|
+
paddingHorizontal: space6,
|
|
34
|
+
paddingTop: space8,
|
|
35
|
+
},
|
|
36
|
+
layout: {
|
|
37
|
+
flex: 1,
|
|
38
|
+
justifyContent: "center",
|
|
39
|
+
},
|
|
40
|
+
safeAreaView: {
|
|
41
|
+
flex: 1,
|
|
42
|
+
},
|
|
43
|
+
scrollView: {
|
|
44
|
+
flex: 1,
|
|
45
|
+
},
|
|
46
|
+
submit: {
|
|
47
|
+
backgroundColor: colorBgBase,
|
|
48
|
+
padding: space6,
|
|
49
|
+
},
|
|
50
|
+
submitDesktop: {
|
|
51
|
+
borderBottomLeftRadius: borderRadius5,
|
|
52
|
+
borderBottomRightRadius: borderRadius5,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
};
|
|
54
56
|
|
|
55
57
|
export { style };
|
package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx
CHANGED
|
@@ -36,7 +36,7 @@ import { useStaticInfo } from "../../../../hooks/useStaticInfo";
|
|
|
36
36
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
37
37
|
import { Routes } from "../../../../routing/routes";
|
|
38
38
|
import { ProductVariantPreview } from "../productVariantPreview/ProductVariantPreview";
|
|
39
|
-
import { style } from "./ReturnQuestionsForm.style";
|
|
39
|
+
import { style as returnQuestionsFormStyle } from "./ReturnQuestionsForm.style";
|
|
40
40
|
|
|
41
41
|
const RETURN_QUESTION_FORM_PORTAL_HOST_NAME = "return-question-form-portal";
|
|
42
42
|
|
|
@@ -67,9 +67,10 @@ const ReturnQuestionsForm: FC<ReturnQuestionsFormProps> = ({
|
|
|
67
67
|
const navigate = useNavigate();
|
|
68
68
|
const { basePath } = useStaticInfo();
|
|
69
69
|
const logger = useLogger();
|
|
70
|
-
|
|
71
70
|
const { screen } = useDevice();
|
|
72
71
|
|
|
72
|
+
const style = useMemo(() => returnQuestionsFormStyle(), []);
|
|
73
|
+
|
|
73
74
|
const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.RETURN_QUESTIONS_TITLE });
|
|
74
75
|
const descriptionText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.RETURN_QUESTIONS_DESCRIPTION });
|
|
75
76
|
const submitButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.RETURN_QUESTIONS_SUBMIT_BUTTON });
|
|
@@ -129,7 +130,7 @@ const ReturnQuestionsForm: FC<ReturnQuestionsFormProps> = ({
|
|
|
129
130
|
<ItemDetailHeader onBack={handleOnBack} />
|
|
130
131
|
</Box>
|
|
131
132
|
),
|
|
132
|
-
[handleOnBack],
|
|
133
|
+
[handleOnBack, style.headerWrapper],
|
|
133
134
|
);
|
|
134
135
|
|
|
135
136
|
const dependenciesLoaded = checkoutItem && returnQuestions && returnCheckoutItemStatus !== CommandStatus.LOADING;
|
package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts
CHANGED
|
@@ -1,58 +1,60 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const {
|
|
5
|
-
colorBgSurface,
|
|
6
|
-
borderRadius3,
|
|
7
|
-
borderRadiusFull,
|
|
8
|
-
borderWidth2,
|
|
9
|
-
colorBorderInput,
|
|
10
|
-
colorBgPrimaryLight,
|
|
11
|
-
space05,
|
|
12
|
-
space1,
|
|
13
|
-
space2,
|
|
14
|
-
space4,
|
|
15
|
-
} = theme();
|
|
16
|
-
|
|
17
4
|
const IMAGE_WIDTH = 104;
|
|
18
5
|
const IMAGE_HEIGHT = 132;
|
|
19
6
|
|
|
20
|
-
const style =
|
|
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
|
-
|
|
7
|
+
const style = () => {
|
|
8
|
+
const {
|
|
9
|
+
colorBgSurface,
|
|
10
|
+
borderRadius3,
|
|
11
|
+
borderRadiusFull,
|
|
12
|
+
borderWidth2,
|
|
13
|
+
colorBorderInput,
|
|
14
|
+
colorBgPrimaryLight,
|
|
15
|
+
space05,
|
|
16
|
+
space1,
|
|
17
|
+
space2,
|
|
18
|
+
space4,
|
|
19
|
+
} = theme();
|
|
20
|
+
|
|
21
|
+
return StyleSheet.create({
|
|
22
|
+
container: {
|
|
23
|
+
alignItems: "flex-end",
|
|
24
|
+
borderBottomColor: colorBgPrimaryLight,
|
|
25
|
+
borderBottomWidth: 1,
|
|
26
|
+
flexDirection: "row",
|
|
27
|
+
justifyContent: "space-between",
|
|
28
|
+
paddingVertical: space4,
|
|
29
|
+
},
|
|
30
|
+
descriptionContainer: {
|
|
31
|
+
alignSelf: "stretch",
|
|
32
|
+
justifyContent: "space-between",
|
|
33
|
+
marginLeft: space2,
|
|
34
|
+
},
|
|
35
|
+
infoProductVariant: {
|
|
36
|
+
alignItems: "flex-start",
|
|
37
|
+
},
|
|
38
|
+
media: {
|
|
39
|
+
borderColor: colorBorderInput,
|
|
40
|
+
borderRadius: borderRadius3,
|
|
41
|
+
borderWidth: borderWidth2,
|
|
42
|
+
height: IMAGE_HEIGHT,
|
|
43
|
+
width: IMAGE_WIDTH,
|
|
44
|
+
},
|
|
45
|
+
row: {
|
|
46
|
+
alignItems: "flex-end",
|
|
47
|
+
flexDirection: "row",
|
|
48
|
+
},
|
|
49
|
+
sizeChange: {
|
|
50
|
+
backgroundColor: colorBgSurface,
|
|
51
|
+
borderRadius: borderRadiusFull,
|
|
52
|
+
marginTop: space4,
|
|
53
|
+
paddingBottom: space05,
|
|
54
|
+
paddingHorizontal: space2,
|
|
55
|
+
paddingTop: space1,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
};
|
|
57
59
|
|
|
58
60
|
export { style, IMAGE_WIDTH };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { ImageStyle, Pressable, StyleProp, View } from "react-native";
|
|
3
3
|
import { COLOR, Icon, Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
@@ -11,7 +11,7 @@ import { size, SizeProjection } from "../../../../../../projection/size/size";
|
|
|
11
11
|
import { Price } from "../../../../components/atoms/price/Price";
|
|
12
12
|
import { useMediaImage } from "../../../../hooks/useMediaImage";
|
|
13
13
|
import { COLOR_I18N_PREFIX, DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
14
|
-
import { IMAGE_WIDTH, style } from "./ProductVariant.style";
|
|
14
|
+
import { IMAGE_WIDTH, style as productVariantStyle } from "./ProductVariant.style";
|
|
15
15
|
|
|
16
16
|
interface ProductVariantStyle {
|
|
17
17
|
readonly image: StyleProp<ImageStyle>;
|
|
@@ -47,6 +47,8 @@ const ProductVariant: FC<ProductVariantProps> = ({
|
|
|
47
47
|
|
|
48
48
|
const cdnImageUrl = useMediaImage();
|
|
49
49
|
|
|
50
|
+
const style = useMemo(() => productVariantStyle(), []);
|
|
51
|
+
|
|
50
52
|
return (
|
|
51
53
|
<Pressable
|
|
52
54
|
pointerEvents={onPress ? "auto" : "none"}
|