@lookiero/checkout 14.3.1 → 14.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fake-dependencies/@lookiero/payments-front/index.js +1 -1
- package/dist/src/ExpoRoot.js +2 -2
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +3 -4
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -3
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -3
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +4 -5
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +1 -2
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +2 -3
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +2 -3
- package/dist/src/version.d.ts +2 -2
- package/dist/src/version.js +2 -2
- package/fake-dependencies/@lookiero/payments-front/index.tsx +1 -1
- package/package.json +3 -3
- package/src/ExpoRoot.tsx +2 -2
- package/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.ts +0 -3
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +3 -4
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +102 -144
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +8 -9
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +102 -233
- package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +192 -198
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +1 -2
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +30 -69
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +576 -594
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +2 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +2 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +62 -144
package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx
CHANGED
|
@@ -3,14 +3,13 @@ import React, { FC, useCallback, useMemo } from "react";
|
|
|
3
3
|
import { Platform, View } from "react-native";
|
|
4
4
|
import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
|
|
5
5
|
import { generatePath, useNavigate } from "react-router-native";
|
|
6
|
-
import { Box,
|
|
6
|
+
import { Box, Layout as AuroraLayout, Spinner } from "@lookiero/aurora";
|
|
7
7
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
8
8
|
import { CommandStatus } from "@lookiero/messaging-react";
|
|
9
9
|
import { Country } from "@lookiero/sty-psp-locale";
|
|
10
10
|
import { useLogger } from "@lookiero/sty-psp-logging";
|
|
11
11
|
import { Segment } from "@lookiero/sty-psp-segment";
|
|
12
|
-
import { Text } from "@lookiero/sty-psp-ui";
|
|
13
|
-
import { Layout as UiLayout, useScreenSize } from "@lookiero/sty-psp-ui";
|
|
12
|
+
import { Button, Layout as UiLayout, Text, useScreenSize } from "@lookiero/sty-psp-ui";
|
|
14
13
|
import { Tradename } from "@lookiero/sty-sp-tradename";
|
|
15
14
|
import { CheckoutProjection } from "../../../../../../projection/checkout/checkout";
|
|
16
15
|
import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { Pressable, View } from "react-native";
|
|
3
3
|
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
|
|
4
|
-
import { Button } from "@lookiero/aurora";
|
|
5
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
6
|
-
import { Icon, Text } from "@lookiero/sty-psp-ui";
|
|
5
|
+
import { Button, Icon, Text } from "@lookiero/sty-psp-ui";
|
|
7
6
|
import { Tradename } from "@lookiero/sty-sp-tradename";
|
|
8
7
|
import { PricingProjection } from "../../../../../../projection/pricing/pricing";
|
|
9
8
|
import { Price } from "../../../../components/atoms/price/Price";
|
|
@@ -79,7 +78,7 @@ const CollapsiblePricing: FC<CollapsiblePricingProps> = ({
|
|
|
79
78
|
</View>
|
|
80
79
|
|
|
81
80
|
<View style={style.collapsedContent}>
|
|
82
|
-
<Button testID="submit-checkout-collpased-button"
|
|
81
|
+
<Button size="small" testID="submit-checkout-collpased-button" onPress={onSubmit}>
|
|
83
82
|
{submitButtonText}
|
|
84
83
|
</Button>
|
|
85
84
|
</View>
|
|
@@ -185,7 +185,6 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
|
|
|
185
185
|
}
|
|
186
186
|
>
|
|
187
187
|
<View
|
|
188
|
-
accessibilityRole="button"
|
|
189
188
|
accessibilityState={
|
|
190
189
|
{
|
|
191
190
|
"busy": undefined,
|
|
@@ -206,9 +205,7 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
|
|
|
206
205
|
accessible={true}
|
|
207
206
|
collapsable={false}
|
|
208
207
|
focusable={true}
|
|
209
|
-
onBlur={[Function]}
|
|
210
208
|
onClick={[Function]}
|
|
211
|
-
onFocus={[Function]}
|
|
212
209
|
onLayout={[Function]}
|
|
213
210
|
onResponderGrant={[Function]}
|
|
214
211
|
onResponderMove={[Function]}
|
|
@@ -217,37 +214,10 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
|
|
|
217
214
|
onResponderTerminationRequest={[Function]}
|
|
218
215
|
onStartShouldSetResponder={[Function]}
|
|
219
216
|
style={
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
"overflow": "hidden",
|
|
225
|
-
},
|
|
226
|
-
"_pressed": {
|
|
227
|
-
"bottom": 0,
|
|
228
|
-
"left": 0,
|
|
229
|
-
"right": 0,
|
|
230
|
-
"top": 0,
|
|
231
|
-
},
|
|
232
|
-
"alignSelf": "flex-start",
|
|
233
|
-
"container": {
|
|
234
|
-
"overflow": "hidden",
|
|
235
|
-
},
|
|
236
|
-
"height": 48,
|
|
237
|
-
"overflow": "hidden",
|
|
238
|
-
"pressed": {
|
|
239
|
-
"bottom": 0,
|
|
240
|
-
"left": 0,
|
|
241
|
-
"right": 0,
|
|
242
|
-
"top": 0,
|
|
243
|
-
},
|
|
244
|
-
"width": "100%",
|
|
245
|
-
},
|
|
246
|
-
],
|
|
247
|
-
{
|
|
248
|
-
"opacity": 1,
|
|
249
|
-
},
|
|
250
|
-
]
|
|
217
|
+
{
|
|
218
|
+
"height": 48,
|
|
219
|
+
"opacity": 1,
|
|
220
|
+
}
|
|
251
221
|
}
|
|
252
222
|
testID="submit-checkout-collpased-button"
|
|
253
223
|
>
|
|
@@ -271,75 +241,64 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
|
|
|
271
241
|
]
|
|
272
242
|
}
|
|
273
243
|
style={
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
{},
|
|
285
|
-
undefined,
|
|
286
|
-
{
|
|
287
|
-
"height": 48,
|
|
288
|
-
},
|
|
289
|
-
false,
|
|
290
|
-
{
|
|
291
|
-
"borderRadius": 9999,
|
|
292
|
-
},
|
|
293
|
-
]
|
|
244
|
+
{
|
|
245
|
+
"alignContent": "center",
|
|
246
|
+
"borderRadius": 9999,
|
|
247
|
+
"height": 48,
|
|
248
|
+
"justifyContent": "center",
|
|
249
|
+
"overflow": "hidden",
|
|
250
|
+
"paddingLeft": 24,
|
|
251
|
+
"paddingRight": 24,
|
|
252
|
+
"position": "relative",
|
|
253
|
+
}
|
|
294
254
|
}
|
|
295
255
|
>
|
|
296
256
|
<View
|
|
297
|
-
collapsable={false}
|
|
298
257
|
pointerEvents="none"
|
|
299
258
|
style={
|
|
300
259
|
[
|
|
301
260
|
{
|
|
302
261
|
"backgroundColor": "#716A6B",
|
|
303
|
-
"height":
|
|
262
|
+
"height": "300%",
|
|
304
263
|
"left": 0,
|
|
305
264
|
"opacity": 0.7,
|
|
306
265
|
"position": "absolute",
|
|
307
266
|
"top": 0,
|
|
308
267
|
},
|
|
309
268
|
{
|
|
310
|
-
"width":
|
|
269
|
+
"width": 0,
|
|
311
270
|
},
|
|
312
271
|
]
|
|
313
272
|
}
|
|
314
273
|
/>
|
|
315
274
|
<View
|
|
316
275
|
style={
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
},
|
|
323
|
-
]
|
|
276
|
+
{
|
|
277
|
+
"alignItems": "center",
|
|
278
|
+
"flexDirection": "row",
|
|
279
|
+
"justifyContent": "center",
|
|
280
|
+
}
|
|
324
281
|
}
|
|
325
282
|
>
|
|
326
283
|
<Text
|
|
327
|
-
allowFontScaling={false}
|
|
328
|
-
selectable={false}
|
|
329
284
|
style={
|
|
330
285
|
[
|
|
331
286
|
{
|
|
332
|
-
"color": "#
|
|
287
|
+
"color": "#0C0A0A",
|
|
333
288
|
"fontFamily": "AreaNormal-Extrabold",
|
|
334
289
|
"fontSize": 15,
|
|
290
|
+
"fontStyle": "normal",
|
|
291
|
+
"fontWeight": "normal",
|
|
335
292
|
"letterSpacing": -0.2,
|
|
336
293
|
"lineHeight": 20,
|
|
337
|
-
"paddingBottom": 0,
|
|
338
|
-
"paddingLeft": 0,
|
|
339
|
-
"paddingRight": 0,
|
|
340
|
-
"paddingTop": 0,
|
|
341
|
-
"textAlign": "center",
|
|
342
294
|
},
|
|
295
|
+
[
|
|
296
|
+
{
|
|
297
|
+
"color": "#FFFFFF",
|
|
298
|
+
"textAlign": "center",
|
|
299
|
+
},
|
|
300
|
+
undefined,
|
|
301
|
+
],
|
|
343
302
|
]
|
|
344
303
|
}
|
|
345
304
|
>
|
|
@@ -538,7 +497,6 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
|
|
|
538
497
|
}
|
|
539
498
|
>
|
|
540
499
|
<View
|
|
541
|
-
accessibilityRole="button"
|
|
542
500
|
accessibilityState={
|
|
543
501
|
{
|
|
544
502
|
"busy": undefined,
|
|
@@ -559,9 +517,7 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
|
|
|
559
517
|
accessible={true}
|
|
560
518
|
collapsable={false}
|
|
561
519
|
focusable={true}
|
|
562
|
-
onBlur={[Function]}
|
|
563
520
|
onClick={[Function]}
|
|
564
|
-
onFocus={[Function]}
|
|
565
521
|
onLayout={[Function]}
|
|
566
522
|
onResponderGrant={[Function]}
|
|
567
523
|
onResponderMove={[Function]}
|
|
@@ -570,37 +526,10 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
|
|
|
570
526
|
onResponderTerminationRequest={[Function]}
|
|
571
527
|
onStartShouldSetResponder={[Function]}
|
|
572
528
|
style={
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
"overflow": "hidden",
|
|
578
|
-
},
|
|
579
|
-
"_pressed": {
|
|
580
|
-
"bottom": 0,
|
|
581
|
-
"left": 0,
|
|
582
|
-
"right": 0,
|
|
583
|
-
"top": 0,
|
|
584
|
-
},
|
|
585
|
-
"alignSelf": "flex-start",
|
|
586
|
-
"container": {
|
|
587
|
-
"overflow": "hidden",
|
|
588
|
-
},
|
|
589
|
-
"height": 48,
|
|
590
|
-
"overflow": "hidden",
|
|
591
|
-
"pressed": {
|
|
592
|
-
"bottom": 0,
|
|
593
|
-
"left": 0,
|
|
594
|
-
"right": 0,
|
|
595
|
-
"top": 0,
|
|
596
|
-
},
|
|
597
|
-
"width": "100%",
|
|
598
|
-
},
|
|
599
|
-
],
|
|
600
|
-
{
|
|
601
|
-
"opacity": 1,
|
|
602
|
-
},
|
|
603
|
-
]
|
|
529
|
+
{
|
|
530
|
+
"height": 48,
|
|
531
|
+
"opacity": 1,
|
|
532
|
+
}
|
|
604
533
|
}
|
|
605
534
|
testID="submit-checkout-collpased-button"
|
|
606
535
|
>
|
|
@@ -624,75 +553,64 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
|
|
|
624
553
|
]
|
|
625
554
|
}
|
|
626
555
|
style={
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
{},
|
|
638
|
-
undefined,
|
|
639
|
-
{
|
|
640
|
-
"height": 48,
|
|
641
|
-
},
|
|
642
|
-
false,
|
|
643
|
-
{
|
|
644
|
-
"borderRadius": 9999,
|
|
645
|
-
},
|
|
646
|
-
]
|
|
556
|
+
{
|
|
557
|
+
"alignContent": "center",
|
|
558
|
+
"borderRadius": 9999,
|
|
559
|
+
"height": 48,
|
|
560
|
+
"justifyContent": "center",
|
|
561
|
+
"overflow": "hidden",
|
|
562
|
+
"paddingLeft": 24,
|
|
563
|
+
"paddingRight": 24,
|
|
564
|
+
"position": "relative",
|
|
565
|
+
}
|
|
647
566
|
}
|
|
648
567
|
>
|
|
649
568
|
<View
|
|
650
|
-
collapsable={false}
|
|
651
569
|
pointerEvents="none"
|
|
652
570
|
style={
|
|
653
571
|
[
|
|
654
572
|
{
|
|
655
573
|
"backgroundColor": "#716A6B",
|
|
656
|
-
"height":
|
|
574
|
+
"height": "300%",
|
|
657
575
|
"left": 0,
|
|
658
576
|
"opacity": 0.7,
|
|
659
577
|
"position": "absolute",
|
|
660
578
|
"top": 0,
|
|
661
579
|
},
|
|
662
580
|
{
|
|
663
|
-
"width":
|
|
581
|
+
"width": 0,
|
|
664
582
|
},
|
|
665
583
|
]
|
|
666
584
|
}
|
|
667
585
|
/>
|
|
668
586
|
<View
|
|
669
587
|
style={
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
},
|
|
676
|
-
]
|
|
588
|
+
{
|
|
589
|
+
"alignItems": "center",
|
|
590
|
+
"flexDirection": "row",
|
|
591
|
+
"justifyContent": "center",
|
|
592
|
+
}
|
|
677
593
|
}
|
|
678
594
|
>
|
|
679
595
|
<Text
|
|
680
|
-
allowFontScaling={false}
|
|
681
|
-
selectable={false}
|
|
682
596
|
style={
|
|
683
597
|
[
|
|
684
598
|
{
|
|
685
|
-
"color": "#
|
|
599
|
+
"color": "#0C0A0A",
|
|
686
600
|
"fontFamily": "AreaNormal-Extrabold",
|
|
687
601
|
"fontSize": 15,
|
|
602
|
+
"fontStyle": "normal",
|
|
603
|
+
"fontWeight": "normal",
|
|
688
604
|
"letterSpacing": -0.2,
|
|
689
605
|
"lineHeight": 20,
|
|
690
|
-
"paddingBottom": 0,
|
|
691
|
-
"paddingLeft": 0,
|
|
692
|
-
"paddingRight": 0,
|
|
693
|
-
"paddingTop": 0,
|
|
694
|
-
"textAlign": "center",
|
|
695
606
|
},
|
|
607
|
+
[
|
|
608
|
+
{
|
|
609
|
+
"color": "#FFFFFF",
|
|
610
|
+
"textAlign": "center",
|
|
611
|
+
},
|
|
612
|
+
undefined,
|
|
613
|
+
],
|
|
696
614
|
]
|
|
697
615
|
}
|
|
698
616
|
>
|