wickes-css2 2.106.0-develop.1 → 2.106.0-develop.10

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 (143) hide show
  1. package/Readme.md +2 -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/homepage-main.css +1 -1
  6. package/build/css/kitchen-plp-main.css +1 -1
  7. package/build/css/main.css +1 -1
  8. package/build/css/my-account-main-v2.css +1 -1
  9. package/build/css/my-account-main.css +1 -1
  10. package/build/css/pages/page_checkout_delivery-new.css +1 -1
  11. package/build/css/pages/page_products-list-combined.css +1 -1
  12. package/build/css/pdp-main-before-combine.css +1 -1
  13. package/build/css/pdp-main-critical.css +1 -1
  14. package/build/css/pdp-main-non-critical.css +1 -1
  15. package/build/css/pdp-main.css +1 -1
  16. package/build/css/plp-main.css +1 -1
  17. package/build/css/store-locator-main.css +1 -1
  18. package/build/img/billie-pay-later.svg +13 -0
  19. package/build/img/giftcard.svg +28 -0
  20. package/build/js/account-members.min.js +1 -1
  21. package/build/js/add-project-list-id.min.js +1 -1
  22. package/build/js/address-book.min.js +1 -1
  23. package/build/js/basket.min.js +2 -2
  24. package/build/js/bundle.min.js +1 -1
  25. package/build/js/change-password.min.js +1 -1
  26. package/build/js/checkout.min.js +2 -2
  27. package/build/js/emulation.min.js +2175 -1857
  28. package/build/js/general.bundle.min.js +1 -1
  29. package/build/js/gift-cards.min.js +1 -0
  30. package/build/js/merged-checkout.min.js +2 -2
  31. package/build/js/mini-basket-slider.min.js +1 -1
  32. package/build/js/page/basket/basket-update-cart-action.js +4 -1
  33. package/build/js/page/basket/klarna.js +13 -3
  34. package/build/js/page/basket-v2.js +11 -7
  35. package/build/js/page/components/billie-modal.js +20 -20
  36. package/build/js/page/components/gift-cards.js +927 -0
  37. package/build/js/page/components/order-summary.js +57 -28
  38. package/build/js/page/components/toggle-password-visibility.js +22 -0
  39. package/build/js/page/components/voucher.js +52 -47
  40. package/build/js/page/count-stepper/pdp-count-stepper.js +29 -0
  41. package/build/js/page/filters/plp-filters-mobile.js +4 -7
  42. package/build/js/page/filters/plp-filters-utils.js +9 -0
  43. package/build/js/page/filters/plp-filters.js +13 -5
  44. package/build/js/page/kitchen/colour-swatches.js +152 -152
  45. package/build/js/page/quick-filter.js +106 -103
  46. package/build/js/page/share-project-list.js +151 -33
  47. package/build/js/page/utils/create-count-stepper.js +141 -0
  48. package/build/js/page/utils/gift-cards-utils.js +242 -0
  49. package/build/js/page/utils/input-handling.js +104 -0
  50. package/build/js/page/utils/show-hide-input.js +31 -0
  51. package/build/js/page/utils/validation.js +146 -96
  52. package/build/js/pdp-count-stepper.min.js +1 -0
  53. package/build/js/pdp.bundle.min.js +1 -1
  54. package/build/js/personal-details.min.js +1 -1
  55. package/build/js/plp-filters.min.js +2 -2
  56. package/build/js/plp.bundle.min.js +1 -1
  57. package/build/js/project-list.min.js +57 -14
  58. package/build/js/quiz.min.js +1 -1
  59. package/build/js/share-project-list.min.js +1 -1
  60. package/build/js/track-my-order.min.js +1 -1
  61. package/package.json +3 -3
  62. package/src/components/card_product_v2.hbs +6 -1
  63. package/src/components/checkout-payment-details-v2.hbs +4 -3
  64. package/src/components/gift-cards-hint.hbs +9 -0
  65. package/src/components/gift-cards.hbs +90 -0
  66. package/src/components/giftcard-chip.hbs +23 -0
  67. package/src/components/giftcard-summary.hbs +6 -0
  68. package/src/components/home-movers/form.hbs +1 -1
  69. package/src/components/price-block-v2.hbs +17 -16
  70. package/src/data/data_search-results_v2.json +2 -1
  71. package/src/elements/count-button.hbs +10 -0
  72. package/src/elements/form-row.hbs +1 -1
  73. package/src/elements/input.hbs +31 -2
  74. package/src/img/billie-pay-later.svg +13 -0
  75. package/src/img/giftcard.svg +28 -0
  76. package/src/js/components/general/notification.js +60 -40
  77. package/src/js/components/general/switchVat.js +151 -154
  78. package/src/js/components/pdp-billie-modal-scroll-reset.js +46 -42
  79. package/src/js/emulation/basket-data.js +2126 -2038
  80. package/src/js/emulation/billie-modal.js +6 -6
  81. package/src/js/emulation/checkLocalEnv.js +6 -5
  82. package/src/js/emulation/checkout-data.js +33 -0
  83. package/src/js/emulation/checkout-payment-details.js +23 -21
  84. package/src/js/emulation/forms.js +9 -2
  85. package/src/js/emulation/gift-cards.js +216 -0
  86. package/src/js/emulation/mock.js +98 -21
  87. package/src/js/emulation/plp-load-more.js +19 -13
  88. package/src/js/emulation/validity-emulation.js +33 -0
  89. package/src/js/page/basket/basket-update-cart-action.js +4 -1
  90. package/src/js/page/basket/klarna.js +13 -3
  91. package/src/js/page/basket-v2.js +11 -7
  92. package/src/js/page/components/billie-modal.js +20 -20
  93. package/src/js/page/components/gift-cards.js +927 -0
  94. package/src/js/page/components/order-summary.js +57 -28
  95. package/src/js/page/components/toggle-password-visibility.js +22 -0
  96. package/src/js/page/components/voucher.js +52 -47
  97. package/src/js/page/count-stepper/pdp-count-stepper.js +29 -0
  98. package/src/js/page/filters/plp-filters-mobile.js +4 -7
  99. package/src/js/page/filters/plp-filters-utils.js +9 -0
  100. package/src/js/page/filters/plp-filters.js +13 -5
  101. package/src/js/page/kitchen/colour-swatches.js +152 -152
  102. package/src/js/page/quick-filter.js +106 -103
  103. package/src/js/page/share-project-list.js +151 -33
  104. package/src/js/page/utils/create-count-stepper.js +141 -0
  105. package/src/js/page/utils/gift-cards-utils.js +242 -0
  106. package/src/js/page/utils/input-handling.js +104 -0
  107. package/src/js/page/utils/show-hide-input.js +31 -0
  108. package/src/js/page/utils/validation.js +146 -96
  109. package/src/layouts/checkout.hbs +1 -5
  110. package/src/page_my-account_change-password.html +1 -0
  111. package/src/page_payment-details-with-gift-card.html +8 -5
  112. package/src/page_plp-with-paint.html +1 -1
  113. package/src/page_plp_v2-energy-efficiency.html +1 -1
  114. package/src/page_plp_v2-favourite-products.html +1 -1
  115. package/src/page_plp_v2-vat.html +31 -26
  116. package/src/page_plp_v2.html +1 -1
  117. package/src/page_product-details-cnc-success-notification-vat.html +3 -2
  118. package/src/page_product_search-vat.html +1 -1
  119. package/src/page_product_search.html +1 -1
  120. package/src/page_search-results.html +1 -1
  121. package/src/partials/scripts.hbs +4 -0
  122. package/src/scss/components/_custom-slider.scss +7 -6
  123. package/src/scss/components/_gift-cards.scss +359 -0
  124. package/src/scss/components/_input-counter.scss +65 -0
  125. package/src/scss/components/_quick-filter.scss +32 -10
  126. package/src/scss/components/checkout-payment-details-v2.scss +6 -2
  127. package/src/scss/components/kitchen/_price-tooltip.scss +3 -2
  128. package/src/scss/components/kitchen/_price.scss +2 -2
  129. package/src/scss/helpers/_variables.scss +7 -16
  130. package/src/scss/pages/page_checkout_delivery-new.scss +30 -6
  131. package/src/scss/pages/page_products-list-combined.scss +34 -2
  132. package/src/scss/pdp-main.scss +1 -0
  133. package/build/js/page/plp-img-v2.js +0 -25
  134. package/src/components/.DS_Store +0 -0
  135. package/src/img/.DS_Store +0 -0
  136. package/src/img/placeholders/.DS_Store +0 -0
  137. package/src/js/.DS_Store +0 -0
  138. package/src/js/components/share-project-list.js +0 -56
  139. package/src/js/components/toggle-password-visibility.js +0 -58
  140. package/src/js/page/.DS_Store +0 -0
  141. package/src/js/page/plp-img-v2.js +0 -25
  142. package/src/scss/.DS_Store +0 -0
  143. package/src/scss/pages/.DS_Store +0 -0
