@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,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  button: {
3
3
  alignSelf: "auto";
4
4
  height: number;
@@ -1,11 +1,13 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { space10 } = theme();
4
- const style = StyleSheet.create({
5
- button: {
6
- alignSelf: "auto",
7
- height: space10,
8
- width: space10,
9
- },
10
- });
3
+ const style = () => {
4
+ const { space10 } = theme();
5
+ return StyleSheet.create({
6
+ button: {
7
+ alignSelf: "auto",
8
+ height: space10,
9
+ width: space10,
10
+ },
11
+ });
12
+ };
11
13
  export { style };
@@ -1,4 +1,4 @@
1
- import React, { useCallback } from "react";
1
+ import React, { useCallback, useMemo } from "react";
2
2
  import { generatePath, useNavigate } from "react-router-native";
3
3
  import { ButtonIcon, Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
@@ -7,8 +7,9 @@ import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
7
7
  import { Routes } from "../../../../routing/routes";
8
8
  import { Header } from "../Header";
9
9
  import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
10
- import style from "./ItemHeader.style";
10
+ import { style as itemHeaderStyle } from "./ItemHeader.style";
11
11
  const ItemHeader = ({ items, item, onNext, onPrevious }) => {
12
+ const style = useMemo(() => itemHeaderStyle(), []);
12
13
  const title = useI18nMessage({ domain: DOMAIN, id: I18nMessages.HEADER_CHECKOUT_TITLE });
13
14
  const itemIndex = items.indexOf(item);
14
15
  const isFirstItem = itemIndex === 0;
@@ -1,8 +1,8 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  button: {
3
3
  alignSelf: "auto";
4
4
  height: number;
5
5
  width: number;
6
6
  };
7
7
  };
8
- export default style;
8
+ export { style };
@@ -1,11 +1,13 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { space10 } = theme();
4
- const style = StyleSheet.create({
5
- button: {
6
- alignSelf: "auto",
7
- height: space10,
8
- width: space10,
9
- },
10
- });
11
- export default style;
3
+ const style = () => {
4
+ const { space10 } = theme();
5
+ return StyleSheet.create({
6
+ button: {
7
+ alignSelf: "auto",
8
+ height: space10,
9
+ width: space10,
10
+ },
11
+ });
12
+ };
13
+ export { style };
@@ -6,10 +6,12 @@ import { Notifications } from "@lookiero/sty-psp-notifications";
6
6
  import { theme } from "@lookiero/sty-psp-ui";
7
7
  import { MESSAGING_CONTEXT_ID } from "../../delivery/baseBootstrap";
8
8
  import { DOMAIN } from "../i18n/i18n";
9
- const { colorBgBase } = theme();
10
- const App = ({ children }) => (React.createElement(SafeAreaProvider, null,
11
- React.createElement(StatusBar, { backgroundColor: colorBgBase, barStyle: "dark-content", translucent: true }),
12
- React.createElement(Notifications, { contextId: MESSAGING_CONTEXT_ID, domain: DOMAIN, portalHostName: "Checkout" }),
13
- React.createElement(PortalHost, { name: "Checkout" }),
14
- children));
9
+ const App = ({ children }) => {
10
+ const { colorBgBase } = theme();
11
+ return (React.createElement(SafeAreaProvider, null,
12
+ React.createElement(StatusBar, { backgroundColor: colorBgBase, barStyle: "dark-content", translucent: true }),
13
+ React.createElement(Notifications, { contextId: MESSAGING_CONTEXT_ID, domain: DOMAIN, portalHostName: "Checkout" }),
14
+ React.createElement(PortalHost, { name: "Checkout" }),
15
+ children));
16
+ };
15
17
  export { App };
@@ -21,11 +21,12 @@ import { DOMAIN, I18nMessages } from "../../i18n/i18n";
21
21
  import { Routes } from "../../routing/routes";
22
22
  import { ProductVariant } from "../shared/components/productVariant/ProductVariant";
23
23
  import { Pricing } from "../summary/components/pricing/Pricing";
24
- import { style } from "./Checkout.style";
24
+ import { style as checkoutStyle } from "./Checkout.style";
25
25
  import { DeliveryBanner } from "./components/deliveryBanner/DeliveryBanner";
26
26
  import { PaymentInstrument } from "./components/paymentInstrument/PaymentInstrument";
27
27
  const Checkout = ({ layout: Layout, order, subscription, getAuthToken, useRedirect, onCheckoutFlowSuccess, }) => {
28
28
  const { customer: { customerId, country, segment }, basePath, } = useStaticInfo();
29
+ const style = useMemo(() => checkoutStyle(), []);
29
30
  const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.CHECKOUT_TITLE });
30
31
  const submitButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.CHECKOUT_PAY_BUTTON });
