wickes-css2 2.98.0-develop.8 → 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 (114) hide show
  1. package/Readme.md +4 -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/global-search.css +1 -1
  5. package/build/css/components/loader.css +1 -1
  6. package/build/css/components/price-block-v2-critical.css +1 -1
  7. package/build/css/components/price-block-v2.css +1 -1
  8. package/build/css/homepage-main.css +1 -1
  9. package/build/css/main.css +1 -1
  10. package/build/css/my-account-main-v2.css +1 -1
  11. package/build/css/my-account-main.css +1 -1
  12. package/build/css/pages/checkout-new.css +1 -1
  13. package/build/css/pages/checkout.css +1 -1
  14. package/build/css/pages/my-account-v2.css +1 -1
  15. package/build/css/pages/page_home.css +1 -1
  16. package/build/css/pages/page_my-order.css +1 -1
  17. package/build/css/pages/page_my-orders.css +1 -1
  18. package/build/css/pages/page_wismo-details.css +1 -1
  19. package/build/css/pdp-main-before-combine.css +1 -1
  20. package/build/css/pdp-main-critical.css +1 -1
  21. package/build/css/pdp-main-non-critical.css +1 -1
  22. package/build/css/pdp-main.css +1 -1
  23. package/build/css/plp-main.css +1 -1
  24. package/build/css/store-locator-main.css +1 -1
  25. package/build/img/billie-logo.svg +4 -0
  26. package/build/img/billie-modal.svg +4 -0
  27. package/build/img/billie-pdp.svg +11 -0
  28. package/build/img/billie-spinner.svg +5 -0
  29. package/build/img/billie.svg +4 -0
  30. package/build/img/calm-primary-logo.png +0 -0
  31. package/build/img/payment/checkout/billie.svg +4 -0
  32. package/build/img/payment/footer/billie.svg +4 -0
  33. package/build/js/basket.min.js +1 -1
  34. package/build/js/emulation.min.js +23 -11
  35. package/build/js/page/basket-v2.js +16 -7
  36. package/build/js/page/billie-business-type.js +34 -0
  37. package/build/js/page/checkout-payment-details.js +8 -0
  38. package/build/js/page/components/charity.js +58 -43
  39. package/build/js/page/components/modal-observer.js +51 -0
  40. package/package.json +1 -1
  41. package/src/components/address-billie.hbs +42 -0
  42. package/src/components/address-postcode-look-up.hbs +2 -2
  43. package/src/components/basket-charity-donations-new.hbs +40 -0
  44. package/src/components/billie-modal.hbs +41 -0
  45. package/src/components/billie-online-messaging.hbs +14 -0
  46. package/src/components/checkout-edit-billing-address.hbs +20 -6
  47. package/src/components/checkout-payment-details-v2.hbs +94 -55
  48. package/src/components/checkout-payment-info-block.hbs +49 -0
  49. package/src/components/checkout-payment-option.hbs +40 -0
  50. package/src/components/checkout_payment-new.hbs +10 -1
  51. package/src/components/donation-cart-new.hbs +38 -0
  52. package/src/components/modal.hbs +4 -1
  53. package/src/components/my-account/active-orders/list-orders.hbs +1 -1
  54. package/src/components/my-account/active-orders/order.hbs +2 -0
  55. package/src/components/my-account/active-orders/payment-status.hbs +17 -0
  56. package/src/components/my-account/payment-status.hbs +19 -0
  57. package/src/components/order-summary.hbs +3 -0
  58. package/src/components/payment-loader.hbs +59 -21
  59. package/src/components/payments-checkout-v2.hbs +12 -6
  60. package/src/components/payments-checkout.hbs +6 -0
  61. package/src/components/payments.hbs +10 -4
  62. package/src/components/price-block-v2.hbs +13 -8
  63. package/src/components/wismo-payment.hbs +16 -0
  64. package/src/data/data_shopping-cart-v2.json +51 -0
  65. package/src/data/data_wismo.json +53 -0
  66. package/src/data/my-account/data_my-account.json +57 -0
  67. package/src/elements/radiobutton.hbs +7 -0
  68. package/src/img/billie-logo.svg +4 -0
  69. package/src/img/billie-modal.svg +4 -0
  70. package/src/img/billie-pdp.svg +11 -0
  71. package/src/img/billie-spinner.svg +5 -0
  72. package/src/img/billie.svg +4 -0
  73. package/src/img/calm-primary-logo.png +0 -0
  74. package/src/img/payment/checkout/billie.svg +4 -0
  75. package/src/img/payment/footer/billie.svg +4 -0
  76. package/src/js/emulation/paymentLoader.js +22 -11
  77. package/src/js/page/basket-v2.js +16 -7
  78. package/src/js/page/billie-business-type.js +34 -0
  79. package/src/js/page/checkout-payment-details.js +8 -0
  80. package/src/js/page/components/charity.js +58 -43
  81. package/src/js/page/components/modal-observer.js +51 -0
  82. package/src/page_basket-billie.html +54 -0
  83. package/src/page_checkout_confirmation-billie.html +339 -0
  84. package/src/page_checkout_delivery-address-customer-journey.html +2 -2
  85. package/src/page_my-account.html +1 -0
  86. package/src/page_my-order.html +1 -1
  87. package/src/page_payment-details-with-billie.html +67 -0
  88. package/src/page_product-details-billie.html +87 -0
  89. package/src/page_shopping-cart-v2.html +4 -3
  90. package/src/page_wismo-details.html +2 -2
  91. package/src/partials/head.hbs +1 -5
  92. package/src/scss/common/_app.scss +0 -1
  93. package/src/scss/common/_elements.scss +4 -0
  94. package/src/scss/components/_billie-modal.scss +181 -0
  95. package/src/scss/components/_billie-online-messaging.scss +46 -0
  96. package/src/scss/components/_charity-donations.scss +114 -186
  97. package/src/scss/components/_donation-cart-new.scss +192 -0
  98. package/src/scss/components/_payments-checkout.scss +2 -1
  99. package/src/scss/components/_payments-v2.scss +8 -0
  100. package/src/scss/components/_tooltip.scss +19 -0
  101. package/src/scss/components/checkout-payment-details-v2.scss +237 -0
  102. package/src/scss/components/loader.scss +8 -0
  103. package/src/scss/components/my-account/_active-orders.scss +2 -0
  104. package/src/scss/components/my-account/_payment-status.scss +84 -0
  105. package/src/scss/components/price-block-v2-critical.scss +4 -0
  106. package/src/scss/components/price-block-v2.scss +4 -0
  107. package/src/scss/pages/_checkout-confirmation-new.scss +10 -3
  108. package/src/scss/pages/checkout-new.scss +3 -0
  109. package/src/scss/pages/my-account-v2.scss +2 -0
  110. package/src/scss/pages/page_wismo-details.scss +1 -0
  111. package/src/scss/pdp-main-critical.scss +1 -0
  112. package/src/scss/pdp-main.scss +2 -0
  113. package/src/sitemap.html +31 -2
  114. package/src/page_shopping-cart-charity.html +0 -56
