@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.
Files changed (99) hide show
  1. package/dist/public/public/assets/adaptive-icon.png +0 -0
  2. package/dist/public/public/assets/favicon.png +0 -0
  3. package/dist/public/public/assets/icon.png +0 -0
  4. package/dist/public/public/assets/splash.png +0 -0
  5. package/dist/public/public/images/not-found.png +0 -0
  6. package/dist/src/ExpoRoot.d.ts +1 -0
  7. package/dist/src/ExpoRoot.js +4 -3
  8. package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +3 -2
  9. package/dist/src/infrastructure/ui/components/atoms/price/Price.js +2 -2
  10. package/dist/src/infrastructure/ui/components/atoms/price/Price.style.d.ts +1 -0
  11. package/dist/src/infrastructure/ui/components/atoms/price/Price.style.js +1 -0
  12. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +2 -2
  13. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +1 -1
  14. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +1 -1
  15. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +2 -2
  16. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostLegacyRadioGroupReturnQuestionItem/HostLegacyRadioGroupReturnQuestionItem.js +2 -2
  17. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +2 -2
  18. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +2 -2
  19. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +1 -1
  20. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +1 -1
  21. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +3 -4
  22. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +3 -3
  23. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +2 -2
  24. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -2
  25. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +2 -2
  26. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +3 -3
  27. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +1 -0
  28. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +4 -3
  29. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +3 -0
  30. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +3 -0
  31. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +4 -4
  32. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +4 -4
  33. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +1 -1
  34. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +2 -2
  35. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +3 -3
  36. package/dist/src/infrastructure/ui/views/return/components/price/Price.js +4 -4
  37. package/dist/src/infrastructure/ui/views/return/components/price/Price.style.d.ts +1 -0
  38. package/dist/src/infrastructure/ui/views/return/components/price/Price.style.js +1 -0
  39. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +4 -4
  40. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +4 -3
  41. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +5 -5
  42. package/dist/src/infrastructure/ui/views/summary/Summary.js +3 -3
  43. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +3 -3
  44. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +2 -2
  45. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +1 -1
  46. package/dist/src/version.d.ts +2 -2
  47. package/dist/src/version.js +2 -2
  48. package/package.json +4 -4
  49. package/src/ExpoRoot.tsx +4 -3
  50. package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +3 -2
  51. package/src/infrastructure/ui/components/atoms/price/Price.style.ts +1 -0
  52. package/src/infrastructure/ui/components/atoms/price/Price.tsx +2 -7
  53. package/src/infrastructure/ui/components/atoms/price/__snapshots__/Price.test.tsx.snap +24 -28
  54. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +2 -2
  55. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.tsx +1 -1
  56. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.tsx +1 -1
  57. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +2 -2
  58. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostLegacyRadioGroupReturnQuestionItem/HostLegacyRadioGroupReturnQuestionItem.tsx +2 -2
  59. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +2 -2
  60. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +2 -2
  61. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +1 -1
  62. package/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.tsx +1 -1
  63. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +5 -6
  64. package/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.tsx +3 -3
  65. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +2 -2
  66. package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +21 -18
  67. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -2
  68. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +21 -18
  69. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +2 -2
  70. package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +39 -30
  71. package/src/infrastructure/ui/views/checkout/Checkout.tsx +3 -3
  72. package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.ts +3 -0
  73. package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +4 -3
  74. package/src/infrastructure/ui/views/item/components/banner/__snapshots__/CustomerDecissionBanner.test.tsx.snap +12 -18
  75. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +14 -4
  76. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +30 -28
  77. package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +45 -33
  78. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +4 -4
  79. package/src/infrastructure/ui/views/item/components/productVariantDescription/__snapshots__/ProductVariantDescription.test.tsx.snap +38 -56
  80. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +1 -1
  81. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +2 -2
  82. package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +28 -19
  83. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +3 -3
  84. package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +28 -25
  85. package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +57 -84
  86. package/src/infrastructure/ui/views/return/components/price/Price.style.ts +1 -0
  87. package/src/infrastructure/ui/views/return/components/price/Price.tsx +4 -4
  88. package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap +12 -19
  89. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +4 -4
  90. package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +18 -26
  91. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +4 -3
  92. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +5 -5
  93. package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +80 -82
  94. package/src/infrastructure/ui/views/summary/Summary.tsx +3 -3
  95. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +3 -3
  96. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +58 -54
  97. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +2 -2
  98. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +1 -1
  99. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +197 -193
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo } from "react";
2
2
  import { Pressable, 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 { Icon, LazyImage } from "@lookiero/sty-psp-ui";
6
6
  import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
7
7
  import { size } from "../../../../../../projection/size/size";
@@ -21,14 +21,14 @@ const ProductVariant = ({ media, brand, name, price, size: sizeProjection, color
21
21
  React.createElement(LazyImage, { hiResSrc: cdnImageUrl({ url: media[0]?.url, width: IMAGE_WIDTH }), resizeMode: "contain", src: cdnImageUrl({ url: media[0]?.url, width: IMAGE_WIDTH, dpi: 1 }), style: { view: [style.media, customStyle?.image] }, testID: "product-variant-media" })),
22
22
  React.createElement(View, { style: style.descriptionContainer },
23
23
  React.createElement(View, { style: style.infoProductVariant },
24
- React.createElement(Text, { level: 2, style: style.text, detail: true }, brand),
25
- React.createElement(Text, { level: 2, detail: true }, name),
26
- React.createElement(Text, { level: 2, style: style.text, detail: true },
24
+ React.createElement(Text, { level: 2, style: style.text, variant: "detail" }, brand),
25
+ React.createElement(Text, { level: 2, variant: "detail" }, name),
26
+ React.createElement(Text, { level: 2, style: style.text, variant: "detail" },
27
27
  sizeProjection.unique ? uniqueText : size({ size: sizeProjection, country }),
28
28
  " / ",
29
29
  colorLabel),
30
30
  status === CheckoutItemStatus.REPLACED && (React.createElement(View, { style: style.sizeChange },
31
- React.createElement(Text, { level: 2, detail: true }, sizeChangeText)))),
31
+ React.createElement(Text, { level: 2, variant: "detail" }, sizeChangeText)))),
32
32
  React.createElement(Price, { price: price, variant: "detail" }))),
