wickes-css2 2.94.0 → 2.95.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.
Files changed (116) hide show
  1. package/Readme.md +3 -2
  2. package/build/css/main.css +1 -1
  3. package/build/css/my-account-main-v2.css +1 -1
  4. package/build/css/pages/checkout-new.css +1 -1
  5. package/build/css/pages/checkout.css +1 -1
  6. package/build/css/pages/my-account-v2.css +1 -1
  7. package/build/css/pages/page_checkout_delivery-new.css +1 -1
  8. package/build/css/pages/page_my-orders.css +1 -0
  9. package/build/css/pages/page_products-list-combined.css +1 -1
  10. package/build/css/pages/page_products-list.css +1 -1
  11. package/build/css/pages/page_shopping-cart-v2.css +1 -1
  12. package/build/css/pages/tradePro-signup.css +1 -1
  13. package/build/css/pdp-main-non-critical.css +1 -1
  14. package/build/css/plp-main.css +1 -1
  15. package/build/js/basket.min.js +2 -2
  16. package/build/js/bundle.min.js +1 -1
  17. package/build/js/checkout.min.js +2 -2
  18. package/build/js/emulation.min.js +54 -2
  19. package/build/js/general.bundle.min.js +1 -1
  20. package/build/js/merged-checkout.min.js +2 -2
  21. package/build/js/my-orders.min.js +1 -0
  22. package/build/js/page/basket/summary-mobile.js +22 -0
  23. package/build/js/page/basket-v2.js +13 -0
  24. package/build/js/page/components/order-summary.js +8 -1
  25. package/build/js/page/components/sticky-order-observer.js +49 -0
  26. package/build/js/page/components/voucher.js +1 -1
  27. package/build/js/page/my-orders.js +165 -0
  28. package/build/js/page/quiz.js +20 -11
  29. package/build/js/pdp.bundle.min.js +1 -1
  30. package/build/js/plp.bundle.min.js +1 -1
  31. package/build/js/project-list.min.js +1 -1
  32. package/build/js/quiz.min.js +1 -1
  33. package/package.json +1 -1
  34. package/src/components/checkout-action.hbs +14 -11
  35. package/src/components/checkout-voucher-accordion.hbs +15 -0
  36. package/src/components/checkout_order-summary-new.hbs +5 -3
  37. package/src/components/checkout_voucher_large.hbs +20 -16
  38. package/src/components/date-selection.hbs +1 -1
  39. package/src/components/flatpickr-calendar.hbs +26 -0
  40. package/src/components/my-account/active-orders/header.hbs +6 -2
  41. package/src/components/my-account/active-orders/list-orders.hbs +14 -2
  42. package/src/components/my-account/active-orders/order-header.hbs +1 -1
  43. package/src/components/my-account/active-orders/order.hbs +10 -6
  44. package/src/components/my-account/clipboard-code-card.hbs +1 -1
  45. package/src/components/my-account/empty-orders.hbs +9 -0
  46. package/src/components/my-account/mobile-nav.hbs +23 -19
  47. package/src/components/my-account/orders-nav.hbs +15 -0
  48. package/src/components/my-account/sort-by.hbs +3 -0
  49. package/src/components/my-account/user-account-actions.hbs +1 -1
  50. package/src/components/order-item.hbs +3 -3
  51. package/src/components/order-summary.hbs +91 -56
  52. package/src/components/partner-signup-form.hbs +4 -0
  53. package/src/components/signup-form.hbs +1 -2
  54. package/src/components/summary-mobile-bar.hbs +17 -0
  55. package/src/data/data_delivery-address-v2.json +1 -1
  56. package/src/data/data_shopping-cart-v2.json +24 -0
  57. package/src/data/my-account/data_my-orders.json +246 -0
  58. package/src/elements/dropdown.hbs +1 -1
  59. package/src/js/components/flatpickr.js +167 -0
  60. package/src/js/components/general/handleAccordion.js +35 -0
  61. package/src/js/components/general/is-trade-pro.js +15 -1
  62. package/src/js/emulation/basket-data.js +2 -2
  63. package/src/js/emulation/mock.js +10 -0
  64. package/src/js/emulation/my-orders-local.js +41 -0
  65. package/src/js/page/basket/summary-mobile.js +22 -0
  66. package/src/js/page/basket-v2.js +13 -0
  67. package/src/js/page/components/order-summary.js +8 -1
  68. package/src/js/page/components/sticky-order-observer.js +49 -0
  69. package/src/js/page/components/voucher.js +1 -1
  70. package/src/js/page/my-orders.js +165 -0
  71. package/src/js/page/quiz.js +20 -11
  72. package/src/layouts/basket-new.hbs +1 -1
  73. package/src/layouts/checkout-new.hbs +1 -0
  74. package/src/page_checkout_confirmation-new-marketing-consent-error.html +0 -2
  75. package/src/page_checkout_delivery-address-customer-journey.html +0 -5
  76. package/src/page_checkout_delivery-address-v2.html +0 -4
  77. package/src/page_checkout_delivery-details-v2-asm.html +1 -5
  78. package/src/page_checkout_delivery-details-v2-calendar-message.html +0 -3
  79. package/src/page_checkout_delivery-details-v2-oos.html +0 -3
  80. package/src/page_checkout_delivery-details-v2-wisdom-not-available.html +0 -5
  81. package/src/page_checkout_delivery-details-v2-wisdom.html +0 -5
  82. package/src/page_checkout_delivery-details-with-loader-v2.html +0 -3
  83. package/src/page_checkout_delivery-details_guest-new.html +0 -5
  84. package/src/page_checkout_delivery_address-asm-new.html +0 -4
  85. package/src/page_checkout_next-day-delivery-details.html +0 -6
  86. package/src/page_checkout_payment-details-v2.html +1 -1
  87. package/src/page_checkout_payment-details_guest-with-checkout-journey.html +0 -2
  88. package/src/page_checkout_payment-details_login-with-checkout-journey.html +0 -2
  89. package/src/page_checkout_rapid-delivery-details.html +0 -6
  90. package/src/page_klarna_payment-details_with-klarna.html +3 -6
  91. package/src/page_my-orders-empty.html +49 -0
  92. package/src/page_my-orders.html +64 -0
  93. package/src/page_payment-details-with-clearpay.html +1 -1
  94. package/src/page_payment-details_with_apple-pay.html +1 -1
  95. package/src/page_payment-details_with_google-pay.html +1 -1
  96. package/src/page_shopping-cart-v2.html +6 -16
  97. package/src/page_tradePro-signup.html +1 -1
  98. package/src/scss/components/_checkout-action.scss +132 -6
  99. package/src/scss/components/_marketing-preferences.scss +1 -1
  100. package/src/scss/components/_order-summary.scss +329 -178
  101. package/src/scss/components/_sticky-element-appearance.scss +25 -0
  102. package/src/scss/components/my-account/_active-orders.scss +263 -0
  103. package/src/scss/components/my-account/_orders-nav.scss +61 -0
  104. package/src/scss/helpers/_variables.scss +3 -0
  105. package/src/scss/libs/flatpickr.scss +235 -0
  106. package/src/scss/main.scss +1 -0
  107. package/src/scss/pages/_checkout-widget.scss +137 -28
  108. package/src/scss/pages/my-account-v2.scss +1 -136
  109. package/src/scss/pages/page_checkout_delivery-new.scss +119 -10
  110. package/src/scss/pages/page_my-orders.scss +232 -0
  111. package/src/scss/pages/page_products-list-combined.scss +0 -1
  112. package/src/scss/pages/page_products-list.scss +0 -1
  113. package/src/scss/pages/page_shopping-cart-v2.scss +137 -36
  114. package/src/scss/pages/tradePro-signup.scss +27 -0
  115. package/src/sitemap.html +2 -0
  116. package/src/scss/components/my-account/_order.scss +0 -112
