@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.
Files changed (242) hide show
  1. package/dist/src/Expo.js +2 -8
  2. package/dist/src/ExpoRoot.d.ts +1 -5
  3. package/dist/src/ExpoRoot.js +7 -6
  4. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +3 -2
  5. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.d.ts +1 -1
  6. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +8 -6
  7. package/dist/src/infrastructure/ui/components/atoms/price/Price.js +3 -2
  8. package/dist/src/infrastructure/ui/components/atoms/price/Price.style.d.ts +1 -1
  9. package/dist/src/infrastructure/ui/components/atoms/price/Price.style.js +18 -16
  10. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +7 -5
  11. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +4 -1
  12. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +26 -22
  13. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +3 -2
  14. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.d.ts +1 -1
  15. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.js +11 -9
  16. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +3 -2
  17. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.d.ts +3 -3
  18. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.js +18 -13
  19. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +4 -5
  20. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.d.ts +3 -1
  21. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +14 -5
  22. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.js +5 -5
  23. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.js +5 -5
  24. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.js +5 -5
  25. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +2 -1
  26. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +1 -1
  27. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +25 -23
  28. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +5 -3
  29. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +1 -1
  30. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +11 -9
  31. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.d.ts +1 -2
  32. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +3 -2
  33. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.d.ts +1 -1
  34. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.js +13 -11
  35. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +5 -5
  36. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +3 -3
  37. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +23 -18
  38. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +4 -3
  39. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.d.ts +4 -1
  40. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.js +11 -6
  41. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.d.ts +2 -2
  42. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +5 -4
  43. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.d.ts +2 -1
  44. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.js +15 -12
  45. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +4 -3
  46. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +3 -3
  47. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +18 -13
  48. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +10 -5
  49. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.d.ts +10 -2
  50. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.js +16 -4
  51. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +3 -2
  52. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +1 -1
  53. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +12 -10
  54. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +3 -2
  55. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +1 -1
  56. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +30 -28
  57. package/dist/src/infrastructure/ui/components/templates/header/Header.js +6 -3
  58. package/dist/src/infrastructure/ui/components/templates/header/Header.style.d.ts +1 -1
  59. package/dist/src/infrastructure/ui/components/templates/header/Header.style.js +17 -15
  60. package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.js +6 -3
  61. package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.d.ts +1 -1
  62. package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.js +10 -8
  63. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +6 -4
  64. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.d.ts +1 -1
  65. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.js +10 -8
  66. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +6 -4
  67. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.d.ts +1 -1
  68. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.js +10 -8
  69. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +7 -5
  70. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.d.ts +2 -2
  71. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.js +11 -9
  72. package/dist/src/infrastructure/ui/views/App.js +8 -6
  73. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +12 -10
  74. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +1 -1
  75. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +63 -61
  76. package/dist/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +4 -3
  77. package/dist/src/infrastructure/ui/views/feedback/Feedback.js +3 -2
  78. package/dist/src/infrastructure/ui/views/feedback/Feedback.style.d.ts +1 -1
  79. package/dist/src/infrastructure/ui/views/feedback/Feedback.style.js +13 -11
  80. package/dist/src/infrastructure/ui/views/item/Item.js +4 -2
  81. package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +1 -1
  82. package/dist/src/infrastructure/ui/views/item/Item.style.js +21 -19
  83. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +3 -2
  84. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +1 -1
  85. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +11 -9
  86. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +7 -6
  87. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +3 -1
  88. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +26 -22
  89. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +2 -1
  90. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.d.ts +1 -1
  91. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.js +28 -26
  92. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +7 -6
  93. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +6 -3
  94. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +23 -18
  95. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +13 -6
  96. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +2 -1
  97. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +34 -28
  98. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +5 -3
  99. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +1 -1
  100. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +11 -9
  101. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +7 -7
  102. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.d.ts +5 -1
  103. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.js +27 -18
  104. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +3 -2
  105. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +1 -1
  106. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +17 -15
  107. package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.js +3 -2
  108. package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.d.ts +1 -1
  109. package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.js +19 -17
  110. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +6 -5
  111. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.d.ts +2 -1
  112. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.js +13 -7
  113. package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.js +3 -2
  114. package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.d.ts +1 -1
  115. package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.js +17 -15
  116. package/dist/src/infrastructure/ui/views/return/components/price/Price.js +3 -2
  117. package/dist/src/infrastructure/ui/views/return/components/price/Price.style.d.ts +1 -1
  118. package/dist/src/infrastructure/ui/views/return/components/price/Price.style.js +18 -16
  119. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +10 -9
  120. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.d.ts +4 -1
  121. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.js +35 -30
  122. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +12 -8
  123. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +1 -1
  124. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +50 -48
  125. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +7 -6
  126. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.d.ts +4 -1
  127. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +43 -38
  128. package/dist/src/infrastructure/ui/views/summary/Summary.js +12 -10
  129. package/dist/src/infrastructure/ui/views/summary/Summary.style.d.ts +1 -1
  130. package/dist/src/infrastructure/ui/views/summary/Summary.style.js +72 -70
  131. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +5 -3
  132. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.d.ts +1 -1
  133. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.js +20 -18
  134. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +9 -5
  135. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +1 -1
  136. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +15 -13
  137. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +19 -7
  138. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +1 -1
  139. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +29 -27
  140. package/dist/src/version.d.ts +1 -1
  141. package/dist/src/version.js +1 -1
  142. package/package.json +3 -3
  143. package/src/Expo.tsx +2 -10
  144. package/src/ExpoRoot.tsx +8 -10
  145. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +8 -6
  146. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +4 -2
  147. package/src/infrastructure/ui/components/atoms/price/Price.style.ts +18 -16
  148. package/src/infrastructure/ui/components/atoms/price/Price.tsx +4 -2
  149. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +34 -31
  150. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +9 -5
  151. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.ts +11 -9
  152. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +4 -2
  153. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.ts +19 -13
  154. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +4 -2
  155. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.ts +16 -5
  156. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.tsx +6 -6
  157. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.tsx +5 -5
  158. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.tsx +5 -5
  159. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.tsx +5 -5
  160. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +26 -24
  161. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +3 -1
  162. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.ts +11 -9
  163. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +6 -3
  164. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.ts +13 -11
  165. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +4 -2
  166. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.ts +24 -18
  167. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +6 -5
  168. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.ts +11 -6
  169. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +5 -3
  170. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.ts +15 -12
  171. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +8 -6
  172. package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.ts +19 -13
  173. package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +5 -3
  174. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.ts +16 -4
  175. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +24 -14
  176. package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.ts +12 -10
  177. package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +4 -2
  178. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +31 -29
  179. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +4 -2
  180. package/src/infrastructure/ui/components/templates/header/Header.style.ts +18 -16
  181. package/src/infrastructure/ui/components/templates/header/Header.tsx +11 -7
  182. package/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.ts +10 -8
  183. package/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.tsx +7 -3
  184. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.ts +10 -8
  185. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +7 -4
  186. package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +31 -80
  187. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.ts +10 -8
  188. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +7 -4
  189. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +31 -80
  190. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.ts +11 -9
  191. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +8 -5
  192. package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +62 -160
  193. package/src/infrastructure/ui/views/App.tsx +12 -10
  194. package/src/infrastructure/ui/views/checkout/Checkout.style.ts +63 -61
  195. package/src/infrastructure/ui/views/checkout/Checkout.tsx +16 -12
  196. package/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.tsx +4 -3
  197. package/src/infrastructure/ui/views/feedback/Feedback.style.ts +13 -11
  198. package/src/infrastructure/ui/views/feedback/Feedback.tsx +5 -2
  199. package/src/infrastructure/ui/views/item/Item.style.ts +21 -19
  200. package/src/infrastructure/ui/views/item/Item.tsx +6 -2
  201. package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.ts +11 -9
  202. package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +5 -2
  203. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.ts +26 -22
  204. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +8 -6
  205. package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.ts +28 -26
  206. package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +3 -1
  207. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +23 -18
  208. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +9 -6
  209. package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.ts +37 -29
  210. package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.tsx +13 -6
  211. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.ts +11 -9
  212. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +6 -3
  213. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.ts +29 -18
  214. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +8 -9
  215. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.ts +18 -15
  216. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +4 -2
  217. package/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.ts +19 -17
  218. package/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.tsx +4 -2
  219. package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.ts +15 -8
  220. package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.tsx +7 -6
  221. package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.ts +17 -15
  222. package/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.tsx +4 -2
  223. package/src/infrastructure/ui/views/return/components/price/Price.style.ts +18 -16
  224. package/src/infrastructure/ui/views/return/components/price/Price.tsx +4 -2
  225. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.ts +36 -31
  226. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +11 -9
  227. package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +11 -12
  228. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +50 -48
  229. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +13 -10
  230. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +56 -50
  231. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +8 -6
  232. package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +18 -0
  233. package/src/infrastructure/ui/views/summary/Summary.style.ts +84 -82
  234. package/src/infrastructure/ui/views/summary/Summary.tsx +17 -13
  235. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.ts +20 -18
  236. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +6 -3
  237. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +22 -6
  238. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.ts +15 -13
  239. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +15 -10
  240. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.ts +29 -27
  241. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +22 -8
  242. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +36 -0
