wickes-css2 2.109.0-develop.1 → 2.109.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.
- package/build/css/category-main.css +1 -1
- package/build/css/components/card-product-banner.css +1 -1
- package/build/css/homepage-main.css +1 -1
- package/build/css/kitchen-plp-main.css +1 -1
- package/build/css/main.css +1 -1
- package/build/css/my-account-main-v2.css +1 -1
- package/build/css/my-account-main.css +1 -1
- package/build/css/pages/page_checkout_delivery-new.css +1 -1
- package/build/css/pages/page_products-list-combined.css +1 -1
- package/build/css/pages/page_products-list.css +1 -1
- package/build/css/pages/page_shopping-cart-v2.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-critical.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/pdp-main.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/css/store-locator-main.css +1 -1
- package/build/js/basket.min.js +1 -1
- package/build/js/checkout.min.js +1 -1
- package/build/js/emulation.min.js +178 -56
- package/build/js/gift-cards.min.js +1 -1
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/mini-basket-slider.min.js +1 -1
- package/build/js/page/basket/mini-basket-total.js +17 -2
- package/build/js/page/components/notify-me.js +99 -0
- package/build/js/page/components/order-summary.js +35 -0
- package/build/js/pdp.bundle.min.js +2 -1
- package/build/js/wickes-dc.js +1 -0
- package/package.json +1 -3
- package/src/components/base/button.hbs +1 -1
- package/src/components/card_product_banner_v2.hbs +4 -1
- package/src/components/card_sponsor_banner.hbs +4 -1
- package/src/components/checkout_order-summary-new.hbs +10 -1
- package/src/components/click-and-collect-modal.hbs +0 -14
- package/src/components/date-selection.hbs +1 -1
- package/src/components/delivery-types.hbs +11 -3
- package/src/components/injected-content.hbs +6 -1
- package/src/components/modal.hbs +1 -1
- package/src/components/modals/notify-me-modal.hbs +76 -0
- package/src/components/order-summary.hbs +2 -2
- package/src/components/price-block-v2.hbs +211 -214
- package/src/components/sponsor-top-banner.hbs +10 -0
- package/src/data/data_delivery-address-v2.json +1 -1
- package/src/data/data_search-results_v2.json +9 -2
- package/src/data/data_spr_injected_content.json +4 -0
- package/src/js/emulation/checkout-delivery-details.js +28 -25
- package/src/js/emulation/custom-slider-emulation.js +1 -1
- package/src/js/emulation/date-selection.js +136 -24
- package/src/js/emulation/forms.js +12 -0
- package/src/js/emulation/mini-basket-data.js +3 -3
- package/src/js/emulation/notify-me.js +9 -0
- package/src/js/emulation/switchCalendar.js +12 -8
- package/src/js/page/basket/mini-basket-total.js +17 -2
- package/src/js/page/components/notify-me.js +99 -0
- package/src/js/page/components/order-summary.js +35 -0
- package/src/page_checkout_next-day-delivery-details.html +2 -2
- package/src/page_checkout_payment-details-v2-asm.html +1 -1
- package/src/page_checkout_payment-details-v2.html +1 -1
- package/src/page_checkout_payment-details_with-card-loader.html +1 -1
- package/src/page_checkout_payment-details_with-klarna-loader.html +1 -1
- package/src/page_checkout_payment-details_with-loader-v2.html +1 -1
- package/src/page_checkout_rapid-delivery-details.html +7 -5
- package/src/page_klarna_payment-details_with-klarna.html +1 -1
- package/src/page_payment-details-with-billie.html +1 -1
- package/src/page_payment-details-with-clearpay.html +1 -1
- package/src/page_payment-details-with-gift-card.html +1 -1
- package/src/page_payment-details_with_apple-pay.html +1 -1
- package/src/page_payment-details_with_google-pay.html +1 -1
- package/src/page_plp_v2.html +1 -0
- package/src/page_product-details-mfe-calculator.html +9 -3
- package/src/scss/common/_CTAs.scss +7 -3
- package/src/scss/components/_custom-slider.scss +18 -0
- package/src/scss/components/_date-selection-add-new-styles.scss +43 -1
- package/src/scss/components/_notify-me-modal.scss +139 -0
- package/src/scss/components/_order-summary.scss +25 -12
- package/src/scss/components/_price-block-critical.scss +2 -2
- package/src/scss/components/_price-block.scss +14 -4
- package/src/scss/components/card-product-banner.scss +8 -0
- package/src/scss/helpers/_CTAs.scss +15 -5
- package/src/scss/pages/page_checkout_delivery-new.scss +36 -0
- package/src/scss/pages/page_products-list-combined.scss +8 -1
- package/src/scss/pages/page_products-list.scss +8 -1
- package/src/scss/pages/page_shopping-cart-v2.scss +34 -10
- package/src/scss/pdp-main.scss +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function a(i,n,s){function o(t,e){if(!n[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=n[t]={exports:{}},i[t][0].call(r.exports,function(e){return o(i[t][1][e]||e)},r,r.exports,a,i,n,s)}return n[t].exports}for(var l="function"==typeof require&&require,e=0;e<s.length;e++)o(s[e]);return o}({1:[function(e,t,r){"use strict";$(document).ready(function(){$(".header-right-wrapp .header-right__item:eq(-2)").after('<li class="header-right__item"><a href="#" class="header-right__link swal-confirm"><span class="btn__text"><i class="fas fa-trash fa-2x"></i></span><span class="header-right__link-title">Empty</span></a></li>'),$(".header-mobileicon a:eq(-1)").after('<a class="trash-button-dc swal-confirm" href="#"><div class="btn btn-primary header-shop-list"><span class="icon"><i class="svg-inline--fa fas fa-trash fa-w-12 fa-lg"></i></span></div></a>'),$("head").append("<script src='https://unpkg.com/sweetalert/dist/sweetalert.min.js'><\/script>"),$("head").append("<style>@media (max-width: 399px) { .trash-button-dc { display: none; } }</style>"),"ontouchstart"in window&&$(".trash-button-dc .btn").removeClass("btn-primary");$(".swal-confirm").click(function(e){e.preventDefault(),swal({title:"Are you sure?",text:"You will remove all the items from the basket, including any vouchers applied.",buttons:!0,dangerMode:!0}).then(function(e){e&&($("body").append('<div class="loader-wrapper loader-wrapper--full-page"> <div class="loader-container"> <div class="loader"></div> <div class="loader-message">Removing items from your basket</div> </div> </div>'),$.post("/cart/clear").fail(function(){swal({title:"Error",text:"Failed to remove items from the basket.",dangerMode:!0}),$(".loader-wrapper").remove()}).done(function(){location.reload()}))})})})},{}]},{},[1]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wickes-css2",
|
|
3
|
-
"version": "2.109.0-develop.
|
|
3
|
+
"version": "2.109.0-develop.3",
|
|
4
4
|
"description": "CSS and JS and page templates in use by Wickes",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -51,14 +51,12 @@
|
|
|
51
51
|
"gulp-htmlmin": "^5.0.1",
|
|
52
52
|
"gulp-json-concat": "^0.2.0",
|
|
53
53
|
"gulp-json-refs": "^0.1.1",
|
|
54
|
-
"gulp-livereload": "^3.8.1",
|
|
55
54
|
"gulp-purgecss": "4.0.3",
|
|
56
55
|
"gulp-sass": "^4.0.0",
|
|
57
56
|
"gulp-sass-lint": "^1.4.0",
|
|
58
57
|
"gulp-sitemap": "^5.1.0",
|
|
59
58
|
"gulp-sourcemaps": "^2.6.4",
|
|
60
59
|
"gulp-uglify": "^3.0.2",
|
|
61
|
-
"gulp-watch": "^5.0.0",
|
|
62
60
|
"handlebars-layouts": "^3.1.4",
|
|
63
61
|
"husky": "8.0.3",
|
|
64
62
|
"lint-staged": "13.2.3",
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
{{#if required-amount-desktop}}data-required-amount-desktop="{{required-amount-desktop}}"{{/if}}
|
|
6
6
|
>
|
|
7
7
|
<a class="card-product-banner__link" href="{{href}}">
|
|
8
|
-
<
|
|
8
|
+
<picture class="card-product-banner__picture">
|
|
9
|
+
<source class="card-product-banner__image" srcset="{{#if mobile-src}}{{mobile-src}}{{else}}{{src}}{{/if}}" media="(max-width: 768px)">
|
|
10
|
+
<img class="card-product-banner__image" src="{{src}}" alt="banner">
|
|
11
|
+
</picture>
|
|
9
12
|
</a>
|
|
10
13
|
</div>
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
{{#if mobile-position}}data-mobile-position="{{mobile-position}}"{{/if}}
|
|
4
4
|
>
|
|
5
5
|
<a class="card-sponsor-banner__link" href="{{href}}">
|
|
6
|
-
<
|
|
6
|
+
<picture class="card-sponsor-banner__picture">
|
|
7
|
+
<source class="card-sponsor-banner__image" srcset="{{#if mobile-src}}{{mobile-src}}{{else}}{{src}}{{/if}}" media="(max-width: 768px)">
|
|
8
|
+
<img class="card-sponsor-banner__image" src="{{src}}" alt="banner">
|
|
9
|
+
</picture>
|
|
7
10
|
</a>
|
|
8
11
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="checkout-widget checkout-widget_order-summary {{#if mod}}checkout-widget-{{mod}}{{/if}}">
|
|
1
|
+
<div class="checkout-widget checkout-widget_order-summary {{#if mod}}checkout-widget-{{mod}}{{/if}}"{{#if hideDeliveryCostMessage}} data-hide-delivery-cost-message="true"{{/if}}>
|
|
2
2
|
{{#unless head}}
|
|
3
3
|
<h3 class="heading-3 checkout-widget__header">Order Summary</h3>
|
|
4
4
|
{{/unless}}
|
|
@@ -16,6 +16,15 @@
|
|
|
16
16
|
<span>{{title}}</span>
|
|
17
17
|
<span class="checkout-widget__item-value">{{value}}</span>
|
|
18
18
|
</li>
|
|
19
|
+
{{#ifCond (lookup this "mod") "==" "delivery"}}
|
|
20
|
+
{{#unless ../hideDeliveryCostMessage}}
|
|
21
|
+
<li class="checkout-widget__item checkout-widget__item-delivery-cost-message">
|
|
22
|
+
<span class="checkout-widget__item-value" id="order-delivery-cost-message">
|
|
23
|
+
Final delivery cost confirmed at checkout
|
|
24
|
+
</span>
|
|
25
|
+
</li>
|
|
26
|
+
{{/unless}}
|
|
27
|
+
{{/ifCond}}
|
|
19
28
|
{{/each}}
|
|
20
29
|
{{/if}}
|
|
21
30
|
{{#unless hideApplyVoucher}}
|
|
@@ -10,20 +10,6 @@
|
|
|
10
10
|
<div class="click-and-collect__locator">
|
|
11
11
|
<form action="#" class="click-and-collect__locator-form">
|
|
12
12
|
|
|
13
|
-
<!--
|
|
14
|
-
<div class="form-row" data-row-required>
|
|
15
|
-
<div class="click-and-collect__locator-town form-row__field">
|
|
16
|
-
<input class="tbx" placeholder="Enter a town/city or postcode"
|
|
17
|
-
id="click-and-collect-town" type="text"
|
|
18
|
-
aria-label="Enter a town/city or postcode">
|
|
19
|
-
</div>
|
|
20
|
-
<div class="click-and-collect__locator-btn">
|
|
21
|
-
<button class="btn btn_full btn-primary" id="click-and-collect-submit">
|
|
22
|
-
<span class="btn__text">Find store</span>
|
|
23
|
-
</button>
|
|
24
|
-
</div>
|
|
25
|
-
</div>-->
|
|
26
|
-
|
|
27
13
|
<div class="form-row" data-row-required>
|
|
28
14
|
<div class="click-and-collect__locator-town form-row__field">
|
|
29
15
|
<div class="input-group">
|
|
@@ -3,9 +3,17 @@
|
|
|
3
3
|
<button class="btn btn_full delivery-btn">
|
|
4
4
|
{{#if title}}
|
|
5
5
|
<span class="delivery-btn__content">
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
<span class="title">{{title}}</span>
|
|
7
|
+
<span class="subtitle">
|
|
8
|
+
{{subtitle}}
|
|
9
|
+
{{> info-icon
|
|
10
|
+
modification="rapid-info-icon d-none"
|
|
11
|
+
title="This is an estimated time provided by our third party courier and is subject to change"
|
|
12
|
+
data-placement="bottom"
|
|
13
|
+
data-container="body"
|
|
14
|
+
}}
|
|
15
|
+
</span>
|
|
16
|
+
</span>
|
|
9
17
|
{{#if classImg}}
|
|
10
18
|
<span class="delivery-btn__image">
|
|
11
19
|
<i class="{{classImg}}"></i>
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
{{#each srp_injected_content.items}}
|
|
3
3
|
{{#if banner}}
|
|
4
4
|
<div class="srp-injected__image">
|
|
5
|
-
{{
|
|
5
|
+
<a class="srp-injected__link" href="{{banner.href}}">
|
|
6
|
+
<picture class="srp-injected__picture">
|
|
7
|
+
<source class="srp-injected__img" srcset="{{#if banner.mobile-src}}{{banner.mobile-src}}{{else}}{{banner.src}}{{/if}}" media="(max-width: 768px)">
|
|
8
|
+
<img class="srp-injected__img" src="{{banner.src}}" alt="{{banner.alt}}">
|
|
9
|
+
</picture>
|
|
10
|
+
</a>
|
|
6
11
|
</div>
|
|
7
12
|
{{else}}
|
|
8
13
|
<div class="srp-injected__content">
|
package/src/components/modal.hbs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Bootstrap 4 modal dialog markup https://getbootstrap.com/docs/4.1/components/modal/ -->
|
|
2
2
|
|
|
3
|
-
<div class="modal modal-box {{#if fullWidth}}modal-box_full{{/if}} {{#if wide}}modal-box_wide{{/if}}{{classMod}}"
|
|
3
|
+
<div class="modal modal-box {{#if fullWidth}}modal-box_full{{/if}} {{#if wide}}modal-box_wide{{/if}} {{classMod}}"
|
|
4
4
|
id="{{id}}" role="dialog" tabindex="-1" data-backdrop="{{backdrop}}" data-keyboard={{#if keyboard}}{{keyboard}}{{else}}false{{/if}}
|
|
5
5
|
>
|
|
6
6
|
<div class="modal-dialog modal-box__container {{#if centered}}modal-dialog-centered{{/if}}" role="document">
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{{#extend "modal"
|
|
2
|
+
id="modal-notify-me"
|
|
3
|
+
fullWidth=false
|
|
4
|
+
wide=true
|
|
5
|
+
backdrop=true
|
|
6
|
+
title=""
|
|
7
|
+
showCloseBtn=true
|
|
8
|
+
classMod=mod
|
|
9
|
+
}}
|
|
10
|
+
{{#content "header"}}
|
|
11
|
+
<div class="notify-me__header">
|
|
12
|
+
<h3 class="modal-title modal-box__title"
|
|
13
|
+
data-notify-header="form">
|
|
14
|
+
<span class="icon-wrap">
|
|
15
|
+
<i class="fas fa-bell icon"></i>
|
|
16
|
+
</span>
|
|
17
|
+
Notify me when this product is back in stock
|
|
18
|
+
</h3>
|
|
19
|
+
|
|
20
|
+
<h3 class="modal-title modal-box__title d-none"
|
|
21
|
+
data-notify-header="success">
|
|
22
|
+
<i class="fas fa-check-circle text-success icon"></i>
|
|
23
|
+
You will receive an email when the product is back in stock
|
|
24
|
+
</h3>
|
|
25
|
+
</div>
|
|
26
|
+
{{/content}}
|
|
27
|
+
|
|
28
|
+
{{#content "sections"}}
|
|
29
|
+
{{#extend "modal-body-section"}}
|
|
30
|
+
{{#content "body"}}
|
|
31
|
+
<div class="notify-me" data-notify-root>
|
|
32
|
+
<div class="notify-me__state notify-me__state--form" data-notify-state="form">
|
|
33
|
+
<form class="notify-me-form" novalidate>
|
|
34
|
+
{{> form-row type="email" id="notify-me-email" name="email" label="Email address" value="test@test.com" required="true"}}
|
|
35
|
+
|
|
36
|
+
<p class="notify-me-form__note">
|
|
37
|
+
By providing your email address, you agree to receive email notifications until your product is back in
|
|
38
|
+
stock.
|
|
39
|
+
Your email will not be stored for any other purpose.
|
|
40
|
+
</p>
|
|
41
|
+
|
|
42
|
+
<div class="notify-me-form__ctas">
|
|
43
|
+
{{> base/button
|
|
44
|
+
text="Notify me"
|
|
45
|
+
modification="btn-primary btn--notify-submit"
|
|
46
|
+
type="submit"
|
|
47
|
+
}}
|
|
48
|
+
<button class="btn btn-outline-primary btn--notify-cancel" type="button" data-dismiss="modal">
|
|
49
|
+
Cancel
|
|
50
|
+
</button>
|
|
51
|
+
</div>
|
|
52
|
+
</form>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<div class="notify-me__state notify-me__state--success d-none" data-notify-state="success">
|
|
56
|
+
<div class="notify-me__success">
|
|
57
|
+
<div class="notify-me-result">
|
|
58
|
+
<img
|
|
59
|
+
src="./img/tile-buying-guide.jpg"
|
|
60
|
+
alt="Wickes General Purpose Claw Hammer - 16oz"
|
|
61
|
+
class="notify-me-result__img">
|
|
62
|
+
<p class="notify-me-result__title">
|
|
63
|
+
Wickes General Purpose Claw Hammer - 16oz
|
|
64
|
+
</p>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<button class="btn btn-outline-primary btn--notify-close" type="button" data-dismiss="modal">
|
|
68
|
+
Close
|
|
69
|
+
</button>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
{{/content}}
|
|
74
|
+
{{/extend}}
|
|
75
|
+
{{/content}}
|
|
76
|
+
{{/extend}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{{> summary-mobile-bar}}
|
|
4
4
|
<div class="collapse summary__aside container" id="checkout-summary-mobile-accordion-{{id}}" data-sticky-element>
|
|
5
5
|
|
|
6
|
-
{{> checkout_order-summary-new head=title mod=mod id=(concat id "-mobile") mobile="true"}}
|
|
6
|
+
{{> checkout_order-summary-new head=title mod=mod id=(concat id "-mobile") mobile="true" hideDeliveryCostMessage=hideDeliveryCostMessage}}
|
|
7
7
|
{{#unless (or basket checkout)}}
|
|
8
8
|
<div class="summary__payment footer-checkout">
|
|
9
9
|
{{#unless merged}}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
</div>
|
|
48
48
|
{{/if}}
|
|
49
49
|
<div class="summary__aside">
|
|
50
|
-
{{> checkout_order-summary-new head=title mod=mod id=id switch-vat=switch-vat}}
|
|
50
|
+
{{> checkout_order-summary-new head=title mod=mod id=id switch-vat=switch-vat hideDeliveryCostMessage=hideDeliveryCostMessage}}
|
|
51
51
|
|
|
52
52
|
{{#if klarna-placement}}
|
|
53
53
|
<div class="summary__klarna">
|