@@ -38,7 +38,7 @@
38
38
  <svg class="svg-inline--fa fa-info-circle fa-w-16" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="info-circle" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg=""><path fill="currentColor" d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"></path></svg><!-- <i class="fas fa-info-circle"></i> -->
39
39
  </span>
40
40
  <span class="ref-msg">
41
- The total refund issued for your recent order cancellation or amendments was
41
+ The total refund issued for your recent order cancellation or amendments was
42
42
  £20.00
43
43
  </span>
44
44
  </div>
@@ -49,7 +49,7 @@
49
49
  </div>
50
50
  <aside class="right-aside">
51
51
  {{> wismo_order-summary }}
52
- {{> wismo-payment }}
52
+ {{> wismo-payment payment-billie=true}}
53
53
  </aside>
54
54
  </div>
55
55
  </div>
@@ -32,11 +32,7 @@
32
32
  {{/if}}
33
33
  <link rel="preconnect" href="https://fonts.gstatic.com">
34
34
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet" media="print" onload="this.media='all'">
35
- <script
36
- async
37
- src="https://eu-library.playground.klarnaservices.com/lib.js"
38
- data-client-id="63bb2358-8698-5b0d-b6c0-e8dd2b49d915"
39
- ></script>
35
+ <script async="" src="https://js.klarna.com/web-sdk/v1/klarna.js" data-client-id="63bb2358-8698-5b0d-b6c0-e8dd2b49d915" data-environment="playground"></script>
40
36
  {{#if pageBasket}}
41
37
  <script async src="https://js-sandbox.squarecdn.com/square-marketplace.js"></script>
42
38
  {{/if}}
@@ -56,4 +56,3 @@
56
56
  }
57
57
  }
