@lookiero/checkout 10.0.0-beta.2 → 10.0.0-beta.4

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 (231) hide show
  1. package/dist/index.js +2 -1
  2. package/dist/src/Expo.js +2 -0
  3. package/dist/src/ExpoRoot.js +3 -2
  4. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +2 -1
  5. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +3 -2
  6. package/dist/src/infrastructure/ui/components/atoms/price/Price.js +3 -0
  7. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +7 -3
  8. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +18 -2
  9. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +14 -2
  10. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +2 -1
  11. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +2 -1
  12. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +4 -3
  13. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.d.ts +0 -1
  14. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.js +0 -1
  15. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +3 -3
  16. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +3 -2
  17. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +4 -4
  18. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +3 -2
  19. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +3 -2
  20. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +2 -1
  21. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +5 -4
  22. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +6 -6
  23. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +4 -3
  24. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.d.ts +0 -1
  25. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.js +0 -1
  26. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +2 -2
  27. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -2
  28. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +2 -2
  29. package/dist/src/infrastructure/ui/hooks/useCheckoutFlow.js +9 -9
  30. package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.d.ts +1 -1
  31. package/dist/src/infrastructure/ui/hooks/useSubmitCheckout.js +55 -22
  32. package/dist/src/infrastructure/ui/i18n/i18n.d.ts +2 -1
  33. package/dist/src/infrastructure/ui/i18n/i18n.js +2 -1
  34. package/dist/src/infrastructure/ui/test/render.js +4 -2
  35. package/dist/src/infrastructure/ui/views/App.js +2 -1
  36. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +3 -3
  37. package/dist/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.js +16 -16
  38. package/dist/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +2 -2
  39. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +2 -2
  40. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +3 -3
  41. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +11 -5
  42. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +4 -4
  43. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +3 -3
  44. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +1 -0
  45. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +2 -1
  46. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +2 -2
  47. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +4 -4
  48. package/dist/src/infrastructure/ui/views/return/components/price/Price.js +3 -0
  49. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +3 -3
  50. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +4 -4
  51. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +1 -0
  52. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +2 -1
  53. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +4 -4
  54. package/dist/src/infrastructure/ui/views/summary/Summary.js +4 -4
  55. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +3 -2
  56. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +8 -6
  57. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +5 -5
  58. package/dist/src/version.d.ts +1 -1
  59. package/dist/src/version.js +1 -1
  60. package/index.ts +2 -1
  61. package/jest.config.js +2 -2
  62. package/package.json +9 -9
  63. package/src/Expo.tsx +3 -0
  64. package/src/ExpoRoot.tsx +3 -2
  65. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +3 -2
  66. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +3 -2
  67. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/__snapshots__/FiveItemsDiscountBanner.test.tsx.snap +1 -1
  68. package/src/infrastructure/ui/components/atoms/price/Price.tsx +3 -0
  69. package/src/infrastructure/ui/components/atoms/price/__snapshots__/Price.test.tsx.snap +3 -3
  70. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +25 -4
  71. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +13 -7
  72. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +2 -1
  73. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +2 -1
  74. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.style.ts +0 -1
  75. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +4 -2
  76. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +3 -3
  77. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +3 -2
  78. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +5 -5
  79. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +3 -2
  80. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +3 -2
  81. package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +2 -1
  82. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +6 -5
  83. package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +7 -7
  84. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.style.ts +0 -1
  85. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +4 -2
  86. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +2 -2
  87. package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +1 -1
  88. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -2
  89. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +1 -1
  90. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +2 -2
  91. package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +1 -1
  92. package/src/infrastructure/ui/hooks/useCheckoutFlow.test.tsx +302 -0
  93. package/src/infrastructure/ui/hooks/useCheckoutFlow.tsx +9 -9
  94. package/src/infrastructure/ui/i18n/i18n.ts +3 -1
  95. package/src/infrastructure/ui/test/render.tsx +6 -3
  96. package/src/infrastructure/ui/views/App.tsx +2 -1
  97. package/src/infrastructure/ui/views/checkout/Checkout.test.tsx +51 -40
  98. package/src/infrastructure/ui/views/checkout/Checkout.tsx +3 -3
  99. package/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.tsx +2 -2
  100. package/src/infrastructure/ui/views/checkout/components/deliveryBanner/__snapshots__/DeliveryBanner.test.tsx.snap +1 -1
  101. package/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.tsx +2 -2
  102. package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +3 -3
  103. package/src/infrastructure/ui/views/item/components/banner/__snapshots__/CustomerDecissionBanner.test.tsx.snap +3 -3
  104. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +11 -5
  105. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +160 -88
  106. package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +4 -4
  107. package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +244 -128
  108. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +2 -1
  109. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +3 -3
  110. package/src/infrastructure/ui/views/item/components/productVariantDescription/__snapshots__/ProductVariantDescription.test.tsx.snap +10 -8
  111. package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +30 -30
  112. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +2 -2
  113. package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +1 -1
  114. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +4 -4
  115. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +75 -41
  116. package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +105 -102
  117. package/src/infrastructure/ui/views/return/components/price/Price.tsx +3 -0
  118. package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap +3 -3
  119. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +3 -3
  120. package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +1 -1
  121. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +2 -1
  122. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +4 -4
  123. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +4 -4
  124. package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +30 -30
  125. package/src/infrastructure/ui/views/summary/Summary.tsx +4 -4
  126. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +3 -2
  127. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +154 -82
  128. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +8 -6
  129. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +5 -5
  130. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +62 -62
  131. package/dist/pact.config.d.ts +0 -21
  132. package/dist/pact.config.js +0 -16
  133. package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.d.ts +0 -1
  134. package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.js +0 -55
  135. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts +0 -1
  136. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +0 -116
  137. package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.d.ts +0 -1
  138. package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.js +0 -56
  139. package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.d.ts +0 -1
  140. package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.js +0 -51
  141. package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.d.ts +0 -1
  142. package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.js +0 -51
  143. package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.d.ts +0 -1
  144. package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.js +0 -51
  145. package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -13
  146. package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -19
  147. package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.d.ts +0 -1
  148. package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.js +0 -56
  149. package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.d.ts +0 -1
  150. package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.js +0 -57
  151. package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.d.ts +0 -1
  152. package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.js +0 -55
  153. package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.d.ts +0 -1
  154. package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.js +0 -120
  155. package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.d.ts +0 -1
  156. package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.js +0 -55
  157. package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.d.ts +0 -1
  158. package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.js +0 -55
  159. package/dist/src/infrastructure/ui/components/layouts/layout/Layout.d.ts +0 -22
  160. package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +0 -1
  161. package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +0 -7
  162. package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +0 -5
  163. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +0 -7
  164. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +0 -6
  165. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +0 -4
  166. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +0 -20
  167. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +0 -4
  168. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +0 -43
  169. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +0 -12
  170. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +0 -14
  171. package/dist/src/infrastructure/ui/components/templates/footer/Footer.d.ts +0 -3
  172. package/dist/src/infrastructure/ui/components/templates/footer/Footer.js +0 -13
  173. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +0 -7
  174. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +0 -21
  175. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +0 -8
  176. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +0 -12
  177. package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.d.ts +0 -12
  178. package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.js +0 -64
  179. package/dist/src/infrastructure/ui/i18n/fetchTranslations.d.ts +0 -10
  180. package/dist/src/infrastructure/ui/i18n/fetchTranslations.js +0 -17
  181. package/dist/src/infrastructure/ui/i18n/translationEndpoint.d.ts +0 -20
  182. package/dist/src/infrastructure/ui/i18n/translationEndpoint.js +0 -27
  183. package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -10
  184. package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +0 -27
  185. package/dist/src/infrastructure/ui/views/App.style.d.ts +0 -6
  186. package/dist/src/infrastructure/ui/views/App.style.js +0 -8
  187. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +0 -7
  188. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +0 -11
  189. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -12
  190. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -64
  191. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -12
  192. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -16
  193. package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +0 -40
  194. package/dist/src/infrastructure/ui/views/return/Return.style.js +0 -44
  195. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -14
  196. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +0 -28
  197. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +0 -7
  198. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +0 -11
  199. package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -26
  200. package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -21
  201. package/dist/src/projection/shared/country.d.ts +0 -14
  202. package/dist/src/projection/shared/country.js +0 -15
  203. package/dist/src/projection/shared/customer.d.ts +0 -9
  204. package/dist/src/projection/shared/customer.js +0 -1
  205. package/dist/src/projection/shared/locale.d.ts +0 -12
  206. package/dist/src/projection/shared/locale.js +0 -13
  207. package/dist/src/projection/shared/order.d.ts +0 -6
  208. package/dist/src/projection/shared/order.js +0 -1
  209. package/dist/src/projection/shared/price.d.ts +0 -11
  210. package/dist/src/projection/shared/price.js +0 -1
  211. package/dist/src/projection/shared/size.d.ts +0 -21
  212. package/dist/src/projection/shared/size.js +0 -4
  213. package/dist/src/projection/shared/subscription.d.ts +0 -2
  214. package/dist/src/projection/shared/subscription.js +0 -1
  215. package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.d.ts +0 -15
  216. package/dist/src/shared/ui/components/atoms/aspectRatioView/AspectRatioView.js +0 -16
  217. package/dist/src/shared/ui/components/atoms/error/Error.d.ts +0 -11
  218. package/dist/src/shared/ui/components/atoms/error/Error.js +0 -6
  219. package/dist/src/shared/ui/components/atoms/field/Field.d.ts +0 -14
  220. package/dist/src/shared/ui/components/atoms/field/Field.js +0 -29
  221. package/dist/src/shared/ui/components/atoms/field/Field.style.d.ts +0 -16
  222. package/dist/src/shared/ui/components/atoms/field/Field.style.js +0 -19
  223. package/dist/src/shared/ui/components/molecules/inputField/InputField.d.ts +0 -24
  224. package/dist/src/shared/ui/components/molecules/inputField/InputField.js +0 -28
  225. package/dist/src/shared/ui/components/molecules/inputField/InputField.style.d.ts +0 -29
  226. package/dist/src/shared/ui/components/molecules/inputField/InputField.style.js +0 -37
  227. package/src/infrastructure/ui/components/templates/footer/Footer.test.tsx +0 -15
  228. package/src/infrastructure/ui/components/templates/footer/Footer.tsx +0 -19
  229. package/src/infrastructure/ui/components/templates/footer/__snapshots__/Footer.test.tsx.snap +0 -1127
  230. package/src/infrastructure/ui/hooks/useCheckoutFlow.test.ts +0 -297
  231. package/src/infrastructure/ui/views/checkout/components/checkoutPaymentModal/CheckoutPaymentModal.test.tsx +0 -126
