@lookiero/checkout 9.9.0 → 9.11.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.
Files changed (38) hide show
  1. package/dist/src/ExpoRoot.js +2 -2
  2. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +3 -2
  3. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +1 -0
  4. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +2 -1
  5. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +1 -0
  6. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.js +2 -1
  7. package/dist/src/version.d.ts +1 -1
  8. package/dist/src/version.js +1 -1
  9. package/jest.config.js +2 -2
  10. package/package.json +1 -1
  11. package/src/ExpoRoot.tsx +2 -2
  12. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.ts +3 -2
  13. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/__snapshots__/FiveItemsDiscountBanner.test.tsx.snap +1 -1
  14. package/src/infrastructure/ui/components/atoms/price/__snapshots__/Price.test.tsx.snap +3 -3
  15. package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +1 -1
  16. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +1 -1
  17. package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +1 -1
  18. package/src/infrastructure/ui/views/checkout/components/deliveryBanner/__snapshots__/DeliveryBanner.test.tsx.snap +1 -1
  19. package/src/infrastructure/ui/views/item/components/banner/__snapshots__/CustomerDecissionBanner.test.tsx.snap +3 -3
  20. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +3 -3
  21. package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +5 -5
  22. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +2 -1
  23. package/src/infrastructure/ui/views/item/components/productVariantDescription/__snapshots__/ProductVariantDescription.test.tsx.snap +10 -8
  24. package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +30 -30
  25. package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +1 -1
  26. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +2 -2
  27. package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +105 -102
  28. package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap +3 -3
  29. package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +1 -1
  30. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.style.ts +2 -1
  31. package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +30 -30
  32. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +4 -4
  33. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +62 -62
  34. package/dist/src/infrastructure/ui/components/templates/footer/Footer.d.ts +0 -3
  35. package/dist/src/infrastructure/ui/components/templates/footer/Footer.js +0 -13
  36. package/src/infrastructure/ui/components/templates/footer/Footer.test.tsx +0 -15
  37. package/src/infrastructure/ui/components/templates/footer/Footer.tsx +0 -19
  38. package/src/infrastructure/ui/components/templates/footer/__snapshots__/Footer.test.tsx.snap +0 -1127
@@ -184,20 +184,20 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
184
184
  }
185
185
  }
186
186
  >
187
- <View
187
+ <ViewManagerAdapter_ExpoLinearGradient
188
188
  colors={
189
189
  [
190
- "rgba(255, 255, 255, 0)",
191
- "#DAD8D8",
192
- "#DAD8D8",
193
- "rgba(255, 255, 255, 0)",
190
+ 16777215,
191
+ 4292532440,
192
+ 4292532440,
193
+ 16777215,
194
194
  ]
195
195
  }