58
58
  }
59
-
@@ -38,6 +38,10 @@
38
38
  .ddn > select {
39
39
  @include field-error;
40
40
  }
41
+
42
+ .rbn ins {
43
+ @include field-error;
44
+ }
41
45
  }
42
46
 
43
47
  .icon-info {
@@ -0,0 +1,181 @@
1
+ .modal.billie-modal {
2
+ .modal-header,
3
+ .modal-footer {
4
+ position: sticky;
5
+ background-color: $white;
6
+ z-index: 10;
7
+ box-shadow: none;
8
+ border-bottom: 0;
9
+ transition: box-shadow .3s ease;
10
+ padding: 0;
11
+ }
12
+
13
+ .modal-dialog {
14
+ width: 100%;
15
+ max-width: 100%;
16
+ margin: 0;
17
+ }
18
+
19
+ .modal-content {
20
+ width: 100%;
21
+ }
22
+
23
+ .modal-box__content {
24
+ display: flex;
25
+ flex-direction: column;
26
+ max-height: 100vh;
27
+ }
28
+
29
+ .modal-box__header::after {
30
+ border: 0;
31
+ }
32
+
33
+ .modal-header {
34
+ top: 0;
35
+ border-bottom: 1px solid $gray-200;
36
+ margin-right: -15px;
37
+ }
38
+
39
+ .billie-modal__heading {
40
+ margin-bottom: 8px;
41
+ }
42
+
43
+ .modal-box__footer-row {
44
+ width: 100%;
45
+ }
46
+
47
+ ul.billie-modal__list,
48
+ ol.billie-modal__list {
49
+ padding-left: 20px;
50
+ }
51
+
52
+ .modal-footer {
53
+ justify-content: center;
54
+ bottom: 0;
55
+ border-top: 0;
56
+
57
+ .modal-box__inner-columns {
58
+ margin: 0;
59
+ }
60
+ }
61
+
62
+ .modal-box__container {
63
+ padding: 0;
64
+ }
65
+
66
+ .modal-box__inner-columns {
67
+ padding: 16px;
68
+ margin: 0 16px;
69
+ }
70
+
71
+ .modal-box__header .close {
72
+ right: 23px;
73
+ top: 8px;
74
+ }
75
+
76
+ .modal-box__inner-columns .btn {
77
+ width: 100%;
78
+ }
79
+
80
+ .modal-body {
81
+ flex-grow: 1;
82
+ overflow-y: auto;
83
+ overflow-x: hidden;
84
+
85
+ .modal-box__inner-columns {
86
+ padding: 16px 16px 24px;
87
+ }
88
+ }
89
+
90
+ .modal-content {
91
+ &[data-scroll-state="middle"],
92
+ &[data-scroll-state="bottom"] {
93
+ .modal-header {
94
+ box-shadow: 0 0 15px rgba(0, 0, 0, .2);
95
+ border-bottom: 0;
96
+ }
97
+ }
98
+
99
+ &[data-scroll-state="middle"],
100
+ &[data-scroll-state="top"] {
101
+ .modal-footer {
102
+ box-shadow: 0 -2px 4px rgba(0, 0, 0, .05);
103
+ }
104
+ }
105
+ }
106
+ }
107
+
108
+ @include media-breakpoint-up(sm) {
109
+ .modal.billie-modal {
110
+ .modal-content {
111
+ width: 476px;
112
+ height: 628px;
113
+ }
114
+
115
+ .modal-dialog {
116
+ margin: 0 auto;
117
+ justify-content: center;
118
+ max-width: 100%;
119
+ height: auto;
120
+ }
121
+
122
+ .modal-box__header .close {
123
+ right: 8px;
124
+ top: 8px;
125
+ }
126
+
127
+ .modal-body {
128
+ margin-right: 0;
129
+
130
+ .modal-box__inner-columns {
131
+ margin: 0;
132
+ }
133
+ }
134
+
135
+ .modal-header {
136
+ margin-right: 0;
137
+
138
+ .modal-box__inner-columns {
139
+ margin: 0;
140
+ }
141
+ }
142
+
143
+ .modal-footer {
144
+ margin-right: 0;
145
+ }
146
+
147
+ .modal-box__container {
148
+ margin: 0 auto;
149
+ }
150
+ }
151
+
152
+ .modal.billie-modal.modal-box_full {
153
+ background: transparent;
154
+ }
155
+ }
156
+
157
+ @include media-breakpoint-up(md) {
158
+ .modal.billie-modal {
159
+ .modal-content {
160
+ height: auto;
161
+ }
162
+
163
+ .modal-dialog {
164
+ justify-content: center;
165
+ }
166
+
167
+ .modal-box__inner-row {
168
+ margin: 0;
169
+ }
170
+
171
+ .modal-box__columns,
172
+ .modal-box__inner-columns {
173
+ flex: 0 0 100%;
174
+ max-width: 100%;
175
+ }
176
+
177
+ .modal-box__inner-columns .btn {
178
+ width: auto;
179
+ }
180
+ }
181
+ }
@@ -0,0 +1,46 @@
1
+ .billie {
2
+ display: flex;
3
+ align-items: center;
4
+ border: 1px solid $gray;
5
+ background-color: $white;
6
+ padding: 8px;
7
+ gap: 8px;
8
+
9
+ &__logo {
10
+ height: 25px;
11
+ }
12
+
13
+ &.billie-basket {
14
+ margin: -20px -20px 0;
15
+ }
16
+
17
+ .billie__logo {
18
+ height: 25px;
19
+ }
20
+
21
+ &__content {
22
+ display: flex;
23
+ flex-direction: column;
24
+ }
25
+
26
+ &__title {
27
+ font-size: .75rem;
28
+ font-weight: 500;
29
+ line-height: 1rem;
30
+ color: $gray-dark;
31
+ }
32
+
33
+ &__link {
34
+ color: inherit;
35
+ text-decoration: underline;
36
+ font-weight: 400;
37
+ white-space: nowrap;
38
+ }
39
+
40
+ &__subtitle {
41
+ font-size: .75rem;
42
+ font-weight: 400;
43
+ line-height: 1rem;
44
+ color: $squant;
45
+ }
46
+ }
@@ -113,238 +113,166 @@
113
113
  max-width: 100%;
114
114
  }
