@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.
- 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 +4 -3
- package/dist/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +3 -2
- package/dist/src/infrastructure/ui/components/atoms/price/Price.js +2 -2
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.js +1 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +2 -2
- 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 +2 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostLegacyRadioGroupReturnQuestionItem/HostLegacyRadioGroupReturnQuestionItem.js +2 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.js +2 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +2 -2
- 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 +3 -3
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +2 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +2 -2
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +3 -3
- 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 +4 -3
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +3 -0
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +3 -0
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +4 -4
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +4 -4
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +2 -2
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +3 -3
- package/dist/src/infrastructure/ui/views/return/components/price/Price.js +4 -4
- package/dist/src/infrastructure/ui/views/return/components/price/Price.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/views/return/components/price/Price.style.js +1 -0
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +4 -4
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +4 -3
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +5 -5
- package/dist/src/infrastructure/ui/views/summary/Summary.js +3 -3
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +3 -3
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +2 -2
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +1 -1
- package/dist/src/version.d.ts +2 -2
- package/dist/src/version.js +2 -2
- package/package.json +4 -4
- package/src/ExpoRoot.tsx +4 -3
- package/src/infrastructure/ui/components/atoms/fiveItemsDiscountBanner/FiveItemsDiscountBanner.tsx +3 -2
- package/src/infrastructure/ui/components/atoms/price/Price.style.ts +1 -0
- package/src/infrastructure/ui/components/atoms/price/Price.tsx +2 -7
- package/src/infrastructure/ui/components/atoms/price/__snapshots__/Price.test.tsx.snap +24 -28
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +2 -2
- 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 +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostLegacyRadioGroupReturnQuestionItem/HostLegacyRadioGroupReturnQuestionItem.tsx +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostRadioGroupReturnQuestionItem/HostRadioGroupReturnQuestionItem.tsx +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +2 -2
- 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 +3 -3
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +2 -2
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +21 -18
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -2
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +21 -18
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +2 -2
- package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +39 -30
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +3 -3
- package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.ts +3 -0
- package/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.tsx +4 -3
- package/src/infrastructure/ui/views/item/components/banner/__snapshots__/CustomerDecissionBanner.test.tsx.snap +12 -18
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +14 -4
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +30 -28
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +45 -33
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +4 -4
- package/src/infrastructure/ui/views/item/components/productVariantDescription/__snapshots__/ProductVariantDescription.test.tsx.snap +38 -56
- package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +2 -2
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +28 -19
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +3 -3
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +28 -25
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +57 -84
- package/src/infrastructure/ui/views/return/components/price/Price.style.ts +1 -0
- package/src/infrastructure/ui/views/return/components/price/Price.tsx +4 -4
- package/src/infrastructure/ui/views/return/components/price/__snapshots__/Price.test.tsx.snap +12 -19
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +4 -4
- package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +18 -26
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +4 -3
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +5 -5
- package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +80 -82
- package/src/infrastructure/ui/views/summary/Summary.tsx +3 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +3 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +58 -54
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +2 -2
- 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 +197 -193
|
@@ -59,21 +59,18 @@ 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
65
|
"color": "#0C0A0A",
|
|
68
66
|
"fontFamily": "AreaNormal-Extrabold",
|
|
69
67
|
"fontSize": 15,
|
|
68
|
+
"fontStyle": "normal",
|
|
69
|
+
"fontWeight": "normal",
|
|
70
70
|
"letterSpacing": -0.2,
|
|
71
71
|
"lineHeight": 20,
|
|
72
|
-
"paddingBottom": 0,
|
|
73
|
-
"paddingLeft": 0,
|
|
74
|
-
"paddingRight": 0,
|
|
75
|
-
"paddingTop": 0,
|
|
76
72
|
},
|
|
73
|
+
undefined,
|
|
77
74
|
]
|
|
78
75
|
}
|
|
79
76
|
>
|
|
@@ -128,21 +125,27 @@ exports[`ItemDetailHeader template matches the snapshot 1`] = `
|
|
|
128
125
|
[
|
|
129
126
|
{
|
|
130
127
|
"color": "#0C0A0A",
|
|
131
|
-
"fontFamily": "
|
|
132
|
-
"fontSize":
|
|
128
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
129
|
+
"fontSize": 15,
|
|
133
130
|
"fontStyle": "normal",
|
|
134
|
-
"fontWeight": "
|
|
135
|
-
"height": 24,
|
|
131
|
+
"fontWeight": "300",
|
|
136
132
|
"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,
|
|
133
|
+
"lineHeight": 20,
|
|
145
134
|
},
|
|
135
|
+
[
|
|
136
|
+
{
|
|
137
|
+
"fontFamily": "auroraicons",
|
|
138
|
+
"fontSize": 24,
|
|
139
|
+
"fontStyle": "normal",
|
|
140
|
+
"fontWeight": "normal",
|
|
141
|
+
"height": 24,
|
|
142
|
+
"lineHeight": 24,
|
|
143
|
+
"minHeight": 24,
|
|
144
|
+
"minWidth": 24,
|
|
145
|
+
"width": 24,
|
|
146
|
+
},
|
|
147
|
+
undefined,
|
|
148
|
+
],
|
|
146
149
|
]
|
|
147
150
|
}
|
|
148
151
|
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";
|
|
@@ -73,7 +73,7 @@ const ItemHeader: FC<ItemHeaderProps> = ({ items, item, onNext, onPrevious }) =>
|
|
|
73
73
|
) : (
|
|
74
74
|
<ButtonIconPlaceholder />
|
|
75
75
|
)}
|
|
76
|
-
<Text level={3} action>
|
|
76
|
+
<Text level={3} variant="action">
|
|
77
77
|
{title}
|
|
78
78
|
</Text>
|
|
79
79
|
{!isLastItem ? (
|
|
@@ -98,21 +98,27 @@ exports[`ItemHeader template matches the snapshot 1`] = `
|
|
|
98
98
|
[
|
|
99
99
|
{
|
|
100
100
|
"color": "#0C0A0A",
|
|
101
|
-
"fontFamily": "
|
|
102
|
-
"fontSize":
|
|
101
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
102
|
+
"fontSize": 15,
|
|
103
103
|
"fontStyle": "normal",
|
|
104
|
-
"fontWeight": "
|
|
105
|
-
"height": 24,
|
|
104
|
+
"fontWeight": "300",
|
|
106
105
|
"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,
|
|
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[`ItemHeader 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
|
>
|
|
@@ -190,21 +193,27 @@ exports[`ItemHeader template matches the snapshot 1`] = `
|
|
|
190
193
|
[
|
|
191
194
|
{
|
|
192
195
|
"color": "#0C0A0A",
|
|
193
|
-
"fontFamily": "
|
|
194
|
-
"fontSize":
|
|
196
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
197
|
+
"fontSize": 15,
|
|
195
198
|
"fontStyle": "normal",
|
|
196
|
-
"fontWeight": "
|
|
197
|
-
"height": 24,
|
|
199
|
+
"fontWeight": "300",
|
|
198
200
|
"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,
|
|
201
|
+
"lineHeight": 20,
|
|
207
202
|
},
|
|
203
|
+
[
|
|
204
|
+
{
|
|
205
|
+
"fontFamily": "auroraicons",
|
|
206
|
+
"fontSize": 24,
|
|
207
|
+
"fontStyle": "normal",
|
|
208
|
+
"fontWeight": "normal",
|
|
209
|
+
"height": 24,
|
|
210
|
+
"lineHeight": 24,
|
|
211
|
+
"minHeight": 24,
|
|
212
|
+
"minWidth": 24,
|
|
213
|
+
"width": 24,
|
|
214
|
+
},
|
|
215
|
+
undefined,
|
|
216
|
+
],
|
|
208
217
|
]
|
|
209
218
|
}
|
|
210
219
|
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";
|
|
@@ -151,7 +151,7 @@ const Checkout: FC<CheckoutProps> = ({ layout: Layout, getAuthToken, useRedirect
|
|
|
151
151
|
</View>
|
|
152
152
|
)}
|
|
153
153
|
|
|
154
|
-
<Text level={3} style={style.title} heading>
|
|
154
|
+
<Text level={3} style={style.title} variant="heading">
|
|
155
155
|
{titleText}
|
|
156
156
|
</Text>
|
|
157
157
|
|
|
@@ -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";
|
|
@@ -32,7 +33,7 @@ const CustomerDecissionBanner: FC<CustomerDecissionBannerProps> = ({ checkoutIte
|
|
|
32
33
|
<View style={[style.container, isSmallScreen ? style.smallContainer : null]}>
|
|
33
34
|
<InfoBox text={decissionText}>
|
|
34
35
|
<Pressable testID="customer-decission-banner" onPress={onPress}>
|
|
35
|
-
<Text level={isSmallScreen ? 2 : 1} detail
|
|
36
|
+
<Text level={isSmallScreen ? 2 : 1} style={style.underlinedText} variant="detail">
|
|
36
37
|
{bannerButtonText}
|
|
37
38
|
</Text>
|
|
38
39
|
</Pressable>
|
|
@@ -138,20 +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
144
|
"color": "#0C0A0A",
|
|
147
145
|
"fontFamily": "AreaNormal-Semibold",
|
|
148
146
|
"fontSize": 12,
|
|
147
|
+
"fontStyle": "normal",
|
|
148
|
+
"fontWeight": "normal",
|
|
149
149
|
"letterSpacing": 0.1,
|
|
150
150
|
"lineHeight": 16,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
"paddingRight": 0,
|
|
154
|
-
"paddingTop": 0,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
155
153
|
"textDecorationLine": "underline",
|
|
156
154
|
},
|
|
157
155
|
]
|
|
@@ -307,20 +305,18 @@ exports[`CustomerDecissionBanner component matches the snapshot for a REPLACED c
|
|
|
307
305
|
testID="customer-decission-banner"
|
|
308
306
|
>
|
|
309
307
|
<Text
|
|
310
|
-
allowFontScaling={false}
|
|
311
|
-
selectable={false}
|
|
312
308
|
style={
|
|
313
309
|
[
|
|
314
310
|
{
|
|
315
311
|
"color": "#0C0A0A",
|
|
316
312
|
"fontFamily": "AreaNormal-Semibold",
|
|
317
313
|
"fontSize": 12,
|
|
314
|
+
"fontStyle": "normal",
|
|
315
|
+
"fontWeight": "normal",
|
|
318
316
|
"letterSpacing": 0.1,
|
|
319
317
|
"lineHeight": 16,
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
"paddingRight": 0,
|
|
323
|
-
"paddingTop": 0,
|
|
318
|
+
},
|
|
319
|
+
{
|
|
324
320
|
"textDecorationLine": "underline",
|
|
325
321
|
},
|
|
326
322
|
]
|
|
@@ -476,20 +472,18 @@ exports[`CustomerDecissionBanner component matches the snapshot for a RETURNED c
|
|
|
476
472
|
testID="customer-decission-banner"
|
|
477
473
|
>
|
|
478
474
|
<Text
|
|
479
|
-
allowFontScaling={false}
|
|
480
|
-
selectable={false}
|
|
481
475
|
style={
|
|
482
476
|
[
|
|
483
477
|
{
|
|
484
478
|
"color": "#0C0A0A",
|
|
485
479
|
"fontFamily": "AreaNormal-Semibold",
|
|
486
480
|
"fontSize": 12,
|
|
481
|
+
"fontStyle": "normal",
|
|
482
|
+
"fontWeight": "normal",
|
|
487
483
|
"letterSpacing": 0.1,
|
|
488
484
|
"lineHeight": 16,
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
"paddingRight": 0,
|
|
492
|
-
"paddingTop": 0,
|
|
485
|
+
},
|
|
486
|
+
{
|
|
493
487
|
"textDecorationLine": "underline",
|
|
494
488
|
},
|
|
495
489
|
]
|
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,22 @@ const GetOutOfCheckoutModal: FC<GetOutOfCheckoutModalProps> = ({ visible, onDism
|
|
|
35
35
|
{descriptionText}
|
|
36
36
|
</Text>
|
|
37
37
|
<Button style={style.button} onPress={onDismiss}>
|
|
38
|
-
<Text
|
|
38
|
+
<Text
|
|
39
|
+
level={3}
|
|
40
|
+
selectable={false}
|
|
41
|
+
style={[style.buttonText, { textTransform: "uppercase" }]}
|
|
42
|
+
variant="action"
|
|
43
|
+
>
|
|
39
44
|
{dismissButtonText}
|
|
40
45
|
</Text>
|
|
41
46
|
</Button>
|
|
42
47
|
<Button style={[style.button, style.confirmButton]} variant={BUTTON_VARIANT.SECONDARY} onPress={onConfirm}>
|
|
43
|
-
<Text
|
|
48
|
+
<Text
|
|
49
|
+
level={3}
|
|
50
|
+
selectable={false}
|
|
51
|
+
style={[style.buttonText, { textTransform: "uppercase" }]}
|
|
52
|
+
variant="action"
|
|
53
|
+
>
|
|
44
54
|
{confirmButtonText}
|
|
45
55
|
</Text>
|
|
46
56
|
</Button>
|
|
@@ -173,20 +173,18 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
173
173
|
}
|
|
174
174
|
>
|
|
175
175
|
<Text
|
|
176
|
-
allowFontScaling={false}
|
|
177
|
-
selectable={false}
|
|
178
176
|
style={
|
|
179
177
|
[
|
|
180
178
|
{
|
|
181
179
|
"color": "#0C0A0A",
|
|
182
180
|
"fontFamily": "AreaNormal-Semibold",
|
|
183
181
|
"fontSize": 22,
|
|
182
|
+
"fontStyle": "normal",
|
|
183
|
+
"fontWeight": "300",
|
|
184
184
|
"letterSpacing": -0.2,
|
|
185
185
|
"lineHeight": 26,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"paddingRight": 0,
|
|
189
|
-
"paddingTop": 0,
|
|
186
|
+
},
|
|
187
|
+
{
|
|
190
188
|
"textAlign": "center",
|
|
191
189
|
"width": "100%",
|
|
192
190
|
},
|
|
@@ -196,21 +194,19 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
196
194
|
get_out_of_checkout_modal.title
|
|
197
195
|
</Text>
|
|
198
196
|
<Text
|
|
199
|
-
allowFontScaling={false}
|
|
200
|
-
selectable={false}
|
|
201
197
|
style={
|
|
202
198
|
[
|
|
203
199
|
{
|
|
204
200
|
"color": "#0C0A0A",
|
|
205
201
|
"fontFamily": "AreaNormal-Semibold",
|
|
206
202
|
"fontSize": 15,
|
|
203
|
+
"fontStyle": "normal",
|
|
204
|
+
"fontWeight": "300",
|
|
207
205
|
"letterSpacing": -0.2,
|
|
208
206
|
"lineHeight": 20,
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
209
|
"marginVertical": 32,
|
|
210
|
-
"paddingBottom": 0,
|
|
211
|
-
"paddingLeft": 0,
|
|
212
|
-
"paddingRight": 0,
|
|
213
|
-
"paddingTop": 0,
|
|
214
210
|
"width": "100%",
|
|
215
211
|
},
|
|
216
212
|
]
|
|
@@ -356,7 +352,6 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
356
352
|
}
|
|
357
353
|
>
|
|
358
354
|
<Text
|
|
359
|
-
allowFontScaling={false}
|
|
360
355
|
selectable={false}
|
|
361
356
|
style={
|
|
362
357
|
[
|
|
@@ -364,16 +359,20 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
364
359
|
"color": "#0C0A0A",
|
|
365
360
|
"fontFamily": "AreaNormal-Extrabold",
|
|
366
361
|
"fontSize": 15,
|
|
362
|
+
"fontStyle": "normal",
|
|
363
|
+
"fontWeight": "normal",
|
|
367
364
|
"letterSpacing": -0.2,
|
|
368
365
|
"lineHeight": 20,
|
|
369
|
-
"paddingBottom": 0,
|
|
370
|
-
"paddingLeft": 0,
|
|
371
|
-
"paddingRight": 0,
|
|
372
|
-
"paddingTop": 0,
|
|
373
|
-
"textAlign": "center",
|
|
374
|
-
"textTransform": "uppercase",
|
|
375
|
-
"width": "100%",
|
|
376
366
|
},
|
|
367
|
+
[
|
|
368
|
+
{
|
|
369
|
+
"textAlign": "center",
|
|
370
|
+
"width": "100%",
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"textTransform": "uppercase",
|
|
374
|
+
},
|
|
375
|
+
],
|
|
377
376
|
]
|
|
378
377
|
}
|
|
379
378
|
>
|
|
@@ -528,7 +527,6 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
528
527
|
}
|
|
529
528
|
>
|
|
530
529
|
<Text
|
|
531
|
-
allowFontScaling={false}
|
|
532
530
|
selectable={false}
|
|
533
531
|
style={
|
|
534
532
|
[
|
|
@@ -536,16 +534,20 @@ exports[`GetOutOfCheckoutModal component matches the snapshot 1`] = `
|
|
|
536
534
|
"color": "#0C0A0A",
|
|
537
535
|
"fontFamily": "AreaNormal-Extrabold",
|
|
538
536
|
"fontSize": 15,
|
|
537
|
+
"fontStyle": "normal",
|
|
538
|
+
"fontWeight": "normal",
|
|
539
539
|
"letterSpacing": -0.2,
|
|
540
540
|
"lineHeight": 20,
|
|
541
|
-
"paddingBottom": 0,
|
|
542
|
-
"paddingLeft": 0,
|
|
543
|
-
"paddingRight": 0,
|
|
544
|
-
"paddingTop": 0,
|
|
545
|
-
"textAlign": "center",
|
|
546
|
-
"textTransform": "uppercase",
|
|
547
|
-
"width": "100%",
|
|
548
541
|
},
|
|
542
|
+
[
|
|
543
|
+
{
|
|
544
|
+
"textAlign": "center",
|
|
545
|
+
"width": "100%",
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"textTransform": "uppercase",
|
|
549
|
+
},
|
|
550
|
+
],
|
|
549
551
|
]
|
|
550
552
|
}
|
|
551
553
|
>
|
|
@@ -794,21 +794,27 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
794
794
|
[
|
|
795
795
|
{
|
|
796
796
|
"color": "#0C0A0A",
|
|
797
|
-
"fontFamily": "
|
|
798
|
-
"fontSize":
|
|
797
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
798
|
+
"fontSize": 15,
|
|
799
799
|
"fontStyle": "normal",
|
|
800
|
-
"fontWeight": "
|
|
801
|
-
"height": 24,
|
|
800
|
+
"fontWeight": "300",
|
|
802
801
|
"letterSpacing": -0.2,
|
|
803
|
-
"lineHeight":
|
|
804
|
-
"minHeight": 24,
|
|
805
|
-
"minWidth": 24,
|
|
806
|
-
"paddingBottom": 0,
|
|
807
|
-
"paddingLeft": 0,
|
|
808
|
-
"paddingRight": 0,
|
|
809
|
-
"paddingTop": 0,
|
|
810
|
-
"width": 24,
|
|
802
|
+
"lineHeight": 20,
|
|
811
803
|
},
|
|
804
|
+
[
|
|
805
|
+
{
|
|
806
|
+
"fontFamily": "auroraicons",
|
|
807
|
+
"fontSize": 24,
|
|
808
|
+
"fontStyle": "normal",
|
|
809
|
+
"fontWeight": "normal",
|
|
810
|
+
"height": 24,
|
|
811
|
+
"lineHeight": 24,
|
|
812
|
+
"minHeight": 24,
|
|
813
|
+
"minWidth": 24,
|
|
814
|
+
"width": 24,
|
|
815
|
+
},
|
|
816
|
+
undefined,
|
|
817
|
+
],
|
|
812
818
|
]
|
|
813
819
|
}
|
|
814
820
|
testID="icon"
|
|
@@ -847,21 +853,19 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
847
853
|
}
|
|
848
854
|
>
|
|
849
855
|
<Text
|
|
850
|
-
allowFontScaling={false}
|
|
851
|
-
selectable={false}
|
|
852
856
|
style={
|
|
853
857
|
[
|
|
854
858
|
{
|
|
855
859
|
"color": "#0C0A0A",
|
|
856
860
|
"fontFamily": "AreaInktrap-Semibold",
|
|
857
861
|
"fontSize": 31,
|
|
862
|
+
"fontStyle": "normal",
|
|
863
|
+
"fontWeight": "normal",
|
|
858
864
|
"letterSpacing": -1,
|
|
859
865
|
"lineHeight": 36,
|
|
866
|
+
},
|
|
867
|
+
{
|
|
860
868
|
"marginBottom": 4,
|
|
861
|
-
"paddingBottom": 0,
|
|
862
|
-
"paddingLeft": 0,
|
|
863
|
-
"paddingRight": 0,
|
|
864
|
-
"paddingTop": 0,
|
|
865
869
|
},
|
|
866
870
|
]
|
|
867
871
|
}
|
|
@@ -905,21 +909,26 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
905
909
|
testID="2875e66d-4e2a-47b1-a58b-61e316dcc66a"
|
|
906
910
|
>
|
|
907
911
|
<Text
|
|
908
|
-
allowFontScaling={false}
|
|
909
|
-
selectable={false}
|
|
910
912
|
style={
|
|
911
913
|
[
|
|
912
914
|
{
|
|
913
|
-
"color": "#
|
|
915
|
+
"color": "#0C0A0A",
|
|
914
916
|
"fontFamily": "AreaNormal-Semibold",
|
|
915
917
|
"fontSize": 15,
|
|
918
|
+
"fontStyle": "normal",
|
|
919
|
+
"fontWeight": "300",
|
|
916
920
|
"letterSpacing": -0.2,
|
|
917
|
-
"lineHeight":
|
|
918
|
-
"paddingBottom": 0,
|
|
919
|
-
"paddingLeft": 0,
|
|
920
|
-
"paddingRight": 0,
|
|
921
|
-
"paddingTop": 0,
|
|
921
|
+
"lineHeight": 20,
|
|
922
922
|
},
|
|
923
|
+
[
|
|
924
|
+
{
|
|
925
|
+
"lineHeight": 24,
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"color": "#837C7C",
|
|
929
|
+
},
|
|
930
|
+
undefined,
|
|
931
|
+
],
|
|
923
932
|
]
|
|
924
933
|
}
|
|
925
934
|
>
|
|
@@ -963,21 +972,24 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
963
972
|
testID="4016fcfc-a08e-4800-bc07-0d7dd59848fc"
|
|
964
973
|
>
|
|
965
974
|
<Text
|
|
966
|
-
allowFontScaling={false}
|
|
967
|
-
selectable={false}
|
|
968
975
|
style={
|
|
969
976
|
[
|
|
970
977
|
{
|
|
971
978
|
"color": "#0C0A0A",
|
|
972
979
|
"fontFamily": "AreaNormal-Semibold",
|
|
973
980
|
"fontSize": 15,
|
|
981
|
+
"fontStyle": "normal",
|
|
982
|
+
"fontWeight": "300",
|
|
974
983
|
"letterSpacing": -0.2,
|
|
975
|
-
"lineHeight":
|
|
976
|
-
"paddingBottom": 0,
|
|
977
|
-
"paddingLeft": 0,
|
|
978
|
-
"paddingRight": 0,
|
|
979
|
-
"paddingTop": 0,
|
|
984
|
+
"lineHeight": 20,
|
|
980
985
|
},
|
|
986
|
+
[
|
|
987
|
+
{
|
|
988
|
+
"lineHeight": 24,
|
|
989
|
+
},
|
|
990
|
+
false,
|
|
991
|
+
undefined,
|
|
992
|
+
],
|
|
981
993
|
]
|
|
982
994
|
}
|
|
983
995
|
>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { Text } from "@lookiero/aurora";
|
|
4
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
4
|
import { Country } from "@lookiero/sty-psp-locale";
|
|
5
|
+
import { Text } from "@lookiero/sty-psp-ui";
|
|
6
6
|
import { useScreenSize } from "@lookiero/sty-psp-ui";
|
|
7
7
|
import { PriceProjection } from "../../../../../../projection/price/price";
|
|
8
8
|
import { SizeProjection, size } from "../../../../../../projection/size/size";
|
|
@@ -36,16 +36,16 @@ const ProductVariantDescription: FC<ProductVariantDescriptionProps> = ({
|
|
|
36
36
|
<View style={[style.container, !isDesktopScreen && style.smallContainer]}>
|
|
37
37
|
<View style={style.info}>
|
|
38
38
|
<View style={style.content}>
|
|
39
|
-
<Text level={1} style={style.brand} detail>
|
|
39
|
+
<Text level={1} style={style.brand} variant="detail">
|
|
40
40
|
{brand}
|
|
41
41
|
</Text>
|
|
42
|
-
<Text level={1} detailBold>
|
|
42
|
+
<Text level={1} variant="detailBold">
|
|
43
43
|
{name}
|
|
44
44
|
</Text>
|
|
45
45
|
</View>
|
|
46
46
|
<Price price={price} withPercentage />
|
|
47
47
|
</View>
|
|
48
|
-
<Text level={1} detail>
|
|
48
|
+
<Text level={1} variant="detail">
|
|
49
49
|
{`${sizeText} ${sizeProjection.unique ? uniqueText : size({ size: sizeProjection, country })}`}
|
|
50
50
|
</Text>
|
|
51
51
|
</View>
|