@@ -4,7 +4,7 @@
4
4
  $blue-dark: #0a3055; // Base brand color for background
5
5
  $blue: #0277bd; // CTAs
6
6
  $green: #67a509; // Tick icons; Buttons in the checkout
7
- $polishedPine: #67a589;
7
+ $polished-pine: #67a589;
8
8
  $green-dark: #487306; // Active state of button-action
9
9
 
10
10
  // Additional colors
@@ -33,7 +33,6 @@ $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
- $pacific-depths: #004587;
37
36
  $usp-icon-color: #1a77bc; // Usp icon color
38
37
  $pacific-depths: #004587;
39
38
  $line-through: #242424;
@@ -47,10 +46,6 @@ $footer-gray: #f5f5f5;
47
46
  $footer-bullet: #c8c8c8;
48
47
  $footer-copyright: #626262;
49
48
 
50
- $footer-gray: #f5f5f5;
51
- $footer-bullet: #c8c8c8;
52
- $footer-copyright: #626262;
53
-
54
49
  $white: #fff;
55
50
  $black: #000;
56
51
  $black-lite: #111;
@@ -67,7 +62,6 @@ $blue-ocean: #003058;
67
62
  $blue-ocean-dark: #0a3054;
68
63
  $gray-middle: #aaa;
69
64
  $light-blue: #e6f1f8;
