wickes-css2 2.117.0-develop.3 → 2.117.0-gift-cards.1

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 (102) hide show
  1. package/Readme.md +0 -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/homepage-main.css +1 -1
  5. package/build/css/kitchen-plp-main.css +1 -1
  6. package/build/css/main.css +1 -1
  7. package/build/css/my-account-main-v2.css +1 -1
  8. package/build/css/my-account-main.css +1 -1
  9. package/build/css/pages/checkout-new.css +1 -1
  10. package/build/css/pages/checkout.css +1 -1
  11. package/build/css/pages/page_my-order.css +1 -1
  12. package/build/css/pages/page_wismo-details.css +1 -1
  13. package/build/css/pdp-main-before-combine.css +1 -1
  14. package/build/css/pdp-main-critical.css +1 -1
  15. package/build/css/pdp-main-non-critical.css +1 -1
  16. package/build/css/pdp-main.css +1 -1
  17. package/build/css/plp-main.css +1 -1
  18. package/build/css/store-locator-main.css +1 -1
  19. package/build/img/payment/checkout/giftcard.svg +28 -0
  20. package/build/img/payment/footer/giftcard.svg +28 -0
  21. package/build/js/account-members.min.js +1 -1
  22. package/build/js/add-project-list-id.min.js +1 -1
  23. package/build/js/address-book.min.js +1 -1
  24. package/build/js/basket.min.js +2 -2
  25. package/build/js/bundle.min.js +1 -1
  26. package/build/js/change-password.min.js +1 -1
  27. package/build/js/checkout.min.js +2 -2
  28. package/build/js/emulation.min.js +424 -82
  29. package/build/js/general.bundle.min.js +1 -1
  30. package/build/js/gift-cards.min.js +1 -1
  31. package/build/js/merged-checkout.min.js +2 -2
  32. package/build/js/page/bloomreach-widget/bloomreach-widget-core.js +1 -3
  33. package/build/js/page/checkout-payment-details.js +114 -10
  34. package/build/js/page/components/gift-cards.js +524 -115
  35. package/build/js/page/components/postcode-lookup/postcode-lookup-api.js +56 -0
  36. package/build/js/page/components/postcode-lookup/postcode-lookup-render.js +98 -0
  37. package/build/js/page/components/postcode-lookup/postcode-lookup-validation.js +81 -0
  38. package/build/js/page/components/postcode-lookup.js +503 -0
  39. package/build/js/page/ripple/bulk-add.js +2 -2
  40. package/build/js/page/ripple/thumb-gallery.js +14 -8
  41. package/build/js/page/utils/address-utils.js +32 -0
  42. package/build/js/page/utils/validation.js +54 -1
  43. package/build/js/pdp.bundle.min.js +2 -2
  44. package/build/js/personal-details.min.js +1 -1
  45. package/build/js/plp.bundle.min.js +1 -1
  46. package/build/js/postcode-checker.min.js +1 -1
  47. package/build/js/project-list.min.js +57 -2
  48. package/build/js/quiz.min.js +1 -1
  49. package/build/js/track-my-order.min.js +1 -1
  50. package/package.json +5 -1
  51. package/src/components/checkout-payment-details-v2.hbs +1 -0
  52. package/src/components/checkout_order-summary-new.hbs +6 -0
  53. package/src/components/checkout_payment-new.hbs +35 -8
  54. package/src/components/gift-cards.hbs +8 -15
  55. package/src/components/order-address.hbs +28 -0
  56. package/src/components/payments.hbs +7 -6
  57. package/src/components/postcode-lookup-v2.hbs +85 -0
  58. package/src/components/wismo-giftcard-payment-item.hbs +29 -0
  59. package/src/components/wismo-payment.hbs +10 -0
  60. package/src/data/data_checkout-giftcards.json +7 -0
  61. package/src/data/data_delivery-address-v2.json +4 -0
  62. package/src/data/data_payments-checkout.json +4 -0
  63. package/src/data/data_postcode-lookup.json +200 -0
  64. package/src/data/data_wismo.json +46 -1
  65. package/src/data/footer_menu.json +4 -0
  66. package/src/elements/input.hbs +3 -1
  67. package/src/img/payment/checkout/giftcard.svg +28 -0
  68. package/src/img/payment/footer/giftcard.svg +28 -0
  69. package/src/js/components/general/footer.js +63 -56
  70. package/src/js/emulation/checkout-payment-details.js +2 -0
  71. package/src/js/emulation/gift-cards.js +22 -0
  72. package/src/js/emulation/mock.js +21 -20
  73. package/src/js/emulation/postcode-checker.js +1 -1
  74. package/src/js/emulation/postcode-lookup.js +122 -0
  75. package/src/js/page/bloomreach-widget/bloomreach-widget-core.js +1 -3
  76. package/src/js/page/checkout-payment-details.js +114 -10
  77. package/src/js/page/components/gift-cards.js +524 -115
  78. package/src/js/page/components/postcode-lookup/postcode-lookup-api.js +56 -0
  79. package/src/js/page/components/postcode-lookup/postcode-lookup-render.js +98 -0
  80. package/src/js/page/components/postcode-lookup/postcode-lookup-validation.js +81 -0
  81. package/src/js/page/components/postcode-lookup.js +503 -0
  82. package/src/js/page/ripple/bulk-add.js +2 -2
  83. package/src/js/page/ripple/thumb-gallery.js +14 -8
  84. package/src/js/page/utils/address-utils.js +32 -0
  85. package/src/js/page/utils/validation.js +54 -1
  86. package/src/page_checkout_confirmation-gift-card-split-payment.html +339 -0
  87. package/src/page_checkout_confirmation-gift-card.html +339 -0
  88. package/src/page_my_account_payment_info_gift_cards.html +96 -0
  89. package/src/page_my_account_payment_info_gift_cards_split_payment.html +96 -0
  90. package/src/page_product-details-billie.html +2 -0
  91. package/src/page_product-details-clearpay.html +1 -0
  92. package/src/scss/common/_CTAs.scss +4 -0
  93. package/src/scss/components/_gift-cards.scss +66 -9
  94. package/src/scss/components/_payments-checkout.scss +2 -2
  95. package/src/scss/components/_payments-v2.scss +5 -7
  96. package/src/scss/components/_postcode-lookup-v2.scss +164 -0
  97. package/src/scss/components/checkout-payment-details-v2.scss +1 -0
  98. package/src/scss/helpers/_CTAs.scss +26 -0
  99. package/src/scss/helpers/_variables.scss +2 -0
  100. package/src/scss/pages/_checkout-confirmation-new.scss +96 -3
  101. package/src/scss/pages/page_wismo-details.scss +29 -0
  102. package/src/sitemap.html +24 -0
