@lookiero/checkout 14.1.0 → 14.2.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.
- 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.d.ts +1 -0
- package/dist/src/ExpoRoot.js +4 -3
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +3 -2
- package/dist/src/infrastructure/ui/components/atoms/price/Price.js +2 -2
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.js +1 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +2 -2
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +1 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +2 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostLegacyRadioGroupReturnQuestionItem/HostLegacyRadioGroupReturnQuestionItem.js +2 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +2 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +2 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +3 -4
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +3 -3
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +2 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +2 -2
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +3 -3
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +1 -0
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +4 -3
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +3 -0
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +3 -0
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +4 -4
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +4 -4
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +2 -2
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +3 -3
- package/dist/src/infrastructure/ui/views/return/components/price/Price.js +4 -4
- package/dist/src/infrastructure/ui/views/return/components/price/Price.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/views/return/components/price/Price.style.js +1 -0
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +4 -4
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +4 -3
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +5 -5
- package/dist/src/infrastructure/ui/views/summary/Summary.js +3 -3
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +3 -3
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +2 -2
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +1 -1
- package/dist/src/version.d.ts +2 -2
- package/dist/src/version.js +2 -2
- package/package.json +4 -4
- package/src/ExpoRoot.tsx +4 -3
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +3 -2
- package/src/infrastructure/ui/components/atoms/price/Price.style.ts +1 -0
- package/src/infrastructure/ui/components/atoms/price/Price.tsx +2 -7
- package/src/infrastructure/ui/components/atoms/price/__snapshots__/Price.test.tsx.snap +24 -28
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +2 -2
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +1 -1
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +1 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostLegacyRadioGroupReturnQuestionItem/HostLegacyRadioGroupReturnQuestionItem.tsx +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +1 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +1 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +5 -6
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +3 -3
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +2 -2
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +21 -18
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -2
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +21 -18
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +2 -2
- package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +39 -30
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +3 -3
- package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.ts +3 -0
- package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +4 -3
- package/src/infrastructure/ui/views/item/components/banner/__snapshots__/CustomerDecissionBanner.test.tsx.snap +12 -18
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +14 -4
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +30 -28
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +45 -33
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +4 -4
- package/src/infrastructure/ui/views/item/components/productVariantDescription/__snapshots__/ProductVariantDescription.test.tsx.snap +38 -56
- package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +2 -2
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +28 -19
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +3 -3
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +28 -25
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +57 -84
- package/src/infrastructure/ui/views/return/components/price/Price.style.ts +1 -0
- package/src/infrastructure/ui/views/return/components/price/Price.tsx +4 -4
- package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap +12 -19
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +4 -4
- package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +18 -26
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +4 -3
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +5 -5
- package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +80 -82
- package/src/infrastructure/ui/views/summary/Summary.tsx +3 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +3 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +58 -54
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +2 -2
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +1 -1
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +197 -193
|
@@ -593,20 +593,19 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
593
593
|
}
|
|
594
594
|
>
|
|
595
595
|
<Text
|
|
596
|
-
allowFontScaling={false}
|
|
597
|
-
selectable={false}
|
|
598
596
|
style={
|
|
599
597
|
[
|
|
600
598
|
{
|
|
601
|
-
"color": "#
|
|
599
|
+
"color": "#0C0A0A",
|
|
602
600
|
"fontFamily": "AreaNormal-Semibold",
|
|
603
601
|
"fontSize": 13,
|
|
602
|
+
"fontStyle": "normal",
|
|
603
|
+
"fontWeight": "normal",
|
|
604
604
|
"letterSpacing": 0.1,
|
|
605
605
|
"lineHeight": 17,
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
"
|
|
609
|
-
"paddingTop": 0,
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"color": "#837C7C",
|
|
610
609
|
},
|
|
611
610
|
]
|
|
612
611
|
}
|
|
@@ -614,21 +613,18 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
614
613
|
CKS
|
|
615
614
|
</Text>
|
|
616
615
|
<Text
|
|
617
|
-
allowFontScaling={false}
|
|
618
|
-
selectable={false}
|
|
619
616
|
style={
|
|
620
617
|
[
|
|
621
618
|
{
|
|
622
619
|
"color": "#0C0A0A",
|
|
623
620
|
"fontFamily": "AreaNormal-Extrabold",
|
|
624
621
|
"fontSize": 13,
|
|
622
|
+
"fontStyle": "normal",
|
|
623
|
+
"fontWeight": "normal",
|
|
625
624
|
"letterSpacing": 0.1,
|
|
626
625
|
"lineHeight": 17,
|
|
627
|
-
"paddingBottom": 0,
|
|
628
|
-
"paddingLeft": 0,
|
|
629
|
-
"paddingRight": 0,
|
|
630
|
-
"paddingTop": 0,
|
|
631
626
|
},
|
|
627
|
+
undefined,
|
|
632
628
|
]
|
|
633
629
|
}
|
|
634
630
|
>
|
|
@@ -644,21 +640,19 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
644
640
|
testID="price"
|
|
645
641
|
>
|
|
646
642
|
<Text
|
|
647
|
-
|
|
648
|
-
selectable={false}
|
|
643
|
+
detail={true}
|
|
649
644
|
style={
|
|
650
645
|
[
|
|
651
646
|
{
|
|
652
647
|
"color": "#0C0A0A",
|
|
653
648
|
"fontFamily": "AreaNormal-Semibold",
|
|
654
|
-
"fontSize":
|
|
655
|
-
"
|
|
656
|
-
"
|
|
657
|
-
"
|
|
658
|
-
"
|
|
659
|
-
"paddingRight": 0,
|
|
660
|
-
"paddingTop": 0,
|
|
649
|
+
"fontSize": 22,
|
|
650
|
+
"fontStyle": "normal",
|
|
651
|
+
"fontWeight": "300",
|
|
652
|
+
"letterSpacing": -0.2,
|
|
653
|
+
"lineHeight": 26,
|
|
661
654
|
},
|
|
655
|
+
undefined,
|
|
662
656
|
]
|
|
663
657
|
}
|
|
664
658
|
testID="price-text"
|
|
@@ -668,21 +662,18 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
668
662
|
</View>
|
|
669
663
|
</View>
|
|
670
664
|
<Text
|
|
671
|
-
allowFontScaling={false}
|
|
672
|
-
selectable={false}
|
|
673
665
|
style={
|
|
674
666
|
[
|
|
675
667
|
{
|
|
676
668
|
"color": "#0C0A0A",
|
|
677
669
|
"fontFamily": "AreaNormal-Semibold",
|
|
678
670
|
"fontSize": 13,
|
|
671
|
+
"fontStyle": "normal",
|
|
672
|
+
"fontWeight": "normal",
|
|
679
673
|
"letterSpacing": 0.1,
|
|
680
674
|
"lineHeight": 17,
|
|
681
|
-
"paddingBottom": 0,
|
|
682
|
-
"paddingLeft": 0,
|
|
683
|
-
"paddingRight": 0,
|
|
684
|
-
"paddingTop": 0,
|
|
685
675
|
},
|
|
676
|
+
undefined,
|
|
686
677
|
]
|
|
687
678
|
}
|
|
688
679
|
>
|
|
@@ -1287,20 +1278,19 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1287
1278
|
}
|
|
1288
1279
|
>
|
|
1289
1280
|
<Text
|
|
1290
|
-
allowFontScaling={false}
|
|
1291
|
-
selectable={false}
|
|
1292
1281
|
style={
|
|
1293
1282
|
[
|
|
1294
1283
|
{
|
|
1295
|
-
"color": "#
|
|
1284
|
+
"color": "#0C0A0A",
|
|
1296
1285
|
"fontFamily": "AreaNormal-Semibold",
|
|
1297
1286
|
"fontSize": 13,
|
|
1287
|
+
"fontStyle": "normal",
|
|
1288
|
+
"fontWeight": "normal",
|
|
1298
1289
|
"letterSpacing": 0.1,
|
|
1299
1290
|
"lineHeight": 17,
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
"
|
|
1303
|
-
"paddingTop": 0,
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"color": "#837C7C",
|
|
1304
1294
|
},
|
|
1305
1295
|
]
|
|
1306
1296
|
}
|
|
@@ -1308,21 +1298,18 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1308
1298
|
CKS
|
|
1309
1299
|
</Text>
|
|
1310
1300
|
<Text
|
|
1311
|
-
allowFontScaling={false}
|
|
1312
|
-
selectable={false}
|
|
1313
1301
|
style={
|
|
1314
1302
|
[
|
|
1315
1303
|
{
|
|
1316
1304
|
"color": "#0C0A0A",
|
|
1317
1305
|
"fontFamily": "AreaNormal-Extrabold",
|
|
1318
1306
|
"fontSize": 13,
|
|
1307
|
+
"fontStyle": "normal",
|
|
1308
|
+
"fontWeight": "normal",
|
|
1319
1309
|
"letterSpacing": 0.1,
|
|
1320
1310
|
"lineHeight": 17,
|
|
1321
|
-
"paddingBottom": 0,
|
|
1322
|
-
"paddingLeft": 0,
|
|
1323
|
-
"paddingRight": 0,
|
|
1324
|
-
"paddingTop": 0,
|
|
1325
1311
|
},
|
|
1312
|
+
undefined,
|
|
1326
1313
|
]
|
|
1327
1314
|
}
|
|
1328
1315
|
>
|
|
@@ -1338,21 +1325,19 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1338
1325
|
testID="price"
|
|
1339
1326
|
>
|
|
1340
1327
|
<Text
|
|
1341
|
-
|
|
1342
|
-
selectable={false}
|
|
1328
|
+
detail={true}
|
|
1343
1329
|
style={
|
|
1344
1330
|
[
|
|
1345
1331
|
{
|
|
1346
1332
|
"color": "#0C0A0A",
|
|
1347
1333
|
"fontFamily": "AreaNormal-Semibold",
|
|
1348
|
-
"fontSize":
|
|
1349
|
-
"
|
|
1350
|
-
"
|
|
1351
|
-
"
|
|
1352
|
-
"
|
|
1353
|
-
"paddingRight": 0,
|
|
1354
|
-
"paddingTop": 0,
|
|
1334
|
+
"fontSize": 22,
|
|
1335
|
+
"fontStyle": "normal",
|
|
1336
|
+
"fontWeight": "300",
|
|
1337
|
+
"letterSpacing": -0.2,
|
|
1338
|
+
"lineHeight": 26,
|
|
1355
1339
|
},
|
|
1340
|
+
undefined,
|
|
1356
1341
|
]
|
|
1357
1342
|
}
|
|
1358
1343
|
testID="price-text"
|
|
@@ -1362,21 +1347,18 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1362
1347
|
</View>
|
|
1363
1348
|
</View>
|
|
1364
1349
|
<Text
|
|
1365
|
-
allowFontScaling={false}
|
|
1366
|
-
selectable={false}
|
|
1367
1350
|
style={
|
|
1368
1351
|
[
|
|
1369
1352
|
{
|
|
1370
1353
|
"color": "#0C0A0A",
|
|
1371
1354
|
"fontFamily": "AreaNormal-Semibold",
|
|
1372
1355
|
"fontSize": 13,
|
|
1356
|
+
"fontStyle": "normal",
|
|
1357
|
+
"fontWeight": "normal",
|
|
1373
1358
|
"letterSpacing": 0.1,
|
|
1374
1359
|
"lineHeight": 17,
|
|
1375
|
-
"paddingBottom": 0,
|
|
1376
|
-
"paddingLeft": 0,
|
|
1377
|
-
"paddingRight": 0,
|
|
1378
|
-
"paddingTop": 0,
|
|
1379
1360
|
},
|
|
1361
|
+
undefined,
|
|
1380
1362
|
]
|
|
1381
1363
|
}
|
|
1382
1364
|
>
|
|
@@ -1981,20 +1963,19 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
1981
1963
|
}
|
|
1982
1964
|
>
|
|
1983
1965
|
<Text
|
|
1984
|
-
allowFontScaling={false}
|
|
1985
|
-
selectable={false}
|
|
1986
1966
|
style={
|
|
1987
1967
|
[
|
|
1988
1968
|
{
|
|
1989
|
-
"color": "#
|
|
1969
|
+
"color": "#0C0A0A",
|
|
1990
1970
|
"fontFamily": "AreaNormal-Semibold",
|
|
1991
1971
|
"fontSize": 13,
|
|
1972
|
+
"fontStyle": "normal",
|
|
1973
|
+
"fontWeight": "normal",
|
|
1992
1974
|
"letterSpacing": 0.1,
|
|
1993
1975
|
"lineHeight": 17,
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
"
|
|
1997
|
-
"paddingTop": 0,
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
"color": "#837C7C",
|
|
1998
1979
|
},
|
|
1999
1980
|
]
|
|
2000
1981
|
}
|
|
@@ -2002,21 +1983,18 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
2002
1983
|
CKS
|
|
2003
1984
|
</Text>
|
|
2004
1985
|
<Text
|
|
2005
|
-
allowFontScaling={false}
|
|
2006
|
-
selectable={false}
|
|
2007
1986
|
style={
|
|
2008
1987
|
[
|
|
2009
1988
|
{
|
|
2010
1989
|
"color": "#0C0A0A",
|
|
2011
1990
|
"fontFamily": "AreaNormal-Extrabold",
|
|
2012
1991
|
"fontSize": 13,
|
|
1992
|
+
"fontStyle": "normal",
|
|
1993
|
+
"fontWeight": "normal",
|
|
2013
1994
|
"letterSpacing": 0.1,
|
|
2014
1995
|
"lineHeight": 17,
|
|
2015
|
-
"paddingBottom": 0,
|
|
2016
|
-
"paddingLeft": 0,
|
|
2017
|
-
"paddingRight": 0,
|
|
2018
|
-
"paddingTop": 0,
|
|
2019
1996
|
},
|
|
1997
|
+
undefined,
|
|
2020
1998
|
]
|
|
2021
1999
|
}
|
|
2022
2000
|
>
|
|
@@ -2032,21 +2010,19 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
2032
2010
|
testID="price"
|
|
2033
2011
|
>
|
|
2034
2012
|
<Text
|
|
2035
|
-
|
|
2036
|
-
selectable={false}
|
|
2013
|
+
detail={true}
|
|
2037
2014
|
style={
|
|
2038
2015
|
[
|
|
2039
2016
|
{
|
|
2040
2017
|
"color": "#0C0A0A",
|
|
2041
2018
|
"fontFamily": "AreaNormal-Semibold",
|
|
2042
|
-
"fontSize":
|
|
2043
|
-
"
|
|
2044
|
-
"
|
|
2045
|
-
"
|
|
2046
|
-
"
|
|
2047
|
-
"paddingRight": 0,
|
|
2048
|
-
"paddingTop": 0,
|
|
2019
|
+
"fontSize": 22,
|
|
2020
|
+
"fontStyle": "normal",
|
|
2021
|
+
"fontWeight": "300",
|
|
2022
|
+
"letterSpacing": -0.2,
|
|
2023
|
+
"lineHeight": 26,
|
|
2049
2024
|
},
|
|
2025
|
+
undefined,
|
|
2050
2026
|
]
|
|
2051
2027
|
}
|
|
2052
2028
|
testID="price-text"
|
|
@@ -2056,21 +2032,18 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
2056
2032
|
</View>
|
|
2057
2033
|
</View>
|
|
2058
2034
|
<Text
|
|
2059
|
-
allowFontScaling={false}
|
|
2060
|
-
selectable={false}
|
|
2061
2035
|
style={
|
|
2062
2036
|
[
|
|
2063
2037
|
{
|
|
2064
2038
|
"color": "#0C0A0A",
|
|
2065
2039
|
"fontFamily": "AreaNormal-Semibold",
|
|
2066
2040
|
"fontSize": 13,
|
|
2041
|
+
"fontStyle": "normal",
|
|
2042
|
+
"fontWeight": "normal",
|
|
2067
2043
|
"letterSpacing": 0.1,
|
|
2068
2044
|
"lineHeight": 17,
|
|
2069
|
-
"paddingBottom": 0,
|
|
2070
|
-
"paddingLeft": 0,
|
|
2071
|
-
"paddingRight": 0,
|
|
2072
|
-
"paddingTop": 0,
|
|
2073
2045
|
},
|
|
2046
|
+
undefined,
|
|
2074
2047
|
]
|
|
2075
2048
|
}
|
|
2076
2049
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { Text } from "@lookiero/aurora";
|
|
4
3
|
import { useI18nNumber } from "@lookiero/i18n-react";
|
|
4
|
+
import { Text } from "@lookiero/sty-psp-ui";
|
|
5
5
|
import { PriceProjection } from "../../../../../../projection/price/price";
|
|
6
6
|
import { DOMAIN } from "../../../../i18n/i18n";
|
|
7
7
|
import { style as priceStyle } from "./Price.style";
|
|
@@ -32,16 +32,16 @@ const Price: FC<PriceProps> = ({ price, withPercentage = false }) => {
|
|
|
32
32
|
return (
|
|
33
33
|
<View style={style.price} testID="price">
|
|
34
34
|
{isDiscounted && (
|
|
35
|
-
<Text level={1} style={style.discountedPriceText} testID="discounted-price-text" detail
|
|
35
|
+
<Text level={1} style={style.discountedPriceText} testID="discounted-price-text" variant="detail">
|
|
36
36
|
{productPrice}
|
|
37
37
|
</Text>
|
|
38
38
|
)}
|
|
39
39
|
<View style={style.discountedPriceInfo}>
|
|
40
|
-
<Text level={1} testID="price-text" detail>
|
|
40
|
+
<Text level={1} testID="price-text" variant="detail">
|
|
41
41
|
{priceValue}
|
|
42
42
|
</Text>
|
|
43
43
|
{isDiscounted && withPercentage ? (
|
|
44
|
-
<Text level={1} style={style.discountedPercentage} testID="discounted-percentage-text" detail>
|
|
44
|
+
<Text level={1} style={style.discountedPercentage} testID="discounted-percentage-text" variant="detail">
|
|
45
45
|
{`-${price.discountedPrice.percentage}%`}
|
|
46
46
|
</Text>
|
|
47
47
|
) : null}
|
package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap
CHANGED
|
@@ -38,20 +38,19 @@ exports[`Price atom matches the snapshot for a discounted price: discounted pric
|
|
|
38
38
|
testID="price"
|
|
39
39
|
>
|
|
40
40
|
<Text
|
|
41
|
-
allowFontScaling={false}
|
|
42
|
-
selectable={false}
|
|
43
41
|
style={
|
|
44
42
|
[
|
|
45
43
|
{
|
|
46
|
-
"color": "#
|
|
44
|
+
"color": "#0C0A0A",
|
|
47
45
|
"fontFamily": "AreaNormal-Semibold",
|
|
48
46
|
"fontSize": 13,
|
|
47
|
+
"fontStyle": "normal",
|
|
48
|
+
"fontWeight": "normal",
|
|
49
49
|
"letterSpacing": 0.1,
|
|
50
50
|
"lineHeight": 17,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"paddingTop": 0,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"color": "#837C7C",
|
|
55
54
|
"textDecorationLine": "line-through",
|
|
56
55
|
},
|
|
57
56
|
]
|
|
@@ -69,21 +68,18 @@ exports[`Price atom matches the snapshot for a discounted price: discounted pric
|
|
|
69
68
|
}
|
|
70
69
|
>
|
|
71
70
|
<Text
|
|
72
|
-
allowFontScaling={false}
|
|
73
|
-
selectable={false}
|
|
74
71
|
style={
|
|
75
72
|
[
|
|
76
73
|
{
|
|
77
74
|
"color": "#0C0A0A",
|
|
78
75
|
"fontFamily": "AreaNormal-Semibold",
|
|
79
76
|
"fontSize": 13,
|
|
77
|
+
"fontStyle": "normal",
|
|
78
|
+
"fontWeight": "normal",
|
|
80
79
|
"letterSpacing": 0.1,
|
|
81
80
|
"lineHeight": 17,
|
|
82
|
-
"paddingBottom": 0,
|
|
83
|
-
"paddingLeft": 0,
|
|
84
|
-
"paddingRight": 0,
|
|
85
|
-
"paddingTop": 0,
|
|
86
81
|
},
|
|
82
|
+
undefined,
|
|
87
83
|
]
|
|
88
84
|
}
|
|
89
85
|
testID="price-text"
|
|
@@ -141,21 +137,18 @@ exports[`Price atom matches the snapshot for a non-discounted price: non-discoun
|
|
|
141
137
|
}
|
|
142
138
|
>
|
|
143
139
|
<Text
|
|
144
|
-
allowFontScaling={false}
|
|
145
|
-
selectable={false}
|
|
146
140
|
style={
|
|
147
141
|
[
|
|
148
142
|
{
|
|
149
143
|
"color": "#0C0A0A",
|
|
150
144
|
"fontFamily": "AreaNormal-Semibold",
|
|
151
145
|
"fontSize": 13,
|
|
146
|
+
"fontStyle": "normal",
|
|
147
|
+
"fontWeight": "normal",
|
|
152
148
|
"letterSpacing": 0.1,
|
|
153
149
|
"lineHeight": 17,
|
|
154
|
-
"paddingBottom": 0,
|
|
155
|
-
"paddingLeft": 0,
|
|
156
|
-
"paddingRight": 0,
|
|
157
|
-
"paddingTop": 0,
|
|
158
150
|
},
|
|
151
|
+
undefined,
|
|
159
152
|
]
|
|
160
153
|
}
|
|
161
154
|
testID="price-text"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { Image, View } from "react-native";
|
|
3
|
-
import { Text } from "@lookiero/aurora";
|
|
4
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
4
|
import { Country } from "@lookiero/sty-psp-locale";
|
|
5
|
+
import { Text } from "@lookiero/sty-psp-ui";
|
|
6
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";
|
|
@@ -51,13 +51,13 @@ const ProductVariantPreview: FC<ProductVariantPreviewProps> = ({ item, country }
|
|
|
51
51
|
)}
|
|
52
52
|
|
|
53
53
|
<View style={style.info}>
|
|
54
|
-
<Text level={2} style={style.text} detail>
|
|
54
|
+
<Text level={2} style={style.text} variant="detail">
|
|
55
55
|
{brand}
|
|
56
56
|
</Text>
|
|
57
|
-
<Text level={2} detail>
|
|
57
|
+
<Text level={2} variant="detail">
|
|
58
58
|
{name}
|
|
59
59
|
</Text>
|
|
60
|
-
<Text level={2} style={style.text} detail>
|
|
60
|
+
<Text level={2} style={style.text} variant="detail">
|
|
61
61
|
{`${sizeText} ${sizeProjection.unique ? uniqueText : size({ size: sizeProjection, country })}`}
|
|
62
62
|
</Text>
|
|
63
63
|
</View>
|
|
@@ -103,20 +103,19 @@ exports[`ProductVariantPreview matches the snapshot 1`] = `
|
|
|
103
103
|
}
|
|
104
104
|
>
|
|
105
105
|
<Text
|
|
106
|
-
allowFontScaling={false}
|
|
107
|
-
selectable={false}
|
|
108
106
|
style={
|
|
109
107
|
[
|
|
110
108
|
{
|
|
111
|
-
"color": "#
|
|
109
|
+
"color": "#0C0A0A",
|
|
112
110
|
"fontFamily": "AreaNormal-Semibold",
|
|
113
111
|
"fontSize": 12,
|
|
112
|
+
"fontStyle": "normal",
|
|
113
|
+
"fontWeight": "normal",
|
|
114
114
|
"letterSpacing": 0.1,
|
|
115
115
|
"lineHeight": 16,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
"
|
|
119
|
-
"paddingTop": 0,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"color": "#837C7C",
|
|
120
119
|
},
|
|
121
120
|
]
|
|
122
121
|
}
|
|
@@ -124,41 +123,37 @@ exports[`ProductVariantPreview matches the snapshot 1`] = `
|
|
|
124
123
|
CKS
|
|
125
124
|
</Text>
|
|
126
125
|
<Text
|
|
127
|
-
allowFontScaling={false}
|
|
128
|
-
selectable={false}
|
|
129
126
|
style={
|
|
130
127
|
[
|
|
131
128
|
{
|
|
132
129
|
"color": "#0C0A0A",
|
|
133
130
|
"fontFamily": "AreaNormal-Semibold",
|
|
134
131
|
"fontSize": 12,
|
|
132
|
+
"fontStyle": "normal",
|
|
133
|
+
"fontWeight": "normal",
|
|
135
134
|
"letterSpacing": 0.1,
|
|
136
135
|
"lineHeight": 16,
|
|
137
|
-
"paddingBottom": 0,
|
|
138
|
-
"paddingLeft": 0,
|
|
139
|
-
"paddingRight": 0,
|
|
140
|
-
"paddingTop": 0,
|
|
141
136
|
},
|
|
137
|
+
undefined,
|
|
142
138
|
]
|
|
143
139
|
}
|
|
144
140
|
>
|
|
145
141
|
Sari Tshirt lines
|
|
146
142
|
</Text>
|
|
147
143
|
<Text
|
|
148
|
-
allowFontScaling={false}
|
|
149
|
-
selectable={false}
|
|
150
144
|
style={
|
|
151
145
|
[
|
|
152
146
|
{
|
|
153
|
-
"color": "#
|
|
147
|
+
"color": "#0C0A0A",
|
|
154
148
|
"fontFamily": "AreaNormal-Semibold",
|
|
155
149
|
"fontSize": 12,
|
|
150
|
+
"fontStyle": "normal",
|
|
151
|
+
"fontWeight": "normal",
|
|
156
152
|
"letterSpacing": 0.1,
|
|
157
153
|
"lineHeight": 16,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"
|
|
161
|
-
"paddingTop": 0,
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"color": "#837C7C",
|
|
162
157
|
},
|
|
163
158
|
]
|
|
164
159
|
}
|
|
@@ -190,21 +185,18 @@ exports[`ProductVariantPreview matches the snapshot 1`] = `
|
|
|
190
185
|
}
|
|
191
186
|
>
|
|
192
187
|
<Text
|
|
193
|
-
allowFontScaling={false}
|
|
194
|
-
selectable={false}
|
|
195
188
|
style={
|
|
196
189
|
[
|
|
197
190
|
{
|
|
198
191
|
"color": "#0C0A0A",
|
|
199
192
|
"fontFamily": "AreaNormal-Semibold",
|
|
200
193
|
"fontSize": 13,
|
|
194
|
+
"fontStyle": "normal",
|
|
195
|
+
"fontWeight": "normal",
|
|
201
196
|
"letterSpacing": 0.1,
|
|
202
197
|
"lineHeight": 17,
|
|
203
|
-
"paddingBottom": 0,
|
|
204
|
-
"paddingLeft": 0,
|
|
205
|
-
"paddingRight": 0,
|
|
206
|
-
"paddingTop": 0,
|
|
207
198
|
},
|
|
199
|
+
undefined,
|
|
208
200
|
]
|
|
209
201
|
}
|
|
210
202
|
testID="price-text"
|
package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx
CHANGED
|
@@ -3,12 +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, Button, Layout as AuroraLayout, Spinner
|
|
6
|
+
import { Box, Button, 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";
|
|
12
13
|
import { Layout as UiLayout, useScreenSize } from "@lookiero/sty-psp-ui";
|
|
13
14
|
import { Tradename } from "@lookiero/sty-sp-tradename";
|
|
14
15
|
import { CheckoutProjection } from "../../../../../../projection/checkout/checkout";
|
|
@@ -182,10 +183,10 @@ const ReturnQuestionsForm: FC<ReturnQuestionsFormProps> = ({
|
|
|
182
183
|
tradename === Tradename.OUTFITTERY && style.infoOutfittery,
|
|
183
184
|
]}
|
|
184
185
|
>
|
|
185
|
-
<Text level={3} heading>
|
|
186
|
+
<Text level={3} variant="heading">
|
|
186
187
|
{titleText}
|
|
187
188
|
</Text>
|
|
188
|
-
<Text level={1} style={style.description} detail>
|
|
189
|
+
<Text level={1} style={style.description} variant="detail">
|
|
189
190
|
{descriptionText}
|
|
190
191
|
</Text>
|
|
191
192
|
</View>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { Pressable, StyleProp, View, ViewStyle } from "react-native";
|
|
3
|
-
import { Text } from "@lookiero/aurora";
|
|
4
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
4
|
import { Country } from "@lookiero/sty-psp-locale";
|
|
5
|
+
import { Text } from "@lookiero/sty-psp-ui";
|
|
6
6
|
import { Icon, LazyImage } from "@lookiero/sty-psp-ui";
|
|
7
7
|
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
8
8
|
import { ColorProjection, MediaProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
@@ -69,19 +69,19 @@ const ProductVariant: FC<ProductVariantProps> = ({
|
|
|
69
69
|
|
|
70
70
|
<View style={style.descriptionContainer}>
|
|
71
71
|
<View style={style.infoProductVariant}>
|
|
72
|
-
<Text level={2} style={style.text} detail>
|
|
72
|
+
<Text level={2} style={style.text} variant="detail">
|
|
73
73
|
{brand}
|
|
74
74
|
</Text>
|
|
75
|
-
<Text level={2} detail>
|
|
75
|
+
<Text level={2} variant="detail">
|
|
76
76
|
{name}
|
|
77
77
|
</Text>
|
|
78
|
-
<Text level={2} style={style.text} detail>
|
|
78
|
+
<Text level={2} style={style.text} variant="detail">
|
|
79
79
|
{sizeProjection.unique ? uniqueText : size({ size: sizeProjection, country })} / {colorLabel}
|
|
80
80
|
</Text>
|
|
81
81
|
|
|
82
82
|
{status === CheckoutItemStatus.REPLACED && (
|
|
83
83
|
<View style={style.sizeChange}>
|
|
84
|
-
<Text level={2} detail>
|
|
84
|
+
<Text level={2} variant="detail">
|
|
85
85
|
{sizeChangeText}
|
|
86
86
|
</Text>
|
|
87
87
|
</View>
|