@mirai/core 0.3.271 → 0.3.273

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 (75) hide show
  1. package/build/components/Booking/Booking.js +14 -60
  2. package/build/components/Booking/Booking.js.map +1 -1
  3. package/build/components/Booking/Booking.module.css +22 -51
  4. package/build/components/Booking/partials/Booking.Information.js +2 -48
  5. package/build/components/Booking/partials/Booking.Information.js.map +1 -1
  6. package/build/components/Booking/partials/Booking.Menu.js +20 -40
  7. package/build/components/Booking/partials/Booking.Menu.js.map +1 -1
  8. package/build/components/Booking/partials/Booking.Payment.js +175 -0
  9. package/build/components/Booking/partials/Booking.Payment.js.map +1 -0
  10. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +0 -456
  11. package/build/components/Booking/partials/index.js +0 -22
  12. package/build/components/Booking/partials/index.js.map +1 -1
  13. package/build/components/Checkout/Checkout.js +3 -3
  14. package/build/components/Checkout/Checkout.js.map +1 -1
  15. package/build/components/Checkout/Checkout.l10n.js +0 -34
  16. package/build/components/Checkout/Checkout.l10n.js.map +1 -1
  17. package/build/components/Checkout/Checkout.module.css +0 -64
  18. package/build/components/Checkout/helpers/index.js +0 -11
  19. package/build/components/Checkout/helpers/index.js.map +1 -1
  20. package/build/components/Checkout/partials/Checkout.Confirmation.js +12 -19
  21. package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -1
  22. package/build/components/Checkout/partials/Checkout.Details.js +1 -2
  23. package/build/components/Checkout/partials/Checkout.Details.js.map +1 -1
  24. package/build/components/Checkout/partials/Checkout.Form.js +23 -14
  25. package/build/components/Checkout/partials/Checkout.Form.js.map +1 -1
  26. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +240 -36
  27. package/build/components/Checkout/partials/index.js +0 -11
  28. package/build/components/Checkout/partials/index.js.map +1 -1
  29. package/build/components/Header/Header.js +4 -2
  30. package/build/components/Header/Header.js.map +1 -1
  31. package/build/components/Header/Header.module.css +14 -6
  32. package/build/components/Header/components/BookingProcess/BookingProcess.js +28 -5
  33. package/build/components/Header/components/BookingProcess/BookingProcess.js.map +1 -1
  34. package/build/components/Header/components/BookingProcess/BookingProcess.l10n.js +6 -3
  35. package/build/components/Header/components/BookingProcess/BookingProcess.l10n.js.map +1 -1
  36. package/build/components/__shared__/BookingSummary/BookingSummary.constants.js +16 -0
  37. package/build/components/__shared__/BookingSummary/BookingSummary.constants.js.map +1 -0
  38. package/build/components/{Checkout/partials/Checkout.Summary.js → __shared__/BookingSummary/BookingSummary.js} +85 -43
  39. package/build/components/__shared__/BookingSummary/BookingSummary.js.map +1 -0
  40. package/build/components/__shared__/BookingSummary/BookingSummary.l10n.js +51 -0
  41. package/build/components/__shared__/BookingSummary/BookingSummary.l10n.js.map +1 -0
  42. package/build/components/__shared__/BookingSummary/BookingSummary.module.css +58 -0
  43. package/build/components/__shared__/BookingSummary/_tests__/BookingSummary.test.js +58 -0
  44. package/build/components/__shared__/BookingSummary/_tests__/BookingSummary.test.js.map +1 -0
  45. package/build/components/{Checkout/partials/__tests__/__snapshots__/Checkout.Summary.test.js.snap → __shared__/BookingSummary/_tests__/__snapshots__/BookingSummary.test.js.snap} +164 -28
  46. package/build/components/__shared__/BookingSummary/index.js +17 -0
  47. package/build/components/__shared__/BookingSummary/index.js.map +1 -0
  48. package/build/components/__shared__/BookingTable/BookingTable.js +2 -2
  49. package/build/components/__shared__/BookingTable/BookingTable.js.map +1 -1
  50. package/build/components/__shared__/Payment/Payment.js +5 -1
  51. package/build/components/__shared__/Payment/Payment.js.map +1 -1
  52. package/build/components/__shared__/Payment/Payment.module.css +2 -7
  53. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js +13 -2
  54. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js.map +1 -1
  55. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js +12 -9
  56. package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js.map +1 -1
  57. package/build/components/__shared__/index.js +11 -0
  58. package/build/components/__shared__/index.js.map +1 -1
  59. package/build/components/helpers/constants.js +2 -1
  60. package/build/components/helpers/constants.js.map +1 -1
  61. package/build/components/helpers/getRoomNumber.js.map +1 -0
  62. package/build/components/helpers/index.js +11 -0
  63. package/build/components/helpers/index.js.map +1 -1
  64. package/package.json +1 -1
  65. package/public/App.module.css +8 -1
  66. package/build/components/Booking/partials/Booking.PriceBreakdown.js +0 -159
  67. package/build/components/Booking/partials/Booking.PriceBreakdown.js.map +0 -1
  68. package/build/components/Booking/partials/Booking.Summary.js +0 -114
  69. package/build/components/Booking/partials/Booking.Summary.js.map +0 -1
  70. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Summary.test.js.snap +0 -698
  71. package/build/components/Checkout/helpers/getRoomNumber.js.map +0 -1
  72. package/build/components/Checkout/partials/Checkout.Summary.Line.js +0 -56
  73. package/build/components/Checkout/partials/Checkout.Summary.Line.js.map +0 -1
  74. package/build/components/Checkout/partials/Checkout.Summary.js.map +0 -1
  75. /package/build/components/{Checkout/helpers → helpers}/getRoomNumber.js +0 -0
