wickes-css2 2.103.0-develop.1 → 2.103.0-develop.3

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 (58) hide show
  1. package/Readme.md +0 -1
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/homepage-main.css +1 -1
  4. package/build/css/kitchen-plp-main.css +1 -1
  5. package/build/css/main.css +1 -1
  6. package/build/css/my-account-main-v2.css +1 -1
  7. package/build/css/my-account-main.css +1 -1
  8. package/build/css/pdp-main-before-combine.css +1 -1
  9. package/build/css/pdp-main-non-critical.css +1 -1
  10. package/build/css/pdp-main.css +1 -1
  11. package/build/css/plp-main.css +1 -1
  12. package/build/css/store-locator-main.css +1 -1
  13. package/build/js/basket.min.js +2 -2
  14. package/build/js/bundle.min.js +1 -1
  15. package/build/js/checkout.min.js +2 -2
  16. package/build/js/emulation.min.js +954 -10
  17. package/build/js/general.bundle.min.js +1 -1
  18. package/build/js/merged-checkout.min.js +2 -2
  19. package/build/js/mini-basket-slider.min.js +1 -0
  20. package/build/js/page/basket/basket-update-cart-action.js +60 -0
  21. package/build/js/page/basket/basket-update-cart.js +29 -0
  22. package/build/js/page/basket/basket-utils.js +50 -0
  23. package/build/js/page/basket/mini-basket-total.js +97 -0
  24. package/build/js/page/basket/quantity-change-handler.js +56 -0
  25. package/build/js/page/basket/update-quantity-operation.js +37 -0
  26. package/build/js/page/basket/update-quantity.js +65 -0
  27. package/build/js/page/basket-v2.js +138 -244
  28. package/build/js/page/components/discounts.js +6 -6
  29. package/build/js/page/components/mini-basket-slider.js +562 -0
  30. package/build/js/pdp.bundle.min.js +1 -1
  31. package/build/js/plp.bundle.min.js +1 -1
  32. package/build/js/project-list.min.js +1 -1
  33. package/package.json +2 -2
  34. package/src/components/mini-basket/mini-basket-empty.hbs +3 -13
  35. package/src/components/mini-basket/mini-basket-order-item.hbs +73 -0
  36. package/src/components/mini-basket/mini-basket.hbs +32 -13
  37. package/src/components/mini-basket/product-item.hbs +37 -16
  38. package/src/data/data_confirmation-summary.json +4 -2
  39. package/src/data/data_mini-basket.json +4 -80
  40. package/src/js/components/general/cart-slider.js +3 -0
  41. package/src/js/components/general/create-popup-slider.js +5 -2
  42. package/src/js/emulation/custom-slider-emulation.js +4 -10
  43. package/src/js/emulation/mini-basket-data.js +949 -0
  44. package/src/js/page/basket/basket-update-cart-action.js +60 -0
  45. package/src/js/page/basket/basket-update-cart.js +29 -0
  46. package/src/js/page/basket/basket-utils.js +50 -0
  47. package/src/js/page/basket/mini-basket-total.js +97 -0
  48. package/src/js/page/basket/quantity-change-handler.js +56 -0
  49. package/src/js/page/basket/update-quantity-operation.js +37 -0
  50. package/src/js/page/basket/update-quantity.js +65 -0
  51. package/src/js/page/basket-v2.js +138 -244
  52. package/src/js/page/components/discounts.js +6 -6
  53. package/src/js/page/components/mini-basket-slider.js +562 -0
  54. package/src/layouts/base.hbs +0 -6
  55. package/src/partials/scripts.hbs +1 -0
  56. package/src/scss/components/_custom-slider.scss +125 -3
  57. package/src/scss/components/_popover-mini-basket.scss +0 -4
  58. package/src/js/components/general/mini-basket-slider.js +0 -8
@@ -80,6 +80,19 @@
80
80
  }
81
81
  }
82
82
 