@@ -18,6 +18,17 @@
18
18
  margin-bottom: 0;
19
19
  }
20
20
  }
21
+
22
+ &--disabled {
23
+ .giftcard-inline__title {
24
+ color: $blue-disabled;
25
+ }
26
+
27
+ .giftcard-add,
28
+ .giftcard-add__text {
29
+ color: $blue-disabled;
30
+ }
31
+ }
21
32
  }
22
33
 
23
34
  .giftcard-add {
@@ -28,9 +39,27 @@
28
39
  text-decoration: none;
29
40
  cursor: pointer;
30
41
 
42
+ &__icon-wrap {
43
+ width: 24px;
44
+ height: 24px;
45
+ flex: 0 0 24px;
46
+
47
+ display: inline-flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ }
51
+
31
52
  &__icon {
32
- width: 16px;
33
- height: 16px;
53
+ display: block;
54
+ line-height: 1;
55
+ font-size: 14px;
56
+ width: 14px;
57
+ height: 14px;
58
+ }
59
+
60
+ &__icon.svg-inline--fa {
61
+ width: 14px;
62
+ height: 14px;
34
63
  }
35
64
 
36
65
  &__text {
@@ -134,6 +163,21 @@
134
163
  pointer-events: none;
135
164
  }
136
165
 
166
+ .giftcard__field--pin .giftcard__input {
167
+ &::-ms-reveal {
168
+ display: none;
169
+ }
170
+
171
+ &::-webkit-credentials-auto-fill-button {
172
+ display: none !important;
173
+ visibility: hidden;
174
+ pointer-events: none;
175
+ width: 0;
176
+ height: 0;
177
+ margin: 0;
178
+ }
179
+ }
180
+
137
181
  .form-row .toggle-show {
138
182
  font-size: 1rem;
139
183
  cursor: pointer;
@@ -153,7 +197,7 @@
153
197
  border-radius: 4px;
154
198
  background: $white;
155
199
  padding: 15px 16px;
156
- order: 2;
200
+ order: 1;
157
201
 
158
202
  &__inner {
159
203
  display: flex;
@@ -186,6 +230,7 @@
186
230
  .giftcard-summary {
187
231
  position: relative;
188
232
  width: 100%;
233
+ order: 2;
189
234
 
190
235
  &__hint {
191
236
  margin-top: 16px;
@@ -279,11 +324,11 @@
279
324
  }
280
325
 
281
326
  .giftcard-inline__fields > .form-row.giftcard__field--pin.giftcard__field--pin {
282
- width: 116px;
327
+ width: 40%;
283
328
  }
284
329
 
285
330
  .giftcard-inline__fields > .form-row.giftcard__field--number.giftcard__field--number {
286
- width: 224px;
331
+ width: 60%;
287
332
  }
288
333
 
289
334
  .giftcard__actions {
@@ -301,15 +346,26 @@
301
346
  }
302
347
  }
303
348
  }
349
+
350
+ .order-address__cols {
351
+ display: flex;
352
+ align-items: flex-start;
353
+ gap: 16px;
354
+
355
+ > * {
356
+ flex: 1 1 0;
357
+ min-width: 0;
358
+ }
359
+ }
304
360
  }
305
361
 
306
362
  @include media-breakpoint-up(md) {
307
363
  .giftcard-inline__fields > .form-row.giftcard__field--pin.giftcard__field--pin {
308
- width: 214px;
364
+ width: 45%;
309
365
  }
310
366
 
311
367
  .giftcard-inline__fields > .form-row.giftcard__field--number.giftcard__field--number {
312
- width: 240px;
368
+ width: 55%;
313
369
  }
314
370
 
315
371
  .giftcard-inline__title {
@@ -328,8 +384,9 @@
328
384
  }
329
385
 
330
386
  @include media-breakpoint-up(lg) {
331
- .giftcard-inline__fields {
332
- max-width: 470px;
387
+ .giftcard-inline__fields > .form-row.giftcard__field--number.giftcard__field--number,
388
+ .giftcard-inline__fields > .form-row.giftcard__field--pin.giftcard__field--pin {
389
+ width: 100%;
333
390
  }
334
391
 
335
392
  .giftcard-summary {
@@ -54,7 +54,7 @@
54
54
 
55
55
  &--small {
56
56
  flex-wrap: wrap;
57
- padding: 0 25px;
57
+ padding: 0 40px;
58
58
  }
59
59
  }
60
60
 
@@ -79,7 +79,7 @@
79
79
  .basket {
80
80
  .summary__payment.footer-checkout {
81
81
  .payments-checkout__list--small {
82
- padding: 0 45px;
82
+ padding: 0 60px;
83
83
  }
84
84
  }
85
85
  }
@@ -1,11 +1,13 @@
1
1
  .payways {
2
+ --item-gap: 8px;
3
+ --icon-width: 48px;
2
4
  display: flex;
3
5
  flex-direction: column;
4
6
  align-items: center;
5
7
  margin: 0 auto;
6
8
  width: 100%;
7
9
  padding-bottom: 24px;
8
- max-width: 256px;
10
+ max-width: calc((var(--icon-width) * 4) + (var(--item-gap) * 3));
9
11
 
10
12
  &__title {
11
13
  font-weight: 500;
@@ -21,15 +23,11 @@
21
23
  align-items: center;
22
24
  justify-content: center;
23
25
  flex-wrap: wrap;
24
- gap: 8px;
26
+ gap: var(--item-gap);
25
27
  font-size: 0;
26
28
  padding: 0;
27
29
  margin: 0;
28
30
  white-space: nowrap;
29
-
30
- &--small {
31
- width: 210px;
32
- }
33
31
  }
34
32
 
35
33
  &__item {
@@ -39,7 +37,7 @@
39
37
 
40
38
  &__image {
41
39
  height: 30px;
42
- width: 48px;
40
+ width: var(--icon-width);
43
41
  }
44
42
 
45
43
  &-klarna {
@@ -0,0 +1,164 @@
1
+ $lookup-label-height: 24px;
2
+ $lookup-label-gap: 8px;
3
+ $lookup-field-height: 40px;
4
+
5
+ .postcode-lookup {
6
+ width: 100%;
7
+
8
+ &__expand-btn,
9
+ .show-line2-btn {
10
+ margin-bottom: 24px;
11
+ }
12
+
13
+ &-autocomplete {
14
+ position: relative;
15
+
16
+ .icon-element {
17
+ top: calc($lookup-label-height + $lookup-label-gap + $lookup-field-height / 2);
18
+ left: 8px;
19
+ color: $warm-grey;
20
+ position: absolute;
21
+ padding: 4px;
22
+ font-size: 24px;
23
+ transform: translateY(-50%);
24
+ }
25
+
26
+ .tbx_textarea {
27
+ display: block;
28
+ overflow-y: hidden;
29
+ padding-left: 40px;
30
+
31
+ &:focus {
32
+ border-color: $blue;
33
+ }
34
+
35
+ &:focus::placeholder {
36
+ color: transparent;
37
+ }
38
+ }
39
+
40
+ ul {
41
+ position: absolute;
42
+ top: 100%;
43
+ left: 0;
44
+ z-index: $dropdown-z-index;
45
+ box-sizing: border-box;
46
+ min-width: 100%;
47
+ max-height: 324px;
48
+ margin: 4px 0 0;
49
+ padding: 0;
50
+ overflow-y: auto;
51
+ list-style: none;
52
+ border-radius: 4px;
53
+ background: $white;
54
+ box-shadow: 0.05em 0.2em 0.6em rgba(0, 0, 0, 0.2);
55
+ text-shadow: none;
56
+ }
57
+
58
+ li {
59
+ padding: 4px 16px;
60
+ font-size: 1rem;
61
+ line-height: 1.5rem;
62
+ }
63
+
64
+ .address-suggestion {
65
+ cursor: pointer;
66
+ font-weight: 500;
67
+
68
+ &:hover {
69
+ background: $ma-white;
70
+ }
71
+
72
+ &.is-highlighted {
73
+ background: $ma-white;
74
+ color: $blue;
75
+ }
76
+ }
77
+
78
+ .text-match {
79
+ font-weight: 400;
80
+ }
81
+
82
+ .empty {
83
+ display: flex;
84
+ flex-direction: column;
85
+ align-items: center;
86
+ gap: 12px;
87
+ padding: 16px;
88
+ background: $white;
89
+ }
90
+
91
+ .map-icon {
92
+ font-size: 49px;
93
+ color: $blue-satin;
94
+ padding: 0 7px;
95
+ }
96
+
97
+ .hint {
98
+ text-align: center;
99
+ }
100
+
101
+ .manual-entry {
102
+ position: sticky;
103
+ bottom: 0;
104
+ display: flex;
105
+ gap: 8px;
106
+ padding: 9px 16px;
107
+ background-color: $white;
108
+ border-top: 1px solid transparent;
109
+
110
+ &-text,
111
+ &-btn {
112
+ display: inline-block;
113
+ font-size: 0.875rem;
114
+ line-height: 1.375rem;
115
+ }
116
+
117
+ &-btn {
118
+ margin: 0;
119
+ padding: 0;
120
+ border: 0;
121
+ background: $white;
122
+ color: $blue;
123
+ font-weight: 500;
124
+ cursor: pointer;
125
+
126
+ &:hover {
127
+ text-decoration: underline solid;
128
+ }
129
+
130
+ &:active {
131
+ color: $blue-darker;
132
+ }
133
+ }
134
+ }
135
+
136
+ .address-suggestion + .manual-entry {
137
+ border-top-color: $gray;
138
+ }
139
+ }
140
+ }
141
+
142
+ @include media-breakpoint-up(sm) {
143
+ .postcode-lookup {
144
+ &-autocomplete ul {
145
+ max-height: 264px;
146
+ }
147
+
148
+ &__cols {
149
+ display: flex;
150
+ align-items: flex-start;
151
+ gap: 16px;
152
+
153
+ > * {
154
+ flex: 1 1 0;
155
+ min-width: 0;
156
+ }
157
+ }
158
+
159
+ .show-line2-btn {
160
+ margin-top: calc($lookup-field-height / 2 + $lookup-label-height + $lookup-label-gap);
161
+ transform: translateY(-50%);
162
+ }
163
+ }
164
+ }
@@ -1,6 +1,7 @@
1
1
  @import '../helpers/helpers';
2
2
  @import '../components/tooltip';
3
3
  @import '../components/gift-cards';
4
+ @import '../components/postcode-lookup-v2';
4
5
 
5
6
 
6
7
  body main {
@@ -83,6 +83,32 @@
83
83
  }
84
84
  }
85
85
 
86
+ @mixin button-tertiary {
87
+ display: inline-flex;
88
+ align-items: center;
89
+ gap: 8px;
90
+ padding: 0;
91
+ background-color: transparent;
92
+ color: $blue;
93
+
94
+ > i,
95
+ > svg {
96
+ flex-shrink: 0;
97
+ width: 24px;
98
+ }
99
+
100
+ &:hover {
101
+ text-decoration: underline;
102
+ }
103
+
104
+ &:active,
105
+ &:not(:disabled):not(.disabled):active,
106
+ &:not(:disabled):not(.disabled).active {
107
+ text-decoration: underline;
108
+ color: $blue-darker;
109
+ }
110
+ }
111
+
86
112
  @mixin button-action {
87
113
  background-color: $green;
88
114
  border-color: $green;
@@ -33,6 +33,8 @@ $error-bg: #fcf2f3; // Error notification background colour
33
33
  $positive: #8dc63f; // Positive colour
34
34
  $negative: #ed1c24; // Negative colour
35
35
  $blue-badge: #019ee3;
36
+ $blue-disabled: mix(#fff, $blue, 60%); // Disabled overlay (white 60% over $blue)
37
+ $pacific-depths: #004587;
36
38
  $usp-icon-color: #1a77bc; // Usp icon color
37
39
  $pacific-depths: #004587;
38
40
  $line-through: #242424;
@@ -192,6 +192,48 @@
192
192
  background-color: initial;
193
193
  padding: 0;
194
194
  margin: 0;
195
+
196
+ .checkout-payment {
197
+ &__card {
198
+ &-label {
199
+ font-weight: 700;
200
+ font-size: 1rem;
201
+ line-height: 1.25rem;
202
+ }
203
+
204
+ &-value {
205
+ font-weight: 400;
206
+ font-size: 1rem;
207
+ line-height: 1.25rem;
208
+ }
209
+ }
210
+
211
+ &__giftcard {
212
+ margin-bottom: 32px;
213
+
214
+ &:last-child {
215
+ margin-bottom: 0;
216
+ }
217
+
218
+ &-header {
219
+ font-weight: 700;
220
+ font-size: 1rem;
221
+ line-height: 1.25rem;
222
+ }
223
+
224
+ &-label {
225
+ font-weight: 700;
226
+ font-size: 1rem;
227
+ line-height: 1.25rem;
228
+ }
229
+
230
+ &-value {
231
+ font-weight: 400;
232
+ font-size: 1rem;
233
+ line-height: 1.25rem;
234
+ }
235
+ }
236
+ }
195
237
  }
196
238
 
197
239
  &_order-summary {
@@ -214,6 +256,13 @@
214
256
  }
215
257
  }
216
258
 
259
+ &__item.checkout-widget__gift-card {
260
+ font-weight: 700;
261
+ font-size: 0.875rem;
262
+ line-height: 1.375rem;
263
+ margin-top: 16px;
264
+ }
265
+
217
266
  &__total {
218
267
  display: flex;
219
268
  justify-content: space-between;
@@ -230,7 +279,13 @@
230
279
  &.checkout-payment {
231
280
  .checkout-widget {
232
281
  &__details {
233
- margin-bottom: 50px;
282
+ margin-bottom: 32px;
283
+
284
+ &.checkout-payment__card-details {
285
+ display: flex;
286
+ flex-direction: column;
287
+ gap: 12px;
288
+ }
234
289
 
235
290
  &__item {
236
291
  display: flex;
@@ -243,7 +298,12 @@
243
298
  color: $blue-ocean;
244
299
  font-size: 1.5rem;
245
300
  line-height: 2.75rem;
246
- margin-bottom: 40px;
301
+ margin-bottom: 16px;
302
+ }
303
+
304
+ .address {
305
+ font-size: 1rem;
306
+ line-height: 1.5rem;
247
307
  }
248
308
  }
249
309
  }
@@ -332,6 +392,8 @@
332
392
  &.checkout-payment {
333
393
  .checkout-widget {
334
394
  &__details {
395
+ margin-bottom: 40px;
396
+
335
397
  &__item {
336
398
  justify-content: space-between;
337
399
  margin-bottom: 0;
@@ -359,7 +421,8 @@
359
421
  &__apple,
360
422
  &__google,
361
423
  &__clearpay,
362
- &__billie {
424
+ &__billie,
425
+ &__giftcard {
363
426
  flex-direction: row;
364
427
  justify-content: space-between;
365
428
  }
@@ -373,6 +436,36 @@
373
436
  &__google {
374
437
  margin-bottom: 30px;
375
438
  }
439
+
440
+ &__giftcard {
441
+ margin-bottom: 40px;
442
+
443
+ &-list {
444
+ display: flex;
445
+ flex-direction: column;
446
+ gap: 12px;
447
+ }
448
+
449
+ &-header {
450
+ align-items: center;
451
+ margin-bottom: 12px;
452
+ }
453
+
454
+ &-logo {
455
+ flex: 0 0 auto;
456
+
457
+ img {
458
+ height: 30px;
459
+ width: 48px;
460
+ display: block;
461
+ }
462
+ }
463
+
464
+ &-value {
465
+ text-align: right;
466
+ white-space: nowrap;
467
+ }
468
+ }
376
469
  }
377
470
  }
378
471
  }
@@ -205,6 +205,35 @@
205
205
  font-weight: 500;
206
206
  }
207
207
  }
208
+
209
+ & .split-payment {
210
+ padding-top: 8px;
211
+ }
212
+
213
+ & .split-additional-info {
214
+ display: block;
215
+ padding-bottom: 16px;
216
+ margin-bottom: 16px;
217
+ border-bottom: 1px solid $gray;
218
+ }
219
+
220
+ & .giftcard-logo {
221
+ margin-bottom: 8px;
222
+ }
223
+
224
+ & .giftcard-title {
225
+ display: block;
226
+ margin-bottom: 4px;
227
+ }
228
+
229
+ & .giftcard-list {
230
+ display: flex;
231
+ flex-direction: column;
232
+ gap: 8px;
233
+ margin: 0;
234
+ padding: 0;
235
+ list-style: none;
236
+ }
208
237
  }
209
238
 
210
239
  .google-logo-img {
package/src/sitemap.html CHANGED
@@ -1021,6 +1021,30 @@
1021
1021
  Page with Gift Cards
1022
1022
  </a>
1023
1023
  </li>
1024
+ <li>
1025
+ <span class="page-id">2</span>
1026
+ <a href="page_checkout_confirmation-gift-card.html" target="_blank">
1027
+ Gift Card Checkout - Confirmation new
1028
+ </a>
1029
+ </li>
1030
+ <li>
1031
+ <span class="page-id">3</span>
1032
+ <a href="page_my_account_payment_info_gift_cards.html" target="_blank">
1033
+ Gift Card My Account - Payment information
1034
+ </a>
1035
+ </li>
1036
+ <li>
1037
+ <span class="page-id">4</span>
1038
+ <a href="page_my_account_payment_info_gift_cards_split_payment.html" target="_blank">
1039
+ Gift Card My Account - Payment information (Split payment)
1040
+ </a>
1041
+ </li>
1042
+ <li>
1043
+ <span class="page-id">5</span>
1044
+ <a href="page_checkout_confirmation-gift-card-split-payment.html" target="_blank">
1045
+ Gift Card Checkout - Confirmation new (Split payment)
1046
+ </a>
1047
+ </li>
1024
1048
  </ul>
1025
1049
  </div>
1026
1050
  <div class="col">