@@ -1,24 +0,0 @@
1
- import { FC } from "react";
2
- import { StyleProp, TextStyle, ViewStyle } from "react-native";
3
- import { IconName, InputProperties } from "@lookiero/aurora";
4
- import { ErrorStyle } from "@lookiero/sty-psp-ui";
5
- import { FieldStyle } from "../../atoms/field/Field";
6
- type IconStyle = StyleProp<TextStyle>;
7
- type InputFieldStyle = FieldStyle & {
8
- readonly inputField: StyleProp<ViewStyle>;
9
- readonly error: ErrorStyle;
10
- readonly icon: IconStyle;
11
- };
12
- interface InputFieldBaseProps {
13
- readonly label: string;
14
- readonly multiline?: boolean;
15
- readonly error?: string | null;
16
- readonly style?: Partial<InputFieldStyle>;
17
- readonly onChange?: (value: string) => void;
18
- readonly icon?: IconName;
19
- }
20
- interface InputFieldProps extends Omit<InputProperties, keyof InputFieldBaseProps>, InputFieldBaseProps {
21
- }
22
- declare const InputField: FC<InputFieldProps>;
23
- export type { InputFieldStyle };
24
- export { InputField };
@@ -1,28 +0,0 @@
1
- import React, { useCallback, useState } from "react";
2
- import { View } from "react-native";
3
- import { COLOR, Icon, Input } from "@lookiero/aurora";
4
- import { Error, theme } from "@lookiero/sty-psp-ui";
5
- import { Field } from "../../atoms/field/Field";
6
- import { style } from "./InputField.style";
7
- const { colorBgBase, colorBorderInput, colorBorderInputError, colorBorderInputFocus, colorText, colorTextError, colorTextMedium, iconSize, space6, } = theme();
8
- const inputPaddingRightWithIcon = iconSize + space6;
9
- const InputField = ({ label, placeholder, value, multiline = false, error, style: customStyle, onChange = () => void 0, icon, testID = "input", ...inputRestProps }) => {
10
- const [isFocused, setIsFocused] = useState(false);
11
- const handleOnChange = useCallback((text) => onChange(text), [onChange]);
12
- const handleOnBlur = useCallback(() => setIsFocused(false), []);
13
- const handleOnFocus = useCallback(() => setIsFocused(true), []);
14
- const borderColor = error ? colorBorderInputError : isFocused ? colorBorderInputFocus : colorBorderInput;
15
- const color = error ? colorTextError : isFocused ? colorText : colorTextMedium;
16
- return (React.createElement(View, { style: [style.inputField, { borderColor }, customStyle?.inputField], testID: "input-field" },
17
- React.createElement(Field, { isFocused: isFocused || !!value, label: label, style: {
18
- field: [style.field, customStyle?.field],
19
- fieldText: [{ color }, customStyle?.fieldText],
20
- } }),
21
- React.createElement(Input, { autoCapitalize: "sentences", multiline: multiline, multilineMaxHeight: 242, placeholder: placeholder, placeholderTextColor: isFocused ? colorTextMedium : colorBgBase, style: [!!icon && { paddingRight: inputPaddingRightWithIcon }, style.input, { color }], testID: testID, value: value, onBlur: handleOnBlur,
22
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
23
- // @ts-ignore
24
- onChange: handleOnChange, onFocus: handleOnFocus, ...inputRestProps }),
25
- !!icon && React.createElement(Icon, { color: COLOR.GRAYSCALE_L, name: icon, style: [style.icon, customStyle?.icon], testID: "icon" }),
26
- !!error && React.createElement(Error, { error: error, style: [style.error, customStyle?.error] })));
27
- };
28
- export { InputField };
@@ -1,29 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- declare const style: StyleSheet.NamedStyles<any> | StyleSheet.NamedStyles<{
3
- error: {
4
- marginLeft: number;
5
- marginTop: number;
6
- };
7
- field: {
8
- left: number;
9
- maxWidth: "100%";
10
- position: "absolute";
11
- zIndex: number;
12
- };
13
- icon: {
14
- height: number;
15
- position: "absolute";
16
- right: number;
17
- top: number;
18
- width: number;
19
- zIndex: number;
20
- };
21
- input: {
22
- textOverflow?: string | undefined;
23
- };
24
- inputField: {
25
- borderRadius: number;
26
- borderWidth: number;
27
- };
28
- }>;
29
- export { style };
@@ -1,37 +0,0 @@
1
- import { StyleSheet, Platform } from "react-native";
2
- import { theme } from "@lookiero/sty-psp-ui";
3
- const { space1, space4, space6, borderRadius2, borderWidth1 } = theme();
4
- const style = StyleSheet.create({
5
- error: {
6
- marginLeft: space6,
7
- marginTop: space1,
8
- },
9
- field: {
10
- left: space4,
11
- maxWidth: "100%",
12
- position: "absolute",
13
- zIndex: 4,
14
- },
15
- icon: {
16
- height: 16,
17
- position: "absolute",
18
- right: space4,
19
- top: space4,
20
- width: 16,
21
- zIndex: 4,
22
- },
23
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24
- // @ts-ignore
25
- input: {
26
- ...Platform.select({
27
- web: {
28
- textOverflow: "ellipsis",
29
- },
30
- }),
31
- },
32
- inputField: {
33
- borderRadius: borderRadius2,
34
- borderWidth: borderWidth1,
35
- },
36
- });
37
- export { style };
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { render } from "../../../test/render";
3
- import { Footer } from "./Footer";
4
-
5
- jest.mock("react-router-native", () => ({
6
- useLocation: () => jest.fn(),
7
- }));
8
-
9
- describe("Footer template", () => {
10
- it("matches the snapshot", async () => {
11
- const { toJSON } = render(<Footer />);
12
-
13
- expect(toJSON()).toMatchSnapshot();
14
- });
15
- });
@@ -1,19 +0,0 @@
1
- import React, { FC } from "react";
2
- import { useLocation } from "react-router-native";
3
- import { Footer as AuroraFooter, FooterItem } from "@lookiero/aurora";
4
-
5
- const Footer: FC = () => {
6
- const location = useLocation();
7
-
8
- return (
9
- <AuroraFooter value={location.pathname}>
10
- <FooterItem icon="box" text="Inicio" value="/" />
11
- <FooterItem icon="heart" text="Look&Like" value="/look-and-like" />
12
- <FooterItem icon="referrals" text="Amigas" value="/friends" />
13
- <FooterItem icon="eye_open" text="Inspiración" value="/inspiration" />
14
- <FooterItem icon="inbox" notification={true} text="Mensajes" value="/messages" />
15
- </AuroraFooter>
16
- );
17
- };
18
-
19
- export { Footer };