@@ -1,698 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`component:<Booking> partial:<Summary> inherit:className 1`] = `
4
- <DocumentFragment>
5
- <div
6
- class="view wide"
7
- >
8
- <div
9
- class="view"
10
- >
11
- <h3
12
- class="text bold headline-3"
13
- >
14
- user.label.booking_summary
15
- </h3>
16
- <div
17
- class="view row wide"
18
- >
19
- <div
20
- class="view"
21
- >
22
- <span
23
- class="text bold paragraph"
24
- >
25
- common.label.check_in
26
- </span>
27
- <span
28
- class="text action"
29
- >
30
- lun, 24 jul 2023
31
- </span>
32
- <span
33
- class="text light small"
34
- >
35
- common.label.checkin_time
36
- </span>
37
- </div>
38
- <div
39
- class="view"
40
- >
41
- <span
42
- class="text bold paragraph"
43
- >
44
- common.label.check_out
45
- </span>
46
- <span
47
- class="text action"
48
- >
49
- dom, 30 jul 2023
50
- </span>
51
- <span
52
- class="text light small"
53
- >
54
- common.label.checkout_time
55
- </span>
56
- </div>
57
- </div>
58
- <div
59
- class="view"
60
- >
61
- <span
62
- class="text bold paragraph"
63
- >
64
- user.label.your_reservation
65
- </span>
66
- <span
67
- class="text action"
68
- >
69
- common.label.night
70
- <span
71
- style="text-decoration: underline;"
72
- >
73
- count, common.label.room
74
- </span>
75
- count
76
- </span>
77
- <div
78
- class="view row"
79
- >
80
- <span
81
- class="text light small"
82
- >
83
- Standard Room
84
- </span>
85
- </div>
86
- <div
87
- class="view row"
88
- >
89
- <span
90
- class="text light small"
91
- >
92
- Premium Room
93
- </span>
94
- </div>
95
- </div>
96
- </div>
97
- <div
98
- class="view"
99
- >
100
- <h3
101
- class="text bold headline-3"
102
- >
103
- user.label.price_summary
104
- </h3>
105
- <div
106
- class="view wide"
107
- >
108
- <div
109
- class="view row"
110
- >
111
- <span
112
- class="text action wide"
113
- >
114
- common.label.base_price
115
- </span>
116
- <span
117
- class="text action"
118
- >
119
- 0,00 GBP
120
- </span>
121
- </div>
122
- <div
123
- class="view row"
124
- >
125
- <span
126
- class="text bold paragraph wide"
127
- >
128
- common.label.total
129
- </span>
130
- <span
131
- class="text bold paragraph"
132
- >
133
- 198,41 GBP
134
- </span>
135
- </div>
136
- </div>
137
- <div
138
- class="view row notification warning inline small"
139
- >
140
- <span
141
- class="icon paragraph"
142
- >
143
- <svg
144
- fill="currentColor"
145
- height="1em"
146
- stroke="currentColor"
147
- stroke-width="0"
148
- viewBox="0 0 24 24"
149
- width="1em"
150
- xmlns="http://www.w3.org/2000/svg"
151
- >
152
- <path
153
- d="M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
154
- />
155
- </svg>
156
- </span>
157
- <div
158
- class="view texts"
159
- >
160
- <span
161
- class="text small"
162
- >
163
- <span
164
- style="font-weight: bold;"
165
- >
166
- {{price.description}
167
- </span>
168
- } Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates
169
- </span>
170
- </div>
171
- </div>
172
- </div>
173
- </div>
174
- </DocumentFragment>
175
- `;
176
-
177
- exports[`component:<Booking> partial:<Summary> renders 1`] = `
178
- <DocumentFragment>
179
- <div
180
- class="view wide"
181
- >
182
- <div
183
- class="view"
184
- >
185
- <h3
186
- class="text bold headline-3"
187
- >
188
- user.label.booking_summary
189
- </h3>
190
- <div
191
- class="view row wide"
192
- >
193
- <div
194
- class="view"
195
- >
196
- <span
197
- class="text bold paragraph"
198
- >
199
- common.label.check_in
200
- </span>
201
- <span
202
- class="text action"
203
- >
204
- lun, 24 jul 2023
205
- </span>
206
- <span
207
- class="text light small"
208
- >
209
- common.label.checkin_time
210
- </span>
211
- </div>
212
- <div
213
- class="view"
214
- >
215
- <span
216
- class="text bold paragraph"
217
- >
218
- common.label.check_out
219
- </span>
220
- <span
221
- class="text action"
222
- >
223
- dom, 30 jul 2023
224
- </span>
225
- <span
226
- class="text light small"
227
- >
228
- common.label.checkout_time
229
- </span>
230
- </div>
231
- </div>
232
- <div
233
- class="view"
234
- >
235
- <span
236
- class="text bold paragraph"
237
- >
238
- user.label.your_reservation
239
- </span>
240
- <span
241
- class="text action"
242
- >
243
- common.label.night
244
- <span
245
- style="text-decoration: underline;"
246
- >
247
- count, common.label.room
248
- </span>
249
- count
250
- </span>
251
- <div
252
- class="view row"
253
- >
254
- <span
255
- class="text light small"
256
- >
257
- Standard Room
258
- </span>
259
- </div>
260
- <div
261
- class="view row"
262
- >
263
- <span
264
- class="text light small"
265
- >
266
- Premium Room
267
- </span>
268
- </div>
269
- </div>
270
- </div>
271
- <div
272
- class="view"
273
- >
274
- <h3
275
- class="text bold headline-3"
276
- >
277
- user.label.price_summary
278
- </h3>
279
- <div
280
- class="view wide"
281
- >
282
- <div
283
- class="view row"
284
- >
285
- <span
286
- class="text action wide"
287
- >
288
- common.label.base_price
289
- </span>
290
- <span
291
- class="text action"
292
- >
293
- 0,00 GBP
294
- </span>
295
- </div>
296
- <div
297
- class="view row"
298
- >
299
- <span
300
- class="text bold paragraph wide"
301
- >
302
- common.label.total
303
- </span>
304
- <span
305
- class="text bold paragraph"
306
- >
307
- 198,41 GBP
308
- </span>
309
- </div>
310
- </div>
311
- <div
312
- class="view row notification warning inline small"
313
- >
314
- <span
315
- class="icon paragraph"
316
- >
317
- <svg
318
- fill="currentColor"
319
- height="1em"
320
- stroke="currentColor"
321
- stroke-width="0"
322
- viewBox="0 0 24 24"
323
- width="1em"
324
- xmlns="http://www.w3.org/2000/svg"
325
- >
326
- <path
327
- d="M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
328
- />
329
- </svg>
330
- </span>
331
- <div
332
- class="view texts"
333
- >
334
- <span
335
- class="text small"
336
- >
337
- <span
338
- style="font-weight: bold;"
339
- >
340
- {{price.description}
341
- </span>
342
- } Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates
343
- </span>
344
- </div>
345
- </div>
346
- </div>
347
- </div>
348
- </DocumentFragment>
349
- `;
350
-
351
- exports[`component:<Booking> partial:<Summary> testID 1`] = `
352
- <DocumentFragment>
353
- <div
354
- class="view wide"
355
- data-testid="mirai"
356
- >
357
- <div
358
- class="view"
359
- >
360
- <h3
361
- class="text bold headline-3"
362
- >
363
- user.label.booking_summary
364
- </h3>
365
- <div
366
- class="view row wide"
367
- >
368
- <div
369
- class="view"
370
- >
371
- <span
372
- class="text bold paragraph"
373
- >
374
- common.label.check_in
375
- </span>
376
- <span
377
- class="text action"
378
- >
379
- lun, 24 jul 2023
380
- </span>
381
- <span
382
- class="text light small"
383
- >
384
- common.label.checkin_time
385
- </span>
386
- </div>
387
- <div
388
- class="view"
389
- >
390
- <span
391
- class="text bold paragraph"
392
- >
393
- common.label.check_out
394
- </span>
395
- <span
396
- class="text action"
397
- >
398
- dom, 30 jul 2023
399
- </span>
400
- <span
401
- class="text light small"
402
- >
403
- common.label.checkout_time
404
- </span>
405
- </div>
406
- </div>
407
- <div
408
- class="view"
409
- >
410
- <span
411
- class="text bold paragraph"
412
- >
413
- user.label.your_reservation
414
- </span>
415
- <span
416
- class="text action"
417
- >
418
- common.label.night
419
- <span
420
- style="text-decoration: underline;"
421
- >
422
- count, common.label.room
423
- </span>
424
- count
425
- </span>
426
- <div
427
- class="view row"
428
- >
429
- <span
430
- class="text light small"
431
- >
432
- Standard Room
433
- </span>
434
- </div>
435
- <div
436
- class="view row"
437
- >
438
- <span
439
- class="text light small"
440
- >
441
- Premium Room
442
- </span>
443
- </div>
444
- </div>
445
- </div>
446
- <div
447
- class="view"
448
- >
449
- <h3
450
- class="text bold headline-3"
451
- >
452
- user.label.price_summary
453
- </h3>
454
- <div
455
- class="view wide"
456
- >
457
- <div
458
- class="view row"
459
- >
460
- <span
461
- class="text action wide"
462
- >
463
- common.label.base_price
464
- </span>
465
- <span
466
- class="text action"
467
- >
468
- 0,00 GBP
469
- </span>
470
- </div>
471
- <div
472
- class="view row"
473
- >
474
- <span
475
- class="text bold paragraph wide"
476
- >
477
- common.label.total
478
- </span>
479
- <span
480
- class="text bold paragraph"
481
- >
482
- 198,41 GBP
483
- </span>
484
- </div>
485
- </div>
486
- <div
487
- class="view row notification warning inline small"
488
- >
489
- <span
490
- class="icon paragraph"
491
- >
492
- <svg
493
- fill="currentColor"
494
- height="1em"
495
- stroke="currentColor"
496
- stroke-width="0"
497
- viewBox="0 0 24 24"
498
- width="1em"
499
- xmlns="http://www.w3.org/2000/svg"
500
- >
501
- <path
502
- d="M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
503
- />
504
- </svg>
505
- </span>
506
- <div
507
- class="view texts"
508
- >
509
- <span
510
- class="text small"
511
- >
512
- <span
513
- style="font-weight: bold;"
514
- >
515
- {{price.description}
516
- </span>
517
- } Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates
518
- </span>
519
- </div>
520
- </div>
521
- </div>
522
- </div>
523
- </DocumentFragment>
524
- `;
525
-
526
- exports[`component:<Booking> partial:<Summary> with a store 1`] = `
527
- <DocumentFragment>
528
- <div
529
- class="view wide"
530
- >
531
- <div
532
- class="view"
533
- >
534
- <h3
535
- class="text bold headline-3"
536
- >
537
- user.label.booking_summary
538
- </h3>
539
- <div
540
- class="view row wide"
541
- >
542
- <div
543
- class="view"
544
- >
545
- <span
546
- class="text bold paragraph"
547
- >
548
- common.label.check_in
549
- </span>
550
- <span
551
- class="text action"
552
- >
553
- lun, 24 jul 2023
554
- </span>
555
- <span
556
- class="text light small"
557
- >
558
- common.label.checkin_time
559
- </span>
560
- </div>
561
- <div
562
- class="view"
563
- >
564
- <span
565
- class="text bold paragraph"
566
- >
567
- common.label.check_out
568
- </span>
569
- <span
570
- class="text action"
571
- >
572
- dom, 30 jul 2023
573
- </span>
574
- <span
575
- class="text light small"
576
- >
577
- common.label.checkout_time
578
- </span>
579
- </div>
580
- </div>
581
- <div
582
- class="view"
583
- >
584
- <span
585
- class="text bold paragraph"
586
- >
587
- user.label.your_reservation
588
- </span>
589
- <span
590
- class="text action"
591
- >
592
- common.label.night
593
- <span
594
- style="text-decoration: underline;"
595
- >
596
- count, common.label.room
597
- </span>
598
- count
599
- </span>
600
- <div
601
- class="view row"
602
- >
603
- <span
604
- class="text light small"
605
- >
606
- Standard Room
607
- </span>
608
- </div>
609
- <div
610
- class="view row"
611
- >
612
- <span
613
- class="text light small"
614
- >
615
- Premium Room
616
- </span>
617
- </div>
618
- </div>
619
- </div>
620
- <div
621
- class="view"
622
- >
623
- <h3
624
- class="text bold headline-3"
625
- >
626
- user.label.price_summary
627
- </h3>
628
- <div
629
- class="view wide"
630
- >
631
- <div
632
- class="view row"
633
- >
634
- <span
635
- class="text action wide"
636
- >
637
- common.label.base_price
638
- </span>
639
- <span
640
- class="text action"
641
- >
642
- 0,00 GBP
643
- </span>
644
- </div>
645
- <div
646
- class="view row"
647
- >
648
- <span
649
- class="text bold paragraph wide"
650
- >
651
- common.label.total
652
- </span>
653
- <span
654
- class="text bold paragraph"
655
- >
656
- 198,41 GBP
657
- </span>
658
- </div>
659
- </div>
660
- <div
661
- class="view row notification warning inline small"
662
- >
663
- <span
664
- class="icon paragraph"
665
- >
666
- <svg
667
- fill="currentColor"
668
- height="1em"
669
- stroke="currentColor"
670
- stroke-width="0"
671
- viewBox="0 0 24 24"
672
- width="1em"
673
- xmlns="http://www.w3.org/2000/svg"
674
- >
675
- <path
676
- d="M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
677
- />
678
- </svg>
679
- </span>
680
- <div
681
- class="view texts"
682
- >
683
- <span
684
- class="text small"
685
- >
686
- <span
687
- style="font-weight: bold;"
688
- >
689
- {{price.description}
690
- </span>
691
- } Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates
692
- </span>
693
- </div>
694
- </div>
695
- </div>
696
- </div>
697
- </DocumentFragment>
698
- `;
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRoomNumber.js","names":["getRoomNumber","data","roomNumber","JSON","parse","error","exports"],"sources":["../../../../src/components/Checkout/helpers/getRoomNumber.js"],"sourcesContent":["export const getRoomNumber = (data) => {\n if (!data) return;\n\n try {\n const [{ roomNumber: [roomNumber] = [] } = {}] = JSON.parse(data) || [];\n\n return roomNumber;\n } catch (error) {\n return;\n }\n};\n"],"mappings":";;;;;;AAAO,MAAMA,aAAa,GAAIC,IAAI,IAAK;EACrC,IAAI,CAACA,IAAI,EAAE;EAEX,IAAI;IACF,MAAM,CAAC;MAAEC,UAAU,EAAE,CAACA,UAAU,CAAC,GAAG;IAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAI,CAAC,IAAI,EAAE;IAEvE,OAAOC,UAAU;EACnB,CAAC,CAAC,OAAOG,KAAK,EAAE;IACd;EACF;AACF,CAAC;AAACC,OAAA,CAAAN,aAAA,GAAAA,aAAA"}