83
+ &__notifications {
84
+ &:has(.notification) {
85
+ margin-top: 16px;
86
+ }
87
+
88
+ .notification:only-child {
89
+ @include font-size(14);
90
+ @include line-height(24);
91
+ margin-bottom: 0;
92
+ border-bottom: none;
93
+ }
94
+ }
95
+
83
96
  &__message {
84
97
  margin-top: 8px;
85
98
  display: flex;
@@ -159,6 +172,32 @@
159
172
  &__details {
160
173
  flex: 1;
161
174
 
175
+ &-header {
176
+ display: flex;
177
+ align-items: flex-start;
178
+ justify-content: space-between;
179
+ grid-gap: 8px;
180
+
181
+ .btn--remove {
182
+ min-width: 24px;
183
+ padding: 4px;
184
+ background: 0 0;
185
+ border: none;
186
+ display: flex;
187
+ align-items: center;
188
+ justify-content: center;
189
+
190
+ .remove-icon {
191
+ color: $blue;
192
+ font-size: 1rem;
193
+ }
194
+ }
195
+ }
196
+
197
+ &-body {
198
+ margin-top: 4px;
199
+ }
200
+
162
201
  .item,
163
202
  .price {
164
203
  margin-bottom: 0;
@@ -190,8 +229,8 @@
190
229
  }
191
230
 
192
231
  .price {
193
- @include font-size(18);
194
- @include line-height(24);
232
+ @include font-size(16);
233
+ @include line-height(20);
195
234
  margin-top: 8px;
196
235
  font-weight: 700;
197
236
  color: $blue-dark;
@@ -206,6 +245,54 @@
206
245
  &.product-card__content {
207
246
  margin-top: 0;
208
247
  padding: 0;
248
+ height: 100%;
249
+ display: flex;
250
+ flex-direction: column;
251
+ }
252
+ }
253
+
254
+ &__quantity-control {
255
+ display: flex;
256
+ align-items: center;
257
+ margin-top: 8px;
258
+
259
+ .quantity {
260
+ margin-bottom: 0;
261
+ min-width: 40px;
262
+ text-align: center;
263
+ padding: 0 5px;
264
+
265
+ .product-card__quantity-value {
266
+ margin: 0;
267
+ font-weight: 400;
268
+ }
269
+ }
270
+
271
+ .btn--quantity {
272
+ background: none;
273
+ padding: 0;
274
+ width: 24px;
275
+ min-height: 24px;
276
+ display: inline-flex;
277
+ align-items: center;
278
+ justify-content: center;
279
+
280
+ .quantity-cta-icon {
281
+ font-size: 1.35rem;
282
+ color: $blue;
283
+ }
284
+
285
+ &[disabled] {
286
+ border: none;
287
+ opacity: 0.6;
288
+ }
289
+ }
290
+ }
291
+
292
+ .btn--remove,
293
+ .btn--quantity {
294
+ &:hover {
295
+ opacity: 0.7;
209
296
  }
210
297
  }
211
298
 
@@ -218,6 +305,17 @@
218
305
  }
219
306
  }
220
307
  }
308
+
309
+ &__offers {
310
+ margin-top: 4px;
311
+
312
+ .products__promo {
313
+ @include font-size(12);
314
+ @include line-height(16);
315
+ color: $red;
316
+ font-weight: 400;
317
+ }
318
+ }
221
319
  }
222
320
 
223
321
  &__footer {
@@ -324,7 +422,7 @@
324
422
  font-weight: 500;
325
423
  }
326
424
 
327
- .value {
425
+ &-value {
328
426
  @include font-size(18);
329
427
  @include line-height(24);
330
428
  font-weight: 700;
@@ -454,6 +552,30 @@
454
552
  }
455
553
  }
456
554
 
555
+ @include media-breakpoint-up(sm) {
556
+ .custom-slider {
557
+ .products__details {
558
+ .price {
559
+ @include font-size(18);
560
+ @include line-height(24);
561
+
562
+ .inc {
563
+ @include font-size(12);
564
+ @include line-height(16);
565
+ font-weight: 500;
566
+ }
567
+ }
568
+
569
+ &-footer {
570
+ display: flex;
571
+ align-items: center;
572
+ justify-content: space-between;
573
+ margin-top: auto;
574
+ }
575
+ }
576
+ }
577
+ }
578
+
457
579
  @include media-breakpoint-up(sm) {
458
580
  .custom-slider {
459
581
  &__wrap {
@@ -173,10 +173,6 @@
173
173
  .card__img {
174
174
  border: 0;
175
175
  }
176
-
177
- .product-card__content {
178
- height: auto;
179
- }
180
176
  }
181
177
  }
182
178
  }
@@ -1,8 +0,0 @@
1
- createPopupSlider({
2
- type: 'miniBasket',
3
- sliderSelector: '.custom-slider.mini-basket',
4
- onAppendEvent: 'showMiniBasket',
5
- onAppend: function (event, { showSlider }) {
6
- showSlider();
7
- },
8
- });