@lookiero/checkout 11.2.0 → 11.3.1

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 (96) hide show
  1. package/dist/src/ExpoRoot.js +1 -1
  2. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +4 -3
  3. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +3 -0
  4. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +3 -0
  5. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +1 -1
  6. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.d.ts +1 -0
  7. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +2 -1
  8. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.js +5 -5
  9. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.js +5 -5
  10. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.js +5 -5
  11. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +2 -1
  12. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +2 -3
  13. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +2 -2
  14. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.d.ts +3 -0
  15. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.js +4 -1
  16. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +2 -2
  17. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.d.ts +1 -0
  18. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.js +2 -1
  19. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +19 -3
  20. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.d.ts +21 -1
  21. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.js +22 -2
  22. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
  23. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +3 -2
  24. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +3 -2
  25. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +4 -3
  26. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +10 -9
  27. package/dist/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +4 -3
  28. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +4 -4
  29. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +2 -0
  30. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +2 -0
  31. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +4 -4
  32. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +5 -2
  33. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +6 -3
  34. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +2 -1
  35. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +2 -2
  36. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.d.ts +3 -0
  37. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.js +4 -1
  38. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +7 -7
  39. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.d.ts +3 -0
  40. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.js +4 -1
  41. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +9 -6
  42. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +4 -4
  43. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.d.ts +3 -0
  44. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +4 -1
  45. package/dist/src/infrastructure/ui/views/summary/Summary.js +10 -9
  46. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +2 -1
  47. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +8 -5
  48. package/dist/src/version.d.ts +1 -1
  49. package/dist/src/version.js +1 -1
  50. package/package.json +1 -1
  51. package/src/ExpoRoot.tsx +2 -1
  52. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +3 -0
  53. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +5 -3
  54. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.ts +2 -1
  55. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.tsx +1 -0
  56. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.tsx +5 -5
  57. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.tsx +5 -5
  58. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.tsx +5 -5
  59. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +2 -1
  60. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +2 -3
  61. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.ts +4 -1
  62. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +2 -2
  63. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.ts +2 -1
  64. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +2 -2
  65. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.ts +33 -2
  66. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +34 -13
  67. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +1 -1
  68. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +3 -2
  69. package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +31 -80
  70. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +3 -2
  71. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +31 -80
  72. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +4 -3
  73. package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +62 -160
  74. package/src/infrastructure/ui/views/checkout/Checkout.tsx +12 -11
  75. package/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.tsx +4 -3
  76. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.ts +2 -0
  77. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +4 -4
  78. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +6 -3
  79. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +4 -4
  80. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +2 -1
  81. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.ts +5 -1
  82. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +2 -3
  83. package/src/infrastructure/ui/views/return/Return.test.tsx +2 -1
  84. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.ts +4 -1
  85. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +7 -7
  86. package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +11 -12
  87. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.test.tsx +2 -0
  88. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +10 -8
  89. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +6 -2
  90. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +4 -4
  91. package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +18 -0
  92. package/src/infrastructure/ui/views/summary/Summary.tsx +12 -11
  93. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +2 -1
  94. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +22 -6
  95. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +8 -5
  96. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +36 -0
@@ -50,7 +50,6 @@ exports[`ItemHeader template matches the snapshot 1`] = `
50
50
  testID="item-header"
51
51
  >
52
52
  <View
53
- accessibilityRole="button"
54
53
  accessibilityState={
55
54
  {
56
55
  "busy": undefined,
@@ -71,9 +70,7 @@ exports[`ItemHeader template matches the snapshot 1`] = `
71
70
  accessible={true}
72
71
  collapsable={false}
73
72
  focusable={true}
74
- onBlur={[Function]}
75
73
  onClick={[Function]}
76
- onFocus={[Function]}
77
74
  onResponderGrant={[Function]}
78
75
  onResponderMove={[Function]}
79
76
  onResponderRelease={[Function]}
