@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.
Files changed (227) hide show
  1. package/dist/src/ExpoRoot.js +13 -8
  2. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +3 -2
  3. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.d.ts +1 -1
  4. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +8 -6
  5. package/dist/src/infrastructure/ui/components/atoms/price/Price.js +3 -2
  6. package/dist/src/infrastructure/ui/components/atoms/price/Price.style.d.ts +1 -1
  7. package/dist/src/infrastructure/ui/components/atoms/price/Price.style.js +18 -16
  8. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +3 -2
  9. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +1 -1
  10. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +23 -22
  11. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +3 -2
  12. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.d.ts +1 -1
  13. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.js +11 -9
  14. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +3 -2
  15. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.d.ts +3 -3
  16. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.js +18 -13
  17. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +4 -5
  18. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.d.ts +2 -1
  19. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +13 -5
  20. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +2 -1
  21. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +1 -1
  22. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +25 -23
  23. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +3 -2
  24. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +1 -1
  25. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +11 -9
  26. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.d.ts +1 -2
  27. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +3 -2
  28. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.d.ts +1 -1
  29. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.js +13 -11
  30. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +3 -2
  31. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +3 -3
  32. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +23 -18
  33. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +2 -1
  34. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.d.ts +1 -1
  35. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.js +8 -6
  36. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.d.ts +2 -2
  37. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +3 -2
  38. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.d.ts +1 -1
  39. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.js +14 -12
  40. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +4 -3
  41. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +3 -3
  42. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +18 -13
  43. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +3 -2
  44. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.d.ts +1 -1
  45. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.js +8 -4
  46. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +3 -2
  47. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +1 -1
  48. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +12 -10
  49. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +2 -1
  50. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +1 -1
  51. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +30 -28
  52. package/dist/src/infrastructure/ui/components/templates/header/Header.js +6 -3
  53. package/dist/src/infrastructure/ui/components/templates/header/Header.style.d.ts +1 -1
  54. package/dist/src/infrastructure/ui/components/templates/header/Header.style.js +17 -15
  55. package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.js +6 -3
  56. package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.d.ts +1 -1
  57. package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.js +10 -8
  58. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +3 -2
  59. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.d.ts +1 -1
  60. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.js +10 -8
  61. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +3 -2
  62. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.d.ts +1 -1
  63. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.js +10 -8
  64. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +3 -2
  65. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.d.ts +2 -2
  66. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.js +11 -9
  67. package/dist/src/infrastructure/ui/views/App.js +8 -6
  68. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +2 -1
  69. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +1 -1
  70. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +63 -61
  71. package/dist/src/infrastructure/ui/views/feedback/Feedback.js +3 -2
  72. package/dist/src/infrastructure/ui/views/feedback/Feedback.style.d.ts +1 -1
  73. package/dist/src/infrastructure/ui/views/feedback/Feedback.style.js +13 -11
  74. package/dist/src/infrastructure/ui/views/item/Item.js +4 -2
  75. package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +1 -1
  76. package/dist/src/infrastructure/ui/views/item/Item.style.js +21 -19
  77. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +3 -2
  78. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +1 -1
  79. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +11 -9
  80. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +3 -2
  81. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +1 -1
  82. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +24 -22
  83. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +2 -1
  84. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.d.ts +1 -1
  85. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.js +28 -26
  86. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +3 -2
  87. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +1 -1
  88. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +20 -18
  89. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +13 -6
  90. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +2 -1
  91. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +34 -28
  92. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +3 -2
  93. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +1 -1
  94. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +11 -9
  95. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +5 -5
  96. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.d.ts +2 -1
  97. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.js +24 -18
  98. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +3 -2
  99. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +1 -1
  100. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +17 -15
  101. package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.js +3 -2
  102. package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.d.ts +1 -1
  103. package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.js +19 -17
  104. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +6 -5
  105. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.d.ts +2 -1
  106. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.js +13 -7
  107. package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.js +3 -2
  108. package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.d.ts +1 -1
  109. package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.js +17 -15
  110. package/dist/src/infrastructure/ui/views/return/components/price/Price.js +3 -2
  111. package/dist/src/infrastructure/ui/views/return/components/price/Price.style.d.ts +1 -1
  112. package/dist/src/infrastructure/ui/views/return/components/price/Price.style.js +18 -16
  113. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +3 -2
  114. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.d.ts +1 -1
  115. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.js +32 -30
  116. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +3 -2
  117. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +1 -1
  118. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +50 -48
  119. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +3 -2
  120. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.d.ts +1 -1
  121. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +40 -38
  122. package/dist/src/infrastructure/ui/views/summary/Summary.js +3 -2
  123. package/dist/src/infrastructure/ui/views/summary/Summary.style.d.ts +1 -1
  124. package/dist/src/infrastructure/ui/views/summary/Summary.style.js +72 -70
  125. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +3 -2
  126. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.d.ts +1 -1
  127. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.js +20 -18
  128. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +9 -5
  129. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +1 -1
  130. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +15 -13
  131. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +11 -2
  132. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +1 -1
  133. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +29 -27
  134. package/dist/src/version.d.ts +1 -1
  135. package/dist/src/version.js +1 -1
  136. package/package.json +3 -4
  137. package/src/ExpoRoot.tsx +13 -8
  138. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +8 -6
  139. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +4 -2
  140. package/src/infrastructure/ui/components/atoms/price/Price.style.ts +18 -16
  141. package/src/infrastructure/ui/components/atoms/price/Price.tsx +4 -2
  142. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +31 -31
  143. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +4 -2
  144. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.ts +11 -9
  145. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +4 -2
  146. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.ts +19 -13
  147. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +4 -2
  148. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.ts +15 -5
  149. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.tsx +5 -6
  150. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +26 -24
  151. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +3 -1
  152. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.ts +11 -9
  153. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +4 -2
  154. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.ts +13 -11
  155. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +4 -2
  156. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.ts +24 -18
  157. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +4 -2
  158. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.ts +8 -6
  159. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +3 -1
  160. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.ts +14 -12
  161. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +6 -4
  162. package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.ts +19 -13
  163. package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +5 -3
  164. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.ts +8 -4
  165. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +4 -2
  166. package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.ts +12 -10
  167. package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +4 -2
  168. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +31 -29
  169. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +3 -1
  170. package/src/infrastructure/ui/components/templates/header/Header.style.ts +18 -16
  171. package/src/infrastructure/ui/components/templates/header/Header.tsx +11 -7
  172. package/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.ts +10 -8
  173. package/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.tsx +7 -3
  174. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.ts +10 -8
  175. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +4 -2
  176. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.ts +10 -8
  177. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +4 -2
  178. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.ts +11 -9
  179. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +4 -2
  180. package/src/infrastructure/ui/views/App.tsx +12 -10
  181. package/src/infrastructure/ui/views/checkout/Checkout.style.ts +63 -61
  182. package/src/infrastructure/ui/views/checkout/Checkout.tsx +4 -1
  183. package/src/infrastructure/ui/views/feedback/Feedback.style.ts +13 -11
  184. package/src/infrastructure/ui/views/feedback/Feedback.tsx +5 -2
  185. package/src/infrastructure/ui/views/item/Item.style.ts +21 -19
  186. package/src/infrastructure/ui/views/item/Item.tsx +6 -2
  187. package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.ts +11 -9
  188. package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +5 -2
  189. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.ts +24 -22
  190. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +4 -2
  191. package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.ts +28 -26
  192. package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +3 -1
  193. package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +8 -0
  194. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +20 -18
  195. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +5 -2
  196. package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.ts +37 -29
  197. package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.tsx +13 -6
  198. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.ts +11 -9
  199. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +4 -2
  200. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.ts +25 -18
  201. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +6 -6
  202. package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +8 -0
  203. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.ts +18 -15
  204. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +4 -2
  205. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +8 -0
  206. package/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.ts +19 -17
  207. package/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.tsx +4 -2
  208. package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.ts +15 -8
  209. package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.tsx +7 -6
  210. package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.ts +17 -15
  211. package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.tsx +4 -2
  212. package/src/infrastructure/ui/views/return/components/price/Price.style.ts +18 -16
  213. package/src/infrastructure/ui/views/return/components/price/Price.tsx +4 -2
  214. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.ts +33 -31
  215. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +4 -2
  216. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +50 -48
  217. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +4 -3
  218. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +52 -50
  219. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +4 -2
  220. package/src/infrastructure/ui/views/summary/Summary.style.ts +84 -82
  221. package/src/infrastructure/ui/views/summary/Summary.tsx +6 -3
  222. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.ts +20 -18
  223. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +4 -2
  224. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.ts +15 -13
  225. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +15 -10
  226. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.ts +29 -27
  227. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +14 -3
