@lookiero/checkout 14.3.0 → 14.4.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/fake-dependencies/@lookiero/payments-front/index.js +1 -1
- package/dist/src/ExpoRoot.js +2 -2
- package/dist/src/infrastructure/projection/pricing/pricing.mock.d.ts +3 -2
- package/dist/src/infrastructure/projection/pricing/pricing.mock.js +28 -1
- package/dist/src/infrastructure/ui/hooks/useCheckoutFlow.js +1 -1
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +1 -1
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +3 -4
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -3
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -3
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +4 -5
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +1 -2
- package/dist/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.js +2 -3
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +2 -3
- package/dist/src/projection/pricing/pricing.d.ts +25 -1
- package/dist/src/projection/pricing/pricing.js +12 -1
- package/dist/src/version.d.ts +2 -2
- package/dist/src/version.js +2 -2
- package/fake-dependencies/@lookiero/payments-front/index.tsx +1 -1
- package/package.json +6 -4
- package/src/ExpoRoot.tsx +2 -2
- package/src/domain/checkout/model/checkouts.ts +6 -4
- package/src/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.ts +1 -2
- package/src/domain/checkoutBooking/event/createToastNotificationWhenCheckoutBookingExpired.ts +1 -2
- package/src/domain/checkoutBooking/model/checkoutBookings.ts +6 -4
- package/src/domain/checkoutFeedback/model/checkoutFeedbacks.ts +6 -4
- package/src/domain/checkoutItem/event/createModalNotificationWhenCheckoutItemReplaced.ts +1 -2
- package/src/domain/checkoutItem/model/checkoutItems.ts +6 -4
- package/src/infrastructure/delivery/mock/dataSourceCheckoutBookings.ts +1 -2
- package/src/infrastructure/delivery/mock/dataSourceCheckoutFeedbacks.ts +1 -2
- package/src/infrastructure/delivery/mock/dataSourceCheckoutItems.ts +1 -2
- package/src/infrastructure/domain/checkout/react/useStartCheckout.test.ts +1 -5
- package/src/infrastructure/domain/checkout/react/useSubmitCheckout.test.ts +1 -5
- package/src/infrastructure/domain/checkoutFeedback/model/httpCheckoutFeedbacks.ts +1 -2
- package/src/infrastructure/domain/checkoutFeedback/react/useGiveCheckoutFeedback.test.ts +1 -5
- package/src/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.test.ts +1 -5
- package/src/infrastructure/domain/checkoutItem/react/useReplaceCheckoutItem.test.ts +1 -5
- package/src/infrastructure/domain/checkoutItem/react/useResetCheckoutItem.test.ts +1 -5
- package/src/infrastructure/domain/checkoutItem/react/useReturnCheckoutItem.test.ts +1 -5
- package/src/infrastructure/projection/pricing/pricing.mock.ts +34 -2
- package/src/infrastructure/tracking/tracking.ts +4 -2
- package/src/infrastructure/ui/hooks/useCheckoutFlow.tsx +1 -1
- package/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.ts +0 -3
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.tsx +3 -4
- package/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/__snapshots__/GetOutOfCheckoutModal.test.tsx.snap +102 -144
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.tsx +8 -9
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +102 -233
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx +1 -2
- package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/__snapshots__/SizeWithoutStockModal.test.tsx.snap +30 -69
- package/src/infrastructure/ui/views/return/components/returnQuestionsForm/ReturnQuestionsForm.tsx +2 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +2 -3
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/__snapshots__/CollapsiblePricing.test.tsx.snap +62 -144
- package/src/projection/bookedProductsVariants/viewBookedProductVariantsForCheckoutItem.ts +2 -1
- package/src/projection/checkout/viewFirstAvailableCheckoutByCustomerId.ts +1 -2
- package/src/projection/checkout/viewFiveItemsDiscountByCustomerId.ts +1 -2
- package/src/projection/checkout/viewIsCheckoutEnabledByCustomerId.ts +1 -2
- package/src/projection/checkout/viewIsSizeChangeEnabledByCheckoutId.ts +1 -2
- package/src/projection/checkoutFeedback/viewCheckoutFeedbackDefinitionByCheckoutId.ts +2 -1
- package/src/projection/payment/viewPaymentFlowPayloadByCheckoutId.ts +1 -2
- package/src/projection/pricing/pricing.ts +29 -1
- package/src/projection/returnQuestion/listReturnQuestionsByCheckoutItemId.ts +1 -2
|
@@ -105,7 +105,6 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
105
105
|
}
|
|
106
106
|
>
|
|
107
107
|
<View
|
|
108
|
-
accessibilityRole="button"
|
|
109
108
|
accessibilityState={
|
|
110
109
|
{
|
|
111
110
|
"busy": undefined,
|
|
@@ -126,9 +125,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
126
125
|
accessible={true}
|
|
127
126
|
collapsable={false}
|
|
128
127
|
focusable={true}
|
|
129
|
-
onBlur={[Function]}
|
|
130
128
|
onClick={[Function]}
|
|
131
|
-
onFocus={[Function]}
|
|
132
129
|
onLayout={[Function]}
|
|
133
130
|
onResponderGrant={[Function]}
|
|
134
131
|
onResponderMove={[Function]}
|
|
@@ -137,39 +134,12 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
137
134
|
onResponderTerminationRequest={[Function]}
|
|
138
135
|
onStartShouldSetResponder={[Function]}
|
|
139
136
|
style={
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"_pressed": {
|
|
147
|
-
"bottom": 0,
|
|
148
|
-
"left": 0,
|
|
149
|
-
"right": 0,
|
|
150
|
-
"top": 0,
|
|
151
|
-
},
|
|
152
|
-
"alignSelf": "flex-start",
|
|
153
|
-
"container": {
|
|
154
|
-
"overflow": "hidden",
|
|
155
|
-
},
|
|
156
|
-
"flex": 1,
|
|
157
|
-
"height": 48,
|
|
158
|
-
"marginRight": 8,
|
|
159
|
-
"overflow": "hidden",
|
|
160
|
-
"pressed": {
|
|
161
|
-
"bottom": 0,
|
|
162
|
-
"left": 0,
|
|
163
|
-
"right": 0,
|
|
164
|
-
"top": 0,
|
|
165
|
-
},
|
|
166
|
-
"width": "100%",
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
|
-
{
|
|
170
|
-
"opacity": 1,
|
|
171
|
-
},
|
|
172
|
-
]
|
|
137
|
+
{
|
|
138
|
+
"flex": 1,
|
|
139
|
+
"height": 48,
|
|
140
|
+
"marginRight": 8,
|
|
141
|
+
"opacity": 1,
|
|
142
|
+
}
|
|
173
143
|
}
|
|
174
144
|
testID="size-selector"
|
|
175
145
|
>
|
|
@@ -193,82 +163,67 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
193
163
|
]
|
|
194
164
|
}
|
|
195
165
|
style={
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
"borderWidth": 2,
|
|
210
|
-
"height": 64,
|
|
211
|
-
"paddingLeft": 24,
|
|
212
|
-
"paddingRight": 24,
|
|
213
|
-
},
|
|
214
|
-
undefined,
|
|
215
|
-
{
|
|
216
|
-
"height": 48,
|
|
217
|
-
},
|
|
218
|
-
false,
|
|
219
|
-
{
|
|
220
|
-
"borderRadius": 9999,
|
|
221
|
-
},
|
|
222
|
-
]
|
|
166
|
+
{
|
|
167
|
+
"alignContent": "center",
|
|
168
|
+
"borderColor": "#0C0A0A",
|
|
169
|
+
"borderRadius": 9999,
|
|
170
|
+
"borderStyle": "solid",
|
|
171
|
+
"borderWidth": 2,
|
|
172
|
+
"height": 48,
|
|
173
|
+
"justifyContent": "center",
|
|
174
|
+
"overflow": "hidden",
|
|
175
|
+
"paddingLeft": 24,
|
|
176
|
+
"paddingRight": 24,
|
|
177
|
+
"position": "relative",
|
|
178
|
+
}
|
|
223
179
|
}
|
|
224
180
|
>
|
|
225
181
|
<View
|
|
226
|
-
collapsable={false}
|
|
227
182
|
pointerEvents="none"
|
|
228
183
|
style={
|
|
229
184
|
[
|
|
230
185
|
{
|
|
231
186
|
"backgroundColor": "#B7B3B3",
|
|
232
|
-
"height":
|
|
187
|
+
"height": "300%",
|
|
233
188
|
"left": 0,
|
|
234
189
|
"opacity": 0.7,
|
|
235
190
|
"position": "absolute",
|
|
236
191
|
"top": 0,
|
|
237
192
|
},
|
|
238
193
|
{
|
|
239
|
-
"width":
|
|
194
|
+
"width": 0,
|
|
240
195
|
},
|
|
241
196
|
]
|
|
242
197
|
}
|
|
243
198
|
/>
|
|
244
199
|
<View
|
|
245
200
|
style={
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
},
|
|
252
|
-
]
|
|
201
|
+
{
|
|
202
|
+
"alignItems": "center",
|
|
203
|
+
"flexDirection": "row",
|
|
204
|
+
"justifyContent": "center",
|
|
205
|
+
}
|
|
253
206
|
}
|
|
254
207
|
>
|
|
255
208
|
<Text
|
|
256
|
-
allowFontScaling={false}
|
|
257
|
-
selectable={false}
|
|
258
209
|
style={
|
|
259
210
|
[
|
|
260
211
|
{
|
|
261
|
-
"color": "#
|
|
212
|
+
"color": "#0C0A0A",
|
|
262
213
|
"fontFamily": "AreaNormal-Extrabold",
|
|
263
214
|
"fontSize": 15,
|
|
215
|
+
"fontStyle": "normal",
|
|
216
|
+
"fontWeight": "normal",
|
|
264
217
|
"letterSpacing": -0.2,
|
|
265
218
|
"lineHeight": 20,
|
|
266
|
-
"paddingBottom": 0,
|
|
267
|
-
"paddingLeft": 0,
|
|
268
|
-
"paddingRight": 0,
|
|
269
|
-
"paddingTop": 0,
|
|
270
|
-
"textAlign": "center",
|
|
271
219
|
},
|
|
220
|
+
[
|
|
221
|
+
{
|
|
222
|
+
"color": "#0C0C0A",
|
|
223
|
+
"textAlign": "center",
|
|
224
|
+
},
|
|
225
|
+
undefined,
|
|
226
|
+
],
|
|
272
227
|
]
|
|
273
228
|
}
|
|
274
229
|
>
|
|
@@ -278,7 +233,6 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
278
233
|
</ViewManagerAdapter_ExpoLinearGradient>
|
|
279
234
|
</View>
|
|
280
235
|
<View
|
|
281
|
-
accessibilityRole="button"
|
|
282
236
|
accessibilityState={
|
|
283
237
|
{
|
|
284
238
|
"busy": undefined,
|
|
@@ -299,9 +253,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
299
253
|
accessible={true}
|
|
300
254
|
collapsable={false}
|
|
301
255
|
focusable={true}
|
|
302
|
-
onBlur={[Function]}
|
|
303
256
|
onClick={[Function]}
|
|
304
|
-
onFocus={[Function]}
|
|
305
257
|
onLayout={[Function]}
|
|
306
258
|
onResponderGrant={[Function]}
|
|
307
259
|
onResponderMove={[Function]}
|
|
@@ -310,38 +262,11 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
310
262
|
onResponderTerminationRequest={[Function]}
|
|
311
263
|
onStartShouldSetResponder={[Function]}
|
|
312
264
|
style={
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
},
|
|
319
|
-
"_pressed": {
|
|
320
|
-
"bottom": 0,
|
|
321
|
-
"left": 0,
|
|
322
|
-
"right": 0,
|
|
323
|
-
"top": 0,
|
|
324
|
-
},
|
|
325
|
-
"alignSelf": "flex-start",
|
|
326
|
-
"container": {
|
|
327
|
-
"overflow": "hidden",
|
|
328
|
-
},
|
|
329
|
-
"flex": 1,
|
|
330
|
-
"height": 48,
|
|
331
|
-
"overflow": "hidden",
|
|
332
|
-
"pressed": {
|
|
333
|
-
"bottom": 0,
|
|
334
|
-
"left": 0,
|
|
335
|
-
"right": 0,
|
|
336
|
-
"top": 0,
|
|
337
|
-
},
|
|
338
|
-
"width": "100%",
|
|
339
|
-
},
|
|
340
|
-
],
|
|
341
|
-
{
|
|
342
|
-
"opacity": 1,
|
|
343
|
-
},
|
|
344
|
-
]
|
|
265
|
+
{
|
|
266
|
+
"flex": 1,
|
|
267
|
+
"height": 48,
|
|
268
|
+
"opacity": 1,
|
|
269
|
+
}
|
|
345
270
|
}
|
|
346
271
|
testID="return-button"
|
|
347
272
|
>
|
|
@@ -365,82 +290,67 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
365
290
|
]
|
|
366
291
|
}
|
|
367
292
|
style={
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
"borderWidth": 2,
|
|
382
|
-
"height": 64,
|
|
383
|
-
"paddingLeft": 24,
|
|
384
|
-
"paddingRight": 24,
|
|
385
|
-
},
|
|
386
|
-
undefined,
|
|
387
|
-
{
|
|
388
|
-
"height": 48,
|
|
389
|
-
},
|
|
390
|
-
false,
|
|
391
|
-
{
|
|
392
|
-
"borderRadius": 9999,
|
|
393
|
-
},
|
|
394
|
-
]
|
|
293
|
+
{
|
|
294
|
+
"alignContent": "center",
|
|
295
|
+
"borderColor": "#0C0A0A",
|
|
296
|
+
"borderRadius": 9999,
|
|
297
|
+
"borderStyle": "solid",
|
|
298
|
+
"borderWidth": 2,
|
|
299
|
+
"height": 48,
|
|
300
|
+
"justifyContent": "center",
|
|
301
|
+
"overflow": "hidden",
|
|
302
|
+
"paddingLeft": 24,
|
|
303
|
+
"paddingRight": 24,
|
|
304
|
+
"position": "relative",
|
|
305
|
+
}
|
|
395
306
|
}
|
|
396
307
|
>
|
|
397
308
|
<View
|
|
398
|
-
collapsable={false}
|
|
399
309
|
pointerEvents="none"
|
|
400
310
|
style={
|
|
401
311
|
[
|
|
402
312
|
{
|
|
403
313
|
"backgroundColor": "#B7B3B3",
|
|
404
|
-
"height":
|
|
314
|
+
"height": "300%",
|
|
405
315
|
"left": 0,
|
|
406
316
|
"opacity": 0.7,
|
|
407
317
|
"position": "absolute",
|
|
408
318
|
"top": 0,
|
|
409
319
|
},
|
|
410
320
|
{
|
|
411
|
-
"width":
|
|
321
|
+
"width": 0,
|
|
412
322
|
},
|
|
413
323
|
]
|
|
414
324
|
}
|
|
415
325
|
/>
|
|
416
326
|
<View
|
|
417
327
|
style={
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
},
|
|
424
|
-
]
|
|
328
|
+
{
|
|
329
|
+
"alignItems": "center",
|
|
330
|
+
"flexDirection": "row",
|
|
331
|
+
"justifyContent": "center",
|
|
332
|
+
}
|
|
425
333
|
}
|
|
426
334
|
>
|
|
427
335
|
<Text
|
|
428
|
-
allowFontScaling={false}
|
|
429
|
-
selectable={false}
|
|
430
336
|
style={
|
|
431
337
|
[
|
|
432
338
|
{
|
|
433
|
-
"color": "#
|
|
339
|
+
"color": "#0C0A0A",
|
|
434
340
|
"fontFamily": "AreaNormal-Extrabold",
|
|
435
341
|
"fontSize": 15,
|
|
342
|
+
"fontStyle": "normal",
|
|
343
|
+
"fontWeight": "normal",
|
|
436
344
|
"letterSpacing": -0.2,
|
|
437
345
|
"lineHeight": 20,
|
|
438
|
-
"paddingBottom": 0,
|
|
439
|
-
"paddingLeft": 0,
|
|
440
|
-
"paddingRight": 0,
|
|
441
|
-
"paddingTop": 0,
|
|
442
|
-
"textAlign": "center",
|
|
443
346
|
},
|
|
347
|
+
[
|
|
348
|
+
{
|
|
349
|
+
"color": "#0C0C0A",
|
|
350
|
+
"textAlign": "center",
|
|
351
|
+
},
|
|
352
|
+
undefined,
|
|
353
|
+
],
|
|
444
354
|
]
|
|
445
355
|
}
|
|
446
356
|
>
|
|
@@ -451,7 +361,6 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
451
361
|
</View>
|
|
452
362
|
</View>
|
|
453
363
|
<View
|
|
454
|
-
accessibilityRole="button"
|
|
455
364
|
accessibilityState={
|
|
456
365
|
{
|
|
457
366
|
"busy": undefined,
|
|
@@ -472,9 +381,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
472
381
|
accessible={true}
|
|
473
382
|
collapsable={false}
|
|
474
383
|
focusable={true}
|
|
475
|
-
onBlur={[Function]}
|
|
476
384
|
onClick={[Function]}
|
|
477
|
-
onFocus={[Function]}
|
|
478
385
|
onLayout={[Function]}
|
|
479
386
|
onResponderGrant={[Function]}
|
|
480
387
|
onResponderMove={[Function]}
|
|
@@ -483,37 +390,10 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
483
390
|
onResponderTerminationRequest={[Function]}
|
|
484
391
|
onStartShouldSetResponder={[Function]}
|
|
485
392
|
style={
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
"overflow": "hidden",
|
|
491
|
-
},
|
|
492
|
-
"_pressed": {
|
|
493
|
-
"bottom": 0,
|
|
494
|
-
"left": 0,
|
|
495
|
-
"right": 0,
|
|
496
|
-
"top": 0,
|
|
497
|
-
},
|
|
498
|
-
"alignSelf": "flex-start",
|
|
499
|
-
"container": {
|
|
500
|
-
"overflow": "hidden",
|
|
501
|
-
},
|
|
502
|
-
"height": 48,
|
|
503
|
-
"overflow": "hidden",
|
|
504
|
-
"pressed": {
|
|
505
|
-
"bottom": 0,
|
|
506
|
-
"left": 0,
|
|
507
|
-
"right": 0,
|
|
508
|
-
"top": 0,
|
|
509
|
-
},
|
|
510
|
-
"width": "100%",
|
|
511
|
-
},
|
|
512
|
-
],
|
|
513
|
-
{
|
|
514
|
-
"opacity": 1,
|
|
515
|
-
},
|
|
516
|
-
]
|
|
393
|
+
{
|
|
394
|
+
"height": 48,
|
|
395
|
+
"opacity": 1,
|
|
396
|
+
}
|
|
517
397
|
}
|
|
518
398
|
testID="keep-button"
|
|
519
399
|
>
|
|
@@ -537,75 +417,64 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
537
417
|
]
|
|
538
418
|
}
|
|
539
419
|
style={
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
{},
|
|
551
|
-
undefined,
|
|
552
|
-
{
|
|
553
|
-
"height": 48,
|
|
554
|
-
},
|
|
555
|
-
false,
|
|
556
|
-
{
|
|
557
|
-
"borderRadius": 9999,
|
|
558
|
-
},
|
|
559
|
-
]
|
|
420
|
+
{
|
|
421
|
+
"alignContent": "center",
|
|
422
|
+
"borderRadius": 9999,
|
|
423
|
+
"height": 48,
|
|
424
|
+
"justifyContent": "center",
|
|
425
|
+
"overflow": "hidden",
|
|
426
|
+
"paddingLeft": 24,
|
|
427
|
+
"paddingRight": 24,
|
|
428
|
+
"position": "relative",
|
|
429
|
+
}
|
|
560
430
|
}
|
|
561
431
|
>
|
|
562
432
|
<View
|
|
563
|
-
collapsable={false}
|
|
564
433
|
pointerEvents="none"
|
|
565
434
|
style={
|
|
566
435
|
[
|
|
567
436
|
{
|
|
568
437
|
"backgroundColor": "#716A6B",
|
|
569
|
-
"height":
|
|
438
|
+
"height": "300%",
|
|
570
439
|
"left": 0,
|
|
571
440
|
"opacity": 0.7,
|
|
572
441
|
"position": "absolute",
|
|
573
442
|
"top": 0,
|
|
574
443
|
},
|
|
575
444
|
{
|
|
576
|
-
"width":
|
|
445
|
+
"width": 0,
|
|
577
446
|
},
|
|
578
447
|
]
|
|
579
448
|
}
|
|
580
449
|
/>
|
|
581
450
|
<View
|
|
582
451
|
style={
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
},
|
|
589
|
-
]
|
|
452
|
+
{
|
|
453
|
+
"alignItems": "center",
|
|
454
|
+
"flexDirection": "row",
|
|
455
|
+
"justifyContent": "center",
|
|
456
|
+
}
|
|
590
457
|
}
|
|
591
458
|
>
|
|
592
459
|
<Text
|
|
593
|
-
allowFontScaling={false}
|
|
594
|
-
selectable={false}
|
|
595
460
|
style={
|
|
596
461
|
[
|
|
597
462
|
{
|
|
598
|
-
"color": "#
|
|
463
|
+
"color": "#0C0A0A",
|
|
599
464
|
"fontFamily": "AreaNormal-Extrabold",
|
|
600
465
|
"fontSize": 15,
|
|
466
|
+
"fontStyle": "normal",
|
|
467
|
+
"fontWeight": "normal",
|
|
601
468
|
"letterSpacing": -0.2,
|
|
602
469
|
"lineHeight": 20,
|
|
603
|
-
"paddingBottom": 0,
|
|
604
|
-
"paddingLeft": 0,
|
|
605
|
-
"paddingRight": 0,
|
|
606
|
-
"paddingTop": 0,
|
|
607
|
-
"textAlign": "center",
|
|
608
470
|
},
|
|
471
|
+
[
|
|
472
|
+
{
|
|
473
|
+
"color": "#FFFFFF",
|
|
474
|
+
"textAlign": "center",
|
|
475
|
+
},
|
|
476
|
+
undefined,
|
|
477
|
+
],
|
|
609
478
|
]
|
|
610
479
|
}
|
|
611
480
|
>
|
package/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.tsx
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { FC, useMemo } from "react";
|
|
2
2
|
import { View } from "react-native";
|
|
3
|
-
import { Button } from "@lookiero/aurora";
|
|
4
3
|
import { useI18nMessage } from "@lookiero/i18n-react";
|
|
5
|
-
import { Modal, Text } from "@lookiero/sty-psp-ui";
|
|
4
|
+
import { Button, Modal, Text } from "@lookiero/sty-psp-ui";
|
|
6
5
|
import { DOMAIN, I18nMessages } from "../../../../i18n/i18n";
|
|
7
6
|
import { style as sizeWithoutStockModalStyle } from "./SizeWithoutStockModal.style";
|
|
8
7
|
|
|
@@ -304,7 +304,6 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
|
|
|
304
304
|
size_without_stock_modal.description
|
|
305
305
|
</Text>
|
|
306
306
|
<View
|
|
307
|
-
accessibilityRole="button"
|
|
308
307
|
accessibilityState={
|
|
309
308
|
{
|
|
310
309
|
"busy": undefined,
|
|
@@ -325,9 +324,7 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
|
|
|
325
324
|
accessible={true}
|
|
326
325
|
collapsable={false}
|
|
327
326
|
focusable={true}
|
|
328
|
-
onBlur={[Function]}
|
|
329
327
|
onClick={[Function]}
|
|
330
|
-
onFocus={[Function]}
|
|
331
328
|
onLayout={[Function]}
|
|
332
329
|
onResponderGrant={[Function]}
|
|
333
330
|
onResponderMove={[Function]}
|
|
@@ -336,37 +333,10 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
|
|
|
336
333
|
onResponderTerminationRequest={[Function]}
|
|
337
334
|
onStartShouldSetResponder={[Function]}
|
|
338
335
|
style={
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
"overflow": "hidden",
|
|
344
|
-
},
|
|
345
|
-
"_pressed": {
|
|
346
|
-
"bottom": 0,
|
|
347
|
-
"left": 0,
|
|
348
|
-
"right": 0,
|
|
349
|
-
"top": 0,
|
|
350
|
-
},
|
|
351
|
-
"alignSelf": "flex-start",
|
|
352
|
-
"container": {
|
|
353
|
-
"overflow": "hidden",
|
|
354
|
-
},
|
|
355
|
-
"height": 64,
|
|
356
|
-
"overflow": "hidden",
|
|
357
|
-
"pressed": {
|
|
358
|
-
"bottom": 0,
|
|
359
|
-
"left": 0,
|
|
360
|
-
"right": 0,
|
|
361
|
-
"top": 0,
|
|
362
|
-
},
|
|
363
|
-
"width": "100%",
|
|
364
|
-
},
|
|
365
|
-
],
|
|
366
|
-
{
|
|
367
|
-
"opacity": 1,
|
|
368
|
-
},
|
|
369
|
-
]
|
|
336
|
+
{
|
|
337
|
+
"height": 64,
|
|
338
|
+
"opacity": 1,
|
|
339
|
+
}
|
|
370
340
|
}
|
|
371
341
|
>
|
|
372
342
|
<ViewManagerAdapter_ExpoLinearGradient
|
|
@@ -389,28 +359,19 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
|
|
|
389
359
|
]
|
|
390
360
|
}
|
|
391
361
|
style={
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
{},
|
|
403
|
-
undefined,
|
|
404
|
-
undefined,
|
|
405
|
-
false,
|
|
406
|
-
{
|
|
407
|
-
"borderRadius": 9999,
|
|
408
|
-
},
|
|
409
|
-
]
|
|
362
|
+
{
|
|
363
|
+
"alignContent": "center",
|
|
364
|
+
"borderRadius": 9999,
|
|
365
|
+
"height": 64,
|
|
366
|
+
"justifyContent": "center",
|
|
367
|
+
"overflow": "hidden",
|
|
368
|
+
"paddingLeft": 24,
|
|
369
|
+
"paddingRight": 24,
|
|
370
|
+
"position": "relative",
|
|
371
|
+
}
|
|
410
372
|
}
|
|
411
373
|
>
|
|
412
374
|
<View
|
|
413
|
-
collapsable={false}
|
|
414
375
|
pointerEvents="none"
|
|
415
376
|
style={
|
|
416
377
|
[
|
|
@@ -423,39 +384,39 @@ exports[`SizeWithoutStockModal component matches the snapshot 1`] = `
|
|
|
423
384
|
"top": 0,
|
|
424
385
|
},
|
|
425
386
|
{
|
|
426
|
-
"width":
|
|
387
|
+
"width": 0,
|
|
427
388
|
},
|
|
428
389
|
]
|
|
429
390
|
}
|
|
430
391
|
/>
|
|
431
392
|
<View
|
|
432
393
|
style={
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
},
|
|
439
|
-
]
|
|
394
|
+
{
|
|
395
|
+
"alignItems": "center",
|
|
396
|
+
"flexDirection": "row",
|
|
397
|
+
"justifyContent": "center",
|
|
398
|
+
}
|
|
440
399
|
}
|
|
441
400
|
>
|
|
442
401
|
<Text
|
|
443
|
-
allowFontScaling={false}
|
|
444
|
-
selectable={false}
|
|
445
402
|
style={
|
|
446
403
|
[
|
|
447
404
|
{
|
|
448
|
-
"color": "#
|
|
405
|
+
"color": "#0C0A0A",
|
|
449
406
|
"fontFamily": "AreaNormal-Extrabold",
|
|
450
407
|
"fontSize": 15,
|
|
408
|
+
"fontStyle": "normal",
|
|
409
|
+
"fontWeight": "normal",
|
|
451
410
|
"letterSpacing": -0.2,
|
|
452
411
|
"lineHeight": 20,
|
|
453
|
-
"paddingBottom": 0,
|
|
454
|
-
"paddingLeft": 0,
|
|
455
|
-
"paddingRight": 0,
|
|
456
|
-
"paddingTop": 0,
|
|
457
|
-
"textAlign": "center",
|
|
458
412
|
},
|
|
413
|
+
[
|
|
414
|
+
{
|
|
415
|
+
"color": "#FFFFFF",
|
|
416
|
+
"textAlign": "center",
|
|
417
|
+
},
|
|
418
|
+
undefined,
|
|
419
|
+
],
|
|
459
420
|
]
|
|
460
421
|
}
|
|
461
422
|
>
|