@lookiero/checkout 11.1.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/Expo.js +2 -8
  2. package/dist/src/ExpoRoot.d.ts +1 -5
  3. package/dist/src/ExpoRoot.js +6 -5
  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 +3 -2
  11. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +1 -1
  12. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +23 -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 +2 -1
  21. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +13 -5
  22. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +2 -1
  23. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +1 -1
  24. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +25 -23
  25. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +3 -2
  26. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +1 -1
  27. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +11 -9
  28. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.d.ts +1 -2
  29. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +3 -2
  30. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.d.ts +1 -1
  31. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.js +13 -11
  32. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +3 -2
  33. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +3 -3
  34. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +23 -18
  35. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +2 -1
  36. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.d.ts +1 -1
  37. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.js +8 -6
  38. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.d.ts +2 -2
  39. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +3 -2
  40. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.d.ts +1 -1
  41. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.js +14 -12
  42. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +4 -3
  43. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +3 -3
  44. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +18 -13
  45. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +3 -2
  46. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.d.ts +1 -1
  47. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.js +8 -4
  48. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +3 -2
  49. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +1 -1
  50. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +12 -10
  51. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +2 -1
  52. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +1 -1
  53. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +30 -28
  54. package/dist/src/infrastructure/ui/components/templates/header/Header.js +6 -3
  55. package/dist/src/infrastructure/ui/components/templates/header/Header.style.d.ts +1 -1
  56. package/dist/src/infrastructure/ui/components/templates/header/Header.style.js +17 -15
  57. package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.js +6 -3
  58. package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.d.ts +1 -1
  59. package/dist/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.js +10 -8
  60. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +3 -2
  61. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.d.ts +1 -1
  62. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.js +10 -8
  63. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +3 -2
  64. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.d.ts +1 -1
  65. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.js +10 -8
  66. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +3 -2
  67. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.d.ts +2 -2
  68. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.js +11 -9
  69. package/dist/src/infrastructure/ui/views/App.js +8 -6
  70. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +2 -1
  71. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +1 -1
  72. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +63 -61
  73. package/dist/src/infrastructure/ui/views/feedback/Feedback.js +3 -2
  74. package/dist/src/infrastructure/ui/views/feedback/Feedback.style.d.ts +1 -1
  75. package/dist/src/infrastructure/ui/views/feedback/Feedback.style.js +13 -11
  76. package/dist/src/infrastructure/ui/views/item/Item.js +4 -2
  77. package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +1 -1
  78. package/dist/src/infrastructure/ui/views/item/Item.style.js +21 -19
  79. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +3 -2
  80. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +1 -1
  81. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +11 -9
  82. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +3 -2
  83. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +1 -1
  84. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +24 -22
  85. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +2 -1
  86. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.d.ts +1 -1
  87. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.js +28 -26
  88. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +3 -2
  89. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +1 -1
  90. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +20 -18
  91. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +13 -6
  92. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +2 -1
  93. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +34 -28
  94. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +3 -2
  95. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +1 -1
  96. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +11 -9
  97. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +5 -5
  98. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.d.ts +2 -1
  99. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.js +24 -18
  100. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +3 -2
  101. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +1 -1
  102. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +17 -15
  103. package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.js +3 -2
  104. package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.d.ts +1 -1
  105. package/dist/src/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.js +19 -17
  106. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +6 -5
  107. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.d.ts +2 -1
  108. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.js +13 -7
  109. package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.js +3 -2
  110. package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.d.ts +1 -1
  111. package/dist/src/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.js +17 -15
  112. package/dist/src/infrastructure/ui/views/return/components/price/Price.js +3 -2
  113. package/dist/src/infrastructure/ui/views/return/components/price/Price.style.d.ts +1 -1
  114. package/dist/src/infrastructure/ui/views/return/components/price/Price.style.js +18 -16
  115. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +3 -2
  116. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.d.ts +1 -1
  117. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.js +32 -30
  118. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +3 -2
  119. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +1 -1
  120. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +50 -48
  121. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +3 -2
  122. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.d.ts +1 -1
  123. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +40 -38
  124. package/dist/src/infrastructure/ui/views/summary/Summary.js +3 -2
  125. package/dist/src/infrastructure/ui/views/summary/Summary.style.d.ts +1 -1
  126. package/dist/src/infrastructure/ui/views/summary/Summary.style.js +72 -70
  127. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +3 -2
  128. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.d.ts +1 -1
  129. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.js +20 -18
  130. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +9 -5
  131. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +1 -1
  132. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +15 -13
  133. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +11 -2
  134. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +1 -1
  135. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +29 -27
  136. package/dist/src/version.d.ts +1 -1
  137. package/dist/src/version.js +1 -1
  138. package/package.json +3 -3
  139. package/src/Expo.tsx +2 -10
  140. package/src/ExpoRoot.tsx +6 -9
  141. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +8 -6
  142. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +4 -2
  143. package/src/infrastructure/ui/components/atoms/price/Price.style.ts +18 -16
  144. package/src/infrastructure/ui/components/atoms/price/Price.tsx +4 -2
  145. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +31 -31
  146. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +4 -2
  147. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.ts +11 -9
  148. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +4 -2
  149. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.ts +19 -13
  150. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +4 -2
  151. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.ts +15 -5
  152. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.tsx +5 -6
  153. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +26 -24
  154. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +3 -1
  155. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.ts +11 -9
  156. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +4 -2
  157. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.style.ts +13 -11
  158. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +4 -2
  159. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.ts +24 -18
  160. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +4 -2
  161. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.ts +8 -6
  162. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +3 -1
  163. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.ts +14 -12
  164. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +6 -4
  165. package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.ts +19 -13
  166. package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +5 -3
  167. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.ts +8 -4
  168. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +4 -2
  169. package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.ts +12 -10
  170. package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +4 -2
  171. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +31 -29
  172. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +3 -1
  173. package/src/infrastructure/ui/components/templates/header/Header.style.ts +18 -16
  174. package/src/infrastructure/ui/components/templates/header/Header.tsx +11 -7
  175. package/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.ts +10 -8
  176. package/src/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.tsx +7 -3
  177. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.ts +10 -8
  178. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +4 -2
  179. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.ts +10 -8
  180. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +4 -2
  181. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.ts +11 -9
  182. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +4 -2
  183. package/src/infrastructure/ui/views/App.tsx +12 -10
  184. package/src/infrastructure/ui/views/checkout/Checkout.style.ts +63 -61
  185. package/src/infrastructure/ui/views/checkout/Checkout.tsx +4 -1
  186. package/src/infrastructure/ui/views/feedback/Feedback.style.ts +13 -11
  187. package/src/infrastructure/ui/views/feedback/Feedback.tsx +5 -2
  188. package/src/infrastructure/ui/views/item/Item.style.ts +21 -19
  189. package/src/infrastructure/ui/views/item/Item.tsx +6 -2
  190. package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.ts +11 -9
  191. package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +5 -2
  192. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.ts +24 -22
  193. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +4 -2
  194. package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.ts +28 -26
  195. package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +3 -1
  196. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +20 -18
  197. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +5 -2
  198. package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.ts +37 -29
  199. package/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.tsx +13 -6
  200. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.ts +11 -9
  201. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +4 -2
  202. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.ts +25 -18
  203. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +6 -6
  204. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.ts +18 -15
  205. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +4 -2
  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,18 +1,20 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { space6, space12, colorBgBase, borderRadius4 } = theme();