196
- end={
197
- {
198
- "x": 1,
199
- "y": 0,
200
- }
196
+ endPoint={
197
+ [
198
+ 1,
199
+ 0,
200
+ ]
201
201
  }
202
202
  locations={
203
203
  [
@@ -207,11 +207,11 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
207
207
  1,
208
208
  ]
209
209
  }
210
- start={
211
- {
212
- "x": 0,
213
- "y": 0,
214
- }
210
+ startPoint={
211
+ [
212
+ 0,
213
+ 0,
214
+ ]
215
215
  }
216
216
  style={
217
217
  {
@@ -343,20 +343,20 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
343
343
  }
344
344
  }
345
345
  >
346
- <View
346
+ <ViewManagerAdapter_ExpoLinearGradient
347
347
  colors={
348
348
  [
349
- "rgba(255, 255, 255, 0)",
350
- "#DAD8D8",
351
- "#DAD8D8",
352
- "rgba(255, 255, 255, 0)",
349
+ 16777215,
350
+ 4292532440,
351
+ 4292532440,
352
+ 16777215,
353
353
  ]
354
354
  }
355
- end={
356
- {
357
- "x": 1,
358
- "y": 0,
359
- }
355
+ endPoint={
356
+ [
357
+ 1,
358
+ 0,
359
+ ]
360
360
  }
361
361
  locations={
362
362
  [
@@ -366,11 +366,11 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
366
366
  1,
367
367
  ]
368
368
  }
369
- start={
370
- {
371
- "x": 0,
372
- "y": 0,
373
- }
369
+ startPoint={
370
+ [
371
+ 0,
372
+ 0,
373
+ ]
374
374
  }
375
375
  style={
376
376
  {
@@ -597,6 +597,7 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
597
597
  style={
598
598
  {
599
599
  "flex": 1,
600
+ "gap": 4,
600
601
  }
601
602
  }
602
603
  >
@@ -614,7 +615,7 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
614
615
  "paddingBottom": 0,
615
616
  "paddingLeft": 0,
616
617
  "paddingRight": 0,
617
- "paddingTop": 4,
618
+ "paddingTop": 0,
618
619
  },
619
620
  ]
620
621
  }
@@ -635,7 +636,7 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
635
636
  "paddingBottom": 0,
636
637
  "paddingLeft": 0,
637
638
  "paddingRight": 0,
638
- "paddingTop": 4,
639
+ "paddingTop": 0,
639
640
  },
640
641
  ]
641
642
  }
@@ -665,7 +666,7 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
665
666
  "paddingBottom": 0,
666
667
  "paddingLeft": 0,
667
668
  "paddingRight": 0,
668
- "paddingTop": 4,
669
+ "paddingTop": 0,
669
670
  },
670
671
  ]
671
672
  }
@@ -689,7 +690,7 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
689
690
  "paddingBottom": 0,
690
691
  "paddingLeft": 0,
691
692
  "paddingRight": 0,
692
- "paddingTop": 4,
693
+ "paddingTop": 0,
693
694
  },
694
695
  ]
695
696
  }
@@ -886,20 +887,20 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
886
887
  }
887
888
  }
888
889
  >
889
- <View
890
+ <ViewManagerAdapter_ExpoLinearGradient
890
891
  colors={
891
892
  [
892
- "rgba(255, 255, 255, 0)",
893
- "#DAD8D8",
894
- "#DAD8D8",
895
- "rgba(255, 255, 255, 0)",
893
+ 16777215,
894
+ 4292532440,
895
+ 4292532440,
896
+ 16777215,
896
897
  ]
897
898
  }
898
- end={
899
- {
900
- "x": 1,
901
- "y": 0,
902
- }
899
+ endPoint={
900
+ [
901
+ 1,
902
+ 0,
903
+ ]
903
904
  }
904
905
  locations={
905
906
  [
@@ -909,11 +910,11 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
909
910
  1,
910
911
  ]
911
912
  }
912
- start={
913
- {
914
- "x": 0,
915
- "y": 0,
916
- }
913
+ startPoint={
914
+ [
915
+ 0,
916
+ 0,
917
+ ]
917
918
  }
918
919
  style={
919
920
  {
@@ -1045,20 +1046,20 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
1045
1046
  }
1046
1047
  }
1047
1048
  >
1048
- <View
1049
+ <ViewManagerAdapter_ExpoLinearGradient
1049
1050
  colors={
1050
1051
  [
1051
- "rgba(255, 255, 255, 0)",
1052
- "#DAD8D8",
1053
- "#DAD8D8",
1054
- "rgba(255, 255, 255, 0)",
1052
+ 16777215,
1053
+ 4292532440,
1054
+ 4292532440,
1055
+ 16777215,
1055
1056
  ]
1056
1057
  }
1057
- end={
1058
- {
1059
- "x": 1,
1060
- "y": 0,
1061
- }
1058
+ endPoint={
1059
+ [
1060
+ 1,
1061
+ 0,
1062
+ ]
1062
1063
  }
1063
1064
  locations={
1064
1065
  [
@@ -1068,11 +1069,11 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
1068
1069
  1,
1069
1070
  ]
1070
1071
  }
1071
- start={
1072
- {
1073
- "x": 0,
1074
- "y": 0,
1075
- }
1072
+ startPoint={
1073
+ [
1074
+ 0,
1075
+ 0,
1076
+ ]
1076
1077
  }
1077
1078
  style={
1078
1079
  {
@@ -1299,6 +1300,7 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
1299
1300
  style={
1300
1301
  {
1301
1302
  "flex": 1,
1303
+ "gap": 4,
1302
1304
  }
1303
1305
  }
1304
1306
  >
@@ -1316,7 +1318,7 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
1316
1318
  "paddingBottom": 0,
1317
1319
  "paddingLeft": 0,
1318
1320
  "paddingRight": 0,
1319
- "paddingTop": 4,
1321
+ "paddingTop": 0,
1320
1322
  },
1321
1323
  ]
1322
1324
  }
@@ -1337,7 +1339,7 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
1337
1339
  "paddingBottom": 0,
1338
1340
  "paddingLeft": 0,
1339
1341
  "paddingRight": 0,
1340
- "paddingTop": 4,
1342
+ "paddingTop": 0,
1341
1343
  },
1342
1344
  ]
1343
1345
  }