70
-
71
65
  // Colour block colours
72
66
  $moon-shadow: #658089;
73
67
  $fawn: #f0ddce;
@@ -111,7 +105,7 @@ $black-transparent75: rgba(0, 0, 0, 0.75);
111
105
  $black-transparent80: rgba(0, 0, 0, 0.8);
112
106
  $blue-transparent20: rgba(2, 119, 189, 0.2);
113
107
  $blue-transparent10: rgba(2, 119, 189, 0.1);
114
- $blue-transparent3: #0277bd52;
108
+ $blue-transparent3: rgba(2, 119, 189, 0.32);
115
109
  $blue-transparent5: rgba(2, 119, 189, 0.05);
116
110
  $blue-transparent5-rgb: rgb(242, 248, 251);
117
111
  $dark-blue-transparent10: rgba(10, 48, 85, 0.1);
@@ -305,7 +299,7 @@ $btn-line-height-sm: $input-btn-line-height-sm !default;
305
299
 
306
300
  $btn-padding-y-lg: $input-btn-padding-y-lg !default;
307
301
  $btn-padding-x-lg: $input-btn-padding-x-lg !default;
308
- $btn-line-height-lg: $input-btn_line-height-lg !default;
302
+ $btn-line-height-lg: $input-btn-line-height-lg !default;
309
303
 
310
304
  $btn-border-radius: $border-radius !default;
311
305
  $btn-border-radius-lg: $border-radius-lg !default;
@@ -385,8 +379,7 @@ $zindex-share: 1 !default;
385
379
 
386
380
  // This variable affects the `.h-*` and `.w-*` classes.
387
381
  $sizes: () !default;
