@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,14 +1,16 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorBgBase, space2, space6 } = theme();
4
- const style = StyleSheet.create({
5
- title: {
6
- marginBottom: space2,
7
- },
8
- wrapper: {
9
- backgroundColor: colorBgBase,
10
- marginBottom: space2,
11
- padding: space6,
12
- },
13
- });
3
+ const style = () => {
4
+ const { colorBgBase, space2, space6 } = theme();
5
+ return StyleSheet.create({
6
+ title: {
7
+ marginBottom: space2,
8
+ },
9
+ wrapper: {
10
+ backgroundColor: colorBgBase,
11
+ marginBottom: space2,
12
+ padding: space6,
13
+ },
14
+ });
15
+ };
14
16
  export { style };
@@ -7,10 +7,11 @@ import { InputField, Modal, TextInput } from "@lookiero/sty-psp-ui";
7
7
  import { DOMAIN } from "../../../../../i18n/i18n";
8
8
  import { useReturnQuestionFeedback, useReturnQuestionFeedbackForReturnQuestion, } from "../../behaviors/useReturnQuestionFeedback";
9
9
  import { deepestReturnQuestionWithFeedbackForReturnQuestion, feedbackForReturnQuestion, } from "../../util/returnQuestionFeedback";
10
- import { style, containerUnderlayColor } from "./HostSelectReturnQuestionItem.style";
10
+ import { style as hostSelectReturnQuestionItemStyle } from "./HostSelectReturnQuestionItem.style";
11
11
  const HostSelectReturnQuestionItem = ({ returnQuestion, children, portalHostName, testID, }) => {
12
12
  const { formatMessage } = useI18n({ domain: DOMAIN });
13
13
  const placeholderText = useMemo(() => (returnQuestion.metadata.placeholder ? formatMessage({ id: returnQuestion.metadata.placeholder }) : ""), [formatMessage, returnQuestion.metadata.placeholder]);
14
+ const style = useMemo(() => hostSelectReturnQuestionItemStyle(), []);
14
15
  const [modalVisible, setModalVisible] = useState(false);
15
16
  const handleOnPress = useCallback(() => setModalVisible(true), []);
16
17
  const handleOnModalClose = useCallback(() => setModalVisible(false), []);
@@ -31,7 +32,7 @@ const HostSelectReturnQuestionItem = ({ returnQuestion, children, portalHostName
31
32
  // deepestReturnQuestionWithFeedback needs to be as a dependency in order to be re-evaluated whenever it changes
32
33
  }, [handleOnModalClose, deepestReturnQuestionWithFeedback, isLeaf]);
33
34
  return (React.createElement(React.Fragment, null,
34
- React.createElement(TouchableHighlight, { accessibilityLabel: testID, style: style.container, testID: testID, underlayColor: containerUnderlayColor, accessible: true, onPress: handleOnPress },
35
+ React.createElement(TouchableHighlight, { accessibilityLabel: testID, style: style.container, testID: testID, underlayColor: style.containerUnderlayColor, accessible: true, onPress: handleOnPress },
35
36
  React.createElement(View, { pointerEvents: "none" },
36
37
  React.createElement(InputField, { icon: "arrow_down", label: placeholderText, value: inputValue, input: ({ onBlur, onFocus, style }) => (React.createElement(TextInput, { editable: false, placeholder: placeholderText, style: style, value: inputValue, onBlur: onBlur, onChange: () => void 0, onFocus: onFocus })) }))),
37
38
  React.createElement(Modal, { portalHostName: portalHostName, style: deepestReturnQuestionWithFeedback && { header: style.header }, visible: modalVisible, header: deepestReturnQuestionWithFeedback && (React.createElement(ButtonIcon, { name: "arrow_left", style: style.backButton, testID: "modal-back-button", onPress: handleOnBackButtonPress })), scroll: true, showCloseButton: true, onClose: handleOnModalClose },
@@ -1,5 +1,5 @@
1
- declare const containerUnderlayColor: string;
2
- declare const style: {
1
+ declare const style: () => {
2
+ containerUnderlayColor: string;
3
3
  backButton: {
4
4
  padding: number;
5
5
  };
@@ -14,4 +14,4 @@ declare const style: {
14
14
  paddingHorizontal: number;
15
15
  };
16
16
  };
17
- export { style, containerUnderlayColor };
17
+ export { style };
@@ -1,20 +1,25 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorBgPrimaryLight, space4, space6 } = theme();
4
- const containerUnderlayColor = colorBgPrimaryLight;
5
- const style = StyleSheet.create({
6
- backButton: {
7
- padding: 0,
8
- },
9
- container: {
10
- marginBottom: space4,
11
- },
12
- header: {
13
- justifyContent: "space-between",
14
- },
15
- modalContent: {
16
- paddingBottom: space6,
17
- paddingHorizontal: space6,
18
- },
19
- });
20
- export { style, containerUnderlayColor };
3
+ const style = () => {
4
+ const { colorBgPrimaryLight, space4, space6 } = theme();
5
+ const styles = StyleSheet.create({
6
+ backButton: {
7
+ padding: 0,
8
+ },
9
+ container: {
10
+ marginBottom: space4,
11
+ },
12
+ header: {
13
+ justifyContent: "space-between",
14
+ },
15
+ modalContent: {
16
+ paddingBottom: space6,
17
+ paddingHorizontal: space6,
18
+ },
19
+ });
20
+ return {
21
+ ...styles,
22
+ containerUnderlayColor: colorBgPrimaryLight,
23
+ };
24
+ };
25
+ export { style };
@@ -8,7 +8,7 @@ import { returnQuestionHasChildren } from "../../../../../../../../projection/re
8
8
  import { DOMAIN } from "../../../../../../i18n/i18n";
9
9
  import ReturnQuestion from "../../../ReturnQuestion";
10
10
  import { useReturnQuestionFeedbackForReturnQuestion } from "../../../behaviors/useReturnQuestionFeedback";
11
- import { style } from "./HostStackReturnQuestionItem.style";
11
+ import { style as hostStackReturnQuestionItemStyle } from "./HostStackReturnQuestionItem.style";
12
12
  const HostStackReturnQuestionItem = ({ returnQuestion, children, portalHostName, }) => {
13
13
  const { formatMessage } = useI18n({ domain: DOMAIN });
14
14
  const { feedback } = useReturnQuestionFeedbackForReturnQuestion({ returnQuestion });
@@ -22,6 +22,7 @@ const HostStackReturnQuestionItem = ({ returnQuestion, children, portalHostName,
22
22
  stackHeight.value = height;
23
23
  }, [stackHeight]);
24
24
  const stackAnimatedStyle = useAnimatedStyle(() => ({ height: withTiming(stackHeight.value) }), [stackHeight]);
25
+ const style = useMemo(() => hostStackReturnQuestionItemStyle(), []);
25
26
  return (React.createElement(Animated.View, { style: stackAnimatedStyle },
26
27
  React.createElement(View, { onLayout: handleOnLayout },
27
28
  titleText && (React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText)),
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  title: {
3
3
  marginBottom: number;
4
4
  };
@@ -1,9 +1,11 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { space1 } = theme();
4
- const style = StyleSheet.create({
5
- title: {
6
- marginBottom: space1,
7
- },
8
- });
3
+ const style = () => {
4
+ const { space1 } = theme();
5
+ return StyleSheet.create({
6
+ title: {
7
+ marginBottom: space1,
8
+ },
9
+ });
10
+ };
9
11
  export { style };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { FC } from "react";
2
2
  import { ReturnQuestionProjection } from "../../../../../../../projection/returnQuestion/returnQuestion";
3
3
  interface ModalOptionReturnQuestionItemsProps {
4
4
  readonly portalHostName?: string;
@@ -7,5 +7,5 @@ interface ModalOptionReturnQuestionItemsProps {
7
7
  readonly visible: boolean;
8
8
  readonly onClose: () => void;
9
9
  }
10
- declare const ModalOptionReturnQuestionItems: ({ portalHostName, returnQuestion, visible, onClose, }: ModalOptionReturnQuestionItemsProps) => React.JSX.Element;
10
+ declare const ModalOptionReturnQuestionItems: FC<ModalOptionReturnQuestionItemsProps>;
11
11
  export { ModalOptionReturnQuestionItems };
@@ -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 { useI18n } from "@lookiero/i18n-react";
@@ -6,10 +6,11 @@ import { Modal } from "@lookiero/sty-psp-ui";
6
6
  import { returnQuestionHasChildren } from "../../../../../../../projection/returnQuestion/returnQuestion.typeguard";
7
7
  import { DOMAIN } from "../../../../../i18n/i18n";
8
8
  import ReturnQuestion from "../../ReturnQuestion";
9
- import { style } from "./ModalOptionReturnQuestionItems.style";
9
+ import { style as modalOptionReturnQuestionItemsStyle } from "./ModalOptionReturnQuestionItems.style";
10
10
  const ModalOptionReturnQuestionItems = ({ portalHostName, returnQuestion, visible, onClose, }) => {
11
11
  const { formatMessage } = useI18n({ domain: DOMAIN });
12
12
  const title = formatMessage({ id: returnQuestion.translationKey });
13
+ const style = useMemo(() => modalOptionReturnQuestionItemsStyle(), []);
13
14
  return (React.createElement(Modal, { portalHostName: portalHostName, visible: visible, scroll: true, showCloseButton: true, onClose: onClose },
14
15
  React.createElement(View, { style: style.modalContent },
15
16
  React.createElement(Text, { color: COLOR.TEXT_MEDIUM, level: 2, style: style.optionText }, title),
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  modalContent: {
3
3
  paddingHorizontal: number;
4
4
  };
@@ -1,15 +1,17 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { space2, space6 } = theme();
4
- const style = StyleSheet.create({
5
- modalContent: {
6
- paddingHorizontal: space6,
7
- },
8
- optionText: {
9
- marginBottom: space6,
10
- },
11
- wrapper: {
12
- marginBottom: space2,
13
- },
14
- });
3
+ const style = () => {
4
+ const { space2, space6 } = theme();
5
+ return StyleSheet.create({
6
+ modalContent: {
7
+ paddingHorizontal: space6,
8
+ },
9
+ optionText: {
10
+ marginBottom: space6,
11
+ },
12
+ wrapper: {
13
+ marginBottom: space2,
14
+ },
15
+ });
16
+ };
15
17
  export { style };
@@ -1,16 +1,17 @@
1
1
  /* eslint-disable react/prop-types */
2
- import React, { useCallback } from "react";
2
+ import React, { useCallback, useMemo } from "react";
3
3
  import { TouchableHighlight } from "react-native";
4
4
  import { Text } from "@lookiero/aurora";
5
5
  import { useI18nMessage } from "@lookiero/i18n-react";
6
6
  import { DOMAIN } from "../../../../../i18n/i18n";
7
7
  import { useReturnQuestionFeedbackForReturnQuestion } from "../../behaviors/useReturnQuestionFeedback";
8
- import { containerUnderlayColor, style } from "./OptionReturnQuestionItem.style";
8
+ import { style as optionReturnQuestionItemStyle } from "./OptionReturnQuestionItem.style";
9
9
  const OptionReturnQuestionItem = ({ returnQuestion, returnQuestionParent, testID, }) => {
10
10
  const { onChange } = useReturnQuestionFeedbackForReturnQuestion({ returnQuestion: returnQuestionParent });
11
11
  const optionText = useI18nMessage({ domain: DOMAIN, id: returnQuestion.translationKey });
12
12
  const handleOnPress = useCallback(() => onChange({ returnQuestionId: returnQuestionParent.id, returnQuestionFeedback: returnQuestion.id }), [onChange, returnQuestion.id, returnQuestionParent.id]);
13
- return (React.createElement(TouchableHighlight, { accessibilityLabel: testID, style: style.container, testID: testID, underlayColor: containerUnderlayColor, onPress: handleOnPress },
13
+ const style = useMemo(() => optionReturnQuestionItemStyle(), []);
14
+ return (React.createElement(TouchableHighlight, { accessibilityLabel: testID, style: style.container, testID: testID, underlayColor: style.containerUnderlayColor, onPress: handleOnPress },
14
15
  React.createElement(Text, { level: 3, style: style.text }, optionText)));
15
16
  };
16
17
  export { OptionReturnQuestionItem };
@@ -1,5 +1,5 @@
1
- declare const containerUnderlayColor: string;
2
- declare const style: {
1
+ declare const style: () => {
2
+ containerUnderlayColor: string;
3
3
  container: {
4
4
  borderBottomColor: string;
5
5
  borderBottomWidth: number;
@@ -9,4 +9,4 @@ declare const style: {
9
9
  lineHeight: number;
10
10
  };
11
11
  };
12
- export { style, containerUnderlayColor };
12
+ export { style };
@@ -1,15 +1,20 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorBgPrimaryLight, colorBorderInteractive, space4, space6 } = theme();
4
- const containerUnderlayColor = colorBgPrimaryLight;
5
- const style = StyleSheet.create({
6
- container: {
7
- borderBottomColor: colorBorderInteractive,
8
- borderBottomWidth: 1,
9
- paddingVertical: space4,
10
- },
11
- text: {
12
- lineHeight: space6,
13
- },
14
- });
15
- export { style, containerUnderlayColor };
3
+ const style = () => {
4
+ const { colorBgPrimaryLight, colorBorderInteractive, space4, space6 } = theme();
5
+ const styles = StyleSheet.create({
6
+ container: {
7
+ borderBottomColor: colorBorderInteractive,
8
+ borderBottomWidth: 1,
9
+ paddingVertical: space4,
10
+ },
11
+ text: {
12
+ lineHeight: space6,
13
+ },
14
+ });
15
+ return {
16
+ ...styles,
17
+ containerUnderlayColor: colorBgPrimaryLight,
18
+ };
19
+ };
20
+ export { style };
@@ -1,13 +1,14 @@
1
1
  /* eslint-disable react/prop-types */
2
- import React, { useCallback, useEffect, useState } from "react";
2
+ import React, { useCallback, useEffect, useMemo, useState } from "react";
3
3
  import { View, Option, OPTION_VARIANT, SIZE } from "@lookiero/aurora";
4
4
  import { useI18n } from "@lookiero/i18n-react";
5
5
  import { DOMAIN } from "../../../../../i18n/i18n";
6
6
  import { useReturnQuestionFeedback, useReturnQuestionFeedbackForReturnQuestion, } from "../../behaviors/useReturnQuestionFeedback";
7
7
  import { deepestReturnQuestionWithFeedbackForReturnQuestion, feedbackForReturnQuestion, } from "../../util/returnQuestionFeedback";
8
8
  import { ModalOptionReturnQuestionItems } from "../modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems";
9
- import { style } from "./RadioReturnQuestionItem.style";
9
+ import { style as radioReturnQuestionItemStyle } from "./RadioReturnQuestionItem.style";
10
10
  const RadioReturnQuestionItem = ({ returnQuestion, returnQuestionParent, testID, portalHostName, }) => {
11
+ const style = useMemo(() => radioReturnQuestionItemStyle(), []);
11
12
  const { formatMessage } = useI18n({ domain: DOMAIN });
12
13
  const [modalVisible, setModalVisible] = useState(false);
13
14
  const { feedback: feedbackId, onChange, clear, } = useReturnQuestionFeedbackForReturnQuestion({ returnQuestion: returnQuestionParent });
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  wrapper: {
3
3
  marginBottom: number;
4
4
  };
@@ -1,7 +1,11 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { space2 } = theme();
4
- const style = StyleSheet.create({
5
- wrapper: { marginBottom: space2 },
6
- });
3
+ const style = () => {
4
+ const { space2 } = theme();
5
+ return StyleSheet.create({
6
+ wrapper: {
7
+ marginBottom: space2,
8
+ },
9
+ });
10
+ };
7
11
  export { style };
@@ -1,12 +1,12 @@
1
1
  /* eslint-disable react/prop-types */
2
- import React, { useCallback } from "react";
2
+ import React, { useCallback, useMemo } from "react";
3
3
  import { View } from "react-native";
4
4
  import { Text } from "@lookiero/aurora";
5
5
  import { useI18nMessage, useI18n } from "@lookiero/i18n-react";
6
6
  import { DOMAIN, I18nMessages } from "../../../../../i18n/i18n";
7
7
  import { useReturnQuestionFeedback } from "../../behaviors/useReturnQuestionFeedback";
8
8
  import { feedbackForReturnQuestion } from "../../util/returnQuestionFeedback";
9
- import { style } from "./ReturnQuestionFeedbackItem.style";
9
+ import { style as returnQuestionFeedbackItemStyle } from "./ReturnQuestionFeedbackItem.style";
10
10
  const ReturnQuestionFeedbackItem = ({ returnQuestion }) => {
11
11
  const titleText = useI18nMessage({ domain: DOMAIN, id: returnQuestion.translationKey });
12
12
  const unansweredText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.FEEDBACK_UNANSWERED });
@@ -14,6 +14,7 @@ const ReturnQuestionFeedbackItem = ({ returnQuestion }) => {
14
14
  const { formatMessage } = useI18n({ domain: DOMAIN });
15
15
  const translate = useCallback((returnQuestionName) => formatMessage({ id: returnQuestionName, defaultMessage: returnQuestionName }), [formatMessage]);
16
16
  const feedback = feedbackForReturnQuestion({ feedback: returnQuestionFeedback, returnQuestion, translate }).join(" / ");
17
+ const style = useMemo(() => returnQuestionFeedbackItemStyle(), []);
17
18
  return (React.createElement(View, { style: style.container },
18
19
  React.createElement(Text, { level: 2, style: style.title, detailBold: true }, titleText),
19
20
  React.createElement(Text, { level: 1, detail: true }, feedback || unansweredText)));
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  container: {
3
3
  marginBottom: number;
4
4
  };
@@ -1,13 +1,15 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorTextMedium, space1, space4 } = theme();
4
- const style = StyleSheet.create({
5
- container: {
6
- marginBottom: space4,
7
- },
8
- title: {
9
- color: colorTextMedium,
10
- marginBottom: space1,
11
- },
12
- });
3
+ const style = () => {
4
+ const { colorTextMedium, space1, space4 } = theme();
5
+ return StyleSheet.create({
6
+ container: {
7
+ marginBottom: space4,
8
+ },
9
+ title: {
10
+ color: colorTextMedium,
11
+ marginBottom: space1,
12
+ },
13
+ });
14
+ };
13
15
  export { style };
@@ -5,12 +5,13 @@ import { useI18n } from "@lookiero/i18n-react";
5
5
  import { InputField, TextInput } from "@lookiero/sty-psp-ui";
6
6
  import { DOMAIN } from "../../../../../i18n/i18n";
7
7
  import { useReturnQuestionFeedbackForReturnQuestion } from "../../behaviors/useReturnQuestionFeedback";
8
- import { style } from "./TextareaReturnQuestionItem.style";
8
+ import { style as textareaReturnQuestionItemStyle } from "./TextareaReturnQuestionItem.style";
9
9
  const TextareaReturnQuestionItem = ({ returnQuestion, returnQuestionParent, testID, }) => {
10
10
  const { formatMessage } = useI18n({ domain: DOMAIN });
11
11
  const placeholderText = useMemo(() => (returnQuestion.metadata.placeholder ? formatMessage({ id: returnQuestion.metadata.placeholder }) : ""), [formatMessage, returnQuestion.metadata.placeholder]);
12
12
  const { feedback, onChange } = useReturnQuestionFeedbackForReturnQuestion({ returnQuestion: returnQuestionParent });
13
13
  const handleOnChange = useCallback((value) => onChange({ returnQuestionId: returnQuestionParent.id, returnQuestionFeedback: value }), [onChange, returnQuestionParent.id]);
14
+ const style = useMemo(() => textareaReturnQuestionItemStyle(), []);
14
15
  return (React.createElement(View, { style: style.wrapper, testID: "textarea-return-question-item" },
15
16
  React.createElement(InputField, { label: placeholderText, value: feedback, input: ({ onBlur, onFocus, style }) => (React.createElement(TextInput, { placeholder: placeholderText, style: style, testID: testID, textAlignVertical: "top", value: feedback, multiline: true, onBlur: onBlur, onChange: handleOnChange, onFocus: onFocus })), style: {
16
17
  inputField: style.inputField,
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  input: {
3
3
  paddingTop: number;
4
4
  };
@@ -1,32 +1,34 @@
1
1
  import { Platform, StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorBgBase, fontInputPaddingLeft, space2, space4, space6 } = theme();
4
3
  const INPUT_HEIGHT = 96;
5
- const style = StyleSheet.create({
6
- input: {
7
- paddingTop: space4,
8
- ...Platform.select({
9
- android: {
10
- paddingTop: space2,
11
- },
12
- }),
13
- },
14
- inputContainer: {
15
- height: INPUT_HEIGHT,
16
- ...Platform.select({
17
- android: {
18
- alignItems: "flex-start",
19
- paddingLeft: fontInputPaddingLeft,
20
- },
21
- }),
22
- },
23
- inputField: {
24
- height: INPUT_HEIGHT,
25
- },
26
- wrapper: {
27
- backgroundColor: colorBgBase,
28
- padding: space6,
29
- paddingTop: 0,
30
- },
31
- });
4
+ const style = () => {
5
+ const { colorBgBase, fontInputPaddingLeft, space2, space4, space6 } = theme();
6
+ return StyleSheet.create({
7
+ input: {
8
+ paddingTop: space4,
9
+ ...Platform.select({
10
+ android: {
11
+ paddingTop: space2,
12
+ },
13
+ }),
14
+ },
15
+ inputContainer: {
16
+ height: INPUT_HEIGHT,
17
+ ...Platform.select({
18
+ android: {
19
+ alignItems: "flex-start",
20
+ paddingLeft: fontInputPaddingLeft,
21
+ },
22
+ }),
23
+ },
24
+ inputField: {
25
+ height: INPUT_HEIGHT,
26
+ },
27
+ wrapper: {
28
+ backgroundColor: colorBgBase,
29
+ padding: space6,
30
+ paddingTop: 0,
31
+ },
32
+ });
33
+ };
32
34
  export { style };
@@ -1,5 +1,8 @@
1
- import React from "react";
1
+ import React, { useMemo } from "react";
2
2
  import { View } from "react-native";
3
- import { style } from "./Header.style";
4
- const Header = ({ children, style: customStyle, ...props }) => (React.createElement(View, { ...props, style: [style.header, customStyle] }, children));
3
+ import { style as headerStyle } from "./Header.style";
4
+ const Header = ({ children, style: customStyle, ...props }) => {
5
+ const style = useMemo(() => headerStyle(), []);
6
+ return (React.createElement(View, { ...props, style: [style.header, customStyle] }, children));
7
+ };
5
8
  export { Header };
@@ -1,5 +1,5 @@
1
1
  declare const HEADER_HEIGHT = 48;
2
- declare const style: {
2
+ declare const style: () => {
3
3
  header: {
4
4
  alignItems: "center";
5
5
  backgroundColor: string;
@@ -1,19 +1,21 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
- const { colorBgBase, space2 } = theme();
4
3
  const HEADER_HEIGHT = 48;
5
- const style = StyleSheet.create({
6
- header: {
7
- alignItems: "center",
8
- backgroundColor: colorBgBase,
9
- flexDirection: "row",
10
- flexGrow: 0,
11
- flexWrap: "nowrap",
12
- height: HEADER_HEIGHT,
13
- justifyContent: "space-between",
14
- overflow: "visible",
15
- paddingHorizontal: space2,
16
- width: "100%",
17
- },
18
- });
4
+ const style = () => {
5
+ const { colorBgBase, space2 } = theme();
6
+ return StyleSheet.create({
7
+ header: {
8
+ alignItems: "center",
9
+ backgroundColor: colorBgBase,
10
+ flexDirection: "row",
11
+ flexGrow: 0,
12
+ flexWrap: "nowrap",
13
+ height: HEADER_HEIGHT,
14
+ justifyContent: "space-between",
15
+ overflow: "visible",
16
+ paddingHorizontal: space2,
17
+ width: "100%",
18
+ },
19
+ });
20
+ };
19
21
  export { style, HEADER_HEIGHT };
@@ -1,5 +1,8 @@
1
- import React from "react";
1
+ import React, { useMemo } from "react";
2
2
  import { View } from "react-native";
3
- import { style } from "./ButtonIconPlaceholder.style";
4
- const ButtonIconPlaceholder = () => React.createElement(View, { style: style.buttonIconPlaceholder });
3
+ import { style as buttonIconPlaceholderStyle } from "./ButtonIconPlaceholder.style";
4
+ const ButtonIconPlaceholder = () => {
5
+ const style = useMemo(() => buttonIconPlaceholderStyle(), []);
6
+ return React.createElement(View, { style: style.buttonIconPlaceholder });
7
+ };
5
8
  export { ButtonIconPlaceholder };
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  buttonIconPlaceholder: {
3
3
  flexGrow: number;
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
- buttonIconPlaceholder: {
6
- flexGrow: 0,
7
- height: space10,
8
- width: space10,
9
- },
10
- });
3
+ const style = () => {
4
+ const { space10 } = theme();
5
+ return StyleSheet.create({
6
+ buttonIconPlaceholder: {
7
+ flexGrow: 0,
8
+ height: space10,
9
+ width: space10,
10
+ },
11
+ });
12
+ };
11
13
  export { style };
@@ -1,12 +1,13 @@
1
- import React from "react";
1
+ import React, { useMemo } from "react";
2
2
  import { ButtonIcon, Text } from "@lookiero/aurora";
3
3
  import { useI18nMessage } from "@lookiero/i18n-react";
4
4
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
5
5
  import { Header } from "../Header";
6
6
  import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
7
- import { style } from "./CheckoutHeader.style";
7
+ import { style as checkoutHeader } from "./CheckoutHeader.style";
8
8
  const CheckoutHeader = ({ onBack }) => {
9
9
  const title = useI18nMessage({ domain: DOMAIN, id: I18nMessages.HEADER_COMPLETE_CHECKOUT_TITLE });
10
+ const style = useMemo(() => checkoutHeader(), []);
10
11
  return (React.createElement(Header, { testID: "checkout-header" },
11
12
  React.createElement(ButtonIcon, { name: "arrow_left", style: style.button, testID: "arrow-left-button-icon", onPress: onBack }),
12
13
  React.createElement(Text, { level: 3, action: true }, title),
@@ -1,4 +1,4 @@
1
- declare const style: {
1
+ declare const style: () => {
2
2
  button: {
3
3
  alignSelf: "auto";
4
4
  height: number;