@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
package/dist/src/Expo.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
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
|
enableLegacyWebImplementation(true);
|
|
8
|
-
|
|
9
|
-
setTheme({ tradename });
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
11
|
-
const { ExpoRoot } = require("./ExpoRoot");
|
|
12
|
-
registerRootComponent(() => React.createElement(ExpoRoot, { tradename: tradename }));
|
|
6
|
+
registerRootComponent(ExpoRoot);
|
package/dist/src/ExpoRoot.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import "expo/build/Expo.fx";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
|
|
4
|
-
interface ExpoRootProps {
|
|
5
|
-
readonly tradename: Tradename;
|
|
6
|
-
}
|
|
7
|
-
declare const ExpoRoot: FC<ExpoRootProps>;
|
|
3
|
+
declare const ExpoRoot: FC;
|
|
8
4
|
export { ExpoRoot };
|
package/dist/src/ExpoRoot.js
CHANGED
|
@@ -19,6 +19,8 @@ import { root } from "./infrastructure/ui/Root";
|
|
|
19
19
|
import { DOMAIN } from "./infrastructure/ui/i18n/i18n";
|
|
20
20
|
import { Router } from "./infrastructure/ui/routing/router/Router";
|
|
21
21
|
import { VERSION } from "./version";
|
|
22
|
+
const tradename = Tradename.LOOKIERO;
|
|
23
|
+
const theme = themeByTradename({ tradename });
|
|
22
24
|
const locale = Locale.es_ES;
|
|
23
25
|
const subscription = "b";
|
|
24
26
|
const order = {
|
|
@@ -27,7 +29,7 @@ const order = {
|
|
|
27
29
|
coupon: "MYLOOKIERO",
|
|
28
30
|
};
|
|
29
31
|
const customer = {
|
|
30
|
-
customerId: "
|
|
32
|
+
customerId: "dd186ec9-109f-418d-a770-c6721aa2a97e",
|
|
31
33
|
country: Country.NL,
|
|
32
34
|
segment: Segment.WOMEN,
|
|
33
35
|
email: "email@example.com",
|
|
@@ -44,7 +46,7 @@ const apiUrl = Platform.OS !== "web"
|
|
|
44
46
|
: __DEV__
|
|
45
47
|
? "/local-to-dev"
|
|
46
48
|
: "/checkout/api";
|
|
47
|
-
const authToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.
|
|
49
|
+
const authToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjU2OTUxOTEsImV4cCI6MTc0ODA3NzU5NSwiZGlzcGxheU5hbWUiOiJUZXN0aW5nIiwiY291bnRyeV9jb2RlIjoiRVMiLCJhY2Nlc3NWaWEiOiJlbWFpbCIsInN1YnNjcmlwdGlvblN0YXJ0aW5nRGF0ZSI6IjIwMjUtMDQtMjQiLCJpbXBlcnNvbmF0ZWQiOmZhbHNlLCJ1dWlkIjoiZGQxODZlYzktMTA5Zi00MThkLWE3NzAtYzY3MjFhYTJhOTdlIiwidHJhZGVuYW1lIjoiTE9PS0lFUk8iLCJpYXQiOjE3NDU0ODU1OTV9.MHdtbMWX4lUU98ARiGALsUNkoqu1wKN7Qd-fCv6oqi4";
|
|
48
50
|
const getAuthToken = () => Promise.resolve(authToken);
|
|
49
51
|
const externalTranslationsUrl = Platform.OS !== "web"
|
|
50
52
|
? "https://backend-for-user.dev.envs.lookiero.tech/api/v2/translations"
|
|
@@ -54,7 +56,7 @@ const externalTranslationsUrl = Platform.OS !== "web"
|
|
|
54
56
|
const translations = [
|
|
55
57
|
(locale) => translationExternalEndpoint({
|
|
56
58
|
translationsUrl: externalTranslationsUrl,
|
|
57
|
-
projects: [["checkout"]],
|
|
59
|
+
projects: [["checkout"], ["inventory-catalog"]],
|
|
58
60
|
})(locale),
|
|
59
61
|
];
|
|
60
62
|
const useRedirect = () => ({
|
|
@@ -101,7 +103,7 @@ const Root = root({
|
|
|
101
103
|
sentry: () => (process.env.EXPO_PUBLIC_APP_VARIANT === "test" ? {} : sentryConfig),
|
|
102
104
|
kameleoon: () => kameleoonConfig,
|
|
103
105
|
})({ customerId: customer.customerId });
|
|
104
|
-
const ExpoRoot = (
|
|
106
|
+
const ExpoRoot = () => {
|
|
105
107
|
const [fontsLoaded] = useFonts({
|
|
106
108
|
["AreaInktrap-Semibold"]: require("@lookiero/aurora/build/assets/fonts/AreaInktrap-Semibold.otf"),
|
|
107
109
|
["AreaNormal-Semibold"]: require("@lookiero/aurora/build/assets/fonts/AreaNormal-Semibold.otf"),
|
|
@@ -113,7 +115,6 @@ const ExpoRoot = ({ tradename }) => {
|
|
|
113
115
|
});
|
|
114
116
|
const [isAccessible, setIsAccessible] = useState();
|
|
115
117
|
const onNotAccessible = useCallback(() => setIsAccessible(false), []);
|
|
116
|
-
const theme = themeByTradename({ tradename });
|
|
117
118
|
return fontsLoaded ? (React.createElement(PortalProvider, null,
|
|
118
119
|
React.createElement(PaymentsQueryProvider, null,
|
|
119
120
|
React.createElement(EventProvider, null,
|
|
@@ -121,7 +122,7 @@ const ExpoRoot = ({ tradename }) => {
|
|
|
121
122
|
isAccessible === false && React.createElement(Text, { heading: true }, "Checkout is not accessible!"),
|
|
122
123
|
React.createElement(Router, null,
|
|
123
124
|
React.createElement(Routes, null,
|
|
124
|
-
React.createElement(Route, { path: "/checkout/*", element: React.createElement(Root, { basePath: "/checkout", customer: customer, layout: DummyLayout, locale: locale, order: order, subscription: subscription, tradename:
|
|
125
|
+
React.createElement(Route, { path: "/checkout/*", element: React.createElement(Root, { basePath: "/checkout", customer: customer, layout: DummyLayout, locale: locale, order: order, subscription: subscription, tradename: tradename, useRedirect: useRedirect, onCheckoutFlowSuccess: () => console.log("Checkout flow success!"), onNotAccessible: onNotAccessible }) }),
|
|
125
126
|
React.createElement(Route, { element: React.createElement(Navigate, { to: "/checkout", replace: true }), path: "*" })))))))) : null;
|
|
126
127
|
};
|
|
127
128
|
export { ExpoRoot };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { 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
|
const FiveItemsDiscountBanner = ({ fiveItemsDiscount }) => {
|
|
7
|
+
const style = useMemo(() => fiveItemsDiscountBannerStyle(), []);
|
|
7
8
|
const bannerText = useI18nMessage({
|
|
8
9
|
domain: DOMAIN,
|
|
9
10
|
id: I18nMessages.BANNER_DISCOUNT_TEXT,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
3
|
+
const style = () => {
|
|
4
|
+
const { fontMap } = theme();
|
|
5
|
+
return StyleSheet.create({
|
|
6
|
+
textBold: {
|
|
7
|
+
fontFamily: fontMap.Action,
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
};
|
|
9
11
|
export { style };
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { useI18nNumber } from "@lookiero/i18n-react";
|
|
5
5
|
import { DOMAIN } from "../../../i18n/i18n";
|
|
6
|
-
import { style } from "./Price.style";
|
|
6
|
+
import { style as priceStyle } from "./Price.style";
|
|
7
7
|
const PRICE_VARIANT = {
|
|
8
8
|
default: { detail: true, level: 1 },
|
|
9
9
|
detail: { detail: true, level: 2 },
|
|
@@ -25,6 +25,7 @@ const Price = ({ price, variant = "default", withPercentage = false }) => {
|
|
|
25
25
|
currency: price.currency,
|
|
26
26
|
});
|
|
27
27
|
const priceValue = isDiscounted ? productDiscountedPrice : productPrice;
|
|
28
|
+
const style = useMemo(() => priceStyle(), []);
|
|
28
29
|
return (React.createElement(View, { style: style.price, testID: "price" },
|
|
29
30
|
React.createElement(Text, { ...PRICE_VARIANT[variant], testID: "price-text" }, priceValue),
|
|
30
31
|
isDiscounted && (React.createElement(View, { style: style.discountedPriceInfo },
|
|
@@ -1,19 +1,21 @@
|
|
|
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
|
-
}
|
|
3
|
+
const style = () => {
|
|
4
|
+
const { colorTextError, colorTextMedium, space2 } = theme();
|
|
5
|
+
return StyleSheet.create({
|
|
6
|
+
discountedPercentage: {
|
|
7
|
+
color: colorTextError,
|
|
8
|
+
},
|
|
9
|
+
discountedPriceInfo: {
|
|
10
|
+
alignItems: "flex-end",
|
|
11
|
+
marginLeft: space2,
|
|
12
|
+
},
|
|
13
|
+
discountedPriceText: {
|
|
14
|
+
color: colorTextMedium,
|
|
15
|
+
},
|
|
16
|
+
price: {
|
|
17
|
+
flexDirection: "row",
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
};
|
|
19
21
|
export { style };
|
|
@@ -1,16 +1,18 @@
|
|
|
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
|
-
import { style } from "./ButtonCheckoutQuestionItem.style";
|
|
7
|
+
import { style as buttonCheckoutQuestionItemStyle } from "./ButtonCheckoutQuestionItem.style";
|
|
8
8
|
const ACTIVE_OPACITY = 0.6;
|
|
9
9
|
const ButtonCheckoutQuestionItem = ({ checkoutQuestion, checkoutQuestionParentId, testID, }) => {
|
|
10
10
|
const { feedback, onChange } = useCheckoutQuestionFeedbackForId({ id: checkoutQuestionParentId });
|
|
11
11
|
const optionText = useI18nMessage({ domain: DOMAIN, id: checkoutQuestion.name });
|
|
12
12
|
const handleOnPress = useCallback(() => onChange({ checkoutQuestionId: checkoutQuestionParentId, checkoutQuestionFeedback: checkoutQuestion.id }), [onChange, checkoutQuestion.id, checkoutQuestionParentId]);
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const style = useMemo(() => buttonCheckoutQuestionItemStyle(), []);
|
|
14
|
+
const checked = feedback === checkoutQuestion.id;
|
|
15
|
+
return (React.createElement(TouchableOpacity, { accessibilityLabel: testID, activeOpacity: ACTIVE_OPACITY, style: [style.button, checked && style.buttonActive], testID: testID, onPress: handleOnPress },
|
|
16
|
+
React.createElement(Text, { level: 3, style: [style.text, checked && style.textActive], action: true }, optionText)));
|
|
15
17
|
};
|
|
16
18
|
export { ButtonCheckoutQuestionItem };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const style: {
|
|
1
|
+
declare const style: () => {
|
|
2
2
|
button: {
|
|
3
3
|
alignContent: "center";
|
|
4
4
|
borderColor: string;
|
|
@@ -14,6 +14,9 @@ declare const style: {
|
|
|
14
14
|
buttonActive: {
|
|
15
15
|
backgroundColor: string;
|
|
16
16
|
};
|
|
17
|
+
text: {
|
|
18
|
+
textAlign: "center";
|
|
19
|
+
};
|
|
17
20
|
textActive: {
|
|
18
21
|
color: string;
|
|
19
22
|
};
|
|
@@ -1,25 +1,29 @@
|
|
|
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
|
-
|
|
3
|
+
const style = () => {
|
|
4
|
+
const { colorBorderActionSecondary, colorBgActionPrimaryActive, colorTextActionPrimary, borderWidth2, borderRadiusFull, space6, space16, } = theme();
|
|
5
|
+
return StyleSheet.create({
|
|
6
|
+
button: {
|
|
7
|
+
alignContent: "center",
|
|
8
|
+
borderColor: colorBorderActionSecondary,
|
|
9
|
+
borderRadius: borderRadiusFull,
|
|
10
|
+
borderWidth: borderWidth2,
|
|
11
|
+
flex: 1,
|
|
12
|
+
height: space16,
|
|
13
|
+
justifyContent: "center",
|
|
14
|
+
marginHorizontal: 12,
|
|
15
|
+
paddingLeft: space6,
|
|
16
|
+
paddingRight: space6,
|
|
17
|
+
},
|
|
18
|
+
buttonActive: {
|
|
19
|
+
backgroundColor: colorBgActionPrimaryActive,
|
|
20
|
+
},
|
|
21
|
+
text: {
|
|
22
|
+
textAlign: "center",
|
|
23
|
+
},
|
|
24
|
+
textActive: {
|
|
25
|
+
color: colorTextActionPrimary,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
};
|
|
25
29
|
export { style };
|
|
@@ -1,11 +1,12 @@
|
|
|
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
|
-
import { style } from "./HostDefaultCheckoutQuestionItem.style";
|
|
6
|
+
import { style as hostDefaultCheckoutQuestionItemStyle } from "./HostDefaultCheckoutQuestionItem.style";
|
|
7
7
|
const HostDefaultCheckoutQuestionItem = ({ checkoutQuestion, children, }) => {
|
|
8
8
|
const titleText = useI18nMessage({ domain: DOMAIN, id: checkoutQuestion.name });
|
|
9
|
+
const style = useMemo(() => hostDefaultCheckoutQuestionItemStyle(), []);
|
|
9
10
|
return (React.createElement(React.Fragment, null,
|
|
10
11
|
React.createElement(Text, { level: 3, style: style.title }, titleText),
|
|
11
12
|
React.createElement(View, { style: style.content }, children)));
|
|
@@ -1,12 +1,14 @@
|
|
|
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
|
-
}
|
|
3
|
+
const style = () => {
|
|
4
|
+
const { space6, space8 } = theme();
|
|
5
|
+
return StyleSheet.create({
|
|
6
|
+
content: {
|
|
7
|
+
marginBottom: space8,
|
|
8
|
+
},
|
|
9
|
+
title: {
|
|
10
|
+
marginBottom: space6,
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
};
|
|
12
14
|
export { style };
|
|
@@ -1,11 +1,12 @@
|
|
|
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
|
-
import { style } from "./HostSelectCheckoutQuestionItem.style";
|
|
6
|
+
import { style as hostSelectCheckoutQuestionItemStyle } from "./HostSelectCheckoutQuestionItem.style";
|
|
7
7
|
const HostSelectCheckoutQuestionItem = ({ checkoutQuestion, children, }) => {
|
|
8
8
|
const titleText = useI18nMessage({ domain: DOMAIN, id: checkoutQuestion.name });
|
|
9
|
+
const style = useMemo(() => hostSelectCheckoutQuestionItemStyle(), []);
|
|
9
10
|
return (React.createElement(React.Fragment, null,
|
|
10
11
|
React.createElement(Text, { level: 3, style: style.title }, titleText),
|
|
11
12
|
React.createElement(View, { style: style.content }, children)));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
1
|
+
declare const style: () => {
|
|
2
|
+
containerUnderlayColor: string;
|
|
3
3
|
content: {
|
|
4
4
|
flexDirection: "row";
|
|
5
5
|
justifyContent: "center";
|
|
@@ -9,4 +9,4 @@ declare const style: {
|
|
|
9
9
|
marginBottom: number;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
export { style
|
|
12
|
+
export { style };
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
15
|
-
|
|
3
|
+
const style = () => {
|
|
4
|
+
const { colorBgPrimaryLight, space6, space8 } = theme();
|
|
5
|
+
const styles = StyleSheet.create({
|
|
6
|
+
content: {
|
|
7
|
+
flexDirection: "row",
|
|
8
|
+
justifyContent: "center",
|
|
9
|
+
marginBottom: space8,
|
|
10
|
+
},
|
|
11
|
+
title: {
|
|
12
|
+
marginBottom: space6,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
return {
|
|
16
|
+
...styles,
|
|
17
|
+
containerUnderlayColor: colorBgPrimaryLight,
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export { style };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import React, { useCallback } from "react";
|
|
1
|
+
import React, { useCallback, useMemo } from "react";
|
|
2
2
|
import { Pressable } from "react-native";
|
|
3
3
|
import invariant from "tiny-invariant";
|
|
4
|
-
import { theme } from "@lookiero/sty-psp-ui";
|
|
5
4
|
import { useCheckoutQuestionFeedbackForId } from "../../behaviors/useCheckoutQuestionFeedback";
|
|
6
|
-
import { style } from "./IconCheckoutQuestionItem.style";
|
|
5
|
+
import { style as iconCheckoutQuestionItemStyle } from "./IconCheckoutQuestionItem.style";
|
|
7
6
|
import { Happy } from "./icons/Happy";
|
|
8
7
|
import { Normal } from "./icons/Normal";
|
|
9
8
|
import { Sad } from "./icons/Sad";
|
|
10
|
-
const { colorBgPrimaryMediumLight } = theme();
|
|
11
9
|
const ICON = {
|
|
12
10
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13
11
|
"checkout_question.icon.bad": Sad,
|
|
@@ -18,11 +16,12 @@ const ICON = {
|
|
|
18
16
|
};
|
|
19
17
|
const IconCheckoutQuestionItem = ({ checkoutQuestion, checkoutQuestionParentId, testID, }) => {
|
|
20
18
|
const Icon = ICON[checkoutQuestion.name];
|
|
19
|
+
const style = useMemo(() => iconCheckoutQuestionItemStyle(), []);
|
|
21
20
|
const { feedback, onChange } = useCheckoutQuestionFeedbackForId({ id: checkoutQuestionParentId });
|
|
22
21
|
const isSelected = feedback === checkoutQuestion.id;
|
|
23
22
|
const handleOnPress = useCallback(() => onChange({ checkoutQuestionId: checkoutQuestionParentId, checkoutQuestionFeedback: checkoutQuestion.id }), [onChange, checkoutQuestion.id, checkoutQuestionParentId]);
|
|
24
23
|
invariant(Icon, "CheckoutQuestion icon does not exist");
|
|
25
24
|
return (React.createElement(Pressable, { accessibilityLabel: testID, testID: testID, onPress: handleOnPress },
|
|
26
|
-
React.createElement(Icon, { fill: isSelected ? colorBgPrimaryMediumLight : "none", strokeWidth: isSelected ? 2 : 1, style: style.icon })));
|
|
25
|
+
React.createElement(Icon, { color: style.colorIcon, fill: isSelected ? style.colorBgPrimaryMediumLight : "none", strokeWidth: isSelected ? 2 : 1, style: style.icon })));
|
|
27
26
|
};
|
|
28
27
|
export { IconCheckoutQuestionItem };
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
|
+
const style = () => {
|
|
4
|
+
const { colorBgPrimaryMediumLight, colorIcon } = theme();
|
|
5
|
+
const styles = StyleSheet.create({
|
|
6
|
+
icon: {
|
|
7
|
+
marginHorizontal: 12,
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
return {
|
|
11
|
+
...styles,
|
|
12
|
+
colorBgPrimaryMediumLight,
|
|
13
|
+
colorIcon,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
7
16
|
export { style };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Svg, { Circle, Path } from "react-native-svg";
|
|
3
|
-
const Happy = ({ strokeWidth = 1, ...props }) => (React.createElement(Svg, { fill: "none", height: 48, width: 48, ...props },
|
|
4
|
-
React.createElement(Circle, { cx: 24, cy: 24, r: 23, stroke:
|
|
5
|
-
React.createElement(Circle, { cx: 16, cy: 17, fill:
|
|
6
|
-
React.createElement(Circle, { cx: 32, cy: 17, fill:
|
|
7
|
-
React.createElement(Path, { d: "M14 28.5s3 6 10 6 10-6 10-6", stroke:
|
|
3
|
+
const Happy = ({ strokeWidth = 1, color, ...props }) => (React.createElement(Svg, { fill: "none", height: 48, width: 48, ...props },
|
|
4
|
+
React.createElement(Circle, { cx: 24, cy: 24, r: 23, stroke: color, strokeWidth: strokeWidth }),
|
|
5
|
+
React.createElement(Circle, { cx: 16, cy: 17, fill: color, r: 2 }),
|
|
6
|
+
React.createElement(Circle, { cx: 32, cy: 17, fill: color, r: 2 }),
|
|
7
|
+
React.createElement(Path, { d: "M14 28.5s3 6 10 6 10-6 10-6", stroke: color, strokeWidth: strokeWidth })));
|
|
8
8
|
export { Happy };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Svg, { Circle, Path } from "react-native-svg";
|
|
3
|
-
const Normal = ({ strokeWidth = 1, ...props }) => (React.createElement(Svg, { fill: "none", height: 48, width: 48, ...props },
|
|
4
|
-
React.createElement(Circle, { cx: 24, cy: 24, r: 23, stroke:
|
|
5
|
-
React.createElement(Circle, { cx: 16, cy: 17, fill:
|
|
6
|
-
React.createElement(Circle, { cx: 32, cy: 17, fill:
|
|
7
|
-
React.createElement(Path, { d: "M15
|
|
3
|
+
const Normal = ({ strokeWidth = 1, color, ...props }) => (React.createElement(Svg, { fill: "none", height: 48, width: 48, ...props },
|
|
4
|
+
React.createElement(Circle, { cx: 24, cy: 24, r: 23, stroke: color, strokeWidth: strokeWidth }),
|
|
5
|
+
React.createElement(Circle, { cx: 16, cy: 17, fill: color, r: 2 }),
|
|
6
|
+
React.createElement(Circle, { cx: 32, cy: 17, fill: color, r: 2 }),
|
|
7
|
+
React.createElement(Path, { d: "M15 31.5H34", stroke: color, strokeWidth: strokeWidth })));
|
|
8
8
|
export { Normal };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Svg, { Circle, Path } from "react-native-svg";
|
|
3
|
-
const Sad = ({ strokeWidth = 1, ...props }) => (React.createElement(Svg, { fill: "none", height: 48, width: 48, ...props },
|
|
4
|
-
React.createElement(Circle, { cx: 24, cy: 24, r: 23, stroke:
|
|
5
|
-
React.createElement(Circle, { cx: 16, cy: 17, fill:
|
|
6
|
-
React.createElement(Circle, { cx: 32, cy: 17, fill:
|
|
7
|
-
React.createElement(Path, { d: "M14 33.5s3-6 10-6 10 6 10 6", stroke:
|
|
3
|
+
const Sad = ({ strokeWidth = 1, color, ...props }) => (React.createElement(Svg, { fill: "none", height: 48, width: 48, ...props },
|
|
4
|
+
React.createElement(Circle, { cx: 24, cy: 24, r: 23, stroke: color, strokeWidth: strokeWidth }),
|
|
5
|
+
React.createElement(Circle, { cx: 16, cy: 17, fill: color, r: 2 }),
|
|
6
|
+
React.createElement(Circle, { cx: 32, cy: 17, fill: color, r: 2 }),
|
|
7
|
+
React.createElement(Path, { d: "M14 33.5s3-6 10-6 10 6 10 6", stroke: color, strokeWidth: strokeWidth })));
|
|
8
8
|
export { Sad };
|
|
@@ -3,12 +3,13 @@ import { useI18n } from "@lookiero/i18n-react";
|
|
|
3
3
|
import { InputField, TextInput } from "@lookiero/sty-psp-ui";
|
|
4
4
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
5
5
|
import { useCheckoutQuestionFeedbackForId } from "../../behaviors/useCheckoutQuestionFeedback";
|
|
6
|
-
import { style } from "./TextareaCheckoutQuestionItem.style";
|
|
6
|
+
import { style as textareaCheckoutQuestionItemStyle } from "./TextareaCheckoutQuestionItem.style";
|
|
7
7
|
const TextareaCheckoutQuestionItem = ({ checkoutQuestion, checkoutQuestionParentId, testID, }) => {
|
|
8
8
|
const { formatMessage } = useI18n({ domain: DOMAIN });
|
|
9
9
|
const placeholderText = useMemo(() => (checkoutQuestion.placeholder ? formatMessage({ id: checkoutQuestion.placeholder }) : ""), [formatMessage, checkoutQuestion.placeholder]);
|
|
10
10
|
const { feedback, onChange } = useCheckoutQuestionFeedbackForId({ id: checkoutQuestionParentId });
|
|
11
11
|
const handleOnChange = useCallback((value) => onChange({ checkoutQuestionId: checkoutQuestionParentId, checkoutQuestionFeedback: value }), [onChange, checkoutQuestionParentId]);
|
|
12
|
+
const style = useMemo(() => textareaCheckoutQuestionItemStyle(), []);
|
|
12
13
|
return (React.createElement(InputField, { label: placeholderText, value: feedback, input: ({ onBlur, onFocus, style }) => (React.createElement(TextInput, { placeholder: placeholderText, style: style, testID: testID, textAlignVertical: "top", value: feedback, multiline: true, onBlur: onBlur, onChange: handleOnChange, onFocus: onFocus })), style: {
|
|
13
14
|
inputField: style.inputField,
|
|
14
15
|
input: { container: style.inputContainer, input: style.input },
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
import { Platform, StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
|
-
const { fontInputPaddingLeft, space2, space4 } = theme();
|
|
4
3
|
const INPUT_HEIGHT = 96;
|
|
5
|
-
const style =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
4
|
+
const style = () => {
|
|
5
|
+
const { fontInputPaddingLeft, space2, space4 } = theme();
|
|
6
|
+
return StyleSheet.create({
|
|
7
|
+
input: {
|
|
8
|
+
paddingTop: space4,
|
|
9
|
+
...Platform.select({
|
|
10
|
+
android: {
|
|
11
|
+
paddingTop: space2,
|
|
12
|
+
},
|
|
13
|
+
}),
|
|
14
|
+
},
|
|
15
|
+
inputContainer: {
|
|
16
|
+
height: INPUT_HEIGHT,
|
|
17
|
+
...Platform.select({
|
|
18
|
+
android: {
|
|
19
|
+
alignItems: "flex-start",
|
|
20
|
+
paddingLeft: fontInputPaddingLeft,
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
},
|
|
24
|
+
inputField: {
|
|
25
|
+
height: INPUT_HEIGHT,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
};
|
|
27
29
|
export { style };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
|
-
import React from "react";
|
|
3
|
-
import {
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
import { Text } from "@lookiero/aurora";
|
|
4
5
|
import { useI18n } from "@lookiero/i18n-react";
|
|
5
6
|
import { returnQuestionWithTranslationKey } from "../../../../../../../projection/returnQuestion/returnQuestion.typeguard";
|
|
6
7
|
import { DOMAIN, I18nMessages } from "../../../../../i18n/i18n";
|
|
7
|
-
import { style } from "./HostDefaultReturnQuestionItem.style";
|
|
8
|
+
import { style as hostDefaultReturnQuestionItemStyle } from "./HostDefaultReturnQuestionItem.style";
|
|
8
9
|
const HostDefaultReturnQuestionItem = ({ returnQuestion, children, }) => {
|
|
9
10
|
const { formatMessage } = useI18n({ domain: DOMAIN });
|
|
10
11
|
const isAllOptions = returnQuestion.translationKey === I18nMessages.RETURN_QUESTION_MAIN_ALL_OPINION;
|
|
12
|
+
const style = useMemo(() => hostDefaultReturnQuestionItemStyle(), []);
|
|
11
13
|
return (React.createElement(React.Fragment, null,
|
|
12
14
|
returnQuestionWithTranslationKey(returnQuestion) && returnQuestion.translationKey !== " " && !isAllOptions ? (React.createElement(View, { style: style.title },
|
|
13
15
|
React.createElement(Text, { level: 3, action: true }, formatMessage({ id: returnQuestion.translationKey })))) : null,
|