@@ -83,10 +83,20 @@
83
83
  margin-bottom: 0;
84
84
  list-style-type: none;
85
85
 
86
- & > li:not(:first-of-type) {
86
+ & > li:last-child {
87
+ margin: 0;
88
+ }
89
+
90
+ & >li:not(:first-of-type) {
87
91
  margin-top: 5px;
88
92
  }
89
93
 
94
+ & > .checkout-widget__accordion-wrap {
95
+ &.checkout-widget__details-discount {
96
+ margin-top: 8px;
97
+ }
98
+ }
99
+
90
100
  .checkout-widget__details-hidden {
91
101
  padding-left: 15px;
92
102
  list-style: disc;
@@ -426,7 +436,7 @@
426
436
  text-align: center;
427
437
  width: 100%;
428
438
  color: $green;
429
- font-size: 4rem;
439
+ font-size: 1rem;
430
440
  margin-bottom: 10px;
431
441
  }
432
442
  }
@@ -515,10 +525,6 @@
515
525
  padding-right: 0;
516
526
  }
517
527
 
518
- &-hide {
519
- display: none;
520
- }
521
-
522
528
  input {
523
529
  text-transform: uppercase;
524
530
 
@@ -528,6 +534,92 @@
528
534
  }
529
535
  }
530
536
 
