wickes-css2 2.94.0-billie.3 → 2.94.0-develop.10

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 (108) hide show
  1. package/Readme.md +1 -1
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/components/checkout-payment-details-v2.css +1 -1
  4. package/build/css/components/global-search.css +1 -1
  5. package/build/css/components/loader.css +1 -1
  6. package/build/css/homepage-main.css +1 -1
  7. package/build/css/main.css +1 -1
  8. package/build/css/my-account-main-v2.css +1 -1
  9. package/build/css/my-account-main.css +1 -1
  10. package/build/css/pages/checkout-new.css +1 -1
  11. package/build/css/pages/checkout.css +1 -1
  12. package/build/css/pages/my-account-v2.css +1 -1
  13. package/build/css/pages/page_checkout_delivery-new.css +1 -1
  14. package/build/css/pages/page_my-orders.css +1 -0
  15. package/build/css/pages/page_products-list-combined.css +1 -1
  16. package/build/css/pages/page_products-list.css +1 -1
  17. package/build/css/pages/page_shopping-cart-v2.css +1 -1
  18. package/build/css/pdp-main-before-combine.css +1 -1
  19. package/build/css/pdp-main-non-critical.css +1 -1
  20. package/build/css/pdp-main.css +1 -1
  21. package/build/css/plp-main.css +1 -1
  22. package/build/css/store-locator-main.css +1 -1
  23. package/build/js/basket.min.js +2 -2
  24. package/build/js/bundle.min.js +1 -1
  25. package/build/js/checkout.min.js +2 -2
  26. package/build/js/emulation.min.js +55 -8
  27. package/build/js/general.bundle.min.js +1 -1
  28. package/build/js/merged-checkout.min.js +2 -2
  29. package/build/js/my-orders.min.js +1 -0
  30. package/build/js/page/basket-v2.js +0 -14
  31. package/build/js/page/checkout-payment-details.js +0 -3
  32. package/build/js/page/components/order-summary.js +1 -9
  33. package/build/js/page/components/voucher.js +1 -1
  34. package/build/js/page/my-orders.js +165 -0
  35. package/build/js/pdp.bundle.min.js +1 -1
  36. package/build/js/plp.bundle.min.js +1 -1
  37. package/build/js/project-list.min.js +1 -1
  38. package/package.json +10 -2
  39. package/src/components/checkout-action.hbs +11 -14
  40. package/src/components/checkout-payment-details-v2.hbs +54 -100
  41. package/src/components/checkout_order-summary-new.hbs +3 -5
  42. package/src/components/checkout_voucher_large.hbs +16 -20
  43. package/src/components/flatpickr-calendar.hbs +26 -0
  44. package/src/components/my-account/active-orders/header.hbs +6 -2
  45. package/src/components/my-account/active-orders/list-orders.hbs +14 -2
  46. package/src/components/my-account/active-orders/order-header.hbs +1 -1
  47. package/src/components/my-account/active-orders/order.hbs +10 -6
  48. package/src/components/my-account/clipboard-code-card.hbs +1 -1
  49. package/src/components/my-account/empty-orders.hbs +9 -0
  50. package/src/components/my-account/mobile-nav.hbs +23 -19
  51. package/src/components/my-account/orders-nav.hbs +15 -0
  52. package/src/components/my-account/sort-by.hbs +3 -0
  53. package/src/components/my-account/user-account-actions.hbs +1 -1
  54. package/src/components/order-summary.hbs +56 -91
  55. package/src/components/payment-loader.hbs +0 -4
  56. package/src/data/footer_menu.json +0 -4
  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 +1 -15
  62. package/src/js/emulation/basket-data.js +3 -3
  63. package/src/js/emulation/mock.js +10 -0
  64. package/src/js/emulation/my-orders-local.js +41 -0
  65. package/src/js/emulation/paymentLoader.js +1 -5
  66. package/src/js/page/basket-v2.js +0 -14
  67. package/src/js/page/checkout-payment-details.js +0 -3
  68. package/src/js/page/components/order-summary.js +1 -9
  69. package/src/js/page/components/voucher.js +1 -1
  70. package/src/js/page/my-orders.js +165 -0
  71. package/src/layouts/basket-new.hbs +1 -1
  72. package/src/page_my-orders-empty.html +49 -0
  73. package/src/page_my-orders.html +64 -0
  74. package/src/page_shopping-cart-v2.html +16 -6
  75. package/src/scss/components/_checkout-action.scss +6 -132
  76. package/src/scss/components/_order-summary.scss +179 -260
  77. package/src/scss/components/_payments-v2.scss +0 -8
  78. package/src/scss/components/checkout-payment-details-v2.scss +0 -67
  79. package/src/scss/components/loader.scss +0 -8
  80. package/src/scss/components/my-account/_active-orders.scss +263 -0
  81. package/src/scss/components/my-account/_orders-nav.scss +61 -0
  82. package/src/scss/helpers/_variables.scss +1 -2
  83. package/src/scss/libs/flatpickr.scss +235 -0
  84. package/src/scss/main.scss +0 -1
  85. package/src/scss/pages/_checkout-widget.scss +35 -48
  86. package/src/scss/pages/my-account-v2.scss +1 -136
  87. package/src/scss/pages/page_checkout_delivery-new.scss +10 -110
  88. package/src/scss/pages/page_my-orders.scss +232 -0
  89. package/src/scss/pages/page_products-list-combined.scss +0 -1
  90. package/src/scss/pages/page_products-list.scss +0 -1
  91. package/src/scss/pages/page_shopping-cart-v2.scss +33 -94
  92. package/src/sitemap.html +2 -17
  93. package/build/img/billie-spinner.svg +0 -5
  94. package/build/img/payment/footer/billie.svg +0 -4
  95. package/build/js/page/basket/summary-mobile.js +0 -17
  96. package/build/js/page/components/sticky-order-observer.js +0 -49
  97. package/src/components/checkout-payment-info-block.hbs +0 -47
  98. package/src/components/checkout-payment-option.hbs +0 -40
  99. package/src/components/checkout-voucher-accordion.hbs +0 -15
  100. package/src/components/summary-mobile-bar.hbs +0 -17
  101. package/src/img/billie-spinner.svg +0 -5
  102. package/src/img/payment/footer/billie.svg +0 -4
  103. package/src/js/page/basket/summary-mobile.js +0 -17
  104. package/src/js/page/components/sticky-order-observer.js +0 -49
  105. package/src/page_payment-details-with-billie.html +0 -66
  106. package/src/page_product-details-billie.html +0 -86
  107. package/src/scss/components/_sticky-element-appearance.scss +0 -25
  108. package/src/scss/components/my-account/_order.scss +0 -112
