@lookiero/checkout 9.12.0-beta.0 → 9.13.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 (93) hide show
  1. package/dist/index.js +2 -1
  2. package/dist/src/ExpoRoot.js +5 -4
  3. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +2 -1
  4. package/dist/src/infrastructure/ui/components/atoms/price/Price.js +3 -0
  5. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +2 -1
  6. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +2 -1
  7. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +2 -1
  8. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +3 -2
  9. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +3 -3
  10. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +3 -2
  11. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +4 -4
  12. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +3 -2
  13. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +3 -2
  14. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +2 -1
  15. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +5 -4
  16. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +6 -6
  17. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +3 -2
  18. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +2 -2
  19. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -2
  20. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +2 -2
  21. package/dist/src/infrastructure/ui/i18n/i18n.d.ts +2 -1
  22. package/dist/src/infrastructure/ui/i18n/i18n.js +2 -1
  23. package/dist/src/infrastructure/ui/test/render.js +4 -2
  24. package/dist/src/infrastructure/ui/views/App.js +2 -1
  25. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +3 -3
  26. package/dist/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +2 -2
  27. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +2 -2
  28. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +3 -3
  29. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +11 -5
  30. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +4 -4
  31. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +3 -3
  32. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +2 -2
  33. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +4 -4
  34. package/dist/src/infrastructure/ui/views/return/components/price/Price.js +3 -0
  35. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +3 -3
  36. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +4 -4
  37. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +4 -4
  38. package/dist/src/infrastructure/ui/views/summary/Summary.js +4 -4
  39. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +3 -2
  40. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +8 -6
  41. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +5 -5
  42. package/dist/src/version.d.ts +1 -1
  43. package/dist/src/version.js +1 -1
  44. package/index.ts +2 -1
  45. package/package.json +5 -6
  46. package/src/ExpoRoot.tsx +5 -4
  47. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +3 -2
  48. package/src/infrastructure/ui/components/atoms/price/Price.tsx +3 -0
  49. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +2 -1
  50. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +2 -1
  51. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +2 -1
  52. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.tsx +3 -2
  53. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +3 -3
  54. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +3 -2
  55. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +5 -5
  56. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +3 -2
  57. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +3 -2
  58. package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +2 -1
  59. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +6 -5
  60. package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +7 -7
  61. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +3 -2
  62. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +2 -2
  63. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -2
  64. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +2 -2
  65. package/src/infrastructure/ui/i18n/i18n.ts +3 -1
  66. package/src/infrastructure/ui/test/render.tsx +6 -3
  67. package/src/infrastructure/ui/views/App.tsx +2 -1
  68. package/src/infrastructure/ui/views/checkout/Checkout.tsx +3 -3
  69. package/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.tsx +2 -2
  70. package/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.tsx +2 -2
  71. package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +3 -3
  72. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +11 -5
  73. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +159 -87
  74. package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +4 -4
  75. package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +242 -126
  76. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +3 -3
  77. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +2 -2
  78. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +4 -4
  79. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +74 -40
  80. package/src/infrastructure/ui/views/return/components/price/Price.tsx +3 -0
  81. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +3 -3
  82. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +4 -4
  83. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +4 -4
  84. package/src/infrastructure/ui/views/summary/Summary.tsx +4 -4
  85. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +3 -2
  86. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +152 -80
  87. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +8 -6
  88. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +5 -5
  89. package/dist/public/public/assets/adaptive-icon.png +0 -0
  90. package/dist/public/public/assets/favicon.png +0 -0
  91. package/dist/public/public/assets/icon.png +0 -0
  92. package/dist/public/public/assets/splash.png +0 -0
  93. package/dist/public/public/images/not-found.png +0 -0
@@ -344,19 +344,12 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
344
344
  "right": 0,
345
345
  "top": 0,
346
346
  },
347
- "alignContent": "center",
348
347
  "alignSelf": "flex-start",
349
- "backgroundColor": "#0C0A0A",
350
- "borderRadius": 9999,
351
348
  "container": {
352
349
  "overflow": "hidden",
353
350
  },
354
351
  "height": 64,
