@lookiero/checkout 10.0.0-beta.1 → 10.0.0-beta.3

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 (229) hide show
  1. package/dist/index.js +2 -1
  2. package/dist/src/ExpoRoot.js +3 -2
  3. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +2 -1
  4. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +3 -2
  5. package/dist/src/infrastructure/ui/components/atoms/price/Price.js +3 -0
  6. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +7 -3
  7. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +18 -2
  8. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +14 -2
  9. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +2 -1
  10. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +2 -1
  11. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +4 -3
  12. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +0 -1
  13. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +0 -1
  14. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +3 -3
  15. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +3 -2
  16. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +4 -4
  17. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +3 -2
  18. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +3 -2
  19. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +2 -1
  20. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +5 -4
  21. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +6 -6
  22. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +4 -3
  23. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +0 -1
  24. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +0 -1
  25. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +2 -2
  26. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -2
  27. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +2 -2
  28. package/dist/src/infrastructure/ui/hooks/useCheckoutFlow.js +10 -18
  29. package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.d.ts +1 -1
  30. package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.js +55 -22
  31. package/dist/src/infrastructure/ui/i18n/i18n.d.ts +2 -1
  32. package/dist/src/infrastructure/ui/i18n/i18n.js +2 -1
  33. package/dist/src/infrastructure/ui/test/render.js +4 -2
  34. package/dist/src/infrastructure/ui/views/App.js +2 -1
  35. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +3 -3
  36. package/dist/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.js +16 -16
  37. package/dist/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +2 -2
  38. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +2 -2
  39. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +3 -3
  40. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +11 -5
  41. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +4 -4
  42. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +3 -3
  43. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +1 -0
  44. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +2 -1
  45. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +2 -2
  46. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +4 -4
  47. package/dist/src/infrastructure/ui/views/return/components/price/Price.js +3 -0
  48. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +3 -3
  49. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +4 -4
  50. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +1 -0
  51. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +2 -1
  52. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +4 -4
  53. package/dist/src/infrastructure/ui/views/summary/Summary.js +4 -4
  54. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +3 -2
  55. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +8 -6
  56. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +5 -5
  57. package/dist/src/version.d.ts +1 -1
  58. package/dist/src/version.js +1 -1
  59. package/index.ts +2 -1
  60. package/jest.config.js +2 -2
  61. package/package.json +7 -8
  62. package/src/ExpoRoot.tsx +3 -2
  63. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +3 -2
  64. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +3 -2
  65. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/__snapshots__/FiveItemsDiscountBanner.test.tsx.snap +1 -1
  66. package/src/infrastructure/ui/components/atoms/price/Price.tsx +3 -0
  67. package/src/infrastructure/ui/components/atoms/price/__snapshots__/Price.test.tsx.snap +3 -3
  68. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +25 -4
  69. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +13 -7
  70. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +2 -1
  71. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +2 -1
  72. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +0 -1
  73. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +4 -2
  74. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +3 -3
  75. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +3 -2
  76. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +5 -5
  77. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +3 -2
  78. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +3 -2
  79. package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +2 -1
  80. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +6 -5
  81. package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +7 -7
  82. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +0 -1
  83. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +4 -2
  84. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +2 -2
  85. package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +1 -1
  86. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -2
  87. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +1 -1
  88. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +2 -2
  89. package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +1 -1
  90. package/src/infrastructure/ui/hooks/useCheckoutFlow.test.tsx +302 -0
  91. package/src/infrastructure/ui/hooks/useCheckoutFlow.tsx +11 -20
  92. package/src/infrastructure/ui/i18n/i18n.ts +3 -1
  93. package/src/infrastructure/ui/test/render.tsx +6 -3
  94. package/src/infrastructure/ui/views/App.tsx +2 -1
  95. package/src/infrastructure/ui/views/checkout/Checkout.test.tsx +51 -40
  96. package/src/infrastructure/ui/views/checkout/Checkout.tsx +3 -3
  97. package/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.tsx +2 -2
  98. package/src/infrastructure/ui/views/checkout/components/deliveryBanner/__snapshots__/DeliveryBanner.test.tsx.snap +1 -1
  99. package/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.tsx +2 -2
  100. package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +3 -3
  101. package/src/infrastructure/ui/views/item/components/banner/__snapshots__/CustomerDecissionBanner.test.tsx.snap +3 -3
  102. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +11 -5
  103. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +160 -88
  104. package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +4 -4
  105. package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +244 -128
  106. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +2 -1
  107. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +3 -3
  108. package/src/infrastructure/ui/views/item/components/productVariantDescription/__snapshots__/ProductVariantDescription.test.tsx.snap +10 -8
  109. package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +30 -30
  110. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +2 -2
  111. package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +1 -1
  112. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +4 -4
  113. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +75 -41
  114. package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +105 -102
  115. package/src/infrastructure/ui/views/return/components/price/Price.tsx +3 -0
  116. package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap +3 -3
  117. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +3 -3
  118. package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +1 -1
  119. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +2 -1
  120. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +4 -4
  121. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +4 -4
  122. package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +30 -30
  123. package/src/infrastructure/ui/views/summary/Summary.tsx +4 -4
  124. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +3 -2
  125. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +154 -82
  126. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +8 -6
  127. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +5 -5
  128. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +62 -62
  129. package/dist/pact.config.d.ts +0 -21
  130. package/dist/pact.config.js +0 -16
  131. package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.d.ts +0 -1
  132. package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.js +0 -55
  133. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts +0 -1
  134. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +0 -116
  135. package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.d.ts +0 -1
  136. package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.js +0 -56
  137. package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.d.ts +0 -1
  138. package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.js +0 -51
  139. package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.d.ts +0 -1
  140. package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.js +0 -51
  141. package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.d.ts +0 -1
  142. package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.js +0 -51
  143. package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -13
  144. package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -19
  145. package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.d.ts +0 -1
  146. package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.js +0 -56
  147. package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.d.ts +0 -1
  148. package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.js +0 -57
  149. package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.d.ts +0 -1
  150. package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.js +0 -55
  151. package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.d.ts +0 -1
  152. package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.js +0 -120
  153. package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.d.ts +0 -1
  154. package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.js +0 -55
  155. package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.d.ts +0 -1
  156. package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.js +0 -55
  157. package/dist/src/infrastructure/ui/components/layouts/layout/Layout.d.ts +0 -22
  158. package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +0 -1
  159. package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +0 -7
  160. package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +0 -5
  161. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +0 -7
  162. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +0 -6
  163. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +0 -4
  164. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +0 -20
  165. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +0 -4
  166. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +0 -43
  167. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +0 -12
  168. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +0 -14
  169. package/dist/src/infrastructure/ui/components/templates/footer/Footer.d.ts +0 -3
  170. package/dist/src/infrastructure/ui/components/templates/footer/Footer.js +0 -13
  171. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +0 -7
  172. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +0 -21
  173. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +0 -8
  174. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +0 -12
  175. package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.d.ts +0 -12
  176. package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.js +0 -64
  177. package/dist/src/infrastructure/ui/i18n/fetchTranslations.d.ts +0 -10
  178. package/dist/src/infrastructure/ui/i18n/fetchTranslations.js +0 -17
  179. package/dist/src/infrastructure/ui/i18n/translationEndpoint.d.ts +0 -20
  180. package/dist/src/infrastructure/ui/i18n/translationEndpoint.js +0 -27
  181. package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -10
  182. package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +0 -27
  183. package/dist/src/infrastructure/ui/views/App.style.d.ts +0 -6
  184. package/dist/src/infrastructure/ui/views/App.style.js +0 -8
  185. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +0 -7
  186. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +0 -11
  187. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -12
  188. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -64
  189. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -12
  190. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -16
  191. package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +0 -40
  192. package/dist/src/infrastructure/ui/views/return/Return.style.js +0 -44
  193. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -14
  194. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +0 -28
  195. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +0 -7
  196. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +0 -11
  197. package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -26
  198. package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -21
  199. package/dist/src/projection/shared/country.d.ts +0 -14
  200. package/dist/src/projection/shared/country.js +0 -15
  201. package/dist/src/projection/shared/customer.d.ts +0 -9
  202. package/dist/src/projection/shared/customer.js +0 -1
  203. package/dist/src/projection/shared/locale.d.ts +0 -12
  204. package/dist/src/projection/shared/locale.js +0 -13
  205. package/dist/src/projection/shared/order.d.ts +0 -6
  206. package/dist/src/projection/shared/order.js +0 -1
  207. package/dist/src/projection/shared/price.d.ts +0 -11
  208. package/dist/src/projection/shared/price.js +0 -1
  209. package/dist/src/projection/shared/size.d.ts +0 -21
  210. package/dist/src/projection/shared/size.js +0 -4
  211. package/dist/src/projection/shared/subscription.d.ts +0 -2
  212. package/dist/src/projection/shared/subscription.js +0 -1
  213. package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.d.ts +0 -15
  214. package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.js +0 -16
  215. package/dist/src/shared/ui/components/atoms/error/Error.d.ts +0 -11
  216. package/dist/src/shared/ui/components/atoms/error/Error.js +0 -6
  217. package/dist/src/shared/ui/components/atoms/field/Field.d.ts +0 -14
  218. package/dist/src/shared/ui/components/atoms/field/Field.js +0 -29
  219. package/dist/src/shared/ui/components/atoms/field/Field.style.d.ts +0 -16
  220. package/dist/src/shared/ui/components/atoms/field/Field.style.js +0 -19
  221. package/dist/src/shared/ui/components/molecules/inputField/InputField.d.ts +0 -24
  222. package/dist/src/shared/ui/components/molecules/inputField/InputField.js +0 -28
  223. package/dist/src/shared/ui/components/molecules/inputField/InputField.style.d.ts +0 -29
  224. package/dist/src/shared/ui/components/molecules/inputField/InputField.style.js +0 -37
  225. package/src/infrastructure/ui/components/templates/footer/Footer.test.tsx +0 -15
  226. package/src/infrastructure/ui/components/templates/footer/Footer.tsx +0 -19
  227. package/src/infrastructure/ui/components/templates/footer/__snapshots__/Footer.test.tsx.snap +0 -1127
  228. package/src/infrastructure/ui/hooks/useCheckoutFlow.test.ts +0 -297
  229. package/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.test.tsx +0 -126