@@ -1367,7 +1369,7 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
1367
1369
  "paddingBottom": 0,
1368
1370
  "paddingLeft": 0,
1369
1371
  "paddingRight": 0,
1370
- "paddingTop": 4,
1372
+ "paddingTop": 0,
1371
1373
  },
1372
1374
  ]
1373
1375
  }
@@ -1391,7 +1393,7 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
1391
1393
  "paddingBottom": 0,
1392
1394
  "paddingLeft": 0,
1393
1395
  "paddingRight": 0,
1394
- "paddingTop": 4,
1396
+ "paddingTop": 0,
1395
1397
  },
1396
1398
  ]
1397
1399
  }
@@ -1588,20 +1590,20 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
1588
1590
  }
1589
1591
  }
1590
1592
  >
1591
- <View
1593
+ <ViewManagerAdapter_ExpoLinearGradient
1592
1594
  colors={
1593
1595
  [
1594
- "rgba(255, 255, 255, 0)",
1595
- "#DAD8D8",
1596
- "#DAD8D8",
1597
- "rgba(255, 255, 255, 0)",
1596
+ 16777215,
1597
+ 4292532440,
1598
+ 4292532440,
1599
+ 16777215,
1598
1600
  ]
1599
1601
  }
1600
- end={
1601
- {
1602
- "x": 1,
1603
- "y": 0,
1604
- }
1602
+ endPoint={
1603
+ [
1604
+ 1,
1605
+ 0,
1606
+ ]
1605
1607
  }
1606
1608
  locations={
1607
1609
  [
@@ -1611,11 +1613,11 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
1611
1613
  1,
1612
1614
  ]
1613
1615
  }
1614
- start={
1615
- {
1616
- "x": 0,
1617
- "y": 0,
1618
- }
1616
+ startPoint={
1617
+ [
1618
+ 0,
1619
+ 0,
1620
+ ]
1619
1621
  }
1620
1622
  style={
1621
1623
  {
@@ -1747,20 +1749,20 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
1747
1749
  }
1748
1750
  }
1749
1751
  >
1750
- <View
1752
+ <ViewManagerAdapter_ExpoLinearGradient
1751
1753
  colors={
1752
1754
  [
1753
- "rgba(255, 255, 255, 0)",
1754
- "#DAD8D8",
1755
- "#DAD8D8",
1756
- "rgba(255, 255, 255, 0)",
1755
+ 16777215,
1756
+ 4292532440,
1757
+ 4292532440,
1758
+ 16777215,
1757
1759
  ]
1758
1760
  }
1759
- end={
1760
- {
1761
- "x": 1,
1762
- "y": 0,
1763
- }
1761
+ endPoint={
1762
+ [
1763
+ 1,
1764
+ 0,
1765
+ ]
1764
1766
  }
1765
1767
  locations={
1766
1768
  [
@@ -1770,11 +1772,11 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
1770
1772
  1,
1771
1773
  ]
1772
1774
  }
1773
- start={
1774
- {
1775
- "x": 0,
1776
- "y": 0,
1777
- }
1775
+ startPoint={
1776
+ [
1777
+ 0,
1778
+ 0,
1779
+ ]
1778
1780
  }
1779
1781
  style={
1780
1782
  {
@@ -2001,6 +2003,7 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
2001
2003
  style={
2002
2004
  {
2003
2005
  "flex": 1,
2006
+ "gap": 4,
2004
2007
  }
2005
2008
  }
2006
2009
  >
@@ -2018,7 +2021,7 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
2018
2021
  "paddingBottom": 0,
2019
2022
  "paddingLeft": 0,
2020
2023
  "paddingRight": 0,
2021
- "paddingTop": 4,
2024
+ "paddingTop": 0,
2022
2025
  },
2023
2026
  ]
2024
2027
  }
@@ -2039,7 +2042,7 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
2039
2042
  "paddingBottom": 0,
2040
2043
  "paddingLeft": 0,
2041
2044
  "paddingRight": 0,
2042
- "paddingTop": 4,
2045
+ "paddingTop": 0,
2043
2046
  },
2044
2047
  ]
2045
2048
  }
