wickes-css2 2.98.0-develop.7 → 2.98.0-develop.9

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 (169) hide show
  1. package/Readme.md +3 -3
  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/energy-efficiency.css +1 -1
  5. package/build/css/components/global-search.css +1 -1
  6. package/build/css/components/legal-info.css +1 -1
  7. package/build/css/components/loader.css +1 -1
  8. package/build/css/components/price-block-v2-critical.css +1 -1
  9. package/build/css/components/price-block-v2.css +1 -1
  10. package/build/css/homepage-main.css +1 -1
  11. package/build/css/main.css +1 -1
  12. package/build/css/my-account-main-v2.css +1 -1
  13. package/build/css/my-account-main.css +1 -1
  14. package/build/css/pages/checkout-new.css +1 -1
  15. package/build/css/pages/checkout.css +1 -1
  16. package/build/css/pages/my-account-v2.css +1 -1
  17. package/build/css/pages/page_home.css +1 -1
  18. package/build/css/pages/page_my-order.css +1 -1
  19. package/build/css/pages/page_my-orders.css +1 -1
  20. package/build/css/pages/page_quiz.css +1 -1
  21. package/build/css/pages/page_track-my-order.css +1 -1
  22. package/build/css/pages/page_wismo-details.css +1 -1
  23. package/build/css/pdp-main-before-combine.css +1 -1
  24. package/build/css/pdp-main-critical.css +1 -1
  25. package/build/css/pdp-main-non-critical.css +1 -1
  26. package/build/css/pdp-main.css +1 -1
  27. package/build/css/plp-main.css +1 -1
  28. package/build/css/store-locator-main.css +1 -1
  29. package/build/img/billie-logo.svg +4 -0
  30. package/build/img/billie-modal.svg +4 -0
  31. package/build/img/billie-pdp.svg +11 -0
  32. package/build/img/billie-spinner.svg +5 -0
  33. package/build/img/billie.svg +4 -0
  34. package/build/img/calm-primary-logo.png +0 -0
  35. package/build/img/payment/checkout/billie.svg +4 -0
  36. package/build/img/payment/footer/billie.svg +4 -0
  37. package/build/js/basket.min.js +2 -2
  38. package/build/js/bundle.min.js +1 -1
  39. package/build/js/checkout.min.js +1 -1
  40. package/build/js/emulation.min.js +55 -131
  41. package/build/js/general.bundle.min.js +1 -1
  42. package/build/js/merged-checkout.min.js +1 -1
  43. package/build/js/page/basket-v2.js +16 -7
  44. package/build/js/page/billie-business-type.js +34 -0
  45. package/build/js/page/checkout-payment-details.js +8 -0
  46. package/build/js/page/components/charity.js +58 -43
  47. package/build/js/page/components/modal-observer.js +51 -0
  48. package/build/js/page/pdp.js +1 -4
  49. package/build/js/pdp.bundle.min.js +1 -1
  50. package/build/js/plp.bundle.min.js +1 -1
  51. package/build/js/project-list.min.js +1 -1
  52. package/package.json +2 -2
  53. package/src/components/address-billie.hbs +42 -0
  54. package/src/components/address-postcode-look-up.hbs +2 -2
  55. package/src/components/basket-charity-donations-new.hbs +40 -0
  56. package/src/components/billie-modal.hbs +41 -0
  57. package/src/components/billie-online-messaging.hbs +14 -0
  58. package/src/components/checkout-edit-billing-address.hbs +20 -6
  59. package/src/components/checkout-payment-details-v2.hbs +94 -55
  60. package/src/components/checkout-payment-info-block.hbs +49 -0
  61. package/src/components/checkout-payment-option.hbs +40 -0
  62. package/src/components/checkout_order-summary-new.hbs +13 -18
  63. package/src/components/checkout_payment-new.hbs +10 -1
  64. package/src/components/donation-cart-new.hbs +38 -0
  65. package/src/components/header-minicart.hbs +3 -3
  66. package/src/components/legal-info.hbs +25 -22
  67. package/src/components/modal.hbs +4 -1
  68. package/src/components/my-account/active-orders/list-orders.hbs +1 -1
  69. package/src/components/my-account/active-orders/order.hbs +2 -0
  70. package/src/components/my-account/active-orders/payment-status.hbs +17 -0
  71. package/src/components/my-account/payment-status.hbs +19 -0
  72. package/src/components/my-account/saving-totaliser.hbs +52 -0
  73. package/src/components/order-summary.hbs +3 -0
  74. package/src/components/payment-loader.hbs +59 -21
  75. package/src/components/payments-checkout-v2.hbs +12 -6
  76. package/src/components/payments-checkout.hbs +6 -0
  77. package/src/components/payments.hbs +10 -4
  78. package/src/components/pdp-price-actions.hbs +1 -1
  79. package/src/components/price-block-v2.hbs +14 -8
  80. package/src/components/track-my-order-info.hbs +3 -1
  81. package/src/components/wismo-payment.hbs +16 -0
  82. package/src/data/data_confirmation-summary.json +3 -3
  83. package/src/data/data_latest-offers.json +1 -1
  84. package/src/data/data_mini-basket.json +6 -80
  85. package/src/data/data_page-category.json +1 -2
  86. package/src/data/data_page-merge-basket.json +1 -1
  87. package/src/data/data_shopping-cart-v2.json +51 -0
  88. package/src/data/data_store-locator-v2.json +1 -1
  89. package/src/data/data_wismo.json +53 -0
  90. package/src/data/my-account/data_my-account.json +57 -0
  91. package/src/elements/radiobutton.hbs +7 -0
  92. package/src/img/billie-logo.svg +4 -0
  93. package/src/img/billie-modal.svg +4 -0
  94. package/src/img/billie-pdp.svg +11 -0
  95. package/src/img/billie-spinner.svg +5 -0
  96. package/src/img/billie.svg +4 -0
  97. package/src/img/calm-primary-logo.png +0 -0
  98. package/src/img/payment/checkout/billie.svg +4 -0
  99. package/src/img/payment/footer/billie.svg +4 -0
  100. package/src/js/components/general/text-clamp.js +1 -2
  101. package/src/js/emulation/big-wins.js +29 -29
  102. package/src/js/emulation/mock.js +1 -60
  103. package/src/js/emulation/paymentLoader.js +22 -11
  104. package/src/js/emulation/popover-mini-basket.js +2 -2
  105. package/src/js/page/basket-v2.js +16 -7
  106. package/src/js/page/billie-business-type.js +34 -0
  107. package/src/js/page/checkout-payment-details.js +8 -0
  108. package/src/js/page/components/charity.js +58 -43
  109. package/src/js/page/components/modal-observer.js +51 -0
  110. package/src/js/page/pdp.js +1 -4
  111. package/src/layouts/base.hbs +0 -6
  112. package/src/layouts/my-account-v2.hbs +0 -7
  113. package/src/page_basket-billie.html +54 -0
  114. package/src/page_checkout_confirmation-billie.html +339 -0
  115. package/src/page_checkout_delivery-address-customer-journey.html +2 -2
  116. package/src/page_my-account-trade-pro-components.html +27 -0
  117. package/src/page_my-account-trade-pro.html +7 -0
  118. package/src/page_my-account.html +1 -0
  119. package/src/page_my-order.html +1 -1
  120. package/src/page_payment-details-with-billie.html +67 -0
  121. package/src/page_product-details-billie.html +87 -0
  122. package/src/page_product-details-saved-pl.html +13 -16
  123. package/src/page_product-details-with-global-search-v2.html +0 -1
  124. package/src/page_shopping-cart-v2.html +4 -3
  125. package/src/page_wismo-details.html +2 -2
  126. package/src/partials/head.hbs +1 -5
  127. package/src/scss/common/_app.scss +0 -1
  128. package/src/scss/common/_elements.scss +4 -0
  129. package/src/scss/common/_scroll-disable.scss +2 -4
  130. package/src/scss/components/_billie-modal.scss +181 -0
  131. package/src/scss/components/_billie-online-messaging.scss +46 -0
  132. package/src/scss/components/_charity-donations.scss +114 -186
  133. package/src/scss/components/_donation-cart-new.scss +192 -0
  134. package/src/scss/components/_payments-checkout.scss +2 -1
  135. package/src/scss/components/_payments-v2.scss +8 -0
  136. package/src/scss/components/_tooltip.scss +19 -0
  137. package/src/scss/components/checkout-payment-details-v2.scss +237 -0
  138. package/src/scss/components/legal-info.scss +0 -61
  139. package/src/scss/components/loader.scss +8 -0
  140. package/src/scss/components/my-account/_active-orders.scss +2 -0
  141. package/src/scss/components/my-account/_payment-status.scss +84 -0
  142. package/src/scss/components/my-account/_saving-totaliser.scss +175 -0
  143. package/src/scss/components/price-block-v2-critical.scss +4 -0
  144. package/src/scss/components/price-block-v2.scss +4 -0
  145. package/src/scss/globals/_global-components.scss +0 -1
  146. package/src/scss/helpers/_mixins.scss +0 -8
  147. package/src/scss/helpers/_variables.scss +0 -1
  148. package/src/scss/homepage-main.scss +0 -1
  149. package/src/scss/main.scss +0 -1
  150. package/src/scss/pages/_checkout-confirmation-new.scss +10 -3
  151. package/src/scss/pages/checkout-new.scss +3 -0
  152. package/src/scss/pages/my-account-v2.scss +3 -0
  153. package/src/scss/pages/page_track-my-order.scss +0 -21
  154. package/src/scss/pages/page_wismo-details.scss +1 -0
  155. package/src/scss/partials/_header-critical.scss +0 -14
  156. package/src/scss/partials/_header.scss +0 -14
  157. package/src/scss/pdp-main-critical.scss +1 -0
  158. package/src/scss/pdp-main.scss +2 -0
  159. package/src/sitemap.html +32 -2
  160. package/src/components/mini-basket/mini-basket-empty.hbs +0 -17
  161. package/src/components/mini-basket/mini-basket.hbs +0 -39
  162. package/src/components/mini-basket/product-item.hbs +0 -24
  163. package/src/js/components/general/backdrop.js +0 -23
  164. package/src/js/components/general/cart-slider.js +0 -16
  165. package/src/js/components/general/create-popup-slider.js +0 -196
  166. package/src/js/components/general/mini-basket-slider.js +0 -8
  167. package/src/js/emulation/custom-slider-emulation.js +0 -28
  168. package/src/page_shopping-cart-charity.html +0 -56
  169. package/src/scss/components/_custom-slider.scss +0 -541