388
-
389
- /* sass-lint:disable indentation */
382
+ // sass-lint:disable indentation
390
383
  $sizes: map-merge(
391
384
  (
392
385
  25: 25%,
@@ -396,8 +389,7 @@ $sizes: map-merge(
396
389
  ),
397
390
  $sizes
398
391
  );
399
- /* sass-lint:enable indentation */
400
-
392
+ // sass-lint:enable indentation
401
393
  // Spacing
402
394
  //
403
395
  // Control the default styling of most Bootstrap elements by modifying these
@@ -407,8 +399,7 @@ $sizes: map-merge(
407
399
  // stylelint-disable
408
400
  $spacer: 1rem !default;
409
401
  $spacers: () !default;
410
-
411
- /* sass-lint:disable indentation */
402
+ // sass-lint:disable indentation
412
403
  $spacers: map-merge(
413
404
  (
414
405
  0: 0,
@@ -428,7 +419,7 @@ $spacers: map-merge(
428
419
  ),
429
420
  $spacers
430
421
  );
431
- /* sass-lint:enable indentation */
422
+ // sass-lint:enable indentation
432
423
 
433
424
  // Bootstrap Printing checked
434
425
  $print-page-size: a3 !default;
@@ -27,6 +27,8 @@
27
27
  .checkout-widget {
28
28
  &__details {
29
29
  font-size: 1rem;
30
+ display: flex;
31
+ flex-direction: column;
30
32
 
31
33
  .checkout-widget {
32
34
  &__item {
@@ -44,15 +46,27 @@
44
46
  }
45
47
 
46
48
  &-vat {
47
- font-size: .75rem;
49
+ font-size: 0.75rem;
48
50
  margin-top: -15px;
49
51
  }
50
52
  }
51
53
 
52
-
53
54
  &__details-discount {
54
55
  order: 1;
55
56
  }
57
+
58
+ &__gift-card {
59
+ order: 2;
60
+ margin-bottom: 0;
61
+ margin-top: 20px;
62
+ font-weight: 700;
63
+
64
+ .checkout-widget__item-value {
65
+ ::first-letter {
66
+ font-size: 1rem;
67
+ }
68
+ }
69
+ }
56
70
  }
57
71
  }
58
72
 
@@ -194,6 +208,10 @@
194
208
  margin: 40px 0;
195
209
  }
196
210
 
211
+ .loader-wrapper.page-loader {
212
+ position: fixed;
213
+ }
214
+
197
215
  .oos-block {
198
216
  @include make-col(12);
199
217
 
@@ -272,7 +290,6 @@
272
290
  line-height: 1.125rem;
273
291
  font-weight: 400;
274
292
 
275
-
276
293
  &__heading {
277
294
  color: $blue-ocean;
278
295
  font-weight: 400;
@@ -387,7 +404,7 @@
387
404
 
388
405
  .date-selection {
389
406
  &__wrapper {
390
- font-size: .875rem;
407
+ font-size: 0.875rem;
391
408
  line-height: 1.125rem;
392
409
  font-weight: 400;
393
410
  margin-bottom: 23px;
@@ -399,6 +416,13 @@
399
416
  margin-bottom: 13px;
400
417
  }
401
418
  }
419
+
420
+ .notification {
421
+ &:only-child,
422
+ &:last-child {
423
+ margin-bottom: 30px;
424
+ }
425
+ }
402
426
  }
403
427
 
404
428
  #modalDeliveryEdit,
@@ -409,7 +433,7 @@
409
433
  }
410
434
 
411
435
  .modal-box__header .close {
412
- right: .6875rem;
436
+ right: 0.6875rem;
413
437
  top: 1.625rem;
414
438
  }
415
439
 
@@ -686,7 +710,7 @@
686
710
  padding: 17px 13px;
687
711
 
688
712
  &-info {
689
- font-size: .875rem;
713
+ font-size: 0.875rem;
690
714
  margin-left: 30px;
691
715
  }
692
716
  }
@@ -303,6 +303,7 @@ $color-bar-radius: 3px;
303
303
  margin-right: -4px;
304
304
  padding-left: 5px;
305
305
  padding-right: 5px;
306
+ width: 50%;
306
307
  }
307
308
 
308
309
  &:nth-of-type(1)::before,
@@ -338,6 +339,27 @@ $color-bar-radius: 3px;
338
339
  align-items: center;
339
340
  justify-content: center;
340
341
  border-bottom: 1px solid $gray;
