@lookiero/checkout 11.2.0 → 11.3.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 (96) hide show
  1. package/dist/src/ExpoRoot.js +1 -1
  2. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +4 -3
  3. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +3 -0
  4. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +3 -0
  5. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +1 -1
  6. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.d.ts +1 -0
  7. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +2 -1
  8. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.js +5 -5
  9. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.js +5 -5
  10. package/dist/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.js +5 -5
  11. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +2 -1
  12. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +2 -3
  13. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.js +2 -2
  14. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.d.ts +3 -0
  15. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.js +4 -1
  16. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.js +2 -2
  17. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.d.ts +1 -0
  18. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.js +2 -1
  19. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.js +19 -3
  20. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.d.ts +21 -1
  21. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.js +22 -2
  22. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
  23. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +3 -2
  24. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +3 -2
  25. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +4 -3
  26. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +10 -9
  27. package/dist/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +4 -3
  28. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +4 -4
  29. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +2 -0
  30. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +2 -0
  31. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +4 -4
  32. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +5 -2
  33. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +6 -3
  34. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +2 -1
  35. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +2 -2
  36. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.d.ts +3 -0
  37. package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.js +4 -1
  38. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.js +7 -7
  39. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.d.ts +3 -0
  40. package/dist/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.js +4 -1
  41. package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +9 -6
  42. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +4 -4
  43. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.d.ts +3 -0
  44. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +4 -1
  45. package/dist/src/infrastructure/ui/views/summary/Summary.js +10 -9
  46. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +2 -1
  47. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +8 -5
  48. package/dist/src/version.d.ts +1 -1
  49. package/dist/src/version.js +1 -1
  50. package/package.json +1 -1
  51. package/src/ExpoRoot.tsx +2 -1
  52. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.ts +3 -0
  53. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.tsx +5 -3
  54. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.ts +2 -1
  55. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.tsx +1 -0
  56. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.tsx +5 -5
  57. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.tsx +5 -5
  58. package/src/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.tsx +5 -5
  59. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.tsx +2 -1
  60. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.tsx +2 -3
  61. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.style.ts +4 -1
  62. package/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/modal/HostStackReturnQuestionItem.tsx +2 -2
  63. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.style.ts +2 -1
  64. package/src/infrastructure/ui/components/organisms/returnQuestions/components/modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems.tsx +2 -2
  65. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.style.ts +33 -2
  66. package/src/infrastructure/ui/components/organisms/returnQuestions/components/radioReturnQuestionItem/RadioReturnQuestionItem.tsx +34 -13
  67. package/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.tsx +1 -1
  68. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +3 -2
  69. package/src/infrastructure/ui/components/templates/header/checkoutHeader/__snapshots__/CheckoutHeader.test.tsx.snap +31 -80
  70. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +3 -2
  71. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/__snapshots__/ItemDetailHeader.test.tsx.snap +31 -80
  72. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.tsx +4 -3
  73. package/src/infrastructure/ui/components/templates/header/itemHeader/__snapshots__/ItemHeader.test.tsx.snap +62 -160
  74. package/src/infrastructure/ui/views/checkout/Checkout.tsx +12 -11
  75. package/src/infrastructure/ui/views/checkout/components/deliveryBanner/DeliveryBanner.tsx +4 -3
  76. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.ts +2 -0
  77. package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +4 -4
  78. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.ts +6 -3
  79. package/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.tsx +4 -4
  80. package/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.tsx +2 -1
  81. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.ts +5 -1
  82. package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +2 -3
  83. package/src/infrastructure/ui/views/return/Return.test.tsx +2 -1
  84. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.style.ts +4 -1
  85. package/src/infrastructure/ui/views/return/components/productVariantPreview/ProductVariantPreview.tsx +7 -7
  86. package/src/infrastructure/ui/views/return/components/productVariantPreview/__snapshots__/ProductVariantPreview.test.tsx.snap +11 -12
  87. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.test.tsx +2 -0
  88. package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +10 -8
  89. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +6 -2
  90. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +4 -4
  91. package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +18 -0
  92. package/src/infrastructure/ui/views/summary/Summary.tsx +12 -11
  93. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +2 -1
  94. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +22 -6
  95. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +8 -5
  96. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +36 -0
@@ -2,11 +2,42 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "@lookiero/sty-psp-ui";
3
3
 
4
4
  const style = () => {
5
- const { space2 } = theme();
5
+ const {
6
+ borderWidth1,
7
+ borderWidth2,
8
+ borderRadius3,
9
+ colorBorderInteractive,
10
+ colorBorderInputFocus,
11
+ colorText,
12
+ space025,
13
+ space1,
14
+ space3,
15
+ space4,
16
+ } = theme();
6
17
 
7
18
  return StyleSheet.create({
19
+ text: {
20
+ color: colorText,
21
+ flex: 1,
22
+ marginLeft: space4,
23
+ },
8
24
  wrapper: {
9
- marginBottom: space2,
25
+ alignItems: "center",
26
+ flex: 1,
27
+ flexDirection: "row",
28
+ marginVertical: space3,
29
+ },
30
+ wrapperLookiero: {
31
+ borderColor: colorBorderInteractive,
32
+ borderRadius: borderRadius3,
33
+ borderWidth: borderWidth1,
34
+ marginVertical: space1,
35
+ padding: space4,
36
+ },
37
+ wrapperLookieroChecked: {
38
+ borderColor: colorBorderInputFocus,
39
+ borderWidth: borderWidth2,
40
+ padding: space4 - space025,
10
41
  },
11
42
  });
12
43
  };