@@ -81,93 +78,47 @@ exports[`ItemHeader template matches the snapshot 1`] = `
81
78
  onResponderTerminationRequest={[Function]}
82
79
  onStartShouldSetResponder={[Function]}
83
80
  style={
84
- [
85
- [
86
- {
87
- "_container": {
88
- "overflow": "hidden",
89
- },
90
- "_pressed": {
91
- "bottom": 0,
92
- "left": 0,
93
- "right": 0,
94
- "top": 0,
95
- },
96
- "alignSelf": "auto",
97
- "container": {
98
- "overflow": "hidden",
99
- },
100
- "height": 40,
101
- "overflow": "visible",
102
- "padding": 8,
103
- "pressed": {
104
- "bottom": 0,
105
- "left": 0,
106
- "right": 0,
107
- "top": 0,
108
- },
109
- "width": 40,
110
- },
111
- ],
112
- {
113
- "opacity": 1,
114
- },
115
- ]
81
+ {
82
+ "alignSelf": "auto",
83
+ "flexGrow": 0,
84
+ "height": 40,
85
+ "opacity": 1,
86
+ "padding": 8,
87
+ "width": 40,
88
+ }
116
89
  }
117
90
  testID="arrow-left-button-icon"
118
91
  >
119
- <View
92
+ <Text
93
+ accessibilityElementsHidden={true}
94
+ allowFontScaling={false}
95
+ importantForAccessibility="no"
96
+ selectable={false}
120
97
  style={
121
98
  [
122
99
  {
123
- "position": "relative",
100
+ "color": "#0C0A0A",
101
+ "fontFamily": "auroraicons",
102
+ "fontSize": 24,
103
+ "fontStyle": "normal",
104
+ "fontWeight": "normal",
105
+ "height": 24,
106
+ "letterSpacing": -0.2,
107
+ "lineHeight": 24,
108
+ "minHeight": 24,
109
+ "minWidth": 24,
110
+ "paddingBottom": 0,
111
+ "paddingLeft": 0,
112
+ "paddingRight": 0,
113
+ "paddingTop": 0,
114
+ "width": 24,
124
115
  },
125
116
  ]
126
117
  }
118
+ testID="icon"
127
119
  >
128
- <Text
129
- accessibilityElementsHidden={true}
130
- allowFontScaling={false}
131
- importantForAccessibility="no"
132
- selectable={false}
133
- style={
134
- [
135
- {
136
- "color": "#0C0A0A",
137
- "fontFamily": "auroraicons",
138
- "fontSize": 24,
139
- "fontStyle": "normal",
140
- "fontWeight": "normal",
141
- "height": 24,
142
- "width": 24,
143
- },
144
- ]
145
- }
146
- >
147
-
148
- </Text>
149
- <View
150
- collapsable={false}
151
- style={
152
- {
153
- "backgroundColor": "#F45545",
154
- "borderColor": "#FFFFFF",
155
- "borderRadius": 9999,
156
- "borderWidth": 2,
157
- "height": 10,
158
- "position": "absolute",
159
- "right": 0,
160
- "top": 0,
161
- "transform": [
162
- {
163
- "scale": 0,
164
- },
165
- ],
166
- "width": 10,
167
- }
168
- }
169
- />
170
- </View>
120
+
121
+ </Text>
171
122
  </View>
172
123
  <Text
173
124
  allowFontScaling={false}
@@ -191,7 +142,6 @@ exports[`ItemHeader template matches the snapshot 1`] = `
191
142
  header.checkout_title
192
143
  </Text>
193
144
  <View