@@ -2069,7 +2072,7 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
2069
2072
  "paddingBottom": 0,
2070
2073
  "paddingLeft": 0,
2071
2074
  "paddingRight": 0,
2072
- "paddingTop": 4,
2075
+ "paddingTop": 0,
2073
2076
  },
2074
2077
  ]
2075
2078
  }
@@ -2093,7 +2096,7 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
2093
2096
  "paddingBottom": 0,
2094
2097
  "paddingLeft": 0,
2095
2098
  "paddingRight": 0,
2096
- "paddingTop": 4,
2099
+ "paddingTop": 0,
2097
2100
  },
2098
2101
  ]
2099
2102
  }
@@ -51,7 +51,7 @@ exports[`Price atom matches the snapshot for a discounted price: discounted pric
51
51
  "paddingBottom": 0,
52
52
  "paddingLeft": 0,
53
53
  "paddingRight": 0,
54
- "paddingTop": 4,
54
+ "paddingTop": 0,
55
55
  "textDecorationLine": "line-through",
56
56
  },
57
57
  ]
@@ -82,7 +82,7 @@ exports[`Price atom matches the snapshot for a discounted price: discounted pric
82
82
  "paddingBottom": 0,
83
83
  "paddingLeft": 0,
84
84
  "paddingRight": 0,
85
- "paddingTop": 4,
85
+ "paddingTop": 0,
86
86
  },
87
87
  ]
88
88
  }
@@ -154,7 +154,7 @@ exports[`Price atom matches the snapshot for a non-discounted price: non-discoun
154
154
  "paddingBottom": 0,
155
155
  "paddingLeft": 0,
156
156
  "paddingRight": 0,
157
- "paddingTop": 4,
157
+ "paddingTop": 0,
158
158
  },
159
159
  ]
160
160
  }
@@ -203,7 +203,7 @@ exports[`ProductVariantPreview matches the snapshot 1`] = `
203
203
  "paddingBottom": 0,
204
204
  "paddingLeft": 0,
205
205
  "paddingRight": 0,
206
- "paddingTop": 4,
206
+ "paddingTop": 0,
207
207
  },
208
208
  ]
209
209
  }
@@ -2,7 +2,7 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
  import { HEADER_HEIGHT } from "../../../../components/templates/header/Header.style";
4
4
 
5
- const { borderRadius5, colorBgPrimaryLight, colorBgBase, colorTextMedium, space4, space6, space8 } = theme();
5
+ const { borderRadius5, colorBgPrimaryLight, colorBgBase, colorTextMedium, space1, space4, space6, space8 } = theme();
6
6
 