115
115
  }
116
+ }
116
117
 
117
- &.charity-multiple {
118
- .checkout-info-wrap {
119
- padding: 15px;
120
- }
121
-
122
- .title {
123
- margin-bottom: 15px;
124
- }
125
-
126
- .definition {
127
- font-size: .75rem;
128
- font-weight: 400;
129
- line-height: 14px;
130
- margin-bottom: 25px;
131
- }
132
-
133
- .descr {
134
- margin-top: -10px;
135
- }
136
-
137
- .checkout-order {
138
- &__img {
139
- img {
140
- width: 100%;
141
- height: 100%;
142
- object-fit: contain;
143
- object-position: top;
144
- }
145
- }
146
- }
118
+ .charity-donation-new {
119
+ background-color: $gray-bg;
120
+ padding: 16px;
147
121
 
148
- .donation-cart {
149
- &__definition {
150
- display: none;
151
- }
152
- }
153
-
154
- &.charity-added {
155
- .checkout-order {
156
- &__charity {
157
- border-bottom: 1px solid $gray;
158
- padding-bottom: 15px;
159
- }
160
- }
161
- }
122
+ &__wrapper {
123
+ display: flex;
124
+ flex-direction: column;
162
125
  }
163
- }
164
126
 
165
- @include media-breakpoint-up(sm) {
166
- .charity-new {
167
- .checkout-order {
168
- &__img {
169
- img {
170
- max-width: 155px;
171
- max-height: 42px;
172
- width: 155px;
173
- height: 42px;
174
- }
127
+ &__top {
128
+ display: flex;
129
+ align-items: flex-start;
130
+ justify-content: space-between;
131
+ flex-wrap: wrap;
132
+ }
175
133
 
176
- .image {
177
- width: 155px;
178
- }
179
- }
134
+ &__header {
135
+ display: flex;
136
+ gap: 12px;
137
+ }
180
138
 
181
- &__info-wrap {
182
- padding-top: 0;
183
- }
139
+ &__right {
140
+ flex-shrink: 0;
141
+ }
184
142
 
185
- .price-wrap {
186
- align-items: center;
143
+ &__image {
144
+ width: 64px;
145
+ }
187
146
 
188
- label {
189
- margin-top: 0;
190
- }
191
- }
147
+ &__title {
148
+ width: 100%;
149
+ font-size: .875rem;
150
+ font-weight: 500;
151
+ line-height: 1.375rem;
152
+ margin-bottom: 12px;
153
+ }
192
154
 
193
- .title-wrap {
194
- max-width: 100%;
195
- display: flex;
196
- flex-direction: column;
155
+ &__description {
156
+ width: 100%;
157
+ font-size: 0.75rem;
158
+ font-weight: 400;
159
+ line-height: 1rem;
160
+ margin-bottom: 16px;
161
+ }
197
162
 
198
- .title {
199
- order: 1;
200
- }
163
+ &__message {
164
+ font-size: 0.75rem;
165
+ line-height: 1rem;
166
+ }
201
167
 
202
- .descr {
203
- order: 2;
204
- }
168
+ &__body {
169
+ width: 100%;
170
+ }
171
+ }
205
172
 
206
- .definition {
207
- order: 3;
208
- }
209
- }
173
+ @include media-breakpoint-up(sm) {
174
+ .charity-donation-new {
175
+ &__title {
176
+ width: 100%;
177
+ font-weight: 500;
178
+ font-size: 1rem;
179
+ line-height: 1.5rem;
210
180
  }
211
181
 
212
- &.charity-multiple {
213
- .checkout-order {
214
- &__img {
215
- max-width: 184px;
216
-
217
- img {
218
- max-height: initial;
219
- max-width: 100%;
220
- }
221
- }
222
-
223
- &__info-wrap {
224
- align-items: flex-start;
225
- }
226
- }
182
+ &__description {
183
+ width: 100%;
184
+ margin: 0;
185
+ }
227
186
 
228
- .price-wrap {
229
- margin-top: 6px;
187
+ &__message {
188
+ display: block;
189
+ }
230
190
 
231
- .order-item {
232
- &__remove {
233
- margin-top: 0;
234
- }
235
- }
236
- }
191
+ &__image {
192
+ width: 100px;
193
+ }
237
194
 
238
- .title-wrap {
239
- .descr {
240
- margin-bottom: 20px;
241
- }
242
- }
195
+ &__body {
196
+ margin-top: 16px;
243
197
  }
244
198
  }
245
199
  }
246
200
 
247
201
  @include media-breakpoint-up(md) {
248
- .charity-new {
249
- .checkout-order {
250
- &__info-wrap {
251
- padding-left: 15px;
252
- }
253
-
254
- .title-wrap {
255
- max-width: 50%;
256
- }
202
+ .charity-donation-new {
203
+ &__title {
204
+ width: 100%;
257
205
  }
258
206
 
259
- &.charity-multiple {
260
- .checkout-info-wrap {
261
- padding-bottom: 20px;
262
- }
263
-
264
- .donation-cart {
265
- &__definition {
266
- display: block;
267
- }
268
- }
269
-
270
- .definition.definition,
271
- & p:last-of-type {
272
- margin-bottom: 0;
273
- }
207
+ &__body {
208
+ margin-top: 16px;
209
+ width: 668px;
274
210
  }
275
211
 
276
- &.charity-multiple.charity-added {
277
- .checkout-order {
278
- .title-wrap {
279
- max-width: none;
280
- }
281
-
282
- &__charity {
283
- display: grid;
284
- grid-template-columns: 1fr 1fr;
212
+ &__description {
213
+ width: 488px;
214
+ margin-top: -25px;
215
+ }
285
216
 
286
- .definition {
287
- display: none;
288
- }
289
- }
290
- }
217
+ &__message {
218
+ display: block;
219
+ }
291
220
 
292
- .title-wrap {
293
- .descr {
294
- margin-bottom: 0;
295
- }
296
- }
221
+ &__image {
222
+ width: 124px;
297
223
  }
298
224
  }
299
225
  }
300
226
 
301
227
  @include media-breakpoint-up(lg) {
302
- .charity-new {
303
- .checkout-order {
304
- .title-wrap {
305
- max-width: 50%;
306
- }
228
+ .charity-donation-new {
229
+ &__cost {
230
+ height: 24px;
231
+ }
232
+
233
+ &__title {
234
+ width: 100%;
235
+ margin-bottom: 8px;
236
+ }
237
+
238
+ &__body {
239
+ margin-top: 16px;
240
+ width: 588px;
307
241
  }
308
- }
309
242
 
310
- .charity {
311
- &__msg {
312
- margin-bottom: 0;
313
- max-width: 50%;
243
+ &__message {
244
+ margin: 0;
245
+ display: block;
314
246
  }
315
247
  }
316
248
  }
317
249
 
318
250
  @include media-breakpoint-up(xl) {
319
- .charity-new {
320
- &.charity-multiple {
321
- .checkout-order {
322
- .title-wrap {
323
- @include make-col(7);
324
- }
251
+ .charity-donation-new {
252
+ padding: 24px;
325
253
 
326
- &__info-wrap {
327
- @include make-col(5);
328
- }
329
- }
254
+ &__title {
255
+ width: 100%;
256
+ margin-bottom: 8px;
330
257
  }
331
258
 
332
- &.charity-multiple.charity-added {
333
- .checkout-order {
334
- &__info-wrap {
335
- max-width: none;
336
- }
259
+ &__body {
260
+ margin-top: 15px;
261
+ width: 747px;
262
+ }
337
263
 
338
- &__charity {
339
- grid-template-columns: 7fr 5fr;
340
- }
341
- }
264
+ &__description {
265
+ width: 100%;
266
+ margin-top: -30px;
342
267
  }
343
- }
344
268
 
345
- .charity {
346
- &__msg {
347
- max-width: 100%;
269
+ &__message {
270
+ margin-left: 3px;
271
+ display: inline;
272
+ }
273
+
274
+ &__image {
275
+ width: 124px;
348
276
  }
349
277
  }
350
278
  }