33
33
  onPress && React.createElement(Icon, { name: "arrow_right" })));
34
34
  };
@@ -1,10 +1,10 @@
1
1
  import React, { useCallback, useEffect, useMemo, useState } from "react";
2
2
  import { Platform, ScrollView, View } from "react-native";
3
3
  import { generatePath, useMatch, useNavigate } from "react-router-native";
4
- import { Box, Text, Layout as AuroraLayout, Spinner } from "@lookiero/aurora";
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 { Sticky, useScreenSize } from "@lookiero/sty-psp-ui";
7
+ import { 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";
@@ -92,7 +92,7 @@ const Summary = ({ layout: Layout, children }) => {
92
92
  React.createElement(Box, { size: { L: "2/3" }, style: isDesktopScreen && style.desktopListSpacing },
93
93
  React.createElement(View, { style: [style.contentWrapper, isDesktopScreen && style.desktopContentWrapper] },
94
94
  React.createElement(View, { style: !isDesktopScreen && style.mobileInfo },
95
- React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
95
+ React.createElement(Text, { level: 3, style: style.title, variant: "heading" }, titleText),
96
96
  React.createElement(Text, { level: 3, style: style.description }, descriptionText)),
97
97
  children)),
98
98
  pricing && isDesktopScreen ? (React.createElement(Box, { size: { L: "1/3" }, style: [style.resume, isDesktopScreen ? style.desktopResume : style.mobileResume] },
@@ -1,9 +1,9 @@
1
1
  import React, { 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, Text } from "@lookiero/aurora";
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 { Price } from "../../../../components/atoms/price/Price";
8
8
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
9
9
  import { Pricing } from "../pricing/Pricing";
@@ -27,7 +27,7 @@ const CollapsiblePricing = ({ migrated, tradename, pricing, totalCheckoutItemsKe
27
27
  collapsible && (React.createElement(Pressable, { style: style.iconContainer, testID: "pricing-collapsed", onPress: onPress }, collapsed ? (React.createElement(Icon, { name: "arrow_up_small", testID: "arrow-up" })) : (React.createElement(Icon, { name: "arrow_down_small", testID: "arrow-down" })))),
28
28
  collapsed && collapsible ? (React.createElement(Animated.View, { key: "collapsed", style: [style.collapsed, collapsedAnimatedStyle] },
29
29
  React.createElement(View, { style: style.collapsedContent },
30
- React.createElement(Text, { level: 1, style: style.totalCollapsed, detail: true },
30
+ React.createElement(Text, { level: 1, style: style.totalCollapsed, variant: "detail" },
31
31
  totalText,
32
32
  " ",
33
33
  totalCheckoutItemsKeptText),
@@ -1,7 +1,7 @@
1
1
  import React, { 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 { Price } from "../../../../components/atoms/price/Price";
7
7
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
@@ -9,7 +9,7 @@ import { style as pricingStyle } from "./Pricing.style";
9
9
  const Row = ({ action = false, text, level = 3, children }) => {
10
10
  const style = useMemo(() => pricingStyle(), []);
11
11
  return (React.createElement(View, { style: style.row },
12
- React.createElement(Text, { action: action, level: level }, text),
12
+ React.createElement(Text, { level: level, variant: action ? "action" : "body" }, text),
13
13
  children));
14
14
  };
15
15
  const Pricing = ({ pricing, totalCheckoutItemsKept, tradename, migrated }) => {
@@ -1,7 +1,7 @@
1
1
  import React, { 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";
4
+ import { Text } from "@lookiero/sty-psp-ui";
5
5
  import { Tabs, useScreenSize } from "@lookiero/sty-psp-ui";
6
6
  import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
7
7
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "14.1.0";
2
- export declare const RELEASE = "checkout@14.1.0";
1
+ export declare const VERSION = "14.2.1";
2
+ export declare const RELEASE = "checkout@14.2.1";
@@ -1,2 +1,2 @@
1
- export const VERSION = "14.1.0";
2
- export const RELEASE = "checkout@14.1.0";
1
+ export const VERSION = "14.2.1";
2
+ export const RELEASE = "checkout@14.2.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "14.1.0",
3
+ "version": "14.2.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": "false",
@@ -28,13 +28,13 @@
28
28
  "@lookiero/sty-psp-i18n": "^2.0",
29
29
  "@lookiero/sty-psp-locale": "^2.1",
30
30
  "@lookiero/sty-psp-logging": "^2.2",
31
- "@lookiero/sty-psp-notifications": "^2.15",
31
+ "@lookiero/sty-psp-notifications": "^2.16",
32
32
  "@lookiero/sty-psp-react-native": "^2.0",
33
33
  "@lookiero/sty-psp-segment": "^0.1",
34
34
  "@lookiero/sty-psp-storage": "^1.1",
35
35
  "@lookiero/sty-psp-tracking": "^2.4",
36
- "@lookiero/sty-psp-ui": "^3.4",
37
- "@lookiero/sty-psp-ui-settings": "^1.5",
36
+ "@lookiero/sty-psp-ui": "^3.5",
37
+ "@lookiero/sty-psp-ui-settings": "^1.6",
38
38
  "@lookiero/sty-psp-units": "^0.1",
39
39
  "@lookiero/sty-psp-uuid": "^0.2",
40
40
  "@lookiero/sty-sp-tradename": "^1.0",
package/src/ExpoRoot.tsx CHANGED
@@ -3,13 +3,14 @@ import { useFonts } from "expo-font";
3
3
  import React, { FC, useCallback, useState } from "react";
4
4
  import { Platform, ScrollView } from "react-native";
5
5
  import { Navigate, Route, Routes } from "react-router-native";
6
- import { Aurora, Text } from "@lookiero/aurora";
6
+ import { Aurora } from "@lookiero/aurora";
7
7
  import { EventProvider } from "@lookiero/event";
8
8
  import { FeatureFlags, PaymentsQueryProvider, setPaymentsBridge } from "@lookiero/payments-front";
9
9
  import { Country, Locale } from "@lookiero/sty-psp-locale";
10
10
  import { SentryEnvironment } from "@lookiero/sty-psp-logging";
11
11
  import { Segment } from "@lookiero/sty-psp-segment";
12
- import { DummyLayout, themeByTradename } from "@lookiero/sty-psp-ui";
12
+ import "@lookiero/sty-psp-ui";
13
+ import { DummyLayout, themeByTradename, Text } from "@lookiero/sty-psp-ui";
13
14
  import { Tradename } from "@lookiero/sty-sp-tradename";
14
15
  import { KameleoonEnvironment } from "./infrastructure/ab-testing/kameleoonEnvironment";
15
16
  import { bootstrap as checkoutBootstrap } from "./infrastructure/delivery/bootstrap";
@@ -117,7 +118,7 @@ const ExpoRoot: FC = () => {
117
118
  <PaymentsQueryProvider>
118
119
  <EventProvider>
119
120
  <Aurora theme={theme}>
120
- {isAccessible === false && <Text heading={true}>Checkout is not accessible!</Text>}
121
+ {isAccessible === false && <Text variant="heading">Checkout is not accessible!</Text>}
121
122
 
122
123
  <Router>
123
124
  <Routes>
@@ -1,6 +1,7 @@
1
1
  import React, { FC, ReactNode, useMemo } from "react";
2
- import { ALIGN, DISPLAY, InfoBox, INFOBOX_TYPE, Text } from "@lookiero/aurora";
2
+ import { ALIGN, InfoBox, INFOBOX_TYPE } from "@lookiero/aurora";
3
3
  import { useI18nMessage } from "@lookiero/i18n-react";
4
+ import { Text } from "@lookiero/sty-psp-ui";
4
5
  import { DOMAIN, I18nMessages } from "../../../i18n/i18n";
5
6
  import { style as fiveItemsDiscountBannerStyle } from "./FiveItemsDiscountBanner.style";
6
7
 
@@ -16,7 +17,7 @@ const FiveItemsDiscountBanner: FC<FiveItemsDiscountBannerProps> = ({ fiveItemsDi
16
17
  values: {
17
18
  discount: fiveItemsDiscount.toString(),
18
19
  b: (chunks: ReactNode[]) => (
19
- <Text as="span" display={DISPLAY.INLINE} level={2} style={style.textBold}>
20
+ <Text level={2} style={style.textBold}>
20
21
  {chunks}
21
22
  </Text>
22
23
  ),
@@ -14,6 +14,7 @@ const style = () => {
14
14
  },
15
15
  discountedPriceText: {
16
16
  color: colorTextMedium,
17
+ textDecorationLine: "line-through",
17
18
  },
18
19
  price: {
19
20
  flexDirection: "row",
@@ -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";
@@ -53,12 +53,7 @@ const Price: FC<PriceProps> = ({ price, variant = "default", withPercentage = fa
53
53
  </Text>
54
54
  {isDiscounted && (
55
55
  <View style={style.discountedPriceInfo}>
56
- <Text
57
- {...PRICE_VARIANT[variant]}
58
- style={style.discountedPriceText}
59
- testID="discounted-price-text"
60
- lineThrough
61
- >
56
+ <Text {...PRICE_VARIANT[variant]} style={style.discountedPriceText} testID="discounted-price-text">
62
57
  {productPrice}
63
58
  </Text>
64
59
  {withPercentage ? (
@@ -38,21 +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}
41
+ detail={true}
43
42
  style={
44
43
  [
45
44
  {
46
45
  "color": "#0C0A0A",
47
46
  "fontFamily": "AreaNormal-Semibold",
48
- "fontSize": 13,
49
- "letterSpacing": 0.1,
50
- "lineHeight": 17,
51
- "paddingBottom": 0,
52
- "paddingLeft": 0,
53
- "paddingRight": 0,
54
- "paddingTop": 0,
47
+ "fontSize": 22,
48
+ "fontStyle": "normal",
49
+ "fontWeight": "300",
50
+ "letterSpacing": -0.2,
51
+ "lineHeight": 26,
55
52
  },
53
+ undefined,
56
54
  ]
57
55
  }
58
56
  testID="price-text"
@@ -68,20 +66,20 @@ exports[`Price atom matches the snapshot for a discounted price: discounted pric
68
66
  }
69
67
  >
70
68
  <Text
71
- allowFontScaling={false}
72
- selectable={false}
69
+ detail={true}
73
70
  style={
74
71
  [
75
72
  {
76
- "color": "#837C7C",
73
+ "color": "#0C0A0A",
77
74
  "fontFamily": "AreaNormal-Semibold",
78
- "fontSize": 13,
79
- "letterSpacing": 0.1,
80
- "lineHeight": 17,
81
- "paddingBottom": 0,
82
- "paddingLeft": 0,
83
- "paddingRight": 0,
84
- "paddingTop": 0,
75
+ "fontSize": 22,
76
+ "fontStyle": "normal",
77
+ "fontWeight": "300",
78
+ "letterSpacing": -0.2,
79
+ "lineHeight": 26,
80
+ },
81
+ {
82
+ "color": "#837C7C",
85
83
  "textDecorationLine": "line-through",
86
84
  },
87
85
  ]
@@ -133,21 +131,19 @@ exports[`Price atom matches the snapshot for a non-discounted price: non-discoun
133
131
  testID="price"
134
132
  >
135
133
  <Text
136
- allowFontScaling={false}
137
- selectable={false}
134
+ detail={true}
138
135
  style={
139
136
  [
140
137
  {
141
138
  "color": "#0C0A0A",
142
139
  "fontFamily": "AreaNormal-Semibold",
143
- "fontSize": 13,
144
- "letterSpacing": 0.1,
145
- "lineHeight": 17,
146
- "paddingBottom": 0,
147
- "paddingLeft": 0,
148
- "paddingRight": 0,
149
- "paddingTop": 0,
140
+ "fontSize": 22,
141
+ "fontStyle": "normal",
142
+ "fontWeight": "300",
143
+ "letterSpacing": -0.2,
144
+ "lineHeight": 26,
150
145
  },
146
+ undefined,
151
147
  ]
152
148
  }
153
149
  testID="price-text"
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  import React, { useCallback, useMemo } from "react";
3
3
  import { TouchableOpacity } from "react-native";
4
- import { Text } from "@lookiero/aurora";
5
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
+ import { Text } from "@lookiero/sty-psp-ui";
6
6
  import { CheckoutFeedbackQuestionType } from "../../../../../../../projection/checkoutFeedback/checkoutFeedback.constants";
7
7
  import { DOMAIN } from "../../../../../i18n/i18n";
8
8
  import { useCheckoutQuestionFeedbackForId } from "../../behaviors/useCheckoutQuestionFeedback";
@@ -36,7 +36,7 @@ const ButtonCheckoutQuestionItem: CheckoutQuestionItem<CheckoutFeedbackQuestionT
36
36
  testID={testID}
37
37
  onPress={handleOnPress}
38
38
  >
39
- <Text level={3} style={[style.text, checked && style.textActive]} action>
39
+ <Text level={3} style={[style.text, checked && style.textActive]} variant="action">
40
40
  {optionText}
41
41
  </Text>
42
42
  </TouchableOpacity>
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  import React, { useMemo } from "react";
3
3
  import { View } from "react-native";
4
- import { Text } from "@lookiero/aurora";
5
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
+ import { Text } from "@lookiero/sty-psp-ui";
6
6
  import { CheckoutFeedbackQuestionType } from "../../../../../../../projection/checkoutFeedback/checkoutFeedback.constants";
7
7
  import { DOMAIN } from "../../../../../i18n/i18n";
8
8
  import { CheckoutQuestionItem } from "../CheckoutQuestionItem";
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  import React, { useMemo } from "react";
3
3
  import { View } from "react-native";
4
- import { Text } from "@lookiero/aurora";
5
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
+ import { Text } from "@lookiero/sty-psp-ui";
6
6
  import { CheckoutFeedbackQuestionType } from "../../../../../../../projection/checkoutFeedback/checkoutFeedback.constants";
7
7
  import { DOMAIN } from "../../../../../i18n/i18n";
8
8
  import { CheckoutQuestionItem } from "../CheckoutQuestionItem";
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  import React, { useMemo } from "react";
3
3
  import { View } from "react-native";
4
- import { Text } from "@lookiero/aurora";
5
4
  import { useI18n } from "@lookiero/i18n-react";
5
+ import { Text } from "@lookiero/sty-psp-ui";
6
6
  import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
7
7
  import { DOMAIN, I18nMessages } from "../../../../../i18n/i18n";
8
8
  import { ReturnQuestionItem } from "../ReturnQuestionItem";
@@ -21,7 +21,7 @@ const HostDefaultReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_
21
21
  <>
22
22
  {returnQuestion.translationKey && returnQuestion.translationKey !== " " && !isAllOptions ? (
23
23
  <View style={style.title}>
24
- <Text level={3} action>
24
+ <Text level={3} variant="action">
25
25
  {formatMessage({ id: returnQuestion.translationKey })}
26
26
  </Text>
27
27
  </View>
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  import React, { useMemo } from "react";
3
3
  import { View } from "react-native";
4
- import { Text } from "@lookiero/aurora";
5
4
  import { useI18n } from "@lookiero/i18n-react";
5
+ import { Text } from "@lookiero/sty-psp-ui";
6
6
  import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
7
7
  import { DOMAIN } from "../../../../../i18n/i18n";
8
8
  import { ReturnQuestionItem } from "../ReturnQuestionItem";
@@ -24,7 +24,7 @@ const HostLegacyRadioGroupReturnQuestionItem: ReturnQuestionItem<ReturnQuestionT
24
24
  return (
25
25
  <>
26
26
  <View style={style.wrapper} testID={testID}>
27
- <Text level={3} style={style.title} action>
27
+ <Text level={3} style={style.title} variant="action">
28
28
  {placeholderText}
29
29
  </Text>
30
30
  {children}
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  import React, { useMemo } from "react";
3
3
  import { View } from "react-native";
4
- import { Text } from "@lookiero/aurora";
5
4
  import { useI18n } from "@lookiero/i18n-react";
5
+ import { Text } from "@lookiero/sty-psp-ui";
6
6
  import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
7
7
  import { DOMAIN } from "../../../../../i18n/i18n";
8
8
  import { ReturnQuestionItem } from "../ReturnQuestionItem";
@@ -19,7 +19,7 @@ const HostRadioGroupReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HO
19
19
  return (
20
20
  <View style={style.wrapper} testID={testID}>
21
21
  {returnQuestion.translationKey && (
22
- <Text level={3} style={style.title} action>
22
+ <Text level={3} style={style.title} variant="action">
23
23
  {formatMessage({ id: returnQuestion.translationKey })}
24
24
  </Text>
25
25
  )}
@@ -2,8 +2,8 @@
2
2
  import React, { useCallback, useMemo } from "react";
3
3
  import { LayoutChangeEvent, View } from "react-native";
4
4
  import Animated, { useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
5
- import { Text } from "@lookiero/aurora";
6
5
  import { useI18n } from "@lookiero/i18n-react";
6
+ import { Text } from "@lookiero/sty-psp-ui";
7
7
  import { ReturnQuestionType } from "../../../../../../../../projection/returnQuestion/returnQuestion.constants";
8
8
  import { returnQuestionHasChildren } from "../../../../../../../../projection/returnQuestion/returnQuestion.typeguard";
9
9
  import { DOMAIN } from "../../../../../../i18n/i18n";
@@ -52,7 +52,7 @@ const HostStackReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.HOST_ST
52
52
  <Animated.View style={stackAnimatedStyle}>
53
53
  <View onLayout={handleOnLayout}>
54
54
  {titleText && (
55
- <Text level={3} style={style.title} heading>
55
+ <Text level={3} style={style.title} variant="heading">
56
56
  {titleText}
57
57
  </Text>
58
58
  )}
@@ -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 { useI18n } from "@lookiero/i18n-react";
4
+ import { Text } from "@lookiero/sty-psp-ui";
5
5
  import { Modal } from "@lookiero/sty-psp-ui";
6
6
  import { ReturnQuestionProjection } from "../../../../../../../projection/returnQuestion/returnQuestion";
7
7
  import { returnQuestionHasChildren } from "../../../../../../../projection/returnQuestion/returnQuestion.typeguard";
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  import React, { useCallback, useMemo } from "react";
3
3
  import { TouchableHighlight } from "react-native";
4
- import { Text } from "@lookiero/aurora";
5
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
+ import { Text } from "@lookiero/sty-psp-ui";
6
6
  import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
7
7
  import { DOMAIN } from "../../../../../i18n/i18n";
8
8
  import { useReturnQuestionFeedbackForReturnQuestion } from "../../behaviors/useReturnQuestionFeedback";
@@ -1,9 +1,8 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  import React, { FC, useCallback, useEffect, useMemo, useState } from "react";
3
- import { Pressable } from "react-native";
4
- import { Text as AuroraText, TextProperties } from "@lookiero/aurora";
3
+ import { Pressable, TextProps as RNTextProps } from "react-native";
5
4
  import { useI18n } from "@lookiero/i18n-react";
6
- import { Checkbox } from "@lookiero/sty-psp-ui";
5
+ import { Checkbox, Text } from "@lookiero/sty-psp-ui";
7
6
  import { Tradename } from "@lookiero/sty-sp-tradename";
8
7
  import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
9
8
  import { useStaticInfo } from "../../../../../hooks/useStaticInfo";
@@ -20,9 +19,9 @@ import { ReturnQuestionItem } from "../ReturnQuestionItem";
20
19
  import { ModalOptionReturnQuestionItems } from "../modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems";
21
20
  import { style as radioReturnQuestionItemStyle } from "./RadioReturnQuestionItem.style";
22
21
 
23
- const TEXT: Record<Tradename, FC<TextProperties>> = {
24
- [Tradename.LOOKIERO]: (props) => <AuroraText level={1} detail {...props} />,
25
- [Tradename.OUTFITTERY]: (props) => <AuroraText level={3} {...props} />,
22
+ const TEXT: Record<Tradename, FC<RNTextProps>> = {
23
+ [Tradename.LOOKIERO]: (props) => <Text level={1} variant="detail" {...props} />,
24
+ [Tradename.OUTFITTERY]: (props) => <Text level={3} {...props} />,
26
25
  };
27
26
 
28
27
  const RadioReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.OPTION> = ({
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  import React, { useCallback, useMemo } from "react";
3
3
  import { View } from "react-native";
4
- import { Text } from "@lookiero/aurora";
5
4
  import { useI18nMessage, useI18n } from "@lookiero/i18n-react";
5
+ import { Text } from "@lookiero/sty-psp-ui";
6
6
  import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
7
7
  import { DOMAIN, I18nMessages } from "../../../../../i18n/i18n";
8
8
  import { useReturnQuestionFeedback } from "../../behaviors/useReturnQuestionFeedback";
@@ -29,11 +29,11 @@ const ReturnQuestionFeedbackItem: ReturnQuestionItem<ReturnQuestionType.HOST_DEF
29
29
  return (
30
30
  <View style={style.container}>
31
31
  {returnQuestion.translationKey && (
32
- <Text level={2} style={style.title} detailBold>
32
+ <Text level={2} style={style.title} variant="detailBold">
33
33
  {formatMessage({ id: returnQuestion.translationKey })}
34
34
  </Text>
35
35
  )}
36
- <Text level={1} detail>
36
+ <Text level={1} variant="detail">
37
37
  {feedback || unansweredText}
38
38
  </Text>
39
39
  </View>
@@ -1,6 +1,6 @@
1
1
  import React, { FC, useMemo } from "react";
2
- import { Text } from "@lookiero/aurora";
3
2
  import { useI18nMessage } from "@lookiero/i18n-react";
3
+ import { Text } from "@lookiero/sty-psp-ui";
4
4
  import { ButtonIcon } from "@lookiero/sty-psp-ui";
5
5
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
6
6
  import { Header } from "../Header";
@@ -19,7 +19,7 @@ const CheckoutHeader: FC<CheckoutHeaderProps> = ({ onBack }) => {
19
19
  return (
20
20
  <Header testID="checkout-header">
21
21
  <ButtonIcon name="arrow_left" style={{ button: style.button }} testID="arrow-left-button-icon" onPress={onBack} />
22
- <Text level={3} action>
22
+ <Text level={3} variant="action">
23
23
  {title}
24
24
  </Text>
25
25
  <ButtonIconPlaceholder />
@@ -98,21 +98,27 @@ exports[`CheckoutHeader template matches the snapshot 1`] = `
98
98
  [
99
99
  {
100
100
  "color": "#0C0A0A",
101
- "fontFamily": "auroraicons",
102
- "fontSize": 24,
101
+ "fontFamily": "AreaNormal-Semibold",
102
+ "fontSize": 15,
103
103
  "fontStyle": "normal",
104
- "fontWeight": "normal",
105
- "height": 24,
104
+ "fontWeight": "300",
106
105
  "letterSpacing": -0.2,
107
- "lineHeight": 24,
108
- "minHeight": 24,
109
- "minWidth": 24,
110
- "paddingBottom": 0,
111
- "paddingLeft": 0,
112
- "paddingRight": 0,
113
- "paddingTop": 0,
114
- "width": 24,
106
+ "lineHeight": 20,
115
107
  },
108
+ [
109
+ {
110
+ "fontFamily": "auroraicons",
111
+ "fontSize": 24,
112
+ "fontStyle": "normal",
113
+ "fontWeight": "normal",
114
+ "height": 24,
115
+ "lineHeight": 24,
116
+ "minHeight": 24,
117
+ "minWidth": 24,
118
+ "width": 24,
119
+ },
120
+ undefined,
121
+ ],
116
122
  ]
117
123
  }
118
124
  testID="icon"
@@ -121,21 +127,18 @@ exports[`CheckoutHeader template matches the snapshot 1`] = `
121
127
  </Text>
122
128
  </View>
123
129
  <Text
124
- allowFontScaling={false}
125
- selectable={false}
126
130
  style={
127
131
  [
128
132
  {
129
133
  "color": "#0C0A0A",
130
134
  "fontFamily": "AreaNormal-Extrabold",
131
135
  "fontSize": 15,
136
+ "fontStyle": "normal",
137
+ "fontWeight": "normal",
132
138
  "letterSpacing": -0.2,
133
139
  "lineHeight": 20,
134
- "paddingBottom": 0,
135
- "paddingLeft": 0,
136
- "paddingRight": 0,
137
- "paddingTop": 0,
138
140
  },
141
+ undefined,
139
142
  ]
140
143
  }
141
144
  >
@@ -1,6 +1,6 @@
1
1
  import React, { FC, useMemo } from "react";
2
- import { Text } from "@lookiero/aurora";
3
2
  import { useI18nMessage } from "@lookiero/i18n-react";
3
+ import { Text } from "@lookiero/sty-psp-ui";
4
4
  import { ButtonIcon } from "@lookiero/sty-psp-ui";
5
5
  import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
6
6
  import { Header } from "../Header";
@@ -18,7 +18,7 @@ const ItemDetailHeader: FC<ItemDetailHeaderProps> = ({ onBack }) => {
18
18
  return (
19
19
  <Header testID="item-detail-header">
20
20
  <ButtonIconPlaceholder />
21
- <Text level={3} action>
21
+ <Text level={3} variant="action">
22
22
  {title}
23
23
  </Text>
24
24
  <ButtonIcon name="close" style={{ button: style.button }} testID="close-button-icon" onPress={onBack} />