@@ -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 = StyleSheet.create({
9
- header: {
10
- alignItems: "center",
11
- backgroundColor: colorBgBase,
12
- flexDirection: "row",
13
- flexGrow: 0,
14
- flexWrap: "nowrap",
15
- height: HEADER_HEIGHT,
16
- justifyContent: "space-between",
17
- overflow: "visible",
18
- paddingHorizontal: space2,
19
- width: "100%",
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
- <View {...props} style={[style.header, customStyle]}>
9
- {children}
10
- </View>
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 { space10 } = theme();
4
+ const style = () => {
5
+ const { space10 } = theme();
5
6
 
6
- const style = StyleSheet.create({
7
- buttonIconPlaceholder: {
8
- flexGrow: 0,
9
- height: space10,
10
- width: space10,
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 = () => <View style={style.buttonIconPlaceholder} />;
5
+ const ButtonIconPlaceholder: FC = () => {
6
+ const style = useMemo(() => buttonIconPlaceholderStyle(), []);
7
+
8
+ return <View style={style.buttonIconPlaceholder} />;
9
+ };
6
10
 
7
11
  export { ButtonIconPlaceholder };
@@ -1,14 +1,16 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { space10 } = theme();
4
+ const style = () => {
5
+ const { space10 } = theme();
5
6
 
6
- const style = StyleSheet.create({
7
- button: {
8
- alignSelf: "auto",
9
- height: space10,
10
- width: space10,
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,10 @@
1
- import React, { FC } from "react";
1
+ import React, { FC, useMemo } from "react";
2
2
  import { ButtonIcon, Text } from "@lookiero/aurora";
3
3
  import { useI18nMessage } from "@lookiero/i18n-react";
4
4
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
5
5
  import { Header } from "../Header";
6
6
  import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
7
- import { style } from "./CheckoutHeader.style";
7
+ import { style as checkoutHeader } from "./CheckoutHeader.style";
8
8
 
9
9
  interface CheckoutHeaderProps {
10
10
  readonly onBack?: () => void;
@@ -13,6 +13,8 @@ interface CheckoutHeaderProps {
13
13
  const CheckoutHeader: FC<CheckoutHeaderProps> = ({ onBack }) => {
14
14
  const title = useI18nMessage({ domain: DOMAIN, id: I18nMessages.HEADER_COMPLETE_CHECKOUT_TITLE });
15
15
 
16
+ const style = useMemo(() => checkoutHeader(), []);
17
+
16
18
  return (
17
19
  <Header testID="checkout-header">
18
20
  <ButtonIcon name="arrow_left" style={style.button} testID="arrow-left-button-icon" onPress={onBack} />
@@ -1,14 +1,16 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { space10 } = theme();
4
+ const style = () => {
5
+ const { space10 } = theme();
5
6
 
6
- const style = StyleSheet.create({
7
- button: {
8
- alignSelf: "auto",
9
- height: space10,
10
- width: space10,
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,10 @@
1
- import React, { FC } from "react";
1
+ import React, { FC, useMemo } from "react";
2
2
  import { ButtonIcon, Text } from "@lookiero/aurora";
3
3
  import { useI18nMessage } from "@lookiero/i18n-react";
4
4
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
5
5
  import { Header } from "../Header";
6
6
  import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
7
- import { style } from "./ItemDetailHeader.style";
7
+ import { style as itemDetailHeaderStyle } from "./ItemDetailHeader.style";
8
8
 
9
9
  interface ItemDetailHeaderProps {
10
10
  readonly onBack: () => void;
@@ -12,6 +12,8 @@ interface ItemDetailHeaderProps {
12
12
  const ItemDetailHeader: FC<ItemDetailHeaderProps> = ({ onBack }) => {
13
13
  const title = useI18nMessage({ domain: DOMAIN, id: I18nMessages.HEADER_CHECKOUT_TITLE });
14
14
 
15
+ const style = useMemo(() => itemDetailHeaderStyle(), []);
16
+
15
17
  return (
16
18
  <Header testID="item-detail-header">
17
19
  <ButtonIconPlaceholder />
@@ -1,14 +1,16 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { space10 } = theme();
4
+ const style = () => {
5
+ const { space10 } = theme();
5
6
 
6
- const style = StyleSheet.create({
7
- button: {
8
- alignSelf: "auto",
9
- height: space10,
10
- width: space10,
11
- },
12
- });
7
+ return StyleSheet.create({
8
+ button: {
9
+ alignSelf: "auto",
10
+ height: space10,
11
+ width: space10,
12
+ },
13
+ });
14
+ };
13
15
 
14
- export default style;
16
+ export { style };
@@ -1,4 +1,4 @@
1
- import React, { FC, useCallback } from "react";
1
+ import React, { FC, useCallback, useMemo } from "react";
2
2
  import { StyleProp, ViewStyle } from "react-native";
3
3
  import { generatePath, useNavigate } from "react-router-native";
4
4
  import { ButtonIcon, Text } from "@lookiero/aurora";
@@ -9,7 +9,7 @@ import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
9
9
  import { Routes } from "../../../../routing/routes";
10
10
  import { Header } from "../Header";
11
11
  import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
12
- import style from "./ItemHeader.style";
12
+ import { style as itemHeaderStyle } from "./ItemHeader.style";
13
13
 
14
14
  interface OnNextItemFunctionArgs {
15
15
  readonly from: string;
@@ -35,6 +35,8 @@ interface ItemHeaderProps {
35
35
  }
36
36
 
37
37
  const ItemHeader: FC<ItemHeaderProps> = ({ items, item, onNext, onPrevious }) => {
38
+ const style = useMemo(() => itemHeaderStyle(), []);
39
+
38
40
  const title = useI18nMessage({ domain: DOMAIN, id: I18nMessages.HEADER_CHECKOUT_TITLE });
39
41
  const itemIndex = items.indexOf(item);
40
42
  const isFirstItem = itemIndex === 0;
@@ -7,19 +7,21 @@ import { theme } from "@lookiero/sty-psp-ui";
7
7
  import { MESSAGING_CONTEXT_ID } from "../../delivery/baseBootstrap";
8
8
  import { DOMAIN } from "../i18n/i18n";
9
9
 
10
- const { colorBgBase } = theme();
11
-
12
10
  interface AppProps {
13
11
  readonly children: JSX.Element;
14
12
  }
15
13
 
16
- const App: FC<AppProps> = ({ children }) => (
17
- <SafeAreaProvider>
18
- <StatusBar backgroundColor={colorBgBase} barStyle="dark-content" translucent />
19
- <Notifications contextId={MESSAGING_CONTEXT_ID} domain={DOMAIN} portalHostName="Checkout" />
20
- <PortalHost name="Checkout" />
21
- {children}
22
- </SafeAreaProvider>
23
- );
14
+ const App: FC<AppProps> = ({ children }) => {
15
+ const { colorBgBase } = theme();
16
+
17
+ return (
18
+ <SafeAreaProvider>
19
+ <StatusBar backgroundColor={colorBgBase} barStyle="dark-content" translucent />
20
+ <Notifications contextId={MESSAGING_CONTEXT_ID} domain={DOMAIN} portalHostName="Checkout" />
21
+ <PortalHost name="Checkout" />
22
+ {children}
23
+ </SafeAreaProvider>
24
+ );
25
+ };
24
26
 
25
27
  export { App };
@@ -2,67 +2,69 @@ import { StyleSheet, Platform } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
  import { HEADER_HEIGHT } from "../../components/templates/header/Header.style";
4
4
 
5
- const { borderRadius4, colorBgPrimaryLight, colorBgBase, space2, space3, space4, space6, space12, space16 } = theme();
5
+ const style = () => {
6
+ const { borderRadius4, colorBgPrimaryLight, colorBgBase, space2, space3, space4, space6, space12, space16 } = theme();
6
7
 
7
- const style = StyleSheet.create({
8
- contentWrapper: {
9
- backgroundColor: colorBgBase,
10
- flexGrow: 0,
11
- paddingHorizontal: space6,
12
- paddingVertical: space6,
13
- },
14
- desktopContentWrapper: {
15
- borderRadius: borderRadius4,
16
- paddingVertical: space12,
17
- },
18
- desktopLayoutSpacing: {
19
- paddingVertical: space12,
20
- },
21
- desktopListSpacing: {
22
- paddingRight: space16,
23
- },
24
- desktopResume: {
25
- borderRadius: borderRadius4,
26
- },
27
- header: {
28
- height: HEADER_HEIGHT,
29
- },
30
- paymentSelector: {
31
- marginTop: space6,
32
- },
33
- paymentSelectorNL: {
34
- marginBottom: space6,
35
- },
36
- princingWrapper: {
37
- padding: space6,
38
- },
39
- princingWrapperSmall: {
40
- backgroundColor: colorBgPrimaryLight,
41
- paddingBottom: space2,
42
- },
43
- resume: {
44
- overflow: "hidden",
45
- backgroundColor: colorBgBase,
46
- ...Platform.select({
47
- web: {
48
- position: "sticky",
49
- top: space12,
50
- alignSelf: "flex-start",
51
- },
52
- }),
53
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
54
- } as any,
55
- scrollView: {
56
- backgroundColor: colorBgPrimaryLight,
57
- flex: 1,
58
- },
59
- sticky: {
60
- paddingBottom: space4,
61
- paddingTop: space3,
62
- },
63
- title: {
64
- marginBottom: space4,
65
- },
66
- });
8
+ return StyleSheet.create({
9
+ contentWrapper: {
10
+ backgroundColor: colorBgBase,
11
+ flexGrow: 0,
12
+ paddingHorizontal: space6,
13
+ paddingVertical: space6,
14
+ },
15
+ desktopContentWrapper: {
16
+ borderRadius: borderRadius4,
17
+ paddingVertical: space12,
18
+ },
19
+ desktopLayoutSpacing: {
20
+ paddingVertical: space12,
21
+ },
22
+ desktopListSpacing: {
23
+ paddingRight: space16,
24
+ },
25
+ desktopResume: {
26
+ borderRadius: borderRadius4,
27
+ },
28
+ header: {
29
+ height: HEADER_HEIGHT,
30
+ },
31
+ paymentSelector: {
32
+ marginTop: space6,
33
+ },
34
+ paymentSelectorNL: {
35
+ marginBottom: space6,
36
+ },
37
+ princingWrapper: {
38
+ padding: space6,
39
+ },
40
+ princingWrapperSmall: {
41
+ backgroundColor: colorBgPrimaryLight,
42
+ paddingBottom: space2,
43
+ },
44
+ resume: {
45
+ overflow: "hidden",
46
+ backgroundColor: colorBgBase,
47
+ ...Platform.select({
48
+ web: {
49
+ position: "sticky",
50
+ top: space12,
51
+ alignSelf: "flex-start",
52
+ },
53
+ }),
54
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
55
+ } as any,
56
+ scrollView: {
57
+ backgroundColor: colorBgPrimaryLight,
58
+ flex: 1,
59
+ },
60
+ sticky: {
61
+ paddingBottom: space4,
62
+ paddingTop: space3,
63
+ },
64
+ title: {
65
+ marginBottom: space4,
66
+ },
67
+ });
68
+ };
67
69
 
68
70
  export { style };
@@ -23,7 +23,7 @@ import { DOMAIN, I18nMessages } from "../../i18n/i18n";
23
23
  import { Routes } from "../../routing/routes";
24
24
  import { ProductVariant } from "../shared/components/productVariant/ProductVariant";
25
25
  import { Pricing } from "../summary/components/pricing/Pricing";
26
- import { style } from "./Checkout.style";
26
+ import { style as checkoutStyle } from "./Checkout.style";
27
27
  import { DeliveryBanner } from "./components/deliveryBanner/DeliveryBanner";
28
28
  import { PaymentInstrument } from "./components/paymentInstrument/PaymentInstrument";
29
29
 
@@ -48,6 +48,9 @@ const Checkout: FC<CheckoutProps> = ({
48
48
  customer: { customerId, country, segment },
49
49
  basePath,
50
50
  } = useStaticInfo();
51
+
52
+ const style = useMemo(() => checkoutStyle(), []);
53
+
51
54
  const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.CHECKOUT_TITLE });
52
55
  const submitButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.CHECKOUT_PAY_BUTTON });
53
56
  const { screen } = useDevice();
@@ -1,17 +1,19 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { space3, space6, space8 } = theme();
4
+ const style = () => {
5
+ const { space3, space6, space8 } = theme();
5
6
 
6
- const style = StyleSheet.create({
7
- container: {
8
- justifyContent: "flex-start",
9
- paddingHorizontal: space6,
10
- paddingVertical: space8,
11
- },
12
- containerDesktop: {
13
- paddingHorizontal: space3,
14
- },
15
- });
7
+ return StyleSheet.create({
8
+ container: {
9
+ justifyContent: "flex-start",
10
+ paddingHorizontal: space6,
11
+ paddingVertical: space8,
12
+ },
13
+ containerDesktop: {
14
+ paddingHorizontal: space3,
15
+ },
16
+ });
17
+ };
16
18
 
17
19
  export { style };
@@ -1,4 +1,4 @@
1
- import React, { FC, useCallback, useEffect, useRef } from "react";
1
+ import React, { FC, useCallback, useEffect, useMemo, useRef } from "react";
2
2
  import { Spinner } from "@lookiero/aurora";
3
3
  import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
4
4
  import { useLogger } from "@lookiero/sty-psp-logging";
@@ -15,7 +15,7 @@ import { useTrackPressContinue } from "../../../tracking/useTrackPressContinue";
15
15
  import { Body } from "../../components/layouts/body/Body";
16
16
  import { CheckoutQuestionFeedbackProvider } from "../../components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionFeedback";
17
17
  import { useStaticInfo } from "../../hooks/useStaticInfo";
18
- import { style } from "./Feedback.style";
18
+ import { style as feedbackStyle } from "./Feedback.style";
19
19
  import { CheckoutQuestionsForm } from "./components/checkoutQuestionsForm/CheckoutQuestionsForm";
20
20
 
21
21
  interface HandleOnChangedFeedbackFunctionArgs {
@@ -38,6 +38,9 @@ const Feedback: FC<FeedbackProps> = ({ layout: Layout }) => {
38
38
  const {
39
39
  customer: { customerId, country, segment },
40
40
  } = useStaticInfo();
41
+
42
+ const style = useMemo(() => feedbackStyle(), []);
43
+
41
44
  const [checkout, checkoutStatus] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
42
45
  const [checkoutQuestions, checkoutQuestionsStatus] = useListCheckoutQuestionsByCheckoutId({
43
46
  checkoutId: checkout?.id as string,
@@ -2,25 +2,27 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
  import { HEADER_HEIGHT } from "../../components/templates/header/Header.style";
4
4
 
5
- const { colorBgPrimaryLight, space12 } = theme();
5
+ const style = () => {
6
+ const { colorBgPrimaryLight, space12 } = theme();
6
7
 
7
- const style = StyleSheet.create({
8
- fiveItemsDiscountPadding: {
9
- paddingTop: space12,
10
- },
11
- header: {
12
- height: HEADER_HEIGHT,
13
- },
14
- headerWithDoubleHeight: {
15
- height: HEADER_HEIGHT * 2,
16
- },
17
- headerWrapper: {
18
- display: "flex",
19
- flexDirection: "column",
20
- },
21
- safeAreaView: {
22
- backgroundColor: colorBgPrimaryLight,
23
- },
24
- });
8
+ return StyleSheet.create({
9
+ fiveItemsDiscountPadding: {
10
+ paddingTop: space12,
11
+ },
12
+ header: {
13
+ height: HEADER_HEIGHT,
14
+ },
15
+ headerWithDoubleHeight: {
16
+ height: HEADER_HEIGHT * 2,
17
+ },
18
+ headerWrapper: {
19
+ display: "flex",
20
+ flexDirection: "column",
21
+ },
22
+ safeAreaView: {
23
+ backgroundColor: colorBgPrimaryLight,
24
+ },
25
+ });
26
+ };
25
27
 
26
28
  export { style };
@@ -28,7 +28,7 @@ import { ItemDetailHeader } from "../../components/templates/header/itemDetailHe
28
28
  import { ItemHeader } from "../../components/templates/header/itemHeader/ItemHeader";
29
29
  import { useStaticInfo } from "../../hooks/useStaticInfo";
30
30
  import { Routes } from "../../routing/routes";
31
- import { style } from "./Item.style";
31
+ import { style as itemStyle } from "./Item.style";
32
32
  import {
33
33
  CheckoutItemWithCustomerDecission,
34
34
  ItemWithCustomerDecission,
@@ -59,12 +59,15 @@ interface ItemProps {
59
59
 
60
60
  const Item: FC<ItemProps> = ({ layout: Layout }) => {
61
61
  const logger = useLogger();
62
- const screenSize = useScreenSize();
63
62
  const navigate = useNavigate();
64
63
  const {
65
64
  customer: { customerId, country, segment },
66
65
  basePath,
67
66
  } = useStaticInfo();
67
+
68
+ const style = useMemo(() => itemStyle(), []);
69
+
70
+ const screenSize = useScreenSize();
68
71
  const isDesktopScreen = screenSize !== "S";
69
72
 
70
73
  const { id } = useParams();
@@ -194,6 +197,7 @@ const Item: FC<ItemProps> = ({ layout: Layout }) => {
194
197
  handleOnNext,
195
198
  handleOnPrevious,
196
199
  itemDetailRouteMatch,
200
+ style.headerWrapper,
197
201
  ],
198
202
  );
199
203
 
@@ -1,15 +1,17 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { space4, space6 } = theme();
4
+ const style = () => {
5
+ const { space4, space6 } = theme();
5
6
 
6
- const style = StyleSheet.create({
7
- container: {
8
- marginBottom: space4,
9
- },
10
- smallContainer: {
11
- marginHorizontal: space6,
12
- },
13
- });
7
+ return StyleSheet.create({
8
+ container: {
9
+ marginBottom: space4,
10
+ },
11
+ smallContainer: {
12
+ marginHorizontal: space6,
13
+ },
14
+ });
15
+ };
14
16
 
15
17
  export { style };
@@ -1,11 +1,11 @@
1
- import React, { FC } from "react";
1
+ import React, { FC, useMemo } from "react";
2
2
  import { Pressable, View } from "react-native";
3
3
  import { InfoBox, Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
5
  import { useScreenSize } from "@lookiero/sty-psp-ui";
6
6
  import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
7
7
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
8
- import { style } from "./CustomerDecissionBanner.style";
8
+ import { style as customerDecissionBannerStyle } from "./CustomerDecissionBanner.style";
9
9
 
10
10
  type CustomerDecissionBannerStatus = Exclude<CheckoutItemStatus, CheckoutItemStatus.INITIAL>;
11
11
 
@@ -22,9 +22,12 @@ interface CustomerDecissionBannerProps {
22
22
  const CustomerDecissionBanner: FC<CustomerDecissionBannerProps> = ({ checkoutItemStatus, onPress }) => {
23
23
  const decissionText = useI18nMessage({ domain: DOMAIN, id: i18nMessageForCheckoutItemStatus[checkoutItemStatus] });
24
24
  const bannerButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_BANNER_BUTTON });
25
+
25
26
  const screenSize = useScreenSize();
26
27
  const isSmallScreen = screenSize === "S";
27
28
 
29
+ const style = useMemo(() => customerDecissionBannerStyle(), []);
30
+
28
31
  return (
29
32
  <View style={[style.container, isSmallScreen ? style.smallContainer : null]}>
30
33
  <InfoBox text={decissionText}>