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

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 +124 -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,18 @@
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
+ }
93
+ }
94
+
83
95
  &__message {
84
96
  margin-top: 8px;
85
97
  display: flex;
@@ -159,6 +171,32 @@
159
171
  &__details {
160
172
  flex: 1;
161
173
 
174
+ &-header {
175
+ display: flex;
176
+ align-items: flex-start;
177
+ justify-content: space-between;
178
+ grid-gap: 8px;
179
+
180
+ .btn--remove {
181
+ min-width: 24px;
182
+ padding: 4px;
183
+ background: 0 0;
184
+ border: none;
185
+ display: flex;
186
+ align-items: center;
187
+ justify-content: center;
188
+
189
+ .remove-icon {
190
+ color: $blue;
191
+ font-size: 1rem;
192
+ }
193
+ }
194
+ }
195
+
196
+ &-body {
197
+ margin-top: 4px;
198
+ }
199
+
162
200
  .item,
163
201
  .price {
164
202
  margin-bottom: 0;
@@ -190,8 +228,8 @@
190
228
  }
191
229
 
192
230
  .price {
193
- @include font-size(18);
194
- @include line-height(24);
231
+ @include font-size(16);
232
+ @include line-height(20);
195
233
  margin-top: 8px;
196
234
  font-weight: 700;
197
235
  color: $blue-dark;
@@ -206,6 +244,54 @@
206
244
  &.product-card__content {
207
245
  margin-top: 0;
208
246
  padding: 0;
247
+ height: 100%;
248
+ display: flex;
249
+ flex-direction: column;
250
+ }
251
+ }
252
+
253
+ &__quantity-control {
254
+ display: flex;
255
+ align-items: center;
256
+ margin-top: 8px;
257
+
258
+ .quantity {
259
+ margin-bottom: 0;
260
+ min-width: 40px;
261
+ text-align: center;
262
+ padding: 0 5px;
263
+
264
+ .product-card__quantity-value {
265
+ margin: 0;
266
+ font-weight: 400;
267
+ }
268
+ }
269
+
270
+ .btn--quantity {
271
+ background: none;
272
+ padding: 0;
273
+ width: 24px;
274
+ min-height: 24px;
275
+ display: inline-flex;
276
+ align-items: center;
277
+ justify-content: center;
278
+
279
+ .quantity-cta-icon {
280
+ font-size: 1.35rem;
281
+ color: $blue;
282
+ }
283
+
284
+ &[disabled] {
285
+ border: none;
286
+ opacity: 0.6;
287
+ }
288
+ }
289
+ }
290
+
291
+ .btn--remove,
292
+ .btn--quantity {
293
+ &:hover {
294
+ opacity: 0.7;
209
295
  }
210
296
  }
211
297
 
@@ -218,6 +304,17 @@
218
304
  }
219
305
  }
220
306
  }
307
+
308
+ &__offers {
309
+ margin-top: 4px;
310
+
311
+ .products__promo {
312
+ @include font-size(12);
313
+ @include line-height(16);
314
+ color: $red;
315
+ font-weight: 400;
316
+ }
317
+ }
221
318
  }
222
319
 
223
320
  &__footer {
@@ -324,7 +421,7 @@
324
421
  font-weight: 500;
325
422
  }
326
423
 
327
- .value {
424
+ &-value {
328
425
  @include font-size(18);
329
426
  @include line-height(24);
330
427
  font-weight: 700;
@@ -454,6 +551,30 @@
454
551
  }
455
552
  }
456
553
 
554
+ @include media-breakpoint-up(sm) {
555
+ .custom-slider {
556
+ .products__details {
557
+ .price {
558
+ @include font-size(18);
559
+ @include line-height(24);
560
+
561
+ .inc {
562
+ @include font-size(12);
563
+ @include line-height(16);
564
+ font-weight: 500;
565
+ }
566
+ }
567
+
568
+ &-footer {
569
+ display: flex;
570
+ align-items: center;
571
+ justify-content: space-between;
572
+ margin-top: auto;
573
+ }
574
+ }
575
+ }
576
+ }
577
+
457
578
  @include media-breakpoint-up(sm) {
458
579
  .custom-slider {
459
580
  &__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
- });