@@ -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,86 +5,18 @@
5
5
  @import '../components/marketing-preferences';
6
6
 
7
7
  .page_checkout-delivery-new {
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 {
24
- padding: 20px 0 0;
25
-
26
- &__details {
27
- padding-top: 20px;
28
- font-size: 1rem;
29
-
30
- .checkout-widget {
31
- &__item {
32
- display: flex;
33
- justify-content: space-between;
34
- font-size: 1rem;
35
- line-height: 1.125rem;
36
- font-weight: 400;
37
- margin-bottom: 20px;
38
- padding: 0;
39
-
40
- &-bold {
41
- font-weight: 500;
42
- margin-bottom: 20px;
43
- }
44
-
45
- &-vat {
46
- font-size: .75rem;
47
- margin-top: -15px;
48
- }
49
- }
50
-
51
-
52
- &__details-discount {
53
- order: 1;
54
- }
55
- }
56
- }
57
-
58
- &__total {
59
- border: 0;
60
- display: flex;
61
- justify-content: space-between;
62
- margin-left: -25px;
63
- margin-right: -25px;
64
- margin-bottom: 0;
65
- padding: 20px 25px;
66
- color: #fff;
67
- background-color: #0a3055;
68
- font-size: 1.375rem;
69
- line-height: 1.5rem;
70
- font-weight: 400;
71
- }
72
- }
73
- }
74
-
75
- &__basked-id {
76
- padding: 26px 0;
77
- background: #f8f8f8;
78
- text-align: center;
79
- font-size: 1rem;
8
+ .summary {
9
+ .checkout-title__title {
10
+ color: $blue-ocean;
11
+ font-weight: 400;
12
+ line-height: 1.75rem;
13
+ }
80
14
 
81
- .id-number {
82
- font-weight: 700;
83
- }
84
- }
15
+ &__aside {
16
+ padding: 12px 30px 0;
85
17
 
86
- .accordion__header-icon-small {
87
- left: 85px;
18
+ .checkout-info-wrap {
19
+ padding: 0;
88
20
  }
89
21
  }
90
22
  }
@@ -469,20 +401,6 @@
469
401
  }
