@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,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 { View } from "react-native";
|
|
4
4
|
import { Text } from "@lookiero/aurora";
|
|
5
5
|
import { useI18nMessage, useI18n } from "@lookiero/i18n-react";
|
|
@@ -8,7 +8,7 @@ import { DOMAIN, I18nMessages } from "../../../../../i18n/i18n";
|
|
|
8
8
|
import { useReturnQuestionFeedback } from "../../behaviors/useReturnQuestionFeedback";
|
|
9
9
|
import { feedbackForReturnQuestion } from "../../util/returnQuestionFeedback";
|
|
10
10
|
import { ReturnQuestionItem } from "../ReturnQuestionItem";
|
|
11
|
-
import { style } from "./ReturnQuestionFeedbackItem.style";
|
|
11
|
+
import { style as returnQuestionFeedbackItemStyle } from "./ReturnQuestionFeedbackItem.style";
|
|
12
12
|
|
|
13
13
|
const ReturnQuestionFeedbackItem: ReturnQuestionItem<ReturnQuestionType.HOST_DEFAULT> = ({ returnQuestion }) => {
|
|
14
14
|
const titleText = useI18nMessage({ domain: DOMAIN, id: returnQuestion.translationKey });
|
|
@@ -25,6 +25,8 @@ const ReturnQuestionFeedbackItem: ReturnQuestionItem<ReturnQuestionType.HOST_DEF
|
|
|
25
25
|
" / ",
|
|
26
26
|
);
|
|
27
27
|
|
|
28
|
+
const style = useMemo(() => returnQuestionFeedbackItemStyle(), []);
|
|
29
|
+
|
|
28
30
|
return (
|
|
29
31
|
<View style={style.container}>
|
|
30
32
|
<Text level={2} style={style.title} detailBold>
|
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
import { Platform, StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const { colorBgBase, fontInputPaddingLeft, space2, space4, space6 } = 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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
6
|
+
const style = () => {
|
|
7
|
+
const { colorBgBase, fontInputPaddingLeft, space2, space4, space6 } = 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
|
+
wrapper: {
|
|
31
|
+
backgroundColor: colorBgBase,
|
|
32
|
+
padding: space6,
|
|
33
|
+
paddingTop: 0,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
};
|
|
35
37
|
|
|
36
38
|
export { style };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
2
|
import React, { useCallback, useMemo } from "react";
|
|
3
|
-
import { View } from "
|
|
3
|
+
import { View } from "react-native";
|
|
4
4
|
import { useI18n } from "@lookiero/i18n-react";
|
|
5
5
|
import { InputField, TextInput } from "@lookiero/sty-psp-ui";
|
|
6
6
|
import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
|
|
7
7
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
8
8
|
import { useReturnQuestionFeedbackForReturnQuestion } from "../../behaviors/useReturnQuestionFeedback";
|
|
9
9
|
import { ReturnQuestionItem } from "../ReturnQuestionItem";
|
|
10
|
-
import { style } from "./TextareaReturnQuestionItem.style";
|
|
10
|
+
import { style as textareaReturnQuestionItemStyle } from "./TextareaReturnQuestionItem.style";
|
|
11
11
|
|
|
12
12
|
const TextareaReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.TEXTAREA> = ({
|
|
13
13
|
returnQuestion,
|
|
@@ -28,6 +28,8 @@ const TextareaReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.TEXTAREA
|
|
|
28
28
|
[onChange, returnQuestionParent.id],
|
|
29
29
|
);
|
|
30
30
|
|
|
31
|
+
const style = useMemo(() => textareaReturnQuestionItemStyle(), []);
|
|
32
|
+
|
|
31
33
|
return (
|
|
32
34
|
<View style={style.wrapper} testID="textarea-return-question-item">
|
|
33
35
|
<InputField
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
|
-
const { colorBgBase, space2 } = theme();
|
|
5
|
-
|
|
6
4
|
const HEADER_HEIGHT = 48;
|
|
7
5
|
|
|
8
|
-
const style =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
const style = () => {
|
|
7
|
+
const { colorBgBase, space2 } = theme();
|
|
8
|
+
|
|
9
|
+
return StyleSheet.create({
|
|
10
|
+
header: {
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
backgroundColor: colorBgBase,
|
|
13
|
+
flexDirection: "row",
|
|
14
|
+
flexGrow: 0,
|
|
15
|
+
flexWrap: "nowrap",
|
|
16
|
+
height: HEADER_HEIGHT,
|
|
17
|
+
justifyContent: "space-between",
|
|
18
|
+
overflow: "visible",
|
|
19
|
+
paddingHorizontal: space2,
|
|
20
|
+
width: "100%",
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
};
|
|
22
24
|
|
|
23
25
|
export { style, HEADER_HEIGHT };
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View, ViewProps } from "react-native";
|
|
3
|
-
import { style } from "./Header.style";
|
|
3
|
+
import { style as headerStyle } from "./Header.style";
|
|
4
4
|
|
|
5
5
|
type HeaderProps = ViewProps;
|
|
6
6
|
|
|
7
|
-
const Header: FC<HeaderProps> = ({ children, style: customStyle, ...props }) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const Header: FC<HeaderProps> = ({ children, style: customStyle, ...props }) => {
|
|
8
|
+
const style = useMemo(() => headerStyle(), []);
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<View {...props} style={[style.header, customStyle]}>
|
|
12
|
+
{children}
|
|
13
|
+
</View>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
12
16
|
|
|
13
17
|
export { Header };
|
|
@@ -1,14 +1,16 @@
|
|
|
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 { space10 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
buttonIconPlaceholder: {
|
|
9
|
+
flexGrow: 0,
|
|
10
|
+
height: space10,
|
|
11
|
+
width: space10,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
};
|
|
13
15
|
|
|
14
16
|
export { style };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { style } from "./ButtonIconPlaceholder.style";
|
|
3
|
+
import { style as buttonIconPlaceholderStyle } from "./ButtonIconPlaceholder.style";
|
|
4
4
|
|
|
5
|
-
const ButtonIconPlaceholder: FC = () =>
|
|
5
|
+
const ButtonIconPlaceholder: FC = () => {
|
|
6
|
+
const style = useMemo(() => buttonIconPlaceholderStyle(), []);
|
|
7
|
+
|
|
8
|
+
return <View style={style.buttonIconPlaceholder} />;
|
|
9
|
+
};
|
|
6
10
|
|
|
7
11
|
export { ButtonIconPlaceholder };
|
package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
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 { space10 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
button: {
|
|
9
|
+
alignSelf: "auto",
|
|
10
|
+
height: space10,
|
|
11
|
+
width: space10,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
};
|
|
13
15
|
|
|
14
16
|
export { style };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
2
|
-
import {
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
|
+
import { Text } from "@lookiero/aurora";
|
|
3
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
4
|
+
import { ButtonIcon } from "@lookiero/sty-psp-ui";
|
|
4
5
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
5
6
|
import { Header } from "../Header";
|
|
6
7
|
import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
|
|
7
|
-
import { style } from "./CheckoutHeader.style";
|
|
8
|
+
import { style as checkoutHeader } from "./CheckoutHeader.style";
|
|
8
9
|
|
|
9
10
|
interface CheckoutHeaderProps {
|
|
10
11
|
readonly onBack?: () => void;
|
|
@@ -13,9 +14,11 @@ interface CheckoutHeaderProps {
|
|
|
13
14
|
const CheckoutHeader: FC<CheckoutHeaderProps> = ({ onBack }) => {
|
|
14
15
|
const title = useI18nMessage({ domain: DOMAIN, id: I18nMessages.HEADER_COMPLETE_CHECKOUT_TITLE });
|
|
15
16
|
|
|
17
|
+
const style = useMemo(() => checkoutHeader(), []);
|
|
18
|
+
|
|
16
19
|
return (
|
|
17
20
|
<Header testID="checkout-header">
|
|
18
|
-
<ButtonIcon name="arrow_left" style={style.button} testID="arrow-left-button-icon" onPress={onBack} />
|
|
21
|
+
<ButtonIcon name="arrow_left" style={{ button: style.button }} testID="arrow-left-button-icon" onPress={onBack} />
|
|
19
22
|
<Text level={3} action>
|
|
20
23
|
{title}
|
|
21
24
|
</Text>
|
|
@@ -50,7 +50,6 @@ exports[`CheckoutHeader template matches the snapshot 1`] = `
|
|
|
50
50
|
testID="checkout-header"
|
|
51
51
|
>
|
|
52
52
|
<View
|
|
53
|
-
accessibilityRole="button"
|
|
54
53
|
accessibilityState={
|
|
55
54
|
{
|
|
56
55
|
"busy": undefined,
|
|
@@ -71,9 +70,7 @@ exports[`CheckoutHeader template matches the snapshot 1`] = `
|
|
|
71
70
|
accessible={true}
|
|
72
71
|
collapsable={false}
|
|
73
72
|
focusable={true}
|
|
74
|
-
onBlur={[Function]}
|
|
75
73
|
onClick={[Function]}
|
|
76
|
-
onFocus={[Function]}
|
|
77
74
|
onResponderGrant={[Function]}
|
|
78
75
|
onResponderMove={[Function]}
|
|
79
76
|
onResponderRelease={[Function]}
|
|
@@ -81,93 +78,47 @@ exports[`CheckoutHeader template matches the snapshot 1`] = `
|
|
|
81
78
|
onResponderTerminationRequest={[Function]}
|
|
82
79
|
onStartShouldSetResponder={[Function]}
|
|
83
80
|
style={
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"left": 0,
|
|
93
|
-
"right": 0,
|
|
94
|
-
"top": 0,
|
|
95
|
-
},
|
|
96
|
-
"alignSelf": "auto",
|
|
97
|
-
"container": {
|
|
98
|
-
"overflow": "hidden",
|
|
99
|
-
},
|
|
100
|
-
"height": 40,
|
|
101
|
-
"overflow": "visible",
|
|
102
|
-
"padding": 8,
|
|
103
|
-
"pressed": {
|
|
104
|
-
"bottom": 0,
|
|
105
|
-
"left": 0,
|
|
106
|
-
"right": 0,
|
|
107
|
-
"top": 0,
|
|
108
|
-
},
|
|
109
|
-
"width": 40,
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
{
|
|
113
|
-
"opacity": 1,
|
|
114
|
-
},
|
|
115
|
-
]
|
|
81
|
+
{
|
|
82
|
+
"alignSelf": "auto",
|
|
83
|
+
"flexGrow": 0,
|
|
84
|
+
"height": 40,
|
|
85
|
+
"opacity": 1,
|
|
86
|
+
"padding": 8,
|
|
87
|
+
"width": 40,
|
|
88
|
+
}
|
|
116
89
|
}
|
|
117
90
|
testID="arrow-left-button-icon"
|
|
118
91
|
>
|
|
119
|
-
<
|
|
92
|
+
<Text
|
|
93
|
+
accessibilityElementsHidden={true}
|
|
94
|
+
allowFontScaling={false}
|
|
95
|
+
importantForAccessibility="no"
|
|
96
|
+
selectable={false}
|
|
120
97
|
style={
|
|
121
98
|
[
|
|
122
99
|
{
|
|
123
|
-
"
|
|
100
|
+
"color": "#0C0A0A",
|
|
101
|
+
"fontFamily": "auroraicons",
|
|
102
|
+
"fontSize": 24,
|
|
103
|
+
"fontStyle": "normal",
|
|
104
|
+
"fontWeight": "normal",
|
|
105
|
+
"height": 24,
|
|
106
|
+
"letterSpacing": -0.2,
|
|
107
|
+
"lineHeight": 24,
|
|
108
|
+
"minHeight": 24,
|
|
109
|
+
"minWidth": 24,
|
|
110
|
+
"paddingBottom": 0,
|
|
111
|
+
"paddingLeft": 0,
|
|
112
|
+
"paddingRight": 0,
|
|
113
|
+
"paddingTop": 0,
|
|
114
|
+
"width": 24,
|
|
124
115
|
},
|
|
125
116
|
]
|
|
126
117
|
}
|
|
118
|
+
testID="icon"
|
|
127
119
|
>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
allowFontScaling={false}
|
|
131
|
-
importantForAccessibility="no"
|
|
132
|
-
selectable={false}
|
|
133
|
-
style={
|
|
134
|
-
[
|
|
135
|
-
{
|
|
136
|
-
"color": "#0C0A0A",
|
|
137
|
-
"fontFamily": "auroraicons",
|
|
138
|
-
"fontSize": 24,
|
|
139
|
-
"fontStyle": "normal",
|
|
140
|
-
"fontWeight": "normal",
|
|
141
|
-
"height": 24,
|
|
142
|
-
"width": 24,
|
|
143
|
-
},
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
>
|
|
147
|
-
|
|
148
|
-
</Text>
|
|
149
|
-
<View
|
|
150
|
-
collapsable={false}
|
|
151
|
-
style={
|
|
152
|
-
{
|
|
153
|
-
"backgroundColor": "#F45545",
|
|
154
|
-
"borderColor": "#FFFFFF",
|
|
155
|
-
"borderRadius": 9999,
|
|
156
|
-
"borderWidth": 2,
|
|
157
|
-
"height": 10,
|
|
158
|
-
"position": "absolute",
|
|
159
|
-
"right": 0,
|
|
160
|
-
"top": 0,
|
|
161
|
-
"transform": [
|
|
162
|
-
{
|
|
163
|
-
"scale": 0,
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
"width": 10,
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
/>
|
|
170
|
-
</View>
|
|
120
|
+
|
|
121
|
+
</Text>
|
|
171
122
|
</View>
|
|
172
123
|
<Text
|
|
173
124
|
allowFontScaling={false}
|
package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
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 { space10 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
button: {
|
|
9
|
+
alignSelf: "auto",
|
|
10
|
+
height: space10,
|
|
11
|
+
width: space10,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
};
|
|
13
15
|
|
|
14
16
|
export { style };
|
package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
2
|
-
import {
|
|
1
|
+
import React, { FC, useMemo } from "react";
|
|
2
|
+
import { Text } from "@lookiero/aurora";
|
|
3
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
4
|
+
import { ButtonIcon } from "@lookiero/sty-psp-ui";
|
|
4
5
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
5
6
|
import { Header } from "../Header";
|
|
6
7
|
import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
|
|
7
|
-
import { style } from "./ItemDetailHeader.style";
|
|
8
|
+
import { style as itemDetailHeaderStyle } from "./ItemDetailHeader.style";
|
|
8
9
|
|
|
9
10
|
interface ItemDetailHeaderProps {
|
|
10
11
|
readonly onBack: () => void;
|
|
@@ -12,13 +13,15 @@ interface ItemDetailHeaderProps {
|
|
|
12
13
|
const ItemDetailHeader: FC<ItemDetailHeaderProps> = ({ onBack }) => {
|
|
13
14
|
const title = useI18nMessage({ domain: DOMAIN, id: I18nMessages.HEADER_CHECKOUT_TITLE });
|
|
14
15
|
|
|
16
|
+
const style = useMemo(() => itemDetailHeaderStyle(), []);
|
|
17
|
+
|
|
15
18
|
return (
|
|
16
19
|
<Header testID="item-detail-header">
|
|
17
20
|
<ButtonIconPlaceholder />
|
|
18
21
|
<Text level={3} action>
|
|
19
22
|
{title}
|
|
20
23
|
</Text>
|
|
21
|
-
<ButtonIcon name="close" style={style.button} testID="close-button-icon" onPress={onBack} />
|
|
24
|
+
<ButtonIcon name="close" style={{ button: style.button }} testID="close-button-icon" onPress={onBack} />
|
|
22
25
|
</Header>
|
|
23
26
|
);
|
|
24
27
|
};
|
|
@@ -80,7 +80,6 @@ exports[`ItemDetailHeader template matches the snapshot 1`] = `
|
|
|
80
80
|
header.checkout_title
|
|
81
81
|
</Text>
|
|
82
82
|
<View
|
|
83
|
-
accessibilityRole="button"
|
|
84
83
|
accessibilityState={
|
|
85
84
|
{
|
|
86
85
|
"busy": undefined,
|
|
@@ -101,9 +100,7 @@ exports[`ItemDetailHeader template matches the snapshot 1`] = `
|
|
|
101
100
|
accessible={true}
|
|
102
101
|
collapsable={false}
|
|
103
102
|
focusable={true}
|
|
104
|
-
onBlur={[Function]}
|
|
105
103
|
onClick={[Function]}
|
|
106
|
-
onFocus={[Function]}
|
|
107
104
|
onResponderGrant={[Function]}
|
|
108
105
|
onResponderMove={[Function]}
|
|
109
106
|
onResponderRelease={[Function]}
|
|
@@ -111,93 +108,47 @@ exports[`ItemDetailHeader template matches the snapshot 1`] = `
|
|
|
111
108
|
onResponderTerminationRequest={[Function]}
|
|
112
109
|
onStartShouldSetResponder={[Function]}
|
|
113
110
|
style={
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"left": 0,
|
|
123
|
-
"right": 0,
|
|
124
|
-
"top": 0,
|
|
125
|
-
},
|
|
126
|
-
"alignSelf": "auto",
|
|
127
|
-
"container": {
|
|
128
|
-
"overflow": "hidden",
|
|
129
|
-
},
|
|
130
|
-
"height": 40,
|
|
131
|
-
"overflow": "visible",
|
|
132
|
-
"padding": 8,
|
|
133
|
-
"pressed": {
|
|
134
|
-
"bottom": 0,
|
|
135
|
-
"left": 0,
|
|
136
|
-
"right": 0,
|
|
137
|
-
"top": 0,
|
|
138
|
-
},
|
|
139
|
-
"width": 40,
|
|
140
|
-
},
|
|
141
|
-
],
|
|
142
|
-
{
|
|
143
|
-
"opacity": 1,
|
|
144
|
-
},
|
|
145
|
-
]
|
|
111
|
+
{
|
|
112
|
+
"alignSelf": "auto",
|
|
113
|
+
"flexGrow": 0,
|
|
114
|
+
"height": 40,
|
|
115
|
+
"opacity": 1,
|
|
116
|
+
"padding": 8,
|
|
117
|
+
"width": 40,
|
|
118
|
+
}
|
|
146
119
|
}
|
|
147
120
|
testID="close-button-icon"
|
|
148
121
|
>
|
|
149
|
-
<
|
|
122
|
+
<Text
|
|
123
|
+
accessibilityElementsHidden={true}
|
|
124
|
+
allowFontScaling={false}
|
|
125
|
+
importantForAccessibility="no"
|
|
126
|
+
selectable={false}
|
|
150
127
|
style={
|
|
151
128
|
[
|
|
152
129
|
{
|
|
153
|
-
"
|
|
130
|
+
"color": "#0C0A0A",
|
|
131
|
+
"fontFamily": "auroraicons",
|
|
132
|
+
"fontSize": 24,
|
|
133
|
+
"fontStyle": "normal",
|
|
134
|
+
"fontWeight": "normal",
|
|
135
|
+
"height": 24,
|
|
136
|
+
"letterSpacing": -0.2,
|
|
137
|
+
"lineHeight": 24,
|
|
138
|
+
"minHeight": 24,
|
|
139
|
+
"minWidth": 24,
|
|
140
|
+
"paddingBottom": 0,
|
|
141
|
+
"paddingLeft": 0,
|
|
142
|
+
"paddingRight": 0,
|
|
143
|
+
"paddingTop": 0,
|
|
144
|
+
"width": 24,
|
|
154
145
|
},
|
|
155
146
|
]
|
|
156
147
|
}
|
|
148
|
+
testID="icon"
|
|
157
149
|
>
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
allowFontScaling={false}
|
|
161
|
-
importantForAccessibility="no"
|
|
162
|
-
selectable={false}
|
|
163
|
-
style={
|
|
164
|
-
[
|
|
165
|
-
{
|
|
166
|
-
"color": "#0C0A0A",
|
|
167
|
-
"fontFamily": "auroraicons",
|
|
168
|
-
"fontSize": 24,
|
|
169
|
-
"fontStyle": "normal",
|
|
170
|
-
"fontWeight": "normal",
|
|
171
|
-
"height": 24,
|
|
172
|
-
"width": 24,
|
|
173
|
-
},
|
|
174
|
-
]
|
|
175
|
-
}
|
|
176
|
-
>
|
|
177
|
-
|
|
178
|
-
</Text>
|
|
179
|
-
<View
|
|
180
|
-
collapsable={false}
|
|
181
|
-
style={
|
|
182
|
-
{
|
|
183
|
-
"backgroundColor": "#F45545",
|
|
184
|
-
"borderColor": "#FFFFFF",
|
|
185
|
-
"borderRadius": 9999,
|
|
186
|
-
"borderWidth": 2,
|
|
187
|
-
"height": 10,
|
|
188
|
-
"position": "absolute",
|
|
189
|
-
"right": 0,
|
|
190
|
-
"top": 0,
|
|
191
|
-
"transform": [
|
|
192
|
-
{
|
|
193
|
-
"scale": 0,
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
"width": 10,
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
/>
|
|
200
|
-
</View>
|
|
150
|
+
|
|
151
|
+
</Text>
|
|
201
152
|
</View>
|
|
202
153
|
</View>
|
|
203
154
|
</View>
|
|
@@ -1,14 +1,16 @@
|
|
|
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 { space10 } = theme();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
7
|
+
return StyleSheet.create({
|
|
8
|
+
button: {
|
|
9
|
+
alignSelf: "auto",
|
|
10
|
+
height: space10,
|
|
11
|
+
width: space10,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
};
|
|
13
15
|
|
|
14
|
-
export
|
|
16
|
+
export { style };
|