7
7
  const style = StyleSheet.create({
8
8
  background: {
@@ -27,6 +27,7 @@ const style = StyleSheet.create({
27
27
  },
28
28
  info: {
29
29
  backgroundColor: colorBgBase,
30
+ gap: space1,
30
31
  paddingBottom: space4,
31
32
  paddingHorizontal: space6,
32
33
  paddingTop: space8,
@@ -141,20 +141,20 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
141
141
  }
142
142
  }
143
143
  >
144
- <View
144
+ <ViewManagerAdapter_ExpoLinearGradient
145
145
  colors={
146
146
  [
147
- "rgba(255, 255, 255, 0)",
148
- "#DAD8D8",
149
- "#DAD8D8",
150
- "rgba(255, 255, 255, 0)",
147
+ 16777215,
148
+ 4292532440,
149
+ 4292532440,
150
+ 16777215,
151
151
  ]
152
152
  }
153
- end={
154
- {
155
- "x": 1,
156
- "y": 0,
157
- }
153
+ endPoint={
154
+ [
155
+ 1,
156
+ 0,
157
+ ]
158
158
  }
159
159
  locations={
160
160
  [
@@ -164,11 +164,11 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
164
164
  1,
165
165
  ]
166
166
  }
167
- start={
168
- {
169
- "x": 0,
170
- "y": 0,
171
- }
167
+ startPoint={
168
+ [
169
+ 0,
170
+ 0,
171
+ ]
172
172
  }
173
173
  style={
174
174
  {
@@ -491,20 +491,20 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
491
491
  }
492
492
  }
493
493
  >
494
- <View
494
+ <ViewManagerAdapter_ExpoLinearGradient
495
495
  colors={
496
496
  [
497
- "rgba(255, 255, 255, 0)",
498
- "#DAD8D8",
499
- "#DAD8D8",
500
- "rgba(255, 255, 255, 0)",
497
+ 16777215,
498
+ 4292532440,
499
+ 4292532440,
500
+ 16777215,
501
501
  ]
502
502
  }
503
- end={
504
- {
505
- "x": 1,
506
- "y": 0,
507
- }
503
+ endPoint={
504
+ [
505
+ 1,
506
+ 0,
507
+ ]
508
508
  }
509
509
  locations={
510
510
  [
@@ -514,11 +514,11 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
514
514
  1,
515
515
  ]
516
516
  }
517
- start={
518
- {
519
- "x": 0,
520
- "y": 0,
521
- }
517
+ startPoint={
518
+ [
519
+ 0,
520
+ 0,
521
+ ]
522
522
  }
523
523
  style={
524
524
  {
@@ -130,7 +130,7 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
130
130
  "paddingBottom": 0,
131
131
  "paddingLeft": 0,
132
132
  "paddingRight": 0,
133
- "paddingTop": 4,
133
+ "paddingTop": 0,
134
134
  },
135
135
  ]
136
136
  }
@@ -293,7 +293,7 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
293
293
  "paddingBottom": 0,
294
294
  "paddingLeft": 0,
295
295
  "paddingRight": 0,
296
- "paddingTop": 2,
296
+ "paddingTop": 0,
297
297
  "textAlign": "center",
298
298
  },
299
299
  ]
@@ -438,7 +438,7 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
438
438
  "paddingBottom": 0,
439
439
  "paddingLeft": 0,
440
440
  "paddingRight": 0,
441
- "paddingTop": 4,
441
+ "paddingTop": 0,
442
442
  },
443
443
  ]
444
444
  }
@@ -601,7 +601,7 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
601
601
  "paddingBottom": 0,
602
602
  "paddingLeft": 0,
603
603
  "paddingRight": 0,
604
- "paddingTop": 2,
604
+ "paddingTop": 0,
605
605
  "textAlign": "center",
606
606
  },
607
607
  ]