355
- "justifyContent": "center",
356
352
  "overflow": "hidden",
357
- "paddingLeft": 24,
358
- "paddingRight": 24,
359
- "position": "relative",
360
353
  "pressed": {
361
354
  "bottom": 0,
362
355
  "left": 0,
@@ -372,55 +365,96 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
372
365
  ]
373
366
  }
374
367
  >
375
- <View
376
- collapsable={false}
377
- pointerEvents="none"
378
- style={
379
- {
380
- "backgroundColor": "#716A6B",
381
- "height": "300%",
382
- "left": 0,
383
- "opacity": 0.7,
384
- "position": "absolute",
385
- "top": 0,
386
- "width": "0%",
387
- }
368
+ <ViewManagerAdapter_ExpoLinearGradient
369
+ colors={
370
+ [
371
+ 4278979082,
372
+ 4278979082,
373
+ ]
374
+ }
375
+ endPoint={
376
+ [
377
+ 1,
378
+ 0,
379
+ ]
380
+ }
381
+ startPoint={
382
+ [
383
+ 0,
384
+ 1,
385
+ ]
388
386
  }
389
- />
390
- <View
391
387
  style={
392
388
  [
393
389
  {
394
- "alignItems": "center",
395
- "flexDirection": "row",
390
+ "alignContent": "center",
391
+ "height": 64,
396
392
  "justifyContent": "center",
393
+ "overflow": "hidden",
394
+ "paddingLeft": 24,
395
+ "paddingRight": 24,
396
+ "position": "relative",
397
+ },
398
+ {},
399
+ undefined,
400
+ undefined,
401
+ false,
402
+ {
403
+ "borderRadius": 9999,
397
404
  },
398
405
  ]
399
406
  }
400
407
  >
401
- <Text
402
- allowFontScaling={false}
403
- selectable={false}
408
+ <View
409
+ collapsable={false}
410
+ pointerEvents="none"
411
+ style={
412
+ {
413
+ "backgroundColor": "#716A6B",
414
+ "height": "300%",
415
+ "left": 0,
416
+ "opacity": 0.7,
417
+ "position": "absolute",
418
+ "top": 0,
419
+ "width": "0%",
420
+ }
421
+ }
422
+ />
423
+ <View
404
424
  style={
405
425
  [
406
426
  {
407
- "color": "#FFFFFF",
408
- "fontFamily": "AreaNormal-Extrabold",
409
- "fontSize": 15,
410
- "letterSpacing": -0.2,
411
- "lineHeight": 20,
412
- "paddingBottom": 0,
413
- "paddingLeft": 0,
414
- "paddingRight": 0,
415
- "paddingTop": 0,
416
- "textAlign": "center",
427
+ "alignItems": "center",
428
+ "flexDirection": "row",
429
+ "justifyContent": "center",
417
430
  },
418
431
  ]
419
432
  }
420
433
  >
421
- size_without_stock_modal.button
422
- </Text>
423
- </View>
434
+ <Text
435
+ allowFontScaling={false}
436
+ selectable={false}
437
+ style={
438
+ [
439
+ {
440
+ "color": "#FFFFFF",
441
+ "fontFamily": "AreaNormal-Extrabold",
442
+ "fontSize": 15,
443
+ "letterSpacing": -0.2,
444
+ "lineHeight": 20,
445
+ "paddingBottom": 0,
446
+ "paddingLeft": 0,
447
+ "paddingRight": 0,
448
+ "paddingTop": 0,
449
+ "textAlign": "center",
450
+ },
451
+ ]
452
+ }
453
+ >
454
+ size_without_stock_modal.button
455
+ </Text>
456
+ </View>
457
+ </ViewManagerAdapter_ExpoLinearGradient>
424
458
  </View>
425
459
  </View>
426
460
  </View>
@@ -3,6 +3,7 @@ import { View } from "react-native";
3
3
  import { Text } from "@lookiero/aurora";
4
4
  import { useI18nNumber } from "@lookiero/i18n-react";
5
5
  import { PriceProjection } from "../../../../../../projection/price/price";
6
+ import { DOMAIN } from "../../../../i18n/i18n";
6
7
  import { style } from "./Price.style";
7
8
 
8
9
  interface PriceProps {
@@ -12,11 +13,13 @@ interface PriceProps {
12
13
  const Price: FC<PriceProps> = ({ price, withPercentage = false }) => {
13
14
  const isDiscounted = price.discountedPrice && price.discountedPrice.percentage > 0;
14
15
  const productPrice = useI18nNumber({
16
+ domain: DOMAIN,
15
17
  value: price.amount / 100,
16
18
  style: "currency",
17
19
  currency: price.currency,
18
20
  });
19
21
  const productDiscountedPrice = useI18nNumber({
22
+ domain: DOMAIN,
20
23
  value: (price.discountedPrice?.amount || 0) / 100,
21
24
  style: "currency",
22
25
  currency: price.currency,
@@ -7,7 +7,7 @@ import { Column, Row } from "@lookiero/sty-psp-ui";
7
7
  import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
8
8
  import { size } from "../../../../../../projection/size/size";
9
9
  import { useMediaImage } from "../../../../hooks/useMediaImage";
10
- import { I18nMessages } from "../../../../i18n/i18n";
10
+ import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
11
11
  import { Price } from "../price/Price";
12
12
  import { IMAGE_SIZE, style } from "./ProductVariantPreview.style";
13
13
 
@@ -20,8 +20,8 @@ const ProductVariantPreview: FC<ProductVariantPreviewProps> = ({ item, country }
20
20
  const cdnImageUrl = useMediaImage();
21
21
  const { screen } = useDevice();
22
22
 
23
- const sizeText = useI18nMessage({ id: I18nMessages.ITEM_SIZE });
24
- const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
23
+ const sizeText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_SIZE });
24
+ const uniqueText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_UNIQUE });
25
25
 
26
26
  const {
27
27
  productVariant: { media, brand, name, size: sizeProjection },
@@ -32,7 +32,7 @@ import { HostStackReturnQuestionItem } from "../../../../components/organisms/re
32
32
  import { RadioReturnQuestionItem } from "../../../../components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem";
33
33
  import { TextareaReturnQuestionItem } from "../../../../components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem";
34
34
  import { ItemDetailHeader } from "../../../../components/templates/header/itemDetailHeader/ItemDetailHeader";
35
- import { I18nMessages } from "../../../../i18n/i18n";
35
+ import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
36
36
  import { Routes } from "../../../../routing/routes";
37
37
  import { useBasePath } from "../../../../routing/useBasePath";
38
38
  import { ProductVariantPreview } from "../productVariantPreview/ProductVariantPreview";
@@ -70,9 +70,9 @@ const ReturnQuestionsForm: FC<ReturnQuestionsFormProps> = ({
70
70
 
71
71
  const { screen } = useDevice();
72
72
 
73
- const titleText = useI18nMessage({ id: I18nMessages.RETURN_QUESTIONS_TITLE });
74
- const descriptionText = useI18nMessage({ id: I18nMessages.RETURN_QUESTIONS_DESCRIPTION });
75
- const submitButtonText = useI18nMessage({ id: I18nMessages.RETURN_QUESTIONS_SUBMIT_BUTTON });
73
+ const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.RETURN_QUESTIONS_TITLE });
74
+ const descriptionText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.RETURN_QUESTIONS_DESCRIPTION });
75
+ const submitButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.RETURN_QUESTIONS_SUBMIT_BUTTON });
76
76
 