@@ -148,24 +148,14 @@ exports[`ItemActions component matches the snapshot 1`] = `
148
148
  "right": 0,
149
149
  "top": 0,
150
150
  },
151
- "alignContent": "center",
152
151
  "alignSelf": "flex-start",
153
- "backgroundColor": "#FFFFFF",
154
- "borderColor": "#0C0A0A",
155
- "borderRadius": 9999,
156
- "borderStyle": "solid",
157
- "borderWidth": 2,
158
152
  "container": {
159
153
  "overflow": "hidden",
160
154
  },
161
155
  "flex": 1,
162
156
  "height": 48,
163
- "justifyContent": "center",
164
157
  "marginRight": 8,
165
158
  "overflow": "hidden",
166
- "paddingLeft": 24,
167
- "paddingRight": 24,
168
- "position": "relative",
169
159
  "pressed": {
170
160
  "bottom": 0,
171
161
  "left": 0,
@@ -182,55 +172,105 @@ exports[`ItemActions component matches the snapshot 1`] = `
182
172
  }
183
173
  testID="size-selector"
184
174
  >
185
- <View
186
- collapsable={false}
187
- pointerEvents="none"
188
- style={
189
- {
190
- "backgroundColor": "#B7B3B3",
191
- "height": 48,
192
- "left": 0,
193
- "opacity": 0.7,
194
- "position": "absolute",
195
- "top": 0,
196
- "width": "0%",
197
- }
175
+ <ViewManagerAdapter_ExpoLinearGradient
176
+ colors={
177
+ [
178
+ 4294967295,
179
+ 4294967295,
180
+ ]
181
+ }
182
+ endPoint={
183
+ [
184
+ 1,
185
+ 0,
186
+ ]
187
+ }
188
+ startPoint={
189
+ [
190
+ 0,
191
+ 1,
192
+ ]
198
193
  }
199
- />
200
- <View
201
194
  style={
202
195
  [
203
196
  {
204
- "alignItems": "center",
205
- "flexDirection": "row",
197
+ "alignContent": "center",
198
+ "height": 64,
206
199
  "justifyContent": "center",
200
+ "overflow": "hidden",
201
+ "paddingLeft": 24,
202
+ "paddingRight": 24,
203
+ "position": "relative",
204
+ },
205
+ {
206
+ "borderColor": "#0C0A0A",
207
+ "borderStyle": "solid",
208
+ "borderWidth": 2,
209
+ "height": 64,
210
+ "paddingLeft": 24,
211
+ "paddingRight": 24,
212
+ },
213
+ undefined,
214
+ {
215
+ "height": 48,
216
+ },
217
+ false,
218
+ {
219
+ "borderRadius": 9999,
207
220
  },
208
221
  ]
209
222
  }
210
223
  >
211
- <Text
212
- allowFontScaling={false}
213
- selectable={false}
224
+ <View
225
+ collapsable={false}
226
+ pointerEvents="none"
227
+ style={
228
+ {
229
+ "backgroundColor": "#B7B3B3",
230
+ "height": 48,
231
+ "left": 0,
232
+ "opacity": 0.7,
233
+ "position": "absolute",
234
+ "top": 0,
235
+ "width": "0%",
236
+ }
237
+ }
238
+ />
239
+ <View
214
240
  style={
215
241
  [
216
242
  {
217
- "color": "#0C0C0A",
218
- "fontFamily": "AreaNormal-Extrabold",
219
- "fontSize": 15,
220
- "letterSpacing": -0.2,
221
- "lineHeight": 20,
222
- "paddingBottom": 0,
223
- "paddingLeft": 0,
224
- "paddingRight": 0,
225
- "paddingTop": 2,
226
- "textAlign": "center",
243
+ "alignItems": "center",
244
+ "flexDirection": "row",
245
+ "justifyContent": "center",
227
246
  },
228
247
  ]
229
248
  }
230
249
  >
231
- item.change_size_button
232
- </Text>
233
- </View>
250
+ <Text
251
+ allowFontScaling={false}
252
+ selectable={false}
253
+ style={
254
+ [
255
+ {
256
+ "color": "#0C0C0A",
257
+ "fontFamily": "AreaNormal-Extrabold",
258
+ "fontSize": 15,
259
+ "letterSpacing": -0.2,
260
+ "lineHeight": 20,
261
+ "paddingBottom": 0,
262
+ "paddingLeft": 0,
263
+ "paddingRight": 0,
264
+ "paddingTop": 0,
265
+ "textAlign": "center",
266
+ },
267
+ ]
268
+ }
269
+ >
270
+ item.change_size_button
271
+ </Text>
272
+ </View>
273
+ </ViewManagerAdapter_ExpoLinearGradient>
234
274
  </View>
235
275
  <View
236
276
  accessibilityRole="button"
@@ -277,23 +317,13 @@ exports[`ItemActions component matches the snapshot 1`] = `
277
317
  "right": 0,
278
318
  "top": 0,
279
319
  },
280
- "alignContent": "center",
281
320
  "alignSelf": "flex-start",
282
- "backgroundColor": "#FFFFFF",
283
- "borderColor": "#0C0A0A",
284
- "borderRadius": 9999,
285
- "borderStyle": "solid",
286
- "borderWidth": 2,
287
321
  "container": {
288
322
  "overflow": "hidden",
289
323
  },
290
324
  "flex": 1,
291
325
  "height": 48,
292
- "justifyContent": "center",
293
326
  "overflow": "hidden",
294
- "paddingLeft": 24,
295
- "paddingRight": 24,
296
- "position": "relative",
297
327
  "pressed": {
298
328
  "bottom": 0,
299
329
  "left": 0,
@@ -310,55 +340,105 @@ exports[`ItemActions component matches the snapshot 1`] = `
310
340
  }