@@ -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}>
@@ -1,28 +1,32 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { space6, space8 } = theme();
4
+ const style = () => {
5
+ const { space6, space8 } = theme();
5
6
 
6
- const style = StyleSheet.create({
7
- button: {
8
- flex: 0,
9
- },
10
- buttonText: {
11
- width: "100%",
12
- },
13
- confirmButton: {
14
- marginTop: space8,
15
- },
16
- description: {
17
- marginVertical: space8,
18
- width: "100%",
19
- },
20
- modalContent: {
21
- paddingHorizontal: space6,
22
- },
23
- title: {
24
- width: "100%",
25
- },
26
- });
7
+ return StyleSheet.create({
8
+ button: {
9
+ flex: 0,
10
+ },
11
+ buttonText: {
12
+ textAlign: "center",
13
+ width: "100%",
14
+ },
15
+ confirmButton: {
16
+ marginTop: space8,
17
+ },
18
+ description: {
19
+ marginVertical: space8,
20
+ width: "100%",
21
+ },
22
+ modalContent: {
23
+ paddingHorizontal: space6,
24
+ },
25
+ title: {
26
+ textAlign: "center",
27
+ width: "100%",
28
+ },
29
+ });
30
+ };
27
31
 
28
32
  export { style };
@@ -1,10 +1,10 @@
1
- import React, { FC } from "react";
1
+ import React, { FC, useMemo } from "react";
2
2
  import { View } from "react-native";