77
77
  const feedback = useReturnQuestionFeedback();
78
78
  const [returnQuestions] = useListReturnQuestionsByCheckoutItemId({
@@ -10,7 +10,7 @@ import { PriceProjection } from "../../../../../../projection/price/price";
10
10
  import { size, SizeProjection } from "../../../../../../projection/size/size";
11
11
  import { Price } from "../../../../components/atoms/price/Price";
12
12
  import { useMediaImage } from "../../../../hooks/useMediaImage";
13
- import { COLOR_I18N_PREFIX, I18nMessages } from "../../../../i18n/i18n";
13
+ import { COLOR_I18N_PREFIX, DOMAIN, I18nMessages } from "../../../../i18n/i18n";
14
14
  import { IMAGE_WIDTH, style } from "./ProductVariant.style";
15
15
 
16
16
  interface ProductVariantStyle {
@@ -41,9 +41,9 @@ const ProductVariant: FC<ProductVariantProps> = ({
41
41
  style: customStyle,
42
42
  onPress,
43
43
  }) => {
44
- const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
45
- const colorLabel = useI18nMessage({ id: color.name, prefix: COLOR_I18N_PREFIX });
46
- const sizeChangeText = useI18nMessage({ id: I18nMessages.PRODUCT_VARIANT_SIZE_CHANGE });
44
+ const uniqueText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.ITEM_UNIQUE });
45
+ const colorLabel = useI18nMessage({ domain: DOMAIN, id: color.name, prefix: COLOR_I18N_PREFIX });
46
+ const sizeChangeText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.PRODUCT_VARIANT_SIZE_CHANGE });
47
47
 
