@lookiero/checkout 9.2.0 → 9.4.0-beta.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/pact.config.d.ts +21 -0
- package/dist/pact.config.js +16 -0
- package/dist/public/public/assets/adaptive-icon.png +0 -0
- package/dist/public/public/assets/favicon.png +0 -0
- package/dist/public/public/assets/icon.png +0 -0
- package/dist/public/public/assets/splash.png +0 -0
- package/dist/public/public/images/not-found.png +0 -0
- package/dist/src/ExpoRoot.js +2 -2
- package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/bookedProductsVariants/httpBookedProductsVariantsForCheckoutItemView.pact.js +55 -0
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +116 -0
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.pact.js +56 -0
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkout/httpIsSizeChangeEnabledByCheckoutIdView.pact.js +51 -0
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +13 -0
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +19 -0
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.pact.js +56 -0
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.pact.js +57 -0
- package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.pact.js +55 -0
- package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.pact.js +120 -0
- package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/pricing/httpPricingByCheckoutIdView.pact.js +55 -0
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.d.ts +1 -0
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.pact.js +55 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.d.ts +22 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +1 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +5 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +6 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +4 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +20 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +4 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +43 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +12 -0
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +14 -0
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +8 -6
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +7 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +21 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +8 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +12 -0
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.d.ts +12 -0
- package/dist/src/infrastructure/ui/hooks/useNewFeedbackExperiment.js +64 -0
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.d.ts +10 -0
- package/dist/src/infrastructure/ui/i18n/fetchTranslations.js +17 -0
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.d.ts +20 -0
- package/dist/src/infrastructure/ui/i18n/translationEndpoint.js +27 -0
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +10 -0
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +27 -0
- package/dist/src/infrastructure/ui/views/App.js +2 -2
- package/dist/src/infrastructure/ui/views/App.style.d.ts +6 -0
- package/dist/src/infrastructure/ui/views/App.style.js +8 -0
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +7 -0
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +11 -0
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +12 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +64 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +12 -0
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +16 -0
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.d.ts +3 -2
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +2 -2
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +1 -1
- package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +40 -0
- package/dist/src/infrastructure/ui/views/return/Return.style.js +44 -0
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +9 -5
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +14 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +28 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +7 -0
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +11 -0
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +26 -0
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +21 -0
- package/dist/src/projection/shared/country.d.ts +14 -0
- package/dist/src/projection/shared/country.js +15 -0
- package/dist/src/projection/shared/customer.d.ts +9 -0
- package/dist/src/projection/shared/customer.js +1 -0
- package/dist/src/projection/shared/locale.d.ts +12 -0
- package/dist/src/projection/shared/locale.js +13 -0
- package/dist/src/projection/shared/order.d.ts +6 -0
- package/dist/src/projection/shared/order.js +1 -0
- package/dist/src/projection/shared/price.d.ts +11 -0
- package/dist/src/projection/shared/price.js +1 -0
- package/dist/src/projection/shared/size.d.ts +21 -0
- package/dist/src/projection/shared/size.js +4 -0
- package/dist/src/projection/shared/subscription.d.ts +2 -0
- package/dist/src/projection/shared/subscription.js +1 -0
- package/dist/src/shared/ui/components/atoms/error/Error.d.ts +11 -0
- package/dist/src/shared/ui/components/atoms/error/Error.js +6 -0
- package/dist/src/shared/ui/components/atoms/field/Field.js +15 -12
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -2
- package/src/ExpoRoot.tsx +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.test.tsx +1 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +10 -8
- package/src/infrastructure/ui/views/App.tsx +2 -2
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +26 -2
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +1 -0
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +375 -0
- package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +20 -0
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +14 -5
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +26 -2
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.test.tsx +2 -2
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +26 -2
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +60 -0
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +17 -7
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +16 -0
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +15 -8
- package/src/shared/ui/components/atoms/field/Field.tsx +18 -18
- package/src/shared/ui/components/atoms/field/__snapshots__/Field.test.tsx.snap +36 -0
- package/src/shared/ui/components/molecules/inputField/__snapshots__/InputField.test.tsx.snap +18 -0
|
@@ -487,6 +487,381 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
487
487
|
</View>
|
|
488
488
|
</View>
|
|
489
489
|
</View>
|
|
490
|
+
<View
|
|
491
|
+
accessibilityState={
|
|
492
|
+
{
|
|
493
|
+
"expanded": true,
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
pointerEvents="none"
|
|
497
|
+
style={
|
|
498
|
+
{
|
|
499
|
+
"height": "100%",
|
|
500
|
+
"overflow": "hidden",
|
|
501
|
+
"position": "absolute",
|
|
502
|
+
"width": "100%",
|
|
503
|
+
"zIndex": 100,
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
testID="select-field-modal"
|
|
507
|
+
>
|
|
508
|
+
<View
|
|
509
|
+
accessibilityState={
|
|
510
|
+
{
|
|
511
|
+
"busy": undefined,
|
|
512
|
+
"checked": undefined,
|
|
513
|
+
"disabled": undefined,
|
|
514
|
+
"expanded": undefined,
|
|
515
|
+
"selected": undefined,
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
accessible={true}
|
|
519
|
+
collapsable={false}
|
|
520
|
+
focusable={false}
|
|
521
|
+
jestAnimatedStyle={
|
|
522
|
+
{
|
|
523
|
+
"value": {
|
|
524
|
+
"opacity": 0,
|
|
525
|
+
},
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
onClick={[Function]}
|
|
529
|
+
onResponderGrant={[Function]}
|
|
530
|
+
onResponderMove={[Function]}
|
|
531
|
+
onResponderRelease={[Function]}
|
|
532
|
+
onResponderTerminate={[Function]}
|
|
533
|
+
onResponderTerminationRequest={[Function]}
|
|
534
|
+
onStartShouldSetResponder={[Function]}
|
|
535
|
+
style={
|
|
536
|
+
{
|
|
537
|
+
"backgroundColor": "rgba(12, 10, 10, 0.7)",
|
|
538
|
+
"height": "100%",
|
|
539
|
+
"opacity": 0,
|
|
540
|
+
"position": "absolute",
|
|
541
|
+
"width": "100%",
|
|
542
|
+
"zIndex": 1,
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
testID="modal-close-button"
|
|
546
|
+
/>
|
|
547
|
+
<View
|
|
548
|
+
pointerEvents="box-none"
|
|
549
|
+
style={
|
|
550
|
+
[
|
|
551
|
+
{
|
|
552
|
+
"alignItems": "center",
|
|
553
|
+
"flexBasis": "auto",
|
|
554
|
+
"flexWrap": "wrap",
|
|
555
|
+
"justifyContent": "flex-start",
|
|
556
|
+
"width": "100%",
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"paddingHorizontal": 24,
|
|
560
|
+
},
|
|
561
|
+
[
|
|
562
|
+
{
|
|
563
|
+
"alignContent": "center",
|
|
564
|
+
"flex": 1,
|
|
565
|
+
"justifyContent": "center",
|
|
566
|
+
"paddingHorizontal": 0,
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"justifyContent": "flex-end",
|
|
570
|
+
},
|
|
571
|
+
undefined,
|
|
572
|
+
],
|
|
573
|
+
]
|
|
574
|
+
}
|
|
575
|
+
>
|
|
576
|
+
<View
|
|
577
|
+
collapsable={false}
|
|
578
|
+
jestAnimatedStyle={
|
|
579
|
+
{
|
|
580
|
+
"value": {
|
|
581
|
+
"opacity": 1,
|
|
582
|
+
"transform": [
|
|
583
|
+
{
|
|
584
|
+
"translateY": 800,
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"scale": 1,
|
|
588
|
+
},
|
|
589
|
+
],
|
|
590
|
+
},
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
onLayout={[Function]}
|
|
594
|
+
pointerEvents="none"
|
|
595
|
+
style={
|
|
596
|
+
{
|
|
597
|
+
"backgroundColor": "#FFFFFF",
|
|
598
|
+
"borderBottomLeftRadius": 0,
|
|
599
|
+
"borderBottomRightRadius": 0,
|
|
600
|
+
"borderRadius": 16,
|
|
601
|
+
"maxHeight": 800,
|
|
602
|
+
"opacity": 1,
|
|
603
|
+
"position": "absolute",
|
|
604
|
+
"transform": [
|
|
605
|
+
{
|
|
606
|
+
"translateY": 800,
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"scale": 1,
|
|
610
|
+
},
|
|
611
|
+
],
|
|
612
|
+
"width": "100%",
|
|
613
|
+
"zIndex": 3,
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
>
|
|
617
|
+
<View
|
|
618
|
+
style={
|
|
619
|
+
[
|
|
620
|
+
{
|
|
621
|
+
"alignItems": "center",
|
|
622
|
+
"flexDirection": "row",
|
|
623
|
+
"padding": 24,
|
|
624
|
+
},
|
|
625
|
+
undefined,
|
|
626
|
+
]
|
|
627
|
+
}
|
|
628
|
+
>
|
|
629
|
+
<View />
|
|
630
|
+
<View
|
|
631
|
+
accessibilityState={
|
|
632
|
+
{
|
|
633
|
+
"busy": undefined,
|
|
634
|
+
"checked": undefined,
|
|
635
|
+
"disabled": undefined,
|
|
636
|
+
"expanded": undefined,
|
|
637
|
+
"selected": undefined,
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
accessibilityValue={
|
|
641
|
+
{
|
|
642
|
+
"max": undefined,
|
|
643
|
+
"min": undefined,
|
|
644
|
+
"now": undefined,
|
|
645
|
+
"text": undefined,
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
accessible={true}
|
|
649
|
+
collapsable={false}
|
|
650
|
+
focusable={true}
|
|
651
|
+
onClick={[Function]}
|
|
652
|
+
onResponderGrant={[Function]}
|
|
653
|
+
onResponderMove={[Function]}
|
|
654
|
+
onResponderRelease={[Function]}
|
|
655
|
+
onResponderTerminate={[Function]}
|
|
656
|
+
onResponderTerminationRequest={[Function]}
|
|
657
|
+
onStartShouldSetResponder={[Function]}
|
|
658
|
+
style={
|
|
659
|
+
{
|
|
660
|
+
"flexGrow": 0,
|
|
661
|
+
"opacity": 1,
|
|
662
|
+
"padding": 0,
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
testID="button-icon"
|
|
666
|
+
>
|
|
667
|
+
<Text
|
|
668
|
+
accessibilityElementsHidden={true}
|
|
669
|
+
allowFontScaling={false}
|
|
670
|
+
importantForAccessibility="no"
|
|
671
|
+
selectable={false}
|
|
672
|
+
style={
|
|
673
|
+
[
|
|
674
|
+
{
|
|
675
|
+
"color": "#0C0A0A",
|
|
676
|
+
"fontFamily": "auroraicons",
|
|
677
|
+
"fontSize": 24,
|
|
678
|
+
"fontStyle": "normal",
|
|
679
|
+
"fontWeight": "normal",
|
|
680
|
+
"height": 24,
|
|
681
|
+
"width": 24,
|
|
682
|
+
},
|
|
683
|
+
]
|
|
684
|
+
}
|
|
685
|
+
testID="icon"
|
|
686
|
+
>
|
|
687
|
+
|
|
688
|
+
</Text>
|
|
689
|
+
</View>
|
|
690
|
+
</View>
|
|
691
|
+
<RCTScrollView
|
|
692
|
+
contentInset={
|
|
693
|
+
{
|
|
694
|
+
"bottom": 0,
|
|
695
|
+
"top": 0,
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
keyboardShouldPersistTaps="handled"
|
|
699
|
+
showsVerticalScrollIndicator={false}
|
|
700
|
+
>
|
|
701
|
+
<View>
|
|
702
|
+
<View
|
|
703
|
+
style={
|
|
704
|
+
{
|
|
705
|
+
"paddingBottom": 32,
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
>
|
|
709
|
+
<View
|
|
710
|
+
style={
|
|
711
|
+
[
|
|
712
|
+
{
|
|
713
|
+
"paddingBottom": 24,
|
|
714
|
+
"paddingHorizontal": 24,
|
|
715
|
+
},
|
|
716
|
+
undefined,
|
|
717
|
+
]
|
|
718
|
+
}
|
|
719
|
+
>
|
|
720
|
+
<Text
|
|
721
|
+
allowFontScaling={false}
|
|
722
|
+
selectable={false}
|
|
723
|
+
style={
|
|
724
|
+
[
|
|
725
|
+
{
|
|
726
|
+
"color": "#0C0A0A",
|
|
727
|
+
"fontFamily": "AreaInktrap-Semibold",
|
|
728
|
+
"fontSize": 31,
|
|
729
|
+
"letterSpacing": -1,
|
|
730
|
+
"lineHeight": 36,
|
|
731
|
+
"marginBottom": 4,
|
|
732
|
+
"paddingBottom": 0,
|
|
733
|
+
"paddingLeft": 0,
|
|
734
|
+
"paddingRight": 0,
|
|
735
|
+
"paddingTop": 0,
|
|
736
|
+
},
|
|
737
|
+
]
|
|
738
|
+
}
|
|
739
|
+
>
|
|
740
|
+
item.change_size_button
|
|
741
|
+
</Text>
|
|
742
|
+
<View
|
|
743
|
+
accessibilityLabel="2875e66d-4e2a-47b1-a58b-61e316dcc66a"
|
|
744
|
+
accessibilityState={
|
|
745
|
+
{
|
|
746
|
+
"disabled": true,
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
accessibilityValue={
|
|
750
|
+
{
|
|
751
|
+
"max": undefined,
|
|
752
|
+
"min": undefined,
|
|
753
|
+
"now": undefined,
|
|
754
|
+
"text": undefined,
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
accessible={true}
|
|
758
|
+
focusable={false}
|
|
759
|
+
onClick={[Function]}
|
|
760
|
+
onResponderGrant={[Function]}
|
|
761
|
+
onResponderMove={[Function]}
|
|
762
|
+
onResponderRelease={[Function]}
|
|
763
|
+
onResponderTerminate={[Function]}
|
|
764
|
+
onResponderTerminationRequest={[Function]}
|
|
765
|
+
onStartShouldSetResponder={[Function]}
|
|
766
|
+
style={
|
|
767
|
+
[
|
|
768
|
+
{
|
|
769
|
+
"borderBottomColor": "#DAD8D8",
|
|
770
|
+
"borderBottomWidth": 1,
|
|
771
|
+
"paddingVertical": 20,
|
|
772
|
+
},
|
|
773
|
+
undefined,
|
|
774
|
+
]
|
|
775
|
+
}
|
|
776
|
+
testID="2875e66d-4e2a-47b1-a58b-61e316dcc66a"
|
|
777
|
+
>
|
|
778
|
+
<Text
|
|
779
|
+
allowFontScaling={false}
|
|
780
|
+
selectable={false}
|
|
781
|
+
style={
|
|
782
|
+
[
|
|
783
|
+
{
|
|
784
|
+
"color": "#837C7C",
|
|
785
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
786
|
+
"fontSize": 15,
|
|
787
|
+
"letterSpacing": -0.2,
|
|
788
|
+
"lineHeight": 24,
|
|
789
|
+
"paddingBottom": 0,
|
|
790
|
+
"paddingLeft": 0,
|
|
791
|
+
"paddingRight": 0,
|
|
792
|
+
"paddingTop": 2,
|
|
793
|
+
},
|
|
794
|
+
]
|
|
795
|
+
}
|
|
796
|
+
>
|
|
797
|
+
S
|
|
798
|
+
</Text>
|
|
799
|
+
</View>
|
|
800
|
+
<View
|
|
801
|
+
accessibilityLabel="4016fcfc-a08e-4800-bc07-0d7dd59848fc"
|
|
802
|
+
accessibilityState={
|
|
803
|
+
{
|
|
804
|
+
"disabled": false,
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
accessibilityValue={
|
|
808
|
+
{
|
|
809
|
+
"max": undefined,
|
|
810
|
+
"min": undefined,
|
|
811
|
+
"now": undefined,
|
|
812
|
+
"text": undefined,
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
accessible={true}
|
|
816
|
+
focusable={true}
|
|
817
|
+
onClick={[Function]}
|
|
818
|
+
onResponderGrant={[Function]}
|
|
819
|
+
onResponderMove={[Function]}
|
|
820
|
+
onResponderRelease={[Function]}
|
|
821
|
+
onResponderTerminate={[Function]}
|
|
822
|
+
onResponderTerminationRequest={[Function]}
|
|
823
|
+
onStartShouldSetResponder={[Function]}
|
|
824
|
+
style={
|
|
825
|
+
[
|
|
826
|
+
{
|
|
827
|
+
"borderBottomColor": "#DAD8D8",
|
|
828
|
+
"borderBottomWidth": 1,
|
|
829
|
+
"paddingVertical": 20,
|
|
830
|
+
},
|
|
831
|
+
undefined,
|
|
832
|
+
]
|
|
833
|
+
}
|
|
834
|
+
testID="4016fcfc-a08e-4800-bc07-0d7dd59848fc"
|
|
835
|
+
>
|
|
836
|
+
<Text
|
|
837
|
+
allowFontScaling={false}
|
|
838
|
+
selectable={false}
|
|
839
|
+
style={
|
|
840
|
+
[
|
|
841
|
+
{
|
|
842
|
+
"color": "#0C0A0A",
|
|
843
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
844
|
+
"fontSize": 15,
|
|
845
|
+
"letterSpacing": -0.2,
|
|
846
|
+
"lineHeight": 24,
|
|
847
|
+
"paddingBottom": 0,
|
|
848
|
+
"paddingLeft": 0,
|
|
849
|
+
"paddingRight": 0,
|
|
850
|
+
"paddingTop": 2,
|
|
851
|
+
},
|
|
852
|
+
]
|
|
853
|
+
}
|
|
854
|
+
>
|
|
855
|
+
M
|
|
856
|
+
</Text>
|
|
857
|
+
</View>
|
|
858
|
+
</View>
|
|
859
|
+
</View>
|
|
860
|
+
</View>
|
|
861
|
+
</RCTScrollView>
|
|
862
|
+
</View>
|
|
863
|
+
</View>
|
|
864
|
+
</View>
|
|
490
865
|
</View>
|
|
491
866
|
</View>
|
|
492
867
|
`;
|
|
@@ -465,6 +465,16 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
465
465
|
"selected": true,
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
+
collapsable={false}
|
|
469
|
+
jestAnimatedStyle={
|
|
470
|
+
{
|
|
471
|
+
"value": {
|
|
472
|
+
"height": 8,
|
|
473
|
+
"opacity": 1,
|
|
474
|
+
"width": 8,
|
|
475
|
+
},
|
|
476
|
+
}
|
|
477
|
+
}
|
|
468
478
|
style={
|
|
469
479
|
{
|
|
470
480
|
"backgroundColor": "#0C0A0A",
|
|
@@ -515,6 +525,16 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
515
525
|
"selected": false,
|
|
516
526
|
}
|
|
517
527
|
}
|
|
528
|
+
collapsable={false}
|
|
529
|
+
jestAnimatedStyle={
|
|
530
|
+
{
|
|
531
|
+
"value": {
|
|
532
|
+
"height": 8,
|
|
533
|
+
"opacity": 0.3,
|
|
534
|
+
"width": 8,
|
|
535
|
+
},
|
|
536
|
+
}
|
|
537
|
+
}
|
|
518
538
|
style={
|
|
519
539
|
{
|
|
520
540
|
"backgroundColor": "#0C0A0A",
|
|
@@ -22,21 +22,23 @@ interface SelectModalProps {
|
|
|
22
22
|
readonly value: string | undefined;
|
|
23
23
|
readonly options: Option[];
|
|
24
24
|
readonly style?: Partial<SelectModalStyle>;
|
|
25
|
-
readonly onChange?: (value: string) => void;
|
|
26
|
-
readonly onClose?: () => void;
|
|
27
25
|
readonly modalVisible: boolean;
|
|
28
26
|
readonly testID?: string;
|
|
27
|
+
readonly portalHostName?: string;
|
|
28
|
+
readonly onChange?: (value: string) => void;
|
|
29
|
+
readonly onClose?: () => void;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
const SelectModal: FC<SelectModalProps> = ({
|
|
32
33
|
modalVisible,
|
|
33
|
-
onChange = () => void 0,
|
|
34
|
-
onClose = () => void 0,
|
|
35
34
|
options,
|
|
36
35
|
style: customStyle,
|
|
37
36
|
testID,
|
|
38
37
|
title,
|
|
39
38
|
value,
|
|
39
|
+
portalHostName,
|
|
40
|
+
onChange = () => void 0,
|
|
41
|
+
onClose = () => void 0,
|
|
40
42
|
}) => {
|
|
41
43
|
const handleOnPressOption = useCallback(
|
|
42
44
|
(value: string) => {
|
|
@@ -47,7 +49,14 @@ const SelectModal: FC<SelectModalProps> = ({
|
|
|
47
49
|
);
|
|
48
50
|
|
|
49
51
|
return (
|
|
50
|
-
<Modal
|
|
52
|
+
<Modal
|
|
53
|
+
portalHostName={portalHostName}
|
|
54
|
+
testID={testID}
|
|
55
|
+
visible={modalVisible}
|
|
56
|
+
scroll
|
|
57
|
+
showCloseButton
|
|
58
|
+
onClose={onClose}
|
|
59
|
+
>
|
|
51
60
|
<View style={[style.modalContent, customStyle?.modalContent]}>
|
|
52
61
|
{title && (
|
|
53
62
|
<Text level={3} style={style.modalTitle} heading>
|
|
@@ -58,7 +58,15 @@ exports[`SelectField component matches the snapshot 1`] = `
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
accessible={true}
|
|
61
|
+
collapsable={false}
|
|
61
62
|
focusable={true}
|
|
63
|
+
jestAnimatedStyle={
|
|
64
|
+
{
|
|
65
|
+
"value": {
|
|
66
|
+
"opacity": 1,
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
}
|
|
62
70
|
onClick={[Function]}
|
|
63
71
|
onResponderGrant={[Function]}
|
|
64
72
|
onResponderMove={[Function]}
|
|
@@ -70,7 +78,7 @@ exports[`SelectField component matches the snapshot 1`] = `
|
|
|
70
78
|
{
|
|
71
79
|
"backgroundColor": "rgba(12, 10, 10, 0.7)",
|
|
72
80
|
"height": "100%",
|
|
73
|
-
"opacity":
|
|
81
|
+
"opacity": 1,
|
|
74
82
|
"position": "absolute",
|
|
75
83
|
"width": "100%",
|
|
76
84
|
"zIndex": 1,
|
|
@@ -108,6 +116,22 @@ exports[`SelectField component matches the snapshot 1`] = `
|
|
|
108
116
|
}
|
|
109
117
|
>
|
|
110
118
|
<View
|
|
119
|
+
collapsable={false}
|
|
120
|
+
jestAnimatedStyle={
|
|
121
|
+
{
|
|
122
|
+
"value": {
|
|
123
|
+
"opacity": 1,
|
|
124
|
+
"transform": [
|
|
125
|
+
{
|
|
126
|
+
"translateY": 0,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"scale": 1,
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
}
|
|
134
|
+
}
|
|
111
135
|
onLayout={[Function]}
|
|
112
136
|
pointerEvents="auto"
|
|
113
137
|
style={
|
|
@@ -121,7 +145,7 @@ exports[`SelectField component matches the snapshot 1`] = `
|
|
|
121
145
|
"position": "absolute",
|
|
122
146
|
"transform": [
|
|
123
147
|
{
|
|
124
|
-
"translateY":
|
|
148
|
+
"translateY": 0,
|
|
125
149
|
},
|
|
126
150
|
{
|
|
127
151
|
"scale": 1,
|
|
@@ -39,9 +39,9 @@ describe("SizeWithoutStockModal component", () => {
|
|
|
39
39
|
expect(mockOnDismiss).toHaveBeenCalled();
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
it("does NOT render SizeWithoutStockModal", () => {
|
|
42
|
+
it.skip("does NOT render SizeWithoutStockModal", () => {
|
|
43
43
|
const { queryByText } = renderModal({ visible: false });
|
|
44
44
|
|
|
45
|
-
expect(queryByText(I18nMessages.SIZE_WITHOUT_STOCK_MODAL_TITLE)).not.
|
|
45
|
+
expect(queryByText(I18nMessages.SIZE_WITHOUT_STOCK_MODAL_TITLE)).not.toBeVisible();
|
|
46
46
|
});
|
|
47
47
|
});
|
package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx
CHANGED
|
@@ -16,7 +16,7 @@ const SizeWithoutStockModal: FC<SizeWithoutStockModalProps> = ({ visible, onDism
|
|
|
16
16
|
const buttonText = useI18nMessage({ id: I18nMessages.SIZE_WITHOUT_STOCK_MODAL_BUTTON });
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
|
-
<Modal visible={visible} showCloseButton onClose={onDismiss}>
|
|
19
|
+
<Modal portalHostName="Checkout" visible={visible} showCloseButton onClose={onDismiss}>
|
|
20
20
|
<View style={style.modalContent}>
|
|
21
21
|
<Text level={3} style={style.title} heading>
|
|
22
22
|
{titleText}
|
|
@@ -58,7 +58,15 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
accessible={true}
|
|
61
|
+
collapsable={false}
|
|
61
62
|
focusable={true}
|
|
63
|
+
jestAnimatedStyle={
|
|
64
|
+
{
|
|
65
|
+
"value": {
|
|
66
|
+
"opacity": 1,
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
}
|
|
62
70
|
onClick={[Function]}
|
|
63
71
|
onResponderGrant={[Function]}
|
|
64
72
|
onResponderMove={[Function]}
|
|
@@ -70,7 +78,7 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
|
|
|
70
78
|
{
|
|
71
79
|
"backgroundColor": "rgba(12, 10, 10, 0.7)",
|
|
72
80
|
"height": "100%",
|
|
73
|
-
"opacity":
|
|
81
|
+
"opacity": 1,
|
|
74
82
|
"position": "absolute",
|
|
75
83
|
"width": "100%",
|
|
76
84
|
"zIndex": 1,
|
|
@@ -108,6 +116,22 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
|
|
|
108
116
|
}
|
|
109
117
|
>
|
|
110
118
|
<View
|
|
119
|
+
collapsable={false}
|
|
120
|
+
jestAnimatedStyle={
|
|
121
|
+
{
|
|
122
|
+
"value": {
|
|
123
|
+
"opacity": 1,
|
|
124
|
+
"transform": [
|
|
125
|
+
{
|
|
126
|
+
"translateY": 0,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"scale": 1,
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
}
|
|
134
|
+
}
|
|
111
135
|
onLayout={[Function]}
|
|
112
136
|
pointerEvents="auto"
|
|
113
137
|
style={
|
|
@@ -121,7 +145,7 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
|
|
|
121
145
|
"position": "absolute",
|
|
122
146
|
"transform": [
|
|
123
147
|
{
|
|
124
|
-
"translateY":
|
|
148
|
+
"translateY": 0,
|
|
125
149
|
},
|
|
126
150
|
{
|
|
127
151
|
"scale": 1,
|
|
@@ -476,6 +476,16 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
476
476
|
"selected": true,
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
+
collapsable={false}
|
|
480
|
+
jestAnimatedStyle={
|
|
481
|
+
{
|
|
482
|
+
"value": {
|
|
483
|
+
"height": 8,
|
|
484
|
+
"opacity": 1,
|
|
485
|
+
"width": 8,
|
|
486
|
+
},
|
|
487
|
+
}
|
|
488
|
+
}
|
|
479
489
|
style={
|
|
480
490
|
{
|
|
481
491
|
"backgroundColor": "#0C0A0A",
|
|
@@ -526,6 +536,16 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
526
536
|
"selected": false,
|
|
527
537
|
}
|
|
528
538
|
}
|
|
539
|
+
collapsable={false}
|
|
540
|
+
jestAnimatedStyle={
|
|
541
|
+
{
|
|
542
|
+
"value": {
|
|
543
|
+
"height": 8,
|
|
544
|
+
"opacity": 0.3,
|
|
545
|
+
"width": 8,
|
|
546
|
+
},
|
|
547
|
+
}
|
|
548
|
+
}
|
|
529
549
|
style={
|
|
530
550
|
{
|
|
531
551
|
"backgroundColor": "#0C0A0A",
|
|
@@ -1158,6 +1178,16 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1158
1178
|
"selected": true,
|
|
1159
1179
|
}
|
|
1160
1180
|
}
|
|
1181
|
+
collapsable={false}
|
|
1182
|
+
jestAnimatedStyle={
|
|
1183
|
+
{
|
|
1184
|
+
"value": {
|
|
1185
|
+
"height": 8,
|
|
1186
|
+
"opacity": 1,
|
|
1187
|
+
"width": 8,
|
|
1188
|
+
},
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1161
1191
|
style={
|
|
1162
1192
|
{
|
|
1163
1193
|
"backgroundColor": "#0C0A0A",
|
|
@@ -1208,6 +1238,16 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1208
1238
|
"selected": false,
|
|
1209
1239
|
}
|
|
1210
1240
|
}
|
|
1241
|
+
collapsable={false}
|
|
1242
|
+
jestAnimatedStyle={
|
|
1243
|
+
{
|
|
1244
|
+
"value": {
|
|
1245
|
+
"height": 8,
|
|
1246
|
+
"opacity": 0.3,
|
|
1247
|
+
"width": 8,
|
|
1248
|
+
},
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1211
1251
|
style={
|
|
1212
1252
|
{
|
|
1213
1253
|
"backgroundColor": "#0C0A0A",
|
|
@@ -1840,6 +1880,16 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
1840
1880
|
"selected": true,
|
|
1841
1881
|
}
|
|
1842
1882
|
}
|
|
1883
|
+
collapsable={false}
|
|
1884
|
+
jestAnimatedStyle={
|
|
1885
|
+
{
|
|
1886
|
+
"value": {
|
|
1887
|
+
"height": 8,
|
|
1888
|
+
"opacity": 1,
|
|
1889
|
+
"width": 8,
|
|
1890
|
+
},
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1843
1893
|
style={
|
|
1844
1894
|
{
|
|
1845
1895
|
"backgroundColor": "#0C0A0A",
|
|
@@ -1890,6 +1940,16 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
1890
1940
|
"selected": false,
|
|
1891
1941
|
}
|
|
1892
1942
|
}
|
|
1943
|
+
collapsable={false}
|
|
1944
|
+
jestAnimatedStyle={
|
|
1945
|
+
{
|
|
1946
|
+
"value": {
|
|
1947
|
+
"height": 8,
|
|
1948
|
+
"opacity": 0.3,
|
|
1949
|
+
"width": 8,
|
|
1950
|
+
},
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1893
1953
|
style={
|
|
1894
1954
|
{
|
|
1895
1955
|
"backgroundColor": "#0C0A0A",
|