3
- import { ALIGN, Button, BUTTON_VARIANT, Text } from "@lookiero/aurora";
3
+ import { Button, BUTTON_VARIANT, Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
5
  import { Modal } from "@lookiero/sty-psp-ui";
6
6
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
7
- import { style } from "./GetOutOfCheckoutModal.style";
7
+ import { style as getOutOfCheckoutModalStyle } from "./GetOutOfCheckoutModal.style";
8
8
 
9
9
  interface GetOutOfCheckoutModalProps {
10
10
  readonly visible: boolean;
@@ -23,22 +23,24 @@ const GetOutOfCheckoutModal: FC<GetOutOfCheckoutModalProps> = ({ visible, onDism
23
23
  id: I18nMessages.GET_OUT_OF_CHECKOUT_MODAL_CONFIRM_BUTTON,
24
24
  });
25
25
 
26
+ const style = useMemo(() => getOutOfCheckoutModalStyle(), []);
27
+
26
28
  return (
27
29
  <Modal portalHostName="Checkout" visible={visible} onClose={onDismiss}>
28
30
  <View style={style.modalContent}>
29
- <Text align={ALIGN.CENTER} level={1} style={style.title}>
31
+ <Text level={1} style={style.title}>
30
32
  {titleText}
31
33
  </Text>
32
34
  <Text level={3} style={style.description}>
33
35
  {descriptionText}
34
36
  </Text>
35
37
  <Button style={style.button} onPress={onDismiss}>
36
- <Text align={ALIGN.CENTER} level={3} selectable={false} style={style.buttonText} action upperCase>
38
+ <Text level={3} selectable={false} style={style.buttonText} action upperCase>
37
39
  {dismissButtonText}
38
40
  </Text>
39
41
  </Button>
40
42
  <Button style={[style.button, style.confirmButton]} variant={BUTTON_VARIANT.SECONDARY} onPress={onConfirm}>
41
- <Text align={ALIGN.CENTER} level={3} selectable={false} style={style.buttonText} action upperCase>
43
+ <Text level={3} selectable={false} style={style.buttonText} action upperCase>
42
44
  {confirmButtonText}
43
45
  </Text>
44
46
  </Button>
@@ -1,32 +1,34 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { colorTextDisabled, space3, space2, space4, space6 } = theme();
4
+ const style = () => {
5
+ const { colorTextDisabled, space3, space2, space4, space6 } = theme();
5
6
 
6
- const style = StyleSheet.create({
7
- actionsRow: {
8
- alignItems: "center",
9
- flexDirection: "row",
10
- marginBottom: space4,
11
- },
12
- inputDisabled: {
13
- color: colorTextDisabled,
14
- },
15
- returnButton: {
16
- flex: 1,
17
- },
18
- row: {
19
- paddingHorizontal: space3,
20
- },
21
- sizeSelector: {
22
- flex: 1,
23
- marginRight: space2,
24
- },
25
- sticky: {
26
- paddingBottom: space6,
27
- paddingHorizontal: 0,
28
- paddingTop: space6,
29
- },
30
- });
7
+ return StyleSheet.create({
8
+ actionsRow: {
9
+ alignItems: "center",
10
+ flexDirection: "row",
11
+ marginBottom: space4,
12
+ },
13
+ inputDisabled: {
14
+ color: colorTextDisabled,
15
+ },
16
+ returnButton: {
17
+ flex: 1,
18
+ },
19
+ row: {
20
+ paddingHorizontal: space3,
21
+ },
22
+ sizeSelector: {
23
+ flex: 1,
24
+ marginRight: space2,
25
+ },
26
+ sticky: {
27
+ paddingBottom: space6,
28
+ paddingHorizontal: 0,
29
+ paddingTop: space6,
30
+ },
31
+ });
32
+ };
31
33
 
32
34
  export { style };
@@ -9,7 +9,7 @@ import { size } from "../../../../../../projection/size/size";
9
9
  import { Body } from "../../../../components/layouts/body/Body";
10
10
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
11
11
  import { SelectModal } from "../selectModal/SelectModal";
12
- import { style } from "./ItemActions.style";
12
+ import { style as itemActionsStyle } from "./ItemActions.style";
13
13
 
14
14
  interface ItemActionsProps {
15
15
  readonly productVariants?: ProductVariantProjection[];
@@ -33,6 +33,8 @@ const ItemActions: FC<ItemActionsProps> = ({
33
33
  }) => {
34
34
  const [modalVisible, setModalVisible] = useState(false);
35
35
 
36
+ const style = useMemo(() => itemActionsStyle(), []);
37
+
36
38
  const changeSizeButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_CHANGE_SIZE_BUTTON });
37
39
  const keepButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_KEEP_BUTTON });
38
40
  const returnButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_RETURN_BUTTON });
