@lookiero/checkout 11.2.0 → 11.3.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/src/ExpoRoot.js +1 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +4 -3
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +3 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +3 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +1 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +2 -1
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.js +5 -5
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.js +5 -5
- package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.js +5 -5
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +2 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +2 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +2 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.d.ts +3 -0
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.js +4 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +2 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.js +2 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +7 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.d.ts +9 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.js +10 -2
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +3 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +3 -2
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +4 -3
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +10 -9
- package/dist/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +4 -3
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +4 -4
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +2 -0
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +2 -0
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +4 -4
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +5 -2
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +6 -3
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +2 -1
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +2 -2
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.d.ts +3 -0
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.js +4 -1
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +7 -7
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.d.ts +3 -0
- package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.js +4 -1
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +9 -6
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +4 -4
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.d.ts +3 -0
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +4 -1
- package/dist/src/infrastructure/ui/views/summary/Summary.js +10 -9
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +2 -1
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +8 -5
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
- package/src/ExpoRoot.tsx +2 -1
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +3 -0
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +5 -3
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.ts +2 -1
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.tsx +1 -0
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.tsx +5 -5
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.tsx +5 -5
- package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.tsx +5 -5
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +2 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +2 -3
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.ts +4 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.ts +2 -1
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +2 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.ts +10 -2
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +20 -12
- package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +1 -1
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +3 -2
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +31 -80
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +3 -2
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +31 -80
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +4 -3
- package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +62 -160
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +12 -11
- package/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.tsx +4 -3
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.ts +2 -0
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +4 -4
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +6 -3
- package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +4 -4
- package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +2 -1
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.ts +5 -1
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +2 -3
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.ts +4 -1
- package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +7 -7
- package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +11 -12
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +10 -8
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +6 -2
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +4 -4
- package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +18 -0
- package/src/infrastructure/ui/views/summary/Summary.tsx +12 -11
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +2 -1
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +22 -6
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +8 -5
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +36 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { Pressable } from "react-native";
|
|
4
|
+
import { Text } from "@lookiero/aurora";
|
|
4
5
|
import { useI18n } from "@lookiero/i18n-react";
|
|
6
|
+
import { Checkbox } from "@lookiero/sty-psp-ui";
|
|
5
7
|
import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
|
|
6
8
|
import { DOMAIN } from "../../../../../i18n/i18n";
|
|
7
9
|
import {
|
|
@@ -74,19 +76,25 @@ const RadioReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.OPTION> = (
|
|
|
74
76
|
* This logic is for closing the Modal when its children has been answered.
|
|
75
77
|
*/
|
|
76
78
|
|
|
79
|
+
const checked = returnQuestion.id === feedbackId;
|
|
80
|
+
|
|
77
81
|
return (
|
|
78
82
|
<>
|
|
79
|
-
<
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
<Pressable
|
|
84
|
+
accessibilityLabel="radio-return-question-item"
|
|
85
|
+
accessibilityState={{ checked }}
|
|
86
|
+
style={style.wrapper}
|
|
87
|
+
testID={testID}
|
|
88
|
+
accessible
|
|
89
|
+
onPress={handleOnPress}
|
|
90
|
+
>
|
|
91
|
+
<Checkbox checked={checked} />
|
|
92
|
+
|
|
93
|
+
<Text level={3} style={style.text}>
|
|
94
|
+
{inputValue ? `${optionText} / ${inputValue}` : `${optionText}`}
|
|
95
|
+
</Text>
|
|
96
|
+
</Pressable>
|
|
97
|
+
|
|
90
98
|
{hasChildren ? (
|
|
91
99
|
<ModalOptionReturnQuestionItems
|
|
92
100
|
portalHostName={portalHostName}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
2
|
import React, { useCallback, useMemo } from "react";
|
|
3
|
-
import { View } from "
|
|
3
|
+
import { View } from "react-native";
|
|
4
4
|
import { useI18n } from "@lookiero/i18n-react";
|
|
5
5
|
import { InputField, TextInput } from "@lookiero/sty-psp-ui";
|
|
6
6
|
import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { FC, useMemo } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Text } from "@lookiero/aurora";
|
|
3
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
4
|
+
import { ButtonIcon } from "@lookiero/sty-psp-ui";
|
|
4
5
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
5
6
|
import { Header } from "../Header";
|
|
6
7
|
import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
|
|
@@ -17,7 +18,7 @@ const CheckoutHeader: FC<CheckoutHeaderProps> = ({ onBack }) => {
|
|
|
17
18
|
|
|
18
19
|
return (
|
|
19
20
|
<Header testID="checkout-header">
|
|
20
|
-
<ButtonIcon name="arrow_left" style={style.button} testID="arrow-left-button-icon" onPress={onBack} />
|
|
21
|
+
<ButtonIcon name="arrow_left" style={{ button: style.button }} testID="arrow-left-button-icon" onPress={onBack} />
|
|
21
22
|
<Text level={3} action>
|
|
22
23
|
{title}
|
|
23
24
|
</Text>
|
|
@@ -50,7 +50,6 @@ exports[`CheckoutHeader template matches the snapshot 1`] = `
|
|
|
50
50
|
testID="checkout-header"
|
|
51
51
|
>
|
|
52
52
|
<View
|
|
53
|
-
accessibilityRole="button"
|
|
54
53
|
accessibilityState={
|
|
55
54
|
{
|
|
56
55
|
"busy": undefined,
|
|
@@ -71,9 +70,7 @@ exports[`CheckoutHeader template matches the snapshot 1`] = `
|
|
|
71
70
|
accessible={true}
|
|
72
71
|
collapsable={false}
|
|
73
72
|
focusable={true}
|
|
74
|
-
onBlur={[Function]}
|
|
75
73
|
onClick={[Function]}
|
|
76
|
-
onFocus={[Function]}
|
|
77
74
|
onResponderGrant={[Function]}
|
|
78
75
|
onResponderMove={[Function]}
|
|
79
76
|
onResponderRelease={[Function]}
|
|
@@ -81,93 +78,47 @@ exports[`CheckoutHeader template matches the snapshot 1`] = `
|
|
|
81
78
|
onResponderTerminationRequest={[Function]}
|
|
82
79
|
onStartShouldSetResponder={[Function]}
|
|
83
80
|
style={
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"left": 0,
|
|
93
|
-
"right": 0,
|
|
94
|
-
"top": 0,
|
|
95
|
-
},
|
|
96
|
-
"alignSelf": "auto",
|
|
97
|
-
"container": {
|
|
98
|
-
"overflow": "hidden",
|
|
99
|
-
},
|
|
100
|
-
"height": 40,
|
|
101
|
-
"overflow": "visible",
|
|
102
|
-
"padding": 8,
|
|
103
|
-
"pressed": {
|
|
104
|
-
"bottom": 0,
|
|
105
|
-
"left": 0,
|
|
106
|
-
"right": 0,
|
|
107
|
-
"top": 0,
|
|
108
|
-
},
|
|
109
|
-
"width": 40,
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
{
|
|
113
|
-
"opacity": 1,
|
|
114
|
-
},
|
|
115
|
-
]
|
|
81
|
+
{
|
|
82
|
+
"alignSelf": "auto",
|
|
83
|
+
"flexGrow": 0,
|
|
84
|
+
"height": 40,
|
|
85
|
+
"opacity": 1,
|
|
86
|
+
"padding": 8,
|
|
87
|
+
"width": 40,
|
|
88
|
+
}
|
|
116
89
|
}
|
|
117
90
|
testID="arrow-left-button-icon"
|
|
118
91
|
>
|
|
119
|
-
<
|
|
92
|
+
<Text
|
|
93
|
+
accessibilityElementsHidden={true}
|
|
94
|
+
allowFontScaling={false}
|
|
95
|
+
importantForAccessibility="no"
|
|
96
|
+
selectable={false}
|
|
120
97
|
style={
|
|
121
98
|
[
|
|
122
99
|
{
|
|
123
|
-
"
|
|
100
|
+
"color": "#0C0A0A",
|
|
101
|
+
"fontFamily": "auroraicons",
|
|
102
|
+
"fontSize": 24,
|
|
103
|
+
"fontStyle": "normal",
|
|
104
|
+
"fontWeight": "normal",
|
|
105
|
+
"height": 24,
|
|
106
|
+
"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,
|
|
124
115
|
},
|
|
125
116
|
]
|
|
126
117
|
}
|
|
118
|
+
testID="icon"
|
|
127
119
|
>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
allowFontScaling={false}
|
|
131
|
-
importantForAccessibility="no"
|
|
132
|
-
selectable={false}
|
|
133
|
-
style={
|
|
134
|
-
[
|
|
135
|
-
{
|
|
136
|
-
"color": "#0C0A0A",
|
|
137
|
-
"fontFamily": "auroraicons",
|
|
138
|
-
"fontSize": 24,
|
|
139
|
-
"fontStyle": "normal",
|
|
140
|
-
"fontWeight": "normal",
|
|
141
|
-
"height": 24,
|
|
142
|
-
"width": 24,
|
|
143
|
-
},
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
>
|
|
147
|
-
|
|
148
|
-
</Text>
|
|
149
|
-
<View
|
|
150
|
-
collapsable={false}
|
|
151
|
-
style={
|
|
152
|
-
{
|
|
153
|
-
"backgroundColor": "#F45545",
|
|
154
|
-
"borderColor": "#FFFFFF",
|
|
155
|
-
"borderRadius": 9999,
|
|
156
|
-
"borderWidth": 2,
|
|
157
|
-
"height": 10,
|
|
158
|
-
"position": "absolute",
|
|
159
|
-
"right": 0,
|
|
160
|
-
"top": 0,
|
|
161
|
-
"transform": [
|
|
162
|
-
{
|
|
163
|
-
"scale": 0,
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
"width": 10,
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
/>
|
|
170
|
-
</View>
|
|
120
|
+
|
|
121
|
+
</Text>
|
|
171
122
|
</View>
|
|
172
123
|
<Text
|
|
173
124
|
allowFontScaling={false}
|
package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { FC, useMemo } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Text } from "@lookiero/aurora";
|
|
3
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
4
|
+
import { ButtonIcon } from "@lookiero/sty-psp-ui";
|
|
4
5
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
5
6
|
import { Header } from "../Header";
|
|
6
7
|
import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
|
|
@@ -20,7 +21,7 @@ const ItemDetailHeader: FC<ItemDetailHeaderProps> = ({ onBack }) => {
|
|
|
20
21
|
<Text level={3} action>
|
|
21
22
|
{title}
|
|
22
23
|
</Text>
|
|
23
|
-
<ButtonIcon name="close" style={style.button} testID="close-button-icon" onPress={onBack} />
|
|
24
|
+
<ButtonIcon name="close" style={{ button: style.button }} testID="close-button-icon" onPress={onBack} />
|
|
24
25
|
</Header>
|
|
25
26
|
);
|
|
26
27
|
};
|
|
@@ -80,7 +80,6 @@ exports[`ItemDetailHeader template matches the snapshot 1`] = `
|
|
|
80
80
|
header.checkout_title
|
|
81
81
|
</Text>
|
|
82
82
|
<View
|
|
83
|
-
accessibilityRole="button"
|
|
84
83
|
accessibilityState={
|
|
85
84
|
{
|
|
86
85
|
"busy": undefined,
|
|
@@ -101,9 +100,7 @@ exports[`ItemDetailHeader template matches the snapshot 1`] = `
|
|
|
101
100
|
accessible={true}
|
|
102
101
|
collapsable={false}
|
|
103
102
|
focusable={true}
|
|
104
|
-
onBlur={[Function]}
|
|
105
103
|
onClick={[Function]}
|
|
106
|
-
onFocus={[Function]}
|
|
107
104
|
onResponderGrant={[Function]}
|
|
108
105
|
onResponderMove={[Function]}
|
|
109
106
|
onResponderRelease={[Function]}
|
|
@@ -111,93 +108,47 @@ exports[`ItemDetailHeader template matches the snapshot 1`] = `
|
|
|
111
108
|
onResponderTerminationRequest={[Function]}
|
|
112
109
|
onStartShouldSetResponder={[Function]}
|
|
113
110
|
style={
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"left": 0,
|
|
123
|
-
"right": 0,
|
|
124
|
-
"top": 0,
|
|
125
|
-
},
|
|
126
|
-
"alignSelf": "auto",
|
|
127
|
-
"container": {
|
|
128
|
-
"overflow": "hidden",
|
|
129
|
-
},
|
|
130
|
-
"height": 40,
|
|
131
|
-
"overflow": "visible",
|
|
132
|
-
"padding": 8,
|
|
133
|
-
"pressed": {
|
|
134
|
-
"bottom": 0,
|
|
135
|
-
"left": 0,
|
|
136
|
-
"right": 0,
|
|
137
|
-
"top": 0,
|
|
138
|
-
},
|
|
139
|
-
"width": 40,
|
|
140
|
-
},
|
|
141
|
-
],
|
|
142
|
-
{
|
|
143
|
-
"opacity": 1,
|
|
144
|
-
},
|
|
145
|
-
]
|
|
111
|
+
{
|
|
112
|
+
"alignSelf": "auto",
|
|
113
|
+
"flexGrow": 0,
|
|
114
|
+
"height": 40,
|
|
115
|
+
"opacity": 1,
|
|
116
|
+
"padding": 8,
|
|
117
|
+
"width": 40,
|
|
118
|
+
}
|
|
146
119
|
}
|
|
147
120
|
testID="close-button-icon"
|
|
148
121
|
>
|
|
149
|
-
<
|
|
122
|
+
<Text
|
|
123
|
+
accessibilityElementsHidden={true}
|
|
124
|
+
allowFontScaling={false}
|
|
125
|
+
importantForAccessibility="no"
|
|
126
|
+
selectable={false}
|
|
150
127
|
style={
|
|
151
128
|
[
|
|
152
129
|
{
|
|
153
|
-
"
|
|
130
|
+
"color": "#0C0A0A",
|
|
131
|
+
"fontFamily": "auroraicons",
|
|
132
|
+
"fontSize": 24,
|
|
133
|
+
"fontStyle": "normal",
|
|
134
|
+
"fontWeight": "normal",
|
|
135
|
+
"height": 24,
|
|
136
|
+
"letterSpacing": -0.2,
|
|
137
|
+
"lineHeight": 24,
|
|
138
|
+
"minHeight": 24,
|
|
139
|
+
"minWidth": 24,
|
|
140
|
+
"paddingBottom": 0,
|
|
141
|
+
"paddingLeft": 0,
|
|
142
|
+
"paddingRight": 0,
|
|
143
|
+
"paddingTop": 0,
|
|
144
|
+
"width": 24,
|
|
154
145
|
},
|
|
155
146
|
]
|
|
156
147
|
}
|
|
148
|
+
testID="icon"
|
|
157
149
|
>
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
allowFontScaling={false}
|
|
161
|
-
importantForAccessibility="no"
|
|
162
|
-
selectable={false}
|
|
163
|
-
style={
|
|
164
|
-
[
|
|
165
|
-
{
|
|
166
|
-
"color": "#0C0A0A",
|
|
167
|
-
"fontFamily": "auroraicons",
|
|
168
|
-
"fontSize": 24,
|
|
169
|
-
"fontStyle": "normal",
|
|
170
|
-
"fontWeight": "normal",
|
|
171
|
-
"height": 24,
|
|
172
|
-
"width": 24,
|
|
173
|
-
},
|
|
174
|
-
]
|
|
175
|
-
}
|
|
176
|
-
>
|
|
177
|
-
|
|
178
|
-
</Text>
|
|
179
|
-
<View
|
|
180
|
-
collapsable={false}
|
|
181
|
-
style={
|
|
182
|
-
{
|
|
183
|
-
"backgroundColor": "#F45545",
|
|
184
|
-
"borderColor": "#FFFFFF",
|
|
185
|
-
"borderRadius": 9999,
|
|
186
|
-
"borderWidth": 2,
|
|
187
|
-
"height": 10,
|
|
188
|
-
"position": "absolute",
|
|
189
|
-
"right": 0,
|
|
190
|
-
"top": 0,
|
|
191
|
-
"transform": [
|
|
192
|
-
{
|
|
193
|
-
"scale": 0,
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
"width": 10,
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
/>
|
|
200
|
-
</View>
|
|
150
|
+
|
|
151
|
+
</Text>
|
|
201
152
|
</View>
|
|
202
153
|
</View>
|
|
203
154
|
</View>
|
|
@@ -1,8 +1,9 @@
|
|
|
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 {
|
|
4
|
+
import { Text } from "@lookiero/aurora";
|
|
5
5
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
6
|
+
import { ButtonIcon } from "@lookiero/sty-psp-ui";
|
|
6
7
|
import { CheckoutItemProjection } from "../../../../../../projection/checkoutItem/checkoutItem";
|
|
7
8
|
import { useStaticInfo } from "../../../../hooks/useStaticInfo";
|
|
8
9
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
@@ -65,7 +66,7 @@ const ItemHeader: FC<ItemHeaderProps> = ({ items, item, onNext, onPrevious }) =>
|
|
|
65
66
|
{!isFirstItem ? (
|
|
66
67
|
<ButtonIcon
|
|
67
68
|
name="arrow_left"
|
|
68
|
-
style={style.button}
|
|
69
|
+
style={{ button: style.button }}
|
|
69
70
|
testID="arrow-left-button-icon"
|
|
70
71
|
onPress={navigateToPreviousItem}
|
|
71
72
|
/>
|
|
@@ -78,7 +79,7 @@ const ItemHeader: FC<ItemHeaderProps> = ({ items, item, onNext, onPrevious }) =>
|
|
|
78
79
|
{!isLastItem ? (
|
|
79
80
|
<ButtonIcon
|
|
80
81
|
name="arrow_right"
|
|
81
|
-
style={style.button}
|
|
82
|
+
style={{ button: style.button }}
|
|
82
83
|
testID="arrow-right-button-icon"
|
|
83
84
|
onPress={navigateToNextItem}
|
|
84
85
|
/>
|