@akinon/projectzero 2.0.0-beta.20 → 2.0.0-beta.22
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/CHANGELOG.md +14 -0
- package/app-template/CHANGELOG.md +170 -0
- package/app-template/next.config.mjs +0 -1
- package/app-template/package.json +31 -30
- package/app-template/src/app/[pz]/[...prettyurl]/page.tsx +2 -2
- package/app-template/src/app/[pz]/account/layout.tsx +2 -1
- package/app-template/src/app/{[commerce]/[locale]/[currency] → [pz]}/blog/[slug]/page.tsx +4 -2
- package/app-template/src/app/[pz]/category/[pk]/page.tsx +11 -1
- package/app-template/src/app/[pz]/group-product/[pk]/page.tsx +2 -2
- package/app-template/src/app/[pz]/layout.tsx +3 -1
- package/app-template/src/app/[pz]/list/page.tsx +11 -1
- package/app-template/src/app/[pz]/page.tsx +13 -35
- package/app-template/src/app/[pz]/pages/[slug]/page.tsx +19 -0
- package/app-template/src/app/[pz]/product/[pk]/page.tsx +2 -2
- package/app-template/src/app/api/barcode-search/route.ts +1 -1
- package/app-template/src/app/api/cache/route.ts +1 -1
- package/app-template/src/app/api/image-proxy/route.ts +1 -1
- package/app-template/src/app/api/logout/route.ts +1 -1
- package/app-template/src/app/api/product-categories/route.ts +1 -1
- package/app-template/src/app/api/similar-product-list/route.ts +1 -1
- package/app-template/src/app/api/similar-products/route.ts +1 -1
- package/app-template/src/app/api/virtual-try-on/route.ts +1 -1
- package/app-template/src/app/api/web-vitals/route.ts +1 -1
- package/app-template/src/components/quantity-selector.tsx +16 -4
- package/app-template/src/components/widget-content.tsx +3 -3
- package/app-template/src/routes/index.ts +6 -6
- package/app-template/src/utils/__tests__/theme-page-context.test.ts +145 -0
- package/app-template/src/utils/theme-page-context.ts +309 -0
- package/app-template/src/views/basket/basket-item.tsx +107 -691
- package/app-template/src/views/basket/index.ts +0 -2
- package/app-template/src/views/basket/summary.tsx +75 -496
- package/app-template/src/views/breadcrumb.tsx +38 -13
- package/app-template/src/views/category/category-header.tsx +66 -289
- package/app-template/src/views/category/category-info.tsx +24 -173
- package/app-template/src/views/category/filters/index.tsx +48 -208
- package/app-template/src/views/category/layout.tsx +5 -7
- package/app-template/src/views/checkout/index.tsx +0 -5
- package/app-template/src/views/checkout/steps/payment/index.tsx +2 -5
- package/app-template/src/views/checkout/steps/payment/options/credit-card/index.tsx +1 -72
- package/app-template/src/views/checkout/steps/payment/payment-option-buttons.tsx +40 -171
- package/app-template/src/views/checkout/steps/shipping/address-box.tsx +12 -74
- package/app-template/src/views/checkout/steps/shipping/addresses.tsx +45 -128
- package/app-template/src/views/checkout/steps/shipping/shipping-options.tsx +27 -232
- package/app-template/src/views/checkout/summary.tsx +29 -303
- package/app-template/src/views/footer.tsx +13 -415
- package/app-template/src/views/guest-login/index.tsx +1 -1
- package/app-template/src/views/header/action-menu.tsx +45 -277
- package/app-template/src/views/header/band.tsx +21 -6
- package/app-template/src/views/header/index.tsx +47 -109
- package/app-template/src/views/header/mini-basket.tsx +45 -820
- package/app-template/src/views/header/navbar.tsx +111 -178
- package/app-template/src/views/header/search/index.tsx +32 -71
- package/app-template/src/views/header/search/results.tsx +65 -127
- package/app-template/src/views/product/accordion-wrapper.tsx +43 -135
- package/app-template/src/views/product/index.ts +1 -1
- package/app-template/src/views/product/layout.tsx +7 -2
- package/app-template/src/views/product/misc-buttons.tsx +25 -339
- package/app-template/src/views/product/product-actions.tsx +8 -137
- package/app-template/src/views/product/product-info.tsx +31 -69
- package/app-template/src/views/product/product-share.tsx +8 -11
- package/app-template/src/views/product/slider.tsx +79 -117
- package/app-template/src/views/product-item/index.tsx +46 -119
- package/app-template/src/widgets/footer-social.tsx +16 -47
- package/app-template/src/widgets/footer-subscription/index.tsx +17 -183
- package/codemods/migrate-auth-v5/index.js +339 -0
- package/codemods/migrate-auth-v5/transform.js +86 -0
- package/dist/commands/plugins.js +23 -2
- package/package.json +1 -1
- package/app-template/src/app/[commerce]/[locale]/[currency]/pages/[slug]/page.tsx +0 -15
- package/app-template/src/views/basket/basket-summary-context.tsx +0 -560
- package/app-template/src/views/basket/designer-context.tsx +0 -617
- package/app-template/src/views/breadcrumb/breadcrumb-client.tsx +0 -190
- package/app-template/src/views/breadcrumb/breadcrumb-registrar.tsx +0 -286
- package/app-template/src/views/breadcrumb/constants.ts +0 -15
- package/app-template/src/views/breadcrumb/index.tsx +0 -127
- package/app-template/src/views/category/native-widget-context.tsx +0 -257
- package/app-template/src/views/category/product-list-registrar.tsx +0 -665
- package/app-template/src/views/checkout/checkout-address-registrar.tsx +0 -254
- package/app-template/src/views/checkout/checkout-buttons-registrar.tsx +0 -183
- package/app-template/src/views/checkout/checkout-delivery-method-registrar.tsx +0 -259
- package/app-template/src/views/checkout/checkout-payment-options-registrar.tsx +0 -253
- package/app-template/src/views/checkout/checkout-summary-registrar.tsx +0 -183
- package/app-template/src/views/checkout/constants.ts +0 -5
- package/app-template/src/views/checkout/steps/payment/options/masterpass-rest.tsx +0 -15
- package/app-template/src/views/checkout/steps/payment/options/saved-card.tsx +0 -18
- package/app-template/src/views/footer/footer-app-banner-context.tsx +0 -326
- package/app-template/src/views/footer/footer-bottom-context.tsx +0 -215
- package/app-template/src/views/footer/footer-bottom-wrapper.tsx +0 -74
- package/app-template/src/views/footer/footer-layout-constants.ts +0 -35
- package/app-template/src/views/footer/footer-layout-registrar.tsx +0 -342
- package/app-template/src/views/footer/footer-layout-switcher.tsx +0 -110
- package/app-template/src/views/footer/footer-menu-context.tsx +0 -211
- package/app-template/src/views/footer/footer-native-widgets.tsx +0 -60
- package/app-template/src/views/footer/footer-social-context.tsx +0 -254
- package/app-template/src/views/footer/footer-subscription-context.tsx +0 -210
- package/app-template/src/views/footer/footer-utils.ts +0 -43
- package/app-template/src/views/footer/footer-value-props-context.tsx +0 -326
- package/app-template/src/views/footer/logo-settings.ts +0 -183
- package/app-template/src/views/footer/native-widget-config.ts +0 -262
- package/app-template/src/views/footer/subscription-settings.ts +0 -122
- package/app-template/src/views/footer/use-footer-logo.ts +0 -162
- package/app-template/src/views/header/designer-context.tsx +0 -261
- package/app-template/src/views/header/header-announcement-registrar.tsx +0 -267
- package/app-template/src/views/header/header-client-wrapper.tsx +0 -496
- package/app-template/src/views/header/header-content.tsx +0 -1026
- package/app-template/src/views/header/header-currency-registrar.tsx +0 -348
- package/app-template/src/views/header/header-icons-context.tsx +0 -262
- package/app-template/src/views/header/header-language-registrar.tsx +0 -348
- package/app-template/src/views/header/header-layout-context.tsx +0 -143
- package/app-template/src/views/header/header-layout-registrar.tsx +0 -658
- package/app-template/src/views/header/header-logo-context.tsx +0 -228
- package/app-template/src/views/header/header-logo.tsx +0 -118
- package/app-template/src/views/header/header-mini-basket-context.tsx +0 -524
- package/app-template/src/views/header/header-search-registrar.tsx +0 -511
- package/app-template/src/views/header/header-text-slider-registrar.tsx +0 -382
- package/app-template/src/views/header/inline-search.tsx +0 -262
- package/app-template/src/views/header/navbar-menu-context.tsx +0 -219
- package/app-template/src/views/header/search/search-input.tsx +0 -61
- package/app-template/src/views/header/server-settings-parser.ts +0 -1105
- package/app-template/src/views/header/use-header-icons.ts +0 -241
- package/app-template/src/views/header/use-header-logo.ts +0 -213
- package/app-template/src/views/header/use-navbar-menu.ts +0 -179
- package/app-template/src/views/product/accordion-section.tsx +0 -61
- package/app-template/src/views/product/custom-button-group.tsx +0 -69
- package/app-template/src/views/product/favorites-button-section.tsx +0 -69
- package/app-template/src/views/product/find-in-store-section.tsx +0 -60
- package/app-template/src/views/product/product-info-section.tsx +0 -140
- package/app-template/src/views/product/quantity-section.tsx +0 -73
- package/app-template/src/views/product/sale-tag.tsx +0 -10
- package/app-template/src/views/product/share-section.tsx +0 -357
- package/app-template/src/views/product/variants-section.tsx +0 -126
- package/app-template/src/views/product-detail/constants.ts +0 -272
- package/app-template/src/views/product-detail/index.ts +0 -10
- package/app-template/src/views/product-detail/product-detail-registrar.tsx +0 -616
- package/app-template/src/widgets/footer-app-banner.tsx +0 -444
- package/app-template/src/widgets/footer-bottom.tsx +0 -127
- package/app-template/src/widgets/footer-menu-compact.tsx +0 -238
- package/app-template/src/widgets/footer-menu-two.tsx +0 -298
- package/app-template/src/widgets/footer-social-client.tsx +0 -251
- package/app-template/src/widgets/footer-value-props.tsx +0 -201
|
@@ -9,23 +9,9 @@ import { twMerge } from 'tailwind-merge';
|
|
|
9
9
|
import { Image } from '@akinon/next/components/image';
|
|
10
10
|
import { Trans } from '@akinon/next/components/trans';
|
|
11
11
|
import { StoreCredits } from './steps/payment/options/store-credit';
|
|
12
|
-
import { useCheckoutSummary } from './checkout-summary-registrar';
|
|
13
12
|
|
|
14
13
|
export const Summary = () => {
|
|
15
14
|
const { t } = useLocalization();
|
|
16
|
-
const { sectionStyles } = useCheckoutSummary();
|
|
17
|
-
|
|
18
|
-
// Helper to get style value (already includes unit if needed)
|
|
19
|
-
const getStyleValue = (
|
|
20
|
-
key: string,
|
|
21
|
-
fallback: string | number = ''
|
|
22
|
-
): string | number => {
|
|
23
|
-
const value = sectionStyles[key];
|
|
24
|
-
if (value === undefined || value === null || value === '') {
|
|
25
|
-
return fallback;
|
|
26
|
-
}
|
|
27
|
-
return value;
|
|
28
|
-
};
|
|
29
15
|
|
|
30
16
|
const currentStep = useAppSelector(
|
|
31
17
|
(state: RootState) => state.checkout.steps.current
|
|
@@ -54,56 +40,12 @@ export const Summary = () => {
|
|
|
54
40
|
}}
|
|
55
41
|
/>
|
|
56
42
|
<StoreCredits />
|
|
57
|
-
<div
|
|
58
|
-
className="flex flex-
|
|
59
|
-
|
|
60
|
-
borderWidth: getStyleValue('container-border-width', 1),
|
|
61
|
-
borderStyle: 'solid',
|
|
62
|
-
borderColor: getStyleValue(
|
|
63
|
-
'container-border-color',
|
|
64
|
-
'#d1d5db'
|
|
65
|
-
) as string,
|
|
66
|
-
borderRadius: getStyleValue('container-border-radius', 0),
|
|
67
|
-
backgroundColor: getStyleValue(
|
|
68
|
-
'container-background-color',
|
|
69
|
-
'#ffffff'
|
|
70
|
-
) as string
|
|
71
|
-
}}
|
|
72
|
-
>
|
|
73
|
-
<div
|
|
74
|
-
className="flex justify-between items-center flex-row"
|
|
75
|
-
style={{
|
|
76
|
-
paddingLeft: getStyleValue('header-padding-x', 20),
|
|
77
|
-
paddingRight: getStyleValue('header-padding-x', 20),
|
|
78
|
-
paddingTop: getStyleValue('header-padding-y', 16),
|
|
79
|
-
paddingBottom: getStyleValue('header-padding-y', 16),
|
|
80
|
-
borderBottomWidth: getStyleValue('header-border-bottom-width', 1),
|
|
81
|
-
borderBottomStyle: 'solid',
|
|
82
|
-
borderBottomColor: getStyleValue(
|
|
83
|
-
'header-border-bottom-color',
|
|
84
|
-
'#d1d5db'
|
|
85
|
-
) as string,
|
|
86
|
-
backgroundColor: getStyleValue(
|
|
87
|
-
'header-background-color',
|
|
88
|
-
'#ffffff'
|
|
89
|
-
) as string
|
|
90
|
-
}}
|
|
91
|
-
>
|
|
92
|
-
<span
|
|
93
|
-
style={{
|
|
94
|
-
fontSize: getStyleValue('title-font-size', 20),
|
|
95
|
-
fontWeight: getStyleValue('title-font-weight', '300'),
|
|
96
|
-
color: getStyleValue('title-color', '#1f2937') as string
|
|
97
|
-
}}
|
|
98
|
-
>
|
|
43
|
+
<div className="flex flex-col w-full border border-solid border-gray-400">
|
|
44
|
+
<div className="flex justify-between items-center flex-row border-b border-solid border-gray-400 px-4 py-2 sm:px-5 sm:py-4 sm:min-h-15">
|
|
45
|
+
<span className="text-black-800 text-xl font-light sm:text-2xl">
|
|
99
46
|
{t('checkout.summary.title')}
|
|
100
47
|
</span>
|
|
101
|
-
<span
|
|
102
|
-
style={{
|
|
103
|
-
fontSize: getStyleValue('item-count-font-size', 12),
|
|
104
|
-
color: getStyleValue('item-count-color', '#111827') as string
|
|
105
|
-
}}
|
|
106
|
-
>
|
|
48
|
+
<span className="text-gray-950 text-xs">
|
|
107
49
|
{preOrder.basket.basketitem_set.length}{' '}
|
|
108
50
|
{t('checkout.summary.items').toUpperCase()}
|
|
109
51
|
</span>
|
|
@@ -112,19 +54,7 @@ export const Summary = () => {
|
|
|
112
54
|
{preOrder.basket.basketitem_set.map((item, index) => (
|
|
113
55
|
<div
|
|
114
56
|
key={`summary-basketitem-${index}`}
|
|
115
|
-
className="flex flex-row last:border-b-0"
|
|
116
|
-
style={{
|
|
117
|
-
paddingLeft: getStyleValue('item-padding-x', 20),
|
|
118
|
-
paddingRight: getStyleValue('item-padding-x', 20),
|
|
119
|
-
paddingTop: getStyleValue('item-padding-y', 12),
|
|
120
|
-
paddingBottom: getStyleValue('item-padding-y', 12),
|
|
121
|
-
borderBottomWidth: getStyleValue('item-border-bottom-width', 1),
|
|
122
|
-
borderBottomStyle: 'solid',
|
|
123
|
-
borderBottomColor: getStyleValue(
|
|
124
|
-
'item-border-bottom-color',
|
|
125
|
-
'#d1d5db'
|
|
126
|
-
) as string
|
|
127
|
-
}}
|
|
57
|
+
className="flex flex-row border-b border-solid border-gray-400 py-3 px-4 last:border-b-0 sm:px-5"
|
|
128
58
|
>
|
|
129
59
|
<Link
|
|
130
60
|
href={'#'}
|
|
@@ -146,33 +76,14 @@ export const Summary = () => {
|
|
|
146
76
|
<Link
|
|
147
77
|
href={item.product.absolute_url}
|
|
148
78
|
className={twMerge(
|
|
149
|
-
'transition-all mb-1 hover:text-secondary',
|
|
79
|
+
'text-xs text-black-800 transition-all mb-1 hover:text-secondary',
|
|
150
80
|
isMobileApp && 'pointer-events-none'
|
|
151
81
|
)}
|
|
152
|
-
style={{
|
|
153
|
-
fontSize: getStyleValue('product-name-font-size', 12),
|
|
154
|
-
color: getStyleValue(
|
|
155
|
-
'product-name-color',
|
|
156
|
-
'#1f2937'
|
|
157
|
-
) as string
|
|
158
|
-
}}
|
|
159
82
|
>
|
|
160
83
|
{item.product.name}
|
|
161
84
|
</Link>
|
|
162
85
|
<div className="flex flex-col">
|
|
163
|
-
<div
|
|
164
|
-
className="flex"
|
|
165
|
-
style={{
|
|
166
|
-
fontSize: getStyleValue(
|
|
167
|
-
'product-quantity-font-size',
|
|
168
|
-
12
|
|
169
|
-
),
|
|
170
|
-
color: getStyleValue(
|
|
171
|
-
'product-quantity-color',
|
|
172
|
-
'#1f2937'
|
|
173
|
-
) as string
|
|
174
|
-
}}
|
|
175
|
-
>
|
|
86
|
+
<div className="flex text-xs text-black-800">
|
|
176
87
|
<span>{t('checkout.summary.quantity')}:</span>
|
|
177
88
|
<span className="ml-1 min-w-max">{item.quantity}</span>
|
|
178
89
|
</div>
|
|
@@ -180,32 +91,11 @@ export const Summary = () => {
|
|
|
180
91
|
</div>
|
|
181
92
|
<div className="flex items-end justify-center flex-col w-1/2">
|
|
182
93
|
{item.product.retail_price !== item.product.price && (
|
|
183
|
-
<div
|
|
184
|
-
className="line-through min-w-max"
|
|
185
|
-
style={{
|
|
186
|
-
fontSize: getStyleValue(
|
|
187
|
-
'product-old-price-font-size',
|
|
188
|
-
12
|
|
189
|
-
),
|
|
190
|
-
color: getStyleValue(
|
|
191
|
-
'product-old-price-color',
|
|
192
|
-
'#1f2937'
|
|
193
|
-
) as string
|
|
194
|
-
}}
|
|
195
|
-
>
|
|
94
|
+
<div className="text-xs text-black-800 line-through min-w-max sm:text-sm">
|
|
196
95
|
<Price value={item.product.retail_price} />
|
|
197
96
|
</div>
|
|
198
97
|
)}
|
|
199
|
-
<div
|
|
200
|
-
className="min-w-max"
|
|
201
|
-
style={{
|
|
202
|
-
fontSize: getStyleValue('product-price-font-size', 14),
|
|
203
|
-
color: getStyleValue(
|
|
204
|
-
'product-price-color',
|
|
205
|
-
'#ef4444'
|
|
206
|
-
) as string
|
|
207
|
-
}}
|
|
208
|
-
>
|
|
98
|
+
<div className="text-xs text-secondary min-w-max sm:text-sm">
|
|
209
99
|
<Price value={item.product.price} />
|
|
210
100
|
</div>
|
|
211
101
|
</div>
|
|
@@ -214,225 +104,61 @@ export const Summary = () => {
|
|
|
214
104
|
))}
|
|
215
105
|
</div>
|
|
216
106
|
<div className="pt-3">
|
|
217
|
-
<div
|
|
218
|
-
|
|
219
|
-
style={{
|
|
220
|
-
paddingLeft: getStyleValue('price-row-padding-x', 20),
|
|
221
|
-
paddingRight: getStyleValue('price-row-padding-x', 20),
|
|
222
|
-
paddingTop: getStyleValue('price-row-padding-y', 4),
|
|
223
|
-
paddingBottom: getStyleValue('price-row-padding-y', 4)
|
|
224
|
-
}}
|
|
225
|
-
>
|
|
226
|
-
<span
|
|
227
|
-
style={{
|
|
228
|
-
fontSize: getStyleValue('price-label-font-size', 12),
|
|
229
|
-
color: getStyleValue('price-label-color', '#1f2937') as string
|
|
230
|
-
}}
|
|
231
|
-
>
|
|
107
|
+
<div className="flex items-center justify-between w-full text-xs text-black-800 py-1 px-4 sm:px-5">
|
|
108
|
+
<span>
|
|
232
109
|
{t('checkout.summary.subtotal')} (
|
|
233
110
|
{preOrder.basket.basketitem_set.length}{' '}
|
|
234
111
|
{t('checkout.summary.items')})
|
|
235
112
|
</span>
|
|
236
|
-
<span
|
|
237
|
-
style={{
|
|
238
|
-
fontSize: getStyleValue('price-value-font-size', 12),
|
|
239
|
-
color: getStyleValue('price-value-color', '#1f2937') as string
|
|
240
|
-
}}
|
|
241
|
-
>
|
|
113
|
+
<span>
|
|
242
114
|
<Price value={preOrder?.basket?.total_amount} />
|
|
243
115
|
</span>
|
|
244
116
|
</div>
|
|
245
|
-
<div
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
paddingLeft: getStyleValue('price-row-padding-x', 20),
|
|
249
|
-
paddingRight: getStyleValue('price-row-padding-x', 20),
|
|
250
|
-
paddingTop: getStyleValue('price-row-padding-y', 4),
|
|
251
|
-
paddingBottom: getStyleValue('price-row-padding-y', 4)
|
|
252
|
-
}}
|
|
253
|
-
>
|
|
254
|
-
<span
|
|
255
|
-
style={{
|
|
256
|
-
fontSize: getStyleValue('price-label-font-size', 12),
|
|
257
|
-
color: getStyleValue('price-label-color', '#1f2937') as string
|
|
258
|
-
}}
|
|
259
|
-
>
|
|
260
|
-
{t('checkout.summary.shipping')}
|
|
261
|
-
</span>
|
|
262
|
-
<span
|
|
263
|
-
style={{
|
|
264
|
-
fontSize: getStyleValue('price-value-font-size', 12),
|
|
265
|
-
color: getStyleValue('price-value-color', '#1f2937') as string
|
|
266
|
-
}}
|
|
267
|
-
>
|
|
117
|
+
<div className="flex items-center justify-between w-full text-xs text-black-800 py-1 px-4 sm:px-5">
|
|
118
|
+
<span>{t('checkout.summary.shipping')}</span>
|
|
119
|
+
<span>
|
|
268
120
|
<Price value={preOrder?.shipping_amount} />
|
|
269
121
|
</span>
|
|
270
122
|
</div>
|
|
271
123
|
{parseFloat(preOrder?.loyalty_money) > 0 && (
|
|
272
|
-
<div
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
paddingLeft: getStyleValue('price-row-padding-x', 20),
|
|
276
|
-
paddingRight: getStyleValue('price-row-padding-x', 20),
|
|
277
|
-
paddingTop: getStyleValue('price-row-padding-y', 4),
|
|
278
|
-
paddingBottom: getStyleValue('price-row-padding-y', 4)
|
|
279
|
-
}}
|
|
280
|
-
>
|
|
281
|
-
<span
|
|
282
|
-
style={{
|
|
283
|
-
fontSize: getStyleValue('price-label-font-size', 12),
|
|
284
|
-
color: getStyleValue('price-label-color', '#1f2937') as string
|
|
285
|
-
}}
|
|
286
|
-
>
|
|
287
|
-
{t('checkout.summary.loyalty_money_total')}
|
|
288
|
-
</span>
|
|
289
|
-
<span
|
|
290
|
-
style={{
|
|
291
|
-
fontSize: getStyleValue('price-value-font-size', 12),
|
|
292
|
-
color: getStyleValue('price-value-color', '#1f2937') as string
|
|
293
|
-
}}
|
|
294
|
-
>
|
|
124
|
+
<div className="flex items-center justify-between w-full text-xs text-black-800 py-1 px-4 sm:px-5">
|
|
125
|
+
<span>{t('checkout.summary.loyalty_money_total')}</span>
|
|
126
|
+
<span>
|
|
295
127
|
<Price value={preOrder?.loyalty_money} />
|
|
296
128
|
</span>
|
|
297
129
|
</div>
|
|
298
130
|
)}
|
|
299
|
-
<div
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
paddingLeft: getStyleValue('price-row-padding-x', 20),
|
|
303
|
-
paddingRight: getStyleValue('price-row-padding-x', 20),
|
|
304
|
-
paddingTop: getStyleValue('price-row-padding-y', 4),
|
|
305
|
-
paddingBottom: getStyleValue('price-row-padding-y', 4)
|
|
306
|
-
}}
|
|
307
|
-
>
|
|
308
|
-
<span
|
|
309
|
-
style={{
|
|
310
|
-
fontSize: getStyleValue('price-label-font-size', 12),
|
|
311
|
-
color: getStyleValue('price-label-color', '#1f2937') as string
|
|
312
|
-
}}
|
|
313
|
-
>
|
|
314
|
-
{t('checkout.summary.discounts_total')}
|
|
315
|
-
</span>
|
|
316
|
-
<span
|
|
317
|
-
style={{
|
|
318
|
-
fontSize: getStyleValue('price-value-font-size', 12),
|
|
319
|
-
color: getStyleValue('price-value-color', '#1f2937') as string
|
|
320
|
-
}}
|
|
321
|
-
>
|
|
131
|
+
<div className="flex items-center justify-between w-full text-xs text-black-800 py-1 px-4 sm:px-5">
|
|
132
|
+
<span>{t('checkout.summary.discounts_total')}</span>
|
|
133
|
+
<span>
|
|
322
134
|
<Price
|
|
323
135
|
value={preOrder?.basket?.total_discount_amount}
|
|
324
136
|
useNegative
|
|
325
137
|
/>
|
|
326
138
|
</span>
|
|
327
139
|
</div>
|
|
328
|
-
<div
|
|
329
|
-
className="
|
|
330
|
-
|
|
331
|
-
paddingLeft: getStyleValue('total-padding-x', 20),
|
|
332
|
-
paddingRight: getStyleValue('total-padding-x', 20),
|
|
333
|
-
paddingTop: getStyleValue('total-padding-y', 12),
|
|
334
|
-
paddingBottom: getStyleValue('total-padding-y', 12),
|
|
335
|
-
borderTopWidth: getStyleValue('total-border-top-width', 1),
|
|
336
|
-
borderTopStyle: 'solid',
|
|
337
|
-
borderTopColor: getStyleValue(
|
|
338
|
-
'total-border-top-color',
|
|
339
|
-
'#d1d5db'
|
|
340
|
-
) as string,
|
|
341
|
-
backgroundColor: getStyleValue(
|
|
342
|
-
'total-background-color',
|
|
343
|
-
'#ffffff'
|
|
344
|
-
) as string
|
|
345
|
-
}}
|
|
346
|
-
>
|
|
347
|
-
<span
|
|
348
|
-
style={{
|
|
349
|
-
fontSize: getStyleValue('total-label-font-size', 18),
|
|
350
|
-
fontWeight: getStyleValue('total-label-font-weight', '300'),
|
|
351
|
-
color: getStyleValue('total-label-color', '#1f2937') as string
|
|
352
|
-
}}
|
|
353
|
-
>
|
|
354
|
-
{t('checkout.summary.total')}
|
|
355
|
-
</span>
|
|
356
|
-
<span
|
|
357
|
-
className="min-w-max pl-4"
|
|
358
|
-
style={{
|
|
359
|
-
fontSize: getStyleValue('total-value-font-size', 20),
|
|
360
|
-
color: getStyleValue('total-value-color', '#1f2937') as string
|
|
361
|
-
}}
|
|
362
|
-
>
|
|
140
|
+
<div className="flex items-center justify-between w-full text-black-800 px-4 sm:px-5 text-lg border-t border-solid border-gray-400 py-2 mt-3 sm:text-xl sm:py-3">
|
|
141
|
+
<span className="font-light">{t('checkout.summary.total')}</span>
|
|
142
|
+
<span className="min-w-max pl-4">
|
|
363
143
|
<Price value={preOrder?.unpaid_amount} />
|
|
364
144
|
</span>
|
|
365
145
|
</div>
|
|
366
146
|
</div>
|
|
367
147
|
</div>
|
|
368
148
|
{currentStep === CheckoutStep.Payment && (
|
|
369
|
-
<div
|
|
370
|
-
className="flex flex-
|
|
371
|
-
|
|
372
|
-
marginTop: getStyleValue('delivery-info-margin-top', 16),
|
|
373
|
-
borderWidth: getStyleValue('container-border-width', 1),
|
|
374
|
-
borderStyle: 'solid',
|
|
375
|
-
borderColor: getStyleValue(
|
|
376
|
-
'container-border-color',
|
|
377
|
-
'#d1d5db'
|
|
378
|
-
) as string,
|
|
379
|
-
borderRadius: getStyleValue('container-border-radius', 0),
|
|
380
|
-
backgroundColor: getStyleValue(
|
|
381
|
-
'container-background-color',
|
|
382
|
-
'#ffffff'
|
|
383
|
-
) as string
|
|
384
|
-
}}
|
|
385
|
-
>
|
|
386
|
-
<div
|
|
387
|
-
className="flex justify-between items-center flex-row"
|
|
388
|
-
style={{
|
|
389
|
-
paddingLeft: getStyleValue('header-padding-x', 20),
|
|
390
|
-
paddingRight: getStyleValue('header-padding-x', 20),
|
|
391
|
-
paddingTop: getStyleValue('header-padding-y', 16),
|
|
392
|
-
paddingBottom: getStyleValue('header-padding-y', 16),
|
|
393
|
-
borderBottomWidth: getStyleValue('header-border-bottom-width', 1),
|
|
394
|
-
borderBottomStyle: 'solid',
|
|
395
|
-
borderBottomColor: getStyleValue(
|
|
396
|
-
'header-border-bottom-color',
|
|
397
|
-
'#d1d5db'
|
|
398
|
-
) as string,
|
|
399
|
-
backgroundColor: getStyleValue(
|
|
400
|
-
'header-background-color',
|
|
401
|
-
'#ffffff'
|
|
402
|
-
) as string
|
|
403
|
-
}}
|
|
404
|
-
>
|
|
405
|
-
<div
|
|
406
|
-
style={{
|
|
407
|
-
fontSize: getStyleValue('title-font-size', 20),
|
|
408
|
-
fontWeight: getStyleValue('title-font-weight', '300'),
|
|
409
|
-
color: getStyleValue('title-color', '#1f2937') as string
|
|
410
|
-
}}
|
|
411
|
-
>
|
|
149
|
+
<div className="flex flex-col w-full border border-solid border-gray-400 mt-4">
|
|
150
|
+
<div className="flex justify-between items-center flex-row border-b border-solid border-gray-400 px-4 py-2 sm:px-5 sm:py-3 sm:min-h-15">
|
|
151
|
+
<div className="text-black-800 text-xl font-light sm:text-2xl">
|
|
412
152
|
{t('checkout.summary.delivery_info')}
|
|
413
153
|
</div>
|
|
414
154
|
<div
|
|
415
|
-
className="italic cursor-pointer underline transition-all hover:text-secondary"
|
|
155
|
+
className="text-xs text-black-800 italic cursor-pointer underline transition-all hover:text-secondary"
|
|
416
156
|
onClick={() => dispatch(setCurrentStep(CheckoutStep.Shipping))}
|
|
417
|
-
style={{
|
|
418
|
-
fontSize: getStyleValue('delivery-info-font-size', 12),
|
|
419
|
-
color: getStyleValue('delivery-info-color', '#1f2937') as string
|
|
420
|
-
}}
|
|
421
157
|
>
|
|
422
158
|
{t('checkout.summary.change')}
|
|
423
159
|
</div>
|
|
424
160
|
</div>
|
|
425
|
-
<div
|
|
426
|
-
className="flex flex-col"
|
|
427
|
-
style={{
|
|
428
|
-
paddingLeft: getStyleValue('delivery-info-padding-x', 20),
|
|
429
|
-
paddingRight: getStyleValue('delivery-info-padding-x', 20),
|
|
430
|
-
paddingTop: getStyleValue('delivery-info-padding-y', 16),
|
|
431
|
-
paddingBottom: getStyleValue('delivery-info-padding-y', 16),
|
|
432
|
-
fontSize: getStyleValue('delivery-info-font-size', 12),
|
|
433
|
-
color: getStyleValue('delivery-info-color', '#1f2937') as string
|
|
434
|
-
}}
|
|
435
|
-
>
|
|
161
|
+
<div className="flex flex-col py-4 px-4 text-black-800 text-xs sm:px-5">
|
|
436
162
|
<div className="w-full overflow-hidden overflow-ellipsis mb-1 last:mb-0">
|
|
437
163
|
<Trans
|
|
438
164
|
i18nKey="checkout.summary.info"
|