4
- const style = StyleSheet.create({
5
- container: {
6
- backgroundColor: colorBgBase,
7
- },
8
- content: {
9
- paddingVertical: space6,
10
- },
11
- largeContainer: {
12
- borderRadius: borderRadius4,
13
- marginTop: space12,
14
- padding: space12,
15
- paddingBottom: 0,
16
- },
17
- });
3
+ const style = () => {
4
+ const { space6, space12, colorBgBase, borderRadius4 } = theme();
5
+ return StyleSheet.create({
6
+ container: {
7
+ backgroundColor: colorBgBase,
8
+ },
9
+ content: {
10
+ paddingVertical: space6,
11
+ },
12
+ largeContainer: {
13
+ borderRadius: borderRadius4,
14
+ marginTop: space12,
15
+ padding: space12,
16
+ paddingBottom: 0,
17
+ },
18
+ });
19
+ };
18
20
  export { style };
@@ -1,9 +1,9 @@
1
- import React from "react";
1
+ import React, { useMemo } from "react";
2
2
  import { View } from "react-native";
3
3
  import { Text } from "@lookiero/aurora";
4
4
  import { useI18nNumber } from "@lookiero/i18n-react";
5
5
  import { DOMAIN } from "../../../../i18n/i18n";
6
- import { style } from "./Price.style";
6
+ import { style as priceStyle } from "./Price.style";
7
7
  const Price = ({ price, withPercentage = false }) => {
8
8
  const isDiscounted = price.discountedPrice && price.discountedPrice.percentage > 0;
9
9
  const productPrice = useI18nNumber({
@@ -19,6 +19,7 @@ const Price = ({ price, withPercentage = false }) => {
19
19
  currency: price.currency,
20
20
  });
21
21
  const priceValue = isDiscounted ? productDiscountedPrice : productPrice;
22
+ const style = useMemo(() => priceStyle(), []);
22
23
  return (React.createElement(View, { style: style.price, testID: "price" },
23
24
  isDiscounted && (React.createElement(Text, { level: 1, style: style.discountedPriceText, testID: "discounted-price-text", detail: true, lineThrough: true }, productPrice)),
24
25
  React.createElement(View, { style: style.discountedPriceInfo },
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  discountedPercentage: {
3
3
  color: string;
4
4
  };
@@ -1,19 +1,21 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorTextError, colorTextMedium, space2 } = theme();
4
- const style = StyleSheet.create({
5
- discountedPercentage: {
6
- color: colorTextError,
7
- },
8
- discountedPriceInfo: {
9
- alignItems: "flex-end",
10
- marginLeft: space2,
11
- },
12
- discountedPriceText: {
13
- color: colorTextMedium,
14
- },
15
- price: {
16
- flexDirection: "row",
17
- },
18
- });
3
+ const style = () => {
4
+ const { colorTextError, colorTextMedium, space2 } = theme();
5
+ return StyleSheet.create({
6
+ discountedPercentage: {
7
+ color: colorTextError,
8
+ },
9
+ discountedPriceInfo: {
10
+ alignItems: "flex-end",
11
+ marginLeft: space2,
12
+ },
13
+ discountedPriceText: {
14
+ color: colorTextMedium,
15
+ },
16
+ price: {
17
+ flexDirection: "row",
18
+ },
19
+ });
20
+ };
19
21
  export { style };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { useMemo } from "react";
2
2
  import { Image } from "react-native";
3
3
  import { COLOR, Text, View, useDevice } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
@@ -7,7 +7,7 @@ import { size } from "../../../../../../projection/size/size";
7
7
  import { useMediaImage } from "../../../../hooks/useMediaImage";
8
8
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
9
9
  import { Price } from "../price/Price";
10
- import { IMAGE_SIZE, style } from "./ProductVariantPreview.style";
10
+ import { IMAGE_SIZE, style as productVariantPreviewStyle } from "./ProductVariantPreview.style";
11
11
  const ProductVariantPreview = ({ item, country }) => {
12
12
  const cdnImageUrl = useMediaImage();
13
13
  const { screen } = useDevice();
@@ -15,6 +15,7 @@ const ProductVariantPreview = ({ item, country }) => {
15
15
  const uniqueText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_UNIQUE });
16
16
  const { productVariant: { media, brand, name, size: sizeProjection }, price, } = item;
17
17
  const mainImage = media.find((mediaElement) => mediaElement.perspective === "MAIN");
18
+ const style = useMemo(() => productVariantPreviewStyle(), []);
18
19
  return (React.createElement(View, { style: [style.wrapper, !screen.S && style.mobileWrapper], testID: "product-variant-preview" },
19
20
  React.createElement(Row, { style: style.row },
20
21
  React.createElement(Column, { size: { M: "2/3", L: "2/3" }, style: style.content },
@@ -1,5 +1,5 @@
1
1
  declare const IMAGE_SIZE = 35;
2
- declare const style: {
2
+ declare const style: () => {
3
3
  content: {
4
4
  flexDirection: "row";
5
5
  };
@@ -1,34 +1,36 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { borderRadius2, borderWidth1, colorBgBase, colorBorderInput, space2, space4 } = theme();
4
3
  const IMAGE_SIZE = 35;
5
- const style = StyleSheet.create({
6
- content: {
7
- flexDirection: "row",
8
- },
9
- image: {
10
- borderRadius: borderRadius2,
11
- width: IMAGE_SIZE,
12
- },
13
- info: {
14
- flex: 1,
15
- marginLeft: space2,
16
- },
17
- mobileWrapper: {
18
- borderBottomWidth: borderWidth1,
19
- borderColor: colorBorderInput,
20
- },
21
- price: {
22
- justifyContent: "flex-end",
23
- },
24
- row: {
25
- flex: 1,
26
- justifyContent: "center",
27
- },
28
- wrapper: {
29
- backgroundColor: colorBgBase,
30
- flexDirection: "row",
31
- padding: space4,
32
- },
33
- });
4
+ const style = () => {
5
+ const { borderRadius2, borderWidth1, colorBgBase, colorBorderInput, space2, space4 } = theme();
6
+ return StyleSheet.create({
7
+ content: {
8
+ flexDirection: "row",
9
+ },
10
+ image: {
11
+ borderRadius: borderRadius2,
12
+ width: IMAGE_SIZE,
13
+ },
14
+ info: {
15
+ flex: 1,
16
+ marginLeft: space2,
17
+ },
18
+ mobileWrapper: {
19
+ borderBottomWidth: borderWidth1,
20
+ borderColor: colorBorderInput,
21
+ },
22
+ price: {
23
+ justifyContent: "flex-end",
24
+ },
25
+ row: {
26
+ flex: 1,
27
+ justifyContent: "center",
28
+ },
29
+ wrapper: {
30
+ backgroundColor: colorBgBase,
31
+ flexDirection: "row",
32
+ padding: space4,
33
+ },
34
+ });
35
+ };
34
36
  export { style, IMAGE_SIZE };
@@ -28,7 +28,7 @@ import { useStaticInfo } from "../../../../hooks/useStaticInfo";
28
28
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
29
29
  import { Routes } from "../../../../routing/routes";
30
30
  import { ProductVariantPreview } from "../productVariantPreview/ProductVariantPreview";
31
- import { style } from "./ReturnQuestionsForm.style";
31
+ import { style as returnQuestionsFormStyle } from "./ReturnQuestionsForm.style";
32
32
  const RETURN_QUESTION_FORM_PORTAL_HOST_NAME = "return-question-form-portal";
33
33
  const returnQuestionItems = {
34
34
  [ReturnQuestionType.HOST_DEFAULT]: HostDefaultReturnQuestionItem,
@@ -43,6 +43,7 @@ const ReturnQuestionsForm = ({ checkout, checkoutItem, country, layout: Layout,
43
43
  const { basePath } = useStaticInfo();
44
44
  const logger = useLogger();
45
45
  const { screen } = useDevice();
46
+ const style = useMemo(() => returnQuestionsFormStyle(), []);
46
47
  const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.RETURN_QUESTIONS_TITLE });
47
48
  const descriptionText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.RETURN_QUESTIONS_DESCRIPTION });
48
49
  const submitButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.RETURN_QUESTIONS_SUBMIT_BUTTON });
@@ -88,7 +89,7 @@ const ReturnQuestionsForm = ({ checkout, checkoutItem, country, layout: Layout,
88
89
  navigate(generatePath(`${basePath}/${Routes.ITEM}`, { id: nextItem.id }));
89
90
  }, [basePath, checkout.items, checkoutItem, feedback, navigate, returnCheckoutItem, trackPressNext, trackReturnItem]);
90
91
  const header = useMemo(() => (React.createElement(Box, { style: style.headerWrapper },
91
- React.createElement(ItemDetailHeader, { onBack: handleOnBack }))), [handleOnBack]);
92
+ React.createElement(ItemDetailHeader, { onBack: handleOnBack }))), [handleOnBack, style.headerWrapper]);
92
93
  const dependenciesLoaded = checkoutItem && returnQuestions && returnCheckoutItemStatus !== CommandStatus.LOADING;
93
94
  if (!dependenciesLoaded) {
94
95
  return React.createElement(Spinner, null);
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  background: {
3
3
  backgroundColor: string;
4
4
  };
@@ -1,52 +1,54 @@
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 { borderRadius5, colorBgPrimaryLight, colorBgBase, colorTextMedium, space1, space4, space6, space8 } = theme();
5
- const style = StyleSheet.create({
6
- background: {
7
- backgroundColor: colorBgPrimaryLight,
8
- },
9
- description: {
10
- color: colorTextMedium,
11
- },
12
- desktopInfo: {
13
- borderTopLeftRadius: borderRadius5,
14
- borderTopRightRadius: borderRadius5,
15
- },
16
- desktopLayoutSpacing: {
17
- paddingVertical: space8,
18
- },
19
- header: {
20
- height: HEADER_HEIGHT,
21
- },
22
- headerWrapper: {
23
- display: "flex",
24
- flexDirection: "column",
25
- },
26
- info: {
27
- backgroundColor: colorBgBase,
28
- gap: space1,
29
- paddingBottom: space4,
30
- paddingHorizontal: space6,
31
- paddingTop: space8,
32
- },
33
- layout: {
34
- flex: 1,
35
- justifyContent: "center",
36
- },
37
- safeAreaView: {
38
- flex: 1,
39
- },
40
- scrollView: {
41
- flex: 1,
42
- },
43
- submit: {
44
- backgroundColor: colorBgBase,
45
- padding: space6,
46
- },
47
- submitDesktop: {
48
- borderBottomLeftRadius: borderRadius5,
49
- borderBottomRightRadius: borderRadius5,
50
- },
51
- });
4
+ const style = () => {
5
+ const { borderRadius5, colorBgPrimaryLight, colorBgBase, colorTextMedium, space1, space4, space6, space8 } = theme();
6
+ return StyleSheet.create({
7
+ background: {
8
+ backgroundColor: colorBgPrimaryLight,
9
+ },
10
+ description: {
11
+ color: colorTextMedium,
12
+ },
13
+ desktopInfo: {
14
+ borderTopLeftRadius: borderRadius5,
15
+ borderTopRightRadius: borderRadius5,
16
+ },
17
+ desktopLayoutSpacing: {
18
+ paddingVertical: space8,
19
+ },
20
+ header: {
21
+ height: HEADER_HEIGHT,
22
+ },
23
+ headerWrapper: {
24
+ display: "flex",
25
+ flexDirection: "column",
26
+ },
27
+ info: {
28
+ backgroundColor: colorBgBase,
29
+ gap: space1,
30
+ paddingBottom: space4,
31
+ paddingHorizontal: space6,
32
+ paddingTop: space8,
33
+ },
34
+ layout: {
35
+ flex: 1,
36
+ justifyContent: "center",
37
+ },
38
+ safeAreaView: {
39
+ flex: 1,
40
+ },
41
+ scrollView: {
42
+ flex: 1,
43
+ },
44
+ submit: {
45
+ backgroundColor: colorBgBase,
46
+ padding: space6,
47
+ },
48
+ submitDesktop: {
49
+ borderBottomLeftRadius: borderRadius5,
50
+ borderBottomRightRadius: borderRadius5,
51
+ },
52
+ });
53
+ };
52
54
  export { style };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { useMemo } from "react";
2
2
  import { Pressable, View } from "react-native";
3
3
  import { COLOR, Icon, Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
@@ -8,12 +8,13 @@ import { size } from "../../../../../../projection/size/size";
8
8
  import { Price } from "../../../../components/atoms/price/Price";
9
9
  import { useMediaImage } from "../../../../hooks/useMediaImage";
10
10
  import { COLOR_I18N_PREFIX, DOMAIN, I18nMessages } from "../../../../i18n/i18n";
11
- import { IMAGE_WIDTH, style } from "./ProductVariant.style";
11
+ import { IMAGE_WIDTH, style as productVariantStyle } from "./ProductVariant.style";
12
12
  const ProductVariant = ({ media, brand, name, price, size: sizeProjection, color, status, country, style: customStyle, onPress, }) => {
13
13
  const uniqueText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_UNIQUE });
14
14
  const colorLabel = useI18nMessage({ domain: DOMAIN, id: color.name, prefix: COLOR_I18N_PREFIX });
15
15
  const sizeChangeText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.PRODUCT_VARIANT_SIZE_CHANGE });
16
16
  const cdnImageUrl = useMediaImage();
17
+ const style = useMemo(() => productVariantStyle(), []);
17
18
  return (React.createElement(Pressable, { pointerEvents: onPress ? "auto" : "none", style: style.container, testID: "product-variant", onPress: onPress },
18
19
  React.createElement(View, { style: style.row },
19
20
  React.createElement(View, null,
@@ -1,5 +1,5 @@
1
1
  declare const IMAGE_WIDTH = 104;
2
- declare const style: {
2
+ declare const style: () => {
3
3
  container: {
4
4
  alignItems: "flex-end";
5
5
  borderBottomColor: string;
@@ -1,43 +1,45 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorBgSurface, borderRadius3, borderRadiusFull, borderWidth2, colorBorderInput, colorBgPrimaryLight, space05, space1, space2, space4, } = theme();
4
3
  const IMAGE_WIDTH = 104;
5
4
  const IMAGE_HEIGHT = 132;
6
- const style = StyleSheet.create({
7
- container: {
8
- alignItems: "flex-end",
9
- borderBottomColor: colorBgPrimaryLight,
10
- borderBottomWidth: 1,
11
- flexDirection: "row",
12
- justifyContent: "space-between",
13
- paddingVertical: space4,
14
- },
15
- descriptionContainer: {
16
- alignSelf: "stretch",
17
- justifyContent: "space-between",
18
- marginLeft: space2,
19
- },
20
- infoProductVariant: {
21
- alignItems: "flex-start",
22
- },
23
- media: {
24
- borderColor: colorBorderInput,
25
- borderRadius: borderRadius3,
26
- borderWidth: borderWidth2,
27
- height: IMAGE_HEIGHT,
28
- width: IMAGE_WIDTH,
29
- },
30
- row: {
31
- alignItems: "flex-end",
32
- flexDirection: "row",
33
- },
34
- sizeChange: {
35
- backgroundColor: colorBgSurface,
36
- borderRadius: borderRadiusFull,
37
- marginTop: space4,
38
- paddingBottom: space05,
39
- paddingHorizontal: space2,
40
- paddingTop: space1,
41
- },
42
- });
5
+ const style = () => {
6
+ const { colorBgSurface, borderRadius3, borderRadiusFull, borderWidth2, colorBorderInput, colorBgPrimaryLight, space05, space1, space2, space4, } = theme();
7
+ return StyleSheet.create({
8
+ container: {
9
+ alignItems: "flex-end",
10
+ borderBottomColor: colorBgPrimaryLight,
11
+ borderBottomWidth: 1,
12
+ flexDirection: "row",
13
+ justifyContent: "space-between",
14
+ paddingVertical: space4,
15
+ },
16
+ descriptionContainer: {
17
+ alignSelf: "stretch",
18
+ justifyContent: "space-between",
19
+ marginLeft: space2,
20
+ },
21
+ infoProductVariant: {
22
+ alignItems: "flex-start",
23
+ },
24
+ media: {
25
+ borderColor: colorBorderInput,
26
+ borderRadius: borderRadius3,
27
+ borderWidth: borderWidth2,
28
+ height: IMAGE_HEIGHT,
29
+ width: IMAGE_WIDTH,
30
+ },
31
+ row: {
32
+ alignItems: "flex-end",
33
+ flexDirection: "row",
34
+ },
35
+ sizeChange: {
36
+ backgroundColor: colorBgSurface,
37
+ borderRadius: borderRadiusFull,
38
+ marginTop: space4,
39
+ paddingBottom: space05,
40
+ paddingHorizontal: space2,
41
+ paddingTop: space1,
42
+ },
43
+ });
44
+ };
43
45
  export { style, IMAGE_WIDTH };
@@ -18,16 +18,17 @@ import { Body } from "../../components/layouts/body/Body";
18
18
  import { useStaticInfo } from "../../hooks/useStaticInfo";
19
19
  import { DOMAIN, I18nMessages } from "../../i18n/i18n";
20
20
  import { Routes } from "../../routing/routes";
21
- import { style } from "./Summary.style";
21
+ import { style as summaryStyle } from "./Summary.style";
22
22
  import { CollapsiblePricing } from "./components/collapsiblePricing/CollapsiblePricing";
23
23
  const Summary = ({ layout: Layout, children }) => {
24
24
  const { customer: { customerId, country, segment }, basePath, } = useStaticInfo();
25
+ const { screen } = useDevice();
26
+ const style = useMemo(() => summaryStyle(), []);
25
27
  const [pricingCollapsed, setPricingCollapsed] = useState(true);
26
28
  const [pricingHeight, setPricingHeight] = useState(0);
27
29
  const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_TITLE });
28
30
  const descriptionText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_DESCRIPTION });
29
31
  const submitButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_SUBMIT_BUTTON });
30
- const { screen } = useDevice();
31
32
  const [checkout] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
32
33
  const [pricing, pricingStatus] = useViewPricingByCheckoutId({ checkoutId: checkout?.id });
33
34
  const [fiveItemsDiscount = 0, fiveItemsDiscountStatus] = useViewFiveItemsDiscountByCustomerId({ customerId });
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  contentWrapper: {
3
3
  backgroundColor: string;
4
4
  flexGrow: number;
@@ -1,74 +1,76 @@
1
1
  import { Platform, 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 { colorTextMedium, colorText, colorBgPrimaryLight, space2, space3, space4, space6, space12, space16, borderRadius4, colorBgBase, } = theme();
5
- const style = StyleSheet.create({
6
- contentWrapper: {
7
- backgroundColor: colorBgBase,
8
- flexGrow: 0,
9
- },
10
- description: {
11
- color: colorTextMedium,
12
- marginBottom: space6,
13
- },
14
- desktopContentWrapper: {
15
- borderRadius: borderRadius4,
16
- paddingHorizontal: space6,
17
- paddingVertical: space12,
18
- },
19
- desktopLayoutSpacing: {
20
- paddingVertical: space12,
21
- },
22
- desktopListSpacing: {
23
- paddingRight: space16,
24
- },
25
- desktopResume: {
26
- borderRadius: borderRadius4,
27
- },
28
- header: {
29
- height: HEADER_HEIGHT,
30
- },
31
- mobileInfo: {
32
- paddingHorizontal: space6,
33
- paddingTop: space6,
34
- },
35
- mobileResume: {
36
- shadowColor: colorText,
37
- shadowOpacity: 0.15,
38
- ...Platform.select({
39
- web: {
40
- shadowOffset: { width: 0, height: 8 },
41
- shadowRadius: 18,
42
- elevation: 0.5,
43
- },
44
- }),
45
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
46
- },
47
- princingWrapper: {
48
- padding: space6,
49
- },
50
- resume: {
51
- overflow: "hidden",
52
- backgroundColor: colorBgBase,
53
- ...Platform.select({
54
- web: {
55
- position: "sticky",
56
- top: space12,
57
- alignSelf: "flex-start",
58
- },
59
- }),
60
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
61
- },
62
- scrollView: {
63
- backgroundColor: colorBgPrimaryLight,
64
- flex: 1,
65
- },
66
- sticky: {
67
- paddingBottom: space4,
68
- paddingTop: space3,
69
- },
70
- title: {
71
- marginBottom: space2,
72
- },
73
- });
4
+ const style = () => {
5
+ const { colorTextMedium, colorText, colorBgPrimaryLight, space2, space3, space4, space6, space12, space16, borderRadius4, colorBgBase, } = theme();
6
+ return StyleSheet.create({
7
+ contentWrapper: {
8
+ backgroundColor: colorBgBase,
9
+ flexGrow: 0,
10
+ },
11
+ description: {
12
+ color: colorTextMedium,
13
+ marginBottom: space6,
14
+ },
15
+ desktopContentWrapper: {
16
+ borderRadius: borderRadius4,
17
+ paddingHorizontal: space6,
18
+ paddingVertical: space12,
19
+ },
20
+ desktopLayoutSpacing: {
21
+ paddingVertical: space12,
22
+ },
23
+ desktopListSpacing: {
24
+ paddingRight: space16,
25
+ },
26
+ desktopResume: {
27
+ borderRadius: borderRadius4,
28
+ },
29
+ header: {
30
+ height: HEADER_HEIGHT,
31
+ },
32
+ mobileInfo: {
33
+ paddingHorizontal: space6,
34
+ paddingTop: space6,
35
+ },
36
+ mobileResume: {
37
+ shadowColor: colorText,
38
+ shadowOpacity: 0.15,
39
+ ...Platform.select({
40
+ web: {
41
+ shadowOffset: { width: 0, height: 8 },
42
+ shadowRadius: 18,
43
+ elevation: 0.5,
44
+ },
45
+ }),
46
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
47
+ },
48
+ princingWrapper: {
49
+ padding: space6,
50
+ },
51
+ resume: {
52
+ overflow: "hidden",
53
+ backgroundColor: colorBgBase,
54
+ ...Platform.select({
55
+ web: {
56
+ position: "sticky",
57
+ top: space12,
58
+ alignSelf: "flex-start",
59
+ },
60
+ }),
61
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
62
+ },
63
+ scrollView: {
64
+ backgroundColor: colorBgPrimaryLight,
65
+ flex: 1,
66
+ },
67
+ sticky: {
68
+ paddingBottom: space4,
69
+ paddingTop: space3,
70
+ },
71
+ title: {
72
+ marginBottom: space2,
73
+ },
74
+ });
75
+ };
74
76
  export { style };