@lookiero/checkout 14.0.4 → 14.2.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/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 +3 -2
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +3 -2
- package/dist/src/infrastructure/ui/components/atoms/price/Price.js +1 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +1 -1
- 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 +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostLegacyRadioGroupReturnQuestionItem/HostLegacyRadioGroupReturnQuestionItem.js +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +1 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +1 -1
- 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 +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +1 -1
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +2 -2
- 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 +3 -2
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +4 -4
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +2 -2
- package/dist/src/infrastructure/ui/views/return/components/price/Price.js +1 -1
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +1 -1
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +2 -1
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +1 -1
- package/dist/src/infrastructure/ui/views/summary/Summary.js +2 -2
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +2 -2
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +1 -1
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +1 -1
- package/dist/src/projection/order/order.d.ts +6 -0
- package/dist/src/projection/order/order.js +1 -0
- package/dist/src/projection/subscription/subscription.d.ts +2 -0
- package/dist/src/projection/subscription/subscription.js +1 -0
- package/dist/src/version.d.ts +2 -2
- package/dist/src/version.js +2 -2
- package/package.json +4 -4
- package/src/ExpoRoot.tsx +3 -2
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +3 -2
- package/src/infrastructure/ui/components/atoms/price/Price.tsx +1 -1
- package/src/infrastructure/ui/components/atoms/price/__snapshots__/Price.test.tsx.snap +11 -21
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +1 -1
- 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 +1 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostLegacyRadioGroupReturnQuestionItem/HostLegacyRadioGroupReturnQuestionItem.tsx +1 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +1 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +1 -1
- 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 +1 -1
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +1 -1
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +21 -20
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +1 -1
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +21 -20
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +1 -1
- package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +39 -33
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +2 -2
- package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +3 -2
- package/src/infrastructure/ui/views/item/components/banner/__snapshots__/CustomerDecissionBanner.test.tsx.snap +9 -21
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +4 -4
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +31 -32
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +45 -36
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/productVariantDescription/__snapshots__/ProductVariantDescription.test.tsx.snap +28 -56
- package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +29 -21
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +2 -2
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +28 -27
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +42 -84
- package/src/infrastructure/ui/views/return/components/price/Price.tsx +1 -1
- package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap +11 -21
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +1 -1
- package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +16 -28
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +2 -1
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +1 -1
- package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +68 -82
- package/src/infrastructure/ui/views/summary/Summary.tsx +2 -2
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +2 -2
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +50 -54
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +1 -1
- 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 +172 -196
|
@@ -228,20 +228,18 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
|
|
|
228
228
|
}
|
|
229
229
|
>
|
|
230
230
|
<Text
|
|
231
|
-
allowFontScaling={false}
|
|
232
|
-
selectable={false}
|
|
233
231
|
style={
|
|
234
232
|
[
|
|
235
233
|
{
|
|
236
|
-
"color": "#837C7C",
|
|
237
234
|
"fontFamily": "AreaNormal-Semibold",
|
|
238
235
|
"fontSize": 12,
|
|
236
|
+
"fontStyle": "normal",
|
|
237
|
+
"fontWeight": "normal",
|
|
239
238
|
"letterSpacing": 0.1,
|
|
240
239
|
"lineHeight": 16,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
"
|
|
244
|
-
"paddingTop": 0,
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"color": "#837C7C",
|
|
245
243
|
},
|
|
246
244
|
]
|
|
247
245
|
}
|
|
@@ -249,41 +247,35 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
|
|
|
249
247
|
CKS
|
|
250
248
|
</Text>
|
|
251
249
|
<Text
|
|
252
|
-
allowFontScaling={false}
|
|
253
|
-
selectable={false}
|
|
254
250
|
style={
|
|
255
251
|
[
|
|
256
252
|
{
|
|
257
|
-
"color": "#0C0A0A",
|
|
258
253
|
"fontFamily": "AreaNormal-Semibold",
|
|
259
254
|
"fontSize": 12,
|
|
255
|
+
"fontStyle": "normal",
|
|
256
|
+
"fontWeight": "normal",
|
|
260
257
|
"letterSpacing": 0.1,
|
|
261
258
|
"lineHeight": 16,
|
|
262
|
-
"paddingBottom": 0,
|
|
263
|
-
"paddingLeft": 0,
|
|
264
|
-
"paddingRight": 0,
|
|
265
|
-
"paddingTop": 0,
|
|
266
259
|
},
|
|
260
|
+
undefined,
|
|
267
261
|
]
|
|
268
262
|
}
|
|
269
263
|
>
|
|
270
264
|
Sari Tshirt lines
|
|
271
265
|
</Text>
|
|
272
266
|
<Text
|
|
273
|
-
allowFontScaling={false}
|
|
274
|
-
selectable={false}
|
|
275
267
|
style={
|
|
276
268
|
[
|
|
277
269
|
{
|
|
278
|
-
"color": "#837C7C",
|
|
279
270
|
"fontFamily": "AreaNormal-Semibold",
|
|
280
271
|
"fontSize": 12,
|
|
272
|
+
"fontStyle": "normal",
|
|
273
|
+
"fontWeight": "normal",
|
|
281
274
|
"letterSpacing": 0.1,
|
|
282
275
|
"lineHeight": 16,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
"
|
|
286
|
-
"paddingTop": 0,
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"color": "#837C7C",
|
|
287
279
|
},
|
|
288
280
|
]
|
|
289
281
|
}
|
|
@@ -302,21 +294,17 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
|
|
|
302
294
|
testID="price"
|
|
303
295
|
>
|
|
304
296
|
<Text
|
|
305
|
-
allowFontScaling={false}
|
|
306
|
-
selectable={false}
|
|
307
297
|
style={
|
|
308
298
|
[
|
|
309
299
|
{
|
|
310
|
-
"color": "#0C0A0A",
|
|
311
300
|
"fontFamily": "AreaNormal-Semibold",
|
|
312
301
|
"fontSize": 12,
|
|
302
|
+
"fontStyle": "normal",
|
|
303
|
+
"fontWeight": "normal",
|
|
313
304
|
"letterSpacing": 0.1,
|
|
314
305
|
"lineHeight": 16,
|
|
315
|
-
"paddingBottom": 0,
|
|
316
|
-
"paddingLeft": 0,
|
|
317
|
-
"paddingRight": 0,
|
|
318
|
-
"paddingTop": 0,
|
|
319
306
|
},
|
|
307
|
+
undefined,
|
|
320
308
|
]
|
|
321
309
|
}
|
|
322
310
|
testID="price-text"
|
|
@@ -334,22 +322,27 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
|
|
|
334
322
|
style={
|
|
335
323
|
[
|
|
336
324
|
{
|
|
337
|
-
"
|
|
338
|
-
"
|
|
339
|
-
"fontSize": 24,
|
|
325
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
326
|
+
"fontSize": 15,
|
|
340
327
|
"fontStyle": "normal",
|
|
341
|
-
"fontWeight": "
|
|
342
|
-
"height": 24,
|
|
328
|
+
"fontWeight": "300",
|
|
343
329
|
"letterSpacing": -0.2,
|
|
344
|
-
"lineHeight":
|
|
345
|
-
"minHeight": 24,
|
|
346
|
-
"minWidth": 24,
|
|
347
|
-
"paddingBottom": 0,
|
|
348
|
-
"paddingLeft": 0,
|
|
349
|
-
"paddingRight": 0,
|
|
350
|
-
"paddingTop": 0,
|
|
351
|
-
"width": 24,
|
|
330
|
+
"lineHeight": 20,
|
|
352
331
|
},
|
|
332
|
+
[
|
|
333
|
+
{
|
|
334
|
+
"fontFamily": "auroraicons",
|
|
335
|
+
"fontSize": 24,
|
|
336
|
+
"fontStyle": "normal",
|
|
337
|
+
"fontWeight": "normal",
|
|
338
|
+
"height": 24,
|
|
339
|
+
"lineHeight": 24,
|
|
340
|
+
"minHeight": 24,
|
|
341
|
+
"minWidth": 24,
|
|
342
|
+
"width": 24,
|
|
343
|
+
},
|
|
344
|
+
undefined,
|
|
345
|
+
],
|
|
353
346
|
]
|
|
354
347
|
}
|
|
355
348
|
testID="icon"
|
|
@@ -588,20 +581,18 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
|
|
|
588
581
|
}
|
|
589
582
|
>
|
|
590
583
|
<Text
|
|
591
|
-
allowFontScaling={false}
|
|
592
|
-
selectable={false}
|
|
593
584
|
style={
|
|
594
585
|
[
|
|
595
586
|
{
|
|
596
|
-
"color": "#837C7C",
|
|
597
587
|
"fontFamily": "AreaNormal-Semibold",
|
|
598
588
|
"fontSize": 12,
|
|
589
|
+
"fontStyle": "normal",
|
|
590
|
+
"fontWeight": "normal",
|
|
599
591
|
"letterSpacing": 0.1,
|
|
600
592
|
"lineHeight": 16,
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
"
|
|
604
|
-
"paddingTop": 0,
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"color": "#837C7C",
|
|
605
596
|
},
|
|
606
597
|
]
|
|
607
598
|
}
|
|
@@ -609,41 +600,35 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
|
|
|
609
600
|
CKS
|
|
610
601
|
</Text>
|
|
611
602
|
<Text
|
|
612
|
-
allowFontScaling={false}
|
|
613
|
-
selectable={false}
|
|
614
603
|
style={
|
|
615
604
|
[
|
|
616
605
|
{
|
|
617
|
-
"color": "#0C0A0A",
|
|
618
606
|
"fontFamily": "AreaNormal-Semibold",
|
|
619
607
|
"fontSize": 12,
|
|
608
|
+
"fontStyle": "normal",
|
|
609
|
+
"fontWeight": "normal",
|
|
620
610
|
"letterSpacing": 0.1,
|
|
621
611
|
"lineHeight": 16,
|
|
622
|
-
"paddingBottom": 0,
|
|
623
|
-
"paddingLeft": 0,
|
|
624
|
-
"paddingRight": 0,
|
|
625
|
-
"paddingTop": 0,
|
|
626
612
|
},
|
|
613
|
+
undefined,
|
|
627
614
|
]
|
|
628
615
|
}
|
|
629
616
|
>
|
|
630
617
|
Sari Tshirt lines
|
|
631
618
|
</Text>
|
|
632
619
|
<Text
|
|
633
|
-
allowFontScaling={false}
|
|
634
|
-
selectable={false}
|
|
635
620
|
style={
|
|
636
621
|
[
|
|
637
622
|
{
|
|
638
|
-
"color": "#837C7C",
|
|
639
623
|
"fontFamily": "AreaNormal-Semibold",
|
|
640
624
|
"fontSize": 12,
|
|
625
|
+
"fontStyle": "normal",
|
|
626
|
+
"fontWeight": "normal",
|
|
641
627
|
"letterSpacing": 0.1,
|
|
642
628
|
"lineHeight": 16,
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
"
|
|
646
|
-
"paddingTop": 0,
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"color": "#837C7C",
|
|
647
632
|
},
|
|
648
633
|
]
|
|
649
634
|
}
|
|
@@ -662,21 +647,17 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
|
|
|
662
647
|
testID="price"
|
|
663
648
|
>
|
|
664
649
|
<Text
|
|
665
|
-
allowFontScaling={false}
|
|
666
|
-
selectable={false}
|
|
667
650
|
style={
|
|
668
651
|
[
|
|
669
652
|
{
|
|
670
|
-
"color": "#0C0A0A",
|
|
671
653
|
"fontFamily": "AreaNormal-Semibold",
|
|
672
654
|
"fontSize": 12,
|
|
655
|
+
"fontStyle": "normal",
|
|
656
|
+
"fontWeight": "normal",
|
|
673
657
|
"letterSpacing": 0.1,
|
|
674
658
|
"lineHeight": 16,
|
|
675
|
-
"paddingBottom": 0,
|
|
676
|
-
"paddingLeft": 0,
|
|
677
|
-
"paddingRight": 0,
|
|
678
|
-
"paddingTop": 0,
|
|
679
659
|
},
|
|
660
|
+
undefined,
|
|
680
661
|
]
|
|
681
662
|
}
|
|
682
663
|
testID="price-text"
|
|
@@ -694,22 +675,27 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
|
|
|
694
675
|
style={
|
|
695
676
|
[
|
|
696
677
|
{
|
|
697
|
-
"
|
|
698
|
-
"
|
|
699
|
-
"fontSize": 24,
|
|
678
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
679
|
+
"fontSize": 15,
|
|
700
680
|
"fontStyle": "normal",
|
|
701
|
-
"fontWeight": "
|
|
702
|
-
"height": 24,
|
|
681
|
+
"fontWeight": "300",
|
|
703
682
|
"letterSpacing": -0.2,
|
|
704
|
-
"lineHeight":
|
|
705
|
-
"minHeight": 24,
|
|
706
|
-
"minWidth": 24,
|
|
707
|
-
"paddingBottom": 0,
|
|
708
|
-
"paddingLeft": 0,
|
|
709
|
-
"paddingRight": 0,
|
|
710
|
-
"paddingTop": 0,
|
|
711
|
-
"width": 24,
|
|
683
|
+
"lineHeight": 20,
|
|
712
684
|
},
|
|
685
|
+
[
|
|
686
|
+
{
|
|
687
|
+
"fontFamily": "auroraicons",
|
|
688
|
+
"fontSize": 24,
|
|
689
|
+
"fontStyle": "normal",
|
|
690
|
+
"fontWeight": "normal",
|
|
691
|
+
"height": 24,
|
|
692
|
+
"lineHeight": 24,
|
|
693
|
+
"minHeight": 24,
|
|
694
|
+
"minWidth": 24,
|
|
695
|
+
"width": 24,
|
|
696
|
+
},
|
|
697
|
+
undefined,
|
|
698
|
+
],
|
|
713
699
|
]
|
|
714
700
|
}
|
|
715
701
|
testID="icon"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { FC, ReactNode, useCallback, useEffect, useMemo, useState } from "react";
|
|
2
2
|
import { LayoutRectangle, Platform, ScrollView, View } from "react-native";
|
|
3
3
|
import { generatePath, useMatch, useNavigate } from "react-router-native";
|
|
4
|
-
import { Box,
|
|
4
|
+
import { Box, Layout as AuroraLayout, Spinner } from "@lookiero/aurora";
|
|
5
5
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
6
6
|
import { QueryStatus } from "@lookiero/messaging-react";
|
|
7
|
-
import { Layout as UiLayout, Sticky, useScreenSize } from "@lookiero/sty-psp-ui";
|
|
7
|
+
import { Layout as UiLayout, Sticky, Text, useScreenSize } from "@lookiero/sty-psp-ui";
|
|
8
8
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
9
9
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
10
10
|
import { useViewFiveItemsDiscountByCustomerId } from "../../../projection/checkout/react/useViewFiveItemsDiscountByCustomerId";
|
package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
4
|
+
import { Button } from "@lookiero/aurora";
|
|
5
5
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
6
|
-
import { Icon } from "@lookiero/sty-psp-ui";
|
|
6
|
+
import { Icon, Text } from "@lookiero/sty-psp-ui";
|
|
7
7
|
import { Tradename } from "@lookiero/sty-sp-tradename";
|
|
8
8
|
import { PricingProjection } from "../../../../../../projection/pricing/pricing";
|
|
9
9
|
import { Price } from "../../../../components/atoms/price/Price";
|
|
@@ -75,22 +75,27 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
|
|
|
75
75
|
style={
|
|
76
76
|
[
|
|
77
77
|
{
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"fontSize": 24,
|
|
78
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
79
|
+
"fontSize": 15,
|
|
81
80
|
"fontStyle": "normal",
|
|
82
|
-
"fontWeight": "
|
|
83
|
-
"height": 24,
|
|
81
|
+
"fontWeight": "300",
|
|
84
82
|
"letterSpacing": -0.2,
|
|
85
|
-
"lineHeight":
|
|
86
|
-
"minHeight": 24,
|
|
87
|
-
"minWidth": 24,
|
|
88
|
-
"paddingBottom": 0,
|
|
89
|
-
"paddingLeft": 0,
|
|
90
|
-
"paddingRight": 0,
|
|
91
|
-
"paddingTop": 0,
|
|
92
|
-
"width": 24,
|
|
83
|
+
"lineHeight": 20,
|
|
93
84
|
},
|
|
85
|
+
[
|
|
86
|
+
{
|
|
87
|
+
"fontFamily": "auroraicons",
|
|
88
|
+
"fontSize": 24,
|
|
89
|
+
"fontStyle": "normal",
|
|
90
|
+
"fontWeight": "normal",
|
|
91
|
+
"height": 24,
|
|
92
|
+
"lineHeight": 24,
|
|
93
|
+
"minHeight": 24,
|
|
94
|
+
"minWidth": 24,
|
|
95
|
+
"width": 24,
|
|
96
|
+
},
|
|
97
|
+
undefined,
|
|
98
|
+
],
|
|
94
99
|
]
|
|
95
100
|
}
|
|
96
101
|
testID="arrow-up"
|
|
@@ -120,21 +125,18 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
|
|
|
120
125
|
}
|
|
121
126
|
>
|
|
122
127
|
<Text
|
|
123
|
-
allowFontScaling={false}
|
|
124
|
-
selectable={false}
|
|
125
128
|
style={
|
|
126
129
|
[
|
|
127
130
|
{
|
|
128
|
-
"color": "#0C0A0A",
|
|
129
131
|
"fontFamily": "AreaNormal-Semibold",
|
|
130
132
|
"fontSize": 13,
|
|
133
|
+
"fontStyle": "normal",
|
|
134
|
+
"fontWeight": "normal",
|
|
131
135
|
"letterSpacing": 0.1,
|
|
132
136
|
"lineHeight": 17,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
133
139
|
"marginBottom": 4,
|
|
134
|
-
"paddingBottom": 0,
|
|
135
|
-
"paddingLeft": 0,
|
|
136
|
-
"paddingRight": 0,
|
|
137
|
-
"paddingTop": 0,
|
|
138
140
|
},
|
|
139
141
|
]
|
|
140
142
|
}
|
|
@@ -152,21 +154,17 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
|
|
|
152
154
|
testID="price"
|
|
153
155
|
>
|
|
154
156
|
<Text
|
|
155
|
-
allowFontScaling={false}
|
|
156
|
-
selectable={false}
|
|
157
157
|
style={
|
|
158
158
|
[
|
|
159
159
|
{
|
|
160
|
-
"color": "#0C0A0A",
|
|
161
160
|
"fontFamily": "AreaNormal-Semibold",
|
|
162
161
|
"fontSize": 12,
|
|
162
|
+
"fontStyle": "normal",
|
|
163
|
+
"fontWeight": "normal",
|
|
163
164
|
"letterSpacing": 0.1,
|
|
164
165
|
"lineHeight": 16,
|
|
165
|
-
"paddingBottom": 0,
|
|
166
|
-
"paddingLeft": 0,
|
|
167
|
-
"paddingRight": 0,
|
|
168
|
-
"paddingTop": 0,
|
|
169
166
|
},
|
|
167
|
+
undefined,
|
|
170
168
|
]
|
|
171
169
|
}
|
|
172
170
|
testID="price-text"
|
|
@@ -427,22 +425,27 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
|
|
|
427
425
|
style={
|
|
428
426
|
[
|
|
429
427
|
{
|
|
430
|
-
"
|
|
431
|
-
"
|
|
432
|
-
"fontSize": 24,
|
|
428
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
429
|
+
"fontSize": 15,
|
|
433
430
|
"fontStyle": "normal",
|
|
434
|
-
"fontWeight": "
|
|
435
|
-
"height": 24,
|
|
431
|
+
"fontWeight": "300",
|
|
436
432
|
"letterSpacing": -0.2,
|
|
437
|
-
"lineHeight":
|
|
438
|
-
"minHeight": 24,
|
|
439
|
-
"minWidth": 24,
|
|
440
|
-
"paddingBottom": 0,
|
|
441
|
-
"paddingLeft": 0,
|
|
442
|
-
"paddingRight": 0,
|
|
443
|
-
"paddingTop": 0,
|
|
444
|
-
"width": 24,
|
|
433
|
+
"lineHeight": 20,
|
|
445
434
|
},
|
|
435
|
+
[
|
|
436
|
+
{
|
|
437
|
+
"fontFamily": "auroraicons",
|
|
438
|
+
"fontSize": 24,
|
|
439
|
+
"fontStyle": "normal",
|
|
440
|
+
"fontWeight": "normal",
|
|
441
|
+
"height": 24,
|
|
442
|
+
"lineHeight": 24,
|
|
443
|
+
"minHeight": 24,
|
|
444
|
+
"minWidth": 24,
|
|
445
|
+
"width": 24,
|
|
446
|
+
},
|
|
447
|
+
undefined,
|
|
448
|
+
],
|
|
446
449
|
]
|
|
447
450
|
}
|
|
448
451
|
testID="arrow-up"
|
|
@@ -472,21 +475,18 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
|
|
|
472
475
|
}
|
|
473
476
|
>
|
|
474
477
|
<Text
|
|
475
|
-
allowFontScaling={false}
|
|
476
|
-
selectable={false}
|
|
477
478
|
style={
|
|
478
479
|
[
|
|
479
480
|
{
|
|
480
|
-
"color": "#0C0A0A",
|
|
481
481
|
"fontFamily": "AreaNormal-Semibold",
|
|
482
482
|
"fontSize": 13,
|
|
483
|
+
"fontStyle": "normal",
|
|
484
|
+
"fontWeight": "normal",
|
|
483
485
|
"letterSpacing": 0.1,
|
|
484
486
|
"lineHeight": 17,
|
|
487
|
+
},
|
|
488
|
+
{
|
|
485
489
|
"marginBottom": 4,
|
|
486
|
-
"paddingBottom": 0,
|
|
487
|
-
"paddingLeft": 0,
|
|
488
|
-
"paddingRight": 0,
|
|
489
|
-
"paddingTop": 0,
|
|
490
490
|
},
|
|
491
491
|
]
|
|
492
492
|
}
|
|
@@ -504,21 +504,17 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
|
|
|
504
504
|
testID="price"
|
|
505
505
|
>
|
|
506
506
|
<Text
|
|
507
|
-
allowFontScaling={false}
|
|
508
|
-
selectable={false}
|
|
509
507
|
style={
|
|
510
508
|
[
|
|
511
509
|
{
|
|
512
|
-
"color": "#0C0A0A",
|
|
513
510
|
"fontFamily": "AreaNormal-Semibold",
|
|
514
511
|
"fontSize": 12,
|
|
512
|
+
"fontStyle": "normal",
|
|
513
|
+
"fontWeight": "normal",
|
|
515
514
|
"letterSpacing": 0.1,
|
|
516
515
|
"lineHeight": 16,
|
|
517
|
-
"paddingBottom": 0,
|
|
518
|
-
"paddingLeft": 0,
|
|
519
|
-
"paddingRight": 0,
|
|
520
|
-
"paddingTop": 0,
|
|
521
516
|
},
|
|
517
|
+
undefined,
|
|
522
518
|
]
|
|
523
519
|
}
|
|
524
520
|
testID="price-text"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FC, ReactNode, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { Text } from "@lookiero/aurora";
|
|
4
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
4
|
+
import { Text } from "@lookiero/sty-psp-ui";
|
|
5
5
|
import { Tradename } from "@lookiero/sty-sp-tradename";
|
|
6
6
|
import { PricingProjection } from "../../../../../../projection/pricing/pricing";
|
|
7
7
|
import { Price } from "../../../../components/atoms/price/Price";
|
package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { FC, useCallback, useMemo } from "react";
|
|
2
2
|
import { 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 { RenderItemFunction, Tabs, useScreenSize } from "@lookiero/sty-psp-ui";
|
|
7
7
|
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
8
8
|
import {
|