311
341
  testID="return-button"
312
342
  >
313
- <View
314
- collapsable={false}
315
- pointerEvents="none"
316
- style={
317
- {
318
- "backgroundColor": "#B7B3B3",
319
- "height": 48,
320
- "left": 0,
321
- "opacity": 0.7,
322
- "position": "absolute",
323
- "top": 0,
324
- "width": "0%",
325
- }
343
+ <ViewManagerAdapter_ExpoLinearGradient
344
+ colors={
345
+ [
346
+ 4294967295,
347
+ 4294967295,
348
+ ]
349
+ }
350
+ endPoint={
351
+ [
352
+ 1,
353
+ 0,
354
+ ]
355
+ }
356
+ startPoint={
357
+ [
358
+ 0,
359
+ 1,
360
+ ]
326
361
  }
327
- />
328
- <View
329
362
  style={
330
363
  [
331
364
  {
332
- "alignItems": "center",
333
- "flexDirection": "row",
365
+ "alignContent": "center",
366
+ "height": 64,
334
367
  "justifyContent": "center",
368
+ "overflow": "hidden",
369
+ "paddingLeft": 24,
370
+ "paddingRight": 24,
371
+ "position": "relative",
372
+ },
373
+ {
374
+ "borderColor": "#0C0A0A",
375
+ "borderStyle": "solid",
376
+ "borderWidth": 2,
377
+ "height": 64,
378
+ "paddingLeft": 24,
379
+ "paddingRight": 24,
380
+ },
381
+ undefined,
382
+ {
383
+ "height": 48,
384
+ },
385
+ false,
386
+ {
387
+ "borderRadius": 9999,
335
388
  },
336
389
  ]
337
390
  }
338
391
  >
339
- <Text
340
- allowFontScaling={false}
341
- selectable={false}
392
+ <View
393
+ collapsable={false}
394
+ pointerEvents="none"
395
+ style={
396
+ {
397
+ "backgroundColor": "#B7B3B3",
398
+ "height": 48,
399
+ "left": 0,
400
+ "opacity": 0.7,
401
+ "position": "absolute",
402
+ "top": 0,
403
+ "width": "0%",
404
+ }
405
+ }
406
+ />
407
+ <View
342
408
  style={
343
409
  [
344
410
  {
345
- "color": "#0C0C0A",
346
- "fontFamily": "AreaNormal-Extrabold",
347
- "fontSize": 15,
348
- "letterSpacing": -0.2,
349
- "lineHeight": 20,
350
- "paddingBottom": 0,
351
- "paddingLeft": 0,
352
- "paddingRight": 0,
353
- "paddingTop": 2,
354
- "textAlign": "center",
411
+ "alignItems": "center",
412
+ "flexDirection": "row",
413
+ "justifyContent": "center",
355
414
  },
356
415
  ]
357
416
  }
358
417
  >
359
- item.return_button
360
- </Text>
361
- </View>
418
+ <Text
419
+ allowFontScaling={false}
420
+ selectable={false}
421
+ style={
422
+ [
423
+ {
424
+ "color": "#0C0C0A",
425
+ "fontFamily": "AreaNormal-Extrabold",
426
+ "fontSize": 15,
427
+ "letterSpacing": -0.2,
428
+ "lineHeight": 20,
429
+ "paddingBottom": 0,
430
+ "paddingLeft": 0,
431
+ "paddingRight": 0,
432
+ "paddingTop": 0,
433
+ "textAlign": "center",
434
+ },
435
+ ]
436
+ }
437
+ >
438
+ item.return_button
439
+ </Text>
440
+ </View>
441
+ </ViewManagerAdapter_ExpoLinearGradient>
362
442
  </View>
363
443
  </View>
364
444
  <View
@@ -406,19 +486,12 @@ exports[`ItemActions component matches the snapshot 1`] = `
406
486
  "right": 0,
407
487
  "top": 0,
408
488
  },
409
- "alignContent": "center",
410
489
  "alignSelf": "flex-start",
411
- "backgroundColor": "#0C0A0A",
412
- "borderRadius": 9999,
413
490
  "container": {
414
491
  "overflow": "hidden",
415
492
  },
416
493
  "height": 48,
417
- "justifyContent": "center",
418
494
  "overflow": "hidden",
419
- "paddingLeft": 24,
420
- "paddingRight": 24,
421
- "position": "relative",
422
495
  "pressed": {
423
496
  "bottom": 0,
424
497
  "left": 0,
@@ -435,55 +508,98 @@ exports[`ItemActions component matches the snapshot 1`] = `
435
508
  }
