@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,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 Normal: FC<SvgProps> = ({ strokeWidth = 1, ...props }) => (
|
|
4
|
+
const Normal: 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="M15
|
|
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="M15 31.5H34" stroke={color} strokeWidth={strokeWidth} />
|
|
10
10
|
</Svg>
|
|
11
11
|
);
|
|
12
12
|
|
|
@@ -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 Sad: FC<SvgProps> = ({ strokeWidth = 1, ...props }) => (
|
|
4
|
+
const Sad: 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 33.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 33.5s3-6 10-6 10 6 10 6" stroke={color} strokeWidth={strokeWidth} />
|
|
10
10
|
</Svg>
|
|
11
11
|
);
|
|
12
12
|
|
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
import { Platform, StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const { fontInputPaddingLeft, space2, space4 } = theme();
|
|
5
|
-
|
|
6
4
|
const INPUT_HEIGHT = 96;
|
|
7
5
|
|
|
8
|
-
const style =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
6
|
+
const style = () => {
|
|
7
|
+
const { fontInputPaddingLeft, space2, space4 } = theme();
|
|
8
|
+
|
|
9
|
+
return StyleSheet.create({
|
|
10
|
+
input: {
|
|
11
|
+
paddingTop: space4,
|
|
12
|
+
...Platform.select({
|
|
13
|
+
android: {
|
|
14
|
+
paddingTop: space2,
|
|
15
|
+
},
|
|
16
|
+
}),
|
|
17
|
+
},
|
|
18
|
+
inputContainer: {
|
|
19
|
+
height: INPUT_HEIGHT,
|
|
20
|
+
...Platform.select({
|
|
21
|
+
android: {
|
|
22
|
+
alignItems: "flex-start",
|
|
23
|
+
paddingLeft: fontInputPaddingLeft,
|
|
24
|
+
},
|
|
25
|
+
}),
|
|
26
|
+
},
|
|
27
|
+
inputField: {
|
|
28
|
+
height: INPUT_HEIGHT,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
};
|
|
30
32
|
|
|
31
33
|
export { style };
|
|
@@ -4,7 +4,7 @@ import { InputField, TextInput } from "@lookiero/sty-psp-ui";
|
|
|
4
4
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
5
5
|
import { useCheckoutQuestionFeedbackForId } from "../../behaviors/useCheckoutQuestionFeedback";
|
|
6
6
|
import { CheckoutQuestionItem, CheckoutQuestionItemProps } from "../CheckoutQuestionItem";
|
|
7
|
-
import { style } from "./TextareaCheckoutQuestionItem.style";
|
|
7
|
+
import { style as textareaCheckoutQuestionItemStyle } from "./TextareaCheckoutQuestionItem.style";
|
|
8
8
|
|
|
9
9
|
const TextareaCheckoutQuestionItem: CheckoutQuestionItem = ({
|
|
10
10
|
checkoutQuestion,
|
|
@@ -24,6 +24,8 @@ const TextareaCheckoutQuestionItem: CheckoutQuestionItem = ({
|
|
|
24
24
|
[onChange, checkoutQuestionParentId],
|
|
25
25
|
);
|
|
26
26
|
|
|
27
|
+
const style = useMemo(() => textareaCheckoutQuestionItemStyle(), []);
|
|
28
|
+
|
|
27
29
|
return (
|
|
28
30
|
<InputField
|
|
29
31
|
label={placeholderText}
|
|
@@ -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 { colorBgBase, space4, space6 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
title: {
|
|
9
|
+
backgroundColor: colorBgBase,
|
|
10
|
+
paddingBottom: space4,
|
|
11
|
+
paddingHorizontal: space6,
|
|
12
|
+
paddingTop: space6,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
};
|
|
14
16
|
|
|
15
17
|
export { style };
|
|
@@ -1,12 +1,13 @@
|
|
|
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 { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
|
|
6
7
|
import { returnQuestionWithTranslationKey } from "../../../../../../../projection/returnQuestion/returnQuestion.typeguard";
|
|
7
8
|
import { DOMAIN, I18nMessages } from "../../../../../i18n/i18n";
|
|
8
9
|
import { ReturnQuestionItem } from "../ReturnQuestionItem";
|
|
9
|
-
import { style } from "./HostDefaultReturnQuestionItem.style";
|
|
10
|
+
import { style as hostDefaultReturnQuestionItemStyle } from "./HostDefaultReturnQuestionItem.style";
|
|
10
11
|
|
|
11
12
|
const HostDefaultReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_DEFAULT> = ({
|
|
12
13
|
returnQuestion,
|
|
@@ -15,6 +16,8 @@ const HostDefaultReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_
|
|
|
15
16
|
const { formatMessage } = useI18n({ domain: DOMAIN });
|
|
16
17
|
const isAllOptions = returnQuestion.translationKey === I18nMessages.RETURN_QUESTION_MAIN_ALL_OPINION;
|
|
17
18
|
|
|
19
|
+
const style = useMemo(() => hostDefaultReturnQuestionItemStyle(), []);
|
|
20
|
+
|
|
18
21
|
return (
|
|
19
22
|
<>
|
|
20
23
|
{returnQuestionWithTranslationKey(returnQuestion) && returnQuestion.translationKey !== " " && !isAllOptions ? (
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const style = () => {
|
|
5
|
+
const { colorBgBase, space2, space6 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
title: {
|
|
9
|
+
marginBottom: space2,
|
|
10
|
+
},
|
|
11
|
+
wrapper: {
|
|
12
|
+
backgroundColor: colorBgBase,
|
|
13
|
+
marginBottom: space2,
|
|
14
|
+
padding: space6,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
};
|
|
16
18
|
|
|
17
19
|
export { style };
|
|
@@ -6,7 +6,7 @@ import { useI18n } from "@lookiero/i18n-react";
|
|
|
6
6
|
import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
|
|
7
7
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
8
8
|
import { ReturnQuestionItem } from "../ReturnQuestionItem";
|
|
9
|
-
import { style } from "./HostRadioGroupReturnQuestionItem.style";
|
|
9
|
+
import { style as hostRadioGroupReturnQuestionItemStyle } from "./HostRadioGroupReturnQuestionItem.style";
|
|
10
10
|
|
|
11
11
|
const HostRadioGroupReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_SELECT> = ({
|
|
12
12
|
returnQuestion,
|
|
@@ -19,6 +19,8 @@ const HostRadioGroupReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HO
|
|
|
19
19
|
[formatMessage, returnQuestion.metadata.placeholder],
|
|
20
20
|
);
|
|
21
21
|
|
|
22
|
+
const style = useMemo(() => hostRadioGroupReturnQuestionItemStyle(), []);
|
|
23
|
+
|
|
22
24
|
return (
|
|
23
25
|
<>
|
|
24
26
|
<View style={style.wrapper} testID={testID}>
|
|
@@ -31,4 +33,4 @@ const HostRadioGroupReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HO
|
|
|
31
33
|
);
|
|
32
34
|
};
|
|
33
35
|
|
|
34
|
-
export { HostRadioGroupReturnQuestionItem
|
|
36
|
+
export { HostRadioGroupReturnQuestionItem };
|
|
@@ -1,23 +1,29 @@
|
|
|
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, space4, space6 } = theme();
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
backButton: {
|
|
9
|
+
padding: 0,
|
|
10
|
+
},
|
|
11
|
+
container: {
|
|
12
|
+
marginBottom: space4,
|
|
13
|
+
},
|
|
14
|
+
header: {
|
|
15
|
+
justifyContent: "space-between",
|
|
16
|
+
},
|
|
17
|
+
modalContent: {
|
|
18
|
+
paddingBottom: space6,
|
|
19
|
+
paddingHorizontal: space6,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
return {
|
|
24
|
+
...styles,
|
|
25
|
+
containerUnderlayColor: colorBgPrimaryLight,
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { style };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { TouchableHighlight, View } from "react-native";
|
|
4
|
-
import { ButtonIcon } from "@lookiero/aurora";
|
|
5
4
|
import { useI18n } from "@lookiero/i18n-react";
|
|
6
|
-
import { InputField, Modal, TextInput } from "@lookiero/sty-psp-ui";
|
|
5
|
+
import { ButtonIcon, InputField, Modal, TextInput } from "@lookiero/sty-psp-ui";
|
|
7
6
|
import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
|
|
8
7
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
9
8
|
import {
|
|
@@ -15,7 +14,7 @@ import {
|
|
|
15
14
|
feedbackForReturnQuestion,
|
|
16
15
|
} from "../../util/returnQuestionFeedback";
|
|
17
16
|
import { ReturnQuestionItem } from "../ReturnQuestionItem";
|
|
18
|
-
import { style
|
|
17
|
+
import { style as hostSelectReturnQuestionItemStyle } from "./HostSelectReturnQuestionItem.style";
|
|
19
18
|
|
|
20
19
|
const HostSelectReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_SELECT> = ({
|
|
21
20
|
returnQuestion,
|
|
@@ -29,6 +28,8 @@ const HostSelectReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_S
|
|
|
29
28
|
[formatMessage, returnQuestion.metadata.placeholder],
|
|
30
29
|
);
|
|
31
30
|
|
|
31
|
+
const style = useMemo(() => hostSelectReturnQuestionItemStyle(), []);
|
|
32
|
+
|
|
32
33
|
const [modalVisible, setModalVisible] = useState(false);
|
|
33
34
|
const handleOnPress = useCallback(() => setModalVisible(true), []);
|
|
34
35
|
const handleOnModalClose = useCallback(() => setModalVisible(false), []);
|
|
@@ -65,7 +66,7 @@ const HostSelectReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_S
|
|
|
65
66
|
accessibilityLabel={testID}
|
|
66
67
|
style={style.container}
|
|
67
68
|
testID={testID}
|
|
68
|
-
underlayColor={containerUnderlayColor}
|
|
69
|
+
underlayColor={style.containerUnderlayColor}
|
|
69
70
|
accessible
|
|
70
71
|
onPress={handleOnPress}
|
|
71
72
|
>
|
|
@@ -96,7 +97,7 @@ const HostSelectReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_S
|
|
|
96
97
|
deepestReturnQuestionWithFeedback && (
|
|
97
98
|
<ButtonIcon
|
|
98
99
|
name="arrow_left"
|
|
99
|
-
style={style.backButton}
|
|
100
|
+
style={{ button: style.backButton }}
|
|
100
101
|
testID="modal-back-button"
|
|
101
102
|
onPress={handleOnBackButtonPress}
|
|
102
103
|
/>
|
|
@@ -1,12 +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 { colorTextMedium, space1 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
text: {
|
|
9
|
+
color: colorTextMedium,
|
|
10
|
+
},
|
|
11
|
+
title: {
|
|
12
|
+
marginBottom: space1,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
};
|
|
11
16
|
|
|
12
17
|
export { style };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { useCallback, useMemo } from "react";
|
|
3
3
|
import { LayoutChangeEvent, View } from "react-native";
|
|
4
4
|
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
|
|
5
|
-
import {
|
|
5
|
+
import { Text } from "@lookiero/aurora";
|
|
6
6
|
import { useI18n } from "@lookiero/i18n-react";
|
|
7
7
|
import { ReturnQuestionType } from "../../../../../../../../projection/returnQuestion/returnQuestion.constants";
|
|
8
8
|
import { returnQuestionHasChildren } from "../../../../../../../../projection/returnQuestion/returnQuestion.typeguard";
|
|
@@ -10,7 +10,7 @@ import { DOMAIN } from "../../../../../../i18n/i18n";
|
|
|
10
10
|
import ReturnQuestion from "../../../ReturnQuestion";
|
|
11
11
|
import { useReturnQuestionFeedbackForReturnQuestion } from "../../../behaviors/useReturnQuestionFeedback";
|
|
12
12
|
import { ReturnQuestionItem } from "../../ReturnQuestionItem";
|
|
13
|
-
import { style } from "./HostStackReturnQuestionItem.style";
|
|
13
|
+
import { style as hostStackReturnQuestionItemStyle } from "./HostStackReturnQuestionItem.style";
|
|
14
14
|
|
|
15
15
|
const HostStackReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_STACK> = ({
|
|
16
16
|
returnQuestion,
|
|
@@ -46,6 +46,8 @@ const HostStackReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_ST
|
|
|
46
46
|
|
|
47
47
|
const stackAnimatedStyle = useAnimatedStyle(() => ({ height: withTiming(stackHeight.value) }), [stackHeight]);
|
|
48
48
|
|
|
49
|
+
const style = useMemo(() => hostStackReturnQuestionItemStyle(), []);
|
|
50
|
+
|
|
49
51
|
return (
|
|
50
52
|
<Animated.View style={stackAnimatedStyle}>
|
|
51
53
|
<View onLayout={handleOnLayout}>
|
|
@@ -56,7 +58,7 @@ const HostStackReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_ST
|
|
|
56
58
|
)}
|
|
57
59
|
{feedbackReturnQuestion && returnQuestionHasChildren(feedbackReturnQuestion) ? (
|
|
58
60
|
<>
|
|
59
|
-
<Text
|
|
61
|
+
<Text level={3} style={style.text}>
|
|
60
62
|
{feedbackText}
|
|
61
63
|
</Text>
|
|
62
64
|
{feedbackReturnQuestion.children?.map((childReturnQuestion) => (
|
|
@@ -1,18 +1,21 @@
|
|
|
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 { colorTextMedium, space2, space6 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
modalContent: {
|
|
9
|
+
paddingHorizontal: space6,
|
|
10
|
+
},
|
|
11
|
+
optionText: {
|
|
12
|
+
color: colorTextMedium,
|
|
13
|
+
marginBottom: space6,
|
|
14
|
+
},
|
|
15
|
+
wrapper: {
|
|
16
|
+
marginBottom: space2,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
};
|
|
17
20
|
|
|
18
21
|
export { style };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import {
|
|
3
|
+
import { Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18n } from "@lookiero/i18n-react";
|
|
5
5
|
import { Modal } from "@lookiero/sty-psp-ui";
|
|
6
6
|
import { ReturnQuestionProjection } from "../../../../../../../projection/returnQuestion/returnQuestion";
|
|
7
7
|
import { returnQuestionHasChildren } from "../../../../../../../projection/returnQuestion/returnQuestion.typeguard";
|
|
8
8
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
9
9
|
import ReturnQuestion from "../../ReturnQuestion";
|
|
10
|
-
import { style } from "./ModalOptionReturnQuestionItems.style";
|
|
10
|
+
import { style as modalOptionReturnQuestionItemsStyle } from "./ModalOptionReturnQuestionItems.style";
|
|
11
11
|
|
|
12
12
|
interface ModalOptionReturnQuestionItemsProps {
|
|
13
13
|
readonly portalHostName?: string;
|
|
@@ -17,19 +17,21 @@ interface ModalOptionReturnQuestionItemsProps {
|
|
|
17
17
|
readonly onClose: () => void;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
const ModalOptionReturnQuestionItems = ({
|
|
20
|
+
const ModalOptionReturnQuestionItems: FC<ModalOptionReturnQuestionItemsProps> = ({
|
|
21
21
|
portalHostName,
|
|
22
22
|
returnQuestion,
|
|
23
23
|
visible,
|
|
24
24
|
onClose,
|
|
25
|
-
}
|
|
25
|
+
}) => {
|
|
26
26
|
const { formatMessage } = useI18n({ domain: DOMAIN });
|
|
27
27
|
const title = formatMessage({ id: returnQuestion.translationKey });
|
|
28
28
|
|
|
29
|
+
const style = useMemo(() => modalOptionReturnQuestionItemsStyle(), []);
|
|
30
|
+
|
|
29
31
|
return (
|
|
30
32
|
<Modal portalHostName={portalHostName} visible={visible} scroll showCloseButton onClose={onClose}>
|
|
31
33
|
<View style={style.modalContent}>
|
|
32
|
-
<Text
|
|
34
|
+
<Text level={2} style={style.optionText}>
|
|
33
35
|
{title}
|
|
34
36
|
</Text>
|
|
35
37
|
<>
|
|
@@ -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, colorBorderInteractive, space4, space6 } = theme();
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
container: {
|
|
9
|
+
borderBottomColor: colorBorderInteractive,
|
|
10
|
+
borderBottomWidth: 1,
|
|
11
|
+
paddingVertical: space4,
|
|
12
|
+
},
|
|
13
|
+
text: {
|
|
14
|
+
lineHeight: space6,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
return {
|
|
19
|
+
...styles,
|
|
20
|
+
containerUnderlayColor: colorBgPrimaryLight,
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { style };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
|
-
import React, { useCallback } from "react";
|
|
2
|
+
import React, { useCallback, useMemo } from "react";
|
|
3
3
|
import { TouchableHighlight, ViewStyle } from "react-native";
|
|
4
4
|
import { Text } from "@lookiero/aurora";
|
|
5
5
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
@@ -7,7 +7,7 @@ import { ReturnQuestionType } from "../../../../../../../projection/returnQuesti
|
|
|
7
7
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
8
8
|
import { useReturnQuestionFeedbackForReturnQuestion } from "../../behaviors/useReturnQuestionFeedback";
|
|
9
9
|
import { ReturnQuestionItem } from "../ReturnQuestionItem";
|
|
10
|
-
import {
|
|
10
|
+
import { style as optionReturnQuestionItemStyle } from "./OptionReturnQuestionItem.style";
|
|
11
11
|
|
|
12
12
|
const OptionReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.OPTION> = ({
|
|
13
13
|
returnQuestion,
|
|
@@ -22,12 +22,14 @@ const OptionReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.OPTION> =
|
|
|
22
22
|
[onChange, returnQuestion.id, returnQuestionParent.id],
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
+
const style = useMemo(() => optionReturnQuestionItemStyle(), []);
|
|
26
|
+
|
|
25
27
|
return (
|
|
26
28
|
<TouchableHighlight
|
|
27
29
|
accessibilityLabel={testID}
|
|
28
30
|
style={style.container}
|
|
29
31
|
testID={testID}
|
|
30
|
-
underlayColor={containerUnderlayColor}
|
|
32
|
+
underlayColor={style.containerUnderlayColor}
|
|
31
33
|
onPress={handleOnPress}
|
|
32
34
|
>
|
|
33
35
|
<Text level={3} style={style.text as ViewStyle}>
|
|
@@ -1,10 +1,22 @@
|
|
|
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 { colorText, space3, space4 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
text: {
|
|
9
|
+
color: colorText,
|
|
10
|
+
flex: 1,
|
|
11
|
+
marginLeft: space4,
|
|
12
|
+
},
|
|
13
|
+
wrapper: {
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
flex: 1,
|
|
16
|
+
flexDirection: "row",
|
|
17
|
+
marginVertical: space3,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
};
|
|
9
21
|
|
|
10
22
|
export { style };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
|
-
import React, { useCallback, useEffect, useState } from "react";
|
|
3
|
-
import {
|
|
2
|
+
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
|
+
import { Pressable } from "react-native";
|
|
4
|
+
import { Text } from "@lookiero/aurora";
|
|
4
5
|
import { useI18n } from "@lookiero/i18n-react";
|
|
6
|
+
import { Checkbox } from "@lookiero/sty-psp-ui";
|
|
5
7
|
import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
|
|
6
8
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
7
9
|
import {
|
|
@@ -14,7 +16,7 @@ import {
|
|
|
14
16
|
} from "../../util/returnQuestionFeedback";
|
|
15
17
|
import { ReturnQuestionItem } from "../ReturnQuestionItem";
|
|
16
18
|
import { ModalOptionReturnQuestionItems } from "../modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems";
|
|
17
|
-
import { style } from "./RadioReturnQuestionItem.style";
|
|
19
|
+
import { style as radioReturnQuestionItemStyle } from "./RadioReturnQuestionItem.style";
|
|
18
20
|
|
|
19
21
|
const RadioReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.OPTION> = ({
|
|
20
22
|
returnQuestion,
|
|
@@ -22,6 +24,8 @@ const RadioReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.OPTION> = (
|
|
|
22
24
|
testID,
|
|
23
25
|
portalHostName,
|
|
24
26
|
}) => {
|
|
27
|
+
const style = useMemo(() => radioReturnQuestionItemStyle(), []);
|
|
28
|
+
|
|
25
29
|
const { formatMessage } = useI18n({ domain: DOMAIN });
|
|
26
30
|
const [modalVisible, setModalVisible] = useState(false);
|
|
27
31
|
const {
|
|
@@ -72,19 +76,25 @@ const RadioReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.OPTION> = (
|
|
|
72
76
|
* This logic is for closing the Modal when its children has been answered.
|
|
73
77
|
*/
|
|
74
78
|
|
|
79
|
+
const checked = returnQuestion.id === feedbackId;
|
|
80
|
+
|
|
75
81
|
return (
|
|
76
82
|
<>
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
<Pressable
|
|
84
|
+
accessibilityLabel="radio-return-question-item"
|
|
85
|
+
accessibilityState={{ checked }}
|
|
86
|
+
style={style.wrapper}
|
|
87
|
+
testID={testID}
|
|
88
|
+
accessible
|
|
89
|
+
onPress={handleOnPress}
|
|
90
|
+
>
|
|
91
|
+
<Checkbox checked={checked} />
|
|
92
|
+
|
|
93
|
+
<Text level={3} style={style.text}>
|
|
94
|
+
{inputValue ? `${optionText} / ${inputValue}` : `${optionText}`}
|
|
95
|
+
</Text>
|
|
96
|
+
</Pressable>
|
|
97
|
+
|
|
88
98
|
{hasChildren ? (
|
|
89
99
|
<ModalOptionReturnQuestionItems
|
|
90
100
|
portalHostName={portalHostName}
|
|
@@ -1,16 +1,18 @@
|
|
|
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 { colorTextMedium, space1, space4 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
container: {
|
|
9
|
+
marginBottom: space4,
|
|
10
|
+
},
|
|
11
|
+
title: {
|
|
12
|
+
color: colorTextMedium,
|
|
13
|
+
marginBottom: space1,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
};
|
|
15
17
|
|
|
16
18
|
export { style };
|