194
- accessibilityRole="button"
195
145
  accessibilityState={
196
146
  {
197
147
  "busy": undefined,
@@ -212,9 +162,7 @@ exports[`ItemHeader template matches the snapshot 1`] = `
212
162
  accessible={true}
213
163
  collapsable={false}
214
164
  focusable={true}
215
- onBlur={[Function]}
216
165
  onClick={[Function]}
217
- onFocus={[Function]}
218
166
  onResponderGrant={[Function]}
219
167
  onResponderMove={[Function]}
220
168
  onResponderRelease={[Function]}
@@ -222,93 +170,47 @@ exports[`ItemHeader template matches the snapshot 1`] = `
222
170
  onResponderTerminationRequest={[Function]}
223
171
  onStartShouldSetResponder={[Function]}
224
172
  style={
225
- [
226
- [
227
- {
228
- "_container": {
229
- "overflow": "hidden",
230
- },
231
- "_pressed": {
232
- "bottom": 0,
233
- "left": 0,
234
- "right": 0,
235
- "top": 0,
236
- },
237
- "alignSelf": "auto",
238
- "container": {
239
- "overflow": "hidden",
240
- },
241
- "height": 40,
242
- "overflow": "visible",
243
- "padding": 8,
244
- "pressed": {
245
- "bottom": 0,
246
- "left": 0,
247
- "right": 0,
248
- "top": 0,
249
- },
250
- "width": 40,
251
- },
252
- ],
253
- {
254
- "opacity": 1,
255
- },
256
- ]
173
+ {
174
+ "alignSelf": "auto",
175
+ "flexGrow": 0,
176
+ "height": 40,
177
+ "opacity": 1,
178
+ "padding": 8,
179
+ "width": 40,
180
+ }
257
181
  }
258
182
  testID="arrow-right-button-icon"
259
183
  >
260
- <View
184
+ <Text
185
+ accessibilityElementsHidden={true}
186
+ allowFontScaling={false}
187
+ importantForAccessibility="no"
188
+ selectable={false}
261
189
  style={
262
190
  [
263
191
  {
264
- "position": "relative",
192
+ "color": "#0C0A0A",
193
+ "fontFamily": "auroraicons",
194
+ "fontSize": 24,
195
+ "fontStyle": "normal",
196
+ "fontWeight": "normal",
197
+ "height": 24,
198
+ "letterSpacing": -0.2,
199
+ "lineHeight": 24,
200
+ "minHeight": 24,
201
+ "minWidth": 24,
202
+ "paddingBottom": 0,
203
+ "paddingLeft": 0,
204
+ "paddingRight": 0,
205
+ "paddingTop": 0,
206
+ "width": 24,
265
207
  },
266
208
  ]
267
209
  }
210
+ testID="icon"
268
211
  >
269
- <Text
270
- accessibilityElementsHidden={true}
271
- allowFontScaling={false}
272
- importantForAccessibility="no"
273
- selectable={false}
274
- style={
275
- [
276
- {
277
- "color": "#0C0A0A",
278
- "fontFamily": "auroraicons",
279
- "fontSize": 24,
280
- "fontStyle": "normal",
281
- "fontWeight": "normal",
282
- "height": 24,
283
- "width": 24,
284
- },
285
- ]
286
- }
287
- >
288
-
289
- </Text>
290
- <View
291
- collapsable={false}
292
- style={
293
- {
294
- "backgroundColor": "#F45545",
295
- "borderColor": "#FFFFFF",
296
- "borderRadius": 9999,
297
- "borderWidth": 2,
298
- "height": 10,
299
- "position": "absolute",
300
- "right": 0,
301
- "top": 0,
302
- "transform": [
303
- {
304
- "scale": 0,
305
- },
306
- ],
307
- "width": 10,
308
- }
309
- }
310
- />
311
- </View>
212
+
213
+ </Text>
312
214
  </View>
313
215
  </View>
314
216
  </View>
@@ -1,11 +1,11 @@
1
1
  import React, { FC, useCallback, useMemo, useState } from "react";
2
2
  import { LayoutRectangle, Platform, ScrollView, View } from "react-native";
3
3
  import { useNavigate } from "react-router-native";
4
- import { Box, Button, Layout as AuroraLayout, Spinner, Text, useDevice } from "@lookiero/aurora";
4
+ import { Box, Button, Layout as AuroraLayout, Spinner, Text } from "@lookiero/aurora";
5
5
  import { useI18nMessage } from "@lookiero/i18n-react";
6
6
  import { QueryStatus } from "@lookiero/messaging-react";
7
7
  import { Country } from "@lookiero/sty-psp-locale";
8
- import { Layout as UiLayout, Sticky } from "@lookiero/sty-psp-ui";
8
+ import { Layout as UiLayout, Sticky, useScreenSize } from "@lookiero/sty-psp-ui";
9
9
  import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
10
10
  import { OrderProjection } from "../../../../projection/order/order";
11
11
  import { SubscriptionProjection } from "../../../../projection/subscription/subscription";
@@ -48,12 +48,13 @@ const Checkout: FC<CheckoutProps> = ({
48
48
  customer: { customerId, country, segment },
49
49
  basePath,
50
50
  } = useStaticInfo();
51
+ const screenSize = useScreenSize();
52
+ const isDektopScreen = screenSize === "L";
51
53
 
52
54
  const style = useMemo(() => checkoutStyle(), []);
53
55
 
54
56
  const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.CHECKOUT_TITLE });
55
57
  const submitButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.CHECKOUT_PAY_BUTTON });