537
+ .voucher {
538
+ padding-bottom: 10px;
539
+
540
+ .checkout-widget.checkout-voucher.checkout-voucher_fixed {
541
+ padding: 0;
542
+ }
543
+
544
+ .checkout-widget.checkout-voucher {
545
+ margin-bottom: 0;
546
+
547
+ &-hide {
548
+ display: none;
549
+ }
550
+
551
+ &.voucher-applied {
552
+ background: $white;
553
+ height: 40px;
554
+ padding: 8px 0;
555
+ margin: 0;
556
+
557
+ .voucher-applied__inner {
558
+ display: flex;
559
+ align-items: center;
560
+ justify-content: center;
561
+ gap: 8px;
562
+
563
+ & .icon {
564
+ display: inline-block;
565
+
566
+ &__check {
567
+ width: 24px;
568
+ height: 24px;
569
+ display: flex;
570
+ justify-content: center;
571
+ align-items: center;
572
+
573
+ i {
574
+ font-size: 24px;
575
+ line-height: 24px;
576
+ }
577
+ }
578
+ }
579
+
580
+ & .fa-check-circle {
581
+ font-size: 1rem;
582
+ margin: 0;
583
+ }
584
+
585
+ & h5 {
586
+ font-size: .875rem;
587
+ margin: 0;
588
+ }
589
+ }
590
+ }
591
+
592
+ form {
593
+ display: flex;
594
+ justify-content: space-between;
595
+ width: 100%;
596
+
597
+ .form-row {
598
+ max-width: 100%;
599
+ flex: 1;
600
+ margin-right: 16px;
601
+ margin-bottom: 0;
602
+ padding: 0;
603
+
604
+ &__field {
605
+ margin-left: 30px;
606
+ }
607
+
608
+ &__error {
609
+ margin-left: 30px;
610
+ font-weight: 400;
611
+ }
612
+ }
613
+
614
+ .voucher__btn {
615
+ margin-top: 0;
616
+ margin-right: 15px;
617
+ height: 40px;
618
+ }
619
+ }
620
+ }
621
+ }
622
+
531
623
  .voucher {
532
624
  .checkout-widget {
533
625
  margin-left: -15px;
@@ -537,17 +629,17 @@
537
629
 
538
630
  @include media-breakpoint-up(sm) {
539
631
  .voucher {
540
- .checkout-widget {
541
- margin: 0 0 20px;
542
-
632
+ .checkout-widget.checkout-voucher {
543
633
  form {
544
- display: flex;
545
- justify-content: space-between;
546
- align-items: center;
547
-
548
634
  .form-row {
549
- @include make-col(6);
550
- margin-bottom: 0;
635
+ &__field {
636
+ margin-right: 0;
637
+ margin-left: 15px;
638
+ }
639
+
640
+ &__error {
641
+ margin-left: 15px;
642
+ }
551
643
  }
552
644
  }
553
645
  }
@@ -578,6 +670,12 @@
578
670
 
579
671
  .checkout-voucher {
580
672
  & form {
673
+ .form-row {
674
+ &__error {
675
+ margin-left: 15px;
676
+ }
677
+ }
678
+
581
679
  & .voucher__btn {
582
680
  max-width: 115px;
583
681
  height: 40px;
@@ -595,6 +693,22 @@
595
693
  }
596
694
  }
597
695
 
696
+ @include media-breakpoint-up(md) {
697
+ .voucher {
698
+ .checkout-widget.checkout-voucher {
699
+ form {
700
+ .form-row {
701
+ &__field {
702
+ margin-right: 0;
703
+ margin-left: 30px;
704
+ }
705
+ }
706
+ }
707
+ }
708
+ }
709
+ }
710
+
711
+
598
712
  @include media-breakpoint-up(xl) {
599
713
  .checkout-widget {
600
714
  &__detail-value_payment:not(.checkout-widget__details-hidden) {
@@ -626,6 +740,14 @@
626
740
  }
627
741
  }
628
742
 
743
+ @include media-breakpoint-up(lg) {
744
+ .checkout-voucher {
745
+ display: flex;
746
+ justify-content: center;
747
+ align-items: center;
748
+ }
749
+ }
750
+
629
751
  @include media-breakpoint-down(md) {
630
752
  .checkout-widget {
631
753
  &__secure {
@@ -698,7 +820,6 @@
698
820
  }
699
821
 
700
822
  &_order-summary {
701
- padding: 20px 30px;
702
823
 
703
824
  .accordion__header-text {
704
825
  margin-left: 4px;
@@ -733,12 +854,6 @@
733
854
 
734
855
  @include media-breakpoint-down(xs) {
735
856
  .checkout-widget {
736
- &_order-summary {
737
- padding: 20px 45px;
738
- margin-left: -15px;
739
- margin-right: -15px;
740
- }
741
-
742
857
  &__payment-wrapper {
743
858
  margin-left: -30px;
744
859
  margin-right: -25px;
@@ -773,12 +888,6 @@
773
888
  padding-bottom: 20px;
774
889
  }
775
890
 
776
- &__detail-name_accordion + .checkout-widget__details-hidden + span {
777
- right: auto;
778
- left: 0;
779
- top: 20px;
780
- }
781
-
782
891
  &__detail-name,
783
892
  &__detail-value:not(.checkout-widget__details-hidden) {
784
893
  display: block;
@@ -1,10 +1,10 @@
1
1
  @import '../helpers/helpers';
2
2
  @import '../components/my-account/consignment-info';
3
3
  @import '../components/my-account/shipment';
4
- @import '../components/my-account/order';
5
4
  @import '../components/my-account/menu';
6
5
  @import '../components/my-account/contacts';
7
6
  @import '../components/my-account/mobile-nav';
7
+ @import '../components/my-account/active-orders';
8
8
 
9
9
  .my-account {
10
10
  margin: 0;
@@ -265,81 +265,6 @@
265
265
  margin-bottom: 0;
266
266
  }
267
267
  }
268
-
269
- .active-orders {
270
- margin-top: 24px;
271
-
272
- &__title {
273
- font-weight: 500;
274
- font-size: 1.25rem;
275
- line-height: 1rem;
276
- color: $blue-dark;
277
- margin-bottom: 0;
278
- }
279
-
280
- &__item {
281
- margin-top: 16px;
282
- padding: 16px;
283
- background: $white;
284
- border-radius: 4px;
285
-
286
- & + & {
287
- margin-top: 16px;
288
- }
289
- }
290
-
291
- .view-more {
292
- display: flex;
293
- align-items: center;
294
- justify-content: center;
295
- padding-top: 12px;
296
- border-top: 1px solid $gray;
297
-
298
- .link {
299
- font-weight: 500;
300
- font-size: .875rem;
301
- line-height: 1.375rem;
302
- text-align: center;
303
- color: $blue;
304
- text-decoration: none;
305
- display: flex;
306
- justify-content: center;
307
- align-items: center;
308
-
309
- span:hover {
310
- text-decoration: underline;
311
- }
312
-
313
- .icon {
314
- margin-left: 8px;
315
- font-size: 1rem;
316
- }
317
- }
318
- }
319
-
320
- .btn--all-orders {
321
- margin-top: 16px;
322
- }
323
-
324
- .tooltip {
325
- filter: drop-shadow(0 0 8px rgba(0, 0, 0, .12));
326
- position: absolute;
327
-
328
- .tooltip-inner {
329
- background: $white;
330
- color: $gray-dark;
331
- padding: 8px 16px !important;
332
- border-radius: 4px;
333
- font-weight: 400;
334
- font-size: .75rem;
335
- line-height: 1rem;
336
- }
337
-
338
- .arrow:before {
339
- border-top-color: $white;
340
- }
341
- }
342
- }
343
268
  }
344
269
 
345
270
  @include media-breakpoint-up(sm) {
@@ -395,50 +320,6 @@
395
320
  }
396
321
  }
397
322
 
398
- .active-orders {
399
- &__header {
400
- display: flex;
401
- justify-content: space-between;
402
- align-items: center;
403
-
404
- .btn--all-orders {
405
- margin-top: 0;
406
- max-width: 125px;
407
- }
408
- }
409
-
410
- &__item {
411
- display: grid;
412
- grid-template-areas:
413
- 'header viewMore'
414
- 'orderDetails orderDetails'
415
- 'consignmentInfo consignmentInfo'
416
- 'shipment shipment';
417
-
418
- .order-header {
419
- flex-direction: row-reverse;
420
- justify-content: flex-end;
421
- grid-area: header;
422
-
423
- &__title {
424
- margin-left: 16px;
425
- font-weight: 700;
426
- }
427
- }
428
-
429
- .view-more {
430
- grid-area: viewMore;
431
- justify-content: flex-end;
432
- border-top: 0;
433
- padding: 0;
434
-
435
- .link .icon {
436
- margin-left: 13px;
437
- }
438
- }
439
- }
440
- }
441
-
442
323
  .notification_info-message {
443
324
  font-size: .875rem;
444
325
  }
@@ -456,10 +337,6 @@
456
337
  padding: 24px;
457
338
  }
458
339
 
459
- .active-orders__title {
460
- font-size: 1.5rem;
461
- }
462
-
463
340
  .notification_general:not(.notification_info-message) {
464
341
  margin-top: 16px;
465
342
  margin-bottom: 16px;
@@ -530,18 +407,6 @@
530
407
  .clipboard-code.discount-code {
531
408
  padding-right: 14px;
532
409
  }
533
-
534
- .active-orders {
535
- &__item {
536
- padding: 24px;
537
- grid-template-areas:
538
- 'header consignmentInfo viewMore'
539
- 'orderDetails orderDetails orderDetails'
540
- 'shipment shipment shipment';
541
- grid-template-columns: auto auto 1fr;
542
- align-items: center;
543
- }
544
- }
545
410
  }
546
411
  }
547
412
 
@@ -5,18 +5,87 @@
5
5
  @import '../components/marketing-preferences';
6
6
 
7
7
  .page_checkout-delivery-new {
8
- .summary {
9
- .checkout-title__title {
10
- color: $blue-ocean;
11
- font-weight: 400;
12
- line-height: 1.75rem;
13
- }
8
+ .right-aside {
9
+ .summary {
10
+ .checkout-title__title {
11
+ color: $blue-ocean;
12
+ font-weight: 400;
13
+ line-height: 1.75rem;
14
+ }
15
+
16
+ &__aside {
17
+ padding: 12px 30px 0;
18
+
19
+ .checkout-info-wrap {
20
+ padding: 0;
21
+ }
22
+
23
+ .checkout-widget.checkout-widget_order-summary {
24
+ padding: 25px 20px 0;
25
+ }
26
+
27
+ .checkout-widget {
28
+ &__details {
29
+ font-size: 1rem;
30
+
31
+ .checkout-widget {
32
+ &__item {
33
+ display: flex;
34
+ justify-content: space-between;
35
+ font-size: 1rem;
36
+ line-height: 1.125rem;
37
+ font-weight: 400;
38
+ margin-bottom: 20px;
39
+ padding: 0;
40
+
41
+ &-bold {
42
+ font-weight: 500;
43
+ margin-bottom: 20px;
44
+ }
14
45
 
15
- &__aside {
16
- padding: 12px 30px 0;
46
+ &-vat {
47
+ font-size: .75rem;
48
+ margin-top: -15px;
49
+ }
50
+ }
51
+
52
+
53
+ &__details-discount {
54
+ order: 1;
55
+ }
56
+ }
57
+ }
17
58
 
18
- .checkout-info-wrap {
19
- padding: 0;
59
+ &__total {
60
+ border: 0;
61
+ display: flex;
62
+ justify-content: space-between;
63
+ margin-left: -25px;
64
+ margin-right: -25px;
65
+ margin-bottom: 0;
66
+ padding: 20px 25px;
67
+ color: #fff;
68
+ background-color: #0a3055;
69
+ font-size: 1.375rem;
70
+ line-height: 1.5rem;
71
+ font-weight: 400;
72
+ }
73
+ }
74
+ }
75
+
76
+ &__basked-id {
77
+ padding: 26px 0;
78
+ background: #f8f8f8;
79
+ text-align: center;
80
+ font-size: 1rem;
81
+
82
+ .id-number {
83
+ font-weight: 700;
84
+ }
85
+ }
86
+
87
+ .accordion__header-icon-small {
88
+ left: 85px;
20
89
  }
21
90
  }
22
91
  }
@@ -308,6 +377,7 @@
308
377
  .continue-btn {
309
378
  background: $gray-bg;
310
379
  padding: 35px;
380
+ margin-top: 20px;
311
381
 
312
382
  .btn-action {
313
383
  height: 50px;
@@ -401,6 +471,26 @@
401
471
  }
402
472
  }
403
473
  }
474
+
475
+ .right-aside {
476
+ .summary {
477
+ &__aside {
478
+ .checkout-widget.checkout-widget_order-summary {
479
+ padding: 20px 0 0;
480
+ }
481
+ }
482
+
483
+ .checkout-widget {
484
+ &.checkout-widget_order-summary {
485
+ .checkout-widget__total {
486
+ font-weight: 400;
487
+ margin-left: -20px;
488
+ margin-right: -20px;
489
+ }
490
+ }
491
+ }
492
+ }
493
+ }
404
494
  }
405
495
  }
406
496
 
@@ -555,6 +645,24 @@
555
645
  }
556
646
  }
557
647
  }
648
+
649
+ .right-aside {
650
+ .summary {
651
+ .checkout-widget {
652
+ &.checkout-widget_order-summary {
653
+ .checkout-widget__total {
654
+ font-weight: 400;
655
+ margin-left: -30px;
656
+ margin-right: -30px;
657
+ }
658
+ }
659
+ }
660
+
661
+ .summary__basked-id {
662
+ margin-top: 13px;
663
+ }
664
+ }
665
+ }
558
666
  }
559
667
  }
560
668
 
@@ -674,6 +782,7 @@
674
782
 
675
783
  .continue-btn {
676
784
  margin: 0 -15px;
785
+ margin-top: 20px;
677
786
  }
678
787
 
679
788
  .billing-payment-block {