@@ -1,541 +0,0 @@
1
- @import '../helpers/helpers';
2
-
3
- .custom-slider {
4
- height: 100%;
5
- margin-bottom: 0;
6
- border-radius: 0;
7
- position: fixed;
8
- background-color: $white;
9
- box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
10
- transition: transform .4s ease, opacity .4s ease;
11
- opacity: 0;
12
- display: flex;
13
- flex-direction: column;
14
- justify-content: space-between;
15
- z-index: 1041;
16
-
17
- &__wrap {
18
- padding: 8px 16px 0;
19
- height: 100%;
20
- width: 100%;
21
- display: flex;
22
- flex-direction: column;
23
- overflow-y: auto;
24
-
25
- &--scroll {
26
- margin-bottom: 72px;
27
- }
28
- }
29
-
30
- &.bottom-to-top {
31
- bottom: 0;
32
- left: 0;
33
- right: 0;
34
- transform: translateY(100%);
35
- }
36
-
37
- &.right-to-left {
38
- top: 0;
39
- bottom: 0;
40
- right: 0;
41
- transform: translateX(100%);
42
- }
43
-
44
- &.show {
45
- transform: translateY(0) translateX(0);
46
- opacity: 1;
47
- }
48
-
49
- &__header {
50
- display: flex;
51
- align-items: center;
52
- justify-content: space-between;
53
-
54
- .link {
55
- display: flex;
56
- align-items: center;
57
- font-weight: 500;
58
- text-decoration: none;
59
-
60
- &:hover {
61
- text-decoration: underline;
62
- }
63
-
64
- .icon-wrap {
65
- font-size: 1.2rem;
66
- margin-right: 8px;
67
- }
68
- }
69
-
70
- .close-popup {
71
- cursor: pointer;
72
- font-size: 1rem;
73
- }
74
-
75
- .icon-wrap.close-popup {
76
- color: $warm-grey;
77
- background: none;
78
- border: 0;
79
- outline: none;
80
- }
81
- }
82
-
83
- &__message {
84
- margin-top: 8px;
85
- display: flex;
86
-
87
- .icon-wrap {
88
- font-size: 1rem;
89
- margin-right: 8px;
90
-
91
- &.success {
92
- color: $green;
93
- }
94
-
95
- &.warning {
96
- color: $orange;
97
- }
98
-
99
- &.error {
100
- color: $app-error;
101
- }
102
- }
103
-
104
- .messages {
105
- display: flex;
106
- flex-direction: column;
107
- border: none;
108
- background: none;
109
-
110
- &__text {
111
- font-size: 1rem;
112
- font-weight: 500;
113
- line-height: 1.5rem;
114
- margin-bottom: 0;
115
- }
116
-
117
- &__notice {
118
- margin-top: 4px;
119
- font-size: .75rem;
120
- font-weight: 400;
121
- line-height: 1rem;
122
- color: $squant;
123
- }
124
- }
125
- }
126
-
127
- .products {
128
- margin-top: 8px;
129
- margin-bottom: 0;
130
- padding-left: 0;
131
- list-style-type: none;
132
-
133
- &__item {
134
- display: flex;
135
- flex-direction: row;
136
- align-items: flex-start;
137
- justify-content: space-between;
138
- grid-gap: 8px;
139
- padding: 8px 0;
140
- border: none;
141
-
142
- & + .products__item {
143
- border-top: 1px solid $gray-light;
144
- }
145
- }
146
-
147
- &__image {
148
- width: 100%;
149
- height: auto;
150
- max-width: 64px;
151
-
152
- .product-img {
153
- width: 100%;
154
- height: auto;
155
- }
156
- }
157
-
158
- &__details {
159
- flex: 1;
160
-
161
- .item,
162
- .price {
163
- margin-bottom: 0;
164
- }
165
-
166
- .title {
167
- font-size: .875rem;
168
- font-weight: 500;
169
- line-height: 1.375rem;
170
- text-decoration: none;
171
- margin-bottom: 0;
172
- }
173
-
174
- .item {
175
- font-size: .75rem;
176
- font-weight: 400;
177
- line-height: 1rem;
178
- color: $squant;
179
-
180
- .value {
181
- color: $gray-dark;
182
- margin-left: 0;
183
- font-weight: 400;
184
- }
185
-
186
- & + .item {
187
- margin-top: 4px;
188
- }
189
- }
190
-
191
- .price {
192
- @include font-size(18);
193
- @include line-height(24);
194
- margin-top: 8px;
195
- font-weight: 700;
196
- color: $blue-dark;
197
-
198
- .inc {
199
- @include font-size(12);
200
- @include line-height(16);
201
- font-weight: 500;
202
- }
203
- }
204
-
205
- &.product-card__content {
206
- margin-top: 0;
207
- padding: 0;
208
- }
209
- }
210
-
211
- &.popover-mini-basket__cards-holder {
212
- .card {
213
- margin-bottom: 0;
214
-
215
- & + .card {
216
- border-top: 1px solid $gray-light;
217
- }
218
- }
219
- }
220
- }
221
-
222
- &__footer {
223
- margin-top: auto;
224
- display: flex;
225
- grid-gap: 16px;
226
- padding: 16px;
227
- background: $white;
228
- transition: all .3s ease;
229
-
230
- &.footer-fixed {
231
- box-shadow: 0px -4px 12px 0px rgba(0, 0, 0, .08);
232
- position: fixed;
233
- width: 100%;
234
- left: 0;
235
- bottom: 0;
236
- transform: none;
237
- }
238
- }
239
-
240
- &__ctas {
241
- display: flex;
242
- grid-gap: 16px;
243
-
244
- .btn-checkout {
245
- display: flex;
246
- justify-content: center;
247
- align-items: center;
248
- }
249
- }
250
-
251
- &__content {
252
- margin-top: 16px;
253
- }
254
-
255
- .icon-wrap {
256
- @include icon-wrap;
257
-
258
- &--xl {
259
- width: 124px;
260
- height: 124px;
261
- font-size: 5rem;
262
- color: $blue-satin;
263
- }
264
- }
265
-
266
- &__count {
267
- @include font-size(18);
268
- @include line-height(24);
269
- font-weight: 700;
270
- }
271
-
272
- &__empty {
273
- display: flex;
274
- flex-direction: column;
275
- align-items: center;
276
- justify-content: center;
277
- height: 100%;
278
-
279
- .text {
280
- @include font-size(16);
281
- @include line-height(24);
282
- margin-top: 16px;
283
- margin-bottom: 0;
284
- font-weight: 400;
285
- }
286
-
287
- .close-popup {
288
- margin-top: 24px;
289
- }
290
- }
291
-
292
- &.mini-basket {
293
- .custom-slider__wrap {
294
- padding-top: 16px;
295
-
296
- &--scroll {
297
- margin-bottom: 120px;
298
- }
299
- }
300
-
301
- .custom-slider__footer {
302
- box-shadow: 0px -4px 12px 0px rgba(0, 0, 0, .08);
303
- flex-direction: column;
304
- }
305
- }
306
-
307
- .mini-basket {
308
- &__total {
309
- display: flex;
310
- flex-direction: column;
311
-
312
- &-toggle {
313
- display: flex;
314
- align-items: center;
315
- justify-content: space-between;
316
- width: 100%;
317
- background: transparent;
318
- padding: 0;
319
-
320
- .text {
321
- @include font-size(14);
322
- @include line-height(22);
323
- font-weight: 500;
324
- }
325
-
326
- .value {
327
- @include font-size(18);
328
- @include line-height(24);
329
- font-weight: 700;
330
- }
331
-
332
- &[aria-expanded="true"] {
333
- .icon-wrap .arrow-icon {
334
- transform: rotate(180deg);
335
- }
336
- }
337
- }
338
-
339
- &-collapse {
340
- padding-left: 32px;
341
- }
342
-
343
- .checkout-widget {
344
- &__details {
345
- padding-left: 32px;
346
- margin-bottom: 0;
347
- list-style-type: none;
348
- }
349
-
350
- &__item {
351
- @include font-size(14);
352
- @include line-height(22);
353
- font-weight: 400;
354
- display: flex;
355
- justify-content: space-between;
356
- align-items: center;
357
-
358
- &:first-child {
359
- padding-top: 16px;
360
- }
361
-
362
- &-value {
363
- font-weight: 500;
364
- }
365
-
366
- & + .checkout-widget__item:not(.checkout-widget__item-vat) {
367
- margin-top: 16px;
368
- }
369
-
370
- &-vat {
371
- @include font-size(12);
372
- @include line-height(16);
373
- font-weight: 400;
374
- color: $squant;
375
- padding-bottom: 16px;
376
- margin-top: 4px;
377
- margin-bottom: 16px;
378
- border-bottom: 1px solid $gray-light;
379
- }
380
-
381
- &-free {
382
- align-items: center;
383
- justify-content: flex-start;
384
-
385
- span {
386
- display: flex;
387
- align-items: center;
388
-
389
- .icon {
390
- margin-left: 10px;
391
- color: $polishedPine;
392
- }
393
- }
394
- }
395
- }
396
-
397
- &__details-discount {
398
- margin-top: 16px;
399
- display: grid;
400
- grid-template-columns: 1fr auto;
401
-
402
- .checkout-widget__detail-name {
403
- cursor: pointer;
404
- }
405
-
406
- .checkout-widget__detail-value {
407
- grid-column: 2;
408
- grid-row: 1;
409
- margin-left: auto;
410
- font-weight: 500;
411
- }
412
-
413
- .checkout-widget__details-hidden {
414
- padding-left: 15px;
415
- font-size: .75rem;
416
- line-height: 1rem;
417
- list-style-type: disc;
418
- font-weight: 400;
419
- color: $gray-dark;
420
- }
421
-
422
- .checkout-widget__detail-name {
423
- .icon {
424
- color: $blue;
425
- font-size: 1rem;
426
- transition: all .3s ease;
427
- transform: rotate(180deg);
428
- }
429
-
430
- &[aria-expanded="true"] {
431
- .icon {
432
- transform: rotate(0);
433
- }
434
- }
435
- }
436
-
437
- .checkout-widget__voucher-remove {
438
- display: none;
439
- }
440
- }
441
- }
442
- }
443
-
444
- &__wrap-total {
445
- display: flex;
446
- align-items: center;
447
-
448
- .icon-wrap {
449
- color: $warm-grey;
450
- margin-right: 8px;
451
- }
452
- }
453
- }
454
- }
455
-
456
- @include media-breakpoint-up(sm) {
457
- .custom-slider {
458
- &__wrap {
459
- padding: 24px 24px 0;
460
- margin: 0 auto;
461
-
462
- &--scroll {
463
- margin-bottom: 88px;
464
- }
465
- }
466
-
467
- .products {
468
- margin-top: 12px;
469
-
470
- &__details .title {
471
- @include multiline-ellipsis();
472
- }
473
-
474
- &__item {
475
- padding: 12px 0;
476
- grid-gap: 12px;
477
- }
478
-
479
- &__image {
480
- max-width: 94px;
481
- }
482
- }
483
-
484
- &__footer {
485
- padding: 24px;
486
- }
487
-
488
- &__content {
489
- margin-top: 24px;
490
- }
491
-
492
- &.mini-basket {
493
- .custom-slider__wrap {
494
- padding-top: 24px;
495
-
496
- &--scroll {
497
- margin-bottom: 132px;
498
- }
499
- }
500
- }
501
- }
502
- }
503
-
504
- @include media-breakpoint-up(md) {
505
- .custom-slider {
506
- &__header {
507
- position: relative;
508
-
509
- .link.close-popup {
510
- display: none;
511
- }
512
-
513
- .icon-wrap.close-popup {
514
- position: absolute;
515
- right: 0;
516
- top: 0;
517
- }
518
- }
519
-
520
- &__message {
521
- margin-top: 0;
522
-
523
- .message__text {
524
- max-width: 90%;
525
- }
526
- }
527
-
528
- &__wrap {
529
- width: 500px;
530
- position: relative;
531
- }
532
- }
533
- }
534
-
535
- @include media-breakpoint-up(xl) {
536
- .custom-slider {
537
- &__wrap {
538
- width: 600px;
539
- }
540
- }
541
- }