470
402
  }
471
403
  }
472
-
473
- .right-aside {
474
- .summary {
475
- .checkout-widget {
476
- &.checkout-widget_order-summary {
477
- .checkout-widget__total {
478
- font-weight: 400;
479
- margin-left: -20px;
480
- margin-right: -20px;
481
- }
482
- }
483
- }
484
- }
485
- }
486
404
  }
487
405
  }
488
406
 
@@ -637,24 +555,6 @@
637
555
  }
638
556
  }
639
557
  }
640
-
641
- .right-aside {
642
- .summary {
643
- .checkout-widget {
644
- &.checkout-widget_order-summary {
645
- .checkout-widget__total {
646
- font-weight: 400;
647
- margin-left: -30px;
648
- margin-right: -30px;
649
- }
650
- }
651
- }
652
-
653
- .summary__basked-id {
654
- margin-top: 13px;
655
- }
656
- }
657
- }
658
558
  }
659
559
  }
660
560
 
@@ -0,0 +1,232 @@
1
+ @import '../helpers/helpers';
2
+ @import '../components/my-account/orders-nav';
3
+ @import '../libs/flatpickr';
4
+ @import '../components/loader';
5
+
6
+ .my-orders {
7
+ padding-top: 0;
8
+
9
+ .notification {
10
+ &_info-message {
11
+ border: 0;
12
+ text-align: center;
13
+ margin: 0;
14
+ background: $virid-darker;
15
+ color: $white;
16
+ padding: 4px 5px;
17
+ font-size: .75rem;
18
+ }
19
+ }
20
+
21
+ &__wrap {
22
+ padding-top: 16px;
23
+ }
24
+
25
+ &__title {
26
+ margin-bottom: 0;
27
+ text-align: left;
28
+ }
29
+
30
+ .sort-orders {
31
+ margin-top: 16px;
32
+
33
+ .form-row {
34
+ padding: 0;
35
+ margin: 0;
36
+
37
+ &__label {
38
+ margin-bottom: 8px;
39
+ padding-right: 0;
40
+ padding-left: 0;
41
+ }
42
+
43
+ &__field {
44
+ padding-right: 0;
45
+ padding-left: 0;
46
+ }
47
+ }
48
+ }
49
+
50
+ .load-more-wrap {
51
+ margin-bottom: 0;
52
+ margin-top: 24px;
53
+
54
+ @media (hover: none) {
55
+ .btn-primary {
56
+ &:hover {
57
+ color: $white;
58
+ background-color: $blue;
59
+ border-color: $blue;
60
+ }
61
+
62
+ &:focus {
63
+ color: $blue;
64
+ background-color: $white;
65
+ border-color: $blue;
66
+ }
67
+ }
68
+ }
69
+ }
70
+
71
+ .active-orders {
72
+ &__item {
73
+ border-radius: 4px;
74
+ border: 1px solid $gray;
75
+
76
+ &:first-child {
77
+ margin-top: 0;
78
+ }
79
+ }
80
+ }
81
+
82
+ .sort-orders .form-row__field select {
83
+ transition: all .3s;
84
+ }
85
+ }
86
+
87
+ .empty-orders {
88
+ margin-top: 24px;
89
+ padding: 40px 24px;
90
+ background: $ma-white;
91
+ border-radius: 4px;
92
+ display: flex;
93
+ flex-direction: column;
94
+ justify-content: center;
95
+ align-items: center;
96
+
97
+ &__title {
98
+ font-size: 20px;
99
+ font-style: normal;
100
+ font-weight: 500;
101
+ line-height: 32px;
102
+ margin-bottom: 0;
103
+ }
104
+
105
+ &__image {
106
+ margin-top: 16px;
107
+ }
108
+
109
+ &__btn {
110
+ margin-top: 16px;
111
+ }
112
+ }
113
+
114
+ @include media-breakpoint-up(sm) {
115
+ .my-orders {
116
+ &__sorts {
117
+ margin-top: 24px;
118
+ display: flex;
119
+ justify-content: space-between;
120
+ grid-gap: 16px;
121
+ }
122
+
123
+ .flatpickr-datepicker,
124
+ .sort-orders {
125
+ margin-top: 0;
126
+ }
127
+
128
+ .flatpickr-datepicker {
129
+ width: 65%;
130
+ }
131
+
132
+ &__wrap {
133
+ padding-top: 24px;
134
+ }
135
+
136
+ .active-orders {
137
+ margin-top: 16px;
138
+ }
139
+
140
+ .notification_info-message {
141
+ font-size: .875rem;
142
+ }
143
+ }
144
+
145
+ .empty-orders {
146
+ &__title {
147
+ font-size: 24px;
148
+ }
149
+ }
150
+ }
151
+
152
+ @include media-breakpoint-up(md) {
153
+ .my-orders {
154
+ padding-bottom: 70px;
155
+
156
+ .flatpickr-datepicker,
157
+ .sort-orders {
158
+ width: 100%;
159
+ }
160
+
161
+ &__wrap {
162
+ padding-top: 40px;
163
+ }
164
+ }
165
+ }
166
+
167
+ @include media-breakpoint-up(lg) {
168
+ .my-orders {
169
+ &__sorts {
170
+ max-width: 580px;
171
+ }
172
+ }
173
+ }
174
+
175
+ @include media-breakpoint-up(xl) {
176
+ .my-orders {
177
+ &__header {
178
+ display: grid;
179
+ grid-template-columns: auto 1fr;
180
+ align-items: center;
181
+ }
182
+
183
+ &__sorts {
184
+ margin-top: 0;
185
+ width: 100%;
186
+ max-width: 822px;
187
+ justify-content: flex-end;
188
+ margin-left: auto;
189
+ }
190
+
191
+ .nav-orders {
192
+ grid-column: span 2;
193
+ }
194
+
195
+ .flatpickr-datepicker__label {
196
+ flex-wrap: nowrap;
197
+ display: flex;
198
+ white-space: nowrap;
199
+ margin-bottom: 0;
200
+ margin-right: 16px;
201
+ }
202
+
203
+ .flatpickr-datepicker,
204
+ .sort-orders .form-row {
205
+ display: flex;
206
+ align-items: center;
207
+ flex-wrap: nowrap;
208
+ justify-content: flex-end;
209
+ }
210
+
211
+ .sort-orders {
212
+ flex: 80%;
213
+
214
+ .form-row__label {
215
+ width: auto;
216
+ white-space: nowrap;
217
+ margin-bottom: 0;
218
+ margin-right: 16px;
219
+ }
220
+ }
221
+
222
+ .flatpickr-datepicker__field,
223
+ .form-row__field {
224
+ width: 100%;
225
+ max-width: 282px;
226
+ }
227
+ }
228
+
229
+ .empty-orders {
230
+ margin-top: 40px;
231
+ }
232
+ }
@@ -36,7 +36,6 @@ $color-bar-radius: 3px;
36
36
  font-weight: 500;
37
37
  line-height: 1.5;
38
38
  padding: 1em 1.25em;
39
- border: 2px solid $blue;
40
39
  margin-bottom: 20px;
41
40
  text-align: center;
42
41
 
@@ -31,7 +31,6 @@
31
31
  font-weight: 500;
32
32
  line-height: 1.5;
33
33
  padding: 1em 1.25em;
34
- border: 2px solid $blue;
35
34
  margin-bottom: 20px;
36
35
  text-align: center;
37
36