56
- const { screen } = useDevice();
57
58
  const [pricingHeight, setPricingHeight] = useState(0);
58
59
  const handleOnPricingLayout = useCallback(({ height }: LayoutRectangle) => setPricingHeight(height), []);
59
60
 
@@ -134,11 +135,11 @@ const Checkout: FC<CheckoutProps> = ({
134
135
  {hasReplacedCheckoutItem && <DeliveryBanner />}
135
136
 
136
137
  <AuroraLayout
137
- fullWidth={!screen.L}
138
- style={[screen.L && style.desktopLayoutSpacing, !screen.L && { paddingBottom: pricingHeight }]}
138
+ fullWidth={!isDektopScreen}
139
+ style={[isDektopScreen && style.desktopLayoutSpacing, !isDektopScreen && { paddingBottom: pricingHeight }]}
139
140
  >
140
- <Box size={{ L: "2/3" }} style={screen.L && style.desktopListSpacing}>
141
- <View style={[style.contentWrapper, screen.L && style.desktopContentWrapper]}>
141
+ <Box size={{ L: "2/3" }} style={isDektopScreen && style.desktopListSpacing}>
142
+ <View style={[style.contentWrapper, isDektopScreen && style.desktopContentWrapper]}>
142
143
  {country === Country.NL && (
143
144
  <View style={style.paymentSelectorNL}>
144
145
  <PaymentInstrument useRedirect={useRedirect} />
@@ -176,12 +177,12 @@ const Checkout: FC<CheckoutProps> = ({
176
177
  </View>
177
178
  </Box>
178
179
 
179
- <Box size={{ L: "1/3" }} style={[style.resume, screen.L && style.desktopResume]}>
180
+ <Box size={{ L: "1/3" }} style={[style.resume, isDektopScreen && style.desktopResume]}>
180
181
  {pricing ? (
181
- <View style={[style.princingWrapper, !screen.L && style.princingWrapperSmall]}>
182
+ <View style={[style.princingWrapper, !isDektopScreen && style.princingWrapperSmall]}>
182
183
  <Pricing pricing={pricing} totalCheckoutItemsKept={checkoutItemsKept?.length || 0} />
183
184
 
184
- {screen.L ? (
185
+ {isDektopScreen ? (
185
186
  <Button
186
187
  busy={checkoutFlowStatus === "loading"}
187
188
  testID="confirm-checkout-button"
@@ -196,7 +197,7 @@ const Checkout: FC<CheckoutProps> = ({
196
197
  </AuroraLayout>
197
198
  </ScrollView>
198
199
 
199
- {pricing && !screen.L ? (
200
+ {pricing && !isDektopScreen ? (
200
201
  <Sticky style={style.sticky} onLayout={Platform.OS !== "web" ? handleOnPricingLayout : undefined}>
201
202
  <Body>
202
203
  <Button
@@ -1,14 +1,15 @@
1
1
  import React from "react";
2
- import { ALIGN, InfoBox, INFOBOX_TYPE, useDevice } from "@lookiero/aurora";
2
+ import { ALIGN, InfoBox, INFOBOX_TYPE } from "@lookiero/aurora";
3
3
  import { useI18nMessage } from "@lookiero/i18n-react";
4
+ import { useScreenSize } from "@lookiero/sty-psp-ui";
4
5
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
5
6
 
6
7
  const DeliveryBanner = () => {
7
- const { screen } = useDevice();
8
+ const screenSize = useScreenSize();
8
9
 
9
10
  return (
10
11
  <InfoBox
11
- contentAlign={screen.L ? ALIGN.CENTER : undefined}
12
+ contentAlign={screenSize === "L" ? ALIGN.CENTER : undefined}
12
13
  testID="delivery-banner"
13
14
  text={useI18nMessage({ domain: DOMAIN, id: I18nMessages.CHECKOUT_DELIVERY_BANNER })}
14
15
  type={INFOBOX_TYPE.SQUARED}
@@ -9,6 +9,7 @@ const style = () => {
9
9
  flex: 0,
10
10
  },
11
11
  buttonText: {
12
+ textAlign: "center",
12
13
  width: "100%",
13
14
  },
14
15
  confirmButton: {
@@ -22,6 +23,7 @@ const style = () => {
22
23
  paddingHorizontal: space6,
23
24
  },
24
25
  title: {
26
+ textAlign: "center",
25
27
  width: "100%",
26
28
  },
27
29
  });
@@ -1,6 +1,6 @@
1
1
  import React, { FC, useMemo } from "react";
2
2
  import { View } from "react-native";
3
- import { ALIGN, Button, BUTTON_VARIANT, Text } from "@lookiero/aurora";
3
+ import { Button, BUTTON_VARIANT, Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
5
  import { Modal } from "@lookiero/sty-psp-ui";
6
6
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
@@ -28,19 +28,19 @@ const GetOutOfCheckoutModal: FC<GetOutOfCheckoutModalProps> = ({ visible, onDism
28
28
  return (
29
29
  <Modal portalHostName="Checkout" visible={visible} onClose={onDismiss}>
30
30
  <View style={style.modalContent}>
31
- <Text align={ALIGN.CENTER} level={1} style={style.title}>
31
+ <Text level={1} style={style.title}>
32
32
  {titleText}
33
33
  </Text>
34
34
  <Text level={3} style={style.description}>
35
35
  {descriptionText}
36
36
  </Text>
37
37
  <Button style={style.button} onPress={onDismiss}>
38
- <Text align={ALIGN.CENTER} level={3} selectable={false} style={style.buttonText} action upperCase>
38
+ <Text level={3} selectable={false} style={style.buttonText} action upperCase>
39
39
  {dismissButtonText}
40
40
  </Text>
41
41
  </Button>
42
42
  <Button style={[style.button, style.confirmButton]} variant={BUTTON_VARIANT.SECONDARY} onPress={onConfirm}>
43
- <Text align={ALIGN.CENTER} level={3} selectable={false} style={style.buttonText} action upperCase>
43
+ <Text level={3} selectable={false} style={style.buttonText} action upperCase>
44
44
  {confirmButtonText}
45
45
  </Text>
46
46
  </Button>
@@ -2,16 +2,19 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
4
  const style = () => {
5
- const { space1, space4, space6 } = theme();
5
+ const { colorTextMedium, space1, space4, space6 } = theme();
6
6
 
7
7
  return StyleSheet.create({
8
8
  brand: {
9
- flex: 1,
10
- gap: space1,
9
+ color: colorTextMedium,
11
10
  },
12
11
  container: {
13
12
  width: "100%",
14
13
  },
14
+ content: {
15
+ flex: 1,
16
+ gap: space1,
17
+ },
15
18
  info: {
16
19
  display: "flex",
17
20
  flexDirection: "row",
@@ -1,6 +1,6 @@
1
1
  import React, { FC, useMemo } from "react";
2
2
  import { View } from "react-native";
3
- import { COLOR, Text } from "@lookiero/aurora";
3
+ import { Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
5
  import { Country } from "@lookiero/sty-psp-locale";
6
6
  import { useScreenSize } from "@lookiero/sty-psp-ui";
@@ -33,10 +33,10 @@ const ProductVariantDescription: FC<ProductVariantDescriptionProps> = ({
33
33
  const style = useMemo(() => productVariantDescriptionStyle(), []);
34
34
 
35
35
  return (
36
- <View style={[style.container, isDesktopScreen ? null : style.smallContainer]}>
36
+ <View style={[style.container, !isDesktopScreen && style.smallContainer]}>
37
37
  <View style={style.info}>
38
- <View style={style.brand}>
39
- <Text color={COLOR.TEXT_MEDIUM} level={1} detail>
38
+ <View style={style.content}>
39
+ <Text level={1} style={style.brand} detail>
40
40
  {brand}
41
41
  </Text>
42
42
  <Text level={1} detailBold>
@@ -1,7 +1,8 @@
1
1
  import React, { FC, useMemo } from "react";
2
2
  import { View } from "react-native";
3
- import { ButtonIcon, Text } from "@lookiero/aurora";
3
+ import { Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
+ import { ButtonIcon } from "@lookiero/sty-psp-ui";
5
6
  import { ReturnQuestionProjection } from "../../../../../../projection/returnQuestion/returnQuestion";
6
7
  import { ReturnQuestionType } from "../../../../../../projection/returnQuestion/returnQuestion.constants";
7
8
  import { ReturnQuestions } from "../../../../components/organisms/returnQuestions/ReturnQuestions";
@@ -2,7 +2,8 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
4
  const style = () => {
5
- const { borderWidth1, colorBgPrimaryLight, colorBorderInteractive, space1, space5, space6 } = theme();
5
+ const { borderWidth1, colorBgPrimaryLight, colorBorderInteractive, colorTextMedium, space1, space5, space6 } =
6
+ theme();
6
7
 
7
8
  const styles = StyleSheet.create({
8
9
  modalContent: {
@@ -20,6 +21,9 @@ const style = () => {
20
21
  optionText: {
21
22
  lineHeight: space6,
22
23
  },
24
+ textActive: {
25
+ color: colorTextMedium,
26
+ },
23
27
  });
24
28
 
25
29
  return {
@@ -1,6 +1,6 @@
1
1
  import React, { FC, useCallback, useMemo } from "react";
2
2
  import { StyleProp, TextStyle, TouchableHighlight, View, ViewStyle } from "react-native";
3
- import { COLOR, Text } from "@lookiero/aurora";
3
+ import { Text } from "@lookiero/aurora";
4
4
  import { Modal } from "@lookiero/sty-psp-ui";
5
5
  import { style as modalStyle } from "./SelectModal.style";
6
6
 
@@ -75,9 +75,8 @@ const SelectModal: FC<SelectModalProps> = ({
75
75
  onPress={value !== optionValue ? () => handleOnPressOption(optionValue) : undefined}
76
76
  >
77
77
  <Text
78
- color={value === optionValue ? COLOR.TEXT_MEDIUM : COLOR.TEXT}
79
78
  level={3}
80
- style={[style.optionText as ViewStyle, customStyle?.optionText]}
79
+ style={[style.optionText, value === optionValue && style.textActive, customStyle?.optionText]}
81
80
  >
82
81
  {label}
83
82
  </Text>
@@ -3,6 +3,7 @@ import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
3
3
  import { Country } from "@lookiero/sty-psp-locale";
4
4
  import { Segment } from "@lookiero/sty-psp-segment";
5
5
  import { DummyLayout } from "@lookiero/sty-psp-ui";
6
+ import { Tradename } from "@lookiero/sty-sp-tradename";
6
7
  import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
7
8
  import { useReturnCheckoutItem } from "../../../domain/checkoutItem/react/useReturnCheckoutItem";
8
9
  import { checkout } from "../../../projection/checkout/checkout.mock";
@@ -25,7 +26,7 @@ const mockCheckout = checkout({
25
26
  const mockFirstCheckoutItemId = mockCheckout.items[0]?.id;
26
27
 
27
28
  jest.mock("../../hooks/useStaticInfo", () => ({
28
- useStaticInfo: () => ({ customer: { customerId, country, segment } }),
29
+ useStaticInfo: () => ({ customer: { customerId, country, segment }, tradename: Tradename.LOOKIERO }),
29
30
  }));
30
31
 
31
32
  jest.mock("react-router-native", () => ({
@@ -4,7 +4,7 @@ import { theme } from "@lookiero/sty-psp-ui";
4
4
  const IMAGE_SIZE = 35;
5
5
 
6
6
  const style = () => {
7
- const { borderRadius2, borderWidth1, colorBgBase, colorBorderInput, space2, space4 } = theme();
7
+ const { borderRadius2, borderWidth1, colorBgBase, colorBorderInput, colorTextMedium, space2, space4 } = theme();
8
8
 
9
9
  return StyleSheet.create({
10
10
  content: {
@@ -29,6 +29,9 @@ const style = () => {
29
29
  flex: 1,
30
30
  justifyContent: "center",
31
31
  },
32
+ text: {
33
+ color: colorTextMedium,
34
+ },
32
35
  wrapper: {
33
36
  backgroundColor: colorBgBase,
34
37
  flexDirection: "row",
@@ -1,9 +1,9 @@
1
1
  import React, { FC, useMemo } from "react";
2
- import { Image } from "react-native";
3
- import { COLOR, Text, View, useDevice } from "@lookiero/aurora";
2
+ import { Image, View } from "react-native";
3
+ import { Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
5
  import { Country } from "@lookiero/sty-psp-locale";
6
- import { Column, Row } from "@lookiero/sty-psp-ui";
6
+ import { Column, Row, useScreenSize } from "@lookiero/sty-psp-ui";
7
7
  import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
8
8
  import { size } from "../../../../../../projection/size/size";
9
9
  import { useMediaImage } from "../../../../hooks/useMediaImage";
@@ -18,7 +18,7 @@ interface ProductVariantPreviewProps {
18
18
 
19
19
  const ProductVariantPreview: FC<ProductVariantPreviewProps> = ({ item, country }) => {
20
20
  const cdnImageUrl = useMediaImage();
21
- const { screen } = useDevice();
21
+ const screenSize = useScreenSize();
22
22
 
23
23
  const sizeText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_SIZE });
24
24
  const uniqueText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_UNIQUE });
@@ -33,7 +33,7 @@ const ProductVariantPreview: FC<ProductVariantPreviewProps> = ({ item, country }
33
33
  const style = useMemo(() => productVariantPreviewStyle(), []);
34
34
 
35
35
  return (
36
- <View style={[style.wrapper, !screen.S && style.mobileWrapper]} testID="product-variant-preview">
36
+ <View style={[style.wrapper, screenSize === "S" && style.mobileWrapper]} testID="product-variant-preview">
37
37
  <Row style={style.row}>
38
38
  <Column size={{ M: "2/3", L: "2/3" }} style={style.content}>
39
39
  {mainImage && (
@@ -51,13 +51,13 @@ const ProductVariantPreview: FC<ProductVariantPreviewProps> = ({ item, country }
51
51
  )}
52
52
 
53
53
  <View style={style.info}>
54
- <Text color={COLOR.TEXT_MEDIUM} level={2} detail>
54
+ <Text level={2} style={style.text} detail>
55
55
  {brand}
56
56
  </Text>
57
57
  <Text level={2} detail>
58
58
  {name}
59
59
  </Text>
60
- <Text color={COLOR.TEXT_MEDIUM} level={2} detail>
60
+ <Text level={2} style={style.text} detail>
61
61
  {`${sizeText} ${sizeProjection.unique ? uniqueText : size({ size: sizeProjection, country })}`}
62
62
  </Text>
63
63
  </View>
@@ -32,12 +32,15 @@ exports[`ProductVariantPreview matches the snapshot 1`] = `
32
32
  <View
33
33
  style={
34
34
  [
35
- false,
36
35
  {
37
36
  "backgroundColor": "#FFFFFF",
38
37
  "flexDirection": "row",
39
38
  "padding": 16,
40
39
  },
40
+ {
41
+ "borderBottomWidth": 1,
42
+ "borderColor": "#DAD8D8",
43
+ },
41
44
  ]
42
45
  }
43
46
  testID="product-variant-preview"
@@ -92,12 +95,10 @@ exports[`ProductVariantPreview matches the snapshot 1`] = `
92
95
  />
93
96
  <View
94
97
  style={
95
- [
96
- {
97
- "flex": 1,
98
- "marginLeft": 8,
99
- },
100
- ]
98
+ {
99
+ "flex": 1,
100
+ "marginLeft": 8,
101
+ }
101
102
  }
102
103
  >
103
104
  <Text
@@ -166,11 +167,9 @@ exports[`ProductVariantPreview matches the snapshot 1`] = `
166
167
  </View>
167
168
  <View
168
169
  style={
169
- [
170
- {
171
- "justifyContent": "flex-end",
172
- },
173
- ]
170
+ {
171
+ "justifyContent": "flex-end",
172
+ }
174
173
  }
175
174
  >
176
175
  <View
@@ -5,6 +5,7 @@ import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
5
5
  import { Country } from "@lookiero/sty-psp-locale";
6
6
  import { Segment } from "@lookiero/sty-psp-segment";
7
7
  import { DummyLayout } from "@lookiero/sty-psp-ui";
8
+ import { Tradename } from "@lookiero/sty-sp-tradename";
8
9
  import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
9
10
  import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
10
11
  import { useReturnCheckoutItem } from "../../../../../domain/checkoutItem/react/useReturnCheckoutItem";
@@ -55,6 +56,7 @@ jest.mock("../../../../../tracking/useTrackReturnItem", () => ({
55
56
  jest.mock("../../../../hooks/useStaticInfo", () => ({
56
57
  useStaticInfo: () => ({
57
58
  basePath: "",
59
+ tradename: Tradename.LOOKIERO,
58
60
  }),
59
61
  }));
60
62