31
32
  const { screen } = useDevice();
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  contentWrapper: {
3
3
  backgroundColor: string;
4
4
  flexGrow: number;
@@ -1,65 +1,67 @@
1
1
  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
- const { borderRadius4, colorBgPrimaryLight, colorBgBase, space2, space3, space4, space6, space12, space16 } = theme();
5
- const style = StyleSheet.create({
6
- contentWrapper: {
7
- backgroundColor: colorBgBase,
8
- flexGrow: 0,
9
- paddingHorizontal: space6,
10
- paddingVertical: space6,
11
- },
12
- desktopContentWrapper: {
13
- borderRadius: borderRadius4,
14
- paddingVertical: space12,
15
- },
16
- desktopLayoutSpacing: {
17
- paddingVertical: space12,
18
- },
19
- desktopListSpacing: {
20
- paddingRight: space16,
21
- },
22
- desktopResume: {
23
- borderRadius: borderRadius4,
24
- },
25
- header: {
26
- height: HEADER_HEIGHT,
27
- },
28
- paymentSelector: {
29
- marginTop: space6,
30
- },
31
- paymentSelectorNL: {
32
- marginBottom: space6,
33
- },
34
- princingWrapper: {
35
- padding: space6,
36
- },
37
- princingWrapperSmall: {
38
- backgroundColor: colorBgPrimaryLight,
39
- paddingBottom: space2,
40
- },
41
- resume: {
42
- overflow: "hidden",
43
- backgroundColor: colorBgBase,
44
- ...Platform.select({
45
- web: {
46
- position: "sticky",
47
- top: space12,
48
- alignSelf: "flex-start",
49
- },
50
- }),
51
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
52
- },
53
- scrollView: {
54
- backgroundColor: colorBgPrimaryLight,
55
- flex: 1,
56
- },
57
- sticky: {
58
- paddingBottom: space4,
59
- paddingTop: space3,
60
- },
61
- title: {
62
- marginBottom: space4,
63
- },
64
- });
4
+ const style = () => {
5
+ const { borderRadius4, colorBgPrimaryLight, colorBgBase, space2, space3, space4, space6, space12, space16 } = theme();
6
+ return StyleSheet.create({
7
+ contentWrapper: {
8
+ backgroundColor: colorBgBase,
9
+ flexGrow: 0,
10
+ paddingHorizontal: space6,
11
+ paddingVertical: space6,
12
+ },
13
+ desktopContentWrapper: {
14
+ borderRadius: borderRadius4,
15
+ paddingVertical: space12,
16
+ },
17
+ desktopLayoutSpacing: {
18
+ paddingVertical: space12,
19
+ },
20
+ desktopListSpacing: {
21
+ paddingRight: space16,
22
+ },
23
+ desktopResume: {
24
+ borderRadius: borderRadius4,
25
+ },
26
+ header: {
27
+ height: HEADER_HEIGHT,
28
+ },
29
+ paymentSelector: {
30
+ marginTop: space6,
31
+ },
32
+ paymentSelectorNL: {
33
+ marginBottom: space6,
34
+ },
35
+ princingWrapper: {
36
+ padding: space6,
37
+ },
38
+ princingWrapperSmall: {
39
+ backgroundColor: colorBgPrimaryLight,
40
+ paddingBottom: space2,
41
+ },
42
+ resume: {
43
+ overflow: "hidden",
44
+ backgroundColor: colorBgBase,
45
+ ...Platform.select({
46
+ web: {
47
+ position: "sticky",
48
+ top: space12,
49
+ alignSelf: "flex-start",
50
+ },
51
+ }),
52
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
53
+ },
54
+ scrollView: {
55
+ backgroundColor: colorBgPrimaryLight,
56
+ flex: 1,
57
+ },
58
+ sticky: {
59
+ paddingBottom: space4,
60
+ paddingTop: space3,
61
+ },
62
+ title: {
63
+ marginBottom: space4,
64
+ },
65
+ });
66
+ };
65
67
  export { style };
@@ -1,4 +1,4 @@
1
- import React, { useCallback, useEffect, useRef } from "react";
1
+ import React, { 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";
@@ -14,13 +14,14 @@ import { useTrackPressContinue } from "../../../tracking/useTrackPressContinue";
14
14
  import { Body } from "../../components/layouts/body/Body";
15
15
  import { CheckoutQuestionFeedbackProvider } from "../../components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionFeedback";
16
16
  import { useStaticInfo } from "../../hooks/useStaticInfo";
17
- import { style } from "./Feedback.style";
17
+ import { style as feedbackStyle } from "./Feedback.style";
18
18
  import { CheckoutQuestionsForm } from "./components/checkoutQuestionsForm/CheckoutQuestionsForm";
19
19
  const Feedback = ({ layout: Layout }) => {
20
20
  const logger = useLogger();
21
21
  const screenSize = useScreenSize();
22
22
  const isDesktop = screenSize === "L";
23
23
  const { customer: { customerId, country, segment }, } = useStaticInfo();
24
+ const style = useMemo(() => feedbackStyle(), []);
24
25
  const [checkout, checkoutStatus] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
25
26
  const [checkoutQuestions, checkoutQuestionsStatus] = useListCheckoutQuestionsByCheckoutId({
26
27
  checkoutId: checkout?.id,
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  container: {
3
3
  justifyContent: "flex-start";
4
4
  paddingHorizontal: number;
@@ -1,14 +1,16 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { space3, space6, space8 } = theme();
4
- const style = StyleSheet.create({
5
- container: {
6
- justifyContent: "flex-start",
7
- paddingHorizontal: space6,
8
- paddingVertical: space8,
9
- },
10
- containerDesktop: {
11
- paddingHorizontal: space3,
12
- },
13
- });
3
+ const style = () => {
4
+ const { space3, space6, space8 } = theme();
5
+ return StyleSheet.create({
6
+ container: {
7
+ justifyContent: "flex-start",
8
+ paddingHorizontal: space6,
9
+ paddingVertical: space8,
10
+ },
11
+ containerDesktop: {
12
+ paddingHorizontal: space3,
13
+ },
14
+ });
15
+ };
14
16
  export { style };
@@ -22,14 +22,15 @@ import { ItemDetailHeader } from "../../components/templates/header/itemDetailHe
22
22
  import { ItemHeader } from "../../components/templates/header/itemHeader/ItemHeader";
23
23
  import { useStaticInfo } from "../../hooks/useStaticInfo";
24
24
  import { Routes } from "../../routing/routes";
25
- import { style } from "./Item.style";
25
+ import { style as itemStyle } from "./Item.style";
26
26
  import { ItemWithCustomerDecission, } from "./views/itemWithCustomerDecission/ItemWithCustomerDecission";
27
27
  import { ItemWithoutCustomerDecission, } from "./views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission";
28
28
  const Item = ({ layout: Layout }) => {
29
29
  const logger = useLogger();
30
- const screenSize = useScreenSize();
31
30
  const navigate = useNavigate();
32
31
  const { customer: { customerId, country, segment }, basePath, } = useStaticInfo();
32
+ const style = useMemo(() => itemStyle(), []);
33
+ const screenSize = useScreenSize();
33
34
  const isDesktopScreen = screenSize !== "S";
34
35
  const { id } = useParams();
35
36
  const [fiveItemsDiscount = 0, fiveItemsDiscountStatus] = useViewFiveItemsDiscountByCustomerId({ customerId });
@@ -124,6 +125,7 @@ const Item = ({ layout: Layout }) => {
124
125
  handleOnNext,
125
126
  handleOnPrevious,
126
127
  itemDetailRouteMatch,
128
+ style.headerWrapper,
127
129
  ]);
128
130
  const itemWithoutCustomerDecission = checkoutItem.status === CheckoutItemStatus.INITIAL;
129
131
  const dependenciesLoaded = checkoutStatus !== QueryStatus.LOADING &&
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  fiveItemsDiscountPadding: {
3
3
  paddingTop: number;
4
4
  };
@@ -1,23 +1,25 @@
1
1
  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
- const { colorBgPrimaryLight, space12 } = theme();
5
- const style = StyleSheet.create({
6
- fiveItemsDiscountPadding: {
7
- paddingTop: space12,
8
- },
9
- header: {
10
- height: HEADER_HEIGHT,
11
- },
12
- headerWithDoubleHeight: {
13
- height: HEADER_HEIGHT * 2,
14
- },
15
- headerWrapper: {
16
- display: "flex",
17
- flexDirection: "column",
18
- },
19
- safeAreaView: {
20
- backgroundColor: colorBgPrimaryLight,
21
- },
22
- });
4
+ const style = () => {
5
+ const { colorBgPrimaryLight, space12 } = theme();
6
+ return StyleSheet.create({
7
+ fiveItemsDiscountPadding: {
8
+ paddingTop: space12,
9
+ },
10
+ header: {
11
+ height: HEADER_HEIGHT,
12
+ },
13
+ headerWithDoubleHeight: {
14
+ height: HEADER_HEIGHT * 2,
15
+ },
16
+ headerWrapper: {
17
+ display: "flex",
18
+ flexDirection: "column",
19
+ },
20
+ safeAreaView: {
21
+ backgroundColor: colorBgPrimaryLight,
22
+ },
23
+ });
24
+ };
23
25
  export { style };
@@ -1,11 +1,11 @@
1
- import React from "react";
1
+ import React, { 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
  const i18nMessageForCheckoutItemStatus = {
10
10
  [CheckoutItemStatus.KEPT]: I18nMessages.ITEM_BANNER_CUSTOMER_KEPT_DECISSION,
11
11
  [CheckoutItemStatus.REPLACED]: I18nMessages.ITEM_BANNER_CUSTOMER_REPLACED_DECISSION,
@@ -16,6 +16,7 @@ const CustomerDecissionBanner = ({ checkoutItemStatus, onPress }) => {
16
16
  const bannerButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_BANNER_BUTTON });
17
17
  const screenSize = useScreenSize();
18
18
  const isSmallScreen = screenSize === "S";
19
+ const style = useMemo(() => customerDecissionBannerStyle(), []);
19
20
  return (React.createElement(View, { style: [style.container, isSmallScreen ? style.smallContainer : null] },
20
21
  React.createElement(InfoBox, { text: decissionText },
21
22
  React.createElement(Pressable, { testID: "customer-decission-banner", onPress: onPress },
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  container: {
3
3
  marginBottom: number;
4
4
  };
@@ -1,12 +1,14 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { space4, space6 } = theme();
4
- const style = StyleSheet.create({
5
- container: {
6
- marginBottom: space4,
7
- },
8
- smallContainer: {
9
- marginHorizontal: space6,
10
- },
11
- });
3
+ const style = () => {
4
+ const { space4, space6 } = theme();
5
+ return StyleSheet.create({
6
+ container: {
7
+ marginBottom: space4,
8
+ },
9
+ smallContainer: {
10
+ marginHorizontal: space6,
11
+ },
12
+ });
13
+ };
12
14
  export { style };
@@ -1,10 +1,10 @@
1
- import React from "react";
1
+ import React, { useMemo } from "react";
2
2
  import { View } from "react-native";
3
3
  import { ALIGN, Button, BUTTON_VARIANT, Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
5
  import { Modal } from "@lookiero/sty-psp-ui";
6
6
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
7
- import { style } from "./GetOutOfCheckoutModal.style";
7
+ import { style as getOutOfCheckoutModalStyle } from "./GetOutOfCheckoutModal.style";
8
8
  const GetOutOfCheckoutModal = ({ visible, onDismiss, onConfirm }) => {
9
9
  const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.GET_OUT_OF_CHECKOUT_MODAL_TITLE });
10
10
  const descriptionText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.GET_OUT_OF_CHECKOUT_MODAL_DESCRIPTION });
@@ -16,6 +16,7 @@ const GetOutOfCheckoutModal = ({ visible, onDismiss, onConfirm }) => {
16
16
  domain: DOMAIN,
17
17
  id: I18nMessages.GET_OUT_OF_CHECKOUT_MODAL_CONFIRM_BUTTON,
18
18
  });
19
+ const style = useMemo(() => getOutOfCheckoutModalStyle(), []);
19
20
  return (React.createElement(Modal, { portalHostName: "Checkout", visible: visible, onClose: onDismiss },
20
21
  React.createElement(View, { style: style.modalContent },
21
22
  React.createElement(Text, { align: ALIGN.CENTER, level: 1, style: style.title }, titleText),
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  button: {
3
3
  flex: number;
4
4
  };
@@ -1,25 +1,27 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { space6, space8 } = theme();
4
- const style = StyleSheet.create({
5
- button: {
6
- flex: 0,
7
- },
8
- buttonText: {
9
- width: "100%",
10
- },
11
- confirmButton: {
12
- marginTop: space8,
13
- },
14
- description: {
15
- marginVertical: space8,
16
- width: "100%",
17
- },
18
- modalContent: {
19
- paddingHorizontal: space6,
20
- },
21
- title: {
22
- width: "100%",
23
- },
24
- });
3
+ const style = () => {
4
+ const { space6, space8 } = theme();
5
+ return StyleSheet.create({
6
+ button: {
7
+ flex: 0,
8
+ },
9
+ buttonText: {
10
+ width: "100%",
11
+ },
12
+ confirmButton: {
13
+ marginTop: space8,
14
+ },
15
+ description: {
16
+ marginVertical: space8,
17
+ width: "100%",
18
+ },
19
+ modalContent: {
20
+ paddingHorizontal: space6,
21
+ },
22
+ title: {
23
+ width: "100%",
24
+ },
25
+ });
26
+ };
25
27
  export { style };
@@ -7,9 +7,10 @@ import { size } from "../../../../../../projection/size/size";
7
7
  import { Body } from "../../../../components/layouts/body/Body";
8
8
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
9
9
  import { SelectModal } from "../selectModal/SelectModal";
10
- import { style } from "./ItemActions.style";
10
+ import { style as itemActionsStyle } from "./ItemActions.style";
11
11
  const ItemActions = ({ productVariants, currentProductVariant, country, onShowSizeWithoutStockModal = () => void 0, onKeep, onReplace, onReturn, onLayout, }) => {
12
12
  const [modalVisible, setModalVisible] = useState(false);
13
+ const style = useMemo(() => itemActionsStyle(), []);
13
14
  const changeSizeButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_CHANGE_SIZE_BUTTON });
14
15
  const keepButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_KEEP_BUTTON });
15
16
  const returnButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_RETURN_BUTTON });
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  actionsRow: {
3
3
  alignItems: "center";
4
4
  flexDirection: "row";
@@ -1,29 +1,31 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorTextDisabled, space3, space2, space4, space6 } = theme();
4
- const style = StyleSheet.create({
5
- actionsRow: {
6
- alignItems: "center",
7
- flexDirection: "row",
8
- marginBottom: space4,
9
- },
10
- inputDisabled: {
11
- color: colorTextDisabled,
12
- },
13
- returnButton: {
14
- flex: 1,
15
- },
16
- row: {
17
- paddingHorizontal: space3,
18
- },
19
- sizeSelector: {
20
- flex: 1,
21
- marginRight: space2,
22
- },
23
- sticky: {
24
- paddingBottom: space6,
25
- paddingHorizontal: 0,
26
- paddingTop: space6,
27
- },
28
- });
3
+ const style = () => {
4
+ const { colorTextDisabled, space3, space2, space4, space6 } = theme();
5
+ return StyleSheet.create({
6
+ actionsRow: {
7
+ alignItems: "center",
8
+ flexDirection: "row",
9
+ marginBottom: space4,
10
+ },
11
+ inputDisabled: {
12
+ color: colorTextDisabled,
13
+ },
14
+ returnButton: {
15
+ flex: 1,
16
+ },
17
+ row: {
18
+ paddingHorizontal: space3,
19
+ },
20
+ sizeSelector: {
21
+ flex: 1,
22
+ marginRight: space2,
23
+ },
24
+ sticky: {
25
+ paddingBottom: space6,
26
+ paddingHorizontal: 0,
27
+ paddingTop: space6,
28
+ },
29
+ });
30
+ };
29
31
  export { style };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { useMemo } from "react";
2
2
  import { View } from "react-native";
3
3
  import { COLOR, Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
@@ -6,12 +6,13 @@ import { useScreenSize } from "@lookiero/sty-psp-ui";
6
6
  import { size } from "../../../../../../projection/size/size";
7
7
  import { Price } from "../../../../components/atoms/price/Price";
8
8
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
9
- import { style } from "./ProductVariantDescription.style";
9
+ import { style as productVariantDescriptionStyle } from "./ProductVariantDescription.style";
10
10
  const ProductVariantDescription = ({ brand, name, price, size: sizeProjection, country, }) => {
11
11
  const sizeText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_SIZE });
12
12
  const uniqueText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_UNIQUE });
13
13
  const screenDevice = useScreenSize();
14
14
  const isDesktopScreen = screenDevice !== "S";
15
+ const style = useMemo(() => productVariantDescriptionStyle(), []);
15
16
  return (React.createElement(View, { style: [style.container, isDesktopScreen ? null : style.smallContainer] },
16
17
  React.createElement(View, { style: style.info },
17
18
  React.createElement(View, { style: style.brand },
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  brand: {
3
3
  flex: number;
4
4
  gap: number;