48
48
  const cdnImageUrl = useMediaImage();
49
49
 
@@ -16,7 +16,7 @@ import { useTrackPressPricing } from "../../../tracking/useTrackPressPricing";
16
16
  import { FiveItemsDiscountBanner } from "../../components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner";
17
17
  import { Body } from "../../components/layouts/body/Body";
18
18
  import { useStaticInfo } from "../../hooks/useStaticInfo";
19
- import { I18nMessages } from "../../i18n/i18n";
19
+ import { DOMAIN, I18nMessages } from "../../i18n/i18n";
20
20
  import { Routes } from "../../routing/routes";
21
21
  import { useBasePath } from "../../routing/useBasePath";
22
22
  import { style } from "./Summary.style";
@@ -33,9 +33,9 @@ const Summary: FC<SummaryProps> = ({ layout: Layout, children }) => {
33
33
  } = useStaticInfo();
34
34
  const [pricingCollapsed, setPricingCollapsed] = useState(true);
35
35
  const [pricingHeight, setPricingHeight] = useState(0);
36
- const titleText = useI18nMessage({ id: I18nMessages.SUMMARY_TITLE });
37
- const descriptionText = useI18nMessage({ id: I18nMessages.SUMMARY_DESCRIPTION });
38
- const submitButtonText = useI18nMessage({ id: I18nMessages.SUMMARY_SUBMIT_BUTTON });
36
+ const titleText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_TITLE });
37
+ const descriptionText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_DESCRIPTION });
38
+ const submitButtonText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_SUBMIT_BUTTON });
39
39
  const { screen } = useDevice();
40
40
 
41
41
  const [checkout] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
@@ -5,7 +5,7 @@ import { Button, Icon, Text } from "@lookiero/aurora";
5
5
  import { useI18nMessage } from "@lookiero/i18n-react";
6
6
  import { PricingProjection } from "../../../../../../projection/pricing/pricing";
7
7
  import { Price } from "../../../../components/atoms/price/Price";
8
- import { I18nMessages } from "../../../../i18n/i18n";
8
+ import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
9
9
  import { Pricing } from "../pricing/Pricing";
10
10
  import { style } from "./CollapsiblePricing.style";
11
11
 
@@ -29,8 +29,9 @@ const CollapsiblePricing: FC<CollapsiblePricingProps> = ({
29
29
  }) => {
30
30
  const { pendingToPay } = pricing;
31
31
 
32
- const totalText = useI18nMessage({ id: I18nMessages.SUMMARY_TOTAL });
32
+ const totalText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_TOTAL });
33
33
  const totalCheckoutItemsKeptText = useI18nMessage({
34
+ domain: DOMAIN,
34
35
  id: I18nMessages.SUMMARY_TOTAL_ITEMS_KEPT,
35
36
  values: { items: totalCheckoutItemsKept.toString() },
36
37
  });
@@ -224,19 +224,12 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
224
224
  "right": 0,
225
225
  "top": 0,
226
226
  },
227
- "alignContent": "center",
228
227
  "alignSelf": "flex-start",