342
+ width: 100%;
343
+
344
+ @supports (aspect-ratio: 1 / 1) {
345
+ aspect-ratio: 1 / 1;
346
+ }
347
+
348
+ @supports not (aspect-ratio: 1 / 1) {
349
+ &:before {
350
+ content: '';
351
+ display: block;
352
+ padding-top: 100%;
353
+ }
354
+ }
355
+
356
+ .card__img-v2 {
357
+ position: absolute;
358
+ inset: 0;
359
+ width: 100%;
360
+ height: 100%;
361
+ object-fit: contain;
362
+ }
341
363
 
342
364
  @include media-breakpoint-down(sm) {
343
365
  border: 1px solid $gray;
@@ -367,6 +389,16 @@ $color-bar-radius: 3px;
367
389
  }
368
390
  }
369
391
 
392
+ .card-sponsor-product {
393
+ @include media-breakpoint-down(sm) {
394
+ width: 50%;
395
+
396
+ .card {
397
+ width: 100%;
398
+ }
399
+ }
400
+ }
401
+
370
402
  .product-card {
371
403
  & .card__inner-v2:hover {
372
404
  border: 1px solid $gray-dark;
@@ -586,8 +618,8 @@ $color-bar-radius: 3px;
586
618
  .sort-products-list {
587
619
  &__section {
588
620
  @include make-col(6);
589
- color: black;
590
- border: none;
621
+ color: $black;
622
+ border: 0;
591
623
 
592
624
  > .form-row {
593
625
  margin-bottom: 0;
@@ -80,6 +80,7 @@
80
80
  @import 'components/clearpay';
81
81
  @import 'components/billie-online-messaging';
82
82
  @import 'components/billie-modal';
83
+ @import 'components/input-counter';
83
84
 
84
85
  // Pages
85
86
  @import 'pages/page_ti';
@@ -1,25 +0,0 @@
1
- $(document).ready(function () {
2
-
3
- let imgWrap = $('.products-list-v2 .card__img-wrap');
4
- let img = $('.products-list-v2 .card__img-v2');
5
-
6
- square();
7
-
8
- img.height(function () {
9
- if (Math.round($(this).height()) > Math.round($(this).width())) {
10
- $(this).height('99.9%'); //fix for ie
11
- } else if ((Math.round($(this).height()) < Math.round($(this).width()))){
12
- $(this).width('99.9%'); // fix for ie
13
- } else {
14
- $(this).width('99.9%'); // fix for ie
15
- $(this).height('99.9%'); // fix for ie
16
- }
17
- });
18
-
19
- function square() {
20
- let width = imgWrap.width();
21
- imgWrap.height(width);
22
- }
23
-
24
- $(window).on('resize', square);
25
- });
Binary file
package/src/img/.DS_Store DELETED
Binary file
Binary file
package/src/js/.DS_Store DELETED
Binary file
@@ -1,56 +0,0 @@
1
- // this file should be delete after <script defer="defer" src="./js/share-project-list.min.js"></script>
2
- // implementation on backend (IC-1182 comment https://wickesit.atlassian.net/browse/IC-1182?focusedCommentId=312018)
3
-
4
- var Wick = Wick || {};
5
-
6
- Wick.ShareProjectList = (function () {
7
- function init() {
8
- var shoppingListLinkInput = $('#share-list-modal #shopping-list-link'),
9
- shoppingListLinkEl = shoppingListLinkInput[0],
10
- linkContainer = $('#copy-link'),
11
- actualLink = linkContainer.find('a'),
12
- copyClass = 'copy-link_hovered';
13
-
14
- actualLink.click(function (e) {
15
- e.preventDefault();
16
- });
17
-
18
- linkContainer.click(function () {
19
- if (navigator.userAgent.match(/TradeProMobile_iOS|DIYMobile_iOS/i)) {
20
- iosCopyToClipboard(shoppingListLinkInput);
21
- } else if (navigator.userAgent.match(/ipad|ipod|iphone/i)) {
22
- shoppingListLinkEl.select();
23
- shoppingListLinkEl.setSelectionRange(0, 999999);
24
- } else {
25
- shoppingListLinkEl.select();
26
- }
27
-
28
- document.execCommand('copy');
29
- actualLink.addClass(copyClass);
30
- });
31
-
32
- shoppingListLinkInput.click(function () {
33
- linkContainer.click();
34
- actualLink.removeClass(copyClass);
35
- });
36
- }
37
-
38
- function iosCopyToClipboard($input) {
39
- var el = $input.get(0);
40
- var editable = el.contentEditable;
41
- var readOnly = el.readOnly;
42
-
43
- el.contentEditable = true;
44
- el.readOnly = false;
45
- var range = document.createRange();
46
- range.selectNodeContents(el);
47
- var sel = window.getSelection();
48
- sel.removeAllRanges();
49
- sel.addRange(range);
50
- el.setSelectionRange(0, 999999);
51
- el.contentEditable = editable;
52
- el.readOnly = readOnly;
53
- }
54
-
55
- init();
56
- })();
@@ -1,58 +0,0 @@
1
- var Wick = window.Wick || {};
2
-
3
- Wick.TogglePasswordVisibility = {
4
- el: {
5
- $toggleShow: $('[data-show-content] .toggle-show'),
6
- inputWrap: $('.form-row[data-show-content] .input-wrap'),
7
- toggleIcon: '.toggle-show',
8
- },
9
-
10
- updateIconVisibility(inputField, toggleIcon) {
11
- const valueLength = inputField.val().length;
12
- if (valueLength > 0) {
13
- toggleIcon.show();
14
- } else {
15
- toggleIcon.hide();
16
- }
17
- },
18
-
19
- attachInputListener(inputField, toggleIcon) {
20
- inputField.on('input', function () {
21
- Wick.TogglePasswordVisibility.updateIconVisibility($(this), toggleIcon);
22
- });
23
- },
24
-
25
- attachToggleClickListener(inputField, toggleIcon) {
26
- toggleIcon.on('click', function () {
27
- const isPasswordType = inputField.attr('type') === 'password';
28
- const iconSvg = $(this).find('svg');
29
-
30
- if (isPasswordType) {
31
- inputField.attr('type', 'text');
32
- iconSvg.removeClass('fa-eye-slash').addClass('fa-eye');
33
- } else {
34
- inputField.attr('type', 'password');
35
- iconSvg.removeClass('fa-eye').addClass('fa-eye-slash');
36
- }
37
- });
38
- },
39
-
40
- init() {
41
- Wick.TogglePasswordVisibility.el.inputWrap.each(function () {
42
- const inputField = $(this).find('input');
43
- const toggleIcon = $(this).find(Wick.TogglePasswordVisibility.el.toggleIcon);
44
-
45
- Wick.TogglePasswordVisibility.attachInputListener(inputField, toggleIcon);
46
- Wick.TogglePasswordVisibility.updateIconVisibility(inputField, toggleIcon);
47
- Wick.TogglePasswordVisibility.attachToggleClickListener(inputField, toggleIcon);
48
- });
49
- },
50
- };
51
-
52
- $(document).ready(function () {
53
- if (!Wick.TogglePasswordVisibility.el.$toggleShow.length) {
54
- return;
55
- }
56
-
57
- Wick.TogglePasswordVisibility.init();
58
- });
Binary file
@@ -1,25 +0,0 @@
1
- $(document).ready(function () {
2
-
3
- let imgWrap = $('.products-list-v2 .card__img-wrap');
4
- let img = $('.products-list-v2 .card__img-v2');
5
-
6
- square();
7
-
8
- img.height(function () {
9
- if (Math.round($(this).height()) > Math.round($(this).width())) {
10
- $(this).height('99.9%'); //fix for ie
11
- } else if ((Math.round($(this).height()) < Math.round($(this).width()))){
12
- $(this).width('99.9%'); // fix for ie
13
- } else {
14
- $(this).width('99.9%'); // fix for ie
15
- $(this).height('99.9%'); // fix for ie
16
- }
17
- });
18
-
19
- function square() {
20
- let width = imgWrap.width();
21
- imgWrap.height(width);
22
- }
23
-
24
- $(window).on('resize', square);
25
- });
Binary file
Binary file