@@ -1,24 +1,29 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { space1, space4, space6 } = theme();
4
+ const style = () => {
5
+ const { colorTextMedium, space1, space4, space6 } = theme();
5
6
 
6
- const style = StyleSheet.create({
7
- brand: {
8
- flex: 1,
9
- gap: space1,
10
- },
11
- container: {
12
- width: "100%",
13
- },
14
- info: {
15
- display: "flex",
16
- flexDirection: "row",
17
- marginBottom: space4,
18
- },
19
- smallContainer: {
20
- paddingHorizontal: space6,
21
- },
22
- });
7
+ return StyleSheet.create({
8
+ brand: {
9
+ color: colorTextMedium,
10
+ },
11
+ container: {
12
+ width: "100%",
13
+ },
14
+ content: {
15
+ flex: 1,
16
+ gap: space1,
17
+ },
18
+ info: {
19
+ display: "flex",
20
+ flexDirection: "row",
21
+ marginBottom: space4,
22
+ },
23
+ smallContainer: {
24
+ paddingHorizontal: space6,
25
+ },
26
+ });
27
+ };
23
28
 
24
29
  export { style };
@@ -1,6 +1,6 @@
1
- import React, { FC } from "react";
1
+ import React, { FC, useMemo } from "react";
2
2
  import { View } from "react-native";