229
- "backgroundColor": "#0C0A0A",
230
- "borderRadius": 9999,
231
228
  "container": {
232
229
  "overflow": "hidden",
233
230
  },
234
231
  "height": 48,
235
- "justifyContent": "center",
236
232
  "overflow": "hidden",
237
- "paddingLeft": 24,
238
- "paddingRight": 24,
239
- "position": "relative",
240
233
  "pressed": {
241
234
  "bottom": 0,
242
235
  "left": 0,
@@ -253,55 +246,98 @@ exports[`Pricing component matches the snapshot for collaped pricing: collapsed
253
246
  }
254
247
  testID="submit-checkout-collpased-button"
255
248
  >
256
- <View
257
- collapsable={false}
258
- pointerEvents="none"
259
- style={
260
- {
261
- "backgroundColor": "#716A6B",
262
- "height": 48,
263
- "left": 0,
264
- "opacity": 0.7,
265
- "position": "absolute",
266
- "top": 0,
267
- "width": "0%",
268
- }
249
+ <ViewManagerAdapter_ExpoLinearGradient
250
+ colors={
251
+ [
252
+ 4278979082,
253
+ 4278979082,
254
+ ]
255
+ }
256
+ endPoint={
257
+ [
258
+ 1,
259
+ 0,
260
+ ]
261
+ }
262
+ startPoint={
263
+ [
264
+ 0,
265
+ 1,
266
+ ]
269
267
  }
270
- />
271
- <View
272
268
  style={
273
269
  [
274
270
  {
275
- "alignItems": "center",
276
- "flexDirection": "row",
271
+ "alignContent": "center",
272
+ "height": 64,
277
273
  "justifyContent": "center",
274
+ "overflow": "hidden",
275
+ "paddingLeft": 24,
276
+ "paddingRight": 24,
277
+ "position": "relative",
278
+ },
279
+ {},
280
+ undefined,
281
+ {
282
+ "height": 48,
283
+ },
284
+ false,
285
+ {
286
+ "borderRadius": 9999,
278
287
  },
279
288
  ]
280
289
  }
281
290
  >
282
- <Text
283
- allowFontScaling={false}
284
- selectable={false}
291
+ <View
292
+ collapsable={false}
293
+ pointerEvents="none"
294
+ style={
295
+ {
296
+ "backgroundColor": "#716A6B",
297
+ "height": 48,
298
+ "left": 0,
299
+ "opacity": 0.7,
300
+ "position": "absolute",
301
+ "top": 0,
302
+ "width": "0%",
303
+ }
304
+ }
305
+ />
306
+ <View
285
307
  style={
286
308
  [
287
309
  {
288
- "color": "#FFFFFF",
289
- "fontFamily": "AreaNormal-Extrabold",
290
- "fontSize": 15,
291
- "letterSpacing": -0.2,
292
- "lineHeight": 20,
293
- "paddingBottom": 0,
294
- "paddingLeft": 0,
295
- "paddingRight": 0,
296
- "paddingTop": 0,
297
- "textAlign": "center",
310
+ "alignItems": "center",
311
+ "flexDirection": "row",
312
+ "justifyContent": "center",
298
313
  },
299
314
  ]
300
315
  }
301
316
  >
302
- summary.submit_button
303
- </Text>
304
- </View>
317
+ <Text
318
+ allowFontScaling={false}
319
+ selectable={false}
320
+ style={
321
+ [
322
+ {
323
+ "color": "#FFFFFF",
324
+ "fontFamily": "AreaNormal-Extrabold",
325
+ "fontSize": 15,
326
+ "letterSpacing": -0.2,
327
+ "lineHeight": 20,
328
+ "paddingBottom": 0,
329
+ "paddingLeft": 0,
330
+ "paddingRight": 0,
331
+ "paddingTop": 0,
332
+ "textAlign": "center",
333
+ },
334
+ ]
335
+ }
336
+ >
337
+ summary.submit_button
338
+ </Text>
339
+ </View>
340
+ </ViewManagerAdapter_ExpoLinearGradient>
305
341
  </View>
306
342
  </View>
307
343
  </View>
@@ -532,19 +568,12 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
532
568
  "right": 0,
533
569
  "top": 0,
534
570
  },
535
- "alignContent": "center",
536
571
  "alignSelf": "flex-start",
537
- "backgroundColor": "#0C0A0A",
538
- "borderRadius": 9999,
539
572
  "container": {
540
573
  "overflow": "hidden",
541
574
  },
542
575
  "height": 48,
543
- "justifyContent": "center",
544
576
  "overflow": "hidden",
545
- "paddingLeft": 24,
546
- "paddingRight": 24,
547
- "position": "relative",
548
577
  "pressed": {
549
578
  "bottom": 0,
550
579
  "left": 0,
@@ -561,55 +590,98 @@ exports[`Pricing component matches the snapshot for non-collaped pricing: non-co
561
590
  }
562
591
  testID="submit-checkout-collpased-button"
563
592
  >
564
- <View
565
- collapsable={false}
566
- pointerEvents="none"
567
- style={
568
- {
569
- "backgroundColor": "#716A6B",
570
- "height": 48,
571
- "left": 0,
572
- "opacity": 0.7,
573
- "position": "absolute",
574
- "top": 0,
575
- "width": "0%",
576
- }
593
+ <ViewManagerAdapter_ExpoLinearGradient
594
+ colors={
595
+ [
596
+ 4278979082,
597
+ 4278979082,
598
+ ]
599
+ }
600
+ endPoint={
601
+ [
602
+ 1,
603
+ 0,
604
+ ]
605
+ }
606
+ startPoint={
607
+ [
608
+ 0,
609
+ 1,
610
+ ]
577
611
  }
578
- />
579
- <View
580
612
  style={
581
613
  [
582
614
  {
583
- "alignItems": "center",
584
- "flexDirection": "row",
615
+ "alignContent": "center",
616
+ "height": 64,
585
617
  "justifyContent": "center",
618
+ "overflow": "hidden",
619
+ "paddingLeft": 24,
620
+ "paddingRight": 24,
621
+ "position": "relative",
622
+ },
623
+ {},
624
+ undefined,
625
+ {
626
+ "height": 48,
627
+ },
628
+ false,
629
+ {
630
+ "borderRadius": 9999,
586
631
  },
587
632
  ]
588
633
  }
589
634
  >
590
- <Text
591
- allowFontScaling={false}
592
- selectable={false}
635
+ <View
636
+ collapsable={false}
637
+ pointerEvents="none"
638
+ style={
639
+ {
640
+ "backgroundColor": "#716A6B",
641
+ "height": 48,
642
+ "left": 0,
643
+ "opacity": 0.7,
644
+ "position": "absolute",
645
+ "top": 0,
646
+ "width": "0%",
647
+ }
648
+ }
649
+ />
650
+ <View
593
651
  style={
594
652
  [
595
653
  {
596
- "color": "#FFFFFF",
597
- "fontFamily": "AreaNormal-Extrabold",
598
- "fontSize": 15,
599
- "letterSpacing": -0.2,
600
- "lineHeight": 20,
601
- "paddingBottom": 0,
602
- "paddingLeft": 0,
603
- "paddingRight": 0,
604
- "paddingTop": 0,
605
- "textAlign": "center",
654
+ "alignItems": "center",
655
+ "flexDirection": "row",
656
+ "justifyContent": "center",
606
657
  },
607
658
  ]
608
659
  }
609
660
  >
610
- summary.submit_button
611
- </Text>
612
- </View>
661
+ <Text
662
+ allowFontScaling={false}
663
+ selectable={false}
664
+ style={
665
+ [
666
+ {
667
+ "color": "#FFFFFF",
668
+ "fontFamily": "AreaNormal-Extrabold",
669
+ "fontSize": 15,
670
+ "letterSpacing": -0.2,
671
+ "lineHeight": 20,
672
+ "paddingBottom": 0,
673
+ "paddingLeft": 0,
674
+ "paddingRight": 0,
675
+ "paddingTop": 0,
676
+ "textAlign": "center",
677
+ },
678
+ ]
679
+ }
680
+ >
681
+ summary.submit_button
682
+ </Text>
683
+ </View>
684
+ </ViewManagerAdapter_ExpoLinearGradient>
613
685
  </View>
614
686
  </View>
615
687
  </View>
@@ -4,7 +4,7 @@ import { Text } from "@lookiero/aurora";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
5
  import { PricingProjection } from "../../../../../../projection/pricing/pricing";
6
6
  import { Price } from "../../../../components/atoms/price/Price";
7
- import { I18nMessages } from "../../../../i18n/i18n";
7
+ import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
8
8
  import { style } from "./Pricing.style";
9
9
 
10
10
  interface RowProps {
@@ -30,19 +30,21 @@ interface PricingProps {
30
30
  const Pricing: FC<PricingProps> = ({ pricing, totalCheckoutItemsKept }) => {
31
31
  const { pendingToPay, subtotal, balanceDiscount, discount, discountPercentage = 0, service } = pricing;
32
32
 
33
- const totalText = useI18nMessage({ id: I18nMessages.SUMMARY_TOTAL });
33
+ const totalText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_TOTAL });
34
34
  const totalCheckoutItemsKeptText = useI18nMessage({
35
+ domain: DOMAIN,
35
36
  id: I18nMessages.SUMMARY_TOTAL_ITEMS_KEPT,
36
37
  values: { items: totalCheckoutItemsKept.toString() },
37
38
  });
38
- const subtotalText = useI18nMessage({ id: I18nMessages.SUMMARY_SUBTOTAL });
39
- const freeText = useI18nMessage({ id: I18nMessages.SUMMARY_FREE });
39
+ const subtotalText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_SUBTOTAL });
40
+ const freeText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_FREE });
40
41
  const discountText = useI18nMessage({
42
+ domain: DOMAIN,
41
43
  id: I18nMessages.SUMMARY_DISCOUNT,
42
44
  values: { discount: discountPercentage?.toString() },
43
45
  });