436
509
  testID="keep-button"
437
510
  >
438
- <View
439
- collapsable={false}
440
- pointerEvents="none"
441
- style={
442
- {
443
- "backgroundColor": "#716A6B",
444
- "height": 48,
445
- "left": 0,
446
- "opacity": 0.7,
447
- "position": "absolute",
448
- "top": 0,
449
- "width": "0%",
450
- }
511
+ <ViewManagerAdapter_ExpoLinearGradient
512
+ colors={
513
+ [
514
+ 4278979082,
515
+ 4278979082,
516
+ ]
517
+ }
518
+ endPoint={
519
+ [
520
+ 1,
521
+ 0,
522
+ ]
523
+ }
524
+ startPoint={
525
+ [
526
+ 0,
527
+ 1,
528
+ ]
451
529
  }
452
- />
453
- <View
454
530
  style={
455
531
  [
456
532
  {
457
- "alignItems": "center",
458
- "flexDirection": "row",
533
+ "alignContent": "center",
534
+ "height": 64,
459
535
  "justifyContent": "center",
536
+ "overflow": "hidden",
537
+ "paddingLeft": 24,
538
+ "paddingRight": 24,
539
+ "position": "relative",
540
+ },
541
+ {},
542
+ undefined,
543
+ {
544
+ "height": 48,
545
+ },
546
+ false,
547
+ {
548
+ "borderRadius": 9999,
460
549
  },
461
550
  ]
462
551
  }
463
552
  >
464
- <Text
465
- allowFontScaling={false}
466
- selectable={false}
553
+ <View
554
+ collapsable={false}
555
+ pointerEvents="none"
556
+ style={
557
+ {
558
+ "backgroundColor": "#716A6B",
559
+ "height": 48,
560
+ "left": 0,
561
+ "opacity": 0.7,
562
+ "position": "absolute",
563
+ "top": 0,
564
+ "width": "0%",
565
+ }
566
+ }
567
+ />
568
+ <View
467
569
  style={
468
570
  [
469
571
  {
470
- "color": "#FFFFFF",
471
- "fontFamily": "AreaNormal-Extrabold",
472
- "fontSize": 15,
473
- "letterSpacing": -0.2,
474
- "lineHeight": 20,
475
- "paddingBottom": 0,
476
- "paddingLeft": 0,
477
- "paddingRight": 0,
478
- "paddingTop": 2,
479
- "textAlign": "center",
572
+ "alignItems": "center",
573
+ "flexDirection": "row",
574
+ "justifyContent": "center",
480
575
  },
481
576
  ]
482
577
  }
483
578
  >
484
- item.keep_button
485
- </Text>
486
- </View>
579
+ <Text
580
+ allowFontScaling={false}
581
+ selectable={false}
582
+ style={
583
+ [
584
+ {
585
+ "color": "#FFFFFF",
586
+ "fontFamily": "AreaNormal-Extrabold",
587
+ "fontSize": 15,
588
+ "letterSpacing": -0.2,
589
+ "lineHeight": 20,
590
+ "paddingBottom": 0,
591
+ "paddingLeft": 0,
592
+ "paddingRight": 0,
593
+ "paddingTop": 0,
594
+ "textAlign": "center",
595
+ },
596
+ ]
597
+ }
598
+ >
599
+ item.keep_button
600
+ </Text>
601
+ </View>
602
+ </ViewManagerAdapter_ExpoLinearGradient>
487
603
  </View>
488
604
  </View>
489
605
  </View>
@@ -788,7 +904,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
788
904
  "paddingBottom": 0,
789
905
  "paddingLeft": 0,
790
906
  "paddingRight": 0,
791
- "paddingTop": 2,
907
+ "paddingTop": 0,
792
908
  },
