@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
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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<
|
|
24
|
-
[Tradename.LOOKIERO]: (props) => <
|
|
25
|
-
[Tradename.OUTFITTERY]: (props) => <
|
|
22
|
+
const TEXT: Record<Tradename, FC<RNTextProps>> = {
|
|
23
|
+
[Tradename.LOOKIERO]: (props) => <Text level={1} 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";
|
|
@@ -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";
|
|
@@ -97,22 +97,27 @@ exports[`CheckoutHeader template matches the snapshot 1`] = `
|
|
|
97
97
|
style={
|
|
98
98
|
[
|
|
99
99
|
{
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"fontSize": 24,
|
|
100
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
101
|
+
"fontSize": 15,
|
|
103
102
|
"fontStyle": "normal",
|
|
104
|
-
"fontWeight": "
|
|
105
|
-
"height": 24,
|
|
103
|
+
"fontWeight": "300",
|
|
106
104
|
"letterSpacing": -0.2,
|
|
107
|
-
"lineHeight":
|
|
108
|
-
"minHeight": 24,
|
|
109
|
-
"minWidth": 24,
|
|
110
|
-
"paddingBottom": 0,
|
|
111
|
-
"paddingLeft": 0,
|
|
112
|
-
"paddingRight": 0,
|
|
113
|
-
"paddingTop": 0,
|
|
114
|
-
"width": 24,
|
|
105
|
+
"lineHeight": 20,
|
|
115
106
|
},
|
|
107
|
+
[
|
|
108
|
+
{
|
|
109
|
+
"fontFamily": "auroraicons",
|
|
110
|
+
"fontSize": 24,
|
|
111
|
+
"fontStyle": "normal",
|
|
112
|
+
"fontWeight": "normal",
|
|
113
|
+
"height": 24,
|
|
114
|
+
"lineHeight": 24,
|
|
115
|
+
"minHeight": 24,
|
|
116
|
+
"minWidth": 24,
|
|
117
|
+
"width": 24,
|
|
118
|
+
},
|
|
119
|
+
undefined,
|
|
120
|
+
],
|
|
116
121
|
]
|
|
117
122
|
}
|
|
118
123
|
testID="icon"
|
|
@@ -121,21 +126,17 @@ exports[`CheckoutHeader template matches the snapshot 1`] = `
|
|
|
121
126
|
</Text>
|
|
122
127
|
</View>
|
|
123
128
|
<Text
|
|
124
|
-
allowFontScaling={false}
|
|
125
|
-
selectable={false}
|
|
126
129
|
style={
|
|
127
130
|
[
|
|
128
131
|
{
|
|
129
|
-
"color": "#0C0A0A",
|
|
130
132
|
"fontFamily": "AreaNormal-Extrabold",
|
|
131
133
|
"fontSize": 15,
|
|
134
|
+
"fontStyle": "normal",
|
|
135
|
+
"fontWeight": "normal",
|
|
132
136
|
"letterSpacing": -0.2,
|
|
133
137
|
"lineHeight": 20,
|
|
134
|
-
"paddingBottom": 0,
|
|
135
|
-
"paddingLeft": 0,
|
|
136
|
-
"paddingRight": 0,
|
|
137
|
-
"paddingTop": 0,
|
|
138
138
|
},
|
|
139
|
+
undefined,
|
|
139
140
|
]
|
|
140
141
|
}
|
|
141
142
|
>
|
package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx
CHANGED
|
@@ -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";
|
|
@@ -59,21 +59,17 @@ exports[`ItemDetailHeader template matches the snapshot 1`] = `
|
|
|
59
59
|
}
|
|
60
60
|
/>
|
|
61
61
|
<Text
|
|
62
|
-
allowFontScaling={false}
|
|
63
|
-
selectable={false}
|
|
64
62
|
style={
|
|
65
63
|
[
|
|
66
64
|
{
|
|
67
|
-
"color": "#0C0A0A",
|
|
68
65
|
"fontFamily": "AreaNormal-Extrabold",
|
|
69
66
|
"fontSize": 15,
|
|
67
|
+
"fontStyle": "normal",
|
|
68
|
+
"fontWeight": "normal",
|
|
70
69
|
"letterSpacing": -0.2,
|
|
71
70
|
"lineHeight": 20,
|
|
72
|
-
"paddingBottom": 0,
|
|
73
|
-
"paddingLeft": 0,
|
|
74
|
-
"paddingRight": 0,
|
|
75
|
-
"paddingTop": 0,
|
|
76
71
|
},
|
|
72
|
+
undefined,
|
|
77
73
|
]
|
|
78
74
|
}
|
|
79
75
|
>
|
|
@@ -127,22 +123,27 @@ exports[`ItemDetailHeader template matches the snapshot 1`] = `
|
|
|
127
123
|
style={
|
|
128
124
|
[
|
|
129
125
|
{
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"fontSize": 24,
|
|
126
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
127
|
+
"fontSize": 15,
|
|
133
128
|
"fontStyle": "normal",
|
|
134
|
-
"fontWeight": "
|
|
135
|
-
"height": 24,
|
|
129
|
+
"fontWeight": "300",
|
|
136
130
|
"letterSpacing": -0.2,
|
|
137
|
-
"lineHeight":
|
|
138
|
-
"minHeight": 24,
|
|
139
|
-
"minWidth": 24,
|
|
140
|
-
"paddingBottom": 0,
|
|
141
|
-
"paddingLeft": 0,
|
|
142
|
-
"paddingRight": 0,
|
|
143
|
-
"paddingTop": 0,
|
|
144
|
-
"width": 24,
|
|
131
|
+
"lineHeight": 20,
|
|
145
132
|
},
|
|
133
|
+
[
|
|
134
|
+
{
|
|
135
|
+
"fontFamily": "auroraicons",
|
|
136
|
+
"fontSize": 24,
|
|
137
|
+
"fontStyle": "normal",
|
|
138
|
+
"fontWeight": "normal",
|
|
139
|
+
"height": 24,
|
|
140
|
+
"lineHeight": 24,
|
|
141
|
+
"minHeight": 24,
|
|
142
|
+
"minWidth": 24,
|
|
143
|
+
"width": 24,
|
|
144
|
+
},
|
|
145
|
+
undefined,
|
|
146
|
+
],
|
|
146
147
|
]
|
|
147
148
|
}
|
|
148
149
|
testID="icon"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { FC, useCallback, useMemo } from "react";
|
|
2
2
|
import { StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import { generatePath, useNavigate } from "react-router-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 { ButtonIcon } from "@lookiero/sty-psp-ui";
|
|
7
7
|
import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
8
8
|
import { useStaticInfo } from "../../../../hooks/useStaticInfo";
|
|
@@ -97,22 +97,27 @@ exports[`ItemHeader template matches the snapshot 1`] = `
|
|
|
97
97
|
style={
|
|
98
98
|
[
|
|
99
99
|
{
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"fontSize": 24,
|
|
100
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
101
|
+
"fontSize": 15,
|
|
103
102
|
"fontStyle": "normal",
|
|
104
|
-
"fontWeight": "
|
|
105
|
-
"height": 24,
|
|
103
|
+
"fontWeight": "300",
|
|
106
104
|
"letterSpacing": -0.2,
|
|
107
|
-
"lineHeight":
|
|
108
|
-
"minHeight": 24,
|
|
109
|
-
"minWidth": 24,
|
|
110
|
-
"paddingBottom": 0,
|
|
111
|
-
"paddingLeft": 0,
|
|
112
|
-
"paddingRight": 0,
|
|
113
|
-
"paddingTop": 0,
|
|
114
|
-
"width": 24,
|
|
105
|
+
"lineHeight": 20,
|
|
115
106
|
},
|
|
107
|
+
[
|
|
108
|
+
{
|
|
109
|
+
"fontFamily": "auroraicons",
|
|
110
|
+
"fontSize": 24,
|
|
111
|
+
"fontStyle": "normal",
|
|
112
|
+
"fontWeight": "normal",
|
|
113
|
+
"height": 24,
|
|
114
|
+
"lineHeight": 24,
|
|
115
|
+
"minHeight": 24,
|
|
116
|
+
"minWidth": 24,
|
|
117
|
+
"width": 24,
|
|
118
|
+
},
|
|
119
|
+
undefined,
|
|
120
|
+
],
|
|
116
121
|
]
|
|
117
122
|
}
|
|
118
123
|
testID="icon"
|
|
@@ -121,21 +126,17 @@ exports[`ItemHeader template matches the snapshot 1`] = `
|
|
|
121
126
|
</Text>
|
|
122
127
|
</View>
|
|
123
128
|
<Text
|
|
124
|
-
allowFontScaling={false}
|
|
125
|
-
selectable={false}
|
|
126
129
|
style={
|
|
127
130
|
[
|
|
128
131
|
{
|
|
129
|
-
"color": "#0C0A0A",
|
|
130
132
|
"fontFamily": "AreaNormal-Extrabold",
|
|
131
133
|
"fontSize": 15,
|
|
134
|
+
"fontStyle": "normal",
|
|
135
|
+
"fontWeight": "normal",
|
|
132
136
|
"letterSpacing": -0.2,
|
|
133
137
|
"lineHeight": 20,
|
|
134
|
-
"paddingBottom": 0,
|
|
135
|
-
"paddingLeft": 0,
|
|
136
|
-
"paddingRight": 0,
|
|
137
|
-
"paddingTop": 0,
|
|
138
138
|
},
|
|
139
|
+
undefined,
|
|
139
140
|
]
|
|
140
141
|
}
|
|
141
142
|
>
|
|
@@ -189,22 +190,27 @@ exports[`ItemHeader template matches the snapshot 1`] = `
|
|
|
189
190
|
style={
|
|
190
191
|
[
|
|
191
192
|
{
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"fontSize": 24,
|
|
193
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
194
|
+
"fontSize": 15,
|
|
195
195
|
"fontStyle": "normal",
|
|
196
|
-
"fontWeight": "
|
|
197
|
-
"height": 24,
|
|
196
|
+
"fontWeight": "300",
|
|
198
197
|
"letterSpacing": -0.2,
|
|
199
|
-
"lineHeight":
|
|
200
|
-
"minHeight": 24,
|
|
201
|
-
"minWidth": 24,
|
|
202
|
-
"paddingBottom": 0,
|
|
203
|
-
"paddingLeft": 0,
|
|
204
|
-
"paddingRight": 0,
|
|
205
|
-
"paddingTop": 0,
|
|
206
|
-
"width": 24,
|
|
198
|
+
"lineHeight": 20,
|
|
207
199
|
},
|
|
200
|
+
[
|
|
201
|
+
{
|
|
202
|
+
"fontFamily": "auroraicons",
|
|
203
|
+
"fontSize": 24,
|
|
204
|
+
"fontStyle": "normal",
|
|
205
|
+
"fontWeight": "normal",
|
|
206
|
+
"height": 24,
|
|
207
|
+
"lineHeight": 24,
|
|
208
|
+
"minHeight": 24,
|
|
209
|
+
"minWidth": 24,
|
|
210
|
+
"width": 24,
|
|
211
|
+
},
|
|
212
|
+
undefined,
|
|
213
|
+
],
|
|
208
214
|
]
|
|
209
215
|
}
|
|
210
216
|
testID="icon"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { FC, useCallback, useMemo, useState } from "react";
|
|
2
2
|
import { LayoutRectangle, Platform, ScrollView, View } from "react-native";
|
|
3
3
|
import { useNavigate } from "react-router-native";
|
|
4
|
-
import { Box, Layout as AuroraLayout, Spinner
|
|
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
7
|
import { PayButton, Section } from "@lookiero/payments-front";
|
|
8
8
|
import { Country } from "@lookiero/sty-psp-locale";
|
|
9
|
-
import { Layout as UiLayout, Sticky, useScreenSize } from "@lookiero/sty-psp-ui";
|
|
9
|
+
import { Layout as UiLayout, Sticky, Text, useScreenSize } from "@lookiero/sty-psp-ui";
|
|
10
10
|
import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
|
|
11
11
|
import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
|
|
12
12
|
import { useViewPricingByCheckoutId } from "../../../projection/pricing/react/useViewPricingByCheckoutId";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { Pressable, View } from "react-native";
|
|
3
|
-
import { InfoBox
|
|
3
|
+
import { InfoBox } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
|
-
import
|
|
5
|
+
import "@lookiero/sty-psp-ui";
|
|
6
|
+
import { useScreenSize, Text } from "@lookiero/sty-psp-ui";
|
|
6
7
|
import { CheckoutItemStatus } from "../../../../../../domain/checkoutItem/model/checkoutItem";
|
|
7
8
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
8
9
|
import { style as customerDecissionBannerStyle } from "./CustomerDecissionBanner.style";
|
|
@@ -138,22 +138,18 @@ exports[`CustomerDecissionBanner component matches the snapshot for a KEPT check
|
|
|
138
138
|
testID="customer-decission-banner"
|
|
139
139
|
>
|
|
140
140
|
<Text
|
|
141
|
-
allowFontScaling={false}
|
|
142
|
-
selectable={false}
|
|
143
141
|
style={
|
|
144
142
|
[
|
|
145
143
|
{
|
|
146
|
-
"color": "#0C0A0A",
|
|
147
144
|
"fontFamily": "AreaNormal-Semibold",
|
|
148
145
|
"fontSize": 12,
|
|
146
|
+
"fontStyle": "normal",
|
|
147
|
+
"fontWeight": "normal",
|
|
149
148
|
"letterSpacing": 0.1,
|
|
150
149
|
"lineHeight": 16,
|
|
151
|
-
"paddingBottom": 0,
|
|
152
|
-
"paddingLeft": 0,
|
|
153
|
-
"paddingRight": 0,
|
|
154
|
-
"paddingTop": 0,
|
|
155
150
|
"textDecorationLine": "underline",
|
|
156
151
|
},
|
|
152
|
+
undefined,
|
|
157
153
|
]
|
|
158
154
|
}
|
|
159
155
|
>
|
|
@@ -307,22 +303,18 @@ exports[`CustomerDecissionBanner component matches the snapshot for a REPLACED c
|
|
|
307
303
|
testID="customer-decission-banner"
|
|
308
304
|
>
|
|
309
305
|
<Text
|
|
310
|
-
allowFontScaling={false}
|
|
311
|
-
selectable={false}
|
|
312
306
|
style={
|
|
313
307
|
[
|
|
314
308
|
{
|
|
315
|
-
"color": "#0C0A0A",
|
|
316
309
|
"fontFamily": "AreaNormal-Semibold",
|
|
317
310
|
"fontSize": 12,
|
|
311
|
+
"fontStyle": "normal",
|
|
312
|
+
"fontWeight": "normal",
|
|
318
313
|
"letterSpacing": 0.1,
|
|
319
314
|
"lineHeight": 16,
|
|
320
|
-
"paddingBottom": 0,
|
|
321
|
-
"paddingLeft": 0,
|
|
322
|
-
"paddingRight": 0,
|
|
323
|
-
"paddingTop": 0,
|
|
324
315
|
"textDecorationLine": "underline",
|
|
325
316
|
},
|
|
317
|
+
undefined,
|
|
326
318
|
]
|
|
327
319
|
}
|
|
328
320
|
>
|
|
@@ -476,22 +468,18 @@ exports[`CustomerDecissionBanner component matches the snapshot for a RETURNED c
|
|
|
476
468
|
testID="customer-decission-banner"
|
|
477
469
|
>
|
|
478
470
|
<Text
|
|
479
|
-
allowFontScaling={false}
|
|
480
|
-
selectable={false}
|
|
481
471
|
style={
|
|
482
472
|
[
|
|
483
473
|
{
|
|
484
|
-
"color": "#0C0A0A",
|
|
485
474
|
"fontFamily": "AreaNormal-Semibold",
|
|
486
475
|
"fontSize": 12,
|
|
476
|
+
"fontStyle": "normal",
|
|
477
|
+
"fontWeight": "normal",
|
|
487
478
|
"letterSpacing": 0.1,
|
|
488
479
|
"lineHeight": 16,
|
|
489
|
-
"paddingBottom": 0,
|
|
490
|
-
"paddingLeft": 0,
|
|
491
|
-
"paddingRight": 0,
|
|
492
|
-
"paddingTop": 0,
|
|
493
480
|
"textDecorationLine": "underline",
|
|
494
481
|
},
|
|
482
|
+
undefined,
|
|
495
483
|
]
|
|
496
484
|
}
|
|
497
485
|
>
|
package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { Button, BUTTON_VARIANT
|
|
3
|
+
import { Button, BUTTON_VARIANT } from "@lookiero/aurora";
|
|
4
4
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
|
-
import { Modal } from "@lookiero/sty-psp-ui";
|
|
5
|
+
import { Modal, Text } from "@lookiero/sty-psp-ui";
|
|
6
6
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
7
7
|
import { style as getOutOfCheckoutModalStyle } from "./GetOutOfCheckoutModal.style";
|
|
8
8
|
|
|
@@ -35,12 +35,12 @@ const GetOutOfCheckoutModal: FC<GetOutOfCheckoutModalProps> = ({ visible, onDism
|
|
|
35
35
|
{descriptionText}
|
|
36
36
|
</Text>
|
|
37
37
|
<Button style={style.button} onPress={onDismiss}>
|
|
38
|
-
<Text level={3} selectable={false} style={style.buttonText} action
|
|
38
|
+
<Text level={3} selectable={false} style={[style.buttonText, { textTransform: "uppercase" }]} action>
|
|
39
39
|
{dismissButtonText}
|
|
40
40
|
</Text>
|
|
41
41
|
</Button>
|
|
42
42
|
<Button style={[style.button, style.confirmButton]} variant={BUTTON_VARIANT.SECONDARY} onPress={onConfirm}>
|
|
43
|
-
<Text level={3} selectable={false} style={style.buttonText} action
|
|
43
|
+
<Text level={3} selectable={false} style={[style.buttonText, { textTransform: "uppercase" }]} action>
|
|
44
44
|
{confirmButtonText}
|
|
45
45
|
</Text>
|
|
46
46
|
</Button>
|