@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,16 +1,17 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { Text
|
|
3
|
+
import { Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
|
-
import { Tabs } from "@lookiero/sty-psp-ui";
|
|
5
|
+
import { Tabs, useScreenSize } from "@lookiero/sty-psp-ui";
|
|
6
6
|
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
7
7
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
8
8
|
import { ProductVariant } from "../../../shared/components/productVariant/ProductVariant";
|
|
9
|
-
import { style } from "./CheckoutItemsTabs.style";
|
|
9
|
+
import { style as checkoutItemsTabsStyle } from "./CheckoutItemsTabs.style";
|
|
10
10
|
const CheckoutItem = ({ checkoutItemStatus, checkoutItemProductVariant, checkoutItemPrice, country, testID, style: customStyle, onPress, }) => (React.createElement(View, { testID: testID },
|
|
11
11
|
React.createElement(ProductVariant, { brand: checkoutItemProductVariant.brand, color: checkoutItemProductVariant.color, country: country, media: checkoutItemProductVariant.media, name: checkoutItemProductVariant.name, price: checkoutItemPrice, size: checkoutItemProductVariant.size, status: checkoutItemStatus, style: customStyle, onPress: onPress })));
|
|
12
12
|
const CheckoutItemsTabs = ({ tabIndex, checkoutItemsKept, checkoutItemsReturned, country, onPressItem, onChanged, }) => {
|
|
13
|
-
const
|
|
13
|
+
const screenSize = useScreenSize();
|
|
14
|
+
const style = useMemo(() => checkoutItemsTabsStyle(), []);
|
|
14
15
|
const keepTabText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_KEEP_TAB });
|
|
15
16
|
const returnTabText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_RETURN_TAB });
|
|
16
17
|
const keepEmptyText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_KEEP_EMPTY });
|
|
@@ -19,10 +20,21 @@ const CheckoutItemsTabs = ({ tabIndex, checkoutItemsKept, checkoutItemsReturned,
|
|
|
19
20
|
const data = useMemo(() => [{ id: "0" }, { id: "1" }], []);
|
|
20
21
|
const renderItem = useCallback(({ index }) => index === 0 ? (checkoutItemsKept.length === 0 ? (React.createElement(Text, { style: style.emptyText }, keepEmptyText)) : (React.createElement(React.Fragment, null, checkoutItemsKept.map((checkoutItem) => (React.createElement(CheckoutItem, { key: checkoutItem.id, checkoutItemPrice: checkoutItem.price, checkoutItemStatus: checkoutItem.status, country: country, testID: "keep-checkout-item", checkoutItemProductVariant: checkoutItem.status === CheckoutItemStatus.REPLACED && checkoutItem.replacedFor
|
|
21
22
|
? checkoutItem.replacedFor
|
|
22
|
-
: checkoutItem.productVariant, onPress: () => handleOnPressItem(checkoutItem.id) })))))) : checkoutItemsReturned.length === 0 ? (React.createElement(Text, { style: style.emptyText }, returnEmptyText)) : (React.createElement(React.Fragment, null, checkoutItemsReturned.map((checkoutItem) => (React.createElement(CheckoutItem, { key: checkoutItem.id, checkoutItemPrice: checkoutItem.price, checkoutItemProductVariant: checkoutItem.productVariant, checkoutItemStatus: checkoutItem.status, country: country, testID: "return-checkout-item", onPress: () => handleOnPressItem(checkoutItem.id) }))))), [
|
|
23
|
+
: checkoutItem.productVariant, onPress: () => handleOnPressItem(checkoutItem.id) })))))) : checkoutItemsReturned.length === 0 ? (React.createElement(Text, { style: style.emptyText }, returnEmptyText)) : (React.createElement(React.Fragment, null, checkoutItemsReturned.map((checkoutItem) => (React.createElement(CheckoutItem, { key: checkoutItem.id, checkoutItemPrice: checkoutItem.price, checkoutItemProductVariant: checkoutItem.productVariant, checkoutItemStatus: checkoutItem.status, country: country, testID: "return-checkout-item", onPress: () => handleOnPressItem(checkoutItem.id) }))))), [
|
|
24
|
+
checkoutItemsKept,
|
|
25
|
+
checkoutItemsReturned,
|
|
26
|
+
country,
|
|
27
|
+
handleOnPressItem,
|
|
28
|
+
keepEmptyText,
|
|
29
|
+
returnEmptyText,
|
|
30
|
+
style.emptyText,
|
|
31
|
+
]);
|
|
23
32
|
return (React.createElement(Tabs, { data: data, defaultIndex: tabIndex, tabLabels: [`${keepTabText} (${checkoutItemsKept.length})`, `${returnTabText} (${checkoutItemsReturned.length})`], style: {
|
|
24
|
-
carousel: [style.carousel,
|
|
25
|
-
tabList: {
|
|
33
|
+
carousel: [style.carousel, screenSize === "L" && style.carouselDesktop],
|
|
34
|
+
tabList: {
|
|
35
|
+
tabList: [style.tabList, screenSize === "L" && style.tabListDesktop],
|
|
36
|
+
tab: { tabText: style.tabText },
|
|
37
|
+
},
|
|
26
38
|
}, onChanged: onChanged }, renderItem));
|
|
27
39
|
};
|
|
28
40
|
export { CheckoutItemsTabs };
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
3
|
+
const style = () => {
|
|
4
|
+
const { space2, space4, space6, colorBorderInput, fontDetailSize1, fontDetailHeight1 } = theme();
|
|
5
|
+
return StyleSheet.create({
|
|
6
|
+
carousel: {
|
|
7
|
+
paddingBottom: space6,
|
|
8
|
+
paddingHorizontal: space6,
|
|
9
|
+
paddingTop: space2,
|
|
10
|
+
},
|
|
11
|
+
carouselDesktop: {
|
|
12
|
+
paddingHorizontal: 0,
|
|
13
|
+
},
|
|
14
|
+
emptyText: {
|
|
15
|
+
paddingTop: space4,
|
|
16
|
+
},
|
|
17
|
+
tabList: {
|
|
18
|
+
borderBottomColor: colorBorderInput,
|
|
19
|
+
borderBottomWidth: 1,
|
|
20
|
+
justifyContent: "flex-start",
|
|
21
|
+
paddingHorizontal: space4,
|
|
22
|
+
},
|
|
23
|
+
tabListDesktop: {
|
|
24
|
+
paddingHorizontal: 0,
|
|
25
|
+
},
|
|
26
|
+
tabText: {
|
|
27
|
+
fontSize: fontDetailSize1,
|
|
28
|
+
lineHeight: fontDetailHeight1,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
};
|
|
30
32
|
export { style };
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "11.
|
|
1
|
+
export declare const VERSION = "11.3.0";
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "11.
|
|
1
|
+
export const VERSION = "11.3.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": "false",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"@lookiero/sty-psp-i18n": "^0.4",
|
|
28
28
|
"@lookiero/sty-psp-locale": "^0.4",
|
|
29
29
|
"@lookiero/sty-psp-logging": "^0.5",
|
|
30
|
-
"@lookiero/sty-psp-notifications": "^0
|
|
30
|
+
"@lookiero/sty-psp-notifications": "^1.0",
|
|
31
31
|
"@lookiero/sty-psp-react-native": "^0.3",
|
|
32
32
|
"@lookiero/sty-psp-segment": "^0.1",
|
|
33
33
|
"@lookiero/sty-psp-storage": "^0.2",
|
|
34
34
|
"@lookiero/sty-psp-tracking": "^0.2",
|
|
35
35
|
"@lookiero/sty-sp-tradename": "^1.0",
|
|
36
|
-
"@lookiero/sty-psp-ui": "^0
|
|
36
|
+
"@lookiero/sty-psp-ui": "^1.0",
|
|
37
37
|
"@lookiero/sty-psp-ui-settings": "^0.2",
|
|
38
38
|
"@lookiero/sty-psp-units": "^0.1",
|
|
39
39
|
"@lookiero/sty-psp-uuid": "^0.2",
|
package/src/Expo.tsx
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { registerRootComponent } from "expo";
|
|
2
|
-
import React from "react";
|
|
3
2
|
import { enableLegacyWebImplementation } from "react-native-gesture-handler";
|
|
4
3
|
import "react-native-get-random-values";
|
|
5
|
-
import {
|
|
6
|
-
import { Tradename } from "@lookiero/sty-sp-tradename";
|
|
4
|
+
import { ExpoRoot } from "./ExpoRoot";
|
|
7
5
|
|
|
8
6
|
enableLegacyWebImplementation(true);
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
setTheme({ tradename });
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
14
|
-
const { ExpoRoot } = require("./ExpoRoot");
|
|
15
|
-
|
|
16
|
-
registerRootComponent(() => <ExpoRoot tradename={tradename} />);
|
|
8
|
+
registerRootComponent(ExpoRoot);
|
package/src/ExpoRoot.tsx
CHANGED
|
@@ -26,7 +26,10 @@ import { OrderProjection } from "./projection/order/order";
|
|
|
26
26
|
import { SubscriptionProjection } from "./projection/subscription/subscription";
|
|
27
27
|
import { VERSION } from "./version";
|
|
28
28
|
|
|
29
|
+
const tradename = Tradename.LOOKIERO;
|
|
30
|
+
const theme = themeByTradename({ tradename });
|
|
29
31
|
const locale: Locale = Locale.es_ES;
|
|
32
|
+
|
|
30
33
|
const subscription: SubscriptionProjection = "b";
|
|
31
34
|
const order: OrderProjection = {
|
|
32
35
|
isFirstOrder: false,
|
|
@@ -35,7 +38,7 @@ const order: OrderProjection = {
|
|
|
35
38
|
};
|
|
36
39
|
|
|
37
40
|
const customer: Customer = {
|
|
38
|
-
customerId: "
|
|
41
|
+
customerId: "dd186ec9-109f-418d-a770-c6721aa2a97e",
|
|
39
42
|
country: Country.NL,
|
|
40
43
|
segment: Segment.WOMEN,
|
|
41
44
|
email: "email@example.com",
|
|
@@ -56,7 +59,7 @@ const apiUrl =
|
|
|
56
59
|
? "/local-to-dev"
|
|
57
60
|
: "/checkout/api";
|
|
58
61
|
const authToken =
|
|
59
|
-
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
62
|
+
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjU2OTUxOTEsImV4cCI6MTc0ODA3NzU5NSwiZGlzcGxheU5hbWUiOiJUZXN0aW5nIiwiY291bnRyeV9jb2RlIjoiRVMiLCJhY2Nlc3NWaWEiOiJlbWFpbCIsInN1YnNjcmlwdGlvblN0YXJ0aW5nRGF0ZSI6IjIwMjUtMDQtMjQiLCJpbXBlcnNvbmF0ZWQiOmZhbHNlLCJ1dWlkIjoiZGQxODZlYzktMTA5Zi00MThkLWE3NzAtYzY3MjFhYTJhOTdlIiwidHJhZGVuYW1lIjoiTE9PS0lFUk8iLCJpYXQiOjE3NDU0ODU1OTV9.MHdtbMWX4lUU98ARiGALsUNkoqu1wKN7Qd-fCv6oqi4";
|
|
60
63
|
const getAuthToken = () => Promise.resolve(authToken);
|
|
61
64
|
|
|
62
65
|
const externalTranslationsUrl =
|
|
@@ -69,7 +72,7 @@ const translations: EndpointFunction[] = [
|
|
|
69
72
|
(locale) =>
|
|
70
73
|
translationExternalEndpoint({
|
|
71
74
|
translationsUrl: externalTranslationsUrl,
|
|
72
|
-
projects: [["checkout"]],
|
|
75
|
+
projects: [["checkout"], ["inventory-catalog"]],
|
|
73
76
|
})(locale),
|
|
74
77
|
];
|
|
75
78
|
|
|
@@ -123,10 +126,7 @@ const Root = root({
|
|
|
123
126
|
kameleoon: () => kameleoonConfig,
|
|
124
127
|
})({ customerId: customer.customerId });
|
|
125
128
|
|
|
126
|
-
|
|
127
|
-
readonly tradename: Tradename;
|
|
128
|
-
}
|
|
129
|
-
const ExpoRoot: FC<ExpoRootProps> = ({ tradename }) => {
|
|
129
|
+
const ExpoRoot: FC = () => {
|
|
130
130
|
const [fontsLoaded] = useFonts({
|
|
131
131
|
["AreaInktrap-Semibold"]: require("@lookiero/aurora/build/assets/fonts/AreaInktrap-Semibold.otf"),
|
|
132
132
|
["AreaNormal-Semibold"]: require("@lookiero/aurora/build/assets/fonts/AreaNormal-Semibold.otf"),
|
|
@@ -140,8 +140,6 @@ const ExpoRoot: FC<ExpoRootProps> = ({ tradename }) => {
|
|
|
140
140
|
const [isAccessible, setIsAccessible] = useState<boolean>();
|
|
141
141
|
const onNotAccessible = useCallback(() => setIsAccessible(false), []);
|
|
142
142
|
|
|
143
|
-
const theme = themeByTradename({ tradename });
|
|
144
|
-
|
|
145
143
|
return fontsLoaded ? (
|
|
146
144
|
<PortalProvider>
|
|
147
145
|
<PaymentsQueryProvider>
|
|
@@ -161,7 +159,7 @@ const ExpoRoot: FC<ExpoRootProps> = ({ tradename }) => {
|
|
|
161
159
|
locale={locale}
|
|
162
160
|
order={order}
|
|
163
161
|
subscription={subscription}
|
|
164
|
-
tradename={
|
|
162
|
+
tradename={tradename}
|
|
165
163
|
useRedirect={useRedirect}
|
|
166
164
|
onCheckoutFlowSuccess={() => console.log("Checkout flow success!")}
|
|
167
165
|
onNotAccessible={onNotAccessible}
|
|
@@ -1,12 +1,14 @@
|
|
|
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 { fontMap } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
textBold: {
|
|
9
|
+
fontFamily: fontMap.Action,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
};
|
|
11
13
|
|
|
12
14
|
export { style };
|
package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { ALIGN, DISPLAY, InfoBox, INFOBOX_TYPE, Text } from "@lookiero/aurora";
|
|
3
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
4
4
|
import { DOMAIN, I18nMessages } from "../../../i18n/i18n";
|
|
5
|
-
import { style } from "./FiveItemsDiscountBanner.style";
|
|
5
|
+
import { style as fiveItemsDiscountBannerStyle } from "./FiveItemsDiscountBanner.style";
|
|
6
6
|
|
|
7
7
|
interface FiveItemsDiscountBannerProps {
|
|
8
8
|
readonly fiveItemsDiscount: number;
|
|
9
9
|
}
|
|
10
10
|
const FiveItemsDiscountBanner: FC<FiveItemsDiscountBannerProps> = ({ fiveItemsDiscount }) => {
|
|
11
|
+
const style = useMemo(() => fiveItemsDiscountBannerStyle(), []);
|
|
12
|
+
|
|
11
13
|
const bannerText = useI18nMessage({
|
|
12
14
|
domain: DOMAIN,
|
|
13
15
|
id: I18nMessages.BANNER_DISCOUNT_TEXT,
|
|
@@ -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
|
type PriceVariant = "default" | "detail" | "subtotal" | "total";
|
|
10
10
|
|
|
@@ -44,6 +44,8 @@ const Price: FC<PriceProps> = ({ price, variant = "default", withPercentage = fa
|
|
|
44
44
|
|
|
45
45
|
const priceValue = isDiscounted ? productDiscountedPrice : productPrice;
|
|
46
46
|
|
|
47
|
+
const style = useMemo(() => priceStyle(), []);
|
|
48
|
+
|
|
47
49
|
return (
|
|
48
50
|
<View style={style.price} testID="price">
|
|
49
51
|
<Text {...PRICE_VARIANT[variant]} testID="price-text">
|
|
@@ -1,37 +1,40 @@
|
|
|
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
|
-
|
|
12
|
-
|
|
4
|
+
const style = () => {
|
|
5
|
+
const {
|
|
6
|
+
colorBorderActionSecondary,
|
|
7
|
+
colorBgActionPrimaryActive,
|
|
8
|
+
colorTextActionPrimary,
|
|
9
|
+
borderWidth2,
|
|
10
|
+
borderRadiusFull,
|
|
11
|
+
space6,
|
|
12
|
+
space16,
|
|
13
|
+
} = theme();
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
15
|
+
return StyleSheet.create({
|
|
16
|
+
button: {
|
|
17
|
+
alignContent: "center",
|
|
18
|
+
borderColor: colorBorderActionSecondary,
|
|
19
|
+
borderRadius: borderRadiusFull,
|
|
20
|
+
borderWidth: borderWidth2,
|
|
21
|
+
flex: 1,
|
|
22
|
+
height: space16,
|
|
23
|
+
justifyContent: "center",
|
|
24
|
+
marginHorizontal: 12,
|
|
25
|
+
paddingLeft: space6,
|
|
26
|
+
paddingRight: space6,
|
|
27
|
+
},
|
|
28
|
+
buttonActive: {
|
|
29
|
+
backgroundColor: colorBgActionPrimaryActive,
|
|
30
|
+
},
|
|
31
|
+
text: {
|
|
32
|
+
textAlign: "center",
|
|
33
|
+
},
|
|
34
|
+
textActive: {
|
|
35
|
+
color: colorTextActionPrimary,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
};
|
|
36
39
|
|
|
37
40
|
export { style };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, { useCallback } from "react";
|
|
1
|
+
import React, { useCallback, useMemo } from "react";
|
|
2
2
|
import { TouchableOpacity } from "react-native";
|
|
3
|
-
import {
|
|
3
|
+
import { Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
5
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
6
6
|
import { useCheckoutQuestionFeedbackForId } from "../../behaviors/useCheckoutQuestionFeedback";
|
|
7
7
|
import { CheckoutQuestionItem, CheckoutQuestionItemProps } from "../CheckoutQuestionItem";
|
|
8
|
-
import { style } from "./ButtonCheckoutQuestionItem.style";
|
|
8
|
+
import { style as buttonCheckoutQuestionItemStyle } from "./ButtonCheckoutQuestionItem.style";
|
|
9
9
|
|
|
10
10
|
const ACTIVE_OPACITY = 0.6;
|
|
11
11
|
|
|
@@ -22,15 +22,19 @@ const ButtonCheckoutQuestionItem: CheckoutQuestionItem = ({
|
|
|
22
22
|
[onChange, checkoutQuestion.id, checkoutQuestionParentId],
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
+
const style = useMemo(() => buttonCheckoutQuestionItemStyle(), []);
|
|
26
|
+
|
|
27
|
+
const checked = feedback === checkoutQuestion.id;
|
|
28
|
+
|
|
25
29
|
return (
|
|
26
30
|
<TouchableOpacity
|
|
27
31
|
accessibilityLabel={testID}
|
|
28
32
|
activeOpacity={ACTIVE_OPACITY}
|
|
29
|
-
style={[style.button,
|
|
33
|
+
style={[style.button, checked && style.buttonActive]}
|
|
30
34
|
testID={testID}
|
|
31
35
|
onPress={handleOnPress}
|
|
32
36
|
>
|
|
33
|
-
<Text
|
|
37
|
+
<Text level={3} style={[style.text, checked && style.textActive]} action>
|
|
34
38
|
{optionText}
|
|
35
39
|
</Text>
|
|
36
40
|
</TouchableOpacity>
|
|
@@ -1,15 +1,17 @@
|
|
|
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, space8 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
content: {
|
|
9
|
+
marginBottom: space8,
|
|
10
|
+
},
|
|
11
|
+
title: {
|
|
12
|
+
marginBottom: space6,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
};
|
|
14
16
|
|
|
15
17
|
export { style };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
3
|
import { Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
5
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
6
6
|
import { CheckoutQuestionItem, CheckoutQuestionItemProps } from "../CheckoutQuestionItem";
|
|
7
|
-
import { style } from "./HostDefaultCheckoutQuestionItem.style";
|
|
7
|
+
import { style as hostDefaultCheckoutQuestionItemStyle } from "./HostDefaultCheckoutQuestionItem.style";
|
|
8
8
|
|
|
9
9
|
const HostDefaultCheckoutQuestionItem: CheckoutQuestionItem = ({
|
|
10
10
|
checkoutQuestion,
|
|
@@ -12,6 +12,8 @@ const HostDefaultCheckoutQuestionItem: CheckoutQuestionItem = ({
|
|
|
12
12
|
}: CheckoutQuestionItemProps) => {
|
|
13
13
|
const titleText = useI18nMessage({ domain: DOMAIN, id: checkoutQuestion.name });
|
|
14
14
|
|
|
15
|
+
const style = useMemo(() => hostDefaultCheckoutQuestionItemStyle(), []);
|
|
16
|
+
|
|
15
17
|
return (
|
|
16
18
|
<>
|
|
17
19
|
<Text level={3} style={style.title}>
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const style = () => {
|
|
5
|
+
const { colorBgPrimaryLight, space6, space8 } = theme();
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
content: {
|
|
9
|
+
flexDirection: "row",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
marginBottom: space8,
|
|
12
|
+
},
|
|
13
|
+
title: {
|
|
14
|
+
marginBottom: space6,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
return {
|
|
19
|
+
...styles,
|
|
20
|
+
containerUnderlayColor: colorBgPrimaryLight,
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { style };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
3
|
import { Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
5
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
6
6
|
import { CheckoutQuestionItem, CheckoutQuestionItemProps } from "../CheckoutQuestionItem";
|
|
7
|
-
import { style } from "./HostSelectCheckoutQuestionItem.style";
|
|
7
|
+
import { style as hostSelectCheckoutQuestionItemStyle } from "./HostSelectCheckoutQuestionItem.style";
|
|
8
8
|
|
|
9
9
|
const HostSelectCheckoutQuestionItem: CheckoutQuestionItem = ({
|
|
10
10
|
checkoutQuestion,
|
|
@@ -12,6 +12,8 @@ const HostSelectCheckoutQuestionItem: CheckoutQuestionItem = ({
|
|
|
12
12
|
}: CheckoutQuestionItemProps) => {
|
|
13
13
|
const titleText = useI18nMessage({ domain: DOMAIN, id: checkoutQuestion.name });
|
|
14
14
|
|
|
15
|
+
const style = useMemo(() => hostSelectCheckoutQuestionItemStyle(), []);
|
|
16
|
+
|
|
15
17
|
return (
|
|
16
18
|
<>
|
|
17
19
|
<Text level={3} style={style.title}>
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
|
+
import { theme } from "@lookiero/sty-psp-ui";
|
|
2
3
|
|
|
3
|
-
const style =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const style = () => {
|
|
5
|
+
const { colorBgPrimaryMediumLight, colorIcon } = theme();
|
|
6
|
+
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
icon: {
|
|
9
|
+
marginHorizontal: 12,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
return {
|
|
14
|
+
...styles,
|
|
15
|
+
colorBgPrimaryMediumLight,
|
|
16
|
+
colorIcon,
|
|
17
|
+
};
|
|
18
|
+
};
|
|
8
19
|
|
|
9
20
|
export { style };
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import React, { FC, useCallback } from "react";
|
|
1
|
+
import React, { FC, useCallback, useMemo } from "react";
|
|
2
2
|
import { Pressable } from "react-native";
|
|
3
3
|
import { SvgProps } from "react-native-svg";
|
|
4
4
|
import invariant from "tiny-invariant";
|
|
5
|
-
import { theme } from "@lookiero/sty-psp-ui";
|
|
6
5
|
import { useCheckoutQuestionFeedbackForId } from "../../behaviors/useCheckoutQuestionFeedback";
|
|
7
6
|
import { CheckoutQuestionItem, CheckoutQuestionItemProps } from "../CheckoutQuestionItem";
|
|
8
|
-
import { style } from "./IconCheckoutQuestionItem.style";
|
|
7
|
+
import { style as iconCheckoutQuestionItemStyle } from "./IconCheckoutQuestionItem.style";
|
|
9
8
|
import { Happy } from "./icons/Happy";
|
|
10
9
|
import { Normal } from "./icons/Normal";
|
|
11
10
|
import { Sad } from "./icons/Sad";
|
|
12
11
|
|
|
13
|
-
const { colorBgPrimaryMediumLight } = theme();
|
|
14
|
-
|
|
15
12
|
type IconName = "checkout_question.icon.bad" | "checkout_question.icon.regular" | "checkout_question.icon.good";
|
|
16
13
|
|
|
17
14
|
const ICON: Record<IconName, FC<SvgProps>> = {
|
|
@@ -30,6 +27,8 @@ const IconCheckoutQuestionItem: CheckoutQuestionItem = ({
|
|
|
30
27
|
}: CheckoutQuestionItemProps) => {
|
|
31
28
|
const Icon = ICON[checkoutQuestion.name as IconName];
|
|
32
29
|
|
|
30
|
+
const style = useMemo(() => iconCheckoutQuestionItemStyle(), []);
|
|
31
|
+
|
|
33
32
|
const { feedback, onChange } = useCheckoutQuestionFeedbackForId({ id: checkoutQuestionParentId });
|
|
34
33
|
const isSelected = feedback === checkoutQuestion.id;
|
|
35
34
|
|
|
@@ -43,7 +42,8 @@ const IconCheckoutQuestionItem: CheckoutQuestionItem = ({
|
|
|
43
42
|
return (
|
|
44
43
|
<Pressable accessibilityLabel={testID} testID={testID} onPress={handleOnPress}>
|
|
45
44
|
<Icon
|
|
46
|
-
|
|
45
|
+
color={style.colorIcon}
|
|
46
|
+
fill={isSelected ? style.colorBgPrimaryMediumLight : "none"}
|
|
47
47
|
strokeWidth={isSelected ? 2 : 1}
|
|
48
48
|
style={style.icon}
|
|
49
49
|
/>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
import Svg, { Circle, Path, SvgProps } from "react-native-svg";
|
|
3
3
|
|
|
4
|
-
const Happy: FC<SvgProps> = ({ strokeWidth = 1, ...props }) => (
|
|
4
|
+
const Happy: FC<SvgProps> = ({ strokeWidth = 1, color, ...props }) => (
|
|
5
5
|
<Svg fill="none" height={48} width={48} {...props}>
|
|
6
|
-
<Circle cx={24} cy={24} r={23} stroke=
|
|
7
|
-
<Circle cx={16} cy={17} fill=
|
|
8
|
-
<Circle cx={32} cy={17} fill=
|
|
9
|
-
<Path d="M14 28.5s3 6 10 6 10-6 10-6" stroke=
|
|
6
|
+
<Circle cx={24} cy={24} r={23} stroke={color} strokeWidth={strokeWidth} />
|
|
7
|
+
<Circle cx={16} cy={17} fill={color} r={2} />
|
|
8
|
+
<Circle cx={32} cy={17} fill={color} r={2} />
|
|
9
|
+
<Path d="M14 28.5s3 6 10 6 10-6 10-6" stroke={color} strokeWidth={strokeWidth} />
|
|
10
10
|
</Svg>
|
|
11
11
|
);
|
|
12
12
|
|