793
909
  ]
794
910
  }
@@ -846,7 +962,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
846
962
  "paddingBottom": 0,
847
963
  "paddingLeft": 0,
848
964
  "paddingRight": 0,
849
- "paddingTop": 2,
965
+ "paddingTop": 0,
850
966
  },
851
967
  ]
852
968
  }
@@ -1,11 +1,12 @@
1
1
  import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
- const { space4, space6 } = theme();
4
+ const { space1, space4, space6 } = theme();
5
5
 
6
6
  const style = StyleSheet.create({
7
7
  brand: {
8
8
  flex: 1,
9
+ gap: space1,
9
10
  },
10
11
  container: {
11
12
  width: "100%",
@@ -7,7 +7,7 @@ import { useScreenSize } from "@lookiero/sty-psp-ui";
7
7
  import { PriceProjection } from "../../../../../../projection/price/price";
8
8
  import { SizeProjection, size } from "../../../../../../projection/size/size";
9
9
  import { Price } from "../../../../components/atoms/price/Price";
10
- import { I18nMessages } from "../../../../i18n/i18n";
10
+ import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
11
11
  import { style } from "./ProductVariantDescription.style";
12
12
 
13
13
  interface ProductVariantDescriptionProps {
@@ -24,8 +24,8 @@ const ProductVariantDescription: FC<ProductVariantDescriptionProps> = ({
24
24
  size: sizeProjection,
25
25
  country,
26
26
  }) => {
27
- const sizeText = useI18nMessage({ id: I18nMessages.ITEM_SIZE });
28
- const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
27
+ const sizeText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_SIZE });
28
+ const uniqueText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_UNIQUE });
29
29
  const screenDevice = useScreenSize();
30
30
  const isDesktopScreen = screenDevice !== "S";
31
31
 
@@ -54,6 +54,7 @@ exports[`ProductVariantDescription component matches the snapshot for a non-uniq
54
54
  style={
55
55
  {
56
56
  "flex": 1,
57
+ "gap": 4,
57
58
  }
58
59
  }
59
60
  >
@@ -71,7 +72,7 @@ exports[`ProductVariantDescription component matches the snapshot for a non-uniq
71
72
  "paddingBottom": 0,
72
73
  "paddingLeft": 0,
73
74
  "paddingRight": 0,
74
- "paddingTop": 4,
75
+ "paddingTop": 0,
75
76
  },
76
77
  ]
