@lookiero/checkout 11.0.0 → 11.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/ExpoRoot.js +13 -8
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +3 -2
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +8 -6
- package/dist/src/infrastructure/ui/components/atoms/price/Price.js +3 -2
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.js +18 -16
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +23 -22
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.js +11 -9
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.d.ts +3 -3
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.js +18 -13
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +4 -5
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.d.ts +2 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +13 -5
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +2 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +25 -23
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +11 -9
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.d.ts +1 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.js +13 -11
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +3 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +23 -18
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +2 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.js +8 -6
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.d.ts +2 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.js +14 -12
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +4 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +3 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +18 -13
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.js +8 -4
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +3 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +12 -10
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +2 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +30 -28
- package/dist/src/infrastructure/ui/components/templates/header/Header.js +6 -3
- package/dist/src/infrastructure/ui/components/templates/header/Header.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/Header.style.js +17 -15
- package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.js +6 -3
- package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.js +10 -8
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +3 -2
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.js +10 -8
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +3 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.js +10 -8
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +3 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.d.ts +2 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.js +11 -9
- package/dist/src/infrastructure/ui/views/App.js +8 -6
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +2 -1
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +63 -61
- package/dist/src/infrastructure/ui/views/feedback/Feedback.js +3 -2
- package/dist/src/infrastructure/ui/views/feedback/Feedback.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/feedback/Feedback.style.js +13 -11
- package/dist/src/infrastructure/ui/views/item/Item.js +4 -2
- package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/Item.style.js +21 -19
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +3 -2
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +11 -9
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +3 -2
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +24 -22
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +2 -1
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.js +28 -26
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +3 -2
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +20 -18
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +13 -6
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +2 -1
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +34 -28
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +3 -2
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +11 -9
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +5 -5
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.d.ts +2 -1
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.js +24 -18
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +3 -2
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +17 -15
- package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.js +3 -2
- package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.js +19 -17
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +6 -5
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.d.ts +2 -1
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.js +13 -7
- package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.js +3 -2
- package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.js +17 -15
- package/dist/src/infrastructure/ui/views/return/components/price/Price.js +3 -2
- package/dist/src/infrastructure/ui/views/return/components/price/Price.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/return/components/price/Price.style.js +18 -16
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +3 -2
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.js +32 -30
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +3 -2
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +50 -48
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +3 -2
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +40 -38
- package/dist/src/infrastructure/ui/views/summary/Summary.js +3 -2
- package/dist/src/infrastructure/ui/views/summary/Summary.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/summary/Summary.style.js +72 -70
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +3 -2
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.js +20 -18
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +9 -5
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +15 -13
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +11 -2
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +29 -27
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +3 -4
- package/src/ExpoRoot.tsx +13 -8
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +8 -6
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +4 -2
- package/src/infrastructure/ui/components/atoms/price/Price.style.ts +18 -16
- package/src/infrastructure/ui/components/atoms/price/Price.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +31 -31
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.ts +11 -9
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.ts +19 -13
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.ts +15 -5
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.tsx +5 -6
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +26 -24
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +3 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.ts +11 -9
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.ts +13 -11
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.ts +24 -18
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.ts +8 -6
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +3 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.ts +14 -12
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +6 -4
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.ts +19 -13
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +5 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.ts +8 -4
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.ts +12 -10
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +4 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +31 -29
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +3 -1
- package/src/infrastructure/ui/components/templates/header/Header.style.ts +18 -16
- package/src/infrastructure/ui/components/templates/header/Header.tsx +11 -7
- package/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.ts +10 -8
- package/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.tsx +7 -3
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.ts +10 -8
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +4 -2
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.ts +10 -8
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +4 -2
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.ts +11 -9
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +4 -2
- package/src/infrastructure/ui/views/App.tsx +12 -10
- package/src/infrastructure/ui/views/checkout/Checkout.style.ts +63 -61
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +4 -1
- package/src/infrastructure/ui/views/feedback/Feedback.style.ts +13 -11
- package/src/infrastructure/ui/views/feedback/Feedback.tsx +5 -2
- package/src/infrastructure/ui/views/item/Item.style.ts +21 -19
- package/src/infrastructure/ui/views/item/Item.tsx +6 -2
- package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.ts +11 -9
- package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +5 -2
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.ts +24 -22
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +4 -2
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.ts +28 -26
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +3 -1
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +8 -0
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +20 -18
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +5 -2
- package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.ts +37 -29
- package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.tsx +13 -6
- package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.ts +11 -9
- package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +4 -2
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.ts +25 -18
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +6 -6
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +8 -0
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.ts +18 -15
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +4 -2
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +8 -0
- package/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.ts +19 -17
- package/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.tsx +4 -2
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.ts +15 -8
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.tsx +7 -6
- package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.ts +17 -15
- package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.tsx +4 -2
- package/src/infrastructure/ui/views/return/components/price/Price.style.ts +18 -16
- package/src/infrastructure/ui/views/return/components/price/Price.tsx +4 -2
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.ts +33 -31
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +4 -2
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +50 -48
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +4 -3
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +52 -50
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +4 -2
- package/src/infrastructure/ui/views/summary/Summary.style.ts +84 -82
- package/src/infrastructure/ui/views/summary/Summary.tsx +6 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.ts +20 -18
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +4 -2
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.ts +15 -13
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +15 -10
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.ts +29 -27
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +14 -3
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const style = () => {
|
|
5
|
+
const { space6, space8 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
button: {
|
|
9
|
+
flex: 0,
|
|
10
|
+
},
|
|
11
|
+
buttonText: {
|
|
12
|
+
width: "100%",
|
|
13
|
+
},
|
|
14
|
+
confirmButton: {
|
|
15
|
+
marginTop: space8,
|
|
16
|
+
},
|
|
17
|
+
description: {
|
|
18
|
+
marginVertical: space8,
|
|
19
|
+
width: "100%",
|
|
20
|
+
},
|
|
21
|
+
modalContent: {
|
|
22
|
+
paddingHorizontal: space6,
|
|
23
|
+
},
|
|
24
|
+
title: {
|
|
25
|
+
width: "100%",
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
};
|
|
27
29
|
|
|
28
30
|
export { style };
|
package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
3
|
import { ALIGN, Button, BUTTON_VARIANT, Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
5
|
import { Modal } from "@lookiero/sty-psp-ui";
|
|
6
6
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
7
|
-
import { style } from "./GetOutOfCheckoutModal.style";
|
|
7
|
+
import { style as getOutOfCheckoutModalStyle } from "./GetOutOfCheckoutModal.style";
|
|
8
8
|
|
|
9
9
|
interface GetOutOfCheckoutModalProps {
|
|
10
10
|
readonly visible: boolean;
|
|
@@ -23,6 +23,8 @@ const GetOutOfCheckoutModal: FC<GetOutOfCheckoutModalProps> = ({ visible, onDism
|
|
|
23
23
|
id: I18nMessages.GET_OUT_OF_CHECKOUT_MODAL_CONFIRM_BUTTON,
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
+
const style = useMemo(() => getOutOfCheckoutModalStyle(), []);
|
|
27
|
+
|
|
26
28
|
return (
|
|
27
29
|
<Modal portalHostName="Checkout" visible={visible} onClose={onDismiss}>
|
|
28
30
|
<View style={style.modalContent}>
|
|
@@ -1,32 +1,34 @@
|
|
|
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 { colorTextDisabled, space3, space2, space4, space6 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
actionsRow: {
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
flexDirection: "row",
|
|
11
|
+
marginBottom: space4,
|
|
12
|
+
},
|
|
13
|
+
inputDisabled: {
|
|
14
|
+
color: colorTextDisabled,
|
|
15
|
+
},
|
|
16
|
+
returnButton: {
|
|
17
|
+
flex: 1,
|
|
18
|
+
},
|
|
19
|
+
row: {
|
|
20
|
+
paddingHorizontal: space3,
|
|
21
|
+
},
|
|
22
|
+
sizeSelector: {
|
|
23
|
+
flex: 1,
|
|
24
|
+
marginRight: space2,
|
|
25
|
+
},
|
|
26
|
+
sticky: {
|
|
27
|
+
paddingBottom: space6,
|
|
28
|
+
paddingHorizontal: 0,
|
|
29
|
+
paddingTop: space6,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
};
|
|
31
33
|
|
|
32
34
|
export { style };
|
|
@@ -9,7 +9,7 @@ import { size } from "../../../../../../projection/size/size";
|
|
|
9
9
|
import { Body } from "../../../../components/layouts/body/Body";
|
|
10
10
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
11
11
|
import { SelectModal } from "../selectModal/SelectModal";
|
|
12
|
-
import { style } from "./ItemActions.style";
|
|
12
|
+
import { style as itemActionsStyle } from "./ItemActions.style";
|
|
13
13
|
|
|
14
14
|
interface ItemActionsProps {
|
|
15
15
|
readonly productVariants?: ProductVariantProjection[];
|
|
@@ -33,6 +33,8 @@ const ItemActions: FC<ItemActionsProps> = ({
|
|
|
33
33
|
}) => {
|
|
34
34
|
const [modalVisible, setModalVisible] = useState(false);
|
|
35
35
|
|
|
36
|
+
const style = useMemo(() => itemActionsStyle(), []);
|
|
37
|
+
|
|
36
38
|
const changeSizeButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_CHANGE_SIZE_BUTTON });
|
|
37
39
|
const keepButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_KEEP_BUTTON });
|
|
38
40
|
const returnButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_RETURN_BUTTON });
|
|
@@ -793,6 +793,14 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
793
793
|
"fontStyle": "normal",
|
|
794
794
|
"fontWeight": "normal",
|
|
795
795
|
"height": 24,
|
|
796
|
+
"letterSpacing": -0.2,
|
|
797
|
+
"lineHeight": 24,
|
|
798
|
+
"minHeight": 24,
|
|
799
|
+
"minWidth": 24,
|
|
800
|
+
"paddingBottom": 0,
|
|
801
|
+
"paddingLeft": 0,
|
|
802
|
+
"paddingRight": 0,
|
|
803
|
+
"paddingTop": 0,
|
|
796
804
|
"width": 24,
|
|
797
805
|
},
|
|
798
806
|
]
|
|
@@ -1,24 +1,26 @@
|
|
|
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 { space1, space4, space6 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
brand: {
|
|
9
|
+
flex: 1,
|
|
10
|
+
gap: space1,
|
|
11
|
+
},
|
|
12
|
+
container: {
|
|
13
|
+
width: "100%",
|
|
14
|
+
},
|
|
15
|
+
info: {
|
|
16
|
+
display: "flex",
|
|
17
|
+
flexDirection: "row",
|
|
18
|
+
marginBottom: space4,
|
|
19
|
+
},
|
|
20
|
+
smallContainer: {
|
|
21
|
+
paddingHorizontal: space6,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
};
|
|
23
25
|
|
|
24
26
|
export { style };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
3
|
import { COLOR, Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
@@ -8,7 +8,7 @@ import { PriceProjection } from "../../../../../../projection/price/price";
|
|
|
8
8
|
import { SizeProjection, size } from "../../../../../../projection/size/size";
|
|
9
9
|
import { Price } from "../../../../components/atoms/price/Price";
|
|
10
10
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
11
|
-
import { style } from "./ProductVariantDescription.style";
|
|
11
|
+
import { style as productVariantDescriptionStyle } from "./ProductVariantDescription.style";
|
|
12
12
|
|
|
13
13
|
interface ProductVariantDescriptionProps {
|
|
14
14
|
readonly brand: string;
|
|
@@ -26,9 +26,12 @@ const ProductVariantDescription: FC<ProductVariantDescriptionProps> = ({
|
|
|
26
26
|
}) => {
|
|
27
27
|
const sizeText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_SIZE });
|
|
28
28
|
const uniqueText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_UNIQUE });
|
|
29
|
+
|
|
29
30
|
const screenDevice = useScreenSize();
|
|
30
31
|
const isDesktopScreen = screenDevice !== "S";
|
|
31
32
|
|
|
33
|
+
const style = useMemo(() => productVariantDescriptionStyle(), []);
|
|
34
|
+
|
|
32
35
|
return (
|
|
33
36
|
<View style={[style.container, isDesktopScreen ? null : style.smallContainer]}>
|
|
34
37
|
<View style={style.info}>
|
|
@@ -1,36 +1,44 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const { borderRadius4, colorBgBase, colorBgPrimaryMediumLight, colorBorderActionSecondary, space4 } = theme();
|
|
5
|
-
|
|
6
4
|
const PAGINATION_SIZE = 37;
|
|
7
5
|
|
|
8
|
-
const style =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
6
|
+
const style = () => {
|
|
7
|
+
const { borderRadius4, colorBgBase, colorBgPrimaryMediumLight, colorBorderActionSecondary, space4, space16 } =
|
|
8
|
+
theme();
|
|
9
|
+
|
|
10
|
+
const styles = StyleSheet.create({
|
|
11
|
+
image: {
|
|
12
|
+
flex: 1,
|
|
13
|
+
},
|
|
14
|
+
largeImage: {
|
|
15
|
+
borderRadius: borderRadius4,
|
|
16
|
+
},
|
|
17
|
+
paginationActiveItemStyle: {
|
|
18
|
+
borderColor: colorBorderActionSecondary,
|
|
19
|
+
},
|
|
20
|
+
paginationImage: {
|
|
21
|
+
flex: 1,
|
|
22
|
+
},
|
|
23
|
+
paginationItemStyle: {
|
|
24
|
+
backgroundColor: colorBgBase,
|
|
25
|
+
borderColor: colorBgPrimaryMediumLight,
|
|
26
|
+
borderRadius: 0,
|
|
27
|
+
borderWidth: 1,
|
|
28
|
+
height: PAGINATION_SIZE,
|
|
29
|
+
width: PAGINATION_SIZE,
|
|
30
|
+
},
|
|
31
|
+
paginationStyle: {
|
|
32
|
+
bottom: 0,
|
|
33
|
+
marginTop: space4,
|
|
34
|
+
position: "relative",
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
return {
|
|
39
|
+
...styles,
|
|
40
|
+
imageContainerMarginTop: space16,
|
|
41
|
+
};
|
|
42
|
+
};
|
|
35
43
|
|
|
36
44
|
export { style };
|
package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC, useCallback, useState } from "react";
|
|
1
|
+
import React, { FC, useCallback, useMemo, useState } from "react";
|
|
2
2
|
import {
|
|
3
3
|
AspectRatioView,
|
|
4
4
|
Bullets,
|
|
@@ -6,14 +6,12 @@ import {
|
|
|
6
6
|
LazyImage,
|
|
7
7
|
RenderBulletsFunction,
|
|
8
8
|
RenderItemFunction,
|
|
9
|
-
theme,
|
|
10
9
|
useScreenSize,
|
|
11
10
|
} from "@lookiero/sty-psp-ui";
|
|
12
11
|
import { MediaPerspective, MediaProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
13
12
|
import { useMediaImage } from "../../../../hooks/useMediaImage";
|
|
14
|
-
import { style } from "./ProductVariantSlider.style";
|
|
13
|
+
import { style as productVariantSliderStyle } from "./ProductVariantSlider.style";
|
|
15
14
|
|
|
16
|
-
const { space16 } = theme();
|
|
17
15
|
interface ProductVariantSlider {
|
|
18
16
|
readonly producVariantMedia: MediaProjection[];
|
|
19
17
|
readonly onChanged?: (active: number) => void;
|
|
@@ -23,6 +21,8 @@ const ProductVariantSlider: FC<ProductVariantSlider> = ({ producVariantMedia, on
|
|
|
23
21
|
const screenSize = useScreenSize();
|
|
24
22
|
const isDesktopScreen = screenSize !== "S";
|
|
25
23
|
|
|
24
|
+
const style = useMemo(() => productVariantSliderStyle(), []);
|
|
25
|
+
|
|
26
26
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
27
27
|
const handleOnActiveChanged = useCallback(
|
|
28
28
|
(activeIndex: number) => {
|
|
@@ -42,7 +42,7 @@ const ProductVariantSlider: FC<ProductVariantSlider> = ({ producVariantMedia, on
|
|
|
42
42
|
aspectRatio={4 / 3}
|
|
43
43
|
multiplier={isCollageImage && isLastItem ? 2 : 1}
|
|
44
44
|
style={{
|
|
45
|
-
marginTop: isCollageImage && !isDesktopScreen ?
|
|
45
|
+
marginTop: isCollageImage && !isDesktopScreen ? style.imageContainerMarginTop : 0,
|
|
46
46
|
alignSelf: isCollageImage ? (isLastItem ? "flex-end" : "flex-start") : undefined,
|
|
47
47
|
}}
|
|
48
48
|
>
|
|
@@ -56,7 +56,14 @@ const ProductVariantSlider: FC<ProductVariantSlider> = ({ producVariantMedia, on
|
|
|
56
56
|
</AspectRatioView>
|
|
57
57
|
);
|
|
58
58
|
},
|
|
59
|
-
[
|
|
59
|
+
[
|
|
60
|
+
cdnImageUrl,
|
|
61
|
+
isDesktopScreen,
|
|
62
|
+
producVariantMedia.length,
|
|
63
|
+
style.image,
|
|
64
|
+
style.imageContainerMarginTop,
|
|
65
|
+
style.largeImage,
|
|
66
|
+
],
|
|
60
67
|
);
|
|
61
68
|
|
|
62
69
|
const renderBullets: RenderBulletsFunction = useCallback(
|
|
@@ -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 { space4 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
titleContainer: {
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
flexDirection: "row",
|
|
11
|
+
justifyContent: "space-between",
|
|
12
|
+
marginBottom: space4,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
};
|
|
14
16
|
|
|
15
17
|
export { style };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
3
|
import { ButtonIcon, Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { HostDefaultReturnQuestionFeedbackItem } from "../../../../components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem";
|
|
13
13
|
import { ReturnQuestionFeedbackItem } from "../../../../components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem";
|
|
14
14
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
15
|
-
import { style } from "./ReturnQuestionsFeedback.style";
|
|
15
|
+
import { style as returnQuestionsFeedbackStyle } from "./ReturnQuestionsFeedback.style";
|
|
16
16
|
|
|
17
17
|
const returnQuestionItems: ReturnQuestionItems = {
|
|
18
18
|
[ReturnQuestionType.HOST_DEFAULT]: HostDefaultReturnQuestionFeedbackItem,
|
|
@@ -31,6 +31,8 @@ interface ReturnQuestionsFeedbackProps {
|
|
|
31
31
|
const ReturnQuestionsFeedback: FC<ReturnQuestionsFeedbackProps> = ({ returnQuestions, onEditFeedback }) => {
|
|
32
32
|
const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.FEEDBACK_TITLE });
|
|
33
33
|
|
|
34
|
+
const style = useMemo(() => returnQuestionsFeedbackStyle(), []);
|
|
35
|
+
|
|
34
36
|
return (
|
|
35
37
|
<View>
|
|
36
38
|
<View style={style.titleContainer}>
|
|
@@ -1,24 +1,31 @@
|
|
|
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 { borderWidth1, colorBgPrimaryLight, colorBorderInteractive, space1, space5, space6 } = theme();
|
|
5
6
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
7
|
+
const styles = StyleSheet.create({
|
|
8
|
+
modalContent: {
|
|
9
|
+
paddingBottom: space6,
|
|
10
|
+
paddingHorizontal: space6,
|
|
11
|
+
},
|
|
12
|
+
modalTitle: {
|
|
13
|
+
marginBottom: space1,
|
|
14
|
+
},
|
|
15
|
+
option: {
|
|
16
|
+
borderBottomColor: colorBorderInteractive,
|
|
17
|
+
borderBottomWidth: borderWidth1,
|
|
18
|
+
paddingVertical: space5,
|
|
19
|
+
},
|
|
20
|
+
optionText: {
|
|
21
|
+
lineHeight: space6,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
...styles,
|
|
27
|
+
underlayColor: colorBgPrimaryLight,
|
|
28
|
+
};
|
|
29
|
+
};
|
|
23
30
|
|
|
24
31
|
export { style };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import React, { FC, useCallback } from "react";
|
|
1
|
+
import React, { FC, useCallback, useMemo } from "react";
|
|
2
2
|
import { StyleProp, TextStyle, TouchableHighlight, View, ViewStyle } from "react-native";
|
|
3
3
|
import { COLOR, Text } from "@lookiero/aurora";
|
|
4
|
-
import { Modal
|
|
5
|
-
import { style } from "./SelectModal.style";
|
|
6
|
-
|
|
7
|
-
const { colorBgPrimaryLight } = theme();
|
|
4
|
+
import { Modal } from "@lookiero/sty-psp-ui";
|
|
5
|
+
import { style as modalStyle } from "./SelectModal.style";
|
|
8
6
|
|
|
9
7
|
interface SelectModalStyle {
|
|
10
8
|
readonly modalContent: StyleProp<ViewStyle>;
|
|
@@ -48,6 +46,8 @@ const SelectModal: FC<SelectModalProps> = ({
|
|
|
48
46
|
[onClose, onChange],
|
|
49
47
|
);
|
|
50
48
|
|
|
49
|
+
const style = useMemo(() => modalStyle(), []);
|
|
50
|
+
|
|
51
51
|
return (
|
|
52
52
|
<Modal
|
|
53
53
|
portalHostName={portalHostName}
|
|
@@ -70,7 +70,7 @@ const SelectModal: FC<SelectModalProps> = ({
|
|
|
70
70
|
disabled={value === optionValue}
|
|
71
71
|
style={[style.option, customStyle?.option]}
|
|
72
72
|
testID={optionValue}
|
|
73
|
-
underlayColor={
|
|
73
|
+
underlayColor={style.underlayColor}
|
|
74
74
|
accessible
|
|
75
75
|
onPress={value !== optionValue ? () => handleOnPressOption(optionValue) : undefined}
|
|
76
76
|
>
|
|
@@ -219,6 +219,14 @@ exports[`SelectField component matches the snapshot 1`] = `
|
|
|
219
219
|
"fontStyle": "normal",
|
|
220
220
|
"fontWeight": "normal",
|
|
221
221
|
"height": 24,
|
|
222
|
+
"letterSpacing": -0.2,
|
|
223
|
+
"lineHeight": 24,
|
|
224
|
+
"minHeight": 24,
|
|
225
|
+
"minWidth": 24,
|
|
226
|
+
"paddingBottom": 0,
|
|
227
|
+
"paddingLeft": 0,
|
|
228
|
+
"paddingRight": 0,
|
|
229
|
+
"paddingTop": 0,
|
|
222
230
|
"width": 24,
|
|
223
231
|
},
|
|
224
232
|
]
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const style = () => {
|
|
5
|
+
const { space1, space6, colorTextMedium } = theme();
|
|
6
|
+
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
description: {
|
|
9
|
+
color: colorTextMedium,
|
|
10
|
+
marginBottom: space6,
|
|
11
|
+
width: "100%",
|
|
12
|
+
},
|
|
13
|
+
modalContent: {
|
|
14
|
+
paddingHorizontal: space6,
|
|
15
|
+
},
|
|
16
|
+
title: {
|
|
17
|
+
marginBottom: space1,
|
|
18
|
+
width: "100%",
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
};
|
|
5
22
|
|
|
6
|
-
const style = StyleSheet.create({
|
|
7
|
-
description: {
|
|
8
|
-
color: colorTextMedium,
|
|
9
|
-
marginBottom: space6,
|
|
10
|
-
width: "100%",
|
|
11
|
-
},
|
|
12
|
-
modalContent: {
|
|
13
|
-
paddingHorizontal: space6,
|
|
14
|
-
},
|
|
15
|
-
title: {
|
|
16
|
-
marginBottom: space1,
|
|
17
|
-
width: "100%",
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
23
|
export { style };
|
package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
3
|
import { Button, Text } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
5
|
import { Modal } from "@lookiero/sty-psp-ui";
|
|
6
6
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
7
|
-
import { style } from "./SizeWithoutStockModal.style";
|
|
7
|
+
import { style as sizeWithoutStockModalStyle } from "./SizeWithoutStockModal.style";
|
|
8
8
|
|
|
9
9
|
interface SizeWithoutStockModalProps {
|
|
10
10
|
readonly visible: boolean;
|
|
@@ -15,6 +15,8 @@ const SizeWithoutStockModal: FC<SizeWithoutStockModalProps> = ({ visible, onDism
|
|
|
15
15
|
const descriptionText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SIZE_WITHOUT_STOCK_MODAL_DESCRIPTION });
|
|
16
16
|
const buttonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SIZE_WITHOUT_STOCK_MODAL_BUTTON });
|
|
17
17
|
|
|
18
|
+
const style = useMemo(() => sizeWithoutStockModalStyle(), []);
|
|
19
|
+
|
|
18
20
|
return (
|
|
19
21
|
<Modal portalHostName="Checkout" visible={visible} showCloseButton onClose={onDismiss}>
|
|
20
22
|
<View style={style.modalContent}>
|
|
@@ -219,6 +219,14 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
|
|
|
219
219
|
"fontStyle": "normal",
|
|
220
220
|
"fontWeight": "normal",
|
|
221
221
|
"height": 24,
|
|
222
|
+
"letterSpacing": -0.2,
|
|
223
|
+
"lineHeight": 24,
|
|
224
|
+
"minHeight": 24,
|
|
225
|
+
"minWidth": 24,
|
|
226
|
+
"paddingBottom": 0,
|
|
227
|
+
"paddingLeft": 0,
|
|
228
|
+
"paddingRight": 0,
|
|
229
|
+
"paddingTop": 0,
|
|
222
230
|
"width": 24,
|
|
223
231
|
},
|
|
224
232
|
]
|
|
@@ -1,23 +1,25 @@
|
|
|
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 { borderWidth1, colorBorderInput, space6 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
container: {
|
|
9
|
+
justifyContent: "flex-start",
|
|
10
|
+
paddingBottom: space6,
|
|
11
|
+
paddingHorizontal: 0,
|
|
12
|
+
},
|
|
13
|
+
feedbackContainer: {
|
|
14
|
+
borderTopColor: colorBorderInput,
|
|
15
|
+
borderTopWidth: borderWidth1,
|
|
16
|
+
marginTop: space6,
|
|
17
|
+
paddingTop: space6,
|
|
18
|
+
},
|
|
19
|
+
feedbackContainerMobile: {
|
|
20
|
+
paddingHorizontal: space6,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
};
|
|
22
24
|
|
|
23
25
|
export { style };
|