@@ -1,8 +1,12 @@
1
1
  /* eslint-disable react/prop-types */
2
- import React, { useCallback, useEffect, useMemo, useState } from "react";
3
- import { View, Option, OPTION_VARIANT, SIZE } from "@lookiero/aurora";
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";
4
5
  import { useI18n } from "@lookiero/i18n-react";
6
+ import { Checkbox } from "@lookiero/sty-psp-ui";
7
+ import { Tradename } from "@lookiero/sty-sp-tradename";
5
8
  import { ReturnQuestionType } from "../../../../../../../projection/returnQuestion/returnQuestion.constants";
9
+ import { useStaticInfo } from "../../../../../hooks/useStaticInfo";
6
10
  import { DOMAIN } from "../../../../../i18n/i18n";
7
11
  import {
8
12
  useReturnQuestionFeedback,
@@ -16,12 +20,19 @@ import { ReturnQuestionItem } from "../ReturnQuestionItem";
16
20
  import { ModalOptionReturnQuestionItems } from "../modalOptionReturnQuestionItems/ModalOptionReturnQuestionItems";
17
21
  import { style as radioReturnQuestionItemStyle } from "./RadioReturnQuestionItem.style";
18
22
 
23
+ const TEXT: Record<Tradename, FC<TextProperties>> = {
24
+ [Tradename.LOOKIERO]: (props) => <AuroraText level={1} detail {...props} />,
25
+ [Tradename.OUTFITTERY]: (props) => <AuroraText level={3} {...props} />,
26
+ };
27
+
19
28
  const RadioReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.OPTION> = ({
20
29
  returnQuestion,
21
30
  returnQuestionParent,
22
31
  testID,
23
32
  portalHostName,
24
33
  }) => {
34
+ const { tradename } = useStaticInfo();
35
+
25
36
  const style = useMemo(() => radioReturnQuestionItemStyle(), []);
26
37
 
27
38
  const { formatMessage } = useI18n({ domain: DOMAIN });
@@ -74,19 +85,29 @@ const RadioReturnQuestionItem: ReturnQuestionItem<ReturnQuestionType.OPTION> = (
74
85
  * This logic is for closing the Modal when its children has been answered.
75
86
  */
76
87
 
88
+ const checked = returnQuestion.id === feedbackId;
89
+
90
+ const Text = useMemo(() => TEXT[tradename], [tradename]);
91
+
77
92
  return (
78
93
  <>
79
- <View style={style.wrapper} testID={testID}>
80
- <Option
81
- checked={returnQuestion.id === feedbackId}
82
- flex={SIZE.XS}
83
- name={returnQuestion.id}
84
- title={inputValue ? `${optionText} / ${inputValue}` : `${optionText}`}
85
- value={returnQuestion.id}
86
- variant={OPTION_VARIANT.BUTTON}
87
- onChange={handleOnPress}
88
- />
89
- </View>
94
+ <Pressable
95
+ accessibilityLabel="radio-return-question-item"
96
+ accessibilityState={{ checked }}
97
+ testID={testID}
98
+ style={[
99
+ style.wrapper,
100
+ tradename === Tradename.LOOKIERO && style.wrapperLookiero,
101
+ tradename === Tradename.LOOKIERO && checked && style.wrapperLookieroChecked,
102
+ ]}
103
+ accessible
104
+ onPress={handleOnPress}
105
+ >
106
+ <Checkbox checked={checked} />
107
+
108
+ <Text style={style.text}>{inputValue ? `${optionText} / ${inputValue}` : `${optionText}`}</Text>
109
+ </Pressable>
110
+
90
111
  {hasChildren ? (
91
112
  <ModalOptionReturnQuestionItems
92
113
  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 "@lookiero/aurora";
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 { ButtonIcon, Text } from "@lookiero/aurora";
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
- "_container": {
88
- "overflow": "hidden",
89
- },
90
- "_pressed": {
91
- "bottom": 0,
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
- <View
92
+ <Text
93
+ accessibilityElementsHidden={true}
94
+ allowFontScaling={false}
95
+ importantForAccessibility="no"
96
+ selectable={false}
120
97
  style={
121
98
  [
122
99
  {
123
- "position": "relative",
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
- <Text
129
- accessibilityElementsHidden={true}
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}
@@ -1,6 +1,7 @@
1
1
  import React, { FC, useMemo } from "react";
2
- import { ButtonIcon, Text } from "@lookiero/aurora";
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
- "_container": {
118
- "overflow": "hidden",
119
- },
120
- "_pressed": {
121
- "bottom": 0,
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
- <View
122
+ <Text
123
+ accessibilityElementsHidden={true}
124
+ allowFontScaling={false}
125
+ importantForAccessibility="no"
126
+ selectable={false}
150
127
  style={
151
128
  [
152
129
  {
153
- "position": "relative",
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
- <Text
159
- accessibilityElementsHidden={true}
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 { ButtonIcon, Text } from "@lookiero/aurora";
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
  />