77
78
  }
@@ -92,7 +93,7 @@ exports[`ProductVariantDescription component matches the snapshot for a non-uniq
92
93
  "paddingBottom": 0,
93
94
  "paddingLeft": 0,
94
95
  "paddingRight": 0,
95
- "paddingTop": 4,
96
+ "paddingTop": 0,
96
97
  },
97
98
  ]
98
99
  }
@@ -122,7 +123,7 @@ exports[`ProductVariantDescription component matches the snapshot for a non-uniq
122
123
  "paddingBottom": 0,
123
124
  "paddingLeft": 0,
124
125
  "paddingRight": 0,
125
- "paddingTop": 4,
126
+ "paddingTop": 0,
126
127
  },
127
128
  ]
128
129
  }
@@ -146,7 +147,7 @@ exports[`ProductVariantDescription component matches the snapshot for a non-uniq
146
147
  "paddingBottom": 0,
147
148
  "paddingLeft": 0,
148
149
  "paddingRight": 0,
149
- "paddingTop": 4,
150
+ "paddingTop": 0,
150
151
  },
151
152
  ]
152
153
  }
@@ -211,6 +212,7 @@ exports[`ProductVariantDescription component matches the snapshot for an unique
211
212
  style={
212
213
  {
213
214
  "flex": 1,
215
+ "gap": 4,
214
216
  }
215
217
  }
216
218
  >
@@ -228,7 +230,7 @@ exports[`ProductVariantDescription component matches the snapshot for an unique
228
230
  "paddingBottom": 0,
229
231
  "paddingLeft": 0,
230
232
  "paddingRight": 0,
231
- "paddingTop": 4,
233
+ "paddingTop": 0,
232
234
  },
233
235
  ]
234
236
  }
@@ -249,7 +251,7 @@ exports[`ProductVariantDescription component matches the snapshot for an unique
249
251
  "paddingBottom": 0,
250
252
  "paddingLeft": 0,
251
253
  "paddingRight": 0,
252
- "paddingTop": 4,
254
+ "paddingTop": 0,
253
255
  },
254
256
  ]
255
257
  }
@@ -279,7 +281,7 @@ exports[`ProductVariantDescription component matches the snapshot for an unique
279
281
  "paddingBottom": 0,
280
282
  "paddingLeft": 0,
281
283
  "paddingRight": 0,
282
- "paddingTop": 4,
284
+ "paddingTop": 0,
283
285
  },
284
286
  ]
285
287
  }
@@ -303,7 +305,7 @@ exports[`ProductVariantDescription component matches the snapshot for an unique
303
305
  "paddingBottom": 0,
304
306
  "paddingLeft": 0,
305
307
  "paddingRight": 0,
306
- "paddingTop": 4,
308
+ "paddingTop": 0,
307
309
  },
308
310
  ]
309
311
  }