3
- import { COLOR, Text } from "@lookiero/aurora";
3
+ import { Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
5
  import { Country } from "@lookiero/sty-psp-locale";
6
6
  import { useScreenSize } from "@lookiero/sty-psp-ui";
@@ -8,7 +8,7 @@ import { PriceProjection } from "../../../../../../projection/price/price";
8
8
  import { SizeProjection, size } from "../../../../../../projection/size/size";
9
9
  import { Price } from "../../../../components/atoms/price/Price";
10
10
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
11
- import { style } from "./ProductVariantDescription.style";
11
+ import { style as productVariantDescriptionStyle } from "./ProductVariantDescription.style";
12
12
 
13
13
  interface ProductVariantDescriptionProps {
14
14
  readonly brand: string;
@@ -26,14 +26,17 @@ const ProductVariantDescription: FC<ProductVariantDescriptionProps> = ({
26
26
  }) => {
27
27
  const sizeText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_SIZE });
28
28
  const uniqueText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_UNIQUE });
29
+
29
30
  const screenDevice = useScreenSize();
30
31
  const isDesktopScreen = screenDevice !== "S";
31
32
 
33
+ const style = useMemo(() => productVariantDescriptionStyle(), []);
34
+
32
35
  return (
33
- <View style={[style.container, isDesktopScreen ? null : style.smallContainer]}>
36
+ <View style={[style.container, !isDesktopScreen && style.smallContainer]}>
34
37
  <View style={style.info}>
35
- <View style={style.brand}>
36
- <Text color={COLOR.TEXT_MEDIUM} level={1} detail>
38
+ <View style={style.content}>
39
+ <Text level={1} style={style.brand} detail>
37
40
  {brand}
38
41
  </Text>
39
42
  <Text level={1} detailBold>
@@ -1,36 +1,44 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { borderRadius4, colorBgBase, colorBgPrimaryMediumLight, colorBorderActionSecondary, space4 } = theme();
5
-
6
4
  const PAGINATION_SIZE = 37;
7
5
 
8
- const style = StyleSheet.create({
9
- image: {
10
- flex: 1,
11
- },
12
- largeImage: {
13
- borderRadius: borderRadius4,
14
- },
15
- paginationActiveItemStyle: {
16
- borderColor: colorBorderActionSecondary,
17
- },
18
- paginationImage: {
19
- flex: 1,
20
- },
21
- paginationItemStyle: {
22
- backgroundColor: colorBgBase,
23
- borderColor: colorBgPrimaryMediumLight,
24
- borderRadius: 0,
25
- borderWidth: 1,
26
- height: PAGINATION_SIZE,
27
- width: PAGINATION_SIZE,
28
- },
29
- paginationStyle: {
30
- bottom: 0,
31
- marginTop: space4,
32
- position: "relative",
33
- },
34
- });
6
+ const style = () => {
7
+ const { borderRadius4, colorBgBase, colorBgPrimaryMediumLight, colorBorderActionSecondary, space4, space16 } =
8
+ theme();
9
+
10
+ const styles = StyleSheet.create({
11
+ image: {
12
+ flex: 1,
13
+ },
14
+ largeImage: {
15
+ borderRadius: borderRadius4,
16
+ },
17
+ paginationActiveItemStyle: {
18
+ borderColor: colorBorderActionSecondary,
19
+ },
20
+ paginationImage: {
21
+ flex: 1,
22
+ },
23
+ paginationItemStyle: {
24
+ backgroundColor: colorBgBase,
25
+ borderColor: colorBgPrimaryMediumLight,
26
+ borderRadius: 0,
27
+ borderWidth: 1,
28
+ height: PAGINATION_SIZE,
29
+ width: PAGINATION_SIZE,
30
+ },
31
+ paginationStyle: {
32
+ bottom: 0,
33
+ marginTop: space4,
34
+ position: "relative",
35
+ },
36
+ });
37
+
38
+ return {
39
+ ...styles,
40
+ imageContainerMarginTop: space16,
41
+ };
42
+ };
35
43
 
36
44
  export { style };
@@ -1,4 +1,4 @@
1
- import React, { FC, useCallback, useState } from "react";
1
+ import React, { FC, useCallback, useMemo, useState } from "react";
2
2
  import {
3
3
  AspectRatioView,
4
4
  Bullets,
@@ -6,14 +6,12 @@ import {
6
6
  LazyImage,
7
7
  RenderBulletsFunction,
8
8
  RenderItemFunction,
9
- theme,
10
9
  useScreenSize,
11
10
  } from "@lookiero/sty-psp-ui";
12
11
  import { MediaPerspective, MediaProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
13
12
  import { useMediaImage } from "../../../../hooks/useMediaImage";
14
- import { style } from "./ProductVariantSlider.style";
13
+ import { style as productVariantSliderStyle } from "./ProductVariantSlider.style";
15
14
 
16
- const { space16 } = theme();
17
15
  interface ProductVariantSlider {
18
16
  readonly producVariantMedia: MediaProjection[];
19
17
  readonly onChanged?: (active: number) => void;
@@ -23,6 +21,8 @@ const ProductVariantSlider: FC<ProductVariantSlider> = ({ producVariantMedia, on
23
21
  const screenSize = useScreenSize();
24
22
  const isDesktopScreen = screenSize !== "S";
25
23
 
24
+ const style = useMemo(() => productVariantSliderStyle(), []);
25
+
26
26
  const [activeIndex, setActiveIndex] = useState(0);
27
27
  const handleOnActiveChanged = useCallback(
28
28
  (activeIndex: number) => {
@@ -42,7 +42,7 @@ const ProductVariantSlider: FC<ProductVariantSlider> = ({ producVariantMedia, on
42
42
  aspectRatio={4 / 3}
43
43
  multiplier={isCollageImage && isLastItem ? 2 : 1}
44
44
  style={{
45
- marginTop: isCollageImage && !isDesktopScreen ? space16 : 0,
45
+ marginTop: isCollageImage && !isDesktopScreen ? style.imageContainerMarginTop : 0,
46
46
  alignSelf: isCollageImage ? (isLastItem ? "flex-end" : "flex-start") : undefined,
47
47
  }}
48
48
  >
@@ -56,7 +56,14 @@ const ProductVariantSlider: FC<ProductVariantSlider> = ({ producVariantMedia, on
56
56
  </AspectRatioView>
57
57
  );
58
58
  },
59
- [cdnImageUrl, isDesktopScreen, producVariantMedia.length],
59
+ [
60
+ cdnImageUrl,
61
+ isDesktopScreen,
62
+ producVariantMedia.length,
63
+ style.image,
64
+ style.imageContainerMarginTop,
65
+ style.largeImage,
66
+ ],
60
67
  );
61
68
 
62
69
  const renderBullets: RenderBulletsFunction = useCallback(
@@ -1,15 +1,17 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { space4 } = theme();
4
+ const style = () => {
5
+ const { space4 } = theme();
5
6
 
6
- const style = StyleSheet.create({
7
- titleContainer: {
8
- alignItems: "center",
9
- flexDirection: "row",
10
- justifyContent: "space-between",
11
- marginBottom: space4,
12
- },
13
- });
7
+ return StyleSheet.create({
8
+ titleContainer: {
9
+ alignItems: "center",
10
+ flexDirection: "row",
11
+ justifyContent: "space-between",
12
+ marginBottom: space4,
13
+ },
14
+ });
15
+ };
14
16
 
15
17
  export { style };
@@ -1,7 +1,8 @@
1
- import React, { FC } from "react";
1
+ import React, { FC, useMemo } from "react";
2
2
  import { View } from "react-native";
3
- import { ButtonIcon, Text } from "@lookiero/aurora";
3
+ import { Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
+ import { ButtonIcon } from "@lookiero/sty-psp-ui";
5
6
  import { ReturnQuestionProjection } from "../../../../../../projection/returnQuestion/returnQuestion";
6
7
  import { ReturnQuestionType } from "../../../../../../projection/returnQuestion/returnQuestion.constants";
7
8
  import { ReturnQuestions } from "../../../../components/organisms/returnQuestions/ReturnQuestions";
@@ -12,7 +13,7 @@ import {
12
13
  import { HostDefaultReturnQuestionFeedbackItem } from "../../../../components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem";
13
14
  import { ReturnQuestionFeedbackItem } from "../../../../components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem";
14
15
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
15
- import { style } from "./ReturnQuestionsFeedback.style";
16
+ import { style as returnQuestionsFeedbackStyle } from "./ReturnQuestionsFeedback.style";
16
17
 
17
18
  const returnQuestionItems: ReturnQuestionItems = {
18
19
  [ReturnQuestionType.HOST_DEFAULT]: HostDefaultReturnQuestionFeedbackItem,
@@ -31,6 +32,8 @@ interface ReturnQuestionsFeedbackProps {
31
32
  const ReturnQuestionsFeedback: FC<ReturnQuestionsFeedbackProps> = ({ returnQuestions, onEditFeedback }) => {
32
33
  const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.FEEDBACK_TITLE });
33
34
 
35
+ const style = useMemo(() => returnQuestionsFeedbackStyle(), []);
36
+
34
37
  return (
35
38
  <View>
36
39
  <View style={style.titleContainer}>
@@ -1,24 +1,35 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { borderWidth1, colorBorderInteractive, space1, space5, space6 } = theme();
4
+ const style = () => {
5
+ const { borderWidth1, colorBgPrimaryLight, colorBorderInteractive, colorTextMedium, space1, space5, space6 } =
6
+ theme();
5
7
 
6
- const style = StyleSheet.create({
7
- modalContent: {
8
- paddingBottom: space6,
9
- paddingHorizontal: space6,
10
- },
11
- modalTitle: {
12
- marginBottom: space1,
13
- },
14
- option: {
15
- borderBottomColor: colorBorderInteractive,
16
- borderBottomWidth: borderWidth1,
17
- paddingVertical: space5,
18
- },
19
- optionText: {
20
- lineHeight: space6,
21
- },
22
- });
8
+ const styles = StyleSheet.create({
9
+ modalContent: {
10
+ paddingBottom: space6,
11
+ paddingHorizontal: space6,
12
+ },
13
+ modalTitle: {
14
+ marginBottom: space1,
15
+ },
16
+ option: {
17
+ borderBottomColor: colorBorderInteractive,
18
+ borderBottomWidth: borderWidth1,
19
+ paddingVertical: space5,
20
+ },
21
+ optionText: {
22
+ lineHeight: space6,
23
+ },
24
+ textActive: {
25
+ color: colorTextMedium,
26
+ },
27
+ });
28
+
29
+ return {
30
+ ...styles,
31
+ underlayColor: colorBgPrimaryLight,
32
+ };
33
+ };
23
34
 
24
35
  export { style };