44
- const creditText = useI18nMessage({ id: I18nMessages.SUMMARY_CREDIT });
45
- const feeText = useI18nMessage({ id: I18nMessages.SUMMARY_FEE });
46
+ const creditText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_CREDIT });
47
+ const feeText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_FEE });
46
48
 
47
49
  return (
48
50
  <View>
@@ -10,7 +10,7 @@ import {
10
10
  CheckoutItemProjection,
11
11
  } from "../../../../../../projection/checkoutItem/checkoutItem";
12
12
  import { PriceProjection } from "../../../../../../projection/price/price";
13
- import { I18nMessages } from "../../../../i18n/i18n";
13
+ import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
14
14
  import { ProductVariant, ProductVariantStyle } from "../../../shared/components/productVariant/ProductVariant";
15
15
  import { style } from "./CheckoutItemsTabs.style";
16
16
 
@@ -65,11 +65,11 @@ const CheckoutItemsTabs: FC<CheckoutItemsTabsProps> = ({
65
65
  onChanged,
66
66
  }) => {
67
67
  const { screen } = useDevice();
68
- const keepTabText = useI18nMessage({ id: I18nMessages.SUMMARY_KEEP_TAB });
69
- const returnTabText = useI18nMessage({ id: I18nMessages.SUMMARY_RETURN_TAB });
68
+ const keepTabText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_KEEP_TAB });
69
+ const returnTabText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_RETURN_TAB });
70
70
 
71
- const keepEmptyText = useI18nMessage({ id: I18nMessages.SUMMARY_KEEP_EMPTY });
72
- const returnEmptyText = useI18nMessage({ id: I18nMessages.SUMMARY_RETURN_EMPTY });
71
+ const keepEmptyText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_KEEP_EMPTY });
72
+ const returnEmptyText = useI18nMessage({ domain: DOMAIN, id: I18nMessages.SUMMARY_RETURN_EMPTY });
73
73
 
74
74
  const handleOnPressItem = useCallback((checkoutItemId: string) => onPressItem(checkoutItemId), [onPressItem]);
75
75
 
Binary file